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/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/view/swing/MpiBlastExampleJobCreationPanel.java b/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/view/swing/MpiBlastExampleJobCreationPanel.java
index d3cdace0..f724e624 100644
--- a/frontend/grisu-client/src/main/java/org/vpac/grisu/... | true | true | public void submitJob() throws BatchJobException {
if (currentBatchJob != null) {
currentBatchJob.removePropertyChangeListener(this);
}
currentBatchJob = new BatchJobObject(si, getJobnameField().getText(),
"/ACC", "mpiblast", "1.5.0");
currentBatchJob.addPropertyChangeListener(this);
getJobSubmiss... | public void submitJob() throws BatchJobException {
if (currentBatchJob != null) {
currentBatchJob.removePropertyChangeListener(this);
}
currentBatchJob = new BatchJobObject(si, getJobnameField().getText(),
"/ACC", "mpiblast", "1.5.0");
currentBatchJob.addPropertyChangeListener(this);
getJobSubmiss... |
diff --git a/test/selenium/com.ibm.sbt.automation.test/src/com/ibm/sbt/test/controls/grid/communities/CommunityMembersGrid.java b/test/selenium/com.ibm.sbt.automation.test/src/com/ibm/sbt/test/controls/grid/communities/CommunityMembersGrid.java
index 52db4f79d..604484209 100644
--- a/test/selenium/com.ibm.sbt.automatio... | true | true | public void initCommunity() {
addSnippetParam("sample.userId3", getCommunityUuid());
try {
addMember(new Member(getCommunityService(), "AmyBlanks@renovations.com"));
} catch(Exception e) {
e.printStackTrace();
}
}
| public void initCommunity() {
addSnippetParam("sample.userId3", getCommunityUuid());
try {
addMember(new Member(getCommunityService(), "sample.userId3"));
} catch(Exception e) {
e.printStackTrace();
}
}
|
diff --git a/hazelcast-monitor/src/main/java/com/hazelcast/monitor/server/event/QueueStatisticsGenerator.java b/hazelcast-monitor/src/main/java/com/hazelcast/monitor/server/event/QueueStatisticsGenerator.java
index 569ac103..faca9552 100644
--- a/hazelcast-monitor/src/main/java/com/hazelcast/monitor/server/event/QueueS... | false | true | public ChangeEvent generateEvent() {
ExecutorService esService = client.getExecutorService();
Set<Member> members = client.getCluster().getMembers();
final List<Member> lsMembers = new ArrayList<Member>(members);
MultiTask<DistributedQueueStatsCallable.MemberQueueStats> task =
... | public ChangeEvent generateEvent() {
ExecutorService esService = client.getExecutorService();
Set<Member> members = client.getCluster().getMembers();
final List<Member> lsMembers = new ArrayList<Member>(members);
MultiTask<DistributedQueueStatsCallable.MemberQueueStats> task =
... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ParameterUtil.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ParameterUtil.java
index a1997b28b..5af26e95f 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ParameterUtil.java
+++ ... | true | true | Collection resolveDataSetParameters( boolean evaluateValue )
throws DataException
{
List paramDefns = this.dsRT.getParameters( );
int nParams = paramDefns == null ? 0 : paramDefns.size( );
// array of parameter hints
ParameterHint[] paramHints = new ParameterHint[nParams];
// whether corresponding ite... | Collection resolveDataSetParameters( boolean evaluateValue )
throws DataException
{
List paramDefns = this.dsRT.getParameters( );
int nParams = paramDefns == null ? 0 : paramDefns.size( );
// array of parameter hints
ParameterHint[] paramHints = new ParameterHint[nParams];
// whether corresponding ite... |
diff --git a/src/com/android/contacts/quickcontact/QuickContactWindow.java b/src/com/android/contacts/quickcontact/QuickContactWindow.java
index 454ac70c8..cf2e81d11 100644
--- a/src/com/android/contacts/quickcontact/QuickContactWindow.java
+++ b/src/com/android/contacts/quickcontact/QuickContactWindow.java
@@ -1,1718 ... | true | true | private void handleData(Cursor cursor) {
if (cursor == null) return;
if (!isMimeExcluded(Contacts.CONTENT_ITEM_TYPE)) {
// Add the profile shortcut action
final Action action = new ProfileAction(mContext, mLookupUri);
mActions.collect(Contacts.CONTENT_ITEM_TYPE, ... | private void handleData(Cursor cursor) {
if (cursor == null) return;
if (cursor.getCount() == 0) {
Toast.makeText(mContext, R.string.invalidContactMessage, Toast.LENGTH_LONG).show();
dismiss();
return;
}
if (!isMimeExcluded(Contacts.CONTENT_ITEM_T... |
diff --git a/tests/jscribble/notebook/NoteSheetTest.java b/tests/jscribble/notebook/NoteSheetTest.java
index 6499b48..04d8918 100644
--- a/tests/jscribble/notebook/NoteSheetTest.java
+++ b/tests/jscribble/notebook/NoteSheetTest.java
@@ -1,73 +1,73 @@
// Copyright (c) 2011 Martin Ueding <dev@martin-ueding.de>
packag... | true | true | public void testTouchedWithEmptyTempfile() {
try {
File tempfile = File.createTempFile("", ".png");
tempfile.createNewFile();
NoteSheet n = new NoteSheet(new Dimension(100, 100), 0, tempfile);
assertFalse(n.unsaved());
assertFalse(n.touched());
n.drawLine(0, 0, 0, 0);
assertTrue(n.touched());
... | public void testTouchedWithEmptyTempfile() {
try {
File tempfile = File.createTempFile("JUnit-", ".png");
tempfile.createNewFile();
NoteSheet n = new NoteSheet(new Dimension(100, 100), 0, tempfile);
assertFalse(n.unsaved());
assertFalse(n.touched());
n.drawLine(0, 0, 0, 0);
assertTrue(n.touched... |
diff --git a/hibernate-core/src/test/java/org/hibernate/test/collectionalias/CollectionAliasTest.java b/hibernate-core/src/test/java/org/hibernate/test/collectionalias/CollectionAliasTest.java
index 90104b4d98..ac1c1e9c58 100644
--- a/hibernate-core/src/test/java/org/hibernate/test/collectionalias/CollectionAliasTest.j... | true | true | public void test() {
Session s = openSession();
s.getTransaction().begin();
ATable aTable = new ATable( 1 );
TableB tableB = new TableB(
new TableBId( 1, "a", "b" )
);
aTable.getTablebs().add( tableB );
tableB.setTablea( aTable );
s.save( aTable );
s.getTransaction().commit();
s.close();
s = ... | public void test() {
Session s = openSession();
s.getTransaction().begin();
ATable aTable = new ATable( 1 );
TableB tableB = new TableB(
new TableBId( 1, "a", "b" )
);
aTable.getTablebs().add( tableB );
tableB.setTablea( aTable );
s.save( aTable );
s.getTransaction().commit();
s.close();
s = ... |
diff --git a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java
index 52329b8c4..b60000996 100644
--- a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java
+++ b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java
@@ -1,1147 +1,1137 @@
package com.todo... | false | true | public synchronized void setFieldContentsAndVisibility(View view) {
Resources r = fragment.getResources();
ViewHolder viewHolder = (ViewHolder)view.getTag();
Task task = viewHolder.task;
// name
final TextView nameView = viewHolder.nameView; {
String nameValue = ... | public synchronized void setFieldContentsAndVisibility(View view) {
Resources r = fragment.getResources();
ViewHolder viewHolder = (ViewHolder)view.getTag();
Task task = viewHolder.task;
// name
final TextView nameView = viewHolder.nameView; {
String nameValue = ... |
diff --git a/src/main/java/org/biojava3/structure/align/symm/order/RotationOrderDetector.java b/src/main/java/org/biojava3/structure/align/symm/order/RotationOrderDetector.java
index 53fdbe69..a1df9431 100644
--- a/src/main/java/org/biojava3/structure/align/symm/order/RotationOrderDetector.java
+++ b/src/main/java/org/... | true | true | public static void main(String[] args) {
String name;
name = "d1ijqa1";
// name = "1G6S";
// name = "1MER";
name = "1TIM.A";
name = "d1h70a_";
try {
Atom[] ca1 = StructureTools.getAtomCAArray(StructureTools.getStructure(name));
Structure s2 = StructureTools.getStructure(name);
Atom[] ca2 = Structu... | public static void main(String[] args) {
String name;
name = "d1ijqa1";
// name = "1G6S";
// name = "1MER";
name = "1TIM.A";
name = "d1h70a_";
try {
Atom[] ca1 = StructureTools.getAtomCAArray(StructureTools.getStructure(name));
Structure s2 = StructureTools.getStructure(name);
Atom[] ca2 = Structu... |
diff --git a/plugins/org.eclipse.recommenders.completion.rcp.calls/src/org/eclipse/recommenders/internal/completion/rcp/calls/store2/models/ModelArchiveDownloadService.java b/plugins/org.eclipse.recommenders.completion.rcp.calls/src/org/eclipse/recommenders/internal/completion/rcp/calls/store2/models/ModelArchiveDownlo... | false | true | protected File downloadModel(final Manifest manifest) throws IOException {
// this is not exactly sexy but produces a nice output in Eclipse's
// progress view:
final File temp = File.createTempFile("download.", ".zip");
final WorkspaceJob job = new WorkspaceJob("Downloading recommen... | protected File downloadModel(final Manifest manifest) throws IOException {
// this is not exactly sexy but produces a nice output in Eclipse's
// progress view:
final File temp = File.createTempFile("download.", ".zip");
final WorkspaceJob job = new WorkspaceJob("Downloading recommen... |
diff --git a/src/com/ezhang/pop/ui/FuelStateMachine.java b/src/com/ezhang/pop/ui/FuelStateMachine.java
index 9f93379..0396898 100644
--- a/src/com/ezhang/pop/ui/FuelStateMachine.java
+++ b/src/com/ezhang/pop/ui/FuelStateMachine.java
@@ -1,484 +1,484 @@
package com.ezhang.pop.ui;
import java.util.ArrayList;
import ... | true | true | private void InitStateMachineTransitions() {
m_stateMachine.AddTransition(EmState.Start,
EmState.GeoLocationRecieved, EmEvent.GeoLocationEvent,
new EventAction() {
public void PerformAction(Bundle param) {
RequestSuburb();
Notify();
}
});
m_stateMachine.AddTransition(EmState.Star... | private void InitStateMachineTransitions() {
m_stateMachine.AddTransition(EmState.Start,
EmState.GeoLocationRecieved, EmEvent.GeoLocationEvent,
new EventAction() {
public void PerformAction(Bundle param) {
RequestSuburb();
Notify();
}
});
m_stateMachine.AddTransition(EmState.Star... |
diff --git a/src/com/leafdigital/browserstats/agents/IdentifyResults.java b/src/com/leafdigital/browserstats/agents/IdentifyResults.java
index 25dc240..7690837 100644
--- a/src/com/leafdigital/browserstats/agents/IdentifyResults.java
+++ b/src/com/leafdigital/browserstats/agents/IdentifyResults.java
@@ -1,148 +1,152 @@... | true | true | void write(File f) throws IOException
{
Writer w;
if(f==null)
{
w = new OutputStreamWriter(System.out, "UTF-8");
}
else
{
w = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(f), "UTF-8"));
}
String categoryAttributes = "";
if(categories.length > 0)
{
for(String name : ... | void write(File f) throws IOException
{
Writer w;
if(f==null)
{
w = new OutputStreamWriter(System.out, "UTF-8");
}
else
{
w = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(f), "UTF-8"));
}
String categoryAttributes = "";
if(categories.length > 0)
{
for(String name : ... |
diff --git a/plexus-quartz/src/test/java/org/codehaus/plexus/scheduler/SchedulerTest.java b/plexus-quartz/src/test/java/org/codehaus/plexus/scheduler/SchedulerTest.java
index 1d0b044f..3626dc2d 100644
--- a/plexus-quartz/src/test/java/org/codehaus/plexus/scheduler/SchedulerTest.java
+++ b/plexus-quartz/src/test/java/or... | false | true | public void testCreation()
throws Exception
{
Scheduler scheduler = (Scheduler) lookup( Scheduler.ROLE );
assertNotNull( scheduler );
JobDataMap dataMap = new JobDataMap();
dataMap.put( "project", "continuum" );
JobDetail jobDetail = new JobDetail( "job", "gro... | public void testCreation()
throws Exception
{
Scheduler scheduler = (Scheduler) lookup( Scheduler.ROLE, "test" );
assertNotNull( scheduler );
JobDataMap dataMap = new JobDataMap();
dataMap.put( "project", "continuum" );
JobDetail jobDetail = new JobDetail( "jo... |
diff --git a/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java b/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java
index 631bb64d..fb1dd8ef 100644
--- a/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java
+++ b/maven-... | false | true | public String toXML()
{
StringBuffer buffer = new StringBuffer();
String pattern = "yyyyMMdd HH:mm:ss z";
SimpleDateFormat formatter = new SimpleDateFormat( pattern );
buffer.append( "<changeset datePattern=\"" )
.append( pattern )
.append( "\"" );
... | public String toXML()
{
StringBuffer buffer = new StringBuffer();
String pattern = "yyyyMMdd HH:mm:ss z";
SimpleDateFormat formatter = new SimpleDateFormat( pattern );
buffer.append( "<changeset datePattern=\"" )
.append( pattern )
.append( "\"" );
... |
diff --git a/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java b/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java
index c5a87cbf..eeedb42e 100644
--- a/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java
+++ b/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java
@@ -1,671 +1,671 @@
/**
... | false | true | public ChatRoomImpl(String jid, String participantNickname, String title) {
this.participantJID = jid;
roster = SparkManager.getConnection().getRoster();
Iterator<Presence> presences = roster.getPresences(jid);
int count = 0;
Presence p = null;
if (presences.hasNext(... | public ChatRoomImpl(final String jid, String participantNickname, String title) {
this.participantJID = jid;
roster = SparkManager.getConnection().getRoster();
Iterator<Presence> presences = roster.getPresences(jid);
int count = 0;
Presence p = null;
if (presences.ha... |
diff --git a/org.iucn.sis.client.shared/src/org/iucn/sis/shared/api/schemes/ClassificationSchemeRowEditorWindow.java b/org.iucn.sis.client.shared/src/org/iucn/sis/shared/api/schemes/ClassificationSchemeRowEditorWindow.java
index a39dd186..55d03c32 100644
--- a/org.iucn.sis.client.shared/src/org/iucn/sis/shared/api/sche... | false | true | protected ComboBox<CodingOption> createClassificationOptions(TreeDataRow selected) {
/*
* Flatten the tree into a list...
*/
final List<TreeDataRow> list = new ArrayList<TreeDataRow>(treeData.flattenTree().values());
Collections.sort(list, new BasicClassificationSchemeViewer.TreeDataRowComparator());
... | protected ComboBox<CodingOption> createClassificationOptions(TreeDataRow selected) {
/*
* Flatten the tree into a list...
*/
final List<TreeDataRow> list = new ArrayList<TreeDataRow>(treeData.flattenTree().values());
Collections.sort(list, new BasicClassificationSchemeViewer.TreeDataRowComparator());
... |
diff --git a/src/org/apache/xml/utils/DOMBuilder.java b/src/org/apache/xml/utils/DOMBuilder.java
index e0f76457..72c6049e 100644
--- a/src/org/apache/xml/utils/DOMBuilder.java
+++ b/src/org/apache/xml/utils/DOMBuilder.java
@@ -1,756 +1,758 @@
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 19... | false | true | public void startElement(
String ns, String localName, String name, Attributes atts)
throws org.xml.sax.SAXException
{
Element elem;
if ((null == ns) || (ns.length() == 0))
elem = m_doc.createElement(name);
else
elem = m_doc.createElementNS(ns, name);
append(elem... | public void startElement(
String ns, String localName, String name, Attributes atts)
throws org.xml.sax.SAXException
{
Element elem;
// Note that the namespace-aware call must be used to correctly
// construct a Level 2 DOM, even for non-namespaced nodes.
if ((null == ns) || (ns.le... |
diff --git a/NacaTrans/src/parser/Cobol/elements/CBlocElement.java b/NacaTrans/src/parser/Cobol/elements/CBlocElement.java
index 7ae98b3..0b3c7b0 100644
--- a/NacaTrans/src/parser/Cobol/elements/CBlocElement.java
+++ b/NacaTrans/src/parser/Cobol/elements/CBlocElement.java
@@ -1,699 +1,700 @@
/*
* NacaRTTests - Naca ... | true | true | protected boolean ParseVerb()
{
CBaseToken tokVerb = GetCurrentToken() ;
if (m_fCheckForNextSentence.ISSet())
{
if (tokVerb.GetKeyword() == CCobolKeywordList.END_IF ||
tokVerb.GetKeyword() == CCobolKeywordList.ELSE ||
tokVerb.GetKeyword() == CCobolKeywordList.END_PERFORM ||
tokVerb.GetKeyword()... | protected boolean ParseVerb()
{
CBaseToken tokVerb = GetCurrentToken() ;
if (m_fCheckForNextSentence.ISSet())
{
if (tokVerb.GetKeyword() == CCobolKeywordList.END_IF ||
tokVerb.GetKeyword() == CCobolKeywordList.ELSE ||
tokVerb.GetKeyword() == CCobolKeywordList.WHEN ||
tokVerb.GetKeyword() == CCo... |
diff --git a/araqne-logstorage/src/main/java/org/araqne/logstorage/engine/LogStorageEngine.java b/araqne-logstorage/src/main/java/org/araqne/logstorage/engine/LogStorageEngine.java
index 0ab547e3..67e0a438 100644
--- a/araqne-logstorage/src/main/java/org/araqne/logstorage/engine/LogStorageEngine.java
+++ b/araqne-logst... | false | true | public boolean searchTablet(TableScanRequest req, Date day) throws InterruptedException {
String tableName = req.getTableName();
Date from = req.getFrom();
Date to = req.getTo();
long minId = req.getMinId();
long maxId = req.getMaxId();
LogParserBuilder builder = req.getParserBuilder();
LogTraverseCallba... | public boolean searchTablet(TableScanRequest req, Date day) throws InterruptedException {
String tableName = req.getTableName();
Date from = req.getFrom();
Date to = req.getTo();
long minId = req.getMinId();
long maxId = req.getMaxId();
LogParserBuilder builder = req.getParserBuilder();
LogTraverseCallba... |
diff --git a/src/main/java/net/vhati/modmanager/core/ModPatchThread.java b/src/main/java/net/vhati/modmanager/core/ModPatchThread.java
index d5cf5b0..fe407e4 100644
--- a/src/main/java/net/vhati/modmanager/core/ModPatchThread.java
+++ b/src/main/java/net/vhati/modmanager/core/ModPatchThread.java
@@ -1,362 +1,362 @@
pa... | true | true | private boolean patch() throws IOException, JDOMException {
observer.patchingProgress( 0, progMax );
BackedUpDat[] allDats = new BackedUpDat[] {dataDat, resDat};
FTLPack dataP = null;
FTLPack resP = null;
try {
int backupsCreated = 0;
int datsClobbered = 0;
int modsInstalled = 0;
int datsRepa... | private boolean patch() throws IOException, JDOMException {
observer.patchingProgress( 0, progMax );
BackedUpDat[] allDats = new BackedUpDat[] {dataDat, resDat};
FTLPack dataP = null;
FTLPack resP = null;
try {
int backupsCreated = 0;
int datsClobbered = 0;
int modsInstalled = 0;
int datsRepa... |
diff --git a/src/org/melonbrew/fee/commands/YesCommand.java b/src/org/melonbrew/fee/commands/YesCommand.java
index 47bf65a..0d32490 100644
--- a/src/org/melonbrew/fee/commands/YesCommand.java
+++ b/src/org/melonbrew/fee/commands/YesCommand.java
@@ -1,49 +1,49 @@
package org.melonbrew.fee.commands;
import org.bukkit... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
if (!(sender instanceof CommandSender)){
sender.sendMessage(Phrase.YOU_ARE_NOT_A_PLAYER.parseWithPrefix());
return true;
}
Player player = (Player) sender;
if (!plugin.containsPlayer(player)){
se... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
if (!(sender instanceof Player)){
sender.sendMessage(Phrase.YOU_ARE_NOT_A_PLAYER.parseWithPrefix());
return true;
}
Player player = (Player) sender;
if (!plugin.containsPlayer(player)){
sender.se... |
diff --git a/src/streamfish/StreamFish.java b/src/streamfish/StreamFish.java
index 1b406ea..7a4de3b 100644
--- a/src/streamfish/StreamFish.java
+++ b/src/streamfish/StreamFish.java
@@ -1,234 +1,234 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package stream... | false | true | public Customer[] getCustomers(String s){
Statement stm;
ResultSet res;
Customer[] customers;
int teller = 0;
try {
stm = con.createStatement();
res = stm.executeQuery("select count(*) antall from customer where customer_name like '" + s.toLowerCase() + "%' or customer_name like '" + s.toUpperCas... | public Customer[] getCustomers(String s){
Statement stm;
ResultSet res;
Customer[] customers;
int teller = 0;
try {
stm = con.createStatement();
res = stm.executeQuery("select count(*) antall from customer where customer_name like '" + s.toLowerCase() + "%' or customer_name like '" + s.toUpperCas... |
diff --git a/grails/test/web/org/codehaus/groovy/grails/web/pages/ParseTests.java b/grails/test/web/org/codehaus/groovy/grails/web/pages/ParseTests.java
index 0fdc6eca2..18f3e8863 100644
--- a/grails/test/web/org/codehaus/groovy/grails/web/pages/ParseTests.java
+++ b/grails/test/web/org/codehaus/groovy/grails/web/pages... | true | true | public void testParseGTagsWithNamespaces() throws Exception {
String expected =
"import org.codehaus.groovy.grails.web.pages.GroovyPage\n" +
"import org.codehaus.groovy.grails.web.taglib.*\n" +
"\n" +
"class myTest extends GroovyPage {\n" +
... | public void testParseGTagsWithNamespaces() throws Exception {
String expected =
"import org.codehaus.groovy.grails.web.pages.GroovyPage\n" +
"import org.codehaus.groovy.grails.web.taglib.*\n" +
"\n" +
"class myTest extends GroovyPage {\n" +
... |
diff --git a/src/anonpds/TaskMistress/TaskMistress.java b/src/anonpds/TaskMistress/TaskMistress.java
index 8d244d7..f129426 100644
--- a/src/anonpds/TaskMistress/TaskMistress.java
+++ b/src/anonpds/TaskMistress/TaskMistress.java
@@ -1,248 +1,248 @@
/* TaskMistress.java - Part of Task Mistress
* Written in 2012 by an... | true | true | public static void main(String[] args) {
/* set native look and feel if possible */
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
JOptionPane.showMessageDialog(null,
"Could not set native look and feel; using the default.... | public static void main(String[] args) {
/* set native look and feel if possible */
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
JOptionPane.showMessageDialog(null,
"Could not set native look and feel; using the default.... |
diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java b/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java
index b4672bbb5..5c7ff971f 100644
--- a/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java
+++ b/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java
@@ -1,138 +1,13... | false | true | public static String byteArrayToHex(byte[] array, int length, long arrayOffset) {
if (array == null) {
return "";
}
else {
StringBuilder outputStringBuilder = new StringBuilder();
// loop through the file in 16-byte increments
fo... | public static String byteArrayToHex(byte[] array, int length, long arrayOffset) {
if (array == null) {
return "";
}
else {
StringBuilder outputStringBuilder = new StringBuilder();
// loop through the file in 16-byte increments
fo... |
diff --git a/component/src/main/java/com/celements/photo/service/ImageService.java b/component/src/main/java/com/celements/photo/service/ImageService.java
index 73f2c00..fcec60f 100644
--- a/component/src/main/java/com/celements/photo/service/ImageService.java
+++ b/component/src/main/java/com/celements/photo/service/I... | true | true | public boolean addSlideFromTemplate(DocumentReference galleryDocRef,
String slideBaseName, String attFullName) {
try {
DocumentReference slideTemplateRef = getImageSlideTemplateRef();
String gallerySpaceName = getPhotoAlbumSpaceRef(galleryDocRef).getName();
DocumentReference newSlideDocRef... | public boolean addSlideFromTemplate(DocumentReference galleryDocRef,
String slideBaseName, String attFullName) {
try {
DocumentReference slideTemplateRef = getImageSlideTemplateRef();
String gallerySpaceName = getPhotoAlbumSpaceRef(galleryDocRef).getName();
DocumentReference newSlideDocRef... |
diff --git a/core/sail/nativerdf/src/main/java/org/openrdf/sail/nativerdf/config/NativeStoreFactory.java b/core/sail/nativerdf/src/main/java/org/openrdf/sail/nativerdf/config/NativeStoreFactory.java
index 2f3ab4026..c1518bc1b 100644
--- a/core/sail/nativerdf/src/main/java/org/openrdf/sail/nativerdf/config/NativeStoreFa... | true | true | public Sail getSail(SailImplConfig config)
throws SailConfigException
{
if (!SAIL_TYPE.equals(config.getType())) {
throw new SailConfigException("Invalid Sail type: " + config.getType());
}
NativeStore nativeStore = new NativeStore();
if (config instanceof NativeStoreConfig) {
NativeStoreConfig nati... | public Sail getSail(SailImplConfig config)
throws SailConfigException
{
if (!SAIL_TYPE.equals(config.getType())) {
throw new SailConfigException("Invalid Sail type: " + config.getType());
}
NativeStore nativeStore = new NativeStore();
if (config instanceof NativeStoreConfig) {
NativeStoreConfig nati... |
diff --git a/Paintroid/Paintroid/src/at/tugraz/ist/paintroid/FileIO.java b/Paintroid/Paintroid/src/at/tugraz/ist/paintroid/FileIO.java
index 9e6141af..62533ed5 100644
--- a/Paintroid/Paintroid/src/at/tugraz/ist/paintroid/FileIO.java
+++ b/Paintroid/Paintroid/src/at/tugraz/ist/paintroid/FileIO.java
@@ -1,177 +1,179 @@
... | true | true | public Uri saveBitmapToSDCard(ContentResolver cr, String savename, Bitmap bitmap){
// checking whether media (sdcard) is available
boolean mExternalStorageAvailable = false;
boolean mExternalStorageWriteable = false;
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.e... | public Uri saveBitmapToSDCard(ContentResolver cr, String savename, Bitmap bitmap){
// checking whether media (sdcard) is available
boolean mExternalStorageAvailable = false;
boolean mExternalStorageWriteable = false;
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.e... |
diff --git a/NearMeServer/src/com/nearme/NearbyPoiServlet.java b/NearMeServer/src/com/nearme/NearbyPoiServlet.java
index be9885e..f8e9373 100644
--- a/NearMeServer/src/com/nearme/NearbyPoiServlet.java
+++ b/NearMeServer/src/com/nearme/NearbyPoiServlet.java
@@ -1,71 +1,71 @@
package com.nearme;
import java.io.IOExce... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
res.setContentType("application/json");
PoiQuery pq = new PoiQuery(req.getPathInfo());
try {
PoiFinder pf = new DatabasePoiFinder(datasource);
UserDAO uf = new UserDAOImpl(datasource);
/* Get a... | protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
res.setContentType("application/json");
PoiQuery pq = new PoiQuery(req.getPathInfo());
try {
PoiFinder pf = new DatabasePoiFinder(datasource);
UserDAO uf = new UserDAOImpl(datasource);
/* Get a... |
diff --git a/src/com/ph/tymyreader/TymyListActivity.java b/src/com/ph/tymyreader/TymyListActivity.java
index 9d1b536..33c6a73 100644
--- a/src/com/ph/tymyreader/TymyListActivity.java
+++ b/src/com/ph/tymyreader/TymyListActivity.java
@@ -1,372 +1,372 @@
package com.ph.tymyreader;
import java.util.ArrayList;
import ja... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tymy_list);
app = (TymyReader) getApplication();
tlu = new TymyListUtil();
TymyListActivity oldState = (TymyListActivity) getLastNonConfigurationInstance();
if (oldState == null) {
// acti... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tymy_list);
app = (TymyReader) getApplication();
tlu = new TymyListUtil();
pb = (ProgressBar) findViewById(R.id.progress_bar);
TymyListActivity oldState = (TymyListActivity) getLastNonConfigu... |
diff --git a/src/ru/krikun/s2e/Partition.java b/src/ru/krikun/s2e/Partition.java
index 5554b8a..9f44b66 100644
--- a/src/ru/krikun/s2e/Partition.java
+++ b/src/ru/krikun/s2e/Partition.java
@@ -1,96 +1,99 @@
/*
* Copyright (C) 2012 OlegKrikun
*
* Licensed under the Apache License, Version 2.0 (the "License");
*... | true | true | private void loadOverShell() {
List<String> output = App.getShell().run("busybox df " + path);
if (output != null) {
String[] array = output.get(1).split("\\s+");
if (array.length == 6) {
Log.e(App.TAG, "0 = " + array[0] + "; 1 = " + array[1] + "; 2 = " + arr... | private void loadOverShell() {
List<String> output = App.getShell().run("busybox df " + path);
if (output != null) {
String[] array = output.get(1).split("\\s+");
if (array.length == 6) {
try {
// 1 - Size; 2 - Used; 3 - Free
... |
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/setup/FirstAdministratorFormAction.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/setup/FirstAdministratorFormAction.java
index 66d62b23d..65b638af3 100644
--- a/src/main/java/edu/northwestern/bioinformatics/studycalend... | true | true | protected Object createFormObject(RequestContext context) throws Exception {
CreateUserCommand command = new CreateUserCommand(null, siteDao, userService, userDao, userRoleService);
command.setUserActiveFlag(true);
// set sys admin role for all sites, just to be safe (there should only be on... | protected Object createFormObject(RequestContext context) throws Exception {
CreateUserCommand command = new CreateUserCommand(null, siteDao, userService, userDao, userRoleService);
command.setUserActiveFlag(true);
command.setPasswordModified(true);
// set sys admin role for all site... |
diff --git a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/logmanipulators/GZIPManipulator.java b/cruisecontrol/main/src/net/sourceforge/cruisecontrol/logmanipulators/GZIPManipulator.java
index 5ba6d4f8..15aa39a1 100644
--- a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/logmanipulators/GZIPManipulator.ja... | false | true | private void gzipFile(File logfile, String logDir) {
OutputStream out = null;
InputStream in = null;
try {
String fileName = logfile.getName() + ".gz";
out = new GZIPOutputStream(
new FileOutputStream(new File(logDir, fileName)));
in =... | private void gzipFile(File logfile, String logDir) {
OutputStream out = null;
InputStream in = null;
try {
String fileName = logfile.getName() + ".gz";
out = new GZIPOutputStream(
new FileOutputStream(new File(logDir, fileName)));
in =... |
diff --git a/src/net/sf/freecol/client/gui/panel/DropListener.java b/src/net/sf/freecol/client/gui/panel/DropListener.java
index d2a5ad654..9ad2d58a3 100644
--- a/src/net/sf/freecol/client/gui/panel/DropListener.java
+++ b/src/net/sf/freecol/client/gui/panel/DropListener.java
@@ -1,43 +1,43 @@
package net.sf.freecol... | true | true | public void mouseReleased(MouseEvent e) {
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable clipData = clipboard.getContents(clipboard);
if (clipData != null) {
if (clipData.isDataFlavorSupported(DataFlavor.imageFlavor)) {
JCompo... | public void mouseReleased(MouseEvent e) {
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable clipData = clipboard.getContents(clipboard);
if (clipData != null) {
if (clipData.isDataFlavorSupported(DefaultTransferHandler.flavor)) {
... |
diff --git a/LinphoneCoreFactoryImpl.java b/LinphoneCoreFactoryImpl.java
index 3dedd06d..29f1c58c 100644
--- a/LinphoneCoreFactoryImpl.java
+++ b/LinphoneCoreFactoryImpl.java
@@ -1,162 +1,164 @@
/*
LinphoneCoreFactoryImpl.java
Copyright (C) 2010 Belledonne Communications, Grenoble, France
This program is free so... | false | true | public static boolean hasNeonInCpuFeatures()
{
ProcessBuilder cmd;
boolean result = false;
try {
String[] args = {"/system/bin/cat", "/proc/cpuinfo"};
cmd = new ProcessBuilder(args);
Process process = cmd.start();
InputStream in = process.getInputStream();
byte[] re = new byte[1024];
... | public static boolean hasNeonInCpuFeatures()
{
ProcessBuilder cmd;
boolean result = false;
try {
String[] args = {"/system/bin/cat", "/proc/cpuinfo"};
cmd = new ProcessBuilder(args);
Process process = cmd.start();
InputStream in = process.getInputStream();
byte[] re = new byte[1024];
... |
diff --git a/src/de/earthdawn/ECEWorker.java b/src/de/earthdawn/ECEWorker.java
index 1af19d7..65f4e8f 100644
--- a/src/de/earthdawn/ECEWorker.java
+++ b/src/de/earthdawn/ECEWorker.java
@@ -1,789 +1,791 @@
package de.earthdawn;
/******************************************************************************\
Copyright... | false | true | public EDCHARACTER verarbeiteCharakter(EDCHARACTER charakter) {
CharacterContainer character = new CharacterContainer(charakter);
// Orignal berechnete LP sichern
CALCULATEDLEGENDPOINTSType oldcalculatedLP = character.getCopyOfCalculatedLegendpoints();
// Berechnete LP erstmal zurücksetzen
calculatedLP = ch... | public EDCHARACTER verarbeiteCharakter(EDCHARACTER charakter) {
CharacterContainer character = new CharacterContainer(charakter);
// Orignal berechnete LP sichern
CALCULATEDLEGENDPOINTSType oldcalculatedLP = character.getCopyOfCalculatedLegendpoints();
// Berechnete LP erstmal zurücksetzen
calculatedLP = ch... |
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/CopyContextToAction.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/CopyContextToAction.java
index 18042f9e1..95e9c7e46 100644
--- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/intern... | true | true | public void run(IAction action) {
ITask sourceTask = null;
if (selection instanceof StructuredSelection) {
Object selectedObject = ((StructuredSelection) selection).getFirstElement();
if (selectedObject instanceof ITask) {
sourceTask = (ITask) selectedObject;
} else if (selectedObject instanceof Abstr... | public void run(IAction action) {
ITask sourceTask = null;
if (selection instanceof StructuredSelection) {
Object selectedObject = ((StructuredSelection) selection).getFirstElement();
if (selectedObject instanceof ITask) {
sourceTask = (ITask) selectedObject;
} else if (selectedObject instanceof Abstr... |
diff --git a/wms/src/main/java/org/geoserver/wms/map/PNGMapResponse.java b/wms/src/main/java/org/geoserver/wms/map/PNGMapResponse.java
index bf3d9eb49..0bab53b2e 100644
--- a/wms/src/main/java/org/geoserver/wms/map/PNGMapResponse.java
+++ b/wms/src/main/java/org/geoserver/wms/map/PNGMapResponse.java
@@ -1,101 +1,101 @@... | true | true | public void formatImageOutputStream(RenderedImage image, OutputStream outStream,
WMSMapContext mapContext) throws ServiceException, IOException {
// /////////////////////////////////////////////////////////////////
//
// Reformatting this image for png
//
// /////... | public void formatImageOutputStream(RenderedImage image, OutputStream outStream,
WMSMapContext mapContext) throws ServiceException, IOException {
// /////////////////////////////////////////////////////////////////
//
// Reformatting this image for png
//
// /////... |
diff --git a/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMap.java b/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMap.java
index 00d5aedaa..2bd5a400f 100644
--- a/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMap.java
+++ b/OldSoar/trunk/visualsoar/Source/edu/u... | true | true | public DataMap(SoarWorkingMemoryModel swmm, SoarIdentifierVertex siv,String title)
{
super(title,true,true,true,true);
setType(DATAMAP);
setBounds(0,0,250,100);
id = siv.getValue();
// Retile the internal frames after closing a window
setDefaultCloseOperation(WindowConstants.D... | public DataMap(SoarWorkingMemoryModel swmm, SoarIdentifierVertex siv,String title)
{
super("Datamap " + title,true,true,true,true);
setType(DATAMAP);
setBounds(0,0,250,100);
id = siv.getValue();
// Retile the internal frames after closing a window
setDefaultCloseOperation(Wind... |
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index 1ebb6389..bc6b27ae 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essenti... | true | true | protected void sendLocalChat(final AsyncPlayerChatEvent event, final ChatStore chatStore)
{
event.setCancelled(true);
final User sender = chatStore.getUser();
logger.info(_("localFormat", sender.getName(), event.getMessage()));
final Location loc = sender.getLocation();
final World world = loc.getWorld();
... | protected void sendLocalChat(final AsyncPlayerChatEvent event, final ChatStore chatStore)
{
event.setCancelled(true);
final User sender = chatStore.getUser();
logger.info(_("localFormat", sender.getName(), event.getMessage()));
final Location loc = sender.getLocation();
final World world = loc.getWorld();
... |
diff --git a/src/info/ata4/unity/cli/DisUnityCli.java b/src/info/ata4/unity/cli/DisUnityCli.java
index b9f1eb1..7d415db 100644
--- a/src/info/ata4/unity/cli/DisUnityCli.java
+++ b/src/info/ata4/unity/cli/DisUnityCli.java
@@ -1,145 +1,145 @@
/*
** 2013 July 05
**
** The author disclaims copyright to this source c... | true | true | public void run() {
// convert unnamed argument list to deque
Deque<String> args = new ArrayDeque<>(remaining);
DisUnityOptions ops = new DisUnityOptions();
// set command
ops.setCommand(args.pollFirst());
// add files
for (String pa... | public void run() {
// convert unnamed argument list to deque
Deque<String> args = new ArrayDeque<>(remaining);
DisUnityOptions ops = new DisUnityOptions();
// set command
ops.setCommand(args.pollFirst());
// add files
for (String pa... |
diff --git a/src/com/android/dialer/PhoneCallDetailsHelper.java b/src/com/android/dialer/PhoneCallDetailsHelper.java
index f4a6538..44450df 100644
--- a/src/com/android/dialer/PhoneCallDetailsHelper.java
+++ b/src/com/android/dialer/PhoneCallDetailsHelper.java
@@ -1,242 +1,245 @@
/*
* Copyright (C) 2011 The Android ... | true | true | public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details,
boolean isHighlighted) {
// Display up to a given number of icons.
views.callTypeIcons.clear();
int count = details.callTypes.length;
for (int index = 0; index < count && index < MAX_CA... | public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details,
boolean isHighlighted) {
// Display up to a given number of icons.
views.callTypeIcons.clear();
int count = details.callTypes.length;
for (int index = 0; index < count && index < MAX_CA... |
diff --git a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
index 67c92c88..15bd28fc 100644
--- a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
+++ b/src/pl... | false | true | private NutchDocument addType(NutchDocument doc, WebPage page, String url) {
MimeType mimeType = null;
Utf8 contentType = page.getFromHeaders(new Utf8(HttpHeaders.CONTENT_TYPE));
if (contentType == null) {
// Note by Jerome Charron on 20050415:
// Content Type not solved by a previous plugin
... | private NutchDocument addType(NutchDocument doc, WebPage page, String url) {
MimeType mimeType = null;
Utf8 contentType = page.getFromHeaders(new Utf8(HttpHeaders.CONTENT_TYPE));
if (contentType == null) {
// Note by Jerome Charron on 20050415:
// Content Type not solved by a previous plugin
... |
diff --git a/src/com/fsck/k9/Account.java b/src/com/fsck/k9/Account.java
index 5038307..c43c2d3 100644
--- a/src/com/fsck/k9/Account.java
+++ b/src/com/fsck/k9/Account.java
@@ -1,1275 +1,1279 @@
package com.fsck.k9;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Con... | true | true | private synchronized void loadAccount(Preferences preferences)
{
mStoreUri = Utility.base64Decode(preferences.getPreferences().getString(mUuid
+ ".storeUri", null));
mLocalStoreUri = preferences.getPreferences().getString(mUuid + ".localStoreUri", null);
... | private synchronized void loadAccount(Preferences preferences)
{
mStoreUri = Utility.base64Decode(preferences.getPreferences().getString(mUuid
+ ".storeUri", null));
mLocalStoreUri = preferences.getPreferences().getString(mUuid + ".localStoreUri", null);
... |
diff --git a/bii/lexergenerator/src/main/java/regextodfaconverter/Regex.java b/bii/lexergenerator/src/main/java/regextodfaconverter/Regex.java
index de06976c..75ad989f 100644
--- a/bii/lexergenerator/src/main/java/regextodfaconverter/Regex.java
+++ b/bii/lexergenerator/src/main/java/regextodfaconverter/Regex.java
@@ -1... | true | true | public static String addMissingParenthesis(String regex)
throws RegexInvalidException {
if (regex.length() == 0) {
return "";
}
// Vorbereitungen treffen:
// Sicherstellen, das der angegebene reguläre Ausdruck nur noch
// Grundoperationen enthält.
if (!containsOnlyBasicOperations(regex)) {
throw ... | public static String addMissingParenthesis(String regex)
throws RegexInvalidException {
if (regex.length() == 0) {
return "";
}
// Vorbereitungen treffen:
// Sicherstellen, das der angegebene reguläre Ausdruck nur noch
// Grundoperationen enthält.
if (!containsOnlyBasicOperations(regex)) {
throw ... |
diff --git a/gdx/src/com/badlogic/gdx/graphics/g2d/tiled/TiledLoader.java b/gdx/src/com/badlogic/gdx/graphics/g2d/tiled/TiledLoader.java
index 945d2f2c2..98091d956 100644
--- a/gdx/src/com/badlogic/gdx/graphics/g2d/tiled/TiledLoader.java
+++ b/gdx/src/com/badlogic/gdx/graphics/g2d/tiled/TiledLoader.java
@@ -1,450 +1,45... | true | true | public static TiledMap createMap (FileHandle tmxFile) {
final TiledMap map;
map = new TiledMap();
map.tmxFile = tmxFile;
try {
new XmlReader() {
Stack<String> currBranch = new Stack<String>();
boolean awaitingData = false;
TiledLayer currLayer;
int currLayerWidth = 0, currLayerHeight = ... | public static TiledMap createMap (FileHandle tmxFile) {
final TiledMap map;
map = new TiledMap();
map.tmxFile = tmxFile;
try {
new XmlReader() {
Stack<String> currBranch = new Stack<String>();
boolean awaitingData = false;
TiledLayer currLayer;
int currLayerWidth = 0, currLayerHeight = ... |
diff --git a/jsf-ri/src/com/sun/faces/context/flash/ELFlash.java b/jsf-ri/src/com/sun/faces/context/flash/ELFlash.java
index 10f3bf8fd..30d424153 100644
--- a/jsf-ri/src/com/sun/faces/context/flash/ELFlash.java
+++ b/jsf-ri/src/com/sun/faces/context/flash/ELFlash.java
@@ -1,889 +1,889 @@
/*
* $Id: ELFlash.java,v 1... | true | true | void saveAllMessages(FacesContext context) {
ExternalContext extContext = context.getExternalContext();
Map<String, Object> requestMap = extContext.getRequestMap();
Boolean thisRequestIsGetAfterRedirectAfterPost;
if (null != (thisRequestIsGetAfterRedirectAfterPost = (Boolean)
... | void saveAllMessages(FacesContext context) {
ExternalContext extContext = context.getExternalContext();
Map<String, Object> requestMap = extContext.getRequestMap();
Boolean thisRequestIsGetAfterRedirectAfterPost;
if (null != (thisRequestIsGetAfterRedirectAfterPost = (Boolean)
... |
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/movie/MoviePosterImageAdapter.java b/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/movie/MoviePosterImageAdapter.java
index 2d7335fa..08e694bd 100644
--- a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/movie/MoviePos... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
View galleryCellView = null;
if (convertView != null) {
galleryCellView = convertView;
galleryCellView.findViewById(R.id.posterInprogressIndicator)
.setVisibility(View.INVISIBLE);
galleryCellView.findViewById(R.id.posterWatchedI... | public View getView(int position, View convertView, ViewGroup parent) {
if (position > posterList.size()) {
position = posterList.size() - 1;
}
if (position < 0) {
position = 0;
}
View galleryCellView = null;
if (convertView != null) {
galleryCellView = convertView;
galleryCellView.findViewByI... |
diff --git a/src/com/gtalkstatus/android/GTalkStatusUpdater.java b/src/com/gtalkstatus/android/GTalkStatusUpdater.java
index feb5283..d47f5cc 100644
--- a/src/com/gtalkstatus/android/GTalkStatusUpdater.java
+++ b/src/com/gtalkstatus/android/GTalkStatusUpdater.java
@@ -1,221 +1,221 @@
/*********************************... | true | true | public void onStart(Intent aIntent, int aStartId) {
Log.d(LOG_NAME, aIntent.getAction());
if (aIntent.getAction().equals("com.android.music.playbackcomplete")) {
// The song has ended, stop the service
stopSelf();
} else if (aIntent.getAction().equals("com.android.music.p... | public void onStart(Intent aIntent, int aStartId) {
Log.d(LOG_NAME, aIntent.getAction());
if (aIntent.getAction().equals("com.android.music.playbackcomplete")) {
// The song has ended, stop the service
stopSelf();
} else if (aIntent.getAction().equals("com.android.music.p... |
diff --git a/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/console/CreateConsoleConfigurationTest.java b/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/console/CreateConsoleConfigurationTest.java
index a10d803bb..933d59eba 100644
--- a/tests/org.jboss.too... | false | true | private void createConfigurationFile() {
ConfigurationFile.create(new String[]{prjName,"src"},"hibernate.cfg.xml",false);
}
private void createHibernateConsole() {
open.viewOpen(ActionItem.View.GeneralProjectExplorer.LABEL);
eclipse.createNew(EntityType.HIBERNATE_CONSOLE);
// Hibernate Console Dialog h... | private void createConfigurationFile() {
ConfigurationFile.create(new String[]{prjName,"src"},"hibernate.cfg.xml",false);
}
private void createHibernateConsole() {
open.viewOpen(ActionItem.View.GeneralProjectExplorer.LABEL);
eclipse.createNew(EntityType.HIBERNATE_CONSOLE);
// Hibernate Console Dialog h... |
diff --git a/contact/src/com/chethan/contact/PeopleFragment.java b/contact/src/com/chethan/contact/PeopleFragment.java
index 6db6ce2..1df7045 100644
--- a/contact/src/com/chethan/contact/PeopleFragment.java
+++ b/contact/src/com/chethan/contact/PeopleFragment.java
@@ -1,155 +1,155 @@
package com.chethan.contact;
im... | false | true | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.people_all, container, false);
final View singleContact = (View)view.findViewById(R.id.single_contact);
android.widget.LinearLayout.LayoutParams params = new LinearLayou... | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.people_all, container, false);
final View singleContact = (View)view.findViewById(R.id.single_contact);
android.widget.LinearLayout.LayoutParams params = new LinearLayou... |
diff --git a/src/credentials/idemix/IdemixCredentials.java b/src/credentials/idemix/IdemixCredentials.java
index 77af760..17e81c5 100644
--- a/src/credentials/idemix/IdemixCredentials.java
+++ b/src/credentials/idemix/IdemixCredentials.java
@@ -1,331 +1,332 @@
/**
* IdemixCredentials.java
*
* This program is fr... | true | true | public void issue(IssueSpecification specification, PrivateKey sk,
Attributes values) throws CredentialsException {
IdemixIssueSpecification spec = castIssueSpecification(specification);
IdemixPrivateKey isk = castIdemixPrivateKey(sk);
setupService(spec);
// Initialise the issuer
Issuer issuer = new Iss... | public void issue(IssueSpecification specification, PrivateKey sk,
Attributes values) throws CredentialsException {
IdemixIssueSpecification spec = castIssueSpecification(specification);
IdemixPrivateKey isk = castIdemixPrivateKey(sk);
setupService(spec);
// Initialise the issuer
Issuer issuer = new Iss... |
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/StatementTransformer.java b/src/com/redhat/ceylon/compiler/java/codegen/StatementTransformer.java
index 1ef34cce9..fb0e835d3 100755
--- a/src/com/redhat/ceylon/compiler/java/codegen/StatementTransformer.java
+++ b/src/com/redhat/ceylon/compiler/java/codegen/State... | false | true | private List<JCStatement> transformCondition(Tree.Condition cond, int tag, Tree.Block thenPart, Tree.Block elsePart) {
JCExpression test;
JCVariableDecl decl = null;
JCBlock thenBlock = null;
JCBlock elseBlock = null;
if ((cond instanceof Tree.IsCondition) || (cond instanceof... | private List<JCStatement> transformCondition(Tree.Condition cond, int tag, Tree.Block thenPart, Tree.Block elsePart) {
JCExpression test;
JCVariableDecl decl = null;
JCBlock thenBlock = null;
JCBlock elseBlock = null;
if ((cond instanceof Tree.IsCondition) || (cond instanceof... |
diff --git a/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/AbstractViewerTag.java b/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/AbstractViewerTag.java
index 5a3deacf..5705fca3 100644
--- a/plugins/org.eclipse.birt.report.viewer/... | false | true | protected void __handleIFrame( String src, String target ) throws Exception
{
JspWriter writer = pageContext.getOut( );
// prepare parameters
String paramContainerId = "params_" + viewer.getId( ); //$NON-NLS-1$
writer
.write( "<div id=\"" + paramContainerId + "\" style='display:none'>\n" ); //$NON-NLS-1$... | protected void __handleIFrame( String src, String target ) throws Exception
{
JspWriter writer = pageContext.getOut( );
// prepare parameters
String paramContainerId = "params_" + viewer.getId( ); //$NON-NLS-1$
writer
.write( "<div id=\"" + paramContainerId + "\" style='display:none'>\n" ); //$NON-NLS-1$... |
diff --git a/war/src/launcher/java/JNLPMain.java b/war/src/launcher/java/JNLPMain.java
index d25529bd2..44358a192 100644
--- a/war/src/launcher/java/JNLPMain.java
+++ b/war/src/launcher/java/JNLPMain.java
@@ -1,36 +1,39 @@
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
* La... | true | true | public static void main(String[] args) throws Exception {
// don't know if this is really necessary, but jnlp-agent benefited from this,
// so I'm doing it here, too.
System.setSecurityManager(null);
// launch GUI to display output
setUILookAndFeel();
new MainDialog(... | public static void main(String[] args) throws Exception {
// don't know if this is really necessary, but jnlp-agent benefited from this,
// so I'm doing it here, too.
System.setSecurityManager(null);
boolean headlessMode = Boolean.getBoolean("hudson.master.headless");
if (!h... |
diff --git a/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java b/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java
index 3741e0c..16b4acf 100644
--- a/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java
+++ b/src/net/loadingchunks/plugins/Leeroy/Types/BasicNPC.java
@@ -1,174 +1,174 @@
package net.lo... | false | true | public Location getForward(Location l)
{
int direction = MathHelper.floor((double)((l.getYaw() * 4F) / 360F) + 0.5D) & 3;
switch(direction)
{
case 0: // Direction 0 = +Z
{
Location ret = new Location(l.getWorld(), l.getX(), l.getY(), (l.getZ()+1));
return ret;
}
case 1: // Direction 1... | public Location getForward(Location l)
{
int direction = MathHelper.floor((double)((l.getYaw() * 4F) / 360F) + 0.5D) & 3;
switch(direction)
{
case 0: // Direction 0 = +Z
{
Location ret = new Location(l.getWorld(), l.getX(), (l.getY()+1.62), (l.getZ()+1));
return ret;
}
case 1: // Dire... |
diff --git a/errai-bus/src/main/java/org/jboss/errai/bus/server/io/MessageFactory.java b/errai-bus/src/main/java/org/jboss/errai/bus/server/io/MessageFactory.java
index 68ff5f91a..2fc50dd05 100644
--- a/errai-bus/src/main/java/org/jboss/errai/bus/server/io/MessageFactory.java
+++ b/errai-bus/src/main/java/org/jboss/err... | true | true | public static List<Message> createCommandMessage(QueueSession session, HttpServletRequest request) throws IOException {
EJValue value = JSONStreamDecoder.decode(request.getInputStream());
if (value.isObject() != null) {
return Collections.singletonList(from(getParts(value), session, request));
}
... | public static List<Message> createCommandMessage(QueueSession session, HttpServletRequest request) throws IOException {
EJValue value = JSONStreamDecoder.decode(request.getInputStream());
if (value.isObject() != null) {
return Collections.singletonList(from(getParts(value), session, request));
}
... |
diff --git a/search/src/java/cz/incad/Kramerius/exts/menu/main/guice/MainMenuConfiguration.java b/search/src/java/cz/incad/Kramerius/exts/menu/main/guice/MainMenuConfiguration.java
index 73c0c648d..281ae6be3 100644
--- a/search/src/java/cz/incad/Kramerius/exts/menu/main/guice/MainMenuConfiguration.java
+++ b/search/src... | true | true | protected void configure() {
// casti menu
Multibinder<MainMenuPart> parts
= Multibinder.newSetBinder(binder(), MainMenuPart.class);
parts.addBinding().to(PublicMenuPartImpl.class);
parts.addBinding().to(AdminMenuPartImpl.class);
// polozky publ... | protected void configure() {
// casti menu
Multibinder<MainMenuPart> parts
= Multibinder.newSetBinder(binder(), MainMenuPart.class);
parts.addBinding().to(PublicMenuPartImpl.class);
parts.addBinding().to(AdminMenuPartImpl.class);
// polozky publ... |
diff --git a/src/org/geometerplus/fbreader/network/BookReference.java b/src/org/geometerplus/fbreader/network/BookReference.java
index d403e086..84954c14 100644
--- a/src/org/geometerplus/fbreader/network/BookReference.java
+++ b/src/org/geometerplus/fbreader/network/BookReference.java
@@ -1,172 +1,172 @@
/*
* Copyr... | true | true | public static String makeBookFileName(String url, int format, int resolvedReferenceType) {
URI uri;
try {
uri = new URI(url);
} catch (java.net.URISyntaxException ex) {
return null;
}
String host = uri.getHost();
StringBuilder path = new StringBuilder(host);
if (host.startsWith("www.")) {
path... | public static String makeBookFileName(String url, int format, int resolvedReferenceType) {
URI uri;
try {
uri = new URI(url);
} catch (Throwable ex) {
return null;
}
String host = uri.getHost();
StringBuilder path = new StringBuilder(host);
if (host.startsWith("www.")) {
path.delete(0, 4);
}... |
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java
index d58c7a1b..8be3c5c8 100644
--- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java
+++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand... | true | true | public void createCluster(
@CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name,
@CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type,
@CliOption(key = { "distro" }, mandatory = false, help = ... | public void createCluster(
@CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name,
@CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type,
@CliOption(key = { "distro" }, mandatory = false, help = ... |
diff --git a/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java b/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java
index b1d15a0..da231f6 100644
--- a/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java
+++ b/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java
@@ -1,52 +1... | true | true | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String query = request.getParameter("query");
System.out.println("Getting indexer");
... | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String query = request.getParameter("query");
System.out.println("Getting indexer");
... |
diff --git a/src/org/mediawiki/importer/ListFilter.java b/src/org/mediawiki/importer/ListFilter.java
index 6478cfd..ff4d53c 100644
--- a/src/org/mediawiki/importer/ListFilter.java
+++ b/src/org/mediawiki/importer/ListFilter.java
@@ -1,61 +1,62 @@
/*
* MediaWiki import/export processing tools
* Copyright 2005 by Br... | true | true | public ListFilter(DumpWriter sink, String sourceFileName) throws IOException {
super(sink);
list = new HashMap();
BufferedReader input = new BufferedReader(new InputStreamReader(
new FileInputStream(sourceFileName), "utf-8"));
String line = input.readLine();
while (line != null) {
if (!line.startsWith(... | public ListFilter(DumpWriter sink, String sourceFileName) throws IOException {
super(sink);
list = new HashMap();
BufferedReader input = new BufferedReader(new InputStreamReader(
new FileInputStream(sourceFileName), "utf-8"));
String line = input.readLine();
while (line != null) {
if (!line.startsWith(... |
diff --git a/src/org/openstreetmap/fma/jtiledownloader/views/main/slippymap/SlippyMapChooserWindow.java b/src/org/openstreetmap/fma/jtiledownloader/views/main/slippymap/SlippyMapChooserWindow.java
index e19ccc5..514d3d2 100644
--- a/src/org/openstreetmap/fma/jtiledownloader/views/main/slippymap/SlippyMapChooserWindow.j... | true | true | public SlippyMapChooserWindow(BBoxLatLonPanel bboxlatlonpanel, TileProviderIf tileProvider, String tileDirectory)
{
super("Slippy Map Chooser");
setSize(400, 400);
map = new SlippyMapChooser(bboxlatlonpanel, tileProvider, tileDirectory);
setLayout(new BorderLayout());
set... | public SlippyMapChooserWindow(BBoxLatLonPanel bboxlatlonpanel, TileProviderIf tileProvider, String tileDirectory)
{
super("Slippy Map Chooser");
setSize(400, 400);
map = new SlippyMapChooser(bboxlatlonpanel, tileDirectory, tileProvider);
setLayout(new BorderLayout());
set... |
diff --git a/src/org/apache/xerces/validators/schema/TraverseSchema.java b/src/org/apache/xerces/validators/schema/TraverseSchema.java
index 0734179cb..14fb8d048 100644
--- a/src/org/apache/xerces/validators/schema/TraverseSchema.java
+++ b/src/org/apache/xerces/validators/schema/TraverseSchema.java
@@ -1,8620 +1,8620 ... | false | true | private QName traverseElementDecl(Element elementDecl) throws Exception {
// General Attribute Checking
int scope = isTopLevel(elementDecl)?
GeneralAttrCheck.ELE_CONTEXT_GLOBAL:
GeneralAttrCheck.ELE_CONTEXT_LOCAL;
Hashtable attrValues = fGeneralAttrCh... | private QName traverseElementDecl(Element elementDecl) throws Exception {
// General Attribute Checking
int scope = isTopLevel(elementDecl)?
GeneralAttrCheck.ELE_CONTEXT_GLOBAL:
GeneralAttrCheck.ELE_CONTEXT_LOCAL;
Hashtable attrValues = fGeneralAttrCh... |
diff --git a/sslr-impl/src/main/java/com/sonar/sslr/impl/channel/RegexpChannel.java b/sslr-impl/src/main/java/com/sonar/sslr/impl/channel/RegexpChannel.java
index 86da0244..18bf8745 100644
--- a/sslr-impl/src/main/java/com/sonar/sslr/impl/channel/RegexpChannel.java
+++ b/sslr-impl/src/main/java/com/sonar/sslr/impl/chan... | true | true | public boolean consume(CodeReader code, LexerOutput output) {
try {
if (code.popTo(matcher, tmpBuilder) > 0) {
String value = tmpBuilder.toString();
if (type == GenericTokenType.COMMENT) {
output.addCommentToken(new Token(GenericTokenType.COMMENT, value, code.getPreviousCursor().ge... | public boolean consume(CodeReader code, LexerOutput output) {
try {
if (code.popTo(matcher, tmpBuilder) > 0) {
String value = tmpBuilder.toString();
if (type == GenericTokenType.COMMENT) {
output.addCommentToken(new Token(GenericTokenType.COMMENT, value, code.getPreviousCursor().ge... |
diff --git a/core/src/test/java/org/tautua/markdownpapers/MarkdownPapersTest.java b/core/src/test/java/org/tautua/markdownpapers/MarkdownPapersTest.java
index 93ff71d..8aa398c 100644
--- a/core/src/test/java/org/tautua/markdownpapers/MarkdownPapersTest.java
+++ b/core/src/test/java/org/tautua/markdownpapers/MarkdownPap... | true | true | public static List<Object[]> data() throws FileNotFoundException {
return Arrays.asList(new Object[][]{
{"code"},
{"comments"},
{"emphasis"},
{"headers"},
{"images"},
{"inline"},
{"linebreak"},
... | public static List<Object[]> data() throws FileNotFoundException {
return Arrays.asList(new Object[][]{
{"code"},
{"comments"},
{"codespan"},
{"emphasis"},
{"headers"},
{"images"},
{"inline"},
... |
diff --git a/src/org/jacorb/naming/NameServer.java b/src/org/jacorb/naming/NameServer.java
index 25df66c9b..c5ac24980 100644
--- a/src/org/jacorb/naming/NameServer.java
+++ b/src/org/jacorb/naming/NameServer.java
@@ -1,356 +1,356 @@
package org.jacorb.naming;
/*
* JacORB - a free Java ORB
*
* Copyrig... | true | true | public static void main( String args[] )
{
String port = null;
boolean imr_register = false;
String fileName = null;
try
{
/* get time out value if any */
int time_out = 0;
if( args.length > 6 )
{
usage();
}
int idx = 0;
... | public static void main( String args[] )
{
String port = null;
boolean imr_register = false;
String fileName = null;
try
{
/* get time out value if any */
int time_out = 0;
if( args.length > 6 )
{
usage();
}
int idx = 0;
... |
diff --git a/src/com/ds/avare/utils/BitmapHolder.java b/src/com/ds/avare/utils/BitmapHolder.java
index 0d82a922..ce1ff39d 100644
--- a/src/com/ds/avare/utils/BitmapHolder.java
+++ b/src/com/ds/avare/utils/BitmapHolder.java
@@ -1,283 +1,284 @@
/*
Copyright (c) 2012, Apps4Av Inc. (apps4av.com)
All rights reserved.
... | true | true | public BitmapHolder(String name) {
BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inPreferredConfig = Bitmap.Config.RGB_565;
opt.inSampleSize = 1;
if(!(new File(name).exists())) {
mWidth = 0;
mHeight = 0;
mName = null; ... | public BitmapHolder(String name) {
BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inPreferredConfig = Bitmap.Config.RGB_565;
opt.inSampleSize = 1;
if(!(new File(name).exists())) {
mWidth = 0;
mHeight = 0;
mName = null;
... |
diff --git a/src/be/ibridge/kettle/job/entry/trans/JobEntryTrans.java b/src/be/ibridge/kettle/job/entry/trans/JobEntryTrans.java
index 992f881d..1d7fbb2b 100644
--- a/src/be/ibridge/kettle/job/entry/trans/JobEntryTrans.java
+++ b/src/be/ibridge/kettle/job/entry/trans/JobEntryTrans.java
@@ -1,570 +1,570 @@
/**********... | false | true | public Result execute(Result result, int nr, Repository rep, Job parentJob) throws KettleException
{
LogWriter log = LogWriter.getInstance();
result.setEntryNr( nr );
LogWriter logwriter = log;
Log4jFileAppender appender = null;
int backupLogLevel = log.getLogLevel();
if (setLogf... | public Result execute(Result result, int nr, Repository rep, Job parentJob) throws KettleException
{
LogWriter log = LogWriter.getInstance();
result.setEntryNr( nr );
LogWriter logwriter = log;
Log4jFileAppender appender = null;
int backupLogLevel = log.getLogLevel();
if (setLogf... |
diff --git a/src/org/geometerplus/android/fbreader/error/BookReadingErrorActivity.java b/src/org/geometerplus/android/fbreader/error/BookReadingErrorActivity.java
index d741453f..2e4ccee0 100644
--- a/src/org/geometerplus/android/fbreader/error/BookReadingErrorActivity.java
+++ b/src/org/geometerplus/android/fbreader/e... | true | true | protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.error_book_reading);
final ZLResource resource = ZLResource.resource("error").getResource("bookReading");
setTitle(resource.getResource("title").getValue());
final TextView textView = (TextView)findViewById(R.id.error_... | protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.error_book_reading);
final ZLResource resource = ZLResource.resource("error").getResource("bookReading");
setTitle(resource.getResource("title").getValue());
final TextView textView = (TextView)findViewById(R.id.error_... |
diff --git a/src/Main/WWJApplet.java b/src/Main/WWJApplet.java
index 9ecb439..620aae7 100644
--- a/src/Main/WWJApplet.java
+++ b/src/Main/WWJApplet.java
@@ -1,1035 +1,1033 @@
package Main;
/*
Copyright (C) 2001, 2009 United States Government
as represented by the Administrator of the
National Aeronautics and Space... | true | true | public void init()
{
Vector<StateVector> vector;
try
{
// Check for initial configuration values
String value = getParameter("InitialLatitude");
if (value != null)
Configuration.setValue(AVKey.INITIAL_LATITUDE, Double.parseDouble(value)... | public void init()
{
Vector<StateVector> vector;
try
{
// Check for initial configuration values
String value = getParameter("InitialLatitude");
if (value != null)
Configuration.setValue(AVKey.INITIAL_LATITUDE, Double.parseDouble(value)... |
diff --git a/src/main/java/com/dumptruckman/chunky/listeners/PlayerEvents.java b/src/main/java/com/dumptruckman/chunky/listeners/PlayerEvents.java
index c5d9191..7a06413 100644
--- a/src/main/java/com/dumptruckman/chunky/listeners/PlayerEvents.java
+++ b/src/main/java/com/dumptruckman/chunky/listeners/PlayerEvents.java... | true | true | public void onPlayerChunkChange(ChunkyPlayer chunkyPlayer, ChunkyChunk toChunk, ChunkyChunk fromChunk) {
String message = "";
if(toChunk==null && fromChunk != null) message += LanguagePath.UNREGISTERED_CHUNK_NAME;
else if(toChunk != null) {
if(fromChunk != null && !fromChunk.getN... | public void onPlayerChunkChange(ChunkyPlayer chunkyPlayer, ChunkyChunk toChunk, ChunkyChunk fromChunk) {
String message = "";
if(toChunk==null && fromChunk != null) message += LanguagePath.UNREGISTERED_CHUNK_NAME;
else if(toChunk != null) {
if(fromChunk != null && !fromChunk.getN... |
diff --git a/java/com/delcyon/capo/datastream/stream_attribute_filter/AbstractFilterInputStream.java b/java/com/delcyon/capo/datastream/stream_attribute_filter/AbstractFilterInputStream.java
index 0d43fde..3f4711a 100644
--- a/java/com/delcyon/capo/datastream/stream_attribute_filter/AbstractFilterInputStream.java
+++ b... | true | true | public int read() throws IOException
{
int bytesRead = read(smallBuffer, 0, 1);
if (bytesRead > 0) //because we are always passing a buffer of length 1, this should never be zero
{
//the bytes come in as signed, so we need to mask them to unsigned so that code using the int read() method always gets ... | public int read() throws IOException
{
int bytesRead = read(smallBuffer, 0, 1);
if (bytesRead > 0) //because we are always passing a buffer of length 1, this should never be zero
{
//the bytes come in as signed, so we need to mask them to unsigned so that code using the int read() method always gets ... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/ResultClass.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/ResultClass.java
index 967b63a4b..7455d66cc 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/ResultClass.jav... | true | true | public void doSave( OutputStream outputStream, Map requestColumnMap )
throws DataException
{
assert outputStream != null;
DataOutputStream dos = new DataOutputStream( outputStream );
Set resultSetNameSet = ResultSetUtil.getRsColumnRequestMap( requestColumnMap );
// If there are refrences on columnNam... | public void doSave( OutputStream outputStream, Map requestColumnMap )
throws DataException
{
assert outputStream != null;
DataOutputStream dos = new DataOutputStream( outputStream );
Set resultSetNameSet = ResultSetUtil.getRsColumnRequestMap( requestColumnMap );
// If there are refrences on columnNam... |
diff --git a/library/src/com/loopj/android/http/JsonHttpResponseHandler.java b/library/src/com/loopj/android/http/JsonHttpResponseHandler.java
index 12516f8..6586eb4 100644
--- a/library/src/com/loopj/android/http/JsonHttpResponseHandler.java
+++ b/library/src/com/loopj/android/http/JsonHttpResponseHandler.java
@@ -1,2... | true | true | protected void handleFailureMessage(Throwable e, String responseBody) {
try {
if (responseBody != null) {
Object jsonResponse = parseResponse(responseBody);
if (jsonResponse instanceof JSONObject) {
onFailure(e, (JSONObject) jsonResponse);
... | protected void handleFailureMessage(Throwable e, String responseBody) {
try {
if (responseBody != null) {
Object jsonResponse = parseResponse(responseBody);
if (jsonResponse instanceof JSONObject) {
onFailure(e, (JSONObject) jsonResponse);
... |
diff --git a/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderWat.java b/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderWat.java
index ed93065..c6c7e13 100644
--- a/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderWat.java
+++ b/src/main/java/net/nexisonline/spade/chunkpro... | false | true | public void generateChunk(World world, int X, int Z, byte[] abyte, Biome[] biomes, double[] temperature)
{
double density[][][] = new double[16][128][16];
for (int x = 0; x < 16; x += 3)
{
for (int y = 0; y < 128; y += 3)
{
for (int z = 0; z < 16; z += 3)
{
double posX = x + X;
double p... | public void generateChunk(World world, int X, int Z, byte[] abyte, Biome[] biomes, double[] temperature)
{
double density[][][] = new double[16][128][16];
for (int x = 0; x < 16; x += 3)
{
for (int y = 0; y < 128; y += 3)
{
for (int z = 0; z < 16; z += 3)
{
double posX = x + X;
double p... |
diff --git a/src/main/java/com/authdb/AuthDB.java b/src/main/java/com/authdb/AuthDB.java
index 8b88c67..5433c40 100644
--- a/src/main/java/com/authdb/AuthDB.java
+++ b/src/main/java/com/authdb/AuthDB.java
@@ -1,941 +1,943 @@
/**
(C) Copyright 2011 CraftFire <dev@craftfire.com>
Contex <contex@craftfire.com>, Wulfspid... | true | true | void LoadYml(String type) {
String Language = "English";
//String[] LanguagesAll = new File(getDataFolder() + "/translations/" + type + "/").list();
File LanguagesAll = new File(getDataFolder() + "/translations");
boolean Set = false;
File[] directories;
FileFilter fi... | void LoadYml(String type) {
String Language = "English";
//String[] LanguagesAll = new File(getDataFolder() + "/translations/" + type + "/").list();
File LanguagesAll = new File(getDataFolder() + "/translations");
boolean Set = false;
File[] directories;
FileFilter fi... |
diff --git a/src/main/java/tconstruct/smeltery/TinkerSmelteryEvents.java b/src/main/java/tconstruct/smeltery/TinkerSmelteryEvents.java
index 8df83270d..60b1e8703 100644
--- a/src/main/java/tconstruct/smeltery/TinkerSmelteryEvents.java
+++ b/src/main/java/tconstruct/smeltery/TinkerSmelteryEvents.java
@@ -1,96 +1,96 @@
... | true | true | public void bucketFill (FillBucketEvent evt)
{
if (evt.current.getItem() == Items.bucket && evt.target.typeOfHit == MovingObjectType.ENTITY)
{
int hitX = evt.target.blockX;
int hitY = evt.target.blockY;
int hitZ = evt.target.blockZ;
if (evt.entity... | public void bucketFill (FillBucketEvent evt)
{
if (evt.current.getItem() == Items.bucket && evt.target.typeOfHit == MovingObjectType.BLOCK)
{
int hitX = evt.target.blockX;
int hitY = evt.target.blockY;
int hitZ = evt.target.blockZ;
if (evt.entityP... |
diff --git a/src/org/nutz/mvc/view/ServerRedirectView.java b/src/org/nutz/mvc/view/ServerRedirectView.java
index 3e356dce8..879f07944 100644
--- a/src/org/nutz/mvc/view/ServerRedirectView.java
+++ b/src/org/nutz/mvc/view/ServerRedirectView.java
@@ -1,91 +1,91 @@
package org.nutz.mvc.view;
import java.util.Iterator;... | true | true | public void render(HttpServletRequest req, HttpServletResponse resp, Object obj)
throws Exception {
Mirror<?> mirror = Mirror.me(obj);
boolean isMap = null != obj && obj instanceof Map<?, ?>;
Map<?, ?> map = isMap ? null : (Map<?, ?>) obj;
// Fill path
Set<String> keySet = dest.keys();
Iterator<String>... | public void render(HttpServletRequest req, HttpServletResponse resp, Object obj)
throws Exception {
Mirror<?> mirror = Mirror.me(obj);
boolean isMap = null != obj && obj instanceof Map<?, ?>;
Map<?, ?> map = isMap ? (Map<?, ?>) obj : null;
// Fill path
Set<String> keySet = dest.keys();
Iterator<String>... |
diff --git a/src/com/android/apps/tag/record/ImageRecord.java b/src/com/android/apps/tag/record/ImageRecord.java
index 34af2ee..95eb329 100644
--- a/src/com/android/apps/tag/record/ImageRecord.java
+++ b/src/com/android/apps/tag/record/ImageRecord.java
@@ -1,81 +1,84 @@
/*
* Copyright (C) 2010 The Android Open Sourc... | true | true | public static ImageRecord parse(NdefRecord record) {
String mimeType = record.toMimeType();
Preconditions.checkArgument(mimeType.startsWith("image/"));
// Try to ensure it's a legal, valid image
byte[] content = record.getPayload();
Bitmap bitmap = BitmapFactory.decodeByteAr... | public static ImageRecord parse(NdefRecord record) {
String mimeType = record.toMimeType();
if (mimeType == null) {
throw new IllegalArgumentException("not a valid image file");
}
Preconditions.checkArgument(mimeType.startsWith("image/"));
// Try to ensure it's a... |
diff --git a/src/main/java/fr/cedrik/inotes/fs/BaseFsExport.java b/src/main/java/fr/cedrik/inotes/fs/BaseFsExport.java
index fe629f4..e7d9c89 100644
--- a/src/main/java/fr/cedrik/inotes/fs/BaseFsExport.java
+++ b/src/main/java/fr/cedrik/inotes/fs/BaseFsExport.java
@@ -1,203 +1,203 @@
/**
*
*/
package fr.cedrik.in... | true | true | protected void export(Folder folder, String[] args) throws IOException {
boolean deleteExportedMessages = false;
session.setCurrentFolder(folder);
this.oldestMessageToFetch = null; // reset
if (args.length > 1) {
try {
this.oldestMessageToFetch = new SimpleDateFormat(ISO8601_DATE_SEMITIME).parse(args[1]... | protected void export(Folder folder, String[] args) throws IOException {
boolean deleteExportedMessages = false;
session.setCurrentFolder(folder);
this.oldestMessageToFetch = null; // reset
if (args.length > 1) {
try {
this.oldestMessageToFetch = new SimpleDateFormat(ISO8601_DATE_SEMITIME).parse(args[1]... |
diff --git a/morphia/src/main/java/com/google/code/morphia/VersionHelper.java b/morphia/src/main/java/com/google/code/morphia/VersionHelper.java
index 3dece79..e86c85e 100644
--- a/morphia/src/main/java/com/google/code/morphia/VersionHelper.java
+++ b/morphia/src/main/java/com/google/code/morphia/VersionHelper.java
@@ ... | true | true | public static long nextValue(Long oldVersion) {
long currentTimeMillis = System.currentTimeMillis();
// very unlikely, but you never know
if (oldVersion != null && oldVersion.longValue() == currentTimeMillis)
currentTimeMillis++;
return currentTimeMillis;
}
| public static long nextValue(Long oldVersion) {
long newVersion = oldVersion == null ? 1 : oldVersion + 1;
return newVersion;
}
|
diff --git a/src/com/woopra/tracking/android/WoopraEvent.java b/src/com/woopra/tracking/android/WoopraEvent.java
index aea90cb..d3c30a9 100755
--- a/src/com/woopra/tracking/android/WoopraEvent.java
+++ b/src/com/woopra/tracking/android/WoopraEvent.java
@@ -1,49 +1,49 @@
/*
* Copyright 2014 Woopra, Inc.
*
* Licen... | true | true | public WoopraEvent(String eventName, Map<String,String> properties) {
if (this.properties != null) {
this.properties.putAll(properties);
}
this.properties.put("name", eventName);
}
| public WoopraEvent(String eventName, Map<String,String> properties) {
if (properties != null) {
this.properties.putAll(properties);
}
this.properties.put("name", eventName);
}
|
diff --git a/fap/app/validation/NipCheck.java b/fap/app/validation/NipCheck.java
index adbccade..065f1ba0 100644
--- a/fap/app/validation/NipCheck.java
+++ b/fap/app/validation/NipCheck.java
@@ -1,112 +1,112 @@
package validation;
import java.util.regex.*;
import models.Nip;
import play.Logger;
import play.dat... | true | true | public static boolean validaNip (Nip nip, StringBuilder texto) {
if(nip.tipo.isEmpty() && nip.valor.isEmpty()) //Tipo y valor vacios, no valida
return true;
if(nip.tipo.isEmpty()){ //Falta tipo
texto.append("validation.nip.notipo");
return false;
}
if(nip.valor.isEmpty()){ //Falta valor
text... | public static boolean validaNip (Nip nip, StringBuilder texto) {
if ((nip.tipo == null || nip.tipo.isEmpty()) && ((nip.valor == null) || (nip.valor.isEmpty())))
return true;
if(nip.tipo.isEmpty()){ //Falta tipo
texto.append("validation.nip.notipo");
return false;
}
if(nip.valor.isEmpty()){ //Fa... |
diff --git a/EchoLocation/src/com/amateurbikenerd/echoLocation/math/GenerateCodeThatIsTooBig.java b/EchoLocation/src/com/amateurbikenerd/echoLocation/math/GenerateCodeThatIsTooBig.java
index fa83dc3..876097d 100644
--- a/EchoLocation/src/com/amateurbikenerd/echoLocation/math/GenerateCodeThatIsTooBig.java
+++ b/EchoLoca... | false | true | public static void main(String[] args)throws Exception{
//GenerateCodeThatIsTooBig data = new GenerateCodeThatIsTooBig("/home/darshan/src/echolocation/mit_full");
GenerateCodeThatIsTooBig data = new GenerateCodeThatIsTooBig("/home/dmiles/mit_full");
Hashtable<String, short[][]> ht = new Hashtable<S... | public static void main(String[] args)throws Exception{
//GenerateCodeThatIsTooBig data = new GenerateCodeThatIsTooBig("/home/darshan/src/echolocation/mit_full");
GenerateCodeThatIsTooBig data = new GenerateCodeThatIsTooBig("/home/dmiles/mit_full");
Hashtable<String, short[][]> ht = new Hashtable<S... |
diff --git a/src/main/java/freenet/winterface/web/markup/NavPanel.java b/src/main/java/freenet/winterface/web/markup/NavPanel.java
index 6d5a870..39be6db 100644
--- a/src/main/java/freenet/winterface/web/markup/NavPanel.java
+++ b/src/main/java/freenet/winterface/web/markup/NavPanel.java
@@ -1,129 +1,130 @@
package fr... | true | true | protected void onInitialize() {
@SuppressWarnings("unchecked")
final IModel<NavItem> itemModel = (IModel<NavItem>) getDefaultModel();
// Use field called "name" to get name of menu
// TODO support i18n
final IModel<String> nameModel = new PropertyModel<String>(itemModel, "Name");
// Model to add "active" ... | protected void onInitialize() {
super.onInitialize();
@SuppressWarnings("unchecked")
final IModel<NavItem> itemModel = (IModel<NavItem>) getDefaultModel();
// Use field called "name" to get name of menu
// TODO support i18n
final IModel<String> nameModel = new PropertyModel<String>(itemModel, "Name");
/... |
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 836cccbe0..7057ab327 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -1,1727 +1,1731 @@
package cgeo.geocaching;
import cgeo.geocaching.cgData.StorageLocation;
impo... | false | true | public boolean gatherMissingFrom(final Geocache other) {
if (other == null) {
return false;
}
updated = System.currentTimeMillis();
if (!detailed && (other.detailed || zoomlevel < other.zoomlevel)) {
detailed = other.detailed;
detailedUpdate = oth... | public boolean gatherMissingFrom(final Geocache other) {
if (other == null) {
return false;
}
updated = System.currentTimeMillis();
if (!detailed && (other.detailed || zoomlevel < other.zoomlevel)) {
detailed = other.detailed;
detailedUpdate = oth... |
diff --git a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/format/AutoFormatter.java b/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/format/AutoFormatter.java
index a37dbc7..7ba8b09 100644
--- a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/format/AutoFormatter.java
+++ b/plugins/org.eclip... | true | true | public String formatValue( Object value ) throws BirtException
{
if ( directFormatter == null )
{
// implicitly includes its child classes java.sql.Date,
// java.sql.Time and java.sql.Timestamp
if ( value instanceof java.util.Date )
{
directFormatter = new DateFormatter( pattern,
this.locale... | public String formatValue( Object value ) throws BirtException
{
if ( directFormatter == null )
{
// implicitly includes its child classes java.sql.Date,
// java.sql.Time and java.sql.Timestamp
if ( value instanceof java.util.Date )
{
directFormatter = new DateFormatter( pattern,
this.locale... |
diff --git a/src/main/java/net/h31ix/anticheat/event/InventoryListener.java b/src/main/java/net/h31ix/anticheat/event/InventoryListener.java
index 0098b04..b81d644 100644
--- a/src/main/java/net/h31ix/anticheat/event/InventoryListener.java
+++ b/src/main/java/net/h31ix/anticheat/event/InventoryListener.java
@@ -1,65 +1... | true | true | public void onInventoryClick(InventoryClickEvent event) {
if (!event.isRightClick() && event.getWhoClicked() instanceof Player) {
Player player = (Player) event.getWhoClicked();
if (getCheckManager().willCheck(player, CheckType.FAST_INVENTORY)) {
CheckResult result = ... | public void onInventoryClick(InventoryClickEvent event) {
if (!event.isRightClick() && !event.isShiftClick() && event.getWhoClicked() instanceof Player) {
Player player = (Player) event.getWhoClicked();
if (getCheckManager().willCheck(player, CheckType.FAST_INVENTORY)) {
... |
diff --git a/src/main/java/se/llbit/chunky/main/Chunky.java b/src/main/java/se/llbit/chunky/main/Chunky.java
index aae38c6e..2f0a9dcc 100644
--- a/src/main/java/se/llbit/chunky/main/Chunky.java
+++ b/src/main/java/se/llbit/chunky/main/Chunky.java
@@ -1,1026 +1,1026 @@
/* Copyright (c) 2010-2012 Jesper Öqvist <jesper@l... | true | true | public int run(String[] args) {
boolean selectedWorld = false;
File sceneDir = ProgramProperties.getPreferredSceneDirectory();
String sceneName = null;
String texturePack = null;
int renderThreads = Runtime.getRuntime().availableProcessors();
File worldDir = null;
boolean doBench = false;
for (int i = ... | public int run(String[] args) {
boolean selectedWorld = false;
File sceneDir = ProgramProperties.getPreferredSceneDirectory();
String sceneName = null;
String texturePack = null;
int renderThreads = Runtime.getRuntime().availableProcessors();
File worldDir = null;
boolean doBench = false;
for (int i = ... |
diff --git a/src/org/eclipse/jface/bindings/keys/SWTKeySupport.java b/src/org/eclipse/jface/bindings/keys/SWTKeySupport.java
index 76087f34..1ea239a9 100644
--- a/src/org/eclipse/jface/bindings/keys/SWTKeySupport.java
+++ b/src/org/eclipse/jface/bindings/keys/SWTKeySupport.java
@@ -1,247 +1,247 @@
/*******************... | true | true | public static final KeyStroke convertAcceleratorToKeyStroke(int accelerator) {
final int modifierKeys = accelerator & SWT.MODIFIER_MASK;
final int naturalKey;
if (accelerator == modifierKeys) {
naturalKey = Integer.MIN_VALUE;
} else {
naturalKey = accelerator - modifierKeys;
}
return KeyStroke.get... | public static final KeyStroke convertAcceleratorToKeyStroke(int accelerator) {
final int modifierKeys = accelerator & SWT.MODIFIER_MASK;
final int naturalKey;
if (accelerator == modifierKeys) {
naturalKey = KeyStroke.NO_KEY;
} else {
naturalKey = accelerator - modifierKeys;
}
return KeyStroke.getI... |
diff --git a/src/com/itmill/toolkit/tests/TestForWindowOpen.java b/src/com/itmill/toolkit/tests/TestForWindowOpen.java
index 8588630bb..63a15f6ae 100644
--- a/src/com/itmill/toolkit/tests/TestForWindowOpen.java
+++ b/src/com/itmill/toolkit/tests/TestForWindowOpen.java
@@ -1,54 +1,55 @@
package com.itmill.toolkit.tests... | false | true | public TestForWindowOpen() {
OrderedLayout main = new OrderedLayout();
setCompositionRoot(main);
main.addComponent(new Button("Open in this window",
new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
Externa... | public TestForWindowOpen() {
OrderedLayout main = new OrderedLayout();
setCompositionRoot(main);
main.addComponent(new Button("Open in this window",
new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
Externa... |
diff --git a/tomcat-main/src/test/java/org/collectionspace/chain/csp/webui/main/TestUISpecs.java b/tomcat-main/src/test/java/org/collectionspace/chain/csp/webui/main/TestUISpecs.java
index 6bc4719d..2c706b6f 100644
--- a/tomcat-main/src/test/java/org/collectionspace/chain/csp/webui/main/TestUISpecs.java
+++ b/tomcat-ma... | false | true | @Test public void testUISpec() throws Exception {
ServletTester jetty=setupJetty();
uispec(jetty,"/chain/acquisition/uispec","acquisition.uispec");
uispec(jetty,"/chain/objects/uispec","collection-object.uispec");
uispec(jetty,"/chain/object-tab/uispec","object-tab.uispec");
uispec(jetty,"/chain/intake/uisp... | @Test public void testUISpec() throws Exception {
ServletTester jetty=setupJetty();
/* uispec(jetty,"/chain/acquisition/uispec","acquisition.uispec");
uispec(jetty,"/chain/objects/uispec","collection-object.uispec");
uispec(jetty,"/chain/object-tab/uispec","object-tab.uispec");
uispec(jetty,"/chain/intake/ui... |
diff --git a/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LArcView.java b/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LArcView.java
index 0e452128..a228f3e5 100644
--- a/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LArcView.java
+++ b/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LAr... | false | true | public static void setArcPath(final Path2D path, final double tlx, final double tly, final double width, final double height, final double startAngle,
final double endAngle, final int style) {
if(path!=null) {
double sAngle = Math.toDegrees(startAngle%(Math.PI*2.));
double eAngle = Math.toDegrees(endA... | public static void setArcPath(final Path2D path, final double tlx, final double tly, final double width, final double height, final double startAngle,
final double endAngle, final int style) {
if(path!=null) {
final double w2 = Math.max(1., width);
final double h2 = Math.max(1., height);
double sAn... |
diff --git a/main/src/main/java/org/vfny/geoserver/servlets/AbstractService.java b/main/src/main/java/org/vfny/geoserver/servlets/AbstractService.java
index b928c1eeb2..2eef5fd65c 100644
--- a/main/src/main/java/org/vfny/geoserver/servlets/AbstractService.java
+++ b/main/src/main/java/org/vfny/geoserver/servlets/Abstra... | false | true | protected void doService(HttpServletRequest request,
HttpServletResponse response, Request serviceRequest)
throws ServletException {
LOGGER.info("handling request: " + serviceRequest);
if (!isServiceEnabled(request)) {
try {
sendDisabledServiceError(response);
... | protected void doService(HttpServletRequest request,
HttpServletResponse response, Request serviceRequest)
throws ServletException {
LOGGER.info("handling request: " + serviceRequest);
if (!isServiceEnabled(request)) {
try {
sendDisabledServiceError(response);
... |
diff --git a/src/net/sf/cpsolver/coursett/TimetableSolver.java b/src/net/sf/cpsolver/coursett/TimetableSolver.java
index 6ede3c0..5ba6910 100644
--- a/src/net/sf/cpsolver/coursett/TimetableSolver.java
+++ b/src/net/sf/cpsolver/coursett/TimetableSolver.java
@@ -1,129 +1,130 @@
package net.sf.cpsolver.coursett;
impor... | false | true | protected void fixCompleteSolution(double startTime) {
Progress progress = Progress.getInstance(currentSolution().getModel());
TimetableModel model = (TimetableModel) iCurrentSolution.getModel();
progress.save();
double solutionValue = 0.0, newSolutionValue = model.getTotalValue();
... | protected void fixCompleteSolution(double startTime) {
Progress progress = Progress.getInstance(currentSolution().getModel());
TimetableModel model = (TimetableModel) iCurrentSolution.getModel();
iCurrentSolution.saveBest();
progress.save();
double solutionValue = 0.0, newSo... |
diff --git a/src/ContactManagerImpl.java b/src/ContactManagerImpl.java
index 3feda84..9e9e191 100644
--- a/src/ContactManagerImpl.java
+++ b/src/ContactManagerImpl.java
@@ -1,351 +1,352 @@
import java.io.*;
import java.util.*;
public class ContactManagerImpl implements ContactManager, Serializable
{
private ... | false | true | private void load()
{
if (firstRun)
{
/** make new empty sets and call the other constructor; for when dataOnDisk doesn't exist
* not due to error, but because program is being run for the first time */
this.contactSet = new HashSet<Contact>();
t... | private void load()
{
if (firstRun || !dataOnDisk.exists()) // temporarily added hack to fix serialization until i solve main issue
{
/** make new empty sets and call the other constructor; for when dataOnDisk doesn't exist
* not due to error, but because prog... |
diff --git a/src/net/colar/netbeans/fan/wizard/FanTalesProjectWizardIterator.java b/src/net/colar/netbeans/fan/wizard/FanTalesProjectWizardIterator.java
index 74ce715..0484051 100644
--- a/src/net/colar/netbeans/fan/wizard/FanTalesProjectWizardIterator.java
+++ b/src/net/colar/netbeans/fan/wizard/FanTalesProjectWizardI... | true | true | public Set instantiate() throws IOException
{
FanTalesProjectWizardPanel1 panel = getPanel();
String location = panel.getProjectLocation();
String projectName = panel.getProjectName();
// Call "tales new" to create the project
FanExecution fanExec = new FanExecution();
... | public Set instantiate() throws IOException
{
FanTalesProjectWizardPanel1 panel = getPanel();
String location = panel.getProjectLocation();
String projectName = panel.getProjectName();
// Call "tales new" to create the project
FanExecution fanExec = new FanExecution();
... |
diff --git a/MessageSearch/src/com/github/searchbadger/util/ContactSMS.java b/MessageSearch/src/com/github/searchbadger/util/ContactSMS.java
index 0cc08f6..8636dbc 100644
--- a/MessageSearch/src/com/github/searchbadger/util/ContactSMS.java
+++ b/MessageSearch/src/com/github/searchbadger/util/ContactSMS.java
@@ -1,83 +1... | false | true | public boolean contains(String address) {
if(addresses == null) return false;
Iterator<String> itr = addresses.iterator();
while(itr.hasNext()) {
String contactAddress = itr.next();
if(contactAddress.equals(address))
return true;
}
if(id.equals(address))
return true;
return false;
}
| public boolean contains(String address) {
address = address.replace(" ", "");
address = address.replace("-", "");
if(addresses == null) return false;
Iterator<String> itr = addresses.iterator();
while(itr.hasNext()) {
String contactAddress = itr.next();
contactAddress = contactAddress.replace(" ", "");... |
diff --git a/src/org/jruby/RubyFile.java b/src/org/jruby/RubyFile.java
index 1983906d8..d07411779 100644
--- a/src/org/jruby/RubyFile.java
+++ b/src/org/jruby/RubyFile.java
@@ -1,1059 +1,1063 @@
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the ... | true | true | public static RubyClass createFileClass(Ruby runtime) {
RubyClass fileClass = runtime.defineClass("File", runtime.getClass("IO"), FILE_ALLOCATOR);
CallbackFactory callbackFactory = runtime.callbackFactory(RubyFile.class);
RubyClass fileMetaClass = fileClass.getMetaClass();
RubyStr... | public static RubyClass createFileClass(Ruby runtime) {
RubyClass fileClass = runtime.defineClass("File", runtime.getClass("IO"), FILE_ALLOCATOR);
CallbackFactory callbackFactory = runtime.callbackFactory(RubyFile.class);
RubyClass fileMetaClass = fileClass.getMetaClass();
RubyStr... |
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.