PICKERING potter Paul Davison is Berlin-bound after winning through to the final stages of the German Masters next February.
The 40-year-old came through a tight third round qualifying match with Dominic Dale at the World Snooker academy in Sheffield to book his place in the last 32.
It is the first time he has reached the latter stages of a ranking event since he lost to Jimmy White in the World Open in September 2010.
Davison prevailed 5-4 against Dale, the world number 26.
Having led 3-2, he fell 4-3 behind, but fashioned superb breaks of 80 and 94 to force his way into the televised stages of the German tournament, where he will take on a top 16 player.
As well as valuable TV exposure, Davison's achievements – he beat Dale's fellow UK Championship qualifier Matthew Selt 5-4 and David Morris 5-3 in the first two rounds of the qualifying tournament – will bring him vital world ranking points as he looks to rise from his current position of 83.
Thrilled to have negotiated a path to Berlin, Davison said: "This is why you play and practise. It makes all those long hours worthwhile.
"Everyone has their ups and downs but, when you get through, it's all worthwhile.
"I'm into the last 32 now but I have got a chance to go further. I don't just want to get there, I want to go as far as I can – to win more matches.
On his match with Dale, Davison added: "He started off with a 96 in the first frame and I thought 'if this carries on it won't take too long'.
"I tried to keep him off the table and, in the second frame, I was 32 behind on the last red.
"I cleared up and carried on to 3-2 up when I potted the last red and didn't get the right position and missed the yellow.
"He won the frame and then, at 4-3 down, it was a similar position to the game against Selt, where I made 102, and I could have had another hundred.
Davison lost out in the first round of qualifying for the UK Championship, which starts in York on Saturday and wryly added that German qualification rather summed him up.
"I live 30 miles down the road for one and when I do qualify it's 800 miles away," he said.
"It's a very competitive tour. I started off provisionally at 69 (in the rankings) but I haven't done too much in the Players' Tour Championship events.
"I have had some tough draws – Shaun Murphy, Stephen Maguire and Mark Allen to name a few – but your main points come from ranking events.
"The main thing is to stay on the tour for this year and then (with the changes to the structure) I will have another couple of years.


text:
Special journal issues (edited)
Compulsory voting Correct voting
Compulsory Voting Rules, Reluctant Voters and Ideological Proximity Voting
Dassonneville, R., Feitosa, F. Hooghe, M., Lau, R. & Stiers, D. (2019). Compulsory Voting Rules, Reluctant Voters and Ideological Proximity Voting. Political Behavior, 41(1): 209-230.
Full Content (HTML)
Dieter Stiers
Fernando Feitosa
Ruth Dassonneville
Political theorists have argued that democracies should strive for high turnout, leading to an argument for the introduction of compulsory voting, one of the surest ways to increase turnout. Others have warned that this obligation comes at a cost of lower quality votes. We investigate these claims by examining the impact of compulsory voting on proximity voting. First, we examine individuals' voting behavior in three countries with strong compulsory voting laws: Australia, Belgium and Brazil. Election surveys in these countries include a hypothetical question about the likelihood of voting without legal obligation. We continue with an examination of the effects of compulsory voting in Switzerland, which varies across cantons. Our results support the 'reluctant voter' hypothesis: Compelling voters to vote tends to weaken the impact of proximity considerations on electoral behaviour, although this effect remains limited and is only significant in half of the elections that were investigated.
Compulsory voting; Correct voting; Left–right; Ideological proximity, Reluctant voter
This content has been updated on 17 March 2019 at 21 h 59 min.

redpajama_set_name: RedPajamaCommonCrawl


Fish all over <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />North Yorkshire will be stunned this summer during a survey to assess their health. Specially trained Agency officers will use electro-fishing techniques to stun fish so that they can be counted and measured before being returned to the water.
A current is passed through the water to temporarily knock the fish out so that they can be handled without causing them any distress.
Electro-fishing also allows Agency staff to remove a small number of scales from each fish, which will give an indication of their age and growth rates.
Agency officers will be operating from boats as well as from river banks to conduct the surveys on all the main areas in the region including the Swale, Ure, Wharfe, Nidd, Ouse, Derwent, Esk and Tees. Nets will also be used to catch fish during the survey.
Most species of river fish will be surveyed, including salmon, trout, grayling, dace, barbel, chub and pike.
Environmental Appraisal Team Leader for the Agency, Richard Jenkins said: "These annual surveys give us vital information, enabling us to assess the current status of fish stocks and identify any changes in populations that may have occurred over recent years.


There are so many great deals happening during the Nordstrom Half-Yearly Sale. I have picked out just a few things for my mom, husband, and of course, me.
This staple layering tee that is $10 off and only $15!
This comfy knit blazer that is only $35.
The best "non-mom" jeans that are 33% off.
This striped blouson sleeve sweater that is 40% off.
These cute prep school inspired loafers that are 40% off.
This easy care/wrinkle-free dress shirt that is 40% off.
This sporty, fun polo that is 40% off.
These comfy suede sneakers that are 40% off.
This really nice polo that comes 7 colors.
The best men's jeans - and they are 40% off.
These awesome suits were made for my husband - they fit perfectly without any alteration - and right now they are 40% off.
(On my wish list) this cropped leather jacket.
One of my favorite designer jeans for only $70!!!
This basic wardrobe staple v-neck tee that is only $16!
This chunky open stitch sweater that is 40% off.
This fringed sweater vest that is 40% off.
This cute cami for summer that is 40% off.
This great staple blouse - perfect worn on its own or layered underneath - and it's 40% off.
This belted dress on sale for $25.
This off the shoulder ruffle maxi dress - that is 30% off.
I am thinking about getting this fringed sweater that is marked down a lot!
I like this quilted denim jacket that is reversible - and on sale.
Love the gingham one-piece swimsuit. That's one timeless piece. Same with the studded tote bag. Really chic color too.
I just LOVE that gingham suit! A little too skimpy for me but sooo cute! Wish I could pull it off!


For introverts like Anna Treesara, the ceaseless socializing of the holiday season can pose special challenges.
This year Anna Treesara will be joining forces with her fiance to host both their families for Thanksgiving. There will be turkey, mashed potatoes — and hours of conversation, a challenge for introverts like Treesara who feel drained when they don't get enough quiet down time.
Her solution? She's already cleared a full day on her social calendar for recovery.
For introverts, who draw their energy from quiet or solitary activities, the raucous parties, crowded stores and ceaseless socializing of the holiday season pose special challenges.
Experts and introverts offer a range of tips for the holidays, from reviewing your schedule before the social whirl gets out of hand, to ducking into the bathroom for a short meditation break at a party, to bringing a board game or card game to a family function, where checkers or Uno can provide a pleasant break from small talk. Even the extroverts, who draw their energy from interactions with others, may want to join in a (relatively) quiet card game.
Check your calendar: You know your limits, so review your calendar and figure out if you're signing up for too much socializing, says Matthew Pollard, author of "The Introvert's Edge: How the Quiet and Shy Can Outsell Anyone." If you decide you can handle, say, a morning meeting, but only if you leave a holiday party early the night before, let your hosts know ahead of time, Pollard says. This eliminates the awkward "Why are you leaving?" exchange.
Arrive late: Amethyst Williams, 28, who is organizing a Chicago Introverts Meeting Friends Meetup, said visiting family later in the day can make the visit shorter and more manageable. She also suggests deciding on a specific amount of time you intend to spend at a party or gathering; you can always stay longer if you're having a good time.
Create a tradition: When Pollard, who lives in Chapel Hill, N.C., visits his parents in Australia for Christmas, the socializing can be intense, he said. But his family knows that he needs a 30-minute break from the Christmas festivities, and because he's explained why, they embrace that. At some point, generally after the kids tear into their presents and before the family dinner, he retreats to a spare room and listens to music or checks Facebook. "I need my own time for 30 minutes, and after that I can re-engage," he said.
Come bearing games: Williams brings her own fun in the form of popular games such as Bop It! that give introverts a break from the talkathons that tend to tire them.
Take a short break: It's a misconception that introverts don't like people. Introverts love people one-on-one in deep conversation; it's the noise, jostle and small talk of big get-togethers that exhaust them. Taking a five- or 10-minute break for a walk or to check your cellphone is very helpful, says Treesara.
Meditate: Treesara tries to be mindful at social events, asking herself if she feels uncomfortable or needs to take a break. Ducking into the bathroom and doing breathing exercises for five or 10 minutes can make a big difference, she says. She uses the Stop, Breathe & Think mobile phone app.


