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/activity/newsfeed/NewsFeedFragment.java b/src/activity/newsfeed/NewsFeedFragment.java
index 8a8320e..75e2aad 100644
--- a/src/activity/newsfeed/NewsFeedFragment.java
+++ b/src/activity/newsfeed/NewsFeedFragment.java
@@ -1,189 +1,189 @@
package activity.newsfeed;
import java.util.ArrayList;
import ... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.newsfeed, container, false);
TextView windowTitleView = (TextView) getActivity().findViewById(
R.id.window_title);
windowTitleView.setText("News Feeding");
this.activ... | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.newsfeed, container, false);
TextView windowTitleView = (TextView) getActivity().findViewById(
R.id.window_title);
windowTitleView.setText("News Feed");
this.activity... |
diff --git a/src/web/org/openmrs/web/controller/observation/PersonObsFormController.java b/src/web/org/openmrs/web/controller/observation/PersonObsFormController.java
index 085e6601..1b957d8e 100644
--- a/src/web/org/openmrs/web/controller/observation/PersonObsFormController.java
+++ b/src/web/org/openmrs/web/controlle... | false | true | protected CommandObject formBackingObject(HttpServletRequest request) throws Exception {
if (!Context.isAuthenticated())
return new CommandObject();
Person person = Context.getPersonService().getPerson(Integer.valueOf(request.getParameter("personId")));
Concept concept = null;
if (request.getParameter("c... | protected CommandObject formBackingObject(HttpServletRequest request) throws Exception {
if (!Context.isAuthenticated())
return new CommandObject();
Person person = Context.getPersonService().getPerson(Integer.valueOf(request.getParameter("personId")));
List<Concept> concepts = null;
Concept concept = nu... |
diff --git a/com/buglabs/util/StreamMultiplexer.java b/com/buglabs/util/StreamMultiplexer.java
index 61b06c2..3d3f68f 100644
--- a/com/buglabs/util/StreamMultiplexer.java
+++ b/com/buglabs/util/StreamMultiplexer.java
@@ -1,228 +1,229 @@
/* Copyright (c) 2007, 2008 Bug Labs, Inc.
* All rights reserved.
*
* Thi... | true | true | public void run() {
int read = 0;
byte[] buff = new byte[bufferLength];
String name = getName();
try {
ArrayList faultyStreams = new ArrayList();
if (log != null) {
log.log(LogService.LOG_DEBUG, name + ": Started");
}
while(!isInterrupted()) {
if(outputStreamWriters.size() > 0) {
re... | public void run() {
int read = 0;
byte[] buff = new byte[bufferLength];
String name = getName();
try {
ArrayList faultyStreams = new ArrayList();
if (log != null) {
log.log(LogService.LOG_DEBUG, name + ": Started");
}
while(!isInterrupted()) {
if(outputStreamWriters.size() > 0) {
re... |
diff --git a/src/uk/badger/bConomy/config/DatabaseManager.java b/src/uk/badger/bConomy/config/DatabaseManager.java
index b4cba5f..b842242 100644
--- a/src/uk/badger/bConomy/config/DatabaseManager.java
+++ b/src/uk/badger/bConomy/config/DatabaseManager.java
@@ -1,124 +1,124 @@
package uk.badger.bConomy.config;
impor... | true | true | public static void setupDatabase(JavaPlugin plugin) {
// creates the database instance
Global.m_database = BukkitDatabaseManager.CreateDatabase(Config.m_dbInfo.dbname, Global.getPlugin(), DatabaseType.SQL);
// logs in using values from the config
Global.m_database.login(Config.m_dbInfo.host, Config.m_dbInfo... | public static void setupDatabase(JavaPlugin plugin) {
// creates the database instance
Global.m_database = BukkitDatabaseManager.CreateDatabase(Config.m_dbInfo.dbname, Global.getPlugin(), DatabaseType.SQL);
// logs in using values from the config
Global.m_database.login(Config.m_dbInfo.host, Config.m_dbInfo... |
diff --git a/src/com/example/ad_creation/PublishActivity.java b/src/com/example/ad_creation/PublishActivity.java
index e1ffb9b..2733f25 100644
--- a/src/com/example/ad_creation/PublishActivity.java
+++ b/src/com/example/ad_creation/PublishActivity.java
@@ -1,113 +1,112 @@
package com.example.ad_creation;
import jav... | true | true | public void publish(View view) {
// get user's session details
//TODO: Handle session error edge cases?
Session session = Session.getActiveSession();
EditText contentView = (EditText) findViewById(R.id.ad_content);
EditText titleView = (EditText) findViewById(R.id.ad_title);
Bitmap currBitmap = mApp... | public void publish(View view) {
// get user's session details
//TODO: Handle session error edge cases?
Session session = Session.getActiveSession();
EditText contentView = (EditText) findViewById(R.id.ad_content);
EditText titleView = (EditText) findViewById(R.id.ad_title);
Bitmap currBitmap = mApp... |
diff --git a/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java b/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
index f7bfc8611..6676ad6b5 100644
--- a/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
+++ b/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
@@ -1,2... | false | true | protected void initMetadata(int series) throws FormatException, IOException {
setSeries(series);
IFDList ifds = ifdsList.get(series);
IFD ifd = ifds.get(0);
in.close();
in = new RandomAccessInputStream(getLSMFileFromSeries(series));
in.order(isLittleEndian());
tiffParser = new TiffParser... | protected void initMetadata(int series) throws FormatException, IOException {
setSeries(series);
IFDList ifds = ifdsList.get(series);
IFD ifd = ifds.get(0);
in.close();
in = new RandomAccessInputStream(getLSMFileFromSeries(series));
in.order(isLittleEndian());
tiffParser = new TiffParser... |
diff --git a/src/net/sourceforge/peers/gui/CallFrame.java b/src/net/sourceforge/peers/gui/CallFrame.java
index 5a9e2a7..a70d2e8 100644
--- a/src/net/sourceforge/peers/gui/CallFrame.java
+++ b/src/net/sourceforge/peers/gui/CallFrame.java
@@ -1,314 +1,318 @@
/*
This file is part of Peers.
This program is fre... | false | true | private void updateGui(DialogState dialogState) {
//TODO use a real state machine
//state.setText(JavaUtils.getShortClassName(dialogState.getClass()));
StringBuffer buf = new StringBuffer();
buf.append("updateGui ");
buf.append(dialog.getId());
buf.append(" [");
... | private void updateGui(DialogState dialogState) {
//TODO use a real state machine
//state.setText(JavaUtils.getShortClassName(dialogState.getClass()));
StringBuffer buf = new StringBuffer();
buf.append("updateGui ");
buf.append(dialog.getId());
buf.append(" [");
... |
diff --git a/core/src/main/java/org/apache/mina/filter/traffic/WriteThrottleFilter.java b/core/src/main/java/org/apache/mina/filter/traffic/WriteThrottleFilter.java
index 53976dae..e47ae03c 100644
--- a/core/src/main/java/org/apache/mina/filter/traffic/WriteThrottleFilter.java
+++ b/core/src/main/java/org/apache/mina/f... | false | true | private String getMessage(IoSession session) {
int mSession = maxSessionScheduledWriteMessages;
long bSession = maxSessionScheduledWriteBytes;
int mService = maxServiceScheduledWriteMessages;
long bService = maxServiceScheduledWriteBytes;
int mGlobal = maxGlobalScheduledW... | private String getMessage(IoSession session) {
int mSession = maxSessionScheduledWriteMessages;
long bSession = maxSessionScheduledWriteBytes;
int mService = maxServiceScheduledWriteMessages;
long bService = maxServiceScheduledWriteBytes;
int mGlobal = maxGlobalScheduledW... |
diff --git a/x10.compiler/src/x10/ast/X10FieldDecl_c.java b/x10.compiler/src/x10/ast/X10FieldDecl_c.java
index dc7675de8..4c8e18325 100644
--- a/x10.compiler/src/x10/ast/X10FieldDecl_c.java
+++ b/x10.compiler/src/x10/ast/X10FieldDecl_c.java
@@ -1,671 +1,672 @@
/*
* This file is part of the X10 project (http://x10-l... | true | true | public Node typeCheck(ContextVisitor tc) {
final TypeNode typeNode = this.type();
Type type = typeNode.type();
Type oldType = (Type)type.copy();
Context xc = (Context) enterChildScope(type(), tc.context());
Flags f = flags.flags();
try {
Types.checkMissin... | public Node typeCheck(ContextVisitor tc) {
final TypeNode typeNode = this.type();
Type type = typeNode.type();
Type oldType = (Type)type.copy();
Context xc = (Context) enterChildScope(type(), tc.context());
Flags f = flags.flags();
try {
Types.checkMissin... |
diff --git a/app/src/com/trovebox/android/app/service/UploaderService.java b/app/src/com/trovebox/android/app/service/UploaderService.java
index bda0e8d..0c0983f 100644
--- a/app/src/com/trovebox/android/app/service/UploaderService.java
+++ b/app/src/com/trovebox/android/app/service/UploaderService.java
@@ -1,595 +1,60... | false | true | private void handleIntent(Intent intent) {
if (!CommonUtils.checkLoggedInAndOnline(true))
{
return;
}
UploadsProviderAccessor uploads = new UploadsProviderAccessor(this);
List<PhotoUpload> pendingUploads = uploads.getPendingUploads();
for (PhotoUpload phot... | private void handleIntent(Intent intent) {
if (!CommonUtils.checkLoggedInAndOnline(true))
{
return;
}
UploadsProviderAccessor uploads = new UploadsProviderAccessor(this);
List<PhotoUpload> pendingUploads = uploads.getPendingUploads();
boolean hasSuccessful... |
diff --git a/src/main/java/echode/api/Echode.java b/src/main/java/echode/api/Echode.java
index 7255572..b089543 100644
--- a/src/main/java/echode/api/Echode.java
+++ b/src/main/java/echode/api/Echode.java
@@ -1,254 +1,253 @@
package echode.api;
import com.google.common.eventbus.EventBus;
import echode.Test;
impor... | true | true | public void parse(String in2) throws ReflectiveOperationException {
/**
* Commented this out, in case needed.
*
* if (in2.equalsIgnoreCase("about")) { out.println(
* "Echode version 0.2.2\nMade by Erik Konijn and Marks Polakovs"); }
* else { if (in2.equalsIgnoreCase("kill")){
* out.println("Echod... | public void parse(String in2) throws ReflectiveOperationException {
/**
* Commented this out, in case needed.
*
* if (in2.equalsIgnoreCase("about")) { out.println(
* "Echode version 0.2.2\nMade by Erik Konijn and Marks Polakovs"); }
* else { if (in2.equalsIgnoreCase("kill")){
* out.println("Echod... |
diff --git a/src/org/biojava/bio/SmallAnnotation.java b/src/org/biojava/bio/SmallAnnotation.java
index b740a0883..761c6ea35 100644
--- a/src/org/biojava/bio/SmallAnnotation.java
+++ b/src/org/biojava/bio/SmallAnnotation.java
@@ -1,305 +1,305 @@
/*
* BioJava development code
*
* This code may b... | true | true | private void _setProperty(Object key, Object value) {
if (mappings == null) {
mappings = new Object[4];
} else {
int keyHash = key.hashCode();
for (int i = 0; i < numMappings * 2; i += 2) {
if (keyHash == mappings[i].hashCode() && key.equals(mappings[i])) {
mappings[i] = value;
retur... | private void _setProperty(Object key, Object value) {
if (mappings == null) {
mappings = new Object[4];
} else {
int keyHash = key.hashCode();
for (int i = 0; i < numMappings * 2; i += 2) {
if (keyHash == mappings[i].hashCode() && key.equals(mappings[i])) {
mappings[i+1] = value;
ret... |
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java
index 681341c34..f19e0829c 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.... | false | true | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
this.client = client;
// Ensure correct implementation
if (client.updateComponent(this, uidl, false))
return;
ArrayList uidlWidgets = new ArrayList();
for (Iterator it = uidl.getChildIterator(); it.hasNext();) {
UIDL uidlForCh... | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
this.client = client;
// Ensure correct implementation
if (client.updateComponent(this, uidl, false))
return;
ArrayList uidlWidgets = new ArrayList();
for (Iterator it = uidl.getChildIterator(); it.hasNext();) {
UIDL uidlForCh... |
diff --git a/src/java/packageController/ServletCart.java b/src/java/packageController/ServletCart.java
index c420032..b479eb8 100644
--- a/src/java/packageController/ServletCart.java
+++ b/src/java/packageController/ServletCart.java
@@ -1,120 +1,120 @@
/*
* To change this template, choose Tools | Templates
* and o... | false | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try {
double tot = 0;
HttpSession sess = request.getSession();
Ut... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try {
double tot = 0;
HttpSession sess = request.getSession();
Ut... |
diff --git a/src/main/java/eu/europeana/portal2/web/presentation/model/SeeAlsoSuggestions.java b/src/main/java/eu/europeana/portal2/web/presentation/model/SeeAlsoSuggestions.java
index 9e0650aa..bb5b5cb4 100644
--- a/src/main/java/eu/europeana/portal2/web/presentation/model/SeeAlsoSuggestions.java
+++ b/src/main/java/e... | true | true | public void add(String query, Integer count) {
String[] parts = query.split(":", 2);
String fieldName = parts[0];
String fieldValue = parts[1]
.replaceAll("^\"", "")
.replaceAll("\"$", "");
String aggregatedFieldName = (seeAlsoAggregations.containsKey(fieldName))
? seeAlsoAggregations.get(fieldNam... | public void add(String query, Integer count) {
String[] parts = query.split(":", 2);
String fieldName = parts[0];
String fieldValue = parts[1]
.replaceAll("^\"", "")
.replaceAll("\"$", "");
String aggregatedFieldName = (seeAlsoAggregations.containsKey(fieldName))
? seeAlsoAggregations.get(fieldNam... |
diff --git a/tests/src/com/android/music/MusicPlayerStability.java b/tests/src/com/android/music/MusicPlayerStability.java
index 5654adb..d84d2f8 100644
--- a/tests/src/com/android/music/MusicPlayerStability.java
+++ b/tests/src/com/android/music/MusicPlayerStability.java
@@ -1,88 +1,90 @@
/*
* Copyright (C) 2009 Th... | false | true | public void testPlay30sMP3() throws Exception {
// Launch the songs list. Pick the fisrt song and play
try {
Instrumentation inst = getInstrumentation();
inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN);
mTrackList = getActivity().getListView();
int ... | public void testPlay30sMP3() throws Exception {
// Launch the songs list. Pick the fisrt song and play
try {
Instrumentation inst = getInstrumentation();
//Make sure the song list shown up
Thread.sleep(2000);
inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPA... |
diff --git a/src/main/java/javabot/operations/TellOperation.java b/src/main/java/javabot/operations/TellOperation.java
index 64404db2..ea6f1047 100644
--- a/src/main/java/javabot/operations/TellOperation.java
+++ b/src/main/java/javabot/operations/TellOperation.java
@@ -1,194 +1,196 @@
package javabot.operations;
i... | true | true | public List<Message> handleMessage(BotEvent event) {
List<Message> messages = new ArrayList<Message>();
String message = event.getMessage();
String channel = event.getChannel();
String login = event.getLogin();
String hostname = event.getHostname();
String sender = ev... | public List<Message> handleMessage(BotEvent event) {
List<Message> messages = new ArrayList<Message>();
String message = event.getMessage();
String channel = event.getChannel();
String login = event.getLogin();
String hostname = event.getHostname();
String sender = ev... |
diff --git a/src/org/openprince/dat/ImageResource.java b/src/org/openprince/dat/ImageResource.java
index 54a0945..8153084 100644
--- a/src/org/openprince/dat/ImageResource.java
+++ b/src/org/openprince/dat/ImageResource.java
@@ -1,235 +1,235 @@
package org.openprince.dat;
import java.nio.ByteBuffer;
import java.ut... | false | true | public void renderToSheet(SpriteSheet sheet, PaletteResource pal, int sx,
int sy) {
this.sheet = sheet;
sheetX = sx;
sheetY = sy;
try {
int bits = 0;
int val = 0;
int pos = 0;
int pixel = 0;
if (direction == ImageDirection.LEFT_RIGHT) {
int xoffs = 8 / bpp - 1;
for (int y = 0; y < h... | public void renderToSheet(SpriteSheet sheet, PaletteResource pal, int sx,
int sy) {
this.sheet = sheet;
sheetX = sx;
sheetY = sy;
try {
int bits = 0;
int val = 0;
int pos = 0;
int pixel = 0;
if (direction == ImageDirection.LEFT_RIGHT) {
int xoffs = 8 / bpp - 1;
for (int y = 0; y < h... |
diff --git a/src/main/java/com/geNAZt/RegionShop/Data/Tasks/PriceRecalculateTask.java b/src/main/java/com/geNAZt/RegionShop/Data/Tasks/PriceRecalculateTask.java
index 334abd2..8fb3d90 100644
--- a/src/main/java/com/geNAZt/RegionShop/Data/Tasks/PriceRecalculateTask.java
+++ b/src/main/java/com/geNAZt/RegionShop/Data/Tas... | true | true | public void run() {
for (ServerShop shop : ConfigManager.servershop.ServerShops) {
for (Item item : shop.Items) {
Items itemInShop = Database.getServer().find(Items.class).
setUseCache(false).
setReadOnly(false).
... | public void run() {
for (ServerShop shop : ConfigManager.servershop.ServerShops) {
for (Item item : shop.Items) {
Items itemInShop = Database.getServer().find(Items.class).
setUseCache(false).
setReadOnly(false).
... |
diff --git a/src/com/android/phone/CallNotifier.java b/src/com/android/phone/CallNotifier.java
index 3fb3df7c..babaefcb 100755
--- a/src/com/android/phone/CallNotifier.java
+++ b/src/com/android/phone/CallNotifier.java
@@ -1,1558 +1,1561 @@
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed und... | true | true | private void onDisconnect(AsyncResult r) {
if (VDBG) log("onDisconnect()... phone state: " + mPhone.getState());
mCdmaVoicePrivacyState = false;
int autoretrySetting = 0;
if (mPhone.getPhoneName().equals("CDMA")) {
autoretrySetting = android.provider.Settings.System.get... | private void onDisconnect(AsyncResult r) {
if (VDBG) log("onDisconnect()... phone state: " + mPhone.getState());
mCdmaVoicePrivacyState = false;
int autoretrySetting = 0;
if (mPhone.getPhoneName().equals("CDMA")) {
autoretrySetting = android.provider.Settings.System.get... |
diff --git a/chris-geometric-correction/src/main/java/org/esa/beam/chris/operators/GeometryCalculator.java b/chris-geometric-correction/src/main/java/org/esa/beam/chris/operators/GeometryCalculator.java
index 6c3c1bd..9e476b2 100644
--- a/chris-geometric-correction/src/main/java/org/esa/beam/chris/operators/GeometryCal... | true | true | void calculate(IctDataRecord ictData, List<GpsDataRecord> gpsData, GCP[] gcps, boolean useTargetAltitude) {
//////////////////////////
// Prepare Time Frames
//////////////////////////
// The last element of ict_njd corresponds to the acquisition setup time, that occurs 390s before ... | void calculate(IctDataRecord ictData, List<GpsDataRecord> gpsData, GCP[] gcps, boolean useTargetAltitude) {
//////////////////////////
// Prepare Time Frames
//////////////////////////
// The last element of ict_njd corresponds to the acquisition setup time, that occurs 390s before ... |
diff --git a/subprojects/demo-javafx/server/src/main/groovy/com/canoo/dolphin/demo/PerformanceAction.java b/subprojects/demo-javafx/server/src/main/groovy/com/canoo/dolphin/demo/PerformanceAction.java
index 5e4118fc..08b9341b 100644
--- a/subprojects/demo-javafx/server/src/main/groovy/com/canoo/dolphin/demo/Performance... | true | true | public void registerIn(final ActionRegistry registry) {
registry.register("sync", new CommandHandler() {
public void handleCommand(Command command, List response) {
// do nothing
// this is only for synchronizing the timer after "clear"
}
});
... | public void registerIn(final ActionRegistry registry) {
registry.register("sync", new CommandHandler() {
public void handleCommand(Command command, List response) {
// do nothing
// this is only for synchronizing the timer after "clear"
}
});
... |
diff --git a/src/org/apache/xerces/validators/schema/TraverseSchema.java b/src/org/apache/xerces/validators/schema/TraverseSchema.java
index 4be46357..68cc4418 100644
--- a/src/org/apache/xerces/validators/schema/TraverseSchema.java
+++ b/src/org/apache/xerces/validators/schema/TraverseSchema.java
@@ -1,4499 +1,4499 @@... | true | true | private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception {
String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT );
String base = complexTypeDecl.getAttribute(SchemaSymbols.ATT_BASE);
String blockSet = complexTypeDecl.getAttribute( SchemaSymbols... | private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception {
String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT );
String base = complexTypeDecl.getAttribute(SchemaSymbols.ATT_BASE);
String blockSet = complexTypeDecl.getAttribute( SchemaSymbols... |
diff --git a/test/src/framework/FXCompilerTestCase.java b/test/src/framework/FXCompilerTestCase.java
index 405d7a797..cd2a4dd5d 100644
--- a/test/src/framework/FXCompilerTestCase.java
+++ b/test/src/framework/FXCompilerTestCase.java
@@ -1,225 +1,228 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.... | false | true | private static JavafxCompiler compilerLocator() {
Iterator<?> iterator;
Class<?> loaderClass;
String loadMethodName;
boolean usingServiceLoader;
try {
loaderClass = Class.forName("java.util.ServiceLoader");
loadMethodName = "load";
usingSe... | private static JavafxCompiler compilerLocator() {
Iterator<?> iterator;
Class<?> loaderClass;
String loadMethodName;
boolean usingServiceLoader;
try {
loaderClass = Class.forName("java.util.ServiceLoader");
loadMethodName = "load";
usingSe... |
diff --git a/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java b/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java
index 6299e4e..6f9ca9e 100644
--- a/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java
+++ b/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java
@@ -1,83 +1,84 @@
package ... | true | true | public void run() {
DecodedAudioData audioData = null;
try {
audioData = AudioDecoder.getSamples(track.getFilepath(), 135);
} catch (FileNotFoundException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} ca... | public void run() {
DecodedAudioData audioData = null;
try {
audioData = AudioDecoder.getSamples(track.getFilepath(), 135);
} catch (FileNotFoundException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} ca... |
diff --git a/src/org/openstreetmap/josm/gui/MapView.java b/src/org/openstreetmap/josm/gui/MapView.java
index 82215edf..5297cfa8 100644
--- a/src/org/openstreetmap/josm/gui/MapView.java
+++ b/src/org/openstreetmap/josm/gui/MapView.java
@@ -1,550 +1,550 @@
// License: GPL. See LICENSE file for details.
package org.op... | true | true | @Override public void paint(Graphics g) {
if (center == null)
return; // no data loaded yet.
// re-create offscreen-buffer if we've been resized, otherwise
// just re-use it.
if (null == offscreenBuffer || offscreenBuffer.getWidth() != getWidth()
|| offsc... | @Override public void paint(Graphics g) {
if (center == null)
return; // no data loaded yet.
// re-create offscreen-buffer if we've been resized, otherwise
// just re-use it.
if (null == offscreenBuffer || offscreenBuffer.getWidth() != getWidth()
|| offsc... |
diff --git a/src/test/java/edu/mines/acmX/exhibit/module_management/ModuleManagerWithKinectPluggedInTest.java b/src/test/java/edu/mines/acmX/exhibit/module_management/ModuleManagerWithKinectPluggedInTest.java
index 1b81306..4edc48b 100644
--- a/src/test/java/edu/mines/acmX/exhibit/module_management/ModuleManagerWithKin... | true | true | public void testNoRevertAndOkayOnGoodDriverRequest() throws ManifestLoadException, ModuleLoadException, HardwareManagerManifestException, BadDeviceFunctionalityRequestException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {... | public void testNoRevertAndOkayOnGoodDriverRequest() throws ManifestLoadException, ModuleLoadException, HardwareManagerManifestException, BadDeviceFunctionalityRequestException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {... |
diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieProject.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieProject.java
index af72ac6528..f7d8759ad3 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKiePro... | true | true | protected void indexParts(Collection<InternalKieModule> kieModules,
Map<String, InternalKieModule> kJarFromKBaseName) {
for ( InternalKieModule kJar : kieModules ) {
KieModuleModel kieProject = kJar.getKieModuleModel();
for ( KieBaseModel kieBaseModel : ... | protected void indexParts(Collection<InternalKieModule> kieModules,
Map<String, InternalKieModule> kJarFromKBaseName) {
for ( InternalKieModule kJar : kieModules ) {
KieModuleModel kieProject = kJar.getKieModuleModel();
for ( KieBaseModel kieBaseModel : ... |
diff --git a/src/org/apache/sandesha2/msgprocessors/SequenceProcessor.java b/src/org/apache/sandesha2/msgprocessors/SequenceProcessor.java
index 00e0dc09..f2219194 100644
--- a/src/org/apache/sandesha2/msgprocessors/SequenceProcessor.java
+++ b/src/org/apache/sandesha2/msgprocessors/SequenceProcessor.java
@@ -1,379 +1,... | true | true | public InvocationResponse processReliableMessage(RMMsgContext rmMsgCtx) throws AxisFault {
if (log.isDebugEnabled())
log.debug("Enter: SequenceProcessor::processReliableMessage");
InvocationResponse result = InvocationResponse.CONTINUE;
if (rmMsgCtx.getProperty(Sandesha2Constants.APPLICATION_PROCESSING_DO... | public InvocationResponse processReliableMessage(RMMsgContext rmMsgCtx) throws AxisFault {
if (log.isDebugEnabled())
log.debug("Enter: SequenceProcessor::processReliableMessage");
InvocationResponse result = InvocationResponse.CONTINUE;
if (rmMsgCtx.getProperty(Sandesha2Constants.APPLICATION_PROCESSING_DO... |
diff --git a/src/main/java/net/vhati/modmanager/core/XMLPatcher.java b/src/main/java/net/vhati/modmanager/core/XMLPatcher.java
index 14673e7..22a6422 100644
--- a/src/main/java/net/vhati/modmanager/core/XMLPatcher.java
+++ b/src/main/java/net/vhati/modmanager/core/XMLPatcher.java
@@ -1,571 +1,571 @@
package net.vhati.... | false | true | protected List<Element> handleModFind( Element contextNode, Element node ) {
List<Element> result = null;
if ( node.getNamespace().equals( modNS ) ) {
if ( node.getName().equals( "findName" ) ) {
String searchName = node.getAttributeValue( "name" );
String searchType = node.getAttributeValue( "type" ... | protected List<Element> handleModFind( Element contextNode, Element node ) {
List<Element> result = null;
if ( node.getNamespace().equals( modNS ) ) {
if ( node.getName().equals( "findName" ) ) {
String searchName = node.getAttributeValue( "name" );
String searchType = node.getAttributeValue( "type" ... |
diff --git a/src/net/derkholm/nmica/extra/app/seq/FeatureToFeatureDistance.java b/src/net/derkholm/nmica/extra/app/seq/FeatureToFeatureDistance.java
index 64c0d76..97f54d5 100644
--- a/src/net/derkholm/nmica/extra/app/seq/FeatureToFeatureDistance.java
+++ b/src/net/derkholm/nmica/extra/app/seq/FeatureToFeatureDistance.... | true | true | public void main(String[] args) throws Exception {
final OutputStream os;
if (this.outFile == null) {
os = System.out;
} else {
os = new FileOutputStream(this.outFile);
}
this.gffWriter = new GFFWriter(new PrintWriter(os));
Map<String, List<GFFRecord>> featureMap = GFFUtils.gffToRecordMap(this.f... | public void main(String[] args) throws Exception {
final OutputStream os;
if (this.outFile == null) {
os = System.out;
} else {
os = new FileOutputStream(this.outFile);
}
this.gffWriter = new GFFWriter(new PrintWriter(os));
Map<String, List<GFFRecord>> featureMap = GFFUtils.gffToRecordMap(this.f... |
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchConfigurationPanel1.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchConfigurationPanel1.java
index 5fb36b2c5..39d111e9c 100644
--- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchConfigurationP... | true | true | private void customizeComponents() {
listsManagementPanel = new KeywordSearchListsManagementPanel();
editListPanel = new KeywordSearchEditListPanel();
listsManagementPanel.addListSelectionListener(editListPanel);
editListPanel.addDeleteButtonActionPerformed(new ActionListener() {
... | private void customizeComponents() {
listsManagementPanel = new KeywordSearchListsManagementPanel();
editListPanel = new KeywordSearchEditListPanel();
listsManagementPanel.addListSelectionListener(editListPanel);
editListPanel.addDeleteButtonActionPerformed(new ActionListener() {
... |
diff --git a/services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationDocumentModelHandler.java b/services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationDocumentModelHandler.java
index 4d131ca8e..2c394b3a3 100644
--- a/services/relation/service/src... | true | true | private DocumentModel getSubjectOrObjectDocModel(
RepositoryInstance repoSession,
DocumentModel relationDocModel,
boolean fSubject) throws Exception {
ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = this.getServiceContext();
// Get the document model for the object of the rela... | private DocumentModel getSubjectOrObjectDocModel(
RepositoryInstance repoSession,
DocumentModel relationDocModel,
boolean fSubject) throws Exception {
ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = this.getServiceContext();
// Get the document model for the object of the rela... |
diff --git a/src/main/java/com/silverpeas/migration/questionreply/ReplyContent.java b/src/main/java/com/silverpeas/migration/questionreply/ReplyContent.java
index ac7ca95..b030d6f 100644
--- a/src/main/java/com/silverpeas/migration/questionreply/ReplyContent.java
+++ b/src/main/java/com/silverpeas/migration/questionrep... | true | true | public ReplyContent(int id, String instanceId, String content) {
if (content != null) {
this.content = content;
} else {
this.content = "";
}
this.instanceId = instanceId;
this.id = id;
}
| public ReplyContent(int id, String instanceId, String content) {
if (content != null) {
this.content = content.replace("\r\n", "<br/>").replace("\n", "<br/>");
} else {
this.content = "";
}
this.instanceId = instanceId;
this.id = id;
}
|
diff --git a/src/org/subsurface/ws/json/DiveParser.java b/src/org/subsurface/ws/json/DiveParser.java
index be717f8..5788192 100644
--- a/src/org/subsurface/ws/json/DiveParser.java
+++ b/src/org/subsurface/ws/json/DiveParser.java
@@ -1,52 +1,54 @@
package org.subsurface.ws.json;
import java.io.ByteArrayOutputStream;... | false | true | public static List<DiveLocationLog> parseDives(InputStream in) throws JSONException, IOException {
ArrayList<DiveLocationLog> dives = new ArrayList<DiveLocationLog>();
// Get stream content
ByteArrayOutputStream streamContent = new ByteArrayOutputStream();
byte[] buff = new byte[1024];
int readBytes;
wh... | public static List<DiveLocationLog> parseDives(InputStream in) throws JSONException, IOException {
ArrayList<DiveLocationLog> dives = new ArrayList<DiveLocationLog>();
// Get stream content
ByteArrayOutputStream streamContent = new ByteArrayOutputStream();
byte[] buff = new byte[1024];
int readBytes;
wh... |
diff --git a/src/main/ed/js/E4X.java b/src/main/ed/js/E4X.java
index f5b877bba..3de96f578 100644
--- a/src/main/ed/js/E4X.java
+++ b/src/main/ed/js/E4X.java
@@ -1,1756 +1,1766 @@
// E4X.java
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* ... | false | true | public Object set( Object k, Object v ) {
if( v == null )
v = "null";
if(this.children == null ) this.children = new LinkedList<ENode>();
if( k.toString().startsWith("@") )
return setAttribute(k.toString(), v.toString());
// atta... | public Object set( Object k, Object v ) {
if( v == null )
v = "null";
if(this.children == null ) this.children = new LinkedList<ENode>();
if( k.toString().startsWith("@") )
return setAttribute(k.toString(), v.toString());
// atta... |
diff --git a/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/form/fields/tablefield/SwingScoutTableField.java b/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/form/fields/tablefield/SwingScoutTableField.java
index d3b2030b0d..ed67ca9243 100644
--- a/org.eclipse.scout.rt.ui.swing/src/org... | true | true | protected void setTableFromScout() {
ITable oldTable = m_tableComposite != null ? m_tableComposite.getScoutObject() : null;
ITable newTable = getScoutObject().getTable();
if (oldTable != newTable) {
JComponent container = getSwingContainer();
if (m_tableComposite != null) {
container.r... | protected void setTableFromScout() {
ITable oldTable = m_tableComposite != null ? m_tableComposite.getScoutObject() : null;
ITable newTable = getScoutObject().getTable();
if (oldTable != newTable) {
JComponent container = getSwingContainer();
if (m_tableComposite != null) {
container.r... |
diff --git a/src-pos/com/openbravo/pos/inventory/TaxEditor.java b/src-pos/com/openbravo/pos/inventory/TaxEditor.java
index e0e5632..63f71cb 100644
--- a/src-pos/com/openbravo/pos/inventory/TaxEditor.java
+++ b/src-pos/com/openbravo/pos/inventory/TaxEditor.java
@@ -1,272 +1,272 @@
// Openbravo POS is a point of sale... | true | true | private void initComponents() {
m_jName = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
m_jRate = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLa... | private void initComponents() {
m_jName = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
m_jRate = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLa... |
diff --git a/SpaceFarmer/src/App/factory/UniverseFactory.java b/SpaceFarmer/src/App/factory/UniverseFactory.java
index b4f379b..db9ba50 100644
--- a/SpaceFarmer/src/App/factory/UniverseFactory.java
+++ b/SpaceFarmer/src/App/factory/UniverseFactory.java
@@ -1,118 +1,119 @@
package App.factory;
import App.model.*;
i... | false | true | public static void createUniverse(List<String> planetNames,List<String> planetarySystemNames, int numPlanets,int numSystems,int systemRows, int systemCols, int uniRows, int uniCols,int quadrantXDimension,int quadrantYDimension,int minDistance){
planets = new HashMap<String, Planet>();
systems= new ... | public static void createUniverse(List<String> planetNames,List<String> planetarySystemNames, int numPlanets,int numSystems,int systemRows, int systemCols, int uniRows, int uniCols,int quadrantXDimension,int quadrantYDimension,int minDistance){
planets = new HashMap<String, Planet>();
systems= new ... |
diff --git a/yaogan-web/src/main/java/com/rockontrol/yaogan/spring/ext/ServiceProperties.java b/yaogan-web/src/main/java/com/rockontrol/yaogan/spring/ext/ServiceProperties.java
index 055e243..9a2dbf0 100644
--- a/yaogan-web/src/main/java/com/rockontrol/yaogan/spring/ext/ServiceProperties.java
+++ b/yaogan-web/src/main/... | true | true | public final String getService() {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder
.getRequestAttributes()).getRequest();
String host = request.getHeader("HOST");
StringBuilder sb = new StringBuilder();
sb.append("http://").append(host)
.a... | public final String getService() {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder
.getRequestAttributes()).getRequest();
String host = request.getHeader("HOST");
StringBuilder sb = new StringBuilder();
sb.append("http://").append(host).append(request... |
diff --git a/src/main/java/com/censoredsoftware/Demigods/Engine/Object/Deity/Deity.java b/src/main/java/com/censoredsoftware/Demigods/Engine/Object/Deity/Deity.java
index 25d53870..2f64f930 100644
--- a/src/main/java/com/censoredsoftware/Demigods/Engine/Object/Deity/Deity.java
+++ b/src/main/java/com/censoredsoftware/D... | true | true | public static boolean canUseDeity(Player player, String deity)
{
PlayerCharacter character = PlayerWrapper.getPlayer(player).getCurrent();
if(!character.isDeity(deity))
{
player.sendMessage(ChatColor.RED + "You haven't claimed " + deity + "! You can't do that!");
return false;
}
else if(!character.isI... | public static boolean canUseDeity(Player player, String deity)
{
PlayerCharacter character = PlayerWrapper.getPlayer(player).getCurrent();
if(character == null) return false;
if(!character.isDeity(deity))
{
player.sendMessage(ChatColor.RED + "You haven't claimed " + deity + "! You can't do that!");
retu... |
diff --git a/modules/unsupported/ogr/src/test/java/org/geotools/data/ogr/OGRDataStoreFactoryTest.java b/modules/unsupported/ogr/src/test/java/org/geotools/data/ogr/OGRDataStoreFactoryTest.java
index 6bc614efb..44fead8a4 100644
--- a/modules/unsupported/ogr/src/test/java/org/geotools/data/ogr/OGRDataStoreFactoryTest.jav... | true | true | public void testNamespace() throws Exception {
OGRDataStoreFactory factory = new OGRDataStoreFactory();
Map map = new HashMap();
URI namespace = new URI("http://jesse.com");
map.put(OGRDataStoreFactory.NAMESPACEP.key, namespace);
map.put(OGRDataStoreFactory.OGR_NAME.key, getA... | public void testNamespace() throws Exception {
OGRDataStoreFactory factory = new OGRDataStoreFactory();
Map map = new HashMap();
URI namespace = new URI("http://jesse.com");
map.put(OGRDataStoreFactory.NAMESPACEP.key, namespace);
map.put(OGRDataStoreFactory.OGR_NAME.key, getA... |
diff --git a/odata4j-core/src/main/java/org/odata4j/producer/jpa/JPAProducer.java b/odata4j-core/src/main/java/org/odata4j/producer/jpa/JPAProducer.java
index ba32b784..034da4b4 100644
--- a/odata4j-core/src/main/java/org/odata4j/producer/jpa/JPAProducer.java
+++ b/odata4j-core/src/main/java/org/odata4j/producer/jpa/JP... | true | true | private DynamicEntitiesResponse enumJpaEntities(final Context context, final String navProp) {
String alias = "t0";
String from = context.jpaEntityType.getName() + " " + alias;
String where = null;
Object edmObj = null;
if (navProp != null) {
where = String.format(
"(%s.%s = %s)",
alias,
... | private DynamicEntitiesResponse enumJpaEntities(final Context context, final String navProp) {
String alias = "t0";
String from = context.jpaEntityType.getName() + " " + alias;
String where = null;
Object edmObj = null;
if (navProp != null) {
where = String.format(
"(%s.%s = %s)",
alias,
... |
diff --git a/navit/navit/android/src/org/navitproject/navit/Navit.java b/navit/navit/android/src/org/navitproject/navit/Navit.java
index cac593ed..65cd037a 100644
--- a/navit/navit/android/src/org/navitproject/navit/Navit.java
+++ b/navit/navit/android/src/org/navitproject/navit/Navit.java
@@ -1,781 +1,783 @@
/**
* ... | false | 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/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/plandump/PlanJSONDumpGenerator.java b/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/plandump/PlanJSONDumpGenerator.java
index 019ab6cba..5c14076e5 100644
--- a/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/plan... | true | true | private void visit(DumpableNode<?> node, PrintWriter writer, boolean first) {
// check for duplicate traversal
if (this.nodeIds.containsKey(node)) {
return;
}
// assign an id first
this.nodeIds.put(node, this.nodeCnt++);
// then recurse
for (Iterator<? extends DumpableNode<?>> children = node.ge... | private void visit(DumpableNode<?> node, PrintWriter writer, boolean first) {
// check for duplicate traversal
if (this.nodeIds.containsKey(node)) {
return;
}
// assign an id first
this.nodeIds.put(node, this.nodeCnt++);
// then recurse
for (Iterator<? extends DumpableNode<?>> children = node.ge... |
diff --git a/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java b/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java
index d57ba9a..378b2b2 100644
--- a/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java
+++ b/issues/jira/src/m... | false | true | protected IssueWrapper createIssueWrapper(RemoteIssue issue, String subTaskKey) throws IssueManagementException {
Releases issueReleases = new Releases();
Map<String, String> issueReleaseMap = new HashMap<String, String>();
for (RemoteVersion remoteVersion : issue.getFixVersions()) {
... | protected IssueWrapper createIssueWrapper(RemoteIssue issue, String subTaskKey) throws IssueManagementException {
Releases issueReleases = new Releases();
Map<String, String> issueReleaseMap = new HashMap<String, String>();
for (RemoteVersion remoteVersion : issue.getFixVersions()) {
... |
diff --git a/core/src/main/java/tripleplay/util/Randoms.java b/core/src/main/java/tripleplay/util/Randoms.java
index f95f92ed..415c1def 100644
--- a/core/src/main/java/tripleplay/util/Randoms.java
+++ b/core/src/main/java/tripleplay/util/Randoms.java
@@ -1,286 +1,282 @@
//
// Triple Play - utilities for use in PlayN-... | false | true | protected <T> T pickPluck (Iterable<? extends T> iterable, T ifEmpty, boolean remove) {
if (iterable instanceof Collection) {
// optimized path for Collection
@SuppressWarnings("unchecked")
Collection<? extends T> coll = (Collection<? extends T>)iterable;
int ... | protected <T> T pickPluck (Iterable<? extends T> iterable, T ifEmpty, boolean remove) {
if (iterable instanceof Collection) {
// optimized path for Collection
Collection<? extends T> coll = (Collection<? extends T>)iterable;
int size = coll.size();
if (size ==... |
diff --git a/public/java/test/org/broadinstitute/sting/gatk/walkers/indels/RealignerTargetCreatorIntegrationTest.java b/public/java/test/org/broadinstitute/sting/gatk/walkers/indels/RealignerTargetCreatorIntegrationTest.java
index cc67c354a..f5ed69476 100755
--- a/public/java/test/org/broadinstitute/sting/gatk/walkers/... | true | true | public void testIntervals() {
WalkerTest.WalkerTestSpec spec1 = new WalkerTest.WalkerTestSpec(
"-T RealignerTargetCreator -R " + b36KGReference + " -I " + validationDataLocation + "NA12878.1kg.p2.chr1_10mb_11_mb.SLX.bam --mismatchFraction 0.15 -L 1:10,000,000-10,050,000 -o %s",
... | public void testIntervals() {
WalkerTest.WalkerTestSpec spec1 = new WalkerTest.WalkerTestSpec(
"-T RealignerTargetCreator -R " + b36KGReference + " -I " + validationDataLocation + "NA12878.1kg.p2.chr1_10mb_11_mb.SLX.bam --mismatchFraction 0.15 -L 1:10,000,000-10,050,000 -o %s",
... |
diff --git a/src/com/android/settings/deviceinfo/Status.java b/src/com/android/settings/deviceinfo/Status.java
index a16575410..7d22d913a 100644
--- a/src/com/android/settings/deviceinfo/Status.java
+++ b/src/com/android/settings/deviceinfo/Status.java
@@ -1,402 +1,420 @@
/*
* Copyright (C) 2008 The Android Open Sou... | false | true | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
mHandler = new MyHandler(this);
mTelephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
addPreferencesFromResource(R.xml.device_info_status);
mBatteryLevel = findPreference("battery... | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
Preference removablePref;
mHandler = new MyHandler(this);
mTelephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
addPreferencesFromResource(R.xml.device_info_status);
mBatt... |
diff --git a/src/nayuki/huffmancoding/CircularDictionary.java b/src/nayuki/huffmancoding/CircularDictionary.java
index fc22092..7341fac 100644
--- a/src/nayuki/huffmancoding/CircularDictionary.java
+++ b/src/nayuki/huffmancoding/CircularDictionary.java
@@ -1,40 +1,40 @@
package nayuki.huffmancoding;
import java.io.... | true | true | public void copy(int dist, int len, OutputStream out) throws IOException {
if (len < 0 || dist < 1 || dist >= data.length)
throw new IllegalArgumentException();
int readIndex = (index - dist + data.length) % data.length;
for (int i = 0; i < len; i++) {
out.write(data[readIndex]);
data[index] = data[read... | public void copy(int dist, int len, OutputStream out) throws IOException {
if (len < 0 || dist < 1 || dist > data.length)
throw new IllegalArgumentException();
int readIndex = (index - dist + data.length) % data.length;
for (int i = 0; i < len; i++) {
out.write(data[readIndex]);
data[index] = data[readI... |
diff --git a/src/com/android/browser/BrowserDownloadAdapter.java b/src/com/android/browser/BrowserDownloadAdapter.java
index 68d3a832..16cb9828 100644
--- a/src/com/android/browser/BrowserDownloadAdapter.java
+++ b/src/com/android/browser/BrowserDownloadAdapter.java
@@ -1,221 +1,222 @@
/*
* Copyright (C) 2007 The An... | true | true | public void bindView(View view, Context context, Cursor cursor) {
Resources r = context.getResources();
// Retrieve the icon for this download
String mimeType = cursor.getString(mMimetypeColumnId);
ImageView iv = (ImageView) view.findViewById(R.id.download_icon);
if ... | public void bindView(View view, Context context, Cursor cursor) {
Resources r = context.getResources();
// Retrieve the icon for this download
String mimeType = cursor.getString(mMimetypeColumnId);
ImageView iv = (ImageView) view.findViewById(R.id.download_icon);
if ... |
diff --git a/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/svn/SVNNotifyPrinter.java b/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/svn/SVNNotifyPrinter.java
index 30ae33c3b..52bf9fd0e 100644
--- a/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/svn/SVNNotifyPrinter.java
+++ b/svnkit-cli/src/main/java/org/tmatesoft/s... | false | true | public void handleEvent(SVNEvent event, double progress) throws SVNException {
File file = event.getFile();
String path = null;
if (file != null) {
path = myEnvironment.getRelativePath(file);
path = SVNCommandUtil.getLocalPath(path);
}
PrintStream out ... | public void handleEvent(SVNEvent event, double progress) throws SVNException {
File file = event.getFile();
String path = null;
if (file != null) {
path = myEnvironment.getRelativePath(file);
path = SVNCommandUtil.getLocalPath(path);
}
PrintStream out ... |
diff --git a/org/lateralgm/main/Listener.java b/org/lateralgm/main/Listener.java
index 52a73f32..71143267 100644
--- a/org/lateralgm/main/Listener.java
+++ b/org/lateralgm/main/Listener.java
@@ -1,451 +1,459 @@
/*
* Copyright (C) 2007, 2008, 2009, 2010 IsmAvatar <IsmAvatar@gmail.com>
* Copyright (C) 2007 TGMG <the... | true | true | public void actionPerformed(ActionEvent e)
{
JTree tree = LGM.tree;
String[] args = e.getActionCommand().split(" "); //$NON-NLS-1$
String com = args[0];
if (com.endsWith(".NEW")) //$NON-NLS-1$
{
String title = Messages.getString("Listener.CONFIRM_NEW_TITLE"); //$NON-NLS-1$
String message = Messages.... | public void actionPerformed(ActionEvent e)
{
JTree tree = LGM.tree;
String[] args = e.getActionCommand().split(" "); //$NON-NLS-1$
String com = args[0];
if (com.endsWith(".NEW")) //$NON-NLS-1$
{
String title = Messages.getString("Listener.CONFIRM_NEW_TITLE"); //$NON-NLS-1$
String message = Messages.... |
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 9710669f..9402a77d 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -1,2779 +1,2787 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed und... | false | true | public boolean onOptionsItemSelected(MenuItem item) {
if (null == getCurrentTopWebView()) {
return false;
}
if (mMenuIsDown) {
// The shortcut action consumes the MENU. Even if it is still down,
// it won't trigger the next shortcut action. In the case of ... | public boolean onOptionsItemSelected(MenuItem item) {
if (null == getCurrentTopWebView()) {
return false;
}
if (mMenuIsDown) {
// The shortcut action consumes the MENU. Even if it is still down,
// it won't trigger the next shortcut action. In the case of ... |
diff --git a/MolGenExp/src/biochem/Protex.java b/MolGenExp/src/biochem/Protex.java
index 7c7fc8f5..81345f60 100644
--- a/MolGenExp/src/biochem/Protex.java
+++ b/MolGenExp/src/biochem/Protex.java
@@ -1,155 +1,157 @@
package biochem;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
i... | false | true | private void setupUI() {
JPanel leftPanel = new JPanel();
leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));
leftPanel.add(Box.createRigidArea(new Dimension(200,1)));
JPanel aapPanel = new JPanel();
aapPanel.setBorder(BorderFactory.createTitledBorder("Amino acids"));
AminoAcidPalette aaPalet... | private void setupUI() {
JPanel leftPanel = new JPanel();
leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));
leftPanel.add(Box.createRigidArea(new Dimension(200,1)));
JPanel aapPanel = new JPanel();
aapPanel.setLayout(new BoxLayout(aapPanel, BoxLayout.X_AXIS));
aapPanel.setBorder(BorderFacto... |
diff --git a/src/org/apache/ws/security/components/crypto/AbstractCrypto.java b/src/org/apache/ws/security/components/crypto/AbstractCrypto.java
index 99da06790..22e56dd3c 100644
--- a/src/org/apache/ws/security/components/crypto/AbstractCrypto.java
+++ b/src/org/apache/ws/security/components/crypto/AbstractCrypto.java... | true | true | public AbstractCrypto(Properties properties, ClassLoader loader) throws CredentialException, IOException {
this.properties = properties;
String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
InputStream is = null;
java.net.URL url = Loader.getResource(loa... | public AbstractCrypto(Properties properties, ClassLoader loader) throws CredentialException, IOException {
this.properties = properties;
if (this.properties == null) {
return;
}
String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
... |
diff --git a/src/main/java/net/glxn/jmsutility/JMSUtility.java b/src/main/java/net/glxn/jmsutility/JMSUtility.java
index 441f733..c091ac7 100644
--- a/src/main/java/net/glxn/jmsutility/JMSUtility.java
+++ b/src/main/java/net/glxn/jmsutility/JMSUtility.java
@@ -1,168 +1,168 @@
package net.glxn.jmsutility;
import net... | true | true | protected void validateInputFields() {
if (!jmsServerUrl.getText().matches("\\w{2,5}://\\[a-zA-Z0-9]*:\\d{2,6}")) {
showErrorPane("input validation error", "JMS Server URL is not a valid URL. " +
"\n\n should be: [protocol]://[host]:[port]" +
"\n example: ... | protected void validateInputFields() {
if (!jmsServerUrl.getText().matches("\\w{2,5}://.*:\\d{2,6}")) {
showErrorPane("input validation error", "JMS Server URL is not a valid URL. " +
"\n\n should be: [protocol]://[host]:[port]" +
"\n example: tcp://loca... |
diff --git a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java
index 634ff193..948cff50 100644
--- a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java
+++ b/MyTracksTest/sr... | true | true | public void testShareActivity() {
// Try all share item.
for (int i = 0;; i++) {
View oneItemView = findShareItem(i);
if (oneItemView == null) {
break;
}
EndToEndTestUtils.SOLO.clickOnView(oneItemView);
EndToEndTestUtils.getButtonOnScreen(activityMyTracks.getString(R.stri... | public void testShareActivity() {
// Try all share item.
for (int i = 0;; i++) {
View oneItemView = findShareItem(i);
if (oneItemView == null) {
break;
}
EndToEndTestUtils.SOLO.clickOnView(oneItemView);
EndToEndTestUtils.getButtonOnScreen(activityMyTracks.getString(R.stri... |
diff --git a/vlcj/src/test/java/uk/co/caprica/vlcj/test/factory/FilterTest.java b/vlcj/src/test/java/uk/co/caprica/vlcj/test/factory/FilterTest.java
index fcc68249..33107cfd 100644
--- a/vlcj/src/test/java/uk/co/caprica/vlcj/test/factory/FilterTest.java
+++ b/vlcj/src/test/java/uk/co/caprica/vlcj/test/factory/FilterTes... | true | true | public static void main(String[] args) throws Exception {
String[] libvlcArgs = new String[] {};
MediaPlayerFactory factory = new MediaPlayerFactory(libvlcArgs, LibVlc.INSTANCE);
System.out.println("Audio Filters:");
System.out.println();
System.out.printf(FORMAT_PATTERN , "#", "Name", ... | public static void main(String[] args) throws Exception {
String[] libvlcArgs = new String[] {};
MediaPlayerFactory factory = new MediaPlayerFactory(libvlcArgs, LibVlc.INSTANCE);
System.out.println("Audio Filters:");
System.out.println();
System.out.printf(FORMAT_PATTERN , "#", "Name", ... |
diff --git a/Android/OpenMenu/src/com/net/rmopenmenu/MainActivity.java b/Android/OpenMenu/src/com/net/rmopenmenu/MainActivity.java
index bd9757a..3a018e1 100644
--- a/Android/OpenMenu/src/com/net/rmopenmenu/MainActivity.java
+++ b/Android/OpenMenu/src/com/net/rmopenmenu/MainActivity.java
@@ -1,154 +1,155 @@
/*
* Cop... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.fragment_tabs_pager);
mTabHost = (T... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.fragment_tabs_pager);
mTabHost = (T... |
diff --git a/src/main/java/me/tehbeard/BeardAch/achievement/Achievement.java b/src/main/java/me/tehbeard/BeardAch/achievement/Achievement.java
index 2670733..e039b0e 100644
--- a/src/main/java/me/tehbeard/BeardAch/achievement/Achievement.java
+++ b/src/main/java/me/tehbeard/BeardAch/achievement/Achievement.java
@@ -1,1... | true | true | public boolean checkAchievement(Player player){
if(player==null){
return false;
}
for(AchievementPlayerLink link : BeardAch.self.getAchievementManager().playerHasCache.get(player.getName())){
if(link.getSlug().equals(slug)){
return false;
}
}
for(ITrigger trigger:triggers){
if(!trigger.check... | public boolean checkAchievement(Player player){
if(player==null){
return false;
}
for(AchievementPlayerLink link : BeardAch.self.getAchievementManager().playerHasCache.get(player.getName())){
if(link.getSlug().equals(slug)){
return false;
}
}
for(ITrigger trigger:triggers){
if(!trigger.check... |
diff --git a/src/main/java/org/basex/gui/view/info/InfoView.java b/src/main/java/org/basex/gui/view/info/InfoView.java
index 2eb9fcd2d..0ab7db5a1 100644
--- a/src/main/java/org/basex/gui/view/info/InfoView.java
+++ b/src/main/java/org/basex/gui/view/info/InfoView.java
@@ -1,294 +1,294 @@
package org.basex.gui.view.inf... | true | true | public void setInfo(final String info, final Command cmd, final String time,
final boolean ok) {
final StringList eval = new StringList();
final StringList comp = new StringList();
final StringList plan = new StringList();
final StringList sl = new StringList();
final StringList stats = new... | public void setInfo(final String info, final Command cmd, final String time,
final boolean ok) {
final StringList eval = new StringList();
final StringList comp = new StringList();
final StringList plan = new StringList();
final StringList sl = new StringList();
final StringList stats = new... |
diff --git a/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/states/ProductionRecordStateService.java b/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/states/ProductionRecordStateService.java
index eb9962c380..44e... | true | true | public void disabledFieldWhenStateNotDraft(final ViewDefinitionState view) {
if (!(view instanceof ViewDefinitionState)) {
return;
}
FormComponent form = (FormComponent) view.getComponentByReference("form");
if (form.getEntity() == null) {
return;
}
... | public void disabledFieldWhenStateNotDraft(final ViewDefinitionState view) {
FormComponent form = (FormComponent) view.getComponentByReference("form");
if (form.getEntity() == null) {
return;
}
Entity productionRecord = form.getEntity();
String states = production... |
diff --git a/src/main/java/org/jboss/netty/channel/iostream/IOStreamChannelSink.java b/src/main/java/org/jboss/netty/channel/iostream/IOStreamChannelSink.java
index 7af4dfb..111376b 100644
--- a/src/main/java/org/jboss/netty/channel/iostream/IOStreamChannelSink.java
+++ b/src/main/java/org/jboss/netty/channel/iostream/... | true | true | public void eventSunk(final ChannelPipeline pipeline, final ChannelEvent e) throws Exception {
final ChannelFuture future = e.getFuture();
if (e instanceof ChannelStateEvent) {
final ChannelStateEvent stateEvent = (ChannelStateEvent) e;
final ChannelState state = stateEvent.getState();
final Object val... | public void eventSunk(final ChannelPipeline pipeline, final ChannelEvent e) throws Exception {
final ChannelFuture future = e.getFuture();
if (e instanceof ChannelStateEvent) {
final ChannelStateEvent stateEvent = (ChannelStateEvent) e;
final ChannelState state = stateEvent.getState();
final Object val... |
diff --git a/src/com/tactfactory/harmony/utils/LibraryUtils.java b/src/com/tactfactory/harmony/utils/LibraryUtils.java
index 9aa5fb1b..ddee73a1 100644
--- a/src/com/tactfactory/harmony/utils/LibraryUtils.java
+++ b/src/com/tactfactory/harmony/utils/LibraryUtils.java
@@ -1,43 +1,42 @@
/**
* This file is part of the H... | false | true | public static void addLibraryToTestProject(
final BaseAdapter adapter,
final String libName) {
final File dest = new File(String.format("%s/%s",
adapter.getTestLibsPath(),
libName));
if (!dest.exists()) {
TactFileUtils.copyfile(
new File(String.format("%s/%s",
Harmony.getLibsPath(),
... | public static void addLibraryToTestProject(
final BaseAdapter adapter,
final String libName) {
final File dest = new File(String.format("%s/%s",
adapter.getTestLibsPath(),
libName));
if (!dest.exists()) {
final File src = Harmony.getLibrary(libName);
TactFileUtils.copyfile(
src,
des... |
diff --git a/src/main/java/com/redhat/automationportal/scripts/FlagSearch.java b/src/main/java/com/redhat/automationportal/scripts/FlagSearch.java
index 4b1d279..d24ef2e 100644
--- a/src/main/java/com/redhat/automationportal/scripts/FlagSearch.java
+++ b/src/main/java/com/redhat/automationportal/scripts/FlagSearch.java... | true | true | public boolean run()
{
if (this.bugzillaUsername != null && this.bugzillaPassword != null &&
this.bugzillaUsername.trim().length() != 0 && this.bugzillaPassword.trim().length() != 0 &&
this.productName != null && this.productName != null &&
this.component != null && this.component != null)
{
final... | public boolean run()
{
if (this.bugzillaUsername != null && this.bugzillaPassword != null &&
this.bugzillaUsername.trim().length() != 0 && this.bugzillaPassword.trim().length() != 0 &&
this.productName != null && this.productName != null &&
this.component != null && this.component != null)
{
final... |
diff --git a/src/java/com/idega/development/presentation/SQLQueryer.java b/src/java/com/idega/development/presentation/SQLQueryer.java
index 4450ca2..6c554d0 100644
--- a/src/java/com/idega/development/presentation/SQLQueryer.java
+++ b/src/java/com/idega/development/presentation/SQLQueryer.java
@@ -1,341 +1,341 @@
//... | true | true | public void main(IWContext iwc) throws Exception {
resultsPane = new FramePane(resultName);
String queryString = iwc.getParameter(queryParameter);
if (displayForm) {
queryPane = new FramePane("Query");
super.add(queryPane);
Form form = new Form();
form.setTarget(IWDeveloper.frameName);
quer... | public void main(IWContext iwc) throws Exception {
resultsPane = new FramePane(resultName);
String queryString = iwc.getParameter(queryParameter);
if (displayForm) {
queryPane = new FramePane("Query");
super.add(queryPane);
Form form = new Form();
form.setTarget(IWDeveloper.frameName);
quer... |
diff --git a/src/main/java/cc/kune/core/client/state/SiteTokenListeners.java b/src/main/java/cc/kune/core/client/state/SiteTokenListeners.java
index fc31fe354..9a30f0c84 100644
--- a/src/main/java/cc/kune/core/client/state/SiteTokenListeners.java
+++ b/src/main/java/cc/kune/core/client/state/SiteTokenListeners.java
@@ ... | false | true | private void putValues() {
put(SiteTokens.HOME, new HistoryTokenCallback() {
@Override
public void onHistoryToken(final String token) {
SpaceSelectEvent.fire(eventBus, Space.homeSpace);
}
});
put(SiteTokens.WAVEINBOX, new HistoryTokenCallback() {
@Override
public void... | private void putValues() {
put(SiteTokens.HOME, new HistoryTokenCallback() {
@Override
public void onHistoryToken(final String token) {
SpaceSelectEvent.fire(eventBus, Space.homeSpace);
}
});
put(SiteTokens.WAVEINBOX, new HistoryTokenCallback() {
@Override
public void... |
diff --git a/src/net/slipcor/pvparena/loadables/ArenaGoalManager.java b/src/net/slipcor/pvparena/loadables/ArenaGoalManager.java
index 72bb9ecd..916e5cb6 100644
--- a/src/net/slipcor/pvparena/loadables/ArenaGoalManager.java
+++ b/src/net/slipcor/pvparena/loadables/ArenaGoalManager.java
@@ -1,403 +1,405 @@
package net.... | true | true | public void timedEnd(final Arena arena) {
/**
* name/team => score points
*
* handed over to each module
*/
DEBUG.i("timed end!");
Map<String, Double> scores = new HashMap<String, Double>();
for (ArenaGoal type : arena.getGoals()) {
DEBUG.i("scores: " + type.getName());
scores = type.t... | public void timedEnd(final Arena arena) {
/**
* name/team => score points
*
* handed over to each module
*/
DEBUG.i("timed end!");
Map<String, Double> scores = new HashMap<String, Double>();
for (ArenaGoal type : arena.getGoals()) {
DEBUG.i("scores: " + type.getName());
scores = type.t... |
diff --git a/KitsuneChat/src/com/cyberkitsune/prefixchat/KitsuneChatCommand.java b/KitsuneChat/src/com/cyberkitsune/prefixchat/KitsuneChatCommand.java
index 1867517..67fa7d3 100644
--- a/KitsuneChat/src/com/cyberkitsune/prefixchat/KitsuneChatCommand.java
+++ b/KitsuneChat/src/com/cyberkitsune/prefixchat/KitsuneChatComm... | false | true | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (sender instanceof Player) {
if (command.getName().equalsIgnoreCase("ch")) {
if (args.length > 0) {
plugin.chans.changeChannel((Player) sender, args[0]);
} else {
sender.sendMessage(ChatColor.RED... | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (sender instanceof Player) {
if (command.getName().equalsIgnoreCase("kc")) {
if (args.length > 0) {
if(args[0] == "chan" && args.length > 1) {
plugin.chans.changeChannel((Player) sender, args[1]);
... |
diff --git a/src/org/ohmage/cache/KeyValueCache.java b/src/org/ohmage/cache/KeyValueCache.java
index e4a23ab0..e7121618 100644
--- a/src/org/ohmage/cache/KeyValueCache.java
+++ b/src/org/ohmage/cache/KeyValueCache.java
@@ -1,216 +1,219 @@
/*******************************************************************************... | true | true | protected synchronized void refreshMap() {
// Only one thread should be updating this information at a time. Once
// other threads enter, they should check to see if an update was just
// done and, if so, should abort a second update.
if((getLastUpdateTimestamp() + getUpdateFrequency()) > System
.currentTim... | protected synchronized void refreshMap() {
// Only one thread should be updating this information at a time. Once
// other threads enter, they should check to see if an update was just
// done and, if so, should abort a second update.
if((getLastUpdateTimestamp() + getUpdateFrequency()) > System
.currentTim... |
diff --git a/Client/src/main/java/slideShow/Slideshow.java b/Client/src/main/java/slideShow/Slideshow.java
index 1af96ac..8663844 100644
--- a/Client/src/main/java/slideShow/Slideshow.java
+++ b/Client/src/main/java/slideShow/Slideshow.java
@@ -1,264 +1,264 @@
package slideShow;
import java.util.ArrayList;
import ... | false | true | public void start(Stage stage1) throws Exception {
this.stage = stage1;
root = new StackPane();
slideshow = new SequentialTransition();
imageTrans = new ImageTransition();
imageList = new ArrayList();
checkNewDelay = new CheckNewDelay(imageTrans.getFadeTime() / 1000);... | public void start(Stage stage1) throws Exception {
this.stage = stage1;
root = new StackPane();
slideshow = new SequentialTransition();
imageTrans = new ImageTransition();
imageList = new ArrayList();
checkNewDelay = new CheckNewDelay(imageTrans.getFadeTime() / 1000);... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/wc/SVNDiffClient.java b/javasvn/src/org/tmatesoft/svn/core/wc/SVNDiffClient.java
index 5f057f0cb..586992f60 100644
--- a/javasvn/src/org/tmatesoft/svn/core/wc/SVNDiffClient.java
+++ b/javasvn/src/org/tmatesoft/svn/core/wc/SVNDiffClient.java
@@ -1,346 +1,346 @@
/*
* Cre... | true | true | public void doDiff(File path, SVNRevision rN, SVNRevision rM,
boolean recursive, final boolean useAncestry, final OutputStream result) throws SVNException {
if (rN == null || rN == SVNRevision.UNDEFINED) {
rN = SVNRevision.BASE;
}
if (rM == null || rM == SVNRevision.U... | public void doDiff(File path, SVNRevision rN, SVNRevision rM,
boolean recursive, final boolean useAncestry, final OutputStream result) throws SVNException {
if (rN == null || rN == SVNRevision.UNDEFINED) {
rN = SVNRevision.BASE;
}
if (rM == null || rM == SVNRevision.U... |
diff --git a/MorePhysics/src/com/FriedTaco/taco/MorePhysics/MorePhysics.java b/MorePhysics/src/com/FriedTaco/taco/MorePhysics/MorePhysics.java
index 720808e..2c8c119 100644
--- a/MorePhysics/src/com/FriedTaco/taco/MorePhysics/MorePhysics.java
+++ b/MorePhysics/src/com/FriedTaco/taco/MorePhysics/MorePhysics.java
@@ -1,2... | true | true | public void loadSettings() throws Exception
{
if (!this.getDataFolder().exists())
{
this.getDataFolder().mkdirs();
}
final String dir = "plugins/MorePhysics";
if (!new File(dir + File.separator + "MorePhysics.properties").exists()) {
FileWriter writer = null;
... | public void loadSettings() throws Exception
{
if (!this.getDataFolder().exists())
{
this.getDataFolder().mkdirs();
}
final String dir = "plugins/MorePhysics";
if (!new File(dir + File.separator + "MorePhysics.properties").exists()) {
FileWriter writer = null;
... |
diff --git a/copenhagenabm/src/repastcity3/environment/NetworkEdgeCreator.java b/copenhagenabm/src/repastcity3/environment/NetworkEdgeCreator.java
index b9a4a6e..1f815b2 100644
--- a/copenhagenabm/src/repastcity3/environment/NetworkEdgeCreator.java
+++ b/copenhagenabm/src/repastcity3/environment/NetworkEdgeCreator.java... | true | true | public NetworkEdge<T> createEdge(T source, T target, boolean isDirected, double weight) {
return new NetworkEdge<T>(source, target, isDirected, weight, Arrays.asList(new String[] {"testingEdgeCreator"}));
}
| public NetworkEdge<T> createEdge(T source, T target, boolean isDirected, double weight) {
return new NetworkEdge<T>(source, target, isDirected, weight);
}
|
diff --git a/ui/web/IdentityEditor.java b/ui/web/IdentityEditor.java
index 3ea018d3..153b3181 100644
--- a/ui/web/IdentityEditor.java
+++ b/ui/web/IdentityEditor.java
@@ -1,307 +1,307 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later ... | true | true | private final void makeOwnIdentitiesBox() {
HTMLNode box = getContentBox("Own Identities");
Iterator<FTOwnIdentity> ownIdentities = mFreetalk.getIdentityManager().ownIdentityIterator();
if (ownIdentities.hasNext() == false) {
box.addChild("p", "No own identities received from the WoT plugin yet. Please creat... | private final void makeOwnIdentitiesBox() {
HTMLNode box = addContentBox("Own Identities");
Iterator<FTOwnIdentity> ownIdentities = mFreetalk.getIdentityManager().ownIdentityIterator();
if (ownIdentities.hasNext() == false) {
box.addChild("p", "No own identities received from the WoT plugin yet. Please creat... |
diff --git a/org.amanzi.neo.loader.ui/src/org/amanzi/neo/loader/ui/preferences/DataLoadPreferenceInitializer.java b/org.amanzi.neo.loader.ui/src/org/amanzi/neo/loader/ui/preferences/DataLoadPreferenceInitializer.java
index 9ab346a5c..c99422287 100644
--- a/org.amanzi.neo.loader.ui/src/org/amanzi/neo/loader/ui/preferenc... | true | true | public void initializeDefaultPreferences() {
StoreWrapper pref = new StoreWrapper();
pref.setDefault(DataLoadPreferences.REMOVE_SITE_NAME, true);
pref.setDefault(DataLoadPreferences.NETWORK_COMBINED_CALCULATION, true);
pref.setDefault(DataLoadPreferences.ZOOM_TO_LAYER, true);
... | public void initializeDefaultPreferences() {
StoreWrapper pref = new StoreWrapper();
pref.setDefault(DataLoadPreferences.REMOVE_SITE_NAME, true);
pref.setDefault(DataLoadPreferences.NETWORK_COMBINED_CALCULATION, true);
pref.setDefault(DataLoadPreferences.ZOOM_TO_LAYER, true);
... |
diff --git a/org.cloudsmith.geppetto.pp.dsl.ui/src/org/cloudsmith/geppetto/pp/dsl/ui/editor/actions/SaveActions.java b/org.cloudsmith.geppetto.pp.dsl.ui/src/org/cloudsmith/geppetto/pp/dsl/ui/editor/actions/SaveActions.java
index 0dbfe672..1043092e 100644
--- a/org.cloudsmith.geppetto.pp.dsl.ui/src/org/cloudsmith/geppet... | false | true | public void perform(IResource r, IXtextDocument document) {
boolean ensureNl = preferenceHelper.getSaveActionEnsureEndsWithNewLine(r);
boolean replaceFunkySpace = preferenceHelper.getSaveActionReplaceFunkySpaces(r);
boolean trimLines = preferenceHelper.getSaveActionTrimLines(r);
if(ensureNl || replaceFunkySpa... | public void perform(IResource r, IXtextDocument document) {
boolean ensureNl = preferenceHelper.getSaveActionEnsureEndsWithNewLine(r);
boolean replaceFunkySpace = preferenceHelper.getSaveActionReplaceFunkySpaces(r);
boolean trimLines = preferenceHelper.getSaveActionTrimLines(r);
if(ensureNl || replaceFunkySpa... |
diff --git a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistryLoader.java b/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/ServiceRegistryLoader.java
index 6422b919..0027dbfd 100644
--- a/core/impl-base/src/main/java/org/jboss/arquillian/core/impl/loadable/Servic... | true | true | public <T> Collection<T> all(Class<T> serviceClass)
{
if(serviceInstanceRegistry.containsKey(serviceClass))
{
return (Collection<T>)serviceInstanceRegistry.get(serviceClass);
}
List<T> serviceImpls = new ArrayList<T>();
Set<Class<? extends T>> serviceImplClasses = reg... | public <T> Collection<T> all(Class<T> serviceClass)
{
if(serviceInstanceRegistry.containsKey(serviceClass))
{
return (Collection<T>)serviceInstanceRegistry.get(serviceClass);
}
List<T> serviceImpls = new ArrayList<T>();
Set<Class<? extends T>> serviceImplClasses = reg... |
diff --git a/geoserver/main/src/main/java/org/vfny/geoserver/global/GeoserverDataDirectory.java b/geoserver/main/src/main/java/org/vfny/geoserver/global/GeoserverDataDirectory.java
index 1deb9038c2..7b62b5fccb 100644
--- a/geoserver/main/src/main/java/org/vfny/geoserver/global/GeoserverDataDirectory.java
+++ b/geoserve... | false | true | public static void init(WebApplicationContext context) {
ServletContext servContext = context.getServletContext();
// This was once in the GetGeoserverDataDirectory method, I've moved
// here so that servlet
// context is not needed as a parameter anymore.
// caching this, so... | public static void init(WebApplicationContext context) {
ServletContext servContext = context.getServletContext();
// This was once in the GetGeoserverDataDirectory method, I've moved
// here so that servlet
// context is not needed as a parameter anymore.
// caching this, so... |
diff --git a/src/uk/co/uwcs/choob/support/GetContentsCached.java b/src/uk/co/uwcs/choob/support/GetContentsCached.java
index 7a3c4ea..cdfaa6c 100644
--- a/src/uk/co/uwcs/choob/support/GetContentsCached.java
+++ b/src/uk/co/uwcs/choob/support/GetContentsCached.java
@@ -1,80 +1,82 @@
package uk.co.uwcs.choob.support;
... | true | true | public void updateIfNeeded() throws IOException
{
long now=(new Date()).getTime();
if (contents != null && (now - lastaccess) < mintime)
return;
URLConnection site = url.openConnection();
site.setRequestProperty("User-agent", "Opera/8.51 (X11; Linux x86_64; U; en)");
InputStream is = site.getInputStr... | public void updateIfNeeded() throws IOException
{
long now=(new Date()).getTime();
if (contents != null && (now - lastaccess) < mintime)
return;
URLConnection site = url.openConnection();
site.setReadTimeout(15000);
site.setConnectTimeout(15000);
site.setRequestProperty("User-agent", "Opera/8.51 (X11... |
diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterModel.java
index 9c313840..c70409f5 100644
--- a/frontend/webadmin/modules/uicom... | false | true | public void Init(boolean isEdit)
{
setIsEdit(isEdit);
setName(new EntityModel());
setDescription(new EntityModel());
setOptimizationNone(new EntityModel());
setOptimizationForServer(new EntityModel());
setOptimizationForDesktop(new EntityModel());
setOpti... | public void Init(boolean isEdit)
{
setIsEdit(isEdit);
setName(new EntityModel());
setDescription(new EntityModel());
setOptimizationNone(new EntityModel());
setOptimizationForServer(new EntityModel());
setOptimizationForDesktop(new EntityModel());
setOpti... |
diff --git a/src/main/java/com/ryanmichela/giantcaves/GCChunkProviderGenerate.java b/src/main/java/com/ryanmichela/giantcaves/GCChunkProviderGenerate.java
index d588d15..b839afe 100644
--- a/src/main/java/com/ryanmichela/giantcaves/GCChunkProviderGenerate.java
+++ b/src/main/java/com/ryanmichela/giantcaves/GCChunkProvi... | true | true | public byte[][] getChunkSectionsAt(int ii, int jj) {
Random i = ReflectionUtil.getProtectedValue(this, "i");
World n = ReflectionUtil.getProtectedValue(this, "n");
Boolean o = ReflectionUtil.getProtectedValue(this, "o");
WorldGenBase t = ReflectionUtil.getProtectedValue(this, "t");
... | public byte[][] getChunkSectionsAt(int ii, int jj) {
Random i = ReflectionUtil.getProtectedValue(this, "i");
World n = ReflectionUtil.getProtectedValue(this, "n");
Boolean o = ReflectionUtil.getProtectedValue(this, "o");
WorldGenBase t = ReflectionUtil.getProtectedValue(this, "t");
... |
diff --git a/src/org/trecena/modules/jira/JiraModule.java b/src/org/trecena/modules/jira/JiraModule.java
index 47e65bf..107ae75 100644
--- a/src/org/trecena/modules/jira/JiraModule.java
+++ b/src/org/trecena/modules/jira/JiraModule.java
@@ -1,828 +1,828 @@
package org.trecena.modules.jira;
import com.atlassian.jira... | true | true | public Result<JiraUserAccountMappingBean> getUserMappings(JiraServerBean server, UserBean userBean, int firstResult, int maxResults) throws ApplicationException {
Result<JiraUserAccountMappingBean> reslt = new Result<JiraUserAccountMappingBean>();
try {
Session session = sessionFactory.getCurrentSession... | public Result<JiraUserAccountMappingBean> getUserMappings(JiraServerBean server, UserBean userBean, int firstResult, int maxResults) throws ApplicationException {
Result<JiraUserAccountMappingBean> reslt = new Result<JiraUserAccountMappingBean>();
try {
Session session = sessionFactory.getCurrentSession... |
diff --git a/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/preferences/BrowserPreferencePage.java b/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/preferences/BrowserPreferencePage.java
index 9ce06112..155bdf7a 100644
--- a/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/preferences/BrowserPreferencePage... | false | true | public void createFieldEditors() {
if(System.getProperty("os.name").equals("Mac OS X")){
addField(new DirectoryFieldEditor(BrowserPreferenceConstants.P_PRIMARY_BROWSER_PATH, "Primary Browser", getFieldEditorParent()));
addField(new DirectoryFieldEditor(BrowserPreferenceConstants.P_SECONDARY_BROWSER_PATH, "S... | public void createFieldEditors() {
if(System.getProperty("os.name").equals("Mac OS X")){
addField(new DirectoryFieldEditor(BrowserPreferenceConstants.P_PRIMARY_BROWSER_PATH, "Primary Browser", getFieldEditorParent()));
addField(new DirectoryFieldEditor(BrowserPreferenceConstants.P_SECONDARY_BROWSER_PATH, "S... |
diff --git a/generator/stax-mate/src/main/java/com/cedarsoft/serialization/generator/output/staxmate/serializer/DelegateGenerator.java b/generator/stax-mate/src/main/java/com/cedarsoft/serialization/generator/output/staxmate/serializer/DelegateGenerator.java
index 29b48cd0..0d18886f 100644
--- a/generator/stax-mate/src... | true | true | public JStatement createAddToSerializeToExpression( @NotNull JDefinedClass serializerClass, @NotNull JExpression serializeTo, @NotNull FieldDeclarationInfo fieldInfo, @NotNull JVar object ) {
JFieldVar constant = getConstant( serializerClass, fieldInfo );
JExpression getterInvocation = codeGenerator.createGe... | public JStatement createAddToSerializeToExpression( @NotNull JDefinedClass serializerClass, @NotNull JExpression serializeTo, @NotNull FieldDeclarationInfo fieldInfo, @NotNull JVar object ) {
JFieldVar constant = getConstant( serializerClass, fieldInfo );
JExpression getterInvocation = codeGenerator.createGe... |
diff --git a/src/net/slipcor/pvparena/goals/GoalLiberation.java b/src/net/slipcor/pvparena/goals/GoalLiberation.java
index e95a67f2..61fdecf1 100644
--- a/src/net/slipcor/pvparena/goals/GoalLiberation.java
+++ b/src/net/slipcor/pvparena/goals/GoalLiberation.java
@@ -1,584 +1,584 @@
package net.slipcor.pvparena.goals;
... | true | true | public void commitPlayerDeath(final Player player, final boolean doesRespawn,
final String error, final PlayerDeathEvent event) {
if (!getLifeMap().containsKey(player.getName())) {
return;
}
PAGoalEvent gEvent = new PAGoalEvent(arena, this, "playerDeath:"+player.getName());
Bukkit.getPluginManager().c... | public void commitPlayerDeath(final Player player, final boolean doesRespawn,
final String error, final PlayerDeathEvent event) {
if (!getLifeMap().containsKey(player.getName())) {
return;
}
PAGoalEvent gEvent = new PAGoalEvent(arena, this, "playerDeath:"+player.getName());
Bukkit.getPluginManager().c... |
diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java
index 0153d6eb..54d65d6f 100644
--- a/src/com/fsck/k9/activity/MessageList.java
+++ b/src/com/fsck/k9/activity/MessageList.java
@@ -1,724 +1,726 @@
package com.fsck.k9.activity;
import java.util.ArrayList;
import a... | false | true | public boolean onOptionsItemSelected(MenuItem item) {
int itemId = item.getItemId();
switch (itemId) {
case android.R.id.home: {
FragmentManager fragmentManager = getSupportFragmentManager();
if (fragmentManager.getBackStackEntryCount() > 0) {
... | public boolean onOptionsItemSelected(MenuItem item) {
int itemId = item.getItemId();
switch (itemId) {
case android.R.id.home: {
FragmentManager fragmentManager = getSupportFragmentManager();
if (fragmentManager.getBackStackEntryCount() > 0) {
... |
diff --git a/src/se/kth/maandree/utilsay/unisay2ttyunisay.java b/src/se/kth/maandree/utilsay/unisay2ttyunisay.java
index d2c9038..b839e85 100644
--- a/src/se/kth/maandree/utilsay/unisay2ttyunisay.java
+++ b/src/se/kth/maandree/utilsay/unisay2ttyunisay.java
@@ -1,194 +1,194 @@
/**
* unisay2ttyunisay — TTY suitifying ... | true | true | private static void convert(final InputStream in, final PrintStream out) throws IOException
{
out.println("\033c");
boolean dollar = false;
for (int d; (d = in.read()) != -1;)
if (d == '$')
{
dollar ^= true;
out.write(d);
}
else if (dollar)
out.write(d);
else if (d == '\033... | private static void convert(final InputStream in, final PrintStream out) throws IOException
{
out.print("\033c");
boolean dollar = false;
for (int d; (d = in.read()) != -1;)
if (d == '$')
{
dollar ^= true;
out.write(d);
}
else if (dollar)
out.write(d);
else if (d == '\033')... |
diff --git a/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/strategies/get_service_input_term_0_1.java b/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/strategies/get_service_input_term_0_1.java
index 670dc49..c843996 100644
--- a/org.strategoxt.imp.testing/editor/java/org/stratego... | false | true | public IStrategoTerm invoke(Context context, IStrategoTerm current, IStrategoTerm analyzedAst) {
// TODO: adapt to latest strategy of StrategoReferenceResolver?
if (isTermAppl(analyzedAst) && ((IStrategoAppl) analyzedAst).getName().equals("None"))
analyzedAst = null;
if ("COMPLETION" != tryGetName(current))
... | public IStrategoTerm invoke(Context context, IStrategoTerm current, IStrategoTerm analyzedAst) {
// TODO: adapt to latest strategy of StrategoReferenceResolver?
if (isTermAppl(analyzedAst) && ((IStrategoAppl) analyzedAst).getName().equals("None"))
analyzedAst = null;
if (!"COMPLETION".equals(tryGetName(curren... |
diff --git a/src/com/gwt/seminar/client/activity/ResourcesActivity.java b/src/com/gwt/seminar/client/activity/ResourcesActivity.java
index bad3b91..8c9dd50 100644
--- a/src/com/gwt/seminar/client/activity/ResourcesActivity.java
+++ b/src/com/gwt/seminar/client/activity/ResourcesActivity.java
@@ -1,68 +1,68 @@
package ... | true | true | public ResourcesActivity(ResourcesView view, SampleCode sampleCode, Videos videos,
GwtLinks gwtLinks, OtherLinks otherLinks){
this.view = view;
this.sampleCode = sampleCode;
this.videos = videos;
this.gwtLinks = gwtLinks;
this.otherLinks = otherLinks;
/* I injected the views so we can take full ... | public ResourcesActivity(ResourcesView view, SampleCode sampleCode, Videos videos,
GwtLinks gwtLinks, OtherLinks otherLinks){
this.view = view;
this.sampleCode = sampleCode;
this.videos = videos;
this.gwtLinks = gwtLinks;
this.otherLinks = otherLinks;
/* I injected the views so we can take full ... |
diff --git a/src/com/jverrecchia/initializr/builder/zip/ZipContentPrinter.java b/src/com/jverrecchia/initializr/builder/zip/ZipContentPrinter.java
index c994ae6..895548e 100644
--- a/src/com/jverrecchia/initializr/builder/zip/ZipContentPrinter.java
+++ b/src/com/jverrecchia/initializr/builder/zip/ZipContentPrinter.java... | true | true | public void printZip() throws IOException{
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.println(zip.getFilename());
for (ZipFile currentFile : zip.getZipFiles()){
out.println("<h1>" + currentFile.getZipPath() + "</h1>");
if (currentFile.getContent() == null)
out.printl... | public void printZip() throws IOException{
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.println(zip.getFilename());
for (ZipFile currentFile : zip.getZipFiles()){
out.println("<h1>" + currentFile.getZipPath() + "</h1>");
System.err.println(currentFile.getZipPath());
if ... |
diff --git a/org.emftext.sdk.ant/src/org/emftext/sdk/ant/GenerateTextResourceTask.java b/org.emftext.sdk.ant/src/org/emftext/sdk/ant/GenerateTextResourceTask.java
index 4069cd7af..d0c6d53dc 100644
--- a/org.emftext.sdk.ant/src/org/emftext/sdk/ant/GenerateTextResourceTask.java
+++ b/org.emftext.sdk.ant/src/org/emftext/s... | true | true | public void execute() throws BuildException {
checkParameters();
AntClassLoader taskloader = setClassLoader();
registerResourceFactories();
try {
log("loading syntax file...");
ICsTextResource csResource = CsResourceUtil.getResource(syntaxFile);
EList<EObject> contents = csResource.getContents();
... | public void execute() throws BuildException {
checkParameters();
AntClassLoader taskloader = setClassLoader();
registerResourceFactories();
try {
log("loading syntax file...");
ICsTextResource csResource = CsResourceUtil.getResource(syntaxFile);
EList<EObject> contents = csResource.getContents();
... |
diff --git a/common/cpw/mods/fml/common/modloader/BaseModTicker.java b/common/cpw/mods/fml/common/modloader/BaseModTicker.java
index 866b1393..3e915202 100644
--- a/common/cpw/mods/fml/common/modloader/BaseModTicker.java
+++ b/common/cpw/mods/fml/common/modloader/BaseModTicker.java
@@ -1,132 +1,132 @@
/*
* The FML F... | true | true | private void tickBaseMod(EnumSet<TickType> types, boolean end, Object... tickData)
{
if (FMLCommonHandler.instance().getSide().isClient() && ( ticks.contains(TickType.GAME) || ticks.contains(TickType.WORLDLOAD)) || ticks.contains(TickType.RENDER))
{
EnumSet cTypes=EnumSet.copyOf(type... | private void tickBaseMod(EnumSet<TickType> types, boolean end, Object... tickData)
{
if (FMLCommonHandler.instance().getSide().isClient() && ( ticks.contains(TickType.GAME) || ticks.contains(TickType.WORLDLOAD)))
{
EnumSet cTypes=EnumSet.copyOf(types);
if ( ( end && types... |
diff --git a/app/Global.java b/app/Global.java
index d9101d8..e63c0fd 100644
--- a/app/Global.java
+++ b/app/Global.java
@@ -1,94 +1,94 @@
import java.util.Arrays;
import models.SecurityRole;
import com.feth.play.module.pa.PlayAuthenticate;
import com.feth.play.module.pa.PlayAuthenticate.Resolver;
import com.feth.... | true | true | public void onStart(Application app) {
super.beforeStart(app);
Logger.debug("** Starting Application **");
try {
//MorphiaObject.mongo = new Mongo("10.172.104.17", 27017);
MorphiaObject.mongo = new Mongo("127.0.0.1", 27017);
} catch (UnknownHostException e) {
... | public void onStart(Application app) {
super.beforeStart(app);
Logger.debug("** Starting Application **");
try {
MorphiaObject.mongo = new Mongo("10.172.104.17", 27017);
//MorphiaObject.mongo = new Mongo("127.0.0.1", 27017);
} catch (UnknownHostException e) {
... |
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java b/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java
index 2cdbad399..a1ee2c059 100755
--- a/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java
+++ b/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java... | true | true | public void compileRuntime(){
cleanCars("build/classes-runtime");
java.util.List<File> sourceFiles = new ArrayList<File>();
String ceylonSourcePath = "../ceylon.language/src";
String javaSourcePath = "../ceylon.language/runtime";
String[] ceylonPack... | public void compileRuntime(){
cleanCars("build/classes-runtime");
java.util.List<File> sourceFiles = new ArrayList<File>();
String ceylonSourcePath = "../ceylon.language/src";
String javaSourcePath = "../ceylon.language/runtime";
String[] ceylonPack... |
diff --git a/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/StatusBar.java b/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/StatusBar.java
index e2553d6..d8a56d3 100644
--- a/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/StatusBar.java
+++ b/swing/src/java... | false | true | public void populationUpdate(final PopulationData<?> populationData)
{
configure(populationData);
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
if (populationData.getGenerationNumber() == 0)
{
... | public void populationUpdate(final PopulationData<?> populationData)
{
configure(populationData);
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
if (populationData.getGenerationNumber() == 0)
{
... |
diff --git a/TFC_Shared/src/TFC/TileEntities/TECrucible.java b/TFC_Shared/src/TFC/TileEntities/TECrucible.java
index c3b80bb8d..f973487f7 100644
--- a/TFC_Shared/src/TFC/TileEntities/TECrucible.java
+++ b/TFC_Shared/src/TFC/TileEntities/TECrucible.java
@@ -1,489 +1,489 @@
package TFC.TileEntities;
import java.io.By... | false | true | public void updateEntity()
{
if(!worldObj.isRemote)
{
inputTick++;
outputTick++;
tempTick++;
/*Heat the crucible based on the Forge beneath it*/
if(worldObj.getBlockId(xCoord,yCoord-1,zCoord) == TFCBlocks.Forge.blockID)
{
TileEntityForge te = (TileEntityForge) worldObj.getBlockTileEntity(xCo... | public void updateEntity()
{
if(!worldObj.isRemote)
{
inputTick++;
outputTick++;
tempTick++;
/*Heat the crucible based on the Forge beneath it*/
if(worldObj.getBlockId(xCoord,yCoord-1,zCoord) == TFCBlocks.Forge.blockID)
{
TileEntityForge te = (TileEntityForge) worldObj.getBlockTileEntity(xCo... |
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/FlexoMainPane.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/FlexoMainPane.java
index ae2ec8246..a28e38893 100644
--- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/FlexoMainPane.java
+++ b/flexodesktop/GUI/flexo/src/main/ja... | true | true | public FlexoMainPane(FlexoController controller) {
super(new BorderLayout());
this.controller = controller;
this.centerLayout = new MultiSplitLayout(false);
this.centerLayout.setLayoutMode(MultiSplitLayout.NO_MIN_SIZE_LAYOUT);
registrationManager = new PropertyChangeListenerRegistrationManager();
registrat... | public FlexoMainPane(FlexoController controller) {
super(new BorderLayout());
this.controller = controller;
this.centerLayout = new MultiSplitLayout(false);
this.centerLayout.setLayoutMode(MultiSplitLayout.NO_MIN_SIZE_LAYOUT);
registrationManager = new PropertyChangeListenerRegistrationManager();
registrat... |
diff --git a/src/main/java/org/spoutcraft/launcher/gui/LoginForm.java b/src/main/java/org/spoutcraft/launcher/gui/LoginForm.java
index 55b95e9..017b77a 100644
--- a/src/main/java/org/spoutcraft/launcher/gui/LoginForm.java
+++ b/src/main/java/org/spoutcraft/launcher/gui/LoginForm.java
@@ -1,764 +1,764 @@
/*
* This fi... | true | true | public LoginForm() {
LoginForm.updateDialog = new UpdateDialog(this);
gameUpdater.setListener(this);
this.addWindowListener(this);
SwingWorker<Object, Object> updateThread = new SwingWorker<Object, Object>() {
protected Object doInBackground() throws Exception {
MinecraftYML.updateMinecraftYMLCach... | public LoginForm() {
LoginForm.updateDialog = new UpdateDialog(this);
gameUpdater.setListener(this);
this.addWindowListener(this);
SwingWorker<Object, Object> updateThread = new SwingWorker<Object, Object>() {
protected Object doInBackground() throws Exception {
MinecraftYML.updateMinecraftYMLCach... |
Subsets and Splits
Megadiff Train Samples Analysis
Counts the number of changed lines in a patch file, distinguishing additions and deletions but ignoring those marked with more than two '+' or '-', providing insights into significant modifications in patches.