text
stringlengths 1
22.8M
|
|---|
```asciidoc
xref::overview/apoc.nlp/apoc.nlp.gcp.entities.graph.adoc[apoc.nlp.gcp.entities.graph icon:book[]] +
`Creates a (virtual) entity graph for provided text`
label:procedure[]
label:apoc-full[]
```
|
Chandravadan Chimanlal Mehta (6 April 1901 – 4 May 1991), popularly known as C. C. Mehta or Chan. Chi. Mehta, was a Gujarati playwright, theatre critic, bibliographer, poet, story writer, autobiographer, travel writer and broadcaster from Vadodara, Gujarat, India.
Biography
Chandravadan Mehta was born on 6 April 1901 in Surat. His primary education was in Vadodara and secondary education in Surat. He matriculated in 1919 and completed B. A. in Gujarati from the Elphinstone College, Bombay (now Mumbai) in 1924. In 1928, he joined Mahatma Gandhi in the Bardoli Satyagraha. He also joined Navbharat daily as an editor in 1928. From 1933 to 1936, he taught at New Era High School, Mumbai.
He joined the All India Radio (AIR)-Bombay in 1938 and became the director of AIR-Ahmedabad in 1954. During his tenure, he developed the broadcasting culture in Gujarat, wrote and produced several radio plays and documentaries with directors like Adi Marzban and others. After retirement, he was associated with the performing arts departments of the Maharaja Sayajirao University of Baroda and the Gujarat Vidyapith. He pioneered the theatre education in India and started diploma and degree courses in theatre in the Maharaja Sayajirao University of Baroda. He represented India in the international theatre fora.
He married Vilas in 1925. They divorced in 1938. He died on 4 May 1991.
Works
Mehta is considered as the pioneer of the modern Gujarati theatre. His plays are focused on the stagecraft which has diversity of subjects including tragedy, comedy, satire as well as historical, social, mythological, biographical plays.
Theatre and plays
In early 1920, he presented two unscripted soliloquies which created a stir. He criticized and led a protest against the depiction of women in College Kanya (College Girl, 1925), a play produced by the Mumbai Gujarati Natak Mandali.
Mehta wrote over 25 plays, numerous one-act plays and radio plays. He, along with his friends, wrote and produced several realistic plays such as Akho (1927), Agagadi (1933, translated as Iron Road in 1970), Narmad (1937) and Dhara Gurjari (Land of Gujarat, 1944, published 1968). Aagagadi, about an ailing fireman, marked the rise of amateur theatre movement in the Gujarati theatre. His other published plays include Mungi Stree (1927), Akho, Varvahu ane Bija Natako (1933), Ramakadani Dukan (1934), Nagabava (1937), Premnu Moti Ane Bija Natako (1937), Sita (1943), Mazamrat (Dark Mindnight, 1955), Hololika (1956, published 1957) and Savitri- a dramatization of Sri Aurobindo's Savitri. Hololika, written in format of Bhavai, a traditional Gujarati theatre form, is a satire on the corrupt judicial system. He also published following plays: Shikharini (1946), Panjarapol (1947), Mena Popat Athva Hathighoda (1951), Rangbhandar (1953), Sonavatakdi (1955), Madira (Media) (1955), Kishor Natako Part 1-2 (1956), Kapoorno Deevo (1960), Param Maheshwar (1960), Sati (1960), Karoliyanu Jalu (1961), Shakuntala Athva Kanyaviday (1966), Andar Andar (1969), Abola Rani (1972), Santakukadi (1972), Chandravadan Mehtana Pratinidhi Ekankio (1974), Antar-Bahir Ane Bija Natako (1975). He extensively wrote on the history of Gujarati theatre and production techniques.
Theatre criticism
His expertise in theatre and stagecraft as well as his extensive knowledge of international theatre is visible in his works of theatre criticism. He had written eleven works on theatre criticism: Kavishri Nanalalna Natako Ane Akbarshahni Rangbhumi Par Rajuat (1959), Natak Bhajavata (1962), Lyric (1962), Lyric Ane Lagarik (1965), Natyarang (1973), American Theatre (1974), Europe na Deshoni Natyashrishti (1974), Japannu Theatre (1975), Vak (1975), Ekanki: Kyare Kya Ane Keva Uprant Bija Natyavishayak Lekho.
Theatre bibliography
His Bibliography of Stagable Plays in Indian Languages Part 1-2 (1964, 1965) is his work of theatre research which received acclaim for him in the theatre of Europe. It has an extensive list of plays written and staged in India in the 19th and 20th century arranged according to years, writers and characters. It took ten years to prepare this bibliography.
Poetry
Yamal (1926) is a collection of 14 sonnets. Elakavyo (1933) is 35 sonnets including a reprint of Yamal and a series of sonnets from Kanchanjangha. Chandarana (1935) is a collection of children's poetry. Ratan (1937) is a 1636 stanza long narrative poem in Prithvi metre. The poem depicts the sacrifice and death of a sister named Ratan. Rudo Rabari (1940) is his other narrative poem. Chado Re Shikhar Raja Ramna (1975) has 20 poems including unique poems such as "O New York" and "Colloquial Gujarati Kavita".
Stories
Khamma Bapu (1950) and Vatchakaravo (1967) are his short story collections. Mangalmayi (1975) has three true stories. He also wrote a novel Jeevati Putalio.
Prose
His prose writings include his twelve-volume autobiographical and travel writings, Gathariyan (Travel Bags) which were in unusual prose and simple language. These volumes are Bandh Gathariyan Part 1-2 (1954), Chhod Gathariyan (1956), Safar Gathariyan (1956), Bhamiye Gujarat Na Relpate Na Vate (1962), Rang Gathariyan (1965), Roop Gathariyan (1965), Natya Gathariyan (on theatre, 1971), Antar Gathariyan Part 1-2 (1973), Dhruv Gathariyan (1976) and Ganth Gathariyan (1976).
Other works
His other works include Radio Roopako, Premno Tant, Navbharatna Bhagyavidhata Sardar Vallabhbhaina Jeevan Par Bar Roopako. Mehta had composed the anthem of the Maharaja Sayajirao University of Baroda. He translated Cervantes's Don Quixote into Gujarati.
Legacy
In 1960, at Vienna Conference at the International Theatre Institute under the aegis of UNESCO, he moved a resolution to celebrate 27 March, as the World Theatre Day. Gujarati writer Raghuveer Chaudhari wrote a play, Trijo Purush, based on his life.
Awards
He received the Ranjitram Suvarna Chandrak in 1936 and the Narmad Suvarna Chandrak in 1942. He rejected the Kumar Chandrak awarded to him in 1950. In 1962, he was awarded the Padma Shri by the Government of India.
He won the 1971 Sahitya Akademi Award for Gujarati language for his autobiographical travelogue Natya Gathariyan. He was also awarded the Sangeet Natak Akademi Award for playwriting in Gujarati in 1971. In 1984, he was awarded the Sangeet Natak Akademi Fellowship, the highest honour conferred by the Sangeet Natak Akademi. He received Sahitya Gaurav Puraskar for the year 1991.
See also
List of Gujarati-language writers
References
External links
1901 births
1991 deaths
Gujarati people
People from Vadodara
Indian male dramatists and playwrights
Gujarati-language writers
Recipients of the Sahitya Akademi Award in Gujarati
Recipients of the Sangeet Natak Akademi Award
Recipients of the Sangeet Natak Akademi Fellowship
Gujarati theatre
20th-century Indian dramatists and playwrights
Elphinstone College alumni
Recipients of the Padma Shri in literature & education
Writers from Gujarat
Recipients of the Ranjitram Suvarna Chandrak
20th-century Indian male writers
20th-century Indian short story writers
Poets from Gujarat
Indian theatre critics
Indian theatre directors
Indian theatre managers and producers
Indian autobiographers
Indian travel writers
Indian broadcasters
Maharaja Sayajirao University of Baroda alumni
Indian independence activists from Gujarat
Gujarati-language poets
20th-century Indian poets
Translators of Don Quixote
|
Steve Kuzmicich (2 November 1931 - 14 June 2018) was a statistician from New Zealand and was Government Statistician of New Zealand from 1984 to 1992.
References
1931 births
2018 deaths
Government Statisticians of New Zealand
New Zealand mathematicians
New Zealand statisticians
20th-century New Zealand public servants
|
```c
/***
*strstr.c - search for one string inside another
*
*
* The information and source code contained herein is the exclusive
* property of Intel Corporation and may not be disclosed, examined
* or reproduced in whole or in part without explicit written authorization
* from the company.
*
*Purpose:
* defines strstr() - search for one string inside another
*
*******************************************************************************/
#include <vcruntime_internal.h>
#include <intrin.h>
#include <limits.h>
// These flags select the operation performed by _mm_cmp?str? functions.
// PCMPxSTRx character type
#define f_pcmp_ub 0x00
#define f_pcmp_uw 0x01
#define f_pcmp_sb 0x02
#define f_pcmp_sw 0x03
// PCMPxSTRx aggregation operation
#define f_pcmp_ea 0x00
#define f_pcmp_rng 0x04
#define f_pcmp_ee 0x08
#define f_pcmp_eo 0x0C
// PCMPxSTRx result polarity
#define f_pcmp_pp 0x00
#define f_pcmp_np 0x10
#define f_pcmp_mp 0x20
#define f_pcmp_mn 0x30
// PCMPxSTRI index order
#define f_pcmp_ls 0x00
#define f_pcmp_ms 0x40
// PCMPxSTRM result unit size
#define f_pcmp_bit 0x00
#define f_pcmp_byte 0x40
// Define flag combinations to use.
#define f_srch_sub (f_pcmp_ub | f_pcmp_eo | f_pcmp_pp | f_pcmp_ls)
#define XMM_SIZE sizeof(__m128i)
#define XMM_CHARS (XMM_SIZE / sizeof(char))
#define XMM_OFFSET(p) ((sizeof(__m128i) - 1) & (intptr_t)(p))
#define XMM_ALIGNED(p) (0 == XMM_OFFSET(p))
#define PAGE_SIZE ((intptr_t)0x1000)
#define PAGE_OFFSET(p) ((PAGE_SIZE-1) & (intptr_t)(p))
#define XMM_PAGE_SAFE(p) (PAGE_OFFSET(p) <= (PAGE_SIZE - XMM_SIZE))
/***
*char *strstr(string1, string2) - search for string2 in string1
*
*Purpose:
* finds the first occurrence of string2 in string1
*
*Entry:
* char *string1 - string to search in
* char *string2 - string to search for
*
*Exit:
* returns a pointer to the first occurrence of string2 in
* string1, or NULL if string2 does not occur in string1
*
*Uses:
*
*Exceptions:
*
*******************************************************************************/
char * __cdecl strstr (
const char * str1,
const char * str2
)
{
const char *stmp1, *stmp2;
__m128i zero, pattern, characters1, characters2;
// An empty search string matches everything.
if (0 == *str2)
return (char *)str1;
if (__isa_available < __ISA_AVAILABLE_SSE42)
{
unsigned mask;
unsigned long offset;
// Build search pattern and zero pattern. Search pattern is
// XMMWORD with the initial character of the search string
// in every position. Zero pattern has a zero termination
// character in every position.
pattern = _mm_cvtsi32_si128((unsigned char)str2[0] | ((unsigned char)str2[0] << CHAR_BIT));
pattern = _mm_shufflelo_epi16(pattern, 0);
pattern = _mm_shuffle_epi32(pattern, 0);
zero = _mm_xor_si128(zero, zero);
// Main loop for searching str1. We look for the next character that
// matches the first character of the search string then compare to
// the end of the search string.
for (;;)
{
// If string pointer is page safe look for the next possible match
// or end. If none are found we can immediately check the next block,
// otherwise set the string pointer to the address of the significant
// character.
if (XMM_PAGE_SAFE(str1))
{
characters1 = _mm_loadu_si128((__m128i*)str1);
characters2 = _mm_cmpeq_epi8(characters1, zero);
characters1 = _mm_cmpeq_epi8(characters1, pattern);
characters1 = _mm_or_si128(characters1, characters2);
mask = _mm_movemask_epi8(characters1);
// If no character match or end found try next XMMWORD.
if (0 == mask)
{
str1 += XMM_SIZE;
continue;
}
// Advance str1 pointer to next possible match or end.
_BitScanForward(&offset, mask);
str1 += offset;
}
// If at the end of str1, then no match found.
if (0 == str1[0]) return NULL;
// If a first-character match is found compare strings to look for
// a complete match.
if (str2[0] == str1[0])
{
stmp1 = str1;
stmp2 = str2;
for (;;)
{
// If search string is aligned and searched string is page-safe
// check a character block for differences or the end of string2.
// If nothing is found then go immediately to the next block.
if (XMM_PAGE_SAFE(stmp2) && XMM_PAGE_SAFE(stmp1))
{
characters1 = _mm_loadu_si128((__m128i*)stmp1);
characters2 = _mm_loadu_si128((__m128i*)stmp2);
characters1 = _mm_cmpeq_epi8(characters1, characters2);
characters2 = _mm_cmpeq_epi8(characters2, zero);
characters1 = _mm_cmpeq_epi8(characters1, zero);
characters2 = _mm_or_si128(characters1, characters2);
mask = _mm_movemask_epi8(characters2);
// If no character difference or end found try next XMMWORD.
if (0 == mask)
{
stmp1 += XMM_SIZE;
stmp2 += XMM_SIZE;
continue;
}
// Advance string pointers to next significant character.
_BitScanForward(&offset, mask);
stmp1 += offset;
stmp2 += offset;
}
// If we've reached the end of str2 then a match has been found.
if (0 == stmp2[0]) return (char *)str1;
// If we've reached a difference then no match was found.
if (stmp1[0] != stmp2[0]) break;
// Otherwise advance to next character and try again.
++stmp1;
++stmp2;
}
}
// Current character wasn't a match, try next character.
++str1;
}
}
else
{
// SSE 4.2 supported, search & compare 16 bytes at a time if possible.
char c;
unsigned i;
// Load XMM with first characters of str2.
if (XMM_PAGE_SAFE(str2))
{
pattern = _mm_loadu_si128((__m128i*)str2);
}
else
{
pattern = _mm_xor_si128(pattern, pattern);
c = *(stmp2 = str2);
for (i = 0; i < XMM_CHARS; ++i)
{
pattern = _mm_srli_si128(pattern, sizeof(char));
pattern = _mm_insert_epi8(pattern, c, (XMM_CHARS-1));
if (0 != c) c = *++stmp2;
}
}
for(;;)
{
// Check for partial match, if none step forward and continue.
if (XMM_PAGE_SAFE(str1))
{
characters1 = _mm_loadu_si128((__m128i*)str1);
// If no potential match or end found, try next XMMWORD.
if (_mm_cmpistra(pattern, characters1, f_srch_sub))
{
str1 += XMM_CHARS;
continue;
}
// If end found there was no match.
else if (!_mm_cmpistrc(pattern, characters1, f_srch_sub))
{
return NULL;
}
// Get position of potential match.
str1 += _mm_cmpistri(pattern, characters1, f_srch_sub);
}
else
{
// If end of string found there was no match.
if (0 == *str1)
{
return NULL;
}
// If current character doesn't match first character
// of search string try next character.
if (*str1 != *str2)
{
++str1;
continue;
}
}
// Potential match, compare to check for full match.
stmp1 = str1;
stmp2 = str2;
for (;;)
{
// If next XMMWORD is page-safe for each string
// do a XMMWORD comparison.
if (XMM_PAGE_SAFE(stmp1) && XMM_PAGE_SAFE(stmp2))
{
characters1 = _mm_loadu_si128((__m128i*)stmp1);
characters2 = _mm_loadu_si128((__m128i*)stmp2);
// If unequal then no match found.
if (!_mm_cmpistro(characters2, characters1, f_srch_sub))
{
break;
}
// If end of search string then match found.
else if (_mm_cmpistrs(characters2, characters1, f_srch_sub))
{
return (char *)str1;
}
stmp1 += XMM_CHARS;
stmp2 += XMM_CHARS;
}
// Compare next character.
else
{
// If end of search string then match found.
if (0 == *stmp2)
{
return (char *)str1;
}
// If unequal then no match found.
if (*stmp1 != *stmp2)
{
break;
}
// Character matched - try next character.
++stmp1;
++stmp2;
}
}
// Match not found at current position, try next.
++str1;
}
}
}
```
|
Heinrich Eggestein (born around 1415/1420 in Rosheim, Alsace; died 1488 or later; also spelled Eckstein or Eggesteyn) is considered, along with Johannes Mentelin, to be the earliest book printer in Strasbourg and therefore one of the earliest anywhere in Europe outside Mainz.
Life
Before he came to Strasbourg in the beginning of the 1440s, Heinrich Eggestein had already acquired the academic degree of a Magister artium liberalium at a university which is still unknown. Already shortly after his arrival, he entered the service of Bishop Rupert of Palatinate-Simmern and held the office of Siegelbewahrer (keeper of the seal, also called Insiegler or Siegelträger) at the Strasbourg provost court, which he lost again in 1455. In 1461, this office was again given to him and three years later, he lost it for the last time.
He got the rights of a Strasbourg citizen in 1442. It is assumed that Eggestein became personally acquainted with Johannes Gutenberg, the later inventor of printing books with movable type, during his stay in Strasbourg in the 1440s and that he was able to form a lasting bond with him.
It is highly likely that Eggestein even travelled to Mainz himself in the 1450s to learn the art of book printing from Gutenberg. When this was and how long the stay lasted cannot be definitely resolved, due to sketchy source materials. holds the view that Eggestein was already in Mainz in 1454 and that might be why he lost the office of Siegelbewahrer in Strasbourg in 1455. If this were the case, then he could have watched the printing of the 42-line-per-page Gutenberg Bible firsthand. Geldner further suspects that Heinrich Eggestein actively participated in the typesetting and printing of the Türkenkalender, which was completed in the middle of December in 1454. He did not give up his Strasbourg citizen's rights until August 1457, however. If he had left Alsace so late, he would have admittedly arrived in Mainz after the break between Gutenberg and Johann Fust.
Heinrich Eggestein's return to Strasbourg is certainly verified, as he again got the rights of citizenship on 9 August 1459. However, it is not known whether and in what way Eggestein might have participated in the printing shop operated by Johannes Metelin in Strasbourg. It is indisputable, however, that the two men knew each other and had a close relationship. It is even thought to be possible that Mentelin and Eggestein swore to keep their knowledge of the art of book printing a secret, through an agreement which has unfortunately not been preserved.
The decision to found his own printery may have been made in the time around 1464, when Eggestein lost his office of Siegelbewahrer for the second time, possibly in connection with the setting up of the Offizin (an old German term for a book printery). On 31 March 1466 the printer received a Schutzbrief of the Elector Frederick I of the Palatinate, giving him special protection, somewhat like a patent. His first larger work is considered to be a Latin Bible, which must have been produced before 24 May 1466.
Although his printery was quickly able to establish itself in the market, Heinrich Eggestein got into financial difficulties towards the end of the 1470s. He was indebted to the Basel paper merchant, Anton Galliciani, and was successfully sued by him in 1480 for the immediate payment of all outstanding debts. On 24 April 1483 Eggestein finally gave up his rights as a citizen of Strasbourg. The last printed works which were made by him or with his type were popular prints. He was no longer mentioned after 1488. The date and circumstances of his death are unknown.
Printings
Heinrich Eggestein's activities as a book printer can be established from 1464 until 1488. During these 25 years, he published a wealth of printed works with varied content. After his first work, the Bible of 1466 which has already been mentioned, he printed two further Latin folio editions of the Holy Scriptures. In this connection, the Strasbourg printer also used modern marketing methods. Eggestein's book advertisement of 1468/70, which promoted his third edition of the Bible, is considered to be the oldest pamphlet of this kind, along with the advertisements of Mentelin and Schöffer.
At the beginning of the 1470s, he began to expand his printing and publishing range. Besides theological works, Eggestein now increasingly printed legal works of canon and civil law, such as the Decretum Gratiani (1471), as well as the Decretales of Gregory IX and the Constitutiones of Pope Clement V. That put him in direct competition with Peter Schöffer, who also issued legal titles in on a large scale. Furthermore, Heinrich Eggestein printed antique classics (e.g., Virgil's Bucolica, Cicero's De officiis or Julius Caesar's De bello gallico), but directed his special interest to Latin works of Medieval authors. Thus he published the Legenda aurea of Jacobus de Voragine, De miseria conditionis humanae by Pope Innocent III, as well as works by Bonaventura and Bernhard von Clairvaux, among others. German language titles were quite rare in his range. An important exception to that is the second German Bible, based on the , which Eggestein published in 1470. Further vernacular titles were Lucius Apuleius' The Golden Ass (Translator: Niklas von Wyle) and an edition of Belial.
Literature
In German
P. Amelung: Heinrich Eggestein. In. Lexikon des gesamten Buchwesens (LGB). Publ. by Severin Corsten. 2nd new, completely revised and expanded edition. Vol. II. Hiersemann, Stuttgart 1989. p. 420-421.
F. Geldner: Die deutschen Inkunabeldrucker. Ein Handbuch der deutschen Buchdrucker des XV. Jahrhunderts nach Druckorten. Teil 1. Das deutsche Sprachgebiet. Hiersemann, Stuttgart 1968.
F. Geldner: Inkunabelkunde. Eine Einführung in die Welt des frühesten Buchdrucks. Reichert, Wiesbaden 1978.
E. Voulliéme: Die deutschen Drucker des fünfzehnten Jahrhunderts. Verlag der Reichdruckerei, Berlin 1922
References
External links
15th-century births
1488 deaths
People from Rosheim
Alsatian-German people
Printers of incunabula
German typographers and type designers
German printers
German calligraphers
|
```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.engine.delegate;
import java.util.Map;
import org.flowable.bpmn.model.FlowElement;
/**
* @author Yvo Swillens
*/
public interface TransactionDependentExecutionListener extends BaseExecutionListener {
String ON_TRANSACTION_BEFORE_COMMIT = "before-commit";
String ON_TRANSACTION_COMMITTED = "committed";
String ON_TRANSACTION_ROLLED_BACK = "rolled-back";
void notify(String processInstanceId, String executionId, FlowElement flowElement,
Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap);
}
```
|
Zi is the seventh studio album by Negură Bunget, released on September 30, 2016, by Lupus Lounge, a sub-label of Prophecy Productions.
Track listing
Personnel
Negură Bunget
Negru – drums, percussion, dulcimer, tulnic
Ovidiu Corodan – bass
Petrică Ionuţescu – flute, nai, kaval, tulnic
Adi "OQ" Neagoe – guitars, vocals, keyboards
Tibor Kati – vocals, guitars, keyboards, programming
Other staff
Alin Luculescu – mastering
Anita Ramona – design
Daniel Dorobanțu – cover art
Mihai Neagoe – mixing, producer
References
Negură Bunget albums
2016 albums
|
Mohammed Nasser Ahmed (; born 1950) is a Yemeni major general, who was the defense minister of Yemen between 2006 and 2014.
Education
Ahmed was born on 1 January 1950 in Na`ab, Mudiyah District, Abyan Governorate. He holds a master's degree in military science.
Career
Ahmed served in various capacities in Yemeni army and ministry of defense until 1994. That year he became director of logistics and supply. He later joined the Congress Party. He was appointed defense minister by President Ali Abdullah Saleh in February 2006. He succeeded Abdullah Ali Alewa in the post.
Later Ahmed began to cooperate with future President Abed Rabbo Mansour Hadi. Ahmed retained his post in the government formed on 7 December 2012 after Saleh was removed from office. The so-called national reconciliation government was headed by prime minister Muhammad Salim Basindwah.
Assassination attempts
Ahmed survived an assassination attempt on 27 September 2011 in Aden. He escaped another assassination attempt unhurt in Sanaa on 11 September 2012. However, the attack killed at least 13 people. He escaped an ambush by al-Qaeda gunmen southeast of Sanaa on 9 May 2014.
References
1950 births
Living people
Yemeni generals
General People's Congress (Yemen) politicians
Survivors of terrorist attacks
People from Abyan Governorate
Defence ministers of Yemen
Mujawar Cabinet
Basindawa Cabinet
|
```smalltalk
namespace Asp.Versioning;
using Asp.Versioning.Routing;
using System.ComponentModel;
using System.Globalization;
using System.Web.Http;
using System.Web.Http.Controllers;
/// <summary>
/// Represents current API versioning request properties.
/// </summary>
public class ApiVersionRequestProperties
{
private readonly HttpRequestMessage request;
private IReadOnlyList<string>? rawApiVersions;
private ApiVersion? apiVersion;
/// <summary>
/// Initializes a new instance of the <see cref="ApiVersionRequestProperties"/> class.
/// </summary>
/// <param name="request">The current <see cref="HttpRequestMessage">HTTP request</see>.</param>
public ApiVersionRequestProperties( HttpRequestMessage request ) => this.request = request;
/// <summary>
/// Gets or sets the name of the route parameter containing the API Version value.
/// </summary>
/// <value>The name of the API version route parameter or <c>null</c>.</value>
/// <remarks>This property will be <c>null</c> unless versioning by URL segment and the incoming request
/// matches the <see cref="ApiVersionRouteConstraint">API version route constraint</see>.</remarks>
public string? RouteParameter { get; set; }
/// <summary>
/// Gets or sets the raw, unparsed API versions for the current request.
/// </summary>
/// <value>The unparsed API version values for the current request.</value>
public IReadOnlyList<string> RawRequestedApiVersions
{
get => rawApiVersions ??= request.GetApiVersioningOptions().ApiVersionReader.Read( request );
set => rawApiVersions = value.ToArray();
}
/// <summary>
/// Gets or sets the raw, unparsed API version for the current request.
/// </summary>
/// <value>The unparsed API version value for the current request.</value>
public string? RawRequestedApiVersion
{
get
{
var values = RawRequestedApiVersions;
return values.Count switch
{
0 => default,
1 => values[0],
_ => throw new AmbiguousApiVersionException(
string.Format( CultureInfo.CurrentCulture, CommonSR.MultipleDifferentApiVersionsRequested, string.Join( ", ", values ) ),
values ),
};
}
set
{
rawApiVersions = string.IsNullOrEmpty( value ) ? default : new[] { value! };
}
}
/// <summary>
/// Gets or sets the API version for the current request.
/// </summary>
/// <value>The current <see cref="RequestedApiVersion">API version</see> for the current request.</value>
/// <remarks>If an API version was not provided for the current request or the value
/// provided is invalid, this property will return <c>null</c>.</remarks>
public ApiVersion? RequestedApiVersion
{
get
{
if ( apiVersion is not null )
{
return apiVersion;
}
var value = RawRequestedApiVersion;
if ( string.IsNullOrEmpty( value ) )
{
return apiVersion;
}
var parser = request.GetConfiguration().GetApiVersionParser();
try
{
apiVersion = parser.Parse( value );
}
catch ( FormatException )
{
apiVersion = default;
}
return apiVersion;
}
set => apiVersion = value;
}
/// <summary>
/// Gets or sets the controller selected during a request.
/// </summary>
/// <value>The <see cref="HttpControllerDescriptor">controller</see> select during a request.
/// The default value is <c>null</c>.</value>
/// <remarks>This API is meant for infrastructure and should not be used by application code.</remarks>
[EditorBrowsable( EditorBrowsableState.Never )]
public HttpControllerDescriptor? SelectedController { get; set; }
}
```
|
Mount Copaja or Capaja (Cerro Capaja) is a mountain in the western Andes, located in the province of Oruro, Bolivia (c. 18°09'S, 68°22'W). It has an altitude of and is in the neighbourhood of the higher Lliscaya and Curumane peaks.
References
List of peaks in the Andes
GEONet Name Server database
List of mountains of Bolivia
Copaja
|
```python
"""
Ported using Python-Future from the Python 3.3 standard library.
Parse (absolute and relative) URLs.
urlparse module is based upon the following RFC specifications.
RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding
and L. Masinter, January 2005.
RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
and L.Masinter, December 1999.
RFC 2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T.
Berners-Lee, R. Fielding, and L. Masinter, August 1998.
RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June
1995.
RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
McCahill, December 1994
RFC 3986 is considered the current standard and any future changes to
urlparse module should conform with it. The urlparse module is
currently not entirely compliant with this RFC due to defacto
scenarios for parsing, and for backward compatibility purposes, some
parsing quirks from older RFCs are retained. The testcases in
test_urlparse.py provides a good indicator of parsing behavior.
"""
from __future__ import absolute_import, division, unicode_literals
from future.builtins import bytes, chr, dict, int, range, str
from future.utils import raise_with_traceback
import re
import sys
import collections
__all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag",
"urlsplit", "urlunsplit", "urlencode", "parse_qs",
"parse_qsl", "quote", "quote_plus", "quote_from_bytes",
"unquote", "unquote_plus", "unquote_to_bytes"]
# A classification of schemes ('' means apply by default)
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
'wais', 'file', 'https', 'shttp', 'mms',
'prospero', 'rtsp', 'rtspu', '', 'sftp',
'svn', 'svn+ssh']
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
'svn', 'svn+ssh', 'sftp', 'nfs', 'git', 'git+ssh']
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
'mms', '', 'sftp', 'tel']
# These are not actually used anymore, but should stay for backwards
# compatibility. (They are undocumented, but have a public-looking name.)
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
uses_query = ['http', 'wais', 'imap', 'https', 'shttp', 'mms',
'gopher', 'rtsp', 'rtspu', 'sip', 'sips', '']
uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
'nntp', 'wais', 'https', 'shttp', 'snews',
'file', 'prospero', '']
# Characters valid in scheme names
scheme_chars = ('abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'0123456789'
'+-.')
# XXX: Consider replacing with functools.lru_cache
MAX_CACHE_SIZE = 20
_parse_cache = {}
def clear_cache():
"""Clear the parse cache and the quoters cache."""
_parse_cache.clear()
_safe_quoters.clear()
# Helpers for bytes handling
# For 3.2, we deliberately require applications that
# handle improperly quoted URLs to do their own
# decoding and encoding. If valid use cases are
# presented, we may relax this by using latin-1
# decoding internally for 3.3
_implicit_encoding = 'ascii'
_implicit_errors = 'strict'
def _noop(obj):
return obj
def _encode_result(obj, encoding=_implicit_encoding,
errors=_implicit_errors):
return obj.encode(encoding, errors)
def _decode_args(args, encoding=_implicit_encoding,
errors=_implicit_errors):
return tuple(x.decode(encoding, errors) if x else '' for x in args)
def _coerce_args(*args):
# Invokes decode if necessary to create str args
# and returns the coerced inputs along with
# an appropriate result coercion function
# - noop for str inputs
# - encoding function otherwise
str_input = isinstance(args[0], str)
for arg in args[1:]:
# We special-case the empty string to support the
# "scheme=''" default argument to some functions
if arg and isinstance(arg, str) != str_input:
raise TypeError("Cannot mix str and non-str arguments")
if str_input:
return args + (_noop,)
return _decode_args(args) + (_encode_result,)
# Result objects are more helpful than simple tuples
class _ResultMixinStr(object):
"""Standard approach to encoding parsed results from str to bytes"""
__slots__ = ()
def encode(self, encoding='ascii', errors='strict'):
return self._encoded_counterpart(*(x.encode(encoding, errors) for x in self))
class _ResultMixinBytes(object):
"""Standard approach to decoding parsed results from bytes to str"""
__slots__ = ()
def decode(self, encoding='ascii', errors='strict'):
return self._decoded_counterpart(*(x.decode(encoding, errors) for x in self))
class _NetlocResultMixinBase(object):
"""Shared methods for the parsed result objects containing a netloc element"""
__slots__ = ()
@property
def username(self):
return self._userinfo[0]
@property
def password(self):
return self._userinfo[1]
@property
def hostname(self):
hostname = self._hostinfo[0]
if not hostname:
hostname = None
elif hostname is not None:
hostname = hostname.lower()
return hostname
@property
def port(self):
port = self._hostinfo[1]
if port is not None:
port = int(port, 10)
# Return None on an illegal port
if not ( 0 <= port <= 65535):
return None
return port
class _NetlocResultMixinStr(_NetlocResultMixinBase, _ResultMixinStr):
__slots__ = ()
@property
def _userinfo(self):
netloc = self.netloc
userinfo, have_info, hostinfo = netloc.rpartition('@')
if have_info:
username, have_password, password = userinfo.partition(':')
if not have_password:
password = None
else:
username = password = None
return username, password
@property
def _hostinfo(self):
netloc = self.netloc
_, _, hostinfo = netloc.rpartition('@')
_, have_open_br, bracketed = hostinfo.partition('[')
if have_open_br:
hostname, _, port = bracketed.partition(']')
_, have_port, port = port.partition(':')
else:
hostname, have_port, port = hostinfo.partition(':')
if not have_port:
port = None
return hostname, port
class _NetlocResultMixinBytes(_NetlocResultMixinBase, _ResultMixinBytes):
__slots__ = ()
@property
def _userinfo(self):
netloc = self.netloc
userinfo, have_info, hostinfo = netloc.rpartition(b'@')
if have_info:
username, have_password, password = userinfo.partition(b':')
if not have_password:
password = None
else:
username = password = None
return username, password
@property
def _hostinfo(self):
netloc = self.netloc
_, _, hostinfo = netloc.rpartition(b'@')
_, have_open_br, bracketed = hostinfo.partition(b'[')
if have_open_br:
hostname, _, port = bracketed.partition(b']')
_, have_port, port = port.partition(b':')
else:
hostname, have_port, port = hostinfo.partition(b':')
if not have_port:
port = None
return hostname, port
from collections import namedtuple
_DefragResultBase = namedtuple('DefragResult', 'url fragment')
_SplitResultBase = namedtuple('SplitResult', 'scheme netloc path query fragment')
_ParseResultBase = namedtuple('ParseResult', 'scheme netloc path params query fragment')
# For backwards compatibility, alias _NetlocResultMixinStr
# ResultBase is no longer part of the documented API, but it is
# retained since deprecating it isn't worth the hassle
ResultBase = _NetlocResultMixinStr
# Structured result objects for string data
class DefragResult(_DefragResultBase, _ResultMixinStr):
__slots__ = ()
def geturl(self):
if self.fragment:
return self.url + '#' + self.fragment
else:
return self.url
class SplitResult(_SplitResultBase, _NetlocResultMixinStr):
__slots__ = ()
def geturl(self):
return urlunsplit(self)
class ParseResult(_ParseResultBase, _NetlocResultMixinStr):
__slots__ = ()
def geturl(self):
return urlunparse(self)
# Structured result objects for bytes data
class DefragResultBytes(_DefragResultBase, _ResultMixinBytes):
__slots__ = ()
def geturl(self):
if self.fragment:
return self.url + b'#' + self.fragment
else:
return self.url
class SplitResultBytes(_SplitResultBase, _NetlocResultMixinBytes):
__slots__ = ()
def geturl(self):
return urlunsplit(self)
class ParseResultBytes(_ParseResultBase, _NetlocResultMixinBytes):
__slots__ = ()
def geturl(self):
return urlunparse(self)
# Set up the encode/decode result pairs
def _fix_result_transcoding():
_result_pairs = (
(DefragResult, DefragResultBytes),
(SplitResult, SplitResultBytes),
(ParseResult, ParseResultBytes),
)
for _decoded, _encoded in _result_pairs:
_decoded._encoded_counterpart = _encoded
_encoded._decoded_counterpart = _decoded
_fix_result_transcoding()
del _fix_result_transcoding
def urlparse(url, scheme='', allow_fragments=True):
"""Parse a URL into 6 components:
<scheme>://<netloc>/<path>;<params>?<query>#<fragment>
Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
Note that we don't break the components up in smaller bits
(e.g. netloc is a single string) and we don't expand % escapes."""
url, scheme, _coerce_result = _coerce_args(url, scheme)
splitresult = urlsplit(url, scheme, allow_fragments)
scheme, netloc, url, query, fragment = splitresult
if scheme in uses_params and ';' in url:
url, params = _splitparams(url)
else:
params = ''
result = ParseResult(scheme, netloc, url, params, query, fragment)
return _coerce_result(result)
def _splitparams(url):
if '/' in url:
i = url.find(';', url.rfind('/'))
if i < 0:
return url, ''
else:
i = url.find(';')
return url[:i], url[i+1:]
def _splitnetloc(url, start=0):
delim = len(url) # position of end of domain part of url, default is end
for c in '/?#': # look for delimiters; the order is NOT important
wdelim = url.find(c, start) # find first of this delim
if wdelim >= 0: # if found
delim = min(delim, wdelim) # use earliest delim position
return url[start:delim], url[delim:] # return (domain, rest)
def urlsplit(url, scheme='', allow_fragments=True):
"""Parse a URL into 5 components:
<scheme>://<netloc>/<path>?<query>#<fragment>
Return a 5-tuple: (scheme, netloc, path, query, fragment).
Note that we don't break the components up in smaller bits
(e.g. netloc is a single string) and we don't expand % escapes."""
url, scheme, _coerce_result = _coerce_args(url, scheme)
allow_fragments = bool(allow_fragments)
key = url, scheme, allow_fragments, type(url), type(scheme)
cached = _parse_cache.get(key, None)
if cached:
return _coerce_result(cached)
if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth
clear_cache()
netloc = query = fragment = ''
i = url.find(':')
if i > 0:
if url[:i] == 'http': # optimize the common case
scheme = url[:i].lower()
url = url[i+1:]
if url[:2] == '//':
netloc, url = _splitnetloc(url, 2)
if (('[' in netloc and ']' not in netloc) or
(']' in netloc and '[' not in netloc)):
raise ValueError("Invalid IPv6 URL")
if allow_fragments and '#' in url:
url, fragment = url.split('#', 1)
if '?' in url:
url, query = url.split('?', 1)
v = SplitResult(scheme, netloc, url, query, fragment)
_parse_cache[key] = v
return _coerce_result(v)
for c in url[:i]:
if c not in scheme_chars:
break
else:
# make sure "url" is not actually a port number (in which case
# "scheme" is really part of the path)
rest = url[i+1:]
if not rest or any(c not in '0123456789' for c in rest):
# not a port number
scheme, url = url[:i].lower(), rest
if url[:2] == '//':
netloc, url = _splitnetloc(url, 2)
if (('[' in netloc and ']' not in netloc) or
(']' in netloc and '[' not in netloc)):
raise ValueError("Invalid IPv6 URL")
if allow_fragments and '#' in url:
url, fragment = url.split('#', 1)
if '?' in url:
url, query = url.split('?', 1)
v = SplitResult(scheme, netloc, url, query, fragment)
_parse_cache[key] = v
return _coerce_result(v)
def urlunparse(components):
"""Put a parsed URL back together again. This may result in a
slightly different, but equivalent URL, if the URL that was parsed
originally had redundant delimiters, e.g. a ? with an empty query
(the draft states that these are equivalent)."""
scheme, netloc, url, params, query, fragment, _coerce_result = (
_coerce_args(*components))
if params:
url = "%s;%s" % (url, params)
return _coerce_result(urlunsplit((scheme, netloc, url, query, fragment)))
def urlunsplit(components):
"""Combine the elements of a tuple as returned by urlsplit() into a
complete URL as a string. The data argument can be any five-item iterable.
This may result in a slightly different, but equivalent URL, if the URL that
was parsed originally had unnecessary delimiters (for example, a ? with an
empty query; the RFC states that these are equivalent)."""
scheme, netloc, url, query, fragment, _coerce_result = (
_coerce_args(*components))
if netloc or (scheme and scheme in uses_netloc and url[:2] != '//'):
if url and url[:1] != '/': url = '/' + url
url = '//' + (netloc or '') + url
if scheme:
url = scheme + ':' + url
if query:
url = url + '?' + query
if fragment:
url = url + '#' + fragment
return _coerce_result(url)
def urljoin(base, url, allow_fragments=True):
"""Join a base URL and a possibly relative URL to form an absolute
interpretation of the latter."""
if not base:
return url
if not url:
return base
base, url, _coerce_result = _coerce_args(base, url)
bscheme, bnetloc, bpath, bparams, bquery, bfragment = \
urlparse(base, '', allow_fragments)
scheme, netloc, path, params, query, fragment = \
urlparse(url, bscheme, allow_fragments)
if scheme != bscheme or scheme not in uses_relative:
return _coerce_result(url)
if scheme in uses_netloc:
if netloc:
return _coerce_result(urlunparse((scheme, netloc, path,
params, query, fragment)))
netloc = bnetloc
if path[:1] == '/':
return _coerce_result(urlunparse((scheme, netloc, path,
params, query, fragment)))
if not path and not params:
path = bpath
params = bparams
if not query:
query = bquery
return _coerce_result(urlunparse((scheme, netloc, path,
params, query, fragment)))
segments = bpath.split('/')[:-1] + path.split('/')
# XXX The stuff below is bogus in various ways...
if segments[-1] == '.':
segments[-1] = ''
while '.' in segments:
segments.remove('.')
while 1:
i = 1
n = len(segments) - 1
while i < n:
if (segments[i] == '..'
and segments[i-1] not in ('', '..')):
del segments[i-1:i+1]
break
i = i+1
else:
break
if segments == ['', '..']:
segments[-1] = ''
elif len(segments) >= 2 and segments[-1] == '..':
segments[-2:] = ['']
return _coerce_result(urlunparse((scheme, netloc, '/'.join(segments),
params, query, fragment)))
def urldefrag(url):
"""Removes any existing fragment from URL.
Returns a tuple of the defragmented URL and the fragment. If
the URL contained no fragments, the second element is the
empty string.
"""
url, _coerce_result = _coerce_args(url)
if '#' in url:
s, n, p, a, q, frag = urlparse(url)
defrag = urlunparse((s, n, p, a, q, ''))
else:
frag = ''
defrag = url
return _coerce_result(DefragResult(defrag, frag))
_hexdig = '0123456789ABCDEFabcdef'
_hextobyte = dict(((a + b).encode(), bytes([int(a + b, 16)]))
for a in _hexdig for b in _hexdig)
def unquote_to_bytes(string):
"""unquote_to_bytes('abc%20def') -> b'abc def'."""
# Note: strings are encoded as UTF-8. This is only an issue if it contains
# unescaped non-ASCII characters, which URIs should not.
if not string:
# Is it a string-like object?
string.split
return bytes(b'')
if isinstance(string, str):
string = string.encode('utf-8')
### For Python-Future:
# It is already a byte-string object, but force it to be newbytes here on
# Py2:
string = bytes(string)
###
bits = string.split(b'%')
if len(bits) == 1:
return string
res = [bits[0]]
append = res.append
for item in bits[1:]:
try:
append(_hextobyte[item[:2]])
append(item[2:])
except KeyError:
append(b'%')
append(item)
return bytes(b'').join(res)
_asciire = re.compile('([\x00-\x7f]+)')
def unquote(string, encoding='utf-8', errors='replace'):
"""Replace %xx escapes by their single-character equivalent. The optional
encoding and errors parameters specify how to decode percent-encoded
sequences into Unicode characters, as accepted by the bytes.decode()
method.
By default, percent-encoded sequences are decoded with UTF-8, and invalid
sequences are replaced by a placeholder character.
unquote('abc%20def') -> 'abc def'.
"""
if '%' not in string:
string.split
return string
if encoding is None:
encoding = 'utf-8'
if errors is None:
errors = 'replace'
bits = _asciire.split(string)
res = [bits[0]]
append = res.append
for i in range(1, len(bits), 2):
append(unquote_to_bytes(bits[i]).decode(encoding, errors))
append(bits[i + 1])
return ''.join(res)
def parse_qs(qs, keep_blank_values=False, strict_parsing=False,
encoding='utf-8', errors='replace'):
"""Parse a query given as a string argument.
Arguments:
qs: percent-encoded query string to be parsed
keep_blank_values: flag indicating whether blank values in
percent-encoded queries should be treated as blank strings.
A true value indicates that blanks should be retained as
blank strings. The default false value indicates that
blank values are to be ignored and treated as if they were
not included.
strict_parsing: flag indicating what to do with parsing errors.
If false (the default), errors are silently ignored.
If true, errors raise a ValueError exception.
encoding and errors: specify how to decode percent-encoded sequences
into Unicode characters, as accepted by the bytes.decode() method.
"""
parsed_result = {}
pairs = parse_qsl(qs, keep_blank_values, strict_parsing,
encoding=encoding, errors=errors)
for name, value in pairs:
if name in parsed_result:
parsed_result[name].append(value)
else:
parsed_result[name] = [value]
return parsed_result
def parse_qsl(qs, keep_blank_values=False, strict_parsing=False,
encoding='utf-8', errors='replace'):
"""Parse a query given as a string argument.
Arguments:
qs: percent-encoded query string to be parsed
keep_blank_values: flag indicating whether blank values in
percent-encoded queries should be treated as blank strings. A
true value indicates that blanks should be retained as blank
strings. The default false value indicates that blank values
are to be ignored and treated as if they were not included.
strict_parsing: flag indicating what to do with parsing errors. If
false (the default), errors are silently ignored. If true,
errors raise a ValueError exception.
encoding and errors: specify how to decode percent-encoded sequences
into Unicode characters, as accepted by the bytes.decode() method.
Returns a list, as G-d intended.
"""
qs, _coerce_result = _coerce_args(qs)
pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
r = []
for name_value in pairs:
if not name_value and not strict_parsing:
continue
nv = name_value.split('=', 1)
if len(nv) != 2:
if strict_parsing:
raise ValueError("bad query field: %r" % (name_value,))
# Handle case of a control-name with no equal sign
if keep_blank_values:
nv.append('')
else:
continue
if len(nv[1]) or keep_blank_values:
name = nv[0].replace('+', ' ')
name = unquote(name, encoding=encoding, errors=errors)
name = _coerce_result(name)
value = nv[1].replace('+', ' ')
value = unquote(value, encoding=encoding, errors=errors)
value = _coerce_result(value)
r.append((name, value))
return r
def unquote_plus(string, encoding='utf-8', errors='replace'):
"""Like unquote(), but also replace plus signs by spaces, as required for
unquoting HTML form values.
unquote_plus('%7e/abc+def') -> '~/abc def'
"""
string = string.replace('+', ' ')
return unquote(string, encoding, errors)
_ALWAYS_SAFE = frozenset(bytes(b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
b'abcdefghijklmnopqrstuvwxyz'
b'0123456789'
b'_.-'))
_ALWAYS_SAFE_BYTES = bytes(_ALWAYS_SAFE)
_safe_quoters = {}
class Quoter(collections.defaultdict):
"""A mapping from bytes (in range(0,256)) to strings.
String values are percent-encoded byte values, unless the key < 128, and
in the "safe" set (either the specified safe set, or default set).
"""
# Keeps a cache internally, using defaultdict, for efficiency (lookups
# of cached keys don't call Python code at all).
def __init__(self, safe):
"""safe: bytes object."""
self.safe = _ALWAYS_SAFE.union(bytes(safe))
def __repr__(self):
# Without this, will just display as a defaultdict
return "<Quoter %r>" % dict(self)
def __missing__(self, b):
# Handle a cache miss. Store quoted string in cache and return.
res = chr(b) if b in self.safe else '%{0:02X}'.format(b)
self[b] = res
return res
def quote(string, safe='/', encoding=None, errors=None):
"""quote('abc def') -> 'abc%20def'
Each part of a URL, e.g. the path info, the query, etc., has a
different set of reserved characters that must be quoted.
RFC 2396 Uniform Resource Identifiers (URI): Generic Syntax lists
the following reserved characters.
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
"$" | ","
Each of these characters is reserved in some component of a URL,
but not necessarily in all of them.
By default, the quote function is intended for quoting the path
section of a URL. Thus, it will not encode '/'. This character
is reserved, but in typical usage the quote function is being
called on a path where the existing slash characters are used as
reserved characters.
string and safe may be either str or bytes objects. encoding must
not be specified if string is a str.
The optional encoding and errors parameters specify how to deal with
non-ASCII characters, as accepted by the str.encode method.
By default, encoding='utf-8' (characters are encoded with UTF-8), and
errors='strict' (unsupported characters raise a UnicodeEncodeError).
"""
if isinstance(string, str):
if not string:
return string
if encoding is None:
encoding = 'utf-8'
if errors is None:
errors = 'strict'
string = string.encode(encoding, errors)
else:
if encoding is not None:
raise TypeError("quote() doesn't support 'encoding' for bytes")
if errors is not None:
raise TypeError("quote() doesn't support 'errors' for bytes")
return quote_from_bytes(string, safe)
def quote_plus(string, safe='', encoding=None, errors=None):
"""Like quote(), but also replace ' ' with '+', as required for quoting
HTML form values. Plus signs in the original string are escaped unless
they are included in safe. It also does not have safe default to '/'.
"""
# Check if ' ' in string, where string may either be a str or bytes. If
# there are no spaces, the regular quote will produce the right answer.
if ((isinstance(string, str) and ' ' not in string) or
(isinstance(string, bytes) and b' ' not in string)):
return quote(string, safe, encoding, errors)
if isinstance(safe, str):
space = str(' ')
else:
space = bytes(b' ')
string = quote(string, safe + space, encoding, errors)
return string.replace(' ', '+')
def quote_from_bytes(bs, safe='/'):
"""Like quote(), but accepts a bytes object rather than a str, and does
not perform string-to-bytes encoding. It always returns an ASCII string.
quote_from_bytes(b'abc def\x3f') -> 'abc%20def%3f'
"""
if not isinstance(bs, (bytes, bytearray)):
raise TypeError("quote_from_bytes() expected bytes")
if not bs:
return str('')
### For Python-Future:
bs = bytes(bs)
###
if isinstance(safe, str):
# Normalize 'safe' by converting to bytes and removing non-ASCII chars
safe = str(safe).encode('ascii', 'ignore')
else:
### For Python-Future:
safe = bytes(safe)
###
safe = bytes([c for c in safe if c < 128])
if not bs.rstrip(_ALWAYS_SAFE_BYTES + safe):
return bs.decode()
try:
quoter = _safe_quoters[safe]
except KeyError:
_safe_quoters[safe] = quoter = Quoter(safe).__getitem__
return str('').join([quoter(char) for char in bs])
def urlencode(query, doseq=False, safe='', encoding=None, errors=None):
"""Encode a sequence of two-element tuples or dictionary into a URL query string.
If any values in the query arg are sequences and doseq is true, each
sequence element is converted to a separate parameter.
If the query arg is a sequence of two-element tuples, the order of the
parameters in the output will match the order of parameters in the
input.
The query arg may be either a string or a bytes type. When query arg is a
string, the safe, encoding and error parameters are sent the quote_plus for
encoding.
"""
if hasattr(query, "items"):
query = query.items()
else:
# It's a bother at times that strings and string-like objects are
# sequences.
try:
# non-sequence items should not work with len()
# non-empty strings will fail this
if len(query) and not isinstance(query[0], tuple):
raise TypeError
# Zero-length sequences of all types will get here and succeed,
# but that's a minor nit. Since the original implementation
# allowed empty dicts that type of behavior probably should be
# preserved for consistency
except TypeError:
ty, va, tb = sys.exc_info()
raise_with_traceback(TypeError("not a valid non-string sequence "
"or mapping object"), tb)
l = []
if not doseq:
for k, v in query:
if isinstance(k, bytes):
k = quote_plus(k, safe)
else:
k = quote_plus(str(k), safe, encoding, errors)
if isinstance(v, bytes):
v = quote_plus(v, safe)
else:
v = quote_plus(str(v), safe, encoding, errors)
l.append(k + '=' + v)
else:
for k, v in query:
if isinstance(k, bytes):
k = quote_plus(k, safe)
else:
k = quote_plus(str(k), safe, encoding, errors)
if isinstance(v, bytes):
v = quote_plus(v, safe)
l.append(k + '=' + v)
elif isinstance(v, str):
v = quote_plus(v, safe, encoding, errors)
l.append(k + '=' + v)
else:
try:
# Is this a sufficient test for sequence-ness?
x = len(v)
except TypeError:
# not a sequence
v = quote_plus(str(v), safe, encoding, errors)
l.append(k + '=' + v)
else:
# loop over the sequence
for elt in v:
if isinstance(elt, bytes):
elt = quote_plus(elt, safe)
else:
elt = quote_plus(str(elt), safe, encoding, errors)
l.append(k + '=' + elt)
return str('&').join(l)
# Utilities to parse URLs (most of these return None for missing parts):
# unwrap('<URL:type://host/path>') --> 'type://host/path'
# splittype('type:opaquestring') --> 'type', 'opaquestring'
# splithost('//host[:port]/path') --> 'host[:port]', '/path'
# splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'
# splitpasswd('user:passwd') -> 'user', 'passwd'
# splitport('host:port') --> 'host', 'port'
# splitquery('/path?query') --> '/path', 'query'
# splittag('/path#tag') --> '/path', 'tag'
# splitattr('/path;attr1=value1;attr2=value2;...') ->
# '/path', ['attr1=value1', 'attr2=value2', ...]
# splitvalue('attr=value') --> 'attr', 'value'
# urllib.parse.unquote('abc%20def') -> 'abc def'
# quote('abc def') -> 'abc%20def')
def to_bytes(url):
"""to_bytes(u"URL") --> 'URL'."""
# Most URL schemes require ASCII. If that changes, the conversion
# can be relaxed.
# XXX get rid of to_bytes()
if isinstance(url, str):
try:
url = url.encode("ASCII").decode()
except UnicodeError:
raise UnicodeError("URL " + repr(url) +
" contains non-ASCII characters")
return url
def unwrap(url):
"""unwrap('<URL:type://host/path>') --> 'type://host/path'."""
url = str(url).strip()
if url[:1] == '<' and url[-1:] == '>':
url = url[1:-1].strip()
if url[:4] == 'URL:': url = url[4:].strip()
return url
_typeprog = None
def splittype(url):
"""splittype('type:opaquestring') --> 'type', 'opaquestring'."""
global _typeprog
if _typeprog is None:
import re
_typeprog = re.compile('^([^/:]+):')
match = _typeprog.match(url)
if match:
scheme = match.group(1)
return scheme.lower(), url[len(scheme) + 1:]
return None, url
_hostprog = None
def splithost(url):
"""splithost('//host[:port]/path') --> 'host[:port]', '/path'."""
global _hostprog
if _hostprog is None:
import re
_hostprog = re.compile('^//([^/?]*)(.*)$')
match = _hostprog.match(url)
if match:
host_port = match.group(1)
path = match.group(2)
if path and not path.startswith('/'):
path = '/' + path
return host_port, path
return None, url
_userprog = None
def splituser(host):
"""splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
global _userprog
if _userprog is None:
import re
_userprog = re.compile('^(.*)@(.*)$')
match = _userprog.match(host)
if match: return match.group(1, 2)
return None, host
_passwdprog = None
def splitpasswd(user):
"""splitpasswd('user:passwd') -> 'user', 'passwd'."""
global _passwdprog
if _passwdprog is None:
import re
_passwdprog = re.compile('^([^:]*):(.*)$',re.S)
match = _passwdprog.match(user)
if match: return match.group(1, 2)
return user, None
# splittag('/path#tag') --> '/path', 'tag'
_portprog = None
def splitport(host):
"""splitport('host:port') --> 'host', 'port'."""
global _portprog
if _portprog is None:
import re
_portprog = re.compile('^(.*):([0-9]+)$')
match = _portprog.match(host)
if match: return match.group(1, 2)
return host, None
_nportprog = None
def splitnport(host, defport=-1):
"""Split host and port, returning numeric port.
Return given default port if no ':' found; defaults to -1.
Return numerical port if a valid number are found after ':'.
Return None if ':' but not a valid number."""
global _nportprog
if _nportprog is None:
import re
_nportprog = re.compile('^(.*):(.*)$')
match = _nportprog.match(host)
if match:
host, port = match.group(1, 2)
try:
if not port: raise ValueError("no digits")
nport = int(port)
except ValueError:
nport = None
return host, nport
return host, defport
_queryprog = None
def splitquery(url):
"""splitquery('/path?query') --> '/path', 'query'."""
global _queryprog
if _queryprog is None:
import re
_queryprog = re.compile('^(.*)\?([^?]*)$')
match = _queryprog.match(url)
if match: return match.group(1, 2)
return url, None
_tagprog = None
def splittag(url):
"""splittag('/path#tag') --> '/path', 'tag'."""
global _tagprog
if _tagprog is None:
import re
_tagprog = re.compile('^(.*)#([^#]*)$')
match = _tagprog.match(url)
if match: return match.group(1, 2)
return url, None
def splitattr(url):
"""splitattr('/path;attr1=value1;attr2=value2;...') ->
'/path', ['attr1=value1', 'attr2=value2', ...]."""
words = url.split(';')
return words[0], words[1:]
_valueprog = None
def splitvalue(attr):
"""splitvalue('attr=value') --> 'attr', 'value'."""
global _valueprog
if _valueprog is None:
import re
_valueprog = re.compile('^([^=]*)=(.*)$')
match = _valueprog.match(attr)
if match: return match.group(1, 2)
return attr, None
```
|
Skaraszów is a village in the administrative district of Gmina Zamość, within Zamość County, Lublin Voivodeship, in eastern Poland. It lies approximately south-west of Zamość and south-east of the regional capital Lublin.
History
The village was founded at the beginning of the 19th century under the name of Skaraszów. Skaraszów has been mentioned on the map since 1828, however for unknown reasons it was not included in the 1827 census.
References
Villages in Zamość County
|
Dennis Ray Jackson (8 March 1932 – 20 March 2014) was an English professional footballer who played as a full back.
Career
Born in Birmingham, Jackson played for West Bromwich Albion, Hednesford Town, Aston Villa, Millwall and Rugby Town.
Later life and death
Jackson died in March 2014 at the age of 82.
References
1932 births
2014 deaths
Men's association football fullbacks
Aston Villa F.C. players
English Football League players
English men's footballers
Footballers from Birmingham, West Midlands
Hednesford Town F.C. players
Millwall F.C. players
Rugby Town F.C. (1945) players
West Bromwich Albion F.C. players
|
```html
<!doctype html>
<html>
<title>npm-install-test</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../../static/style.css">
<link rel="canonical" href="path_to_url">
<script async=true src="../../static/toc.js"></script>
<body>
<div id="wrapper">
<h1>npm <a href="../cli/install-test.html">install-test</a></h1> <p>Install package(s) and run tests</p>
<h2 id="synopsis">SYNOPSIS</h2>
<pre><code>npm install-test (with no args, in package dir)
npm install-test [<@scope>/]<name>
npm install-test [<@scope>/]<name>@<tag>
npm install-test [<@scope>/]<name>@<version>
npm install-test [<@scope>/]<name>@<version range>
npm install-test <tarball file>
npm install-test <tarball url>
npm install-test <folder>
alias: npm it
common options: [--save|--save-dev|--save-optional] [--save-exact] [--dry-run]</code></pre><h2 id="description">DESCRIPTION</h2>
<p>This command runs an <code>npm install</code> followed immediately by an <code>npm test</code>. It
takes exactly the same arguments as <code>npm install</code>.</p>
<h2 id="see-also">SEE ALSO</h2>
<ul>
<li><a href="../cli/npm-install.html">npm-install(1)</a></li>
<li><a href="../cli/npm-test.html">npm-test(1)</a></li>
</ul>
</div>
<table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
<tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18> </td></tr>
<tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td colspan=6 style="width:60px;height:10px;background:#fff"> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td></tr>
<tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2> </td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td></tr>
<tr><td style="width:10px;height:10px;background:#fff" rowspan=2> </td></tr>
<tr><td style="width:10px;height:10px;background:#fff"> </td></tr>
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr>
<tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr>
</table>
<p id="footer">npm-install-test — npm@6.4.1</p>
```
|
```elixir
defmodule Wallaby.Integration.Browser.InvalidSelectorsTest do
use Wallaby.Integration.SessionCase, async: true
import Wallaby.Query, only: [css: 1]
describe "with an invalid selector state" do
test "find returns an exception", %{session: session} do
assert_raise Wallaby.QueryError, ~r/The css 'checkbox:foo' is not a valid query/, fn ->
find(session, css("checkbox:foo"))
end
end
test "assert_has raises an exception", %{session: session} do
assert_raise Wallaby.QueryError, ~r/The css 'checkbox:foo' is not a valid query/, fn ->
assert_has(session, css("checkbox:foo"))
end
end
test "refute_has raises an exception", %{session: session} do
assert_raise Wallaby.QueryError, ~r/The css 'checkbox:foo' is not a valid query/, fn ->
refute_has(session, css("checkbox:foo"))
end
end
end
end
```
|
Fernando González defeated Olivier Rochus 6–4, 6–2 to win the 2005 Heineken Open singles competition. Dominik Hrbatý was the defending singles champion of the tennis tournament, held in Auckland, New Zealand.
Seeds
A champion seed is indicated in bold text while text in italics indicates the round in which that seed was eliminated.
Guillermo Coria (quarterfinals)
Tommy Robredo (first round)
Dominik Hrbatý (second round)
Vincent Spadea (second round)
Fernando González (champion)
Juan Ignacio Chela (semifinals)
Juan Carlos Ferrero (first round)
Luis Horna (first round)
Draw
References
External links
Singles draw
Qualifying Singles draw
Heineken Open
2005 Heineken Open
|
```go
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package plural
import (
"fmt"
"strings"
"testing"
"golang.org/x/text/internal/catmsg"
"golang.org/x/text/language"
"golang.org/x/text/message/catalog"
)
func TestSelect(t *testing.T) {
lang := language.English
type test struct {
arg interface{}
result string
err string
}
testCases := []struct {
desc string
msg catalog.Message
err string
tests []test
}{{
desc: "basic",
msg: Selectf(1, "%d", "one", "foo", "other", "bar"),
tests: []test{
{arg: 0, result: "bar"},
{arg: 1, result: "foo"},
{arg: 2, result: "bar"},
{arg: opposite(1), result: "bar"},
{arg: opposite(2), result: "foo"},
{arg: "unknown", result: "bar"}, // other
},
}, {
desc: "comparisons",
msg: Selectf(1, "%d",
"=0", "zero",
"=1", "one",
"one", "cannot match", // never matches
"<5", "<5", // never matches
"=5", "=5",
Other, "other"),
tests: []test{
{arg: 0, result: "zero"},
{arg: 1, result: "one"},
{arg: 2, result: "<5"},
{arg: 4, result: "<5"},
{arg: 5, result: "=5"},
{arg: 6, result: "other"},
{arg: "unknown", result: "other"},
},
}, {
desc: "fractions",
msg: Selectf(1, "%.2f", "one", "foo", "other", "bar"),
tests: []test{
// fractions are always plural in english
{arg: 0, result: "bar"},
{arg: 1, result: "bar"},
},
}, {
desc: "decimal without fractions",
msg: Selectf(1, "%.0f", "one", "foo", "other", "bar"),
tests: []test{
// fractions are always plural in english
{arg: 0, result: "bar"},
{arg: 1, result: "foo"},
},
}, {
desc: "scientific",
msg: Selectf(1, "%.0e", "one", "foo", "other", "bar"),
tests: []test{
{arg: 0, result: "bar"},
{arg: 1, result: "foo"},
},
}, {
desc: "variable",
msg: Selectf(1, "%.1g", "one", "foo", "other", "bar"),
tests: []test{
// fractions are always plural in english
{arg: 0, result: "bar"},
{arg: 1, result: "foo"},
{arg: 2, result: "bar"},
},
}, {
desc: "default",
msg: Selectf(1, "", "one", "foo", "other", "bar"),
tests: []test{
{arg: 0, result: "bar"},
{arg: 1, result: "foo"},
{arg: 2, result: "bar"},
{arg: 1.0, result: "bar"},
},
}, {
desc: "nested",
msg: Selectf(1, "", "other", Selectf(2, "", "one", "foo", "other", "bar")),
tests: []test{
{arg: 0, result: "bar"},
{arg: 1, result: "foo"},
{arg: 2, result: "bar"},
},
}, {
desc: "arg unavailable",
msg: Selectf(100, "%.2f", "one", "foo", "other", "bar"),
tests: []test{{arg: 1, result: "bar"}},
}, {
desc: "no match",
msg: Selectf(1, "%.2f", "one", "foo"),
tests: []test{{arg: 0, result: "bar", err: catmsg.ErrNoMatch.Error()}},
}, {
desc: "error invalid form",
err: `invalid plural form "excessive"`,
msg: Selectf(1, "%d", "excessive", "foo"),
}, {
desc: "error form not used by language",
err: `form "many" not supported for language "en"`,
msg: Selectf(1, "%d", "many", "foo"),
}, {
desc: "error invalid selector",
err: `selector of type int; want string or Form`,
msg: Selectf(1, "%d", 1, "foo"),
}, {
desc: "error missing message",
err: `no message defined for selector one`,
msg: Selectf(1, "%d", "one"),
}, {
desc: "error invalid number",
err: `invalid number in selector "<1.00"`,
msg: Selectf(1, "%d", "<1.00"),
}, {
desc: "error empty selector",
err: `empty selector`,
msg: Selectf(1, "%d", "", "foo"),
}, {
desc: "error invalid message",
err: `message of type int; must be string or catalog.Message`,
msg: Selectf(1, "%d", "one", 3),
}, {
desc: "nested error",
err: `empty selector`,
msg: Selectf(1, "", "other", Selectf(2, "", "")),
}}
for _, tc := range testCases {
t.Run(tc.desc, func(t *testing.T) {
data, err := catmsg.Compile(lang, nil, tc.msg)
chkError(t, err, tc.err)
for _, tx := range tc.tests {
t.Run(fmt.Sprint(tx.arg), func(t *testing.T) {
r := renderer{arg: tx.arg}
d := catmsg.NewDecoder(lang, &r, nil)
err := d.Execute(data)
chkError(t, err, tx.err)
if r.result != tx.result {
t.Errorf("got %q; want %q", r.result, tx.result)
}
})
}
})
}
}
func chkError(t *testing.T, got error, want string) {
if (got == nil && want != "") ||
(got != nil && (want == "" || !strings.Contains(got.Error(), want))) {
t.Fatalf("got %v; want %v", got, want)
}
if got != nil {
t.SkipNow()
}
}
type renderer struct {
arg interface{}
result string
}
func (r *renderer) Render(s string) { r.result += s }
func (r *renderer) Arg(i int) interface{} {
if i > 10 { // Allow testing "arg unavailable" path
return nil
}
return r.arg
}
type opposite int
func (o opposite) PluralForm(lang language.Tag, scale int) (Form, int) {
if o == 1 {
return Other, 1
}
return One, int(o)
}
```
|
Richard Edward Gordon Bayford (10 May 1885 – 14 August 1939) was an Australian rules footballer who played with Essendon in the Victorian Football League (VFL).
Notes
External links
1885 births
1939 deaths
Australian rules footballers from Victoria (state)
Essendon Football Club players
South Yarra Football Club players
|
The Centre Mario Gosselin is a multi-purpose arena in Thetford Mines, Quebec. It was built in 1964 and has a capacity of 2,500. It was first called the Centre des Loisirs but, in the middle of the 80's, it was renamed for NHL and Team Canada goalie Mario Gosselin, who was born in Thetford Mines and helped Canada finish fourth at the 1984 Winter Olympics. It is home to the Thetford Assurancia of the Ligue Nord-Américaine de Hockey.
Indoor ice hockey venues in Quebec
Indoor arenas in Quebec
Sports venues in Quebec
Buildings and structures in Chaudière-Appalaches
Sport in Thetford Mines
Sports venues completed in 1964
1964 establishments in Quebec
|
```html
<div class="remove-container container-block">
<h2 class="container-block-title">
About Theme
</h2>
<ul class="list-unstyled interests-list">
<li><a target="_blank" href="path_to_url">How to use?</a></li>
<li><a class="github-button" href="path_to_url" data-icon="octicon-star" data-show-count="true" aria-label="Star sharu725/online-cv on GitHub">Star</a>
<script async defer src="path_to_url"></script>
</ul>
</div><!--//About-->
```
|
```kotlin
package net.corda.node.services.api
import net.corda.core.context.InvocationContext
import net.corda.core.flows.FlowLogic
import net.corda.core.flows.StateMachineRunId
import net.corda.core.serialization.SingletonSerializeAsToken
import net.corda.core.utilities.ProgressTracker
import java.time.Instant
/**
* Minimum event specific data for any audit event to be logged. It is expected that the underlying audit service
* will enrich this to include details of the node, so that in clustered configurations the source node can be identified.
*/
sealed class AuditEvent {
/**
* The UTC time point at which the audit event happened.
*/
abstract val timestamp: Instant
/**
* The invocation context at the time the event was generated.
*/
abstract val context: InvocationContext
/**
* A human readable description of audit event including any permission check results.
*/
abstract val description: String
/**
* Further tagged details that should be recorded along with the common data of the audit event.
* Examples of this might be trade identifiers, system error codes, or source IP addresses, which could be useful
* when searching the historic audit data for trails of evidence.
*/
abstract val contextData: Map<String, String>
}
/**
* Sealed data class to mark system related events as a distinct category.
*/
data class SystemAuditEvent(override val timestamp: Instant,
override val context: InvocationContext,
override val description: String,
override val contextData: Map<String, String>) : AuditEvent()
/**
* Interface to mandate flow identification properties
*/
interface FlowAuditInfo {
/**
* The concrete type of FlowLogic being referenced.
* TODO This should be replaced with the fully versioned name/signature of the flow.
*/
val flowType: Class<out FlowLogic<*>>
/**
* The stable identifier of the flow as stored with Checkpoints.
*/
val flowId: StateMachineRunId
}
/**
* Sealed data class to record custom application specified flow event.
*/
data class FlowAppAuditEvent(
override val timestamp: Instant,
override val context: InvocationContext,
override val description: String,
override val contextData: Map<String, String>,
override val flowType: Class<out FlowLogic<*>>,
override val flowId: StateMachineRunId,
val auditEventType: String) : AuditEvent(), FlowAuditInfo
/**
* Sealed data class to record the initiation of a new flow.
* The flow parameters should be captured to the context data.
*/
data class FlowStartEvent(
override val timestamp: Instant,
override val context: InvocationContext,
override val description: String,
override val contextData: Map<String, String>,
override val flowType: Class<out FlowLogic<*>>,
override val flowId: StateMachineRunId) : AuditEvent(), FlowAuditInfo
/**
* Sealed data class to record ProgressTracker Step object whenever a change is signalled.
* The API for ProgressTracker has been extended so that the Step can contain some extra context data,
* which is copied into the contextData Map.
*/
data class FlowProgressAuditEvent(
override val timestamp: Instant,
override val context: InvocationContext,
override val description: String,
override val flowType: Class<out FlowLogic<*>>,
override val flowId: StateMachineRunId,
val flowProgress: ProgressTracker.Step) : AuditEvent(), FlowAuditInfo {
override val contextData: Map<String, String> get() = flowProgress.extraAuditData
}
/**
* Sealed data class to record any FlowExceptions, or other unexpected terminations of a Flow.
*/
data class FlowErrorAuditEvent(override val timestamp: Instant,
override val context: InvocationContext,
override val description: String,
override val contextData: Map<String, String>,
override val flowType: Class<out FlowLogic<*>>,
override val flowId: StateMachineRunId,
val error: Throwable) : AuditEvent(), FlowAuditInfo
/**
* Sealed data class to record checks on per flow permissions and the verdict of these checks
* If the permission is denied i.e. permissionGranted is false, then it is expected that the flow will be terminated immediately
* after recording the FlowPermissionAuditEvent. This may cause an extra FlowErrorAuditEvent to be recorded too.
*/
data class FlowPermissionAuditEvent(override val timestamp: Instant,
override val context: InvocationContext,
override val description: String,
override val contextData: Map<String, String>,
override val flowType: Class<out FlowLogic<*>>,
override val flowId: StateMachineRunId,
val permissionRequested: String,
val permissionGranted: Boolean) : AuditEvent(), FlowAuditInfo
/**
* Minimal interface for recording audit information within the system. The AuditService is assumed to be available only
* to trusted internal components via ServiceHubInternal.
*/
interface AuditService {
fun recordAuditEvent(event: AuditEvent)
}
/**
* Empty do nothing AuditService as placeholder.
* TODO Write a full implementation that expands all the audit events to the database.
*/
class DummyAuditService : AuditService, SingletonSerializeAsToken() {
override fun recordAuditEvent(event: AuditEvent) {
//TODO Implement transformation of the audit events to formal audit data
}
}
```
|
Anders Ingemar Åkesson, (born 28 November 1958) is a Swedish politician and member of the Riksdag for the Center Party since 2006. He is currently taking up seat number 11 for the constituency of Kalmar County.
Åkesson has been a headteacher for . From 2004 until 2006 he was a spokesperson in the Regional Association of Kalmar County.
As a newly elected member of parliament, he became a member of the Committee on Cultural Affairs in 2006 and an alternate for the Committee on Foreign Affairs. After the 2010 general election he left both committees to join the Committee on Transport and Communications and the War Delegation along with becoming an alternate for the election committee ().
On 9 July 2015, Åkesson received attention from mass media after his driver's license had been revoked after multiple incidents of him speeding. After the 2018 general election Åkesson became the vice-Speaker for the Committee on Transport and Communications succeeding Jessica Rosencrantz.
References
1958 births
Living people
Members of the Riksdag from the Centre Party (Sweden)
Members of the Riksdag 2006–2010
Members of the Riksdag 2010–2014
Members of the Riksdag 2014–2018
Members of the Riksdag 2018–2022
21st-century Swedish politicians
|
A haze meter measures the amount of light that is diffused or scattered when passing through a transparent material. Transparency is important because a material needs to be more or less see-through depending on its practical usage, e.g. a grocery bag needs the light to be more diffused so that less can be seen while food packaging film needs the light to be less diffused so that the contents can be seen clearly. For reasons such as these haze meters are necessary to determine which material is needed for which practical purpose.
Haze is measured with a wide angle scattering test in which light is diffused in all directions which results in a loss of contrast. That percentage of light that when passing through that deviates from the incident beam by greater than 2.5 degrees on average is defined as haze
See through quality is measured with a narrow angle scattering test in which light is diffused in a small range with high concentration. This test measures the clarity with which finer details can be seen through the object being tested.
The haze meter also measures total transmittance. Total transmittance is the measure of the total incident light compared to the light that is actually transmitted (e.g. total transmittance). So the incident light may be 100%, but because of absorption and reflection the total transmittance may only be 94%.
The data gained from the haze meter can be transferred to a PC for further data processing to ensure a consistent product.
References
External links
Devices to measure haze
Optical instruments
|
Festus Bunmi Olusona (born 2 June 1965) is a Nigerian human rights activist and politician.
Education
Olusona graduated with a Bachelor of Arts in Philosophy with Honours from the University of Ibadan, Nigeria in 1992.
Campus politics
Reverend Bunmi Olusona also known as 'Beyond Jordan' amongst fellow activists was a fierce Students' Union activist. He started student activism from the Kwara State College of Technology 1984/85 now renamed the Kwara State Polytechnic. He became the Vice President of the Reformers Academy: an Organisation formed by Professor Osam Edim Osam of the University of Ibadan, UI.
He contested and became the President of the University of Ibadan Students Union in 1989/90 under Professor Ayo Banjo, the then Vice Chancellor. By 1991/92 Bunmi Olusona became Zonal D Chairman of the National Association of Nigerian Students (NANS) comprising all the tertiary institutions of south western part of Nigeria. After a popular nationwide anti-SAP riots of 1989, Bunmi Olusona and a few other students' leaders of the NANS were unlawfully arrested, detained and lumped with hardened criminals at the over-crowded Nigeria Ikoyi Prisons and Kirikiri maximum prison under decree no 2 of 1984. This notorious decree was enacted by the former Nigerian military dictator, General Ibrahim Badamosi Babangida. At the end of the uprising, over two hundred Nigerians were estimated to have been killed by the police, a huge number wounded and some student activists detained.
Bunmi Olusona was unlawfully arrested and detained alongside other students' activists namely: Christian Akanni, Kayode Olatunji, Late Barrister Bamidele Aturu, Barrister Opeyemi Bamidele, Barrister Abdul Aminu Mahmud, Emmanuel Nwanzu and Nasir Kura. He and some of these activists were four months both at the SSS detention facility at Ikoyi, they were later moved into Ikoyi and Kirikiri maximum prisons under the Detention of Persons Decree No. 2 of 1984 as amended. It was detention without trial. He was released along with other (NANS) leaders after a legal battle sponsored by the Barrister Alao Aka Bashorun led Nigerian Bar Association (NBA) and Barrister Olisa Agbakoba led Civil Liberties Organisation (CLO). Bunmi Olusona lost an academic session due to his incarceration at the Ikoyi prisons.
Bunmi Olusona and other detained students' activists were all declared prisoners of conscience by the Amnesty International in 1991/92.
Bunmi Olusona was much loved by students of the University of Ibadan (UI) due to achievements he recorded while he was President of the Students Union. All achieved due to popular struggles. Amongst them was:
Bringing 'Water Treatment Plant' at the cost of 30m in 1990 after confrontation and negotiation with the Babangida military regime. This was what resolved years of agonizing water crisis of the University. It also impacted on the water consumption needs of the entire inhabitants of the University environments including Agbowo community.
Forcing the University authority to rename erstwhile 'Students Village Hall' after Chief Obafemi Awolowo through students agitation against the wish of the University authorities.
Forcing the FG to rebuild burnt section of Queen Elizabeth Hall, extend and complete Idia and Obafemi Awolowo halls.
Consistently fought for the protection of the rights and privileges of students.
Launched and raised funds for indigent students of the University of Ibadan.
Launched students' agricultural scheme where the Students' Union owned a farm at Ajibode, a neighboring Community.
He was a leading (NANS) activist and participated in many local and national students protests. He was constantly a thorn in the flesh of the Babangida administration even after he graduated from the University.
Campaign Officer for the Campaign for Democracy, (CD), he was a leading mobilizer against the infamous annulment of the June 12, 1993 presidential election won by late Chief MKO Abiola.
Reverend Bunmi Olusona, who holds a bachelor's degree in Philosophy is married to Elizabeth Aderonke Olusona.
Human rights activism
He was briefly at the Civil Liberties Organisation as Field Research Officer for Women Rights Project As a field research officer. At the CLO, he also did a research on the sufferings of the Nigerian Railway workers who were owed several months salaries. The title of the booklet is Dying in Agony.
Acting Head of Campaigns, Campaign for Democracy, (CD)
Co founded Oodua Youth Movement, a Yoruba self-determination platform.
Co founded Covenant Group, a Yoruba self-determination Organisation.
Co founded Oodua Peoples Congress with Dr Frederick Fasehun.
Was a National Administrative Secretary of Movement for Socio and Economic Justice, (MOSEJ)
Exile
Rev. Bunmi Olusona went on exile to Europe during the notorious Military regime of General Sani Abacha, As a 'Campaign Officer' with the Campaign for Democracy, (CD) and an active member of the Committee for the Defense of Human Rights, CDHR, he participated in many protests against the Military dictatorship of late General Sani Abacha. He fled Nigeria in 1996 after he granted a radio interview critical of the regime to CNN over the gruesome assassination of late Kudirat Abiola, wife of the late popular Nigerian millionaire politician, Chief MKO Abiola.
Bunmi Olusona has had the rare privilege of close association on the field of activism with some of Nigeria's leading human rights activists. Some of which are; Barrister Femi Falana SAN, Late Beko Ransome Kuti, Chief Frederick Fasehun, Late Baba Omojola, Late Alao Aka Bashorun, Late Gani Fawehinmi, Barrister Osagie Obayuwana, Comrade Gbenga Awosode, Comrade Wale Adebisi, Comrade Abiodun Aremu, Comrade Wale Adeniran, Comrade Odion Akhaine, Comrade Jiti Ogunye, Comrade Opeyemi Bamidele, Comrade Popoola Ajayi, Gbenga Toyosi Olawepo, Comrade Rotimi Obadofin, Comrade Joe Okey Odumakin, Comrade Abdul Aminu Mahmud, Comrade Wale Okuniyi and a host of others.
Partisan politics
On his return to Nigeria, he went into party politics by joining the Alliance for Democracy (AD) and became the party's Kwara State Governorship candidate in 2007. He lost the Election to the incumbent Governor of the State, Senator Bukola Saraki who is the current Nigerian Senate President.
By 2011, he contested for the Irepodun/Oke-Ero/Ekiti/Isin federal constituency seat at the Nigerian National Assembly on the political platform of the Action Congress of Nigeria (ACN) he lost the election in controversial circumstances. The election was believed to have been rigged against him.
Reverend Bunmi Olusona was a close political associate of Barrister Mohammed Dele Belgore, a Senior Advocate of Nigeria who was the 2011 Gubernatorial Candidate of the Action Congress of Nigeria, (ACN) in Kwara State.
Bunmi Olusona became a member of the Kwara State Caretaker Committee of the Action Congress of Nigeria (ACN) and All Progressives Congress (APC) between 2013/2014.
He later became the Interim Kwara State Chairman of the All Progressives Congress, (APC), a position the national leadership of the party later ceded to Alhaji Ishola Fulani.
Between 2014/2015, Rev. Bunmi Olusona was the State Director General of Mohammed Dele Belgore's Governorship campaign organization popularly called Orange Revolution
He is still actively involved in party politics as a strong member of the Nigerian ruling party, the All Progressives Congress, (APC).
Rev. Bunmi Olusona is currently the Special Adviser on 'Media and Illicit Financial Flows' to the Chairman House Committee on Financial Crimes.
Relevant publications
Nigeria, on the Eve of "change": Transition to What? - Page 33
1991 - Full view Five others were held at Ikoyi Prison: Nasir Kura, NANS vice president for national affairs Okereke, NANS secretary general; Olatunji Kayode, clerk of NANS senate; Bunmi Olusona, student at University of Ibadan; and Christian Akanni, student ... Liberty: A Quarterly News Letter of Civil Liberties Organisation
1990 - Snippet view - More editions detention, the students had gone on a ten-day hunger strike, causing the collapse of Bunmi Olusona, Nasir Kura and Christian Akanni. All three were suffering from diarrhoea and had been vomiting blood five days prior to their collapse. In the saddle: a vice-chancellor's story - Page 119
L. Ayo Banjo - 1997 - Snippet view - More editions ... of Mr Bunmi Olusona, (alias Beyond Jordan) former president, University of Ibadan Students Union 1989/90 session. [Olusona had reportedly disappeared from the campus and was suspected to have been abducted by security agents. Democracy in Action: The South-West Experience - Page 91]
Dapo Olasebikan - 2002 - Snippet view - More editions Akangbe, Wale Balogun, Wale Olabisi (Don), Abiodnn /« remu, Femi Obayori, Bayo Ojo, Funso Mojuba, Ebun Adegoruwa, Segun Sango, Fred Adegoke, Ayodele Akele, Kayode Ogundamisi, Bunmi Olusona, Sola Otitolaye, Taiwo Otitolaye ... The African Guardian - Page 28
1991 - Snippet view - More editions Other students challenging their incarceration are Bunmi Olusona, NANS zonal co-ordinator and final year Philosophy student of the University of lbadan. Christian Aka, a graduate student in Port Harcourt and Olatunji Kay ode, a final year ... The News - Volume 28 - Page 27
2007 - Snippet view - More editions They are the incumbent governor, Dr. Bukola Saraki (PDP), Hon. Gbenga Olawepo (DPP), Senator Suleiman Makanjuola Ajadi (AC). Others are Chief Theophilus Bamigboye (AP), Alhaji Khaleel Bolaji (ANPP) and Revd. Bunmi Olusona (AD). Annual Report, Human Rights Situation in Nigeria - Page 18
1991 - Snippet view - More editions - The affected student leaders include: Mahmud Abdul-Aminu (NANS President), Chima Okereke (NANS Secretary-General), Nasser Kura (NANS Vice-President), Bunmi Olusona (former President University of Iba^in Students Union), Bamidele ... Errands for progress - Page 12
Opeyemi Bamidele - 2003 - Snippet view ... Biodun Ogunade, Femi Obayori, Biodun Aremu, Rotimi Obadofin, Debo Adeniran, Olumide Akanmu, Bunmi Olusona, Kayode Olatunji, Christian Akani, Olumide Adeyinka, Kayode Oladele, Kayode Opeifa, Anthony Olusanya, Toyin Adeniran, ... Annual Report on Human Rights in Nigeria - Page 77
1991 - Snippet view - More editions The said meeting was attended on the side of the Students by Bamidele Opeyemi, a former NANS President; Sylvester Odion, Public Relations Officer; Chima Okereke, Secretary-General; Bunmi Olusona, then President University of Ibadan ... Patterns of Abuse of Women's Rights in Employment and Police ...
Theresa Akumadu - 1995 - Snippet view - They include Mrs. Ayo Obe and Mr. Dulue Mbachu for editing the Manuscript, Mr. Rotimi Johnson, Miss Anne Aimua and Mr. Bunmi Olusona for carrying out the field work. Our very special gratitude goes to the International Centre For Human ... New Breed - Volume 4, Issues 16-17 - Page 14
1991 - Snippet view - More editions - On the commitment of the students, Mr. Bunmi Olusona, the president of the University of Ibadan Students' Union says "the students' body will fight on behalf of the lecturers not because of the personalities involved, but based on the principles ... Newswatch - Volume 13, Issues 14-26 - Page 25
1991 - Snippet view - More editions - The, students who attended the meeting are Chukwuma Innocent, University of Nigeria, Nsukka; Bunmi Olusona, UI; Opeyemi Bamidele, Nigerian Law School, Lagos; Okereke Chima, University of Jos; Naseer Kura Ja'afaru, Bayero University, ...
References
I remain Kwara (APC) Chairman - Rev. Bunmi Olusona, January 22, 2014
Kwara ACN Candidate to appeal ruling, October 12, 2011
APC hands over Party structures to Saraki in Kwara, December 16, 2013
Protests rock Kwara over Offa rerun, September 3, 2013
Abdul Mahmud: The June 12, 1993 struggles, A personal Account, June 12, 2013
Our political strength is right, April 3, 2014
Rev. Bunmi Olusona is not interim chairman of APC, January 22, 2014
Don't install Saraki as Kwara APC leader - Olusona, December 18, 2013
Kwara PDP meets Belgore supporters, January 8, 2014
Fresh crisis hits Kwara APC, December 17, 2014
Don't install Saraki Kwara APC leader, December 18, 2013
I remain Kwara State APC Chairman-Olusona, January 22, 2014
Saraki is a burden than asset-Olusona, January 5, 2014
Outcome of Presidential poll as likely factor in guber poll, April 11, 2015
How PDP is strategising to retake Kwara, April 29, 2014
Kwara ACN appoints caretaker committee
Belgore and Kwara APC, January 10, 2014
Party chieftain fault Saraki, May 28, 2006
Kwara opposition in disarray, March 29, 2007
Five jostle for Kwara PDP chair, April 14, 2014
Battle for the soul of Kwara, March 12, 2014
Jonathan's mission to revive Kwara PDP, March 7, 2014
Offa rerun greeted with protests, September 3, 2013
Kwara APC members storm Ilorin, September 3, 2013
Protests over Offa election rerun, September 9, 2013
https://theeagleonline.com.ng/house-committee-on-efcc-appoints-media-consultant/
1965 births
Living people
Amnesty International prisoners of conscience held by Nigeria
University of Ibadan alumni
Yoruba activists
Nigerian activists
Nigerian prisoners and detainees
People from Kwara State
|
```smalltalk
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace AsmTools
{
public enum NumerationEnum
{
UNKNOWN,
HEX,
BIN,
DEC,
OCT,
}
public static partial class AsmSourceTools
{
public static NumerationEnum ParseNumeration(string str, bool strIsCapitals)
{
if (string.IsNullOrEmpty(str))
{
return NumerationEnum.UNKNOWN;
}
switch (ToCapitals(str, strIsCapitals).Trim())
{
case "HEX": return NumerationEnum.HEX;
case "BIN": return NumerationEnum.BIN;
case "DEC": return NumerationEnum.DEC;
case "OCT": return NumerationEnum.OCT;
default: return NumerationEnum.UNKNOWN;
}
}
}
}
```
|
```xml
import { Readable } from 'stream';
declare namespace getRawBody {
export type Encoding = string | true;
export interface Options {
/**
* The expected length of the stream.
*/
length?: number | string | null;
/**
* The byte limit of the body. This is the number of bytes or any string
* format supported by `bytes`, for example `1000`, `'500kb'` or `'3mb'`.
*/
limit?: number | string | null;
/**
* The encoding to use to decode the body into a string. By default, a
* `Buffer` instance will be returned when no encoding is specified. Most
* likely, you want `utf-8`, so setting encoding to `true` will decode as
* `utf-8`. You can use any type of encoding supported by `iconv-lite`.
*/
encoding?: Encoding | null;
}
export interface RawBodyError extends Error {
/**
* The limit in bytes.
*/
limit?: number;
/**
* The expected length of the stream.
*/
length?: number;
expected?: number;
/**
* The received bytes.
*/
received?: number;
/**
* The encoding.
*/
encoding?: string;
/**
* The corresponding status code for the error.
*/
status: number;
statusCode: number;
/**
* The error type.
*/
type: string;
}
}
/**
* Gets the entire buffer of a stream either as a `Buffer` or a string.
* Validates the stream's length against an expected length and maximum
* limit. Ideal for parsing request bodies.
*/
declare function getRawBody(
stream: Readable,
callback: (err: getRawBody.RawBodyError, body: Buffer) => void
): void;
declare function getRawBody(
stream: Readable,
options: (getRawBody.Options & { encoding: getRawBody.Encoding }) | getRawBody.Encoding,
callback: (err: getRawBody.RawBodyError, body: string) => void
): void;
declare function getRawBody(
stream: Readable,
options: getRawBody.Options,
callback: (err: getRawBody.RawBodyError, body: Buffer) => void
): void;
declare function getRawBody(
stream: Readable,
options: (getRawBody.Options & { encoding: getRawBody.Encoding }) | getRawBody.Encoding
): Promise<string>;
declare function getRawBody(
stream: Readable,
options?: getRawBody.Options
): Promise<Buffer>;
export = getRawBody;
```
|
Stuck in the Middle is an American family comedy television series developed by Alison Brown and Linda Videtti Figueiredo and created by Alison Brown that premiered on Disney Channel on February 14, 2016. The series focuses on Jenna Ortega as Harley Diaz, who invents many gadgets to deal with living in a large family. In addition to the regular episodes, the series also aired six shorts on December 16, 2016. After three seasons and 57 episodes, the series concluded with the episode "Stuck in Harley's Quinceañera" on July 23, 2018.
Series overview
Episodes
Season 1 (2016)
Season 2 (2017)
Season 3 (2017–18)
Stuck in the Store (2016)
Stuck in the Store is a Stuck in the Middle special that aired on Disney Channel on December 16, 2016, consisting of six 2–4-minute shorts.
References
Lists of American children's television series episodes
Lists of American comedy television series episodes
Lists of Disney Channel television series episodes
|
Damian Hartard Reichsfreiherr von der Leyen-Hohengeroldseck (12 March 1624 in Trier – 6 December 1678) was the Archbishop-Elector of Mainz and the Bishop of Worms from 1675 to 1678.
Damian Hartard von der Leyen-Hohengeroldseck was the younger brother of Karl Kaspar von der Leyen-Hohengeroldseck, who was Archbishop of Trier from 1652 to 1676. In 1654, Karl Kaspar arranged for Damian Hartard to be made Archdeacon of Karden and provost of the Stift St. Kastor in Karden. He was ordained as a priest at this time.
On 3 July 1675 the cathedral chapter of Mainz Cathedral elected Damian Hartard as the new Archbishop of Mainz. The cathedral chapter of Worms Cathedral also selected him as the new Bishop of Worms on 12 July 1675, thus continuing the personal union between the Archbishopric of Mainz and the Bishopric of Worms that had existed since 1663. Pope Clement X confirmed both appointments on 24 February 1676. He was consecrated as a bishop on 8 September 1676 and installed as Bishop of Worms on 31 October 1676.
He purchased Neuerburg for his family in 1678.
During his reign, the eastern block of the Electoral Palace Mainz was completed.
He is buried in Mainz Cathedral.
1624 births
1678 deaths
Archbishop-Electors of Mainz
|
```smalltalk
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.Toolkit.Uwp.SampleApp.Common
{
/// <summary>
/// Command with a name for Sample Shell Commands.
/// </summary>
public class SampleCommand : DelegateCommand
{
public string Label { get; set; }
public SampleCommand(string name, Action action)
: base(action)
{
Label = name;
}
}
}
```
|
Chakarteh (, also Romanized as Chākarteh; also known as Chāh Kartū) is a village in Fin Rural District, Fin District, Bandar Abbas County, Hormozgan Province, Iran. At the 2006 census, its population was 77, in 15 families.
References
Populated places in Bandar Abbas County
|
The barbecue murders, also known as the BBQ murders, refers to a 1975 double murder in Marin County, California, United States. Business consultant James "Jim" Olive and his wife Naomi were murdered in their home by their 16-year-old adopted daughter Marlene and her 20-year-old boyfriend Charles "Chuck" Riley, who then attempted to dispose of the bodies by burning them in a barbecue pit at a nearby campground. Riley was convicted of two counts of first-degree murder and received a sentence of death, which was later changed to life imprisonment with the possibility of parole. Marlene, tried as a juvenile, received a sentence of three to six years in a California Youth Authority juvenile facility, from which she was released at age 21 having served a little over four years.
The case gained worldwide attention because of the perpetrators' ages, the details of the crime, and the wide disparity in sentencing between the two perpetrators. Riley and Olive have also been the subjects of continuing coverage in connection with his repeated bids for parole and her subsequent convictions for numerous other crimes.
Background
Olive family background
Marlene Louise Olive was born in Norfolk, Virginia on January 15, 1959 to an unwed teenager. She was adopted as a newborn by a middle-aged childless couple James "Jim" and Naomi Olive and spent her childhood up to her early teens in Guayaquil, Ecuador, where Jim Olive worked as a marketing executive for Tenneco and Gulf Oil. She was very close to her adoptive father but had a troubled relationship with her adoptive mother, who reportedly had alcoholism and a mental illness commonly thought to be schizophrenia.
When Marlene was 14, her father lost his job and moved the family back to the United States, settling in Marin County, California in the Terra Linda community of the city of San Rafael. Jim Olive became a self-employed small-business consultant and spent less time with his daughter as he tried to make his business succeed. Marlene had difficulty adjusting from her relatively sheltered life in Ecuador to the unfamiliar, permissive Northern California teen culture. She developed a stomach ulcer that required prescription pills and soon began to use the pills and other drugs recreationally and socialize with other teenage drug users. She also became interested in glam rock, witchcraft, and prostitution, the third interest stemming from repeatedly being called a "whore" by her adoptive mother.
The relationship between Marlene and Naomi Olive worsened after the move to the United States, and their arguments erupted into domestic violence. Over time, Marlene also developed resentment toward her father for siding with her mother in disputes and suspected him of informing police about her friends' drug activities. She shoplifted, stole her parents' credit cards, used and overdosed on drugs, ran away from home, and received stolen goods from burglaries committed by a boyfriend. She talked to several friends about wanting to kill her parents and asked some of them to help, but the friends either did not take her seriously or decided not to get involved. At one point, she attempted to poison her mother herself by mixing large doses of prescription drugs into her mother's food, but the drugs made the food taste bitter, and Naomi refused to eat it.
Charles Riley's background
Charles "Chuck" Riley was born on May 2, 1955 in Marin County to Oscar and Joanne Riley, a bakery worker and a nurse's aide, and lived most of his life in Santa Venetia. Obese since childhood, by age 15 he weighed over . Before he met Olive, he had never had a girlfriend. He dropped out of high school in his senior year and worked as a newspaper and pizza deliveryman, bartender, and factory worker. He was a heavy drug user and also dealt drugs, both to earn money and to gain social status and popularity. He owned several guns and was a skilled marksman.
Charles Riley's relationship with Marlene Olive
When he was 19, Riley met 15-year-old Olive while dealing drugs at her high school. He developed a crush on her and began to pursue her. Although she was initially put off by his weight, the couple eventually had sex and began a relationship, which Olive largely controlled. Riley provided her with free drugs, gifts, and transportation, listened to her problems, and sometimes helped her carry out sexual or criminal fantasies. She frequently threatened to break up with Riley unless he did what she wanted and claimed to have magical powers of control over him, in which he reportedly believed. He was anxious to please her in order to continue the relationship and twice attempted suicide when she briefly broke up with him. As she had with previous boyfriends, Olive soon began to ask Riley for help or advice in killing her mother or suggest that he himself kill her parents. Jim and Naomi Olive initially approved of their daughter dating Riley, finding him polite and responsible.
At Olive's suggestion, the couple carried out a prolonged shoplifting spree, stealing approximately $6,000 in merchandise (primarily women's clothing and accessories) from local stores over several weeks until they were caught in the act and arrested for grand larceny in March 1975. Riley had no prior history of delinquency or antisocial conduct as a juvenile (aside from drug dealing), and this was his first adult arrest. In May 1975, Riley was arrested again for possession of marijuana and a sawed-off shotgun. Jim and Naomi threatened their daughter with juvenile hall, planned to send her away to school, and forbade her to see Riley again, the prohibition also being included in a court order. Jim Olive ordered Riley to stay away from the Olives' house, threatening to kill him if he ever returned.
Murders
On Saturday, June 21, 1975, following another argument with her mother, Olive telephoned Riley and told him, "Get your gun, we've got to kill the bitch today". She arranged to go out with her father, leaving her mother home alone and leaving a door unlocked through which Riley could then enter and kill her mother. Riley, who was carrying a loaded .22 caliber revolver and later said he had taken LSD, entered the house where Naomi Olive was sleeping.
Afterward, Riley told police that he had struck Naomi "many times" with a hammer (a statement he later recanted under hypnosis), stabbed, and suffocated her. While Riley was still in the house, Jim returned, saw his wife lying in bed covered with blood, picked up a knife, and started toward Riley, exclaiming, "I'll kill you". Riley drew his gun and shot Jim four times, killing him.
Olive and Riley tried to dispose of the bodies by transporting them to a wooded area at nearby China Camp and burning them in a barbecue pit with gasoline and logs in an attempt to make them unrecognizable. The couple left while the bodies were still burning. A fireman who arrived shortly thereafter to put out the unattended fire initially mistook the partially burnt remains for a deer carcass. The couple later returned to the park and further burned the remains along with additional evidence.
With a friend, the couple cleaned up the room where the killings had taken place, removing blood from the carpet, walls, and furniture. They confided in the friend who helped clean and in several other friends that they had killed the Olives, with Riley physically carrying out the killings. Riley told friends, "We had to do it. They wouldn't let me see her." Olive and Riley continued to live together at the Olives' house for several days, attending a Yes concert, shopping, eating at restaurants, and paying their expenses using cash, checks, and credit cards taken from her dead parents. They allegedly planned to wait for Jim and Naomi to be declared dead, collect the life insurance money, and move to Ecuador.
After a few days, Jim Olive's business partner became concerned about his absence from work and contacted police, who visited the Olive house and spoke with Olive. She provided various alibis for herself and Riley, which the police later determined were false, and stories about her parents having either disappeared or died, claiming that one parent had killed the other and then disappeared with the body or that both parents were killed by Hells Angels. Police also noted the recently cleaned room in the otherwise disordered house. The friend who had helped clean informed the police about the blood in the room and the couple's statements about killing the Olives and burning their bodies. Acting either on information from Olive or her friend, police searched the China Camp barbecue pit and determined that it contained fragments of burnt human remains. Olive and Riley were arrested.
After his arrest, Riley made a detailed confession, in which he said that he and Olive had been planning to kill her parents for some time; that he had beaten, stabbed, and suffocated Naomi Olive and then shot Jim Olive; and that Olive had made him do it. However, Olive claimed that Riley had killed her parents of his own accord and that afterward he had held her hostage and forced her to take drugs.
Court proceedings
Charles Riley's trial
Based on his initial confession, Riley, who was an adult over 18 (aged 20) at the time of the crime, was charged with two counts of first-degree murder for killing Jim and Naomi Olive and faced the death penalty. Under hypnosis, Riley later recanted the part of his initial confession about beating Naomi Olive with the hammer, saying that when he entered the house, he found her lying in bed, bleeding from head wounds and near death, with the hammer embedded in her head. Riley thus implied that Olive (who had been using the hammer that morning to repair a platform shoe) had fatally beaten her mother with the hammer before leaving the house. Riley contended that he had stabbed and suffocated Naomi because she was suffering and near death from the hammer attack and he was trying to end her misery. He said that he initially confessed to killing Naomi in order to protect Olive by taking the blame for her actions. Riley admitted shooting Jim Olive, but said he acted out of fear and self-defense as Jim had threatened to kill him.
At his trial, Charles testified under hypnosis about the events of the murder and that he had not beaten Naomi Olive. The jury was not convinced, and convicted him on both counts of first-degree murder for killing both victims. He was sentenced to death on January 26, 1976.
Author and reporter Richard M. Levine later wrote that compared to Olive, Riley did not harbor much anger at Naomi Olive whom he barely knew, therefore Riley would be less likely to use a method of homicide suggesting rage and would have used his loaded gun as the weapon rather than a hammer; and that Olive had previously asked Riley how hard she would have to hit Naomi Olive in order to kill her. However, others have noted that Olive had no blood on her clothing when she left the house and would not have had time to change clothes; that Riley used a hammer to avoid alerting neighbors because it made less noise than a gunshot; and that according to a hypnosis expert, Riley's revised confession lacked credibility. Olive continued to maintain that Riley had beaten and killed her mother in addition to shooting her father, and denied that she herself had any part in the killing of either parent.
Marlene Olive's juvenile court trial
Olive, who was a 16-year-old minor at the time of the crime, was tried as a juvenile rather than an adult, and was represented by the well-known defense attorney Terence Hallinan. She was charged with violating Section 602 of the California State Welfare and Institutions Code, which at that time covered any crime committed by a juvenile, from petty crimes up to and including murder. The court ruled that she had violated Section 602, stating that she "did encourage, instigate, aid, abet, and act as accomplice in the homicides of her parents." In announcing his decision, Judge Charles R. Best stated, "The uncontroverted evidence regarding the father is that Chuck Riley killed him. As to who actually did in the mother, we'll never know."
Olive was sentenced to a term of four to six years' confinement at the California Youth Authority at Ventura (also known as the Ventura School). She was to be released by her 21st birthday unless the youth authority determined she had not been rehabilitated, in which case she could be kept in custody up to age 23.
Aftermath
Charles Riley
In December 1976, the California state supreme court ruled that the California death penalty statute, which then required a mandatory death penalty for certain categories of murder, was unconstitutional in view of the U.S. Supreme Court's recent rulings in Gregg v. Georgia and other cases. As a result, California prisoners sentenced to death under the unconstitutional statute, including Riley, could not be executed. Riley's sentence was changed from death to two concurrent life sentences with the possibility of parole after 7 years. While in prison, Riley lost weight, received his high school diploma, and earned the equivalent of a college degree.
After becoming eligible, Riley applied for parole approximately a dozen times and was denied each time. In 2011, Riley, now 56 and physically disabled, appealed his most recent denial on the grounds that there was no evidence he continued to be a danger to the community, that the parole board did not consider his age, and that his sentence had been unconstitutionally excessive. Riley won a new court-ordered parole hearing, at which the parole board found him suitable for release and granted parole. However, on February 6, 2015, the parole board's decision was reversed by California Governor Jerry Brown, who explained that "although [Riley] professes to accept some responsibility, he continues to downplay his role in this crime. Until Mr. Riley is able to come to terms with his role in this horrendous double murder, I do not believe he will be able to avoid violent behavior if released."
Riley appealed the Governor's reversal of the parole board's decision. On December 3, 2015, the California Court of Appeal for the First District vacated the Governor's reversal and reinstated Riley's grant of parole, stating, "We cannot affirm the Governor's decision because the premise of his conclusion—that Riley has failed 'to come to terms with his role in the double murder'—is unsupported by any evidence. There being no evidence in the record that Riley 'continues to downplay his role in this crime,' the Governor's decision cannot stand." Following the court's directive, the parole board's 2015 annual report released in January 2016 showed Riley as having been deemed suitable for release and granted parole .
Marlene Olive
Olive began serving her sentence at the Ventura School and was later allowed to serve part of her time living outside the school with a young woman who had been a juvenile services volunteer. A few weeks before she was due to be paroled, she escaped and fled to New York City where she worked as a prostitute. She was eventually arrested and returned to California to finish her sentence, finally being released in 1980 when she was 21.
After being released, she moved to the Los Angeles area, where she changed her name numerous times and was arrested at least seven times over the next decade on forgery and drug-related charges, serving two one-year terms in jail. In 1986, she was one of 14 people arrested in Los Angeles for allegedly operating a large counterfeiting and forgery ring, of which she was thought to be the ringleader. She was subsequently convicted and sentenced to five years in prison. She served additional prison terms in California after a 1992 conviction for making a false financial statement, and a 1995 conviction for possessing a forged drivers' license. In 2003 in Kern County, California, she pleaded guilty to passing a fictitious check in Bakersfield and was sentenced to seven years in prison. A 1992 Los Angeles Times article called her "the queen of the trashers" due to her alleged skills at committing forgery and fraud and creating false identities based on documents, such as voided checks, obtained from discarded garbage. Police said "they [had] rarely come across a street-level forger believed to be as prolific or as skilled as Olive."
Olive saw Riley only once after they were arrested for murder, when she visited him in prison in 1981. After the visit, Riley correctly predicted, "I'll never see her again."
In popular culture
Richard M. Levine, a feature writer for numerous publications including The New York Times, New York, Harper's, and Esquire, wrote a true crime book about the case, Bad Blood: A Family Murder in Marin County (Random House, 1982), which was widely reviewed and became a bestseller. The case was also discussed in John Godwin's book Murder U.S.A.: The Ways We Kill Each Other (Ballantine, 1978) and in several later true crime anthologies.
During the 1990s, Levine's book inspired American artist Marlene McCarty to create a series of drawings about the teenage Marlene Olive, her relationships, and the barbecue murders. These led to a broader group of works by McCarty on the subject of teenage female murderers known as Murder Girls, which explored issues of female aggression, sexuality, sexism, and family relations. Olive continued to be, in the words of Maud Lavin, the "chief protagonist" of the series, and at least one exhibition of McCarty's work focused solely on her and the barbecue murders. McCarty's drawing, titled Marlene Olive: 353 Hibiscus Way — Marin County, California — June 21, 1975., (Mural 2: Chuck, Jim, Marlene – December 21, 1974) (2003), is now in the collection of the Museum of Modern Art. McCarty based her art works concerning Marlene Olive on the theory, presented by Riley's defense counsel and Levine, that Marlene Olive had beaten her mother Naomi to death with the hammer.
The barbecue murders were dramatized in a 2014 episode of the true crime documentary series Killer Kids titled "Please Kill For Me" (season 3, episode 12).
See also
List of homicides in California
Murder of Tynesha Stewart
Richardson family murders
Notes
References
1975 murders in the United States
Deaths by beating in the United States
1975 in California
Murder committed by minors
Murder in the San Francisco Bay Area
June 1975 events in the United States
History of Marin County, California
|
Witosław is a village in the administrative district of Gmina Świebodzin, within Świebodzin County, Lubusz Voivodeship, in western Poland. It lies approximately north of Świebodzin, north of Zielona Góra, and south of Gorzów Wielkopolski.
References
Villages in Świebodzin County
|
```c++
/// Source : path_to_url
/// Author : liuyubobobo
/// Time : 2023-04-22
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
/// BFS + Dijkstra
/// Time Complexity: O(n^2 * log(n^2))
/// Space Complexity: O(n^2)
class Solution {
private:
int R, C;
const int INF = INT_MAX / 2;
const int dirs[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
public:
int challengeOfTheKeeper(vector<string>& maze) {
R = maze.size(), C = maze[0].size();
int sx = -1, sy = -1, tx = -1, ty = -1;
for(int i = 0; i < R && (sx == -1 || tx == -1); i ++)
for(int j = 0; j < C && (sx == -1 || tx == -1); j ++)
if(maze[i][j] == 'S') sx = i, sy = j;
else if(maze[i][j] == 'T') tx = i, ty = j;
vector<vector<int>> tdis = bfs(maze, tx, ty);
if(tdis[sx][sy] == INF) return -1;
vector<vector<int>> w(R, vector<int>(C, INF));
for(int i = 0; i < R; i ++)
for(int j = 0; j < C; j ++){
if(maze[i][j] == 'S' || maze[i][j] == 'T'){
w[i][j] = 0; continue;
}
if(maze[i][j] == '#') continue;
int res = 0;
if(maze[R - 1 - i][j] != '#') res = max(res, tdis[R - 1 - i][j]);
if(maze[i][C - 1 - j] != '#') res = max(res, tdis[i][C - 1 - j]);
w[i][j] = res;
}
vector<vector<int>> res = dij(maze, w, sx, sy);
return res[tx][ty] == INF ? -1 : res[tx][ty];
}
private:
vector<vector<int>> dij(const vector<string>& maze, const vector<vector<int>>& w, int sx, int sy){
vector<vector<int>> dis(R, vector<int>(C, INF));
dis[sx][sy] = 0;
vector<vector<bool>> visited(R, vector<bool>(C, false));
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<>> pq;
pq.push({0, sx * C + sy});
while(!pq.empty()){
int cd = pq.top().first, cx = pq.top().second / C, cy = pq.top().second % C; pq.pop();
if(visited[cx][cy]) continue;
visited[cx][cy] = true;
for(int d = 0; d < 4; d ++){
int nx = cx + dirs[d][0], ny = cy + dirs[d][1];
if(in_area(nx, ny) && maze[nx][ny] != '#' && dis[nx][ny] > max(cd, w[nx][ny])){
dis[nx][ny] = max(cd, w[nx][ny]);
pq.push({dis[nx][ny], nx * C + ny});
}
}
}
return dis;
}
vector<vector<int>> bfs(const vector<string>& maze, int sx, int sy){
vector<vector<int>> dis(R, vector<int>(C, INF));
dis[sx][sy] = 0;
queue<pair<int, int>> q;
q.push({sx, sy});
while(!q.empty()){
int cx = q.front().first, cy = q.front().second; q.pop();
for(int d = 0; d < 4; d ++){
int nx = cx + dirs[d][0], ny = cy + dirs[d][1];
if(in_area(nx, ny) && maze[nx][ny] != '#' && dis[nx][ny] == INF){
dis[nx][ny] = dis[cx][cy] + 1;
q.push({nx, ny});
}
}
}
return dis;
}
bool in_area(int x, int y){
return 0 <= x && x < R && 0 <= y && y < C;
}
};
int main() {
return 0;
}
```
|
A pick glass also known as a piece glass is a magnifying glass helpful in counting thread count. It is used to determine the number of yarns in warp and weft in woven fabrics and courses and wales in knitted fabrics. Compact constructions of fabrics may have a higher thread count. That is also called "cloth count."
Function
Pick glass aid in measuring the following.
Ends and picks
Ends per inch is the number of warp threads per inch of woven fabric.
Picks per inch is the number of weft threads per inch of woven fabric. Pick is a term that refers to a single weft thread. By and large, the more ends and picks per inch, the finer the cloth. Balanced plain weave fabrics have warp and weft threads that are the same weight (size) and have the same number of ends and picks per inch.
Courses and Wales
Loops are the building blocks of knitted fabrics, and courses and wales in knitted fabrics are importantly similar to ends and pick in woven fabrics. The knitting structure is formed by intermeshing the loops in consecutive rows.
Courses: are the total number of horizontal rows measured in per inch or per centimetre. The course is a horizontal row of loops formed by all the adjacent needles during one revolution. course length is obtained by multiplying loop length with the number of needles involved in the production of the course.
Wales: are the number of vertical columns measured in per inch or per centimetre.
See also
Fabric inspection
References
Bibliography
Textiles
|
```go
/*
See path_to_url
*/
package mysql
import (
gosql "database/sql"
"fmt"
"strings"
"sync"
"time"
"github.com/github/gh-ost/go/sql"
"github.com/openark/golib/log"
"github.com/openark/golib/sqlutils"
)
const (
MaxTableNameLength = 64
MaxReplicationPasswordLength = 32
MaxDBPoolConnections = 3
)
type ReplicationLagResult struct {
Key InstanceKey
Lag time.Duration
Err error
}
func NewNoReplicationLagResult() *ReplicationLagResult {
return &ReplicationLagResult{Lag: 0, Err: nil}
}
func (this *ReplicationLagResult) HasLag() bool {
return this.Lag > 0
}
// knownDBs is a DB cache by uri
var knownDBs map[string]*gosql.DB = make(map[string]*gosql.DB)
var knownDBsMutex = &sync.Mutex{}
func GetDB(migrationUuid string, mysql_uri string) (db *gosql.DB, exists bool, err error) {
cacheKey := migrationUuid + ":" + mysql_uri
knownDBsMutex.Lock()
defer knownDBsMutex.Unlock()
if db, exists = knownDBs[cacheKey]; !exists {
db, err = gosql.Open("mysql", mysql_uri)
if err != nil {
return nil, false, err
}
db.SetMaxOpenConns(MaxDBPoolConnections)
db.SetMaxIdleConns(MaxDBPoolConnections)
knownDBs[cacheKey] = db
}
return db, exists, nil
}
// GetReplicationLagFromSlaveStatus returns replication lag for a given db; via SHOW SLAVE STATUS
func GetReplicationLagFromSlaveStatus(informationSchemaDb *gosql.DB) (replicationLag time.Duration, err error) {
err = sqlutils.QueryRowsMap(informationSchemaDb, `show slave status`, func(m sqlutils.RowMap) error {
slaveIORunning := m.GetString("Slave_IO_Running")
slaveSQLRunning := m.GetString("Slave_SQL_Running")
secondsBehindMaster := m.GetNullInt64("Seconds_Behind_Master")
if !secondsBehindMaster.Valid {
return fmt.Errorf("replication not running; Slave_IO_Running=%+v, Slave_SQL_Running=%+v", slaveIORunning, slaveSQLRunning)
}
replicationLag = time.Duration(secondsBehindMaster.Int64) * time.Second
return nil
})
return replicationLag, err
}
func GetMasterKeyFromSlaveStatus(connectionConfig *ConnectionConfig) (masterKey *InstanceKey, err error) {
currentUri := connectionConfig.GetDBUri("information_schema")
// This function is only called once, okay to not have a cached connection pool
db, err := gosql.Open("mysql", currentUri)
if err != nil {
return nil, err
}
defer db.Close()
err = sqlutils.QueryRowsMap(db, `show slave status`, func(rowMap sqlutils.RowMap) error {
// We wish to recognize the case where the topology's master actually has replication configuration.
// This can happen when a DBA issues a `RESET SLAVE` instead of `RESET SLAVE ALL`.
// An empty log file indicates this is a master:
if rowMap.GetString("Master_Log_File") == "" {
return nil
}
slaveIORunning := rowMap.GetString("Slave_IO_Running")
slaveSQLRunning := rowMap.GetString("Slave_SQL_Running")
if slaveIORunning != "Yes" || slaveSQLRunning != "Yes" {
return fmt.Errorf("Replication on %+v is broken: Slave_IO_Running: %s, Slave_SQL_Running: %s. Please make sure replication runs before using gh-ost.",
connectionConfig.Key,
slaveIORunning,
slaveSQLRunning,
)
}
masterKey = &InstanceKey{
Hostname: rowMap.GetString("Master_Host"),
Port: rowMap.GetInt("Master_Port"),
}
return nil
})
return masterKey, err
}
func GetMasterConnectionConfigSafe(connectionConfig *ConnectionConfig, visitedKeys *InstanceKeyMap, allowMasterMaster bool) (masterConfig *ConnectionConfig, err error) {
log.Debugf("Looking for master on %+v", connectionConfig.Key)
masterKey, err := GetMasterKeyFromSlaveStatus(connectionConfig)
if err != nil {
return nil, err
}
if masterKey == nil {
return connectionConfig, nil
}
if !masterKey.IsValid() {
return connectionConfig, nil
}
masterConfig = connectionConfig.Duplicate()
masterConfig.Key = *masterKey
log.Debugf("Master of %+v is %+v", connectionConfig.Key, masterConfig.Key)
if visitedKeys.HasKey(masterConfig.Key) {
if allowMasterMaster {
return connectionConfig, nil
}
return nil, fmt.Errorf("There seems to be a master-master setup at %+v. This is unsupported. Bailing out", masterConfig.Key)
}
visitedKeys.AddKey(masterConfig.Key)
return GetMasterConnectionConfigSafe(masterConfig, visitedKeys, allowMasterMaster)
}
func GetReplicationBinlogCoordinates(db *gosql.DB) (readBinlogCoordinates *BinlogCoordinates, executeBinlogCoordinates *BinlogCoordinates, err error) {
err = sqlutils.QueryRowsMap(db, `show slave status`, func(m sqlutils.RowMap) error {
readBinlogCoordinates = &BinlogCoordinates{
LogFile: m.GetString("Master_Log_File"),
LogPos: m.GetInt64("Read_Master_Log_Pos"),
}
executeBinlogCoordinates = &BinlogCoordinates{
LogFile: m.GetString("Relay_Master_Log_File"),
LogPos: m.GetInt64("Exec_Master_Log_Pos"),
}
return nil
})
return readBinlogCoordinates, executeBinlogCoordinates, err
}
func GetSelfBinlogCoordinates(db *gosql.DB) (selfBinlogCoordinates *BinlogCoordinates, err error) {
err = sqlutils.QueryRowsMap(db, `show master status`, func(m sqlutils.RowMap) error {
selfBinlogCoordinates = &BinlogCoordinates{
LogFile: m.GetString("File"),
LogPos: m.GetInt64("Position"),
}
return nil
})
return selfBinlogCoordinates, err
}
// GetInstanceKey reads hostname and port on given DB
func GetInstanceKey(db *gosql.DB) (instanceKey *InstanceKey, err error) {
instanceKey = &InstanceKey{}
err = db.QueryRow(`select @@global.hostname, @@global.port`).Scan(&instanceKey.Hostname, &instanceKey.Port)
return instanceKey, err
}
// GetTableColumns reads column list from given table
func GetTableColumns(db *gosql.DB, databaseName, tableName string) (*sql.ColumnList, *sql.ColumnList, error) {
query := fmt.Sprintf(`
show columns from %s.%s
`,
sql.EscapeName(databaseName),
sql.EscapeName(tableName),
)
columnNames := []string{}
virtualColumnNames := []string{}
err := sqlutils.QueryRowsMap(db, query, func(rowMap sqlutils.RowMap) error {
columnName := rowMap.GetString("Field")
columnNames = append(columnNames, columnName)
if strings.Contains(rowMap.GetString("Extra"), " GENERATED") {
log.Debugf("%s is a generated column", columnName)
virtualColumnNames = append(virtualColumnNames, columnName)
}
return nil
})
if err != nil {
return nil, nil, err
}
if len(columnNames) == 0 {
return nil, nil, log.Errorf("Found 0 columns on %s.%s. Bailing out",
sql.EscapeName(databaseName),
sql.EscapeName(tableName),
)
}
return sql.NewColumnList(columnNames), sql.NewColumnList(virtualColumnNames), nil
}
// Kill executes a KILL QUERY by connection id
func Kill(db *gosql.DB, connectionID string) error {
_, err := db.Exec(`KILL QUERY %s`, connectionID)
return err
}
```
|
The Cliff is a sports ground in Broughton, Salford, England, on the banks of the River Irwell, that was rugby league club Broughton Rangers' home ground until 1933. It was purchased by association football club Manchester United for use as their training ground. It was used as the club's primary training facility until 1999, when it was replaced by the Trafford Training Centre in Carrington, though it continues to host some Manchester United academy matches. It is also sometimes used by Salford rugby league side as a training venue.
Rugby league
The Cliff, on Lower Broughton Road in Broughton, Salford, started out as a cricket and tennis ground. The now-defunct Broughton Rangers rugby league club moved to The Cliff in 1913 and played there until 1933, when they moved to Belle Vue Stadium in Gorton, Manchester.
The ground was host to the 1920–21 Challenge Cup final seeing Leigh defeat Halifax to lift the trophy.
Association football
In May 1938, the site was earmarked by Manchester United F.C. chairman James W. Gibson as a potential site for practice matches and as a regular venue for the Manchester United Junior Athletic Club (MUJAC) A team's matches. By the end of June 1938, a tenancy had been agreed. Manchester United purchased the ground in 1951. Until the late 1950s, Manchester United's first team trained on the pitch at their Old Trafford stadium, but the club's management had decided that using The Cliff training ground was necessary to avoid doing needless damage to the Old Trafford pitch.
Floodlights were soon erected at The Cliff – an improvement that Old Trafford did not receive until March 1957 – and a rugby league amateur international match was held there in 1952. That same year, Manchester United entered their youth team in the FA Youth Cup for the first time. Matches were played at night, meaning that the team had to play under the floodlights at The Cliff. In the second round of the competition, the Manchester United youth team recorded the biggest win in the history of the FA Youth Cup; David Pegg, John Doherty and Duncan Edwards scored five goals each and Eddie Lewis scored four in a 23–0 victory over Nantwich Town's youth team.
At the end of the 20th century, Manchester United manager Alex Ferguson came to feel that The Cliff had become too open to the press and the public for him to successfully run the training of the club's first team players, with journalists and opposition spies able to get a look at his tactics all too easily and supporters holding the players up for hours after training with requests for autographs. The club, therefore, decided to construct a new training facility in Carrington, away from prying eyes. First team, reserve and academy training is now carried out at the Trafford Training Centre, but The Cliff is still retained for the training of the club's youngest players. The England national team has also used the Cliff as a training base ahead of international matches at Old Trafford.
In 2003, plans were put forward by Manchester United for a set of floodlights at The Cliff, but this was met with opposition from local residents. The club had originally planned to install lights, but this was later reduced.
On their establishment ahead of the 2018–19 season, it was announced Manchester United Women would train and play their home games at The Cliff, subject to redevelopment. In lieu of these renovations, the team has been based at Leigh Sports Village since inception. With no progress three years after the initial announcement, tensions surrounding the lack of backing and resources from the club, particularly training facilities, led to the resignation of Casey Stoney in May 2021.
References
Bibliography
Specific
Cliff
Manchester United F.C.
Defunct rugby league venues in England
Sports venues in Salford
|
```jsx
import React from 'react';
const Opsec = () => {
return (
<>
<p>
Executing the attack will generate a 5136 (A directory object
was modified) event at the domain controller if an appropriate
SACL is in place on the target object.
</p>
<p>
If PKINIT is not common in the environment, a 4768 (Kerberos
authentication ticket (TGT) was requested) ticket can also
expose the attacker.
</p>
</>
);
};
export default Opsec;
```
|
```xml
import React, { useEffect, useState, useCallback, useMemo } from 'react';
import { createPortal } from 'react-dom';
import canUseDOM from 'dom-lib/canUseDOM';
interface PortalProps {
container?: HTMLElement | (() => HTMLElement | null) | null;
// Wait until the application has been mounted before creating a Portal.
waitMount?: boolean;
}
const MountedPortal = React.memo(
({ children, container }: { children: React.ReactNode; container: Element }) => {
const [mounted, setMounted] = useState(false);
useEffect(() => setMounted(true), []);
if (container && mounted) {
return createPortal(children, container);
}
return null;
}
);
export function usePortal(props: PortalProps = {}) {
const { container, waitMount = false } = props;
const containerElement = typeof container === 'function' ? container() : container;
const rootElement = useMemo(
() => (canUseDOM ? containerElement || document.body : null),
[containerElement]
);
const Portal = useCallback(
({ children }: { children: React.ReactNode }) => {
return rootElement != null ? createPortal(children, rootElement) : null;
},
[rootElement]
);
const WaitMountPortal = useCallback(
props => <MountedPortal container={rootElement} {...props} />,
[rootElement]
);
return {
target: rootElement,
Portal: waitMount ? WaitMountPortal : Portal
};
}
export default usePortal;
```
|
```objective-c
/* Common VxWorks target definitions for GNU compiler.
Free Software Foundation, Inc.
Contributed by Wind River Systems.
Rewritten by CodeSourcery, LLC.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
Software Foundation; either version 2, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
for more details.
along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
/* In kernel mode, VxWorks provides all the libraries itself, as well as
the functionality of startup files, etc. In RTP mode, it behaves more
like a traditional Unix, with more external files. Most of our specs
must be aware of the difference. */
/* The directory containing the VxWorks target headers. */
#define VXWORKS_TARGET_DIR "/home/tornado/base6/target"
/* Since we provide a default -isystem, expand -isystem on the command
line early. */
#undef VXWORKS_ADDITIONAL_CPP_SPEC
#define VXWORKS_ADDITIONAL_CPP_SPEC " \
%{!nostdinc:%{isystem*}} \
%{mrtp: -D__RTP__=1 \
%{!nostdinc:-isystem " VXWORKS_TARGET_DIR "/usr/h}} \
%{!mrtp:-D_WRS_KERNEL=1 \
%{!nostdinc:-isystem " VXWORKS_TARGET_DIR "/h}}"
/* The references to __init and __fini will be satisfied by
libc_internal.a. */
#undef VXWORKS_LIB_SPEC
#define VXWORKS_LIB_SPEC \
"%{mrtp:%{shared:-u " USER_LABEL_PREFIX "__init -u " USER_LABEL_PREFIX "__fini} \
%{!shared:%{non-static:-u " USER_LABEL_PREFIX "_STI__6__rtld -ldl} \
--start-group -lc -lgcc -lc_internal -lnet -ldsi \
--end-group}}"
/* The no-op spec for "-shared" below is present because otherwise GCC
will treat it as an unrecognized option. */
#undef VXWORKS_LINK_SPEC
#define VXWORKS_LINK_SPEC \
"%{!mrtp:-r} \
%{!shared: \
%{mrtp:-q %{h*} \
%{R*} %{!Wl,-T*: %{!T*: %(link_start) }} \
%(link_target) %(link_os)}} \
%{v:-V} \
%{shared:-shared} \
%{Bstatic:-Bstatic} \
%{Bdynamic:-Bdynamic} \
%{!Xbind-lazy:-z now} \
%{Xbind-now:%{Xbind-lazy: \
%e-Xbind-now and -Xbind-lazy are incompatible}} \
%{mrtp:%{!shared:%{!non-static:-static} \
%{non-static:--force-dynamic --export-dynamic}}}"
/* For VxWorks, the system provides libc_internal.a. This is a superset
of libgcc.a; we want to use it. Make sure not to dynamically export
any of its symbols, though. Always look for libgcc.a first so that
we get the latest versions of the GNU intrinsics during our builds. */
#undef VXWORKS_LIBGCC_SPEC
#define VXWORKS_LIBGCC_SPEC \
"-lgcc %{mrtp:--exclude-libs=libc_internal,libgcc -lc_internal}"
#undef VXWORKS_STARTFILE_SPEC
#define VXWORKS_STARTFILE_SPEC "%{mrtp:%{!shared:crt0.o%s}}"
#define VXWORKS_ENDFILE_SPEC ""
/* We can use .ctors/.dtors sections only in RTP mode.
Unfortunately this must be an integer constant expression;
fix up in override_options. */
#undef VXWORKS_OVERRIDE_OPTIONS
#define VXWORKS_OVERRIDE_OPTIONS do { \
targetm.have_ctors_dtors = TARGET_VXWORKS_RTP; \
} while (0)
/* The VxWorks runtime uses a clever trick to get the sentinel entry
(-1) inserted at the beginning of the .ctors segment. This trick
will not work if we ever generate any entries in plain .ctors
sections; we must always use .ctors.PRIORITY. */
#define ALWAYS_NUMBER_CTORS_SECTIONS 1
/* The name of the symbol for the table of GOTs in a particular
RTP. */
#define VXWORKS_GOTT_BASE "__GOTT_BASE__"
/* The name of the symbol for the index into the table of GOTs for the
GOT associated with the current shared library. */
#define VXWORKS_GOTT_INDEX "__GOTT_INDEX__"
#define VXWORKS_KIND VXWORKS_KIND_NORMAL
```
|
```java
package com.reactnativecommunity.webview;
import android.app.DownloadManager;
import android.net.Uri;
import android.webkit.ValueCallback;
import androidx.annotation.NonNull;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.module.annotations.ReactModule;
@ReactModule(name = RNCWebViewModuleImpl.NAME)
public class RNCWebViewModule extends NativeRNCWebViewSpec {
final private RNCWebViewModuleImpl mRNCWebViewModuleImpl;
public RNCWebViewModule(ReactApplicationContext reactContext) {
super(reactContext);
mRNCWebViewModuleImpl = new RNCWebViewModuleImpl(reactContext);
}
@Override
public void isFileUploadSupported(final Promise promise) {
promise.resolve(mRNCWebViewModuleImpl.isFileUploadSupported());
}
@Override
public void shouldStartLoadWithLockIdentifier(boolean shouldStart, double lockIdentifier) {
mRNCWebViewModuleImpl.shouldStartLoadWithLockIdentifier(shouldStart, lockIdentifier);
}
public void startPhotoPickerIntent(ValueCallback<Uri> filePathCallback, String acceptType) {
mRNCWebViewModuleImpl.startPhotoPickerIntent(acceptType, filePathCallback);
}
public boolean startPhotoPickerIntent(final ValueCallback<Uri[]> callback, final String[] acceptTypes, final boolean allowMultiple, final boolean isCaptureEnabled) {
return mRNCWebViewModuleImpl.startPhotoPickerIntent(acceptTypes, allowMultiple, callback, isCaptureEnabled);
}
public void setDownloadRequest(DownloadManager.Request request) {
mRNCWebViewModuleImpl.setDownloadRequest(request);
}
public void downloadFile(String downloadingMessage) {
mRNCWebViewModuleImpl.downloadFile(downloadingMessage);
}
public boolean grantFileDownloaderPermissions(String downloadingMessage, String lackPermissionToDownloadMessage) {
return mRNCWebViewModuleImpl.grantFileDownloaderPermissions(downloadingMessage, lackPermissionToDownloadMessage);
}
@NonNull
@Override
public String getName() {
return RNCWebViewModuleImpl.NAME;
}
}
```
|
Manslaughter is a 1930 American pre-Code drama film directed by George Abbott, and starring Claudette Colbert and Fredric March. An original print of the film is saved in the UCLA Film and Television Archive. This film is a sound remake of Cecil B. DeMille's 1922 silent classic Manslaughter. Paramount also released a French-language version of this 1930 film as The Indictment, directed by Dimitri Buchowetzki.
Plot summary
A wealthy woman runs over and kills a man in an automobile accident.
Cast
Claudette Colbert as Lydia Thorne
Fredric March as Dan O'Bannon
Emma Dunn as Miss Bennett
Natalie Moorhead as Eleanor Bellington
Richard Tucker as J.P. Albee
Hilda Vaughn as Louise Evans
G. Pat Collins as John Drummond
Steve Pendleton as Bobby
Stanley Fields as Peters
Arnold Lucy as Piers
Ivan F. Simpson as Morson
George Chandler as Roadside Observer
References
External links
1930 films
1930s English-language films
American black-and-white films
Paramount Pictures films
Films based on American novels
Films directed by George Abbott
1930 drama films
American drama films
American multilingual films
Remakes of American films
Sound film remakes of silent films
Films based on works by Alice Duer Miller
1930 multilingual films
Films scored by Karl Hajos
1930s American films
|
```go
package db
import (
"encoding/base64"
"fmt"
"net/http"
"strings"
"time"
)
// CacheControl sets the default cache policy on static asset responses
func CacheControl(next http.Handler) http.HandlerFunc {
return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
cacheDisabled := ConfigCache("cache_disabled").(bool)
if cacheDisabled {
res.Header().Add("Cache-Control", "no-cache")
next.ServeHTTP(res, req)
} else {
age := int64(ConfigCache("cache_max_age").(float64))
etag := ConfigCache("etag").(string)
if age == 0 {
age = DefaultMaxAge
}
policy := fmt.Sprintf("max-age=%d, public", age)
res.Header().Add("ETag", etag)
res.Header().Add("Cache-Control", policy)
if match := req.Header.Get("If-None-Match"); match != "" {
if strings.Contains(match, etag) {
res.WriteHeader(http.StatusNotModified)
return
}
}
next.ServeHTTP(res, req)
}
})
}
// NewEtag generates a new Etag for response caching
func NewEtag() string {
now := fmt.Sprintf("%d", time.Now().Unix())
etag := base64.StdEncoding.EncodeToString([]byte(now))
return etag
}
// InvalidateCache sets a new Etag for http responses
func InvalidateCache() error {
err := PutConfig("etag", NewEtag())
if err != nil {
return err
}
return nil
}
```
|
Thewarathantrige Lalithamana Fernando (born 27 December 1962) is a former Sri Lankan cricketer who played in one One Day International in 1989.
1962 births
Living people
Sri Lanka One Day International cricketers
Sri Lankan cricketers
Colts Cricket Club cricketers
Burgher Recreation Club cricketers
Kandurata cricketers
Place of birth missing (living people)
|
Manfred Mann were an English rock band active between 1962 and 1969.
Manfred Mann may also refer to:
Manfred Mann (musician), a musician who is a founding member of the band Manfred Mann
See also
Manfred Mann Chapter Three, a later band, active from 1970 to 1971, also founded by Manfred Mann
Manfred Mann's Earth Band, another later band, active from 1971 to present, also founded by Manfred Mann
Manfred man, an additional baseball runner allowed in extra innings, named for the MLB commissioner who introduced the rule
|
Southern Malaysian Hokkien () is a local variant of the Min Nan Chinese variety spoken in Central and Southern Peninsular Malaysia (Klang, Melaka, Muar, Tangkak, Segamat, Batu Pahat, Pontian and Johor Bahru). Due to geographical proximity, it is heavily influenced by Singaporean Hokkien.
This dialect is based on Quanzhou-accented varieties of Min Nan, including the Eng Choon (Yongchun) dialect. It is markedly distinct from Penang Hokkien and Medan Hokkien, which are based on the Zhangzhou dialects.
Similar to the situation in Singapore, the term Hokkien is generally used by the Chinese in South-east Asia to refer to Min Nan Chinese (闽南语). Southern Malaysian Hokkien is based on the Quanzhou dialects with some influence from the Amoy dialect. The dialect also contains loan words from Malay.
Phonology
This section is based on Eng Choon (Yongchun) Hokkien spoken in Melaka.
Vowels
There are eight phonemic vowels:
Tones
There are seven tones, five of which are long tones and two are checked tones. Like other varieties of Hokkien, these tones also undergo tone sandhi in non-final positions. The tone values (both base tones and sandhi tones) of the long tones are shown below:
Influences from other languages
Southern Malaysian Hokkien is also subjected to influence from various languages or dialects spoken in Malaysia. This is influenced to a certain degree by the Teochew dialect and is sometimes being regarded to be a combined Hokkien–Teochew speech (especially in Muar, Batu Pahat, Pontian and Johor Bahru).
There are some loanwords from Malay, but they are fewer in number than in Penang Hokkien and do not completely replace the original words in Hokkien. It also has loanwords from English.
Notes
References
Sources
See also
Hoklo people
Hokkien culture
Hokkien architecture
Written Hokkien
Hokkien media
Penang Hokkien
Singaporean Hokkien
Taiwanese Hokkien
Medan Hokkien
Philippine Hokkien
Amoy dialect
Speak Hokkien Campaign
Holopedia
Chinese in Malaysia
Chinese in Singapore
Chinese in Indonesia
Chinese in Philippines
Hokkien-language dialects
Languages of Malaysia
|
```python
from scipy.stats import multivariate_normal
from scipy.signal import convolve2d
import matplotlib
try:
matplotlib.pyplot.figure()
matplotlib.pyplot.close()
except Exception:
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import os
# the colormap should assign light colors to low values
TERRAIN_CMAP = 'Greens'
DEFAULT_PATH = '/tmp/mujoco_terrains'
STEP = 0.1
def generate_hills(width, height, nhills):
'''
@param width float, terrain width
@param height float, terrain height
@param nhills int, #hills to gen. #hills actually generted is sqrt(nhills)^2
'''
# setup coordinate grid
xmin, xmax = -width/2.0, width/2.0
ymin, ymax = -height/2.0, height/2.0
x, y = np.mgrid[xmin:xmax:STEP, ymin:ymax:STEP]
pos = np.empty(x.shape + (2,))
pos[:, :, 0] = x; pos[:, :, 1] = y
# generate hilltops
xm, ym = np.mgrid[xmin:xmax:width/np.sqrt(nhills), ymin:ymax:height/np.sqrt(nhills)]
mu = np.c_[xm.flat, ym.flat]
sigma = float(width*height)/(nhills*8)
for i in range(mu.shape[0]):
mu[i] = multivariate_normal.rvs(mean=mu[i], cov=sigma)
# generate hills
sigma = sigma + sigma*np.random.rand(mu.shape[0])
rvs = [ multivariate_normal(mu[i,:], cov=sigma[i]) for i in range(mu.shape[0]) ]
hfield = np.max([ rv.pdf(pos) for rv in rvs ], axis=0)
return x, y, hfield
def clear_patch(hfield, box):
''' Clears a patch shaped like box, assuming robot is placed in center of hfield
@param box: rllab.spaces.Box-like
'''
if box.flat_dim > 2:
raise ValueError("Provide 2dim box")
# clear patch
h_center = int(0.5 * hfield.shape[0])
w_center = int(0.5 * hfield.shape[1])
fromrow, torow = w_center + int(box.low[0]/STEP), w_center + int(box.high[0] / STEP)
fromcol, tocol = h_center + int(box.low[1]/STEP), h_center + int(box.high[1] / STEP)
hfield[fromrow:torow, fromcol:tocol] = 0.0
# convolve to smoothen edges somewhat, in case hills were cut off
K = np.ones((10,10)) / 100.0
s = convolve2d(hfield[fromrow-9:torow+9, fromcol-9:tocol+9], K, mode='same', boundary='symm')
hfield[fromrow-9:torow+9, fromcol-9:tocol+9] = s
return hfield
def _checkpath(path_):
if path_ is None:
path_ = DEFAULT_PATH
if not os.path.exists(path_):
os.makedirs(path_)
return path_
def save_heightfield(x, y, hfield, fname, path=None):
'''
@param path, str (optional). If not provided, DEFAULT_PATH is used. Make sure the path + fname match the <file> attribute
of the <asset> element in the env XML where the height field is defined
'''
path = _checkpath(path)
plt.figure()
plt.contourf(x, y, -hfield, 100, cmap=TERRAIN_CMAP) # terrain_cmap is necessary to make sure tops get light color
plt.savefig(os.path.join(path, fname), bbox_inches='tight')
plt.close()
def save_texture(x, y, hfield, fname, path=None):
'''
@param path, str (optional). If not provided, DEFAULT_PATH is used. Make sure this matches the <texturedir> of the
<compiler> element in the env XML
'''
path = _checkpath(path)
plt.figure()
plt.contourf(x, y, -hfield, 100, cmap=TERRAIN_CMAP)
xmin, xmax = x.min(), x.max()
ymin, ymax = y.min(), y.max()
# for some reason plt.grid does not work here, so generate gridlines manually
for i in np.arange(xmin,xmax,0.5):
plt.plot([i,i], [ymin,ymax], 'k', linewidth=0.1)
for i in np.arange(ymin,ymax,0.5):
plt.plot([xmin,xmax],[i,i], 'k', linewidth=0.1)
plt.savefig(os.path.join(path, fname), bbox_inches='tight')
plt.close()
```
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="Source Files">
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\SampleParticlesImpactParticles\Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\SampleParticlesImpactParticles\SampleSceneController.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\SampleParticlesImpactParticles\SampleUIController.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClInclude Include="..\..\SampleParticlesImpactParticles\SampleSceneController.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\SampleParticlesImpactParticles\SampleUIController.h">
<Filter>Source Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
```
|
John Kirby (30 September 1910 – 15 June 1960) was an English football goalkeeper.
Kirby joined Derby County from Newhall United in April 1929 and made his debut in the 1929–30 season. In 1934 he was part of the Derby side that toured Germany. Kirby defied the German authorities by being the only member of the team to refuse to give the Nazi salute before each game. He left in August 1938 to become player-manager of Folkestone Town, a position he held until August 1939.
References
1910 births
1960 deaths
People from Overseal
Footballers from Derbyshire
English men's footballers
Men's association football goalkeepers
Newhall United F.C. players
Derby County F.C. players
Folkestone F.C. players
English Football League players
English football managers
Folkestone F.C. managers
|
Williams Peak may refer to:
United States
Williams Peak (Alaska)
Williams Peak, a peak in the Sierra Prieta range, Arizona
Williams Peak (Colorado)
Williams Peak (Clearwater County, Idaho)
Williams Peak (Custer County, Idaho)
Williams Peak (Valley County, Idaho)
Williams Peak (Mineral County, Montana), a mountain in Mineral County, Montana
Williams Peak, on Oklahoma State Highway 44
Other places
Williams Peak (Antarctica)
Williams Peak (British Columbia)
See also
Williams Mountain Highpoint, Colorado
|
```smalltalk
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
//
//
//
[assembly: AssemblyTitle("Git.Storage.Web")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("workgroup")]
[assembly: AssemblyProduct("Git.Storage.Web")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible false
// COM COM
// ComVisible true
[assembly: ComVisible(false)]
// COM GUID ID
[assembly: Guid("9ae4bcb5-60e9-4c83-b0e9-1869687a6cd9")]
// :
//
//
//
//
//
//
//
// *:
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("1.0.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
```
|
```php
<?hh // strict
/* HH_IGNORE_ERROR[1002] */
$translations = array(
'date and time format' =>
'H:i:s D d/m/Y', //used by date() function
//Translations for IndexController
'Facebook CTF' =>
'Facebook CTF',
'Conquer the world' =>
'Conquista el mundo',
'Play' =>
'Jugar',
'Welcome to the Facebook Capture the Flag Competition. By clicking "Play," you will be entered into the official CTF challenge. Good luck in your conquest.' =>
'Bienvenido a la competicin CTF de Facebook. Al hacer clic en "Jugar," entrars en la competicin CTF. Mucha suerte!.',
'Get ready for the CTF to start and access the gameboard now!' =>
'Preprate para competir y acceder al panel de juego!',
'Gameboard' =>
'Panel de juego',
'Register Team' =>
'Registrar equipo',
'Get ready for the CTF to start and register your team now!' =>
'Preprate para competir y registrar tu equipo!',
'Login' =>
'Inciar sesin',
'Soon' =>
'Prximamente',
'Upcoming Game' =>
'Prximo juego',
'_days' =>
'_das',
'_hours' =>
'_horas',
'_minutes' =>
'_minutos',
'_seconds' =>
'_segundos',
'Official CTF Rules' =>
'Reglas Oficiales de CTF',
'Following actions are prohibited, unless explicitly told otherwise by event Admins.' =>
'Las siguientes acciones se encuentran prohibidas, si no son permitidas explcitamente por los Administradores del evento.',
'Rule' =>
'Regla',
'Cooperation' =>
'Cooperacin',
'No cooperation between teams with independent accounts. Sharing of keys or providing revealing hints to other teams is cheating, dont do it.' =>
'Los equipos con cuentas independientes no pueden cooperar entre s. Compartir claves o pistas con otros equipos es hacer trampa, no lo hagas.',
'Attacking Scoreboard' =>
'Puntuaciones de Ataque',
'No attacking the competition infrastructure. If bugs or vulns are found, please alert the competition organizers immediately.' =>
'Prohibido atacar la infraestructura de la competencia. Si se encuentra alguna vulnerabilidad, por favor alerten inmediatamente a los organizadores.',
'Sabotage' =>
'Sabotaje',
'Absolutely no sabotaging of other competing teams, or in any way hindering their independent progress.' =>
'Est totalmente prohibido sabotear a otros equipos dentro del juego, o impedir el progreso de algn otro modo.',
'Bruteforcing' =>
'Fuerza Bruta',
'No brute forcing of challenge flag/ keys against the scoring site.' =>
'No aplicar fuerza bruta contra el sitio para las claves o soluciones del reto.',
'Denial Of Service' =>
'Denegacin De Servicio',
'DoSing the CTF platform or any of the challenges is forbidden.' =>
'Queda prohibido hacer ataques de denegacin de servicio a la plataform de CTF.',
'Legal' =>
'Legal',
'Disclaimer' =>
'Disclaimer',
'By participating in the contest, you agree to release Facebook and its employees, and the hosting organization from any and all liability, claims or actions of any kind whatsoever for injuries, damages or losses to persons and property which may be sustained in connection with the contest. You acknowledge and agree that Facebook et al is not responsible for technical, hardware or software failures, or other errors or problems which may occur in connection with the contest.' =>
'Al participar en el concurso, usted acepta liberar a Facebook y sus empleados, y a la organizadora del evento de cualquier responsabilidad, reclamos o acciones de cualquier tipo por lesiones, daos o prdidas a las personas y bienes que puedan ir en relacin con el concurso. Usted reconoce y acepta que Facebook y otros no se hacen responsables de fallos tcnicos, de hardware o software, u otros errores o problemas que pueden ocurrir relacionados al concurso',
'If you have any questions about what is or is not allowed, please ask an organizer.' =>
'Si tiene alguna pregunta acerca de lo que est o no permitido, consulte a un organizador.',
'Have fun!' =>
'Divirtete!',
'Name' =>
'Nombre',
'Email' =>
'Correo electrnico',
'Token' =>
'Token',
'Team Registration' =>
'Registro de equipo',
'Team Name' =>
'Nombre de equipo',
'Password' =>
'Contrasea',
'Choose an Emblem' =>
'Elige un emblema',
'or upload your own' =>
'o sube tus propios',
'Clear your custom emblem to use a default emblem.' =>
'Elimine su emblema personalizado para usar un emblema predeterminado.',
'Password is too simple' =>
'La contrasea es demasiado simple',
'Sign Up' =>
'Regstrate',
'Register to play Capture The Flag here. Once you have registered, you will be logged in.' =>
'Regstrate aqu para jugar Capture The Flag. Una vez registrado, acceders al sitio.',
'Not Available' =>
'No disponible',
'Team Registration will be open soon, stay tuned!' =>
'El registro de equipos se habilitar pronto, mantente al tanto!',
'Try Again' =>
'Intentar Nuevamente',
'Select' =>
'Seleccionar',
'Team Login' =>
'Acceso de equipo',
'Please login here. If you have not registered, you may do so by clicking "Sign Up" below. ' =>
'Por favor inicia sesin aqu. Si no lo hiciste, puedes hacerlo haciendo clic en "Registro" ms abajo. ',
'Team Login will be open soon, stay tuned!' =>
'El Acceso de Equipo se abrir pronto, mantente al tanto!',
'ERROR' =>
'ERROR',
'Start Over' =>
'Iniciar',
'Window is too small' =>
'La ventana es muy pequea',
'For the best CTF experience, please make window size bigger.' =>
'Para una mejor experiencia, por favor agranda tu ventana.',
'Thank you.' =>
'Gracias.',
'Logout' =>
'Cerrar sesin',
'Registration' =>
'Registro',
'Play CTF' =>
'Jugar CTF',
'Rules' =>
'Reglas',
//Translations for GameboardController
'Admin' =>
'Admin',
'ADMIN' =>
'ADMIN',
'Navigation' =>
'Navegacin',
'View Mode' =>
'Modo visualizacin',
'View mode' =>
'Modo visualizacin',
'Tutorial' =>
'Tutorial',
'Scoreboard' =>
'Puntuaciones',
'You' =>
'T',
'Others' =>
'Otros',
'All' =>
'Todos',
'Leaderboard' =>
'Ranking',
'Announcements' =>
'Anuncios',
'Teams' =>
'Equipos',
'Filter' =>
'Filtrar',
'Activity' =>
'Actividad',
'Game Clock' =>
'Reloj de juego',
//Translations for AdminController
'Auto' =>
'Auto',
'All Categories' =>
'Todas las categoras',
'Open' =>
'Abrir',
'Tokenized' =>
'Tokenized',
'Hour' =>
'Hora',
'Hours' =>
'Horas',
'Used by' =>
'Utilizado por',
'Used By' =>
'Utilizado Por',
'Available' =>
'Disponible',
'Registration Tokens' =>
'Tokens de registro',
'Create More' =>
'Crear ms',
'Export Available' =>
'Exportar disponibles',
'Not started yet' =>
'No inici an',
'Configuration' =>
'Configuracin',
'Tokens' =>
'Tokens',
'Game Configuration' =>
'Configuracin del juego',
'OK' =>
'OK',
'status_' =>
'estado_',
'On' =>
'On',
'Off' =>
'Off',
'Player Names' =>
'Nombre de los jugadores',
'Players Per Team' =>
'Jugadores por equipo',
'Registration Type' =>
'Tipo de registro',
'Strong Passwords' =>
'Contraseas Sseguras',
'Team Selection' =>
'Seleccin de equipo',
'Password Types' =>
'Politica de contraseas',
'Game' =>
'Juego',
'Scoring' =>
'Puntuacin',
'Progressive Cycle (s)' =>
'Ciclos progresivos',
'Refresh Gameboard' =>
'Refrescar panel de juego',
'Default Bonus' =>
'Bonus por defecto',
'Bases Cycle (s)' =>
'Ciclos Base',
'Default Bonus Dec' =>
'Bonus Dec por defecto',
'Game Schedule' =>
'Calendario',
'Game Start Year' =>
'Ao de inicio',
'Game End Year' =>
'Ao de fin',
'Day' =>
'Da',
'Month' =>
'Mes',
'Minute' =>
'Minuto',
'Timer' =>
'Temporizador',
'Server Time' =>
'Tiempo del servidor',
'Game Duration' =>
'Duracin del juego',
'Begin Time' =>
'Tiempo de inicio',
'Expected End Time' =>
'Tiempo de finalizacin esperado',
'Internationalization' =>
'Internacionalizacin',
'Language' =>
'Lenguaje',
'Branding' =>
'Marca',
'Custom Logo' =>
'Logotipo personalizado',
'Logo' =>
'Logo',
'Custom Text' =>
'Texto personalizado',
'DELETE' =>
'BORRAR',
'Delete' =>
'Borrar',
'No Announcements' =>
'No hay anuncios',
'Game Controls' =>
'Controles del juego',
'Write New Announcement here' =>
'Escribir nuevo anuncio aqu',
'Create' =>
'Crear',
'General' =>
'General',
'Back Up Database' =>
'Hacer copia de seguridad de la base de datos',
'Export Full Game' =>
'Juego completo de exportacin',
'Import Full Game' =>
'Juego completo de importacin',
'Import Teams' =>
'Equipos de importacin',
'Export Teams' =>
'Exportar equipos',
'Import Logos' =>
'Importar logos',
'Export Logos' =>
'Exportar logos',
'Import Levels' =>
'Niveles de importacin',
'Export Levels' =>
'Niveles de exportacin',
'Import Categories' =>
'Categoras de importacin',
'Export Categories' =>
'Categoras de exportacin',
'Levels' =>
'Niveles',
'New Quiz Level' =>
'Nuevo nivel acertijo',
'Title' =>
'Ttulo',
'Question' =>
'Pregunta',
'Level title' =>
'Ttulo del nivel',
'Quiz question' =>
'Acertijo',
'Country' =>
'Pas',
'Answer' =>
'Respuesta',
'Points' =>
'Puntos',
'Hint' =>
'Pista',
'Hint Penalty' =>
'Penalizacin de la pista',
'EDIT' =>
'EDITAR',
'All Quiz Levels' =>
'Todos los niveles acertijo',
'Filter By:' =>
'Filtrar por:',
'All Status' =>
'Todos los estados',
'Enabled' =>
'Habilitado',
'Disabled' =>
'Deshabilitado',
'Quiz Level' =>
'Nivel acertijo',
'Show Answer' =>
'Mostrar respuesta',
'Bonus' =>
'Bonus',
'-Dec' =>
'-Dec',
'Save' =>
'Guardar',
'Quiz Management' =>
'Administracin de acertijos',
'Add Quiz Level' =>
'Aadir nuevo nivel de acertijo',
'New Flag Level' =>
'Nuevo nivel bandera',
'Description' =>
'Descripcin',
'Level description' =>
'Descripcin del divel',
'Category' =>
'Categora',
'Flag' =>
'Bandera',
'flag' =>
'bandera',
'All Flag Levels' =>
'Todos los niveles bandera',
'New Attachment:' =>
'Nuevo adjunto:',
'Attachment' =>
'Adjunto',
'Link' =>
'Link',
'New Link:' =>
'Nuevo Link:',
'Flag Level' =>
'Nivel bandera',
'Categories' =>
'Categorias',
'+ Attachment' =>
'+ Adjunto',
'+ Link' =>
'+ Link',
'Flags Management' =>
'Administrar banderas',
'Add Flag Level' =>
'Aadir nivel bandera',
'New Base Level' =>
'Nuevo nivel base',
'Keep Points' =>
'Mantener puntos',
'Capture points' =>
'Capturar puntos',
'All Base Levels' =>
'Todos los niveles base',
'Base Level' =>
'Nivel base',
'Bases Management' =>
'Administrar bases',
'Add Base Level' =>
'Aadir Nivel Base',
'New Category' =>
'Nueva categora',
'Category: ' =>
'Categora: ',
'Categories Management' =>
'Administrar categoras',
'Add Category' =>
'Aadir Categora',
'All Countries' =>
'Todos lo pases',
'In Use' =>
'En uso',
'In use' =>
'En uso',
'Not Used' =>
'Sin usar',
'Yes' =>
'Si',
'No' =>
'No',
'ISO Code' =>
'Cdigo ISO',
'Countries Management' =>
'Adminsitrar pases',
'No Team Names' =>
'No hay nombre de equipos',
'time' =>
'tiempo',
'type' =>
'tipo',
'pts' =>
'pts',
'Level' =>
'Nivel',
'level' =>
'nivel',
'No Scores' =>
'No hay puntaciones',
'Attempt' =>
'Intento',
'No Failures' =>
'Sin fallas',
'Team' =>
'Equipo',
'team' =>
'equipo',
'Names' =>
'Nombres',
'Scores' =>
'Puntuaciones',
'Failures' =>
'Fallas',
'New Team' =>
'Nuevo equipo',
'Team Logo' =>
'Logo de equipo',
'Selected Logo:' =>
'Logo seleccionado:',
'Select Logo' =>
'Seleccionar logo',
'All Teams' =>
'Todos los equipos',
'Protected' =>
'Protegido',
'Score' =>
'Puntuacin',
'Change Password' =>
'Cambiar contrasea',
'Admin Level' =>
'Administrar nivel',
'Visibility' =>
'Visibilidad',
'Team Management' =>
'Administrar equipo',
'Add Team' =>
'Aadir equipo',
'None' =>
'Ningno',
'Logo Name' =>
'Nombre de logo',
'Logo Management' =>
'Administracin de logo',
'Session' =>
'Sesin',
'Cookie' =>
'Cookie',
'Creation Time' =>
'Tiempo de creacin',
'Last Access' =>
'ltimo acceso',
'Last Page Access' =>
'ltima pgina de acceso',
'Data' =>
'Datos',
'Sessions' =>
'Sesiones',
'entry' =>
'entrada',
'No Entries' =>
'Sin entrada',
'Game Logs' =>
'Logs del juego',
'Game Logs Timeline' =>
'Logs del juego en linea de tiempo',
'End Game' =>
'Finalizar juego',
'Begin Game' =>
'Iniciar juego',
'Game Admin' =>
'Administracin del juego',
'Controls' =>
'Controles',
'Quiz' =>
'Acertijo',
'Flags' =>
'Banderas',
'Bases' =>
'Bases',
'Countries' =>
'Pases',
'Logos' =>
'Logos',
//Translations for inc/* and inc/gameboard/*
'captured' =>
'capturado',
'Status' =>
'Estado',
'Completed' =>
'Completado',
'Remaining' =>
'Restante',
'Start' =>
'Iniciar',
'End' =>
'Finalizar',
'Rank' =>
'Posicin',
'pts' =>
'pts', //points
'Your Rank' =>
'Tu posicin',
'Your Score' =>
'Tu puntuacin',
'Everyone' =>
'Todos',
'Your Team' =>
'Tu equipo',
'Captured' =>
'Capturado',
'Initiating' =>
'Iniciando',
'run : > boot_sequence' =>
'run : > boot_sequence',
'Extracting' =>
'Extrayendo',
//Translations for Utils.php's time_ago() function
'just now' =>
'justo ahora',
'd' =>
'd', //day
'hr' =>
'hr', //hour
'min' =>
'min', //minute
'sec' =>
'seg', //second
'ds' =>
'd', //days
'hrs' =>
'hrs', //hours
'mins' =>
'mins', //minutes
'secs' =>
'segs', //seconds
'ago' =>
'atrs',
//Translations for ModalControllers
'begin_' =>
'comenzar_',
'Are you sure you want to kick off the game? Logs will be cleared and progressive scoreboard will start' =>
'Est seguro de que desea iniciar el juego? Los logs se borrarn y el panel de puntuaciones iniciar',
'end_' =>
'finalizar_',
'Are you sure you want to finish the current game?' =>
'Est seguro que desea finalizar el juego actual?',
'Are you sure you want to logout from the game?' =>
'Est seguro que desea salir del juego?',
'Saved' =>
'Guardado',
'All changes have been successfully saved.' =>
'Todos los cambios fueron guardados exitosamente.',
'Error' =>
'Error',
'Sorry your form was not saved. Please correct the all errors and save again.' =>
'Lo sentimos tu formulario no fue guardado. Por favor corrige los errores e intntalo otra vez.',
'cancel_' =>
'cancelar_',
'Are you sure you want to cancel? You have unsaved changes that will be reverted.' =>
'Est seguro que desea cancelar? Los cambios sin guardar se perdern.',
'choose_logo' =>
'elegir_logo',
'captured_' =>
'captured_',
'flag_owner_' =>
'flag_owner_',
'INACTIVE' =>
'INACTIVO',
'PTS' =>
'PTS',
'category' =>
'categora',
'capture_' =>
'capture_',
'Insert your answer' =>
'Introduce tu respuesta',
'Request Hint' =>
'Solicitar pista',
'Submit' =>
'Enviar',
'hint_' =>
'pista_',
'first_capture' =>
'first_capture',
'completed_by' =>
'completado_por',
'scoreboard_' =>
'scoreboard_',
'filter_' =>
'filter_',
'rank_' =>
'rank_',
'team_name_' =>
'team_name_',
'quiz_pts_' =>
'quiz_pts_',
'flag_pts_' =>
'flag_pts_',
'base_pts_' =>
'base_pts_',
'total_pts_' =>
'total_pts_',
'team_' =>
'team_',
'team_members' =>
'team_members',
'base_pts' =>
'base_pts',
'quiz_pts' =>
'quiz_pts',
'flag_pts' =>
'flag_pts',
'total_pts' =>
'total_pts',
'Tool bars are located on all edges of the gameboard. Tap a category to expand and close each tool bar.' =>
'Las barras de herramientas se encuentran en todos los bordes del panel de juego. Pulsa en una categora para ampliar y cerrar cada barra de herramientas.',
'Tool_Bars' =>
'Tool_Bars',
'Tap the "Game Clock" to keep track of time during gameplay. Dont let time get the best of you.' =>
'Pulsa el "Reloj del juego" para hacer seguimiento del tiempo. No dejes que el tiempo te gane.',
'Game_Clock' =>
'Reloj de juego',
'Countries marked with an ' =>
'Pases marcados con una ',
'are captured by you.' =>
'son capturados por t.',
' are owned by others.' =>
' le pertenecen a otros.',
'Captures' =>
'Capturas',
'Tap Plus[+] to Zoom In. Tap Minus[-] to Zoom Out.' =>
'Pulsa ms[+] para acercarte. Pulsa menos[-] para alejarte.',
'Click and Drag to move left, right, up and down.' =>
'Presiona y rrastra para moverte por la izquierda, derecha, arriba o abajo',
'Zoom' =>
'Zoom',
'Tap Forward Slash [/] to activate computer commands. A list of commands can be found under "Rules".' =>
'Presiona contrabarra [/] para activar los comandos del juego. La lista completa de comandos puede ser encontrada en "Reglas".',
'Command_Line' =>
'Command_Line',
'Click "Nav" to access main navigation links like Rules of Play, Registration, Blog, Jobs & more.' =>
'Presiona "Navegacin" para acceder a los links principales como "Reglas del juego", "Cerrar sesin" y otros.',
'Track your competition by clicking "scoreboard" to access real-time game statistics and graphs.' =>
'Haz un seguimiento del juego haciendo clic en "scoreboard" para acceder a estadsticas y grficas en tiempo real.',
'Have fun, be the best and conquer the world.' =>
'Divirtete, s el mejor y conquista el mundo.',
'Game_On' =>
'Game_On',
'tutorial_' =>
'tutorial_',
'Next' =>
'Siguiente',
'Skip to play' =>
'Continuar para jugar',
'Powered By Facebook' =>
'Powered By Facebook',
'Active Directory / LDAP' =>
'Directorio Activo / LDAP',
'LDAP Server' =>
'LDAP Servidor',
'LDAP Port' =>
'LDAP Puerto',
'LDAP Domain' =>
'LDAP Dominio',
);
```
|
Shimi (, also Romanized as Shīmī; also known as Shemī) is a village in Qohab-e Rastaq Rural District, Amirabad District, Damghan County, Semnan Province, Iran. At the 2006 census, its population was 156, in 38 families.
References
Populated places in Damghan County
|
```c
#include "prism/options.h"
/**
* Set the filepath option on the given options struct.
*/
PRISM_EXPORTED_FUNCTION void
pm_options_filepath_set(pm_options_t *options, const char *filepath) {
pm_string_constant_init(&options->filepath, filepath, strlen(filepath));
}
/**
* Set the encoding option on the given options struct.
*/
PRISM_EXPORTED_FUNCTION void
pm_options_encoding_set(pm_options_t *options, const char *encoding) {
pm_string_constant_init(&options->encoding, encoding, strlen(encoding));
}
/**
* Set the line option on the given options struct.
*/
PRISM_EXPORTED_FUNCTION void
pm_options_line_set(pm_options_t *options, int32_t line) {
options->line = line;
}
/**
* Set the frozen string literal option on the given options struct.
*/
PRISM_EXPORTED_FUNCTION void
pm_options_frozen_string_literal_set(pm_options_t *options, bool frozen_string_literal) {
options->frozen_string_literal = frozen_string_literal ? PM_OPTIONS_FROZEN_STRING_LITERAL_ENABLED : PM_OPTIONS_FROZEN_STRING_LITERAL_DISABLED;
}
/**
* Sets the command line option on the given options struct.
*/
PRISM_EXPORTED_FUNCTION void
pm_options_command_line_set(pm_options_t *options, uint8_t command_line) {
options->command_line = command_line;
}
/**
* Set the version option on the given options struct by parsing the given
* string. If the string contains an invalid option, this returns false.
* Otherwise, it returns true.
*/
PRISM_EXPORTED_FUNCTION bool
pm_options_version_set(pm_options_t *options, const char *version, size_t length) {
switch (length) {
case 0:
if (version == NULL) {
options->version = PM_OPTIONS_VERSION_LATEST;
return true;
}
return false;
case 5:
assert(version != NULL);
if ((strncmp(version, "3.3.0", length) == 0) || (strncmp(version, "3.3.1", length) == 0)) {
options->version = PM_OPTIONS_VERSION_CRUBY_3_3;
return true;
}
if (strncmp(version, "3.4.0", length) == 0) {
options->version = PM_OPTIONS_VERSION_LATEST;
return true;
}
return false;
case 6:
assert(version != NULL);
if (strncmp(version, "latest", length) == 0) {
options->version = PM_OPTIONS_VERSION_LATEST;
return true;
}
return false;
default:
return false;
}
}
// For some reason, GCC analyzer thinks we're leaking allocated scopes and
// locals here, even though we definitely aren't. This is a false positive.
// Ideally we wouldn't need to suppress this.
#if defined(__GNUC__) && (__GNUC__ >= 10)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
#endif
/**
* Allocate and zero out the scopes array on the given options struct.
*/
PRISM_EXPORTED_FUNCTION bool
pm_options_scopes_init(pm_options_t *options, size_t scopes_count) {
options->scopes_count = scopes_count;
options->scopes = xcalloc(scopes_count, sizeof(pm_options_scope_t));
return options->scopes != NULL;
}
/**
* Return a pointer to the scope at the given index within the given options.
*/
PRISM_EXPORTED_FUNCTION const pm_options_scope_t *
pm_options_scope_get(const pm_options_t *options, size_t index) {
return &options->scopes[index];
}
/**
* Create a new options scope struct. This will hold a set of locals that are in
* scope surrounding the code that is being parsed.
*/
PRISM_EXPORTED_FUNCTION bool
pm_options_scope_init(pm_options_scope_t *scope, size_t locals_count) {
scope->locals_count = locals_count;
scope->locals = xcalloc(locals_count, sizeof(pm_string_t));
return scope->locals != NULL;
}
/**
* Return a pointer to the local at the given index within the given scope.
*/
PRISM_EXPORTED_FUNCTION const pm_string_t *
pm_options_scope_local_get(const pm_options_scope_t *scope, size_t index) {
return &scope->locals[index];
}
/**
* Free the internal memory associated with the options.
*/
PRISM_EXPORTED_FUNCTION void
pm_options_free(pm_options_t *options) {
pm_string_free(&options->filepath);
pm_string_free(&options->encoding);
for (size_t scope_index = 0; scope_index < options->scopes_count; scope_index++) {
pm_options_scope_t *scope = &options->scopes[scope_index];
for (size_t local_index = 0; local_index < scope->locals_count; local_index++) {
pm_string_free(&scope->locals[local_index]);
}
xfree(scope->locals);
}
xfree(options->scopes);
}
/**
* Read a 32-bit unsigned integer from a pointer. This function is used to read
* the options that are passed into the parser from the Ruby implementation. It
* handles aligned and unaligned reads.
*/
static uint32_t
pm_options_read_u32(const char *data) {
if (((uintptr_t) data) % sizeof(uint32_t) == 0) {
return *((uint32_t *) data);
} else {
uint32_t value;
memcpy(&value, data, sizeof(uint32_t));
return value;
}
}
/**
* Read a 32-bit signed integer from a pointer. This function is used to read
* the options that are passed into the parser from the Ruby implementation. It
* handles aligned and unaligned reads.
*/
static int32_t
pm_options_read_s32(const char *data) {
if (((uintptr_t) data) % sizeof(int32_t) == 0) {
return *((int32_t *) data);
} else {
int32_t value;
memcpy(&value, data, sizeof(int32_t));
return value;
}
}
/**
* Deserialize an options struct from the given binary string. This is used to
* pass options to the parser from an FFI call so that consumers of the library
* from an FFI perspective don't have to worry about the structure of our
* options structs. Since the source of these calls will be from Ruby
* implementation internals we assume it is from a trusted source.
*/
void
pm_options_read(pm_options_t *options, const char *data) {
options->line = 1; // default
if (data == NULL) return;
uint32_t filepath_length = pm_options_read_u32(data);
data += 4;
if (filepath_length > 0) {
pm_string_constant_init(&options->filepath, data, filepath_length);
data += filepath_length;
}
options->line = pm_options_read_s32(data);
data += 4;
uint32_t encoding_length = pm_options_read_u32(data);
data += 4;
if (encoding_length > 0) {
pm_string_constant_init(&options->encoding, data, encoding_length);
data += encoding_length;
}
options->frozen_string_literal = (int8_t) *data++;
options->command_line = (uint8_t) *data++;
options->version = (pm_options_version_t) *data++;
uint32_t scopes_count = pm_options_read_u32(data);
data += 4;
if (scopes_count > 0) {
if (!pm_options_scopes_init(options, scopes_count)) return;
for (size_t scope_index = 0; scope_index < scopes_count; scope_index++) {
uint32_t locals_count = pm_options_read_u32(data);
data += 4;
pm_options_scope_t *scope = &options->scopes[scope_index];
if (!pm_options_scope_init(scope, locals_count)) {
pm_options_free(options);
return;
}
for (size_t local_index = 0; local_index < locals_count; local_index++) {
uint32_t local_length = pm_options_read_u32(data);
data += 4;
pm_string_constant_init(&scope->locals[local_index], data, local_length);
data += local_length;
}
}
}
}
#if defined(__GNUC__) && (__GNUC__ >= 10)
#pragma GCC diagnostic pop
#endif
```
|
Konstantin Buttress (, ‘Rid Konstantin’ \'rid kon-stan-'tin\) is the ice-covered buttress descending from elevation 1830 to 1250 m in the southwest foothills of Detroit Plateau on Nordenskjöld Coast in Graham Land. It is situated between southwest-flowing tributaries to Drygalski Glacier, and has precipitous, partly ice-free west and south slopes. The feature is named after Czar Konstantin II of Bulgaria, 1396–1422.
Location
Konstantin Buttress is located at , which is 9.7 km west-northwest of Glazne Buttress, 4.5 km north of Stoykite Buttress, and 4 km southeast of Odesos Buttress. British mapping in 1978.
Maps
British Antarctic Territory. Scale 1:200000 topographic map. DOS 610 Series, Sheet W 64 60. Directorate of Overseas Surveys, Tolworth, UK, 1978.
Antarctic Digital Database (ADD). Scale 1:250000 topographic map of Antarctica. Scientific Committee on Antarctic Research (SCAR). Since 1993, regularly upgraded and updated.
Notes
References
Konstantin Buttress. SCAR Composite Antarctic Gazetteer.
Bulgarian Antarctic Gazetteer. Antarctic Place-names Commission. (details in Bulgarian, basic data in English)
External links
Konstantin Buttress. Copernix satellite image
Mountains of Graham Land
Nordenskjöld Coast
Bulgaria and the Antarctic
|
Kawran Bazar () is a business district and is one of the biggest commodity marketplaces in Dhaka city, the capital of Bangladesh. It is a designated commercial area of the Dhaka North City Corporation. The Biggest local Bangladeshi fruits wholesale market located here.
History
During the Mughal rule, there was a customs check post located near Kawran Bazar. Markets have existed in Kawran Bazar area since the 17th century. In the late 18th century, a market was established in the area by Kawran Singh, a Marwari trader. The market was named Kawran Bazar after him. By late 19th century, it became notable as a marketplace for household products such as pottery and crockery.
Marketplace
It is one of the largest wholesale marketplaces in Dhaka city. It is also one of the largest marketplaces in South Asia. As of 2002, the market had 1255 stores, out of which 55 were owned by the Dhaka City Corporation. In 2002, the wholesale market has a daily revenue of 50 million Bangladeshi taka.
Business district
Kawran Bazaar has emerged as an important business district of Dhaka. The main offices of Prothom Alo, the Daily Star, The Independent, and several other newspapers are located here. Also, the office and studio of television channels Ekushey Television, NTV, ATN Bangla, ATN News, Banglavision and ABC Radio are located at Kawran Bazar. The main campus of Ahsanullah University of Science and Technology was located here.
Kawran Bazaar also has the headquarters for the Trading Corporation of Bangladesh, along with Export Promotion Bureau, EPB of Bangladesh.
References
Bazaars in Bangladesh
Economy of Dhaka
Neighbourhoods in Dhaka
|
The American hog-nosed skunk (Conepatus leuconotus) is a species of hog-nosed skunk from Central and North America, and is one of the largest skunks in the world, growing to lengths of up to . Recent work has concluded the western hog-nosed skunk (formerly Conepatus mesoleucus) is the same species, and Conepatus leuconotus is the correct name of the merged populations.
In Texas, it is commonly known as the rooter skunk for its habit of rooting and overturning rocks and debris in search of food.
Description
The distinguishing feature of the American hog-nosed skunk is it has a single, broad white stripe from the top of the head to the base of the tail, with the tail itself being completely white. It is the only skunk that lacks a white dot or medial bar between the eyes and has primarily black body fur. The snout of C. leuconotus is relatively long, with a naked nose pad, and resembles the nose of a small hog. The nose pad (20 mm wide by 25 mm long) is about three times wider than that of Mephitis mephitis. The ears are small and rounded, and the eyes are relatively small. The fur is short and coarse.
The American hog-nosed skunk has stocky legs and plantigrade feet (the entire sole of the foot touches the ground). Its hind feet are broad and large with soles that are naked for about one-half their length. Its upper body is powerfully built, and the fore claws are very long. Length can range from and weight is typically . The striped skunk can broadly overlap in size with this species, but in comparison the striped, has a shorter head-and-body length and a longer tail than the hog-nosed skunk. Males of this species average about 10% larger than females.
The American hog-nosed skunk is adapted for digging, and resembles badgers rather than other species of skunks in this respect. The rectangular-shaped scapula, strong forearms, and shape of the humeri of C. leuconotus resemble those of badgers. The nostrils are located ventrally and open downward. Their sense of smell is acute, and the nose is used in locating and capturing buried prey. This skunk species also is a capable climber, although not as agile as the spotted skunks of the genus Spilogale.
Reproduction
C. leuconotus breeds from late February through early March; most adult females are pregnant by the end of March. Typically, gestation lasts about 60 days. Birth occurs in April and May. Half-grown young have been observed in late July and mid-August, and by late August young begin to disperse. The litter size is one to five young, although two to four are most common.
Range and habitat
This species occurs in canyons, stream sides, and rocky terrain. It has been collected in a variety of habitats in Mexico, including open desert-scrub and mesquite-grasslands, tropical areas, mountains, coastal plains, cornfields surrounded by brushland or adjacent to grassy plains and thickets of bull-horn acacia, thorn woodland, and riparian forests, characterized by live-oaks, pecans, sycamores, and Texas persimmons and an understory of briars, grasses, and weeds. It also has been found in pine–oak forest and in scrub and cacti. In Kleberg County, Texas, C. leuconotus occurs in mesquite-brushland, pastures, and native grassland, used exclusively for cattle ranching. Thorny brush and cactus are the predominant vegetation in the region of southern Texas where this species occurs.
It is omnivorous, feeding primarily on insects and vegetation, though it will take small mammals and reptiles when available. While sometimes considered a pest by crop farmers due to their rooting habits, this is largely misplaced, as it generally prefers insects to agricultural plants. Like all skunk species, it possesses powerful anal glands used to deter would-be attackers.
Subspecies
Three subspecies are currently recognized, although one may be extinct:
C. l. leuconotus (eastern hog-nosed skunk) – Texas, New Mexico, Arizona, Mexico, Guatemala, Honduras, Nicaragua
C. l. figginsi (Furnace Canyon hog-nosed skunk) – Colorado
C. l. telmalestes (Big Thicket hog-nosed skunk)† – Oklahoma and southeastern Texas
Conservation
Although not threatened through most of its range, one subspecies, the Big Thicket hog-nosed skunk (C. l. telmalestes) of Oklahoma and southeastern Texas, is now considered extinct by the IUCN.
Globally, this species is of low concern for conservation efforts, but at the local level, it is considered threatened in some states. In Colorado, for instance, it was ranked as "critically imperiled because of extreme rarity (five or fewer records of occurrence in the state or less than 1,000 individuals)" . In New Mexico and Oklahoma, it was ranked as "Imperiled because of rarity (six to 20 occurrences or less than 3,000 individuals)", also . The situation is far different in Texas and Arizona, though; the populations are high enough for the species to be legally harvested throughout the year and is designated as a "fur bearer" by the United States Forest Service.
References
External links
American hog-nosed
Carnivorans of Central America
Carnivorans of North America
Mammals of Canada
Mammals of Central America
Mammals of Mexico
Mammals of the United States
Fauna of the Western United States
Fauna of the Southwestern United States
Least concern biota of North America
Least concern biota of the United States
Mammals described in 1832
|
AST National Academy of Theatre Arts (Polish: Akademia Sztuk Teatralnych w Krakowie, often shortened to AST), is a drama school based in Kraków and Wrocław, Poland. It was founded in 1946 by actor Juliusz Osterwa, who took the initial steps leading to the establishment of the Academy through the amalgamation of three local studios; Stary Teatr, the Słowacki Theatre, and Iwo Gall's Dramatic Studio.
History
The history of the Ludwik Solski Academy began in 1946 with a three-year training course in drama for prospective actors. In 1949 the name of the school was changed to the State College of Acting (Państwowa Wyższa Szkoła Aktorska), and the curriculum extended to four years. Its current name, the Państwowa Wyższa Szkoła Teatralna, was determined in 1955. From 1954 to 1964 the college also provided courses in puppetry and the puppet theatre, reactivated in 1972 as an independent Puppet Theatre Faculty located in the city of Wrocław.
The new Faculty of Directing was created in 1955 and continued in its original form till 1962. In 1973 the Faculty was re-established as the Faculty of Play Directing with several students pursuing a four-year programme. The next important stage in the development of the Academy was the establishment in 1979 of the Actors' Faculty in Wrocław.
In October 2017 the name of the school was changed to the AST National Academy of Theatre Arts in Kraków. The academy patron was also changed. Currently the patron is a playwright, painter and poet Stanisław Wyspiański (Akademia Sztuk Teatralnych im. Stanisława Wyspiańskiego w Krakowie).
From its beginnings the Academy for the Dramatic Arts was run by some of the most prominent Polish dramatic artists, Juliusz Osterwa, Tadeusz Burnatowicz, Władysław Woźnik, Eugeniusz Fulde, Bronisław Dąbrowski, Jerzy Krasowski, Danuta Michałowska, Jerzy Trela, and Jerzy Stuhr. The Academy's history was shaped by outstanding teachers and trainers as well as by famous theoreticians, including its own graduates who have made a substantial impact on the theatre scene in Poland and abroad. The following celebrities have also conducted practical classes in acting, directing and music: Jerzy Jarocki, Tadeusz Kantor, Mieczysław Kotlarczyk, Władysław Krzemiński, Ewa Lasek, Krystian Lupa, Krzysztof Penderecki, Anna Polony, Krystyna Skuszanka, Marta Stebnicka, Konrad Swinarski, and Roman Zawistowski. Many of these artists are still teaching at the Academy. The most important directors in the last two decades have been predominantly graduates of the school: in the 1990s these included Krystian Lupa and Mikolaj Grabowski's students Krzysztof Warlikowski, Grzegorz Jarzyna, Anna Augustynowicz and Paweł Miskiewicz, and in the 2000s (decade), directors Maja Kleczewska, Jan Klata and Michal Zadara.
Some of the Academy's more outstanding graduates in its first decade included Zbigniew Cybulski, Jerzy Grotowski, Leszek Herdegen, Gustaw Holoubek, Jerzy Jarocki, Bogumił Kobiela, and Halina Mikołajska, while subsequent decades produced further prominent alumni: Jerzy Bińczycki, Teresa Budzisz-Krzyżanowska, Ewa Demarczyk, Jan Nowicki, Jan Peszek, Anna Polony, Maciej Prus, Wojciech Pszoniak, Anna Seniuk, Jerzy Stuhr, and Marek Walczewski. Many of its students and graduates have been involved with the emergence of new dramatic initiatives, such as the establishment of Teatr STU and the Witkacy Theatre in Zakopane.
From its early years the Ludwik Solski Academy was a source of continuity for the Polish theatre thanks to the fact that its teaching staff often belonged to different generations including actors from before the Second World War, with many of them (i.e. Tadeusz Burnatowicz, Halina Gallowa, Władysław Krzemiński, Wacław Nowakowski and Władysław Woźnik) completing drama courses in prewar Poland. Close ties with the local theatre scene defined the unique character of the school from the very start. This uniqueness has been maintained even during the difficult period of the 1950s, when the authorities and the Soviet training model barred students from active participation in professional theatre. The directives of the Stalinist Ministry of Culture marked the introduction of Socialist Realism in a schematic and vulgarized way. The repertoire of the Academy was narrowed down mostly to Russian and Soviet drama with no contemporary Western plays whatsoever. The repressive political climate lasted until after the Polish October of 1956.
Close links to the leading theatres in Kraków contribute to the Academy's status. There is a direct correlation between the condition of the city's theatres and the condition of the Academy with staff composed of a fair number of Cracovian theatre personalities whose views on drama and the teaching methods cover a wide range of philosophies. In recent years, the school has opened a new department of theatre dramaturgy.
Organizational structure
Faculties
Faculty of Acting in Kraków
Department of Dramatic Acting
Department of Concert Singing and Acting
Department of Dance Theatre
Faculty of Theatre Directing in Kraków
Department of Theatre Directing
Department of Theatre Dramaturgy
Department of Puppet Theatre Directing
Faculty in Wrocław
Department of Acting
Department of Puppetry
Postgraduate study of Children's Theatre Directing
Enrollment
At present the Academy recruits new students for the Actors' Faculties in Kraków and Wrocław, the Faculty of Play Directing in Kraków, and the Puppet Theatre Faculty in Wrocław. Since 1946 well over a thousand students have graduated from the Ludwik Solski Academy, and found employment on theatre stages in Poland and abroad.
Notable alumni
Tamara Arciuch
Bartosz Bielenia
Zbigniew Cybulski
Paweł Deląg
Ewa Demarczyk
Anna Dymna
Marian Dziędziel
Jan Frycz
Roma Gąsiorowska
Jakub Gierszał
Krzysztof Globisz
Andrzej Grabowski
Jerzy Grotowski
Gustaw Holoubek
Kalina Jędrusik
Tomasz Karolak
Tomasz Kot
Julia Krynke
Barbara Kurzaj
Jan Nowicki
Maja Ostaszewska
Jan Peszek
Krzysztof Pieczyński
Jacek Poniedziałek
Wojciech Pszoniak
Mikołaj Roznerski
Maciej Stuhr
Jerzy Trela
Krzysztof Warlikowski
Footnote
References
AST National Academy of Theatre Arts in Kraków, homepage
Ludwik Solski State Theatre School at www.culture.pl
See also
Polish theatre
Teatr Narodowy
Juliusz Słowacki Theatre
Culture of Kraków
Theatre in Poland
Drama schools in Poland
Universities and colleges in Kraków
1946 establishments in Poland
Educational institutions established in 1946
Culture in Kraków
|
Xeniconeura is a genus of flies in the family Lauxaniidae. There is one described species in Xeniconeura, X. costalis.
Distribution
USA (Colorado), Mexico.
References
Lauxaniidae
Articles created by Qbugbot
Lauxanioidea genera
Diptera of North America
|
Poland has been a member state of the European Union since 1 May 2004, with the Treaty of Accession 2003 signed on 16 April 2003 in Athens as the legal basis for Poland's accession to the EU. The actual process of integrating Poland into the EU began with Poland's application for membership in Athens on 8 April 1994, and then the confirmation of the application by all member states in Essen from 9–10 December 1994. Poland's integration into the European Union is a dynamic and continuously ongoing process.
Comparison
Early relations between Poland and the EU (1988–1993)
Diplomatic relations between Poland and the European Economic Community began on 16 September 1988. A year later, on 19 September 1989, during the first visit of the Chairman of the Committee of Ministers of the EEC to Poland, an agreement was signed on trade and commercial and economic cooperation in Warsaw.
Changes in Polish politics during and after 1989 allowed diplomatic talks regarding Poland's participation in the European Economic Community. Formal negotiations began on 22 December 1990, and ended on 16 December 1991, in the "European Agreement establishing an association between the Republic of Poland and the European Communities and their Member States". At the same time, along with the European Agreement, Poland signed a trade agreement included in the Interim Agreement in force from 1 March 1992.
Poland's agreement with the EEC came into force on 1 February 1994, three months after the Maastricht Treaty came into effect. The first step was the establishment of the Commission for the Unification of the Republic of Poland with the EU, whose task was to supervise the implementation of the new agreements. Talks at ministerial levels in the Polish Parliament were conducted within this commission. The Parliamentary Unification Committee acted as a forum for relations between the Polish Parliament and the European Parliament.
Nearing accession (1993–1997)
Even before accession negotiations began in June 1993, during a meeting of the European Council in Copenhagen, the EU Member States officially confirmed that the countries of Central and Eastern Europe, currently affiliated with the EC, will join the EU after fulfilling economic and political criteria. On 8 April 1994, the Government of the Republic of Poland made a formal request, in Athens, for membership in the European Union. During the European Council summit held in Essen on 9–10 December 1994, Member States adopted a pre-accession strategy, defining the areas and forms of cooperation recognized by the EU as essential to speed up integration. This process also confirmed that the EU was willing to go through with enlargement to associated countries. Formal confirmation of the strategy outlined in the White Paper (on the alignment of countries with the requirements of the internal free-market) which was adopted at the European Council Summit in Cannes in June 1995. The White Paper, and the annual preparatory programs adopted by the Polish government, determined the framework and the relations of Poland with the EU. On 3 October 1996, under the resolution passed by the Council of Ministers on 26 January 1991, the Office for European Integration came into force with its purpose to coordinate and assist all ministries and institutions directly involved in the process of Polish integration with the European Union. The primary role of the Office for European Integration was to ensure the implementation of the tasks related to coordinating policies on matters related to the integration of Poland into the European Union. Additionally, it was responsible for coordination of measures for the adaptation of Poland to meet European standards, as well as managing the foreign aid that Poland received from the European Union.
In January 1997 Poland adopted the National Strategy for Integration (NSI) which was passed by Parliament in May 1997. The NSI set out the specific tasks that Poland faced on the road to full EU membership and the sequence of their implementation. The NSI's role was, primarily, to accelerate and direct the work of government institutions as well as helping raise societal awareness of the possible consequences of Polish membership in the EU. The adaptation operations for membership were carried out in-line with the National Programme of Preparation for Membership in the European Union (NPPC) framework developed by the government and accepted on 23 June 1998. NPPC was annually (up to and including 2001) modified to conform with the negotiation strategies of the Polish government. It defined the ways in which to achieve the priorities contained in the Partnership for Membership document. Partnership for Membership and the National Programme of Preparation for Membership in the European Union were directly related to the European Commission's decision to provide EU funding through Phare, SAPARD and ISPA, being the three financial instruments of the European Union to assist the candidate countries in the preparation for accession.
Negotiations (1997–2002)
On the basis of the recommendations contained in the opinions of the European Commission of 16 July 1997 the European Council meeting in Luxembourg on 12–13 December 1997 decided to begin accession negotiations with five countries of Central and Eastern Europe (Poland, Czech Republic, Hungary, Slovenia and Estonia) as well as Cyprus. For all the Central and Eastern European candidate countries, the European Council launched an enhanced pre-accession strategy, including the implementation of the European Agreements, Partnership for Membership and a new version of the PHARE program.
The EU enlargement process was formally launched at a meeting of the Council for General Affairs on 30 March 1998. At the time, Poland declared 31 December 2002 as the date of readiness for membership into the European Union. A study of the compatibility of candidate countries' current laws with EU law began on 31 March 1998 in Brussels. After the end of the study, the actual negotiations were undertaken at the same time at the request of the candidate countries, although individually with each of the candidates from 10 November 1998. From 16 April 1999, regular meetings of political directors and European correspondents of associated and EU countries began undertaking political dialogue. For the purpose of the negotiations, the EU set up 37 task forces that were responsible for developing agreements in their respective areas. The chairmen of the Polish Negotiation Team (PZN) were, successively: Jacek Saryusz-Wolski (1997-2001) and Danuta Hübner (2001-2004).
The main role of the negotiations was to develop a common position between the Chairman of the PZN and the EU Commissioner for Enlargement and submitting it for approval to the European Commission, which prepared the draft of the revised common position of the whole EU to be accepted by the 15 member states in the European Council. The aim of the negotiations was to prepare the accession treaty, which was adopted at the last meeting of the Intergovernmental Conference on Accession.
In October 1990 it was decided to connect the capitals of the countries associated with the Secretariat of the Council of the EU with the help of a specially prepared communications network. By 2000, Poland managed to finish talks in 25 out of 30 negotiation areas and for 9 of them it was able to agree transition periods. The remaining 5 areas were negotiated between 2001 and 2002.
Polish negotiations with the EU ended during the EU summit in Copenhagen, on 13 December 2002.
Accession (2003–2004)
The Treaty of Accession was subject to approval and adoption by an absolute majority vote in the European Parliament on 9 April 2003 and unanimously by the Council of the European Union on 14 April 2003. The next stage was ratification of the treaty by all the member countries in accordance with their constitutional requirements (except for Ireland, where it was ratified after a nationwide referendum while the other Member States adopted it in the form of a parliamentary vote). The Treaty entered into force after the EU ratification procedure. In Poland, the final process of its adoption took place in the form of a national referendum on 7–8 June 2003.
Poles answered the following question:
The National Electoral Commission's published results state that 58.85% of eligible voters turned up to vote (i.e. 17 586 215 out of 29 868 474 people), 77.45% of those (i.e. 13 516 612) answered yes to the question. 22.55% of those (i.e. 3 936 012) answered no. The results also showed that 126 194 votes were deemed to be invalid.
The Treaty of Accession 2003 signed on the 16 April 2003 in Athens was the legal basis for 10 countries Central and Southern Europe (Cyprus, the Czech Republic, Estonia, Latvia, Lithuania, Malta, Poland, Slovakia, Slovenia and Hungary) entering the European Union.
On 1 May 2004 Poland became a full member of the European Union, along with 9 other European countries.
Post-accession (2004–present)
According to information provided by the Ministry of Finance (on 8 February 2006), Poland had to be ready to join the eurozone by 2009, however, this was postponed to at least 2018. The Minister of Finance announced a regulation that, as of 15 April 2004, a consumer or a recipient of services is able to pay for their goods or services using euros.
On 13 December 2007, the Reform Treaty was signed by representatives of the 27 EU Member States in the Jeronimos Monastery in Lisbon. On behalf of Poland, the Treaty was signed by Prime Minister Donald Tusk and Foreign Minister Radoslaw Sikorski. At the head of the Polish delegation was President Lech Kaczynski, who was accompanied by the ministers of the Presidential Chancellery: Robert Draba and Michal Kaminski.
Polish accession to the Schengen Agreement took place on 21 December 2007 (for land and sea crossings) and 29 March 2008 (for airports, together with the new flight timetable). On 30 July 2007, Poland passed the technical tests for access to the Schengen system. As proposed by Portugal, a symbolic opening of the borders took place on 21 December 2007 in Worek Turoszowski on the tri-boundary of the Polish, Czech and German borders.
On 1 May 2009, five years after Poland had accessed the European Union, the period of protection against the purchase of homes and apartments in Poland by foreigners (citizens of the EU) had ended.
According to the survey conducted by the Public Opinion Research Centre in March 2014, the Polish presence in the European Union was supported by 89% of Poles, while 7% opposed Poland's EU membership.
The most up-to-date statistics (as of July 2016) show that in 2014 Poland received €17.436 billion from the EU whilst only contributing €3.526 billion. Poland also received nearly €2 billion more in EU funding than any other member state in 2013 (France being second highest). The European Union has made its funding available for infrastructure and transport; agriculture and rural development; health and research; growth and jobs; environment and energy as well as other projects in the European Social Fund. Examples include funding more than 60% of the investment needed to build a section of the A1 motorway between Toruń and Łódź (€1.3 billion), better public transport in Kielce (€54 million) and the Human Brain Project at the Warsaw University of Technology (€54 million).
Poland and the European Neighbourhood Policy
Poland has made a significant contribution to the European Neighbourhood Policy. The European Union is interested in Eastern Europe and, arguably, assisted with the development of democracy in the region by engaging in diplomatic discussions during the fall of communism and the Soviet Union in the late 1980s. The EU has started to focus on countries such as Ukraine, Belarus, Moldova, Azerbaijan, Armenia and Georgia.
Before Poland's integration into the European Union, Polish politicians tried to strengthen economic and political cooperation with its neighbouring countries. These efforts were made in order to help the EU in its efforts of enlargement further into the European continent., such as accession of Ukraine to the European Union.
Poland and the EU's common foreign and security policy
Poland has remained skeptical of the EU's common foreign and security policy and is opposed to giving further powers to the European Union's foreign and security policy. EU countries such as France and Germany, want more favourable relations with Russia, however, Poland has strained relations and history with Russia and does not want to change their foreign policy. In addition, Poland is afraid that greater EU reach in foreign and security policy would violate Polish national interests and sovereignty.
Poland has preferred to discuss and maintain relations with NATO and the United States, being skeptical about the possibility of a single EU security and defence policy being implemented. Poland participates in EU Crisis Management Operations. Polish troops participated in EU missions in Bosnia and Herzegovina, North Macedonia and the Democratic Republic of the Congo, amongst others.
Poland and the EU's enlargement
Poland supports the further development and enlargement of the European Union, and draws attention to the need to eliminate delaying the start of accession negotiations. Poland supports Ukraine, Montenegro, Serbia and Turkey's aspirations to join the EU. Poland welcomed the decision to grant Albania EU candidate status. Polish politicians stated that, acceptance of all the Balkan states and Turkey into the EU will prove that the EU's internal transformation has been completed, and that this would additionally help to bring greater stability to the entire region. Poland participates in an informal group (called the "Tallinn Group") that supports the expansion of the EU.
Poland's internal policies and the EU (2015-present)
On 13 January 2016 the European Commission, launched a formal rule-of-law assessment based on rules set out in 2014 and according to Article 7 of the Treaty of Lisbon regarding the amendments of the constitutional court and the public media law in Poland. The assessment could, theoretically, lead to Poland being stripped of its voting rights in the EU. Some Polish and British media have criticised the EU's involvement in the Polish Constitutional Court crisis of 2015, as out-of-scope of the European Union's Framework to Strengthen the Rule of law.
In September 2017 European Commission launched the second stage of infringement over the state of rule of law in Poland. This came in the context of a quarrel between Poland and the EU that included also the logging of the Białowieża Forest, the refusal to accept refugees under the relocation program, and other issues.
On 14 July 2021, The Polish Constitutional Tribunal rules that any interim measures from the top European court against Poland's judicial reforms were "not in line" with the Polish constitution. The Polish justice minister, Zbigniew Ziobro, said the constitutional court's decision was "against interference, usurpation and legal aggression by organs of the European Union".
In August 2021, in the context of the Poland-EU dispute over the Polish judicial reform, Ziobro said Poland should stay in the EU, but not ‘at any cost’.
In September 2021, Ryszard Terlecki said that the PIS party wants to remain in the EU and have a cooperative relationship, but said that "drastic solutions" (seemingly referring to Polish withdrawal from the EU) may be necessary if the EU was not "acceptable to us".
On 7 October 2021, Polish Constitutional Court ruled that parts of the Treaty on European Union were incompatible with its constitution, therefore opening a new conflict with the European Union.
On 27 October 2021, the European Court of Justice (ECJ) fined Poland €1 million per day, for breaking the law by maintaining the disciplinary chamber of its Supreme Court, as a previous EU ruling called for the disciplinary chamber's suspension. The ECJ ruled that the chamber "[did] not guarantee judicial impartiality". The fine is the highest daily penalty the ECJ has ever imposed on any EU member state.
Euroscepticism in Poland
On 22 November 2020, Do Rzeczy, a Polish conservative weekly newspaper, published a front-page article called "Polexit: We have the right to talk about it".
The Polish far-right Confederation Liberty and Independence party has called for a withdrawal from the European Union on several occasions.
Polling
In a January 2020 poll, found that 89 percent of Poles said Poland should stay in the EU while six percent said it should leave the union. While a November 20–23 poll found that 87% of Poles said Poland should remain as a member of the European Union and 8% (an increase) of those polled expressed the opposite view, while a further 5 percent was unable to decide.
In July 2021, SW Research made a poll for the Rzeczpospolita daily, found that 16.9% of respondents answered positively when asked: "In your opinion, should Poland leave the EU?" while another 62.6% responded negatively and just over 20% did not have an opinion.
See also
Foreign relations of Poland
Foreign relations of the European Union
Polexit
Poland and the euro
History of the European Union
Stages of Poland's Integration into the EU
LGBT ideology-free zone
Media freedom in Poland
Human rights in Poland
France–Poland relations
Germany–Poland relations
References
External links
Official Journals of the European Union
Archived page Office of the Committee for European Integration
Official website of the European Union
Oficjalna strona poświęcona członkostwu Polski w Unii Europejskiej
Polacy w Europarlamencie
History of the European Union
Poland and the European Union
Enlargement of the European Union
|
US Highway 2 (US 2) is a component of the United States Numbered Highway System that connects Everett, Washington, to the Upper Peninsula (UP) of the US state of Michigan, with a separate segment that runs from Rouses Point, New York, to Houlton, Maine. In Michigan, the highway runs through the UP in two segments as a part of the state trunkline highway system, entering the state at Ironwood and ending at St. Ignace; in between, US 2 briefly traverses the state of Wisconsin. As one of the major transportation arteries in the UP, US 2 is a major conduit for traffic through the state and neighboring northern Midwest states. Two sections of the roadway are included as part of the Great Lakes Circle Tours, and other segments are listed as state-designated Pure Michigan Byways. There are several memorial highway designations and historic bridges along US 2 that date to the 1910s and 1920s. The highway runs through rural sections of the UP, passing through two national and two state forests in the process.
The route of what became US 2 was used as part of two Indian trails before European settlers came to the UP, and as part of the Michigan segments of the Theodore Roosevelt International Highway and the King's International Highway auto trails in the early 20th century. The state later included these trails as part of M‑12 when the first state highway trunklines were designated in 1919. Most of M‑12 was redesignated as part of US 2 when the US Highway System was created on November 11, 1926. Since the 1930s, several changes have reshaped the highway's routing through the UP. One such alteration eventually created a business loop that connected across the state line with Hurley, Wisconsin, and others pushed an originally inland routing of US 2 closer to the Lake Michigan shoreline. With the creation of the Interstate Highway System, part of US 2 was rerouted to coincide with the new Interstate 75 (I‑75), though in the 1980s, the U.S. Highway was truncated and removed from the I‑75 freeway, resulting in today's basic form.
Route description
According to a 2006 regional planning committee report, US 2 is a key highway for Michigan, providing its main western gateway. The roadway plays "an important role in the transportation of goods across the northern tier of states in the Midwest", and is listed on the National Highway System (NHS) for its entire length. The NHS is a network of roadways important to the country's economy, defense, and mobility. Together with M‑28, US 2 is part of a pair of primary trunklines that bridge the eastern and western sides of the UP. The of roadway in Michigan is divided into a western segment and a eastern segment, interrupted by a section that runs for in the state of Wisconsin.
Western segment
US 2 enters Michigan from Wisconsin for the first time north of downtown Hurley, Wisconsin, and Ironwood, Michigan, over the state line that runs along the Montreal River. The highway crosses the river into Gogebic County and passes a welcome center on the way into a commercial district north of downtown. Running along Cloverland Drive, US 2 meets its only business route in Michigan at Douglas Boulevard. The business route was previously a full loop that ran west through downtown Ironwood and crossed the border into Hurley and back to the main highway. The Wisconsin Department of Transportation has removed the signage on their side of the border, which reduced the loop to a business spur that ends at the state line. US 2 continues eastward through UP woodlands to the city of Bessemer. While bypassing the community of Ramsay, the highway crosses a branch of the Black River. The roadway enters Wakefield on the south side of Sunday Lake, meeting M‑28 at a stoplight in town. As the US Highway leaves Wakefield, it turns southeasterly through the Ottawa National Forest, crossing Jackson Creek and two branches of the Presque Isle River. US 2 and M‑64 merge and run concurrently over the second branch of the Presque Isle in the community of Marenisco. This concurrency has the lowest traffic volume along the entire length of the highway within the state; in 2010 the Michigan Department of Transportation (MDOT) recorded a daily average usage along the stretch of 770 vehicles, compared to the overall average of 5,188 vehicles for the highway. At the end of the concurrency, M‑64 turns northerly to run along Lake Gogebic.
The highway continues parallel to the state line from the Marensico area through the national forest toward Watersmeet. That unincorporated community is the home of the Watersmeet High School Nimrods, the basketball team featured on a series of ESPN commercials and a documentary series on the Sundance Channel. The area is also where the waters meet; the rolling hills drain to Lake Superior via the Ontonagon River, to Lake Michigan via the Brule and Menominee rivers, or to the Gulf of Mexico via the Wisconsin and Mississippi rivers. Also located in the area are the Sylvania Wilderness, and the Lac Vieux Desert Indian Reservation, which includes the Lac Vieux Desert Casino and Resort. The highway travels southeasterly from Watersmeet around the many lakes and streams in the area and crosses into rural Iron County. US 2 intersects Federal Forest Highway 16 (FFH 16) near Golden Lake in Stambaugh Township in the middle of the national forest. The trunkline then runs along the Iron River as it approaches the city of the same name and meets M‑73. In town, US 2 intersects M‑189 before crossing the river and turning northeast out of the city.
US 2 leaves the Ottawa National Forest at Iron River, and the highway continues eastward through forest lands near several small lakes to Crystal Falls, the county seat of Iron County. On the west side of town, US 2 meets US 141; the two highways run concurrently along Crystal Avenue. The combined highway turns south onto 5th Street and meets M‑69's eastern terminus at the intersection between 5th Street and Superior Avenue next to the county courthouse at the top of the hill. US 2/US 141 runs south out of Crystal Falls to the west of, and parallel to, the Paint River. The roadway passes Railroad, Kennedy and Stager lakes and leaves the state of Michigan at the Brule River, crossing into Florence County, Wisconsin for about .
Eastern segment
US 2/US 141 re-enters Michigan where it crosses the Menominee River and subsequently meets M‑95 in Breitung Township north of Iron Mountain and Kingsford. The highways merge in a triple concurrency and run south on Stephenson Avenue into Iron Mountain along the west side of Lake Antoine, parallel to a branch line of the Escanaba and Lake Superior Railroad (ELS Railroad). The road crosses through a retail corridor and over a flooded pit of the Chapin Mine. In downtown Iron Mountain at Ludington Street, M‑95 turns west off Stephenson Avenue to run across town to Kingsford. US 2/US 141 exits downtown and turns east along a second retail corridor near the Midtown Mall. The highway re-enters Breitung Township where US 141 separates to the south to re-enter Wisconsin. US 2 continues eastward parallel to a branch of the Canadian National Railway (CN Railway). Both road and rail travel through the community of Quinnesec, where they pass near the largest paper mill in the UP. The trunkline runs along the main street of Norway, where the highway meets the eastern terminus of US 8. Then US 2 continues east through rural Dickinson County to Vulcan, passing north of Hanbury Lake through the Copper Country State Forest, before crossing the Sturgeon River in Loretto and passing into Menominee County.
In Menominee County, the environment takes on a more agricultural character along US 2. The highway passes through the edge of the community of Hermansville before entering Powers. US 2 comes to a three-way intersection and turns northeast merging onto US 41. The concurrent highway runs from Powers through the communities of Wilson and Spaulding on the south side of the CN Railway. At Harris, the trunkline enters the Hannahville Indian Community. Harris is on the Menominee County side of the reservation, but as the highway continues east, it crosses over to Bark River on the Delta County side. The county line in between not only separates the two communities, but also serves as the boundary between the Central and Eastern time zones. East of Bark River, the highway crosses the community's namesake waterway before intersecting the eastern terminus of M‑69. The roadway crosses the Ford River prior to turning due east into the outskirts of Escanaba.
US 2/US 41 widens to four lanes along Ludington Street, which forms the east–west axis of the Escanaba street grid. Near downtown, the highway meets M‑35, which runs along the city's north–south axis, Lincoln Road. The trunklines merge and run north, bypassing the traditional central business district for a different business corridor. Lincoln Road runs north carrying four lanes of traffic past the Upper Peninsula State Fairgrounds, site of one of the two state fairs for the state of Michigan, the only state to have twin fairs. US 2/US 41/M‑35 continues north on Lincoln Road past the campus of Bay de Noc Community College. The four-lane highway crosses the Escanaba River just upstream from its mouth near the large Verso Esky Paper Mill and shifts to run immediately next to Little Bay de Noc. The section here carried the highest traffic counts along all of US 2 in the state: an average of 23,977 vehicles used this segment of roadway daily in 2011.
The road turns inland again, and US 2/US 41/M‑35 passes to the west of downtown Gladstone. The highway through here is an expressway, four lanes divided by a central median and no driveway access. Unlike a freeway, the expressway has standard intersections and not interchanges. The highway intersects the eastern terminus of County Road 426 (CR 426) and crosses the ELS Railroad south of the stoplight for 4th Avenue North, where M‑35 separates from the US Highways and turns to the northwest. The expressway continues north parallel to the CN Railway, crossing the Days River. From Gladstone to St. Ignace, US 2 carries a speed limit of for all traffic. This was, before 2017, the only road in the UP with a speed limit higher than besides I-75, which has a speed limit of . The expressway segment runs around the upper end of Little Bay de Noc before ending at Rapid River. In this location, US 41 separates to the north, and US 2 returns to an easterly track as a two-lane road, crossing the Rapid and Whitefish rivers and turning southeast around the head of the bay. As US 2 crosses southern Delta County, it passes through the western unit of the Hiawatha National Forest. Near Garden Corners, the highway runs along the shore of Big Bay de Noc. After the intersection with the northern terminus of M‑183, US 2 turns inland cutting across the base of the Garden Peninsula and enters Schoolcraft County.
As the highway approaches Thompson, US 2 leaves the western unit of the Hiawatha National Forest and enters the Lake Superior State Forest. The roadway runs along Lake Michigan to Manistique, crossing the Manistique River. The trunkline turns inland approaching Gulliver and then turns north-northeast to Blaney Park. The community of Blaney Park is a former logging town-turned-resort at the southern terminus of M‑77; the resort was active from the late 1920s but declined by the 1980s. From Blaney Park, US 2 turns due east and crosses into Mackinac County west of Gould City. Where it intersects a former routing, the main highway crosses the CN Railway one last time and runs to the south of Engadine to follow the Lake Michigan shoreline through Naubinway. After passing the community of Epoufette, US 2 crosses the Cut River Bridge, over the Cut River. The highway crosses into the eastern unit of the Hiawatha National Forest near Brevort, running between Lake Michigan and Brevoort Lake in the process. The road continues along the Lake Michigan shoreline, passing Mystery Spot near Gros Cap and turning inland immediately west of St. Ignace. The US 2 designation ends at the highway's partial cloverleaf interchange with I‑75. The roadway continues easterly into downtown St. Ignace as Business Loop I‑75 (BL I‑75).
History
Indian trail through auto trails
In 1701, the first transportation routes through what became the state of Michigan were the lakes, rivers and Indian trails. Two of these trails followed parts of the future US 2. The Sault–Green Bay Trail roughly followed the Lake Michigan shoreline routing of US 2 between Escanaba and St. Ignace. The Mackinac Trail connected St. Ignace with Sault Ste. Marie.
In the age of the auto trail, the roads that later formed US 2 through the UP were given a few different highway names. When the original roadways between Ironwood and Iron River were completed in late 1915, the Upper Peninsula Development Bureau (UPDB) named the area Cloverland and the highway the Cloverland Trail. Later the name was extended over the highway to Escanaba, and to all highways in the area in the early 1920s; the name was phased out by the UPDB completely in 1927. The roadways were also used for the Theodore Roosevelt International Highway, named for former US president Theodore Roosevelt after his death in 1919. Overall, this highway ran from Portland, Oregon, to Portland, Maine, by way of Michigan and the Canadian province of Ontario. Through the UP, the southern branch followed the immediate predecessors to US 2, including the section through Florence County, Wisconsin.
The Great Lakes Automobile Route was established in 1917 by the UPDB. A predecessor of the Great Lakes Circle Tours by seventy years, the route followed "a circular journey along the banks of lakes Michigan and Superior and Green Bay ..." This route followed the modern US 2 from Ironwood to the M‑94 junction in Manistique, using the modern M‑69 and M‑95 to stay in Michigan. Branches of the route followed US 41 and M‑35 between Powers and Escanaba. The route was originally intended to entice motorists to drive around Lake Michigan. The name fell out of use before its first anniversary because of World War I.
One Canadian auto trail was routed through the UP as well. In 1920, the King's International Highway linked Vancouver, British Columbia, to Halifax, Nova Scotia, but there was no highway to carry it around the north side of Lake Superior. Motorists had to ship their cars by boat between Sault Ste. Marie, Ontario, and Thunder Bay or enter the United States to continue along the auto trail. The routings varied on the maps of the time, but its basic route used US 2 through the UP from Ironwood to Sault Ste. Marie until a highway north of Lake Superior was opened in 1960; by that time, the auto trail had taken on the Trans-Canada Highway name.
State trunkline
The first state trunkline highway designated along the path of the modern US 2 was M‑12, a designation that was in use by July 1, 1919, between Ironwood and Sault Ste. Marie. The first roadside park in the country was created by Herbert Larson near what is now US 2 near Iron River in 1919–20. When the US Highway System was created on November 11, 1926, US 2 partially replaced M-12. Between Crystal Falls and Iron Mountain, US 2 was routed through Florence, Wisconsin. The former routing of M‑12 from Crystal Falls to Sagola became a new M‑69 when the former M‑69 became US 102 (now US 141). M‑12 from Sagola south to Iron Mountain was made a part of an extended M‑45, which is now M‑95. By the next year, M‑48 was added along US 2 from Rexton to Garnet as part of a larger extension.
The first changes to the routing of US 2 itself were made in 1930 with a bypass of downtown Escanaba. A larger rerouting was completed in 1933 between Rogers Park and Sault Ste. Marie. The new routing followed Mackinac Trail instead of turning east to Cedarville and north to Sault Ste. Marie; the former routing was given the M‑121 designation. Another realignment in the Iron Mountain area shifted US 2/US 141 to a new bridge over the Menominee River between 1932 and 1934. Downtown Ironwood was bypassed in 1934, and the former route was initially designated M‑54.
The Michigan State Highway Department (MSHD) changed the routings and designations of the highways around Cooks, Thompson and Manistique in the mid-1930s. The agency rerouted US 2 between Cooks and M‑149 in Thompson, turning the old road back to county control. The section between M‑149 and M‑125 was redesignated as an extension of M‑149 to Thompson, and M‑125 was replaced by a further extension of M‑149. The last change was to route US 2 along its current alignment in the area, completing the changes on August 2, 1936.
The MSHD started construction in 1936 on a new road that rerouted US 2 into St. Ignace for the first time. Between Brevort and Moran, US 2 previously followed Worth Road inland to the Tahquamenon Trail to meet the northern extension of US 31 into the Upper Peninsula. The new routing took US 2 along the lakeshore into St. Ignace. US 31 was truncated to the state ferry docks in Mackinaw City and US 2 was routed through St. Ignace along the former US 31 to Rogers Park; the connection in St. Ignace to the state ferry docks became M‑122. Further changes in the early 1940s straightened the roadway out near Watersmeet and Crystal Falls.
Additional realignments were completed by the MSHD to move US 2 to its modern lakeshore routing between Gould City and Epoufette in 1941. The new highway traveled due east from Gould City to Naubinway and then along the lake to Epoufette. The former route through Engadine was turned back to local control as far east as Garnet. From there east, it was numbered just M‑48, removing US 2 from a concurrency. Another former section into Epoufette was added to extend M‑117. The new highway was detoured around the Cut River Bridge until it was completed in 1946 after construction delays over steel shortages during World War II.
The western end of US 2 took on two changes in the 1940s. M‑28 was extended along US 2 to the state line at Ironwood from its western terminus at Wakefield. A similar extension was made from M‑28's eastern terminus to Sault Ste. Marie in 1948. The M‑54 designation was renumbered as Business US 2 by 1945. The eastern M‑28 extension was reversed in 1950, and the western extension to the state line was shifted to a new location by 1952.
Interstate era
With the coming of the Interstate Highway System in Michigan, the MSHD planned to convert the eastern section of US 2 to a freeway between St. Ignace and Sault Ste. Marie. In planning maps from 1947, this highway corridor was included in the system that later became the Interstates. It was also included in the General Location of National System of Interstate Highways Including All Additional Routes at Urban Areas Designated in September 1955, or Yellow Book after the cover color, that was released in 1955 as the federal government readied plans for the freeway system. The proposed number in 1958 was Interstate 75 (I‑75).
The first section of freeway was built in late 1957 or early 1958 between Evergreen Shores and M‑123 north of St. Ignace. The Mackinac Bridge was opened to traffic on November 1, 1957; a new section of freeway and an interchange connected US 2 to the bridge. In 1961, another new freeway segment closed the gap between the Mackinac Bridge and Evergreen Shores sections. At the time, the I‑75 designation supplanted US 27 on the bridge, and US 2 was shifted to follow I‑75 along the freeways in the St. Ignace area. The former routing of US 2 in downtown St. Ignace was redesignated BL I‑75. More sections of freeway were opened in 1962 immediately to the south of the newly constructed International Bridge in Sault Ste. Marie as well as between Dafter and Kinross. The last two sections opened in 1963 connected the northern end of the freeway at M‑123 to Kinross, and the section between Dafter and Sault Ste. Marie. At this time, all of US 2's former routing became a county road known as Mackinac Trail (H-63).
The Department of State Highways expanded US 2/US 41 into an expressway between Gladstone and Rapid River in 1971. The state built a new bridge over the Manistique River in 1983, bypassing downtown. MDOT disposed of the former routing of US 2 into downtown in two ways. The western half was initially an unnumbered state highway until it was later transferred to local control. An extension of M‑94 replaced the remainder, including the Siphon Bridge, through downtown. In that same year, the department truncated US 2 to end in St. Ignace by removing it from the I‑75 freeway. The last changes were made to US 2's routing through Iron River in 1998, bypassing the bridge that formerly carried the highway over the river in town. In 2011, MDOT raised the speed limit along the expressway section in Delta County from , although the speed limit for trucks remained until 2017. That year the highway's speed limits were raised to between Wakefield and Iron River as well as between Rapid River and St. Ignace. In 2020, MDOT announced the slight relocation of US 2 in Mackinac County just west of the Cut River Bridge due to sinkholes and shoreline erosion on Lake Michigan near the roadway.
Memorial designations and tourist routes
On July 1, 1924, the State Administrative Board named M‑12, the predecessor to US 2 in Michigan, the Bohn Highway to honor Frank P. Bohn, a prominent local citizen who later served in Congress from 1927 to 1933. In 1929, the residents of Escanaba created a memorial to the veterans of World War I called Memory Lane. The project consisted of elm and maple trees planted along US 2/US 41 west of town. The American Legion sold the trees to local businesses and individuals who could honor specific soldiers. Later in 1949, the Bessemer Women's Club created a tribute in the form of a permanent living memorial to the area veterans. Also called Memory Lane, the group planted 140 elms and 1,840 evergreens, trees and shrubs as a landscaped parkway along of US 2 east of Bessemer.
Most of US 2, along with US 23 in the Lower Peninsula, was designated the United Spanish War Veterans Memorial Highway in 1949. To connect the gap in the routing where US 2 cuts through Wisconsin, M‑95 and M‑69 were used in place of US 2 between Iron Mountain and Crystal Falls. Signs marking the highway were not erected until 1968 when Governor George W. Romney had them installed.
The Amvets Memorial Drive designation was created for the section of US 2/US 41/M‑35 between the northern Escanaba city limits and County Road 426 (CR 426) in Delta County. The American Veterans (AMVETS) organization in Michigan petitioned the Michigan Legislature to grant this designation, which was assigned under Public Act 144 in 1959.
Two sections of US 2 are part of the overall Great Lakes Circle Tour (GLCT): the segment from the Wisconsin state line near Ironwood to the M‑28 junction in Wakefield is part of the Lake Superior Circle Tour (LSCT), and the segment from the southern M‑35 junction in Escanaba to the eastern terminus in St. Ignace is part of the Lake Michigan Circle Tour (LMCT). These two tours were created in May 1986 through a joint effort between MDOT and its counterparts in Wisconsin, Minnesota and Ontario. The section of US 2 between Iron River and Crystal Falls has been named the Iron County Heritage Trail. This Pure Michigan Byway was designated to honor the "rich history of two industries that built a state and nation: mining and logging." On August 26, 2007, MDOT announced that the section of US 2 that runs concurrently with M‑35 in Delta County was being included in the UP Hidden Coast Recreational Heritage Trail. The segment between Thompson and St. Ignace along the northern shore of Lake Michigan was designated the Top of the Lake Scenic Byway in the Pure Michigan Byways program on October 9, 2017.
Historic bridges
There are six bridges along current or former sections of US 2 that MDOT has added to its listing of Michigan's Historic Bridges; two of these are also listed on the National Register of Historic Places (NRHP). A third bridge added to the NRHP in late 2012 has not been added to MDOT's listing however. The first of these historic bridges is the crossing of the Iron River, which has since been bypassed by a new bridge. The original structure, dating to 1918, is a spandrel arch span that was built by the MSHD as Trunk Line Bridge No. 191. The structure was listed on the NRHP on December 9, 1999, for its architectural and engineering significance.
In December 2012, the National Park Service approved the listing of the Upper Twin Falls Bridge that crosses the Menominee River northwest of Iron Mountain. The structure is a single-span, pin-connected, camelback, through-truss bridge, and it is the only known example of its type in Michigan. It was built between 1909 and 1910 because the Twin Falls Power Dam would flood an existing river crossing. The span cost $5,106 (equivalent to $ in ), paid equally by Dickinson and Florence counties. Until the 1930s, the Upper Twin Falls Bridge carried US 2 across the Menominee River. In 1934, a new bridge was built about a mile downstream, and the highway was rerouted over the new span. The bridge closed to automobile traffic in September 1971, and the nomination process for inclusion on the National Register of Historic Places began in 2012.
In 2003, MDOT replaced the Sturgeon River Bridge in Waucedah Township, Dickinson County. , even though the old bridge was demolished and replaced, MDOT retained it on their historic bridge list. It was built in 1929.
Before 1983, US 2 used a different routing through Manistique and crossed the Manistique River on what is nicknamed the "Siphon Bridge". Built as a part of a raceway flume on the river, the water level is actually higher than the road surface. This produces a siphon effect, giving the bridge its nickname. The Manistique Pulp and Paper Company was organized in 1916 and needed a dam on the Manistique River to supply their mill. This dam would require a large section of the city to be flooded, and shallow river banks meant difficulties in any bridge construction. Instead of expensive dikes, a concrete tank was built lengthwise in the river bed; the sides of this tank provided man-made banks higher than the natural banks. The Michigan Works Progress Administration described the bridge as having "concrete bulkheads, formed by the side spans of the bridge, [that] allow the mill to maintain the water level several feet above the roadbed." The Manistique Tourism Council stated: "At one time, the bridge itself was partially supported by the water that was atmospherically forced under it," and that the bridge has been featured in Ripley's Believe It or Not!. The eight-span structure is long.
The Cut River Bridge carries US 2 across the Cut River in Hendricks Township, Mackinac County. This structure was built during World War II but completion was delayed due to war-induced steel shortages. The span uses of structural steel to bridge the over the river and its gorge at a height of above the river. The Cut River Bridge is one of only two cantilevered deck truss bridges in the state. On either side of the bridge, there are picnic areas and trails down to the river.
Listed on the NRHP on December 17, 1999, the Mackinac Trail–Carp River Bridge carries H-63, the modern successor to US 2, over the Carp River north of St. Ignace. The bridge is another spandrel arch structure in length and built in 1920. Increasing traffic along Mackinac Trail prompted the MSHD to "widen its deck by five feet [1.5 m] and install new guardrails in the 1929–1930 biennium" along with the addition of decorative retaining walls.
The last of the historic bridges along a former segment of US 2 is the structure carrying Ashmun Street (BS I‑75) over the Power Canal in Sault Ste. Marie. Built in 1934, it is one of only three steel arch bridges in the state. The and structure is described by MDOT as "massive" with an "innovative" construction method: the previous structure was used as a falsework for the current bridge before removal.
Major intersections
MDOT has erected milemarkers along the two Michigan segments of the highway that use the total mileage starting at the state line in Ironwood; the signs on the eastern segment reflect the mileage in Florence County, Wisconsin.
Business route
Business U.S. Highway 2 (Bus. US 2) is a business route that runs from the Wisconsin state line at the Montreal River. The route extends through downtown Ironwood on Silver and Aurora streets before turning northward along Suffolk Street. Bus. US 2 stays on Suffolk Street for a short while until it turns onto Frederick Street. On Frederick Street, Bus. US 2 bears north through a residential area along Douglas Street. The eastern terminus of the route is at its junction with US 2 at the corner of Cloverland Drive and Douglas Street north of downtown.
The business route was created in August 1942 when former M‑54 in Ironwood was renumbered as a business loop of US 2. It was originally a bi-state business connection before the Wisconsin Department of Transportation decommissioned Bus. US 2 in Hurley westward along State Trunk Highway 77 and northward along US 51 in 2002.
See also
Notes
References
External links
US 2 at Michigan Highways
"US 2 Is Not A Freeway" at Michigan Highways
Bus. US 2 at Michigan Highways
Iron County Heritage Trail (Western Upper Peninsula Planning & Development Region)
02
Michigan
Lake Superior Circle Tour
Lake Michigan Circle Tour
Transportation in Gogebic County, Michigan
Transportation in Iron County, Michigan
Transportation in Dickinson County, Michigan
Transportation in Menominee County, Michigan
Transportation in Delta County, Michigan
Transportation in Schoolcraft County, Michigan
Transportation in Mackinac County, Michigan
|
Toby Morris (born 1980) is a New Zealand cartoonist, comics artist, illustrator and writer, best known for non-fiction online comics that often highlight social issues.
His work has reached worldwide audiences. On A Plate is an online comic Morris created to explain privilege by contrasting the lives from infancy to adulthood of two imaginary people: one wealthy, the other poor. It was shared globally and has been translated into several other languages. Animated graphics created in collaboration with Siouxsie Wiles for The Spinoff's coverage of the COVID-19 pandemic were similarly widely shared and translated. In 2022 Morris won the Prime Minister's Science Communication Prize.
Life
Morris has attributed his love of comics to his family having moved frequently for his father's army career. He started making his own comics at the age of seven, during an extended break from school caused by a broken leg.
After unsuccessfully applying to study design at Massey University, Morris did a BA in English literature and political science at Victoria University of Wellington. During that time his comics were published in the magazine of Victoria University's students' association, Salient, and he worked for Salient in 2002.
During his early twenties, Morris played bass for Wellington band Batrider and moved to Melbourne with them. He later got hearing aids and was relieved to learn that his hearing loss was hereditary and not due to loud music. After leaving the band he relocated to Amsterdam with his wife, freelance photographer Sonya Nagels. They had their first child in Amsterdam and later returned to New Zealand.
Morris lives in Auckland with Nagels and their two sons.
Work
Morris's comic On A Plate was part of his series of non-fiction comics The Pencilsword, published by Radio New Zealand (RNZ) on its website The Wireless.
Since moving on from RNZ, Morris has been creating non-fiction comics for online magazine The Spinoff, including a series titled The Side Eye. The Spinoff has also published a web series Two Sketches in which Morris interviews another illustrator while they each complete a drawing. Interviewees for Two Sketches included Sharon Murdoch and Metiria Turei.
He has published several books, including two collections of his cartoons depicting daily life: Alledaags: A Year in Amsterdam and Don't Puke On Your Dad: A Year In The Life of A New Father; and two children's books: Capsicum, Capsi Go and The Day The Costumes Stuck. The latter was nominated for the Russell Clark Award for Illustration in the 2017 NZ Book Awards.
Morris was the illustrator of a special edition of the School Journal focused on Te Tiriti O Waitangi, which was supplied to schools in 2018. A book version of the School Journal work was subsequently made available for purchase by the general public, and sold well. The latter was nominated for the Elsie Locke Award for Non-Fiction in the 2020 New Zealand Book Awards for Children and Young Adults, and also for the Scholastic New Zealand Award for Best Children’s Book in the Publishers Association of New Zealand Book Design Awards 2020.
Flatten the Curve, a slightly animated comic that Morris created in 2020 with Siouxsie Wiles for The Spinoff to describe how simple citizen actions could vastly reduce the death toll, went viral during the Coronavirus disease 2019 viral pandemic and was seen worldwide (including in Wikipedia). Called "the defining chart of the Coronavirus", it was based on earlier graphics by the Centers for Disease Control and Prevention, Rosamund Pearce of The Economist, and Thomas Jefferson University professor Drew Harris. The World Health Organisation (WHO) hired The Spinoff to deliver content in support of the global effort to combat the pandemic, after WHO's communications director encountered some of the work Morris and Wiles had produced. Morris was creative director for the WHO contract, and went on to become the creative director of The Spinoff.
Siouxsie Wiles has credited Morris for his part in the work that contributed to her being named New Zealander of the Year for 2021.
Awards
In May 2022 Morris was selected as the winner of the 2021 Prime Minister's Science Communication Prize.
Newspaper Publishers' Association awards
The New Zealand News Publishers' Association awards are given out annually under varying brand names and Morris has been a nominee or recipient since 2016.
Canon Media Awards
2016 – Opinion writer – general (with Toby Manhire), for RNZ Online
2017 – Best artwork/graphics, for RNZ and The Wireless
Voyager Media Awards
2018 (winner) – Best artwork/graphics (including interactive/motion graphics), for The Spinoff and The Wireless
2019 (winner) – Best artwork/graphics (including interactive/motion graphics), for The Spinoff
2020 (winner) – Cartoonist of the Year, for The Spinoff (also runner up for Best artwork/graphics)
2021 (winner) – Cartoonist of the Year and Best Artist/Graphic Design, both for The Spinoff
2022 (nominee) – Best artist/graphic design, for The Spinoff
2023 (nominee) – Best artist/graphic design, for The Spinoff
References
External links
1980 births
Living people
New Zealand editorial cartoonists
New Zealand comics artists
|
```javascript
const sharedPreset = require('expo-module-scripts/jest-preset-plugin');
module.exports = {
...sharedPreset,
roots: ['__mocks__', 'src', 'e2e'],
};
```
|
```yaml
define: DUK_OPT_SEGFAULT_ON_PANIC
introduced: 1.0.0
tags:
- portability
description: >
Cause the default panic handler to cause a segfault instead of using
abort() or exit(). This is useful when debugging with valgrind,
as a segfault provides a nice C traceback in valgrind.
```
|
Hand in Hand is a 1961 British drama film about the friendship between two young children, one a Roman Catholic boy about nine, the other a 7-year-old Jewish girl.
Filmed in the summer of 1960 under the title "The Star and the Cross", Hand in Hand. Although ABPC's distribution arm in the United Kingdom, Warner-Pathe Film Distributors, screened the film for the British press in late 1960, it remained unreleased in the UK until 1963, when it finally went out nationally on the ABC cinema circuit as the supporting feature for the Tony Hancock comedy The Punch and Judy Man. It was shown to American children and adults when released on the CBS Children's Film Festival 1967 season hosted by Kukla, Fran and Ollie.
Plot
Michael O'Malley (Needs), rushes to his priest to tearfully inform him that he has accidentally killed his closest friend, Rachel Mathias (Parry). The story is told in flashback as Michael recounts their friendship, when he first befriended Rachel by hurrying her away from a group of schoolboys who were verbally bullying her on the playground. They quickly become the best of friends. The young children decide to become "blood brothers" by pricking their fingers and rubbing the blood together. They set off for an adventure, hoping to go to London to visit the queen, but instead are picked up by a kindly elderly lady (Sybil Thorndike) who takes them to her home for tea, pretending that she is a princess and that her mansion is one of the queen's homes, but that the queen is currently away. Her amiable deception goes over perfectly, and the children have a great time visiting with her.
Michael and Rachel are aware that they worship on different days and their religions are somewhat different, but they do not ponder the specifics. However, when a somewhat overbearing and destructively-outspoken classmate informs Michael that Rachel is Jewish and that "the Jews killed Christ", an outraged Michael rushes to Rachel at their clubhouse and angrily confronts her, "Why did you kill Christ?" Rachel is shocked and insistently denies it: "I didn't kill him. I don't even know him". Michael and Rachel conclude that God is angry at them for becoming friends, but they are not sure if He will forgive them. They decide to attend church with each other to see if God is mad at them, believing they will die if He does not want them to go to each other's church. Michael sneaks into the synagogue with Rachel the next Saturday and is somewhat puzzled and intimidated by the ceremony, but he stays and seems to like it as time goes on, especially after the kindly rabbi shows him a passage in the Torah that speaks of God's love shielding him from all fear. The next day, Rachel goes with Michael to his church, and while Rachel is initially somewhat unnerved by the services and statues, she too feels more comfortable after a while, especially as the Blessed Virgin's gentle expression appeals to her: "It's all right, Mike. The lady likes me."
Having concluded it is acceptable to God that they remain friends, Michael and Rachel decide to take an inflatable raft on the River Thames for their next adventure, a trip to Africa. All goes well at first as Michael paddles and the raft drifts leisurely and makes smooth ripples on the calm water, but then when the duo passes into a dangerous section of the river with a swifter flow and strong rapids, Michael loses control of the raft, and Rachel is knocked overboard. Due to the stronger current and the riverbank's dense underbrush in which Rachel has become entangled, Michael has great difficulty reaching her, but at last pulls her out of the river; however, she is limp and unresponsive. Fearing the worst, Michael frantically rushes to get help, and adults in the area call for an ambulance. The film then returns to the present moment, with Michael in his grief-stricken state, and telling the priest that he's killed Rachel. The priest comforts him and tells him that Rachel may be all right, and then accompanies him to Rachel's home to see how she is. They are met at the front door by Rachel's rabbi who is leaving, and he smilingly informs them that Rachel has pulled through after all and is recovering well, but that perhaps it would be better to wait till tomorrow to visit her. Michael, immensely relieved, rushes home happy that his little friend is still alive, and the priest and the rabbi --- who earlier in the film have been established as being good friends despite their differing religions (just as the Catholic boy Michael and Jewish girl Rachel had become close), and acknowledging that their respective religions actually hold more in common than they may have realized before --- speak warmly to each other before walking away in different directions.
Cast
Philip Needs as Michael O'Malley
Loretta Parry as Rachel Mathias
John Gregson as Father Timothy
Sybil Thorndike as Lady Caroline
Finlay Currie as Mr. Pritchard
Miriam Karlin as Mrs. Mathias
Arnold Diamond as Mr. Mathias
Barbara Hicks as Miss Roberts
Derek Sydney as Rabbi Benjamin
Denis Gilmore as Tom
Kathleen Byron as Mrs. O'Malley
Barry Keegan as Mr. O'Malley
Awards and nominations
The film won 14 international film awards including a special Golden Globe Award for Best Film Promoting International Understanding and the children’s category at the Venice Film Festival. Director Philip Leacock was also a top 20 finalist among 1961 theatrical motion pictures for Best Achievement in Directing by the Directors Guild of America.
Directors Guild of America
1962: Nominated, Outstanding Directorial Achievement in Motion Pictures – Philip Leacock
Golden Globe Award
1961: Won, Best Film Promoting International Understanding
External links
British black-and-white films
Christian and Jewish interfaith dialogue
Films shot at Associated British Studios
1960s English-language films
Films directed by Philip Leacock
Catholicism and Judaism
Films about Jews and Judaism
Films about Catholicism
|
```objective-c
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT NSErrorDomain const WAErrorDomain;
///
NS_ERROR_ENUM(WAErrorDomain) {
WAErrorUnknown = -1,
WAErrorParameter = -2,
WAErrorFileReadError = -10001,
WAErrorFileUnzipFail = -10002,
WAErrorFileBroken = -10003,
WAErrorFileDownloadFail = -20001,
WAErrorAppLaunchAbort = -30001,
};
@interface WAError : NSObject
+ (NSError *)error:(NSInteger)errorCode;
+ (NSError *)error:(NSInteger)errorCode desc:(NSString *)desc;
+ (NSError *)errorFileRead:(NSString *)fileName;
@end
```
|
The 2015 Nigerian Senate election in Ondo State was held on March 28, 2015, to elect members of the Nigerian Senate to represent Ondo State. Omotayo Donald representing Ondo Central and Robert Ajayi Boroffice representing Ondo North won on the platform of All Progressives Congress, while Yele Omogunwa representing Ondo South won on the platform of Peoples Democratic Party.
Overview
Summary
Results
Ondo Central
All Progressives Congress candidate Omotayo Donald won the election, defeating People's Democratic Party candidate Akinyelure Ayo and other party candidates.
Ondo North
All Progressives Congress candidate Robert Ajayi Boroffice won the election, defeating People's Democratic Party candidate Bode Olajumoke and other party candidates.
Ondo South
Peoples Democratic Party candidate Yele Omogunwa won the election, defeating All Progressives Congress candidate Morayo Lebi and other party candidates.
References
Ondo State Senate elections
March 2015 events in Nigeria
Ond
|
Geffen Records is an American record label established by David Geffen and owned by Universal Music Group through its Interscope Geffen A&M Records imprint.
Founded in 1980, Geffen Records has been a part of Interscope Geffen A&M since 1999 and has been used by Universal Music as a syndicating division, serving its purpose to operate as a premier label for many new releases since 2003 and its 2017 reboot and at the same time to reissue many releases from recording labels such as Decca Records (exclusively the American pop/rock catalog), Kapp Records, DreamWorks Records, MCA Records, Uni Records, Chess Records, Almo Sounds (Interscope has managed reissues of the label in 2015), Dot Records, and ABC Records (primarily its pop, rock, and R&B recordings).
The label has released significant recordings from artists including Elton John, Nirvana, Aerosmith, Neil Young, Cher, Guns N' Roses, John Lennon, Olivia Rodrigo, The Rolling Stones, Yeat, Yungblud, Kali Uchis, Dave, Alesso, Joni Mitchell, Peter Gabriel, Donna Summer, Weezer, Mary J. Blige, Blink-182, Avicii, Madness, Sylvers, Kylie Minogue, Enya, Counting Crows, Tesla, Keyshia Cole, Lifehouse, Beck, Nelly Furtado, Lil Durk, Marshmello, Rise Against, Snoop Dogg, and Rob Zombie.
History
1980–1990: Formation
Geffen Records began operations in 1980, having been started by music industry businessman David Geffen who, in the early 1970s, had founded Asylum Records. Geffen stepped down from Asylum in 1975, when he crossed over to film and was named a vice president of Warner Bros. Pictures. He was fired from Warner , but still remained locked in a five-year contract, which prevented him from working elsewhere. When that deal expired, he returned to work in 1980 and struck a deal with, ironically, Warner Records, the sister company to Warner Bros. Pictures, to create Geffen Records. Warner Bros. Records provided 100 percent of the funding for the label's start-up and operations and Warner distributed its releases in North America, while Epic Records handled distribution in the rest of the world until 1985 when Warner Music Group (WMG) took over distribution for the rest of the world. Profits were split 50/50 between Geffen Records and its respective distributors.
Geffen Records' first artist signing was superstar Donna Summer, whose gold-selling album The Wanderer became the label's first release in 1980. The label then released Double Fantasy by John Lennon and Yoko Ono. Two weeks after it entered the charts, Lennon was murdered in New York City. Subsequently, the album went on to sell millions and gave Geffen its first number-one album and single; the rights to the album would later be taken over by EMI, which eventually was absorbed by Geffen's parent, Universal Music Group (The present incarnation of MCA).
As the 1980s progressed, Geffen would go on to have success with such acts as Asia, Berlin, Enya, Kylie Minogue, Quarterflash, Wang Chung, and Sammy Hagar. The label also signed several established acts such as Elton John, Irene Cara, Cher, Debbie Harry, Don Henley, Joni Mitchell, Neil Young, Peter Gabriel, and Jennifer Holliday. Toward the end of the decade, the company also began making a name for itself as an emerging rock label, thanks to the success of Whitesnake (U.S. and Canada only), The Stone Roses, Guns N' Roses, Tesla, Sonic Youth and the comeback of 1970s-era rockers Aerosmith. This prompted Geffen to create a subsidiary label, DGC Records in 1990; which focused on more progressive rock and would later embrace the emergence of alternative rock—Nirvana being an example. Geffen also briefly distributed the first incarnation of Def American Recordings through Warner Music Group from 1988 to 1990.
1990–1998: Acquisition by MCA
After a decade of operating through WMG, when its contract with the company expired, the label was sold to MCA Music Entertainment (later renamed Universal Music Group) in 1990. The deal ultimately earned David Geffen an estimated US$800 million in stock (until the cash acquisition of MCA by Japanese conglomerate Matsushita Electric Industrial Co., Ltd. in 1991 made Geffen a billionaire) and an employment contract that ran until 1995. Following the sale, Geffen Records operated as one of MCA's leading independently managed labels. Geffen stepped down as head of the label in 1995 to collaborate with Jeffrey Katzenberg and Steven Spielberg to form DreamWorks SKG, an ambitious multimedia empire dealing in film, television, books and music. Geffen Records would distribute releases on the new operation's DreamWorks Records subsidiary. In January 1996, Geffen Records funded and distributed a short-lived boutique label Outpost Recordings featuring the likes of Whiskeytown, Ry Cooder, Veruca Salt, and Hayden. However, under MCA, Geffen's fortunes began to dwindle.
1999–2009: Interscope-Geffen-A&M
In December 1998, Seagram decided to merge Universal Music Group with PolyGram. In the ensuing months, a number of corporate reshufflings occurred, resulting in Geffen, alongside A&M Records, being merged into the Interscope Geffen A&M Records group, resulting in Geffen firing 110 of its employees. Unlike A&M, which was closed entirely, Geffen was able to continue existing as a brand under Interscope Records. At the same time, international distribution of Interscope and Geffen releases switched to ex-PolyGram label Polydor Records, which had already been distributing A&M releases overseas (in return for A&M handling Polydor releases in the U.S.).
In October 1999, Jordan Schur (of Flip Records) was chosen as Geffen's new president; this led to Schur stepping down as the head of Flip, but he still managed to maintain control of the label and a few acts from Flip's roster, such as Cold and Professional Murder Music, were transferred over to Geffen. Geffen's first release under Schur's leadership was the End of Days soundtrack, released in November 1999, and under the direction of Schur, Geffen was to become a predominantly rock music-based label.
Geffen continued to do steady business—so much so that in 2003, UMG folded MCA Records into Geffen. Though Geffen had been substantially a pop-rock label, its absorption of MCA (and its back catalogs) led to a more diverse roster; with former MCA artists such as Mary J. Blige, The Roots, Blink-182, Rise Against and Common now featured on the label. Meanwhile, DreamWorks Records also folded, with artists such as Nelly Furtado, Lifehouse and Rufus Wainwright being absorbed by Geffen as well. During this time, DGC Records was also folded into Geffen, with retained artists now recording for Geffen directly (DGC was reactivated in 2007, however it would now operate through Interscope Records instead).
As the 2000s progressed, Geffen's absorption of the MCA and DreamWorks labels, along with continuing to sign new acts such as Ashlee Simpson, Angels & Airwaves, Snoop Dogg and The Game, had boosted the company to the extent that it began gaining equal footing with the main Interscope label, leading some industry insiders to speculate that it could revert to operating as an independently managed imprint at UMG again. At the end of 2007, however, Geffen was absorbed further into Interscope. The restructuring resulted in Geffen laying off sixty employees.
In 2009, it was announced that Geffen Records had signed an agreement with the Holy See to produce an album of Marian songs and prayers from Pope Benedict XVI.
2010–present
Jimmy Iovine relaunched the Geffen imprint in 2011, moving its headquarters from California to New York City. Gee Roberson was appointed chairman.
In March 2017, Neil Jacobson was appointed President of Geffen Records to oversee the relaunch of the label via new signings as well as reinvigoration of the label's legendary catalog. In December 2019, Jacobson left Geffen to start Crescent Drive Productions.
In January 2020, Lee L'Heureux was appointed General Manager of Geffen Records.
In March 2022, Tom March, a British record executive formerly of Polydor Records, was appointed president of Geffen Records.
Geffen has seen major success amongst their developing artists such as Olivia Rodrigo, Kali Uchis, Yungblood and YEAT. Rodrigo’s Sour broke the global Spotify record for the biggest opening week for an album by a female artist. It topped the charts in several countries, including the US Billboard 200, and was one of the best-selling albums of 2021. Uchis’ Album released under Geffen, Red Moon in Venus (2023), became her first to debut within the top 10 on the Billboard 200.
The Rolling Stones announced their new album “Hackney Diamonds” will be released under Geffen Records on October 20, 2023. This marks their first record of new material in over 18 years.
Geffen signed superstar DJ, Alesso, in 2023.
HYBE x Geffen Records
In February 2021, HYBE (formerly Big Hit Entertainment) and UMG’s Geffen Records officially announced their strategic joint venture partnership — an unprecedented collaboration between a U.S. record label and the leading K-pop and entertainment lifestyle platform company. HYBE x Geffen Records have partnered to release music by HYBE’s artists around the world, including releases from artists such as BTS, NewJeans, Seventeen, and BTS individual members.
In November 2021, HYBE x Geffen Records announced that they would be creating a global girl group. The years-long process of creating this one-of-a-kind girl group will be the subject of an upcoming untitled Netflix documentary series. With unprecedented access, the series will be a compelling portrayal of the journey to global stardom, including insight into the unique training and development program from HYBE and Geffen Records. It will be directed by award-winning filmmaker, Nadia Hallgren, who was at the helm of the four-time Emmy nominated Netflix documentary, Becoming. The series produced by HYBE, Interscope Films and Boardwalk Pictures is set to premiere in 2024.
Labels
HYBE
Cinematic Music Group
Downtown Records
Rebel Music
Simple Stupid Records
Artists
Current artists
4TUNAT (FlyTown/Geffen)
Abby Jasmine (Cinematic Music Group/Geffen Records; distribution formaily licensed to Foundation Media)
Ado (Virgin/Geffen)
Alesso (10:22PM/Geffen)
Ann Marie
Big Time Rush (Downtown Records/Geffen Records)
Braden Bales
BTS (HYBE; distribution in the US)
Byron Messia
Celeste
Cian Ducrot
Dave (Neighbourhood/Geffen)
Dexter Tortoriello (Downtown Records/Geffen Records)
Easy Life
Guns N' Roses
Highway (Victor Victor Worldwide/Geffen Records)
Holly Humberstone
Hotboii (Rebel Music/Geffen Records)
Inhaler
J Hope (Big Hit/Geffen Records)
Jimin (Big Hit/Geffen Records)
Jungkook (Big Hit/Geffen Records)
Kali Uchis (EMI/Geffen; Previously with Interscope)
Le Sserafim (Source Music; distribution in the US)
Huddy
Kenneth Cash (Cinematic Music Group/Geffen Records)
Kidd G
Lawsy (LISTEN TO THE KIDS/Geffen Records)
Lil Heat (Cinematic Music Group/Geffen Records; distribution licensed to Ingrooves and previously with Foundation Media)
Lola Kirke (Downtown Records/Geffen Records)
Lul Bob (Good Money Global/Cinematic Music Group/Geffen Records; distribution licensed to Ingrooves and previously with Foundation Media)
That Mexican OT
Michael Kiwanka
midwxst (Simple Stupid/Geffen Records)
Neon Trees (Thrill Forever Records/Downtown Records/Geffen Records)
NewJeans (ADOR; distribution in the US)
Nirvana (from DGC Records) (Reissues)
Jace! (Simple Stupid/Geffen Records; distribution licensed to Ingrooves and previously with Foundation Media)
Ola Runt (Front Street/Cinematic Music Group/Geffen Records; distribution formaily licensed to Ingrooves and previously with Foundation Media)
Olivia Rodrigo
Prentiss (Cinematic Music Group/Geffen Records)
Riovaz
Rob49 (Rebel Music/Geffen Records; distribution licensed to Ingrooves and previously with Foundation Media)
Seventeen (Pledis Entertainment; distribution in the US)
Skaiwater (Cinematic Music Group/Geffen Records)
Skilla Baby
Suga (Big Hit/Geffen Records)
Smokingskul (LISTEN TO THE KIDS/Geffen Records)
SpotemGottem (Rebel Music/Geffen Records)
Tay Money
Thug Drama (BTM Music Group Inc.)
Tokyo's Revenge (Blac Noize!/Cypress Park Music/Geffen Records/Interscope Records; distribution licensed to Foundation Media)
V (Big Hit/Geffen Records)
Yeat (Field Trip/Lyfëstyle Corporation/Geffen Records)
Yhapojj (Simple Stupid/Geffen Records)
Yungblud (Locomotion/Geffen Records)
Zack Bia (Field Trip/Geffen)
Former artists
A Drop in the Gray
Aerosmith (from Columbia Records)
Aimee Mann
Alex Salibian
AlunaGeorge
Angels & Airwaves
Ashlee Simpson
Asia
Avant (from Magic Johnson Music/MCA Records)
Avicii
Bipolar Sunshine
Blaque
Blink-182 (from MCA Records)
Box Car Racer
Bobby Brown
Cher
Common (GOOD/Geffen, from MCA Records)
Counting Crows
Cowboy Junkies
Dazz Band
DJ Snake
Don Henley
Donna Summer
Eagles
Elton John
Emile Haynie
Enya
Eve (from Ruff Ryders/Interscope)
Field Mob (Disturbing tha Peace/Geffen, from MCA Records)
Finch (from Drive-Thru Records)
The Game (from Aftermath/G-Unit/Interscope)
Garbage (from Almo Sounds)
Girlicious
Greyson Chance (eleveneleven/Maverick/Geffen)
Gryffin
Guns N' Roses
GZA
Jacob Collier
Jeff Bhasker
Jennifer Holliday
J.I the Prince of N.Y (G*STARR/Interscope/Geffen)
John Kilzer
John Lennon
John Waite
Ken Laszlo
Keyshia Cole
Klepto (from Larceny Entertainment)
Kylie Minogue
Lifehouse
Lil Durk (from Alamo/OTF/Interscope)
Lil Jon
Martin Terefe
Mary J. Blige (from MCA Records)
Mura Masa
Nelly Furtado (from DreamWorks Records)
New Found Glory
Orianthi
Peter Gabriel (US/Canada)
Quarterflash
The Plimsouls
Puddle of Mudd
Rise Against
Rod Wave (from Alamo; distribution licensed to Foundation Media and previously with EMPIRE)
The Roots (from DGC Records, later switched to MCA Records, then back to Geffen)
Sauce Money (Roc-A-Fella/Geffen, later switched to MCA Records)
Shaggy (from MCA Records)
Smokepurpp (from Alamo/Interscope)
Snoop Dogg (Doggy Style/Star Trak/Geffen, from MCA Records)
Solange (Music World/Geffen)
Sonic Youth
The Starting Line (from Drive-Thru Records)
Tesla
Tei Shi (Downtown Records/Geffen)
Thug Drama (BTM Music Group Inc.)
Tommy Keene
The Like
XTC
Yoko Ono
Weezer
Wang Chung
See also
Geffen Records discography
John Kalodner
List of record labels
References
External links
- Geffen Records is included within the Interscope site and is part of Interscope-Geffen-A&M
American record labels
Record labels based in California
New York (state) record labels
American country music record labels
Heavy metal record labels
Pop record labels
Rock record labels
Record labels established in 1980
1980 establishments in California
Companies based in New York City
Labels distributed by Universal Music Group
David Geffen
|
Lajjaavathi is a 1979 Indian Malayalam film, directed by G. Premkumar. The film stars Krishnachandran, Ambika, Baby Sumathi and K. A. Sivadas in the lead roles. The film has musical score by KJ Joy.
Cast
Krishnachandran
Ambika
Baby Sumathi
K. A. Sivadas
Raghavan
James Stalin
Stanley
Kollam G. K. Pillai
Sreelatha Namboothiri
Aranmula Ponnamma
Nellikode Bhaskaran
Vincent
Soundtrack
The music was composed by K. J. Joy and the lyrics were written by Anwar Suber.
References
External links
1979 films
1970s Malayalam-language films
|
```php
<?php
/**
*
*
* path_to_url
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
*/
namespace Aws\DynamoDb\Exception;
/**
* An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.
*/
class ItemCollectionSizeLimitExceededException extends DynamoDbException {}
```
|
Brett Michael Holmgren is an American intelligence official serving as assistant secretary of state for intelligence and research in the Biden administration.
Education
Holmgren earned a Bachelor of Arts degree in political science and journalism from the University of Wisconsin–Madison and a Master of Arts degree, summa cum laude, in global security studies from Johns Hopkins University.
Career
For fourteen years Holmgren held top leadership positions the Intelligence Community (IC), in the White House and at the Department of Defense, including three years in the private industry, before becoming Assistant Secretary. He began his government service as a counterterrorism analyst at the Defense Intelligence Agency and served as the special assistant to the deputy secretary of defense, director for counterterrorism at the United States National Security Council, and a political analyst at the Central Intelligence Agency. He also served as special assistant to the president and senior director for intelligence programs at the National Security Council, where he also previously served as senior policy advisor to the Homeland Security advisor. He was most recently the vice president for technology risk management at Capital One. He was also a deputy for nominations on the Biden–Harris transition team and co-chair of the intelligence working group for the Joe Biden 2020 presidential campaign. On September 13, 2021, Holmgren was confirmed by the United States Senate by voice vote. He was sworn in on September 15, 2021.
Awards and recognition
Holmgren is the recipient of numerous performance awards, including the National Intelligence Superior Service Medal, the Central Intelligence Agency Director's award, and the Secretary of Defense Exceptional Civilian Service Award.
Personal life
Holmgren grew up in Minnesota with his parents and three siblings. Holmgren married lawyer and government official Dana Remus in 2018. Their wedding was officiated by Barack Obama. They have one son.
References
21st-century American lawyers
Assistant Secretaries of State for Intelligence and Research
Biden administration personnel
Johns Hopkins University alumni
Living people
Obama administration personnel
People of the Defense Intelligence Agency
United States Assistant Secretaries of State
United States National Security Council staffers
University of Wisconsin–Madison alumni
Year of birth missing (living people)
|
```yaml
id: Netscout Arbor Sightline - Test Playbook
version: -1
vcShouldKeepItemLegacyProdMachine: false
name: Netscout Arbor Sightline - Test Playbook
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 39170ce8-69f4-46f3-8d36-9ebd9b426d1b
type: start
task:
id: 39170ce8-69f4-46f3-8d36-9ebd9b426d1b
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: 7d378e2f-b15c-4581-824e-d672587544f5
type: regular
task:
id: 7d378e2f-b15c-4581-824e-d672587544f5
version: -1
name: DeleteContext
script: DeleteContext
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "4"
scriptarguments:
all:
simple: "yes"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: 078fc255-9d99-4feb-8399-af2cb2b5790e
type: regular
task:
id: 078fc255-9d99-4feb-8399-af2cb2b5790e
version: -1
name: na-sightline-alert-annotation-list
script: '|||na-sightline-alert-annotation-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
alert_id:
complex:
root: NASightline.Alert
accessor: id
transformers:
- operator: FirstArrayElement
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: 4800ecad-8323-436b-804b-5f197b9e0bbe
type: regular
task:
id: 4800ecad-8323-436b-804b-5f197b9e0bbe
version: -1
name: na-sightline-alert-list
script: '|||na-sightline-alert-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "5"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: dad41203-acb0-439d-87bd-5a1193d3a429
type: condition
task:
id: dad41203-acb0-439d-87bd-5a1193d3a429
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "2"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.alert_class
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.alert_type
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.id
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.importance
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.ongoing
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.start_time
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Alert.type
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 6ec4217f-f640-4282-8d79-2706bdb97d02
type: regular
task:
id: 6ec4217f-f640-4282-8d79-2706bdb97d02
version: -1
name: na-sightline-mitigation-list
script: '|||na-sightline-mitigation-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"7":
id: "7"
taskid: ff04ff17-90fc-4e6a-8205-87d3e55e20e3
type: condition
task:
id: ff04ff17-90fc-4e6a-8205-87d3e55e20e3
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "8"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.description
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.id
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.ip_version
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Mitigation.is_automitigation
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.name
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.ongoing
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.start
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.subtype
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.type
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.user
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 1070
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: f59d6a55-864e-4b02-894c-622922af393f
type: regular
task:
id: f59d6a55-864e-4b02-894c-622922af393f
version: -1
name: na-sightline-mitigation-create
script: '|||na-sightline-mitigation-create'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
alert_id:
complex:
root: NASightline.Alert
accessor: id
transformers:
- operator: FirstArrayElement
ip_version:
simple: IPv4
name:
simple: Nightly Test Playbook Mitigation
sub_object:
simple: '{"protection_prefixes": ["192.0.2.0/24"]}'
sub_type:
simple: flowspec
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1240
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"9":
id: "9"
taskid: afbee4d4-e42e-40ae-8acb-522e06947d55
type: condition
task:
id: afbee4d4-e42e-40ae-8acb-522e06947d55
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "19"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.id
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.ip_version
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Mitigation.is_automitigation
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.name
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Mitigation.ongoing
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.subtype
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Mitigation.type
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 1415
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"10":
id: "10"
taskid: 26631d1d-1001-4a7a-867f-d9485f4b9786
type: regular
task:
id: 26631d1d-1001-4a7a-867f-d9485f4b9786
version: -1
name: na-sightline-mitigation-template-list
script: '|||na-sightline-mitigation-template-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "11"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1770
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: 01d26228-34c3-419f-83d8-96ffeca9c6f4
type: condition
task:
id: 01d26228-34c3-419f-83d8-96ffeca9c6f4
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "12"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.description
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.id
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.ip_version
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.name
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.subtype
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.system
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.MitigationTemplate.type
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 1945
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: e2256b7c-4aa8-4f0a-8fcd-969c21d53f58
type: regular
task:
id: e2256b7c-4aa8-4f0a-8fcd-969c21d53f58
version: -1
name: na-sightline-router-list
script: '|||na-sightline-router-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "13"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2120
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: c3dffdd0-2810-49c3-84af-a2229a3c7f0a
type: condition
task:
id: c3dffdd0-2810-49c3-84af-a2229a3c7f0a
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "14"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.advanced_fallback_alg
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.advanced_use_simpson_flowspec_redirect_ip
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.bgp2_capabilities_labeled_unicast
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.bgp_capabilities_l3vpn_flowspec_ipv4
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.bgp_capabilities_l3vpn_flowspec_ipv6
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.bgp_capabilities_labeled_unicast
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.description
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.flow_alerting
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.flow_export_ip
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.flow_flow_ignored
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.flow_flow_ignored_ipv6
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.flow_sample_rate
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.id
iscontext: true
- - operator: isExists
left:
value:
simple: NASightline.Router.is_proxy
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.license_type
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.name
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.snmp_authprotocol
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.snmp_priv_protocol
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.snmp_security_level
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.snmp_version
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.type
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.advanced_local_as
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.bgp_capabilities_flowspec
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.bgp_capabilities_flowspec_ipv4
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.bgp_capabilities_monitor_routes_ipv4
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.bgp_ip_address
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.bgp_remote_as
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.Router.bgp_session_name
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 2295
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: e97b4148-f765-4c44-85a9-e1734e0c658b
type: regular
task:
id: e97b4148-f765-4c44-85a9-e1734e0c658b
version: -1
name: na-sightline-managed-object-list
script: '|||na-sightline-managed-object-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "15"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2470
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: fa539842-110f-4256-8fcd-060426d76060
type: condition
task:
id: fa539842-110f-4256-8fcd-060426d76060
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "16"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.ManagedObject.id
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.ManagedObject.name
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.ManagedObject.tags
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.ManagedObject.type
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 2645
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: c92c6dcc-c0eb-410d-8837-8f9f91b50c3b
type: regular
task:
id: c92c6dcc-c0eb-410d-8837-8f9f91b50c3b
version: -1
name: na-sightline-tms-group-list
script: '|||na-sightline-tms-group-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "17"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 2820
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: cdde216d-830c-48a5-8770-1be5af154f28
type: condition
task:
id: cdde216d-830c-48a5-8770-1be5af154f28
version: -1
name: Verify Outputs
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "18"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
simple: NASightline.TMSGroup.description
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.TMSGroup.id
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.TMSGroup.name
iscontext: true
- - operator: isNotEmpty
left:
value:
simple: NASightline.TMSGroup.type
iscontext: true
view: |-
{
"position": {
"x": 50,
"y": 2995
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: ee41ad36-a02d-42b9-804d-2e71a8ddb6d6
type: title
task:
id: ee41ad36-a02d-42b9-804d-2e71a8ddb6d6
version: -1
name: Test Done
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 3170
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"19":
id: "19"
taskid: 10bd9a97-5535-489e-809f-8dd571cf40b4
type: regular
task:
id: 10bd9a97-5535-489e-809f-8dd571cf40b4
version: -1
name: na-sightline-mitigation-delete
description: Delete a given mitigation.
script: NetscoutArborSightline|||na-sightline-mitigation-delete
type: regular
iscommand: true
brand: NetscoutArborSightline
nexttasks:
'#none#':
- "10"
scriptarguments:
mitigation_id:
complex:
root: NASightline.Mitigation
filters:
- - operator: isEqualString
left:
value:
simple: NASightline.Mitigation.ongoing
iscontext: true
right:
value:
simple: "false"
accessor: id
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1590
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 3185,
"width": 380,
"x": 50,
"y": 50
}
}
}
inputs: []
fromversion: 5.5.0
outputs: []
```
|
```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.idm.engine.impl.persistence.entity;
import java.util.List;
import java.util.Map;
import org.flowable.common.engine.impl.persistence.entity.EntityManager;
/**
* @author Joram Barrez
*/
public interface IdentityInfoEntityManager extends EntityManager<IdentityInfoEntity> {
IdentityInfoEntity findUserInfoByUserIdAndKey(String userId, String key);
List<String> findUserInfoKeysByUserIdAndType(String userId, String type);
List<IdentityInfoEntity> findIdentityInfoByUserId(String userId);
void updateUserInfo(String userId, String userPassword, String type, String key, String value, String accountPassword, Map<String, String> accountDetails);
void deleteUserInfoByUserIdAndKey(String userId, String key);
}
```
|
```go
package rdsutils_test
import (
"regexp"
"testing"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/service/rds/rdsutils"
)
func TestBuildAuthToken(t *testing.T) {
cases := []struct {
endpoint string
region string
user string
expectedRegex string
}{
{
"path_to_url",
"us-west-2",
"mysqlUser",
`^prod-instance\.us-east-1\.rds\.amazonaws\.com:3306\?Action=connect.*?DBUser=mysqlUser.*`,
},
{
"prod-instance.us-east-1.rds.amazonaws.com:3306",
"us-west-2",
"mysqlUser",
`^prod-instance\.us-east-1\.rds\.amazonaws\.com:3306\?Action=connect.*?DBUser=mysqlUser.*`,
},
}
for _, c := range cases {
creds := credentials.NewStaticCredentials("AKID", "SECRET", "SESSION")
url, err := rdsutils.BuildAuthToken(c.endpoint, c.region, c.user, creds)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
if re, a := regexp.MustCompile(c.expectedRegex), url; !re.MatchString(a) {
t.Errorf("expect %s to match %s", re, a)
}
}
}
```
|
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Index | Node.js v12.18.3 Documentation</title>
<link rel="stylesheet" href="path_to_url">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/hljs.css">
<link rel="canonical" href="path_to_url">
</head>
<body class="alt apidoc" id="api-section-index">
<div id="content" class="clearfix">
<div id="column2" class="interior">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
Node.js
</a>
</div>
<ul>
<li><a href="documentation.html" class="nav-documentation">About these docs</a></li>
<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li>
</ul>
<div class="line"></div>
<ul>
<li><a href="assert.html" class="nav-assert">Assertion testing</a></li>
<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li>
<li><a href="buffer.html" class="nav-buffer">Buffer</a></li>
<li><a href="addons.html" class="nav-addons">C++ addons</a></li>
<li><a href="n-api.html" class="nav-n-api">C/C++ addons with N-API</a></li>
<li><a href="child_process.html" class="nav-child_process">Child processes</a></li>
<li><a href="cluster.html" class="nav-cluster">Cluster</a></li>
<li><a href="cli.html" class="nav-cli">Command line options</a></li>
<li><a href="console.html" class="nav-console">Console</a></li>
<li><a href="crypto.html" class="nav-crypto">Crypto</a></li>
<li><a href="debugger.html" class="nav-debugger">Debugger</a></li>
<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li>
<li><a href="dns.html" class="nav-dns">DNS</a></li>
<li><a href="domain.html" class="nav-domain">Domain</a></li>
<li><a href="esm.html" class="nav-esm">ECMAScript modules</a></li>
<li><a href="errors.html" class="nav-errors">Errors</a></li>
<li><a href="events.html" class="nav-events">Events</a></li>
<li><a href="fs.html" class="nav-fs">File system</a></li>
<li><a href="globals.html" class="nav-globals">Globals</a></li>
<li><a href="http.html" class="nav-http">HTTP</a></li>
<li><a href="http2.html" class="nav-http2">HTTP/2</a></li>
<li><a href="https.html" class="nav-https">HTTPS</a></li>
<li><a href="inspector.html" class="nav-inspector">Inspector</a></li>
<li><a href="intl.html" class="nav-intl">Internationalization</a></li>
<li><a href="modules.html" class="nav-modules">Modules</a></li>
<li><a href="net.html" class="nav-net">Net</a></li>
<li><a href="os.html" class="nav-os">OS</a></li>
<li><a href="path.html" class="nav-path">Path</a></li>
<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li>
<li><a href="policy.html" class="nav-policy">Policies</a></li>
<li><a href="process.html" class="nav-process">Process</a></li>
<li><a href="punycode.html" class="nav-punycode">Punycode</a></li>
<li><a href="querystring.html" class="nav-querystring">Query strings</a></li>
<li><a href="readline.html" class="nav-readline">Readline</a></li>
<li><a href="repl.html" class="nav-repl">REPL</a></li>
<li><a href="report.html" class="nav-report">Report</a></li>
<li><a href="stream.html" class="nav-stream">Stream</a></li>
<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li>
<li><a href="timers.html" class="nav-timers">Timers</a></li>
<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li>
<li><a href="tracing.html" class="nav-tracing">Trace events</a></li>
<li><a href="tty.html" class="nav-tty">TTY</a></li>
<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li>
<li><a href="url.html" class="nav-url">URL</a></li>
<li><a href="util.html" class="nav-util">Utilities</a></li>
<li><a href="v8.html" class="nav-v8">V8</a></li>
<li><a href="vm.html" class="nav-vm">VM</a></li>
<li><a href="wasi.html" class="nav-wasi">WASI</a></li>
<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li>
<li><a href="zlib.html" class="nav-zlib">Zlib</a></li>
</ul>
<div class="line"></div>
<ul>
<li><a href="path_to_url" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li>
</ul>
</div>
<div id="column1" data-id="index" class="interior">
<header>
<h1>Node.js v12.18.3 Documentation</h1>
<div id="gtoc">
<ul>
<li>
<a href="index.html" name="toc">Index</a>
</li>
<li>
<a href="all.html">View on single page</a>
</li>
<li>
<a href="index.json">View as JSON</a>
</li>
<li class="version-picker">
<a href="#">View another version <span>▼</span></a>
<ol class="version-picker"><li><a href="path_to_url">14.x</a></li>
<li><a href="path_to_url">13.x</a></li>
<li><a href="path_to_url">12.x <b>LTS</b></a></li>
<li><a href="path_to_url">11.x</a></li>
<li><a href="path_to_url">10.x <b>LTS</b></a></li>
<li><a href="path_to_url">9.x</a></li>
<li><a href="path_to_url">8.x</a></li>
<li><a href="path_to_url">7.x</a></li>
<li><a href="path_to_url">6.x</a></li>
<li><a href="path_to_url">5.x</a></li>
<li><a href="path_to_url">4.x</a></li>
<li><a href="path_to_url">0.12.x</a></li>
<li><a href="path_to_url">0.10.x</a></li></ol>
</li>
<li class="edit_on_github"><a href="path_to_url"><span class="github_icon"><svg height="16" width="16" viewBox="0 0 16.1 16.1" fill="currentColor"><path d="M8 0a8 8 0 0 0-2.5 15.6c.4 0 .5-.2.5-.4v-1.5c-2 .4-2.5-.5-2.7-1 0-.1-.5-.9-.8-1-.3-.2-.7-.6 0-.6.6 0 1 .6 1.2.8.7 1.2 1.9 1 2.4.7 0-.5.2-.9.5-1-1.8-.3-3.7-1-3.7-4 0-.9.3-1.6.8-2.2 0-.2-.3-1 .1-2 0 0 .7-.3 2.2.7a7.4 7.4 0 0 1 4 0c1.5-1 2.2-.8 2.2-.8.5 1.1.2 2 .1 2.1.5.6.8 1.3.8 2.2 0 3-1.9 3.7-3.6 4 .3.2.5.7.5 1.4v2.2c0 .2.1.5.5.4A8 8 0 0 0 16 8a8 8 0 0 0-8-8z"/></svg></span>Edit on GitHub</a></li>
</ul>
</div>
<hr>
</header>
<div id="toc">
<h2>Table of Contents</h2>
</div>
<div id="apicontent">
<!--
NB(chrisdickinson): if you move this file, be sure to update
tools/doc/html.js to point at the new location.
-->
<!--introduced_in=v0.10.0-->
<ul>
<li><a href="documentation.html">About these docs</a></li>
<li><a href="synopsis.html">Usage and example</a></li>
</ul>
<div class="line"></div>
<ul>
<li><a href="assert.html">Assertion testing</a></li>
<li><a href="async_hooks.html">Async hooks</a></li>
<li><a href="buffer.html">Buffer</a></li>
<li><a href="addons.html">C++ addons</a></li>
<li><a href="n-api.html">C/C++ addons with N-API</a></li>
<li><a href="child_process.html">Child processes</a></li>
<li><a href="cluster.html">Cluster</a></li>
<li><a href="cli.html">Command line options</a></li>
<li><a href="console.html">Console</a></li>
<li><a href="crypto.html">Crypto</a></li>
<li><a href="debugger.html">Debugger</a></li>
<li><a href="deprecations.html">Deprecated APIs</a></li>
<li><a href="dns.html">DNS</a></li>
<li><a href="domain.html">Domain</a></li>
<li><a href="esm.html">ECMAScript modules</a></li>
<li><a href="errors.html">Errors</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="fs.html">File system</a></li>
<li><a href="globals.html">Globals</a></li>
<li><a href="http.html">HTTP</a></li>
<li><a href="http2.html">HTTP/2</a></li>
<li><a href="https.html">HTTPS</a></li>
<li><a href="inspector.html">Inspector</a></li>
<li><a href="intl.html">Internationalization</a></li>
<li><a href="modules.html">Modules</a></li>
<li><a href="net.html">Net</a></li>
<li><a href="os.html">OS</a></li>
<li><a href="path.html">Path</a></li>
<li><a href="perf_hooks.html">Performance hooks</a></li>
<li><a href="policy.html">Policies</a></li>
<li><a href="process.html">Process</a></li>
<li><a href="punycode.html">Punycode</a></li>
<li><a href="querystring.html">Query strings</a></li>
<li><a href="readline.html">Readline</a></li>
<li><a href="repl.html">REPL</a></li>
<li><a href="report.html">Report</a></li>
<li><a href="stream.html">Stream</a></li>
<li><a href="string_decoder.html">String decoder</a></li>
<li><a href="timers.html">Timers</a></li>
<li><a href="tls.html">TLS/SSL</a></li>
<li><a href="tracing.html">Trace events</a></li>
<li><a href="tty.html">TTY</a></li>
<li><a href="dgram.html">UDP/datagram</a></li>
<li><a href="url.html">URL</a></li>
<li><a href="util.html">Utilities</a></li>
<li><a href="v8.html">V8</a></li>
<li><a href="vm.html">VM</a></li>
<li><a href="wasi.html">WASI</a></li>
<li><a href="worker_threads.html">Worker threads</a></li>
<li><a href="zlib.html">Zlib</a></li>
</ul>
<div class="line"></div>
<ul>
<li><a href="path_to_url">Code repository and issue tracker</a></li>
</ul>
</div>
</div>
</div>
<script src="assets/highlight.pack.js"></script>
<script>document.addEventListener('DOMContentLoaded', () => { hljs.initHighlightingOnLoad(); });</script>
</body>
</html>
```
|
Stop, drop and roll is a simple fire safety technique taught to children, emergency service personnel and industrial workers as a component of health and safety training in some of the anglophone world, particularly in North America. It involves three steps fire victims should follow to minimize injury in the event their clothing catches fire.
Procedure
Stop, drop and roll consists of three components:
Stop – The fire-affected person stops, ceasing any movement which may fan the flames or hamper those attempting to put the fire out.
Drop – The fire-affected person drops to the ground, lying down if possible, covering his face with his hands to avoid facial injury.
Roll – The fire-affected person rolls on the ground in an effort to extinguish the fire by depriving it of oxygen. If the victim is on a rug or one is nearby, he can roll the rug around himself to further extinguish the flame.
The effectiveness of stop, drop and roll may be further enhanced by combining it with other firefighting techniques, including the use of a fire extinguisher, dousing with water or fire beating one's skin.
Those teaching the technique are advised to teach children the proper circumstances for its use. As such, some advice pamphlets regarding the technique suggest reminding children that this technique is only to be used in the event of catching on fire and not when a smoke alarm is sounding in a situation that requires immediate evacuation. Furthermore, some advice on the technique advises the procedure of "stop, drop and roll and cover your face," as this will help to protect the face from any flames.
References
External links
Alisa Ann Ruch Burn Foundation
Are you Prepared?
Fire Safety guidelines Columbia University
Firefighting
First aid
Safety practices
|
```javascript
const borderRadius = '3px';
const fontFamily = 'Helvetica, Arial, sans-serif';
const styles = {
card: {
'background-color': 'white',
'border-radius': borderRadius,
'box-shadow': '0 1px 1px rgba(50,59,67,0.1)',
padding: '1.5em',
'font-family': fontFamily,
color: '#222',
'max-width': '20em',
},
row: {
width: '100%',
display: 'flex',
'flex-direction': 'row',
},
avatar: {
'border-radius': borderRadius,
height: '6em',
width: '6em',
},
information: {
'padding-left': '1.5em',
display: 'flex',
'flex-direction': 'column',
'justify-content': 'center',
},
name: {
'font-size': '1.5em',
'font-family': fontFamily,
margin: 0,
color: '#222',
},
username: {
'font-size': '1em',
'font-family': fontFamily,
'font-weight': 300,
margin: 0,
color: '#999',
},
paragraph: {
'font-size': '1em',
margin: '1.25em 0',
'font-family': fontFamily,
color: '#222',
},
buttonWrapper: {
display: 'flex',
width: '100%',
'align-items': 'center',
'justify-content': 'center',
},
};
export default styles;
```
|
Since 1940, Ilham has been a subscription-based magazine of Indo-Pak, it focuses on literature, religion, politics and youth, along with articles on current affairs. It was founded by Syed Masood Hassan Shihab (Shihab Dehlvi) in 1940 at Delhi, India.
Ilham is published by Shihab Dehlvi Academy, earlier it was published by Maktaba Ilham established by Shihab Dehlvi is also being gained the respect of literary and religious circles.
Maktaba Ilham have been merged in Shihab Dehlvi Academy, consequently Ilham also been published by Shihab Dehlvi Academy. Rather the books of maktaba Ilham will also be published under the auspices of Shihab Dehlvi Academy.
Ilham is subscription-based magazine intellectual publication in which, youth, politics, religion, social reform and civil action, along with articles on current affairs and reader feedback are published. Ilham has been published on a monthly basis by Shihab Dehlvi Academy, Bahawalpur and its circulation reaches out to all parts of the country.
History and profile
It was first time published in May 1940 at Delhi (India) with the name Ilham Delhi by his founder Syed Masood Hassan Shihab Dehlvi as political, general, literature magazine but his main motive is to promote "Sufism concept". It was going to published all over India till Independence day, 14 Aug 1947 and after Indo-Pak separation, it published again with the name Ilham Bahawalpur and since that period this magazine is publishing regularly. In the long journey of 70 years it suffers with a lot of ups and downs but he faces impressively and also makes innovations according to need.
Ilham is Pakistan's most admired and historic magazine. It completed 75 years of publishing.
See more
A number of prominent literary personalities remain attached with Ilham, e.g., its founder Shihab Dehlvi was a poet, writer and historian of Bahawalpur, its current Editor, Shahid Rizvi was an academician and historian. He retired as Professor of History from the Islamia University of Bahawalpur. Shaheer H. Rizvi, administrative editor is a social entrepreneur and educationist from Bahawalpur, Pakistan, he remains affiliated with The Islamia University of Bahawalpur, Khwaja Fareed University of Engineering and Information Technology, Rahim Yar Khan, Children's Global Network - Pakistan, NCBAE, Shihab Dehlvi Academy, Urdu Academy, Xpert Solutions Inc., and Gosha e Zehni Taskeen.
References
External links
1940 establishments in India
Islamic magazines
Literary magazines published in India
Magazines established in 1940
Magazines published in Delhi
Sufi literature
|
Anne Hugon (born 1965) is a French historian specialising in the history of African exploration.
Career
Anne Hugon has worked for several years on the history of European exploration of Africa. She taught at the University of Lyon II and wrote a thesis on missionaries in Africa in the early 1990s.
She is currently a maître de conférences at the Pantheon-Sorbonne University where she is teaching 19th–20th century African history. She is also a member of the Institut des mondes africains, a joint interdisciplinary research unit associating with the French National Centre for Scientific Research.
Her studies and research themes on Africa include colonial history of Ghana, social history, history of colonisation, history of women and gender, history of medicine and history of cultural changes. She has authored several articles and books on the subject. She wrote for the "Découvertes Gallimard" collection, an illustrated pocket book published in 1991 and has been translated into ten languages, including English. The book has been adapted into a documentary film titled ("Mystery of the Sources of the Nile") in 2003. A sequel to this book, , released in 1994, has also been made into a documentary film with the same title.
In addition to articles and books authored by herself, Hugon has also translated the English explorer Mary Kingsley's account of her travels into French.
Selected publications
L'Afrique des explorateurs : Vers les sources du Nil, collection « Découvertes Gallimard » (nº 117), série Histoire. Éditions Gallimard, 1991
US edition – The Exploration of Africa: From Cairo to the Cape, "Abrams Discoveries" series. Harry N. Abrams, 1993
UK edition – The Exploration of Africa: From Cairo to the Cape, 'New Horizons' series. Thames & Hudson, 1993
Vers Tombouctou : L'Afrique des explorateurs II, collection « Découvertes Gallimard » (nº 216), série Histoire. Éditions Gallimard, 1994
Introduction à l'histoire de l'Afrique contemporaine, Armand Colin, 1998
Histoire des femmes en situation coloniale : Afrique et Asie, XXe siècle, Karthala, 2004
Un protestantisme africain au XIXe siècle : L'implantation du méthodisme en Gold Coast (Ghana), 1835–1874, Karthala, 2007
Être mère en situation coloniale (Gold Coast, années 1910-1950). Paris: Éditions de la Sorbonne, 2020.
Translation
Mary Kingsley, Une odyssée africaine : une exploratrice victorienne en Afrique de l'ouest, 1893–95, Phébus, 1992
References
External links
1965 births
French Africanists
Historians of Africa
20th-century French historians
French women historians
21st-century French historians
Living people
20th-century French women
21st-century French women
|
```javascript
const dotenvExpand = require('dotenv-expand');
dotenvExpand(require('dotenv').config({ path: '../../.env'/*, debug: true*/}));
const mix = require('laravel-mix');
require('laravel-mix-merge-manifest');
mix.setPublicPath('../../public').mergeManifest();
mix.js(__dirname + '/Resources/assets/js/app.js', 'js/imagelibary.js')
.sass( __dirname + '/Resources/assets/sass/app.scss', 'css/imagelibary.css');
if (mix.inProduction()) {
mix.version();
}
```
|
```c
/* filter_neon_intrinsics.c - NEON optimised filter functions
*
* Written by James Yu <james.yu at linaro.org>, October 2013.
* Based on filter_neon.S, written by Mans Rullgard, 2011.
*
* Last changed in libpng 1.6.16 [December 22, 2014]
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
* and license in png.h
*/
#include "../pngpriv.h"
#ifdef PNG_READ_SUPPORTED
/* This code requires -mfpu=neon on the command line: */
#if PNG_ARM_NEON_IMPLEMENTATION == 1 /* intrinsics code from pngpriv.h */
#include <arm_neon.h>
/* libpng row pointers are not necessarily aligned to any particular boundary,
* however this code will only work with appropriate alignment. arm/arm_init.c
* checks for this (and will not compile unless it is done). This code uses
* variants of png_aligncast to avoid compiler warnings.
*/
#define png_ptr(type,pointer) png_aligncast(type *,pointer)
#define png_ptrc(type,pointer) png_aligncastconst(const type *,pointer)
/* The following relies on a variable 'temp_pointer' being declared with type
* 'type'. This is written this way just to hide the GCC strict aliasing
* warning; note that the code is safe because there never is an alias between
* the input and output pointers.
*/
#define png_ldr(type,pointer)\
(temp_pointer = png_ptr(type,pointer), *temp_pointer)
#if PNG_ARM_NEON_OPT > 0
void
png_read_filter_row_up_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_bytep rp_stop = row + row_info->rowbytes;
png_const_bytep pp = prev_row;
for (; rp < rp_stop; rp += 16, pp += 16)
{
uint8x16_t qrp, qpp;
qrp = vld1q_u8(rp);
qpp = vld1q_u8(pp);
qrp = vaddq_u8(qrp, qpp);
vst1q_u8(rp, qrp);
}
}
void
png_read_filter_row_sub3_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_bytep rp_stop = row + row_info->rowbytes;
uint8x16_t vtmp = vld1q_u8(rp);
uint8x8x2_t *vrpt = png_ptr(uint8x8x2_t, &vtmp);
uint8x8x2_t vrp = *vrpt;
uint8x8x4_t vdest;
vdest.val[3] = vdup_n_u8(0);
for (; rp < rp_stop;)
{
uint8x8_t vtmp1, vtmp2;
uint32x2_t *temp_pointer;
vtmp1 = vext_u8(vrp.val[0], vrp.val[1], 3);
vdest.val[0] = vadd_u8(vdest.val[3], vrp.val[0]);
vtmp2 = vext_u8(vrp.val[0], vrp.val[1], 6);
vdest.val[1] = vadd_u8(vdest.val[0], vtmp1);
vtmp1 = vext_u8(vrp.val[1], vrp.val[1], 1);
vdest.val[2] = vadd_u8(vdest.val[1], vtmp2);
vdest.val[3] = vadd_u8(vdest.val[2], vtmp1);
vtmp = vld1q_u8(rp + 12);
vrpt = png_ptr(uint8x8x2_t, &vtmp);
vrp = *vrpt;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[0]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[1]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[2]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[3]), 0);
rp += 3;
}
PNG_UNUSED(prev_row)
}
void
png_read_filter_row_sub4_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_bytep rp_stop = row + row_info->rowbytes;
uint8x8x4_t vdest;
vdest.val[3] = vdup_n_u8(0);
for (; rp < rp_stop; rp += 16)
{
uint32x2x4_t vtmp = vld4_u32(png_ptr(uint32_t,rp));
uint8x8x4_t *vrpt = png_ptr(uint8x8x4_t,&vtmp);
uint8x8x4_t vrp = *vrpt;
uint32x2x4_t *temp_pointer;
vdest.val[0] = vadd_u8(vdest.val[3], vrp.val[0]);
vdest.val[1] = vadd_u8(vdest.val[0], vrp.val[1]);
vdest.val[2] = vadd_u8(vdest.val[1], vrp.val[2]);
vdest.val[3] = vadd_u8(vdest.val[2], vrp.val[3]);
vst4_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2x4_t,&vdest), 0);
}
PNG_UNUSED(prev_row)
}
void
png_read_filter_row_avg3_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_const_bytep pp = prev_row;
png_bytep rp_stop = row + row_info->rowbytes;
uint8x16_t vtmp;
uint8x8x2_t *vrpt;
uint8x8x2_t vrp;
uint8x8x4_t vdest;
vdest.val[3] = vdup_n_u8(0);
vtmp = vld1q_u8(rp);
vrpt = png_ptr(uint8x8x2_t,&vtmp);
vrp = *vrpt;
for (; rp < rp_stop; pp += 12)
{
uint8x8_t vtmp1, vtmp2, vtmp3;
uint8x8x2_t *vppt;
uint8x8x2_t vpp;
uint32x2_t *temp_pointer;
vtmp = vld1q_u8(pp);
vppt = png_ptr(uint8x8x2_t,&vtmp);
vpp = *vppt;
vtmp1 = vext_u8(vrp.val[0], vrp.val[1], 3);
vdest.val[0] = vhadd_u8(vdest.val[3], vpp.val[0]);
vdest.val[0] = vadd_u8(vdest.val[0], vrp.val[0]);
vtmp2 = vext_u8(vpp.val[0], vpp.val[1], 3);
vtmp3 = vext_u8(vrp.val[0], vrp.val[1], 6);
vdest.val[1] = vhadd_u8(vdest.val[0], vtmp2);
vdest.val[1] = vadd_u8(vdest.val[1], vtmp1);
vtmp2 = vext_u8(vpp.val[0], vpp.val[1], 6);
vtmp1 = vext_u8(vrp.val[1], vrp.val[1], 1);
vtmp = vld1q_u8(rp + 12);
vrpt = png_ptr(uint8x8x2_t,&vtmp);
vrp = *vrpt;
vdest.val[2] = vhadd_u8(vdest.val[1], vtmp2);
vdest.val[2] = vadd_u8(vdest.val[2], vtmp3);
vtmp2 = vext_u8(vpp.val[1], vpp.val[1], 1);
vdest.val[3] = vhadd_u8(vdest.val[2], vtmp2);
vdest.val[3] = vadd_u8(vdest.val[3], vtmp1);
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[0]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[1]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[2]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[3]), 0);
rp += 3;
}
}
void
png_read_filter_row_avg4_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_bytep rp_stop = row + row_info->rowbytes;
png_const_bytep pp = prev_row;
uint8x8x4_t vdest;
vdest.val[3] = vdup_n_u8(0);
for (; rp < rp_stop; rp += 16, pp += 16)
{
uint32x2x4_t vtmp;
uint8x8x4_t *vrpt, *vppt;
uint8x8x4_t vrp, vpp;
uint32x2x4_t *temp_pointer;
vtmp = vld4_u32(png_ptr(uint32_t,rp));
vrpt = png_ptr(uint8x8x4_t,&vtmp);
vrp = *vrpt;
vtmp = vld4_u32(png_ptrc(uint32_t,pp));
vppt = png_ptr(uint8x8x4_t,&vtmp);
vpp = *vppt;
vdest.val[0] = vhadd_u8(vdest.val[3], vpp.val[0]);
vdest.val[0] = vadd_u8(vdest.val[0], vrp.val[0]);
vdest.val[1] = vhadd_u8(vdest.val[0], vpp.val[1]);
vdest.val[1] = vadd_u8(vdest.val[1], vrp.val[1]);
vdest.val[2] = vhadd_u8(vdest.val[1], vpp.val[2]);
vdest.val[2] = vadd_u8(vdest.val[2], vrp.val[2]);
vdest.val[3] = vhadd_u8(vdest.val[2], vpp.val[3]);
vdest.val[3] = vadd_u8(vdest.val[3], vrp.val[3]);
vst4_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2x4_t,&vdest), 0);
}
}
static uint8x8_t
paeth(uint8x8_t a, uint8x8_t b, uint8x8_t c)
{
uint8x8_t d, e;
uint16x8_t p1, pa, pb, pc;
p1 = vaddl_u8(a, b); /* a + b */
pc = vaddl_u8(c, c); /* c * 2 */
pa = vabdl_u8(b, c); /* pa */
pb = vabdl_u8(a, c); /* pb */
pc = vabdq_u16(p1, pc); /* pc */
p1 = vcleq_u16(pa, pb); /* pa <= pb */
pa = vcleq_u16(pa, pc); /* pa <= pc */
pb = vcleq_u16(pb, pc); /* pb <= pc */
p1 = vandq_u16(p1, pa); /* pa <= pb && pa <= pc */
d = vmovn_u16(pb);
e = vmovn_u16(p1);
d = vbsl_u8(d, b, c);
e = vbsl_u8(e, a, d);
return e;
}
void
png_read_filter_row_paeth3_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_const_bytep pp = prev_row;
png_bytep rp_stop = row + row_info->rowbytes;
uint8x16_t vtmp;
uint8x8x2_t *vrpt;
uint8x8x2_t vrp;
uint8x8_t vlast = vdup_n_u8(0);
uint8x8x4_t vdest;
vdest.val[3] = vdup_n_u8(0);
vtmp = vld1q_u8(rp);
vrpt = png_ptr(uint8x8x2_t,&vtmp);
vrp = *vrpt;
for (; rp < rp_stop; pp += 12)
{
uint8x8x2_t *vppt;
uint8x8x2_t vpp;
uint8x8_t vtmp1, vtmp2, vtmp3;
uint32x2_t *temp_pointer;
vtmp = vld1q_u8(pp);
vppt = png_ptr(uint8x8x2_t,&vtmp);
vpp = *vppt;
vdest.val[0] = paeth(vdest.val[3], vpp.val[0], vlast);
vdest.val[0] = vadd_u8(vdest.val[0], vrp.val[0]);
vtmp1 = vext_u8(vrp.val[0], vrp.val[1], 3);
vtmp2 = vext_u8(vpp.val[0], vpp.val[1], 3);
vdest.val[1] = paeth(vdest.val[0], vtmp2, vpp.val[0]);
vdest.val[1] = vadd_u8(vdest.val[1], vtmp1);
vtmp1 = vext_u8(vrp.val[0], vrp.val[1], 6);
vtmp3 = vext_u8(vpp.val[0], vpp.val[1], 6);
vdest.val[2] = paeth(vdest.val[1], vtmp3, vtmp2);
vdest.val[2] = vadd_u8(vdest.val[2], vtmp1);
vtmp1 = vext_u8(vrp.val[1], vrp.val[1], 1);
vtmp2 = vext_u8(vpp.val[1], vpp.val[1], 1);
vtmp = vld1q_u8(rp + 12);
vrpt = png_ptr(uint8x8x2_t,&vtmp);
vrp = *vrpt;
vdest.val[3] = paeth(vdest.val[2], vtmp2, vtmp3);
vdest.val[3] = vadd_u8(vdest.val[3], vtmp1);
vlast = vtmp2;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[0]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[1]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[2]), 0);
rp += 3;
vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val[3]), 0);
rp += 3;
}
}
void
png_read_filter_row_paeth4_neon(png_row_infop row_info, png_bytep row,
png_const_bytep prev_row)
{
png_bytep rp = row;
png_bytep rp_stop = row + row_info->rowbytes;
png_const_bytep pp = prev_row;
uint8x8_t vlast = vdup_n_u8(0);
uint8x8x4_t vdest;
vdest.val[3] = vdup_n_u8(0);
for (; rp < rp_stop; rp += 16, pp += 16)
{
uint32x2x4_t vtmp;
uint8x8x4_t *vrpt, *vppt;
uint8x8x4_t vrp, vpp;
uint32x2x4_t *temp_pointer;
vtmp = vld4_u32(png_ptr(uint32_t,rp));
vrpt = png_ptr(uint8x8x4_t,&vtmp);
vrp = *vrpt;
vtmp = vld4_u32(png_ptrc(uint32_t,pp));
vppt = png_ptr(uint8x8x4_t,&vtmp);
vpp = *vppt;
vdest.val[0] = paeth(vdest.val[3], vpp.val[0], vlast);
vdest.val[0] = vadd_u8(vdest.val[0], vrp.val[0]);
vdest.val[1] = paeth(vdest.val[0], vpp.val[1], vpp.val[0]);
vdest.val[1] = vadd_u8(vdest.val[1], vrp.val[1]);
vdest.val[2] = paeth(vdest.val[1], vpp.val[2], vpp.val[1]);
vdest.val[2] = vadd_u8(vdest.val[2], vrp.val[2]);
vdest.val[3] = paeth(vdest.val[2], vpp.val[3], vpp.val[2]);
vdest.val[3] = vadd_u8(vdest.val[3], vrp.val[3]);
vlast = vpp.val[3];
vst4_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2x4_t,&vdest), 0);
}
}
#endif /* PNG_ARM_NEON_OPT > 0 */
#endif /* PNG_ARM_NEON_IMPLEMENTATION == 1 (intrinsics) */
#endif /* READ */
```
|
```smalltalk
////////////////////////////////////////////////////////////////////////////////////////////////////
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice, this list of conditions
// and the following disclaimer.
//
// - 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.
//
// - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
// or promote products derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT OWNER OR
// 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.
////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The above software in this distribution may have been modified by THL A29 Limited ("Tencent Modifications").
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using Behaviac.Design.Properties;
namespace Behaviac.Design.Attributes
{
[AttributeUsage(/*AttributeTargets.Field | */AttributeTargets.Property)]
public class DesignerString : DesignerProperty
{
/// <summary>
/// Creates a new designer attribute for handling a string value.
/// </summary>
/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
/// <param name="description">The description shown in the property editor for the property.</param>
/// <param name="category">The category shown in the property editor for the property.</param>
/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
/// <param name="flags">Defines the designer flags stored for the property.</param>
public DesignerString(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
: base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerStringEditor), null)
{
}
public static string trimQuotes(string text)
{
char[] toTrim = { '"' };
return text.Trim(toTrim);
}
public override string GetDisplayValue(object obj)
{
if (obj == null)
{
return string.Empty;
}
return trimQuotes((string)obj);
}
public override string GetExportValue(object owner, object obj)
{
if (obj == null)
{
return "";
}
if (Plugin.IsCharType(obj.GetType()))
{
return obj.ToString();
}
string s = (string)obj;
if (string.IsNullOrEmpty(s))
{
return "";
}
//return string.Format("\"{0}\"", s);
return trimQuotes(s);
}
public override object FromStringValue(List<Nodes.Node.ErrorCheck> result, DefaultObject node, object parentObject, Type type, string str)
{
if (type == typeof(string))
{
return trimQuotes(str);
}
else if (Plugin.IsCharType(type))
{
if (str.Length >= 1)
{
char r = str[0];
return r;
}
//return "";
return 'A';
}
throw new Exception(Resources.ExceptionDesignerAttributeInvalidType);
}
}
}
```
|
```ruby
require 'spec_helper'
require 'cfn-model'
require 'cfn-nag/custom_rules/EMRClusterSecurityConfigurationAttachedRule'
describe EMRClusterSecurityConfigurationAttachedRule do
describe 'AWS::EMR::Cluster' do
context 'when SecurityConfiguration property is set and config exists in the same template' do
it 'does not return an offending logical resource id' do
cfn_model = CfnParser.new.parse read_test_template('yaml/emr_cluster/emr_cluster_with_properly_configured_encryption.yml')
actual_logical_resource_ids = EMRClusterSecurityConfigurationAttachedRule.new.audit_impl cfn_model
expect(actual_logical_resource_ids).to eq []
end
end
context 'when SecurityConfiguration property is not set or is external' do
it 'returns an offending logical resource id' do
cfn_model = CfnParser.new.parse read_test_template('yaml/emr_cluster/emr_cluster_without_security_configuration.yml')
actual_logical_resource_ids = EMRClusterSecurityConfigurationAttachedRule.new.audit_impl cfn_model
expect(actual_logical_resource_ids).to eq %w[
EMRClusterWithoutSecurityConfiguration
EMRClusterWithExternalSecurityConfiguration
]
end
end
end
end
```
|
```objective-c
/*
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef VIDEO_ALIGNMENT_ADJUSTER_H_
#define VIDEO_ALIGNMENT_ADJUSTER_H_
#include "api/video_codecs/video_encoder.h"
#include "api/video_codecs/video_encoder_config.h"
namespace webrtc {
class AlignmentAdjuster {
public:
// Returns the resolution alignment requested by the encoder (i.e
// |EncoderInfo::requested_resolution_alignment| which ensures that delivered
// frames to the encoder are divisible by this alignment).
//
// If |EncoderInfo::apply_alignment_to_all_simulcast_layers| is enabled, the
// alignment will be adjusted to ensure that each simulcast layer also is
// divisible by |requested_resolution_alignment|. The configured scale factors
// |scale_resolution_down_by| may be adjusted to a common multiple to limit
// the alignment value to avoid largely cropped frames and possibly with an
// aspect ratio far from the original.
// Note: |max_layers| currently only taken into account when using default
// scale factors.
static int GetAlignmentAndMaybeAdjustScaleFactors(
const VideoEncoder::EncoderInfo& info,
VideoEncoderConfig* config,
absl::optional<size_t> max_layers);
};
} // namespace webrtc
#endif // VIDEO_ALIGNMENT_ADJUSTER_H_
```
|
Bolivia–Russia relations () are the relations between the two countries, Bolivia and Russia. Russia has an embassy in La Paz, and Bolivia has an embassy in Moscow.
Background
The Soviet Union established diplomatic relations with Bolivia on April 18, 1945.
Current
With Bolivia the focus on relations with Russia is mainly economic, as opposed to political and strategic, as an agreement to invest in Bolivia's natural gas fields shows. It is seen to "help Latin America...[as it] expands Latin America's economic opportunities, diversifies its relationships...that's healthy."
In September 2008 Gazprom, the Russian energy company of which the state holds a controlling stake, signed an agreement worth US$4.5 billion to explore for gas in Bolivia. In December 2008, Russia invested US$4 million in a study on the Bolivian gas industry, with hopes of opening a joint Russian-Bolivian center on gas exploration sometime in 2009.
In March 2009, Russia and Bolivia signed a protocol agreement aimed at strengthening democracy in each nation. In February 2009 President Evo Morales visited Moscow. His trip was the first ever by a Bolivian head of state to the Russian capital. During the visit, both leaders signed an agreement strengthening energy and military ties between the two nations in addition to strengthening counter narcotics co-operation. In May 2009, Bolivia's Viceminister of Foreign Affairs said that Bolivia would be making a multimilliondollar arms and transportation purchase from Russia in efforts to combat drug smuggling and production in Bolivia.
In October 2009, President Evo Morales announce the plans to construct a technical support and repair facility for Russian aircraft in Bolivia that would be built at a former U.S. base near the town of Chimore in the center of the country.
Along with other Latin American countries, Bolivia has not sided with Europe on the Russia-Ukraine War.
References
Russia
Bilateral relations of Russia
|
Ashuelot Pond is a water body located in Sullivan County in western New Hampshire, United States, in the town of Washington. It is situated along the upper reaches of the Ashuelot River, a tributary of the Connecticut River.
The pond is good for boating, fishing, and wildlife watching. Personal water craft with a capacity of two passengers or less are prohibited by the state of New Hampshire. The pond mostly has a muddy bottom.
The lake is classified as a warmwater fishery, with observed species including smallmouth bass, largemouth bass, chain pickerel, yellow perch, pumpkinseed, horned pout, and American eel.
Pond associations include the Ashuelot Pond Association and the LAE Association.
See also
List of lakes in New Hampshire
External links
Map of the pond
References
Lakes of Sullivan County, New Hampshire
New Hampshire placenames of Native American origin
|
Raelene Frances, (born 1955) is an Australian historian and academic at the Australian National University.
Early life and education
Frances was born in Collie, Western Australia as Raelene Frances Anderson in 1955. She left Collie Senior High School in 1972, having been dux that year and winning a University of Western Australia Exhibition in History and a Commonwealth scholarship.
Frances graduated from the University of Western Australia with a Bachelor of Arts with Honours in 1978 and completed her Master of Arts two years later at the same university, her thesis being Prostitution in Perth and Fremantle and on the Eastern Goldfields, 1895–1939. She subsequently gained a Doctor of Philosophy from Monash University in 1989 with her thesis, The Politics of Work: Case Studies of Three Victorian Industries, 1880–1939, which was the basis of her first book.
Career
Frances lectured at Murdoch University in 1987–88 before moving to the University of Auckland, where she spent three years as lecturer. In 1992 she was appointed lecturer at the University of New South Wales, later being promoted senior lecturer and then associate professor and head of the School of History. From 1987 to 1999 she shared all of her academic appointments with her partner, Bruce Scates. In 2007 she was appointed Dean of Arts and professor of history at Monash University.
Frances became dean of College of the Arts and Social Sciences and professor of history at the Australian National University in 2017.
In addition to her university positions, Frances has been a council member of the National Museum of Australia and board member of the Council for the Arts, Humanities and Social Sciences and of the Australasian Council of Deans of Arts, Social Sciences and Humanities. A member of the Australian Historical Association, from 2002 to 2004 she was a member of its Federal Executive. Other professional memberships include the History Educators Network of Australia and the Australian Society for the Study of Labour History, of which she was Federal President from 2003 to 2007. From 1998-2000 she was the President of the University of New South Wales Branch of he National Tertiary Education Union and from 2000-2004 a member of the University of New South Wales Council. She serves on numerous scholarship selection committees and chairs the Tuckwell Scholarship Selection Committee.
Awards and recognition
Frances was elected a Fellow of the Academy of the Social Sciences in Australia (FASSA) in 2011. She was appointed Member of the Order of Australia (AM) in the 2020 Australia Day Honours for “significant service to history studies as a teacher, researcher and author”. In 2000 she received the Edna Ryan Award for services to women workers. In 2008 she received an Award for Excellence in Academia from the Australian Intercultural Society for promoting interfaith teaching, research and dialogue. In 2010 the Mayor of Bandung, Indonesia, gave her an Appreciation Award for strengthening educational and cultural ties between Bandung and Australia.
Frances' first book, The Politics of Work, won the Hancock Prize, awarded by the Australian Historical Association, while Women and the Great War won the New South Wales Premier's Children's History Prize in 1998 and Selling Sex was shortlisted for the Ernest Scott History Prize. In 2015 she received the Labour History Prize for the best article in the journal, Labour History, in the two years 2013-14, for ‘Authentic Leaders: Women and Leadership in Australian Unions before World War II’
Frances has been recognised as an outstanding teacher through university, state and national teaching awards, all of which have been shared with her partner, Bruce Scates.
Personal
Frances is married to fellow historian Bruce Scates, with whom she has written a number of journal articles and books and with whom she shares a number of teaching excellence awards.
Bibliography
Author
Editor
References
External links
Rae Frances, Women’s Mobilisation for War (Australia), in: 1914-1918-online. International Encyclopedia of the First World War
1955 births
Living people
Australian Book Review people
20th-century Australian historians
Academic staff of the Australian National University
Fellows of the Academy of the Social Sciences in Australia
Members of the Order of Australia
Monash University alumni
Academic staff of Monash University
Academic staff of Murdoch University
People from Collie, Western Australia
Academic staff of the University of Auckland
Academic staff of the University of New South Wales
University of Western Australia alumni
21st-century Australian historians
Writers from Western Australia
|
The 2008 Asian Youth Boys Volleyball Championship was held in Sugathadasa Indoor Stadium, Colombo, Sri Lanka from 14 to 22 October 2008.
Pools composition
The teams are seeded based on their final ranking at the 2007 Asian Youth Boys Volleyball Championship.
* Withdrew
Preliminary round
Pool A
Pool B
Classification 9th–11th
Semifinals
9th place
Final round
Championship
Quarterfinals
5th–8th semifinals
Semifinals
7th place
5th place
3rd place
Final
Final standing
Awards
MVP: Farhad Salafzoun
Best scorer: Pouria Fayazi
Best spiker: Dai Qingyao
Best blocker: Saman Faezi
Best server: Song Jianwei
Best setter: Kosuke Tomonaga
Best libero: Taiki Tsuruda
References
www.asianvolleyball.org
External links
FIVB
A
V
V
Asian Boys' U18 Volleyball Championship
|
Strictly Sexual is a 2008 comedy film directed by Joel Viertel, written by Stevie Long, and starring Amber Benson, Johann Urb, Kristen Kerr, Stevie Long, and Trevor Murphy.
Synopsis
In Los Angeles, the wealthy aspirant writer Donna and her best friend (also aspirant designer) Christi Ann are bored of relationships and decide to chase two escorts in a bar for a one-night stand. Meanwhile, construction workers and best friends, Stanny and Joe, come from New York but can't find jobs in Los Angeles. Without money, the guys decide to go to a fancy bar to drink and leave the place without paying the bill. Donna and Christi Ann meet Stanny and Joe and invite them home believing they are gigolos. After a night of sex, the women discover the misunderstanding and that the men are, indeed, unemployed construction workers. The women offer to have the men stay in their swimming pool cabana, furnishing them with beer and food while the boys search for jobs. In return, they would be their on-call "boy-toys" in a strictly sexual relationship. During the ensuing months, the couples become closer and change their feelings and behaviors with the development and growing of their relationships as the couples begin to develop romantic feelings.
Cast
Amber Benson as Donna
Johann Urb as Joe
Kristen Kerr as Christi Ann
Stevie Long as Stanny
Trevor Murphy as Damian
Brooke Allen as Cassandra
Elizabeth Wood as Fabric Woman
Ashley Hinson as Boutique Employee
Shravan Kambam as Niki
Scott Weston as Scott
Rick Ramnath as Rich
Lindsay Frame as Complimentary Woman
Carlos Conrado Sanchez as Carlos
Justin Phillips as Justin
Mark Radcliffe as Mark
Business
NPR reported that Strictly Sexual was the most-watched film of all time on Hulu.com as of February 2010.
TV series
In 2011, Hulu produced a six-episode spin-off series, Strictly Sexual: The Series, featuring some of the original cast.
References
External links
Strictly Sexual at Hulu
2008 films
2000s English-language films
American comedy films
2000s American films
|
```c++
#include "address_space_usage_stats.h"
#include <ostream>
namespace proton {
AddressSpaceUsageStats::AddressSpaceUsageStats(const vespalib::AddressSpace & usage)
: _usage(usage),
_attributeName(),
_component_name(),
_subDbName()
{
}
AddressSpaceUsageStats::~AddressSpaceUsageStats() = default;
void
AddressSpaceUsageStats::merge(const vespalib::AddressSpace &usage,
const std::string &attributeName,
const std::string &component_name,
const std::string &subDbName)
{
if (attributeName.empty() || usage.usage() > _usage.usage()) {
_usage = usage;
_attributeName = attributeName;
_component_name = component_name;
_subDbName = subDbName;
}
}
std::ostream&
operator<<(std::ostream& out, const AddressSpaceUsageStats& rhs)
{
out << "{usage=" << rhs.getUsage() <<
", attribute_name=" << rhs.getAttributeName() <<
", component_name=" << rhs.get_component_name() <<
", subdb_name=" << rhs.getSubDbName() << "}";
return out;
}
} // namespace proton
```
|
Palazzo Tognetti is a palace in Grosseto, Italy.
It is an Art Nouveau style building on three floors located along Corso Carducci.
History
The palace was commissioned by the Tognetti brothers who owned a news agency in Grosseto. It was designed by engineer-artist Giuseppe Luciani and inaugurated in 1910.
It has richly decorated façades and it is considered one of the best examples of Stile Liberty in Grosseto and southern Tuscany.
References
Bibliography
See also
Art Nouveau
Grosseto
External links
Tognetti
Art Nouveau architecture in Italy
Houses completed in 1910
|
```ruby
# frozen_string_literal: true
require "spec_helper"
describe "Edit initiative" do
let(:organization) { create(:organization) }
let(:user) { create(:user, :confirmed, organization:) }
let(:initiative_title) { translated(initiative.title) }
let(:new_title) { "This is my initiative new title" }
let!(:initiative_type) { create(:initiatives_type, :attachments_enabled, :online_signature_enabled, organization:) }
let!(:scoped_type) { create(:initiatives_type_scope, type: initiative_type) }
let!(:other_initiative_type) { create(:initiatives_type, :attachments_enabled, organization:) }
let!(:other_scoped_type) { create(:initiatives_type_scope, type: initiative_type) }
let(:initiative_path) { decidim_initiatives.initiative_path(initiative) }
let(:edit_initiative_path) { decidim_initiatives.edit_initiative_path(initiative) }
shared_examples "manage update" do
it "can be updated" do
visit initiative_path
click_on("Edit")
expect(page).to have_content "Edit Initiative"
within "form.edit_initiative" do
fill_in :initiative_title, with: new_title
click_on "Update"
end
expect(page).to have_content(new_title)
end
end
before do
switch_to_host(organization.host)
login_as user, scope: :user
end
describe "when user is initiative author" do
let(:initiative) { create(:initiative, :created, author: user, scoped_type:, organization:) }
it_behaves_like "manage update"
it "does not show the header's edit link" do
visit initiative_path
within ".main-bar" do
expect(page).to have_no_link("Edit")
end
end
it "does not have status field" do
expect(page).to have_no_xpath("//select[@id='initiative_state']")
end
it "allows adding attachments" do
visit initiative_path
click_on("Edit")
expect(page).to have_content "Edit Initiative"
expect(initiative.reload.attachments.count).to eq(0)
dynamically_attach_file(:initiative_documents, Decidim::Dev.asset("Exampledocument.pdf"))
dynamically_attach_file(:initiative_photos, Decidim::Dev.asset("avatar.jpg"))
within "form.edit_initiative" do
click_on "Update"
end
expect(initiative.reload.documents.count).to eq(1)
expect(initiative.photos.count).to eq(1)
expect(initiative.attachments.count).to eq(2)
end
context "when initiative is published" do
let(:initiative) { create(:initiative, author: user, scoped_type:, organization:) }
it "cannot be updated" do
visit decidim_initiatives.initiative_path(initiative)
expect(page).to have_no_content "Edit initiative"
visit edit_initiative_path
expect(page).to have_content("not authorized")
end
end
end
describe "when author is a committee member" do
let(:initiative) { create(:initiative, :created, scoped_type:, organization:) }
before do
create(:initiatives_committee_member, user:, initiative:)
end
it_behaves_like "manage update"
end
describe "when user is admin" do
let(:user) { create(:user, :confirmed, :admin, organization:) }
let(:initiative) { create(:initiative, :created, scoped_type:, organization:) }
it_behaves_like "manage update"
end
describe "when author is not a committee member" do
let(:initiative) { create(:initiative, :created, scoped_type:, organization:) }
it "renders an error" do
visit decidim_initiatives.initiative_path(initiative)
expect(page).to have_no_content("Edit initiative")
visit edit_initiative_path
expect(page).to have_content("not authorized")
end
end
context "when rich text editor is enabled for participants" do
let(:initiative) { create(:initiative, :created, author: user, scoped_type:, organization:) }
let(:organization) { create(:organization, rich_text_editor_in_public_views: true) }
before do
visit initiative_path
click_on("Edit")
expect(page).to have_content "Edit Initiative"
end
it_behaves_like "having a rich text editor", "edit_initiative", "content"
end
end
```
|
```swift
//
// Message.swift
// RxKeyboard
//
// Created by Suyeol Jeon on 18/01/2017.
//
struct Message {
var user: User
var text: String
}
```
|
```javascript
'use strict';
const passport = require('../../lib/passport');
const sendConfigurations = require('../../models/send-configurations');
const router = require('../../lib/router-async').create();
const {castToInteger} = require('../../lib/helpers');
router.getAsync('/send-configurations-private/:sendConfigurationId', passport.loggedIn, async (req, res) => {
const sendConfiguration = await sendConfigurations.getById(req.context, castToInteger(req.params.sendConfigurationId), true, true);
sendConfiguration.hash = sendConfigurations.hash(sendConfiguration);
return res.json(sendConfiguration);
});
router.getAsync('/send-configurations-public/:sendConfigurationId', passport.loggedIn, async (req, res) => {
const sendConfiguration = await sendConfigurations.getById(req.context, castToInteger(req.params.sendConfigurationId), true, false);
sendConfiguration.hash = sendConfigurations.hash(sendConfiguration);
return res.json(sendConfiguration);
});
router.postAsync('/send-configurations', passport.loggedIn, passport.csrfProtection, async (req, res) => {
return res.json(await sendConfigurations.create(req.context, req.body));
});
router.putAsync('/send-configurations/:sendConfigurationId', passport.loggedIn, passport.csrfProtection, async (req, res) => {
const sendConfiguration = req.body;
sendConfiguration.id = castToInteger(req.params.sendConfigurationId);
await sendConfigurations.updateWithConsistencyCheck(req.context, sendConfiguration);
return res.json();
});
router.deleteAsync('/send-configurations/:sendConfigurationId', passport.loggedIn, passport.csrfProtection, async (req, res) => {
await sendConfigurations.remove(req.context, castToInteger(req.params.sendConfigurationId));
return res.json();
});
router.postAsync('/send-configurations-table', passport.loggedIn, async (req, res) => {
return res.json(await sendConfigurations.listDTAjax(req.context, req.body));
});
router.postAsync('/send-configurations-by-namespace-table/:namespaceId', passport.loggedIn, async (req, res) => {
return res.json(await sendConfigurations.listByNamespaceDTAjax(req.context, castToInteger(req.params.namespaceId), req.body));
});
router.postAsync('/send-configurations-with-send-permission-table', passport.loggedIn, async (req, res) => {
return res.json(await sendConfigurations.listWithSendPermissionDTAjax(req.context, req.body));
});
module.exports = router;
```
|
The Smell of Our Own is a 2003 album by The Hidden Cameras.
Track listing
"Golden Streams" – 4:28
"Ban Marriage" – 4:15
"A Miracle" – 2:50
"The Animals of Prey" – 4:04
"Smells Like Happiness" – 3:08
"Day Is Dawning" – 5:06
"Boys of Melody" – 4:59
"Shame" – 5:28
"Breathe on It" – 2:52
"The Man That I Am with My Man" – 4:37
Bonus tracks on Japanese edition
"Heavy Flow of Evil" – 2:55
"The Dying Galatian" – 2:22
Bonus tracks on 2023 Reissue
"Ode To Self-Publishing (Fear Of 'Zine Failure)" – 3:24
"Boys Of Melody (CBC Session)" – 4:51
"Smells Like Happiness (4-Track Demo)" – 3:12
"Shame (CBC Session)" – 5:25
"Day is Dawning (CBC Session)" – 4:47
"The Dying Galatian" – 2:22
"Heavy Flow Of Evil" – 2:54
"Ban Marriage (4-Track Demo)" – 5:02
"Breathe On It (CBC Session)" – 2:51
"A Miracle (4-Track Demo)" – 2:43
Personnel
Joel Gibb – producer, mixing, artwork, vocals, guitars, bass, piano, pipe organ, glockenspiel, vibraphone, sleigh bells, cymbals, marimba, timpani, tambourine, clapping
Gunter Kravis – photography
Graham Hollings – saxophone
Andy Magoffin – producer, mixing, trumpet, clapping
Magali Meagher – drums
Kristen Moss – harp
Mike Olsen – cello
Owen Pallett – violin, viola
Matias Rozenberg – timpanis, cymbals, drums, bass, bass synth keys, mandolin, trombone, vibraphone
Justin Stayshyn – Hammond organ, pipe organ, piano
Bob Wiseman – piano
Choir: Karen Azoulay, October Brown, Linda Bush, Janis Demkiw, Mike e.b., Liz Forsberg, Brenda Goldstein, Paige Gratland, Graham Hollings, Luis Jacob, G.B. Jones, Samara Liu, Judy MacDonald, Maggie MacDonald, Magali Meagher, Mez, Roy Mitchell, Jenny Orenda, Paul P., Owen Pallett, Kristy Simpson, Justin Stashyn, Karen Turner, Lex Vaughn, Reg Vermue
References
External links
Review of The Smell of Our Own in The Guardian
2003 albums
The Hidden Cameras albums
Rough Trade Records albums
|
Federico Aubele is an Argentine singer-songwriter whose music blends a variety of genres and styles.
Born and raised in Buenos Aires, Aubele started playing music at age 12. He moved to Berlin in 2002, where he lived for several years. After submitting a demo via email to Thievery Corporation's Eighteenth Street Lounge Music, he was signed quickly to the label, and released his debut album Gran Hotel Buenos Aires, produced by Thievery Corporation, in 2004. In 2006, he played at the Austin City Limits Music Festival. His song "Esta Noche" was featured in the fifth season of Alias (episode 8) and Season One episode 10 of Franklin & Bash. "La Esquina" was featured in the 2007 movie The Take, starring John Leguizamo.
After Berlin, he moved to Barcelona where he began working on his new album, Panamericana (a title to indicate the many musical influences and in part named after the Pan-American Highway), which was released on 18 September 2007, also produced by Thievery Corporation. In 2009 he released Amatoria, a much more mellow album which featured a duet with Sabina Sciubba from Brazilian Girls and a collaboration with Miho Hatori. In late 2010 Aubele finished the self-produced album Berlin 13, which was released in March 2011, and had a much stronger electronic music influence. His album 5, from 2013, featured the song "Somewhere Else," a duet with jazz chanteuse Melody Gardot.
In 2014, Nacional Records produced a 10-year anniversary edition of Aubele's debut album Gran Hotel Buenos Aires, with a full North America tour. He now lives in Brooklyn, New York. In 2022, Federico released his sixth studio album The Holographic Moon ending a six-year hiatus. In 2023 Aubele released "Time Drips on my Bed"
Performances
Montreal Jazz Fest (2005, 2009)
Lollapalooza (2009)
Treasure Island Music Festival (2009)
Austin City Limits Fest (2010, 2011)
Discography
Albums
Gran Hotel Buenos Aires (2004)
Panamericana (2007)
Amatoria (2009)
Berlin 13 (2011)
Five (22 October 2013)
The Holographic Moon (2022)
Time Drips on my Bed (2023)
References
External links
More info at Eighteenth Street Lounge Music
Interview in Eye Weekly
Federico Aubele interview on Velvetpanda
1974 births
Living people
Argentine expatriates in Germany
21st-century Argentine male singers
Argentine male singer-songwriters
Argentine singer-songwriters
Singers from Buenos Aires
Writers from Buenos Aires
|
```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 com.google.copybara;
import static com.google.copybara.Workflow.COPYBARA_CONFIG_PATH_IDENTITY_VAR;
import static com.google.copybara.config.GlobalMigrations.getGlobalMigrations;
import static com.google.copybara.config.SkylarkUtil.check;
import static com.google.copybara.config.SkylarkUtil.convertFromNoneable;
import static com.google.copybara.config.SkylarkUtil.convertOptionalString;
import static com.google.copybara.config.SkylarkUtil.convertStringList;
import static com.google.copybara.config.SkylarkUtil.convertStringMap;
import static com.google.copybara.config.SkylarkUtil.stringToEnum;
import static com.google.copybara.exception.ValidationException.checkCondition;
import static com.google.copybara.transform.Transformations.toTransformation;
import static com.google.copybara.util.Glob.wrapGlob;
import static com.google.copybara.version.LatestVersionSelector.VersionElementType.ALPHABETIC;
import static com.google.copybara.version.LatestVersionSelector.VersionElementType.NUMERIC;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableMap.Builder;
import com.google.common.collect.Iterables;
import com.google.copybara.StructModule.StructImpl;
import com.google.copybara.action.Action;
import com.google.copybara.action.StarlarkAction;
import com.google.copybara.authoring.Author;
import com.google.copybara.authoring.Authoring;
import com.google.copybara.config.ConfigFile;
import com.google.copybara.config.LabelsAwareModule;
import com.google.copybara.config.Migration;
import com.google.copybara.doc.annotations.DocDefault;
import com.google.copybara.doc.annotations.Example;
import com.google.copybara.doc.annotations.UsesFlags;
import com.google.copybara.exception.EmptyChangeException;
import com.google.copybara.exception.NonReversibleValidationException;
import com.google.copybara.exception.ValidationException;
import com.google.copybara.folder.FolderModule;
import com.google.copybara.revision.Revision;
import com.google.copybara.templatetoken.Parser;
import com.google.copybara.templatetoken.Token;
import com.google.copybara.templatetoken.Token.TokenType;
import com.google.copybara.transform.CopyOrMove;
import com.google.copybara.transform.ExplicitReversal;
import com.google.copybara.transform.FilterReplace;
import com.google.copybara.transform.Remove;
import com.google.copybara.transform.Rename;
import com.google.copybara.transform.Replace;
import com.google.copybara.transform.ReplaceMapper;
import com.google.copybara.transform.ReversibleFunction;
import com.google.copybara.transform.Sequence;
import com.google.copybara.transform.SkylarkConsole;
import com.google.copybara.transform.SkylarkTransformation;
import com.google.copybara.transform.TodoReplace;
import com.google.copybara.transform.TodoReplace.Mode;
import com.google.copybara.transform.VerifyMatch;
import com.google.copybara.transform.debug.DebugOptions;
import com.google.copybara.util.Glob;
import com.google.copybara.version.LatestVersionSelector;
import com.google.copybara.version.LatestVersionSelector.VersionElementType;
import com.google.copybara.version.OrderedVersionSelector;
import com.google.copybara.version.RequestedVersionSelector;
import com.google.copybara.version.VersionSelector;
import com.google.re2j.Matcher;
import com.google.re2j.Pattern;
import java.nio.charset.Charset;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.UnsupportedCharsetException;
import java.util.IllegalFormatException;
import java.util.Map;
import java.util.Objects;
import java.util.TreeMap;
import java.util.function.Supplier;
import javax.annotation.Nullable;
import net.starlark.java.annot.Param;
import net.starlark.java.annot.ParamType;
import net.starlark.java.annot.StarlarkBuiltin;
import net.starlark.java.annot.StarlarkMethod;
import net.starlark.java.eval.Dict;
import net.starlark.java.eval.EvalException;
import net.starlark.java.eval.Module;
import net.starlark.java.eval.NoneType;
import net.starlark.java.eval.Starlark;
import net.starlark.java.eval.StarlarkCallable;
import net.starlark.java.eval.StarlarkInt;
import net.starlark.java.eval.StarlarkList;
import net.starlark.java.eval.StarlarkThread;
import net.starlark.java.eval.StarlarkThread.CallStackEntry;
import net.starlark.java.eval.StarlarkThread.PrintHandler;
import net.starlark.java.eval.StarlarkValue;
import net.starlark.java.eval.Structure;
import net.starlark.java.syntax.Location;
/**
* Main configuration class for creating migrations.
*
* <p>This class is exposed in Skylark configuration as an instance variable called "core". So users
* can use it as:
*
* <pre>
* core.workspace(
* name = "foo",
* ...
* )
* </pre>
*/
@StarlarkBuiltin(
name = "core",
doc = "Core functionality for creating migrations, and basic transformations.")
@UsesFlags({GeneralOptions.class, DebugOptions.class})
public class Core implements LabelsAwareModule, StarlarkValue {
// Restrict for label ids like 'BAZEL_REV_ID'. More strict than our current revId.
private static final Pattern CUSTOM_REVID_FORMAT = Pattern.compile("[A-Z][A-Z_0-9]{1,30}_REV_ID");
private static final String CHECK_LAST_REV_STATE = "check_last_rev_state";
private final GeneralOptions generalOptions;
private final WorkflowOptions workflowOptions;
private final DebugOptions debugOptions;
private FolderModule folderModule;
private ConfigFile mainConfigFile;
private Supplier<ImmutableMap<String, ConfigFile>> allConfigFiles;
private StarlarkThread.PrintHandler printHandler;
@Nullable private SkylarkConsole console;
public Core(
GeneralOptions generalOptions, WorkflowOptions workflowOptions, DebugOptions debugOptions,
FolderModule folderModule) {
this.generalOptions = Preconditions.checkNotNull(generalOptions);
this.workflowOptions = Preconditions.checkNotNull(workflowOptions);
this.debugOptions = Preconditions.checkNotNull(debugOptions);
this.folderModule = Preconditions.checkNotNull(folderModule);
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "reverse",
doc =
"Given a list of transformations, returns the list of transformations equivalent to"
+ " undoing all the transformations",
parameters = {
@Param(
name = "transformations",
named = true,
allowedTypes = {
@ParamType(
type = net.starlark.java.eval.Sequence.class,
generic1 = Transformation.class), // (or callable)
},
doc = "The transformations to reverse"),
})
public net.starlark.java.eval.Sequence<Transformation> reverse(
net.starlark.java.eval.Sequence<?> transforms // <Transformation> or <StarlarkCallable>
) throws EvalException {
ImmutableList.Builder<Transformation> builder = ImmutableList.builder();
for (Object t : transforms) {
try {
builder.add(toTransformation(t, "transformations", printHandler).reverse());
} catch (NonReversibleValidationException e) {
throw Starlark.errorf("%s at %s", e.getMessage(), getLocation(t));
}
}
return StarlarkList.immutableCopyOf(builder.build().reverse());
}
private Location getLocation(Object transformationOrCallable) {
if (transformationOrCallable instanceof StarlarkCallable) {
return ((StarlarkCallable) transformationOrCallable).getLocation();
}
if (transformationOrCallable instanceof Transformation) {
return ((Transformation) transformationOrCallable).location();
}
return Location.BUILTIN;
}
@SuppressWarnings({"unused", "unchecked"})
@StarlarkMethod(
name = "workflow",
doc =
"Defines a migration pipeline which can be invoked via the Copybara command.\n"
+ "\n"
+ "Implicit labels that can be used/exposed:\n"
+ "\n"
+ " - "
+ TransformWork.COPYBARA_CONTEXT_REFERENCE_LABEL
+ ": Requested reference. For example if copybara is invoked as `copybara"
+ " copy.bara.sky workflow master`, the value would be `master`.\n"
+ " - "
+ TransformWork.COPYBARA_LAST_REV
+ ": Last reference that was migrated\n"
+ " - "
+ TransformWork.COPYBARA_CURRENT_REV
+ ": The current reference being migrated\n"
+ " - "
+ TransformWork.COPYBARA_CURRENT_REV_DATE_TIME
+ ": Date & time for the current reference being migrated in ISO format"
+ " (Example: \"2011-12-03T10:15:30+01:00\")\n"
+ " - "
+ TransformWork.COPYBARA_CURRENT_MESSAGE
+ ": The current message at this point of the transformations\n"
+ " - "
+ TransformWork.COPYBARA_CURRENT_MESSAGE_TITLE
+ ": The current message title (first line) at this point of the transformations\n"
+ " - "
+ TransformWork.COPYBARA_AUTHOR
+ ": The author of the change\n",
parameters = {
@Param(name = "name", named = true, doc = "The name of the workflow.", positional = false),
@Param(
name = "origin",
named = true,
doc =
"Where to read from the code to be migrated, before applying the "
+ "transformations. This is usually a VCS like Git, but can also be a local "
+ "folder or even a pending change in a code review system like Gerrit.",
positional = false),
@Param(
name = "destination",
named = true,
doc =
"Where to write to the code being migrated, after applying the "
+ "transformations. This is usually a VCS like Git, but can also be a local "
+ "folder or even a pending change in a code review system like Gerrit.",
positional = false),
@Param(
name = "authoring",
named = true,
doc = "The author mapping configuration from origin to destination.",
positional = false),
@Param(
name = "transformations",
named = true,
doc = "The transformations to be run for this workflow. They will run in sequence.",
positional = false,
defaultValue = "[]"),
@Param(
name = "origin_files",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob or list of filesrelative to the workdir that will be read from the"
+ " origin during the import. For example glob([\"**.java\"]), all java files,"
+ " recursively, which excludes all other file types, or ['foo.java'] for a"
+ " specific file.",
defaultValue = "None",
positional = false),
@Param(
name = "destination_files",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob relative to the root of the destination repository that matches files that"
+ " are part of the migration. Files NOT matching this glob will never be"
+ " removed, even if the file does not exist in the source. For example"
+ " glob(['**'], exclude = ['**/BUILD']) keeps all BUILD files in destination"
+ " when the origin does not have any BUILD files. You can also use this to"
+ " limit the migration to a subdirectory of the destination, e.g."
+ " glob(['java/src/**'], exclude = ['**/BUILD']) to only affect non-BUILD"
+ " files in java/src.",
defaultValue = "None",
positional = false),
@Param(
name = "mode",
named = true,
doc =
"Workflow mode. Currently we support four modes:<br><ul><li><b>'SQUASH'</b>:"
+ " Create a single commit in the destination with new tree"
+ " state.</li><li><b>'ITERATIVE'</b>: Import each origin change"
+ " individually.</li><li><b>'CHANGE_REQUEST'</b>: Import a pending change to"
+ " the Source-of-Truth. This could be a GH Pull Request, a Gerrit Change,"
+ " etc. The final intention should be to submit the change in the SoT"
+ " (destination in this case).</li><li><b>'CHANGE_REQUEST_FROM_SOT'</b>:"
+ " Import a pending change **from** the Source-of-Truth. This mode is useful"
+ " when, despite the pending change being already in the SoT, the users want"
+ " to review the code on a different system. The final intention should never"
+ " be to submit in the destination, but just review or test</li></ul>",
defaultValue = "\"SQUASH\"",
positional = false),
@Param(
name = "reversible_check",
named = true,
allowedTypes = {
@ParamType(type = Boolean.class),
@ParamType(type = NoneType.class),
},
doc =
"Indicates if the tool should try to to reverse all the transformations"
+ " at the end to check that they are reversible.<br/>The default value is"
+ " True for 'CHANGE_REQUEST' mode. False otherwise",
defaultValue = "None",
positional = false),
@Param(
name = CHECK_LAST_REV_STATE,
named = true,
doc =
"If set to true, Copybara will validate that the destination didn't change"
+ " since last-rev import for destination_files. Note that this"
+ " flag doesn't work for CHANGE_REQUEST mode.",
defaultValue = "False",
positional = false),
@Param(
name = "ask_for_confirmation",
named = true,
doc =
"Indicates that the tool should show the diff and require user's"
+ " confirmation before making a change in the destination.",
defaultValue = "False",
positional = false),
@Param(
name = "dry_run",
named = true,
doc =
"Run the migration in dry-run mode. Some destination implementations might"
+ " have some side effects (like creating a code review), but never submit to a"
+ " main branch.",
defaultValue = "False",
positional = false),
@Param(
name = "after_migration",
named = true,
doc =
"Run a feedback workflow after one migration happens. This runs once per"
+ " change in `ITERATIVE` mode and only once for `SQUASH`.",
defaultValue = "[]",
positional = false),
@Param(
name = "after_workflow",
named = true,
doc =
"Run a feedback workflow after all the changes for this workflow run are migrated."
+ " Prefer `after_migration` as it is executed per change (in ITERATIVE mode)."
+ " Tasks in this hook shouldn't be critical to execute. These actions"
+ " shouldn't record effects (They'll be ignored).",
defaultValue = "[]",
positional = false),
@Param(
name = "change_identity",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc =
"By default, Copybara hashes several fields so that each change has an unique"
+ " identifier that at the same time reuses the generated destination change."
+ " This allows to customize the identity hash generation so that the same"
+ " identity is used in several workflows. At least ${copybara_config_path}"
+ " has to be present. Current user is added to the hash"
+ " automatically.<br><br>Available variables:<ul> "
+ " <li>${copybara_config_path}: Main config file path</li> "
+ " <li>${copybara_workflow_name}: The name of the workflow being run</li> "
+ " <li>${copybara_reference}: The requested reference. In general Copybara"
+ " tries its best to give a repetable reference. For example Gerrit change"
+ " number or change-id or GitHub Pull Request number. If it cannot find a"
+ " context reference it uses the resolved revision.</li> "
+ " <li>${label:label_name}: A label present for the current change. Exposed"
+ " in the message or not.</li></ul>If any of the labels cannot be found it"
+ " defaults to the default identity (The effect would be no reuse of"
+ " destination change between workflows)",
defaultValue = "None",
positional = false),
@Param(
name = "set_rev_id",
named = true,
doc =
"Copybara adds labels like 'GitOrigin-RevId' in the destination in order to"
+ " track what was the latest change imported. For `CHANGE_REQUEST` "
+ "workflows it is not used and is purely informational. This field "
+ "allows to disable it for that mode. Destinations might ignore the flag.",
defaultValue = "True",
positional = false),
// TODO: deprecate this in favor of merge_import param, which will take enum and bool
@Param(
name = "smart_prune",
named = true,
doc =
"By default CHANGE_REQUEST workflows cannot restore scrubbed files. This flag does"
+ " a best-effort approach in restoring the non-affected snippets. For now we"
+ " only revert the non-affected files. This only works for CHANGE_REQUEST"
+ " mode.",
defaultValue = "False",
positional = false),
@Param(
name = "merge_import",
named = true,
doc =
"A migration mode that shells out to a diffing tool (default is diff3) to merge all"
+ " files. The inputs to the diffing tool are (1) origin file (2) baseline file"
+ " (3) destination file. This can be used to perpetuate destination-only"
+ " changes in non source of truth repositories.",
allowedTypes = {
@ParamType(type = Boolean.class),
@ParamType(type = MergeImportConfiguration.class),
@ParamType(type = NoneType.class),
},
defaultValue = "None",
positional = false),
@Param(
name = "autopatch_config",
doc = "Configuration that describes the setting for automatic patch file generation",
allowedTypes = {
@ParamType(type = AutoPatchfileConfiguration.class),
@ParamType(type = NoneType.class),
},
positional = false,
named = true,
defaultValue = "None"),
@Param(
name = "after_merge_transformations",
named = true,
doc =
"Perform these transformations after merge_import, but before Copybara writes to"
+ " the destination. Ex: any BUILD file generations that rely on the results of"
+ " merge_import",
positional = false,
defaultValue = "[]"),
@Param(
name = "migrate_noop_changes",
named = true,
doc =
"By default, Copybara tries to only migrate changes that affect origin_files or"
+ " config files. This flag allows to include all the changes. Note that it"
+ " might generate more empty changes errors. In `ITERATIVE` mode it might"
+ " fail if some transformation is validating the message (Like has to contain"
+ " 'PUBLIC' and the change doesn't contain it because it is internal).",
defaultValue = "False",
positional = false),
@Param(
name = "experimental_custom_rev_id",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc =
"DEPRECATED(Remove by 2024/01/01: Use . Use this label name instead of the one"
+ " provided by the origin.",
defaultValue = "None",
positional = false),
@Param(
name = "custom_rev_id",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc =
"If the destination uses labels to mark the last change migrated, use this label"
+ " name instead of the one provided by the origin. This allows to to have"
+ " two migrations to the same destination without the other migration changes"
+ " interfering this migration. I can also serve to clearly state where the"
+ " change is coming from.",
defaultValue = "None",
positional = false),
@Param(
name = "description",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
named = true,
positional = false,
doc = "A description of what this workflow achieves",
defaultValue = "None"),
@Param(
name = "checkout",
named = true,
positional = false,
doc =
"Allows disabling the checkout. The usage of this feature is rare. This could"
+ " be used to update a file of your own repo when a dependant repo version"
+ " changes and you are not interested on the files of the dependant repo, just"
+ " the new version.",
defaultValue = "True"),
@Param(
name = "reversible_check_ignore_files",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc = "Ignore the files matching the glob in the reversible check",
defaultValue = "None",
positional = false),
@Param(
name = "consistency_file_path",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc = "Under development. Must end with .bara.consistency",
defaultValue = "None",
positional = false),
},
useStarlarkThread = true)
@UsesFlags({WorkflowOptions.class})
@DocDefault(field = "origin_files", value = "glob([\"**\"])")
@DocDefault(field = "destination_files", value = "glob([\"**\"])")
@DocDefault(field = "reversible_check", value = "True for 'CHANGE_REQUEST' mode. False otherwise")
@DocDefault(field = "reversible_check_ignore_files", value = "None")
public void workflow(
String workflowName,
Origin<?> origin, // <Revision>, but skylark allows only ?
Destination<?> destination,
Authoring authoring,
net.starlark.java.eval.Sequence<?> transformations,
Object originFiles,
Object destinationFiles,
String modeStr,
Object reversibleCheckObj,
boolean checkLastRevState,
Boolean askForConfirmation,
Boolean dryRunMode,
net.starlark.java.eval.Sequence<?> afterMigrations,
net.starlark.java.eval.Sequence<?> afterAllMigrations,
Object changeIdentityObj,
Boolean setRevId,
Boolean smartPrune,
Object mergeImportObj,
Object autoPatchFileConfigurationObj,
net.starlark.java.eval.Sequence<?> afterMergeTransformations,
Boolean migrateNoopChanges,
Object experimentalCustomRevIdField,
Object customRevIdField,
Object description,
Boolean checkout,
Object reversibleCheckIgnoreFiles,
Object consistencyFilePathObj,
StarlarkThread thread)
throws EvalException {
WorkflowMode mode = stringToEnum("mode", modeStr, WorkflowMode.class);
// Overwrite destination for testing workflow locally
if (workflowOptions.toFolder) {
destination = folderModule.destination();
}
Sequence sequenceTransform =
Sequence.fromConfig(
generalOptions.profiler(),
workflowOptions,
transformations,
"transformations",
printHandler,
debugOptions::transformWrapper,
Sequence.NoopBehavior.NOOP_IF_ANY_NOOP);
Transformation reverseTransform = null;
if (!generalOptions.isDisableReversibleCheck()
&& convertFromNoneable(reversibleCheckObj, mode == WorkflowMode.CHANGE_REQUEST)) {
try {
reverseTransform = sequenceTransform.reverse();
} catch (NonReversibleValidationException e) {
throw Starlark.errorf("%s", e.getMessage());
}
}
ImmutableList<Token> changeIdentity = getChangeIdentity(changeIdentityObj);
if (!Starlark.isNullOrNone(experimentalCustomRevIdField)) {
generalOptions.console()
.warn("experimental_custom_rev_id is deprecated. Use custom_rev_id instead.");
}
String customRevId = convertFromNoneable(customRevIdField,
convertFromNoneable(experimentalCustomRevIdField, null));
check(
customRevId == null || CUSTOM_REVID_FORMAT.matches(customRevId),
"Invalid custom_rev_id format. Format: %s",
CUSTOM_REVID_FORMAT.pattern());
if (setRevId) {
check(
mode != WorkflowMode.CHANGE_REQUEST || customRevId == null,
"custom_rev_id is not allowed to be used in CHANGE_REQUEST mode if"
+ " set_rev_id is set to true. custom_rev_id is used for looking"
+ " for the baseline in the origin. No revId is stored in the destination.");
} else {
check(
mode == WorkflowMode.CHANGE_REQUEST || mode == WorkflowMode.CHANGE_REQUEST_FROM_SOT,
"'set_rev_id = False' is only supported"
+ " for CHANGE_REQUEST and CHANGE_REQUEST_FROM_SOT mode.");
}
if (smartPrune) {
check(
mode == WorkflowMode.CHANGE_REQUEST,
"'smart_prune = True' is only supported" + " for CHANGE_REQUEST mode.");
}
if (checkLastRevState) {
check(
mode != WorkflowMode.CHANGE_REQUEST,
"%s is not compatible with %s",
CHECK_LAST_REV_STATE,
WorkflowMode.CHANGE_REQUEST);
}
Authoring resolvedAuthoring = authoring;
Author defaultAuthorFlag = workflowOptions.getDefaultAuthorFlag();
if (defaultAuthorFlag != null) {
resolvedAuthoring = new Authoring(defaultAuthorFlag, authoring.getMode(),
authoring.getAllowlist());
}
MergeImportConfiguration mergeImport;
if (mergeImportObj instanceof Boolean) {
Boolean objectValue = (Boolean) mergeImportObj;
mergeImport =
objectValue
? MergeImportConfiguration.create(
"", Glob.ALL_FILES, false, MergeImportConfiguration.MergeStrategy.DIFF3)
: null;
} else {
mergeImport = convertFromNoneable(mergeImportObj, null);
}
@Nullable
AutoPatchfileConfiguration autoPatchfileConfiguration =
convertFromNoneable(autoPatchFileConfigurationObj, null);
@Nullable String consistencyFilePath = convertFromNoneable(consistencyFilePathObj, null);
check(
mergeImport == null || !mergeImport.useConsistencyFile() || (consistencyFilePath != null),
"error: use_consistency_file set but consistency_file_path is null");
WorkflowMode effectiveMode =
generalOptions.squash || workflowOptions.importSameVersion ? WorkflowMode.SQUASH : mode;
Workflow<Revision, ?> workflow =
new Workflow<>(
workflowName,
convertFromNoneable(description, null),
(Origin<Revision>) origin,
destination,
resolvedAuthoring,
sequenceTransform,
workflowOptions.getLastRevision(),
workflowOptions.isInitHistory(),
generalOptions,
wrapGlob(originFiles, Glob.ALL_FILES),
wrapGlob(destinationFiles, Glob.ALL_FILES),
effectiveMode,
workflowOptions,
reverseTransform,
wrapGlob(reversibleCheckIgnoreFiles, null),
askForConfirmation,
mainConfigFile,
allConfigFiles,
dryRunMode,
checkLastRevState || workflowOptions.checkLastRevState,
convertListOfActions(afterMigrations, printHandler),
convertListOfActions(afterAllMigrations, printHandler),
changeIdentity,
setRevId,
smartPrune,
mergeImport,
autoPatchfileConfiguration,
asSingleTransform(afterMergeTransformations),
workflowOptions.migrateNoopChanges || migrateNoopChanges,
customRevId,
checkout,
consistencyFilePath);
Module module = Module.ofInnermostEnclosingStarlarkFunction(thread);
registerGlobalMigration(workflowName, workflow, module);
}
private Sequence asSingleTransform(net.starlark.java.eval.Sequence<?> transformations)
throws EvalException {
return Sequence.fromConfig(
generalOptions.profiler(),
workflowOptions,
transformations,
"transformations",
printHandler,
debugOptions::transformWrapper,
Sequence.NoopBehavior.NOOP_IF_ANY_NOOP);
}
private static ImmutableList<Token> getChangeIdentity(Object changeIdentityObj)
throws EvalException {
String changeIdentity = convertFromNoneable(changeIdentityObj, null);
if (changeIdentity == null) {
return ImmutableList.of();
}
ImmutableList<Token> result = new Parser().parse(changeIdentity);
boolean configVarFound = false;
for (Token token : result) {
if (token.getType() != TokenType.INTERPOLATION) {
continue;
}
if (token.getValue().equals(COPYBARA_CONFIG_PATH_IDENTITY_VAR)) {
configVarFound = true;
continue;
}
if (token.getValue().equals(Workflow.COPYBARA_WORKFLOW_NAME_IDENTITY_VAR)
|| token.getValue().equals(Workflow.COPYBARA_REFERENCE_IDENTITY_VAR)
|| token.getValue().startsWith(Workflow.COPYBARA_REFERENCE_LABEL_VAR)) {
continue;
}
throw Starlark.errorf("Unrecognized variable: %s", token.getValue());
}
check(configVarFound, "${%s} variable is required", COPYBARA_CONFIG_PATH_IDENTITY_VAR);
return result;
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "move",
doc = "Moves files between directories and renames files",
parameters = {
@Param(
name = "before",
named = true,
doc =
"The name of the file or directory before moving. If this is the empty string and"
+ " 'after' is a directory, then all files in the workdir will be moved to the"
+ " sub directory specified by 'after', maintaining the directory tree."),
@Param(
name = "after",
named = true,
doc =
"The name of the file or directory after moving. If this is the empty string and"
+ " 'before' is a directory, then all files in 'before' will be moved to the"
+ " repo root, maintaining the directory tree inside 'before'."),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to 'before' if it represents a directory."
+ " Only files matching the expression will be moved. For example,"
+ " glob([\"**.java\"]), matches all java files recursively inside"
+ " 'before' folder. Defaults to match all the files recursively.",
defaultValue = "None"),
@Param(
name = "overwrite",
named = true,
doc =
"Overwrite destination files if they already exist. Note that this makes the"
+ " transformation non-reversible, since there is no way to know if the file"
+ " was overwritten or not in the reverse workflow.",
defaultValue = "False"),
@Param(
name = "regex_groups",
named = true,
positional = false,
doc =
"A set of named regexes that can be used to match part of the file name."
+ " Copybara uses [re2](path_to_url syntax."
+ " For example {\"x\": \"[A-Za-z]+\"}",
defaultValue = "{}")
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
@Example(
title = "Move a directory",
before = "Move all the files in a directory to another directory:",
code = "core.move(\"foo/bar_internal\", \"bar\")",
after = "In this example, `foo/bar_internal/one` will be moved to `bar/one`.")
@Example(
title = "Move all the files to a subfolder",
before = "Move all the files in the checkout dir into a directory called foo:",
code = "core.move(\"\", \"foo\")",
after = "In this example, `one` and `two/bar` will be moved to `foo/one` and `foo/two/bar`.")
@Example(
title = "Move a subfolder's content to the root",
before = "Move the contents of a folder to the checkout root directory:",
code = "core.move(\"foo\", \"\")",
after = "In this example, `foo/bar` would be moved to `bar`.")
@Example(
title = "Move using Regex",
before = "Change a file extension:",
code =
"core.move(before = 'foo/${x}.txt', after = 'foo/${x}.md', regex_groups = {"
+ " 'x': '.*'})",
after = "In this example, `foo/bar/README.txt` will be moved to `foo/bar/README.md`.")
public Transformation move(
String before,
String after,
Object paths,
Boolean overwrite,
Dict<?, ?> regexes,
StarlarkThread thread)
throws EvalException {
check(
!Objects.equals(before, after),
"Moving from the same folder to the same folder is a noop. Remove the"
+ " transformation.");
return CopyOrMove.createMove(
before,
after,
convertStringMap(regexes, "regex_groups"),
wrapGlob(paths, Glob.ALL_FILES),
overwrite,
thread.getCallerLocation());
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "rename",
doc =
"A transformation for renaming several filenames in the working directory. This is a"
+ " simplified version of core.move() for just renaming filenames without needing to"
+ " use regex_groups. Note that it doesn't rename directories, only regular files.",
parameters = {
@Param(name = "before", named = true, doc = "The filepath or suffix to change"),
@Param(name = "after", named = true, doc = "A filepath or suffix to use as replacement"),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to 'before' if it represents a directory."
+ " Only files matching the expression will be renamed. For example,"
+ " glob([\"**.java\"]), matches all java files recursively inside"
+ " 'before' folder. Defaults to match all the files recursively. Note that"
+ " if reversible transformation is needed, the glob should match the filenames"
+ " too in that case (or alternatively use an explicit reversal by using"
+ " `core.transformation()`.",
defaultValue = "None"),
@Param(
name = "overwrite",
named = true,
doc =
"Overwrite destination files if they already exist. Note that this makes the"
+ " transformation non-reversible, since there is no way to know if the file"
+ " was overwritten or not in the reverse workflow.",
defaultValue = "False"),
@Param(
name = "suffix",
named = true,
doc =
"By default before/after match whole path segments. e.g. before = \"FOO\""
+ " wouldn't match `example/barFOO`. Sometimes only part of the path name needs"
+ " to be replaced, e.g. renaming extensions. When `suffix` is set to true, it"
+ " will match partial parts of the path string.",
defaultValue = "False"),
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
@Example(
title = "Rename files",
before = "Rename all FOO files:",
code = "core.rename(\"FOO\", \"FOO.txt\")",
after = "In this example, any `FOO` in any directory will be renamed to `FOO.txt`.")
@Example(
title = "Rename extension",
before = "Rename *.md files to *.txt files:",
code = "core.rename(\".md\", \".txt\", suffix = True)",
after = "In this example, `foo/bar.md` will be renamed to `foo/bar.txt`.")
@Example(
title = "Rename files only in certain paths",
before = "Renaming files in certain paths:",
code = "core.rename(\"/FOO\", \"/FOO.txt\", paths = glob(['dir1/**', 'dir2/**']))",
after =
"In this example, `dir1/FOO` will be renamed to `dir1/FOO.txt`. Note that"
+ " FOO files outside `dir1` and `dir2` won't be renamed")
public Transformation rename(
String before,
String after,
Object paths,
Boolean overwrite,
Boolean suffix,
StarlarkThread thread)
throws EvalException {
check(
!Objects.equals(before, after),
"Renaming from the same filename to the same filename is a noop. Remove the"
+ " transformation.");
return new Rename(
before,
after,
wrapGlob(paths, Glob.ALL_FILES),
overwrite,
suffix,
thread.getCallerLocation());
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "copy",
doc = "Copy files between directories and renames files",
parameters = {
@Param(
name = "before",
named = true,
doc =
"The name of the file or directory to copy. If this is the empty string and"
+ " 'after' is a directory, then all files in the workdir will be copied to"
+ " the sub directory specified by 'after', maintaining the directory tree."),
@Param(
name = "after",
named = true,
doc =
"The name of the file or directory destination. If this is the empty string and"
+ " 'before' is a directory, then all files in 'before' will be copied to the"
+ " repo root, maintaining the directory tree inside 'before'."),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to 'before' if it represents a directory."
+ " Only files matching the expression will be copied. For example,"
+ " glob([\"**.java\"]), matches all java files recursively inside"
+ " 'before' folder. Defaults to match all the files recursively.",
defaultValue = "None"),
@Param(
name = "overwrite",
named = true,
doc =
"Overwrite destination files if they already exist. Note that this makes the"
+ " transformation non-reversible, since there is no way to know if the file"
+ " was overwritten or not in the reverse workflow.",
defaultValue = "False"),
@Param(
name = "regex_groups",
named = true,
positional = false,
doc =
"A set of named regexes that can be used to match part of the file name."
+ " Copybara uses [re2](path_to_url syntax."
+ " For example {\"x\": \"[A-Za-z]+\"}",
defaultValue = "{}")
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
@Example(
title = "Copy a directory",
before = "Move all the files in a directory to another directory:",
code = "core.copy(\"foo/bar_internal\", \"bar\")",
after = "In this example, `foo/bar_internal/one` will be copied to `bar/one`.")
@Example(
title = "Copy using Regex",
before = "Change a file extension:",
code =
"core.copy(before = 'foo/${x}.txt', after = 'foo/${x}.md', regex_groups = {"
+ " 'x': '.*'})",
after = "In this example, `foo/bar/README.txt` will be copied to `foo/bar/README.md`.")
@Example(
title = "Copy with reversal",
before = "Copy all static files to a 'static' folder and use remove for reverting the change",
code =
"core.transform(\n"
+ " [core.copy(\"foo\", \"foo/static\", paths = glob([\"**.css\",\"**.html\","
+ " ]))],\n"
+ " reversal = [core.remove(glob(['foo/static/**.css',"
+ " 'foo/static/**.html']))]\n"
+ ")")
public Transformation copy(
String before,
String after,
Object paths,
Boolean overwrite,
Dict<?, ?> regexes,
StarlarkThread thread)
throws EvalException {
check(
!Objects.equals(before, after),
"Copying from the same folder to the same folder is a noop. Remove the"
+ " transformation.");
return CopyOrMove.createCopy(
before,
after,
convertStringMap(regexes, "regex_groups"),
wrapGlob(paths, Glob.ALL_FILES),
overwrite,
thread.getCallerLocation());
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "remove",
doc =
"Remove files from the workdir. **This transformation is only meant to be used inside"
+ " core.transform for reversing core.copy like transforms**. For regular file"
+ " filtering use origin_files exclude mechanism.",
parameters = {
@Param(name = "paths", named = true, doc = "The files to be deleted"),
},
useStarlarkThread = true)
@Example(
title = "Reverse a file copy",
before = "Move all the files in a directory to another directory:",
code =
"core.transform(\n"
+ " [core.copy(\"foo\", \"foo/public\")],\n"
+ " reversal = [core.remove(glob([\"foo/public/**\"]))])",
after = "In this example, `foo/one` will be moved to `foo/public/one`.")
@Example(
title = "Copy with reversal",
before = "Copy all static files to a 'static' folder and use remove for reverting the change",
code =
"core.transform(\n"
+ " [core.copy(\"foo\", \"foo/static\", paths = glob([\"**.css\",\"**.html\","
+ " ]))],\n"
+ " reversal = [core.remove(glob(['foo/static/**.css',"
+ " 'foo/static/**.html']))]\n"
+ ")")
public Remove remove(Glob paths, StarlarkThread thread) {
return new Remove(paths, thread.getCallerLocation());
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "convert_encoding",
doc = "Change the encoding for a set of files",
parameters = {
@Param(
name = "before",
named = true,
doc =
"The expected encoding of the files before transformation. Charset should be"
+ " in the format expected by "
+ "path_to_url"),
@Param(
name = "after",
named = true,
doc = "The encoding to convert to. Same format as 'before'"),
@Param(name = "paths", named = true, doc = "The files to be deleted"),
},
useStarlarkThread = true)
@Example(
title = "ISO-8859-1 to UTF-8",
before = "Convert some files from ISO-8859-1 to UTF-8",
code =
"core.convert_encoding(\n"
+ " before = 'ISO-8859-1',\n"
+ " after = 'UTF-8',\n"
+ " paths = glob([\"foo/*.txt\"]),\n"
+ ")",
after = "In this example, `foo/one.txt` encoding will be changed from ISO-8859-1 to UTF-8.")
public Transformation convertEncoding(String before, String after, Glob paths,
StarlarkThread thread)
throws EvalException {
Charset cBefore;
try {
cBefore = Charset.forName(before);
} catch (UnsupportedCharsetException | IllegalCharsetNameException e) {
throw new EvalException("Incorrect charset " + before + " for 'before': " + e.getMessage());
}
Charset cAfter = null;
try {
cAfter = Charset.forName(after);
} catch (UnsupportedCharsetException | IllegalCharsetNameException e) {
throw new EvalException("Incorrect charset " + after + " for 'after': " + e.getMessage());
}
return new ConvertEncoding(cBefore, cAfter, paths);
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "replace",
doc =
"Replace a text with another text using optional regex groups. This transformation can be"
+ " automatically reversed.",
parameters = {
@Param(
name = "before",
named = true,
doc =
"The text before the transformation. Can contain references to regex groups. For"
+ " example \"foo${x}text\".<p>`before` can only contain 1 reference to each"
+ " unique `regex_group`. If you require multiple references to the same"
+ " `regex_group`, add `repeated_groups: True`.<p>If '$' literal character"
+ " needs to be matched, '`$$`' should be used. For example '`$$FOO`' would"
+ " match the literal '$FOO'."
+ " [Note this argument is a string. If you want to match a regular expression"
+ " it must be encoded as a regex_group.]"),
@Param(
name = "after",
named = true,
doc =
"The text after the transformation. It can also contain references to regex "
+ "groups, like 'before' field."),
@Param(
name = "regex_groups",
named = true,
doc =
"A set of named regexes that can be used to match part of the replaced text."
+ "Copybara uses [re2](path_to_url syntax."
+ " For example {\"x\": \"[A-Za-z]+\"}",
defaultValue = "{}"),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to the workdir representing the files to apply the"
+ " transformation. For example, glob([\"**.java\"]), matches all java files"
+ " recursively. Defaults to match all the files recursively.",
defaultValue = "None"),
@Param(
name = "first_only",
named = true,
doc =
"If true, only replaces the first instance rather than all. In single line mode,"
+ " replaces the first instance on each line. In multiline mode, replaces the"
+ " first instance in each file.",
defaultValue = "False"),
@Param(
name = "multiline",
named = true,
doc = "Whether to replace text that spans more than one line.",
defaultValue = "False"),
@Param(
name = "repeated_groups",
named = true,
doc =
"Allow to use a group multiple times. For example foo${repeated}/${repeated}. Note"
+ " that this won't match \"fooX/Y\". This mechanism doesn't use"
+ " backtracking. In other words, the group instances are treated as different"
+ " groups in regex construction and then a validation is done after that.",
defaultValue = "False"),
@Param(
name = "ignore",
named = true,
doc =
"A set of regexes. If the entire content of any line (or file, if `multiline` is"
+ " enabled) matches any expression in this set, then Copybara will not apply"
+ " this transformation to any text there. Because `ignore` is matched against"
+ " the entire line (or entire file under `multiline`), not just the parts that"
+ " match `before`, the `ignore` regex can refer to text outside the span that"
+ " would be replaced.",
defaultValue = "[]"),
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
@Example(
title = "Simple replacement",
before = "Replaces the text \"internal\" with \"external\" in all java files",
code =
"core.replace(\n"
+ " before = \"internal\",\n"
+ " after = \"external\",\n"
+ " paths = glob([\"**.java\"]),\n"
+ ")")
@Example(
title = "Simple replacement in a specific file",
before = "Replaces the text \"internal\" with \"external\" in all java files",
code =
"core.replace(\n"
+ " before = \"internal\",\n"
+ " after = \"external\",\n"
+ " paths = ['foo/bar.txt'],\n"
+ ")")
@Example(
title = "Append some text at the end of files",
before = "",
code =
"core.replace(\n"
+ " before = '${end}',\n"
+ " after = 'Text to be added at the end',\n"
+ " multiline = True,\n"
+ " regex_groups = { 'end' : '\\\\z'},\n"
+ ")")
@Example(
title = "Append some text at the end of files reversible",
before = "Same as the above example but make the transformation reversible",
code =
"core.transform([\n"
+ " core.replace(\n"
+ " before = '${end}',\n"
+ " after = 'some append',\n"
+ " multiline = True,\n"
+ " regex_groups = { 'end' : r'\\z'},\n"
+ " )\n"
+ "],\n"
+ "reversal = [\n"
+ " core.replace(\n"
+ " before = 'some append${end}',\n"
+ " after = '',\n"
+ " multiline = True,\n"
+ " regex_groups = { 'end' : r'\\z'},\n"
+ " )"
+ "])")
@Example(
title = "Replace using regex groups",
before =
"In this example we map some urls from the internal to the external version in"
+ " all the files of the project.",
code =
"core.replace(\n"
+ " before = \"path_to_url{pkg}.html\",\n"
+ " after = \"path_to_url{pkg}.html\",\n"
+ " regex_groups = {\n"
+ " \"pkg\": \".*\",\n"
+ " },\n"
+ " )",
after =
"So a url like `path_to_url` will be transformed to"
+ " `path_to_url`.")
@Example(
title = "Remove confidential blocks",
before =
"This example removes blocks of text/code that are confidential and thus shouldn't"
+ "be exported to a public repository.",
code =
"core.replace(\n"
+ " before = \"${x}\",\n"
+ " after = \"\",\n"
+ " multiline = True,\n"
+ " regex_groups = {\n"
+ " \"x\": \"(?m)^.*BEGIN-INTERNAL[\\\\w\\\\W]*?END-INTERNAL.*$\\\\n\",\n"
+ " },\n"
+ " )",
after =
"This replace would transform a text file like:\n\n"
+ "```\n"
+ "This is\n"
+ "public\n"
+ " // BEGIN-INTERNAL\n"
+ " confidential\n"
+ " information\n"
+ " // END-INTERNAL\n"
+ "more public code\n"
+ " // BEGIN-INTERNAL\n"
+ " more confidential\n"
+ " information\n"
+ " // END-INTERNAL\n"
+ "```\n\n"
+ "Into:\n\n"
+ "```\n"
+ "This is\n"
+ "public\n"
+ "more public code\n"
+ "```")
@Example(
title = "Replace with ignore",
before =
"This example replaces go links that shouldn't be in a public repository with `(broken"
+ " link)`, but ignores any lines that contain `bazelbuild/rules_go/`, to avoid"
+ " replacing file paths present in the text.",
code =
"core.replace(\n"
+ " before = \"${x}\",\n"
+ " after = \"(broken link)\",\n"
+ " regex_groups = {\n"
+ " \"x\": \"(go|goto)/[-/_#a-zA-Z0-9?]*(.md|)\",\n"
+ " },\n"
+ " ignore = [\".*bazelbuild/rules_go/.*\"],\n"
+ " )",
after =
"This replace would transform a text file like:\n\n"
+ "```\n"
+ "public code\n"
+ "go/copybara ... public code\n"
+ "public code ... go/copybara\n"
+ "go/copybara ... foo/bazelbuild/rules_go/bar\n"
+ "foo/bazelbuild/rules_go/baz ... go/copybara\n"
+ "```\n\n"
+ "Into:\n\n"
+ "```\n"
+ "public code\n"
+ "(broken link) ... public code\n"
+ "public code ... (broken link)\n"
+ "go/copybara ... foo/bazelbuild/rules_go/bar\n"
+ "foo/bazelbuild/rules_go/baz ... go/copybara\n"
+ "```\n\n"
+ "Note that the `go/copybara` links on lines that matched the ignore regex were not"
+ " replaced. The transformation ignored these lines entirely.")
public Replace replace(
String before,
String after,
Dict<?, ?> regexes, // <String, String>
Object paths,
Boolean firstOnly,
Boolean multiline,
Boolean repeatedGroups,
net.starlark.java.eval.Sequence<?> ignore, // <String>
StarlarkThread thread)
throws EvalException {
return Replace.create(
thread.getCallerLocation(),
before,
after,
convertStringMap(regexes, "regex_groups"),
wrapGlob(paths, Glob.ALL_FILES),
firstOnly,
multiline,
repeatedGroups,
convertStringList(ignore, "patterns_to_ignore"),
workflowOptions);
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "todo_replace",
doc = "Replace Google style TODOs. For example `TODO(username, othername)`.",
parameters = {
@Param(
name = "tags",
named = true,
allowedTypes = {
@ParamType(type = net.starlark.java.eval.Sequence.class, generic1 = String.class)
},
doc = "Prefix tag to look for",
defaultValue = "['TODO', 'NOTE']"),
@Param(
name = "mapping",
named = true,
doc = "Mapping of users/strings",
defaultValue = "{}"),
@Param(
name = "mode",
named = true,
doc =
"Mode for the replace:<ul><li>'MAP_OR_FAIL': Try to use the mapping and if not"
+ " found fail.</li><li>'MAP_OR_IGNORE': Try to use the mapping but ignore if"
+ " no mapping found.</li><li>'MAP_OR_DEFAULT': Try to use the mapping and use"
+ " the default if not found.</li><li>'SCRUB_NAMES': Scrub all names from"
+ " TODOs. Transforms 'TODO(foo)' to 'TODO'</li><li>'USE_DEFAULT': Replace any"
+ " TODO(foo, bar) with TODO(default_string)</li></ul>",
defaultValue = "'MAP_OR_IGNORE'"),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to the workdir representing the files to apply the"
+ " transformation. For example, glob([\"**.java\"]), matches all java files"
+ " recursively. Defaults to match all the files recursively.",
defaultValue = "None"),
@Param(
name = "default",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc =
"Default value if mapping not found. Only valid for 'MAP_OR_DEFAULT' or"
+ " 'USE_DEFAULT' modes",
defaultValue = "None"),
@Param(
name = "ignore",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc =
"If set, elements within TODO (with usernames) that match the regex will be "
+ "ignored. For example ignore = \"foo\" would ignore \"foo\" in "
+ "\"TODO(foo,bar)\" but not \"bar\".",
defaultValue = "None"),
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
@Example(
title = "Simple update",
before = "Replace TODOs and NOTES for users in the mapping:",
code =
"core.todo_replace(\n"
+ " mapping = {\n"
+ " 'test1' : 'external1',\n"
+ " 'test2' : 'external2'\n"
+ " }\n"
+ ")",
after =
"Would replace texts like TODO(test1) or NOTE(test1, test2) with TODO(external1)"
+ " or NOTE(external1, external2)")
@Example(
title = "Scrubbing",
before = "Remove text from inside TODOs",
code = "core.todo_replace(\n" + " mode = 'SCRUB_NAMES'\n" + ")",
after =
"Would replace texts like TODO(test1): foo or NOTE(test1, test2):foo with TODO:foo"
+ " and NOTE:foo")
@Example(
title = "Ignoring Regex Patterns",
before = "Ignore regEx inside TODOs when scrubbing/mapping",
code = "core.todo_replace(\n" + " mapping = { 'aaa' : 'foo'},\n" + " ignore = 'b/.*'\n)",
after = "Would replace texts like TODO(b/123, aaa) with TODO(b/123, foo)")
public TodoReplace todoReplace(
net.starlark.java.eval.Sequence<?> skyTags, // <String>
Dict<?, ?> skyMapping, // <String, String>
String modeStr,
Object paths,
Object skyDefault,
Object regexToIgnore,
StarlarkThread thread)
throws EvalException {
Mode mode = stringToEnum("mode", modeStr, Mode.class);
Map<String, String> mapping = convertStringMap(skyMapping, "mapping");
String defaultString = convertFromNoneable(skyDefault, /*defaultValue=*/null);
ImmutableList<String> tags =
ImmutableList.copyOf(convertStringList(skyTags, "tags"));
String ignorePattern = convertFromNoneable(regexToIgnore, null);
Pattern regexIgnorelist = ignorePattern != null ? Pattern.compile(ignorePattern) : null;
check(!tags.isEmpty(), "'tags' cannot be empty");
if (mode == Mode.MAP_OR_DEFAULT || mode == Mode.USE_DEFAULT) {
check(defaultString != null, "'default' needs to be set for mode '%s'", mode);
} else {
check(defaultString == null, "'default' cannot be used for mode '%s'", mode);
}
if (mode == Mode.USE_DEFAULT || mode == Mode.SCRUB_NAMES) {
check(mapping.isEmpty(), "'mapping' cannot be used with mode %s", mode);
}
return new TodoReplace(
thread.getCallerLocation(),
wrapGlob(paths, Glob.ALL_FILES),
tags,
mode,
mapping,
defaultString,
workflowOptions.parallelizer(),
regexIgnorelist);
}
public static final String TODO_FILTER_REPLACE_EXAMPLE = ""
+ "core.filter_replace(\n"
+ " regex = 'TODO\\\\((.*?)\\\\)',\n"
+ " group = 1,\n"
+ " mapping = core.replace_mapper([\n"
+ " core.replace(\n"
+ " before = '${p}foo${s}',\n"
+ " after = '${p}fooz${s}',\n"
+ " regex_groups = { 'p': '.*', 's': '.*'}\n"
+ " ),\n"
+ " core.replace(\n"
+ " before = '${p}baz${s}',\n"
+ " after = '${p}bazz${s}',\n"
+ " regex_groups = { 'p': '.*', 's': '.*'}\n"
+ " ),\n"
+ " ],\n"
+ " all = True\n"
+ " )\n"
+ ")";
public static final String SIMPLE_FILTER_REPLACE_EXAMPLE = ""
+ "core.filter_replace(\n"
+ " regex = 'a.*',\n"
+ " mapping = {\n"
+ " 'afoo': 'abar',\n"
+ " 'abaz': 'abam'\n"
+ " }\n"
+ ")";
@SuppressWarnings("unused")
@StarlarkMethod(
name = "filter_replace",
doc =
"Applies an initial filtering to find a substring to be replaced and then applies"
+ " a `mapping` of replaces for the matched text.",
parameters = {
@Param(
name = "regex",
named = true,
doc = "A re2 regex to match a substring of the file",
allowedTypes = {@ParamType(type = String.class)}),
@Param(
name = "mapping",
named = true,
doc = "A mapping function like core.replace_mapper or a dict with mapping values.",
defaultValue = "{}"),
@Param(
name = "group",
named = true,
allowedTypes = {
@ParamType(type = StarlarkInt.class),
@ParamType(type = NoneType.class),
},
doc =
"Extract a regex group from the matching text and pass this as parameter to"
+ " the mapping instead of the whole matching text.",
defaultValue = "None"),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to the workdir representing the files to apply the"
+ " transformation. For example, glob([\"**.java\"]), matches all java files"
+ " recursively. Defaults to match all the files recursively.",
defaultValue = "None"),
@Param(
name = "reverse",
named = true,
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc = "A re2 regex used as reverse transformation",
defaultValue = "None"),
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
@DocDefault(field = "reverse", value = "regex")
@DocDefault(field = "group", value = "Whole text")
@Example(
title = "Simple replace with mapping",
before = "Simplest mapping",
code = SIMPLE_FILTER_REPLACE_EXAMPLE)
@Example(
title = "TODO replace",
before = "This replace is similar to what it can be achieved with core.todo_replace:",
code = TODO_FILTER_REPLACE_EXAMPLE)
public FilterReplace filterReplace(
String regex,
Object mapping,
Object group,
Object paths,
Object reverse,
StarlarkThread thread)
throws EvalException {
ReversibleFunction<String, String> func = getMappingFunction(mapping);
String afterPattern = convertFromNoneable(reverse, regex);
int numGroup = convertFromNoneable(group, StarlarkInt.of(0)).toInt("group");
Pattern before = Pattern.compile(regex);
check(
numGroup <= before.groupCount(),
"group idx is greater than the number of groups defined in '%s'. Regex has %s groups",
before.pattern(),
before.groupCount());
Pattern after = Pattern.compile(afterPattern);
check(
numGroup <= after.groupCount(),
"reverse_group idx is greater than the number of groups defined in '%s'."
+ " Regex has %s groups",
after.pattern(),
after.groupCount());
return new FilterReplace(
workflowOptions,
before,
after,
numGroup,
numGroup,
func,
wrapGlob(paths, Glob.ALL_FILES),
thread.getCallerLocation());
}
@SuppressWarnings("unchecked")
public static ReversibleFunction<String, String> getMappingFunction(Object mapping)
throws EvalException {
if (mapping instanceof Dict) {
ImmutableMap<String, String> map =
ImmutableMap.copyOf(Dict.noneableCast(mapping, String.class, String.class, "mapping"));
check(!map.isEmpty(), "Empty mapping is not allowed." + " Remove the transformation instead");
return new MapMapper(map);
}
check(
mapping instanceof ReversibleFunction,
"mapping has to be instance of" + " map or a reversible function");
return (ReversibleFunction<String, String>) mapping;
}
@StarlarkMethod(
name = "replace_mapper",
doc =
"A mapping function that applies a list of replaces until one replaces the text"
+ " (Unless `all = True` is used). This should be used with core.filter_replace or"
+ " other transformations that accept text mapping as parameter.",
parameters = {
@Param(
name = "mapping",
allowedTypes = {
@ParamType(
type = net.starlark.java.eval.Sequence.class,
generic1 = Transformation.class),
},
named = true,
doc = "The list of core.replace transformations"),
@Param(
name = "all",
named = true,
positional = false,
doc = "Run all the mappings despite a replace happens.",
defaultValue = "False"),
})
public ReplaceMapper mapImports(
net.starlark.java.eval.Sequence<?> mapping, // <Transformation>
Boolean all)
throws EvalException {
check(!mapping.isEmpty(), "Empty mapping is not allowed");
ImmutableList.Builder<Replace> replaces = ImmutableList.builder();
for (Transformation t :
net.starlark.java.eval.Sequence.cast(mapping, Transformation.class, "mapping")) {
check(
t instanceof Replace,
"Only core.replace can be used as mapping, but got: %S", t.describe());
Replace replace = (Replace) t;
check(
replace.getPaths().equals(Glob.ALL_FILES),
"core.replace cannot use" + " 'paths' inside core.replace_mapper");
replaces.add(replace);
}
return new ReplaceMapper(replaces.build(), all);
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "verify_match",
doc =
"Verifies that a RegEx matches (or not matches) the specified files. Does not"
+ " transform anything, but will stop the workflow if it fails.",
parameters = {
@Param(
name = "regex",
named = true,
doc =
"The regex pattern to verify. To satisfy the validation, there has to be at"
+ "least one (or no matches if verify_no_match) match in each of the files "
+ "included in paths. The re2j pattern will be applied in multiline mode, i.e."
+ " '^' refers to the beginning of a file and '$' to its end. "
+ "Copybara uses [re2](path_to_url syntax."),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc =
"A glob expression relative to the workdir representing the files to apply the"
+ " transformation. For example, glob([\"**.java\"]), matches all java files"
+ " recursively. Defaults to match all the files recursively.",
defaultValue = "None"),
@Param(
name = "verify_no_match",
named = true,
doc = "If true, the transformation will verify that the RegEx does not match.",
defaultValue = "False"),
@Param(
name = "also_on_reversal",
named = true,
doc =
"If true, the check will also apply on the reversal. The default behavior is to"
+ " not verify the pattern on reversal.",
defaultValue = "False"),
@Param(
name = "failure_message",
named = true,
doc = "Optional string that will be included in the failure message.",
defaultValue = "None")
},
useStarlarkThread = true)
@DocDefault(field = "paths", value = "glob([\"**\"])")
public VerifyMatch verifyMatch(
String regex,
Object paths,
Boolean verifyNoMatch,
Boolean alsoOnReversal,
Object failureMessage,
StarlarkThread thread)
throws EvalException {
return VerifyMatch.create(
thread.getCallerLocation(),
regex,
wrapGlob(paths, Glob.ALL_FILES),
verifyNoMatch,
alsoOnReversal,
convertOptionalString(failureMessage),
workflowOptions.parallelizer());
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "transform",
doc =
"Groups some transformations in a transformation that can contain a particular,"
+ " manually-specified, reversal, where the forward version and reversed version"
+ " of the transform are represented as lists of transforms. The is useful if a"
+ " transformation does not automatically reverse, or if the automatic reversal"
+ " does not work for some reason."
+ "<br>"
+ "If reversal is not provided, the transform will try to compute the reverse of"
+ " the transformations list.",
parameters = {
@Param(
name = "transformations",
allowedTypes = {
@ParamType(
type = net.starlark.java.eval.Sequence.class,
generic1 = Transformation.class),
},
named = true,
doc = "The list of transformations to run as a result of running this transformation."),
@Param(
name = "reversal",
allowedTypes = {
@ParamType(
type = net.starlark.java.eval.Sequence.class,
generic1 = Transformation.class),
@ParamType(type = NoneType.class),
},
doc =
"The list of transformations to run as a result of running this"
+ " transformation in reverse.",
named = true,
positional = false,
defaultValue = "None"),
@Param(
name = "ignore_noop",
allowedTypes = {
@ParamType(type = Boolean.class),
@ParamType(type = NoneType.class),
},
doc =
"WARNING: Deprecated. Use `noop_behavior` instead.\nIn case a noop error happens in"
+ " the group of transformations (Both forward and reverse), it will be"
+ " ignored, but the rest of the transformations in the group will still be"
+ " executed. If ignore_noop is not set, we will apply the closest parent's"
+ " ignore_noop.",
named = true,
positional = false,
defaultValue = "None"),
@Param(
name = "noop_behavior",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
doc =
"How to handle no-op transformations:<br><ul> <li><b>'IGNORE_NOOP'</b>: Any no-ops"
+ " among the wrapped transformations are ignored.</li>"
+ " <li><b>'NOOP_IF_ANY_NOOP'</b>: Throws an exception as soon as a single"
+ " wrapped transformation is a no-op.</li> <li><b>'NOOP_IF_ALL_NOOP'</b>:"
+ " Ignores no-ops from the wrapped transformations unless they all no-op, in"
+ " which case an exception is thrown.</li></ul>",
named = true,
positional = false,
defaultValue = "None"),
})
@DocDefault(field = "reversal", value = "The reverse of 'transformations'")
@DocDefault(field = "noop_behavior", value = "NOOP_IF_ANY_NOOP")
public Transformation transform(
net.starlark.java.eval.Sequence<?> transformations, // <Transformation>
Object reversal,
Object ignoreNoop,
Object noopBehaviorString)
throws EvalException, ValidationException {
checkCondition(
Starlark.isNullOrNone(ignoreNoop) || Starlark.isNullOrNone(noopBehaviorString),
"The deprecated param 'ignore_noop' cannot be set simultaneously with 'noop_behavior'."
+ " Prefer using 'noop_behavior'.");
Sequence.NoopBehavior noopBehavior =
stringToEnum(
"noop_behavior",
convertFromNoneable(noopBehaviorString, "NOOP_IF_ANY_NOOP"),
Sequence.NoopBehavior.class);
if (Boolean.TRUE.equals(ignoreNoop)) {
noopBehavior = Sequence.NoopBehavior.IGNORE_NOOP;
} else if (Boolean.FALSE.equals(ignoreNoop)) {
noopBehavior = Sequence.NoopBehavior.FAIL_IF_ANY_NOOP;
}
Sequence forward =
Sequence.fromConfig(
generalOptions.profiler(),
workflowOptions,
transformations,
"transformations",
printHandler,
debugOptions::transformWrapper,
noopBehavior);
net.starlark.java.eval.Sequence<Transformation> reverseList =
convertFromNoneable(reversal, null);
if (reverseList == null) {
try {
reverseList = StarlarkList.immutableCopyOf(ImmutableList.of(forward.reverse()));
} catch (NonReversibleValidationException e) {
throw Starlark.errorf(
"transformations are not automatically reversible."
+ " Use 'reversal' field to explicitly configure the reversal of the transform");
}
}
Sequence reverse =
Sequence.fromConfig(
generalOptions.profiler(),
workflowOptions,
reverseList,
"reversal",
printHandler,
debugOptions::transformWrapper,
noopBehavior);
return new ExplicitReversal(forward, reverse);
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "dynamic_transform",
doc =
"Create a dynamic Skylark transformation. This should only be used by libraries"
+ " developers",
parameters = {
@Param(name = "impl", named = true, doc = "The Skylark function to call"),
@Param(
name = "params",
named = true,
doc = "The parameters to the function. Will be available under ctx.params",
defaultValue = "{}"),
},
useStarlarkThread = true)
@Example(
title = "Create a dynamic transformation without parameters",
before =
"To define a simple dynamic transformation, you don't even need to use"
+ " `core.dynamic_transform`. The following transformation sets the change's message"
+ " to uppercase.",
code = "def test(ctx):\n ctx.set_message(ctx.message.upper())",
testExistingVariable = "test",
after =
"After defining this function, you can use `test` as a transformation in"
+ " `core.workflow`.")
@Example(
title = "Create a dynamic transformation with parameters",
before =
"If you want to create a library that uses dynamic transformations, you probably want to"
+ " make them customizable. In order to do that, in your library.bara.sky, you need"
+ " to hide the dynamic transformation (prefix with '\\_') and instead expose a"
+ " function that creates the dynamic transformation with the param:",
code =
""
+ "def _test_impl(ctx):\n"
+ " ctx.set_message("
+ "ctx.message + ctx.params['name'] + str(ctx.params['number']) + '\\n')\n"
+ "\n"
+ "def test(name, number = 2):\n"
+ " return core.dynamic_transform(impl = _test_impl,\n"
+ " params = { 'name': name, 'number': number})",
testExistingVariable = "test",
after =
"After defining this function, you can use `test('example', 42)` as a transformation"
+ " in `core.workflow`.")
public Transformation dynamic_transform(
StarlarkCallable impl, Dict<?, ?> params, StarlarkThread thread) {
return new SkylarkTransformation(
impl, Dict.<Object, Object>copyOf(thread.mutability(), params), printHandler);
}
// TODO(malcon): Deprecate this method once all references moved to core.action
@SuppressWarnings("unused")
@StarlarkMethod(
name = "dynamic_feedback",
doc =
"Create a dynamic Skylark feedback migration. This should only be used by libraries"
+ " developers",
parameters = {
@Param(
name = "impl",
named = true,
doc = "The Skylark function to call"),
@Param(
name = "params",
named = true,
doc = "The parameters to the function. Will be available under ctx.params",
defaultValue = "{}"),
},
useStarlarkThread = true)
public Action dynamicFeedback(StarlarkCallable impl, Dict<?, ?> params, StarlarkThread thread) {
return new StarlarkAction(findCallableName(impl, thread),
impl, Dict.<Object, Object>copyOf(thread.mutability(), params), printHandler);
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "action",
doc = "Create a dynamic Skylark action. This should only be used by libraries"
+ " developers. Actions are Starlark functions that receive a context, perform"
+ " some side effect and return a result (success, error or noop).",
parameters = {
@Param(
name = "impl",
named = true,
doc = "The Skylark function to call"),
@Param(
name = "params",
named = true,
doc = "The parameters to the function. Will be available under ctx.params",
defaultValue = "{}"),
},
useStarlarkThread = true)
public Action action(StarlarkCallable impl, Dict<?, ?> params, StarlarkThread thread) {
return new StarlarkAction(findCallableName(impl, thread),
impl, Dict.<Object, Object>copyOf(thread.mutability(), params), printHandler);
}
private String findCallableName(StarlarkCallable impl, StarlarkThread thread) {
String name = impl.getName();
ImmutableList<CallStackEntry> stack = thread.getCallStack();
if (name.equals("lambda") && stack.size() > 1
&& !stack.get(stack.size() - 2).name.equals("<toplevel>")) {
name = stack.get(stack.size() - 2).name;
}
return name;
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "fail_with_noop",
doc = "If invoked, it will fail the current migration as a noop",
parameters = {
@Param(name = "msg", named = true, doc = "The noop message"),
})
public Action failWithNoop(String msg) throws EmptyChangeException {
throw new EmptyChangeException(msg);
}
@StarlarkMethod(name = "main_config_path",
doc = "Location of the config file. This is subject to change",
structField = true)
public String getMainConfigFile() {
return mainConfigFile.getIdentifier();
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "feedback",
doc =
"Defines a migration of changes' metadata, that can be invoked via the Copybara command"
+ " in the same way as a regular workflow migrates the change itself.\n"
+ "\n"
+ "It is considered change metadata any information associated with a change"
+ " (pending or submitted) that is not core to the change itself. A few examples:\n"
+ "<ul>\n"
+ " <li> Comments: Present in any code review system. Examples: GitHub PRs or"
+ " Gerrit code reviews.</li>\n"
+ " <li> Labels: Used in code review systems for approvals and/or CI results. "
+ " Examples: GitHub labels, Gerrit code review labels.</li>\n"
+ "</ul>\n"
+ "For the purpose of this workflow, it is not considered metadata the commit"
+ " message in Git, or any of the contents of the file tree.\n"
+ "\n",
parameters = {
@Param(
name = "name",
doc = "The name of the feedback workflow.",
positional = false,
named = true),
@Param(
name = "origin",
doc = "The trigger of a feedback migration.",
positional = false,
named = true),
@Param(
name = "destination",
doc =
"Where to write change metadata to. This is usually a code review system like "
+ "Gerrit or GitHub PR.",
positional = false,
named = true),
@Param(
name = "actions",
doc =
""
+ "DEPRECATED: **DO NOT USE**\n"
+ "A list of feedback actions to perform, with the following semantics:\n"
+ " - There is no guarantee of the order of execution.\n"
+ " - Actions need to be independent from each other.\n"
+ " - Failure in one action might prevent other actions from executing.\n",
defaultValue = "[]",
documented = false,
positional = false,
named = true),
@Param(
name = "action",
doc =
"An action to execute when the migration is triggered",
defaultValue = "None",
positional = false,
named = true),
@Param(
name = "description",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
named = true,
positional = false,
doc = "A description of what this workflow achieves",
defaultValue = "None"),
},
useStarlarkThread = true)
public NoneType feedback(
String workflowName,
Trigger trigger,
EndpointProvider<?> destination,
net.starlark.java.eval.Sequence<?> actionList,
Object action,
Object description,
StarlarkThread thread)
throws EvalException {
ActionMigration migration =
new ActionMigration(
workflowName,
convertFromNoneable(description, null),
mainConfigFile,
trigger,
new StructImpl(ImmutableMap.of("destination", destination.getEndpoint())),
handleActionActionsMigration(actionList, action),
generalOptions,
"feedback",
/* fileSystem= */ false);
Module module = Module.ofInnermostEnclosingStarlarkFunction(thread);
registerGlobalMigration(workflowName, migration, module);
return Starlark.NONE;
}
// TODO(b/269526710): Remove when all users are migrated to 'action' field
private ImmutableList<Action> handleActionActionsMigration(
net.starlark.java.eval.Sequence<?> actionList, Object action) throws EvalException {
if (actionList.isEmpty() && action == Starlark.NONE) {
throw new EvalException("'action' is a required field");
}
if ((!actionList.isEmpty()) && action != Starlark.NONE) {
throw new EvalException("Cannot use both 'action' and 'actions' field. 'actions' is"
+ " deprecated, so use 'action'");
}
if (action != Starlark.NONE) {
// Not warn since we are going to migrate our internal users and we don't know of any
// external user using this.
return ImmutableList.of(maybeWrapAction(printHandler, action));
} else {
return convertListOfActions(actionList, printHandler);
}
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "action_migration",
doc = "Defines a migration that is more flexible/less-opinionated migration than"
+ " `core.workflow`. Most of the users should not use this migration and instead"
+ " use `core.workflow` for moving code. In particular `core.workflow` provides"
+ " many helping functionality like version handling, ITERATIVE/SQUASH/CHANGE_REQUEST"
+ " modes, --read-config-from-change dynamic config, etc.\n"
+ "\n"
+ "These are the features that raw_migration provides:<ul>\n"
+ " <li>Support for migrations that don't move source code (similar to feedback)</li>\n"
+ " <li>Support for migrations that talk to more than one origin/destination endpoits"
+ " (Feature still in progress)</li>\n"
+ " <li>Custom management of versioning: For example moving non-linear/multiple"
+ " versions (Instead of `core.workflow`, that moves source code in relation to"
+ " the previous migrated code and is able to only track one branch).</li>\n"
+ "</ul>\n"
+ "",
parameters = {
@Param(
name = "name",
doc = "The name of the migration.",
positional = false,
named = true),
@Param(
name = "origin",
doc = "The trigger endpoint of the migration. Accessible as `ctx.origin`",
positional = false,
named = true),
@Param(
name = "endpoints",
doc = "Zero or more endpoints that the migration will have access for read and/or"
+ " write. This is a field that should be defined as:\n"
+ "```\n"
+ " endpoint = struct(\n"
+ " some_endpoint = foo.foo_api(...configuration...),\n"
+ " other_endpoint = baz.baz_api(...configuration...),\n"
+ " )\n"
+ "```\n"
+ "Then they will be accessible in the action as `ctx.endpoints.some_endpoint`"
+ " and `ctx.endpoints.other_endpoint`",
positional = false,
named = true),
@Param(
name = "action",
doc =
"The action to execute when the migration is triggered.\n",
positional = false,
named = true),
@Param(
name = "description",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
named = true,
positional = false,
doc = "A description of what this workflow achieves",
defaultValue = "None"),
@Param(
name = "filesystem",
allowedTypes = {
@ParamType(type = Boolean.class),
},
named = true,
positional = false,
doc = "If true, the migration provide access to the filesystem to the endpoints",
defaultValue = "False"),
},
documented = false,
useStarlarkThread = true)
public NoneType actionMigration(
String workflowName,
Trigger trigger,
Structure endpoints,
Object action,
Object description,
Boolean filesystem,
StarlarkThread thread)
throws EvalException {
ImmutableList<Action> actions = ImmutableList.of(maybeWrapAction(printHandler, action));
ActionMigration migration =
new ActionMigration(
workflowName,
convertFromNoneable(description, null),
mainConfigFile,
trigger, new StructImpl((getEndpoints(endpoints))),
actions,
generalOptions,
"action_migration",
filesystem);
Module module = Module.ofInnermostEnclosingStarlarkFunction(thread);
registerGlobalMigration(workflowName, migration, module);
return Starlark.NONE;
}
private ImmutableMap<String, Object> getEndpoints(Structure endpoints)
throws EvalException {
Builder<String, Object> result = ImmutableMap.builder();
ImmutableCollection<String> fields = endpoints.getFieldNames();
// TODO(b/269526710): Enable more than one endpoint
check(fields.size() == 1 && Iterables.getOnlyElement(fields).equals("destination"),
"Temporarily core.action_migration only supports one endpoint called destination");
for (String fieldName : fields) {
Object epProvider = endpoints.getValue(fieldName);
check(epProvider instanceof EndpointProvider,
"Only enpoints can be used as values in 'endpoints' but got"
+ " type '%s' for %s", Starlark.type(epProvider), fieldName);
result.put(fieldName, ((EndpointProvider<?>) epProvider).getEndpoint());
}
return result.build();
}
@StarlarkMethod(
name = "console",
structField = true,
doc = "Returns a handle to the console object.")
public SkylarkConsole console()
throws EvalException {
synchronized (this) {
if (console == null) {
console = new SkylarkConsole(generalOptions.console());
}
}
return console;
}
/** Registers a {@link Migration} in the global registry. */
protected void registerGlobalMigration(String name, Migration migration, Module module)
throws EvalException {
getGlobalMigrations(module).addMigration(name, migration);
}
@StarlarkMethod(
name = "format",
doc =
"Formats a String using Java's <a"
+ " href='path_to_url#format-java.lang.String-java.lang.Object...-'><code>String.format</code></a>.",
parameters = {
@Param(name = "format", named = true, doc = "The format string"),
@Param(name = "args", named = true, doc = "The arguments to format"),
})
public String format(String format, net.starlark.java.eval.Sequence<?> args)
throws EvalException {
// This function presumably exists because Starlark-in-Java's 'str % tuple'
// operator doesn't support width and precision.
// Convert StarlarkInt to types known to Java's String.format.
Object[] array = args.toArray(new Object[0]);
for (int i = 0; i < array.length; i++) {
if (array[i] instanceof StarlarkInt) {
array[i] = ((StarlarkInt) array[i]).toNumber();
}
}
try {
return String.format(format, array);
} catch (IllegalFormatException e) {
throw Starlark.errorf("Invalid format: %s: %s", format, e.getMessage());
}
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "latest_version",
doc =
"Selects the latest version that matches the format. Using --force"
+ " in the CLI will force to use the reference passed as argument instead.",
parameters = {
@Param(
name = "format",
doc =
"The format of the version. If using it for git, it has to use the complete"
+ "refspec (e.g. 'refs/tags/${n0}.${n1}.${n2}')",
named = true),
@Param(
name = "regex_groups",
named = true,
doc =
"A set of named regexes that can be used to match part of the versions. Copybara"
+ " uses [re2](path_to_url syntax. Use the"
+ " following nomenclature n0, n1, n2 for the version part (will use numeric"
+ " sorting) or s0, s1, s2 (alphabetic sorting). Note that there can be mixed"
+ " but the numbers cannot be repeated. In other words n0, s1, n2 is valid but"
+ " not n0, s0, n1. n0 has more priority than n1. If there are fields where"
+ " order is not important, use s(N+1) where N ist he latest sorted field."
+ " Example {\"n0\": \"[0-9]+\", \"s1\": \"[a-z]+\"}",
defaultValue = "{}"),
},
useStarlarkThread = true)
@Example(
title = "Version selector for Git tags",
before = "Example of how to match tags that follow semantic versioning",
code =
"core.latest_version(\n"
+ " format = \"refs/tags/${n0}.${n1}.${n2}\","
+ " regex_groups = {\n"
+ " 'n0': '[0-9]+',"
+ " 'n1': '[0-9]+',"
+ " 'n2': '[0-9]+',"
+ " }"
+ ")")
@Example(
title =
"Version selector for Git tags with mixed version semantics with X.Y.Z and X.Y tagging",
before = "Edge case example: we allow a '.' literal prefix for numeric regex groups.",
code =
"core.latest_version(\n"
+ " format = \"refs/tags/${n0}.${n1}${n2}\","
+ " regex_groups = {\n"
+ " 'n0': '[0-9]+',"
+ " 'n1': '[0-9]+',"
+ " 'n2': '(.[0-9]+)?',"
+ " }"
+ ")")
public VersionSelector versionSelector(
String regex, Dict<?, ?> groups, StarlarkThread thread) // <String, String>
throws EvalException {
Map<String, String> groupsMap = Dict.cast(groups, String.class, String.class, "regex_groups");
TreeMap<Integer, VersionElementType> elements = new TreeMap<>();
Pattern regexKey = Pattern.compile("([sn])([0-9])");
for (String s : groupsMap.keySet()) {
Matcher matcher = regexKey.matcher(s);
check(
matcher.matches(),
"Incorrect key for regex_group. Should be in the "
+ "format of n0, n1, etc. or s0, s1, etc. Value: %s",
s);
VersionElementType type = matcher.group(1).equals("s") ? ALPHABETIC : NUMERIC;
int num = Integer.parseInt(matcher.group(2));
check(
!elements.containsKey(num) || elements.get(num) == type,
"Cannot use same n in both s%s and n%s: %s",
num,
num,
s);
elements.put(num, type);
}
for (Integer num : elements.keySet()) {
if (num > 0) {
check(
elements.containsKey(num - 1),
"Cannot have s%s or n%s if s%s or n%s" + " doesn't exist",
num,
num,
num - 1,
num - 1);
}
}
LatestVersionSelector versionPicker = new LatestVersionSelector(
regex, Replace.parsePatterns(groupsMap), elements, thread.getCallerLocation());
ImmutableList<String> extraGroups = versionPicker.getUnmatchedGroups();
check(extraGroups.isEmpty(), "Extra regex_groups not used in pattern: %s", extraGroups);
if (generalOptions.isForced() || generalOptions.isVersionSelectorUseCliRef()) {
return new OrderedVersionSelector(
ImmutableList.of(new RequestedVersionSelector(), versionPicker));
}
return versionPicker;
}
private static ImmutableList<Action> convertListOfActions(
net.starlark.java.eval.Sequence<?> feedbackActions, StarlarkThread.PrintHandler printHandler)
throws EvalException {
ImmutableList.Builder<Action> actions = ImmutableList.builder();
for (Object action : feedbackActions) {
actions.add(maybeWrapAction(printHandler, action));
}
return actions.build();
}
private static Action maybeWrapAction(PrintHandler printHandler, Object action)
throws EvalException {
if (action instanceof StarlarkCallable) {
return new StarlarkAction(((StarlarkCallable) action).getName(),
(StarlarkCallable) action, Dict.empty(), printHandler);
} else if (action instanceof Action) {
return (Action) action;
} else {
throw Starlark.errorf(
"Invalid action '%s 'of type: %s", action, action.getClass());
}
}
@Override
public void setConfigFile(ConfigFile mainConfigFile, ConfigFile currentConfigFile) {
this.mainConfigFile = mainConfigFile;
}
@Override
public void setAllConfigResources(
Supplier<ImmutableMap<String, ConfigFile>> allConfigFiles) {
this.allConfigFiles = allConfigFiles;
}
@Override
public void setPrintHandler(StarlarkThread.PrintHandler printHandler) {
this.printHandler = printHandler;
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "merge_import_config",
doc = "Describes which paths merge_import mode should be applied",
parameters = {
@Param(
name = "package_path",
doc = "Package location (ex. 'google3/third_party/java/foo').",
named = true,
positional = false),
@Param(
name = "paths",
doc = "Glob of paths to apply merge_import mode, relative to package_path",
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class)
},
defaultValue = "None",
named = true,
positional = false),
@Param(
name = "use_consistency_file",
documented = false,
doc = "under development",
defaultValue = "False",
named = true,
positional = false),
@Param(
name = "merge_strategy",
doc =
"The strategy to use for merging files. DIFF3 shells out to diff3 with the -m flag"
+ " to perform a 3-way merge. PATCH_MERGE creates a patch file by diffing the"
+ " baseline and destination files, and then applies the patch to the origin"
+ " file.",
defaultValue = "'DIFF3'",
named = true,
positional = false)
})
public MergeImportConfiguration mergeImportConfiguration(
String packagePath, Object pathsObj, boolean useConsistencyFile, String mergeStrategy)
throws EvalException {
Glob paths = wrapGlob(pathsObj, Glob.ALL_FILES);
return MergeImportConfiguration.create(
packagePath,
paths,
useConsistencyFile,
MergeImportConfiguration.MergeStrategy.valueOf(mergeStrategy));
}
@SuppressWarnings("unused")
@StarlarkMethod(
name = "autopatch_config",
doc = "Describes in the configuration for automatic patch file generation",
parameters = {
@Param(
name = "header",
doc = "A string to include at the beginning of each patch file",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
named = true,
positional = false,
defaultValue = "None"),
@Param(
name = "suffix",
doc = "Suffix to use when saving patch files",
named = true,
positional = false,
defaultValue = "'.patch'"),
@Param(
name = "directory_prefix",
doc =
"Directory prefix used to relativize filenames when writing patch files. E.g. if"
+ " filename is third_party/foo/bar/bar.go and we want to write"
+ " third_party/foo/PATCHES/bar/bar.go, the value for this field would be"
+ " 'third_party/foo'",
named = true,
positional = false,
// TODO: temporarily include a default value to not break existing usage
defaultValue = "'None'",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
}),
@Param(
name = "directory",
doc = "Directory in which to save the patch files.",
allowedTypes = {
@ParamType(type = String.class),
@ParamType(type = NoneType.class),
},
named = true,
positional = false,
defaultValue = "'AUTOPATCHES'"),
@Param(
name = "strip_file_names_and_line_numbers",
doc = "When true, strip filenames and line numbers from patch files",
named = true,
positional = false,
defaultValue = "False"),
@Param(
name = "strip_file_names",
doc = "When true, strip filenames from patch files",
named = true,
positional = false,
defaultValue = "False"),
@Param(
name = "strip_line_numbers",
doc = "When true, strip line numbers from patch files",
named = true,
positional = false,
defaultValue = "False"),
@Param(
name = "paths",
named = true,
allowedTypes = {
@ParamType(type = Glob.class),
@ParamType(type = StarlarkList.class, generic1 = String.class),
@ParamType(type = NoneType.class),
},
doc = "Only create patch files that match glob. Default is to match all files",
defaultValue = "None",
positional = false),
})
public AutoPatchfileConfiguration autoPatchfileConfiguration(
Object fileContentsPrefix,
String suffix,
Object directoryPrefix,
Object directory,
boolean stripFileNamesAndLineNumbers,
boolean stripFileNames,
boolean stripLineNumbers,
Object globObj)
throws EvalException {
Glob glob = wrapGlob(globObj, Glob.ALL_FILES);
if (stripFileNamesAndLineNumbers && (stripFileNames || stripLineNumbers)) {
throw Starlark.errorf(
"Cannot set both strip_file_names_and_line_numbers and strip_file_names /"
+ " strip_line_numbers");
}
if (stripFileNamesAndLineNumbers) {
stripFileNames = true;
stripLineNumbers = true;
}
return AutoPatchfileConfiguration.create(
convertFromNoneable(fileContentsPrefix, null),
suffix,
convertFromNoneable(directoryPrefix, null),
convertFromNoneable(directory, null),
stripFileNames,
stripLineNumbers,
glob);
}
}
```
|
```smalltalk
"
I am reusable menu group for commands.
I am supposed to group commands which are related to querying the system
"
Class {
#name : 'ClyQueryMenuGroup',
#superclass : 'CmdMenuGroup',
#category : 'Calypso-Browser-MenuGroups',
#package : 'Calypso-Browser',
#tag : 'MenuGroups'
}
{ #category : 'testing' }
ClyQueryMenuGroup >> isInlined [
^true
]
{ #category : 'accessing' }
ClyQueryMenuGroup >> name [
^'Query'
]
{ #category : 'accessing' }
ClyQueryMenuGroup >> order [
^1
]
```
|
```xml
import type { PresetProperty } from 'storybook/internal/types';
export * from './types';
export const addons: PresetProperty<'addons'> = [
require.resolve('@storybook/preset-react-webpack/dist/framework-preset-cra'),
require.resolve('@storybook/preset-react-webpack/dist/framework-preset-react-docs'),
];
```
|
Izena Island () (Japanese: Izena-jima) is located in the East China Sea, north-west of Okinawa Island, in the Ryukyu Islands of Japan. The island has a diameter of about and is surrounded by coral reefs, blue sea, and white beaches. It is administered as Izena Village. The five settlements of about equal size and population which are located on the island are Izena, Nakada, Shomi, Uchihana, and Jicchaku (also called Serikyaku).
Izena village was the birthplace of King Shō En (1415–1476), the first king of the Second Shō Dynasty of the Ryūkyū Kingdom. Shō Shishō (1402–1439), of the short lived Shō Dynasty, was also from the Izena Island. The worshiping rites of Agari Umai (“worship from afar”) and the ritual of welcoming of sea deities are observed in this island. Izena Island is also the birthplace of the contemporary artist Naka Bokunen and musician Irei Shunichi (伊禮俊一).
The island is also associated with the pottery and archaeological ruins found here of the Okinawa's pre-historic Jōmon period (c. 14,000 BC – c. 300 BC). The island has historic sites such as Izena Tamaudun Mausoleum, Izena Castle, a historical fortress built around in the 14th century, and a park which has bronze statue of King Shō En when he was known as Uchima Kanemaru (内間金丸).
Geography
Izena Island lies in the East China Sea, to the northwest of Okinawa Island, and southeast of Iheya Island. Noho Island lies off of Iheya Island's southern tip. Gushikawa Island and Cape Agarizaki lies between Iheya Island and Izena Island. Izena and Iheya are separated only by a narrow strait; the landscape of the two islands is alike with sugarcane fields and cattle farms.
The total area is , and the peripheral sea coast line is . The island's topography features a series of mountains spanning from the northwest to the southeast of the island, with generally flat, arable land covering the remainder. The island has several white sandy beaches. Coral reefs form a lagoon or lake and are natural breakwaters. Izena's rocky southern coastline has rock formations such as 'Umi Gitara' and 'Agi Gitara', dramatically rising from the land and sea.
Climate
History
The island's settlement history goes back at least 3000 years. Archeological excavations have revealed many artifacts in the form of axes and knives made of stone and also pottery and human bones. The earliest recorded history is of five lineages lasting over 692 years in the period 1187 to 1879. The Second Shō Dynasty ruled between 1470 and 1879, with the first king, Shō En, born on this island. Artifacts related to the period of this dynasty are seen in the village of Izena. King Shō En not only applied for “recognition and investiture to enhance the prestige and authority of his family among his countrymen” but had also built an elegant tomb on a small hill and consecrated the remains of his parents; his sister was appointed the chief Noro in Iheya. Sho En showed great reverence to his father and to the predecessors belonging to the royalty of the First Shō Dynasty, whom he had replaced with the Shō Second Dynasty. After the Battle of Okinawa and subsequent to liberation day after World War II, two Americans were beheaded on Izena Island. USS Bush and USS Drexler were sunk by kamikaze aircraft to the northwest of the island on 6 April 1945 and 28 May 1945 respectively.
Economy
The island's main economic activity is centered around agricultural farming, fisheries and commerce. In 2003, Izena village was declared a "Tourism Village". Naka Bokunen, a well known woodblock artist of the village, also knowledgeable about its history and culture, has been assigned as a Tourism Ambassador and given the task of promoting tourism on the island. To promote environmental concerns and tourism, a tax called the “Izena Village Environmental Cooperation Tax”, a levy of 100 yen for every entry to the island, was introduced in 2005. Mozuke, a type of sea weed, is a major export; its production ranks third in Okinawa prefecture. It is harvested after a growth period of six months. The economy of the people is also sustained by tokobushi, a type of abalone; the process is being improved to offer a better yield. The total annual income of the villagers is reported to be 3.47 billion yen, giving a per capita income of 1.78 million yen per person, which is about the same as for the Okinawa Island.
Monuments
Three most prominent monuments on the island are: Izena Tamaudun Mausoleum, the historical fortress of Izena Castle, and a park which has a bronze statue of King Shō En. Izena Tamaudun Mausoleum was built in 1501, during the reign of King Shō Shin, near the Izena Castle. In 1958, Okinawa Prefecture designated this as a Historical Site. The royal mausoleum is of Shō Shishō, his wife, and daughter (the father, mother, and sister of King Shō Hashi). Izena Castle is a Ryūkyūan gusuku built around the 14th century by Samekawa, son of the Yogura Chief of Iheya Island. It is built over a limestone outcrop about above sea level on the south eastern side of the island. The fortress has three sides which are near vertical cliffs; the south, west and east faces of the fortress are rock cliffs, while the northern side provides entry to the castle through a series of steps cut into the hill. There are several chambers in the castle which are separated by walls, built with piled-up pieces of coral limestone, in height. The chambers have many sacred relics such as utaki (holy enclosures of the Ryūkyūan religion) and also celadons, Sueki wares, and other important objects, which are also seen in other gusuku sites. There is a bronze statue of Kanemeru, Shō En's name before his reign, in the park which commemorates his birth in Izena. The tomb holds the remains of Kanemaru.
Culture
There is an ancient temple to God Asagi in Seriyaku settlement of Izena village. Festivals of harvest of rice, wheat, unzami and Shinigu and other products are held here. The temple is on the southern part of the island, which is built on four steel columns with a thatched roof of square with eaves of height. The floor is made of mud and the temple belongs to the Tangible Race Cultural Heritage. A notable religious place in the island is the Akara utaki (meaning sacred place) which has two rocky boulders, named umi gitara (sea bluff) and agi gitara (land bluff). The word gitara is said to have originated from India. Ancestor worship is widely practiced which is a blend of Chinese and Korean beliefs locally adopted in which a mythical love story is linked to the two rocky bluffs of umi gitara and agi gitara said to represent the two lovers who died but made to live by god, as god wished it as if “gazing at each other from a close distance, they are forever in love.”
Sport
Popular sports in the island are soccer, volleyball, and soft tennis. The "IZENA 88" Triathlon is a regular event that is organized during October every year, in Izena village, with participants from Japan and other parts of the world.
Transport and education
Izena Island is accessible by the ferry New Izena, which makes two daily round trips between Nakada Port and Unten Port in Nakijin village, which is located north of Nago on Okinawa's main island. The ferry trip is approximately one hour in duration. There are no airports on the island; Naha Airport on the Okinawa Island offers the nearest air transport.
There are two schools on the island, the Izena Elementary School (151 students) and the Izena Junior High School (71 students), which are supported by the Japan Exchange and Teaching (JET) program with an Assistant Teacher in English language. However, for High School the students of the Island go to Okinawa Island.
According to a leprosy survey carried out in Okinawa Islands, it is reported that Izena Island is one of the highest leprosy endemic islands in the northern part of the Okinawa islands.
Notable people
Naka Bokunen
Shō En
Shō Shishō
Irei Shunichi
References
External links
Official website (Japanese language)
Ryukyu Islands
Islands of Okinawa Prefecture
|
Delphinium robustum is a species of flowering plant in the buttercup family known by the common names Wahatoya Creek larkspur and robust larkspur. It is native to Colorado and New Mexico in the United States.
This species is a perennial herb with stems growing up to about 2 meters tall, or sometimes taller. It is known to exceed 3 meters tall at times. The stems are hairless, waxy, and sometimes red in color near the base. The leaves have rounded lobed blades borne on long petioles. The inflorescence is a raceme that sometimes branches, becoming a panicle. It can contain up to 180 flowers. The flower has blue, purple-blue, lavender, or sometimes pink sepals. The petals have sparse yellow or white hairs. The fruit is between 1 and 2 centimeters long. Flowering occurs in July through September.
This plant grows in riparian woodlands and subalpine meadows. It can be found in canyon bottoms, aspen groves, and open woods.
Threats to this species are not clear because little is known about the plant. There are a number of potential threats, including road-related disturbances such as motorized vehicles, erosion, and road construction.
References
External links
robustum
Flora of Colorado
Flora of New Mexico
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.