text:
Published On: Wed, Jun 22nd, 2016
Health / Religion / Science / Science & Technology | By Guest Author
What Science Says About the Benefits of Having Faith
Across the globe and for thousands of years, faith and religion have influenced cultures, pastimes, and personalities. Although the general level of support for religion tends to both wax and wane over time, many people still find that faith not only brings them joy, but also comforts them when they are in pain. An essential component of faith is that it is unseen, so it isn't fully possible to quantify. However, some scientific evidence does illustrate its benefits. Multiple studies have found that faith can be a protective factor and a coping mechanism against certain mental health issues.
Faith and Happiness
According to a study of European adults published in 2015, having faith and being involved in religious activities is correlated with lower rates of depression symptoms. The scientists who conducted the study believe that this is due to the social component of attending church and other associated groups.
It is important to note, however, that the social component is not solely responsible for the results. Participants in the study who were involved only in non-religious social activities showed higher rates of depression symptoms. The scientists suggested that there may be something about religious involvement specifically that lessens the likelihood of experiencing depression symptoms.
photo Simon Dean Media via Flickr
Behind the Results
Why might these effects be present? Some research suggests that subscribing to a religion leads people to believe that their lives have meaning and purpose. People who believe in a higher power tend to place life's negative aspects, from minor disappointments to gut-wrenching tragedies, into a broader perspective.
When faced with undesirable circumstances, people with faith are likely to believe that God has an ultimate plan for them, even if they do not understand it yet. Others might try to translate their sadness into becoming stronger or more compassionate people. Another common coping mechanism is the belief that beyond all of the pain of this life lies eternal happiness in Heaven, as long as you can make it there.
The lifestyle practices associated with belief also lead to improved mental health. Prayer and meditation offer opportunities to unwind from stress, work through anxiety, and reflect on life overall. These behaviors are also observed in mindfulness, an exercise that is used both as a standalone wellness practice and as a component of treatment in several mental health conditions.
Frank Turek's "I Dont have enough faith to be an atheist"
Since people who are religious tend to pray with some at least some degree of regularity, the positive effects of prayer are sustained across time, which may explain why the positive effects of religion appear stronger than those of other group activities. Prayer also provides people with comfort in times of crisis. Being able to turn to prayer in frightening situations gives people feelings of control, or at least relief. When prayers are answered according to request, it reinforces the positive feelings associated with praying in the first place.
The social support associated with religious behavior is also a significant component of these results. Being involved in a church community automatically creates a sense of belonging, and it is also likely to be a source for friendships.
Even people who do not attend brick-and-mortar churches can experience these benefits via the internet. Groups like The Way International that have virtual extensions provide support on multiple levels, from education about religion to social support for people to grow in their faith. They even provide inspirational content through their Twitter account. People who have access to the outreach of this and other such groups have several buffers against factors that can increase the risk for depression.
Faith and Other Mental Health Issues
Depression is not the only mental health condition that can be relieved somewhat by practices of faith. One study found that people with bipolar disorder who used religion as a positive coping mechanism had a better quality of life. The scientists in this study posit that people's innate degree of religiosity is an important factor in their personalities, and therapists should incorporate it into treatment.
A later study suggested that bipolar patients who were more intrinsically religious were less likely to engage in suicidal behaviors. The scientists who conducted this study claim that these links should be studied further for greater understanding. Other research has found that religious behavior can lead to improved outcomes for people with substance abuse disorders. In the wake of these findings, more researchers should delve into this area in order to build a larger body of knowledge that can further influence mental health treatment.
A Truth Worth Considering
People who are not religious may interpret the results of these studies to mean that it is the practices associated with faith that lead to increased optimism and feelings of contentment. People who do practice religion might say that it is through these practices that they cultivate authentic connections with God, and that it is because of this connection that they experience positive effects. No matter what your perspective is, it is safe to say that there are strong benefits to having faith, and that in itself is worthy of extensive consideration.
Guest Author: Lolita Di
photo condesign via Pixabay
Guest Author - Outside contributors to the Dispatch are always welcome to offer their unique voices, contradictory opinions or presentation of information not included on the site.
ban Jesus prayersban prayerChristianityCommunityDay of PrayerEuropeEuropean UnionFaith Advisory CouncilFaith and Freedom AwardGod vs Sciencehealth alertI Don't Have Enough Faith to be an AtheistprayerPurpose Driven ChurchPurpose Driven LifeReligion NewsscienceScience newsThe Pursuit Of Happiness
Zietchick Research Institute: How is vision affected by autism spectrum disorder
Trump moves to cut more Obama era rules at HHS, ending religious discrimination regulations


