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/hazelcast/src/main/java/com/hazelcast/impl/CMap.java b/hazelcast/src/main/java/com/hazelcast/impl/CMap.java
index 49cdd861..3649567c 100644
--- a/hazelcast/src/main/java/com/hazelcast/impl/CMap.java
+++ b/hazelcast/src/main/java/com/hazelcast/impl/CMap.java
@@ -1,1724 +1,1724 @@
/*
* Copyright (c) 2008... | false | true | public CMap(ConcurrentMapManager concurrentMapManager, String name) {
this.concurrentMapManager = concurrentMapManager;
this.logger = concurrentMapManager.node.getLogger(CMap.class.getName());
this.PARTITION_COUNT = concurrentMapManager.PARTITION_COUNT;
this.blocks = concurrentMapMan... | public CMap(ConcurrentMapManager concurrentMapManager, String name) {
this.concurrentMapManager = concurrentMapManager;
this.logger = concurrentMapManager.node.getLogger(CMap.class.getName());
this.PARTITION_COUNT = concurrentMapManager.PARTITION_COUNT;
this.blocks = concurrentMapMan... |
diff --git a/src/main/java/uk/co/cameronhunter/aws/glacier/cli/GlacierDownload.java b/src/main/java/uk/co/cameronhunter/aws/glacier/cli/GlacierDownload.java
index f2781ae..475118c 100644
--- a/src/main/java/uk/co/cameronhunter/aws/glacier/cli/GlacierDownload.java
+++ b/src/main/java/uk/co/cameronhunter/aws/glacier/cli/... | true | true | protected void execute( Glacier glacier, List<String> parameters ) throws Exception {
String vault = parameters.get( 1 );
String archiveId = parameters.get( 2 );
String target = parameters.get( 3 );
File archive = glacier.download( vault, archiveId ).get();
archive.renameTo(... | protected void execute( Glacier glacier, List<String> parameters ) throws Exception {
String vault = parameters.get( 0 );
String archiveId = parameters.get( 1 );
String target = parameters.get( 2 );
File archive = glacier.download( vault, archiveId ).get();
archive.renameTo(... |
diff --git a/src/environment/Environment.java b/src/environment/Environment.java
index 48fadc8..a850e90 100644
--- a/src/environment/Environment.java
+++ b/src/environment/Environment.java
@@ -1,248 +1,248 @@
package environment;
import actor.Predator;
import actor.Prey;
import policy.LearnedPolicy;
import polic... | true | true | public ValueIterationResult valueIteration(double local_gamma) {
double delta;
// initialization
this.completeStateSpace.initializeStateValues(0.0);
int numIterations = 0;
// calculation of the V(s)
do {
numIterations++;
delta = 0.0;
// for each s in S
Iterator<State> stateSpaceIt = t... | public ValueIterationResult valueIteration(double local_gamma) {
double delta;
// initialization
this.completeStateSpace.initializeStateValues(0.0);
int numIterations = 0;
// calculation of the V(s)
do {
numIterations++;
delta = 0.0;
// for each s in S
Iterator<State> stateSpaceIt = t... |
diff --git a/tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java b/tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java
index f8ffd993..f143981e 100644
--- a/tests/org.eclipse.acceleo.tests/src/org/eclipse/acceleo/tests/suite/AllTests.java
+++ b/tests/org.eclip... | true | true | public static Test suite() {
final TestSuite suite = new TestSuite("Acceleo test suite");
final TestSuite classicSuite = new TestSuite("Testing Acceleo With Traceability Disabled");
classicSuite.addTest(CompatibilityTestSuite.suite());
classicSuite.addTest(EngineTestSuite.suite());
classicSuite.addTest(org.... | public static Test suite() {
final TestSuite suite = new TestSuite("Acceleo test suite");
final TestSuite classicSuite = new TestSuite("Testing Acceleo With Traceability Disabled");
classicSuite.addTest(CompatibilityTestSuite.suite());
classicSuite.addTest(EngineTestSuite.suite());
classicSuite.addTest(org.... |
diff --git a/org.epic.debug/src/org/epic/debug/db/RE.java b/org.epic.debug/src/org/epic/debug/db/RE.java
index 4accaafb..cdb799c3 100644
--- a/org.epic.debug/src/org/epic/debug/db/RE.java
+++ b/org.epic.debug/src/org/epic/debug/db/RE.java
@@ -1,57 +1,57 @@
package org.epic.debug.db;
import gnu.regexp.REException;
... | true | true | public RE()
{
CMD_FINISHED1 = newRE("\n\\s+DB<+\\d+>+", false);
CMD_FINISHED2 = newRE("^\\s+DB<\\d+>", false);
SESSION_FINISHED1 = newRE("Use `q' to quit or `R' to restart", false);
SESSION_FINISHED2 = newRE("Debugged program terminated.", false);
IP_POS = newRE("^[^\\(]*... | public RE()
{
CMD_FINISHED1 = newRE("\n\\s+DB<+\\d+>+", false);
CMD_FINISHED2 = newRE("^\\s+DB<\\d+>", false);
SESSION_FINISHED1 = newRE("Use `q' to quit or `R' to restart", false);
SESSION_FINISHED2 = newRE("Debugged program terminated.", false);
IP_POS = newRE("^[^\\(]*... |
diff --git a/src/simpleserver/stream/StreamTunnel.java b/src/simpleserver/stream/StreamTunnel.java
index 6167aab..33bd8df 100644
--- a/src/simpleserver/stream/StreamTunnel.java
+++ b/src/simpleserver/stream/StreamTunnel.java
@@ -1,1076 +1,1077 @@
/*
* Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS)
*
... | true | true | private void handlePacket() throws IOException {
Byte packetId = in.readByte();
int x;
byte y;
int z;
byte dimension;
Coordinate coordinate;
switch (packetId) {
case 0x00: // Keep Alive
write(packetId);
break;
case 0x01: // Login Request/Response
write(p... | private void handlePacket() throws IOException {
Byte packetId = in.readByte();
int x;
byte y;
int z;
byte dimension;
Coordinate coordinate;
switch (packetId) {
case 0x00: // Keep Alive
write(packetId);
break;
case 0x01: // Login Request/Response
write(p... |
diff --git a/MainApplication/app/models/ma/ResidentRequest.java b/MainApplication/app/models/ma/ResidentRequest.java
index e12010ae..1ad73172 100644
--- a/MainApplication/app/models/ma/ResidentRequest.java
+++ b/MainApplication/app/models/ma/ResidentRequest.java
@@ -1,255 +1,255 @@
package models.ma;
import control... | true | true | public static void saveRequest(ResidentRequest request, Person resident,
String firstAction, Date creationDate, Date endDate) {
resident.name = resident.name.toLowerCase();
resident.firstname = resident.firstname.toLowerCase();
// Reservation d'une chambre ou annulation de celle... | public static void saveRequest(ResidentRequest request, Person resident,
String firstAction, Date creationDate, Date endDate) {
resident.name = resident.name.toLowerCase();
resident.firstname = resident.firstname.toLowerCase();
// Reservation d'une chambre ou annulation de celle... |
diff --git a/mail/src/main/java/org/bouncycastle/mail/smime/examples/SendSignedAndEncryptedMail.java b/mail/src/main/java/org/bouncycastle/mail/smime/examples/SendSignedAndEncryptedMail.java
index 8822bafc1..2d67ba6fd 100644
--- a/mail/src/main/java/org/bouncycastle/mail/smime/examples/SendSignedAndEncryptedMail.java
+... | true | true | public static void main(String args[])
{
if (args.length != 5)
{
System.err
.println("usage: SendSignedAndEncryptedMail <pkcs12Keystore> <password> <keyalias> <smtp server> <email address>");
System.exit(0);
}
try
{
... | public static void main(String args[])
{
if (args.length != 5)
{
System.err
.println("usage: SendSignedAndEncryptedMail <pkcs12Keystore> <password> <keyalias> <smtp server> <email address>");
System.exit(0);
}
try
{
... |
diff --git a/src/main/java/net/stuffrepos/tactics16/util/image/ColorUtil.java b/src/main/java/net/stuffrepos/tactics16/util/image/ColorUtil.java
index 97a8fed..895896e 100644
--- a/src/main/java/net/stuffrepos/tactics16/util/image/ColorUtil.java
+++ b/src/main/java/net/stuffrepos/tactics16/util/image/ColorUtil.java
@@ ... | true | true | public static Color applyFactor(Color color, float factor) {
if (color.getAlpha() > 0) {
return new Color(
limitColor(color.getRed() * factor),
limitColor(color.getGreen() * factor),
limitColor(color.getBlue() * factor),
... | public static Color applyFactor(Color color, float factor) {
if (color.getAlpha() > 0) {
return new Color(
limitColor(color.getRed() * factor),
limitColor(color.getGreen() * factor),
limitColor(color.getBlue() * factor),
... |
diff --git a/com/nakkaya/gui/PreferencesWindow.java b/com/nakkaya/gui/PreferencesWindow.java
index e7e04d3..377cd17 100644
--- a/com/nakkaya/gui/PreferencesWindow.java
+++ b/com/nakkaya/gui/PreferencesWindow.java
@@ -1,440 +1,441 @@
package com.nakkaya.gui;
import java.awt.Container;
import javax.swing.JCheckBox;
... | false | true | private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
panel8 = new JPanel();
label9 = new JLabel();
arpRefreshIntervalField = new JTextField();
label16 = new JLabel();
arpCommandField = new JTextField();
label10 = new JLabel();
label17 =... | private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
panel8 = new JPanel();
label9 = new JLabel();
arpRefreshIntervalField = new JTextField();
label16 = new JLabel();
arpCommandField = new JTextField();
label10 = new JLabel();
label17 =... |
diff --git a/src/fr/frozentux/craftguard2/listener/PlayerListener.java b/src/fr/frozentux/craftguard2/listener/PlayerListener.java
index 79d7969..a6b56cc 100644
--- a/src/fr/frozentux/craftguard2/listener/PlayerListener.java
+++ b/src/fr/frozentux/craftguard2/listener/PlayerListener.java
@@ -1,62 +1,62 @@
package fr.f... | true | true | public void onInventoryClick(InventoryClickEvent e){
SlotType slotType = e.getSlotType();
InventoryType invType = e.getInventory().getType();
int slot = e.getSlot();
Player player = (Player)e.getWhoClicked();
if(slotType == SlotType.RESULT && (invType.equals(InventoryType.CRAFTING) || invType.equals(Inven... | public void onInventoryClick(InventoryClickEvent e){
SlotType slotType = e.getSlotType();
InventoryType invType = e.getInventory().getType();
int slot = e.getSlot();
Player player = (Player)e.getWhoClicked();
if(slotType == SlotType.RESULT && (invType.equals(InventoryType.CRAFTING) || invType.equals(Inven... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java b/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java
index ebfeff4e5..451caa427 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java
@@ -1,204 +1,207 @@... | false | true | public Location getNextSpot(String a) {
Location location = null;
// find the next available slot in this area
HashMap<String, Object> where = new HashMap<String, Object>();
where.put("area_name", a);
ResultSetAreas rsa = new ResultSetAreas(plugin, where, false);
if (... | public Location getNextSpot(String a) {
Location location = null;
// find the next available slot in this area
HashMap<String, Object> where = new HashMap<String, Object>();
where.put("area_name", a);
ResultSetAreas rsa = new ResultSetAreas(plugin, where, false);
if (... |
diff --git a/src/tests/java/net/sf/picard/analysis/CollectAlignmentSummaryMetricsTest.java b/src/tests/java/net/sf/picard/analysis/CollectAlignmentSummaryMetricsTest.java
index 7dd9066..a378faf 100644
--- a/src/tests/java/net/sf/picard/analysis/CollectAlignmentSummaryMetricsTest.java
+++ b/src/tests/java/net/sf/picard/... | true | true | public void testBisulfite() throws IOException {
File input = new File(TEST_DATA_DIR, "summary_alignment_bisulfite_test.sam");
File reference = new File(TEST_DATA_DIR, "summary_alignment_stats_test.fasta");
File outfile = File.createTempFile("alignmentMetrics", ".txt");
outfile.del... | public void testBisulfite() throws IOException {
File input = new File(TEST_DATA_DIR, "summary_alignment_bisulfite_test.sam");
File reference = new File(TEST_DATA_DIR, "summary_alignment_stats_test.fasta");
File outfile = File.createTempFile("alignmentMetrics", ".txt");
outfile.del... |
diff --git a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/util/OrccLogger.java b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/util/OrccLogger.java
index 83dc93915..1c18512db 100644
--- a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/util/OrccLogger.java
+++ b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/... | false | true | public String format(LogRecord record) {
String output = "";
if (!(record.getParameters() != null
&& record.getParameters().length > 0 && record
.getParameters()[0].equals("-raw"))) {
Date date = new Date(record.getMillis());
DateFormat df = DateFormat.getTimeInstance();
output += df.f... | public String format(LogRecord record) {
String output = "";
if (!(record.getParameters() != null
&& record.getParameters().length > 0 && record
.getParameters()[0].equals("-raw"))) {
Date date = new Date(record.getMillis());
DateFormat df = DateFormat.getTimeInstance();
output += df.f... |
diff --git a/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java b/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java
index 743811142..ed92a55e0 100644
--- a/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java
+++ b/src/codegen/java/org/apache/fop/tools/EventProduc... | false | true | protected void updateTranslationFile() throws IOException {
try {
boolean resultExists = getTranslationFile().exists();
SAXTransformerFactory tFactory
= (SAXTransformerFactory)SAXTransformerFactory.newInstance();
//Generate fresh generated translation fil... | protected void updateTranslationFile() throws IOException {
try {
boolean resultExists = getTranslationFile().exists();
SAXTransformerFactory tFactory
= (SAXTransformerFactory)SAXTransformerFactory.newInstance();
//Generate fresh generated translation fil... |
diff --git a/src/main/java/signature/DAG.java b/src/main/java/signature/DAG.java
index 53fe5cd..d8ac834 100644
--- a/src/main/java/signature/DAG.java
+++ b/src/main/java/signature/DAG.java
@@ -1,666 +1,666 @@
package signature;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
im... | false | true | public void updateLayer(List<DAG.Node> layer, DAG.Direction direction) {
List<InvariantList> nodeInvariantList =
new ArrayList<InvariantList>();
for (int i = 0; i < layer.size(); i++) {
DAG.Node layerNode = layer.get(i);
int x = layerNode.vertexIndex;
Invar... | public void updateLayer(List<DAG.Node> layer, DAG.Direction direction) {
List<InvariantList> nodeInvariantList =
new ArrayList<InvariantList>();
for (int i = 0; i < layer.size(); i++) {
DAG.Node layerNode = layer.get(i);
int x = layerNode.vertexIndex;
Invar... |
diff --git a/src/main/java/stirling/console/commands/Profile.java b/src/main/java/stirling/console/commands/Profile.java
index 767de4a8..8e072bf1 100644
--- a/src/main/java/stirling/console/commands/Profile.java
+++ b/src/main/java/stirling/console/commands/Profile.java
@@ -1,68 +1,68 @@
/*
* Copyright 2010 the orig... | true | true | public Profile() {
factories.put("default", new stirling.fix.messages.fix42.DefaultMessageFactory());
factories.put("bats-europe", new stirling.fix.messages.fix42.bats.europe.MessageFactory());
factories.put("mb-trading", new stirling.fix.messages.fix44.mbtrading.MessageFactory());
f... | public Profile() {
factories.put("default", new stirling.fix.messages.fix42.DefaultMessageFactory());
factories.put("bats-europe", new stirling.fix.messages.fix42.bats.europe.MessageFactory());
factories.put("mb-trading", new stirling.fix.messages.fix44.mbtrading.MessageFactory());
f... |
diff --git a/InteractionManagerUI/src/org/mongkie/ui/im/CategoryPanel.java b/InteractionManagerUI/src/org/mongkie/ui/im/CategoryPanel.java
index 1407f0b..6abeba2 100644
--- a/InteractionManagerUI/src/org/mongkie/ui/im/CategoryPanel.java
+++ b/InteractionManagerUI/src/org/mongkie/ui/im/CategoryPanel.java
@@ -1,91 +1,91 ... | true | true | public void modelAdded(final SourceModel model) {
if (category.equals(model.getInteractionSource().getCategory())
&& category.equals(InteractionController.CATEGORY_OTHERS)) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {... | public void modelAdded(final SourceModel model) {
if (category.equals(model.getInteractionSource().getCategory())
&& category.equals(InteractionController.CATEGORY_OTHERS)) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {... |
diff --git a/src/com/android/mms/util/ContactInfoCache.java b/src/com/android/mms/util/ContactInfoCache.java
index ca59918..72a21c6 100644
--- a/src/com/android/mms/util/ContactInfoCache.java
+++ b/src/com/android/mms/util/ContactInfoCache.java
@@ -1,520 +1,520 @@
/*
* Copyright (C) 2008 Esmertec AG.
* Copyright (... | true | true | private CacheEntry queryContactInfoByNumber(String number) {
CacheEntry entry = new CacheEntry();
entry.phoneNumber = number;
//if (LOCAL_DEBUG) log("queryContactInfoByNumber: number=" + number);
mContactInfoSelectionArgs[0] = number;
// We need to include the phone number... | private CacheEntry queryContactInfoByNumber(String number) {
CacheEntry entry = new CacheEntry();
entry.phoneNumber = number;
//if (LOCAL_DEBUG) log("queryContactInfoByNumber: number=" + number);
mContactInfoSelectionArgs[0] = number;
// We need to include the phone number... |
diff --git a/src/org/shininet/bukkit/playerheads/PlayerHeadsListener.java b/src/org/shininet/bukkit/playerheads/PlayerHeadsListener.java
index a73495d..3911319 100644
--- a/src/org/shininet/bukkit/playerheads/PlayerHeadsListener.java
+++ b/src/org/shininet/bukkit/playerheads/PlayerHeadsListener.java
@@ -1,229 +1,229 @@... | true | true | public void onEntityDeath(EntityDeathEvent event) {
Player killer = event.getEntity().getKiller();
double lootingrate = 1;
if (killer != null) {
ItemStack weapon = killer.getItemInHand();
if (weapon != null) {
lootingrate = 1+(plugin.configFile.getDouble("lootingrate")*weapon.getEnchantmentLevel(Enc... | public void onEntityDeath(EntityDeathEvent event) {
Player killer = event.getEntity().getKiller();
double lootingrate = 1;
if (killer != null) {
ItemStack weapon = killer.getItemInHand();
if (weapon != null) {
lootingrate = 1+(plugin.configFile.getDouble("lootingrate")*weapon.getEnchantmentLevel(Enc... |
diff --git a/modules/dCache/org/dcache/services/info/secondaryInfoProviders/NormalisedAccessSpaceMaintainer.java b/modules/dCache/org/dcache/services/info/secondaryInfoProviders/NormalisedAccessSpaceMaintainer.java
index 7ffbc7c9d7..857052d05e 100644
--- a/modules/dCache/org/dcache/services/info/secondaryInfoProviders/... | false | true | private Map<String, NasInfo> buildNas(
Map<String, SpaceInfo> poolSpaceInfo,
Map<String, LinkInfo> links) {
// Build initially "white" (unpainted) set of paint info.
Map<String, PaintInfo> paintedPools = new HashM... | private Map<String, NasInfo> buildNas(
Map<String, SpaceInfo> poolSpaceInfo,
Map<String, LinkInfo> links) {
// Build initially "white" (unpainted) set of paint info.
Map<String, PaintInfo> paintedPools = new HashM... |
diff --git a/src/org/apache/hadoop/hive/contrib/serde2/JsonSerde.java b/src/org/apache/hadoop/hive/contrib/serde2/JsonSerde.java
index 97cff83..afbc1f2 100644
--- a/src/org/apache/hadoop/hive/contrib/serde2/JsonSerde.java
+++ b/src/org/apache/hadoop/hive/contrib/serde2/JsonSerde.java
@@ -1,269 +1,275 @@
/**
* JSON S... | true | true | public Object deserialize(Writable blob) throws SerDeException {
Text rowText = (Text) blob;
LOG.debug("Deserialize row: " + rowText.toString());
// Try parsing row into JSON object
JSONObject jObj;
try {
jObj = new JSONObject(rowText.toString()) {
/**
* In Hive column names are case insensitive... | public Object deserialize(Writable blob) throws SerDeException {
Text rowText = (Text) blob;
LOG.debug("Deserialize row: " + rowText.toString());
// Try parsing row into JSON object
JSONObject jObj;
try {
jObj = new JSONObject(rowText.toString()) {
/**
* In Hive column names are case insensitive... |
diff --git a/src/tv/studer/smssync/SmsSyncService.java b/src/tv/studer/smssync/SmsSyncService.java
index 68773ee..f1dba05 100755
--- a/src/tv/studer/smssync/SmsSyncService.java
+++ b/src/tv/studer/smssync/SmsSyncService.java
@@ -1,542 +1,541 @@
/* Copyright (c) 2009 Christoph Studer <chstuder@gmail.com>
*
* Licens... | false | true | private void backup(boolean skipMessages) throws GeneralErrorException,
AuthenticationErrorException {
Log.i(Consts.TAG, "Starting backup...");
sCanceled = false;
if (!PrefStore.isLoginInformationSet(this)) {
throw new GeneralErrorException(this, R.string.err_sync_re... | private void backup(boolean skipMessages) throws GeneralErrorException,
AuthenticationErrorException {
Log.i(Consts.TAG, "Starting backup...");
sCanceled = false;
if (!PrefStore.isLoginInformationSet(this)) {
throw new GeneralErrorException(this, R.string.err_sync_re... |
diff --git a/tests/gdx-tests/src/com/badlogic/gdx/tests/PixmapPackerTest.java b/tests/gdx-tests/src/com/badlogic/gdx/tests/PixmapPackerTest.java
index d4f936c4c..549ebf786 100644
--- a/tests/gdx-tests/src/com/badlogic/gdx/tests/PixmapPackerTest.java
+++ b/tests/gdx-tests/src/com/badlogic/gdx/tests/PixmapPackerTest.java... | true | true | public void create () {
batch = new SpriteBatch();
camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
camera.position.set(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2, 0);
camera.update();
Pixmap pixmap1 = new Pixmap(Gdx.files.internal("data/badlogic.jpg"))... | public void create () {
batch = new SpriteBatch();
camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
camera.position.set(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2, 0);
camera.update();
Pixmap pixmap1 = new Pixmap(Gdx.files.internal("data/badlogic.jpg"))... |
diff --git a/support/src/main/java/org/ibeans/impl/LogResponsesInterceptor.java b/support/src/main/java/org/ibeans/impl/LogResponsesInterceptor.java
index bacb8eb..ec2875c 100644
--- a/support/src/main/java/org/ibeans/impl/LogResponsesInterceptor.java
+++ b/support/src/main/java/org/ibeans/impl/LogResponsesInterceptor.... | true | true | public void afterCall(InvocationContext invocationContext) throws Throwable
{
Response msg = invocationContext.getResponse();
boolean isStream = InputStream.class.isAssignableFrom(msg.getPayload().getClass());
String response = msg.getPayload().toString();
//Set the result on th... | public void afterCall(InvocationContext invocationContext) throws Throwable
{
Response msg = invocationContext.getResponse();
boolean isStream = InputStream.class.isAssignableFrom(msg.getPayload().getClass());
String response = msg.getPayload().toString();
//Set the result on th... |
diff --git a/BerlinCurator/src/com/alvarosantisteban/berlincurator/ListAdapter.java b/BerlinCurator/src/com/alvarosantisteban/berlincurator/ListAdapter.java
index 077f189..e8ebb9e 100644
--- a/BerlinCurator/src/com/alvarosantisteban/berlincurator/ListAdapter.java
+++ b/BerlinCurator/src/com/alvarosantisteban/berlincura... | false | true | public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
HeaderInfo headerInfo = (HeaderInfo) getGroup(groupPosition);
if (convertView == null) {
LayoutInflater inf = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inf.inf... | public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
HeaderInfo headerInfo = (HeaderInfo) getGroup(groupPosition);
// I had to comment it, because it creates problems with the views
//if (convertView == null) {
LayoutInflater inf = (LayoutInflater) context.get... |
diff --git a/h2/src/main/org/h2/table/RegularTable.java b/h2/src/main/org/h2/table/RegularTable.java
index 3a1d0fcb3..b73d13e39 100644
--- a/h2/src/main/org/h2/table/RegularTable.java
+++ b/h2/src/main/org/h2/table/RegularTable.java
@@ -1,782 +1,782 @@
/*
* Copyright 2004-2013 H2 Group. Multiple-Licensed under the H... | true | true | public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType,
boolean create, String indexComment) {
if (indexType.isPrimaryKey()) {
for (IndexColumn c : cols) {
Column column = c.column;
if (column.isNu... | public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType,
boolean create, String indexComment) {
if (indexType.isPrimaryKey()) {
for (IndexColumn c : cols) {
Column column = c.column;
if (column.isNu... |
diff --git a/modules/org.restlet/src/org/restlet/service/MetadataService.java b/modules/org.restlet/src/org/restlet/service/MetadataService.java
index e90e6d43a..9e096f721 100644
--- a/modules/org.restlet/src/org/restlet/service/MetadataService.java
+++ b/modules/org.restlet/src/org/restlet/service/MetadataService.java... | false | true | public void addCommonExtensions() {
List<MetadataExtension> dm = new ArrayList<MetadataExtension>();
ext(dm, "en", Language.ENGLISH);
ext(dm, "es", Language.SPANISH);
ext(dm, "fr", Language.FRENCH);
ext(dm, "ai", MediaType.APPLICATION_POSTSCRIPT);
ext(dm, "ascii", C... | public void addCommonExtensions() {
List<MetadataExtension> dm = new ArrayList<MetadataExtension>();
ext(dm, "en", Language.ENGLISH);
ext(dm, "es", Language.SPANISH);
ext(dm, "fr", Language.FRENCH);
// [ifndef gwt]
ext(dm, "ai", MediaType.APPLICATION_POSTSCRIPT);
... |
diff --git a/src/java/no/schibstedsok/front/searchportal/query/transform/TvQueryTransformer.java b/src/java/no/schibstedsok/front/searchportal/query/transform/TvQueryTransformer.java
index 1af96d14c..4bb9c907c 100644
--- a/src/java/no/schibstedsok/front/searchportal/query/transform/TvQueryTransformer.java
+++ b/src/jav... | false | true | public String getFilter() {
final String origQuery = getContext().getQuery().getQueryString();
final StringBuilder filter = new StringBuilder();
// Special case to choose channel.
if (origQuery.startsWith("tv_")) {
filter.append("+wpfornavn:^");
filte... | public String getFilter() {
final String origQuery = getContext().getQuery().getQueryString();
final StringBuilder filter = new StringBuilder();
// Special case to choose channel.
if (origQuery.startsWith("tv_")) {
filter.append("+sgeneric11:'");
filt... |
diff --git a/Dubsar/src/com/dubsar_dictionary/Dubsar/DubsarService.java b/Dubsar/src/com/dubsar_dictionary/Dubsar/DubsarService.java
index 86686b7..e4cf7ad 100644
--- a/Dubsar/src/com/dubsar_dictionary/Dubsar/DubsarService.java
+++ b/Dubsar/src/com/dubsar_dictionary/Dubsar/DubsarService.java
@@ -1,292 +1,293 @@
/*
D... | true | true | public void run() {
if (getService() == null) return;
if (!getService().isNetworkAvailable()) {
getService().noNetworkError();
return;
}
else if (getService().hasError()) {
getService().clearError();
getService().requestNow();
getService().requestDaily();
}
Uri uri = Uri.wit... | public void run() {
if (getService() == null) return;
if (!getService().isNetworkAvailable()) {
getService().noNetworkError();
return;
}
else if (getService().hasError()) {
getService().clearError();
getService().requestNow();
getService().requestDaily();
return;
}
Uri u... |
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/sitemap/internal/SitemapServiceImpl.java b/cyklotron-core/src/main/java/net/cyklotron/cms/sitemap/internal/SitemapServiceImpl.java
index 2cededa4c..c5d2523ae 100644
--- a/cyklotron-core/src/main/java/net/cyklotron/cms/sitemap/internal/SitemapServiceImpl.java
+... | true | true | private Iterator<SitemapItem> itemIterator(final SiteResource site, final String domain,
final Parameters participantsConfig, final CoralSession coralSession)
{
return new Iterator<SitemapItem>()
{
private final Iterator<SitemapGenerationParticipant> outer = participa... | private Iterator<SitemapItem> itemIterator(final SiteResource site, final String domain,
final Parameters participantsConfig, final CoralSession coralSession)
{
return new Iterator<SitemapItem>()
{
private final Iterator<SitemapGenerationParticipant> outer = participa... |
diff --git a/src/main/java/org/mctourney/AutoReferee/listeners/TeamListener.java b/src/main/java/org/mctourney/AutoReferee/listeners/TeamListener.java
index c06c355..56271dc 100644
--- a/src/main/java/org/mctourney/AutoReferee/listeners/TeamListener.java
+++ b/src/main/java/org/mctourney/AutoReferee/listeners/TeamListe... | true | true | public void chatMessage(AsyncPlayerChatEvent event)
{
// typical chat message format, swap out with colored version
Player speaker = event.getPlayer();
AutoRefMatch match = plugin.getMatch(speaker.getWorld());
// restrict listeners to being in the same match (not world).
// this should avoid messing up mul... | public void chatMessage(AsyncPlayerChatEvent event)
{
// typical chat message format, swap out with colored version
Player speaker = event.getPlayer();
AutoRefMatch match = plugin.getMatch(speaker.getWorld());
// restrict listeners to being in the same match (not world).
// this should avoid messing up mul... |
diff --git a/miiflipper/src/MiiLayer.java b/miiflipper/src/MiiLayer.java
index fed135c..a982b2d 100644
--- a/miiflipper/src/MiiLayer.java
+++ b/miiflipper/src/MiiLayer.java
@@ -1,334 +1,335 @@
import com.jtattoo.plaf.noire.NoireLookAndFeel;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEven... | true | true | public MiiLayer() {
try {
Properties props = new Properties();
props.put("logoString", "miiImager");
props.put("licenseKey", "39q5-dpgu-fat5-xz81");
NoireLookAndFeel.setCurrentTheme(props);
com.jtattoo.plaf.noire.NoireLookAndFeel.setTheme("Noire"... | public MiiLayer() {
try {
//Properties props = new Properties();
//props.put("logoString", "miiImager");
//props.put("licenseKey", "39q5-dpgu-fat5-xz81");
//NoireLookAndFeel.setCurrentTheme(props);
//com.jtattoo.plaf.noire.NoireLookAndFeel.setThe... |
diff --git a/tests/src/org/jboss/test/messaging/util/VeryBasicValveTest.java b/tests/src/org/jboss/test/messaging/util/VeryBasicValveTest.java
index 920f94766..add6b0bd8 100644
--- a/tests/src/org/jboss/test/messaging/util/VeryBasicValveTest.java
+++ b/tests/src/org/jboss/test/messaging/util/VeryBasicValveTest.java
@@ ... | false | true | public void run()
{
try
{
log.info("Starting Thread " + threadId);
synchronized (startSemaphore)
{
if (!started)
{
startSemaphore.wait();
}
}
//log.info("Thread " + th... | public void run()
{
try
{
log.info("Starting Thread " + threadId);
synchronized (startSemaphore)
{
if (!started)
{
startSemaphore.wait();
}
}
//log.info("Thread " + th... |
diff --git a/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java b/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java
index b5b7650..c661735 100644
--- a/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java
+++ b/src/main/java/plugins/WebOfTrust/fcp/GetIden... | true | true | public SimpleFieldSet handle(SimpleFieldSet input) throws UnknownIdentityException {
final String trusterID = input.get("Truster");
final String partialNickname = input.get("PartialNickname").trim();
final String partialID = input.get("PartialID").trim();
final String context = input.get("Context");
int max... | public SimpleFieldSet handle(SimpleFieldSet input) throws UnknownIdentityException {
final String trusterID = input.get("Truster");
final String partialNickname = input.get("PartialNickname").trim();
final String partialID = input.get("PartialID").trim();
final String context = input.get("Context");
int max... |
diff --git a/application/src/com.phdroid/smsb/filter/WhiteListSpamFilter.java b/application/src/com.phdroid/smsb/filter/WhiteListSpamFilter.java
index cc38ec8..e9cebbd 100644
--- a/application/src/com.phdroid/smsb/filter/WhiteListSpamFilter.java
+++ b/application/src/com.phdroid/smsb/filter/WhiteListSpamFilter.java
@@ ... | true | true | public boolean isSpam(SmsPojo message) {
SmsMessageSenderEntry sender = this.session.getSenderById(message.getSenderId());
return sender.isInWhiteList();
}
| public boolean isSpam(SmsPojo message) {
SmsMessageSenderEntry sender = this.session.getSenderById(message.getSenderId());
return !sender.isInWhiteList();
}
|
diff --git a/jsf-ri/src/com/sun/faces/el/CompositeComponentAttributesELResolver.java b/jsf-ri/src/com/sun/faces/el/CompositeComponentAttributesELResolver.java
index 20f82df76..c5f4958c8 100644
--- a/jsf-ri/src/com/sun/faces/el/CompositeComponentAttributesELResolver.java
+++ b/jsf-ri/src/com/sun/faces/el/CompositeCompon... | true | true | public Object getValue(ELContext context, Object base, Object property) {
Util.notNull("context", context);
if (base != null
&& (base instanceof UIComponent)
&& UIComponent.isCompositeComponent((UIComponent) base)
&& property != null) {
String prope... | public Object getValue(ELContext context, Object base, Object property) {
Util.notNull("context", context);
if (base != null
&& (base instanceof UIComponent)
&& UIComponent.isCompositeComponent((UIComponent) base)
&& property != null) {
String prope... |
diff --git a/src/net/sourceforge/cilib/pso/niching/FitnessDeviationCreationStrategy.java b/src/net/sourceforge/cilib/pso/niching/FitnessDeviationCreationStrategy.java
index 3a031a81..821d4fcf 100644
--- a/src/net/sourceforge/cilib/pso/niching/FitnessDeviationCreationStrategy.java
+++ b/src/net/sourceforge/cilib/pso/nic... | true | true | public Collection<E> create(E mainSwarm, Collection<? extends E> subSwarms) {
// TODO Auto-generated method stub
return null;
}
| public Collection<E> create(E mainSwarm, Collection<E> subSwarms) {
// TODO Auto-generated method stub
return null;
}
|
diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java
index 76d5a4b6..2c2165ce 100644
--- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java
+++ b/src/main/java/com/sk89q/worldguard/bukkit/Wor... | true | true | private void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
if (event.getCause() == DamageCause.PROJECTILE) {
onEntityDamageByProjectile(event);
return;
}
Entity attacker = event.getDamager();
Entity defender = event.getEntity();
if (attac... | private void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
if (event.getDamager() instanceof Projectile) {
onEntityDamageByProjectile(event);
return;
}
Entity attacker = event.getDamager();
Entity defender = event.getEntity();
if (attacke... |
diff --git a/GQ_Android/src/com/qeevee/gq/rules/act/ShowAlert.java b/GQ_Android/src/com/qeevee/gq/rules/act/ShowAlert.java
index c083c8c..55b7852 100644
--- a/GQ_Android/src/com/qeevee/gq/rules/act/ShowAlert.java
+++ b/GQ_Android/src/com/qeevee/gq/rules/act/ShowAlert.java
@@ -1,38 +1,38 @@
package com.qeevee.gq.rules.... | false | true | public void execute() {
AlertDialog.Builder builder = new AlertDialog.Builder(
(Context) GeoQuestApp.getCurrentActivity()).setMessage(
(params.get("message"))).setPositiveButton(R.string.ok,
new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
... | public void execute() {
AlertDialog.Builder builder = new AlertDialog.Builder(
(Context) GeoQuestApp.getCurrentActivity()).setTitle(
(params.get("message"))).setPositiveButton(R.string.ok,
new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}... |
diff --git a/PARQme/src/com/test/HelpActivity.java b/PARQme/src/com/test/HelpActivity.java
index 4fad208..ac54070 100644
--- a/PARQme/src/com/test/HelpActivity.java
+++ b/PARQme/src/com/test/HelpActivity.java
@@ -1,77 +1,75 @@
package com.test;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.myhelp);
testphp = (Button) findViewById(R.id.testbutton);
phpre = (TextView) findViewById(R.id.phpresponse);
testphp.setOnClickListener(new View.OnClickListener()... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.myhelp);
testphp = (Button) findViewById(R.id.testbutton);
phpre = (TextView) findViewById(R.id.phpresponse);
testphp.setOnClickListener(new View.OnClickListener()... |
diff --git a/MyTracksTest/src/com/google/android/apps/mytracks/content/DescriptionGeneratorImplTest.java b/MyTracksTest/src/com/google/android/apps/mytracks/content/DescriptionGeneratorImplTest.java
index 5b1ef264..245e5f3b 100644
--- a/MyTracksTest/src/com/google/android/apps/mytracks/content/DescriptionGeneratorImplT... | true | true | public void testGenerateTrackDescription() {
Track track = new Track();
TripStatistics stats = new TripStatistics();
stats.setTotalDistance(20000);
stats.setTotalTime(600000);
stats.setMovingTime(300000);
stats.setMaxSpeed(100);
stats.setMaxElevation(550);
stats.setMinElevation(-500);
... | public void testGenerateTrackDescription() {
Track track = new Track();
TripStatistics stats = new TripStatistics();
stats.setTotalDistance(20000);
stats.setTotalTime(600000);
stats.setMovingTime(300000);
stats.setMaxSpeed(100);
stats.setMaxElevation(550);
stats.setMinElevation(-500);
... |
diff --git a/core/src/main/java/com/findwise/hydra/StageRunner.java b/core/src/main/java/com/findwise/hydra/StageRunner.java
index 4f5f8cf..e44a723 100644
--- a/core/src/main/java/com/findwise/hydra/StageRunner.java
+++ b/core/src/main/java/com/findwise/hydra/StageRunner.java
@@ -1,367 +1,367 @@
package com.findwise.h... | true | true | private boolean runGroup() {
CommandLine cmdLine = new CommandLine(java);
cmdLine.addArgument(jvmParameters, false);
String cp = getClassPath();
cmdLine.addArgument("-cp");
cmdLine.addArgument("${classpath}");
cmdLine.addArgument(GroupStarter.class.getCanonicalName());
cmdLine.addArgument(stageGroup.get... | private boolean runGroup() {
CommandLine cmdLine = new CommandLine(java);
cmdLine.addArgument(jvmParameters, false);
String cp = getClassPath();
cmdLine.addArgument("-cp");
cmdLine.addArgument("${classpath}", false);
cmdLine.addArgument(GroupStarter.class.getCanonicalName());
cmdLine.addArgument(stageGr... |
diff --git a/src/org/linter/LintedPage.java b/src/org/linter/LintedPage.java
index 047bdfc..445b639 100644
--- a/src/org/linter/LintedPage.java
+++ b/src/org/linter/LintedPage.java
@@ -1,259 +1,259 @@
package org.linter;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLEx... | false | true | public void scrapeMetadata() {
HtmlCleaner cleaner = new HtmlCleaner();
try {
_node = cleaner.clean(new URL(this.getDestinationUrl()));
} catch (MalformedURLException mue) {
logger.error("Invalid URL [" + this.getDestinationUrl() + "]: " + mue.toString());
return;
} catch (Exception ex) {
logger.er... | public void scrapeMetadata() {
HtmlCleaner cleaner = new HtmlCleaner();
try {
_node = cleaner.clean(new URL(this.getDestinationUrl()));
} catch (MalformedURLException mue) {
logger.error("Invalid URL [" + this.getDestinationUrl() + "]: " + mue.toString());
return;
} catch (Exception ex) {
logger.er... |
diff --git a/usage/cli/src/test/java/brooklyn/cli/CliTest.java b/usage/cli/src/test/java/brooklyn/cli/CliTest.java
index e4d8a2ea2..e040a1d82 100644
--- a/usage/cli/src/test/java/brooklyn/cli/CliTest.java
+++ b/usage/cli/src/test/java/brooklyn/cli/CliTest.java
@@ -1,71 +1,71 @@
package brooklyn.cli;
import static o... | false | true | public void testLaunchCommand() throws ParseException {
Cli<BrooklynCommand> cli = Main.buildCli();
BrooklynCommand command = cli.parse("launch", "--app", "my.App", "--location", "localhost");
assertTrue(command instanceof LaunchCommand);
String details = command.toString();
... | public void testLaunchCommand() throws ParseException {
Cli<BrooklynCommand> cli = Main.buildCli();
BrooklynCommand command = cli.parse("launch", "--app", "my.App", "--location", "localhost");
assertTrue(command instanceof LaunchCommand, ""+command);
String details = command.toString... |
diff --git a/RoboWizards/src/edu/wpi/first/wpilibj/templates/RobotWizards.java b/RoboWizards/src/edu/wpi/first/wpilibj/templates/RobotWizards.java
index 0f93310..4983d84 100644
--- a/RoboWizards/src/edu/wpi/first/wpilibj/templates/RobotWizards.java
+++ b/RoboWizards/src/edu/wpi/first/wpilibj/templates/RobotWizards.java... | true | true | private void checkRotateJoystick(){
if(joystick3.getY() > UIMap.JOYSTICK_DEAD_ZONE){
armController.rotateArmsForward();
SmartDashboard.putString(ROTATTION_KEY, "Forwards");
}
else if(joystick3.getY() < UIMap.JOYSTICK_DEAD_ZONE){
armController.rotateArmsBac... | private void checkRotateJoystick(){
if(joystick3.getY() > UIMap.JOYSTICK_DEAD_ZONE){
armController.rotateArmsForward();
SmartDashboard.putString(ROTATTION_KEY, "Forwards");
}
else if(joystick3.getY() < -UIMap.JOYSTICK_DEAD_ZONE){
armController.rotateArmsBa... |
diff --git a/nexus/nexus-app/src/main/java/org/sonatype/nexus/tasks/EvictUnusedProxiedItemsTask.java b/nexus/nexus-app/src/main/java/org/sonatype/nexus/tasks/EvictUnusedProxiedItemsTask.java
index 8001a5934..809d01906 100644
--- a/nexus/nexus-app/src/main/java/org/sonatype/nexus/tasks/EvictUnusedProxiedItemsTask.java
+... | false | true | protected Collection<String> doRun()
throws Exception
{
if ( getRepositoryGroupId() != null )
{
return getNexus().evictRepositoryGroupUnusedProxiedItems(
System.currentTimeMillis() - ( getEvictOlderCacheItemsThen() * 24 * 60 * 60 * 1000 ),
getR... | protected Collection<String> doRun()
throws Exception
{
if ( getRepositoryGroupId() != null )
{
return getNexus().evictRepositoryGroupUnusedProxiedItems(
System.currentTimeMillis() - ( ( (long) getEvictOlderCacheItemsThen() ) * 24 * 60 * 60 * 1000 ),
... |
diff --git a/src/main/java/uk/co/epii/conservatives/williamcavendishbentinck/extensions/DeliveryPointAddressExtensions.java b/src/main/java/uk/co/epii/conservatives/williamcavendishbentinck/extensions/DeliveryPointAddressExtensions.java
index e2034b6..72e059f 100644
--- a/src/main/java/uk/co/epii/conservatives/williamc... | true | true | public static String getAddress(DeliveryPointAddress deliveryPointAddress) {
StringBuilder stringBuilder = new StringBuilder(deliveryPointAddress.getPostcode());
ArrayList<String> addressLines = new ArrayList<String>();
addressLines.add(deliveryPointAddress.getDependentLocality());
a... | public static String getAddress(DeliveryPointAddress deliveryPointAddress) {
StringBuilder stringBuilder = new StringBuilder(deliveryPointAddress.getPostcode());
ArrayList<String> addressLines = new ArrayList<String>();
addressLines.add(deliveryPointAddress.getPostTown());
addressLin... |
diff --git a/src/de/ueller/gpsmid/ui/Trace.java b/src/de/ueller/gpsmid/ui/Trace.java
index bcd82781..9ffc2f5c 100644
--- a/src/de/ueller/gpsmid/ui/Trace.java
+++ b/src/de/ueller/gpsmid/ui/Trace.java
@@ -1,3608 +1,3608 @@
/*
* GpsMid - Copyright (c) 2007 Harald Mueller james22 at users dot sourceforge dot net
* See... | true | true | public void commandAction(Command c, Displayable d) {
updateLastUserActionTime();
try {
if((keyboardLocked) && (d != null)) {
// show alert in keypressed() that keyboard is locked
keyPressed(0);
return;
}
if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD])
|| (c == CMDS[P... | public void commandAction(Command c, Displayable d) {
updateLastUserActionTime();
try {
if((keyboardLocked) && (d != null)) {
// show alert in keypressed() that keyboard is locked
keyPressed(0);
return;
}
if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD])
|| (c == CMDS[P... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/AlterTopic.java b/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/AlterTopic.java
index 02e2e2412..29033b35e 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/AlterTopic.java
+++ b/gerrit-server... | true | true | public ReviewResult call() throws EmailException,
InvalidChangeOperationException, NoSuchChangeException, OrmException {
final ChangeControl control = changeControlFactory.validateFor(changeId);
final ReviewResult result = new ReviewResult();
result.setChangeId(changeId);
if (!control.canAddPat... | public ReviewResult call() throws EmailException,
InvalidChangeOperationException, NoSuchChangeException, OrmException {
final ChangeControl control = changeControlFactory.validateFor(changeId);
final ReviewResult result = new ReviewResult();
result.setChangeId(changeId);
if (!control.canAddPat... |
diff --git a/src/shoddybattleclient/UserPanel.java b/src/shoddybattleclient/UserPanel.java
index 4121024..e04dd87 100644
--- a/src/shoddybattleclient/UserPanel.java
+++ b/src/shoddybattleclient/UserPanel.java
@@ -1,391 +1,391 @@
/*
* UserPanel.java
*
* Created on May 12, 2009, 1:48:11 PM
*
* This file is a p... | false | true | private void initComponents() {
jPanel1 = new javax.swing.JPanel();
lblName = new javax.swing.JLabel();
lblMessage = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel2 = new javax.swing.JPanel();
... | private void initComponents() {
jPanel1 = new javax.swing.JPanel();
lblName = new javax.swing.JLabel();
lblMessage = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel2 = new javax.swing.JPanel();
... |
diff --git a/src/java/org/apache/cassandra/locator/DatacenterShardStrategy.java b/src/java/org/apache/cassandra/locator/DatacenterShardStrategy.java
index d2c635ee..c563165e 100644
--- a/src/java/org/apache/cassandra/locator/DatacenterShardStrategy.java
+++ b/src/java/org/apache/cassandra/locator/DatacenterShardStrateg... | false | true | public ArrayList<InetAddress> getNaturalEndpoints(Token searchToken, TokenMetadata metadata, String table)
{
ArrayList<InetAddress> endpoints = new ArrayList<InetAddress>();
if (metadata.sortedTokens().isEmpty())
return endpoints;
for (String dc : dcTokens.keySet())
... | public ArrayList<InetAddress> getNaturalEndpoints(Token searchToken, TokenMetadata metadata, String table)
{
ArrayList<InetAddress> endpoints = new ArrayList<InetAddress>();
if (metadata.sortedTokens().isEmpty())
return endpoints;
for (String dc : dcTokens.keySet())
... |
diff --git a/test/com/id/app/ControllerTest.java b/test/com/id/app/ControllerTest.java
index 1352f9a..9e9d6bc 100644
--- a/test/com/id/app/ControllerTest.java
+++ b/test/com/id/app/ControllerTest.java
@@ -1,514 +1,514 @@
package com.id.app;
import static org.junit.Assert.assertEquals;
import static org.junit.Asser... | false | true | public void setup() {
File files = new File("a", "b", "src/c.h", "src/c.cc", "src/d.cc");
editorList = new EditorList();
stackList = new StackList();
fileSystem = new InMemoryFileSystem();
fuzzyFinder = new Finder(files);
fuzzyListener = mock(Finder.Listener.class);
repo = new InMemoryRepo... | public void setup() {
File files = new File("a", "b", "src/c.h", "src/c.cc", "src/d.cc");
editorList = new EditorList();
stackList = new StackList();
fileSystem = new InMemoryFileSystem();
fuzzyFinder = new Finder(files);
fuzzyListener = mock(Finder.Listener.class);
repo = new InMemoryRepo... |
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java
index e23350777..0c6ef38e9 100644... | true | true | private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command,
IProgressMonitor monitor, boolean retry) {
String errorMessage = ""; //$NON-NLS-1$
try {
// Generate the command
cmd = SystemTapCommandGenerator.generateCommand(scriptPath, binaryPath,
command, needsBinary, needs... | private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command,
IProgressMonitor monitor, boolean retry) {
String errorMessage = ""; //$NON-NLS-1$
try {
// Generate the command
cmd = SystemTapCommandGenerator.generateCommand(scriptPath, binaryPath,
command, needsBinary, needs... |
diff --git a/src/java/no/schibstedsok/searchportal/util/QueryStringHelper.java b/src/java/no/schibstedsok/searchportal/util/QueryStringHelper.java
index 27084ec7b..db3b51015 100644
--- a/src/java/no/schibstedsok/searchportal/util/QueryStringHelper.java
+++ b/src/java/no/schibstedsok/searchportal/util/QueryStringHelper.... | true | true | public static String safeGetParameter(HttpServletRequest req, String parameter){
StringTokenizer st = new StringTokenizer(req.getQueryString(), "&");
String reqValue = req.getParameter(parameter);
String queryStringValue = null;
parameter += "=";
while(st.hasMoreToke... | public static String safeGetParameter(HttpServletRequest req, String parameter){
StringTokenizer st = new StringTokenizer(req.getQueryString(), "&");
String reqValue = req.getParameter(parameter);
String queryStringValue = null;
parameter += "=";
while(st.hasMoreToke... |
diff --git a/src/org/jailsframework/generators/ModelGenerator.java b/src/org/jailsframework/generators/ModelGenerator.java
index f96f867..532dbd1 100644
--- a/src/org/jailsframework/generators/ModelGenerator.java
+++ b/src/org/jailsframework/generators/ModelGenerator.java
@@ -1,72 +1,72 @@
package org.jailsframework.g... | true | true | private boolean writeContent(File file, Map<String, String> substitutions) throws Exception {
VelocityEngine velocityEngine = new VelocityEngine();
velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
velocityEngine.setProperty("classpath.resource.loader.class", Classpa... | private boolean writeContent(File file, Map<String, String> substitutions) throws Exception {
VelocityEngine velocityEngine = new VelocityEngine();
velocityEngine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, "src");
velocityEngine.setProperty("classpath.resource.loader.class", Cla... |
diff --git a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/nav/NavigationToolView.java b/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/nav/NavigationToolView.java
index e5618ef38..0715c72f5 100644
--- a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/nav/NavigationToolView.java
+++ b/b... | false | true | public JComponent createControl() {
layerCanvasModelChangeChangeHandler = new LayerCanvasModelChangeHandler();
productNodeChangeHandler = createProductNodeListener();
cursorSynchronizer = new CursorSynchronizer(VisatApp.getApp());
final DecimalFormatSymbols decimalFormatSymbols = ne... | public JComponent createControl() {
layerCanvasModelChangeChangeHandler = new LayerCanvasModelChangeHandler();
productNodeChangeHandler = createProductNodeListener();
cursorSynchronizer = new CursorSynchronizer(VisatApp.getApp());
final DecimalFormatSymbols decimalFormatSymbols = ne... |
diff --git a/src/test/java/org/scribe/examples/FreelancerExample.java b/src/test/java/org/scribe/examples/FreelancerExample.java
index 11a8973..fb7dbef 100644
--- a/src/test/java/org/scribe/examples/FreelancerExample.java
+++ b/src/test/java/org/scribe/examples/FreelancerExample.java
@@ -1,74 +1,71 @@
package org.scri... | false | true | public static void main(String[] args)
{
OAuthService service = new ServiceBuilder()
.provider(FreelancerAPI.class)
.signatureType(SignatureType.QueryString)
.apiKey("7f5a168a0bfdbd15b4a9ea2a969661c731cdea56")
... | public static void main(String[] args)
{
OAuthService service = new ServiceBuilder()
.provider(FreelancerAPI.class)
.signatureType(SignatureType.QueryString)
.apiKey("7f5a168a0bfdbd15b4a9ea2a969661c731cdea56")
... |
diff --git a/src/main/java/org/andrill/conop/search/mutators/FooMutator.java b/src/main/java/org/andrill/conop/search/mutators/FooMutator.java
index fc4028a..4e0ee2b 100644
--- a/src/main/java/org/andrill/conop/search/mutators/FooMutator.java
+++ b/src/main/java/org/andrill/conop/search/mutators/FooMutator.java
@@ -1,3... | true | true | public Solution internalMutate(final Solution solution) {
List<Event> events = Lists.newArrayList(solution.getEvents());
// pick a random event and calculate the valid position range
pos = (pos + 1) % events.size();
Event e = events.remove(pos);
int range = solution.getMin(e) - solution.getMax(e) + 5;
int... | public Solution internalMutate(final Solution solution) {
List<Event> events = Lists.newArrayList(solution.getEvents());
// pick a random event and calculate the valid position range
pos = (pos + 1) % events.size();
Event e = events.remove(pos);
int range = Math.abs(solution.getMin(e) - solution.getMax(e)) ... |
diff --git a/src/com/ontologycentral/ldspider/Crawler.java b/src/com/ontologycentral/ldspider/Crawler.java
index 478da45..a48309d 100644
--- a/src/com/ontologycentral/ldspider/Crawler.java
+++ b/src/com/ontologycentral/ldspider/Crawler.java
@@ -1,276 +1,276 @@
package com.ontologycentral.ldspider;
import java.io.IO... | false | true | public void evaluateBreadthFirst(Frontier frontier, int depth, int maxuris, int maxplds, boolean followABox, boolean followTBox) {
if (_queue == null || !(_queue instanceof BreadthFirstQueue)) {
_queue = new BreadthFirstQueue(_tldm, maxplds, maxuris);
} else {
Redirects r = _queue.getRedirects();
Set<URI>... | public void evaluateBreadthFirst(Frontier frontier, int depth, int maxuris, int maxplds, boolean followABox, boolean followTBox) {
if (_queue == null || !(_queue instanceof BreadthFirstQueue)) {
_queue = new BreadthFirstQueue(_tldm, maxuris, maxplds);
} else {
Redirects r = _queue.getRedirects();
Set<URI>... |
diff --git a/core/src/visad/trunk/Gridded1DDoubleSet.java b/core/src/visad/trunk/Gridded1DDoubleSet.java
index 9ced725aa..28afdaf98 100644
--- a/core/src/visad/trunk/Gridded1DDoubleSet.java
+++ b/core/src/visad/trunk/Gridded1DDoubleSet.java
@@ -1,761 +1,761 @@
//
// Gridded1DDoubleSet.java
//
/*
VisAD system for... | true | true | public void doubleToInterp(double[][] value, int[][] indices,
double[][] weights) throws VisADException
{
if (value.length != DomainDimension) {
throw new SetException("Gridded1DDoubleSet.doubleToInterp: value dimension " +
value.length + " not equal to Domain dimension " ... | public void doubleToInterp(double[][] value, int[][] indices,
double[][] weights) throws VisADException
{
if (value.length != DomainDimension) {
throw new SetException("Gridded1DDoubleSet.doubleToInterp: value dimension " +
value.length + " not equal to Domain dimension " ... |
diff --git a/src/org/jruby/RubyString.java b/src/org/jruby/RubyString.java
index 81878fd0a..c8bf56feb 100644
--- a/src/org/jruby/RubyString.java
+++ b/src/org/jruby/RubyString.java
@@ -1,3394 +1,3394 @@
/*
**** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subj... | false | true | public RubyArray split(IRubyObject[] args) {
int beg, end, i = 0;
int lim = 0;
boolean limit = false;
Ruby runtime = getRuntime();
if (Arity.checkArgumentCount(runtime, args, 0, 2) == 2) {
lim = RubyNumeric.fix2int(args[1]);
if (li... | public RubyArray split(IRubyObject[] args) {
int beg, end, i = 0;
int lim = 0;
boolean limit = false;
Ruby runtime = getRuntime();
if (Arity.checkArgumentCount(runtime, args, 0, 2) == 2) {
lim = RubyNumeric.fix2int(args[1]);
if (li... |
diff --git a/src/extension/wps/wps-core/src/test/java/org/geoserver/wps/gs/ReprojectProcessTest.java b/src/extension/wps/wps-core/src/test/java/org/geoserver/wps/gs/ReprojectProcessTest.java
index cd4a180f3d..f0a01f9e95 100644
--- a/src/extension/wps/wps-core/src/test/java/org/geoserver/wps/gs/ReprojectProcessTest.java... | false | true | public void testReproject() throws Exception {
// note, we use 3395 instead of 900913 because it's more accurate, the referencing subsystem
// with assertions enabled will flip if we use the latter due to small reprojection errors
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
... | public void testReproject() throws Exception {
// note, we use 3395 instead of 900913 because it's more accurate, the referencing subsystem
// with assertions enabled will flip if we use the latter due to small reprojection errors
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
... |
diff --git a/src/net/rptools/maptool/model/SightType.java b/src/net/rptools/maptool/model/SightType.java
index 2f459a39..3707c3f3 100644
--- a/src/net/rptools/maptool/model/SightType.java
+++ b/src/net/rptools/maptool/model/SightType.java
@@ -1,159 +1,160 @@
/*
* Licensed under the Apache License, Version 2.0 (the "... | true | true | public Area getVisionShape(Token token, Zone zone)
{
float visionRange = getDistance();
int visionDistance = zone.getTokenVisionInPixels();
Area visibleArea = new Area();
visionRange = (visionRange == 0 ) ? visionDistance: visionRange * zone.getGrid().getSize() / zone.getUnits... | public Area getVisionShape(Token token, Zone zone)
{
float visionRange = getDistance();
int visionDistance = zone.getTokenVisionInPixels();
Area visibleArea = new Area();
visionRange = (visionRange == 0 ) ? visionDistance: visionRange * zone.getGrid().getSize() / zone.getUnits... |
diff --git a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/interceptor/SelectionVisualHandler.java b/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/interceptor/SelectionVisualHandler.java
index ca1f8fd3..da862937 100644
--- a/net.sourceforge.vrapper.eclipse/src/net/sourceforge... | true | true | public void selectionChanged(SelectionChangedEvent event) {
if (!VrapperPlugin.isVrapperEnabled() || !(event.getSelection() instanceof TextSelection)
|| selectionService.isSelectionInProgress()) {
return;
}
TextSelection selection = (TextSelection) event.getSelec... | public void selectionChanged(SelectionChangedEvent event) {
if (!VrapperPlugin.isVrapperEnabled() || !(event.getSelection() instanceof TextSelection)
|| selectionService.isSelectionInProgress()) {
return;
}
TextSelection selection = (TextSelection) event.getSelec... |
diff --git a/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/html/DefaultSourceExtractor.java b/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/html/DefaultSourceExtractor.java
index 45ec62b16..ed5b6e622 100644
--- a/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/html/DefaultSourceExtractor.java
+++ b/com.ibm.wala.... | true | true | protected void writeElement(ITag tag, String cons, String varName){
Map<String, Pair<String, Position>> attrs = tag.getAllAttributes();
printlnIndented("function make_" + varName + "(parent) {", tag);
stack.push(varName);
printlnIndented("this.temp = " + cons + ";", tag);
print... | protected void writeElement(ITag tag, String cons, String varName){
Map<String, Pair<String, Position>> attrs = tag.getAllAttributes();
printlnIndented("function make_" + varName + "(parent) {", tag);
stack.push(varName);
printlnIndented("this.temp = " + cons + ";", tag);
print... |
diff --git a/src/main/java/nl/surfnet/bod/service/ReservationService.java b/src/main/java/nl/surfnet/bod/service/ReservationService.java
index 93b6b0f81..518ecf16e 100644
--- a/src/main/java/nl/surfnet/bod/service/ReservationService.java
+++ b/src/main/java/nl/surfnet/bod/service/ReservationService.java
@@ -1,127 +1,12... | true | true | public void reserve(Reservation reservation) throws ReservationFailedException {
checkState(reservation.getSourcePort().getVirtualResourceGroup().equals(reservation.getVirtualResourceGroup()));
checkState(reservation.getDestinationPort().getVirtualResourceGroup().equals(reservation.getVirtualResourceGroup()))... | public void reserve(Reservation reservation) throws ReservationFailedException {
checkState(reservation.getSourcePort().getVirtualResourceGroup().equals(reservation.getVirtualResourceGroup()));
checkState(reservation.getDestinationPort().getVirtualResourceGroup().equals(reservation.getVirtualResourceGroup()))... |
diff --git a/src/org/python/util/PyFilter.java b/src/org/python/util/PyFilter.java
index 1375c5cc..35534d39 100644
--- a/src/org/python/util/PyFilter.java
+++ b/src/org/python/util/PyFilter.java
@@ -1,143 +1,144 @@
package org.python.util;
import java.io.File;
import java.io.IOException;
import javax.servlet.Filt... | true | true | public void init(FilterConfig config) throws ServletException {
if (config.getServletContext().getAttribute(PyServlet.INIT_ATTR) == null) {
throw new ServletException("PyServlet has not been initialized, either as a servlet "
+ "or as context listener. This must happen befor... | public void init(FilterConfig config) throws ServletException {
if (config.getServletContext().getAttribute(PyServlet.INIT_ATTR) == null) {
throw new ServletException("Jython has not been initialized. Add "
+ "org.python.util.PyServletInitializer as a listener to your "
... |
diff --git a/pi/pipair.java b/pi/pipair.java
index 53191df..a7fc0ac 100644
--- a/pi/pipair.java
+++ b/pi/pipair.java
@@ -1,278 +1,278 @@
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Collections;
import java.io.IOException;
import java.util.Hashtable;
import java.util.HashSet;
import... | true | true | public Hashtable<String,ArrayList<String>> parseFile(String fileName) {
Runtime rt = Runtime.getRuntime();
Hashtable<String, ArrayList<String>> table = new Hashtable<String,ArrayList<String>>();
try {
Process pr = rt.exec("opt -print-callgraph " + fileName);
InputStre... | public Hashtable<String,ArrayList<String>> parseFile(String fileName) {
Runtime rt = Runtime.getRuntime();
Hashtable<String, ArrayList<String>> table = new Hashtable<String,ArrayList<String>>();
try {
Process pr = rt.exec("opt -print-callgraph -disable-output " + fileName);
... |
diff --git a/src/UltraCommand.java b/src/UltraCommand.java
index 0274120..fa95bad 100644
--- a/src/UltraCommand.java
+++ b/src/UltraCommand.java
@@ -1,353 +1,353 @@
package com.kierdavis.ultracommand;
import com.kierdavis.flex.FlexCommandExecutor;
import java.io.File;
import java.io.IOException;
import java.util... | false | true | public boolean doCommand(Player player, String[] parts) {
CustomCommandContext ccc = null;
String cmdName = "";
StringBuilder b = new StringBuilder();
for (int i = 0; i < parts.length; i++) {
if (i > 0) b.append(" ");
b.append(parts[i]);
... | public boolean doCommand(Player player, String[] parts) {
CustomCommandContext ccc = null;
String cmdName = "";
StringBuilder b = new StringBuilder();
for (int i = 0; i < parts.length; i++) {
if (i > 0) b.append(" ");
b.append(parts[i]);
... |
diff --git a/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java b/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java
index 61d1de0a..3cabd52b 100755
--- a/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java
+++ b/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java
@@ -1,167 +1,168 @@
/* -*- M... | false | true | public int complete(String buffer, int cursor, List<String> candidates) {
// Starting from "cursor" at the end of the buffer, look backward
// and collect a list of identifiers separated by (possibly zero)
// dots. Then look up each identifier in turn until getting to the
// last, pr... | public int complete(String buffer, int cursor, List<String> candidates) {
// Starting from "cursor" at the end of the buffer, look backward
// and collect a list of identifiers separated by (possibly zero)
// dots. Then look up each identifier in turn until getting to the
// last, pr... |
diff --git a/src/main/java/org/lisak/pguide/controllers/AdminController.java b/src/main/java/org/lisak/pguide/controllers/AdminController.java
index 6f94fd7..dcdbdf0 100644
--- a/src/main/java/org/lisak/pguide/controllers/AdminController.java
+++ b/src/main/java/org/lisak/pguide/controllers/AdminController.java
@@ -1,3... | false | true | public void createStaticMap(@ModelAttribute("id") String id,
@ModelAttribute("gps") String gps,
HttpServletResponse response) throws IOException {
String staticMapURL = "http://maps.googleapis.com/maps/api/staticmap?";
String staticMapP... | public void createStaticMap(@ModelAttribute("id") String id,
@ModelAttribute("gps") String gps,
@ModelAttribute("category") String category,
HttpServletResponse response) throws IOException {
String staticMapURL ... |
diff --git a/DesktopDataLaboratory/src/org/gephi/desktop/datalab/general/actions/MergeColumnsUI.java b/DesktopDataLaboratory/src/org/gephi/desktop/datalab/general/actions/MergeColumnsUI.java
index 3477b1b70..32365a751 100644
--- a/DesktopDataLaboratory/src/org/gephi/desktop/datalab/general/actions/MergeColumnsUI.java
+... | false | true | private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
columnsToMergeList = new javax.swing.JList();
description = new javax.swing.JLabel();
addColumnButton = new javax.swing.JButton();
removeColumnButton = new javax.swing.JButton();
jScrollPan... | private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
columnsToMergeList = new javax.swing.JList();
description = new javax.swing.JLabel();
addColumnButton = new javax.swing.JButton();
removeColumnButton = new javax.swing.JButton();
jScrollPan... |
diff --git a/src/test/java/com/github/trecloux/flashcookie/web/IntegrationTest.java b/src/test/java/com/github/trecloux/flashcookie/web/IntegrationTest.java
index ce098e5..da5c6b2 100644
--- a/src/test/java/com/github/trecloux/flashcookie/web/IntegrationTest.java
+++ b/src/test/java/com/github/trecloux/flashcookie/web/... | true | true | public void startSever() throws Exception {
server = new Server();
Connector connector = new SelectChannelConnector();
connector.setPort(8080);
connector.setHost("0.0.0.0");
server.addConnector(connector);
WebAppContext wac = new WebAppContext();
wac.setContextPath(CONTEXTPATH);
wac.setWar(WEBAPP);
... | public void startServer() throws Exception {
server = new Server();
Connector connector = new SelectChannelConnector();
connector.setPort(8080);
connector.setHost("0.0.0.0");
server.addConnector(connector);
WebAppContext wac = new WebAppContext();
wac.setContextPath(CONTEXTPATH);
wac.setWar(WEBAPP);... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java b/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java
index c2f440891..f418048e1 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java
+++ b/src/mai... | true | true | public void entityDamage(EntityDamageEvent event) {
Player player = null;
dNPC npc = null;
String determination;
Map<String, dObject> context = new HashMap<String, dObject>();
dEntity entity = new dEntity(event.getEntity());
String entityType = entity.getEntityType(... | public void entityDamage(EntityDamageEvent event) {
Player player = null;
dNPC npc = null;
String determination;
Map<String, dObject> context = new HashMap<String, dObject>();
dEntity entity = new dEntity(event.getEntity());
String entityType = entity.getEntityType(... |
diff --git a/esmska/src/esmska/persistence/PersistenceManager.java b/esmska/src/esmska/persistence/PersistenceManager.java
index 8bb15521..2045240c 100644
--- a/esmska/src/esmska/persistence/PersistenceManager.java
+++ b/esmska/src/esmska/persistence/PersistenceManager.java
@@ -1,595 +1,597 @@
/*
* PersistenceManage... | true | true | public void saveOperator(String scriptName, String scriptContents, byte[] icon) throws IOException {
Validate.notEmpty(scriptName);
Validate.notEmpty(scriptContents);
logger.fine("Saving operator...");
File temp = createTempFile();
FileOutputStream out = new FileOutputStrea... | public void saveOperator(String scriptName, String scriptContents, byte[] icon) throws IOException {
Validate.notEmpty(scriptName);
Validate.notEmpty(scriptContents);
logger.fine("Saving operator...");
File temp = createTempFile();
FileOutputStream out = new FileOutputStrea... |
diff --git a/src/com/redhat/qe/sm/cli/tests/ListTests.java b/src/com/redhat/qe/sm/cli/tests/ListTests.java
index ca860aed..e281481a 100644
--- a/src/com/redhat/qe/sm/cli/tests/ListTests.java
+++ b/src/com/redhat/qe/sm/cli/tests/ListTests.java
@@ -1,756 +1,756 @@
package com.redhat.qe.sm.cli.tests;
import java.text.... | true | true | public void createSubscriptionsWithVariationsOnProductAttributeSockets() throws JSONException, Exception {
String name,productId;
List<String> providedProductIds = new ArrayList<String>();
Map<String,String> attributes = new HashMap<String,String>();
JSONObject jsonEngProduct, jsonMktProduct, jsonSubscription;... | public void createSubscriptionsWithVariationsOnProductAttributeSockets() throws JSONException, Exception {
String name,productId;
List<String> providedProductIds = new ArrayList<String>();
Map<String,String> attributes = new HashMap<String,String>();
JSONObject jsonEngProduct, jsonMktProduct, jsonSubscription;... |
diff --git a/src/main/java/org/graylog2/messagehandlers/gelf/GELFClientHandlerThread.java b/src/main/java/org/graylog2/messagehandlers/gelf/GELFClientHandlerThread.java
index 7a7cca78e..0b2a2aa60 100644
--- a/src/main/java/org/graylog2/messagehandlers/gelf/GELFClientHandlerThread.java
+++ b/src/main/java/org/graylog2/m... | true | true | @Override public void run() {
try {
GELFClientHandlerIF client = null;
if (GELF.isChunkedMessage(this.receivedGelfSentence)) {
Log.info("Received message is chunked. Handling now.");
client = new ChunkedGELFClientHandler(this.receivedGelfSentence);
... | @Override public void run() {
try {
GELFClientHandlerIF client = null;
if (GELF.isChunkedMessage(this.receivedGelfSentence)) {
Log.info("Received message is chunked. Handling now.");
client = new ChunkedGELFClientHandler(this.receivedGelfSentence);
... |
diff --git a/src/main/java/com/redhat/ceylon/js/repl/CeylonToJSTranslationServlet.java b/src/main/java/com/redhat/ceylon/js/repl/CeylonToJSTranslationServlet.java
index cb31b96..ca2ad06 100644
--- a/src/main/java/com/redhat/ceylon/js/repl/CeylonToJSTranslationServlet.java
+++ b/src/main/java/com/redhat/ceylon/js/repl/C... | false | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
String script = request.getParameter("ceylon");
String module = request.getParameter("module");
ScriptFile src = new ScriptFile("ROOT",
new Sc... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
String script = request.getParameter("ceylon");
String module = request.getParameter("module");
ScriptFile src = new ScriptFile("ROOT",
new Sc... |
diff --git a/modules/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianAnalyzer.java b/modules/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianAnalyzer.java
index e4b78e8a6..210f9ae4d 100644
--- a/modules/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianAnalyzer.java
+++ ... | true | true | protected TokenStreamComponents createComponents(String fieldName,
Reader reader) {
final Tokenizer source = new StandardTokenizer(matchVersion, reader);
TokenStream result = new StandardFilter(matchVersion, source);
result = new LowerCaseFilter(matchVersion, source);
result = new StopFilter(mat... | protected TokenStreamComponents createComponents(String fieldName,
Reader reader) {
final Tokenizer source = new StandardTokenizer(matchVersion, reader);
TokenStream result = new StandardFilter(matchVersion, source);
result = new LowerCaseFilter(matchVersion, result);
result = new StopFilter(mat... |
diff --git a/maven-core/src/main/java/org/apache/maven/extension/DefaultExtensionManager.java b/maven-core/src/main/java/org/apache/maven/extension/DefaultExtensionManager.java
index e31c6c9ec..4f6b4298d 100644
--- a/maven-core/src/main/java/org/apache/maven/extension/DefaultExtensionManager.java
+++ b/maven-core/src/m... | true | true | public void addExtension( Extension extension, MavenProject project, ArtifactRepository localRepository )
throws ArtifactResolutionException, PlexusContainerException, ArtifactNotFoundException
{
String extensionId = ArtifactUtils.versionlessKey( extension.getGroupId(), extension.getArtifactId()... | public void addExtension( Extension extension, MavenProject project, ArtifactRepository localRepository )
throws ArtifactResolutionException, PlexusContainerException, ArtifactNotFoundException
{
String extensionId = ArtifactUtils.versionlessKey( extension.getGroupId(), extension.getArtifactId()... |
diff --git a/webapp/lib/src/main/java/com/github/podd/resources/UserRolesResourceImpl.java b/webapp/lib/src/main/java/com/github/podd/resources/UserRolesResourceImpl.java
index aa12661e..f9423230 100644
--- a/webapp/lib/src/main/java/com/github/podd/resources/UserRolesResourceImpl.java
+++ b/webapp/lib/src/main/java/co... | true | true | public Representation editUserRolesRdf(final Representation entity, final Variant variant) throws ResourceException
{
this.log.info("editUserRolesRdf");
final User user = this.getRequest().getClientInfo().getUser();
this.log.info("authenticated user: {}", user);
... | public Representation editUserRolesRdf(final Representation entity, final Variant variant) throws ResourceException
{
this.log.info("editUserRolesRdf");
final User user = this.getRequest().getClientInfo().getUser();
this.log.info("authenticated user: {}", user);
... |
diff --git a/modules/org.restlet.test/src/org/restlet/test/security/HttpDigestTestCase.java b/modules/org.restlet.test/src/org/restlet/test/security/HttpDigestTestCase.java
index 95fe4380d..f9dfffa13 100644
--- a/modules/org.restlet.test/src/org/restlet/test/security/HttpDigestTestCase.java
+++ b/modules/org.restlet.te... | true | true | public void testDigest() throws Exception {
ClientResource cr = new ClientResource("http://localhost:" + port + "/");
// Try unauthenticated request
try {
cr.get();
} catch (ResourceException re) {
assertEquals(Status.CLIENT_ERROR_UNAUTHORIZED, cr.getStatus()... | public void testDigest() throws Exception {
ClientResource cr = new ClientResource("http://localhost:" + port + "/");
// Try unauthenticated request
try {
cr.get();
} catch (ResourceException re) {
assertEquals(Status.CLIENT_ERROR_UNAUTHORIZED, cr.getStatus()... |
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dList.java b/src/main/java/net/aufdemrand/denizen/objects/dList.java
index 89fd437a0..e7eec9e57 100644
--- a/src/main/java/net/aufdemrand/denizen/objects/dList.java
+++ b/src/main/java/net/aufdemrand/denizen/objects/dList.java
@@ -1,549 +1,549 @@
package net.au... | false | true | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <li@list.as_cslist>
// @returns Element
// @description
// returns the list in a cleaner format, separated by commas.
// -->
if (attribute... | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <li@list.as_cslist>
// @returns Element
// @description
// returns the list in a cleaner format, separated by commas.
// -->
if (attribute... |
diff --git a/itest/itest-osgi/src/test/java/org/ops4j/pax/shiro/itest/osgi/Jetty9FacesBundleTest.java b/itest/itest-osgi/src/test/java/org/ops4j/pax/shiro/itest/osgi/Jetty9FacesBundleTest.java
index a077110..13301c1 100644
--- a/itest/itest-osgi/src/test/java/org/ops4j/pax/shiro/itest/osgi/Jetty9FacesBundleTest.java
++... | false | true | public Option[] configuration() {
return options(
frameworkProperty("felix.bootdelegation.implicit").value("false"),
frameworkProperty("osgi.console").value("6666"),
frameworkProperty("org.osgi.service.http.port").value(port),
frameworkProperty("osgi.compatibi... | public Option[] configuration() {
return options(
frameworkProperty("felix.bootdelegation.implicit").value("false"),
frameworkProperty("osgi.console").value("6666"),
frameworkProperty("org.osgi.service.http.port").value(port),
frameworkProperty("osgi.compatibi... |
diff --git a/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java b/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java
index 9226d4c2f..3796f55e3 100644
--- a/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldap... | false | true | private void parseSchemaRecord( LdifContentRecord schemaRecord ) throws Exception
{
setSchemaRecord( schemaRecord );
setDn( new LdapDN( schemaRecord.getDnLine().getValueAsString() ) );
LdifAttrValLine[] lines = schemaRecord.getAttrVals();
for ( int i = 0; i < lines.length; i++ )... | private void parseSchemaRecord( LdifContentRecord schemaRecord ) throws Exception
{
setSchemaRecord( schemaRecord );
setDn( new LdapDN( schemaRecord.getDnLine().getValueAsString() ) );
LdifAttrValLine[] lines = schemaRecord.getAttrVals();
for ( int i = 0; i < lines.length; i++ )... |
diff --git a/src/nu/validator/htmlparser/impl/TreeBuilder.java b/src/nu/validator/htmlparser/impl/TreeBuilder.java
index 710baa9..35138ba 100644
--- a/src/nu/validator/htmlparser/impl/TreeBuilder.java
+++ b/src/nu/validator/htmlparser/impl/TreeBuilder.java
@@ -1,5644 +1,5647 @@
/*
* Copyright (c) 2007 Henri Sivonen
... | true | true | public final void startTag(ElementName elementName,
HtmlAttributes attributes, boolean selfClosing) throws SAXException {
flushCharacters();
// [NOCPP[
if (errorHandler != null) {
// ID uniqueness
@IdType String id = attributes.getId();
if (id ... | public final void startTag(ElementName elementName,
HtmlAttributes attributes, boolean selfClosing) throws SAXException {
flushCharacters();
// [NOCPP[
if (errorHandler != null) {
// ID uniqueness
@IdType String id = attributes.getId();
if (id ... |
diff --git a/help-tool/src/java/org/sakaiproject/tool/help/ContentServlet.java b/help-tool/src/java/org/sakaiproject/tool/help/ContentServlet.java
index 071684c..1d2e37c 100644
--- a/help-tool/src/java/org/sakaiproject/tool/help/ContentServlet.java
+++ b/help-tool/src/java/org/sakaiproject/tool/help/ContentServlet.java... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
getHelpManager().initialize();
String docId = req.getParameter(DOC_ID);
if (docId == null) {
res.sendError(HttpServletResponse.SC_BAD_REQUEST);
return;
}
OutputStr... | protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
getHelpManager().initialize();
String docId = req.getParameter(DOC_ID);
if (docId == null) {
res.sendError(HttpServletResponse.SC_BAD_REQUEST);
return;
}
OutputStr... |
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/ui/PaneManager.java b/src/gwt/src/org/rstudio/studio/client/workbench/ui/PaneManager.java
index ad1caa0975..6a0d60c57b 100644
--- a/src/gwt/src/org/rstudio/studio/client/workbench/ui/PaneManager.java
+++ b/src/gwt/src/org/rstudio/studio/client/workbench/ui/Pa... | true | true | public PaneManager(Provider<MainSplitPanel> pSplitPanel,
WorkbenchServerOperations server,
EventBus eventBus,
Session session,
Binder binder,
Commands commands,
UIPrefs uiPrefs,
... | public PaneManager(Provider<MainSplitPanel> pSplitPanel,
WorkbenchServerOperations server,
EventBus eventBus,
Session session,
Binder binder,
Commands commands,
UIPrefs uiPrefs,
... |
diff --git a/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java b/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java
index 440eab70..ddbd5099 100644
--- a/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java
+++ b/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java
@@ -1,496 +1,... | true | true | public Construct exec(int line_num, File f, final Env env, Construct... args) throws CancelCommandException, ConfigRuntimeException {
if (args[1].val() == null || args[1].val().length() <= 0 || args[1].val().charAt(0) != '/') {
throw new ConfigRuntimeException("The first character of... | public Construct exec(int line_num, File f, final Env env, Construct... args) throws CancelCommandException, ConfigRuntimeException {
if (args[1].val() == null || args[1].val().length() <= 0 || args[1].val().charAt(0) != '/') {
throw new ConfigRuntimeException("The first character of... |
diff --git a/src/main/java/com/zazzercode/doctorhere/models/hadoop/DoctorCountTool.java b/src/main/java/com/zazzercode/doctorhere/models/hadoop/DoctorCountTool.java
index 38b9a02..c571972 100644
--- a/src/main/java/com/zazzercode/doctorhere/models/hadoop/DoctorCountTool.java
+++ b/src/main/java/com/zazzercode/doctorher... | true | true | public int run(String[] arg0) throws Exception {
JobConf jobConf = new JobConf(getConf(), DoctorCountTool.class);
jobConf.setJobName("DoctorCountTool");
//Setting configuration object with the Data Type of output Key and Value
jobConf.setOutputKeyClass(Text.class);
jobConf.setOutputValueClass(IntWritable.cl... | public int run(String[] arg0) throws Exception {
JobConf jobConf = new JobConf(getConf(), DoctorCountTool.class);
jobConf.setJobName("DoctorCountTool");
//Setting configuration object with the Data Type of output Key and Value
jobConf.setOutputKeyClass(Text.class);
jobConf.setOutputValueClass(IntWritable.cl... |
diff --git a/sandbox/src/org/springmodules/lucene/index/core/concurrent/ConcurrentLuceneIndexTemplate.java b/sandbox/src/org/springmodules/lucene/index/core/concurrent/ConcurrentLuceneIndexTemplate.java
index 5ff0920b..d5dd4064 100644
--- a/sandbox/src/org/springmodules/lucene/index/core/concurrent/ConcurrentLuceneInde... | true | true | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
LuceneChannelRequest element=new LuceneChannelRequest(
method.getName(),method.getParameterTypes(),method.getReturnType(),args);
if( method.getReturnType()==void.class ) {
channel.executeWithoutReturn(element);
retu... | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
LuceneChannelRequest element=new LuceneChannelRequest(
method.getName(),method.getParameterTypes(),method.getReturnType(),args);
if( method.getReturnType()==void.class ) {
channel.executeWithoutReturn(element);
retu... |
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/FileDumpHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/FileDumpHelper.java
index 99026be16..7bb1e99d0 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/FileDumpHelper.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/FileDumpHel... | true | true | private static void dumpFile(StringBuilder buf, File f) {
buf.append("<tr><td><b>").append(f.getAbsolutePath()).append("</b></td>" +
"<td align=\"right\">").append(f.length()).append("</td>" +
"<td>");
long mod = f.lastModified();
if (mod > 0)
... | private static void dumpFile(StringBuilder buf, File f) {
buf.append("<tr><td><b>").append(f.getAbsolutePath()).append("</b></td>" +
"<td align=\"right\">").append(f.length()).append("</td>" +
"<td>");
long mod = f.lastModified();
if (mod > 0)
... |
diff --git a/src/main/java/com/zack6849/superlogger/EventsHandler.java b/src/main/java/com/zack6849/superlogger/EventsHandler.java
index 917d175..65666cc 100644
--- a/src/main/java/com/zack6849/superlogger/EventsHandler.java
+++ b/src/main/java/com/zack6849/superlogger/EventsHandler.java
@@ -1,251 +1,251 @@
package co... | true | true | public void onDisalow(PlayerLoginEvent e) {
if (LOG_DISALLOWED_CONNECTIONS) {
if (!e.getResult().equals(PlayerLoginEvent.Result.ALLOWED)) {
if (e.getResult().equals(PlayerLoginEvent.Result.KICK_BANNED)) {
plugin.logToFile(main.getTime() + "[KICK-BANNED] " + e.... | public void onDisallow(PlayerLoginEvent e) {
if (LOG_DISALLOWED_CONNECTIONS) {
if (!e.getResult().equals(PlayerLoginEvent.Result.ALLOWED)) {
if (e.getResult().equals(PlayerLoginEvent.Result.KICK_BANNED)) {
plugin.logToFile(main.getTime() + "[KICK-BANNED] " + e... |
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CalcNearBy.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CalcNearBy.java
index bf436760..ec059d48 100644
--- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CalcNearBy.java
+++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CalcNearBy.java
@@ -1,414 +1,414 @@
/**
* This file is part of... | true | true | public long calcWayForHouseNumber(Entity n) {
String streetName = n.getAttribute("addr:streetname");
Node nearestWay = null;
try {
Node thisNode = null;
if (n instanceof Node) {
thisNode = (Node) n;
} else {
Way w = (Way) n;
thisNode = w.getMidPoint();
}
nearestWay = (Node) ne... | public long calcWayForHouseNumber(Entity n) {
String streetName = n.getAttribute("addr:street");
Node nearestWay = null;
try {
Node thisNode = null;
if (n instanceof Node) {
thisNode = (Node) n;
} else {
Way w = (Way) n;
thisNode = w.getMidPoint();
}
nearestWay = (Node) nearBy... |
diff --git a/EventVerwaltung/src/Event.java b/EventVerwaltung/src/Event.java
index e921633..d3393a6 100644
--- a/EventVerwaltung/src/Event.java
+++ b/EventVerwaltung/src/Event.java
@@ -1,126 +1,126 @@
import java.util.ArrayList;
/**
* Java Applikation zur Verwaltung eines Events, welcher einen spezifischen Kuenst... | true | true | public void outputEvent()
{
int ticketGesamtEinnahmen = 0;
if(kuenstler == null || ticket == null)
{
System.out.println("Es wurden noch nicht alle benoetigten Angaben eingetragen");
}
else
{
String outputString = "Kuenstler: " + kuenstler.getKuenstlerName() + ", G... | public void outputEvent()
{
int ticketGesamtEinnahmen = 0;
if(kuenstler == null || ticket == null)
{
System.out.println("Es wurden noch nicht alle benoetigten Angaben eingetragen");
}
else
{
String outputString = "Kuenstler: " + kuenstler.getKuenstlerName() + ", G... |
diff --git a/SoarSuite/Tools/SoarJavaDebugger/src/modules/RHSBarChartView.java b/SoarSuite/Tools/SoarJavaDebugger/src/modules/RHSBarChartView.java
index 774fbd618..460a8e642 100644
--- a/SoarSuite/Tools/SoarJavaDebugger/src/modules/RHSBarChartView.java
+++ b/SoarSuite/Tools/SoarJavaDebugger/src/modules/RHSBarChartView.... | true | true | public void showProperties() {
PropertiesDialog.Property properties[] = new PropertiesDialog.Property[4] ;
properties[0] = new PropertiesDialog.IntProperty("Update automatically every n'th decision (0 => none)", m_UpdateEveryNthDecision) ;
properties[1] = new PropertiesDialog.StringProperty("Name of RHS funct... | public void showProperties() {
PropertiesDialog.Property properties[] = new PropertiesDialog.Property[4] ;
properties[0] = new PropertiesDialog.IntProperty("Update automatically every n'th decision (0 => none)", m_UpdateEveryNthDecision) ;
properties[1] = new PropertiesDialog.StringProperty("Name of RHS funct... |
diff --git a/src/uk/ac/cam/db538/dexter/dex/DexClass.java b/src/uk/ac/cam/db538/dexter/dex/DexClass.java
index d9f0e6ce..89d6d847 100644
--- a/src/uk/ac/cam/db538/dexter/dex/DexClass.java
+++ b/src/uk/ac/cam/db538/dexter/dex/DexClass.java
@@ -1,235 +1,234 @@
package uk.ac.cam.db538.dexter.dex;
import java.util.Arra... | false | true | public void writeToFile(DexFile outFile, DexAssemblingCache cache) {
System.out.println("Assembling class " + this.classDef.getType().getPrettyName());
val classAnnotations = this.getAnnotations();
val asmClassType = cache.getType(classDef.getType());
val asmSuperType = cache.getType(classDef.getSupercla... | public void writeToFile(DexFile outFile, DexAssemblingCache cache) {
System.out.println("Assembling class " + this.classDef.getType().getPrettyName());
val classAnnotations = this.getAnnotations();
val asmClassType = cache.getType(classDef.getType());
val asmSuperType = cache.getType(classDef.getSupercla... |
diff --git a/src/org/eclipse/core/tests/internal/mapping/ChangeValidationTest.java b/src/org/eclipse/core/tests/internal/mapping/ChangeValidationTest.java
index 725a50b..24996b4 100644
--- a/src/org/eclipse/core/tests/internal/mapping/ChangeValidationTest.java
+++ b/src/org/eclipse/core/tests/internal/mapping/ChangeVal... | false | true | private void assertStatusEqual(IStatus status, String[] expectedMessages) {
List actualMessages = new ArrayList();
if (status.isMultiStatus()) {
IStatus[] children = status.getChildren();
for (int i = 0; i < children.length; i++) {
String message = getModelMessage(children[i]);
if (message != null)
... | private void assertStatusEqual(IStatus status, String[] expectedMessages) {
List actualMessages = new ArrayList();
if (status.isMultiStatus()) {
IStatus[] children = status.getChildren();
for (int i = 0; i < children.length; i++) {
String message = getModelMessage(children[i]);
if (message != null)
... |
diff --git a/src/main/java/org/spoutcraft/launcher/MD5Utils.java b/src/main/java/org/spoutcraft/launcher/MD5Utils.java
index 44e0b97..aebbb5c 100644
--- a/src/main/java/org/spoutcraft/launcher/MD5Utils.java
+++ b/src/main/java/org/spoutcraft/launcher/MD5Utils.java
@@ -1,38 +1,41 @@
package org.spoutcraft.launcher;
... | true | true | public static String getMD5(File file){
try {
return DigestUtils.md5Hex(new FileInputStream(file));
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
| public static String getMD5(File file){
try {
FileInputStream fis = new FileInputStream(file);
String md5 = DigestUtils.md5Hex(fis);
fis.close();
return md5;
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
|
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.