text
stringlengths
1
22.8M
```go package main import ( "os/exec" "syscall" ) // cmdLifecycleToParentIfPossible is a thin wrapper around prctl(PR_SET_PDEATHSIG) // on Linux. func cmdLifecycleToParentIfPossible(c *exec.Cmd) { c.SysProcAttr = &syscall.SysProcAttr{ Pdeathsig: syscall.SIGTERM, } } ```
```c /* $NetBSD: strlcat.c,v 1.3 2007/06/04 18:19:27 christos Exp $ */ /* $OpenBSD: strlcat.c,v 1.10 2003/04/12 21:56:39 millert Exp $ */ /* * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #if !defined(_KERNEL) && !defined(_STANDALONE) #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #else #include "config.h" #endif #if defined(LIBC_SCCS) && !defined(lint) #endif /* LIBC_SCCS and not lint */ #ifdef _LIBC #include "namespace.h" #endif #include <sys/types.h> #include <assert.h> #include <string.h> #ifdef _LIBC # ifdef __weak_alias __weak_alias(strlcat, _strlcat) # endif #endif #else #include <lib/libkern/libkern.h> #endif /* !_KERNEL && !_STANDALONE */ #if !HAVE_STRLCAT /* * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters * will be copied. Always NUL terminates (unless siz <= strlen(dst)). * Returns strlen(src) + MIN(siz, strlen(initial dst)). * If retval >= siz, truncation occurred. */ size_t strlcat(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; size_t n = siz; size_t dlen; _DIAGASSERT(dst != NULL); _DIAGASSERT(src != NULL); /* Find the end of dst and adjust bytes left but don't go past end */ while (n-- != 0 && *d != '\0') d++; dlen = d - dst; n = siz - dlen; if (n == 0) return(dlen + strlen(s)); while (*s != '\0') { if (n != 1) { *d++ = *s; n--; } s++; } *d = '\0'; return(dlen + (s - src)); /* count does not include NUL */ } #endif ```
```java package com.roncoo.education.util.filter; import javax.servlet.annotation.WebFilter; import javax.servlet.annotation.WebInitParam; import com.alibaba.druid.support.http.WebStatFilter; /** * @author wujing */ @WebFilter(filterName = "druidWebStatFilter", urlPatterns = "/*", initParams = { @WebInitParam(name = "exclusions", value = "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*") }) public class DruidWebStatFilter extends WebStatFilter { } ```
```c++ /*your_sha256_hash-------------+ +your_sha256_hash--------------+ +your_sha256_hash--------------+ (See accompanying file LICENCE.txt or copy at path_to_url +your_sha256_hash-------------*/ /*your_sha256_hash------------- Macro definitions for some useful notations e.g. iteration headers your_sha256_hash-------------*/ #ifndef BOOST_ICL_DETAIL_NOTATE_HPP_JOFA_990119 #define BOOST_ICL_DETAIL_NOTATE_HPP_JOFA_990119 // Iterations over stl or stl-compatible containers: #define ICL_FORALL(type,iter,obj) for(type::iterator iter=(obj).begin(); (iter)!=(obj).end(); (iter)++) #define ICL_const_FORALL(type,iter,obj) for(type::const_iterator iter=(obj).begin(); !((iter)==(obj).end()); (iter)++) #define ICL_FORALL_THIS(iter) for(iterator iter=begin(); (iter)!=end(); (iter)++) #define ICL_const_FORALL_THIS(iter) for(const_iterator iter=this->begin(); (iter)!=this->end(); (iter)++) // Plain old array iteration (assuming member function VecT::size()!) #define ICL_FORALL_VEC(idx, vec) for(int idx=0; idx<vec.size(); idx++) namespace boost{namespace icl { const int UNDEFINED_INDEX = -1; }} // namespace icl boost #endif // BOOST_ICL_DETAIL_NOTATE_HPP_JOFA_990119 ```
```smalltalk using FlappyDon.Game; using osu.Framework; using osu.Framework.Platform; namespace FlappyDon.Desktop { public static class Program { public static void Main() { using (GameHost host = Host.GetSuitableDesktopHost(@"FlappyDon")) using (osu.Framework.Game game = new FlappyDonGame()) { host.Run(game); } } } } ```
```python import json import io import demistomock as demisto def util_load_json(path): with io.open(path, mode="r", encoding="utf-8") as f: return json.loads(f.read()) def test_build_timeline(mocker): from ZTAPBuildTimeline import build_timeline def executeCommand(name, args=None): if name == "markAsEvidence": return [{"Contents": "done"}] else: raise ValueError("Unimplemented command called: {name}") mocker.patch.object(demisto, "executeCommand", side_effect=executeCommand) entries = util_load_json("test_data/entries.json") output = build_timeline(entries) mock_markdown_result = util_load_json("test_data/output.json") assert output == mock_markdown_result ```
Bucharest Non Stop () is a 2015 Romanian comedy-drama film directed by the Romanian actor, director and film producer . Cast - Achim Ion Besoiu - Bătrânul (The Old Man) - Bătrâna (The Old Woman) Adrian Titieni - Giani - Jeny Alexandru Papadopol - Gelu - Dora Dorian Boguță - Bodo References External links 2015 comedy-drama films Romanian comedy-drama films
The 2014–15 Saudi Crown Prince Cup was the 40th season of the Saudi Crown Prince Cup since its establishment in 1957. This season's competition featured a total of 30 teams, 14 teams from the Pro League, and 16 teams from the First Division. The holders were Al-Nassr who beat Al-Hilal 2–1 in the previous season's final on 1 February 2014. Al-Nassr were knocked out in the semi-finals by Al-Ahli. The 2015 Crown Prince Cup Final was played between Al-Ahli and Al-Hilal at the King Fahd International Stadium in Riyadh. Al-Ahli defeated Al-Hilal 2–1 in the final to win their sixth Crown Prince Cup title and their first since 2007. First stage Preliminary round The Preliminary round fixtures were played on 9, 11, 12 & 21 August and 15 September 2014. Al-Ittihad's match was postponed due to their participation in the 2014 AFC Champions League quarter-finals. All times are local, AST (UTC+3). Second stage Bracket Note: H: Home team, A: Away team Round of 16 The Round of 16 fixtures were played on 22 & 23 September 2014. The Al-Ittihad v Al-Hilal match was delayed to 23 December 2014 due to Al-Hilal's participation in the semi-finals of the 2014 AFC Champions League. All times are local, AST (UTC+3). Quarter-finals The Quarter-finals fixtures were played on 23 & 24 December 2014. The Al-Hilal v Hetten match was delayed due to Al-Hilal's participation in the 2014 AFC Champions League Final. All times are local, AST (UTC+3). Semi-finals The Semi-finals fixtures were played on 9 February 2015. All times are local, AST (UTC+3). Final The final was held on 13 February 2015 in the King Fahd International Stadium in Riyadh. All times are local, AST (UTC+3). Top goalscorers As of 13 February 2015 References Saudi Crown Prince Cup seasons 2014–15 domestic association football cups Crown Prince Cup
```yaml namespace: prefix ```
```c++ /* RAR.CPP Second-level plugin module for FAR Manager and MultiArc plugin Copyrigth (c) 2000 FAR group */ #define STRICT #include <windows.h> #include <string.h> #include <assert.h> #include <farplug-mb.h> using namespace oldfar; #include "fmt.hpp" #include "marclng.hpp" #include "dll.hpp" // TODO: we have full-featured unrar code on board, use it to unpack instead of unrar executable! #if defined(__BORLANDC__) #pragma option -a1 #elif defined(__GNUC__) || (defined(__WATCOMC__) && (__WATCOMC__ < 1100)) || defined(__LCC__) #pragma pack(1) #else #pragma pack(push, 1) #endif static const char *const RarOS[] = {"DOS", "OS/2", "Windows", "Unix", "MacOS", "BeOS"}; static DWORD SFXSize, Flags; static HANDLE hArcData; static int RHCode, PFCode; static struct RAROpenArchiveDataEx OpenArchiveData; static struct RARHeaderDataEx HeaderData; static char Password[NM / 2]; static FARAPIINPUTBOX FarInputBox = NULL; static FARAPIGETMSG FarGetMsg = NULL; static INT_PTR MainModuleNumber = -1; static FARAPIMESSAGE FarMessage = NULL; static bool KeepSilent = false; #define Min(x, y) (((x) < (y)) ? (x) : (y)) void WINAPI _export RAR_SetFarInfo(const struct PluginStartupInfo *Info) { FarInputBox = Info->InputBox; FarGetMsg = Info->GetMsg; MainModuleNumber = Info->ModuleNumber; FarMessage = Info->Message; } int CALLBACK CallbackProc(UINT msg, LPARAM UserData, LPARAM P1, LPARAM P2) { switch (msg) { case UCM_CHANGEVOLUME: { if (P2 != RAR_VOL_ASK) return 0; if (!KeepSilent && FarInputBox(FarGetMsg(MainModuleNumber, MArchiveVolumeTitle), FarGetMsg(MainModuleNumber, MArchiveVolume), NULL, (char *)P1, (char *)P1, 1024, NULL, 0)) // unrar provides buffer of 2048 chars { return (0); } return -1; } case UCM_NEEDPASSWORD: { if (!KeepSilent && FarInputBox(FarGetMsg(MainModuleNumber, MGetPasswordTitle), FarGetMsg(MainModuleNumber, MGetPassword), NULL, Password, Password, sizeof(Password) - 1, NULL, FIB_PASSWORD)) { // OemToChar(Password, Password); strncpy((char *)P1, Password, (int)P2); return (0); } return -1; } } return (0); } BOOL WINAPI _export RAR_IsArchive(const char *Name, const unsigned char *Data, int DataSize) { if (!CanBeExecutableFileHeader(Data, DataSize) && DataSize > 0x1000) DataSize = 0x1000; for (int I = 0; I < DataSize - 7; I++) { const unsigned char *D = Data + I; // check for RAR5.0 signature if (D[0] == 0x52 && D[1] == 0x61 && D[2] == 0x72 && D[3] == 0x21 && D[4] == 0x1a && D[5] == 0x07 && D[6] == 0x01 && D[7] == 0x00) { SFXSize = I; return (TRUE); } if (D[0] == 0x52 && D[1] == 0x45 && D[2] == 0x7e && D[3] == 0x5e && (I == 0 || (DataSize > 31 && Data[28] == 0x52 && Data[29] == 0x53 && Data[30] == 0x46 && Data[31] == 0x58))) // if (D[0]==0x52 && D[1]==0x45 && D[2]==0x7e && D[3]==0x5e) { SFXSize = I; return (TRUE); } // check marker block // The marker block is actually considered as a fixed byte sequence: 0x52 0x61 0x72 0x21 0x1a 0x07 0x00 if (D[0] == 0x52 && D[1] == 0x61 && D[2] == 0x72 && D[3] == 0x21 && D[4] == 0x1a && D[5] == 0x07 && D[6] == 0 && D[9] == 0x73) // next "archive header"? (Header type: 0x73) { SFXSize = I; return (TRUE); } } return (FALSE); } BOOL WINAPI _export RAR_OpenArchive(const char *Name, int *Type, bool Silent) { ZeroFill(OpenArchiveData); OpenArchiveData.ArcName = (char *)Name; OpenArchiveData.CmtBuf = NULL; OpenArchiveData.CmtBufSize = 0; OpenArchiveData.OpenMode = RAR_OM_LIST; hArcData = RAROpenArchiveEx(&OpenArchiveData); if (OpenArchiveData.OpenResult != 0) return FALSE; Flags = OpenArchiveData.Flags; KeepSilent = Silent; RARSetCallback(hArcData, CallbackProc, 0); HeaderData.CmtBuf = NULL; HeaderData.CmtBufSize = 0; /* if(Flags&0x80) { if((RHCode=pRARReadHeaderEx(hArcData,&HeaderData)) != 0) return FALSE; } */ return (TRUE); } int WINAPI _export RAR_GetArcItem(struct ArcItemInfo *Info) { RHCode = RARReadHeaderEx(hArcData, &HeaderData); if (RHCode != 0) { if (RHCode == ERAR_BAD_DATA) return GETARC_READERROR; // GETARC_BROKEN; return GETARC_EOF; } Wide2MB(HeaderData.FileNameW, wcsnlen(HeaderData.FileNameW, ARRAYSIZE(HeaderData.FileNameW)), Info->PathName); if (HeaderData.HostOS >= 3) { // Unix, Mac Info->dwUnixMode = HeaderData.FileAttr; Info->dwFileAttributes = WINPORT(EvaluateAttributes)(Info->dwUnixMode, HeaderData.FileNameW); } else { Info->dwUnixMode = (HeaderData.Flags & RHDF_DIRECTORY) ? S_IFDIR : S_IFREG; Info->dwFileAttributes = HeaderData.FileAttr & COMPATIBLE_FILE_ATTRIBUTES; } // HeaderData.FileAttr is unreliable - sometimes its a UNIX mode, sometimes Windows attributes // so sync with directory attribute in HeaderData.Flags if (HeaderData.Flags & RHDF_DIRECTORY) { Info->dwFileAttributes|= FILE_ATTRIBUTE_DIRECTORY; switch (Info->dwUnixMode & S_IFMT) { case S_IFREG: case 0: Info->dwUnixMode&= ~S_IFMT; Info->dwUnixMode|= S_IFDIR; } } else { Info->dwFileAttributes&= ~FILE_ATTRIBUTE_DIRECTORY; switch (Info->dwUnixMode & S_IFMT) { case S_IFDIR: case 0: Info->dwUnixMode&= ~S_IFMT; Info->dwUnixMode|= S_IFREG; } } Info->nFileSize = HeaderData.UnpSizeHigh; Info->nFileSize<<= 32; Info->nFileSize|= HeaderData.UnpSize; Info->nPhysicalSize = HeaderData.PackSizeHigh; Info->nPhysicalSize<<= 32; Info->nPhysicalSize|= HeaderData.PackSize; Info->CRC32 = (DWORD)HeaderData.FileCRC; FILETIME lft; WINPORT(DosDateTimeToFileTime)(HIWORD(HeaderData.FileTime), LOWORD(HeaderData.FileTime), &lft); WINPORT(LocalFileTimeToFileTime)(&lft, &Info->ftLastWriteTime); if (HeaderData.HostOS < ARRAYSIZE(RarOS)) Info->HostOS = RarOS[HeaderData.HostOS]; Info->Solid = Flags & 8; Info->Comment = HeaderData.Flags & 8; Info->Encrypted = HeaderData.Flags & 4; Info->DictSize = 64 << ((HeaderData.Flags & 0x00e0) >> 5); if (Info->DictSize > 4096) Info->DictSize = 64; Info->UnpVer = (HeaderData.UnpVer / 10) * 256 + (HeaderData.UnpVer % 10); if ((PFCode = RARProcessFile(hArcData, RAR_SKIP, NULL, NULL)) != 0) { return (RHCode == ERAR_BAD_DATA) ? GETARC_BROKEN : GETARC_READERROR; } return GETARC_SUCCESS; } BOOL WINAPI _export RAR_CloseArchive(struct ArcInfo *Info) { Info->SFXSize = SFXSize; Info->Volume = Flags & 1; Info->Comment = Flags & 2; Info->Lock = Flags & 4; Info->Recovery = Flags & 64; if (Flags & 32) Info->Flags|= AF_AVPRESENT; if (Flags & 0x80) Info->Flags|= AF_HDRENCRYPTED; *Password = 0; return RARCloseArchive(hArcData); } DWORD WINAPI _export RAR_GetSFXPos(void) { return SFXSize; } BOOL WINAPI _export RAR_GetFormatName(int Type, std::string &FormatName, std::string &DefaultExt) { if (Type == 0) { FormatName = "RAR"; DefaultExt ="rar"; return (TRUE); } return (FALSE); } BOOL WINAPI _export RAR_GetDefaultCommands(int Type, int Command, std::string &Dest) { if (Type == 0) { // Console RAR 2.50 commands static const char *Commands[] = {/*Extract */ "^rar x {-p%%P} {-ap%%R} -y -c- -kb -- " "%%A @%%LNM", /*Extract without paths */ "^rar e {-p%%P} -y -c- -kb -- %%A @%%LNM", /*Test */ "^rar t -y {-p%%P} -- %%A", /*Delete */ "rar d -y {-w%%W} -- %%A @%%LNM", /*Comment archive */ "rar c -y {-w%%W} -- %%A", /*Comment files */ "rar cf -y {-w%%W} -- %%A @%%LNM", /*Convert to SFX */ "rar s -y -- %%A", /*Lock archive */ "rar k -y -- %%A", /*Protect archive */ "rar rr -y -- %%A", /*Recover archive */ "rar r -y -- %%A", /*Add files */ "rar a -y {-p%%P} {-ap%%R} {-w%%W} {%%S} -- %%A @%%LN", /*Move files */ "rar m -y {-p%%P} {-ap%%R} {-w%%W} {%%S} -- %%A @%%LN", /*Add files and folders */ "rar a -r0 -y {-p%%P} {-ap%%R} {-w%%W} {%%S} -- %%A @%%LN", /*Move files and folders*/ "rar m -r0 -y {-p%%P} {-ap%%R} {-w%%W} {%%S} -- %%A @%%LN", /*"All files" mask */ "*.*"}; if (Command < (int)(ARRAYSIZE(Commands))) { Dest = Commands[Command]; return (TRUE); } } return (FALSE); } ```
This list includes Equipment that was formally used by Georgian Armed Forces, Some of listed equipment still could be is reserve or used for Ceremonial purposes. Small arms Heavy weapons Vehicles Air-defence systems Aircraft References Georgian Army Military equipment of Georgia (country)
```python from .hough_transform import (hough_line, hough_line_peaks, probabilistic_hough_line, hough_circle, hough_ellipse) from .radon_transform import radon, iradon, iradon_sart from .finite_radon_transform import frt2, ifrt2 from .integral import integral_image, integrate from ._geometric import (warp, warp_coords, estimate_transform, matrix_transform, SimilarityTransform, AffineTransform, ProjectiveTransform, PolynomialTransform, PiecewiseAffineTransform) from ._warps import swirl, resize, rotate, rescale, downscale_local_mean from .pyramids import (pyramid_reduce, pyramid_expand, pyramid_gaussian, pyramid_laplacian) from .seam_carving import seam_carve __all__ = ['hough_circle', 'hough_ellipse', 'hough_line', 'probabilistic_hough_line', 'hough_line_peaks', 'radon', 'iradon', 'iradon_sart', 'frt2', 'ifrt2', 'integral_image', 'integrate', 'warp', 'warp_coords', 'estimate_transform', 'matrix_transform', 'SimilarityTransform', 'AffineTransform', 'ProjectiveTransform', 'PolynomialTransform', 'PiecewiseAffineTransform', 'swirl', 'resize', 'rotate', 'rescale', 'downscale_local_mean', 'pyramid_reduce', 'pyramid_expand', 'pyramid_gaussian', 'pyramid_laplacian', 'seam_carve'] ```
Clifford Scot Pastornicky (born November 18, 1958) is an American former Major League Baseball player. Pastornicky was drafted by the Kansas City Royals in the 8th round of the 1980 draft. He made his debut on June 14, 1983 with the Royals, and batted 2/5/.125 in ten career games in the majors. He played the majority of his career in Double and Triple-A. Prior to playing professionally, Pastornicky was an All-WAC shortstop at BYU from 1978 - 1980 setting the career home run record with 31 HRs. Personal His son is shortstop Tyler Pastornicky. His father, Ernest Pastornicky, played in the Chicago Cubs minor league system. References External links 1958 births Living people BYU Cougars baseball players Charleston Royals players Glens Falls White Sox players Gulf Coast Royals players Kansas City Royals players Kansas City Royals scouts Maine Guides players Major League Baseball third basemen Memphis Chicks players Omaha Royals players Baseball players from Seattle Waterbury Indians players Seattle Mariners scouts Toronto Blue Jays scouts Mat-Su Miners players
The Parkway Man, also known locally as "Iron Henry" (even though it represents a steelworker) is a statue located in Bowden Housteads Woods in the Handsworth district of Sheffield, England. The statue is visible from the road, and can be seen by people driving on Sheffield Parkway. The statue can also be viewed using public footpaths in the woods. The statue, made of cast iron and designed by Jason Thomson in 2001, depicts a large man, stripped to the waist and wielding a sledgehammer; it weighs over 3 tonnes and is over 3 metres high. It was originally commissioned by the Sheffield City Council Heritage Woodland Team, as part of a project known as the Fuelling a Revolution project, which was managed by various environmental groups in the area. H.Downs & Sons Ltd. are responsible for designing and casting the statue. References External links http://www.hdowns.co.uk/library/artwork.php Buildings and structures in Sheffield Statues in England
```python import sys import os try: sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../deps/readies")) import paella except: pass ```
```shell #!/bin/bash set -e if [ "${PH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi modifyUser() { declare username=${1:-} newId=${2:-} [[ -z ${username} || -z ${newId} ]] && return local currentId=$(id -u ${username}) [[ ${currentId} -eq ${newId} ]] && return echo " [i] Changing ID for user: ${username} (${currentId} => ${newId})" usermod -o -u ${newId} ${username} } modifyGroup() { declare groupname=${1:-} newId=${2:-} [[ -z ${groupname} || -z ${newId} ]] && return local currentId=$(id -g ${groupname}) [[ ${currentId} -eq ${newId} ]] && return echo " [i] Changing ID for group: ${groupname} (${currentId} => ${newId})" groupmod -o -g ${newId} ${groupname} } modifyUser www-data ${WEB_UID} modifyGroup www-data ${WEB_GID} modifyUser pihole ${PIHOLE_UID} modifyGroup pihole ${PIHOLE_GID} ```
Trinity College Theological School (TCTS) is an educational division of Australia's Trinity College, the oldest residential college of the University of Melbourne. It is also one of the constituent colleges of the University of Divinity. The School provides theological education and shapes men and women for ordained and lay ministry in the Anglican tradition, as well as providing other programs of study, including higher degrees by research. Overview and history The school was founded in 1877 by Bishop James Moorhouse for the purpose of training a "learned and dedicated clergy" in Victoria, obviating the need to send candidates interstate for training. From this founding vision the school's focus has now broadened to modern forms of theological education and formation for lay people as well as ordination candidates. Trinity teaches across the broad-church, moderate and Anglo-Catholic traditions of theology, worship and spirituality and seeks to engage critically and reflectively with the contemporary world. Until the 1960s, Trinity theological students normally undertook a degree program of the University of Melbourne, followed by the Licentiate in Theology of the Australian College of Theology. In 1969 Trinity became a foundation member of the ecumenical United Faculty of Theology (UFT). This partnership with the Jesuit Theological College and Methodist, Presbyterian and Congregational theological schools (later combined as the Uniting Church Theological Hall) created a rare ecumenical context for higher learning in theology. Trinity was a founding member of the Melbourne College of Divinity (MCD) from its inception in 1910. In 2012, the MCD became the University of Divinity and, with the dissolution of the UFT at the end of 2014, Trinity became one of the present 11 colleges of the university. The University of Divinity is the awarding institution of all the degree programs offered within the college. In 2018, Trinity College appointed the university's first research professor and first post-doctoral research fellow. Academic programs Trinity College Theological School currently offers the following award programs of the University of Divinity: Certificate in Divinity (CertDiv) Diploma in Theology (DipTheol) Advanced Diploma in Theology and Ministry (AdvDipTheolMin) Bachelor of Theology (BTheol) Graduate Certificate in Divinity (GCDiv) Graduate Certificate in Theology (GCTheol) Graduate Certificate in Research Methodology (GCRM) Graduate Diploma in Divinity (GDDiv) Graduate Diploma in Theology (GDTheol) Master of Theology (Coursework) (MTheol) Master of Theological Studies (MTS) Master of Divinity (MDiv) Master of Philosophy (MPhil) Doctor of Philosophy (PhD) Trinity students have access to the collections of both the Leeper Library at Trinity and the Dalton-McCaughey Library, the joint collection of the Jesuit and Uniting Church colleges, with one of the largest theological collections in the southern hemisphere. Deans and directors Leadership of theological education at Trinity was originally the responsibility of the college chaplains under the supervision of the warden. Since the 1970s there have been lecturers specifically appointed to teach in and lead the school, holding the positions of Stewart Lecturer, Director and, more recently, Dean. The following have held these offices: Max Thomas: Stewart Lecturer, 1971–75 John Gaden: Director and Stewart Lecturer, 1976–85 Richard McKinney: Director and Maynard Lecturer, 1986–1997 Scott Cowdell: Maynard Lecturer and Acting Director, 1998 David Cole: Director and Woods Lecturer, 1999–2003 Andrew McGowan: Director and Munro Lecturer, 2003–2007 Tim Gaden: Dean and Stewart Lecturer, 2007–2010 Dorothy Lee: Dean and Frank Woods Professor, 2011–2017 Mark Lindsay: Joan F W Munro Professor and Acting Dean, 2018 Robert Derrenbacker: Dean and Frank Woods Associate Professor, 2019–present Notable alumni Trinity has produced many clergy who have held significant appointments in the Anglican Church. These include: Arthur Green (1857–1944), first theological student at Trinity, Bishop of Grafton and Armidale 1894–1901, Ballarat 1901–1915 Reginald Stephen (1860–1956), Bishop of Tasmania and Dean of Melbourne James Grant, Co-adjutor Bishop of Melbourne, 1970–1999 Bob Dann, Archbishop of Melbourne 1977–1983 Peter Carnley, Archbishop of Perth and Primate of the Anglican Church of Australia 2000–2005 Peter Hollingworth, Archbishop of Brisbane 1989–2001; Governor General of Australia 2001–2003 Andrew Curnow, Bishop of Bendigo 2003–2017 Phillip Aspinall, Archbishop of Brisbane 2002–present; Primate of the Anglican Church of Australia 2005–14 Kay Goldsworthy, Archbishop of Perth 2018–present; first woman ordained a bishop in the Anglican Church of Australia; first woman in the worldwide Anglican Communion to hold title of archbishop Alison Taylor, Assistant Bishop, Diocese of Brisbane 2013–2017 Peter Stuart, Bishop of Newcastle, 2018–present References Seminaries and theological colleges in Australia Education in Melbourne Anglican Church of Australia Ecclesiastical Province of Victoria Anglican seminaries and theological colleges Educational institutions established in 1877 1877 establishments in Australia University of Melbourne Buildings and structures in the City of Melbourne (LGA) University of Divinity
Gugu hat (罟罟冠 or 固姑冠 or 顧姑冠 or 故姑冠; pronounced as Guguguan in Chinese) is a tall headdress worn by Mongol noblewomen before and during the Yuan dynasty. It is also known as boqta, boghta, botta, boghtagh or boqtaq. The gugu hat was one of the hallmark headdress of Mongol women in the 13th and 14th century. It was always worn with the formal robe of Mongol women. The boqta also appeared in the Ilkhanate (1256–1335 AD), in Korea when Mongol princesses married in the Goryeo court, and continued to be used in the Timurid court in the 15th century AD. Terminology Gugu was a Mongolian word for hat; its name was then translated into Chinese based on its pronunciation. Construction and design The Gugu hat was made with wires made of iron and with bamboo strips; they were shaped in the form of a large flask. It had the shape of long cylindrical shaft which became more spread out at the top. It could be as tall as one foot high. It could be covered with silk or felt fabric. It could be made of red silk or brocade, blue-green brocade, black felt. It could also be decorated with precious stones, such as pearls, gold filigrees, large pieces of jewelries in the middle of the hat, and small tuft of quills such as peacock feathers. Influences and derivatives The gugu hat may have influenced the 15th Century AD conical hats (i.e. hennin) worn by European women. The Korean jokduri might have originated from the gugu hat. Gallery See also Hennin References Chinese headgear History of Asian clothing Mongolian culture
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\YouTube; class PlaylistSnippet extends \Google\Collection { protected $collection_key = 'tags'; /** * @var string */ public $channelId; /** * @var string */ public $channelTitle; /** * @var string */ public $defaultLanguage; /** * @var string */ public $description; protected $localizedType = PlaylistLocalization::class; protected $localizedDataType = ''; /** * @var string */ public $publishedAt; /** * @var string[] */ public $tags; /** * @var string */ public $thumbnailVideoId; protected $thumbnailsType = ThumbnailDetails::class; protected $thumbnailsDataType = ''; /** * @var string */ public $title; /** * @param string */ public function setChannelId($channelId) { $this->channelId = $channelId; } /** * @return string */ public function getChannelId() { return $this->channelId; } /** * @param string */ public function setChannelTitle($channelTitle) { $this->channelTitle = $channelTitle; } /** * @return string */ public function getChannelTitle() { return $this->channelTitle; } /** * @param string */ public function setDefaultLanguage($defaultLanguage) { $this->defaultLanguage = $defaultLanguage; } /** * @return string */ public function getDefaultLanguage() { return $this->defaultLanguage; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param PlaylistLocalization */ public function setLocalized(PlaylistLocalization $localized) { $this->localized = $localized; } /** * @return PlaylistLocalization */ public function getLocalized() { return $this->localized; } /** * @param string */ public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; } /** * @return string */ public function getPublishedAt() { return $this->publishedAt; } /** * @param string[] */ public function setTags($tags) { $this->tags = $tags; } /** * @return string[] */ public function getTags() { return $this->tags; } /** * @param string */ public function setThumbnailVideoId($thumbnailVideoId) { $this->thumbnailVideoId = $thumbnailVideoId; } /** * @return string */ public function getThumbnailVideoId() { return $this->thumbnailVideoId; } /** * @param ThumbnailDetails */ public function setThumbnails(ThumbnailDetails $thumbnails) { $this->thumbnails = $thumbnails; } /** * @return ThumbnailDetails */ public function getThumbnails() { return $this->thumbnails; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PlaylistSnippet::class, 'Google_Service_YouTube_PlaylistSnippet'); ```
```javascript const fs = require('fs') const os = require('os') const path = require('path') const filename = 'ae_render_only_node.txt' const documents = path.join(os.homedir(), 'Documents') const adobe = path.join(documents, 'Adobe') const nodefile1 = path.join(documents, filename) const nodefile2 = path.join(adobe, filename) const add = (settings) => { return false } settings.logger.log('adding default render-only-node licenses for After Effects at:') settings.logger.log(' - ' + nodefile1) settings.logger.log(' - ' + nodefile2) let applied = false if (!fs.existsSync(adobe)) { fs.mkdirSync(adobe) } if (!fs.existsSync(nodefile1)) { fs.writeFileSync(nodefile1, '') applied = true } if (!fs.existsSync(nodefile2)) { fs.writeFileSync(nodefile2, '') applied = true } if (applied) { settings.logger.log('added render-only-node licenses for After Effects') } return applied } const remove = (settings) => { let removed = false if (fs.existsSync(nodefile1)) { fs.unlinkSync(nodefile1) removed = true } if (fs.existsSync(nodefile2)) { fs.unlinkSync(nodefile2) removed = true } if (removed) { settings.logger.log('removed render-only-node licenses for After Effects') } return removed } module.exports = { add, remove } ```
"Everybody Loves Somebody" is a song written in 1947 by Irving Taylor and pianist Ken Lane, and made famous by Dean Martin who recorded and released his version in 1964. History Although written almost 20 years earlier, by 1964 the song had already been recorded by several artists—including Frank Sinatra—but without much success. Lane was playing piano for Dean Martin on his Dream with Dean LP sessions, and with an hour or so of studio time left and one song short, Lane suggested that Martin take a run at his tune. Dean was agreeable, and the small combo of piano, guitar, drums, and bass performed a relatively quiet, laid-back version of the song (coincidentally, Martin had sung it almost 20 years earlier on Bob Hope's radio show in 1948, and also on Martin and Lewis's NBC radio program at about the same time). Almost immediately Martin re-recorded the song for his next album, this time with a full orchestra and chorus. His label, Reprise Records, was so enthusiastic about the hit potential of this version they titled the LP Everybody Loves Somebody to capitalize on it. Although still a major recording artist, Dean Martin had not had a top 40 hit since 1958. With the British Invasion ruling the U.S. charts, few had hopes that an Italian crooner who had been singing mainly standards for almost 20 years would sway many teenagers. Martin resented rock n' roll, and his attitude created conflict at home with his 12-year-old son Dean Paul Martin, who like many young people at the time worshipped pop groups like The Beatles. He told his son, "I'm gonna knock your pallies off the charts," and on August 15, 1964 he did just that: "Everybody Loves Somebody" knocked The Beatles' "A Hard Day's Night" off the No. 1 slot on Billboard, going straight up to the top of both the Billboard Hot 100 and the Pop-Standard Singles chart, the latter for eight weeks. It ultimately replaced "That's Amore" as Martin's signature song, and he sang it as the theme of his weekly television variety show from 1965 to 1974. The song has become so identified with Martin that later versions are invariably compared to his take. "Everybody Loves Somebody Sometime" appears on Martin's grave marker in Los Angeles. In 1999, the 1964 recording of "Everybody Loves Somebody" on Reprise Records by Dean Martin was inducted into the Grammy Hall of Fame. Covers Ray Gelato recorded a cover of the song inserted in the 2004 self-titled album (T2, TWR0131-2), released in the UK. Chart performance Frank Sinatra Dean Martin References Notes Bibliography The Billboard Book of Top 40 Hits, 6th Edition, 1996 External links 1947 songs 1964 singles Andy Williams songs Billboard Hot 100 number-one singles Cashbox number-one singles Dean Martin songs Frank Sinatra songs Grammy Hall of Fame Award recipients Guy Mitchell songs Number-one singles in New Zealand Pop ballads Reprise Records singles Song recordings produced by Jimmy Bowen Songs written by Irving Taylor (songwriter) Songs written by Sam Coslow
```swift // // PodcastMenuTests.swift // PodcastMenuTests // // Created by Guilherme Rambo on 11/11/16. // import XCTest @testable import PodcastMenu class PodcastMenuTests: XCTestCase { private lazy var testEpisodesData: Data = { let url = Bundle(for: PodcastMenuTests.self).url(forResource: "Episodes", withExtension: "json")! return try! Data(contentsOf: url) }() private lazy var testPodcastsData: Data = { let url = Bundle(for: PodcastMenuTests.self).url(forResource: "Podcasts", withExtension: "json")! return try! Data(contentsOf: url) }() private lazy var expectedTestEpisodeDate: Date = { let formatter = DateFormatter() formatter.locale = Locale(identifier: "en-US") formatter.dateFormat = "MMM dd, yyyy" return formatter.date(from: "nov 10, 2016")! }() override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testParsingPodcasts() { let result = PodcastsAdapter(input: JSON(data: testPodcastsData)).adapt() switch result { case .error(let error): XCTFail("Expected to succeed but failed with error \(error)") case .success(let podcasts): guard podcasts.count == 47 else { XCTFail("Podcasts count should be 47, got \(podcasts.count)") return } let podcast = podcasts[2] XCTAssertEqual(podcast.name, "Anxious Machine") XCTAssertEqual(podcast.link, URL(string: "path_to_url")) XCTAssertEqual(podcast.poster, URL(string: "path_to_url")) } } func testParsingEpisodes() { let result = EpisodesAdapter(input: JSON(data: testEpisodesData)).adapt() switch result { case .error(let error): XCTFail("Expected to succeed but failed with error \(error)") case .success(let episodes): guard episodes.count == 9 else { XCTFail("Episodes count should be 9, got \(episodes.count)") return } let episode = episodes[1] XCTAssertEqual(episode.podcast.name, "build phase") XCTAssertEqual(episode.podcast.poster, URL(string: "path_to_url")!) XCTAssertEqual(episode.title, "112: Embarrassment Factor") XCTAssertEqual(episode.link, URL(string: "path_to_url")!) XCTAssertEqual(episode.date, expectedTestEpisodeDate) switch episode.time { case .duration(_): XCTFail("Expected time type to be \"remaining\"") case .remaining(let time): XCTAssertEqual(time, "00:55:25") } } } } ```
```javascript /* eslint-env jest */ import cheerio from 'cheerio' import { join } from 'path' import fs from 'fs-extra' import { killApp, findPort, nextStart, nextBuild, renderViaHTTP, waitFor, } from 'next-test-utils' import webdriver from 'next-webdriver' const fixturesDir = join(__dirname, '..', 'fixtures') const fsExists = (file) => fs .access(file) .then(() => true) .catch(() => false) describe('Font Optimization', () => { describe.each([ [ 'google', [ 'path_to_url 'path_to_url 'path_to_url 'path_to_url ], [ /<style data-href="https:\/\/fonts\.googleapis\.com\/css\?family=Voces">.*<\/style>/, /<style data-href="https:\/\/fonts\.googleapis\.com\/css2\?family=Modak">.*<\/style>/, /<style data-href="https:\/\/fonts\.googleapis\.com\/css2\?family=Roboto:wght@700">.*<\/style>/, /<style data-href="https:\/\/fonts.googleapis.com\/css2\?family=Roboto:wght@400;700;900&display=swap">.*<\/style>/, ], 'path_to_url ], [ 'typekit', [ 'path_to_url 'path_to_url 'path_to_url 'path_to_url ], [ /<style data-href="https:\/\/use.typekit.net\/plm1izr.css">.*<\/style>/, /<style data-href="https:\/\/use.typekit.net\/erd0sed.css">.*<\/style>/, /<style data-href="https:\/\/use.typekit.net\/ucs7mcf.css">.*<\/style>/, /<style data-href="https:\/\/use.typekit.net\/ucs7mcf.css">.*<\/style>/, ], 'path_to_url ], ])( 'with-%s', ( property, [staticFont, staticHeadFont, starsFont, withFont], [staticPattern, staticHeadPattern, starsPattern, withFontPattern], preconnectUrl ) => { const appDir = join(fixturesDir, `with-${property}`) let builtServerPagesDir let builtPage let appPort let app function runTests() { it('should pass nonce to the inlined font definition', async () => { const html = await renderViaHTTP(appPort, '/nonce') const $ = cheerio.load(html) expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) const link = $( `link[rel="stylesheet"][data-href="${staticHeadFont}"]` ) const style = $(`style[data-href="${staticHeadFont}"]`) const styleNonce = style.attr('nonce') expect(link.length).toBe(0) expect(styleNonce).toBe('VmVyY2Vs') }) it('should only inline included fonts per page', async () => { const html = await renderViaHTTP(appPort, '/with-font') expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) const $ = cheerio.load(html) expect($(`link[data-href="${withFont}"]`).length).toBe(0) expect(html).toMatch(withFontPattern) const htmlWithoutFont = await renderViaHTTP(appPort, '/without-font') const $2 = cheerio.load(htmlWithoutFont) expect($2(`link[data-href="${withFont}"]`).length).toBe(0) expect(htmlWithoutFont).not.toMatch(withFontPattern) }) it(`should inline the ${property} fonts for static pages`, async () => { const html = await renderViaHTTP(appPort, '/') const $ = cheerio.load(html) expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) expect( $(`link[rel=stylesheet][data-href="${staticFont}"]`).length ).toBe(0) expect(html).toMatch(staticPattern) }) it(`should inline the ${property} fonts for static pages with Next/Head`, async () => { const html = await renderViaHTTP(appPort, '/static-head') const $ = cheerio.load(html) expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) expect( $(`link[rel=stylesheet][data-href="${staticHeadFont}"]`).length ).toBe(0) expect(html).toMatch(staticHeadPattern) }) it(`should inline the ${property} fonts for SSR pages`, async () => { const html = await renderViaHTTP(appPort, '/stars') const $ = cheerio.load(html) expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) expect( $(`link[rel=stylesheet][data-href="${starsFont}"]`).length ).toBe(0) expect(html).toMatch(starsPattern) }) it(`should add preconnect tag`, async () => { const html = await renderViaHTTP(appPort, '/stars') const $ = cheerio.load(html) expect( $(`link[rel=preconnect][href="${preconnectUrl}"]`).length ).toBe(1) }) it('should skip this optimization for AMP pages', async () => { const html = await renderViaHTTP(appPort, '/amp') const $ = cheerio.load(html) expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) expect($(`link[rel=stylesheet][href="${staticFont}"]`).length).toBe(1) expect(html).not.toMatch(staticPattern) }) it('should work for fonts loaded on navigation', async () => { let browser try { browser = await webdriver(appPort, '/') await waitFor(1000) const baseFont = await browser.elementByCss( `style[data-href="${staticFont}"]` ) expect(baseFont).toBeDefined() await browser.waitForElementByCss('#with-font').click() await browser.waitForElementByCss('#with-font-container') const pageFontCss = await browser.elementsByCss( `style[data-href="${withFont}"]` ) expect(pageFontCss.length).toBe(0) const pageFont = await browser.elementByCss( `link[href="${withFont}"]` ) expect(pageFont).toBeDefined() } finally { if (browser) await browser.close() } }) // Re-run build to check if it works when build is cached ;(process.env.TURBOPACK ? it.skip : it)( 'should work when build is cached', async () => { await nextBuild(appDir) const testJson = JSON.parse( await fs.readFile(builtPage('font-manifest.json'), { encoding: 'utf-8', }) ) expect(testJson.length).toBeGreaterThan(0) } ) } describe('Font optimization for SSR apps', () => { ;(process.env.TURBOPACK_DEV ? describe.skip : describe)( 'production mode', () => { beforeAll(async () => { if (fs.pathExistsSync(join(appDir, '.next'))) { await fs.remove(join(appDir, '.next')) } await nextBuild(appDir) appPort = await findPort() app = await nextStart(appDir, appPort) builtServerPagesDir = join(appDir, '.next', 'server') builtPage = (file) => join(builtServerPagesDir, file) }) afterAll(() => killApp(app)) runTests() } ) }) describe('Font optimization for unreachable font definitions.', () => { ;(process.env.TURBOPACK_DEV ? describe.skip : describe)( 'production mode', () => { beforeAll(async () => { await nextBuild(appDir) await fs.writeFile( join(appDir, '.next', 'server', 'font-manifest.json'), '[]', 'utf8' ) appPort = await findPort() app = await nextStart(appDir, appPort) builtServerPagesDir = join(appDir, '.next', 'server') builtPage = (file) => join(builtServerPagesDir, file) }) afterAll(() => killApp(app)) it('should fallback to normal stylesheet if the contents of the fonts are unreachable', async () => { const html = await renderViaHTTP(appPort, '/stars') expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) expect(html).toContain( `<link rel="stylesheet" href="${starsFont}"/>` ) }) it('should not inline multiple fallback link tag', async () => { await renderViaHTTP(appPort, '/stars') // second render to make sure that the page is requested more than once. const html = await renderViaHTTP(appPort, '/stars') expect(await fsExists(builtPage('font-manifest.json'))).toBe(true) expect(html).not.toContain( `<link rel="stylesheet" href="${staticFont}"/><link rel="stylesheet" href="${starsFont}"/><link rel="stylesheet" href="${staticFont}"/><link rel="stylesheet" href="${starsFont}"/>` ) }) } ) }) } ) ;(process.env.TURBOPACK ? it.skip : it)( 'Spread operator regression on <link>', async () => { const appDir = join(fixturesDir, 'spread-operator-regression') const { code } = await nextBuild(appDir) // eslint-disable-next-line expect(code).toBe(0) } ) ;(process.env.TURBOPACK ? it.skip : it)( 'makeStylesheetInert regression', async () => { const appDir = join(fixturesDir, 'make-stylesheet-inert-regression') const { code } = await nextBuild(appDir) // eslint-disable-next-line expect(code).toBe(0) } ) describe('font override', () => { ;(process.env.TURBOPACK_DEV ? describe.skip : describe)( 'production mode', () => { let app, appPort beforeAll(async () => { const appDir = join(fixturesDir, 'font-override') await nextBuild(appDir) appPort = await findPort() app = await nextStart(appDir, appPort) }) afterAll(() => killApp(app)) it('should inline font-override values', async () => { const html = await renderViaHTTP(appPort, '/') const $ = cheerio.load(html) const inlineStyle = $( 'style[data-href="path_to_url"]' ) const inlineStyleMultiple = $( 'style[data-href="path_to_url"]' ) expect(inlineStyle.length).toBe(1) expect(inlineStyle.html()).toContain( '@font-face{font-family:"Roboto Fallback";ascent-override:92.77%;descent-override:24.41%;line-gap-override:0.00%;src:local("Arial")}' ) expect(inlineStyleMultiple.length).toBe(1) expect(inlineStyleMultiple.html()).toContain( '@font-face{font-family:"Libre Baskerville Fallback";ascent-override:97.00%;descent-override:27.00%;line-gap-override:0.00%;src:local("Times New Roman")}' ) expect(inlineStyleMultiple.html()).toContain( '@font-face{font-family:"Open Sans Fallback";ascent-override:106.88%;descent-override:29.30%;line-gap-override:0.00%;src:local("Arial")}' ) }) } ) }) describe('font override with size adjust', () => { ;(process.env.TURBOPACK_DEV ? describe.skip : describe)( 'production mode', () => { let app, appPort beforeAll(async () => { const appDir = join(fixturesDir, 'font-override-size-adjust') await nextBuild(appDir) appPort = await findPort() app = await nextStart(appDir, appPort) }) afterAll(() => killApp(app)) it('should inline font-override values', async () => { const html = await renderViaHTTP(appPort, '/') const $ = cheerio.load(html) const inlineStyle = $( 'style[data-href="path_to_url"]' ) const inlineStyleMultiple = $( 'style[data-href="path_to_url"]' ) expect(inlineStyle.length).toBe(1) expect(inlineStyle.html()).toContain( '@font-face{font-family:"Roboto Fallback";ascent-override:92.98%;descent-override:24.47%;line-gap-override:0.00%;size-adjust:99.78%;src:local("Arial")}' ) expect(inlineStyleMultiple.length).toBe(1) expect(inlineStyleMultiple.html()).toContain( '@font-face{font-family:"Libre Baskerville Fallback";ascent-override:76.22%;descent-override:21.22%;line-gap-override:0.00%;size-adjust:127.26%;src:local("Times New Roman")}' ) expect(inlineStyleMultiple.html()).toContain( '@font-face{font-family:"Open Sans Fallback";ascent-override:101.65%;descent-override:27.86%;line-gap-override:0.00%;size-adjust:105.15%;src:local("Arial")}' ) }) } ) }) describe('invalid configuration', () => { ;(process.env.TURBOPACK_DEV ? describe.skip : describe)( 'production mode', () => { it('should show a proper error if assetPrefix starts with .', async () => { const appDir = join(fixturesDir, 'invalid-assertprefix') const { stderr } = await nextBuild(appDir, undefined, { stderr: true, }) expect(stderr).toContain( 'assetPrefix must start with a leading slash or be an absolute URL(http:// or path_to_url ) }) } ) }) }) ```
Sid Ahmed Benamara (born July 9, 1973) is an Algerian former international football player. He took part in the 1998 African Cup of Nations. Honours Won the Algerian Cup with MC Oran in 1996 Won the Algerian League Cup with MC Oran in 1996 Won the Arab Cup Winners Cup twice with MC Oran in 1997 and 1998 References External links 1973 births Living people Algerian men's footballers Algeria men's international footballers 1998 African Cup of Nations players ASM Oran players MC Oran players JSM Béjaïa players ES Mostaganem players Men's association football midfielders 21st-century Algerian people
```smalltalk using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Es.InkPainter { using PaintSet = InkCanvas.PaintSet; public static class GameObjectExtension { /// <summary> /// Attach InkCanvas to GameObject. /// </summary> /// <param name="gameObject">GameObject.</param> /// <param name="paintDatas">Material data to be painted.</param> /// <returns>Generated InkCanvas.</returns> public static InkCanvas AddInkCanvas(this GameObject gameObject, List<PaintSet> paintDatas) { if(paintDatas == null || paintDatas.Count == 0) { //PaintDatas is null or empty. Debug.LogError("Parameter is null or empty."); return null; } var active = gameObject.activeSelf; gameObject.SetActive(false); var inkCanvas = gameObject.AddComponent<InkCanvas>(); if(inkCanvas == null) { //Add component error Debug.LogError("Could not attach InkCanvas to GameObject."); return null; } //Init canvas component. inkCanvas.OnCanvasAttached += canvas => { canvas.PaintDatas = paintDatas; }; gameObject.SetActive(active); return inkCanvas; } /// <summary> /// Attach InkCanvas to GameObject. /// </summary> /// <param name="gameObject">GameObject.</param> /// <param name="paintDatas">Material data to be painted.</param> /// <returns>Generated InkCanvas.</returns> public static InkCanvas AddInkCanvas(this GameObject gameObject, PaintSet paintData) { if(paintData == null) { Debug.LogError("Parameter is null or empty."); return null; } return gameObject.AddInkCanvas(new List<PaintSet>() { paintData }); } } } ```
```ruby class Gperf < Formula desc "Perfect hash function generator" homepage "path_to_url" url "path_to_url" mirror "path_to_url" sha256 your_sha256_hash license "GPL-3.0-or-later" bottle do sha256 cellar: :any_skip_relocation, arm64_sonoma: your_sha256_hash sha256 cellar: :any_skip_relocation, arm64_ventura: your_sha256_hash sha256 cellar: :any_skip_relocation, arm64_monterey: your_sha256_hash sha256 cellar: :any_skip_relocation, arm64_big_sur: your_sha256_hash sha256 cellar: :any_skip_relocation, sonoma: your_sha256_hash sha256 cellar: :any_skip_relocation, ventura: your_sha256_hash sha256 cellar: :any_skip_relocation, monterey: your_sha256_hash sha256 cellar: :any_skip_relocation, big_sur: your_sha256_hash sha256 cellar: :any_skip_relocation, catalina: your_sha256_hash sha256 cellar: :any_skip_relocation, mojave: your_sha256_hash sha256 cellar: :any_skip_relocation, high_sierra: your_sha256_hash sha256 cellar: :any_skip_relocation, sierra: your_sha256_hash sha256 cellar: :any_skip_relocation, el_capitan: your_sha256_hash sha256 cellar: :any_skip_relocation, x86_64_linux: your_sha256_hash end def install system "./configure", "--prefix=#{prefix}" system "make", "install" end test do assert_match "TOTAL_KEYWORDS 3", pipe_output(bin/"gperf", "homebrew\nfoobar\ntest\n") end end ```
Cynaeda nepticulalis is a moth in the family Crambidae. It was described by O. Hofmann in 1897. It is found in Turkey. References Moths described in 1897 Odontiini
Shouxiang () is a metro station on Line 6 of the Hangzhou Metro in China. It was opened on 30 December 2020, together with the Line 6. It is located in the Fuyang District of Hangzhou. References Hangzhou Metro stations Railway stations in China opened in 2020
This is a list of religious people in Hinduism, including gurus, sants, monks, yogis and spiritual masters. A guru is defined as a "teacher, spiritual guide, [or] godman," by author David Smith. To obtain the title of guru, one must go through a standard initiation process referred to as diksha, in which they receive a mantra, or sacred Sanskrit phrase. The list A to C A.C. Bhaktivedanta Swami Prabhupada (1September 189614November 1977) Abhinavagupta (c. 9501020) Adi Shankara (507 BCE 475 BCE) Acharya Prashant (1978 Present) Advaita Acharya (1434–1539) Agastyar (3rd millennium BCE) Akka Mahadevi (c.1130 - 1160), Kannada literature Alvar Saints (700–1000) Anandamayi Ma (30April 1896 - 27 August 1982) Anasuya Devī, also known as Jillellamudi Amma(28March 192312June 1985) Andal (c.767), Tamil literature Anukulchandra Chakravarty, also known as Sree Sree Thakur (born 14 September 1888) Arunagirinathar (15th century A.D.) Avvaiyar (c. 1st and 2nd century AD), Tamil literature Ayya Vaikundar (1809–1851) Atri (Vedic times) Rig Veda Baba Hari Dass (26March 192325September 2018) Baba Mast Nath (born 1764) Bahinabai (1628–1700), Marathi literature Bamakhepa, or Bamakhyapa/ Bamdev Bhairav (18371911) Basava (1105 CE–1167 CE) Bhadase Sagan Maraj (1920–1971), Indo-Trinidadian Hindu leader and politician, founded the Sanatan Dharma Maha Sabha Bhagat Dhanna (born 1415) Bhagatji Maharaj (20March 18297November 1897) Bhagawan Nityananda (November orDecember 18978August 1961) Bhakti Charu Swami (17September 1945 – 4 July 2020) Bhakti Tirtha Swami (25February 195027June 2005) Bhaktisiddhanta Sarasvati (6 February 1874 – 1 January 1937) Bhaktivinoda Thakur (2 September 1838 – 23 June 1914) Bhaskararaya (c. 1690–1785) Bijoy Krishna Goswami (2August 18411899) Brahma Chaitanya, also known as Gondavalekar Maharaj (1845–22December 1913) Brahmanand Swami (1772–1832) Brahmananda Saraswati (20December 186820May 1953) Chaitanya Mahaprabhu (18February 148614June 1534) Chandrashekarendra Saraswati (20May 18948January 1994) Chandrashekhara Bharati III (1892–1954) Chattampi Swamikal (c. 1853–1924) Chaturbhuj Sahay (3November 188324September 1957) Chinmayananda Saraswati (8May 19163August 1993) Chokhamela (14th century) D to F Dada Bhagwan, founder of Akram Vignan (7Novembery 19082January 1988) Damodardev (c. 1488c. 1598) Dayananda Saraswati (Ärsha Vidya) (15August 193024September 2015) Dayananda Saraswati, founder of Arya Samaj (12February 182430October 1883) Dhyanyogi Madhusudandas (1878–1994) Dhirendra Krishna Shastri Dnyaneshwar (1275–1296) Drona (Mahabharat era) Eknath (1533–1599) Eknath Easwaran (1910–1999) G to I Gagangiri Maharaj (19064February 2008) Gajanan Maharaj (c. mid-19th century) Ganapati Muni (c. 1878–c.1936) Gambhirnath (death 1917) Garib Das (1717-1778) Gaurakisora Dasa Babaji (1838–1915) Gnanananda Giri (c. early 19th century) Gopala Bhatta Goswami (1503–1578) Gopalanand Swami (1781–1852) Gopi Krishna (yogi) (1903–1984) Gora Kumbhar (c. 1267–c.1317) Gorakhnath (c. 10th or 11th century) Gulabrao Maharaj (6 July 1881 – 20 September 1915 ) Gunatitanand Swami (17October 178511October 1867) Guru Jambheshwar (1451-1536) Gurumayi Chidvilasananda (born 24June 1955) Hans Ji Maharaj (8November 190018July 1966) Haridasa Thakur (born 1451 or 1450) Hariharananda Giri (Paramahamsa Hariharananda) (27May 19073December 2002) Isaignaniyar (c. 7th century), Tamil literature J to L Jaggi Vasudev (born 3September 1957) Jalaram Bapa (4 November 1799 23 February 1881) Janabai (c. 13th century), Marathi literature Jayatirtha (1345–1388) Jiva Goswami (c. 1513–1598) Kabir (c. 15th century), Indian saint and mystic Kalki Bhagwan (born 1949) Kamlesh D. Patel, also known as Daaji (born 28 September 1965) Kanakadasa (1509–1609) Kanhopatra (c. 15th century), Marathi literature Kanwar Saheb Karaikkal Ammaiyar (c. 6th century), Tamil literature Khatkhate Baba (1859–1930) Kirpal Singh (c. 1894–1974) (Sawan Kirpal Ruhani Mission) Kirupanandha Variyar (25August 19067November 1993) Kripalu Maharaj (5October 192215November 2013) Krishna Prem (1898–1965) Krishnadasa Kaviraja (born 1496) Krishnananda Saraswati (25April 192223November 2001) Lahiri Mahasaya (Shyamacharan Lahiri) (30September 182826September 1895) Lakshman Joo (9May 190727September 1991), modern scholar of Kashmiri Shaivism Lakshmanananda Saraswati (192623August 2008) Lalleshwari (c.13201392), Kashmiri literature M to O Madhavdev (c. 1489c. 1596) Madhvacharya (c. 12381317) Mahant Swami Maharaj (born 13September 1933) Maharishi Mahesh Yogi (12January 19185February 2008) Mahavatar Babaji (mid-19thmid-20th century) Mangayarkkarasiyar (c. 7th century), Tamil literature Manik Prabhu Master C. V. V. (4 August 1868 – 12 May 1922) Mata Amritanandamayi (born 27September 1953) Matsyendranath (c. 10th century) Meera (c. 1498c. 1547), Hindi literature Mehi (28April 18858June 1986) Mirra Alfassa (21February 187817November 1973) Morari Bapu (born 25September 1946) Mother Meera (born 26December 1960) Muktabai (c.12791297), Marathi literature Muktanand Swami (1758–1830) Muktananda (16May 19082October Muthuswami Dikshitar (24March 177621October 1835) Namdev (c. 1270c. 1350) Narasimha Saraswati(1378–1459) Narayan Maharaj (20May 18853September 1945) Narayana Guru, writer of Daiva Dasakam (c. 18541928) Narayanprasaddasji Swami (14January 192130January 2018), also known as Tapomurti Shastri Swami (Gujarati: તપોમૂર્તિ શાસ્ત્રી સ્વામી) Narottama Dasa (born 1466) Narsinh Mehta (1414–1481), also known as Narsi Mehta or Narsi Bhagat Nayakanahatti Thipperudra Swamy (c. 15th–c. 16th century), also known as Nayakanahatti Thippeswamy Nayanmars Saints (700–1000) Neem Karoli Baba (c. late 19th or early 20th century 11September 1973) Nigamananda Paramahansa (18August 1880 – 29November 1935) Nimbarka (c. 13th century or earlier) Niranjanananda (c. 18629May 1904) Nirmala Srivastava, also known as Shri Mataji Nirmala Devi (21March 192323February 2011) Nisargadatta Maharaj(17April 18978September 1981) Nishkulanand Swami (1766–1848) Nityananda Prabhu (born 1474) Om Swami (born 1979) Osho (11 December 1931 – 19 January 1990) P to R Panth Maharaj (3 September 1855 – 16 October 1905) Paramahansa Yogananda (5January 18937March 1952) Parthasarathi Rajagopalachari, also known as chariji (24 July 1927 – 20 December 2014) Pattinathar (c. 10th or 14th century AD) Pavhari Baba (birth unknown1898) Potuluri Virabrahmendra Swami (c. 17th century) Prabhat Ranjan Sarkar, also known as Shrii Shrii Anandamurti (21May 192121October 1990) Pramukh Swami Maharaj (born 7December 1921–13 August 2016) Pranavananda, also known as Yugacharya Srimat Swami Pranavananda Ji Maharaj (29January 18968February 1941) Pranavanda Saraswati (28August 190828August 1982) Prem Rawat, also known as Maharaji, Guru Maharaj Ji, and Balyogeshwar (born 10December 1957) Purandara Dasa (c. 1484 – c. 1565) Puran Puri (born 1742) Rambhadracharya (born 14January 1950) Ramdas Kathiababa (early 24 July 1800 – 8 February 1909) Ramdev Pir (1352–1385 AD) Radhanath Swami (born 7December 1950) Raghavendra Swami (15951671) Raghunatha Bhatta Goswami (1505–1579) Rajinder Singh (spiritual master) (20 September 1946) (Sawan Kirpal Ruhani Mission) (Founder of Science of Spirituality) Rakeshprasad (born 23July 1966) Raghuttama Tirtha (15371596) Ram Chandra (Babuji) (30 April 1899 – 19 April 1983) Ram Thakur (2February 18601May 1949) Rama Tirtha (22October 187327October 1906) Ramakrishna (18February 183616August 1886) See Disciples Ramalinga Swamigal (5 October 1823, disappeared on 30 January 1874), also known as Vallalar Ramana Maharshi (30December 187914April 1950) Ramanuja (c. 1017c. 1137) Ramprasad Sen (c. 1718 or c. 1723c. 1775) Ravidas (1398–1540) Rupa Goswami (1489–1564) S to U Sant Rampal Ji Maharaj (1951–present) Sahadeo Tiwari (1892–1972) Sai Baba of Shirdi (1838–1918) Samarth Ramdas (1608–1681) Sanatana Goswami (1488–1558) Sankardev (c. 1449c. 1568) Sant Charandas (1703–1782) Sant Nirmala (c. 14th century), Marathi literature Sant Soyarabai (c. 14th century), Marathi literature Sarada Devi (22 December 1853 – 20 July 1920) Satchidananda Saraswati (22December 191419August 2002) Sathya Sai Baba (23November 192624April 2011) Satnarayan Maharaj (born 1931), Indo-Trinidadian Hindu leader and son-in-law of Bhadase Sagan Maraj Satsvarupa dasa Goswami (born 6December 1939) Satya Narayan Goenka (30January 192429September 2013) Satyananda Giri (17November 18962August 1971) Satyananda Saraswati (25December 19235December 2009) Satyapramoda Tirtha (1918–1997) Shaunaka, Seshadri Swamigal (22January 18704January 1929) Shastriji Maharaj (31January 186510May 1951) Shivabalayogi (24January 193528March 1994) Shreedhar Swami (7December 190819April 1973) Shrimad Rajchandra (11November 18679April 1901) Shripad Shri Vallabha Shrivatsa Goswami (27October 1950present Shyama Shastri (26April 17626February 1982) Sitaramdas Omkarnath (17February 18926December 1827) Sivananda Saraswati (8September 188714July 1963) Sivaya Subramuniyaswami (5January 192712November 2001) Soham Swami (birth unknown1918) Sopan (c. 13th century) Sri Aurobindo (15August 18725December 1950) Sripadaraja (c. 1422 – 1480) Sri Chinmoy (27August 193111October 2007) Sri Madhukarnath (born 06November 1948) Sri Sri Ravi Shankar (born 1956) Sudhanshu Ji Maharaj (born May 1955) Surdas (c. late 15th-century) Swami Abhedananda (2October 18668September 1939) Swami Bhoomananda Tirtha (born 13May 1933) Swami Chidbhavananda (11March 189816November 1985) Swami Janakananda (born 13June 1939) Swami Keshwanand Satyarthi (born 5 September 1943) (Paramhans Satyarthi Mission, Advait Mat ) Swami Nithyananda (born 1January 1978 or 13March 1977) Swami Purnachaitanya (born 1984) Swami Sri Yukteswar Giri (1855–1936) Swami Rama (1925–1996) Swami Ramanand (c. 1738c. 1802) Swami Ramdas (10April 188425July 1963) Swami Samarth Swami Vivekananda (12January 18634July 1902) Swaminarayan (3April 17811June 1830) Swarupanand (1February 18849April 1936), part of Advait Mat lineage Swarupananda (8July 187127June 1906) Tibbetibaba (birth unknown19November 1930) Trailanga (1607–1887) Tukaram (c. 16081649) Tulsidas (1532–1623), also known as Goswami Tulsidas Tyagaraja (4May 17676January 1847) Upasni Maharaj (15May 187024December 1941) Uppaluri Gopala Krishnamurti (9July 1918 22March 2007) Utpaladeva (ca. 900–950), teacher of Kashmiri Shaivism V to X Vallabha Acharya (14791531) Vadiraja Tirtha (1480–1600) Vasugupta (~ 800–850 CE), author of the Shiva Sutras in Kashmiri Shaivism Vidyaranya (c. 1268c. 1386) Vishuddhananda Paramahansa (14March 185314July 1937) Vishwesha Tirtha (1931–2019) Vyasatirtha (c. 1460 – 1539) Vasistha (Rig Veda) Y to Z Yogaswami (1872March 1964) Yogi Ramsuratkumar (1December 191820February 2001) Yogiji Maharaj (23 May 1892 – 23 January 1971) Yukteswar Giri (10May 18559March 1936) See also Dalit saints of Hinduism List of Hindus List of founders of religious traditions Modern yoga gurus References Gurus and saints Sant Mat Hinduism-related lists
```python # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # # path_to_url # # Unless required by applicable law or agreed to in writing, # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # specific language governing permissions and limitations import tvm import tvm.testing from tvm.script import tir as T # fmt: off # pylint: disable=no-member,invalid-name,unused-variable,line-too-long,redefined-outer-name,redundant-keyword-arg @tvm.script.ir_module class Before: @T.prim_func def main(inputs: T.Buffer((1, 4, 4, 512), "float32"), weight: T.Buffer((4, 4, 512, 256), "float32"), conv2d_transpose_nhwc: T.Buffer((1, 8, 8, 256), "float32")) -> None: # function attr dict T.func_attr({"global_symbol": "main", "tir.noalias": True}) inputs_flat = T.Buffer([8192], dtype="float32", data=inputs.data) weight_flat = T.Buffer([2097152], dtype="float32", data=weight.data) conv2d_transpose_nhwc_flat = T.Buffer([16384], dtype="float32", data=conv2d_transpose_nhwc.data) # var definition threadIdx_x = T.env_thread("threadIdx.x") blockIdx_x = T.env_thread("blockIdx.x") # body T.launch_thread(blockIdx_x, 64) conv2d_transpose_nhwc_local = T.decl_buffer([8], "float32", scope="local") PadInput_shared = T.decl_buffer([768], "float32", scope="shared") weight_shared = T.decl_buffer([4096], "float32", scope="shared") T.launch_thread(threadIdx_x, 32) for i2_3_init, i1_4_init, i2_4_init in T.grid(2, 2, 2): conv2d_transpose_nhwc_local[i1_4_init * 4 + i2_3_init * 2 + i2_4_init] = T.float32(0) for i6_0 in T.serial(16): for ax0_ax1_ax2_ax3_fused_0 in T.serial(24): PadInput_shared[ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x] = T.if_then_else(128 <= ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x and ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x < 640 and 1 <= blockIdx_x // 32 * 2 + (ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x) % 128 // 32 and blockIdx_x // 32 * 2 + (ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x) % 128 // 32 < 5, inputs_flat[blockIdx_x // 32 * 1024 + ax0_ax1_ax2_ax3_fused_0 * 512 + i6_0 * 32 + threadIdx_x - 2560], T.float32(0), dtype="float32") for ax0_ax1_ax2_ax3_fused_0 in T.serial(32): weight_shared[T.ramp(ax0_ax1_ax2_ax3_fused_0 * 128 + threadIdx_x * 4, 1, 4)] = weight_flat[T.ramp((ax0_ax1_ax2_ax3_fused_0 * 128 + threadIdx_x * 4) // 256 * 131072 + i6_0 * 8192 + (ax0_ax1_ax2_ax3_fused_0 * 128 + threadIdx_x * 4) % 256 // 8 * 256 + blockIdx_x % 32 * 8 + threadIdx_x % 2 * 4, 1, 4)] for i6_1, i2_3, i4_2, i5_2, i6_2, i1_4, i2_4 in T.grid(4, 2, 4, 4, 8, 2, 2): conv2d_transpose_nhwc_local[i1_4 * 4 + i2_3 * 2 + i2_4] = conv2d_transpose_nhwc_local[i1_4 * 4 + i2_3 * 2 + i2_4] + T.if_then_else((i1_4 + i4_2) % 2 == 0 and (i2_4 + i5_2) % 2 == 0, PadInput_shared[threadIdx_x // 8 * 128 + (i1_4 + i4_2) // 2 * 128 + (i2_4 + i5_2) // 2 * 32 + i2_3 * 32 + i6_1 * 8 + i6_2], T.float32(0), dtype="float32") * weight_shared[i6_1 * 64 + i6_2 * 8 + threadIdx_x % 8 + 3840 - i5_2 * 256 - i4_2 * 1024] for ax1, ax2 in T.grid(2, 4): conv2d_transpose_nhwc_flat[threadIdx_x // 8 * 4096 + ax1 * 2048 + blockIdx_x // 32 * 1024 + ax2 * 256 + blockIdx_x % 32 * 8 + threadIdx_x % 8] = conv2d_transpose_nhwc_local[ax1 * 4 + ax2] @tvm.script.ir_module class After: @T.prim_func def main(inputs: T.Buffer((1, 4, 4, 512), "float32"), weight: T.Buffer((4, 4, 512, 256), "float32"), conv2d_transpose_nhwc: T.Buffer((1, 8, 8, 256), "float32")) -> None: # function attr dict T.func_attr({"global_symbol": "main", "tir.noalias": True}) inputs_flat = T.Buffer([8192], dtype="float32", data=inputs.data) weight_flat = T.Buffer([2097152], dtype="float32", data=weight.data) conv2d_transpose_nhwc_flat = T.Buffer([16384], dtype="float32", data=conv2d_transpose_nhwc.data) # var definition threadIdx_x = T.env_thread("threadIdx.x") blockIdx_x = T.env_thread("blockIdx.x") # body T.launch_thread(blockIdx_x, 64) conv2d_transpose_nhwc_local = T.decl_buffer([8], "float32", scope="local") PadInput_shared = T.decl_buffer([768], "float32", scope="shared") weight_shared = T.decl_buffer([4096], "float32", scope="shared") T.launch_thread(threadIdx_x, 32) for i2_3_init, i1_4_init, i2_4_init in T.grid(2, 2, 2): conv2d_transpose_nhwc_local[i1_4_init * 4 + i2_3_init * 2 + i2_4_init] = T.float32(0) for i6_0 in T.serial(16): for ax0_ax1_ax2_ax3_fused_0 in T.serial(24): PadInput_shared[ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x] = T.if_then_else(1 <= (ax0_ax1_ax2_ax3_fused_0 + threadIdx_x // 32) // 4 and (ax0_ax1_ax2_ax3_fused_0 + threadIdx_x // 32) // 20 < 1 and 1 <= blockIdx_x // 32 * 2 + (ax0_ax1_ax2_ax3_fused_0 + threadIdx_x // 32) % 4 and (blockIdx_x // 32 * 2 + (ax0_ax1_ax2_ax3_fused_0 + threadIdx_x // 32) % 4) // 5 < 1, inputs_flat[blockIdx_x // 32 * 1024 + ax0_ax1_ax2_ax3_fused_0 * 512 + i6_0 * 32 + threadIdx_x - 2560], T.float32(0), dtype="float32") for ax0_ax1_ax2_ax3_fused_0 in T.serial(32): weight_shared[T.ramp(ax0_ax1_ax2_ax3_fused_0 * 128 + threadIdx_x * 4, 1, 4)] = weight_flat[T.ramp((ax0_ax1_ax2_ax3_fused_0 + threadIdx_x * 4 // 128) // 2 * 131072 + i6_0 * 8192 + (ax0_ax1_ax2_ax3_fused_0 * 16 + threadIdx_x * 4 // 8) % 32 * 256 + blockIdx_x % 32 * 8 + threadIdx_x % 2 * 4, 1, 4)] for i6_1, i2_3, i4_2, i5_2, i6_2, i1_4, i2_4 in T.grid(4, 2, 4, 4, 8, 2, 2): conv2d_transpose_nhwc_local[i1_4 * 4 + i2_3 * 2 + i2_4] = conv2d_transpose_nhwc_local[i1_4 * 4 + i2_3 * 2 + i2_4] + T.if_then_else((i1_4 + i4_2) % 2 == 0 and (i2_4 + i5_2) % 2 == 0, PadInput_shared[threadIdx_x // 8 * 128 + (i1_4 + i4_2) // 2 * 128 + (i2_4 + i5_2) // 2 * 32 + i2_3 * 32 + i6_1 * 8 + i6_2], T.float32(0), dtype="float32") * weight_shared[i6_1 * 64 + i6_2 * 8 + threadIdx_x % 8 + 3840 - i5_2 * 256 - i4_2 * 1024] for ax1, ax2 in T.grid(2, 4): conv2d_transpose_nhwc_flat[threadIdx_x // 8 * 4096 + ax1 * 2048 + blockIdx_x // 32 * 1024 + ax2 * 256 + blockIdx_x % 32 * 8 + threadIdx_x % 8] = conv2d_transpose_nhwc_local[ax1 * 4 + ax2] @tvm.script.ir_module class After_simplified: @T.prim_func def main(inputs: T.Buffer((1, 4, 4, 512), "float32"), weight: T.Buffer((4, 4, 512, 256), "float32"), conv2d_transpose_nhwc: T.Buffer((1, 8, 8, 256), "float32")) -> None: # function attr dict T.func_attr({"global_symbol": "main", "tir.noalias": True}) # var definition threadIdx_x = T.env_thread("threadIdx.x") blockIdx_x = T.env_thread("blockIdx.x") inputs_flat = T.Buffer([8192], dtype="float32", data=inputs.data) weight_flat = T.Buffer([2097152], dtype="float32", data=weight.data) conv2d_transpose_nhwc_flat = T.Buffer([16384], dtype="float32", data=conv2d_transpose_nhwc.data) # body T.launch_thread(blockIdx_x, 64) conv2d_transpose_nhwc_local = T.decl_buffer([8], "float32", scope="local") PadInput_shared = T.decl_buffer([768], "float32", scope="shared") weight_shared = T.decl_buffer([4096], "float32", scope="shared") T.launch_thread(threadIdx_x, 32) for i2_3_init, i1_4_init, i2_4_init in T.grid(2, 2, 2): conv2d_transpose_nhwc_local[i1_4_init * 4 + i2_3_init * 2 + i2_4_init] = T.float32(0) for i6_0 in T.serial(16): for ax0_ax1_ax2_ax3_fused_0 in T.serial(24): PadInput_shared[ax0_ax1_ax2_ax3_fused_0 * 32 + threadIdx_x] = T.if_then_else(4 <= ax0_ax1_ax2_ax3_fused_0 and ax0_ax1_ax2_ax3_fused_0 < 20 and 1 <= blockIdx_x // 32 * 2 + ax0_ax1_ax2_ax3_fused_0 % 4 and blockIdx_x // 32 * 2 + ax0_ax1_ax2_ax3_fused_0 % 4 < 5, inputs_flat[blockIdx_x // 32 * 1024 + ax0_ax1_ax2_ax3_fused_0 * 512 + i6_0 * 32 + threadIdx_x - 2560], T.float32(0), dtype="float32") for ax0_ax1_ax2_ax3_fused_0 in T.serial(32): weight_shared[T.ramp(ax0_ax1_ax2_ax3_fused_0 * 128 + threadIdx_x * 4, 1, 4)] = weight_flat[T.ramp(ax0_ax1_ax2_ax3_fused_0 // 2 * 131072 + i6_0 * 8192 + ax0_ax1_ax2_ax3_fused_0 % 2 * 4096 + threadIdx_x // 2 * 256 + blockIdx_x % 32 * 8 + threadIdx_x % 2 * 4, 1, 4)] for i6_1, i2_3, i4_2, i5_2, i6_2, i1_4, i2_4 in T.grid(4, 2, 4, 4, 8, 2, 2): conv2d_transpose_nhwc_local[i1_4 * 4 + i2_3 * 2 + i2_4] = conv2d_transpose_nhwc_local[i1_4 * 4 + i2_3 * 2 + i2_4] + T.if_then_else((i1_4 + i4_2) % 2 == 0 and (i2_4 + i5_2) % 2 == 0, PadInput_shared[threadIdx_x // 8 * 128 + (i1_4 + i4_2) // 2 * 128 + (i2_4 + i5_2) // 2 * 32 + i2_3 * 32 + i6_1 * 8 + i6_2], T.float32(0), dtype="float32") * weight_shared[i6_1 * 64 + i6_2 * 8 + threadIdx_x % 8 + 3840 - i5_2 * 256 - i4_2 * 1024] for ax1, ax2 in T.grid(2, 4): conv2d_transpose_nhwc_flat[threadIdx_x // 8 * 4096 + ax1 * 2048 + blockIdx_x // 32 * 1024 + ax2 * 256 + blockIdx_x % 32 * 8 + threadIdx_x % 8] = conv2d_transpose_nhwc_local[ax1 * 4 + ax2] # pylint: enable=no-member,invalid-name,unused-variable,line-too-long,redefined-outer-name,redundant-keyword-arg # fmt: on def test_renormalize_split_pattern(): after = tvm.tir.transform.RenormalizeSplitPattern()(Before) tvm.ir.assert_structural_equal(after, After) after = tvm.tir.transform.Simplify()(after) tvm.ir.assert_structural_equal(after, After_simplified) @T.prim_func def impossible_equality(n: T.int32): # Prior to bugfix, this conditional defined the expression "2" as # equal to zero within the then_case. [min_value=2, max_value=0] if 2 == 0: # Then this expression evaluates n/2, using the min/max values # of "2", which is caught as a divide by zero error. if n // 2 >= 16: T.evaluate(0) @T.prim_func def impossible_inequality(n: T.int32): # Prior to bugfix, this conditional set up a range of possible # values for the expression "-2" as [0, kPosInf]. if -1 < -2: if n // (-2) >= 16: T.evaluate(0) integer_condition = tvm.testing.parameter( impossible_equality, impossible_inequality, ) def test_analyze_inside_integer_conditional(integer_condition): """Avoid crash occurring in ConstIntBoundAnalyzer. Crash occurred when simplifying some expressions with provably false integer expressions. If the expressions were renormalized before calling Simplify, conditional statements could assign a range of possible values to integers, as if they were variables. This would result in divide by zero throwing an exception, followed by a second exception during stack unwinding causing the program to crash. """ # Similar issue would occur in most transformations that subclass # IRMutatorWithAnalyzer. tir.transform.Simplify() is an # exception, as it rewrites the integer conditionals first. These # tests are written using RenormalizeSplitPattern as it is the # first case identified. transform = tvm.tir.transform.RenormalizeSplitPattern() # Issue would result in an error through while applying the transformation. mod = tvm.IRModule.from_expr(integer_condition) transform(mod) if __name__ == "__main__": tvm.testing.main() ```
The Pakistan Medal () was established by King George VI in 1949 as a commemorative medal. The medal commemorates service during the period just before and after the creation of the independent Dominion of Pakistan on 14 August 1947. Most recipients were members of the armed forces of Pakistan, including attached British personnel. The medal is made of cupronickel and is in diameter. The obverse has the Royal cypher of King George VI surrounded by the inscription GEORGIVS VI D:G:BR:OMN:REX. The reverse shows the flag of Pakistan surrounded by a wreath, with inscriptions in Urdu above and below. The ribbon is dark green with a narrow central stripe of white, the colours on the flag of Pakistan. The name and details of the recipient were impressed on the edge of the medal. See also Awards and decorations of the Pakistan Armed Forces Indian Independence Medal References Military awards and decorations of Pakistan Military awards and decorations of the United Kingdom Pakistan and the Commonwealth of Nations
```xml export * from "@tsed/di"; export {Get, Post, Put, Delete, Head, Patch, Options, Route as Lambda} from "@tsed/schema"; export * from "@tsed/platform-params"; ```
Duchy of Syrmia or Syrmian Duchy may refer to: Syrmian Duchy of Sermon, a duchy in the region of Syrmia, ruled by duke Sermon (c. 1018) Syrmian Duchy of John Angelos, a duchy in the region of Syrmia, ruled by duke John Angelos (first half of the 13th century) Syrmian Duchy of Radoslav Čelnik, a duchy in the region of Syrmia, ruled by duke Radoslav Čelnik (c. 1527-1530) Syrmian Duchy of the Odescalchi, designation for feudal domain of Odescalchi ducal family in the region of Syrmia See also Syrmia (disambiguation) Byzantine Syrmia (disambiguation)
"Against the Wind" is Máire Brennan's first solo single, taken from her 1992 album Máire. Two covers were made available, one with a sand pattern and the title of the single, the other with a photograph by Tim Jarvis, of Máire and three dancers, superimposed on the sand pattern. A promotional video directed by the Douglas Brothers was made to accompany the single. The song also appears on Moya Brennan's 2005 live album Óró - A Live Session and on 2008's Heart Strings. Track listing 7" Vinyl & Cassette "Against the Wind" (edit) "She Moved Through the Fair" Compact Disc "Against the Wind" (edit) "She Moved Through the Fair" "Against the Wind" (album version) References 1992 debut singles 1992 songs RCA Records singles
```yaml homepage: "path_to_url" language: c++ primary_contact: "srj@google.com" main_repo: "path_to_url" file_github_issue: false auto_ccs: - alex.reinking@gmail.com - nathaniel.brough@gmail.com fuzzing_engines: - honggfuzz - libfuzzer sanitizers: - address # LLVM isn't building with Undefined sanitizer # - undefined ```
Banknotes of the Japanese yen are the banknotes of Japan, denominated in Japanese yen (¥). These are all released by a centralized bank which was established in 1882, known as the Bank of Japan. The first notes to be printed were released between 1885 and 1887 in denominations of 1 to 100 yen. Throughout their history, the denominations have ranged from 0.05 yen to 10,000 yen. Banknotes under 1 yen were abolished in 1953, and those under 500 yen were discontinued by 1984. Higher end notes of 1000 yen and more made their appearance in the 1950s. These continue to be issued to the present in ¥1000, ¥2000, ¥5000, and ¥10,000 denominations. The formerly used notes of 1 to 500 yen from 1946 to the 1980s while discontinued continue to be valid. These are however, worth more than their face value on the collector's market. Portraits Meiji era 1885–1887 1888–1891 1899–1900 1910 Taishō era 1915–1917 Shōwa era 1943–1945 1946–1948 1950–1953 Series B introduced a new high value banknote ¥1000. 1957–1969 The series C introduced two new high value banknotes ¥5000 and ¥10,000. 1984 Due to the discovery of a large number of counterfeit Series D banknotes at the end of 2004, all Series D banknotes except ¥2000 were virtually suspended on January 17, 2005, and officially suspended on April 2, 2007. According to a news release from the National Police Agency, they seized 11,717 counterfeit Series D banknotes (excluding the ¥2000 denomination) in 2005. However, they seized only 486 counterfeit current issue banknotes, namely Series E ¥1000, ¥5000, ¥10,000, and Series D ¥2000. Heisei era 2000 This is the current issue. The 2000 yen note was first issued on July 19, 2000, to commemorate the 26th G8 summit in Okinawa and the 2000 millennium year as well. Pictured on the front of the note is Shureimon, a famous gate in Naha, Okinawa near the site of the summit. The other side features a scene from The Tale of Genji and the author Murasaki Shikibu on the lower right corner. The motif of the scene was taken from the 12th century illuminated handscrolls of the novel kept at the Tokugawa Art Museum in Nagoya. The image of Murasaki Shikibu is taken from the Gotoh edition of the Murasaki Shikibu Diary Emaki held at the Gotoh Museum. Many Japanese consider the 2000 yen note a novelty as it is the only Japanese denomination whose first digit is 2. To promote the circulation of the notes, some companies had started paying wages in them. The series D is the first to display the EURion constellation. 2004 This is the current issue. The EURion constellation pattern can be observed on the series E. Reiwa era 2024 On April 9, 2019, Finance Minister Tarō Asō announced new designs for the ¥1000, ¥5000, and ¥10,000 notes, for use beginning in July 1, 2024. The ¥1000 bill will feature Kitasato Shibasaburō and The Great Wave off Kanagawa, the ¥5000 bill will feature Tsuda Umeko and wisteria flowers, and the ¥10,000 bill will feature Shibusawa Eiichi and Tokyo Station. Notes References External links List of banknotes valid in Japan Currency Museum of the Bank of Japan Museum of Bank notes and Coins
```go package ini // skipper is used to skip certain blocks of an ini file. // Currently skipper is used to skip nested blocks of ini // files. See example below // // [ foo ] // nested = ; this section will be skipped // a=b // c=d // bar=baz ; this will be included type skipper struct { shouldSkip bool TokenSet bool prevTok Token } func newSkipper() skipper { return skipper{ prevTok: emptyToken, } } func (s *skipper) ShouldSkip(tok Token) bool { // should skip state will be modified only if previous token was new line (NL); // and the current token is not WhiteSpace (WS). if s.shouldSkip && s.prevTok.Type() == TokenNL && tok.Type() != TokenWS { s.Continue() return false } s.prevTok = tok return s.shouldSkip } func (s *skipper) Skip() { s.shouldSkip = true } func (s *skipper) Continue() { s.shouldSkip = false // empty token is assigned as we return to default state, when should skip is false s.prevTok = emptyToken } ```
```objective-c //===-- Mips16RegisterInfo.h - Mips16 Register Information ------*- C++ -*-===// // // See path_to_url for license information. // //===your_sha256_hash------===// // // This file contains the Mips16 implementation of the TargetRegisterInfo class. // //===your_sha256_hash------===// #ifndef LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H #define LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H #include "MipsRegisterInfo.h" namespace llvm { class Mips16RegisterInfo : public MipsRegisterInfo { public: Mips16RegisterInfo(); bool requiresRegisterScavenging(const MachineFunction &MF) const override; bool requiresFrameIndexScavenging(const MachineFunction &MF) const override; bool useFPForScavengingIndex(const MachineFunction &MF) const override; bool saveScavengerRegister(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, MachineBasicBlock::iterator &UseMI, const TargetRegisterClass *RC, Register Reg) const override; const TargetRegisterClass *intRegClass(unsigned Size) const override; private: void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo, int FrameIndex, uint64_t StackSize, int64_t SPOffset) const override; }; } // end namespace llvm #endif ```
```shell How to unmodify a modified file Using tags for version control Finding a tag Search by commit message keyword Perform a dry run ```
Filip Eidsheim (born 16 February 1990) is a Norwegian former professional cyclist. Major results 2008 2nd Time trial, National Junior Road Championships 2010 1st Stage 4 Tour des Pyrénées 2011 3rd Dwars door de Antwerpse Kempen 2012 4th ZLM Tour 10th Ronde van Vlaanderen U23 2013 8th Skive–Løbet 2014 2nd Road race, National Road Championships 3rd Central European Tour Szerencs–Ibrány 5th Central European Tour Košice–Miskolc 10th Trofej Umag 2015 Tour du Maroc 1st Stages 9 & 10 6th GP Viborg References External links 1990 births Living people Norwegian male cyclists
The Holly Bluff site (22 YZ 557), sometimes known as the Lake George Site, and locally as "The Mound Place," is an archaeological site that is a type site for the Lake George phase of the prehistoric Plaquemine culture period of the area. The site is on the southern margin of the Mississippian cultural advance down the Mississippi River and on the northern edge of that of the Cole's Creek and Plaquemine cultures of the South." The site was first excavated by Clarence Bloomfield Moore in 1908 and tested by Philip Phillips, Paul Gebhard and Nick Zeigler in 1949. It was declared a National Historic Landmark in 1964. The mounds are listed on the Mississippi Mound Trail. Location One of the half dozen really big sites in the State of Mississippi, the Holly Bluff site is located on the south bank of George Lake, or Lake George as it is sometimes known, a half mile east of its confluence with the Sunflower River and a mile and a half southeast of the village of Holly Bluff, Yazoo County. Today the site is bisected by a county road and is used as a plantation headquarters but still clearly visible are the numerous large mounds and the remains of a surrounding wall. Prehistoric timeline The site's occupation begins with a Jaketown Phase occupation evidenced by a scattering of Poverty Point objects in the lowest levels of excavations. This is followed, after a hiatus evidenced by a complete lack of Tuscola Phase materials, by an early Marksville period component tentatively assigned an early Anderson Landing Phase that may have lasted into an early Issaquena times. The succeeding late 'Issaquena Phase and Deasonville Phases are virtually unrepresented at Holly Bluff. The site was again occupied from the lower half of the Baytown period up to the late prehistoric times. All phases of the local sequence from the Bayland on through the Lake George Phase (1350–1500) (of which the site is the type site for the Lower Yazoo Basin Plaquemine chronology) are abundantly documented. Materials of the Crippen Point Phase of the Late Coles Creek appear to be most widely spread, and it may have been at this time that the settlement attained its greatest size. In the final Lake George Phase additions were made to some of the mounds, especially Mound A, and the enclosing embankment was built, but the total area occupied was perhaps not as large as in the preceding period. Site description Mound A is almost the exact center of the site, a most unusual location for the dominant mound in ceremonial centers of the Coles Creek and Mississippi periods. In the case of centers the plaza is normally the central feature with the principal "temple mound" located on one side, usually but not always the west, its principal ramp giving access from the plaza on the east side of the mound. In the case of Holly Bluff there seems to have been two plazas to the east and west of the Mound A respectively. Sampling evidence supports the theory that Mound A was originally part of a group (including mounds B, C, D, E, and F) surrounding the western plaza possibly as early as the Bayland phase (but more likely the Aden phase), and certainly established by the Kings Crossing phase. Mound A may or may not have been the principal structure at this time. This plan may have carried on into the Crippen Point phase, but the evidence strongly suggests that either then or in the succeeding Mayersville phase site reorientation took place. Mound A became the principal feature of an east plaza assemblage (with mounds F', G, G', H, U, and V) which remained the ritual center of the site throughout the remainder of its history. The twenty-five mounds that are now recognized range from barely noticeable rises to the massive Mound A, which is high and covers nearly two acres. It is believed that the lower rises were used as house substructures and repeatedly reconstructed. The larger mounds were most likely used for ceremonial purposes rather than residential. Until recent erosion, earthen ramps could be seen climbing to the summits of these large mounds. Seven of the mounds are situated along the bank of George Lake and six more are located within the embankment. The remaining twelve mounds are positioned around the two plazas situated to the east and west of Mound A. This design is unusual and extremely large for the area; the closest in size and layout is the Winterville site. The final major feature of the site is the earthen wall and the trench that surrounds it on three sides. In the earliest survey of the site, C. B. Moore reported that the wall was four to high and still reached this height although large sections have now been destroyed. It is likely that the ditch, which was filled with water from George Lake, supplied the dirt for the wall. The one side that was not protected by the wall was the lake side of the site, the lake bank creating a steep enough boundary on this northern side to provide protection. Besides topographical settings, the environment of the Lake George site was extremely favorable for occupation. In prehistoric times the rich soils and the varying ecologies supported a vast array of plant and animal species. The natural levees created by deposits from the Mississippi were made of rich sandy and silty loams which allowed the common Southeastern deciduous hardwoods, such as hickory, elm, ash, cottonwood, maple, pecan, hackberry, honey locust, sycamore, and even gums and oaks, to flourish. The swamps surrounding the site supported an entirely different ecosystem including alligators, small reptiles and aquatic plants. The streams and rivers also provided fish, shellfish, and other aquatic fauna, which can be seen from excavations of shell middens and deposits of the site. These waterways also provided a major form of communication. This abundant region was obviously utilized by many different peoples over the course of prehistory as the Holly Bluff site shows. Excavations Looting, erosion and cultivation have extensively damaged the Holy Bluff site over the years. This has caused some debate over the form and degree of some of the earthworks. Clarence B. Moore noted in 1908, following a visit, that some thirty rises and mounds, small and large, could be counted within the enclosure. Nine years later Calvin S. Brown visited and counted only twenty-five or so mounds within the wall. In 1928 and again in 1936 James A. Ford recorded only twenty-two mounds. In a site report in January 1941, Jesse D. Jennings described twenty-seven mounds and some questionable rises. C. B. Moore's original estimate is believed to most accurately reflect the situation; many of the smaller earthworks have been lost to recent and intense cultivation. In January and February 1908, Clarence Bloomfield Moore received permission from the then owner Judge William Andrew Henry of Yazoo City to excavate the sites along the Yazoo River and its tributary the Sunflower River in his steamboat, The Gopher. On his excavation Moore recorded eleven sites and partially excavated eight, including Holly Bluff: "with a large force to dig, including May who had been in our service before, we go directly to work on such mounds". Moore commented on the physical appearance of the site: "Strewn over the enclosed area, among the mounds and on them…are chert pebbles; fragments of chert; bits of mussel shell; and small parts of earthenware vessels" Most of the earthenware was undecorated, he recorded, and mostly shell-tempered with some stone tempering which is common in the Yazoo-Sunflower region. C. B. Moore's excavations produced various small artifacts including projectile points, a pebble ax of fossilized wood, a chert hammerstone, and a zoomorphic effigy pipe of shell-tempered pottery. He was disappointed, however, in finding nothing of great importance other than two disturbed burials in a mound on the lake front. Moore's disappointment was evident in his failing to map the site and his statement, "it having become evident to us that our search was inadequately rewarded". Numerous other archaeologists with varying degrees of success followed up Moore's excavations. Each of the later excavations found an extremely different system of mounds. In the 1920s the site was damaged by the then-plantation owner Mr. Charles W. Perry who pastured cattle on the large mounds and cultivated the smaller mounds. The cattle foraged the cover of the larger mounds and their trampling eroded much of the site, erasing the ramps described by Moore. In 1949 Philip Phillips, Paul Gebhard and Nick Zeigler began performing test excavations of the Holly Bluff site. These were the first truly scientific excavations carried out at the site. The interpretations of the data provided the first reliable conclusions of the culture history. These tests finally provided evidence that the Holly Bluff site had been occupied for approximately one millennium. The conclusions proved that the Holly Bluff site was an important phase of the Coles Creek culture. From 1958 to 1960, "hundreds of skeletons were removed" from Mound C. See also Culture, phase, and chronological table for the Mississippi Valley Southeastern Ceremonial Complex List of Mississippian sites List of burial mounds in the United States References External links UM Museum of Anthropology Archaeological sites of the Coles Creek culture Plaquemine Mississippian culture National Historic Landmarks in Mississippi Mounds in Mississippi Geography of Yazoo County, Mississippi Archaeological type sites Shell middens in the United States National Register of Historic Places in Yazoo County, Mississippi
```java package oz.spring.aws.functions; import java.util.function.Function; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class FunctionRoutingConfiguration { @Bean public Function<String, String> lowercase() { return value -> value.toLowerCase(); } @Bean public Function<String, String> reverse() { return value -> new StringBuilder(value).reverse().toString(); } } ```
Breast cancer estrogen-induced apoptosis 2 is a protein that in humans is encoded by the BREA2 gene. References
George McGrath may refer to: George McGrath (field hockey) George McGrath (footballer) George McGrath (jockey) (1943–2022), Irish jockey George F. McGrath (died 1988), United States police commissioner
The 82nd Chemical Battalion was a United States Army Chemical training battalion for enlisted soldiers entering into the MOS 54B and officers in MOS 74A that was stationed at Fort McClellan, Alabama between 1986 and 1999. At which time, Fort McClellan was closed and the unit transferred to Fort Leonard Wood, Missouri. The battalion was deactivated in September 2007, and the 84th Chemical Battalion took over its duties. The battalion was activated as a Chemical Mortar Battalion at Fort Bliss, Texas, in World War II. References External links http://www.myguidon.com/index.php?option=com_content&task=view&id=4726 Chemical battalions of the United States Army Battalions of the United States Army in World War II Military units and formations established in 1942 1942 establishments in the United States
The 1983 All-Ireland Senior Hurling Championship was the 97th staging of the All-Ireland Senior Hurling Championship, the Gaelic Athletic Association's premier inter-county hurling tournament. The draw for the 1980 fixtures took place in September 1979. The championship began on 29 May 1983 and ended on 4 September 1983. Kilkenny were the defending champions. On 4 September 1983, Kilkenny won the championship following a 2–14 to 2–12 defeat of Cork in the All-Ireland final. This was their 23rd All-Ireland title and their second in succession. Kilkenny's Billy Fitzpatrick was the championship's top scorer with 1-24. Kilkenny's Frank Cummins was the choice for Texaco Hurler of the Year. Team changes To Championship Promoted from the All-Ireland Senior B Hurling Championship Kerry From Championship Relegated to the All-Ireland Senior B Hurling Championship None Teams General information Fourteen counties will compete in the All-Ireland Senior Hurling Championship: one team from the Connacht Senior Hurling Championship, six teams in the Leinster Senior Hurling Championship, five teams in the Munster Senior Hurling Championship, one team from the Ulster Senior Hurling Championship and one team from the All-Ireland Senior B Hurling Championship. Format The provincial championships in Munster and Leinster were all played on a knock-out basis as usual. In keeping with the rotation system for advancement to the All-Ireland final, the Leinster champions automatically qualified for the final of 1983. Galway, having no competition in the Connacht Championship, played the winners of a preliminary game between Kerry and Antrim. The winners of this quarter-final went on to play the Munster champions in a single All-Ireland semi-final. Provincial championships Leinster Senior Hurling championship Munster Senior Hurling championship All-Ireland Senior Hurling Championship Bracket All-Ireland preliminary round All-Ireland Quarter-finals All-Ireland semi-finals All-Ireland Final Championship statistics Miscellaneous Tipperary's victory over Clare in the Munster quarter-final was the team's first in the provincial championship since 1973. The attendance of 20,816 at the Munster final was the lowest at the provincial decider since 1972. In the All-Ireland final two Kilkenny players achieved rare distinctions. Goalkeeper Noel Skehan won a record-breaking ninth All-Ireland medal, however, his first three were won as non-playing substitutes. Midfielder Frank Cummins won his seventh All-Ireland medal on the field of play, equalling the record of four other Kilkenny players from the early part of the century. It was his eighth winners' medal overall as he won a non-playing substitutes' medal in 1967. Cummins also joined a unique group of players who won All-Ireland medals in three different decades. Top scorers Season Single game Broadcasting The following matches were broadcast live on television in Ireland on RTÉ. External links All-Ireland Senior Hurling Championship 1983 at GAA Info 1983
```ruby require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "react-native-splash-screen" s.version = package["version"] s.summary = package["description"] s.author = 'crazycodeboy' s.homepage = package["homepage"] s.license = package["license"] s.platform = :ios, "7.0" s.source = { :git => "path_to_url", :tag => "v#{s.version}" } s.source_files = "ios/*.{h,m}" s.dependency "React-Core" end ```
```python # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # # path_to_url # # Unless required by applicable law or agreed to in writing, # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # specific language governing permissions and limitations # pylint: disable=invalid-name, unused-argument, import-outside-toplevel # pylint: disable=no-value-for-parameter, use-list-literal """A set of passes to legalize some of operations for the NPU""" from typing import List, Type, Callable import math import numpy as np # type: ignore from ethosu.vela import scaling, fp_math import tvm # type: ignore from tvm import relay from tvm.relay.dataflow_pattern import DFPatternCallback # type: ignore from tvm.relay.dataflow_pattern import wildcard from tvm.relay.dataflow_pattern import is_op from tvm.relay.dataflow_pattern import rewrite from tvm.relay.dataflow_pattern import CallPattern from tvm.relay.backend.contrib.ethosu import op as ethosu_ops # type: ignore from tvm.relay.backend.contrib.ethosu import vela_api from tvm.relay.backend.contrib.ethosu import util from tvm.relay.backend.contrib.ethosu.softmax_rewriter import SoftmaxRewriter from tvm.relay.op.contrib import ethosu as ethosu_patterns # type: ignore class SplitRewriter(DFPatternCallback): """This rewriting converts split operations into a sequence of strided_slice operations, because codegen is going to be based on strided_slices that will define the slice of the tensor that will be fed to the consumer. """ def __init__(self): super().__init__(require_type=True) self.split_in = wildcard() self.pattern = is_op("split")(self.split_in) @staticmethod def get_section_begin_coords(split: tvm.relay.Expr) -> List[int]: """Currently, the split operator takes an array of indices or an integer indicating the number of splits. However, its an array of indices could represent both cases, therefore this function just make it an array of indices where each index represent the co-ordinate of beginning of each section -- defines as section begins. Parameters ---------- split : tvm.relay.Expr The Relay Call expression for a split operator Returns ------- section_begins : List[int] A list containing integers corresponding to section begins """ indices_or_sections = split.attrs.indices_or_sections input_shape = split.args[0].checked_type.shape split_axis = split.attrs.axis if isinstance(indices_or_sections, tvm.ir.container.Array): # 0 is the beginning of the first section. return [0] + list(indices_or_sections) split_axis_len = input_shape[split_axis].value section_length = split_axis_len // indices_or_sections return list(range(0, split_axis_len, section_length)) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: split_input = post.args[0] split_begins = list() split_ends = list() section_begins_in_split_axis = self.get_section_begin_coords(post) for split_cord in section_begins_in_split_axis: # first begin is [0, 0, ... , 0] begin_shape = [0 for i in range(len(split_input.checked_type.shape))] begin_shape[post.attrs.axis] = split_cord split_begins.append(begin_shape) end_shape = list(split_input.checked_type.shape) # Only the split axis coordinate changes end_shape[post.attrs.axis] = split_cord split_ends.append(end_shape) # Coordinates needs to be shifted left because beginning # of the next section is the end of the previous split_ends = split_ends[1:] # Last section end is the shape of the tensor itself. split_ends.append(list(split_input.checked_type.shape)) strided_slices = list() for sb, se in zip(split_begins, split_ends): strided_slices.append(relay.strided_slice(split_input, sb, se)) return relay.Tuple(strided_slices) class PartitionedSplitRewriter(DFPatternCallback): """This pass brings the split out of the partitioned function""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.SplitParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: split_input = post.args[0] split_params = ethosu_patterns.SplitParams(post.op.body) indices_or_sections = split_params.indices_or_sections axis = split_params.axis return relay.op.split(split_input, indices_or_sections, axis=axis).astuple() def get_lut_from_func( ifm_scale: float, ifm_zp: int, ofm_scale: float, ofm_zp: int, func: Callable[[float], float], dtype, ) -> List[int]: """Calculates the values of the lookup table based on the calculation function""" assert dtype in ["int8", "int16"] if dtype == "int8": lut_values = list() qmin, qmax = np.iinfo(dtype).min, np.iinfo(dtype).max for x in range(qmin, qmax + 1): x_real = ifm_scale * (x - ifm_zp) out_real = func(x_real) lut_result = int(util.round_away_zero(ofm_zp + out_real / ofm_scale)) lut_result = min(qmax, max(qmin, lut_result)) lut_values.append(lut_result) return lut_values else: # dtype == "int16" table_min = np.iinfo(np.int16).min table_max = np.iinfo(np.int16).max input_min = ifm_scale * (table_min - ifm_zp) input_max = ifm_scale * (table_max - ifm_zp) output_min = ofm_scale * (table_min - ofm_zp) output_max = ofm_scale * (table_max - ofm_zp) # Create 16 bit lut following the reference nbr_steps = 512 step = (input_max - input_min) / nbr_steps half_step = step / 2 output_scaling_inv = (table_max - table_min + 1) / (output_max - output_min) values = [] for i in range(nbr_steps): val = func(input_min + i * step) val_midpoint = func(input_min + i * step + half_step) val_next = func(input_min + (i + 1) * step) sample_val = util.round_away_zero(val * output_scaling_inv) midpoint_interp_val = util.round_away_zero( (val_next * output_scaling_inv + util.round_away_zero(val * output_scaling_inv)) / 2 ) midpoint_val = util.round_away_zero(val_midpoint * output_scaling_inv) midpoint_err = midpoint_interp_val - midpoint_val bias = util.round_away_zero(midpoint_err / 2) lut_result = min(max(sample_val - bias, table_min), table_max) values.append(lut_result) val = util.round_away_zero(func(input_max) * output_scaling_inv) lut_result = min(max(val, table_min), table_max) values.append(lut_result) # Convert to hardware 16bit lut with base and slope lut = [0] * nbr_steps for i in range(nbr_steps): slope = (int(values[i + 1]) - int(values[i])) << 16 base = int(values[i]) lut[i] = slope + base return lut class LutActivationRewriter(DFPatternCallback): """A class to create an identity operator with the LUT""" def __init__( self, params_class: Type, activation_type: str, calc_func: Callable[[float], float], ): super().__init__(require_type=True, rewrite_once=True) self.params_class = params_class self.pattern = (wildcard().has_attr({"Composite": params_class.composite_name}))(wildcard()) self.activation_type = activation_type self.calc_func = calc_func def callback(self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map): params = self.params_class(post.op.body) params.ifm.tensor = post.args[0] input_scale = float(params.ifm.q_params.scale_f32) input_zp = int(params.ifm.q_params.zero_point) output_scale = float(params.ofm.q_params.scale_f32) output_zp = int(params.ofm.q_params.zero_point) # Validation function from pattern matching checks that the input type can be int8 or int16 ifm_dtype = params.ifm.dtype if ifm_dtype == "int8": lut_values = get_lut_from_func( input_scale, input_zp, output_scale, output_zp, self.calc_func, ifm_dtype ) lut = relay.const(lut_values, dtype=ifm_dtype) # We baked the requantization into the LUT, so we don't requantize the identity operator identity = ethosu_ops.ethosu_identity( ifm=params.ifm.tensor, lut=lut, ifm_scale=input_scale, ifm_zero_point=input_zp, ofm_scale=input_scale, ofm_zero_point=input_zp, activation=self.activation_type, ) else: # ifm_dtype == "int16" lut = get_lut_from_func( input_scale, input_zp, output_scale, output_zp, self.calc_func, ifm_dtype ) lut = relay.const(lut, dtype="int32") identity = ethosu_ops.ethosu_identity( ifm=params.ifm.tensor, lut=lut, ifm_scale=input_scale, ifm_zero_point=0, ofm_scale=output_scale, ofm_zero_point=0, activation=self.activation_type, ) return identity class TanhRewriter(LutActivationRewriter): """This pass adds tanh as a LUT to the identity operator""" def __init__(self): super().__init__( params_class=ethosu_patterns.TanhParams, activation_type="TANH", calc_func=math.tanh ) class TanhFixedPointRewriter(LutActivationRewriter): """This pass adds tanh with fixed point as a LUT to the identity operator""" def __init__(self): super().__init__( params_class=ethosu_patterns.TanhFixedPointParams, activation_type="TANH", calc_func=math.tanh, ) def sigmoid_calc_func(x: float) -> float: """Function to calculate the values for sigmoid""" # These limits are inherited from TFLite upper_limit = 8.0 lower_limit = -8.0 if x <= lower_limit: y = 0.0 elif x >= upper_limit: y = 1.0 else: y = 1 / (1 + math.exp(-x)) return y class SigmoidRewriter(LutActivationRewriter): """This pass adds sigmoid as a LUT for identity op""" def __init__(self): super().__init__( params_class=ethosu_patterns.SigmoidParams, activation_type="SIGMOID", calc_func=sigmoid_calc_func, ) def leaky_relu_calc_func(x: float, alpha: float) -> float: """Function to calculate the values for leaky relu.""" return x if x >= 0 else x * alpha class LeakyReLURewriter(DFPatternCallback): """This pass adds leaky relu as a LUT for identity op.""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.params_class = ethosu_patterns.LeakyReLUParams self.pattern = wildcard().has_attr({"Composite": self.params_class.composite_name})( wildcard() ) def callback(self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map): params = self.params_class(post.op.body) params.ifm.tensor = post.args[0] input_scale = np.double(float(params.ifm.q_params.scale_f32)) input_zp = int(params.ifm.q_params.zero_point) output_scale = np.double(float(params.ofm.q_params.scale_f32)) output_zp = int(params.ofm.q_params.zero_point) alpha = params.alpha # The calculation of the LUT values is similar to that in Vela # convert_lrelu_to_lut(op, arch) # (path_to_url#864) # pylint: disable=line-too-long alpha_scalar = 1 alpha_scale, alpha_shift = scaling.elementwise_mul_scale(input_scale, alpha, output_scale) identity_scale, identity_shift = scaling.elementwise_mul_scale(input_scale, 1, output_scale) dtype = params.ifm.dtype qmin, qmax = np.iinfo(dtype).min, np.iinfo(dtype).max def calculate_lut_value(i): zp_shift = ( fp_math.multiply_by_quantized_multiplier( alpha_scalar * (i - input_zp), alpha_scale, alpha_shift ) if i < input_zp else fp_math.multiply_by_quantized_multiplier( i - input_zp, identity_scale, identity_shift ) ) return min(qmax, max(qmin, output_zp + zp_shift)) values = list(map(calculate_lut_value, range(qmin, qmax + 1))) lut = relay.const(values, dtype=dtype) # We baked the requantization into the LUT, so we don't requantize the identity operator identity = ethosu_ops.ethosu_identity( ifm=params.ifm.tensor, lut=lut, ifm_scale=input_scale, ifm_zero_point=input_zp, ofm_scale=input_scale, ofm_zero_point=input_zp, activation="LUT", ) return identity class HardSwishRewriter(DFPatternCallback): """Convert ethosu.hard_swish composite function to add operation with LUT.""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.params_class = ethosu_patterns.HardSwishParams self.pattern = wildcard().has_attr({"Composite": self.params_class.composite_name})( wildcard() ) def callback(self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map): params = self.params_class(post.op.body) params.ifm.tensor = post.args[0] # The calculation of the LUT values is similar to that in Vela # convert_hardswish_to_lut(op, arch, nng) # (path_to_url#719) # pylint: disable=line-too-long input_scale = np.double(params.ifm.q_params.scale_f32) input_zp = int(params.ifm.q_params.zero_point) hires_input_scale = (1 / 128) * input_scale output_scale = np.double(params.ofm.q_params.scale_f32) output_zp = int(params.ofm.q_params.zero_point) output_scale, output_shift = scaling.quantise_scale(hires_input_scale / output_scale) output_scale_16 = fp_math.downscale_multiplier_int32_to_int16(output_scale) output_shift = 31 - output_shift output_shift = -output_shift if output_shift < 0 else 0 dtype = params.ifm.dtype qmin, qmax = np.iinfo(dtype).min, np.iinfo(dtype).max def calculate_relu_multiplier(inp, input_scale): rmultiplier = np.double(3 / 32768) rscale, rshift = scaling.quantise_scale(input_scale / rmultiplier) rscale_16 = fp_math.downscale_multiplier_int32_to_int16(rscale) rvalue = np.int16(inp) if rshift < 31: rvalue = fp_math.shift_left16(rvalue, 30 - rshift) rvalue = fp_math.saturating_rounding_mul16(rvalue, rscale_16) rvalue = fp_math.shift_left16(rvalue, 1) elif rshift > 31: rvalue = fp_math.saturating_rounding_mul16(rvalue, rscale_16) rvalue = fp_math.rounding_divide_by_pot(rvalue, rshift - 31) else: rvalue = fp_math.saturating_rounding_mul16(rvalue, rscale_16) rvalue = (rvalue + (1 << 15)) >> 1 return rvalue def calculate_lut_values(i): hires_input_value = (i - input_zp) * 128 preshift_input_value = fp_math.saturating_rounding_mul16( hires_input_value, output_scale_16 ) relu_value = calculate_relu_multiplier(hires_input_value, hires_input_scale) lut_result = fp_math.saturating_mul16(relu_value, preshift_input_value) lut_result = fp_math.rounding_divide_by_pot(lut_result, output_shift) + output_zp return min(qmax, max(qmin, lut_result)) values = list(map(calculate_lut_values, range(-128, 128))) lut = relay.const(values, dtype=dtype) # We baked the requantization into the LUT, so we don't requantize the identity operator identity = ethosu_ops.ethosu_identity( ifm=params.ifm.tensor, lut=lut, ifm_scale=input_scale, ifm_zero_point=input_zp, ofm_scale=input_scale, ofm_zero_point=input_zp, activation="LUT", ) return identity class Conv2DRewriter(DFPatternCallback): """Convert conv2d related composite functions into ethosu_conv2d operators""" def __init__(self): super().__init__(require_type=True) self.pattern = (wildcard().has_attr({"Composite": "ethos-u.qnn_conv2d"}))(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.QnnConv2DParams(post.op.body) params.ifm.tensor = post.args[0] channels_map = { "NHWC": 3, } kernel_size_map = { "HWIO": params.weights.shape[0:2], "OHWI": params.weights.shape[1:3], "HWOI": params.weights.shape[0:2], } activation_map = {"clip": "CLIP"} weight_to_ohwi_transform_map = {"HWIO": [3, 0, 1, 2]} weights_values = params.weights.values weights_values_ohwi = np.transpose( weights_values, weight_to_ohwi_transform_map[str(params.weights.layout)] ) if params.activation: activation = activation_map[params.activation.op.name] clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 scale_bias = vela_api.pack_biases( biases=params.biases.tensor.data.asnumpy(), ifm_scale=params.ifm.q_params.scale_f32, ifm_dtype=np.dtype(params.ifm.dtype), weight_scales=params.weights.q_params.scale_f32, ofm_scale=params.ofm.q_params.scale_f32, is_activation_tanh_or_sigmoid=activation in ["TANH", "SIGMOID"], ) ethosu_conv2d = ethosu_ops.ethosu_conv2d( ifm=post.args[0], weight=relay.const(weights_values_ohwi, params.weights.values.dtype), scale_bias=relay.const(scale_bias, "uint8"), lut=relay.const([], dtype="int8"), ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), weight_zero_point=int(params.weights.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), kernel_shape=kernel_size_map[str(params.weights.layout)], ofm_channels=params.ofm.shape[channels_map[str(params.ofm.layout)]], strides=params.strides, padding=params.padding, dilation=params.dilation, activation=activation, clip_min=clip_min, clip_max=clip_max, upscale="NONE", ifm_layout=str(params.ifm.layout), ofm_layout=str(params.ofm.layout), ) return ethosu_conv2d class Conv2DTransposeRewriter(DFPatternCallback): """Convert conv2d_transpose related composite functions into ethosu_conv2d_transpose operators.""" def __init__(self): super().__init__(require_type=True) self.pattern = (wildcard().has_attr({"Composite": "ethos-u.qnn_conv2d_transpose"}))( wildcard() ) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.QnnConv2DTransposeParams(post.op.body) params.ifm.tensor = post.args[0] ofm_shape = params.ofm.shape legalize_padding = params.legalize_padding weight_to_ohwi_transform_map = {"IOHW": [1, 2, 3, 0]} weights_values = params.weights.values weights_values_ohwi = np.transpose( weights_values, weight_to_ohwi_transform_map[str(params.weights.layout)] ) weights_values_ohwi = np.flip(weights_values_ohwi, (1, 2)) weights = relay.const(weights_values_ohwi, dtype=params.weights.values.dtype) bias_values = ( params.biases.tensor.data.asnumpy() if params.biases else np.zeros((params.ifm.shape[-1])) ) scale_bias = vela_api.pack_biases( biases=bias_values, ifm_scale=params.ifm.q_params.scale_f32, ifm_dtype=np.dtype(params.ifm.dtype), weight_scales=params.weights.q_params.scale_f32, ofm_scale=params.ofm.q_params.scale_f32, is_activation_tanh_or_sigmoid=False, ) reduced_op = ethosu_ops.ethosu_conv2d( ifm=post.args[0], weight=weights, scale_bias=relay.const(scale_bias, "uint8"), lut=relay.const([], dtype="int8"), ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), weight_zero_point=int(params.weights.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), kernel_shape=params.kernel_shape, ofm_channels=int(ofm_shape[-1]), strides=(1, 1), padding=legalize_padding, dilation=params.dilation, ifm_layout=str(params.ifm.layout), ofm_layout=str(params.ofm.layout), upscale="ZEROS", ) # Remove additional padding by 'cropping' back to expected size return relay.strided_slice(reduced_op, (0, 0, 0, 0), ofm_shape) class DepthwiseConv2DRewriter(DFPatternCallback): """Convert ethosu.qnn_depthwise_conv2d composite functions to ethosu_depthwise_conv2d operators""" def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr( {"Composite": ethosu_patterns.QnnDepthwiseConv2DParams.composite_name} ) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.QnnDepthwiseConv2DParams(post.op.body) params.ifm.tensor = post.args[0] channels_map = { "NHWC": 3, } kernel_shape_map = { "HWOI": params.weights.shape[0:2], } weights_values = params.weights.values weights_values_ohwi = np.moveaxis(weights_values, [0, 1, 2, 3], [1, 2, 0, 3]) activation = "NONE" # Activations requiring LUT is currently not supported, so setting it to an empty list lut = relay.const([], "int8") clip_min = 0 clip_max = 0 if params.activation: activation = ethosu_patterns.QnnDepthwiseConv2DParams.activation_map[ params.activation.op.name ] if activation == "CLIP": clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) scale_bias = vela_api.pack_biases( biases=params.biases.tensor.data.asnumpy(), ifm_scale=params.ifm.q_params.scale_f32, ifm_dtype=np.dtype(params.ifm.dtype), weight_scales=params.weights.q_params.scale_f32, ofm_scale=params.ofm.q_params.scale_f32, is_activation_tanh_or_sigmoid=activation in ["TANH", "SIGMOID"], ) ethosu_depthwise_conv2d = ethosu_ops.ethosu_depthwise_conv2d( post.args[0], # IFM relay.const(weights_values_ohwi, params.weights.values.dtype), relay.const(scale_bias, "uint8"), lut, float(params.ifm.q_params.scale_f32), int(params.ifm.q_params.zero_point), int(params.weights.q_params.zero_point), float(params.ofm.q_params.scale_f32), int(params.ofm.q_params.zero_point), kernel_shape_map[str(params.weights.layout)], params.ofm.shape[channels_map[str(params.ofm.layout)]], strides=params.strides, padding=params.padding, dilation=params.dilation, activation=activation, clip_min=clip_min, clip_max=clip_max, upscale="NONE", ifm_layout=str(params.ifm.layout), ofm_layout=str(params.ofm.layout), ofm_dtype=str(params.ofm.dtype), ) return ethosu_depthwise_conv2d class PoolingRewriter(DFPatternCallback): """Convert ethosu.avgpool2d and ethosu.maxpool2d composite functions to ethosu_pooling operators""" def __init__( self, params_class: Type, pattern: CallPattern, ): super().__init__(require_type=True) self.params_class = params_class self.pattern = pattern def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = self.params_class(post.op.body) params.ifm.tensor = post.args[0] channels_map = { "NHWC": 3, } activation_map = {"clip": "CLIP"} if params.activation: activation = activation_map[params.activation.op.name] clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 # Activations requiring LUT is currently not supported, so setting it to an empty list lut = relay.const([], dtype="int8") # If ethosu.avgpool2d has strides which are not supported by the NPU, convert # ethosu.avgpool2d composite functions to ethosu_pooling operator with stride=[1, 1]. # Since the spatial dimensions of ifm and the pooling kernel coincide and the padding # is [0, 0, 0, 0], the application of the pooling kernel will be done only once, # which will give us the desired output strides = params.strides if params.strides[0] > 3 or params.strides[1] > 3: strides = [1, 1] return ethosu_ops.ethosu_pooling( ifm=post.args[0], lut=lut, pooling_type=params.pooling_type, ifm_scale=params.ifm.q_params.scale_f32, ifm_zero_point=params.ifm.q_params.zero_point, ofm_scale=params.ofm.q_params.scale_f32, ofm_zero_point=params.ofm.q_params.zero_point, pool_shape=params.pool_shape, ofm_channels=params.ofm.shape[channels_map[str(params.ofm.layout)]], ofm_dtype=params.ofm.dtype, strides=strides, padding=params.padding, activation=activation, clip_min=clip_min, clip_max=clip_max, upscale="NONE", ifm_layout=str(params.ifm.layout), ofm_layout=str(params.ofm.layout), ) class MaxPoolingRewriter(PoolingRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.MaxPool2DParams, pattern=( wildcard().has_attr({"Composite": ethosu_patterns.MaxPool2DParams.composite_name}) )(wildcard()), ) class AvgPoolingRewriter(PoolingRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.AvgPool2DParams, pattern=( wildcard().has_attr({"Composite": ethosu_patterns.AvgPool2DParams.composite_name}) )(wildcard()), ) class BinaryElementwiseRewriter(DFPatternCallback): """Convert ethosu binary elementwise composite functions to ethosu_binary_elementwise operators""" def __init__( self, params_class: Type, pattern: CallPattern, ): super().__init__(require_type=True) self.params_class = params_class self.pattern = pattern @staticmethod def reshape_input( inputs: List["TensorParams"], ) -> List[tvm.relay.Expr]: """Reshape the inputs so that the following binary elementwise operator receives 4-dimensional inputs. Parameters ---------- inputs: List[TensorParams] The inputs to reshape. Returns ------- reshaped_inputs: List[tvm.relay.Expr] The new reshaped inputs. """ reshaped_inputs = [] for i in inputs: in_shape = i.shape if len(in_shape) < 4: pad_size = 4 - len(in_shape) new_shape = ([1] * pad_size) + in_shape new_call = relay.reshape(i.tensor, new_shape) reshaped_inputs.append(new_call) else: reshaped_inputs.append(i.tensor) return reshaped_inputs @staticmethod def reshape_output(output: tvm.relay.Expr, ifm_input_shape: List[int]) -> tvm.relay.Expr: """Reshape the output back to the original dimensionality. Since the NPU must have the brodcastable tensor as the second operand, the original shape of the first ifm must be the output shape. Parameters ---------- output: tvm.relay.Expr The output to reshape. ifm_input_shape: List[int] The shape of the non-reshaped ifm tensor. Returns ------- reshaped_output: tvm.relay.Expr The reshaped output expression. """ if len(ifm_input_shape) == 4: return output reshaped_output = relay.reshape(output, ifm_input_shape) return reshaped_output def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = self.params_class(post.op.body) params.ifm.tensor = post.args[1] if params.reversed_operands else post.args[0] params.ifm2.tensor = post.args[0] if params.reversed_operands else post.args[1] activation_map = {"clip": "CLIP"} if params.activation: activation = activation_map[params.activation.op.name] clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 # We don't yet support activation functions that need to get legalized to LUTs. lut = relay.const([], dtype="int8") inputs = [params.ifm, params.ifm2] inputs = self.reshape_input(inputs) ethosu_binary_elementwise = ethosu_ops.ethosu_binary_elementwise( ifm=inputs[0], ifm2=inputs[1], lut=lut, operator_type=params.operator_type, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ifm2_scale=float(params.ifm2.q_params.scale_f32), ifm2_zero_point=int(params.ifm2.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), ifm_channels=params.ifm.shape[-1] if params.ifm.shape else 1, ifm2_channels=params.ifm2.shape[-1] if params.ifm2.shape else 1, reversed_operands=params.reversed_operands, ofm_dtype=params.ofm.dtype, activation=activation, clip_min=clip_min, clip_max=clip_max, ifm_layout=str(params.ifm.layout), ifm2_layout=str(params.ifm2.layout), ofm_layout=str(params.ofm.layout), ) output = self.reshape_output(ethosu_binary_elementwise, params.ifm.shape) return output class AddRewriter(BinaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.AddParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.AddParams.composite_name}))( wildcard(), wildcard() ), ) class SubRewriter(BinaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.SubParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.SubParams.composite_name}))( wildcard(), wildcard() ), ) class MulRewriter(BinaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.MulParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.MulParams.composite_name}))( wildcard(), wildcard() ), ) class MinRewriter(BinaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.MinParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.MinParams.composite_name}))( wildcard(), wildcard() ), ) class MaxRewriter(BinaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.MaxParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.MaxParams.composite_name}))( wildcard(), wildcard() ), ) class ShlRewriter(BinaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.ShlParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.ShlParams.composite_name}))( wildcard(), wildcard() ), ) class StridedSliceRewriter(DFPatternCallback): """This pass brings the strided slice out of the partitioned function""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.StridedSliceParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: slice_input = post.args[0] # TODO(lhutton1) For an unknown reason compilation will fail for strides of 4 # dimensions, so we cannot use params.strides as this will sometimes give # strides as [1, 1, 1, 1]. Since we only support strides of 1, hardcoding this # value for now. strides = [1] params = ethosu_patterns.StridedSliceParams(post.op.body) strided_slice = relay.op.strided_slice( slice_input, params.begin, params.end, strides=strides, axes=params.axes, slice_mode=params.slice_mode, ) return strided_slice class ReshapeRewriter(DFPatternCallback): """This pass brings the reshape out of the partitioned function""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.ReshapeParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: reshape_input = post.args[0] reshape_params = ethosu_patterns.ReshapeParams(post.op.body) new_shape = reshape_params.new_shape return relay.op.reshape(reshape_input, newshape=new_shape) class NoOpRewriter(DFPatternCallback): """This pass adds an idenity operator to reshape and strided slice to avoid a no op without a consumer""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.reshape = is_op("reshape")(wildcard()) self.strided_slice = is_op("strided_slice")(wildcard()) self.pattern = self.reshape | self.strided_slice def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: if pre.checked_type.dtype == "int32": return post return ethosu_ops.ethosu_identity(ifm=post, lut=relay.const([], dtype="int8")) class UnaryElementwiseRewriter(DFPatternCallback): """ Convert ethosu unary elementwise composite function to ethosu_unary_elementwise operators """ def __init__(self, params_class: Type, pattern: CallPattern): super().__init__(require_type=True) self.params_class = params_class self.pattern = pattern def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = self.params_class(post.op.body) params.ifm.tensor = post.args[0] activation_map = {"clip": "CLIP"} if params.activation: activation = activation_map[params.activation.op.name] clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 # We don't yet support activation functions that use LUT. lut = relay.const([], dtype="int8") unary_input_shape = params.ifm.shape # If the input tensor is not 4D, enter reshapes before and after the unary operator if len(params.ifm.shape) == 4: unary_input = params.ifm.tensor else: pad_size = 4 - len(unary_input_shape) unary_input_shape = ([1] * pad_size) + unary_input_shape unary_input = relay.op.reshape(params.ifm.tensor, newshape=unary_input_shape) ethosu_unary_elementwise = ethosu_ops.ethosu_unary_elementwise( ifm=unary_input, lut=lut, operator_type=params.operator_type, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), ofm_channels=unary_input_shape[3], activation=activation, clip_min=clip_min, clip_max=clip_max, ifm_layout=str(params.ifm.layout), ofm_layout=str(params.ofm.layout), ) if len(params.ifm.shape) == 4: op = ethosu_unary_elementwise else: op = relay.op.reshape(ethosu_unary_elementwise, newshape=params.ifm.shape) return op class AbsRewriter(UnaryElementwiseRewriter): def __init__(self): super().__init__( params_class=ethosu_patterns.AbsParams, pattern=(wildcard().has_attr({"Composite": ethosu_patterns.AbsParams.composite_name}))( wildcard() ), ) class MeanRewriter(DFPatternCallback): """Convert ethosu.mean composite functions to an equivalent legalization: - Case 1 (ifm qparams == ofm qparams): ethosu_pooling - Case 2 (else): ethosu_depthwise_conv2d """ def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.MeanParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.MeanParams(post.op.body) params.ifm.tensor = post.args[0] ifm_shape = params.ifm.shape ofm_shape = params.ofm.shape lut = relay.const([], "int8") axis = params.axis reduced_op = params.ifm.tensor # Enforce 4d input if len(ifm_shape) < 4: axis = [x + 1 for x in axis] if len(ifm_shape) == 3: ifm_shape = [1, params.height, params.width, ifm_shape[2]] else: ifm_shape = [1, params.height, params.width, 1] reduced_op = relay.reshape(reduced_op, ifm_shape) filter_height = ifm_shape[1] if 1 in axis else 1 filter_width = ifm_shape[2] if 2 in axis else 1 in_channels = out_channels = ifm_shape[-1] # If the height is greater than max kernel height, reshape the input # from [filter_height, filter_width] to [1, (filter_height*filter_width)] # only in the case the axis is [1, 2]. if axis == [1, 2] and filter_height > 64: ifm_shape = (ifm_shape[0], 1, filter_height * filter_width, in_channels) filter_width = filter_height * filter_width filter_height = 1 reduced_op = relay.reshape(reduced_op, ifm_shape) if ( params.ifm.q_params.scale_f32 == params.ofm.q_params.scale_f32 and params.ifm.q_params.zero_point == params.ofm.q_params.zero_point ): reduced_op = ethosu_ops.ethosu_pooling( ifm=reduced_op, lut=lut, pooling_type="AVG", ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=0, ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=0, pool_shape=(filter_height, filter_width), ofm_channels=out_channels, ofm_dtype=params.ofm.dtype, rounding_mode="TRUNCATE", ) else: weight_scale = 1 / (filter_height * filter_width) weight_values = np.ones([out_channels, filter_height, filter_width, 1]) bias = -1 * int(params.ifm.q_params.zero_point) * filter_height * filter_width scale_bias = vela_api.pack_biases( biases=np.ones([ifm_shape[-1]]) * bias, ifm_scale=params.ifm.q_params.scale_f32, ifm_dtype=np.dtype(params.ifm.dtype), weight_scales=np.array([weight_scale], dtype=np.float), ofm_scale=params.ofm.q_params.scale_f32, is_activation_tanh_or_sigmoid=False, ) reduced_op = ethosu_ops.ethosu_depthwise_conv2d( ifm=reduced_op, weight=relay.const(weight_values, params.ifm.dtype), scale_bias=relay.const(scale_bias, "uint8"), lut=lut, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=0, weight_zero_point=0, ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), kernel_shape=(filter_height, filter_width), ofm_channels=out_channels, rounding_mode="NATURAL", ofm_dtype=params.ofm.dtype, ) # Reshape to original ofm shape if len(ofm_shape) < 4: reduced_op = relay.reshape(reduced_op, ofm_shape) return reduced_op class SumRewriter(DFPatternCallback): """ Convert ethosu.sum composite functions to pooling operations """ def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.SumParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.SumParams(post.op.body) ifm_shape = params.ifm.shape ofm_shape = params.ofm.shape lut = relay.const([], "int8") reduced_op = post.args[0] # Enforce 4d input if len(ifm_shape) == 3: ifm_shape = [1, params.height, params.width, ifm_shape[2]] reduced_op = relay.reshape(reduced_op, ifm_shape) activation_map = {"clip": "CLIP"} if params.activation: activation = activation_map[params.activation.op.name] clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 reduced_op = ethosu_ops.ethosu_pooling( ifm=reduced_op, lut=lut, pooling_type="SUM", ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=0, pool_shape=(1, 1), ofm_channels=1, ofm_dtype="int32", activation=activation, clip_min=clip_min, clip_max=clip_max, ifm_layout=params.ifm.layout, ofm_layout=params.ofm.layout, rounding_mode="NATURAL", ) # Convert tensor dtype from int32 to int8 scalar_tensor = relay.const(np.ones([1, 1, 1, 1], dtype="int32"), dtype="int32") reduced_op = ethosu_ops.ethosu_binary_elementwise( ifm=reduced_op, ifm2=scalar_tensor, lut=lut, operator_type="MUL", ifm_scale=0.0, ifm_zero_point=0, ifm2_scale=0.0, ifm2_zero_point=0, ofm_scale=0.0, ofm_zero_point=int(params.ofm.q_params.zero_point), ifm_channels=1, ifm2_channels=1, reversed_operands=False, ofm_dtype="int8", ) # Reshape to original ofm shape if len(ofm_shape) < 4: reduced_op = relay.reshape(reduced_op, ofm_shape) return reduced_op class ConcatRewriter(DFPatternCallback): """The newer versions of TFLite converters return a concatenate operator that concatenates tensors with same QNN params (if the QNN params of tensors were initially different, the converter adds a requantize node), so this rewriter replaces the QNN concatenate with "normal" concatenate""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.ConcatParams.composite_name}) )(None) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: # Find the tensors that are inputs to the concat and the scales and zero points concat_args = list() for arg in post.args: if isinstance(arg, (tvm.relay.expr.Call, tvm.relay.expr.TupleGetItem)): concat_args.append(arg) axis = post.op.body.attrs.axis concat = relay.op.concatenate(relay.Tuple(concat_args), axis=axis) return concat class RequantizeRewriter(DFPatternCallback): """Convert ethos-u.requantize composite function to an identity operation.""" def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.RequantizeParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.RequantizeParams(post.op.body) params.ifm.tensor = post.args[0] lut = relay.const([], "int8") return ethosu_ops.ethosu_identity( ifm=params.ifm.tensor, lut=lut, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), rounding_mode="NATURAL", ) class Resize2dRewriter(DFPatternCallback): """ Convert ethos-u.resize2d composite function to an equivalent operation that performs the relevant upsampling operation. Case 1: No upsampling (upscale factor of 1): Identity. Case 1: Nearest neighbor upsampling: 1x1 pooling with 2x2 nearest neighbor upsampling. Case 2: Bilinear upsampling: 2x2 average pool with 2x2 nearest neighbor upsampling. """ def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.Resize2dParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.Resize2dParams(post.op.body) params.ifm.tensor = post.args[0] lut = relay.const([], "int8") ifm_shape = params.ifm.shape in_channels = ifm_shape[-1] reduced_op = params.ifm.tensor current_size = np.array(ifm_shape[1:3]) output_size = np.array(params.size) if (current_size == output_size).all(): return ethosu_ops.ethosu_identity( reduced_op, lut, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), ) padding = [0, 0, 0, 0] rounding_mode = "TFL" pool_shape = [1, 1] if params.method == "linear": pool_shape = [2, 2] rounding_mode = "NATURAL" if params.coordinate_transformation_mode == "asymmetric": # Use SAME padding. ypad = Resize2dRewriter.get_required_padding(ifm_shape[1]) xpad = Resize2dRewriter.get_required_padding(ifm_shape[2]) padding = [ypad // 2, xpad // 2, (ypad + 1) // 2, (xpad + 1) // 2] return ethosu_ops.ethosu_pooling( ifm=reduced_op, lut=lut, pooling_type="AVG", ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), pool_shape=pool_shape, ofm_channels=in_channels, ofm_dtype=params.ofm.dtype, strides=[1, 1], padding=padding, upscale="NEAREST", rounding_mode=rounding_mode, ) @staticmethod def get_required_padding(input_size: int, pool_size: int = 2) -> int: """Gets the amount of padding required needed to achieve 'SAME' padding for a given axis.""" needed_input = (input_size - 1) + pool_size total_padding = max(0, needed_input - input_size) return total_padding class ExpandDimsRewriter(DFPatternCallback): """Legalize expand dims to a reshape operator.""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.ExpandDimsParams.composite_name}) )(None) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.ExpandDimsParams(post.op.body) return relay.op.reshape(post.args[0], newshape=params.output.shape) class SqueezeRewriter(DFPatternCallback): """Legalize squeeze to a reshape operator.""" def __init__(self): super().__init__(require_type=True, rewrite_once=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.SqueezeParams.composite_name}) )(None) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.SqueezeParams(post.op.body) return relay.op.reshape(post.args[0], newshape=params.output.shape) class FullyConnectedRewriter(DFPatternCallback): """Legalize Fully Connected (with bias and clip) to an NPU operator""" def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.FullyConnectedParams.composite_name}) )(wildcard()) def callback(self, pre, post, node_map): params = ethosu_patterns.FullyConnectedParams(post.op.body) params.ifm.tensor = post.args[0] # IFM reshapes ifm = post.args[0] if len(params.ifm.shape) != 4 or not params.ifm.shape[1] == params.ifm.shape[2] == 1: ifm = relay.reshape(ifm, (1, 1, 1, params.ifm.shape[-1])) # Weight transformations weights_values = params.weights.values weights_values_ohwi = np.expand_dims(weights_values, axis=(1, 2)) if params.activation: activation = "CLIP" clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 bias_values = ( params.biases.tensor.data.asnumpy() if params.biases else np.zeros((params.ofm.shape[-1])) ) scale_bias = vela_api.pack_biases( biases=bias_values, ifm_scale=params.ifm.q_params.scale_f32, ifm_dtype=np.dtype(params.ifm.dtype), weight_scales=params.weights.q_params.scale_f32, ofm_scale=params.ofm.q_params.scale_f32, is_activation_tanh_or_sigmoid=False, ) ethosu_fc = ethosu_ops.ethosu_conv2d( ifm=ifm, weight=relay.const(weights_values_ohwi, params.weights.values.dtype), scale_bias=relay.const(scale_bias, "uint8"), lut=relay.const([], dtype="int8"), ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), weight_zero_point=int(params.weights.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), kernel_shape=[1, 1], ofm_channels=params.weights.shape[0], strides=(1, 1), padding=(0, 0, 0, 0), dilation=(1, 1), activation=activation, clip_min=clip_min, clip_max=clip_max, upscale="NONE", ifm_layout="NHWC", ofm_layout="NHWC", ) if len(params.ofm.shape) != 4 or not params.ofm.shape[1] == params.ofm.shape[2] == 1: ethosu_fc = relay.reshape(ethosu_fc, params.ofm.shape) return ethosu_fc class MatrixMultiplicationRewriter(DFPatternCallback): """Legalize matrix multiplication with two tensors into sequence of NPU operators""" def __init__( self, params_class: Type, pattern: CallPattern, ): super().__init__(require_type=True) self.pattern = pattern self.params_class = params_class def callback(self, pre, post, node_map): params = self.params_class(post.op.body) ifm = post.args[0] ifm2 = post.args[1] lut = relay.const([], dtype=params.ifm.dtype) activation_map = {"clip": "CLIP"} if params.activation: activation = activation_map[params.activation.op.name] clip_min = int(params.activation.attrs.a_min) clip_max = int(params.activation.attrs.a_max) else: activation = "NONE" clip_min = 0 clip_max = 0 # Reshape ifm to NHWC ifm = relay.reshape(ifm, (1, 1, *params.ifm.shape)) # Split the second matrix to get columns columns = list(relay.op.split(ifm2, params.ofm.shape[-1], axis=0)) res_columns = [] for column in columns: ifm2 = relay.reshape(column, (1, 1, 1, params.ifm.shape[-1])) # Multiplying the first matrix by a column ethosu_binary_elementwise = ethosu_ops.ethosu_binary_elementwise( ifm=ifm, ifm2=ifm2, lut=lut, operator_type="MUL", ifm_zero_point=int(params.ifm.q_params.zero_point), ifm_scale=0.0, ifm2_zero_point=int(params.weights.q_params.zero_point), ifm2_scale=0.0, ofm_scale=0.0, ofm_zero_point=0, ifm_channels=params.ifm.shape[-1], ifm2_channels=params.ifm.shape[-1], reversed_operands=False, ofm_dtype="int32", ) # Use reduce sum to get result column reduce_sum = ethosu_ops.ethosu_pooling( ifm=ethosu_binary_elementwise, lut=lut, pooling_type="SUM", ifm_zero_point=0, ifm_scale=float(params.weights.q_params.scale_f32) * float(params.ifm.q_params.scale_f32), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=0, pool_shape=(1, 1), ofm_channels=1, ofm_dtype="int32", activation=activation, clip_min=clip_min, clip_max=clip_max, rounding_mode="NATURAL", ) # Convert tensor dtype from int32 to output dtype scalar_tensor = relay.const(np.ones([1, 1, 1, 1], dtype="int32"), dtype="int32") reduce_sum = ethosu_ops.ethosu_binary_elementwise( ifm=reduce_sum, ifm2=scalar_tensor, lut=lut, operator_type="MUL", ifm_scale=0.0, ifm_zero_point=0, ifm2_scale=0.0, ifm2_zero_point=0, ofm_scale=0.0, ofm_zero_point=int(params.ofm.q_params.zero_point), ifm_channels=1, ifm2_channels=1, reversed_operands=False, ofm_dtype=params.ofm.dtype, ) res_columns.append(reduce_sum) # Concatenate result columns concat = relay.op.concatenate(relay.Tuple(res_columns), axis=3) return relay.reshape(concat, params.ofm.shape) class MatMulRewriter(MatrixMultiplicationRewriter): """Convert ethos-u.matmul composite function to sequence of NPU operators""" def __init__(self): super().__init__( params_class=ethosu_patterns.MatMulParams, pattern=( wildcard().has_attr({"Composite": ethosu_patterns.MatMulParams.composite_name}) )(wildcard(), wildcard()), ) class MatMulFixedPointRewriter(MatrixMultiplicationRewriter): """Convert ethos-u.matmul_fixed_point composite function to sequence of NPU operators""" def __init__(self): super().__init__( params_class=ethosu_patterns.MatMulFixedPointParams, pattern=( wildcard().has_attr( {"Composite": ethosu_patterns.MatMulFixedPointParams.composite_name} ) )(wildcard(), wildcard()), ) class PadRewriter(DFPatternCallback): """Convert ethos-u.pad2d composite function to ethosu_depthwise_conv2d operator""" def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.PadParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.PadParams(post.op.body) params.ifm.tensor = post.args[0] channels_map = { "NHWC": 3, } w_h, w_w = (1, 1) # OHWI format for the ethosu_depthwise_conv2d kernel weights weight_shape = (params.ifm.shape[-1], w_h, w_w, 1) weights = relay.const(np.full(weight_shape, 1), params.ifm.dtype) scale_bias = vela_api.pack_biases( biases=np.zeros(params.ifm.shape[-1]), ifm_scale=params.ifm.q_params.scale_f32, ifm_dtype=np.dtype(params.ifm.dtype), weight_scales=np.array(1.0, dtype=np.float32), ofm_scale=params.ofm.q_params.scale_f32, is_activation_tanh_or_sigmoid=False, ) return ethosu_ops.ethosu_depthwise_conv2d( ifm=post.args[0], weight=weights, scale_bias=relay.const(scale_bias, "uint8"), lut=relay.const([], "int8"), ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point.item()), weight_zero_point=0, ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point.item()), kernel_shape=(w_h, w_w), ofm_channels=params.ofm.shape[channels_map[str(params.ofm.layout)]], strides=(1, 1), padding=params.padding, dilation=(1, 1), activation="NONE", clip_min=0, clip_max=0, upscale="NONE", ifm_layout=str(params.ifm.layout), ofm_layout=str(params.ofm.layout), ofm_dtype=str(params.ofm.dtype), ) class ChannelPadRewriter(DFPatternCallback): """Convert ethos-u.channel-pad composite function to the Relay concatenate operation""" def __init__(self): super().__init__(require_type=True) self.pattern = ( wildcard().has_attr({"Composite": ethosu_patterns.ChannelPadParams.composite_name}) )(wildcard()) def callback( self, pre: tvm.relay.Expr, post: tvm.relay.Expr, node_map: tvm.ir.container.Map ) -> tvm.relay.Expr: params = ethosu_patterns.ChannelPadParams(post.op.body) params.ifm.tensor = post.args[0] concat_args = list() lut = relay.const([], dtype="int8") # pad channels before if params.ch_padding[0] > 0: shape1 = list(params.ifm.shape) shape1[3] = params.ch_padding[0].value pad_channels = relay.Constant( tvm.nd.array( np.full( shape=shape1, fill_value=int(params.ifm.q_params.zero_point), dtype=params.ifm.dtype, ) ) ) identity1 = ethosu_ops.ethosu_identity( ifm=pad_channels, lut=lut, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), ) concat_args.append(identity1) identity2 = ethosu_ops.ethosu_identity( ifm=params.ifm.tensor, lut=lut, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), ) concat_args.append(identity2) # pad channels after if params.ch_padding[1] > 0: shape3 = list(params.ifm.shape) shape3[3] = params.ch_padding[1].value pad_channels3 = relay.Constant( tvm.nd.array( np.full( shape=shape3, fill_value=int(params.ifm.q_params.zero_point), dtype=params.ifm.dtype, ) ) ) identity3 = ethosu_ops.ethosu_identity( ifm=pad_channels3, lut=lut, ifm_scale=float(params.ifm.q_params.scale_f32), ifm_zero_point=int(params.ifm.q_params.zero_point), ofm_scale=float(params.ofm.q_params.scale_f32), ofm_zero_point=int(params.ofm.q_params.zero_point), ) concat_args.append(identity3) return relay.op.concatenate(relay.Tuple(concat_args), axis=3) @util.create_npu_function_pass(opt_level=1) class LegalizeEthosU: """This is the pass to call graph-rewrites to perform graph transformation in a way such that the operations are replaced with hardware/codegen supported operations. """ def transform_npu_function(self, _, func: relay.Function) -> relay.Function: """This is the method that replaces the operations with hardware/codegen supported operations. """ rewriters = [ PartitionedSplitRewriter(), FullyConnectedRewriter(), MatMulRewriter(), MatMulFixedPointRewriter(), SplitRewriter(), ChannelPadRewriter(), Conv2DRewriter(), Conv2DTransposeRewriter(), DepthwiseConv2DRewriter(), MaxPoolingRewriter(), AvgPoolingRewriter(), PadRewriter(), AddRewriter(), SubRewriter(), MulRewriter(), MinRewriter(), MaxRewriter(), ShlRewriter(), AbsRewriter(), TanhRewriter(), TanhFixedPointRewriter(), HardSwishRewriter(), LeakyReLURewriter(), MeanRewriter(), SumRewriter(), SoftmaxRewriter(), ConcatRewriter(), SigmoidRewriter(), RequantizeRewriter(), Resize2dRewriter(), ExpandDimsRewriter(), SqueezeRewriter(), ReshapeRewriter(), StridedSliceRewriter(), NoOpRewriter(), ] for rewriter in rewriters: func = rewrite(rewriter, func) return func def __call__(self, *args, **kwargs): # pylint is unable figure out the decorated # class is callable, thus adding this to # suppress the warning. pass ```
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var tape = require( 'tape' ); var abs = require( '@stdlib/math/base/special/abs' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var EPS = require( '@stdlib/constants/float64/eps' ); var mode = require( './../lib' ); // FIXTURES // var data = require( './fixtures/julia/data.json' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof mode, 'function', 'main export is a function' ); t.end(); }); tape( 'if provided `NaN` for any parameter, the function returns `NaN`', function test( t ) { var v = mode( NaN, 0.5 ); t.equal( isnan( v ), true, 'returns NaN' ); v = mode( 10.0, NaN ); t.equal( isnan( v ), true, 'returns NaN' ); t.end(); }); tape( 'if provided `alpha <= 1`, the function returns `NaN`', function test( t ) { var y; y = mode( 0.5, 2.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( NINF, 1.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( NINF, PINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( NINF, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( NINF, NaN ); t.equal( isnan( y ), true, 'returns NaN' ); t.end(); }); tape( 'if provided `beta <= 1`, the function returns `NaN`', function test( t ) { var y; y = mode( 2.0, 0.5 ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( 1.0, -1.0 ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( PINF, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( NINF, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); y = mode( NaN, NINF ); t.equal( isnan( y ), true, 'returns NaN' ); t.end(); }); tape( 'the function returns the mode of a beta distribution', function test( t ) { var expected; var delta; var alpha; var beta; var tol; var i; var y; expected = data.expected; alpha = data.alpha; beta = data.beta; for ( i = 0; i < expected.length; i++ ) { y = mode( alpha[i], beta[i] ); if ( y === expected[i] ) { t.equal( y, expected[i], 'alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] ); } else { delta = abs( y - expected[ i ] ); tol = 15.0 * EPS * abs( expected[ i ] ); t.ok( delta <= tol, 'within tolerance. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. : '+delta+'. tol: '+tol+'.' ); } } t.end(); }); ```
Fateh-Ud-Duniya-Wa-Ud Din Wali-e-Mewat Raja Khanzada Jalal Khan Bahadur a.k.a. Jallu Khan, son of Khanzada Feroz Khan, was the Khanzada Rajput ruler of Mewat State from 1422 to 1443. He succeeded his father as Wali-e-Mewat in 1422. Conflict with Delhi In 1427, Sultan Mubarak Shah of Delhi's Sayyid dynasty attacked Mewat. The Mewati army fortified themselves for one year in the hills of Tijara, after which the Delhi army retreated. This event marked the complete sovereignty of Khanzada Rajputs on Mewat. Amber Fort Invasion He captured Amber Fort in 1438, the stronghold of the Kachwaha Rajas, and carried away of one of its gates to Indor Fort. Death Khanzada Jalal Khan died in 1443, after which he was succeeded by his son, Khanzada Ahmad Khan. References Mewat Indian Muslims Year of birth unknown
Awards and decorations of the United States government are civilian awards of the U.S. federal government which are typically issued for sustained meritorious service, in a civilian capacity, while serving in the U.S. federal government. Certain U.S. government awards may also be issued to military personnel of the United States Armed Forces and be worn in conjunction with awards and decorations of the United States military. In order of precedence, those U.S. non-military awards and decorations authorized for wear are worn after U.S. military personal decorations and unit awards and before U.S. military campaign and service awards. The following is a selection of civilian awards which are presently issued by the U.S. government. Office of the President of the United States Presidential Medal of Freedom with Distinction Presidential Medal of Freedom Presidential Citizens Medal Public Safety Officer Medal of Valor Medal for Merit (no longer awarded) Medal of Freedom (no longer awarded) President's Award for Distinguished Federal Civilian Service National Medal of Arts National Humanities Medal National Medal of Science National Medal of Technology and Innovation Presidential Award for Excellence in Mathematics and Science Teaching Presidential Early Career Award for Scientists and Engineers (PECASE) Presidential Award for Leadership in Federal Energy Management Preserve America Presidential Award President's Environmental Youth Award President's Volunteer Service Award (PVSA) Senior Executive Service Presidential Rank Award of Distinguished Executive Presidential Rank Award of Meritorious Executive Presidential Rank Award of Distinguished Senior Professional Presidential Rank Award of Meritorious Senior Professional United States Congress Congressional Gold Medal Congressional Silver Medal Congressional Bronze Medal Congressional Award Gold Medal (Youth Only) Congressional Award Silver Medal (Youth Only) Congressional Award Bronze Medal (Youth Only) Congressional Gold Certificate (Youth Only) Congressional Silver Certificate (Youth Only) Congressional Bronze Certificate (Youth Only) United States Intelligence Community The National Intelligence Awards (NIA) Program is administered by the Office of the Director of National Intelligence for the United States Intelligence Community (IC). National Intelligence Community Awards Significant contribution awards George Washington Spymaster Award National Intelligence Cross National Intelligence Medal for Valor National Intelligence Distinguished Service Medal National Intelligence Superior Service Medal National Intelligence Reform Medal (Retired 11/2010) National Intelligence Exceptional Achievement Medal National Intelligence Meritorious Unit Citation National Intelligence Medallion National Intelligence Certificate of Distinction Director of National Intelligence's Award for Collaborative Leadership (Retired 11/2010) National Intelligence Special Act or Service Award Intelligence Community EEO and Diversity Exemplary Leadership Award Intelligence Community EEO and Diversity Outstanding Achievement Award Intelligence Community Seal Medallion Galileo Award National Intelligence Public Service Awards National Intelligence Distinguished Public Service Medal National Intelligence Superior Public Service Medal Special eligibility awards Intelligence Community Expeditionary Service Medal National Intelligence Joint Duty Service Device Senior National Intelligence Service Device Former award prior to establishment of the NIA Program National Security Medal National Intelligence Medal of Achievement (NIAM) Central Intelligence Agency CIA Awards Distinguished Intelligence Cross (Valor Award) Distinguished Intelligence Medal Intelligence Star (Valor Award) Intelligence Medal of Merit Distinguished Career Intelligence Medal Career Intelligence Medal Career Commendation Medal Intelligence Commendation Medal Exceptional Service Medallion Hostile Action Service Medal Agency Seal Medal Director's Award Gold Retirement Medallion Silver Retirement Medallion Bronze Retirement Medallion Department of Agriculture The USDA's Honor Awards is a tradition dating back to 1947 and represents the highest awards granted by the Secretary to an individual or group for contribution or achievement in support of the Department's mission. Since 2018, the traditional honor awards program has been redesigned into a three-tier structure: Tier 3: Secretary's Honor Awards Tier 2: Under (or Assistant) Secretary's Awards Tier 1: Administrator's (or Chief's) Awards Animal and Plant Health Inspection Service Distinguished Honor Award Superior Honor Award Meritorious Honor Award Foreign Agricultural Service Distinguished Honor Award Superior Honor Award Meritorious Honor Award U.S. Forest Service Distinguished Science Award Early Career Scientist Award Science Delivery Award Strategic Goal Honor Awards Aldo Leopold Award for Overall Wilderness Stewardship Program Bob Marshall Award for Individual Champion of Wilderness Stewardship Bob Marshall Award for Group Champion of Wilderness Stewardship Wilderness Partnership Champion Award Excellence in Wilderness Stewardship Research Award Connie Myers Award for Leadership in Wilderness Education Line Officer Wilderness Leadership Award Outstanding Wild & Scenic River Stewardship Outstanding Wild & Scenic River Manager Outstanding Line Officer Leadership for Wild & Scenic Rivers Department of Commerce Department of Commerce Gold Medal Department of Commerce Silver Medal Department of Commerce Bronze Medal President's "E" Award National Institute of Standards and Technology Malcolm Baldrige National Quality Award Eugene Casson Crittenden Award Allen V. Astin Measurement Science Award Edward Uhler Condon Award Judson C. French Award Jacob Rabinow Applied Research Award Edward Bennett Rosa Award William P. Slichter Award Samuel Wesley Stratton Award George A. Uriano Award NIST Colleagues' Choice Award Director's Award for Excellence in Administration Equal Employment Opportunity/Diversity Award NIST Safety Award National Oceanic and Atmospheric Administration NOAA Corps Meritorious Service Medal NOAA Administrator's Award NOAA Corps Commendation Medal NOAA Corps Achievement Medal NOAA Corps Director's Ribbon NOAA Units Citation Award NOAA Technology Transfer Award NOAA Distinguished Career Award Non-government decorations Non-governmental organizations Junior Officer of the Year = NOAA ACO Award Medal (without attachments) Science Award = NOAA ACO Award Medal (with bronze "S" device) Engineering Award = NOAA ACO Award Medal (with bronze "E" device) Society of American Military Engineers' Colbert Medal Society of American Military Engineers Karo Award Campaign and service awards NOAA Corps National Response Deployment Medal NOAA Corps Outstanding Volunteer Service Award Medal NOAA Sea Service Deployment Ribbon NOAA Corps Atlantic Sea Service Ribbon NOAA Corps Pacific Sea Service Ribbon NOAA Corps Mobile Duty Service Ribbon NOAA Corps International Service Ribbon NOAA Corps National Response Service Ribbon NOAA Rifle Ribbon (no longer awarded) NOAA Pistol Ribbon (no longer awarded) Coast and Geodetic Survey Coast and Geodetic Survey Distinguished Service Ribbon Coast and Geodetic Survey Meritorious Service Ribbon Coast and Geodetic Survey Good Conduct Ribbon Coast and Geodetic Survey Defense Service Ribbon Coast and Geodetic Survey Atlantic War Zone Ribbon Coast and Geodetic Survey Pacific War Zone Ribbon Department of Defense Department of Defense awards for civilian service Department of Defense Distinguished Civilian Service Award Secretary of Defense Meritorious Civilian Service Award Department of Defense David O. Cooke Excellence in Public Administration Award Office of the Secretary of Defense-level awards for civilian service Office of the Secretary of Defense Exceptional Civilian Service Award Office of the Secretary of Defense Civilian Career Service Award Office of the Secretary of Defense Medal for Valor Secretary of Defense Medal for the Defense of Freedom Civilian Desert Shield/Desert Storm Medal Secretary of Defense Medal for the Global War on Terrorism Armed Forces Civilian Service Medal (AFCSM) Office of the Secretary of Defense Award for Excellence Office of the Secretary of Defense Group Achievement Award Office of the Secretary of Defense-level awards for private citizens Department of Defense Medal for Distinguished Public Service Secretary of Defense Medal for Outstanding Public Service Secretary of Defense Medal for Exceptional Public Service Eugene G. Fubini Award Joint Chiefs of Staff CJCS Award for Distinguished Public Service (DPS) CJCS Award for Outstanding Public Service (OPS) CJCS Joint Distinguished Civilian Service Award (JDSCA) CJCS Joint Meritorious Civilian Service Award (JMCSA), its military equivalent is the Defense Meritorious Service Medal Joint Civilian Service Commendation Award (JCSCA), its military equivalent is the Joint Service Commendation Medal Joint Civilian Service Achievement Award (JCSAA), its military equivalent is the Joint Service Achievement Medal Civilian Personnel Management Service Exceptional Civilian Service Award Meritorious Civilian Service Award Outstanding Civilian Career Service Award Defense Acquisition University Defense Acquisition University President's Medal Defense Acquisition University Superior Civilian Service Medal Defense Acquisition University Civilian Achievement Medal Defense Advanced Research Projects Agency DARPA Distinguished Civilian Service Medal DARPA Superior Civilian Service Medal DARPA Meritorious Civilian Service Medal DARPA Distinguished Public Service Medal DARPA Superior Public Service Medal DARPA Meritorious Public Service Medal DARPA Honorable Service Medal Game Changer Award Medallion DOD Office of the Inspector General (OIG) DOD Inspector General Distinguished Service Award DOD Inspector General Superior Civilian Service Award DOD Inspector General Meritorious Civilian Service Award Defense Investigative Service Defense Investigative Service Exceptional Civilian Service Award Defense Investigative Service Meritorious Civilian Service Award Defense POW/MIA Accounting Agency Director's Meritorious Civilian Service Award Director's Commendation for Civilian Service Director's Civilian Achievement Award DPAA Operational Team Service Medal DPAA Distinguished Public Service Medal DPAA Superior Public Service Medal Department of the Army Department of the Army Civilian Service Decorations Department of the Army Distinguished Civilian Service Award Secretary of the Army Award for Valor Superior Civilian Service Award Meritorious Civilian Service Award Department of the Army Civilian Service Commendation Medal (formerly the Commander's Award for Civilian Service) Department of the Army Civilian Service Achievement Medal Secretary of the Army's Award for Outstanding Achievement in Materiel Acquisition Department of the Army Civilian Service Medals Civilian Award for Humanitarian Service Secretary of Defense Medal for the Global War on Terrorism Armed Forces Civilian Service Medal (AFCSM) Department of the Army Public Service Decorations Distinguished Public Service Medal Superior Public Service Medal Meritorious Public Service Medal Public Service Commendation Medal (formerly the Commander's Award for Public Service) Patriotic Public Service Lapel Button Certificate of Appreciation for Patriotic Civilian Service Department of the Air Force Air Force Decoration for Exceptional Civilian Service Outstanding Civilian Career Service Award Civilian Award for Valor Meritorious Civilian Service Award Command Civilian Award for Valor Exemplary Civilian Service Award Civilian Achievement Award Civilian Air Medal Civilian Aerial Achievement Award Awards for non-governmental personnel Secretary of the Air Force Distinguished Public Service Award Chief of Staff of the Air Force Award for Exceptional Public Service Air Force Exceptional Service Award Air Force Scroll of Appreciation Commander's Public Service Award Department of the Navy Distinguished Civilian Service Award Superior Civilian Service Award Meritorious Civilian Service Award Civilian Service Commendation Medal Civilian Service Achievement Medal Distinguished Civilian Medal for Valor Superior Civilian Medal for Valor Angela M. Houtz Medal for Fallen Civilians Captain Robert Dexter Conrad Award for Scientific Achievement Distinguished Achievement in Science Award Distinguished Public Service Award Superior Public Service Award Meritorious Public Service Award Military Sealift Command Military Sealift Command Civilian Service Commendation Medal Military Sealift Command Civilian Service Achievement Medal Military Sealift Command Civilian Humanitarian Service Medal Defense Commissary Agency Defense Commissary Agency Distinguished Civilian Service Award DeCA Meritorious Civilian Service Award DeCA Superior Civilian Service Award DeCA Civilian Career Service Award Defense Contract Audit Agency Distinguished Civilian Service Medal Meritorious Civilian Service Medal Defense Contract Management Agency (DCMA) DCMA Distinguished Civilian Service Award DCMA Exceptional Civilian Service Award DCMA Meritorious Civilian Service Award DCMA Civilian Career Service Award Defense Information Systems Agency DISA Exceptional Civilian Service Medal DISA Meritorious Civilian Service Medal Defense Intelligence Agency DIA Leadership Award DIA Exceptional Civilian Service Medal DIA Excellent Service Medal DIA Civilian Achievement Medal DIA Meritorious Civilian Service Medal DIA Director's Award DIA Civilian Combat Support Medal DIA Civilian Expeditionary Medal Defense Logistics Agency DLA Distinguished Career Service Award DLA Superior Civilian Service Award DLA Meritorious Civilian Service Award DLA Exceptional Civilian Service Award DLA Humanitarian Service Medal Defense Supply Agency DSA Exceptional Civilian Service Award Defense Technical Information Center DTIC Exceptional Civilian Service Award DTIC Meritorious Civilian Service Award Defense Threat Reduction Agency (DTRA) DTRA Distinguished Service Award DTRA Meritorious Service Award DTRA Exceptional Service Award DTRA Honorable Civilian Service Medal Formerly the Defense Special Weapons Agency (DSWA) Awards DSWA Director's Lifetime Achievement Award DSWA Exceptional Civilian Service Award DSWA Meritorious Civilian Service Award National Geospatial-Intelligence Agency NIMA or NGA Distinguished Civilian Service Medal NIMA or NGA Meritorious Civilian Service Medal NIMA or NGA Superior Civilian Service Medal NIMA or NGA Meritorious Unit Citation National Reconnaissance Office NRO Distinguished Service Medal (Gold Medal) NRO Superior Service Medal (Silver Medal) NRO Meritorious Service Medal (Bronze Medal) NRO Director's Circle Award National Security Agency NSA Distinguished Civilian Service Medal NSA Superior Civilian Service Medal NSA Meritorious Civilian Service Medal NSA Civilian Service Achievement Medal NSA Civilian Valor Medal NSA Leadership Medallion NSA Innovation Medallion NSA National Security Medallion NSA Citizenship Medallion NSA Foreign Partnership Medallion NSA Public Service Medallion NSA Exceptional Civilian Service Medal (no longer awarded) Uniformed Services University of the Health Sciences USUHS Distinguished Service Medal USUHS Exceptional Service Medal USUHS Outstanding Service Medal USUHS Commendable Service Medal USUHS Medal of Achievement Department of Education Employee awards Secretary's Golden Apple Award Secretary's Executive Leadership Award Secretary's Supervisory Leadership Award Secretary's Innovation Award Secretary's Customer Service Award Secretary's Teamwork Award Secretary's Diversity and Inclusion Award Secretary's Collaboration Award ED Peer Recognition Award James P. Keenan Award Public awards Presidential Scholar Medallion President's Education Awards Program (PEAP) PEAP—Excellence Award for Elementary Schools (with Certificate and Gold Seal in Blue Pin) PEAP—Excellence Award for Middle Schools (with Certificate and Gold Seal in Red Pin) PEAP—Excellence Award for High Schools (with Certificate and Gold Seal in Black Pin) PEAP—Achievement Award for Elementary, Middle and High Schools (with Certificate and Silver Seal in White Pin) National Blue Ribbon Schools Program National Green Ribbon Schools Program Department of Energy Honor awards The James R. Schlesinger Award Secretary of Energy's Excellence Award Secretary of Energy's Achievement Award Appreciation awards Secretary of Energy's Appreciation Award Secretary of Energy's Appreciation Award for Management Excellence Departure awards Secretary of Energy's Exceptional Service Award Secretary of Energy's Distinguished Service Award Secretary of Energy's Meritorious Service Award Departmental awards Safety System Oversight (SSO) Annual Award Facility Representative of the Year Award Locally Employed Staff (LES)/Foreign Service National (FSN) of the Year Award Inactive and obsolete awards DOE Award for Valor DOE Secretary's Award DOE Exceptional Service Medal DOE Meritorious Service Award Department of Health and Human Services Secretary's Award for Distinguished Service Secretary's Award for Meritorious Service HHS Distinguished Public Service Award HHS Award for Excellence in Management Hubert H. Humphrey Award for Service to America HHS Career Achievement Award Secretary's Recognition Award Secretary's Special Citation Secretary's Certificate of Appreciation Secretary's Letter of Appreciation Superior Accomplishment Award - Special Act or Service Superior Accomplishment Award - Suggestions Superior Accomplishment Award - Inventions U.S. Public Health Service For authorized uniformed service awards of the U.S. Public Health Service Commissioned Corps, visit “Awards and decorations of the Public Health Service" Assistant Secretary for Health's Exceptional Service Medal (can be awarded to a member of any uniformed service or a civilian) Surgeon General's Medallion (can be awarded to a member of any uniformed service or a civilian) Public Health Service COVID-19 Pandemic Civilian Service Award Medal National Institutes of Health NIH Director's Award – Scientific/Medical NIH Director's Award – Technical/Clerical/Support NIH Director's Award – Administrative NIH Director's Award – Mentoring Office of the Assistant Secretary for Preparedness and Response D.A. Henderson Lifetime Achievement Medal Investor in People Leadership Award Medal Pinnacle Award Medal Superior Contribution Medal Pledge to Excellence Medal Centers for Disease Control and Prevention (CDC) / Agency for Toxic Substances and Disease Registry (ATSDR) CDC/ATSDR William Watson Medal of Excellence (no ribbon) President's Council on Fitness, Sports, and Nutrition PSA Presidential Sports Award (with Certificate, Medal and Emblem) PCA-P Presidential Champions Platinum Award (with Certificate, Medallion and Citation) PCA-G Presidential Champions Gold Award (with Certificate, Medal, Pin and Emblem) PCA-S Presidential Champions Silver Award (with Certificate, Medal, Pin and Emblem) PCA-B Presidential Champions Bronze Award (with Certificate, Medal, Pin and Emblem) PALA+ Presidential Active Lifestyle Award (with Certificate, Pin and Emblem) PYFA Presidential Youth Fitness Award (with Certificate, Medal and Emblem) Pr-PFA Presidential Physical Fitness Award (with Certificate and Emblem) N-PFA National Physical Fitness Award (with Certificate and Emblem) P-PFA Participant Physical Fitness Award (with Certificate and Emblem) HFA Health Fitness Award (with Certificate and Emblem) Most of these awards were terminated 30 June 2018. Department of Homeland Security Secretary's Exceptional Service Gold Medal Secretary's Meritorious Service Silver Medal Homeland Security Distinguished Public Service Medal Secretary's Award for Leadership Excellence Secretary's Award for Valor Secretary's Unity of Effort Award Secretary's Award for Exemplary Service Secretary's Award for Excellence Secretary's Unit Award Secretary's Award for Diversity Management Secretary's Award for Volunteer Service DHS Outstanding Unit Award U.S. Customs and Border Protection Border Patrol Newton-Azrak Award Medal of Honor for Heroism Award Meritorious Service Award for Valor Border Patrol Purple Cross Commissioner's Leadership Award Commissioner's Invictus Award Commissioner's Integrity Award Commissioner's Blue Eagle Award CBP Community Service Award Commissioner's Unit Citation Award Commissioner's Distinguished Career Service Award (Proposed in 2002, Never Authorized) Commissioner's Exceptional Service Medal (Proposed in 2002, Never Authorized) Commissioner's Meritorious Service Award (Proposed in 2002, Never Authorized) Commissioner's Special Commendation Award (Proposed in 2002, Never Authorized) Border Patrol Chief's Commendation (Awarded from 2002 to 2004) Border Patrol Excellence in Group Achievement (Proposed in 2002, Never Authorized) Border Patrol Academy Honor Graduate Medal (Proposed in 2002, Never Authorized) Border Patrol Long Service Medal (Proposed in 2002, Never Authorized) Border Patrol 75th Anniversary Medal (No Longer Authorized for Wear) Federal Emergency Management Agency FEMA Distinguished Service Medal Secretary's Award For Distinguished Public Safety Service (may be awarded by the Attorney General or FEMA Director) Federal Law Enforcement Training Centers FLETC Honor Graduate of the Year Award FLETC Director's Life Saving Award Federal Law Enforcement Training Accreditation (FLETA) Team Leader Recognition Award FLETA Agency Leadership Recognition Award U.S. Coast Guard For authorized military awards, visit "Awards and decorations of the United States Coast Guard" Gold Lifesaving Medal Silver Lifesaving Medal Civilian Service Awards Commandant's Superior Achievement Award Commandant's Distinguished Career Service Award Coast Guard Civilian Employee of the Year Award Coast Guard Civilian Service Commendational Medal Coast Guard Certificate of Appreciation Coast Guard Official Letter of Commendation Public Service Awards Coast Guard Distinguished Public Service Award Coast Guard Meritorious Public Service Award Coast Guard Public Service Commendation Coast Guard Certificate of Merit Coast Guard Certificate of Appreciation U.S. Secret Service Director's Award of Valor Director's Lifesaving Award Director's Impact Award Director's Distinguished Service Award Director's Yes Award Transportation Security Administration John W. Magaw Leadership Values Award Gale D. Rossides People First Award Gerardo Hernandez In The Line Of Duty Service Award Distinguished Career Service Award Department of the Interior Honor Awards Distinguished Service Award Meritorious Service Award Unit Award for Excellence of Service Superior Service Award Citizen's Award for Exceptional Service Secretary's Award for Outstanding Contribution to Aviation Safety Heroic Act Honor Awards Valor Award Citizen's Award for Bravery Exemplary Act Award Other Honor Awards Departmental Unsung Hero Award Secretary's Diversity Award Environmental Achievement Award Award of Merit (Safety) Professional Service Award (Safety) Outstanding Service Award (for Political Appointees) Partners in Conservation Award Department of Justice Public Safety Officer Medal of Valor (awarded by the President to public safety officers cited by the Attorney General) Law Enforcement Congressional Badge of Bravery—Federal Law Enforcement Congressional Badge of Bravery—State and Local Secretary's Award For Distinguished Public Safety Service (may be awarded by the Attorney General or FEMA Director) Attorney General's Award for Exceptional Service Attorney General's Award for Exceptional Heroism Mary C. Lawton Lifetime Service Award William French Smith Award for Outstanding Contributions to Cooperative Law Enforcement Edward H. Levi Award for Outstanding Professionalism and Exemplary Integrity Attorney General's Award for Meritorious Public Service Attorney General's Award for Distinguished Service Attorney General's Distinguished Service Award—Criminal Investigation Attorney General's Distinguished Service Award—Field Operations Attorney General's Distinguished Service Award—Community Policing Innovations Attorney General's Award for Excellence in Law Enforcement Attorney General's Award for Excellence in Management Attorney General's Award for Excellence in Information Technology Attorney General's Award for Excellence in Furthering the Interests of U.S. National Security Attorney General's Award for Excellence in Legal Support Attorney General's Award for Excellence in Administrative Support John Marshall Awards Attorney General's Award for Outstanding Service in Freedom of Information Act Administration Attorney General's Award for Fraud Prevention Attorney General's Award for Outstanding Contributions to Community Partnerships for Public Safety Attorney General's Award for Outstanding Service by a Federal Wage System Employee Attorney General's Award for Outstanding Contributions by a New Employee Young American Award; transferred to the Boy Scouts of America in 1971 Bureau of Alcohol, Tobacco, Firearms, and Explosives ATF Distinguished Service Medal ATF Gold Star Medal ATF Medal of Valor Drug Enforcement Administration DEA Purple Heart Award Federal Bureau of Investigation FBI Star FBI Medal for Meritorious Achievement FBI Shield of Bravery FBI Medal of Valor FBI Memorial Star Federal Bureau of Prisons Federal Bureau of Prisons Distinguished Service Medal (Gold Medal) Federal Bureau of Prisons Meritorious Service Medal (Silver Medal) Federal Bureau of Prisons Commendable Service Medal (Bronze Medal) Department of State Honor Awards Secretary's Distinguished Service Award Secretary’s Award Award for Heroism Award for Valor Thomas Jefferson Star for Foreign Service Distinguished Honor Award Superior Honor Award Meritorious Honor Award Richard C. Holbrooke Award for Diplomacy Presidential Award for Extraordinary Efforts to Combat Trafficking in Persons Franklin Award Service Awards Expeditionary Service Award Vietnam Civilian Service Award Secretary's Career Achievement Award John Jacob Rogers Award Arms Control and Disarmament Agency Distinguished Honor Award Superior Honor Award Meritorious Honor Award United States Information Agency (Defunct agency) Distinguished Honor Award Superior Honor Award Meritorious Honor Award Department of Transportation Secretary of Transportation Outstanding Achievement Medal Department of Transportation Meritorious Achievement Medal Department of Transportation Superior Achievement Medal Department of Transportation Medal for Valor Guardian Medal Transportation 9-11 Medal Transportation 9-11 Ribbon Secretary of Transportation Outstanding Unit Award Commercial Astronaut Wings Federal Aviation Administration FAA Valor Medal FAA Wright Brothers Master Pilot Award FAA Charles Taylor Master Mechanic Award FAA Pilot Proficiency Award Program General Aviation Awards Program Maritime Administration Distinguished Service Medal Meritorious Service Medal Outstanding Achievement Medal Gallant Ship Citation Mariner's Medal Combat Bar Defense Medal Atlantic War Zone Medal Mediterranean-Middle East War Zone Pacific War Zone Medal World War II Victory Medal Korean Service Medal Vietnam Service Medal Expeditionary Medal Department of the Treasury Alexander Hamilton Award Albert Gallatin Award Distinguished Service Award Meritorious Service Award Secretary's Honor Award Assistant Secretary for Public Affairs Certificate of Distinguished Service Internal Revenue Service IRS Commissioner's Award Office of Thrift Supervision OTS Director's Award for Excellence American Battle Monuments Commission Distinguished Service Service Ribbon Superior Service Service Ribbon Meritorious Service Service Ribbon Commendable Service Ribbon Distinguished Public Service Service Ribbon Superior Public Service Service Ribbon Meritorious Public Service Ribbon Broadcasting Board of Governors Distinguished Honor Award David Burke Distinguished Journalism Award Environmental Protection Agency EPA Gold Medal for Exceptional Service (individual and group) EPA Silver Medal for Superior Service (individual and group) EPA Bronze Medal for Commendable Service (individual and group) EPA Distinguished Career Service Award Paul G. Keough Award for Administrative Excellence Glenda A. Farmer Award for Exemplary Technical Support Trudy A. Speciner Non-Supervisory Award for Advancing Environmental Protection President's Environmental Youth Award General Services Administration Administrator’s Distinguished Service Award Administrator’s Meritorious Service Award Administrator’s Excellence in Performance Award Administrator’s Exceptional Service Award Head of Service or Staff Office or Regional Administrator Exceptional Service Award Commendable Service Award GSA Design Excellence Award in Federal Architecture Travel & Relocation Excellence Award GSA Gold Star Award for Excellence in Implementing the Federal Computers for Learning Program (Executive Order 12999) Miles Romney Achievement Award for Innovation in Personal Property Management Bob Baker Fleet Manager of the Year Awards program GSA Federal Aviation Program Awards program GSA Achievement Award for Real Property Best Practices and Innovation GSA Federal Mail Best Practices Awards program National Aeronautics and Space Administration (NASA) Congressional Space Medal of Honor (astronauts only) Distinguished Service Medal Distinguished Public Service Medal Outstanding Leadership Medal Outstanding Service Medal (obsolete) Outstanding Public Leadership Medal Exceptional Service Medal Exceptional Public Service Medal Exceptional Bravery Medal Exceptional Engineering Achievement Medal Exceptional Scientific Achievement Medal Exceptional Technology Achievement Medal Equal Employment Opportunity Medal Exceptional Administrative Achievement Medal Exceptional Achievement Medal Exceptional Public Achievement Medal Early Career Achievement Medal Silver Achievement Medal NASA Group Achievement Award Space Flight Medal (astronauts only) Space Exploration Medal Silver Snoopy Award National Science Foundation (NSF) Antarctic Service Medal Presidential Award for Excellence in Mathematics and Science Teaching (PAEMST) Presidential Award for Excellence in Science, Mathematics and Engineering Mentoring (PAESMEM) Vannevar Bush Award NSB Public Service Award Office of Personnel Management (OPM) OPM Meritorious Service Medal Selective Service System Selective Service System Distinguished Service Medal Selective Service System Exceptional Service Medal Selective Service System Meritorious Service Medal Selective Service System World War II Service Medal Small Business Administration (SBA) Small Business Person of the Year Small Business Exporter of the Year Jody C. Raskind Microlender of the Year Small Business Investment Company of the Year SCORE Chapter of the Year Awards to SBA Resource Partners Small Business Development Center (SBDC) Excellence and Innovation Award Women's Business Center of Excellence Award Veterans Business Outreach Center Excellence in Service Award Phoenix Awards for Disaster Recovery Outstanding Small Business Disaster Recovery Outstanding Contributions to Disaster Recovery — Public Official Outstanding Contributions to Disaster Recovery — Volunteer Federal Procurement Awards Small Business Prime Contractor of the Year Small Business Subcontractor of the Year 8(a) Graduate of the Year Dwight D. Eisenhower Awards for Excellence President's Council on Year 2000 Conversion Y2K Service Medal United States Agency for International Development Distinguished Honor Award Superior Honor Award Meritorious Honor Award References Civil awards and decorations of the United States
Chagharzai is an administrative unit, known as Tehsil of Buner District in the Khyber Pakhtunkhwa province of Pakistan. District Buner has 6 Tehsils i.e. Daggar, Chagharzai, Chamla, Khudu Khel, Gagra and Gadezai. Each tehsil comprises certain numbers of union councils. There are 27 union councils in Buner District. See also Buner District References External links United Nations Hajjinfo.org Uploads PBS paiman.jsi.com Buner District Union councils of Khyber Pakhtunkhwa Union Councils of Buner District
Giovani dos Santos Ramírez ( ; born 11 May 1989) is a Mexican professional footballer. A versatile forward, dos Santos played as an attacking midfielder, winger, and secondary striker. He is an Olympic gold medalist. Dos Santos began his football career at a very young age, being recruited by Spanish club Barcelona and played for their B team until age 18. He made his way up the ranks, eventually playing for the senior squad, making his debut in 2007. That year, he was named by World Soccer Magazine as one of the "Top 50 Most Exciting Teen Footballers". After playing one season, Dos Santos was transferred to Premier League club Tottenham Hotspur in 2008 in search for more playing time. Though he would stay with the club until 2012, his time there was mostly spent away on loan, at Ipswich Town, Galatasaray and Racing de Santander, with varying degrees of success. Spurs eventually sold dos Santos to Mallorca in 2012, and he was sold a year later to Villarreal. After a three-year stint, he was sold to LA Galaxy in July 2015, who went on to buy out his contract and release him prior to the 2019 season. Dos Santos was a member of the Mexico under-17 team that won the 2005 FIFA U-17 World Championship held in Peru. He made his debut for the senior national team in a 1–0 victory over Panama on 9 September 2007, and represented El Tri at the 2010, 2014, and 2018 FIFA World Cups, along with the 2013 and 2017 FIFA Confederations Cup. With Mexico, Dos Santos has won the CONCACAF Gold Cup in 2009, 2011 and 2015, scoring in the 2009 and 2011 finals and winning the MVP award in 2009. He was also a member of Mexico's team that won the gold-medal at the 2012 Summer Olympics. Club career Barcelona Born in Monterrey, Nuevo León, Dos Santos joined Barcelona's academy of La Masia at age 13 and played for Barcelona's Juvenil A category, where he helped his team to make a comeback in the league and win the regional title. This title allowed them to participate in the Youth Copa del Rey, where they faced other regional champions, among them their historic arch-rivals, Real Madrid. Dos Santos once again played a significant role during the tournament and helped the team win the national title of the Juvenil A category. In 2006, Dos Santos was invited on the pre-season tour of Barcelona's senior squad; during a friendly match on 29 July 2006, he scored in his senior team debut game against Danish club AGF Aarhus. On 28 November 2006, Barcelona included Dos Santos in their 23-man squad for the FIFA Club World Cup in Japan. During mid-2007, Dos Santos was once again invited to join Barcelona's senior squad on their pre-season tour. On 29 August 2007, he received dual nationality and was included in the official first team squad. He made his competitive and league debut on 2 September 2007 (at 18 years and 114 days) during a 3–1 home win against Athletic Bilbao, coming on for Thierry Henry in the 62nd minute. Dos Santos made his UEFA Champions League debut on 20 September 2007 during a 3–0 home win against Lyon. He came on as a substitute for Xavi in the 79th minute. On 17 May 2008, Dos Santos scored a hat-trick against Real Murcia, with a final score of 5–3, granting a victory to Barça on the team's last game of the 2007–08 season. It was also the last game Dos Santos played before joining Tottenham Hotspur. Tottenham Hotspur On 18 June 2008, Dos Santos passed a medical and agreed terms to complete his move to Tottenham from Barcelona. Barcelona reported that the transfer fee was €6 million with an additional €5 million payable depending on appearances for Tottenham. The young Mexican was on target twice as Tottenham beat local Spanish side UD Tavernes in an 8–0 thumping on their 2008–09 pre-season tour. He also played in Spurs' other pre-season games including the 5–1 wins over Leyton Orient and Norwich City. He also scored the second goal in the 3–0 win over Borussia Dortmund to help Spurs to make it two wins out of two and take home the Feyenoord Jubileum Tournament trophy. He scored his first competitive goal for Spurs in the UEFA Cup on 26 February 2009 against Shakhtar Donetsk. After 12 first team appearances, he was sent on loan to Ipswich Town for the remainder of the season. Dos Santos returned to Tottenham at the start of the 2009–10 season and his first game of the season came against Doncaster Rovers in the League Cup, in which he provided an assist. He was substituted off, however, due to an ankle injury early on in a League Cup game against Preston North End and managed to make only a substitute appearance in a 1–0 loss to Wolverhampton Wanderers. Dos Santos' commitment was questioned by then Tottenham boss Harry Redknapp, who warned him to stay away from nightclubs and revealed that he was often late for training on Mondays. Dos Santos scored and had an assist in Tottenham's UEFA Europa League group match against Shamrock Rovers on 29 September 2011 at White Hart Lane. On 7 January 2012, he scored a goal and completed an assist for a 3–0 win against Cheltenham Town in the third round of the FA Cup. Ipswich Town (loan) In March 2009, Dos Santos signed on loan at Ipswich Town until the end of the season. He made his debut on 14 March 2009, coming on as a substitute against Reading. He scored his first league goal and the equaliser in the following game against Burnley. He scored his second goal against Bristol City on Easter Monday, a 94th-minute penalty to equalise for Ipswich. He also claimed an assist and a goal from the penalty spot in Ipswich's 3–2 win over local rivals Norwich City a week later. He finished his loan with four goals in eight appearances. Galatasaray (loan) In January 2010, Dos Santos signed for Turkish club Galatasaray on loan for the remainder of the 2009–10 season, with an option to purchase him at the end of that period. The move reunited the player with Frank Rijkaard, his former coach at Barcelona. On 31 January, Dos Santos made his debut coming on as a 58th-minute substitute for Emre Çolak in a Süper Lig game against Denizlispor, a 2–1 victory. He returned to Tottenham in the summer having failed to score for Galatasaray, and stayed there for half a season before being loaned to La Liga club Racing de Santander in January. Racing Santander (loan) On 31 January 2011, Dos Santos joined La Liga side Racing de Santander on loan until the end of the season from Tottenham. He made his debut for his new club on 5 February 2011 as a substitute against Real Zaragoza, drawing the game 1–1. He scored his first goal as a substitute against Villarreal in the 68th minute on 27 February 2011. Dos Santos scored a brace in a 3–2 win league match over Hércules. Mallorca It was reported that Dos Santos had told Tottenham that he wanted a move in the summer of 2012 or else he would leave on a free transfer during the next transfer window. His agent stated there was interest from Serie A club Inter Milan. as well as Sevilla. On 31 August 2012, Dos Santos signed a four-year deal with Spanish outfit Mallorca, being introduced as their new number 9. On 22 October, he made his debut for Mallorca, playing 60 minutes and assisting both goals in a 3–2 away defeat to Sevilla. He played another 60 minutes on 28 October in a 5–0 home defeat to Real Madrid. Dos Santos scored his first goal for Mallorca against Espanyol on 18 January 2013. Though Mallorca would finish the season in 18th place and was relegated, Dos Santos was a mainstay in the squad, amassing 32 total appearances and finished as their top goal-scorer with six goals as well as seven assists. Villarreal On 9 July 2013, Dos Santos completed a much speculated move to recently promoted side Villarreal for a reported €6 million. He finished the 2013–14 season with 11 goals and 8 assists, helping the club finish the season in sixth place. Los Angeles Galaxy On 15 July 2015, the Major League Soccer club LA Galaxy announced the signing of dos Santos as a Designated Player, in a reported US$7 million deal. On 6 August, dos Santos made his competitive debut and scored his first competitive goal for the Galaxy in a CONCACAF Champions League fixture against Trinidadian side Central FC. Three days later, he made his MLS debut and scored a goal and provided an assist in the 3–1 win over Seattle Sounders FC. On October 2, it was reported that dos Santos made that year's FIFA Ballon d'Or longlist. In July 2016, dos Santos was included in the roster for the 2016 MLS All-Star Game. On 21 July 2016, he came off of the bench during the quarter-finals of the U.S. Open Cup, scoring within three minutes of coming onto the pitch. The goal help the Galaxy start a comeback leading to a 4–2 victory over Seattle Sounders to advance to the semi-finals for the first time in ten years. In July 2017, Dos Santos was included in the roster for the 2017 MLS All-Star Game. On 1 March 2019, LA Galaxy announced they had exercised its one offseason buyout of a guaranteed contract on dos Santos, thus releasing him from the team. América On 6 July 2019, Dos Santos officially joined Mexican side Club América. He played in the Liga MX for the first time after reaching a three-year agreement with América, being handed the number 10 shirt. In his first Súper Clasico against Guadalajara on 28 September, dos Santos suffered a thigh injury following a tackle from Antonio Briseño, with the defender piercing dos Santos' skin with his studs and leaving a deep gash in his right leg. He was stretchered off the field and immediately taken to a nearby hospital. Club América later released a statement revealing the player had suffered a wound in the quadriceps of the right thigh and would require surgery, thereby ruling him out of action for up to six weeks. Club América chose not to extend its working relationship with the player and released him on 15 June 2021. International career Youth Dos Santos participated at the 2001 Danone Nations Cup that was held at the Parc des Princes, Paris, where 40 countries also participated. Mexico would finish the tournament fifth, and Dos Santos won the Golden Boot award for top goalscorer. During the 2005 FIFA U-17 World Championship, which his team won, Dos Santos assisted half of the goals of Mexico during the tournament, a feat that won him the Adidas Silver Ball as the second best player of the tournament, finishing behind only to Brazilian midfielder Anderson. In the U-20 World Cup Qualifiers, Dos santos scored twice; once against St. Kitts and Nevis in the 86th minute and the second against Jamaica in the 56th minute. He was forced to sit out the last game for precautionary reasons against Costa Rica, as he had received a yellow card in the previous match. The game ended in a 1–1 draw, but Mexico still qualified, finishing top of the regional group. During the 2007 FIFA U-20 World Cup, Mexico was placed in Group C, where they were drawn against Gambia, Portugal and New Zealand. On 2 July 2007, Dos Santos and the rest of the Mexico team played against Gambia and won 3–0, with Dos Santos opening the scoring in the second half with a volley into the top left-hand corner from outside of the box. He then played against Portugal, where Mexico won 2–1, scoring the opening goal from the penalty spot. As Mexico had already qualified from the group, he was rested for the game against New Zealand. In the round of 16, Mexico played against Congo and Dos Santos returned to the starting line-up and yet again opened the scoring with a goal from the penalty spot in a match that Mexico won 3–0. In the quarter-finals, Mexico was eliminated by Argentina by an own goal on the second-half, which was the only goal of the game in a 1–0. Dos Santos was awarded the Adidas Bronze Ball. In June 2012, Dos Santos was called up to play with the under-23 squad that would participate at the 2012 London Olympics. On 29 July, he started on the bench but later scored his first two goals against Gabon, earning Mexico a 2–0 win. Dos Santos scored his third goal of the tournament on 4 August against Senegal, scoring a crucial tie breaking goal in the 98th minute of extra time to give Mexico a 3–2 lead, which eventually led to a 4–2 win. He was in the starting XI for the semi-final match against Japan and played the first half of the game, but was substituted out for Raúl Jiménez in the 46th minute due to an injury, which ultimately ruled him out of the final against Brazil. Dos Santos was, however, on the bench and watched Mexico defeat Brazil 2–1 at Wembley Stadium. Senior Dos Santos earned his first selection in the senior team roster when Hugo Sánchez picked him for exhibition games against Panama and Brazil. Dos Santos appeared for the first time for Mexico in a 1–0 victory over Panama on 9 September 2007 wearing the number 10 jersey. The match was abandoned at half time because of heavy rain. He scored his first two goals for Mexico on 24 June 2009 in a friendly match against Venezuela, a game in which he was also named Man of the Match. Dos Santos scored his third goal for Mexico on 19 July in the 2009 CONCACAF Gold Cup quarter-final game against Haiti in the 42nd minute and also recorded two assists in the 4–0 victory. On 26 July 2009, he helped Mexico end a ten-year drought of victory against the United States on American soil with a 5–0 victory that helped secure Mexico's fifth CONCACAF Gold Cup. He was named player of the tournament. On 5 September 2009, Dos Santos contributed to all three goals in a 3–0 win over Costa Rica in the 2010 FIFA World Cup qualification stages. He scored the first goal from outside the penalty box with his preferred left foot and assisted in the following two goals. When his brother Jonathan dos Santos was cut from Mexico's final 23-man squad for the 2010 World Cup, his father Zizinho said that Giovani was very hurt and claimed he was unsure whether he would play in the World Cup. At the 2010 World Cup, Dos Santos started in every game for Mexico as a right winger. He completed 138 passes without providing an assist. He was voted runner-up for the FIFA Young Player of the Tournament award, which eventually went to Thomas Müller of Germany. Dos Santos was called up to play the 2011 CONCACAF Gold Cup after a good mid-season loan to Racing de Santander. On 9 June 2011, he scored a brace against Cuba in a 5–0 win. In the final match against the United States, he scored in a 4–2 win by dribbling inside the box against goalkeeper Tim Howard and chipping the ball into the top-left corner over Eric Lichaj – that goal was named as the best goal of the tournament. Dos Santos was called up by Miguel Herrera to play the 2014 World Cup. He played in Mexico's World Cup opener against Cameroon, and on 29 June 2014, opened the scoring in a 2–1 round of 16 defeat against the Netherlands with a left-footed long range strike. In May 2018, Dos Santos was named in Mexico's preliminary 28-man squad for the 2018 FIFA World Cup in Russia, and in June, was ultimately included in the final 23-man roster for the tournament. Style of play A quick, skillful and creative player, Dos Santos was capable of playing in several offensive positions. He was usually deployed as a winger or as an attacking midfielder, and has even been used as a supporting striker. A technically gifted playmaker who possesses great flair and dribbling skills, he was described as a "clever" and "sharp" player who had the capacity to both score goals and create chances for teammates. As a youngster, he drew attention to himself as a precocious talent, and in 2010 he was named by Don Balón as one of the 100 best young players in the world born after 1989. Personal life Dos Santos is the son of former Brazilian footballer Zizinho, who played for Mexico clubs América and León in the late 1980s. His mother, Liliana Ramírez, is Mexican. Dos Santos has two brothers and two half-brothers; the elder, Éder, played for América's reserves team as a defensive midfielder before retiring in 2009, and his younger brother, Jonathan, currently plays for América. Dos Santos has appeared on the cover of the MLS custom editions of FIFA 16 and FIFA 17. Career statistics Club 1.Includes Copa del Rey, FA Cup, and U.S. Open Cup 2.Includes UEFA Champions League, UEFA Europa League, and CONCACAF Champions League 3.Includes English League Cup, MLS Cup Playoffs, and Leagues Cup International Scores and results list Mexico's goal tally first, score column indicates score after each dos Santos goal. Honours América Campeón de Campeones: 2019 Mexico U17 FIFA U-17 World Championship: 2005 Mexico U23 Olympic Gold Medal: 2012 Mexico CONCACAF Gold Cup: 2009, 2011, 2015 Individual FIFA U-17 World Championship Silver Ball: 2005 FIFA U-20 World Cup Bronze Ball: 2007 CONCACAF Gold Cup Golden Ball: 2009 CONCACAF Gold Cup All-Tournament Team: 2009 CONCACAF Gold Cup Best Goal: 2011 MLS Best XI: 2016 MLS All-Star: 2016, 2017 See also List of footballers with 100 or more caps References External links 1989 births Living people Mexican people of Brazilian descent Footballers from Monterrey Footballers from Nuevo León Men's association football midfielders Men's association football forwards FC Barcelona Atlètic players FC Barcelona players Tottenham Hotspur F.C. players Ipswich Town F.C. players Galatasaray S.K. footballers Racing de Santander players RCD Mallorca players Villarreal CF players LA Galaxy players Club América footballers Segunda División B players La Liga players Premier League players English Football League players Süper Lig players Major League Soccer players Designated Players (MLS) Major League Soccer All-Stars Liga MX players Mexico men's youth international footballers Mexico men's under-20 international footballers Olympic footballers for Mexico Mexico men's international footballers 2009 CONCACAF Gold Cup players 2010 FIFA World Cup players 2011 CONCACAF Gold Cup players 2011 Copa América players Footballers at the 2012 Summer Olympics 2013 FIFA Confederations Cup players 2014 FIFA World Cup players 2015 CONCACAF Gold Cup players 2017 FIFA Confederations Cup players 2018 FIFA World Cup players CONCACAF Gold Cup-winning players Olympic gold medalists for Mexico Olympic medalists in football Medalists at the 2012 Summer Olympics FIFA Men's Century Club Mexican expatriate men's footballers Mexican expatriate sportspeople in Spain Mexican expatriate sportspeople in England Mexican expatriate sportspeople in Turkey Mexican expatriate sportspeople in the United States Expatriate men's footballers in Spain Expatriate men's footballers in England Expatriate men's footballers in Turkey Expatriate men's soccer players in the United States Mexican men's footballers
Florian Schabereiter (born 10 February 1991) is an Austrian ski jumper who has competed since 2006. He finished third in the team event in Willingen in February 2010 and also finished 26th in the individual large hill event at that same venue. Schabereiter has three career victories in lesser events, including one individual normal hill event in Austria in December 2009. References 1991 births Austrian male ski jumpers Living people Place of birth missing (living people) 21st-century Austrian people
```c /* source: xiowrite.c */ /* this is the source of the extended write function */ #include "xiosysincludes.h" #include "xioopen.h" #include "xio-test.h" #include "xio-readline.h" #include "xio-openssl.h" /* ... note that the write() call can block even if the select()/poll() call reported the FD writeable: in case the FD is not nonblocking and a lock defers the operation. on return value < 0: errno reflects the value from write() */ ssize_t xiowrite(xiofile_t *file, const void *buff, size_t bytes) { ssize_t writt; struct single *pipe; int fd; int _errno; if (file->tag == XIO_TAG_INVALID) { Error1("xiowrite(): invalid xiofile descriptor %p", file); errno = EINVAL; return -1; } if (file->tag == XIO_TAG_DUAL) { pipe = file->dual.stream[1]; if (pipe->tag == XIO_TAG_INVALID) { Error1("xiowrite(): invalid xiofile sub descriptor %p[1]", file); errno = EINVAL; return -1; } } else { pipe = &file->stream; } #if WITH_READLINE /* try to extract a prompt from the write data */ if ((pipe->dtype & XIODATA_READMASK) == XIOREAD_READLINE) { xioscan_readline(pipe, buff, bytes); } #endif /* WITH_READLINE */ fd = XIO_GETWRFD(file); switch (pipe->dtype & XIODATA_WRITEMASK) { case XIOWRITE_STREAM: writt = writefull(pipe->wfd, buff, bytes); if (writt < 0) { _errno = errno; switch (_errno) { case EPIPE: case ECONNRESET: if (pipe->cool_write) { Notice4("write(%d, %p, "F_Zu"): %s", fd, buff, bytes, strerror(_errno)); break; } /*PASSTRHOUGH*/ default: Error4("write(%d, %p, "F_Zu"): %s", fd, buff, bytes, strerror(_errno)); } errno = _errno; return -1; } break; #if _WITH_SOCKET case XIOWRITE_SENDTO: /*union { char space[sizeof(struct sockaddr_un)]; struct sockaddr sa; } from;*/ /*socklen_t fromlen;*/ do { writt = Sendto(fd, buff, bytes, 0, &pipe->peersa.soa, pipe->salen); } while (writt < 0 && errno == EINTR); if (writt < 0) { char infobuff[256]; _errno = errno; Error6("sendto(%d, %p, "F_Zu", 0, %s, "F_socklen"): %s", fd, buff, bytes, sockaddr_info(&pipe->peersa.soa, pipe->salen, infobuff, sizeof(infobuff)), pipe->salen, strerror(_errno)); errno = _errno; return -1; } if ((size_t)writt < bytes) { char infobuff[256]; Warn7("sendto(%d, %p, "F_Zu", 0, %s, "F_socklen") only wrote "F_Zu" of "F_Zu" bytes", fd, buff, bytes, sockaddr_info(&pipe->peersa.soa, pipe->salen, infobuff, sizeof(infobuff)), pipe->salen, writt, bytes); } else { } { char infobuff[256]; union sockaddr_union us; socklen_t uslen = sizeof(us); Getsockname(fd, &us.soa, &uslen); Notice1("local address: %s", sockaddr_info(&us.soa, uslen, infobuff, sizeof(infobuff))); } break; #endif /* _WITH_SOCKET */ case XIOWRITE_PIPE: case XIOWRITE_2PIPE: writt = Write(pipe->wfd, buff, bytes); _errno = errno; if (writt < 0) { Error4("write(%d, %p, "F_Zu"): %s", fd, buff, bytes, strerror(_errno)); errno = _errno; return -1; } break; #if WITH_TEST case XIOWRITE_TEST: /* this function prints its own error messages */ return xiowrite_test(pipe, buff, bytes); case XIOWRITE_TESTREV: /* this function prints its own error messages */ return xiowrite_testrev(pipe, buff, bytes); #endif /* WITH_TEST */ #if WITH_OPENSSL case XIOWRITE_OPENSSL: /* this function prints its own error messages */ return xiowrite_openssl(pipe, buff, bytes); #endif /* WITH_OPENSSL */ default: Error1("xiowrite(): bad data type specification %d", pipe->dtype); errno = EINVAL; return -1; } return writt; } ```
```objective-c /* * PROGRAM: JRD Backup and Restore Program * MODULE: burp.h * DESCRIPTION: Burp file format * * The contents of this file are subject to the Interbase Public * * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express * * The Original Code was created by Inprise Corporation * and its predecessors. Portions created by Inprise Corporation are * * All Rights Reserved. * Contributor(s): ______________________________________. * * 2002.10.29 Sean Leyne - Removed obsolete "Netware" port * // 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define // */ #ifndef BURP_BURP_H #define BURP_BURP_H #include <optional> #include <stdio.h> #include "ibase.h" #include "firebird/Interface.h" #include "firebird/Message.h" #include "../common/dsc.h" #include "../burp/misc_proto.h" #include "../burp/mvol_proto.h" #include "../yvalve/gds_proto.h" #include "../common/ThreadData.h" #include "../common/UtilSvc.h" #include "../common/classes/array.h" #include "../common/classes/fb_pair.h" #include "../common/classes/MetaString.h" #include "../common/SimilarToRegex.h" #include "../common/status.h" #include "../common/sha.h" #include "../common/classes/ImplementHelper.h" #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif #if defined(HAVE_ZLIB_H) #define WIRE_COMPRESS_SUPPORT 1 #endif #ifdef WIRE_COMPRESS_SUPPORT #include <zlib.h> //#define COMPRESS_DEBUG 1 #endif // WIRE_COMPRESS_SUPPORT const int GDS_NAME_LEN = METADATA_IDENTIFIER_CHAR_LEN * 4 /* max bytes per char */ + 1; typedef TEXT GDS_NAME[GDS_NAME_LEN]; enum redirect_vals { NOREDIRECT = 0, REDIRECT = 1, NOOUTPUT = 2 }; static const int burp_msg_fac = 12; // Record types in backup file enum rec_type { rec_burp, // Restore program attributes rec_database, // Logical database parameters rec_global_field, // Global field description rec_relation, // Relation description rec_field, // Local field description rec_index, // Index description rec_data, // Data for relation rec_blob, // Blob rec_relation_data, // Standalone data header rec_relation_end, // End of data for relation rec_end, // End of file rec_view, // View attributes rec_security_class, // Security class acl rec_trigger, // Trigger definition rec_physical_db, // Physical database parameters rec_function, // Function description rec_function_arg, // Function arguement description rec_function_end, // End of function and its args rec_gen_id, // From blr_gen_id rec_system_type, // Type of field rec_filter, // Filter rec_trigger_message, // Trigger message texts rec_user_privilege, // User privilege rec_array, // Array blob (23) rec_field_dimensions, // Array field dimensions rec_files, // files for shadowing rec_generator, // another format for gen-ids rec_procedure, // Stored procedure rec_procedure_prm, // Stored procedure parameters rec_procedure_end, // End of procedure and its args rec_exception, // Exception rec_rel_constraint, // Relation constraints rec_ref_constraint, // Referential constraints rec_chk_constraint, // Check constraints rec_charset, // Character sets rec_collation, // Collations rec_sql_roles, // SQL roles rec_mapping, // Mapping of security names rec_package, // Package rec_db_creator, // Database creator rec_publication, // Publication rec_pub_table // Publication table }; /* The order of battle for major records is: [<rec_physical_database>] <rec_database> <global fields> <field dimensions> <relation> <function> <types> <filters> <relation data> <trigger-new> <trigger messages> <user privileges> <security> rec_end where each relation is: <rec_relation> <rel name> <att_end> <local fields> <view> <rec_relation_end> where local fields is: <rec_field> <att_field_... att_field_dimensions, att_field_range_low, att_field_range_high...> <att_end> where each relation data is: <rec_relation_data> <rel attributes> <gen id> <indices> <data> <trigger-old> <rec_relation_end> where data is: <rec_data> <rec length> [<xdr_length>] <data attr> [ <blob>, <array>...] and <blob> is <rec_blob> <blob_field_number> <max_sigment> <blob_type> <number_segments> <blob_data> and <array> is <rec_array> <blob_field_number> <att_array_dimensions> <att_array_range_low> <att_array_range_high> <blob_data> [<att_xdr_array>] where each function is: <rec_function> <function attributes> <att_end> [<function_arguments>] <rec_function_end> and <function_arguments> is <rec_function_arg> <function argument attributes> <att_end> where trigger-old is: <rec_trigger> <trig_type> <trig_blr> <trig_source> <att_end> and trigger-new is: <rec_trigger> <trig_type> <trig_blr> <trig_source> <trigger name> <relation name> <trig_seqence> <description> <system flag> <att_end> */ // Attributes within major record /* CAREFUL not to pull the lastest version into maint version without modifying the att_backup_format to be one version back Version 6: IB6, FB1, FB1.5. Supports SQL Time & Date columns. RDB$FIELD_PRECISION SQL Dialect from database header SQL_INT64 columns and generator values Version 7: FB2.0. RDB$DESCRIPTION in roles and generators. RDB$BASE_COLLATION_NAME and RDB$SPECIFIC_ATTRIBUTES in collations Version 8: FB2.1. RDB$RELATION_TYPE in relations RDB$PROCEDURE_TYPE and RDB$VALID_BLR in procedures RDB$VALID_BLR in triggers RDB$DEFAULT_VALUE, RDB$DEFAULT_SOURCE and RDB$COLLATION_ID in procedure_parameters Version 9: FB2.5. RDB$MESSAGE domain was enlarged from 78 to 1021 in FB2.0 and to 1023 in FB2.5, but gbak wasn't adjusted accordingly and thus it cannot store reliably text that's longer than 255 bytes. We anyway tried a recovery routine in v2.5 that may be backported. Version 10: FB3.0. See backup_capabilities in OdsDetection.h. Version 11: FB4.0. SQL SECURITY feature, tables RDB$PUBLICATIONS/RDB$PUBLICATION_TABLES. */ const int ATT_BACKUP_FORMAT = 11; // max array dimension const int MAX_DIMENSION = 16; const int SERIES = 1; const USHORT MAX_UPDATE_DBKEY_RECURSION_DEPTH = 16; enum att_type { att_end = 0, // end of major record // Backup program attributes att_backup_date = SERIES, // date of backup att_backup_format, // backup format version att_backup_os, // backup operating system att_backup_compress, att_backup_transportable, // XDR datatypes for user data att_backup_blksize, // backup block size att_backup_file, // database file name att_backup_volume, // backup volume number att_backup_keyname, // name of crypt key att_backup_zip, // zipped backup file att_backup_hash, // hash of crypt key att_backup_crypt, // name of crypt plugin // Database attributes att_file_name = SERIES, // database file name (physical) att_file_size, // size of original database (physical) att_jrd_version, // jrd version (physical) att_creation_date, // database creation date (physical) att_page_size, // page size of original database (physical) att_database_description, // description from RDB$DATABASE (logical) att_database_security_class, // database level security (logical) att_sweep_interval, // sweep interval att_no_reserve, // don't reserve space for versions att_database_description2, att_database_dfl_charset, // default character set from RDB$DATABASE att_forced_writes, // syncronous writes flag att_page_buffers, // page buffers for buffer cache att_SQL_dialect, // SQL dialect that it speaks att_db_read_only, // Is the database ReadOnly? att_database_linger, // Disconnection timeout att_database_sql_security_deprecated, // can be removed later att_replica_mode, // replica mode att_database_sql_security, // default sql security value att_default_pub_active, // default publication status att_default_pub_auto_enable, // Relation attributes att_relation_name = SERIES, att_relation_view_blr, att_relation_description, att_relation_record_length, // Record length in file att_relation_view_relation, att_relation_view_context, att_relation_system_flag, att_relation_security_class, att_relation_view_source, att_relation_dummy, // this space available att_relation_ext_description, att_relation_owner_name, att_relation_description2, att_relation_view_source2, att_relation_ext_description2, att_relation_flags, att_relation_ext_file_name, // name of file for external tables att_relation_type, att_relation_sql_security_deprecated, // can be removed later att_relation_sql_security, // Field attributes (used for both global and local fields) att_field_name = SERIES, // name of field att_field_source, // Global field name for local field att_base_field, // Source field for view att_view_context, // Context variable for view definition att_field_query_name, // Query attributes att_field_query_header, att_field_edit_string, att_field_type, // Physical attributes att_field_sub_type, att_field_length, // 10 att_field_scale, att_field_segment_length, att_field_position, // Field position in relation (not in file) att_field_offset, // Offset in data record (local fields only) att_field_default_value, // Fluff att_field_description, att_field_missing_value, att_field_computed_blr, att_field_computed_source, att_field_validation_blr, // 20 att_field_validation_source, att_field_number, // Field number to match up blobs att_field_computed_flag, // Field is computed, not real att_field_system_flag, // Interesting system flag att_field_security_class, att_field_external_length, att_field_external_type, att_field_external_scale, att_field_dimensions, // 29 att_field_ranges, // this space for rent att_field_complex_name, // relation field attribute att_field_range_low, // low range for array att_field_range_high, // high range for array att_field_update_flag, att_field_description2, att_field_validation_source2, att_field_computed_source2, att_field_null_flag, // If field can be null att_field_default_source, // default source for field (new fmt only) att_field_missing_source, // missing source for field (new fmt only) att_field_character_length, // length of field in characters att_field_character_set, // Charset id of field att_field_collation_id, // Collation id of field att_field_precision, // numeric field precision of RDB$FIELDS (44) // beware that several items are shared between rdb$fields and rdb$relation_fields, // hence the new atributes for rdb$fields may be already present // att_field_security_class, // already used for relation_fields att_field_owner_name, // FB3.0, ODS12_0, att_field_generator_name, att_field_identity_type, // Index attributes att_index_name = SERIES, att_segment_count, att_index_inactive, att_index_unique_flag, att_index_field_name, att_index_description, att_index_type, att_index_foreign_key, att_index_description2, att_index_expression_source, att_index_expression_blr, att_index_condition_source, att_index_condition_blr, // Data record att_data_length = SERIES, att_data_data, // Blob record att_blob_field_number = SERIES + 2, // Field number of blob field att_blob_type, // Segmented = 0, stream = 1 att_blob_number_segments, // Number of segments att_blob_max_segment, // Longest segment att_blob_data, // View attributes att_view_relation_name = SERIES + 7, att_view_context_id, att_view_context_name, att_view_context_type, att_view_context_package, // Security class attributes att_class_security_class = SERIES + 10, att_class_acl, att_class_description, // Array attributes att_array_dimensions = SERIES + 13, att_array_range_low, att_array_range_high, // XDR encoded data attributes att_xdr_length = SERIES + 16, att_xdr_array, att_class_description2, // Trigger attributes att_trig_type = SERIES, att_trig_blr, att_trig_source, att_trig_name, att_trig_relation_name, att_trig_sequence, att_trig_description, att_trig_system_flag, att_trig_inactive, att_trig_source2, att_trig_description2, att_trig_flags, att_trig_valid_blr, att_trig_debug_info, att_trig_engine_name, att_trig_entrypoint, att_trig_type2, att_trig_sql_security_deprecated, // can be removed later att_trig_sql_security, // Function attributes att_function_name = SERIES, att_function_description, att_function_class, att_function_module_name, att_function_entrypoint, att_function_return_arg, att_function_query_name, att_function_type, att_function_description2, att_function_engine_name, // FB3.0, ODS12_0 att_function_package_name, att_function_private_flag, att_function_blr, att_function_source, att_function_valid_blr, att_function_debug_info, att_function_security_class, att_function_owner_name, att_function_legacy_flag, att_function_deterministic_flag, att_function_sql_security_deprecated, // can be removed later att_function_sql_security, // Function argument attributes att_functionarg_name = SERIES, att_functionarg_position, att_functionarg_passing_mechanism, // by value, ref, descriptor att_functionarg_field_type, att_functionarg_field_scale, att_functionarg_field_length, att_functionarg_field_sub_type, att_functionarg_character_set, att_functionarg_field_precision, att_functionarg_package_name, // FB3.0, ODS12_0 att_functionarg_arg_name, att_functionarg_field_source, att_functionarg_default_value, att_functionarg_default_source, att_functionarg_collation_id, att_functionarg_null_flag, att_functionarg_type_mechanism, // type inheritance att_functionarg_field_name, att_functionarg_relation_name, att_functionarg_description, // TYPE relation attributes att_type_name = SERIES, att_type_type, att_type_field_name, att_type_description, att_type_system_flag, // Also see att_type_description2 below! // Filter attributes att_filter_name, att_filter_description, att_filter_module_name, att_filter_entrypoint, att_filter_input_sub_type, att_filter_output_sub_type, att_filter_description2, att_type_description2, // Trigger message attributes att_trigmsg_name = SERIES, att_trigmsg_number, att_trigmsg_text, // User privilege attributes att_priv_user = SERIES, att_priv_grantor, att_priv_privilege, att_priv_grant_option, att_priv_object_name, att_priv_field_name, att_priv_user_type, att_priv_obj_type, // files for shadowing purposes att_file_filename = SERIES, att_file_sequence, att_file_start, att_file_length, att_file_flags, att_shadow_number, // Attributes for gen_id att_gen_generator = SERIES, att_gen_value, att_gen_value_int64, att_gen_description, att_gen_security_class, // FB3.0, ODS12_0 att_gen_owner_name, att_gen_sysflag, att_gen_init_val, att_gen_id_increment, // Stored procedure attributes att_procedure_name = SERIES, att_procedure_inputs, att_procedure_outputs, att_procedure_description, att_procedure_description2, att_procedure_source, att_procedure_source2, att_procedure_blr, att_procedure_security_class, att_procedure_owner_name, att_procedure_type, att_procedure_valid_blr, att_procedure_debug_info, att_procedure_engine_name, att_procedure_entrypoint, att_procedure_package_name, att_procedure_private_flag, att_procedure_sql_security_deprecated, // can be removed later att_procedure_sql_security, // Stored procedure parameter attributes att_procedureprm_name = SERIES, att_procedureprm_number, att_procedureprm_type, att_procedureprm_field_source, att_procedureprm_description, att_procedureprm_description2, att_procedureprm_default_value, att_procedureprm_default_source, att_procedureprm_collation_id, att_procedureprm_null_flag, att_procedureprm_mechanism, att_procedureprm_field_name, att_procedureprm_relation_name, // Exception attributes att_exception_name = SERIES, att_exception_msg, att_exception_description, att_exception_description2, att_exception_msg2, att_exception_security_class, // FB3.0, ODS12_0 att_exception_owner_name, // Relation constraints attributes att_rel_constraint_name = SERIES, att_rel_constraint_type, att_rel_constraint_rel_name, att_rel_constraint_defer, att_rel_constraint_init, att_rel_constraint_index, // Referential constraints attributes att_ref_constraint_name = SERIES, att_ref_unique_const_name, att_ref_match_option, att_ref_update_rule, att_ref_delete_rule, // SQL roles attributes att_role_name = SERIES, att_role_owner_name, att_role_description, att_role_sys_priveleges, // Check constraints attributes att_chk_constraint_name = SERIES, att_chk_trigger_name, // Character Set attributes att_charset_name = SERIES, att_charset_form, att_charset_numchar, att_charset_coll, att_charset_id, att_charset_sysflag, att_charset_description, att_charset_funct, att_charset_bytes_char, att_charset_security_class, // FB3.0, ODS12_0 att_charset_owner_name, att_coll_name = SERIES, att_coll_id, att_coll_cs_id, att_coll_attr, att_coll_subtype, // Unused: 93-11-12 Daves att_coll_sysflag, att_coll_description, att_coll_funct, att_coll_base_collation_name, att_coll_specific_attr, att_coll_security_class, // FB3.0, ODS12_0 att_coll_owner_name, // Names mapping att_map_name = SERIES, att_map_using, att_map_plugin, att_auto_map_role, // Keep it at pos.4 - ODS11.2 compatibility issue att_map_db, att_map_from_type, att_map_from, att_map_to_type, att_map_to, att_map_description, // Package attributes att_package_name = SERIES, att_package_header_source, att_package_body_source, att_package_valid_body_flag, att_package_security_class, att_package_owner_name, att_package_description, att_package_sql_security_deprecated, // can be removed later att_package_sql_security, // Database creators att_dbc_user = SERIES, att_dbc_type, // Publications att_pub_name = SERIES, att_pub_owner_name, att_pub_active_flag, att_pub_auto_enable, // Publication tables att_ptab_pub_name = SERIES, att_ptab_table_name }; // Trigger types enum trig_t { trig_pre_store = 1, // default trig_pre_modify, // default trig_post_erase // default }; // these types to go away when recognized by gpre as // <relation>.<field>.<type> some time in the future const int TRIG_TYPE_PRE_STORE = 1; const int TRIG_TYPE_PRE_MODIFY = 3; const int TRIG_TYPE_POST_ERASE = 6; // default trigger name templates const int TRIGGER_SEQUENCE_DEFAULT = 0; // common structure definitions // field block, used to hold local field definitions struct burp_fld { burp_fld* fld_next; SSHORT fld_type; SSHORT fld_sub_type; FLD_LENGTH fld_length; FLD_LENGTH fld_total_len; // including additional 2 bytes for VARYING CHAR SSHORT fld_scale; SSHORT fld_position; SSHORT fld_parameter; SSHORT fld_missing_parameter; SSHORT fld_id; RCRD_OFFSET fld_offset; RCRD_OFFSET fld_missing_offset; RCRD_OFFSET fld_old_offset; SSHORT fld_number; SSHORT fld_system_flag; SSHORT fld_name_length; TEXT fld_name [GDS_NAME_LEN]; TEXT fld_source [GDS_NAME_LEN]; TEXT fld_base [GDS_NAME_LEN]; TEXT fld_query_name [GDS_NAME_LEN]; TEXT fld_security_class [GDS_NAME_LEN]; TEXT fld_generator[GDS_NAME_LEN]; SSHORT fld_identity_type; //SSHORT fld_edit_length; SSHORT fld_view_context; SSHORT fld_update_flag; SSHORT fld_flags; // Can't do here // BASED_ON RDB$RDB$RELATION_FIELDS.RDB$EDIT_STRING fld_edit_string; TEXT fld_edit_string[128]; // was [256] ISC_QUAD fld_description; ISC_QUAD fld_query_header; TEXT fld_complex_name [GDS_NAME_LEN]; SSHORT fld_dimensions; SLONG fld_ranges [2 * MAX_DIMENSION]; SSHORT fld_null_flag; ISC_QUAD fld_default_value; ISC_QUAD fld_default_source; SSHORT fld_character_set_id; SSHORT fld_collation_id; RCRD_OFFSET fld_sql; RCRD_OFFSET fld_null; }; enum fld_flags_vals { FLD_computed = 1, FLD_position_missing = 2, FLD_array = 4, FLD_update_missing = 8, FLD_null_flag = 16, FLD_charset_flag = 32, // column has global charset FLD_collate_flag = 64 // local column has specific collation }; // relation definition - holds useful relation type stuff struct burp_rel { burp_rel* rel_next; burp_fld* rel_fields; SSHORT rel_flags; SSHORT rel_id; SSHORT rel_name_length; GDS_NAME rel_name; GDS_NAME rel_owner; // relation owner, if not us ULONG rel_max_pp; // max pointer page sequence number }; enum burp_rel_flags_vals { REL_view = 1, REL_external = 2 }; // package definition struct burp_pkg { burp_pkg* pkg_next; GDS_NAME pkg_name; GDS_NAME pkg_owner; }; // procedure definition - holds useful procedure type stuff struct burp_prc { burp_prc* prc_next; //SSHORT prc_name_length; // Currently useless, but didn't want to delete it. GDS_NAME prc_package; GDS_NAME prc_name; GDS_NAME prc_owner; // relation owner, if not us }; struct gfld { TEXT gfld_name [GDS_NAME_LEN]; ISC_QUAD gfld_vb; ISC_QUAD gfld_vs; ISC_QUAD gfld_vs2; ISC_QUAD gfld_computed_blr; ISC_QUAD gfld_computed_source; ISC_QUAD gfld_computed_source2; gfld* gfld_next; USHORT gfld_flags; }; enum gfld_flags_vals { GFLD_validation_blr = 1, GFLD_validation_source = 2, GFLD_validation_source2 = 4, GFLD_computed_blr = 8, GFLD_computed_source = 16, GFLD_computed_source2 = 32 }; struct burp_meta_obj { burp_meta_obj* obj_next; USHORT obj_type; GDS_NAME obj_name; bool obj_class; }; // CVC: Could use MAXPATHLEN, but what about restoring in a different system? // I need to review if we tolerate different lengths for different OS's here. const unsigned int MAX_FILE_NAME_SIZE = 256; #include "../burp/std_desc.h" #ifdef WIN_NT inline static void close_platf(DESC file) { CloseHandle(file); } inline static void unlink_platf(const TEXT* file_name) { DeleteFile(file_name); } inline static void flush_platf(DESC file) { FlushFileBuffers(file); } #else // WIN_NT void close_platf(DESC file); inline static void unlink_platf(const TEXT* file_name) { unlink(file_name); } inline static void flush_platf(DESC file) { #if defined(HAVE_FDATASYNC) fdatasync(file); #elif defined(HAVE_FSYNC) fsync(file); #endif } #endif // WIN_NT // File block -- for multi-file databases enum SIZE_CODE { size_n = 0, // none size_k, // k = 1024 size_m, // m = k x 1024 size_g, // g = m x 1024 size_e // error }; class burp_fil { public: burp_fil* fil_next; Firebird::PathName fil_name; FB_UINT64 fil_length; DESC fil_fd; USHORT fil_seq; SIZE_CODE fil_size_code; burp_fil(Firebird::MemoryPool& p) : fil_next(0), fil_name(p), fil_length(0), fil_fd(INVALID_HANDLE_VALUE), fil_seq(0), fil_size_code(size_n) { } }; // Split & Join stuff enum act_t { ACT_unknown, // action is unknown ACT_backup, ACT_backup_split, ACT_backup_fini, ACT_restore, ACT_restore_join }; struct burp_act { USHORT act_total; burp_fil* act_file; act_t act_action; }; const size_t ACT_LEN = sizeof(burp_act); const ULONG MAX_LENGTH = ~FB_CONST64(0); // Keep in sync with burp_fil.fil_length // This structure has been cloned from spit.cpp struct hdr_split { TEXT hdr_split_tag[18]; TEXT hdr_split_timestamp[30]; TEXT hdr_split_text1[11]; TEXT hdr_split_sequence[4]; // File sequence number TEXT hdr_split_text2[4]; TEXT hdr_split_total[4]; // Total number of files TEXT hdr_split_text3[2]; TEXT hdr_split_name[27]; // File name }; // NOTE: size of the hdr_split_tag and HDR_SPLIT_TAG must be the same and equal // to 18. Otherwise we will not be able to join the gbk files v5.x const size_t HDR_SPLIT_SIZE = sizeof(hdr_split); static const char HDR_SPLIT_TAG5[] = "InterBase/gsplit, "; static const char HDR_SPLIT_TAG6[] = "InterBase/gbak, "; // CVC: Don't convert to const char* or you will have to fix the sizeof()'s!!! #define HDR_SPLIT_TAG HDR_SPLIT_TAG6 const FB_UINT64 MIN_SPLIT_SIZE = FB_CONST64(2048); // bytes // Global switches and data struct BurpCrypt; class GblPool { private: // Moved it to separate class in order to ensure 'first create/last destroy' order Firebird::MemoryPool* gbl_pool; public: Firebird::MemoryPool& getPool() { fb_assert(gbl_pool); return *gbl_pool; } explicit GblPool(bool ownPool) : gbl_pool(ownPool ? MemoryPool::createPool(getDefaultMemoryPool()) : getDefaultMemoryPool()) { } ~GblPool() { if (gbl_pool != getDefaultMemoryPool()) Firebird::MemoryPool::deletePool(gbl_pool); } }; class BurpGlobals : public Firebird::ThreadData, public GblPool { public: explicit BurpGlobals(Firebird::UtilSvc* us) : ThreadData(ThreadData::tddGBL), GblPool(us->isService()), gbl_sw_par_workers(1), defaultCollations(getPool()), systemFields(getPool()), gbl_dpb_data(*getDefaultMemoryPool()), uSvc(us), master(true), taskItem(NULL), verboseInterval(10000), flag_on_line(true), firstMap(true), firstDbc(true), stdIoMode(false) { // this is VERY dirty hack to keep current (pre-FB2) behaviour memset (&gbl_database_file_name, 0, &veryEnd - reinterpret_cast<char*>(&gbl_database_file_name)); // normal code follows gbl_stat_flags = 0; gbl_stat_header = false; gbl_stat_done = false; memset(gbl_stats, 0, sizeof(gbl_stats)); gbl_stats[TIME_TOTAL] = gbl_stats[TIME_DELTA] = fb_utils::query_performance_counter(); exit_code = FINI_ERROR; // prevent FINI_OK in case of unknown error thrown // would be set to FINI_OK (==0) in exit_local } const TEXT* gbl_database_file_name; TEXT gbl_backup_start_time[30]; bool gbl_sw_verbose; bool gbl_sw_ignore_limbo; bool gbl_sw_meta; bool gbl_sw_novalidity; USHORT gbl_sw_page_size; bool gbl_sw_compress; bool gbl_sw_version; bool gbl_sw_transportable; bool gbl_sw_incremental; bool gbl_sw_deactivate_indexes; bool gbl_sw_kill; USHORT gbl_sw_blk_factor; USHORT gbl_dialect; const SCHAR* gbl_sw_fix_fss_data; USHORT gbl_sw_fix_fss_data_id; const SCHAR* gbl_sw_fix_fss_metadata; USHORT gbl_sw_fix_fss_metadata_id; bool gbl_sw_no_reserve; bool gbl_sw_old_descriptions; bool gbl_sw_convert_ext_tables; bool gbl_sw_mode; bool gbl_sw_mode_val; bool gbl_sw_overwrite; bool gbl_sw_direct_io; bool gbl_sw_zip; const SCHAR* gbl_sw_keyholder; const SCHAR* gbl_sw_crypt; const SCHAR* gbl_sw_keyname; SCHAR gbl_hdr_keybuffer[MAX_SQL_IDENTIFIER_SIZE]; SCHAR gbl_hdr_cryptbuffer[MAX_SQL_IDENTIFIER_SIZE]; const SCHAR* gbl_sw_sql_role; const SCHAR* gbl_sw_user; const SCHAR* gbl_sw_password; SLONG gbl_sw_skip_count; SLONG gbl_sw_page_buffers; burp_fil* gbl_sw_files; burp_fil* gbl_sw_backup_files; int gbl_sw_par_workers; gfld* gbl_global_fields; unsigned gbl_network_protocol; burp_act* action; BurpCrypt* gbl_crypt; ULONG io_buffer_size; redirect_vals sw_redirect; bool burp_throw; std::optional<ReplicaMode> gbl_sw_replica; UCHAR* blk_io_ptr; int blk_io_cnt; void put(const UCHAR c) { if (gbl_io_cnt <= 0) MVOL_write(this); --gbl_io_cnt; *gbl_io_ptr++ = c; } UCHAR get() { if (gbl_io_cnt <= 0) MVOL_read(this); --gbl_io_cnt; return *gbl_io_ptr++; } #ifdef WIRE_COMPRESS_SUPPORT z_stream gbl_stream; #endif UCHAR* gbl_io_ptr; int gbl_io_cnt; UCHAR* gbl_compress_buffer; UCHAR* gbl_crypt_buffer; ULONG gbl_crypt_left; UCHAR* gbl_decompress; bool gbl_default_pub_active = false; bool gbl_default_pub_auto_enable = false; burp_rel* relations; burp_pkg* packages; burp_prc* procedures; burp_meta_obj* miss_privs; // ODS of the target server (not necessarily the same version as gbak) int runtimeODS; // Format of the backup being read on restore; gbak always creates it using the latest version // but it can read backups created by previous versions. USHORT RESTORE_format; ULONG mvol_io_buffer_size; ULONG mvol_actual_buffer_size; FB_UINT64 mvol_cumul_count; UCHAR* mvol_io_ptr; int mvol_io_cnt; UCHAR* mvol_io_memory; // as allocated, not aligned pointer UCHAR* mvol_io_buffer; UCHAR* mvol_io_volume; UCHAR* mvol_io_header; UCHAR* mvol_io_data; TEXT mvol_db_name_buffer [MAX_FILE_NAME_SIZE]; SCHAR mvol_old_file [MAX_FILE_NAME_SIZE]; int mvol_volume_count; bool mvol_empty_file; TEXT mvol_keyname_buffer[MAX_FILE_NAME_SIZE]; const TEXT* mvol_keyname; TEXT mvol_crypt_buffer[MAX_FILE_NAME_SIZE]; const TEXT* mvol_crypt; TEXT gbl_key_hash[(Firebird::Sha1::HASH_SIZE + 1) * 4 / 3 + 1]; // take into an account base64 Firebird::IAttachment* db_handle; Firebird::ITransaction* tr_handle; Firebird::ITransaction* global_trans; TraNumber tr_snapshot; DESC file_desc; int exit_code; UCHAR* head_of_mem_list; FILE* output_file; // Link list of global fields that were converted from V3 sub_type // to V4 char_set_id/collate_id. Needed for local fields conversion. // burp_fld* v3_cvt_fld_list; // The handles_get... are for restore. Firebird::IRequest* handles_get_character_sets_req_handle1; Firebird::IRequest* handles_get_chk_constraint_req_handle1; Firebird::IRequest* handles_get_collation_req_handle1; Firebird::IRequest* handles_get_db_creators_req_handle1; Firebird::IRequest* handles_get_exception_req_handle1; Firebird::IRequest* handles_get_field_dimensions_req_handle1; Firebird::IRequest* handles_get_field_req_handle1; Firebird::IRequest* handles_get_fields_req_handle1; Firebird::IRequest* handles_get_fields_req_handle2; Firebird::IRequest* handles_get_fields_req_handle3; Firebird::IRequest* handles_get_fields_req_handle4; Firebird::IRequest* handles_get_fields_req_handle5; Firebird::IRequest* handles_get_fields_req_handle6; Firebird::IRequest* handles_get_files_req_handle1; Firebird::IRequest* handles_get_filter_req_handle1; Firebird::IRequest* handles_get_function_arg_req_handle1; Firebird::IRequest* handles_get_function_req_handle1; Firebird::IRequest* handles_get_global_field_req_handle1; Firebird::IRequest* handles_get_index_req_handle1; Firebird::IRequest* handles_get_index_req_handle2; Firebird::IRequest* handles_get_index_req_handle3; Firebird::IRequest* handles_get_index_req_handle4; Firebird::IRequest* handles_get_mapping_req_handle1; Firebird::IRequest* handles_get_package_req_handle1; Firebird::IRequest* handles_get_procedure_prm_req_handle1; Firebird::IRequest* handles_get_procedure_req_handle1; Firebird::IRequest* handles_get_pub_req_handle1; Firebird::IRequest* handles_get_pub_tab_req_handle1; Firebird::IRequest* handles_get_ranges_req_handle1; Firebird::IRequest* handles_get_ref_constraint_req_handle1; Firebird::IRequest* handles_get_rel_constraint_req_handle1; Firebird::IRequest* handles_get_relation_req_handle1; Firebird::IRequest* handles_get_security_class_req_handle1; Firebird::IRequest* handles_get_sql_roles_req_handle1; Firebird::IRequest* handles_get_trigger_message_req_handle1; Firebird::IRequest* handles_get_trigger_message_req_handle2; Firebird::IRequest* handles_get_trigger_old_req_handle1; Firebird::IRequest* handles_get_trigger_req_handle1; Firebird::IRequest* handles_get_trigger_req_handle2; Firebird::IRequest* handles_get_type_req_handle1; Firebird::IRequest* handles_get_user_privilege_req_handle1; Firebird::IRequest* handles_get_view_req_handle1; // The handles_put.. are for backup. Firebird::IRequest* handles_put_index_req_handle1; Firebird::IRequest* handles_put_index_req_handle2; Firebird::IRequest* handles_put_index_req_handle3; Firebird::IRequest* handles_put_index_req_handle4; Firebird::IRequest* handles_put_index_req_handle5; Firebird::IRequest* handles_put_index_req_handle6; Firebird::IRequest* handles_put_index_req_handle7; Firebird::IRequest* handles_put_relation_req_handle1; Firebird::IRequest* handles_put_relation_req_handle2; Firebird::IRequest* handles_put_relation_req_handle3; Firebird::IRequest* handles_store_blr_gen_id_req_handle1; Firebird::IRequest* handles_write_function_args_req_handle1; Firebird::IRequest* handles_write_function_args_req_handle2; Firebird::IRequest* handles_write_procedure_prms_req_handle1; Firebird::IRequest* handles_fix_security_class_name_req_handle1; bool hdr_forced_writes; TEXT database_security_class[GDS_NAME_LEN]; // To save database security class for deferred update unsigned batchInlineBlobLimit; static inline BurpGlobals* getSpecific() { return (BurpGlobals*) ThreadData::getSpecific(); } static inline void putSpecific(BurpGlobals* tdgbl) { tdgbl->ThreadData::putSpecific(); } static inline void restoreSpecific() { ThreadData::restoreSpecific(); } void setupSkipData(const Firebird::string& regexp); void setupIncludeData(const Firebird::string& regexp); bool skipRelation(const char* name); char veryEnd; //starting after this members must be initialized in constructor explicitly Firebird::FbLocalStatus status_vector; Firebird::ThrowLocalStatus throwStatus; Firebird::Array<Firebird::Pair<Firebird::NonPooled<Firebird::MetaString, Firebird::MetaString> > > defaultCollations; Firebird::SortedArray<Firebird::MetaString> systemFields; Firebird::Array<UCHAR> gbl_dpb_data; Firebird::UtilSvc* uSvc; bool master; // set for master thread only void* taskItem; // current task item, if any ULONG verboseInterval; // How many records should be backed up or restored before we show this message bool flag_on_line; // indicates whether we will bring the database on-line bool firstMap; // this is the first time we entered get_mapping() bool firstDbc; // this is the first time we entered get_db_creators() bool stdIoMode; // stdin or stdout is used as backup file Firebird::AutoPtr<Firebird::SimilarToRegex> skipDataMatcher; Firebird::AutoPtr<Firebird::SimilarToRegex> includeDataMatcher; public: Firebird::string toSystem(const Firebird::PathName& from); enum StatCounter { TIME_TOTAL = 0, TIME_DELTA, READS, WRITES, LAST_COUNTER}; void read_stats(SINT64* stats); void print_stats(USHORT number); void print_stats_header(); int gbl_stat_flags; // bitmask, bit numbers see at enum StatCounter bool gbl_stat_header; // true, if stats header was printed bool gbl_stat_done; // true, if main process is done, stop to collect db-level stats SINT64 gbl_stats[LAST_COUNTER]; }; // CVC: This aux routine declared here to not force inclusion of burp.h with burp_proto.h // in other modules. void BURP_exit_local(int code, BurpGlobals* tdgbl); // database is not on-line due to failure to activate one or more indices const int FINI_DB_NOT_ONLINE = 2; /* Burp will always write a backup in multiples of the following number * of bytes. The initial value is the smallest which ensures that writes * to fixed-block SCSI tapes such as QIC-150 will work. The value should * always be a multiple of 512 for that reason. * If you change to a value which is NOT a power of 2, then change the * BURP_UP_TO_BLOCK macro to use division and multiplication instead of * bit masking. */ const int BURP_BLOCK = 512; inline static ULONG BURP_UP_TO_BLOCK(const ULONG size) { return (((size) + BURP_BLOCK - 1) & ~(BURP_BLOCK - 1)); } // Move the read and write mode declarations in here from burp.cpp // so that other files can see them for multivolume opens #ifdef WIN_NT static const ULONG MODE_READ = GENERIC_READ; static const ULONG MODE_WRITE = GENERIC_WRITE; #else static const ULONG MODE_READ = O_RDONLY; static const ULONG MODE_WRITE = O_WRONLY | O_CREAT; #endif // Burp Messages enum burp_messages_vals { msgVerbose_write_charsets = 211, msgVerbose_write_collations = 212, msgErr_restore_charset = 213, msgVerbose_restore_charset = 214, msgErr_restore_collation = 215, msgVerbose_restore_collation = 216 }; // BLOB buffer typedef Firebird::HalfStaticArray<UCHAR, 1024> BlobBuffer; class BurpSql : public Firebird::AutoStorage { public: BurpSql(BurpGlobals* g, const char* sql) : Firebird::AutoStorage(), tdgbl(g), stmt(nullptr) { stmt = tdgbl->db_handle->prepare(&tdgbl->throwStatus, tdgbl->tr_handle, 0, sql, 3, 0); } template <typename M> void singleSelect(Firebird::ITransaction* trans, M* msg) { stmt->execute(&tdgbl->throwStatus, tdgbl->tr_handle, nullptr, nullptr, msg->getMetadata(), msg->getData()); } template <typename M> void execute(Firebird::ITransaction* trans, M* msg) { stmt->execute(&tdgbl->throwStatus, tdgbl->tr_handle, msg->getMetadata(), msg->getData(), nullptr, nullptr); } void execute(Firebird::ITransaction* trans) { stmt->execute(&tdgbl->throwStatus, tdgbl->tr_handle, nullptr, nullptr, nullptr, nullptr); } private: BurpGlobals* tdgbl; Firebird::IStatement* stmt; }; class OutputVersion : public Firebird::IVersionCallbackImpl<OutputVersion, Firebird::CheckStatusWrapper> { public: OutputVersion(const char* printFormat) : format(printFormat) { } void callback(Firebird::CheckStatusWrapper* status, const char* text); private: const char* format; }; static inline UCHAR* BURP_alloc(ULONG size) { BurpGlobals* tdgbl = BurpGlobals::getSpecific(); return (UCHAR*)(tdgbl->getPool().allocate(size ALLOC_ARGS)); } static inline UCHAR* BURP_alloc_zero(ULONG size) { BurpGlobals* tdgbl = BurpGlobals::getSpecific(); return (UCHAR*)(tdgbl->getPool().calloc(size ALLOC_ARGS)); } static inline void BURP_free(void* block) { MemoryPool::globalFree(block); } #endif // BURP_BURP_H ```
"Ma Boy" is the first single by Sistar19, a sub-unit of South Korean girl group Sistar. It was released online as a digital single on May 3, 2011 through Starship Entertainment. The song was a commercial success, peaking at number 2 on the Gaon Digital Chart. The song has sold over 2,652,474 downloads as of 2011. Background and release On April 28, 2011, Starship Entertainment announced the creation of a Sistar sub-unit called Sistar19, which includes main vocalist Hyolyn and rapper Bora. The same day, Sistar19 released the music video teaser for their first single, "Ma Boy". The single was released on digital music sites on May 3, 2011. Written by producer Brave Brothers, "Ma Boy" is a medium tempo neo soul song with lyrics that express the emotions of a girl in love. A special version of "Ma Boy", featuring Sistar members Soyou and Dasom, was included on Sistar's first full-length album, So Cool, released on August 9, 2011. The original version of the song was included in Sistar19's first extended play, Gone Not Around Any Longer, released on January 31, 2013. Music video The music video for "Ma Boy" features Hyloyn and Bora dressed as "racing models", dancing next to sports cars. The video was directed by Joo Hee-sun. Sistar19 also released a dance practice video for "Ma Boy" on May 13, 2011. The video showcases the song's popular "chair dance" and "glamor dance" choreography. Promotion Sistar19 had their debut performance on M Countdown on May 5, 2011. The group also performed "Ma Boy" on various music shows such as Music Bank, Show! Music Core and Inkigayo in May and April. Commercial performance "Ma Boy" entered at number 5 on the Gaon Digital Chart on the chart issue dated May 1–7, 2011, with 291,397 downloads sold and 1,249,909 streams. In its second week, the song climbed to number 3 and peaked at number 2 in its third week. The song entered at number 2 on the Gaon Digital Chart for the month of May 2011, with 1,372,864 downloads sold and 12,625,061 streams. It also charted at number 21 for the month of June and at number 65 for the month of July. The song placed at number 14 on the Gaon Digital Chart for the year 2011, with 2,652,474 downloads sold and 21,560,202 streams accumulated. Track listing Charts Weekly charts Monthly charts Year-end charts Credits and personnel Hyorin - vocals Bora - vocals, rap Brave Brothers - producing, songwriting, arranger, music References External links 2011 songs 2011 debut singles Sistar songs Korean-language songs Starship Entertainment singles Songs written by Brave Brothers
John William Bates (May 28, 1868 – March 24, 1919) was a Major League Baseball pitcher. He played in one game, on August 25, 1889, for the Kansas City Cowboys of the American Association. He started the game and pitched an eight inning complete game, allowing 12 earned runs and recording the loss. After his brief time with the Cowboys, he played for another two years with the Austin Senators in the Texas League. Sources Major League Baseball pitchers Kansas City Cowboys players Baseball players from Ohio 1868 births 1919 deaths 19th-century baseball players Galveston Giants players Austin Senators players
```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.dmn.spring.configurator; import org.flowable.common.engine.impl.AbstractEngineConfiguration; import org.flowable.common.spring.SpringEngineConfiguration; import org.flowable.dmn.engine.configurator.DmnEngineConfigurator; import org.flowable.dmn.spring.SpringDmnEngineConfiguration; /** * @author Tijs Rademakers * @author Joram Barrez */ public class SpringDmnEngineConfigurator extends DmnEngineConfigurator { @Override public void configure(AbstractEngineConfiguration engineConfiguration) { if (dmnEngineConfiguration == null) { dmnEngineConfiguration = new SpringDmnEngineConfiguration(); } else if (!(dmnEngineConfiguration instanceof SpringDmnEngineConfiguration)) { throw new IllegalArgumentException("Expected dmnEngine configuration to be of type " + SpringDmnEngineConfiguration.class + " but was " + dmnEngineConfiguration.getClass()); } initialiseCommonProperties(engineConfiguration, dmnEngineConfiguration); SpringEngineConfiguration springEngineConfiguration = (SpringEngineConfiguration) engineConfiguration; ((SpringDmnEngineConfiguration) dmnEngineConfiguration).setTransactionManager(springEngineConfiguration.getTransactionManager()); if (dmnEngineConfiguration.getBeans() == null) { dmnEngineConfiguration.setBeans(springEngineConfiguration.getBeans()); } initEngine(); initServiceConfigurations(engineConfiguration, dmnEngineConfiguration); } } ```
Barbara Carrasco (born 1955) is a Chicana artist, activist, painter and muralist. She lives and works in Los Angeles. Her work critiques dominant cultural stereotypes involving socioeconomics, race, gender and sexuality, and she is considered to be a radical feminist. Her art has been exhibited nationally and internationally. Her work was exhibited in the 1990-1993 traveling exhibition Chicano Art: Resistance and Affirmation. Biography Carrasco was born in El Paso, Texas to Mexican-American parents. She was the oldest girl and second oldest child of four siblings. When she was around a year old, her family moved to Los Angeles. The family lived in government Veterans' housing in Culver City, since her father was a Korean War Navy veteran. She recalls that they were poor and lived off food stamps. Carrasco's childhood growing up in the predominantly Mexican-American and African-American community of Mar Vista Gardens was sometimes painful. She was teased for having lighter skin than her peers and stood out for her green eyes; being called "white girl," "green eyes" and "güera" (Spanish slang for "white girl" or "light hair"). Her experiences with being simultaneously perceived as not truly Mexican-American and being told to "take advantage of being light skinned" makes up of part of her artistic subject matter later on in life. Carrasco was encouraged by her father to broaden her horizons, go to college and perform her artwork. Her father, who worked as a bus driver for Santa Monica Bus Lines, told her "anybody could be a bus driver but not everybody could be an artist." Carrasco's father died of a heart attack when she was twelve and it was difficult for her because they were close. Carrasco's mother, who also volunteered as a Girl Scout leader, was also artistically inclined. Her mother admired Japanese art and decorated the house with it. Carrasco felt that growing up with Japanese images influenced her sense of line. She also felt that her mother was a personal role model because she was a strong woman. However, her mother was also very protective of her girls, and she expected Carrasco to act as a role model of traditional femininity for her sisters. Carrasco attended Catholic school from first to eighth grade. Carrasco felt that racism was prevalent there and white students were "treated better." She often drew on the tables at school instead of paying attention to her lessons. Because she was so often in her own "little world of drawing," she repeated first grade. Some of the nuns, however, noticed and encouraged her talent, including Sister Mary Ann, who continued to stay in contact with Carrasco after she left school. In seventh grade, when she made her confirmation as a Catholic, Carrasco chose Saint Joan of Arc as her confirmation name because she was inspired by her leadership. During the summers, she and her sisters were part of a program that helped young people from the projects attend classes at the University of California, Los Angeles (UCLA). Carrasco credits the program with also expanding her horizons and encouraging her to apply for college. Carrasco attended Venice High School. Carrasco received her BFA in art from UCLA in 1978. She was the first person in her family to graduate from college. At UCLA, she was the first woman editor of the campus Chicano newspaper, the La Gente. Carrasco was one of the first artists to join Cesar Chavez's United Farm Workers (UFW) movement. She heard him speak at UCLA when she was nineteen and she says that she "volunteered right after the speech." She did volunteer artwork for Chavez for fifteen years because she believed both in his movement and in Chavez himself. Occasionally, Chavez was able to reimburse her for art supplies, but most of the work Carrasco did was unpaid. Carrasco helped create "monumental banners" for the United Farm Workers movement and protests. Right after graduating from UCLA, Carrasco helped work on art for the Zoot Suit play, which later opened on Broadway. She also became involved with the Centro de Arte Público after UCLA. She was one of several women invited to join, reflecting a growing concern with gender equality in the art community. In the mid-1980s, Carrasco was commissioned to create a mural, The History of Los Angeles: A Mexican Perspective which led to a great deal of controversy. The publicity generated from the controversy, however, helped Carrasco in some ways: she was chosen to go with a group of artists to the Soviet Union in 1985 and paint a mural in the Children's Museum in Yerevan, Armenia. The next year she went on a second trip to the Soviet Union and also took Dolores Huerta's thirteen-year-old son, Ricky, with her. She also went to Nicaragua in 1986 with a UCLA program called the Chicano Delegation to Nicaragua. It was during the Nicaraguan Revolution and the experience affected Carrasco deeply, making her think about death in a different context. Carrasco received her MFA in art from the California Institute of the Arts (CalArts) in 1991. After graduating from CalArts, she didn't feel inspired and stopped producing art for about two years. In addition, the death of Cesar Chavez in 1993 created a sense of deep depression in Carrasco: she felt that there were not enough Chicano leaders and that few people could take his place. In the mid-1990s, Carrasco married artist, Harry Gamboa Jr. Gamboa, and Carrasco had been good friends first for some time, and Carrasco liked him especially because he was "supportive of women artists." In 1994, she had a daughter, Barbie. In 1995, she was diagnosed with lymphoma and in 1996 had a bone marrow transplant to treat the disease. After the transplant, Carrasco felt that her hand was less steady for detailed work. She is a founding member of the Dolores Huerta Foundation and serves as a board member. Carrasco was a UC Regents Professor in 2002-2003. She was recognized as a "community champion" in Los Angeles in 2014. Art Carrasco is an artist, a painter and a muralist who is very involved in the community. Her artwork reveals the real history against indigenous people in the US and how they were treated. She has been a part of The Getty Museum, Self-Help Graphics, and the Center for Political Graphics. Carrasco's art is often very focused on social commentary. She uses her art to advocate change in the treatment of women. She has been publicly acknowledged for her role in making the Chicano art movement aware of sexist attitudes. She is a key figure in this art movement as she is an activist working closely with Cesar Chavez, trying to help bring justice into communities that had been constantly ignored due to their ethnicity. Her art also addresses problems that she sees with religious dogma as it relates to women. Carrasco uses her art to bring attention to issues that would otherwise remain invisible. She also helps celebrate influential women, like in her "iconic representation" of civil rights activist Dolores Huerta. By protesting within her artwork, Carrasco created a social change for the UFW Union and the Dolores Huerta Foundation. One of her famous works, Dolores Huerta, was to honor her as the co-founder of the UFW Union which she worked alongside for 15 years. In 1970, Carrasco at the time was a student at UCLA and created her artwork, Pregnant woman in a ball of yarn. She was inspired to create this piece after hearing her brother telling his pregnant wife she was unable to go to school because she was pregnant. Chavez would see the process of her artwork come to life. He had attended one of Carrasco’s press conferences that viewed her artwork, Pesticides, in New York in 1989 which her work was shown in Times Square. Carrasco’s work has been shown in many exhibits such as in the US, Europe, and in Latin America. Some of her original mural sketches and drawings are now housed in the Permanent Collection at the Library of Congress, Washington, DC, and have been archived at Stanford University Special Collections Mexican American Manuscript Collections. Carrasco herself has stated that because she was so political, her art hasn't been taken as seriously. Carrasco credits older Chicana artists, like Santa Barraza, with creating a "positive impact" on her work. She also enjoyed working with other Chicana artists in her generation, like her friend Yreina Cervantez. Carrasco's work often uses "fine lines, sharp detail, and a hard-edged graphic quality." Carrasco was just 19 years old when she met Cesar Chavez, leader of the United Farm Workers (UFW) and decided to work with him. Carrasco was active with the United Farm Workers (UFW), creating banners for them between the years of 1976 and 1991. Carrasco worked closely with Chavez to create flyers and banners for conventions, rallies, and supermarket demonstrations for the United Farm Workers. One of the largest banners she created for the UFW was about 30 feet by 30 feet on vinyl with Nazdar ink. Carrasco had about two weeks to complete the work and recruited a few people to help her finish it on time. The last banner she did for UFW was Cesar Chavez's funeral banner. One of Carrasco's largest works, L.A. History: A Mexican Perspective, is a mural measuring 16 by 80 feet commissioned by the Community Redevelopment Agency of Los Angeles in 1981. To create the mural, she had seventeen young assistants, many of them gang members. The city approved the sketches of the mural but when Carrasco began the process of painting it, the agency told her to remove fourteen images from the work that depicted incidents of discrimination directed at communities of color. Carrasco refused to do so, resulting in the cancellation of the project. The mural was then put in a storage room for nearly a decade. There were fifty-one separate events depicted in the mural. Events depicted included the Japanese American internment, the whitewashing of Siqueiros's mural; América Tropical, and the Zoot Suit Riots. Carrasco worked with three different historians to ensure that her information was accurate and conducted oral interviews with "city elders." In addition to the attempted censorship, the CRA even tried to destroy the mural itself. Carrasco refused to censor her mural because she felt "that it would be compromising the integrity of--not only my integrity as an artist but the mural, the history of L.A." Later, there was a court battle over the copyright of the mural, which Carrasco won. After a decade, the Carrasco mural stored away in a storage room was finally able to be presented to the public once again. The Natural History Museum of Los Angeles County announced they were able to obtain L.A. History: A Mexican Perspective, for exhibit from March 2018 to August 2019. Now, this mural has a place to stay in the museum so that visitors can experience Los Angeles history through the Carrasco mural. In response to the censorship of the L.A. History: A Mexican Perspective, Carrasco created the serigraph, Self-Portrait (1985) at Self-Help Graphics. Self-Portrait depicts an artist dressed as a runner crossing a finish line. The runner, carrying a paintbrush looks over her shoulder in horror as a paint roller whitewashes the mural grid behind her. The whitewashing of Siqueiros's controversial mural is referenced again on the brush itself. In 1989, Carrasco created a computer animation, PESTICIDES!, which was shown in Times Square in New York. It was considered "controversial." Names Can Hurt (1991), was the first piece that Carrasco did which contained text. It was acrylic on canvas and contains many of the names she was called as a child growing up in Culver City. One of Carrasco's most iconic images is her print, Dolores (1999). The image depicts a bust of Dolores Huerta on a flat background with just her name. The image has a pop art sensibility to it. Carrasco states that she isolated her portrait in such a way to show that Huerta was "strong enough on her own." References External links Barbara Carrasco at Laguna Art Museum American artists of Mexican descent Chicano Mexican-American culture in Los Angeles 1955 births Living people UCLA School of the Arts and Architecture alumni American muralists American printmakers Chicana feminists American women muralists American women printmakers 21st-century American women artists
Philosopher's Walk is a scenic footpath located in the St George campus of the University of Toronto in Toronto, Ontario. It runs in the north–south direction along the ravine landscape created by Taddle Creek, once a natural waterway that was buried during the Industrial Age and is now flowing underground. The path is bounded by several Toronto landmarks, including the Royal Ontario Museum, the Royal Conservatory of Music, Trinity College, the University of Toronto Faculty of Music, and the University of Toronto Faculty of Law. Philosopher's Walk links the heart of the university campus to the northern edge bounding The Annex, an academic neighborhood where many of the university's faculty and student body reside. Philosopher Ted Honderich described the walk from his experience as a student [The University of Toronto] was in the middle of the city and had good Victorian buildings, and also such necessary pieces of tradition as a Philosopher's Walk, which led out towards an old village enclosed by the growth of Toronto. The village had not yet been smartened up, and only those academics so supremely rational as to want to walk to work lived in it. The Alexandra Gates at the northern entrance to the path were constructed at the corner of Bloor Street and Avenue Road in 1901, at the instigation of the Imperial Order of the Daughters of the Empire, and to commemorate the visit of Prince George, Duke of Cornwall (later King George V), and Mary, Duchess of Cornwall (later Queen Mary), that year. The letters on each post — E and A — stand for Edward and Alexandra, the reigning King and Queen at the time. When Avenue Road was widened in 1960, the gates were moved to the head of Philosopher's Walk. In recognition of the royal visit, a plaque at the site reads "To commemorate the visit of T.R.H The Duke and Duchess of Cornwall and York Oct. 10th 1901". The small amphitheater on the walk was built around 2010. References External links Green Tourism Association: The Annex and the University of Toronto Taddle Creek Parks in Toronto University of Toronto Hiking trails in Ontario
Tonbridge and Malling Borough Council is the local authority for the borough of Tonbridge and Malling in Kent, United Kingdom. The council is elected every four years. Since the last boundary changes in 2023, 44 councillors have been elected from 19 wards. Council elections 1973 Tonbridge and Malling District Council election 1976 Tonbridge and Malling District Council election 1979 Tonbridge and Malling District Council election (New ward boundaries) 1980 Tonbridge and Malling District Council election 1982 Tonbridge and Malling District Council election 1983 Tonbridge and Malling District Council election 1984 Tonbridge and Malling Borough Council election 1986 Tonbridge and Malling Borough Council election 1987 Tonbridge and Malling Borough Council election 1988 Tonbridge and Malling Borough Council election 1991 Tonbridge and Malling Borough Council election (New ward boundaries) 1995 Tonbridge and Malling Borough Council election 1999 Tonbridge and Malling Borough Council election 2003 Tonbridge and Malling Borough Council election (New ward boundaries reduced the number of seats by 2) 2007 Tonbridge and Malling Borough Council election 2011 Tonbridge and Malling Borough Council election 2015 Tonbridge and Malling Borough Council election (New ward boundaries) 2019 Tonbridge and Malling Borough Council election 2023 Tonbridge and Malling Borough Council election The elections scheduled to take place in 1990 were cancelled due to the council's decision to move to all-out elections in 1991 on new boundaries. By-election results 1995–99 A by-election was held in East Peckham Ward following the resignation of E. Pries. A by-election was held in Cage Green Ward following the resignation of G. Evans. 1999–03 2003–07 A by-election was held in Burham, Wouldham & Eccles Ward following the resignation of John Jennings on 23 August 2004. A by-election was held in Ightham Ward following the death of Geraldine Bowden. 2007–11 There were no by-elections between May 2007 and May 2011. 2011–15 A by-election was held in West Malling and Leybourne Ward following the death of Mark Worrall on 26 April 2012. A by-election was held in Borough Green and Long Mill Ward following the resignation of David Evans in December 2013. 2015-2019 2019-2023 References External links Tonbridge and Malling Borough Council Tonbridge and Malling Tonbridge and Malling
```smalltalk " I am a command to show all class references To show references I ask the browser to spawn new query browser. Internal Representation and Key Implementation Points. Instance Variables browser: <ClyBrowser> " Class { #name : 'ClyShowClassRefCommand', #superclass : 'SycClassCommand', #instVars : [ 'browser' ], #category : 'Calypso-SystemTools-QueryBrowser-Commands-Queries', #package : 'Calypso-SystemTools-QueryBrowser', #tag : 'Commands-Queries' } { #category : 'instance creation' } ClyShowClassRefCommand class >> forClasses: classes by: aBrowser [ ^(self for: classes) browser: aBrowser ] { #category : 'activation' } ClyShowClassRefCommand class >> fullBrowserMenuActivation [ <classAnnotation> ^CmdContextMenuActivation byItemOf: ClyQueryMenuGroup for: ClyFullBrowserClassContext ] { #category : 'activation' } ClyShowClassRefCommand class >> fullBrowserShortcutActivation [ <classAnnotation> ^CmdShortcutActivation by: $n meta for: ClyFullBrowserClassContext ] { #category : 'activation' } ClyShowClassRefCommand class >> fullBrowserToolbarActivation [ <classAnnotation> ^ClyToolbarActivation byItemOf: ClyButtonToolbarGroup for: ClyFullBrowserClassContext ] { #category : 'activation' } ClyShowClassRefCommand class >> queryBrowserMenuActivation [ <classAnnotation> ^CmdContextMenuActivation byItemOf: ClyQueryMenuGroup for: ClyQueryBrowserContext ] { #category : 'activation' } ClyShowClassRefCommand class >> queryBrowserShortcutActivation [ <classAnnotation> ^CmdShortcutActivation by: $c meta, $n meta for: ClyQueryBrowserContext ] { #category : 'activation' } ClyShowClassRefCommand class >> queryBrowserToolbarActivation [ <classAnnotation> ^ClyToolbarActivation byItemOf: ClyButtonToolbarGroup for: ClyQueryBrowserContext ] { #category : 'activation' } ClyShowClassRefCommand class >> sourceCodeMenuActivation [ <classAnnotation> ^SycSourceCodeMenuActivation byItemOf: ClyQueryMenuGroup for: ClySourceCodeContext ] { #category : 'accessing' } ClyShowClassRefCommand >> browser [ ^ browser ] { #category : 'accessing' } ClyShowClassRefCommand >> browser: anObject [ browser := anObject ] { #category : 'accessing' } ClyShowClassRefCommand >> defaultMenuItemName [ ^'Class refs.' ] { #category : 'execution' } ClyShowClassRefCommand >> execute [ browser spawnQueryBrowserOn: (ClyClassReferencesQuery toAny: classes) ] { #category : 'execution' } ClyShowClassRefCommand >> prepareFullExecutionInContext: aToolContext [ super prepareFullExecutionInContext: aToolContext. browser := aToolContext browser ] ```
Tony Alvarez, known as DJ Tony A. Da Wizard (TT Wizard") is an American DJ/producer and film director. He is best known for creating The Roadium Mixtapes with Dr. Dre and Steve Yano at the Roadium Swap Meet in Gardena, California. He’s also known for producing and DJing for the rapper Hi-C featuring Tony A. on the album titled Skanless. Early career At the age of 11, Tony first experienced what a DJ was when he went with his Brother Mario Alvarez to Noah's Ark (also known as Infinity and Grand Central Station) nightclub in the east side Long Beach. From that day forward he wanted to become a DJ. Shortly after he began working for Steve and Susan Yano at the Vermont Swap Meet in Gardena, California selling vinyl records and cassettes. He started DJing at his Junior High School noon dances and then went on to DJ house parties, birthday parties, quinceañera's etc. In 1988, Tony A. won 1st place at Battle of The DJs at Samerika Hall in Carson, California. In 1987, Tony A. was featured on his first vinyl record single titled "You Better Think" by rapper Dazzie Dee, Produced by Sir Jinx on Thin-Lyne Records, the record label of the World-famous VIP in Long Beach, California. Collaborations Tony A. has worked with many artists in the film and music industries including The Hughes Brothers, Dr. Dre, Eazy-E, Ice Cube, MC Ren, DJ Quik, Young MC, Tone Loc, JJ Fad, Sir Jinx (Lench Mob), Hi-C, 2nd II None, AMG, B-Real (Cypress Hill), Sen Dog (Cypress Hill), Mellow Man Ace, Teena Marie, Krazy Dee (N.W.A.), Lawless, Lil Rob, Kid Frost, Foesum, Slow Pain (G'Fellas), Nino Brown (G'Fellas), Dazzie Dee and more. Tony A. and Hi-C were the first rap group signed to Hollywood Records. Roadium In the early 1980s, Yano employed Dr. Dre of the World Class Wreckin' Cru to create mixtapes for him to sell at his booth at the Roadium Swap Meet. Dr. Dre created the mixes and some of the rappers featured on them were MC Ren, Ice Cube, Eazy-E, Krazy Dee (N.W.A.), Sir Jinx, Dazzie Dee and more. In 1987, while Dr. Dre was producing various artists on Ruthless Records, he asked Tony A. if he wanted to take over doing the mixtapes for Steve. Soon after, Tony A. began creating the mixtapes. His first mixtape that was released was titled "Breakdown". In 1991, Tony A. released his final mixtape titled "Bullshit" which featured Hi-C, DJ Quik, 2nd II None and AMG. During his mixtape career, he created 30+ mixtapes. Hi-C Featuring Tony A. In 1989, Tony A. created and produced his very first song titled "I'm Not Your Puppet" on the mixtape titled Hi-C which featured the Compton, California Rapper Hi-C, who worked at the Roadium Swap Meet. After the success of the Hi-C mixtape, Tony A. created and produced "Sitting In The Park" on the mixtape titled Skanlist, which also featured Hi-C. These mixtapes led Hollywood Records in 1990 to approach Steve Yano with interest in signing the duo. After they signed, Steve Yano established his own label called "Skanless Records". They began recording their debut album titled Hi-C Featuring Tony A. at Audio Achievements in Torrance, California. There they recorded half of their album and eventually finished at Skanless Studios in Alhambra, California. This album was released December 10, 1991. The album peaked at 152 on the Billboard 200, at number 21 on the Hot Rap Songs for the song titled "Sitting In The Park", at number 53 on the Top R&B/Hip Hop Albums, at number 3 on the Heatseekers Albums for 24 weeks. In 1993, Tony A. produced half of the Hi-C album titled Swing'n. The Roadium Mixtape Documixery In May 2017, Tony A. along with John Elkins (JE Visual Studios), Daniel "DG" Jones (DG Media Clips), Carey Fujita (South Bay Drones), Roger "Lyve" Mera (RL Productions), Boomerdidit (The Remedy Yard) and Wiz1 (Blak Forest) started production of The Roadium Mixtape Documixery in memory of Steve Yano. Production was completed in December 2018. It was set to release in 2019. It is a docu-series that focuses on the history of Steve Yano, Dr. Dre, Tony A. and The Roadium Mixtapes. The cast includes Tony A., Warren G, Mister Cartoon, Violet Brown, 2nd II None, AMG, Hi-C, DJ Speed (N.W.A), Sir Jinx, Kelvin Anderson (VIP Records), Ernie G (Proper Dos/Skanless Records), Big Citric (Brown Town Looters/George Lopez Show), DJ Jam, Alonso "Lonzo" Williams (World Class Wreckin' Cru), Cli-N-Tel (World Class Wreckin' Cru), Kid Frost, Mellow Man Ace, DJ Rhettmatic (The World-famous Beat Junkies), Break Beat Lou (Ultimate Breaks & Beats), DJ Thoro, DJ Money B, Greedy Greg and Arabian Prince (N.W.A). Present day Tony A. is currently focused on directing films (Tony Vision) while DJing and producing music. He established Tony Vision in 2019. Charts References External links 1968 births Living people Date of birth missing (living people) American DJs American film producers
```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 RTC_BASE_TASK_QUEUE_WIN_H_ #define RTC_BASE_TASK_QUEUE_WIN_H_ #include <memory> #include "api/task_queue/task_queue_factory.h" namespace webrtc { std::unique_ptr<TaskQueueFactory> CreateTaskQueueWinFactory(); } #endif // RTC_BASE_TASK_QUEUE_WIN_H_ ```
```php <div class="table-responsive"> <table id="tabel-data" class="table table-bordered dataTable table-striped table-hover tabel-daftar"> <thead class="bg-gray color-palette"> <tr> <th rowspan="2">No</th> <th rowspan="2">No KK</th> <th rowspan="2">Nama</th> <th rowspan="2">Nik</th> <th rowspan="2">Alamat <?= ucwords(setting('sebutan_dusun')) ?></th> <th rowspan="2">Jenis Kelamin</th> <th rowspan="2">Tempat Lahir</th> <th rowspan="2">Tanggal Lahir</th> <th rowspan="2">Umur</th> <th colspan="6">Vaksin</th> </tr> <tr> <td>I</td> <td>II</td> <td>III</td> <td>Belum</td> <td>Tunda</td> <td>Ket</td> </tr> </thead> <tbody> <?php foreach ($main as $key => $data) : ?> <tr> <td class="padat"><?= $key + 1 ?></td> <td><?= $data->no_kk ?></td> <td><?= $data->nama ?></td> <td><?= $data->nik ?></td> <td><?= $data->dusun ?></td> <td><?= $data->jenis_kelamin ?></td> <td><?= $data->tempatlahir ?></td> <td><?= rev_tgl($data->tanggallahir) ?></td> <td class="padat"><?= $data->umur ?></td> <td class="padat"> <?php if ($data->vaksin_1 == 1 && $data->tunda == 0) : ?> <i class="fa fa-check" aria-hidden="true"></i> <?php endif ?> </td> <td class="padat"> <?php if ($data->vaksin_2 == 1 && $data->tunda == 0) : ?> <i class="fa fa-check" aria-hidden="true"></i> <?php endif ?> </td> <td class="padat"> <?php if ($data->vaksin_3 == 1 && $data->tunda == 0) : ?> <i class="fa fa-check" aria-hidden="true"></i> <?php endif ?> </td> <td class="padat"> <?php if ($data->vaksin_1 == null || ($data->tunda == 0 && $data->vaksin_1 == 0)) : ?> <i class="fa fa-check" aria-hidden="true"></i> <?php endif ?> </td> <td class="padat"> <?php if ($data->tunda == 1) : ?> <i class="fa fa-check" aria-hidden="true"></i> <?php endif ?> </td> <td> <?php if ($data->tunda == 1) : ?> <?= $data->keterangan ?> <?php endif ?> </td> </tr> <?php endforeach ?> </tbody> </table> </div> ```
The October Revolution Park () is a park in Rostov-on-Don established in 1926. It is situated in the centre of the city near Teatralnaya Square. History and description The area that is today known as October Revolution Park was first founded as a park zone in 1926 between the cities of Rostov-on-Don and Nakhichevan-on-Don. With further urban development, Nakhichevan was merged with Rostov in 1928. In the 1970s the place became one of the favorite vacation spots for Rostov dwellers. The park has excellent conditions for sports (minifootball field, ice rink and a field for paintball). There are many attractions, children playgrounds, cafes and souvenir stalls. In the park area, among the rich greenery there are pedestrian paths. The total area of the park is almost 17 hectares. In the park there are sculptural compositions: the "Bench of Reconciliation" and the Monument to Peter and Fevronia; there is also the Memorial Plaque dedicated to the soldiers and officers of the 56th Army and the Alley of Glory. Another notable place of the October Revolution Park is an artificial lake, where one can see waterfowl, as well as aviary for flamingos and peacocks. In the early 2000s, the park was leased for 49 years to the «Don Tobacco» company. The following years, large-scale works on its expansion took place. In 2002 there was opened an amusement park. In 2016, the third largest observation wheel, 65 meters high, was also opened there. Various celebrations, cultural events and mass festivities take place there. Every year the park is visited by 1.5 million people. Next to the park, at Teatralnaya Square, there is a fountain called Atlantes, which was designed by architect Yevgeny Vuchetich. Gallery References Parks in Rostov-on-Don Tourist attractions in Rostov-on-Don 1926 establishments in the Soviet Union
```javascript import webpack from 'webpack' import path from 'path' import autoprefixer from 'autoprefixer' import ExtractTextPlugin from 'extract-text-webpack-plugin' import CopyWebpackPlugin from 'copy-webpack-plugin' import HtmlWebpackPlugin from 'html-webpack-plugin' import OptimizeJsPlugin from 'optimize-js-plugin' import PrerenderSpaPlugin from 'prerender-spa-plugin' import PreloadWebpackPlugin from 'preload-webpack-plugin' import OptimizeCssAssetsPlugin from 'optimize-css-assets-webpack-plugin' import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer' import mediaPacker from 'css-mqpacker' import OfflinePlugin from 'offline-plugin' import { config, resolvePath, getRandomInt } from '../config' import banner from '../lib/banner' import { mapRoutes } from '../../docs/app/routes' const cacheUpdateTime = process.env.CACHE_UPDATE_MINUTES || 10 const cssLoader = ExtractTextPlugin.extract({ use: 'css-loader', fallback: 'vue-style-loader' }) const scssLoader = ExtractTextPlugin.extract({ use: 'css-loader!sass-loader', fallback: 'vue-style-loader' }) const babelLoader = 'babel-loader?cacheDirectory=true' const componentExampleLoader = require.resolve('../loaders/component-example-loader') const webpackConfig = { entry: { app: [ 'babel-polyfill', './docs/app/index.js', './build/docs/offline.js' ] }, output: { path: resolvePath(config.dist), publicPath: '/', filename: '[name].[chunkhash:8].js', chunkFilename: '[name].[chunkhash:8].js' }, resolve: { extensions: config.resolve, alias: config.alias }, module: { rules: [ { test: /\.js$/, loader: babelLoader, exclude: /node_modules/, options: { 'cacheDirectory': true } }, { test: /\.vue$/, loader: 'vue-loader', options: { loaders: { css: cssLoader, scss: scssLoader, js: babelLoader, example: componentExampleLoader }, postcss: [ autoprefixer(), mediaPacker() ] } }, { test: /\.css$/, loader: cssLoader }, { test: /\.scss$/, loader: scssLoader } ] }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('production') } }), new webpack.optimize.ModuleConcatenationPlugin(), new webpack.NamedModulesPlugin(), new webpack.LoaderOptionsPlugin({ minimize: true, debug: false }), new webpack.optimize.UglifyJsPlugin({ minimize: true, compress: { booleans: true, cascade: true, comparisons: true, conditionals: true, dead_code: true, drop_debugger: true, evaluate: true, hoist_funs: true, hoist_vars: true, if_return: true, join_vars: true, loops: true, properties: true, screw_ie8: true, sequences: true, side_effects: true, unsafe: true, unused: true, warnings: false }, output: { comments: false }, sourceMap: false }), new OptimizeJsPlugin({ sourceMap: false }), new ExtractTextPlugin({ allChunks: true, filename: '[name].[contenthash:8].css' }), new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks (module) { let resource = module.resource if (resource && (/\.js$/).test(resource)) { return resource.indexOf(config.nodePath) >= 0 } return false } }), new webpack.optimize.CommonsChunkPlugin({ name: 'manifest', chunks: ['vendor'] }), new webpack.BannerPlugin({ banner, raw: true, entryOnly: true }), new webpack.optimize.OccurrenceOrderPlugin(), new CopyWebpackPlugin([ { context: config.assets, from: '**/*', to: 'assets' }, { context: config.docs, from: '_redirects', to: '' } ]), new HtmlWebpackPlugin({ filename: 'index.html', template: 'docs/index.html', chunksSortMode: 'dependency', inject: 'head', minify: { collapseBooleanAttributes: true, collapseWhitespace: true, decodeEntities: true, html5: true, minifyCSS: true, minifyJS: true, preserveLineBreaks: false, removeAttributeQuotes: false, removeComments: false, removeEmptyAttributes: true, removeRedundantAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true, removeTagWhitespace: true, sortAttributes: true, sortClassName: true, useShortDoctype: true } }), new PreloadWebpackPlugin(), new OptimizeCssAssetsPlugin({ canPrint: false }), new PrerenderSpaPlugin({ staticDir: path.join(__dirname, '..', '..', config.dist) }), new OfflinePlugin({ autoUpdate: +cacheUpdateTime * 60 * 1000 }) ] } if (process.argv.includes('--analyze')) { webpackConfig.plugins.push(new BundleAnalyzerPlugin({ analyzerPort: getRandomInt(8000, 8999) })) } export default webpackConfig ```
Pettitoes may refer to: pig's trotters Aunt Pettitoes, a character in Beatrix Potter's The Tale of Pigling Bland
```xml import React from 'react'; type IconProps = React.SVGProps<SVGSVGElement>; export declare const IcPassBox: (props: IconProps) => React.JSX.Element; export {}; ```
Tursun may refer to Tusrun (name) Tursun Uljaboev, a municipality in Tajikistan Tursun Tuychiev, a municipality in Tajikistan
The 1961 Cincinnati Reds season was a season in American baseball. It consisted of the Reds winning the National League pennant with a 93–61 record, four games ahead of the runner-up Los Angeles Dodgers, but losing the World Series in five games to the New York Yankees. The Reds were managed by Fred Hutchinson, and played their home games at Crosley Field. The Reds were also the last team to win the National League in the 154-game schedule era, before going to a 162-game schedule a year later. Preseason Cincinnati's road to the World Series was truly a remarkable one, as the Reds went through significant changes in a single season to improve from a team that won just 67 games and finished 28 games behind the eventual World Series Champion Pittsburgh Pirates in 1960. The architect of the turnaround was the Reds' new general manager Bill DeWitt, who left his role as president and general manager of the Detroit Tigers after the end of the 1960 season to replace Gabe Paul as the Reds' GM. Paul was hired as the general manager of the expansion Houston Colt .45s. DeWitt, who had a short history of successful trades in Detroit including acquiring Norm Cash and Rocky Colavito, went to work at the 1960 Winter Meetings for Cincinnati. DeWitt found trade partners in the Milwaukee Braves and the Chicago White Sox. In essentially a three-team trade, the Reds acquired pitchers Joey Jay and Juan Pizarro for slick-fielding shortstop Roy McMillan on Dec. 15, 1960. On that same day, the Reds then traded Pizzaro and pitcher Cal McLish to the White Sox for third baseman Gene Freese. It was the fourth time Freese had been traded in 18 months. Most recently, the White Sox had acquired Freese from the Philadelphia Phillies for future all star Johnny Callison in December 1959. Reds owner Powel Crosley Jr. died suddenly of a heart attack at his home in Cincinnati on March 28, 1961, 13 days before the start of the Reds' season. DeWitt eventually purchased 100% of the team ownership from Crosley's estate by year's end. Season recap The Reds began the season with Freese at third base, sure-handed Eddie Kasko moved from third (where he played in 1960) to shortstop and long-time minor leaguer Jim Baumer at second base. Baumer was one of MLB's "feel good" stories. After playing in nine games with the White Sox in 1949 as an 18 year old rookie, Baumer returned to the minor leagues and didn't make it back to the big league for 11 years. The Reds drafted Baumer during the Rule 5 draft after the Pittsburgh Pirates left him unprotected. After a solid spring training with the Reds, Baumer was named starting second baseman to open the season. As the season began, expectations were low for the Reds among baseball "experts." The Reds won their first three games, but then went into a slump, losing 10 of 12. To the surprise of many, it was the Reds' offense that struggled most. Baumer in particular was hitting just .125. DeWitt then made a bold move on April 27, 1961, trading all-star catcher Ed Bailey to the San Francisco Giants for second baseman Don Blasingame, catcher Bob Schmidt and journeyman pitcher Sherman Jones. Blasingame was inserted as starter at second base, and Baumer was traded to the Detroit Tigers on May 10 for backup first baseman Dick Gernert. Baumer never again played in the majors. On April 30, the Reds won the second game of a double-header from the Pittsburgh Pirates to begin a 9-game winning streak. Exactly a month after the trade of Bailey, the Reds began another win streak, this time six games, to improve to 26–16. Those streaks were part of a stretch where the Reds won 50 of 70 games to improve to 55–30. Cincinnati led Los Angeles by five games at the All Star break. After the break, the Dodgers got hot and the Reds floundered. After the games of August 13, Los Angeles was 69-40 and led Cincinnati (70-46) by 2½ games, but six in the loss column as the Dodgers had played seven fewer games than the Reds due to multiple rainouts. On August 15, the Reds went into Los Angeles to begin a three-game, two-day series highlighted by a double-header. In the first game of the series, Reds' righty Joey Jay bested Sandy Koufax and the Dodgers, 5–2, as Eddie Kasko had four hits and Frank Robinson drove in two for Cincinnati. In the Wednesday double-header, knuckle-baller Bob Purkey threw a four-hit shutout as the Reds won Game 1, 6–0. In Game 2, Freese hit two home runs off Dodgers' lefty Johnny Podres and Jim O'Toole hurled a two-hitter as the Reds completed the sweep with an 8–0 victory. The Reds left Los Angeles with a half-game lead. It was the Dodgers' fourth-straight loss in what became a 10-game losing streak to put the Dodgers in a hole, while the Reds stayed in first-place the rest of the season. The Reds clinched their first pennant in 21 years on Sept. 26 when they beat the Cubs, 6–3, in the afternoon and the Dodgers lost to the Pittsburgh Pirates, 8–0, in the second game of a doubleheader. The Reds earned a chance to face the mighty New York Yankees in the 1961 World Series. Outfielders Frank Robinson and Vada Pinson led the Reds offense while starting pitchers Bob Purkey, Jim O'Toole and newcomer Joey Jay were the staff standouts. Robinson (37 homers, 124 RBI, 117 runs scored, 22 stolen bases, .323 average) was named National League MVP. Pinson (208 hits, .343 average, 101 runs scored, 23 stolen bases) and a Gold Glove recipient, finished third in MVP voting. Purkey won 16 games, O'Toole won 19 and Jay won an NL-best 21 games. Jay also finished a surprising fifth in NL MVP voting, one spot ahead of future Hall of Famer Willie Mays who hit 40 home runs and drove in 123 for the Giants, such was the respect the Baseball Writers had for Jay's contributions to the Reds' pennant. At a position (3B) that the Reds had received little offensive production from in the recent years leading up to 1961, Freese provided a major boost, slugging 26 home runs and driving in 87 runs to go with a .277 average. Hutchinson, a former MLB pitcher, was masterful in his handling of the pitching staff as well as juggling a lineup that included part-timers (and former slugging standouts) Gus Bell, Wally Post (20, 57, .294) as well as Jerry Lynch (13, 50, .315). For the second straight season, Lynch led the National League with 19 pinch hits. Hutchinson was named Manager of the Year. Player moves December 3, 1960: Second baseman Billy Martin was sold to the Milwaukee Braves. December 14, 1960: Catcher Joe Azcue was sold to the Milwaukee Braves. December 15, 1960: Pitchers Joey Jay and Juan Pizarro were acquired from the Milwaukee Braves in a trade for shortstop Roy McMillan. December 15, 1960: Third baseman Gene Freese was acquired from the Chicago White Sox in a trade for pitchers Juan Pizarro and Cal McLish. January 21, 1961: Pitchers John Tsitouris and Johnny Briggs were acquired from the Kansas City Athletics in a trade for pitcher Joe Nuxhall. February 24, 1961: Catcher Frank House was sold to the Baltimore Orioles. April 27, 1961: Second baseman Don Blasingame, catcher Bob Schmidt and pitcher Sherman Jones were acquired in a trade with the San Francisco Giants for catcher Ed Bailey. May 10, 1961: First baseman Dick Gernert was acquired from the Detroit Tigers in a trade for infielder Jim Baumer. July 21, 1961: Pitcher Ken Johnson was acquired from the Kansas City Athletics for cash. September 16, 1961: Pitcher Dave Sisler and cash were acquired from the Washington Senators for pitcher Claude Osteen. Season standings Record vs. opponents Roster Player stats Batting Starters by position Note: Pos = Position; G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in Other batters Note: Pos = Position; G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in Pitching Starting pitchers Note: G = Games pitched; CG = Complete games; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts Other pitchers Note: G = Games pitched; CG = Complete games; IP = Innings pitched; W = Wins; SV = Saves; ERA = Earned run average; SO = Strikeouts Relief pitchers Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; SV = Saves; ERA = Earned run average; SO = Strikeouts 1961 World Series Awards and honors Fred Hutchinson, Associated Press NL Manager of the Year Frank Robinson, National League Most Valuable Player Vada Pinson, Outfield, National League Gold Glove Farm system LEAGUE CHAMPIONS: Topeka, Tampa References External links 1961 Cincinnati Reds season at Baseball Reference 1961 Cincinnati Reds season at Baseball Almanac Cincinnati Reds seasons Cincinnati Reds season National League champion seasons Cincinnati Reds
```smalltalk // ========================================================================== // Squidex Headless CMS // ========================================================================== // ========================================================================== using System.Security.Claims; using Microsoft.AspNetCore.Identity; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver; using Squidex.Infrastructure.MongoDb; namespace Squidex.Domain.Users.MongoDb; public sealed class MongoUserStore : MongoRepositoryBase<MongoUser>, IUserAuthenticationTokenStore<IdentityUser>, IUserAuthenticatorKeyStore<IdentityUser>, IUserClaimStore<IdentityUser>, IUserEmailStore<IdentityUser>, IUserFactory, IUserLockoutStore<IdentityUser>, IUserLoginStore<IdentityUser>, IUserPasswordStore<IdentityUser>, IUserPhoneNumberStore<IdentityUser>, IUserRoleStore<IdentityUser>, IUserSecurityStampStore<IdentityUser>, IUserTwoFactorStore<IdentityUser>, IUserTwoFactorRecoveryCodeStore<IdentityUser>, IQueryableUserStore<IdentityUser> { private const string InternalLoginProvider = "[AspNetUserStore]"; private const string AuthenticatorKeyTokenName = "AuthenticatorKey"; private const string RecoveryCodeTokenName = "RecoveryCodes"; static MongoUserStore() { BsonClassMap.RegisterClassMap<Claim>(cm => { cm.MapConstructor(typeof(Claim).GetConstructors() .First(x => { var parameters = x.GetParameters(); return parameters.Length == 2 && parameters[0].Name == "type" && parameters[0].ParameterType == typeof(string) && parameters[1].Name == "value" && parameters[1].ParameterType == typeof(string); })) .SetArguments(new[] { nameof(Claim.Type), nameof(Claim.Value) }); cm.MapMember(x => x.Type); cm.MapMember(x => x.Value); }); BsonClassMap.RegisterClassMap<UserLogin>(cm => { cm.MapConstructor(typeof(UserLogin).GetConstructors() .First(x => { var parameters = x.GetParameters(); return parameters.Length == 3; })) .SetArguments(new[] { nameof(UserLogin.LoginProvider), nameof(UserLogin.ProviderKey), nameof(UserLogin.ProviderDisplayName) }); cm.AutoMap(); }); BsonClassMap.RegisterClassMap<IdentityUserToken<string>>(cm => { cm.AutoMap(); cm.UnmapMember(x => x.UserId); }); BsonClassMap.RegisterClassMap<IdentityUser<string>>(cm => { cm.AutoMap(); cm.MapMember(x => x.Id) .SetSerializer(new StringSerializer(BsonType.ObjectId)); cm.MapMember(x => x.AccessFailedCount) .SetIgnoreIfDefault(true); cm.MapMember(x => x.EmailConfirmed) .SetIgnoreIfDefault(true); cm.MapMember(x => x.LockoutEnd) .SetElementName("LockoutEndDateUtc").SetIgnoreIfNull(true); cm.MapMember(x => x.LockoutEnabled) .SetIgnoreIfDefault(true); cm.MapMember(x => x.PasswordHash) .SetIgnoreIfNull(true); cm.MapMember(x => x.PhoneNumber) .SetIgnoreIfNull(true); cm.MapMember(x => x.PhoneNumberConfirmed) .SetIgnoreIfDefault(true); cm.MapMember(x => x.SecurityStamp) .SetIgnoreIfNull(true); cm.MapMember(x => x.TwoFactorEnabled) .SetIgnoreIfDefault(true); }); } public MongoUserStore(IMongoDatabase database) : base(database) { } protected override string CollectionName() { return "Identity_Users"; } protected override Task SetupCollectionAsync(IMongoCollection<MongoUser> collection, CancellationToken ct) { return collection.Indexes.CreateManyAsync(new[] { new CreateIndexModel<MongoUser>( Index .Ascending("Logins.LoginProvider") .Ascending("Logins.ProviderKey")), new CreateIndexModel<MongoUser>( Index .Ascending(x => x.NormalizedUserName), new CreateIndexOptions { Unique = true }), new CreateIndexModel<MongoUser>( Index .Ascending(x => x.NormalizedEmail), new CreateIndexOptions { Unique = true }) }, ct); } protected override MongoCollectionSettings CollectionSettings() { return new MongoCollectionSettings { WriteConcern = WriteConcern.WMajority }; } public void Dispose() { } public IQueryable<IdentityUser> Users { get => Collection.AsQueryable(); } public bool IsId(string id) { return ObjectId.TryParse(id, out _); } public IdentityUser Create(string email) { return new MongoUser { Email = email, UserName = email }; } public async Task<IdentityUser?> FindByIdAsync(string userId, CancellationToken cancellationToken) { var result = await Collection.Find(x => x.Id == userId).FirstOrDefaultAsync(cancellationToken); return result; } public async Task<IdentityUser?> FindByEmailAsync(string normalizedEmail, CancellationToken cancellationToken) { var result = await Collection.Find(x => x.NormalizedEmail == normalizedEmail).FirstOrDefaultAsync(cancellationToken); return result; } public async Task<IdentityUser?> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken) { var result = await Collection.Find(x => x.NormalizedEmail == normalizedUserName).FirstOrDefaultAsync(cancellationToken); return result; } public async Task<IdentityUser?> FindByLoginAsync(string loginProvider, string providerKey, CancellationToken cancellationToken) { var result = await Collection.Find(Filter.ElemMatch(x => x.Logins, BuildFilter(loginProvider, providerKey))).FirstOrDefaultAsync(cancellationToken); return result; } public async Task<IList<IdentityUser>> GetUsersForClaimAsync(Claim claim, CancellationToken cancellationToken) { var result = await Collection.Find(x => x.Claims.Exists(y => y.Type == claim.Type && y.Value == claim.Value)).ToListAsync(cancellationToken); return result.OfType<IdentityUser>().ToList(); } public async Task<IList<IdentityUser>> GetUsersInRoleAsync(string roleName, CancellationToken cancellationToken) { var result = await Collection.Find(x => x.Roles.Contains(roleName)).ToListAsync(cancellationToken); return result.OfType<IdentityUser>().ToList(); } public async Task<IdentityResult> CreateAsync(IdentityUser user, CancellationToken cancellationToken) { user.Id = ObjectId.GenerateNewId().ToString(); await Collection.InsertOneAsync((MongoUser)user, null, cancellationToken); return IdentityResult.Success; } public async Task<IdentityResult> UpdateAsync(IdentityUser user, CancellationToken cancellationToken) { await Collection.ReplaceOneAsync(x => x.Id == user.Id, (MongoUser)user, cancellationToken: cancellationToken); return IdentityResult.Success; } public async Task<IdentityResult> DeleteAsync(IdentityUser user, CancellationToken cancellationToken) { await Collection.DeleteOneAsync(x => x.Id == user.Id, null, cancellationToken); return IdentityResult.Success; } public Task<string> GetUserIdAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.Id; return Task.FromResult(result); } public Task<string?> GetUserNameAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.UserName; return Task.FromResult(result); } public Task<string?> GetNormalizedUserNameAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.NormalizedUserName; return Task.FromResult(result); } public Task<string?> GetPasswordHashAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.PasswordHash; return Task.FromResult(result); } public Task<IList<string>> GetRolesAsync(IdentityUser user, CancellationToken cancellationToken) { var result = ((MongoUser)user).Roles.ToList(); return Task.FromResult<IList<string>>(result); } public Task<bool> IsInRoleAsync(IdentityUser user, string roleName, CancellationToken cancellationToken) { var result = ((MongoUser)user).Roles.Contains(roleName); return Task.FromResult(result); } public Task<IList<UserLoginInfo>> GetLoginsAsync(IdentityUser user, CancellationToken cancellationToken) { var result = ((MongoUser)user).Logins.Select(x => new UserLoginInfo(x.LoginProvider, x.ProviderKey, x.ProviderDisplayName)).ToList(); return Task.FromResult<IList<UserLoginInfo>>(result); } public Task<string?> GetSecurityStampAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.SecurityStamp; return Task.FromResult(result); } public Task<string?> GetEmailAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.Email; return Task.FromResult(result); } public Task<bool> GetEmailConfirmedAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.EmailConfirmed; return Task.FromResult(result); } public Task<string?> GetNormalizedEmailAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.NormalizedEmail; return Task.FromResult(result); } public Task<IList<Claim>> GetClaimsAsync(IdentityUser user, CancellationToken cancellationToken) { var result = ((MongoUser)user).Claims; return Task.FromResult<IList<Claim>>(result); } public Task<string?> GetPhoneNumberAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.PhoneNumber; return Task.FromResult(result); } public Task<bool> GetPhoneNumberConfirmedAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.PhoneNumberConfirmed; return Task.FromResult(result); } public Task<bool> GetTwoFactorEnabledAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.TwoFactorEnabled; return Task.FromResult(result); } public Task<DateTimeOffset?> GetLockoutEndDateAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.LockoutEnd; return Task.FromResult(result); } public Task<int> GetAccessFailedCountAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.AccessFailedCount; return Task.FromResult(result); } public Task<bool> GetLockoutEnabledAsync(IdentityUser user, CancellationToken cancellationToken) { var result = user.LockoutEnabled; return Task.FromResult(result); } public Task<string?> GetTokenAsync(IdentityUser user, string loginProvider, string name, CancellationToken cancellationToken) { var result = ((MongoUser)user).GetToken(loginProvider, name)!; return Task.FromResult<string?>(result); } public Task<string?> GetAuthenticatorKeyAsync(IdentityUser user, CancellationToken cancellationToken) { var result = ((MongoUser)user).GetToken(InternalLoginProvider, AuthenticatorKeyTokenName)!; return Task.FromResult<string?>(result); } public Task<bool> HasPasswordAsync(IdentityUser user, CancellationToken cancellationToken) { var result = !string.IsNullOrWhiteSpace(user.PasswordHash); return Task.FromResult(result); } public Task<int> CountCodesAsync(IdentityUser user, CancellationToken cancellationToken) { var result = ((MongoUser)user).GetToken(InternalLoginProvider, RecoveryCodeTokenName)?.Split(';').Length ?? 0; return Task.FromResult(result); } public Task SetUserNameAsync(IdentityUser user, string? userName, CancellationToken cancellationToken) { ((MongoUser)user).UserName = userName; return Task.CompletedTask; } public Task SetNormalizedUserNameAsync(IdentityUser user, string? normalizedName, CancellationToken cancellationToken) { ((MongoUser)user).NormalizedUserName = normalizedName; return Task.CompletedTask; } public Task SetPasswordHashAsync(IdentityUser user, string? passwordHash, CancellationToken cancellationToken) { ((MongoUser)user).PasswordHash = passwordHash; return Task.CompletedTask; } public Task AddToRoleAsync(IdentityUser user, string roleName, CancellationToken cancellationToken) { ((MongoUser)user).AddRole(roleName); return Task.CompletedTask; } public Task RemoveFromRoleAsync(IdentityUser user, string roleName, CancellationToken cancellationToken) { ((MongoUser)user).RemoveRole(roleName); return Task.CompletedTask; } public Task AddLoginAsync(IdentityUser user, UserLoginInfo login, CancellationToken cancellationToken) { ((MongoUser)user).AddLogin(login); return Task.CompletedTask; } public Task RemoveLoginAsync(IdentityUser user, string loginProvider, string providerKey, CancellationToken cancellationToken) { ((MongoUser)user).RemoveLogin(loginProvider, providerKey); return Task.CompletedTask; } public Task SetSecurityStampAsync(IdentityUser user, string stamp, CancellationToken cancellationToken) { ((MongoUser)user).SecurityStamp = stamp; return Task.CompletedTask; } public Task SetEmailAsync(IdentityUser user, string? email, CancellationToken cancellationToken) { ((MongoUser)user).Email = email; return Task.CompletedTask; } public Task SetEmailConfirmedAsync(IdentityUser user, bool confirmed, CancellationToken cancellationToken) { ((MongoUser)user).EmailConfirmed = confirmed; return Task.CompletedTask; } public Task SetNormalizedEmailAsync(IdentityUser user, string? normalizedEmail, CancellationToken cancellationToken) { ((MongoUser)user).NormalizedEmail = normalizedEmail; return Task.CompletedTask; } public Task AddClaimsAsync(IdentityUser user, IEnumerable<Claim> claims, CancellationToken cancellationToken) { ((MongoUser)user).AddClaims(claims); return Task.CompletedTask; } public Task ReplaceClaimAsync(IdentityUser user, Claim claim, Claim newClaim, CancellationToken cancellationToken) { ((MongoUser)user).ReplaceClaim(claim, newClaim); return Task.CompletedTask; } public Task RemoveClaimsAsync(IdentityUser user, IEnumerable<Claim> claims, CancellationToken cancellationToken) { ((MongoUser)user).RemoveClaims(claims); return Task.CompletedTask; } public Task SetPhoneNumberAsync(IdentityUser user, string? phoneNumber, CancellationToken cancellationToken) { ((MongoUser)user).PhoneNumber = phoneNumber; return Task.CompletedTask; } public Task SetPhoneNumberConfirmedAsync(IdentityUser user, bool confirmed, CancellationToken cancellationToken) { ((MongoUser)user).PhoneNumberConfirmed = confirmed; return Task.CompletedTask; } public Task SetTwoFactorEnabledAsync(IdentityUser user, bool enabled, CancellationToken cancellationToken) { ((MongoUser)user).TwoFactorEnabled = enabled; return Task.CompletedTask; } public Task SetLockoutEndDateAsync(IdentityUser user, DateTimeOffset? lockoutEnd, CancellationToken cancellationToken) { ((MongoUser)user).LockoutEnd = lockoutEnd?.UtcDateTime; return Task.CompletedTask; } public Task<int> IncrementAccessFailedCountAsync(IdentityUser user, CancellationToken cancellationToken) { ((MongoUser)user).AccessFailedCount++; return Task.FromResult(((MongoUser)user).AccessFailedCount); } public Task ResetAccessFailedCountAsync(IdentityUser user, CancellationToken cancellationToken) { ((MongoUser)user).AccessFailedCount = 0; return Task.CompletedTask; } public Task SetLockoutEnabledAsync(IdentityUser user, bool enabled, CancellationToken cancellationToken) { ((MongoUser)user).LockoutEnabled = enabled; return Task.CompletedTask; } public Task SetTokenAsync(IdentityUser user, string loginProvider, string name, string? value, CancellationToken cancellationToken) { ((MongoUser)user).ReplaceToken(loginProvider, name, value); return Task.CompletedTask; } public Task RemoveTokenAsync(IdentityUser user, string loginProvider, string name, CancellationToken cancellationToken) { ((MongoUser)user).RemoveToken(loginProvider, name); return Task.CompletedTask; } public Task SetAuthenticatorKeyAsync(IdentityUser user, string key, CancellationToken cancellationToken) { ((MongoUser)user).ReplaceToken(InternalLoginProvider, AuthenticatorKeyTokenName, key); return Task.CompletedTask; } public Task ReplaceCodesAsync(IdentityUser user, IEnumerable<string> recoveryCodes, CancellationToken cancellationToken) { ((MongoUser)user).ReplaceToken(InternalLoginProvider, RecoveryCodeTokenName, string.Join(';', recoveryCodes)); return Task.CompletedTask; } public Task<bool> RedeemCodeAsync(IdentityUser user, string code, CancellationToken cancellationToken) { var mergedCodes = ((MongoUser)user).GetToken(InternalLoginProvider, RecoveryCodeTokenName) ?? string.Empty; var splitCodes = mergedCodes.Split(';'); if (splitCodes.Contains(code)) { var updatedCodes = new List<string>(splitCodes.Where(s => s != code)); ((MongoUser)user).ReplaceToken(InternalLoginProvider, RecoveryCodeTokenName, string.Join(';', updatedCodes)); return Task.FromResult(true); } return Task.FromResult(false); } private static FilterDefinition<UserLogin> BuildFilter(string loginProvider, string providerKey) { var filter = Builders<UserLogin>.Filter; return filter.And( filter.Eq(x => x.LoginProvider, loginProvider), filter.Eq(x => x.ProviderKey, providerKey)); } } ```
```python import conftest from Mapping.circle_fitting import circle_fitting as m def test_1(): m.show_animation = False m.main() if __name__ == '__main__': conftest.run_this_test(__file__) ```
```go package system import ( "bufio" "io" "os" "strconv" "strings" "github.com/fsouza/go-dockerclient/external/github.com/docker/go-units" ) // ReadMemInfo retrieves memory statistics of the host system and returns a // MemInfo type. func ReadMemInfo() (*MemInfo, error) { file, err := os.Open("/proc/meminfo") if err != nil { return nil, err } defer file.Close() return parseMemInfo(file) } // parseMemInfo parses the /proc/meminfo file into // a MemInfo object given a io.Reader to the file. // // Throws error if there are problems reading from the file func parseMemInfo(reader io.Reader) (*MemInfo, error) { meminfo := &MemInfo{} scanner := bufio.NewScanner(reader) for scanner.Scan() { // Expected format: ["MemTotal:", "1234", "kB"] parts := strings.Fields(scanner.Text()) // Sanity checks: Skip malformed entries. if len(parts) < 3 || parts[2] != "kB" { continue } // Convert to bytes. size, err := strconv.Atoi(parts[1]) if err != nil { continue } bytes := int64(size) * units.KiB switch parts[0] { case "MemTotal:": meminfo.MemTotal = bytes case "MemFree:": meminfo.MemFree = bytes case "SwapTotal:": meminfo.SwapTotal = bytes case "SwapFree:": meminfo.SwapFree = bytes } } // Handle errors that may have occurred during the reading of the file. if err := scanner.Err(); err != nil { return nil, err } return meminfo, nil } ```
Nore Hill Pinnacle is a local nature reserve east of Warlingham in Surrey, England. It is owned by the Earl Compton Estate and was formerly managed by the Surrey Wildlife Trust, but as of 2018 is not listed on the Trust's website. This very small geological Local Nature Reserve is a Regionally Important Geological Site. It was previously a gravel pit and when the gravel was removed a number of natural chalk pinnacles were discovered. This is the only one which has been retained. There is public access to the site. References Local Nature Reserves in Surrey
```smalltalk using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; using Microsoft.Deployment.WindowsInstaller; namespace WixSharp { /// <summary> /// Defines System.Windows.Forms.<see cref="T:System.Windows.Forms.Form" />, which is to be used as the for custom MSI dialog. /// <para> /// As opposite to the WixSharp.<see cref="T:WixSharp.WixForm" /> based custom dialogs <c>WixCLRDialog</c> is instantiated not at /// compile but at run time. Thus it is possible to implement comprehensive deployment algorithms in any of the available Form event handlers. /// </para> /// <para> /// The usual usability scenario is the injection of the managed Custom Action (for displaying the <c>WixCLRDialog</c>) /// into the sequence of the standard dialogs (WixSharp.<see cref="T:WixSharp.CustomUI"/>). /// </para> /// <para> /// While it is possible to construct <see cref="T:WixSharp.CustomUI"/> instance manually it is preferred to use /// </para> /// <code> /// static public void Main() /// { /// ManagedAction showDialog; /// /// var project = new Project("CustomDialogTest", /// showDialog = new ShowClrDialogAction("ShowProductActivationDialog")); /// /// project.UI = WUI.WixUI_Common; /// /// Compiler.BuildMsi(project); /// } /// ... /// public class CustomActions /// { /// [CustomAction] /// public static ActionResult ShowProductActivationDialog(Session session) /// { /// return WixCLRDialog.ShowAsMsiDialog(new CustomDialog(session)); /// } /// } /// ... /// public partial class CustomDialog : WixCLRDialog /// { /// private GroupBox groupBox1; /// private Button cancelBtn; /// ... /// </code> /// <para> /// The all communications with the installation in progress are to be done by modifying the MSI properties or executing MSI actions /// via <c>Session</c> object.</para> /// <para> /// When closing the dialog make sure you set the DeialogResul properly. <c>WixCLRDialog</c> offers three predefined routines for setting the /// DialogResult: /// <para>- MSINext</para> /// <para>- MSIBack</para> /// <para>- MSICancel</para> /// By invoking these routines from the corresponding event handlers you can control your MSI UI sequence: /// <code> /// void cancelBtn_Click(object sender, EventArgs e) /// { /// MSICancel(); /// } /// /// void nextBtn_Click(object sender, EventArgs e) /// { /// MSINext(); /// } /// /// void backBtn_Click(object sender, EventArgs e) /// { /// MSIBack(); /// } /// </code> /// </para> /// </summary> public partial class WixCLRDialog : Form { /// <summary> /// The MSI session /// </summary> public Session session; /// <summary> /// The WIN32 handle to the host window (parent MSI dialog). /// </summary> protected IntPtr hostWindow; /// <summary> /// Initializes a new instance of the <see cref="WixCLRDialog"/> class. /// <remarks> /// This constructor is to be used by the Visual Studio Form designer only. /// You should always use <c>WixCLRDialog(Session session)</c> constructor instead. /// </remarks> /// </summary> public WixCLRDialog() { InitializeComponent(); } /// <summary> /// Initializes a new instance of the <see cref="WixCLRDialog"/> class. /// </summary> /// <param name="session">The session.</param> public WixCLRDialog(Session session) { this.session = session; InitializeComponent(); } void InitializeComponent() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); } catch { } { try { if (this.DesignMode) return; this.VisibleChanged += form_VisibleChanged; this.FormClosed += WixPanel_FormClosed; this.Load += WixDialog_Load; Init(); } catch { } } } void WixDialog_Load(object sender, EventArgs e) { this.Text = Win32.GetWindowText(this.hostWindow); } /// <summary> /// Inits this instance. /// </summary> protected void Init() { //Debug.Assert(false); this.hostWindow = GetMsiForegroundWindow(); this.Opacity = 0.0005; this.Text = Win32.GetWindowText(this.hostWindow); #if DEBUG //System.Diagnostics.Debugger.Launch(); #endif foreach (Process p in Process.GetProcessesByName("msiexec")) try { this.Icon = Icon.ExtractAssociatedIcon(p.MainModule.FileName); //service process throws on accessing MainModule break; } catch { } } /// <summary> /// Gets the msi foreground window. /// </summary> /// <returns></returns> protected virtual IntPtr GetMsiForegroundWindow() { Process proc = null; var bundleUI = Environment.GetEnvironmentVariable("WIXSHARP_SILENT_BA_PROC_ID"); if (bundleUI != null) { int id = 0; if (int.TryParse(bundleUI, out id)) proc = Process.GetProcessById(id); } var bundlePath = session["WIXBUNDLEORIGINALSOURCE"]; if (bundlePath.IsNotEmpty()) { try { proc = Process.GetProcessesByName(Path.GetFileNameWithoutExtension(bundlePath)).Where(p => p.MainWindowHandle != IntPtr.Zero).FirstOrDefault(); } catch { } } if (proc == null) { proc = Process.GetProcessesByName("msiexec").Where(p => p.MainWindowHandle != IntPtr.Zero).FirstOrDefault(); } if (proc != null) { //IntPtr handle = proc.MainWindowHandle; //old algorithm IntPtr handle = MsiWindowFinder.GetMsiDialog(proc.Id); Win32.ShowWindow(handle, Win32.SW_RESTORE); Win32.SetForegroundWindow(handle); return handle; } else return IntPtr.Zero; } /// <summary> /// There is some strange resizing artifact (at least on Win7) when MoveWindow does not resize the window accurately. /// Thus special adjustment ('delta') is needed to fix the problem. /// <para> /// The delta value is used in the ReplaceHost method.</para> /// </summary> protected int delta = 4; /// <summary> /// 'Replaces' the current step dialog with the "itself". /// <para>It uses WIN32 API to hide the parent native MSI dialog and place managed form dialog (itself) /// at the same desktop location and with the same size as the parent.</para> /// </summary> protected void ReplaceHost() { try { Win32.RECT r; Win32.GetWindowRect(hostWindow, out r); Win32.MoveWindow(this.Handle, r.Left - delta, r.Top - delta, r.Right - r.Left + delta * 2, r.Bottom - r.Top + delta * 2, true); this.Opacity = 1; Application.DoEvents(); this.MaximumSize = this.MinimumSize = new Size(this.Width, this.Height); //prevent resizing hostWindow.Hide(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } } /// <summary> /// Restores parent native MSI dialog after the previous <c>ReplaceHost</c> call. /// </summary> protected void RestoreHost() { Win32.RECT r; Win32.GetWindowRect(this.Handle, out r); Win32.RECT rHost; Win32.GetWindowRect(hostWindow, out rHost); Win32.MoveWindow(hostWindow, r.Left + delta, r.Top + delta, rHost.Right - rHost.Left, rHost.Bottom - rHost.Top, true); hostWindow.Show(); this.Opacity = 0.01; Application.DoEvents(); } private void WixPanel_FormClosed(object sender, FormClosedEventArgs e) { RestoreHost(); } bool initialized = false; private void form_VisibleChanged(object sender, EventArgs e) { if (Visible) { if (!initialized) { initialized = true; ReplaceHost(); this.Visible = true; Application.DoEvents(); } } } /// <summary> /// Closes the dialog and sets the <c>this.DialogResult</c> to the 'DialogResult.Cancel' value ensuring the /// setup is canceled. /// </summary> public void MSICancel() { this.DialogResult = DialogResult.Cancel; Close(); } /// <summary> /// Closes the dialog and sets the <c>this.DialogResult</c> to the 'DialogResult.Retry' value ensuring the /// setup is resumed with the previous UI sequence dialog is displayed. /// </summary> public void MSIBack() { this.DialogResult = DialogResult.Retry; Close(); } /// <summary> /// Closes the dialog and sets the <c>this.DialogResult</c> to the 'DialogResult.OK' value ensuring the /// setup is resumed and the UI sequence advanced to the next step. /// </summary> public void MSINext() { this.DialogResult = DialogResult.OK; Close(); } /// <summary> /// Shows as specified managed dialog. /// <para>It uses WIN32 API to hide the parent native MSI dialog and place managed form dialog /// at the same desktop location and with the same size as the parent.</para> /// <para>It also ensures that after the managed dialog is closed the proper ActionResult is returned.</para> /// </summary> /// <param name="dialog">The dialog.</param> /// <returns>ActionResult value</returns> public static ActionResult ShowAsMsiDialog(WixCLRDialog dialog) { ActionResult retval = ActionResult.Success; try { using (dialog) { DialogResult result = dialog.ShowDialog(); if (result == DialogResult.OK) { dialog.session["Custom_UI_Command"] = "next"; retval = ActionResult.Success; } else if (result == DialogResult.Cancel) { dialog.session["Custom_UI_Command"] = "abort"; retval = ActionResult.UserExit; } if (result == DialogResult.Retry) { dialog.session["Custom_UI_Command"] = "back"; retval = ActionResult.Success; } } } catch (Exception e) { dialog.session.Log("Error: " + e.ToString()); retval = ActionResult.Failure; } #if DEBUG //System.Diagnostics.Debugger.Launch(); #endif return retval; } /// <summary> /// Gets the embedded MSI binary stream. /// </summary> /// <param name="binaryId">The binary id.</param> /// <returns>Stream instance</returns> public Stream GetMSIBinaryStream(string binaryId) { using (var sqlView = this.session.Database.OpenView("select Data from Binary where Name = '" + binaryId + "'")) { sqlView.Execute(); Stream data = sqlView.Fetch().GetStream(1); var retval = new MemoryStream(); int Length = 256; var buffer = new Byte[Length]; int bytesRead = data.Read(buffer, 0, Length); while (bytesRead > 0) { retval.Write(buffer, 0, bytesRead); bytesRead = data.Read(buffer, 0, Length); } return retval; } } } } internal class MsiWindowFinder { public static IntPtr GetMsiDialog(int processId) { var windows = EnumerateProcessWindowHandles(processId).Select(h => { var message = new StringBuilder(1000); SendMessage(h, WM_GETTEXT, message.Capacity, message); var wndText = message.ToString(); message.Length = 0; //clear prev content GetClassName(h, message, message.Capacity); var wndClass = message.ToString(); return new { Class = wndClass, Title = wndText, Handle = h }; }); var interactiveWindows = windows.Where(x => !string.IsNullOrEmpty(x.Title)); if (interactiveWindows.Any()) { if (interactiveWindows.Count() == 1) return interactiveWindows.First().Handle; else { var wellKnownDialogWindow = interactiveWindows.FirstOrDefault(x => x.Class == "MsiDialogCloseClass"); if (wellKnownDialogWindow != null) return wellKnownDialogWindow.Handle; } } return IntPtr.Zero; } private const uint WM_GETTEXT = 0x000D; [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, StringBuilder lParam); [DllImport("user32.dll")] static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount); delegate bool EnumThreadDelegate(IntPtr hWnd, IntPtr lParam); [DllImport("user32.dll")] static extern bool EnumThreadWindows(int dwThreadId, EnumThreadDelegate lpfn, IntPtr lParam); static IEnumerable<IntPtr> EnumerateProcessWindowHandles(int processId) { var handles = new List<IntPtr>(); foreach (ProcessThread thread in Process.GetProcessById(processId).Threads) EnumThreadWindows(thread.Id, (hWnd, lParam) => { handles.Add(hWnd); return true; }, IntPtr.Zero); return handles; } } //public static class ProcessExtensions //{ // private static string FindIndexedProcessName(int pid) // { // var processName = Process.GetProcessById(pid).ProcessName; // var processesByName = Process.GetProcessesByName(processName); // string processIndexdName = null; // for (var index = 0; index < processesByName.Length; index++) // { // processIndexdName = index == 0 ? processName : processName + "#" + index; // var processId = new PerformanceCounter("Process", "ID Process", processIndexdName); // if ((int) processId.NextValue() == pid) // { // return processIndexdName; // } // } // return processIndexdName; // } // private static Process FindPidFromIndexedProcessName(string indexedProcessName) // { // var parentId = new PerformanceCounter("Process", "Creating Process ID", indexedProcessName); // return Process.GetProcessById((int) parentId.NextValue()); // } // public static Process Parent(this Process process) // { // return FindPidFromIndexedProcessName(FindIndexedProcessName(process.Id)); // } //} ```
```objective-c namespace winrt::impl { template <typename T> struct fast_iterator { using iterator_concept = std::random_access_iterator_tag; using iterator_category = std::input_iterator_tag; using value_type = decltype(std::declval<T>().GetAt(0)); using difference_type = ptrdiff_t; using pointer = void; using reference = value_type; fast_iterator() noexcept = default; fast_iterator(T const& collection, uint32_t const index) noexcept : m_collection(&collection), m_index(index) {} fast_iterator& operator++() noexcept { ++m_index; return *this; } fast_iterator operator++(int) noexcept { auto previous = *this; ++m_index; return previous; } fast_iterator& operator--() noexcept { --m_index; return *this; } fast_iterator operator--(int) noexcept { auto previous = *this; --m_index; return previous; } fast_iterator& operator+=(difference_type n) noexcept { m_index += static_cast<uint32_t>(n); return *this; } fast_iterator operator+(difference_type n) const noexcept { return fast_iterator(*this) += n; } fast_iterator& operator-=(difference_type n) noexcept { return *this += -n; } fast_iterator operator-(difference_type n) const noexcept { return *this + -n; } difference_type operator-(fast_iterator const& other) const noexcept { WINRT_ASSERT(m_collection == other.m_collection); return static_cast<difference_type>(m_index) - static_cast<difference_type>(other.m_index); } reference operator*() const { return m_collection->GetAt(m_index); } reference operator[](difference_type n) const { return m_collection->GetAt(m_index + static_cast<uint32_t>(n)); } bool operator==(fast_iterator const& other) const noexcept { WINRT_ASSERT(m_collection == other.m_collection); return m_index == other.m_index; } bool operator<(fast_iterator const& other) const noexcept { WINRT_ASSERT(m_collection == other.m_collection); return m_index < other.m_index; } bool operator>(fast_iterator const& other) const noexcept { WINRT_ASSERT(m_collection == other.m_collection); return m_index > other.m_index; } bool operator!=(fast_iterator const& other) const noexcept { return !(*this == other); } bool operator<=(fast_iterator const& other) const noexcept { return !(*this > other); } bool operator>=(fast_iterator const& other) const noexcept { return !(*this < other); } friend fast_iterator operator+(difference_type n, fast_iterator it) noexcept { return it + n; } friend fast_iterator operator-(difference_type n, fast_iterator it) noexcept { return it - n; } private: T const* m_collection = nullptr; uint32_t m_index = 0; }; template <typename T> class has_GetAt { template <typename U, typename = decltype(std::declval<U>().GetAt(0))> static constexpr bool get_value(int) { return true; } template <typename> static constexpr bool get_value(...) { return false; } public: static constexpr bool value = get_value<T>(0); }; template <typename T, std::enable_if_t<!has_GetAt<T>::value, int> = 0> auto get_begin_iterator(T const& collection) -> decltype(collection.First()) { auto result = collection.First(); if (!result.HasCurrent()) { return {}; } return result; } template <typename T, std::enable_if_t<!has_GetAt<T>::value, int> = 0> auto get_end_iterator([[maybe_unused]] T const& collection) noexcept -> decltype(collection.First()) { return {}; } template <typename T, std::enable_if_t<has_GetAt<T>::value, int> = 0> fast_iterator<T> get_begin_iterator(T const& collection) noexcept { return { collection, 0 }; } template <typename T, std::enable_if_t<has_GetAt<T>::value, int> = 0> fast_iterator<T> get_end_iterator(T const& collection) { return { collection, collection.Size() }; } template <typename T, std::enable_if_t<has_GetAt<T>::value, int> = 0> auto rbegin(T const& collection) { return std::make_reverse_iterator(get_end_iterator(collection)); } template <typename T, std::enable_if_t<has_GetAt<T>::value, int> = 0> auto rend(T const& collection) { return std::make_reverse_iterator(get_begin_iterator(collection)); } using std::begin; using std::end; } ```
Sally Taylor MBE is an English journalist and presenter, best known for presenting BBC South Today. She attended The Abbey School, Reading, an independent school. Before beginning her career as a presenter and journalist, she was an English teacher at Winstanley Community College, Leicester. She has presented South Today, the flagship news programme of BBC South, since 1987. Taylor also writes a weekly column in the Southern Daily Echo. She had a Saturday morning show on Radio Solent for many years until February 2011. In 2003, Taylor successfully filled in when weather presenter Dorcas Henry collapsed live on air. Taylor hosted The Spending Review, The South Today Debate on BBC One with Naga Munchetty on 9 September 2010. She was awarded the MBE (Member of the Order of the British Empire) in the 2005 Queen's Birthday Honours List for her services to regional broadcasting. In October 2015, she was awarded an Honorary Doctor of Letters degree in recognition of her work in broadcasting and with local charities by the University of Winchester. She is described as a "top notch journalist and someone you can trust to tell you the news without fear or favour" Taylor appeared in The Vagina Monologues during its UK run at Southampton's Mayflower Theatre in 2010. References External links in BBC - South Today - Presenters - Profile Radio Solent Daily Echo article BBC newsreaders and journalists Mass media people from Reading, Berkshire Living people People educated at The Abbey School Members of the Order of the British Empire Year of birth missing (living people)
Lithodraba is a genus of flowering plants belonging to the family Brassicaceae. Its native range is Argentina. Species: Lithodraba mendocinensis (Hauman) Boelcke References Brassicaceae Brassicaceae genera
The earliest Christadelphian hymn book published was the "Sacred Melodist" which was published by Benjamin Wilson in Geneva, Illinois in 1860. The next was the hymn book published for the use of Baptised Believers in the Kingdom of God (an early name for Christadelphians) by George Dowie in Edinburgh in 1864. "The Golden Harp" was put together in 1864 by Scotsman Robert Roberts. This was then followed a year later by first 'official' (as the Christadelphians had not been named as such until then) book, compiled also by Roberts, and was called simply "The Christadelphian Hymn Book." It contained 223 psalms/hymns and 50 anthems but no music. In 1869 Roberts produced a version of this book with music included. The first major revision of the official book took place in 1932 under the guidance of Charles Curwen Walker of Birmingham, England, the editor of The Christadelphian magazine. There were 73 new songs added, including some originals. It was further expanded in 1962 by John Carter, also editor of the magazine, and L G Sargent. Its simple monotone front cover with gold writing gave it the nickname "The Black Hymn Book." The last major revision, this time by various members of the denomination, was in 2002. Subtitled Psalms, Hymns and Spiritual Songs the cover colour was changed to green, the number of songs increased to 438 and the hymns and anthems were no longer in separate sections. As most Christadelphians own their own hymn books (i.e. they are not communal) many get their names or initials embossed on them. The 2002 version of the book (commonly called "The Green Book") is also available in E-book format from The Christadelphian publishing office. Christadelphian hymnody makes considerable use of the hymns of the Anglican and British Protestant traditions (even in US ecclesias the hymnody is typically more British than American). In many Christadelphian hymn books a sizeable proportion of hymns are drawn from the Scottish Psalter and non-Christadelphian hymn-writers including Isaac Watts, Charles Wesley, William Cowper and John Newton. Despite incorporating non-Christadelphian hymns however, Christadelphian hymnody preserves the essential teachings of the community. Other works The Sunday School Union Hymn Book (1897) this book had 137 hymns. Some of the editions used tonic sol-fa notation. This was published in 1897, 1913, and 1936. 'Suffolk St' Christadelphian Hymn Book (1903), compiled by CJ Caldicott, J Bland, J Hawkins, HH Horsman, T Turner, W Potter, C Jones (Birmingham). Caldicott was a piano technician and wrote hymns such as We shall be like him. Caldicott made an appeal for original compositions as some of the copyright costs for tunes were upwards of £3 each. Christadelphian Youth Hymnal (1952) was compiled by a committee under the editorship of J Carter, some of the original hymns written for this hymnal included LG Sargent's High over lashing waves our God is throned' and D Martindale's Angels did sing on Behl'ems hill set to the medieval VULPIUS tune. The major feature of this publication was the addition of counter-melodies/descants by D Crosby, arranged and written specifically for young voices. Hymns for Young People (date unknown) was published by the Christadelphian Sunday School Association, South Australia. The Joy Book (date unknown), this publication contains youth pieces, including Sing Hosanna. The music is written in lead sheet format. Sing to the Lord (1978), this widely-used Sunday School hymnal was published in Birmingham and contains some original works by R Standeven. Both words-with-music, and words-only editions were produced. Praise the Lord (1993) this publication, compiled by C Clementson (Hoddesdon), contain a wide range of musical styles including hymns, Taize pieces, Jewish-styled songs, anthems, and modern songs. Praise the Lord (2000) the second version of Praise the Lord contained the original 130 songs, plus 70 additional songs. Again, a wide range of music has been compiled, from hymn tunes by O Gibbons (1583-1625), to newly written works by C Miles and other Christadelphian composers. Worship (2008), also known as "Worship 1" or "The Purple Book" it first published in 2008, by c.a.t. (under the NCC umbrella) responding to a need within the Christadelphian community for usable original music. The 2nd edition, published in October 2010, has additions and corrections but essentially is the same book from 2008. The 2nd edition also has capo chords for some songs. Worship consists of piano/vocal, SATB, and lead sheet arrangements. Many of the songs have already been recorded in Australia and the UK. A wide range of musical styles are within the book, including contemporary pieces, choral pieces, ballads, hymns, rounds, works from original musicals, and so on. There are additional Worship resources at the c.a.t. site including files for transposing instruments and audio files of most of the Worship songs. Worship 2 (2016) commonly called "The Orange Book", contains 133 new pieces consisting of congregational and individual music; hymns, songs, anthems, meditations; all intended for supplementing existing personal and congregational music. Music is presented as piano/vocal scores and choral arrangements to suit different uses and occasions. Some works may suit congregational singing while others will need rehearsing as items for events. Praise the Lord 2016 (2016) contains 37 new songs with words and music, as a supplement to the core song book. While the books mentioned above (or translations thereof) are often used outside the English-speaking world there are a variety of different books in many different languages. References Hymnals Christadelphianism
```html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Function Template combine</TITLE> <LINK REL="stylesheet" HREF="../../../../boost.css"> <LINK REL="stylesheet" HREF="../theme/iostreams.css"> </HEAD> <BODY> <!-- Begin Banner --> <H1 CLASS="title">Function Template <CODE>combine</CODE></H1> <HR CLASS="banner"> <!-- End Banner --> <DL class="page-index"> <DT><A href="#description">Description</A></DT> <DT><A href="#headers">Headers</A></DT> <DT><A href="#synopsis">Synopsis</A></DT> </DL> <A NAME="description"></A> <H2>Description</H2> <P> The class template <CODE>combination</CODE> takes an <A HREF="../concepts/input_filter.html">InputFilter</A>/<A HREF="../concepts/output_filter.html">OutputFilter</A> pair or a <A HREF="../concepts/source.html">Source</A>/<A HREF="../concepts/sink.html">Sink</A> pair and yields a Filter or Device which performs input using the first component and output using the second. The function template <CODE>combine</CODE> takes an <A HREF="../concepts/input_filter.html">InputFilter</A>/<A HREF="../concepts/output_filter.html">OutputFilter</A> pair or a <A HREF="../concepts/source.html">Source</A>/<A HREF="../concepts/sink.html">Sink</A> pair and returns an appropriate specialization of <CODE>combination</CODE>. </P> <A NAME="headers"></A> <H2>Headers</H2> <DL> <DT><A CLASS="header" HREF="../../../../boost/iostreams/combine.hpp"><CODE>&lt;boost/iostreams/combine.hpp&gt;</CODE></A></DT> </DL> <A NAME="synopsis"></A> <H2>Synopsis</H2> <PRE CLASS="broken_ie"><SPAN CLASS="keyword">namespace</SPAN> boost { <SPAN CLASS="keyword">namespace</SPAN> iostreams { <SPAN CLASS="keyword">template</SPAN>&lt;<SPAN CLASS="keyword">typename</SPAN> In, <SPAN CLASS="keyword">typename</SPAN> Out&gt; <SPAN CLASS="keyword">class</SPAN> combination; <SPAN CLASS="keyword">template</SPAN>&lt;<SPAN CLASS="keyword">typename</SPAN> In, <SPAN CLASS="keyword">typename</SPAN> Out&gt; combination&lt;In, Out&gt; combine(<SPAN CLASS="keyword">const</SPAN> In&amp; in, <SPAN CLASS="keyword">const</SPAN> Out&amp; out); } } <SPAN CLASS="comment">// End namespace boost::io</SPAN></PRE> <!-- Begin Footer --> <HR> <P CLASS="copyright"> </P> <!-- End Footer --> </BODY> ```
Heather Shakespeare OAM (25 July 1909 – 28 September 2008) was an important person in the early days of The Canberra Times. She was also a foundation member of the Canberra and District Historical Society. Early life She was born Heather Gladys Cameron, at Weetangera, a sheep farm near what is now the Canberra suburb of Belconnen. She was one of five children. She had a scholarship to attend Goulburn High School, which paid for her train fare and boarding expenses. She later completing a secretarial course in Canberra. She got her first job with the Queanbeyan Age newspaper, but left to work in a local motor garage. She then worked as a stenographer at the Australian General Electric Company until it closed in 1929, at the beginning of the Great Depression. Heather, aged 19, was then employed as secretary to the Managing Director at the Canberra Times. The Canberra Times had started publication on 3 September 1926. Newspapers At the Canberra Times, she did a lot of other jobs as well as being secretary; she served at the counter, did the banking, paid the wages, as well as all the company correspondence. For many years she was the only female employed by the company. In 1938 she became Company Secretary after the paper's founder and Managing Director, Thomas (T.M.) Shakespeare, died. She eventually became a company director as well. In 1962 she became engaged to the Managing Director and Board Chairman, Arthur Shakespeare. Arthur had been the first editor of the paper. She resigned from the company and they were married on 12 January 1963 at St Ninian's Presbyterian Church. The Canberra Times was sold to John Fairfax Limited in 1964. Arthur Shakespeare continued to work as chairman of a board that Fairfax set up to oversee the paper. Arthur died in 1975. The Canberra Times was later sold to Kerry Packer's Consolidated Press. Later life Heather was interested in history and became one of the founding members of the Canberra and District Historical Society. She was an active member of the community and was involved in the scouting movement, the Young Women's Christian Association (YWCA) (President of the board from 1955-1960), the Business and Professional Women's Club, and the Country Women's Association. She was a charter member and later president of the Soroptomists International of Canberra. In 1997, she was awarded the Medal of the Order of Australia (OAM). References External sources Heather Shakespeare interviewed by John Farquharson 1909 births 2008 deaths Recipients of the Medal of the Order of Australia The Canberra Times people
```javascript 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = series; var _parallel = require('./internal/parallel'); var _parallel2 = _interopRequireDefault(_parallel); var _eachOfSeries = require('./eachOfSeries'); var _eachOfSeries2 = _interopRequireDefault(_eachOfSeries); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Run the functions in the `tasks` collection in series, each one running once * the previous function has completed. If any functions in the series pass an * error to its callback, no more functions are run, and `callback` is * immediately called with the value of the error. Otherwise, `callback` * receives an array of results when `tasks` have completed. * * It is also possible to use an object instead of an array. Each property will * be run as a function, and the results will be passed to the final `callback` * as an object instead of an array. This can be a more readable way of handling * results from {@link async.series}. * * **Note** that while many implementations preserve the order of object * properties, the [ECMAScript Language Specification](path_to_url#sec-8.6) * explicitly states that * * > The mechanics and order of enumerating the properties is not specified. * * So if you rely on the order in which your series of functions are executed, * and want this to work on all platforms, consider using an array. * * @name series * @static * @memberOf module:ControlFlow * @method * @category Control Flow * @param {Array|Iterable|Object} tasks - A collection containing * [async functions]{@link AsyncFunction} to run in series. * Each function can complete with any number of optional `result` values. * @param {Function} [callback] - An optional callback to run once all the * functions have completed. This function gets a results array (or object) * containing all the result arguments passed to the `task` callbacks. Invoked * with (err, result). * @example * async.series([ * function(callback) { * // do some stuff ... * callback(null, 'one'); * }, * function(callback) { * // do some more stuff ... * callback(null, 'two'); * } * ], * // optional callback * function(err, results) { * // results is now equal to ['one', 'two'] * }); * * async.series({ * one: function(callback) { * setTimeout(function() { * callback(null, 1); * }, 200); * }, * two: function(callback){ * setTimeout(function() { * callback(null, 2); * }, 100); * } * }, function(err, results) { * // results is now equal to: {one: 1, two: 2} * }); */ function series(tasks, callback) { (0, _parallel2.default)(_eachOfSeries2.default, tasks, callback); } module.exports = exports['default']; ```
```java /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.oracle.graal.pointsto.heap.value; import java.util.Objects; import java.util.function.BooleanSupplier; import java.util.function.Supplier; /** * Interface for accessing hosted heap values. It provides mechanisms for accessing hosted heap * values either eagerly or lazily. * <p/> * Eager heap values are objects whose state doesn't change during heap snapshotting. Their value is * immediately available. * <p/> * Lazy heap values are objects whose state can change during heap snapshotting, therefore reading * the actual value is delayed. Instead, both a value supplier and an availability supplier are * installed. The implementation guarantees that the value is indeed available, by checking the * availability supplier, before it attempts to retrieve it. */ public interface ValueSupplier<V> { static <V> ValueSupplier<V> eagerValue(V value) { return new EagerValueSupplier<>(Objects.requireNonNull(value)); } static <V> ValueSupplier<V> lazyValue(Supplier<V> valueSupplier, BooleanSupplier isAvailable) { return new LazyValueSupplier<>(valueSupplier, isAvailable); } /** Checks if the value is available. */ boolean isAvailable(); /** * Retrieves the value, if available. Attempting to access a value before it is available * results in error. */ V get(); } ```
Bondarevskoye () is a rural locality (a selo) in Kosyakinsky Selsoviet, Kizlyarsky District, Republic of Dagestan, Russia. The population was 507 as of 2010. There are 5 streets. Geography Bondarevskoye is located 12 km northwest of Kizlyar (the district's administrative centre) by road. Mikheyevskoye and Novogeorgiyevka are the nearest rural localities. Nationalities Dargins, Avars and Russians live there. References Rural localities in Kizlyarsky District
```c /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "stdlib/strided/napi/dmskmap.h" #include "stdlib/strided/base/dmskmap.h" #include <node_api.h> #include <stdint.h> #include <stdlib.h> #include <assert.h> /** * Invokes a strided array interface which applies a unary callback to a double-precision floating-point strided input array according to a strided mask array and assigns results to a double-precision floating-point strided output array. * * ## Notes * * - This function expects that the callback `info` argument provides access to the following JavaScript arguments: * * - `N`: number of indexed elements * - `X`: input array * - `strideX`: `X` stride length * - `Mask`: mask array * - `strideMask`: `Mask` stride length * - `Y`: destination array * - `strideY`: `Y` stride length * * @param env environment under which the function is invoked * @param info callback data * @param fcn unary callback */ void stdlib_strided_napi_dmskmap( napi_env env, napi_callback_info info, double (*fcn)( double ) ) { napi_status status; size_t argc = 7; napi_value argv[ 7 ]; status = napi_get_cb_info( env, info, &argc, argv, NULL, NULL ); assert( status == napi_ok ); if ( argc != 7 ) { status = napi_throw_error( env, NULL, "invalid invocation. Must provide 7 arguments." ); assert( status == napi_ok ); return; } napi_valuetype vtype0; status = napi_typeof( env, argv[ 0 ], &vtype0 ); assert( status == napi_ok ); if ( vtype0 != napi_number ) { status = napi_throw_type_error( env, NULL, "invalid argument. First argument must be a number." ); assert( status == napi_ok ); return; } bool res1; status = napi_is_typedarray( env, argv[ 1 ], &res1 ); assert( status == napi_ok ); if ( res1 == false ) { status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must be a Float64Array." ); assert( status == napi_ok ); return; } napi_valuetype vtype2; status = napi_typeof( env, argv[ 2 ], &vtype2 ); assert( status == napi_ok ); if ( vtype2 != napi_number ) { status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must be a number." ); assert( status == napi_ok ); return; } bool res3; status = napi_is_typedarray( env, argv[ 3 ], &res3 ); assert( status == napi_ok ); if ( res3 == false ) { status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must be a Uint8Array." ); assert( status == napi_ok ); return; } napi_valuetype vtype4; status = napi_typeof( env, argv[ 4 ], &vtype4 ); assert( status == napi_ok ); if ( vtype4 != napi_number ) { status = napi_throw_type_error( env, NULL, "invalid argument. Fifth argument must be a number." ); assert( status == napi_ok ); return; } bool res5; status = napi_is_typedarray( env, argv[ 5 ], &res5 ); assert( status == napi_ok ); if ( res5 == false ) { status = napi_throw_type_error( env, NULL, "invalid argument. Sixth argument must be a Float64Array." ); assert( status == napi_ok ); return; } napi_valuetype vtype6; status = napi_typeof( env, argv[ 6 ], &vtype6 ); assert( status == napi_ok ); if ( vtype6 != napi_number ) { status = napi_throw_type_error( env, NULL, "invalid argument. Seventh argument must be a number." ); assert( status == napi_ok ); return; } int64_t N; status = napi_get_value_int64( env, argv[ 0 ], &N ); assert( status == napi_ok ); int64_t strideX; status = napi_get_value_int64( env, argv[ 2 ], &strideX ); assert( status == napi_ok ); int64_t strideMask; status = napi_get_value_int64( env, argv[ 4 ], &strideMask ); assert( status == napi_ok ); int64_t strideY; status = napi_get_value_int64( env, argv[ 6 ], &strideY ); assert( status == napi_ok ); napi_typedarray_type vtype1; size_t xlen; void *X; status = napi_get_typedarray_info( env, argv[ 1 ], &vtype1, &xlen, &X, NULL, NULL ); assert( status == napi_ok ); if ( vtype1 != napi_float64_array ) { status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must be a Float64Array." ); assert( status == napi_ok ); return; } if ( (N-1)*llabs(strideX) >= (int64_t)xlen ) { status = napi_throw_range_error( env, NULL, "invalid argument. Second argument has insufficient elements based on the associated stride and the number of indexed elements." ); assert( status == napi_ok ); return; } napi_typedarray_type vtype3; size_t mlen; void *Mask; status = napi_get_typedarray_info( env, argv[ 3 ], &vtype3, &mlen, &Mask, NULL, NULL ); assert( status == napi_ok ); if ( vtype3 != napi_uint8_array ) { status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must be a Uint8Array." ); assert( status == napi_ok ); return; } if ( (N-1)*llabs(strideMask) >= (int64_t)mlen ) { status = napi_throw_range_error( env, NULL, "invalid argument. Fourth argument has insufficient elements based on the associated stride and the number of indexed elements." ); assert( status == napi_ok ); return; } napi_typedarray_type vtype5; size_t ylen; void *Y; status = napi_get_typedarray_info( env, argv[ 5 ], &vtype5, &ylen, &Y, NULL, NULL ); assert( status == napi_ok ); if ( vtype5 != napi_float64_array ) { status = napi_throw_type_error( env, NULL, "invalid argument. Sixth argument must be a Float64Array." ); assert( status == napi_ok ); return; } if ( (N-1)*llabs(strideY) >= (int64_t)ylen ) { status = napi_throw_range_error( env, NULL, "invalid argument. Sixth argument has insufficient elements based on the associated stride and the number of indexed elements." ); assert( status == napi_ok ); return; } stdlib_strided_dmskmap( N, (double *)X, strideX, (uint8_t *)Mask, strideMask, (double *)Y, strideY, fcn ); return; } ```
A Natural Woman is a 1969 album by Peggy Lee. It was arranged and conducted by Bobby Bryant and Mike Melvoin. John Engstead took the cover photograph. Track listing "(All of a Sudden) My Heart Sings" (Jean Blanvillain, Henri Herpin, Harold Rome) - 2:15 "Don't Explain" (Billie Holiday, Arthur Herzog Jr.) - 3:57 "Can I Change My Mind?" (Barry Despenza, Carl Wolfolk) - 2:15 "Lean On Me" (Peggy Lee, Mundell Lowe, Mike Melvoin) - 2:42 "(Sittin' on) the Dock of the Bay" (Steve Cropper, Otis Redding) - 2:37 "(You Make Me Feel Like) A Natural Woman" (Gerry Goffin, Carole King, Jerry Wexler) - 3:01 "Everyday People" (Sylvester Stewart) - 2:38 "Please Send Me Someone to Love" (Percy Mayfield) - 4:05 "Spinning Wheel" (David Clayton-Thomas) - 2:35 "Living Is Dying Without You" (Al Kasha, Joel Hirschhorn) - 3:27 "I Think It's Going to Rain Today" (Randy Newman) - 3:15 Notes The recording sessions for this album took place at the Capitol Tower in Hollywood, California. During the sessions for this album, Lee also recorded the songs "No More" (which was included on the 2008 Collectors' Choice Music CD reissue of Make It With You and Where Did They Go), and "We're Gonna Make It" (which remains unreleased). References Peggy Lee Discography 1969 albums Peggy Lee albums Albums arranged by Bobby Bryant (musician) Albums conducted by Bobby Bryant (musician) Albums arranged by Mike Melvoin Albums conducted by Mike Melvoin Capitol Records albums
The Khamis Mosque (; transliterated: Masǧid al-ḫamīs) is believed to be the first mosque in Bahrain, built during the era of the Umayyad caliph Umar II. According to Al Wasat journalist Kassim Hussain, other sources mention that it was built in a later era during the rule of Uyunids with one minaret. The second was built two centuries later during the rule of Usfurids. The identical twin minarets of this ancient Islamic monument make it easily noticeable as one drives along the Shaikh Salman Road in Khamis. History It is considered to be one of the oldest mosques in the region, as its foundation is believed to have been laid as early as 692 CE. An inscription found on the site, however, suggests a foundation date of sometime during the 11th century. It has since been rebuilt twice in both the 14th and 15th centuries, when the minarets were constructed. The Khamis mosque has been partially restored recently. Structure The present building has two main phases: An early prayer hall with a flat roof supported by wooden columns dated to the 14th century. A later section of the flat roof was added, supported on arches resting on thick masonry piers (which have been dated to 1339) Islam was propagated to Bahrain in the 7th century CE when Muhammad sent an envoy Al-Ala'a Al-Hadrami, preaching Islam to Munzir ibn Sawa Al Tamimi, the Governor of Qatar and Bahrain at the time. Mihrab Slab Mihrab slab was a limestone slab, in the form of a mihrab. The slab was discovered during restoration works on the mosque and is believed to have originated from the 12th century CE. Inscriptions of two verses from the Qur'an are present on the slab, Qur'anic surah XXI, verses 34–35, which are normally used on gravestones. See also List of archaeological sites in Bahrain History of Bahrain References Mosques in Manama
```java package com.example.rekognition; // snippet-start:[rekognition.java2.recognize_image_orientation.main] // snippet-start:[rekognition.java2.recognize_image_orientation.import] import software.amazon.awssdk.core.SdkBytes; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.rekognition.RekognitionClient; import software.amazon.awssdk.services.rekognition.model.RecognizeCelebritiesRequest; import software.amazon.awssdk.services.rekognition.model.Image; import software.amazon.awssdk.services.rekognition.model.RecognizeCelebritiesResponse; import software.amazon.awssdk.services.rekognition.model.Celebrity; import software.amazon.awssdk.services.rekognition.model.ComparedFace; import software.amazon.awssdk.services.rekognition.model.RekognitionException; import software.amazon.awssdk.services.rekognition.model.BoundingBox; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.*; import java.util.List; // snippet-end:[rekognition.java2.recognize_image_orientation.import] /** * Before running this Java V2 code example, set up your development * environment, including your credentials. * * For more information, see the following documentation topic: * * path_to_url */ public class RotateImage { public static void main(String[] args) { final String usage = """ Usage: <sourceImage> Where: sourceImage - The path to the image (for example, C:\\AWS\\pic1.png).\s """; if (args.length != 1) { System.out.println(usage); System.exit(1); } String sourceImage = args[0]; Region region = Region.US_EAST_1; RekognitionClient rekClient = RekognitionClient.builder() .region(region) .build(); System.out.println("Locating celebrities in " + sourceImage); recognizeAllCelebrities(rekClient, sourceImage); rekClient.close(); } public static void recognizeAllCelebrities(RekognitionClient rekClient, String sourceImage) { try { BufferedImage image; InputStream sourceStream = new FileInputStream(sourceImage); SdkBytes sourceBytes = SdkBytes.fromInputStream(sourceStream); image = ImageIO.read(sourceBytes.asInputStream()); int height = image.getHeight(); int width = image.getWidth(); Image souImage = Image.builder() .bytes(sourceBytes) .build(); RecognizeCelebritiesRequest request = RecognizeCelebritiesRequest.builder() .image(souImage) .build(); RecognizeCelebritiesResponse result = rekClient.recognizeCelebrities(request); List<Celebrity> celebs = result.celebrityFaces(); System.out.println(celebs.size() + " celebrity(s) were recognized.\n"); for (Celebrity celebrity : celebs) { System.out.println("Celebrity recognized: " + celebrity.name()); System.out.println("Celebrity ID: " + celebrity.id()); ComparedFace face = celebrity.face(); ShowBoundingBoxPositions(height, width, face.boundingBox(), result.orientationCorrectionAsString()); } } catch (RekognitionException | FileNotFoundException e) { System.out.println(e.getMessage()); System.exit(1); } catch (IOException e) { e.printStackTrace(); } } public static void ShowBoundingBoxPositions(int imageHeight, int imageWidth, BoundingBox box, String rotation) { float left; float top; if (rotation == null) { System.out.println("No estimated estimated orientation."); return; } // Calculate face position based on the image orientation. switch (rotation) { case "ROTATE_0" -> { left = imageWidth * box.left(); top = imageHeight * box.top(); } case "ROTATE_90" -> { left = imageHeight * (1 - (box.top() + box.height())); top = imageWidth * box.left(); } case "ROTATE_180" -> { left = imageWidth - (imageWidth * (box.left() + box.width())); top = imageHeight * (1 - (box.top() + box.height())); } case "ROTATE_270" -> { left = imageHeight * box.top(); top = imageWidth * (1 - box.left() - box.width()); } default -> { System.out.println("No estimated orientation information. Check Exif data."); return; } } System.out.println("Left: " + (int) left); System.out.println("Top: " + (int) top); System.out.println("Face Width: " + (int) (imageWidth * box.width())); System.out.println("Face Height: " + (int) (imageHeight * box.height())); } } // snippet-end:[rekognition.java2.recognize_image_orientation.main] ```
Allocasuarina monilifera, commonly known as necklace sheoak, is a species of flowering plant in the family Casuarinaceae and is endemic to Tasmania. It is usually a monoecious, low-growing shrub that has branchlets up to long, the leaves reduced to scales in whorls of six to nine, the fruiting cones long containing winged seeds long. Description Allocasuarina monilifera is usually a monoecious shrub that typically grows to high and wide. Its branchlets are long, the leaves reduced to erect to slightly spreading, scale-like teeth long, arranged in whorls of six to nine around the branchlets. The sections of branchlet between the leaf whorls are long, wide and are slightly waxy. Male flowers are arranged in spikes long, the anthers long. Female cones are cylindrical, on a peduncle long. Mature cones are long and in diameter containing winged seeds long. Taxonomy Necklace sheoak was first formally described in 1967 by Lawrie Johnson who gave it the name Casuarina monilifera The Student's Flora of Tasmamia from specimens he collected at Eaglehawk Neck in 1949. In 1982, Johnson transferred the species to Allocasuarina as A. monilifera in the Journal of the Adelaide Botanic Gardens. The specific epithet, (monilifera) means "necklace-bearing". Distribution and habitat Allocasuarina monilifera grows in heath and woodland in dry coastal areas of northern and eastern Tasmania, on Flinders Island and the islands of the Kent Group in Bass Strait. References External links Occurrence data for Allocasuarina monilifera from The Australasian Virtual Herbarium monilifera Endemic flora of Tasmania Fagales of Australia Plants described in 1982 Taxa named by Lawrence Alexander Sidney Johnson
Ras il-Wardija is a promontory in the limits of San Lawrenz, on the southwest coast of Gozo, Malta. It contains the remains of a Punic-Roman sanctuary, which was excavated by Italian archaeologists in the 1960s. The area is privately owned and it is currently in a dilapidated state. The site Ras il-Wardija was probably first inhabited in the Bronze Age, in around 1500 BC. In around the 3rd century BC, during the Punic period, a religious complex (probably a nymphaeum) was established in the area. Since the site is clearly visible from the sea, it might have also served as a beacon for ships travelling between the Maltese Islands and North Africa. The site remained in use throughout the Roman period. Carved crosses on the walls suggest that the site eventually became a Christian place of worship. The site remained in use until around the 4th century AD. A hermitage might have existed in the area during the medieval period. The main structural elements of the site are: a rock-hewn rectangular chamber, with a number of niches in the walls a T-shaped rock-hewn corridor leading to the chamber a water reservoir and a bell-shaped well, both rock-hewn the remains of an external masonry structure including an altar The masonry structure has some similarities to the remains of the Punic-Roman sanctuary at Tas-Silġ in Marsaxlokk. Excavations and recent history The area around Ras il-Wardija was used for defensive purposes during World War II. The site was first excavated by the Missione Archaeologica Italiana a Malta (Archaeological Mission of Malta) between 1964 and 1967. The temple was well preserved until the excavations, but it has since deteriorated. On 30 March 1988, it was discovered that an ancient graffito carved on one of the walls of the sanctuary had been stolen. The graffito shows a human figure with outstretched arms, in the shape of a cross. It has been suggested that the figure represents the Punic goddess Tanit, but it might also be a medieval representation of a Christian cross. The graffito was recovered in June 2011, and it is now on display at the Gozo Museum of Archaeology in the Cittadella. The land on which the sanctuary is located is privately owned by George Spiteri, and permission may be required in order to access the site. It is listed on the National Inventory of the Cultural Property of the Maltese Islands. References Populated places established in the 2nd millennium BC 1964 archaeological discoveries San Lawrenz Phoenician temples Temples in Malta Archaeological sites in Malta National Inventory of the Cultural Property of the Maltese Islands Phoenician colonies in Malta Tanit World War II sites in Malta
```javascript OC.L10N.register( "files_versions", { "Versions" : "Versiones", "This application automatically maintains older versions of files that are changed." : "Esta aplicacin caltin automticamente les versiones antiges de los ficheros que camudaron.", "This application automatically maintains older versions of files that are changed. When enabled, a hidden versions folder is provisioned in every user's directory and is used to store old file versions. A user can revert to an older version through the web interface at any time, with the replaced file becoming a version. The app automatically manages the versions folder to ensure the account does not run out of Quota because of versions.\n\t\tIn addition to the expiry of versions, the versions app makes certain never to use more than 50% of the account's currently available free space. If stored versions exceed this limit, the app will delete the oldest versions first until it meets this limit. More information is available in the Versions documentation." : "Esta aplicacin caltin automticamente les versiones antiges de los ficheros que camudaron. Cuando s'activa, crease una carpeta de versiones anubrida p'atroxar les versiones antiges de los ficheros. Los usuarios puen recuperar una versin anterior pente la interfaz web en cualesquier momentu y el ficheru trocu convirtese nun versin. L'aplicacin xestiona automticamente la carpeta de versiones p'asegurar de que la cuenta nun escosa la cuota pola mor de les versiones.\n\t\tAms de la caducid de les versiones, l'aplicacin Versiones garantiza qu'enxams nun s'usa ms del 50% d'espaciu llibre disponible pa la cuenta. Si les versiones atroxaes superen esta llende, l'aplicacin va desaniciar les primeres versiones ms antiges hasta que se respete esta llende. Tienes ms informacin disponible na documentacin de Versiones.", "Name this version" : "Nomar esta versin", "Edit version name" : "Editar el nome de la versin", "Compare to current version" : "Comparar cola versin actual", "Restore version" : "Restaurar la versin", "Download version" : "Baxar la versin", "Delete version" : "Desaniciar la versin", "Current version" : "Versin actual", "Initial version" : "Versin inicial", "Version name" : "Nome de la versin", "Named versions are persisted, and excluded from automatic cleanups when your storage quota is full." : "Les versiones con nome caltinense y esclinse de los borraos automticos cuando la cuota del discu ta completa.", "Remove version name" : "Quitar el nome de la versin", "Save version name" : "Guardar el nome de la versiones", "Initial version restored" : "Restaurse la versin inicial", "Version restored" : "Restaurse la versin", "Could not restore version" : "Nun se pudo restaurar la versin", "Could not set version label" : "Nun se pudo afitar la etiqueta de la versin", "Could not delete version" : "Nun se pudo desaniciar la versin", "${version.label} restored" : "Restaurse ${version.label}", "This application automatically maintains older versions of files that are changed. When enabled, a hidden versions folder is provisioned in every user's directory and is used to store old file versions. A user can revert to an older version through the web interface at any time, with the replaced file becoming a version. The app automatically manages the versions folder to ensure the user does not run out of Quota because of versions.\n\t\tIn addition to the expiry of versions, the versions app makes certain never to use more than 50% of the user's currently available free space. If stored versions exceed this limit, the app will delete the oldest versions first until it meets this limit. More information is available in the Versions documentation." : "Esta aplicacin caltin automticamente les versiones antiges de los ficheros que camudaron. Cuando s'activa, crease una carpeta de versiones anubrida p'atroxar les versiones antiges de los ficheros. Los usuarios puen recuperar una versin anterior pente la interfaz web en cualesquier momentu y el ficheru trocu convirtese nun versin. L'aplicacin xestiona automticamente la carpeta de versiones p'asegurar de que l'usuariu nun escosa la cuota pola mor de les versiones.\n\t\tAms de la caducid de les versiones, l'aplicacin Versiones garantiza qu'enxams nun s'usa ms del 50% d'espaciu llibre disponible pal usuariu. Si les versiones atroxaes superen esta llende, l'aplicacin va desaniciar les primeres versiones ms antiges hasta que se respete esta llende. Tienes ms informacin disponible na documentacin de Versiones." }, "nplurals=2; plural=(n != 1);"); ```
Anatoliy Petrovych Fedoruk (, born 10 May 1972) is a Ukrainian politician serving as mayor of Bucha, Kyiv Region, Ukraine since 7 April 1998. He is Chairman of the Board of the Kyiv Regional Branch of the Association of Ukrainian Cities. Biography In 1992 and 1993 Anatoly Fedoruk was a history teacher at a secondary school in his native Velyka Medvedivka, Khmelnytska Oblast. From 1993 to 1997 he was mayor of the local municipality. In 1997 and 1998 Fedoruk was teacher at a Bucha secondary orphanage. Fedoruk was first elected mayor of Bucha in 1998; he was reelected in 2006, 2010, 2015 and 2020. In 2010 he was elected as a candidate of the pro-Russian Party of Regions. In 2015 he was elected for New Faces and in 2020 as a candidate of Servant of the People. In 2011 Fedoruk became Chairman of the Board of the Kyiv Regional Branch of the Association of Ukrainian Cities. In the 2014 Ukrainian parliamentary election, this time as a self-nominated candidate, in electoral district 95, Fedoruk failed to win a parliamentary seat, losing to Mykhailo Havryliuk. In 2017 Fedoruk was suspected of abuse of power. Hearings have been going on for several years but are constantly postponed. Anatoly Fedoruk attracted international attention in the aftermath of the Battle of Bucha that lasted from 27 February 2022 to 31 March 2022, during which time the Bucha massacre occurred. In an interview with the Italian newspaper Corriere della Sera published on 5 April 2022, he said that the Russian soldiers had killed Bucha residents "out of anger or for enjoyment". The same day, in a video message he urged in particular medical doctors and utility company employees to return to the city. Awards Order of Merit 2d class (August 23, 2021) Order of Merit 3d class (December 4, 2007) References Living people 1972 births Mayors of places in Ukraine People from Khmelnytskyi Oblast Party of Regions politicians Servant of the People (political party) politicians Recipients of the Order of Merit (Ukraine), 3rd class Recipients of the Order of Merit (Ukraine), 2nd class
```elixir defmodule Distillery.Releases.Appup.Transform do @moduledoc """ A transform is an appup compilation pass which receives a list of appup instructions, along with metadata about those instructions, such as the source application, the source and target versions involved, and an optional list of configuration options for the transform. The job of a transform is to, well, apply a transformation to the instruction set, in order to accomplish some objective that one desires to be automated. A trivial example of one such transform would be a transform which ensures the purge mode is set to `:soft_purge` for all `:update` instructions. To see an example of such a transform, look in `test/support/purge_transform.ex` """ alias Distillery.Releases.Appup alias Distillery.Releases.Appup.Utils alias Distillery.Releases.Appup.TransformError @type app :: Appup.app() @type version :: Appup.appup_ver() @type options :: [term] @type instruction :: Appup.instruction() @type transform :: module | {module, options} @callback up(app, version, version, [instruction], options) :: [instruction] @callback down(app, version, version, [instruction], options) :: [instruction] defmacro __using__(_) do quote do @behaviour unquote(__MODULE__) @impl unquote(__MODULE__) def up(_app, _v1, _v2, instructions, _opts) do instructions end @impl unquote(__MODULE__) def down(_app, _v1, _v2, instructions, _opts) do instructions end defoverridable up: 5, down: 5 end end @doc """ Applies all transforms against the current upgrade instruction. Additional information required as arguments and passed to transforms are the app the instruction applies to, and the source and target versions involved. """ @spec up([instruction], app, version, version, [transform]) :: [instruction] def up(instructions, _app, _v1, _v2, []) do instructions end def up(instructions, app, v1, v2, [mod | rest]) when is_atom(mod) do up(instructions, app, v1, v2, [{mod, []} | rest]) end def up(instructions, app, v1, v2, [{mod, opts} | rest]) when is_atom(mod) and is_list(opts) do case mod.up(app, v1, v2, instructions, opts) do ixs when is_list(ixs) -> # Validate validate_instructions!(mod, :up, ixs) up(ixs, app, v1, v2, rest) invalid -> # Invalid return value raise TransformError, module: mod, callback: :up, error: {:invalid_return, invalid} end end @doc """ Applies all transforms against the current downgrade instruction. Additional information required as arguments and passed to transforms are the app the instruction applies to, and the source and target versions involved. """ @spec down([instruction], app, version, version, [transform]) :: [instruction] def down(instructions, _app, _v1, _v2, []) do instructions end def down(instructions, app, v1, v2, [mod | rest]) when is_atom(mod) do down(instructions, app, v1, v2, [{mod, []} | rest]) end def down(instructions, app, v1, v2, [{mod, opts} | rest]) do case mod.down(app, v1, v2, instructions, opts) do ixs when is_list(ixs) -> # Validate validate_instructions!(mod, :down, ixs) down(ixs, app, v1, v2, rest) invalid -> # Invalid return value raise TransformError, module: mod, callback: :down, error: {:invalid_return, invalid} end end defp validate_instructions!(mod, type, ixs) do case Utils.validate_instructions(ixs) do :ok -> :ok {:invalid, i} -> raise TransformError, module: mod, callback: type, error: {:invalid_instruction, i} end end end ```
```objective-c #ifndef _STD_MATRIX_VCL #define _STD_MATRIX_VCL #include <vector> template <class T> struct stdMatrix3{ stdMatrix(const unsigned int & nx,const unsigned int & ny, const unsigned int & nz){ data.resize(nx); for(unsigned int i = 0; i < nx; ++i){ data[i].resize(ny); for(unsigned int j = 0; j < ny; ++j) data[i][j].resize(nz); } } std::vector< std::vector< std::vector < T> > > data; T & At(const unsigned int * i, const unsigned int * j, const unsigned int * k){ return data[i][j][k]; } } #endif ```
```kotlin package com.x8bit.bitwarden.data.tools.generator.datasource.sdk import com.bitwarden.generators.AppendType import com.bitwarden.generators.ForwarderServiceType import com.bitwarden.generators.PassphraseGeneratorRequest import com.bitwarden.generators.PasswordGeneratorRequest import com.bitwarden.generators.UsernameGeneratorRequest import com.bitwarden.sdk.Client import com.bitwarden.sdk.ClientGenerators import com.x8bit.bitwarden.data.platform.manager.SdkClientManager import com.x8bit.bitwarden.data.platform.util.asSuccess import io.mockk.coEvery import io.mockk.coVerify import io.mockk.every import io.mockk.mockk import kotlinx.coroutines.runBlocking import org.junit.Assert.assertEquals import org.junit.Test class GeneratorSdkSourceTest { private val clientGenerators = mockk<ClientGenerators>() private val client = mockk<Client> { every { generators() } returns clientGenerators } private val sdkClientManager = mockk<SdkClientManager> { coEvery { getOrCreateClient(userId = null) } returns client } private val generatorSdkSource: GeneratorSdkSource = GeneratorSdkSourceImpl(sdkClientManager) @Test fun `generatePassword should call SDK and return a Result with the generated password`() = runBlocking { val request = PasswordGeneratorRequest( lowercase = true, uppercase = true, numbers = true, special = true, length = 12U, avoidAmbiguous = false, minLowercase = 1U, minUppercase = 1U, minNumber = 1U, minSpecial = 1U, ) val expectedResult = "GeneratedPassword123!" coEvery { clientGenerators.password(request) } returns expectedResult val result = generatorSdkSource.generatePassword(request) assertEquals(expectedResult.asSuccess(), result) coVerify { clientGenerators.password(request) } } @Test fun `generatePassphrase should call SDK and return a Result with the generated passphrase`() = runBlocking { val request = PassphraseGeneratorRequest( numWords = 4U, wordSeparator = "-", capitalize = true, includeNumber = true, ) val expectedResult = "Generated-Passphrase123" coEvery { clientGenerators.passphrase(request) } returns expectedResult val result = generatorSdkSource.generatePassphrase(request) assertEquals(expectedResult.asSuccess(), result) coVerify { clientGenerators.passphrase(request) } } @Suppress("MaxLineLength") @Test fun `generatePlusAddressedEmail should call SDK and return a Result with the generated email`() = runBlocking { val request = UsernameGeneratorRequest.Subaddress( type = AppendType.Random, email = "user@example.com", ) val expectedResult = "user+generated@example.com" coEvery { clientGenerators.username(request) } returns expectedResult val result = generatorSdkSource.generatePlusAddressedEmail(request) assertEquals(expectedResult.asSuccess(), result) coVerify { clientGenerators.username(request) } } @Suppress("MaxLineLength") @Test fun `generateCatchAllEmail should call SDK and return a Result with the generated email`() = runBlocking { val request = UsernameGeneratorRequest.Catchall( type = AppendType.Random, domain = "domain", ) val expectedResult = "user@domain" coEvery { clientGenerators.username(request) } returns expectedResult val result = generatorSdkSource.generateCatchAllEmail(request) assertEquals(expectedResult.asSuccess(), result) coVerify { clientGenerators.username(request) } } @Suppress("MaxLineLength") @Test fun `generateRandomWordUsername should call SDK and return a Result with the generated email`() = runBlocking { val request = UsernameGeneratorRequest.Word( capitalize = true, includeNumber = true, ) val expectedResult = "USER1" coEvery { clientGenerators.username(request) } returns expectedResult val result = generatorSdkSource.generateRandomWord(request) assertEquals(expectedResult.asSuccess(), result) coVerify { clientGenerators.username(request) } } @Suppress("MaxLineLength") @Test fun `generateForwardedServiceEmail should call SDK and return a Result with the generated email`() = runBlocking { val request = UsernameGeneratorRequest.Forwarded( service = ForwarderServiceType.DuckDuckGo(token = "testToken"), website = null, ) val expectedResult = "generated@email.com" coEvery { clientGenerators.username(request) } returns expectedResult val result = generatorSdkSource.generateForwardedServiceEmail(request) assertEquals(expectedResult.asSuccess(), result) coVerify { clientGenerators.username(request) } } } ```
Matsemela Manaka (1956–1998) was a South African playwright, poet, and artist. He began his career in the mid-1970s and was influenced by the ideas of the Black Consciousness Movement. Among his plays, the most distinguished are Egoli: City of Gold and Children of Asazi. He won the PEN/Barbara Goldsmith Freedom to Write Award in 1987. Early life and education Manaka was born on 20 June 1956, in Alexandra township. He attended primary and secondary school in Diepkloof, and spent the majority of his life in Soweto. He then attended Ithumeng Commercial College studying commerce part-time. Manaka desired to attend a university, but the recently introduced requirement for Afrikaans, which wasn't offered at Ithumeng, was prohibitive. He then enrolled at Matibane High School in 1976, which did offer the language, but his attempt was voided, ironically, by the Soweto uprising that came as a response to the 1974 legislation demanding Afrikaans. Career Manaka worked as a teacher and, already an admirer of the plays of Gibson Kente, developed an interest in theatre after witnessing his students participate in the 1976 Soweto uprising. He founded the Soyikwa African Theatre group in 1978, with students from the Creative Youth Association who had gotten together after the uprising. His work was often chosen through suggestion by students and staff. Soyikwa's first production was The Horn, followed by Imbumba, and then Egoli, the latter of which became a success when it was performed in the city. The group performed political satire drawing from both European and African traditions; themes included Pan-African and Black Consciousness as well as the realities of South African politics--apartheid, the continuing destruction of social life in townships, and widespread poverty in rural areas. Manaka's plays were a success in Europe as well. He was awarded the PEN/Barbara Goldsmith Freedom to Write Award in 1987. With the award he funded a workshop for young playwrights in Soweto. Manaka participated in multiple initiatives such as The Creative Youth Association, Ravan Press, Staffrider. Matsemela Manaka died in a car accident in 1998. Plays The Horn Imbumba Egoli: City of Gold (1978) Blues Afrika Cafe (1980) Vuka (1981) Mbumba (1984) Children of Asazi (1984) Goree (musical), 1989 References 1956 births 1998 deaths People from Alexandra, Gauteng
```shell SCRIPT_NAME=h8500 OUTPUT_FORMAT="coff-h8500" TEXT_START_ADDR=0x8000 TARGET_PAGE_SIZE=128 ARCH=h8500 ```
```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.haulmont.cuba.security.entity; import com.haulmont.chile.core.datatypes.impl.EnumClass; /** * Type of access to an entity attribute. */ public enum EntityAttrAccess implements EnumClass<Integer> { DENY(0), VIEW(1), MODIFY(2); private int id; EntityAttrAccess(int id) { this.id = id; } public Integer getId() { return id; } public static EntityAttrAccess fromId(Integer id) { if (id == null) return null; switch (id) { case 0: return DENY; case 1: return VIEW; case 2: return MODIFY; default: return null; } } } ```