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/app/controllers/Statistiques.java b/app/controllers/Statistiques.java
index c2f262f..ca09678 100644
--- a/app/controllers/Statistiques.java
+++ b/app/controllers/Statistiques.java
@@ -1,142 +1,142 @@
package controllers;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import ... | true | true | public static Result getStat(String id) {
Long idLong;
Date maintenant = new Date();
Sys_parameter system = Sys_parameter.find.byId((long) 1);
Saison saison = system.getSaisonEnCours();
Journee premiereJournee = saison.getPremiereJournee();
Journee derniereJournee= saison.getDerniereJournee();
List... | public static Result getStat(String id) {
Long idLong;
Date maintenant = new Date();
Sys_parameter system = Sys_parameter.find.byId((long) 1);
Saison saison = system.getSaisonEnCours();
Journee premiereJournee = saison.getPremiereJournee();
Journee derniereJournee= saison.getDerniereJournee();
List... |
diff --git a/src/share/impl/contentstore/classes/com/sun/jumpimpl/module/contentstore/FileStoreImpl.java b/src/share/impl/contentstore/classes/com/sun/jumpimpl/module/contentstore/FileStoreImpl.java
index f90567a..7c3503f 100644
--- a/src/share/impl/contentstore/classes/com/sun/jumpimpl/module/contentstore/FileStoreImp... | true | true | public JUMPNode getNode(String uri) throws IOException {
// getNode(String) needs to return what the createDataNode() above store
// if the uri parameter represents a data node.
//System.out.println("getNode uri:" + uri);
if (!isDataUri(uri)) {
// This URI represents non-leaf no... | public JUMPNode getNode(String uri) throws IOException {
// getNode(String) needs to return what the createDataNode() above store
// if the uri parameter represents a data node.
//System.out.println("getNode uri:" + uri);
if (!isDataUri(uri)) {
// This URI represents non-leaf no... |
diff --git a/agent/src/main/java/org/whitesource/teamcity/agent/WhitesourceLifeCycleListener.java b/agent/src/main/java/org/whitesource/teamcity/agent/WhitesourceLifeCycleListener.java
index 0a23dc0..2b1a16e 100644
--- a/agent/src/main/java/org/whitesource/teamcity/agent/WhitesourceLifeCycleListener.java
+++ b/agent/sr... | true | true | public void runnerFinished(@NotNull BuildRunnerContext runner, @NotNull BuildFinishedStatus status) {
super.runnerFinished(runner, status);
AgentRunningBuild build = runner.getBuild();
Loggers.AGENT.info(WssUtils.logMsg(LOG_COMPONENT, "runner finished " + build.getProjectName() + " type " +... | public void runnerFinished(@NotNull BuildRunnerContext runner, @NotNull BuildFinishedStatus status) {
super.runnerFinished(runner, status);
AgentRunningBuild build = runner.getBuild();
Loggers.AGENT.info(WssUtils.logMsg(LOG_COMPONENT, "runner finished " + build.getProjectName() + " type " +... |
diff --git a/src/frankversnel/processing/component/ComponentNotFoundException.java b/src/frankversnel/processing/component/ComponentNotFoundException.java
index 589e41b..300288a 100644
--- a/src/frankversnel/processing/component/ComponentNotFoundException.java
+++ b/src/frankversnel/processing/component/ComponentNotFou... | true | true | public <T extends Component> ComponentNotFoundException(Class<T> componentType,
GameObject gameObject) {
super("Component of type " + componentType.getClass() +
" could not be fournd for " + gameObject);
}
| public <T extends Component> ComponentNotFoundException(Class<T> componentType,
GameObject gameObject) {
super("Component of type " + componentType +
" could not be found for " + gameObject);
}
|
diff --git a/gameoflife-core/src/main/java/com/wakaleo/gameoflife/domain/GridWriter.java b/gameoflife-core/src/main/java/com/wakaleo/gameoflife/domain/GridWriter.java
index 834b4af..c78f444 100644
--- a/gameoflife-core/src/main/java/com/wakaleo/gameoflife/domain/GridWriter.java
+++ b/gameoflife-core/src/main/java/com/w... | true | true | public String convertToString(Cell[][] gridContents) {
StringBuffer printedGrid = new StringBuffer();
for(Cell[] row : gridContents) {
for( Cell cell : row) {
printedGrid.append(cell.toString());
}
printedGrid.append("\n");
}
return... | public String convertToString(Cell[][] gridContents) {
StringBuffer printedGrid = new StringBuffer();
for(Cell[] row : gridContents) {
for( Cell cell : row) {
printedGrid.append(cell.toString());
}
// TODO: This simply masks the problem: why empty ... |
diff --git a/src/main/java/fi/csc/microarray/analyser/ws/impl/EnfinWsUtils.java b/src/main/java/fi/csc/microarray/analyser/ws/impl/EnfinWsUtils.java
index ac19f00f5..35074b61b 100644
--- a/src/main/java/fi/csc/microarray/analyser/ws/impl/EnfinWsUtils.java
+++ b/src/main/java/fi/csc/microarray/analyser/ws/impl/EnfinWsUt... | true | true | private static void writeIntactHtml(ResultTableCollector intactAnnotations, File file) throws FileNotFoundException {
ValueHtmlFormatter interactionIdFormatter = new ValueHtmlFormatter() {
public String format(String string, String[] currentRow) {
return "<a href=\"http://www.ebi.ac.uk/intact/pages/interactio... | public static void writeIntactHtml(ResultTableCollector intactAnnotations, File file) throws FileNotFoundException {
ValueHtmlFormatter interactionIdFormatter = new ValueHtmlFormatter() {
public String format(String string, String[] currentRow) {
return "<a href=\"http://www.ebi.ac.uk/intact/pages/interaction... |
diff --git a/driver-one/src/main/java/com/telefonica/claudia/smi/provisioning/ONEProvisioningDriver.java b/driver-one/src/main/java/com/telefonica/claudia/smi/provisioning/ONEProvisioningDriver.java
index aadc669..a864a41 100644
--- a/driver-one/src/main/java/com/telefonica/claudia/smi/provisioning/ONEProvisioningDrive... | false | true | protected String TCloud2ONEVM(String xml, String veeFqn) throws Exception {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(new ByteArrayInputStream(xml.getB... | protected String TCloud2ONEVM(String xml, String veeFqn) throws Exception {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(new ByteArrayInputStream(xml.getB... |
diff --git a/Source/App/src/dimappers/android/pub/DataRequestGetPhotos.java b/Source/App/src/dimappers/android/pub/DataRequestGetPhotos.java
index 082d388..a2118d4 100644
--- a/Source/App/src/dimappers/android/pub/DataRequestGetPhotos.java
+++ b/Source/App/src/dimappers/android/pub/DataRequestGetPhotos.java
@@ -1,47 +1... | true | true | public void performRequest(IRequestListener<XmlJasonObject> listener,
HashMap<String, XmlJasonObject> storedData) {
long userId = service.GetActiveUser().getUserId();
if(storedData.containsKey("Photos"))
{
if(!storedData.get(userId).isOutOfDate())
{
listener.onRequestComplete(storedData.get(user... | public void performRequest(IRequestListener<XmlJasonObject> listener,
HashMap<String, XmlJasonObject> storedData) {
long userId = service.GetActiveUser().getUserId();
if(storedData.containsKey("Photos"))
{
if(!storedData.get("Photos").isOutOfDate())
{
listener.onRequestComplete(storedData.get(us... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java
index 2ec8ec86b..896af69de 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServ... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse resp) {
String action = req.getParameter("action");
if ("setupTestUser".equals(action)) {
setupTestUser();
} else if ("computeDistanceAlongBearing".equals(action)) {
com.gallatinsystems.gis.coordinate.utilities.CoordinateUtilities cu = new Coord... | public void doGet(HttpServletRequest req, HttpServletResponse resp) {
String action = req.getParameter("action");
if ("setupTestUser".equals(action)) {
setupTestUser();
} else if ("computeDistanceAlongBearing".equals(action)) {
com.gallatinsystems.gis.coordinate.utilities.CoordinateUtilities cu = new Coord... |
diff --git a/src/test/java/com/wikia/webdriver/PageObjects/PageObject/WikiPage/MessageWallPageObject.java b/src/test/java/com/wikia/webdriver/PageObjects/PageObject/WikiPage/MessageWallPageObject.java
index 67e6a4d..b456e8a 100644
--- a/src/test/java/com/wikia/webdriver/PageObjects/PageObject/WikiPage/MessageWallPageOb... | true | true | public void verifyPostedMessageWithLinks(String internallink, String externallink){//, String articleName) {
// List<WebElement> links = messageBody.findElements(By.cssSelector("a"));
// waitForTextToBePresentInElementByElement(links.get(0), internallink);
// waitForTextToBePresentInElementByElement(links.get(1), e... | public void verifyPostedMessageWithLinks(String internallink, String externallink){//, String articleName) {
// List<WebElement> links = messageBody.findElements(By.cssSelector("a"));
// waitForTextToBePresentInElementByElement(links.get(0), internallink);
// waitForTextToBePresentInElementByElement(links.get(1), e... |
diff --git a/src/main/java/edu/bu/AtroposStateReader.java b/src/main/java/edu/bu/AtroposStateReader.java
index 86be144..861cca7 100644
--- a/src/main/java/edu/bu/AtroposStateReader.java
+++ b/src/main/java/edu/bu/AtroposStateReader.java
@@ -1,449 +1,449 @@
package edu.bu;
import java.io.IOException;
import java.io... | true | true | public AtroposState read() throws IOException {
StringBuilder result = new StringBuilder();
while (true) {
int read = input.read();
if (read < 0) {
break;
}
result.append((char) read);
}
Pair<List<List<Integer>>, List<Integer>> state = seq(rows, lastPlay).parse(result.toString()).token;
int s... | public AtroposState read() throws IOException {
StringBuilder result = new StringBuilder();
while (true) {
int read = input.read();
if (read < 0) {
break;
}
result.append((char) read);
}
Pair<List<List<Integer>>, List<Integer>> state = seq(rows, lastPlay).parse(result.toString()).token;
int s... |
diff --git a/src/main/java/net/rootdev/javardfa/Parser.java b/src/main/java/net/rootdev/javardfa/Parser.java
index 457854c..edfe1f8 100644
--- a/src/main/java/net/rootdev/javardfa/Parser.java
+++ b/src/main/java/net/rootdev/javardfa/Parser.java
@@ -1,501 +1,504 @@
/*
* (c) Copyright 2009 University of Bristol
* Al... | false | true | EvalContext parse(EvalContext context, StartElement element)
throws XMLStreamException {
boolean skipElement = false;
String newSubject = null;
String currentObject = null;
List<String> forwardProperties = new LinkedList();
List<String> backwardProperties = new Li... | EvalContext parse(EvalContext context, StartElement element)
throws XMLStreamException {
boolean skipElement = false;
String newSubject = null;
String currentObject = null;
List<String> forwardProperties = new LinkedList();
List<String> backwardProperties = new Li... |
diff --git a/tests/src/test/java/li/klass/fhem/domain/CULWSDeviceTest.java b/tests/src/test/java/li/klass/fhem/domain/CULWSDeviceTest.java
index a6d779ae..e7882aed 100644
--- a/tests/src/test/java/li/klass/fhem/domain/CULWSDeviceTest.java
+++ b/tests/src/test/java/li/klass/fhem/domain/CULWSDeviceTest.java
@@ -1,57 +1,5... | true | true | public void testForCorrectlySetAttributes() {
CULWSDevice device = getDefaultDevice();
assertThat(device.getName(), is(DEFAULT_TEST_DEVICE_NAME));
assertThat(device.getRoomConcatenated(), is(DEFAULT_TEST_ROOM_NAME));
assertThat(device.getHumidity(), is("45.8 (%)"));
assertT... | public void testForCorrectlySetAttributes() {
CULWSDevice device = getDefaultDevice();
assertThat(device.getName(), is(DEFAULT_TEST_DEVICE_NAME));
assertThat(device.getRoomConcatenated(), is(DEFAULT_TEST_ROOM_NAME));
assertThat(device.getHumidity(), is("45.8 (%)"));
assertT... |
diff --git a/src/org/mozilla/javascript/NativeArray.java b/src/org/mozilla/javascript/NativeArray.java
index 87a2daa4..ecec663f 100644
--- a/src/org/mozilla/javascript/NativeArray.java
+++ b/src/org/mozilla/javascript/NativeArray.java
@@ -1,1204 +1,1204 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | true | true | private static Object js_splice(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
/* create an empty Array to return. */
scope = getTopLevelScope(scope);
Object result = ScriptRuntime.newObject(cx, scope, "Array", null);
int ar... | private static Object js_splice(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
/* create an empty Array to return. */
scope = getTopLevelScope(scope);
Object result = ScriptRuntime.newObject(cx, scope, "Array", null);
int ar... |
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/listeners/UpdateListener.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/listeners/UpdateListener.java
index e70a71d8a..993e4e7a5 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/e... | false | true | public IStatus errorLine(String line, ICVSFolder commandRoot,
IProgressMonitor monitor) {
if (line.startsWith(SERVER_PREFIX)) {
// Strip the prefix from the line
String message = line.substring(SERVER_PREFIX.length());
if (message.startsWith("Updating")) { //$NON-NLS-1$
if (updateMessageListener !=... | public IStatus errorLine(String line, ICVSFolder commandRoot,
IProgressMonitor monitor) {
if (line.startsWith(SERVER_PREFIX)) {
// Strip the prefix from the line
String message = line.substring(SERVER_PREFIX.length());
if (message.startsWith("Updating")) { //$NON-NLS-1$
if (updateMessageListener !=... |
diff --git a/goci-diagram/goci-pussycat/src/main/java/uk/ac/ebi/fgpt/goci/pussycat/session/OntologyReasonerSession.java b/goci-diagram/goci-pussycat/src/main/java/uk/ac/ebi/fgpt/goci/pussycat/session/OntologyReasonerSession.java
index 98654524a..b7436f5f2 100644
--- a/goci-diagram/goci-pussycat/src/main/java/uk/ac/ebi/... | true | true | @Override protected void doInitialization() throws Exception {
IRI efoLocationIRI = IRI.create(getConfiguration().getEfoResource().getURI());
IRI efoLogicalIRI = IRI.create(OntologyConstants.EFO_ONTOLOGY_SCHEMA_IRI + "/");
OWLOntology ontology;
getLog().debug("Trying to create a rea... | @Override protected void doInitialization() throws Exception {
IRI efoLocationIRI = IRI.create(getConfiguration().getEfoResource().getURI());
IRI efoLogicalIRI = IRI.create(OntologyConstants.EFO_ONTOLOGY_SCHEMA_IRI);
OWLOntology ontology;
getLog().debug("Trying to create a reasoner ... |
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/DeleteCommand.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/DeleteCommand.java
index 500110456..d47f31751 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/e... | true | true | public void execute()
{
XSDVisitor visitor = new XSDVisitor()
{
public void visitElementDeclaration(org.eclipse.xsd.XSDElementDeclaration element)
{
if (element.getTypeDefinition() == target)
{
XSDSimpleTypeDefinition type = target.getSchema().getSchemaForSchema().resol... | public void execute()
{
XSDVisitor visitor = new XSDVisitor()
{
public void visitElementDeclaration(org.eclipse.xsd.XSDElementDeclaration element)
{
if (element.getTypeDefinition() == target)
{
XSDSimpleTypeDefinition type = target.getSchema().getSchemaForSchema().resol... |
diff --git a/src/main/java/net/sf/beezle/sushi/fs/zip/ZipRoot.java b/src/main/java/net/sf/beezle/sushi/fs/zip/ZipRoot.java
index cd5ee189..2d19b16a 100644
--- a/src/main/java/net/sf/beezle/sushi/fs/zip/ZipRoot.java
+++ b/src/main/java/net/sf/beezle/sushi/fs/zip/ZipRoot.java
@@ -1,120 +1,120 @@
/*
* Copyright 1&1 Int... | true | true | public List<String> list(String path) {
ZipEntry entry;
Enumeration<? extends ZipEntry> e;
String name;
String separator;
String prefix;
int length;
List<String> result;
int idx;
e = zip.entries();
separator = getFilesystem().getSepara... | public List<String> list(String path) {
ZipEntry entry;
Enumeration<? extends ZipEntry> e;
String name;
String separator;
String prefix;
int length;
List<String> result;
int idx;
e = zip.entries();
separator = getFilesystem().getSepara... |
diff --git a/src/main/java/org/osiam/resources/helper/UserDeserializer.java b/src/main/java/org/osiam/resources/helper/UserDeserializer.java
index 3c6a2b7..da082c4 100644
--- a/src/main/java/org/osiam/resources/helper/UserDeserializer.java
+++ b/src/main/java/org/osiam/resources/helper/UserDeserializer.java
@@ -1,68 +1... | true | true | public User deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
JsonNode rootNode = jp.readValueAsTree();
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
ExtensionDeserializer deserializer... | public User deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
JsonNode rootNode = jp.readValueAsTree();
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
ExtensionDeserializer deserializer... |
diff --git a/src/Player.java b/src/Player.java
index 649928b..4b7187b 100644
--- a/src/Player.java
+++ b/src/Player.java
@@ -1,97 +1,101 @@
/**
* Player Class.
* This class is in charge of the Player.
* This class has a reference to the current room that the player is in.
* As well, there is a playerHistory va... | false | true | public void doCommand(Command c){
boolean b = false;
if (c.getCommandWord().equals(CommandWords.UNDO)){
c = playerHistory.undo();
b = true;
} else if (c.getCommandWord().equals(CommandWords.REDO)){
c = playerHistory.redo();
b = true;
}
if(c==null){
return; //TODO tell view about it
}
... | public void doCommand(Command c){
boolean b = false;
if (c.getCommandWord().equals(CommandWords.UNDO)){
c = playerHistory.undo();
b = true;
} else if (c.getCommandWord().equals(CommandWords.REDO)){
c = playerHistory.redo();
b = true;
}
if(c==null){
return; //TODO tell view about it
}
... |
diff --git a/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java b/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java
index 1e0ee1f49..335902cf5 100644
--- a/src/eclipse/plugins/com... | true | true | public Map<String, String> buildParameters() {
Map<String, String> ret = new HashMap<String, String>();
if (commentNotification!=null) {
ret.put("commentNotification", commentNotification.toString().toLowerCase());
}
if (mediaNotification!=null) {
ret.put("med... | public Map<String, String> buildParameters() {
Map<String, String> ret = new HashMap<String, String>();
if (commentNotification!=null) {
ret.put("commentNotification", commentNotification.toString().toLowerCase());
}
if (mediaNotification!=null) {
ret.put("med... |
diff --git a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/record/RecordCreateUpdate.java b/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/record/RecordCreateUpdate.java
index 0bdef637..831faf2a 100644
--- a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/record/RecordCreateUpd... | true | true | private void store_set(Storage storage,UIRequest request,String path) throws UIException {
try {
JSONObject data=request.getJSONBody();
if(this.base.equals("role")){
JSONObject fields=data.optJSONObject("fields");
if((fields.optString("roleName") == null || fields.optString("roleName").equals("")) && ... | private void store_set(Storage storage,UIRequest request,String path) throws UIException {
try {
JSONObject data=request.getJSONBody();
if(this.base.equals("role")){
JSONObject fields=data.optJSONObject("fields");
if((fields.optString("roleName") == null || fields.optString("roleName").equals("")) && ... |
diff --git a/branches/4.0.0/Crux/src/br/com/sysmap/crux/core/rebind/widget/creator/align/HorizontalAlignmentAttributeParser.java b/branches/4.0.0/Crux/src/br/com/sysmap/crux/core/rebind/widget/creator/align/HorizontalAlignmentAttributeParser.java
index aef214ad3..448d74e60 100644
--- a/branches/4.0.0/Crux/src/br/com/sy... | true | true | public void processAttribute(SourcePrinter out, C context, String attributeValue)
{
out.println(context.getWidget()+".setHorizontalAlignment("+
AlignmentAttributeParser.getHorizontalAlignment(attributeValue, HasHorizontalAlignment.class.getCanonicalName()+".ALIGN_DEFAULT"));
}
| public void processAttribute(SourcePrinter out, C context, String attributeValue)
{
out.println(context.getWidget()+".setHorizontalAlignment("+
AlignmentAttributeParser.getHorizontalAlignment(attributeValue, HasHorizontalAlignment.class.getCanonicalName()+".ALIGN_DEFAULT")+");");
}
|
diff --git a/src/de/escidoc/sb/srw/EscidocSRWDatabaseImpl.java b/src/de/escidoc/sb/srw/EscidocSRWDatabaseImpl.java
index 86c4419..2f6d67e 100644
--- a/src/de/escidoc/sb/srw/EscidocSRWDatabaseImpl.java
+++ b/src/de/escidoc/sb/srw/EscidocSRWDatabaseImpl.java
@@ -1,565 +1,568 @@
/*
* CDDL HEADER START
*
* The conte... | false | true | public SearchRetrieveResponseType doRequest(
final SearchRetrieveRequestType request) throws ServletException {
SearchRetrieveResponseType response = null; // search response
int resultSetTTL; // time result set should expire
String recordPacking; // how record is packed (xml|string... | public SearchRetrieveResponseType doRequest(
final SearchRetrieveRequestType request) throws ServletException {
SearchRetrieveResponseType response = null; // search response
int resultSetTTL; // time result set should expire
String recordPacking; // how record is packed (xml|string... |
diff --git a/src/main/java/Rule.java b/src/main/java/Rule.java
index 532683b..e255620 100644
--- a/src/main/java/Rule.java
+++ b/src/main/java/Rule.java
@@ -1,74 +1,74 @@
import osm.primitive.Tag;
public class Rule {
private String type;
private String srcKey;
private String srcValue;
private ... | true | true | public Tag createTag(String srcKey, String originalValue) {
String key;
String value;
// Only create the tag if their key matches ours
if (srcKey.equals(this.srcKey)) {
// If they list a source key value, then only create the tag if their key
// value matche... | public Tag createTag(String srcKey, String originalValue) {
String key;
String value;
// Only create the tag if their key matches ours
if (srcKey.equals(this.srcKey)) {
// If they list a source key value, then only create the tag if their key
// value matche... |
diff --git a/src/ru/uiiiii/ssearchm/searching/GitHelper.java b/src/ru/uiiiii/ssearchm/searching/GitHelper.java
index 5bd65d9..eb7ccdd 100644
--- a/src/ru/uiiiii/ssearchm/searching/GitHelper.java
+++ b/src/ru/uiiiii/ssearchm/searching/GitHelper.java
@@ -1,54 +1,54 @@
package ru.uiiiii.ssearchm.searching;
import java... | true | true | private BlameResult getBlameResult(String filePath) throws IOException, GitAPIException {
String docsPath = Indexer.DOCS_PATH;
String filePathInsideRepo = filePath.replace(docsPath, "").substring(1); // remove \\
BlameCommand blame = git.blame();
blame.setFilePath(filePathInsideRepo);
blame.setStartCom... | private BlameResult getBlameResult(String filePath) throws IOException, GitAPIException {
String docsPath = Indexer.DOCS_PATH;
String filePathInsideRepo = filePath.replace(docsPath, "").substring(1).replace('\\', '/'); // substring(1) = remove '\'
BlameCommand blame = git.blame();
blame.setFilePath(fileP... |
diff --git a/ludum-dare-26/src/eu32k/ludumdare/ld26/effects/TileMove.java b/ludum-dare-26/src/eu32k/ludumdare/ld26/effects/TileMove.java
index 4a53546..0ddcc5a 100644
--- a/ludum-dare-26/src/eu32k/ludumdare/ld26/effects/TileMove.java
+++ b/ludum-dare-26/src/eu32k/ludumdare/ld26/effects/TileMove.java
@@ -1,116 +1,118 @@... | true | true | public void update(float delta) {
float x = tile.getX();
float y = tile.getY();
//Player offset to tile... used in case player is moved with a tile to put him in the exact same position
float poX = 0;
float poY = 0;
float goX = 0;
float goY = 0;
Goal goal = leve... | public void update(float delta) {
float x = tile.getX();
float y = tile.getY();
//Player offset to tile... used in case player is moved with a tile to put him in the exact same position
float poX = 0;
float poY = 0;
float goX = 0;
float goY = 0;
Goal goal = leve... |
diff --git a/app/controllers/Dummy.java b/app/controllers/Dummy.java
index 13df70f..0812019 100644
--- a/app/controllers/Dummy.java
+++ b/app/controllers/Dummy.java
@@ -1,32 +1,32 @@
package controllers;
import play.mvc.Controller;
import play.data.validation.Required;
public class Dummy extends Controller {
... | true | true | public static void newAccount(@Required String email, @Required String password,
@Required String firstName, @Required String lastName,
@Required String address, @Required String phoneNumber,
@Required String sex, String code){
if (validation.hasErrors()) {
createAccount();
}
//T... | public static void newAccount(@Required String email, @Required String password,
@Required String firstName, @Required String lastName,
@Required String address, @Required String phoneNumber,
@Required String sex, String code){
if (validation.hasErrors()) {
render("createAccount.html");
... |
diff --git a/crypto/src/org/bouncycastle/asn1/x509/KeyUsage.java b/crypto/src/org/bouncycastle/asn1/x509/KeyUsage.java
index 918173b7..3ffd94b4 100644
--- a/crypto/src/org/bouncycastle/asn1/x509/KeyUsage.java
+++ b/crypto/src/org/bouncycastle/asn1/x509/KeyUsage.java
@@ -1,77 +1,77 @@
package org.bouncycastle.asn1.x509... | true | true | public static KeyUsage getInstance(Object obj)
{
if (obj instanceof KeyUsage)
{
return (KeyUsage)obj;
}
if (obj instanceof X509Extension)
{
return new KeyUsage(DERBitString.getInstance(X509Extension.convertValueToObject((X509Extension)obj)));
... | public static DERBitString getInstance(Object obj) // needs to be DERBitString for other VMs
{
if (obj instanceof KeyUsage)
{
return (KeyUsage)obj;
}
if (obj instanceof X509Extension)
{
return new KeyUsage(DERBitString.getInstance(X509Extension.... |
diff --git a/src/freemail/ui/web/MessageToadlet.java b/src/freemail/ui/web/MessageToadlet.java
index c7e65e9..e37b237 100644
--- a/src/freemail/ui/web/MessageToadlet.java
+++ b/src/freemail/ui/web/MessageToadlet.java
@@ -1,244 +1,238 @@
/*
* MessageToadlet.java
* This file is part of Freemail
* Copyright (C) 201... | true | true | void makeWebPageGet(URI uri, HTTPRequest req, ToadletContext ctx, PageNode page) throws ToadletContextClosedException, IOException {
HTMLNode pageNode = page.outer;
HTMLNode contentNode = page.content;
HTMLNode container = contentNode.addChild("div", "class", "container");
//Add the list of folders
HTMLNod... | void makeWebPageGet(URI uri, HTTPRequest req, ToadletContext ctx, PageNode page) throws ToadletContextClosedException, IOException {
HTMLNode pageNode = page.outer;
HTMLNode contentNode = page.content;
HTMLNode container = contentNode.addChild("div", "class", "container");
//Add the list of folders
HTMLNod... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/RegisterScreen.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/RegisterScreen.java
index 084ea6f89..2810931e8 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/RegisterScreen.java
+++ b/gerrit-gwtui/src/ma... | true | true | protected void onInitUI() {
super.onInitUI();
setPageTitle(Util.C.welcomeToGerritCodeReview());
final FlowPanel formBody = new FlowPanel();
final FlowPanel contactGroup = new FlowPanel();
contactGroup.setStyleName(Gerrit.RESOURCES.css().registerScreenSection());
contactGroup.add(new SmallHea... | protected void onInitUI() {
super.onInitUI();
setPageTitle(Util.C.welcomeToGerritCodeReview());
final FlowPanel formBody = new FlowPanel();
final FlowPanel contactGroup = new FlowPanel();
contactGroup.setStyleName(Gerrit.RESOURCES.css().registerScreenSection());
contactGroup.add(new SmallHea... |
diff --git a/src/com/dmdirc/ui/swing/textpane/TextPane.java b/src/com/dmdirc/ui/swing/textpane/TextPane.java
index bb11ba2c9..cfe68f1d9 100644
--- a/src/com/dmdirc/ui/swing/textpane/TextPane.java
+++ b/src/com/dmdirc/ui/swing/textpane/TextPane.java
@@ -1,731 +1,733 @@
/*
* Copyright (c) 2006-2008 Chris Smith, Shane ... | false | true | public static AttributedString styledDocumentToAttributedString(
final StyledDocument doc) {
//Now lets get hacky, loop through the styled document and add all
//styles to an attributedString
AttributedString attString = null;
final Element line = doc.getParagraphElement... | public static AttributedString styledDocumentToAttributedString(
final StyledDocument doc) {
//Now lets get hacky, loop through the styled document and add all
//styles to an attributedString
AttributedString attString = null;
final Element line = doc.getParagraphElement... |
diff --git a/taglist/src/main/java/org/sonar/plugins/taglist/ViolationsDecorator.java b/taglist/src/main/java/org/sonar/plugins/taglist/ViolationsDecorator.java
index 1bb2c7546..363ecc8ff 100644
--- a/taglist/src/main/java/org/sonar/plugins/taglist/ViolationsDecorator.java
+++ b/taglist/src/main/java/org/sonar/plugins/... | true | true | protected void saveFileMeasures(DecoratorContext context, Collection<Rule> rules) {
CountDistributionBuilder distrib = new CountDistributionBuilder(TaglistMetrics.TAGS_DISTRIBUTION);
int mandatory = 0;
int optional = 0;
int noSonarTags = 0;
for (Rule rule : rules) {
ActiveRule activeRule = r... | protected void saveFileMeasures(DecoratorContext context, Collection<Rule> rules) {
CountDistributionBuilder distrib = new CountDistributionBuilder(TaglistMetrics.TAGS_DISTRIBUTION);
int mandatory = 0;
int optional = 0;
int noSonarTags = 0;
for (Rule rule : rules) {
ActiveRule activeRule = r... |
diff --git a/JTT/src/com/aragaer/jtt/JTTService.java b/JTT/src/com/aragaer/jtt/JTTService.java
index b6c40a6..8021d9f 100644
--- a/JTT/src/com/aragaer/jtt/JTTService.java
+++ b/JTT/src/com/aragaer/jtt/JTTService.java
@@ -1,252 +1,254 @@
package com.aragaer.jtt;
import java.text.DateFormat;
import java.text.SimpleD... | false | true | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_TOGGLE_NOTIFY:
notify = msg.getData().getBoolean("notify");
if (notify)
notify_helper(ticker.hn, ticker.hf);
else
nm.cancel(APP_ID... | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_TOGGLE_NOTIFY:
notify = msg.getData().getBoolean("notify");
if (notify)
notify_helper(ticker.hn, ticker.hf);
else
nm.cancel(APP_ID... |
diff --git a/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java b/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java
index be57cfa85..25c744488 100644
--- a/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java
+++ b/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.... | false | true | protected String createJSRActionURI(PortletURL url) throws JspException {
// Builds a URI containing the actin and associated params
RenderResponse res = (RenderResponse) pageContext.getAttribute(SportletProperties.RENDER_RESPONSE, PageContext.REQUEST_SCOPE);
this.actionURL = (PortletURLImpl... | protected String createJSRActionURI(PortletURL url) throws JspException {
// Builds a URI containing the actin and associated params
RenderResponse res = (RenderResponse) pageContext.getAttribute(SportletProperties.RENDER_RESPONSE, PageContext.REQUEST_SCOPE);
this.actionURL = (PortletURLImpl... |
diff --git a/src/cz/muni/fi/spc/SchedVis/ui/SliderPanel.java b/src/cz/muni/fi/spc/SchedVis/ui/SliderPanel.java
index 2bb8733..a717393 100644
--- a/src/cz/muni/fi/spc/SchedVis/ui/SliderPanel.java
+++ b/src/cz/muni/fi/spc/SchedVis/ui/SliderPanel.java
@@ -1,188 +1,188 @@
/*
* This file is part of SchedVis.
*
* Sch... | true | true | public void stateChanged(final ChangeEvent e) {
final Object src = e.getSource();
if (src.equals(this.tlsm)) {
if (this.tlsm.getValue() <= 1) {
return;
}
Integer value = this.tlsm.getValue();
if (!Event.existsTick(value)) {
this.tlsm.setValue(Event.getPrevious(value).getVirtualClock());
}
... | public void stateChanged(final ChangeEvent e) {
final Object src = e.getSource();
if (src.equals(this.tlsm)) {
if (this.tlsm.getValue() < 1) {
return;
}
Integer value = this.tlsm.getValue();
if (!Event.existsTick(value)) {
this.tlsm.setValue(Event.getPrevious(value).getVirtualClock());
}
... |
diff --git a/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java b/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java
index de3c66e81..9ac6a1ece 100644
--- a/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java
+++ b/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java
@@ -1,116 +1,117 @@
/*
* Copyright 2010 Mari... | false | true | public static boolean loadLibrary(String libName, String classPath,
String outputPath) {
// if (new File(outputPath + libName).exists())
// return true;
InputStream in = null;
BufferedOutputStream out = null;
try {
in = GdxNativesLoader.class
.getResourceAsStream(classPath + libName);
out = ne... | public static boolean loadLibrary(String libName, String classPath,
String outputPath) {
// if (new File(outputPath + libName).exists())
// return true;
InputStream in = null;
BufferedOutputStream out = null;
try {
String tmpName = System.nanoTime() + libName;
in = GdxNativesLoader.class
.getR... |
diff --git a/src/org/apache/fop/fo/flow/ExternalGraphic.java b/src/org/apache/fop/fo/flow/ExternalGraphic.java
index ff175c124..e5ce14930 100644
--- a/src/org/apache/fop/fo/flow/ExternalGraphic.java
+++ b/src/org/apache/fop/fo/flow/ExternalGraphic.java
@@ -1,267 +1,268 @@
/*
* $Id$
* Copyright (C) 2001 The Apache ... | true | true | public Status layout(Area area) throws FOPException {
if (this.marker == START) {
// Common Accessibility Properties
AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
AuralProps mAurProps = propMgr.getAuralProps();
... | public Status layout(Area area) throws FOPException {
if (this.marker == START) {
// Common Accessibility Properties
AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
AuralProps mAurProps = propMgr.getAuralProps();
... |
diff --git a/achartengine/src/org/achartengine/chart/BarChart.java b/achartengine/src/org/achartengine/chart/BarChart.java
index 0bba697..3ac69e9 100644
--- a/achartengine/src/org/achartengine/chart/BarChart.java
+++ b/achartengine/src/org/achartengine/chart/BarChart.java
@@ -1,315 +1,319 @@
/**
* Copyright (C) 2009... | true | true | private void drawBar(Canvas canvas, float xMin, float yMin, float xMax, float yMax, int scale,
int seriesIndex, Paint paint) {
SimpleSeriesRenderer renderer = mRenderer.getSeriesRendererAt(seriesIndex);
if (renderer.isGradientEnabled()) {
float minY = (float) toScreenPoint(new double[] { 0, render... | private void drawBar(Canvas canvas, float xMin, float yMin, float xMax, float yMax, int scale,
int seriesIndex, Paint paint) {
SimpleSeriesRenderer renderer = mRenderer.getSeriesRendererAt(seriesIndex);
if (renderer.isGradientEnabled()) {
float minY = (float) toScreenPoint(new double[] { 0, render... |
diff --git a/extrabiomes/src/common/extrabiomes/blocks/BlockCrackedSand.java b/extrabiomes/src/common/extrabiomes/blocks/BlockCrackedSand.java
index b962b748..9ced37cc 100644
--- a/extrabiomes/src/common/extrabiomes/blocks/BlockCrackedSand.java
+++ b/extrabiomes/src/common/extrabiomes/blocks/BlockCrackedSand.java
@@ -1... | true | true | private void decayBlock(World world, int x, int y, int z) {
final int id = world.getBlockId(x, y, z);
if (id == tilledField.blockID) {
final int metadata = world.getBlockMetadata(x, y, z);
if (metadata != 0)
world.setBlockMetadataWithNotify(x, y, z, metadata - 1);
else
world.setBlockWithNotify(x,... | private void decayBlock(World world, int x, int y, int z) {
final int id = world.getBlockId(x, y, z);
if (id == tilledField.blockID) {
final int metadata = world.getBlockMetadata(x, y, z);
if (metadata != 0)
world.setBlockMetadataWithNotify(x, y, z, metadata - 1);
else
world.setBlockWithNotify(x,... |
diff --git a/BuyIt/src/main/java/com/epam/lab/buyit/controller/web/servlet/CategoryServlet.java b/BuyIt/src/main/java/com/epam/lab/buyit/controller/web/servlet/CategoryServlet.java
index 6b21b0e..77a8b61 100644
--- a/BuyIt/src/main/java/com/epam/lab/buyit/controller/web/servlet/CategoryServlet.java
+++ b/BuyIt/src/main... | true | true | protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
int subCategory_id = 0;
if (request.getParameter("id") != null)
subCategory_id = Integer.parseInt(request.getParameter("id"));
int page = 1;
if(request.getParameter("page") != null)... | protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
int subCategory_id = 0;
if (request.getParameter("id") != null)
subCategory_id = Integer.parseInt(request.getParameter("id"));
int page = 1;
if(request.getParameter("page") != null)... |
diff --git a/join-tester/src/main/java/joins/queries/QueryGenerator.java b/join-tester/src/main/java/joins/queries/QueryGenerator.java
index 1e862cc..7c28019 100644
--- a/join-tester/src/main/java/joins/queries/QueryGenerator.java
+++ b/join-tester/src/main/java/joins/queries/QueryGenerator.java
@@ -1,136 +1,136 @@
pa... | false | true | public static void main(String[] args) throws IOException {
final List<QueryFile> consumers = Arrays
.asList(new QueryFile("queries-join.txt", "q=text_all:(%s)" +
// "&fl=id,score&sort=score desc&fq={!join from=few_join_id to=few_id}acl:%s",
"&fl=id,score&sort=score desc&fq={!join from=join_id to=id}ac... | public static void main(String[] args) throws IOException {
final List<QueryFile> consumers = Arrays
.asList(new QueryFile("queries-join.txt", "q=text_all:(%s)" +
// "&fl=id,score&sort=score desc&fq={!join from=few_join_id to=few_id}acl:%s",
"&fl=id,score&sort=score desc&fq={!join from=join_id to=id}ac... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/HeaderMediatorSerializer.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/HeaderMediatorSerializer.java
index ae9e9b276..7f93b4073 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/HeaderMediatorSeria... | true | true | public OMElement serializeMediator(OMElement parent, Mediator m) {
if (!(m instanceof HeaderMediator)) {
handleException("Unsupported mediator passed in for serialization : " + m.getType());
}
HeaderMediator mediator = (HeaderMediator) m;
OMElement header = fac.createOM... | public OMElement serializeMediator(OMElement parent, Mediator m) {
if (!(m instanceof HeaderMediator)) {
handleException("Unsupported mediator passed in for serialization : " + m.getType());
}
HeaderMediator mediator = (HeaderMediator) m;
OMElement header = fac.createOM... |
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConfigurationElementSorter.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConfigurationElementSorter.java
index 9b0f7a987..a57ae978e 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/Con... | true | true | private void initialize(Object[] elements) {
int length= elements.length;
fDescriptorMapping= new HashMap(length);
fPrereqsMapping= new HashMap(length);
Set fBundleSet= new HashSet(length);
for (int i= 0; i < length; i++) {
IExtension extension = getConfigurationElement(elements[i]).getDecla... | private void initialize(Object[] elements) {
int length= elements.length;
fDescriptorMapping= new HashMap(length);
fPrereqsMapping= new HashMap(length);
Set fBundleSet= new HashSet(length);
for (int i= 0; i < length; i++) {
IExtension extension = getConfigurationElement(elements[i]).getDecla... |
diff --git a/sonar-php-plugin/src/test/java/org/sonar/plugins/php/core/profiles/SonarWayProfileTest.java b/sonar-php-plugin/src/test/java/org/sonar/plugins/php/core/profiles/SonarWayProfileTest.java
index 720a9151..a2b05ef8 100644
--- a/sonar-php-plugin/src/test/java/org/sonar/plugins/php/core/profiles/SonarWayProfileT... | true | true | public void testCreateProfileValidationMessages() {
ServerFileSystem fileSystem = mock(ServerFileSystem.class);
PhpCodeSnifferRuleRepository repository = new PhpCodeSnifferRuleRepository(fileSystem, new XMLRuleParser());
List<Rule> rules = repository.createRules();
RuleFinder ruleFinder = new MockPhpC... | public void testCreateProfileValidationMessages() {
ServerFileSystem fileSystem = mock(ServerFileSystem.class);
PhpCodeSnifferRuleRepository repository = new PhpCodeSnifferRuleRepository(fileSystem, new XMLRuleParser());
List<Rule> rules = repository.createRules();
RuleFinder ruleFinder = new MockPhpC... |
diff --git a/src/mitzi/MitziBrain.java b/src/mitzi/MitziBrain.java
index 2a92de1..d96194b 100644
--- a/src/mitzi/MitziBrain.java
+++ b/src/mitzi/MitziBrain.java
@@ -1,325 +1,325 @@
package mitzi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Timer;
import java... | true | true | private AnalysisResult evalBoard(IPosition position, int total_depth,
int depth, int alpha, int beta) {
// ---------------------------------------------------------------------------------------
int alpha_old = alpha;
// Cache lookup
AnalysisResult entry = ResultCache.getResult(position);
if (entry != n... | private AnalysisResult evalBoard(IPosition position, int total_depth,
int depth, int alpha, int beta) {
// ---------------------------------------------------------------------------------------
int alpha_old = alpha;
// Cache lookup
AnalysisResult entry = ResultCache.getResult(position);
if (entry != n... |
diff --git a/map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/service/callhandling/ProvideRoamingNumberResponseImpl.java b/map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/service/callhandling/ProvideRoamingNumberResponseImpl.java
index b76fe1233..af9e2ca46 100644
--- a/map/map-impl/src/main/java/or... | true | true | private void _decode(AsnInputStream ansIS, int length) throws MAPParsingComponentException, IOException, AsnException {
this.roamingNumber = null;
this.extensionContainer = null;
this.releaseResourcesSupported = false;
this.vmscAddress = null;
AsnInputStream ais = ansIS.readSequenceStreamData(length);
... | private void _decode(AsnInputStream ansIS, int length) throws MAPParsingComponentException, IOException, AsnException {
this.roamingNumber = null;
this.extensionContainer = null;
this.releaseResourcesSupported = false;
this.vmscAddress = null;
AsnInputStream ais = ansIS.readSequenceStreamData(length);
... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/DataSetRuntime.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/DataSetRuntime.java
index e54b8281d..917bd8416 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/DataSetRuntime.java
+... | true | true | protected DataSetRuntime( IBaseDataSetDesign dataSetDesign, PreparedQuery.Executor queryExecutor)
{
this.dataSetDesign = dataSetDesign;
this.queryExecutor = queryExecutor;
isOpen = true;
eventHandler = dataSetDesign.getEventHandler();
/*
* TODO: TEMPORARY the follow code is temporary. It will be re... | protected DataSetRuntime( IBaseDataSetDesign dataSetDesign, PreparedQuery.Executor queryExecutor)
{
this.dataSetDesign = dataSetDesign;
this.queryExecutor = queryExecutor;
isOpen = true;
if ( dataSetDesign != null )
eventHandler = dataSetDesign.getEventHandler();
/*
* TODO: TEMPORARY the follow ... |
diff --git a/meshkeeper-api/src/main/java/org/fusesource/meshkeeper/control/ControlServer.java b/meshkeeper-api/src/main/java/org/fusesource/meshkeeper/control/ControlServer.java
index 3cbd15c..fe910eb 100644
--- a/meshkeeper-api/src/main/java/org/fusesource/meshkeeper/control/ControlServer.java
+++ b/meshkeeper-api/sr... | true | true | public void start() throws Exception {
shutdownHook = new Thread("MeshKeeper Control Server Shutdown Hook") {
public void run() {
log.debug("Executing Shutdown Hook for " + ControlServer.this);
try {
ControlServer.this.destroy();
... | public void start() throws Exception {
shutdownHook = new Thread("MeshKeeper Control Server Shutdown Hook") {
public void run() {
log.debug("Executing Shutdown Hook for " + ControlServer.this);
try {
ControlServer.this.destroy();
... |
diff --git a/src/org/openid4java/discovery/xrds/XrdsParserImpl.java b/src/org/openid4java/discovery/xrds/XrdsParserImpl.java
index b39a48c..1be41fb 100644
--- a/src/org/openid4java/discovery/xrds/XrdsParserImpl.java
+++ b/src/org/openid4java/discovery/xrds/XrdsParserImpl.java
@@ -1,208 +1,206 @@
package org.openid4jav... | true | true | public List parseXrds(String input, Set targetTypes) throws DiscoveryException
{
if (DEBUG)
_log.debug("Parsing XRDS input for service types: " + Arrays.toString(targetTypes.toArray()));
Document document = parseXmlInput(input);
NodeList XRDs = document.getElementsByTagName... | public List parseXrds(String input, Set targetTypes) throws DiscoveryException
{
if (DEBUG)
_log.debug("Parsing XRDS input for service types: " + Arrays.toString(targetTypes.toArray()));
Document document = parseXmlInput(input);
NodeList XRDs = document.getElementsByTagName... |
diff --git a/bundles/net.i2cat.luminis.ROADM.repository/src/main/java/net/i2cat/luminis/ROADM/repository/ROADMBootstrapper.java b/bundles/net.i2cat.luminis.ROADM.repository/src/main/java/net/i2cat/luminis/ROADM/repository/ROADMBootstrapper.java
index 181f07a65..6dc734872 100644
--- a/bundles/net.i2cat.luminis.ROADM.rep... | true | true | public void bootstrap(IResource resource) throws ResourceException {
log.info("Loading bootstrap to start resource..");
oldModel = resource.getModel();
resource.setModel(new ProteusOpticalSwitch()); // TODO LUMINIS WORK WITH OPTICAL SWITCHES OR WITH PROTEUS OPTICAL SWITCHES
// set name in model
// FIXME do ... | public void bootstrap(IResource resource) throws ResourceException {
log.info("Loading bootstrap to start resource..");
oldModel = resource.getModel();
resource.setModel(new ProteusOpticalSwitch()); // TODO LUMINIS WORK WITH OPTICAL SWITCHES OR WITH PROTEUS OPTICAL SWITCHES
// set name in model
// FIXME do ... |
diff --git a/test/unit/org/apache/cassandra/cli/CliTest.java b/test/unit/org/apache/cassandra/cli/CliTest.java
index b6b08ac3..d1339644 100644
--- a/test/unit/org/apache/cassandra/cli/CliTest.java
+++ b/test/unit/org/apache/cassandra/cli/CliTest.java
@@ -1,210 +1,210 @@
/**
* Licensed to the Apache Software Foundati... | false | true | public void testCli() throws IOException, TTransportException, ConfigurationException
{
new EmbeddedCassandraService().start();
// new error/output streams for CliSessionState
ByteArrayOutputStream errStream = new ByteArrayOutputStream();
ByteArrayOutputStream outStream = new By... | public void testCli() throws IOException, TTransportException, ConfigurationException
{
new EmbeddedCassandraService().start();
// new error/output streams for CliSessionState
ByteArrayOutputStream errStream = new ByteArrayOutputStream();
ByteArrayOutputStream outStream = new By... |
diff --git a/common/logisticspipes/renderer/LogisticsHUDRenderer.java b/common/logisticspipes/renderer/LogisticsHUDRenderer.java
index bde32e8a..0138693c 100644
--- a/common/logisticspipes/renderer/LogisticsHUDRenderer.java
+++ b/common/logisticspipes/renderer/LogisticsHUDRenderer.java
@@ -1,505 +1,506 @@
package logi... | true | true | public void renderWorldRelative(long renderTicks, float partialTick) {
if(!displayRenderer()) return;
Minecraft mc = FMLClientHandler.instance().getClient();
EntityPlayer player = mc.thePlayer;
if(list.size() == 0 || Math.hypot(lastXPos - player.posX,Math.hypot(lastYPos - player.posY, lastZPos - player.posZ)) ... | public void renderWorldRelative(long renderTicks, float partialTick) {
if(!displayRenderer()) return;
Minecraft mc = FMLClientHandler.instance().getClient();
EntityPlayer player = mc.thePlayer;
if(list.size() == 0 || Math.hypot(lastXPos - player.posX,Math.hypot(lastYPos - player.posY, lastZPos - player.posZ)) ... |
diff --git a/src/org/remus/PipelineStatusView.java b/src/org/remus/PipelineStatusView.java
index 6913716..9298f10 100644
--- a/src/org/remus/PipelineStatusView.java
+++ b/src/org/remus/PipelineStatusView.java
@@ -1,70 +1,70 @@
package org.remus;
import java.io.FileNotFoundException;
import java.io.IOException;
im... | false | true | public void doGet(String name, Map params, String workerID,
Serializer serial, OutputStream os) throws FileNotFoundException {
if ( name.length() == 0 ) {
for ( RemusApplet applet : pipeline.getMembers() ) {
for ( KeyValuePair kv : applet.getDataStore().listKeyPairs(applet.getPath() + "/@status", RemusI... | public void doGet(String name, Map params, String workerID,
Serializer serial, OutputStream os) throws FileNotFoundException {
if ( name.length() == 0 ) {
for ( RemusApplet applet : pipeline.getMembers() ) {
for ( KeyValuePair kv : applet.getDataStore().listKeyPairs(applet.getPath() + "/@instance", Remu... |
diff --git a/SpagoBIProject/src/it/eng/spagobi/commons/presentation/tags/ScriptWizardTag.java b/SpagoBIProject/src/it/eng/spagobi/commons/presentation/tags/ScriptWizardTag.java
index 97a70f088..819d45c88 100644
--- a/SpagoBIProject/src/it/eng/spagobi/commons/presentation/tags/ScriptWizardTag.java
+++ b/SpagoBIProject/s... | false | true | public int doStartTag() throws JspException {
httpRequest = (HttpServletRequest) pageContext.getRequest();
requestContainer = ChannelUtilities.getRequestContainer(httpRequest);
responseContainer = ChannelUtilities.getResponseContainer(httpRequest);
urlBuilder = UrlBuilderFactory.getUrlBuilder();
msgBuilder ... | public int doStartTag() throws JspException {
httpRequest = (HttpServletRequest) pageContext.getRequest();
requestContainer = ChannelUtilities.getRequestContainer(httpRequest);
responseContainer = ChannelUtilities.getResponseContainer(httpRequest);
urlBuilder = UrlBuilderFactory.getUrlBuilder();
msgBuilder ... |
diff --git a/app/models/Chapter.java b/app/models/Chapter.java
index c511dea4..45b6a262 100644
--- a/app/models/Chapter.java
+++ b/app/models/Chapter.java
@@ -1,181 +1,181 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package models;
import controllers.Do... | true | true | public static void createChaptersFromAsset(Asset asset) {
System.out.println("Creating chapters from asset: " + asset.fileName + " , id: " + asset.id);
deleteOldChapters(asset);
try {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory... | public static void createChaptersFromAsset(Asset asset) {
System.out.println("Creating chapters from asset: " + asset.fileName + " , id: " + asset.id);
deleteOldChapters(asset);
try {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory... |
diff --git a/src/net/tweakcraft/tweakcart/util/BlockUtil.java b/src/net/tweakcraft/tweakcart/util/BlockUtil.java
index 11fd9da..b564ed3 100644
--- a/src/net/tweakcraft/tweakcart/util/BlockUtil.java
+++ b/src/net/tweakcraft/tweakcart/util/BlockUtil.java
@@ -1,78 +1,78 @@
/*
* Copyright (c) 2012.
*
* This program ... | true | true | public static Set<Sign> getSignLocationAround(Block toBlock, Direction cartDriveDirection) {
Set<Sign> signList = new HashSet<Sign>();
if(isSign(toBlock.getRelative(BlockFace.UP)))
signList.add((Sign)toBlock.getRelative(BlockFace.UP).getState());
switch (cartDriveDirection) {
... | public static Set<Sign> getSignLocationAround(Block toBlock, Direction cartDriveDirection) {
Set<Sign> signList = new HashSet<Sign>();
if(isSign(toBlock.getRelative(BlockFace.UP)))
signList.add((Sign)toBlock.getRelative(BlockFace.UP).getState());
switch (cartDriveDirection) {
... |
diff --git a/g3/TeamMegamindMapper.java b/g3/TeamMegamindMapper.java
index 534e4db..8939705 100644
--- a/g3/TeamMegamindMapper.java
+++ b/g3/TeamMegamindMapper.java
@@ -1,98 +1,97 @@
package mapthatset.g3;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import mapthatset.sim.*;... | true | true | private ArrayList< Integer > getNewMapping() {
ArrayList< Integer > alNewMapping = new ArrayList< Integer >();
Random rdmGenerator = new Random();
int randomChoice = rdmGenerator.nextInt(3); //creates a random choice of 0, 1 or 2
//int randomChoice = 2;
switch(randomChoice) {
case 0:
System.... | private ArrayList< Integer > getNewMapping() {
ArrayList< Integer > alNewMapping = new ArrayList< Integer >();
Random rdmGenerator = new Random();
int randomChoice = rdmGenerator.nextInt(3); //creates a random choice of 0, 1 or 2
//int randomChoice = 2;
switch(randomChoice) {
case 0:
System.... |
diff --git a/src/com/matburt/mobileorg/Services/TimeclockService.java b/src/com/matburt/mobileorg/Services/TimeclockService.java
index b451748..c9dd180 100644
--- a/src/com/matburt/mobileorg/Services/TimeclockService.java
+++ b/src/com/matburt/mobileorg/Services/TimeclockService.java
@@ -1,240 +1,240 @@
package com.ma... | false | true | private void showNotification(long node_id) {
PendingIntent contentIntent = PendingIntent.getActivity(this, 1,
new Intent(this, TimeclockDialog.class), 0);
Builder builder = new NotificationCompat.Builder(this);
builder.setSmallIcon(R.drawable.icon);
builder.setContentTitle(node.name);
builder.setC... | private void showNotification(long node_id) {
PendingIntent contentIntent = PendingIntent.getActivity(this, 1,
new Intent(this, TimeclockDialog.class), 0);
Builder builder = new NotificationCompat.Builder(this);
builder.setSmallIcon(R.drawable.timeclock_icon);
builder.setContentTitle(node.name);
bu... |
diff --git a/src/main/java/com/yasminapp/client/Base2K.java b/src/main/java/com/yasminapp/client/Base2K.java
index 8f1a148..71ebae8 100644
--- a/src/main/java/com/yasminapp/client/Base2K.java
+++ b/src/main/java/com/yasminapp/client/Base2K.java
@@ -1,97 +1,97 @@
package com.yasminapp.client;
public class Base2K {
... | true | true | public static String encode(byte[] buf) {
StringBuilder sb = new StringBuilder();
int value;
int chunks = buf.length / 11;
int offset = 0;
// process whole 11-byte chunks
// MSB-first
for (int i=0; i < chunks; i++) {
// 8/3
value = ((buf[offset] & 0xff << 3)) | ((buf[offset+1] ... | public static String encode(byte[] buf) {
StringBuilder sb = new StringBuilder();
int value;
int chunks = buf.length / 11;
int offset = 0;
// process whole 11-byte chunks
// MSB-first
for (int i=0; i < chunks; i++) {
// 8/3
value = ((buf[offset] & 0xff) << 3) | ((buf[offset+1] ... |
diff --git a/annotateservices/src/org/idiginfo/sciverse/services/SciVerseAnnotation.java b/annotateservices/src/org/idiginfo/sciverse/services/SciVerseAnnotation.java
index 265ca66..595ba50 100644
--- a/annotateservices/src/org/idiginfo/sciverse/services/SciVerseAnnotation.java
+++ b/annotateservices/src/org/idiginfo/s... | true | true | public String getPageurl() {
// TODO Auto-generated method stub
return null;
}
| public String getPageurl() {
// temp
// TODO Auto-generated method stub
return null;
}
|
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/query/parser/ExpressionParser.java b/araqne-logdb/src/main/java/org/araqne/logdb/query/parser/ExpressionParser.java
index ca57dd4f..a99955b9 100644
--- a/araqne-logdb/src/main/java/org/araqne/logdb/query/parser/ExpressionParser.java
+++ b/araqne-logdb/src/main/ja... | true | true | private static List<Term> convertToPostfix(List<Term> tokens) {
Stack<Term> opStack = new Stack<Term>();
List<Term> output = new ArrayList<Term>();
int i = 0;
int len = tokens.size();
while (i < len) {
Term token = tokens.get(i);
if (isDelimiter(token)) {
// need to pop operator and write to outp... | private static List<Term> convertToPostfix(List<Term> tokens) {
Stack<Term> opStack = new Stack<Term>();
List<Term> output = new ArrayList<Term>();
int i = 0;
int len = tokens.size();
while (i < len) {
Term token = tokens.get(i);
if (isDelimiter(token)) {
// need to pop operator and write to outp... |
diff --git a/pa1/src/to/richard/tsp/ElitismSurvivorSelection.java b/pa1/src/to/richard/tsp/ElitismSurvivorSelection.java
index 2a49463..ad9ea7e 100644
--- a/pa1/src/to/richard/tsp/ElitismSurvivorSelection.java
+++ b/pa1/src/to/richard/tsp/ElitismSurvivorSelection.java
@@ -1,59 +1,59 @@
package to.richard.tsp;
impor... | false | true | public List<Genotype> replace(List<Genotype> parents, List<Genotype> offspring) {
ArrayList<Pair<Double, Genotype>> fitnessParents = new ArrayList<Pair<Double, Genotype>>();
ArrayList<Pair<Double, Genotype>> fitnessOffspring = new ArrayList<Pair<Double, Genotype>>();
ArrayList<Genotype> next... | public List<Genotype> replace(List<Genotype> parents, List<Genotype> offspring) {
ArrayList<Pair<Double, Genotype>> fitnessParents = new ArrayList<Pair<Double, Genotype>>();
ArrayList<Pair<Double, Genotype>> fitnessOffspring = new ArrayList<Pair<Double, Genotype>>();
ArrayList<Genotype> next... |
diff --git a/hale/eu.esdihumboldt.hale.rcp.wizards.functions.core/src/eu/esdihumboldt/hale/rcp/wizards/functions/core/geometric/NetworkExpansionFunctionWizardPage.java b/hale/eu.esdihumboldt.hale.rcp.wizards.functions.core/src/eu/esdihumboldt/hale/rcp/wizards/functions/core/geometric/NetworkExpansionFunctionWizardPage.... | false | true | private void createConfigurationGroup(Composite parent) {
// define source group composite
Group configurationGroup = new Group(parent, SWT.NONE);
configurationGroup.setText("Define Network to Polygon Expansion");
configurationGroup.setLayout(new GridLayout());
GridData configurationAreaGD = new GridData(Gri... | private void createConfigurationGroup(Composite parent) {
// define source group composite
Group configurationGroup = new Group(parent, SWT.NONE);
configurationGroup.setText("Define Network to Polygon Expansion");
configurationGroup.setLayout(new GridLayout());
GridData configurationAreaGD = new GridData(Gri... |
diff --git a/src/main/java/org/jboss/loom/tools/report/adapters/IConfigFragmentAdapter.java b/src/main/java/org/jboss/loom/tools/report/adapters/IConfigFragmentAdapter.java
index 296aeaf..ff472ee 100644
--- a/src/main/java/org/jboss/loom/tools/report/adapters/IConfigFragmentAdapter.java
+++ b/src/main/java/org/jboss/lo... | true | true | public ConfigFragmentReportBean marshal( IConfigFragment fragment ) throws Exception {
return ConfigFragmentReportBean.from( fragment );
}
| public ConfigFragmentReportBean marshal( IConfigFragment fragment ) throws Exception {
if( fragment == null ) return null;
return ConfigFragmentReportBean.from( fragment );
}
|
diff --git a/LNReader/src/com/erakk/lnreader/task/LoadWacTask.java b/LNReader/src/com/erakk/lnreader/task/LoadWacTask.java
index 529437d..9a370c0 100644
--- a/LNReader/src/com/erakk/lnreader/task/LoadWacTask.java
+++ b/LNReader/src/com/erakk/lnreader/task/LoadWacTask.java
@@ -1,95 +1,95 @@
package com.erakk.lnreader.t... | true | true | private boolean loadFromWac(String wacName) {
Log.d(TAG, "Loading from WAC: " + wacName);
publishProgress(new CallbackEventData("Loading from WAC: " + wacName, source));
try {
FileInputStream is;
is = new FileInputStream(wacName);
return wr.readWebArchive(is);
} catch (Exception e) {
Log.e(TAG, "Fa... | private boolean loadFromWac(String wacName) {
Log.d(TAG, "Loading from WAC: " + wacName);
publishProgress(new CallbackEventData("Loading from WAC: " + wacName, source));
try {
FileInputStream is;
is = new FileInputStream(wacName);
return wr.readWebArchive(is);
} catch (Exception e) {
Log.e(TAG, "Fa... |
diff --git a/src/com/tactfactory/mda/meta/ClassCompletor.java b/src/com/tactfactory/mda/meta/ClassCompletor.java
index e852f6f9..f210fe70 100644
--- a/src/com/tactfactory/mda/meta/ClassCompletor.java
+++ b/src/com/tactfactory/mda/meta/ClassCompletor.java
@@ -1,144 +1,144 @@
package com.tactfactory.mda.meta;
import ... | true | true | private void updateRelations(ClassMetadata cm){
for(FieldMetadata fm : cm.relations.values()){ // For each relation in the class
RelationMetadata rel = fm.relation;
String targetEntity = rel.entity_ref;
if(rel.field_ref.isEmpty()){
ClassMetadata cm_ref = this.metas.get(targetEntity);
ArrayList<F... | private void updateRelations(ClassMetadata cm){
for(FieldMetadata fm : cm.relations.values()){ // For each relation in the class
RelationMetadata rel = fm.relation;
String targetEntity = rel.entity_ref;
if(rel.field_ref.isEmpty()){
ClassMetadata cm_ref = this.metas.get(targetEntity);
ArrayList<F... |
diff --git a/src/main/java/org/vosao/jsf/FileBean.java b/src/main/java/org/vosao/jsf/FileBean.java
index 57313b8..c208d2b 100644
--- a/src/main/java/org/vosao/jsf/FileBean.java
+++ b/src/main/java/org/vosao/jsf/FileBean.java
@@ -1,176 +1,176 @@
package org.vosao.jsf;
import java.io.Serializable;
import java.io.Unsup... | false | true | public String update() {
List<String> errors = getBusiness().getFileBusiness()
.validateBeforeUpdate(current);
if (errors.isEmpty()) {
byte[] data = content.getBytes();
current.setMdtime(new Date());
current.setSize(data.length);
current.setMimeType(MimeType.getContentTypeByExt(
FolderUtil.get... | public String update() throws UnsupportedEncodingException {
List<String> errors = getBusiness().getFileBusiness()
.validateBeforeUpdate(current);
if (errors.isEmpty()) {
byte[] data = content.getBytes("UTF-8");
current.setMdtime(new Date());
current.setSize(data.length);
current.setMimeType(MimeTy... |
diff --git a/source/RMG/PopulateReactions.java b/source/RMG/PopulateReactions.java
index bd5b4f2f..20718554 100644
--- a/source/RMG/PopulateReactions.java
+++ b/source/RMG/PopulateReactions.java
@@ -1,567 +1,571 @@
////////////////////////////////////////////////////////////////////////////////
//
// RMG - Reaction ... | true | true | public static void main(String[] args) {
initializeSystemProperties();
try {
ChemGraph.readForbiddenStructure();
} catch (IOException e1) {
System.err.println("PopulateReactions cannot locate forbiddenStructures.txt file");
e1.printStackTrace();
}
// Creating a new ReactionModelGenerator so I can... | public static void main(String[] args) {
initializeSystemProperties();
try {
ChemGraph.readForbiddenStructure();
} catch (IOException e1) {
System.err.println("PopulateReactions cannot locate forbiddenStructures.txt file");
e1.printStackTrace();
}
// Creating a new ReactionModelGenerator so I can... |
diff --git a/common/cpw/mods/fml/common/ProxyInjector.java b/common/cpw/mods/fml/common/ProxyInjector.java
index 079462ec..b3c4055e 100644
--- a/common/cpw/mods/fml/common/ProxyInjector.java
+++ b/common/cpw/mods/fml/common/ProxyInjector.java
@@ -1,74 +1,74 @@
/*
* The FML Forge Mod Loader suite.
* Copyright (C) 2... | false | true | public static void inject(ModContainer mod, ASMDataTable data, Side side)
{
FMLLog.fine("Attempting to inject @SidedProxy classes into %s", mod.getModId());
Set<ASMData> targets = data.getAnnotationsFor(mod).get(Type.getDescriptor(SidedProxy.class));
ClassLoader mcl = Loader.instance().g... | public static void inject(ModContainer mod, ASMDataTable data, Side side)
{
FMLLog.fine("Attempting to inject @SidedProxy classes into %s", mod.getModId());
Set<ASMData> targets = data.getAnnotationsFor(mod).get(SidedProxy.class.getName());
ClassLoader mcl = Loader.instance().getModClass... |
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/ASTCache.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/ASTCache.java
index f6651c8d..0d527494 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/c... | true | true | public DartUnit getAST(CompilationUnit compilationUnit) {
CacheEntry entry = getOrCreateCacheEntry(compilationUnit);
if (entry.isStale(compilationUnit)) {
entry.ast = null;
DartLibraryImpl library = (DartLibraryImpl) compilationUnit.getLibrary();
if (library == null) {
try {
... | public DartUnit getAST(CompilationUnit compilationUnit) {
CacheEntry entry = getOrCreateCacheEntry(compilationUnit);
if (entry.isStale(compilationUnit)) {
entry.ast = null;
DartLibraryImpl library = (DartLibraryImpl) compilationUnit.getLibrary();
if (library == null) {
try {
... |
diff --git a/src/main/java/egovframework/com/guruguru/dashboard/state/controller/StateController.java b/src/main/java/egovframework/com/guruguru/dashboard/state/controller/StateController.java
index a5c5b14..6365e22 100644
--- a/src/main/java/egovframework/com/guruguru/dashboard/state/controller/StateController.java
++... | false | true | public String getStateInfo() {
String os = System.getProperty("os.name");
Map<String, Object> map = new HashMap<String, Object>();
if (os.equalsIgnoreCase("linux")) {
getMemroyInfo(map);
}
// System.out.println(System.getProperty("os.name"));
//
// String line = "";
//
// try {
// ProcessB... | public Map<String, Object> getStateInfo() {
String os = System.getProperty("os.name");
Map<String, Object> map = new HashMap<String, Object>();
if (os.equalsIgnoreCase("linux")) {
getMemroyInfo(map);
}
// System.out.println(System.getProperty("os.name"));
//
// String line = "";
//
// try {
... |
diff --git a/modules/org.restlet/src/org/restlet/engine/io/IoUtils.java b/modules/org.restlet/src/org/restlet/engine/io/IoUtils.java
index 7d07edd4e..7ea7256ad 100644
--- a/modules/org.restlet/src/org/restlet/engine/io/IoUtils.java
+++ b/modules/org.restlet/src/org/restlet/engine/io/IoUtils.java
@@ -1,77 +1,77 @@
/**
... | true | true | public static int getBufferSize() {
int result = BUFFER_SIZE;
// [ifndef gwt]
try {
result = Integer.parseInt(System.getProperties().getProperty(
"org.restlet.engine.io.buffer.size"));
} catch (NumberFormatException nfe) {
result = BUFFER_... | public static int getBufferSize() {
int result = BUFFER_SIZE;
// [ifndef gwt]
try {
result = Integer.parseInt(System
.getProperty("org.restlet.engine.io.buffer.size"));
} catch (NumberFormatException nfe) {
result = BUFFER_SIZE;
}
... |
diff --git a/src/com/atlan1/mctpo/mobile/MainGamePanel.java b/src/com/atlan1/mctpo/mobile/MainGamePanel.java
index 3e005a1..92ed6be 100644
--- a/src/com/atlan1/mctpo/mobile/MainGamePanel.java
+++ b/src/com/atlan1/mctpo/mobile/MainGamePanel.java
@@ -1,206 +1,207 @@
package com.atlan1.mctpo.mobile;
import com.atlan1.... | true | true | public boolean onTouchEvent(MotionEvent event) {
synchronized (this) {
switch(event.getAction()) {
case MotionEvent.ACTION_DOWN:
float eventX = event.getX();
float eventY = event.getY();
Slot[] slots = MCTPO.character.inventory.slots;
if ((eventX >= MCTPO.size.width - Character.modeButto... | public boolean onTouchEvent(MotionEvent event) {
synchronized (this) {
switch(event.getAction()) {
case MotionEvent.ACTION_DOWN:
float eventX = event.getX();
float eventY = event.getY();
Slot[] slots = MCTPO.character.inventory.slots;
if ((eventX >= MCTPO.size.width - Character.modeButto... |
diff --git a/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.java b/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.java
index 6abab0b..727dec0 100644
--- a/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.java
+++ b/jboss-5/src/main/java/org/mobicents/ha/javax/sip/SipStackImpl.... | true | true | public void start() throws ProviderDoesNotExistException, SipException {
super.start();
try {
if(logger.isLoggingEnabled(StackLogger.TRACE_INFO)) {
logger.logInfo("Adding notification listener for logging mbean \"" + LOG4J_SERVICE_MBEAN_NAME + "\" to server " + getMBeanServer());
}
getMBeanServer().... | public void start() throws ProviderDoesNotExistException, SipException {
super.start();
try {
if(logger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
logger.logDebug("Adding notification listener for logging mbean \"" + LOG4J_SERVICE_MBEAN_NAME + "\" to server " + getMBeanServer());
}
getMBeanServer(... |
diff --git a/src/awana/database/Book.java b/src/awana/database/Book.java
index 9067944..2977037 100644
--- a/src/awana/database/Book.java
+++ b/src/awana/database/Book.java
@@ -1,219 +1,219 @@
package awana.database;
import static awana.database.DatabaseWrapper.bookPrefix;
import static awana.database.DatabaseWrap... | false | true | public String getSaveString() {
StringBuilder builder = new StringBuilder();
Section s;
for (int j = 0; j < getNumberOfSections(); j++) {
s = getSection(j);
builder.append("`").append(bookPrefix).append(getGroup()).append("_").append(getName()).append("_").append(s.getName()).append(completedPostfix);
b... | public String getSaveString() {
StringBuilder builder = new StringBuilder();
Section s;
for (int j = 0; j < getNumberOfSections(); j++) {
s = getSection(j);
builder.append("`").append(bookPrefix).append(getGroup()).append("_").append(getName()).append("_").append(s.getName()).append(completedPostfix);
b... |
diff --git a/grails/test/scaffolding/org/codehaus/groovy/grails/scaffolding/ControllerScaffoldingTests.java b/grails/test/scaffolding/org/codehaus/groovy/grails/scaffolding/ControllerScaffoldingTests.java
index 32bba5924..37293f8e6 100644
--- a/grails/test/scaffolding/org/codehaus/groovy/grails/scaffolding/ControllerSc... | false | true | protected void onSetUp() throws Exception {
GroovyClassLoader cl = new GroovyClassLoader();
Thread.currentThread().setContextClassLoader(cl);
Class tmpClass = cl.parseClass( "class ScaffoldController {\n" +
"@Property boolean scaffold = true" +
"}" );
Class tmpClass2 = cl.parseClass( "class S... | protected void onSetUp() throws Exception {
GroovyClassLoader cl = new GroovyClassLoader();
Thread.currentThread().setContextClassLoader(cl);
Class tmpClass = cl.parseClass( "class ScaffoldController {\n" +
"boolean scaffold = true" +
"}" );
Class tmpClass2 = cl.parseClass( "class Scaffold {\... |
diff --git a/api/src/test/java/org/openmrs/util/UserByNameComparatorTest.java b/api/src/test/java/org/openmrs/util/UserByNameComparatorTest.java
index 51c43d88..019c9de8 100755
--- a/api/src/test/java/org/openmrs/util/UserByNameComparatorTest.java
+++ b/api/src/test/java/org/openmrs/util/UserByNameComparatorTest.java
@... | true | true | public void compare_shouldSortUsersByPersonNames() throws Exception {
Person person1 = new Person();
person1.addName(new PersonName("givenName", "midsdleName", "familyName"));
User user1 = new User(person1);
Person person2 = new Person();
person2.addName(new PersonName("givenName", "middleNamf", "familyNa... | public void compare_shouldSortUsersByPersonNames() throws Exception {
Person person1 = new Person();
person1.addName(new PersonName("givenName", "middleName", "familyName"));
User user1 = new User(person1);
Person person2 = new Person();
person2.addName(new PersonName("givenName", "middleNamf", "familyNam... |
diff --git a/src/main/java/com/bna/test.java b/src/main/java/com/bna/test.java
index 032a6f9..05c1146 100644
--- a/src/main/java/com/bna/test.java
+++ b/src/main/java/com/bna/test.java
@@ -1,12 +1,12 @@
package com.bna;
import java.io.IOException;
import javax.servlet.http.*;
public class test extends HttpServl... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, world");
}
| public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("<h1>BNA Test Page</h1>");
}
|
diff --git a/src/main/java/org/exolab/castor/xml/schema/util/DatatypeHandler.java b/src/main/java/org/exolab/castor/xml/schema/util/DatatypeHandler.java
index 67f72662..7f6698a6 100644
--- a/src/main/java/org/exolab/castor/xml/schema/util/DatatypeHandler.java
+++ b/src/main/java/org/exolab/castor/xml/schema/util/Dataty... | true | true | public static String guessType(String value) {
if (value == null) return null;
//-- If string is empty...not much we
//-- can do...
if (value.length() == 0) return STRING_TYPE;
//-- check for integer, must be done before check for long
try {
Inte... | public static String guessType(String value) {
if (value == null) return null;
//-- If string is empty...not much we
//-- can do...
if (value.length() == 0) return STRING_TYPE;
//-- check for integer, must be done before check for long
try {
Inte... |
diff --git a/smartuser/smart-user-ui/module/src/main/java/com/smartitengineering/user/ui/AddUserTopComponent.java b/smartuser/smart-user-ui/module/src/main/java/com/smartitengineering/user/ui/AddUserTopComponent.java
index bc34d775..e6d25abe 100644
--- a/smartuser/smart-user-ui/module/src/main/java/com/smartitengineeri... | false | true | private void initComponents() {
baseScrollPane = new javax.swing.JScrollPane();
basePanel = new javax.swing.JPanel();
bottomPanel = new javax.swing.JPanel();
saveButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
addUserTabbedPane = new jav... | private void initComponents() {
baseScrollPane = new javax.swing.JScrollPane();
basePanel = new javax.swing.JPanel();
bottomPanel = new javax.swing.JPanel();
saveButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
addUserTabbedPane = new jav... |
diff --git a/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java
index 24f9390af..af16b23f3 100644
--- a/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java
+++ b/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java
@@ -1,1854 +1,1855 ... | false | true | protected void service(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// Transformer and output stream for the result
UIDLTransformer transformer = null;
HttpVariableMap variableMap = null;
OutputStream out = response.getOutputStream();
HashSet currentlyD... | protected void service(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// Transformer and output stream for the result
UIDLTransformer transformer = null;
HttpVariableMap variableMap = null;
OutputStream out = response.getOutputStream();
HashSet currentlyD... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNUpdateEditor.java b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNUpdateEditor.java
index 059c32b5b..385c12a8c 100644
--- a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNUpdateEditor.java
+++ b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNUpdat... | false | true | public void closeFile(String commitPath, String textChecksum) throws SVNException {
// check checksum.
String checksum = null;
if (myCurrentFile.myDiffWindows != null && textChecksum != null) {
File baseTmpFile = myCurrentFile.getDirectory().getBaseFile(myCurrentFile.Name, true);... | public void closeFile(String commitPath, String textChecksum) throws SVNException {
// check checksum.
String checksum = null;
if (myCurrentFile.myDiffWindows != null && textChecksum != null) {
File baseTmpFile = myCurrentFile.getDirectory().getBaseFile(myCurrentFile.Name, true);... |
diff --git a/src/framework/java/com/flexive/shared/structure/FxPropertyAssignment.java b/src/framework/java/com/flexive/shared/structure/FxPropertyAssignment.java
index c79df4ff..2d65400b 100644
--- a/src/framework/java/com/flexive/shared/structure/FxPropertyAssignment.java
+++ b/src/framework/java/com/flexive/shared/s... | true | true | public List<FxPropertyAssignment> getDerivedAssignments(FxEnvironment environment) {
final List<FxPropertyAssignment> result = new ArrayList<FxPropertyAssignment>();
// get the base assignment ID, i.e. the assignment ID that will be used for derived types
final long baseAssignmentId =
... | public List<FxPropertyAssignment> getDerivedAssignments(FxEnvironment environment) {
final List<FxPropertyAssignment> result = new ArrayList<FxPropertyAssignment>();
// get the base assignment ID, i.e. the assignment ID that will be used for derived types
final long baseAssignmentId =
... |
diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java
index 6507dd0f3..1ca616c6e 100644
--- a/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java
+++ b/activem... | false | true | public void testVirtualTopicFailover() throws Exception {
MessageConsumer qConsumer = createConsumer(session, new ActiveMQQueue("Consumer.A.VirtualTopic.TA1"));
assertNull("No message there yet", qConsumer.receive(1000));
qConsumer.close();
master.stop();
assertTrue("slave s... | public void testVirtualTopicFailover() throws Exception {
MessageConsumer qConsumer = session.createConsumer(new ActiveMQQueue("Consumer.A.VirtualTopic.TA1"));
assertNull("No message there yet", qConsumer.receive(1000));
qConsumer.close();
master.stop();
assertTrue("slave st... |
diff --git a/src/xmpp/extensions/IqPing.java b/src/xmpp/extensions/IqPing.java
index a653900a..c12043f9 100644
--- a/src/xmpp/extensions/IqPing.java
+++ b/src/xmpp/extensions/IqPing.java
@@ -1,110 +1,110 @@
/*
* IqPing.java
* Copyright (c) 2006-2008, Daniel Apatin (ad), http://apatin.net.ru
*
* This program is... | true | true | public int blockArrived(JabberDataBlock data) {
if (!(data instanceof Iq))
return BLOCK_REJECTED;
String type=data.getTypeAttribute();
String from=data.getAttribute("from");
String id=data.getAttribute("id");
if (type.equals("get") || type.equal... | public int blockArrived(JabberDataBlock data) {
if (!(data instanceof Iq))
return BLOCK_REJECTED;
String type=data.getTypeAttribute();
String from=data.getAttribute("from");
String id=data.getAttribute("id");
if (type.equals("result") || type.eq... |
diff --git a/src/main/java/org/mybatis/spring/mapper/MapperScannerConfigurer.java b/src/main/java/org/mybatis/spring/mapper/MapperScannerConfigurer.java
index eb2f0846..57187500 100644
--- a/src/main/java/org/mybatis/spring/mapper/MapperScannerConfigurer.java
+++ b/src/main/java/org/mybatis/spring/mapper/MapperScannerC... | false | true | protected Set<BeanDefinitionHolder> doScan(String... basePackages) {
Set<BeanDefinitionHolder> beanDefinitions = super.doScan(basePackages);
if (beanDefinitions.isEmpty()) {
logger.warn("No MyBatis mapper was found in '" + MapperScannerConfigurer.this.basePackage
+ "' package. Pleas... | protected Set<BeanDefinitionHolder> doScan(String... basePackages) {
Set<BeanDefinitionHolder> beanDefinitions = super.doScan(basePackages);
if (beanDefinitions.isEmpty()) {
logger.warn("No MyBatis mapper was found in '" + MapperScannerConfigurer.this.basePackage
+ "' package. Pleas... |
diff --git a/src/org/wikipedia/NearMePlugin.java b/src/org/wikipedia/NearMePlugin.java
index 03a720d..549df20 100644
--- a/src/org/wikipedia/NearMePlugin.java
+++ b/src/org/wikipedia/NearMePlugin.java
@@ -1,43 +1,47 @@
package org.wikipedia;
import org.json.JSONArray;
import android.content.Intent;
import andro... | true | true | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult result = null;
this.callbackId = callbackId;
if(action.compareTo("startNearMeActivity") == 0) {
Intent intent = new Intent(ctx, NearMeActivity.class);
ctx.startActivityForResult((Plugin) this, intent, GET_GEONAME_U... | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult result = null;
this.callbackId = callbackId;
if(action.compareTo("startNearMeActivity") == 0) {
try {
Intent intent = new Intent(ctx, Class.forName("org.wikipedia.NearMeActivity"));
ctx.startActivityForResult(... |
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/statement/StatementTest.java b/test/src/com/redhat/ceylon/compiler/java/test/statement/StatementTest.java
index ad9fbe69c..569e50d7d 100755
--- a/test/src/com/redhat/ceylon/compiler/java/test/statement/StatementTest.java
+++ b/test/src/com/redhat/ceylon/compile... | true | true | public void testDynBlock(){
assertErrors("dynamic/Dynamic",
new CompilerError(22, "Dynamic not yet supported on the JVM"),
new CompilerError(25, "Dynamic not yet supported on the JVM"));
}
| public void testDynBlock(){
assertErrors("dynamic/Dynamic",
new CompilerError(22, "Dynamic not yet supported on the JVM"),
new CompilerError(26, "value type could not be inferred"));
}
|
diff --git a/test/src/com/rabbitmq/client/test/functional/UnexpectedFrames.java b/test/src/com/rabbitmq/client/test/functional/UnexpectedFrames.java
index ca7e1db1f..30b1d6811 100644
--- a/test/src/com/rabbitmq/client/test/functional/UnexpectedFrames.java
+++ b/test/src/com/rabbitmq/client/test/functional/UnexpectedFra... | true | true | private void expectUnexpectedFrameError(Confuser confuser) throws IOException {
ConnectionFactory factory = new ConnectionFactory();
Socket socket = factory.getSocketFactory().createSocket("localhost",
AMQP.PROTOCOL.PORT);
ConfusedFrameHandler handler = new ConfusedFrameHandl... | private void expectUnexpectedFrameError(Confuser confuser) throws IOException {
ConnectionFactory factory = new ConnectionFactory();
Socket socket = factory.getSocketFactory().createSocket("localhost",
AMQP.PROTOCOL.PORT);
ConfusedFrameHandler handler = new ConfusedFrameHandl... |
diff --git a/components/bio-formats/src/loci/formats/in/SlidebookReader.java b/components/bio-formats/src/loci/formats/in/SlidebookReader.java
index d8f6cb4de..46bb01be7 100644
--- a/components/bio-formats/src/loci/formats/in/SlidebookReader.java
+++ b/components/bio-formats/src/loci/formats/in/SlidebookReader.java
@@ ... | false | true | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
in = new RandomAccessInputStream(id);
isSpool = checkSuffix(id, "spl");
if (isSpool) {
metadataInPlanes = new Hashtable<Integer, Integer>();
}
LOGGER.info("Finding offsets to pixel data");
... | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
in = new RandomAccessInputStream(id);
isSpool = checkSuffix(id, "spl");
if (isSpool) {
metadataInPlanes = new Hashtable<Integer, Integer>();
}
LOGGER.info("Finding offsets to pixel data");
... |
diff --git a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.java b/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.java
index a63ec4bb2..db384bae9 100644
--- a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.java
+++ b/dvn-app/trunk/src/D... | false | true | public String create() {
// Long selectedgroup = this.getSelectedGroup();
String dtype = dataverseType;
String name = (String) dataverseName.getValue();
String alias = (String) dataverseAlias.getValue();
String strAffiliation = (String) affiliation.getV... | public String create() {
// Long selectedgroup = this.getSelectedGroup();
String dtype = dataverseType;
String name = (String) dataverseName.getValue();
String alias = (String) dataverseAlias.getValue();
String strAffiliation = (String) affiliation.getV... |
diff --git a/src/main/java/tconstruct/common/TContent.java b/src/main/java/tconstruct/common/TContent.java
index 923bbd3bc..e5787b3e1 100644
--- a/src/main/java/tconstruct/common/TContent.java
+++ b/src/main/java/tconstruct/common/TContent.java
@@ -1,968 +1,969 @@
package tconstruct.common;
import java.util.HashMap... | false | true | void registerBlocks ()
{
// Tool Station
TRepo.toolStationWood = new ToolStationBlock(Material.wood).setBlockName("ToolStation");
TRepo.toolForge = new ToolForgeBlock(Material.iron).setBlockName("ToolForge");
TRepo.craftingStationWood = new CraftingStationBlock(Material.wood).set... | void registerBlocks ()
{
// Tool Station
TRepo.toolStationWood = new ToolStationBlock(Material.wood).setBlockName("ToolStation");
TRepo.toolForge = new ToolForgeBlock(Material.iron).setBlockName("ToolForge");
TRepo.craftingStationWood = new CraftingStationBlock(Material.wood).set... |
diff --git a/srcj/com/sun/electric/tool/drc/Quick.java b/srcj/com/sun/electric/tool/drc/Quick.java
index e0697b50f..b8a9f4b39 100755
--- a/srcj/com/sun/electric/tool/drc/Quick.java
+++ b/srcj/com/sun/electric/tool/drc/Quick.java
@@ -1,4834 +1,4840 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Design System
*
... | true | true | private boolean badBoxInArea(Poly poly, Layer layer, Technology tech, int net, Geometric geom, AffineTransform trans,
int globalIndex, Rectangle2D bounds, Cell cell, int cellGlobalIndex,
Cell topCell, int topGlobalIndex, AffineTransform upTrans, boolean... | private boolean badBoxInArea(Poly poly, Layer layer, Technology tech, int net, Geometric geom, AffineTransform trans,
int globalIndex, Rectangle2D bounds, Cell cell, int cellGlobalIndex,
Cell topCell, int topGlobalIndex, AffineTransform upTrans, boolean... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/FileContentsHolder.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/FileContentsHolder.java
index f2ccc3b5d..b53d8bac7 100755
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/FileContentsHolder.java
+++ b/src/checkstyle/com/puppyc... | false | true | public void finishTree(DetailAST aRootAST)
{
// This seems like the right thing to do, but is called before
// the messages are passed to the filters.
//sFileContents.set(null);
}
| public void destroy()
{
// This needs to be called in destroy, rather than finishTree()
// as finishTree() is called before the messages are passed to the
// filters. Without calling remove, there is a memory leak.
FILE_CONTENTS.remove();
}
|
diff --git a/software/newtermform/src/java/gov/nih/nci/evs/browser/bean/SuggestionRequest.java b/software/newtermform/src/java/gov/nih/nci/evs/browser/bean/SuggestionRequest.java
index f2ada15..aab345f 100644
--- a/software/newtermform/src/java/gov/nih/nci/evs/browser/bean/SuggestionRequest.java
+++ b/software/newtermf... | true | true | public String submitForm() {
_request.getSession().setAttribute(WARNINGS, null);
_request.getSession().setAttribute(MESSAGE, null);
updateSessionAttributes();
String warnings = validate();
if (warnings.length() > 0) {
_request.getSession().setAttribute(WA... | public String submitForm() {
_request.getSession().setAttribute(WARNINGS, null);
_request.getSession().setAttribute(MESSAGE, null);
updateSessionAttributes();
String warnings = validate();
if (warnings.length() > 0) {
_request.getSession().setAttribute(WA... |
diff --git a/cobertura/src/net/sourceforge/cobertura/reporting/ComplexityCalculator.java b/cobertura/src/net/sourceforge/cobertura/reporting/ComplexityCalculator.java
index 252c5e9..01e07de 100644
--- a/cobertura/src/net/sourceforge/cobertura/reporting/ComplexityCalculator.java
+++ b/cobertura/src/net/sourceforge/cober... | true | true | private Complexity getAccumlatedCCNForSource(String sourceFileName, Source source) {
if (source == null)
{
return ZERO_COMPLEXITY;
}
Javancss javancss = new Javancss(source.getInputStream());
if (javancss.getLastErrorMessage() != null)
{
//there is an error while parsing the java file. log it
log... | private Complexity getAccumlatedCCNForSource(String sourceFileName, Source source) {
if (source == null)
{
return ZERO_COMPLEXITY;
}
if (!sourceFileName.endsWith(".java"))
{
return ZERO_COMPLEXITY;
}
Javancss javancss = new Javancss(source.getInputStream());
if (javancss.getLastErrorMessage() !=... |
diff --git a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
index e5eb7e5a..c981819e 100644
--- a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
+++ b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
@@ -1,148 +1,148 @@
/**
* This cla... | true | true | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_ARTIFICE, new AspectList(), -2, -1, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
research.... | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_ARTIFICE, new AspectList(), -2, -1, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
research.... |
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java
index 6ed10fe4..36c17a97 100644
--- a/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java
+++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java
@... | true | true | public View getView(final int position, View convertView, ViewGroup parent) {
final MuPDFPageView pageView;
if (convertView == null) {
if (mSharedHqBm == null || mSharedHqBm.getWidth() != parent.getWidth() || mSharedHqBm.getWidth() != parent.getWidth())
mSharedHqBm = Bitmap.createBitmap(parent.getWidth(), p... | public View getView(final int position, View convertView, ViewGroup parent) {
final MuPDFPageView pageView;
if (convertView == null) {
if (mSharedHqBm == null || mSharedHqBm.getWidth() != parent.getWidth() || mSharedHqBm.getHeight() != parent.getHeight())
mSharedHqBm = Bitmap.createBitmap(parent.getWidth(),... |
diff --git a/src/org/ballproject/knime/base/node/GenericKnimeNodeDialog.java b/src/org/ballproject/knime/base/node/GenericKnimeNodeDialog.java
index c9a0df4..9c38584 100644
--- a/src/org/ballproject/knime/base/node/GenericKnimeNodeDialog.java
+++ b/src/org/ballproject/knime/base/node/GenericKnimeNodeDialog.java
@@ -1,1... | false | true | protected void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec[] specs) throws NotConfigurableException
{
for(Parameter<?> param: config.getParameters())
{
String value = null;
try
{
value = settings.getString(param.getKey());
}
catch (InvalidSettingsException e)
{
e.printStackT... | protected void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec[] specs) throws NotConfigurableException
{
for(Parameter<?> param: config.getParameters())
{
String value = null;
try
{
value = settings.getString(param.getKey());
}
catch (InvalidSettingsException e)
{
e.printStackT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.