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/powercrystals/powerconverters/power/buildcraft/TileEntityBuildCraftProducer.java b/src/powercrystals/powerconverters/power/buildcraft/TileEntityBuildCraftProducer.java
index c6b1924..1472d6c 100644
--- a/src/powercrystals/powerconverters/power/buildcraft/TileEntityBuildCraftProducer.java
+++ b/src/powe... | false | true | public int produceEnergy(int energy)
{
int mj = energy / PowerConverterCore.powerSystemBuildCraft.getInternalEnergyPerOutput();
for(Entry<ForgeDirection, IPowerReceptor> output : getTiles().entrySet())
{
IPowerProvider pp = output.getValue().getPowerProvider();
if(pp != null && pp.preConditions(output.... | public int produceEnergy(int energy)
{
int mj = energy / PowerConverterCore.powerSystemBuildCraft.getInternalEnergyPerOutput();
for(Entry<ForgeDirection, IPowerReceptor> output : getTiles().entrySet())
{
IPowerProvider pp = output.getValue().getPowerProvider();
if(pp != null && pp.preConditions(output.... |
diff --git a/Evoting/src/com/rau/evoting/beans/Vote.java b/Evoting/src/com/rau/evoting/beans/Vote.java
index 5e932d0..beb3dcf 100644
--- a/Evoting/src/com/rau/evoting/beans/Vote.java
+++ b/Evoting/src/com/rau/evoting/beans/Vote.java
@@ -1,321 +1,321 @@
package com.rau.evoting.beans;
import java.math.BigInteger;
im... | false | true | public String vote() {
// vote
ChaumPedersenProof chaum = new ChaumPedersenProof();
ChaumPedersen cp = chaum.generate(new BigInteger(publicKey),
(selectedDecodedList == 1 ? r2 : r1));
cp.setMessage(selectedDecodedList == 1 ? decoded2 : decoded1);
Pair<BigInteger, BigInteger> enc = CryptoUtil
.getEn... | public String vote() {
// vote
ChaumPedersenProof chaum = new ChaumPedersenProof();
ChaumPedersen cp = chaum.generate(new BigInteger(publicKey),
(selectedDecodedList == 1 ? r1 : r2));
cp.setMessage(selectedDecodedList == 1 ? decoded1 : decoded2);
Pair<BigInteger, BigInteger> enc = CryptoUtil
.getEn... |
diff --git a/src/ramirez57/CLIShop/Main.java b/src/ramirez57/CLIShop/Main.java
index d01aaf9..a6da0f6 100644
--- a/src/ramirez57/CLIShop/Main.java
+++ b/src/ramirez57/CLIShop/Main.java
@@ -1,288 +1,302 @@
package ramirez57.CLIShop;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
impor... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if(cmd.getName().equalsIgnoreCase("cs")){
if(isplayer(sender)) {
player = (Player)sender;
if(args.length > 0) {
if(args[0].equalsIgnoreCase("help")) {
sender.sendMessage(ChatColor.GOLD... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if(cmd.getName().equalsIgnoreCase("cs")){
if(isplayer(sender)) {
player = (Player)sender;
if(args.length > 0) {
if(args[0].equalsIgnoreCase("help")) {
sender.sendMessage(ChatColor.GOLD... |
diff --git a/dowsers-entity/src/main/java/com/intelligentsia/dowsers/entity/store/MetaEntityStoreSupport.java b/dowsers-entity/src/main/java/com/intelligentsia/dowsers/entity/store/MetaEntityStoreSupport.java
index 8ae20a9..cf585ff 100755
--- a/dowsers-entity/src/main/java/com/intelligentsia/dowsers/entity/store/MetaEn... | false | true | public Collection<MetaEntity> find(final Reference reference) throws NullPointerException {
final Collection<MetaEntity> result = Sets.newLinkedHashSet();
try {
result.add(entityStore.find(MetaEntity.class, Preconditions.checkNotNull(reference)));
} catch (final EntityNotFoundException entityNotFoundException... | public Collection<MetaEntity> find(final Reference reference) throws NullPointerException {
final Collection<MetaEntity> result = Sets.newLinkedHashSet();
// we are looking for MetaEntity with attribute 'name' equals to
// EntityClassName in reference parameter.
Reference target = new Reference(MetaEntity.clas... |
diff --git a/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/SearchTrafficDataCommandImpl.java b/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/SearchTrafficDataCommandImpl.java
index aaf9143..867335a 100644
--- a/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/im... | true | true | public final Long findRecordId(RouterSummaryTraffic record) {
if (connection == null) {
openConnection();
}
Long result = null;
try {
PreparedStatement pst = connection.prepareStatement("select a_id from aggreg where cisco = ? and" +
" ifac... | public final Long findRecordId(RouterSummaryTraffic record) {
if (connection == null) {
openConnection();
}
Long result = null;
try {
PreparedStatement pst = connection.prepareStatement("select a_id from aggreg where cisco = ? and" +
" ifac... |
diff --git a/integration/mule1/src/test/java/org/mule/galaxy/mule1/RegistryConfigLookupTest.java b/integration/mule1/src/test/java/org/mule/galaxy/mule1/RegistryConfigLookupTest.java
index b96edc69..05092f6d 100755
--- a/integration/mule1/src/test/java/org/mule/galaxy/mule1/RegistryConfigLookupTest.java
+++ b/integrati... | true | true | public void testMuleLookup() throws Exception {
AbderaClient client = new AbderaClient(abdera);
String url = "http://localhost:9002/api/registry";
// // POST a Mule configuration
// RequestOptions opts = new RequestOptions();
// opts.setContentType("application/xml; ch... | public void testMuleLookup() throws Exception {
AbderaClient client = new AbderaClient(abdera);
String url = "http://localhost:9002/api/registry";
// // POST a Mule configuration
// RequestOptions opts = new RequestOptions();
// opts.setContentType("application/xml; ch... |
diff --git a/source/com/mucommander/shell/Shell.java b/source/com/mucommander/shell/Shell.java
index 1a9e9d41..89a95e9c 100644
--- a/source/com/mucommander/shell/Shell.java
+++ b/source/com/mucommander/shell/Shell.java
@@ -1,139 +1,139 @@
package com.mucommander.shell;
import com.mucommander.Debug;
import com.muco... | true | true | public static synchronized AbstractProcess execute(String command, AbstractFile currentFolder, ProcessListener listener) throws IOException {
String[] commandTokens;
if(Debug.ON) Debug.trace("Executing " + command);
// Adds the command to history.
ShellHistoryManager.add(command);
... | public static synchronized AbstractProcess execute(String command, AbstractFile currentFolder, ProcessListener listener) throws IOException {
String[] commandTokens;
if(Debug.ON) Debug.trace("Executing " + command);
// Adds the command to history.
ShellHistoryManager.add(command);
... |
diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java b/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
index c102d03..1eb6be8 100644
--- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java... | false | true | public static String getCommonBasedir( List<MavenProject> reactorProjects, String separator )
throws IOException
{
String[] baseDirs = new String[reactorProjects.size()];
int idx = 0;
for ( Iterator<MavenProject> i = reactorProjects.iterator(); i.hasNext(); )
{
... | public static String getCommonBasedir( List<MavenProject> reactorProjects, String separator )
throws IOException
{
String[] baseDirs = new String[reactorProjects.size()];
int idx = 0;
for ( Iterator<MavenProject> i = reactorProjects.iterator(); i.hasNext(); )
{
... |
diff --git a/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java b/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java
index 7c0f6ce..5df43fb 100644
--- a/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java
+++ b/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java
@@ -1,166 +1,167 @@
package org.agmip.ui.quadui;
... | true | true | public HashMap<String, Object> execute() {
// First extract all the domes and put them in a HashMap by DOME_NAME
// The read the DOME_NAME field of the CSV file
// Split the DOME_NAME, and then apply sequentially to the HashMap.
// PLEASE NOTE: This can be a massive undertaking if t... | public HashMap<String, Object> execute() {
// First extract all the domes and put them in a HashMap by DOME_NAME
// The read the DOME_NAME field of the CSV file
// Split the DOME_NAME, and then apply sequentially to the HashMap.
// PLEASE NOTE: This can be a massive undertaking if t... |
diff --git a/src/com/hydrasmp/godPowers/SlayCommand.java b/src/com/hydrasmp/godPowers/SlayCommand.java
index 0577889..782cf41 100755
--- a/src/com/hydrasmp/godPowers/SlayCommand.java
+++ b/src/com/hydrasmp/godPowers/SlayCommand.java
@@ -1,133 +1,133 @@
package com.hydrasmp.godPowers;
//import org.bukkit.World;
imp... | true | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
World world = sender instanceof Player ? ((Player) sender).getWorld() : plugin.getServer().getWorlds().get(0);
String[] split = args;
if(sender instanceof Player)
{
player = (Player) sender;
... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
World world = sender instanceof Player ? ((Player) sender).getWorld() : plugin.getServer().getWorlds().get(0);
String[] split = args;
if(sender instanceof Player)
{
player = (Player) sender;
... |
diff --git a/src/test/java/io/cloudsoft/socialapps/drupal/DrupalTest.java b/src/test/java/io/cloudsoft/socialapps/drupal/DrupalTest.java
index 2a4ce42..9b2b36d 100644
--- a/src/test/java/io/cloudsoft/socialapps/drupal/DrupalTest.java
+++ b/src/test/java/io/cloudsoft/socialapps/drupal/DrupalTest.java
@@ -1,63 +1,63 @@
... | false | true | public void test() {
Map mysqlConf = MutableMap.of("creationScriptContents", SCRIPT);
MySqlNode mySqlNode = new MySqlNode(mysqlConf, app);
brooklyn.entity.webapp.drupal.Drupal drupal = new brooklyn.entity.webapp.drupal.Drupal(app);
drupal.setConfig(brooklyn.entity.webapp.drupal.Dru... | public void test() {
Map mysqlConf = MutableMap.of("creationScriptContents", SCRIPT);
MySqlNode mySqlNode = new MySqlNode(mysqlConf, app);
Drupal drupal = new Drupal(app);
drupal.setConfig(Drupal.DATABASE_HOST, "127.0.0.1");
drupal.setConfig(Drupal.DATABASE_SCHEMA, "drupal"... |
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/ThemeMatcher.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/ThemeMatcher.java
index 6b8fcf313..2789a7573 100644
--- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/ThemeMatcher.... | true | true | public Map match(String src, Map objectModel, Parameters parameters)
throws PatternException {
try {
Request request = ObjectModelHelper.getRequest(objectModel);
String uri = request.getSitemapURI();
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
// Allow the user to override the theme ... | public Map match(String src, Map objectModel, Parameters parameters)
throws PatternException {
try {
Request request = ObjectModelHelper.getRequest(objectModel);
String uri = request.getSitemapURI();
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
// Allow the user to override the theme ... |
diff --git a/butterknife/src/main/java/butterknife/Views.java b/butterknife/src/main/java/butterknife/Views.java
index fafa12a..8453b45 100644
--- a/butterknife/src/main/java/butterknife/Views.java
+++ b/butterknife/src/main/java/butterknife/Views.java
@@ -1,252 +1,253 @@
package butterknife;
import android.app.Act... | true | true | @Override public boolean process(Set<? extends TypeElement> elements, RoundEnvironment env) {
TypeMirror viewType = processingEnv.getElementUtils().getTypeElement(TYPE_VIEW).asType();
Map<TypeElement, Set<InjectionPoint>> injectionsByClass =
new LinkedHashMap<TypeElement, Set<InjectionPoint>>... | @Override public boolean process(Set<? extends TypeElement> elements, RoundEnvironment env) {
TypeMirror viewType = processingEnv.getElementUtils().getTypeElement(TYPE_VIEW).asType();
Map<TypeElement, Set<InjectionPoint>> injectionsByClass =
new LinkedHashMap<TypeElement, Set<InjectionPoint>>... |
diff --git a/plugins/core/com.vectorsf.jvoice.core.validation/src/com/vectorsf/jvoice/core/validation/operations/CallStateValidator.java b/plugins/core/com.vectorsf.jvoice.core.validation/src/com/vectorsf/jvoice/core/validation/operations/CallStateValidator.java
index b642c463..17ba9186 100644
--- a/plugins/core/com.ve... | false | true | public boolean validate_CallState_exitsBeanInExecute(CallState state) {
Flow flow = (Flow) state.eContainer();
File rawFile = ValidatorUtils.getFile(state);
System.out.println("****************** 1 rawFile " + rawFile);
File projectFile = ValidatorUtils.findProjectFile(rawFile);
System.out.println("*******... | public boolean validate_CallState_exitsBeanInExecute(CallState state) {
Flow flow = (Flow) state.eContainer();
File rawFile = ValidatorUtils.getFile(state);
File projectFile = ValidatorUtils.findProjectFile(rawFile);
String classbean;
if (state.getBean() != null) {
classbean = state.getBean().getFqdn()... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java b/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java
index dba95622c..510a7efb1 100644
--- a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java
+++ b/modules/cpr/src/main/java/org/atmosphere/cpr/Atmosphere... | true | true | private AtmosphereRequest(Builder b) {
super(b.request);
pathInfo = b.pathInfo == null ? b.request.getPathInfo() : b.pathInfo;
request = b.request;
headers = b.headers == null ? Collections.<String, String>emptyMap() : b.headers;
queryStrings = b.queryStrings == null ? new Ha... | private AtmosphereRequest(Builder b) {
super(b.request);
pathInfo = b.pathInfo == null ? b.request.getPathInfo() : b.pathInfo;
request = b.request;
headers = b.headers == null ? new HashMap<String, String[]>() : b.headers;
queryStrings = b.queryStrings == null ? new HashMap<S... |
diff --git a/src/de/christianzunker/mobilecitygate/controller/PoiController.java b/src/de/christianzunker/mobilecitygate/controller/PoiController.java
index 67f7718..c2c8c7c 100644
--- a/src/de/christianzunker/mobilecitygate/controller/PoiController.java
+++ b/src/de/christianzunker/mobilecitygate/controller/PoiControl... | true | true | public String getPois(@PathVariable("client") String client, @PathVariable("locale") String locale, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception {
logger.debug("entering method getPois");
Calendar cal = Calendar.getInstance();
long starttime = cal.getTimeInMillis();
l... | public String getPois(@PathVariable("client") String client, @PathVariable("locale") String locale, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception {
logger.debug("entering method getPois");
Calendar cal = Calendar.getInstance();
long starttime = cal.getTimeInMillis();
l... |
diff --git a/src/ch/sbs/plugin/preptools/PrepToolLoader.java b/src/ch/sbs/plugin/preptools/PrepToolLoader.java
index 17e3618..81d06eb 100644
--- a/src/ch/sbs/plugin/preptools/PrepToolLoader.java
+++ b/src/ch/sbs/plugin/preptools/PrepToolLoader.java
@@ -1,75 +1,75 @@
package ch.sbs.plugin.preptools;
import java.util... | true | true | public static List<PrepTool> loadPrepTools(
final PrepToolsPluginExtension thePrepToolsPluginExtension) {
final List<PrepTool> prepTools = new ArrayList<PrepTool>();
int i = 0;
prepTools.add(new VFormPrepTool(thePrepToolsPluginExtension, i++, 'o'));
prepTools
.add(new ParensPrepTool(thePrepToolsPluginEx... | public static List<PrepTool> loadPrepTools(
final PrepToolsPluginExtension thePrepToolsPluginExtension) {
final List<PrepTool> prepTools = new ArrayList<PrepTool>();
int i = 0;
prepTools.add(new VFormPrepTool(thePrepToolsPluginExtension, i++, 'o'));
prepTools
.add(new ParensPrepTool(thePrepToolsPluginEx... |
diff --git a/components/bio-formats/src/loci/formats/in/FV1000Reader.java b/components/bio-formats/src/loci/formats/in/FV1000Reader.java
index 6a042c127..a5d3987ce 100644
--- a/components/bio-formats/src/loci/formats/in/FV1000Reader.java
+++ b/components/bio-formats/src/loci/formats/in/FV1000Reader.java
@@ -1,1535 +1,1... | false | true | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
parser.setCommentDelimiter(null);
isOIB = checkSuffix(id, OIB_SUFFIX);
if (isOIB) {
try {
ServiceFactory factory = new ServiceFactory();
poi = factory.getInstance(POIService.class);
... | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
parser.setCommentDelimiter(null);
isOIB = checkSuffix(id, OIB_SUFFIX);
if (isOIB) {
try {
ServiceFactory factory = new ServiceFactory();
poi = factory.getInstance(POIService.class);
... |
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 8b130aec..e52c4a10 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1,2085 +1,2088 @@
/*
* Copyright (C) 2008 ... | true | true | public void pickSuggestionManually(int index, CharSequence suggestion) {
SuggestedWords suggestions = mCandidateView.getSuggestions();
mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion,
mSettingsValues.mWordSeparators);
final boolean recorrecting = TextEnt... | public void pickSuggestionManually(int index, CharSequence suggestion) {
SuggestedWords suggestions = mCandidateView.getSuggestions();
mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion,
mSettingsValues.mWordSeparators);
final boolean recorrecting = TextEnt... |
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/interfaces/IOptionsGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/interfaces/IOptionsGenerator.java
index ecd141af1..d70be9357 100644
--- a/org.emftext.sdk.codegen.resource/sr... | true | true | public void generateJavaContents(JavaComposite sc) {
sc.add("package " + getResourcePackageName() + ";");
sc.addLineBreak();
sc.addJavadoc(
"A list of constants that contains the keys for some options that " +
"are built into EMFText. Generated resource plug-ins do automatically " +
"recognize thi... | public void generateJavaContents(JavaComposite sc) {
sc.add("package " + getResourcePackageName() + ";");
sc.addLineBreak();
sc.addJavadoc(
"A list of constants that contains the keys for some options that " +
"are built into EMFText. Generated resource plug-ins do automatically " +
"recognize the... |
diff --git a/freeplane/src/org/freeplane/view/swing/map/attribute/AttributePopupMenu.java b/freeplane/src/org/freeplane/view/swing/map/attribute/AttributePopupMenu.java
index 55ecc5d73..348f02124 100644
--- a/freeplane/src/org/freeplane/view/swing/map/attribute/AttributePopupMenu.java
+++ b/freeplane/src/org/freeplane/... | true | true | private void selectTable(final Component component, final Point point) throws AssertionError {
final int componentCount = getComponentCount();
for (int i = componentCount; i > 0;) {
remove(--i);
}
if (component instanceof AttributeTable) {
table = (AttributeTable) component;
if(table.isEditing()){
... | private void selectTable(final Component component, final Point point) throws AssertionError {
final int componentCount = getComponentCount();
for (int i = componentCount; i > 0;) {
remove(--i);
}
if (component instanceof AttributeTable) {
table = (AttributeTable) component;
if(table.isEditing()){
... |
diff --git a/src/main/java/net/floodlightcontroller/devicemanager/web/DeviceSerializer.java b/src/main/java/net/floodlightcontroller/devicemanager/web/DeviceSerializer.java
index 4e4e07db..e946d7b8 100644
--- a/src/main/java/net/floodlightcontroller/devicemanager/web/DeviceSerializer.java
+++ b/src/main/java/net/floodl... | true | true | public void serialize(Device device, JsonGenerator jGen,
SerializerProvider serializer) throws IOException,
JsonProcessingException {
jGen.writeStartObject();
jGen.writeStringField("entityClass", device.getEntityClass().getName());
jGen... | public void serialize(Device device, JsonGenerator jGen,
SerializerProvider serializer) throws IOException,
JsonProcessingException {
jGen.writeStartObject();
jGen.writeStringField("entityClass", device.getEntityClass().getName());
jGen... |
diff --git a/RutubeAPI/src/ru/rutube/RutubeAPI/RutubeApp.java b/RutubeAPI/src/ru/rutube/RutubeAPI/RutubeApp.java
index f68c84f..a9f020b 100644
--- a/RutubeAPI/src/ru/rutube/RutubeAPI/RutubeApp.java
+++ b/RutubeAPI/src/ru/rutube/RutubeAPI/RutubeApp.java
@@ -1,178 +1,180 @@
package ru.rutube.RutubeAPI;
import android... | true | true | public String getCreatedText(Date created) {
Date now = new Date();
long seconds = (now.getTime() - created.getTime()) / 1000;
if (seconds < 3600)
return getResources().getString(R.string.now);
if (seconds < 24 * 3600)
return getResources().getString(R.string.... | public String getCreatedText(Date created) {
if (created == null)
return null;
Date now = new Date();
long seconds = (now.getTime() - created.getTime()) / 1000;
if (seconds < 3600)
return getResources().getString(R.string.now);
if (seconds < 24 * 3600)... |
diff --git a/impl/src/main/java/org/jboss/weld/bootstrap/events/SimpleAnnotationDiscovery.java b/impl/src/main/java/org/jboss/weld/bootstrap/events/SimpleAnnotationDiscovery.java
index 717e6d842..bfb3c6ca6 100644
--- a/impl/src/main/java/org/jboss/weld/bootstrap/events/SimpleAnnotationDiscovery.java
+++ b/impl/src/main... | false | true | public boolean containsAnnotations(Class<?> javaClass, Collection<Class<? extends Annotation>> requiredAnnotations) {
for (Class<?> clazz = javaClass; clazz != null && clazz != Object.class; clazz = clazz.getSuperclass()) {
// class level annotations
if (containsAnnotations(cache.get... | public boolean containsAnnotations(Class<?> javaClass, Collection<Class<? extends Annotation>> requiredAnnotations) {
for (Class<?> clazz = javaClass; clazz != null && clazz != Object.class; clazz = clazz.getSuperclass()) {
// class level annotations
if (containsAnnotations(cache.get... |
diff --git a/bukkit/src/test/java/com/mvplugin/mockbukkit/MockWorld.java b/bukkit/src/test/java/com/mvplugin/mockbukkit/MockWorld.java
index cac749e..8fb3e6e 100644
--- a/bukkit/src/test/java/com/mvplugin/mockbukkit/MockWorld.java
+++ b/bukkit/src/test/java/com/mvplugin/mockbukkit/MockWorld.java
@@ -1,757 +1,761 @@
pa... | false | true | public MockWorld(WorldCreator creator) {
this.name = creator.name();
this.environment = creator.environment();
folder = new File(FileLocations.WORLDS_DIRECTORY, name);
datFile = new File(folder, "level.dat");
if (!datFile.exists()) {
this.type = creator.type();
... | public MockWorld(WorldCreator creator) {
this.name = creator.name();
this.environment = creator.environment();
this.type = creator.type();
this.seed = creator.seed();
this.uuid = UUID.nameUUIDFromBytes(name.getBytes());
folder = new File(FileLocations.WORLDS_DIRECTORY... |
diff --git a/modules/rampart-samples/basic/sample09/src/org/apache/rampart/samples/sample09/PWCBHandler.java b/modules/rampart-samples/basic/sample09/src/org/apache/rampart/samples/sample09/PWCBHandler.java
index 92adde4e2..b1911f767 100644
--- a/modules/rampart-samples/basic/sample09/src/org/apache/rampart/samples/sam... | true | true | public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[i];
if (pwcb.getUsage() == WSPasswordCallback.KEY_NAME) {
pwc... | public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[i];
if (pwcb.getUsage() == WSPasswordCallback.SECRET_KEY) {
p... |
diff --git a/wicket-rest-api/src/main/java/org/innobuilt/wicket/rest/JsonWebServicePage.java b/wicket-rest-api/src/main/java/org/innobuilt/wicket/rest/JsonWebServicePage.java
index 5c5ef98..1713a38 100644
--- a/wicket-rest-api/src/main/java/org/innobuilt/wicket/rest/JsonWebServicePage.java
+++ b/wicket-rest-api/src/mai... | true | true | protected final void onRender(MarkupStream markupStream) {
if (!isAuthorized()) {
return;
}
Writer pw = null;
try {
pw = new OutputStreamWriter(getResponse().getOutputStream(), "UTF-8");
pw.write(getJson());
} catch ( UnsupportedEncodingException e ) {
// nope - UTF-8 always included
} catch (... | protected final void onRender(MarkupStream markupStream) {
if (!isAuthorized()) {
return;
}
getResponse().setContentType( "application/json; charset=UTF-8" );
Writer pw = null;
try {
pw = new OutputStreamWriter(getResponse().getOutputStream(), "UTF-8");
pw.write(getJson());
} catch ( UnsupportedE... |
diff --git a/src/com/macleod2486/magicbuilder/Gatherer.java b/src/com/macleod2486/magicbuilder/Gatherer.java
index 5f39226..f84ce51 100644
--- a/src/com/macleod2486/magicbuilder/Gatherer.java
+++ b/src/com/macleod2486/magicbuilder/Gatherer.java
@@ -1,495 +1,495 @@
/* Magic Builder
* A simple java program that grab... | true | true | public void tcg()
{
try
{
//Keeps track of the rows within the sheet as data is being written
int rowNum;
//Creates a excel file for the information to be stored
HSSFWorkbook standard = new HSSFWorkbook();
HSSFSheet setname;
Row newRow;
//Various values to screen the data
String cl... | public void tcg()
{
try
{
//Keeps track of the rows within the sheet as data is being written
int rowNum;
//Creates a excel file for the information to be stored
HSSFWorkbook standard = new HSSFWorkbook();
HSSFSheet setname;
Row newRow;
//Various values to screen the data
String cl... |
diff --git a/mifos/src/org/mifos/framework/security/util/ActivityMapper.java b/mifos/src/org/mifos/framework/security/util/ActivityMapper.java
index 036f2a03b..da8d11c29 100644
--- a/mifos/src/org/mifos/framework/security/util/ActivityMapper.java
+++ b/mifos/src/org/mifos/framework/security/util/ActivityMapper.java
@@ ... | true | true | private ActivityMapper() {
activityMap.put("/AdminAction-load", SecurityConstants.VIEW);
// customer serach action
activityMap.put("/CustomerSearchAction-load", SecurityConstants.VIEW);
activityMap.put("/CustomerSearchAction-search",
SecurityConstants.SEARCH);
activityMap.put("/CustomerSearchActi... | private ActivityMapper() {
activityMap.put("/AdminAction-load", SecurityConstants.VIEW);
// customer serach action
activityMap.put("/CustomerSearchAction-load", SecurityConstants.VIEW);
activityMap.put("/CustomerSearchAction-search",
SecurityConstants.SEARCH);
activityMap.put("/CustomerSearchActi... |
diff --git a/solver/src/main/java/solver/constraints/propagators/unary/PropMemberBound.java b/solver/src/main/java/solver/constraints/propagators/unary/PropMemberBound.java
index e58d5e636..df5825a4f 100644
--- a/solver/src/main/java/solver/constraints/propagators/unary/PropMemberBound.java
+++ b/solver/src/main/java/s... | false | true | public void propagate(int evtmask) throws ContradictionException {
// with views such as abs(...), the prop can be not entailed after initial propagation
boolean change = vars[0].updateLowerBound(lb, this);
change &= vars[0].updateUpperBound(ub, this);
if(change){
this.se... | public void propagate(int evtmask) throws ContradictionException {
// with views such as abs(...), the prop can be not entailed after initial propagation
if(lb <= vars[0].getLB() && ub >= vars[0].getUB()){
this.setPassive();
return;
}
boolean change = vars[0].... |
diff --git a/src/com/example/bigthought/BigThought.java b/src/com/example/bigthought/BigThought.java
index 4dec057..dd0699d 100644
--- a/src/com/example/bigthought/BigThought.java
+++ b/src/com/example/bigthought/BigThought.java
@@ -1,484 +1,484 @@
package com.example.bigthought;
import java.io.File;
import java.i... | false | true | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RESULT_LOAD_IMAGE) {
// get the Uri for the captured image
picUri = data.getData();
// carry out the crop operation
crop(picUri);
}
// user is r... | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RESULT_LOAD_IMAGE && resultCode==RESULT_OK) {
// get the Uri for the captured image
picUri = data.getData();
// carry out the crop operation
crop(pi... |
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/query/ExperimentsPopupRequestHandler.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/query/ExperimentsPopupRequestHandler.java
index a7f718f58..60e17983d 100644
--- a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/query/ExperimentsPo... | true | true | public Object process(HttpServletRequest request) {
Map<String, Object> jsResult = new HashMap<String, Object>();
String geneIdKey = request.getParameter("gene");
String factor = request.getParameter("ef");
String factorValue = request.getParameter("efv");
if (geneIdKey != ... | public Object process(HttpServletRequest request) {
Map<String, Object> jsResult = new HashMap<String, Object>();
String geneIdKey = request.getParameter("gene");
String factor = request.getParameter("ef");
String factorValue = request.getParameter("efv");
if (geneIdKey != ... |
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java b/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java
index 88eef925..c932bd74 100644
--- a/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java
+++ b/WEB-INF/lps/server/src/org/openlaszlo/compiler/Topleve... | true | true | static List getLibraries(CompilationEnvironment env, Element element, Map explanations, Set autoIncluded, Set visited) {
List libraryNames = new ArrayList();
String librariesAttr = element.getAttributeValue("libraries");
String base = new File(Parser.getSourcePathname(element)).getParent();
... | static List getLibraries(CompilationEnvironment env, Element element, Map explanations, Set autoIncluded, Set visited) {
List libraryNames = new ArrayList();
String librariesAttr = element.getAttributeValue("libraries");
String base = new File(Parser.getSourcePathname(element)).getParent();
... |
diff --git a/org.knime.knip.tracking/src/org/knime/knip/tracking/nodes/transition/transitionEnumerator/TransitionEnumeratorNodeModel.java b/org.knime.knip.tracking/src/org/knime/knip/tracking/nodes/transition/transitionEnumerator/TransitionEnumeratorNodeModel.java
index 1314ccf..05728ca 100644
--- a/org.knime.knip.trac... | false | true | protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
final ExecutionContext exec) throws Exception {
DataContainer cont = exec.createDataContainer(inData[0]
.getDataTableSpec());
int graphColIdx = NodeUtils.autoColumnSelection(inData[0]
.getDataTableSpec(), new SettingsModelString("... | protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
final ExecutionContext exec) throws Exception {
DataContainer cont = exec.createDataContainer(inData[0]
.getDataTableSpec());
int graphColIdx = NodeUtils.autoColumnSelection(inData[0]
.getDataTableSpec(), new SettingsModelString("... |
diff --git a/src/main/java/timetracker/ChromatticService.java b/src/main/java/timetracker/ChromatticService.java
index 4c9e9b2..7cfeb06 100644
--- a/src/main/java/timetracker/ChromatticService.java
+++ b/src/main/java/timetracker/ChromatticService.java
@@ -1,76 +1,79 @@
package timetracker;
import org.chromattic.ap... | false | true | private void registerNodetypes(RepositoryService repoService)
{
SessionProvider sessionProvider = SessionProvider.createSystemProvider();
try
{
//get info
Session session = sessionProvider.getSession("dms-system", repoService.getCurrentRepository());
ExtendedNamespaceRegistry namespac... | private void registerNodetypes(RepositoryService repoService)
{
SessionProvider sessionProvider = SessionProvider.createSystemProvider();
try
{
//get info
Session session = sessionProvider.getSession("dms-system", repoService.getCurrentRepository());
ExtendedNamespaceRegistry namespac... |
diff --git a/gcscripts/gcwarriorsguild/SelectorGui.java b/gcscripts/gcwarriorsguild/SelectorGui.java
index 7562b93..6c7722b 100644
--- a/gcscripts/gcwarriorsguild/SelectorGui.java
+++ b/gcscripts/gcwarriorsguild/SelectorGui.java
@@ -1,94 +1,94 @@
package gcscripts.gcwarriorsguild;
import gcapi.utils.Logger;
impo... | false | true | public SelectorGui(Logger logger) {
this.logger = logger;
this.logger.log("Initialised selection GUI");
setTitle("GC Warriors' Guild - Select action");
setPreferredSize(new Dimension(200, 100));
setResizable(false);
setLayout(new FlowLayout(FlowLayout.LEADING, PADDING, PADDING));
setDefaultCloseOpera... | public SelectorGui(Logger logger) {
//this.logger = logger;
//this.logger.log("Initialised selection GUI");
setTitle("GC Warriors' Guild - Select action");
setPreferredSize(new Dimension(200, 100));
setResizable(false);
setLayout(new FlowLayout(FlowLayout.LEADING, PADDING, PADDING));
setDefaultCloseO... |
diff --git a/FlexAscParser/src_converter/Main2.java b/FlexAscParser/src_converter/Main2.java
index 1a56c04..3d8d5e5 100644
--- a/FlexAscParser/src_converter/Main2.java
+++ b/FlexAscParser/src_converter/Main2.java
@@ -1,2171 +1,2171 @@
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
i... | true | true | private static void process(ForStatementNode node)
{
boolean isForEach = node.test instanceof HasNextNode;
if (isForEach)
{
// get iterable collection expression
assert node.initialize != null;
assert node.initialize instanceof ListNode : node.initialize.getClass();
ListNode list = (ListNode) no... | private static void process(ForStatementNode node)
{
boolean isForEach = node.test instanceof HasNextNode;
if (isForEach)
{
// get iterable collection expression
assert node.initialize != null;
assert node.initialize instanceof ListNode : node.initialize.getClass();
ListNode list = (ListNode) no... |
diff --git a/src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java b/src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java
index f8611e7ed6c..bebb71fd0f7 100644
--- a/src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java
+++ b/src/main/java/org/elasti... | true | true | public void putMapping(final PutRequest request, final Listener listener) {
final AtomicBoolean notifyOnPostProcess = new AtomicBoolean();
clusterService.submitStateUpdateTask("put-mapping [" + request.mappingType + "]", Priority.HIGH, new TimeoutClusterStateUpdateTask() {
@Override
... | public void putMapping(final PutRequest request, final Listener listener) {
final AtomicBoolean notifyOnPostProcess = new AtomicBoolean();
clusterService.submitStateUpdateTask("put-mapping [" + request.mappingType + "]", Priority.HIGH, new TimeoutClusterStateUpdateTask() {
@Override
... |
diff --git a/src/mapred/org/apache/hadoop/mapreduce/security/TokenCache.java b/src/mapred/org/apache/hadoop/mapreduce/security/TokenCache.java
index 376e1659a..95270f9df 100644
--- a/src/mapred/org/apache/hadoop/mapreduce/security/TokenCache.java
+++ b/src/mapred/org/apache/hadoop/mapreduce/security/TokenCache.java
@@ ... | false | true | static void obtainTokensForNamenodesInternal(Credentials credentials,
Path [] ps, Configuration conf)
throws IOException {
// get jobtracker principal id (for the renewer)
KerberosName jtKrbName = new KerberosName(conf.get(JobTracker.JT_USER_NAME, ""));
Tex... | static void obtainTokensForNamenodesInternal(Credentials credentials,
Path [] ps, Configuration conf)
throws IOException {
// get jobtracker principal id (for the renewer)
KerberosName jtKrbName = new KerberosName(conf.get(JobTracker.JT_USER_NAME, ""));
Tex... |
diff --git a/installer/ant-lib-src/org/netbeans/installer/javafx/FirstFNameTask.java b/installer/ant-lib-src/org/netbeans/installer/javafx/FirstFNameTask.java
index 92afd599..896cb102 100644
--- a/installer/ant-lib-src/org/netbeans/installer/javafx/FirstFNameTask.java
+++ b/installer/ant-lib-src/org/netbeans/installer/... | true | true | public void execute() throws BuildException {
String[] f = dir.list();
if (f != null && f.length > 0) getProject().setNewProperty(property, f[0]);
}
| public void execute() throws BuildException {
String[] f = dir.list();
if (f != null && f.length > 0)
for (int i=0; i<f.length; i++)
if (!f[i].startsWith(".")) {
getProject().setNewProperty(property, f[i]);
return;
... |
diff --git a/src/dev/ukanth/ufirewall/Api.java b/src/dev/ukanth/ufirewall/Api.java
index 378a268b..cc93053c 100644
--- a/src/dev/ukanth/ufirewall/Api.java
+++ b/src/dev/ukanth/ufirewall/Api.java
@@ -1,2024 +1,2023 @@
/**
*
* All iptables "communication" is handled by this class.
*
* Copyright (C) 2009-2011 ... | true | true | private static boolean applyIptablesRulesImpl(final Context ctx, List<Integer> uidsWifi, List<Integer> uids3g,
List<Integer> uidsRoam, List<Integer> uidsVPN, List<Integer> uidsLAN, final boolean showErrors) {
if (ctx == null) {
return false;
}
assertBinaries(ctx, showErrors);
final SharedPreferenc... | private static boolean applyIptablesRulesImpl(final Context ctx, List<Integer> uidsWifi, List<Integer> uids3g,
List<Integer> uidsRoam, List<Integer> uidsVPN, List<Integer> uidsLAN, final boolean showErrors) {
if (ctx == null) {
return false;
}
assertBinaries(ctx, showErrors);
final SharedPreferenc... |
diff --git a/src/vooga/fighter/model/loaders/ObjectLoader.java b/src/vooga/fighter/model/loaders/ObjectLoader.java
index 4e3addb6..3932e240 100644
--- a/src/vooga/fighter/model/loaders/ObjectLoader.java
+++ b/src/vooga/fighter/model/loaders/ObjectLoader.java
@@ -1,120 +1,122 @@
package vooga.fighter.model.loaders;
... | true | true | protected void getImageAndHitboxProperties(NodeList frameNodes, State newState){
for (int j = 0; j < frameNodes.getLength(); j++) {
newState.populateImage(new Pixmap(getAttributeValue(frameNodes.item(j), "image")), j);
Element frame = (Element) frameNodes.item(j);
NodeList hitboxNodes = frame.getElementsByT... | protected void getImageAndHitboxProperties(NodeList frameNodes, State newState){
for (int j = 0; j < frameNodes.getLength(); j++) {
if (frameNodes.item(j).getAttributes().getNamedItem("image") != null) {
newState.populateImage(new Pixmap(getAttributeValue(frameNodes.item(j), "image")), j);
}
Element fra... |
diff --git a/spring-batch-admin-manager/src/test/java/org/springframework/batch/admin/web/views/JobExecutionViewTests.java b/spring-batch-admin-manager/src/test/java/org/springframework/batch/admin/web/views/JobExecutionViewTests.java
index 347648c..246559d 100644
--- a/spring-batch-admin-manager/src/test/java/org/spri... | true | true | public void testLaunchViewWithJobExecution() throws Exception {
JobExecution jobExecution = MetaDataInstanceFactory.createJobExecutionWithStepExecutions(123L, Arrays.asList(
"foo", "bar"));
model.put("jobExecutionInfo", new JobExecutionInfo(jobExecution, TimeZone.getTimeZone("GMT")));
model.put("stepExecutio... | public void testLaunchViewWithJobExecution() throws Exception {
JobExecution jobExecution = MetaDataInstanceFactory.createJobExecutionWithStepExecutions(123L, Arrays.asList(
"foo", "bar"));
model.put("jobExecutionInfo", new JobExecutionInfo(jobExecution, TimeZone.getTimeZone("GMT")));
model.put("stepExecutio... |
diff --git a/src/org/openstreetmap/josm/actions/SplitWayAction.java b/src/org/openstreetmap/josm/actions/SplitWayAction.java
index 04ac3953..136b5558 100644
--- a/src/org/openstreetmap/josm/actions/SplitWayAction.java
+++ b/src/org/openstreetmap/josm/actions/SplitWayAction.java
@@ -1,295 +1,300 @@
// License: GPL. Cop... | false | true | private void splitWay() {
// We take our way's list of nodes and copy them to a way chunk (a
// list of nodes). Whenever we stumble upon a selected node, we start
// a new way chunk.
Set<Node> nodeSet = new HashSet<Node>(selectedNodes);
List<List<Node>> wayChunks = new LinkedList<List<Node>>();
List<Node... | private void splitWay() {
// We take our way's list of nodes and copy them to a way chunk (a
// list of nodes). Whenever we stumble upon a selected node, we start
// a new way chunk.
Set<Node> nodeSet = new HashSet<Node>(selectedNodes);
List<List<Node>> wayChunks = new LinkedList<List<Node>>();
List<Node... |
diff --git a/src/main/java/fr/dutra/confluence2wordpress/macro/TOCMacro.java b/src/main/java/fr/dutra/confluence2wordpress/macro/TOCMacro.java
index 4f8a20a..7132a01 100755
--- a/src/main/java/fr/dutra/confluence2wordpress/macro/TOCMacro.java
+++ b/src/main/java/fr/dutra/confluence2wordpress/macro/TOCMacro.java
@@ -1,7... | true | true | public String execute(Map<String, String> paramMap, String paramString, ConversionContext paramConversionContext) throws MacroExecutionException {
ContentEntityObject page = paramConversionContext.getEntity();
String storage = page.getBodyAsString();
TOCBuilder builder = new TOCBuilder();
Heading toc;
try {
... | public String execute(Map<String, String> paramMap, String paramString, ConversionContext paramConversionContext) throws MacroExecutionException {
ContentEntityObject page = paramConversionContext.getEntity();
if(page == null) {
//page can be null if we are in a template
return "";
}
String storage = pag... |
diff --git a/webui/src/main/java/taxonomy/webui/client/widget/TxShell.java b/webui/src/main/java/taxonomy/webui/client/widget/TxShell.java
index 3d22277..306a89e 100644
--- a/webui/src/main/java/taxonomy/webui/client/widget/TxShell.java
+++ b/webui/src/main/java/taxonomy/webui/client/widget/TxShell.java
@@ -1,94 +1,96 ... | true | true | public TxShell() {
monitorWindowResize = true;
Window.enableScrolling(false);
setPixelSize(Window.getClientWidth(), Window.getClientHeight());
setStateful(false);
setStateId("explorerLayout");
// BorderLayoutStateHandler state = new BorderLayoutStateHandler(this);
// state.loadState();
... | public TxShell() {
monitorWindowResize = true;
Window.enableScrolling(false);
setPixelSize(Window.getClientWidth(), Window.getClientHeight());
setStateful(false);
setStateId("explorerLayout");
// BorderLayoutStateHandler state = new BorderLayoutStateHandler(this);
// state.loadState();
... |
diff --git a/oseille/src/lobstre/oseille/commands/RebaseOperation.java b/oseille/src/lobstre/oseille/commands/RebaseOperation.java
index 174a8ca..0161ae8 100644
--- a/oseille/src/lobstre/oseille/commands/RebaseOperation.java
+++ b/oseille/src/lobstre/oseille/commands/RebaseOperation.java
@@ -1,48 +1,48 @@
package lobs... | false | true | public void execute (final String fileName, final List<String> arguments) throws IOException, ParseException {
final File file = new File (fileName);
final Account acc = Parser.read (file);
final int from = Integer.parseInt (arguments.get (0));
final int to = Integer.parseIn... | public void execute (final String fileName, final List<String> arguments) throws IOException, ParseException {
final File file = new File (fileName);
final Account acc = Parser.read (file);
final List<Operation> opers = acc.getOperations ();
final int from = Integer.parseInt... |
diff --git a/src/main/java/fr/ybo/ybotv/android/service/HttpService.java b/src/main/java/fr/ybo/ybotv/android/service/HttpService.java
index bbbcfbf..6d42b65 100644
--- a/src/main/java/fr/ybo/ybotv/android/service/HttpService.java
+++ b/src/main/java/fr/ybo/ybotv/android/service/HttpService.java
@@ -1,72 +1,76 @@
pack... | true | true | protected <T> T getObjectsWithoutRetry(String url, TypeToken<T> typeToken) throws YboTvErreurReseau {
Reader reader = null;
try {
Log.d("YboTv", "Url demandee : " + url);
HttpClient client = HttpUtils.getHttpClient();
HttpUriRequest request = new HttpGet(url.repl... | protected <T> T getObjectsWithoutRetry(String url, TypeToken<T> typeToken) throws YboTvErreurReseau {
Reader reader = null;
try {
Log.d("YboTv", "Url demandee : " + url);
HttpClient client = HttpUtils.getHttpClient();
HttpUriRequest request = new HttpGet(url.repl... |
diff --git a/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java b/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java
index 44bdb07..94b95a6 100644
--- a/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java
+++ b/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java
@@ -1,69 +1,69 @@
/*
* C... | true | true | public void writeXref(Writer out) throws IOException {
xref.reInit(content, len);
xref.project = project;
// @TODO xref.setDefs(defs);
xref.write(out);
}
| public void writeXref(Writer out) throws IOException {
xref.reInit(content, len);
xref.project = project;
xref.setDefs(defs);
xref.write(out);
}
|
diff --git a/tools/cts-reference-app-lib/src/android/cts/refapp/ReferenceAppTestCase.java b/tools/cts-reference-app-lib/src/android/cts/refapp/ReferenceAppTestCase.java
index fc5cd5af..203b6909 100644
--- a/tools/cts-reference-app-lib/src/android/cts/refapp/ReferenceAppTestCase.java
+++ b/tools/cts-reference-app-lib/sr... | true | true | public void testActivityStartupTime() {
// Test activity startup time.
long start = System.currentTimeMillis();
Activity activity = getActivity();
long end = System.currentTimeMillis();
long startupTime = end - start;
assertTrue("Activity Startup took more than 5 se... | public void testActivityStartupTime() {
// Test activity startup time.
long start = System.currentTimeMillis();
Activity activity = getActivity();
long end = System.currentTimeMillis();
long startupTime = end - start;
assertTrue("Activity Startup took more than " + ... |
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
index ad0d546fa..fb1aec56f 100644
--- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
+++ b/continuum-web... | true | true | protected String getCellValue( TableModel tableModel, Column column )
{
SummaryProjectModel project = (SummaryProjectModel) tableModel.getCurrentRowBean();
String contextPath = tableModel.getContext().getContextPath();
int buildNumber = project.getBuildNumber();
String result ... | protected String getCellValue( TableModel tableModel, Column column )
{
SummaryProjectModel project = (SummaryProjectModel) tableModel.getCurrentRowBean();
String contextPath = tableModel.getContext().getContextPath();
int buildNumber = project.getBuildNumber();
String result ... |
diff --git a/api/src/test/java/org/openmrs/reporting/ReportObjectServiceTest.java b/api/src/test/java/org/openmrs/reporting/ReportObjectServiceTest.java
index 3ca31acb..759b8367 100644
--- a/api/src/test/java/org/openmrs/reporting/ReportObjectServiceTest.java
+++ b/api/src/test/java/org/openmrs/reporting/ReportObjectSe... | true | true | public void saveSearchHistory_shouldSaveHistorySuccessfully() throws Exception {
// make a patient search object
PatientSearch search = new PatientSearch();
search.setFilterClass(ObsPatientFilter.class);
List<SearchArgument> args = new ArrayList<SearchArgument>();
args.add(new SearchArgument("timeModifier", ... | public void saveSearchHistory_shouldSaveHistorySuccessfully() throws Exception {
// make a patient search object
PatientSearch search = new PatientSearch();
search.setFilterClass(ObsPatientFilter.class);
List<SearchArgument> args = new ArrayList<SearchArgument>();
args.add(new SearchArgument("timeModifier", ... |
diff --git a/Core/src/java/ho/module/teamAnalyzer/manager/MatchManager.java b/Core/src/java/ho/module/teamAnalyzer/manager/MatchManager.java
index 1ea9f32b..758906f4 100644
--- a/Core/src/java/ho/module/teamAnalyzer/manager/MatchManager.java
+++ b/Core/src/java/ho/module/teamAnalyzer/manager/MatchManager.java
@@ -1,177... | true | true | private static List<Match> getTeamMatch() {
List<Match> teamMatches = new ArrayList<Match>();
String oldName = SystemManager.getActiveTeamName();
MatchKurzInfo[] matchKurtzInfo = DBManager.instance().getMatchesKurzInfo(SystemManager
... | private static List<Match> getTeamMatch() {
List<Match> teamMatches = new ArrayList<Match>();
String oldName = SystemManager.getActiveTeamName();
MatchKurzInfo[] matchKurtzInfo = DBManager.instance().getMatchesKurzInfo(SystemManager
... |
diff --git a/beddit_alarm/src/ohtu/beddit/views/timepicker/CustomTimePicker.java b/beddit_alarm/src/ohtu/beddit/views/timepicker/CustomTimePicker.java
index fcb059e..b812e87 100644
--- a/beddit_alarm/src/ohtu/beddit/views/timepicker/CustomTimePicker.java
+++ b/beddit_alarm/src/ohtu/beddit/views/timepicker/CustomTimePic... | true | true | private void createComponents() {
float radius = getHeight() >= (1 + BAR_HEIGHT) * getWidth() ?
getWidth() * 0.5f : Math.min(getWidth(), getHeight()) * (0.5f - BAR_HEIGHT);
float barHeight = (radius * BAR_HEIGHT)*(1-SPACER_SIZE);
float barSpacer = barHeight * SPACER_SIZE;
... | private void createComponents() {
float radius = (getHeight() / 2) * (1-BAR_HEIGHT);
if (radius*2 > getWidth())
radius = getWidth() / 2;
float barHeight = (radius * BAR_HEIGHT)*(1-SPACER_SIZE);
float barSpacer = barHeight * SPACER_SIZE;
float midX = getWidth() / ... |
diff --git a/src/jvm/com/twitter/maple/hbase/HBaseTap.java b/src/jvm/com/twitter/maple/hbase/HBaseTap.java
index 15f4936..bd7c0c4 100644
--- a/src/jvm/com/twitter/maple/hbase/HBaseTap.java
+++ b/src/jvm/com/twitter/maple/hbase/HBaseTap.java
@@ -1,278 +1,278 @@
/*
* Copyright (c) 2009 Concurrent, Inc.
*
* This wo... | true | true | public void sinkConfInit(FlowProcess<JobConf> process, JobConf conf) {
if(quorumNames != null) {
conf.set("hbase.zookeeper.quorum", quorumNames);
}
LOG.debug("sinking to table: {}", tableName);
if (isReplace() && conf.get("mapred.task.partition") == null) {
try {
deleteResource(c... | public void sinkConfInit(FlowProcess<JobConf> process, JobConf conf) {
if(quorumNames != null) {
conf.set("hbase.zookeeper.quorum", quorumNames);
}
LOG.debug("sinking to table: {}", tableName);
if (isReplace() && conf.get("mapred.task.partition") == null) {
try {
deleteResource(c... |
diff --git a/api-maven/src/test/java/org/jboss/shrinkwrap/resolver/api/maven/coordinate/MavenDependencyImplTestCase.java b/api-maven/src/test/java/org/jboss/shrinkwrap/resolver/api/maven/coordinate/MavenDependencyImplTestCase.java
index c77ed9e..b24d76b 100644
--- a/api-maven/src/test/java/org/jboss/shrinkwrap/resolver... | false | true | public void properties() {
final String groupId = "groupId";
final String artifactId = "artifactId";
final String version = "version";
final PackagingType packaging = PackagingType.POM;
final String classifier = "classifier";
final ScopeType scope = ScopeType.IMPORT;
... | public void properties() {
final String groupId = "groupId";
final String artifactId = "artifactId";
final String version = "version";
final PackagingType packaging = PackagingType.POM;
final String classifier = "classifier";
final ScopeType scope = ScopeType.IMPORT;
... |
diff --git a/src/haven/Skeleton.java b/src/haven/Skeleton.java
index 2eec4aef..ab1c51a9 100644
--- a/src/haven/Skeleton.java
+++ b/src/haven/Skeleton.java
@@ -1,600 +1,604 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* ... | true | true | public void aupdate(float time) {
if(time > len)
time = len;
reset();
for(int i = 0; i < tracks.length; i++) {
Track t = tracks[i];
if((t == null) || (t.frames.length == 0))
continue;
if(t.frames.length == 1) {
qset(lrot[i], t.frames[0].rot);
vset(lpos[i], t.frames[0].trans);
... | public void aupdate(float time) {
if(time > len)
time = len;
reset();
for(int i = 0; i < tracks.length; i++) {
Track t = tracks[i];
if((t == null) || (t.frames.length == 0))
continue;
if(t.frames.length == 1) {
qset(lrot[i], t.frames[0].rot);
vset(lpos[i], t.frames[0].trans);
... |
diff --git a/src/net/zionsoft/obadiah/BibleReader.java b/src/net/zionsoft/obadiah/BibleReader.java
index 36da9c6..f6b169a 100644
--- a/src/net/zionsoft/obadiah/BibleReader.java
+++ b/src/net/zionsoft/obadiah/BibleReader.java
@@ -1,165 +1,171 @@
package net.zionsoft.obadiah;
import java.io.File;
import java.io.File... | true | true | public void refresh()
{
try {
File[] directories = m_rootDir.listFiles();
final int length = directories.length;
if (length == 0)
return;
boolean hasTranslationsFile = false;
for (int i = 0; i < length; ++i) {
i... | public void refresh()
{
try {
File[] directories = m_rootDir.listFiles();
final int length = directories.length;
if (length == 0)
return;
boolean hasTranslationsFile = false;
for (int i = 0; i < length; ++i) {
i... |
diff --git a/src/main/java/com/jadventure/game/menus/DebugMenu.java b/src/main/java/com/jadventure/game/menus/DebugMenu.java
index b40e082..0499e51 100644
--- a/src/main/java/com/jadventure/game/menus/DebugMenu.java
+++ b/src/main/java/com/jadventure/game/menus/DebugMenu.java
@@ -1,48 +1,47 @@
package com.jadventure.g... | true | true | public DebugMenu(Player p) {
this.menuID = 90;
player = p;
this.menuItems.add(new MenuItem("pAttack", "Modify Player Attack"));
this.menuItems.add(new MenuItem("pHealth", "Modify Player Health"));
this.menuItems.add(new MenuItem("pMaxHealth", "Modify Player Max Health"));
... | public DebugMenu(Player p) {
player = p;
this.menuItems.add(new MenuItem("pAttack", "Modify Player Attack"));
this.menuItems.add(new MenuItem("pHealth", "Modify Player Health"));
this.menuItems.add(new MenuItem("pMaxHealth", "Modify Player Max Health"));
this.menuItems.add(ne... |
diff --git a/module/org.restlet.test/src/org/restlet/test/ReferenceTestCase.java b/module/org.restlet.test/src/org/restlet/test/ReferenceTestCase.java
index 5abad85c4..0e0f9f359 100644
--- a/module/org.restlet.test/src/org/restlet/test/ReferenceTestCase.java
+++ b/module/org.restlet.test/src/org/restlet/test/ReferenceT... | true | true | public void testParsing() throws IOException {
String base = "http://a/b/c/d;p?q";
String uri01 = "g:h";
String uri02 = "g";
String uri03 = "./g";
String uri04 = "g/";
String uri05 = "/g";
String uri06 = "//g";
String uri07 = "?y";
String uri0... | public void testParsing() throws IOException {
String base = "http://a/b/c/d;p?q";
String uri01 = "g:h";
String uri02 = "g";
String uri03 = "./g";
String uri04 = "g/";
String uri05 = "/g";
String uri06 = "//g";
String uri07 = "?y";
String uri0... |
diff --git a/src/main/java/org/got5/tapestry5/jquery/services/impl/JavaScriptFilesConfigurationImpl.java b/src/main/java/org/got5/tapestry5/jquery/services/impl/JavaScriptFilesConfigurationImpl.java
index 4cd87480..b7c9901e 100644
--- a/src/main/java/org/got5/tapestry5/jquery/services/impl/JavaScriptFilesConfigurationI... | true | true | public Asset getAsset(Asset original) {
for(String key : javaScriptFilesConfiguration.keySet()){
if(original.getResource().getFile().endsWith(key)){
return InternalUtils.isBlank(javaScriptFilesConfiguration.get(key)) ? null : this.as.getExpandedAsset(javaScriptFilesConfiguration.get(key));
}
}
return o... | public Asset getAsset(Asset original) {
if(javaScriptFilesConfiguration.containsKey(original.getResource().getFile())) {
String assetPath = javaScriptFilesConfiguration.get(original.getResource().getFile());
return InternalUtils.isBlank(assetPath) ? null : this.as.getExpandedAsset(assetPath);
}
return orig... |
diff --git a/app/src/nl/digitalica/skydivekompasroos/CanopyDetailsActivity.java b/app/src/nl/digitalica/skydivekompasroos/CanopyDetailsActivity.java
index df18399..312daf4 100644
--- a/app/src/nl/digitalica/skydivekompasroos/CanopyDetailsActivity.java
+++ b/app/src/nl/digitalica/skydivekompasroos/CanopyDetailsActivity.... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_canopydetails);
Bundle extras = getIntent().getExtras();
String canopyKey = extras.getString(CANOPYKEYEXTRA);
List<Canopy> thisCanopy = Canopy.getCanopiesInList(canopyKey, this);
HashMap<... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_canopydetails);
Bundle extras = getIntent().getExtras();
String canopyKey = extras.getString(CANOPYKEYEXTRA);
List<Canopy> thisCanopy = Canopy.getCanopiesInList(canopyKey, this);
HashMap<... |
diff --git a/src/com/duckcult/conway/gol/Board.java b/src/com/duckcult/conway/gol/Board.java
index c0dc99c..0c5325f 100644
--- a/src/com/duckcult/conway/gol/Board.java
+++ b/src/com/duckcult/conway/gol/Board.java
@@ -1,451 +1,451 @@
package com.duckcult.conway.gol;
import java.io.File;
import java.io.FileNotFoundE... | false | true | public ArrayList<Mesh> toMeshes(float depth) {
ArrayList<Mesh> ret = new ArrayList<Mesh>(height*width);
float squareSize = 2f/(float)width;
float l = -1;
float r = squareSize-1;
float t = 2f/(float)height-1;
float b = -1;
for (int i = 0; i < height; i++) {
l = -1;
r=2f/(float)-1;
for (int j = 0;... | public ArrayList<Mesh> toMeshes(float depth) {
ArrayList<Mesh> ret = new ArrayList<Mesh>(height*width);
float squareSize = 2f/(float)width;
float l = -1;
float r = squareSize-1;
float t = 2f/(float)height-1;
float b = -1;
for (int i = 0; i < height; i++) {
l = -1;
r=squareSize-1;
for (int j = 0;... |
diff --git a/src/realms/yanel-website/src/java/org/wyona/yanel/website/menu/impl/YanelWebsiteMenu.java b/src/realms/yanel-website/src/java/org/wyona/yanel/website/menu/impl/YanelWebsiteMenu.java
index 43e12a534..549c43dbb 100644
--- a/src/realms/yanel-website/src/java/org/wyona/yanel/website/menu/impl/YanelWebsiteMenu.... | false | true | public String getMenus(Resource resource, HttpServletRequest request, Map map, String reservedPrefix) throws ServletException, IOException, Exception {
String backToRealm = org.wyona.yanel.core.util.PathUtil.backToRealm(resource.getPath());
StringBuffer sb= new StringBuffer();
sb.append("<ul><li>... | public String getMenus(Resource resource, HttpServletRequest request, Map map, String reservedPrefix) throws ServletException, IOException, Exception {
String backToRealm = org.wyona.yanel.core.util.PathUtil.backToRealm(resource.getPath());
StringBuffer sb= new StringBuffer();
sb.append("<ul><li>... |
diff --git a/src/main/java/net/rcarz/jiraclient/RestClient.java b/src/main/java/net/rcarz/jiraclient/RestClient.java
index f088402..1bbc1b9 100644
--- a/src/main/java/net/rcarz/jiraclient/RestClient.java
+++ b/src/main/java/net/rcarz/jiraclient/RestClient.java
@@ -1,371 +1,374 @@
/**
* jira-client - a simple JIRA RE... | true | true | private JSON request(HttpRequestBase req) throws RestException, IOException {
req.addHeader("Accept", "application/json");
if (creds != null)
creds.authenticate(req);
HttpResponse resp = httpClient.execute(req);
HttpEntity ent = resp.getEntity();
StringBuilder r... | private JSON request(HttpRequestBase req) throws RestException, IOException {
req.addHeader("Accept", "application/json");
if (creds != null)
creds.authenticate(req);
HttpResponse resp = httpClient.execute(req);
HttpEntity ent = resp.getEntity();
StringBuilder r... |
diff --git a/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.java b/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.java
index 733122b..89240f5 100644
--- a/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.java
+++ b/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.... | false | true | public void start() throws ProviderDoesNotExistException, SipException {
super.start();
String mBeanName=JAIN_SIP_MBEAN_NAME + stackName;
try {
oname = new ObjectName(mBeanName);
if (getMBeanServer() != null && !getMBeanServer().isRegistered(oname)) {
getMBeanServer().registerMBean(this, oname);
if... | public void start() throws ProviderDoesNotExistException, SipException {
super.start();
String mBeanName=JAIN_SIP_MBEAN_NAME + stackName;
try {
oname = new ObjectName(mBeanName);
if (getMBeanServer() != null && !getMBeanServer().isRegistered(oname)) {
getMBeanServer().registerMBean(this, oname);
if... |
diff --git a/basiclti-common/src/java/org/sakaiproject/basiclti/util/ShaUtil.java b/basiclti-common/src/java/org/sakaiproject/basiclti/util/ShaUtil.java
index e6333ab..46521f1 100644
--- a/basiclti-common/src/java/org/sakaiproject/basiclti/util/ShaUtil.java
+++ b/basiclti-common/src/java/org/sakaiproject/basiclti/util/... | true | true | public static void main(String[] args) {
final String sample1 = "12345:/sites/foo/bar !@#$%^&*()_+|}{\":?><[]\';/.,'����������Э��ҹ������ό�ĩ����ɾֳ���ÍŽ";
final String sample2 = "12345:/sites/foo/bar !@#$%^&*()_+|}{\":?><[]\';/.,'����������Э��ҹ������ό�ĩ����ɾֳ���ÍŽ";
final String sample3 = "12345:/sites/foo/bar !@#... | public static void main(String[] args) {
final String sample1 = "12345:/sites/foo/bar !@#$%^&*()_+|}{\":?><[]\';/.,'Áª£¢°¤¦¥»¼ÐÇÔÒ¹¿ö¬ ¨«Ï¶Ä©úÆûÂɾֳ²µ÷ÃŽ";
final String sample2 = "12345:/sites/foo/bar !@#$%^&*()_+|}{\":?><[]\';/.,'Áª£¢°¤¦¥»¼ÐÇÔÒ¹¿ö¬ ¨«Ï¶Ä©úÆûÂɾֳ²µ÷ÃŽ";
final String sample3 = "12345:/s... |
diff --git a/trunk/org/xbill/DNS/Master.java b/trunk/org/xbill/DNS/Master.java
index 574ec85..c795a9c 100644
--- a/trunk/org/xbill/DNS/Master.java
+++ b/trunk/org/xbill/DNS/Master.java
@@ -1,427 +1,427 @@
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.io.*;
i... | false | true | public Record
_nextRecord() throws IOException {
Tokenizer.Token token;
String s;
if (included != null) {
Record rec = included.nextRecord();
if (rec != null)
return rec;
included = null;
}
if (generator != null) {
Record rec = nextGenerated();
if (rec != null)
return rec;
endGenerate();
}
whi... | public Record
_nextRecord() throws IOException {
Tokenizer.Token token;
String s;
if (included != null) {
Record rec = included.nextRecord();
if (rec != null)
return rec;
included = null;
}
if (generator != null) {
Record rec = nextGenerated();
if (rec != null)
return rec;
endGenerate();
}
whi... |
diff --git a/src/main/java/net/minecraft/client/gui/InputFix_GuiScreenFix.java b/src/main/java/net/minecraft/client/gui/InputFix_GuiScreenFix.java
index 4ca15fe..193d4a4 100644
--- a/src/main/java/net/minecraft/client/gui/InputFix_GuiScreenFix.java
+++ b/src/main/java/net/minecraft/client/gui/InputFix_GuiScreenFix.java... | false | true | public static void handleKeyboardInput(GuiScreen gui)
{
if (Keyboard.getEventKeyState())
{
do
{
int k = Keyboard.getEventKey();
char c = Keyboard.getEventCharacter();
if (k == 87)
{
gui.mc... | public static void handleKeyboardInput(GuiScreen gui)
{
if (Keyboard.getEventKeyState())
{
do
{
int k = Keyboard.getEventKey();
char c = Keyboard.getEventCharacter();
if (k == 87)
{
gui.mc... |
diff --git a/src/screencapture/PictureWriterThread.java b/src/screencapture/PictureWriterThread.java
index c7f817a..33c7f57 100755
--- a/src/screencapture/PictureWriterThread.java
+++ b/src/screencapture/PictureWriterThread.java
@@ -1,107 +1,107 @@
package screencapture;
import java.io.File;
import java.io.IOExcep... | true | true | public void run()
{
// TODO: DEBUG prints out that the PictureWriterThread has started.
System.out.println("PictureWriter has started.");
// Sets a node that is going to be reused many times to null.
PicNode pn = null;
try
{
// TODO: DEBUG var... | public void run()
{
// TODO: DEBUG prints out that the PictureWriterThread has started.
System.out.println("PictureWriter has started.");
// Sets a node that is going to be reused many times to null.
PicNode pn = null;
try
{
// TODO: DEBUG var... |
diff --git a/src/com/undeadscythes/udsplugin/SaveablePlayer.java b/src/com/undeadscythes/udsplugin/SaveablePlayer.java
index ed6a5b1..7a090f5 100644
--- a/src/com/undeadscythes/udsplugin/SaveablePlayer.java
+++ b/src/com/undeadscythes/udsplugin/SaveablePlayer.java
@@ -1,1424 +1,1424 @@
package com.undeadscythes.udsplu... | false | true | public String timeToString(final long time) {
long timeRemaining = time;
String timeString = "";
if(timeRemaining >= Timer.DAY) {
final int days = (int)(timeRemaining / Timer.DAY);
timeString = timeString.concat(days + (days == 1 ? " day" : " days "));
tim... | public String timeToString(final long time) {
long timeRemaining = time;
String timeString = "";
if(timeRemaining >= Timer.DAY) {
final int days = (int)(timeRemaining / Timer.DAY);
timeString = timeString.concat(days + (days == 1 ? " day " : " days "));
ti... |
diff --git a/core/pog-string-based/src/main/java/org/overture/pog/visitor/PogParamDefinitionVisitor.java b/core/pog-string-based/src/main/java/org/overture/pog/visitor/PogParamDefinitionVisitor.java
index 0e6b9ffbfc..e419834d83 100644
--- a/core/pog-string-based/src/main/java/org/overture/pog/visitor/PogParamDefinition... | false | true | public ProofObligationList caseAImplicitFunctionDefinition(
AImplicitFunctionDefinition node, POContextStack question)
throws AnalysisException
{
try
{
ProofObligationList obligations = new ProofObligationList();
LexNameList pids = new LexNameList();
boolean matchNeeded = false;
for (APatter... | public ProofObligationList caseAImplicitFunctionDefinition(
AImplicitFunctionDefinition node, POContextStack question)
throws AnalysisException
{
try
{
ProofObligationList obligations = new ProofObligationList();
LexNameList pids = new LexNameList();
boolean matchNeeded = false;
for (APatter... |
diff --git a/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java b/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java
index c89f4cf7..b9a69d27 100644
--- a/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java
+++ b/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java
@@ -1,668 +1,670 @@
/*
This file is... | false | true | private void initComponents() {
DisMenu = new javax.swing.JPopupMenu();
CopyAddress = new javax.swing.JMenuItem();
CopyAll = new javax.swing.JMenuItem();
BranchOrJump = new javax.swing.JMenuItem();
jList1 = new javax.swing.JList(model_1);
ResetToPC = new javax.swing.... | private void initComponents() {
DisMenu = new javax.swing.JPopupMenu();
CopyAddress = new javax.swing.JMenuItem();
CopyAll = new javax.swing.JMenuItem();
BranchOrJump = new javax.swing.JMenuItem();
jList1 = new javax.swing.JList(model_1);
ResetToPC = new javax.swing.... |
diff --git a/src/test/java/org/elasticsearch/examples/nativescript/script/PopularityScoreScriptTests.java b/src/test/java/org/elasticsearch/examples/nativescript/script/PopularityScoreScriptTests.java
index 7ed0596..75ef9ff 100644
--- a/src/test/java/org/elasticsearch/examples/nativescript/script/PopularityScoreScriptT... | true | true | public void testPopularityScoring() throws Exception {
// Create a new index
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("properties")
.startObject("name").field("type", "string").endObject()
.st... | public void testPopularityScoring() throws Exception {
// Create a new index
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("properties")
.startObject("name").field("type", "string").endObject()
.st... |
diff --git a/src/main/java/dungeon/models/Player.java b/src/main/java/dungeon/models/Player.java
index af0208c..9c50b8f 100644
--- a/src/main/java/dungeon/models/Player.java
+++ b/src/main/java/dungeon/models/Player.java
@@ -1,219 +1,219 @@
package dungeon.models;
import dungeon.models.messages.Transform;
import... | false | true | public Player apply (Transform transform) {
String name = this.name;
int lives = this.lives;
int hitPoints = this.hitPoints;
int maxHitPoints = this.maxHitPoints;
String levelId = this.levelId;
String roomId = this.roomId;
Position position = this.position;
String savePointRoomId = thi... | public Player apply (Transform transform) {
String name = this.name;
int lives = this.lives;
int hitPoints = this.hitPoints;
int maxHitPoints = this.maxHitPoints;
String levelId = this.levelId;
String roomId = this.roomId;
Position position = this.position;
String savePointRoomId = thi... |
diff --git a/src/main/java/org/jruby/rack/RackTag.java b/src/main/java/org/jruby/rack/RackTag.java
index a379ae3..e9cc967 100644
--- a/src/main/java/org/jruby/rack/RackTag.java
+++ b/src/main/java/org/jruby/rack/RackTag.java
@@ -1,41 +1,45 @@
package org.jruby.rack;
import javax.servlet.http.HttpServletRequest;
im... | true | true | public int doEndTag() throws JspException {
try {
RackApplicationFactory factory = (RackApplicationFactory)
pageContext.getServletContext().getAttribute(RackServletContextListener.FACTORY_KEY);
RackApplication app = factory.getApplication();
try {
... | public int doEndTag() throws JspException {
try {
RackApplicationFactory factory = (RackApplicationFactory)
pageContext.getServletContext().getAttribute(RackServletContextListener.FACTORY_KEY);
RackApplication app = factory.getApplication();
try {
... |
diff --git a/servicemix-core/src/test/java/org/servicemix/jbi/management/task/InstallComponentTaskTest.java b/servicemix-core/src/test/java/org/servicemix/jbi/management/task/InstallComponentTaskTest.java
index db72e732e..d8deaaa57 100644
--- a/servicemix-core/src/test/java/org/servicemix/jbi/management/task/InstallCom... | true | true | public void testInstallation() throws Exception {
URL url = getClass().getClassLoader().getResource("org/servicemix/jbi/installation/testarchive.jar");
if (url != null) {
String file = url.getFile();
installComponentTask.setArchivePath(file);
installComponentTask.... | public void testInstallation() throws Exception {
URL url = getClass().getClassLoader().getResource("org/servicemix/jbi/installation/testarchive.jar");
if (url != null) {
String file = url.getFile();
installComponentTask.setFile(file);
installComponentTask.init();... |
diff --git a/src/com/jonathanaquino/svntimelapseview/SvnLoader.java b/src/com/jonathanaquino/svntimelapseview/SvnLoader.java
index e645609..7ff8a10 100644
--- a/src/com/jonathanaquino/svntimelapseview/SvnLoader.java
+++ b/src/com/jonathanaquino/svntimelapseview/SvnLoader.java
@@ -1,197 +1,197 @@
package com.jonathanaq... | true | true | private void loadRevisionsProper(String filePathOrUrl, String username, String password, int limit, Closure afterLoad) throws SVNException, Exception {
try {
loadedCount = totalCount = 0;
SVNURL fullUrl = svnUrl(filePathOrUrl, username, password);
String url = fullUrl.removePathTail().toString();
String ... | private void loadRevisionsProper(String filePathOrUrl, String username, String password, int limit, Closure afterLoad) throws SVNException, Exception {
try {
loadedCount = totalCount = 0;
SVNURL fullUrl = svnUrl(filePathOrUrl, username, password);
String url = fullUrl.removePathTail().toString();
String ... |
diff --git a/MonTransit/src/org/montrealtransit/android/services/nextstop/StmInfoTask.java b/MonTransit/src/org/montrealtransit/android/services/nextstop/StmInfoTask.java
index f462b8c9..ea19b7ea 100644
--- a/MonTransit/src/org/montrealtransit/android/services/nextstop/StmInfoTask.java
+++ b/MonTransit/src/org/montreal... | false | true | protected Map<String, BusStopHours> doInBackground(StmStore.BusStop... busStops) {
String stopCode = busStops[0].getCode();
String lineNumber = busStops[0].getLineNumber();
Utils.logAppVersion(this.context);
String errorMessage = this.context.getString(R.string.error); // set the default error message
Map<St... | protected Map<String, BusStopHours> doInBackground(StmStore.BusStop... busStops) {
MyLog.v(TAG, "doInBackground()");
Utils.logAppVersion(this.context);
String errorMessage = this.context.getString(R.string.error); // set the default error message
Map<String, BusStopHours> hours = new HashMap<String, BusStopHou... |
diff --git a/src/test/java/ru/histone/acceptance/tests/general/NodeNumberFunctionsTest.java b/src/test/java/ru/histone/acceptance/tests/general/NodeNumberFunctionsTest.java
index a61db4f..1d35580 100644
--- a/src/test/java/ru/histone/acceptance/tests/general/NodeNumberFunctionsTest.java
+++ b/src/test/java/ru/histone/a... | true | true | public String getFileName() {
return "/general/node-number-functions.json";
}
| public String getFileName() {
return "/general/number.toString.json";
}
|
diff --git a/src/main/java/com/forum/repository/QuestionRepository.java b/src/main/java/com/forum/repository/QuestionRepository.java
index c5d099b..2644f4c 100644
--- a/src/main/java/com/forum/repository/QuestionRepository.java
+++ b/src/main/java/com/forum/repository/QuestionRepository.java
@@ -1,104 +1,105 @@
packag... | false | true | public int createQuestion(Question question) {
logger.info("question is " + question.toString());
int result =0;
result += jdbcTemplate.update("INSERT INTO QUESTION (TITLE, DESCRIPTION, CREATED_AT, USER_ID) VALUES (?, ?, ?, ?)",
new Object[]{question.getTitle(), question.g... | public int createQuestion(Question question) {
logger.info("question is " + question.toString());
int result =0;
Date createdDate = new Date();
result += jdbcTemplate.update("INSERT INTO QUESTION (TITLE, DESCRIPTION, CREATED_AT, USER_ID) VALUES (?, ?, ?, ?)",
new O... |
diff --git a/trunk/src/om/stdquestion/QContent.java b/trunk/src/om/stdquestion/QContent.java
index cd57f5f..b5be479 100644
--- a/trunk/src/om/stdquestion/QContent.java
+++ b/trunk/src/om/stdquestion/QContent.java
@@ -1,380 +1,379 @@
/* OpenMark online assessment system
Copyright (C) 2007 The Open University
... | false | true | public void addResource(
String sFilename,String sMimeType,byte[] abContent) throws IllegalArgumentException
{
if(!sTextMode.empty()) return; // Ignore in text mode, don't need resources
if(!FILENAMES.matcher(sFilename).matches())
throw new IllegalArgumentException("Not a valid resource filename: "+sFilename... | public void addResource(
String sFilename,String sMimeType,byte[] abContent) throws IllegalArgumentException
{
if(!sTextMode.empty()) return; // Ignore in text mode, don't need resources
if(!FILENAMES.matcher(sFilename).matches())
throw new IllegalArgumentException("Not a valid resource filename: "+sFilename... |
diff --git a/processor/src/main/java/org/apache/camel/processor/mashup/core/MashupProcessor.java b/processor/src/main/java/org/apache/camel/processor/mashup/core/MashupProcessor.java
index 02af35c..a56d5b0 100644
--- a/processor/src/main/java/org/apache/camel/processor/mashup/core/MashupProcessor.java
+++ b/processor/s... | true | true | public void process(Exchange exchange) throws Exception {
LOGGER.trace("Get the Camel in message");
Message in = exchange.getIn();
LOGGER.trace("Get the Camel out message");
Message out = exchange.getOut();
LOGGER.trace("Get the {} header", MASHUP_ID_HEADER)... | public void process(Exchange exchange) throws Exception {
LOGGER.trace("Get the Camel in message");
Message in = exchange.getIn();
LOGGER.trace("Get the Camel out message");
Message out = exchange.getOut();
LOGGER.trace("Get the {} header", MASHUP_ID_HEADER)... |
diff --git a/src/tests/com/puppycrawl/tools/checkstyle/checks/j2ee/HomeInterfaceCheckTest.java b/src/tests/com/puppycrawl/tools/checkstyle/checks/j2ee/HomeInterfaceCheckTest.java
index a2717703..9a279240 100644
--- a/src/tests/com/puppycrawl/tools/checkstyle/checks/j2ee/HomeInterfaceCheckTest.java
+++ b/src/tests/com/p... | false | true | public void testDefault()
throws Exception
{
final DefaultConfiguration checkConfig =
createCheckConfig(RemoteHomeInterfaceCheck.class);
final String[] expected = {
"14:18: Home interface 'InputHomeInterface' must have method 'findByPrimaryKey()'.",
... | public void testDefault()
throws Exception
{
final DefaultConfiguration checkConfig =
createCheckConfig(RemoteHomeInterfaceCheck.class);
final String[] expected = {
"20:19: Method 'createSomething' must be non-void.",
"20:19: Method 'createSomethin... |
diff --git a/src/java-common/org/xins/common/spec/Parameter.java b/src/java-common/org/xins/common/spec/Parameter.java
index 6ab23434e..c358ce69a 100644
--- a/src/java-common/org/xins/common/spec/Parameter.java
+++ b/src/java-common/org/xins/common/spec/Parameter.java
@@ -1,175 +1,175 @@
/*
* $Id$
*
* Copyright ... | true | true | public Type getType() throws InvalidSpecificationException {
if (_parameterType == null || _parameterType.equals("") || _parameterType.equals("_text")) {
return org.xins.common.types.standard.Text.SINGLETON;
} else if (_parameterType.equals("_int8")) {
return org.xins.common.type... | public Type getType() throws InvalidSpecificationException {
if (_parameterType == null || _parameterType.equals("") || _parameterType.equals("_text")) {
return org.xins.common.types.standard.Text.SINGLETON;
} else if (_parameterType.equals("_int8")) {
return org.xins.common.type... |
diff --git a/src/main/java/com/twistlet/falcon/model/service/PatronServiceImpl.java b/src/main/java/com/twistlet/falcon/model/service/PatronServiceImpl.java
index 51c18ee..3f3f806 100644
--- a/src/main/java/com/twistlet/falcon/model/service/PatronServiceImpl.java
+++ b/src/main/java/com/twistlet/falcon/model/service/Pa... | false | true | public void savePatron(FalconPatron patron) {
FalconUser user = patron.getFalconUserByPatron();
FalconUser admin = patron.getFalconUserByAdmin();
String[] names = StringUtils.split(patron.getFalconUserByPatron().getName(), " ");
boolean newUser = false;
if(StringUtils.isBlank(user.getUsername())){
user.se... | public void savePatron(FalconPatron patron) {
FalconUser user = patron.getFalconUserByPatron();
FalconUser admin = patron.getFalconUserByAdmin();
String[] names = StringUtils.split(patron.getFalconUserByPatron().getName(), " ");
boolean newUser = false;
if(StringUtils.isBlank(user.getUsername())){
user.se... |
diff --git a/src/java/org/jivesoftware/openfire/ldap/LdapVCardProvider.java b/src/java/org/jivesoftware/openfire/ldap/LdapVCardProvider.java
index 2e9390cd..9954dca1 100644
--- a/src/java/org/jivesoftware/openfire/ldap/LdapVCardProvider.java
+++ b/src/java/org/jivesoftware/openfire/ldap/LdapVCardProvider.java
@@ -1,519... | true | true | private Boolean isValidVCardChange(String username, Element newvCard) {
if (newvCard == null) {
// Well if there's nothing to change, of course it's valid.
Log.debug("LdapVCardProvider: No new vcard provided (no changes), accepting.");
return true;
}
// Un... | private Boolean isValidVCardChange(String username, Element newvCard) {
if (newvCard == null) {
// Well if there's nothing to change, of course it's valid.
Log.debug("LdapVCardProvider: No new vcard provided (no changes), accepting.");
return true;
}
// Un... |
diff --git a/src/test/java/org/atlasapi/feeds/radioplayer/RadioPlayerQueryCompilerTest.java b/src/test/java/org/atlasapi/feeds/radioplayer/RadioPlayerQueryCompilerTest.java
index b8a2165b..645d1e00 100644
--- a/src/test/java/org/atlasapi/feeds/radioplayer/RadioPlayerQueryCompilerTest.java
+++ b/src/test/java/org/atlasa... | true | true | public void testCompileQuery(){
String filename = "20100906_e1_ce15_c221_0_PI.xml";
Matcher matcher = compiler.getPattern().matcher(filename);
assertTrue(matcher.matches());
assertEquals(2,matcher.groupCount());
DateTime day = DateTimeFormat.forPattern("yyyyMMdd").parseDateTime(matcher.group(1));
... | public void testCompileQuery(){
String filename = "20100906_e1_ce15_c222_0_PI.xml";
Matcher matcher = compiler.getPattern().matcher(filename);
assertTrue(matcher.matches());
assertEquals(2,matcher.groupCount());
DateTime day = DateTimeFormat.forPattern("yyyyMMdd").parseDateTime(matcher.group(1));
... |
diff --git a/Compiler/MAlice/src/codeGeneration/Function.java b/Compiler/MAlice/src/codeGeneration/Function.java
index 7a7a157..e2e435b 100644
--- a/Compiler/MAlice/src/codeGeneration/Function.java
+++ b/Compiler/MAlice/src/codeGeneration/Function.java
@@ -1,138 +1,138 @@
package codeGeneration;
import org.antlr.ru... | false | true | private static Tree writeCodeForFunction(Tree node, SymbolTable table,LabelGenerator gen)
{
Tree current = node.getChild(0);
System.out.println(node.getChild(0).getText());
FunctionSTValue fVal =
(FunctionSTValue) table.lookup(node.getChild(0).getText());
fVal.setLocationReg("@" + current);
current = Se... | private static Tree writeCodeForFunction(Tree node, SymbolTable table,LabelGenerator gen)
{
Tree current = node.getChild(0);
System.out.println(node.getChild(0).getText());
FunctionSTValue fVal =
(FunctionSTValue) table.lookup(node.getChild(0).getText());
fVal.setLocationReg("@" + current);
current = Se... |
diff --git a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java
index 306904e82..0cfb305bd 100644
--- a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java
+++ b/backends/gdx-backends-gwt/src/com/badlog... | true | true | public void glReadPixels (int x, int y, int width, int height, int format, int type, Buffer pixels) {
// verify request
if ((format != WebGLRenderingContext.UNSIGNED_BYTE) || (type != WebGLRenderingContext.RGBA)) {
throw new GdxRuntimeException("Only format UNSIGNED_BYTE for type RGBA is currently supported.");... | public void glReadPixels (int x, int y, int width, int height, int format, int type, Buffer pixels) {
// verify request
if ((format != WebGLRenderingContext.RGBA) || (type != WebGLRenderingContext.UNSIGNED_BYTE)) {
throw new GdxRuntimeException("Only format UNSIGNED_BYTE for type RGBA is currently supported.");... |
diff --git a/bootstrap/src/main/java/org/soluvas/web/bootstrap/BootstrapPage.java b/bootstrap/src/main/java/org/soluvas/web/bootstrap/BootstrapPage.java
index 67ba7911..abb4adcf 100644
--- a/bootstrap/src/main/java/org/soluvas/web/bootstrap/BootstrapPage.java
+++ b/bootstrap/src/main/java/org/soluvas/web/bootstrap/Boot... | false | true | public BootstrapPage() {
tenant = WebTenantUtils.getTenant();
final String currentUri = getRequest().getUrl().toString();
final Ordering<JavaScriptSource> sourceOrdering = Ordering.natural();
final Ordering<JavaScriptLink> linkOrdering = Ordering.natural();
// do NOT use AsyncModel here because we need it to... | public BootstrapPage() {
tenant = WebTenantUtils.getTenant();
final String currentUri = getRequest().getUrl().toString();
final Ordering<JavaScriptSource> sourceOrdering = Ordering.natural();
final Ordering<JavaScriptLink> linkOrdering = Ordering.natural();
// do NOT use AsyncModel here because we need it to... |
diff --git a/src/main/java/com/sun/kohsuke/hadoop/importer/App.java b/src/main/java/com/sun/kohsuke/hadoop/importer/App.java
index 329d14e..91fb725 100644
--- a/src/main/java/com/sun/kohsuke/hadoop/importer/App.java
+++ b/src/main/java/com/sun/kohsuke/hadoop/importer/App.java
@@ -1,66 +1,66 @@
/*
* The MIT License
... | true | true | public static void main(String[] args) throws Exception {
if(args.length!=3) {
System.out.println("Usage: java -jar importer.jar [HDFS URL] [local directory] [HDFS directory]");
}
Configuration conf = new Configuration();
conf.set("fs.default.name", args[0]);
DFS... | public static void main(String[] args) throws Exception {
if(args.length!=3) {
System.out.println("Usage: java -jar importer.jar [HDFS URL] [local directory] [HDFS directory]");
}
Configuration conf = new Configuration();
conf.set("fs.default.name", args[0]);
DFS... |
diff --git a/cadpage/src/net/anei/cadpage/parsers/NY/NYNassauCountyCParser.java b/cadpage/src/net/anei/cadpage/parsers/NY/NYNassauCountyCParser.java
index 4cfcfeb5c..843d7705e 100644
--- a/cadpage/src/net/anei/cadpage/parsers/NY/NYNassauCountyCParser.java
+++ b/cadpage/src/net/anei/cadpage/parsers/NY/NYNassauCountyCPar... | true | true | public void parse(String field, Data data) {
int pt = field.lastIndexOf(" ");
if (pt >= 0) {
data.strPlace = field.substring(pt+2).trim();
field = field.substring(0,pt).trim();
}
super.parse(field, data);
}
| public void parse(String field, Data data) {
int pt1 = field.indexOf(" ");
if (pt1 >= 0) {
int pt2 = field.lastIndexOf(" ");
if (pt1 == pt2) {
if (field.startsWith("CODE ")) {
pt2 = field.length();
} else {
pt1 = -2;
}
}
... |
diff --git a/src/com/undeadscythes/udsplugin/eventhandlers/PlayerInteractEntity.java b/src/com/undeadscythes/udsplugin/eventhandlers/PlayerInteractEntity.java
index 82c0e52..56f675c 100644
--- a/src/com/undeadscythes/udsplugin/eventhandlers/PlayerInteractEntity.java
+++ b/src/com/undeadscythes/udsplugin/eventhandlers/P... | true | true | public final void onEvent(final PlayerInteractEntityEvent event) {
final Entity entity = event.getRightClicked();
if(entity instanceof Tameable) {
final Tameable pet = (Tameable)entity;
if(pet.isTamed()) {
final String ownerName = pet.getOwner().getName();
... | public final void onEvent(final PlayerInteractEntityEvent event) {
final Entity entity = event.getRightClicked();
if(entity instanceof Tameable) {
final Tameable pet = (Tameable)entity;
if(pet.isTamed()) {
final String ownerName = pet.getOwner().getName();
... |
diff --git a/org.scala-ide.sdt.debug.tests/src/scala/tools/eclipse/debug/spy/TcpipSpy.java b/org.scala-ide.sdt.debug.tests/src/scala/tools/eclipse/debug/spy/TcpipSpy.java
index 40bed028b..482a5abfc 100644
--- a/org.scala-ide.sdt.debug.tests/src/scala/tools/eclipse/debug/spy/TcpipSpy.java
+++ b/org.scala-ide.sdt.debug.t... | false | true | public static void main(String[] args) {
boolean listenMode = false;
int inPort = 0;
String serverHost = null;
int outPort = 0;
String outputFile = null;
try {
listenMode = args[0].equals("-l");
int argIndex = listenMode ? 1 : 0;
inPort = Integer.parseInt(args[argIndex ++]);
serverHost = args[a... | public static void main(String[] args) {
boolean listenMode = false;
int inPort = 0;
String serverHost = null;
int outPort = 0;
String outputFile = null;
try {
listenMode = args[0].equals("-l");
int argIndex = listenMode ? 1 : 0;
inPort = Integer.parseInt(args[argIndex ++]);
serverHost = args[a... |
diff --git a/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java b/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java
index c9789192..ac3d03ac 100644
--- a/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java
+++ b/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java
@@ -1,304 +1,304 @@
... | true | true | public void testCameraFeatures() {
Camera camera = null;
try {
// Try getting a camera. This is unlikely to fail but implentations without a camera
// could return null or throw an exception.
camera = Camera.open();
if (camera != null) {
... | public void testCameraFeatures() {
Camera camera = null;
try {
// Try getting a camera. This is unlikely to fail but implentations without a camera
// could return null or throw an exception.
camera = Camera.open();
if (camera != null) {
... |
diff --git a/wiki30-realtime-wysiwyg/wiki30-realtime-wysiwyg-plugin/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/rt/RealTimePlugin.java b/wiki30-realtime-wysiwyg/wiki30-realtime-wysiwyg-plugin/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/rt/RealTimePlugin.java
index 6404afa..d3af956 100644
--- a/wiki30-realti... | false | true | public void onKeyDown(KeyDownEvent event) {
final int keyCode = event.getNativeKeyCode();
Selection selection = getTextArea().getDocument().getSelection();
if (selection.getRangeCount() > 0) {
Range range = selection.getRangeAt(0);
logRange(range);
int po... | public void onKeyDown(KeyDownEvent event) {
final int keyCode = event.getNativeKeyCode();
Selection selection = getTextArea().getDocument().getSelection();
if (selection.getRangeCount() > 0) {
Range range = selection.getRangeAt(0);
logRange(range);
int po... |
diff --git a/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java b/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java
index 0c380e2..44aa11e 100644
--- a/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java
+++ b/JunkHub/src/edu/unsw/triangle/web/ItemFormController.java
@@ -1,115 +1,115 @@
package ed... | true | true | protected ModelView handleFormSubmit(Object command)
{
Bid bid = (Bid) command;
Item item = bid.getItem();
if (item == null)
{
logger.severe("item id: " + bid.getItemId() + " is null");
Errors errors = new Errors().rejectValue("item.error", "item id: " + bid.getItemId() + " is null");
return hand... | protected ModelView handleFormSubmit(Object command)
{
Bid bid = (Bid) command;
Item item = bid.getItem();
if (item == null)
{
logger.severe("item id: " + bid.getItemId() + " is null");
Errors errors = new Errors().rejectValue("item.error", "item id: " + bid.getItemId() + " is null");
return hand... |
diff --git a/sobiohazardous/minestrappolation/extradecor/block/EDOreRegistry.java b/sobiohazardous/minestrappolation/extradecor/block/EDOreRegistry.java
index 6f1ddafe..89712a86 100644
--- a/sobiohazardous/minestrappolation/extradecor/block/EDOreRegistry.java
+++ b/sobiohazardous/minestrappolation/extradecor/block/EDOr... | true | true | public static void oreRegistration()
{
OreDictionary.registerOre("plankWood", new ItemStack(EDBlockManager.woodBoards, 1, 0));
OreDictionary.registerOre("plankWood", new ItemStack(EDBlockManager.woodBoards, 1, 1));
OreDictionary.registerOre("plankWood", new ItemStack(EDBlockManager.woodBoards, 1, 2));
OreDict... | public static void oreRegistration()
{
OreDictionary.registerOre("plankWood", new ItemStack(EDBlockManager.woodBoards, 1, 0));
OreDictionary.registerOre("plankWood", new ItemStack(EDBlockManager.woodBoards, 1, 1));
OreDictionary.registerOre("plankWood", new ItemStack(EDBlockManager.woodBoards, 1, 2));
OreDict... |
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaRefreshManager.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaRefreshManager.java
index 7cf79ca47..0f9532f3e 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui... | true | true | public void clearAllRefreshes() {
toBeRefreshed.clear();
List<Job> l = new ArrayList<Job>();
l.addAll(currentlyRefreshing.values());
for(Job j : l){
j.cancel();
}
currentlyRefreshing.clear();
}
| public void clearAllRefreshes() {
toBeRefreshed.clear();
List<Job> l = new ArrayList<Job>();
l.addAll(currentlyRefreshing.values());
for(Job j : l){
if(j != null)
j.cancel();
}
currentlyRefreshing.clear();
}
|
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.