|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.Expression
public abstract class Expression
This abstract class serves as the base for all expression objects. An
Expression can be executed to return a XObject
,
normally has a location within a document or DOM, can send error and warning
events, and normally do not hold state and are meant to be immutable once
construction has completed. An exception to the immutibility rule is iterators
and walkers, which must be cloned in order to be used -- the original must
still be immutable.
| Constructor Summary | |
|---|---|
Expression()
|
| Method Summary | |
|---|---|
DTMIterator |
asIterator(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator. |
DTMIterator |
asIteratorRaw(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator, but do not clone. |
int |
asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression. |
void |
assertion(boolean b,
java.lang.String msg)
Tell the user of an assertion error, and probably throw an exception. |
boolean |
bool(XPathContext xctxt)
Evaluate expression to a boolean. |
boolean |
canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside the current subtree. |
abstract boolean |
deepEquals(Expression expr)
Compare this object with another object and see if they are equal, include the sub heararchy. |
void |
error(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an exception. |
abstract XObject |
execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression. |
XObject |
execute(XPathContext xctxt,
boolean destructiveOK)
Execute an expression in the XPath runtime context, and return the result of the expression, but tell that a "safe" object doesn't have to be returned. |
XObject |
execute(XPathContext xctxt,
int currentNode)
Execute an expression in the XPath runtime context, and return the result of the expression. |
XObject |
execute(XPathContext xctxt,
int currentNode,
DTM dtm,
int expType)
Execute an expression in the XPath runtime context, and return the result of the expression. |
void |
executeCharsToContentHandler(XPathContext xctxt,
org.xml.sax.ContentHandler handler)
Execute an expression in the XPath runtime context, and return the result of the expression. |
void |
exprAddChild(ExpressionNode n,
int i)
This method tells the node to add its argument to the node's list of children. |
ExpressionNode |
exprGetChild(int i)
This method returns a child node. |
int |
exprGetNumChildren()
Return the number of children the node has. |
ExpressionNode |
exprGetParent()
|
void |
exprSetParent(ExpressionNode n)
This pair of methods are used to inform the node of its parent. |
abstract void |
fixupVariables(java.util.Vector vars,
int globalsSize)
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time. |
int |
getColumnNumber()
Return the character position where the current document event ends. |
ExpressionNode |
getExpressionOwner()
Get the first non-Expression parent of this node. |
int |
getLineNumber()
Return the line number where the current document event ends. |
java.lang.String |
getPublicId()
Return the public identifier for the current document event. |
java.lang.String |
getSystemId()
Return the system identifier for the current document event. |
boolean |
isNodesetExpr()
Tell if the expression is a nodeset expression. |
boolean |
isStableNumber()
Tell if this expression returns a stable number that will not change during iterations within the expression. |
double |
num(XPathContext xctxt)
Evaluate expression to a number. |
void |
warn(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of an problem. |
XMLString |
xstr(XPathContext xctxt)
Cast result object to a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xpath.XPathVisitable |
|---|
callVisitors |
| Constructor Detail |
|---|
public Expression()
| Method Detail |
|---|
public boolean canTraverseOutsideSubtree()
public XObject execute(XPathContext xctxt, int currentNode) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.currentNode
- The currentNode.
XObject
.
javax.xml.transform.TransformerException
- if a runtime exception
occurs.public XObject execute(XPathContext xctxt, int currentNode, DTM dtm, int expType) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.currentNode
- The currentNode.dtm
- The DTM of the current node.expType
- The expanded type ID of the current node.
XObject
.
javax.xml.transform.TransformerException
- if a runtime exception
occurs.public abstract XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.
XObject
.
javax.xml.transform.TransformerException
- if a runtime exception
occurs.public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.destructiveOK
- true if a "safe" object doesn't need to be returned.
XObject
.
javax.xml.transform.TransformerException
- if a runtime exception
occurs.public double num(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.
javax.xml.transform.TransformerException
public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.
javax.xml.transform.TransformerException
public XMLString xstr(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.
javax.xml.transform.TransformerException
public boolean isNodesetExpr()
asNode
without an exception.
public int asNode(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.
javax.xml.transform.TransformerException
public DTMIterator asIterator(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException
xctxt
- The execution context.contextNode
- The node that "." expresses.
javax.xml.transform.TransformerException
- thrown if the active ProblemListener decides
the error condition is severe enough to halt processing.
javax.xml.transform.TransformerException
public DTMIterator asIteratorRaw(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException
xctxt
- The execution context.contextNode
- The node that "." expresses.
javax.xml.transform.TransformerException
- thrown if the active ProblemListener decides
the error condition is severe enough to halt processing.
javax.xml.transform.TransformerException
public void executeCharsToContentHandler(XPathContext xctxt, org.xml.sax.ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException
xctxt
- The XPath runtime context.
NEEDSDOC @param handler
javax.xml.transform.TransformerException
- if a runtime exception
occurs.
org.xml.sax.SAXException
public boolean isStableNumber()
public abstract void fixupVariables(java.util.Vector vars, int globalsSize)
vars
- List of QNames that correspond to variables. This list
should be searched backwards for the first qualified name that
corresponds to the variable reference qname. The position of the
QName in the vector from the start of the vector will be its position
in the stack frame (but variables above the globalsTop value will need
to be offset to the current stack frame).
NEEDSDOC @param globalsSizepublic abstract boolean deepEquals(Expression expr)
expr
- Another expression object.
public void warn(XPathContext xctxt, java.lang.String msg, java.lang.Object[] args) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.msg
- An error msgkey that corresponds to one of the conststants found
in XPATHErrorResources
, which is
a key for a format string.args
- An array of arguments represented in the format string, which
may be null.
javax.xml.transform.TransformerException
- if the current ErrorListoner determines to
throw an exception.
javax.xml.transform.TransformerException
public void assertion(boolean b, java.lang.String msg)
b
- If false, a runtime exception will be thrown.msg
- The assertion message, which should be informative.
java.lang.RuntimeException
- if the b argument is false.
javax.xml.transform.TransformerException
public void error(XPathContext xctxt, java.lang.String msg, java.lang.Object[] args) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.msg
- An error msgkey that corresponds to one of the constants found
in XPATHErrorResources
, which is
a key for a format string.args
- An array of arguments represented in the format string, which
may be null.
javax.xml.transform.TransformerException
- if the current ErrorListoner determines to
throw an exception.
javax.xml.transform.TransformerException
public ExpressionNode getExpressionOwner()
public void exprSetParent(ExpressionNode n)
exprSetParent
in interface ExpressionNode
public ExpressionNode exprGetParent()
exprGetParent
in interface ExpressionNode
public void exprAddChild(ExpressionNode n, int i)
exprAddChild
in interface ExpressionNode
public ExpressionNode exprGetChild(int i)
exprGetChild
in interface ExpressionNode
public int exprGetNumChildren()
exprGetNumChildren
in interface ExpressionNode
public java.lang.String getPublicId()
The return value is the public identifier of the document entity or of the external parsed entity in which the markup that triggered the event appears.
getPublicId
in interface javax.xml.transform.SourceLocator
getSystemId()
public java.lang.String getSystemId()
The return value is the system identifier of the document entity or of the external parsed entity in which the markup that triggered the event appears.
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
getSystemId
in interface javax.xml.transform.SourceLocator
getPublicId()
public int getLineNumber()
Warning: The return value from the method is intended only as an approximation for the sake of error reporting; it is not intended to provide sufficient information to edit the character content of the original XML document.
The return value is an approximation of the line number in the document entity or external parsed entity where the markup that triggered the event appears.
getLineNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber()
public int getColumnNumber()
Warning: The return value from the method is intended only as an approximation for the sake of error reporting; it is not intended to provide sufficient information to edit the character content of the original XML document.
The return value is an approximation of the column number in the document entity or external parsed entity where the markup that triggered the event appears.
getColumnNumber
in interface javax.xml.transform.SourceLocator
getLineNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


These general terms and conditions for delivery of services (“Terms and Conditions”) are applicable to the supply of Deliverables through a Purchase Order entered into between the
.................................................................(“Purchaser”) and
.................................................................(“Device Provider”)
Each Purchase Order, when submitted by the Purchaser and accepted by the Device Provider in accordance with Clause 3, shall incorporate and shall be subject to these Terms and Conditions. These Terms and Conditions are in addition to and not in derogation of the terms and conditions contained in the Purchase Order and/ or the Master Purchase Agreement (“Agreement”), if any. The Device Provider and the Purchaser are hereinafter individually referred to as the “Party” and collectively referred to as the “Parties”.
1. DEFINITIONS AND INTERPRETATION
1.1 Definitions
(a) Applicable law(s) means all laws, legislation, bye-laws, rules, regulations, directives, ordinances, judicial or quasi-judicial decrees or orders, injunctions, notifications, codes, policies, protocols, Approvals, judgments, treaties, brought into force and effect by any Governmental Authority from time to time, as may be applicable to the Terms and Conditions or the exercise, performance and discharge of the respective rights and obligations of the Parties hereunder, including the Information Technology Act, 2000, Aadhaar (Targeted Delivery of Financial and Other Subsidies, Benefits and Services) Act, 2016 (“Aadhaar Act”); amendments thereof and notifications made thereunder.


Nigeria Breaking News, Today, Friday, 22nd, November 2019
by Enioluwa AdeniyiThis is a Round-up of some breaking news for Today, 22nd, November 2019.
INEC Fixes Date For Kogi West Supplementary Re-run Election
The Independent National Electoral Commission (INEC) has fixed Saturday, November 30, for the conduct of the Kogi West supplementary rerun election.
Naija News reports that the electoral umpire fixed the date for the election in a statement issued on Thursday evening in Abuja by Festus Okoye, the National Commissioner and Chairman of the Commission’s Information and Voter Education Committee.
Bayelsa Governor-Elect David Lyon ‘Murders’ English (Video)
A video has emerged on social media, showing the moment Bayelsa Governor-Elect, David Lyon, goofed repeatedly while delivering a speech.
Naija News recalls that Lyon who contested the Bayelsa governorship election on the platform of the All Progressives Congress (APC), Nigeria’s ruling party on Saturday, November 16, was declared winner of the Bayelsa election by the Independent National Electoral Commission (INEC).
Amnesty International Accuses President Buhari Of Intimidating Nigerians
President Muhammadu Buhari-led government has been accused by the Amnesty International of using the security agents and the judiciary to persecute Nigerians.
The human right group stated this while condemning the continued detention of the covener of RevolutionNow movement Omoyele Sowore by the Department of State Services.
High Court Sacks Kano Emirs Installed By Ganduje
The High Court in Kano has on Thursday declared illegal the four emirate councils newly created by Governor Abdullahi Ganduje.
Presiding Judge, Justice Usman N’aaba in nullifying the councils, held that the appointment of the four new Emirs, was illegal as the governor and state assembly failed to follow due process in the creation of the Emirates.
Edo APC Caucus In National Assembly Declares Support For Oshiomhole
The Edo State All Progressives Congress Caucus in the National Assembly have declared support for the National Chairman of the party, Adams Oshiomhole.
The caucus which was led by the Deputy Majority Leader of the House, Peters Akpatason, and supported by Johnson Aguma and Julius Ihonvbere spoke with newsmen at the National Assembly complex on Thursday.


AnsiConsole.systemUninstall()
if running on a Windows OS, otherwise does nothing.AnsiConsole.out
to System.out
and
AnsiConsole.err
to System.err
.AnsiConsole.systemInstall()
.AnsiConsole.systemInstall()
if running on a Windows OS, otherwise does nothing.jansi.passthrough
is true
, don't wrap but just passthrough (console is
expected to natively support ANSI escape codes),
if jansi.strip
is true
, just strip ANSI escape codes inconditionally,
if OS is Windows and terminal is not Cygwin or Mingw, wrap as WindowsAnsiPrintStream to process ANSI escape codes,
if file descriptor is a terminal (see isatty(int)
) or jansi.force
is true
,
just passthrough,
else strip ANSI escape codes (not a terminal).


| DOSE: |
|
insufflated |
Ketamine |
(powder / crystals) |
My first and last experience with Ketamine came in the forum of a rather large night club in Birmingham. The nature of the event was a 16-hour dance party, and I at the time was very much into this whole ecstasy, speed culture. Ketamine had been talked about a lot and I was anxious to try the substance for no other reason than to say I had.
I acquired a gram from my girlfriend and being the fool that I was, and misunderstanding the nature of the substance, I treated the drug like you would Cocaine. I gave my lady friend a quarter of the white substance, and preceded to snort around 3 quarters of the gram, trying to show off and of course trying to get the biggest maddest high I could.
Lucky to be alive
I had been told that the substance had come straight from a vetenary practice, it may have, it may have been cut, but I think it's fair to assume I took around 600mg, although Iím sure I could be wrong.
Well, I remember looking around and suddenly grabbing the girlís hand; something was happening, oh yes, I felt very much as if I was moving, accelerating forward. At this point, (I am told) I closed my eyes and moved my head to one side, I remained in this state for around 90 minutes. As far as I was concerned I knew I had to take a leap of faith, I had to walk off the balcony. We were around 70 foot in the air, and my physical body was slumped on the chair, but I knew the only way to stop this ridiculous sensation of the floor moving was to walk off of the balcony, I did just that and was rewarded.
As I fell, (please note, my actual body had not moved from the chair) I was suddenly thrown from one side of the nightclub to another before being transferred into a psychedelic land which can only be compared to that which someone would find on a computer game. I was falling down 3 Dimensional slides, being shifted in to tunnels and being shown sights of breathtaking beauty. I had a complete sensation of knowledge, I knew that the nightclub had been left far behind on a rock we call earth in outer space.
That place did not matter anymore
As I continued moving across landscapes and falling down slides I was accompanied by beings, I didn't hear them or see them I just knew they were there. I had a tremendous sense of euphoria, of knowing, we were all one. This was just a stage, we are all gods in are own right, there's so much to learn. I was thinking thoughts and using methods of communication that I find it hard to recall, the only way I can describe it is as being so advanced that it makes this whole planet, language and existence look just so limited in comparison, to what I had now become. With all the information of a thousand galaxies, I knew everything and then some more.
I started slipping back, I was outside of my girlfriend's body, 'it's great how we can do this', I said in a loud distorted voice that wasn't made with the vocal chords.
'What'
Said a voice, not hers though
'Talk telepathically' I said, then I was inside my girlfriend's head, I felt like I was transparent, I could move through physical objects and actually enter people's bodies. Then I was back on the next plane, only this time I was on a seat travelling over the Swiss Alps, what ever next? Then an alarm rang... something had happened, I saw faces, that were quite cartoon-like looking anxious and dismayed... 'You go over there', a voice said. I was being directed to a series of queues one was on one side of a field and one was at the opposite end.
'This queue', the voice said, 'this is for good souls'
BANG
Then I was awake, and very aware that I was in the nightclub only I couldn't move or even think of opening my eyes. I felt so disappointed, I longed to go back to where I was, and I felt alone and sad, oh how I wanted to return, please. Slowly but surely I managed to open my eyes, but it took a long time and I was covered in vomit. Had I died? The club was a bit of an underground warehouse and people could actually collapse and not be attended to.
For the record I have completely left that scene and only enjoy a beer these days. I am very spiritual, this side of me has been developing for some time. I have always had out of body experiences without the use of drugs, but this was something else, oh yes this was different. For weeks I talked about 'metaphysical reality' and how we were all energy that could survive death. These days looking back I'm not sure what happened, I just know I'm lucky to be in once piece. I am glad of the experience and it has definitely done a lot for my sense of self. I am slightly tempted to do it again one day, under controlled conditions, but for now I think I saw everything I needed to.
Plus, I could see myself liking it a little to much.
God bless
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


An educational platform for moderated debate in a last ditch effort to eliminate bias.
People don't think it be like it is, but it do.


New AI Can Make a Vid of You Dancing Like a Pro From a Single Pic
by Kristin HouserBreak It Down
Do you have two left feet, but wish that, just once, you could bust some moves — or at least look like you can?
Good news: There’s now an AI for that, and it needs just one full body photo to make you look like the next Beyoncé.
Multipurpose AI
The AI is the work of NVIDIA’s research team. They recently published a paper on the tech on the pre-print server arXiv, and they’ve pledged to release the code as soon as lawyers “resolve some legal issues.”
In addition to working on people, the AI can make sculptures look like they’re dancing their asses off, too. It can also be applied to just faces, making a person look like they’re saying something they didn’t. And if that wasn’t enough, it can also take an image of any city and output a video of a car seemingly driving down its streets.
Step Up
This isn’t the first AI designed to create videos in which a person appears to do something they didn’t — or can’t — do. But two things set it apart from most others.
First, it doesn’t need a slew of images or videos of a target to work. Second, other AIs can typically only output videos of a target included in their training set — this one will work with an image of anyone.
The clips might not be perfect, but they should give you an idea of how close we’re coming to being able to easily create flawless deepfakes — and how desperately we need tech to detect them.
READ MORE: NVIDIA’s new AI can make anyone move like Jagger with just a single photo [The Next Web]
More on AI: Someone Deepfaked Barack Obama Into “Black Panther”


55
1 "Come, everyone who is thirsty, come to the water! And you who have no money,
come, buy and eat! Come, buy wine and milk without money and without cost.
2 Why do you weigh out silver for what is not bread? And labor for what does not satisfy?
Listen carefully to me and eat what is good, and delight yourselves in fatness.
3 Turn your ears and come to me! Listen, that you may live!
I will certainly make an everlasting covenant with you, the acts of covenant faithfulness given to David.
4 Look, I have placed him as a witness to the nations, as a leader and commander to the peoples.
5 Look, you will call to a nation that you did not know; and a nation that did not know you will run to you
because of Yahweh your God, the Holy One of Israel, who has glorified you."
6 Seek Yahweh while he may be found; call on him while he is nearby.
7 Let the wicked leave his path, and the man of sin his thoughts.
Let him return to Yahweh, and he will pity him, and to our God, who will abundantly forgive him.
8 "For my thoughts are not your thoughts, nor are your ways my ways—this is Yahweh's declaration of Yahweh—
9 for as the heavens are higher than the earth, so are my ways higher than your ways, and my thoughts than your thoughts.
10 For as the rain and snow come down from heaven
and do not return there unless they saturate the earth
and make it produce and sprout and give seed to the sower and bread to the eater,
11 so also my word will be that goes from my mouth: it will not return to me uselessly,
but it will accomplish that which I wish, and it will succeed in that for which I sent it.
12 For you will go out in joy and be led along peacefully;
the mountains and the hills will break out in joyful shouts before you, and all the trees of the fields will clap their hands.
13 Instead of the thornbushes, evergreens will grow; and instead of the brier, the myrtle tree will grow,
and it will be for Yahweh, for his name, as an everlasting sign that will not be cut off."


Salmon Cookies
Home
Show Stores
Add Store
Add a new City
City Name
Total
Minimum Cookies
Maximum Cookies
Average Cookies


TicTacToe
Play TicTacToe with your friends! Click the board to start playing.
Player X
Player O
New Game


Rabbits are small mammals in the family Leporidae of the order Lagomorpha (along with the hare and the pika).
The European rabbit,which has been introduced on every continent except Antartica,is familiar throughout the world as a wild prey animal and as a domesticated from livestock and pet.A female Rabbit is called a doe and the male one is called a buck.


My Cheese Blog
Docker Containers URLs
WordPress -
http://localhost:8080
WordPress Admin -
http://localhost:8080/wp-admin/
Adminer -
http://localhost:8081
phpMyAdmin -
http://localhost:8082


Strucktured modules to build express apps
$ yarn add @neoskop/nem # via yarn
$ npm install --save @neoskop/nem # via npm
import { nem, NemModule, Controller, Get, View } from '@neoskop/nem';
@Controller()
export class ExampleController {
@Get('/')
@View('index')
index() {
return {
title: 'Example'
}
}
}
@NemModule({
controller: [
[ '/', ExampleController ]
]
})
export class ExampleModule {
}
nem().bootstrap(ExampleModule).listen(8000);
See samples for for more examples.
+-----------------------+
| rootProviders |
v |
+------------------------------+ +--------------------+ +---------------+ +-----------------+ +---------------------+
| Provided Injector (Optional) | --> | Bootstrap Injector | --> | Root Injector | --> | Module Injector | --> | Controller Injector |
+------------------------------+ +--------------------+ +---------------+ ^ +-----------------+ | +---------------------+
| |
| Nested Modules |
+-----------------------+
The bootstrap injector contains the required dependencies to bootstrap the app,
the root injector inherits from the bootstrap injector and contains all global depenendencies.
The module injectors inherits from the parent module injector or the root injector for the root module.
yarn test
yarn run build
MIT License
Copyright (c) 2018 Neoskop GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Generated using TypeDoc


Home
About
Categories
Tags
Subscribe
2018/04/12
pkgdown R package for generating package websites on Github
2018/04/01
reticulate R package & Travis
2018/03/30
limmbo2 R package now on Github
2018/03/30
Getting started with the reticulate R package
2018/02/07
Travis-CI and R packages: What to do when your Travis-CI build takes too long
2017/12/14
`git add` & the `-u` flag
2017/12/14
High-throughput computing & working with condor
2017/12/14
Generalized variance inflation factors
2017/12/14
Thoughts on Knott & Haley (2000)
2017/10/16
R code profiling saves the day!
2017/09/11
Using `dplyr` functions in my R package
2017/09/10
Joan Didion’s "On self-respect"
2017/09/02
Understanding REML for estimating variance components
2017/08/16
Mathematical Writing by Donald Knuth, Tracy Larrabee, and Paul Roberts
2017/07/14
My presentation materials on Figshare
2017/07/14
Testing my R package
2017/07/04
Translating GEMMA’s Newton-Raphson Algorithm from C++ to R
2017/07/04
Deciphering GEMMA’s C++ Code
2017/07/03
John Roberts's Commencement Address
2017/05/23
A ‘page’ type for blogdown & hugo lithium theme
2017/05/16
GEMMA's EM algorithm implemented in R
2017/05/07
Getting started with blogdown


linkexploder.com
Add multiple links below and we'll generate a single exploding link for all of them.
Generate Exploding Link
Link was copied to clipboard!
Click Anywhere to Load Links!


{% extends 'base.html' %} {% block content %}
By clicking the button below you will be redirected to the University of Warwick authorization page so that we can verify your affiliation status.
WW Verify only stores the following data on our servers:
More information on how your information is used is available in our privacy policy.
Verify Account {% endblock %}


Iterator it = c.iterator(); while(it.hasNext()) { Object obj = it.next(); System.out.println(obj); }Can be replaced with:
for (Object obj : c) { System.out.println(obj); }
This inspection only reports if the language level of the project or module is 5 or higher


{% extends "layout.html" %} {% block page_title %} Where you live {% endblock %} {% block content %} {% include "../includes/phase_banner_beta.html" %} Back Rent Does anyone else pay towards the rent? Yes No Full name of person who pays towards your rent {% include "../includes/help.html" %} {% endblock %}


The goal of pwiser is to make applying arbitrary functions across combinations of columns within dplyr easy. Currently, the only function is pairwise()
, which applies a function to all pairs of columns.
pairwise()
is an altered version of dplyr::across()
and, similarly, is meant to be used within mutate()
/ transmute()
and summarise()
verbs. pwiser sprang from conversations on an Rstudio Community thread and related conversations.
summarise()
pairwise()
respects grouped dataframes:
# When using `pairwise()` within `summarise()` the function(s) applied should
# have an output length of 1 (for each group). (Though could wrap in `list()` to make a list column output.)
cor_p_value <- function(x, y){
stats::cor.test(x, y)$p.value
}
penguins %>%
group_by(species) %>%
summarise(pairwise(contains("_mm"),
cor_p_value,
.is_commutative = TRUE),
n = n())
#> # A tibble: 3 x 5
#> species bill_length_mm_bill~ bill_length_mm_flipp~ bill_depth_mm_flipp~ n
#> <fct> <dbl> <dbl> <dbl> <int>
#> 1 Adelie 1.51e- 6 4.18e- 5 1.34e- 4 146
#> 2 Chinstr~ 1.53e- 9 4.92e- 5 2.16e- 7 68
#> 3 Gentoo 7.34e-16 1.80e-16 1.40e-19 119
Setting .is_commutative = TRUE
can save time on redundant calculations.
Equivalently, could have written with .x
and .y
in a lambda function:
mutate()
Can apply multiple functions via a named list:
penguins %>%
mutate(pairwise(contains("_mm"),
list(ratio = `/`, difference = `-`),
.names = "features_{.fn}_{.col_x}_{.col_y}")) %>%
glimpse()
#> Rows: 333
#> Columns: 20
#> $ species <fct> Adelie, Adelie, A~
#> $ island <fct> Torgersen, Torger~
#> $ bill_length_mm <dbl> 39.1, 39.5, 40.3,~
#> $ bill_depth_mm <dbl> 18.7, 17.4, 18.0,~
#> $ flipper_length_mm <int> 181, 186, 195, 19~
#> $ body_mass_g <int> 3750, 3800, 3250,~
#> $ sex <fct> male, female, fem~
#> $ year <int> 2007, 2007, 2007,~
#> $ features_ratio_bill_length_mm_bill_depth_mm <dbl> 2.090909, 2.27011~
#> $ features_difference_bill_length_mm_bill_depth_mm <dbl> 20.4, 22.1, 22.3,~
#> $ features_ratio_bill_length_mm_flipper_length_mm <dbl> 0.2160221, 0.2123~
#> $ features_difference_bill_length_mm_flipper_length_mm <dbl> -141.9, -146.5, -~
#> $ features_ratio_bill_depth_mm_bill_length_mm <dbl> 0.4782609, 0.4405~
#> $ features_difference_bill_depth_mm_bill_length_mm <dbl> -20.4, -22.1, -22~
#> $ features_ratio_bill_depth_mm_flipper_length_mm <dbl> 0.10331492, 0.093~
#> $ features_difference_bill_depth_mm_flipper_length_mm <dbl> -162.3, -168.6, -~
#> $ features_ratio_flipper_length_mm_bill_length_mm <dbl> 4.629156, 4.70886~
#> $ features_difference_flipper_length_mm_bill_length_mm <dbl> 141.9, 146.5, 154~
#> $ features_ratio_flipper_length_mm_bill_depth_mm <dbl> 9.679144, 10.6896~
#> $ features_difference_flipper_length_mm_bill_depth_mm <dbl> 162.3, 168.6, 177~
Can use .names
to customize outputted column names.
Install from GitHub with:
# install.packages("devtools")
devtools::install_github("brshallo/pwiser")
There are other tools in R for doing tidy pairwise operations. widyr (by David Robinson) and corrr (in the tidymodels
suite) offer solutions (primarily) for summarising contexts (corrr::colpair_map()
is the closest comparison as it also supports arbitrary functions). recipes::step_ratio()
and recipes::step_interact()
can be used for making pairwise products or ratios in mutating contexts. (See Appendix section of prior blog post on Tidy Pairwise Operations for a few cataloged tweets on these approaches.)
The novelty of pwiser::pairwise()
is its integration in both mutating and summarising verbs in dplyr.
Identified after publishing {pwiser}:
The dplyover package is a more mature package that also offers a wide range of extensions on across()
for iteration problems. dplyover::across2()
can be used to do essentially the same thing as pairwise()
. We are currently reviewing whether to mark {pwiser} as superseded so we can point people to {dplyover}.
For problems with lots of data you should use more efficient approaches.
Matrix operations (compared to dataframes) are much more computationally efficient for problems involving combinations (which can get big very quickly). We’ve done nothing to optimize the computation of functions run through pwiser.
For example, when calculating pearson correlations, pairwise()
calculates the correlation separately for each pair, whereas stats::cor()
(or corrr::correlate()
which calls cor()
under the hood) uses R’s matrix operations to calculate all correlations simultaneously.
library(modeldata)
data(cells)
cells_numeric <- select(cells, where(is.numeric))
dim(cells_numeric)
#> [1] 2019 56
Let’s do a speed test using the 56 numeric columns from the cells
dataset (which means 1540 pairwise combinations or 3080 permutations) imported from modeltime.
set.seed(123)
microbenchmark::microbenchmark(
cor = cor(cells_numeric),
correlate = corrr::correlate(cells_numeric),
colpair_map = corrr::colpair_map(cells_numeric, cor),
pairwise = summarise(cells_numeric, pairwise(where(is.numeric), cor, .is_commutative = TRUE)),
times = 10L,
unit = "ms")
#> Unit: milliseconds
#> expr min lq mean median uq max
#> cor 5.224201 5.611702 6.074961 6.149051 6.331702 6.862901
#> correlate 41.888002 44.783101 49.197801 46.816001 48.088402 73.147801
#> colpair_map 653.476401 665.239601 694.533231 681.804551 698.149301 822.678301
#> pairwise 236.102701 253.147802 269.404431 268.679200 291.609801 300.210800
#> neval cld
#> 10 a
#> 10 b
#> 10 d
#> 10 c
The stats::cor()
and corrr::correlate()
approaches are many times faster than using pairwise()
. However pairwise()
still only takes about one fifth of a second to calculate 1540 correlations in this case. Hence on relatively constrained problems pairwise() is still quite usable. (Though there are many cases where you should go for a matrix based solution.)
pairwise()
seems to be faster than corrr::colpair_map()
(a more apples-to-apples comparison as both can handle arbitrary functions), though much of this speed difference goes away when .is_commutative = FALSE
.
See issue #1 for a little on limitations in current set-up.


Bernal Heights Summit, San Francisco, CA. Fall 2014.
We are a group of University of Waterloo software engineering students. Lavendar is our fourth year design project.
We thank our users for giving us the wonderful support and feedback so far!
A master of many talents, he eats cereal with sunglasses on.
"Well done is better than well said."
Cool cat.
"The supernatural is the natural not yet understood."
Pug lover.
"A good laugh and a long sleep are the best cures in the doctor's book."
His name is Max. Some say he will stop you in his tracks.
"All who wander are not lost."


| Package | Description |
|---|---|
| org.gs4tr.projectdirector.ws.service.services.impl |
SubmissionService_4180
|
| Class and Description |
|---|
| AddOwner
Java class for anonymous complex type.
|
| AddOwnerResponse
Java class for anonymous complex type.
|
| AddReferenceAsText
Java class for anonymous complex type.
|
| AddReferenceAsTextResponse
Java class for anonymous complex type.
|
| AddSubmitter
Java class for anonymous complex type.
|
| AddSubmitterResponse
Java class for anonymous complex type.
|
| BrowseTargetsByDocuments
Java class for anonymous complex type.
|
| BrowseTargetsByDocumentsResponse
Java class for anonymous complex type.
|
| CancelDocument
Java class for anonymous complex type.
|
| CancelDocumentResponse
Java class for anonymous complex type.
|
| CancelSubmission
Java class for anonymous complex type.
|
| CancelSubmissionResponse
Java class for anonymous complex type.
|
| CancelSubmissionWithComment
Java class for anonymous complex type.
|
| CancelSubmissionWithCommentResponse
Java class for anonymous complex type.
|
| CancelTarget
Java class for anonymous complex type.
|
| CancelTargetByDocumentId
Java class for anonymous complex type.
|
| CancelTargetByDocumentIdResponse
Java class for anonymous complex type.
|
| CancelTargetResponse
Java class for anonymous complex type.
|
| CheckDownloadAction
Java class for anonymous complex type.
|
| CheckDownloadActionResponse
Java class for anonymous complex type.
|
| CheckDownloadDeliverableCollateral
Java class for anonymous complex type.
|
| CheckDownloadDeliverableCollateralResponse
Java class for anonymous complex type.
|
| CheckUploadAction
Java class for anonymous complex type.
|
| CheckUploadActionResponse
Java class for anonymous complex type.
|
| Claim
Java class for anonymous complex type.
|
| ClaimResponse
Java class for anonymous complex type.
|
| CreateUser
Java class for anonymous complex type.
|
| CreateUserResponse
Java class for anonymous complex type.
|
| DocumentServicePortType
This class was generated by the JAX-WS RI.
|
| Download
Java class for anonymous complex type.
|
| DownloadDeliverableCollateralBySubmissionTicket
Java class for anonymous complex type.
|
| DownloadDeliverableCollateralBySubmissionTicketAndTargetLanguages
Java class for anonymous complex type.
|
| DownloadDeliverableCollateralBySubmissionTicketAndTargetLanguagesResponse
Java class for anonymous complex type.
|
| DownloadDeliverableCollateralBySubmissionTicketResponse
Java class for anonymous complex type.
|
| DownloadPreview
Java class for anonymous complex type.
|
| DownloadPreviewResponse
Java class for anonymous complex type.
|
| DownloadResponse
Java class for anonymous complex type.
|
| DownloadTargetResource
Java class for anonymous complex type.
|
| DownloadTargetResourceResponse
Java class for anonymous complex type.
|
| DownloadTranslationPreview
Java class for anonymous complex type.
|
| DownloadTranslationPreviewResponse
Java class for anonymous complex type.
|
| FindAvailableWorkflowInfosForClaim
Java class for anonymous complex type.
|
| FindAvailableWorkflowInfosForClaimResponse
Java class for anonymous complex type.
|
| FindAvailableWorkflowInfosForDownload
Java class for anonymous complex type.
|
| FindAvailableWorkflowInfosForDownloadBySubmissionTickets
Java class for anonymous complex type.
|
| FindAvailableWorkflowInfosForDownloadBySubmissionTicketsResponse
Java class for anonymous complex type.
|
| FindAvailableWorkflowInfosForDownloadResponse
Java class for anonymous complex type.
|
| FindCreatingSubmissionsByProjectShortCode
Java class for anonymous complex type.
|
| FindCreatingSubmissionsByProjectShortCodeResponse
Java class for anonymous complex type.
|
| FindDocumentByTicket
Java class for anonymous complex type.
|
| FindDocumentByTicketResponse
Java class for anonymous complex type.
|
| FindProjectByName
Java class for anonymous complex type.
|
| FindProjectByNameResponse
Java class for anonymous complex type.
|
| FindProjectByShortCode
Java class for anonymous complex type.
|
| FindProjectByShortCodeResponse
Java class for anonymous complex type.
|
| FindProjectByTicket
Java class for anonymous complex type.
|
| FindProjectByTicketResponse
Java class for anonymous complex type.
|
| FindSubmissionById
Java class for anonymous complex type.
|
| FindSubmissionByIdResponse
Java class for anonymous complex type.
|
| FindSubmissionByTicket
Java class for anonymous complex type.
|
| FindSubmissionByTicketResponse
Java class for anonymous complex type.
|
| FindTargetByTicket
Java class for anonymous complex type.
|
| FindTargetByTicketResponse
Java class for anonymous complex type.
|
| FindUserByTicket
Java class for anonymous complex type.
|
| FindUserByTicketResponse
Java class for anonymous complex type.
|
| GetCanceledTargetsByDocuments
Java class for anonymous complex type.
|
| GetCanceledTargetsByDocumentsResponse
Java class for anonymous complex type.
|
| GetCanceledTargetsByProjects
Java class for anonymous complex type.
|
| GetCanceledTargetsByProjectsResponse
Java class for anonymous complex type.
|
| GetCanceledTargetsBySubmissions
Java class for anonymous complex type.
|
| GetCanceledTargetsBySubmissionsResponse
Java class for anonymous complex type.
|
| GetCompletedTargetsByDocuments
Java class for anonymous complex type.
|
| GetCompletedTargetsByDocumentsResponse
Java class for anonymous complex type.
|
| GetCompletedTargetsByProjects
Java class for anonymous complex type.
|
| GetCompletedTargetsByProjectsResponse
Java class for anonymous complex type.
|
| GetCompletedTargetsBySubmissions
Java class for anonymous complex type.
|
| GetCompletedTargetsBySubmissionsResponse
Java class for anonymous complex type.
|
| GetCurrentUserLanguagesResponse
Java class for anonymous complex type.
|
| GetLanguagePhaseInfo
Java class for anonymous complex type.
|
| GetLanguagePhaseInfoResponse
Java class for anonymous complex type.
|
| GetPagedCompletedTargetsByProjects
Java class for anonymous complex type.
|
| GetPagedCompletedTargetsByProjectsResponse
Java class for anonymous complex type.
|
| GetPagedCompletedTargetsBySubmissions
Java class for anonymous complex type.
|
| GetPagedCompletedTargetsBySubmissionsResponse
Java class for anonymous complex type.
|
| GetSubmitters
Java class for anonymous complex type.
|
| GetSubmittersResponse
Java class for anonymous complex type.
|
| GetUserLanguages
Java class for anonymous complex type.
|
| GetUserLanguagesResponse
Java class for anonymous complex type.
|
| GetUserProjects
Java class for anonymous complex type.
|
| GetUserProjectsResponse
Java class for anonymous complex type.
|
| ProjectServicePortType
This class was generated by the JAX-WS RI.
|
| RequestTranslationPreview
Java class for anonymous complex type.
|
| RequestTranslationPreviewResponse
Java class for anonymous complex type.
|
| SearchDocument
Java class for anonymous complex type.
|
| SearchDocumentResponse
Java class for anonymous complex type.
|
| SearchSubmission
Java class for anonymous complex type.
|
| SearchSubmissionResponse
Java class for anonymous complex type.
|
| SearchSubmissions
Java class for anonymous complex type.
|
| SearchSubmissionsResponse
Java class for anonymous complex type.
|
| SearchTarget
Java class for anonymous complex type.
|
| SearchTargetResponse
Java class for anonymous complex type.
|
| SendDownloadConfirmation
Java class for anonymous complex type.
|
| SendDownloadConfirmationResponse
Java class for anonymous complex type.
|
| StartSingleBatchSubmission
Java class for anonymous complex type.
|
| StartSingleBatchSubmissionResponse
Java class for anonymous complex type.
|
| StartSubmission
Java class for anonymous complex type.
|
| StartSubmissionResponse
Java class for anonymous complex type.
|
| SubmissionServicePortType
This class was generated by the JAX-WS RI.
|
| SubmitDocumentWithBinaryResource
Java class for anonymous complex type.
|
| SubmitDocumentWithBinaryResourceResponse
Java class for anonymous complex type.
|
| SubmitDocumentWithTextResource
Java class for anonymous complex type.
|
| SubmitDocumentWithTextResourceResponse
Java class for anonymous complex type.
|
| TargetServicePortType
This class was generated by the JAX-WS RI.
|
| Upload
Java class for anonymous complex type.
|
| UploadReference
Java class for anonymous complex type.
|
| UploadReferenceResponse
Java class for anonymous complex type.
|
| UploadResponse
Java class for anonymous complex type.
|
| UserProfileServicePortType
This class was generated by the JAX-WS RI.
|
| WorkflowServicePortType
This class was generated by the JAX-WS RI.
|


{% extends "base.html" %} {% load static waffle_tags %} {% block head_title %}Sign Up{% endblock %} {% block main %}
{{ error }}
By continuing, you agree to School Desk’s Terms of Service and Privacy Policy.
Your 60 day free trial awaits!
Sorry, sign up is closed at this time.


WITNESS LIST Agriculture & Livestock Committee February 4, 1997-8:00A Agricultural State Agencies On: Butler, Dr. James G. (Ag Experiment Station) Carpenter, Dr. Zerle L. (Ag Extension Service) Eugster, Dr. Konrad (Vet Diagnostic Lab) Hull, Mr. James B. (Texas Forest Service) Nunley, Mr. Gary L. (Animal Control Service)


Who is this handsome devil? OH! It's me saying HELLO!.
A true artist with React and a coding interface. Truly deadly with Redux and state management.
Like Mission Impossible, but with API's and Database's.
Please don't forget the 5 W's in your email.
CONTACT ME


freimtime
volume:
TIME:
BEATS:
SPACE: play/pause, R: reload shaders (doesn't work), Q: jump to beginning, ARROW KEYS: seek (hold shift for speed)


@(message: String, title: String, address: String) @main("OOCSI development and testing") { @elements.navigation("tools")
Test OOCSI for Web code on this server directly with a client. Open a new client window in another tab.