text
stringlengths
1
22.8M
```smalltalk using System; namespace Xamarin.Forms { public class FocusEventArgs : EventArgs { public FocusEventArgs(VisualElement visualElement, bool isFocused) { if (visualElement == null) throw new ArgumentNullException("visualElement"); VisualElement = visualElement; IsFocused = isFocused; } public bool IsFocused { get; private set; } public VisualElement VisualElement { get; private set; } } } ```
José Domingo de la Merced de La Mar y Cortázar (12 May 1776 – 11 October 1830) was a Peruvian military leader and politician who served as the third President of Peru. Biography Youth La Mar was born on 12 May 1776, at Cuenca in what today is Ecuador. As son of Marcos de La Mar y Migura (1736–1794) and his wife Josefa Paula Cortázar y Lavayen (1748–1815), he spent his early childhood in Spain. Military career in Spain, France and Peru (1794–1820) With the help of his influential uncle, La Mar entered the Spanish army as a sub-lieutenant of the regiment of Savoy. In 1794 he participated in the campaign of Roussillon against the French Republic, fighting under the command of Count of Conquest, after which he was promoted to captain (1795). Then participated in various military actions against revolutionary France, and was already a lieutenant colonel in the time of Spain's national war against Napoleon's invasion (1808). He participated in the defense of Zaragoza next to the Colonel Palafox (1808–1809). Was seriously injured, and although that city finally capitulated, earned the title of "Hero of the nation in a heroic" and promotion to colonel . In 1812 he transferred to the front of Valencia, led by General Joaquín Blake, and sent a column of 4,000 veterans grenadiers (the "column The Sea"). Again he was wounded, and was taken to hospital in Tudela, where he was captured by the French. No sooner was recovered was taken to France and confined in the castle of Saumur (Burgundy), where he studied the classics of French culture. After a time managed to escape, accompanied by Brigadier Juan María Muñoz and Manito, crossed Switzerland and the Tyrol and reached the port of Trieste, on the Adriatic Sea, where he sailed back to Spain. In 1815, Ferdinand VII promoted him to Brigadier, awarded him the Saint Hermenegildo's Cross and appointed him Sub-Inspector of the Viceroyalty of Peru, with the title of Governor of Callao. He arrived at the city in 1816. In 1819, he was promoted to field marshal. The War of Independence (1821–1827) The Royalist Cause During the early days of the Peruvian War of Independence, he joined forces with the Royalists, taking care of the Real Felipe Fortress, in the main port of the Viceroyalty, Callao. Viceroy José de la Serna abandoned the capital on 6 June 1821, leaving him with explicit orders to resist and wait for reinforcements. He successfully stopped all attempts to capture the fort for nearly 4 months, until the arrival of General José Canterac and a powerful division sent by Viceroy de la Serna gave him the orders to surrender the fort due to the lack of supplies and troops. On 19 September the garrison surrendered, in the Baquijano Capitulation, only two days after La Mar finally submitted his left foot to amputation, having initially refused treatment of a gangrenous toe. The Rebel Cause After the Baquijano Capitulation, La Mar joined forces with the rebel cause. José de San Martín awarded him with the title of "Division General", a title he accepted reluctantly. La Mar served as one of three men on the Supreme Governing Board of the Republic of Peru from 22 September 1822 to 27 February 1823. He served as the President of the Congress from November 1823 to December 1823. La Mar served as the Constitutional President of the Republic of Peru from 22 August 1827 to 7 June 1829. He was removed from the Presidency of Peru after less than two years by a coup d'état led by General Agustín Gamarra and died in forced exile in Costa Rica, on 12 December 1799. References People from Cuenca, Ecuador Presidents of Peru Presidents of the Congress of the Republic of Peru 1776 births 1830 deaths Peruvian military personnel History of Peru People of the Peruvian War of Independence People of the Peninsular War Marshals of Peru
The Embassy of Trinidad and Tobago in Washington, D.C. is the diplomatic mission of the Republic of Trinidad and Tobago to the United States. It is located at 1708 Massachusetts Avenue, Northwest, Washington, D.C., in the Embassy Row neighborhood, near Scott Circle. The Ambassador is HE Brigadier General (Ret'd.) Anthony W.J Phillips-Spencer. References External links Official website Trinidad and Tobago Washington, D.C. Trinidad and Tobago–United States relations Trinidad and Tobago Dupont Circle
```javascript const ACL = require('../../models').acl; module.exports = function(req, res) { ACL.findAll({ where: { userId: String(req.user.id) }, attributes: [ 'id', 'toUserEmail', 'campaigns', 'templates', 'lists', 'createdAt', 'updatedAt' ], raw: true }) .then(permissionArray => { if (!permissionArray.length) { res.send(); } else { res.send(permissionArray); } }) .catch(err => { throw err; }); }; ```
```javascript Labeling your loops Data type comparison in `switch` statements Truthiness Filtering items out of an array Detect an error type ```
Kosipirr is a settlement in Kenya's Rift Valley Province. References Populated places in Turkana County
```ruby Pod::Spec.new do |s| s.name = 'GPUImage' s.version = '0.1.7' s.license = 'BSD' s.summary = 'An open source iOS framework for GPU-based image and video processing.' s.homepage = 'path_to_url s.author = { 'Brad Larson' => 'contact@sunsetlakesoftware.com' } s.source = { :git => 'path_to_url :tag => "#{s.version}" } s.source_files = 'framework/Source/**/*.{h,m}' s.resources = 'framework/Resources/*.png' s.requires_arc = true s.xcconfig = { 'CLANG_MODULES_AUTOLINK' => 'YES' } s.ios.deployment_target = '5.0' s.ios.exclude_files = 'framework/Source/Mac' s.ios.frameworks = ['OpenGLES', 'CoreMedia', 'QuartzCore', 'AVFoundation'] s.osx.deployment_target = '10.6' s.osx.exclude_files = 'framework/Source/iOS', 'framework/Source/GPUImageFilterPipeline.*', 'framework/Source/GPUImageMovieComposition.*', 'framework/Source/GPUImageVideoCamera.*', 'framework/Source/GPUImageStillCamera.*', 'framework/Source/GPUImageUIElement.*' s.osx.xcconfig = { 'GCC_WARN_ABOUT_RETURN_TYPE' => 'YES' } end ```
```python from typing import Optional from localstack.aws.api.stepfunctions import ( HistoryEventExecutionDataDetails, HistoryEventType, StateEnteredEventDetails, StateExitedEventDetails, ) from localstack.services.stepfunctions.asl.component.common.parameters import Parameters from localstack.services.stepfunctions.asl.component.common.path.result_path import ResultPath from localstack.services.stepfunctions.asl.component.state.state import CommonStateField from localstack.services.stepfunctions.asl.component.state.state_pass.result import Result from localstack.services.stepfunctions.asl.component.state.state_props import StateProps from localstack.services.stepfunctions.asl.eval.environment import Environment from localstack.services.stepfunctions.asl.utils.encoding import to_json_str class StatePass(CommonStateField): def __init__(self): super(StatePass, self).__init__( state_entered_event_type=HistoryEventType.PassStateEntered, state_exited_event_type=HistoryEventType.PassStateExited, ) # Result (Optional) # Refers to the output of a virtual state_task that is passed on to the next state. If you include the ResultPath # field in your state machine definition, Result is placed as specified by ResultPath and passed on to the self.result: Optional[Result] = None # ResultPath (Optional) # Specifies where to place the output (relative to the input) of the virtual state_task specified in Result. The input # is further filtered as specified by the OutputPath field (if present) before being used as the state's output. self.result_path: Optional[ResultPath] = None # Parameters (Optional) # Creates a collection of key-value pairs that will be passed as input. You can specify Parameters as a static # value or select from the input using a path. self.parameters: Optional[Parameters] = None def from_state_props(self, state_props: StateProps) -> None: super(StatePass, self).from_state_props(state_props) self.result = state_props.get(Result) self.result_path = state_props.get(ResultPath) or ResultPath( result_path_src=ResultPath.DEFAULT_PATH ) self.parameters = state_props.get(Parameters) def _get_state_entered_event_details(self, env: Environment) -> StateEnteredEventDetails: return StateEnteredEventDetails( name=self.name, input=to_json_str(env.inp, separators=(",", ":")), inputDetails=HistoryEventExecutionDataDetails( truncated=False # Always False for api calls. ), ) def _get_state_exited_event_details(self, env: Environment) -> StateExitedEventDetails: return StateExitedEventDetails( name=self.name, output=to_json_str(env.inp, separators=(",", ":")), outputDetails=HistoryEventExecutionDataDetails( truncated=False # Always False for api calls. ), ) def _eval_state(self, env: Environment) -> None: if self.parameters: self.parameters.eval(env=env) if self.result: self.result.eval(env=env) if self.result_path: self.result_path.eval(env) ```
```html <mat-sidenav-container fullscreen [autosize]="containerAutosize" class="td-layout-manage-list" > <mat-sidenav #sidenav position="start" [mode]="mode" [opened]="opened" [disableClose]="disableClose" [style.max-width]="sidenavWidth" [style.min-width]="sidenavWidth" > <ng-content select="mat-toolbar[td-sidenav-content]"></ng-content> <div class="td-layout-manage-list-sidenav" cdkScrollable> <ng-content select="[td-sidenav-content]"></ng-content> </div> </mat-sidenav> <div class="td-layout-manage-list-main"> <ng-content select="mat-toolbar"></ng-content> <div class="td-layout-manage-list-content" cdkScrollable> <ng-content></ng-content> </div> <ng-content select="td-layout-footer-inner"></ng-content> </div> </mat-sidenav-container> ```
Tintagel Slate Quarries fall into two categories: the series of quarries lying between Tintagel Castle and Trebarwith Strand on the north coast of Cornwall, South West England and the open cast quarries further inland. There are around eight cliff-edge quarries as well as two wharfs, all of which are now disused as well as four inland sites, two of which are still in operation. The first quarry to be worked appears to have been Lanterdan at some point in the fifteenth century, while the last of the coastal quarries, Long Grass ceased operations in 1937. The remains of the coastal quarries occupy coastal land owned by the National Trust and most are easily accessible from the South West Coast Path. The Prince of Wales Quarry has been turned into a country park by North Cornwall District Council. Coastal quarries Gillow Long Grass Lambshouse and Gull Point Bagalow Caroline Lanterdan West Quarry Dria Quarry Dria Quarry is a small, disused slate quarry between Tintagel and Trebarwith which was abandoned in the early twentieth century. It is one of several quarries whose activity has dramatically shaped this stretch of coastline but the quality of slate will have been of a lower grade than at nearby quarries such as Long Grass, Lambshouse and Gull Point Quarries. Inland quarries The Prince of Wales Quarry Bowithick Quarry Trevillet Quarry Trebarwith Road Rustic Quarry Wharfs Port William Penhallick Wharf Tintagel Haven The Slate The working faces of the coastal quarries reach to the full height of the cliffs- in the north and in the south. The cliff top is relatively flat with no naturally occurring coves, bays or river valleys. The stone itself is Upper Devonian slate and Lower Carboniferous slate of a greyish green colour and was used predominantly for roofing while the rubble was useful for building. The slate closer to sea level is generally of better quality than that higher up. Quarrying in Tintagel The southernmost cliff quarries (the southern end of Caroline as well as Lanterdan and West quarries) as well as the inland sites used conventional open cast stone extraction methods. However, clifftop quarrying provided unique challenges. Gillow, Long Grass, Lambshouse, Gull Point, Dria, Bagalow and the northern part of Caroline are sea cliffs where the slate workfaces were already exposed and which have simply been cut into. The southern end of Caroline as well as Lanterdan and West quarries are more conventional where the slate has been dug out of the cliff rather than into it. Working the cliff face quarries will have involved clearing away any surface material such as soil, grass and loose stones and dumping them in the sea. A strong point will have been established on bedrock a short way back from the cliff edge. On the rock immediately above the cliff edge, a whim is built. This is a wooden frame with a pulley that is anchored at the strong point and operated by a donkey or horse walking in circles, often while blindfolded to avoid distractions. Quarrying on the cliffs will have been a hazardous occupation with men suspended by ropes as they worked the vertical rock face. The whims were used to winch workers down and buckets of slate back up. The stone was extracted by hand using drills but also with explosives, and the value of the slate extracted clearly made this kind of hazardous and labour-intensive quarrying cost-effective. The slate from the coastal quarries was dressed or split into thin, usable tiles in sheds at the top of the cliff. The slate from the coastal quarries was dressed or split into thin, usable tiles in sheds at the top of the cliffs. A good workman could split 100 dozen roofing slates in a day. Splitters worked 7.30am to 5.30pm with a half hour break. Some rag slates measured 6 ft by 2 ft, some were 18 inches square and sold at 2s.6d a dozen in 1888. The slates were known by names relating to their size, which were (in inches): Queens 36x7, Duchess 24x14, Countesses 20x10, Ladies 16x9 and Doubles 12x7. Amall roofing slates known as scantles measuring 9x5, 8x6,7x7 and 6x3 were cut by boys. Slate from North Cornwall's quarries was used to make cisterns up to 2,000 gallons as well as corn chests, pig troughs, mangers, pump troughs, baths, salting troughs, milk coolers, larders, chimney tops, mantle pieces, window sills, garden edging and hedging, room skirting, lintels, quoins, rolling pins, candle sticks and ashtrays. Every Cornish churchyard has examples of slate headstones. The finished stone was taken by tramways to be shipped from nearby wharves or transported by rail from Camelford Station. Any waste product was heaped up in spoil tips or t=if the quarry was by the coast, simply dumped in the sea. Industrial remains The remains of whims, dressing sheds and food and powder stores litter the cliffs above the quarries. Most are in a ruinous state but the offices, powerhouse and smithy belonging to Long Grass quarry now serve as Tintagel's youth hostel. Well-preserved whims can be seen at Lambshouse and Caroline quarries and the remains of a toolshed perches on the clifftop above Caroline quarry. Caroline quarry also has a large cave hacked into the cliff face by quarrymen- the cave gives its name to Hole Beach, a surfing beach below the quarry workings. In between Gull Point and Dria quarries is Penhallick Wharf, an abandoned loading dock cut into the side of the cliff, and another disused wharf can be found at Port William to the north of Trebarwith Strand. The most visible quarry building in Tintagel is the engine house at the Prince of Wales quarry. Built in 1870, this once housed a Woolf compound beam engine that both pumped water out of the pit and hauled trucks of slate from the workings at nearby Bowithick quarry. The building was restored in 1976. Legacy Despite Tintagel having a centuries-old slate quarrying history, ever since the publication of Tennyson's Idylls of the King in 1859, the focus of tourism in the village has been on King Arthur. However these quarries are testament to an actual rather than a fictitious history. Despite many of them occupying a spectacular coastal location, there is currently no visitor centre, no tourists are directed here and the only informational signage in place is at the Prince of Wales site. Footnotes Further reading Dyer, Peter (2005) Tintagel: a portrait of a parish. Cambridge: Cambridge Books. ISBN 0-9550097-0-7; pp. 199–233 Tintagel Quarries in Cornwall Quarries in England Slate industry in the United Kingdom
Gaspare Gasparini (died 30 September 1590) was a native of Macerata. He was a disciple of Girolamo Siciolante da Sermoneta, whose style he followed, though in a less finished manner; as appears in his two pictures in the church of San Venanzio at Fabriano, representing The Baptism of Christ and The Last Supper. He is seen to more advantage in his picture of St. Peter and St. John curing the Lame Man, in the same church, a grand composition, in which he seems to have imitated the style of Raphael. In the church of the Conventuali, in his native place, there is a fine picture of St. Francis receiving the Stigmata. Notes References Year of birth missing 1590 deaths People from Macerata 16th-century Italian painters Italian male painters
Carl Julius Curtius (23 June 1802 –10 March 1849) was a German writer and journalist. Curtius was born in Pritzerbe in Brandenburg. After dropping out of university, where he was studying theology, he became a journalist. By August 1825, he was an editor at the Spenersche Zeitung and later joined the Berliner Zeitung. In 1827, he edited the Estafette, along with Karl Simrock, in opposition to Moritz Gottlieb Saphir's Courier. He also composed songs. He was the author of the five-volume work Geschichte der Neu-Griechen von der Eroberung Konstantinopels bis auf die neuesten Zeiten (1827–1830). References 1802 births 1849 deaths 19th-century German male writers 19th-century German writers German male non-fiction writers
```xml import { CommonModule } from '@angular/common'; import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation, inject, booleanAttribute } from '@angular/core'; import { PrimeNGConfig, PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api'; import { TimesCircleIcon } from 'primeng/icons/timescircle'; /** * Chip represents people using icons, labels and images. * @group Components */ @Component({ selector: 'p-chip', template: ` <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style" *ngIf="visible" [attr.data-pc-name]="'chip'" [attr.aria-label]="label" [attr.data-pc-section]="'root'"> <ng-content></ng-content> <img [src]="image" *ngIf="image; else iconTemplate" (error)="imageError($event)" [alt]="alt" /> <ng-template #iconTemplate><span *ngIf="icon" [class]="icon" [ngClass]="'p-chip-icon'" [attr.data-pc-section]="'icon'"></span></ng-template> <div class="p-chip-text" *ngIf="label" [attr.data-pc-section]="'label'">{{ label }}</div> <ng-container *ngIf="removable"> <ng-container *ngIf="!removeIconTemplate"> <span tabindex="0" *ngIf="removeIcon" [class]="removeIcon" [ngClass]="'pi-chip-remove-icon'" [attr.data-pc-section]="'removeicon'" (click)="close($event)" (keydown)="onKeydown($event)" [attr.aria-label]="removeAriaLabel" role="button" ></span> <TimesCircleIcon tabindex="0" *ngIf="!removeIcon" [class]="'pi-chip-remove-icon'" [attr.data-pc-section]="'removeicon'" (click)="close($event)" (keydown)="onKeydown($event)" [attr.aria-label]="removeAriaLabel" role="button" /> </ng-container> <span *ngIf="removeIconTemplate" tabindex="0" [attr.data-pc-section]="'removeicon'" class="pi-chip-remove-icon" (click)="close($event)" (keydown)="onKeydown($event)" [attr.aria-label]="removeAriaLabel" role="button"> <ng-template *ngTemplateOutlet="removeIconTemplate"></ng-template> </span> </ng-container> </div> `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styleUrls: ['./chip.css'], host: { class: 'p-element' } }) export class Chip implements AfterContentInit { /** * Defines the text to display. * @group Props */ @Input() label: string | undefined; /** * Defines the icon to display. * @group Props */ @Input() icon: string | undefined; /** * Defines the image to display. * @group Props */ @Input() image: string | undefined; /** * Alt attribute of the image. * @group Props */ @Input() alt: string | undefined; /** * Inline style of the element. * @group Props */ @Input() style: { [klass: string]: any } | null | undefined; /** * Class of the element. * @group Props */ @Input() styleClass: string | undefined; /** * Whether to display a remove icon. * @group Props */ @Input({ transform: booleanAttribute }) removable: boolean | undefined = false; /** * Icon of the remove element. * @group Props */ @Input() removeIcon: string | undefined; /** * Callback to invoke when a chip is removed. * @param {MouseEvent} event - Mouse event. * @group Emits */ @Output() onRemove: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>(); /** * This event is triggered if an error occurs while loading an image file. * @param {Event} event - Browser event. * @group Emits */ @Output() onImageError: EventEmitter<Event> = new EventEmitter<Event>(); config = inject(PrimeNGConfig); visible: boolean = true; removeIconTemplate: TemplateRef<any> | undefined; get removeAriaLabel() { return this.config.getTranslation(TranslationKeys.ARIA)['removeLabel']; } @ContentChildren(PrimeTemplate) templates: QueryList<PrimeTemplate> | undefined; ngAfterContentInit() { (this.templates as QueryList<PrimeTemplate>).forEach((item) => { switch (item.getType()) { case 'removeicon': this.removeIconTemplate = item.template; break; default: this.removeIconTemplate = item.template; break; } }); } containerClass() { return { 'p-chip p-component': true, 'p-chip-image': this.image != null }; } close(event: MouseEvent) { this.visible = false; this.onRemove.emit(event); } onKeydown(event) { if (event.key === 'Enter' || event.key === 'Backspace') { this.close(event); } } imageError(event: Event) { this.onImageError.emit(event); } } @NgModule({ imports: [CommonModule, TimesCircleIcon, SharedModule], exports: [Chip, SharedModule], declarations: [Chip] }) export class ChipModule {} ```
G. Gomathisankara Dikshidar was an Indian politician and former Member of the Legislative Assembly. He was elected to the Tamil Nadu legislative assembly as an Indian National Congress candidate from Ambasamudram constituency in 1957, 1962 and 1967 elections. References Indian National Congress politicians from Tamil Nadu Living people Year of birth missing (living people) Madras MLAs 1957–1962 Madras MLAs 1962–1967 Tamil Nadu MLAs 1967–1972
John Murray (born 1963) is an Australian epidemiologist and writer. Life Murray was born in 1963 in Adelaide, Australia. In 1985, Murray received his medical degree. He received a master's of public health from Johns Hopkins University. He went on to the Centers for Disease Control's Epidemic Intelligence Service. He investigated the outbreak of diseases such as cholera and dysentery. In fall 1999, he moved with his wife and daughter to Iowa, where he graduated from the Iowa Writers' Workshop. In 2003, he published a collection of short stories. Works References On Writing Interview, windreverpress, Michael Standiert Caught Between Places, The Atlantic, Curtis Sittenfeld, April 2, 2003 A Few Short Notes on Tropical Butterflies: Stories By John Murray, WNYC Foreign Bodies, Michael Gorra, The New York Times, April 13, 2003 1963 births Iowa Writers' Workshop alumni Living people Johns Hopkins University alumni Australian public health doctors Writers from Adelaide Australian male short story writers
```html <html> <head> <title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleNoDrive Class Reference</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css"> </head> <body bgcolor="#FFFFFF"> <div id="header"> <hr class="first"> <img alt="" src="images/PhysXlogo.png" align="middle"> <br> <center> <a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center> <hr class="second"> </div> <!-- Generated by Doxygen 1.5.8 --> <div class="contents"> <h1>PxVehicleNoDrive Class Reference<br> <small> [<a class="el" href="group__vehicle.html">Vehicle</a>]</small> </h1><!-- doxytag: class="PxVehicleNoDrive" --><!-- doxytag: inherits="PxVehicleWheels" -->Data structure with instanced dynamics data and configuration data of a vehicle with no drive model. <a href="#_details">More...</a> <p> <code>#include &lt;<a class="el" href="PxVehicleNoDrive_8h-source.html">PxVehicleNoDrive.h</a>&gt;</code> <p> <div class="dynheader"> Inheritance diagram for PxVehicleNoDrive:</div> <div class="dynsection"> <p><center><img src="classPxVehicleNoDrive__inherit__graph.png" border="0" usemap="#PxVehicleNoDrive__inherit__map" alt="Inheritance graph"></center> <map name="PxVehicleNoDrive__inherit__map"> <area shape="rect" href="classPxVehicleWheels.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with..." alt="PxVehicleWheels" coords="7,85,119,106"><area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="35,16,91,37"></map> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for PxVehicleNoDrive:</div> <div class="dynsection"> <p><center><img src="classPxVehicleNoDrive__coll__graph.png" border="0" usemap="#PxVehicleNoDrive__coll__map" alt="Collaboration graph"></center> <map name="PxVehicleNoDrive__coll__map"> <area shape="rect" href="classPxVehicleWheels.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with..." alt="PxVehicleWheels" coords="1429,102,1541,123"><area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="389,34,445,55"><area shape="rect" href="classPxActor.html" title="PxActor is the base class for the main simulation objects in the physics SDK." alt="PxActor" coords="497,59,551,80"><area shape="rect" href="classPxFlags.html" title="PxFlags\&lt; PxBaseFlag::Enum, PxU16 \&gt;" alt="PxFlags\&lt; PxBaseFlag::Enum, PxU16 \&gt;" coords="17,34,255,55"><area shape="rect" href="classPxVehicleWheelsSimData.html" title="Data structure describing configuration data of a vehicle with up to 20 wheels." alt="PxVehicleWheelsSimData" coords="1100,136,1263,158"><area shape="rect" href="classPxVehicleTireLoadFilterData.html" title="Tire load variation can be strongly dependent on the time-step so it is a good idea..." alt="PxVehicleTireLoadFilterData" coords="735,130,908,151"><area shape="rect" href="classPxVehicleAntiRollBarData.html" title="PxVehicleAntiRollBarData" alt="PxVehicleAntiRollBarData" coords="743,199,900,220"><area shape="rect" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK." alt="PxRigidDynamic" coords="1129,63,1233,84"><area shape="rect" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects." alt="PxRigidBody" coords="779,62,864,83"><area shape="rect" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies..." alt="PxRigidActor" coords="601,60,684,82"><area shape="rect" href="classPxVehicleWheelsDynData.html" title="Data structure with instanced dynamics data for wheels." alt="PxVehicleWheelsDynData" coords="1101,206,1261,227"></map> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classPxVehicleNoDrive-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#90b0f7e9da87f3de5e38e1844b404342">free</a> ()</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deallocate a <a class="el" href="classPxVehicleNoDrive.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleNoDrive</a> instance. <a href="#90b0f7e9da87f3de5e38e1844b404342"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#837924c936c8b6608b691e48e80fcab4">setup</a> (<a class="el" href="classPxPhysics.html">PxPhysics</a> *physics, <a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *vehActor, const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;wheelsData)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set up a vehicle using simulation data for the wheels. <a href="#837924c936c8b6608b691e48e80fcab4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#284e8e6ff3c1617b8c39bab3edc217c7">setToRestState</a> ()</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set a vehicle to its rest state. Aside from the rigid body transform, this will set the vehicle and rigid body to the state they were in immediately after setup or create. <a href="#284e8e6ff3c1617b8c39bab3edc217c7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#3150f58d865082068a1bf7c674cec010">setBrakeTorque</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> id, const PxReal brakeTorque)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the brake torque to be applied to a specific wheel. <a href="#3150f58d865082068a1bf7c674cec010"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#2cee320c1b39eb72f8350e63ae5fd749">setDriveTorque</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> id, const PxReal driveTorque)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the drive torque to be applied to a specific wheel. <a href="#2cee320c1b39eb72f8350e63ae5fd749"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#362899ae429c39a05703223bb8fdba0f">setSteerAngle</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> id, const PxReal steerAngle)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the steer angle to be applied to a specific wheel. <a href="#362899ae429c39a05703223bb8fdba0f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#7e0c75f0520b2558ee0801409c9eb86e">getBrakeTorque</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> id) const </td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the brake torque that has been applied to a specific wheel. <a href="#7e0c75f0520b2558ee0801409c9eb86e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#e0eec2c20debe39466b57744390aea0d">getDriveTorque</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> id) const </td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the drive torque that has been applied to a specific wheel. <a href="#e0eec2c20debe39466b57744390aea0d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#9db10d7ec81f2d0ba421eb6d65d100e7">getSteerAngle</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> id) const </td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the steer angle that has been applied to a specific wheel. <a href="#9db10d7ec81f2d0ba421eb6d65d100e7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#6ba06186cf9355dd9198beef75352afc">PxVehicleNoDrive</a> (<a class="el" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#3ab09466f053cc899d832fb8b7f34602">exportExtraData</a> (<a class="el" href="classPxSerializationContext.html">PxSerializationContext</a> &amp;)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#6d3bcb6296ec9d8ce41377ecb04704af">importExtraData</a> (<a class="el" href="classPxDeserializationContext.html">PxDeserializationContext</a> &amp;)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#6e5503e7a2d85964bdebce938c3c082b">getConcreteTypeName</a> () const </td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns string name of dynamic type. <a href="#6e5503e7a2d85964bdebce938c3c082b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#e6115dc7e2bf9a1a8f73d39c88ac8a65">isKindOf</a> (const char *name) const </td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether a given type name matches with the type of this instance. <a href="#e6115dc7e2bf9a1a8f73d39c88ac8a65"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#1cc626970c2f4b5a2cf16aa99abedcbf">getNbSteerAngle</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#77ffe8a3c8951abc5a07d9310502651e">getNbDriveTorque</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#ad5be54068f68819102dca831790db0c">getNbBrakeTorque</a> () const </td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVehicleNoDrive.html">PxVehicleNoDrive</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#56a124040b12516dcb8f3c04495a985b">allocate</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> nbWheels)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate a <a class="el" href="classPxVehicleNoDrive.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleNoDrive</a> instance for a vehicle without drive model and with nbWheels. <a href="#56a124040b12516dcb8f3c04495a985b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVehicleNoDrive.html">PxVehicleNoDrive</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#937dd25f27b4cd5696a575e38b97394a">create</a> (<a class="el" href="classPxPhysics.html">PxPhysics</a> *physics, <a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *vehActor, const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;wheelsData)</td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate and set up a vehicle using simulation data for the wheels. <a href="#937dd25f27b4cd5696a575e38b97394a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVehicleNoDrive.html">PxVehicleNoDrive</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#bd9eae24d12aff17f547f26ffb886e80">createObject</a> (PxU8 *&amp;address, <a class="el" href="classPxDeserializationContext.html">PxDeserializationContext</a> &amp;context)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#16af423cd6596b6f03201bc3d271f7b9">getBinaryMetaData</a> (<a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;stream)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#b2efce97fc543b50bed1e8ed6881ba38">PxVehicleNoDrive</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#316d68c5a32095cac2e364f7b29934a1">~PxVehicleNoDrive</a> ()</td></tr> <tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#7a919ed8c0cf3b9330ac693fa1200bd9">isValid</a> () const </td></tr> <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test if the instanced dynamics and configuration data has legal values. <a href="#7a919ed8c0cf3b9330ac693fa1200bd9"></a><br></td></tr> <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#7facb97674b5575b66ffa9d780c2a1c3">mSteerAngles</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#c5f06c9756c093f56f46e47d1d05c40c">mDriveTorques</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#5b2c76abb2dc55b4047675cd7392475d">mBrakeTorques</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#0eef7389deac2fd9aeb1824c62ec5a00">mPad</a> [1]</td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleNoDrive.html#a960a335429c764ff7e258a0ec3ab5f0">PxVehicleUpdate</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Data structure with instanced dynamics data and configuration data of a vehicle with no drive model. <hr><h2>Constructor &amp; Destructor Documentation</h2> <a class="anchor" name="6ba06186cf9355dd9198beef75352afc"></a><!-- doxytag: member="PxVehicleNoDrive::PxVehicleNoDrive" ref="6ba06186cf9355dd9198beef75352afc" args="(PxBaseFlags baseFlags)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxVehicleNoDrive::PxVehicleNoDrive </td> <td>(</td> <td class="paramtype"><a class="el" href="classPxFlags.html">PxBaseFlags</a>&nbsp;</td> <td class="paramname"> <em>baseFlags</em> </td> <td>&nbsp;)&nbsp;</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="b2efce97fc543b50bed1e8ed6881ba38"></a><!-- doxytag: member="PxVehicleNoDrive::PxVehicleNoDrive" ref="b2efce97fc543b50bed1e8ed6881ba38" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxVehicleNoDrive::PxVehicleNoDrive </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="316d68c5a32095cac2e364f7b29934a1"></a><!-- doxytag: member="PxVehicleNoDrive::~PxVehicleNoDrive" ref="316d68c5a32095cac2e364f7b29934a1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxVehicleNoDrive::~PxVehicleNoDrive </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="56a124040b12516dcb8f3c04495a985b"></a><!-- doxytag: member="PxVehicleNoDrive::allocate" ref="56a124040b12516dcb8f3c04495a985b" args="(const PxU32 nbWheels)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classPxVehicleNoDrive.html">PxVehicleNoDrive</a>* PxVehicleNoDrive::allocate </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>nbWheels</em> </td> <td>&nbsp;)&nbsp;</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Allocate a <a class="el" href="classPxVehicleNoDrive.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleNoDrive</a> instance for a vehicle without drive model and with nbWheels. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>nbWheels</em>&nbsp;</td><td>is the number of wheels on the vehicle.</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The instantiated vehicle.</dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleNoDrive.html#90b0f7e9da87f3de5e38e1844b404342" title="Deallocate a PxVehicleNoDrive instance.">free</a>, <a class="el" href="classPxVehicleNoDrive.html#837924c936c8b6608b691e48e80fcab4" title="Set up a vehicle using simulation data for the wheels.">setup</a> </dd></dl> </div> </div><p> <a class="anchor" name="937dd25f27b4cd5696a575e38b97394a"></a><!-- doxytag: member="PxVehicleNoDrive::create" ref="937dd25f27b4cd5696a575e38b97394a" args="(PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &amp;wheelsData)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classPxVehicleNoDrive.html">PxVehicleNoDrive</a>* PxVehicleNoDrive::create </td> <td>(</td> <td class="paramtype"><a class="el" href="classPxPhysics.html">PxPhysics</a> *&nbsp;</td> <td class="paramname"> <em>physics</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *&nbsp;</td> <td class="paramname"> <em>vehActor</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;&nbsp;</td> <td class="paramname"> <em>wheelsData</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Allocate and set up a vehicle using simulation data for the wheels. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>physics</em>&nbsp;</td><td>is a <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK.">PxPhysics</a> instance that is needed to create special vehicle constraints that are maintained by the vehicle. </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>vehActor</em>&nbsp;</td><td>is a <a class="el" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a> instance that is used to represent the vehicle in the PhysX SDK. </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wheelsData</em>&nbsp;</td><td>describes the configuration of all suspension/tires/wheels of the vehicle. The vehicle instance takes a copy of this data. </td></tr> </table> </dl> <dl class="note" compact><dt><b>Note:</b></dt><dd>It is assumed that the first shapes of the actor are the wheel shapes, followed by the chassis shapes. To break this assumption use PxVehicleWheels::setWheelShapeMapping. </dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The instantiated vehicle. </dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleNoDrive.html#56a124040b12516dcb8f3c04495a985b" title="Allocate a PxVehicleNoDrive instance for a vehicle without drive model and with nbWheels...">allocate</a>, <a class="el" href="classPxVehicleNoDrive.html#90b0f7e9da87f3de5e38e1844b404342" title="Deallocate a PxVehicleNoDrive instance.">free</a>, <a class="el" href="classPxVehicleNoDrive.html#284e8e6ff3c1617b8c39bab3edc217c7" title="Set a vehicle to its rest state. Aside from the rigid body transform, this will set...">setToRestState</a>, PxVehicleWheels::setWheelShapeMapping </dd></dl> </div> </div><p> <a class="anchor" name="bd9eae24d12aff17f547f26ffb886e80"></a><!-- doxytag: member="PxVehicleNoDrive::createObject" ref="bd9eae24d12aff17f547f26ffb886e80" args="(PxU8 *&amp;address, PxDeserializationContext &amp;context)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classPxVehicleNoDrive.html">PxVehicleNoDrive</a>* PxVehicleNoDrive::createObject </td> <td>(</td> <td class="paramtype">PxU8 *&amp;&nbsp;</td> <td class="paramname"> <em>address</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classPxDeserializationContext.html">PxDeserializationContext</a> &amp;&nbsp;</td> <td class="paramname"> <em>context</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="3ab09466f053cc899d832fb8b7f34602"></a><!-- doxytag: member="PxVehicleNoDrive::exportExtraData" ref="3ab09466f053cc899d832fb8b7f34602" args="(PxSerializationContext &amp;)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void PxVehicleNoDrive::exportExtraData </td> <td>(</td> <td class="paramtype"><a class="el" href="classPxSerializationContext.html">PxSerializationContext</a> &amp;&nbsp;</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#90fa0b0583e88a91908dbde05305df59">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="90b0f7e9da87f3de5e38e1844b404342"></a><!-- doxytag: member="PxVehicleNoDrive::free" ref="90b0f7e9da87f3de5e38e1844b404342" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::free </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Deallocate a <a class="el" href="classPxVehicleNoDrive.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleNoDrive</a> instance. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleNoDrive.html#56a124040b12516dcb8f3c04495a985b" title="Allocate a PxVehicleNoDrive instance for a vehicle without drive model and with nbWheels...">allocate</a> </dd></dl> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#01b68575305d97f6e6dc9d6b1fb5b3dd">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="16af423cd6596b6f03201bc3d271f7b9"></a><!-- doxytag: member="PxVehicleNoDrive::getBinaryMetaData" ref="16af423cd6596b6f03201bc3d271f7b9" args="(PxOutputStream &amp;stream)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void PxVehicleNoDrive::getBinaryMetaData </td> <td>(</td> <td class="paramtype"><a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;&nbsp;</td> <td class="paramname"> <em>stream</em> </td> <td>&nbsp;)&nbsp;</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#67267b846436dbee2998271a5ec84a47">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="7e0c75f0520b2558ee0801409c9eb86e"></a><!-- doxytag: member="PxVehicleNoDrive::getBrakeTorque" ref="7e0c75f0520b2558ee0801409c9eb86e" args="(const PxU32 id) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxReal PxVehicleNoDrive::getBrakeTorque </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>id</em> </td> <td>&nbsp;)&nbsp;</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Get the brake torque that has been applied to a specific wheel. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>id</em>&nbsp;</td><td>is the wheel being queried for its brake torque </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The brake torque applied to the queried wheel. </dd></dl> </div> </div><p> <a class="anchor" name="6e5503e7a2d85964bdebce938c3c082b"></a><!-- doxytag: member="PxVehicleNoDrive::getConcreteTypeName" ref="6e5503e7a2d85964bdebce938c3c082b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* PxVehicleNoDrive::getConcreteTypeName </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns string name of dynamic type. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Class name of most derived type of this object. </dd></dl> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#ba71aed284017a9b51165ea2c385f917">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="e0eec2c20debe39466b57744390aea0d"></a><!-- doxytag: member="PxVehicleNoDrive::getDriveTorque" ref="e0eec2c20debe39466b57744390aea0d" args="(const PxU32 id) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxReal PxVehicleNoDrive::getDriveTorque </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>id</em> </td> <td>&nbsp;)&nbsp;</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Get the drive torque that has been applied to a specific wheel. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>id</em>&nbsp;</td><td>is the wheel being queried for its drive torque </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The drive torque applied to the queried wheel. </dd></dl> </div> </div><p> <a class="anchor" name="ad5be54068f68819102dca831790db0c"></a><!-- doxytag: member="PxVehicleNoDrive::getNbBrakeTorque" ref="ad5be54068f68819102dca831790db0c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxVehicleNoDrive::getNbBrakeTorque </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="77ffe8a3c8951abc5a07d9310502651e"></a><!-- doxytag: member="PxVehicleNoDrive::getNbDriveTorque" ref="77ffe8a3c8951abc5a07d9310502651e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxVehicleNoDrive::getNbDriveTorque </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="1cc626970c2f4b5a2cf16aa99abedcbf"></a><!-- doxytag: member="PxVehicleNoDrive::getNbSteerAngle" ref="1cc626970c2f4b5a2cf16aa99abedcbf" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxVehicleNoDrive::getNbSteerAngle </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="9db10d7ec81f2d0ba421eb6d65d100e7"></a><!-- doxytag: member="PxVehicleNoDrive::getSteerAngle" ref="9db10d7ec81f2d0ba421eb6d65d100e7" args="(const PxU32 id) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxReal PxVehicleNoDrive::getSteerAngle </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>id</em> </td> <td>&nbsp;)&nbsp;</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Get the steer angle that has been applied to a specific wheel. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>id</em>&nbsp;</td><td>is the wheel being queried for its steer angle </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The steer angle (in radians) applied to the queried wheel. </dd></dl> </div> </div><p> <a class="anchor" name="6d3bcb6296ec9d8ce41377ecb04704af"></a><!-- doxytag: member="PxVehicleNoDrive::importExtraData" ref="6d3bcb6296ec9d8ce41377ecb04704af" args="(PxDeserializationContext &amp;)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::importExtraData </td> <td>(</td> <td class="paramtype"><a class="el" href="classPxDeserializationContext.html">PxDeserializationContext</a> &amp;&nbsp;</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#38ad927170326e69d65ab571e5fa18f5">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="e6115dc7e2bf9a1a8f73d39c88ac8a65"></a><!-- doxytag: member="PxVehicleNoDrive::isKindOf" ref="e6115dc7e2bf9a1a8f73d39c88ac8a65" args="(const char *name) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool PxVehicleNoDrive::isKindOf </td> <td>(</td> <td class="paramtype">const char *&nbsp;</td> <td class="paramname"> <em>superClass</em> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns whether a given type name matches with the type of this instance. <p> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#dc581b466ddace41b7592df8cf54b69a">PxVehicleWheels</a>.</p> <p>References <a class="el" href="PxBase_8h-source.html#l00178">PxBase::isKindOf()</a>.</p> </div> </div><p> <a class="anchor" name="7a919ed8c0cf3b9330ac693fa1200bd9"></a><!-- doxytag: member="PxVehicleNoDrive::isValid" ref="7a919ed8c0cf3b9330ac693fa1200bd9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool PxVehicleNoDrive::isValid </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td> const<code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Test if the instanced dynamics and configuration data has legal values. <p> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#6874fcce112b19cc7e58f2311ae861f3">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="3150f58d865082068a1bf7c674cec010"></a><!-- doxytag: member="PxVehicleNoDrive::setBrakeTorque" ref="3150f58d865082068a1bf7c674cec010" args="(const PxU32 id, const PxReal brakeTorque)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::setBrakeTorque </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>id</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const PxReal&nbsp;</td> <td class="paramname"> <em>brakeTorque</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Set the brake torque to be applied to a specific wheel. <p> <dl class="note" compact><dt><b>Note:</b></dt><dd>The applied brakeTorque persists until the next call to setBrakeTorque<p> The brake torque is specified in Newton metres.</dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>id</em>&nbsp;</td><td>is the wheel being given the brake torque </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>brakeTorque</em>&nbsp;</td><td>is the value of the brake torque </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="2cee320c1b39eb72f8350e63ae5fd749"></a><!-- doxytag: member="PxVehicleNoDrive::setDriveTorque" ref="2cee320c1b39eb72f8350e63ae5fd749" args="(const PxU32 id, const PxReal driveTorque)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::setDriveTorque </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>id</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const PxReal&nbsp;</td> <td class="paramname"> <em>driveTorque</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Set the drive torque to be applied to a specific wheel. <p> <dl class="note" compact><dt><b>Note:</b></dt><dd>The applied driveTorque persists until the next call to setDriveTorque<p> The brake torque is specified in Newton metres.</dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>id</em>&nbsp;</td><td>is the wheel being given the brake torque </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>driveTorque</em>&nbsp;</td><td>is the value of the brake torque </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="362899ae429c39a05703223bb8fdba0f"></a><!-- doxytag: member="PxVehicleNoDrive::setSteerAngle" ref="362899ae429c39a05703223bb8fdba0f" args="(const PxU32 id, const PxReal steerAngle)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::setSteerAngle </td> <td>(</td> <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td> <td class="paramname"> <em>id</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const PxReal&nbsp;</td> <td class="paramname"> <em>steerAngle</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Set the steer angle to be applied to a specific wheel. <p> <dl class="note" compact><dt><b>Note:</b></dt><dd>The applied steerAngle persists until the next call to setSteerAngle<p> The steer angle is specified in radians.</dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>id</em>&nbsp;</td><td>is the wheel being given the steer angle </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>steerAngle</em>&nbsp;</td><td>is the value of the steer angle in radians. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="284e8e6ff3c1617b8c39bab3edc217c7"></a><!-- doxytag: member="PxVehicleNoDrive::setToRestState" ref="284e8e6ff3c1617b8c39bab3edc217c7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::setToRestState </td> <td>(</td> <td class="paramname"> </td> <td>&nbsp;)&nbsp;</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set a vehicle to its rest state. Aside from the rigid body transform, this will set the vehicle and rigid body to the state they were in immediately after setup or create. <p> <dl class="note" compact><dt><b>Note:</b></dt><dd>Calling setToRestState invalidates the cached raycast hit planes under each wheel meaning that suspension line raycasts need to be performed at least once with PxVehicleSuspensionRaycasts before calling PxVehicleUpdates. </dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleNoDrive.html#837924c936c8b6608b691e48e80fcab4" title="Set up a vehicle using simulation data for the wheels.">setup</a>, <a class="el" href="classPxVehicleNoDrive.html#937dd25f27b4cd5696a575e38b97394a" title="Allocate and set up a vehicle using simulation data for the wheels.">create</a>, <a class="el" href="group__vehicle.html#g2020b9fcb5092e2a2d81e82ba7461dfd" title="Perform raycasts for all suspension lines for all vehicles.">PxVehicleSuspensionRaycasts</a>, <a class="el" href="group__vehicle.html#g47aff43683966ca9d1118a1bf4a1f5c2" title="Update an array of vehicles by either applying an acceleration to the rigid body...">PxVehicleUpdates</a> </dd></dl> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#38cf9474ad2c23ba3c21766fac251339">PxVehicleWheels</a>.</p> </div> </div><p> <a class="anchor" name="837924c936c8b6608b691e48e80fcab4"></a><!-- doxytag: member="PxVehicleNoDrive::setup" ref="837924c936c8b6608b691e48e80fcab4" args="(PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &amp;wheelsData)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void PxVehicleNoDrive::setup </td> <td>(</td> <td class="paramtype"><a class="el" href="classPxPhysics.html">PxPhysics</a> *&nbsp;</td> <td class="paramname"> <em>physics</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *&nbsp;</td> <td class="paramname"> <em>vehActor</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;&nbsp;</td> <td class="paramname"> <em>wheelsData</em></td><td>&nbsp;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Set up a vehicle using simulation data for the wheels. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>physics</em>&nbsp;</td><td>is a <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK.">PxPhysics</a> instance that is needed to create special vehicle constraints that are maintained by the vehicle. </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>vehActor</em>&nbsp;</td><td>is a <a class="el" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a> instance that is used to represent the vehicle in the PhysX SDK. </td></tr> <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wheelsData</em>&nbsp;</td><td>describes the configuration of all suspension/tires/wheels of the vehicle. The vehicle instance takes a copy of this data. </td></tr> </table> </dl> <dl class="note" compact><dt><b>Note:</b></dt><dd>It is assumed that the first shapes of the actor are the wheel shapes, followed by the chassis shapes. To break this assumption use PxVehicleWheels::setWheelShapeMapping. </dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleNoDrive.html#56a124040b12516dcb8f3c04495a985b" title="Allocate a PxVehicleNoDrive instance for a vehicle without drive model and with nbWheels...">allocate</a>, <a class="el" href="classPxVehicleNoDrive.html#90b0f7e9da87f3de5e38e1844b404342" title="Deallocate a PxVehicleNoDrive instance.">free</a>, <a class="el" href="classPxVehicleNoDrive.html#284e8e6ff3c1617b8c39bab3edc217c7" title="Set a vehicle to its rest state. Aside from the rigid body transform, this will set...">setToRestState</a>, PxVehicleWheels::setWheelShapeMapping </dd></dl> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="a960a335429c764ff7e258a0ec3ab5f0"></a><!-- doxytag: member="PxVehicleNoDrive::PxVehicleUpdate" ref="a960a335429c764ff7e258a0ec3ab5f0" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend class PxVehicleUpdate<code> [friend]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="classPxVehicleWheels.html#a960a335429c764ff7e258a0ec3ab5f0">PxVehicleWheels</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="5b2c76abb2dc55b4047675cd7392475d"></a><!-- doxytag: member="PxVehicleNoDrive::mBrakeTorques" ref="5b2c76abb2dc55b4047675cd7392475d" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxReal* <a class="el" href="classPxVehicleNoDrive.html#5b2c76abb2dc55b4047675cd7392475d">PxVehicleNoDrive::mBrakeTorques</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="c5f06c9756c093f56f46e47d1d05c40c"></a><!-- doxytag: member="PxVehicleNoDrive::mDriveTorques" ref="c5f06c9756c093f56f46e47d1d05c40c" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxReal* <a class="el" href="classPxVehicleNoDrive.html#c5f06c9756c093f56f46e47d1d05c40c">PxVehicleNoDrive::mDriveTorques</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="0eef7389deac2fd9aeb1824c62ec5a00"></a><!-- doxytag: member="PxVehicleNoDrive::mPad" ref="0eef7389deac2fd9aeb1824c62ec5a00" args="[1]" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> <a class="el" href="classPxVehicleNoDrive.html#0eef7389deac2fd9aeb1824c62ec5a00">PxVehicleNoDrive::mPad</a>[1]<code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="7facb97674b5575b66ffa9d780c2a1c3"></a><!-- doxytag: member="PxVehicleNoDrive::mSteerAngles" ref="7facb97674b5575b66ffa9d780c2a1c3" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PxReal* <a class="el" href="classPxVehicleNoDrive.html#7facb97674b5575b66ffa9d780c2a1c3">PxVehicleNoDrive::mSteerAngles</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="PxVehicleNoDrive_8h-source.html">PxVehicleNoDrive.h</a></ul> </div> <hr style="width: 100%; height: 2px;"><br> </body> </html> ```
```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 io.pravega.segmentstore.server.store; import com.google.common.base.Preconditions; import io.pravega.common.util.ConfigBuilder; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.util.Properties; import java.util.function.BiConsumer; import java.util.function.Supplier; import lombok.extern.slf4j.Slf4j; import lombok.val; /** * Configuration for ServiceBuilder. */ @Slf4j public class ServiceBuilderConfig { //region Members public static final String CONFIG_FILE_PROPERTY_NAME = "pravega.configurationFile"; private final Properties properties; //endregion //region Constructor /** * Creates a new instance of the ServiceBuilderConfig class. * * @param properties The Properties object to wrap. */ private ServiceBuilderConfig(Properties properties) { Preconditions.checkNotNull(properties, "properties"); this.properties = properties; } /** * Creates a new Builder for this class. * * @return The created Builder. */ public static Builder builder() { return new Builder(); } //endregion /** * Gets a new instance of a Configuration for this builder. * * @param constructor A Supplier for a ConfigBuilder for the given Configuration. * @param <T> The type of the Configuration to instantiate. * @return The new instance of a Configuration for this builder. */ public <T> T getConfig(Supplier<? extends ConfigBuilder<? extends T>> constructor) { return constructor.get() .rebase(this.properties) .build(); } /** * Gets a new instance of a Builder for this builder. * * @param constructor A Supplier for a ConfigBuilder for the given Configuration. * @param <T> The type of the Configuration to instantiate a builder for. * @return The new instance of a ConfigurationBuilder for this builder. */ public <T> ConfigBuilder<? extends T> getConfigBuilder(Supplier<? extends ConfigBuilder<? extends T>> constructor) { return constructor.get() .rebase(this.properties); } /** * Stores the contents of the ServiceBuilderConfig into the given File. * * @param file The file to store the contents in. * @throws IOException If an exception occurred. */ public void store(File file) throws IOException { try (val s = new FileOutputStream(file, false)) { this.properties.store(s, ""); } } /** * Executes the given BiConsumer on all non-default properties in this configuration. * * @param consumer The BiConsumer to execute. */ public void forEach(BiConsumer<? super Object, ? super Object> consumer) { this.properties.forEach(consumer); } //region Default Configuration /** * Gets a default set of configuration values, in absence of any real configuration. * These configuration values are the default ones from all component configurations, except that it will * create only one container to host segments. * @return The default set of configuration values. */ public static ServiceBuilderConfig getDefaultConfig() { // All component configs should have defaults built-in, so no need to override them here. return new Builder() .include(ServiceConfig.builder().with(ServiceConfig.CONTAINER_COUNT, 1)) .build(); } //endregion //region Builder /** * Represents a Builder for the ServiceBuilderConfig. * Returns the new instance of a Configuration. */ public static class Builder { private final Properties properties; private Builder() { this.properties = new Properties(); } /** * Creates a new instance of this class containing a copy of the existing configuration. * * @return A new instance of this class. */ public Builder makeCopy() { return new Builder().include(this.properties); } /** * Loads configuration values from the given config file. * * @param filePath The path to the file to read form. * @return This instance. * @throws IOException If the config file can not be read from. */ public Builder include(String filePath) throws IOException { try (FileReader reader = new FileReader(filePath)) { this.properties.load(reader); } return this; } /** * Includes the given Builder into this Builder. * * @param builder The Builder to include. * @param <T> Type of the Configuration to include. * @return This instance. */ public <T> Builder include(ConfigBuilder<T> builder) { builder.copyTo(this.properties); return this; } /** * Includes the given Properties into this Builder. * * @param p The properties to include. * @return This instance. */ public Builder include(Properties p) { this.properties.putAll(p); return this; } /** * Creates a new instance of the ServiceBuilderConfig class with the information contained in this builder. * * @return The newly created ServiceBuilderConfig. */ public ServiceBuilderConfig build() { return new ServiceBuilderConfig(this.properties); } } //endregion } ```
```objective-c /****************************************************************** iLBC Speech Coder ANSI-C Source Code LPCencode.h All Rights Reserved. ******************************************************************/ #ifndef __iLBC_LPCENCOD_H #define __iLBC_LPCENCOD_H void LPCencode( float *syntdenum, /* (i/o) synthesis filter coefficients before/after encoding */ float *weightdenum, /* (i/o) weighting denumerator coefficients before/after encoding */ int *lsf_index, /* (o) lsf quantization index */ float *data, /* (i) lsf coefficients to quantize */ iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the encoder state structure */ ); #endif ```
```go /* 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 unversioned import ( "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/watch" ) // HorizontalPodAutoscalersNamespacer has methods to work with HorizontalPodAutoscaler resources in a namespace type HorizontalPodAutoscalersNamespacer interface { HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface } // HorizontalPodAutoscalerInterface has methods to work with HorizontalPodAutoscaler resources. type HorizontalPodAutoscalerInterface interface { List(opts api.ListOptions) (*extensions.HorizontalPodAutoscalerList, error) Get(name string) (*extensions.HorizontalPodAutoscaler, error) Delete(name string, options *api.DeleteOptions) error Create(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (*extensions.HorizontalPodAutoscaler, error) Update(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (*extensions.HorizontalPodAutoscaler, error) UpdateStatus(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (*extensions.HorizontalPodAutoscaler, error) Watch(opts api.ListOptions) (watch.Interface, error) } // horizontalPodAutoscalers implements HorizontalPodAutoscalersNamespacer interface type horizontalPodAutoscalers struct { client *ExtensionsClient ns string } // newHorizontalPodAutoscalers returns a horizontalPodAutoscalers func newHorizontalPodAutoscalers(c *ExtensionsClient, namespace string) *horizontalPodAutoscalers { return &horizontalPodAutoscalers{ client: c, ns: namespace, } } // List takes label and field selectors, and returns the list of horizontalPodAutoscalers that match those selectors. func (c *horizontalPodAutoscalers) List(opts api.ListOptions) (result *extensions.HorizontalPodAutoscalerList, err error) { result = &extensions.HorizontalPodAutoscalerList{} err = c.client.Get().Namespace(c.ns).Resource("horizontalPodAutoscalers").VersionedParams(&opts, api.ParameterCodec).Do().Into(result) return } // Get takes the name of the horizontalPodAutoscaler, and returns the corresponding HorizontalPodAutoscaler object, and an error if it occurs func (c *horizontalPodAutoscalers) Get(name string) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Get().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(name).Do().Into(result) return } // Delete takes the name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. func (c *horizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(name).Body(options).Do().Error() } // Create takes the representation of a horizontalPodAutoscaler and creates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if it occurs. func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Post().Namespace(c.ns).Resource("horizontalPodAutoscalers").Body(horizontalPodAutoscaler).Do().Into(result) return } // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if it occurs. func (c *horizontalPodAutoscalers) Update(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Put().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(horizontalPodAutoscaler.Name).Body(horizontalPodAutoscaler).Do().Into(result) return } // UpdateStatus takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if it occurs. func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Put().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(horizontalPodAutoscaler.Name).SubResource("status").Body(horizontalPodAutoscaler).Do().Into(result) return } // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). Resource("horizontalPodAutoscalers"). VersionedParams(&opts, api.ParameterCodec). Watch() } // horizontalPodAutoscalersV1 implements HorizontalPodAutoscalersNamespacer interface using AutoscalingClient internally // TODO(piosz): get back to one client implementation once HPA will be graduated to GA completely type horizontalPodAutoscalersV1 struct { client *AutoscalingClient ns string } // newHorizontalPodAutoscalers returns a horizontalPodAutoscalers func newHorizontalPodAutoscalersV1(c *AutoscalingClient, namespace string) *horizontalPodAutoscalersV1 { return &horizontalPodAutoscalersV1{ client: c, ns: namespace, } } // List takes label and field selectors, and returns the list of horizontalPodAutoscalers that match those selectors. func (c *horizontalPodAutoscalersV1) List(opts api.ListOptions) (result *extensions.HorizontalPodAutoscalerList, err error) { result = &extensions.HorizontalPodAutoscalerList{} err = c.client.Get().Namespace(c.ns).Resource("horizontalPodAutoscalers").VersionedParams(&opts, api.ParameterCodec).Do().Into(result) return } // Get takes the name of the horizontalPodAutoscaler, and returns the corresponding HorizontalPodAutoscaler object, and an error if it occurs func (c *horizontalPodAutoscalersV1) Get(name string) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Get().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(name).Do().Into(result) return } // Delete takes the name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. func (c *horizontalPodAutoscalersV1) Delete(name string, options *api.DeleteOptions) error { return c.client.Delete().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(name).Body(options).Do().Error() } // Create takes the representation of a horizontalPodAutoscaler and creates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if it occurs. func (c *horizontalPodAutoscalersV1) Create(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Post().Namespace(c.ns).Resource("horizontalPodAutoscalers").Body(horizontalPodAutoscaler).Do().Into(result) return } // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if it occurs. func (c *horizontalPodAutoscalersV1) Update(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Put().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(horizontalPodAutoscaler.Name).Body(horizontalPodAutoscaler).Do().Into(result) return } // UpdateStatus takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if it occurs. func (c *horizontalPodAutoscalersV1) UpdateStatus(horizontalPodAutoscaler *extensions.HorizontalPodAutoscaler) (result *extensions.HorizontalPodAutoscaler, err error) { result = &extensions.HorizontalPodAutoscaler{} err = c.client.Put().Namespace(c.ns).Resource("horizontalPodAutoscalers").Name(horizontalPodAutoscaler.Name).SubResource("status").Body(horizontalPodAutoscaler).Do().Into(result) return } // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. func (c *horizontalPodAutoscalersV1) Watch(opts api.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). Resource("horizontalPodAutoscalers"). VersionedParams(&opts, api.ParameterCodec). Watch() } ```
```java /* * * This program and the accompanying materials are made * which is available at path_to_url * */ package org.eclipse.milo.opcua.stack.core.types.structured; import lombok.EqualsAndHashCode; import lombok.ToString; import lombok.experimental.SuperBuilder; import org.eclipse.milo.opcua.stack.core.serialization.SerializationContext; import org.eclipse.milo.opcua.stack.core.serialization.UaDecoder; import org.eclipse.milo.opcua.stack.core.serialization.UaEncoder; import org.eclipse.milo.opcua.stack.core.serialization.UaRequestMessage; import org.eclipse.milo.opcua.stack.core.serialization.codecs.GenericDataTypeCodec; import org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId; import org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject; @EqualsAndHashCode( callSuper = false ) @SuperBuilder( toBuilder = true ) @ToString public class ActivateSessionRequest extends Structure implements UaRequestMessage { public static final ExpandedNodeId TYPE_ID = ExpandedNodeId.parse("nsu=path_to_url"); public static final ExpandedNodeId BINARY_ENCODING_ID = ExpandedNodeId.parse("nsu=path_to_url"); public static final ExpandedNodeId XML_ENCODING_ID = ExpandedNodeId.parse("nsu=path_to_url"); private final RequestHeader requestHeader; private final SignatureData clientSignature; private final SignedSoftwareCertificate[] clientSoftwareCertificates; private final String[] localeIds; private final ExtensionObject userIdentityToken; private final SignatureData userTokenSignature; public ActivateSessionRequest(RequestHeader requestHeader, SignatureData clientSignature, SignedSoftwareCertificate[] clientSoftwareCertificates, String[] localeIds, ExtensionObject userIdentityToken, SignatureData userTokenSignature) { this.requestHeader = requestHeader; this.clientSignature = clientSignature; this.clientSoftwareCertificates = clientSoftwareCertificates; this.localeIds = localeIds; this.userIdentityToken = userIdentityToken; this.userTokenSignature = userTokenSignature; } @Override public ExpandedNodeId getTypeId() { return TYPE_ID; } @Override public ExpandedNodeId getBinaryEncodingId() { return BINARY_ENCODING_ID; } @Override public ExpandedNodeId getXmlEncodingId() { return XML_ENCODING_ID; } public RequestHeader getRequestHeader() { return requestHeader; } public SignatureData getClientSignature() { return clientSignature; } public SignedSoftwareCertificate[] getClientSoftwareCertificates() { return clientSoftwareCertificates; } public String[] getLocaleIds() { return localeIds; } public ExtensionObject getUserIdentityToken() { return userIdentityToken; } public SignatureData getUserTokenSignature() { return userTokenSignature; } public static final class Codec extends GenericDataTypeCodec<ActivateSessionRequest> { @Override public Class<ActivateSessionRequest> getType() { return ActivateSessionRequest.class; } @Override public ActivateSessionRequest decode(SerializationContext context, UaDecoder decoder) { RequestHeader requestHeader = (RequestHeader) decoder.readStruct("RequestHeader", RequestHeader.TYPE_ID); SignatureData clientSignature = (SignatureData) decoder.readStruct("ClientSignature", SignatureData.TYPE_ID); SignedSoftwareCertificate[] clientSoftwareCertificates = (SignedSoftwareCertificate[]) decoder.readStructArray("ClientSoftwareCertificates", SignedSoftwareCertificate.TYPE_ID); String[] localeIds = decoder.readStringArray("LocaleIds"); ExtensionObject userIdentityToken = decoder.readExtensionObject("UserIdentityToken"); SignatureData userTokenSignature = (SignatureData) decoder.readStruct("UserTokenSignature", SignatureData.TYPE_ID); return new ActivateSessionRequest(requestHeader, clientSignature, clientSoftwareCertificates, localeIds, userIdentityToken, userTokenSignature); } @Override public void encode(SerializationContext context, UaEncoder encoder, ActivateSessionRequest value) { encoder.writeStruct("RequestHeader", value.getRequestHeader(), RequestHeader.TYPE_ID); encoder.writeStruct("ClientSignature", value.getClientSignature(), SignatureData.TYPE_ID); encoder.writeStructArray("ClientSoftwareCertificates", value.getClientSoftwareCertificates(), SignedSoftwareCertificate.TYPE_ID); encoder.writeStringArray("LocaleIds", value.getLocaleIds()); encoder.writeExtensionObject("UserIdentityToken", value.getUserIdentityToken()); encoder.writeStruct("UserTokenSignature", value.getUserTokenSignature(), SignatureData.TYPE_ID); } } } ```
Poetry () is a 2010 South Korean-French drama film written and directed by Lee Chang-dong. It tells the story of a suburban woman in her 60s who begins to develop an interest in poetry while struggling with Alzheimer's disease and her irresponsible grandson. Yoon Jeong-hee appears in the leading role, which was her first role in a film since 1994. The film was selected for the main competition at the 2010 Cannes Film Festival, where it won the Best Screenplay Award. Other accolades include the Grand Bell Awards for Best Picture and Best Actress, the Blue Dragon Film Awards for Best Actress, the Los Angeles Film Critics Association Award for Best Actress, and the Asia Pacific Screen Award for Achievement in Directing and Best Performance by an Actress. Plot The movie opens on a river scene with children playing on the bank. The body of a girl in a school uniform floats by. Yang Mi-ja (Yoon Jeong-hee), a 66-year-old grandmother, consults a doctor at a hospital who is concerned about her forgetfulness, and referring her to a specialist. As she leaves the hospital she sees a woman crazy with grief because her 16-year-old daughter has drowned. Though Mi-ja lives on government welfare, she has a small job taking care of a well-to-do elderly man who has had a stroke. At home, she cares for her ill-mannered 16-year-old grandson, Jong-wook (Lee David), whose divorced mother lives in Busan. When Mi-ja asks Jong-wook about the girl from his class who drowned, Jong-wook insists that he doesn't know her. When Mi-ja notices a poster advertising a poetry class at a local community center, she decides to enroll. The course assignment is to write one poem by the end of the month-long course. At the suggestion of her teacher, she begins writing notes about the things she sees, especially flowers. Jong-wook frequently leaves home at odd hours to socialize with five other boys from school. One night, he invites all of them over without notifying Mi-ja, who nevertheless tries to be a gracious host, offering them a snack before they disappear into Jong-wook's bedroom. Later, one of the boys' fathers insists that Mi-ja join him and the other boys' fathers for a meeting. She is told that the group of boys have repeatedly raped a girl, Agnes, over the past six months, before she jumped off a bridge into a river and drowned. Her diary was discovered, though only four members of the school's faculty were aware of the situation. The fathers fear retribution for their boys, and the school fears a scandal that will tarnish its reputation. To avert a full police investigation, the parents of the boys offer to pay a settlement of 30 million won to the widowed mother, a poor farmer. Mi-ja, who cannot afford her 5 million won portion of the payment, is pressured to ask her daughter (Jong-wook's mother) for the money. Though Mi-ja occasionally speaks to her daughter on the phone, she does not mention the situation. When Mi-ja is diagnosed with early stage Alzheimer's disease, she again neglects to tell anyone. She attempts to confront Jong-wook about his actions, but he simply ignores her. Mi-ja begins attending a local weekly poetry reading. A brash man frequently reads beautiful poetry at these readings, but follows them with crude sexual jokes that offend Mi-ja. Another amateur poet explains to Mi-ja that the man is a policeman with a good heart, and was recently reassigned from Seoul after exposing corruption within its police force. Mi-ja temporarily quits her job caring for the elderly stroke victim after he makes a desperate sexual advance toward her. She later returns after a journey to the bridge where Agnes jumps, and her hat flies off into the water. She walks down to the riverbank and sits, writing poetry until it begins raining. Dripping wet, she returns to the elderly man, agreeing to have sex with him. When she does, she appears emotionless. In another meeting with the fathers, Mi-ja is elected to travel to the countryside to convince Agnes' mother to accept the settlement. Initially not finding her at home, Mi-ja eventually comes across her working in the field. Mi-ja begins raving about how beautiful the weather, flowers, trees, and fruit are, forgetting about the task at hand. The two have a pleasant exchange before Mi-ja turns and begins to walk away. Finally, she remembers that she was meant to confront the woman about the settlement, but is too embarrassed and continues to leave. A few days later, Mi-ja returns to the father to admit that she still cannot pay her portion of the settlement. Though annoyed that she still hasn't contributed her sum, the fathers are overjoyed that Agnes' mother has agreed to settle, despite Mi-ja's failure to confront her. Mi-ja asks the elderly man for the money she needs, refusing to tell him what it is for. Wondering if this is Mi-ja's attempt at extortion, he pays her. Once the settlement has been paid to Agnes' mother, Mi-ja phones her daughter to come home, and insists that Jong-wook shower and cut his nails. That night, the crude policeman from the weekly poetry readings appears with his partner to take Jong-wook away. Mi-ja does not protest. The film concludes with Mi-ja's poetry teacher discovering a bouquet on the class podium with her poem, "Agnes's Song", but Mi-ja herself is not present. Her daughter returns to an empty home, and calls Mi-ja's phone, but receives no answer. The teacher begins to read Mi-ja's poem to the class. Mi-ja speaks in voiceover, though the voice of Agnes herself takes over midway through, following Agnes from the science lab, where she was raped, to the bus, to the bridge where she is to jump. Agnes turns to the camera, half-smiling, leaving Mi-ja's fate on an ambiguous note. Cast Yoon Jeong-hee as Yang Mi-ja Lee David as Park Jong-wook Kim Hee-ra as Mr. Kang Ahn Nae-sang as Ki-beom's father Kim Yong-taek as Kim Yong-taek Park Myeong-sin as Hee-jin's mother Min Bok-gi as Sun-chang's father Kim Hye-jung as Jo Mi-hye Kim Hye-jung as Sick Elderly Production The idea for the film had its origin in a real-life case where a small town schoolgirl had been raped by a gang of teenage boys. When director Lee Chang-dong heard about the incident, it made an impact on him, although he hadn't been interested in basing a film on the actual events. Later, during a visit to Japan, Lee saw a television program in his hotel room. The program was edited entirely from relaxing shots of nature, "a peaceful river, birds flying, fishermen on the sea – with soft new-age music in the background," and a vision for a possible feature film started to form. "Suddenly, it reminded me of that horrible incident, and the word 'poetry' and the image of a 60-year old woman came up in my mind." Lee wrote the lead character specifically for Yoon Jeong-hee, a major star of Korean cinema from the 1960s and 1970s. Yoon later expressed satisfaction with how the role differed from what she typically played in the past: "I've always had the desire to show people different aspects of my acting and (Lee) provided me with every opportunity to do just that." Before Poetry, the last film Yoon appeared in was Manmubang ("Two Flags") from 1994. Production was led by Pine House Film, founded in 2005 by the director, with co-production support from UniKorea Culture & Art Investment. Filming started on August 25, 2009 and ended three months later in Gyeonggi Province and Gangwon Province. Lee was initially worried that Yoon's long experience might have bound her to an outdated acting style, but was very pleased with her attitude, saying, "She performed her scenes with a willingness to discuss and this is difficult to find even in younger actors." Release On May 13, 2010, N.E.W. released Poetry in 194 South Korean theaters with a gross revenue corresponding to around during the first weekend. As of August 1, 2010, Box Office Mojo reported a total revenue of in the film's domestic market. The film sold 220,693 tickets nationwide in South Korea. The international premiere took place at the 2010 Cannes Film Festival, where Poetry was screened on May 19 as part of the main competition. The Korean DVD was released on October 23, 2010 and includes English subtitles. The film was distributed theatrically in the United States by Kino International. It was screened at the 28th Busan International Film Festival as part of 'Special screening' on 5 October 2023. Reception Critical response As of July 1, 2019, the film has a 100% approval rating from critics with 67 reviews on film review aggregation site Rotten Tomatoes, with a weighted average of 8.64/10. The website's critical consensus reads, "Poetry is an absorbing, poignant drama because it offers no easy answers to its complex central conflict." At Metacritic, based on 23 critical reviews, the film had a score of 87 out of 100, categorizing it as having received "universal acclaim". "Given the abundant potential for missteps into sappiness with this sort of premise," Justin Chang wrote in Variety, "what's notable here is the lack of sentimentality in Lee's approach. At no point does Poetry devolve into a terminal-illness melodrama or a tale of intergenerational bonding." Chang continued by noting how Lee's background as a novelist sometimes shows through, and that "[t]here are longueurs here... that could be trimmed, though overall this absorbing film feels considerably shorter than its 139 minutes." It was included in CNN'''s list of top ten best movies of 2011, and Chicago Tribune film critic Michael Phillips named Poetry his favorite film of 2011. In 2020, The Guardian ranked it number 4 among the classics of modern South Korean Cinema. Accolades Lee won the Best Screenplay Award at the Cannes Film Festival. At the 47th Grand Bell Awards, Poetry won the prizes for Best Picture, Best Screenplay, Best Actress and Best Supporting Actor. The film received the Korean Association of Film Critics Awards for Best Picture and Best Screenplay. The jury of the 31st Blue Dragon Film Awards decided to exclude Poetry from the selection, since Lee had announced that he would boycott the ceremony. Still, they nominated Yoon for Best Actress as they thought the director's decision should not affect the cast. The award was eventually shared by Yoon and Soo Ae, for her performance in Midnight FM. At the 2010 Asia Pacific Screen Awards, Lee received the award for Best Achievement in Directing and Yoon for Best Performance by an Actress; the film was also nominated in the categories Best Feature Film and Best Screenplay. It was also nominated for the Grand Prix of the Belgian Syndicate of Cinema Critics. In 2011, Poetry was nominated as Best Film at the 5th Asian Film Awards, where Lee won Best Director and Best Screenplay. It also received the Le Regard d'Or ("Golden Gaze") Grand Prix and FIPRESCI Award at the Fribourg International Film Festival. After France honored Yoon as an Officier dans l'ordre des Arts et Lettres ("Officer of the Order of Arts and Letters), she was named Best Actress at the Cinemanila International Film Festival. Yoon also won the Los Angeles Film Critics Association Award for Best Actress for her performance, marking the second consecutive year a Korean actress won the award after Kim Hye-ja won for Mother'' in 2010. See also List of films with a 100% rating on Rotten Tomatoes, a film review aggregator website References External links Poetry official North American website at Kino International 2010 films 2010 drama films Best Picture Grand Bell Award winners French films about Alzheimer's disease South Korean films about Alzheimer's disease Films about bullying Films about suicide Films directed by Lee Chang-dong 2010s Korean-language films Films about rape South Korean drama films French drama films Films about poetry Films about poets 2010s South Korean films 2010s French films Films about disability Next Entertainment World films
On 22 February 2021, Zimbabwe launched their national COVID-19 vaccination program using the Sinopharm BIBP vaccine. As of 17 June 2022, 6,260,228 people have received their first dose, 4,598,703 have received their second dose, and 851,874 have received a third dose. Corruption is alleged to exist within the public vaccination program, with priority for receiving vaccines being given to those willing to pay bribes to hospital staff, and members of Zimbabwe's ruling party ZANU-PF. Vaccines are reportedly available within the private health care system at a cost of approximately US$40. Vaccine in order History Timeline On 14 February 2021, the first 200,000 doses of the Sinopharm BIBP vaccine landed at Harare's Robert Mugabe International Airport. On 22 February 2021 Zimbabwe began its vaccination program. On 25 February the number of people vaccinated surpassed 10,000 people. In mid-June 2021, Alrosa Zim donated 25,000 doses of the Sputnik V COVID-19 vaccine to Zimbabwe, followed by 25,000 more doses a month later. On 8 July 2021, Zimbabwe received 2 million doses of the Sinovac vaccine. In December 2021, a booster vaccination programme was launched for those already double vaccinated. On 20 December 2021, Zimbabwe received one million doses of the Sinovac vaccine donated by China. Progress By the end of March 2021, 85,866 vaccine doses had been administered; 433,939 by the end of April; one million by the end of May; 1.3 million by the end of June; 2.3 million by the end of July; 3.8 million by the end of August; 5.2 million by the end of September; 5.8 million by the end of October; 6.4 million by the end of November; 7.2 million by the end of December 2021; 7.8 million by the end of January 2022; 7.9 million by the end of February 2022; 9.4 million by the end of March 2022; 10.3 million by the end of April 2022. There were 0.8 million fully vaccinated by the end of July 2021; 1.6 million by the end of August; 2.3 million by the end of September 2021; 2.5 million by the end of October 2021; 2.8 million by the end of November 2021; 3.1 million by the end of December 2021; 3.3 million by the end of January 2022; 3.4 million by the end of February 2022; 3.5 million by the end of March 2022; 3.7 million by the end of April 2022. References Zimbabwe Vaccination Zimbabwe COVID-19 pandemic by country
```xml import ReactDOM from 'react-dom'; /** * * @param comp * @param container */ export function render(comp: any, container: HTMLElement) { ReactDOM.render(comp, container); } /** * * @param container */ export function destroy(container: HTMLElement) { ReactDOM.unmountComponentAtNode(container); } /** * div container body * @param title * @param container * @param id id */ export function createDiv(container: HTMLElement = document.body): HTMLElement { const div = document.createElement('div'); container.appendChild(div); return div; } /** * dom * @param dom */ export function removeDom(dom: HTMLElement) { const parent = dom.parentNode; if (parent) { parent.removeChild(dom); } } ```
```java /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ package org.apache.pulsar.functions.worker; import lombok.Data; import lombok.experimental.Accessors; import org.apache.pulsar.functions.proto.Function.Instance; import org.apache.pulsar.functions.runtime.RuntimeSpawner; @Data @Accessors(chain = true) public class FunctionRuntimeInfo { private Instance functionInstance; // The associated runtime with it if any private RuntimeSpawner runtimeSpawner; // Any exceptions on startup private Exception startupException; } ```
Cristovão da Silva Bastos Filho (born December 3, 1946) is a Brazilian songwriter, pianist and arranger. He has performed and composed for artists including Maria Bethânia, Milton Nascimento, Gal Costa, Ivan Lins, Barbra Streisand, Dionne Warwick and Paulinho da Viola. Bastos has been nominated for a Latin Grammy and has won 6 Prêmio da Música Brasileira. Work Bastos has been active as a songwriter, arranger and pianist since the 1970s. In 1992, he released "Bons Encontros", his first album as a primary artist along with Marco Pereira. In 1996, he released his first solo album, "Avenida Brasil". Bastos was the pianist and arranger for Dionne Warwick's 1994 album "Aquarela do Brasil", a collection of Brazilian jazz and pop standards. Barbra Streisand's 1999 song "Let's Start Right Now" is set to the music of "Raios de Luz", written by Bastos and Abel Silva. In 2006, Bastos composed the soundtrack for the film “Zuzu Angel”, directed by Sérgio Rezende. Awards and honors Bastos' album "Cristovão Bastos e Rogério Caetano" was nominated for the Latin Grammy Award for Best Instrumental Album at the 22nd Annual Latin Grammy Awards. Together with Marco Pereira, Bastos won the 1994 Prêmio da Música Brasileira (also known as the Prêmio Sharp) for Best Instrumental Album for their album "Bons Encontros". His song "Tua Cantiga", co-written and performed by Chico Buarque, was awarded the 2018 Prêmio da Música Brasileira for Best Song. As arranger, Bastos received Sharp prizes for his work with Paulinho da Viola (1990), Parceria (1995), Disfarça e Chora (1996), and Tantos Caminhos (1997). Personal life Bastos was married to Amelia Rabello. Discography Bons Encontros (1992) Avenida Brasil (1996) Interpreta Tom Jobim (1999) Cristovão Bastos e Rogério Caetano (2020) References Brazilian composers Male jazz musicians Male pianists Brazilian record producers Brazilian jazz pianists 20th-century composers Latin jazz pianists Música Popular Brasileira pianists Musicians from Rio de Janeiro (city) Latin music songwriters 1946 births Living people
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { renderIcon } from '../icon.renderer.js'; import { IconShapeTuple } from '../interfaces/icon.interfaces.js'; const icon = { outline: '<path d="M28.89,20.91l-5-2.91,4.87-2.86a3.11,3.11,0,0,0,1.14-1.08,3,3,0,0,0-4.09-4.15L21,12.76V7a3,3,0,0,0-6,0v5.76L10.15,9.91a3,3,0,1,0-3,5.18l5,2.91L7.2,20.86a3.11,3.11,0,0,0-1.14,1.08,3,3,0,0,0,4.09,4.14L15,23.24V28.9a3,3,0,0,0,2,2.94A3,3,0,0,0,21,29V23.24l4.85,2.85a3,3,0,1,0,3-5.18ZM28.24,24a1,1,0,0,1-1.37.36L19,19.75V29a1,1,0,0,1-2,0V19.75L9.13,24.36a1,1,0,0,1-1-1.72L16,18l-7.9-4.64a1,1,0,1,1,1-1.72L17,16.25V7a1,1,0,0,1,2,0v9.25l7.87-4.62a1,1,0,0,1,1,1.72L20,18l7.9,4.64A1,1,0,0,1,28.24,24Z"/>', solid: '<path d="M28.89,20.91l-5-2.91,4.87-2.86a3.11,3.11,0,0,0,1.14-1.08,3,3,0,0,0-4.09-4.15L21,12.76V7a3,3,0,0,0-6,0v5.76L10.15,9.91a3,3,0,1,0-3,5.18l5,2.91L7.2,20.86a3.11,3.11,0,0,0-1.14,1.08,3,3,0,0,0,4.09,4.14L15,23.24V28.9a3,3,0,0,0,2,2.94A3,3,0,0,0,21,29V23.24l4.85,2.85a3,3,0,1,0,3-5.18Z"/>', }; export const asteriskIconName = 'asterisk'; export const asteriskIcon: IconShapeTuple = [asteriskIconName, renderIcon(icon)]; ```
```objective-c //===-- SnippetFile.cpp -----------------------------------------*- C++ -*-===// // // See path_to_url for license information. // //===your_sha256_hash------===// /// /// \file /// Utilities to read a snippet file. /// Snippet files are just asm files with additional comments to specify which /// registers should be defined or are live on entry. /// //===your_sha256_hash------===// #ifndef LLVM_TOOLS_LLVM_EXEGESIS_SNIPPETFILE_H #define LLVM_TOOLS_LLVM_EXEGESIS_SNIPPETFILE_H #include "BenchmarkCode.h" #include "LlvmState.h" #include "llvm/Support/Error.h" #include <vector> namespace llvm { namespace exegesis { // Reads code snippets from file `Filename`. Expected<std::vector<BenchmarkCode>> readSnippets(const LLVMState &State, StringRef Filename); } // namespace exegesis } // namespace llvm #endif ```
```javascript const x = 14, y = 3, z = 1977 ```
Ryan O'Marra (born June 9, 1987) is a Canadian former professional ice hockey player. O'Marra played professionally from 2006 until 2015. A first round pick of the New York Islanders of the National Hockey League (NHL), O'Marra played 33 games in the NHL and finished his career playing in European leagues. Early life O'Marra was born to Irish Canadian parents in Tokyo, Japan, and moved to Canada when he was one year old. O'Marra was also a student at Athabasca University. Playing career Amateur O'Marra attended Mentor College Primary School and Lorne Park Secondary School both in Mississauga, Ontario. As a minor ice hockey player in his youth, he participated in the 2000 and 2001 Quebec International Pee-Wee Hockey Tournaments with the North York Rangers, and the Toronto Marlboros teams. O'Marra played three seasons in the Ontario Hockey League (OHL) for the Erie Otters. In two seasons with the Otters, he has earned 95 points (41 goals and 54 assists) in 127 regular season games. He has also scored 15 points (nine goals and six assists) in 15 playoff games with the Otters. O'Marra was then drafted in the first round, 15th overall, by the New York Islanders in the 2005 NHL Entry Draft. He became the first Japanese-born Canadian player selected in the first round of an NHL Entry Draft. Professional On March 30, 2006, at the conclusion of the 2005–06 season, O'Marra was signed to a three-year contract by the New York Islanders. He then joined the Islanders' American Hockey League (AHL) affiliate, the Bridgeport Sound Tigers, scoring two goals in his professional debut. O'Marra was then returned to the Otters for his final junior-eligible season, in 2006–07. The Otters got off to a slow start, and he was traded to the Saginaw Spirit in late November in exchange for promising centre Zack Torquato. On February 27, 2007, O'Marra's NHL rights were dealt in a trade to the Edmonton Oilers, along with Robert Nilsson and the Islanders' first-round draft pick in the 2007 (Alex Plante), in exchange for Ryan Smyth. After two difficult seasons with the Oilers' minor league affiliates, the Springfield Falcons and Stockton Thunder, O'Marra made his NHL debut with Edmonton in the 2009–10 season. He played six minutes and was a –1 plus-minus in a game against the Ottawa Senators on November 10, 2009. O'Marra later recorded his first career NHL point on an assist of a Colin McDonald goal against the Vancouver Canucks, on November 28; the goal was also McDonald's first career NHL point. O'Marra scored his first career NHL goal on December 26, 2010, against Cory Schneider of the Canucks. On March 17, 2011, due to multiple injuries to Oilers players, O'Marra was again recalled to the NHL, along with fellow Oklahoma City Barons – Edmonton's new AHL affiliate – teammates Alexandre Giroux and Chris VandeVelde. During the following season, 2011–12, O'Marra was traded to the Anaheim Ducks in exchange for Bryan Rodney on February 16, 2012. On July 27, 2012, with the impending 2012–13 NHL lockout, O'Marra signed his first European contract on a one-year deal with Lahti Pelicans of the Finnish SM-liiga. However, after only eight games into the 2012–13 season and enduring a diminished role within the roster, O'Marra was mutually released from his contract on October 4, 2012. O'Marra then played nine games for HC Fassa in the Italian Serie A in the regular season before moving to Vålerenga in Norway for the rest of the regular season and playoffs. With Vålerenga, he had seven goals and six assists for 13 points in 15 games in the playoffs. After playing one season in Italy with Val Pusteria HC, O'Marra signed with Elite Ice Hockey League (EIHL) team Coventry Blaze in the United Kingdom for the 2014–15 season. After playing one season with the Blaze, O'Marra announced his retirement from professional ice hockey on March 26, 2015. He continued to play hockey in Alberta at the senior men's level with the Stoney Creek Generals of the Allan Cup Hockey. International play O'Marra played in his first international tournament with Canada Ontario in the 2004 World U-17 Hockey Challenge, defeating Canada Pacific to earn the gold medal. He then won a gold medal as the alternate captain for Team Canada at the 2004 U-18 Junior World Cup. He also played on the Canadian under-18 team that finished with a silver medal at the 2005 IIHF World U18 Championships in Plzeň, Czech Republic. O'Marra was selected and played a part of the consecutive gold medal-winning Canadian teams at the 2006 and 2007 World Junior Ice Hockey Championships. Career statistics Regular season and playoffs International References External links 1987 births Anaheim Ducks players Athabasca University alumni Bridgeport Sound Tigers players Canadian ice hockey centres Canadian people of Irish descent Coventry Blaze players Edmonton Oilers players Erie Otters players SHC Fassa players Living people National Hockey League first-round draft picks New York Islanders draft picks Oklahoma City Barons players Lahti Pelicans players HC Pustertal Wölfe players Saginaw Spirit players Sportspeople from Tokyo Springfield Falcons players Stockton Thunder players Syracuse Crunch players Vålerenga Ishockey players
```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'; // MAIN // /** * Forcefully ends a benchmark. * * @private * @returns {void} */ function exit() { /* eslint-disable no-invalid-this */ if ( this._exited ) { // If we have already "exited", do not create more failing assertions when one should suffice... return; } // Only "exit" when a benchmark has either not yet been run or is currently running. If a benchmark has already ended, no need to generate a failing assertion. if ( !this._ended ) { this._exited = true; this.fail( 'benchmark exited without ending' ); // Allow running benchmarks to call `end` on their own... if ( !this._running ) { this.end(); } } } // EXPORTS // module.exports = exit; ```
```groff .\" $OpenBSD: tset.1,v 1.25 2023/10/17 09:52:11 nicm Exp $ .\" .\"*************************************************************************** .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * .\" "Software"), to deal in the Software without restriction, including * .\" without limitation the rights to use, copy, modify, merge, publish, * .\" distribute, distribute with modifications, sublicense, and/or sell * .\" copies of the Software, and to permit persons to whom the Software is * .\" furnished to do so, subject to the following conditions: * .\" * .\" The above copyright notice and this permission notice shall be included * .\" in all copies or substantial portions of the Software. * .\" * .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. * .\" * .\" Except as contained in this notice, the name(s) of the above copyright * .\" holders shall not be used in advertising or otherwise to promote the * .\" sale, use or other dealings in this Software without prior written * .\" authorization. * .\"*************************************************************************** .\" .TH tset 1 2023-07-01 "ncurses 6.4" "User commands" .ie \n(.g .ds `` \(lq .el .ds `` `` .ie \n(.g .ds '' \(rq .el .ds '' '' .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 .. .SH NAME \fBtset\fP, \fB?\fP \- terminal initialization .SH SYNOPSIS \fBtset\fP [\fB\-IQVcqrsw\fP] [\fB\-\fP] [\fB\-e\fP \fIch\fP] [\fB\-i\fP \fIch\fP] [\fB\-k\fP \fIch\fP] [\fB\-m\fP \fImapping\fP] [\fIterminal\fP] .br \fB?\fP [\fB\-IQVcqrsw\fP] [\fB\-\fP] [\fB\-e\fP \fIch\fP] [\fB\-i\fP \fIch\fP] [\fB\-k\fP \fIch\fP] [\fB\-m\fP \fImapping\fP] [\fIterminal\fP] .SH DESCRIPTION .SS tset - initialization This program initializes terminals. .PP First, \fBtset\fP retrieves the current terminal mode settings for your terminal. It does this by successively testing .bP the standard error, .bP standard output, .bP standard input and .bP ultimately \*(``/dev/tty\*('' .PP to obtain terminal settings. Having retrieved these settings, \fBtset\fP remembers which file descriptor to use when updating settings. .PP Next, \fBtset\fP determines the type of terminal that you are using. This determination is done as follows, using the first terminal type found. .PP 1. The \fBterminal\fP argument specified on the command line. .PP 2. The value of the \fBTERM\fP environmental variable. .PP 3. (BSD systems only.) The terminal type associated with the standard error output device in the \fI/etc/ttys\fP file. (On System\-V-like UNIXes and systems using that convention, \fBgetty\fP(1) does this job by setting \fBTERM\fP according to the type passed to it by \fI/etc/inittab\fP.) .PP 4. The default terminal type, \*(``unknown\*('', is not suitable for curses applications. .PP If the terminal type was not specified on the command-line, the \fB\-m\fP option mappings are then applied (see the section .B TERMINAL TYPE MAPPING for more information). Then, if the terminal type begins with a question mark (\*(``?\*(''), the user is prompted for confirmation of the terminal type. An empty response confirms the type, or, another type can be entered to specify a new type. Once the terminal type has been determined, the terminal description for the terminal is retrieved. If no terminal description is found for the type, the user is prompted for another terminal type. .PP Once the terminal description is retrieved, .bP if the \*(``\fB\-w\fP\*('' option is enabled, \fBtset\fP may update the terminal's window size. .IP If the window size cannot be obtained from the operating system, but the terminal description (or environment, e.g., \fBLINES\fP and \fBCOLUMNS\fP variables specify this), use this to set the operating system's notion of the window size. .bP if the \*(``\fB\-c\fP\*('' option is enabled, the backspace, interrupt and line kill characters (among many other things) are set .bP unless the \*(``\fB\-I\fP\*('' option is enabled, the terminal and tab \fIinitialization\fP strings are sent to the standard error output, and \fBtset\fP waits one second (in case a hardware reset was issued). .bP Finally, if the erase, interrupt and line kill characters have changed, or are not set to their default values, their values are displayed to the standard error output. .SS reset - reinitialization When invoked as \fB?\fP, \fBtset\fP sets the terminal modes to \*(``sane\*('' values: .bP sets cooked and echo modes, .bP turns off cbreak and raw modes, .bP turns on newline translation and .bP resets any unset special characters to their default values .PP before doing the terminal initialization described above. Also, rather than using the terminal \fIinitialization\fP strings, it uses the terminal \fIreset\fP strings. .PP The \fB?\fP command is useful after a program dies leaving a terminal in an abnormal state: .bP you may have to type .sp \fI<LF>\fB?\fI<LF>\fR .sp (the line-feed character is normally control-J) to get the terminal to work, as carriage-return may no longer work in the abnormal state. .bP Also, the terminal will often not echo the command. .SH OPTIONS The options are as follows: .TP 5 .B \-c Set control characters and modes. .TP 5 .BI \-e\ ch Set the erase character to \fIch\fP. .TP .B \-I Do not send the terminal or tab initialization strings to the terminal. .TP .BI \-i\ ch Set the interrupt character to \fIch\fP. .TP .BI \-k\ ch Set the line kill character to \fIch\fP. .TP .BI \-m\ mapping Specify a mapping from a port type to a terminal. See the section .B TERMINAL TYPE MAPPING for more information. .TP .B \-Q Do not display any values for the erase, interrupt and line kill characters. Normally \fBtset\fP displays the values for control characters which differ from the system's default values. .TP .B \-q The terminal type is displayed to the standard output, and the terminal is not initialized in any way. The option \*(``\-\*('' by itself is equivalent but archaic. .TP .B \-r Print the terminal type to the standard error output. .TP .B \-s Print the sequence of shell commands to initialize the environment variable \fBTERM\fP to the standard output. See the section .B SETTING THE ENVIRONMENT for details. .TP .B \-V reports the version of ncurses which was used in this program, and exits. .TP .B \-w Resize the window to match the size deduced via \fBsetupterm\fP(3). Normally this has no effect, unless \fBsetupterm\fP is not able to detect the window size. .PP The arguments for the \fB\-e\fP, \fB\-i\fP, and \fB\-k\fP options may either be entered as actual characters or by using the \*(``hat\*('' notation, i.e., control-h may be specified as \*(``^H\*('' or \*(``^h\*(''. .PP If neither \fB\-c\fP or \fB\-w\fP is given, both options are assumed. . .SH SETTING THE ENVIRONMENT It is often desirable to enter the terminal type and information about the terminal's capabilities into the shell's environment. This is done using the \fB\-s\fP option. .PP When the \fB\-s\fP option is specified, the commands to enter the information into the shell's environment are written to the standard output. If the \fBSHELL\fP environmental variable ends in \*(``csh\*('', the commands are for \fBcsh\fP, otherwise, they are for \fBsh\fP(1). Note, the \fBcsh\fP commands set and unset the shell variable \fBnoglob\fP, leaving it unset. The following line in the \fB.login\fP or \fB.profile\fP files will initialize the environment correctly: .sp eval \`tset \-s options ... \` . .SH TERMINAL TYPE MAPPING When the terminal is not hardwired into the system (or the current system information is incorrect) the terminal type derived from the \fI/etc/ttys\fP file or the \fBTERM\fP environmental variable is often something generic like \fBnetwork\fP, \fBdialup\fP, or \fBunknown\fP. When \fBtset\fP is used in a startup script it is often desirable to provide information about the type of terminal used on such ports. .PP The \fB\-m\fP options maps from some set of conditions to a terminal type, that is, to tell \fBtset\fP \*(``If I'm on this port at a particular speed, guess that I'm on that kind of terminal\*(''. .PP The argument to the \fB\-m\fP option consists of an optional port type, an optional operator, an optional baud rate specification, an optional colon (\*(``:\*('') character and a terminal type. The port type is a string (delimited by either the operator or the colon character). The operator may be any combination of \*(``>\*('', \*(``<\*('', \*(``@\*('', and \*(``!\*(''; \*(``>\*('' means greater than, \*(``<\*('' means less than, \*(``@\*('' means equal to and \*(``!\*('' inverts the sense of the test. The baud rate is specified as a number and is compared with the speed of the standard error output (which should be the control terminal). The terminal type is a string. .PP If the terminal type is not specified on the command line, the \fB\-m\fP mappings are applied to the terminal type. If the port type and baud rate match the mapping, the terminal type specified in the mapping replaces the current type. If more than one mapping is specified, the first applicable mapping is used. .PP For example, consider the following mapping: \fBdialup>9600:vt100\fP. The port type is dialup , the operator is >, the baud rate specification is 9600, and the terminal type is vt100. The result of this mapping is to specify that if the terminal type is \fBdialup\fP, and the baud rate is greater than 9600 baud, a terminal type of \fBvt100\fP will be used. .PP If no baud rate is specified, the terminal type will match any baud rate. If no port type is specified, the terminal type will match any port type. For example, \fB\-m dialup:vt100 \-m :?xterm\fP will cause any dialup port, regardless of baud rate, to match the terminal type vt100, and any non-dialup port type to match the terminal type ?xterm. Note, because of the leading question mark, the user will be queried on a default port as to whether they are actually using an xterm terminal. .PP No whitespace characters are permitted in the \fB\-m\fP option argument. Also, to avoid problems with meta-characters, it is suggested that the entire \fB\-m\fP option argument be placed within single quote characters, and that \fBcsh\fP users insert a backslash character (\*(``\e\*('') before any exclamation marks (\*(``!\*(''). .SH HISTORY A \fBreset\fP command appeared in 1BSD (March 1978), written by Kurt Shoens. This program set the \fIerase\fP and \fIkill\fP characters to \fB^H\fP (backspace) and \fB@\fP respectively. Mark Horton improved that in 3BSD (October 1979), adding \fIintr\fP, \fIquit\fP, \fIstart\fP/\fIstop\fP and \fIeof\fP characters as well as changing the program to avoid modifying any user settings. That version of \fBreset\fP did not use the termcap database. .PP A separate \fBtset\fP command was provided in 1BSD by Eric Allman, using the termcap database. Allman's comments in the source code indicate that he began work in October 1977, continuing development over the next few years. .PP According to comments in the source code, the \fBtset\fP program was modified in September 1980, to use logic copied from the 3BSD \*(``reset\*('' when it was invoked as \fBreset\fP. This version appeared in 4.1cBSD, late in 1982. .PP Other developers (e.g., Keith Bostic and Jim Bloom) continued to modify \fBtset\fP until 4.4BSD was released in 1993. .PP The \fBncurses\fP implementation was lightly adapted from the 4.4BSD sources for a terminfo environment by Eric S. Raymond <esr@snark.thyrsus.com>. .SH COMPATIBILITY Neither IEEE Std 1003.1/The Open Group Base Specifications Issue 7 (POSIX.1-2008) nor X/Open Curses Issue 7 documents \fBtset\fP or \fB?\fP. .PP The AT&T \fBtput\fP utility (AIX, HPUX, Solaris) incorporated the terminal-mode manipulation as well as termcap-based features such as resetting tabstops from \fBtset\fP in BSD (4.1c), presumably with the intention of making \fBtset\fP obsolete. However, each of those systems still provides \fBtset\fP. In fact, the commonly-used \fBreset\fP utility is always an alias for \fBtset\fP. .PP The \fBtset\fP utility provides for backward-compatibility with BSD environments (under most modern UNIXes, \fB/etc/inittab\fP and \fBgetty\fP(1) can set \fBTERM\fP appropriately for each dial-up line; this obviates what was \fBtset\fP's most important use). This implementation behaves like 4.4BSD \fBtset\fP, with a few exceptions specified here. .PP A few options are different because the \fBTERMCAP\fP variable is no longer supported under terminfo-based \fBncurses\fP: .bP The \fB\-S\fP option of BSD \fBtset\fP no longer works; it prints an error message to the standard error and dies. .bP The \fB\-s\fP option only sets \fBTERM\fP, not \fBTERMCAP\fP. .PP There was an undocumented 4.4BSD feature that invoking \fBtset\fP via a link named \*(``TSET\*('' (or via any other name beginning with an upper-case letter) set the terminal to use upper-case only. This feature has been omitted. .PP The \fB\-A\fP, \fB\-E\fP, \fB\-h\fP, \fB\-u\fP and \fB\-v\fP options were deleted from the \fBtset\fP utility in 4.4BSD. None of them were documented in 4.3BSD and all are of limited utility at best. The \fB\-a\fP, \fB\-d\fP, and \fB\-p\fP options are similarly not documented or useful, but were retained as they appear to be in widespread use. It is strongly recommended that any usage of these three options be changed to use the \fB\-m\fP option instead. The \fB\-a\fP, \fB\-d\fP, and \fB\-p\fP options are therefore omitted from the usage summary above. .PP Very old systems, e.g., 3BSD, used a different terminal driver which was replaced in 4BSD in the early 1980s. To accommodate these older systems, the 4BSD \fBtset\fP provided a \fB\-n\fP option to specify that the new terminal driver should be used. This implementation does not provide that choice. .PP It is still permissible to specify the \fB\-e\fP, \fB\-i\fP, and \fB\-k\fP options without arguments, although it is strongly recommended that such usage be fixed to explicitly specify the character. .PP As of 4.4BSD, executing \fBtset\fP as \fB?\fP no longer implies the \fB\-Q\fP option. Also, the interaction between the \- option and the \fIterminal\fP argument in some historic implementations of \fBtset\fP has been removed. .PP The \fB\-c\fP and \fB\-w\fP options are not found in earlier implementations. However, a different window size-change feature was provided in 4.4BSD. .bP In 4.4BSD, \fBtset\fP uses the window size from the termcap description to set the window size if \fBtset\fP is not able to obtain the window size from the operating system. .bP In ncurses, \fBtset\fP obtains the window size using \fBsetupterm\fP, which may be from the operating system, the \fBLINES\fP and \fBCOLUMNS\fP environment variables or the terminal description. .PP Obtaining the window size from the terminal description is common to both implementations, but considered obsolescent. Its only practical use is for hardware terminals. Generally speaking, a window size would be unset only if there were some problem obtaining the value from the operating system (and \fBsetupterm\fP would still fail). For that reason, the \fBLINES\fP and \fBCOLUMNS\fP environment variables may be useful for working around window-size problems. Those have the drawback that if the window is resized, those variables must be recomputed and reassigned. To do this more easily, use the \fBresize\fP(1) program. .SH ENVIRONMENT The \fBtset\fP command uses these environment variables: .TP 5 SHELL tells \fBtset\fP whether to initialize \fBTERM\fP using \fBsh\fP(1) or \fBcsh\fP(1) syntax. .TP 5 TERM Denotes your terminal type. Each terminal type is distinct, though many are similar. .TP 5 TERMCAP may denote the location of a termcap database. If it is not an absolute pathname, e.g., begins with a \*(``/\*('', \fBtset\fP removes the variable from the environment before looking for the terminal description. .SH FILES .TP 5 /etc/ttys system port name to terminal type mapping database (BSD versions only). .TP /usr/share/terminfo terminal capability database .SH SEE ALSO .hy 0 \fBcsh\fP(1), \fBsh\fP(1), \fBstty\fP(1), \fBterminfo\fP(3), \fBtty\fP(4), \fBterminfo\fP(5), \fBttys\fP(5), \fBenviron\fP(7) .hy .PP This describes \fBncurses\fP version 6.4 (patch 20230826). ```
```javascript import { test } from '../../test'; export default test({ html: "<a href='/cool'>link</a>" }); ```
```makefile ################################################################################ # # gupnp-av # ################################################################################ GUPNP_AV_VERSION_MAJOR = 0.14 GUPNP_AV_VERSION = $(GUPNP_AV_VERSION_MAJOR).0 GUPNP_AV_SOURCE = gupnp-av-$(GUPNP_AV_VERSION).tar.xz GUPNP_AV_SITE = path_to_url GUPNP_AV_LICENSE = LGPL-2.1+ GUPNP_AV_LICENSE_FILES = COPYING GUPNP_AV_INSTALL_STAGING = YES GUPNP_AV_DEPENDENCIES = host-pkgconf libglib2 libxml2 gupnp ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) GUPNP_AV_CONF_OPTS += -Dintrospection=true -Dvapi=true GUPNP_AV_DEPENDENCIES += host-vala gobject-introspection else GUPNP_AV_CONF_OPTS += -Dintrospection=false -Dvapi=false endif $(eval $(meson-package)) ```
Al-Mansour University College is a private Iraqi university established in 1988 in Baghdad, Iraq. Faculties Al-Mansour University College (MUC) consists of the following Departments: Civil Engineering Department Communications Engineering Department Computer Technology Engineering Department Computer Engineering Department Computer Science & Information Systems Department Business Administration Department Accounting & Banking Department Law Department English Department Medical Instrumentation Engineering Department Physical Therapy Department Digital Media Department See also List of universities in Iraq External links Official website Mansour Education in Baghdad Universities and colleges established in 1988 1988 establishments in Iraq
Nicholas Legeros (born February 27, 1955, in Edina, Minnesota) is an American (Minnesotan) bronze sculptor. Working from his studio building Blue Ribbon Bronze in Northeast Minneapolis, Nick has created over 500 sculptures in his career. His most prominent works can be found in the Twin Cities and Hudson, Wisconsin. In addition to his work as a sculptor, Nick is an active artist advocate and has been president of the Society of Minnesota Sculptors (1988-1995), president of the Northeast Minneapolis Artists Association (2007-2009), and served on many boards including the Northeast Community Development Corporation. Education and background Legeros grew up in Edina, Minnesota, and first encountered an artistic dilemma in the 4th grade. His class was asked to create small sculptures, and Nick spent much time crafting a small head, which won the admiration of much of his classmates. Legeros, in what little time remained, fashioned an elephant which he turned in for extra credit. The teacher gave his head a "C," while the elephant was given an "A." Not satisfied by his teacher's justification, he developed a curiosity for art and the distinguishing constitutive elements of good art. Legeros received his B.A. in Studio Art at Gustavus Adolphus College in 1977, where learned bronze sculpture from notable American Sculptor Paul Granlund (October 6, 1925 - September 15, 2003). He would continue to study and work with Granlund from 1978 to 1980, before pursuing his M.F.A., which he earned at the University of Minnesota in 1983. “The careful mentoring and encouragement I received from sculptor Paul Granlund made my career choice possible. Paul gave me the training, the knowledge and the benefit of his menutefs of experience. He showed me what the life of a sculptor was like.” His education and experiences stewarded an artistic style that is welcoming and personal, and integrates a sense of spirituality without reference to a particular religion. Career Working primarily on a commission basis, Legeros has worked with a variety of clients for over 30 years. His work can be found at hospitals (Healing Waters (2001), Hudson Hospital in Hudson, Wisconsin), churches (We Dare Not Fence the Spirit (1993), Unity Unitarian Church in St Paul, Minnesota), universities (Father Terrance Murphy (2004), in conjunction with Paul Granlund, at University of St. Thomas in St Paul, Minnesota), city and local governments (Dreams of our Children (1989), at Lyton Park in St Paul, Minnesota), libraries (Cosgrove Memorial (1996), Cosgrove Community Library in Le Sueur, Minnesota), cemeteries (Ossuary at Roselawn (2007) Roselawn Cemetery in Roseville, Minnesota), corporate collections (Generations (2003), Lifetouch Headquarters in Eden Prairie, Minnesota), and a number of private individuals. Commissioned pieces allow Nick to create a piece that fits the vision or wishes of particular clients. Since 1992 Nick has held the position of President and C.E.O. of Nicholas Legeros Inc., his own business. For a map of public works in the Twin Cities, see below. Legeros taught throughout the Twin Cities prior to owning his own studio space. From 1981 to 2002 he was an Artist-in-Residence at the Minnetonka Center for the Arts in Wayzata, Minnesota. He has also been a faculty member of the art department at Breck School in Golden Valley, Minnesota (1993-1994), Community Faculty at Metropolitan State University in Minneapolis, Minnesota (1988-1993), and an instructor at the Edina Art Center (1988-1993). Blue Ribbon Bronze Studio/Gallery Blue Ribbon Bronze is the name of his studio and gallery, a free standing building set next to the historic Grain Belt Brewery and Bottling House in Northeast Minneapolis. Equipped with a foundry for bronze casting, Nick creates sculptures entirely on-site and frequently welcomes visitors for bronze pours. Blue Ribbon Bronze is a destination at Art-a-Whirl, the largest open studio tour in the U.S. He can cast pieces of any size, the largest of which to date Saint Joseph (2009) measured over 17 feet tall. Blue Ribbon Bronze is located at 84 14th Avenue NE, Minneapolis, MN 55413, and is open to the public daily. Notable works A number of his works have attracted attention because of their local and artistic significance. His portrait of Sid Hartman (2010), located outside the Target Center in Downtown Minneapolis, has become a cultural landmark of the much-traveled walkway to Target Field. His life-size Goldy Gopher for the University of Minnesota was created in 2013 and installed outside Coffman Union. The university in a published statement expects that: "A Goldy Gopher statue will impact school pride and spirit by allowing the campus community to interact with this iconic symbol on a daily basis, serve as a common area to gather outside, and create traditions that will have long-lasting impressions on today's student population, as well as future generations to come." The large size of the work is also described in the article: "The bronze Goldy statue will stand six feet three inches high on Coffman Memorial Union's front plaza. The granite block 'M' will span sixty-three inches in width, twenty-four inches in depth and forty-eight inches in height." A recent and ongoing artistic collaboration between Legeros and local glass artist Michael Boyd at FOCI Minnesota Center for Glass Arts has brought a different kind of attention to his work because of its combination of molten glass and molten bronze. In an interview with Nancy Sartor at KFAI, Boyd describes the process as unique and significant in that he has never heard of the two media used together in ways Nick and he are exploring. Nick adds, "As far as we know, nobody has been doing this work at all." The interview concludes with his reflection that "We're throwing the traditions out the window and [seeing] what else we can do. What could be better?" In 2015, Legeros was commissioned by the women and men of Northwest Airlines to commemorate the airline and the leadership of Past President and CEO Donald Nyrop. Two sculptures were created, "Dreams Take Flight" and "Glamorous Days of Flight," and are located at Centennial Lakes Park in Edina, MN. The sculpture was dedicated in May 2016, and was featured in Edina Magazine's March 2017 issue. Map of public works For a map of public works located in the Twin Cities, click here. References External links 1955 births Living people Gustavus Adolphus College alumni People from Edina, Minnesota Sculptors from Minnesota
```objective-c /* * * * 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. */ // Utility function for building a Huffman lookup table for the jpeg decoder. #ifndef GUETZLI_JPEG_HUFFMAN_DECODE_H_ #define GUETZLI_JPEG_HUFFMAN_DECODE_H_ #include <inttypes.h> namespace guetzli { static const int kJpegHuffmanRootTableBits = 8; // Maximum huffman lookup table size. // According to zlib/examples/enough.c, 758 entries are always enough for // an alphabet of 257 symbols (256 + 1 special symbol for the all 1s code) and // max bit length 16 if the root table has 8 bits. static const int kJpegHuffmanLutSize = 758; struct HuffmanTableEntry { // Initialize the value to an invalid symbol so that we can recognize it // when reading the bit stream using a Huffman code with space > 0. HuffmanTableEntry() : bits(0), value(0xffff) {} uint8_t bits; // number of bits used for this symbol uint16_t value; // symbol value or table offset }; // Builds jpeg-style Huffman lookup table from the given symbols. // The symbols are in order of increasing bit lengths. The number of symbols // with bit length n is given in counts[n] for each n >= 1. // Returns the size of the lookup table. int BuildJpegHuffmanTable(const int* counts, const int* symbols, HuffmanTableEntry* lut); } // namespace guetzli #endif // GUETZLI_JPEG_HUFFMAN_DECODE_H_ ```
```go package base import "jvmgo/ch07/rtda" import "jvmgo/ch07/rtda/heap" // jvms 5.5 func InitClass(thread *rtda.Thread, class *heap.Class) { class.StartInit() scheduleClinit(thread, class) initSuperClass(thread, class) } func scheduleClinit(thread *rtda.Thread, class *heap.Class) { clinit := class.GetClinitMethod() if clinit != nil { // exec <clinit> newFrame := thread.NewFrame(clinit) thread.PushFrame(newFrame) } } func initSuperClass(thread *rtda.Thread, class *heap.Class) { if !class.IsInterface() { superClass := class.SuperClass() if superClass != nil && !superClass.InitStarted() { InitClass(thread, superClass) } } } ```
```scala /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.carbondata.presto.integrationtest import java.io.File import java.util import java.util.UUID import java.util.concurrent.{Callable, Executors, Future} import scala.collection.JavaConverters._ import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, FunSuiteLike} import org.apache.carbondata.common.logging.LogServiceFactory import org.apache.carbondata.core.datastore.filesystem.{CarbonFile, CarbonFileFilter} import org.apache.carbondata.core.datastore.impl.FileFactory import org.apache.carbondata.core.metadata.{AbsoluteTableIdentifier, CarbonTableIdentifier} import org.apache.carbondata.core.metadata.schema.SchemaReader import org.apache.carbondata.core.metadata.schema.table.TableSchema import org.apache.carbondata.core.statusmanager.SegmentStatusManager import org.apache.carbondata.core.util.{CarbonTestUtil, CarbonUtil} import org.apache.carbondata.core.util.path.CarbonTablePath import org.apache.carbondata.presto.server.PrestoServer import org.apache.carbondata.presto.util.CarbonDataStoreCreator class PrestoInsertIntoTableTestCase extends FunSuiteLike with BeforeAndAfterAll with BeforeAndAfterEach { private val logger = LogServiceFactory .getLogService(classOf[PrestoAllDataTypeTest].getCanonicalName) private val rootPath = new File(this.getClass.getResource("/").getPath + "../../../..").getCanonicalPath private val storePath = s"$rootPath/integration/presto/target/store" private val prestoServer = new PrestoServer private val executorService = Executors.newFixedThreadPool(1) override def beforeAll: Unit = { val map = new util.HashMap[String, String]() map.put("hive.metastore", "file") map.put("hive.metastore.catalog.dir", s"file://$storePath") map.put("hive.allow-drop-table", "true") prestoServer.startServer("testdb", map) prestoServer.execute("drop schema if exists testdb") prestoServer.execute("create schema testdb") } override protected def beforeEach(): Unit = { val query = "create table testdb.testtable(ID int, date date, country varchar, name varchar, " + "phonetype varchar, serialname varchar,salary decimal(6,1), bonus decimal(8,6), " + "monthlyBonus decimal(5,3), dob timestamp, shortField smallint, iscurrentemployee" + " boolean) with(format='CARBONDATA') " val schema = CarbonDataStoreCreator.getCarbonTableSchemaForDecimal(getAbsoluteIdentifier( "testdb", "testtable")) createTable(query, "testdb", "testtable", schema) } private def createTable(query: String, databaseName: String, tableName: String, customSchema: TableSchema = null): Unit = { prestoServer.execute(s"drop table if exists ${ databaseName }.${ tableName }") prestoServer.execute(query) logger.info("Creating The Carbon Store") val absoluteTableIdentifier: AbsoluteTableIdentifier = getAbsoluteIdentifier(databaseName, tableName) val schema = if (customSchema == null) { CarbonDataStoreCreator.getCarbonTableSchema(absoluteTableIdentifier) } else { customSchema } CarbonDataStoreCreator.createTable(absoluteTableIdentifier, schema, true) logger.info(s"\nCarbon store is created at location: $storePath") } private def getAbsoluteIdentifier(dbName: String, tableName: String) = { val absoluteTableIdentifier = AbsoluteTableIdentifier.from( storePath + "/" + dbName + "/" + tableName, new CarbonTableIdentifier(dbName, tableName, UUID.randomUUID().toString)) absoluteTableIdentifier } test("test insert with different storage format names") { val query1 = "create table testdb.testtable(ID int, date date, country varchar, name varchar," + " phonetype varchar, serialname varchar,salary decimal(6,1), bonus decimal(8,6)," + " monthlyBonus decimal(5,3), dob timestamp, shortField smallint, " + "iscurrentemployee boolean) with(format='CARBONDATA') " val query2 = "create table testdb.testtable(ID int, date date, country varchar, name varchar," + " phonetype varchar, serialname varchar,salary decimal(6,1), bonus decimal(8,6)," + " monthlyBonus decimal(5,3), dob timestamp, shortField smallint, " + "iscurrentemployee boolean) with(format='CARBON') " val query3 = "create table testdb.testtable(ID int, date date, country varchar, name varchar," + " phonetype varchar, serialname varchar,salary decimal(6,1), bonus decimal(8,6)," + " monthlyBonus decimal(5,3), dob timestamp, shortField smallint, " + "iscurrentemployee boolean) with(format='ORG.APACHE.CARBONDATA.FORMAT') " createTable(query1, "testdb", "testtable") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") createTable(query2, "testdb", "testtable") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") createTable(query3, "testdb", "testtable") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") val absoluteTableIdentifier: AbsoluteTableIdentifier = getAbsoluteIdentifier("testdb", "testtable") val carbonTable = SchemaReader.readCarbonTableFromStore(absoluteTableIdentifier) val segmentPath = CarbonTablePath.getSegmentPath(carbonTable.getTablePath, "0") assert(FileFactory.getCarbonFile(segmentPath).isFileExist) } test("test insert into one segment and check folder structure") { prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") val absoluteTableIdentifier: AbsoluteTableIdentifier = getAbsoluteIdentifier("testdb", "testtable") val carbonTable = SchemaReader.readCarbonTableFromStore(absoluteTableIdentifier) val tablePath = carbonTable.getTablePath val segment0Path = CarbonTablePath.getSegmentPath(tablePath, "0") val segment1Path = CarbonTablePath.getSegmentPath(tablePath, "1") val segment0 = FileFactory.getCarbonFile(segment0Path) assert(segment0.isFileExist) assert(segment0.listFiles(new CarbonFileFilter { override def accept(file: CarbonFile): Boolean = { file.getName.endsWith(CarbonTablePath.CARBON_DATA_EXT) || file.getName.endsWith(CarbonTablePath.MERGE_INDEX_FILE_EXT) } }).length == 2) val segment1 = FileFactory.getCarbonFile(segment1Path) assert(segment1.isFileExist) assert(segment1.listFiles(new CarbonFileFilter { override def accept(file: CarbonFile): Boolean = { file.getName.endsWith(CarbonTablePath.CARBON_DATA_EXT) || file.getName.endsWith(CarbonTablePath.MERGE_INDEX_FILE_EXT) } }).length == 2) assert(CarbonTestUtil.getSegmentFileCount("testdb_testtable") == 2) val metadataFolderPath = CarbonTablePath.getMetadataPath(tablePath) FileFactory.getCarbonFile(metadataFolderPath).listFiles(new CarbonFileFilter { override def accept(file: CarbonFile): Boolean = { file.getName.endsWith(CarbonTablePath.TABLE_STATUS_FILE) } }) } test("test insert into many segments and check segment count and data count") { prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1998-12-16 10:12:09',smallint '23', true)") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1998-12-16 10:12:09',smallint '23', true)") val absoluteTableIdentifier: AbsoluteTableIdentifier = getAbsoluteIdentifier("testdb", "testtable") val carbonTable = SchemaReader.readCarbonTableFromStore(absoluteTableIdentifier) val segmentFoldersLocation = CarbonTablePath.getPartitionDir(carbonTable.getTablePath) assert(FileFactory.getCarbonFile(segmentFoldersLocation).listFiles(false).size() == 8) val actualResult1: List[Map[String, Any]] = prestoServer .executeQuery("select count(*) AS RESULT from testdb.testtable") val expectedResult1: List[Map[String, Any]] = List(Map("RESULT" -> 4)) assert(actualResult1.equals(expectedResult1)) // filter query val actualResult2: List[Map[String, Any]] = prestoServer .executeQuery( "select count(*) AS RESULT from testdb.testtable WHERE dob = timestamp '1998-12-16 " + "10:12:09'") val expectedResult2: List[Map[String, Any]] = List(Map("RESULT" -> 2)) assert(actualResult2.equals(expectedResult2)) } test("test if the table status contains the segment file name for each load") { prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") val absoluteTableIdentifier: AbsoluteTableIdentifier = getAbsoluteIdentifier("testdb", "testtable") val carbonTable = SchemaReader.readCarbonTableFromStore(absoluteTableIdentifier) val ssm = new SegmentStatusManager(carbonTable.getAbsoluteTableIdentifier, carbonTable.getTableStatusVersion) ssm.getValidAndInvalidSegments.getValidSegments.asScala.foreach { segment => val loadMetadataDetails = segment.getLoadMetadataDetails assert(loadMetadataDetails.getSegmentFile != null) } } test("test for query when insert in progress") { prestoServer.execute( "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', 'qwerty', " + "'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09',smallint '23', true)") val query = "insert into testdb.testtable values(10, current_date, 'INDIA', 'Chandler', " + "'qwerty', 'usn20392',10000.0,16.234567,25.678,timestamp '1994-06-14 05:00:09'," + "smallint '23', true)" val asyncQuery = runSqlAsync(query) val actualResult1: List[Map[String, Any]] = prestoServer.executeQuery( "select count(*) AS RESULT from testdb.testtable WHERE dob = timestamp '1994-06-14 05:00:09'") val expectedResult1: List[Map[String, Any]] = List(Map("RESULT" -> 1)) assert(actualResult1.equals(expectedResult1)) assert(asyncQuery.get().equalsIgnoreCase("PASS")) val actualResult2: List[Map[String, Any]] = prestoServer.executeQuery( "select count(*) AS RESULT from testdb.testtable WHERE dob = timestamp '1994-06-14 05:00:09'") val expectedResult2: List[Map[String, Any]] = List(Map("RESULT" -> 2)) assert(actualResult2.equals(expectedResult2)) } test("test for all primitive data") { val query = "create table testdb.testtablealldatatype(ID int, date date,name varchar, " + "salary decimal(6,1), bonus decimal(8,6), charfield CHAR(10)," + "monthlyBonus decimal(5,3),dob timestamp, shortField smallint, finalSalary " + "double, bigintfield bigint,tinyfield tinyint, iscurrentemployee" + " boolean) with(format='CARBONDATA') " val schema = CarbonDataStoreCreator.getCarbonTableSchemaForAllPrimitive(getAbsoluteIdentifier( "testdb", "testtablealldatatype")) createTable(query, "testdb", "testtablealldatatype", schema) prestoServer.execute( "insert into testdb.testtablealldatatype values(10,date '2020-10-21', 'Chandler',1000.0, " + "16.234567,'test_str_0',25.678,timestamp '2019-03-10 18:23:37.0',smallint '-999'," + "200499.500000,999,tinyint '103',false)") val actualResult = prestoServer.executeQuery( "select ID,date,name,salary,bonus,charfield,monthlyBonus,dob,shortfield,finalSalary," + "bigintfield,tinyfield,iscurrentemployee AS RESULT from testdb.testtablealldatatype") val actualResultString = actualResult.head.values.map(_.toString).toList.sorted val expectedResult2: List[String] = List("-999", "10", "1000.0", "103", "16.234567", "200499.5", "2019-03-10 18:23:37.0", "2020-10-21", "25.678", "999", "Chandler", "false", "test_str_0") assert(actualResultString.equals(expectedResult2)) } class QueryTask(query: String) extends Callable[String] { override def call(): String = { var result = "PASS" try { prestoServer.execute(query) } catch { case ex: Exception => // scalastyle:off println(ex.printStackTrace()) // scalastyle:on result = "FAIL" } result } } private def runSqlAsync(sql: String): Future[String] = { val future = executorService.submit( new QueryTask(sql) ) Thread.sleep(2) future } override def afterAll(): Unit = { prestoServer.stopServer() CarbonUtil.deleteFoldersAndFiles(FileFactory.getCarbonFile(storePath)) executorService.shutdownNow() } } ```
```objective-c //===-- int_util.h - internal utility functions ---------------------------===// // // See path_to_url for license information. // //===your_sha256_hash------===// // // This file is not part of the interface of this library. // // This file defines non-inline utilities which are available for use in the // library. The function definitions themselves are all contained in int_util.c // which will always be compiled into any compiler-rt library. // //===your_sha256_hash------===// #ifndef INT_UTIL_H #define INT_UTIL_H /// \brief Trigger a program abort (or panic for kernel code). #define compilerrt_abort() __compilerrt_abort_impl(__FILE__, __LINE__, __func__) NORETURN void __compilerrt_abort_impl(const char *file, int line, const char *function); #define COMPILE_TIME_ASSERT(expr) COMPILE_TIME_ASSERT1(expr, __COUNTER__) #define COMPILE_TIME_ASSERT1(expr, cnt) COMPILE_TIME_ASSERT2(expr, cnt) #define COMPILE_TIME_ASSERT2(expr, cnt) \ typedef char ct_assert_##cnt[(expr) ? 1 : -1] UNUSED // Force unrolling the code specified to be repeated N times. #define REPEAT_0_TIMES(code_to_repeat) /* do nothing */ #define REPEAT_1_TIMES(code_to_repeat) code_to_repeat #define REPEAT_2_TIMES(code_to_repeat) \ REPEAT_1_TIMES(code_to_repeat) \ code_to_repeat #define REPEAT_3_TIMES(code_to_repeat) \ REPEAT_2_TIMES(code_to_repeat) \ code_to_repeat #define REPEAT_4_TIMES(code_to_repeat) \ REPEAT_3_TIMES(code_to_repeat) \ code_to_repeat #define REPEAT_N_TIMES_(N, code_to_repeat) REPEAT_##N##_TIMES(code_to_repeat) #define REPEAT_N_TIMES(N, code_to_repeat) REPEAT_N_TIMES_(N, code_to_repeat) #endif // INT_UTIL_H ```
```python """Fixer for 'raise E, V' From Armin Ronacher's ``python-modernize``. raise -> raise raise E -> raise E raise E, V -> raise E(V) raise (((E, E'), E''), E'''), V -> raise E(V) CAVEATS: 1) "raise E, V" will be incorrectly translated if V is an exception instance. The correct Python 3 idiom is raise E from V but since we can't detect instance-hood by syntax alone and since any client code would have to be changed as well, we don't automate this. """ # Author: Collin Winter, Armin Ronacher # Local imports from lib2to3 import pytree, fixer_base from lib2to3.pgen2 import token from lib2to3.fixer_util import Name, Call, is_tuple class FixRaise(fixer_base.BaseFix): BM_compatible = True PATTERN = """ raise_stmt< 'raise' exc=any [',' val=any] > """ def transform(self, node, results): syms = self.syms exc = results["exc"].clone() if exc.type == token.STRING: msg = "Python 3 does not support string exceptions" self.cannot_convert(node, msg) return # Python 2 supports # raise ((((E1, E2), E3), E4), E5), V # as a synonym for # raise E1, V # Since Python 3 will not support this, we recurse down any tuple # literals, always taking the first element. if is_tuple(exc): while is_tuple(exc): # exc.children[1:-1] is the unparenthesized tuple # exc.children[1].children[0] is the first element of the tuple exc = exc.children[1].children[0].clone() exc.prefix = u" " if "val" not in results: # One-argument raise new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc]) new.prefix = node.prefix return new val = results["val"].clone() if is_tuple(val): args = [c.clone() for c in val.children[1:-1]] else: val.prefix = u"" args = [val] return pytree.Node(syms.raise_stmt, [Name(u"raise"), Call(exc, args)], prefix=node.prefix) ```
Titanonarke is an extinct genus of large electric rays known from the Ypresian age of the Eocene epoch. It currently contains two species from the Bolca Lagerstatte of Italy, T. molini and T. megapterygia. The exceptional preservation of multiple entire individuals has allowed a detailed reconstruction of their lives. Specimens of both species have been found with various ontogenetic stages and with parasitic isopods preserved. One specimen contains a fossilized embryo, showing this species to be viviparous. This species seems to prefer shallow water habitats associated with coral reefs, not unlike modern relatives. Stomach contents reveal a diet which included an extinct large benthic foraminifera genus, Alveolina. References Narcinidae Fossils of Italy Prehistoric cartilaginous fish genera
Jake Girdwood-Reich is an Australian professional footballer who plays as a midfielder for Sydney FC. He made his professional debut in an Australia Cup Round of 32 match for Sydney against Central Coast Mariners on 31 July 2022. He made his A-League Men debut for the club as a substitute on 29 October 2022 against Macarthur FC. Jake won the Sydney FC Rising Star Award at the 2022 Sky Blue Awards night shortly after being promoted to the A-League from the NPL squad. In his early years as a student at Clovelly Primary School, Jake earned representative honours playing in the NSW Primary School team which won the Australian schoolboys championship, and later the U17 socceroos who won the Asian Football Confederation, to qualify for the 2021 U17 World Cup in Peru that was cancelled due to COVID 19. References External links Living people Australian men's soccer players Men's association football midfielders Sydney FC players National Premier Leagues players A-League Men players 2004 births Soccer players from Sydney
```c++ #include "baldr/datetime.h" #include "baldr/rapidjson_utils.h" #include "loki/search.h" #include "loki/worker.h" #include "midgard/logging.h" using namespace valhalla; using namespace valhalla::baldr; namespace { void check_distance(const google::protobuf::RepeatedPtrField<valhalla::Location>& locations, float max_iso_distance) { // see if any locations pairs are unreachable or too far apart for (auto source = locations.begin(); source != locations.end() - 1; ++source) { for (auto target = source + 1; target != locations.end(); ++target) { // check if distance between latlngs exceed max distance limit auto path_distance = to_ll(*source).Distance(to_ll(*target)); if (path_distance > max_iso_distance) { throw valhalla_exception_t{154, std::to_string(static_cast<size_t>(max_iso_distance)) + " meters"}; }; } } } } // namespace namespace valhalla { namespace loki { void loki_worker_t::init_isochrones(Api& request) { auto& options = *request.mutable_options(); // strip off unused information parse_locations(options.mutable_locations()); if (options.locations_size() < 1) { throw valhalla_exception_t{120}; }; for (auto& l : *options.mutable_locations()) { l.clear_heading(); } // check that the number of contours is ok if (options.contours_size() < 1) { throw valhalla_exception_t{113}; } else if (options.contours_size() > max_contours) { throw valhalla_exception_t{152, std::to_string(max_contours)}; } // check the contour metrics for (auto& contour : options.contours()) { if (contour.has_time_case() && contour.time() > max_contour_min) throw valhalla_exception_t{151, std::to_string(max_contour_min)}; if (contour.has_distance_case() && contour.distance() > max_contour_km) throw valhalla_exception_t{166, std::to_string(max_contour_km)}; } parse_costing(request); } void loki_worker_t::isochrones(Api& request) { // time this whole method and save that statistic auto _ = measure_scope_time(request); init_isochrones(request); auto& options = *request.mutable_options(); // check that location size does not exceed max if (options.locations_size() > max_locations.find("isochrone")->second) { throw valhalla_exception_t{150, std::to_string(max_locations.find("isochrone")->second)}; }; // check the distances check_distance(options.locations(), max_distance.find("isochrone")->second); try { // correlate the various locations to the underlying graph auto locations = PathLocation::fromPBF(options.locations()); const auto projections = loki::Search(locations, *reader, costing); for (size_t i = 0; i < locations.size(); ++i) { const auto& projection = projections.at(locations[i]); PathLocation::toPBF(projection, options.mutable_locations(i), *reader); } } catch (const std::exception&) { throw valhalla_exception_t{171}; } } } // namespace loki } // namespace valhalla ```
```javascript export default function ClearQueryParams(props) { return <pre id="my-query-params">{JSON.stringify(props.query)}</pre> } /** @type {import('next').GetServerSideProps} */ export const getServerSideProps = (req) => { return { props: { query: { ...req.query }, }, } } ```
Horsforth is an electoral ward of Leeds City Council in north west Leeds, West Yorkshire, covering the suburb of the same name and a southern part of Rawdon. Boundaries The Horsforth ward includes the civil parish of the same name, also overseen by Horsforth Town Council. Councillors indicates seat up for re-election. indicates seat up for election following resignation or death of sitting councillor. * indicates incumbent councillor. Elections since 2010 May 2023 May 2022 May 2021 May 2019 May 2018 May 2016 May 2015 May 2014 May 2012 May 2011 May 2010 Notes References Places in Leeds Wards of Leeds
```javascript Use `String.link` to create `<a>` tags without messy concatenation `top.location.href` Permission API Window.sessionStorage MediaDevices.getUserMedia() ```
```java Common mistake on switch statements Updating interfaces by using `default` methods Using bounded type parameters in generic methods Metadata: creating a user-defined file attribute Do not perform bitwise and arithmetic operations on the same data ```
```smalltalk /******************************************************************************* * * Author: * Create Date: 2013-08-19 11:59:59 * Blog: path_to_url * Description: Git.Framework * * Revision History: * Date Author Description * 2013-08-19 11:59:59 *********************************************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using Git.Framework.ORM; using Git.Framework.MsSql; using Git.Storage.Entity.Store; using Git.Storage.IDataAccess.Store; namespace Git.Storage.DataAccess.Store { public partial class ProductCategoryDataAccess : DbHelper<ProductCategoryEntity>, IProductCategory { public ProductCategoryDataAccess() { } } } ```
Nothia is an extinct genus of foraminifera described in 1964 by Pflaumann, belonging to the subfamily Bathysiphoninae and containing 5 species. References Foraminifera genera Monothalamea
Katara Towers (), also referred to as Crescent Tower Lusail and Katara Hospitality Tower, is a high-rise tower in Lusail, Qatar. The luxury 5-star and 6-star hotel was opened in 2022 when Qatar hosted the World Cup in Qatar. The Katara Towers cover a total area of about and offers entertainment and recreational facilities, specialist boutiques, movie theatres and restaurants. One tower contains the Raffles Doha Hotel, while the other tower contains the Fairmont Doha Hotel. Raffles Hotels & Resorts and Fairmont Hotels and Resorts are both brands of Accor, and the hotels are jointly operated under one management. See also Lusail Katara Hospitality References External links Katara Towers at Emporis Lusail Katara Hotel North Tower at SkyscraperPage Katara Towers at Doka Skyscrapers in Qatar Lusail Tourism in Qatar Hotels in Qatar Hotels established in 2022 2022 establishments in Qatar
Ervad Godrej Sidhwa (1925 – 4 June 2011) was born in Karachi, Pakistan, and studied the Avesta, Pahalvi, Persian, & Pazend languages, as well as Ancient Iranian literature at M.F. Cama Athornan Institute, Andheri, Mumbai, for six years. He was initiated into the Zoroastrian priesthood by going through the Navar and Maratab initiation ceremony from Iranshah Atash Behram, Udvada, India. His initiation as a priest accounts for the "Ervad" ('Reverend') title. Sidhwa was the instructor of Zoroastrianism and Ancient Iranian History at the B.V.S. Parsi High School and Mama Parsi Secondary School, Karachi, from the early 1960s until his death. He was appointed as the Honorary Lecturer in Zoroastrian Theology at colleges in Karachi for the Zoroastrian students. He was also appointed as Examiner in Zoroastrian Theology by the University of Karachi, Pakistan, for the bachelor's degree program. After the death of Dasturji Dr. M. N. Dhalla he took up all of the Dasturji's duties in the religious as well as the social areas. Sidhwa lectured on Zoroastrian Theology in India, Pakistan, Iran, Canada, Britain, the United States, and the United Arab Emirates. He also lectured on Zoroastrianism at the University of California, Berkeley. On several occasions he has been invited by the Government of Pakistan to discuss the Human Rights and problems faced by religious minorities in Pakistan. He was the Honorary Secretary of The Karachi Parsi Anjuman Trust Fund, Karachi Athornan Mandal, and Joint Honorary Secretary of Dr. Dhalla Memorial Institute since its inception in 1965. He was also a jury delegate of Karachi Parsi Matrimonial Court, Government of Sindh, Pakistan, from 1960 until his death. References 1925 births 2011 deaths Parsi people Religious leaders from Karachi Pakistani Zoroastrians Zoroastrian priests Zoroastrian studies scholars 20th-century translators People from Karachi
```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 bench = require( '@stdlib/bench' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; var itersum = require( './../lib' ); // FUNCTIONS // function createIterator( arr ) { var len; var it; var i; len = arr.length; i = -1; it = {}; it.next = next; it.reset = reset; return it; function next() { i += 1; if ( i < len ) { return { 'value': arr[ i ], 'done': false }; } return { 'done': true }; } function reset() { i = -1; } } // MAIN // bench( pkg, function benchmark( b ) { var arr; var v; var i; arr = createIterator( [ 1.0, 2.0, 3.0, 4.0 ] ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { v = itersum( arr ); if ( isnan( v ) ) { b.fail( 'should not return NaN' ); } arr.reset(); } b.toc(); if ( isnan( v ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); b.end(); }); ```
```verilog <? if (elem.Signed) moduleName="DIG_Mul_signed"; else moduleName="DIG_Mul_unsigned"; generics[0] := "Bits"; ?> module <?= moduleName ?> #( parameter Bits = 1 ) ( <? if (elem.Signed) {?> input signed [(Bits-1):0] a, input signed [(Bits-1):0] b, output signed [(Bits*2-1):0] mul <? } else { ?> input [(Bits-1):0] a, input [(Bits-1):0] b, output [(Bits*2-1):0] mul <? } ?> ); assign mul = a * b; endmodule ```
Jacovce () is a municipality in the Topoľčany District of the Nitra Region, Slovakia. In 2011 it had 1770 inhabitants. Jacovce is a birthplace of Slovak ice-hockey star Miro Šatan. Notable people Ladislav Jurkemik, football player and manager See also List of municipalities and towns in Slovakia References Genealogical resources The records for genealogical research are available at the state archive "Statny Archiv in Nitra, Slovakia" External links http://en.e-obce.sk/obec/jacovce/jacovce.html Official homepage Surnames of living people in Jacovce Villages and municipalities in Topoľčany District
```xml /* eslint no-console: "off" */ import { hooks } from 'botframework-webchat-api'; import PropTypes from 'prop-types'; import React, { FC } from 'react'; import ScreenReaderText from './ScreenReaderText'; import useStyleSet from './hooks/useStyleSet'; const { useLocalizer } = hooks; type ErrorBoxProps = { error: Error; type?: string; }; const ErrorBox: FC<ErrorBoxProps> = ({ error, type }) => { const [{ errorBox: errorBoxStyleSet }] = useStyleSet(); const localize = useLocalizer(); return ( <React.Fragment> <ScreenReaderText text={localize('ACTIVITY_ERROR_BOX_TITLE')} /> <div className={errorBoxStyleSet}> <div>{type}</div> {/* The callstack between production and development are different, thus, we should hide it for visual regression test */} <details> <summary>{error.message}</summary> <pre>{error.stack}</pre> </details> </div> </React.Fragment> ); }; ErrorBox.defaultProps = { type: '' }; ErrorBox.propTypes = { error: PropTypes.instanceOf(Error).isRequired, type: PropTypes.string }; export default ErrorBox; ```
```swift // // Archive+ZIP64.swift // ZIPFoundation // // // See path_to_url for license information. // import Foundation let zip64EOCDRecordStructSignature = 0x06064b50 let zip64EOCDLocatorStructSignature = 0x07064b50 // MARK: - ExtraFieldHeaderID enum ExtraFieldHeaderID: UInt16 { case zip64ExtendedInformation = 0x0001 } extension Archive { struct ZIP64EndOfCentralDirectory { let record: ZIP64EndOfCentralDirectoryRecord let locator: ZIP64EndOfCentralDirectoryLocator } struct ZIP64EndOfCentralDirectoryRecord: DataSerializable { let zip64EOCDRecordSignature = UInt32(zip64EOCDRecordStructSignature) let sizeOfZIP64EndOfCentralDirectoryRecord: UInt64 let versionMadeBy: UInt16 let versionNeededToExtract: UInt16 let numberOfDisk: UInt32 let numberOfDiskStart: UInt32 let totalNumberOfEntriesOnDisk: UInt64 let totalNumberOfEntriesInCentralDirectory: UInt64 let sizeOfCentralDirectory: UInt64 let offsetToStartOfCentralDirectory: UInt64 let zip64ExtensibleDataSector: Data static let size = 56 } struct ZIP64EndOfCentralDirectoryLocator: DataSerializable { let zip64EOCDLocatorSignature = UInt32(zip64EOCDLocatorStructSignature) let numberOfDiskWithZIP64EOCDRecordStart: UInt32 let relativeOffsetOfZIP64EOCDRecord: UInt64 let totalNumberOfDisk: UInt32 static let size = 20 } } extension Archive.ZIP64EndOfCentralDirectoryRecord { // MARK: Lifecycle init?(data: Data, additionalDataProvider _: (Int) throws -> Data) { guard data.count == Archive.ZIP64EndOfCentralDirectoryRecord.size else { return nil } guard data.scanValue(start: 0) == zip64EOCDRecordSignature else { return nil } sizeOfZIP64EndOfCentralDirectoryRecord = data.scanValue(start: 4) versionMadeBy = data.scanValue(start: 12) versionNeededToExtract = data.scanValue(start: 14) // Version Needed to Extract: 4.5 - File uses ZIP64 format extensions guard versionNeededToExtract >= Archive.Version.v45.rawValue else { return nil } numberOfDisk = data.scanValue(start: 16) numberOfDiskStart = data.scanValue(start: 20) totalNumberOfEntriesOnDisk = data.scanValue(start: 24) totalNumberOfEntriesInCentralDirectory = data.scanValue(start: 32) sizeOfCentralDirectory = data.scanValue(start: 40) offsetToStartOfCentralDirectory = data.scanValue(start: 48) zip64ExtensibleDataSector = Data() } init( record: Archive.ZIP64EndOfCentralDirectoryRecord, numberOfEntriesOnDisk: UInt64, numberOfEntriesInCD: UInt64, sizeOfCentralDirectory: UInt64, offsetToStartOfCD: UInt64) { sizeOfZIP64EndOfCentralDirectoryRecord = record.sizeOfZIP64EndOfCentralDirectoryRecord versionMadeBy = record.versionMadeBy versionNeededToExtract = record.versionNeededToExtract numberOfDisk = record.numberOfDisk numberOfDiskStart = record.numberOfDiskStart totalNumberOfEntriesOnDisk = numberOfEntriesOnDisk totalNumberOfEntriesInCentralDirectory = numberOfEntriesInCD self.sizeOfCentralDirectory = sizeOfCentralDirectory offsetToStartOfCentralDirectory = offsetToStartOfCD zip64ExtensibleDataSector = record.zip64ExtensibleDataSector } // MARK: Internal var data: Data { var zip64EOCDRecordSignature = zip64EOCDRecordSignature var sizeOfZIP64EOCDRecord = sizeOfZIP64EndOfCentralDirectoryRecord var versionMadeBy = versionMadeBy var versionNeededToExtract = versionNeededToExtract var numberOfDisk = numberOfDisk var numberOfDiskStart = numberOfDiskStart var totalNumberOfEntriesOnDisk = totalNumberOfEntriesOnDisk var totalNumberOfEntriesInCD = totalNumberOfEntriesInCentralDirectory var sizeOfCD = sizeOfCentralDirectory var offsetToStartOfCD = offsetToStartOfCentralDirectory var data = Data() withUnsafePointer(to: &zip64EOCDRecordSignature) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &sizeOfZIP64EOCDRecord) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &versionMadeBy) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &versionNeededToExtract) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &numberOfDisk) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &numberOfDiskStart) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &totalNumberOfEntriesOnDisk) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &totalNumberOfEntriesInCD) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &sizeOfCD) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &offsetToStartOfCD) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } data.append(zip64ExtensibleDataSector) return data } } extension Archive.ZIP64EndOfCentralDirectoryLocator { // MARK: Lifecycle init?(data: Data, additionalDataProvider _: (Int) throws -> Data) { guard data.count == Archive.ZIP64EndOfCentralDirectoryLocator.size else { return nil } guard data.scanValue(start: 0) == zip64EOCDLocatorSignature else { return nil } numberOfDiskWithZIP64EOCDRecordStart = data.scanValue(start: 4) relativeOffsetOfZIP64EOCDRecord = data.scanValue(start: 8) totalNumberOfDisk = data.scanValue(start: 16) } init(locator: Archive.ZIP64EndOfCentralDirectoryLocator, offsetOfZIP64EOCDRecord: UInt64) { numberOfDiskWithZIP64EOCDRecordStart = locator.numberOfDiskWithZIP64EOCDRecordStart relativeOffsetOfZIP64EOCDRecord = offsetOfZIP64EOCDRecord totalNumberOfDisk = locator.totalNumberOfDisk } // MARK: Internal var data: Data { var zip64EOCDLocatorSignature = zip64EOCDLocatorSignature var numberOfDiskWithZIP64EOCD = numberOfDiskWithZIP64EOCDRecordStart var offsetOfZIP64EOCDRecord = relativeOffsetOfZIP64EOCDRecord var totalNumberOfDisk = totalNumberOfDisk var data = Data() withUnsafePointer(to: &zip64EOCDLocatorSignature) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &numberOfDiskWithZIP64EOCD) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &offsetOfZIP64EOCDRecord) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } withUnsafePointer(to: &totalNumberOfDisk) { data.append(UnsafeBufferPointer(start: $0, count: 1)) } return data } } extension Archive.ZIP64EndOfCentralDirectory { var data: Data { record.data + locator.data } } /// Properties that represent the maximum value of each field var maxUInt32 = UInt32.max var maxUInt16 = UInt16.max var maxCompressedSize: UInt32 { maxUInt32 } var maxUncompressedSize: UInt32 { maxUInt32 } var maxOffsetOfLocalFileHeader: UInt32 { maxUInt32 } var maxOffsetOfCentralDirectory: UInt32 { maxUInt32 } var maxSizeOfCentralDirectory: UInt32 { maxUInt32 } var maxTotalNumberOfEntries: UInt16 { maxUInt16 } ```
Tangents is a studio album by American jazz bassist Gary Peacock recorded in Switzerland in 2016 together with pianist Marc Copland and drummer Joey Baron. This is Peacock's final studio album as a leader; he composed five of the eleven tracks. Reception Britt Robson of JazzTimes stated "That ambiance of received wisdom, of patient certainty, permeates Tangents." Cormac Larkin in his review for The Irish Times mentioned, "A set of mostly Peacock compositions – with Alex North’s love theme from Spartacus and Miles Davis’s classic Blue in Green thrown in for good measure – veers from ruminative abstraction to tender lyricism to joyous swing without losing the intense focus of three old hands, masters of their respective instruments, who have the courage and the humility to let the music decide where it wants to go." Karl Ackermann of All About Jazz added, "At eighty-two years of age, one need only listen to "Rumblin'" to hear Peacock solo like the ageless wonder that he is." Derek Taylor of Dusted wrote, "The band’s second date for ECM, Tangents is right on par with the first in presenting each of the three players in the best possible setting, acoustically and creatively. Copland and Baron are significantly younger than their employer and colleague, but seniority registers little if no meaning in the context of music as ageless as this. Peacock is careful not to allow any of the eleven pieces to gather any figurative moss or collected dust. His warm and responsive strings are central in the sound spectrum with frequent solos that fold seamlessly into the trajectories of the tunes without disrupting the flow. Copland and Baron are just as centered..." Track listing Personnel Gary Peacock – double-bass Marc Copland – piano Joey Baron – drums References ECM Records albums Gary Peacock albums 2017 albums Albums produced by Manfred Eicher
```kotlin package io.gitlab.arturbosch.detekt.rules.style import io.gitlab.arturbosch.detekt.api.CodeSmell import io.gitlab.arturbosch.detekt.api.Config import io.gitlab.arturbosch.detekt.api.Configuration import io.gitlab.arturbosch.detekt.api.Entity import io.gitlab.arturbosch.detekt.api.Rule import io.gitlab.arturbosch.detekt.api.config import io.gitlab.arturbosch.detekt.rules.isConstant import org.jetbrains.kotlin.psi.KtAnnotationEntry import org.jetbrains.kotlin.psi.KtCallExpression import org.jetbrains.kotlin.psi.KtLiteralStringTemplateEntry import org.jetbrains.kotlin.psi.KtParameter import org.jetbrains.kotlin.psi.KtPrimaryConstructor import org.jetbrains.kotlin.psi.KtProperty import org.jetbrains.kotlin.psi.KtPsiUtil import org.jetbrains.kotlin.psi.KtStringTemplateExpression import org.jetbrains.kotlin.psi.KtValueArgument import org.jetbrains.kotlin.psi.psiUtil.containingClass import org.jetbrains.kotlin.psi.psiUtil.getQualifiedExpressionForReceiver import org.jetbrains.kotlin.psi.psiUtil.getStrictParentOfType /** * All the Raw strings that have more than one line should be followed by `trimMargin()` or `trimIndent()`. * * <noncompliant> * """ * Hello World! * How are you? * """ * </noncompliant> * * <compliant> * """ * | Hello World! * | How are you? * """.trimMargin() * * """ * Hello World! * How are you? * """.trimIndent() * * """Hello World! How are you?""" * </compliant> */ class TrimMultilineRawString(config: Config) : Rule( config, "Multiline raw strings should be followed by `trimMargin()` or `trimIndent()`.", ) { @Configuration("allows to provide a list of multiline string trimming methods") private val trimmingMethods: List<String> by config(listOf("trimIndent", "trimMargin")) override fun visitStringTemplateExpression(expression: KtStringTemplateExpression) { super.visitStringTemplateExpression(expression) if (expression.isRawStringWithLineBreak() && !expression.isTrimmed(trimmingMethods) && !expression.isExpectedAsConstant() ) { report( CodeSmell( Entity.from(expression), "Multiline raw strings should be followed by `trimMargin()` or `trimIndent()`", ) ) } } } fun KtStringTemplateExpression.isRawStringWithLineBreak(): Boolean = text.startsWith("\"\"\"") && text.endsWith("\"\"\"") && entries.any { val literalText = (it as? KtLiteralStringTemplateEntry)?.text literalText != null && "\n" in literalText } fun KtStringTemplateExpression.isTrimmed(trimmingMethods: List<String>): Boolean { val nextCall = getQualifiedExpressionForReceiver() ?.selectorExpression ?.let { it as? KtCallExpression } ?.calleeExpression ?.text return nextCall in trimmingMethods } @Suppress("ReturnCount") private fun KtStringTemplateExpression.isExpectedAsConstant(): Boolean { val expression = KtPsiUtil.safeDeparenthesize(this) val property = getStrictParentOfType<KtProperty>()?.takeIf { it.initializer == expression } if (property != null && property.isConstant()) return true val argument = expression.getStrictParentOfType<KtValueArgument>() ?.takeIf { it.getArgumentExpression() == expression } if (argument?.parent?.parent is KtAnnotationEntry) return true val parameter = expression.getStrictParentOfType<KtParameter>() ?.takeIf { it.defaultValue == expression } val primaryConstructor = parameter?.parent?.parent as? KtPrimaryConstructor if (primaryConstructor?.containingClass()?.isAnnotation() == true) return true return false } ```
Wang Yeong may refer to: Duke Nakrang (1043–1112), Goryeo royalty Count Gonghwa (1126–1186), Goryeo royalty Huijong of Goryeo (1181–1237), Goryeo king
Doctor Poison is a fictional character appearing in DC Comics publications and related media, commonly as a recurring adversary of the superhero Wonder Woman. A sadistic bioterrorist with a ghoulish face, she first appeared in 1942’s Sensation Comics #2, written by Wonder Woman creator William Moulton Marston and illustrated by Harry G. Peter, and holds a distinction as Wonder Woman’s first costumed supervillain. As the narrative continuity of Wonder Woman comics has been adjusted by different writers and artists throughout the years, various versions of Doctor Poison have been presented, usually as perversely cruel toxicologists of Japanese descent. There have been at least four different incarnations of the character since her debut: (1) the Golden Age Doctor Poison Princess Maru; (2) the unnamed Post-Crisis Doctor Poison and Maru’s granddaughter, first appearing in 1999’s Wonder Woman (vol. 2) #151; (3) the short-lived New 52 Doctor Poison, a Russian scientist known only as Dr. Maru, first appearing in 2016’s Wonder Woman (vol. 4) #48; and (4) Colonel Marina Maru, a Post-Rebirth reformulation of the character who heads an elite team of mercenaries known as "Poison", first appearing in 2017’s Wonder Woman (vol. 5) #13. Doctor Poison has been adapted into several Wonder Woman media projects beyond comic books, notably Patty Jenkins’ high-profile 2017 feature film Wonder Woman (in which the character was played by Elena Anaya) and the 2019 Warner Brothers animated film Wonder Woman: Bloodlines (voiced by Courtenay Taylor). Publication history Golden Age In her first appearance, Doctor Poison is presented as an ostensibly male figure in a hooded green surgical gown and black domino mask. Depicted with an eerie wide-eyed gaze and unsettling grimace, the character was an Axis scientist and mastermind who headed both the fictional Nazi Poison Division and the chemical research branch of the Japanese army. Apprehended by Wonder Woman after commanding a bio-attack on an Allied military base, Doctor Poison is unmasked as a young woman named Princess Maru, a Japanese royal who disguised herself as a male supervillain to better protect her identity – a genderplay trope her creator William Moulton Marston incorporated into several other foes he conceived to battle Wonder Woman, including the Blue Snowman and Hypnota. Princess Maru made subsequent Golden Age appearances disguised as Doctor Poison even after her true identity had been revealed. After several clashes with Wonder Woman, she became a member of Villainy Inc., a team of supervillains consisting of several of Wonder Woman's foes, including the Cheetah, Giganta and Queen Clea. Post-Crisis After DC Comics rebooted its continuity in 1985 (in a publication event known as the Crisis on Infinite Earths), Wonder Woman, her supporting characters and many of her foes were re-imagined and reintroduced. A retooled Doctor Poison made her first appearance in this continuity in 1999. Now the unstable granddaughter of the original Princess Maru, she is attired in a still-androgynous dark green leather trench and cowl, paying homage to her grandmother's Golden Age surgical gown. "[The Post-Crisis] Dr. Poison presents a deliberately ghoulish face to the world. Molecularly bonded appliqués peel back her eyelids to achieve a permanent stare. Dental hooks pull her lips into a rictus of revulsion". After several clashes with Wonder Woman, Doctor Poison joined Villainy Inc. and attempted to abet Queen Clea, and later the sentient computer virus Trinity, in taking over the other-dimensional realm of Skartaris. She subsequently joined The Secret Society of Supervillains and, under the guidance of Ares and in collaboration with fellow Society members the Cheetah, Felix Faust and T.O. Morrow, created the powerful golem Genocide as part of a plot to kill Wonder Woman. 2010s In 2016, a new version of Doctor Poison, a vengeful Russian scientist known only as Dr. Maru, was introduced and briefly battled Wonder Woman before being apprehended. A year later, as part of DC Comics' Rebirth continuity reboot, yet another version of the character was introduced, this time as the Japanese-American mercenary Colonel Marina Maru, a for-hire operative of the vindictive pharmaceutical tycoon Veronica Cale. Fictional character biography Princess Maru Golden Age Doctor Poison first appeared as the chief of the poison division for a Nazi spy band who had planned to contaminate the United States Army's water with "Reverso", a drug that compels whoever takes it to "do the exact opposite of what they are told". She disguised her sex by wearing a bulky hooded costume and a mask. Doctor Poison's underlings captured Steve Trevor and brought him to their base in America where he was questioned by Doctor Poison. Wonder Woman, disguised as a nurse, aided Steve Trevor but was forced to flee the scene after a lengthy battle. Meanwhile, the Reverso drug was successful in turning thousands of American soldiers against their superiors. Wonder Woman recruited Etta Candy to help her create a diversion for Doctor Poison's troops, which led to the defeat of the villain. When Wonder Woman pulled her disguise off, she discovered Doctor Poison to be Maru, a Japanese princess. Maru made one more attempt to defeat the amazon, but was tackled by Etta Candy and coerced into giving up the antidote. She was later taken into police custody. Later, Princess Maru escaped imprisonment and disguised herself as Mei Sing, a "princess" who worked in a Chinese nightclub. She once again captured Steve Trevor, who couldn't see through her disguise. This led to another encounter with Wonder Woman, whom Maru defeated with an anesthetic gas grenade. Maru had been perfecting a green gas which would clog the carburetors of the US planes. This plan was foiled once again by Wonder Woman. Instead of placing Maru back in prison, Wonder Woman sentenced her to Transformation Island, the Amazon penal colony where many female criminals were sent to reform. Although the majority of inmates have reformed with loving submission, Maru and seven other women refused to change their ways. The Saturnian slaver Eviless banded these rebellious super-villains together under the name Villainy Inc. Maru returned to her Doctor Poison disguise and tricked Queen Hippolyta into believing men had invaded Paradise Island. The villains were able to capture Hippolyta's girdle, which they used to defeat Wonder Woman. Doctor Poison then joined Eviless, Blue Snowman, and Cheetah on a boat with the captive Wonder Woman, plotting to imprison the Amazon on Transformation Island for revenge. Wonder Woman attempted to escape by turning over the boat, but the four members of Villainy Inc. defeated her once again. After traveling to Transformation Island, Eviless tortured Wonder Woman until the reformed criminal Irene led a mutiny against Villainy Inc. In the ensuing chaos, Wonder Woman and Hippolyta broke free of their chains and managed to defeat Doctor Poison and her three companions. Post-Crisis After the events of Crisis on Infinite Earths, Doctor Poison was a founding member of Villainy Inc., but the team was created by Queen Clea instead of Eviless. As part of Villainy Inc., Doctor Poison battled Hippolyta, the first Wonder Woman, in the 1940s. It was later revealed by her granddaughter that she had died after creating the Reverso drug, as she accidentally reversed her own growth patterns and had forgotten the antidote by becoming too young too fast, eventually reverting to a fetus and then nothing. Marina Maru Post-Crisis The grandchild of the original Doctor Poison, this second incarnation appears in league with the demi-goddess Devastation. Doctor Poison's sex remains ambiguous, the only clues being long fingernails and a lipsticked grimace. She also joined the second Villainy Inc. and once again battled Wonder Woman. This incarnation of Doctor Poison confirmed that her grandmother did battle Queen Hippolyta as Wonder Woman during World War II. She also explains that her grandmother met her own demise by the creation of the drug called "Reverso". The original Doctor Poison accidentally reversed her own growth patterns and had forgotten the antidote by becoming too young too fast, eventually reverting to a fetus and then nothing. Doctor Poison is one of the villains sent to retrieve the Get Out of Hell free card from the Secret Six. Doctor Poison was later asked to be a part of the Secret Society of Super Villains, which she accepted. Joining the other scientists on the team, she was assigned to collect soil samples from Logor Jasenovac, Croatia. She added her samples with that of other areas on Earth where genocide took place and helped create the new Wonder Woman villain Genocide. Following the Final Crisis, she was with Cheetah's Secret Society of Super Villains. The New 52 In September 2011, DC Comics rebooted the continuity of its fictional universe and relaunched all 52 of its monthly books in an endeavor called The New 52. Here, Doctor Maru is re-introduced as the Caucasian daughter of a Russian pair of scientists renowned for their knowledge of poisons. American spies had approached her parents as they thought the doctors' expertise could lead to the United States' domination in biological weaponry. When they refused, the Russian government discovered their practices. Her parents were branded terrorists by Russia, and imprisoned near Siberia where they died during interrogations. Doctor Poison blamed the United States for her parents' deaths and planned to take revenge through chemical attacks. DC Rebirth After the events of DC Rebirth, Doctor Poison's history had been altered. In the current continuity, she is Colonel Marina Maru, a Japanese soldier working for the organization called Poison which had been founded by her family. During Wonder Woman's first few months in the United States, the Amazon discovered a group of men infected with the Maru Virus, a poison that drives its victims to rage-induced murder. Ten years later, after Wonder Woman had discovered she had been living a lie for several years, Veronica Cale sent Doctor Poison to attack the Amazon. In the Watchmen sequel Doomsday Clock, Doctor Poison is among the villains who attend an underground meeting held by Riddler that talks about the Superman Theory. Doctor Poison talks about a rumor that the Amazons forcefully took Wonder Woman back to Themyscira. Powers and abilities Doctor Poison is exceptionally intelligent, which mainly extends to her considerable chemistry, toxicology, fluid dynamics, and lingual skills and knowledge. Her primary invention was a new and deadlier version of mustard gas, based on hydrogen instead of sulfur that she kept contained in pellets. In the DC Rebirth universe, in addition to her scientific expertise, Doctor Poison is a trained soldier. Other versions Doctor Poison appears in the Wonder Woman sections of anthology series Wednesday Comics. Doctor Poison appears in the digital-first anthology series Sensational Wonder Woman #11 and #12 as one of Queen Bee's generals. In other media Television The Princess Maru incarnation of Doctor Poison makes a non-speaking cameo appearance in the Batman: The Brave and the Bold episode "Joker: The Vile and the Villainous!" as the bartender for a supervillain tavern. Film Doctor Poison appears in Wonder Woman, portrayed by Elena Anaya. This version is Dr. Isabel Maru, a chemist recruited by General Erich Ludendorff to create chemical weapons for the Imperial German Army during World War I who is nicknamed Doctor Poison. Additionally, due to a facial disfigurement, she wears a ceramic mask over the left side of her face. She develops a deadlier form of mustard gas capable of rendering gas masks useless after receiving the idea from Ares, but Steve Trevor steals a journal containing Maru's notes and eventually ends up at Themyscira, where he receives Diana Prince's help in stopping the war. Following an encounter with Ares, he attempts to manipulate Prince into killing Maru, but the former eventually comes to recognize and accept humanity's flaws before sparing Maru, who subsequently flees. Doctor Poison appears in Wonder Woman: Bloodlines, voiced by Courtenay Taylor. This version is co-leader of Villainy Inc. She leads the group in resurrecting Medusa to help them find Themyscira and steal their technology, but the Gorgon betrays the group, killing Poison in the process. Video games Doctor Poison appears as a playable character in DC Legends. Doctor Poison appears as a playable character in Lego DC Super-Villains. This version is a member of the Legion of Doom. Miscellaneous Doctor Poison appears in DC Super Friends #24. See also List of Wonder Woman enemies References Jett, Brett. "Who Is Wonder Woman?--Bonus PDF", (2009): "Major Villains", pp 1–17. Jett, Brett. "Wonder Woman's Core Theme" , (Article) (2017, October 13): World Of Superheroes online. Marston, William Moulton. Emotions Of Normal People. London: Kegan Paul, Trench, Trübner & Co, Ltd. 1928. External links Doctor Poison Rapsheet Gay League Profile The Unofficial Doctor Poison Biography Articles about multiple fictional characters Wonder Woman characters Characters created by William Moulton Marston Characters created by H. G. Peter Comics characters introduced in 1942 Comics characters introduced in 1999 DC Comics female supervillains DC Comics LGBT supervillains DC Comics scientists Golden Age supervillains Female characters in film Female film villains Fictional princesses Fictional mass murderers Fictional colonels Fictional cross-dressers Fictional female doctors Fictional Japanese military personnel Fictional chemists Fictional pathologists Fictional toxicologists Fictional virologists DC Comics Nazis Fictional terrorists
```c++ * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ #include "Exceptions.h" #include "misc/Interval.h" #include "support/StringUtils.h" #include "UnbufferedCharStream.h" using namespace antlrcpp; using namespace antlr4; using namespace antlr4::misc; UnbufferedCharStream::UnbufferedCharStream(std::wistream& input) : _input(input) { InitializeInstanceFields(); // The vector's size is what used to be n in Java code. fill(1); // prime } void UnbufferedCharStream::consume() { if (LA(1) == EOF) { throw IllegalStateException("cannot consume EOF"); } // buf always has at least data[p==0] in this method due to ctor _lastChar = _data[_p]; // track last char for LA(-1) if (_p == _data.size() - 1 && _numMarkers == 0) { size_t capacity = _data.capacity(); _data.clear(); _data.reserve(capacity); _p = 0; _lastCharBufferStart = _lastChar; } else { _p++; } _currentCharIndex++; sync(1); } void UnbufferedCharStream::sync(size_t want) { if (_p + want <= _data.size()) // Already enough data loaded? return; fill(_p + want - _data.size()); } size_t UnbufferedCharStream::fill(size_t n) { for (size_t i = 0; i < n; i++) { if (_data.size() > 0 && _data.back() == 0xFFFF) { return i; } try { char32_t c = nextChar(); add(c); #if defined(_MSC_FULL_VER) && _MSC_FULL_VER < 190023026 } catch (IOException& ioe) { // throw_with_nested is not available before VS 2015. throw ioe; #else } catch (IOException& /*ioe*/) { std::throw_with_nested(RuntimeException()); #endif } } return n; } char32_t UnbufferedCharStream::nextChar() { wchar_t result = 0; _input >> result; return result; } void UnbufferedCharStream::add(char32_t c) { _data += c; } size_t UnbufferedCharStream::LA(ssize_t i) { if (i == -1) { // special case return _lastChar; } // We can look back only as many chars as we have buffered. ssize_t index = static_cast<ssize_t>(_p) + i - 1; if (index < 0) { throw IndexOutOfBoundsException(); } if (i > 0) { sync(static_cast<size_t>(i)); // No need to sync if we look back. } if (static_cast<size_t>(index) >= _data.size()) { return EOF; } if (_data[static_cast<size_t>(index)] == 0xFFFF) { return EOF; } return _data[static_cast<size_t>(index)]; } ssize_t UnbufferedCharStream::mark() { if (_numMarkers == 0) { _lastCharBufferStart = _lastChar; } ssize_t mark = -static_cast<ssize_t>(_numMarkers) - 1; _numMarkers++; return mark; } void UnbufferedCharStream::release(ssize_t marker) { ssize_t expectedMark = -static_cast<ssize_t>(_numMarkers); if (marker != expectedMark) { throw IllegalStateException("release() called with an invalid marker."); } _numMarkers--; if (_numMarkers == 0 && _p > 0) { _data.erase(0, _p); _p = 0; _lastCharBufferStart = _lastChar; } } size_t UnbufferedCharStream::index() { return _currentCharIndex; } void UnbufferedCharStream::seek(size_t index) { if (index == _currentCharIndex) { return; } if (index > _currentCharIndex) { sync(index - _currentCharIndex); index = std::min(index, getBufferStartIndex() + _data.size() - 1); } // index == to bufferStartIndex should set p to 0 ssize_t i = static_cast<ssize_t>(index) - static_cast<ssize_t>(getBufferStartIndex()); if (i < 0) { throw IllegalArgumentException( std::string("cannot seek to negative index ") + std::to_string(index)); } else if (i >= static_cast<ssize_t>(_data.size())) { throw UnsupportedOperationException( "Seek to index outside buffer: " + std::to_string(index) + " not in " + std::to_string(getBufferStartIndex()) + ".." + std::to_string(getBufferStartIndex() + _data.size())); } _p = static_cast<size_t>(i); _currentCharIndex = index; if (_p == 0) { _lastChar = _lastCharBufferStart; } else { _lastChar = _data[_p - 1]; } } size_t UnbufferedCharStream::size() { throw UnsupportedOperationException("Unbuffered stream cannot know its size"); } std::string UnbufferedCharStream::getSourceName() const { if (name.empty()) { return UNKNOWN_SOURCE_NAME; } return name; } std::string UnbufferedCharStream::getText(const misc::Interval& interval) { if (interval.a < 0 || interval.b >= interval.a - 1) { throw IllegalArgumentException("invalid interval"); } size_t bufferStartIndex = getBufferStartIndex(); if (!_data.empty() && _data.back() == 0xFFFF) { if (interval.a + interval.length() > bufferStartIndex + _data.size()) { throw IllegalArgumentException( "the interval extends past the end of the stream"); } } if (interval.a < static_cast<ssize_t>(bufferStartIndex) || interval.b >= ssize_t(bufferStartIndex + _data.size())) { throw UnsupportedOperationException( "interval " + interval.toString() + " outside buffer: " + std::to_string(bufferStartIndex) + ".." + std::to_string(bufferStartIndex + _data.size() - 1)); } // convert from absolute to local index size_t i = interval.a - bufferStartIndex; return utf32_to_utf8(_data.substr(i, interval.length())); } size_t UnbufferedCharStream::getBufferStartIndex() const { return _currentCharIndex - _p; } void UnbufferedCharStream::InitializeInstanceFields() { _p = 0; _numMarkers = 0; _lastChar = 0; _lastCharBufferStart = 0; _currentCharIndex = 0; } ```
```shell Rapidly invoke an editor to write a long, complex, or tricky command Aliasing ssh connections Find any Unix / Linux command Quick `bash` shortcuts Sequential execution using the `;` statement separator ```
John Saville Zamet FDS (11 November 1932 - 5 May 2007) was a periodontist in the United Kingdom. He established the first exclusively periodontal practice in London in 1966. After he retired, he attended the University College Hospital and took a course in Holocaust studies, leading him to write the biographies of refugee dental surgeons in the UK, and assess their skills as a missed opportunity for improving the ordinary quality of interwar British dental surgery. He died shortly after completing his PhD thesis on German and Austrian Refugee Dentists 1933–1945, The Response of The British Authorities in 2007. His PhD degree was awarded posthumously and his thesis remains unpublished. Early life and career John Zamet was born in London on 11 November 1932. In 1958, three years after completing his studies in dentistry at the Royal Dental Hospital (RDH), he obtained his fellowship in dental surgery of the Royal College of Surgeons of England. With an interest in periodontology, between 1956 and 1962, he worked in the departments at the Eastman Dental Hospital, Guy's Hospital and the RDH. At the time the subject was still in its infancy in the UK. Although in the US the speciality was long established, the first British academic department was only set up in 1948 at the Eastman Dental Hospital, under W. G. Cross. He went to America in 1962 on a post-graduate fellowship to study at the University of Pennsylvania Department of Periodontics. There he came under the influence of periodontologist D. Walter Cohen. Return to London and senior posts On his return to the UK, Zamet was appointed senior lecturer at the RDH, and later consultant in periodontology at University College Hospital (UCH) Dental School. After the closure of the UCH school Zamet moved to the Eastman as honorary consultant in periodontology. He stayed there until he retired in 2001. Whilst at UCH and the Eastman, Zamet carried out several research projects. In 1974 he was awarded an MPhil degree by the University of London for his dissertation, A Comparative Clinical Study of Three Periodontal Surgical techniques, which examined clinical outcomes of surgical periodontal therapy. Other research was carried out into particulate bioglass grafts. In 1966, Zamet established the first, and for many years the only, singularly periodontal practice in London. He was also the first UK periodontist to participate in the Brånemark Osseointegration Programme in Gothenburg. This programme stemmed from when, in 1952 Per-Ingvar Brånemark put titanium-encased optical devices into the legs of rabbits to study the healing process. At the end of the research period, after removing the devices, they discovered unexpectedly that the titanium had fused into the bone and could not be removed. He called the process osseointegration. The toleration to long-term presence of titanium led to the potential for new research in using it to create an anchor for artificial teeth. Zamet pursued recognition for periodontology as a UK speciality and played an influential role in the establishment of the General Dental Council's Specialist Register in Periodontology. Other roles Societies He took up responsibilities in numerous societies, including President, Honorary Vice-president and Honorary Life Member of the British Society of Periodontology, a Life Member of the American Academy of Periodontology and an Honorary Member of the American Dental Society of London. Alpha Omega International Dental Fraternity At a time when Jewish students were not allowed to form social groups, a group of Jewish dental students founded The Alpha Omega International Dental Fraternity in 1907 at the University of Maryland School of Dental Medicine, which claims to be the oldest international dental organisation and the oldest international Jewish medical organisation. It eventually incorporated over 100 alumni and student chapters in ten countries. Zamet became the first and twenty-fifth chairman of the London chapter of the Alpha Omega Dental Fraternity, which sponsored numerous projects in the UK and Israel. He also served as secretary of its London Charitable Trust. At one time, he liaised with Walter Annenberg and obtained funding for postgraduate education and the Annenberg Lecture and Traveling Scholarship. Retirement and Holocaust studies Zamet retired in 2001, following which he enrolled at University College London in Holocaust studies, where he was a student of Michael Berkowitz. After completing an MA, he furthered his studies by working on a PhD thesis on German and Austrian Refugee Dentists 1933–1945, The Response of The British Authorities. In the 1930s and 1940s, displaced doctors searched the world for locations where their skills might be appreciated and where they could find a place of safety from worsening Nazi persecution. As part of his thesis, in 2005, Zamet wrote to the British Dental Journal as he attempted to "reconstruct the history of this brave group of professionals, who despite the odds, succeeded in a foreign country which did not want them". He recreated the biographies of refugee dental surgeons, and assessed their qualifications and skills as a missed opportunity for improving the quantity and quality of interwar British dental surgery. As a result, he established many contacts with surviving refugees and their families, assembling a unique compilation of sources. His research has been described by medical historian Paul Weindling as "outstanding" and "exceptional". Zamet compared dental training at the University of Vienna with that in Britain in the 1930s, concluding that the "dilapidated state of British dental health and dentistry" at that time was a "cottage industry". Despite demonstrating a British need for them, of the 360 Viennese dental surgeons (stomatologists) that applied to the General Medical Council (GMC) to register on the Dental Register, there being no General Dental Council until 1956, only 41 were granted registration, and only after re-certification. Many of those disallowed registration and therefore denied entry to the UK, "despite their excellent training, probably died during the Holocaust" or were led to suicide. Death and legacy Weindling attributes the loss of records and lack of archival material on migrant practitioners in general to the delay in "Vergangenheitsbewältigung", that is, the coming to terms with the past. He consequently relates Zamet as a "pioneer" in this field and a historian of refugee dental surgeons, while other medical professionals have yet to find their historian. Zamet completed his PhD thesis in December 2006. He died on 5 May 2007, and his PhD degree was awarded posthumously in 2007. In acknowledgement of his contributions to periodontology, in 2011 the London Chapter and Charitable Trust established a John Zamet Memorial Prize in Periodontal Research open to UK-based postgraduate dental students studying for a master's degree or PhD who are undertaking or who have recently completed original research associated with clinical periodontology. It is awarded every second year. Selected works Book chapters "Periodontics, the frontier" in The British Society of Periodontology, the First 50 Years, 1999. Articles "Glickman's Clinical Periodontology, a book review", Journal of the Royal Society of Medicine, Vol. 72, July 1979, pp. 545–546. "Particulate bioglass as a grafting material in the treatment of periodontal intrabony defects". Journal of Clinical Periodontology, Vol. 24, No. 6 (June 1997), pp. 410–418. (Joint with U.R. Darbar, G.S. Griffiths, J.S. Bulman, U. Brägger, W. Bürgin, H. N. Newman) . "Aliens or Colleagues? Refugees from Nazi Oppression 1933-1945", British Dental Journal, Vol. 201, No. 6 (September 2006), pp. 397–407. "The Anschluss and the Problem of Refugee Stomatologists", Social History of Medicine, Vol. 22, Issue 3 (1 December 2009), pp. 471–488. Unpublished "German and Austrian Refugee Dentists: The Response of the British Authorities, 1933–1945". Oxford Brookes University, 2007. Unpublished PhD thesis. References English dentists Periodontists 1932 births 2007 deaths Fellows of the Royal College of Surgeons of England Alumni of Oxford Brookes University Medical doctors from London English Jews Alumni of the University of London 20th-century dentists
```java package chapter3.section4; import edu.princeton.cs.algs4.StdOut; import edu.princeton.cs.algs4.StdRandom; /** * Created by Rene Argento on 23/07/17. */ public class Exercise30_ChiSquareStatistic { class SeparateChainingHashTableChiSquare<Key, Value> extends SeparateChainingHashTable<Key, Value> { SeparateChainingHashTableChiSquare(int initialSize, int averageListSize) { super(initialSize, averageListSize); } double computeChiSquareStatistic() { double sizeOverKeyCount = size / (double) keysSize; double keyCountOverSize = keysSize / (double) size; int[] keyCountByHashValue = new int[symbolTable.length]; for (int bucket = 0; bucket < symbolTable.length; bucket++) { keyCountByHashValue[bucket] = symbolTable[bucket].size; } double fSum = 0; for (int i = 0; i < keyCountByHashValue.length; i++) { fSum += Math.pow(keyCountByHashValue[i] - keyCountOverSize, 2); } return sizeOverKeyCount * fSum; } } public static void main(String[] args) { Exercise30_ChiSquareStatistic chiSquareStatistic = new Exercise30_ChiSquareStatistic(); SeparateChainingHashTableChiSquare<Integer, Integer> separateChainingHashTableChiSquare = chiSquareStatistic.new SeparateChainingHashTableChiSquare<>(100, 20); for (int key = 0; key < 10000; key ++) { int randomIntegerKey = StdRandom.uniform(Integer.MAX_VALUE); separateChainingHashTableChiSquare.put(randomIntegerKey, randomIntegerKey); } double lowerBound = separateChainingHashTableChiSquare.size - Math.sqrt(separateChainingHashTableChiSquare.size); double upperBound = separateChainingHashTableChiSquare.size + Math.sqrt(separateChainingHashTableChiSquare.size); double constant = separateChainingHashTableChiSquare.keysSize / (double) separateChainingHashTableChiSquare.size; double probability = 1 - (1 / constant); double chiSquareStatisticValue = separateChainingHashTableChiSquare.computeChiSquareStatistic(); StdOut.println("M - sqrt(M) = " + String.format("%.2f", lowerBound)); StdOut.println("M + sqrt(M) = " + String.format("%.2f", upperBound)); StdOut.println("Chi square statistic = " + String.format("%.2f", chiSquareStatisticValue)); StdOut.println("Probability = " + String.format("%.2f%%", probability * 100)); StdOut.print("Produces random values: "); if (lowerBound <= chiSquareStatisticValue && chiSquareStatisticValue <= upperBound) { StdOut.print("True"); } else { StdOut.print("False"); } } } ```
```python Built-in `list` methods `bytes` type `Dictionary` - standard mapping type `Dictionary` view objects Get the most of `int`s ```
```hcl # # # 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. terraform { required_providers { google = { source = "hashicorp/google" } helm = { source = "hashicorp/helm" version = "~> 2.8.0" } kubernetes = { source = "hashicorp/kubernetes" version = "2.18.1" } kubectl = { source = "alekc/kubectl" version = "2.0.1" } } } ```
```ruby class RustcCompletion < Formula desc "Bash completion for rustc" homepage "path_to_url" license "MIT" head "path_to_url", branch: "master" stable do url "path_to_url" sha256 your_sha256_hash # upstream commit to fix an undefined command when sourcing the file directly patch do url "path_to_url" sha256 your_sha256_hash end end bottle do rebuild 1 sha256 cellar: :any_skip_relocation, all: your_sha256_hash end def install bash_completion.install "etc/bash_completion.d/rustc" end test do assert_match "-F _rustc", shell_output("bash -c 'source #{bash_completion}/rustc && complete -p rustc'") end end ```
Charlie Chan (born 2 February 1911) was a Chinese swimmer. He competed in the men's 100 metre freestyle at the 1936 Summer Olympics. References External links 1911 births Place of birth missing Year of death missing Olympic swimmers for China Swimmers at the 1936 Summer Olympics Chinese male freestyle swimmers
```smalltalk using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; namespace SixLabors.ImageSharp.Tests.Processing; public class IntegralImageTests : BaseImageOperationsExtensionTest { [Theory] [WithFile(TestImages.Png.Bradley01, PixelTypes.Rgba32)] [WithFile(TestImages.Png.Bradley02, PixelTypes.Rgba32)] [WithFile(TestImages.Png.Ducky, PixelTypes.Rgba32)] public void CalculateIntegralImage_Rgba32Works(TestImageProvider<Rgba32> provider) { using Image<Rgba32> image = provider.GetImage(); // Act: Buffer2D<ulong> integralBuffer = image.CalculateIntegralImage(); // Assert: VerifySumValues(provider, integralBuffer, (Rgba32 pixel) => L8.FromRgba32(pixel).PackedValue); } [Theory] [WithFile(TestImages.Png.Bradley01, PixelTypes.Rgba32)] [WithFile(TestImages.Png.Bradley02, PixelTypes.Rgba32)] [WithFile(TestImages.Png.Ducky, PixelTypes.Rgba32)] public void CalculateIntegralImage_WithBounds_Rgba32Works(TestImageProvider<Rgba32> provider) { using Image<Rgba32> image = provider.GetImage(); Rectangle interest = new(image.Width / 4, image.Height / 4, image.Width / 2, image.Height / 2); // Act: Buffer2D<ulong> integralBuffer = image.CalculateIntegralImage(interest); // Assert: VerifySumValues(provider, integralBuffer, interest, (Rgba32 pixel) => L8.FromRgba32(pixel).PackedValue); } [Theory] [WithFile(TestImages.Png.Bradley01, PixelTypes.L8)] [WithFile(TestImages.Png.Bradley02, PixelTypes.L8)] public void CalculateIntegralImage_L8Works(TestImageProvider<L8> provider) { using Image<L8> image = provider.GetImage(); // Act: Buffer2D<ulong> integralBuffer = image.CalculateIntegralImage(); // Assert: VerifySumValues(provider, integralBuffer, (L8 pixel) => pixel.PackedValue); } [Theory] [WithFile(TestImages.Png.Bradley01, PixelTypes.L8)] [WithFile(TestImages.Png.Bradley02, PixelTypes.L8)] public void CalculateIntegralImage_WithBounds_L8Works(TestImageProvider<L8> provider) { using Image<L8> image = provider.GetImage(); Rectangle interest = new(image.Width / 4, image.Height / 4, image.Width / 2, image.Height / 2); // Act: Buffer2D<ulong> integralBuffer = image.CalculateIntegralImage(interest); // Assert: VerifySumValues(provider, integralBuffer, interest, (L8 pixel) => pixel.PackedValue); } private static void VerifySumValues<TPixel>( TestImageProvider<TPixel> provider, Buffer2D<ulong> integralBuffer, Func<TPixel, ulong> getPixel) where TPixel : unmanaged, IPixel<TPixel> => VerifySumValues(provider, integralBuffer, integralBuffer.Bounds(), getPixel); private static void VerifySumValues<TPixel>( TestImageProvider<TPixel> provider, Buffer2D<ulong> integralBuffer, Rectangle bounds, Func<TPixel, ulong> getPixel) where TPixel : unmanaged, IPixel<TPixel> { Buffer2DRegion<TPixel> image = provider.GetImage().GetRootFramePixelBuffer().GetRegion(bounds); // Check top-left corner Assert.Equal(getPixel(image[0, 0]), integralBuffer[0, 0]); ulong pixelValues = 0; pixelValues += getPixel(image[0, 0]); pixelValues += getPixel(image[1, 0]); pixelValues += getPixel(image[0, 1]); pixelValues += getPixel(image[1, 1]); // Check top-left 2x2 pixels Assert.Equal(pixelValues, integralBuffer[1, 1]); pixelValues = 0; pixelValues += getPixel(image[image.Width - 3, 0]); pixelValues += getPixel(image[image.Width - 2, 0]); pixelValues += getPixel(image[image.Width - 1, 0]); pixelValues += getPixel(image[image.Width - 3, 1]); pixelValues += getPixel(image[image.Width - 2, 1]); pixelValues += getPixel(image[image.Width - 1, 1]); // Check top-right 3x2 pixels Assert.Equal(pixelValues, integralBuffer[image.Width - 1, 1] + 0 - 0 - integralBuffer[image.Width - 4, 1]); pixelValues = 0; pixelValues += getPixel(image[0, image.Height - 3]); pixelValues += getPixel(image[0, image.Height - 2]); pixelValues += getPixel(image[0, image.Height - 1]); pixelValues += getPixel(image[1, image.Height - 3]); pixelValues += getPixel(image[1, image.Height - 2]); pixelValues += getPixel(image[1, image.Height - 1]); // Check bottom-left 2x3 pixels Assert.Equal(pixelValues, integralBuffer[1, image.Height - 1] + 0 - integralBuffer[1, image.Height - 4] - 0); pixelValues = 0; pixelValues += getPixel(image[image.Width - 3, image.Height - 3]); pixelValues += getPixel(image[image.Width - 2, image.Height - 3]); pixelValues += getPixel(image[image.Width - 1, image.Height - 3]); pixelValues += getPixel(image[image.Width - 3, image.Height - 2]); pixelValues += getPixel(image[image.Width - 2, image.Height - 2]); pixelValues += getPixel(image[image.Width - 1, image.Height - 2]); pixelValues += getPixel(image[image.Width - 3, image.Height - 1]); pixelValues += getPixel(image[image.Width - 2, image.Height - 1]); pixelValues += getPixel(image[image.Width - 1, image.Height - 1]); // Check bottom-right 3x3 pixels Assert.Equal(pixelValues, integralBuffer[image.Width - 1, image.Height - 1] + integralBuffer[image.Width - 4, image.Height - 4] - integralBuffer[image.Width - 1, image.Height - 4] - integralBuffer[image.Width - 4, image.Height - 1]); } } ```
CP-39,332 is a drug which acts as a serotonin-norepinephrine reuptake inhibitor. Tametraline (1R,4S-), CP-24,442 (1S,4R-), CP-22,185 (cis-), and CP-22,186 (trans-) are stereoisomers of the compound and show varying effects on monoamine reuptake. None of them were ever marketed. See also Tametraline Sertraline Indatraline References Aminotetralins Pfizer brands
Andriy Volodymyrovych Tsurikov (; born 5 October 1992) is a Ukrainian professional footballer who plays as a defender for Kolos Kovalivka. Career Tsurikov is product of youth team system FC Metalurh Zaporizhzhia. His first coach was Volodymyr Shapovalov Made his debut for FC Metalurh entering as a full-time playing against FC Karpaty Lviv on 25 July 2010 in Ukrainian Premier League. Honours Ukrainian Cup: 2013–14 References External links 1992 births Living people Footballers from Zaporizhzhia Ukrainian men's footballers FC Metalurh Zaporizhzhia players FC Metalurh-2 Zaporizhzhia players FC Dynamo Kyiv players FC Hoverla Uzhhorod players Ukrainian Premier League players Ukrainian First League players Ukrainian Second League players Super League Greece players Men's association football defenders Levadiakos F.C. players Ukrainian expatriate men's footballers Expatriate men's footballers in Greece Ukrainian expatriate sportspeople in Greece FC Oleksandriya players FK Jablonec players Ukrainian expatriate sportspeople in the Czech Republic Expatriate men's footballers in the Czech Republic SC Dnipro-1 players FC Metalist Kharkiv players Ukraine men's youth international footballers Ukraine men's under-21 international footballers
```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 io.pravega.segmentstore.contracts; public class StreamSegmentNotSealedException extends StreamSegmentException { /** * */ private static final long serialVersionUID = 1L; /** * Creates a new instance of the StreamSegmentNotSealedException class. * * @param streamSegmentName The name of the StreamSegment that is not sealed. */ public StreamSegmentNotSealedException(String streamSegmentName) { super(streamSegmentName, "The StreamSegment is not sealed.", null); } } ```
Crypsiptya is a genus of moths of the family Crambidae. Species Crypsiptya africalis Maes, 2002 Crypsiptya coclesalis Walker, 1859 Crypsiptya megaptyona Hampson, 1918 Crypsiptya mutuuri (Rose & Pajni, 1979) Crypsiptya nereidalis Lederer, 1863 Crypsiptya ruficostalis Hampson, 1918 Crypsiptya viettalis Marion, 1956 References Pyraustinae Crambidae genera Taxa named by Edward Meyrick
Overconsumption describes a situation where a consumer overuses their available goods and services to where they can't, or don't want to, replenish or reuse them. In microeconomics, this may be described as the point where the marginal cost of a consumer is greater than their marginal utility. The term overconsumption is quite controversial in use and does not necessarily have a single unifying definition. When used to refer to natural resources to the point where the environment is negatively affected, is it synonymous with the term overexploitation. However, when used in the broader economic sense, overconsumption can refer to all types of goods and services, including manmade ones, e.g. "the overconsumption of alcohol can lead to alcohol poisoning". Overconsumption is driven by several factors of the current global economy, including forces like consumerism, planned obsolescence, economic materialism, and other unsustainable business models and can be contrasted with sustainable consumption. Defining the amount of a natural resource required to be consumed for it to count as "overconsumption" is challenging because defining a sustainable capacity of the system requires accounting for many variables. The total capacity of a system occurs at both the regional and worldwide levels, which means that certain regions may have higher consumption levels of certain resources than others due to greater resources without overconsuming a resource. A long-term pattern of overconsumption in any given region or ecological system can cause a reduction in natural resources that often results in environmental degradation. However, this is only when applying the word to human impacts on the environment. When used in an economic sense, this point is defined as when the marginal cost of a consumer is equal to their marginal utility. Gossen's law of diminishing utility states that at this point, the consumer realizes the cost of consuming/purchasing another item/good is not worth the amount of utility (also known as happiness or satisfaction from the good) they'd receive, and therefore is not conducive to the consumer's wellbeing. When used in the environmental sense, the discussion of overconsumption often parallels that of population size and growth, and human development: more people demanding higher qualities of living, currently requires greater extraction of resources, which causes subsequent environmental degradation such as climate change and biodiversity loss. Currently, the inhabitants of high wealth, "developed" nations consume resources at a rate almost 32 times greater than those of the developing world, who make up the majority of the human population (7.9 billion people). However, the developing world is a growing consumer market. These nations are quickly gaining more purchasing power and it is expected that the Global South, which includes cities in Asia, America, and Africa, will account for 56% of consumption growth by 2030. This means that if current trends continue relative consumption rates will shift more into these developing countries, whereas developed countries would start to plateau. Sustainable Development Goal 12 "responsible consumption and production" is the main international policy tool with goals to abate the impact of overconsumption. Causes Economic growth Economic growth is sometimes seen as a driver for overconsumption. Economic growth can be seen as a catalyst of overconsumption due to it requiring greater resource input to sustain the growth. China is an example where this phenomenon has been observed readily. China’s GDP increased massively from 1978, and energy consumption has increased by 6-fold. By 1983, China’s consumption surpassed the biocapacity of their natural resources, leading to overconsumption. In the last 30–40 years, China has seen significant increases in its pollution, land degradation, and non-renewable resource depletion, which aligns with its considerable economic growth. It is unknown if other rapidly developing nations will see similar trends in resource overconsumption. The Worldwatch Institute said China and India, with their booming economies, along with the United States, are the three planetary forces that are shaping the global biosphere. The State of the World 2005 report said the two countries' high economic growth exposed the reality of severe pollution. The report states that The world's ecological capacity is simply insufficient to satisfy the ambitions of China, India, Japan, Europe, and the United States as well as the aspirations of the rest of the world in a sustainable way. In 2019, a warning on the climate crisis signed by 11,000 scientists from over 150 nations said economic growth is the driving force behind the "excessive extraction of materials and overexploitation of ecosystems" and that this "must be quickly curtailed to maintain long-term sustainability of the biosphere." Also in 2019, the Global Assessment Report on Biodiversity and Ecosystem Services published by the United Nations' Intergovernmental Science-Policy Platform on Biodiversity and Ecosystem Services, which found that up to one million species of plants and animals are at risk of extinction from human activity, asserted that A key element of more sustainable future policies is the evolution of global financial and economic systems to build a global sustainable economy, steering away from the current limited paradigm of economic growth. Consumerism Consumerism is a social and economic order that encourages the acquisition of goods and services in ever-increasing amounts. There is a spectrum of goods and services that the world population constantly consumes. These range from food and beverage, clothing and footwear, housing, energy, technology, transportation, education, health and personal care, financial services, and other utilities. When the resources required to produce these goods and services are depleted beyond a reasonable level, it can be considered to be overconsumption. Because developing nations are rising quickly into the consumer class, the trends happening in these nations are of special interest. According to the World Bank, the highest shares of consumption, regardless of income lie in food, beverage, clothing, and footwear. As of 2015, the top five consumer markets in the world were the United States, Japan, Germany, China, and France. Planned and perceived obsolescence is an important factor that explains why some overconsumption of consumer products exists. This factor of the production revolves around designing products with the intent to be discarded after a short period of time. Perceived obsolescence is prevalent within the fashion and technology industries. Through this technique, products are made obsolete and replaced on a semi-regular basis. Frequent new launches of technology or fashion lines can be seen as a form of marketing-induced perceived obsolescence. Products designed to break after a certain period of time or use would be considered to be planned obsolescence. Affluence According to a 2020 paper written by a team of scientists titled "Scientists' warning on affluence", the entrenchment of "capitalist, growth-driven economic systems" since World War II gave rise to increasing affluence along with "enormous increases in inequality, financial instability, resource consumption and environmental pressures on vital earth support systems." And the world's wealthiest citizens, referred to as "super-affluent consumers . . . which overlap with powerful fractions of the capitalist class," are the most responsible for environmental impacts through their consumption patterns worldwide. Any sustainable social and environmental pathways must include transcending paradigms fixated on economic growth and also reducing, not simply "greening", the overconsumption of the super-affluent, the authors contend, and propose adopting either reformist policies which can be implemented within a capitalist framework such as wealth redistribution through taxation (in particular eco-taxes), green investments, basic income guarantees and reduced work hours to accomplish this, or looking to more radical approaches associated with degrowth, eco-socialism and eco-anarchism, which would "entail a shift beyond capitalism and/or current centralised states." Effects A fundamental effect of overconsumption is a reduction in the planet's carrying capacity. Excessive unsustainable consumption will exceed the long-term carrying capacity of its environment (ecological overshoot) and subsequent resource depletion, environmental degradation and reduced ecosystem health. In 2020 multinational team of scientists published a study, saying that overconsumption is the biggest threat to sustainability. According to the study, a drastic lifestyle change is necessary for solving the ecological crisis. According to one of the authors Julia Steinberger: “To protect ourselves from the worsening climate crisis, we must reduce inequality and challenge the notion that riches, and those who possess them, are inherently good.” The research was published on the site of the World Economic Forum. The leader of the forum professor Klaus Schwab, calls to a "great reset of capitalism". A 2020 study published in Scientific Reports, in which both population growth and deforestation were used as proxies for total resource consumption, warns that if consumption continues at the current rate for the next several decades, it can trigger a full or almost full extinction of humanity. The study says that "while violent events, such as global war or natural catastrophic events, are of immediate concern to everyone, a relatively slow consumption of the planetary resources may be not perceived as strongly as a mortal danger for the human civilization." To avoid it humanity should pass from a civilization dominated by the economy to a "cultural society" that "privileges the interest of the ecosystem above the individual interest of its components, but eventually in accordance with the overall communal interest." The scale of modern life's overconsumption can lead to a decline in economy and an increase in financial instability. Some argue that overconsumption enables the existence of an "overclass", while others disagree with the role of overconsumption in class inequality. Population, Development, and Poverty all coincide with overconsumption; how they interplay with each other is complex. Because of this complexity it is difficult to determine the role of consumption in terms of economic inequality. In the long term, these effects can lead to increased conflict over dwindling resources and in the worst case a Malthusian catastrophe. Lester Brown of the Earth Policy Institute, has said: "It would take 1.5 Earths to sustain our present level of consumption. Environmentally, the world is in an overshoot mode." As of 2012, the United States alone was using 30% of the world's resources and if everyone were to consume at that rate, we would need 3-5 planets to sustain this type of living. Resources are quickly becoming depleted, with about ⅓ already gone. With new consumer markets rising in the developing countries which account for a much higher percentage of the world's population, this number can only rise. According to Sierra Club’s Dave Tilford, "With less than 5 percent of world population, the U.S. uses one-third of the world’s paper, a quarter of the world’s oil, 23 percent of the coal, 27 percent of the aluminum, and 19 percent of the copper." According to BBC, a World Bank study has found that "Americans produce 16.5 tonnes of carbon dioxide per capita every year. By comparison, only 0.1 tonnes of the greenhouse gas is generated in Ethiopia per inhabitant." A 2021 study published in Frontiers in Conservation Science posits that aggregate consumption growth will continue into the near future and perhaps beyond, largely due to increasing affluence and population growth. The authors argue that "there is no way—ethically or otherwise (barring extreme and unprecedented increases in human mortality)—to avoid rising human numbers and the accompanying overconsumption", although they do say that the negative impacts of overconsumption can perhaps be diminished by implementing human rights policies to lower fertility rates and decelerate current consumption patterns. Effects on health A report from the Lancet Commission says the same. The experts write: "Until now, undernutrition and obesity have been seen as polar opposites of either too few or too many calories," "In reality, they are both driven by the same unhealthy, inequitable food systems, underpinned by the same political economy that is single-focused on economic growth, and ignores the negative health and equity outcomes. Climate change has the same story of profits and power,". Obesity was a medical problem for people who overconsumed food and worked too little already in ancient Rome, and its impact slowly grew through history. As to 2012, mortality from obesity was 3 times larger than from hunger, reaching 2.8 million people per year by 2017 Overuse of artificial energy, for example, in cars, hurts health and the planet. Promoting active living and reducing sedentary lifestyle, for example, by cycling, reduces greenhouse gas emissions and improve health Global estimates In 2010, the International Resource Panel published the first global scientific assessment on the impacts of consumption and production. The study found that the most critical impacts are related to ecosystem health, human health and resource depletion. From a production perspective, it found that fossil-fuel combustion processes, agriculture and fisheries have the most important impacts. Meanwhile, from a final consumption perspective, it found that household consumption related to mobility, shelter, food, and energy-using products causes the majority of life-cycle impacts of consumption. According to the IPCC Fifth Assessment Report, human consumption, with current policy, by the year 2100 will be seven times bigger than in the year 2010. Footprint The idea of overconsumption is also strongly tied to the idea of an ecological footprint. The term "ecological footprint" refers to the "resource accounting framework for measuring human demand on the biosphere." Currently, China, for instance, has a per person ecological footprint roughly half the size of the US, yet has a population that is more than four times the size of the US. It is estimated that if China developed to the level of the United States that world consumption rates would roughly double. Humans, their prevailing growth of demands for livestock and other domestic animals, has added overshoot through domestic animal breeding, keeping, and consumption, especially with the environmentally destructive industrial livestock production. Globalization and modernization have brought Western consumer cultures to countries like China and India, including meat-intensive diets which are supplanting traditional plant-based diets. Between 166 to more than 200 billion land and aquatic animals are consumed by a global population of over 7 billion annually. A 2018 study published in Science postulates that meat consumption is set to increase as the result of human population growth and rising affluence, which will increase greenhouse gas emissions and further reduce biodiversity. Meat consumption needs to be reduced in order to make agriculture sustainable by up to 90% according to a 2018 study published in Nature. 56% of respondents to a 2022 climate survey support a carbon budget system to limit the most climate-damaging consumption (62% of those under 30). Counteractions The most obvious solution to the issue of overconsumption is to simply slow the rate at which materials are becoming depleted. From a capitalistic point of view, less consumption has negative effects on economies and so instead, countries must look to curb consumption rates but also allow for new industries, such as renewable energy and recycling technologies, to flourish and deflect some of the economic burdens. Some movements think that a reduction in consumption in some cases can benefit the economy and society. They think that a fundamental shift in the global economy may be necessary to account for the current change that is taking place or that will need to take place. Movements and lifestyle choices related to stopping overconsumption include: anti-consumerism, freeganism, green economics, ecological economics, degrowth, frugality, downshifting, simple living, minimalism, the slow movement, and thrifting. Many consider the final target of the movements as arriving to a steady-state economy in which the rate of consumption is optimal for health and environment. Recent grassroots movements have been coming up with creative ways to decrease the number of goods we consume. The Freecycle Network is a network of people in one's community that are willing to trade goods for other goods or services. It is a new take on thrifting while still being beneficial to both parties. Other researchers and movements such as the Zeitgeist Movement suggest a new socioeconomic model which, through a structural increase of efficiency, collaboration and locality in production as well as effective sharing, increased modularity, sustainability and optimal design of products, are expected to reduce resource-consumption. Solutions offered include consumers using market forces to influence businesses towards more sustainable manufacturing and products. Another way to reduce consumption is to slow population growth by improving family planning services worldwide. In developing countries, more than 200 million women do not have adequate access. Women's empowerment in these countries will also result in smaller families. See also Energy crisis Artificial demand Collaborative consumption Conspicuous consumption Consumption (economics) Degrowth Effects of the car on societies Environmental studies Externality The Limits to Growth Mottainai Overexploitation Overshoot (population) Peak copper Peak oil Planet of the Humans (film) Preorder economy Santosha (renunciation of the need to acquire) Steady-state economy Surplus: Terrorized into Being Consumers (film) World Scientists' Warning to Humanity References Further reading Fifty Possible Ways to Challenge Over-Commercialism by Albert J. Fritsch, SJ, PhD Why people hate fat Americans by Daniel Ben-Ami External links Mother Pelican A journal of sustainability Optimum Population Trust UN Division for Sustainable Development, Agenda 21, Chapter 4 – "Changing Consumption Patterns" Footprint For Nations The Story of Stuff (video) Energy statistics-Oil Consumption by Country World Energy Use Graph Global GDP by Country Consumerism Waste minimisation Peak oil Population ecology World population Global issues Environmental controversies Environmental social science concepts
```python import pytest class TestSshow: @pytest.mark.complete("sshow -", require_cmd=True) def test_1(self, completion): assert completion ```
Nguyen Thi Bac (1908–1943), also known as Co Bac, was a Vietnamese revolutionary fighter. She is one of the leaders of the Yen Bai mutiny. Biography She was born in 1908 in Tho Xuong Street in Lang Thuong (now Bac Giang City, Bac Giang Province). Her parents are Nguyen Van Cao and Nguyen Thi Luu. Cao was involved in the movement of Đông Kinh Nghĩa Thục (Tonkin Free School), and was exiled to Côn Đảo by the French colonial empire. Under the influence of her father, at the age of 18, she and her biological sister, Nguyen Thi Giang (Cô Giang), joined Nguyen Khac Nhu's Hội Quốc dân dục tài, and later Việt Nam Quốc Dân Đảng, working toward the goal of national independence. In the Yên Bái mutiny, she was assigned by the head of the Communist Party Nguyen Thai Giao to be in charge of propaganda, military logistics and delivery. It was she and other women who delivered bombs from Xuan Lung village (Lam Thao district, Phu Tho province) to the train to Yen Bai to prepare for the February 1930 uprising. The Yen Bai insurrection was unsuccessful, and Cô Bắc and her comrades were arrested and sentenced to five years of probation on 28 March 1930 in Yen Bai. In 1936, she was freed, and with her husband Pham Quang Sau, who was also a member of the Việt Nam Quốc Dân Đảng, opened a shop named Bôvô in Bac Ninh town to make contact with patriots. However, she died early in 1943, at the age of 35. Legacy Nowadays, many streets and schools in Vietnam are named after her. 1908 births 1943 deaths Bắc Giang Việt Nam Quốc Dân Đảng People from Bắc Giang Province
```php <?php namespace Illuminate\Auth; use Illuminate\Auth\Access\Gate; use Illuminate\Support\ServiceProvider; use Illuminate\Contracts\Auth\Access\Gate as GateContract; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; class AuthServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $this->registerAuthenticator(); $this->registerUserResolver(); $this->registerAccessGate(); $this->registerRequestRebindHandler(); } /** * Register the authenticator services. * * @return void */ protected function registerAuthenticator() { $this->app->singleton('auth', function ($app) { // Once the authentication service has actually been requested by the developer // we will set a variable in the application indicating such. This helps us // know that we need to set any queued cookies in the after event later. $app['auth.loaded'] = true; return new AuthManager($app); }); $this->app->singleton('auth.driver', function ($app) { return $app['auth']->driver(); }); } /** * Register a resolver for the authenticated user. * * @return void */ protected function registerUserResolver() { $this->app->bind(AuthenticatableContract::class, function ($app) { return $app['auth']->user(); }); } /** * Register the access gate service. * * @return void */ protected function registerAccessGate() { $this->app->singleton(GateContract::class, function ($app) { return new Gate($app, function () use ($app) { return $app['auth']->user(); }); }); } /** * Register a resolver for the authenticated user. * * @return void */ protected function registerRequestRebindHandler() { $this->app->rebinding('request', function ($app, $request) { $request->setUserResolver(function () use ($app) { return $app['auth']->user(); }); }); } } ```
Centon may refer to: Centon (Battlestar Galactica), a fictional unit of time from the 1978 Battlestar Galactica American television series Centon, a range of photographic equipment sold in the United Kingdom by Jessops
```go // Code generated by protoc-gen-gogo. // source: raft_internal.proto // DO NOT EDIT! package etcdserverpb import ( "fmt" proto "github.com/golang/protobuf/proto" math "math" io "io" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf type RequestHeader struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // username is a username that is associated with an auth token of gRPC connection Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // auth_revision is a revision number of auth.authStore. It is not related to mvcc AuthRevision uint64 `protobuf:"varint,3,opt,name=auth_revision,json=authRevision,proto3" json:"auth_revision,omitempty"` } func (m *RequestHeader) Reset() { *m = RequestHeader{} } func (m *RequestHeader) String() string { return proto.CompactTextString(m) } func (*RequestHeader) ProtoMessage() {} func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{0} } // An InternalRaftRequest is the union of all requests which can be // sent via raft. type InternalRaftRequest struct { Header *RequestHeader `protobuf:"bytes,100,opt,name=header" json:"header,omitempty"` ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` V2 *Request `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"` Range *RangeRequest `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"` Put *PutRequest `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` DeleteRange *DeleteRangeRequest `protobuf:"bytes,5,opt,name=delete_range,json=deleteRange" json:"delete_range,omitempty"` Txn *TxnRequest `protobuf:"bytes,6,opt,name=txn" json:"txn,omitempty"` Compaction *CompactionRequest `protobuf:"bytes,7,opt,name=compaction" json:"compaction,omitempty"` LeaseGrant *LeaseGrantRequest `protobuf:"bytes,8,opt,name=lease_grant,json=leaseGrant" json:"lease_grant,omitempty"` LeaseRevoke *LeaseRevokeRequest `protobuf:"bytes,9,opt,name=lease_revoke,json=leaseRevoke" json:"lease_revoke,omitempty"` Alarm *AlarmRequest `protobuf:"bytes,10,opt,name=alarm" json:"alarm,omitempty"` AuthEnable *AuthEnableRequest `protobuf:"bytes,1000,opt,name=auth_enable,json=authEnable" json:"auth_enable,omitempty"` AuthDisable *AuthDisableRequest `protobuf:"bytes,1011,opt,name=auth_disable,json=authDisable" json:"auth_disable,omitempty"` Authenticate *InternalAuthenticateRequest `protobuf:"bytes,1012,opt,name=authenticate" json:"authenticate,omitempty"` AuthUserAdd *AuthUserAddRequest `protobuf:"bytes,1100,opt,name=auth_user_add,json=authUserAdd" json:"auth_user_add,omitempty"` AuthUserDelete *AuthUserDeleteRequest `protobuf:"bytes,1101,opt,name=auth_user_delete,json=authUserDelete" json:"auth_user_delete,omitempty"` AuthUserGet *AuthUserGetRequest `protobuf:"bytes,1102,opt,name=auth_user_get,json=authUserGet" json:"auth_user_get,omitempty"` AuthUserChangePassword *AuthUserChangePasswordRequest `protobuf:"bytes,1103,opt,name=auth_user_change_password,json=authUserChangePassword" json:"auth_user_change_password,omitempty"` AuthUserGrantRole *AuthUserGrantRoleRequest `protobuf:"bytes,1104,opt,name=auth_user_grant_role,json=authUserGrantRole" json:"auth_user_grant_role,omitempty"` AuthUserRevokeRole *AuthUserRevokeRoleRequest `protobuf:"bytes,1105,opt,name=auth_user_revoke_role,json=authUserRevokeRole" json:"auth_user_revoke_role,omitempty"` AuthUserList *AuthUserListRequest `protobuf:"bytes,1106,opt,name=auth_user_list,json=authUserList" json:"auth_user_list,omitempty"` AuthRoleList *AuthRoleListRequest `protobuf:"bytes,1107,opt,name=auth_role_list,json=authRoleList" json:"auth_role_list,omitempty"` AuthRoleAdd *AuthRoleAddRequest `protobuf:"bytes,1200,opt,name=auth_role_add,json=authRoleAdd" json:"auth_role_add,omitempty"` AuthRoleDelete *AuthRoleDeleteRequest `protobuf:"bytes,1201,opt,name=auth_role_delete,json=authRoleDelete" json:"auth_role_delete,omitempty"` AuthRoleGet *AuthRoleGetRequest `protobuf:"bytes,1202,opt,name=auth_role_get,json=authRoleGet" json:"auth_role_get,omitempty"` AuthRoleGrantPermission *AuthRoleGrantPermissionRequest `protobuf:"bytes,1203,opt,name=auth_role_grant_permission,json=authRoleGrantPermission" json:"auth_role_grant_permission,omitempty"` AuthRoleRevokePermission *AuthRoleRevokePermissionRequest `protobuf:"bytes,1204,opt,name=auth_role_revoke_permission,json=authRoleRevokePermission" json:"auth_role_revoke_permission,omitempty"` } func (m *InternalRaftRequest) Reset() { *m = InternalRaftRequest{} } func (m *InternalRaftRequest) String() string { return proto.CompactTextString(m) } func (*InternalRaftRequest) ProtoMessage() {} func (*InternalRaftRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{1} } type EmptyResponse struct { } func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } func (*EmptyResponse) ProtoMessage() {} func (*EmptyResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{2} } // What is the difference between AuthenticateRequest (defined in rpc.proto) and InternalAuthenticateRequest? // InternalAuthenticateRequest has a member that is filled by etcdserver and shouldn't be user-facing. // For avoiding misusage the field, we have an internal version of AuthenticateRequest. type InternalAuthenticateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // simple_token is generated in API layer (etcdserver/v3_server.go) SimpleToken string `protobuf:"bytes,3,opt,name=simple_token,json=simpleToken,proto3" json:"simple_token,omitempty"` } func (m *InternalAuthenticateRequest) Reset() { *m = InternalAuthenticateRequest{} } func (m *InternalAuthenticateRequest) String() string { return proto.CompactTextString(m) } func (*InternalAuthenticateRequest) ProtoMessage() {} func (*InternalAuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftInternal, []int{3} } func init() { proto.RegisterType((*RequestHeader)(nil), "etcdserverpb.RequestHeader") proto.RegisterType((*InternalRaftRequest)(nil), "etcdserverpb.InternalRaftRequest") proto.RegisterType((*EmptyResponse)(nil), "etcdserverpb.EmptyResponse") proto.RegisterType((*InternalAuthenticateRequest)(nil), "etcdserverpb.InternalAuthenticateRequest") } func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ID != 0 { dAtA[i] = 0x8 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.ID)) } if len(m.Username) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(len(m.Username))) i += copy(dAtA[i:], m.Username) } if m.AuthRevision != 0 { dAtA[i] = 0x18 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRevision)) } return i, nil } func (m *InternalRaftRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ID != 0 { dAtA[i] = 0x8 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.ID)) } if m.V2 != nil { dAtA[i] = 0x12 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.V2.Size())) n1, err := m.V2.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 } if m.Range != nil { dAtA[i] = 0x1a i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Range.Size())) n2, err := m.Range.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 } if m.Put != nil { dAtA[i] = 0x22 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Put.Size())) n3, err := m.Put.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } if m.DeleteRange != nil { dAtA[i] = 0x2a i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.DeleteRange.Size())) n4, err := m.DeleteRange.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 } if m.Txn != nil { dAtA[i] = 0x32 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Txn.Size())) n5, err := m.Txn.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 } if m.Compaction != nil { dAtA[i] = 0x3a i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Compaction.Size())) n6, err := m.Compaction.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 } if m.LeaseGrant != nil { dAtA[i] = 0x42 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.LeaseGrant.Size())) n7, err := m.LeaseGrant.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n7 } if m.LeaseRevoke != nil { dAtA[i] = 0x4a i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.LeaseRevoke.Size())) n8, err := m.LeaseRevoke.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n8 } if m.Alarm != nil { dAtA[i] = 0x52 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Alarm.Size())) n9, err := m.Alarm.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n9 } if m.Header != nil { dAtA[i] = 0xa2 i++ dAtA[i] = 0x6 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Header.Size())) n10, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 } if m.AuthEnable != nil { dAtA[i] = 0xc2 i++ dAtA[i] = 0x3e i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthEnable.Size())) n11, err := m.AuthEnable.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n11 } if m.AuthDisable != nil { dAtA[i] = 0x9a i++ dAtA[i] = 0x3f i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthDisable.Size())) n12, err := m.AuthDisable.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n12 } if m.Authenticate != nil { dAtA[i] = 0xa2 i++ dAtA[i] = 0x3f i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.Authenticate.Size())) n13, err := m.Authenticate.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n13 } if m.AuthUserAdd != nil { dAtA[i] = 0xe2 i++ dAtA[i] = 0x44 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserAdd.Size())) n14, err := m.AuthUserAdd.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n14 } if m.AuthUserDelete != nil { dAtA[i] = 0xea i++ dAtA[i] = 0x44 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserDelete.Size())) n15, err := m.AuthUserDelete.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n15 } if m.AuthUserGet != nil { dAtA[i] = 0xf2 i++ dAtA[i] = 0x44 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserGet.Size())) n16, err := m.AuthUserGet.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n16 } if m.AuthUserChangePassword != nil { dAtA[i] = 0xfa i++ dAtA[i] = 0x44 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserChangePassword.Size())) n17, err := m.AuthUserChangePassword.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n17 } if m.AuthUserGrantRole != nil { dAtA[i] = 0x82 i++ dAtA[i] = 0x45 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserGrantRole.Size())) n18, err := m.AuthUserGrantRole.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n18 } if m.AuthUserRevokeRole != nil { dAtA[i] = 0x8a i++ dAtA[i] = 0x45 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserRevokeRole.Size())) n19, err := m.AuthUserRevokeRole.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n19 } if m.AuthUserList != nil { dAtA[i] = 0x92 i++ dAtA[i] = 0x45 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserList.Size())) n20, err := m.AuthUserList.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n20 } if m.AuthRoleList != nil { dAtA[i] = 0x9a i++ dAtA[i] = 0x45 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleList.Size())) n21, err := m.AuthRoleList.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n21 } if m.AuthRoleAdd != nil { dAtA[i] = 0x82 i++ dAtA[i] = 0x4b i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleAdd.Size())) n22, err := m.AuthRoleAdd.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n22 } if m.AuthRoleDelete != nil { dAtA[i] = 0x8a i++ dAtA[i] = 0x4b i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleDelete.Size())) n23, err := m.AuthRoleDelete.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n23 } if m.AuthRoleGet != nil { dAtA[i] = 0x92 i++ dAtA[i] = 0x4b i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleGet.Size())) n24, err := m.AuthRoleGet.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n24 } if m.AuthRoleGrantPermission != nil { dAtA[i] = 0x9a i++ dAtA[i] = 0x4b i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleGrantPermission.Size())) n25, err := m.AuthRoleGrantPermission.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n25 } if m.AuthRoleRevokePermission != nil { dAtA[i] = 0xa2 i++ dAtA[i] = 0x4b i++ i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleRevokePermission.Size())) n26, err := m.AuthRoleRevokePermission.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n26 } return i, nil } func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l return i, nil } func (m *InternalAuthenticateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *InternalAuthenticateRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Name) > 0 { dAtA[i] = 0xa i++ i = encodeVarintRaftInternal(dAtA, i, uint64(len(m.Name))) i += copy(dAtA[i:], m.Name) } if len(m.Password) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintRaftInternal(dAtA, i, uint64(len(m.Password))) i += copy(dAtA[i:], m.Password) } if len(m.SimpleToken) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintRaftInternal(dAtA, i, uint64(len(m.SimpleToken))) i += copy(dAtA[i:], m.SimpleToken) } return i, nil } func encodeFixed64RaftInternal(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) dAtA[offset+1] = uint8(v >> 8) dAtA[offset+2] = uint8(v >> 16) dAtA[offset+3] = uint8(v >> 24) dAtA[offset+4] = uint8(v >> 32) dAtA[offset+5] = uint8(v >> 40) dAtA[offset+6] = uint8(v >> 48) dAtA[offset+7] = uint8(v >> 56) return offset + 8 } func encodeFixed32RaftInternal(dAtA []byte, offset int, v uint32) int { dAtA[offset] = uint8(v) dAtA[offset+1] = uint8(v >> 8) dAtA[offset+2] = uint8(v >> 16) dAtA[offset+3] = uint8(v >> 24) return offset + 4 } func encodeVarintRaftInternal(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } func (m *RequestHeader) Size() (n int) { var l int _ = l if m.ID != 0 { n += 1 + sovRaftInternal(uint64(m.ID)) } l = len(m.Username) if l > 0 { n += 1 + l + sovRaftInternal(uint64(l)) } if m.AuthRevision != 0 { n += 1 + sovRaftInternal(uint64(m.AuthRevision)) } return n } func (m *InternalRaftRequest) Size() (n int) { var l int _ = l if m.ID != 0 { n += 1 + sovRaftInternal(uint64(m.ID)) } if m.V2 != nil { l = m.V2.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.Range != nil { l = m.Range.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.Put != nil { l = m.Put.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.DeleteRange != nil { l = m.DeleteRange.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.Txn != nil { l = m.Txn.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.Compaction != nil { l = m.Compaction.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.LeaseGrant != nil { l = m.LeaseGrant.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.LeaseRevoke != nil { l = m.LeaseRevoke.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.Alarm != nil { l = m.Alarm.Size() n += 1 + l + sovRaftInternal(uint64(l)) } if m.Header != nil { l = m.Header.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthEnable != nil { l = m.AuthEnable.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthDisable != nil { l = m.AuthDisable.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.Authenticate != nil { l = m.Authenticate.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserAdd != nil { l = m.AuthUserAdd.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserDelete != nil { l = m.AuthUserDelete.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserGet != nil { l = m.AuthUserGet.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserChangePassword != nil { l = m.AuthUserChangePassword.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserGrantRole != nil { l = m.AuthUserGrantRole.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserRevokeRole != nil { l = m.AuthUserRevokeRole.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthUserList != nil { l = m.AuthUserList.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthRoleList != nil { l = m.AuthRoleList.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthRoleAdd != nil { l = m.AuthRoleAdd.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthRoleDelete != nil { l = m.AuthRoleDelete.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthRoleGet != nil { l = m.AuthRoleGet.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthRoleGrantPermission != nil { l = m.AuthRoleGrantPermission.Size() n += 2 + l + sovRaftInternal(uint64(l)) } if m.AuthRoleRevokePermission != nil { l = m.AuthRoleRevokePermission.Size() n += 2 + l + sovRaftInternal(uint64(l)) } return n } func (m *EmptyResponse) Size() (n int) { var l int _ = l return n } func (m *InternalAuthenticateRequest) Size() (n int) { var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovRaftInternal(uint64(l)) } l = len(m.Password) if l > 0 { n += 1 + l + sovRaftInternal(uint64(l)) } l = len(m.SimpleToken) if l > 0 { n += 1 + l + sovRaftInternal(uint64(l)) } return n } func sovRaftInternal(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozRaftInternal(x uint64) (n int) { return sovRaftInternal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *RequestHeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: RequestHeader: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } m.ID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ID |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Username = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRevision", wireType) } m.AuthRevision = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.AuthRevision |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipRaftInternal(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthRaftInternal } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *InternalRaftRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: InternalRaftRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: InternalRaftRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } m.ID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ID |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field V2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.V2 == nil { m.V2 = &Request{} } if err := m.V2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Range == nil { m.Range = &RangeRequest{} } if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Put", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Put == nil { m.Put = &PutRequest{} } if err := m.Put.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DeleteRange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.DeleteRange == nil { m.DeleteRange = &DeleteRangeRequest{} } if err := m.DeleteRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Txn == nil { m.Txn = &TxnRequest{} } if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Compaction", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Compaction == nil { m.Compaction = &CompactionRequest{} } if err := m.Compaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LeaseGrant", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.LeaseGrant == nil { m.LeaseGrant = &LeaseGrantRequest{} } if err := m.LeaseGrant.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LeaseRevoke", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.LeaseRevoke == nil { m.LeaseRevoke = &LeaseRevokeRequest{} } if err := m.LeaseRevoke.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Alarm == nil { m.Alarm = &AlarmRequest{} } if err := m.Alarm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 100: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Header == nil { m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1000: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthEnable", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthEnable == nil { m.AuthEnable = &AuthEnableRequest{} } if err := m.AuthEnable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1011: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthDisable", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthDisable == nil { m.AuthDisable = &AuthDisableRequest{} } if err := m.AuthDisable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1012: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Authenticate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.Authenticate == nil { m.Authenticate = &InternalAuthenticateRequest{} } if err := m.Authenticate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1100: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserAdd", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserAdd == nil { m.AuthUserAdd = &AuthUserAddRequest{} } if err := m.AuthUserAdd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1101: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserDelete", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserDelete == nil { m.AuthUserDelete = &AuthUserDeleteRequest{} } if err := m.AuthUserDelete.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1102: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserGet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserGet == nil { m.AuthUserGet = &AuthUserGetRequest{} } if err := m.AuthUserGet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1103: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserChangePassword", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserChangePassword == nil { m.AuthUserChangePassword = &AuthUserChangePasswordRequest{} } if err := m.AuthUserChangePassword.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1104: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserGrantRole", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserGrantRole == nil { m.AuthUserGrantRole = &AuthUserGrantRoleRequest{} } if err := m.AuthUserGrantRole.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1105: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserRevokeRole", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserRevokeRole == nil { m.AuthUserRevokeRole = &AuthUserRevokeRoleRequest{} } if err := m.AuthUserRevokeRole.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1106: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthUserList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthUserList == nil { m.AuthUserList = &AuthUserListRequest{} } if err := m.AuthUserList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1107: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthRoleList == nil { m.AuthRoleList = &AuthRoleListRequest{} } if err := m.AuthRoleList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1200: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleAdd", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthRoleAdd == nil { m.AuthRoleAdd = &AuthRoleAddRequest{} } if err := m.AuthRoleAdd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1201: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleDelete", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthRoleDelete == nil { m.AuthRoleDelete = &AuthRoleDeleteRequest{} } if err := m.AuthRoleDelete.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1202: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleGet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthRoleGet == nil { m.AuthRoleGet = &AuthRoleGetRequest{} } if err := m.AuthRoleGet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1203: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleGrantPermission", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthRoleGrantPermission == nil { m.AuthRoleGrantPermission = &AuthRoleGrantPermissionRequest{} } if err := m.AuthRoleGrantPermission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 1204: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleRevokePermission", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.AuthRoleRevokePermission == nil { m.AuthRoleRevokePermission = &AuthRoleRevokePermissionRequest{} } if err := m.AuthRoleRevokePermission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRaftInternal(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthRaftInternal } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *EmptyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: EmptyResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: EmptyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipRaftInternal(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthRaftInternal } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *InternalAuthenticateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: InternalAuthenticateRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: InternalAuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Password = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SimpleToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRaftInternal } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthRaftInternal } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.SimpleToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRaftInternal(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthRaftInternal } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipRaftInternal(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRaftInternal } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRaftInternal } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRaftInternal } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } iNdEx += length if length < 0 { return 0, ErrInvalidLengthRaftInternal } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRaftInternal } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } innerWireType := int(innerWire & 0x7) if innerWireType == 4 { break } next, err := skipRaftInternal(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthRaftInternal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRaftInternal = fmt.Errorf("proto: integer overflow") ) func init() { proto.RegisterFile("raft_internal.proto", fileDescriptorRaftInternal) } var fileDescriptorRaftInternal = []byte{ // 837 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x96, 0xdd, 0x52, 0xd3, 0x40, 0x14, 0xc7, 0x69, 0xf9, 0xec, 0xb6, 0x54, 0x5c, 0x40, 0xd7, 0x32, 0x53, 0xa1, 0x8c, 0x8a, 0x5f, 0xe8, 0x94, 0x07, 0xd0, 0x4a, 0x19, 0x60, 0x86, 0x61, 0x98, 0x0c, 0xce, 0x38, 0xe3, 0x45, 0x5c, 0x9a, 0x43, 0x1b, 0x49, 0x93, 0xb8, 0xd9, 0x56, 0x7c, 0x13, 0x1f, 0xc3, 0xaf, 0x87, 0xe0, 0xc2, 0x0f, 0xd4, 0x17, 0x50, 0xbc, 0xf1, 0xca, 0x1b, 0x7d, 0x00, 0x67, 0x3f, 0x92, 0x34, 0x6d, 0xca, 0x5d, 0x72, 0xce, 0xff, 0xfc, 0xce, 0xd9, 0xec, 0x7f, 0xbb, 0x45, 0xb3, 0x8c, 0x1e, 0x72, 0xd3, 0x76, 0x39, 0x30, 0x97, 0x3a, 0xab, 0x3e, 0xf3, 0xb8, 0x87, 0x0b, 0xc0, 0x1b, 0x56, 0x00, 0xac, 0x0b, 0xcc, 0x3f, 0x28, 0xcd, 0x35, 0xbd, 0xa6, 0x27, 0x13, 0xf7, 0xc4, 0x93, 0xd2, 0x94, 0x66, 0x62, 0x8d, 0x8e, 0xe4, 0x98, 0xdf, 0x50, 0x8f, 0x95, 0x67, 0x68, 0xda, 0x80, 0x17, 0x1d, 0x08, 0xf8, 0x16, 0x50, 0x0b, 0x18, 0x2e, 0xa2, 0xec, 0x76, 0x9d, 0x64, 0x16, 0x33, 0x2b, 0x63, 0x46, 0x76, 0xbb, 0x8e, 0x4b, 0x68, 0xaa, 0x13, 0x88, 0x96, 0x6d, 0x20, 0xd9, 0xc5, 0xcc, 0x4a, 0xce, 0x88, 0xde, 0xf1, 0x32, 0x9a, 0xa6, 0x1d, 0xde, 0x32, 0x19, 0x74, 0xed, 0xc0, 0xf6, 0x5c, 0x32, 0x2a, 0xcb, 0x0a, 0x22, 0x68, 0xe8, 0x58, 0xe5, 0x4f, 0x11, 0xcd, 0x6e, 0xeb, 0xa9, 0x0d, 0x7a, 0xc8, 0x75, 0xbb, 0x81, 0x46, 0xd7, 0x50, 0xb6, 0x5b, 0x95, 0x2d, 0xf2, 0xd5, 0xf9, 0xd5, 0xde, 0x75, 0xad, 0xea, 0x12, 0x23, 0xdb, 0xad, 0xe2, 0xfb, 0x68, 0x9c, 0x51, 0xb7, 0x09, 0xb2, 0x57, 0xbe, 0x5a, 0xea, 0x53, 0x8a, 0x54, 0x28, 0x57, 0x42, 0x7c, 0x0b, 0x8d, 0xfa, 0x1d, 0x4e, 0xc6, 0xa4, 0x9e, 0x24, 0xf5, 0x7b, 0x9d, 0x70, 0x1e, 0x43, 0x88, 0xf0, 0x3a, 0x2a, 0x58, 0xe0, 0x00, 0x07, 0x53, 0x35, 0x19, 0x97, 0x45, 0x8b, 0xc9, 0xa2, 0xba, 0x54, 0x24, 0x5a, 0xe5, 0xad, 0x38, 0x26, 0x1a, 0xf2, 0x63, 0x97, 0x4c, 0xa4, 0x35, 0xdc, 0x3f, 0x76, 0xa3, 0x86, 0xfc, 0xd8, 0xc5, 0x0f, 0x10, 0x6a, 0x78, 0x6d, 0x9f, 0x36, 0xb8, 0xf8, 0x7e, 0x93, 0xb2, 0xe4, 0x6a, 0xb2, 0x64, 0x3d, 0xca, 0x87, 0x95, 0x3d, 0x25, 0xf8, 0x21, 0xca, 0x3b, 0x40, 0x03, 0x30, 0x9b, 0x8c, 0xba, 0x9c, 0x4c, 0xa5, 0x11, 0x76, 0x84, 0x60, 0x53, 0xe4, 0x23, 0x82, 0x13, 0x85, 0xc4, 0x9a, 0x15, 0x81, 0x41, 0xd7, 0x3b, 0x02, 0x92, 0x4b, 0x5b, 0xb3, 0x44, 0x18, 0x52, 0x10, 0xad, 0xd9, 0x89, 0x63, 0x62, 0x5b, 0xa8, 0x43, 0x59, 0x9b, 0xa0, 0xb4, 0x6d, 0xa9, 0x89, 0x54, 0xb4, 0x2d, 0x52, 0x88, 0xd7, 0xd0, 0x44, 0x4b, 0x5a, 0x8e, 0x58, 0xb2, 0x64, 0x21, 0x75, 0xcf, 0x95, 0x2b, 0x0d, 0x2d, 0xc5, 0x35, 0x94, 0x97, 0x8e, 0x03, 0x97, 0x1e, 0x38, 0x40, 0x7e, 0xa7, 0x7e, 0xb0, 0x5a, 0x87, 0xb7, 0x36, 0xa4, 0x20, 0x5a, 0x2e, 0x8d, 0x42, 0xb8, 0x8e, 0xa4, 0x3f, 0x4d, 0xcb, 0x0e, 0x24, 0xe3, 0xef, 0x64, 0xda, 0x7a, 0x05, 0xa3, 0xae, 0x14, 0xd1, 0x7a, 0x69, 0x1c, 0xc3, 0xbb, 0x8a, 0x02, 0x2e, 0xb7, 0x1b, 0x94, 0x03, 0xf9, 0xa7, 0x28, 0x37, 0x93, 0x94, 0xd0, 0xf7, 0xb5, 0x1e, 0x69, 0x88, 0x4b, 0xd4, 0xe3, 0x0d, 0x7d, 0x94, 0xc4, 0xd9, 0x32, 0xa9, 0x65, 0x91, 0x8f, 0x53, 0xc3, 0xc6, 0x7a, 0x1c, 0x00, 0xab, 0x59, 0x56, 0x62, 0x2c, 0x1d, 0xc3, 0xbb, 0x68, 0x26, 0xc6, 0x28, 0x4f, 0x92, 0x4f, 0x8a, 0xb4, 0x9c, 0x4e, 0xd2, 0x66, 0xd6, 0xb0, 0x22, 0x4d, 0x84, 0x93, 0x63, 0x35, 0x81, 0x93, 0xcf, 0xe7, 0x8e, 0xb5, 0x09, 0x7c, 0x60, 0xac, 0x4d, 0xe0, 0xb8, 0x89, 0xae, 0xc4, 0x98, 0x46, 0x4b, 0x9c, 0x12, 0xd3, 0xa7, 0x41, 0xf0, 0xd2, 0x63, 0x16, 0xf9, 0xa2, 0x90, 0xb7, 0xd3, 0x91, 0xeb, 0x52, 0xbd, 0xa7, 0xc5, 0x21, 0xfd, 0x12, 0x4d, 0x4d, 0xe3, 0x27, 0x68, 0xae, 0x67, 0x5e, 0x61, 0x6f, 0x93, 0x79, 0x0e, 0x90, 0x53, 0xd5, 0xe3, 0xfa, 0x90, 0xb1, 0xe5, 0xd1, 0xf0, 0xe2, 0xad, 0xbe, 0x48, 0xfb, 0x33, 0xf8, 0x29, 0x9a, 0x8f, 0xc9, 0xea, 0xa4, 0x28, 0xf4, 0x57, 0x85, 0xbe, 0x91, 0x8e, 0xd6, 0x47, 0xa6, 0x87, 0x8d, 0xe9, 0x40, 0x0a, 0x6f, 0xa1, 0x62, 0x0c, 0x77, 0xec, 0x80, 0x93, 0x6f, 0x8a, 0xba, 0x94, 0x4e, 0xdd, 0xb1, 0x03, 0x9e, 0xf0, 0x51, 0x18, 0x8c, 0x48, 0x62, 0x34, 0x45, 0xfa, 0x3e, 0x94, 0x24, 0x5a, 0x0f, 0x90, 0xc2, 0x60, 0xb4, 0xf5, 0x92, 0x24, 0x1c, 0xf9, 0x26, 0x37, 0x6c, 0xeb, 0x45, 0x4d, 0xbf, 0x23, 0x75, 0x2c, 0x72, 0xa4, 0xc4, 0x68, 0x47, 0xbe, 0xcd, 0x0d, 0x73, 0xa4, 0xa8, 0x4a, 0x71, 0x64, 0x1c, 0x4e, 0x8e, 0x25, 0x1c, 0xf9, 0xee, 0xdc, 0xb1, 0xfa, 0x1d, 0xa9, 0x63, 0xf8, 0x39, 0x2a, 0xf5, 0x60, 0xa4, 0x51, 0x7c, 0x60, 0x6d, 0x3b, 0x90, 0xf7, 0xd8, 0x7b, 0xc5, 0xbc, 0x33, 0x84, 0x29, 0xe4, 0x7b, 0x91, 0x3a, 0xe4, 0x5f, 0xa6, 0xe9, 0x79, 0xdc, 0x46, 0x0b, 0x71, 0x2f, 0x6d, 0x9d, 0x9e, 0x66, 0x1f, 0x54, 0xb3, 0xbb, 0xe9, 0xcd, 0x94, 0x4b, 0x06, 0xbb, 0x11, 0x3a, 0x44, 0x50, 0xb9, 0x80, 0xa6, 0x37, 0xda, 0x3e, 0x7f, 0x65, 0x40, 0xe0, 0x7b, 0x6e, 0x00, 0x15, 0x1f, 0x2d, 0x9c, 0xf3, 0x43, 0x84, 0x31, 0x1a, 0x93, 0xb7, 0x7b, 0x46, 0xde, 0xee, 0xf2, 0x59, 0xdc, 0xfa, 0xd1, 0xf9, 0xd4, 0xb7, 0x7e, 0xf8, 0x8e, 0x97, 0x50, 0x21, 0xb0, 0xdb, 0xbe, 0x03, 0x26, 0xf7, 0x8e, 0x40, 0x5d, 0xfa, 0x39, 0x23, 0xaf, 0x62, 0xfb, 0x22, 0xf4, 0x68, 0xee, 0xe4, 0x67, 0x79, 0xe4, 0xe4, 0xac, 0x9c, 0x39, 0x3d, 0x2b, 0x67, 0x7e, 0x9c, 0x95, 0x33, 0xaf, 0x7f, 0x95, 0x47, 0x0e, 0x26, 0xe4, 0x5f, 0x8e, 0xb5, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xc9, 0xfc, 0x0e, 0xca, 0x08, 0x00, 0x00, } ```
Night Rider is a 1978 album by Oscar Peterson and Count Basie. Track listing "Night Rider" (Oscar Peterson) - 12:38 "Memories of You" (Eubie Blake, Andy Razaf) - 4:55 "9:20 Special" (William Engvick, Earle Warren) - 3:16 "Sweet Lorraine" (Cliff Burwell, Mitchell Parish) - 7:03 "It's a Wonderful World" (Harold Adamson, Jan Savitt, Johnny Watson) - 3:17 "Blues for Pamela" (Count Basie, Peterson) - 8:06 Personnel Recorded February 21, 22, 1978 in Los Angeles: Count Basie - piano, organ Oscar Peterson - piano Louie Bellson - drums John Heard - double bass Nat Hentoff - liner notes Val Valentin - engineer Greg Fulginiti - mastering Norman Granz - producer References 1978 albums Count Basie albums Oscar Peterson albums Pablo Records albums Albums produced by Norman Granz
```javascript import styled from 'styled-components'; const Test = styled.div.withConfig({ displayName: "Test", componentId: "sc-1cza72q-0" })`width:100%;`; const Test2 = true ? styled.div.withConfig({ displayName: "Test2", componentId: "sc-1cza72q-1" })`` : styled.div.withConfig({ displayName: "Test2", componentId: "sc-1cza72q-2" })``; const styles = { One: styled.div.withConfig({ displayName: "One", componentId: "sc-1cza72q-3" })`` }; let Component; Component = styled.div.withConfig({ displayName: "Component", componentId: "sc-1cza72q-4" })``; const WrappedComponent = styled(Inner).withConfig({ displayName: "WrappedComponent", componentId: "sc-1cza72q-5" })``; const WrappedComponent2 = styled.div.withConfig({ displayName: "WrappedComponent2", componentId: "sc-1cza72q-6" })({}); const WrappedComponent3 = styled(Inner).withConfig({ displayName: "WrappedComponent3", componentId: "sc-1cza72q-7" })({}); const WrappedComponent4 = styled(Inner).attrs(() => ({ something: 'else' })).withConfig({ displayName: "WrappedComponent4", componentId: "sc-1cza72q-8" })({}); const WrappedComponent5 = styled.div.attrs(() => ({ something: 'else' })).withConfig({ displayName: "WrappedComponent5", componentId: "sc-1cza72q-9" })({}); const WrappedComponent6 = styled.div.attrs(() => ({ something: 'else' })).withConfig({ displayName: "WrappedComponent6", componentId: "sc-1cza72q-10" })``; const WrappedComponent7 = styled.div.withConfig({ shouldForwardProp: () => {}, displayName: "WrappedComponent7", componentId: "sc-1cza72q-11" })({}); const WrappedComponent8 = styled.div.withConfig({ shouldForwardProp: () => {}, displayName: "WrappedComponent8", componentId: "sc-1cza72q-12" }).attrs(() => ({ something: 'else' }))({}); const WrappedComponent9 = styled.div.attrs(() => ({ something: 'else' })).withConfig({ shouldForwardProp: () => {}, displayName: "WrappedComponent9", componentId: "sc-1cza72q-13" })({}); ```
```xml export interface IIconPickerState { items: string[]; currentIcon?: string; isPanelOpen: boolean; } ```
Half Ton class was an offshore sailing class of the International Offshore Rule racing the Half Ton Cup between 1967 and 1993. History In order that yachts of different types can race against each other, there are handicap rules which are applied to differect boat designs. The Half Ton Class was created by the Offshore Racing Council for boats within the racing band not exceeding 22'-0". The ORC decided that the rule should "....permit the development of seaworthy offshore racing yachts...The Council will endeavour to protect the majority of the existing IOR fleet from rapid obsolescence caused by ....developments which produce increased performance without corresponding changes in ratings..." When first introduced the IOR rule was perfectly adequate for rating boats in existence at that time. However yacht designers naturally examined the rule to seize upon any advantage they could find, the most noticeable of which has been a reduction in displacement and a return to fractional rigs. After 1993, when the IOR Mk.III rule reached it termination due to lack of people building new boats, the rule was replaced by the CHS (Channel) Handicap system which in turn developed into the IRC system now used. The IRC handicap system operates by a secret formula which tries to develop boats which are 'Cruising type' of relatively heavy boats with good internal accommodation. It tends to penalise boats with excessive stability or excessive sail area. Competitions The most significant events for the Half Ton Class has been the annual Half Ton Cup which was sailed under the IOR rules until 1993. More recently this has been replaced with the Half Ton Classics Cup. The venue of the event moved from continent to continent with over-representation on French or British ports. In latter years the event is held Biannually. Initially it was proposed to hold events in Ireland, Britain and France by rotation. However it was the Belgians who took the ball and ran with it. The Class is now managed from Belgium. The next event will be held in Ireland for the second time in Kinsale, Co. Cork. Numerous IOR rated 1/2 tonne boats during the period this class competed also raced in classic offshore races including the world renowned Sydney to Hobart. Half Ton Cup The Half Ton class racing the Half Ton Cup between 1967 and 1993. Half Ton Classics Cup The idea of holding a Half Ton Classics Cup first arose at Cork Week in 2000 when the Crew of 'Sibelius' (FRA) including Didier Dardot and his wife and the crew of 'SpACE Odyssey' (IRL) including Shay Moran, Enda Connellan, Terry Madigan and Vincent Delany agreed that it would be a great idea to organiser a bi-annual event for Half Tonners under the IRC handicap system with the venue rotating between France, England and Ireland. In fact Didier Dardot was unable to persuade La Trinite or any other French clubs to organise the first event. However the Half Ton enthusiasts of Nieupoort organised the first event in Belgium. By 2017 it was evident that only expensively optimised boats were capable of winning the Half Ton Classics Cup. Without mentioning names- these boats were stripped down to the original hull, with new decks, deck hardware, keels, rigs and sails. Owners of boats which were not so rebuilt contented themselves with the status of the 'mid fleet club'. Thus numbers competing declined. Criteria Note 1. Boats must have been designed as IOR boats during the period 1967-1992. Note 2. Boats may be modified, but the hulls must be original. Note 3. Keels and rudders may be modified. Note 4. Rigs may be modified. Note 5. Boats race under the IRC handicap system. Past winners 2003. 24 entries -Nieuwpoort - 'General Tapioca' - Berret prototype 1978. Timber. Fractional rig. Fin and bulb keel. 2005. 30 entries -Dinard - 'Ginko' - Mauric production 1968. Super Challenger. Masthead rig. 2007. 25 entries- Dún Laoghaire - 'Henry Lloyd Harmony' - Humphreys prototype 1980. Timber. Swept back fractional rig. 2009. 23 entries- Nieuwpoort - 'General Tapioca' - Berret prototype 1978. Timber. Fractional rig. Fin and bulb keel. 2011. 38 entries -Cowes - 'Chimp' - Berret prototype 1978. Timber. Swept back fractional rig. 9.4m. o/a. 2013. 29 entries - (Boulogne sur Mer) - 'Checkmate' - Humphreys production MGHS30. 1985 Epoxy sandwich construction?. Swept back fractional rig. Fin keel without bulb.(Similar rig to Henry Lloyd Harmony) From 2013 Championship held annually: 2014. 22 entries-St.Quay Portrieux, Brittany- 'Swuzzlebubble' - Bruce Farr 1977, two-off Plywood construction. Much modified by Mark Mills with new low V.C.G. lead keel without a bulb, and with laminar flow keel section with hollow trailing edge, swept back fractional rig with wide shroud base, non-overlapping jibs etc. 2015. 22 entries - (Nieuwpoort, Belgium) - 'Checkmate'- Humphreys production MGHS30. 1985. seriously modified with new cockpit and modifications listed above. 2016. 20 entries (Falmouth, Cornwall, England.) 'Swuzzlebubble' - Bruce Farr 1977. 2017. 21 entries (Kinsale, Co. Cork, Ireland.) 'Swuzzlebubble' - Bruce Farr 1977 modified 2015? Owned by Phil Plumtree. 2018. 19 entries (Nieuwpoort, Belgium) 'Checkmate XV' highly modified Humphreys MGHS30 owned by Dave Cullen, Howth Yacht Club 2020. Half Ton Classics Cup cancelled due to international virus. Designers The most successful or popular designs were prepared by the following designers David Andrieu (FRA) Georg Nissen (DEU) Play and Loss Laurie Davidson (NZL) Doug Peterson(USA) Jean Berret (FRA) - 'Chimp' etc. Tony Castro.(POR) Ed Dubois (GBR) Bruce Farr (NZ) - 'Swuzzlebubble' etc. Jacques Fauroux (FRA) Groupe Finot (FRA) Giles Gahinet (FRA) Ron Holland (Ireland) Michel Joubert (FRA)- 'SpAce Odyssey' etc.. Georg Nissen Peter Norlin (SWE)- 'Scampi' etc.. Rob Humphreys (GBR)- 'MGHS30' etc. Stephen Jones (GBR) Andre Mauric (FRA) Bernt Andersson (SWE) Håkan Södergren (SWE) David Thomas (GBR) Van de Stadt (NED) Judel Vrolijk (NED) Hugh Welbourn (GBR)- 'Chia Chia' Paul Whiting (NZ) Ron Swanson (Aus) Boats Boats designed for the competition include: See also Mini Ton class Quarter Ton class Three-Quarter Ton class One Ton class Two Ton class Midget Ocean Racing Club References External links http://www.belgi.net/halfton/ http://www.histoiredeshalfs.com/ Keelboats Development sailing classes
Bernard Harper Friedman (July 27, 1926 – January 4, 2011), better known by his initials, "B. H.," or known as Bob to his friends was an American author and art critic who wrote biographies of Jackson Pollock and Gertrude Vanderbilt Whitney, a number of novels that combined his experiences in the worlds of art and business, and an autobiographical account of his use of psychedelic drugs with Timothy Leary. Studies Friedman was born on July 27, 1926, in Manhattan, New York City, the son of Leonard and Madeline Copland (Uris) Friedman. He enrolled at Cornell University before enlisting in the United States Navy during World War II, serving from 1944 to 1946. He returned to Cornell after completing his military service and earned his undergraduate degree in literature in 1948. He married his second cousin, Abby Noselson, in 1948, while they were in college. Early career Friedman went into the real estate business owned by his uncles Percy Uris and Harold Uris, working his way up to become a director of the Uris Buildings Corporation. After publishing his first novel — Circles (1962), a story based on life in the art world in New York City and The Hamptons — he left the real estate business to focus on his writing. Writings He was an early collector of Pollock’s work, and he also became a friend of Pollock and Lee Krasner. He wrote the introduction to the exhibition of Lee Krasner in 1958 at the Martha Jackson Gallery exhibition: "In looking at these paintings (the earth series), listening to them, feeling them, I know that this work - Lee Krasner's most mature and personal, as well as most joyous and positive, to date - was done entirely in the last year and a half, a period of profound sorrow for the artist.  The paintings are a stunning affirmation of life." Jackson Pollock: Energy Made Visible (1972) is considered to be the first biography of the artist; reviewing it for The New York Times, Hilton Kramer called it "a book that everyone interested in the social history of modern art will want to read." Frustrated by perceived snubs from the major book-publishing firms, Friedman joined other authors, such as Mark Jay Mirsky and Ronald Sukenick, to form the Fiction Collective in 1974, a not-for-profit publishing group whose goals were to "make serious novels and story collections available in simultaneous hard and quality paper editions" and to "keep them in print permanently." His 1978 book, Gertrude Vanderbilt Whitney: A Biography, provided an account of the life of the artist, art collector and patron of the arts. His autobiographical account, Tripping (2006), recounts his experiences using psychedelic drugs with Timothy Leary. Friedman died in Manhattan at the age of 84, on January 4, 2011, of pneumonia. He was survived by a daughter, a son and two grandchildren. His wife died in 2003. His younger brother, novelist Sanford Friedman, was born in 1928 and died in 2010. Novels Circles (1962), Fleet Publishing, New York. Yarborough (1964), World Publishing, Cleveland. Whispers (1971), Ithaca House, New York. Museum (1974), Fiction Collective, New York. Almost a Life (1975), Viking Press, New York. The Polygamist (1981), Little, Brown, Boston. My Case Rests (2009), Provincetown Arts Press, Provincetown. Short Fiction Coming Close: A Novella and Three Stories as Alternative Biographies (1982), Fiction Collective, New York. Between the Flags: Uncollected Stories 1948-1990 (1990), Fiction Collective, New York. Swimming Laps: Stories and Meditations (1999), Edgewise, New York. Non-Fiction School of New York: Some Younger Artists (1959), Grove Press, New York. Alfonso Ossorio (1965), H.N. Abrams, New York. Jackson Pollock: Energy Made Visible (1972), McGraw-Hill, New York. Gertrude Vanderbilt Whitney: A Biography (1978), Doubleday, New York. Tripping: A Memoir of Timothy Leary (2006), Provincetown Arts Press, Provincetown. Drama Heart of a Boy (1994), Center for Book Arts, New York. References 1926 births 2011 deaths 20th-century American novelists American art critics American male biographers American male novelists United States Navy personnel of World War II American real estate businesspeople Cornell University alumni Deaths from pneumonia in New York City Jewish American novelists Writers from Manhattan 20th-century American biographers Journalists from New York City 20th-century American male writers Novelists from New York (state) Historians from New York (state) 21st-century American Jews
```smalltalk // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.TemplateEngine.Abstractions { /// <summary> /// Stores info about template creation, to be returned to the host as the result of template instantiation or dry run. /// </summary> public interface ICreationResult { /// <summary> /// Gets post actions to be done by the host. /// </summary> IReadOnlyList<IPostAction> PostActions { get; } /// <summary> /// Gets the primary outputs of template instantiation. /// These are the files that post actions should be applied on. /// </summary> IReadOnlyList<ICreationPath> PrimaryOutputs { get; } } } ```
Daniil Sergeevich Barantsev (; born March 10, 1982) is a Russian-American former competitive ice dancer. With partner and wife Jennifer Wester, he is the 2007 Nebelhorn Trophy champion. He is a two-time (2000, 2001) World Junior champion with earlier partner Natalia Romaniuta. Personal life Daniil Barantsev was born March 10, 1982, in Yekaterinburg, Russian SFSR. He has a younger sister, Maria. He moved to the United States in 2002. Barantsev married Jennifer Wester on May 6, 2006. They have two sons, Anden Daniel Barantsev, born on December 29, 2011, and Devin, born in July 2014. He now lives and works in Dallas, Texas. Career For Russia Barantsev began skating at age four and was coached by Alexei Gorshkov from 1994 to 2002. He competed in singles from 1986 to 1997, competing through the Junior level equivalent of USFigureSkating under the Russian system. He teamed up with Natalia Romaniuta in 1996. They began competing on the ISU Junior Grand Prix Series in 1997, winning a silver medal and placing 4th at their two events. They qualified for their first ISU Junior Grand Prix Final, where they finished 5th. They placed 7th in their first appearance at the World Junior Championships. In 1997, Barantsev dropped his competitive track in singles skating to pursue goals in the partnered discipline of ice dance under the direction of the Russian system of development. The following season, Romaniuta/Barantsev won gold and silver on JGP series and qualified for their second Final, where they took the bronze medal. They finished their season with bronze at the 1999 World Junior Championships. In 1999–2000, Romaniuta/Barantsev won gold in every junior-level they entered, including the JGP Final and the 2000 World Junior Championships. They also made their senior international debut at the 2000 World Championships in Nice, France, finishing 16th. In 2000–2001, they competed on the senior Grand Prix series, finishing 6th and 9th at their two events. They were sent again to Junior Worlds and took their second gold medal at the event. In the 2001–2002 season, Romaniuta/Barantsev competed a second season on the Grand Prix series, winning bronze at the 2001 Sparkassen Cup and placing 5th at 2001 Cup of Russia. They were assigned to the 2002 European Championships but withdrew from the event. Their partnership ended in 2002. For the United States Barantsev moved to the United States to work with Nikolai Morozov, who coached him from 2002 to 2007. He teamed up with Jennifer Wester in Newington, Connecticut, in March 2003. She underwent surgery on her shoulder in 2003 and again in 2004. Skating association paperwork issues prevented Wester/Barantsev from competing nationally until 2005. As a result of ISU paperwork regulations, they remained ineligible for international competitions until the Russian Skating Federation granted Barantsev a release, in January 2007. In the same month, Wester injured her knee in a practice immediately prior to the 2007 U.S. Championships, where they finished sixth. Initially believed to be a severe bone bruise, her injury was diagnosed in April 2007 as a fractured patella requiring immediate surgery. In the summer of 2007, Wester/Barantsev moved to Bloomfield Hills, Michigan, to train at the Detroit Skating Club under the tutelage of Anjelika Krylova and Pasquale Camerlengo. Recovering slowly from her injury, Wester returned to the ice around mid-June 2007. In September, the duo won gold at the 2007 Nebelhorn Trophy, skating in their first international competition as a team. Wester/Barantsev placed fourth at their first ISU Championship together, the 2008 Four Continents Championships. In autumn 2008, they debuted on the Grand Prix series, Wester competing with pneumonia. A back injury to Barantsev led them to withdraw from the U.S. Championships in January 2009 and Wester underwent knee surgery later that year. The two did not compete the following season and retired from competition. Coaching In 2010, Barantsev began coaching full time in Connecticut. In 2017, Daniil moved from Connecticut to Texas. Programs With Wester With Romaniuta Results With Wester for the United States With Romaniuta for Russia References External links American male ice dancers Russian male ice dancers 1982 births Living people Sportspeople from Yekaterinburg World Junior Figure Skating Championships medalists
Viadana may refer to: Surname Lodovico Grossi da Viadana (c. 1560 – 1627), Italian composer, teacher, and Franciscan friar Gilberto Viadana (born 1973), Italian figure skater Other Viadana, Lombardy, a town in the province of Mantua, Lombardy, northern Italy Viadana Rugby, a rugby union club based in the town Viadana (insect), an insect in family Tettigoniidae
```go /* 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 registered import ( "testing" "k8s.io/apimachinery/pkg/apimachinery" "k8s.io/apimachinery/pkg/runtime/schema" ) func TestAddThirdPartyVersionsBasic(t *testing.T) { m, err := NewAPIRegistrationManager("") if err != nil { t.Fatalf("Unexpected failure to make a manager: %v", err) } registered := []schema.GroupVersion{ { Group: "", Version: "v1", }, } skipped := registered thirdParty := []schema.GroupVersion{ { Group: "company.com", Version: "v1", }, { Group: "company.com", Version: "v2", }, } gvs := append(registered, thirdParty...) m.RegisterVersions(registered) wasSkipped := m.AddThirdPartyAPIGroupVersions(gvs...) if len(wasSkipped) != len(skipped) { t.Errorf("Expected %v, found %v", skipped, wasSkipped) } for ix := range wasSkipped { found := false for _, gv := range skipped { if gv.String() == wasSkipped[ix].String() { found = true break } } if !found { t.Errorf("Couldn't find %v in %v", wasSkipped[ix], skipped) } } for _, gv := range thirdParty { if !m.IsThirdPartyAPIGroupVersion(gv) { t.Errorf("Expected %v to be third party.", gv) } } } func TestAddThirdPartyVersionsMultiple(t *testing.T) { thirdParty := []schema.GroupVersion{ { Group: "company.com", Version: "v1", }, { Group: "company.com", Version: "v2", }, } m, err := NewAPIRegistrationManager("") if err != nil { t.Fatalf("Unexpected failure to make a manager: %v", err) } for _, gv := range thirdParty { wasSkipped := m.AddThirdPartyAPIGroupVersions(gv) if len(wasSkipped) != 0 { t.Errorf("Expected length 0, found %v", wasSkipped) } } for _, gv := range thirdParty { if !m.IsThirdPartyAPIGroupVersion(gv) { t.Errorf("Expected %v to be third party.", gv) } } } func TestAllPreferredGroupVersions(t *testing.T) { testCases := []struct { groupMetas []apimachinery.GroupMeta expect string }{ { groupMetas: []apimachinery.GroupMeta{ { GroupVersion: schema.GroupVersion{Group: "group1", Version: "v1"}, }, { GroupVersion: schema.GroupVersion{Group: "group2", Version: "v2"}, }, { GroupVersion: schema.GroupVersion{Group: "", Version: "v1"}, }, }, expect: "group1/v1,group2/v2,v1", }, { groupMetas: []apimachinery.GroupMeta{ { GroupVersion: schema.GroupVersion{Group: "", Version: "v1"}, }, }, expect: "v1", }, { groupMetas: []apimachinery.GroupMeta{}, expect: "", }, } for _, testCase := range testCases { m, err := NewAPIRegistrationManager("") if err != nil { t.Fatalf("Unexpected failure to make a manager: %v", err) } for _, groupMeta := range testCase.groupMetas { m.RegisterGroup(groupMeta) } output := m.AllPreferredGroupVersions() if testCase.expect != output { t.Errorf("Error. expect: %s, got: %s", testCase.expect, output) } } } ```
```html <html> <head> <title>Simple Example</title> <link rel="stylesheet" type="text/css" href="../../../src/css/layerjs.css"> </head> <style> body { margin: 0; } #stage { margin: 0; width: 100%; height: 100%; } </style> <body> <div id="stage" data-lj-type="stage"> <div id="layer" data-lj-type="layer" data-lj-default-frame="frame1" data-lj-native-scroll="false" lj-timer="1s"> <div id="frame1" data-lj-type="frame" data-lj-fit-to="responsive-width"> <h1>Frame 1</h1> Candy bonbon pastry jujubes lollipop wafer biscuit biscuit. Topping brownie sesame snaps sweet roll pie. Croissant danish biscuit souffl caramels jujubes jelly. Drage danish caramels lemon drops drage. Gummi bears cupcake biscuit tiramisu sugar plum pastry. Drage gummies applicake pudding liquorice. Donut jujubes oat cake jelly-o. Dessert bear claw chocolate cake gummies lollipop sugar plum ice cream gummies cheesecake. </div> <div id="frame2" data-lj-type="frame" data-lj-fit-to="responsive-width"> <h1>Frame 2</h1> amber, microbrewery abbey hydrometer, brewpub ale lauter tun saccharification oxidized barrel. berliner weisse wort chiller adjunct hydrometer alcohol aau! sour/acidic sour/acidic chocolate malt ipa ipa hydrometer. </div> <div id="frame3" data-lj-type="frame" data-lj-fit-to="responsive-width"> <h1>Frame 3</h1> The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee. </div> </div> </div> <script src="../../../dist/layerjs.js"></script> <script> layerJS.init(); </script> </body> </html> ```
```php <?php return 1; return returnByReference()->x; return (new \stdClass())->x; return (new \stdClass())->method(); return (clone $x)->x; throw new Exception(); function list_unpack() { list($a, $b) = array(1, 2); return $a + $b; } function array_assembling() { $filters = ['is_email_compatible' => 1]; return ['widget_filters' => $filters]; } function quick_fixing($argument, $alternative) { return ($argument ?? $alternative)->property; return ($argument ?: $alternative)->property; } ```
```xml import type { Instance as Color } from 'tinycolor2'; import tinycolor from 'tinycolor2'; import isBetween from '@proton/utils/isBetween'; import shade from './shade'; import tint from './tint'; function genMutation(color: Color) { return function (mutation: number) { const clone = color.clone(); return mutation > 0 ? tint(clone, mutation) : shade(clone, Math.abs(mutation)); }; } function genButtonShades(base: Color, light: boolean) { const hsv = base.toHsv(); if (hsv.s <= 0.3) { if (light) { return [70, 50, 0, -5, -10, -15].map(genMutation(base)); } else { return [-70, -50, 0, 10, 20, 30].map(genMutation(base)); } } if (isBetween(hsv.h, 30, 60)) { if (light) { const tinted = [90, 80, 0].map(genMutation(base)); const shaded = [-5, -10, -15].map(genMutation(base)).map((c, i) => { const hsl = c.toHsl(); hsl.h = hsl.h - 5 * (i + 1); return tinycolor(hsl); }); return [...tinted, ...shaded]; } else { const shaded = [-80, -70].map(genMutation(base)).map((c) => { const hsl = c.toHsl(); hsl.h = hsl.h - 15; return tinycolor(hsl); }); const tinted = [0, 10, 20, 30].map(genMutation(base)); return [...shaded, ...tinted]; } } if (light) { return [90, 80, 0, -10, -20, -30].map(genMutation(base)); } else { return [-80, -70, 0, 10, 20, 30].map(genMutation(base)); } } export default genButtonShades; ```
```ruby class Glassfish < Formula desc "Java EE application server" homepage "path_to_url" url "path_to_url" mirror "path_to_url" sha256 your_sha256_hash license "EPL-2.0" livecheck do url "path_to_url" regex(/href=.*?glassfish[._-]v?(\d+(?:\.\d+)+)\.zip/i) end 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, 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, x86_64_linux: your_sha256_hash end # no java 22 support for glassfish 7.x # path_to_url depends_on "openjdk@21" conflicts_with "payara", because: "both install the same scripts" def install # Remove all windows files rm_r(Dir["bin/*.bat", "glassfish/bin/*.bat"]) libexec.install Dir["*"] bin.install Dir["#{libexec}/bin/*"] env = Language::Java.overridable_java_home_env("21") env["GLASSFISH_HOME"] = libexec bin.env_script_all_files libexec/"bin", env File.open(libexec/"glassfish/config/asenv.conf", "a") do |file| file.puts "AS_JAVA=\"#{env[:JAVA_HOME]}\"" end end def caveats <<~EOS You may want to add the following to your .bash_profile: export GLASSFISH_HOME=#{opt_libexec} EOS end test do port = free_port # `asadmin` needs this to talk to a custom port when running `asadmin version` ENV["AS_ADMIN_PORT"] = port.to_s cp_r libexec/"glassfish/domains", testpath inreplace testpath/"domains/domain1/config/domain.xml", "port=\"4848\"", "port=\"#{port}\"" fork do exec bin/"asadmin", "start-domain", "--domaindir=#{testpath}/domains", "domain1" end sleep 60 output = shell_output("curl -s -X GET localhost:#{port}") assert_match "GlassFish Server", output assert_match version.to_s, shell_output("#{bin}/asadmin version") end end ```
```c #include <stdio.h> #include <stddef.h> static struct sss{ long f; size_t snd; } sss; #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) int main (void) { printf ("+++Struct long-size_t:\n"); printf ("size=%d,align=%d,offset-long=%d,offset-size_t=%d,\nalign-long=%d,align-size_t=%d\n", sizeof (sss), __alignof__ (sss), _offsetof (struct sss, f), _offsetof (struct sss, snd), __alignof__ (sss.f), __alignof__ (sss.snd)); return 0; } ```
Novo Selo is a village in Croatia, administratively located in the Town of Slunj, in Karlovac County. References Geography of Croatia Populated places in Karlovac County
```c /* * ffmpeg filter configuration * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * You should have received a copy of the GNU Lesser General Public * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include <stdint.h> #include "ffmpeg.h" #include "libavfilter/avfilter.h" #include "libavfilter/buffersink.h" #include "libavresample/avresample.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/channel_layout.h" #include "libavutil/display.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" #include "libavutil/imgutils.h" #include "libavutil/samplefmt.h" enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx, AVCodec *codec, enum AVPixelFormat target) { if (codec && codec->pix_fmts) { const enum AVPixelFormat *p = codec->pix_fmts; const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(target); int has_alpha = desc ? desc->nb_components % 2 == 0 : 0; enum AVPixelFormat best= AV_PIX_FMT_NONE; static const enum AVPixelFormat mjpeg_formats[] = { AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_NONE }; static const enum AVPixelFormat ljpeg_formats[] = { AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_BGRA, AV_PIX_FMT_NONE }; if (enc_ctx->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) { if (enc_ctx->codec_id == AV_CODEC_ID_MJPEG) { p = mjpeg_formats; } else if (enc_ctx->codec_id == AV_CODEC_ID_LJPEG) { p =ljpeg_formats; } } for (; *p != AV_PIX_FMT_NONE; p++) { best= avcodec_find_best_pix_fmt_of_2(best, *p, target, has_alpha, NULL); if (*p == target) break; } if (*p == AV_PIX_FMT_NONE) { if (target != AV_PIX_FMT_NONE) av_log(NULL, AV_LOG_WARNING, "Incompatible pixel format '%s' for codec '%s', auto-selecting format '%s'\n", av_get_pix_fmt_name(target), codec->name, av_get_pix_fmt_name(best)); return best; } } return target; } void choose_sample_fmt(AVStream *st, AVCodec *codec) { if (codec && codec->sample_fmts) { const enum AVSampleFormat *p = codec->sample_fmts; for (; *p != -1; p++) { if (*p == st->codec->sample_fmt) break; } if (*p == -1) { if((codec->capabilities & AV_CODEC_CAP_LOSSLESS) && av_get_sample_fmt_name(st->codec->sample_fmt) > av_get_sample_fmt_name(codec->sample_fmts[0])) av_log(NULL, AV_LOG_ERROR, "Conversion will not be lossless.\n"); if(av_get_sample_fmt_name(st->codec->sample_fmt)) av_log(NULL, AV_LOG_WARNING, "Incompatible sample format '%s' for codec '%s', auto-selecting format '%s'\n", av_get_sample_fmt_name(st->codec->sample_fmt), codec->name, av_get_sample_fmt_name(codec->sample_fmts[0])); st->codec->sample_fmt = codec->sample_fmts[0]; } } } static char *choose_pix_fmts(OutputStream *ost) { AVDictionaryEntry *strict_dict = av_dict_get(ost->encoder_opts, "strict", NULL, 0); if (strict_dict) // used by choose_pixel_fmt() and below av_opt_set(ost->enc_ctx, "strict", strict_dict->value, 0); if (ost->keep_pix_fmt) { if (ost->filter) avfilter_graph_set_auto_convert(ost->filter->graph->graph, AVFILTER_AUTO_CONVERT_NONE); if (ost->enc_ctx->pix_fmt == AV_PIX_FMT_NONE) return NULL; return av_strdup(av_get_pix_fmt_name(ost->enc_ctx->pix_fmt)); } if (ost->enc_ctx->pix_fmt != AV_PIX_FMT_NONE) { return av_strdup(av_get_pix_fmt_name(choose_pixel_fmt(ost->st, ost->enc_ctx, ost->enc, ost->enc_ctx->pix_fmt))); } else if (ost->enc && ost->enc->pix_fmts) { const enum AVPixelFormat *p; AVIOContext *s = NULL; uint8_t *ret; int len; if (avio_open_dyn_buf(&s) < 0) exit_program(1); p = ost->enc->pix_fmts; if (ost->enc_ctx->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) { if (ost->enc_ctx->codec_id == AV_CODEC_ID_MJPEG) { p = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_NONE }; } else if (ost->enc_ctx->codec_id == AV_CODEC_ID_LJPEG) { p = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_BGRA, AV_PIX_FMT_NONE }; } } for (; *p != AV_PIX_FMT_NONE; p++) { const char *name = av_get_pix_fmt_name(*p); avio_printf(s, "%s|", name); } len = avio_close_dyn_buf(s, &ret); ret[len - 1] = 0; return ret; } else return NULL; } /* Define a function for building a string containing a list of * allowed formats. */ #define DEF_CHOOSE_FORMAT(type, var, supported_list, none, get_name) \ static char *choose_ ## var ## s(OutputStream *ost) \ { \ if (ost->enc_ctx->var != none) { \ get_name(ost->enc_ctx->var); \ return av_strdup(name); \ } else if (ost->enc && ost->enc->supported_list) { \ const type *p; \ AVIOContext *s = NULL; \ uint8_t *ret; \ int len; \ \ if (avio_open_dyn_buf(&s) < 0) \ exit_program(1); \ \ for (p = ost->enc->supported_list; *p != none; p++) { \ get_name(*p); \ avio_printf(s, "%s|", name); \ } \ len = avio_close_dyn_buf(s, &ret); \ ret[len - 1] = 0; \ return ret; \ } else \ return NULL; \ } // DEF_CHOOSE_FORMAT(enum AVPixelFormat, pix_fmt, pix_fmts, AV_PIX_FMT_NONE, // GET_PIX_FMT_NAME) DEF_CHOOSE_FORMAT(enum AVSampleFormat, sample_fmt, sample_fmts, AV_SAMPLE_FMT_NONE, GET_SAMPLE_FMT_NAME) DEF_CHOOSE_FORMAT(int, sample_rate, supported_samplerates, 0, GET_SAMPLE_RATE_NAME) DEF_CHOOSE_FORMAT(uint64_t, channel_layout, channel_layouts, 0, GET_CH_LAYOUT_NAME) FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost) { FilterGraph *fg = av_mallocz(sizeof(*fg)); if (!fg) exit_program(1); fg->index = nb_filtergraphs; GROW_ARRAY(fg->outputs, fg->nb_outputs); if (!(fg->outputs[0] = av_mallocz(sizeof(*fg->outputs[0])))) exit_program(1); fg->outputs[0]->ost = ost; fg->outputs[0]->graph = fg; ost->filter = fg->outputs[0]; GROW_ARRAY(fg->inputs, fg->nb_inputs); if (!(fg->inputs[0] = av_mallocz(sizeof(*fg->inputs[0])))) exit_program(1); fg->inputs[0]->ist = ist; fg->inputs[0]->graph = fg; GROW_ARRAY(ist->filters, ist->nb_filters); ist->filters[ist->nb_filters - 1] = fg->inputs[0]; GROW_ARRAY(filtergraphs, nb_filtergraphs); filtergraphs[nb_filtergraphs - 1] = fg; return fg; } static void init_input_filter(FilterGraph *fg, AVFilterInOut *in) { InputStream *ist = NULL; enum AVMediaType type = avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx); int i; // TODO: support other filter types if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO) { av_log(NULL, AV_LOG_FATAL, "Only video and audio filters supported " "currently.\n"); exit_program(1); } if (in->name) { AVFormatContext *s; AVStream *st = NULL; char *p; int file_idx = strtol(in->name, &p, 0); if (file_idx < 0 || file_idx >= nb_input_files) { av_log(NULL, AV_LOG_FATAL, "Invalid file index %d in filtergraph description %s.\n", file_idx, fg->graph_desc); exit_program(1); } s = input_files[file_idx]->ctx; for (i = 0; i < s->nb_streams; i++) { enum AVMediaType stream_type = s->streams[i]->codec->codec_type; if (stream_type != type && !(stream_type == AVMEDIA_TYPE_SUBTITLE && type == AVMEDIA_TYPE_VIDEO /* sub2video hack */)) continue; if (check_stream_specifier(s, s->streams[i], *p == ':' ? p + 1 : p) == 1) { st = s->streams[i]; break; } } if (!st) { av_log(NULL, AV_LOG_FATAL, "Stream specifier '%s' in filtergraph description %s " "matches no streams.\n", p, fg->graph_desc); exit_program(1); } ist = input_streams[input_files[file_idx]->ist_index + st->index]; } else { /* find the first unused stream of corresponding type */ for (i = 0; i < nb_input_streams; i++) { ist = input_streams[i]; if (ist->dec_ctx->codec_type == type && ist->discard) break; } if (i == nb_input_streams) { av_log(NULL, AV_LOG_FATAL, "Cannot find a matching stream for " "unlabeled input pad %d on filter %s\n", in->pad_idx, in->filter_ctx->name); exit_program(1); } } av_assert0(ist); ist->discard = 0; ist->decoding_needed |= DECODING_FOR_FILTER; ist->st->discard = AVDISCARD_NONE; GROW_ARRAY(fg->inputs, fg->nb_inputs); if (!(fg->inputs[fg->nb_inputs - 1] = av_mallocz(sizeof(*fg->inputs[0])))) exit_program(1); fg->inputs[fg->nb_inputs - 1]->ist = ist; fg->inputs[fg->nb_inputs - 1]->graph = fg; GROW_ARRAY(ist->filters, ist->nb_filters); ist->filters[ist->nb_filters - 1] = fg->inputs[fg->nb_inputs - 1]; } int init_complex_filtergraph(FilterGraph *fg) { AVFilterInOut *inputs, *outputs, *cur; AVFilterGraph *graph; int ret = 0; /* this graph is only used for determining the kinds of inputs * and outputs we have, and is discarded on exit from this function */ graph = avfilter_graph_alloc(); if (!graph) return AVERROR(ENOMEM); ret = avfilter_graph_parse2(graph, fg->graph_desc, &inputs, &outputs); if (ret < 0) goto fail; for (cur = inputs; cur; cur = cur->next) init_input_filter(fg, cur); for (cur = outputs; cur;) { GROW_ARRAY(fg->outputs, fg->nb_outputs); fg->outputs[fg->nb_outputs - 1] = av_mallocz(sizeof(*fg->outputs[0])); if (!fg->outputs[fg->nb_outputs - 1]) exit_program(1); fg->outputs[fg->nb_outputs - 1]->graph = fg; fg->outputs[fg->nb_outputs - 1]->out_tmp = cur; fg->outputs[fg->nb_outputs - 1]->type = avfilter_pad_get_type(cur->filter_ctx->output_pads, cur->pad_idx); cur = cur->next; fg->outputs[fg->nb_outputs - 1]->out_tmp->next = NULL; } fail: avfilter_inout_free(&inputs); avfilter_graph_free(&graph); return ret; } static int insert_trim(int64_t start_time, int64_t duration, AVFilterContext **last_filter, int *pad_idx, const char *filter_name) { AVFilterGraph *graph = (*last_filter)->graph; AVFilterContext *ctx; const AVFilter *trim; enum AVMediaType type = avfilter_pad_get_type((*last_filter)->output_pads, *pad_idx); const char *name = (type == AVMEDIA_TYPE_VIDEO) ? "trim" : "atrim"; int ret = 0; if (duration == INT64_MAX && start_time == AV_NOPTS_VALUE) return 0; trim = avfilter_get_by_name(name); if (!trim) { av_log(NULL, AV_LOG_ERROR, "%s filter not present, cannot limit " "recording time.\n", name); return AVERROR_FILTER_NOT_FOUND; } ctx = avfilter_graph_alloc_filter(graph, trim, filter_name); if (!ctx) return AVERROR(ENOMEM); if (duration != INT64_MAX) { ret = av_opt_set_int(ctx, "durationi", duration, AV_OPT_SEARCH_CHILDREN); } if (ret >= 0 && start_time != AV_NOPTS_VALUE) { ret = av_opt_set_int(ctx, "starti", start_time, AV_OPT_SEARCH_CHILDREN); } if (ret < 0) { av_log(ctx, AV_LOG_ERROR, "Error configuring the %s filter", name); return ret; } ret = avfilter_init_str(ctx, NULL); if (ret < 0) return ret; ret = avfilter_link(*last_filter, *pad_idx, ctx, 0); if (ret < 0) return ret; *last_filter = ctx; *pad_idx = 0; return 0; } static int insert_filter(AVFilterContext **last_filter, int *pad_idx, const char *filter_name, const char *args) { AVFilterGraph *graph = (*last_filter)->graph; AVFilterContext *ctx; int ret; ret = avfilter_graph_create_filter(&ctx, avfilter_get_by_name(filter_name), filter_name, args, NULL, graph); if (ret < 0) return ret; ret = avfilter_link(*last_filter, *pad_idx, ctx, 0); if (ret < 0) return ret; *last_filter = ctx; *pad_idx = 0; return 0; } static int configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out) { char *pix_fmts; OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; AVCodecContext *codec = ost->enc_ctx; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; int ret; char name[255]; snprintf(name, sizeof(name), "output stream %d:%d", ost->file_index, ost->index); ret = avfilter_graph_create_filter(&ofilter->filter, avfilter_get_by_name("buffersink"), name, NULL, NULL, fg->graph); if (ret < 0) return ret; if (codec->width || codec->height) { char args[255]; AVFilterContext *filter; AVDictionaryEntry *e = NULL; snprintf(args, sizeof(args), "%d:%d", codec->width, codec->height); while ((e = av_dict_get(ost->sws_dict, "", e, AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), ":%s=%s", e->key, e->value); } snprintf(name, sizeof(name), "scaler for output stream %d:%d", ost->file_index, ost->index); if ((ret = avfilter_graph_create_filter(&filter, avfilter_get_by_name("scale"), name, args, NULL, fg->graph)) < 0) return ret; if ((ret = avfilter_link(last_filter, pad_idx, filter, 0)) < 0) return ret; last_filter = filter; pad_idx = 0; } if ((pix_fmts = choose_pix_fmts(ost))) { AVFilterContext *filter; snprintf(name, sizeof(name), "pixel format for output stream %d:%d", ost->file_index, ost->index); ret = avfilter_graph_create_filter(&filter, avfilter_get_by_name("format"), "format", pix_fmts, NULL, fg->graph); av_freep(&pix_fmts); if (ret < 0) return ret; if ((ret = avfilter_link(last_filter, pad_idx, filter, 0)) < 0) return ret; last_filter = filter; pad_idx = 0; } if (ost->frame_rate.num && 0) { AVFilterContext *fps; char args[255]; snprintf(args, sizeof(args), "fps=%d/%d", ost->frame_rate.num, ost->frame_rate.den); snprintf(name, sizeof(name), "fps for output stream %d:%d", ost->file_index, ost->index); ret = avfilter_graph_create_filter(&fps, avfilter_get_by_name("fps"), name, args, NULL, fg->graph); if (ret < 0) return ret; ret = avfilter_link(last_filter, pad_idx, fps, 0); if (ret < 0) return ret; last_filter = fps; pad_idx = 0; } snprintf(name, sizeof(name), "trim for output stream %d:%d", ost->file_index, ost->index); ret = insert_trim(of->start_time, of->recording_time, &last_filter, &pad_idx, name); if (ret < 0) return ret; if ((ret = avfilter_link(last_filter, pad_idx, ofilter->filter, 0)) < 0) return ret; return 0; } static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out) { OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; AVCodecContext *codec = ost->enc_ctx; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; char *sample_fmts, *sample_rates, *channel_layouts; char name[255]; int ret; snprintf(name, sizeof(name), "output stream %d:%d", ost->file_index, ost->index); ret = avfilter_graph_create_filter(&ofilter->filter, avfilter_get_by_name("abuffersink"), name, NULL, NULL, fg->graph); if (ret < 0) return ret; if ((ret = av_opt_set_int(ofilter->filter, "all_channel_counts", 1, AV_OPT_SEARCH_CHILDREN)) < 0) return ret; #define AUTO_INSERT_FILTER(opt_name, filter_name, arg) do { \ AVFilterContext *filt_ctx; \ \ av_log(NULL, AV_LOG_INFO, opt_name " is forwarded to lavfi " \ "similarly to -af " filter_name "=%s.\n", arg); \ \ ret = avfilter_graph_create_filter(&filt_ctx, \ avfilter_get_by_name(filter_name), \ filter_name, arg, NULL, fg->graph); \ if (ret < 0) \ return ret; \ \ ret = avfilter_link(last_filter, pad_idx, filt_ctx, 0); \ if (ret < 0) \ return ret; \ \ last_filter = filt_ctx; \ pad_idx = 0; \ } while (0) if (ost->audio_channels_mapped) { int i; AVBPrint pan_buf; av_bprint_init(&pan_buf, 256, 8192); av_bprintf(&pan_buf, "0x%"PRIx64, av_get_default_channel_layout(ost->audio_channels_mapped)); for (i = 0; i < ost->audio_channels_mapped; i++) if (ost->audio_channels_map[i] != -1) av_bprintf(&pan_buf, "|c%d=c%d", i, ost->audio_channels_map[i]); AUTO_INSERT_FILTER("-map_channel", "pan", pan_buf.str); av_bprint_finalize(&pan_buf, NULL); } if (codec->channels && !codec->channel_layout) codec->channel_layout = av_get_default_channel_layout(codec->channels); sample_fmts = choose_sample_fmts(ost); sample_rates = choose_sample_rates(ost); channel_layouts = choose_channel_layouts(ost); if (sample_fmts || sample_rates || channel_layouts) { AVFilterContext *format; char args[256]; args[0] = 0; if (sample_fmts) av_strlcatf(args, sizeof(args), "sample_fmts=%s:", sample_fmts); if (sample_rates) av_strlcatf(args, sizeof(args), "sample_rates=%s:", sample_rates); if (channel_layouts) av_strlcatf(args, sizeof(args), "channel_layouts=%s:", channel_layouts); av_freep(&sample_fmts); av_freep(&sample_rates); av_freep(&channel_layouts); snprintf(name, sizeof(name), "audio format for output stream %d:%d", ost->file_index, ost->index); ret = avfilter_graph_create_filter(&format, avfilter_get_by_name("aformat"), name, args, NULL, fg->graph); if (ret < 0) return ret; ret = avfilter_link(last_filter, pad_idx, format, 0); if (ret < 0) return ret; last_filter = format; pad_idx = 0; } if (audio_volume != 256 && 0) { char args[256]; snprintf(args, sizeof(args), "%f", audio_volume / 256.); AUTO_INSERT_FILTER("-vol", "volume", args); } if (ost->apad && of->shortest) { char args[256]; int i; for (i=0; i<of->ctx->nb_streams; i++) if (of->ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) break; if (i<of->ctx->nb_streams) { snprintf(args, sizeof(args), "%s", ost->apad); AUTO_INSERT_FILTER("-apad", "apad", args); } } snprintf(name, sizeof(name), "trim for output stream %d:%d", ost->file_index, ost->index); ret = insert_trim(of->start_time, of->recording_time, &last_filter, &pad_idx, name); if (ret < 0) return ret; if ((ret = avfilter_link(last_filter, pad_idx, ofilter->filter, 0)) < 0) return ret; return 0; } #define DESCRIBE_FILTER_LINK(f, inout, in) \ { \ AVFilterContext *ctx = inout->filter_ctx; \ AVFilterPad *pads = in ? ctx->input_pads : ctx->output_pads; \ int nb_pads = in ? ctx->nb_inputs : ctx->nb_outputs; \ AVIOContext *pb; \ \ if (avio_open_dyn_buf(&pb) < 0) \ exit_program(1); \ \ avio_printf(pb, "%s", ctx->filter->name); \ if (nb_pads > 1) \ avio_printf(pb, ":%s", avfilter_pad_get_name(pads, inout->pad_idx));\ avio_w8(pb, 0); \ avio_close_dyn_buf(pb, &f->name); \ } int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out) { av_freep(&ofilter->name); DESCRIBE_FILTER_LINK(ofilter, out, 0); if (!ofilter->ost) { av_log(NULL, AV_LOG_FATAL, "Filter %s has a unconnected output\n", ofilter->name); exit_program(1); } switch (avfilter_pad_get_type(out->filter_ctx->output_pads, out->pad_idx)) { case AVMEDIA_TYPE_VIDEO: return configure_output_video_filter(fg, ofilter, out); case AVMEDIA_TYPE_AUDIO: return configure_output_audio_filter(fg, ofilter, out); default: av_assert0(0); } } static int sub2video_prepare(InputStream *ist) { AVFormatContext *avf = input_files[ist->file_index]->ctx; int i, w, h; /* Compute the size of the canvas for the subtitles stream. If the subtitles codec has set a size, use it. Otherwise use the maximum dimensions of the video streams in the same file. */ w = ist->dec_ctx->width; h = ist->dec_ctx->height; if (!(w && h)) { for (i = 0; i < avf->nb_streams; i++) { if (avf->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { w = FFMAX(w, avf->streams[i]->codec->width); h = FFMAX(h, avf->streams[i]->codec->height); } } if (!(w && h)) { w = FFMAX(w, 720); h = FFMAX(h, 576); } av_log(avf, AV_LOG_INFO, "sub2video: using %dx%d canvas\n", w, h); } ist->sub2video.w = ist->resample_width = w; ist->sub2video.h = ist->resample_height = h; /* rectangles are AV_PIX_FMT_PAL8, but we have no guarantee that the palettes for all rectangles are identical or compatible */ ist->resample_pix_fmt = ist->dec_ctx->pix_fmt = AV_PIX_FMT_RGB32; ist->sub2video.frame = av_frame_alloc(); if (!ist->sub2video.frame) return AVERROR(ENOMEM); ist->sub2video.last_pts = INT64_MIN; return 0; } static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter, AVFilterInOut *in) { AVFilterContext *last_filter; const AVFilter *buffer_filt = avfilter_get_by_name("buffer"); InputStream *ist = ifilter->ist; InputFile *f = input_files[ist->file_index]; AVRational tb = ist->framerate.num ? av_inv_q(ist->framerate) : ist->st->time_base; AVRational fr = ist->framerate; AVRational sar; AVBPrint args; char name[255]; int ret, pad_idx = 0; int64_t tsoffset = 0; if (ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) { av_log(NULL, AV_LOG_ERROR, "Cannot connect video filter to audio input\n"); return AVERROR(EINVAL); } if (!fr.num) fr = av_guess_frame_rate(input_files[ist->file_index]->ctx, ist->st, NULL); if (ist->dec_ctx->codec_type == AVMEDIA_TYPE_SUBTITLE) { ret = sub2video_prepare(ist); if (ret < 0) return ret; } sar = ist->st->sample_aspect_ratio.num ? ist->st->sample_aspect_ratio : ist->dec_ctx->sample_aspect_ratio; if(!sar.den) sar = (AVRational){0,1}; av_bprint_init(&args, 0, 1); av_bprintf(&args, "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:" "pixel_aspect=%d/%d:sws_param=flags=%d", ist->resample_width, ist->resample_height, ist->hwaccel_retrieve_data ? ist->hwaccel_retrieved_pix_fmt : ist->resample_pix_fmt, tb.num, tb.den, sar.num, sar.den, SWS_BILINEAR + ((ist->dec_ctx->flags&AV_CODEC_FLAG_BITEXACT) ? SWS_BITEXACT:0)); if (fr.num && fr.den) av_bprintf(&args, ":frame_rate=%d/%d", fr.num, fr.den); snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index, ist->file_index, ist->st->index); if ((ret = avfilter_graph_create_filter(&ifilter->filter, buffer_filt, name, args.str, NULL, fg->graph)) < 0) return ret; last_filter = ifilter->filter; if (ist->autorotate) { double theta = get_rotation(ist->st); if (fabs(theta - 90) < 1.0) { ret = insert_filter(&last_filter, &pad_idx, "transpose", "clock"); } else if (fabs(theta - 180) < 1.0) { ret = insert_filter(&last_filter, &pad_idx, "hflip", NULL); if (ret < 0) return ret; ret = insert_filter(&last_filter, &pad_idx, "vflip", NULL); } else if (fabs(theta - 270) < 1.0) { ret = insert_filter(&last_filter, &pad_idx, "transpose", "cclock"); } else if (fabs(theta) > 1.0) { char rotate_buf[64]; snprintf(rotate_buf, sizeof(rotate_buf), "%f*PI/180", theta); ret = insert_filter(&last_filter, &pad_idx, "rotate", rotate_buf); } if (ret < 0) return ret; } if (ist->framerate.num) { AVFilterContext *setpts; snprintf(name, sizeof(name), "force CFR for input from stream %d:%d", ist->file_index, ist->st->index); if ((ret = avfilter_graph_create_filter(&setpts, avfilter_get_by_name("setpts"), name, "N", NULL, fg->graph)) < 0) return ret; if ((ret = avfilter_link(last_filter, 0, setpts, 0)) < 0) return ret; last_filter = setpts; } if (do_deinterlace) { AVFilterContext *yadif; snprintf(name, sizeof(name), "deinterlace input from stream %d:%d", ist->file_index, ist->st->index); if ((ret = avfilter_graph_create_filter(&yadif, avfilter_get_by_name("yadif"), name, "", NULL, fg->graph)) < 0) return ret; if ((ret = avfilter_link(last_filter, 0, yadif, 0)) < 0) return ret; last_filter = yadif; } snprintf(name, sizeof(name), "trim for input stream %d:%d", ist->file_index, ist->st->index); if (copy_ts) { tsoffset = f->start_time == AV_NOPTS_VALUE ? 0 : f->start_time; if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE) tsoffset += f->ctx->start_time; } ret = insert_trim(((f->start_time == AV_NOPTS_VALUE) || !f->accurate_seek) ? AV_NOPTS_VALUE : tsoffset, f->recording_time, &last_filter, &pad_idx, name); if (ret < 0) return ret; if ((ret = avfilter_link(last_filter, 0, in->filter_ctx, in->pad_idx)) < 0) return ret; return 0; } static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter, AVFilterInOut *in) { AVFilterContext *last_filter; const AVFilter *abuffer_filt = avfilter_get_by_name("abuffer"); InputStream *ist = ifilter->ist; InputFile *f = input_files[ist->file_index]; AVBPrint args; char name[255]; int ret, pad_idx = 0; int64_t tsoffset = 0; if (ist->dec_ctx->codec_type != AVMEDIA_TYPE_AUDIO) { av_log(NULL, AV_LOG_ERROR, "Cannot connect audio filter to non audio input\n"); return AVERROR(EINVAL); } av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC); av_bprintf(&args, "time_base=%d/%d:sample_rate=%d:sample_fmt=%s", 1, ist->dec_ctx->sample_rate, ist->dec_ctx->sample_rate, av_get_sample_fmt_name(ist->dec_ctx->sample_fmt)); if (ist->dec_ctx->channel_layout) av_bprintf(&args, ":channel_layout=0x%"PRIx64, ist->dec_ctx->channel_layout); else av_bprintf(&args, ":channels=%d", ist->dec_ctx->channels); snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index, ist->file_index, ist->st->index); if ((ret = avfilter_graph_create_filter(&ifilter->filter, abuffer_filt, name, args.str, NULL, fg->graph)) < 0) return ret; last_filter = ifilter->filter; #define AUTO_INSERT_FILTER_INPUT(opt_name, filter_name, arg) do { \ AVFilterContext *filt_ctx; \ \ av_log(NULL, AV_LOG_INFO, opt_name " is forwarded to lavfi " \ "similarly to -af " filter_name "=%s.\n", arg); \ \ snprintf(name, sizeof(name), "graph %d %s for input stream %d:%d", \ fg->index, filter_name, ist->file_index, ist->st->index); \ ret = avfilter_graph_create_filter(&filt_ctx, \ avfilter_get_by_name(filter_name), \ name, arg, NULL, fg->graph); \ if (ret < 0) \ return ret; \ \ ret = avfilter_link(last_filter, 0, filt_ctx, 0); \ if (ret < 0) \ return ret; \ \ last_filter = filt_ctx; \ } while (0) if (audio_sync_method > 0) { char args[256] = {0}; av_strlcatf(args, sizeof(args), "async=%d", audio_sync_method); if (audio_drift_threshold != 0.1) av_strlcatf(args, sizeof(args), ":min_hard_comp=%f", audio_drift_threshold); if (!fg->reconfiguration) av_strlcatf(args, sizeof(args), ":first_pts=0"); AUTO_INSERT_FILTER_INPUT("-async", "aresample", args); } // if (ost->audio_channels_mapped) { // int i; // AVBPrint pan_buf; // av_bprint_init(&pan_buf, 256, 8192); // av_bprintf(&pan_buf, "0x%"PRIx64, // av_get_default_channel_layout(ost->audio_channels_mapped)); // for (i = 0; i < ost->audio_channels_mapped; i++) // if (ost->audio_channels_map[i] != -1) // av_bprintf(&pan_buf, ":c%d=c%d", i, ost->audio_channels_map[i]); // AUTO_INSERT_FILTER_INPUT("-map_channel", "pan", pan_buf.str); // av_bprint_finalize(&pan_buf, NULL); // } if (audio_volume != 256) { char args[256]; av_log(NULL, AV_LOG_WARNING, "-vol has been deprecated. Use the volume " "audio filter instead.\n"); snprintf(args, sizeof(args), "%f", audio_volume / 256.); AUTO_INSERT_FILTER_INPUT("-vol", "volume", args); } snprintf(name, sizeof(name), "trim for input stream %d:%d", ist->file_index, ist->st->index); if (copy_ts) { tsoffset = f->start_time == AV_NOPTS_VALUE ? 0 : f->start_time; if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE) tsoffset += f->ctx->start_time; } ret = insert_trim(((f->start_time == AV_NOPTS_VALUE) || !f->accurate_seek) ? AV_NOPTS_VALUE : tsoffset, f->recording_time, &last_filter, &pad_idx, name); if (ret < 0) return ret; if ((ret = avfilter_link(last_filter, 0, in->filter_ctx, in->pad_idx)) < 0) return ret; return 0; } static int configure_input_filter(FilterGraph *fg, InputFilter *ifilter, AVFilterInOut *in) { av_freep(&ifilter->name); DESCRIBE_FILTER_LINK(ifilter, in, 1); if (!ifilter->ist->dec) { av_log(NULL, AV_LOG_ERROR, "No decoder for stream #%d:%d, filtering impossible\n", ifilter->ist->file_index, ifilter->ist->st->index); return AVERROR_DECODER_NOT_FOUND; } switch (avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx)) { case AVMEDIA_TYPE_VIDEO: return configure_input_video_filter(fg, ifilter, in); case AVMEDIA_TYPE_AUDIO: return configure_input_audio_filter(fg, ifilter, in); default: av_assert0(0); } } int configure_filtergraph(FilterGraph *fg) { AVFilterInOut *inputs, *outputs, *cur; int ret, i, simple = !fg->graph_desc; const char *graph_desc = simple ? fg->outputs[0]->ost->avfilter : fg->graph_desc; avfilter_graph_free(&fg->graph); if (!(fg->graph = avfilter_graph_alloc())) return AVERROR(ENOMEM); if (simple) { OutputStream *ost = fg->outputs[0]->ost; char args[512]; AVDictionaryEntry *e = NULL; args[0] = 0; while ((e = av_dict_get(ost->sws_dict, "", e, AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); } if (strlen(args)) args[strlen(args)-1] = 0; fg->graph->scale_sws_opts = av_strdup(args); args[0] = 0; while ((e = av_dict_get(ost->swr_opts, "", e, AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); } if (strlen(args)) args[strlen(args)-1] = 0; av_opt_set(fg->graph, "aresample_swr_opts", args, 0); args[0] = '\0'; while ((e = av_dict_get(fg->outputs[0]->ost->resample_opts, "", e, AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); } if (strlen(args)) args[strlen(args) - 1] = '\0'; fg->graph->resample_lavr_opts = av_strdup(args); e = av_dict_get(ost->encoder_opts, "threads", NULL, 0); if (e) av_opt_set(fg->graph, "threads", e->value, 0); } if ((ret = avfilter_graph_parse2(fg->graph, graph_desc, &inputs, &outputs)) < 0) return ret; if (simple && (!inputs || inputs->next || !outputs || outputs->next)) { const char *num_inputs; const char *num_outputs; if (!outputs) { num_outputs = "0"; } else if (outputs->next) { num_outputs = ">1"; } else { num_outputs = "1"; } if (!inputs) { num_inputs = "0"; } else if (inputs->next) { num_inputs = ">1"; } else { num_inputs = "1"; } av_log(NULL, AV_LOG_ERROR, "Simple filtergraph '%s' was expected " "to have exactly 1 input and 1 output." " However, it had %s input(s) and %s output(s)." " Please adjust, or use a complex filtergraph (-filter_complex) instead.\n", graph_desc, num_inputs, num_outputs); return AVERROR(EINVAL); } for (cur = inputs, i = 0; cur; cur = cur->next, i++) if ((ret = configure_input_filter(fg, fg->inputs[i], cur)) < 0) { avfilter_inout_free(&inputs); avfilter_inout_free(&outputs); return ret; } avfilter_inout_free(&inputs); for (cur = outputs, i = 0; cur; cur = cur->next, i++) configure_output_filter(fg, fg->outputs[i], cur); avfilter_inout_free(&outputs); if ((ret = avfilter_graph_config(fg->graph, NULL)) < 0) return ret; fg->reconfiguration = 1; for (i = 0; i < fg->nb_outputs; i++) { OutputStream *ost = fg->outputs[i]->ost; if (!ost->enc) { /* identical to the same check in ffmpeg.c, needed because complex filter graphs are initialized earlier */ av_log(NULL, AV_LOG_ERROR, "Encoder (codec %s) not found for output stream #%d:%d\n", avcodec_get_name(ost->st->codec->codec_id), ost->file_index, ost->index); return AVERROR(EINVAL); } if (ost->enc->type == AVMEDIA_TYPE_AUDIO && !(ost->enc->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) av_buffersink_set_frame_size(ost->filter->filter, ost->enc_ctx->frame_size); } return 0; } int ist_in_filtergraph(FilterGraph *fg, InputStream *ist) { int i; for (i = 0; i < fg->nb_inputs; i++) if (fg->inputs[i]->ist == ist) return 1; return 0; } ```
Bolivia is a landlocked country located in western-central South America. The capitals of Bolivia are La Paz and Sucre. As of 2022, the population of Bolivia is estimated to be around 12 million, with the major ethnic group being Mestizo . The largest city in Bolivia is Santa Cruz de la Sierra. Notable firms This list includes notable companies with primary headquarters located in the country. The industry and sector follow the Industry Classification Benchmark taxonomy. Organizations that have ceased operations are included and noted as defunct. References Bolivia Lists of companies of Bolivia
The kalakeyas () or kalakhanjas (; Pali: kālakañjā) are a sect of danavas in Hindu mythology, referring to the children of Kashyapa and Kala. Sixty-thousand kalakeyas are said to exist, and they are described to fight under the asura banner, under Vritra, as well as other rulers. Hinduism Mahabharata In the Tirtha-yatra Parva of the Mahabharata, the devas requested Sage Agastya to drink the ocean where the kalakeyas resided, so that they may be defeated in battle. After the sage had completed this extraordinary feat, the devas assailed their foes, and were able to vanquish them in battle. The survivors of the sect sought refuge in Patala, the netherworld. In the Vana Parva, the kalakeyas, allied with the nivatakavachas, waged war on the devas, attacking Devaloka. They were able to inflict a defeat on their enemies. In retaliation, Indra tasked his son, Arjuna, with the mission of destroying the nivatakavachas, accompanied by his own charioteer, Matali. After fulfilling this task, while returning to Devaloka, Arjuna came across a splendid city. Matali told him that the city was called Hiranyapura, the golden city, and had been created by Brahma as a result of a boon. The boon had been sought by two asura women named Puloma and Kala, who wished that their sons, the paulomas and the kalakeyas, would be invincible against the devas, the nagas, and the rakshasas. However, they had sought no protection against the human beings. Matali urged Arjuna to destroy them, as they were the enemies of Indra as well. Arjuna attacked Hiranyapura, and the danavas within mounted a powerful defence, boasting skilled warriors and numerous chariots that manouvered artfully against him. Arjuna employed the astra of Shiva against them, which gave rise to various monstrous, multiple-headed beasts that finally devoured the male inhabitants of the city, and the survivors were slain by the prince's barrage of arrows. Buddhism In Buddhism they are called the Kālakañjakas. Referred to as "terrible-faced," these beings are considered to be a class of Asuras. They were present at the preaching of the Mahāsamaya Sutta and are spoken of as being of a fearsome shape (D.ii.259; also DA.iii.789.820). They are the very lowest of those beings in the Asura realm. Bodhisattvas are never born among the Kālakañjakas (J.i.44; BuA.224). Sometimes (E.g., J.v.187; PvA.272), when Asuras are mentioned, the Commentaries explain the word as referring to the Kālakañjakas. Beings born into this state suffer from excessive thirst, which they are unable to quench even by immersing themselves in the Ganges. (For a story of one of them see VibhA.5). The Kājakañjakas resemble the pretas in shape, sex-life, diet and length of life, and they intermarry with them (Kvu.360). See also Asura Daityas Danavas List of Asuras Nivatakavacha References Danavas Hindu mythology Asura
```kotlin /* * that can be found in the LICENSE file. */ package codegen.boxing.boxing15 import kotlin.test.* @Test fun runTest() { println(foo(17)) } fun <T : Int> foo(x: T): Int = x ```
Automixis is the fusion of (typically haploid) nuclei or gametes derived from the same individual. The term covers several reproductive mechanisms, some of which are parthenogenetic. Diploidy might be restored by the doubling of the chromosomes without cell division before meiosis begins or after meiosis is completed. This is referred to as an endomitotic cycle. This may also happen by the fusion of the first two blastomeres. Other species restore their ploidy by the fusion of the meiotic products. The chromosomes may not separate at one of the two anaphases (called restitutional meiosis) or the nuclei produced may fuse or one of the polar bodies may fuse with the egg cell at some stage during its maturation. Some authors consider all forms of automixis sexual as they involve recombination. Many others classify the endomitotic variants as asexual and consider the resulting embryos parthenogenetic. Among these authors, the threshold for classifying automixis as a sexual process depends on when the products of anaphase I or of anaphase II are joined together. The criterion for "sexuality" varies from all cases of restitutional meiosis, to those where the nuclei fuse or to only those where gametes are mature at the time of fusion. Those cases of automixis that are classified as sexual reproduction are compared to self-fertilization in their mechanism and consequences. The genetic composition of the offspring depends on what type of apomixis takes place. When endomitosis occurs before meiosis or when central fusion occurs (restitutional meiosis of anaphase I or the fusion of its products), the offspring get all to more than half of the mother's genetic material and heterozygosity is mostly preserved (if the mother has two alleles for a locus, it is likely that the offspring will get both). This is because in anaphase I the homologous chromosomes are separated. Heterozygosity is not completely preserved when crossing over occurs in central fusion. In the case of pre-meiotic doubling, recombination -if it happens- occurs between identical sister chromatids. If terminal fusion (restitutional meiosis of anaphase II or the fusion of its products) occurs, a little over half the mother's genetic material is present in the offspring and the offspring are mostly homozygous. This is because at anaphase II the sister chromatids are separated and whatever heterozygosity is present is due to crossing over. In the case of endomitosis after meiosis, the offspring is completely homozygous and has only half the mother's genetic material. This can result in parthenogenetic offspring being unique from each other and from their mother. Adaptive benefit of meiosis in automixis The elements of meiosis that are retained in automixis in plants and animals are: (1) pairing of homologous chromosomes, (2) DNA double-strand break formation and (3) homologous recombinational repair at prophase I. These features of meiosis are considered to be adaptations for repair of DNA damage. References Asexual reproduction Zoology
Sepiapterin, also known as 2-amino-6-[(2S)-2-hydroxypropanoyl]-7,8-dihydro-1H-pteridin-4-one, is a member of the pteridine class of organic chemicals. Sepiapterin can be metabolized into tetrahydrobiopterin via a salvage pathway. Tetrahydrobiopterin is an essential cofactor in humans for breakdown of phenylalanine and a catalyst of the metabolism of phenylalanine, tyrosine, and tryptophan to precursors of the neurotransmitters dopamine and serotonin. Deficiency of tetrahydrobiopterin can cause toxic buildup of phenylalanine (phenylketonuria) as well as deficiencies of dopamine, norepinephrine, and epinephrine, leading to dystonia and other neurological illnesses. This has led to clinical study of sepiapterin in humans to treat tetrahydrobiopterin deficiency. Since atherosclerosis and other circulatory diseases associated with diabetes are also associated with tetrahydrobiopterin deficiency, animal studies of the value of sepiaterin in these vascular diseases have been done. These studies show that relaxation of the blood vessels studied was impaired after animals were given sepiapterin, even though their levels of tetrahydrobiopterin were replenished. See also Dihydrobiopterin Tetrahydrobiopterin Dystonia Phenylketonuria Salvage pathway References Pteridines Secondary alcohols Ketones Lactams