text
stringlengths
1
22.8M
Laura Huey is a Canadian criminologist specialising in the study of public policing, victimization, missing persons and mental health issues in criminal justice. Huey is a professor at the University of Western Ontario in the department of sociology. She is also the editor-in-chief of the international journal Police Practice & Research, Chair of the Working Group on Mental Health and Policing of the COVID-19 Taskforce of the Royal Society of Canada, former vice-chair of the American Society of Criminologists' division of policing and the former executive director of the Canadian Society of Evidence Based Policing. She is also a member of the College of New Scholars, Artists and Scientists of the Royal Society of Canada and a senior research fellow with the National Police Foundation. Career Research on policing A significant focus of Huey's research is the politics of policing. Her first book, Negotiating Demands: The Politics of Skid Row Policing in Edinburgh, San Francisco and Vancouver, draws on field-based research to comparatively examine "the influence of local political, moral, and economic issues on police practices within marginalized communities" within three 'liberal', yet very different types of 'liberal' cities. While the political aspects of policing remained a research interest in the period that followed, it wasn't until 2022 that she released another book in this area. The Wicked Problems of Police Reform in Canada draws on twenty years of empirical data to present the public policy issues associated with the politics surrounding public police reform. Her current project continues to explore this interest but within the context of public order policing: #OccupyOttawa: An Oral History. Throughout much of the period from 2015 to 2020, Huey's research and community engagement activities were focused on promoting evidence-based policing in Canada. In 2014, Huey was asked to sit as a member of the Canadian Council of Academies' expert panel on the future of Canadian policing. This panel was convened by Public Safety Canada in response to tri-partite agreement between federal territorial and provincial governments to explore maintaining or reducing policing costs. Recognizing a lack of sound Canadian policy-oriented research to address policing issues, in 2015 Huey founded the Canadian Society of Evidence Based Policing (Can-SEBP) and began to work with applied researchers and police organizations to try to increase the volume of research being produced. When she stepped down as Can-SEBP's Director in 2020, this network of academics and policing practitioners had grown to over 3,000 members. Huey is also the co-author of two books in this field: Implementing Evidence Based Research: A How to Guide for Police Organisations and Evidence Based Policing: An Introduction to Key Ideas. Research on victimisation Following her Master's and Doctorate research into public and private policing within marginalized communities, Huey spent most of the early years of her career exploring criminal victimization of homeless citizens. Much of this work focused on two inter-related areas: the victimization of impoverished women and police responses to these crimes. The dominant theme in two of Huey's books from this period is the profound lack of recognition of the nature and extent to which homeless women are victims of violence, and how ill-equipped current social and healthcare systems are to deal with the complex trauma that follows. In Becoming Strong: Impoverished Women and the Struggle to Overcome Violence, Huey and co-author Ryan Broll place this issue front and center in an analysis that draws on interviews from over two hundred impoverished women in three major U.S. cities. Relatedly, Adding Insult to Injury: (Mis)Treating Homeless Women in Our Mental Health System takes aim at the medicalization of impoverished women's suffering within social and healthcare settings. Huey and Ricciardelli argue for a trauma-informed approach to assisting women who are facing multiple issues, including the after-effects of significant violence. Invisible Victims: Homelessness and the Growing Security Gap extends Huey's previous research into public policing and the provision of security within marginalized communities. Running counter to the academic trend to argue for less or no public policing within homeless and other economically disenfranchised communities, Huey argues that security – both physical and ontological – is both a civil right and a fundamental human right of all citizens. Drawing on her research over the preceding ten years, she maps out the ways in which the security needs of homeless citizens are neglected by policymakers and others and offers recommendations for a radical re-thinking of this issue. Research into missing persons Huey has written extensively on issues related to missing persons in Canada, primarily drawn from research using police data to explore both routine and unique aspects of missing persons cases to better identify the types of situations in which people are most and least likely to be reported missing. In 2019 she was asked to participate in the Independent Civilian Review into Missing Persons Investigations (the Epstein report). The result was an assessment of the available research on Canadian missing persons. After identifying only 16 studies that met her criteria, Huey concluded: the number of available Canadian studies is too low to be of use; the quality of much of the work in this area is not high; none of the papers identified provides useful insights into 'what works' to reduce or respond to missing persons calls; and the few topics and themes are too narrowly focused to either provide insights into general patterns or a sound empirical base for moving in any one direction. Research into mental health In 2020, Huey was asked to sit as the chair of a newly formed working group on Mental Health and Policing as part of the Royal Society of Canada's COVID-19 Taskforce. The group produced two working papers. In Volume I, Huey and colleagues identified several of the challenges facing researchers, police and policymakers in relying on police data to draw useful observations to inform policy or practice. Among their recommendations: provincial data capturing standards, improved data sharing practices and investments in improving the ability of Indigenous police services to collect and share data. In Volume II, the working group focused on providing evidence assessments for different types of police interventions involving individuals with mental illness. These assessments covered topics such as police co-response models, mental health screening tools, non-escalation and de-escalation training and situation tables. In 2022 Huey and colleagues released a book, Policing Mental Health: Public Safety and Crime Prevention in Canada. Within it, they document the range of calls involving people with mental health issues, from missing persons and suicide-related calls to car accidents and noise disturbances. References External links Professor Laura Huey, Department of Sociology, University of Western Ontario Canadian criminologists Academic staff of the University of Western Ontario Year of birth missing (living people) Living people 21st-century Canadian women writers Academic journal editors Canadian women criminologists Canadian women editors
Philips Angel I (bapt. 14 September 1616 - (after?) October 1683) was a Dutch painter of still lifes. Biography Philips Angel I left his native Middelburg in 1639 to establish himself as a still life painter in Haarlem. He entered the Haarlem Guild of St. Luke in 1639 and was still mentioned as a member in 1643. He returned to Middelburg at least in 1652 and remained there until his death. Philips Angel I's life and work are often mixed up with those of a relative (presumably a cousin), the contemporary painter of the same name (referred to as Philips Angel II or Philips Angel van Leiden), born in 1618 in Leiden. Philips Angel II was active as a painter in Leiden from 1637 to 1645, then sailed to Batavia, Dutch East Indies where he died after 11 July 1664. Work Approximately 30 paintings are currently attributed to Philips Angel I, some with dates between 1642 and 1664 or 1668. He was mainly a still life painter. Due to confusion resulting from the signatures and dates which he added to his paintings it is difficult to determine the development of his art with its divergent subgenres, especially his sober still lifes with food, dishes and kitchen-objects sometimes known as ontbijtjes (Dutch for 'breakfast pieces'). His works fall into three main groups: barn interiors with an emphasis on the still life element, 'ontbijtjes' and still lifes with dead fowl. The influence of Frans Rijckhals can be seen in the first two groups. Ryckhals may have been Angel's teacher in Middelburg. His 'ontbijtjes' show the influence of Haarlem painters such as Floris van Dyck in their tendency to build compositions from individually studied components and in the rendering of various details. The still lifes with dead fowl belong to his best works and are similar to the game pieces of the Flemish painters Jan Fyt and Alexander Adriaenssen. These works demonstrate Angel's skill at painting fur and feathers. Works A still-life, signed P. Angel, 1660 — is in the Berlin Museum. Still-life with crayfish, Museum Bredius Still-life with dead birds on a table, 1649, Old Town Hall of Middelburg (NL) Still life paintings on Artnet References 1616 births 1680s deaths Year of death missing Dutch Golden Age painters Dutch male painters Painters from Middelburg Painters from Haarlem Dutch still life painters
```go package controllers import ( "database/sql" "fmt" "github.com/3xxx/engineercms/models" "github.com/3xxx/flow" "github.com/PuerkitoBio/goquery" "github.com/beego/beego/v2/core/logs" "github.com/beego/beego/v2/server/web" // beego "github.com/beego/beego/v2/adapter" _ "github.com/go-sql-driver/mysql" "io" "log" "path" "strconv" "strings" ) // VueFlow API type FlowController struct { web.Controller } func (c *FlowController) Get() { c.Data["Website"] = "beego.me" c.Data["Email"] = "astaxie@gmail.com" c.TplName = "flow.tpl" } // var tx *sql.Tx // tx, _ := db.Begin() // db.Close() // var db *sql.DB // func init() { // driver, connStr := "mysql", "travis@/flow?charset=utf8&parseTime=true" // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB) // // flow.RegisterDB(tdb) // if tdb == nil { // log.Fatal("given database handle is `nil`") // } // db = tdb // tx, _ := db.Begin() // db.Close() // } // @Title show wf page // @Description show workflow page // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 articls not found // @router /workflow [get] // func (c *FlowController) WorkFlow() { c.TplName = "index.html" } // @Title post wf doctype... // @Description post workflowdoctype.. // @Param name query string true "The name of doctype" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtype [post] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowType() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) // func init() { // orm.RegisterDriver("mysql", orm.DRMySQL)// // orm.RegisterModel(new(Model))// model // orm.RegisterDataBase("default", "mysql", "test:123456@/test?charset=utf8",30,30)// //orm.RegisterDataBase("default", "mysql", "test:@/test?charset=utf8")// // } // driver, connStr := "mysql", "travis@/flow?charset=utf8&parseTime=true" // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB) // if tdb == nil { // log.Fatal("given database handle is `nil`") // } // db := tdb // tx, _ := db.Begin() // db.Close() var tx *sql.Tx name := c.GetString("name") // beego.Info(name) // jsoninfo := c.GetString("name1") //formdata // beego.Info(jsoninfo) // _, err := flow.DocTypes.New(tx, name) //"" if err != nil { fmt.Println(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() // c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } } // type doctypelist struct { Doctype []*flow.DocType `json:"doctypes"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf doctypelist... // @Description get workflowdoctype.. // @Param page query string false "The page of doctype" // @Param limit query string false "The size of page" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtypelist [get] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowTypeList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } doctype, err := flow.DocTypes.List(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.DocTypes.List(0, 0) if err != nil { logs.Error(err) } list := doctypelist{doctype, page1, len(arr)} // tx.Commit() c.Data["json"] = list c.ServeJSON() } // @Title post wf doctype... // @Description post workflowdoctype.. // @Param name query string false "The name of doctype" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtypeupdate [post] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowTypeUpdate() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // err = flow.DocTypes.Rename(tx, flow.DocTypeID(dtID), name) //"" if err != nil { fmt.Println(err) } // tx.Commit() c.Data["json"] = "ok" c.ServeJSON() } // @Title post wf doctype... // @Description post workflowdoctype.. // @Param name query string true "The name of doctype" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtypedelete [post] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowTypeDelete() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") // _, err := flow.DocTypes.New(tx, name) //"" if err != nil { fmt.Println(err) } c.Data["json"] = "ok" c.ServeJSON() } // @Title post wf docstate... // @Description post workflowdocstate.. // @Param name query string true "The name of docstate" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowstate [post] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowState() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") // _, err := flow.DocStates.New(tx, name) //"..." if err != nil { fmt.Println(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // dsID2, err := flow.DocStates.New(tx, "...") // if err != nil { // fmt.Println(err) // } // dsID3, err := flow.DocStates.New(tx, "...") // if err != nil { // fmt.Println(err) // } // flow.DocStates.New(tx, "...") // flow.DocStates.New(tx, "...") // flow.DocStates.New(tx, "...") // flow.DocStates.New(tx, "...") c.Data["json"] = "ok" c.ServeJSON() } // @Title post wf docstate... // @Description post workflowdocstate.. // @Param name query string false "The name of docstate" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowstateupdate [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowStateUpdate() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // err = flow.DocStates.Rename(tx, flow.DocStateID(dtID), name) //"" if err != nil { fmt.Println(err) } c.Data["json"] = "ok" c.ServeJSON() } // @Title post wf docstate... // @Description post workflowdocstate.. // @Param name query string true "The name of docstate" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowstatedelete [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowStateDelete() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") // _, err := flow.DocStates.New(tx, name) //"" if err != nil { fmt.Println(err) } c.Data["json"] = "ok" c.ServeJSON() } // type docstatelist struct { Docstate []*flow.DocState `json:"docstates"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title post wf docstate... // @Description post workflowdocstate.. // @Param page query string false "The page of docstate" // @Param limit query string false "The size of page" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowstatelist [get] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowStateList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } docstate, err := flow.DocStates.List(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.DocStates.List(0, 0) if err != nil { logs.Error(err) } list := docstatelist{docstate, page1, len(arr)} // tx.Commit() c.Data["json"] = list c.ServeJSON() } // @Title post wf docaction... // @Description post workflowdocaction.. // @Param name query string true "The name of docaction" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowaction [post] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowAction() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") reconfirm := c.GetString("reconfirm") // beego.Info(reconfirm) var reconfirm1 bool if reconfirm == "true" { reconfirm1 = true } else { reconfirm1 = false } // _, err := flow.DocActions.New(tx, name, reconfirm1) //""...... if err != nil { fmt.Println(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } } // @Title post wf docaction... // @Description post workflowdocaction.. // @Param name query string false "The name of docaction" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowactionupdate [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowActionUpdate() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // err = flow.DocActions.Rename(tx, flow.DocActionID(dtID), name) //"" if err != nil { fmt.Println(err) } c.Data["json"] = "ok" c.ServeJSON() } // @Title post wf docaction... // @Description post workflowdocaction.. // @Param name query string true "The name of docaction" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowactiondelete [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowActionDelete() { } // type docactionlist struct { Docaction []*flow.DocAction `json:"docactions"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf docaction... // @Description get workflowdocaction.. // @Param page query string true "The page of docaction" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowactionlist [get] // doctypestatenode // actiontransitionevent func (c *FlowController) FlowActionList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } docaction, err := flow.DocActions.List(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.DocActions.List(0, 0) if err != nil { logs.Error(err) } list := docactionlist{docaction, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf transition... // @Description post transition.. // @Param name query string true "The name of transition" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtransition [post] // doctypestatenode // transitiondoctypedocstate1docactiondocstate2 func (c *FlowController) FlowTransition() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx // dtid := c.GetString("dtid") dtid := c.GetString("dtid") // beego.Info(dtid) //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } dsid1 := c.GetString("dsid1") dsID1, err := strconv.ParseInt(dsid1, 10, 64) if err != nil { logs.Error(err) } daid := c.GetString("daid") daID, err := strconv.ParseInt(daid, 10, 64) if err != nil { logs.Error(err) } dsid2 := c.GetString("dsid2") dsID2, err := strconv.ParseInt(dsid2, 10, 64) if err != nil { logs.Error(err) } //1:oldstate1 action1 newstate2 err = flow.DocTypes.AddTransition(tx, flow.DocTypeID(dtID), flow.DocStateID(dsID1), flow.DocActionID(daID), flow.DocStateID(dsID2)) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } //2:oldstate2 action2 newstate3 // err = flow.DocTypes.AddTransition(tx, flow.DocTypeID(dtID1), flow.DocStateID(dsID2), flow.DocActionID(daID2), flow.DocStateID(dsID3)) // if err != nil { // logs.Error(err) // } } // @Title post wf doctransition... // @Description post workflowdoctransition.. // @Param name query string false "The name of doctransition" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtransitionupdate [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowTransitionUpdate() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // err = flow.DocTypes.RenameTransition(tx, flow.DocTransitionID(dtID), name) //"" if err != nil { fmt.Println(err) } // tx.Commit() c.Data["json"] = "ok" c.ServeJSON() } // @Title post wf doctransition... // @Description post workflowdoctransition.. // @Param name query string true "The name of doctransition" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtransitiondelete [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowTransitionDelete() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } dsid := c.GetString("dsid") //pid64 dsID, err := strconv.ParseInt(dsid, 10, 64) if err != nil { logs.Error(err) } daid := c.GetString("daid") //pid64 daID, err := strconv.ParseInt(daid, 10, 64) if err != nil { logs.Error(err) } err = flow.DocTypes.RemoveTransition(tx, flow.DocTypeID(dtID), flow.DocStateID(dsID), flow.DocActionID(daID)) if err != nil { fmt.Println(err) } // tx.Commit() c.Data["json"] = "ok" c.ServeJSON() } // type transitionlist struct { Transisions []*flow.Transitionstruct `json:"transitions"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf transition... // @Description post transition.. // @Param page query string true "The page of transition" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowtransitionlist [get] // doctypefrom docstatetransion func (c *FlowController) FlowTransitionList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } transisions, err := flow.DocTypes.TransitionsList(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.DocTypes.TransitionsList(0, 0) if err != nil { logs.Error(err) } list := transitionlist{transisions, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf Workflow... // @Description post Workflow.. // @Param name query string true "The name of Workflow" // @Param dtid query string true "The doctypeid of Workflow" // @Param dsid query string true "The docstate of Workflow" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowworkflow [post] // Workflow // doctypeaction func (c *FlowController) FlowWorkflow() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") //- dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } dsid := c.GetString("dsid") dsID, err := strconv.ParseInt(dsid, 10, 64) if err != nil { logs.Error(err) } //doctypeworkflow workflowID, err := flow.Workflows.New(tx, name, flow.DocTypeID(dtID), flow.DocStateID(dsID)) //... if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() logs.Info(workflowID) c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // workflowID2, err := flow.Workflows.New(tx, "-", dtID1, dsID1) //...- // if err != nil { // fmt.Println(err) // } // beego.Info(workflowID2) // // } // type workflowlist struct { Workflows []*flow.Workflow `json:"workflows"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title post wf Workflow... // @Description post Workflow.. // @Param page query string true "The page of Workflow" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowworkflowlist [get] // Workflow // doctypeaction func (c *FlowController) FlowWorkflowList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } workflows, err := flow.Workflows.List(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.Workflows.List(0, 0) if err != nil { logs.Error(err) } list := workflowlist{workflows, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf AccessContext... // @Description post AccessContext.. // @Param name query string true "The name of AccessContext" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowaccesscontext [post] // AccessContext // func (c *FlowController) FlowAccessContext() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") // _, err := flow.AccessContexts.New(tx, name) //"Context" if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() // c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } } // @Title post wf docaccesscontext... // @Description post workflowdocaccesscontext.. // @Param name query string false "The name of docaccesscontext" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowaccesscontextupdate [post] // docstatestatenode // actiontransitionevent func (c *FlowController) FlowAccessContextUpdate() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // err = flow.AccessContexts.Rename(tx, flow.AccessContextID(dtID), name) //"" if err != nil { fmt.Println(err) } c.Data["json"] = "ok" c.ServeJSON() } // type accesscontextlist struct { AccessContexts []*flow.AccessContext `json:"accesscontexts"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf AccessContext... // @Description post AccessContext.. // @Param page query string true "The page of AccessContext" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowaccesscontextlist [get] // AccessContext // func (c *FlowController) FlowAccessContextList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) prefix := c.GetString("prefix") var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } accesscontexts, err := flow.AccessContexts.List(prefix, offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.AccessContexts.List(prefix, 0, 0) if err != nil { logs.Error(err) } list := accesscontextlist{accesscontexts, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf Node... // @Description post Node.. // @Param name query string true "The name of Node" // @Param dtid query string true "The doctypeid of Node" // @Param dsid query string true "The docstateid of Node" // @Param acid query string true "The accesssid of Node" // @Param nodetype query string true "The nodetype of Node" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flownode [post] // Node // nodedoctypedocstate1accessworkflownamenodetype // A `Node` each has to be defined for each document state of the workflow, // except the final state. Please look at `_Workflows.AddNode`. func (c *FlowController) FlowNode() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) // c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Credentials", "true") var tx *sql.Tx name := c.GetString("name") dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } dsid := c.GetString("dsid") dsID, err := strconv.ParseInt(dsid, 10, 64) if err != nil { logs.Error(err) } acid := c.GetString("acid") acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } var flownodetype flow.NodeType nodetype := c.GetString("nodetype") // flow.NodeTypeBegin switch nodetype { case "begin": flownodetype = flow.NodeTypeBegin case "end": flownodetype = flow.NodeTypeEnd case "linear": flownodetype = flow.NodeTypeLinear case "branch": flownodetype = flow.NodeTypeBranch case "joinany": flownodetype = flow.NodeTypeJoinAny case "joinall": flownodetype = flow.NodeTypeJoinAll // NodeTypeEnd = "end" // // NodeTypeLinear : one incoming, one outgoing // NodeTypeLinear = "linear" // // NodeTypeBranch : one incoming, two or more outgoing // NodeTypeBranch = "branch" // // NodeTypeJoinAny : two or more incoming, one outgoing // NodeTypeJoinAny = "joinany" // // NodeTypeJoinAll : two or more incoming, one outgoing // NodeTypeJoinAll = "joinall" } //doctypeidworkflow workflow, err := flow.Workflows.GetByDocType(flow.DocTypeID(dtID)) if err != nil { logs.Error(err) } //workflownodeeventaction // AddNode maps the given document state to the specified node. This // map is consulted by the workflow when performing a state transition // of the system.nodeID1 _, err = flow.Workflows.AddNode(tx, flow.DocTypeID(dtID), flow.DocStateID(dsID), flow.AccessContextID(acID), workflow.ID, name, flownodetype) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // _, err = flow.Workflows.AddNode(tx, dtID1, dsID2, accessContextID1, workflowID1, "--", flow.NodeTypeLinear) // if err != nil { // fmt.Println(err) // } // _, err = flow.Workflows.AddNode(tx, dtID1, dsID3, accessContextID1, workflowID1, "--", flow.NodeTypeEnd) // if err != nil { // fmt.Println(err) // } } // // type nodelist struct { // Nodes []*flow.Node `json:"nodes"` // Page int64 `json:"page"` // Total int `json:"total"` //stringint64 // } // @Title get wf Node... // @Description post Node.. // @Param page query string true "The page of Node" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flownodelist [get] // Node func (c *FlowController) FlowNodeList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) // prefix := c.GetString("prefix") // var offset, limit1, page1 int64 // var err error // limit := c.GetString("limit") // if limit == "" { // limit1 = 0 // } else { // limit1, err = strconv.ParseInt(limit, 10, 64) // if err != nil { // logs.Error(err) // } // } // page := c.GetString("page") // if page == "" { // limit1 = 0 // page1 = 1 // } else { // page1, err = strconv.ParseInt(page, 10, 64) // if err != nil { // logs.Error(err) // } // } // if page1 <= 1 { // offset = 0 // } else { // offset = (page1 - 1) * limit1 // } workflowid := c.GetString("workflowid") workflowID, err := strconv.ParseInt(workflowid, 10, 64) if err != nil { logs.Error(err) } // if page1 <= 1 { // offset = 0 // } else { // offset = (page1 - 1) * limit // } // nodes, err := flow.Nodes.NodeList(offset, limit)//ac_id, nodes, err := flow.Nodes.List(flow.WorkflowID(workflowID)) c.Data["json"] = nodes c.ServeJSON() } // @Title post wf user... // @Description post user.. // @Param firstname query string true "The firstname of user" // @Param lastname query string true "The lastname of user" // @Param email query string true "The email of user" // @Param active query string true "The active of user" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowuser [post] // user // actiontransitionevent func (c *FlowController) FlowUser() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx first_name := c.GetString("firstname") last_name := c.GetString("lastname") email := c.GetString("email") active := c.GetString("active") var err error var uid flow.UserID // var res sql.Result if active == "true" { uid, err = flow.Users.New(tx, first_name, last_name, email, 1) // res, err = tx.Exec("INSERT INTO users_master(first_name, last_name, email, active) VALUES(?, ?, ?, ?)", first_name, last_name, email, 1) } else { uid, err = flow.Users.New(tx, first_name, last_name, email, 0) // res, err = tx.Exec("INSERT INTO users_master(first_name, last_name, email, active) VALUES(?, ?, ?, ?)", first_name, last_name, email, 0) } //--- // res, err := tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES(` + first_name + `, ` + last_name + `, ` + email + `, ` + active1 + `)`) if err != nil { log.Fatalf("%v\n", err) logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // uid, _ := res.LastInsertId() uID1 := flow.UserID(uid) _, err = flow.Groups.NewSingleton(tx, uID1) // tx.Commit() c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-2', 'email2@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ = res.LastInsertId() // uID2 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID2) // res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-3', 'email3@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ = res.LastInsertId() // uID3 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID3) // res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-4', 'email4@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ = res.LastInsertId() // uID4 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID4) } // type userlist struct { Users []*flow.User `json:"users"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf user... // @Description post user.. // @Param page query string true "The page of user" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowuserlist [get] // user // actiontransitionevent func (c *FlowController) FlowUserList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) prefix := c.GetString("prefix") var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } nodes, err := flow.Users.List(prefix, offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.Users.List(prefix, 0, 0) if err != nil { logs.Error(err) } list := userlist{nodes, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf Group... // @Description post Group.. // @Param name query string true "The name of Group" // @Param grouptype query string true "The type of Group" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowgroup [post] // Group // actiontransitionevent func (c *FlowController) FlowGroup() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") grouptype := c.GetString("grouptype") // beego.Info(grouptype) // _, err := flow.Groups.New(tx, name, grouptype) //).(flow.GroupID) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // gID2 := fatal1(flow.Groups.New(tx, "", "G")).(flow.GroupID) } // type grouplist struct { Groups []*flow.Group `json:"groups"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf Group... // @Description post Group.. // @Param page query string true "The page of Group" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowgrouplist [get] // Group // actiontransitionevent func (c *FlowController) FlowGroupList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } groups, err := flow.Groups.List(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.Groups.List(0, 0) if err != nil { logs.Error(err) } list := grouplist{groups, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf GroupUser... // @Description post Group.. // @Param name query string true "The name of GroupUser" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowusergroup [post] // GroupUser // usersgroup func (c *FlowController) FlowUserGroup() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx // uid := c.GetString("uid") // beego.Info(uid) gid := c.GetString("gid") //pid64 gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } uid := make([]string, 0, 10) c.Ctx.Input.Bind(&uid, "uid") //ul ==[str array] // uid := c.GetStrings("uid") // beego.Info(uid) for i, v := range uid { if v != "" { uID, err := strconv.ParseInt(uid[i], 10, 64) if err != nil { logs.Error(err) } err = flow.Groups.AddUser(tx, flow.GroupID(gID), flow.UserID(uID)) } } if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // tx.Commit() c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } } type GroupUsers struct { Id flow.GroupID Group *flow.Group Users []*flow.User } // @Title get wf GroupUsers... // @Description post Group.. // @Param name query string true "The name of GroupUser" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowgroupuserslist [get] // GroupUsers func (c *FlowController) FlowGroupUsersList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } groupusers := make([]GroupUsers, 0) groups, err := flow.Groups.List(offset, limit1) if err != nil { logs.Error(err) } else { for _, v := range groups { groupusersarr := make([]GroupUsers, 1) users, err := flow.Groups.Users(flow.GroupID(v.ID)) if err != nil { logs.Error(err) } groupusersarr[0].Id = v.ID groupusersarr[0].Group = v groupusersarr[0].Users = users groupusers = append(groupusers, groupusersarr...) } } c.Data["json"] = groupusers c.ServeJSON() } // @Title post wf Role... // @Description post Role.. // @Param name query string true "The name of Role" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowrole [post] // Role // actiontransitionevent func (c *FlowController) FlowRole() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx name := c.GetString("name") _, err := flow.Roles.New(tx, name) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // roleID2 := fatal1(flow.Roles.New(tx, "")).(flow.RoleID) } // type rolelist struct { Roles []*flow.Role `json:"roles"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf Role... // @Description post Role.. // @Param page query string true "The page of Role" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowrolelist [get] // role func (c *FlowController) FlowRoleList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } roles, err := flow.Roles.List(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.Roles.List(0, 0) if err != nil { logs.Error(err) } list := rolelist{roles, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf Permission... // @Description post Permission.. // @Param name query string true "The name of Permission" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowpermission [post] // Permission // actiontransitionevent func (c *FlowController) FlowPermission() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx roleid := c.GetString("roleid") //pid64 roleID, err := strconv.ParseInt(roleid, 10, 64) if err != nil { logs.Error(err) } dtid := c.GetString("dtid") //pid64 dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // daid := c.GetString("daid") daID, err := strconv.ParseInt(daid, 10, 64) if err != nil { logs.Error(err) } actions := []flow.DocActionID{flow.DocActionID(daID)} //[]flow.DocActionID{daID1, daID2, daID3, daID4} //roleaction err = flow.Roles.AddPermissions(tx, flow.RoleID(roleID), flow.DocTypeID(dtID), actions) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } // fatal0(flow.Roles.AddPermissions(tx, roleID2, dtID1, []flow.DocActionID{daID1, daID2, daID3, daID4, daID5, daID6, daID7})) } type RolePermission struct { RoleID flow.RoleID Action map[string]struct { DocTypeID flow.DocTypeID Actions []*flow.DocAction } } type Actions struct { DocTypeID flow.DocTypeID Actions []*flow.DocAction } // @Title get wf Permission... // @Description post Permission.. // @Param page query string true "The page of Permission" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowrolepermissionlist [get] // rolepermission func (c *FlowController) FlowRolePermissionList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } // rolepermission := make([]RolePermission, 0) rolepermission := make([]flow.RolePermission, 0) roles, err := flow.Roles.List(offset, limit1) if err != nil { logs.Error(err) } else { for _, v := range roles { rolepermissionarr := make([]flow.RolePermission, 1) // rolepermissions, err := flow.Roles.Permissions(flow.RoleID(v.ID)) rolepermissions, err := flow.Roles.PermissionsList(flow.RoleID(v.ID)) if err != nil { logs.Error(err) } rolepermissionarr[0] = rolepermissions if rolepermissions.TypeAction.DocTypeID == 0 { flowaction := make([]*flow.DocAction, 0, 1) var da flow.DocAction da.ID = 0 flowaction = append(flowaction, &da) rolepermissionarr[0].TypeAction.Actions = flowaction } // rolepermissionarr[0].Action = rolepermissions rolepermission = append(rolepermission, rolepermissionarr...) } } c.Data["json"] = rolepermission c.ServeJSON() } // @Title post wf GroupRole... // @Description post GroupRole.. // @Param name query string true "The name of GroupRole" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowgrouprole [post] // GroupRole // accesscontext func (c *FlowController) FlowGroupRole() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx acid := c.GetString("acid") //pid64 acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } gid := c.GetString("gid") //pid64 gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } roleid := c.GetString("roleid") //pid64 roleID, err := strconv.ParseInt(roleid, 10, 64) if err != nil { logs.Error(err) } //grouprole err = flow.AccessContexts.AddGroupRole(tx, flow.AccessContextID(acID), flow.GroupID(gID), flow.RoleID(roleID)) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } //grouproleaccesscontext // err = flow.AccessContexts.AddGroupRole(tx, accessContextID1, gID2, roleID2) // if err != nil { // logs.Error(err) //UNIQUE constraint failed: wf_ac_group_roles.ac_id // } } // type grouprolelist struct { GroupRoles []*flow.GroupRolesstruct `json:"grouproles"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf GroupRole... // @Description get GroupRole.. // @Param page query string true "The page of GroupRole" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowgrouprolelist [get] // grouprole-accesscontext func (c *FlowController) FlowGroupRoleList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } // accesscontexts, err := flow.AccessContexts.List(prefix, offset, limit) //groups,err:= // var gids []flow.GroupID // groupid := flow.GroupID(11) // gids = append(gids, groupid) // groupid = flow.GroupID(12) // gids = append(gids, groupid) // groupid = flow.GroupID(13) // gids = append(gids, groupid) // grouproles, err := flow.AccessContexts.GroupRoles(flow.AccessContextID(1), gids, offset, limit) grouproles, err := flow.AccessContexts.GroupRolesList(offset, limit1) if err != nil { logs.Error(err) } arr, err := flow.AccessContexts.GroupRolesList(0, 0) if err != nil { logs.Error(err) } list := grouprolelist{grouproles, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title post wf document // @Description post document // @Param dtid query string true "The doctypeid of document" // @Param acid query string true "The accesscontext of document" // @Param gid query string true "The groupid of Group" // @Param name query string true "The name of document" // @Param data query string false "The data of document" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdoc [post] // func (c *FlowController) FlowDoc() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx //doctype dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } acid := c.GetString("acid") acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } gid := c.GetString("gid") gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } name := c.GetString("docname") data := c.GetString("docdata") //docdataproductid, productid, err := strconv.ParseInt(data, 10, 64) if err != nil { logs.Error(err) } //productidproductdocument //workflowdoctype //doctype //doctype //context-- //doctype //- //documentdoctypeworkflowstatedocumentstate // // // // Document: // // Document // flow docNewInput := flow.DocumentsNewInput{ DocTypeID: flow.DocTypeID(dtID), // AccessContextID: flow.AccessContextID(acID), //contex GroupID: flow.GroupID(gID), //groupId, Title: name, // Data: data, // } // flow.Documents.New(tx, &docNewInput) documentid, err := flow.Documents.New(tx, &docNewInput) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"} c.ServeJSON() } else { //productidproductdocument //DocTypeID _, err = models.AddProductDocument(dtID, int64(documentid), productid) if err != nil { logs.Error(err) } c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": "ok", "data": "!"} c.ServeJSON() } } // @Title post wf document // @Description post document // @Param dtid query string true "The doctypeid of document" // @Param acid query string true "The accesscontext of document" // @Param gid query string true "The groupid of Group" // @Param name query string true "The name of document" // @Param id query string true "The id of document" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /wxflowdoc [post] // article func (c *FlowController) WxFlowDoc() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx //doctype dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } acid := c.GetString("acid") acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } gid := c.GetString("gid") gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } name := c.GetString("docname") //flowdocidprodid data := c.GetString("docdata") //docididproductid, articleid, err := strconv.ParseInt(data, 10, 64) if err != nil { logs.Error(err) } article, err := models.GetArticle(articleid) if err != nil { logs.Error(err) } docNewInput := flow.DocumentsNewInput{ DocTypeID: flow.DocTypeID(dtID), // AccessContextID: flow.AccessContextID(acID), //contex GroupID: flow.GroupID(gID), //groupId, Title: name, // Data: data, // } // flow.Documents.New(tx, &docNewInput) documentid, err := flow.Documents.New(tx, &docNewInput) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"} c.ServeJSON() } else { //productidproductdocument //DocTypeID _, err = models.AddProductDocument(dtID, int64(documentid), article.ProductId) if err != nil { logs.Error(err) } c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": "ok", "data": "!"} c.ServeJSON() } } // type Documentlist struct { Docs []*flow.Document `json:"docs"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf document // @Description get document // @Param dtid query string true "The id of doctype" // @Param acid query string true "The id of accesscontext" // @Param gid query string false "The id of group" // @Param dsid query string false "The id of docstate" // @Param page query string true "The page of doc" // @Param limit query string false "The limit page of doc" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdocumentlist [get] // 1., func (c *FlowController) FlowDocumentList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } //doctype dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } acid := c.GetString("acid") acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } //group // uses.GroupsOf(uid) // SingletonGroupOf(uid) // gid := c.GetString("gid") // if gid != "" { // gID, err := strconv.ParseInt(gid, 10, 64) // if err != nil { // logs.Error(err) // } // } // dsid := c.GetString("dsid") // if gid != "" { // dsID, err := strconv.ParseInt(dsid, 10, 64) // if err != nil { // logs.Error(err) // } // } documentslistinput := flow.DocumentsListInput{ DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required // GroupID: flow.GroupID(gID), // List documents created by this (singleton) group // DocStateID: flow.DocStateID(dsID), // List documents currently in this state //CtimeStarting: time.Now(), // List documents created after this time //CtimeBefore: time.Now(), // List documents created before this time //TitleContains: string, // List documents whose title contains the given text; expensive operation //RootOnly: bool, // List only root (top-level) documents } documents, err := flow.Documents.List(&documentslistinput, offset, limit1) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } arr, err := flow.Documents.List(&documentslistinput, 0, 0) if err != nil { logs.Error(err) } list := Documentlist{documents, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title get wf document // @Description get document // @Param dtid query string true "The id of doctype" // @Param acid query string true "The id of accesscontext" // @Param gid query string false "The id of group" // @Param dsid query string false "The id of docstate" // @Param page query string true "The page of doc" // @Param limit query string false "The limit page of doc" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdocumentlist2 [get] // 1., func (c *FlowController) FlowDocumentList2() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } //doctype dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } acid := c.GetString("acid") acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } dsid := c.GetString("dsid") dsID, err := strconv.ParseInt(dsid, 10, 64) if err != nil { logs.Error(err) } //group var uID int64 username, _, _, _, _ := checkprodRole(c.Ctx) if err != nil { logs.Error(err) } flowuser, err := flow.Users.GetByName(username) if err != nil { logs.Error(err) } else { uID = int64(flowuser.ID) } // beego.Info(uID) // singletongroup, err := flow.Users.SingletonGroupOf(flow.UserID(uID)) if err != nil { logs.Error(err) } documentslistinput := flow.DocumentsListInput{ DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required GroupID: singletongroup.ID, // List documents created by this (singleton) group DocStateID: flow.DocStateID(dsID), // List documents currently in this state //CtimeStarting: time.Now(), // List documents created after this time //CtimeBefore: time.Now(), // List documents created before this time //TitleContains: string, // List documents whose title contains the given text; expensive operation //RootOnly: bool, // List only root (top-level) documents } documents, err := flow.Documents.List(&documentslistinput, offset, limit1) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } arr, err := flow.Documents.List(&documentslistinput, 0, 0) if err != nil { logs.Error(err) } list := Documentlist{documents, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // type Doclist struct { Docs []*flow.Documentstruct `json:"docs"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get wf doclist // @Description get workflow doclist // @Param dtid query string true "The id of doctype" // @Param page query string true "The page of doc" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdoclist [get] // func (c *FlowController) FlowDocList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) //doctype dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } // acid := c.GetString("acid") // acID, err := strconv.ParseInt(acid, 10, 64) // if err != nil { // logs.Error(err) // } // gid := c.GetString("gid") // gID, err := strconv.ParseInt(gid, 10, 64) // if err != nil { // logs.Error(err) // } // dsid := c.GetString("dsid") // dsID, err := strconv.ParseInt(dsid, 10, 64) // if err != nil { // logs.Error(err) // } // documentslistinput := flow.DocumentsListInput{ // DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required // AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required // GroupID: flow.GroupID(gID), // List documents created by this (singleton) group // DocStateID: flow.DocStateID(dsID), // List documents currently in this state // //CtimeStarting: time.Now(), // List documents created after this time // //CtimeBefore: time.Now(), // List documents created before this time // //TitleContains: string, // List documents whose title contains the given text; expensive operation // //RootOnly: bool, // List only root (top-level) documents // } // documents, err := flow.Documents.List(&documentslistinput, offset, limit) //events // DocEventsListInput // type DocEventsListInput struct { // DocTypeID // Events on documents of this type are listed // AccessContextID // Access context from within which to list // GroupID // List events created by this (singleton) group // DocStateID // List events acting on this state // CtimeStarting time.Time // List events created after this time // CtimeBefore time.Time // List events created before this time // Status EventStatus // List events that are in this state of application // } // DocEvents, err := flow.DocEvents.List(DocEventsListInput) // if err != nil { // logs.Error(err) // } var offset, limit1, page1 int64 limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } documents, err := flow.Documents.DocumentList(flow.DocTypeID(dtID), offset, limit1) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } arr, err := flow.Documents.DocumentList(flow.DocTypeID(dtID), 0, 0) if err != nil { logs.Error(err) } list := Doclist{documents, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title get wf doclist // @Description get workflow doclist // @Param dtid query string true "The id of doctype" // @Param page query string true "The page of doc" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdoctransitionlist [get] // doc // func (c *FlowController) FlowDocTransitionList() { // // var tx *sql.Tx // var err error // var offset, limit1, page1 int64 // limit := c.GetString("limit") // if limit == "" { // limit1 = 0 // } else { // limit1, err = strconv.ParseInt(limit, 10, 64) // if err != nil { // logs.Error(err) // } // } // page := c.GetString("page") // if page == "" { // limit1 = 0 // page1 = 1 // } else { // page1, err = strconv.ParseInt(page, 10, 64) // if err != nil { // logs.Error(err) // } // } // if page1 <= 1 { // offset = 0 // } else { // offset = (page1 - 1) * limit1 // } // //doctype // //doctype // dtid := c.GetString("dtid") // dtID, err := strconv.ParseInt(dtid, 10, 64) // if err != nil { // logs.Error(err) // } // //accesscontext // acid := c.GetString("acid") // acID, err := strconv.ParseInt(acid, 10, 64) // if err != nil { // logs.Error(err) // } // // // gid := c.GetString("gid") // gID, err := strconv.ParseInt(gid, 10, 64) // if err != nil { // logs.Error(err) // } // // // dsid := c.GetString("dsid") // dsID, err := strconv.ParseInt(dsid, 10, 64) // if err != nil { // logs.Error(err) // } // documentslistinput := flow.DocumentsListInput{ // DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required // AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required // GroupID: flow.GroupID(gID), // List documents created by this (singleton) group // DocStateID: flow.DocStateID(dsID), // List documents currently in this state // //CtimeStarting: time.Now(), // List documents created after this time // //CtimeBefore: time.Now(), // List documents created before this time // //TitleContains: string, // List documents whose title contains the given text; expensive operation // //RootOnly: bool, // List only root (top-level) documents // } // documents, err := flow.Documents.List(&documentslistinput, offset, limit1) // if err != nil { // logs.Error(err) // } // //transition // for _, v := range documents { // TransitionMap, err := flow.DocTypes.Transitions(flow.DocTypeID(dtID), v.State.ID) // if err != nil { // logs.Error(err) // } // } // if err != nil { // logs.Error(err) // c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} // c.ServeJSON() // } else { // c.Data["json"] = docevents // c.ServeJSON() // } // } // A `DocEvent` has to be constructed to signal to the workflow // that a `DocAction` has been performed by either the user or a system event. // Document states are changed by `Workflow.ApplyEvent`, to which this event has to be fed. // In turn, the workflow loads the node corresponding to the document state specified in the event, // and applies the event to the node with the specified document. // The node applies the given document action to transition the document into // the target state of the action. These transitions are defined for document types. // Please see `Transition` and `TransitionMap` in the file `doctype.go`. // myDocument, err := Documents.Get(tx, DocTypeID(1), DocumentID(1)) // retMap, err := DocTypes.Transitions(DocTypeID(1), myDocument.State.ID) // Yes, once you have the transitions defined, this query gives you the set of possible next states, // together with which actions would lead to such transitions. // @Title post wf event // @Description get docevent // @Param name query string true "The name of event" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdocevent [post] // events func (c *FlowController) FlowEvent() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } docid := c.GetString("docid") docID, err := strconv.ParseInt(docid, 10, 64) if err != nil { logs.Error(err) } dsid := c.GetString("dsid") dsID, err := strconv.ParseInt(dsid, 10, 64) if err != nil { logs.Error(err) } daid := c.GetString("daid") daID, err := strconv.ParseInt(daid, 10, 64) if err != nil { logs.Error(err) } gid := c.GetString("gid") gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } text := c.GetString("text") // beego.Info(text) //documentevents //documentDoctypes.Transitionsstateaction //events //listevents docEventInput := flow.DocEventsNewInput{ DocTypeID: flow.DocTypeID(dtID), //flow.DocTypeID(1), DocumentID: flow.DocumentID(docID), DocStateID: flow.DocStateID(dsID), //document state must be this state DocActionID: flow.DocActionID(daID), //Action performed by `Group`; required, GroupID: flow.GroupID(gID), //Group (user) who performed the action that raised this event; required() Text: text, //Any comments or notes; required } // beego.Info(docEventInput) _, err = flow.DocEvents.New(tx, &docEventInput) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } } // @Title get wf eventlist // @Description get doceventlist // @Param page query string true "The page of event" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdoceventlist [get] // events func (c *FlowController) FlowEventList() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) // var tx *sql.Tx dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } acid := c.GetString("acid") acID, err := strconv.ParseInt(acid, 10, 64) if err != nil { logs.Error(err) } gid := c.GetString("gid") gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } dsid := c.GetString("dsid") dsID, err := strconv.ParseInt(dsid, 10, 64) if err != nil { logs.Error(err) } //listevents //doctypeiddoctypedoctype docEventListInput := flow.DocEventsListInput{ DocTypeID: flow.DocTypeID(dtID), // Events on documents of this type are listed AccessContextID: flow.AccessContextID(acID), // Access context from within which to list GroupID: flow.GroupID(gID), // List events created by this (singleton) group DocStateID: flow.DocStateID(dsID), // List events acting on this state // CtimeStarting: time.Time, // List events created after this time // CtimeBefore: time.Time, // List events created before this time Status: flow.EventStatusAll, // EventStatusAll,List events that are in this state of application } var offset, limit1, page1 int64 limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } myDocEvent, err := flow.DocEvents.List(&docEventListInput, offset, limit1) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = myDocEvent c.ServeJSON() } } type DocumentDetail struct { // DocTypeId flow.DocTypeID Document *flow.Document Action []flow.DocAction History []*flow.DocEventsHistory Text string //product Product models.Product } // @Title get wf document details // @Description get documentdetail // @Param dtid query string true "The id of doctype" // @Param docid query string true "The id of doc" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowdocumentdetail [get] // 2.actions func (c *FlowController) FlowDocumentDetail() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx //doctype dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } docid := c.GetString("docid") docID, err := strconv.ParseInt(docid, 10, 64) if err != nil { logs.Error(err) } document, err := flow.Documents.Get(tx, flow.DocTypeID(dtID), flow.DocumentID(docID)) if err != nil { logs.Error(err) } //actions //actions TransitionMap, err := flow.DocTypes.Transitions(flow.DocTypeID(dtID), document.State.ID) if err != nil { logs.Error(err) } //groups // beegon.Info(TransitionMap[document.State.ID].Transitions[].Upon.ID) // { // "8": { // "From": { // "ID": 8, // "Name": "..." // }, // "Transitions": { // "12": { // "Upon": { // "ID": 12, // "Name": "", // "Reconfirm": false // }, // "To": { // "ID": 9, // "Name": "..." // } // }, // "14": { // "Upon": { // "ID": 14, // "Name": "", // "Reconfirm": true // }, // "To": { // "ID": 7, // "Name": "..." // } // } // } // } // } // // var documentdetail DocumentDetail // for key, value := range TransitionMap[document.State.ID].Transitions { // beego.Info(key) // beego.Info(value.Upon.ID) // documentdetailarr := make([]flow.DocAction, 1) // documentdetailarr[0].ID = value.Upon.ID // documentdetailarr[0].Name = value.Upon.Name // documentdetail.Action = append(documentdetail.Action, documentdetailarr...) // } // documentdetail.Document = document // documentdetail := make([]DocumentDetail, 1) if _, ok := TransitionMap[document.State.ID]; ok { // for _, value := range TransitionMap[document.State.ID].Transitions { // beego.Info(key) // beego.Info(value.Upon.ID) documentdetailarr := make([]flow.DocAction, 1) documentdetailarr[0].ID = value.Upon.ID documentdetailarr[0].Name = value.Upon.Name documentdetail[0].Action = append(documentdetail[0].Action, documentdetailarr...) } } documentdetail[0].Document = document // // docEventListInput := flow.DocEventsListInput{ // DocTypeID: flow.DocTypeID(dtID), // Events on documents of this type are listed // AccessContextID: flow.AccessContextID(acID), // Access context from within which to list // GroupID: flow.GroupID(gID), // List events created by this (singleton) group // DocStateID: flow.DocStateID(dsID), // List events acting on this state // // CtimeStarting: time.Time, // List events created after this time // // CtimeBefore: time.Time, // List events created before this time // Status: flow.EventStatusAll, // EventStatusAll,List events that are in this state of application // } // myDocEvent, err := flow.DocEvents.List(&docEventListInput, offset, limit1) doceventshistory, err := flow.DocEvents.DocEventsHistory(flow.DocTypeID(dtID), flow.DocumentID(docID)) if err != nil { logs.Error(err) } documentdetail[0].History = doceventshistory //flow.DocTypeID(dtID), flow.DocumentID(docID)product if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { c.Data["json"] = documentdetail c.ServeJSON() } } // @Title post wf next // @Description post workflow next // @Param dtid query string true "The id of doctype" // @Param daid query string true "The id of action" // @Param docid query string true "The id of document" // @Param gid query string true "The id of group" // @Param text query string false "The text of apply" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flownext [post] // FlowDocActionactiondocstate func (c *FlowController) FlowNext() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx //nilcommitflowcommit var tx1 *sql.Tx // GetByDocType // : // jsoninfo := c.GetString("docaction") //formdata // beego.Info(jsoninfo) // {"Document": // { // "ID":19, // "DocType":{"ID":3,"Name":""}, // "Path":"", // "AccessContext":{"ID":1}, // "DocState":{"ID":8,"Name":"..."}, // "Group":{"ID":11,"Name":"","GroupType":""}, // "Ctime":"2019-01-11T21:42:50Z", // "Title":"", // "Data":": 1, :2"}, // "Action":[ // {"ID":14,"Name":"","Reconfirm":false}, // {"ID":12,"Name":"","Reconfirm":false} // ] // } // } dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } daid := c.GetString("daid") daID, err := strconv.ParseInt(daid, 10, 64) if err != nil { logs.Error(err) } docid := c.GetString("docid") docID, err := strconv.ParseInt(docid, 10, 64) if err != nil { logs.Error(err) } //messageid messageid := c.GetString("messageid") messageID, err := strconv.ParseInt(messageid, 10, 64) if err != nil { logs.Error(err) } //dociddocument document, err := flow.Documents.Get(tx, flow.DocTypeID(dtID), flow.DocumentID(docID)) if err != nil { logs.Error(err) } //documentworkflow myWorkflow, err := flow.Workflows.GetByDocType(document.DocType.ID) if err != nil { logs.Error(err) } var uID int64 username, _, _, _, _ := checkprodRole(c.Ctx) // beego.Info(username) // beego.Info(uid) // if err != nil { // logs.Error(err) // } flowuser, err := flow.Users.GetByName(username) if err != nil { logs.Error(err) } else { uID = int64(flowuser.ID) } // beego.Info(uID) // singletongroup, err := flow.Users.SingletonGroupOf(flow.UserID(uID)) if err != nil { logs.Error(err) } // beego.Info(singletongroup) // gid := make([]string, 0, 2) c.Ctx.Input.Bind(&gid, "gid") // beego.Info(gid) var groupIds []flow.GroupID for _, v := range gid { gID, err := strconv.ParseInt(v, 10, 64) if err != nil { logs.Error(err) } groupIds = append(groupIds, flow.GroupID(gID)) } // beego.Info(groupIds) text := c.GetString("text") if text == "" { text = "no comments" } //event docEventInput := flow.DocEventsNewInput{ DocTypeID: flow.DocTypeID(dtID), DocumentID: flow.DocumentID(docID), DocStateID: document.State.ID, //document state must be this state DocActionID: flow.DocActionID(daID), //Action performed by `Group`; required, GroupID: singletongroup.ID, //Group (user) who performed the action that raised this event; required() Text: text, //Any comments or notes; required } // beego.Info(docEventInput) deID, err := flow.DocEvents.New(tx, &docEventInput) if err != nil { logs.Error(err) } myDocEvent, err := flow.DocEvents.Get(flow.DocEventID(deID)) if err != nil { logs.Error(err) } else { // beego.Info(myDocEvent) } //unreadfalse newDocStateId, err := myWorkflow.ApplyEvent(tx1, myDocEvent, groupIds) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { // //messageidmailbox err = flow.Mailboxes.SetStatusByUser(tx, flowuser.ID, flow.MessageID(messageID), false) if err != nil { logs.Error(err) } fmt.Println("newDocStateId=", newDocStateId, err) c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"} c.ServeJSON() } } // @Title post wf next // @Description post workflow next // @Param dtid query string true "The id of doctype" // @Param daid query string true "The id of action" // @Param articleid query string true "The id of article" // @Param gid query string true "The id of group" // @Param messageid query string true "The messageid of doc" // @Param text query string false "The text of apply" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /wxflownext [post] // next func (c *FlowController) WxFlowNext() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var tx *sql.Tx //nilcommitflowcommit var tx1 *sql.Tx // var openID string var user models.User var err error var uID int64 openid := c.GetSession("openID") if openid != nil { user, err = models.GetUserByOpenID(openid.(string)) if err != nil { logs.Error(err) } else { flowuser, err := flow.Users.GetByName(user.Username) //user.Username if err != nil { logs.Error(err) uID = 5 } else { uID = int64(flowuser.ID) } } } else { uID = 5 // c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"} // c.ServeJSON() } dtid := c.GetString("dtid") dtID, err := strconv.ParseInt(dtid, 10, 64) if err != nil { logs.Error(err) } daid := c.GetString("daid") daID, err := strconv.ParseInt(daid, 10, 64) if err != nil { logs.Error(err) } articleid := c.GetString("articleid") articleID, err := strconv.ParseInt(articleid, 10, 64) if err != nil { logs.Error(err) } article, err := models.GetArticle(articleID) if err != nil { logs.Error(err) } //article.productiddocumentid proddocument, err := models.GetProductDocument(article.ProductId) if err != nil { logs.Error(err) } messageid := c.GetString("messageid") messageID, err := strconv.ParseInt(messageid, 10, 64) if err != nil { logs.Error(err) } //mailboxexidmailboxmessageid // notification,err:=flow.Mailboxes.GetMessage(flow.mmailboxesID) //dociddocument // beego.Info(article.ProductId) document, err := flow.Documents.Get(tx, flow.DocTypeID(dtID), flow.DocumentID(proddocument.DocumentId)) if err != nil { logs.Error(err) } //documentworkflow myWorkflow, err := flow.Workflows.GetByDocType(document.DocType.ID) if err != nil { logs.Error(err) } // singletongroup, err := flow.Users.SingletonGroupOf(flow.UserID(uID)) if err != nil { logs.Error(err) } // // gid := make([]string, 0, 2) // c.Ctx.Input.Bind(&gid, "gid") gid := make([]string, 1, 2) gid[0] = c.GetString("gid") var groupIds []flow.GroupID for _, v := range gid { gID, err := strconv.ParseInt(v, 10, 64) if err != nil { logs.Error(err) } groupIds = append(groupIds, flow.GroupID(gID)) } text := c.GetString("text") if text == "" { text = "no comments" } //event docEventInput := flow.DocEventsNewInput{ DocTypeID: flow.DocTypeID(dtID), DocumentID: flow.DocumentID(proddocument.DocumentId), DocStateID: document.State.ID, //document state must be this state DocActionID: flow.DocActionID(daID), //Action performed by `Group`; required, GroupID: singletongroup.ID, //Group (user) who performed the action that raised this event; required() Text: text, //Any comments or notes; required } deID, err := flow.DocEvents.New(tx, &docEventInput) if err != nil { logs.Error(err) } myDocEvent, err := flow.DocEvents.Get(flow.DocEventID(deID)) if err != nil { logs.Error(err) } else { // beego.Info(myDocEvent) } //unreadfalse newDocStateId, err := myWorkflow.ApplyEvent(tx1, myDocEvent, groupIds) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"} c.ServeJSON() } else { // //messageid~~~~%%%&&****** //messageidmailbox() notification, err := flow.Mailboxes.GetMessageList(flow.MessageID(messageID), 0, 0, false) if err != nil { logs.Error(err) } for _, v := range notification { err = flow.Mailboxes.SetStatusByUser(tx, flow.UserID(uID), flow.MessageID(v.Message.ID), false) if err != nil { logs.Error(err) } } fmt.Println("newDocStateId=", newDocStateId, err) c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": nil, "data": "!"} c.ServeJSON() } } // type mailboxlist struct { Notification []*flow.Notification `json:"notification"` Page int64 `json:"page"` Total int `json:"total"` //stringint64 } // @Title get user mailbox // @Description get usermailbox // @Param uid query string true "The id of user" // @Param page query string true "The page of mailbox" // @Param limit query string false "The limit page of mailbox" // @Param unread query string false "The unread of mailbox" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowusermailbox [get] // 1. func (c *FlowController) FlowUserMailbox() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } //doctype uid := c.GetString("uid") uID, err := strconv.ParseInt(uid, 10, 64) if err != nil { logs.Error(err) } var unreadbool bool unread := c.GetString("unread") if unread != "" { if unread == "true" { unreadbool = true } else { unreadbool = false } } else { unreadbool = false } notification, err := flow.Mailboxes.ListByUser(flow.UserID(uID), offset, limit1, unreadbool) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } arr, err := flow.Mailboxes.ListByUser(flow.UserID(uID), 0, 0, unreadbool) if err != nil { logs.Error(err) } list := mailboxlist{notification, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title get user mailbox // @Description get usermailbox // @Param uid query string true "The id of user" // @Param page query string true "The page of mailbox" // @Param limit query string false "The limit page of mailbox" // @Param unread query string false "The unread of mailbox" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowusermailbox2 [get] // 1. func (c *FlowController) FlowUserMailbox2() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } // var uID int64 var unreadbool bool unread := c.GetString("unread") if unread == "true" { unreadbool = true } else { unreadbool = false } username, _, _, _, _ := checkprodRole(c.Ctx) // beego.Info(username) // beego.Info(uid) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } else { flowuser, err := flow.Users.GetByName(username) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "flow!"} c.ServeJSON() } else { // uID = int64(flowuser.ID) notification, err := flow.Mailboxes.ListByUser(flowuser.ID, offset, limit1, unreadbool) // notification, err := flow.Mailboxes.ListByUser(flow.UserID(uID), offset, limit1, unreadbool) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } arr, err := flow.Mailboxes.ListByUser(flowuser.ID, 0, 0, unreadbool) // arr, err := flow.Mailboxes.ListByUser(flow.UserID(uID), 0, 0, unreadbool) if err != nil { logs.Error(err) } list := mailboxlist{notification, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } } } // @Title get user mailbox // @Description get usermailbox // @Param page query string true "The page of mailbox" // @Param limit query string false "The limit page of mailbox" // @Param unread query string false "The unread of mailbox" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /wxflowusermailbox2 [get] // // messageidwxflownext func (c *FlowController) WxFlowUserMailbox2() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) wxsite, err := web.AppConfig.String("wxreqeustsite") if err != nil { logs.Error(err) } var offset, limit1, page1 int64 // var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } // var uID int64 var unreadbool bool unread := c.GetString("unread") if unread == "true" { unreadbool = true } else { unreadbool = false } // username, _, _, _, _ := checkprodRole(c.Ctx) var user models.User var uID int64 openid := c.GetSession("openID") if openid != nil { user, err = models.GetUserByOpenID(openid.(string)) if err != nil { logs.Error(err) } else { flowuser, err := flow.Users.GetByName(user.Username) //user.Username if err != nil { logs.Error(err) uID = 6 } else { uID = int64(flowuser.ID) } } } else { uID = 6 // c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"} // c.ServeJSON() } // if err != nil { // logs.Error(err) // c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} // c.ServeJSON() // } else { // flowuser, err := flow.Users.GetByName(username) // if err != nil { // logs.Error(err) // c.Data["json"] = map[string]interface{}{"err": err, "data": "flow!"} // c.ServeJSON() // } else { // uID = int64(flowuser.ID) Articleslice := make([]WxArticle, 0) articlearr := make([]WxArticle, 1) var tx *sql.Tx //idflowuidgroupidsingle notification, err := flow.Mailboxes.ListByUser(flow.UserID(uID), offset, limit1, unreadbool) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"} c.ServeJSON() } for _, v := range notification { // beego.Info(v.ID) productdoc, err := models.GetDocumentProduct(int64(v.Message.DocID)) if err != nil { logs.Error(err) } else { // for _, w := range products { product, err := models.GetProd(productdoc.ProductId) if err != nil { logs.Error(err) } // Articles, err := models.GetWxArticles(productdoc.ProductId) if err != nil { logs.Error(err) } //flow // proddoc, err := models.GetProductDocument(v.Message.DocID) // if err != nil { // logs.Error(err) // } else { document, err := flow.Documents.Get(tx, v.Message.DocType.ID, v.Message.DocID) if err != nil { logs.Error(err) } else { // linkarr[0].DocState = document.State // linkarr[0].ProdDoc = proddoc // } articlearr[0].DocState = document.State } articlearr[0].DocNotification.Message.ID = v.Message.ID articlearr[0].ProdDoc = productdoc for _, x := range Articles { // slice2 := make([]Img, 0) var r io.Reader = strings.NewReader(string(x.Content)) doc, err := goquery.NewDocumentFromReader(r) if err != nil { logs.Error(err) } doc.Find("img").Each(func(i int, s *goquery.Selection) { sel, _ := s.Attr("src") aa := make([]Img, 1) aa[0].Src = sel aa[0].Name = path.Base(sel) slice2 = append(slice2, aa...) }) // likes, err := models.GetAllTopicLikes(x.Id) if err != nil { logs.Error(err) } // comments, err := models.GetAllTopicReplies(x.Id) if err != nil { logs.Error(err) } articlearr[0].Id = x.Id articlearr[0].Title = product.Title articlearr[0].Subtext = x.Subtext articlearr[0].Author = product.Principal articlearr[0].Views = x.Views articlearr[0].LikeNum = len(likes) articlearr[0].CommentNum = len(comments) if len(slice2) > 0 { articlearr[0].ImgUrl = wxsite + slice2[0].Src } else { articlearr[0].ImgUrl = wxsite + "/static/img/go.jpg" } articlearr[0].LeassonType = 1 articlearr[0].ProductId = x.ProductId Articleslice = append(Articleslice, articlearr...) } } } // arr, err := flow.Mailboxes.ListByUser(flow.UserID(uID), 0, 0, unreadbool) // if err != nil { // logs.Error(err) // } // list := mailboxlist{notification, page1, len(arr)} c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": nil, "articles": Articleslice} //list c.ServeJSON() // } // } } // @Title get group mailbox // @Description get groupmailbox // @Param gid query string true "The id of group" // @Param page query string true "The page of mailbox" // @Param limit query string false "The limit page of mailbox" // @Param unread query string false "The unread of mailbox" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /flowgroupmailbox [get] // 1. func (c *FlowController) FlowGroupMailbox() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var offset, limit1, page1 int64 var err error limit := c.GetString("limit") if limit == "" { limit1 = 0 } else { limit1, err = strconv.ParseInt(limit, 10, 64) if err != nil { logs.Error(err) } } page := c.GetString("page") if page == "" { limit1 = 0 page1 = 1 } else { page1, err = strconv.ParseInt(page, 10, 64) if err != nil { logs.Error(err) } } if page1 <= 1 { offset = 0 } else { offset = (page1 - 1) * limit1 } //doctype gid := c.GetString("gid") gID, err := strconv.ParseInt(gid, 10, 64) if err != nil { logs.Error(err) } unread := c.GetString("unread") var unreadbool bool // if unread != "" { if unread == "true" { unreadbool = true } else { unreadbool = false } // } else { // unreadbool = false // } notification, err := flow.Mailboxes.ListByGroup(flow.GroupID(gID), offset, limit1, unreadbool) if err != nil { logs.Error(err) c.Data["json"] = map[string]interface{}{"err": err, "data": "!"} c.ServeJSON() } arr, err := flow.Mailboxes.ListByGroup(flow.GroupID(gID), 0, 0, unreadbool) if err != nil { logs.Error(err) } list := mailboxlist{notification, page1, len(arr)} c.Data["json"] = list c.ServeJSON() } // @Title get flowchart text // @Description get flowchart text // @Param docstate query string true "The state of document" // @Success 200 {object} models.GetProductsPage // @Failure 400 Invalid page supplied // @Failure 404 data not found // @router /liucheng [get] // 2.flowchart func (c *FlowController) LiuCheng() { c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin")) var code, code1, code2, code3, code4, code5, code6, code7, code8, code9, code10, code11, code12, code13, code14, code15, code16, code17, code18, code19, code20 string code14 = "st->input->design->check->countersign\n" code15 = "countersign(yes,right)->countersignYes->review\n" code16 = "countersign(no,left)->review->auditcond\n" code17 = "auditcond(yes)->audit->approvalcond\n" code18 = "auditcond(no,right)->print\n" code19 = "approvalcond(no,right)->print\n" code20 = "approvalcond(yes)->approval->print->e\n" docstate := c.GetString("docstate") switch docstate { case "...": code1 = "st=>start: |past\n" code2 = "e=>end: \n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |current\n" code5 = "check=>operation: \n" code6 = "countersign=>condition: ?\n" code7 = "countersignYes=>operation: \n" code8 = "review=>operation: \n" code9 = "auditcond=>condition: \n" code10 = "audit=>operation: \n" code11 = "approvalcond=>condition: \n" code12 = "approval=>operation: \n" code13 = "print=>inputoutput: |future\n" case "...": code1 = "st=>start: |past\n" code2 = "e=>end: \n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |past\n" code5 = "check=>operation: |current\n" code6 = "countersign=>condition: ?\n" code7 = "countersignYes=>operation: \n" code8 = "review=>operation: \n" code9 = "auditcond=>condition: \n" code10 = "audit=>operation: \n" code11 = "approvalcond=>condition: \n" code12 = "approval=>operation: \n" code13 = "print=>inputoutput: |future\n" case "...": code1 = "st=>start: |past\n" code2 = "e=>end: \n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |past\n" code5 = "check=>operation: |past\n" code6 = "countersign=>condition: ?|past\n" code7 = "countersignYes=>operation: |past\n" code8 = "review=>operation: |current\n" code9 = "auditcond=>condition: \n" code10 = "audit=>operation: \n" code11 = "approvalcond=>condition: \n" code12 = "approval=>operation: \n" code13 = "print=>inputoutput: |future\n" case "...": code1 = "st=>start: |past\n" code2 = "e=>end: \n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |past\n" code5 = "check=>operation: |past\n" code6 = "countersign=>condition: ?|past\n" code7 = "countersignYes=>operation: |past\n" code8 = "review=>operation: |past\n" code9 = "auditcond=>condition: |past\n" code10 = "audit=>operation: |current\n" code11 = "approvalcond=>condition: \n" code12 = "approval=>operation: \n" code13 = "print=>inputoutput: |future\n" case "...": code1 = "st=>start: |past\n" code2 = "e=>end: \n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |past\n" code5 = "check=>operation: |past\n" code6 = "countersign=>condition: ?|past\n" code7 = "countersignYes=>operation: |past\n" code8 = "review=>operation: |past\n" code9 = "auditcond=>condition: |past\n" code10 = "audit=>operation: |past\n" code11 = "approvalcond=>condition: |past\n" code12 = "approval=>operation: |current\n" code13 = "print=>inputoutput: |future\n" case "...": code1 = "st=>start: |past\n" code2 = "e=>end: \n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |past\n" code5 = "check=>operation: |past\n" code6 = "countersign=>condition: ?|past\n" code7 = "countersignYes=>operation: |past\n" code8 = "review=>operation: |past\n" code9 = "auditcond=>condition: |past\n" code10 = "audit=>operation: |past\n" code11 = "approvalcond=>condition: |past\n" code12 = "approval=>operation: |past\n" code13 = "print=>inputoutput: |current\n" default: code1 = "st=>start: |past\n" code2 = "e=>end: |past\n" code3 = "input=>inputoutput: |past\n" code4 = "design=>operation: |past\n" code5 = "check=>operation: |past\n" code6 = "countersign=>condition: ?|past\n" code7 = "countersignYes=>operation: |past\n" code8 = "review=>operation: |past\n" code9 = "auditcond=>condition: |past\n" code10 = "audit=>operation: |past\n" code11 = "approvalcond=>condition: |past\n" code12 = "approval=>operation: |past\n" code13 = "print=>inputoutput: |past\n" } code = code1 + code2 + code3 + code4 + code5 + code6 + code7 + code8 + code9 + code10 + code11 + code12 + code13 + code14 + code15 + code16 + code17 + code18 + code19 + code20 c.Ctx.WriteString(code) } // fatal1 expects a value and an error value as its arguments. func fatal1(val1 interface{}, err error) interface{} { if err != nil { fmt.Println("%v", err) } return val1 } // error0 expects only an error value as its argument. func error0(err error) error { if err != nil { fmt.Println("%v", err) } return err } // error1 expects a value and an error value as its arguments. func error1(val1 interface{}, err error) interface{} { if err != nil { fmt.Println("%v", err) return nil } return val1 } // fatal0 expects only an error value as its argument. func fatal0(err error) { if err != nil { fmt.Println("%v", err) } } // Document Type : docType1 // Document States : [ // docState1, // docState2, // docState3, // docState4 // for example // ] // Document Actions : [ // docAction12, // docAction23, // docAction34 // for the above document states // ] // Document Type State Transitions : [ // docState1 --docAction12--> docState2, // docState2 --docAction23--> docState3, // docState3 --docAction34--> docState4, // ] // Access Contexts : [ // accCtx1, accCtx2 // for example // ] // Workflow : { // Name : wFlow1, // Initial State : docState1 // } // Nodes : [ // node1: { // Document Type : docType1, // Workflow : wFlow1, // Node Type : NodeTypeBegin, // note this // From State : docState1, // Access Context : accCtx1, // }, // node2: { // Document Type : docType1, // Workflow : wFlow1, // Node Type : NodeTypeLinear, // note this // From State : docState2, // Access Context : accCtx2, // a different context // }, // node3: { // Document Type : docType1, // Workflow : wFlow1, // Node Type : NodeTypeEnd, // note this // From State : docState3, // Access Context : accCtx1, // }, // ] // With the above setup, you can dispatch document events to the workflow appropriately. // With each event, the workflow moves along, as defined. // * When you create new documents, their events need **_not_** be created at the same time. // Events should be created and applied in response to user actions (or system events). // * Whether you list all possible actions in a list of documents is up to you. // In my opinion, the possible actions - for a given user - on a given document, // are best made available in the detailed view of that document (not in a document list view). // * Yes, when the user clicks on an action button, we can create the corresponding event instance, // and apply it to the document's workflow. // * With a `DocEventID`, you can fetch the corresponding event instance using `DocEvents.Get` // () // * // () // * // *DocEventIDDocEvents.Get // Initialise DB connection. // func init() { // gt = t // Connect to the database.travis // driver, connStr := "mysql", "root:root@/flow" // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB) // flow.RegisterDB(tdb) // if tdb == nil { // log.Fatal("given database handle is `nil`") // } // db = tdb // return nil // } // func RegisterDB(sdb *sql.DB) error { // if sdb == nil { // log.Fatal("given database handle is `nil`") // } // db = sdb // return nil // }wflist []*flow.DocState // func (c *FlowController) testaddflow() { // // driver, connStr := "mysql", "root:root@/flow" // // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB) // // if tdb == nil { // // log.Fatal("given database handle is `nil`") // // } // // db := tdb // driver, connStr := "sqlite3", "database/meritms.db" // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB) // if tdb == nil { // log.Fatal("given database handle is `nil`") // } // db := tdb // tx, err := db.Begin() // if err != nil { // fmt.Println(err) // } // // var tx *sql.Tx // defer tx.Rollback() // // docType1, err := flow.DocTypes.New(tx, "EXAM:COMMON") // // DocTypes.New(tx, "Stor Request") // // DocTypes.New(tx, "Compute Request") // // if err != nil { // // fmt.Println(err) // // } // // docState1, err := flow.DocStates.New(tx, "Init") // // // flow.DocStates.New(tx, "EntrustCreate") // // // flow.DocStates.New(tx, "EntrustApproved") // // // flow.DocStates.New(tx, "SampleHandon") // // // flow.DocStates.New(tx, "PrepareFinish") // // // flow.DocStates.New(tx, "PrepareApproved") // // // flow.DocStates.New(tx, "TaskAssign") // // // flow.DocStates.New(tx, "DataApproved") // // // flow.DocStates.New(tx, "ReportGen") // // // flow.DocStates.New(tx, "ReportApproved") // // // docActionID1, _ := flow.DocActions.New(tx, "CreateEntrust", false) // // // docActionID2, _ := flow.DocActions.New(tx, "ApproveEntrust", false) // // // docActionID3, _ := flow.DocActions.New(tx, "HandonSample", false) // // // docActionID4, _ := flow.DocActions.New(tx, "FinishPrepare", true) // // // docActionID5, _ := flow.DocActions.New(tx, "ApprovePrepare", true) // // // docActionID6, _ := flow.DocActions.New(tx, "AssignTask", false) // // // docActionID7, _ := flow.DocActions.New(tx, "ApproveData", false) // // // docActionID8, _ := flow.DocActions.New(tx, "GenReport", false) // // // docActionID9, _ := flow.DocActions.New(tx, "ApproveReport", true) // // // workflowId, _ := flow.Workflows.New(tx, "Examination", docType1, docState1) // // flow.Workflows.SetActive(tx, workflowId, true) // //Docments // // contextId, _ := flow.AccessContexts.New(tx, "Context") // // groupId, err := flow.Groups.New(tx, "Examination", "G") // // if err != nil { // // logs.Error(err) // // } // // resUser, _ := tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // // VALUES('admin', 'dashoo', 'admin@dashoo.com', 1)`) // // uid, _ := resUser.LastInsertId() // // userID1 := flow.UserID(uid) // // flow.Groups.AddUser(tx, groupId, 5) // // roleID1, _ := flow.Roles.New(tx, "administrator") // flow.Roles.AddPermissions(tx, 5, 4, []flow.DocActionID{8, 9, // 10, 11, 12, 13, 14, 15, 16}) // docNewInput := flow.DocumentsNewInput{ // DocTypeID: 4, //docType1, // AccessContextID: 1, //contextId, // GroupID: 7, // Title: "entrust flow", // Data: "eid: 111, entrustNo: 2222", // } // // flow.Documents.New(tx, &docNewInput) // _, err = flow.Documents.New(tx, &docNewInput) // if err != nil { // logs.Error(err) // } // // Documents.setState(tx, docType1, documentID1, docState2, contextId) // tx.Commit() // // wflist, err = flow.DocStates.List(0, 0) // // if err != nil { // // logs.Error(err) // // } // // return wflist // } // func (c *FlowController) flownext() { // // tx, _ := flow.db.Begin() // var tx *sql.Tx // defer tx.Rollback() // /*docNewInput := DocumentsNewInput { // DocTypeID: docType1, // AccessContextID: contextId, // GroupID: groupId, // Title: "entrust flow", // Data: "eid: 111, entrustNo: 2222", // } // documentID1, err := Documents.New(tx, &docNewInput) // fmt.Println("documentID1=", documentID1, err)*/ // docEventInput := flow.DocEventsNewInput{ // DocTypeID: flow.DocTypeID(4), // DocumentID: flow.DocumentID(1), // DocStateID: flow.DocStateID(9), // DocActionID: flow.DocActionID(2), // GroupID: flow.GroupID(1), // Text: "", // } // groupIds := []flow.GroupID{flow.GroupID(1)} // myWorkflow, err := flow.Workflows.Get(flow.WorkflowID(3)) // docEvent1, err := flow.DocEvents.New(tx, &docEventInput) // tx.Commit() // myDocEvent, err := flow.DocEvents.Get(docEvent1) // newDocStateId, err := myWorkflow.ApplyEvent(tx, myDocEvent, groupIds) // tx.Commit() // fmt.Println("newDocStateId=", newDocStateId, err) // } //2019-01-11 // func (c *FlowController) FlowGetDocTypeByName() { // driver, connStr := "mysql", "travis@/flow?charset=utf8&parseTime=true" // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB) // if tdb == nil { // log.Fatal("given database handle is `nil`") // } // db := tdb // tx, err := db.Begin() // if err != nil { // logs.Error(err) // } // // db.Close() // //doctype // dtID1, err := flow.DocTypes.GetByName("") // if err != nil { // logs.Error(err) // } // beego.Info(dtID1) // // err = flow.DocTypes.AddTransition(tx, dtID1.ID, 7, 10, 8) // // if err != nil { // // logs.Error(err) // // } // myWorkflow, err := flow.Workflows.GetByName("") // if err != nil { // logs.Error(err) // } // beego.Info(myWorkflow) // //context // accessContextID1, err := flow.AccessContexts.List("Context", 0, 0) // if err != nil { // logs.Error(err) // } // beego.Info(accessContextID1[0].ID) // beego.Info(flow.GroupID(1)) // docNewInput := flow.DocumentsNewInput{ // DocTypeID: dtID1.ID, // AccessContextID: accessContextID1[0].ID, // GroupID: 11, //groupId, // Title: "", // Data: ": 1, : 2", // } // // flow.Documents.New(tx, &docNewInput) // DocumentID1, err := flow.Documents.New(tx, &docNewInput) // if err != nil { // logs.Error(err) // } // // tx.Commit() //newcommit // beego.Info(DocumentID1) // dsID1, err := flow.DocStates.GetByName("...") // if err != nil { // fmt.Println(err) // } // beego.Info(dsID1) // dsID2, err := flow.DocStates.GetByName("...") // if err != nil { // fmt.Println(err) // } // beego.Info(dsID2) // // _, err = flow.Workflows.AddNode(tx, dtID1.ID, dsID1.ID, accessContextID1[0].ID, myWorkflow.ID, "-", flow.NodeTypeEnd) // // if err != nil { // // fmt.Println(err) // // } // daID2, err := flow.DocActions.GetByName("") // if err != nil { // fmt.Println(err) // } // beego.Info(daID2) // beego.Info(flow.GroupID(12)) // // docEventInput := flow.DocEventsNewInput{ // // DocTypeID: dtID1.ID, //flow.DocTypeID(1), // // DocumentID: DocumentID1, // // DocStateID: dsID1.ID, //document state must be this state // // DocActionID: daID2.ID, //flow.DocActionID(2), // // GroupID: 12, // // Text: "", // // } // // docEventID1, err := flow.DocEvents.New(tx, &docEventInput) // // if err != nil { // // logs.Error(err) // // } // // // tx.Commit() //commit // // beego.Info(docEventID1) // myDocEvent, err := flow.DocEvents.Get(16) // if err != nil { // logs.Error(err) // } // beego.Info(myDocEvent) // // myWorkflow, err := flow.Workflows.Get(workflowId.ID) // // if err != nil { // // logs.Error(err) // // } // //groupids // groupIds := []flow.GroupID{flow.GroupID(13)} // beego.Info(groupIds) // newDocStateId, err := myWorkflow.ApplyEvent(tx, myDocEvent, groupIds) // if err != nil { // logs.Error(err) // } // tx.Commit() //commit // fmt.Println("newDocStateId=", newDocStateId, err) // // wflist, err := flow.DocTypes.GetByName("Compute Request") // // if err != nil { // // logs.Error(err) // // } // c.Data["json"] = "OK" //wflist // c.ServeJSON() // } // daID2, err := flow.DocActions.New(tx, "", false) // if err != nil { // fmt.Println(err) // } // daID3, err := flow.DocActions.New(tx, "", false) // if err != nil { // fmt.Println(err) // } // daID4, err := flow.DocActions.New(tx, "", true) // if err != nil { // fmt.Println(err) // } // daID5, err := flow.DocActions.New(tx, "", true) // if err != nil { // fmt.Println(err) // } // daID6, err := flow.DocActions.New(tx, "", false) // if err != nil { // fmt.Println(err) // } // daID7, err := flow.DocActions.New(tx, "", false) // if err != nil { // fmt.Println(err) // } // //1:oldstate1 action1 newstate2 // err = flow.DocTypes.AddTransition(tx, dtID1, dsID1, daID1, dsID2) // if err != nil { // logs.Error(err) // } // //2:oldstate2 action2 newstate3 // err = flow.DocTypes.AddTransition(tx, dtID1, dsID2, daID2, dsID3) // if err != nil { // logs.Error(err) // } // //doctypeworkflow // workflowID1, err := flow.Workflows.New(tx, "-", dtID1, dsID1) //... // if err != nil { // fmt.Println(err) // } // beego.Info(workflowID1) // // workflowID2, err := flow.Workflows.New(tx, "-", dtID1, dsID1) //...- // // if err != nil { // // fmt.Println(err) // // } // // beego.Info(workflowID2) // // // // // // // accessContextID1, err := flow.AccessContexts.New(tx, "Context") // if err != nil { // logs.Error(err) // } // //workflownodeeventaction // // AddNode maps the given document state to the specified node. This // // map is consulted by the workflow when performing a state transition // // of the system.nodeID1 // _, err = flow.Workflows.AddNode(tx, dtID1, dsID1, accessContextID1, workflowID1, "--", flow.NodeTypeBegin) // if err != nil { // fmt.Println(err) // } // _, err = flow.Workflows.AddNode(tx, dtID1, dsID2, accessContextID1, workflowID1, "--", flow.NodeTypeLinear) // if err != nil { // fmt.Println(err) // } // _, err = flow.Workflows.AddNode(tx, dtID1, dsID3, accessContextID1, workflowID1, "--", flow.NodeTypeEnd) // if err != nil { // fmt.Println(err) // } // //--- // res, err := tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-1', 'email1@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ := res.LastInsertId() // uID1 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID1) // res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-2', 'email2@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ = res.LastInsertId() // uID2 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID2) // res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-3', 'email3@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ = res.LastInsertId() // uID3 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID3) // res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active) // VALUES('', '-4', 'email4@example.com', 1)`) // if err != nil { // log.Fatalf("%v\n", err) // } // uid, _ = res.LastInsertId() // uID4 := flow.UserID(uid) // _, err = flow.Groups.NewSingleton(tx, uID4) // gID1 := fatal1(flow.Groups.New(tx, "", "G")).(flow.GroupID) // gID2 := fatal1(flow.Groups.New(tx, "", "G")).(flow.GroupID) // fatal0(flow.Groups.AddUser(tx, gID1, uID1)) // fatal0(flow.Groups.AddUser(tx, gID1, uID2)) // fatal0(flow.Groups.AddUser(tx, gID1, uID3)) // fatal0(flow.Groups.AddUser(tx, gID2, uID2)) // fatal0(flow.Groups.AddUser(tx, gID2, uID3)) // fatal0(flow.Groups.AddUser(tx, gID2, uID4)) // roleID1 := fatal1(flow.Roles.New(tx, "")).(flow.RoleID) // roleID2 := fatal1(flow.Roles.New(tx, "")).(flow.RoleID) // //roleaction // fatal0(flow.Roles.AddPermissions(tx, roleID1, dtID1, []flow.DocActionID{daID1, daID2, daID3, daID4})) // fatal0(flow.Roles.AddPermissions(tx, roleID2, dtID1, []flow.DocActionID{daID1, daID2, daID3, daID4, daID5, daID6, daID7})) // //grouprole // err = flow.AccessContexts.AddGroupRole(tx, accessContextID1, gID1, roleID1) // if err != nil { // logs.Error(err) // } // //grouproleaccesscontext // err = flow.AccessContexts.AddGroupRole(tx, accessContextID1, gID2, roleID2) // if err != nil { // logs.Error(err) //UNIQUE constraint failed: wf_ac_group_roles.ac_id // } ```
The 1954 South Dakota gubernatorial election was held on November 2, 1954. Incumbent Republican Governor Sigurd Anderson was term-limited. Republican nominee Joe Foss defeated Democratic nominee Ed C. Martin with 56.67% of the vote. Primary elections Primary elections were held on June 1, 1954. Democratic primary Candidates Ernest F. McKellips, former mayor of Alcester Ed C. Martin, rancher Results Republican primary Candidates Joe Foss, unsuccessful candidate for Republican nomination for Governor in 1950 Harold O. Lund, Chairman of the Board of Charities and Corrections Rex Terry, incumbent Lieutenant Governor Results General election Candidates Ed C. Martin, Democratic Joe Foss, Republican Results References Bibliography 1954 South Dakota Gubernatorial November 1954 events in the United States
```swift // // Feedback.swift // KeyboardKit // // Created by Daniel Saidi on 2024-04-08. // import Foundation /// This namespace contains feedback-related types. /// /// The namespace doesn't contain protocols, nor any context /// or settings types that should be top-level types. public struct Feedback {} ```
Bellamack is a suburb of Palmerston. It is 26.5 km southeast of the Darwin CBD. Its local government area is the City of Palmerston. References External links https://web.archive.org/web/20080123190745/http://www.nt.gov.au/lands/lis/placenames/origins/greaterdarwin.shtml#b https://web.archive.org/web/20091005152315/http://nt.gov.au/lands/lru/buildingpalmerston/bellamack/index.shtml http://www.ntnews.com.au/article/2009/11/05/98601_realestate.html Suburbs of Darwin, Northern Territory
```smalltalk #if __IOS__ || MONOMAC using System; using CoreGraphics; using Foundation; using ObjCRuntime; using Phase; using NUnit.Framework; #if NET using Vector2d = global::CoreGraphics.NVector2d; #else using OpenTK; #endif #nullable enable namespace MonoTouchFixtures.Phase { [TestFixture] // we want the test to be available if we use the linker [Preserve (AllMembers = true)] public class PhaseEnvelopeTest { [SetUp] public void Setup () { TestRuntime.AssertXcodeVersion (13, 0); // not supported in simulator TestRuntime.AssertDevice (); } [Test] public void ConstructorTest () { var start = new Vector2d (1, 2); using (var envelope = new PhaseEnvelope (start, new PhaseEnvelopeSegment [] { })) { // assert we do get the start vector Assert.AreEqual (start, envelope.StartPoint); } } } } #endif // __IOS__ || MONOMAC ```
Fishing Creek Township is a township in Columbia County, Pennsylvania. It is part of Northeastern Pennsylvania. The population was 1,416 at the 2010 census. History The Josiah Hess Covered Bridge No. 122, Twin Bridges-East Paden Covered Bridge No. 120, and Twin Bridges-West Paden Covered Bridge No. 121 were listed on the National Register of Historic Places in 1979. The Bridge in Fishing Creek Township was listed in 1988. Geography Fishing Creek Township is in northeastern Columbia County, bordered to the east by Luzerne County. The connected ridges of Huntington Mountain and Knob Mountain form the southern boundary. The township surrounds the borough of Stillwater, a separate municipality. The unincorporated communities of Honeytown, Van Camp, Bendertown, Zaner, Pealertown, Forks, Asbury, and Jonestown are in the township. According to the United States Census Bureau, the township has a total area of , of which is land and , or 1.06%, is water. Major streams in the township are Fishing Creek and Huntington Creek, its tributary. Fishing Creek flows south to the Susquehanna River at Bloomsburg. Demographics As of the census of 2000, there were 1,393 people, 556 households, and 425 families residing in the township. The population density was . There were 711 housing units at an average density of 24.9/sq mi (9.6/km). The racial makeup of the township was 99.21% White, 0.14% Asian, 0.14% from other races, and 0.50% from two or more races. Hispanic or Latino of any race were 0.79% of the population. There were 556 households, out of which 29.0% had children under the age of 18 living with them, 66.4% were married couples living together, 7.0% had a female householder with no husband present, and 23.4% were non-families. 20.1% of all households were made up of individuals, and 8.5% had someone living alone who was 65 years of age or older. The average household size was 2.51 and the average family size was 2.88. In the township the population was spread out, with 22.3% under the age of 18, 6.2% from 18 to 24, 29.4% from 25 to 44, 27.8% from 45 to 64, and 14.4% who were 65 years of age or older. The median age was 41 years. For every 100 females, there were 99.3 males. For every 100 females age 18 and over, there were 96.6 males. The median income for a household in the township was $38,654, and the median income for a family was $44,118. Males had a median income of $30,114 versus $23,580 for females. The per capita income for the township was $18,121. About 6.6% of families and 7.5% of the population were below the poverty line, including 10.1% of those under age 18 and 10.4% of those age 65 or over. Notable person Charles Rollin Buckalew (1821-1899), politician References External links Fishing Creek Township official website Populated places established in 1783 Bloomsburg–Berwick metropolitan area Townships in Columbia County, Pennsylvania Townships in Pennsylvania
The women's 50 metre backstroke event at the 2002 Commonwealth Games took place 2–3 August. The heats and the semi were held on 2 August, the final on 3 August. Results Final Key: WR = World record Semifinals Preliminaries References Heats Results Swimming at the 2002 Commonwealth Games 2002 in women's swimming
Winnerbäck – Ett slags liv (Winnerbäck – A Kind of Life) is a 2017 documentary film about Swedish musician Lars Winnerbäck, directed by Øystein Karlsen, marking 20 years of the singer's career. It includes interviews with the subject and concert footage. To get around Winnerbäck's dislike of interviewers and cameras, his wife Agnes Kittelsen was given a camera to record some of the footage, Karlsen stating "I gave a camera to his wife, so that she could film him when he least expected it". The film was premiered on 6 October 2017. References 2017 animated films 2017 films Swedish children's films Swedish animated films Films based on Swedish comics Animated films based on comics Swedish documentary films 2010s Swedish-language films 2010s Swedish films
Konstantin Steinhübel (born 5 January 1990) is a German rower. He won the silver medal in the lightweight quadruple sculls at the 2014 World Rowing Championships. References 1990 births Living people German male rowers World Rowing Championships medalists for Germany
Paula Tsui Siu Fung is a Cantopop singer in Hong Kong, with a career spanning over 50 years. She was affiliated with the TVB television station until the mid-1990s and has performed for Asia Television on several occasions since 1995. Personal life Tsui is the eldest of six children, having three brothers and two sisters. After graduating from secondary school, she worked at her father's salon as a nail technician and hairstylist. Tsui was born in Hubei, but her family moved to Hong Kong when she was still a baby. She recalls being a mischievous and rebellious child. For example, she only enjoyed music classes, enjoying her natural singing talent but refused to sing the school hymns, instead singing pop songs. She believes this attitude stems from not knowing what she wanted to do, and that makes her memory of youth unclear, she only remembers frequently changing jobs. The thing that changed her life was a singing contest when Tsui entered one in 1965. Initially, she was reluctant to join the competition, but her friends kept persuading her, and said that they would not participate without Tsui. Then finally, Tsui won that contest came out the champion. At the same time, Tsui's parents did not approve of her becoming a singer, because they thought musically performing was a shameful career, and that is the reason why Tsui refused to let her family see her performances. However, Tsui promised her family that she would not change her mind and principles. Finally her family agreed with her choice to become a singer. Tsui felt so grateful to her parents reluctance and from it came a promise with her family to become a successful singer. Show business had a lot of temptations and this promise kept a firm focus on her singing. Tsui is private about her personal life, especially in regards to her romantic life. It was not until the 1990s that was discovered that she had been secretly married to Hong Kong radio host and legislator Albert Cheng between 1975 and 1979. Tsui was then already a renowned singer, while Cheng was still relatively unknown at that time. Career After winning a contest in 1966, she soon began performing. She moved from lounges to nightclubs and then to being a support act for others. Tsui could perform more than 400 songs, and while she did not set out to, she eventually memorised them all. That's why a lot of people think she has personal high standards, but she does not think like that. She considered doing her best was a basic requirement. She rejected the 'famous' label to avoid putting too much pressure on herself. A record executive was in the audience during one of her nightclub performances and offered her a lucrative contract. After signing the contract, Tsui was not allowed to perform in nightclubs again. Tsui is popularly known for her jaw-dropping gowns on stage. As a result, she is very conscientious in choosing what she wears on stage. If she does not approve of her outfit, she will not show it to anyone. She values the stage effect of her big dresses and will practise moving in them until she feels comfortable with the excess weight. Paradoxically, though she cares about the clothes, she also wants the audiences to focus on her music performance. Even though her stage clothes are all close-fitting, Tsui is not a picky eater; she loves food, and when she faces pressure, she eats chocolates and sweets to release stress. In recent years, Tsui has reduced her television appearances and other public events. Many have assumed she has retired, but she maintains that she will never retire. In 2016, she had another concert, which completely ditched her elegant and extravagant gowns and costumes. Concerts According to Guinness World Records in 2003, Tsui's Amway Paula Tsui in Concert 1992 holds the record for the most number of "single event" concerts in a continuous period (43 concerts in 37 days) in Asia. She gave another series of concerts at the same venue, the Hong Kong Coliseum in summer 2005. Tsui is noted for the voluminous gowns she wears for concert appearances. Also, for that reason, she has never worn in-ear monitors in her career. Partly because the technology was not as advanced as it is now, partly because it seemed odd to her elegant image. Notes References External links Paula Tsui fans website (Hong Kong) Paula Tsui fans (fan site) Chronology of concert performances 1949 births Living people Cantopop singers Hong Kong film actresses Hong Kong Mandopop singers 20th-century Hong Kong women singers Hong Kong television actresses Hong Kong contraltos 21st-century Hong Kong women singers 20th-century Hong Kong actresses 21st-century Hong Kong actresses
China National Botanical Garden station (), formerly known as Botanical Garden station (), is a station on Xijiao line (light rail) of the Beijing Subway. It was opened on 30 December 2017. On April 18, 2022, following the renaming of China National Botanical Garden, the station was renamed to current name. Station Layout The station has 2 at-grade side platforms. See also China National Botanical Garden References Beijing Subway stations in Haidian District Railway stations in China opened in 2017
How to Eat a Small Country: A Family's Pursuit of Happiness, One Meal at a Time is a memoir by Amy Finley, the Season 3 winner of The Next Food Network Star and former host of The Gourmet Next Door on Food Network. The memoir, released by Clarkson Potter/Random House in April 2011, chronicles her abrupt departure from television in 2008 to save her marriage, moving her family to a rural farm in Burgundy, France and roadtripping around the country in search of some of the disappearing regional dishes written about by Waverly Root in his 1958 book, The Food of France. Story A professionally trained cook turned anxious stay-at-home mom, Amy Finley's marriage was already in fragile shape when she sent in an audition tape for the third season of The Next Food Network Star. When she was cast on the show in 2007, her husband, who feared for their privacy and hated the idea of reality shows and what celebrity could do to their marriage, forbade her to participate, but Finley did anyway, hoping to jumpstart her career and self-esteem. But while she was filming the show in New York, her husband retaliated by threatening to divorce her. Finley was the last contestant eliminated from Season 3 before the two person finale and returned home defeated to put her marriage back in order, but was recalled into the competition when one of the finalists had to withdraw, and ultimately was voted the winner and starred in her own cooking show, The Gourmet Next Door. But she gave up the show when she realized her family was so shaky, the stress would probably cause her marriage to fail. To get away from a life that had gotten too complicated, they moved to France and took a road trip Finley had dreamed about since she was living in Paris, falling in love with her husband, and going to culinary school. They drive all over France, and while they are learning about and enjoying regional dishes, Finley tries to figure out how her marriage became so delicate, and how to make it, and herself, strong again. Critical reception Some early readers reacted strongly to the book's opening chapter, in which Finley and her husband butcher a rabbit so that Finley can cook ‘’lapin a la moutarde", a traditional dish from Burgundy, where they are living. Throughout the book, Finley frankly discusses other old and disappearing French specialties, like ‘’tete de veau", the boiled face of a baby cow, and some readers found her descriptions off-putting. Anthony Bourdain, himself notorious for graphic food descriptions, offered a blurb for the cover of the book and called it "an unexpected and delightful memoir." Cookbook author Dorie Greenspan and former Chez Panisse chef David Lebovitz also praised the book on its cover. Kirkus Reviews gave the book five stars and called it a "charming, bare-bones chronicle of a woman reclaiming her family and a couple reclaiming their relationship." Booklist also admired the book and called it a "bold bouillabaisse of a food memoir." The Boston Globe compared the book favorably to Eat, Pray, Love, calling How to Eat a Small Country, "less precious, more honest, and ultimately more rewarding" than Gilbert's book, and opined about the controversial rabbit chapter that, "cooking, real cooking, it turns out, is a test that reveals a lot more than eating does." References External links How to Eat a Small Country official website How to Eat a Small Country official Facebook site American memoirs 2011 non-fiction books American travel books Books about France
Conchopetalum is a genus of flowering plants belonging to the family Sapindaceae. Its native range is Madagascar. Species: Conchopetalum brachysepalum Conchopetalum madagascariense References Sapindaceae Sapindaceae genera
Ostrówek is a village in the administrative district of Gmina Szudziałowo, within Sokółka County, Podlaskie Voivodeship, in north-eastern Poland, close to the border with Belarus. References Villages in Sokółka County
The 1964 NAIA World Series was the eighth annual tournament hosted by the National Association of Intercollegiate Athletics to determine the national champion of baseball among its member colleges and universities in the United States and Canada. The tournament was played at Phil Welch Stadium in St. Joseph, Missouri. West Liberty State (27-7) defeated Grambling (24-5) in the championship series, 6–4 and 3–2, to win the Hilltoppers' first NAIA World Series. West Liberty State, who lost its first game of the tournament, won six consecutive games out of the consolation bracket to claim the title. West Liberty State pitcher Frank Ujcich was named tournament MVP. Bracket † Mayville State's games were all ruled forfeits, with their opponents awarded 9–0 victories. See also 1964 NCAA University Division baseball tournament References NAIA World Series NAIA World Series NAIA World Series College sports tournaments in Missouri Baseball competitions in Missouri St. Joseph, Missouri
The Mingo people are an Iroquoian group of Native Americans, primarily Seneca and Cayuga, who migrated west from New York to the Ohio Country in the mid-18th century, and their descendants. Some Susquehannock survivors also joined them, and assimilated. Anglo-Americans called these migrants mingos, a corruption of , an Eastern Algonquian name for Iroquoian-language groups in general. The Mingo have also been called "Ohio Iroquois" and "Ohio Seneca". Most were forced to move from Ohio to Indian Territory in the early 1830s under the federal Indian Removal program. At the turn of the 20th century, they lost control of communal lands when property was allocated to individual households in a government assimilation effort related to the Dawes Act and extinguishing Indian claims to prepare for the admission of Oklahoma as a state. In the 1930s, Mingo descendants reorganized as a tribe with self-government. They were recognized by the federal government in 1937 as the Seneca–Cayuga Tribe of Oklahoma. History The etymology of the name Mingo derives from the Delaware (Lenape) word, or Minque, as adapted from their Algonquian language, meaning "stealthy". In the 17th century, the terms Minqua or Minquaa were used interchangeably to refer to the five nations of the Iroquois League and to the Susquehannock, another Iroquoian-speaking people. The Mingo had a bad reputation and were sometimes called "Blue Mingo" or "Black Mingo" for their misdeeds. The people who became known as Mingo migrated to the Ohio Country along the river in the mid-eighteenth century, part of a movement of various Native American tribes away from European pressures to a region that had been sparsely populated for decades but controlled as a hunting ground by the Iroquois League of the Five Nations. The "Mingo dialect" that dominated the Ohio valley from the late 17th to early 18th centuries is considered a variant most similar to the Seneca language. After the French and Indian War (1754-1763), France was defeated and ceded its lands east of the Mississippi River to Great Britain. Many Cayuga people of the Five Nations also moved to Ohio, where the British granted them a reservation along the Sandusky River. They were joined there by the Algonquian-speaking Shawnee of Ohio and the rest of the Mingo confederacy. Their villages were increasingly an amalgamation of Iroquoian-speaking Seneca, Wyandot, and Susquehannock; Siouan-language speaking Tutelo and Algonquian-language Shawnee and Delaware migrants. Although the Iroquois Confederacy had claimed hunting rights and sovereignty over much of the Ohio River Valley since the late 17th century, these peoples in Ohio increasingly acted independently. When Pontiac's Rebellion broke out in 1763 against the British at the end of the French and Indian War, many Mingo joined with other tribes in an attempt to drive the British out of the Ohio Country. At that time, most of the six Iroquois nations based in New York (who then numbered six, as the Tuscarora had joined them from the South about 1722) were closely allied to the British because of their lucrative fur trading. Guyasuta (c. 1725–c. 1794), a chief of the Mingo-Seneca, was one of the leaders in Pontiac's War. Another famous Mingo leader was Chief Logan (c. 1723–1780), who had good relations with neighboring white settlers. He was not a war chief, but a village leader. In 1774, as tensions between whites and Indians were on the rise due to a series of violent conflicts, a band of white outlaws murdered his family. Local chiefs counseled restraint, but acknowledged his right to revenge. He conducted a series of raids against white settlers with a dozen followers, not all of whom were Mingo. Logan did not participate in the resulting Lord Dunmore's War. He was not likely to have been at the climactic Battle of Point Pleasant. Rather than take part in the peace conference, he expressed his thoughts about the encroachment by Europeans in "Logan's Lament." His speech was printed and widely distributed. It is one of the most well-known examples of Native American oratory. By 1830, the Mingo were flourishing in western Ohio, where they had improved their farms and established schools and other civic institutions. After the US passed the Indian Removal Act in that same year, the government pressured the Mingo to sell their lands and migrate west of the Mississippi River to Kansas, which they did in 1832. In Kansas, the Mingo joined other Seneca and Cayuga bands, and the tribes shared the Neosho Reservation. In 1869, after the American Civil War, the US government pressed for Indian removal of these tribes from Kansas to Indian Territory (present-day Oklahoma). The three tribes moved to present-day Ottawa County, Oklahoma. In 1881, a band of Cayuga from Canada joined the Seneca in Indian Territory. In 1902, several years before Oklahoma Territory was admitted as a state, 372 members of the joint tribe received individual land allotments under a federal program to extinguish communal tribal land holdings so that statehood could take place, and to encourage assimilation to the European-American model. This resulted in considerable loss of their lands in the following decades. In 1937 after the Oklahoma Indian Welfare Act was passed, the descendants of these tribes reorganized to re-establish self-government. They identified as the Seneca-Cayuga Tribe of Oklahoma and became federally recognized. Today, the tribe numbers over 5,000 members. They continue to maintain cultural and religious ties to the Six Nations of the Iroquois, which have been based largely in Ontario, Canada since after the American Revolutionary War. At the time, Great Britain ceded its territory south of the Great Lakes and east of the Mississippi River to the newly independent American states, including most of the lands controlled by the Iroquois in New York and Pennsylvania. Some of the Six Nations also have bands with reservations in New York State, their original homeland. In the US, these governments are recognized as separate tribes. In popular culture Logan and the Mingo in the period following Lord Dunmore's War are featured prominently in the Gothic novel Logan (1822) by John Neal. The story can be read as issuing an indictment of American imperialism by depicting Indigenous genocide as central to the American story. References Citations Sources Cobb, William H., Andrew Price and Hu Maxwell (1921), History of the Mingo Indians, Cumberland, Md.: F.B. Jenvy, printer. Hoxie, Frederick E., editor (1996), Encyclopedia of North American Indians. Boston, MA: Houghton Mifflin, pp. 380–381. . McConnell, Michael N. (1992), A Country Between The Upper Ohio Valley and Its Peoples, 1724–1774. Lincoln, Nebraska: University of Nebraska Press, . Algonquian ethnonyms Iroquois Native American tribes in Ohio Native American tribes in Kansas Native American tribes in Oklahoma Native American tribes in West Virginia Native Americans in the American Revolution Seneca Susquehannock
Angel & Chanelle is the fifth studio album by American girl group Trin-i-tee 5:7. It was released on May 31, 2011 by Music World Gospel. Following a career hiatus that reignited their creativity, Trin-i-tee 5:7 was inspired to create a record musically and lyrically more personal than their previous albums. Their collaborations with songwriters and record producers Rockwilder, Ronny "Flip" Colson, and the Surefire Music Group produced a mellower tone, developing diverse vocal styles and influences from hip hop, pop, and soul music. Angel & Chanelle is also Trin-i-tee 5:7's first album as a music duo, following the departure of Adrian Anderson in October 2010. By October 2011, the album had sold a total of 69,648 copies. In December 2011, Angel & Chanelle was ranked as the 13th Highest-Selling Gospel Album of 2011 by Billboard. Recording and production Production of the album began in summer of 2010 with Trin-i-tee 5:7. Trin-i-tee 5:7 also took the role of executive producing alongside their manager, Mathew Knowles. They collaborated with several record producers and songwriters, including Imani Pressley, Surefire Music Group (production group composed of Jared Hancock, Brendan Brady, Stephen "Nef" Saxon, Sterling Brunsvold, and Brandon "OZ" Coleman), Maroon 5 member PJ Morton, Andrew "Druski" Scott, Tito Ali, Stan Jones, David Mullen, Rockwilder, as well as Rockwilder's protégé Ronny "Flip" Colson. The album also saw the return of frequent collaborator Fred Jerkins III, who co-produced the album's third single "Bring Your Praise". The duo also co-wrote or co-produced all material on Angel & Chanelle. Release and promotion In February 2011, Trin-i-tee 5:7 began filming a mini-series titled "A New Day, A New Journey...On the road with Trin-i-tee 5:7", released on Music World Gospel's YouTube page. The mini-series consisted of fifteen episodes that followed Trin-i-tee 5:7 during their performances and recording of Angel & Chanelle. The duo also released a five-part video "Behind the scenes of Angel & Chanelle", with duo elaborating on the production of Angel & Chanelle. The video was also released on their website and later on Music World Gospel's YouTube page. On May 13, 2011, Trin-i-tee 5:7 appeared on 106 & Park to premiere the music video for their second single "Heaven Hear My Heart". On May 24, 2011, the duo performed "Over and Over" on Trinity Broadcasting Network's JCTV 1 Music Village Concert Special. On May 29, 2011, Lift Every Voice premiered the music video for "Over and Over". The album was released worldwide on May 31, 2011. A deluxe edition of the album was also released simultaneously with the standard edition, which includes all of the previously released songs in addition to the new songs "The Cross", "I'm Still Holdin' On", "Psalm 139", "Drops of Rain", and "New Day". In the same month, they performed "Heaven Hear My Heart" on The Mo'Nique Show where they also sat down for an interview with Mo'Nique. In July 2011, Trin-i-tee 5:7 performed at annual Essence Music Festival. To further promote the album, Trin-i-tee 5:7 embarked on a 25-city tour. Singles The album's lead single, "Over and Over", which featured singer PJ Morton, was released exclusively to radio stations on February 4, 2011. Its high-mark debut at number 24 on the Billboard Hot Gospel Songs chart gave the album an early boost. The single peaked at number two on the chart for the week ending July 9, 2011, giving the group their second top ten single as well as their highest-charting song. After a total of thirty-nine weeks on the chart, "Over and Over" fell to the thirteenth position before retiring from the chart in late November 2011. On May 23, 2011, Trin-i-tee 5:7 released a music video for "Over and Over". "Heaven Hear My Heart", released on May 28, 2011, debuted and peaked at the tenth position on the Billboard Gospel Digital Songs chart becoming the duo's second top ten single on that chart. "Heaven Hear My Heart" also peaked at number thirty-two on the Adult R&B Songs chart. The third and final single from Angel & Chanelle was "Bring Your Praise" released in the US on October 22, 2011. It peaked at number twenty-eight on the Hot Gospel Songs. Critical reception Angel & Chanelle received moderately favorable reviews from music critics and media outlets. Andrew Greer of Christianity Today magazine gave the deluxe edition of the album a three-star rating, stating "Seventeen songs is long, but the invigorating duet keeps it fresh with their hip vocals." Arnell Pharr of Rolling Out media praised the lyrical content and wrote "What I appreciate most about this pair’s music is that they actually have lyrics — words that speak, that say something to the hearts and minds of people." The latter eventually gave the album a high recommendation. Keren Perrott of Cross Rhythms favorable commented that the album "is a sure-fire hit with a plethora of radio-friendly tracks combining inspirational lyrics and soulful tunes." Accolades Angel & Chanelle earned Trin-i-tee 5:7 their second Grammy nomination, where it was nominated for Best Gospel Album in 2012. The album also received a nomination in the category for Urban Album of the Year at the 2012 Dove Awards. At the 2011 Soul Train Music Awards "Heaven Hear My Heart" received an award nomination for Best Gospel Performance. Their album performance also earned two Stellar Award nominations, for "Group/Duo of the Year" and "Contemporary Group/Duo of the Year" in 2012. Commercial performance In the United States, the album debuted at number 20 on the Billboard 200 for the week ending June 18, 2011, selling over 15,300 copies in the first week of its release. Angel & Chanelle became Trin-i-tee 5:7's highest debuting and charting album on Billboard Top 200 Albums chart, respectively. The following week, Angel & Chanelle fell to number 81 on Billboard 200, selling over 8,200 copies. Angel & Chanelle also debuted at number one on the Top Gospel Albums chart. By October 2011, the album had sold a total of 69,648 copies. In December 2011, Angel & Chanelle was ranked as the 13th Highest-Selling Gospel Album of 2011 by Billboard. The lead single "Over and Over" was also ranked at the 9th Highest-Selling Gospel Song of 2011. These achievements also made Trin-i-tee 5:7 the 10th Highest-Selling Gospel Artist of 2011. Track listing Personnel Credits adapted from the liner notes of Angel & Chanelle. Chanelle Haynes – lead vocals, background vocals; A&R, executive producer, arrangement, audio production; vocal production Angel Taylor – lead vocals, background vocals; A&R, executive producer, arrangement, audio production; vocal production Mathew Knowles – A&R, executive producer Tito Ali – audio production Ronny "Flip" Colson - audio production Fred Jerkins III – audio production Stan Jones – audio production PJ Morton - lead vocals, audio production David Mullen - audio production Imani Pressley - audio production Rockwilder - audio production Andrew "Druski" Scott - audio production Surefire Music Group - audio production Charts Weekly charts Year-end charts References 2011 albums Trin-i-tee 5:7 albums Albums produced by Rockwilder
Don't Worry About Me is the debut album released by Joey Ramone as a solo artist. It was released posthumously on February 19, 2002, by Sanctuary Records, less than a year after his death. The album was produced by Daniel Rey, who also did most of the guitar work. Rey had previously produced three of the Ramones' albums, between 1987 and 1995. The album includes two covers: "What a Wonderful World," originally performed by Louis Armstrong, and "1969," originally performed by the Stooges. "What a Wonderful World" was used for the ending credits of Michael Moore's film Bowling for Columbine. It also appeared on the soundtrack to Freaky Friday. A DualDisc version of the album was released on November 19, 2002. It included the album in the DVD-Audio format, which is in 5.1 surround sound, as well as the music video for "What a Wonderful World" (directed by Debbie Harry) and other material. Don't Worry About Me peaked at #109 on the Billboard 200. Critical reception The Austin Chronicle wrote that "though Ramones neophytes would be best served by starting at the beginning, Don't Worry About Me is a must for card-carrying superfans." Entertainment Weekly called the album "a testament to the uplifting power of rock." Now wrote that it "boasts better songwriting and playing than the last few Ramones albums, with Joey singing strong, free of any ironic or goofy pose." Wired wrote that "pointless guitar solos are evident on several tracks, but Joey's goofy teenage romanticism still manages to carry the day." Track listing Personnel Credits adapted from the album's liner notes. Technical Daniel Rey – producer, engineer, mixing Jon Marshall Smith – engineer, mixing Joe Blaney – mixing ("Don't Worry About Me") Noah Simon – assistant mixing engineer ("Don't Worry About Me") Howie Weinberg – mastering George Seminara – front cover photography George DuBose – package design Charlotte Lesher – executive producer Mickey Leigh – executive producer Charts References 2002 debut albums Joey Ramone albums Sanctuary Records albums Albums published posthumously Albums produced by Daniel Rey
Panic Movement is the first release by indie/garage rock band The Hiss. It was released in August 2003 on Loog records and is distributed throughout America by Sanctuary Records. The song "Back On the Radio" was featured in Tony Hawk's Underground 2, and the first single "Triumph" entered the UK top 20. Some enhanced copies on the Sanctuary Records release have 2 bonus videos. Track listing "Clever Kicks" 2:23 "Triumph" 4:08 "Listen to Me" 4:15 "Back on the Radio" 4:12 "Not for Hire" 5:10 "Riverbed" 2:29 "Ghost's Gold" 6:27 "Lord's Prayer" 2:42 "Hard to Lose" 4:03 "Step Aside" 3:49 "Brass Tacks" 3:11 "City People" 3:03 Misc. On the video for Back on the Radio (found on the enhanced copies) it reads: "Loog Records Presents: The Hiss in Shame the Devil". Even though it says Loog Records, the CD case has Sanctuary Records printed on the back. References Sources [ Panic Movement at AMG] 2003 albums Albums produced by Owen Morris
The Brookville BL20GH is a diesel-electric locomotive built by the Brookville Equipment Corporation. The locomotive is designed for both freight and passenger service. Brookville built 12 in 2008 for the Metro-North Railroad. The Staten Island Railway operates four nearly identical BL20G locomotives, built by Brookville in December 2008, in work service. Design The BL20GH is a low emissions locomotive. Originally equipped with a V12 MTU-Detroit Diesel 12V4000 engine rated at , rebuilt units now feature a Cummins QSK50 prime mover rated at . It has a separate Caterpillar engine for head end power, allowing the locomotive to be used in passenger service for branch line shuttle trains. The Metro-North locomotives are equipped with Automatic train control (ATC). History Brookville built a single demonstrator for the Connecticut Department of Transportation (CDOT); CDOT and the Metro-North combined to order eleven more in 2008, for a total of twelve locomotives. CDOT owns six of the locomotives, which it painted in its "McGinnis" paint scheme, named after former New York, New Haven and Hartford Railroad president Patrick B. McGinnis. This scheme consists of a black nose, with a white stripe and an orange rear, with white New-Haven lettering overlapping the orange rear. The first public run occurred on June 9, 2008. These locomotives are used in branch service on the Metro-North Railroad, including the Danbury Branch and Waterbury Branch. They are used on shuttle trains operating on routes where there is no third rail (such as the Upper Harlem Line, between Southeast and Wassaic stations.) They lack third-rail shoes and thus rarely operate into Grand Central Terminal. The BL20GH locomotives began a rebuild program by MotivePower in 2019. The rebuilt units will be equipped with Cummins QSK50 prime movers, which are compliant with Tier 3 of the Environmental Protection Agency's standards for locomotive emissions. Following rebuild, they will be reclassified as BL20GHM. All units owned by ConnDOT were repainted into a paint scheme similar to the ones used on its CT Rail services. Variants A nearly identical locomotive, known as the BL20G, operates on the Staten Island Railway. Four were built by Brookville Corporation in December 2008. These locomotives lack the head-end power generator and the associated ventilation grates of the BL20GH, and thus they are only used in work train service unless performing a rescue of their R44 EMU's. References External links Description of the BL20GH B-B locomotives Diesel-electric locomotives of the United States EPA Tier 2-compliant locomotives of the United States Brookville locomotives Passenger locomotives Standard gauge locomotives of the United States Railway locomotives introduced in 2008
Johannes Müller (1880–1964) was a German politician and from 17 May 1927 until 28 March 1933 mayor of Marburg. He later became a member of the CDU. References 1880 births 1964 deaths Politicians from the Kingdom of Saxony Christian Democratic Union of Germany politicians Mayors of Marburg
```php <?php /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* * Authors: * - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org */ return array_replace_recursive(require __DIR__.'/ar.php', [ 'formats' => [ 'L' => 'D/M/YY', ], 'months' => ['', '', '', '', '', '', '', '', '', '', '', ''], 'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''], 'weekdays' => ['', '', '', '', '', '', ''], 'weekdays_short' => ['', '', '', '', '', '', ''], 'weekdays_min' => ['', '', '', '', '', '', ''], 'day_of_first_week_of_year' => 1, ]); ```
Pool B of the 2014 Fed Cup Asia/Oceania Group I was one of two pools in the Asia/Oceania Group I of the 2014 Fed Cup. Three teams competed in a round robin competition, with the top team and the bottom two teams proceeding to their respective sections of the play-offs: the top team played for advancement to the World Group II Play-offs, while the bottom team faced potential relegation to Group II. Standings Round-robin China vs. Uzbekistan South Korea vs. Chinese Taipei China vs. South Korea Uzbekistan vs. Chinese Taipei China vs. Chinese Taipei Uzbekistan vs. South Korea References External links Fed Cup website B1
Marty Essen is an American naturalist, author, photographer, and professional speaker. He has written seven books, Cool Creatures, Hot Planet: Exploring the Seven Continents, Endangered Edens: Exploring the Arctic National Wildlife Refuge, Costa Rica, the Everglades, and Puerto Rico, Time Is Irreverent, Time Is Irreverent 2: Jesus Christ, Not Again! Time Is Irreverent 3: Gone for 16 Seconds, Hits, Heathens, and Hippos: Stories from an Agent, Activist, and Adventurer, and Doctor Refurb. . Early life Essen was born in Duluth, Minnesota, United States. He attended Duluth East High School and University of Minnesota Duluth. Career Essen worked as a radio announcer at WEBC-AM and KQDS-FM. In 1982, he moved to Minneapolis, Minnesota, where he ran two music talent management agencies, National Talent Associates and Twin City Talent. In 1996, Essen moved to Victor, Montana to found Essen Communications Corporation, a local telephone company, and later became an author and a college speaker. His first book, Cool Creatures, Hot Planet, became a Minneapolis Star-Tribune Top-10 Green Book. He performs a live college show, Around the World in 90 Minutes, based on Cool Creatures, Hot Planet. One adventure, documented in both his first book and his live show, is surviving a hippo attack in Zimbabwe. Essen's nature photography is featured prominently in his books and live show. His outdoor photographs are also in Deb Essen's book, Easy Weaving with Supplemental Warps: Overshot, Velvet, Shibori, and More. Magazines publishing his photos include Reptiles Magazine and Handwoven Magazine. Essen's three nonfiction books advocate for protecting endangered species and the environment, and his four fiction books are science-fiction political-comedies that advocate for the protection of human rights and the environment. Personal life Essen resides in Victor, Montana and is married to weaving designer and author Deb Essen. Book awards 2006 Foreword Reviews' INDIEFAB Book of the Year Award Winner (Bronze) 2007 Benjamin Franklin Award for Travel/Essay 2007 Ippy Award for Travel/Essay (Bronze) 2009 Green Book Festival Award for Animals 2016 Nautilus Award for Animals & Nature (Silver) 2016 Nautilus Award for Middle Grades Non-Fiction (Silver) Books Cool Creatures, Hot Planet: Exploring the Seven Continents Endangered Edens: Exploring the Arctic National Wildlife Refuge, Costa Rica, the Everglades, and Puerto Rico Time Is Irreverent Time Is Irreverent 2: Jesus Christ, Not Again! Time Is Irreverent 3: Gone for 16 Seconds Hits, Heathens, and Hippos: Stories from an Agent, Activist, and Adventurer Doctor Refurb Live Shows Essen has been touring the United States, performing Around the World in 90 Minutes, at hundreds of colleges since 2007. References External links Official website American travel writers American non-fiction outdoors writers American naturalists Living people American male non-fiction writers Writers from Montana Nature photographers American photographers People from Duluth, Minnesota People from Victor, Montana Year of birth missing (living people)
In wrestling, a bear hug, also known as a bodylock, is a grappling clinch hold and stand-up grappling position where the arms are wrapped around the opponent, either around the opponent's chest, midsection, or thighs, sometimes with one or both of the opponent's arms pinned to the opponent's body. The hands are locked around the opponent and the opponent is held tightly to the chest. The bear hug is a dominant position, with great control over the opponent, and also allows an easy takedown to the back mount position. A variation of the bear hug is the inverted bear hug, where one wrestler has his hands locked behind his opponent's mid or lower back and presses his forehead into their sternum, while pulling his locked hands inwards towards himself, forcing his opponent to bend backwards and fall. It is a painful move as much pressure is being exerted onto the opponent's sternum, often hurting the back bones and muscles as well as forcing air out of the lungs. In professional wrestling, this move is most often used by wrestlers known for great upper body strength. The move was used by Terrible Ted, an actual bear which took part in wrestling exhibition matches in the US and Canada between 1950 and 1975. Other uses "Bear hug" was a term used in the 1970s for extremely close dancing, which sometimes was called "bump and grind". In business, a "bear hug" is an unsolicited takeover bid which is so generous that the shareholders of the target company are very unlikely to refuse. A "bear hug" is also known as an "icebreaker game" in which an odd number of people are divided into pairs, leaving one member without a partner. All players sit down in a large circle, one partner in front of the other. The player without a partner calls 2–5 names, depending upon the size of the group, of players sitting in the front. Those players then try to make their way to the player without a partner, while their partners attempt to hold them back. The match ends when a player reaches the individual who called the names. Players who were called and failed to reach the caller switch places with their partner so they are now in the back. The game often involves injuries due to the violent struggles between partners. The song "Summertime Clothes" (2009) from Animal Collective was originally known as "Bearhug". See also Bear Hugger, a Super Punch-Out!! character Collar-and-elbow position Double collar tie Double underhooks Over–under position Pinch grip tie References Grappling hold Wrestling Bears in popular culture
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; /** * Unsigned integer typed array constructors. * * @module @stdlib/array/typed-unsigned-integer-ctors * * @example * var ctors = require( '@stdlib/array/typed-unsigned-integer-ctors' ); * * var ctor = ctors( 'uint32' ); * // returns <Function> * * ctor = ctors( 'uint' ); * // returns null */ // MODULES // var main = require( './main.js' ); // EXPORTS // module.exports = main; ```
```java * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.flowable.rest.service.api.management; import org.flowable.common.engine.api.FlowableObjectNotFoundException; import org.flowable.engine.ManagementService; import org.flowable.job.api.HistoryJob; import org.flowable.job.api.Job; import org.flowable.rest.service.api.BpmnRestApiInterceptor; import org.springframework.beans.factory.annotation.Autowired; /** * @author Frederik Heremans * @author Joram Barrez * @author Tijs Rademakers */ public class JobBaseResource { @Autowired protected ManagementService managementService; @Autowired(required=false) protected BpmnRestApiInterceptor restApiInterceptor; protected Job getJobById(String jobId) { Job job = managementService.createJobQuery().jobId(jobId).singleResult(); validateJob(job, jobId); return job; } protected Job getTimerJobById(String jobId) { Job job = managementService.createTimerJobQuery().jobId(jobId).singleResult(); validateJob(job, jobId); return job; } protected Job getSuspendedJobById(String jobId) { Job job = managementService.createSuspendedJobQuery().jobId(jobId).singleResult(); validateJob(job, jobId); return job; } protected Job getDeadLetterJobById(String jobId) { Job job = managementService.createDeadLetterJobQuery().jobId(jobId).singleResult(); validateJob(job, jobId); return job; } protected HistoryJob getHistoryJobById(String jobId) { HistoryJob job = managementService.createHistoryJobQuery().jobId(jobId).singleResult(); validateHistoryJob(job, jobId); return job; } protected void validateJob(Job job, String jobId) { if (job == null) { throw new FlowableObjectNotFoundException("Could not find a job with id '" + jobId + "'.", Job.class); } if (restApiInterceptor != null) { restApiInterceptor.accessJobInfoById(job); } } protected void validateHistoryJob(HistoryJob job, String jobId) { if (job == null) { throw new FlowableObjectNotFoundException("Could not find a history job with id '" + jobId + "'.", HistoryJob.class); } if (restApiInterceptor != null) { restApiInterceptor.accessHistoryJobInfoById(job); } } } ```
```sqlpl SELECT 'Outer part of Mecca'; SELECT pointInPolygon((39.840202, 21.451471), [(39.90553, 21.38668),(39.91034, 21.38608),(39.91834, 21.38048),(39.93078, 21.3627),(39.94141, 21.36278),(39.94753, 21.36075),(39.94986, 21.35894),(39.95349, 21.3533),(39.97833, 21.3815),(39.98132, 21.38231),(39.98851, 21.38151),(39.99076, 21.37747),(39.98987, 21.36908),(39.98791, 21.36332),(39.99543, 21.35687),(39.99827, 21.34722),(39.99784, 21.34271),(39.99632, 21.33955),(39.99322, 21.3366),(39.98908, 21.33496),(39.9692, 21.3331),(39.95841, 21.3388),(39.95109, 21.34412),(39.95026, 21.34825),(39.95203, 21.35168),(39.94753, 21.35845),(39.94165, 21.36077),(39.93272, 21.36009),(39.92969, 21.36103),(39.91928, 21.37669),(39.91374, 21.3816),(39.91056, 21.38296),(39.90839, 21.38361),(39.90059, 21.38257),(39.8978, 21.37712),(39.90051, 21.37335),(39.90033, 21.37195),(39.89559, 21.37533),(39.89099, 21.36937),(39.89101, 21.3661),(39.89465, 21.364),(39.92418, 21.35725),(39.92838, 21.35433),(39.94394, 21.33915),(39.96711, 21.32785),(39.97437, 21.32734),(39.99523, 21.33055),(40.01271, 21.3293),(40.01345, 21.3276),(40.00731, 21.32689),(39.99189, 21.32817),(39.97264, 21.3251),(39.96216, 21.32725),(39.95825, 21.32598),(39.95783, 21.32734),(39.96017, 21.32834),(39.94652, 21.33514),(39.94578, 21.33237),(39.94438, 21.33259),(39.94454, 21.33563),(39.92448, 21.3545),(39.92007, 21.3563),(39.89586, 21.3615),(39.86239, 21.35659),(39.85241, 21.35319),(39.85183, 21.35189),(39.84187, 21.3498),(39.83475, 21.35001),(39.82272, 21.35322),(39.80957, 21.34986),(39.80645, 21.34645),(39.80654, 21.34104),(39.82207, 21.29116),(39.82732, 21.26685),(39.82657, 21.22894),(39.82468, 21.22761),(39.82364, 21.22857),(39.82459, 21.22961),(39.82535, 21.26649),(39.82016, 21.29057),(39.81723, 21.29965),(39.81585, 21.30012),(39.81652, 21.30158),(39.81475, 21.30815),(39.80378, 21.34492),(39.8023, 21.34648),(39.79042, 21.34584),(39.78385, 21.34687),(39.77227, 21.34595),(39.7601, 21.34279),(39.73947, 21.34141),(39.71051, 21.34288),(39.70233, 21.34041),(39.68839, 21.33943),(39.65964, 21.33189),(39.64627, 21.3344),(39.64733, 21.33592),(39.65598, 21.33404),(39.66095, 21.33402),(39.68789, 21.34136),(39.70198, 21.34238),(39.71031, 21.34487),(39.74208, 21.34353),(39.76109, 21.34495),(39.77363, 21.34845),(39.77446, 21.35039),(39.76342, 21.37977),(39.75978, 21.39951),(39.75655, 21.40491),(39.73768, 21.39607),(39.72646, 21.38795),(39.71285, 21.3969),(39.69867, 21.37979),(39.66651, 21.36156),(39.6662, 21.36338),(39.69742, 21.38135),(39.7112, 21.39803),(39.70333, 21.40335),(39.70227, 21.40556),(39.70273, 21.40892),(39.71038, 21.41608),(39.71004, 21.42139),(39.68758, 21.414),(39.68099, 21.41398),(39.63179, 21.4366),(39.62927917729339, 21.43855995858338),(39.629299942421596, 21.44105336136311),(39.63273, 21.43836),(39.65768, 21.42753),(39.67404, 21.419),(39.6815, 21.41592),(39.68534, 21.41555),(39.7182, 21.42582),(39.72915, 21.4318),(39.72926, 21.43473),(39.72198, 21.45071),(39.72058, 21.46018),(39.72262, 21.46776),(39.72871, 21.47851),(39.73639, 21.48854),(39.73607, 21.50077),(39.73921, 21.50608),(39.74358, 21.50869),(39.77204, 21.51334),(39.78965, 21.51773),(39.78925, 21.52186),(39.77895, 21.53768),(39.77335, 21.55878),(39.77409, 21.55998),(39.77529, 21.55924),(39.78151, 21.53691),(39.79101, 21.52282),(39.79216, 21.51796),(39.79392, 21.51725),(39.793, 21.51609),(39.79416, 21.49641),(39.79816, 21.47216),(39.8004, 21.46856),(39.80363, 21.4669),(39.80549, 21.46717),(39.80785, 21.46483),(39.8079, 21.45844),(39.80961, 21.45125),(39.81407, 21.45956),(39.8189, 21.46404),(39.82568, 21.4678),(39.82961, 21.47351),(39.83079, 21.47799),(39.84122, 21.47849),(39.84401, 21.47583),(39.84423, 21.47113),(39.84321, 21.46813),(39.84421, 21.46059),(39.85356, 21.44251),(39.85688, 21.44231),(39.86433, 21.45155),(39.86762, 21.45385),(39.87655, 21.45623),(39.88419, 21.46034),(39.89153, 21.46165),(39.8939, 21.46349),(39.89668, 21.46326),(39.9075, 21.47496),(39.91921, 21.48088),(39.9355, 21.48404),(39.94435, 21.48781),(39.96608, 21.48881),(39.96569, 21.49663),(39.95135, 21.53005),(39.94352, 21.56004),(39.94384, 21.56417),(39.94803, 21.56766),(39.95376, 21.56964),(39.95497, 21.56891),(39.9538, 21.56747),(39.94686, 21.56478),(39.94534, 21.56123),(39.95324, 21.53069),(39.96782, 21.49652),(39.96808, 21.48868),(39.98958, 21.49423),(40.00615, 21.4944),(40.01566, 21.50406),(40.03305, 21.5127),(40.0475, 21.52172),(40.05278, 21.52274),(40.06051, 21.52124),(40.05971, 21.51952),(40.05217, 21.52052),(40.04866, 21.51978),(40.03052, 21.50875),(40.01631, 21.50181),(40.01014, 21.49459),(40.00619, 21.49215),(39.98995, 21.49206),(39.96952, 21.48658),(39.94485, 21.48571),(39.93748, 21.48246),(39.95107, 21.45666),(39.97348, 21.46578),(39.97479, 21.46523),(39.97424, 21.46392),(39.95217, 21.45495),(39.95444, 21.45202),(39.97071, 21.44272),(39.97127, 21.44141),(39.97007, 21.44065),(39.95381, 21.44976),(39.95007, 21.45407),(39.94121, 21.45146),(39.93089, 21.45021),(39.92173, 21.4449),(39.9164, 21.44366),(39.91152, 21.44104),(39.90446, 21.44019),(39.90416, 21.43717),(39.9067, 21.43268),(39.90657, 21.42875),(39.91121, 21.40898),(39.91566, 21.40698),(39.91675, 21.40517),(39.91627, 21.40045),(39.91407, 21.39734),(39.91949, 21.39132),(39.92673, 21.38963),(39.93267, 21.39089),(39.93373, 21.38995),(39.93279, 21.38889),(39.92676, 21.38762),(39.91905, 21.38931),(39.91251, 21.39595),(39.91173, 21.40041),(39.90949, 21.39663),(39.91172, 21.3928),(39.91031, 21.39269),(39.90798, 21.39493),(39.90668, 21.39219),(39.90882, 21.38887),(39.90768, 21.38803),(39.90505, 21.39084),(39.90417, 21.38841),(39.90553, 21.38668)]); SELECT 'Inner parts of Mecca'; SELECT pointInPolygon((39.840202, 21.451471), [(39.89317, 21.40473),(39.8952, 21.40371),(39.89574, 21.40332),(39.89629, 21.40285),(39.89739, 21.40172),(39.89925, 21.39916),(39.90055, 21.39718),(39.90145, 21.39501),(39.90173, 21.39491),(39.90189, 21.3948),(39.90252, 21.39409),(39.90289, 21.39384),(39.90396, 21.3934),(39.90422, 21.39338),(39.90436, 21.39343),(39.9044, 21.39349),(39.90404, 21.39369),(39.9037, 21.39396),(39.90351, 21.39416),(39.90319, 21.39463),(39.9027, 21.39571),(39.90267, 21.3959),(39.90268, 21.3961),(39.90281, 21.39646),(39.90293, 21.39662),(39.90307, 21.39675),(39.90324, 21.39685),(39.90362, 21.39695),(39.90382, 21.39694),(39.90418, 21.39681),(39.90447, 21.39655),(39.90505, 21.39544),(39.90523, 21.39531),(39.90547, 21.39528),(39.90556, 21.39529),(39.90572, 21.39537),(39.90592, 21.39552),(39.90662, 21.39645),(39.906, 21.39651),(39.9052, 21.39665),(39.90396, 21.39711),(39.90363, 21.39731),(39.9035, 21.39746),(39.90341, 21.39763),(39.90332, 21.39801),(39.90313, 21.39836),(39.90309, 21.39856),(39.90308, 21.39875),(39.90312, 21.39895),(39.90329, 21.39929),(39.90343, 21.39944),(39.90376, 21.39963),(39.90415, 21.39968),(39.90743, 21.39882),(39.90786, 21.39882),(39.90822, 21.39894),(39.9085, 21.39911),(39.90876, 21.39934),(39.9095, 21.40036),(39.90976, 21.40084),(39.90998, 21.40146),(39.91019, 21.40247),(39.90991, 21.40276),(39.90931, 21.40349),(39.90896, 21.40373),(39.90674, 21.40608),(39.90348, 21.40934),(39.9024, 21.41059),(39.90214, 21.4108),(39.90157, 21.41114),(39.90101, 21.41142),(39.90053, 21.41156),(39.90001, 21.41165),(39.89952, 21.41166),(39.89816, 21.41146),(39.89719, 21.4114),(39.8962, 21.41124),(39.89535, 21.41126),(39.89484, 21.41133),(39.89435, 21.41148),(39.89405, 21.41163),(39.89166, 21.4077),(39.89109, 21.40671),(39.89172, 21.4064),(39.89219, 21.40606),(39.89252, 21.40568),(39.89317, 21.40473)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.89411, 21.37812),(39.89305, 21.37935),(39.89229, 21.38007),(39.89129, 21.38085),(39.88637, 21.38398),(39.88501, 21.38505),(39.88428, 21.38581),(39.87665, 21.38344),(39.87669, 21.38209),(39.87721, 21.38049),(39.87864, 21.37771),(39.8796, 21.37629),(39.88162, 21.37426),(39.88637, 21.36994),(39.88657, 21.36988),(39.88706, 21.37),(39.88876, 21.37081),(39.88896, 21.37101),(39.89013, 21.37233),(39.89156, 21.37426),(39.89332, 21.37678),(39.89411, 21.37812)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.87603, 21.38534),(39.88308, 21.38753),(39.88293, 21.38778),(39.88223, 21.38927),(39.88216, 21.3895),(39.88185, 21.39103),(39.88178, 21.39207),(39.88187, 21.39333),(39.8821, 21.39461),(39.88234, 21.39542),(39.88273, 21.39643),(39.88352, 21.39787),(39.87797, 21.4004),(39.87743, 21.40069),(39.87678, 21.4011),(39.87442, 21.40281),(39.87359, 21.40173),(39.87299, 21.40077),(39.87076, 21.39685),(39.87013, 21.39591),(39.8696, 21.39535),(39.8714, 21.39394),(39.87198, 21.39344),(39.87254, 21.39286),(39.87317, 21.39206),(39.87356, 21.39139),(39.87399, 21.39041),(39.87552, 21.3857),(39.87573, 21.38561),(39.87603, 21.38534)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.8728, 21.40398),(39.86889, 21.40686),(39.86188, 21.41407),(39.8567, 21.41973),(39.85571, 21.42095),(39.85474, 21.4207),(39.85357, 21.42055),(39.8571, 21.4159),(39.8598, 21.4115),(39.86247, 21.40702),(39.86312, 21.40575),(39.86566, 21.39964),(39.86637, 21.39829),(39.86702, 21.39748),(39.86801, 21.39659),(39.86852, 21.39711),(39.86908, 21.39794),(39.87126, 21.40177),(39.87192, 21.40283),(39.8728, 21.40398)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.85537, 21.42292),(39.85579, 21.42569),(39.85581, 21.42611),(39.85559, 21.4266),(39.85335, 21.42856),(39.85159, 21.43039),(39.85001, 21.43114),(39.84921, 21.43092),(39.84693, 21.42992),(39.84558, 21.42953),(39.84158, 21.42902),(39.83488, 21.42846),(39.83661, 21.42511),(39.8371, 21.42353),(39.84406, 21.42267),(39.84527, 21.4226),(39.85309, 21.42252),(39.85438, 21.42267),(39.85537, 21.42292)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.84628, 21.43181),(39.84808, 21.43261),(39.84783, 21.43302),(39.84618, 21.43694),(39.84577, 21.43776),(39.84437, 21.43886),(39.84394, 21.43902),(39.84241, 21.43929),(39.84185, 21.43935),(39.8414, 21.43937),(39.83966, 21.43925),(39.83928, 21.4393),(39.83876, 21.43957),(39.83857, 21.43971),(39.8382, 21.44005),(39.83781, 21.44051),(39.83637, 21.44071),(39.83611, 21.4407),(39.83599, 21.44066),(39.83589, 21.44058),(39.83584, 21.44048),(39.83575, 21.43989),(39.83567, 21.43963),(39.83545, 21.43919),(39.83508, 21.4388),(39.83491, 21.4387),(39.83472, 21.43864),(39.83453, 21.43861),(39.83433, 21.43862),(39.83409, 21.4387),(39.83396, 21.43862),(39.83377, 21.43814),(39.83364, 21.43792),(39.83319, 21.43732),(39.83279, 21.43689),(39.83253, 21.43633),(39.8323, 21.43541),(39.83224, 21.43523),(39.83214, 21.43506),(39.83189, 21.43474),(39.83144, 21.43432),(39.83111, 21.43413),(39.8305, 21.43392),(39.82999, 21.43269),(39.83002, 21.43255),(39.82998, 21.43209),(39.83109, 21.43171),(39.8318, 21.43138),(39.83234, 21.43109),(39.83301, 21.43064),(39.83338, 21.43032),(39.83365, 21.43037),(39.84139, 21.43101),(39.8432, 21.43126),(39.84419, 21.43134),(39.84517, 21.43149),(39.84628, 21.43181)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.83035, 21.42986),(39.8304, 21.42866),(39.83018, 21.42818),(39.83125, 21.42753),(39.83199, 21.42688),(39.83261, 21.42604),(39.83342, 21.42459),(39.83365, 21.42395),(39.83444, 21.42391),(39.83496, 21.4238),(39.83479, 21.42429),(39.83281, 21.42802),(39.83184, 21.42901),(39.83126, 21.4294),(39.83035, 21.42986)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.82819, 21.42907),(39.82814, 21.4304),(39.82488, 21.43059),(39.82445, 21.43066),(39.82337, 21.43101),(39.82191, 21.43183),(39.82049, 21.43295),(39.81955, 21.43393),(39.81912, 21.43421),(39.81892, 21.4343),(39.81862, 21.43437),(39.81829, 21.4344),(39.81774, 21.43434),(39.81632, 21.43374),(39.81706, 21.43236),(39.81724, 21.4319),(39.81748, 21.43143),(39.81812, 21.43039),(39.81845, 21.42992),(39.81919, 21.42907),(39.81933, 21.42884),(39.81964, 21.4281),(39.82006, 21.42826),(39.82103, 21.4285),(39.82135, 21.42873),(39.82154, 21.42879),(39.82284, 21.42907),(39.82412, 21.42923),(39.8253, 21.42933),(39.82659, 21.42933),(39.8273, 21.42926),(39.82819, 21.42907)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.82779, 21.43244),(39.82826, 21.43377),(39.82849, 21.43431),(39.82776, 21.4346),(39.82626, 21.43537),(39.82591, 21.43559),(39.8245, 21.43597),(39.82298, 21.4366),(39.822, 21.43711),(39.82165, 21.43723),(39.82055, 21.43753),(39.81734, 21.43816),(39.81631, 21.43843),(39.81333, 21.43905),(39.81312, 21.43912),(39.81267, 21.43934),(39.81245, 21.4395),(39.81128, 21.4405),(39.81094, 21.44064),(39.81165, 21.43717),(39.81218, 21.43422),(39.81403, 21.43504),(39.81432, 21.4353),(39.8145, 21.43538),(39.81489, 21.43543),(39.81499, 21.43547),(39.81655, 21.4363),(39.81714, 21.4365),(39.81776, 21.43662),(39.81815, 21.43662),(39.81834, 21.43656),(39.81861, 21.43638),(39.81889, 21.43636),(39.81948, 21.43622),(39.82014, 21.43593),(39.82092, 21.4354),(39.82179, 21.43448),(39.82309, 21.43346),(39.82425, 21.43281),(39.82484, 21.43263),(39.82515, 21.43258),(39.82779, 21.43244)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.8207, 21.42636),(39.82125, 21.42508),(39.82206, 21.42403),(39.82275, 21.42279),(39.82346, 21.42235),(39.82418, 21.42178),(39.82499, 21.42142),(39.8265, 21.42122),(39.83136, 21.42199),(39.83197, 21.42264),(39.83163, 21.4237),(39.8309, 21.425),(39.83051, 21.42553),(39.83031, 21.42574),(39.82948, 21.42628),(39.828, 21.42705),(39.82644, 21.42733),(39.8243, 21.42724),(39.82267, 21.42698),(39.82214, 21.42669),(39.8207, 21.42636)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.82102, 21.42106),(39.82062, 21.42128),(39.82017, 21.42162),(39.8194, 21.42239),(39.81905, 21.4228),(39.81802, 21.42299),(39.8179, 21.42265),(39.81779, 21.42189),(39.8176, 21.42155),(39.81729, 21.42131),(39.81711, 21.42124),(39.81692, 21.4212),(39.81653, 21.42125),(39.81619, 21.42144),(39.81595, 21.42175),(39.81588, 21.42193),(39.81584, 21.42212),(39.81585, 21.42232),(39.81597, 21.42319),(39.81504, 21.42328),(39.81423, 21.42329),(39.80999, 21.42266),(39.80755, 21.42223),(39.80737, 21.42203),(39.80706, 21.42179),(39.80695, 21.42166),(39.80685, 21.42142),(39.80686, 21.42123),(39.80695, 21.42105),(39.80755, 21.42041),(39.80768, 21.42022),(39.80789, 21.41962),(39.80793, 21.41935),(39.80801, 21.41519),(39.80809, 21.41439),(39.80827, 21.41351),(39.80867, 21.41233),(39.80881, 21.41233),(39.80924, 21.41409),(39.80931, 21.41428),(39.80941, 21.41444),(39.80969, 21.41471),(39.81006, 21.41484),(39.81026, 21.41485),(39.81064, 21.41475),(39.81095, 21.41452),(39.81107, 21.41437),(39.8112, 21.414),(39.81121, 21.4138),(39.81118, 21.41361),(39.81088, 21.41239),(39.81311, 21.41248),(39.81908, 21.41249),(39.8197, 21.41244),(39.82006, 21.41251),(39.8204, 21.41251),(39.8209, 21.41367),(39.82144, 21.41481),(39.82169, 21.41562),(39.82182, 21.4166),(39.82176, 21.41785),(39.81945, 21.41827),(39.81851, 21.41855),(39.8182, 21.41879),(39.81809, 21.41895),(39.81801, 21.41913),(39.81796, 21.41951),(39.81807, 21.41989),(39.81831, 21.4202),(39.81865, 21.42039),(39.81884, 21.42043),(39.81903, 21.42044),(39.81994, 21.42021),(39.82154, 21.41992),(39.82154, 21.41997),(39.82102, 21.42106)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.81069, 21.41022),(39.81115, 21.40581),(39.8114, 21.4056),(39.81159, 21.40525),(39.81163, 21.40487),(39.81157, 21.40426),(39.81209, 21.40103),(39.81211, 21.39966),(39.81193, 21.39818),(39.81097, 21.39505),(39.8115, 21.39475),(39.81252, 21.39399),(39.8134, 21.39321),(39.81416, 21.39245),(39.81607, 21.38983),(39.81662, 21.38928),(39.81728, 21.38874),(39.81819, 21.38814),(39.81928, 21.38768),(39.82014, 21.38742),(39.82059, 21.38733),(39.82164, 21.38725),(39.82287, 21.38723),(39.82462, 21.3871),(39.82443, 21.38782),(39.82441, 21.38855),(39.82457, 21.39047),(39.82464, 21.39192),(39.82479, 21.3973),(39.82485, 21.3976),(39.82514, 21.39842),(39.82525, 21.39865),(39.8258, 21.39947),(39.82635, 21.4),(39.82679, 21.40031),(39.82736, 21.40062),(39.82928, 21.40137),(39.82948, 21.40151),(39.82914, 21.40441),(39.82897, 21.40551),(39.8282, 21.40889),(39.82795, 21.41023),(39.82696, 21.41),(39.82658, 21.40996),(39.82664, 21.40825),(39.82658, 21.40787),(39.82649, 21.40769),(39.82622, 21.40741),(39.82605, 21.40731),(39.82567, 21.40722),(39.82529, 21.40728),(39.82511, 21.40737),(39.82483, 21.40764),(39.82473, 21.40781),(39.82464, 21.40819),(39.82458, 21.41008),(39.8235, 21.41017),(39.82153, 21.41019),(39.82001, 21.40827),(39.81977, 21.40778),(39.81909, 21.40579),(39.81879, 21.40505),(39.81827, 21.40417),(39.81699, 21.40224),(39.8159, 21.4008),(39.81463, 21.39957),(39.8141, 21.39915),(39.81392, 21.39908),(39.81353, 21.39903),(39.81316, 21.39914),(39.81299, 21.39925),(39.81274, 21.39955),(39.81267, 21.39973),(39.81262, 21.40012),(39.81273, 21.40049),(39.81284, 21.40066),(39.81298, 21.4008),(39.81326, 21.40103),(39.81445, 21.40218),(39.81537, 21.40342),(39.81656, 21.40521),(39.81696, 21.40588),(39.81722, 21.40652),(39.81794, 21.4086),(39.81826, 21.40925),(39.81898, 21.41019),(39.81328, 21.41012),(39.81218, 21.41014),(39.81134, 21.41021),(39.81069, 21.41022)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.80999, 21.39018),(39.80983, 21.38939),(39.80816, 21.38343),(39.80609, 21.3751),(39.80867, 21.37472),(39.80969, 21.37875),(39.81147, 21.38151),(39.81202, 21.38214),(39.81339, 21.38345),(39.81628, 21.38612),(39.81677, 21.38646),(39.81575, 21.38713),(39.81478, 21.38799),(39.81395, 21.38898),(39.81265, 21.39076),(39.81228, 21.39111),(39.8121, 21.3912),(39.81181, 21.39121),(39.81033, 21.39058),(39.80999, 21.39018)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.81909, 21.38545),(39.8181, 21.38496),(39.81759, 21.3846),(39.81476, 21.382),(39.81349, 21.38079),(39.81311, 21.38035),(39.81153, 21.37795),(39.81145, 21.37773),(39.81046, 21.37363),(39.81038, 21.37341),(39.81025, 21.37321),(39.80995, 21.37288),(39.80962, 21.3727),(39.80925, 21.37265),(39.80899, 21.37265),(39.80561, 21.37315),(39.80517, 21.37139),(39.80492, 21.37068),(39.80504, 21.37048),(39.8051, 21.37031),(39.80521, 21.36975),(39.8052, 21.36955),(39.80506, 21.36919),(39.80494, 21.36903),(39.80441, 21.36603),(39.80411, 21.36492),(39.80356, 21.36191),(39.80349, 21.36116),(39.80345, 21.35965),(39.80349, 21.35894),(39.80411, 21.35504),(39.80433, 21.35476),(39.80482, 21.35383),(39.80553, 21.35304),(39.8063, 21.35252),(39.80724, 21.35222),(39.80825, 21.35217),(39.80932, 21.35231),(39.81637, 21.35445),(39.81856, 21.35504),(39.82046, 21.35546),(39.82287, 21.35558),(39.82421, 21.35536),(39.82613, 21.35492),(39.83433, 21.35261),(39.83656, 21.35216),(39.83834, 21.35188),(39.83936, 21.35182),(39.84169, 21.3521),(39.84381, 21.35252),(39.84777, 21.35391),(39.84887, 21.35434),(39.84773, 21.35594),(39.84744, 21.35628),(39.84524, 21.35927),(39.83253, 21.37661),(39.8295, 21.38077),(39.82857, 21.38214),(39.82833, 21.38244),(39.82791, 21.38279),(39.82744, 21.38324),(39.82631, 21.3845),(39.82551, 21.38473),(39.82438, 21.38494),(39.82041, 21.38516),(39.81948, 21.38534),(39.81909, 21.38545)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.80215, 21.35462),(39.8015, 21.35868),(39.80145, 21.35959),(39.80149, 21.36132),(39.80157, 21.36215),(39.80215, 21.36532),(39.80244, 21.36642),(39.80274, 21.36813),(39.79915, 21.3652),(39.79798, 21.36406),(39.79715, 21.36315),(39.79586, 21.36153),(39.79496, 21.36019),(39.79359, 21.35827),(39.79297, 21.35753),(39.79128, 21.35568),(39.79053, 21.35503),(39.78825, 21.35321),(39.78735, 21.35255),(39.78586, 21.35172),(39.78394, 21.35084),(39.78351, 21.35055),(39.78399, 21.34968),(39.78415, 21.34951),(39.78515, 21.34915),(39.78558, 21.34906),(39.78718, 21.34859),(39.78801, 21.34846),(39.78885, 21.34839),(39.78982, 21.34822),(39.79322, 21.3482),(39.79564, 21.34849),(39.79835, 21.34916),(39.79957, 21.34986),(39.80019, 21.35029),(39.80071, 21.35078),(39.80117, 21.35137),(39.80155, 21.35202),(39.80187, 21.35285),(39.80206, 21.35367),(39.80209, 21.35432),(39.80215, 21.35462)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.779, 21.35047),(39.78, 21.35119),(39.78099, 21.35171),(39.78492, 21.35348),(39.78632, 21.35426),(39.78702, 21.35478),(39.78924, 21.35656),(39.78993, 21.35716),(39.79145, 21.35883),(39.79203, 21.35952),(39.79333, 21.36134),(39.79427, 21.36274),(39.79565, 21.36447),(39.79656, 21.36548),(39.79779, 21.36667),(39.80229, 21.37034),(39.80218, 21.37053),(39.80167, 21.37113),(39.80041, 21.37248),(39.79975, 21.3731),(39.79894, 21.37373),(39.79827, 21.37413),(39.79698, 21.37475),(39.79643, 21.37496),(39.79558, 21.37521),(39.79529, 21.37422),(39.79478, 21.3732),(39.79409, 21.37214),(39.79351, 21.37149),(39.793, 21.37101),(39.79201, 21.37035),(39.79122, 21.36997),(39.79048, 21.36972),(39.7891, 21.36947),(39.7887, 21.36944),(39.78832, 21.36949),(39.78814, 21.36957),(39.78784, 21.36982),(39.78767, 21.37017),(39.78763, 21.37037),(39.78718, 21.375),(39.78467, 21.37478),(39.78431, 21.37488),(39.78402, 21.37511),(39.78391, 21.37526),(39.78378, 21.3756),(39.78245, 21.38285),(39.78231, 21.38317),(39.78211, 21.38348),(39.77952, 21.38561),(39.77935, 21.38579),(39.77889, 21.38643),(39.77608, 21.391),(39.77578, 21.39181),(39.77555, 21.39291),(39.77492, 21.39694),(39.76541, 21.3964),(39.76273, 21.39622),(39.76342, 21.3915),(39.76482, 21.38563),(39.76512, 21.38401),(39.76545, 21.38126),(39.76562, 21.38041),(39.76602, 21.37916),(39.76859, 21.37278),(39.76972, 21.36938),(39.77036, 21.36686),(39.77091, 21.36513),(39.77314, 21.35887),(39.77478, 21.35448),(39.77517, 21.35368),(39.77568, 21.35293),(39.77631, 21.35217),(39.77681, 21.35168),(39.77761, 21.3511),(39.77831, 21.35073),(39.779, 21.35047)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.76244, 21.39846),(39.76255, 21.39821),(39.76528, 21.3984),(39.77595, 21.399),(39.77653, 21.39906),(39.78224, 21.39999),(39.78304, 21.40016),(39.78406, 21.40081),(39.78349, 21.40178),(39.78316, 21.40249),(39.78263, 21.40405),(39.78258, 21.40444),(39.78267, 21.40478),(39.78245, 21.40582),(39.78226, 21.407),(39.78167, 21.40978),(39.78069, 21.41362),(39.77994, 21.41671),(39.77776, 21.41693),(39.77732, 21.41693),(39.7769, 21.41689),(39.77624, 21.41674),(39.77593, 21.41661),(39.773, 21.41486),(39.77164, 21.41423),(39.76892, 21.41344),(39.76744, 21.41319),(39.76656, 21.41312),(39.76083, 21.41289),(39.7596, 21.41288),(39.75858, 21.41283),(39.756, 21.4126),(39.75567, 21.41255),(39.75472, 21.41221),(39.75448, 21.41203),(39.7544, 21.41191),(39.75435, 21.41171),(39.75437, 21.41133),(39.75446, 21.41111),(39.75488, 21.41038),(39.75712, 21.40804),(39.75802, 21.40692),(39.75933, 21.40518),(39.7607, 21.40297),(39.76127, 21.40197),(39.76186, 21.40076),(39.76209, 21.40008),(39.76228, 21.39934),(39.76244, 21.39846)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.78571, 21.4023),(39.78613, 21.40226),(39.78735, 21.40325),(39.78684, 21.40459),(39.78685, 21.40595),(39.78943, 21.41476),(39.79045, 21.41882),(39.79071, 21.41927),(39.79203, 21.42035),(39.7921, 21.42071),(39.79178, 21.42117),(39.79074, 21.42159),(39.7902, 21.42203),(39.78993, 21.42249),(39.78974, 21.42357),(39.78774, 21.42363),(39.78577, 21.42328),(39.78521, 21.42357),(39.78486, 21.42441),(39.78493, 21.42495),(39.78537, 21.42543),(39.78674, 21.42583),(39.7884, 21.42607),(39.78817, 21.42683),(39.7881, 21.428),(39.78914, 21.43215),(39.7889, 21.43869),(39.78737, 21.43877),(39.78262, 21.43967),(39.78006, 21.43961),(39.77771, 21.43792),(39.77742, 21.43637),(39.77739, 21.43356),(39.77763, 21.4322),(39.77929, 21.42676),(39.78007, 21.42488),(39.78048, 21.42431),(39.78176, 21.42346),(39.78296, 21.42427),(39.78354, 21.42436),(39.78438, 21.42393),(39.78469, 21.42344),(39.78459, 21.42268),(39.78345, 21.42155),(39.78336, 21.41933),(39.78243, 21.41679),(39.78242, 21.41498),(39.78361, 21.41026),(39.78458, 21.40542),(39.78489, 21.40468),(39.7849, 21.40411),(39.78571, 21.4023)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.77052, 21.43821),(39.76961, 21.43812),(39.76832, 21.4382),(39.76767, 21.43829),(39.76811, 21.43749),(39.76863, 21.4368),(39.76943, 21.43601),(39.77156, 21.43438),(39.77239, 21.43353),(39.77295, 21.43277),(39.77411, 21.43069),(39.7749, 21.42952),(39.77558, 21.42859),(39.77673, 21.42736),(39.77594, 21.42991),(39.77575, 21.4307),(39.77542, 21.43177),(39.77522, 21.43286),(39.77508, 21.43432),(39.77509, 21.43554),(39.77488, 21.43577),(39.77474, 21.43605),(39.77467, 21.43622),(39.77444, 21.43711),(39.77419, 21.43754),(39.77404, 21.43771),(39.77377, 21.43791),(39.77352, 21.43805),(39.77287, 21.43824),(39.77085, 21.43816),(39.77052, 21.43821)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.77683, 21.42438),(39.77605, 21.425),(39.77496, 21.42603),(39.7739, 21.42729),(39.77313, 21.42836),(39.77185, 21.4304),(39.77114, 21.43164),(39.77043, 21.4325),(39.76964, 21.4332),(39.76827, 21.43424),(39.76732, 21.43509),(39.76667, 21.43583),(39.76622, 21.43647),(39.76497, 21.43865),(39.76336, 21.43887),(39.76248, 21.43875),(39.76215, 21.43863),(39.75945, 21.4361),(39.75799, 21.43499),(39.75779, 21.43487),(39.75661, 21.43435),(39.75139, 21.43268),(39.75032, 21.43203),(39.74784, 21.42997),(39.74759, 21.42982),(39.74683, 21.4295),(39.74612, 21.42931),(39.74467, 21.42912),(39.74448, 21.42896),(39.7443, 21.42888),(39.74194, 21.4285),(39.74145, 21.42827),(39.74102, 21.42776),(39.7407, 21.42681),(39.74058, 21.42589),(39.74083, 21.42453),(39.74184, 21.4225),(39.74313, 21.42067),(39.74414, 21.41962),(39.74463, 21.41918),(39.74722, 21.41719),(39.74816, 21.41667),(39.75131, 21.41514),(39.7528, 21.4143),(39.7546, 21.41468),(39.75722, 21.41503),(39.7665, 21.41541),(39.76768, 21.41554),(39.7691, 21.41584),(39.77057, 21.41631),(39.77193, 21.41692),(39.77339, 21.41779),(39.7742, 21.41838),(39.77635, 21.41978),(39.77611, 21.41999),(39.77594, 21.42034),(39.77589, 21.42086),(39.77591, 21.42111),(39.77604, 21.42177),(39.77613, 21.42203),(39.77649, 21.42272),(39.77693, 21.42331),(39.77708, 21.42367),(39.77707, 21.42393),(39.77683, 21.42438)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.73364, 21.42933),(39.73324, 21.42934),(39.72777, 21.42885),(39.72661, 21.42861),(39.72586, 21.42833),(39.71975, 21.42438),(39.71903, 21.424),(39.71198, 21.42198),(39.71237, 21.41843),(39.71241, 21.4169),(39.71237, 21.41582),(39.71224, 21.4153),(39.71207, 21.41499),(39.71028, 21.41276),(39.70957, 21.412),(39.70914, 21.4116),(39.70794, 21.41071),(39.70769, 21.41057),(39.70642, 21.41012),(39.70575, 21.40943),(39.70451, 21.40799),(39.70442, 21.40779),(39.70426, 21.40579),(39.70437, 21.4053),(39.70468, 21.40483),(39.70531, 21.40433),(39.71243, 21.39961),(39.7206, 21.41007),(39.72131, 21.41077),(39.72202, 21.41134),(39.72276, 21.41188),(39.72424, 21.41269),(39.72578, 21.41323),(39.72663, 21.41346),(39.72741, 21.41357),(39.72886, 21.41366),(39.73014, 21.4136),(39.7346, 21.41323),(39.73624, 21.41339),(39.73895, 21.41313),(39.74098, 21.41303),(39.74174, 21.41319),(39.74348, 21.41408),(39.74416, 21.41454),(39.74445, 21.41478),(39.74463, 21.41504),(39.74467, 21.41523),(39.74465, 21.41565),(39.74447, 21.41608),(39.74416, 21.41649),(39.74239, 21.41799),(39.74121, 21.41922),(39.74065, 21.41993),(39.73973, 21.42137),(39.73894, 21.42307),(39.7385, 21.42385),(39.73799, 21.42463),(39.73672, 21.42624),(39.73364, 21.42933)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.71409, 21.39848),(39.7259, 21.39043),(39.72856, 21.39237),(39.72897, 21.39258),(39.72946, 21.39268),(39.72985, 21.39281),(39.73553, 21.39698),(39.73563, 21.39707),(39.73609, 21.39767),(39.73676, 21.39815),(39.74249, 21.40142),(39.743, 21.40162),(39.74336, 21.40168),(39.7445, 21.40156),(39.74465, 21.40162),(39.74535, 21.40201),(39.74586, 21.40221),(39.74731, 21.4031),(39.75127, 21.4053),(39.75207, 21.40561),(39.75415, 21.40664),(39.75489, 21.40686),(39.75501, 21.40693),(39.75368, 21.40835),(39.75296, 21.4087),(39.75071, 21.40918),(39.74696, 21.41005),(39.74601, 21.41024),(39.74227, 21.41003),(39.74019, 21.41017),(39.73721, 21.41052),(39.73608, 21.41079),(39.73591, 21.41089),(39.73567, 21.41113),(39.72999, 21.4116),(39.72892, 21.41166),(39.72757, 21.41157),(39.72697, 21.41149),(39.72641, 21.41133),(39.7251, 21.41088),(39.72389, 21.41023),(39.72326, 21.40977),(39.72261, 21.40924),(39.72205, 21.40869),(39.71409, 21.39848)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.7457, 21.43127),(39.74624, 21.43142),(39.74667, 21.4316),(39.7491, 21.43362),(39.75045, 21.43445),(39.75067, 21.43455),(39.75586, 21.43621),(39.75688, 21.43666),(39.75811, 21.43759),(39.7606, 21.43995),(39.76102, 21.44029),(39.76115, 21.44038),(39.76188, 21.44066),(39.7621, 21.44072),(39.76323, 21.44087),(39.76349, 21.44087),(39.76572, 21.44057),(39.76592, 21.44058),(39.76625, 21.4405),(39.76848, 21.4402),(39.76965, 21.44012),(39.77019, 21.44018),(39.77471, 21.44129),(39.77662, 21.44142),(39.77705, 21.44257),(39.77753, 21.44343),(39.77792, 21.444),(39.77863, 21.44489),(39.77936, 21.44567),(39.7797, 21.44597),(39.7803, 21.44638),(39.78107, 21.44684),(39.7823, 21.4475),(39.78364, 21.44835),(39.78622, 21.45028),(39.78775, 21.45163),(39.78853, 21.45236),(39.79426, 21.45875),(39.79488, 21.45938),(39.79706, 21.46135),(39.79869, 21.4625),(39.80185, 21.46439),(39.80201, 21.46461),(39.80207, 21.46475),(39.80206, 21.46486),(39.80187, 21.46508),(39.79992, 21.4663),(39.79979, 21.46644),(39.79968, 21.46663),(39.79914, 21.467),(39.79814, 21.46788),(39.79751, 21.46867),(39.79695, 21.46959),(39.79658, 21.47045),(39.79623, 21.47164),(39.7932, 21.48709),(39.79286, 21.48954),(39.79217, 21.49622),(39.79191, 21.49914),(39.79191, 21.50009),(39.79167, 21.502),(39.79039, 21.5155),(39.7749, 21.51163),(39.77208, 21.51099),(39.7654, 21.51023),(39.74443, 21.5064),(39.74326, 21.50603),(39.74213, 21.50544),(39.74139, 21.50491),(39.74068, 21.50419),(39.7399, 21.50329),(39.73911, 21.50203),(39.73868, 21.50103),(39.73842, 21.49995),(39.73826, 21.49836),(39.73919, 21.49113),(39.73916, 21.48952),(39.73895, 21.48839),(39.73888, 21.48816),(39.73839, 21.4871),(39.73787, 21.4862),(39.73693, 21.48477),(39.73567, 21.48348),(39.73286, 21.48021),(39.73059, 21.47715),(39.72508, 21.46749),(39.72433, 21.46585),(39.72302, 21.46073),(39.72287, 21.45961),(39.72278, 21.45841),(39.72284, 21.45738),(39.72295, 21.45633),(39.72389, 21.45255),(39.72481, 21.45005),(39.73039, 21.43827),(39.7314, 21.43644),(39.73183, 21.43594),(39.73214, 21.43568),(39.73369, 21.43469),(39.73481, 21.43411),(39.73548, 21.43368),(39.73637, 21.433),(39.73709, 21.43238),(39.73785, 21.43181),(39.73821, 21.43158),(39.73856, 21.43144),(39.73898, 21.43133),(39.73951, 21.43126),(39.74295, 21.43112),(39.7457, 21.43127)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.7791, 21.44156),(39.77939, 21.44157),(39.78003, 21.44187),(39.78046, 21.442),(39.78123, 21.44207),(39.78208, 21.44195),(39.78301, 21.44163),(39.78764, 21.44075),(39.78822, 21.44077),(39.78917, 21.44068),(39.79022, 21.44082),(39.7976, 21.44116),(39.7978, 21.44115),(39.79799, 21.4411),(39.79933, 21.44116),(39.79964, 21.44126),(39.80102, 21.44147),(39.80255, 21.44181),(39.80419, 21.4421),(39.80647, 21.44221),(39.80682, 21.44216),(39.80854, 21.4424),(39.8081, 21.44453),(39.80796, 21.44538),(39.8078, 21.44743),(39.80767, 21.44769),(39.80763, 21.44789),(39.80767, 21.44828),(39.80774, 21.44843),(39.80761, 21.45109),(39.80736, 21.4538),(39.80599, 21.45785),(39.8059, 21.45822),(39.80589, 21.45902),(39.80592, 21.45926),(39.80609, 21.45985),(39.80634, 21.46041),(39.80595, 21.46096),(39.8057, 21.46124),(39.8038, 21.46239),(39.80349, 21.46246),(39.80322, 21.46244),(39.79996, 21.46056),(39.79871, 21.45967),(39.79745, 21.45865),(39.79647, 21.45779),(39.79588, 21.4572),(39.78985, 21.45056),(39.78754, 21.44849),(39.7862, 21.44745),(39.78483, 21.44646),(39.78342, 21.44554),(39.78147, 21.44446),(39.78087, 21.44401),(39.77967, 21.44266),(39.7791, 21.44156)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.93436, 21.4816),(39.93241, 21.48133),(39.92917, 21.48071),(39.92795, 21.48063),(39.92391, 21.48004),(39.92213, 21.47963),(39.92017, 21.47891),(39.91245, 21.47545),(39.91099, 21.47469),(39.9098, 21.47394),(39.90843, 21.47286),(39.90708, 21.4716),(39.90445, 21.46837),(39.90205, 21.46552),(39.90002, 21.46344),(39.89957, 21.4628),(39.8993, 21.46223),(39.89803, 21.45836),(39.898, 21.45747),(39.89804, 21.45702),(39.90192, 21.44447),(39.9022, 21.44387),(39.90238, 21.44363),(39.90272, 21.44337),(39.90406, 21.44277),(39.90471, 21.44266),(39.90601, 21.44278),(39.90621, 21.44277),(39.90655, 21.44267),(39.90946, 21.44274),(39.91033, 21.44282),(39.91091, 21.44294),(39.91136, 21.44311),(39.912, 21.44341),(39.91274, 21.44388),(39.91397, 21.44474),(39.9147, 21.44511),(39.91571, 21.44553),(39.91731, 21.44594),(39.9197, 21.44635),(39.92104, 21.44677),(39.92156, 21.44697),(39.92234, 21.44739),(39.92405, 21.44847),(39.92538, 21.44954),(39.92675, 21.45043),(39.92962, 21.4519),(39.93035, 21.45214),(39.93227, 21.45265),(39.93426, 21.45311),(39.93484, 21.45321),(39.93669, 21.45325),(39.9378, 21.4532),(39.93928, 21.45321),(39.94077, 21.45341),(39.94229, 21.45381),(39.94572, 21.45459),(39.94649, 21.45483),(39.94901, 21.45579),(39.93559, 21.4801),(39.93508, 21.48113),(39.93479, 21.48161),(39.93436, 21.4816)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.9044, 21.42901),(39.90248, 21.42675),(39.90195, 21.4262),(39.90111, 21.42499),(39.90059, 21.42408),(39.90038, 21.42359),(39.89991, 21.42209),(39.89946, 21.42086),(39.89889, 21.41972),(39.89911, 21.41951),(39.89926, 21.41931),(39.89948, 21.41892),(39.89961, 21.41855),(39.89964, 21.41816),(39.89957, 21.41767),(39.89948, 21.41741),(39.89925, 21.417),(39.89899, 21.41667),(39.89887, 21.41624),(39.89879, 21.41607),(39.89867, 21.41591),(39.89852, 21.41578),(39.89835, 21.41569),(39.89816, 21.41562),(39.89777, 21.41561),(39.89741, 21.41575),(39.89725, 21.41587),(39.89712, 21.41602),(39.89703, 21.41619),(39.89696, 21.41645),(39.89537, 21.41379),(39.89576, 21.4136),(39.89645, 21.41343),(39.89707, 21.41339),(39.89798, 21.41346),(39.89948, 21.41366),(39.90026, 21.41364),(39.90105, 21.4135),(39.90182, 21.41325),(39.90257, 21.41288),(39.90323, 21.41248),(39.90385, 21.41197),(39.90475, 21.41093),(39.90476, 21.41108),(39.90482, 21.41126),(39.90492, 21.41143),(39.9052, 21.4117),(39.90538, 21.41179),(39.90589, 21.4119),(39.90633, 21.41211),(39.90744, 21.4129),(39.90772, 21.41318),(39.9078, 21.4133),(39.90791, 21.41361),(39.90793, 21.41377),(39.9079, 21.41405),(39.90795, 21.41444),(39.90814, 21.41478),(39.90724, 21.41976),(39.90704, 21.42054),(39.90545, 21.42577),(39.9044, 21.42901)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.8047, 21.42149),(39.80352, 21.42129),(39.80246, 21.42135),(39.80157, 21.42154),(39.79665, 21.42328),(39.79613, 21.42337),(39.79422, 21.4236),(39.79363, 21.42362),(39.79194, 21.42358),(39.79197, 21.42339),(39.79246, 21.42319),(39.79288, 21.42298),(39.79309, 21.42284),(39.79357, 21.42239),(39.79395, 21.4219),(39.79415, 21.42135),(39.7942, 21.42109),(39.79422, 21.42034),(39.79408, 21.41965),(39.7938, 21.41913),(39.79365, 21.41892),(39.79326, 21.41852),(39.79252, 21.41799),(39.79244, 21.41749),(39.79228, 21.41685),(39.78902, 21.4057),(39.78897, 21.40545),(39.78905, 21.40469),(39.78917, 21.40441),(39.7896, 21.40383),(39.7899, 21.40361),(39.79015, 21.40348),(39.79091, 21.4033),(39.79119, 21.40331),(39.79188, 21.40345),(39.79208, 21.40353),(39.7923, 21.40367),(39.79685, 21.4084),(39.79791, 21.40973),(39.79986, 21.41254),(39.80035, 21.41301),(39.80145, 21.41381),(39.80223, 21.41458),(39.80241, 21.41472),(39.80482, 21.41733),(39.80568, 21.41832),(39.80568, 21.41932),(39.80526, 21.41977),(39.8051, 21.41999),(39.80494, 21.4203),(39.8047, 21.42107),(39.8047, 21.42149)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.79951, 21.40831),(39.79848, 21.40702),(39.79501, 21.40333),(39.79373, 21.40207),(39.79355, 21.40193),(39.79291, 21.40156),(39.79209, 21.40128),(39.79129, 21.40117),(39.7904, 21.40122),(39.78952, 21.40145),(39.78886, 21.40175),(39.78761, 21.40064),(39.78831, 21.39977),(39.78842, 21.39961),(39.7885, 21.39941),(39.78889, 21.39915),(39.78934, 21.39892),(39.78975, 21.39885),(39.79039, 21.39844),(39.7913, 21.39812),(39.79528, 21.39727),(39.79685, 21.39697),(39.79808, 21.39687),(39.80179, 21.39686),(39.80549, 21.39681),(39.80651, 21.39668),(39.80725, 21.39666),(39.80743, 21.3966),(39.80771, 21.39643),(39.80899, 21.39602),(39.80971, 21.39842),(39.80979, 21.39893),(39.80983, 21.39956),(39.80955, 21.39958),(39.80936, 21.39965),(39.8092, 21.39975),(39.80893, 21.40003),(39.8088, 21.4004),(39.80766, 21.40803),(39.80749, 21.40874),(39.8071, 21.4101),(39.80666, 21.41003),(39.80538, 21.40971),(39.8038, 21.40937),(39.80309, 21.40917),(39.79951, 21.40831)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.78528, 21.39922),(39.78493, 21.39899),(39.78591, 21.39763),(39.78619, 21.3968),(39.78824, 21.38477),(39.78896, 21.37718),(39.79196, 21.37747),(39.79386, 21.37747),(39.79431, 21.38367),(39.79466, 21.38521),(39.79527, 21.38685),(39.7963, 21.39301),(39.79642, 21.39481),(39.79092, 21.39593),(39.78942, 21.39642),(39.78822, 21.39699),(39.78722, 21.3976),(39.78651, 21.3981),(39.78528, 21.39922)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.79842, 21.39469),(39.79828, 21.39273),(39.79723, 21.38643),(39.79656, 21.38457),(39.7963, 21.38345),(39.79584, 21.3772),(39.79782, 21.37657),(39.80001, 21.37542),(39.80108, 21.37459),(39.80295, 21.37269),(39.80319, 21.37258),(39.80748, 21.38942),(39.80783, 21.39052),(39.80783, 21.39119),(39.8077, 21.39161),(39.80752, 21.39189),(39.80687, 21.39255),(39.80579, 21.39415),(39.80519, 21.39458),(39.79842, 21.39469)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.86272, 21.42529),(39.86276, 21.42495),(39.86273, 21.42476),(39.86266, 21.42457),(39.86255, 21.42441),(39.8638, 21.42428),(39.8642, 21.42419),(39.86474, 21.42401),(39.86583, 21.42353),(39.86774, 21.42232),(39.87468, 21.41769),(39.87519, 21.41722),(39.87556, 21.41679),(39.87623, 21.41572),(39.87632, 21.41563),(39.87919, 21.41359),(39.88011, 21.41502),(39.88112, 21.41677),(39.88159, 21.4177),(39.88115, 21.41807),(39.88045, 21.41821),(39.87899, 21.41871),(39.87817, 21.41908),(39.87653, 21.41992),(39.87497, 21.42078),(39.87348, 21.42172),(39.87086, 21.42355),(39.86554, 21.42759),(39.86429, 21.4284),(39.86344, 21.42888),(39.86315, 21.42914),(39.86304, 21.42931),(39.86297, 21.42949),(39.86288, 21.42955),(39.86345, 21.42732),(39.86493, 21.42715),(39.86628, 21.42693),(39.86645, 21.42685),(39.86674, 21.42659),(39.86691, 21.42623),(39.86694, 21.42604),(39.86693, 21.42584),(39.8668, 21.42548),(39.86654, 21.42519),(39.86618, 21.42502),(39.86599, 21.42499),(39.86579, 21.425),(39.86465, 21.42517),(39.86303, 21.42536),(39.86272, 21.42529)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.88137, 21.4133),(39.88234, 21.41345),(39.88299, 21.41336),(39.88369, 21.41308),(39.88421, 21.41275),(39.88498, 21.41196),(39.88634, 21.40971),(39.88889, 21.40731),(39.89212, 21.41262),(39.89182, 21.41282),(39.89033, 21.41422),(39.88928, 21.41434),(39.88824, 21.41479),(39.88626, 21.41669),(39.88579, 21.41696),(39.88471, 21.41737),(39.88379, 21.4176),(39.88287, 21.41579),(39.88137, 21.4133)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.89343, 21.41478),(39.89599, 21.41909),(39.8969, 21.42055),(39.89729, 21.42134),(39.89771, 21.42243),(39.8981, 21.42371),(39.89874, 21.4253),(39.89905, 21.42595),(39.89945, 21.42665),(39.89984, 21.42723),(39.90044, 21.42799),(39.90305, 21.43104),(39.9031, 21.43127),(39.90311, 21.43155),(39.90306, 21.43194),(39.9017, 21.43639),(39.90122, 21.43585),(39.90098, 21.43544),(39.90059, 21.43417),(39.90029, 21.43348),(39.89965, 21.43238),(39.89683, 21.4285),(39.89643, 21.42802),(39.89572, 21.4274),(39.89208, 21.42467),(39.8859, 21.42038),(39.88621, 21.41977),(39.8863, 21.41948),(39.88648, 21.41926),(39.88752, 21.4184),(39.88777, 21.4181),(39.88784, 21.41793),(39.88939, 21.41644),(39.88975, 21.41629),(39.89056, 21.41626),(39.891, 21.41612),(39.89343, 21.41478)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.90063, 21.43987),(39.89683, 21.45214),(39.8956, 21.45625),(39.89544, 21.45648),(39.89523, 21.45671),(39.89504, 21.45685),(39.89446, 21.45714),(39.89298, 21.45776),(39.89025, 21.4587),(39.88889, 21.4589),(39.88829, 21.45893),(39.88695, 21.45888),(39.88613, 21.45869),(39.88496, 21.45834),(39.88205, 21.45719),(39.88115, 21.45672),(39.87854, 21.45483),(39.87734, 21.45423),(39.87619, 21.45386),(39.871, 21.45278),(39.87018, 21.45257),(39.86828, 21.45177),(39.86695, 21.45101),(39.86592, 21.45008),(39.86505, 21.44914),(39.86307, 21.44683),(39.86096, 21.44427),(39.86036, 21.44351),(39.85993, 21.44287),(39.85876, 21.44092),(39.85863, 21.4405),(39.85853, 21.4385),(39.85845, 21.43789),(39.85841, 21.4377),(39.85799, 21.43648),(39.85816, 21.43625),(39.85861, 21.4358),(39.86082, 21.43328),(39.86139, 21.43272),(39.86152, 21.43255),(39.86213, 21.43226),(39.86471, 21.4308),(39.86495, 21.4305),(39.86503, 21.43028),(39.86671, 21.42921),(39.87205, 21.42516),(39.87456, 21.4234),(39.87601, 21.42249),(39.87745, 21.42169),(39.87968, 21.42059),(39.88, 21.42048),(39.88078, 21.42029),(39.88189, 21.4201),(39.8827, 21.41988),(39.88297, 21.4204),(39.8836, 21.42141),(39.88376, 21.42162),(39.88439, 21.4222),(39.89129, 21.42698),(39.89334, 21.42853),(39.89452, 21.42953),(39.89488, 21.42994),(39.89779, 21.43386),(39.89841, 21.43486),(39.89868, 21.43546),(39.89962, 21.43833),(39.89972, 21.4385),(39.8999, 21.43867),(39.90027, 21.43939),(39.90063, 21.43987)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.89963, 21.38706),(39.8989, 21.38816),(39.8987, 21.38839),(39.89842, 21.38854),(39.89495, 21.38902),(39.8945, 21.38902),(39.89358, 21.38881),(39.89293, 21.38854),(39.88689, 21.38662),(39.88679, 21.38636),(39.88745, 21.38587),(39.89342, 21.38207),(39.89382, 21.38213),(39.89462, 21.38259),(39.89517, 21.38281),(39.8958, 21.38288),(39.89673, 21.3828),(39.89855, 21.38564),(39.89963, 21.38706)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.89348, 21.39296),(39.89286, 21.39348),(39.89194, 21.39401),(39.88552, 21.39692),(39.8847, 21.3955),(39.88413, 21.39366),(39.88401, 21.39185),(39.88434, 21.39012),(39.88475, 21.38944),(39.88506, 21.38913),(39.88593, 21.38845),(39.88615, 21.38848),(39.88648, 21.38874),(39.88738, 21.38915),(39.89272, 21.39085),(39.89371, 21.39128),(39.89392, 21.39143),(39.89398, 21.39158),(39.89408, 21.39224),(39.89348, 21.39296)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.84886, 21.43817),(39.85002, 21.43712),(39.85126, 21.43554),(39.85158, 21.43529),(39.85427, 21.4341),(39.85471, 21.4338),(39.85655, 21.43378),(39.85785, 21.43364),(39.85715, 21.43444),(39.85687, 21.43452),(39.85609, 21.43509),(39.85562, 21.43524),(39.85418, 21.43543),(39.85305, 21.43578),(39.85245, 21.43611),(39.85064, 21.43763),(39.85024, 21.43783),(39.84886, 21.43817)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.85972, 21.41943),(39.86333, 21.41545),(39.8703, 21.40829),(39.87409, 21.40552),(39.87517, 21.40688),(39.87599, 21.40806),(39.87819, 21.41186),(39.87494, 21.41418),(39.87458, 21.41459),(39.87399, 21.41555),(39.87339, 21.41616),(39.86496, 21.42173),(39.86398, 21.42216),(39.86342, 21.42231),(39.86213, 21.42238),(39.85971, 21.42177),(39.86001, 21.42041),(39.85992, 21.41983),(39.85972, 21.41943)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.87571, 21.40434),(39.87841, 21.40243),(39.88448, 21.39962),(39.88786, 21.4056),(39.8874, 21.40591),(39.8848, 21.40843),(39.88417, 21.40934),(39.8834, 21.41072),(39.88317, 21.41098),(39.8828, 21.41129),(39.88232, 21.41144),(39.88197, 21.41139),(39.88098, 21.41104),(39.88003, 21.41105),(39.8777, 21.40702),(39.87679, 21.40571),(39.87571, 21.40434)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.88646, 21.39869),(39.89349, 21.39545),(39.8941, 21.39505),(39.89698, 21.39264),(39.89974, 21.3939),(39.89882, 21.39616),(39.89759, 21.39804),(39.8959, 21.40038),(39.89488, 21.40142),(39.89409, 21.40204),(39.89129, 21.40342),(39.88971, 21.40437),(39.88646, 21.39869)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.95221, 21.34705),(39.95232, 21.34622),(39.95252, 21.3457),(39.95278, 21.34519),(39.95313, 21.34467),(39.95355, 21.34423),(39.95402, 21.34383),(39.95944, 21.34052),(39.96716, 21.3359),(39.96818, 21.33546),(39.96952, 21.33507),(39.97082, 21.33491),(39.97164, 21.33491),(39.97628, 21.33524),(39.97843, 21.33549),(39.98862, 21.33691),(39.99004, 21.33729),(39.99099, 21.33767),(39.9921, 21.33826),(39.99311, 21.339),(39.99377, 21.33959),(39.99466, 21.34067),(39.99517, 21.3415),(39.9956, 21.34231),(39.99591, 21.34323),(39.99606, 21.34384),(39.99627, 21.34514),(39.99627, 21.34711),(39.99622, 21.34781),(39.99493, 21.3532),(39.99449, 21.35441),(39.99377, 21.35575),(39.99337, 21.3563),(39.99265, 21.35702),(39.99047, 21.35841),(39.98785, 21.36027),(39.98739, 21.36066),(39.98664, 21.36148),(39.98629, 21.36203),(39.98604, 21.36261),(39.98588, 21.36326),(39.98582, 21.36386),(39.98584, 21.36461),(39.98597, 21.36522),(39.98613, 21.36571),(39.98645, 21.36645),(39.98769, 21.36884),(39.98792, 21.36953),(39.98811, 21.37052),(39.98876, 21.37739),(39.98869, 21.37821),(39.98863, 21.37841),(39.98851, 21.37867),(39.98808, 21.37931),(39.98785, 21.37954),(39.98758, 21.37973),(39.98671, 21.38013),(39.98624, 21.38023),(39.98142, 21.38031),(39.9805, 21.38024),(39.97978, 21.38003),(39.97949, 21.37987),(39.97917, 21.37962),(39.97889, 21.37936),(39.97864, 21.37904),(39.9778, 21.37783),(39.97605, 21.37561),(39.96729, 21.36519),(39.96247, 21.36003),(39.95955, 21.35682),(39.95867, 21.35593),(39.95499, 21.3519),(39.95402, 21.35093),(39.95309, 21.34984),(39.95262, 21.34915),(39.95236, 21.34849),(39.95225, 21.34799),(39.95218, 21.34733),(39.95221, 21.34705)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.80959, 21.42471),(39.80961, 21.42502),(39.80967, 21.4252),(39.80976, 21.42538),(39.80988, 21.42553),(39.81003, 21.42565),(39.81021, 21.42574),(39.81039, 21.4258),(39.81059, 21.42582),(39.81079, 21.4258),(39.81097, 21.42574),(39.81115, 21.42565),(39.8113, 21.42553),(39.81142, 21.42538),(39.81157, 21.42502),(39.81422, 21.4254),(39.81499, 21.42539),(39.81683, 21.42523),(39.8172, 21.4259),(39.81788, 21.42678),(39.81735, 21.42785),(39.81708, 21.42816),(39.817, 21.42821),(39.81458, 21.42838),(39.8142, 21.42837),(39.81313, 21.4282),(39.81278, 21.42826),(39.81207, 21.42855),(39.81173, 21.42888),(39.81161, 21.42903),(39.81152, 21.42921),(39.81137, 21.42959),(39.81126, 21.43002),(39.81082, 21.4313),(39.80838, 21.43082),(39.80778, 21.43079),(39.80781, 21.4305),(39.80793, 21.4264),(39.80787, 21.4244),(39.80959, 21.42471)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.80556, 21.43147),(39.80353, 21.43246),(39.80246, 21.43184),(39.80176, 21.43158),(39.80132, 21.43147),(39.80103, 21.43144),(39.80025, 21.43149),(39.79977, 21.43161),(39.79946, 21.43174),(39.79918, 21.43192),(39.79694, 21.43394),(39.79578, 21.43486),(39.79286, 21.43677),(39.79262, 21.43702),(39.79251, 21.43723),(39.79246, 21.43742),(39.79245, 21.43762),(39.79253, 21.43798),(39.79272, 21.43828),(39.79297, 21.43852),(39.79326, 21.43865),(39.79353, 21.43869),(39.79384, 21.43864),(39.79402, 21.43856),(39.79789, 21.43598),(39.80018, 21.4339),(39.80064, 21.43359),(39.80097, 21.43358),(39.80149, 21.43371),(39.80259, 21.43438),(39.80291, 21.4345),(39.8032, 21.43456),(39.80343, 21.43458),(39.80388, 21.43455),(39.8048, 21.43423),(39.80446, 21.43495),(39.80406, 21.43567),(39.80366, 21.43693),(39.80347, 21.43812),(39.80332, 21.43981),(39.80118, 21.43938),(39.79973, 21.43917),(39.79102, 21.43876),(39.79131, 21.43242),(39.79123, 21.43161),(39.79026, 21.42778),(39.79024, 21.42756),(39.79027, 21.42715),(39.79032, 21.42696),(39.79049, 21.42663),(39.79096, 21.42597),(39.79434, 21.4257),(39.79706, 21.42535),(39.80209, 21.42359),(39.80281, 21.42342),(39.8032, 21.42339),(39.80401, 21.42349),(39.80572, 21.42393),(39.80578, 21.4274),(39.80564, 21.43075),(39.80556, 21.43147)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.80743, 21.43297),(39.8081, 21.43292),(39.81017, 21.43334),(39.80879, 21.44042),(39.80641, 21.44006),(39.80544, 21.44004),(39.80577, 21.43726),(39.80612, 21.43633),(39.80671, 21.43526),(39.80743, 21.43297)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.80978, 21.44779),(39.80994, 21.44566),(39.81007, 21.44487),(39.81053, 21.44265),(39.81116, 21.44264),(39.81154, 21.44256),(39.81225, 21.44226),(39.81248, 21.44211),(39.81366, 21.44109),(39.81384, 21.44099),(39.81679, 21.44037),(39.81781, 21.44011),(39.82104, 21.43947),(39.8222, 21.43916),(39.82287, 21.43891),(39.82379, 21.43843),(39.82508, 21.43789),(39.82657, 21.43749),(39.82684, 21.43737),(39.82727, 21.4371),(39.82865, 21.43639),(39.82907, 21.43623),(39.82934, 21.4363),(39.82961, 21.43628),(39.83008, 21.43695),(39.8317, 21.43866),(39.83196, 21.439),(39.83218, 21.43955),(39.8324, 21.43989),(39.83262, 21.44011),(39.83308, 21.44043),(39.83338, 21.44071),(39.83419, 21.44194),(39.83469, 21.44238),(39.83493, 21.44253),(39.83535, 21.44272),(39.83558, 21.44279),(39.83628, 21.44289),(39.83853, 21.44254),(39.83909, 21.44226),(39.8397, 21.44168),(39.83977, 21.44165),(39.84008, 21.44161),(39.84192, 21.44153),(39.843, 21.44143),(39.84509, 21.4411),(39.84799, 21.44052),(39.84946, 21.44019),(39.84981, 21.44021),(39.84994, 21.44025),(39.85134, 21.44181),(39.85116, 21.44253),(39.85117, 21.44267),(39.85047, 21.4439),(39.85008, 21.44479),(39.84952, 21.44592),(39.84796, 21.44857),(39.84741, 21.44971),(39.84589, 21.45357),(39.84554, 21.45432),(39.84375, 21.45712),(39.84259, 21.45929),(39.84225, 21.46015),(39.84203, 21.46152),(39.84189, 21.46327),(39.8414, 21.46556),(39.84112, 21.46739),(39.84112, 21.46789),(39.84122, 21.46847),(39.84135, 21.46887),(39.84146, 21.4691),(39.84191, 21.4698),(39.84204, 21.4701),(39.84217, 21.47069),(39.84223, 21.47113),(39.84204, 21.47546),(39.84198, 21.47572),(39.84187, 21.47595),(39.84166, 21.47621),(39.84137, 21.4764),(39.84125, 21.47644),(39.84102, 21.4765),(39.84071, 21.47651),(39.83664, 21.47574),(39.836, 21.4757),(39.83537, 21.47573),(39.83436, 21.47593),(39.83347, 21.47628),(39.83274, 21.47666),(39.83259, 21.47668),(39.83234, 21.47663),(39.83211, 21.47648),(39.83203, 21.4764),(39.83197, 21.47626),(39.83172, 21.47361),(39.83147, 21.47277),(39.83127, 21.4723),(39.83087, 21.47161),(39.82925, 21.46941),(39.82728, 21.4666),(39.82667, 21.46592),(39.82647, 21.46575),(39.82613, 21.46553),(39.82048, 21.46267),(39.82011, 21.46245),(39.81967, 21.46209),(39.81931, 21.46169),(39.81868, 21.46072),(39.81798, 21.45998),(39.81588, 21.45849),(39.81553, 21.45819),(39.81515, 21.45776),(39.81493, 21.45736),(39.81256, 21.45195),(39.8115, 21.45014),(39.81057, 21.44875),(39.80978, 21.44779)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.78317, 21.39802),(39.78285, 21.39808),(39.77692, 21.3971),(39.77752, 21.39324),(39.77769, 21.39243),(39.77792, 21.39179),(39.78089, 21.38707),(39.78351, 21.38492),(39.7841, 21.38405),(39.78439, 21.38333),(39.78558, 21.37686),(39.78697, 21.37699),(39.78625, 21.38452),(39.78422, 21.39642),(39.78406, 21.39682),(39.78317, 21.39802)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.78917, 21.37519),(39.78953, 21.37157),(39.79052, 21.37185),(39.79107, 21.37212),(39.79169, 21.37253),(39.7921, 21.37292),(39.79255, 21.37342),(39.79307, 21.37423),(39.7934, 21.37489),(39.79358, 21.37547),(39.7921, 21.37547),(39.78917, 21.37519)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.87268, 21.3607),(39.87229, 21.37234),(39.87238, 21.37312),(39.8727, 21.37412),(39.87403, 21.3768),(39.87459, 21.37751),(39.87492, 21.3778),(39.87565, 21.3783),(39.87539, 21.37897),(39.87431, 21.38235),(39.87402, 21.38249),(39.87222, 21.38192),(39.87075, 21.38162),(39.86994, 21.38153),(39.86868, 21.38151),(39.86677, 21.38175),(39.86582, 21.382),(39.86468, 21.38241),(39.86373, 21.38286),(39.86273, 21.38347),(39.8619, 21.3841),(39.86106, 21.38489),(39.85782, 21.38829),(39.85728, 21.38809),(39.85678, 21.38807),(39.85608, 21.38827),(39.85576, 21.38852),(39.85553, 21.38885),(39.8554, 21.38933),(39.85538, 21.38957),(39.85547, 21.38999),(39.85567, 21.39042),(39.85495, 21.39109),(39.85387, 21.39231),(39.8531, 21.39292),(39.85269, 21.39312),(39.85256, 21.39313),(39.85225, 21.39306),(39.8512, 21.39193),(39.84972, 21.39016),(39.84959, 21.39004),(39.84879, 21.38937),(39.8481, 21.38893),(39.84746, 21.38863),(39.84605, 21.38825),(39.84136, 21.38785),(39.84054, 21.3877),(39.84015, 21.38753),(39.83982, 21.38734),(39.8394, 21.38701),(39.83693, 21.38443),(39.83665, 21.38418),(39.83518, 21.38321),(39.83492, 21.38309),(39.83413, 21.38287),(39.83345, 21.38279),(39.83236, 21.38277),(39.83156, 21.38286),(39.83051, 21.38312),(39.83637, 21.37503),(39.84749, 21.35985),(39.84785, 21.35942),(39.84912, 21.35812),(39.84948, 21.35783),(39.84985, 21.35763),(39.85045, 21.35745),(39.8545, 21.35696),(39.85519, 21.35698),(39.85738, 21.35754),(39.85971, 21.35848),(39.86135, 21.35892),(39.86264, 21.35917),(39.8703, 21.36038),(39.87268, 21.3607)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.87658, 21.37651),(39.87598, 21.37607),(39.87578, 21.37582),(39.87453, 21.3733),(39.87429, 21.37232),(39.87467, 21.36095),(39.87758, 21.36131),(39.87798, 21.36151),(39.88107, 21.36223),(39.88281, 21.36325),(39.88379, 21.36404),(39.88498, 21.36539),(39.88608, 21.36683),(39.8788, 21.37364),(39.8776, 21.375),(39.87658, 21.37651)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.82364, 21.41981),(39.82367, 21.41954),(39.82416, 21.41928),(39.82507, 21.41862),(39.82572, 21.41854),(39.8261, 21.4186),(39.8258, 21.41927),(39.82445, 21.41949),(39.82364, 21.41981)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.82391, 21.41697),(39.82383, 21.41571),(39.82364, 21.41473),(39.82274, 21.41253),(39.82449, 21.41261),(39.82443, 21.41485),(39.82469, 21.41537),(39.82519, 21.41566),(39.82577, 21.41563),(39.82623, 21.41527),(39.82642, 21.41472),(39.82648, 21.41309),(39.82695, 21.41321),(39.82661, 21.41499),(39.82657, 21.41567),(39.82683, 21.41674),(39.82634, 21.4166),(39.82514, 21.41656),(39.82446, 21.41671),(39.82391, 21.41697)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.82876, 21.41802),(39.83007, 21.41793),(39.83168, 21.41763),(39.83252, 21.41736),(39.8333, 21.41696),(39.83461, 21.41893),(39.83507, 21.41978),(39.83524, 21.42063),(39.8353, 21.42147),(39.83401, 21.42163),(39.83388, 21.42071),(39.83352, 21.41999),(39.83348, 21.41968),(39.83332, 21.41932),(39.83276, 21.41877),(39.8319, 21.41823),(39.83077, 21.41798),(39.82876, 21.41802)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.83509, 21.41604),(39.839, 21.41402),(39.84021, 21.41316),(39.84098, 21.41247),(39.84179, 21.41159),(39.8438, 21.40921),(39.84747, 21.40466),(39.84802, 21.40381),(39.84838, 21.40303),(39.84864, 21.40216),(39.84886, 21.40096),(39.849, 21.39949),(39.84909, 21.39896),(39.84924, 21.39842),(39.84956, 21.39772),(39.85004, 21.39711),(39.8502, 21.39695),(39.8506, 21.39665),(39.85157, 21.39618),(39.853, 21.39569),(39.85363, 21.39558),(39.85396, 21.39547),(39.8544, 21.39524),(39.8547, 21.39503),(39.85499, 21.39478),(39.85617, 21.39361),(39.85696, 21.39291),(39.85746, 21.39236),(39.8579, 21.39179),(39.85877, 21.39085),(39.86338, 21.39308),(39.86446, 21.39356),(39.86531, 21.39402),(39.86577, 21.39435),(39.86651, 21.39507),(39.86596, 21.3955),(39.86532, 21.39609),(39.86472, 21.39688),(39.86379, 21.39863),(39.86138, 21.40439),(39.86035, 21.4064),(39.85537, 21.41465),(39.85266, 21.41823),(39.85145, 21.41971),(39.85133, 21.4198),(39.85092, 21.41997),(39.84912, 21.42017),(39.84516, 21.42027),(39.84289, 21.42044),(39.83728, 21.4212),(39.83723, 21.42043),(39.83701, 21.4193),(39.83677, 21.41867),(39.83632, 21.41789),(39.83509, 21.41604)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.86021, 21.38932),(39.86365, 21.38583),(39.86459, 21.38516),(39.86624, 21.38442),(39.86768, 21.38403),(39.86962, 21.38393),(39.8717, 21.38431),(39.87299, 21.3847),(39.8729, 21.38575),(39.87303, 21.38632),(39.87188, 21.38979),(39.87157, 21.39051),(39.87068, 21.39174),(39.87013, 21.39226),(39.8681, 21.39384),(39.86709, 21.39285),(39.86632, 21.39229),(39.86021, 21.38932)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.84703, 21.39096),(39.84715, 21.39117),(39.84744, 21.39143),(39.84761, 21.39151),(39.84787, 21.39156),(39.84872, 21.39256),(39.84882, 21.39314),(39.84858, 21.39443),(39.84842, 21.39495),(39.848, 21.39601),(39.84714, 21.39783),(39.84698, 21.39845),(39.84677, 21.40025),(39.84654, 21.40175),(39.84636, 21.40234),(39.84612, 21.40283),(39.84579, 21.40335),(39.84226, 21.4074),(39.8407, 21.40935),(39.83947, 21.41065),(39.83831, 21.41161),(39.8377, 21.41205),(39.83345, 21.41428),(39.83247, 21.41344),(39.83245, 21.41324),(39.83239, 21.41305),(39.8323, 21.41288),(39.83217, 21.41273),(39.83121, 21.41178),(39.83068, 21.41134),(39.83015, 21.41099),(39.83001, 21.41065),(39.83052, 21.40833),(39.83112, 21.40587),(39.8317, 21.40157),(39.83168, 21.40101),(39.83164, 21.40082),(39.83137, 21.40027),(39.83115, 21.39999),(39.83083, 21.39971),(39.83052, 21.39952),(39.8284, 21.39872),(39.82797, 21.39848),(39.82767, 21.39827),(39.82744, 21.39803),(39.82711, 21.39753),(39.827, 21.39726),(39.82693, 21.3969),(39.82679, 21.39172),(39.82659, 21.38808),(39.82672, 21.38766),(39.82705, 21.38702),(39.82746, 21.38644),(39.83156, 21.38522),(39.83244, 21.38503),(39.83282, 21.38502),(39.83372, 21.38517),(39.83421, 21.38535),(39.83473, 21.38565),(39.83527, 21.38603),(39.83533, 21.38622),(39.83555, 21.38655),(39.83588, 21.38676),(39.83607, 21.38681),(39.83738, 21.38827),(39.83788, 21.38875),(39.83886, 21.38944),(39.83905, 21.38954),(39.83962, 21.38978),(39.84022, 21.38998),(39.84135, 21.39018),(39.84179, 21.39021),(39.84192, 21.39029),(39.8423, 21.3904),(39.84269, 21.39035),(39.84282, 21.39029),(39.84546, 21.39049),(39.84593, 21.39055),(39.84632, 21.39064),(39.84672, 21.39079),(39.84703, 21.39096)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.83154, 21.41527),(39.83052, 21.41557),(39.82875, 21.41575),(39.82868, 21.41557),(39.8287, 21.41522),(39.82898, 21.41382),(39.83043, 21.41432),(39.83154, 21.41527)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.88532, 21.36227),(39.89047, 21.36299),(39.88935, 21.36357),(39.889, 21.36359),(39.88711, 21.36335),(39.88654, 21.36324),(39.88587, 21.36295),(39.88576, 21.36273),(39.88532, 21.36227)]); SELECT pointInPolygon((39.840202, 21.451471), [(39.91229, 21.40316),(39.91302, 21.40213),(39.91357, 21.40253),(39.91432, 21.40334),(39.91464, 21.40392),(39.91478, 21.40442),(39.91478, 21.40479),(39.91465, 21.40516),(39.91433, 21.40548),(39.914, 21.40563),(39.91331, 21.4056),(39.9128, 21.40534),(39.91261, 21.40516),(39.91238, 21.40474),(39.91229, 21.40316)]); SELECT 'Check that the point is not in Mecca with multiple holes'; SELECT pointInPolygon((39.840202, 21.451471), [(39.90553, 21.38668),(39.91034, 21.38608),(39.91834, 21.38048),(39.93078, 21.3627),(39.94141, 21.36278),(39.94753, 21.36075),(39.94986, 21.35894),(39.95349, 21.3533),(39.97833, 21.3815),(39.98132, 21.38231),(39.98851, 21.38151),(39.99076, 21.37747),(39.98987, 21.36908),(39.98791, 21.36332),(39.99543, 21.35687),(39.99827, 21.34722),(39.99784, 21.34271),(39.99632, 21.33955),(39.99322, 21.3366),(39.98908, 21.33496),(39.9692, 21.3331),(39.95841, 21.3388),(39.95109, 21.34412),(39.95026, 21.34825),(39.95203, 21.35168),(39.94753, 21.35845),(39.94165, 21.36077),(39.93272, 21.36009),(39.92969, 21.36103),(39.91928, 21.37669),(39.91374, 21.3816),(39.91056, 21.38296),(39.90839, 21.38361),(39.90059, 21.38257),(39.8978, 21.37712),(39.90051, 21.37335),(39.90033, 21.37195),(39.89559, 21.37533),(39.89099, 21.36937),(39.89101, 21.3661),(39.89465, 21.364),(39.92418, 21.35725),(39.92838, 21.35433),(39.94394, 21.33915),(39.96711, 21.32785),(39.97437, 21.32734),(39.99523, 21.33055),(40.01271, 21.3293),(40.01345, 21.3276),(40.00731, 21.32689),(39.99189, 21.32817),(39.97264, 21.3251),(39.96216, 21.32725),(39.95825, 21.32598),(39.95783, 21.32734),(39.96017, 21.32834),(39.94652, 21.33514),(39.94578, 21.33237),(39.94438, 21.33259),(39.94454, 21.33563),(39.92448, 21.3545),(39.92007, 21.3563),(39.89586, 21.3615),(39.86239, 21.35659),(39.85241, 21.35319),(39.85183, 21.35189),(39.84187, 21.3498),(39.83475, 21.35001),(39.82272, 21.35322),(39.80957, 21.34986),(39.80645, 21.34645),(39.80654, 21.34104),(39.82207, 21.29116),(39.82732, 21.26685),(39.82657, 21.22894),(39.82468, 21.22761),(39.82364, 21.22857),(39.82459, 21.22961),(39.82535, 21.26649),(39.82016, 21.29057),(39.81723, 21.29965),(39.81585, 21.30012),(39.81652, 21.30158),(39.81475, 21.30815),(39.80378, 21.34492),(39.8023, 21.34648),(39.79042, 21.34584),(39.78385, 21.34687),(39.77227, 21.34595),(39.7601, 21.34279),(39.73947, 21.34141),(39.71051, 21.34288),(39.70233, 21.34041),(39.68839, 21.33943),(39.65964, 21.33189),(39.64627, 21.3344),(39.64733, 21.33592),(39.65598, 21.33404),(39.66095, 21.33402),(39.68789, 21.34136),(39.70198, 21.34238),(39.71031, 21.34487),(39.74208, 21.34353),(39.76109, 21.34495),(39.77363, 21.34845),(39.77446, 21.35039),(39.76342, 21.37977),(39.75978, 21.39951),(39.75655, 21.40491),(39.73768, 21.39607),(39.72646, 21.38795),(39.71285, 21.3969),(39.69867, 21.37979),(39.66651, 21.36156),(39.6662, 21.36338),(39.69742, 21.38135),(39.7112, 21.39803),(39.70333, 21.40335),(39.70227, 21.40556),(39.70273, 21.40892),(39.71038, 21.41608),(39.71004, 21.42139),(39.68758, 21.414),(39.68099, 21.41398),(39.63179, 21.4366),(39.62927917729339, 21.43855995858338),(39.629299942421596, 21.44105336136311),(39.63273, 21.43836),(39.65768, 21.42753),(39.67404, 21.419),(39.6815, 21.41592),(39.68534, 21.41555),(39.7182, 21.42582),(39.72915, 21.4318),(39.72926, 21.43473),(39.72198, 21.45071),(39.72058, 21.46018),(39.72262, 21.46776),(39.72871, 21.47851),(39.73639, 21.48854),(39.73607, 21.50077),(39.73921, 21.50608),(39.74358, 21.50869),(39.77204, 21.51334),(39.78965, 21.51773),(39.78925, 21.52186),(39.77895, 21.53768),(39.77335, 21.55878),(39.77409, 21.55998),(39.77529, 21.55924),(39.78151, 21.53691),(39.79101, 21.52282),(39.79216, 21.51796),(39.79392, 21.51725),(39.793, 21.51609),(39.79416, 21.49641),(39.79816, 21.47216),(39.8004, 21.46856),(39.80363, 21.4669),(39.80549, 21.46717),(39.80785, 21.46483),(39.8079, 21.45844),(39.80961, 21.45125),(39.81407, 21.45956),(39.8189, 21.46404),(39.82568, 21.4678),(39.82961, 21.47351),(39.83079, 21.47799),(39.84122, 21.47849),(39.84401, 21.47583),(39.84423, 21.47113),(39.84321, 21.46813),(39.84421, 21.46059),(39.85356, 21.44251),(39.85688, 21.44231),(39.86433, 21.45155),(39.86762, 21.45385),(39.87655, 21.45623),(39.88419, 21.46034),(39.89153, 21.46165),(39.8939, 21.46349),(39.89668, 21.46326),(39.9075, 21.47496),(39.91921, 21.48088),(39.9355, 21.48404),(39.94435, 21.48781),(39.96608, 21.48881),(39.96569, 21.49663),(39.95135, 21.53005),(39.94352, 21.56004),(39.94384, 21.56417),(39.94803, 21.56766),(39.95376, 21.56964),(39.95497, 21.56891),(39.9538, 21.56747),(39.94686, 21.56478),(39.94534, 21.56123),(39.95324, 21.53069),(39.96782, 21.49652),(39.96808, 21.48868),(39.98958, 21.49423),(40.00615, 21.4944),(40.01566, 21.50406),(40.03305, 21.5127),(40.0475, 21.52172),(40.05278, 21.52274),(40.06051, 21.52124),(40.05971, 21.51952),(40.05217, 21.52052),(40.04866, 21.51978),(40.03052, 21.50875),(40.01631, 21.50181),(40.01014, 21.49459),(40.00619, 21.49215),(39.98995, 21.49206),(39.96952, 21.48658),(39.94485, 21.48571),(39.93748, 21.48246),(39.95107, 21.45666),(39.97348, 21.46578),(39.97479, 21.46523),(39.97424, 21.46392),(39.95217, 21.45495),(39.95444, 21.45202),(39.97071, 21.44272),(39.97127, 21.44141),(39.97007, 21.44065),(39.95381, 21.44976),(39.95007, 21.45407),(39.94121, 21.45146),(39.93089, 21.45021),(39.92173, 21.4449),(39.9164, 21.44366),(39.91152, 21.44104),(39.90446, 21.44019),(39.90416, 21.43717),(39.9067, 21.43268),(39.90657, 21.42875),(39.91121, 21.40898),(39.91566, 21.40698),(39.91675, 21.40517),(39.91627, 21.40045),(39.91407, 21.39734),(39.91949, 21.39132),(39.92673, 21.38963),(39.93267, 21.39089),(39.93373, 21.38995),(39.93279, 21.38889),(39.92676, 21.38762),(39.91905, 21.38931),(39.91251, 21.39595),(39.91173, 21.40041),(39.90949, 21.39663),(39.91172, 21.3928),(39.91031, 21.39269),(39.90798, 21.39493),(39.90668, 21.39219),(39.90882, 21.38887),(39.90768, 21.38803),(39.90505, 21.39084),(39.90417, 21.38841),(39.90553, 21.38668)], [(39.89317, 21.40473),(39.8952, 21.40371),(39.89574, 21.40332),(39.89629, 21.40285),(39.89739, 21.40172),(39.89925, 21.39916),(39.90055, 21.39718),(39.90145, 21.39501),(39.90173, 21.39491),(39.90189, 21.3948),(39.90252, 21.39409),(39.90289, 21.39384),(39.90396, 21.3934),(39.90422, 21.39338),(39.90436, 21.39343),(39.9044, 21.39349),(39.90404, 21.39369),(39.9037, 21.39396),(39.90351, 21.39416),(39.90319, 21.39463),(39.9027, 21.39571),(39.90267, 21.3959),(39.90268, 21.3961),(39.90281, 21.39646),(39.90293, 21.39662),(39.90307, 21.39675),(39.90324, 21.39685),(39.90362, 21.39695),(39.90382, 21.39694),(39.90418, 21.39681),(39.90447, 21.39655),(39.90505, 21.39544),(39.90523, 21.39531),(39.90547, 21.39528),(39.90556, 21.39529),(39.90572, 21.39537),(39.90592, 21.39552),(39.90662, 21.39645),(39.906, 21.39651),(39.9052, 21.39665),(39.90396, 21.39711),(39.90363, 21.39731),(39.9035, 21.39746),(39.90341, 21.39763),(39.90332, 21.39801),(39.90313, 21.39836),(39.90309, 21.39856),(39.90308, 21.39875),(39.90312, 21.39895),(39.90329, 21.39929),(39.90343, 21.39944),(39.90376, 21.39963),(39.90415, 21.39968),(39.90743, 21.39882),(39.90786, 21.39882),(39.90822, 21.39894),(39.9085, 21.39911),(39.90876, 21.39934),(39.9095, 21.40036),(39.90976, 21.40084),(39.90998, 21.40146),(39.91019, 21.40247),(39.90991, 21.40276),(39.90931, 21.40349),(39.90896, 21.40373),(39.90674, 21.40608),(39.90348, 21.40934),(39.9024, 21.41059),(39.90214, 21.4108),(39.90157, 21.41114),(39.90101, 21.41142),(39.90053, 21.41156),(39.90001, 21.41165),(39.89952, 21.41166),(39.89816, 21.41146),(39.89719, 21.4114),(39.8962, 21.41124),(39.89535, 21.41126),(39.89484, 21.41133),(39.89435, 21.41148),(39.89405, 21.41163),(39.89166, 21.4077),(39.89109, 21.40671),(39.89172, 21.4064),(39.89219, 21.40606),(39.89252, 21.40568),(39.89317, 21.40473)], [(39.89411, 21.37812),(39.89305, 21.37935),(39.89229, 21.38007),(39.89129, 21.38085),(39.88637, 21.38398),(39.88501, 21.38505),(39.88428, 21.38581),(39.87665, 21.38344),(39.87669, 21.38209),(39.87721, 21.38049),(39.87864, 21.37771),(39.8796, 21.37629),(39.88162, 21.37426),(39.88637, 21.36994),(39.88657, 21.36988),(39.88706, 21.37),(39.88876, 21.37081),(39.88896, 21.37101),(39.89013, 21.37233),(39.89156, 21.37426),(39.89332, 21.37678),(39.89411, 21.37812)], [(39.87603, 21.38534),(39.88308, 21.38753),(39.88293, 21.38778),(39.88223, 21.38927),(39.88216, 21.3895),(39.88185, 21.39103),(39.88178, 21.39207),(39.88187, 21.39333),(39.8821, 21.39461),(39.88234, 21.39542),(39.88273, 21.39643),(39.88352, 21.39787),(39.87797, 21.4004),(39.87743, 21.40069),(39.87678, 21.4011),(39.87442, 21.40281),(39.87359, 21.40173),(39.87299, 21.40077),(39.87076, 21.39685),(39.87013, 21.39591),(39.8696, 21.39535),(39.8714, 21.39394),(39.87198, 21.39344),(39.87254, 21.39286),(39.87317, 21.39206),(39.87356, 21.39139),(39.87399, 21.39041),(39.87552, 21.3857),(39.87573, 21.38561),(39.87603, 21.38534)], [(39.8728, 21.40398),(39.86889, 21.40686),(39.86188, 21.41407),(39.8567, 21.41973),(39.85571, 21.42095),(39.85474, 21.4207),(39.85357, 21.42055),(39.8571, 21.4159),(39.8598, 21.4115),(39.86247, 21.40702),(39.86312, 21.40575),(39.86566, 21.39964),(39.86637, 21.39829),(39.86702, 21.39748),(39.86801, 21.39659),(39.86852, 21.39711),(39.86908, 21.39794),(39.87126, 21.40177),(39.87192, 21.40283),(39.8728, 21.40398)], [(39.85537, 21.42292),(39.85579, 21.42569),(39.85581, 21.42611),(39.85559, 21.4266),(39.85335, 21.42856),(39.85159, 21.43039),(39.85001, 21.43114),(39.84921, 21.43092),(39.84693, 21.42992),(39.84558, 21.42953),(39.84158, 21.42902),(39.83488, 21.42846),(39.83661, 21.42511),(39.8371, 21.42353),(39.84406, 21.42267),(39.84527, 21.4226),(39.85309, 21.42252),(39.85438, 21.42267),(39.85537, 21.42292)], [(39.84628, 21.43181),(39.84808, 21.43261),(39.84783, 21.43302),(39.84618, 21.43694),(39.84577, 21.43776),(39.84437, 21.43886),(39.84394, 21.43902),(39.84241, 21.43929),(39.84185, 21.43935),(39.8414, 21.43937),(39.83966, 21.43925),(39.83928, 21.4393),(39.83876, 21.43957),(39.83857, 21.43971),(39.8382, 21.44005),(39.83781, 21.44051),(39.83637, 21.44071),(39.83611, 21.4407),(39.83599, 21.44066),(39.83589, 21.44058),(39.83584, 21.44048),(39.83575, 21.43989),(39.83567, 21.43963),(39.83545, 21.43919),(39.83508, 21.4388),(39.83491, 21.4387),(39.83472, 21.43864),(39.83453, 21.43861),(39.83433, 21.43862),(39.83409, 21.4387),(39.83396, 21.43862),(39.83377, 21.43814),(39.83364, 21.43792),(39.83319, 21.43732),(39.83279, 21.43689),(39.83253, 21.43633),(39.8323, 21.43541),(39.83224, 21.43523),(39.83214, 21.43506),(39.83189, 21.43474),(39.83144, 21.43432),(39.83111, 21.43413),(39.8305, 21.43392),(39.82999, 21.43269),(39.83002, 21.43255),(39.82998, 21.43209),(39.83109, 21.43171),(39.8318, 21.43138),(39.83234, 21.43109),(39.83301, 21.43064),(39.83338, 21.43032),(39.83365, 21.43037),(39.84139, 21.43101),(39.8432, 21.43126),(39.84419, 21.43134),(39.84517, 21.43149),(39.84628, 21.43181)], [(39.83035, 21.42986),(39.8304, 21.42866),(39.83018, 21.42818),(39.83125, 21.42753),(39.83199, 21.42688),(39.83261, 21.42604),(39.83342, 21.42459),(39.83365, 21.42395),(39.83444, 21.42391),(39.83496, 21.4238),(39.83479, 21.42429),(39.83281, 21.42802),(39.83184, 21.42901),(39.83126, 21.4294),(39.83035, 21.42986)], [(39.82819, 21.42907),(39.82814, 21.4304),(39.82488, 21.43059),(39.82445, 21.43066),(39.82337, 21.43101),(39.82191, 21.43183),(39.82049, 21.43295),(39.81955, 21.43393),(39.81912, 21.43421),(39.81892, 21.4343),(39.81862, 21.43437),(39.81829, 21.4344),(39.81774, 21.43434),(39.81632, 21.43374),(39.81706, 21.43236),(39.81724, 21.4319),(39.81748, 21.43143),(39.81812, 21.43039),(39.81845, 21.42992),(39.81919, 21.42907),(39.81933, 21.42884),(39.81964, 21.4281),(39.82006, 21.42826),(39.82103, 21.4285),(39.82135, 21.42873),(39.82154, 21.42879),(39.82284, 21.42907),(39.82412, 21.42923),(39.8253, 21.42933),(39.82659, 21.42933),(39.8273, 21.42926),(39.82819, 21.42907)], [(39.82779, 21.43244),(39.82826, 21.43377),(39.82849, 21.43431),(39.82776, 21.4346),(39.82626, 21.43537),(39.82591, 21.43559),(39.8245, 21.43597),(39.82298, 21.4366),(39.822, 21.43711),(39.82165, 21.43723),(39.82055, 21.43753),(39.81734, 21.43816),(39.81631, 21.43843),(39.81333, 21.43905),(39.81312, 21.43912),(39.81267, 21.43934),(39.81245, 21.4395),(39.81128, 21.4405),(39.81094, 21.44064),(39.81165, 21.43717),(39.81218, 21.43422),(39.81403, 21.43504),(39.81432, 21.4353),(39.8145, 21.43538),(39.81489, 21.43543),(39.81499, 21.43547),(39.81655, 21.4363),(39.81714, 21.4365),(39.81776, 21.43662),(39.81815, 21.43662),(39.81834, 21.43656),(39.81861, 21.43638),(39.81889, 21.43636),(39.81948, 21.43622),(39.82014, 21.43593),(39.82092, 21.4354),(39.82179, 21.43448),(39.82309, 21.43346),(39.82425, 21.43281),(39.82484, 21.43263),(39.82515, 21.43258),(39.82779, 21.43244)], [(39.8207, 21.42636),(39.82125, 21.42508),(39.82206, 21.42403),(39.82275, 21.42279),(39.82346, 21.42235),(39.82418, 21.42178),(39.82499, 21.42142),(39.8265, 21.42122),(39.83136, 21.42199),(39.83197, 21.42264),(39.83163, 21.4237),(39.8309, 21.425),(39.83051, 21.42553),(39.83031, 21.42574),(39.82948, 21.42628),(39.828, 21.42705),(39.82644, 21.42733),(39.8243, 21.42724),(39.82267, 21.42698),(39.82214, 21.42669),(39.8207, 21.42636)], [(39.82102, 21.42106),(39.82062, 21.42128),(39.82017, 21.42162),(39.8194, 21.42239),(39.81905, 21.4228),(39.81802, 21.42299),(39.8179, 21.42265),(39.81779, 21.42189),(39.8176, 21.42155),(39.81729, 21.42131),(39.81711, 21.42124),(39.81692, 21.4212),(39.81653, 21.42125),(39.81619, 21.42144),(39.81595, 21.42175),(39.81588, 21.42193),(39.81584, 21.42212),(39.81585, 21.42232),(39.81597, 21.42319),(39.81504, 21.42328),(39.81423, 21.42329),(39.80999, 21.42266),(39.80755, 21.42223),(39.80737, 21.42203),(39.80706, 21.42179),(39.80695, 21.42166),(39.80685, 21.42142),(39.80686, 21.42123),(39.80695, 21.42105),(39.80755, 21.42041),(39.80768, 21.42022),(39.80789, 21.41962),(39.80793, 21.41935),(39.80801, 21.41519),(39.80809, 21.41439),(39.80827, 21.41351),(39.80867, 21.41233),(39.80881, 21.41233),(39.80924, 21.41409),(39.80931, 21.41428),(39.80941, 21.41444),(39.80969, 21.41471),(39.81006, 21.41484),(39.81026, 21.41485),(39.81064, 21.41475),(39.81095, 21.41452),(39.81107, 21.41437),(39.8112, 21.414),(39.81121, 21.4138),(39.81118, 21.41361),(39.81088, 21.41239),(39.81311, 21.41248),(39.81908, 21.41249),(39.8197, 21.41244),(39.82006, 21.41251),(39.8204, 21.41251),(39.8209, 21.41367),(39.82144, 21.41481),(39.82169, 21.41562),(39.82182, 21.4166),(39.82176, 21.41785),(39.81945, 21.41827),(39.81851, 21.41855),(39.8182, 21.41879),(39.81809, 21.41895),(39.81801, 21.41913),(39.81796, 21.41951),(39.81807, 21.41989),(39.81831, 21.4202),(39.81865, 21.42039),(39.81884, 21.42043),(39.81903, 21.42044),(39.81994, 21.42021),(39.82154, 21.41992),(39.82154, 21.41997),(39.82102, 21.42106)], [(39.81069, 21.41022),(39.81115, 21.40581),(39.8114, 21.4056),(39.81159, 21.40525),(39.81163, 21.40487),(39.81157, 21.40426),(39.81209, 21.40103),(39.81211, 21.39966),(39.81193, 21.39818),(39.81097, 21.39505),(39.8115, 21.39475),(39.81252, 21.39399),(39.8134, 21.39321),(39.81416, 21.39245),(39.81607, 21.38983),(39.81662, 21.38928),(39.81728, 21.38874),(39.81819, 21.38814),(39.81928, 21.38768),(39.82014, 21.38742),(39.82059, 21.38733),(39.82164, 21.38725),(39.82287, 21.38723),(39.82462, 21.3871),(39.82443, 21.38782),(39.82441, 21.38855),(39.82457, 21.39047),(39.82464, 21.39192),(39.82479, 21.3973),(39.82485, 21.3976),(39.82514, 21.39842),(39.82525, 21.39865),(39.8258, 21.39947),(39.82635, 21.4),(39.82679, 21.40031),(39.82736, 21.40062),(39.82928, 21.40137),(39.82948, 21.40151),(39.82914, 21.40441),(39.82897, 21.40551),(39.8282, 21.40889),(39.82795, 21.41023),(39.82696, 21.41),(39.82658, 21.40996),(39.82664, 21.40825),(39.82658, 21.40787),(39.82649, 21.40769),(39.82622, 21.40741),(39.82605, 21.40731),(39.82567, 21.40722),(39.82529, 21.40728),(39.82511, 21.40737),(39.82483, 21.40764),(39.82473, 21.40781),(39.82464, 21.40819),(39.82458, 21.41008),(39.8235, 21.41017),(39.82153, 21.41019),(39.82001, 21.40827),(39.81977, 21.40778),(39.81909, 21.40579),(39.81879, 21.40505),(39.81827, 21.40417),(39.81699, 21.40224),(39.8159, 21.4008),(39.81463, 21.39957),(39.8141, 21.39915),(39.81392, 21.39908),(39.81353, 21.39903),(39.81316, 21.39914),(39.81299, 21.39925),(39.81274, 21.39955),(39.81267, 21.39973),(39.81262, 21.40012),(39.81273, 21.40049),(39.81284, 21.40066),(39.81298, 21.4008),(39.81326, 21.40103),(39.81445, 21.40218),(39.81537, 21.40342),(39.81656, 21.40521),(39.81696, 21.40588),(39.81722, 21.40652),(39.81794, 21.4086),(39.81826, 21.40925),(39.81898, 21.41019),(39.81328, 21.41012),(39.81218, 21.41014),(39.81134, 21.41021),(39.81069, 21.41022)], [(39.80999, 21.39018),(39.80983, 21.38939),(39.80816, 21.38343),(39.80609, 21.3751),(39.80867, 21.37472),(39.80969, 21.37875),(39.81147, 21.38151),(39.81202, 21.38214),(39.81339, 21.38345),(39.81628, 21.38612),(39.81677, 21.38646),(39.81575, 21.38713),(39.81478, 21.38799),(39.81395, 21.38898),(39.81265, 21.39076),(39.81228, 21.39111),(39.8121, 21.3912),(39.81181, 21.39121),(39.81033, 21.39058),(39.80999, 21.39018)], [(39.81909, 21.38545),(39.8181, 21.38496),(39.81759, 21.3846),(39.81476, 21.382),(39.81349, 21.38079),(39.81311, 21.38035),(39.81153, 21.37795),(39.81145, 21.37773),(39.81046, 21.37363),(39.81038, 21.37341),(39.81025, 21.37321),(39.80995, 21.37288),(39.80962, 21.3727),(39.80925, 21.37265),(39.80899, 21.37265),(39.80561, 21.37315),(39.80517, 21.37139),(39.80492, 21.37068),(39.80504, 21.37048),(39.8051, 21.37031),(39.80521, 21.36975),(39.8052, 21.36955),(39.80506, 21.36919),(39.80494, 21.36903),(39.80441, 21.36603),(39.80411, 21.36492),(39.80356, 21.36191),(39.80349, 21.36116),(39.80345, 21.35965),(39.80349, 21.35894),(39.80411, 21.35504),(39.80433, 21.35476),(39.80482, 21.35383),(39.80553, 21.35304),(39.8063, 21.35252),(39.80724, 21.35222),(39.80825, 21.35217),(39.80932, 21.35231),(39.81637, 21.35445),(39.81856, 21.35504),(39.82046, 21.35546),(39.82287, 21.35558),(39.82421, 21.35536),(39.82613, 21.35492),(39.83433, 21.35261),(39.83656, 21.35216),(39.83834, 21.35188),(39.83936, 21.35182),(39.84169, 21.3521),(39.84381, 21.35252),(39.84777, 21.35391),(39.84887, 21.35434),(39.84773, 21.35594),(39.84744, 21.35628),(39.84524, 21.35927),(39.83253, 21.37661),(39.8295, 21.38077),(39.82857, 21.38214),(39.82833, 21.38244),(39.82791, 21.38279),(39.82744, 21.38324),(39.82631, 21.3845),(39.82551, 21.38473),(39.82438, 21.38494),(39.82041, 21.38516),(39.81948, 21.38534),(39.81909, 21.38545)], [(39.80215, 21.35462),(39.8015, 21.35868),(39.80145, 21.35959),(39.80149, 21.36132),(39.80157, 21.36215),(39.80215, 21.36532),(39.80244, 21.36642),(39.80274, 21.36813),(39.79915, 21.3652),(39.79798, 21.36406),(39.79715, 21.36315),(39.79586, 21.36153),(39.79496, 21.36019),(39.79359, 21.35827),(39.79297, 21.35753),(39.79128, 21.35568),(39.79053, 21.35503),(39.78825, 21.35321),(39.78735, 21.35255),(39.78586, 21.35172),(39.78394, 21.35084),(39.78351, 21.35055),(39.78399, 21.34968),(39.78415, 21.34951),(39.78515, 21.34915),(39.78558, 21.34906),(39.78718, 21.34859),(39.78801, 21.34846),(39.78885, 21.34839),(39.78982, 21.34822),(39.79322, 21.3482),(39.79564, 21.34849),(39.79835, 21.34916),(39.79957, 21.34986),(39.80019, 21.35029),(39.80071, 21.35078),(39.80117, 21.35137),(39.80155, 21.35202),(39.80187, 21.35285),(39.80206, 21.35367),(39.80209, 21.35432),(39.80215, 21.35462)], [(39.779, 21.35047),(39.78, 21.35119),(39.78099, 21.35171),(39.78492, 21.35348),(39.78632, 21.35426),(39.78702, 21.35478),(39.78924, 21.35656),(39.78993, 21.35716),(39.79145, 21.35883),(39.79203, 21.35952),(39.79333, 21.36134),(39.79427, 21.36274),(39.79565, 21.36447),(39.79656, 21.36548),(39.79779, 21.36667),(39.80229, 21.37034),(39.80218, 21.37053),(39.80167, 21.37113),(39.80041, 21.37248),(39.79975, 21.3731),(39.79894, 21.37373),(39.79827, 21.37413),(39.79698, 21.37475),(39.79643, 21.37496),(39.79558, 21.37521),(39.79529, 21.37422),(39.79478, 21.3732),(39.79409, 21.37214),(39.79351, 21.37149),(39.793, 21.37101),(39.79201, 21.37035),(39.79122, 21.36997),(39.79048, 21.36972),(39.7891, 21.36947),(39.7887, 21.36944),(39.78832, 21.36949),(39.78814, 21.36957),(39.78784, 21.36982),(39.78767, 21.37017),(39.78763, 21.37037),(39.78718, 21.375),(39.78467, 21.37478),(39.78431, 21.37488),(39.78402, 21.37511),(39.78391, 21.37526),(39.78378, 21.3756),(39.78245, 21.38285),(39.78231, 21.38317),(39.78211, 21.38348),(39.77952, 21.38561),(39.77935, 21.38579),(39.77889, 21.38643),(39.77608, 21.391),(39.77578, 21.39181),(39.77555, 21.39291),(39.77492, 21.39694),(39.76541, 21.3964),(39.76273, 21.39622),(39.76342, 21.3915),(39.76482, 21.38563),(39.76512, 21.38401),(39.76545, 21.38126),(39.76562, 21.38041),(39.76602, 21.37916),(39.76859, 21.37278),(39.76972, 21.36938),(39.77036, 21.36686),(39.77091, 21.36513),(39.77314, 21.35887),(39.77478, 21.35448),(39.77517, 21.35368),(39.77568, 21.35293),(39.77631, 21.35217),(39.77681, 21.35168),(39.77761, 21.3511),(39.77831, 21.35073),(39.779, 21.35047)], [(39.76244, 21.39846),(39.76255, 21.39821),(39.76528, 21.3984),(39.77595, 21.399),(39.77653, 21.39906),(39.78224, 21.39999),(39.78304, 21.40016),(39.78406, 21.40081),(39.78349, 21.40178),(39.78316, 21.40249),(39.78263, 21.40405),(39.78258, 21.40444),(39.78267, 21.40478),(39.78245, 21.40582),(39.78226, 21.407),(39.78167, 21.40978),(39.78069, 21.41362),(39.77994, 21.41671),(39.77776, 21.41693),(39.77732, 21.41693),(39.7769, 21.41689),(39.77624, 21.41674),(39.77593, 21.41661),(39.773, 21.41486),(39.77164, 21.41423),(39.76892, 21.41344),(39.76744, 21.41319),(39.76656, 21.41312),(39.76083, 21.41289),(39.7596, 21.41288),(39.75858, 21.41283),(39.756, 21.4126),(39.75567, 21.41255),(39.75472, 21.41221),(39.75448, 21.41203),(39.7544, 21.41191),(39.75435, 21.41171),(39.75437, 21.41133),(39.75446, 21.41111),(39.75488, 21.41038),(39.75712, 21.40804),(39.75802, 21.40692),(39.75933, 21.40518),(39.7607, 21.40297),(39.76127, 21.40197),(39.76186, 21.40076),(39.76209, 21.40008),(39.76228, 21.39934),(39.76244, 21.39846)], [(39.78571, 21.4023),(39.78613, 21.40226),(39.78735, 21.40325),(39.78684, 21.40459),(39.78685, 21.40595),(39.78943, 21.41476),(39.79045, 21.41882),(39.79071, 21.41927),(39.79203, 21.42035),(39.7921, 21.42071),(39.79178, 21.42117),(39.79074, 21.42159),(39.7902, 21.42203),(39.78993, 21.42249),(39.78974, 21.42357),(39.78774, 21.42363),(39.78577, 21.42328),(39.78521, 21.42357),(39.78486, 21.42441),(39.78493, 21.42495),(39.78537, 21.42543),(39.78674, 21.42583),(39.7884, 21.42607),(39.78817, 21.42683),(39.7881, 21.428),(39.78914, 21.43215),(39.7889, 21.43869),(39.78737, 21.43877),(39.78262, 21.43967),(39.78006, 21.43961),(39.77771, 21.43792),(39.77742, 21.43637),(39.77739, 21.43356),(39.77763, 21.4322),(39.77929, 21.42676),(39.78007, 21.42488),(39.78048, 21.42431),(39.78176, 21.42346),(39.78296, 21.42427),(39.78354, 21.42436),(39.78438, 21.42393),(39.78469, 21.42344),(39.78459, 21.42268),(39.78345, 21.42155),(39.78336, 21.41933),(39.78243, 21.41679),(39.78242, 21.41498),(39.78361, 21.41026),(39.78458, 21.40542),(39.78489, 21.40468),(39.7849, 21.40411),(39.78571, 21.4023)], [(39.77052, 21.43821),(39.76961, 21.43812),(39.76832, 21.4382),(39.76767, 21.43829),(39.76811, 21.43749),(39.76863, 21.4368),(39.76943, 21.43601),(39.77156, 21.43438),(39.77239, 21.43353),(39.77295, 21.43277),(39.77411, 21.43069),(39.7749, 21.42952),(39.77558, 21.42859),(39.77673, 21.42736),(39.77594, 21.42991),(39.77575, 21.4307),(39.77542, 21.43177),(39.77522, 21.43286),(39.77508, 21.43432),(39.77509, 21.43554),(39.77488, 21.43577),(39.77474, 21.43605),(39.77467, 21.43622),(39.77444, 21.43711),(39.77419, 21.43754),(39.77404, 21.43771),(39.77377, 21.43791),(39.77352, 21.43805),(39.77287, 21.43824),(39.77085, 21.43816),(39.77052, 21.43821)], [(39.77683, 21.42438),(39.77605, 21.425),(39.77496, 21.42603),(39.7739, 21.42729),(39.77313, 21.42836),(39.77185, 21.4304),(39.77114, 21.43164),(39.77043, 21.4325),(39.76964, 21.4332),(39.76827, 21.43424),(39.76732, 21.43509),(39.76667, 21.43583),(39.76622, 21.43647),(39.76497, 21.43865),(39.76336, 21.43887),(39.76248, 21.43875),(39.76215, 21.43863),(39.75945, 21.4361),(39.75799, 21.43499),(39.75779, 21.43487),(39.75661, 21.43435),(39.75139, 21.43268),(39.75032, 21.43203),(39.74784, 21.42997),(39.74759, 21.42982),(39.74683, 21.4295),(39.74612, 21.42931),(39.74467, 21.42912),(39.74448, 21.42896),(39.7443, 21.42888),(39.74194, 21.4285),(39.74145, 21.42827),(39.74102, 21.42776),(39.7407, 21.42681),(39.74058, 21.42589),(39.74083, 21.42453),(39.74184, 21.4225),(39.74313, 21.42067),(39.74414, 21.41962),(39.74463, 21.41918),(39.74722, 21.41719),(39.74816, 21.41667),(39.75131, 21.41514),(39.7528, 21.4143),(39.7546, 21.41468),(39.75722, 21.41503),(39.7665, 21.41541),(39.76768, 21.41554),(39.7691, 21.41584),(39.77057, 21.41631),(39.77193, 21.41692),(39.77339, 21.41779),(39.7742, 21.41838),(39.77635, 21.41978),(39.77611, 21.41999),(39.77594, 21.42034),(39.77589, 21.42086),(39.77591, 21.42111),(39.77604, 21.42177),(39.77613, 21.42203),(39.77649, 21.42272),(39.77693, 21.42331),(39.77708, 21.42367),(39.77707, 21.42393),(39.77683, 21.42438)], [(39.73364, 21.42933),(39.73324, 21.42934),(39.72777, 21.42885),(39.72661, 21.42861),(39.72586, 21.42833),(39.71975, 21.42438),(39.71903, 21.424),(39.71198, 21.42198),(39.71237, 21.41843),(39.71241, 21.4169),(39.71237, 21.41582),(39.71224, 21.4153),(39.71207, 21.41499),(39.71028, 21.41276),(39.70957, 21.412),(39.70914, 21.4116),(39.70794, 21.41071),(39.70769, 21.41057),(39.70642, 21.41012),(39.70575, 21.40943),(39.70451, 21.40799),(39.70442, 21.40779),(39.70426, 21.40579),(39.70437, 21.4053),(39.70468, 21.40483),(39.70531, 21.40433),(39.71243, 21.39961),(39.7206, 21.41007),(39.72131, 21.41077),(39.72202, 21.41134),(39.72276, 21.41188),(39.72424, 21.41269),(39.72578, 21.41323),(39.72663, 21.41346),(39.72741, 21.41357),(39.72886, 21.41366),(39.73014, 21.4136),(39.7346, 21.41323),(39.73624, 21.41339),(39.73895, 21.41313),(39.74098, 21.41303),(39.74174, 21.41319),(39.74348, 21.41408),(39.74416, 21.41454),(39.74445, 21.41478),(39.74463, 21.41504),(39.74467, 21.41523),(39.74465, 21.41565),(39.74447, 21.41608),(39.74416, 21.41649),(39.74239, 21.41799),(39.74121, 21.41922),(39.74065, 21.41993),(39.73973, 21.42137),(39.73894, 21.42307),(39.7385, 21.42385),(39.73799, 21.42463),(39.73672, 21.42624),(39.73364, 21.42933)], [(39.71409, 21.39848),(39.7259, 21.39043),(39.72856, 21.39237),(39.72897, 21.39258),(39.72946, 21.39268),(39.72985, 21.39281),(39.73553, 21.39698),(39.73563, 21.39707),(39.73609, 21.39767),(39.73676, 21.39815),(39.74249, 21.40142),(39.743, 21.40162),(39.74336, 21.40168),(39.7445, 21.40156),(39.74465, 21.40162),(39.74535, 21.40201),(39.74586, 21.40221),(39.74731, 21.4031),(39.75127, 21.4053),(39.75207, 21.40561),(39.75415, 21.40664),(39.75489, 21.40686),(39.75501, 21.40693),(39.75368, 21.40835),(39.75296, 21.4087),(39.75071, 21.40918),(39.74696, 21.41005),(39.74601, 21.41024),(39.74227, 21.41003),(39.74019, 21.41017),(39.73721, 21.41052),(39.73608, 21.41079),(39.73591, 21.41089),(39.73567, 21.41113),(39.72999, 21.4116),(39.72892, 21.41166),(39.72757, 21.41157),(39.72697, 21.41149),(39.72641, 21.41133),(39.7251, 21.41088),(39.72389, 21.41023),(39.72326, 21.40977),(39.72261, 21.40924),(39.72205, 21.40869),(39.71409, 21.39848)], [(39.7457, 21.43127),(39.74624, 21.43142),(39.74667, 21.4316),(39.7491, 21.43362),(39.75045, 21.43445),(39.75067, 21.43455),(39.75586, 21.43621),(39.75688, 21.43666),(39.75811, 21.43759),(39.7606, 21.43995),(39.76102, 21.44029),(39.76115, 21.44038),(39.76188, 21.44066),(39.7621, 21.44072),(39.76323, 21.44087),(39.76349, 21.44087),(39.76572, 21.44057),(39.76592, 21.44058),(39.76625, 21.4405),(39.76848, 21.4402),(39.76965, 21.44012),(39.77019, 21.44018),(39.77471, 21.44129),(39.77662, 21.44142),(39.77705, 21.44257),(39.77753, 21.44343),(39.77792, 21.444),(39.77863, 21.44489),(39.77936, 21.44567),(39.7797, 21.44597),(39.7803, 21.44638),(39.78107, 21.44684),(39.7823, 21.4475),(39.78364, 21.44835),(39.78622, 21.45028),(39.78775, 21.45163),(39.78853, 21.45236),(39.79426, 21.45875),(39.79488, 21.45938),(39.79706, 21.46135),(39.79869, 21.4625),(39.80185, 21.46439),(39.80201, 21.46461),(39.80207, 21.46475),(39.80206, 21.46486),(39.80187, 21.46508),(39.79992, 21.4663),(39.79979, 21.46644),(39.79968, 21.46663),(39.79914, 21.467),(39.79814, 21.46788),(39.79751, 21.46867),(39.79695, 21.46959),(39.79658, 21.47045),(39.79623, 21.47164),(39.7932, 21.48709),(39.79286, 21.48954),(39.79217, 21.49622),(39.79191, 21.49914),(39.79191, 21.50009),(39.79167, 21.502),(39.79039, 21.5155),(39.7749, 21.51163),(39.77208, 21.51099),(39.7654, 21.51023),(39.74443, 21.5064),(39.74326, 21.50603),(39.74213, 21.50544),(39.74139, 21.50491),(39.74068, 21.50419),(39.7399, 21.50329),(39.73911, 21.50203),(39.73868, 21.50103),(39.73842, 21.49995),(39.73826, 21.49836),(39.73919, 21.49113),(39.73916, 21.48952),(39.73895, 21.48839),(39.73888, 21.48816),(39.73839, 21.4871),(39.73787, 21.4862),(39.73693, 21.48477),(39.73567, 21.48348),(39.73286, 21.48021),(39.73059, 21.47715),(39.72508, 21.46749),(39.72433, 21.46585),(39.72302, 21.46073),(39.72287, 21.45961),(39.72278, 21.45841),(39.72284, 21.45738),(39.72295, 21.45633),(39.72389, 21.45255),(39.72481, 21.45005),(39.73039, 21.43827),(39.7314, 21.43644),(39.73183, 21.43594),(39.73214, 21.43568),(39.73369, 21.43469),(39.73481, 21.43411),(39.73548, 21.43368),(39.73637, 21.433),(39.73709, 21.43238),(39.73785, 21.43181),(39.73821, 21.43158),(39.73856, 21.43144),(39.73898, 21.43133),(39.73951, 21.43126),(39.74295, 21.43112),(39.7457, 21.43127)], [(39.7791, 21.44156),(39.77939, 21.44157),(39.78003, 21.44187),(39.78046, 21.442),(39.78123, 21.44207),(39.78208, 21.44195),(39.78301, 21.44163),(39.78764, 21.44075),(39.78822, 21.44077),(39.78917, 21.44068),(39.79022, 21.44082),(39.7976, 21.44116),(39.7978, 21.44115),(39.79799, 21.4411),(39.79933, 21.44116),(39.79964, 21.44126),(39.80102, 21.44147),(39.80255, 21.44181),(39.80419, 21.4421),(39.80647, 21.44221),(39.80682, 21.44216),(39.80854, 21.4424),(39.8081, 21.44453),(39.80796, 21.44538),(39.8078, 21.44743),(39.80767, 21.44769),(39.80763, 21.44789),(39.80767, 21.44828),(39.80774, 21.44843),(39.80761, 21.45109),(39.80736, 21.4538),(39.80599, 21.45785),(39.8059, 21.45822),(39.80589, 21.45902),(39.80592, 21.45926),(39.80609, 21.45985),(39.80634, 21.46041),(39.80595, 21.46096),(39.8057, 21.46124),(39.8038, 21.46239),(39.80349, 21.46246),(39.80322, 21.46244),(39.79996, 21.46056),(39.79871, 21.45967),(39.79745, 21.45865),(39.79647, 21.45779),(39.79588, 21.4572),(39.78985, 21.45056),(39.78754, 21.44849),(39.7862, 21.44745),(39.78483, 21.44646),(39.78342, 21.44554),(39.78147, 21.44446),(39.78087, 21.44401),(39.77967, 21.44266),(39.7791, 21.44156)], [(39.93436, 21.4816),(39.93241, 21.48133),(39.92917, 21.48071),(39.92795, 21.48063),(39.92391, 21.48004),(39.92213, 21.47963),(39.92017, 21.47891),(39.91245, 21.47545),(39.91099, 21.47469),(39.9098, 21.47394),(39.90843, 21.47286),(39.90708, 21.4716),(39.90445, 21.46837),(39.90205, 21.46552),(39.90002, 21.46344),(39.89957, 21.4628),(39.8993, 21.46223),(39.89803, 21.45836),(39.898, 21.45747),(39.89804, 21.45702),(39.90192, 21.44447),(39.9022, 21.44387),(39.90238, 21.44363),(39.90272, 21.44337),(39.90406, 21.44277),(39.90471, 21.44266),(39.90601, 21.44278),(39.90621, 21.44277),(39.90655, 21.44267),(39.90946, 21.44274),(39.91033, 21.44282),(39.91091, 21.44294),(39.91136, 21.44311),(39.912, 21.44341),(39.91274, 21.44388),(39.91397, 21.44474),(39.9147, 21.44511),(39.91571, 21.44553),(39.91731, 21.44594),(39.9197, 21.44635),(39.92104, 21.44677),(39.92156, 21.44697),(39.92234, 21.44739),(39.92405, 21.44847),(39.92538, 21.44954),(39.92675, 21.45043),(39.92962, 21.4519),(39.93035, 21.45214),(39.93227, 21.45265),(39.93426, 21.45311),(39.93484, 21.45321),(39.93669, 21.45325),(39.9378, 21.4532),(39.93928, 21.45321),(39.94077, 21.45341),(39.94229, 21.45381),(39.94572, 21.45459),(39.94649, 21.45483),(39.94901, 21.45579),(39.93559, 21.4801),(39.93508, 21.48113),(39.93479, 21.48161),(39.93436, 21.4816)], [(39.9044, 21.42901),(39.90248, 21.42675),(39.90195, 21.4262),(39.90111, 21.42499),(39.90059, 21.42408),(39.90038, 21.42359),(39.89991, 21.42209),(39.89946, 21.42086),(39.89889, 21.41972),(39.89911, 21.41951),(39.89926, 21.41931),(39.89948, 21.41892),(39.89961, 21.41855),(39.89964, 21.41816),(39.89957, 21.41767),(39.89948, 21.41741),(39.89925, 21.417),(39.89899, 21.41667),(39.89887, 21.41624),(39.89879, 21.41607),(39.89867, 21.41591),(39.89852, 21.41578),(39.89835, 21.41569),(39.89816, 21.41562),(39.89777, 21.41561),(39.89741, 21.41575),(39.89725, 21.41587),(39.89712, 21.41602),(39.89703, 21.41619),(39.89696, 21.41645),(39.89537, 21.41379),(39.89576, 21.4136),(39.89645, 21.41343),(39.89707, 21.41339),(39.89798, 21.41346),(39.89948, 21.41366),(39.90026, 21.41364),(39.90105, 21.4135),(39.90182, 21.41325),(39.90257, 21.41288),(39.90323, 21.41248),(39.90385, 21.41197),(39.90475, 21.41093),(39.90476, 21.41108),(39.90482, 21.41126),(39.90492, 21.41143),(39.9052, 21.4117),(39.90538, 21.41179),(39.90589, 21.4119),(39.90633, 21.41211),(39.90744, 21.4129),(39.90772, 21.41318),(39.9078, 21.4133),(39.90791, 21.41361),(39.90793, 21.41377),(39.9079, 21.41405),(39.90795, 21.41444),(39.90814, 21.41478),(39.90724, 21.41976),(39.90704, 21.42054),(39.90545, 21.42577),(39.9044, 21.42901)], [(39.8047, 21.42149),(39.80352, 21.42129),(39.80246, 21.42135),(39.80157, 21.42154),(39.79665, 21.42328),(39.79613, 21.42337),(39.79422, 21.4236),(39.79363, 21.42362),(39.79194, 21.42358),(39.79197, 21.42339),(39.79246, 21.42319),(39.79288, 21.42298),(39.79309, 21.42284),(39.79357, 21.42239),(39.79395, 21.4219),(39.79415, 21.42135),(39.7942, 21.42109),(39.79422, 21.42034),(39.79408, 21.41965),(39.7938, 21.41913),(39.79365, 21.41892),(39.79326, 21.41852),(39.79252, 21.41799),(39.79244, 21.41749),(39.79228, 21.41685),(39.78902, 21.4057),(39.78897, 21.40545),(39.78905, 21.40469),(39.78917, 21.40441),(39.7896, 21.40383),(39.7899, 21.40361),(39.79015, 21.40348),(39.79091, 21.4033),(39.79119, 21.40331),(39.79188, 21.40345),(39.79208, 21.40353),(39.7923, 21.40367),(39.79685, 21.4084),(39.79791, 21.40973),(39.79986, 21.41254),(39.80035, 21.41301),(39.80145, 21.41381),(39.80223, 21.41458),(39.80241, 21.41472),(39.80482, 21.41733),(39.80568, 21.41832),(39.80568, 21.41932),(39.80526, 21.41977),(39.8051, 21.41999),(39.80494, 21.4203),(39.8047, 21.42107),(39.8047, 21.42149)], [(39.79951, 21.40831),(39.79848, 21.40702),(39.79501, 21.40333),(39.79373, 21.40207),(39.79355, 21.40193),(39.79291, 21.40156),(39.79209, 21.40128),(39.79129, 21.40117),(39.7904, 21.40122),(39.78952, 21.40145),(39.78886, 21.40175),(39.78761, 21.40064),(39.78831, 21.39977),(39.78842, 21.39961),(39.7885, 21.39941),(39.78889, 21.39915),(39.78934, 21.39892),(39.78975, 21.39885),(39.79039, 21.39844),(39.7913, 21.39812),(39.79528, 21.39727),(39.79685, 21.39697),(39.79808, 21.39687),(39.80179, 21.39686),(39.80549, 21.39681),(39.80651, 21.39668),(39.80725, 21.39666),(39.80743, 21.3966),(39.80771, 21.39643),(39.80899, 21.39602),(39.80971, 21.39842),(39.80979, 21.39893),(39.80983, 21.39956),(39.80955, 21.39958),(39.80936, 21.39965),(39.8092, 21.39975),(39.80893, 21.40003),(39.8088, 21.4004),(39.80766, 21.40803),(39.80749, 21.40874),(39.8071, 21.4101),(39.80666, 21.41003),(39.80538, 21.40971),(39.8038, 21.40937),(39.80309, 21.40917),(39.79951, 21.40831)], [(39.78528, 21.39922),(39.78493, 21.39899),(39.78591, 21.39763),(39.78619, 21.3968),(39.78824, 21.38477),(39.78896, 21.37718),(39.79196, 21.37747),(39.79386, 21.37747),(39.79431, 21.38367),(39.79466, 21.38521),(39.79527, 21.38685),(39.7963, 21.39301),(39.79642, 21.39481),(39.79092, 21.39593),(39.78942, 21.39642),(39.78822, 21.39699),(39.78722, 21.3976),(39.78651, 21.3981),(39.78528, 21.39922)], [(39.79842, 21.39469),(39.79828, 21.39273),(39.79723, 21.38643),(39.79656, 21.38457),(39.7963, 21.38345),(39.79584, 21.3772),(39.79782, 21.37657),(39.80001, 21.37542),(39.80108, 21.37459),(39.80295, 21.37269),(39.80319, 21.37258),(39.80748, 21.38942),(39.80783, 21.39052),(39.80783, 21.39119),(39.8077, 21.39161),(39.80752, 21.39189),(39.80687, 21.39255),(39.80579, 21.39415),(39.80519, 21.39458),(39.79842, 21.39469)], [(39.86272, 21.42529),(39.86276, 21.42495),(39.86273, 21.42476),(39.86266, 21.42457),(39.86255, 21.42441),(39.8638, 21.42428),(39.8642, 21.42419),(39.86474, 21.42401),(39.86583, 21.42353),(39.86774, 21.42232),(39.87468, 21.41769),(39.87519, 21.41722),(39.87556, 21.41679),(39.87623, 21.41572),(39.87632, 21.41563),(39.87919, 21.41359),(39.88011, 21.41502),(39.88112, 21.41677),(39.88159, 21.4177),(39.88115, 21.41807),(39.88045, 21.41821),(39.87899, 21.41871),(39.87817, 21.41908),(39.87653, 21.41992),(39.87497, 21.42078),(39.87348, 21.42172),(39.87086, 21.42355),(39.86554, 21.42759),(39.86429, 21.4284),(39.86344, 21.42888),(39.86315, 21.42914),(39.86304, 21.42931),(39.86297, 21.42949),(39.86288, 21.42955),(39.86345, 21.42732),(39.86493, 21.42715),(39.86628, 21.42693),(39.86645, 21.42685),(39.86674, 21.42659),(39.86691, 21.42623),(39.86694, 21.42604),(39.86693, 21.42584),(39.8668, 21.42548),(39.86654, 21.42519),(39.86618, 21.42502),(39.86599, 21.42499),(39.86579, 21.425),(39.86465, 21.42517),(39.86303, 21.42536),(39.86272, 21.42529)], [(39.88137, 21.4133),(39.88234, 21.41345),(39.88299, 21.41336),(39.88369, 21.41308),(39.88421, 21.41275),(39.88498, 21.41196),(39.88634, 21.40971),(39.88889, 21.40731),(39.89212, 21.41262),(39.89182, 21.41282),(39.89033, 21.41422),(39.88928, 21.41434),(39.88824, 21.41479),(39.88626, 21.41669),(39.88579, 21.41696),(39.88471, 21.41737),(39.88379, 21.4176),(39.88287, 21.41579),(39.88137, 21.4133)], [(39.89343, 21.41478),(39.89599, 21.41909),(39.8969, 21.42055),(39.89729, 21.42134),(39.89771, 21.42243),(39.8981, 21.42371),(39.89874, 21.4253),(39.89905, 21.42595),(39.89945, 21.42665),(39.89984, 21.42723),(39.90044, 21.42799),(39.90305, 21.43104),(39.9031, 21.43127),(39.90311, 21.43155),(39.90306, 21.43194),(39.9017, 21.43639),(39.90122, 21.43585),(39.90098, 21.43544),(39.90059, 21.43417),(39.90029, 21.43348),(39.89965, 21.43238),(39.89683, 21.4285),(39.89643, 21.42802),(39.89572, 21.4274),(39.89208, 21.42467),(39.8859, 21.42038),(39.88621, 21.41977),(39.8863, 21.41948),(39.88648, 21.41926),(39.88752, 21.4184),(39.88777, 21.4181),(39.88784, 21.41793),(39.88939, 21.41644),(39.88975, 21.41629),(39.89056, 21.41626),(39.891, 21.41612),(39.89343, 21.41478)], [(39.90063, 21.43987),(39.89683, 21.45214),(39.8956, 21.45625),(39.89544, 21.45648),(39.89523, 21.45671),(39.89504, 21.45685),(39.89446, 21.45714),(39.89298, 21.45776),(39.89025, 21.4587),(39.88889, 21.4589),(39.88829, 21.45893),(39.88695, 21.45888),(39.88613, 21.45869),(39.88496, 21.45834),(39.88205, 21.45719),(39.88115, 21.45672),(39.87854, 21.45483),(39.87734, 21.45423),(39.87619, 21.45386),(39.871, 21.45278),(39.87018, 21.45257),(39.86828, 21.45177),(39.86695, 21.45101),(39.86592, 21.45008),(39.86505, 21.44914),(39.86307, 21.44683),(39.86096, 21.44427),(39.86036, 21.44351),(39.85993, 21.44287),(39.85876, 21.44092),(39.85863, 21.4405),(39.85853, 21.4385),(39.85845, 21.43789),(39.85841, 21.4377),(39.85799, 21.43648),(39.85816, 21.43625),(39.85861, 21.4358),(39.86082, 21.43328),(39.86139, 21.43272),(39.86152, 21.43255),(39.86213, 21.43226),(39.86471, 21.4308),(39.86495, 21.4305),(39.86503, 21.43028),(39.86671, 21.42921),(39.87205, 21.42516),(39.87456, 21.4234),(39.87601, 21.42249),(39.87745, 21.42169),(39.87968, 21.42059),(39.88, 21.42048),(39.88078, 21.42029),(39.88189, 21.4201),(39.8827, 21.41988),(39.88297, 21.4204),(39.8836, 21.42141),(39.88376, 21.42162),(39.88439, 21.4222),(39.89129, 21.42698),(39.89334, 21.42853),(39.89452, 21.42953),(39.89488, 21.42994),(39.89779, 21.43386),(39.89841, 21.43486),(39.89868, 21.43546),(39.89962, 21.43833),(39.89972, 21.4385),(39.8999, 21.43867),(39.90027, 21.43939),(39.90063, 21.43987)], [(39.89963, 21.38706),(39.8989, 21.38816),(39.8987, 21.38839),(39.89842, 21.38854),(39.89495, 21.38902),(39.8945, 21.38902),(39.89358, 21.38881),(39.89293, 21.38854),(39.88689, 21.38662),(39.88679, 21.38636),(39.88745, 21.38587),(39.89342, 21.38207),(39.89382, 21.38213),(39.89462, 21.38259),(39.89517, 21.38281),(39.8958, 21.38288),(39.89673, 21.3828),(39.89855, 21.38564),(39.89963, 21.38706)], [(39.89348, 21.39296),(39.89286, 21.39348),(39.89194, 21.39401),(39.88552, 21.39692),(39.8847, 21.3955),(39.88413, 21.39366),(39.88401, 21.39185),(39.88434, 21.39012),(39.88475, 21.38944),(39.88506, 21.38913),(39.88593, 21.38845),(39.88615, 21.38848),(39.88648, 21.38874),(39.88738, 21.38915),(39.89272, 21.39085),(39.89371, 21.39128),(39.89392, 21.39143),(39.89398, 21.39158),(39.89408, 21.39224),(39.89348, 21.39296)], [(39.84886, 21.43817),(39.85002, 21.43712),(39.85126, 21.43554),(39.85158, 21.43529),(39.85427, 21.4341),(39.85471, 21.4338),(39.85655, 21.43378),(39.85785, 21.43364),(39.85715, 21.43444),(39.85687, 21.43452),(39.85609, 21.43509),(39.85562, 21.43524),(39.85418, 21.43543),(39.85305, 21.43578),(39.85245, 21.43611),(39.85064, 21.43763),(39.85024, 21.43783),(39.84886, 21.43817)], [(39.85972, 21.41943),(39.86333, 21.41545),(39.8703, 21.40829),(39.87409, 21.40552),(39.87517, 21.40688),(39.87599, 21.40806),(39.87819, 21.41186),(39.87494, 21.41418),(39.87458, 21.41459),(39.87399, 21.41555),(39.87339, 21.41616),(39.86496, 21.42173),(39.86398, 21.42216),(39.86342, 21.42231),(39.86213, 21.42238),(39.85971, 21.42177),(39.86001, 21.42041),(39.85992, 21.41983),(39.85972, 21.41943)], [(39.87571, 21.40434),(39.87841, 21.40243),(39.88448, 21.39962),(39.88786, 21.4056),(39.8874, 21.40591),(39.8848, 21.40843),(39.88417, 21.40934),(39.8834, 21.41072),(39.88317, 21.41098),(39.8828, 21.41129),(39.88232, 21.41144),(39.88197, 21.41139),(39.88098, 21.41104),(39.88003, 21.41105),(39.8777, 21.40702),(39.87679, 21.40571),(39.87571, 21.40434)], [(39.88646, 21.39869),(39.89349, 21.39545),(39.8941, 21.39505),(39.89698, 21.39264),(39.89974, 21.3939),(39.89882, 21.39616),(39.89759, 21.39804),(39.8959, 21.40038),(39.89488, 21.40142),(39.89409, 21.40204),(39.89129, 21.40342),(39.88971, 21.40437),(39.88646, 21.39869)], [(39.95221, 21.34705),(39.95232, 21.34622),(39.95252, 21.3457),(39.95278, 21.34519),(39.95313, 21.34467),(39.95355, 21.34423),(39.95402, 21.34383),(39.95944, 21.34052),(39.96716, 21.3359),(39.96818, 21.33546),(39.96952, 21.33507),(39.97082, 21.33491),(39.97164, 21.33491),(39.97628, 21.33524),(39.97843, 21.33549),(39.98862, 21.33691),(39.99004, 21.33729),(39.99099, 21.33767),(39.9921, 21.33826),(39.99311, 21.339),(39.99377, 21.33959),(39.99466, 21.34067),(39.99517, 21.3415),(39.9956, 21.34231),(39.99591, 21.34323),(39.99606, 21.34384),(39.99627, 21.34514),(39.99627, 21.34711),(39.99622, 21.34781),(39.99493, 21.3532),(39.99449, 21.35441),(39.99377, 21.35575),(39.99337, 21.3563),(39.99265, 21.35702),(39.99047, 21.35841),(39.98785, 21.36027),(39.98739, 21.36066),(39.98664, 21.36148),(39.98629, 21.36203),(39.98604, 21.36261),(39.98588, 21.36326),(39.98582, 21.36386),(39.98584, 21.36461),(39.98597, 21.36522),(39.98613, 21.36571),(39.98645, 21.36645),(39.98769, 21.36884),(39.98792, 21.36953),(39.98811, 21.37052),(39.98876, 21.37739),(39.98869, 21.37821),(39.98863, 21.37841),(39.98851, 21.37867),(39.98808, 21.37931),(39.98785, 21.37954),(39.98758, 21.37973),(39.98671, 21.38013),(39.98624, 21.38023),(39.98142, 21.38031),(39.9805, 21.38024),(39.97978, 21.38003),(39.97949, 21.37987),(39.97917, 21.37962),(39.97889, 21.37936),(39.97864, 21.37904),(39.9778, 21.37783),(39.97605, 21.37561),(39.96729, 21.36519),(39.96247, 21.36003),(39.95955, 21.35682),(39.95867, 21.35593),(39.95499, 21.3519),(39.95402, 21.35093),(39.95309, 21.34984),(39.95262, 21.34915),(39.95236, 21.34849),(39.95225, 21.34799),(39.95218, 21.34733),(39.95221, 21.34705)], [(39.80959, 21.42471),(39.80961, 21.42502),(39.80967, 21.4252),(39.80976, 21.42538),(39.80988, 21.42553),(39.81003, 21.42565),(39.81021, 21.42574),(39.81039, 21.4258),(39.81059, 21.42582),(39.81079, 21.4258),(39.81097, 21.42574),(39.81115, 21.42565),(39.8113, 21.42553),(39.81142, 21.42538),(39.81157, 21.42502),(39.81422, 21.4254),(39.81499, 21.42539),(39.81683, 21.42523),(39.8172, 21.4259),(39.81788, 21.42678),(39.81735, 21.42785),(39.81708, 21.42816),(39.817, 21.42821),(39.81458, 21.42838),(39.8142, 21.42837),(39.81313, 21.4282),(39.81278, 21.42826),(39.81207, 21.42855),(39.81173, 21.42888),(39.81161, 21.42903),(39.81152, 21.42921),(39.81137, 21.42959),(39.81126, 21.43002),(39.81082, 21.4313),(39.80838, 21.43082),(39.80778, 21.43079),(39.80781, 21.4305),(39.80793, 21.4264),(39.80787, 21.4244),(39.80959, 21.42471)], [(39.80556, 21.43147),(39.80353, 21.43246),(39.80246, 21.43184),(39.80176, 21.43158),(39.80132, 21.43147),(39.80103, 21.43144),(39.80025, 21.43149),(39.79977, 21.43161),(39.79946, 21.43174),(39.79918, 21.43192),(39.79694, 21.43394),(39.79578, 21.43486),(39.79286, 21.43677),(39.79262, 21.43702),(39.79251, 21.43723),(39.79246, 21.43742),(39.79245, 21.43762),(39.79253, 21.43798),(39.79272, 21.43828),(39.79297, 21.43852),(39.79326, 21.43865),(39.79353, 21.43869),(39.79384, 21.43864),(39.79402, 21.43856),(39.79789, 21.43598),(39.80018, 21.4339),(39.80064, 21.43359),(39.80097, 21.43358),(39.80149, 21.43371),(39.80259, 21.43438),(39.80291, 21.4345),(39.8032, 21.43456),(39.80343, 21.43458),(39.80388, 21.43455),(39.8048, 21.43423),(39.80446, 21.43495),(39.80406, 21.43567),(39.80366, 21.43693),(39.80347, 21.43812),(39.80332, 21.43981),(39.80118, 21.43938),(39.79973, 21.43917),(39.79102, 21.43876),(39.79131, 21.43242),(39.79123, 21.43161),(39.79026, 21.42778),(39.79024, 21.42756),(39.79027, 21.42715),(39.79032, 21.42696),(39.79049, 21.42663),(39.79096, 21.42597),(39.79434, 21.4257),(39.79706, 21.42535),(39.80209, 21.42359),(39.80281, 21.42342),(39.8032, 21.42339),(39.80401, 21.42349),(39.80572, 21.42393),(39.80578, 21.4274),(39.80564, 21.43075),(39.80556, 21.43147)], [(39.80743, 21.43297),(39.8081, 21.43292),(39.81017, 21.43334),(39.80879, 21.44042),(39.80641, 21.44006),(39.80544, 21.44004),(39.80577, 21.43726),(39.80612, 21.43633),(39.80671, 21.43526),(39.80743, 21.43297)], [(39.80978, 21.44779),(39.80994, 21.44566),(39.81007, 21.44487),(39.81053, 21.44265),(39.81116, 21.44264),(39.81154, 21.44256),(39.81225, 21.44226),(39.81248, 21.44211),(39.81366, 21.44109),(39.81384, 21.44099),(39.81679, 21.44037),(39.81781, 21.44011),(39.82104, 21.43947),(39.8222, 21.43916),(39.82287, 21.43891),(39.82379, 21.43843),(39.82508, 21.43789),(39.82657, 21.43749),(39.82684, 21.43737),(39.82727, 21.4371),(39.82865, 21.43639),(39.82907, 21.43623),(39.82934, 21.4363),(39.82961, 21.43628),(39.83008, 21.43695),(39.8317, 21.43866),(39.83196, 21.439),(39.83218, 21.43955),(39.8324, 21.43989),(39.83262, 21.44011),(39.83308, 21.44043),(39.83338, 21.44071),(39.83419, 21.44194),(39.83469, 21.44238),(39.83493, 21.44253),(39.83535, 21.44272),(39.83558, 21.44279),(39.83628, 21.44289),(39.83853, 21.44254),(39.83909, 21.44226),(39.8397, 21.44168),(39.83977, 21.44165),(39.84008, 21.44161),(39.84192, 21.44153),(39.843, 21.44143),(39.84509, 21.4411),(39.84799, 21.44052),(39.84946, 21.44019),(39.84981, 21.44021),(39.84994, 21.44025),(39.85134, 21.44181),(39.85116, 21.44253),(39.85117, 21.44267),(39.85047, 21.4439),(39.85008, 21.44479),(39.84952, 21.44592),(39.84796, 21.44857),(39.84741, 21.44971),(39.84589, 21.45357),(39.84554, 21.45432),(39.84375, 21.45712),(39.84259, 21.45929),(39.84225, 21.46015),(39.84203, 21.46152),(39.84189, 21.46327),(39.8414, 21.46556),(39.84112, 21.46739),(39.84112, 21.46789),(39.84122, 21.46847),(39.84135, 21.46887),(39.84146, 21.4691),(39.84191, 21.4698),(39.84204, 21.4701),(39.84217, 21.47069),(39.84223, 21.47113),(39.84204, 21.47546),(39.84198, 21.47572),(39.84187, 21.47595),(39.84166, 21.47621),(39.84137, 21.4764),(39.84125, 21.47644),(39.84102, 21.4765),(39.84071, 21.47651),(39.83664, 21.47574),(39.836, 21.4757),(39.83537, 21.47573),(39.83436, 21.47593),(39.83347, 21.47628),(39.83274, 21.47666),(39.83259, 21.47668),(39.83234, 21.47663),(39.83211, 21.47648),(39.83203, 21.4764),(39.83197, 21.47626),(39.83172, 21.47361),(39.83147, 21.47277),(39.83127, 21.4723),(39.83087, 21.47161),(39.82925, 21.46941),(39.82728, 21.4666),(39.82667, 21.46592),(39.82647, 21.46575),(39.82613, 21.46553),(39.82048, 21.46267),(39.82011, 21.46245),(39.81967, 21.46209),(39.81931, 21.46169),(39.81868, 21.46072),(39.81798, 21.45998),(39.81588, 21.45849),(39.81553, 21.45819),(39.81515, 21.45776),(39.81493, 21.45736),(39.81256, 21.45195),(39.8115, 21.45014),(39.81057, 21.44875),(39.80978, 21.44779)], [(39.78317, 21.39802),(39.78285, 21.39808),(39.77692, 21.3971),(39.77752, 21.39324),(39.77769, 21.39243),(39.77792, 21.39179),(39.78089, 21.38707),(39.78351, 21.38492),(39.7841, 21.38405),(39.78439, 21.38333),(39.78558, 21.37686),(39.78697, 21.37699),(39.78625, 21.38452),(39.78422, 21.39642),(39.78406, 21.39682),(39.78317, 21.39802)], [(39.78917, 21.37519),(39.78953, 21.37157),(39.79052, 21.37185),(39.79107, 21.37212),(39.79169, 21.37253),(39.7921, 21.37292),(39.79255, 21.37342),(39.79307, 21.37423),(39.7934, 21.37489),(39.79358, 21.37547),(39.7921, 21.37547),(39.78917, 21.37519)], [(39.87268, 21.3607),(39.87229, 21.37234),(39.87238, 21.37312),(39.8727, 21.37412),(39.87403, 21.3768),(39.87459, 21.37751),(39.87492, 21.3778),(39.87565, 21.3783),(39.87539, 21.37897),(39.87431, 21.38235),(39.87402, 21.38249),(39.87222, 21.38192),(39.87075, 21.38162),(39.86994, 21.38153),(39.86868, 21.38151),(39.86677, 21.38175),(39.86582, 21.382),(39.86468, 21.38241),(39.86373, 21.38286),(39.86273, 21.38347),(39.8619, 21.3841),(39.86106, 21.38489),(39.85782, 21.38829),(39.85728, 21.38809),(39.85678, 21.38807),(39.85608, 21.38827),(39.85576, 21.38852),(39.85553, 21.38885),(39.8554, 21.38933),(39.85538, 21.38957),(39.85547, 21.38999),(39.85567, 21.39042),(39.85495, 21.39109),(39.85387, 21.39231),(39.8531, 21.39292),(39.85269, 21.39312),(39.85256, 21.39313),(39.85225, 21.39306),(39.8512, 21.39193),(39.84972, 21.39016),(39.84959, 21.39004),(39.84879, 21.38937),(39.8481, 21.38893),(39.84746, 21.38863),(39.84605, 21.38825),(39.84136, 21.38785),(39.84054, 21.3877),(39.84015, 21.38753),(39.83982, 21.38734),(39.8394, 21.38701),(39.83693, 21.38443),(39.83665, 21.38418),(39.83518, 21.38321),(39.83492, 21.38309),(39.83413, 21.38287),(39.83345, 21.38279),(39.83236, 21.38277),(39.83156, 21.38286),(39.83051, 21.38312),(39.83637, 21.37503),(39.84749, 21.35985),(39.84785, 21.35942),(39.84912, 21.35812),(39.84948, 21.35783),(39.84985, 21.35763),(39.85045, 21.35745),(39.8545, 21.35696),(39.85519, 21.35698),(39.85738, 21.35754),(39.85971, 21.35848),(39.86135, 21.35892),(39.86264, 21.35917),(39.8703, 21.36038),(39.87268, 21.3607)], [(39.87658, 21.37651),(39.87598, 21.37607),(39.87578, 21.37582),(39.87453, 21.3733),(39.87429, 21.37232),(39.87467, 21.36095),(39.87758, 21.36131),(39.87798, 21.36151),(39.88107, 21.36223),(39.88281, 21.36325),(39.88379, 21.36404),(39.88498, 21.36539),(39.88608, 21.36683),(39.8788, 21.37364),(39.8776, 21.375),(39.87658, 21.37651)], [(39.82364, 21.41981),(39.82367, 21.41954),(39.82416, 21.41928),(39.82507, 21.41862),(39.82572, 21.41854),(39.8261, 21.4186),(39.8258, 21.41927),(39.82445, 21.41949),(39.82364, 21.41981)], [(39.82391, 21.41697),(39.82383, 21.41571),(39.82364, 21.41473),(39.82274, 21.41253),(39.82449, 21.41261),(39.82443, 21.41485),(39.82469, 21.41537),(39.82519, 21.41566),(39.82577, 21.41563),(39.82623, 21.41527),(39.82642, 21.41472),(39.82648, 21.41309),(39.82695, 21.41321),(39.82661, 21.41499),(39.82657, 21.41567),(39.82683, 21.41674),(39.82634, 21.4166),(39.82514, 21.41656),(39.82446, 21.41671),(39.82391, 21.41697)], [(39.82876, 21.41802),(39.83007, 21.41793),(39.83168, 21.41763),(39.83252, 21.41736),(39.8333, 21.41696),(39.83461, 21.41893),(39.83507, 21.41978),(39.83524, 21.42063),(39.8353, 21.42147),(39.83401, 21.42163),(39.83388, 21.42071),(39.83352, 21.41999),(39.83348, 21.41968),(39.83332, 21.41932),(39.83276, 21.41877),(39.8319, 21.41823),(39.83077, 21.41798),(39.82876, 21.41802)], [(39.83509, 21.41604),(39.839, 21.41402),(39.84021, 21.41316),(39.84098, 21.41247),(39.84179, 21.41159),(39.8438, 21.40921),(39.84747, 21.40466),(39.84802, 21.40381),(39.84838, 21.40303),(39.84864, 21.40216),(39.84886, 21.40096),(39.849, 21.39949),(39.84909, 21.39896),(39.84924, 21.39842),(39.84956, 21.39772),(39.85004, 21.39711),(39.8502, 21.39695),(39.8506, 21.39665),(39.85157, 21.39618),(39.853, 21.39569),(39.85363, 21.39558),(39.85396, 21.39547),(39.8544, 21.39524),(39.8547, 21.39503),(39.85499, 21.39478),(39.85617, 21.39361),(39.85696, 21.39291),(39.85746, 21.39236),(39.8579, 21.39179),(39.85877, 21.39085),(39.86338, 21.39308),(39.86446, 21.39356),(39.86531, 21.39402),(39.86577, 21.39435),(39.86651, 21.39507),(39.86596, 21.3955),(39.86532, 21.39609),(39.86472, 21.39688),(39.86379, 21.39863),(39.86138, 21.40439),(39.86035, 21.4064),(39.85537, 21.41465),(39.85266, 21.41823),(39.85145, 21.41971),(39.85133, 21.4198),(39.85092, 21.41997),(39.84912, 21.42017),(39.84516, 21.42027),(39.84289, 21.42044),(39.83728, 21.4212),(39.83723, 21.42043),(39.83701, 21.4193),(39.83677, 21.41867),(39.83632, 21.41789),(39.83509, 21.41604)], [(39.86021, 21.38932),(39.86365, 21.38583),(39.86459, 21.38516),(39.86624, 21.38442),(39.86768, 21.38403),(39.86962, 21.38393),(39.8717, 21.38431),(39.87299, 21.3847),(39.8729, 21.38575),(39.87303, 21.38632),(39.87188, 21.38979),(39.87157, 21.39051),(39.87068, 21.39174),(39.87013, 21.39226),(39.8681, 21.39384),(39.86709, 21.39285),(39.86632, 21.39229),(39.86021, 21.38932)], [(39.84703, 21.39096),(39.84715, 21.39117),(39.84744, 21.39143),(39.84761, 21.39151),(39.84787, 21.39156),(39.84872, 21.39256),(39.84882, 21.39314),(39.84858, 21.39443),(39.84842, 21.39495),(39.848, 21.39601),(39.84714, 21.39783),(39.84698, 21.39845),(39.84677, 21.40025),(39.84654, 21.40175),(39.84636, 21.40234),(39.84612, 21.40283),(39.84579, 21.40335),(39.84226, 21.4074),(39.8407, 21.40935),(39.83947, 21.41065),(39.83831, 21.41161),(39.8377, 21.41205),(39.83345, 21.41428),(39.83247, 21.41344),(39.83245, 21.41324),(39.83239, 21.41305),(39.8323, 21.41288),(39.83217, 21.41273),(39.83121, 21.41178),(39.83068, 21.41134),(39.83015, 21.41099),(39.83001, 21.41065),(39.83052, 21.40833),(39.83112, 21.40587),(39.8317, 21.40157),(39.83168, 21.40101),(39.83164, 21.40082),(39.83137, 21.40027),(39.83115, 21.39999),(39.83083, 21.39971),(39.83052, 21.39952),(39.8284, 21.39872),(39.82797, 21.39848),(39.82767, 21.39827),(39.82744, 21.39803),(39.82711, 21.39753),(39.827, 21.39726),(39.82693, 21.3969),(39.82679, 21.39172),(39.82659, 21.38808),(39.82672, 21.38766),(39.82705, 21.38702),(39.82746, 21.38644),(39.83156, 21.38522),(39.83244, 21.38503),(39.83282, 21.38502),(39.83372, 21.38517),(39.83421, 21.38535),(39.83473, 21.38565),(39.83527, 21.38603),(39.83533, 21.38622),(39.83555, 21.38655),(39.83588, 21.38676),(39.83607, 21.38681),(39.83738, 21.38827),(39.83788, 21.38875),(39.83886, 21.38944),(39.83905, 21.38954),(39.83962, 21.38978),(39.84022, 21.38998),(39.84135, 21.39018),(39.84179, 21.39021),(39.84192, 21.39029),(39.8423, 21.3904),(39.84269, 21.39035),(39.84282, 21.39029),(39.84546, 21.39049),(39.84593, 21.39055),(39.84632, 21.39064),(39.84672, 21.39079),(39.84703, 21.39096)], [(39.83154, 21.41527),(39.83052, 21.41557),(39.82875, 21.41575),(39.82868, 21.41557),(39.8287, 21.41522),(39.82898, 21.41382),(39.83043, 21.41432),(39.83154, 21.41527)], [(39.88532, 21.36227),(39.89047, 21.36299),(39.88935, 21.36357),(39.889, 21.36359),(39.88711, 21.36335),(39.88654, 21.36324),(39.88587, 21.36295),(39.88576, 21.36273),(39.88532, 21.36227)], [(39.91229, 21.40316),(39.91302, 21.40213),(39.91357, 21.40253),(39.91432, 21.40334),(39.91464, 21.40392),(39.91478, 21.40442),(39.91478, 21.40479),(39.91465, 21.40516),(39.91433, 21.40548),(39.914, 21.40563),(39.91331, 21.4056),(39.9128, 21.40534),(39.91261, 21.40516),(39.91238, 21.40474),(39.91229, 21.40316)]); SELECT 'Simplified version of previous test'; SELECT pointInPolygon((39.840202, 21.451471), [(39.90553, 21.38668),(39.91034, 21.38608),(39.91834, 21.38048),(39.93078, 21.3627),(39.94141, 21.36278),(39.94753, 21.36075),(39.94986, 21.35894),(39.95349, 21.3533),(39.97833, 21.3815),(39.98132, 21.38231),(39.98851, 21.38151),(39.99076, 21.37747),(39.98987, 21.36908),(39.98791, 21.36332),(39.99543, 21.35687),(39.99827, 21.34722),(39.99784, 21.34271),(39.99632, 21.33955),(39.99322, 21.3366),(39.98908, 21.33496),(39.9692, 21.3331),(39.95841, 21.3388),(39.95109, 21.34412),(39.95026, 21.34825),(39.95203, 21.35168),(39.94753, 21.35845),(39.94165, 21.36077),(39.93272, 21.36009),(39.92969, 21.36103),(39.91928, 21.37669),(39.91374, 21.3816),(39.91056, 21.38296),(39.90839, 21.38361),(39.90059, 21.38257),(39.8978, 21.37712),(39.90051, 21.37335),(39.90033, 21.37195),(39.89559, 21.37533),(39.89099, 21.36937),(39.89101, 21.3661),(39.89465, 21.364),(39.92418, 21.35725),(39.92838, 21.35433),(39.94394, 21.33915),(39.96711, 21.32785),(39.97437, 21.32734),(39.99523, 21.33055),(40.01271, 21.3293),(40.01345, 21.3276),(40.00731, 21.32689),(39.99189, 21.32817),(39.97264, 21.3251),(39.96216, 21.32725),(39.95825, 21.32598),(39.95783, 21.32734),(39.96017, 21.32834),(39.94652, 21.33514),(39.94578, 21.33237),(39.94438, 21.33259),(39.94454, 21.33563),(39.92448, 21.3545),(39.92007, 21.3563),(39.89586, 21.3615),(39.86239, 21.35659),(39.85241, 21.35319),(39.85183, 21.35189),(39.84187, 21.3498),(39.83475, 21.35001),(39.82272, 21.35322),(39.80957, 21.34986),(39.80645, 21.34645),(39.80654, 21.34104),(39.82207, 21.29116),(39.82732, 21.26685),(39.82657, 21.22894),(39.82468, 21.22761),(39.82364, 21.22857),(39.82459, 21.22961),(39.82535, 21.26649),(39.82016, 21.29057),(39.81723, 21.29965),(39.81585, 21.30012),(39.81652, 21.30158),(39.81475, 21.30815),(39.80378, 21.34492),(39.8023, 21.34648),(39.79042, 21.34584),(39.78385, 21.34687),(39.77227, 21.34595),(39.7601, 21.34279),(39.73947, 21.34141),(39.71051, 21.34288),(39.70233, 21.34041),(39.68839, 21.33943),(39.65964, 21.33189),(39.64627, 21.3344),(39.64733, 21.33592),(39.65598, 21.33404),(39.66095, 21.33402),(39.68789, 21.34136),(39.70198, 21.34238),(39.71031, 21.34487),(39.74208, 21.34353),(39.76109, 21.34495),(39.77363, 21.34845),(39.77446, 21.35039),(39.76342, 21.37977),(39.75978, 21.39951),(39.75655, 21.40491),(39.73768, 21.39607),(39.72646, 21.38795),(39.71285, 21.3969),(39.69867, 21.37979),(39.66651, 21.36156),(39.6662, 21.36338),(39.69742, 21.38135),(39.7112, 21.39803),(39.70333, 21.40335),(39.70227, 21.40556),(39.70273, 21.40892),(39.71038, 21.41608),(39.71004, 21.42139),(39.68758, 21.414),(39.68099, 21.41398),(39.63179, 21.4366),(39.62927917729339, 21.43855995858338),(39.629299942421596, 21.44105336136311),(39.63273, 21.43836),(39.65768, 21.42753),(39.67404, 21.419),(39.6815, 21.41592),(39.68534, 21.41555),(39.7182, 21.42582),(39.72915, 21.4318),(39.72926, 21.43473),(39.72198, 21.45071),(39.72058, 21.46018),(39.72262, 21.46776),(39.72871, 21.47851),(39.73639, 21.48854),(39.73607, 21.50077),(39.73921, 21.50608),(39.74358, 21.50869),(39.77204, 21.51334),(39.78965, 21.51773),(39.78925, 21.52186),(39.77895, 21.53768),(39.77335, 21.55878),(39.77409, 21.55998),(39.77529, 21.55924),(39.78151, 21.53691),(39.79101, 21.52282),(39.79216, 21.51796),(39.79392, 21.51725),(39.793, 21.51609),(39.79416, 21.49641),(39.79816, 21.47216),(39.8004, 21.46856),(39.80363, 21.4669),(39.80549, 21.46717),(39.80785, 21.46483),(39.8079, 21.45844),(39.80961, 21.45125),(39.81407, 21.45956),(39.8189, 21.46404),(39.82568, 21.4678),(39.82961, 21.47351),(39.83079, 21.47799),(39.84122, 21.47849),(39.84401, 21.47583),(39.84423, 21.47113),(39.84321, 21.46813),(39.84421, 21.46059),(39.85356, 21.44251),(39.85688, 21.44231),(39.86433, 21.45155),(39.86762, 21.45385),(39.87655, 21.45623),(39.88419, 21.46034),(39.89153, 21.46165),(39.8939, 21.46349),(39.89668, 21.46326),(39.9075, 21.47496),(39.91921, 21.48088),(39.9355, 21.48404),(39.94435, 21.48781),(39.96608, 21.48881),(39.96569, 21.49663),(39.95135, 21.53005),(39.94352, 21.56004),(39.94384, 21.56417),(39.94803, 21.56766),(39.95376, 21.56964),(39.95497, 21.56891),(39.9538, 21.56747),(39.94686, 21.56478),(39.94534, 21.56123),(39.95324, 21.53069),(39.96782, 21.49652),(39.96808, 21.48868),(39.98958, 21.49423),(40.00615, 21.4944),(40.01566, 21.50406),(40.03305, 21.5127),(40.0475, 21.52172),(40.05278, 21.52274),(40.06051, 21.52124),(40.05971, 21.51952),(40.05217, 21.52052),(40.04866, 21.51978),(40.03052, 21.50875),(40.01631, 21.50181),(40.01014, 21.49459),(40.00619, 21.49215),(39.98995, 21.49206),(39.96952, 21.48658),(39.94485, 21.48571),(39.93748, 21.48246),(39.95107, 21.45666),(39.97348, 21.46578),(39.97479, 21.46523),(39.97424, 21.46392),(39.95217, 21.45495),(39.95444, 21.45202),(39.97071, 21.44272),(39.97127, 21.44141),(39.97007, 21.44065),(39.95381, 21.44976),(39.95007, 21.45407),(39.94121, 21.45146),(39.93089, 21.45021),(39.92173, 21.4449),(39.9164, 21.44366),(39.91152, 21.44104),(39.90446, 21.44019),(39.90416, 21.43717),(39.9067, 21.43268),(39.90657, 21.42875),(39.91121, 21.40898),(39.91566, 21.40698),(39.91675, 21.40517),(39.91627, 21.40045),(39.91407, 21.39734),(39.91949, 21.39132),(39.92673, 21.38963),(39.93267, 21.39089),(39.93373, 21.38995),(39.93279, 21.38889),(39.92676, 21.38762),(39.91905, 21.38931),(39.91251, 21.39595),(39.91173, 21.40041),(39.90949, 21.39663),(39.91172, 21.3928),(39.91031, 21.39269),(39.90798, 21.39493),(39.90668, 21.39219),(39.90882, 21.38887),(39.90768, 21.38803),(39.90505, 21.39084),(39.90417, 21.38841),(39.90553, 21.38668)], [(39.80978, 21.44779),(39.80994, 21.44566),(39.81007, 21.44487),(39.81053, 21.44265),(39.81116, 21.44264),(39.81154, 21.44256),(39.81225, 21.44226),(39.81248, 21.44211),(39.81366, 21.44109),(39.81384, 21.44099),(39.81679, 21.44037),(39.81781, 21.44011),(39.82104, 21.43947),(39.8222, 21.43916),(39.82287, 21.43891),(39.82379, 21.43843),(39.82508, 21.43789),(39.82657, 21.43749),(39.82684, 21.43737),(39.82727, 21.4371),(39.82865, 21.43639),(39.82907, 21.43623),(39.82934, 21.4363),(39.82961, 21.43628),(39.83008, 21.43695),(39.8317, 21.43866),(39.83196, 21.439),(39.83218, 21.43955),(39.8324, 21.43989),(39.83262, 21.44011),(39.83308, 21.44043),(39.83338, 21.44071),(39.83419, 21.44194),(39.83469, 21.44238),(39.83493, 21.44253),(39.83535, 21.44272),(39.83558, 21.44279),(39.83628, 21.44289),(39.83853, 21.44254),(39.83909, 21.44226),(39.8397, 21.44168),(39.83977, 21.44165),(39.84008, 21.44161),(39.84192, 21.44153),(39.843, 21.44143),(39.84509, 21.4411),(39.84799, 21.44052),(39.84946, 21.44019),(39.84981, 21.44021),(39.84994, 21.44025),(39.85134, 21.44181),(39.85116, 21.44253),(39.85117, 21.44267),(39.85047, 21.4439),(39.85008, 21.44479),(39.84952, 21.44592),(39.84796, 21.44857),(39.84741, 21.44971),(39.84589, 21.45357),(39.84554, 21.45432),(39.84375, 21.45712),(39.84259, 21.45929),(39.84225, 21.46015),(39.84203, 21.46152),(39.84189, 21.46327),(39.8414, 21.46556),(39.84112, 21.46739),(39.84112, 21.46789),(39.84122, 21.46847),(39.84135, 21.46887),(39.84146, 21.4691),(39.84191, 21.4698),(39.84204, 21.4701),(39.84217, 21.47069),(39.84223, 21.47113),(39.84204, 21.47546),(39.84198, 21.47572),(39.84187, 21.47595),(39.84166, 21.47621),(39.84137, 21.4764),(39.84125, 21.47644),(39.84102, 21.4765),(39.84071, 21.47651),(39.83664, 21.47574),(39.836, 21.4757),(39.83537, 21.47573),(39.83436, 21.47593),(39.83347, 21.47628),(39.83274, 21.47666),(39.83259, 21.47668),(39.83234, 21.47663),(39.83211, 21.47648),(39.83203, 21.4764),(39.83197, 21.47626),(39.83172, 21.47361),(39.83147, 21.47277),(39.83127, 21.4723),(39.83087, 21.47161),(39.82925, 21.46941),(39.82728, 21.4666),(39.82667, 21.46592),(39.82647, 21.46575),(39.82613, 21.46553),(39.82048, 21.46267),(39.82011, 21.46245),(39.81967, 21.46209),(39.81931, 21.46169),(39.81868, 21.46072),(39.81798, 21.45998),(39.81588, 21.45849),(39.81553, 21.45819),(39.81515, 21.45776),(39.81493, 21.45736),(39.81256, 21.45195),(39.8115, 21.45014),(39.81057, 21.44875),(39.80978, 21.44779)] ); SELECT 'Very simplified version of previous test'; WITH [(39.82535, 21.26649), (39.63179, 21.4366), (39.94803, 21.56766)] AS outer, [(39.84994, 21.44025), (39.82728, 21.4666), (39.82667, 21.46592)] AS inner, (39.840202, 21.451471) AS point SELECT pointInPolygon(point, inner) AS inside_inner, pointInPolygon(point, outer, inner) AS inside_outer; ```
Euberta is a farming community in the central Riverina area of New South Wales. It is situated on the old Narrandera road with Millwood 6 kilometres to its west and Malebo 9 kilometres to its east. At the 2021 census, Euberta had a population of 130 people. The area is made up of rich pastoral close to the Murrumbidgee River giving graziers the ability to use central pivot and other irrigation systems to grow crops such as Lucerne. Gallery Notes and references Towns in the Riverina Towns in New South Wales
```ruby # Finds the smallest value in an array def find_smallest(arr) # Stores the smallest value smallest = arr[0] # Stores the index of the smallest value smallest_index = 0 # (1...n) is the same as (1..(n-1)) (1...(arr.length)).each do |i| if arr[i] < smallest smallest = arr[i] smallest_index = i end end smallest_index end # Sort array def selection_sort(arr) new_arr = [] arr.length.times do # Finds the smallest element in the array and adds it to the new array smallest = find_smallest(arr) new_arr.push(arr.delete_at(smallest)) end new_arr end # 'p obj' is the same as 'puts obj.inspect' p selection_sort([5, 3, 6, 2, 10]) ```
Valangin () is a former municipality in the district of Val-de-Ruz in the canton of Neuchâtel in Switzerland. On 1 January 2021 the former municipalities of Corcelles-Cormondrèche, Peseux and Valangin merged into the municipality of Neuchâtel. History Valangin is first mentioned in 1241 as de Valengiz. Geography Valangin had an area, , of . Of this area, or 39.4% is used for agricultural purposes, while or 49.7% is forested. Of the rest of the land, or 9.0% is settled (buildings or roads), or 0.3% is either rivers or lakes. Of the built up area, housing and buildings made up 2.4% and transportation infrastructure made up 5.3%. Out of the forested land, 46.8% of the total land area is heavily forested and 2.9% is covered with orchards or small clusters of trees. Of the agricultural land, 22.3% is used for growing crops and 17.0% is pastures. All the water in the municipality is flowing water. The former municipality is located at the northern entrance of the Seyon canyon. It consists of the village of Valangin, the hamlet of La Borcaderie and the agricultural areas of Bussy and Sorgereux. The Valanginian Age of the Cretaceous Period of geological time is named for Valangin. Coat of arms The blazon of the municipal coat of arms is Gules, on a pale Or three Chevrons Sable. Demographics Valangin had a population (as of 2019) of 507. , 22.4% of the population are resident foreign nationals. Over the last 10 years (2000–2010) the population has changed at a rate of 1.7%. It has changed at a rate of -5.4% due to migration and at a rate of 7.3% due to births and deaths. Most of the population () speaks French (348 or 87.0%) as their first language, Portuguese is the second most common (22 or 5.5%) and German is the third (14 or 3.5%). There are 10 people who speak Italian. , the population was 52.0% male and 48.0% female. The population was made up of 163 Swiss men (39.8% of the population) and 50 (12.2%) non-Swiss men. There were 156 Swiss women (38.0%) and 41 (10.0%) non-Swiss women. Of the population in the municipality, 104 or about 26.0% were born in Valangin and lived there in 2000. There were 141 or 35.3% who were born in the same canton, while 73 or 18.3% were born somewhere else in Switzerland, and 69 or 17.3% were born outside of Switzerland. , children and teenagers (0–19 years old) make up 21.5% of the population, while adults (20–64 years old) make up 62.3% and seniors (over 64 years old) make up 16.3%. , there were 164 people who were single and never married in the municipality. There were 201 married individuals, 20 widows or widowers and 15 individuals who are divorced. , there were 167 private households in the municipality, and an average of 2.3 persons per household. There were 55 households that consist of only one person and 9 households with five or more people. , a total of 165 apartments (92.7% of the total) were permanently occupied, while 8 apartments (4.5%) were seasonally occupied and 5 apartments (2.8%) were empty. The historical population is given in the following chart: Notable people Rosa Ramseyer (1841 in Valangin – 1906) wife of Basel missionary to Ghana Fritz Ramseyer Robert Comtesse (1847 in Valangin – 1922) a Swiss politician, member of the Swiss Federal Council 1899-1912 Edmond Bille (1878 in Valangin – 1959) a Swiss artist, painter, engraver, stained glass artist, journalist, writer and politician Jean-François Balmer (born 1946 in Valangin) a Swiss actor, works in French cinema, television and stage productions Heritage sites of national significance Valangin Castle and the Collégiale (Collegiate church) are listed as Swiss heritage site of national significance. The small city of Valangin, the Bussy/Le Sorgereux region and the La Borcarderie region are all part of the Inventory of Swiss Heritage Sites. Politics In the 2007 federal election the most popular party was the SP which received 25.45% of the vote. The next three most popular parties were the FDP (19.77%), the SVP (16.8%) and the LPS Party (16.02%). In the federal election, a total of 158 votes were cast, and the voter turnout was 58.3%. Economy , Valangin had an unemployment rate of 5.1%. , there were 14 people employed in the primary economic sector and about 4 businesses involved in this sector. 12 people were employed in the secondary sector and there were 3 businesses in this sector. 49 people were employed in the tertiary sector, with 12 businesses in this sector. There were 204 residents of the municipality who were employed in some capacity, of which females made up 41.7% of the workforce. the total number of full-time equivalent jobs was 58. The number of jobs in the primary sector was 11, all of which were in agriculture. The number of jobs in the secondary sector was 11, all of which were in manufacturing. The number of jobs in the tertiary sector was 36. In the tertiary sector; 16 or 44.4% were in wholesale or retail sales or the repair of motor vehicles, 2 or 5.6% were in the movement and storage of goods, 3 or 8.3% were in a hotel or restaurant, 4 or 11.1% were in education and 5 or 13.9% were in health care. , there were 51 workers who commuted into the municipality and 139 workers who commuted away. The municipality is a net exporter of workers, with about 2.7 workers leaving the municipality for every one entering. Of the working population, 12.7% used public transportation to get to work, and 59.8% used a private car. Religion From the , 108 or 27.0% were Roman Catholic, while 164 or 41.0% belonged to the Swiss Reformed Church. Of the rest of the population, there were 25 individuals (or about 6.25% of the population) who belonged to another Christian church. There was 1 individual who was Islamic. There were 1 individual who belonged to another church. 93 (or about 23.25% of the population) belonged to no church, are agnostic or atheist, and 20 individuals (or about 5.00% of the population) did not answer the question. Education In Valangin about 158 or (39.5%) of the population have completed non-mandatory upper secondary education, and 61 or (15.3%) have completed additional higher education (either university or a Fachhochschule). Of the 61 who completed tertiary schooling, 50.8% were Swiss men, 31.1% were Swiss women, 13.1% were non-Swiss men. In the canton of Neuchâtel most municipalities provide two years of non-mandatory kindergarten, followed by five years of mandatory primary education. The next four years of mandatory secondary education is provided at thirteen larger secondary schools, which many students travel out of their home municipality to attend. During the 2010–11 school year, there was one kindergarten class with a total of 15 students in Valangin. In the same year, there were 2 primary classes with a total of 37 students. , there were 26 students in Valangin who came from another municipality, while 49 residents attended schools outside the municipality. References Cities in Switzerland Former municipalities of the canton of Neuchâtel Cultural property of national significance in the canton of Neuchâtel
The Autonomous University of Baja California, Tijuana is one of three main campuses of the Autonomous University of Baja California (UABC), located in the Otay Centenario borough of Tijuana, Baja California state, México. It is a public research university. Sub-campuses The Tijuana branch of the Autonomous University of Baja California maintains three sub-campuses in the Municipality of Tijuana, in the towns of: Tecate, Rosarito Beach Valle de las Palmas Departments Chemistry Sciences and Engineering Faculty of Chemistry Sciences and Engineering: Industrial Chemistry Chemistry Engineering Engineering on Pharmacobiology Engineering on Computer sciences Engineering on Electronics Industrial Engineering Arts Faculty of Arts: Bachelor's degree on Plastic Arts Bachelor's degree on Theater Humanities and Social Sciences Faculty of Humanities and Social Sciences: Bachelor's degree in Hispanic Literature Bachelor's degree in History Bachelor's degree in Sociology Bachelor's degree in Philosophy Bachelor's degree in Communication Bachelor's degree in Teacher on Literature Bachelor's degree in Teacher on Mathematics Tourism and Marketing Bachelor's degree in Tourism Bachelor's degree in Tourism Management Bachelor's degree in Marketing Architecture and Design Bachelor's degree in Architecture Bachelor's degree in Graphic Design Bachelor's degree in Industrial Design Law Bachelor's degree in Law Modern Languages Bachelor's degree in Language Education Bachelor's degree in Translation Medicine and Psychology Bachelor's degree in Medicine Bachelor's degree in Psychology Bachelor's degree in Nutrition Dentistry Bachelor's degree in Dental Surgery Accounting and Business Administration Bachelor's degree in Accounting Bachelor's degree in Business Administration Bachelor's degree in Information Systems Bachelor's degree in International Business References External links T Education in Tijuana
Konstantin Konstantinovich Yurenev (), also known as Konstantin Konstantinovich Krotovsky () (1888 – 1 August 1938), was a Russian revolutionary, Soviet politician and diplomat. Life and career Early revolutionary career Yurenev was born at Dvinsk station on the Riga-Orlov railway in the family of a railway watchman. He joined the Russian Social Democratic Labour Party (RSDLP) in 1905 and later its Bolshevik faction in 1906. In 1908, he was arrested and sentenced to three years' exile in Arkhangelsk. When his term of exile was completed, he settled in St Petersburg, but split with the Bolsheviks their leader Vladimir Lenin pronounced that all Mensheviks were to be expelled from the RSDLP. In 1913, he co-founded the 'Inter-Borough Organisation' or Mezhraiontsy, who were neither Bolsheviks nor Mensheviks, but were inspired by the writings of Leon Trotsky. Yurenev was arrested, but acquitted at his trial in 1916 for lack of evidence. Anticipating that the prosecutor would appeal, he hid out for two months, then moved to Simferopol, where he was arrested and drafted into the Imperial Russian Army, but absconded after about ten days and returned to Petrograd (St Petersburg) to live illegally. In 1917, he played an active part in the February Revolution, and was elected to the executive of the Petrograd (St Petersburg) soviet. Mezhraiontsy Yurenev led the faction within the Mezhraiontsy who opposed merger with the Bolsheviks, whose organisation they considered too centralised and undemocratic, but in July 1917, after Trotsky had insisted that the merger go ahead, he joined the Russian Social Democratic Labour Party (Bolsheviks), and played a leading role in the Bolshevik Revolution as a member of the Military Revolutionary Committee of the Petrograd Soviet, and Chief of Staff of the Red Guards. He was in favour of creating a coalition government with other socialist parties, yet despite his concerns about one party rule, he helped found the Red Army as a member of the People's Commissariat for Military Affairs of the Russian Soviet Federative Socialist Republic from February 1918, and head of the All-Russian Bureau of Military Commissars, a predecessor of the Political Directorate of the Soviet Red Army from April 1918. Soviet official and diplomat During the Ninth Congress of the RCP (b) in March 1920, Yurenev again raised his long-held complaints about Bolshevik organisational methods. Possibly for that reason, he spent the rest of his career in positions well removed from the centre of power. From May 1920 to May 1921 he was the Chairman of the Executive Committee of the Kursk Governorate Soviet. From 16 May 1921 until 1 February 1922 he was Plenipotentiary Representative of the Russian Soviet Federative Socialist Republic in the Bukharan People's Soviet Republic. After serving in Bukhara, from 1 February 1922 to 14 February 1923 he was Soviet Russia's Plenipotentiary Representative in Latvia. After his posting to Latvia, he was appointed as diplomatic representative of the Soviet Union to Czechoslovakia, and served in Prague from 14 February 1923 until 3 March 1924. Dinner with Mussolini On 7 March 1924, Yurenev was appointed Plenipotentiary Representative of the Soviet Union to Italy. According to Alexander Barmine, who worked with Yurenev's in Bukhara and in Latvia, and visited him in Italy: In July 1924, he hosted a banquet in the embassy for Benito Mussolini, only a month after the murder of Giacomo Matteotti, which had revolted liberal and communist opinion in Italy. He followed it by inviting Mussolini to a reception to mark the 7th anniversary of the Bolshevik revolution. This provoked a protest from the Central Committee of the Italian Communist Party, and from the Comintern representative in Italy, Jules Humbert-Droz, who demanded Yurenev's dismissal. Alexander Barmine claimed that Yurenev ignored advice from his own staff and from Moscow by entertaining Mussolini, but his actions were in line with Soviet foreign policy, which was to build alliances with the countries that lost out from the Treaty of Versailles. Eventually the complaints reached the Soviet Politburo, which condemned Yurenev's actions organizing the banquet. Yurenev despite trying to defend himself was eventually removed from his position as plenipotentiary representative in Italy and replaced by Platon Krezhentsev, who was more critical of Mussolini's regime. From 24 April 1925 to 5 August 1927 Yurenev served as the Plenipotentiary Representative of the USSR in Persia; from 1 October 1927 to 24 January 1933 he was Plenipotentiary Representative of the Soviet Union in Austria; from 29 January 1933 until 16 June 1937 he was Plenipotentiary Representative of the Soviet Union in Japan, and from 16 June until 11 October 1937 he was Plenipotentiary Representative of the Soviet Union in Germany. Arrest and death Yurenev was arrested on 23 September 1937, during the Great Purge. He was named repeatedly during the third Moscow show trial, in March 1938, as an alleged Trotskyite and Japanese spy. And eventually executed on 1 August 1938. He was rehabilitated in 1956. References 1888 births 1938 deaths Politicians from Daugavpils People from Dvinsky Uyezd Russian Social Democratic Labour Party members Mezhraiontsy All-Russian Central Executive Committee members Ambassadors of the Soviet Union to Austria Ambassadors of the Soviet Union to Germany Ambassadors of the Soviet Union to Japan Ambassadors of the Soviet Union to Iran Ambassadors of the Soviet Union to Italy Ambassadors of the Soviet Union to Czechoslovakia Ambassadors of the Soviet Union to Latvia Ambassadors of the Soviet Union to the Bukharan People's Soviet Republic Great Purge victims from Latvia Members of the Communist Party of the Soviet Union executed by the Soviet Union Soviet rehabilitations
Laparwah is a 1981 Hindi-language Indian action film directed by Ravikant Nagaich, starring Mithun Chakraborty, Ranjeeta Kaur, Prema Narayan and Shakti Kapoor in the leading roles. Cast Mithun Chakraborty Ranjeeta Kaur Prema Narayan Iftekhar Shakti Kapoor Shubha Khote Satyendra Kapoor Purnima Tej Sapru Asit Sen Chandrashekhar Birbal Prem Bedi Bhushan Jeevan Sohail Khan Manmauji Ram Mohan Ram P. Sethi Sunder Raj Tilak Soundtrack The music of this movie was composed by Bappi Lahiri, with lyrics written by Ramesh Pant. The music was released by the Saregama label. "Paisa Jis Ke Paas Hai, Duniya Uski Das Hai" – Jatin Pandit "Koi Bhi Dil Me Na Aaya Tha, Najro Se Sabki Bachya Tha" – Chandrani Mukherjee, Kishore Kumar "Ghar Ki Tijori Me" – Jatin Pandit, Manna Dey "Mehfil Me Aakar Saaqi Banu Ya Mehboobat" – Jatin Pandit, Usha Mangeshkar "Tumko Maine Sapno Me To Dekha Tha" – Jatin Pandit References External links 1981 Western (genre) films 1981 films 1980s Hindi-language films Indian Western (genre) films Films scored by Bappi Lahiri Films directed by Ravikant Nagaich
```xml <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Resources.resx"> <body> <trans-unit id="ApiCompatRunnerExecutingWorkItems"> <source>Executing {0} work item(s)...</source> <target state="translated">{0} ...</target> <note /> </trans-unit> <trans-unit id="ApiCompatibilityHeader"> <source>API compatibility errors between '{0}' ({2}) and '{1}' ({3}):</source> <target state="translated">'{0}'({2}) '{1}'({3}) API :</target> <note /> </trans-unit> <trans-unit id="AssemblyCultureDoesNotMatch"> <source>{2} assembly culture '{0}' does not match with {3} assembly culture '{1}'.</source> <target state="translated">{2} '{0}'() {3} '{1}'() .</target> <note /> </trans-unit> <trans-unit id="AssemblyLoadError"> <source>Could not load assembly symbols for '{0}'. Skipping the assembly.</source> <target state="translated">'{0}' . .</target> <note /> </trans-unit> <trans-unit id="AssemblyNameDoesNotExist"> <source>Assembly with name '{0}' does not exist at {1}.</source> <target state="translated"> '{0}' {1} .</target> <note /> </trans-unit> <trans-unit id="AssemblyNameDoesNotMatch"> <source>{2} assembly name '{0}' does not match with {3} assembly name '{1}'.</source> <target state="translated">{2} '{0}'() {3} '{1}'() .</target> <note /> </trans-unit> <trans-unit id="AssemblyPublicKeyTokenDoesNotMatch"> <source>{2} assembly public key token '{0}' does not match with {3} '{1}'.</source> <target state="translated">{2} '{0}'() {3} '{1}'() .</target> <note /> </trans-unit> <trans-unit id="AssemblySearchDirectoryDoesNotExist"> <source>Provided assembly search directory '{0}' does not exist.</source> <target state="translated"> '{0}'() .</target> <note /> </trans-unit> <trans-unit id="AssemblyVersionDoesNotMatch"> <source>{3} assembly version '{1}' should be equal to {2} version '{0}'.</source> <target state="translated">{3} '{1}'() {2} '{0}'() .</target> <note /> </trans-unit> <trans-unit id="AssemblyVersionIsNotCompatible"> <source>{2} assembly version '{0}' should be equal to or higher than {3} version '{1}'.</source> <target state="translated">{2} '{0}'() {3} '{1}' .</target> <note /> </trans-unit> <trans-unit id="CannotAddAbstractMember"> <source>Cannot add abstract member '{0}' to {1} because it does not exist on {2}</source> <target state="translated"> '{0}'() {2} {1} </target> <note /> </trans-unit> <trans-unit id="CannotAddAttribute"> <source>Cannot add attribute '{0}' to '{1}'.</source> <target state="translated">'{1}' '{0}'() .</target> <note /> </trans-unit> <trans-unit id="CannotAddGenericConstraint"> <source>Cannot add constraint '{0}' on type parameter '{1}' of '{2}'.</source> <target state="new">Cannot add constraint '{0}' on type parameter '{1}' of '{2}'.</target> <note /> </trans-unit> <trans-unit id="CannotAddMemberToInterface"> <source>Cannot add interface member '{0}' to {1} because it does not exist on {2}</source> <target state="translated"> '{0}'() {2} {1} </target> <note /> </trans-unit> <trans-unit id="CannotAddSealedToInterfaceMember"> <source>Cannot add sealed keyword to default interface member '{0}'.</source> <target state="translated"> '{0}' sealed .</target> <note /> </trans-unit> <trans-unit id="CannotAddVirtualToMember"> <source>Cannot add virtual keyword to member '{0}'.</source> <target state="translated">'{0}' .</target> <note /> </trans-unit> <trans-unit id="CannotChangeAttribute"> <source>Cannot change arguments of attribute '{0}' on '{1}'.</source> <target state="translated">'{1}' '{0}' .</target> <note /> </trans-unit> <trans-unit id="CannotChangeParameterName"> <source>Parameter name on member '{0}' changed from '{1}' to '{2}'.</source> <target state="translated"> '{0}' '{1}' '{2}'() .</target> <note /> </trans-unit> <trans-unit id="CannotExpandVisibility"> <source>Visibility of '{0}' expanded from '{1}' to '{2}'.</source> <target state="translated">'{0}' '{1}' '{2}'() .</target> <note /> </trans-unit> <trans-unit id="CannotReduceVisibility"> <source>Visibility of '{0}' reduced from '{1}' to '{2}'.</source> <target state="translated">'{0}' '{1}' '{2}'() .</target> <note /> </trans-unit> <trans-unit id="CannotRemoveAttribute"> <source>Cannot remove attribute '{0}' from '{1}'.</source> <target state="translated">'{1}' '{0}'() .</target> <note /> </trans-unit> <trans-unit id="CannotRemoveBaseInterface"> <source>Type '{0}' does not implement interface '{1}' on {2} but it does on {3}</source> <target state="translated">'{0}' '{1}' {2} {3} </target> <note /> </trans-unit> <trans-unit id="CannotRemoveBaseType"> <source>Type '{0}' does not inherit from base type '{1}' on {2} but it does on {3}</source> <target state="translated">'{0}' {2} {1} {3} </target> <note /> </trans-unit> <trans-unit id="CannotRemoveGenericConstraint"> <source>Cannot remove constraint '{0}' on type parameter '{1}' of '{2}'.</source> <target state="new">Cannot remove constraint '{0}' on type parameter '{1}' of '{2}'.</target> <note /> </trans-unit> <trans-unit id="CannotRemoveVirtualFromMember"> <source>Cannot remove virtual keyword from member '{0}'.</source> <target state="translated"> '{0}' .</target> <note /> </trans-unit> <trans-unit id="ElementShouldNotBeNullAtIndex"> <source>Element at index {0} should not be null.</source> <target state="needs-review-translation"> Null . {0} Null .</target> <note /> </trans-unit> <trans-unit id="EnumTypesMustMatch"> <source>Underlying type of enum '{0}' changed from '{1}' to '{2}'.</source> <target state="translated"> '{0}' '{1}' '{2}'() .</target> <note /> </trans-unit> <trans-unit id="EnumValuesMustMatch"> <source>Value of field '{1}' in enum '{0}' changed from '{2}' to '{3}'.</source> <target state="translated"> '{0}' '{1}' '{2}' '{3}'() .</target> <note /> </trans-unit> <trans-unit id="IndexShouldBeWithinSetSizeRange"> <source>The {0} index should be in the range zero through {1} inclusive.</source> <target state="new">The {0} index should be in the range zero through {1} inclusive.</target> <note /> </trans-unit> <trans-unit id="MatchingAssemblyNotFound"> <source>Could not find matching assembly: '{0}' in any of the search directories.</source> <target state="translated"> '{0}'() .</target> <note /> </trans-unit> <trans-unit id="MemberExistsOnLeft"> <source>Member '{0}' exists on {1} but not on {2}</source> <target state="translated"> '{0}'() {1} {2} </target> <note /> </trans-unit> <trans-unit id="MemberExistsOnRight"> <source>Member '{0}' exists on {2} but not on {1}</source> <target state="translated"> '{0}'() {2} {1} </target> <note /> </trans-unit> <trans-unit id="RightNamesAtLeastOne"> <source>Should at least contain one right name.</source> <target state="translated"> .</target> <note /> </trans-unit> <trans-unit id="ShouldBeGreaterThanZero"> <source>Value of '{0}' should be greater than 0.</source> <target state="new">Value of '{0}' should be greater than 0.</target> <note /> </trans-unit> <trans-unit id="TypeIsActuallySealed"> <source>Type '{0}' has the sealed modifier on {1} but not on {2}</source> <target state="translated">'{0}' {1} {2} </target> <note /> </trans-unit> <trans-unit id="TypeIsEffectivelySealed"> <source>Type '{0}' is sealed because it has no visible constructor on {1} but it does on {2}</source> <target state="translated">'{0}' {1} {2} </target> <note /> </trans-unit> <trans-unit id="TypeMissingOnSide"> <source>Type '{0}' exists on {1} but not on {2}</source> <target state="translated">'{0}' {1} {2} </target> <note /> </trans-unit> </body> </file> </xliff> ```
Marvin Goldhar (April 29, 1933 – March 31, 2002) was a Canadian actor, best known for his voice work in animated programs and in made-for-TV movies. Among his voice credits include Cedric Sneer on The Raccoons, Mr. Weatherbee on The New Archies and Bronto Thunder and Bonehead in Dinosaucers. He has also done voices for television and films including Star Wars: Ewoks, Star Wars: Droids, Garbage Pail Kids, AlfTales, The Nutcracker Prince, Babar, Highlander: The Animated Series, Maxie's World, Beverly Hills Teens, The Care Bears, Rupert, C.O.P.S., Overdrawn at the Memory Bank, ALF: The Animated Series, Sylvanian Families, Starcom, Police Academy, WildC.A.T.s, The Magic School Bus, Little Rosey, The Busy World of Richard Scarry, Dog City, A Cosmic Christmas and My Pet Monster. Goldhar also played roles in live-action such as Mogul in Mafia Princess, Gareth Williamson in Night Heat, Grandpa Maurice in The Zack Files, Ron Morrow in Hot Money, Detective #1 in A Deadly Business, Larry Sr. in Big Deal, Burt Horowitz in Deadline, Phil King in The Last Polka, Harry in Club Land as well as a guest star on Saturday Night Live. He died in Toronto, Ontario in 2002. His son, Jeff Goldhar, currently works as a director/producer for CBC television. Partial filmography The Offering (1966) - Jack My Pleasure Is My Business (1975) - All the detectives Running (1979) - Maloney Deadline (1980) - Burt Horowitz Hot Money (1983) - Ron Morrow Big Deal (1985) - Larry Sr. The Raccoons (1985-1991) - Cedric Sneer / Henri de la Possum / Herman Zechariah Stroll / Sid Leech / J.P. Gordon The Nutcracker Prince (1990) - Mr. Schaeffer / Mouse / Guest #3 / First Guard / Soldier / Band Member #1 / Contestant / Spectator (voice) External links 1933 births 2002 deaths Canadian male voice actors Canadian male television actors Canadian male film actors
Like other parts of the world, climate in Idaho has changed dramatically over the geologic history of the Earth. Paleo-climatic records give some indication of these changes. The longest instrumented records of climate in Idaho extend back to the late 1800s. Concern over human induced climate change through the emission of carbon dioxide from fossil fuels and methane from agriculture and industry, are driving research efforts across the state at university, state, and federals levels to understand what the implications of climate change could be in Idaho. In the big picture of greenhouse gas emissions, Idaho emits the least carbon dioxide per person of the United States, less than 23,000 pounds a year. It relies mostly on nonpolluting hydroelectric power from its rivers. Like other parts of the world, Idaho has seen significant temperature increases, especially in the last several decades. From 1971 to 2005 the average annual observed temperature in the Snake River Plain, located in southern Idaho, has increased by 1.4 degrees Celsius based on data from 10 climate stations (Dubois, Ashton, Oakely, Pocatello, Aberdeen, Hazelton, Jerome, Boise, Nampa, and Payette). Statistically the increasing temperature trends are most significant in the months of January, March, and April. While precipitation has generally increased since the early 1900s, the high variability in precipitation makes the identification of precipitation trends statistically difficult. Over the course of the 21st century, climate in Idaho is expected to experience additional changes due both to 'natural' climate variability and due to feedbacks related to the interaction between climate variability and increasing greenhouse gases. For example, based on projections made by the Intergovernmental Panel on Climate Change and results from the United Kingdom Hadley Centre’s climate model (HadCM2), a model that accounts for both greenhouse gases and aerosols, by 2100 temperatures in Idaho could increase by (with a range of to ) in winter and summer and (with a range of to ) in spring and fall. Precipitation is estimated to change little in summer, to increase by 10% in spring and fall (with a range of 5-20%), and to increase by 20% in winter (with a range of 10-40%). Other climate models may show different results, especially regarding estimated changes in precipitation. The impacts described in the sections that follow take into account estimates from different models. The amount of precipitation on extreme wet or snowy days in winter is likely to increase. The frequency of extreme hot days in summer would increase because of the general warming trend. It is not clear how the severity of storms might be affected, although an increase in the frequency and intensity of winter storms is possible. Climate change impacts Human health Warming and other climate changes could expand the habitat and infectivity of disease-carrying insects. Mosquitoes in Idaho can carry malaria, and some can carry western equine encephalitis, which can be lethal or cause neurological damage. Warmer temperatures could increase the incidence of Lyme disease and other tick-borne diseases in Idaho, because populations of ticks, and their rodent hosts, could increase under warmer temperatures and increased vegetation. Water resources Idaho relies primarily on surface, but groundwater is also an important source of supply. Most of Idaho is drained by tributaries to the Columbia River, including the Spokane, Pend Oreille, Kootenai, and Snake rivers. These rivers are regulated by dams and reservoirs to reduce spring flooding and augment summer flows. Runoff in the state is strongly affected by winter snow accumulation and spring snowmelt. A warmer climate could mean less snowfall, more winter rain, and a faster, earlier snowmelt. This could result in lower reservoirs and water supplies in the summer and fall. Additionally, without increases in precipitation, higher summer temperatures and increased evaporation also would contribute to lower streamflows and lake levels in the summer. Drier summer conditions would intensify competition for water among the diverse and growing demands in Idaho. Agriculture As climate warms, production patterns could shift northward. Increases in climate variability could make adaptation by farmers more difficult. Warmer climates and less soil moisture due to increased evaporation may increase the need for irrigation. However, these same conditions could decrease water supplies. In Idaho, production agriculture is a $2.8 billion annual industry, 60% of which comes from crops. Almost 70% of the farmed acres are irrigated. The major crops in the state are wheat, hay, barley, and potatoes. Climate change could increase wheat yields by 9-18%. Barley and hay could increase by 12%, and potato yields could fall by 18% under severe conditions where temperatures rise beyond the tolerance levels of the crop. Farmed acres could rise or fall by 10%, depending on how climate changes. Forest Hotter, drier weather could increase the frequency and intensity of wildfires, threatening both property and forests. Drier conditions would reduce the range and health of lodgepole and Douglas-fir forests, and increase their susceptibility to fire. Grass and rangeland could expand into previously forested areas along the eastern slope of the Rocky Mountains and into some of the western valleys. Changes would significantly affect the character of Idaho forests and the activities that depend on them. Ecosystems Idaho is rich in ecological diversity. Climate change could exacerbate many of the problems facing ecosystems in Idaho. Although wildfires are a natural and necessary part of the ecology of western forests, changes in fire regimes under climate change have significant implications. Climate change poses a threat to high alpine systems, and could lead to their significant decline. Local extinctions of alpine species such as arctic gentian, alpine chaenactis, rosy finch and water pipit have resulted from habitat loss and fragmentation, both of which could worsen under climate change. Whitebark pine forest could be replaced with Douglas fir. On the lower slopes, forests would give way to treeless landscapes dominated by sagebrush, Idaho fescue, and bluebunch wheatgrass. Action to address climate change Idaho is the home of the Yellowstone-Teton Clean Energy Coalition and the Treasure Valley Clean Cities Coalition. Renewable energy and propulsion Alternative Fuels Tax The motor fuel tax rate of $0.25 per gallon does not apply to special fuels dispensed into a motor vehicle that uses gaseous special fuels and displays a valid gaseous special fuels permit. Special fuels include compressed and liquefied natural gas, liquefied petroleum gas, hydrogen, and fuel suitable for use in diesel engines. The state excise tax on special fuels, determined on a gasoline gallon equivalent basis, still applies. Alternatively, an annual fee in lieu of the excise tax may be collected on a vehicle powered by gaseous special fuels, according to the gross vehicle weight rating of the vehicle. State government agencies are entitled to a refund of any special fuels tax paid to the vendor from which the fuel was purchased. No refund of special fuels tax shall be paid on special fuels used while idling a registered motor vehicle. Idling means a period of time greater than 15 minutes when the motor vehicle is stationary with the engine operating. State Agency Petroleum Reduction Plan All executive branch state agencies are required to reduce the petroleum consumption of their fleets by increasing the fuel economy of their vehicles and reducing the number of miles driven by each employee. Agencies must also give priority to acquiring hybrid electric vehicles and other fuel-efficient, low-emissions vehicles. See also List of U.S. states and territories by carbon dioxide emissions Plug-in electric vehicles in Idaho References Further reading —this chapter of the National Climate Assessment covers Northwest states External links Reducing Greenhouse Gases (Idaho Department of Environmental Quality) Carbon Sequestration on Idaho Agriculture and Forest Lands Climate change news about Idaho (NewWest). I CAN (Idaho Climate Action Network). Idaho Environment of Idaho
BGSU Firelands is a satellite campus of Bowling Green State University in Huron, Ohio. BGSU Firelands is located near the shores of Lake Erie in Huron, Ohio, about east of Bowling Green, Ohio. It is a separate college of the Bowling Green State University system. BGSU Firelands has been a regional campus of BGSU since 1968, when the first building (now Foundation Hall) at the Huron location was opened. Before that, classes were held in Sandusky High School until this building was completed. The campus practices open admissions. BGSU Firelands had over 2,100 students enrolled as of fall 2019, 40% of whom were dual-enrolled high school students. Campus Facilities BGSU Firelands has four buildings: Foundation Hall, George Mylander Hall (formerly the West Building), the North Building and the newest addition completed in 2003, The Cedar Point Center. The Cedar Point Center hosts an array of cutting edge educational technology tools for teaching or conferencing onsite and/or from a distance, via satellite and broadband communications modes. The Allied Health construction project was constructed during the 2014-15 academic year and includes the addition of more laboratory spaces for the health field degree programs offered at BGSU Firelands. This addition opened in the spring of 2016. Some off-site classes are held in Sandusky, Norwalk, and Elyria. McBride Arboretum BGSU Firelands is also the site of the McBride Arboretum (named in honor of Dr. James McBride, the college's first dean), a natural spot that was carefully thought out, designed and implemented to showcase the plants, trees and grasses that are a part of the natural setting of the Firelands region. The latest addition to the Arboretum was donated by Deering family of Erie County and is an all-weather deck built along one of the many small bodies of water in the Arboretum, which is long, on which students and the public can enjoy nature. The Arboretum is managed for BGSU Firelands by Erie MetroParks. References External links Bowling Green State University Public universities and colleges in Ohio Universities and colleges established in 1968 Education in Erie County, Ohio Buildings and structures in Erie County, Ohio
David Boyle may refer to: David Boyle, 1st Earl of Glasgow (1666–1733), Scottish nobleman David Boyle, 7th Earl of Glasgow (1833–1915), governor-general of New Zealand David Boyle, 9th Earl of Glasgow (1910–1984), British nobleman and sailor David Boyle (archaeologist) (1842–1911), Canadian educator and archaeologist David Boyle (author) (born 1958), British economics author and journalist David Boyle (cricketer) (born 1961), New Zealand cricketer David Boyle (diplomat), (1883–1970), British intelligence officer David Boyle (footballer) (1929–2009), English professional footballer David Boyle, Lord Boyle (1772–1853), Scottish judge and privy counsellor of the United Kingdom David Boyle (rugby league, born 1959), Australian rugby league footballer for South Sydney David Boyle (rugby league, born 1971), Australian rugby league footballer for Canberra
```smalltalk /* This file is part of the iText (R) project. Authors: Apryse Software. This program is offered under a commercial and under the AGPL license. For commercial licensing, contact us at path_to_url For AGPL licensing, see below. AGPL licensing: This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ using System; using iText.IO.Font.Constants; using iText.IO.Image; using iText.Kernel.Colors; using iText.Kernel.Pdf; using iText.Kernel.Pdf.Xobject; using iText.Kernel.Utils; using iText.Layout.Borders; using iText.Layout.Element; using iText.Layout.Font; using iText.Layout.Properties; using iText.Test; using iText.Test.Attributes; namespace iText.Layout { [NUnit.Framework.Category("IntegrationTest")] public class BlockTest : ExtendedITextTest { public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext .CurrentContext.TestDirectory) + "/resources/itext/layout/BlockTest/"; public static readonly String destinationFolder = NUnit.Framework.TestContext.CurrentContext.TestDirectory + "/test/itext/layout/BlockTest/"; private const String textByronNarrow = "When a man hath no freedom to fight for at home, " + "Let him combat for that of his neighbours; " + "Let him think of the glories of Greece and of Rome, " + "And get knocked on the head for his labours. " + "\n" + "To do good to Mankind is the chivalrous plan, " + "And is always as nobly requited; " + "Then battle for Freedom wherever you can, " + "And, if not shot or hanged, you'll get knighted."; private const String textByron = "When a man hath no freedom to fight for at home,\n" + " Let him combat for that of his neighbours;\n" + "Let him think of the glories of Greece and of Rome,\n" + " And get knocked on the head for his labours.\n" + "\n" + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n" + "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted."; [NUnit.Framework.OneTimeSetUp] public static void BeforeClass() { CreateOrClearDestinationFolder(destinationFolder); } [LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 2)] [NUnit.Framework.Test] public virtual void BlockWithSetHeightProperties01() { String outFileName = destinationFolder + "blockWithSetHeightProperties01.pdf"; String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Paragraph p = new Paragraph(textByron); for (int i = 0; i < 10; i++) { p.Add(textByron); } p.SetBorder(new SolidBorder(0.5f)); doc.Add(new Paragraph("Default layout:")); doc.Add(p); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set shorter than needed:")); p.SetHeight(1300); doc.Add(p); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's min height is set shorter than needed:")); p.DeleteOwnProperty(Property.HEIGHT); p.SetMinHeight(1300); doc.Add(p); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's max height is set shorter than needed:")); p.DeleteOwnProperty(Property.MIN_HEIGHT); p.SetMaxHeight(1300); doc.Add(p); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set bigger than needed:")); p.DeleteOwnProperty(Property.MAX_HEIGHT); p.SetHeight(2500); doc.Add(p); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's min height is set bigger than needed:")); p.DeleteOwnProperty(Property.HEIGHT); p.SetMinHeight(2500); doc.Add(p); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's max height is set bigger than needed:")); p.DeleteOwnProperty(Property.MIN_HEIGHT); p.SetMaxHeight(2500); doc.Add(p); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 2)] [NUnit.Framework.Test] public virtual void BlockWithSetHeightProperties02() { String outFileName = destinationFolder + "blockWithSetHeightProperties02.pdf"; String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties02.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Paragraph p = new Paragraph(textByron); Div div = new Div(); div.SetBorder(new SolidBorder(ColorConstants.RED, 2)); for (int i = 0; i < 5; i++) { div.Add(p); } PdfImageXObject xObject = new PdfImageXObject(ImageDataFactory.Create(sourceFolder + "Desert.jpg")); iText.Layout.Element.Image image = new iText.Layout.Element.Image(xObject, 300); div.Add(image); doc.Add(new Paragraph("Default layout:")); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Div's height is set shorter than needed:")); div.SetHeight(1000); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Div's min height is set shorter than needed:")); div.DeleteOwnProperty(Property.HEIGHT); div.SetMinHeight(1000); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Div's max height is set shorter than needed:")); div.DeleteOwnProperty(Property.MIN_HEIGHT); div.SetMaxHeight(1000); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Div's height is set bigger than needed:")); div.DeleteOwnProperty(Property.MAX_HEIGHT); div.SetHeight(2500); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Div's min height is set bigger than needed:")); div.DeleteOwnProperty(Property.HEIGHT); div.SetMinHeight(2500); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Div's max height is set bigger than needed:")); div.DeleteOwnProperty(Property.MIN_HEIGHT); div.SetMaxHeight(2500); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 3)] [NUnit.Framework.Test] public virtual void BlockWithSetHeightProperties03() { //Relative height declaration tests String outFileName = destinationFolder + "blockWithSetHeightProperties03.pdf"; String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties03.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); float parentHeight = 650; Div d = new Div(); d.Add(new Paragraph(textByron)); d.SetBorder(new SolidBorder(0.5f)); doc.Add(new Paragraph("Default layout:")); Div parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 80% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(80f)); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 150% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(150f)); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 10% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(10f)); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 40% of the parent and two paragraphs are added")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(40f)); parent.Add(d); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 50% of the parent and two paragraphs are added")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(50f)); parent.Add(d); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's min height is set to 80% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); d.SetProperty(Property.MIN_HEIGHT, UnitValue.CreatePercentValue(80f)); parent.Add(d); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's max height is set to 30% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); //Min-height trumps max-height, so we have to remove it when re-using the div d.DeleteOwnProperty(Property.MIN_HEIGHT); d.SetProperty(Property.MAX_HEIGHT, UnitValue.CreatePercentValue(30f)); parent.Add(d); doc.Add(parent); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 3)] [NUnit.Framework.Test] public virtual void BlockWithSetHeightProperties04() { //Relative height declaration tests String outFileName = destinationFolder + "blockWithSetHeightProperties04.pdf"; String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties04.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); float parentHeight = 650; Paragraph p = new Paragraph(); p.Add(new Text(textByron)); p.SetBorder(new SolidBorder(0.5f)); doc.Add(new Paragraph("Default layout:")); Div parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 80% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(80f)); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 150% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(150f)); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 10% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(10f)); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 40% of the parent and two paragraphs are added")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(40f)); parent.Add(p); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's height is set to 50% of the parent and two paragraphs are added")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(50f)); parent.Add(p); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's min height is set to 80% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.MIN_HEIGHT, UnitValue.CreatePercentValue(80f)); parent.Add(p); doc.Add(parent); doc.Add(new AreaBreak()); doc.Add(new Paragraph("Paragraph's max height is set to 30% of the parent")); parent = new Div(); parent.SetHeight(parentHeight); parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); //Min-height trumps max, so we have to remove it when re-using the paragraph p.DeleteOwnProperty(Property.MIN_HEIGHT); p.SetProperty(Property.MAX_HEIGHT, UnitValue.CreatePercentValue(30f)); parent.Add(p); doc.Add(parent); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void OverflowTest01() { // TODO DEVSIX-1373 String outFileName = destinationFolder + "overflowTest01.pdf"; String cmpFileName = sourceFolder + "cmp_overflowTest01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Paragraph explanation = new Paragraph("In this sample iText will not try to fit text in container's width, because overflow property is set. However no text is hidden." ); doc.Add(explanation); Paragraph p = new Paragraph(textByronNarrow); p.SetWidth(200); p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.HIDDEN); Div div = new Div(); div.SetWidth(100); div.SetBorder(new SolidBorder(ColorConstants.BLACK, 1)); div.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE); div.Add(p); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void OverflowTest02() { String outFileName = destinationFolder + "overflowTest02.pdf"; String cmpFileName = sourceFolder + "cmp_overflowTest02.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Paragraph p = new Paragraph(); p.SetWidth(200); p.SetHeight(100); p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetBackgroundColor(ColorConstants.YELLOW); for (int i = 0; i < 10; i++) { p.Add(textByronNarrow); } p.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE); doc.Add(p); doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED)); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void OverflowTest03() { String outFileName = destinationFolder + "overflowTest03.pdf"; String cmpFileName = sourceFolder + "cmp_overflowTest03.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Paragraph p = new Paragraph(); p.SetWidth(1400); p.SetHeight(1400); p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetBackgroundColor(ColorConstants.YELLOW); for (int i = 0; i < 100; i++) { p.Add(textByronNarrow); } p.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE); p.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE); doc.Add(p); doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED)); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Ignore("DEVSIX-1375")] [NUnit.Framework.Test] public virtual void OverflowTest04() { String outFileName = destinationFolder + "overflowTest04.pdf"; String cmpFileName = sourceFolder + "cmp_overflowTest04.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); iText.Layout.Element.Image image = new iText.Layout.Element.Image(ImageDataFactory.Create(sourceFolder + "Desert.jpg" )); image.SetWidth(200); Document doc = new Document(pdfDocument); Paragraph p = new Paragraph(); p.SetRotationAngle(Math.PI / 2); p.SetWidth(100); p.SetHeight(100); p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1)); p.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE); p.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE); p.Add(image); doc.Add(p); doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED)); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Ignore("DEVSIX-1373")] [NUnit.Framework.Test] public virtual void OverflowTest05() { String outFileName = destinationFolder + "overflowTest05.pdf"; String cmpFileName = sourceFolder + "cmp_overflowTest05.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); div.SetWidth(100); div.SetHeight(150); div.SetBackgroundColor(ColorConstants.GREEN); div.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE); div.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE); List list = new List(); list.Add("Make Greeeeeeeeeetzky Great Again"); list.Add("Greeeeeeeeeetzky Great Again Make"); list.Add("Great Again Make Greeeeeeeeeetzky"); list.Add("Again Make Greeeeeeeeeetzky Great"); div.Add(list); doc.Add(div); doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED)); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Ignore("DEVSIX-1373")] [NUnit.Framework.Test] public virtual void OverflowTest06() { String outFileName = destinationFolder + "overflowTest06.pdf"; String cmpFileName = sourceFolder + "cmp_overflowTest06.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); div.SetWidth(100); div.SetHeight(100); div.SetBackgroundColor(ColorConstants.GREEN); div.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE); div.Add(new Paragraph(textByron)); doc.Add(div); doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED)); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BlockFillAvailableArea01() { String outFileName = destinationFolder + "blockFillAvailableArea01.pdf"; String cmpFileName = sourceFolder + "cmp_blockFillAvailableArea01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); String textByron = "When a man hath no freedom to fight for at home,\n" + " Let him combat for that of his neighbours;\n" + "Let him think of the glories of Greece and of Rome,\n" + " And get knocked on the head for his labours.\n" + "\n" + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n" + "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted." + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n" + "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted." + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n" + "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted."; textByron = textByron + textByron; Document doc = new Document(pdfDocument); DeviceRgb blue = new DeviceRgb(80, 114, 153); Div text = new Div().Add(new Paragraph(textByron)); Div image = new Div().Add(new iText.Layout.Element.Image(ImageDataFactory.Create(sourceFolder + "Desert.jpg" )).SetHeight(500).SetAutoScaleWidth(true)); doc.Add(new Div().Add(new Paragraph("Fill on split").SetFontSize(30).SetFontColor(blue).SetTextAlignment(TextAlignment .CENTER)).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetFillAvailableArea(true)).Add(new AreaBreak ()); doc.Add(new Paragraph("text").SetFontSize(18).SetFontColor(blue)); Div div = CreateDiv(text, textByron, blue, true, false, true); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("image").SetFontSize(18).SetFontColor(blue)); div = CreateDiv(image, textByron, blue, false, false, true); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Div().Add(new Paragraph("Fill always").SetFontSize(30).SetFontColor(blue).SetTextAlignment(TextAlignment .CENTER)).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetFillAvailableArea(true)).Add(new AreaBreak ()); doc.Add(new Paragraph("text").SetFontSize(18).SetFontColor(blue)); div = CreateDiv(text, textByron, blue, true, true, false); doc.Add(div); doc.Add(new Paragraph("image").SetFontSize(18).SetFontColor(blue)); div = CreateDiv(image, textByron, blue, false, true, false); doc.Add(div); doc.Add(new Div().Add(new Paragraph("No fill").SetFontSize(30).SetFontColor(blue).SetTextAlignment(TextAlignment .CENTER)).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetFillAvailableArea(true)).Add(new AreaBreak ()); doc.Add(new Paragraph("text").SetFontSize(18).SetFontColor(blue)); div = CreateDiv(text, textByron, blue, true, false, false); doc.Add(div); doc.Add(new AreaBreak()); doc.Add(new Paragraph("image").SetFontSize(18).SetFontColor(blue)); div = CreateDiv(image, textByron, blue, false, false, false); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void MarginsBordersPaddingOverflow01() { String outFileName = destinationFolder + "marginsBordersPaddingOverflow01.pdf"; String cmpFileName = sourceFolder + "cmp_marginsBordersPaddingOverflow01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); div.SetHeight(760).SetBackgroundColor(ColorConstants.DARK_GRAY); doc.Add(div); Div div1 = new Div().SetMarginTop(42).SetMarginBottom(42).SetBackgroundColor(ColorConstants.BLUE).SetHeight (1); doc.Add(div1); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void MarginsBordersPaddingOverflow02() { String outFileName = destinationFolder + "marginsBordersPaddingOverflow02.pdf"; String cmpFileName = sourceFolder + "cmp_marginsBordersPaddingOverflow02.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); // TODO DEVSIX-1092 div with fixed height is bigger than 60pt Div div = new Div(); div.SetHeight(60).SetBackgroundColor(ColorConstants.DARK_GRAY); Div div1 = new Div().SetMarginTop(200).SetMarginBottom(200).SetBorder(new SolidBorder(6)); div.Add(div1); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void MarginsBordersPaddingOverflow03() { String outFileName = destinationFolder + "marginsBordersPaddingOverflow03.pdf"; String cmpFileName = sourceFolder + "cmp_marginsBordersPaddingOverflow03.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); div.SetHeight(710).SetBackgroundColor(ColorConstants.DARK_GRAY); doc.Add(div); // TODO DEVSIX-1092 this element is below first page visible area Div div1 = new Div().SetMarginTop(200).SetMarginBottom(200).SetBorder(new SolidBorder(6)); doc.Add(div1); doc.Add(new AreaBreak()); // TODO DEVSIX-1092 same with this one the second page SolidBorder border = new SolidBorder(400); Div div2 = new Div().SetBorderTop(border).SetBorderBottom(border); doc.Add(div); doc.Add(div2); doc.Add(new AreaBreak()); // TODO DEVSIX-1092 same with this one the third page Div div3 = new Div().SetBorder(new SolidBorder(6)).SetPaddingTop(400).SetPaddingBottom(400); doc.Add(div); doc.Add(div3); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BorderRadiusTest01() { String outFileName = destinationFolder + "borderRadiusTest01.pdf"; String cmpFileName = sourceFolder + "cmp_borderRadiusTest01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); Style divStyle = new Style().SetHeight(500).SetWidth(500).SetBackgroundColor(ColorConstants.BLUE); divStyle.SetBorderRadius(new BorderRadius(50)); // solid div.AddStyle(divStyle); div.SetBorderTop(new SolidBorder(ColorConstants.RED, 20)).SetBorderRight(new SolidBorder(ColorConstants.YELLOW , 20)); doc.Add(div); doc.Add(new AreaBreak()); // dashed div = new Div(); div.AddStyle(divStyle); div.SetBorderTop(new DashedBorder(ColorConstants.RED, 20)).SetBorderRight(new DashedBorder(ColorConstants. YELLOW, 20)); doc.Add(div); doc.Add(new AreaBreak()); // dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderTop(new DottedBorder(ColorConstants.RED, 20)).SetBorderRight(new DottedBorder(ColorConstants. YELLOW, 20)); doc.Add(div); doc.Add(new AreaBreak()); // round dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderTop(new RoundDotsBorder(ColorConstants.RED, 20)).SetBorderRight(new RoundDotsBorder(ColorConstants .YELLOW, 20)); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BorderRadiusTest02() { String outFileName = destinationFolder + "borderRadiusTest02.pdf"; String cmpFileName = sourceFolder + "cmp_borderRadiusTest02.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); // width and height > 2 * radius Div div = new Div(); div.SetHeight(500).SetWidth(500).SetBackgroundColor(ColorConstants.GREEN).SetBorderRadius(new BorderRadius (100)); doc.Add(div); doc.Add(new AreaBreak()); // 2 * radius > width and height > radius div = new Div(); div.SetHeight(150).SetWidth(150).SetBackgroundColor(ColorConstants.GREEN).SetBorderRadius(new BorderRadius (100)); doc.Add(div); doc.Add(new AreaBreak()); // radius > width and height div = new Div(); div.SetHeight(50).SetWidth(50).SetBackgroundColor(ColorConstants.GREEN).SetBorderRadius(new BorderRadius(100 )); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BorderRadiusTest03() { String outFileName = destinationFolder + "borderRadiusTest03.pdf"; String cmpFileName = sourceFolder + "cmp_borderRadiusTest03.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); Style divStyle = new Style().SetHeight(500).SetWidth(500).SetBackgroundColor(ColorConstants.GREEN); divStyle.SetBorderRadius(new BorderRadius(200)); // solid div.AddStyle(divStyle); div.SetBorderLeft(new SolidBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new SolidBorder(ColorConstants .BLACK, 100)).SetBorderTop(new SolidBorder(ColorConstants.RED, 100)).SetBorderRight(new SolidBorder(ColorConstants .BLUE, 100)); doc.Add(div); doc.Add(new AreaBreak()); // dashed div = new Div(); div.AddStyle(divStyle); div.SetBorderLeft(new DashedBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new DashedBorder(ColorConstants .BLACK, 100)).SetBorderTop(new DashedBorder(ColorConstants.RED, 100)).SetBorderRight(new DashedBorder( ColorConstants.BLUE, 100)); doc.Add(div); doc.Add(new AreaBreak()); // dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderLeft(new DottedBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new DottedBorder(ColorConstants .BLACK, 100)).SetBorderTop(new DottedBorder(ColorConstants.RED, 100)).SetBorderRight(new DottedBorder( ColorConstants.BLUE, 100)); doc.Add(div); doc.Add(new AreaBreak()); // round dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderLeft(new RoundDotsBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new RoundDotsBorder(ColorConstants .BLACK, 100)).SetBorderTop(new RoundDotsBorder(ColorConstants.RED, 100)).SetBorderRight(new RoundDotsBorder (ColorConstants.BLUE, 100)); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BorderRadiusTest04() { String outFileName = destinationFolder + "borderRadiusTest04.pdf"; String cmpFileName = sourceFolder + "cmp_borderRadiusTest04.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); Style divStyle = new Style().SetHeight(120).SetWidth(120).SetBackgroundColor(ColorConstants.MAGENTA); divStyle.SetBorderRadius(new BorderRadius(90)); // solid div.AddStyle(divStyle); div.SetBorderBottom(new SolidBorder(ColorConstants.RED, 30)).SetBorderLeft(new SolidBorder(ColorConstants. GREEN, 15)).SetBorderTop(new SolidBorder(ColorConstants.BLACK, 60)).SetBorderRight(new SolidBorder(ColorConstants .BLUE, 150)); doc.Add(div); doc.Add(new AreaBreak()); // dashed div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new DashedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DashedBorder(ColorConstants .GREEN, 15)).SetBorderTop(new DashedBorder(ColorConstants.BLACK, 60)).SetBorderRight(new DashedBorder( ColorConstants.BLUE, 150)); doc.Add(div); doc.Add(new AreaBreak()); // dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new DottedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DottedBorder(ColorConstants .GREEN, 15)).SetBorderTop(new DottedBorder(ColorConstants.BLACK, 60)).SetBorderRight(new DottedBorder( ColorConstants.BLUE, 150)); doc.Add(div); doc.Add(new AreaBreak()); // round dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new RoundDotsBorder(ColorConstants.RED, 30)).SetBorderLeft(new RoundDotsBorder(ColorConstants .GREEN, 15)).SetBorderTop(new RoundDotsBorder(ColorConstants.BLACK, 60)).SetBorderRight(new RoundDotsBorder (ColorConstants.BLUE, 150)); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BorderRadiusTest05() { String outFileName = destinationFolder + "borderRadiusTest05.pdf"; String cmpFileName = sourceFolder + "cmp_borderRadiusTest05.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); Style divStyle = new Style().SetHeight(460).SetWidth(360).SetBackgroundColor(ColorConstants.MAGENTA); divStyle.SetBorderRadius(new BorderRadius(100)); // solid div.AddStyle(divStyle); div.SetBorderBottom(new SolidBorder(ColorConstants.RED, 30)).SetBorderLeft(new SolidBorder(ColorConstants. BLUE, 15)).SetBorderTop(new SolidBorder(ColorConstants.GREEN, 60)).SetBorderRight(new SolidBorder(ColorConstants .YELLOW, 150)); doc.Add(div); doc.Add(new AreaBreak()); // dashed div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new DashedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DashedBorder(ColorConstants .BLUE, 15)).SetBorderTop(new DashedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DashedBorder(ColorConstants .YELLOW, 150)); doc.Add(div); doc.Add(new AreaBreak()); // dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new DottedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DottedBorder(ColorConstants .BLUE, 15)).SetBorderTop(new DottedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DottedBorder(ColorConstants .YELLOW, 150)); doc.Add(div); doc.Add(new AreaBreak()); // round dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new RoundDotsBorder(ColorConstants.RED, 30)).SetBorderLeft(new RoundDotsBorder(ColorConstants .BLUE, 15)).SetBorderTop(new RoundDotsBorder(ColorConstants.GREEN, 60)).SetBorderRight(new RoundDotsBorder (ColorConstants.YELLOW, 150)); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void BorderRadiusTest06() { String outFileName = destinationFolder + "borderRadiusTest06.pdf"; String cmpFileName = sourceFolder + "cmp_borderRadiusTest06.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div(); Style divStyle = new Style().SetHeight(460).SetWidth(360).SetBackgroundColor(ColorConstants.MAGENTA); divStyle.SetBorderRadius(new BorderRadius(40, 120)); // solid div.AddStyle(divStyle); div.SetBorderBottom(new SolidBorder(ColorConstants.RED, 30)).SetBorderLeft(new SolidBorder(ColorConstants. BLUE, 15)).SetBorderTop(new SolidBorder(ColorConstants.GREEN, 60)).SetBorderRight(new SolidBorder(ColorConstants .YELLOW, 150)); doc.Add(div); doc.Add(new AreaBreak()); // dashed div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new DashedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DashedBorder(ColorConstants .BLUE, 15)).SetBorderTop(new DashedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DashedBorder(ColorConstants .YELLOW, 150)); doc.Add(div); doc.Add(new AreaBreak()); // dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new DottedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DottedBorder(ColorConstants .BLUE, 15)).SetBorderTop(new DottedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DottedBorder(ColorConstants .YELLOW, 150)); doc.Add(div); doc.Add(new AreaBreak()); // round dotted div = new Div(); div.AddStyle(divStyle); div.SetBorderBottom(new RoundDotsBorder(ColorConstants.RED, 30)).SetBorderLeft(new RoundDotsBorder(ColorConstants .BLUE, 15)).SetBorderTop(new RoundDotsBorder(ColorConstants.GREEN, 60)).SetBorderRight(new RoundDotsBorder (ColorConstants.YELLOW, 150)); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] public virtual void HeightShouldBeIncreasedUpToSetHeightTest01() { // TODO DEVSIX-1895 if height bigger than min-height is set, // then the element's height should be increased up to height String outFileName = destinationFolder + "heightShouldBeIncreasedUpToSetHeightTest01.pdf"; String cmpFileName = sourceFolder + "cmp_heightShouldBeIncreasedUpToSetHeightTest01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); Div div = new Div().SetWidth(100).SetMinHeight(100).SetHeight(200).SetBackgroundColor(ColorConstants.BLUE); doc.Add(div); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } [NUnit.Framework.Test] [NUnit.Framework.Ignore("DEVSIX-1897")] public virtual void ParagraphVerticalAlignmentTest01() { String outFileName = destinationFolder + "paragraphVerticalAlignmentTest01.pdf"; String cmpFileName = sourceFolder + "paragraphVerticalAlignmentTest01.pdf"; PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName)); Document doc = new Document(pdfDocument); FontProvider fontProvider = new FontProvider(); fontProvider.AddStandardPdfFonts(); doc.SetFontProvider(fontProvider); String loremIpsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."; doc.Add(new Paragraph(loremIpsum).SetHeight(100).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetBorder( new SolidBorder(3)).SetFontFamily(StandardFonts.TIMES_ROMAN)); doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder , "diff")); } private Div CreateDiv(Div innerOverflowDiv, String text, DeviceRgb backgroundColor, bool keepTogether, bool fillAlways, bool fillOnSplit) { Div div = new Div().SetBorder(new DoubleBorder(10)).SetBackgroundColor(new DeviceRgb(216, 243, 255)).SetFillAvailableAreaOnSplit (fillOnSplit).SetFillAvailableArea(fillAlways); div.Add(new Paragraph(text)); div.Add(innerOverflowDiv.SetKeepTogether(keepTogether)); if (backgroundColor != null) { innerOverflowDiv.SetBackgroundColor(backgroundColor); } return div; } } } ```
Legislature broadcasters in New Zealand are broadcasters of the New Zealand Parliament House of Representatives. Television channel Parliament TV and radio network AM Network are funded by the New Zealand House of Representatives to broadcast full and unedited coverage of its proceedings. The Office of the Clerk also funds a fully independent written, audio and video political reporting service of Parliamentary proceedings called Parliament Today. Sitting hours are seasonal and are generally within five weekly sessions. Normal sittings are 14:00 and 18:00 Tuesdays; 19:30 and 22:00 Tuesday nights; 14:00 and 18:00 Wednesdays; 19:30 and 22:00 Wednesday nights; and 14:00 and 18:00 Thursdays. Special circumstances can allow Parliament to sit under urgency, usually between 09:00 Tuesday morning and 24:00 Saturday evening. History Prior to the AM Network, parliamentary broadcasts were carried on the Concert programme, with New Zealand becoming the first country in the world to regularly broadcast parliament proceedings on 25 March 1936. Veteran press gallery journalist and political commentator Charles Wheeler introduced the broadcast of the opening of the 25th Parliament, with Speaker-elect Barnard. Wheeler told listeners on the first broadcast that "for the first time in the history of New Zealand broadcasting, the microphone has been introduced into Parliament itself so that even the most distant elector may gain some first-hand knowledge of the more important happenings". He said New Zealand was blazing the trail in allowing parliamentary broadcasts. Since the 1980s, the AM Network has used to broadcast all live Parliamentary proceedings in full. On 17 July 2007, Parliamentary coverage was expanded to television. Services Parliament TV Parliament TV is managed by Kordia under a long-term contract to the House of Representatives. and is made freely available to media companies. It broadcasts though media such as TVNZ and MediaWorks New Zealand, as streaming video on the Internet, and, since 9 October 2007, on Freeview channel 31 and Sky Channel 086. Programming on Parliament TV is limited to live coverage of Parliament and scheduled repeats of Question Time on Parliamentary sitting days. It closes down outside non-sitting hours. In The House Christchurch-based Tandem Studios is contracted to the Clerk of the House to live stream Parliament TV's broadcasts, and record, re-format and re-purpose the coverage as small highlight package videos on their In The House website and YouTube account. More than 22,000 videos have been uploaded, and the company claims the videos have received more than 3 million views. Several videos from the final reading of the Marriage (Definition of Marriage) Amendment Act 2013 were redistributed by The New Zealand Herald and other media. A video of one speech in favour of the Act, by National Party MP Maurice Williamson, went viral on YouTube, Huffington Post, Gawker, New York Times and Pink News. It was broadcast on The Ellen DeGeneres Show, with Williamson later declining an invitation to appear on the show. AM Network The AM Network is operated by Radio New Zealand under a similar contract, and uses a nationwide set of AM broadcasting transmitters that were previously used by The Concert Programme before it switched to FM broadcasting. The broadcasts are also available online, via live-streaming and through on-demand podcasts. The AM Network's Parliamentary broadcasts do not include continuity announcers or news bulletins, unlike other Radio New Zealand networks. In total, Radio New Zealand produces an estimated 17 hours of live Parliamentary broadcasting and just over an hour of packaged extracts. The Radio New Zealand smartphone app allows listeners to follow individual Parliamentary sittings on Apple and Android mobile devices. The broadcaster claims its iPhone App has been downloaded more than 50,000 times since it was first introduced in 2011. The AM Network's closedown hours were originally used by Sports Roundup. Since 1997, Christian broadcaster Rhema Media has consistently leased this time to broadcast the low-budget easy listening Star radio network. Despite AM Network being technically owned by Radio New Zealand, Star broadcasts Newstalk ZB Affiliates Unit hourly news bulletins during the air time it leases. AM Network's North Island frequencies are Auckland 882 AM, Waikato 1494 AM, Hawke's Bay 909 AM and Wellington & Tauranga 657 AM. In the South Island, it broadcasts on Canterbury 963 AM, Dunedin 900 AM and Invercargill 1314 AM. Parliament Today The Office of the Clerk also fully funds a political reporting service, providing written, audio and video summaries from the debating chamber and committee rooms of the House of Representatives completely independently from Radio New Zealand. It is the country's only consistent source of regular reports of parliamentary proceedings, with live reports of debates and decisions in the chamber from independent press gallery journalists Tom Frewen and Rheesh Lyon. Clerk of the House David McGee established the service in 1994, hoping to replicate the success BBC Radio 4 show Today in Parliament has had since 1945. Parliament Today programmes summarise the most significant events and highlights from Question Time, debates and select committees, utilising audio from the AM Network for rebroadcast on other stations. Kiwi FM, the community access stations, the student radio stations and other stations broadcast the programmes around the country, and Radio New Zealand International broadcasts the programmes around the Pacific. Each sitting week the service produces three daily programmes on sitting days, a weekly five-minute programme, a weekly ten minute programme, weekly 15 minute programme, a weekly 28 minute programme and a weekly 5 minute Select Committee report. The service ceased in 2016. References
Ruby Rose (born Ruby Rose Langenheim in 1986) is an Australian model and actress. Ruby Rose may refer to: People Ruby Rose Aldridge (born 1991), U.S. fashion model and actress Ruby Rose Fox, U.S. musician, honored at the New England Music Awards Ruby Rose Neri (born 1970), U.S. artist Ruby Rose Roba, former owner of the Roba Ranch Ruby Rose Turner, a U.S. actress Fictional characters Ruby Rose (RWBY), protagonist of the animated web series RWBY Ruby Rose, the main character of Australian film The Tale of Ruby Rose (1988) Other uses Ruby Rose, a sub-order of the occult organization Hermetic Order of the Golden Dawn See also Pink ruby (rose ruby), a rose-colored precious stone, a ruby Ruby (disambiguation) Rose (disambiguation) Rubi Rose (born 1997), American rapper, songwriter and model
The Innovation, Development and Employment Alliance is a business coalition launched in May 2009, aimed at securing intellectual property rights in a number of areas, including environmentally sound technology, healthcare and renewable energy. It is supported by the United States Chamber of Commerce; members include General Electric, Microsoft and Sunrise Solar. It was created in response to developments at the United Nations post–Kyoto Protocol negotiations on greenhouse gas emissions, where developing countries such as Brazil, India and China want the ability to compulsory licence green technology, as they are currently able to do with key drugs, notably for AIDS treatment. References External links ideasforinnovation.org greenpatentblog.com Organizations established in 2009
Margaret-Ellen (Mel) Pipe is a developmental psychologist known for her research on memory development and its application to legal contexts involving eyewitness testimony of children in cases of child abuse. Prior to her retirement, she held the position of Associate Provost for Graduate Studies, Research, and Institutional Effectiveness at the College of Staten Island. Pipe received the Mark Chaffin Outstanding Research Career Achievement Award from the American Professional Society on the Abuse of Children in 2014 and an honorary doctorate from Stockholm University in 2015. Pipe is the co-editor (with Michael E. Lamb, Yael Orbach, and Ann-Christin Cederborg) of Child Sexual Abuse: Disclosure, Delay, and Denial. Biography Pipe grew up in New Zealand and graduated from Waihi College. She received a B.A. degree in English at the University of Auckland, and continued on to complete a PhD in psychology in 1982. Her dissertation, titled "Hemispheric specialization for speech perception in retarded children" used dichotic listening to examine the right-ear advantage for processing speech in children with Down's syndrome or intellectual disability. Pipe completed post-doctoral work in Psychology at Victoria University of Wellington before becoming a Senior Research Fellow and Staff Scientist at the University of Otago (1985-2001), where she worked with Harlene Hayne. Pipe was a professor and chair of the Department of Psychology at Brooklyn College prior to moving to the College of Staten Island in 2016. Pipe and her colleagues have engaged in research on children's memory and testimony about witnessed events. Her team aimed to find out if specific techniques and object cues might help children produce more accurate descriptions of situations or events they may have experienced or witnessed. Supported by funding from the National Institute of Child Health and Human Development and the National Institute of Justice, Pipe worked as part of team that developed and evaluated a forensic interview protocol for interviewing children suspected of having witnessed or been a victim of child abuse. Their protocol used conversational methods to build rapport between the child and the interviewer and relied on open-ended questions as opposed to suggestive leading questions to elicit the child's recall of target events. References Living people Year of birth missing (living people) New Zealand women psychologists Developmental psychologists Child psychologists Forensic psychologists College of Staten Island faculty Brooklyn College faculty University of Auckland alumni 21st-century New Zealand psychologists 20th-century New Zealand psychologists Academic staff of the University of Otago New Zealand expatriates in the United States
Leonard Barrie Corbin (born October 16, 1940) is an American actor. He is best known for his starring role as Maurice Minnifield on the television series Northern Exposure (1990–1995), which earned him two consecutive Primetime Emmy Award nominations. His other notable credits include the films Urban Cowboy (1980), Stir Crazy (1980), WarGames (1983), and No Country for Old Men (2007) as well as the television series Dallas (1979–1984), Lonesome Dove (1989), One Tree Hill (2003–2009), The Closer (2007–2012), The Ranch (2016–2020), and Yellowstone (2021). Early life Corbin's mother gave him his middle name in honor of author J. M. Barrie. He played football briefly in eighth grade, but soon moved to the arts, including acting and ballet classes. He graduated from Monterey High School in Lubbock, Texas. Corbin studied theatre arts at Texas Tech University in Lubbock. At 21, he joined the United States Marine Corps, served two years, and then returned to Texas Tech. Career Corbin began his career in the 1960s as a Shakespearean actor, but today is more likely to be seen in the role of the local sheriff, military leader, or some other authority figure, though on occasion, he has portrayed murderous villains. To moviegoers, he is well remembered as General Beringer in WarGames, John Travolta's uncle Bob Davis in Urban Cowboy, Clint Eastwood's costar in Any Which Way You Can, and Roscoe Brown, July Johnson's bumbling deputy in the acclaimed Western Lonesome Dove. From 1979 until 1984, Corbin appeared in several episodes of Dallas as Sheriff Fenton Washburn. In 1983, he co-starred in the television miniseries The Thorn Birds. Corbin played Mary Carson's stockman Pete, who teaches the Clearys' sons how to shear sheep on their aunt's gigantic sheep station Drogheda, Australia. Also in 1983, Corbin played Merit Sawyer in the television series Boone, cancelled after 10 episodes. Corbin's role was as a stern father to the young actor Tom Byrd, who played Boone Sawyer, an aspiring singer. From 1990 to 1995, Corbin portrayed former astronaut and local business leader Maurice Minnifield on Northern Exposure, for which he received an Emmy Award nomination. In 1994, Corbin narrated the acclaimed TV documentary MoonShot, telling the story of the 1960s space race from the first-person viewpoint of Mercury Seven astronaut Deke Slayton. From 2007 to 2012, Corbin appeared in the recurring role of Clay Johnson, father of Deputy Chief Brenda Leigh Johnson on The Closer. Corbin played the role of General Carville in consecutive video games developed by Westwood Studios: in 1998, Red Alert: Retaliation; in 2000, Command & Conquer: Red Alert 2; and in 2001, Command & Conquer: Yuri's Revenge. In 2003, Corbin co-starred with Northern Exposure castmate John Cullum in Blackwater Elegy, a short film written by Matthew Porter and co-directed by Porter and Joe O'Brien. From 2003 to 2009, Corbin played Whitey Durham, the basketball coach for the Tree Hill Ravens on the drama series One Tree Hill. He also had a role in 2007's No Country for Old Men. Corbin lost most of his hair in the 1990s due to alopecia areata. Since then, he has played various roles with a shaved head, wearing a cowboy hat, or occasionally wearing a full toupee. Corbin is the signature voice of radio station KPLX in Fort Worth, Texas, and has also voiced trailers and promotions for CMT and various other country radio stations. In 2014, he became the spokesman for the Texas Veterans Land Board. He also played a role in the Netflix series The Ranch. In 2020, Corbin had a recurring guest role as Everett Acker in Better Call Saul. Personal life Corbin has won many cutting-horse competitions. Much of his spare time is spent riding horses and tending to cattle on his small ranch near Fort Worth. He has volunteered his time to charity for many years, including rodeos and being spokesman for the National Alopecia Areata Foundation. In 2006, he participated in the Lubbock centennial. In September 2011, Corbin was given a lifetime achievement award by the Estes Park Film Festival in Estes Park, Colorado. The Texas Film Hall of Fame inducted Corbin into its membership on March 8, 2012. In 2014, he was inducted into the National Multicultural Western Heritage Museum. Filmography Film Television Video games References External links Archival Materials Barry Corbin papers at Southwest Collection/Special Collections Library, Texas Tech University 1940 births American male film actors American male television actors Living people Texas Tech University alumni United States Marines People from Lamesa, Texas Male actors from Fort Worth, Texas People from Lubbock County, Texas Male Western (genre) film actors Monterey High School (Lubbock, Texas) alumni 20th-century American male actors 21st-century American male actors Texas Democrats
The Deacon John Moore House is a historic house at 37 Elm Street in Windsor, Connecticut. The oldest portion of the house was built in 1664, making it one of the oldest houses in the state. It has been altered and renovated, but retains its original frame and other elements. It was listed on the National Register of Historic Places in 1977. Description The Deacon John Moore House stands just outside the village center of Windsor, on the south side of Elm Street roughly midway between Broad Street and Spring Street. It is a -story timber-frame structure, with a steeply pitched gable roof and clapboarded exterior. The second story projects beyond the first in the colonial garrison style. The ground floor is five bays across, with two sash windows on either side of the center entrance. The entrance, a modern replacement, is flanked by sidelight windows. The second floor is three bays across, with equally spaced sash windows. The house was built about 1664, and originally stood facing the Windsor Green at the corner of Broad and Elm Streets. It was probably moved once around 1805, and again to its present location in 1897. At that time it retained its eastern-facing orientation; it was rotated in 1938 to face the street. History John Moore was likely the brother of Thomas Moore. Both men were born in England and moved to Windsor. They arrived from England on the ship Mary and John and landed in Dorchester, Massachusetts in 1630 with two prominent ministers of the time, John Maverick and John Warham. In 1635, part of the group moved to Windsor, Connecticut, but the Moores remained in Dorchester until 1639. In 1651, John Moore was ordained a deacon. He was made deputy governor of Connecticut under John Winthrop. Moore had one son named John Moore Jr, and four daughters: Elizabeth Moore (married to Nathaniel Loomis); Abagail Moore (married to Thomas Bissell); Mindwell Moore (married to Nathaniel Bissell); and Hannah Moore (married to John Drake Jr.). In addition to being a deacon, John Moore was also a successful woodworker. He was, and still is, known for using the foliated vine design, which depicts vines and blossoms carved in shallow relief with flat surfaces. There was a network of families in Windsor who dominated the woodworking trade, and John Moore was considered to be at the center. See also List of the oldest buildings in Connecticut National Register of Historic Places listings in Windsor, Connecticut References Houses in Windsor, Connecticut Houses on the National Register of Historic Places in Connecticut Houses completed in 1664 National Register of Historic Places in Hartford County, Connecticut 1664 establishments in Connecticut
Anaerolineaceae is a family of bacteria from the order of Anaerolineales. Anaerolineaceae bacteria occur in marine sediments. There are a total of twelve genera in this family, most of which only encompass one species. All known members of the family are Gram-negative and non-motile. They also do not form bacterial spores and are either mesophilic or thermophilic obligate anaerobes. It is also known that all species in this family are chemoheterotrophs. History The first species discovered in the family Anaerolineaceae was the species Anaerolinea thermophila, with a report on the matter written by Yuji Sekiguchi et. al. in 2003. It was isolated alongside the bacterial species Caldilinea aerophila, a facultative anaerobe. The discovery of these two specimens prompted the addition of a new subphylum in bacterial taxonomy. Phylogeny The currently accepted taxonomy is based on the List of Prokaryotic names with Standing in Nomenclature (LPSN) and National Center for Biotechnology Information (NCBI). References Further reading Chloroflexota
East Fultonham is a census-designated place in central Newton Township, Muskingum County, Ohio, United States. It has a post office with the ZIP code 43735. It is located along U.S. Route 22 a short distance east of the village of Fultonham. The population was 290 at the 2020 census. History East Fultonham had its start when the railroad was extended to that point. The community was named for its location east of Fultonham. Notable people Thomas A. Hendricks, 21st vice president of the United States References Further reading Schneider, Norris F., A Small History of A Small Town: East Fultonham, Muskingum County, Ohio, Zanesville Times Signal, October 6, 1957. Census-designated places in Ohio Census-designated places in Muskingum County, Ohio
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package im.ene.toro.exoplayer; import android.net.Uri; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.ExoPlaybackException; import com.google.android.exoplayer2.SimpleExoPlayer; import com.google.android.exoplayer2.mediacodec.MediaCodecRenderer; import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; import com.google.android.exoplayer2.source.BehindLiveWindowException; import com.google.android.exoplayer2.source.TrackGroupArray; import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; import com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo; import com.google.android.exoplayer2.trackselection.TrackSelectionArray; import com.google.android.exoplayer2.trackselection.TrackSelector; import com.google.android.exoplayer2.ui.PlayerView; import static com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo.RENDERER_SUPPORT_UNSUPPORTED_TRACKS; import static im.ene.toro.exoplayer.ToroExo.toro; /** * Making {@link Playable} extensible. This can be used with custom {@link ExoCreator}. Extending * this class must make sure the re-usability of the implementation. * * @author eneim (2018/02/26). * @since 3.4.0 */ @SuppressWarnings("WeakerAccess") public class ExoPlayable extends PlayableImpl { @SuppressWarnings("unused") private static final String TAG = "ToroExo:Playable"; private EventListener listener; // Adapt from ExoPlayer demo. protected boolean inErrorState = false; protected TrackGroupArray lastSeenTrackGroupArray; /** * Construct an instance of {@link ExoPlayable} from an {@link ExoCreator} and {@link Uri}. The * {@link ExoCreator} is used to request {@link SimpleExoPlayer} instance, while {@link Uri} * defines the media to play. * * @param creator the {@link ExoCreator} instance. * @param uri the {@link Uri} of the media. * @param fileExt the custom extension of the media Uri. */ public ExoPlayable(ExoCreator creator, Uri uri, String fileExt) { super(creator, uri, fileExt); } @Override public void prepare(boolean prepareSource) { if (listener == null) { listener = new Listener(); super.addEventListener(listener); } super.prepare(prepareSource); this.lastSeenTrackGroupArray = null; this.inErrorState = false; } @Override public void setPlayerView(@Nullable PlayerView playerView) { // This will also clear these flags if (playerView != this.playerView) { this.lastSeenTrackGroupArray = null; this.inErrorState = false; } super.setPlayerView(playerView); } @Override public void reset() { super.reset(); this.lastSeenTrackGroupArray = null; this.inErrorState = false; } @Override public void release() { if (listener != null) { super.removeEventListener(listener); listener = null; } super.release(); this.lastSeenTrackGroupArray = null; this.inErrorState = false; } @SuppressWarnings({ "unused" }) // protected void onErrorMessage(@NonNull String message) { // Sub class can have custom reaction about the error here, including not to show this toast // (by not calling super.onErrorMessage(message)). if (this.errorListeners.size() > 0) { this.errorListeners.onError(new RuntimeException(message)); } else if (playerView != null) { Toast.makeText(playerView.getContext(), message, Toast.LENGTH_SHORT).show(); } } class Listener extends DefaultEventListener { @Override public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) { super.onTracksChanged(trackGroups, trackSelections); if (trackGroups == lastSeenTrackGroupArray) return; lastSeenTrackGroupArray = trackGroups; if (!(creator instanceof DefaultExoCreator)) return; TrackSelector selector = ((DefaultExoCreator) creator).getTrackSelector(); if (selector instanceof DefaultTrackSelector) { MappedTrackInfo trackInfo = ((DefaultTrackSelector) selector).getCurrentMappedTrackInfo(); if (trackInfo != null) { if (trackInfo.getTypeSupport(C.TRACK_TYPE_VIDEO) == RENDERER_SUPPORT_UNSUPPORTED_TRACKS) { onErrorMessage(toro.getString(R.string.error_unsupported_video)); } if (trackInfo.getTypeSupport(C.TRACK_TYPE_AUDIO) == RENDERER_SUPPORT_UNSUPPORTED_TRACKS) { onErrorMessage(toro.getString(R.string.error_unsupported_audio)); } } } } @Override public void onPlayerError(ExoPlaybackException error) { /// Adapt from ExoPlayer Demo String errorString = null; if (error.type == ExoPlaybackException.TYPE_RENDERER) { Exception cause = error.getRendererException(); if (cause instanceof MediaCodecRenderer.DecoderInitializationException) { // Special case for decoder initialization failures. MediaCodecRenderer.DecoderInitializationException decoderInitializationException = (MediaCodecRenderer.DecoderInitializationException) cause; if (decoderInitializationException.codecInfo == null) { if (decoderInitializationException.getCause() instanceof MediaCodecUtil.DecoderQueryException) { errorString = toro.getString(R.string.error_querying_decoders); } else if (decoderInitializationException.secureDecoderRequired) { errorString = toro.getString(R.string.error_no_secure_decoder, decoderInitializationException.mimeType); } else { errorString = toro.getString(R.string.error_no_decoder, decoderInitializationException.mimeType); } } else { errorString = toro.getString(R.string.error_instantiating_decoder, decoderInitializationException.codecInfo.name); } } } if (errorString != null) onErrorMessage(errorString); inErrorState = true; if (isBehindLiveWindow(error)) { ExoPlayable.super.reset(); } else { ExoPlayable.super.updatePlaybackInfo(); } super.onPlayerError(error); } @Override public void onPositionDiscontinuity(int reason) { if (inErrorState) { // Adapt from ExoPlayer demo. // "This will only occur if the user has performed a seek whilst in the error state. Update // the resume position so that if the user then retries, playback will resume from the // position to which they seek." - ExoPlayer ExoPlayable.super.updatePlaybackInfo(); } super.onPositionDiscontinuity(reason); } } static boolean isBehindLiveWindow(ExoPlaybackException error) { if (error.type != ExoPlaybackException.TYPE_SOURCE) return false; Throwable cause = error.getSourceException(); while (cause != null) { if (cause instanceof BehindLiveWindowException) return true; cause = cause.getCause(); } return false; } } ```
```yaml description: TI TLC59108 LED compatible: "ti,tlc59108" include: i2c-device.yaml ```
CGY may refer to: Calgary, Alberta, Canada Laguindingan Airport, serving Cagayan de Oro, Mindanao, Philippines, IATA airport code CGY Changanasseri railway station, in Kottayam District, Kerala, India, station code CGY Centigray (cGy), a derived unit of ionizing radiation dose Calian, a Canadian company traded on the Toronto Stock Exchange
Hed Mayner is an Israeli fashion designer that regularly presents his menswear collections in Paris fashion week, and winner of LVMH’s Karl Lagerfeld prize. Early life and education Hed Mayner was born in Amuka in northern Israel. His mother is a painter and his father is a metalworker. He started his interest in fashion at the age of 16 and worked in leather, jewelry and hand sewing. At the age of 22 he started studying at the department of fashion and jewelry at Bezalel in Jerusalem and received his degree (with honors) in 2012. Mayner continued his fashion studies at Institut Français de la Mode in Paris. Career Mayner returned to Israel and founded his brand in Tel-Aviv In 2015. In the same year he won a scholarship from Mifal HaPais. a year later he was one of the five Israeli designers who were featured in the  documentary series Fabric Stories, which was aired in yesDocu. In 2017 Mayner became the first Israeli designer to present On the Official Calendar of Paris Fashion Week. Two years later he won the Karl Legerfeld prize by LVMH. Designs Mayner’s menswear are characterized by unisex designs with wide cuts and custom-made items. According to Vogue magazine, his line is “Influenced by signature traditional Orthodox Jewish tailoring, (and) he infuses his military-inspired collections with a timeless spirit full of spirituality”. External links Hed Mayner's YouTube channel Hed Mayner's interview in Haaretz (in Hebrew) Hed Mayner on WWD Hed Mayner the Israeli designer to follow, Le Monde article (in French) Hed Mayner - Fall 20222 menswear, Vogue Hed Mayner interview in Time Out Israel (in Hebrew) References Israeli fashion designers Year of birth missing (living people) Living people
Oliver Geis (born 20 June 1991) is a German shooter. He represented his country at the 2016 Summer Olympics. References External links 1991 births Living people German male sport shooters Shooters at the 2016 Summer Olympics Olympic shooters for Germany ISSF pistol shooters People from Limburg an der Lahn Sportspeople from Giessen (region) Shooters at the 2019 European Games European Games medalists in shooting European Games gold medalists for Germany Shooters at the 2020 Summer Olympics 21st-century German people
```java /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.beam.sdk.nexmark.queries; import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import org.apache.beam.sdk.nexmark.NexmarkConfiguration; import org.apache.beam.sdk.nexmark.NexmarkUtils; import org.apache.beam.sdk.nexmark.model.Bid; import org.apache.beam.sdk.nexmark.model.Event; import org.apache.beam.sdk.values.TimestampedValue; /** A direct implementation of {@link Query1}. */ public class Query1Model extends NexmarkQueryModel<Bid> implements Serializable { /** Simulator for query 1. */ private static class Simulator extends AbstractSimulator<Event, Bid> { public Simulator(NexmarkConfiguration configuration) { super(NexmarkUtils.standardEventIterator(configuration)); } @Override protected void run() { TimestampedValue<Event> timestampedEvent = nextInput(); if (timestampedEvent == null) { allDone(); return; } Event event = timestampedEvent.getValue(); if (event.bid == null) { // Ignore non-bid events. return; } Bid bid = event.bid; Bid resultBid = new Bid(bid.auction, bid.bidder, bid.price * 89 / 100, bid.dateTime, bid.extra); TimestampedValue<Bid> result = TimestampedValue.of(resultBid, timestampedEvent.getTimestamp()); addResult(result); } } public Query1Model(NexmarkConfiguration configuration) { super(configuration); } @Override public AbstractSimulator<?, Bid> simulator() { return new Simulator(configuration); } @Override protected Collection<String> toCollection(Iterator<TimestampedValue<Bid>> itr) { return toValueTimestamp(itr); } } ```
The Unbreakable Boy is an upcoming American drama film directed and written by Jon Gunn. It is based on the book The Unbreakable Boy: A Father's Fear, a Son's Courage, and a Story of Unconditional Love, authored by Scott Michael LeRette and Suzy Flory, which is based on a true story. The film stars Zachary Levi in the lead role. The film is scheduled to be released by Kingdom Story Company and Lionsgate. Premise Austin is a disabled boy who has brittle bone disease and autism. His father, Scott, always keeps Austin happy. Cast Zachary Levi as Scott LeRette, Austin's father Jacob Laval as Austin LeRette, a disabled autistic boy who has brittle bones disease Roy Jackson Miller as Austin LeRette (age 2) Meghann Fahy as Teresa Peter Facinelli as Preacher Rick Drew Powell Gavin Warren as Logan LeRette Pilot Bunch as Tyler Patricia Heaton Amy Acker as Lori Sarah Dean as Extra Todd Terry as Dick Kevin Downes as Lyle Mattie Ward and Justin Russell as AA Members Bruce Davis as Autism Doctor Ashtyn Barlow Nguyen as Cheerleader Lena Harmon as Doctor Alexandra Swanbeck as Nurse Production The Unbreakable Boy was announced on November 13, 2020 by the Erwin brothers. On November 17, 2020, it was announced that Zachary Levi would star in the film. On November 20, 2020, it was announced that Jacob Laval, Meghann Fahy, Peter Facinelli, Drew Powell, Pilot Bunch, and Patricia Heaton have joined the cast. The filming was completed in Oklahoma during the COVID-19 pandemic in early 2021. On November 29, 2021, it was announced that Pancho Burgos-Goizueta would score the film. Release The film was originally scheduled to be theatrically released on March 18, 2022, but was pulled from Lionsgate's release schedule eight days before its release without a new release date. References External links Upcoming films Upcoming English-language films American biographical drama films Films based on books Films impacted by the COVID-19 pandemic American independent films Films directed by Jon Gunn Films produced by Kevin Downes Lionsgate films
Kalimpong Assembly constituency is an assembly constituency in Kalimpong district in the Indian state of West Bengal. Overview As per orders of the Delimitation Commission, No. 22 Kalimpong Assembly constituency covers Kalimpong municipality, Kalimpong I community development block, Kalimpong II community development block, and Gorubathan community development block. Kalimpong Assembly constituency is part of No. 4 Darjeeling (Lok Sabha constituency). Members of the Legislative Assembly Election results 2021 Election In the 2021 West Bengal Legislative Assembly election, Ruden Sada Lepcha of GJM (Binay faction) defeated his nearest rival Suva Pradhan of BJP. 2016 Election In the 2016 West Bengal Legislative Assembly election, Sarita Rai of GJM defeated her nearest rival Harka Bahadur Chhetri of JAP. 2011 Election In the 2011 West Bengal Legislative Assembly election, Harka Bahadur Chhetri of GJM defeated his nearest rival Prakash Dahal of GNLF. References Assembly constituencies of West Bengal Kalimpong district
The 2004 House elections in Kentucky occurred on November 2, 2004, to elect the members of the State of Kentucky's delegation to the United States House of Representatives. Kentucky had six seats in the House, apportioned according to the 2000 United States Census. These elections occurred simultaneously with the United States Senate elections of 2004 (including one in Kentucky), the United States House elections in other states, and various state and local elections. Though Democrats picked up a seat via a special election in the 6th congressional district in February of that year, this was later cancelled out by a victory for Republicans in the Fourth district. Overview District 1 Incumbent Republican Congressman Ed Whitfield defeated Democratic challenger Billy Cartwright by a solid margin in this solidly-conservative west Kentucky-based district. District 2 Incumbent Republican Congressman Ron Lewis faced no difficulty seeking a fifth term in his conservative district based in west-central Kentucky, riding the coattails of President Bush's re-election in Kentucky over Democratic nominee Adam Smith. District 3 Incumbent Republican Congresswoman Anne Northup was used to facing tough elections in this swing district based in Louisville, but this election proved different. Despite the fact that John Kerry, the Democratic nominee for president, won Northup's district, her Democratic opponent, Tony Miller, the Circuit Court Clerk for Jefferson County was unable to defeat Northup and his campaign crumbled in a landslide. District 4 When incumbent Congressman Ken Lucas, a Democrat, declined to seek re-election as part of a campaign pledge to only serve three terms, an intense battle emerged in this conservative district based in northern Kentucky. Reporter Nick Clooney, the father of renowned actor George Clooney, became the Democratic nominee; Geoff Davis, Lucas's opponent in 2002, became the Republican nominee. In what some dubbed "Heartland vs. Hollywood," Davis rode a Republican tidal wave to victory, defeating Clooney by a fair margin. Michael E. Slider, a High School teacher from Oldham County, also ran in the race as an Independent. District 5 Incumbent Republican Congressman Hal Rogers was unopposed for another term in this strongly conservative district based in East Kentucky. District 6 Emerging from a successful special election earlier in the year, freshman incumbent Congressman Ben Chandler faced off against the Republican nominee, Kentucky State Senator Tom Buford. Chandler won a second term with relative ease in this conservative Central Kentucky district. References Kentucky 2004 2004 Kentucky elections
```php <?php namespace Server; use Gelf\Publisher; use Monolog\Formatter\JsonFormatter; use Monolog\Handler\GelfHandler; use Monolog\Handler\RotatingFileHandler; use Monolog\Handler\SyslogHandler; use Monolog\Logger; use Noodlehaus\Config; use Server\Components\Backstage\BackstageHelp; use Server\Components\Event\EventDispatcher; use Server\Components\GrayLog\UdpTransport; use Server\Components\log\SDJsonFormatter; use Server\Components\Middleware\MiddlewareManager; use Server\Components\Process\ProcessRPC; use Server\CoreBase\ControllerFactory; use Server\CoreBase\ILoader; use Server\CoreBase\Loader; use Server\CoreBase\PortManager; use Whoops\Exception\ErrorException; /** * Created by PhpStorm. * User: zhangjincheng * Date: 16-6-28 * Time: 11:37 */ abstract class SwooleServer extends ProcessRPC { /** * */ const config_version = 3; /** * */ const version = "3.7.4"; /** * server name * @var string */ public $name = ''; /** * server user * @var string */ public $user = ''; /** * worker * @var int */ public $worker_num = 0; public $task_num = 0; /** * * @var int */ public $tickTime; /** * * @var ILoader */ public $loader; /** * Emitted when worker processes stoped. * * @var callback */ public $onErrorHandel = null; /** * @var \swoole_server */ public $server; /** * @var Config */ public $config; /** * * @var Logger */ public $log; /** * @var PortManager */ public $portManager; /** * @var MiddlewareManager */ protected $middlewareManager; /** * @var int */ public $workerId; /** * * @var \swoole_table */ protected $uid_fd_table; /** * @var \swoole_table */ protected $fd_uid_table; /** * @var int */ protected $max_connection; /** * @var bool */ protected $allow_MonitorFlowData; /** * monologloghandler */ public function setLogHandler() { $this->log = new Logger($this->config->get('log.log_name', 'SD')); switch ($this->config['log']['active']) { case "graylog": $this->log->setHandlers([new GelfHandler(new Publisher(new UdpTransport($this->config['log']['graylog']['ip'], $this->config['log']['graylog']['port'])), $this->config['log']['log_level'])]); break; case "file": $handel = new RotatingFileHandler(LOG_DIR . "/" . $this->name . '.log', $this->config['log']['file']['log_max_files'], $this->config['log']['log_level']); $handel->setFormatter(new JsonFormatter()); $this->log->pushHandler($handel); break; case "syslog": $handel = new SyslogHandler($this->config['log']['syslog']['ident']); $handel->setFormatter(new SDJsonFormatter()); $this->log->pushHandler($handel); break; } } /** * SwooleServer constructor. * @throws \Noodlehaus\Exception\EmptyDirectoryException */ public function __construct() { $this->onErrorHandel = [$this, 'onErrorHandel']; $this->setConfig(); $this->middlewareManager = new MiddlewareManager(); $this->user = $this->config->get('server.set.user', ''); $this->setLogHandler(); set_error_handler([$this, 'displayErrorHandler'], E_ALL | E_STRICT); set_exception_handler('displayExceptionHandler'); $this->portManager = new PortManager($this->config['ports']); if ($this->loader == null) { $this->loader = new Loader(); } $this->allow_MonitorFlowData = $this->config->get("allow_MonitorFlowData", false); } /** * * @throws \Noodlehaus\Exception\EmptyDirectoryException */ protected function setConfig() { $this->config = new Config(getConfigDir()); BackstageHelp::init(); } /** * Loader * @param ILoader $loader */ protected function setLoader(ILoader $loader) { $this->loader = $loader; } /** * * @return mixed */ public function setServerSet($probuf_set) { $set = $this->config->get('server.set', []); if ($probuf_set != null) { $set = array_merge($set, $probuf_set); } $this->worker_num = $set['worker_num']; $this->task_num = $set['task_worker_num']; $set['daemonize'] = Start::getDaemonize(); $this->server->set($set); swoole_async_set([ 'socket_buffer_size' => 1024 * 1024 * 1024 ]); } /** * */ public function start() { if ($this->portManager->tcp_enable) { $first_config = $this->portManager->getFirstTypePort(); $set = $this->portManager->getProbufSet($first_config['socket_port']); if (array_key_exists('ssl_cert_file', $first_config)) { $set['ssl_cert_file'] = $first_config['ssl_cert_file']; } if (array_key_exists('ssl_key_file', $first_config)) { $set['ssl_key_file'] = $first_config['ssl_key_file']; } $socket_ssl = $first_config['socket_ssl'] ?? false; if ($socket_ssl) { $this->server = new \swoole_server($first_config['socket_name'], $first_config['socket_port'], SWOOLE_PROCESS, $first_config['socket_type'] | SWOOLE_SSL); } else { $this->server = new \swoole_server($first_config['socket_name'], $first_config['socket_port'], SWOOLE_PROCESS, $first_config['socket_type']); } $this->setServerSet($set); $this->server->on('Start', [$this, 'onSwooleStart']); $this->server->on('WorkerStart', [$this, 'onSwooleWorkerStart']); $this->server->on('connect', [$this, 'onSwooleConnect']); $this->server->on('receive', [$this, 'onSwooleReceive']); $this->server->on('close', [$this, 'onSwooleClose']); $this->server->on('WorkerStop', [$this, 'onSwooleWorkerStop']); $this->server->on('Task', [$this, 'onSwooleTask']); $this->server->on('Finish', [$this, 'onSwooleFinish']); $this->server->on('PipeMessage', [$this, 'onSwoolePipeMessage']); $this->server->on('WorkerError', [$this, 'onSwooleWorkerError']); $this->server->on('ManagerStart', [$this, 'onSwooleManagerStart']); $this->server->on('ManagerStop', [$this, 'onSwooleManagerStop']); $this->server->on('Packet', [$this, 'onSwoolePacket']); $this->server->on('Shutdown', [$this, 'onSwooleShutdown']); $this->portManager->buildPort($this, $first_config['socket_port']); $this->beforeSwooleStart(); $this->server->start(); } else { secho("SYS", ""); exit(0); } } /** * start */ public function beforeSwooleStart() { //uid->fd $this->createUidTable(); } /** * uid->fd */ public function createUidTable() { $this->max_connection = $this->config['server']['set']['max_connection'] ?? 65536; $this->uid_fd_table = new \swoole_table($this->max_connection); $this->uid_fd_table->column('fd', \swoole_table::TYPE_INT, 8); $this->uid_fd_table->create(); $this->fd_uid_table = new \swoole_table($this->max_connection); $this->fd_uid_table->column('uid', \swoole_table::TYPE_STRING, 50); $this->fd_uid_table->create(); } /** * onSwooleStart * @param $serv */ public function onSwooleStart($serv) { setTimezone(); Start::setProcessTitle(getServerName() . '-Master'); if (Start::getDebug()) { secho("SYS", "DEBUG"); } } /** * onSwooleWorkerStart * @param $serv * @param $workerId */ public function onSwooleWorkerStart($serv, $workerId) { setTimezone(); $this->workerId = $workerId; //apc if (function_exists('apc_clear_cache')) { apc_clear_cache(); } if (function_exists('opcache_reset')) { opcache_reset(); } // $this->config = $this->config->load(getConfigDir()); if (!$serv->taskworker) {//worker Start::setProcessTitle(getServerName() . "-Worker"); } else { Start::setProcessTitle(getServerName() . "-Tasker"); } } /** * onSwooleConnect * @param $serv * @param $fd * @throws \Throwable */ public function onSwooleConnect($serv, $fd) { $this->portManager->eventConnect($fd); } /** * * @param $serv * @param $fd * @param $from_id * @param $data * @param null $server_port * @return CoreBase\Controller|void */ public function onSwooleReceive($serv, $fd, $from_id, $data, $server_port = null) { if (!Start::$testUnity) { $server_port = $this->getServerPort($fd); $uid = $this->getUidFromFd($fd); } else { $fd = 'self'; $uid = $fd; } $pack = $this->portManager->getPack($server_port); // try { $client_data = $pack->unPack($data); } catch (\Throwable $e) { $pack->errorHandle($e, $fd); return; } // if ($this->allow_MonitorFlowData) { if (!empty($uid)) { try { get_instance()->pub('$SYS_CHANNEL/' . "$uid/recv", $client_data); } catch (\Throwable $e) { } } } $middleware_names = $this->portManager->getMiddlewares($server_port); $context = []; $path = ''; $middlewares = $this->middlewareManager->create($middleware_names, $context, [$fd, &$client_data]); //client_data try { $this->middlewareManager->before($middlewares); $route = $this->portManager->getRoute($server_port); try { $client_data = $route->handleClientData($client_data); $controller_name = $route->getControllerName(); $method_name = $this->portManager->getMethodPrefix($server_port) . $route->getMethodName(); $path = $route->getPath(); $controller_instance = ControllerFactory::getInstance()->getController($controller_name); if ($controller_instance != null) { $controller_instance->setContext($context); $controller_instance->setClientData($uid, $fd, $client_data, $controller_name, $method_name, $route->getParams()); } else { throw new \Exception('no controller'); } } catch (\Throwable $e) { $route->errorHandle($e, $fd); } } catch (\Exception $e) { // } try { $this->middlewareManager->after($middlewares, $path); } catch (\Exception $e) { // } $this->middlewareManager->destory($middlewares); if (Start::getDebug()) { secho("DEBUG", $context); } unset($context); } /** * @return string */ abstract function getEventControllerName(); /** * @return string */ abstract function getCloseMethodName(); /** * @return string */ abstract function getConnectMethodName(); /** * onSwooleClose * @param $serv * @param $fd * @throws \Throwable */ public function onSwooleClose($serv, $fd) { $this->portManager->eventClose($fd); } /** * onSwooleWorkerStop * @param $serv * @param $worker_id */ public function onSwooleWorkerStop($serv, $worker_id) { } /** * onSwooleShutdown * @param $serv */ public function onSwooleShutdown($serv) { } /** * onSwooleTask * @param $serv * @param $task_id * @param $from_id * @param $data * @return mixed */ public function onSwooleTask($serv, $task_id, $from_id, $data) { } /** * onSwooleFinish * @param $serv * @param $task_id * @param $data */ public function onSwooleFinish($serv, $task_id, $data) { } /** * onSwoolePipeMessage * @param $serv * @param $from_worker_id * @param $message * @throws \Exception */ public function onSwoolePipeMessage($serv, $from_worker_id, $message) { switch ($message['type']) { case SwooleMarco::PROCESS_RPC_RESULT: EventDispatcher::getInstance()->dispatch($message['message']['token'], $message['message']['result'], true); break; case SwooleMarco::PROCESS_RPC: $this->processPpcRun($message['message']); break; default: if (!empty($message['func'])) { $message['func']($message['message']); } } } /** * onSwooleWorkerError * @param $serv * @param $worker_id * @param $worker_pid * @param $exit_code */ public function onSwooleWorkerError($serv, $worker_id, $worker_pid, $exit_code) { $data = ['worker_id' => $worker_id, 'worker_pid' => $worker_pid, 'exit_code' => $exit_code]; $log = "WORKER Error "; $log .= json_encode($data); $this->log->alert($log); if ($this->onErrorHandel != null) { sd_call_user_func($this->onErrorHandel, '', $log); } } /** * ManagerStart * @param $serv */ public function onSwooleManagerStart($serv) { Start::setProcessTitle(getServerName() . '-Manager'); } /** * ManagerStop * @param $serv */ public function onSwooleManagerStop($serv) { } /** * onPacket(UDP) * @param $server * @param string $data * @param array $client_info */ public function onSwoolePacket($server, $data, $client_info) { } /** * SerevrMessageBody * @param $type * @param $message * @param string $func * @return string */ public function packServerMessageBody($type, $message, string $func = null) { $data['type'] = $type; $data['message'] = $message; $data['func'] = $func; return $data; } /** * * @param $name * @param $arguments * @return mixed */ public function __call($name, $arguments) { return sd_call_user_func_array(array($this->server, $name), $arguments); } /** * @param $error * @param $error_string * @param $filename * @param $line * @param $symbols * @throws ErrorException */ public function displayErrorHandler($error, $error_string, $filename, $line, $symbols) { throw new ErrorException($error_string, $error, 1, $filename, $line); } /** * Get socket name. * * @return string */ public function getSocketName() { return $this->socket_name ? lcfirst($this->socket_name . ":" . $this->port) : 'none'; } /** * workerId * @return int */ public function getWorkerId() { return $this->workerId; } /** * worker * @param null $worker_id * @return bool */ public function isWorker($worker_id = null) { if ($worker_id == null) { $worker_id = $this->workerId; } return $worker_id < $this->worker_num ? true : false; } /** * task * @return bool */ public function isTaskWorker() { return $this->server->taskworker ?? false; } /** * * @param null $worker_id * @return bool */ public function isUserProcess($worker_id = null) { //=== if ($worker_id === null) { $worker_id = $this->workerId; } return $worker_id >= $this->worker_num + $this->task_num ? true : false; } /** * tcpwebsocket * @param $fd * @param $data * @param bool $ifPack * @param null $topic * @return bool */ public function send($fd, $data, $ifPack = false, $topic = null) { if (!$this->server->exist($fd)) { return false; } if ($ifPack) { $pack = $this->portManager->getPackFromFd($fd); if ($pack != null) { $data = $pack->pack($data, $topic); } } return $this->server->send($fd, $data); } /** * * close fd * @param $fd */ public function close($fd) { $this->server->close($fd); } /** * * @param $msg * @param $log */ public function onErrorHandel($msg, $log) { secho("ERROR", $msg); secho("ERROR", $log); } /** * @param $fd * @return mixed */ public function getFdInfo($fd) { $fdinfo = $this->server->connection_info($fd); return $fdinfo; } /** * @param $fd * @return mixed */ public function getServerPort($fd) { return $this->server->connection_info($fd)['server_port']; } /** * * @param $fd */ public function protect($fd) { $this->server->protect($fd); } /** * Uidfd * @param $uid * @return mixed */ public function getFdFromUid($uid) { return $this->uid_fd_table->get($uid, 'fd'); } /** * fduid * @param $fd * @return mixed */ public function getUidFromFd($fd) { return $this->fd_uid_table->get($fd, 'uid'); } } ```
```php <?php return [ 'id' => 'app-xappgii-tests', 'components' => [ 'assetManager' => [ 'basePath' => __DIR__ . '/../web/assets', ], 'urlManager' => [ 'showScriptName' => true, ], 'request' => [ 'cookieValidationKey' => 'test', ], ], ]; ```
Maria Jessica Aspiras Soho (; born March 27, 1964) is a Filipino broadcast journalist affiliated with GMA Network. She is the host of the news magazine program Kapuso Mo, Jessica Soho (2004present) on GMA, and was the news anchor for State of the Nation on GTV from 2011 to 2021. Soho is a multi-awarded journalist. In 1998, Soho became the first Filipino to win the British Fleet Street Award for Journalism. In 1999, Soho and the I-Witness team received the Philippines' first Peabody Award for producing the "Kidneys for Sale" and "Kamao" documentaries. Soho's story of a hostage crisis in Cagayan Valley made her the first Filipino to win in the New York Film Festival. Early life Maria Jessica Aspiras Soho was born in Agoo, La Union, Philippines, on March 27, 1964. Her parents are Abelardo Soho, a government employee, and Maura Aspiras, an agriculturist. Soho's grandmothers, Sixta "Apo Ittang" Aspiras and Concepción "Cion" Soho, influenced her in telling stories. Soho attended the University of the Philippines Diliman to study mass communication. One of her professors was Luis Beltran, who inspired Soho to finish her studies and practice journalism in Manila. Career Soho joined GMA News and Public Affairs in January 1985. Soho's first voice-over report was a feature story on the inauguration of the Manila Line 1 from Baclaran to Monumento. Soho was later assigned to the defense and military beats. In 1991, Soho earned a Bronze Award at the New York Film Festival for her coverage of a hostage crisis in Cagayan Valley, the first for a Filipino. She also received the Ka Doroy Valencia Award given by the Kapisanan ng mga Brodkaster ng Pilipinas. In 1994, she received the Grand Prize from the Asia-Pacific Broadcasting Union for her coverage of a breaking news story. Soho is included in the list of 100 Filipino Women of Distinction chosen during the Philippine Centennial celebrations. Soho helped conceptualize the one-hour documentary television program I-Witness, which she co-presented from its premiere in 1999 to 2004. The I-Witness documentaries "Kidneys for Sale" and "Kamao" made her the first Filipino reporter, with GMA Network as the first Filipino network, to win a Peabody Award in 1999. She won the Asian Television Award for Best News and Current Affairs Special for the 2001 "Saksi Sa Kasaysayan" documentary. In 2014, Soho's GMA news programs Kapuso Mo, Jessica Soho and State of the Nation with Jessica Soho were recognized by the Peabody Awards for their coverage on Super Typhoon Yolanda. State of the Nation also earned Soho consecutive wins for Most Trusted News Presenter by Reader's Digest Asia. In 2015, Soho was given an honorary doctorate in humanities by the University of Northeastern Philippines during its 67th commencement exercises on April. Controversies In May 2013, a controversy sparked involving Soho and comedian Vice Ganda, involving a joke directed at the anchor during the latter's concert held at the Smart Araneta Coliseum. Vice mentioned Soho, among several other personalities, in a stand-up skit involving celebrities starring in a pornographic film, adding that Soho would be gang raped if she were cast, as well as making several jokes ridiculing her weight. Vice Ganda later issued a public apology during his regular appearances in It's Showtime, admitting to his wrongdoing and that he offended Soho and several others with his jokes. Soho later acknowledged Vice's apology but she denied any intent to close any further discussion with the comedian. In June 2021, Nas Daily announced that Soho, among other known Filipino personalities, which include Miss Universe 2018 Catriona Gray, fashion designer Michael Cinco, and food vlogger Erwan Heussaff would teach courses through his Nas Academy. However, following the Whang-od controversy, Jessica Soho has made a statement that she would no longer pursue the Jessica Soho course in Nas Academy. In January 2022, Soho was accused of being "biased" against Bongbong Marcos, a presidential candidate in the 2022 Philippine presidential election, by his spokesman Victor Rodriguez after declining to participate in The Jessica Soho Presidential Interviews on GMA Network. GMA responded to Rodriguez's claim on Marcos' absence, saying "Throughout her career, Ms. Soho has consistently been named the most trusted media personality in the Philippines by both local and foreign organizations, a testament to her embodiment of the GMA News and Public Affairs ethos: 'Walang Kinikilingan, Walang Pinoprotektahan, Serbisyong Totoo Lamang'". Accolades International recognitions British Embassy in Manila Reader's Digest Trusted Brands Asia Local recognitions Adamson University ALTA Media Icon Awards Anak TV Seal Award Catholic Mass Media Awards CCP Gawad Natatanging Parangal CLASS Awards (City of Malabon University) COMGUILD Center for Journalism EdukCircle Awards Federation of Philippine Industries, Inc. FemaleNetwork.com Gawad Duyan Awards Gawad Pasado Awards Golden Dove Awards International Association of Business Communicators (IABC) Philippines International Business and Academe Conference's Service Excellence and Partners Awards International Center for Communication Studies (ICCS) Kapisanan ng mga Brodkaster ng Pilipinas Mary Kay Philippines Metro Pacific Corporation Journalism Awards Metrobank Foundation MTRCB TV Awards Paragala Awards Platinum Stallion Media Awards PMAP Makatao Awards for Media Excellence PMPC Star Awards for Television School Press Advisers Movement (SPAM) PUP Mabini Media Awards The Outstanding Women in the Nation's Service (TOWNS) Ten Outstanding Young Men (TOYM) Award Rotary Club of Manila UmalohokJUAN Awards UPLB Gandingan Awards USTv Students' Choice Awards Honors Doctor of Humanities, Honoris Causa – University of Northeastern Philippines (2015) References 1964 births Living people Ilocano people Filipino people of Chinese descent Filipino reporters and correspondents Filipino television news anchors Filipino television presenters Filipino women journalists Filipino women television presenters GMA Network personalities GMA Integrated News and Public Affairs people Peabody Award winners People from San Fernando, La Union University of the Philippines Diliman alumni Women television journalists People from La Union
Dobó is the name of a Hungarian noble family, and a surname. People with that name include: Ágnes Dobó (born 1988), Hungarian model and pageant titleholder István Dobó ( - 1572), Hungarian soldier Kata Dobó (born 1974), Hungarian actress George Devereux (born György Dobó) (1908-1985), Hungarian-French anthropologist See also Dobó István Hungarian Elementary School, Slovakia Dobo (disambiguation) Dobos (surname) Surnames of Hungarian origin
```java package com.yahoo.vespa.indexinglanguage; import com.yahoo.document.DataType; import com.yahoo.document.Document; import com.yahoo.document.DocumentUpdate; import com.yahoo.document.Field; import com.yahoo.document.FieldPath; import com.yahoo.document.datatypes.Array; import com.yahoo.document.datatypes.FieldValue; import com.yahoo.document.datatypes.IntegerFieldValue; import com.yahoo.document.datatypes.MapFieldValue; import com.yahoo.document.datatypes.StringFieldValue; import com.yahoo.document.datatypes.StructuredFieldValue; import com.yahoo.document.datatypes.WeightedSet; import com.yahoo.document.update.AddValueUpdate; import com.yahoo.document.update.ArithmeticValueUpdate; import com.yahoo.document.update.AssignValueUpdate; import com.yahoo.document.update.ClearValueUpdate; import com.yahoo.document.update.FieldUpdate; import com.yahoo.document.update.MapValueUpdate; import com.yahoo.document.update.RemoveValueUpdate; import com.yahoo.document.update.TensorAddUpdate; import com.yahoo.document.update.TensorModifyUpdate; import com.yahoo.document.update.TensorRemoveUpdate; import com.yahoo.document.update.ValueUpdate; import com.yahoo.vespa.indexinglanguage.expressions.Expression; import com.yahoo.vespa.indexinglanguage.expressions.FieldValueAdapter; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; /** * @author Simon Thoresen Hult */ @SuppressWarnings("rawtypes") public class FieldUpdateAdapter implements UpdateAdapter { private final DocumentAdapter adapter; private final Builder builder; private final Expression optimizedExpression; private FieldUpdateAdapter(Expression optimizedExpression, DocumentAdapter adapter, Builder builder) { this.adapter = adapter; this.builder = builder; this.optimizedExpression = optimizedExpression; } @Override public DocumentUpdate getOutput() { Document doc = adapter.getUpdatableOutput(); DocumentUpdate upd = new DocumentUpdate(doc.getDataType(), doc.getId()); for (Iterator<Map.Entry<Field, FieldValue>> it = doc.iterator(); it.hasNext();) { Map.Entry<Field, FieldValue> entry = it.next(); Field field = entry.getKey(); if (field.getName().equals("sddocname")) { continue; } FieldUpdate fieldUpd = FieldUpdate.create(field); fieldUpd.addValueUpdates(builder.build(entry.getValue())); if (!fieldUpd.isEmpty()) { upd.addFieldUpdate(fieldUpd); } } return upd.isEmpty() ? null : upd; } @Override public Expression getExpression(Expression expression) { return optimizedExpression != null ? optimizedExpression : expression; } @Override public DataType getInputType(Expression exp, String fieldName) { return adapter.getInputType(exp, fieldName); } @Override public FieldValue getInputValue(String fieldName) { return adapter.getInputValue(fieldName); } @Override public FieldValue getInputValue(FieldPath fieldPath) { return adapter.getInputValue(fieldPath); } @Override public void tryOutputType(Expression exp, String fieldName, DataType valueType) { adapter.tryOutputType(exp, fieldName, valueType); } @Override public FieldValueAdapter setOutputValue(Expression exp, String fieldName, FieldValue fieldValue) { return adapter.setOutputValue(exp, fieldName, fieldValue); } public static FieldUpdateAdapter fromPartialUpdate(DocumentAdapter documentAdapter, ValueUpdate valueUpdate) { return new FieldUpdateAdapter(null, documentAdapter, new PartialBuilder(valueUpdate)); } public static FieldUpdateAdapter fromPartialUpdate(Expression expression, DocumentAdapter documentAdapter, ValueUpdate valueUpdate) { return new FieldUpdateAdapter(expression, documentAdapter, new PartialBuilder(valueUpdate)); } public static FieldUpdateAdapter fromCompleteUpdate(DocumentAdapter documentAdapter) { return new FieldUpdateAdapter(null, documentAdapter, new CompleteBuilder()); } private interface Builder { List<ValueUpdate> build(FieldValue val); } private static class PartialBuilder implements Builder { final ValueUpdate update; PartialBuilder(ValueUpdate update) { this.update = update; } @Override public List<ValueUpdate> build(FieldValue val) { return createValueUpdates(val, update); } @SuppressWarnings({ "unchecked" }) List<ValueUpdate> createValueUpdates(FieldValue val, ValueUpdate upd) { List<ValueUpdate> lst = new ArrayList<>(); if (upd instanceof ClearValueUpdate) { lst.add(new ClearValueUpdate()); } else if (upd instanceof AssignValueUpdate) { lst.add(new AssignValueUpdate(val)); } else if (upd instanceof AddValueUpdate) { if (val instanceof Array) { lst.addAll(createAddValueUpdateForArray((Array)val, ((AddValueUpdate)upd).getWeight())); } else if (val instanceof WeightedSet) { lst.addAll(createAddValueUpdateForWset((WeightedSet)val)); } else { // do nothing } } else if (upd instanceof ArithmeticValueUpdate) { lst.add(upd); // leave arithmetics alone } else if (upd instanceof RemoveValueUpdate) { if (val instanceof Array) { lst.addAll(createRemoveValueUpdateForEachElement(((Array)val).fieldValueIterator())); } else if (val instanceof WeightedSet) { lst.addAll(createRemoveValueUpdateForEachElement(((WeightedSet)val).fieldValueIterator())); } else { // do nothing } } else if (upd instanceof MapValueUpdate) { if (val instanceof Array) { lst.addAll(createMapValueUpdatesForArray((Array)val, (MapValueUpdate)upd)); } else if (val instanceof MapFieldValue) { throw new UnsupportedOperationException("Can not map into a " + val.getClass().getName()); } else if (val instanceof StructuredFieldValue) { lst.addAll(createMapValueUpdatesForStruct((StructuredFieldValue)val, (MapValueUpdate)upd)); } else if (val instanceof WeightedSet) { lst.addAll(createMapValueUpdatesForWset((WeightedSet)val, (MapValueUpdate)upd)); } else { // do nothing } } else if (upd instanceof TensorModifyUpdate) { lst.add(upd); } else if (upd instanceof TensorAddUpdate) { lst.add(upd); } else if (upd instanceof TensorRemoveUpdate) { lst.add(upd); } else { throw new UnsupportedOperationException( "Value update type " + upd.getClass().getName() + " not supported"); } return lst; } @SuppressWarnings({ "unchecked" }) private List<ValueUpdate> createAddValueUpdateForArray(Array arr, int weight) { List<ValueUpdate> ret = new ArrayList<>(arr.size()); for (Iterator<FieldValue> it = arr.fieldValueIterator(); it.hasNext(); ) { ret.add(new AddValueUpdate(it.next(), weight)); } return ret; } @SuppressWarnings({ "unchecked" }) private List<ValueUpdate> createAddValueUpdateForWset(WeightedSet wset) { List<ValueUpdate> ret = new ArrayList<>(wset.size()); for (Iterator<FieldValue> it = wset.fieldValueIterator(); it.hasNext(); ) { FieldValue key = it.next(); ret.add(new AddValueUpdate(key, wset.get(key))); } return ret; } private List<ValueUpdate> createRemoveValueUpdateForEachElement(Iterator<FieldValue> it) { List<ValueUpdate> ret = new ArrayList<>(); while (it.hasNext()) { ret.add(new RemoveValueUpdate(it.next())); } return ret; } @SuppressWarnings({ "unchecked" }) private List<ValueUpdate> createMapValueUpdatesForArray(Array arr, MapValueUpdate upd) { List<ValueUpdate> ret = new ArrayList<>(); for (Iterator<FieldValue> it = arr.fieldValueIterator(); it.hasNext();) { FieldValue childVal = it.next(); for (ValueUpdate childUpd : createValueUpdates(childVal, upd.getUpdate())) { // The array update is always directed towards a particular array index, which is // kept as the _value_ in the original update. ret.add(new MapValueUpdate(upd.getValue(), childUpd)); } } return ret; } private List<ValueUpdate> createMapValueUpdatesForStruct(StructuredFieldValue struct, MapValueUpdate upd) { List<ValueUpdate> ret = new ArrayList<>(); for (Iterator<Map.Entry<Field, FieldValue>> it = struct.iterator(); it.hasNext();) { Map.Entry<Field, FieldValue> entry = it.next(); for (ValueUpdate childUpd : createValueUpdates(entry.getValue(), upd.getUpdate())) { ret.add(new MapValueUpdate(new StringFieldValue(entry.getKey().getName()), childUpd)); } } return ret; } @SuppressWarnings({ "unchecked" }) private List<ValueUpdate> createMapValueUpdatesForWset(WeightedSet wset, MapValueUpdate upd) { List<ValueUpdate> ret = new ArrayList<>(); for (Iterator<FieldValue> it = wset.fieldValueIterator(); it.hasNext();) { FieldValue childVal = it.next(); for (ValueUpdate childUpd : createValueUpdates(new IntegerFieldValue(wset.get(childVal)), upd.getUpdate())) { ret.add(new MapValueUpdate(childVal, childUpd)); } } return ret; } } private static class CompleteBuilder extends PartialBuilder { static final ValueUpdate nullAssign = new AssignValueUpdate(null); CompleteBuilder() { super(null); } @Override List<ValueUpdate> createValueUpdates(FieldValue val, ValueUpdate upd) { return super.createValueUpdates(val, nullAssign); } } } ```
Peaceful Journey is the third album by American rap group Heavy D & the Boyz. It was released on July 2, 1991, for Uptown Records and was produced by Pete Rock, DJ Eddie F, Teddy Riley, Marley Marl and Howie Tee. This marked the group's first album since the death of member Trouble T Roy, who died almost a year before the album's release, and several songs on the album pay tribute to him. Though not as successful as the group's previous album, Big Tyme, the album was able to reach Platinum status and made it to number 21 on the Billboard 200 and number 5 on the Top R&B/Hip-Hop Albums chart. The following singles also charted: "Now That We Found Love" (UK #2, US #11), "Is It Good to You (Heavy D)" which sampled the beginning from Mama Used to Say by Junior, "Don't Curse" and "Peaceful Journey", which sampled the bass line from This Place Hotel by The Jacksons. Guests on the album include Aaron Hall, Big Daddy Kane, Grand Puba, Kool G. Rap, Q-Tip, Pete Rock & CL Smooth, Daddy Freddy and K-Ci & JoJo. One of the songs, "Is It Good to You (Heavy D)", has since been remade by Teddy Riley and featured singer Tammy Lucas for the soundtrack to the movie Juice. Critical reception James Muretich from Calgary Herald wrote, "Heavy D. lays down uplifting messages without getting wimpy, is sexual without becoming moronically macho. Combine that with hook-laden songs sampling from the likes of Booker T. & the M.G.'s and The Persuaders, as well as some riffs by The Boyz, and you`ve got rap with soul - in every sense of the word." James Bernard from Entertainment Weekly commented, "His music in Peaceful Journey, softened by hummable bass lines, swings rather than stomps, and the ”Hevster” has nimble lyrics to match — a combination that should earn songs like ”Now That We Found Love”, a fast-paced hip-house jam, loads of club and airplay. There are too few surprises here, however, in part because Heavy D. sometimes leans too much on sampled tracks, as on the title cut, an ode to friendship that is far too friendly with the Jacksons’ ”This Place Hotel”." Track listing "Now That We Found Love" (feat. Aaron Hall) (Kenneth Gamble, Leon Huff) - 4:18 "Let It Rain" (Dwight Meyers, Peter Phillips) - 4:15 "I Can Make You Go Oooh" (Dwight Meyers, Howard Thompson) - 3:51 "Sister Sister" (Dwight Meyers, Marlon Williams) - 4:39 "Don't Curse" feat. Big Daddy Kane, Grand Puba, Kool G. Rap, Q-Tip & Pete Rock & CL Smooth (Dwight Meyers, Antonio Hardy, Maxwell Dixon, Nathaniel Wilson, Jonathan Davis, Peter Phillips, Corey Penn) - 5:53 "Peaceful Journey" (Dwight Meyers, Edward Ferrell) - 6:05 "The Lover's Got What U Need" (Dwight Meyers, Marlon Williams) - 4:02 "Cuz He'z Alwayz Around" (Dwight Meyers, Peter Phillips) - 4:40 "Is It Good to You" (Dwight Meyers, Teddy Riley) - 4:52 "Letter to the Future" (Dwight Meyers, Peter Phillips) - 4:49 "Swinging With Da Hevster" (Dwight Meyers, Marlon Williams) - 4:20 "Body and Mind" feat. Daddy Freddy (Bunny Sigler, James Sigler, Cary Gilbert) - 4:20 "Do Me, Do Me" (Dwight Meyers, Peter Phillips) - 4:11 Personnel Teddy Riley, Pete Rock, Marley Marl, Howie Tee, Dave Hall, Nevelle Hodge, Darren Lighty: Keyboards and Drum Programming Aaron Hall: Background vocals on "Now That We've Found Love" The Flex (Darren Lighty, Cliff Lighty, Eric Williams): Background vocals on "Sister, Sister" and "The Lover's Got What U Need" K-Ci & JoJo: Background vocals on "Peaceful Journey" Perfection: Background vocals on "The Lover's Got What U Need" Johnny Gill: Background vocals on "Letter to the Future" Dave Way, Chris "Champ" Champion, Booker T. Jones, Angela Piva, Marley Marl, David Kennedy: Recording engineer Chris "Champ" Champion, Mark Partis, Angela Piva, Roey Shamir, David Kennedy: Mixing Nick Baratta: Photography Reiner Design Consultants, Inc.: Art Direction Samples "Do Me, Do Me" "Funky President" by James Brown "Don't Curse" "Hip Hug-Her" by Booker T. & the M.G.'s "Tramp" by Otis Redding and Carla Thomas "Just Rhymin' With Biz" by Big Daddy Kane feat. Biz Markie "Is It Good to You" "Mama Used to Say" by Junior "Letter to the Future" "Who's Gonna Take the Weight" by Kool and the Gang "Peace of Mind" by S.O.U.L. "Now That We Found Love" "Now That We Found Love" by Third World "Peaceful Journey" "Funky Drummer" by James Brown "This Place Hotel (Heartbreak Hotel)" by The Jackson 5 "Swinging With Da Hevster" "Rock Creek Park" by The Blackbyrds "The Lover's Got What You Need" "Love Hangover" by Diana Ross "Hot Pants (Bonus Beats)" by Bobby Byrd Charts Weekly charts Year-end charts Certifications References External links Heavy D & the Boyz-Peaceful Journey at Discogs 1991 albums Albums produced by Howie Tee Albums produced by Marley Marl Albums produced by Pete Rock Albums produced by Teddy Riley Albums recorded at Unique Recording Studios Heavy D albums MCA Records albums Uptown Records albums
The Independence Day of Bangladesh ( Shadhinôta Dibôsh) is celebrated on 26 March as a national holiday in Bangladesh. It commemorates the country's declaration of independence from Pakistan in the early hours of 25 March 1971. History In the 1970 Pakistani general election, under the military government of President Yahya Khan, the largest political party Awami League, led by Bangabandhu Sheikh Mujibur Rahman, won a clear majority in East Pakistan national seats as well as provincial assembly. Zulfikar Ali Bhutto conspired with Yahya Khan and changed their position, refusing to hand over power to Sheikh Mujib. Negotiations began between the two sides, however the ruling West Pakistani leadership did not trust Sheikh Mujib, due to instances such as the Agartala conspiracy case. When it became evident that the promises made by the West Pakistan government were not going to be kept, many East Pakistani Bangla-speaking Muslims and Hindus began a spirited struggle for independence. On 7 March 1971 Sheikh Mujib gave his famous speech at the Ramna Racecourse, in which he called for a non-cooperation movement. Authorities, mostly West Pakistani personnel, rounded up Bengali armed forces officers, NCOs, and enlisted personnel. Forced disappearances went rampant. On the evening of 25 March, in an interview with David Frost, Sheikh Mujib still called out openly for negotiation and a united Pakistan. That night the Pakistan Army began Operation Searchlight, conclusively signalling West Pakistan was not ready for a transfer of political power to the Awami League led by Sheikh Mujibur Rahman. The Independence of Bangladesh was declared on 26 March 1971 at the first watch by Sheikh Mujibur Rahman . Another declaration was read out on 27 March 1971, by Major Ziaur Rahman, on behalf of Sheikh Mujibur Rahman. Major Zia (who was also a BDF Sector Commander of Sector 1 and later of Sector 11) raised an independent Z Force brigade, Chittagong and the guerilla struggle officially began. The people of Bangladesh then took part in a nine-month guerilla war against the Pakistan Army and their collaborators, including paramilitary Razakars. This resulted in the death of about 3 million Bangladeshi, as per Awami league and Indian sources, in the Bangladesh War of Independence and Bangladesh Genocide. The BDF, later with military support from India, defeated the Pakistan Army on 16 December 1971, leading to the end of the war and the Surrender of Pakistan. Celebrations Independence Day is commonly associated with parades, political speeches, fairs, concerts, ceremonies, and various other public and private events celebrating the history and traditions of Bangladesh. TV and radio stations broadcast special programs and patriotic songs in honor of Independence Day. A thirty-one gun salute may be conducted in the morning. The main streets are decorated with national flags. Different political parties and socioeconomic organizations undertake programs to mark the day in a befitting manner, including paying respects at National Martyrs' Memorial at Savar near Dhaka. Google displayed a doodle commemorating the Independence Day of Bangladesh on 26 March 2017 on their bd domain. The same year celebrations were organised in Tripura, India, by Bangladesh deputy high commissioner stationed there. 2021 marked the Golden Jubilee of the Independence of Bangladesh from Pakistan. Independence Award The Independence Day Award, which is bestowed upon Bangladeshi citizens or organizations on the eve of the Independence Day, is awarded by the government of Bangladesh. This annual award, instituted in 1977, is given for substantial contribution in the Independence War, the Language Movement, education, literature, journalism, public service, science-technology, medical science, social science, music, games and sports, fine arts, rural development, and other fields. In 2016, a total of 15 renowned personalities were honored with the independence award, in recognition of their outstanding contributions to their respective fields. Prime Minister Sheikh Hasina handed over the awards at a program held at the capital's Osmani Memorial Auditorium. The awardees are- the then Finance Minister Abul Maal Abdul Muhith, former Jute and Textiles Minister M Imazuddin Pramanik, late Moulvi Asmat Ali Khan, Squadron Leader (retd) Badrul Alam, former police super Shaheed Shah Abdul Mazid, M Abdul Ali, AKM Abdur Rouf, KM Shihab Uddin, Syed Hasan Imam, late Rafiqul Islam, Abdus Salam, late Prof Dr Maksudul Alam, Dr Mohammad Rafi Khan, Poet Nirmalendu Goon, Rezwana Chowdhury Banya. Ten renowned personalities and an organization were awarded the Independence Award-2020. They were: Golam Dastagir Gazi MP, Commander Abdur Rouf (posthumous), Md Anwar Pasha (posthumous), Azizur Rahman, Prof Dr Md Obaidul Kabir Chowdhury, Prof Dr AKMA Muqtadir, SM Raij Uddin Ahmed, Kalipada Das, Ferdousi Mazumder, and Bharateswari Homes. On the other hand, the government awarded nine individuals and one institution for Independence Award-2021. AKM Bazlur Rahman, Shaheed Ahsanullah Master, Brig Gen (retd) Khurshid Uddin Ahmed, and Akhtaruzzaman Chowdhury Babu were the recipients then, while other awardees include Dr Mrinmoy Guha Neogi, Mohadev Saha, Ataur Rahman, Gazi Mazharul Anwar, and Dr M Amjad Hossain. See also History of Bangladesh (1947–1971) The Blood telegram East Bengal Bengali Genocide Remembrance Day References Public holidays in Bangladesh Bangladesh March observances
Rupt-sur-Othain (, literally Rupt on Othain) is a commune in the Meuse department in Grand Est in north-eastern France. Geography The village lies on the left bank of the Othain, which forms most of the commune's north-eastern border. See also Communes of the Meuse department References Ruptsurothain
Krvavičići is a village in the municipality of Busovača, Bosnia and Herzegovina. Demographics According to the 2013 census, its population was 96. References Populated places in Busovača
The high commissioner of Malaysia to the Republic of Fiji is the head of Malaysia's diplomatic mission to Fiji. The position has the rank and status of an ambassador extraordinary and plenipotentiary and is based in the High Commission of Malaysia, Suva. List of heads of mission Chargés d'affaires to Fiji High commissioners to Fiji See also Fiji–Malaysia relations References Fiji Malaysia
The contraction of cardiac muscle (heart muscle) in all animals is initiated by electrical impulses known as action potentials that in the heart are known as cardiac action potentials. The rate at which these impulses fire controls the rate of cardiac contraction, that is, the heart rate. The cells that create these rhythmic impulses, setting the pace for blood pumping, are called pacemaker cells, and they directly control the heart rate. They make up the cardiac pacemaker, that is, the natural pacemaker of the heart. In most humans, the highest concentration of pacemaker cells is in the sinoatrial (SA) node, the natural and primary pacemaker, and the resultant rhythm is a sinus rhythm. Sometimes a secondary pacemaker sets the pace, if the SA node is damaged or if the electrical conduction system of the heart has problems. Cardiac arrhythmias can cause heart block, in which the contractions lose any useful rhythm. In humans, and sometimes in other animals, a mechanical device called an artificial pacemaker (or simply "pacemaker") may be used after damage to the body's intrinsic conduction system to produce these impulses synthetically. Control Primary pacemaker The sinoatrial node (SA node) is the primary pacemaker of the heart. It is a region of cardiac muscle on the wall of the upper right atrium near to the superior vena cava entrance. The cells that make up the SA node are specialized cardiomyocytes known as pacemaker cells that can spontaneously generate cardiac action potentials. These signals are propagated through the heart's electrical conduction system. Only one percent of the heart muscle cells are conductive, the rest of the cardiomyocytes are contractile. The pacemaker cells are connected to neighboring contractile cells via gap junctions, which enable them to locally depolarize adjacent cells. Gap junctions allow the passage of positive cations from the depolarization of the pacemaker cell to adjacent contractile cells. This starts the depolarization and eventual action potential in contractile cells. Having cardiomyocytes connected via gap junctions allow all contractile cells of the heart to act in a coordinated fashion and contract as a unit. All the while being in sync with the pacemaker cells; this is the property that allows the pacemaker cells to control contraction in all other cardiomyocytes. Cells in the SA node spontaneously depolarize, ultimately resulting in contraction, approximately 100 times per minute. This native rate is constantly modified by the activity of sympathetic and parasympathetic nerve fibers via the autonomic nervous system, so that the average resting heart rate in adult humans is about 70 beats per minute. Secondary (AV junction and Bundle of His) Impulses from the sinus node reach the atrioventricular node which acts as the secondary pacemaker. The cells of the AV node normally discharge at about 40-60 beats per minute, and are called the secondary pacemaker. Further down the electrical conducting system of the heart is the Bundle of His. The left and right bundle branches, and the Purkinje fibers, will also produce a spontaneous action potential at a rate of 30-40 beats per minute, so if the SA and AV node both fail to function, these cells can become pacemakers. It is important to realize that these cells will be initiating action potentials and contraction at a much lower rate than the primary or secondary pacemaker cells. The SA node controls the rate of contraction for the entire heart muscle because its cells have the quickest rate of spontaneous depolarization, thus they initiate action potentials the quickest. The action potential generated by the SA node passes down the electrical conduction system of the heart, and depolarizes the other potential pacemaker cells (AV node) to initiate action potentials before these other cells have had a chance to generate their own spontaneous action potential, thus they contract and propagate electrical impulses to the pace set by the cells of the SA node. This is the normal conduction of electrical activity in the heart. Generation of action potentials There are 3 main stages in the generation of an action potential in a pacemaker cell. Since the stages are analogous to contraction of cardiac muscle cells, they have the same naming system. This can lead to some confusion. There is no phase 1 or 2, just phases 0, 3, and 4. Phase 4 - Pacemaker potential The key to the rhythmic firing of pacemaker cells is that, unlike other neurons in the body, these cells will slowly depolarize by themselves and do not need any outside innervation from the autonomic nervous system to fire action potentials. In all other cells, the resting potential (-60mV to -70mV) is caused by a continuous outflow or "leak" of potassium ions through ion channel proteins in the membrane that surrounds the cells. However, in pacemaker cells, this potassium permeability (efflux) decreases as time goes on, causing a slow depolarization. In addition, there is a slow, continuous inward flow of sodium, called the "funny" or pacemaker current. These two relative ion concentration changes slowly depolarize (make more positive) the inside membrane potential (voltage) of the cell, giving these cells their pacemaker potential. When the membrane potential gets depolarized to about -40mV it has reached threshold (cells enter phase 0), allowing an action potential to be generated. Phase 0 - Upstroke Though much faster than the depolarization of phase 4, the upstroke in a pacemaker cell is slow compared to that in an axon. The SA and AV node do not have fast sodium channels like neurons, and the depolarization is mainly caused by a slow influx of calcium ions. (The funny current also increases). Calcium enters the cell via voltage-sensitive calcium channels that open when the threshold is reached. This calcium influx produces the rising phase of the action potential, which results in the reversal of membrane potential to a peak of about +10mV. It is important to note that intracellular calcium causes muscular contraction in contractile cells, and is the effector ion. In heart pacemaker cells, phase 0 depends on the activation of L-type calcium channels instead of the activation of voltage-gated fast sodium channels, which are responsible for initiating action potentials in contractile (non-pacemaker) cells. For this reason, the pacemaker action potential rising phase slope is more gradual than that of the contractile cell (image 2). Phase 3 - Repolarization The reversal of membrane potential triggers the opening of potassium leak channels, resulting in the rapid loss of potassium ions from the inside of the cell, causing repolarization (Vm gets more negative). The calcium channels are also inactivated soon after they open. In addition, as sodium channels become inactivated, sodium permeability into the cell is decreased. These ion concentration changes slowly repolarize the cell to resting membrane potential (-60mV). Another important note at this phase is that ionic pumps restore ion concentrations to pre-action potential status. The sodium-calcium exchanger ionic pump works to pump calcium out of the intracellular space, thus effectively relaxing the cell. The sodium/potassium pump restores ion concentrations of sodium and potassium ions by pumping sodium out of the cell and pumping (exchanging) potassium into the cell. Restoring these ion concentrations is vital because it enables the cell to reset itself and enables it to repeat the process of spontaneous depolarization leading to activation of an action potential. Clinical significance Damage to the SA node If the SA node does not function, or the impulse generated in the SA node is blocked before it travels down the electrical conduction system, a group of cells further down the heart will become its pacemaker. This center is typically represented by cells inside the atrioventricular node (AV node), which is an area between the atria and ventricles, within the atrial septum. If the AV node also fails, Purkinje fibers are occasionally capable of acting as the default or "escape" pacemaker. Ectopic pacemaker An ectopic pacemaker also known as an ectopic focus or ectopic foci, is an excitable group of cells that causes a premature heart beat outside the normally functioning SA node of the heart. It is thus a cardiac pacemaker that is ectopic, producing an ectopic beat. If chronic this can result in arhythmias such as tachycardia, bradycardia, or ventricular fibrillation. An artificial pacemaker may be used to counter this. Artificial pacemakers An artificial cardiac pacemaker (or artificial pacemaker, so as not to be confused with the natural cardiac pacemaker) or just pacemaker is an implanted medical device that generates electrical impulses delivered by electrodes to the chambers of the heart either the upper atria, or lower ventricles to cause the targeted chambers to contract and pump blood. By doing so, the artificial pacemaker takes over from the primary SA node pacemaker to regulate the function of the heart's electrical conduction system. References Cardiac anatomy Cardiac electrophysiology
```handlebars {{! Renders the entire HTML page}} <!doctype html> <html class="no-js" lang="en"> <head> {{>layout/head}} </head> <body id="spectacle"> {{>layout/page}} </body> </html> ```
Jason Maxwell (born 1 September 1972) is an English former professional footballer who played as a forward. He played in the Football League for Scunthorpe United. Playing career Maxwell played as a junior for Scunthorpe United, but joined non-league side Appleby Frodingham before returning to the Iron where he played in the Football League during the 1992–93 season. He went on to have two spells with Gainsborough Trinity, as well as playing for Bradford Park Avenue, Buxton and Brigg Town. As a Non-league player, Maxwell reached the FA Cup first round twice. During the 1997–98 season he was part of the Gainsborough team who were defeated 3-2 by Lincoln City in a replay, having drawn the first game 1–1 at Sincil Bank. During the 2003–04 season he was part of the Avenue side that lost 5–2 at home to Bristol City. Personal life Maxwell plays amateur football in the Hull veterans League, representing the veteran wing of his former team Appleby Frodingham. References External links Soccerbase profile 1974 births Living people English men's footballers Men's association football forwards Scunthorpe United F.C. players Appleby Frodingham F.C. players Gainsborough Trinity F.C. players Bradford (Park Avenue) A.F.C. players Buxton F.C. players Brigg Town F.C. players English Football League players Footballers from Lincoln, England
John Sydney Swan (12 January 1874 – 18 April 1936) (sometimes seen as Sidney) was a New Zealand architect, the designer of houses and churches in Wellington, New Zealand. He was articled to Frederick de Jersey Clere and was at one time a partner with Clere. Buildings he designed include Erskine College and St Gerard's Church and Monastery, and various commercial buildings, houses and Wellington Harbour Board buildings. He was born and died in Wellington, and built the house, The Moorings in Glenbervie Terrace, Thorndon in 1905. His younger brother Francis Herbert Swan (1885–1956) also lived in Glenbervie Terrace, and in 1915 they formed an architectural partnership; Swan and Swan; later Swan, Lawrence and Swan. He was a yachtsman, and Commodore of the Royal Port Nicholson Yacht Club. He married Gertrude Mary Holcroft in 1899, they had three sons and one daughter. References Obituary in Evening Post, Wellington of 20 April 1936 Obituary in New Zealand Herald, Auckland of 21 April 1936 Obituary in Auckland Star, Auckland of 22 April, 1936 Erskine College Chapel, plan by John Swan Proposed Wellington Cathedral design 1874 births 1936 deaths New Zealand architects New Zealand male sailors (sport) People from Wellington City New Zealand ecclesiastical architects
```java /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.graal.compiler.lir.constopt; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.function.BiConsumer; import jdk.graal.compiler.core.common.cfg.BasicBlock; import jdk.graal.compiler.core.common.cfg.AbstractControlFlowGraph; import jdk.graal.compiler.core.common.cfg.BlockMap; import jdk.graal.compiler.core.common.cfg.DominatorOptimizationProblem; import jdk.graal.compiler.core.common.cfg.PropertyConsumable; /** * Represents a dominator (sub-)tree for a constant definition. */ public class ConstantTree extends DominatorOptimizationProblem<ConstantTree.Flags, ConstantTree.NodeCost> { public enum Flags { SUBTREE, USAGE, MATERIALIZE, CANDIDATE, } /** * Costs associated with a block. */ public static class NodeCost implements PropertyConsumable { private List<UseEntry> usages; private double bestCost; private int numMat; public NodeCost(double bestCost, List<UseEntry> usages, int numMat) { this.bestCost = bestCost; this.usages = usages; this.numMat = numMat; } @Override public void forEachProperty(BiConsumer<String, String> action) { action.accept("bestCost", Double.toString(getBestCost())); action.accept("numMat", Integer.toString(getNumMaterializations())); action.accept("numUsages", Integer.toString(usages.size())); } public List<UseEntry> getUsages() { if (usages == null) { return Collections.emptyList(); } return usages; } public double getBestCost() { return bestCost; } public int getNumMaterializations() { return numMat; } @Override public String toString() { return "NodeCost [bestCost=" + bestCost + ", numUsages=" + usages.size() + ", numMat=" + numMat + "]"; } } private final BlockMap<List<UseEntry>> blockMap; public ConstantTree(AbstractControlFlowGraph<?> cfg, DefUseTree tree) { super(Flags.class, cfg); this.blockMap = new BlockMap<>(cfg); tree.forEach(u -> getOrInitList(u.getBlock()).add(u)); } private List<UseEntry> getOrInitList(BasicBlock<?> block) { List<UseEntry> list = blockMap.get(block); if (list == null) { list = new ArrayList<>(); blockMap.put(block, list); } return list; } public List<UseEntry> getUsages(BasicBlock<?> block) { List<UseEntry> list = blockMap.get(block); if (list == null) { return Collections.emptyList(); } return Collections.unmodifiableList(list); } /** * Returns the cost object associated with {@code block}. If there is none, a new cost object is * created. */ NodeCost getOrInitCost(BasicBlock<?> block) { NodeCost cost = getCost(block); if (cost == null) { cost = new NodeCost(block.getRelativeFrequency(), blockMap.get(block), 1); setCost(block, cost); } return cost; } @Override public String getName(Flags type) { switch (type) { case USAGE: return "hasUsage"; case SUBTREE: return "inSubtree"; case MATERIALIZE: return "materialize"; case CANDIDATE: return "candidate"; } return super.getName(type); } public BasicBlock<?> getStartBlock() { return stream(Flags.SUBTREE).findFirst().get(); } public void markBlocks() { for (BasicBlock<?> block : getBlocks()) { if (get(Flags.USAGE, block)) { setDominatorPath(Flags.SUBTREE, block); } } } public boolean isMarked(BasicBlock<?> block) { return get(Flags.SUBTREE, block); } public boolean isLeafBlock(BasicBlock<?> block) { BasicBlock<?> dom = block.getFirstDominated(); while (dom != null) { if (isMarked(dom)) { return false; } dom = dom.getDominatedSibling(); } return true; } public void setSolution(BasicBlock<?> block) { set(Flags.MATERIALIZE, block); } public int size() { return getBlocks().length; } } ```
```javascript /** * a class to apply actions on business account in collaboration with API */ function BusinessAccount() { "use strict"; this.QuotaUpdateFreq = 3e4; // 30 sec - default threshold to update quotas info this.DashboardUpdateFreq = 6e4; // 60 sec - default threshold to update dashboard info this.invoiceListUpdateFreq = 9e5; // 15 min - default threshold to update invoices list } /** * Function to add sub user to a business account * @param {String} subEmail email address of new user * @param {String} subFName First name of new user * @param {String} subLName Last name of new user * @param {Object} optionals contain optional fields if any [position,idnum,phonenum,location] * @param {Boolean} isProtectLink true if we want to protect invitation link with a password * @returns {Promise} Resolves with new add user HANDLE + password */ BusinessAccount.prototype.addSubAccount = function (subEmail, subFName, subLName, optionals, isProtectLink) { "use strict"; var operationPromise = new MegaPromise(); if (!isValidEmail(subEmail)) { // promise reject/resolve will return: success,errorCode,errorDesc return operationPromise.reject(0, 1, 'Invalid Email'); } if (!subFName) { return operationPromise.reject(0, 2, 'Empty First Name'); } if (!subLName) { return operationPromise.reject(0, 3, 'Empty Last Name'); } var request = { "a": "sbu", // business sub account operation "aa": "a", // add operation "m": subEmail, // email address of user to add "firstname": base64urlencode(to8(subFName)), // first name of user to add // (not base64 encoded like attributes are) "lastname": base64urlencode(to8(subLName)) // last name of user to add (also not base64 encoded) }; if (optionals) { if (optionals.position) { request['%position'] = base64urlencode(to8(optionals.position)); } if (optionals.idnum) { request['%idnum'] = base64urlencode(to8(optionals.idnum)); } if (optionals.phonenum) { request['%phonenum'] = base64urlencode(to8(optionals.phonenum)); } if (optionals.location) { request['%location'] = base64urlencode(to8(optionals.location)); } } if (isProtectLink) { request.lp = 1; } api_req(request, { callback: function (res) { if ($.isNumeric(res)) { operationPromise.reject(0, res, 'API returned error', request); } else if (typeof res === 'object') { // this must be re done // since no action packet will be sent for sub-user adding // and since the return handle + password is a true confirmation of success // we will simulate the effect locally // however, this may introduce theoretical data inconsistency between server and local // as although we know the operation is successful, we are assuming that the server used // the sent email + first-name + last-name without any alternation // var usr = { // u: res.u, // p: null, // s: 10, // pending // e: request.m, // assuming that the server MUST not change the requested val // firstname: request.firstname, // same assumption as above // lastname: request.lastname, // same assumption as above // position: request['%position'] || '', // idnum: request['%idnum'] || '', // phonenum: request['%phonenum'] || '', // location: request['%location'] || '' // }; // mySelf.parseSUBA(usr, false, true); operationPromise.resolve(1, res, request); // new added user handle } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res, request); } } }); return operationPromise; }; /** * edit sub-user info * @param {String} subuserHandle sub-user handle * @param {String} subEmail new email address, or null to don't change * @param {String} subFName new first name, or null to don't change * @param {String} subLName new last name, or null to don't change * @param {any} optionals new optionals, or null to don't change * @param {Boolean} isProtectLink true if we want to protect invitation link with a password */ BusinessAccount.prototype.editSubAccount = function (subuserHandle, subEmail, subFName, subLName, optionals, isProtectLink) { "use strict"; var operationPromise = new MegaPromise(); if (!subuserHandle) { return operationPromise.reject(0, 18, 'Empty User Handle'); } if (!subEmail && !subFName && !subLName && !optionals) { return operationPromise.reject(0, 19, 'Empty User attributes. nothing to edit'); } if (subEmail && !isValidEmail(subEmail)) { return operationPromise.reject(0, 1, 'Invalid Email'); } var request = { "a": "upsub", // business sub account update "su": subuserHandle, // sub-user handle }; if (subEmail) { request['email'] = subEmail; } if (subFName) { request.firstname = base64urlencode(to8(subFName)); } if (subLName) { request.lastname = base64urlencode(to8(subLName)); } if (optionals) { if (typeof optionals.position !== 'undefined') { request['%position'] = base64urlencode(to8(optionals.position)); } if (typeof optionals.idnum !== 'undefined') { request['%idnum'] = base64urlencode(to8(optionals.idnum)); } if (typeof optionals.phonenum !== 'undefined') { request['%phonenum'] = base64urlencode(to8(optionals.phonenum)); } if (typeof optionals.location !== 'undefined') { request['%location'] = base64urlencode(to8(optionals.location)); } } if (isProtectLink) { request.lp = 1; } api.screq(request) .then(({result}) => { const type = typeof result; assert(type === 'string' || type === 'object', `Unexpected response ${type}:${result}`); if (type === 'string') { operationPromise.resolve(1, null, request); // user edit succeeded } else { operationPromise.resolve(1, result, request); // user edit involved email change } }) .catch((ex) => { if (d) { console.error('upsub failed', ex); } operationPromise.reject(0, parseInt(ex) || 4, `API returned error, ${ex}`); }); return operationPromise; }; /** * Function to deactivate sub user from business account * @param {String} subUserHandle sub user handle to deactivate * @returns {Promise} Resolves deactivate operation result */ BusinessAccount.prototype.deActivateSubAccount = function (subUserHandle) { "use strict"; var operationPromise = new MegaPromise(); if (!subUserHandle || subUserHandle.length !== 11) { return operationPromise.reject(0, 5, 'invalid U_HANDLE'); } if (!M.suba[subUserHandle]) { return operationPromise.reject(0, 7, 'u_handle is not a sub-user'); } var request = { "a": "sbu", // business sub account operation "aa": "d", // deactivate operation "u": subUserHandle // user handle to deactivate }; api_req(request, { callback: function (res) { if ($.isNumeric(res)) { if (res !== 0) { operationPromise.reject(0, res, 'API returned error'); } else { operationPromise.resolve(1); // user deactivated successfully } } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); if (d) { console.error('API returned error, ret=' + res); } } } }); return operationPromise; }; /** * Function to activate sub user in business account * @param {String} subUserHandle sub user handle to activate * @returns {Promise} Resolves activate operation result */ BusinessAccount.prototype.activateSubAccount = function (subUserHandle) { "use strict"; var operationPromise = new MegaPromise(); if (!subUserHandle || subUserHandle.length !== 11) { return operationPromise.reject(0, 5, 'invalid U_HANDLE'); } if (!M.suba[subUserHandle]) { return operationPromise.reject(0, 7, 'u_handle is not a sub-user'); } var request = { "a": "sbu", // business sub account operation "aa": "c", // activate operation "u": subUserHandle // user handle to activate }; api_req(request, { callback: function (res) { if ($.isNumeric(res) && res === 0) { operationPromise.resolve(1, res, request); // activated used successfully, non need for re-init } else if (typeof res === 'object') { operationPromise.resolve(1, res, request); // user activated successfully, object contain lp + u } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * Get Shared Key * @param {String} myPrivate Private Cu25519 (me) * @param {String} theirPublic Public Cu25519 (them) * @param {String} data Data payload */ BusinessAccount.prototype.getSharedKey = function(myPrivate, theirPublic, data) { 'use strict'; if (!theirPublic || !myPrivate) { console.error('Fatal: trying to get shared key without prior verification. Not expected reach'); return false; } const prvCuBytes = asmCrypto.string_to_bytes(myPrivate); const pubCuBytes = asmCrypto.string_to_bytes(theirPublic); const sharedSecret = nacl.scalarMult(prvCuBytes, pubCuBytes); //// now let's calculate the cryptographic hash //// Hashing an empty data with shared secret as a key is sufficient. //// In chat context, they used a static data and a hashed secret. //// I will use dynamic data, which will harden the challenge, and I will inherit the repeated hash approach. const hashBytes = asmCrypto.HMAC_SHA256.bytes(data, asmCrypto.HMAC_SHA256.bytes(sharedSecret, '')); // convert to string to take the first 16 characters as the key. // we cant do that on bytes. const keyString = asmCrypto.bytes_to_string(hashBytes).substring(0, 16); return asmCrypto.string_to_bytes(keyString); }; BusinessAccount.prototype.encryptKey = function() { 'use strict'; if (!u_attr || !u_attr.b || u_attr.b.m || !u_attr.b.mu[0]) { throw new SecurityError('Trying to encrypt key in an invalid account state.'); } if (!pubCu25519[u_attr.b.mu[0]]) { throw new SecurityError('Trying to encrypt key without prior or invalid verification.'); } if (!u_attr.prCu255) { throw new SecurityError('Trying to encrypt key without having the Cu25519 private key available.'); } const msgString = a32_to_str(u_k); const msgBytes = asmCrypto.string_to_bytes(msgString); const cryptoHash = this.getSharedKey(u_attr.prCu255, pubCu25519[u_attr.b.mu[0]], u_handle); const EncMsg = asmCrypto.AES_ECB.encrypt(msgBytes, cryptoHash, false); return asmCrypto.bytes_to_string(EncMsg); }; /** * Decrypt the mk for the sub-user using k2 * @param {String} key The mk (k2) after b64 decode * @param {any} userHandle subuser's handle */ BusinessAccount.prototype.decryptKey = function(key, userHandle) { 'use strict'; if (!u_attr || !u_attr.b || !u_attr.b.m || !key || !userHandle) { console.error('Error: trying to decrypt key in an invalid case'); return false; } if (!pubCu25519[userHandle]) { console.error('Fatal: trying to decrypt key without prior verification. Not expected reach'); return false; } const msgBytes = asmCrypto.string_to_bytes(key); const cryptoHash = (this || mega.buinsessController) .getSharedKey(u_attr.prCu255, pubCu25519[userHandle], userHandle); const decMsg = asmCrypto.AES_ECB.decrypt(msgBytes, cryptoHash, false); return asmCrypto.bytes_to_string(decMsg); }; /** * Function that send the master-key of the sub-user to Master * Encrypted using Ed25519 * @returns {Promise} Operation result */ BusinessAccount.prototype.sendSubMKey = async function() { 'use strict'; if (!u_attr || !u_attr.b || u_attr.b.m || !u_attr.b.mu[0]) { throw new SecurityError('Invalid business attributes.'); } const encryptedMKey = this.encryptKey(); assert(encryptedMKey && encryptedMKey.length, 'Encrypting submaster-k failed'); const b64Encoded = base64urlencode(encryptedMKey); assert(b64Encoded && b64Encoded.length, 'Encoding submaster-k failed'); const request = { "a": "up", // update attributes "mk2": b64Encoded // master-key encrypted }; return api.screq(request) .then(({result}) => { assert(typeof result === 'string', `Invalid API Response...${result}`); return mega.attr.remove('gmk', -2, 0).catch(reportError); }); }; /** * Function to get the master key of a sub user in business account * @param {String} subUserHandle sub user handle to get the master key of * @returns {Promise} Resolves operation result */ BusinessAccount.prototype.getSubAccountMKey = async function(subUserHandle) { "use strict"; assert(subUserHandle && subUserHandle.length === 11 && M.suba[subUserHandle], `Invalid handle, ${subUserHandle}`); var request = { "a": "sbu", // business sub account operation "aa": "k", // get master-key operation "u": subUserHandle // user handle to get key of }; const {result} = await api.req(request); assert(typeof result === 'object' && 'k' in result, `Unexpected 'sub' response, ${result}`); return result; }; /** * Function to get Quota usage Report between two dates. * @param {boolan} forceUpdate a flag to force updating the cached values * @param {Object} fromToDate object contains .fromDate and .toDate YYYYMMDD * @returns {Promise} Resolves operation result */ BusinessAccount.prototype.getQuotaUsageReport = function (forceUpdate, fromToDate) { "use strict"; var operationPromise = new MegaPromise(); if (!fromToDate || !fromToDate.fromDate || !fromToDate.toDate || fromToDate.fromDate.length !== fromToDate.toDate.length || fromToDate.fromDate.length !== 8) { return operationPromise.reject(0, 10, 'invalid FromToDate'); } var context = Object.create(null); context.dates = fromToDate; var request = { "a": "sbu", // business sub account operation "aa": "q" // get quota info }; if (!forceUpdate) { if (mega.buinsessAccount && mega.buinsessAccount.quotaReport) { var storedDates = Object.keys(mega.buinsessAccount.quotaReport); storedDates.sort(); var oldestStoredDate = storedDates[0]; var newestStoredDate = storedDates[storedDates.length - 1]; // best case scenario, the period we want is inside the saved if (fromToDate.fromDate >= oldestStoredDate && fromToDate.toDate <= newestStoredDate) { var result = Object.create(null); var start = storedDates.indexOf(fromToDate.fromDate); if (start === -1) { for (var s1 = 0; s1 < storedDates.length; s1++) { if (storedDates[s1] > fromToDate.fromDate) { start = s1; break; } } } var end = storedDates.indexOf(fromToDate.toDate); if (end === -1) { for (var s2 = storedDates.length - 1; s2 >= 0; s2--) { if (storedDates[s2] < fromToDate.toDate) { end = s2; break; } } } for (var k = start; k <= end; k++) { result[storedDates[k]] = mega.buinsessAccount.quotaReport[storedDates[k]]; } operationPromise.resolve(1, result); // quota report } // the second case, left wing of saved data else if (fromToDate.fromDate < oldestStoredDate && fromToDate.toDate <= newestStoredDate) { // we need to get data from "fromDate" to "oldestStoredDate-1" const upperDate = new Date( parseInt(oldestStoredDate.substr(0, 4)), parseInt(oldestStoredDate.substr(4, 2)) - 1, parseInt(oldestStoredDate.substr(6, 2)) ); upperDate.setDate(upperDate.getDate() - 1); request.fd = fromToDate.fromDate; let upperDateStr = String(upperDate.getMonth() + 1); if (upperDateStr.length < 2) { upperDateStr = '0' + upperDateStr; } upperDateStr = upperDate.getFullYear() + upperDateStr; let tempDay = String(upperDate.getDate()); if (tempDay.length < 2) { tempDay = '0' + tempDay; } upperDateStr += tempDay; request.td = upperDateStr; } // the third case, right wing of saved data else if (fromToDate.fromDate >= oldestStoredDate && fromToDate.toDate > newestStoredDate) { // we need to get data from "newestStoredDate+1" to "toDate" const lowerDate = new Date( parseInt(newestStoredDate.substr(0, 4)), parseInt(newestStoredDate.substr(4, 2)) - 1, parseInt(newestStoredDate.substr(6, 2)) ); lowerDate.setDate(lowerDate.getDate() + 1); request.td = fromToDate.toDate; let lowerDateStr = String(lowerDate.getMonth() + 1); if (lowerDateStr.length < 2) { lowerDateStr = '0' + lowerDateStr; } lowerDateStr = lowerDate.getFullYear() + lowerDateStr; let tempDay2 = String(lowerDate.getDate()); if (tempDay2.length < 2) { tempDay2 = '0' + tempDay2; } lowerDateStr += tempDay2; request.fd = lowerDateStr; } // Else case left + right --> call recursively and combine them then return // in the current UI is not possible to generate such case } } if (!request.fd || !request.td) { request.fd = fromToDate.fromDate; request.td = fromToDate.toDate; } api_req(request, { context: context, callback: function (res,ctx) { if ($.isNumeric(res)) { operationPromise.reject(0, res, 'API returned error'); } else if (typeof res === 'object') { mega.buinsessAccount = mega.buinsessAccount || Object.create(null); mega.buinsessAccount.quotaReport = mega.buinsessAccount.quotaReport || Object.create(null); for (var repDay in res) { mega.buinsessAccount.quotaReport[repDay] = res[repDay]; } if (Array.isArray(res) && res.length === 0) { // Empty result still needs to create an entry to show the graph. mega.buinsessAccount.quotaReport[ctx.context.dates.fromDate] = Object.create(null); } var orderedDates = Object.keys(mega.buinsessAccount.quotaReport); orderedDates.sort(); var startIx = 0; var startFound = false; for (startIx = 0; startIx < orderedDates.length; startIx++) { if (orderedDates[startIx] >= ctx.context.dates.fromDate) { startFound = true; break; } } if (orderedDates[startIx].substr(4, 2) > ctx.context.dates.fromDate.substr(4, 2)) { // found date is in the next month operationPromise.resolve(1, Object.create(null)); // quota info } // quit if we didnt find the data, report in future !! if (!startFound) { console.error('Requested report start-date is not found (in the future)'); return operationPromise.reject(0, res, 'Requested report start-date is not found (in future)'); } var result = Object.create(null); var endIx = -1; for (endIx = startIx; endIx < orderedDates.length; endIx++) { if (orderedDates[endIx] > ctx.context.dates.toDate) { break; } result[orderedDates[endIx]] = mega.buinsessAccount.quotaReport[orderedDates[endIx]]; if (orderedDates[endIx] === ctx.context.dates.toDate) { break; } } // quit if we didnt find the data // if (endIx === orderedDates.length && orderedDates[endIx] !== ctx.context.dates.toDate) { // result = null; // console.error('Requested report end-date is not found'); // return operationPromise.reject(0, res, 'Requested report end-date is not found'); // } operationPromise.resolve(1, result); // quota info } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * Function to get Quota usage info for the master account and each sub account. * @param {boolan} forceUpdate a flag to force updating the cached values * @returns {Promise} Resolves operation result */ BusinessAccount.prototype.getQuotaUsage = function (forceUpdate) { "use strict"; var operationPromise = new MegaPromise(); if (!forceUpdate) { if (mega.buinsessAccount && mega.buinsessAccount.quotas) { var currTime = new Date().getTime(); if (mega.buinsessAccount.quotas.timestamp && (currTime - mega.buinsessAccount.quotas.timestamp) < this.QuotaUpdateFreq) { return operationPromise.resolve(1, mega.buinsessAccount.quotas); } } } var request = { "a": "sbu", // business sub account operation "aa": "q", // get quota info ps: 1, // Split links and shares data. }; api_req(request, { callback: function (res) { if ($.isNumeric(res)) { operationPromise.reject(0, res, 'API returned error'); } else if (typeof res === 'object') { var currTime = new Date().getTime(); res.timestamp = currTime; mega.buinsessAccount = mega.buinsessAccount || Object.create(null); mega.buinsessAccount.quotas = res; // update reports in the way... mega.buinsessAccount = mega.buinsessAccount || Object.create(null); mega.buinsessAccount.quotaReport = mega.buinsessAccount.quotaReport || Object.create(null); var todayKey = Object.keys(res)[0]; mega.buinsessAccount.quotaReport[todayKey] = res[todayKey]; operationPromise.resolve(1, res); // quota info } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * a function to parse the JSON object received holding information about a sub-account of a business account. * @param {String} suba the object to parse, it must contain a sub-account ids * @param {Boolean} ignoreDB if we want to skip DB updating * @param {Boolean} fireUIEvent if we want to fire a n event to update ui */ BusinessAccount.prototype.parseSUBA = function (suba, ignoreDB, fireUIEvent) { "use strict"; if (M) { // M.isBusinessAccountMaster = 1; // init it, or re-set it if (!M.suba) { M.suba = Object.create(null); } if (!suba) { return; } M.suba[suba.u] = suba; // i will keep deleted in sub-accounts in DB and MEM as long as i receive them /** * SUBA object: * -u: handle * -p: parent {for future multilevel business accounts} * -s: status {10=pending confirmation , 11:disabled, 12:deleted, 0:enabled and OK} * -e: email * -firstname * -lastname * -position * -idnum * -phonenum * -location */ } if (fmdb && !ignoreDB && !pfkey && !folderlink) { fmdb.add('suba', { s_ac: suba.u, d: suba }); } if (fireUIEvent) { mBroadcaster.sendMessage('business:subuserUpdate', suba); } }; /** * Function to check if the current logged in user is a Business Account Master * @returns {Boolean} true if the user is a Master B-Account */ BusinessAccount.prototype.isBusinessMasterAcc = function () { "use strict"; if ((u_attr && u_attr.b && u_attr.b.m) || (M.suba && M.suba.length)) { return true; } return false; }; /** * @param {String} password Password to process * @returns {Object?} */ BusinessAccount.prototype.passwordToAesCypher = function(password) { 'use strict'; return tryCatch( () => { const keyFromPassword = base64_to_a32(password); return new sjcl.cipher.aes(keyFromPassword); }, false )(); }; /** * Decrypting the link sent to sub-account using a password * @param {String} link invitation link #businesssignup<link> without #businesssignup prefix * @param {String} password The password which the sub-user entered to decrypt the link * Password is randomly generated and 24 chars / 192 bits * @returns {String} base64 sign-up-code (decryption result) */ BusinessAccount.prototype.decryptSubAccountInvitationLink = function (link, password) { "use strict"; if (!link || !password) { return null; } const aesCipher = this.passwordToAesCypher(password); if (!aesCipher) { return null; } try { var decryptedTokenArray32 = aesCipher.decrypt(base64_to_a32(link)); var decryptedTokenArray8 = a32_to_ab(decryptedTokenArray32); decryptedTokenArray8 = decryptedTokenArray8.slice(0, 15); var decryptedTokenBase64 = ab_to_base64(decryptedTokenArray8); return decryptedTokenBase64; } catch (exp) { console.error(exp); if (exp.stack) { console.error(exp.stack); } return null; } }; /** * Get info associated with sign-up code * @param {String} signupCode sign-up code to fetch info for * @returns {Promise} Promise resolves an object contains fetched info */ BusinessAccount.prototype.getSignupCodeInfo = function (signupCode) { "use strict"; if (!signupCode) { return null; } var operationPromise = new MegaPromise(); var request = { "a": "uv2", // business sub account operation - get signupcode info "c": signupCode // the code }; api_req(request, { callback: function (res) { if (typeof res === 'object') { operationPromise.resolve(1, res); // sub-user info } else { operationPromise.reject(0, res, 'API returned error'); } } }); return operationPromise; }; /** * copying the sub-user decrypted tree to master user root * @param {Array} tree sub-user tree decrypted * @param {String} folderName name of the folder to create in master's root * @param {Function} progressCallback optional callback function for progress reporting * @returns {Promise} resolves if operation succeeded */ BusinessAccount.prototype.copySubUserTreeToMasterRoot = async function(tree, folderName, progressCallback) { "use strict"; const createAttribute = tryCatch((n, nn) => ab_to_base64(crypto_makeattr(n, nn))); assert(tree && tree.length, 'sub-user tree is empty or invalid'); assert(folderName && folderName.length > 3, 'folder name is not valid'); assert(M.RootID, 'Master user root could not be found'); var fNode = { name: folderName }; var attr = ab_to_base64(crypto_makeattr(fNode)); var key = a32_to_base64(encrypt_key(u_k_aes, fNode.k)); var cloudNode = { name: 'Cloud-Drive' }; var cloudAttr = ab_to_base64(crypto_makeattr(cloudNode)); var cloudKey = a32_to_base64(encrypt_key(u_k_aes, cloudNode.k)); var rubbishNode = { name: 'User-Rubbish-bin'}; var rubbishAttr = ab_to_base64(crypto_makeattr(rubbishNode)); var rubbishKey = a32_to_base64(encrypt_key(u_k_aes, rubbishNode.k)); var foldersToCreate = [ { h: 'xxxxxxxx', t: 1, a: attr, k: key }, { h: 'xxxxxxx1', t: 1, a: cloudAttr, k: cloudKey, p: 'xxxxxxxx' }, { h: 'xxxxxxx2', t: 1, a: rubbishAttr, k: rubbishKey, p: 'xxxxxxxx' } ]; if (progressCallback) { progressCallback(33); } const {handle, packet: {scnodes}} = await api.screq({a: 'p', t: M.RootID, n: foldersToCreate}); if (progressCallback) { progressCallback(42); } var treeToCopy = []; var opSize = 0; var rootParentsMap = Object.create(null); var copyHeads = Object.create(null); for (let h = 0; h < tree.length; h++) { const originalNode = tree[h]; if (originalNode.t > 1) { if (originalNode.t === 4) { // rubbish rootParentsMap[originalNode.h] = scnodes[2].h; } else { // cloud (originalNode.t === 2) or anything else rootParentsMap[originalNode.h] = scnodes[1].h; } continue; } const newNode = {}; if (!originalNode.t) { newNode.k = originalNode.k; opSize += originalNode.s || 0; } if (!(newNode.a = createAttribute(originalNode, newNode))) { console.warn(`Failed to create attribute for node ${originalNode.h}, ignoring...`); continue; } newNode.h = originalNode.h; newNode.p = originalNode.p; newNode.t = originalNode.t; if (rootParentsMap[newNode.p]) { newNode.newTarget = rootParentsMap[newNode.p]; delete newNode.p; copyHeads[newNode.h] = newNode.newTarget; } else if (copyHeads[newNode.p]) { newNode.newTarget = copyHeads[newNode.p]; copyHeads[newNode.h] = newNode.newTarget; } treeToCopy.push(newNode); if (progressCallback) { progressCallback(42 + Math.floor(50 / tree.length * (h + 1))); } } treeToCopy.opSize = opSize; await M.copyNodes(treeToCopy, handle, false, treeToCopy); return M.getNodeByHandle(handle); }; /** * decrypt the sub-user tree using the passed key * @param {Array} theTree sub-user tree as an array of nodes * @param {String} key sub-user's master key * @param {String} subUserHandle sub-user's handle, if passed master key is K2 version * @returns {Object} if succeeded, contains .tree attribute and .errors .warn */ BusinessAccount.prototype.decrypteSubUserTree = function(theTree, key, subUserHandle) { "use strict"; if (!theTree || !theTree.ok0) { return null; } var treeF = theTree.f; if (!treeF || !treeF.length || !key) { return null; } // if (!u_privk) { // return null; // } if (!u_attr || !u_attr.b || !u_attr.b.bprivk) { return null; } let subUserKey = null; const t = base64urldecode(key); if (!subUserHandle) { const business_privk = crypto_decodeprivkey(a32_to_str(decrypt_key(u_k_aes, base64_to_a32(u_attr.b.bprivk)))); const dKey = crypto_rsadecrypt(t, business_privk); subUserKey = new sjcl.cipher.aes(str_to_a32(dKey.substr(0, 16))); } else { const dKey = this.decryptKey(t, subUserHandle); subUserKey = new sjcl.cipher.aes(str_to_a32(dKey)); } // loading sharing keys, as out-shares will be sent with sharing keys (instead of owner node key) var subUserShareKeys = Object.create(null); for (var ok in theTree.ok0) { var currKey = null; currKey = decrypt_key(subUserKey, base64_to_a32(theTree.ok0[ok].k)); subUserShareKeys[theTree.ok0[ok].h] = [currKey, new sjcl.cipher.aes(currKey)]; } var errors = []; var warns = []; var er; for (var k = 0; k < treeF.length; k++) { var nodeKey = false; var p = -1; var sId = null; if (typeof treeF[k].k === 'undefined' || treeF[k].name) { // no decryption needed continue; } if (typeof treeF[k].k === 'string') { if (treeF[k].k.length === 43 || treeF[k].k.length === 22) { p = 0; } else if (treeF[k].k[11] === ':') { p = 12; } else { // var dots = treeF[k].k.indexOf(':', 8); // if (dots !== -1) { // p = dots + 1; // } for (p = 8; (p = treeF[k].k.indexOf(':', p)) >= 0;) { if (++p === 9 || treeF[k].k[p - 10] === '/') { sId = treeF[k].k.substr(p - 9, 8); if (subUserShareKeys[sId]) { break; } } } } if (p >= 0) { var pp = treeF[k].k.indexOf('/', p + 21); if (pp < 0) { pp = treeF[k].k.length; } var stringKey = treeF[k].k.substr(p, pp - p); if (stringKey.length < 44) { // short keys: AES var keyInt = base64_to_a32(stringKey); // check for permitted key lengths (4 == folder, 8 == file) if (keyInt.length === 4 || keyInt.length === 8) { nodeKey = decrypt_key((sId) ? subUserShareKeys[sId][1] : subUserKey, keyInt); } else { er = treeF[k].h + ": Received invalid key length [sub-user] (" + keyInt.length + "): "; errors.push(er); console.error(er); nodeKey = false; } } else { er = treeF[k].h + ": strange key length = " + stringKey.length + ' ' + stringKey; errors.push(er); console.error(er); nodeKey = false; } } } else { nodeKey = treeF[k].k; } if (nodeKey) { if (treeF[k].a) { crypto_procattr(treeF[k], nodeKey); } else { if (treeF[k].t < 2) { er = treeF[k].h + ': Missing attribute for node @sub-user '; warns.push(er); console.warn(er); } } } else { er = treeF[k].h + ": nothing could be done to this node"; errors.push(er); console.error(er); } } return { "tree": treeF, "errors": errors, "warns": warns }; }; /** * get the sub-user tree * @param {String} subUserHandle Handle of a sub-user * @returns {Promise} resolve if the operation succeeded */ BusinessAccount.prototype.getSubUserTree = async function(subUserHandle) { "use strict"; assert(subUserHandle && subUserHandle.length === 11 && M.suba[subUserHandle], `Invalid handle, ${subUserHandle}`); // getting sub-user tree var request = { "a": "fsub", // operation - get user tree "su": subUserHandle, // sub-user Handle "r": 1, // recursive "c": 1 // don't get extra data (contacts, sub-users ...etc) }; const {result} = await api.req(request); assert(typeof result === 'object' && 'ok0' in result, `Unexpected 'fsub' response, ${result}`); return result; }; /** * get invoice details * @param {String} invoiceID invoice unique id * @param {Boolean} forceUpdate a flag to force getting info from API not using the cache * @returns {Promise} resolve if the operation succeeded */ BusinessAccount.prototype.getInvoiceDetails = function (invoiceID, forceUpdate) { "use strict"; var operationPromise = new MegaPromise(); if (!forceUpdate) { if (mega.buinsessAccount && mega.buinsessAccount.invoicesDetailsList && mega.buinsessAccount.invoicesDetailsList[invoiceID]) { var currTime = new Date().getTime(); var cachedTime = mega.buinsessAccount.invoicesDetailsList[invoiceID].timestamp; if (cachedTime && (currTime - cachedTime) < this.invoiceListUpdateFreq) { return operationPromise.resolve(1, mega.buinsessAccount.invoicesDetailsList[invoiceID]); } } } var request = { 'a': 'id', // get invoice details 'n': invoiceID, // invoice number 'extax': 1 }; api_req(request, { callback: function (res) { if ($.isNumeric(res)) { operationPromise.reject(0, res, 'API returned error'); } else if (typeof res === 'object') { var currTime = new Date().getTime(); mega.buinsessAccount = mega.buinsessAccount || Object.create(null); mega.buinsessAccount.invoicesDetailsList = mega.buinsessAccount.invoicesDetailsList || Object.create(null); res.timestamp = currTime; mega.buinsessAccount.invoicesDetailsList[invoiceID] = res; operationPromise.resolve(1, res); // invoice detail } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * a function to get a list of payment gateways for business accounts * @param {Boolean} forceUpdate force updating from API * @returns {Promise} resolves when we get the answer */ BusinessAccount.prototype.getListOfPaymentGateways = function (forceUpdate) { "use strict"; var operationPromise = new MegaPromise(); if (!forceUpdate) { if (mega.buinsessAccount && mega.buinsessAccount.cachedBusinessGateways) { var currTime = new Date().getTime(); if (mega.buinsessAccount.cachedBusinessGateways.timestamp && (currTime - mega.buinsessAccount.cachedBusinessGateways.timestamp) < this.invoiceListUpdateFreq) { return operationPromise.resolve(1, mega.buinsessAccount.cachedBusinessGateways.list); } } } var request = { a: "ufpqfull", // get a list of payment gateways d: 0, // get all gateways [debugging] t: 0 }; api_req(request, { callback: function (res) { if ($.isNumeric(res)) { operationPromise.reject(0, res, 'API returned error'); } else if (typeof res === 'object') { var currTime = new Date().getTime(); mega.buinsessAccount = mega.buinsessAccount || Object.create(null); var paymentGateways = Object.create(null); paymentGateways.timestamp = currTime; var res2 = []; for (var h = 0; h < res.length; h++) { if (res[h].supportsBusinessPlans) { res2.push(res[h]); } } paymentGateways.list = res2; mega.buinsessAccount.cachedBusinessGateways = paymentGateways; operationPromise.resolve(1, res2); // payment gateways list } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * a function to get the business account plan (only 1). as the UI is not ready to handle more than 1 plan * @param {Boolean} forceUpdate force updating from API * @param {Boolean} [flexI] Get the Pro Flexi plan. * @returns {Promise} resolves when we get the answer */ BusinessAccount.prototype.getBusinessPlanInfo = async function(forceUpdate, flexI) { "use strict"; if (!forceUpdate && !flexI) { const {cachedBusinessPlan: {timestamp} = false} = mega.buinsessAccount || !1; if (Date.now() - timestamp < this.invoiceListUpdateFreq) { return mega.buinsessAccount.cachedBusinessPlan; } } const request = { a: 'utqa', // get a list of plans nf: 2, // extended format b: 1 // also show business plans }; if (flexI) { // get the Pro Flex-i plan request.p = 1; } return api.req(request) .then(({result}) => { for (let h = 0; h < result.length; h++) { const {it, al} = result[h]; const match = flexI ? al === pro.ACCOUNT_LEVEL_PRO_FLEXI : !!it; if (match) { const plan = result[h]; plan.bd.us.lp /= 100; plan.bd.us.p /= 100; plan.bd.trns.lp /= 100; plan.bd.trns.p /= 100; plan.bd.sto.lp /= 100; plan.bd.sto.p /= 100; plan.l = result[0].l; plan.c = result[0].l.c; plan.timestamp = Date.now(); if (!flexI) { mega.buinsessAccount = mega.buinsessAccount || Object.create(null); mega.buinsessAccount.cachedBusinessPlan = plan; } return plan; } } throw new MEGAException('Business plan not found.', {request, result}, 'NotFoundError'); }); }; /** * Get business account list of invoices * @param {Boolean} forceUpdate a flag to force getting info from API not using the cache * @returns {Promise} resolve if the operation succeeded */ BusinessAccount.prototype.getAccountInvoicesList = function (forceUpdate) { "use strict"; var operationPromise = new MegaPromise(); if (!forceUpdate) { if (mega.buinsessAccount && mega.buinsessAccount.invoicesList) { var currTime = new Date().getTime(); if (mega.buinsessAccount.invoicesList.timestamp && (currTime - mega.buinsessAccount.invoicesList.timestamp) < this.invoiceListUpdateFreq) { return operationPromise.resolve(1, mega.buinsessAccount.invoicesList.list); } } } var request = { "a": "il" // get a list of invoices }; api_req(request, { callback: function (res) { if ($.isNumeric(res)) { operationPromise.reject(0, res, 'API returned error'); } else if (typeof res === 'object') { var currTime = new Date().getTime(); mega.buinsessAccount = mega.buinsessAccount || Object.create(null); var storedBills = Object.create(null); storedBills.timestamp = currTime; storedBills.list = res; mega.buinsessAccount.invoicesList = storedBills; operationPromise.resolve(1, res); // invoices list } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * adding business account attributes to business account * @param {Number} nbusers number of users * @param {String} cname company name * @param {String} tel company phone * @param {String} fname first name of the user * @param {String} lname last name of the user * @param {String} email email of the user * @param {String} pass user's entered password * @param {Boolean} isUpgrade a flag to tell that this is a user upgrade and no need to create the user * @returns {Promise} resolve with the operation result */ BusinessAccount.prototype.setMasterUserAttributes = function (nbusers, cname, tel, fname, lname, email, pass, isUpgrade) { "use strict"; var operationPromise = new MegaPromise(); var mySelf = this; if (!tel) { return operationPromise.reject(0, 3, 'Empty phone'); } if (!cname) { return operationPromise.reject(0, 4, 'Empty company name'); } var request_upb = { "a": "upb", // up - business "%name": base64urlencode(to8(cname)), // company name "%phone": base64urlencode(to8(tel)), // company phone // terms: 'Mq', // firstname: base64urlencode(to8(fname)), // lastname: base64urlencode(to8(lname)), // name2: base64urlencode(to8(fname + ' ' + lname)) }; if (nbusers) { request_upb['%nbusers'] = base64urlencode(to8(nbusers)); // nb of users } if (isUpgrade && u_attr && u_attr.b && u_attr.b.m && u_attr.b.bu && u_attr.b.s === -1) { api.screq(request_upb) .then(({result}) => { assert(typeof result === 'string', `Unexpected response ${result}`); operationPromise.resolve(1, result); // update success }) .catch((ex) => { operationPromise.reject(0, ex, `API returned error, ${ex}`); }); } else { var businessKey = mySelf.creatBusinessAccountMasterKey(); crypto_rsagenkey(false) .then((businessRSA) => { request_upb.k = a32_to_base64(encrypt_key(u_k_aes, businessKey)); request_upb.pubk = base64urlencode(crypto_encodepubkey(businessRSA)); request_upb.privk = a32_to_base64( encrypt_key(u_k_aes, str_to_a32(crypto_encodeprivkey(businessRSA))) ); /* const keyPair = nacl.sign.keyPair(); const b_privEd25519 = asmCrypto.bytes_to_string(keyPair.secretKey.subarray(0, 32)); const b_pubEd25519 = asmCrypto.bytes_to_string(keyPair.publicKey); const b_k_aes = new sjcl.cipher.aes(businessKey); const enc_b_priv = a32_to_base64(encrypt_key(b_k_aes, str_to_a32(b_privEd25519))); const enc_b_pub = base64urlencode(b_pubEd25519); request_upb['%prv25519'] = enc_b_priv; request_upb['+pub25519'] = enc_b_pub; */ if (isUpgrade) { return api.screq(request_upb) .then(({result}) => { assert(typeof result === 'string', `Unexpected response ${result}`); operationPromise.resolve(1, result); // update success }) .catch((ex) => { operationPromise.reject(0, ex, `API returned error, ${ex}`); }); } return security.deriveKeysFromPassword(pass, u_k) .then(({clientRandomValueBytes, encryptedMasterKeyArray32, hashedAuthenticationKeyBytes}) => { // Encode parameters to Base64 before sending to the API const sendEmailRequestParams = { a: 'uc2', n: base64urlencode(to8(`${fname} ${lname}`)), // Name (used just for the email) m: base64urlencode(email), // Email crv: ab_to_base64(clientRandomValueBytes), // Client Random Value k: a32_to_base64(encryptedMasterKeyArray32), // Encrypted Master Key hak: ab_to_base64(hashedAuthenticationKeyBytes), // Hashed Authentication Key v: 2 // Version of this protocol }; return api.screq([request_upb, sendEmailRequestParams]) .then(({batch: res}) => { const [{result: u_h}, {result: uc2r}] = res; if (d) { console.debug('upb/uc2 combo', res); } if (typeof u_h !== 'string' || uc2r !== 0) { operationPromise.reject(0, res, 'API returned error'); } else { security.register.sendAdditionalInformation(fname, lname); operationPromise.resolve(1, u_h); // user handle } }) .catch((ex) => { if (d) { console.warn('upb/uc2 combo error', ex); } operationPromise.reject(0, ex, 'API returned error'); }); }); }) .catch(tell); } return operationPromise; }; /** * update the business account attributes (company) * @param {Object[]} attrs array of key,val of attributes to update */ BusinessAccount.prototype.updateBusinessAttrs = function (attrs) { "use strict"; var operationPromise = new MegaPromise(); if (!attrs) { return operationPromise.reject(0, 19, 'Empty attributes array'); } if (!attrs.length) { return operationPromise.resolve(1); // as nothing to change. } var request = { "a": "upb" // update business attr }; for (var k = 0; k < attrs.length; k++) { request[attrs[k].key] = base64urlencode(to8(attrs[k].val)); } api.screq(request) .then(({result}) => { assert(typeof result === 'string', `Unexpected response ${result}`); operationPromise.resolve(1, result); // update success }) .catch((ex) => { operationPromise.reject(0, 4, `API returned error, ${ex}`); }); return operationPromise; }; /** * Do the payment with the API * @param {Object} payDetails payment collected details from payment dialog * @param {Object} businessPlan business plan details * @return {Promise} resolve with the result */ BusinessAccount.prototype.doPaymentWithAPI = async function(payDetails, businessPlan) { "use strict"; assert(payDetails, 'Empty payment details'); assert(businessPlan, 'Empty business plan details'); var boughtItemPrice = businessPlan.totalPrice; if (businessPlan.currInvoice && businessPlan.currInvoice.et) { boughtItemPrice = businessPlan.currInvoice.et; } var request = { a: 'uts', it: businessPlan.it, si: businessPlan.id, p: boughtItemPrice, c: businessPlan.c, aff: mega.affid, m: m, bq: 0, pbq: 0, num: [businessPlan.totalUsers | 0, 0, 0] // number of users }; if (businessPlan.quota) { request.num[1] = businessPlan.quota; } if (mega.uaoref) { request.uao = escapeHTML(mega.uaoref); } const salesIDs = []; const {pastInvoice = false, totalUsers, usedGatewayId, currInvoice} = businessPlan; // We need to make the uts request to add multiple sale IDs for Business, // also for Pro Flexi (if there is previous invoice to be added to the total) if (totalUsers > 0 || u_attr.pf && currInvoice.et > 0) { salesIDs.push((await api.screq(request)).result); } else { assert(pastInvoice.si, 'Invalid payment parameters.'); } if (pastInvoice.si && !salesIDs.includes(pastInvoice.si)) { salesIDs.push(pastInvoice.si); } const utcRequest = { a: 'utc', // User Transaction Complete s: salesIDs, // Sale ID m: usedGatewayId || addressDialog.gatewayId, // Gateway number bq: 0, // Log for bandwidth quota triggered extra: payDetails // Extra information for the specific gateway }; const {result} = await api.screq(utcRequest); assert(result && result.EUR, 'Invalid API Response.'); return {result, saleId: salesIDs[0]}; }; /** * Get Tax name to be viewed on UI * @param {String} countryCode country code to get Tax code abbreviation for */ BusinessAccount.prototype.getTaxCodeName = function(countryCode) { "use strict"; /* var operationPromise = new MegaPromise(); if (mega.buinsessAccount && mega.buinsessAccount.invoicesTaxName) { return operationPromise.resolve(1, mega.buinsessAccount.invoicesTaxName); } var request = { "a": "tn", }; api_req(request, { callback: function(res) { if (typeof res === 'string') { mega.buinsessAccount = mega.buinsessAccount || Object.create(null); mega.buinsessAccount.invoicesTaxName = res; operationPromise.resolve(1, res); // user activated successfully, object contain lp + u } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; */ return getTaxName(countryCode); }; /** * resend invitation link to sub-user with new password * @param {String} subuserHandle sub-user handle */ BusinessAccount.prototype.resendInvitation = function (subuserHandle) { "use strict"; var operationPromise = new MegaPromise(); if (!subuserHandle) { return operationPromise.reject(0, 11, 'Empty sub-user handle'); } var request = { "a": "sbu", "aa": "r", "u": subuserHandle // user handle }; api_req(request, { callback: function (res) { if (typeof res === 'object') { operationPromise.resolve(1, res); // user activated successfully, object contain lp + u } else { operationPromise.reject(0, 4, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * Ask API about due payments */ BusinessAccount.prototype.getOverduePayments = function() { "use strict"; var operationPromise = new MegaPromise(); var request = { "a": "iu" }; api_req(request, { callback: function(res) { if (typeof res === 'object') { operationPromise.resolve(1, res); } else { operationPromise.reject(0, res, 'API returned error, ret=' + res); } } }); return operationPromise; }; /** * update a sub user attributes upon their change notification * @param {String} subuserHandle Sub-user handle * @param {String[]} changedAttrs Array of changed attributes names */ BusinessAccount.prototype.updateSubUserInfo = function (subuserHandle, changedAttrs) { "use strict"; if (!subuserHandle) { return ; } var mySelf = this; var subUser = M.suba[subuserHandle]; var isMasterAttr = false; var isSubAttr = false; var considereAttrs = ["%position", "%idnum", "%phonenum", "%location", '%name', '%phone', '%email', '%taxnum', '%address1', '%address2', '%city', '%state', '%country', '%zip']; var totalAttrs = 0; // if the user is not active, --> it wont be considered in contacts updating mechanisms if (subUser && subUser.s !== 0 && !M.u[subuserHandle]) { considereAttrs.push('lastname', 'firstname'); } var attrFetched = function(res, ctx) { if (typeof res !== 'number') { if (ctx.ua === "e") { subUser.m = res; isSubAttr = true; } else if (ctx.ua === "firstname") { subUser.firstname = res; isSubAttr = true; } else if (ctx.ua === "lastname") { subUser.lastname = res; isSubAttr = true; } else if (ctx.ua === "%position") { subUser["position"] = res; isSubAttr = true; } else if (ctx.ua === "%idnum") { subUser["idnum"] = res; isSubAttr = true; } else if (ctx.ua === "%phonenum") { subUser["phonenum"] = res; isSubAttr = true; } else if (ctx.ua === "%location") { subUser["location"] = res; isSubAttr = true; } else { u_attr[ctx.ua] = from8(base64urldecode(res)); isMasterAttr = true; } } if (!--totalAttrs) { if (isSubAttr) { mySelf.parseSUBA(subUser, false, true); } else if (isMasterAttr) { mBroadcaster.sendMessage('business:subuserUpdate', {}); } } }; for (var k = 0; k < changedAttrs.length; k++) { if (considereAttrs.indexOf(changedAttrs[k]) > -1) { totalAttrs++; mega.attr.get(subuserHandle, changedAttrs[k], -1, undefined, attrFetched); } } }; BusinessAccount.prototype.resetSubUserPassword = async function(subuserHandle, password) { "use strict"; assert(subuserHandle, 'Empty sub-user handle'); assert(password && password.length > 9, 'Empty password/or not long enough'); assert(window.u_attr && u_attr.b && u_attr.b.bprivk, 'Broken master account status'); const {k, k2} = await this.getSubAccountMKey(subuserHandle); assert(k2 || k, 'Failed to get/decrypt subuser key'); const request = { "a": "upsub", "su": subuserHandle // user handle }; let subUserKey; if (k) { const business_privk = crypto_decodeprivkey(a32_to_str(decrypt_key(u_k_aes, base64_to_a32(u_attr.b.bprivk)))); subUserKey = str_to_a32(crypto_rsadecrypt(base64urldecode(k), business_privk).substr(0, 16)); } else { subUserKey = str_to_a32(this.decryptKey(base64urldecode(k2), subuserHandle)); } const { clientRandomValueBytes, encryptedMasterKeyArray32, hashedAuthenticationKeyBytes } = await security.deriveKeysFromPassword(password, subUserKey); // Convert to Base64 const encryptedMasterKeyBase64 = a32_to_base64(encryptedMasterKeyArray32); const hashedAuthenticationKeyBase64 = ab_to_base64(hashedAuthenticationKeyBytes); const clientRandomValueBase64 = ab_to_base64(clientRandomValueBytes); request.k = encryptedMasterKeyBase64; request.uh = hashedAuthenticationKeyBase64; request.crv = clientRandomValueBase64; // Send API request to change password const {result} = await api.screq(request); assert(typeof result === 'string' && result.length === 11, `Unexpected 'upsub' response, ${result}`); return result; }; /** Create the master key for Business account * @returns {Array} The key */ BusinessAccount.prototype.creatBusinessAccountMasterKey = function () { "use strict"; var bKey = Array(4); for (var i = 4; i--;) { bKey[i] = rand(0x100000000); } return bKey; }; ```
On January 15, 2010, the Department of Defense complied with a court order and published a list of Captives held in the Bagram Theater Internment Facility that included the name Ahmad Dilshad. There were 645 names on the list, which was dated September 22, 2009, and was heavily redacted. According to historian Andy Worthington, author of The Guantanamo Files, Ahmad Dilshad was captured in Baghdad, Iraq with four other men. Worthington reported Ahmad Dilshad was also known as "Danish Ahmad" and "Abdul Rehman al-Dakhil". Asia Times called him a "leading LeT [Lashkar-e-Tayyiba] ringleader"—a militant group devoted to an independence for the portion of Kashmir occupied by India. Asia Times reported that Dilshad had called for LeT to expand its militant activities beyond Kashmir as early as 1997. They reported he was a "known confidant of Zaki-ur-Rahman Lakhvi". They reported he had served as LeT's operational head, and had "trained many LeT fighters in its Maskar Abu Bashir camp in Afghanistan". Worthington reports he was captured in Baghdad. Asia Times reports he was captured in Iraq's southernmost city, Basra, on its border with Iran. References Bagram Theater Internment Facility detainees Living people Year of birth missing (living people)
```yaml # generated by gen-jobs.sh, do not edit manually presubmits: kubernetes-csi/csi-driver-host-path: - name: your_sha256_hash cluster: eks-prow-build-cluster always_run: true optional: false decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-27-on-kubernetes-1-27 description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.27 on Kubernetes 1.27 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.27.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hasher # Explicitly needs to be started with /test. # This cannot be enabled by default because there's always the risk # that something changes in master which breaks the pre-merge check. cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-27-on-kubernetes-master description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.27 on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash cluster: eks-prow-build-cluster always_run: true optional: false decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-28-on-kubernetes-1-28 description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.28 on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.28.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hasher # Explicitly needs to be started with /test. # This cannot be enabled by default because there's always the risk # that something changes in master which breaks the pre-merge check. cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-28-on-kubernetes-master description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.28 on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash cluster: eks-prow-build-cluster always_run: true optional: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-29-on-kubernetes-1-29 description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.29 on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.29.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.29" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hasher # Explicitly needs to be started with /test. # This cannot be enabled by default because there's always the risk # that something changes in master which breaks the pre-merge check. cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-29-on-kubernetes-master description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.29 on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hashs-1-28 cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: alpha-1-28-on-kubernetes-1-28 description: Kubernetes-CSI pull job in repo csi-driver-host-path for alpha tests, using deployment 1.28 on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.28.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "serial-alpha parallel-alpha" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash-1-27 cluster: eks-prow-build-cluster always_run: true optional: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-27-test-on-kubernetes-1-27 description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.27-test on Kubernetes 1.27 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.27.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash-master # Explicitly needs to be started with /test. # This cannot be enabled by default because there's always the risk # that something changes in master which breaks the pre-merge check. cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-27-test-on-kubernetes-master description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.27-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash-1-28 cluster: eks-prow-build-cluster always_run: true optional: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-28-test-on-kubernetes-1-28 description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.28-test on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.28.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash-master # Explicitly needs to be started with /test. # This cannot be enabled by default because there's always the risk # that something changes in master which breaks the pre-merge check. cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-28-test-on-kubernetes-master description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.28-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash-1-29 cluster: eks-prow-build-cluster always_run: true optional: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-29-test-on-kubernetes-1-29 description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.29-test on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.29.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.29" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hash-master # Explicitly needs to be started with /test. # This cannot be enabled by default because there's always the risk # that something changes in master which breaks the pre-merge check. cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: 1-29-test-on-kubernetes-master description: Kubernetes-CSI pull job in repo csi-driver-host-path for non-alpha tests, using deployment 1.29-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: your_sha256_hashrnetes-1-28 cluster: eks-prow-build-cluster always_run: false optional: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: alpha-1-28-test-on-kubernetes-1-28 description: Kubernetes-CSI pull job in repo csi-driver-host-path for alpha tests, using deployment 1.28-test on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: # We pick some version for which there are pre-built images for kind. # Update only when the newer version is known to not cause issues, # otherwise presubmit jobs may start to fail for reasons that are # unrelated to the PR. Testing against the latest Kubernetes is covered # by periodic jobs (see path_to_url#Summary). - name: CSI_PROW_KUBERNETES_VERSION value: "1.28.0" - name: CSI_PROW_KUBERNETES_DEPLOYMENT value: "1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_DRIVER_VERSION value: "v1.12.1" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_TESTS value: "serial-alpha parallel-alpha" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - name: pull-kubernetes-csi-csi-driver-host-path-unit cluster: eks-prow-build-cluster always_run: true decorate: true skip_report: false skip_branches: [] labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-csi-driver-host-path testgrid-tab-name: unit description: Kubernetes-CSI pull job in repo csi-driver-host-path for unit tests spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_TESTS value: "unit" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 periodics: - interval: 6h name: ci-kubernetes-csi-1-27-on-kubernetes-1-27 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-on-1.27 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27 on Kubernetes 1.27 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.27" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-on-kubernetes-1-28 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-on-1.28 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27 on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.28" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-on-kubernetes-1-29 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27 on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.29" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-on-kubernetes-master cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27 on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-28-on-kubernetes-1-28 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.28-on-1.28 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.28 on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.28" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-28-on-kubernetes-1-29 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.28-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.28 on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.29" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-28-on-kubernetes-master cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.28-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.28 on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-29-on-kubernetes-1-29 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.29-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.29 on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.29" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.29" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-29-on-kubernetes-master cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.29-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.29 on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.29" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-test-on-kubernetes-1-27 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-test-on-1.27 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27-test on Kubernetes 1.27 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.27" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-test-on-kubernetes-1-28 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-test-on-1.28 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27-test on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.28" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-test-on-kubernetes-1-29 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-test-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27-test on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.29" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-27-test-on-kubernetes-master cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.27-test-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.27-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.27" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-28-test-on-kubernetes-1-28 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.28-test-on-1.28 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.28-test on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.28" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-28-test-on-kubernetes-1-29 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.28-test-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.28-test on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.29" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-28-test-on-kubernetes-master cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.28-test-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.28-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.28" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-29-test-on-kubernetes-1-29 cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.29-test-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.29-test on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "release-1.29" - name: CSI_SNAPSHOTTER_VERSION value: "v6.1.0" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.29" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-1-29-test-on-kubernetes-master cluster: k8s-infra-prow-build decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: 1.29-test-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment 1.29-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_SNAPSHOTTER_VERSION value: "master" - name: CSI_PROW_BUILD_JOB value: "false" - name: CSI_PROW_DEPLOYMENT value: "kubernetes-1.29" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-on-kubernetes-1-27 cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-on-1.27 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary on Kubernetes 1.27 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "1.27.0" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "false" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-on-kubernetes-1-28 cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-on-1.28 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "1.28.0" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "false" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-on-kubernetes-1-29 cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "1.29.0" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "false" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-on-kubernetes-master cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "true" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-alpha-canary-on-kubernetes-master cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: alpha-canary-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for alpha tests, using deployment canary on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "true" - name: CSI_PROW_TESTS value: "serial-alpha parallel-alpha" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-test-on-kubernetes-1-27 cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-test-on-1.27 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary-test on Kubernetes 1.27 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "1.27.0" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "false" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-test-on-kubernetes-1-28 cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-test-on-1.28 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary-test on Kubernetes 1.28 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "1.28.0" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "false" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-test-on-kubernetes-1-29 cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-test-on-1.29 testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary-test on Kubernetes 1.29 spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "1.29.0" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "false" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-canary-test-on-kubernetes-master cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: canary-test-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for non-alpha tests, using deployment canary-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "true" - name: CSI_PROW_TESTS value: "sanity serial parallel" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 - interval: 6h name: ci-kubernetes-csi-alpha-canary-test-on-kubernetes-master cluster: eks-prow-build-cluster decorate: true extra_refs: - org: kubernetes-csi repo: csi-driver-host-path base_ref: master labels: preset-service-account: "true" preset-dind-enabled: "true" preset-kind-volume-mounts: "true" annotations: testgrid-dashboards: sig-storage-csi-ci testgrid-tab-name: alpha-canary-test-on-master testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com description: periodic Kubernetes-CSI job for alpha tests, using deployment canary-test on Kubernetes master spec: containers: # We need this image because it has Docker in Docker and go. - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master command: - runner.sh args: - ./.prow.sh env: - name: CSI_PROW_KUBERNETES_VERSION value: "latest" - name: CSI_PROW_BUILD_JOB value: "false" # Replace images.... - name: CSI_PROW_HOSTPATH_CANARY value: "canary" - name: CSI_PROW_DEPLOYMENT_SUFFIX value: "-test" - name: CSI_SNAPSHOTTER_VERSION value: "master" # ... but the RBAC rules only when testing on master. # The other jobs test against the unmodified deployment for # that Kubernetes version, i.e. with the original RBAC rules. - name: UPDATE_RBAC_RULES value: "true" - name: CSI_PROW_TESTS value: "serial-alpha parallel-alpha" # docker-in-docker needs privileged mode securityContext: privileged: true resources: requests: memory: "9Gi" cpu: 4 limits: memory: "9Gi" cpu: 4 ```
Patrick Senécal is a French-Canadian writer and scenarist known for his horror oriented drama novels. Senécal is well known in Québec for his unique dark genre; his work has often been compared to that of Stephen King. Three of his novels were adapted into films in his native Québec. Personal life Senécal holds a bachelor's degree in French studies from the Université de Montréal. He was also a teacher for ten years at the Cégep de Drummondville. Books Novels 1994: 5150 rue des Ormes 1995: Le Passager 1998: Sur le Seuil 2000: Aliss (a retelling of Alice in Wonderland) 2002: Les Sept Jours du Talion (translated as Seven Days in 2019) 2004: Oniria 2007: Le Vide 2009: Hell.com 2010: Against God (Contre Dieu) 2011: Malphas 1. Le Cas des casiers carnassiers 2012: Malphas 2. Torture, luxure et lecture 2013: Malphas 3. Ce qui se passe dans la cave reste dans la cave 2014: Malphas 4. Grande Liquidation 2015: Faims 2016: L'Autre Reflet 2017: Il Y Aura Des Morts 2019: Ceux de là-bas 2021: Flots 2022: Résonnance Youth novels 2007: Sept comme Setteur 2010: Madame Wenham. Collaborative work 2013: Quinze minutes (L’Orphéon) Short stories 1998: "Ressac" 1999: "La Source" 1999: "Eaux troubles" 2000: "Nuit d’ancre" 2001: "Retrouvailles" 2005: "Équilibre" 2007: "Drummondville" 2009: "Vente avec démonstration" 2011: "Famme" 2014: "Public cible" 2014: "« »", in Des nouvelles du père Graphic novels 2014: Sale Canal (With Tristan Demers) 2020: Aliss (with Jeik Dion) Filmography Awards |- | 2001 | Aliss | Prix Boréal : Best novel | |- | 2006 | Sur le Seuil | Prix Masterton : Francophone novel | |- | 2006 | Chambre no 13 | Gémeaux : Scenario | |- | 2007 | Le Vide | Prix Saint-Pacôme : Best Quebeker crime fiction | |- | 2007 | Le Vide | La Presse du Salon du livre de Montréal : Public's Choice | |- | 2008 | Le Vide | Grand Prix des auteurs de la Montérégie : Jury's Price | |- | 2009 | Hell.com | Prix du public du Salon du livre de la Côte-Nord | |- | 2012 | Malphas 2. Torture, luxure et lecture | La Presse du Salon du livre de Montréal : Public's Choice | |} References 1967 births Living people French Quebecers People from Drummondville Writers from Quebec Canadian horror writers
The N8 is a Bangladeshi National Highway between the capital Dhaka and the town of Patuakhali. It starts from the Jatrabari interchange and ends at the Patuakhali bridge. See also List of roads in Bangladesh References AH1 National Highways in Bangladesh
Cadwalader Morris (February 19, 1741 – January 25, 1795) was an American merchant and politician from Philadelphia, Pennsylvania. Early life Morris was born in Philadelphia on February 19, 1741. He was a son of merchant Samuel Morris (1711–1782) and Hannah (née Cadwalader) Morris (1715–1787). His brother was Anthony Cadwalader Morris. His paternal grandparents were Phoebe (née Guest) Morris and Anthony Morris, the brewer, merchant, judge, assemblyman, and mayor of Philadelphia. His maternal grandparents were Martha (née Jones) Cadwalader and General John Cadwalader, who emigrated from Wales to Philadelphia in 1697, sailing with William Penn on his second voyage to the Quaker City. Among his maternal family was uncle Dr. Thomas Cadwalader, and cousins, General John Cadwalader, U.S. Representative Lambert Cadwalader, and aunt Mary Cadwalader (wife of Judge Samuel Dickinson). Career After attending the rural school, Morris became engaged in commercial pursuits and in the management of his estate, residing for a time in the West Indies. During the American Revolution, he was a member of the First Troop Philadelphia City Cavalry, which was commanded by his cousin, Captain Samuel Morris. He was a delegate for Pennsylvania in the Continental Congress in 1783 and 1784. In 1781, he was a founder and also a member of the first board of directors of the Bank of North America. After the war he had an iron furnace for several years at Birdsboro, Berks County, Pennsylvania, after which he returned to mercantile pursuits in Philadelphia and was a member of the Democratic Society of Philadelphia. References External links 1741 births 1795 deaths Politicians from Philadelphia Continental Congressmen from Pennsylvania 18th-century American politicians People of colonial Pennsylvania People from Birdsboro, Pennsylvania
2010 Yokohama F. Marinos season Competitions J. League 1 Emperor's Cup J. League Cup Player statistics Other pages J.League official site Yokohama F. Marinos Yokohama F. Marinos seasons
```c++ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/base/adapters.h" #include "src/base/bits.h" #include "src/compiler/instruction-selector-impl.h" #include "src/compiler/node-matchers.h" #include "src/compiler/node-properties.h" namespace v8 { namespace internal { namespace compiler { // Adds Arm-specific methods for generating InstructionOperands. class ArmOperandGenerator : public OperandGenerator { public: explicit ArmOperandGenerator(InstructionSelector* selector) : OperandGenerator(selector) {} bool CanBeImmediate(int32_t value) const { return Assembler::ImmediateFitsAddrMode1Instruction(value); } bool CanBeImmediate(uint32_t value) const { return CanBeImmediate(bit_cast<int32_t>(value)); } bool CanBeImmediate(Node* node, InstructionCode opcode) { Int32Matcher m(node); if (!m.HasValue()) return false; int32_t value = m.Value(); switch (ArchOpcodeField::decode(opcode)) { case kArmAnd: case kArmMov: case kArmMvn: case kArmBic: return CanBeImmediate(value) || CanBeImmediate(~value); case kArmAdd: case kArmSub: case kArmCmp: case kArmCmn: return CanBeImmediate(value) || CanBeImmediate(-value); case kArmTst: case kArmTeq: case kArmOrr: case kArmEor: case kArmRsb: return CanBeImmediate(value); case kArmVldrF32: case kArmVstrF32: case kArmVldrF64: case kArmVstrF64: return value >= -1020 && value <= 1020 && (value % 4) == 0; case kArmLdrb: case kArmLdrsb: case kArmStrb: case kArmLdr: case kArmStr: return value >= -4095 && value <= 4095; case kArmLdrh: case kArmLdrsh: case kArmStrh: return value >= -255 && value <= 255; default: break; } return false; } }; namespace { void VisitRR(InstructionSelector* selector, ArchOpcode opcode, Node* node) { ArmOperandGenerator g(selector); selector->Emit(opcode, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); } void VisitRRR(InstructionSelector* selector, ArchOpcode opcode, Node* node) { ArmOperandGenerator g(selector); selector->Emit(opcode, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); } template <IrOpcode::Value kOpcode, int kImmMin, int kImmMax, AddressingMode kImmMode, AddressingMode kRegMode> bool TryMatchShift(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, InstructionOperand* value_return, InstructionOperand* shift_return) { ArmOperandGenerator g(selector); if (node->opcode() == kOpcode) { Int32BinopMatcher m(node); *value_return = g.UseRegister(m.left().node()); if (m.right().IsInRange(kImmMin, kImmMax)) { *opcode_return |= AddressingModeField::encode(kImmMode); *shift_return = g.UseImmediate(m.right().node()); } else { *opcode_return |= AddressingModeField::encode(kRegMode); *shift_return = g.UseRegister(m.right().node()); } return true; } return false; } bool TryMatchROR(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, InstructionOperand* value_return, InstructionOperand* shift_return) { return TryMatchShift<IrOpcode::kWord32Ror, 1, 31, kMode_Operand2_R_ROR_I, kMode_Operand2_R_ROR_R>(selector, opcode_return, node, value_return, shift_return); } bool TryMatchASR(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, InstructionOperand* value_return, InstructionOperand* shift_return) { return TryMatchShift<IrOpcode::kWord32Sar, 1, 32, kMode_Operand2_R_ASR_I, kMode_Operand2_R_ASR_R>(selector, opcode_return, node, value_return, shift_return); } bool TryMatchLSL(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, InstructionOperand* value_return, InstructionOperand* shift_return) { return TryMatchShift<IrOpcode::kWord32Shl, 0, 31, kMode_Operand2_R_LSL_I, kMode_Operand2_R_LSL_R>(selector, opcode_return, node, value_return, shift_return); } bool TryMatchLSR(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, InstructionOperand* value_return, InstructionOperand* shift_return) { return TryMatchShift<IrOpcode::kWord32Shr, 1, 32, kMode_Operand2_R_LSR_I, kMode_Operand2_R_LSR_R>(selector, opcode_return, node, value_return, shift_return); } bool TryMatchShift(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, InstructionOperand* value_return, InstructionOperand* shift_return) { return ( TryMatchASR(selector, opcode_return, node, value_return, shift_return) || TryMatchLSL(selector, opcode_return, node, value_return, shift_return) || TryMatchLSR(selector, opcode_return, node, value_return, shift_return) || TryMatchROR(selector, opcode_return, node, value_return, shift_return)); } bool TryMatchImmediateOrShift(InstructionSelector* selector, InstructionCode* opcode_return, Node* node, size_t* input_count_return, InstructionOperand* inputs) { ArmOperandGenerator g(selector); if (g.CanBeImmediate(node, *opcode_return)) { *opcode_return |= AddressingModeField::encode(kMode_Operand2_I); inputs[0] = g.UseImmediate(node); *input_count_return = 1; return true; } if (TryMatchShift(selector, opcode_return, node, &inputs[0], &inputs[1])) { *input_count_return = 2; return true; } return false; } void VisitBinop(InstructionSelector* selector, Node* node, InstructionCode opcode, InstructionCode reverse_opcode, FlagsContinuation* cont) { ArmOperandGenerator g(selector); Int32BinopMatcher m(node); InstructionOperand inputs[5]; size_t input_count = 0; InstructionOperand outputs[2]; size_t output_count = 0; if (m.left().node() == m.right().node()) { // If both inputs refer to the same operand, enforce allocating a register // for both of them to ensure that we don't end up generating code like // this: // // mov r0, r1, asr #16 // adds r0, r0, r1, asr #16 // bvs label InstructionOperand const input = g.UseRegister(m.left().node()); opcode |= AddressingModeField::encode(kMode_Operand2_R); inputs[input_count++] = input; inputs[input_count++] = input; } else if (TryMatchImmediateOrShift(selector, &opcode, m.right().node(), &input_count, &inputs[1])) { inputs[0] = g.UseRegister(m.left().node()); input_count++; } else if (TryMatchImmediateOrShift(selector, &reverse_opcode, m.left().node(), &input_count, &inputs[1])) { inputs[0] = g.UseRegister(m.right().node()); opcode = reverse_opcode; input_count++; } else { opcode |= AddressingModeField::encode(kMode_Operand2_R); inputs[input_count++] = g.UseRegister(m.left().node()); inputs[input_count++] = g.UseRegister(m.right().node()); } if (cont->IsBranch()) { inputs[input_count++] = g.Label(cont->true_block()); inputs[input_count++] = g.Label(cont->false_block()); } outputs[output_count++] = g.DefineAsRegister(node); if (cont->IsSet()) { outputs[output_count++] = g.DefineAsRegister(cont->result()); } DCHECK_NE(0u, input_count); DCHECK_NE(0u, output_count); DCHECK_GE(arraysize(inputs), input_count); DCHECK_GE(arraysize(outputs), output_count); DCHECK_NE(kMode_None, AddressingModeField::decode(opcode)); selector->Emit(cont->Encode(opcode), output_count, outputs, input_count, inputs); } void VisitBinop(InstructionSelector* selector, Node* node, InstructionCode opcode, InstructionCode reverse_opcode) { FlagsContinuation cont; VisitBinop(selector, node, opcode, reverse_opcode, &cont); } void EmitDiv(InstructionSelector* selector, ArchOpcode div_opcode, ArchOpcode f64i32_opcode, ArchOpcode i32f64_opcode, InstructionOperand result_operand, InstructionOperand left_operand, InstructionOperand right_operand) { ArmOperandGenerator g(selector); if (selector->IsSupported(SUDIV)) { selector->Emit(div_opcode, result_operand, left_operand, right_operand); return; } InstructionOperand left_double_operand = g.TempDoubleRegister(); InstructionOperand right_double_operand = g.TempDoubleRegister(); InstructionOperand result_double_operand = g.TempDoubleRegister(); selector->Emit(f64i32_opcode, left_double_operand, left_operand); selector->Emit(f64i32_opcode, right_double_operand, right_operand); selector->Emit(kArmVdivF64, result_double_operand, left_double_operand, right_double_operand); selector->Emit(i32f64_opcode, result_operand, result_double_operand); } void VisitDiv(InstructionSelector* selector, Node* node, ArchOpcode div_opcode, ArchOpcode f64i32_opcode, ArchOpcode i32f64_opcode) { ArmOperandGenerator g(selector); Int32BinopMatcher m(node); EmitDiv(selector, div_opcode, f64i32_opcode, i32f64_opcode, g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(m.right().node())); } void VisitMod(InstructionSelector* selector, Node* node, ArchOpcode div_opcode, ArchOpcode f64i32_opcode, ArchOpcode i32f64_opcode) { ArmOperandGenerator g(selector); Int32BinopMatcher m(node); InstructionOperand div_operand = g.TempRegister(); InstructionOperand result_operand = g.DefineAsRegister(node); InstructionOperand left_operand = g.UseRegister(m.left().node()); InstructionOperand right_operand = g.UseRegister(m.right().node()); EmitDiv(selector, div_opcode, f64i32_opcode, i32f64_opcode, div_operand, left_operand, right_operand); if (selector->IsSupported(MLS)) { selector->Emit(kArmMls, result_operand, div_operand, right_operand, left_operand); } else { InstructionOperand mul_operand = g.TempRegister(); selector->Emit(kArmMul, mul_operand, div_operand, right_operand); selector->Emit(kArmSub, result_operand, left_operand, mul_operand); } } } // namespace void InstructionSelector::VisitLoad(Node* node) { MachineType rep = RepresentationOf(OpParameter<LoadRepresentation>(node)); MachineType typ = TypeOf(OpParameter<LoadRepresentation>(node)); ArmOperandGenerator g(this); Node* base = node->InputAt(0); Node* index = node->InputAt(1); ArchOpcode opcode; switch (rep) { case kRepFloat32: opcode = kArmVldrF32; break; case kRepFloat64: opcode = kArmVldrF64; break; case kRepBit: // Fall through. case kRepWord8: opcode = typ == kTypeUint32 ? kArmLdrb : kArmLdrsb; break; case kRepWord16: opcode = typ == kTypeUint32 ? kArmLdrh : kArmLdrsh; break; case kRepTagged: // Fall through. case kRepWord32: opcode = kArmLdr; break; default: UNREACHABLE(); return; } if (g.CanBeImmediate(index, opcode)) { Emit(opcode | AddressingModeField::encode(kMode_Offset_RI), g.DefineAsRegister(node), g.UseRegister(base), g.UseImmediate(index)); } else { Emit(opcode | AddressingModeField::encode(kMode_Offset_RR), g.DefineAsRegister(node), g.UseRegister(base), g.UseRegister(index)); } } void InstructionSelector::VisitStore(Node* node) { ArmOperandGenerator g(this); Node* base = node->InputAt(0); Node* index = node->InputAt(1); Node* value = node->InputAt(2); StoreRepresentation store_rep = OpParameter<StoreRepresentation>(node); WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); MachineType rep = RepresentationOf(store_rep.machine_type()); if (write_barrier_kind != kNoWriteBarrier) { DCHECK_EQ(kRepTagged, rep); InstructionOperand inputs[3]; size_t input_count = 0; inputs[input_count++] = g.UseUniqueRegister(base); inputs[input_count++] = g.UseUniqueRegister(index); inputs[input_count++] = (write_barrier_kind == kMapWriteBarrier) ? g.UseRegister(value) : g.UseUniqueRegister(value); RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny; switch (write_barrier_kind) { case kNoWriteBarrier: UNREACHABLE(); break; case kMapWriteBarrier: record_write_mode = RecordWriteMode::kValueIsMap; break; case kPointerWriteBarrier: record_write_mode = RecordWriteMode::kValueIsPointer; break; case kFullWriteBarrier: record_write_mode = RecordWriteMode::kValueIsAny; break; } InstructionOperand temps[] = {g.TempRegister(), g.TempRegister()}; size_t const temp_count = arraysize(temps); InstructionCode code = kArchStoreWithWriteBarrier; code |= MiscField::encode(static_cast<int>(record_write_mode)); Emit(code, 0, nullptr, input_count, inputs, temp_count, temps); } else { ArchOpcode opcode; switch (rep) { case kRepFloat32: opcode = kArmVstrF32; break; case kRepFloat64: opcode = kArmVstrF64; break; case kRepBit: // Fall through. case kRepWord8: opcode = kArmStrb; break; case kRepWord16: opcode = kArmStrh; break; case kRepTagged: // Fall through. case kRepWord32: opcode = kArmStr; break; default: UNREACHABLE(); return; } if (g.CanBeImmediate(index, opcode)) { Emit(opcode | AddressingModeField::encode(kMode_Offset_RI), g.NoOutput(), g.UseRegister(base), g.UseImmediate(index), g.UseRegister(value)); } else { Emit(opcode | AddressingModeField::encode(kMode_Offset_RR), g.NoOutput(), g.UseRegister(base), g.UseRegister(index), g.UseRegister(value)); } } } void InstructionSelector::VisitCheckedLoad(Node* node) { MachineType rep = RepresentationOf(OpParameter<MachineType>(node)); MachineType typ = TypeOf(OpParameter<MachineType>(node)); ArmOperandGenerator g(this); Node* const buffer = node->InputAt(0); Node* const offset = node->InputAt(1); Node* const length = node->InputAt(2); ArchOpcode opcode; switch (rep) { case kRepWord8: opcode = typ == kTypeInt32 ? kCheckedLoadInt8 : kCheckedLoadUint8; break; case kRepWord16: opcode = typ == kTypeInt32 ? kCheckedLoadInt16 : kCheckedLoadUint16; break; case kRepWord32: opcode = kCheckedLoadWord32; break; case kRepFloat32: opcode = kCheckedLoadFloat32; break; case kRepFloat64: opcode = kCheckedLoadFloat64; break; default: UNREACHABLE(); return; } InstructionOperand offset_operand = g.UseRegister(offset); InstructionOperand length_operand = g.CanBeImmediate(length, kArmCmp) ? g.UseImmediate(length) : g.UseRegister(length); Emit(opcode | AddressingModeField::encode(kMode_Offset_RR), g.DefineAsRegister(node), offset_operand, length_operand, g.UseRegister(buffer), offset_operand); } void InstructionSelector::VisitCheckedStore(Node* node) { MachineType rep = RepresentationOf(OpParameter<MachineType>(node)); ArmOperandGenerator g(this); Node* const buffer = node->InputAt(0); Node* const offset = node->InputAt(1); Node* const length = node->InputAt(2); Node* const value = node->InputAt(3); ArchOpcode opcode; switch (rep) { case kRepWord8: opcode = kCheckedStoreWord8; break; case kRepWord16: opcode = kCheckedStoreWord16; break; case kRepWord32: opcode = kCheckedStoreWord32; break; case kRepFloat32: opcode = kCheckedStoreFloat32; break; case kRepFloat64: opcode = kCheckedStoreFloat64; break; default: UNREACHABLE(); return; } InstructionOperand offset_operand = g.UseRegister(offset); InstructionOperand length_operand = g.CanBeImmediate(length, kArmCmp) ? g.UseImmediate(length) : g.UseRegister(length); Emit(opcode | AddressingModeField::encode(kMode_Offset_RR), g.NoOutput(), offset_operand, length_operand, g.UseRegister(value), g.UseRegister(buffer), offset_operand); } namespace { void EmitBic(InstructionSelector* selector, Node* node, Node* left, Node* right) { ArmOperandGenerator g(selector); InstructionCode opcode = kArmBic; InstructionOperand value_operand; InstructionOperand shift_operand; if (TryMatchShift(selector, &opcode, right, &value_operand, &shift_operand)) { selector->Emit(opcode, g.DefineAsRegister(node), g.UseRegister(left), value_operand, shift_operand); return; } selector->Emit(opcode | AddressingModeField::encode(kMode_Operand2_R), g.DefineAsRegister(node), g.UseRegister(left), g.UseRegister(right)); } void EmitUbfx(InstructionSelector* selector, Node* node, Node* left, uint32_t lsb, uint32_t width) { DCHECK_LE(1u, width); DCHECK_LE(width, 32u - lsb); ArmOperandGenerator g(selector); selector->Emit(kArmUbfx, g.DefineAsRegister(node), g.UseRegister(left), g.TempImmediate(lsb), g.TempImmediate(width)); } } // namespace void InstructionSelector::VisitWord32And(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (m.left().IsWord32Xor() && CanCover(node, m.left().node())) { Int32BinopMatcher mleft(m.left().node()); if (mleft.right().Is(-1)) { EmitBic(this, node, m.right().node(), mleft.left().node()); return; } } if (m.right().IsWord32Xor() && CanCover(node, m.right().node())) { Int32BinopMatcher mright(m.right().node()); if (mright.right().Is(-1)) { EmitBic(this, node, m.left().node(), mright.left().node()); return; } } if (m.right().HasValue()) { uint32_t const value = m.right().Value(); uint32_t width = base::bits::CountPopulation32(value); uint32_t msb = base::bits::CountLeadingZeros32(value); // Try to interpret this AND as UBFX. if (IsSupported(ARMv7) && width != 0 && msb + width == 32) { DCHECK_EQ(0u, base::bits::CountTrailingZeros32(value)); if (m.left().IsWord32Shr()) { Int32BinopMatcher mleft(m.left().node()); if (mleft.right().IsInRange(0, 31)) { // UBFX cannot extract bits past the register size, however since // shifting the original value would have introduced some zeros we can // still use UBFX with a smaller mask and the remaining bits will be // zeros. uint32_t const lsb = mleft.right().Value(); return EmitUbfx(this, node, mleft.left().node(), lsb, std::min(width, 32 - lsb)); } } return EmitUbfx(this, node, m.left().node(), 0, width); } // Try to interpret this AND as BIC. if (g.CanBeImmediate(~value)) { Emit(kArmBic | AddressingModeField::encode(kMode_Operand2_I), g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.TempImmediate(~value)); return; } // Try to interpret this AND as UXTH. if (value == 0xffff) { Emit(kArmUxth, g.DefineAsRegister(m.node()), g.UseRegister(m.left().node()), g.TempImmediate(0)); return; } // Try to interpret this AND as BFC. if (IsSupported(ARMv7)) { width = 32 - width; msb = base::bits::CountLeadingZeros32(~value); uint32_t lsb = base::bits::CountTrailingZeros32(~value); if (msb + width + lsb == 32) { Emit(kArmBfc, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), g.TempImmediate(lsb), g.TempImmediate(width)); return; } } } VisitBinop(this, node, kArmAnd, kArmAnd); } void InstructionSelector::VisitWord32Or(Node* node) { VisitBinop(this, node, kArmOrr, kArmOrr); } void InstructionSelector::VisitWord32Xor(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (m.right().Is(-1)) { InstructionCode opcode = kArmMvn; InstructionOperand value_operand; InstructionOperand shift_operand; if (TryMatchShift(this, &opcode, m.left().node(), &value_operand, &shift_operand)) { Emit(opcode, g.DefineAsRegister(node), value_operand, shift_operand); return; } Emit(opcode | AddressingModeField::encode(kMode_Operand2_R), g.DefineAsRegister(node), g.UseRegister(m.left().node())); return; } VisitBinop(this, node, kArmEor, kArmEor); } namespace { template <typename TryMatchShift> void VisitShift(InstructionSelector* selector, Node* node, TryMatchShift try_match_shift, FlagsContinuation* cont) { ArmOperandGenerator g(selector); InstructionCode opcode = kArmMov; InstructionOperand inputs[4]; size_t input_count = 2; InstructionOperand outputs[2]; size_t output_count = 0; CHECK(try_match_shift(selector, &opcode, node, &inputs[0], &inputs[1])); if (cont->IsBranch()) { inputs[input_count++] = g.Label(cont->true_block()); inputs[input_count++] = g.Label(cont->false_block()); } outputs[output_count++] = g.DefineAsRegister(node); if (cont->IsSet()) { outputs[output_count++] = g.DefineAsRegister(cont->result()); } DCHECK_NE(0u, input_count); DCHECK_NE(0u, output_count); DCHECK_GE(arraysize(inputs), input_count); DCHECK_GE(arraysize(outputs), output_count); DCHECK_NE(kMode_None, AddressingModeField::decode(opcode)); selector->Emit(cont->Encode(opcode), output_count, outputs, input_count, inputs); } template <typename TryMatchShift> void VisitShift(InstructionSelector* selector, Node* node, TryMatchShift try_match_shift) { FlagsContinuation cont; VisitShift(selector, node, try_match_shift, &cont); } } // namespace void InstructionSelector::VisitWord32Shl(Node* node) { VisitShift(this, node, TryMatchLSL); } void InstructionSelector::VisitWord32Shr(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (IsSupported(ARMv7) && m.left().IsWord32And() && m.right().IsInRange(0, 31)) { uint32_t lsb = m.right().Value(); Int32BinopMatcher mleft(m.left().node()); if (mleft.right().HasValue()) { uint32_t value = (mleft.right().Value() >> lsb) << lsb; uint32_t width = base::bits::CountPopulation32(value); uint32_t msb = base::bits::CountLeadingZeros32(value); if (msb + width + lsb == 32) { DCHECK_EQ(lsb, base::bits::CountTrailingZeros32(value)); return EmitUbfx(this, node, mleft.left().node(), lsb, width); } } } VisitShift(this, node, TryMatchLSR); } void InstructionSelector::VisitWord32Sar(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (CanCover(m.node(), m.left().node()) && m.left().IsWord32Shl()) { Int32BinopMatcher mleft(m.left().node()); if (mleft.right().Is(16) && m.right().Is(16)) { Emit(kArmSxth, g.DefineAsRegister(node), g.UseRegister(mleft.left().node()), g.TempImmediate(0)); return; } else if (mleft.right().Is(24) && m.right().Is(24)) { Emit(kArmSxtb, g.DefineAsRegister(node), g.UseRegister(mleft.left().node()), g.TempImmediate(0)); return; } } VisitShift(this, node, TryMatchASR); } void InstructionSelector::VisitWord32Ror(Node* node) { VisitShift(this, node, TryMatchROR); } void InstructionSelector::VisitWord32Clz(Node* node) { VisitRR(this, kArmClz, node); } void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } void InstructionSelector::VisitWord32Popcnt(Node* node) { UNREACHABLE(); } void InstructionSelector::VisitInt32Add(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (CanCover(node, m.left().node())) { switch (m.left().opcode()) { case IrOpcode::kInt32Mul: { Int32BinopMatcher mleft(m.left().node()); Emit(kArmMla, g.DefineAsRegister(node), g.UseRegister(mleft.left().node()), g.UseRegister(mleft.right().node()), g.UseRegister(m.right().node())); return; } case IrOpcode::kInt32MulHigh: { Int32BinopMatcher mleft(m.left().node()); Emit(kArmSmmla, g.DefineAsRegister(node), g.UseRegister(mleft.left().node()), g.UseRegister(mleft.right().node()), g.UseRegister(m.right().node())); return; } case IrOpcode::kWord32And: { Int32BinopMatcher mleft(m.left().node()); if (mleft.right().Is(0xff)) { Emit(kArmUxtab, g.DefineAsRegister(node), g.UseRegister(m.right().node()), g.UseRegister(mleft.left().node()), g.TempImmediate(0)); return; } else if (mleft.right().Is(0xffff)) { Emit(kArmUxtah, g.DefineAsRegister(node), g.UseRegister(m.right().node()), g.UseRegister(mleft.left().node()), g.TempImmediate(0)); return; } } case IrOpcode::kWord32Sar: { Int32BinopMatcher mleft(m.left().node()); if (CanCover(mleft.node(), mleft.left().node()) && mleft.left().IsWord32Shl()) { Int32BinopMatcher mleftleft(mleft.left().node()); if (mleft.right().Is(24) && mleftleft.right().Is(24)) { Emit(kArmSxtab, g.DefineAsRegister(node), g.UseRegister(m.right().node()), g.UseRegister(mleftleft.left().node()), g.TempImmediate(0)); return; } else if (mleft.right().Is(16) && mleftleft.right().Is(16)) { Emit(kArmSxtah, g.DefineAsRegister(node), g.UseRegister(m.right().node()), g.UseRegister(mleftleft.left().node()), g.TempImmediate(0)); return; } } } default: break; } } if (CanCover(node, m.right().node())) { switch (m.right().opcode()) { case IrOpcode::kInt32Mul: { Int32BinopMatcher mright(m.right().node()); Emit(kArmMla, g.DefineAsRegister(node), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node()), g.UseRegister(m.left().node())); return; } case IrOpcode::kInt32MulHigh: { Int32BinopMatcher mright(m.right().node()); Emit(kArmSmmla, g.DefineAsRegister(node), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node()), g.UseRegister(m.left().node())); return; } case IrOpcode::kWord32And: { Int32BinopMatcher mright(m.right().node()); if (mright.right().Is(0xff)) { Emit(kArmUxtab, g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(mright.left().node()), g.TempImmediate(0)); return; } else if (mright.right().Is(0xffff)) { Emit(kArmUxtah, g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(mright.left().node()), g.TempImmediate(0)); return; } } case IrOpcode::kWord32Sar: { Int32BinopMatcher mright(m.right().node()); if (CanCover(mright.node(), mright.left().node()) && mright.left().IsWord32Shl()) { Int32BinopMatcher mrightleft(mright.left().node()); if (mright.right().Is(24) && mrightleft.right().Is(24)) { Emit(kArmSxtab, g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(mrightleft.left().node()), g.TempImmediate(0)); return; } else if (mright.right().Is(16) && mrightleft.right().Is(16)) { Emit(kArmSxtah, g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(mrightleft.left().node()), g.TempImmediate(0)); return; } } } default: break; } } VisitBinop(this, node, kArmAdd, kArmAdd); } void InstructionSelector::VisitInt32Sub(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (IsSupported(MLS) && m.right().IsInt32Mul() && CanCover(node, m.right().node())) { Int32BinopMatcher mright(m.right().node()); Emit(kArmMls, g.DefineAsRegister(node), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node()), g.UseRegister(m.left().node())); return; } VisitBinop(this, node, kArmSub, kArmRsb); } void InstructionSelector::VisitInt32Mul(Node* node) { ArmOperandGenerator g(this); Int32BinopMatcher m(node); if (m.right().HasValue() && m.right().Value() > 0) { int32_t value = m.right().Value(); if (base::bits::IsPowerOfTwo32(value - 1)) { Emit(kArmAdd | AddressingModeField::encode(kMode_Operand2_R_LSL_I), g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(m.left().node()), g.TempImmediate(WhichPowerOf2(value - 1))); return; } if (value < kMaxInt && base::bits::IsPowerOfTwo32(value + 1)) { Emit(kArmRsb | AddressingModeField::encode(kMode_Operand2_R_LSL_I), g.DefineAsRegister(node), g.UseRegister(m.left().node()), g.UseRegister(m.left().node()), g.TempImmediate(WhichPowerOf2(value + 1))); return; } } VisitRRR(this, kArmMul, node); } void InstructionSelector::VisitInt32MulHigh(Node* node) { VisitRRR(this, kArmSmmul, node); } void InstructionSelector::VisitUint32MulHigh(Node* node) { ArmOperandGenerator g(this); InstructionOperand outputs[] = {g.TempRegister(), g.DefineAsRegister(node)}; InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))}; Emit(kArmUmull, arraysize(outputs), outputs, arraysize(inputs), inputs); } void InstructionSelector::VisitInt32Div(Node* node) { VisitDiv(this, node, kArmSdiv, kArmVcvtF64S32, kArmVcvtS32F64); } void InstructionSelector::VisitUint32Div(Node* node) { VisitDiv(this, node, kArmUdiv, kArmVcvtF64U32, kArmVcvtU32F64); } void InstructionSelector::VisitInt32Mod(Node* node) { VisitMod(this, node, kArmSdiv, kArmVcvtF64S32, kArmVcvtS32F64); } void InstructionSelector::VisitUint32Mod(Node* node) { VisitMod(this, node, kArmUdiv, kArmVcvtF64U32, kArmVcvtU32F64); } void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { VisitRR(this, kArmVcvtF64F32, node); } void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { VisitRR(this, kArmVcvtF64S32, node); } void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { VisitRR(this, kArmVcvtF64U32, node); } void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { VisitRR(this, kArmVcvtS32F64, node); } void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { VisitRR(this, kArmVcvtU32F64, node); } void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { VisitRR(this, kArmVcvtF32F64, node); } void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { switch (TruncationModeOf(node->op())) { case TruncationMode::kJavaScript: return VisitRR(this, kArchTruncateDoubleToI, node); case TruncationMode::kRoundToZero: return VisitRR(this, kArmVcvtS32F64, node); } UNREACHABLE(); } void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { VisitRR(this, kArmVmovLowU32F64, node); } void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) { ArmOperandGenerator g(this); Emit(kArmVmovLowF64U32, g.DefineAsRegister(node), ImmediateOperand(ImmediateOperand::INLINE, 0), g.UseRegister(node->InputAt(0))); } void InstructionSelector::VisitFloat32Add(Node* node) { ArmOperandGenerator g(this); Float32BinopMatcher m(node); if (m.left().IsFloat32Mul() && CanCover(node, m.left().node())) { Float32BinopMatcher mleft(m.left().node()); Emit(kArmVmlaF32, g.DefineSameAsFirst(node), g.UseRegister(m.right().node()), g.UseRegister(mleft.left().node()), g.UseRegister(mleft.right().node())); return; } if (m.right().IsFloat32Mul() && CanCover(node, m.right().node())) { Float32BinopMatcher mright(m.right().node()); Emit(kArmVmlaF32, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node())); return; } VisitRRR(this, kArmVaddF32, node); } void InstructionSelector::VisitFloat64Add(Node* node) { ArmOperandGenerator g(this); Float64BinopMatcher m(node); if (m.left().IsFloat64Mul() && CanCover(node, m.left().node())) { Float64BinopMatcher mleft(m.left().node()); Emit(kArmVmlaF64, g.DefineSameAsFirst(node), g.UseRegister(m.right().node()), g.UseRegister(mleft.left().node()), g.UseRegister(mleft.right().node())); return; } if (m.right().IsFloat64Mul() && CanCover(node, m.right().node())) { Float64BinopMatcher mright(m.right().node()); Emit(kArmVmlaF64, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node())); return; } VisitRRR(this, kArmVaddF64, node); } void InstructionSelector::VisitFloat32Sub(Node* node) { ArmOperandGenerator g(this); Float32BinopMatcher m(node); if (m.left().IsMinusZero()) { Emit(kArmVnegF32, g.DefineAsRegister(node), g.UseRegister(m.right().node())); return; } if (m.right().IsFloat32Mul() && CanCover(node, m.right().node())) { Float32BinopMatcher mright(m.right().node()); Emit(kArmVmlsF32, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node())); return; } VisitRRR(this, kArmVsubF32, node); } void InstructionSelector::VisitFloat64Sub(Node* node) { ArmOperandGenerator g(this); Float64BinopMatcher m(node); if (m.left().IsMinusZero()) { if (m.right().IsFloat64RoundDown() && CanCover(m.node(), m.right().node())) { if (m.right().InputAt(0)->opcode() == IrOpcode::kFloat64Sub && CanCover(m.right().node(), m.right().InputAt(0))) { Float64BinopMatcher mright0(m.right().InputAt(0)); if (mright0.left().IsMinusZero()) { Emit(kArmVrintpF64, g.DefineAsRegister(node), g.UseRegister(mright0.right().node())); return; } } } Emit(kArmVnegF64, g.DefineAsRegister(node), g.UseRegister(m.right().node())); return; } if (m.right().IsFloat64Mul() && CanCover(node, m.right().node())) { Float64BinopMatcher mright(m.right().node()); Emit(kArmVmlsF64, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), g.UseRegister(mright.left().node()), g.UseRegister(mright.right().node())); return; } VisitRRR(this, kArmVsubF64, node); } void InstructionSelector::VisitFloat32Mul(Node* node) { VisitRRR(this, kArmVmulF32, node); } void InstructionSelector::VisitFloat64Mul(Node* node) { VisitRRR(this, kArmVmulF64, node); } void InstructionSelector::VisitFloat32Div(Node* node) { VisitRRR(this, kArmVdivF32, node); } void InstructionSelector::VisitFloat64Div(Node* node) { VisitRRR(this, kArmVdivF64, node); } void InstructionSelector::VisitFloat64Mod(Node* node) { ArmOperandGenerator g(this); Emit(kArmVmodF64, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0), g.UseFixed(node->InputAt(1), d1))->MarkAsCall(); } void InstructionSelector::VisitFloat32Max(Node* node) { UNREACHABLE(); } void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); } void InstructionSelector::VisitFloat32Min(Node* node) { UNREACHABLE(); } void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); } void InstructionSelector::VisitFloat32Abs(Node* node) { VisitRR(this, kArmVabsF32, node); } void InstructionSelector::VisitFloat64Abs(Node* node) { VisitRR(this, kArmVabsF64, node); } void InstructionSelector::VisitFloat32Sqrt(Node* node) { VisitRR(this, kArmVsqrtF32, node); } void InstructionSelector::VisitFloat64Sqrt(Node* node) { VisitRR(this, kArmVsqrtF64, node); } void InstructionSelector::VisitFloat64RoundDown(Node* node) { VisitRR(this, kArmVrintmF64, node); } void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { VisitRR(this, kArmVrintzF64, node); } void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { VisitRR(this, kArmVrintaF64, node); } void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, const CallDescriptor* descriptor, Node* node) { ArmOperandGenerator g(this); // Prepare for C function call. if (descriptor->IsCFunctionCall()) { Emit(kArchPrepareCallCFunction | MiscField::encode(static_cast<int>(descriptor->CParameterCount())), 0, nullptr, 0, nullptr); // Poke any stack arguments. for (size_t n = 0; n < arguments->size(); ++n) { if (Node* input = (*arguments)[n]) { int slot = static_cast<int>(n); Emit(kArmPoke | MiscField::encode(slot), g.NoOutput(), g.UseRegister(input)); } } } else { // Push any stack arguments. for (Node* input : base::Reversed(*arguments)) { // Skip any alignment holes in pushed nodes. if (input == nullptr) continue; Emit(kArmPush, g.NoOutput(), g.UseRegister(input)); } } } bool InstructionSelector::IsTailCallAddressImmediate() { return false; } namespace { // Shared routine for multiple compare operations. void VisitCompare(InstructionSelector* selector, InstructionCode opcode, InstructionOperand left, InstructionOperand right, FlagsContinuation* cont) { ArmOperandGenerator g(selector); opcode = cont->Encode(opcode); if (cont->IsBranch()) { selector->Emit(opcode, g.NoOutput(), left, right, g.Label(cont->true_block()), g.Label(cont->false_block())); } else { DCHECK(cont->IsSet()); selector->Emit(opcode, g.DefineAsRegister(cont->result()), left, right); } } // Shared routine for multiple float32 compare operations. void VisitFloat32Compare(InstructionSelector* selector, Node* node, FlagsContinuation* cont) { ArmOperandGenerator g(selector); Float32BinopMatcher m(node); if (m.right().Is(0.0f)) { VisitCompare(selector, kArmVcmpF32, g.UseRegister(m.left().node()), g.UseImmediate(m.right().node()), cont); } else if (m.left().Is(0.0f)) { cont->Commute(); VisitCompare(selector, kArmVcmpF32, g.UseRegister(m.right().node()), g.UseImmediate(m.left().node()), cont); } else { VisitCompare(selector, kArmVcmpF32, g.UseRegister(m.left().node()), g.UseRegister(m.right().node()), cont); } } // Shared routine for multiple float64 compare operations. void VisitFloat64Compare(InstructionSelector* selector, Node* node, FlagsContinuation* cont) { ArmOperandGenerator g(selector); Float64BinopMatcher m(node); if (m.right().Is(0.0)) { VisitCompare(selector, kArmVcmpF64, g.UseRegister(m.left().node()), g.UseImmediate(m.right().node()), cont); } else if (m.left().Is(0.0)) { cont->Commute(); VisitCompare(selector, kArmVcmpF64, g.UseRegister(m.right().node()), g.UseImmediate(m.left().node()), cont); } else { VisitCompare(selector, kArmVcmpF64, g.UseRegister(m.left().node()), g.UseRegister(m.right().node()), cont); } } // Shared routine for multiple word compare operations. void VisitWordCompare(InstructionSelector* selector, Node* node, InstructionCode opcode, FlagsContinuation* cont) { ArmOperandGenerator g(selector); Int32BinopMatcher m(node); InstructionOperand inputs[5]; size_t input_count = 0; InstructionOperand outputs[1]; size_t output_count = 0; if (TryMatchImmediateOrShift(selector, &opcode, m.right().node(), &input_count, &inputs[1])) { inputs[0] = g.UseRegister(m.left().node()); input_count++; } else if (TryMatchImmediateOrShift(selector, &opcode, m.left().node(), &input_count, &inputs[1])) { if (!node->op()->HasProperty(Operator::kCommutative)) cont->Commute(); inputs[0] = g.UseRegister(m.right().node()); input_count++; } else { opcode |= AddressingModeField::encode(kMode_Operand2_R); inputs[input_count++] = g.UseRegister(m.left().node()); inputs[input_count++] = g.UseRegister(m.right().node()); } if (cont->IsBranch()) { inputs[input_count++] = g.Label(cont->true_block()); inputs[input_count++] = g.Label(cont->false_block()); } else { DCHECK(cont->IsSet()); outputs[output_count++] = g.DefineAsRegister(cont->result()); } DCHECK_NE(0u, input_count); DCHECK_GE(arraysize(inputs), input_count); DCHECK_GE(arraysize(outputs), output_count); selector->Emit(cont->Encode(opcode), output_count, outputs, input_count, inputs); } void VisitWordCompare(InstructionSelector* selector, Node* node, FlagsContinuation* cont) { VisitWordCompare(selector, node, kArmCmp, cont); } // Shared routine for word comparisons against zero. void VisitWordCompareZero(InstructionSelector* selector, Node* user, Node* value, FlagsContinuation* cont) { while (selector->CanCover(user, value)) { switch (value->opcode()) { case IrOpcode::kWord32Equal: { // Combine with comparisons against 0 by simply inverting the // continuation. Int32BinopMatcher m(value); if (m.right().Is(0)) { user = value; value = m.left().node(); cont->Negate(); continue; } cont->OverwriteAndNegateIfEqual(kEqual); return VisitWordCompare(selector, value, cont); } case IrOpcode::kInt32LessThan: cont->OverwriteAndNegateIfEqual(kSignedLessThan); return VisitWordCompare(selector, value, cont); case IrOpcode::kInt32LessThanOrEqual: cont->OverwriteAndNegateIfEqual(kSignedLessThanOrEqual); return VisitWordCompare(selector, value, cont); case IrOpcode::kUint32LessThan: cont->OverwriteAndNegateIfEqual(kUnsignedLessThan); return VisitWordCompare(selector, value, cont); case IrOpcode::kUint32LessThanOrEqual: cont->OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); return VisitWordCompare(selector, value, cont); case IrOpcode::kFloat32Equal: cont->OverwriteAndNegateIfEqual(kEqual); return VisitFloat32Compare(selector, value, cont); case IrOpcode::kFloat32LessThan: cont->OverwriteAndNegateIfEqual(kFloatLessThan); return VisitFloat32Compare(selector, value, cont); case IrOpcode::kFloat32LessThanOrEqual: cont->OverwriteAndNegateIfEqual(kFloatLessThanOrEqual); return VisitFloat32Compare(selector, value, cont); case IrOpcode::kFloat64Equal: cont->OverwriteAndNegateIfEqual(kEqual); return VisitFloat64Compare(selector, value, cont); case IrOpcode::kFloat64LessThan: cont->OverwriteAndNegateIfEqual(kFloatLessThan); return VisitFloat64Compare(selector, value, cont); case IrOpcode::kFloat64LessThanOrEqual: cont->OverwriteAndNegateIfEqual(kFloatLessThanOrEqual); return VisitFloat64Compare(selector, value, cont); case IrOpcode::kProjection: // Check if this is the overflow output projection of an // <Operation>WithOverflow node. if (ProjectionIndexOf(value->op()) == 1u) { // We cannot combine the <Operation>WithOverflow with this branch // unless the 0th projection (the use of the actual value of the // <Operation> is either NULL, which means there's no use of the // actual value, or was already defined, which means it is scheduled // *AFTER* this branch). Node* const node = value->InputAt(0); Node* const result = NodeProperties::FindProjection(node, 0); if (!result || selector->IsDefined(result)) { switch (node->opcode()) { case IrOpcode::kInt32AddWithOverflow: cont->OverwriteAndNegateIfEqual(kOverflow); return VisitBinop(selector, node, kArmAdd, kArmAdd, cont); case IrOpcode::kInt32SubWithOverflow: cont->OverwriteAndNegateIfEqual(kOverflow); return VisitBinop(selector, node, kArmSub, kArmRsb, cont); default: break; } } } break; case IrOpcode::kInt32Add: return VisitWordCompare(selector, value, kArmCmn, cont); case IrOpcode::kInt32Sub: return VisitWordCompare(selector, value, kArmCmp, cont); case IrOpcode::kWord32And: return VisitWordCompare(selector, value, kArmTst, cont); case IrOpcode::kWord32Or: return VisitBinop(selector, value, kArmOrr, kArmOrr, cont); case IrOpcode::kWord32Xor: return VisitWordCompare(selector, value, kArmTeq, cont); case IrOpcode::kWord32Sar: return VisitShift(selector, value, TryMatchASR, cont); case IrOpcode::kWord32Shl: return VisitShift(selector, value, TryMatchLSL, cont); case IrOpcode::kWord32Shr: return VisitShift(selector, value, TryMatchLSR, cont); case IrOpcode::kWord32Ror: return VisitShift(selector, value, TryMatchROR, cont); default: break; } break; } // Continuation could not be combined with a compare, emit compare against 0. ArmOperandGenerator g(selector); InstructionCode const opcode = cont->Encode(kArmTst) | AddressingModeField::encode(kMode_Operand2_R); InstructionOperand const value_operand = g.UseRegister(value); if (cont->IsBranch()) { selector->Emit(opcode, g.NoOutput(), value_operand, value_operand, g.Label(cont->true_block()), g.Label(cont->false_block())); } else { selector->Emit(opcode, g.DefineAsRegister(cont->result()), value_operand, value_operand); } } } // namespace void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, BasicBlock* fbranch) { FlagsContinuation cont(kNotEqual, tbranch, fbranch); VisitWordCompareZero(this, branch, branch->InputAt(0), &cont); } void InstructionSelector::VisitSwitch(Node* node, const SwitchInfo& sw) { ArmOperandGenerator g(this); InstructionOperand value_operand = g.UseRegister(node->InputAt(0)); // Emit either ArchTableSwitch or ArchLookupSwitch. size_t table_space_cost = 4 + sw.value_range; size_t table_time_cost = 3; size_t lookup_space_cost = 3 + 2 * sw.case_count; size_t lookup_time_cost = sw.case_count; if (sw.case_count > 0 && table_space_cost + 3 * table_time_cost <= lookup_space_cost + 3 * lookup_time_cost && sw.min_value > std::numeric_limits<int32_t>::min()) { InstructionOperand index_operand = value_operand; if (sw.min_value) { index_operand = g.TempRegister(); Emit(kArmSub | AddressingModeField::encode(kMode_Operand2_I), index_operand, value_operand, g.TempImmediate(sw.min_value)); } // Generate a table lookup. return EmitTableSwitch(sw, index_operand); } // Generate a sequence of conditional jumps. return EmitLookupSwitch(sw, value_operand); } void InstructionSelector::VisitWord32Equal(Node* const node) { FlagsContinuation cont(kEqual, node); Int32BinopMatcher m(node); if (m.right().Is(0)) { return VisitWordCompareZero(this, m.node(), m.left().node(), &cont); } VisitWordCompare(this, node, &cont); } void InstructionSelector::VisitInt32LessThan(Node* node) { FlagsContinuation cont(kSignedLessThan, node); VisitWordCompare(this, node, &cont); } void InstructionSelector::VisitInt32LessThanOrEqual(Node* node) { FlagsContinuation cont(kSignedLessThanOrEqual, node); VisitWordCompare(this, node, &cont); } void InstructionSelector::VisitUint32LessThan(Node* node) { FlagsContinuation cont(kUnsignedLessThan, node); VisitWordCompare(this, node, &cont); } void InstructionSelector::VisitUint32LessThanOrEqual(Node* node) { FlagsContinuation cont(kUnsignedLessThanOrEqual, node); VisitWordCompare(this, node, &cont); } void InstructionSelector::VisitInt32AddWithOverflow(Node* node) { if (Node* ovf = NodeProperties::FindProjection(node, 1)) { FlagsContinuation cont(kOverflow, ovf); return VisitBinop(this, node, kArmAdd, kArmAdd, &cont); } FlagsContinuation cont; VisitBinop(this, node, kArmAdd, kArmAdd, &cont); } void InstructionSelector::VisitInt32SubWithOverflow(Node* node) { if (Node* ovf = NodeProperties::FindProjection(node, 1)) { FlagsContinuation cont(kOverflow, ovf); return VisitBinop(this, node, kArmSub, kArmRsb, &cont); } FlagsContinuation cont; VisitBinop(this, node, kArmSub, kArmRsb, &cont); } void InstructionSelector::VisitFloat32Equal(Node* node) { FlagsContinuation cont(kEqual, node); VisitFloat32Compare(this, node, &cont); } void InstructionSelector::VisitFloat32LessThan(Node* node) { FlagsContinuation cont(kFloatLessThan, node); VisitFloat32Compare(this, node, &cont); } void InstructionSelector::VisitFloat32LessThanOrEqual(Node* node) { FlagsContinuation cont(kFloatLessThanOrEqual, node); VisitFloat32Compare(this, node, &cont); } void InstructionSelector::VisitFloat64Equal(Node* node) { FlagsContinuation cont(kEqual, node); VisitFloat64Compare(this, node, &cont); } void InstructionSelector::VisitFloat64LessThan(Node* node) { FlagsContinuation cont(kFloatLessThan, node); VisitFloat64Compare(this, node, &cont); } void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { FlagsContinuation cont(kFloatLessThanOrEqual, node); VisitFloat64Compare(this, node, &cont); } void InstructionSelector::VisitFloat64ExtractLowWord32(Node* node) { VisitRR(this, kArmVmovLowU32F64, node); } void InstructionSelector::VisitFloat64ExtractHighWord32(Node* node) { VisitRR(this, kArmVmovHighU32F64, node); } void InstructionSelector::VisitFloat64InsertLowWord32(Node* node) { ArmOperandGenerator g(this); Node* left = node->InputAt(0); Node* right = node->InputAt(1); if (left->opcode() == IrOpcode::kFloat64InsertHighWord32 && CanCover(node, left)) { left = left->InputAt(1); Emit(kArmVmovF64U32U32, g.DefineAsRegister(node), g.UseRegister(right), g.UseRegister(left)); return; } Emit(kArmVmovLowF64U32, g.DefineSameAsFirst(node), g.UseRegister(left), g.UseRegister(right)); } void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { ArmOperandGenerator g(this); Node* left = node->InputAt(0); Node* right = node->InputAt(1); if (left->opcode() == IrOpcode::kFloat64InsertLowWord32 && CanCover(node, left)) { left = left->InputAt(1); Emit(kArmVmovF64U32U32, g.DefineAsRegister(node), g.UseRegister(left), g.UseRegister(right)); return; } Emit(kArmVmovHighF64U32, g.DefineSameAsFirst(node), g.UseRegister(left), g.UseRegister(right)); } // static MachineOperatorBuilder::Flags InstructionSelector::SupportedMachineOperatorFlags() { MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kInt32DivIsSafe | MachineOperatorBuilder::kUint32DivIsSafe; if (CpuFeatures::IsSupported(ARMv8)) { flags |= MachineOperatorBuilder::kFloat64RoundDown | MachineOperatorBuilder::kFloat64RoundTruncate | MachineOperatorBuilder::kFloat64RoundTiesAway; } return flags; } } // namespace compiler } // namespace internal } // namespace v8 ```
Archie Galbraith Cameron (22 March 18959 August 1956) was an Australian politician. He was a government minister under Joseph Lyons and Robert Menzies, leader of the Country Party from 1939 to 1940, and finally Speaker of the House of Representatives from 1950 until his death. Cameron was born in Happy Valley, South Australia. After serving in World War I, he took up a farm near Loxton as a soldier settler. He was elected to the South Australian House of Assembly in 1927, and to the House of Representatives at the 1934 federal election. Cameron was Postmaster-General in the Lyons government from 1938 to 1939. He replaced Earle Page as leader of the Country Party in September 1939, and in March 1940 led the party back into coalition with the United Australia Party (UAP), which Page had broken off. Cameron was de facto deputy prime minister under Menzies, as well as Minister for Commerce and Minister for the Navy. However, he was deposed as Country Party leader in October 1940, subsequently defecting to the UAP (and later joining the new Liberal Party). Cameron's last appointment was as Speaker, where he was highly respected. He was known throughout his political career for his eccentric manner and strong personality. Early life Cameron was born in Happy Valley, South Australia, the son of Mary Ann (née McDonald) and John Cameron. His parents were both immigrants from Scotland. He was educated at state schools and worked on his father's farm at Happy Valley until 1916, when he joined the First Australian Imperial Force and fought on the Western Front. He was gassed while in the front, suffering severe damage to his heart and lungs. After World War I Cameron took up farming near Loxton as part of a soldier settlement scheme, and became active in the newly formed Country Party. State politics In 1927, Cameron was elected to the seat of Wooroora in the South Australian House of Assembly, and became leader of the state branch of the Country Party. He helped shepherd the merger of the SA Country Party with the Liberal Federation to form the Liberal and Country League. As part of the deal, in 1934 he was elected to the House of Representatives for Barker, a mostly conservative seat stretching from rural southeastern South Australia to the outer suburbs of Adelaide. Federal politics Cameron did not have long to wait for ministerial preferment; in 1937 he was appointed an assistant minister in the government of Joseph Lyons. In November 1937, Cameron stood for the deputy leadership of the Country Party following the retirement of Thomas Paterson; he did not win enough votes to make the second ballot. He briefly served as acting minister for commerce in 1938, and during that time became the first minister to be "named" by the Speaker. Later that year, he became Postmaster-General. He temporarily suspended radio 2KY's licence because he objected to political views expressed on it (2KY was the property of the ALP's New South Wales branch). Leader of the Country Party Cameron was elected leader of the Country Party on 13 September 1939, following the resignation of Earle Page. He defeated John McEwen by seven votes to five, with two abstentions. According to McEwen, the result was skewed by the absence of four MPs who had refused to sit with the Country Party with Page as leader – a motion to re-admit them was defeated by seven votes to six. McEwen claimed in his memoirs that the dissident MPs were "all strong supporters of mine and, had they been allowed to vote, I would have won the election". They were all re-admitted to the party a few months later. In March 1940, Cameron took the Country Party back into the coalition government under Menzies, becoming the de facto deputy prime minister as well as Minister for Commerce and Minister for the Navy. After the 1940 election, however, the Country Party tired of Cameron's domineering style, and replaced him as leader with Arthur Fadden. Cameron then immediately resigned from the ministry, and from the Country Party: he joined Menzies's party, the United Australia Party. He rejoined the Army and spent the rest of the war on active service in the Directorate of Military Intelligence at Army Headquarters, Melbourne, where he did useful work on the Japanese order of battle. While he was in the service, he faced what would be his only really close electoral contest. At the 1943 election, trade unionist Harry Krantz slashed Cameron's majority from a comfortably safe 15.9 percent to an extremely marginal 1.7 percent. Cameron was left as the only non-Labor MP from South Australia, and the only non-Labor member outside the eastern states (the member for Northern Territory Adair Blain was an independent, but did not have full voting rights). Speaker of the House of Representatives Cameron followed most of the UAP into Menzies's new party, the Liberal Party, and when the Liberals won the 1949 elections Menzies appointed him Speaker of the House: mainly, it was said, to keep him out of the Cabinet. He presided over the House with an autocratic style that caused a number of celebrated rows with members on both sides. Cameron's health never recovered from his World War I gassing, and in August 1955 he contracted influenza. Despite this, he fought that year's election and was handily reelected. He died of a heart attack in August in Royal Prince Alfred Hospital, Sydney. Personal life Cameron married Margaret Eileen Walsh on 15 April 1925. They had a son and a daughter together; his daughter predeceased him. Cameron was raised Presbyterian, but later converted to Catholicism, which was his wife's religion. He was known for choosing to affirm (rather than swear) the oath of office, citing Jesus's admonition to "swear not at all". References 1895 births 1956 deaths Australian monarchists Members of the South Australian House of Assembly Liberal Party of Australia members of the Parliament of Australia National Party of Australia members of the Parliament of Australia United Australia Party members of the Parliament of Australia Members of the Cabinet of Australia Members of the Australian House of Representatives for Barker Members of the Australian House of Representatives Speakers of the Australian House of Representatives Liberal and Country League politicians Australian people of Scottish descent Leaders of the National Party of Australia 20th-century Australian politicians Australian Roman Catholics Converts from Presbyterianism Converts to Roman Catholicism from Presbyterianism
Peñuelas (, ) is a town and municipality in Puerto Rico located in the Peñuelas Valley on the southern coast of the island, south of Adjuntas, east of Guayanilla, west of Ponce and north of the Caribbean Sea. Peñuelas is spread over 12 barrios and Peñuelas Pueblo (the downtown area and the administrative center of the city). It is part of the Yauco Metropolitan Statistical Area. Peñuelas is known as "" (The Güiro Capital) and "" (The Valley of the Royal Poinciana trees). In 2020, Peñuelas had a population of 20,399. History In 1754, a group of workers had settled over the Bay of Tallaboa. Later gradually retreated deeper into the valley, heading tobarrios the most fertile land which would then be part of the town of Peñuelas. For the year 1788, approximately 80 families inhabiting the valley, which focused mainly on agriculture and livestock. Peñuelas Township was founded August 25, 1793 by Diego de Alvarado. By 1874, the town had been developed and had a population of 9,206, according to a census of that year. The town had four main roads, some streets, a brick church and the town hall, which also served as a prison, barracks and a cemetery. On March 1, 1902 the Legislative Assembly of Puerto Rico approved a law to consolidate certain municipal districts, so Peñuelas neighborhoods were attached to the municipality of Ponce. In 1905, the same Assembly repealed the law and Peñuelas became once again a municipality. The first incident of the Puerto Rican Nationalist Party Revolt of 1950 occurred during the early hours of October 29, 1950 in Peñuelas when the insular police of that town surrounded the house of the mother of Melitón Muñiz Santos, the president of the Peñuelas chapter of the Nationalist Party in the barrio Macaná, under the pretext that he was storing weapons for the Nationalist Revolt. Without warning, the police fired upon the Nationalists in the house and a firefight between both factions ensued, which resulted in the death of two Nationalists and the wounding of six police officers. Nationalists Melitón Muñiz Santos, Roberto Jaume Rodríguez, Estanislao Lugo Santiago, Marcelino Turell, William Gutiérrez and Marcelino Berríos were arrested and accused of participating in an ambush against the local insular police.On September 20, 2017 Hurricane Maria struck the island of Puerto Rico. In Peñuelas, an estimated 1,500 homes were completely destroyed and 500 were partially destroyed. With its winds and rainfall, the hurricane triggered numerous landslides in northern Peñuelas. Geography Peñuelas is located on the southern coast, slightly west of the center. Rivers near Peñuelas include: Río Guayanés Río Macaná Río Tallaboa Barrios Like all municipalities of Puerto Rico, Peñuelas is subdivided into barrios. The municipal buildings, central square and large Catholic church are located in a barrio referred to as . Barreal Coto Cuebas Encarnación Jaguas Macaná Peñuelas barrio-pueblo Quebrada Ceiba Rucio Santo Domingo Tallaboa Alta Tallaboa Poniente Tallaboa Saliente Within barrios are communities: For example, the Santo Domingo ('community') in Santo Domingo barrio and the Tallaboa community in the barrio of Encarnación. Sectors Barrios (which are, in contemporary times, roughly comparable to minor civil divisions) and subbarrios, in turn, are further subdivided into smaller local populated place areas/units called (sectors in English). The types of sectores may vary, from normally sector to urbanización to reparto to barriada to residencial, among others. Special Communities (Special Communities of Puerto Rico) are marginalized communities whose citizens are experiencing a certain amount of social exclusion. A map shows these communities occur in nearly every municipality of the commonwealth. Of the 742 places that were on the list in 2014, the following barrios, communities, sectors, or neighborhoods were in Peñuelas: Maldonado neighborhood (Los Chinos), Santo Domingo barrio, Comunidad Caracoles, and Comunidad La Moca in Tallaboa Alta. Demographics Puerto Rico was ceded by Spain in the aftermath of the Spanish–American War under the terms of the Treaty of Paris of 1898 and became a territory of the United States. In 1899, the United States conducted its first census of Puerto Rico finding that the population of Peñuelas was 12,129. Tourism Landmarks and places of interest There are 15 beaches in Peñuelas. The main attractions in Peñuelas are: Charco La Soplaera (a natural water pool) El Convento Cave Don Angel Pacheco Monument Guilarte Forest Unknown Soldier's Monument Parque de Bombas (the old firehouse) is an 0-4-2T Baldwin Steam Locomotive on display in the main town square Peñuelas Museum of Art and History Cancha Carlos Rentas Gallardo (Quebrada Ceiba) Economy Industry Manufacturing, refinery. Government Like all municipalities in Puerto Rico, Peñuelas is administered by a mayor. The current mayor is Gregory Gonsález Souchet, from the Popular Democratic Party (PPD). Gonsález was elected at a special election in 2018 after the incumbent Walter Torres Maldonado stepped down from the mayoral position. The city belongs to the Puerto Rico Senatorial district V, which is represented by two Senators. In 2012, Ramón Ruiz and Martín Vargas Morales, from the Popular Democratic Party, were elected as District Senators. Symbols The has an official flag and coat of arms. Flag It has a rectangular bottom in canary yellow and stands for the sun, symbol of the physical life. In the center it has a purple or violet cross: symbol of Christianity and its ecclesiastical order; it represents the spiritual life. The cross purple extends to all the points of the yellow rectangle. Coat of arms The adornment above the shield, a stone wall, represents the perpetuity. The cross represents Santo Cristo de la Salud that "stopped the sea from flooding Peñuelas". The purple arm represents the priesthood and the town of Peñuelas. The canary yellow represents the sun. The blue and white symbolize the choppy sea and the regal ensign represents the faith in Christianity, "In God We Trust''". Culture Festivals and events Peñuelas celebrates its patron saint festival in late October / early November. The is a religious and cultural celebration that generally features parades, games, artisans, amusement rides, regional food, and live entertainment. Other festivals and events celebrated in Peñuelas include: Endless Fun Festival – April Festival of the Cross – May National Güiro Festival – May Festival of the Flamboyan Tree – Summer Children's Festival – August Folk Festival – October The Cantatas – December Sports Peñuelas AA Amateur Baseball team is called Los Petroleros de Peñuelas (The Peñuelas' Oilers.) The origin of this name dates back to the days when Peñuelas was home to a major petro-chemical complex known as CORCO. Although CORCO closed operations in 1980, the name stuck throughout the years. Also known as Luis "Tite" Arroyo's hometown, a baseball hero. Another hometown hero is Ivelisse Echevarria, who was inducted into the International Federation Softball Hall of Fame in 2003 and is considered by many to be the greatest softball pitcher born in Puerto Rico. Myrian "Betty" Segarra, who was inducted into the International Federation Softball Hall of Fame in 2003 and the best first base in the woman softball in Puerto Rico. Transportation Peñuelas' public bus service ("la guagua") connects passengers to Ponce city (east) and Guayanilla (west). There are 24 bridges in Peñuelas. Education 6 Elementary schools, 4 Intermediate Schools, 1 High School See also List of Puerto Ricans History of Puerto Rico Did you know-Puerto Rico? References External links Puerto Rico Government Directory - Peñuelas Municipalities of Puerto Rico Populated places established in 1793 Yauco metropolitan area
Alright Now is a British rock music television series made by Tyne Tees Television for ITV in 1979–1980. The show, named after the song "All Right Now" by the band Free, showcased both established and up-and-coming acts, with a focus on those from North East England; among these were Dire Straits and The Police, both enjoying their first chart successes. (In contrast, Lindisfarne were given an entire show to themselves.) The show ran for two series (1979 and 1980). In 1982, Tyne Tees produced the similar music programme The Tube for the then-new Channel 4. Overview The show was initially hosted by former Darts singer Den Hegarty, but he was dismissed from the show for "outrageous" behaviour; he later became a host of the ATV children's show Tiswas. The second series featured one guest host per episode; among these were Bob Geldof, Billy Connolly, Bill Oddie, Suzi Quatro, Pauline Black, Mickie Most, and Phil Lynott. Alright Now was probably best known for the occasion when Billy Connolly interviewed Led Zeppelin drummer John Bonham, on which Bonham jokingly responded to all Connolly's questions in monosyllables. Episode guide The first series consisted of eight editions that ran from 6 April to 1 June 1979, plus one special edition featuring the Who on 2 November 1979. The first series featured primarily local bands, or bands with a connection to north-east England. This was followed a year later by the second series, consisting of seven editions (exact broadcast dates to be confirmed), which was less locally focused. The opening theme for both series was "Another Girl, Another Planet" by the Only Ones. Series 1 Show 1 Recorded 06 02 1979 Show ID AN 79-6-1 Broadcast 06 04 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Dire Straits, Police (Prog 1 on ClapperBoard) Dire Straits open the series with Sultans of Swing; Den Hegarty then introduces us to his zany brand of presenting and the 'Kaff Kids - including Chris Cowey, Martina and Martin - then its into a homemade film over Devo's Jocko Homo followed by the Police, live in the studio, with Roxanne into the break. Part two opens with Dire Straits and Down to the Waterline; followed by a Punk feature with an assembled 'Rentamob' being patronised by Den and including an interview with Andy Worrall of Virgin Records (Newcastle). The Police end the show with Can't Stand Losing You. Show 2 Recorded 07 02 1979 Show ID AN 79-6-2 Broadcast 13 04 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Showbiz Kids, Penetration (Prog 2 on ClapperBoard) Free and All Right Now (promo clip) opens the show with Den (wrongly) announcing that they provide the theme to the show. After a short chat with Chris Cowey, The Showbiz Kids perform Maybe. Den then interviews David Oxtoby and Davis Sandison about the book Oxtoby's Rockers, then it's back to The Showbiz Kids for Naked Lady. After the break, Penetration perform Future Daze in the studio and then we see a short Blondie feature with clips from Denis; Detroit 442; Hanging on the Telephone; (I'm Always Touched By Your) Presence Dear and Heart of Glass. Penetration end the show with a live version of Lovers of Outrage. Show 3 Recorded 28 02 1979 Show ID AN 79-9-1 Broadcast 27 04 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Chris Rea, Rod Stewart, Young Bucks Rod Stewart performs Blondes Have More Fun live, followed by a teaser for the special edition on The Who later in the series. This is followed by an in-depth look at Young Bucks, who moved to London from Newcastle in an attempt to raise their profile. This includes excerpts from their performance at the Brecknock pub in London. After the break, we're introduced to Chris Rea, after a short interview he performs Letter From Amsterdam followed by Diamonds (featuring two members of Lindisfarne on backing vocals) which ends the show. Show 4 Recorded 14 03 1979 Show ID AN 79-11-1 Broadcast 4 05 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Ian Dury, Goldie, Punishment of Luxury Den declares this show to be examining 'the look of Rock' and this is followed by clips of David Bowie (performing Hang on To Yourself during the Stage tour); Alice Cooper's promo for Movie Stars and Kate Bush's promo for Man with the Child in His Eyes. Punishment of Luxury perform Puppet Life live. Then we see a clip of Hit Me With Your Rhythm Stick and Ian Dury, Jimmy Turnbull and Mickey Gallagher are interviewed, closing with a clip from the What A Waste promo. After the break, Earth Wind And Fire are shown performing All in All and this leads into a feature on Chris Cowey's DJ spot at the Mayfair in Sunderland. Goldie close the show with I Can't Get Through. Show 5 Recorded 21 02 1979 Show ID AN 79-8-1 Broadcast 11 05 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Thin Lizzy, Junco Partners, Eric Burdon (Prog 3 on ClapperBoard) The promo film for Waiting for an Alibi opens the show and leads into a feature on the Junco Partners and Club A-Go-Go, featuring Eric Burdon; Junco Partners perform Swinging Sixties Guy into the break. Opening part two; Junco Partners perform Back Street Boogie, and then Den interviews Eric Burdon before Eric joins Junco Partners for Bring It On Home to Me and You Got Me Hiding. Den joins in on Sax ending the show. Show 6 Recorded 21 04 1979 Show ID AN 79-12-1 Broadcast 18 05 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Steve Gibbons Band This show opens with a clip of Jimi Hendrix performing Star Spangled Banner, and Den announces that we will be looking at the technology of Rock. Following a short interval of guitarists (including Toto; Rainbow; Santana and Jimmy Page) we move into a feature on Guitars, with an interview with the owner of Rock City Music, Bill White. We then move on to interview session guitarist John Hedley about the use of pedals (wah-wah, fuzz and echo). The feature ends with Bill White showing Den the latest monophonic synth and we are treated to more of Den's zany presenting technique. Part one ends with another clip of Jimi Hendrix, this time performing Voodo Chile (Slight Return). Part two opens with the Steve Gibbons Band in the studio performing Eddie Vortex; Get Up And Dance and ending the show with Any Road Up. Show 7 Recorded 23 03 1979 Show ID AN 79-13-1 Broadcast 25 05 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Lindisfarne Following a comedy intro of Den arriving late, Lindisfarne are joined in the studio performing Juke Box Gypsy; After this it's into a film of Lindisfarne writing Marshall Riley's Army (about the Jarrow hunger march); This is followed by a clip of Lady Eleanor before going back to the studio for a performance of Warm Feeling. After the break, there is a short film featuring the band on a boat on the Tyne singing Fog on the Tyne and the band finishes in the studio with a medley of songs from their current LP Back and Forth, and including Meet Me on the Corner; All Swing Together; Women and Run For Home. Show 8 Recorded 06 03 1979 Show ID AN 79/10/1 Broadcast 01 06 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Clash, Tom Robinson Band The Clash open the show with English Civil War, which is followed by more footage of the Rentamob Punks from the first show being patronised further. The Clash are then subjected to Den's (and other Kaff Kids') interrogation techniques before the Tom Robinson Band take us into the break with All Right All Night; Part two opens with the Tom Robinson Band performing Bully For You (a single co-written by Peter Gabriel) and this is followed by another wacky interview in the Kaff; The Clash close the show with Hate And War and a unique version of the old Desmond Dekkar song Israelites. Show 9 Recorded 12 06 1979 Show ID AN 79-24-1 Broadcast 02 11 1979 Presented by Den Hegarty Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor "Won't Get Fooled Again" - A Profile of The Who This opens with the Who performing Won't Get Fooled Again with an on screen list of their UK hit singles. Roger Daltrey is interviewed by Den in the Marquee Club in London. Pete Townshend outlines his thinking behind setting up Eel Pie and Den is shown around the stage set up for the band. Part one ends with a short clip of See Me, Feel Me from Woodstock, followed by Elton John's performance of Pinball Wizard for the film version of Tommy. Part two starts with a clip from Quadrophenia which segues into an interview with Phil Daniels, Lesley Ash and Sting in a London cafe. The promo for Who Are You leads into an appraisal of Keith Moon, and Kenny Jones is interviewed. A clip of The Who performing Summertime Blues leads into Daltrey and Townshend talking about the future of the band and the show closes with Won't Get Fooled Again. All clips are from The Kids Are Alright, unless otherwise credited. Series 2 Show 1 Recorded 03-06-80 Show ID AN 80-23-1 Broadcast Presented by Bob Geldof Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Taking a leaf from Revolver; the second series opens with the Undertones just finishing a song (unannounced) and before we know it, The Pretenders are playing The Wait from their debut LP. Part one ends with the Undertones performing My Perfect Cousin. Part two opens with a clip of the Boomtown Rats' video for I Don't Like Mondays and this leads to a short feature on how a video of Phil Lewis's band Girl is made by Tony Vandermolen of the Moving Picture Company. Then it's back to Bob at the jukebox, before The Pretenders close the show with Talk of the Town and Tattooed Love Boys. Show 2 Recorded 19 03 1980 Show ID AN 80-12-3 Broadcast 17 07 1980 Presented by Billy Connolly Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Show 2 opens with an unannounced Rory Gallagher number ending and straight away, we're into a feature about the Angelic Upstarts, including a performance of their song Old King Coal at the 29 Club in Sunderland. Billy then patronises the audience about the way they look before Dr Feelgood end this section with Double Blue. Part two sees Dr Feelgood still onstage playing Pretty Face. Then we see a scene from Led Zeppelin's The Song Remains The Same concert film featuring John Bonham and Moby Dick, followed by THAT interview. Rory Gallagher closes the show with Wayward Child and Bad Penny. Show 3 Recorded 01 04 1980 Show ID AN 80-14-1 Broadcast 14 08-80 Presented by Bill Oddie Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor Bill Oddie opens the show with a clip of Blondie (The Hardest Part from Eat to the Beat) followed by Secret Affair in the studio playing Get Ready. Then we have a feature on Mike Oldfield in which we see his version of Free's All Right Now, and featuring Pierre Moerlin (drums and percussion) and Wendy Richardson (vocals). Secret Affair open part two with When The Show Is Over. Then the Blondie promo is shown. Ray Jackson (Lindisfarne) and Friends play Little Town Flirt before Lindisfarne close the show with Friday Girl (which remained unreleased until 1994 and Buried Treasures) Show 4 Recorded 30 04 1980 Show ID AN 80-30-4 Broadcast Presented by Suzi Quatro Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor We open this show with a teaser of the Police and Roxanne from their appearance in the first series and signposting the feature in part two. The Tourists are in the studio and kick things off with Strange Sky. Squeeze play Pulling Mussels From A Shell to end part one. Part two opens with the film of the Police in Miami performing Can't Stand Losing You. Back in the studio, Squeeze perform There at the Top from the Argybargy LP before a feature on Mickie Most and his new band called Eastside. The Tourists close the show with I'm Going To Change My Mind. Show 5 Recorded Show ID AN 80-28-1 Broadcast Presented by Pauline Black and the Selecter Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor The Show opens with The Bodysnatchers concluding and then it's straight into a film about the Specials including a liver performance of Too Much Too Young. Back to the studio and the Bodysnatchers perform What's This before we see the Selecter's Guide To Coventry. In The studio, the Selecter play They Make Me Mad to end the first half. A film of The Beat shot at the Top Rank Birmingham and playing Hands Off She's Mine opens part two. A feature on Reggae follows before the Selecter close the show with Out on the Streets Again, Time Hard and Madness (the song). Show 6 Recorded 23 04 1980 Show ID AN 80-17-1 Broadcast 07 08 80 Presented by Mickie Most Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor The Blues Band open the show with Talk To Me Baby, and then Mickie introduces us to Gary Numan and a film of the song Metal filmed at a power station. Back to the studio for another song, Flatfoot Sam, from the Blues Band. Elvis Costello and the Attractions close this half with I Stand Accused, live in the studio. Part two opens with a clip of The Animals performing House of the Rising Sun (from Rehearsal Room, 1964). Alexis Korner is interviewed before joining the Blues Band for Dead Letter. Elvis Costello and the Attractions close the show with a very live version of Possession in which Elvis fails to engage the audience into a reaction. Show 7 Recorded Show ID AN 80-30-3 Broadcast Presented by Phil Lynott Director: Gavin Taylor Producer: Malcolm Gerrie Exec Producer: Andrea Wonfor We join Wild Horses as they finish an unannounced song, before Phil Lynott introduces Reservation. Wild Horses included Jimmy Bain (ex-Rainbow) and Brian Robertson (ex-Thin Lizzy). A short feature on Jimi Hendrix leads into Rockpile performing You'll Never Get Me Up in One of Those Things closing the first half. Wild Horses open part two with Face Down. Carlene Carter joins Rockpile for Baby Ride Easy before Phil Lynott joins Wild Horses for Are You Ready To Rock, Rosalie and the Cowboy Song. See also Revolver Top of the Pops Old Grey Whistle Test Check it Out - also produced by Tyne Tees References External links BFI profile of Alright Now Account of performance on the show by The Clash 1979 British television series debuts 1980 British television series endings 1970s British music television series 1980s British music television series English-language television shows ITV (TV network) original programming Rock music television series Television series by ITV Studios Television shows produced by Tyne Tees Television
Anne Katherine "Kathy" Grieb (born June 3, 1949) is an American biblical scholar and Episcopal priest. She has taught New Testament at Virginia Theological Seminary since 1994, and is currently Meade Professor in Biblical Interpretation. She previously taught at Bangor Theological Seminary in Maine. She has a B.A. in Philosophy and Religion from Hollins University and a J.D. from Columbus School of Law at the Catholic University of America. She has also earned a M.Div. from Virginia Theological Seminary and has a Ph.D. in Religious Studies from Yale University. Ordained to the diaconate and priesthood in the Episcopal Diocese of Washington in 1983. Bibliography To Set Our Hope on Christ: A Response to the Invitation of Windsor Report Paragraph 135, (The Office of Communication, the Episcopal Church Center, New York, 2005) See also Virginia Theological Seminary List of Virginia Theological Seminary people References External links Personal website Virginia Theological Seminary TS website 1949 births Living people Writers from Alexandria, Virginia People from Easton, Maryland Hollins University alumni Columbus School of Law alumni Yale University alumni 20th-century American theologians American biblical scholars American Episcopal priests Virginia Theological Seminary faculty Women theologians 21st-century American theologians Writers from Maryland 21st-century American women writers American women non-fiction writers 20th-century American women American women academics Female biblical scholars
Abari () is a village in Racha-Lechkhumi and Kvemo Svaneti region, Georgia. It is part of the Likheti commune, Ambrolauri municipality, with the population of 122, mostly (99.2%) ethnic Georgians, as of the 2014 census. Abari is located on the right bank of the Lukhuni river, a right tributary of the Rioni, on the southern foothills of the Lechkhumi Range, 17 km. northeast of the town of Ambrolauri. The population of Abari is dominated by two surnames: Lobzhanidze and Japaridze. According to local tradition, the village was founded by a man surnamed Lobzhanidze from the Ghebi in the northernmost part of Racha in the 18th century. The Japaridze descend from a priest sent to Abari in the 19th century. Since the Soviet period, the families in Abari have used rural-urban migration to access the different resources provided by the village and the city. References Sources Populated places in Ambrolauri Municipality
Ante Budimir (; born 22 July 1991) is a Croatian professional footballer who plays as a forward for La Liga club Osasuna and the Croatia national team. Club career FC St. Pauli In August 2014, Budimir joined German club FC St. Pauli of the 2. Bundesliga on a four-year deal until 2018. St. Pauli had to pay a transfer fee believed to be around €900,000. In an interview on Budimir's signing, former Croatian international Jurica Vranješ described him as "tall, strong in the air, and reliable in combinations" and compared his style to Dimitar Berbatov. Budimir had a tough time at St. Pauli, scoring one goal in 20 appearances in the St. Pauli shirt. Crotone and Sampdoria On 1 September 2015, Budimir was loaned out to Italian club Crotone for the remainder of the season. He made his Crotone debut on 7 September 2015, in a 4–0 loss to Cagliari Calcio, coming on as a 71st-minute substitute for Pietro De Giorgio. In March 2016, Crotone exercised their €1 million buyout option on the player. Budimir ended the season as Crotone's top goalscorer with 16 goals in 40 Serie B appearances, as they were promoted as runners-up to Cagliari; this tally was fourth for goalscorers in the whole league season. In June 2016, ahead of Crotone's debut Serie A season, Sampdoria of the same league activated Budimir's release clause believed to be in the region of €1.8 million, and the player signed a deal ending in mid-2020. A year later, he was sent back to Crotone on a one-year loan with obligation to buy. The obligation was fulfilled by now relegated Crotone at the end of the season, and he remained in the club on a permanent contract. Mallorca On 15 January 2019, Budimir moved on loan to Spanish club Mallorca. He scored his first goal for the Balearic club on 3 February as a Panenka penalty kick in a 2–0 home win over AD Alcorcón, later being sent off. On 27 June, after achieving promotion to La Liga – he scored the opening goal as they overturned a 2–0 first-leg deficit to defeat Deportivo de La Coruña 3–2 on aggregate in the play-off final – he signed a permanent deal for a €2.2 million fee. During the 2019–20 season Budimir scored 13 goals, which also placed him as the 8th best 2019–20 La Liga top scorer. Osasuna On 5 October 2020, Budimir was loaned to top tier side CA Osasuna for the 2020–21 season. On 7 June 2021, Osasuna announced the signing of Budimir on a permanent deal until June 2025. International career On 27 August 2020, during pre-season training, Budimir was called up by the Croatia national team coach Zlatko Dalić for September Nations League clashes against Portugal and France. He made his national team debut on 7 October in a friendly 2–1 victory over Switzerland, providing Mario Pašalić with an assist for the winning goal. He scored his debut goal on 11 November in a friendly 3–3 draw with Turkey. He notably handled the ball with his elbow during the build-up to the goal, which referee Slavko Vinčić failed to notice. Personal life Budimir's family comes from the village of Ozimica in Bosnia and Herzegovina, and he was born in Zenica as it was the nearest town with an adequate hospital. Fleeing the war, the family moved to Croatia when Budimir was 6 months old. Career statistics Club International Scores and results list Croatia's goal tally first, score column indicates score after each Budimir goal. Honours Croatia FIFA World Cup third place: 2022 References External links 1991 births Living people Footballers from Zenica Croatian men's footballers Men's association football forwards Croatia men's international footballers Croatia men's youth international footballers Croatia men's under-21 international footballers UEFA Euro 2020 players 2022 FIFA World Cup players Croatian Football League players LASK players HNK Gorica players NK Inter Zaprešić players NK Lokomotiva Zagreb players 2. Bundesliga players Regionalliga players FC St. Pauli players Serie A players Serie B players FC Crotone players UC Sampdoria players La Liga players Segunda División players RCD Mallorca players CA Osasuna players Croatian expatriate men's footballers Croatian expatriate sportspeople in Austria Expatriate men's footballers in Austria Croatian expatriate sportspeople in Germany Expatriate men's footballers in Germany Croatian expatriate sportspeople in Italy Expatriate men's footballers in Italy Croatian expatriate sportspeople in Spain Expatriate men's footballers in Spain
```css @keyframes fadeIn{from{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn} ```
Karl Fürstner (7 June 1848 - 25 April 1906) was a German neurologist and psychiatrist born in Strasburg, Uckermark. He studied medicine in Würzburg and Berlin, where he received his doctorate in 1871. In 1872 he was an assistant at the pathological institute of the University of Greifswald, and afterwards worked under Karl Westphal (1833-1890) in the psychiatric department at the Berlin-Charité. In 1878 he became the first physician to hold the chair of psychiatry at the University of Heidelberg. He kept this position until 1890, when he became professor of nervous and mental diseases at the University of Strasbourg. At Heidelberg his vacancy was filled by Emil Kraepelin (1856-1926). Among Fürstner's better known assistants was eugenicist Alfred Hoche (1865-1943). Fürstner specialized in the fields of neuropathology and neuroanatomy. His work involved studies of progressive paralysis, the localization of brain tumors, and research of disorders that included postpartum psychosis, gliosis of the cerebral cortex and hemorrhagic pachymeningitis. Among his written works was his graduate thesis, Zur Streitfrage über das Othaematom, of which he discusses "othematoma" (hematoma of the outer ear). This condition was once believed by some doctors to be linked to brain disorders. References Pagel: Biographical Dictionary (translated from German) Biographical Lexicon of Anatomists (translated from German) Textbook of Otology for Physicians and Students by Friedrich Bezold 1848 births 1906 deaths People from Vorpommern-Greifswald Physicians from the Province of Brandenburg German neurologists German psychiatrists Academic staff of the University of Greifswald Academic staff of Heidelberg University Academic staff of the University of Strasbourg University of Würzburg alumni Humboldt University of Berlin alumni Converts to Christianity from Judaism 19th-century German Jews
```c++ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/code-generator.h" #include "src/compilation-info.h" #include "src/compiler/code-generator-impl.h" #include "src/compiler/gap-resolver.h" #include "src/compiler/node-matchers.h" #include "src/compiler/osr.h" #include "src/mips/macro-assembler-mips.h" namespace v8 { namespace internal { namespace compiler { #define __ masm()-> // TODO(plind): Possibly avoid using these lithium names. #define kScratchReg kLithiumScratchReg #define kScratchReg2 kLithiumScratchReg2 #define kScratchDoubleReg kLithiumScratchDouble // TODO(plind): consider renaming these macros. #define TRACE_MSG(msg) \ PrintF("code_gen: \'%s\' in function %s at line %d\n", msg, __FUNCTION__, \ __LINE__) #define TRACE_UNIMPL() \ PrintF("UNIMPLEMENTED code_generator_mips: %s at line %d\n", __FUNCTION__, \ __LINE__) // Adds Mips-specific methods to convert InstructionOperands. class MipsOperandConverter final : public InstructionOperandConverter { public: MipsOperandConverter(CodeGenerator* gen, Instruction* instr) : InstructionOperandConverter(gen, instr) {} FloatRegister OutputSingleRegister(size_t index = 0) { return ToSingleRegister(instr_->OutputAt(index)); } FloatRegister InputSingleRegister(size_t index) { return ToSingleRegister(instr_->InputAt(index)); } FloatRegister ToSingleRegister(InstructionOperand* op) { // Single (Float) and Double register namespace is same on MIPS, // both are typedefs of FPURegister. return ToDoubleRegister(op); } Register InputOrZeroRegister(size_t index) { if (instr_->InputAt(index)->IsImmediate()) { DCHECK((InputInt32(index) == 0)); return zero_reg; } return InputRegister(index); } DoubleRegister InputOrZeroDoubleRegister(size_t index) { if (instr_->InputAt(index)->IsImmediate()) return kDoubleRegZero; return InputDoubleRegister(index); } DoubleRegister InputOrZeroSingleRegister(size_t index) { if (instr_->InputAt(index)->IsImmediate()) return kDoubleRegZero; return InputSingleRegister(index); } Operand InputImmediate(size_t index) { Constant constant = ToConstant(instr_->InputAt(index)); switch (constant.type()) { case Constant::kInt32: return Operand(constant.ToInt32()); case Constant::kInt64: return Operand(constant.ToInt64()); case Constant::kFloat32: return Operand( isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); case Constant::kFloat64: return Operand( isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); case Constant::kExternalReference: case Constant::kHeapObject: // TODO(plind): Maybe we should handle ExtRef & HeapObj here? // maybe not done on arm due to const pool ?? break; case Constant::kRpoNumber: UNREACHABLE(); // TODO(titzer): RPO immediates on mips? break; } UNREACHABLE(); return Operand(zero_reg); } Operand InputOperand(size_t index) { InstructionOperand* op = instr_->InputAt(index); if (op->IsRegister()) { return Operand(ToRegister(op)); } return InputImmediate(index); } MemOperand MemoryOperand(size_t* first_index) { const size_t index = *first_index; switch (AddressingModeField::decode(instr_->opcode())) { case kMode_None: break; case kMode_MRI: *first_index += 2; return MemOperand(InputRegister(index + 0), InputInt32(index + 1)); case kMode_MRR: // TODO(plind): r6 address mode, to be implemented ... UNREACHABLE(); } UNREACHABLE(); return MemOperand(no_reg); } MemOperand MemoryOperand(size_t index = 0) { return MemoryOperand(&index); } MemOperand ToMemOperand(InstructionOperand* op) const { DCHECK_NOT_NULL(op); DCHECK(op->IsStackSlot() || op->IsFPStackSlot()); return SlotToMemOperand(AllocatedOperand::cast(op)->index()); } MemOperand SlotToMemOperand(int slot) const { FrameOffset offset = frame_access_state()->GetFrameOffset(slot); return MemOperand(offset.from_stack_pointer() ? sp : fp, offset.offset()); } }; static inline bool HasRegisterInput(Instruction* instr, size_t index) { return instr->InputAt(index)->IsRegister(); } namespace { class OutOfLineLoadSingle final : public OutOfLineCode { public: OutOfLineLoadSingle(CodeGenerator* gen, FloatRegister result) : OutOfLineCode(gen), result_(result) {} void Generate() final { __ Move(result_, std::numeric_limits<float>::quiet_NaN()); } private: FloatRegister const result_; }; class OutOfLineLoadDouble final : public OutOfLineCode { public: OutOfLineLoadDouble(CodeGenerator* gen, DoubleRegister result) : OutOfLineCode(gen), result_(result) {} void Generate() final { __ Move(result_, std::numeric_limits<double>::quiet_NaN()); } private: DoubleRegister const result_; }; class OutOfLineLoadInteger final : public OutOfLineCode { public: OutOfLineLoadInteger(CodeGenerator* gen, Register result) : OutOfLineCode(gen), result_(result) {} void Generate() final { __ mov(result_, zero_reg); } private: Register const result_; }; class OutOfLineRound : public OutOfLineCode { public: OutOfLineRound(CodeGenerator* gen, DoubleRegister result) : OutOfLineCode(gen), result_(result) {} void Generate() final { // Handle rounding to zero case where sign has to be preserved. // High bits of double input already in kScratchReg. __ dsrl(at, kScratchReg, 31); __ dsll(at, at, 31); __ mthc1(at, result_); } private: DoubleRegister const result_; }; class OutOfLineRound32 : public OutOfLineCode { public: OutOfLineRound32(CodeGenerator* gen, DoubleRegister result) : OutOfLineCode(gen), result_(result) {} void Generate() final { // Handle rounding to zero case where sign has to be preserved. // High bits of float input already in kScratchReg. __ srl(at, kScratchReg, 31); __ sll(at, at, 31); __ mtc1(at, result_); } private: DoubleRegister const result_; }; class OutOfLineRecordWrite final : public OutOfLineCode { public: OutOfLineRecordWrite(CodeGenerator* gen, Register object, Register index, Register value, Register scratch0, Register scratch1, RecordWriteMode mode) : OutOfLineCode(gen), object_(object), index_(index), value_(value), scratch0_(scratch0), scratch1_(scratch1), mode_(mode), must_save_lr_(!gen->frame_access_state()->has_frame()) {} void Generate() final { if (mode_ > RecordWriteMode::kValueIsPointer) { __ JumpIfSmi(value_, exit()); } __ CheckPageFlag(value_, scratch0_, MemoryChunk::kPointersToHereAreInterestingMask, eq, exit()); RememberedSetAction const remembered_set_action = mode_ > RecordWriteMode::kValueIsMap ? EMIT_REMEMBERED_SET : OMIT_REMEMBERED_SET; SaveFPRegsMode const save_fp_mode = frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; if (must_save_lr_) { // We need to save and restore ra if the frame was elided. __ Push(ra); } RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, remembered_set_action, save_fp_mode); __ Daddu(scratch1_, object_, index_); __ CallStub(&stub); if (must_save_lr_) { __ Pop(ra); } } private: Register const object_; Register const index_; Register const value_; Register const scratch0_; Register const scratch1_; RecordWriteMode const mode_; bool must_save_lr_; }; #define CREATE_OOL_CLASS(ool_name, masm_ool_name, T) \ class ool_name final : public OutOfLineCode { \ public: \ ool_name(CodeGenerator* gen, T dst, T src1, T src2) \ : OutOfLineCode(gen), dst_(dst), src1_(src1), src2_(src2) {} \ \ void Generate() final { __ masm_ool_name(dst_, src1_, src2_); } \ \ private: \ T const dst_; \ T const src1_; \ T const src2_; \ } CREATE_OOL_CLASS(OutOfLineFloat32Max, Float32MaxOutOfLine, FPURegister); CREATE_OOL_CLASS(OutOfLineFloat32Min, Float32MinOutOfLine, FPURegister); CREATE_OOL_CLASS(OutOfLineFloat64Max, Float64MaxOutOfLine, FPURegister); CREATE_OOL_CLASS(OutOfLineFloat64Min, Float64MinOutOfLine, FPURegister); #undef CREATE_OOL_CLASS Condition FlagsConditionToConditionCmp(FlagsCondition condition) { switch (condition) { case kEqual: return eq; case kNotEqual: return ne; case kSignedLessThan: return lt; case kSignedGreaterThanOrEqual: return ge; case kSignedLessThanOrEqual: return le; case kSignedGreaterThan: return gt; case kUnsignedLessThan: return lo; case kUnsignedGreaterThanOrEqual: return hs; case kUnsignedLessThanOrEqual: return ls; case kUnsignedGreaterThan: return hi; case kUnorderedEqual: case kUnorderedNotEqual: break; default: break; } UNREACHABLE(); return kNoCondition; } Condition FlagsConditionToConditionTst(FlagsCondition condition) { switch (condition) { case kNotEqual: return ne; case kEqual: return eq; default: break; } UNREACHABLE(); return kNoCondition; } Condition FlagsConditionToConditionOvf(FlagsCondition condition) { switch (condition) { case kOverflow: return ne; case kNotOverflow: return eq; default: break; } UNREACHABLE(); return kNoCondition; } FPUCondition FlagsConditionToConditionCmpFPU(bool& predicate, FlagsCondition condition) { switch (condition) { case kEqual: predicate = true; return EQ; case kNotEqual: predicate = false; return EQ; case kUnsignedLessThan: predicate = true; return OLT; case kUnsignedGreaterThanOrEqual: predicate = false; return ULT; case kUnsignedLessThanOrEqual: predicate = true; return OLE; case kUnsignedGreaterThan: predicate = false; return ULE; case kUnorderedEqual: case kUnorderedNotEqual: predicate = true; break; default: predicate = true; break; } UNREACHABLE(); return kNoFPUCondition; } } // namespace #define ASSEMBLE_CHECKED_LOAD_FLOAT(width, asm_instr) \ do { \ auto result = i.Output##width##Register(); \ auto ool = new (zone()) OutOfLineLoad##width(this, result); \ if (instr->InputAt(0)->IsRegister()) { \ auto offset = i.InputRegister(0); \ __ Branch(USE_DELAY_SLOT, ool->entry(), hs, offset, i.InputOperand(1)); \ __ And(kScratchReg, offset, Operand(0xffffffff)); \ __ Daddu(kScratchReg, i.InputRegister(2), kScratchReg); \ __ asm_instr(result, MemOperand(kScratchReg, 0)); \ } else { \ int offset = static_cast<int>(i.InputOperand(0).immediate()); \ __ Branch(ool->entry(), ls, i.InputRegister(1), Operand(offset)); \ __ asm_instr(result, MemOperand(i.InputRegister(2), offset)); \ } \ __ bind(ool->exit()); \ } while (0) #define ASSEMBLE_CHECKED_LOAD_INTEGER(asm_instr) \ do { \ auto result = i.OutputRegister(); \ auto ool = new (zone()) OutOfLineLoadInteger(this, result); \ if (instr->InputAt(0)->IsRegister()) { \ auto offset = i.InputRegister(0); \ __ Branch(USE_DELAY_SLOT, ool->entry(), hs, offset, i.InputOperand(1)); \ __ And(kScratchReg, offset, Operand(0xffffffff)); \ __ Daddu(kScratchReg, i.InputRegister(2), kScratchReg); \ __ asm_instr(result, MemOperand(kScratchReg, 0)); \ } else { \ int offset = static_cast<int>(i.InputOperand(0).immediate()); \ __ Branch(ool->entry(), ls, i.InputRegister(1), Operand(offset)); \ __ asm_instr(result, MemOperand(i.InputRegister(2), offset)); \ } \ __ bind(ool->exit()); \ } while (0) #define ASSEMBLE_CHECKED_STORE_FLOAT(width, asm_instr) \ do { \ Label done; \ if (instr->InputAt(0)->IsRegister()) { \ auto offset = i.InputRegister(0); \ auto value = i.InputOrZero##width##Register(2); \ if (value.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { \ __ Move(kDoubleRegZero, 0.0); \ } \ __ Branch(USE_DELAY_SLOT, &done, hs, offset, i.InputOperand(1)); \ __ And(kScratchReg, offset, Operand(0xffffffff)); \ __ Daddu(kScratchReg, i.InputRegister(3), kScratchReg); \ __ asm_instr(value, MemOperand(kScratchReg, 0)); \ } else { \ int offset = static_cast<int>(i.InputOperand(0).immediate()); \ auto value = i.InputOrZero##width##Register(2); \ if (value.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { \ __ Move(kDoubleRegZero, 0.0); \ } \ __ Branch(&done, ls, i.InputRegister(1), Operand(offset)); \ __ asm_instr(value, MemOperand(i.InputRegister(3), offset)); \ } \ __ bind(&done); \ } while (0) #define ASSEMBLE_CHECKED_STORE_INTEGER(asm_instr) \ do { \ Label done; \ if (instr->InputAt(0)->IsRegister()) { \ auto offset = i.InputRegister(0); \ auto value = i.InputOrZeroRegister(2); \ __ Branch(USE_DELAY_SLOT, &done, hs, offset, i.InputOperand(1)); \ __ And(kScratchReg, offset, Operand(0xffffffff)); \ __ Daddu(kScratchReg, i.InputRegister(3), kScratchReg); \ __ asm_instr(value, MemOperand(kScratchReg, 0)); \ } else { \ int offset = static_cast<int>(i.InputOperand(0).immediate()); \ auto value = i.InputOrZeroRegister(2); \ __ Branch(&done, ls, i.InputRegister(1), Operand(offset)); \ __ asm_instr(value, MemOperand(i.InputRegister(3), offset)); \ } \ __ bind(&done); \ } while (0) #define ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(mode) \ if (kArchVariant == kMips64r6) { \ __ cfc1(kScratchReg, FCSR); \ __ li(at, Operand(mode_##mode)); \ __ ctc1(at, FCSR); \ __ rint_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \ __ ctc1(kScratchReg, FCSR); \ } else { \ auto ool = new (zone()) OutOfLineRound(this, i.OutputDoubleRegister()); \ Label done; \ __ mfhc1(kScratchReg, i.InputDoubleRegister(0)); \ __ Ext(at, kScratchReg, HeapNumber::kExponentShift, \ HeapNumber::kExponentBits); \ __ Branch(USE_DELAY_SLOT, &done, hs, at, \ Operand(HeapNumber::kExponentBias + HeapNumber::kMantissaBits)); \ __ mov_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \ __ mode##_l_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \ __ dmfc1(at, i.OutputDoubleRegister()); \ __ Branch(USE_DELAY_SLOT, ool->entry(), eq, at, Operand(zero_reg)); \ __ cvt_d_l(i.OutputDoubleRegister(), i.OutputDoubleRegister()); \ __ bind(ool->exit()); \ __ bind(&done); \ } #define ASSEMBLE_ROUND_FLOAT_TO_FLOAT(mode) \ if (kArchVariant == kMips64r6) { \ __ cfc1(kScratchReg, FCSR); \ __ li(at, Operand(mode_##mode)); \ __ ctc1(at, FCSR); \ __ rint_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \ __ ctc1(kScratchReg, FCSR); \ } else { \ int32_t kFloat32ExponentBias = 127; \ int32_t kFloat32MantissaBits = 23; \ int32_t kFloat32ExponentBits = 8; \ auto ool = new (zone()) OutOfLineRound32(this, i.OutputDoubleRegister()); \ Label done; \ __ mfc1(kScratchReg, i.InputDoubleRegister(0)); \ __ Ext(at, kScratchReg, kFloat32MantissaBits, kFloat32ExponentBits); \ __ Branch(USE_DELAY_SLOT, &done, hs, at, \ Operand(kFloat32ExponentBias + kFloat32MantissaBits)); \ __ mov_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \ __ mode##_w_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \ __ mfc1(at, i.OutputDoubleRegister()); \ __ Branch(USE_DELAY_SLOT, ool->entry(), eq, at, Operand(zero_reg)); \ __ cvt_s_w(i.OutputDoubleRegister(), i.OutputDoubleRegister()); \ __ bind(ool->exit()); \ __ bind(&done); \ } #define ASSEMBLE_ATOMIC_LOAD_INTEGER(asm_instr) \ do { \ __ asm_instr(i.OutputRegister(), i.MemoryOperand()); \ __ sync(); \ } while (0) #define ASSEMBLE_ATOMIC_STORE_INTEGER(asm_instr) \ do { \ __ sync(); \ __ asm_instr(i.InputOrZeroRegister(2), i.MemoryOperand()); \ __ sync(); \ } while (0) #define ASSEMBLE_IEEE754_BINOP(name) \ do { \ FrameScope scope(masm(), StackFrame::MANUAL); \ __ PrepareCallCFunction(0, 2, kScratchReg); \ __ MovToFloatParameters(i.InputDoubleRegister(0), \ i.InputDoubleRegister(1)); \ __ CallCFunction(ExternalReference::ieee754_##name##_function(isolate()), \ 0, 2); \ /* Move the result in the double result register. */ \ __ MovFromFloatResult(i.OutputDoubleRegister()); \ } while (0) #define ASSEMBLE_IEEE754_UNOP(name) \ do { \ FrameScope scope(masm(), StackFrame::MANUAL); \ __ PrepareCallCFunction(0, 1, kScratchReg); \ __ MovToFloatParameter(i.InputDoubleRegister(0)); \ __ CallCFunction(ExternalReference::ieee754_##name##_function(isolate()), \ 0, 1); \ /* Move the result in the double result register. */ \ __ MovFromFloatResult(i.OutputDoubleRegister()); \ } while (0) void CodeGenerator::AssembleDeconstructFrame() { __ mov(sp, fp); __ Pop(ra, fp); } void CodeGenerator::AssemblePrepareTailCall() { if (frame_access_state()->has_frame()) { __ ld(ra, MemOperand(fp, StandardFrameConstants::kCallerPCOffset)); __ ld(fp, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); } frame_access_state()->SetFrameAccessToSP(); } void CodeGenerator::AssemblePopArgumentsAdaptorFrame(Register args_reg, Register scratch1, Register scratch2, Register scratch3) { DCHECK(!AreAliased(args_reg, scratch1, scratch2, scratch3)); Label done; // Check if current frame is an arguments adaptor frame. __ ld(scratch3, MemOperand(fp, StandardFrameConstants::kContextOffset)); __ Branch(&done, ne, scratch3, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); // Load arguments count from current arguments adaptor frame (note, it // does not include receiver). Register caller_args_count_reg = scratch1; __ ld(caller_args_count_reg, MemOperand(fp, ArgumentsAdaptorFrameConstants::kLengthOffset)); __ SmiUntag(caller_args_count_reg); ParameterCount callee_args_count(args_reg); __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, scratch3); __ bind(&done); } namespace { void AdjustStackPointerForTailCall(MacroAssembler* masm, FrameAccessState* state, int new_slot_above_sp, bool allow_shrinkage = true) { int current_sp_offset = state->GetSPToFPSlotCount() + StandardFrameConstants::kFixedSlotCountAboveFp; int stack_slot_delta = new_slot_above_sp - current_sp_offset; if (stack_slot_delta > 0) { masm->Dsubu(sp, sp, stack_slot_delta * kPointerSize); state->IncreaseSPDelta(stack_slot_delta); } else if (allow_shrinkage && stack_slot_delta < 0) { masm->Daddu(sp, sp, -stack_slot_delta * kPointerSize); state->IncreaseSPDelta(stack_slot_delta); } } } // namespace void CodeGenerator::AssembleTailCallBeforeGap(Instruction* instr, int first_unused_stack_slot) { AdjustStackPointerForTailCall(masm(), frame_access_state(), first_unused_stack_slot, false); } void CodeGenerator::AssembleTailCallAfterGap(Instruction* instr, int first_unused_stack_slot) { AdjustStackPointerForTailCall(masm(), frame_access_state(), first_unused_stack_slot); } // Assembles an instruction after register allocation, producing machine code. CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( Instruction* instr) { MipsOperandConverter i(this, instr); InstructionCode opcode = instr->opcode(); ArchOpcode arch_opcode = ArchOpcodeField::decode(opcode); switch (arch_opcode) { case kArchCallCodeObject: { EnsureSpaceForLazyDeopt(); if (instr->InputAt(0)->IsImmediate()) { __ Call(Handle<Code>::cast(i.InputHeapObject(0)), RelocInfo::CODE_TARGET); } else { __ daddiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); __ Call(at); } RecordCallPosition(instr); frame_access_state()->ClearSPDelta(); break; } case kArchTailCallCodeObjectFromJSFunction: case kArchTailCallCodeObject: { if (arch_opcode == kArchTailCallCodeObjectFromJSFunction) { AssemblePopArgumentsAdaptorFrame(kJavaScriptCallArgCountRegister, i.TempRegister(0), i.TempRegister(1), i.TempRegister(2)); } if (instr->InputAt(0)->IsImmediate()) { __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), RelocInfo::CODE_TARGET); } else { __ daddiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); __ Jump(at); } frame_access_state()->ClearSPDelta(); frame_access_state()->SetFrameAccessToDefault(); break; } case kArchTailCallAddress: { CHECK(!instr->InputAt(0)->IsImmediate()); __ Jump(i.InputRegister(0)); frame_access_state()->ClearSPDelta(); frame_access_state()->SetFrameAccessToDefault(); break; } case kArchCallJSFunction: { EnsureSpaceForLazyDeopt(); Register func = i.InputRegister(0); if (FLAG_debug_code) { // Check the function's context matches the context argument. __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); } __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); __ Call(at); RecordCallPosition(instr); frame_access_state()->ClearSPDelta(); break; } case kArchTailCallJSFunctionFromJSFunction: { Register func = i.InputRegister(0); if (FLAG_debug_code) { // Check the function's context matches the context argument. __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); } AssemblePopArgumentsAdaptorFrame(kJavaScriptCallArgCountRegister, i.TempRegister(0), i.TempRegister(1), i.TempRegister(2)); __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); __ Jump(at); frame_access_state()->ClearSPDelta(); frame_access_state()->SetFrameAccessToDefault(); break; } case kArchPrepareCallCFunction: { int const num_parameters = MiscField::decode(instr->opcode()); __ PrepareCallCFunction(num_parameters, kScratchReg); // Frame alignment requires using FP-relative frame addressing. frame_access_state()->SetFrameAccessToFP(); break; } case kArchPrepareTailCall: AssemblePrepareTailCall(); break; case kArchCallCFunction: { int const num_parameters = MiscField::decode(instr->opcode()); if (instr->InputAt(0)->IsImmediate()) { ExternalReference ref = i.InputExternalReference(0); __ CallCFunction(ref, num_parameters); } else { Register func = i.InputRegister(0); __ CallCFunction(func, num_parameters); } frame_access_state()->SetFrameAccessToDefault(); frame_access_state()->ClearSPDelta(); break; } case kArchJmp: AssembleArchJump(i.InputRpo(0)); break; case kArchLookupSwitch: AssembleArchLookupSwitch(instr); break; case kArchTableSwitch: AssembleArchTableSwitch(instr); break; case kArchDebugBreak: __ stop("kArchDebugBreak"); break; case kArchComment: { Address comment_string = i.InputExternalReference(0).address(); __ RecordComment(reinterpret_cast<const char*>(comment_string)); break; } case kArchNop: case kArchThrowTerminator: // don't emit code for nops. break; case kArchDeoptimize: { int deopt_state_id = BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); Deoptimizer::BailoutType bailout_type = Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); CodeGenResult result = AssembleDeoptimizerCall( deopt_state_id, bailout_type, current_source_position_); if (result != kSuccess) return result; break; } case kArchRet: AssembleReturn(instr->InputAt(0)); break; case kArchStackPointer: __ mov(i.OutputRegister(), sp); break; case kArchFramePointer: __ mov(i.OutputRegister(), fp); break; case kArchParentFramePointer: if (frame_access_state()->has_frame()) { __ ld(i.OutputRegister(), MemOperand(fp, 0)); } else { __ mov(i.OutputRegister(), fp); } break; case kArchTruncateDoubleToI: __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); break; case kArchStoreWithWriteBarrier: { RecordWriteMode mode = static_cast<RecordWriteMode>(MiscField::decode(instr->opcode())); Register object = i.InputRegister(0); Register index = i.InputRegister(1); Register value = i.InputRegister(2); Register scratch0 = i.TempRegister(0); Register scratch1 = i.TempRegister(1); auto ool = new (zone()) OutOfLineRecordWrite(this, object, index, value, scratch0, scratch1, mode); __ Daddu(at, object, index); __ sd(value, MemOperand(at)); __ CheckPageFlag(object, scratch0, MemoryChunk::kPointersFromHereAreInterestingMask, ne, ool->entry()); __ bind(ool->exit()); break; } case kArchStackSlot: { FrameOffset offset = frame_access_state()->GetFrameOffset(i.InputInt32(0)); __ Daddu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp, Operand(offset.offset())); break; } case kIeee754Float64Acos: ASSEMBLE_IEEE754_UNOP(acos); break; case kIeee754Float64Acosh: ASSEMBLE_IEEE754_UNOP(acosh); break; case kIeee754Float64Asin: ASSEMBLE_IEEE754_UNOP(asin); break; case kIeee754Float64Asinh: ASSEMBLE_IEEE754_UNOP(asinh); break; case kIeee754Float64Atan: ASSEMBLE_IEEE754_UNOP(atan); break; case kIeee754Float64Atanh: ASSEMBLE_IEEE754_UNOP(atanh); break; case kIeee754Float64Atan2: ASSEMBLE_IEEE754_BINOP(atan2); break; case kIeee754Float64Cos: ASSEMBLE_IEEE754_UNOP(cos); break; case kIeee754Float64Cosh: ASSEMBLE_IEEE754_UNOP(cosh); break; case kIeee754Float64Cbrt: ASSEMBLE_IEEE754_UNOP(cbrt); break; case kIeee754Float64Exp: ASSEMBLE_IEEE754_UNOP(exp); break; case kIeee754Float64Expm1: ASSEMBLE_IEEE754_UNOP(expm1); break; case kIeee754Float64Log: ASSEMBLE_IEEE754_UNOP(log); break; case kIeee754Float64Log1p: ASSEMBLE_IEEE754_UNOP(log1p); break; case kIeee754Float64Log2: ASSEMBLE_IEEE754_UNOP(log2); break; case kIeee754Float64Log10: ASSEMBLE_IEEE754_UNOP(log10); break; case kIeee754Float64Pow: { MathPowStub stub(isolate(), MathPowStub::DOUBLE); __ CallStub(&stub); break; } case kIeee754Float64Sin: ASSEMBLE_IEEE754_UNOP(sin); break; case kIeee754Float64Sinh: ASSEMBLE_IEEE754_UNOP(sinh); break; case kIeee754Float64Tan: ASSEMBLE_IEEE754_UNOP(tan); break; case kIeee754Float64Tanh: ASSEMBLE_IEEE754_UNOP(tanh); break; case kMips64Add: __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Dadd: __ Daddu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64DaddOvf: // Pseudo-instruction used for overflow/branch. No opcode emitted here. break; case kMips64Sub: __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Dsub: __ Dsubu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64DsubOvf: // Pseudo-instruction used for overflow/branch. No opcode emitted here. break; case kMips64Mul: __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64MulOvf: // Pseudo-instruction used for overflow/branch. No opcode emitted here. break; case kMips64MulHigh: __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64MulHighU: __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64DMulHigh: __ Dmulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Div: __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); if (kArchVariant == kMips64r6) { __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); } break; case kMips64DivU: __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); if (kArchVariant == kMips64r6) { __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); } break; case kMips64Mod: __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64ModU: __ Modu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Dmul: __ Dmul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Ddiv: __ Ddiv(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); if (kArchVariant == kMips64r6) { __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); } break; case kMips64DdivU: __ Ddivu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); if (kArchVariant == kMips64r6) { __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { __ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); } break; case kMips64Dmod: __ Dmod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64DmodU: __ Dmodu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Dlsa: DCHECK(instr->InputAt(2)->IsImmediate()); __ Dlsa(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), i.InputInt8(2)); break; case kMips64Lsa: DCHECK(instr->InputAt(2)->IsImmediate()); __ Lsa(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), i.InputInt8(2)); break; case kMips64And: __ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64And32: if (instr->InputAt(1)->IsRegister()) { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ sll(i.InputRegister(1), i.InputRegister(1), 0x0); __ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } else { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } break; case kMips64Or: __ Or(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Or32: if (instr->InputAt(1)->IsRegister()) { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ sll(i.InputRegister(1), i.InputRegister(1), 0x0); __ Or(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } else { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ Or(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } break; case kMips64Nor: if (instr->InputAt(1)->IsRegister()) { __ Nor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } else { DCHECK(i.InputOperand(1).immediate() == 0); __ Nor(i.OutputRegister(), i.InputRegister(0), zero_reg); } break; case kMips64Nor32: if (instr->InputAt(1)->IsRegister()) { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ sll(i.InputRegister(1), i.InputRegister(1), 0x0); __ Nor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } else { DCHECK(i.InputOperand(1).immediate() == 0); __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ Nor(i.OutputRegister(), i.InputRegister(0), zero_reg); } break; case kMips64Xor: __ Xor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Xor32: if (instr->InputAt(1)->IsRegister()) { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ sll(i.InputRegister(1), i.InputRegister(1), 0x0); __ Xor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } else { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ Xor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); } break; case kMips64Clz: __ Clz(i.OutputRegister(), i.InputRegister(0)); break; case kMips64Dclz: __ dclz(i.OutputRegister(), i.InputRegister(0)); break; case kMips64Ctz: { Register reg1 = kScratchReg; Register reg2 = kScratchReg2; Label skip_for_zero; Label end; // Branch if the operand is zero __ Branch(&skip_for_zero, eq, i.InputRegister(0), Operand(zero_reg)); // Find the number of bits before the last bit set to 1. __ Subu(reg2, zero_reg, i.InputRegister(0)); __ And(reg2, reg2, i.InputRegister(0)); __ clz(reg2, reg2); // Get the number of bits after the last bit set to 1. __ li(reg1, 0x1F); __ Subu(i.OutputRegister(), reg1, reg2); __ Branch(&end); __ bind(&skip_for_zero); // If the operand is zero, return word length as the result. __ li(i.OutputRegister(), 0x20); __ bind(&end); } break; case kMips64Dctz: { Register reg1 = kScratchReg; Register reg2 = kScratchReg2; Label skip_for_zero; Label end; // Branch if the operand is zero __ Branch(&skip_for_zero, eq, i.InputRegister(0), Operand(zero_reg)); // Find the number of bits before the last bit set to 1. __ Dsubu(reg2, zero_reg, i.InputRegister(0)); __ And(reg2, reg2, i.InputRegister(0)); __ dclz(reg2, reg2); // Get the number of bits after the last bit set to 1. __ li(reg1, 0x3F); __ Subu(i.OutputRegister(), reg1, reg2); __ Branch(&end); __ bind(&skip_for_zero); // If the operand is zero, return word length as the result. __ li(i.OutputRegister(), 0x40); __ bind(&end); } break; case kMips64Popcnt: { Register reg1 = kScratchReg; Register reg2 = kScratchReg2; uint32_t m1 = 0x55555555; uint32_t m2 = 0x33333333; uint32_t m4 = 0x0f0f0f0f; uint32_t m8 = 0x00ff00ff; uint32_t m16 = 0x0000ffff; // Put count of ones in every 2 bits into those 2 bits. __ li(at, m1); __ dsrl(reg1, i.InputRegister(0), 1); __ And(reg2, i.InputRegister(0), at); __ And(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 4 bits into those 4 bits. __ li(at, m2); __ dsrl(reg2, reg1, 2); __ And(reg2, reg2, at); __ And(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 8 bits into those 8 bits. __ li(at, m4); __ dsrl(reg2, reg1, 4); __ And(reg2, reg2, at); __ And(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 16 bits into those 16 bits. __ li(at, m8); __ dsrl(reg2, reg1, 8); __ And(reg2, reg2, at); __ And(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Calculate total number of ones. __ li(at, m16); __ dsrl(reg2, reg1, 16); __ And(reg2, reg2, at); __ And(reg1, reg1, at); __ Daddu(i.OutputRegister(), reg1, reg2); } break; case kMips64Dpopcnt: { Register reg1 = kScratchReg; Register reg2 = kScratchReg2; uint64_t m1 = 0x5555555555555555; uint64_t m2 = 0x3333333333333333; uint64_t m4 = 0x0f0f0f0f0f0f0f0f; uint64_t m8 = 0x00ff00ff00ff00ff; uint64_t m16 = 0x0000ffff0000ffff; uint64_t m32 = 0x00000000ffffffff; // Put count of ones in every 2 bits into those 2 bits. __ li(at, m1); __ dsrl(reg1, i.InputRegister(0), 1); __ and_(reg2, i.InputRegister(0), at); __ and_(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 4 bits into those 4 bits. __ li(at, m2); __ dsrl(reg2, reg1, 2); __ and_(reg2, reg2, at); __ and_(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 8 bits into those 8 bits. __ li(at, m4); __ dsrl(reg2, reg1, 4); __ and_(reg2, reg2, at); __ and_(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 16 bits into those 16 bits. __ li(at, m8); __ dsrl(reg2, reg1, 8); __ and_(reg2, reg2, at); __ and_(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Put count of ones in every 32 bits into those 32 bits. __ li(at, m16); __ dsrl(reg2, reg1, 16); __ and_(reg2, reg2, at); __ and_(reg1, reg1, at); __ Daddu(reg1, reg1, reg2); // Calculate total number of ones. __ li(at, m32); __ dsrl32(reg2, reg1, 0); __ and_(reg2, reg2, at); __ and_(reg1, reg1, at); __ Daddu(i.OutputRegister(), reg1, reg2); } break; case kMips64Shl: if (instr->InputAt(1)->IsRegister()) { __ sllv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { int64_t imm = i.InputOperand(1).immediate(); __ sll(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm)); } break; case kMips64Shr: if (instr->InputAt(1)->IsRegister()) { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ srlv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { int64_t imm = i.InputOperand(1).immediate(); __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ srl(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm)); } break; case kMips64Sar: if (instr->InputAt(1)->IsRegister()) { __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ srav(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { int64_t imm = i.InputOperand(1).immediate(); __ sll(i.InputRegister(0), i.InputRegister(0), 0x0); __ sra(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm)); } break; case kMips64Ext: __ Ext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), i.InputInt8(2)); break; case kMips64Ins: if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { __ Ins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); } else { __ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), i.InputInt8(2)); } break; case kMips64Dext: { int16_t pos = i.InputInt8(1); int16_t size = i.InputInt8(2); if (size > 0 && size <= 32 && pos >= 0 && pos < 32) { __ Dext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), i.InputInt8(2)); } else if (size > 32 && size <= 64 && pos > 0 && pos < 32) { __ Dextm(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), i.InputInt8(2)); } else { DCHECK(size > 0 && size <= 32 && pos >= 32 && pos < 64); __ Dextu(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), i.InputInt8(2)); } break; } case kMips64Dins: if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { __ Dins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); } else { __ Dins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), i.InputInt8(2)); } break; case kMips64Dshl: if (instr->InputAt(1)->IsRegister()) { __ dsllv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { int64_t imm = i.InputOperand(1).immediate(); if (imm < 32) { __ dsll(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm)); } else { __ dsll32(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm - 32)); } } break; case kMips64Dshr: if (instr->InputAt(1)->IsRegister()) { __ dsrlv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { int64_t imm = i.InputOperand(1).immediate(); if (imm < 32) { __ dsrl(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm)); } else { __ dsrl32(i.OutputRegister(), i.InputRegister(0), static_cast<uint16_t>(imm - 32)); } } break; case kMips64Dsar: if (instr->InputAt(1)->IsRegister()) { __ dsrav(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); } else { int64_t imm = i.InputOperand(1).immediate(); if (imm < 32) { __ dsra(i.OutputRegister(), i.InputRegister(0), imm); } else { __ dsra32(i.OutputRegister(), i.InputRegister(0), imm - 32); } } break; case kMips64Ror: __ Ror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Dror: __ Dror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); break; case kMips64Tst: // Pseudo-instruction used for cmp/branch. No opcode emitted here. break; case kMips64Cmp: // Pseudo-instruction used for cmp/branch. No opcode emitted here. break; case kMips64Mov: // TODO(plind): Should we combine mov/li like this, or use separate instr? // - Also see x64 ASSEMBLE_BINOP & RegisterOrOperandType if (HasRegisterInput(instr, 0)) { __ mov(i.OutputRegister(), i.InputRegister(0)); } else { __ li(i.OutputRegister(), i.InputOperand(0)); } break; case kMips64CmpS: // Psuedo-instruction used for FP cmp/branch. No opcode emitted here. break; case kMips64AddS: // TODO(plind): add special case: combine mult & add. __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64SubS: __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64MulS: // TODO(plind): add special case: right op is -1.0, see arm port. __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64DivS: __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64ModS: { // TODO(bmeurer): We should really get rid of this special instruction, // and generate a CallAddress instruction instead. FrameScope scope(masm(), StackFrame::MANUAL); __ PrepareCallCFunction(0, 2, kScratchReg); __ MovToFloatParameters(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); // TODO(balazs.kilvady): implement mod_two_floats_operation(isolate()) __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), 0, 2); // Move the result in the double result register. __ MovFromFloatResult(i.OutputSingleRegister()); break; } case kMips64AbsS: __ abs_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); break; case kMips64NegS: __ Neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); break; case kMips64SqrtS: { __ sqrt_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); break; } case kMips64MaxS: __ max_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64MinS: __ min_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64CmpD: // Psuedo-instruction used for FP cmp/branch. No opcode emitted here. break; case kMips64AddD: // TODO(plind): add special case: combine mult & add. __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64SubD: __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64MaddS: __ madd_s(i.OutputFloatRegister(), i.InputFloatRegister(0), i.InputFloatRegister(1), i.InputFloatRegister(2)); break; case kMips64MaddD: __ madd_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1), i.InputDoubleRegister(2)); break; case kMips64MaddfS: __ maddf_s(i.OutputFloatRegister(), i.InputFloatRegister(1), i.InputFloatRegister(2)); break; case kMips64MaddfD: __ maddf_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1), i.InputDoubleRegister(2)); break; case kMips64MsubS: __ msub_s(i.OutputFloatRegister(), i.InputFloatRegister(0), i.InputFloatRegister(1), i.InputFloatRegister(2)); break; case kMips64MsubD: __ msub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1), i.InputDoubleRegister(2)); break; case kMips64MsubfS: __ msubf_s(i.OutputFloatRegister(), i.InputFloatRegister(1), i.InputFloatRegister(2)); break; case kMips64MsubfD: __ msubf_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1), i.InputDoubleRegister(2)); break; case kMips64MulD: // TODO(plind): add special case: right op is -1.0, see arm port. __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64DivD: __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64ModD: { // TODO(bmeurer): We should really get rid of this special instruction, // and generate a CallAddress instruction instead. FrameScope scope(masm(), StackFrame::MANUAL); __ PrepareCallCFunction(0, 2, kScratchReg); __ MovToFloatParameters(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), 0, 2); // Move the result in the double result register. __ MovFromFloatResult(i.OutputDoubleRegister()); break; } case kMips64AbsD: __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); break; case kMips64NegD: __ Neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); break; case kMips64SqrtD: { __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); break; } case kMips64MaxD: __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64MinD: __ min_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), i.InputDoubleRegister(1)); break; case kMips64Float64RoundDown: { ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(floor); break; } case kMips64Float32RoundDown: { ASSEMBLE_ROUND_FLOAT_TO_FLOAT(floor); break; } case kMips64Float64RoundTruncate: { ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(trunc); break; } case kMips64Float32RoundTruncate: { ASSEMBLE_ROUND_FLOAT_TO_FLOAT(trunc); break; } case kMips64Float64RoundUp: { ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(ceil); break; } case kMips64Float32RoundUp: { ASSEMBLE_ROUND_FLOAT_TO_FLOAT(ceil); break; } case kMips64Float64RoundTiesEven: { ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(round); break; } case kMips64Float32RoundTiesEven: { ASSEMBLE_ROUND_FLOAT_TO_FLOAT(round); break; } case kMips64Float32Max: { FPURegister dst = i.OutputSingleRegister(); FPURegister src1 = i.InputSingleRegister(0); FPURegister src2 = i.InputSingleRegister(1); auto ool = new (zone()) OutOfLineFloat32Max(this, dst, src1, src2); __ Float32Max(dst, src1, src2, ool->entry()); __ bind(ool->exit()); break; } case kMips64Float64Max: { FPURegister dst = i.OutputDoubleRegister(); FPURegister src1 = i.InputDoubleRegister(0); FPURegister src2 = i.InputDoubleRegister(1); auto ool = new (zone()) OutOfLineFloat64Max(this, dst, src1, src2); __ Float64Max(dst, src1, src2, ool->entry()); __ bind(ool->exit()); break; } case kMips64Float32Min: { FPURegister dst = i.OutputSingleRegister(); FPURegister src1 = i.InputSingleRegister(0); FPURegister src2 = i.InputSingleRegister(1); auto ool = new (zone()) OutOfLineFloat32Min(this, dst, src1, src2); __ Float32Min(dst, src1, src2, ool->entry()); __ bind(ool->exit()); break; } case kMips64Float64Min: { FPURegister dst = i.OutputDoubleRegister(); FPURegister src1 = i.InputDoubleRegister(0); FPURegister src2 = i.InputDoubleRegister(1); auto ool = new (zone()) OutOfLineFloat64Min(this, dst, src1, src2); __ Float64Min(dst, src1, src2, ool->entry()); __ bind(ool->exit()); break; } case kMips64Float64SilenceNaN: __ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); break; case kMips64CvtSD: __ cvt_s_d(i.OutputSingleRegister(), i.InputDoubleRegister(0)); break; case kMips64CvtDS: __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); break; case kMips64CvtDW: { FPURegister scratch = kScratchDoubleReg; __ mtc1(i.InputRegister(0), scratch); __ cvt_d_w(i.OutputDoubleRegister(), scratch); break; } case kMips64CvtSW: { FPURegister scratch = kScratchDoubleReg; __ mtc1(i.InputRegister(0), scratch); __ cvt_s_w(i.OutputDoubleRegister(), scratch); break; } case kMips64CvtSUw: { __ Cvt_s_uw(i.OutputDoubleRegister(), i.InputRegister(0)); break; } case kMips64CvtSL: { FPURegister scratch = kScratchDoubleReg; __ dmtc1(i.InputRegister(0), scratch); __ cvt_s_l(i.OutputDoubleRegister(), scratch); break; } case kMips64CvtDL: { FPURegister scratch = kScratchDoubleReg; __ dmtc1(i.InputRegister(0), scratch); __ cvt_d_l(i.OutputDoubleRegister(), scratch); break; } case kMips64CvtDUw: { __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0)); break; } case kMips64CvtDUl: { __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); break; } case kMips64CvtSUl: { __ Cvt_s_ul(i.OutputDoubleRegister(), i.InputRegister(0)); break; } case kMips64FloorWD: { FPURegister scratch = kScratchDoubleReg; __ floor_w_d(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64CeilWD: { FPURegister scratch = kScratchDoubleReg; __ ceil_w_d(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64RoundWD: { FPURegister scratch = kScratchDoubleReg; __ round_w_d(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64TruncWD: { FPURegister scratch = kScratchDoubleReg; // Other arches use round to zero here, so we follow. __ trunc_w_d(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64FloorWS: { FPURegister scratch = kScratchDoubleReg; __ floor_w_s(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64CeilWS: { FPURegister scratch = kScratchDoubleReg; __ ceil_w_s(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64RoundWS: { FPURegister scratch = kScratchDoubleReg; __ round_w_s(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); break; } case kMips64TruncWS: { FPURegister scratch = kScratchDoubleReg; __ trunc_w_s(scratch, i.InputDoubleRegister(0)); __ mfc1(i.OutputRegister(), scratch); // Avoid INT32_MAX as an overflow indicator and use INT32_MIN instead, // because INT32_MIN allows easier out-of-bounds detection. __ addiu(kScratchReg, i.OutputRegister(), 1); __ slt(kScratchReg2, kScratchReg, i.OutputRegister()); __ Movn(i.OutputRegister(), kScratchReg, kScratchReg2); break; } case kMips64TruncLS: { FPURegister scratch = kScratchDoubleReg; Register tmp_fcsr = kScratchReg; Register result = kScratchReg2; bool load_status = instr->OutputCount() > 1; if (load_status) { // Save FCSR. __ cfc1(tmp_fcsr, FCSR); // Clear FPU flags. __ ctc1(zero_reg, FCSR); } // Other arches use round to zero here, so we follow. __ trunc_l_s(scratch, i.InputDoubleRegister(0)); __ dmfc1(i.OutputRegister(), scratch); if (load_status) { __ cfc1(result, FCSR); // Check for overflow and NaNs. __ andi(result, result, (kFCSROverflowFlagMask | kFCSRInvalidOpFlagMask)); __ Slt(result, zero_reg, result); __ xori(result, result, 1); __ mov(i.OutputRegister(1), result); // Restore FCSR __ ctc1(tmp_fcsr, FCSR); } break; } case kMips64TruncLD: { FPURegister scratch = kScratchDoubleReg; Register tmp_fcsr = kScratchReg; Register result = kScratchReg2; bool load_status = instr->OutputCount() > 1; if (load_status) { // Save FCSR. __ cfc1(tmp_fcsr, FCSR); // Clear FPU flags. __ ctc1(zero_reg, FCSR); } // Other arches use round to zero here, so we follow. __ trunc_l_d(scratch, i.InputDoubleRegister(0)); __ dmfc1(i.OutputRegister(0), scratch); if (load_status) { __ cfc1(result, FCSR); // Check for overflow and NaNs. __ andi(result, result, (kFCSROverflowFlagMask | kFCSRInvalidOpFlagMask)); __ Slt(result, zero_reg, result); __ xori(result, result, 1); __ mov(i.OutputRegister(1), result); // Restore FCSR __ ctc1(tmp_fcsr, FCSR); } break; } case kMips64TruncUwD: { FPURegister scratch = kScratchDoubleReg; // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); break; } case kMips64TruncUwS: { FPURegister scratch = kScratchDoubleReg; // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. __ Trunc_uw_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch); // Avoid UINT32_MAX as an overflow indicator and use 0 instead, // because 0 allows easier out-of-bounds detection. __ addiu(kScratchReg, i.OutputRegister(), 1); __ Movz(i.OutputRegister(), zero_reg, kScratchReg); break; } case kMips64TruncUlS: { FPURegister scratch = kScratchDoubleReg; Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; // TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function. __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch, result); break; } case kMips64TruncUlD: { FPURegister scratch = kScratchDoubleReg; Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; // TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function. __ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(0), scratch, result); break; } case kMips64BitcastDL: __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0)); break; case kMips64BitcastLD: __ dmtc1(i.InputRegister(0), i.OutputDoubleRegister()); break; case kMips64Float64ExtractLowWord32: __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); break; case kMips64Float64ExtractHighWord32: __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); break; case kMips64Float64InsertLowWord32: __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); break; case kMips64Float64InsertHighWord32: __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); break; // ... more basic instructions ... case kMips64Seb: __ seb(i.OutputRegister(), i.InputRegister(0)); break; case kMips64Seh: __ seh(i.OutputRegister(), i.InputRegister(0)); break; case kMips64Lbu: __ lbu(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Lb: __ lb(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Sb: __ sb(i.InputOrZeroRegister(2), i.MemoryOperand()); break; case kMips64Lhu: __ lhu(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Ulhu: __ Ulhu(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Lh: __ lh(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Ulh: __ Ulh(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Sh: __ sh(i.InputOrZeroRegister(2), i.MemoryOperand()); break; case kMips64Ush: __ Ush(i.InputOrZeroRegister(2), i.MemoryOperand(), kScratchReg); break; case kMips64Lw: __ lw(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Ulw: __ Ulw(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Lwu: __ lwu(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Ulwu: __ Ulwu(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Ld: __ ld(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Uld: __ Uld(i.OutputRegister(), i.MemoryOperand()); break; case kMips64Sw: __ sw(i.InputOrZeroRegister(2), i.MemoryOperand()); break; case kMips64Usw: __ Usw(i.InputOrZeroRegister(2), i.MemoryOperand()); break; case kMips64Sd: __ sd(i.InputOrZeroRegister(2), i.MemoryOperand()); break; case kMips64Usd: __ Usd(i.InputOrZeroRegister(2), i.MemoryOperand()); break; case kMips64Lwc1: { __ lwc1(i.OutputSingleRegister(), i.MemoryOperand()); break; } case kMips64Ulwc1: { __ Ulwc1(i.OutputSingleRegister(), i.MemoryOperand(), kScratchReg); break; } case kMips64Swc1: { size_t index = 0; MemOperand operand = i.MemoryOperand(&index); FPURegister ft = i.InputOrZeroSingleRegister(index); if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } __ swc1(ft, operand); break; } case kMips64Uswc1: { size_t index = 0; MemOperand operand = i.MemoryOperand(&index); FPURegister ft = i.InputOrZeroSingleRegister(index); if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } __ Uswc1(ft, operand, kScratchReg); break; } case kMips64Ldc1: __ ldc1(i.OutputDoubleRegister(), i.MemoryOperand()); break; case kMips64Uldc1: __ Uldc1(i.OutputDoubleRegister(), i.MemoryOperand(), kScratchReg); break; case kMips64Sdc1: { FPURegister ft = i.InputOrZeroDoubleRegister(2); if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } __ sdc1(ft, i.MemoryOperand()); break; } case kMips64Usdc1: { FPURegister ft = i.InputOrZeroDoubleRegister(2); if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } __ Usdc1(ft, i.MemoryOperand(), kScratchReg); break; } case kMips64Push: if (instr->InputAt(0)->IsFPRegister()) { __ sdc1(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize)); __ Subu(sp, sp, Operand(kDoubleSize)); frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize); } else { __ Push(i.InputRegister(0)); frame_access_state()->IncreaseSPDelta(1); } break; case kMips64StackClaim: { __ Dsubu(sp, sp, Operand(i.InputInt32(0))); frame_access_state()->IncreaseSPDelta(i.InputInt32(0) / kPointerSize); break; } case kMips64StoreToStackSlot: { if (instr->InputAt(0)->IsFPRegister()) { __ sdc1(i.InputDoubleRegister(0), MemOperand(sp, i.InputInt32(1))); } else { __ sd(i.InputRegister(0), MemOperand(sp, i.InputInt32(1))); } break; } case kMips64ByteSwap64: { __ ByteSwapSigned(i.OutputRegister(0), i.InputRegister(0), 8); break; } case kMips64ByteSwap32: { __ ByteSwapUnsigned(i.OutputRegister(0), i.InputRegister(0), 4); __ dsrl32(i.OutputRegister(0), i.OutputRegister(0), 0); break; } case kCheckedLoadInt8: ASSEMBLE_CHECKED_LOAD_INTEGER(lb); break; case kCheckedLoadUint8: ASSEMBLE_CHECKED_LOAD_INTEGER(lbu); break; case kCheckedLoadInt16: ASSEMBLE_CHECKED_LOAD_INTEGER(lh); break; case kCheckedLoadUint16: ASSEMBLE_CHECKED_LOAD_INTEGER(lhu); break; case kCheckedLoadWord32: ASSEMBLE_CHECKED_LOAD_INTEGER(lw); break; case kCheckedLoadWord64: ASSEMBLE_CHECKED_LOAD_INTEGER(ld); break; case kCheckedLoadFloat32: ASSEMBLE_CHECKED_LOAD_FLOAT(Single, lwc1); break; case kCheckedLoadFloat64: ASSEMBLE_CHECKED_LOAD_FLOAT(Double, ldc1); break; case kCheckedStoreWord8: ASSEMBLE_CHECKED_STORE_INTEGER(sb); break; case kCheckedStoreWord16: ASSEMBLE_CHECKED_STORE_INTEGER(sh); break; case kCheckedStoreWord32: ASSEMBLE_CHECKED_STORE_INTEGER(sw); break; case kCheckedStoreWord64: ASSEMBLE_CHECKED_STORE_INTEGER(sd); break; case kCheckedStoreFloat32: ASSEMBLE_CHECKED_STORE_FLOAT(Single, swc1); break; case kCheckedStoreFloat64: ASSEMBLE_CHECKED_STORE_FLOAT(Double, sdc1); break; case kAtomicLoadInt8: ASSEMBLE_ATOMIC_LOAD_INTEGER(lb); break; case kAtomicLoadUint8: ASSEMBLE_ATOMIC_LOAD_INTEGER(lbu); break; case kAtomicLoadInt16: ASSEMBLE_ATOMIC_LOAD_INTEGER(lh); break; case kAtomicLoadUint16: ASSEMBLE_ATOMIC_LOAD_INTEGER(lhu); break; case kAtomicLoadWord32: ASSEMBLE_ATOMIC_LOAD_INTEGER(lw); break; case kAtomicStoreWord8: ASSEMBLE_ATOMIC_STORE_INTEGER(sb); break; case kAtomicStoreWord16: ASSEMBLE_ATOMIC_STORE_INTEGER(sh); break; case kAtomicStoreWord32: ASSEMBLE_ATOMIC_STORE_INTEGER(sw); break; case kMips64AssertEqual: __ Assert(eq, static_cast<BailoutReason>(i.InputOperand(2).immediate()), i.InputRegister(0), Operand(i.InputRegister(1))); break; } return kSuccess; } // NOLINT(readability/fn_size) #define UNSUPPORTED_COND(opcode, condition) \ OFStream out(stdout); \ out << "Unsupported " << #opcode << " condition: \"" << condition << "\""; \ UNIMPLEMENTED(); static bool convertCondition(FlagsCondition condition, Condition& cc) { switch (condition) { case kEqual: cc = eq; return true; case kNotEqual: cc = ne; return true; case kUnsignedLessThan: cc = lt; return true; case kUnsignedGreaterThanOrEqual: cc = uge; return true; case kUnsignedLessThanOrEqual: cc = le; return true; case kUnsignedGreaterThan: cc = ugt; return true; default: break; } return false; } // Assembles branches after an instruction. void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { MipsOperandConverter i(this, instr); Label* tlabel = branch->true_label; Label* flabel = branch->false_label; Condition cc = kNoCondition; // MIPS does not have condition code flags, so compare and branch are // implemented differently than on the other arch's. The compare operations // emit mips psuedo-instructions, which are handled here by branch // instructions that do the actual comparison. Essential that the input // registers to compare pseudo-op are not modified before this branch op, as // they are tested here. if (instr->arch_opcode() == kMips64Tst) { cc = FlagsConditionToConditionTst(branch->condition); __ And(at, i.InputRegister(0), i.InputOperand(1)); __ Branch(tlabel, cc, at, Operand(zero_reg)); } else if (instr->arch_opcode() == kMips64Dadd || instr->arch_opcode() == kMips64Dsub) { cc = FlagsConditionToConditionOvf(branch->condition); __ dsra32(kScratchReg, i.OutputRegister(), 0); __ sra(at, i.OutputRegister(), 31); __ Branch(tlabel, cc, at, Operand(kScratchReg)); } else if (instr->arch_opcode() == kMips64DaddOvf) { switch (branch->condition) { case kOverflow: __ DaddBranchOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), tlabel, flabel); break; case kNotOverflow: __ DaddBranchOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), flabel, tlabel); break; default: UNSUPPORTED_COND(kMips64DaddOvf, branch->condition); break; } } else if (instr->arch_opcode() == kMips64DsubOvf) { switch (branch->condition) { case kOverflow: __ DsubBranchOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), tlabel, flabel); break; case kNotOverflow: __ DsubBranchOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), flabel, tlabel); break; default: UNSUPPORTED_COND(kMips64DsubOvf, branch->condition); break; } } else if (instr->arch_opcode() == kMips64MulOvf) { switch (branch->condition) { case kOverflow: { __ MulBranchOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), tlabel, flabel, kScratchReg); } break; case kNotOverflow: { __ MulBranchOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), flabel, tlabel, kScratchReg); } break; default: UNSUPPORTED_COND(kMips64MulOvf, branch->condition); break; } } else if (instr->arch_opcode() == kMips64Cmp) { cc = FlagsConditionToConditionCmp(branch->condition); __ Branch(tlabel, cc, i.InputRegister(0), i.InputOperand(1)); } else if (instr->arch_opcode() == kMips64CmpS) { if (!convertCondition(branch->condition, cc)) { UNSUPPORTED_COND(kMips64CmpS, branch->condition); } FPURegister left = i.InputOrZeroSingleRegister(0); FPURegister right = i.InputOrZeroSingleRegister(1); if ((left.is(kDoubleRegZero) || right.is(kDoubleRegZero)) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } __ BranchF32(tlabel, nullptr, cc, left, right); } else if (instr->arch_opcode() == kMips64CmpD) { if (!convertCondition(branch->condition, cc)) { UNSUPPORTED_COND(kMips64CmpD, branch->condition); } FPURegister left = i.InputOrZeroDoubleRegister(0); FPURegister right = i.InputOrZeroDoubleRegister(1); if ((left.is(kDoubleRegZero) || right.is(kDoubleRegZero)) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } __ BranchF64(tlabel, nullptr, cc, left, right); } else { PrintF("AssembleArchBranch Unimplemented arch_opcode: %d\n", instr->arch_opcode()); UNIMPLEMENTED(); } if (!branch->fallthru) __ Branch(flabel); // no fallthru to flabel. } void CodeGenerator::AssembleArchJump(RpoNumber target) { if (!IsNextInAssemblyOrder(target)) __ Branch(GetLabel(target)); } // Assembles boolean materializations after an instruction. void CodeGenerator::AssembleArchBoolean(Instruction* instr, FlagsCondition condition) { MipsOperandConverter i(this, instr); Label done; // Materialize a full 32-bit 1 or 0 value. The result register is always the // last output of the instruction. Label false_value; DCHECK_NE(0u, instr->OutputCount()); Register result = i.OutputRegister(instr->OutputCount() - 1); Condition cc = kNoCondition; // MIPS does not have condition code flags, so compare and branch are // implemented differently than on the other arch's. The compare operations // emit mips pseudo-instructions, which are checked and handled here. if (instr->arch_opcode() == kMips64Tst) { cc = FlagsConditionToConditionTst(condition); if (instr->InputAt(1)->IsImmediate() && base::bits::IsPowerOfTwo64(i.InputOperand(1).immediate())) { uint16_t pos = base::bits::CountTrailingZeros64(i.InputOperand(1).immediate()); __ ExtractBits(result, i.InputRegister(0), pos, 1); } else { __ And(kScratchReg, i.InputRegister(0), i.InputOperand(1)); __ Sltu(result, zero_reg, kScratchReg); } if (cc == eq) { // Sltu produces 0 for equality, invert the result. __ xori(result, result, 1); } return; } else if (instr->arch_opcode() == kMips64Dadd || instr->arch_opcode() == kMips64Dsub) { cc = FlagsConditionToConditionOvf(condition); // Check for overflow creates 1 or 0 for result. __ dsrl32(kScratchReg, i.OutputRegister(), 31); __ srl(at, i.OutputRegister(), 31); __ xor_(result, kScratchReg, at); if (cc == eq) // Toggle result for not overflow. __ xori(result, result, 1); return; } else if (instr->arch_opcode() == kMips64DaddOvf || instr->arch_opcode() == kMips64DsubOvf || instr->arch_opcode() == kMips64MulOvf) { Label flabel, tlabel; switch (instr->arch_opcode()) { case kMips64DaddOvf: __ DaddBranchNoOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), &flabel); break; case kMips64DsubOvf: __ DsubBranchNoOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), &flabel); break; case kMips64MulOvf: __ MulBranchNoOvf(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1), &flabel, kScratchReg); break; default: UNREACHABLE(); break; } __ li(result, 1); __ Branch(&tlabel); __ bind(&flabel); __ li(result, 0); __ bind(&tlabel); } else if (instr->arch_opcode() == kMips64Cmp) { cc = FlagsConditionToConditionCmp(condition); switch (cc) { case eq: case ne: { Register left = i.InputRegister(0); Operand right = i.InputOperand(1); Register select; if (instr->InputAt(1)->IsImmediate() && right.immediate() == 0) { // Pass left operand if right is zero. select = left; } else { __ Dsubu(kScratchReg, left, right); select = kScratchReg; } __ Sltu(result, zero_reg, select); if (cc == eq) { // Sltu produces 0 for equality, invert the result. __ xori(result, result, 1); } } break; case lt: case ge: { Register left = i.InputRegister(0); Operand right = i.InputOperand(1); __ Slt(result, left, right); if (cc == ge) { __ xori(result, result, 1); } } break; case gt: case le: { Register left = i.InputRegister(1); Operand right = i.InputOperand(0); __ Slt(result, left, right); if (cc == le) { __ xori(result, result, 1); } } break; case lo: case hs: { Register left = i.InputRegister(0); Operand right = i.InputOperand(1); __ Sltu(result, left, right); if (cc == hs) { __ xori(result, result, 1); } } break; case hi: case ls: { Register left = i.InputRegister(1); Operand right = i.InputOperand(0); __ Sltu(result, left, right); if (cc == ls) { __ xori(result, result, 1); } } break; default: UNREACHABLE(); } return; } else if (instr->arch_opcode() == kMips64CmpD || instr->arch_opcode() == kMips64CmpS) { FPURegister left = i.InputOrZeroDoubleRegister(0); FPURegister right = i.InputOrZeroDoubleRegister(1); if ((left.is(kDoubleRegZero) || right.is(kDoubleRegZero)) && !__ IsDoubleZeroRegSet()) { __ Move(kDoubleRegZero, 0.0); } bool predicate; FPUCondition cc = FlagsConditionToConditionCmpFPU(predicate, condition); if (kArchVariant != kMips64r6) { __ li(result, Operand(1)); if (instr->arch_opcode() == kMips64CmpD) { __ c(cc, D, left, right); } else { DCHECK(instr->arch_opcode() == kMips64CmpS); __ c(cc, S, left, right); } if (predicate) { __ Movf(result, zero_reg); } else { __ Movt(result, zero_reg); } } else { if (instr->arch_opcode() == kMips64CmpD) { __ cmp(cc, L, kDoubleCompareReg, left, right); } else { DCHECK(instr->arch_opcode() == kMips64CmpS); __ cmp(cc, W, kDoubleCompareReg, left, right); } __ dmfc1(result, kDoubleCompareReg); __ andi(result, result, 1); // Cmp returns all 1's/0's, use only LSB. if (!predicate) // Toggle result for not equal. __ xori(result, result, 1); } return; } else { PrintF("AssembleArchBranch Unimplemented arch_opcode is : %d\n", instr->arch_opcode()); TRACE_UNIMPL(); UNIMPLEMENTED(); } } void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { MipsOperandConverter i(this, instr); Register input = i.InputRegister(0); for (size_t index = 2; index < instr->InputCount(); index += 2) { __ li(at, Operand(i.InputInt32(index + 0))); __ beq(input, at, GetLabel(i.InputRpo(index + 1))); } __ nop(); // Branch delay slot of the last beq. AssembleArchJump(i.InputRpo(1)); } void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) { MipsOperandConverter i(this, instr); Register input = i.InputRegister(0); size_t const case_count = instr->InputCount() - 2; __ Branch(GetLabel(i.InputRpo(1)), hs, input, Operand(case_count)); __ GenerateSwitchTable(input, case_count, [&i, this](size_t index) { return GetLabel(i.InputRpo(index + 2)); }); } CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( int deoptimization_id, Deoptimizer::BailoutType bailout_type, SourcePosition pos) { Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( isolate(), deoptimization_id, bailout_type); if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; DeoptimizeReason deoptimization_reason = GetDeoptimizationReason(deoptimization_id); __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); return kSuccess; } void CodeGenerator::FinishFrame(Frame* frame) { CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); if (saves_fpu != 0) { int count = base::bits::CountPopulation32(saves_fpu); DCHECK(kNumCalleeSavedFPU == count); frame->AllocateSavedCalleeRegisterSlots(count * (kDoubleSize / kPointerSize)); } const RegList saves = descriptor->CalleeSavedRegisters(); if (saves != 0) { int count = base::bits::CountPopulation32(saves); DCHECK(kNumCalleeSaved == count + 1); frame->AllocateSavedCalleeRegisterSlots(count); } } void CodeGenerator::AssembleConstructFrame() { CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); if (frame_access_state()->has_frame()) { if (descriptor->IsCFunctionCall()) { __ Push(ra, fp); __ mov(fp, sp); } else if (descriptor->IsJSFunctionCall()) { __ Prologue(this->info()->GeneratePreagedPrologue()); if (descriptor->PushArgumentCount()) { __ Push(kJavaScriptCallArgCountRegister); } } else { __ StubPrologue(info()->GetOutputStackFrameType()); } } int shrink_slots = frame()->GetTotalFrameSlotCount() - descriptor->CalculateFixedFrameSize(); if (info()->is_osr()) { // TurboFan OSR-compiled functions cannot be entered directly. __ Abort(kShouldNotDirectlyEnterOsrFunction); // Unoptimized code jumps directly to this entrypoint while the unoptimized // frame is still on the stack. Optimized code uses OSR values directly from // the unoptimized frame. Thus, all that needs to be done is to allocate the // remaining stack slots. if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --"); osr_pc_offset_ = __ pc_offset(); shrink_slots -= OsrHelper(info()).UnoptimizedFrameSlots(); } if (shrink_slots > 0) { __ Dsubu(sp, sp, Operand(shrink_slots * kPointerSize)); } const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); if (saves_fpu != 0) { // Save callee-saved FPU registers. __ MultiPushFPU(saves_fpu); DCHECK(kNumCalleeSavedFPU == base::bits::CountPopulation32(saves_fpu)); } const RegList saves = descriptor->CalleeSavedRegisters(); if (saves != 0) { // Save callee-saved registers. __ MultiPush(saves); DCHECK(kNumCalleeSaved == base::bits::CountPopulation32(saves) + 1); } } void CodeGenerator::AssembleReturn(InstructionOperand* pop) { CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); // Restore GP registers. const RegList saves = descriptor->CalleeSavedRegisters(); if (saves != 0) { __ MultiPop(saves); } // Restore FPU registers. const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); if (saves_fpu != 0) { __ MultiPopFPU(saves_fpu); } MipsOperandConverter g(this, nullptr); if (descriptor->IsCFunctionCall()) { AssembleDeconstructFrame(); } else if (frame_access_state()->has_frame()) { // Canonicalize JSFunction return sites for now unless they have an variable // number of stack slot pops. if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) { if (return_label_.is_bound()) { __ Branch(&return_label_); return; } else { __ bind(&return_label_); AssembleDeconstructFrame(); } } else { AssembleDeconstructFrame(); } } int pop_count = static_cast<int>(descriptor->StackParameterCount()); if (pop->IsImmediate()) { DCHECK_EQ(Constant::kInt32, g.ToConstant(pop).type()); pop_count += g.ToConstant(pop).ToInt32(); } else { Register pop_reg = g.ToRegister(pop); __ dsll(pop_reg, pop_reg, kPointerSizeLog2); __ Daddu(sp, sp, pop_reg); } if (pop_count != 0) { __ DropAndRet(pop_count); } else { __ Ret(); } } void CodeGenerator::AssembleMove(InstructionOperand* source, InstructionOperand* destination) { MipsOperandConverter g(this, nullptr); // Dispatch on the source and destination operand kinds. Not all // combinations are possible. if (source->IsRegister()) { DCHECK(destination->IsRegister() || destination->IsStackSlot()); Register src = g.ToRegister(source); if (destination->IsRegister()) { __ mov(g.ToRegister(destination), src); } else { __ sd(src, g.ToMemOperand(destination)); } } else if (source->IsStackSlot()) { DCHECK(destination->IsRegister() || destination->IsStackSlot()); MemOperand src = g.ToMemOperand(source); if (destination->IsRegister()) { __ ld(g.ToRegister(destination), src); } else { Register temp = kScratchReg; __ ld(temp, src); __ sd(temp, g.ToMemOperand(destination)); } } else if (source->IsConstant()) { Constant src = g.ToConstant(source); if (destination->IsRegister() || destination->IsStackSlot()) { Register dst = destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; switch (src.type()) { case Constant::kInt32: if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { __ li(dst, Operand(src.ToInt32(), src.rmode())); } else { __ li(dst, Operand(src.ToInt32())); } break; case Constant::kFloat32: __ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); break; case Constant::kInt64: if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) { __ li(dst, Operand(src.ToInt64(), src.rmode())); } else { DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); __ li(dst, Operand(src.ToInt64())); } break; case Constant::kFloat64: __ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); break; case Constant::kExternalReference: __ li(dst, Operand(src.ToExternalReference())); break; case Constant::kHeapObject: { Handle<HeapObject> src_object = src.ToHeapObject(); Heap::RootListIndex index; if (IsMaterializableFromRoot(src_object, &index)) { __ LoadRoot(dst, index); } else { __ li(dst, src_object); } break; } case Constant::kRpoNumber: UNREACHABLE(); // TODO(titzer): loading RPO numbers on mips64. break; } if (destination->IsStackSlot()) __ sd(dst, g.ToMemOperand(destination)); } else if (src.type() == Constant::kFloat32) { if (destination->IsFPStackSlot()) { MemOperand dst = g.ToMemOperand(destination); if (bit_cast<int32_t>(src.ToFloat32()) == 0) { __ sw(zero_reg, dst); } else { __ li(at, Operand(bit_cast<int32_t>(src.ToFloat32()))); __ sw(at, dst); } } else { DCHECK(destination->IsFPRegister()); FloatRegister dst = g.ToSingleRegister(destination); __ Move(dst, src.ToFloat32()); } } else { DCHECK_EQ(Constant::kFloat64, src.type()); DoubleRegister dst = destination->IsFPRegister() ? g.ToDoubleRegister(destination) : kScratchDoubleReg; __ Move(dst, src.ToFloat64()); if (destination->IsFPStackSlot()) { __ sdc1(dst, g.ToMemOperand(destination)); } } } else if (source->IsFPRegister()) { FPURegister src = g.ToDoubleRegister(source); if (destination->IsFPRegister()) { FPURegister dst = g.ToDoubleRegister(destination); __ Move(dst, src); } else { DCHECK(destination->IsFPStackSlot()); __ sdc1(src, g.ToMemOperand(destination)); } } else if (source->IsFPStackSlot()) { DCHECK(destination->IsFPRegister() || destination->IsFPStackSlot()); MemOperand src = g.ToMemOperand(source); if (destination->IsFPRegister()) { __ ldc1(g.ToDoubleRegister(destination), src); } else { FPURegister temp = kScratchDoubleReg; __ ldc1(temp, src); __ sdc1(temp, g.ToMemOperand(destination)); } } else { UNREACHABLE(); } } void CodeGenerator::AssembleSwap(InstructionOperand* source, InstructionOperand* destination) { MipsOperandConverter g(this, nullptr); // Dispatch on the source and destination operand kinds. Not all // combinations are possible. if (source->IsRegister()) { // Register-register. Register temp = kScratchReg; Register src = g.ToRegister(source); if (destination->IsRegister()) { Register dst = g.ToRegister(destination); __ Move(temp, src); __ Move(src, dst); __ Move(dst, temp); } else { DCHECK(destination->IsStackSlot()); MemOperand dst = g.ToMemOperand(destination); __ mov(temp, src); __ ld(src, dst); __ sd(temp, dst); } } else if (source->IsStackSlot()) { DCHECK(destination->IsStackSlot()); Register temp_0 = kScratchReg; Register temp_1 = kScratchReg2; MemOperand src = g.ToMemOperand(source); MemOperand dst = g.ToMemOperand(destination); __ ld(temp_0, src); __ ld(temp_1, dst); __ sd(temp_0, dst); __ sd(temp_1, src); } else if (source->IsFPRegister()) { FPURegister temp = kScratchDoubleReg; FPURegister src = g.ToDoubleRegister(source); if (destination->IsFPRegister()) { FPURegister dst = g.ToDoubleRegister(destination); __ Move(temp, src); __ Move(src, dst); __ Move(dst, temp); } else { DCHECK(destination->IsFPStackSlot()); MemOperand dst = g.ToMemOperand(destination); __ Move(temp, src); __ ldc1(src, dst); __ sdc1(temp, dst); } } else if (source->IsFPStackSlot()) { DCHECK(destination->IsFPStackSlot()); Register temp_0 = kScratchReg; FPURegister temp_1 = kScratchDoubleReg; MemOperand src0 = g.ToMemOperand(source); MemOperand src1(src0.rm(), src0.offset() + kIntSize); MemOperand dst0 = g.ToMemOperand(destination); MemOperand dst1(dst0.rm(), dst0.offset() + kIntSize); __ ldc1(temp_1, dst0); // Save destination in temp_1. __ lw(temp_0, src0); // Then use temp_0 to copy source to destination. __ sw(temp_0, dst0); __ lw(temp_0, src1); __ sw(temp_0, dst1); __ sdc1(temp_1, src0); } else { // No other combinations are possible. UNREACHABLE(); } } void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) { // On 64-bit MIPS we emit the jump tables inline. UNREACHABLE(); } void CodeGenerator::EnsureSpaceForLazyDeopt() { if (!info()->ShouldEnsureSpaceForLazyDeopt()) { return; } int space_needed = Deoptimizer::patch_size(); // Ensure that we have enough space after the previous lazy-bailout // instruction for patching the code here. int current_pc = masm()->pc_offset(); if (current_pc < last_lazy_deopt_pc_ + space_needed) { // Block tramoline pool emission for duration of padding. v8::internal::Assembler::BlockTrampolinePoolScope block_trampoline_pool( masm()); int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; DCHECK_EQ(0, padding_size % v8::internal::Assembler::kInstrSize); while (padding_size > 0) { __ nop(); padding_size -= v8::internal::Assembler::kInstrSize; } } } #undef __ } // namespace compiler } // namespace internal } // namespace v8 ```
```javascript // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. description( "This tests that register allocation still works under register pressure induced by inlining, out-of-line function calls (i.e. unconditional register flushing), and slow paths for object creation (i.e. conditional register flushing)." ); // Inlineable constructor. function foo(a, b, c) { this.a = a; this.b = b; this.c = c; } // Non-inlineable function. This relies on a size limit for inlining, but still // produces integers. It also relies on the VM not reasoning about Math.log deeply // enough to find some way of optimizing this code to be small enough to inline. function bar(a, b) { a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; a += b; a -= b; b ^= a; a += Math.log(b); b += a; b -= a; a ^= b; return (a - b) | 0; } // Function into which we will inline foo but not bar. function baz(a, b) { return new foo(bar(2 * a + 1, b - 1), bar(2 * a, b - 1), a); } // Do the test. It's crucial that o.a, o.b, and o.c are checked on each // loop iteration. for (var i = 0; i < 1000; ++i) { var o = baz(i, i + 1); shouldBe("o.a", "bar(2 * i + 1, i)"); shouldBe("o.b", "bar(2 * i, i)"); shouldBe("o.c", "i"); } ```
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var tape = require( 'tape' ); var Parser = require( './../lib' ); // FIXTURES // var fixture = require( './fixtures/small.json' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof Parser, 'function', 'main export is a function' ); t.end(); }); tape( 'the parser successfully parses DSV containing only a single field value', function test( t ) { var expected; var flg; var p; var i; expected = fixture.json; i = 0; p = new Parser({ 'newline': '\n', 'onRow': onRow, 'onClose': onClose }); p.next( fixture.dsv ).close(); function onRow( record, row ) { flg = true; t.deepEqual( record, expected[ i ], 'returns expected value. Row: '+row+'.' ); i += 1; } function onClose() { t.ok( flg, 'parses rows' ); t.end(); } }); ```
```protocol buffer syntax = "proto2"; package object_detection.protos; // Message to configure graph rewriter for the tf graph. message GraphRewriter { optional Quantization quantization = 1; extensions 1000 to max; } // Message for quantization options. See // tensorflow/contrib/quantize/python/quantize.py for details. message Quantization { // Number of steps to delay before quantization takes effect during training. optional int32 delay = 1 [default = 500000]; // Number of bits to use for quantizing weights. // Only 8 bit is supported for now. optional int32 weight_bits = 2 [default = 8]; // Number of bits to use for quantizing activations. // Only 8 bit is supported for now. optional int32 activation_bits = 3 [default = 8]; // Whether to use symmetric weight quantization. optional bool symmetric = 4 [default = false]; } ```
USCGC Cactus (WLB-270) is a seagoing buoy tender (WLB). A Cactus-class vessel, she was built by Marine Ironworks and Shipbuilding Corporation in Duluth, Minnesota. Cactuss preliminary design was completed by the United States Lighthouse Service and the final design was produced by Marine Iron and Shipbuilding Corporation in Duluth. On 31 March 1941 the keel was laid, she was launched on 25 November 1941 and commissioned on 1 September 1942. The original cost for the hull and machinery was $782,381. Cactus is one of 39 original 180-foot seagoing buoy tenders built between 1942 and 1944. All but one of the original tenders, , were built in Duluth. Cactus was decommissioned in 1971 after running aground. Ultimately, the Coast Guard sold the damaged vessel and she was converted to a barge for use in the Pacific Northwest. Cactus was moored without permission in Tacoma, Washington for several years and then in King County off Maury Island from 2003 to 2008. King County seized the vessel in 2008, moved to Ballard Shipyard, and gradually scrapped. Ship's history USCGC Cactus was initially assigned to the First Coast Guard District in 1942 and stationed at Boston, MA. On 12 June 1943 the tender collided with MV Manasquan and sustained considerable damage. After World War II Cactus continued to serve the First District from Boston, MA. In addition to tending aids to navigation (ATON), the cutter also performed search and rescue (SAR), icebreaking and law enforcement (LE) duties. On 2 March 1952 Cactus provided assistance to FV Dorothy and FV Mary 20 miles south of Nantucket, MA. On 16 November 1953 Cactus fought a fire on FV Jane and FV Patricia. On 26 August 1954 Cactus assisted FV Western Pride which had grounded near Provincetown, MA. In 1957 Cactus assisted the grounded MV Franco Lisi near Salem, MA. On 10 February and 27 July 1957 Cactus fought pier fires in Boston, MA and moved a 450-foot Norwegian merchant vessel to safety away from the flames. During the night of 21–22 February 1959 Cactus assisted FV Jo-Ann. At some point in the early 1960s CGC Cactus was retasked as an oceanographic buoy tender (WLBO-270), and was one of two WLBO's in Boston functioning as an oceanographic platform, painted white, instead of the usual black color denoting a USCG work vessel. The other white WLBO vessel was the CGC Evergreen in Boston. During 24 to 25 January 1966 she escorted the disabled merchant vessel, MS South African Victory to Boston. On 4 February 1969 Cactus towed the disabled FV Chrisway to safety from 140 miles southeast of Cape Henry, VA. In 1967, the CGC Cactus homeport was changed from Boston, MA to Bristol, RI. In Nov/Dec 1969 the ship sailed from Bristol, RI, with a delivery Prize Crew, to her new homeport at Tongue Point Coast Guard Base in Astoria, OR in December 1969. The entire CGC Cactus crew flew from Seattle to Boston for reassignment in CCDONE. In 1971 Cactus wrecked on the submerged portion of South Jetty at Grays Harbor, WA. Both cargo holds were ruptured and tidal; her engine room was holed and taking on water. Her main engines were inoperative because of shaft misalignment and a damaged screw. Cactus was severely damaged and in peril of capsizing. She was successfully re-floated using air and towed to Seattle, WA by MS Salvage Chief, (Captain Reino Mattila, homeport Astoria, OR). She was decommissioned after the 1971 incident. Sold into private hands, she eventually ended up under the ownership of David Thomsen, who bought the ship for $35,000.00 with plans of turning her into a floating sawmill. The conversion never occurred and the vessel languished in Tacoma’s Foss Waterway until September 2003 when Thomsen was forced to move by official 30-day notice. On day 29, he used tides, wind, and a 20’ fishing boat to move Cactus to Maury Island. The vessel sat at Maury Island for years; by 2008, it was filled with buckets of paint and epoxy, rusted steel plates, rubber hoses, PVC pipe, leaking pails of seam filler, old newspapers, mattresses, boxes of tiles, etc., as well as fuel and asbestos insulation. Cactus was pillaged for equipment in the five years between 2003-2008; ten-foot pieces of metal had been cut out of the deck, brass valves were removed, and holes in the hull had been plugged by cork to keep her afloat. At one point, it broke anchor and went swinging into the aquatic reserve nearby. After Thomsen called for help on a separate occasion, state authorities seized the ship and removed it to Ballard shipyard for disposal. Budgetary constraints meant that full scrapping was only scheduled for completion in Fall 2012 as a result of a legislative lump sum allocated to the state’s Derelict Vessel Removal Program. References External links Cactus-class seagoing buoy tenders 1941 ships Historic American Engineering Record in Oregon Ships built in Duluth, Minnesota
Charles Raymond Perrault is an artificial intelligence researcher and a Distinguished Computer Scientist at SRI International. He was a co-principal investigator of the CALO project, which is the predecessor for several AI technologies including Siri. Education Perrault received a bachelor of science in mathematics from McGill University and a Ph.D. in computer and communication sciences from the University of Michigan in 1975. Career Perrault was a faculty member of the University of Toronto from 1974 to 1983, rising from assistant to full professor. He started at SRI International in 1983, and was the director of the Artificial Intelligence Center from 1987 to 2017. While at SRI, he was a co-principal investigator of the CALO project and is also a founder of the Center for the Study of Language and Information. Memberships and awards Perrault was the co-editor in chief of the journal Artificial Intelligence from 2001 to 2010, the president and a trustee of the International Joint Conferences on Artificial Intelligence from 1992 to 2001, and was president of the Association for Computational Linguistics in 1983. In 1990, Perrault was named a founding fellow of the American Association for Artificial Intelligence and in 2018 of American Association for Advancement of Science In July 2011, he won the Donald E. Walker Distinguished Service Award from the International Joint Conferences on Artificial Intelligence. References External links Raymond Perrault on LinkedIn Living people Year of birth missing (living people) Place of birth missing (living people) Artificial intelligence researchers SRI International people Fellows of the Association for the Advancement of Artificial Intelligence Academic staff of the University of Toronto McGill University Faculty of Science alumni University of Michigan alumni Presidents of the Association for Computational Linguistics
Un infinito numero ("An infinite number") is a novel written by Sebastiano Vassali which has been published in 1999, 2001 and 2015 by the publishing house Einaudi. The title is related to the fact that history is a continuous repetition of events and human beings. Plot The novel is based on the monologue of Timodemo, who was born in Nauplia (Greece). When he was a child, he was abandoned by his mother and given to a slave trader called Musodoro. He was educated by Quinzione and he was taken to Naples where he was bought by Virgil as his secretary. He started living with the writer, who had to write a poem celebrating the origins of Rome. The Etruscan Mecenate, who was responsible for culture and the artists in the capital city, suggested Virgil should go on a journey to the Rasna's country to discover the past of this civilization and to find out why they didn't have a written tradition. The travellers are Mecenate, Virgilio, Timodemo, Tanai, Sarmento and the dancers Tecmessa and Ninfa. After a long time, these travellers reached the towns of Surina and Arezzo, where Mecenate settled his accounts with two administrators who had taken advantage of his property during his absence. Finally they arrived in Sacni, the holy town of Rasna, and while they were waiting for meeting the high priest of the god Velthune, they visited the temples dedicated to Velthune, the god life, Northia, personification of time, and Mantus, god of death and the underworld. When the sky is favourable to their visit, they lived a fantastic adventure in the Mantus' temple: they went on an incredible journey in the past, and they could live in first person the “infinite number” of past lives and they could experience the mysteries concerning the birth of Rome, the Rasna's relationship with history, memory and writing. After escaping from Troy, Eneas and the Lidi disembarked on the Lazio's shores, where they massacred the local population ... and the real history of the origin of Rome is shown. They killed all men and they exploited women and their land. Certainly the Eneas' figure is highlighted, which is very different from the classic one, transmitted during the centuries: he was a fat, cruel, dirty and smelly man. Some days after the reawakening, Mecenate, Virgilio and Timodemo met Aisna, the high priest of the temple of Velthune, and they discussed the reasons why a very developed civilization, whose citizens were able to write, hadn't a written tradition. Aisna claimed that the writing is like death, the words are a death's signal and only who hasn't a name will be immortal. Aisna decided to show the deathly power of the writing and he wrote his name, his mother's one and his daughter's one: within the day after this people would die. As the high priest had announced, that day was the end of the Rasna's era: the last nail was placed on the wall of the Nurthia's temple, the calendar of that civilization. When the journey was finished, Virgil was constantly subjected to Octavius' pressing requests for the realization of the Aeneid, whose draft was constantly modified. In the last months of his life, Virgil went to Athens where he met the prince: the piece was still incomplete and the intention of the author was to not publish it, because the Rome and the heroes presented were not the real ones. After the death of the poet, Timodemo and the slave Marittimo tried to escape with the manuscripts of the Aeneid, but they were discovered: Marittimo was captured and crucified and the piece was disclosed, even if Virgil's wanted to destroy it. The publishing of the Aeneid, wanted by Lucio Vario Rufo and Plozio Tucca, facilitated the diffusion of a falsified figure of Eneas that firstly was a women and children slaughterer, but he has become the model of the perfect Roman citizen. Timodemo could only escape from the death sentence decided by August. He moved to Apulia, he changed his identity and he continued being passionate about reading. References 20th-century Italian novels 1999 novels Giulio Einaudi Editore books
Langley School is a secondary school with academy status situated in the Metropolitan Borough of Solihull, West Midlands. It has specialist status in the arts, languages and training. The school is a mixed, 11–16 comprehensive school with a current pupil roll of 1002. In September 2002 the school became a specialist Performing Arts College, in 2006 a specialist Language College and Training School. Alumni Elizabeth Bower, Actress Roberto Cipolla, professor Darren Carter, footballer Ashley Sammons, footballer Phil Hawker, footballer Charlie Lakin, footballer References External links Langley School Website Ofsted Report Academies in Solihull Training schools in England Secondary schools in Solihull
Brendan McManamon (born 1982) is a Gaelic footballer who plays for the St Jude's club and the Dublin county team. McManamon was on Dublin's winning team for the 2008 O'Byrne Cup which defeated Longford in the final.' He scored 0-1 in the game which saw Dublin win by 2-12 to 1-14. McManamon has been a Dublin senior panelist for the last three years and has many championship appearances to his name, making the first of these against Louth at Croke Park on 8 June 2008, coming on as a 61st minute sub for his boyhood hero Jason Sherlock. The highlight of McManamon's club career came in October 2009, when he was part of the Naomh Jude senior side who narrowly lost out to Ballyboden St Enda's in their first county final. McManamon scored a point in his first league game in 2010 against Derry at Parnell Park. McManamon is famous for retiring Meath Gaelic football legend Graham Geraghty, who has been quoted as saying he "could have played on for several more years if it were not for Brendan serving up a dose of reality as to the speed of the modern game". McManamon's brother Kevin is also a Dublin senior footballer. References 1982 births Living people Dublin inter-county Gaelic footballers St Jude's Gaelic footballers
A low-level windshear alert system (LLWAS) measures average surface wind speed and direction using a network of remote sensor stations, situated near runways and along approach or departure corridors at an airport. Wind shear is the generic term for wind differences over an operationally short distance (in relation to flight) which encompass meteorological phenomena including gust fronts, microbursts, vertical shear, and derechos. Background LLWAS compares results over its operating area to determine whether calm, steady winds, wind shifts (in relation to runways), wind gusts, divergent winds, sustained divergent winds (indicative of shear), or strong and sustained divergent winds (indicative of microbursts) are observed. A LLWAS master station polls each remote station every system cycle (nominally every ten seconds) and provides prevailing airport wind averages, runway specific winds, gusts, may set new wind shear alerts or microburst alerts and reset countdown timers of elapsed time since the last alert. By airline rules, pilots must avoid microbursts if warnings are issued by an automated wind shear detection system, and must wait until a safe time interval passes, to assure departure or landing conditions are safe for the performance of the airframe. Pilots may decide whether to land (or conduct a missed approach) after wind shear alerts are issued. LLWAS wind shear alerts are defined as wind speed gain or loss of between 20 and 30 knots aligned with the active runway direction. "Low level" refers to altitudes of or less above ground level (AGL). Arriving aircraft on descent, generally within six nautical miles of touchdown will fly within this low level, maintaining a glide slope and may lack recovery altitude sufficient to avoid a stall or flight-into-terrain if caught unaware by a microburst. LLWAS microburst alerts are issued for greater than 30 knot loss of airspeed at the runway or within three nautical miles of approach or two nautical miles of departure. Microbursts in excess of 110 knots have been observed. Each LLWAS equipped airport may have as few as six or as many as thirty-two remote stations. Each remote station uses a tall pole with anemometer and radio-telecommunication equipment mounted on a lowerable ring. Remote station wind measurements are transmitted to a master station at the Air Traffic Control Tower (ATCT), which polls the remote stations, runs wind shear and gust front algorithms, and generates warnings when windshear or microburst conditions are detected. Current observations and warnings are displayed for approach controllers in the terminal radar approach control facility (TRACON) and for local and ground controllers in the air traffic control tower. Air traffic controller (ATC) users at local, ground and departure positions in the ATCT relay the LLWAS runway specific alerts to pilots via voice radio communication. Recent wind shear alerts may also feature in radio broadcasts by the automated terminal information system (ATIS). LLWAS wind shear and microburst alerts assist pilots during busy times on final approach and on departure, often when heavy traffic, low ceilings, obstructions to vision, and moderate to heavy precipitation add to the difficulty in determining in just a few seconds whether mounting wind and weather hazards should be risked or avoided. Related activities in the United States The original LLWAS system (LLWAS I) was developed by the Federal Aviation Administration (FAA) in 1976 in response to the 1975 Eastern Air Lines Flight 66 windshear accident in New York and the findings of Project NIMROD by Ted Fujita. LLWAS I used a center field anemometer along with five pole mounted anemometers sited around the periphery of a single runway. It was installed at 110 FAA towered airports between 1977 and 1987. Windshear was detected using a simple vector difference algorithm, triggering an alarm when the magnitude of the difference vector between the center field anemometer and any of the five remotes exceeded 15 knots. The LLWAS II deployment included software and hardware upgrades to the existing LLWAS I to improve the windshear detection and reduce false alarms. Between 1988 and 1991, all of the LLWAS I systems were upgraded to be LLWAS II compliant. Windshear deployment studies conducted from 1989 through 1994 determined at which LLWAS-II sites weather exposure justified upgrade to a weather radar (Terminal Doppler Weather Radar (TDWR) or Weather Systems Processor (WSP)) an LLWAS Network Expansion (LLWAS-NE) or LLWAS-Relocate/Sustain (LLWAS-RS) upgrade, singly or in combination. By 2005 all LLWAS-II had been decommissioned for one of these replacement wind shear detection systems or for two in combination. The LLWAS-NE added the ability to cover more than a single runway, using up to 32 remote stations to provide runway specific alerts for parallel and crossing runways at ten large airports in combination with TDWR. The LLWAS-RS further upgrades service at 40 remaining LLWAS-2 operating sites (not justified for a radar solution) to employ LLWAS-NE algorithms and extend service life by 20 years, in part by adding ultrasonic anemometers with no moving parts. The LLWAS-RS program began in response to the National Transportation Safety Board (NTSB) investigation of the USAir Flight 1016 accident at Charlotte, North Carolina, in 1994. From that accident, a determination was made that LLWAS-II must regain and retain its original capability, often degraded by tree growth and airport construction such as hangars that obstruct or deflect wind near LLWAS remote station sensors. See also Terminal Doppler Weather Radar Airborne wind shear detection and alert system Center Weather Service Unit NEXRAD References External links Low Level Windshear Alert System – Relocation/Sustainment LLWAS History, System Description, Guide to Literature Meteorological instrumentation and equipment Runway safety Meteorological data and networks