text:
A Book of the Poetic Practice
Review: Another Language, Selected Poems by Rosmarie Waldrop, Talisman House 1-883589-51-1 $10.50 Distributed by: LPC Group/InBook 1436 West Randolph St. Chicago IL 60607 (800) 243-0138. 1997.
Many people do not escape from this world because, while seeming to treasure the body, they actually do not give it adequate consideration. —Dogen, A Primer of Soto Zen
A fair amount of lip service is given to the avante-garde. Instead of asking about the service given and received, legitimate questions that this journal, ABR, is heavily invested in, with Rosemary Waldrop's selected poems it seems more pertinent to ask about the lip rather than the service. Waldrop's service to the avante garde, her poetry, translations, editing and publishing (Burning Deck Press), is well established. It's the lip, the surface of language, its relation to speech rather than to its materiality or intellectual determination that is provocative. And the surface has its own depths:
as a body of water.
You follow your lips
into its softness. Far down
the head finds its level
(from "Separation Precedes Meeting" from The Ambition of Ghosts:
It's important, as well as novel, that this selected poems is also a book not just a collection of hits. It has its own integrity, its own organization that makes reading it an experience in itself rather than a series of references pointing out to the books it has been made from. Louis Zukofsky, somewhere in A, said / wrote: You write one book all of your life. Talisman House offers this book with this same understanding. Each selection represents the books selected from, but the selections together form this other thing, this book called Another Language.
And Another Language begins with a key poem, key because it opens the door into this book [Waldrop takes us to the beginnings, this time to Roger Williams' A Key Into the Language of America which begins: "I present you with a key; I have not heard of the like, yet framed, since it pleased God to bring that mighty continent of America to light"]. This key opens the book as a house of language (trying, as I am, and accurately, to get my metaphors in line). It begins with a poem that operates as a warning but also as preface. "Dark Octave":
To see darkness
the eye withdraws from light
in light
the darkness is invisible
the eye's weakness
is no weakness of the light
but the eye
away from light
is eyeless
its power is not-seeing
and this not-seeing
sees the night
do not dismiss your darkness
or you'll be left
with vision's
lesser angles
occupies the eye entirely (1)
(from The Aggressive Ways of the Casual Stranger)
It is worth looking at the key, to see just what kind of door it can open. And the book ends with a selection "Of the Winds" from another "key" (closing this book?), utilizing Williams' A Key into the Language of America:
while men grow small
within their skin
into another language (114)
Remember Williams' expressed goal in studying the culture of the Narragansett (they who gave him refuge from the Puritans) was both a moral position outward in relation to them, the other, and a self-serving gesture into himself, filling his own void, the New World's language as a kind of counter-weight to, even a replacement for, the Old World's: [my] "soul's desire was to do the natives good, and to that end to have their language." For Williams, as for Waldrop, another language.
Nowhere in this book will you find Waldrop adopting the Puritan language of modern poets of the fast food drive thru, never eliminating the sensual o--g--h. Here the letter a is pregnant, as it is in fact, unless the eyes are occupied with "lesser angles." (Or is that angels?)
nature's inside, says Cézanne and
I do not like the fleshy
from "The Round World" (from Peculiar Motions)
And it is not the "fleshy echo" that we get. It is not a profusion of useless words that make up this anti-Puritan poetry. Waldrop seems to have taken to heart Pound's advice in ABC of Reading:
Incompetence will show in the use of too many words.
The reader's first and simplest test of an author will be to look for words that do not function; that contribute nothing to the meaning OR that distract from the MOST important factor of the meaning to factors of minor importance.
There are no useless words in this book. Some readers may be frustrated by the omission of words that seem necessary. But much of Another Language is participatory, and the addition of superfluous words would also mean the exclusion of the reader. Waldrop utilizes several types of procedures throughout this book to keep the reader in, to keep the Body of her work alive to the reader's body. One is absence, not abstinence. In "Difficulties of a Heavy Body" we get dialogical poems that do not demand completion but still contain the pull of language, a desire for a filling of a void, the elemental passion:
a sense of
his thirty-third year
his elbow
any kind of
must be allowed to mature. (72)
Waldrop also employs language displacement / replacement, another celebration that would, I assume, provoke from the academic puritans much the same response as Williams got from the very much more influential founding fathers than our political ones, the Massachusetts Puritans: banishment, persecution, slander. From Shorter American Memory :
Shorter American Memory of
We holler these trysts to be self-exiled that all manatees are credited
equi-distant, that they are endured by the Creditor with cervical
unanswerable rims, that among these are lightning, lice, and the
pushcart of harakiri. That to seduce these rims, graces are insulated... (65)
One of the things I find most admirable about these poems is their variety within the style Waldrop has established, a style that marks her work but doesn't set limits upon it. It is harder done than most writers seem to realize. Writing brings along with it, to the reader since it comes out from the writer, a certain monotony (which writers are often oblivious to) that Waldrop never allows her writing to establish for itself. As the philosopher of space and dreams says of it:
Written language must be considered as a particular psychic reality. The book is permanent; it is an object in your field of vision. It speaks to you with a monotonous authority which even its author would not have. (Gaston Bachelard— The Poetics of Reverie, childhood, language, and the cosmos)
I think Waldrop is able to keep her writing from this "monotonous authority" because her poetics is different from most who consider themselves to be or who are labeled as avante-garde. Instead of an avante-garde that derives from the visual poetics (Pound's Chinese characters, Appolinaire's Calligrammes or even the dashes of Emily Dickinson), Waldrop's poetics are formed from speech, the lip service she gets from orality. And this intimate connection with the speech act keeps her work body centered, or work centered deep into the body:
A poem,
like trying
to remember,
is a movement
of the whole body. (56)
(from "Remembering into Sleep", from The Ambition of Ghosts:)
Waldrop is also, of necessity, concerned with grammar but mainly to mark it as the limit it places on the connecting that language makes possible. Poetry, if it is to honor that connection, must not just advertise itself as new (Pound's "Make it New") but must continually re-new itself. From Unpredicated Particles, or; Columbus Toward the New World
Laid down the equation
and expected obedience
The grammar of the word 'knows'
is clearly related to that of
'mastery' (83)
"Grammar," the written description of how language works, cannot be easily labeled "prescriptive" (which liberal teachers disdain) and "descriptive" (which these same teachers believe is harmless since it is scientific). Descriptive grammar, that purports to detail only what a grammar does, contains a pedagogy no less harmful than does a grammar that attempts to determine what is proper writing and what is not.
Grammar cannot escape its origins. The first grammar for a modern European language was published" on August 18, 1492—just fifteen days after Columbus had set sail." (Ivan Illich and Barry Sanders 65 The Alphabetization of the Popular Mind.) The author, Elio Antonio de Nebrija was not unaware of how his ability to describe the grammar which writing creates is also to prescribe how it is used. Nebrija saw that writing, as Claude Levi-Strauss was to understand three hundred years later while among the Oro Boro, is a most effective, perhaps the most effective, way to conquer and control:
At this time, you asked me what end such a grammar could possibly serve. Upon this, the Bishop of Avila interrupted to answer in my stead. What he said was this: "Soon Your Majesty will have placed her yoke upon many barbarians who speak outlandish tongues. By this, your victory, these people shall stand in a new need; the need for the laws the victor owes to the vanquished, and the need for the language we shall bring with us." (68‑69)
It is no wonder, given her awareness of the constraints, and they are as much political as they are a concerned for what is proper and what is "communication," that Waldrop is interested in language as glyph, for glyph is language as Body.
It is here, with this realization that depth, substance, and the endless reaching for the beyond may be not only a trap but a fatal one, that Waldrop sees liberation in surface, a return to the lip service that began this collection.
It is replaced by being lost which I don't like to dwell on because the search for motivation can only drive us downward toward potential that is frightening in proportion to its depth and sluicegates to disappearance. It is much better, I have been advised, just to drift with the stream. The ink washes into a deeper language, and in the end the water runs clear. (102) (from Lawn of the Excluded Middle)
Return to Book Reviews


Our workshops and Events reflect the wide variety of interests of our staff and clients, while aligning with our wholistic approach to health and wellbeing. Moving Well. Eating Well. Living Well. With healthy doses of play and community!
Workshops, Events, and Series Classes are listed here. Check back often, as this list is quite dynamic!


text:
package gov.nasa.arc.mct.satellite.utilities;

import java.awt.Component;

import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;

import jsattrak.utilities.TLE;

/*
 * This cell renderer is for the TLE lists, so the TLE satellite names are displayed within the list
 *
 * TODO: Currently only satellite names are displayed in the lists (see Satellite Wizard). Maybe display
 *       the satellite number as well as the satellite name (as the satellite number is unique).  This
 *       might be cool for identifying the space debris (as each debris grouping has the same name--i.e:
 *       the iridium33 debris)
 *
 *       This class is used wrt a JComboBox, used in the satellite wizard
 */
@SuppressWarnings("serial")
public class TLEListRenderer extends JLabel implements ListCellRenderer {

	public TLEListRenderer
	() {
		setOpaque(true);
	}

	public Component
		getListCellRendererComponent
		( JList list, Object value,
	  int index,
      boolean isSelected,
      boolean cellHasFocus)
	{
		  if (isSelected) {
			  setBackground(list.getSelectionBackground());
			  setForeground(list.getSelectionForeground());
	      } else {
	    	  setBackground(list.getBackground());
	    	  setForeground(list.getForeground());
	      }
		  setText(((TLE)value).getSatName());
		  setOpaque(true);

		  return this;

	}//--end getListCellRendererComponent

}

redpajama_set_name: RedPajamaGithub


text:
/// <reference path="../../../typings/main.d.ts" />
"use strict";
var defs = require("raml-definition-system");
var hl = require("../highLevelAST");
var yaml = require("yaml-ast-parser");
var _ = require("underscore");
var def = defs;
var hlimpl = require("../highLevelImpl");
var proxy = require("./LowLevelASTProxy");
var search = require("../../search/search-interface");
var universes = require("../tools/universe");
var universeHelpers = require("../tools/universeHelpers");
var services = defs;
var ramlTypes = defs.rt;
var messageRegistry = require("../../../resources/errorMessages");
var mediaTypeParser = require("media-typer");
var KeyMatcher = (function () {
    function KeyMatcher(_props) {
        this._props = _props;
        this.parentValue = _.find(_props, function (x) { return x.isFromParentValue(); });
        this.parentKey = _.find(_props, function (x) { return x.isFromParentKey(); });
        this.canBeValue = _.find(_props, function (x) { return x.canBeValue(); });
    }
    KeyMatcher.prototype.add = function (p) {
        this._props.push(p);
    };
    KeyMatcher.prototype.match = function (key) {
        var _this = this;
        var _res = null;
        var lastPref = "";
        this._props.forEach(function (p) {
            if (p.getAdapter(services.RAMLPropertyService).isSystem()) {
                return;
            }
            if (p != _this.parentValue && p != _this.parentKey && p.matchKey(key)) {
                if (p.keyPrefix() != null) {
                    if (p.keyPrefix().length >= lastPref.length) {
                        lastPref = p.keyPrefix();
                        _res = p;
                    }
                }
                else {
                    _res = p;
                    lastPref = p.nameId();
                }
            }
        });
        return _res;
    };
    return KeyMatcher;
}());
function getAllOptions(c, deep) {
    if (deep === void 0) { deep = 0; }
    if (deep > 20) {
        return [];
    }
    try {
        var result = [];
        var tp = c.leftType();
        if (tp) {
            result.push(tp);
        }
        var r = c.rightType();
        if (r) {
            if (r.hasUnionInHierarchy()) {
                var options = getAllOptions(r.unionInHierarchy(), deep + 1);
                result = result.concat(options);
            }
            else {
                result.push(r);
            }
        }
        return result;
    }
    finally {
    }
}
var ad = 0;
/**
 * Checks if a node is type declaration by a type shortcut having multiple inheritance TE as a value
 * @param node
 */
function isMultipleInheritanceTypeExpressionTypeDeclaration(node) {
    var definition = node.definition();
    if (!definition || !universeHelpers.isTypeDeclarationDescendant(definition))
        return false;
    var lowLevel = node.lowLevel();
    if (lowLevel.valueKind() !== yaml.Kind.SEQ)
        return false;
    var children = lowLevel.children();
    if (children == null)
        return false;
    for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {
        var child = children_1[_i];
        if (child.kind() !== yaml.Kind.SCALAR)
            return false;
    }
    return true;
}
var BasicNodeBuilder = (function () {
    function BasicNodeBuilder() {
        this.shouldDescriminate = false;
    }
    BasicNodeBuilder.prototype.process = function (node, childrenToAdopt) {
        var _this = this;
        var nn = node.lowLevel();
        var cv = node;
        cv._mergedChildren = null;
        var cha = nn._node ? nn._node : nn;
        try {
            if (cha['currentChildren']) {
                return cha['currentChildren'];
            }
            if (!node.definition()) {
                return;
            }
            if (node.parent() == null && (!this.shouldDescriminate)) {
                this.shouldDescriminate = true;
                try {
                    var children = this.process(node, childrenToAdopt);
                    var ts = node;
                    ts._children = children;
                    var t = doDescrimination(node);
                    if (t) {
                        ts.patchType(t);
                    }
                    var children = this.process(node, childrenToAdopt);
                    ts._children = children;
                }
                finally {
                    this.shouldDescriminate = false;
                }
            }
            if (node.definition().hasUnionInHierarchy()) {
                if (true &&
                    (node.parent() && node.property().nameId() == universes.Universe10.LibraryBase.properties.annotations.name)) {
                    var optins = getAllOptions(node.definition().unionInHierarchy());
                    var actualResult = null;
                    var bestResult = null;
                    var bestType = null;
                    var bestCount = 1000;
                    var llnode = node;
                    optins.forEach(function (x) {
                        if (!actualResult) {
                            //TODO ADD UNION + Descriminator
                            if (!(x).hasUnionInHierarchy()) {
                                var tp = llnode.patchType(x);
                                if (ad == 0) {
                                    ad++;
                                    try {
                                        var result = _this.process(node, childrenToAdopt);
                                        var uc = 0;
                                        for (var i = 0; i < result.length; i++) {
                                            if (result[i].isUnknown()) {
                                                uc++;
                                            }
                                        }
                                        if (uc == 0) {
                                            actualResult = result;
                                        }
                                        if (bestCount > uc) {
                                            bestCount = uc;
                                            bestResult = result;
                                            bestType = x;
                                        }
                                    }
                                    finally {
                                        ad--;
                                    }
                                }
                            }
                        }
                    });
                    if (actualResult) {
                        llnode.patchType(bestType);
                        return actualResult;
                    }
                    if (bestResult) {
                        llnode.patchType(bestType);
                    }
                }
            }
            var km = new KeyMatcher(node.definition().allProperties());
            if (node.parent() == null || node.lowLevel().includePath()) {
                var u = node.definition().universe();
                if (u.version() == "RAML10") {
                    if (!node.definition().property("uses")) {
                        u.type("FragmentDeclaration").allProperties().forEach(function (x) { return km.add(x); });
                    }
                }
            }
            var aNode = node;
            var allowsQuestion = aNode._allowQuestion || node.definition().getAdapter(services.RAMLService).getAllowQuestion();
            var res = [];
            //cha['currentChildren']=res;
            if (km.parentKey) {
                if (node.lowLevel().key()) {
                    var keyAttr = new hlimpl.ASTPropImpl(node.lowLevel(), node, km.parentKey.range(), km.parentKey, true);
                    res.push(keyAttr);
                    var isDefaultMediaType = node.property()
                        && universeHelpers.isBodyProperty(node.property())
                        && node.lowLevel().key() == node.property().nameId();
                    if (isDefaultMediaType) {
                        var isInsideTraitOrResourceType = isInTtraitOrResourceType(aNode);
                        if (!isInsideTraitOrResourceType && aNode._computedKey) {
                            keyAttr.overrideValue(aNode._computedKey);
                        }
                    }
                }
                if (node.lowLevel().valueKind() === yaml.Kind.SEQ
                    && !isMultipleInheritanceTypeExpressionTypeDeclaration(node)) {
                    var error = new hlimpl.BasicASTNode(node.lowLevel(), aNode);
                    error.errorMessage = {
                        entry: messageRegistry.DEFINITION_SHOULD_BE_A_MAP,
                        parameters: { typeName: node.definition().nameId() }
                    };
                    res.push(error);
                    return res;
                }
            }
            if (node.lowLevel().value(true) != null) {
                if (km.parentValue) {
                    res.push(new hlimpl.ASTPropImpl(node.lowLevel(), node, km.parentValue.range(), km.parentValue));
                }
                else if (km.canBeValue) {
                    var s = node.lowLevel().value();
                    if (s == null) {
                        s = node.lowLevel().value(true);
                    }
                    if (typeof s == 'string' && s.trim().length > 0) {
                        //if (km.canBeValue.nameId()==universes.Universe10.Resource.properties.signature.name){
                        //      if (s.trim().charAt(0)=='('){
                        //          //TODO BETTER DECITION current one prevents completion from working correctly
                        //          //in few other cases
                        //          res.push(new hlimpl.ASTPropImpl(node.lowLevel(), node, km.canBeValue.range(), km.canBeValue));
                        //      }
                        //}
                        //else {
                        res.push(new hlimpl.ASTPropImpl(node.lowLevel(), node, km.canBeValue.range(), km.canBeValue));
                    }
                }
            }
            else {
            }
            aNode._children = res;
            if (!aNode.definition().getAdapter(services.RAMLService).isUserDefined()) {
                if (aNode.definition().key() == universes.Universe08.Api || aNode.definition().key() == universes.Universe10.Api) {
                    var uses = childrenToAdopt.filter(function (x) { return x.key() == "uses"; });
                    res = this.processChildren(uses, aNode, res, allowsQuestion, km);
                    var types = childrenToAdopt.filter(function (x) { return x.key() == "types"; });
                    res = this.processChildren(types, aNode, res, allowsQuestion, km);
                    var other = childrenToAdopt.filter(function (x) { return (x.key() != "types" && x.key() != "uses"); });
                    res = this.processChildren(other, aNode, res, allowsQuestion, km);
                }
                else {
                    res = this.processChildren(childrenToAdopt, aNode, res, allowsQuestion, km);
                }
            }
            else {
                res = this.processChildren(childrenToAdopt, aNode, res, allowsQuestion, km);
            }
            aNode._children = res;
            return res;
        }
        finally {
        }
    };
    BasicNodeBuilder.prototype.isTypeDeclarationShortcut = function (node, property) {
        var isTypeDeclarationType = universeHelpers.isTypeProperty(property);
        var isTypeDeclaration = node.definition() && universeHelpers.isTypeDeclarationTypeOrDescendant(node.definition());
        if (isTypeDeclaration && isTypeDeclarationType && node.lowLevel() && node.lowLevel().valueKind() === yaml.Kind.SEQ) {
            return true;
        }
        return false;
    };
    BasicNodeBuilder.prototype.processChildren = function (childrenToAdopt, aNode, res, allowsQuestion, km) {
        var _this = this;
        var typeDeclarationName = universes.Universe10.TypeDeclaration.name;
        var typePropertyName = universes.Universe10.TypeDeclaration.properties.type.name;
        var itemsPropertyName = universes.Universe10.ArrayTypeDeclaration.properties.items.name;
        if (aNode.definition() && aNode.definition().isAssignableFrom(typeDeclarationName) && aNode.lowLevel() && (km.canBeValue && (km.canBeValue.nameId() === typePropertyName || km.canBeValue.nameId() === itemsPropertyName)) && aNode.lowLevel()._node && aNode.lowLevel()._node.value && aNode.lowLevel()._node.value.kind === yaml.Kind.SEQ) {
            childrenToAdopt.forEach(function (child) {
                var property = new hlimpl.ASTPropImpl(child, aNode, km.canBeValue.range(), km.canBeValue);
                res.push(property);
            });
            return res;
        }
        var rootUnit = aNode.root().lowLevel().unit();
        childrenToAdopt.forEach(function (x) {
            if (km.canBeValue && _this.isTypeDeclarationShortcut(aNode, km.canBeValue)) {
                res.push(new hlimpl.ASTPropImpl(x, aNode, km.canBeValue.range(), km.canBeValue));
                return;
            }
            var key = x.key();
            //if (x.optional()&&!allowsQuestion) {
            //    return;
            //}
            var p = key != null ? km.match(key) : null;
            if (p != null) {
                var range = p.range();
                if (p.isAnnotation() && key != "annotations") {
                    var pi = new hlimpl.ASTPropImpl(x, aNode, range, p);
                    res.push(pi);
                    return;
                }
                var um = false;
                var multyValue = p.isMultiValue();
                if (range.isArray()) {
                    multyValue = true;
                    range = range.array().componentType();
                    um = true;
                }
                else if (range.hasArrayInHierarchy()) {
                    multyValue = true;
                    um = true;
                }
                var xChildren;
                var gotReuse = false;
                if (aNode.reuseMode() && x.valueKind() != yaml.Kind.SEQ) {
                    var rNode = aNode.reusedNode();
                    if (rNode) {
                        var arr = [x];
                        var llParent = aNode.lowLevel();
                        if (!p.isMerged() && multyValue) {
                            xChildren = [];
                            arr = x.children();
                            llParent = x;
                        }
                        for (var _i = 0, arr_1 = arr; _i < arr_1.length; _i++) {
                            var ch1 = arr_1[_i];
                            var cUnit = ch1.containingUnit();
                            if (cUnit && cUnit.absolutePath() != rootUnit.absolutePath()) {
                                var rChild = _.find(rNode.children(), function (ch2) { return ch2.lowLevel().key() == ch1.key(); });
                                if (rChild && rChild.lowLevel().unit().absolutePath() == cUnit.absolutePath()) {
                                    gotReuse = true;
                                    res.push(rChild);
                                    rChild.setReused(true);
                                    rChild.setParent(aNode);
                                    if (rChild.isElement()) {
                                        rChild.resetRuntimeTypes();
                                    }
                                    if (aNode.isExpanded()) {
                                        llParent
                                            .replaceChild(ch1, rChild.lowLevel());
                                        rChild.lowLevel().setTransformer(llParent.transformer());
                                    }
                                    continue;
                                }
                            }
                            if (xChildren) {
                                xChildren.push(ch1);
                            }
                        }
                    }
                }
                if (!xChildren) {
                    if (gotReuse) {
                        return;
                    }
                    xChildren = x.children();
                }
                //TODO DESCRIMINATORS
                if (range.hasValueTypeInHierarchy()) {
                    var ch = xChildren;
                    var seq = (x.valueKind() == yaml.Kind.SEQ);
                    if ((seq && ch.length > 0 || ch.length > 1) && multyValue) {
                        if (ch.length > 1 && universeHelpers.isTypeDeclarationSibling(aNode.definition())
                            && (universeHelpers.isTypeProperty(p) || universeHelpers.isItemsProperty(p)) && x.valueKind() != yaml.Kind.SEQ) {
                            var pi = new hlimpl.ASTPropImpl(x, aNode, range, p);
                            res.push(pi);
                            aNode.setComputed(p.nameId(), pi);
                        }
                        else {
                            var values = [];
                            ch.forEach(function (y) {
                                var pi = new hlimpl.ASTPropImpl(y, aNode, range, p);
                                res.push(pi);
                                values.push(y.value());
                            });
                            if (p.isInherited()) {
                                aNode.setComputed(p.nameId(), values);
                            }
                        }
                    }
                    else {
                        if (p.isInherited()) {
                            aNode.setComputed(p.nameId(), x.value());
                        }
                        var attrNode = new hlimpl.ASTPropImpl(x, aNode, range, p);
                        if ((seq || x.valueKind() == yaml.Kind.MAP)) {
                            var rng = p.range().nameId();
                            if (!p.getAdapter(services.RAMLPropertyService).isExampleProperty()) {
                                if (rng == 'StringType') {
                                    rng = "string";
                                }
                                if (rng == 'NumberType') {
                                    rng = "number";
                                }
                                if (rng == 'BooleanType') {
                                    rng = "boolean";
                                }
                                if (rng == "string" || rng == "number" || rng == "boolean") {
                                    if (!x.isAnnotatedScalar()) {
                                        attrNode.errorMessage = {
                                            entry: messageRegistry.INVALID_PROPERTY_RANGE,
                                            parameters: {
                                                propName: p.groupName(),
                                                range: rng
                                            }
                                        };
                                        if (xChildren.length == 0 && p.groupName() == "enum") {
                                            attrNode.errorMessage = {
                                                entry: messageRegistry.ENUM_IS_EMPTY,
                                                parameters: {}
                                            };
                                            if (x.valueKind() == yaml.Kind.MAP) {
                                                attrNode.errorMessage = {
                                                    entry: messageRegistry.ENUM_MUST_BE_AN_ARRAY,
                                                    parameters: {}
                                                };
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        res.push(attrNode);
                    }
                    //}
                    return;
                }
                else {
                    var rs = [];
                    //now we need determine actual type
                    aNode._children = res;
                    if (x.value() != null && (typeof x.value() == 'string' || typeof x.value() == 'boolean' || typeof x.value() == 'number')) {
                        if (("" + x.value()).trim().length > 0) {
                            var c = p.range();
                            if (!c.allProperties().some(function (x) {
                                var srv = x;
                                if (srv) {
                                    return srv.canBeValue() && srv.isFromParentValue();
                                }
                                return false;
                            })) {
                                var bnode = new hlimpl.BasicASTNode(x, aNode);
                                bnode.getLowLevelEnd = function () {
                                    return -1;
                                };
                                bnode.getLowLevelStart = function () {
                                    return -1;
                                };
                                bnode.knownProperty = p;
                                res.push(bnode);
                            }
                        }
                    }
                    if (!p.isMerged()) {
                        if (multyValue) {
                            if (p.getAdapter(services.RAMLPropertyService).isEmbedMap()) {
                                var chld = xChildren;
                                var newChld = [];
                                var hasSequenceComposition = false;
                                chld.forEach(function (n) {
                                    if (n.kind() == yaml.Kind.INCLUDE_REF) {
                                        if (aNode.universe().version() == "RAML08") {
                                            n.children().forEach(function (y) {
                                                var node = new hlimpl.ASTNodeImpl(y, aNode, range, p);
                                                node._allowQuestion = allowsQuestion;
                                                rs.push(node);
                                                hasSequenceComposition = true;
                                            });
                                        }
                                        else {
                                            newChld.push(n);
                                        }
                                    }
                                    else {
                                        newChld.push(n);
                                    }
                                });
                                chld = newChld;
                                if (chld.length == 0) {
                                    if (p.range().key() == universes.Universe08.ResourceType) {
                                        if (!hasSequenceComposition) {
                                            var error = new hlimpl.BasicASTNode(x, aNode);
                                            error.errorMessage = {
                                                entry: messageRegistry.PROPERTY_MUST_BE_A_MAP,
                                                parameters: { propName: p.nameId() }
                                            };
                                            res.push(error);
                                        }
                                    }
                                    if (x.valueKind() == yaml.Kind.SCALAR) {
                                        if (p.range().key() == universes.Universe08.AbstractSecurityScheme) {
                                            var error = new hlimpl.BasicASTNode(x.parent(), aNode);
                                            error.errorMessage = {
                                                entry: messageRegistry.PROPERTY_MUST_BE_A_MAP,
                                                parameters: { propName: p.nameId() }
                                            };
                                            res.push(error);
                                        }
                                    }
                                }
                                chld.forEach(function (y) {
                                    //TODO TRACK GROUP KEY
                                    var cld = y.children();
                                    if (!y.key() && cld.length == 1) {
                                        if (aNode.universe().version() != "RAML10" || aNode.parent()) {
                                            var node = new hlimpl.ASTNodeImpl(cld[0], aNode, range, p);
                                            node._allowQuestion = allowsQuestion;
                                            rs.push(node);
                                        }
                                    }
                                    else {
                                        if (aNode.universe().version() == "RAML10") {
                                            var node = new hlimpl.ASTNodeImpl(y, aNode, range, p);
                                            node._allowQuestion = allowsQuestion;
                                            rs.push(node);
                                        }
                                        else {
                                            var bnode = new hlimpl.BasicASTNode(y, aNode);
                                            res.push(bnode);
                                            if (y.key()) {
                                                bnode.needSequence = true;
                                            }
                                        }
                                    }
                                });
                                if (aNode.universe().version() == "RAML10" && x.valueKind() == yaml.Kind.SEQ) {
                                    var bnode = new hlimpl.BasicASTNode(x, aNode);
                                    res.push(bnode);
                                    bnode.needMap = true;
                                    bnode.knownProperty = p;
                                }
                            }
                            else {
                                var filter = {};
                                var inherited = [];
                                if (defs.NodeClass.isInstance(range)) {
                                    var nc = range;
                                    if (nc.getAdapter(services.RAMLService).getCanInherit().length > 0) {
                                        nc.getAdapter(services.RAMLService).getCanInherit().forEach(function (v) {
                                            var originalValue = aNode.computedValue(v);
                                            var actualValue = Array.isArray(originalValue) ? originalValue : [originalValue];
                                            for (var pos = 0; pos < actualValue.length; pos++) {
                                                var vl = actualValue[pos];
                                                if (vl && p.nameId() == universes.Universe10.Response.properties.body.name) {
                                                    var exists = _.find(xChildren, function (x) { return x.key() == vl; });
                                                    var originalParent = x;
                                                    while (originalParent.originalNode) {
                                                        originalParent = originalParent.originalNode();
                                                    }
                                                    var mediaTypeSibling = _.find(originalParent.children(), function (sibling) {
                                                        try {
                                                            mediaTypeParser.parse(sibling.key());
                                                            return true;
                                                        }
                                                        catch (exception) {
                                                            return false;
                                                        }
                                                    });
                                                    if (!mediaTypeSibling) {
                                                        //we can create inherited node;
                                                        var pc = aNode.parent().definition().key();
                                                        var node = new hlimpl.ASTNodeImpl(x, aNode, range, p);
                                                        node._computedKey = vl;
                                                        if (pc == universes.Universe10.MethodBase || pc == universes.Universe08.MethodBase) {
                                                            node.setComputed("form", "true"); //FIXME
                                                        }
                                                        var isInsideTraitOrResourceType = isInTtraitOrResourceType(aNode);
                                                        var t = descriminate(p, aNode, node);
                                                        if (t) {
                                                            if (!isInsideTraitOrResourceType) {
                                                                t.setName(vl);
                                                            }
                                                            node.patchType(t);
                                                        }
                                                        var ch = node.children();
                                                        //this are false unknowns actual unknowns will be reported by parent node
                                                        node._children = ch.filter(function (x) { return !x.isUnknown(); });
                                                        node._allowQuestion = allowsQuestion;
                                                        if (!exists) {
                                                            inherited.push(node);
                                                        }
                                                        node.children().forEach(function (x) {
                                                            if (x.property().getAdapter(services.RAMLPropertyService).isKey()) {
                                                                var atr = x;
                                                                atr._computed = true;
                                                                return;
                                                            }
                                                            if (x.isElement()) {
                                                                if (!x.property().getAdapter(services.RAMLPropertyService).isMerged()) {
                                                                    filter[x.property().nameId()] = true;
                                                                }
                                                            }
                                                            if (x.property().isAnnotation()) {
                                                                var atr = x;
                                                                var vl = atr.value();
                                                                var strVal = "";
                                                                if (hlimpl.StructuredValue.isInstance(vl)) {
                                                                    strVal = vl.valueName();
                                                                }
                                                                else {
                                                                    strVal = "" + vl;
                                                                }
                                                                filter["(" + strVal + ")"] = true;
                                                            }
                                                            else {
                                                                filter[x.name()] = true;
                                                            }
                                                        });
                                                        var ap = node.definition().allProperties();
                                                        ap.forEach(function (p) {
                                                            if (p.getAdapter(services.RAMLPropertyService).isKey()) {
                                                                return;
                                                            }
                                                            if (p.getAdapter(services.RAMLPropertyService).isSystem()) {
                                                                return;
                                                            }
                                                            if (node.lowLevel().children().some(function (x) { return x.key() == p.nameId(); })) {
                                                                filter[p.nameId()] = true;
                                                            }
                                                        });
                                                        node._computed = true;
                                                    }
                                                }
                                            }
                                        });
                                    }
                                }
                                var parsed = [];
                                if (xChildren.length == 0) {
                                    if (x.valueKind() == yaml.Kind.SEQ) {
                                        if (p.range().key() == universes.Universe08.Parameter) {
                                            var error = new hlimpl.BasicASTNode(x, aNode);
                                            error.errorMessage = {
                                                entry: messageRegistry.PROPERTY_MUST_BE_A_MAP,
                                                parameters: { propName: p.nameId() }
                                            };
                                            res.push(error);
                                        }
                                    }
                                }
                                if (p.nameId() === "documentation" && x.valueKind() !== yaml.Kind.SEQ) {
                                    if (!aNode.definition().getAdapter(services.RAMLService).isUserDefined()) {
                                        var error = new hlimpl.BasicASTNode(x, aNode);
                                        error.errorMessage = {
                                            entry: messageRegistry.PROPERTY_MUST_BE_A_SEQUENCE,
                                            parameters: { propName: p.nameId() }
                                        };
                                        res.push(error);
                                    }
                                }
                                else {
                                    xChildren.forEach(function (y) {
                                        if (filter[y.key()]) {
                                            return;
                                        }
                                        if (y.valueKind() == yaml.Kind.SEQ) {
                                            var isRaml1 = aNode.definition().universe().version() == "RAML10";
                                            y.children().forEach(function (z) {
                                                var node = new hlimpl.ASTNodeImpl(z, aNode, range, p);
                                                node._allowQuestion = allowsQuestion;
                                                node.setNamePatch(y.key());
                                                if (isRaml1) {
                                                    node.invalidSequence = true;
                                                }
                                                parsed.push(node);
                                            });
                                            if (y.children().length == 0) {
                                                var error = new hlimpl.BasicASTNode(y, aNode);
                                                if (p.range().key() == universes.Universe08.Parameter) {
                                                    error.errorMessage = {
                                                        entry: messageRegistry.NAMED_PARAMETER_NEEDS_TYPE,
                                                        parameters: {}
                                                    };
                                                }
                                                else {
                                                    error.errorMessage = {
                                                        entry: messageRegistry.NODE_SHOULD_HAVE_VALUE,
                                                        parameters: {}
                                                    };
                                                }
                                                res.push(error);
                                            }
                                        }
                                        else {
                                            var node = new hlimpl.ASTNodeImpl(y, aNode, range, p);
                                            var dc = p.domain().key();
                                            if (p.nameId() == "body" && (dc == universes.Universe08.MethodBase || dc == universes.Universe10.MethodBase)) {
                                                node.setComputed("form", "true"); //FIXME
                                            }
                                            node._allowQuestion = allowsQuestion;
                                            parsed.push(node);
                                        }
                                    });
                                }
                                if (parsed.length > 0) {
                                    parsed.forEach(function (x) { return rs.push(x); });
                                }
                                else {
                                    inherited.forEach(function (x) { return rs.push(x); });
                                }
                            }
                        }
                        else {
                            //var y=xChildren[0];
                            rs.push(new hlimpl.ASTNodeImpl(x, aNode, range, p));
                        }
                    }
                    else {
                        var node = new hlimpl.ASTNodeImpl(x, aNode, range, p);
                        node._allowQuestion = allowsQuestion;
                        rs.push(node);
                    }
                    aNode._children = aNode._children.concat(rs);
                    res = res.concat(rs);
                    rs.forEach(function (x) {
                        var rt = descriminate(p, aNode, x);
                        if (rt && rt != x.definition()) {
                            x.patchType(rt);
                        }
                        x._associatedDef = null;
                        p.childRestrictions().forEach(function (y) {
                            x.setComputed(y.name, y.value);
                        });
                        var def = x.definition();
                    });
                }
            }
            else {
                if (!(proxy.LowLevelCompositeNode.isInstance(x))
                    || x.primaryNode() != null) {
                    res.push(new hlimpl.BasicASTNode(x, aNode));
                }
            }
        });
        var rNode = aNode.reusedNode();
        if (rNode && aNode.lowLevel().valueKind() != yaml.Kind.SEQ) {
            var cObj = {};
            rNode.elements().forEach(function (x) { return cObj[x.property().nameId() + "_" + x.lowLevel().key()] = x; });
            rNode.attrs().forEach(function (x) { return cObj[x.property().nameId() + "_" + x.lowLevel().key()] = x; });
            res.filter(function (ch) { return ch.isElement() || ch.isAttr(); }).forEach(function (ch) {
                var rChild = cObj[ch.property().nameId() + "_" + ch.lowLevel().key()];
                if (rChild && rChild != ch) {
                    if (ch.isElement() && ch.lowLevel().parent().valueKind() != yaml.Kind.SEQ) {
                        ch.setReusedNode(rChild);
                        ch.setReuseMode(aNode.reuseMode());
                    }
                }
            });
        }
        return res;
    };
    return BasicNodeBuilder;
}());
exports.BasicNodeBuilder = BasicNodeBuilder;
function getBaseType(node, expression) {
    if (!expression) {
        return node.definition().universe().type(universes.Universe10.StringTypeDeclaration.name);
    }
    var pt = node.parsedType();
    if (pt.isString()) {
        return (node.definition().universe().type(universes.Universe10.StringTypeDeclaration.name));
    }
    else if (pt.isNumber()) {
        if (pt.isInteger()) {
            return (node.definition().universe().type(universes.Universe10.IntegerTypeDeclaration.name));
        }
        return (node.definition().universe().type(universes.Universe10.NumberTypeDeclaration.name));
    }
    else if (pt.isBoolean()) {
        return (node.definition().universe().type(universes.Universe10.BooleanTypeDeclaration.name));
    }
    else if (pt.isObject()) {
        return (node.definition().universe().type(universes.Universe10.ObjectTypeDeclaration.name));
    }
    else if (pt.isArray()) {
        return (node.definition().universe().type(universes.Universe10.ArrayTypeDeclaration.name));
    }
    else if (pt.isFile()) {
        return (node.definition().universe().type(universes.Universe10.FileTypeDeclaration.name));
    }
    else if (pt.isDateTime()) {
        return (node.definition().universe().type(universes.Universe10.DateTimeTypeDeclaration.name));
    }
    else if (pt.isDateTimeOnly()) {
        return (node.definition().universe().type(universes.Universe10.DateTimeOnlyTypeDeclaration.name));
    }
    else if (pt.isDateOnly()) {
        return (node.definition().universe().type(universes.Universe10.DateOnlyTypeDeclaration.name));
    }
    else if (pt.isTimeOnly()) {
        return (node.definition().universe().type(universes.Universe10.TimeOnlyTypeDeclaration.name));
    }
    if (pt.isUnion()) {
        return (node.definition().universe().type(universes.Universe10.UnionTypeDeclaration.name));
    }
    return (node.definition().universe().type(universes.Universe10.TypeDeclaration.name));
}
function transform(u) {
    return function (x) {
        var m = u.type(x);
        if (!m) {
            var ut = new defs.UserDefinedClass("", u, null, "", "");
        }
        return m;
    };
}
function findFacetInTypeNode(typeNode, facetName) {
    var typeNodeElement = typeNode.asElement();
    if (typeNodeElement == null)
        return null;
    var facets = typeNodeElement.elementsOfKind(universes.Universe10.TypeDeclaration.properties.facets.name);
    if (facets == null || facets.length == 0)
        return null;
    return _.find(facets, function (facet) {
        return facetName == facet.attrValue(universes.Universe10.TypeDeclaration.properties.name.name);
    });
}
function findFacetDeclaration(facet) {
    var owner = facet.owner();
    if (owner == null)
        return null;
    var facetName = facet.facetName();
    if (!facetName)
        return null;
    var ownerSource = owner.getExtra(ramlTypes.SOURCE_EXTRA);
    if (ownerSource == null)
        return null;
    if (!def.isSourceProvider(ownerSource) && !hl.isParseResult(ownerSource)) {
        return null;
    }
    return {
        getSource: function () {
            if (def.isSourceProvider(ownerSource)) {
                var resolvedSource = ownerSource.getSource();
                if (resolvedSource && hl.isParseResult(resolvedSource)) {
                    return findFacetInTypeNode(resolvedSource, facetName);
                }
            }
            else if (hl.isParseResult(ownerSource)) {
                return findFacetInTypeNode(ownerSource, facetName);
            }
            return null;
        },
        getClassIdentifier: function () {
            return [defs.SourceProvider.CLASS_IDENTIFIER];
        }
    };
}
function patchTypeWithFacets(originalType, nodeReferencingType, parentOfReferencingNode) {
    if (originalType == null)
        return null;
    var patchedType = new defs.NodeClass(nodeReferencingType.name(), nodeReferencingType.definition().universe(), "", "");
    var parsedRType = nodeReferencingType.parsedType();
    patchedType.addAdapter(parsedRType);
    parsedRType.allFacets().forEach(function (facet) {
        if (facet.kind() == defs.tsInterfaces.MetaInformationKind.FacetDeclaration) {
            var propertySource = findFacetDeclaration(facet);
            var facetBasedProperty = null;
            if (propertySource != null) {
                facetBasedProperty = new defs.UserDefinedProp(facet.facetName(), null);
                facetBasedProperty.setSourceProvider(propertySource);
            }
            else {
                facetBasedProperty = new defs.Property(facet.facetName(), "");
            }
            var currentUniverse = null;
            if (parentOfReferencingNode) {
                currentUniverse = parentOfReferencingNode.definition().universe();
            }
            else {
                currentUniverse = nodeReferencingType.definition().universe();
            }
            facetBasedProperty.withRange(currentUniverse.type("StringType"));
            facetBasedProperty.withDomain(patchedType);
            facetBasedProperty.withGroupName(facet.facetName());
            facetBasedProperty.withRequired(false);
            facet.value();
            ramlTypes.setPropertyConstructor(function (x) {
                var v = new defs.Property(x, "");
                v.unmerge();
                return v;
            });
            facetBasedProperty.withRange(ramlTypes.toNominal(facet.value(), transform(nodeReferencingType.definition().universe())));
        }
    });
    patchedType._superTypes.push(originalType);
    return patchedType;
    // return originalType;
}
function desc1(p, parent, x) {
    var tp = x.attr("type");
    var value = "";
    if (tp) {
        var baseType = getBaseType(x, tp.value());
        var patchedType = patchTypeWithFacets(baseType, x, parent);
        if (patchedType) {
            if (patchedType.superTypes().length == 0) {
                patchedType._superTypes.push(x.definition().universe().type(universes.Universe10.TypeDeclaration.name));
            }
        }
        return patchedType;
    }
    else {
        var propertiesName = universes.Universe10.ObjectTypeDeclaration.properties.properties.name;
        if (p) {
            if (p.nameId() == "body" || _.find(x.lowLevel().children(), function (x) { return x.key() === propertiesName; })) {
                return x.definition().universe().type(universes.Universe10.ObjectTypeDeclaration.name);
            }
        }
        else {
            if (!parent && x.lowLevel() && _.find(x.lowLevel().children(), function (x) { return x.key() === propertiesName; })) {
                return x.definition().universe().type(universes.Universe10.ObjectTypeDeclaration.name);
            }
        }
        return x.definition().universe().type(universes.Universe10.StringTypeDeclaration.name);
    }
}
function doDescrimination(node) {
    try {
        var nodeDefenitionName = node.definition().nameId();
        var isApi = nodeDefenitionName === universes.Universe10.Api.name || nodeDefenitionName === universes.Universe08.Api.name;
        if (!isApi && !node.property() && !node.parent() && node.definition().nameId() === hlimpl.getFragmentDefenitionName(node)) {
            if (node.property() && node.property().nameId() === universes.Universe10.LibraryBase.properties.annotationTypes.name) {
                return descriminate(null, null, node);
            }
            var result = null;
            var subTypes = node.definition().allSubTypes();
            subTypes.forEach(function (subType) {
                if (!result && match(subType, node, null)) {
                    result = subType;
                }
            });
            return result;
        }
    }
    catch (exception) {
    }
    return descriminate(node.property(), node.parent(), node);
}
exports.doDescrimination = doDescrimination;
function descriminate(p, parent, x) {
    var n = x.lowLevel();
    if (p) {
        if (p.nameId() == universes.Universe10.FragmentDeclaration.properties.uses.name &&
            p.range().nameId() == universes.Universe10.Library.name) {
        }
    }
    var range = p ? p.range().nameId() : x.definition().nameId();
    if (n._node && n._node['descriminate']) {
        return null;
    }
    if (n._node) {
        n._node['descriminate'] = 1;
    }
    try {
        if (range == universes.Universe10.TypeDeclaration.name) {
            var res = desc1(p, parent, x);
            if (p || (!p && !parent && x.lowLevel())) {
                if (p && res != null && ((p.nameId() == universes.Universe10.MethodBase.properties.body.name
                    || p.nameId() == universes.Universe10.ArrayTypeDeclaration.properties.items.name
                    || p.nameId() == universes.Universe10.Response.properties.headers.name) ||
                    p.nameId() == universes.Universe10.MethodBase.properties.queryParameters.name)) {
                    var ares = new defs.UserDefinedClass(x.lowLevel().key(), res.universe(), x, x.lowLevel().unit() ? x.lowLevel().unit().path() : "", "");
                    ares._superTypes.push(res);
                    return ares;
                }
                if (res != null && universeHelpers.isAnnotationTypeType(x.definition())) {
                    var annotationType = descriminateAnnotationType(res);
                    var ares = new defs.UserDefinedClass(x.lowLevel().key(), res.universe(), x, x.lowLevel().unit() ? x.lowLevel().unit().path() : "", "");
                    ares._superTypes.push(annotationType);
                    ares._superTypes.push(res);
                    return ares;
                }
            }
            if (res) {
                return res;
            }
        }
        //generic case;
        var rt = null;
        if (p && parent) {
            var types = search.findAllSubTypes(p, parent);
            if (types.length > 0) {
                types.forEach(function (y) {
                    if (!rt) {
                        if (match(y, x, rt)) {
                            rt = y;
                        }
                    }
                });
            }
            return rt;
        }
    }
    finally {
        if (n._node) {
            delete n._node['descriminate'];
        }
    }
}
;
function descriminateAnnotationType(type) {
    var arr = [type].concat(type.allSuperTypes());
    var candidate;
    for (var i = 0; i < arr.length; i++) {
        var t = arr[i];
        if (t.isUserDefined()) {
            continue;
        }
        if (t.isUnion()) {
            var ut = t;
            var lt = ut.leftType();
            var rt = ut.leftType();
            var lat = descriminateAnnotationType(lt);
            var rat = descriminateAnnotationType(lt);
            if (lat.isAssignableFrom(rat.nameId()) && (candidate == null || lat.isAssignableFrom(candidate.nameId()))) {
                candidate = lat;
                continue;
            }
            if (rat.isAssignableFrom(lat.nameId()) && (candidate == null || rat.isAssignableFrom(candidate.nameId()))) {
                candidate = rat;
                continue;
            }
            candidate = type.universe().type(universes.Universe10.UnionTypeDeclaration.name);
            break;
        }
        if (t.isArray()) {
            candidate = type.universe().type(universes.Universe10.ArrayTypeDeclaration.name);
            break;
        }
        var subTypes = t.subTypes();
        for (var j = 0; j < subTypes.length; j++) {
            var st = subTypes[j];
            if (st.isAssignableFrom(universes.Universe10.TypeDeclaration.name)) {
                if (candidate == null) {
                    candidate = st;
                }
                else if (st.isAssignableFrom(candidate.nameId())) {
                    candidate = st;
                }
            }
        }
    }
    return candidate != null ? candidate : type.universe().type(universes.Universe10.TypeDeclaration.name);
}
var isInTtraitOrResourceType = function (aNode) {
    var isInsideTraitOrResourceType = false;
    var parent_ = aNode;
    while (parent_) {
        var pDef = parent_.definition();
        if (universeHelpers.isTraitType(pDef)
            || universeHelpers.isResourceTypeType(pDef)) {
            isInsideTraitOrResourceType = true;
            break;
        }
        parent_ = parent_.parent();
    }
    return isInsideTraitOrResourceType;
};
function match(t, r, alreadyFound) {
    //this.vReqInitied=true;
    if (r.isAttr() || r.isUnknown()) {
        return false;
    }
    var el = r;
    var hasSuperType = _.find(t.superTypes(), function (x) {
        var dp = _.find(x.allProperties(), function (x) { return (x).isDescriminator(); });
        if (dp) {
            var a = el.attr(dp.nameId());
            if (a) {
                if (a.value() == t.nameId()) {
                    return true;
                }
            }
        }
        return false;
    });
    if (hasSuperType) {
        return true;
    }
    if (t.valueRequirements().length == 0) {
        return false;
    }
    var matches = true;
    //descriminating constraint
    t.valueRequirements().forEach(function (x) {
        var a = el.attr(x.name);
        if (a) {
            if (a.value() == x.value) {
            }
            else {
                if (t.getAdapter(services.RAMLService).getConsumesRefs()) {
                    var vl = a.value();
                    var allSubs = [];
                    t.superTypes().forEach(function (x) { return x.allSubTypes().forEach(function (y) {
                        allSubs.push(y);
                    }); });
                    var allSubNames = [];
                    _.unique(allSubs).forEach(function (x) {
                        allSubNames.push(x.nameId());
                        x.valueRequirements().forEach(function (y) {
                            allSubNames.push(y.value);
                        });
                        x.getAdapter(services.RAMLService).getAliases().forEach(function (y) { return allSubNames.push(y); });
                    });
                    if (_.find(allSubNames, function (x) { return x == vl; })) {
                        matches = false;
                    }
                }
                else {
                    matches = false;
                }
            }
        }
        else {
            var m = t.getAdapter(services.RAMLService).getDefining();
            var ms = false;
            m.forEach(function (x) {
                el.lowLevel().children().forEach(function (y) {
                    if (y.key() == x) {
                        ms = true;
                    }
                });
            });
            if (ms) {
                matches = true;
                return;
            }
            if (!alreadyFound) {
                var pr = t.property(x.name);
                if (pr && pr.defaultValue() == x.value) {
                }
                else {
                    matches = false;
                }
            }
            else {
                matches = false;
            }
        }
    });
    return matches;
}
//# sourceMappingURL=builder.js.map


text:
Winter 2017: Walkable Neighborhoods
Walkability Is Becoming a Necessity
The Walkable Demand
Find the Walk Score
Zoning for walkable neighborhoods: Form-based Codes Gaining Ground
These Suburbs Were Made for Walking
Linear Urban Parks: Taking off Around the Country
Trails Bring Big Dollars to Rural Towns
Affordable Walkability
Complete Streets for Safer Walks
Walking Leads to Better Health
Myrtle Beach Working On Walking
Are People Driving More or Less?
REALTORS® Take Action: Help Welcome Visitors to Suttons Bay
Making Smart Growth Happen
The village of Suttons Bay, located along the eastern shoreline of Michigan's scenic Grand Traverse Bay, created a unique welcome mat for the picturesque community's many visitors. Thanks to an NAR Placemaking Grant to the Traverse Area Association of REALTORS® (TAAR), a once scruffy intersection has been transformed into a cheery welcome and rest area for users of the Leelanau Trail. The NAR Placemaking grants are designed to assist local REALTOR® Associations around the country in funding lighter, quicker, cheaper placemaking projects. In Suttons Bay, the grant helped turn an eyesore into an oasis.
Slightly more than 600 residents call Suttons Bay home, but each year thousands of tourists from everywhere visit the coastal community. It boasts a popular beach and park and a large marina. The community doesn't have a stoplight, but what the walkable village does feature is a variety of retail shops, restaurants and charming family-run accommodations. Many people arrive in Suttons Bay via a network of trails, bikeways and pedestrian ways called the Traverse Area Recreation and Transportation Trails Inc. or TART.
TART has transformed railroad corridors and other easements into popular recreation spaces. The 60-mile network of trails attracts bikers and walkers for much of the year and is groomed for cross country skiing in the winter. Suttons Bay sits at the trailhead of one of TART's most popular trails. The 17-mile Leelanau Trail connects Traverse City to the south with Suttons Bay via a paved, off-road trail winding through farmland and vineyards and around lakes and ponds. Visitors don't have to bike both ways, but can take advantage of a bike and ride bus that returns them to Traverse City.
For years, when TART trail users arrived in Suttons Bay their first view of the community was an overgrown intersection at the edge of town. Suttons Bay's village manager and Chamber of Commerce officials were looking for ways to provide visitors with some much needed wayfinding signage and restore the community's deteriorating red British-style telephone booths. It was just the type of project for an NAR Placemaking grant.
"When I first learned about a grant that might be available, I immediately started looking for a suitable project. It needed to be small scale, but permanent and not temporary," explains Kimberly Pontius, executive vice president of TAAR.
TAAR secured a $2,500 grant and also added $500 of its own funds to the pot. That started the ball rolling and construction was completed by the end of the summer 2015.
"It really was a stone-soup project," says Pontius. "We had something to offer and others all added something, too. I know they say 'it takes a village', but in this case, that's the truth."
Suttons Bay Village Manager Wally Delamater agrees. He said the project shows "simple success when working together." "Private and public funding partnerships set an example of working together. This collaborative example was used to leverage other aspects of the project."
The total project cost was approximately $12,000. The NAR grant and TAAR funds were used to restore the iconic red phone booth and provide signage that is protected from the elements and accessible year round. The Chamber also contributed some funds. The village provided the concrete for the site and a local company donated heavy equipment time. A nearby local business donated landscaping materials. The owner of land adjacent to the rest stop granted permission for an easement that made the placement of the site possible. And volunteers added time and muscle. The result was an attractive rest area and popular photo stop.
"Previously when folks arrived in Suttons Bay, they would say 'now what'? says Pontius. "Now they have a place to take a break. And the phone booth is a wildly popular spot for selfies."
It's often difficult for small communities to get the seed money needed to launch civic improvement projects. In addition to funds, strong community partnerships are essential to success.
"Small communities can usually come up with volunteers but seem to always fall short on funds," Delamater explains. "The NAR grant was a catalyst to not only generate local support in rehabilitation of the phone booths, but provided a funding partnership between the public and private sector to establish the rest area kiosk as a welcome to Suttons Bay."
Suttons Bay's welcoming rest stop doesn't appear to be the end of the line. Pontius explains that the project's success is serving as the impetus to restore another of the red phone booths. Working together, leaders from the private and public sectors have come together in a true community partnership that has created a lasting community asset.
About On Common Ground
A free, semi-annual magazine published by NAR, On Common Ground presents a wide range of views on smart growth issues, with the goal of encouraging dialog among REALTORS®, elected officials, and other interested citizens.


Free download 80 s HOT DISCO HITS Full album mp3. We have about 50 mp3 files ready to play and download. To start this download you need to click on [Download] Button. Remember that by downloading this song you accept our terms and conditions. Enjoy downloading 80 s HOT DISCO HITS Full album.mp3 for free!
Happy Birthday! Make it Rock!


ST 1. 7 - STEM educators collaborate as an interdisciplinary team to plan, implement, and improve integrated STEM learning experiences.
Our teachers work together to design STEM lessons and activities for our students. Each grade level shares a common planning time to allow for collaboration amongst teachers regularly throughout the school year. Teachers receive training from from a variety of resources from an full-time instructional coach, district technology coaches and coordinators, and more.
Offered by the South Carolina Department of Education, two teams of teachers at Red Cedar Elementary School took part in the PBL and STEM Cohort. Over the course of the school year and culminating in the summer, teachers attended face-to-face training as well as virtual meetings where they worked to support the Profile of a South Carolina Graduate through successfully developing STEM units of study that span across the curriculum, implement STEM and Project-Based Learning (PBL), and demonstrate a strong foundation of South Carolina academic standards.
I can apply knowledge of South Carolina academic standards through current best practices of STEM, transdisciplinary learning, and Project-Based Learning.
I can establish a classroom culture that is conducive to STEM learning and inquiry.
I can collaborate and interact with other educators via Blackboard Learn and document my learning progressions in applying STEM and PBL unit development strategies.
I can recognize ways to formally and informally assess 21st century learners.
For the past three years teachers from Red Cedar Elementary School have participated in a STEM Cohort hosted by the district office. The teachers who participate in the STEM Cohort are chosen by their principal, and they represent different grade levels. One of the main goals of the STEM Cohort is to take STEM from a word to an action. To begin the process, the teachers participated in a day long workshop that focused on; increasing understanding of what a STEM classroom looks like, increasing teacher's confidence when using STEM activities, sharing STEM lessons, and modeling cross curricular lessons. The second phase of the STEM Cohort is to have the STEM District Coordinator conduct an observation of each of the teachers teaching a STEM lesson and providing feedback.
Red Cedar understands the value of collaboration amongst teachers and staff to ensure a common voice and to utilize the time to refine curriculum, discuss data, and make informed decisions as a team. Teachers meet weekly as a team in what we call Rainbow Meetings. These are essential to the success of our school as we are able to utilize the expertise internally from our instructional coach, colleagues, administration and have a designated time for reflection and improvement.
Revisit the long range plan. Make revisions and set goals for the meeting.
Revise the unit that has most recently been completed.
Begin planning a new unit or revising an existing unit that is approaching.
Towards the beginning of our STEM journey teachers participated in the NASA Touchdown Challenge during a professional development day. Teachers were purposefully grouped, worked collaboratively to complete the journey and then tested and improved their model. We debriefed by discussing how we can use the Engineering and Design Process in our instruction with students.


text:
Urachal cyst with xanthogranulomatous cystitis: A rare case report
Aakash Singh1, HL Kishan Prasad1, K Jayaprakash Shetty1, Nigi Ross Philip1, Ruhi Salma2, Anitha Chakravarthy2
1 Department of Pathology, K. S. Hegde Medical Academy, Mangalore, Karnataka, India
2 Post Graduates, K. S. Hegde Medical Academy, Mangalore, Karnataka, India
Dr. H L Kishan Prasad
Department of Pathology, K. S. Hegde Medical Academy, Deralakatte, Mangalore, Karnataka
An urachal cyst is a sinus remaining from the allantois during embryogenesis which is rarely manifested in adults. The urachus is an embryologic remnant which degenerates after the birth. Defective obliteration of the urachus leads to urachal abnormalities. Urachal cyst is a rare pathology in adult women, and this pathology should be considered in the differential diagnosis of acute abdomen. Xanthogranulomatous cystitis (XC) is a benign disease of unknown etiology. The clinical manifestations of these are nonspecific such as lower abdominal pain, umbilical discharge with occasional hematuria. Urachal lesions present with persistent umbilical drainage in infants and newborn. However, in 35% cases, enclosed urachal cyst or infected urachal cyst (abscess) manifests without having umbilical discharge. Computed tomography scan and magnetic resonance imaging are of little help to the identification of these preoperatively. Here, we present a rare case of urachal cyst with XC in 30-year-old female which has produced diagnostic dilemma.
Singh A
Kishan Prasad H L
Shetty K J
Philip NR
Salma R
Chakravarthy A
Urachal cyst
urachus
xanthogranulamatous cystitis