text
stringlengths
2
97.5k
meta
dict
package app.extension; import java.util.List; import javax.annotation.Nullable; import app.WorkProcessor; import app.Page; import magnet.Classifier; import magnet.Instance; @Instance(type = Page.class) class HomePageWithManyParameterizedParams<T extends Runnable> implements Page { HomePageWithManyParameterizedParams( List<WorkProcessor<T>> variant1, @Classifier("global") List<WorkProcessor<T>> variant2, @Nullable List<WorkProcessor<T>> variant3, @Nullable @Classifier("global") List<WorkProcessor<T>> variant4 ) { } @Override public void show() { // nop } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Emacs Conference 2013 videos</title> <!-- 2015-10-19 Mon 14:19 --> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="generator" content="Org-mode" /> <link rel="stylesheet" type="text/css" href="../css/foundation.min.css"></link> <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'></link> <link rel="stylesheet" type="text/css" href="../css/org-export.css"></link> <link rel="stylesheet" type="text/css" href="../css/style.css"></link> <link rel="stylesheet" type="text/css" href="../css/emacs-notes.css"></link> <script src="../js/jquery.min.js"></script> <script src="../js/emacs-notes.js"></script> </head> <body> <div id="content"> <h1 class="title">Emacs Conference 2013 videos</h1> <p> April 11th, 2013 - <a href="http://sachachua.com/blog/p/24677"><a href="http://sachachua.com/blog/p/24677">http://sachachua.com/blog/p/24677</a></a> </p> <p> Here are the Emacs Conference 2013 videos! <a href="http://j.mp/emacs2013videos"><a href="http://j.mp/emacs2013videos">http://j.mp/emacs2013videos</a></a> </p> <p> Unfortunately, our keynote wasn't livestreamed, but I managed to <a href="http://archive.org/details/EmacsConf201301KeynoteBySachaChuaAndJohnWiegley">record the audio</a> so that you can hear what John Wiegley and I sound like. </p> <p> I haven't uploaded the Meta-eX performance because it's a music performance. (Sam Aaron, do you want me to go ahead and post it?) </p> <p> Sketchnotes: <a href="http://sachachua.com/blog/2013/04/emacs-conference-2013-sketchnotes-also-pdf/"><a href="http://sachachua.com/blog/2013/04/emacs-conference-2013-sketchnotes-also-pdf/">http://sachachua.com/blog/2013/04/emacs-conference-2013-sketchnotes-also-pdf/</a></a> </p> <p> More Emacs conference information: <a href="http://emacswiki.org/emacs/Emacs_Conference_2013"><a href="http://emacswiki.org/emacs/Emacs\_Conference\_2013">http://emacswiki.org/emacs/Emacs\_Conference\_2013</a></a>, <a href="http://emacsconf.org"><a href="http://emacsconf.org">http://emacsconf.org</a></a> </p> <p> Enjoy! </p> </div> <div id="postamble" class="status"> <div class="back-to-top"><a href="#top">Back to top</a> | <a href="mailto:sacha@sachachua.com">E-mail me</a></div> </div> </body> </html>
{ "pile_set_name": "Github" }
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V28.Segment; using NHapi.Model.V28.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V28.Group { ///<summary> ///Represents the CCR_I16_ROLE_PATHWAY Group. A Group is an ordered collection of message /// segments that can repeat together or be optionally in/excluded together. /// This Group contains the following elements: ///<ol> ///<li>0: ROL (Role) </li> ///<li>1: PRD (Provider Data) </li> ///<li>2: VAR (Variance) optional repeating</li> ///</ol> ///</summary> [Serializable] public class CCR_I16_ROLE_PATHWAY : AbstractGroup { ///<summary> /// Creates a new CCR_I16_ROLE_PATHWAY Group. ///</summary> public CCR_I16_ROLE_PATHWAY(IGroup parent, IModelClassFactory factory) : base(parent, factory){ try { this.add(typeof(ROL), true, false); this.add(typeof(PRD), true, false); this.add(typeof(VAR), false, true); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating CCR_I16_ROLE_PATHWAY - this is probably a bug in the source code generator.", e); } } ///<summary> /// Returns ROL (Role) - creates it if necessary ///</summary> public ROL ROL { get{ ROL ret = null; try { ret = (ROL)this.GetStructure("ROL"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns PRD (Provider Data) - creates it if necessary ///</summary> public PRD PRD { get{ PRD ret = null; try { ret = (PRD)this.GetStructure("PRD"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns first repetition of VAR (Variance) - creates it if necessary ///</summary> public VAR GetVAR() { VAR ret = null; try { ret = (VAR)this.GetStructure("VAR"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } ///<summary> ///Returns a specific repetition of VAR /// * (Variance) - creates it if necessary /// throws HL7Exception if the repetition requested is more than one /// greater than the number of existing repetitions. ///</summary> public VAR GetVAR(int rep) { return (VAR)this.GetStructure("VAR", rep); } /** * Returns the number of existing repetitions of VAR */ public int VARRepetitionsUsed { get{ int reps = -1; try { reps = this.GetAll("VAR").Length; } catch (HL7Exception e) { string message = "Unexpected error accessing data - this is probably a bug in the source code generator."; HapiLogFactory.GetHapiLog(GetType()).Error(message, e); throw new System.Exception(message); } return reps; } } /** * Enumerate over the VAR results */ public IEnumerable<VAR> VARs { get { for (int rep = 0; rep < VARRepetitionsUsed; rep++) { yield return (VAR)this.GetStructure("VAR", rep); } } } ///<summary> ///Adds a new VAR ///</summary> public VAR AddVAR() { return this.AddStructure("VAR") as VAR; } ///<summary> ///Removes the given VAR ///</summary> public void RemoveVAR(VAR toRemove) { this.RemoveStructure("VAR", toRemove); } ///<summary> ///Removes the VAR at the given index ///</summary> public void RemoveVARAt(int index) { this.RemoveRepetition("VAR", index); } } }
{ "pile_set_name": "Github" }
OpenIDE-Module-Display-Category=jMonkeyEngine OpenIDE-Module-Name=GLSL Syntax Highlighter OpenIDE-Module-Short-Description=Adds support for GLSL
{ "pile_set_name": "Github" }
# content-type [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] Create and parse HTTP Content-Type header according to RFC 7231 ## Installation ```sh $ npm install content-type ``` ## API ```js var contentType = require('content-type') ``` ### contentType.parse(string) ```js var obj = contentType.parse('image/svg+xml; charset=utf-8') ``` Parse a content type string. This will return an object with the following properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`): - `type`: The media type (the type and subtype, always lower case). Example: `'image/svg+xml'` - `parameters`: An object of the parameters in the media type (name of parameter always lower case). Example: `{charset: 'utf-8'}` Throws a `TypeError` if the string is missing or invalid. ### contentType.parse(req) ```js var obj = contentType.parse(req) ``` Parse the `content-type` header from the given `req`. Short-cut for `contentType.parse(req.headers['content-type'])`. Throws a `TypeError` if the `Content-Type` header is missing or invalid. ### contentType.parse(res) ```js var obj = contentType.parse(res) ``` Parse the `content-type` header set on the given `res`. Short-cut for `contentType.parse(res.getHeader('content-type'))`. Throws a `TypeError` if the `Content-Type` header is missing or invalid. ### contentType.format(obj) ```js var str = contentType.format({type: 'image/svg+xml'}) ``` Format an object into a content type string. This will return a string of the content type for the given object with the following properties (examples are shown that produce the string `'image/svg+xml; charset=utf-8'`): - `type`: The media type (will be lower-cased). Example: `'image/svg+xml'` - `parameters`: An object of the parameters in the media type (name of the parameter will be lower-cased). Example: `{charset: 'utf-8'}` Throws a `TypeError` if the object contains an invalid type or parameter names. ## License [MIT](LICENSE) [npm-image]: https://img.shields.io/npm/v/content-type.svg [npm-url]: https://npmjs.org/package/content-type [node-version-image]: https://img.shields.io/node/v/content-type.svg [node-version-url]: http://nodejs.org/download/ [travis-image]: https://img.shields.io/travis/jshttp/content-type/master.svg [travis-url]: https://travis-ci.org/jshttp/content-type [coveralls-image]: https://img.shields.io/coveralls/jshttp/content-type/master.svg [coveralls-url]: https://coveralls.io/r/jshttp/content-type [downloads-image]: https://img.shields.io/npm/dm/content-type.svg [downloads-url]: https://npmjs.org/package/content-type
{ "pile_set_name": "Github" }
1 ../common/images/S001-01-t10_01.ppm UNKNOWN 3 ../common/images/S001-03-t10_01.ppm UNKNOWN 5 ../common/images/S001-05-t10_01.ppm UNKNOWN 7 ../common/images/S001-07-t10_01.ppm UNKNOWN 9 ../common/images/S001-08-t10_02.ppm UNKNOWN 11 ../common/images/S001-09-t10_01.ppm UNKNOWN 13 ../common/images/S003-01-t10_01.ppm UNKNOWN 15 ../common/images/S005-01-t10_01.ppm UNKNOWN 17 ../common/images/S006-02-t10_01.ppm UNKNOWN 19 ../common/images/S007-01-t10_01.ppm UNKNOWN 21 ../common/images/S008-02-t10_01.ppm UNKNOWN 23 ../common/images/S008-04-t10_01.ppm UNKNOWN 25 ../common/images/S008-06-t10_01.ppm UNKNOWN 27 ../common/images/S009-01-t10_01.ppm UNKNOWN 29 ../common/images/S011-01-t10_01.ppm UNKNOWN 31 ../common/images/S013-01-t10_01.ppm UNKNOWN 33 ../common/images/S014-01-t10_01.ppm UNKNOWN 35 ../common/images/S015-02-t10_01.ppm UNKNOWN 37 ../common/images/S016-01-t10_01.ppm UNKNOWN 39 ../common/images/S018-01-t10_01.ppm UNKNOWN 41 ../common/images/S020-01-t10_01.ppm UNKNOWN 43 ../common/images/S022-01-t10_01.ppm UNKNOWN 45 ../common/images/S023-01-t10_01.ppm UNKNOWN 47 ../common/images/S023-03-t10_01.ppm UNKNOWN 49 ../common/images/S024-01-t10_01.ppm UNKNOWN 51 ../common/images/S026-01-t10_01.ppm UNKNOWN 53 ../common/images/S027-01-t10_02.ppm UNKNOWN 55 ../common/images/S028-01-t10_01.ppm UNKNOWN 57 ../common/images/S029-02-t10_01.ppm UNKNOWN 59 ../common/images/S030-01-t10_01.ppm UNKNOWN 61 ../common/images/S030-03-t10_01.ppm UNKNOWN 63 ../common/images/S030-05-t10_01.ppm UNKNOWN 65 ../common/images/S031-02-t10_01.ppm UNKNOWN 67 ../common/images/S031-04-t10_01.ppm UNKNOWN 69 ../common/images/S031-06-t10_01.ppm UNKNOWN 71 ../common/images/S032-02-t10_01.ppm UNKNOWN 73 ../common/images/S033-01-t10_01.ppm UNKNOWN 75 ../common/images/S033-03-t10_01.ppm UNKNOWN 77 ../common/images/S033-05-t10_01.ppm UNKNOWN 79 ../common/images/S033-07-t10_01.ppm UNKNOWN 81 ../common/images/S035-01-t10_01.ppm UNKNOWN 83 ../common/images/S036-02-t10_01.ppm UNKNOWN 85 ../common/images/S037-01-t10_01.ppm UNKNOWN 87 ../common/images/S039-01-t10_01.ppm UNKNOWN 89 ../common/images/S041-01-t10_01.ppm UNKNOWN 91 ../common/images/S043-01-t10_01.ppm UNKNOWN 93 ../common/images/S044-02-t10_01.ppm UNKNOWN 95 ../common/images/S044-04-t10_01.ppm UNKNOWN 97 ../common/images/S044-06-t10_01.ppm UNKNOWN 99 ../common/images/S044-08-t10_01.ppm UNKNOWN 101 ../common/images/S045-01-t10_01.ppm UNKNOWN 103 ../common/images/S046-01-t10_01.ppm UNKNOWN 105 ../common/images/S047-01-t10_01.ppm UNKNOWN 107 ../common/images/S048-02-t10_01.ppm UNKNOWN 109 ../common/images/S048-04-t10_01.ppm UNKNOWN 111 ../common/images/S048-06-t10_01.ppm UNKNOWN 113 ../common/images/S049-01-t10_01.ppm UNKNOWN 115 ../common/images/S051-01-t10_01.ppm UNKNOWN 117 ../common/images/S052-01-t10_01.ppm UNKNOWN 119 ../common/images/S052-03-t10_01.ppm UNKNOWN 121 ../common/images/S054-01-t10_01.ppm UNKNOWN 123 ../common/images/S054-03-t10_01.ppm UNKNOWN 125 ../common/images/S056-01-t10_01.ppm UNKNOWN 127 ../common/images/S058-01-t10_01.ppm UNKNOWN 129 ../common/images/S058-03-t10_01.ppm UNKNOWN 131 ../common/images/S059-01-t10_02.ppm UNKNOWN 133 ../common/images/S061-01-t10_01.ppm UNKNOWN 135 ../common/images/S063-01-t10_01.ppm UNKNOWN 137 ../common/images/S064-02-t10_01.ppm UNKNOWN 139 ../common/images/S065-02-t10_01.ppm UNKNOWN 141 ../common/images/S067-01-t10_01.ppm UNKNOWN 143 ../common/images/S068-02-t10_01.ppm UNKNOWN 145 ../common/images/S068-04-t10_01.ppm UNKNOWN 147 ../common/images/S068-06-t10_01.ppm UNKNOWN 149 ../common/images/S069-01-t10_01.ppm UNKNOWN 151 ../common/images/S070-01-t10_01.ppm UNKNOWN 153 ../common/images/S072-01-t10_01.ppm UNKNOWN 155 ../common/images/S073-01-t10_02.ppm UNKNOWN 157 ../common/images/S075-01-t10_01.ppm UNKNOWN 159 ../common/images/S076-02-t10_01.ppm UNKNOWN 161 ../common/images/S078-01-t10_01.ppm UNKNOWN 163 ../common/images/S078-02-t10_02.ppm UNKNOWN 165 ../common/images/S078-04-t10_01.ppm UNKNOWN 167 ../common/images/S080-01-t10_01.ppm UNKNOWN 169 ../common/images/S082-01-t10_01.ppm UNKNOWN 171 ../common/images/S084-01-t10_01.ppm UNKNOWN 173 ../common/images/S085-01-t10_02.ppm UNKNOWN 175 ../common/images/S086-01-t10_01.ppm UNKNOWN 177 ../common/images/S088-01-t10_01.ppm UNKNOWN 179 ../common/images/S089-01-t10_01.ppm UNKNOWN 181 ../common/images/S091-01-t10_01.ppm UNKNOWN 183 ../common/images/S093-01-t10_01.ppm UNKNOWN 185 ../common/images/S094-01-t10_01.ppm UNKNOWN 187 ../common/images/S095-02-t10_01.ppm UNKNOWN 189 ../common/images/S096-02-t10_01.ppm UNKNOWN 191 ../common/images/S098-01-t10_01.ppm UNKNOWN 193 ../common/images/S099-01-t10_01.ppm UNKNOWN 195 ../common/images/S099-03-t10_01.ppm UNKNOWN 197 ../common/images/S101-01-t10_01.ppm UNKNOWN 199 ../common/images/S102-01-t10_01.ppm UNKNOWN 201 ../common/images/S104-01-t10_01.ppm UNKNOWN 203 ../common/images/S106-01-t10_01.ppm UNKNOWN 205 ../common/images/S108-01-t10_01.ppm UNKNOWN 207 ../common/images/S108-03-t10_01.ppm UNKNOWN 209 ../common/images/S109-01-t10_01.ppm UNKNOWN 211 ../common/images/S111-01-t10_01.ppm UNKNOWN 213 ../common/images/S111-03-t10_01.ppm UNKNOWN 215 ../common/images/S111-05-t10_01.ppm UNKNOWN 217 ../common/images/S112-02-t10_01.ppm UNKNOWN 219 ../common/images/S114-01-t10_01.ppm UNKNOWN 221 ../common/images/S116-01-t10_01.ppm UNKNOWN 223 ../common/images/S117-02-t10_01.ppm UNKNOWN 225 ../common/images/S118-02-t10_01.ppm UNKNOWN 227 ../common/images/S119-01-t10_01.ppm UNKNOWN 229 ../common/images/S120-01-t10_02.ppm UNKNOWN 231 ../common/images/S122-01-t10_01.ppm UNKNOWN 233 ../common/images/S124-01-t10_01.ppm UNKNOWN 235 ../common/images/S125-01-t10_01.ppm UNKNOWN 237 ../common/images/S127-01-t10_01.ppm UNKNOWN 239 ../common/images/S129-01-t10_01.ppm UNKNOWN 241 ../common/images/S130-02-t10_01.ppm UNKNOWN 243 ../common/images/S132-01-t10_01.ppm UNKNOWN 245 ../common/images/S133-01-t10_01.ppm UNKNOWN 247 ../common/images/S133-03-t10_01.ppm UNKNOWN 249 ../common/images/S134-02-t10_01.ppm UNKNOWN 251 ../common/images/S134-04-t10_01.ppm UNKNOWN 253 ../common/images/S134-06-t10_01.ppm UNKNOWN 255 ../common/images/S134-08-t10_01.ppm UNKNOWN 257 ../common/images/S136-01-t10_01.ppm UNKNOWN 259 ../common/images/S138-01-t10_01.ppm UNKNOWN 261 ../common/images/S139-01-t10_01.ppm UNKNOWN 263 ../common/images/S141-01-t10_01.ppm UNKNOWN 265 ../common/images/S142-02-t10_01.ppm UNKNOWN 267 ../common/images/S142-04-t10_01.ppm UNKNOWN 269 ../common/images/S142-06-t10_01.ppm UNKNOWN 271 ../common/images/S143-01-t10_01.ppm UNKNOWN 273 ../common/images/S145-01-t10_01.ppm UNKNOWN 275 ../common/images/S146-01-t10_01.ppm UNKNOWN 277 ../common/images/S147-01-t10_01.ppm UNKNOWN 279 ../common/images/S148-02-t10_01.ppm UNKNOWN 281 ../common/images/S148-04-t10_01.ppm UNKNOWN 283 ../common/images/S150-01-t10_01.ppm UNKNOWN 285 ../common/images/S151-01-t10_01.ppm UNKNOWN 287 ../common/images/S153-01-t10_01.ppm UNKNOWN 289 ../common/images/S154-01-t10_01.ppm UNKNOWN 291 ../common/images/S156-01-t10_01.ppm UNKNOWN 293 ../common/images/S158-01-t10_01.ppm UNKNOWN 295 ../common/images/S160-01-t10_01.ppm UNKNOWN 297 ../common/images/S162-01-t10_01.ppm UNKNOWN 299 ../common/images/S163-02-t10_01.ppm UNKNOWN 301 ../common/images/S164-02-t10_01.ppm UNKNOWN 303 ../common/images/S165-01-t10_01.ppm UNKNOWN 305 ../common/images/S166-02-t10_01.ppm UNKNOWN 307 ../common/images/S167-01-t10_01.ppm UNKNOWN 309 ../common/images/S169-01-t10_01.ppm UNKNOWN 311 ../common/images/S171-01-t10_01.ppm UNKNOWN 313 ../common/images/S171-03-t10_01.ppm UNKNOWN 315 ../common/images/S171-05-t10_01.ppm UNKNOWN 317 ../common/images/S171-07-t10_01.ppm UNKNOWN 319 ../common/images/S172-01-t10_01.ppm UNKNOWN 321 ../common/images/S173-02-t10_01.ppm UNKNOWN 323 ../common/images/S174-02-t10_01.ppm UNKNOWN 325 ../common/images/S174-04-t10_01.ppm UNKNOWN 327 ../common/images/S175-01-t10_01.ppm UNKNOWN 329 ../common/images/S177-01-t10_01.ppm UNKNOWN 331 ../common/images/S179-01-t10_01.ppm UNKNOWN 333 ../common/images/S180-01-t10_02.ppm UNKNOWN 335 ../common/images/S182-01-t10_01.ppm UNKNOWN 337 ../common/images/S182-02-t10_02.ppm UNKNOWN 339 ../common/images/S184-01-t10_01.ppm UNKNOWN 341 ../common/images/S185-02-t10_01.ppm UNKNOWN 343 ../common/images/S185-04-t10_01.ppm UNKNOWN 345 ../common/images/S187-01-t10_01.ppm UNKNOWN 347 ../common/images/S189-01-t10_01.ppm UNKNOWN 349 ../common/images/S190-02-t10_01.ppm UNKNOWN 351 ../common/images/S191-01-t10_01.ppm UNKNOWN 353 ../common/images/S192-01-t10_01.ppm UNKNOWN 355 ../common/images/S193-02-t10_01.ppm UNKNOWN 357 ../common/images/S194-02-t10_01.ppm UNKNOWN 359 ../common/images/S195-02-t10_01.ppm UNKNOWN 361 ../common/images/S195-04-t10_01.ppm UNKNOWN 363 ../common/images/S197-01-t10_01.ppm UNKNOWN 365 ../common/images/S198-02-t10_01.ppm UNKNOWN 367 ../common/images/S198-04-t10_01.ppm UNKNOWN 369 ../common/images/S199-01-t10_01.ppm UNKNOWN 371 ../common/images/S200-01-t10_01.ppm UNKNOWN 373 ../common/images/S201-02-t10_01.ppm UNKNOWN 375 ../common/images/S202-01-t10_01.ppm UNKNOWN 377 ../common/images/S202-03-t10_01.ppm UNKNOWN 379 ../common/images/S203-01-t10_01.ppm UNKNOWN 381 ../common/images/S203-02-t10_01.ppm UNKNOWN 383 ../common/images/S204-01-t10_01.ppm UNKNOWN 385 ../common/images/S206-01-t10_01.ppm UNKNOWN 387 ../common/images/S207-01-t10_01.ppm UNKNOWN 389 ../common/images/S209-01-t10_01.ppm UNKNOWN 391 ../common/images/S211-01-t10_01.ppm UNKNOWN 393 ../common/images/S212-02-t10_01.ppm UNKNOWN 395 ../common/images/S213-01-t10_01.ppm UNKNOWN 397 ../common/images/S214-02-t10_01.ppm UNKNOWN 399 ../common/images/S214-04-t10_01.ppm UNKNOWN 401 ../common/images/S215-02-t10_01.ppm UNKNOWN 403 ../common/images/S215-04-t10_01.ppm UNKNOWN 405 ../common/images/S217-01-t10_01.ppm UNKNOWN 407 ../common/images/S219-01-t10_01.ppm UNKNOWN 409 ../common/images/S219-03-t10_01.ppm UNKNOWN 411 ../common/images/S220-02-t10_01.ppm UNKNOWN 413 ../common/images/S222-01-t10_01.ppm UNKNOWN 415 ../common/images/S223-01-t10_01.ppm UNKNOWN 417 ../common/images/S223-03-t10_01.ppm UNKNOWN 419 ../common/images/S225-01-t10_01.ppm UNKNOWN 421 ../common/images/S226-01-t10_01.ppm UNKNOWN 423 ../common/images/S227-01-t10_01.ppm UNKNOWN 425 ../common/images/S228-01-t10_01.ppm UNKNOWN 427 ../common/images/S228-03-t10_01.ppm UNKNOWN 429 ../common/images/S230-01-t10_01.ppm UNKNOWN 431 ../common/images/S232-01-t10_01.ppm UNKNOWN 433 ../common/images/S233-01-t10_01.ppm UNKNOWN 435 ../common/images/S235-01-t10_01.ppm UNKNOWN 437 ../common/images/S236-02-t10_01.ppm UNKNOWN 439 ../common/images/S238-01-t10_01.ppm UNKNOWN 441 ../common/images/S239-02-t10_01.ppm UNKNOWN 443 ../common/images/S240-02-t10_01.ppm UNKNOWN 445 ../common/images/S242-01-t10_01.ppm UNKNOWN 447 ../common/images/S243-02-t10_01.ppm UNKNOWN 449 ../common/images/S243-04-t10_01.ppm UNKNOWN 451 ../common/images/S243-06-t10_01.ppm UNKNOWN 453 ../common/images/S243-08-t10_01.ppm UNKNOWN 455 ../common/images/S244-01-t10_01.ppm UNKNOWN 457 ../common/images/S246-01-t10_01.ppm UNKNOWN 459 ../common/images/S248-01-t10_01.ppm UNKNOWN 461 ../common/images/S249-02-t10_01.ppm UNKNOWN 463 ../common/images/S250-02-t10_01.ppm UNKNOWN 465 ../common/images/S252-01-t10_01.ppm UNKNOWN 467 ../common/images/S253-02-t10_01.ppm UNKNOWN 469 ../common/images/S253-04-t10_01.ppm UNKNOWN 471 ../common/images/S254-02-t10_01.ppm UNKNOWN 473 ../common/images/S255-01-t10_01.ppm UNKNOWN 475 ../common/images/S256-02-t10_01.ppm UNKNOWN 477 ../common/images/S258-01-t10_01.ppm UNKNOWN 479 ../common/images/S259-01-t10_01.ppm UNKNOWN 481 ../common/images/S260-01-t10_01.ppm UNKNOWN 483 ../common/images/S261-02-t10_01.ppm UNKNOWN 485 ../common/images/S263-01-t10_01.ppm UNKNOWN 487 ../common/images/S264-01-t10_01.ppm UNKNOWN 489 ../common/images/S266-01-t10_01.ppm UNKNOWN 491 ../common/images/S268-01-t10_01.ppm UNKNOWN 493 ../common/images/S270-01-t10_01.ppm UNKNOWN 495 ../common/images/S271-01-t10_01.ppm UNKNOWN 497 ../common/images/S272-02-t10_01.ppm UNKNOWN 499 ../common/images/S273-01-t10_01.ppm UNKNOWN 501 ../common/images/S273-03-t10_01.ppm UNKNOWN 503 ../common/images/S273-05-t10_01.ppm UNKNOWN 505 ../common/images/S275-01-t10_01.ppm UNKNOWN 507 ../common/images/S277-01-t10_01.ppm UNKNOWN 509 ../common/images/S279-01-t10_01.ppm UNKNOWN 511 ../common/images/S280-02-t10_01.ppm UNKNOWN 513 ../common/images/S280-04-t10_01.ppm UNKNOWN 515 ../common/images/S280-06-t10_01.ppm UNKNOWN 517 ../common/images/S280-08-t10_01.ppm UNKNOWN 519 ../common/images/S280-10-t10_01.ppm UNKNOWN 521 ../common/images/S282-01-t10_01.ppm UNKNOWN 523 ../common/images/S282-03-t10_01.ppm UNKNOWN 525 ../common/images/S283-02-t10_01.ppm UNKNOWN 527 ../common/images/S284-01-t10_02.ppm UNKNOWN 529 ../common/images/S284-02-t10_02.ppm UNKNOWN 531 ../common/images/S285-01-t10_02.ppm UNKNOWN 533 ../common/images/S287-01-t10_01.ppm UNKNOWN 535 ../common/images/S288-02-t10_01.ppm UNKNOWN 537 ../common/images/S288-04-t10_01.ppm UNKNOWN 539 ../common/images/S289-01-t10_01.ppm UNKNOWN 541 ../common/images/S291-01-t10_01.ppm UNKNOWN 543 ../common/images/S292-01-t10_01.ppm UNKNOWN 545 ../common/images/S294-01-t10_01.ppm UNKNOWN 547 ../common/images/S295-01-t10_02.ppm UNKNOWN 549 ../common/images/S296-02-t10_01.ppm UNKNOWN 551 ../common/images/S296-04-t10_01.ppm UNKNOWN 553 ../common/images/S296-06-t10_01.ppm UNKNOWN 555 ../common/images/S296-08-t10_01.ppm UNKNOWN 557 ../common/images/S296-10-t10_01.ppm UNKNOWN 559 ../common/images/S297-02-t10_01.ppm UNKNOWN 561 ../common/images/S299-01-t10_01.ppm UNKNOWN 563 ../common/images/S300-02-t10_01.ppm UNKNOWN 565 ../common/images/S302-01-t10_01.ppm UNKNOWN 567 ../common/images/S304-01-t10_01.ppm UNKNOWN 569 ../common/images/S304-03-t10_01.ppm UNKNOWN 571 ../common/images/S306-01-t10_01.ppm UNKNOWN 573 ../common/images/S307-01-t10_02.ppm UNKNOWN 575 ../common/images/S309-01-t10_01.ppm UNKNOWN 577 ../common/images/S309-03-t10_01.ppm UNKNOWN 579 ../common/images/S309-05-t10_01.ppm UNKNOWN 581 ../common/images/S310-02-t10_01.ppm UNKNOWN 583 ../common/images/S310-04-t10_01.ppm UNKNOWN 585 ../common/images/S312-01-t10_01.ppm UNKNOWN 587 ../common/images/S313-02-t10_01.ppm UNKNOWN 589 ../common/images/S315-01-t10_01.ppm UNKNOWN 591 ../common/images/S315-02-t10_01.ppm UNKNOWN 593 ../common/images/S316-01-t10_01.ppm UNKNOWN 595 ../common/images/S316-03-t10_01.ppm UNKNOWN 597 ../common/images/S316-05-t10_01.ppm UNKNOWN 599 ../common/images/S316-07-t10_01.ppm UNKNOWN 601 ../common/images/S317-01-t10_01.ppm UNKNOWN 603 ../common/images/S319-01-t10_01.ppm UNKNOWN 605 ../common/images/S321-01-t10_01.ppm UNKNOWN 607 ../common/images/S321-03-t10_01.ppm UNKNOWN 609 ../common/images/S322-01-t10_01.ppm UNKNOWN 611 ../common/images/S324-01-t10_01.ppm UNKNOWN 613 ../common/images/S325-01-t10_01.ppm UNKNOWN 615 ../common/images/S326-01-t10_01.ppm UNKNOWN 617 ../common/images/S328-01-t10_01.ppm UNKNOWN 619 ../common/images/S330-01-t10_01.ppm UNKNOWN 621 ../common/images/S331-02-t10_01.ppm UNKNOWN 623 ../common/images/S333-01-t10_01.ppm UNKNOWN 625 ../common/images/S334-01-t10_01.ppm UNKNOWN 627 ../common/images/S335-02-t10_01.ppm UNKNOWN 629 ../common/images/S336-02-t10_01.ppm UNKNOWN 631 ../common/images/S338-01-t10_01.ppm UNKNOWN 633 ../common/images/S340-01-t10_01.ppm UNKNOWN 635 ../common/images/S341-02-t10_01.ppm UNKNOWN 637 ../common/images/S343-01-t10_01.ppm UNKNOWN 639 ../common/images/S345-01-t10_01.ppm UNKNOWN 641 ../common/images/S346-02-t10_01.ppm UNKNOWN 643 ../common/images/S347-01-t10_01.ppm UNKNOWN 645 ../common/images/S349-01-t10_01.ppm UNKNOWN 647 ../common/images/S350-02-t10_01.ppm UNKNOWN 649 ../common/images/S351-02-t10_01.ppm UNKNOWN 651 ../common/images/S352-02-t10_01.ppm UNKNOWN 653 ../common/images/S352-04-t10_01.ppm UNKNOWN 655 ../common/images/S353-02-t10_01.ppm UNKNOWN 657 ../common/images/S353-04-t10_01.ppm UNKNOWN 659 ../common/images/S353-06-t10_01.ppm UNKNOWN 661 ../common/images/S353-08-t10_01.ppm UNKNOWN 663 ../common/images/S354-02-t10_01.ppm UNKNOWN 665 ../common/images/S354-04-t10_01.ppm UNKNOWN 667 ../common/images/S355-02-t10_01.ppm UNKNOWN 669 ../common/images/S357-01-t10_01.ppm UNKNOWN 671 ../common/images/S358-01-t10_01.ppm UNKNOWN 673 ../common/images/S360-01-t10_01.ppm UNKNOWN 675 ../common/images/S362-01-t10_01.ppm UNKNOWN 677 ../common/images/S364-01-t10_01.ppm UNKNOWN 679 ../common/images/S365-01-t10_01.ppm UNKNOWN 681 ../common/images/S367-01-t10_01.ppm UNKNOWN 683 ../common/images/S368-01-t10_01.ppm UNKNOWN 685 ../common/images/S370-01-t10_01.ppm UNKNOWN 687 ../common/images/S372-01-t10_01.ppm UNKNOWN 689 ../common/images/S373-02-t10_01.ppm UNKNOWN 691 ../common/images/S373-04-t10_01.ppm UNKNOWN 693 ../common/images/S373-06-t10_01.ppm UNKNOWN 695 ../common/images/S375-01-t10_01.ppm UNKNOWN 697 ../common/images/S376-01-t10_01.ppm UNKNOWN 699 ../common/images/S376-03-t10_01.ppm UNKNOWN 701 ../common/images/S378-01-t10_01.ppm UNKNOWN 703 ../common/images/S380-01-t10_01.ppm UNKNOWN 705 ../common/images/S380-03-t10_01.ppm UNKNOWN 707 ../common/images/S380-05-t10_01.ppm UNKNOWN 709 ../common/images/S380-07-t10_01.ppm UNKNOWN 711 ../common/images/S381-02-t10_01.ppm UNKNOWN 713 ../common/images/S382-02-t10_01.ppm UNKNOWN 715 ../common/images/S382-04-t10_01.ppm UNKNOWN 717 ../common/images/S382-06-t10_01.ppm UNKNOWN 719 ../common/images/S382-08-t10_01.ppm UNKNOWN 721 ../common/images/S382-10-t10_01.ppm UNKNOWN 723 ../common/images/S383-02-t10_01.ppm UNKNOWN 725 ../common/images/S384-02-t10_01.ppm UNKNOWN 727 ../common/images/S385-02-t10_01.ppm UNKNOWN 729 ../common/images/S386-02-t10_01.ppm UNKNOWN 731 ../common/images/S386-04-t10_01.ppm UNKNOWN 733 ../common/images/S386-06-t10_01.ppm UNKNOWN 735 ../common/images/S386-08-t10_01.ppm UNKNOWN 737 ../common/images/S387-02-t10_01.ppm UNKNOWN 739 ../common/images/S388-01-t10_01.ppm UNKNOWN 741 ../common/images/S388-03-t10_01.ppm UNKNOWN 743 ../common/images/S388-05-t10_01.ppm UNKNOWN 745 ../common/images/S388-07-t10_01.ppm UNKNOWN 747 ../common/images/S388-09-t10_01.ppm UNKNOWN 749 ../common/images/S388-11-t10_01.ppm UNKNOWN 751 ../common/images/S388-13-t10_01.ppm UNKNOWN 753 ../common/images/S388-15-t10_01.ppm UNKNOWN 755 ../common/images/S388-17-t10_01.ppm UNKNOWN 757 ../common/images/S389-01-t10_01.ppm UNKNOWN 759 ../common/images/S390-01-t10_01.ppm UNKNOWN 761 ../common/images/S391-01-t10_01.ppm UNKNOWN 763 ../common/images/S391-03-t10_01.ppm UNKNOWN 765 ../common/images/S392-02-t10_01.ppm UNKNOWN 767 ../common/images/S392-04-t10_01.ppm UNKNOWN 769 ../common/images/S392-06-t10_01.ppm UNKNOWN 771 ../common/images/S392-08-t10_01.ppm UNKNOWN 773 ../common/images/S393-02-t10_01.ppm UNKNOWN 775 ../common/images/S393-04-t10_01.ppm UNKNOWN 777 ../common/images/S394-02-t10_01.ppm UNKNOWN 779 ../common/images/S394-04-t10_01.ppm UNKNOWN 781 ../common/images/S395-01-t10_01.ppm UNKNOWN 783 ../common/images/S396-01-t10_01.ppm UNKNOWN 785 ../common/images/S396-03-t10_01.ppm UNKNOWN 787 ../common/images/S396-05-t10_01.ppm UNKNOWN 789 ../common/images/S396-07-t10_01.ppm UNKNOWN 791 ../common/images/S396-09-t10_01.ppm UNKNOWN 793 ../common/images/S396-11-t10_01.ppm UNKNOWN 795 ../common/images/S397-02-t10_01.ppm UNKNOWN 797 ../common/images/S397-03-t10_01.ppm UNKNOWN 799 ../common/images/S398-01-t10_01.ppm UNKNOWN 801 ../common/images/S398-03-t10_01.ppm UNKNOWN 803 ../common/images/S399-02-t10_01.ppm UNKNOWN 805 ../common/images/S399-04-t10_01.ppm UNKNOWN 807 ../common/images/S399-06-t10_01.ppm UNKNOWN 809 ../common/images/S400-02-t10_01.ppm UNKNOWN 811 ../common/images/S401-01-t10_01.ppm UNKNOWN 813 ../common/images/S401-03-t10_01.ppm UNKNOWN 815 ../common/images/S401-05-t10_01.ppm UNKNOWN 817 ../common/images/S401-07-t10_01.ppm UNKNOWN 819 ../common/images/S401-09-t10_01.ppm UNKNOWN 821 ../common/images/S402-02-t10_01.ppm UNKNOWN 823 ../common/images/S403-02-t10_01.ppm UNKNOWN 825 ../common/images/S403-04-t10_01.ppm UNKNOWN 827 ../common/images/S404-02-t10_01.ppm UNKNOWN 829 ../common/images/S404-04-t10_01.ppm UNKNOWN 831 ../common/images/S404-06-t10_01.ppm UNKNOWN 833 ../common/images/S404-08-t10_01.ppm UNKNOWN 835 ../common/images/S404-10-t10_01.ppm UNKNOWN 837 ../common/images/S404-12-t10_01.ppm UNKNOWN 839 ../common/images/S405-01-t10_01.ppm UNKNOWN 841 ../common/images/S405-03-t10_01.ppm UNKNOWN 843 ../common/images/S405-05-t10_01.ppm UNKNOWN 845 ../common/images/S405-07-t10_01.ppm UNKNOWN 847 ../common/images/S406-02-t10_01.ppm UNKNOWN 849 ../common/images/S407-02-t10_01.ppm UNKNOWN 851 ../common/images/S407-03-t10_02.ppm UNKNOWN 853 ../common/images/S408-01-t10_01.ppm UNKNOWN 855 ../common/images/S409-01-t10_01.ppm UNKNOWN 857 ../common/images/S409-03-t10_01.ppm UNKNOWN 859 ../common/images/S409-05-t10_01.ppm UNKNOWN 861 ../common/images/S409-07-t10_01.ppm UNKNOWN 863 ../common/images/S409-09-t10_01.ppm UNKNOWN 865 ../common/images/S409-11-t10_01.ppm UNKNOWN 867 ../common/images/S411-01-t10_01.ppm UNKNOWN 869 ../common/images/S411-03-t10_01.ppm UNKNOWN 871 ../common/images/S411-05-t10_01.ppm UNKNOWN 873 ../common/images/S411-06-t10_02.ppm UNKNOWN 875 ../common/images/S412-01-t10_01.ppm UNKNOWN 877 ../common/images/S412-03-t10_01.ppm UNKNOWN 879 ../common/images/S413-02-t10_01.ppm UNKNOWN 881 ../common/images/S413-04-t10_01.ppm UNKNOWN 883 ../common/images/S413-06-t10_01.ppm UNKNOWN 885 ../common/images/S413-08-t10_01.ppm UNKNOWN 887 ../common/images/S413-10-t10_01.ppm UNKNOWN 889 ../common/images/S414-02-t10_01.ppm UNKNOWN 891 ../common/images/S414-04-t10_01.ppm UNKNOWN 893 ../common/images/S414-06-t10_01.ppm UNKNOWN 895 ../common/images/S414-08-t10_01.ppm UNKNOWN 897 ../common/images/S414-10-t10_01.ppm UNKNOWN 899 ../common/images/S415-01-t10_01.ppm UNKNOWN 901 ../common/images/S415-03-t10_01.ppm UNKNOWN 903 ../common/images/S415-05-t10_01.ppm UNKNOWN 905 ../common/images/S415-07-t10_01.ppm UNKNOWN 907 ../common/images/S416-02-t10_01.ppm UNKNOWN 909 ../common/images/S417-02-t10_01.ppm UNKNOWN 911 ../common/images/S417-04-t10_01.ppm UNKNOWN 913 ../common/images/S417-06-t10_01.ppm UNKNOWN 915 ../common/images/S417-08-t10_01.ppm UNKNOWN 917 ../common/images/S418-02-t10_01.ppm UNKNOWN 919 ../common/images/S419-01-t10_01.ppm UNKNOWN 921 ../common/images/S419-03-t10_01.ppm UNKNOWN 923 ../common/images/S419-05-t10_01.ppm UNKNOWN 925 ../common/images/S419-07-t10_01.ppm UNKNOWN 927 ../common/images/S419-09-t10_01.ppm UNKNOWN 929 ../common/images/S420-01-t10_01.ppm UNKNOWN 931 ../common/images/S420-03-t10_01.ppm UNKNOWN 933 ../common/images/S420-05-t10_01.ppm UNKNOWN 935 ../common/images/S421-01-t10_01.ppm UNKNOWN 937 ../common/images/S422-01-t10_01.ppm UNKNOWN 939 ../common/images/S422-03-t10_01.ppm UNKNOWN 941 ../common/images/S423-01-t10_01.ppm UNKNOWN 943 ../common/images/S423-03-t10_01.ppm UNKNOWN 945 ../common/images/S424-01-t10_01.ppm UNKNOWN 947 ../common/images/S425-02-t10_01.ppm UNKNOWN 949 ../common/images/S425-04-t10_01.ppm UNKNOWN 951 ../common/images/S425-06-t10_01.ppm UNKNOWN 953 ../common/images/S425-08-t10_01.ppm UNKNOWN 955 ../common/images/S426-01-t10_02.ppm UNKNOWN 957 ../common/images/S426-02-t10_02.ppm UNKNOWN 959 ../common/images/S427-02-t10_01.ppm UNKNOWN 961 ../common/images/S427-04-t10_01.ppm UNKNOWN 963 ../common/images/S428-02-t10_01.ppm UNKNOWN 965 ../common/images/S428-04-t10_01.ppm UNKNOWN 967 ../common/images/S428-06-t10_01.ppm UNKNOWN 969 ../common/images/S429-01-t10_01.ppm UNKNOWN 971 ../common/images/S429-03-t10_01.ppm UNKNOWN 973 ../common/images/S429-05-t10_01.ppm UNKNOWN 975 ../common/images/S429-07-t10_01.ppm UNKNOWN 977 ../common/images/S429-09-t10_01.ppm UNKNOWN 979 ../common/images/S430-01-t10_01.ppm UNKNOWN 981 ../common/images/S430-03-t10_01.ppm UNKNOWN 983 ../common/images/S430-05-t10_01.ppm UNKNOWN 985 ../common/images/S431-01-t10_01.ppm UNKNOWN 987 ../common/images/S431-03-t10_01.ppm UNKNOWN 989 ../common/images/S432-02-t10_01.ppm UNKNOWN 991 ../common/images/S433-01-t10_01.ppm UNKNOWN 993 ../common/images/S433-03-t10_01.ppm UNKNOWN 995 ../common/images/S433-05-t10_01.ppm UNKNOWN 997 ../common/images/S434-02-t10_01.ppm UNKNOWN 999 ../common/images/S435-02-t10_01.ppm UNKNOWN 1001 ../common/images/S436-01-t10_01.ppm UNKNOWN 1003 ../common/images/S436-02-t10_02.ppm UNKNOWN 1005 ../common/images/S438-01-t10_01.ppm UNKNOWN 1007 ../common/images/S439-02-t10_01.ppm UNKNOWN 1009 ../common/images/S439-04-t10_01.ppm UNKNOWN 1011 ../common/images/S439-06-t10_01.ppm UNKNOWN 1013 ../common/images/S439-08-t10_01.ppm UNKNOWN 1015 ../common/images/S439-08-t10_03.ppm UNKNOWN 1017 ../common/images/S440-02-t10_01.ppm UNKNOWN 1019 ../common/images/S440-04-t10_01.ppm UNKNOWN 1021 ../common/images/S441-01-t10_01.ppm UNKNOWN 1023 ../common/images/S442-02-t10_01.ppm UNKNOWN 1025 ../common/images/S443-02-t10_01.ppm UNKNOWN 1027 ../common/images/S443-04-t10_01.ppm UNKNOWN 1029 ../common/images/S443-06-t10_01.ppm UNKNOWN 1031 ../common/images/S445-01-t10_01.ppm UNKNOWN 1033 ../common/images/S446-01-t10_01.ppm UNKNOWN 1035 ../common/images/S447-01-t10_01.ppm UNKNOWN 1037 ../common/images/S447-03-t10_01.ppm UNKNOWN 1039 ../common/images/S447-05-t10_01.ppm UNKNOWN 1041 ../common/images/S448-02-t10_01.ppm UNKNOWN 1043 ../common/images/S449-02-t10_01.ppm UNKNOWN 1045 ../common/images/S449-03-t10_02.ppm UNKNOWN 1047 ../common/images/S449-04-t10_01.ppm UNKNOWN 1049 ../common/images/S449-05-t10_02.ppm UNKNOWN 1051 ../common/images/S450-01-t10_01.ppm UNKNOWN 1053 ../common/images/S450-03-t10_01.ppm UNKNOWN 1055 ../common/images/S450-05-t10_01.ppm UNKNOWN 1057 ../common/images/S450-07-t10_01.ppm UNKNOWN 1059 ../common/images/S450-09-t10_01.ppm UNKNOWN 1061 ../common/images/S450-11-t10_01.ppm UNKNOWN 1063 ../common/images/S451-02-t10_01.ppm UNKNOWN 1065 ../common/images/S452-02-t10_01.ppm UNKNOWN 1067 ../common/images/S452-02-t10_03.ppm UNKNOWN 1069 ../common/images/S452-03-t10_02.ppm UNKNOWN 1071 ../common/images/S453-01-t10_01.ppm UNKNOWN 1073 ../common/images/S453-03-t10_01.ppm UNKNOWN 1075 ../common/images/S453-05-t10_01.ppm UNKNOWN 1077 ../common/images/S453-07-t10_01.ppm UNKNOWN 1079 ../common/images/S453-09-t10_01.ppm UNKNOWN 1081 ../common/images/S453-11-t10_01.ppm UNKNOWN 1083 ../common/images/S453-11-t10_03.ppm UNKNOWN 1085 ../common/images/S453-13-t10_01.ppm UNKNOWN 1087 ../common/images/S453-15-t10_01.ppm UNKNOWN 1089 ../common/images/S454-01-t10_01.ppm UNKNOWN 1091 ../common/images/S455-01-t10_01.ppm UNKNOWN 1093 ../common/images/S456-01-t10_01.ppm UNKNOWN 1095 ../common/images/S457-01-t10_01.ppm UNKNOWN 1097 ../common/images/S457-03-t10_01.ppm UNKNOWN 1099 ../common/images/S457-05-t10_01.ppm UNKNOWN 1101 ../common/images/S459-01-t10_01.ppm UNKNOWN 1103 ../common/images/S460-02-t10_01.ppm UNKNOWN 1105 ../common/images/S461-02-t10_01.ppm UNKNOWN 1107 ../common/images/S461-04-t10_01.ppm UNKNOWN 1109 ../common/images/S461-06-t10_01.ppm UNKNOWN 1111 ../common/images/S461-08-t10_01.ppm UNKNOWN 1113 ../common/images/S461-10-t10_01.ppm UNKNOWN 1115 ../common/images/S462-01-t10_01.ppm UNKNOWN 1117 ../common/images/S463-01-t10_02.ppm UNKNOWN 1119 ../common/images/S463-02-t10_02.ppm UNKNOWN 1121 ../common/images/S464-01-t10_02.ppm UNKNOWN 1123 ../common/images/S465-01-t10_01.ppm UNKNOWN 1125 ../common/images/S465-02-t10_02.ppm UNKNOWN 1127 ../common/images/S466-02-t10_01.ppm UNKNOWN 1129 ../common/images/S466-04-t10_01.ppm UNKNOWN 1131 ../common/images/S466-06-t10_01.ppm UNKNOWN 1133 ../common/images/S467-02-t10_01.ppm UNKNOWN 1135 ../common/images/S468-01-t10_01.ppm UNKNOWN 1137 ../common/images/S468-02-t10_01.ppm UNKNOWN 1139 ../common/images/S469-01-t10_01.ppm UNKNOWN 1141 ../common/images/S469-03-t10_01.ppm UNKNOWN 1143 ../common/images/S469-05-t10_01.ppm UNKNOWN 1145 ../common/images/S470-02-t10_01.ppm UNKNOWN 1147 ../common/images/S471-01-t10_01.ppm UNKNOWN 1149 ../common/images/S471-03-t10_01.ppm UNKNOWN 1151 ../common/images/S471-05-t10_01.ppm UNKNOWN 1153 ../common/images/S472-01-t10_01.ppm UNKNOWN 1155 ../common/images/S472-03-t10_01.ppm UNKNOWN 1157 ../common/images/S473-02-t10_01.ppm UNKNOWN 1159 ../common/images/S473-04-t10_01.ppm UNKNOWN 1161 ../common/images/S474-01-t10_01.ppm UNKNOWN 1163 ../common/images/S475-01-t10_01.ppm UNKNOWN 1165 ../common/images/S475-01-t10_03.ppm UNKNOWN 1167 ../common/images/S475-02-t10_02.ppm UNKNOWN 1169 ../common/images/S476-02-t10_01.ppm UNKNOWN 1171 ../common/images/S477-01-t10_01.ppm UNKNOWN 1173 ../common/images/S478-01-t10_01.ppm UNKNOWN 1175 ../common/images/S478-03-t10_01.ppm UNKNOWN 1177 ../common/images/S479-02-t10_01.ppm UNKNOWN 1179 ../common/images/S480-02-t10_01.ppm UNKNOWN 1181 ../common/images/S481-01-t10_01.ppm UNKNOWN 1183 ../common/images/S481-02-t10_02.ppm UNKNOWN 1185 ../common/images/S482-01-t10_01.ppm UNKNOWN 1187 ../common/images/S483-01-t10_01.ppm UNKNOWN 1189 ../common/images/S483-02-t10_02.ppm UNKNOWN 1191 ../common/images/S483-03-t10_01.ppm UNKNOWN 1193 ../common/images/S483-04-t10_02.ppm UNKNOWN 1195 ../common/images/S483-05-t10_01.ppm UNKNOWN 1197 ../common/images/S484-02-t10_01.ppm UNKNOWN 1199 ../common/images/S485-02-t10_01.ppm UNKNOWN 1201 ../common/images/S486-01-t10_01.ppm UNKNOWN 1203 ../common/images/S486-03-t10_01.ppm UNKNOWN 1205 ../common/images/S487-01-t10_01.ppm UNKNOWN 1207 ../common/images/S487-02-t10_01.ppm UNKNOWN 1209 ../common/images/S488-01-t10_01.ppm UNKNOWN 1211 ../common/images/S489-02-t10_01.ppm UNKNOWN 1213 ../common/images/S490-01-t10_01.ppm UNKNOWN 1215 ../common/images/S491-01-t10_01.ppm UNKNOWN 1217 ../common/images/S491-03-t10_01.ppm UNKNOWN 1219 ../common/images/S492-02-t10_01.ppm UNKNOWN 1221 ../common/images/S493-02-t10_01.ppm UNKNOWN 1223 ../common/images/S494-01-t10_01.ppm UNKNOWN 1225 ../common/images/S494-01-t10_03.ppm UNKNOWN 1227 ../common/images/S494-02-t10_02.ppm UNKNOWN 1229 ../common/images/S495-01-t10_01.ppm UNKNOWN 1231 ../common/images/S495-02-t10_02.ppm UNKNOWN 1233 ../common/images/S496-01-t10_01.ppm UNKNOWN 1235 ../common/images/S497-01-t10_01.ppm UNKNOWN 1237 ../common/images/S497-03-t10_01.ppm UNKNOWN 1239 ../common/images/S498-01-t10_01.ppm UNKNOWN 1241 ../common/images/S499-01-t10_01.ppm UNKNOWN 1243 ../common/images/S499-03-t10_01.ppm UNKNOWN 1245 ../common/images/S499-05-t10_01.ppm UNKNOWN 1247 ../common/images/S500-01-t10_01.ppm UNKNOWN 1249 ../common/images/S500-01-t10_03.ppm UNKNOWN 1251 ../common/images/S500-02-t10_02.ppm UNKNOWN 1253 ../common/images/S501-01-t10_01.ppm UNKNOWN 1255 ../common/images/S501-03-t10_01.ppm UNKNOWN 1257 ../common/images/S501-05-t10_01.ppm UNKNOWN 1259 ../common/images/S502-01-t10_01.ppm UNKNOWN 1261 ../common/images/S502-02-t10_01.ppm UNKNOWN 1263 ../common/images/S503-01-t10_01.ppm UNKNOWN 1265 ../common/images/S503-03-t10_01.ppm UNKNOWN 1267 ../common/images/S504-02-t10_01.ppm UNKNOWN 1269 ../common/images/S504-03-t10_02.ppm UNKNOWN 1271 ../common/images/S505-02-t10_01.ppm UNKNOWN 1273 ../common/images/S506-01-t10_02.ppm UNKNOWN 1275 ../common/images/S506-02-t10_02.ppm UNKNOWN 1277 ../common/images/S506-03-t10_02.ppm UNKNOWN 1279 ../common/images/S507-02-t10_01.ppm UNKNOWN 1281 ../common/images/S507-04-t10_01.ppm UNKNOWN 1283 ../common/images/S508-02-t10_01.ppm UNKNOWN 1285 ../common/images/S509-01-t10_02.ppm UNKNOWN 1287 ../common/images/S510-02-t10_01.ppm UNKNOWN 1289 ../common/images/S510-04-t10_01.ppm UNKNOWN 1291 ../common/images/S511-01-t10_02.ppm UNKNOWN 1293 ../common/images/S512-02-t10_01.ppm UNKNOWN 1295 ../common/images/S513-02-t10_01.ppm UNKNOWN 1297 ../common/images/S514-01-t10_02.ppm UNKNOWN 1299 ../common/images/S516-01-t10_01.ppm UNKNOWN 1301 ../common/images/S517-01-t10_01.ppm UNKNOWN 1303 ../common/images/S518-01-t10_01.ppm UNKNOWN 1305 ../common/images/S518-02-t10_01.ppm UNKNOWN 1307 ../common/images/white.ppm UNKNOWN 1309 ../common/images/8bit.pgm UNKNOWN 1310 ../common/images/big.ppm UNKNOWN 1311 ../common/images/eyesClosed.ppm UNKNOWN 1312 ../common/images/multi1.ppm UNKNOWN 1313 ../common/images/multi2.ppm UNKNOWN 1314 ../common/images/rotated180.ppm UNKNOWN 1315 ../common/images/rotated90.ppm UNKNOWN 1316 ../common/images/small.ppm UNKNOWN
{ "pile_set_name": "Github" }
<?php namespace Drupal\Tests\Component\Plugin; use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \Drupal\Component\Plugin\PluginBase * @group Plugin */ class PluginBaseTest extends TestCase { /** * @dataProvider providerTestGetPluginId * @covers ::getPluginId */ public function testGetPluginId($plugin_id, $expected) { $plugin_base = $this->getMockForAbstractClass('Drupal\Component\Plugin\PluginBase', [ [], $plugin_id, [], ]); $this->assertEquals($expected, $plugin_base->getPluginId()); } /** * Returns test data for testGetPluginId(). * * @return array */ public function providerTestGetPluginId() { return [ ['base_id', 'base_id'], ['base_id:derivative', 'base_id:derivative'], ]; } /** * @dataProvider providerTestGetBaseId * @coves ::getBaseId */ public function testGetBaseId($plugin_id, $expected) { /** @var \Drupal\Component\Plugin\PluginBase|\PHPUnit\Framework\MockObject\MockObject $plugin_base */ $plugin_base = $this->getMockForAbstractClass('Drupal\Component\Plugin\PluginBase', [ [], $plugin_id, [], ]); $this->assertEquals($expected, $plugin_base->getBaseId()); } /** * Returns test data for testGetBaseId(). * * @return array */ public function providerTestGetBaseId() { return [ ['base_id', 'base_id'], ['base_id:derivative', 'base_id'], ]; } /** * @dataProvider providerTestGetDerivativeId * @covers ::getDerivativeId */ public function testGetDerivativeId($plugin_id = NULL, $expected = NULL) { /** @var \Drupal\Component\Plugin\PluginBase|\PHPUnit\Framework\MockObject\MockObject $plugin_base */ $plugin_base = $this->getMockForAbstractClass('Drupal\Component\Plugin\PluginBase', [ [], $plugin_id, [], ]); $this->assertEquals($expected, $plugin_base->getDerivativeId()); } /** * Returns test data for testGetDerivativeId(). * * @return array */ public function providerTestGetDerivativeId() { return [ ['base_id', NULL], ['base_id:derivative', 'derivative'], ]; } /** * @covers ::getPluginDefinition */ public function testGetPluginDefinition() { $plugin_base = $this->getMockForAbstractClass('Drupal\Component\Plugin\PluginBase', [ [], 'plugin_id', ['value', ['key' => 'value']], ]); $this->assertEquals(['value', ['key' => 'value']], $plugin_base->getPluginDefinition()); } }
{ "pile_set_name": "Github" }
package discovery import ( "encoding/json" "log" "runtime" "time" "github.com/coreos/etcd/client" "golang.org/x/net/context" ) type Worker struct { Name string IP string KeysAPI client.KeysAPI } // workerInfo is the service register information to etcd type WorkerInfo struct { Name string IP string CPU int } func NewWorker(name, IP string, endpoints []string) *Worker { cfg := client.Config{ Endpoints: endpoints, Transport: client.DefaultTransport, HeaderTimeoutPerRequest: time.Second, } etcdClient, err := client.New(cfg) if err != nil { log.Fatal("Error: cannot connec to etcd:", err) } w := &Worker{ Name: name, IP: IP, KeysAPI: client.NewKeysAPI(etcdClient), } return w } func (w *Worker) HeartBeat() { api := w.KeysAPI for { info := &WorkerInfo{ Name: w.Name, IP: w.IP, CPU: runtime.NumCPU(), } key := "workers/" + w.Name value, _ := json.Marshal(info) _, err := api.Set(context.Background(), key, string(value), &client.SetOptions{ TTL: time.Second * 10, }) if err != nil { log.Println("Error update workerInfo:", err) } time.Sleep(time.Second * 3) } }
{ "pile_set_name": "Github" }
/* * Copyright 2019 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * */ #include <linux/firmware.h> #include <linux/module.h> #include "amdgpu.h" #include "soc15_common.h" #include "nv.h" #include "gc/gc_10_1_0_offset.h" #include "gc/gc_10_1_0_sh_mask.h" #include "v10_structs.h" #include "mes_api_def.h" #define mmCP_MES_IC_OP_CNTL_Sienna_Cichlid 0x2820 #define mmCP_MES_IC_OP_CNTL_Sienna_Cichlid_BASE_IDX 1 MODULE_FIRMWARE("amdgpu/navi10_mes.bin"); MODULE_FIRMWARE("amdgpu/sienna_cichlid_mes.bin"); static int mes_v10_1_hw_fini(void *handle); #define MES_EOP_SIZE 2048 static void mes_v10_1_ring_set_wptr(struct amdgpu_ring *ring) { struct amdgpu_device *adev = ring->adev; if (ring->use_doorbell) { atomic64_set((atomic64_t*)&adev->wb.wb[ring->wptr_offs], ring->wptr); WDOORBELL64(ring->doorbell_index, ring->wptr); } else { BUG(); } } static u64 mes_v10_1_ring_get_rptr(struct amdgpu_ring *ring) { return ring->adev->wb.wb[ring->rptr_offs]; } static u64 mes_v10_1_ring_get_wptr(struct amdgpu_ring *ring) { u64 wptr; if (ring->use_doorbell) wptr = atomic64_read((atomic64_t *) &ring->adev->wb.wb[ring->wptr_offs]); else BUG(); return wptr; } static const struct amdgpu_ring_funcs mes_v10_1_ring_funcs = { .type = AMDGPU_RING_TYPE_MES, .align_mask = 1, .nop = 0, .support_64bit_ptrs = true, .get_rptr = mes_v10_1_ring_get_rptr, .get_wptr = mes_v10_1_ring_get_wptr, .set_wptr = mes_v10_1_ring_set_wptr, .insert_nop = amdgpu_ring_insert_nop, }; static int mes_v10_1_submit_pkt_and_poll_completion(struct amdgpu_mes *mes, void *pkt, int size) { int ndw = size / 4; signed long r; union MESAPI__ADD_QUEUE *x_pkt = pkt; struct amdgpu_device *adev = mes->adev; struct amdgpu_ring *ring = &mes->ring; BUG_ON(size % 4 != 0); if (amdgpu_ring_alloc(ring, ndw)) return -ENOMEM; amdgpu_ring_write_multiple(ring, pkt, ndw); amdgpu_ring_commit(ring); DRM_DEBUG("MES msg=%d was emitted\n", x_pkt->header.opcode); r = amdgpu_fence_wait_polling(ring, ring->fence_drv.sync_seq, adev->usec_timeout); if (r < 1) { DRM_ERROR("MES failed to response msg=%d\n", x_pkt->header.opcode); return -ETIMEDOUT; } return 0; } static int convert_to_mes_queue_type(int queue_type) { if (queue_type == AMDGPU_RING_TYPE_GFX) return MES_QUEUE_TYPE_GFX; else if (queue_type == AMDGPU_RING_TYPE_COMPUTE) return MES_QUEUE_TYPE_COMPUTE; else if (queue_type == AMDGPU_RING_TYPE_SDMA) return MES_QUEUE_TYPE_SDMA; else BUG(); return -1; } static int mes_v10_1_add_hw_queue(struct amdgpu_mes *mes, struct mes_add_queue_input *input) { struct amdgpu_device *adev = mes->adev; union MESAPI__ADD_QUEUE mes_add_queue_pkt; memset(&mes_add_queue_pkt, 0, sizeof(mes_add_queue_pkt)); mes_add_queue_pkt.header.type = MES_API_TYPE_SCHEDULER; mes_add_queue_pkt.header.opcode = MES_SCH_API_ADD_QUEUE; mes_add_queue_pkt.header.dwsize = API_FRAME_SIZE_IN_DWORDS; mes_add_queue_pkt.process_id = input->process_id; mes_add_queue_pkt.page_table_base_addr = input->page_table_base_addr - adev->gmc.vram_start; mes_add_queue_pkt.process_va_start = input->process_va_start; mes_add_queue_pkt.process_va_end = input->process_va_end; mes_add_queue_pkt.process_quantum = input->process_quantum; mes_add_queue_pkt.process_context_addr = input->process_context_addr; mes_add_queue_pkt.gang_quantum = input->gang_quantum; mes_add_queue_pkt.gang_context_addr = input->gang_context_addr; mes_add_queue_pkt.inprocess_gang_priority = input->inprocess_gang_priority; mes_add_queue_pkt.gang_global_priority_level = input->gang_global_priority_level; mes_add_queue_pkt.doorbell_offset = input->doorbell_offset; mes_add_queue_pkt.mqd_addr = input->mqd_addr; mes_add_queue_pkt.wptr_addr = input->wptr_addr; mes_add_queue_pkt.queue_type = convert_to_mes_queue_type(input->queue_type); mes_add_queue_pkt.paging = input->paging; mes_add_queue_pkt.api_status.api_completion_fence_addr = mes->ring.fence_drv.gpu_addr; mes_add_queue_pkt.api_status.api_completion_fence_value = ++mes->ring.fence_drv.sync_seq; return mes_v10_1_submit_pkt_and_poll_completion(mes, &mes_add_queue_pkt, sizeof(mes_add_queue_pkt)); } static int mes_v10_1_remove_hw_queue(struct amdgpu_mes *mes, struct mes_remove_queue_input *input) { union MESAPI__REMOVE_QUEUE mes_remove_queue_pkt; memset(&mes_remove_queue_pkt, 0, sizeof(mes_remove_queue_pkt)); mes_remove_queue_pkt.header.type = MES_API_TYPE_SCHEDULER; mes_remove_queue_pkt.header.opcode = MES_SCH_API_REMOVE_QUEUE; mes_remove_queue_pkt.header.dwsize = API_FRAME_SIZE_IN_DWORDS; mes_remove_queue_pkt.doorbell_offset = input->doorbell_offset; mes_remove_queue_pkt.gang_context_addr = input->gang_context_addr; mes_remove_queue_pkt.api_status.api_completion_fence_addr = mes->ring.fence_drv.gpu_addr; mes_remove_queue_pkt.api_status.api_completion_fence_value = ++mes->ring.fence_drv.sync_seq; return mes_v10_1_submit_pkt_and_poll_completion(mes, &mes_remove_queue_pkt, sizeof(mes_remove_queue_pkt)); } static int mes_v10_1_suspend_gang(struct amdgpu_mes *mes, struct mes_suspend_gang_input *input) { return 0; } static int mes_v10_1_resume_gang(struct amdgpu_mes *mes, struct mes_resume_gang_input *input) { return 0; } static int mes_v10_1_query_sched_status(struct amdgpu_mes *mes) { union MESAPI__QUERY_MES_STATUS mes_status_pkt; memset(&mes_status_pkt, 0, sizeof(mes_status_pkt)); mes_status_pkt.header.type = MES_API_TYPE_SCHEDULER; mes_status_pkt.header.opcode = MES_SCH_API_QUERY_SCHEDULER_STATUS; mes_status_pkt.header.dwsize = API_FRAME_SIZE_IN_DWORDS; mes_status_pkt.api_status.api_completion_fence_addr = mes->ring.fence_drv.gpu_addr; mes_status_pkt.api_status.api_completion_fence_value = ++mes->ring.fence_drv.sync_seq; return mes_v10_1_submit_pkt_and_poll_completion(mes, &mes_status_pkt, sizeof(mes_status_pkt)); } static int mes_v10_1_set_hw_resources(struct amdgpu_mes *mes) { int i; struct amdgpu_device *adev = mes->adev; union MESAPI_SET_HW_RESOURCES mes_set_hw_res_pkt; memset(&mes_set_hw_res_pkt, 0, sizeof(mes_set_hw_res_pkt)); mes_set_hw_res_pkt.header.type = MES_API_TYPE_SCHEDULER; mes_set_hw_res_pkt.header.opcode = MES_SCH_API_SET_HW_RSRC; mes_set_hw_res_pkt.header.dwsize = API_FRAME_SIZE_IN_DWORDS; mes_set_hw_res_pkt.vmid_mask_mmhub = mes->vmid_mask_mmhub; mes_set_hw_res_pkt.vmid_mask_gfxhub = mes->vmid_mask_gfxhub; mes_set_hw_res_pkt.gds_size = adev->gds.gds_size; mes_set_hw_res_pkt.paging_vmid = 0; mes_set_hw_res_pkt.g_sch_ctx_gpu_mc_ptr = mes->sch_ctx_gpu_addr; mes_set_hw_res_pkt.query_status_fence_gpu_mc_ptr = mes->query_status_fence_gpu_addr; for (i = 0; i < MAX_COMPUTE_PIPES; i++) mes_set_hw_res_pkt.compute_hqd_mask[i] = mes->compute_hqd_mask[i]; for (i = 0; i < MAX_GFX_PIPES; i++) mes_set_hw_res_pkt.gfx_hqd_mask[i] = mes->gfx_hqd_mask[i]; for (i = 0; i < MAX_SDMA_PIPES; i++) mes_set_hw_res_pkt.sdma_hqd_mask[i] = mes->sdma_hqd_mask[i]; for (i = 0; i < AMD_PRIORITY_NUM_LEVELS; i++) mes_set_hw_res_pkt.agreegated_doorbells[i] = mes->agreegated_doorbells[i]; mes_set_hw_res_pkt.api_status.api_completion_fence_addr = mes->ring.fence_drv.gpu_addr; mes_set_hw_res_pkt.api_status.api_completion_fence_value = ++mes->ring.fence_drv.sync_seq; return mes_v10_1_submit_pkt_and_poll_completion(mes, &mes_set_hw_res_pkt, sizeof(mes_set_hw_res_pkt)); } static const struct amdgpu_mes_funcs mes_v10_1_funcs = { .add_hw_queue = mes_v10_1_add_hw_queue, .remove_hw_queue = mes_v10_1_remove_hw_queue, .suspend_gang = mes_v10_1_suspend_gang, .resume_gang = mes_v10_1_resume_gang, }; static int mes_v10_1_init_microcode(struct amdgpu_device *adev) { const char *chip_name; char fw_name[30]; int err; const struct mes_firmware_header_v1_0 *mes_hdr; struct amdgpu_firmware_info *info; switch (adev->asic_type) { case CHIP_NAVI10: chip_name = "navi10"; break; case CHIP_SIENNA_CICHLID: chip_name = "sienna_cichlid"; break; default: BUG(); } snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mes.bin", chip_name); err = request_firmware(&adev->mes.fw, fw_name, adev->dev); if (err) return err; err = amdgpu_ucode_validate(adev->mes.fw); if (err) { release_firmware(adev->mes.fw); adev->mes.fw = NULL; return err; } mes_hdr = (const struct mes_firmware_header_v1_0 *)adev->mes.fw->data; adev->mes.ucode_fw_version = le32_to_cpu(mes_hdr->mes_ucode_version); adev->mes.ucode_fw_version = le32_to_cpu(mes_hdr->mes_ucode_data_version); adev->mes.uc_start_addr = le32_to_cpu(mes_hdr->mes_uc_start_addr_lo) | ((uint64_t)(le32_to_cpu(mes_hdr->mes_uc_start_addr_hi)) << 32); adev->mes.data_start_addr = le32_to_cpu(mes_hdr->mes_data_start_addr_lo) | ((uint64_t)(le32_to_cpu(mes_hdr->mes_data_start_addr_hi)) << 32); if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) { info = &adev->firmware.ucode[AMDGPU_UCODE_ID_CP_MES]; info->ucode_id = AMDGPU_UCODE_ID_CP_MES; info->fw = adev->mes.fw; adev->firmware.fw_size += ALIGN(le32_to_cpu(mes_hdr->mes_ucode_size_bytes), PAGE_SIZE); info = &adev->firmware.ucode[AMDGPU_UCODE_ID_CP_MES_DATA]; info->ucode_id = AMDGPU_UCODE_ID_CP_MES_DATA; info->fw = adev->mes.fw; adev->firmware.fw_size += ALIGN(le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes), PAGE_SIZE); } return 0; } static void mes_v10_1_free_microcode(struct amdgpu_device *adev) { release_firmware(adev->mes.fw); adev->mes.fw = NULL; } static int mes_v10_1_allocate_ucode_buffer(struct amdgpu_device *adev) { int r; const struct mes_firmware_header_v1_0 *mes_hdr; const __le32 *fw_data; unsigned fw_size; mes_hdr = (const struct mes_firmware_header_v1_0 *) adev->mes.fw->data; fw_data = (const __le32 *)(adev->mes.fw->data + le32_to_cpu(mes_hdr->mes_ucode_offset_bytes)); fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); r = amdgpu_bo_create_reserved(adev, fw_size, PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT, &adev->mes.ucode_fw_obj, &adev->mes.ucode_fw_gpu_addr, (void **)&adev->mes.ucode_fw_ptr); if (r) { dev_err(adev->dev, "(%d) failed to create mes fw bo\n", r); return r; } memcpy(adev->mes.ucode_fw_ptr, fw_data, fw_size); amdgpu_bo_kunmap(adev->mes.ucode_fw_obj); amdgpu_bo_unreserve(adev->mes.ucode_fw_obj); return 0; } static int mes_v10_1_allocate_ucode_data_buffer(struct amdgpu_device *adev) { int r; const struct mes_firmware_header_v1_0 *mes_hdr; const __le32 *fw_data; unsigned fw_size; mes_hdr = (const struct mes_firmware_header_v1_0 *) adev->mes.fw->data; fw_data = (const __le32 *)(adev->mes.fw->data + le32_to_cpu(mes_hdr->mes_ucode_data_offset_bytes)); fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); r = amdgpu_bo_create_reserved(adev, fw_size, 64 * 1024, AMDGPU_GEM_DOMAIN_GTT, &adev->mes.data_fw_obj, &adev->mes.data_fw_gpu_addr, (void **)&adev->mes.data_fw_ptr); if (r) { dev_err(adev->dev, "(%d) failed to create mes data fw bo\n", r); return r; } memcpy(adev->mes.data_fw_ptr, fw_data, fw_size); amdgpu_bo_kunmap(adev->mes.data_fw_obj); amdgpu_bo_unreserve(adev->mes.data_fw_obj); return 0; } static void mes_v10_1_free_ucode_buffers(struct amdgpu_device *adev) { amdgpu_bo_free_kernel(&adev->mes.data_fw_obj, &adev->mes.data_fw_gpu_addr, (void **)&adev->mes.data_fw_ptr); amdgpu_bo_free_kernel(&adev->mes.ucode_fw_obj, &adev->mes.ucode_fw_gpu_addr, (void **)&adev->mes.ucode_fw_ptr); } static void mes_v10_1_enable(struct amdgpu_device *adev, bool enable) { uint32_t data = 0; if (enable) { data = RREG32_SOC15(GC, 0, mmCP_MES_CNTL); data = REG_SET_FIELD(data, CP_MES_CNTL, MES_PIPE0_RESET, 1); WREG32_SOC15(GC, 0, mmCP_MES_CNTL, data); /* set ucode start address */ WREG32_SOC15(GC, 0, mmCP_MES_PRGRM_CNTR_START, (uint32_t)(adev->mes.uc_start_addr) >> 2); /* clear BYPASS_UNCACHED to avoid hangs after interrupt. */ data = RREG32_SOC15(GC, 0, mmCP_MES_DC_OP_CNTL); data = REG_SET_FIELD(data, CP_MES_DC_OP_CNTL, BYPASS_UNCACHED, 0); WREG32_SOC15(GC, 0, mmCP_MES_DC_OP_CNTL, data); /* unhalt MES and activate pipe0 */ data = REG_SET_FIELD(0, CP_MES_CNTL, MES_PIPE0_ACTIVE, 1); WREG32_SOC15(GC, 0, mmCP_MES_CNTL, data); } else { data = RREG32_SOC15(GC, 0, mmCP_MES_CNTL); data = REG_SET_FIELD(data, CP_MES_CNTL, MES_PIPE0_ACTIVE, 0); data = REG_SET_FIELD(data, CP_MES_CNTL, MES_INVALIDATE_ICACHE, 1); data = REG_SET_FIELD(data, CP_MES_CNTL, MES_PIPE0_RESET, 1); data = REG_SET_FIELD(data, CP_MES_CNTL, MES_HALT, 1); WREG32_SOC15(GC, 0, mmCP_MES_CNTL, data); } } /* This function is for backdoor MES firmware */ static int mes_v10_1_load_microcode(struct amdgpu_device *adev) { int r; uint32_t data; if (!adev->mes.fw) return -EINVAL; r = mes_v10_1_allocate_ucode_buffer(adev); if (r) return r; r = mes_v10_1_allocate_ucode_data_buffer(adev); if (r) { mes_v10_1_free_ucode_buffers(adev); return r; } mes_v10_1_enable(adev, false); WREG32_SOC15(GC, 0, mmCP_MES_IC_BASE_CNTL, 0); mutex_lock(&adev->srbm_mutex); /* me=3, pipe=0, queue=0 */ nv_grbm_select(adev, 3, 0, 0, 0); /* set ucode start address */ WREG32_SOC15(GC, 0, mmCP_MES_PRGRM_CNTR_START, (uint32_t)(adev->mes.uc_start_addr) >> 2); /* set ucode fimrware address */ WREG32_SOC15(GC, 0, mmCP_MES_IC_BASE_LO, lower_32_bits(adev->mes.ucode_fw_gpu_addr)); WREG32_SOC15(GC, 0, mmCP_MES_IC_BASE_HI, upper_32_bits(adev->mes.ucode_fw_gpu_addr)); /* set ucode instruction cache boundary to 2M-1 */ WREG32_SOC15(GC, 0, mmCP_MES_MIBOUND_LO, 0x1FFFFF); /* set ucode data firmware address */ WREG32_SOC15(GC, 0, mmCP_MES_MDBASE_LO, lower_32_bits(adev->mes.data_fw_gpu_addr)); WREG32_SOC15(GC, 0, mmCP_MES_MDBASE_HI, upper_32_bits(adev->mes.data_fw_gpu_addr)); /* Set 0x3FFFF (256K-1) to CP_MES_MDBOUND_LO */ WREG32_SOC15(GC, 0, mmCP_MES_MDBOUND_LO, 0x3FFFF); /* invalidate ICACHE */ switch (adev->asic_type) { case CHIP_SIENNA_CICHLID: data = RREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL_Sienna_Cichlid); break; default: data = RREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL); break; } data = REG_SET_FIELD(data, CP_MES_IC_OP_CNTL, PRIME_ICACHE, 0); data = REG_SET_FIELD(data, CP_MES_IC_OP_CNTL, INVALIDATE_CACHE, 1); switch (adev->asic_type) { case CHIP_SIENNA_CICHLID: WREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL_Sienna_Cichlid, data); break; default: WREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL, data); break; } /* prime the ICACHE. */ switch (adev->asic_type) { case CHIP_SIENNA_CICHLID: data = RREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL_Sienna_Cichlid); break; default: data = RREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL); break; } data = REG_SET_FIELD(data, CP_MES_IC_OP_CNTL, PRIME_ICACHE, 1); switch (adev->asic_type) { case CHIP_SIENNA_CICHLID: WREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL_Sienna_Cichlid, data); break; default: WREG32_SOC15(GC, 0, mmCP_MES_IC_OP_CNTL, data); break; } nv_grbm_select(adev, 0, 0, 0, 0); mutex_unlock(&adev->srbm_mutex); return 0; } static int mes_v10_1_allocate_eop_buf(struct amdgpu_device *adev) { int r; u32 *eop; r = amdgpu_bo_create_reserved(adev, MES_EOP_SIZE, PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT, &adev->mes.eop_gpu_obj, &adev->mes.eop_gpu_addr, (void **)&eop); if (r) { dev_warn(adev->dev, "(%d) create EOP bo failed\n", r); return r; } memset(eop, 0, adev->mes.eop_gpu_obj->tbo.mem.size); amdgpu_bo_kunmap(adev->mes.eop_gpu_obj); amdgpu_bo_unreserve(adev->mes.eop_gpu_obj); return 0; } static int mes_v10_1_allocate_mem_slots(struct amdgpu_device *adev) { int r; r = amdgpu_device_wb_get(adev, &adev->mes.sch_ctx_offs); if (r) { dev_err(adev->dev, "(%d) mes sch_ctx_offs wb alloc failed\n", r); return r; } adev->mes.sch_ctx_gpu_addr = adev->wb.gpu_addr + (adev->mes.sch_ctx_offs * 4); adev->mes.sch_ctx_ptr = (uint64_t *)&adev->wb.wb[adev->mes.sch_ctx_offs]; r = amdgpu_device_wb_get(adev, &adev->mes.query_status_fence_offs); if (r) { dev_err(adev->dev, "(%d) query_status_fence_offs wb alloc failed\n", r); return r; } adev->mes.query_status_fence_gpu_addr = adev->wb.gpu_addr + (adev->mes.query_status_fence_offs * 4); adev->mes.query_status_fence_ptr = (uint64_t *)&adev->wb.wb[adev->mes.query_status_fence_offs]; return 0; } static int mes_v10_1_mqd_init(struct amdgpu_ring *ring) { struct amdgpu_device *adev = ring->adev; struct v10_compute_mqd *mqd = ring->mqd_ptr; uint64_t hqd_gpu_addr, wb_gpu_addr, eop_base_addr; uint32_t tmp; mqd->header = 0xC0310800; mqd->compute_pipelinestat_enable = 0x00000001; mqd->compute_static_thread_mgmt_se0 = 0xffffffff; mqd->compute_static_thread_mgmt_se1 = 0xffffffff; mqd->compute_static_thread_mgmt_se2 = 0xffffffff; mqd->compute_static_thread_mgmt_se3 = 0xffffffff; mqd->compute_misc_reserved = 0x00000003; eop_base_addr = ring->eop_gpu_addr >> 8; mqd->cp_hqd_eop_base_addr_lo = eop_base_addr; mqd->cp_hqd_eop_base_addr_hi = upper_32_bits(eop_base_addr); /* set the EOP size, register value is 2^(EOP_SIZE+1) dwords */ tmp = RREG32_SOC15(GC, 0, mmCP_HQD_EOP_CONTROL); tmp = REG_SET_FIELD(tmp, CP_HQD_EOP_CONTROL, EOP_SIZE, (order_base_2(MES_EOP_SIZE / 4) - 1)); mqd->cp_hqd_eop_control = tmp; /* enable doorbell? */ tmp = RREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL); if (ring->use_doorbell) { tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_OFFSET, ring->doorbell_index); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 1); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_SOURCE, 0); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_HIT, 0); } else tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 0); mqd->cp_hqd_pq_doorbell_control = tmp; /* disable the queue if it's active */ ring->wptr = 0; mqd->cp_hqd_dequeue_request = 0; mqd->cp_hqd_pq_rptr = 0; mqd->cp_hqd_pq_wptr_lo = 0; mqd->cp_hqd_pq_wptr_hi = 0; /* set the pointer to the MQD */ mqd->cp_mqd_base_addr_lo = ring->mqd_gpu_addr & 0xfffffffc; mqd->cp_mqd_base_addr_hi = upper_32_bits(ring->mqd_gpu_addr); /* set MQD vmid to 0 */ tmp = RREG32_SOC15(GC, 0, mmCP_MQD_CONTROL); tmp = REG_SET_FIELD(tmp, CP_MQD_CONTROL, VMID, 0); mqd->cp_mqd_control = tmp; /* set the pointer to the HQD, this is similar CP_RB0_BASE/_HI */ hqd_gpu_addr = ring->gpu_addr >> 8; mqd->cp_hqd_pq_base_lo = hqd_gpu_addr; mqd->cp_hqd_pq_base_hi = upper_32_bits(hqd_gpu_addr); /* set up the HQD, this is similar to CP_RB0_CNTL */ tmp = RREG32_SOC15(GC, 0, mmCP_HQD_PQ_CONTROL); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, QUEUE_SIZE, (order_base_2(ring->ring_size / 4) - 1)); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, RPTR_BLOCK_SIZE, ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); #ifdef __BIG_ENDIAN tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, ENDIAN_SWAP, 1); #endif tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, UNORD_DISPATCH, 0); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, TUNNEL_DISPATCH, 0); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, PRIV_STATE, 1); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_CONTROL, KMD_QUEUE, 1); mqd->cp_hqd_pq_control = tmp; /* set the wb address whether it's enabled or not */ wb_gpu_addr = adev->wb.gpu_addr + (ring->rptr_offs * 4); mqd->cp_hqd_pq_rptr_report_addr_lo = wb_gpu_addr & 0xfffffffc; mqd->cp_hqd_pq_rptr_report_addr_hi = upper_32_bits(wb_gpu_addr) & 0xffff; /* only used if CP_PQ_WPTR_POLL_CNTL.CP_PQ_WPTR_POLL_CNTL__EN_MASK=1 */ wb_gpu_addr = adev->wb.gpu_addr + (ring->wptr_offs * 4); mqd->cp_hqd_pq_wptr_poll_addr_lo = wb_gpu_addr & 0xfffffff8; mqd->cp_hqd_pq_wptr_poll_addr_hi = upper_32_bits(wb_gpu_addr) & 0xffff; tmp = 0; /* enable the doorbell if requested */ if (ring->use_doorbell) { tmp = RREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_OFFSET, ring->doorbell_index); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 1); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_SOURCE, 0); tmp = REG_SET_FIELD(tmp, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_HIT, 0); } mqd->cp_hqd_pq_doorbell_control = tmp; /* reset read and write pointers, similar to CP_RB0_WPTR/_RPTR */ ring->wptr = 0; mqd->cp_hqd_pq_rptr = RREG32_SOC15(GC, 0, mmCP_HQD_PQ_RPTR); /* set the vmid for the queue */ mqd->cp_hqd_vmid = 0; tmp = RREG32_SOC15(GC, 0, mmCP_HQD_PERSISTENT_STATE); tmp = REG_SET_FIELD(tmp, CP_HQD_PERSISTENT_STATE, PRELOAD_SIZE, 0x53); mqd->cp_hqd_persistent_state = tmp; /* set MIN_IB_AVAIL_SIZE */ tmp = RREG32_SOC15(GC, 0, mmCP_HQD_IB_CONTROL); tmp = REG_SET_FIELD(tmp, CP_HQD_IB_CONTROL, MIN_IB_AVAIL_SIZE, 3); mqd->cp_hqd_ib_control = tmp; /* activate the queue */ mqd->cp_hqd_active = 1; return 0; } static void mes_v10_1_queue_init_register(struct amdgpu_ring *ring) { struct v10_compute_mqd *mqd = ring->mqd_ptr; struct amdgpu_device *adev = ring->adev; uint32_t data = 0; mutex_lock(&adev->srbm_mutex); nv_grbm_select(adev, 3, 0, 0, 0); /* set CP_HQD_VMID.VMID = 0. */ data = RREG32_SOC15(GC, 0, mmCP_HQD_VMID); data = REG_SET_FIELD(data, CP_HQD_VMID, VMID, 0); WREG32_SOC15(GC, 0, mmCP_HQD_VMID, data); /* set CP_HQD_PQ_DOORBELL_CONTROL.DOORBELL_EN=0 */ data = RREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL); data = REG_SET_FIELD(data, CP_HQD_PQ_DOORBELL_CONTROL, DOORBELL_EN, 0); WREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL, data); /* set CP_MQD_BASE_ADDR/HI with the MQD base address */ WREG32_SOC15(GC, 0, mmCP_MQD_BASE_ADDR, mqd->cp_mqd_base_addr_lo); WREG32_SOC15(GC, 0, mmCP_MQD_BASE_ADDR_HI, mqd->cp_mqd_base_addr_hi); /* set CP_MQD_CONTROL.VMID=0 */ data = RREG32_SOC15(GC, 0, mmCP_MQD_CONTROL); data = REG_SET_FIELD(data, CP_MQD_CONTROL, VMID, 0); WREG32_SOC15(GC, 0, mmCP_MQD_CONTROL, 0); /* set CP_HQD_PQ_BASE/HI with the ring buffer base address */ WREG32_SOC15(GC, 0, mmCP_HQD_PQ_BASE, mqd->cp_hqd_pq_base_lo); WREG32_SOC15(GC, 0, mmCP_HQD_PQ_BASE_HI, mqd->cp_hqd_pq_base_hi); /* set CP_HQD_PQ_RPTR_REPORT_ADDR/HI */ WREG32_SOC15(GC, 0, mmCP_HQD_PQ_RPTR_REPORT_ADDR, mqd->cp_hqd_pq_rptr_report_addr_lo); WREG32_SOC15(GC, 0, mmCP_HQD_PQ_RPTR_REPORT_ADDR_HI, mqd->cp_hqd_pq_rptr_report_addr_hi); /* set CP_HQD_PQ_CONTROL */ WREG32_SOC15(GC, 0, mmCP_HQD_PQ_CONTROL, mqd->cp_hqd_pq_control); /* set CP_HQD_PQ_WPTR_POLL_ADDR/HI */ WREG32_SOC15(GC, 0, mmCP_HQD_PQ_WPTR_POLL_ADDR, mqd->cp_hqd_pq_wptr_poll_addr_lo); WREG32_SOC15(GC, 0, mmCP_HQD_PQ_WPTR_POLL_ADDR_HI, mqd->cp_hqd_pq_wptr_poll_addr_hi); /* set CP_HQD_PQ_DOORBELL_CONTROL */ WREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL, mqd->cp_hqd_pq_doorbell_control); /* set CP_HQD_PERSISTENT_STATE.PRELOAD_SIZE=0x53 */ WREG32_SOC15(GC, 0, mmCP_HQD_PERSISTENT_STATE, mqd->cp_hqd_persistent_state); /* set CP_HQD_ACTIVE.ACTIVE=1 */ WREG32_SOC15(GC, 0, mmCP_HQD_ACTIVE, mqd->cp_hqd_active); nv_grbm_select(adev, 0, 0, 0, 0); mutex_unlock(&adev->srbm_mutex); } #if 0 static int mes_v10_1_kiq_enable_queue(struct amdgpu_device *adev) { struct amdgpu_kiq *kiq = &adev->gfx.kiq; struct amdgpu_ring *kiq_ring = &adev->gfx.kiq.ring; int r; if (!kiq->pmf || !kiq->pmf->kiq_map_queues) return -EINVAL; r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size); if (r) { DRM_ERROR("Failed to lock KIQ (%d).\n", r); return r; } kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring); r = amdgpu_ring_test_ring(kiq_ring); if (r) { DRM_ERROR("kfq enable failed\n"); kiq_ring->sched.ready = false; } return r; } #endif static int mes_v10_1_queue_init(struct amdgpu_device *adev) { int r; r = mes_v10_1_mqd_init(&adev->mes.ring); if (r) return r; #if 0 r = mes_v10_1_kiq_enable_queue(adev); if (r) return r; #else mes_v10_1_queue_init_register(&adev->mes.ring); #endif return 0; } static int mes_v10_1_ring_init(struct amdgpu_device *adev) { struct amdgpu_ring *ring; int r; ring = &adev->mes.ring; ring->funcs = &mes_v10_1_ring_funcs; ring->me = 3; ring->pipe = 0; ring->queue = 0; ring->ring_obj = NULL; ring->use_doorbell = true; ring->doorbell_index = adev->doorbell_index.mes_ring << 1; ring->eop_gpu_addr = adev->mes.eop_gpu_addr; ring->no_scheduler = true; sprintf(ring->name, "mes_%d.%d.%d", ring->me, ring->pipe, ring->queue); r = amdgpu_ring_init(adev, ring, 1024, NULL, 0, AMDGPU_RING_PRIO_DEFAULT); if (r) return r; return 0; } static int mes_v10_1_mqd_sw_init(struct amdgpu_device *adev) { int r, mqd_size = sizeof(struct v10_compute_mqd); struct amdgpu_ring *ring = &adev->mes.ring; if (ring->mqd_obj) return 0; r = amdgpu_bo_create_kernel(adev, mqd_size, PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj, &ring->mqd_gpu_addr, &ring->mqd_ptr); if (r) { dev_warn(adev->dev, "failed to create ring mqd bo (%d)", r); return r; } /* prepare MQD backup */ adev->mes.mqd_backup = kmalloc(mqd_size, GFP_KERNEL); if (!adev->mes.mqd_backup) dev_warn(adev->dev, "no memory to create MQD backup for ring %s\n", ring->name); return 0; } static int mes_v10_1_sw_init(void *handle) { int r; struct amdgpu_device *adev = (struct amdgpu_device *)handle; adev->mes.adev = adev; adev->mes.funcs = &mes_v10_1_funcs; r = mes_v10_1_init_microcode(adev); if (r) return r; r = mes_v10_1_allocate_eop_buf(adev); if (r) return r; r = mes_v10_1_mqd_sw_init(adev); if (r) return r; r = mes_v10_1_ring_init(adev); if (r) return r; r = mes_v10_1_allocate_mem_slots(adev); if (r) return r; return 0; } static int mes_v10_1_sw_fini(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; amdgpu_device_wb_free(adev, adev->mes.sch_ctx_offs); amdgpu_device_wb_free(adev, adev->mes.query_status_fence_offs); kfree(adev->mes.mqd_backup); amdgpu_bo_free_kernel(&adev->mes.ring.mqd_obj, &adev->mes.ring.mqd_gpu_addr, &adev->mes.ring.mqd_ptr); amdgpu_bo_free_kernel(&adev->mes.eop_gpu_obj, &adev->mes.eop_gpu_addr, NULL); mes_v10_1_free_microcode(adev); return 0; } static int mes_v10_1_hw_init(void *handle) { int r; struct amdgpu_device *adev = (struct amdgpu_device *)handle; if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) { r = mes_v10_1_load_microcode(adev); if (r) { DRM_ERROR("failed to MES fw, r=%d\n", r); return r; } } mes_v10_1_enable(adev, true); r = mes_v10_1_queue_init(adev); if (r) goto failure; r = mes_v10_1_set_hw_resources(&adev->mes); if (r) goto failure; r = mes_v10_1_query_sched_status(&adev->mes); if (r) { DRM_ERROR("MES is busy\n"); goto failure; } return 0; failure: mes_v10_1_hw_fini(adev); return r; } static int mes_v10_1_hw_fini(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; mes_v10_1_enable(adev, false); if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) mes_v10_1_free_ucode_buffers(adev); return 0; } static int mes_v10_1_suspend(void *handle) { return 0; } static int mes_v10_1_resume(void *handle) { return 0; } static const struct amd_ip_funcs mes_v10_1_ip_funcs = { .name = "mes_v10_1", .sw_init = mes_v10_1_sw_init, .sw_fini = mes_v10_1_sw_fini, .hw_init = mes_v10_1_hw_init, .hw_fini = mes_v10_1_hw_fini, .suspend = mes_v10_1_suspend, .resume = mes_v10_1_resume, }; const struct amdgpu_ip_block_version mes_v10_1_ip_block = { .type = AMD_IP_BLOCK_TYPE_MES, .major = 10, .minor = 1, .rev = 0, .funcs = &mes_v10_1_ip_funcs, };
{ "pile_set_name": "Github" }
/* * Copyright (c) 2018-2020 "Graph Foundation" * Graph Foundation, Inc. [https://graphfoundation.org] * * Copyright (c) 2002-2018 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of ONgDB Enterprise Edition. The included source * code can be redistributed and/or modified under the terms of the * GNU AFFERO GENERAL PUBLIC LICENSE Version 3 * (http://www.fsf.org/licensing/licenses/agpl-3.0.html) as found * in the associated LICENSE.txt file. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. */ package org.neo4j.cluster.protocol.election; /** * Role that an instance can have in a cluster. */ public class ElectionRole { private String name; public ElectionRole( String name ) { this.name = name; } public String getName() { return name; } @Override public boolean equals( Object o ) { if ( o == null || getClass() != o.getClass() ) { return false; } ElectionRole that = (ElectionRole) o; return !(name != null ? !name.equals( that.name ) : that.name != null); } @Override public int hashCode() { return name != null ? name.hashCode() : 0; } }
{ "pile_set_name": "Github" }
rule m26bb_713e96e9ca000b32 { meta: copyright="Copyright (c) 2014-2018 Support Intelligence Inc, All Rights Reserved." engine="saphire/1.3.8 divinorum/0.9992 icewater/0.4" viz_url="http://icewater.io/en/cluster/query?h64=m26bb.713e96e9ca000b32" cluster="m26bb.713e96e9ca000b32" cluster_size="3" filetype = "" tlp = "amber" version = "icewater snowflake" author = "Rick Wesson (@wessorh) rick@support-intelligence.com" date = "20180910" license = "RIL-1.0 [Rick's Internet License]" family="virtob malicious susp" md5_hashes="['7d36af1abbfb9667bd0bf7b53456a24c6898ad77','9cad84bddfed83ef26e9a81d15498bc700b9cf6f','5bce290c037ffeca9df6f8e8005d00a73ce6ce2a']" cluster_members="http://icewater.io/en/cluster/detail?h64=m26bb.713e96e9ca000b32" strings: $hex_string = { 72013ac66d692298043435142d61ab25bc9a0a67055e36ca08a58d50da26890a2952f070fd12c810ff1af488d144a7d7943fb2f2133187f8216860c4ac18c39b } condition: filesize > 65536 and filesize < 262144 and $hex_string }
{ "pile_set_name": "Github" }
--- id: "globals" title: "graphql-migrations" sidebar_label: "Globals" --- ## Index ### Modules * ["abstract/AbstractDatabase"](modules/_abstract_abstractdatabase_.md) * ["abstract/RelationshipTypes"](modules/_abstract_relationshiptypes_.md) * ["abstract/Table"](modules/_abstract_table_.md) * ["abstract/TableColumn"](modules/_abstract_tablecolumn_.md) * ["abstract/generateAbstractDatabase"](modules/_abstract_generateabstractdatabase_.md) * ["abstract/getColumnTypeFromScalar"](modules/_abstract_getcolumntypefromscalar_.md) * ["connector/read"](modules/_connector_read_.md) * ["connector/write"](modules/_connector_write_.md) * ["diff/Operation"](modules/_diff_operation_.md) * ["diff/computeDiff"](modules/_diff_computediff_.md) * ["index"](modules/_index_.md) * ["migrate"](modules/_migrate_.md) * ["plugin/MigrateOperationFilter"](modules/_plugin_migrateoperationfilter_.md) * ["plugin/MigratePlugin"](modules/_plugin_migrateplugin_.md) * ["util/comments"](modules/_util_comments_.md) * ["util/getCheckConstraints"](modules/_util_getcheckconstraints_.md) * ["util/getColumnComments"](modules/_util_getcolumncomments_.md) * ["util/getForeignKeys"](modules/_util_getforeignkeys_.md) * ["util/getIndexes"](modules/_util_getindexes_.md) * ["util/getKnexColumnType"](modules/_util_getknexcolumntype_.md) * ["util/getObjectTypeFromList"](modules/_util_getobjecttypefromlist_.md) * ["util/getPrimaryKey"](modules/_util_getprimarykey_.md) * ["util/getTypeAlias"](modules/_util_gettypealias_.md) * ["util/getUniques"](modules/_util_getuniques_.md) * ["util/listTables"](modules/_util_listtables_.md) * ["util/log"](modules/_util_log_.md) * ["util/parseAnnotationsCompat"](modules/_util_parseannotationscompat_.md) * ["util/sortOps"](modules/_util_sortops_.md) * ["util/transformDefaultValue"](modules/_util_transformdefaultvalue_.md)
{ "pile_set_name": "Github" }
# Kissme: Kotlin Secure Storage Multiplatform [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Kissme-brightgreen.svg?style=flat-square)](https://android-arsenal.com/details/1/7452) [![Build Status](https://app.bitrise.io/app/b68dbe54aa16417f/status.svg?token=xAwQZBpUd_XUybTNkRTiIQ)](https://app.bitrise.io/app/b68dbe54aa16417f) **Kissme** is an open-source library providing encrypted key-value storage. It can be integrated seamlessly in Kotlin projects built with **Kotlin Multiplatform**, **Kotlin/Native**, and **Kotlin Android** plugins. **Kissme** allows storing key-value data in common code modules without any additional boilerplate code. Currently library supports the following platforms: - Android (API `>=` 23) - iOS (`ios_arm64` and `ios_x64` targets) ## Download To use this library in your project, add Netguru and Binryprefs maven urls to the repositories block: ```groovy repositories { maven { url 'https://dl.bintray.com/netguru/maven/' } maven { url "https://jitpack.io" } } ``` Then add following dependencies to the common module build.gradle: ```groovy sourceSets { commonMain { dependencies { implementation 'com.netguru.kissme:common:0.2.5' } } androidMain { dependencies { implementation 'com.netguru.kissme:android:0.2.5' } } iosMain { dependencies { implementation 'com.netguru.kissme:ios:0.2.5' } } } ``` Remember to enable `GRADLE_METADATA` in `settings.gradle`: ```groovy enableFeaturePreview('GRADLE_METADATA') ``` ## Usage Just start with creating an instance of `Kissme` class somewhere in your common module and enjoy! It's as simple as that. You don't have to initialize it by yourself nor to pass Android `Context`. Everything is done automatically. ```kotlin val storage = Kissme(name = "my_secret_storage") ``` The `name` parameter is optional. You can omit it if you want to use default storage. `Kissme` allows you to store and persist multiple data types: - String - Int - Long - Float - Double - Boolean If you want to store something, just call: ```kotlin storage.putString(key = "someKey", value = "value") ``` If you want to get stored value - use: ```kotlin storage.getString(key = "someKey", defaultValue = "default") ``` All `get()` functions will return `defaultValue` parameter if storage doesn't contain selected `key`. You can get all keys stored in `Kissme` storage by calling: ```kotlin storage.getAll() ``` You can check if `Kissme` storage contains selected `key` by calling: ```kotlin storage.contains(key = "someKey") ``` You can also remove selected key from storage: ```kotlin storage.remove(key = "someKey") ``` Last, but not least, you can remove all data stored in `Kissme` storage: ```kotlin storage.clear() ``` ## About `Kissme` allows to store key-value pairs in platform-specific way securely. ### Android Android implementation uses [binaryprefs](https://github.com/yandextaxitech/binaryprefs) library under the hood in order to provide a robust key-value storage mechanism. The keys and values are encrypted using XOR and AES encryption accordingly. The data encryption and encryption keys storing generating mechanisms are fully automated and is applied to the stored data by default. All the encryption keys are stored in the Android `KeyStore`. In order to acquire the application `Context` instance required for data storing operations the library registers an internal `ContentProvider`. ### iOS The iOS implementation is using native iOS `Keychain`. The Secure Enclave is a hardware-based key manager that's isolated from processor. It allows you to store, delete, fetch passwords and accounts. `Keychain` is simple wrapper build upon `Security` interface to store, save, and fetch not only passwords, but also accounts. ## Running sample app Sample app uses Maven Local for resolving `Kissme` dependencies. Before running sample app you need to: 1. Build the library - `./gradlew build` 2. Publish dependencies to Maven Local - `./gradlew publishToMavenLocal` 3. Run selected library. If you want to run iOS app - you need to properly configure Xcode. Please check: https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html#setting-up-xcode before running iOS sample app. ## Development roadmap 1. Configure integration tests on iOS 2. ~Add CI~ 3. Add support for Android API < 23 4. Automate KeychainWrapper framework generation 5. Migrate to kotlin-multiplatform Gradle plugin 6. Clean up .pom dependencies declarations 7. Add experimental JavaScript support - call for ideas Kissme is an open source project developed and maintained by Kotlin community. Feel free to contribute to the project. ## License Copyright 2018 Netguru Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
{ "pile_set_name": "Github" }
package service import ( "context" "go-common/app/service/main/antispam/conf" "go-common/app/service/main/antispam/dao" "go-common/app/service/main/antispam/model" "go-common/library/log" ) // GetRuleByArea . func (s *SvcImpl) GetRuleByArea(ctx context.Context, area string) ([]*model.Rule, error) { rs, err := s.RuleDao.GetByArea(ctx, ToDaoCond(&Condition{ Area: area, State: model.StateDefault, })) if err == dao.ErrResourceNotExist { return []*model.Rule{}, nil } if err != nil { return nil, err } return ToModelRules(rs), nil } // GetRuleByAreaAndLimitTypeAndScope . func (s *SvcImpl) GetRuleByAreaAndLimitTypeAndScope(ctx context.Context, area, limitType, limitScope string) (*model.Rule, error) { cond := Condition{ Area: area, LimitType: limitType, LimitScope: limitScope, } r, err := s.RuleDao.GetByAreaAndTypeAndScope(ctx, ToDaoCond(&cond)) if err != nil { return nil, err } return ToModelRule(r), nil } var ( rules = []*model.Rule{} ) // RefreshRules . func (s *SvcImpl) RefreshRules(ctx context.Context) { s.Lock() defer s.Unlock() rs, _, err := s.RuleDao.GetByCond(ctx, ToDaoCond(&Condition{State: model.StateDefault})) if err != nil { return } rules = ToModelRules(rs) } // GetAggregateRuleByAreaAndLimitType . func (s *SvcImpl) GetAggregateRuleByAreaAndLimitType(ctx context.Context, area, limitType string) (*model.AggregateRule, error) { s.RLock() defer s.RUnlock() res := &model.AggregateRule{} for _, r := range rules { if r.Area == area && r.LimitType == limitType { if r.LimitScope == model.LimitScopeGlobal { res.GlobalDurationSec = r.DurationSec res.GlobalAllowedCounts = r.AllowedCounts } if r.LimitScope == model.LimitScopeLocal { res.LocalDurationSec = r.DurationSec res.LocalAllowedCounts = r.AllowedCounts } } } if res.GlobalAllowedCounts > conf.Conf.MaxAllowedCounts { res.GlobalAllowedCounts = conf.Conf.MaxAllowedCounts } if res.LocalAllowedCounts > conf.Conf.MaxAllowedCounts { res.LocalAllowedCounts = conf.Conf.MaxAllowedCounts } if res.GlobalDurationSec > conf.Conf.MaxDurationSec { res.GlobalDurationSec = conf.Conf.MaxDurationSec } if res.LocalDurationSec > conf.Conf.MaxDurationSec { res.LocalDurationSec = conf.Conf.MaxDurationSec } return res, nil } // UpsertRule . func (s *SvcImpl) UpsertRule(ctx context.Context, r *model.Rule) (*model.Rule, error) { _, err := s.RuleDao.GetByAreaAndTypeAndScope(ctx, ToDaoCond(&Condition{ Area: r.Area, LimitType: r.LimitType, LimitScope: r.LimitScope, })) var res *dao.Rule if err == nil { res, err = s.RuleDao.Update(ctx, ToDaoRule(r)) } else { res, err = s.RuleDao.Insert(ctx, ToDaoRule(r)) } if err != nil { return nil, err } if err := s.antiDao.DelRulesCache(ctx, r.Area, r.LimitType); err != nil { log.Error("s.antiDao.DelRulesCache(%s,%s) error(%v)", r.Area, r.LimitType, err) return nil, err } return ToModelRule(res), nil }
{ "pile_set_name": "Github" }
// // ErizoClientIOS // // Copyright (c) 2015 Alvaro Gil (zevarito@gmail.com). // // MIT License, see LICENSE file for details. // #import "Utilities.h" @implementation NSDictionary (Utilities) + (NSDictionary *)dictionaryWithJSONString:(NSString *)jsonString { NSParameterAssert(jsonString.length > 0); NSData *data = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; NSError *error = nil; NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error]; if (error) { NSLog(@"Error parsing JSON: %@", error.localizedDescription); } return dict; } + (NSDictionary *)dictionaryWithJSONData:(NSData *)jsonData { NSError *error = nil; NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error]; if (error) { NSLog(@"Error parsing JSON: %@", error.localizedDescription); } return dict; } @end
{ "pile_set_name": "Github" }
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including without limitation the rights /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell /// copies of the Software, and to permit persons to whom the Software is /// furnished to do so, subject to the following conditions: /// /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software. /// /// Restrictions: /// By making use of the Software for military purposes, you choose to make /// a Bunny unhappy. /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. /// /// @ref gtx_optimum_pow /// @file glm/gtx/optimum_pow.hpp /// @date 2005-12-21 / 2011-06-07 /// @author Christophe Riccio /// /// @see core (dependence) /// /// @defgroup gtx_optimum_pow GLM_GTX_optimum_pow /// @ingroup gtx /// /// @brief Integer exponentiation of power functions. /// /// <glm/gtx/optimum_pow.hpp> need to be included to use these functionalities. /////////////////////////////////////////////////////////////////////////////////// #pragma once // Dependency: #include "../glm.hpp" #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) # pragma message("GLM: GLM_GTX_optimum_pow extension included") #endif namespace glm{ namespace gtx { /// @addtogroup gtx_optimum_pow /// @{ /// Returns x raised to the power of 2. /// /// @see gtx_optimum_pow template <typename genType> GLM_FUNC_DECL genType pow2(genType const & x); /// Returns x raised to the power of 3. /// /// @see gtx_optimum_pow template <typename genType> GLM_FUNC_DECL genType pow3(genType const & x); /// Returns x raised to the power of 4. /// /// @see gtx_optimum_pow template <typename genType> GLM_FUNC_DECL genType pow4(genType const & x); /// @} }//namespace gtx }//namespace glm #include "optimum_pow.inl"
{ "pile_set_name": "Github" }
/***************************************************************************/ /* */ /* ttunpat.h */ /* */ /* Definitions for the unpatented TrueType hinting system */ /* */ /* Copyright 2003, 2006 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* Written by Graham Asher <graham.asher@btinternet.com> */ /* */ /* This file is part of the FreeType project, and may only be used, */ /* modified, and distributed under the terms of the FreeType project */ /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ /* this file you indicate that you have read the license and */ /* understand and accept it fully. */ /* */ /***************************************************************************/ #ifndef __TTUNPAT_H__ #define __TTUNPAT_H__ #include <ft2build.h> #include FT_FREETYPE_H #ifdef FREETYPE_H #error "freetype.h of FreeType 1 has been loaded!" #error "Please fix the directory search order for header files" #error "so that freetype.h of FreeType 2 is found first." #endif FT_BEGIN_HEADER /*************************************************************************** * * @constant: * FT_PARAM_TAG_UNPATENTED_HINTING * * @description: * A constant used as the tag of an @FT_Parameter structure to indicate * that unpatented methods only should be used by the TrueType bytecode * interpreter for a typeface opened by @FT_Open_Face. * */ #define FT_PARAM_TAG_UNPATENTED_HINTING FT_MAKE_TAG( 'u', 'n', 'p', 'a' ) /* */ FT_END_HEADER #endif /* __TTUNPAT_H__ */ /* END */
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- Please use English language names instead. Default font lacks support for all characters --> <keyboardlayouts> <layout language="Russian" layout="ЙЦУКЕН"> <keyboard> <row>ё1234567890</row> <row>йцукенгшщзхъ</row> <row>фывапролджэ</row> <row>ячсмитьбю</row> </keyboard> <keyboard modifiers="shift"> <row>Ё1234567890</row> <row>ЙЦУКЕНГШЩЗХЪ</row> <row>ФЫВАПРОЛДЖЭ</row> <row>ЯЧСМИТЬБЮ</row> </keyboard> <keyboard modifiers="symbol,shift+symbol"> <row>)!@#$%^&amp;*(</row> <row>[]{}-_=+;:</row> <row>'",.&lt;&gt;/?\|</row> <row>`~</row> </keyboard> </layout> <layout language="Russian" layout="АБВ"> <keyboard> <row>0123456789</row> <row>абвгдеёжзий</row> <row>клмнопрстуф</row> <row>хцчшщъыьэюя</row> </keyboard> <keyboard modifiers="shift"> <row>0123456789</row> <row>АБВГДЕЁЖЗИЙ</row> <row>КЛМНОПРСТУФ</row> <row>ХЦЧШЩЪЫЬЭЮЯ</row> </keyboard> <keyboard modifiers="symbol,shift+symbol"> <row>)!@#$%^&amp;*(</row> <row>[]{}-_=+;:</row> <row>'",.&lt;&gt;/?\|</row> <row>`~</row> </keyboard> </layout> </keyboardlayouts>
{ "pile_set_name": "Github" }
package cli import ( "flag" "fmt" "sort" "strings" ) // Command is a subcommand for a cli.App. type Command struct { // The name of the command Name string // A list of aliases for the command Aliases []string // A short description of the usage of this command Usage string // Custom text to show on USAGE section of help UsageText string // A longer explanation of how the command works Description string // A short description of the arguments of this command ArgsUsage string // The category the command is part of Category string // The function to call when checking for bash command completions BashComplete BashCompleteFunc // An action to execute before any sub-subcommands are run, but after the context is ready // If a non-nil error is returned, no sub-subcommands are run Before BeforeFunc // An action to execute after any subcommands are run, but after the subcommand has finished // It is run even if Action() panics After AfterFunc // The function to call when this command is invoked Action ActionFunc // Execute this function if a usage error occurs. OnUsageError OnUsageErrorFunc // List of child commands Subcommands []*Command // List of flags to parse Flags []Flag // Treat all flags as normal arguments if true SkipFlagParsing bool // Boolean to hide built-in help command and help flag HideHelp bool // Boolean to hide built-in help command but keep help flag // Ignored if HideHelp is true. HideHelpCommand bool // Boolean to hide this command from help or completion Hidden bool // Boolean to enable short-option handling so user can combine several // single-character bool arguments into one // i.e. foobar -o -v -> foobar -ov UseShortOptionHandling bool // Full name of command for help, defaults to full command name, including parent commands. HelpName string commandNamePath []string // CustomHelpTemplate the text template for the command help topic. // cli.go uses text/template to render templates. You can // render custom help text by setting this variable. CustomHelpTemplate string } type Commands []*Command type CommandsByName []*Command func (c CommandsByName) Len() int { return len(c) } func (c CommandsByName) Less(i, j int) bool { return lexicographicLess(c[i].Name, c[j].Name) } func (c CommandsByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] } // FullName returns the full name of the command. // For subcommands this ensures that parent commands are part of the command path func (c *Command) FullName() string { if c.commandNamePath == nil { return c.Name } return strings.Join(c.commandNamePath, " ") } // Run invokes the command given the context, parses ctx.Args() to generate command-specific flags func (c *Command) Run(ctx *Context) (err error) { if len(c.Subcommands) > 0 { return c.startApp(ctx) } if !c.HideHelp && HelpFlag != nil { // append help to flags c.appendFlag(HelpFlag) } if ctx.App.UseShortOptionHandling { c.UseShortOptionHandling = true } set, err := c.parseFlags(ctx.Args(), ctx.shellComplete) context := NewContext(ctx.App, set, ctx) context.Command = c if checkCommandCompletions(context, c.Name) { return nil } if err != nil { if c.OnUsageError != nil { err = c.OnUsageError(context, err, false) context.App.handleExitCoder(context, err) return err } _, _ = fmt.Fprintln(context.App.Writer, "Incorrect Usage:", err.Error()) _, _ = fmt.Fprintln(context.App.Writer) _ = ShowCommandHelp(context, c.Name) return err } if checkCommandHelp(context, c.Name) { return nil } cerr := checkRequiredFlags(c.Flags, context) if cerr != nil { _ = ShowCommandHelp(context, c.Name) return cerr } if c.After != nil { defer func() { afterErr := c.After(context) if afterErr != nil { context.App.handleExitCoder(context, err) if err != nil { err = newMultiError(err, afterErr) } else { err = afterErr } } }() } if c.Before != nil { err = c.Before(context) if err != nil { _ = ShowCommandHelp(context, c.Name) context.App.handleExitCoder(context, err) return err } } if c.Action == nil { c.Action = helpSubcommand.Action } context.Command = c err = c.Action(context) if err != nil { context.App.handleExitCoder(context, err) } return err } func (c *Command) newFlagSet() (*flag.FlagSet, error) { return flagSet(c.Name, c.Flags) } func (c *Command) useShortOptionHandling() bool { return c.UseShortOptionHandling } func (c *Command) parseFlags(args Args, shellComplete bool) (*flag.FlagSet, error) { set, err := c.newFlagSet() if err != nil { return nil, err } if c.SkipFlagParsing { return set, set.Parse(append([]string{"--"}, args.Tail()...)) } err = parseIter(set, c, args.Tail(), shellComplete) if err != nil { return nil, err } err = normalizeFlags(c.Flags, set) if err != nil { return nil, err } return set, nil } // Names returns the names including short names and aliases. func (c *Command) Names() []string { return append([]string{c.Name}, c.Aliases...) } // HasName returns true if Command.Name matches given name func (c *Command) HasName(name string) bool { for _, n := range c.Names() { if n == name { return true } } return false } func (c *Command) startApp(ctx *Context) error { app := &App{ Metadata: ctx.App.Metadata, Name: fmt.Sprintf("%s %s", ctx.App.Name, c.Name), } if c.HelpName == "" { app.HelpName = c.HelpName } else { app.HelpName = app.Name } app.Usage = c.Usage app.Description = c.Description app.ArgsUsage = c.ArgsUsage // set CommandNotFound app.CommandNotFound = ctx.App.CommandNotFound app.CustomAppHelpTemplate = c.CustomHelpTemplate // set the flags and commands app.Commands = c.Subcommands app.Flags = c.Flags app.HideHelp = c.HideHelp app.HideHelpCommand = c.HideHelpCommand app.Version = ctx.App.Version app.HideVersion = ctx.App.HideVersion app.Compiled = ctx.App.Compiled app.Writer = ctx.App.Writer app.ErrWriter = ctx.App.ErrWriter app.ExitErrHandler = ctx.App.ExitErrHandler app.UseShortOptionHandling = ctx.App.UseShortOptionHandling app.categories = newCommandCategories() for _, command := range c.Subcommands { app.categories.AddCommand(command.Category, command) } sort.Sort(app.categories.(*commandCategories)) // bash completion app.EnableBashCompletion = ctx.App.EnableBashCompletion if c.BashComplete != nil { app.BashComplete = c.BashComplete } // set the actions app.Before = c.Before app.After = c.After if c.Action != nil { app.Action = c.Action } else { app.Action = helpSubcommand.Action } app.OnUsageError = c.OnUsageError for index, cc := range app.Commands { app.Commands[index].commandNamePath = []string{c.Name, cc.Name} } return app.RunAsSubcommand(ctx) } // VisibleFlags returns a slice of the Flags with Hidden=false func (c *Command) VisibleFlags() []Flag { return visibleFlags(c.Flags) } func (c *Command) appendFlag(fl Flag) { if !hasFlag(c.Flags, fl) { c.Flags = append(c.Flags, fl) } } func hasCommand(commands []*Command, command *Command) bool { for _, existing := range commands { if command == existing { return true } } return false }
{ "pile_set_name": "Github" }
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Aws.CloudFront.Outputs { [OutputType] public sealed class DistributionRestrictions { public readonly Outputs.DistributionRestrictionsGeoRestriction GeoRestriction; [OutputConstructor] private DistributionRestrictions(Outputs.DistributionRestrictionsGeoRestriction geoRestriction) { GeoRestriction = geoRestriction; } } }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_171-google-v7) on Mon Apr 08 11:10:13 PDT 2019 --> <title>LocalServiceTestHelper</title> <meta name="date" content="2019-04-08"> <link rel="stylesheet" type="text/css" href="../../../../../../dev_javadoc.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="LocalServiceTestHelper"; } } catch(err) { } //--> var methods = {"i0":9,"i1":9,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestConfig.html" title="interface in com.google.appengine.tools.development.testing"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.RequestMillisTimer.html" title="interface in com.google.appengine.tools.development.testing"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" target="_top">Frames</a></li> <li><a href="LocalServiceTestHelper.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.google.appengine.tools.development.testing</div> <h2 title="Class LocalServiceTestHelper" class="title">Class LocalServiceTestHelper</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.google.appengine.tools.development.testing.LocalServiceTestHelper</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="typeNameLabel">LocalServiceTestHelper</span> extends java.lang.Object</pre> <div class="block">Helper class for testing against local app engine services. Construct the helper with one <a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestConfig.html" title="interface in com.google.appengine.tools.development.testing"><code>LocalServiceTestConfig</code></a> instance for each service that you wish to access as part of your test. Then call <a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setUp--"><code>setUp()</code></a> before each test executes and <a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#tearDown--"><code>tearDown()</code></a> after each test executes. No specific test-harness is assumed, but here's a JUnit 3 example that uses task queues and the datastore. <blockquote> <pre> public void MyTest extends TestCase { private final LocalServiceTestHelper helper = new LocalServiceTestHelper( new LocalTaskQueueTestConfig(), new LocalDatastoreServiceTestConfig()); &#64;Override public void setUp() { super.setUp(); helper.setUp(); } &#64;Override public void tearDown() { helper.tearDown(); super.tearDown(); } } </pre> </blockquote></div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested.class.summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> <caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>static interface&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.RequestMillisTimer.html" title="interface in com.google.appengine.tools.development.testing">LocalServiceTestHelper.RequestMillisTimer</a></span></code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#LocalServiceTestHelper-com.google.appengine.tools.development.testing.LocalServiceTestConfig...-">LocalServiceTestHelper</a></span>(<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestConfig.html" title="interface in com.google.appengine.tools.development.testing">LocalServiceTestConfig</a>...&nbsp;configs)</code> <div class="block">Constructs a LocalServiceTestHelper with the provided configurations.</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#endRequest--">endRequest</a></span>()</code> <div class="block">Indicate the request has ended so that local services can do any post request work.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>static ApiProxyLocal</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#getApiProxyLocal--">getApiProxyLocal</a></span>()</code> <div class="block">Convenience function for getting ahold of the currently registered <code>ApiProxyLocal</code>.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>static LocalRpcService</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#getLocalService-java.lang.String-">getLocalService</a></span>(java.lang.String&nbsp;serviceName)</code> <div class="block">Convenience function for getting ahold of a specific local service.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>protected com.google.apphosting.api.ApiProxy.Environment</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#newEnvironment--">newEnvironment</a></span>()</code> <div class="block">Constructs the <code>ApiProxy.Environment</code> that will be installed.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>protected LocalServerEnvironment</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#newLocalServerEnvironment--">newLocalServerEnvironment</a></span>()</code> <div class="block">Constructs the <code>LocalServerEnvironment</code> that will be installed.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setClock-Clock-">setClock</a></span>(Clock&nbsp;clock)</code> <div class="block">Sets the clock with which all local services will be initialized.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnforceApiDeadlines-boolean-">setEnforceApiDeadlines</a></span>(boolean&nbsp;val)</code> <div class="block">Determines whether or not API calls should be subject to the same deadlines as in production.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvAppId-java.lang.String-">setEnvAppId</a></span>(java.lang.String&nbsp;envAppId)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getAppId()</code></div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvAttributes-java.util.Map-">setEnvAttributes</a></span>(java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;envAttributes)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getAttributes()</code></div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvAuthDomain-java.lang.String-">setEnvAuthDomain</a></span>(java.lang.String&nbsp;envAuthDomain)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getAuthDomain()</code></div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvEmail-java.lang.String-">setEnvEmail</a></span>(java.lang.String&nbsp;envEmail)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getEmail()</code></div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvInstance-java.lang.String-">setEnvInstance</a></span>(java.lang.String&nbsp;envInstance)</code> <div class="block">The current instance id held by ApiProxy.getCurrentEnvironment()</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvIsAdmin-boolean-">setEnvIsAdmin</a></span>(boolean&nbsp;envIsAdmin)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().isAdmin()</code></div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvIsLoggedIn-boolean-">setEnvIsLoggedIn</a></span>(boolean&nbsp;envIsLoggedIn)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().isLoggedIn()</code></div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvModuleId-java.lang.String-">setEnvModuleId</a></span>(java.lang.String&nbsp;envModuleId)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getModuleId()</code></div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvRequestNamespace-java.lang.String-">setEnvRequestNamespace</a></span>(java.lang.String&nbsp;envRequestNamespace)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getRequestNamespace()</code></div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setEnvVersionId-java.lang.String-">setEnvVersionId</a></span>(java.lang.String&nbsp;envVersionId)</code> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getVersionId()</code></div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setRemainingMillisTimer-com.google.appengine.tools.development.testing.LocalServiceTestHelper.RequestMillisTimer-">setRemainingMillisTimer</a></span>(<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.RequestMillisTimer.html" title="interface in com.google.appengine.tools.development.testing">LocalServiceTestHelper.RequestMillisTimer</a>&nbsp;timer)</code> <div class="block">Sets the object that will return the value to be returned by <code>ApiProxy.getCurrentEnvironment().getRemainingMillis()</code></div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setSimulateProdLatencies-boolean-">setSimulateProdLatencies</a></span>(boolean&nbsp;val)</code> <div class="block">Determines whether or not local services should simulate production latencies.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setTimeZone-java.util.TimeZone-">setTimeZone</a></span>(java.util.TimeZone&nbsp;timeZone)</code> <div class="block">Sets the time zone in which tests will execute.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#setUp--">setUp</a></span>()</code> <div class="block">Set up an environment in which tests that use local services can execute.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#tearDown--">tearDown</a></span>()</code> <div class="block">Tear down the environment in which tests that use local services can execute.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="LocalServiceTestHelper-com.google.appengine.tools.development.testing.LocalServiceTestConfig...-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>LocalServiceTestHelper</h4> <pre>public&nbsp;LocalServiceTestHelper(<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestConfig.html" title="interface in com.google.appengine.tools.development.testing">LocalServiceTestConfig</a>...&nbsp;configs)</pre> <div class="block">Constructs a LocalServiceTestHelper with the provided configurations.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>configs</code> - for the local services that need to be set up and torn down.</dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="setEnvAppId-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvAppId</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvAppId(java.lang.String&nbsp;envAppId)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getAppId()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envAppId</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvModuleId-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvModuleId</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvModuleId(java.lang.String&nbsp;envModuleId)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getModuleId()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envModuleId</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvVersionId-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvVersionId</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvVersionId(java.lang.String&nbsp;envVersionId)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getVersionId()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envVersionId</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvInstance-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvInstance</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvInstance(java.lang.String&nbsp;envInstance)</pre> <div class="block">The current instance id held by ApiProxy.getCurrentEnvironment()</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envInstance</code> - must an integer >= -1 (default instance)</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvEmail-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvEmail</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvEmail(java.lang.String&nbsp;envEmail)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getEmail()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envEmail</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvIsLoggedIn-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvIsLoggedIn</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvIsLoggedIn(boolean&nbsp;envIsLoggedIn)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().isLoggedIn()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envIsLoggedIn</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvIsAdmin-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvIsAdmin</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvIsAdmin(boolean&nbsp;envIsAdmin)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().isAdmin()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envIsAdmin</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvAuthDomain-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvAuthDomain</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvAuthDomain(java.lang.String&nbsp;envAuthDomain)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getAuthDomain()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envAuthDomain</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setRemainingMillisTimer-com.google.appengine.tools.development.testing.LocalServiceTestHelper.RequestMillisTimer-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRemainingMillisTimer</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setRemainingMillisTimer(<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.RequestMillisTimer.html" title="interface in com.google.appengine.tools.development.testing">LocalServiceTestHelper.RequestMillisTimer</a>&nbsp;timer)</pre> <div class="block">Sets the object that will return the value to be returned by <code>ApiProxy.getCurrentEnvironment().getRemainingMillis()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>timer</code> - The timer that returns the amount of time left.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvRequestNamespace-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvRequestNamespace</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvRequestNamespace(java.lang.String&nbsp;envRequestNamespace)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getRequestNamespace()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envRequestNamespace</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnvAttributes-java.util.Map-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnvAttributes</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnvAttributes(java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;envAttributes)</pre> <div class="block">The value to be returned by <code>ApiProxy.getCurrentEnvironment().getAttributes()</code></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>envAttributes</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setClock-Clock-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setClock</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setClock(Clock&nbsp;clock)</pre> <div class="block">Sets the clock with which all local services will be initialized. Note that once a local service is initialized its clock cannot be altered.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>clock</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setEnforceApiDeadlines-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEnforceApiDeadlines</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setEnforceApiDeadlines(boolean&nbsp;val)</pre> <div class="block">Determines whether or not API calls should be subject to the same deadlines as in production. The default is <code>false</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>val</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setSimulateProdLatencies-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSimulateProdLatencies</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setSimulateProdLatencies(boolean&nbsp;val)</pre> <div class="block">Determines whether or not local services should simulate production latencies. The default is <code>false</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>val</code> - </dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setTimeZone-java.util.TimeZone-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setTimeZone</h4> <pre>public&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setTimeZone(java.util.TimeZone&nbsp;timeZone)</pre> <div class="block">Sets the time zone in which tests will execute. If not set we use the same timezone that we use in production and the dev appserver: UTC. Note that if your code has permission to modify the <code>user.timezone</code> system property, this will change the default timezone for the JVM. However, if your code does not have this permission, the timezone will only be altered for the current thread.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>timeZone</code> - the time zone</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="setUp--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setUp</h4> <pre>public final&nbsp;<a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" title="class in com.google.appengine.tools.development.testing">LocalServiceTestHelper</a>&nbsp;setUp()</pre> <div class="block">Set up an environment in which tests that use local services can execute.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> (for chaining)</dd> </dl> </li> </ul> <a name="newEnvironment--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newEnvironment</h4> <pre>protected&nbsp;com.google.apphosting.api.ApiProxy.Environment&nbsp;newEnvironment()</pre> <div class="block">Constructs the <code>ApiProxy.Environment</code> that will be installed. Subclass and override to provide your own implementation.</div> </li> </ul> <a name="newLocalServerEnvironment--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newLocalServerEnvironment</h4> <pre>protected&nbsp;LocalServerEnvironment&nbsp;newLocalServerEnvironment()</pre> <div class="block">Constructs the <code>LocalServerEnvironment</code> that will be installed. Subclass and override to provide your own implementation.</div> </li> </ul> <a name="tearDown--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>tearDown</h4> <pre>public final&nbsp;void&nbsp;tearDown()</pre> <div class="block">Tear down the environment in which tests that use local services can execute.</div> </li> </ul> <a name="endRequest--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>endRequest</h4> <pre>public static&nbsp;void&nbsp;endRequest()</pre> <div class="block">Indicate the request has ended so that local services can do any post request work. This method is optional and is automatically done in <a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#tearDown--"><code>tearDown()</code></a>. You only need to call this method if you want to call <a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.html#tearDown--"><code>tearDown()</code></a> from your own tearDown / @After method but need to end the request to verify any behavior.</div> </li> </ul> <a name="getApiProxyLocal--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getApiProxyLocal</h4> <pre>public static&nbsp;ApiProxyLocal&nbsp;getApiProxyLocal()</pre> <div class="block">Convenience function for getting ahold of the currently registered <code>ApiProxyLocal</code>.</div> </li> </ul> <a name="getLocalService-java.lang.String-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getLocalService</h4> <pre>public static&nbsp;LocalRpcService&nbsp;getLocalService(java.lang.String&nbsp;serviceName)</pre> <div class="block">Convenience function for getting ahold of a specific local service. For example, to get ahold of the LocalDatastoreService you would call <code>getLocalService(LocalDatastoreService.PACKAGE)</code>.</div> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestConfig.html" title="interface in com.google.appengine.tools.development.testing"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../../../com/google/appengine/tools/development/testing/LocalServiceTestHelper.RequestMillisTimer.html" title="interface in com.google.appengine.tools.development.testing"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?com/google/appengine/tools/development/testing/LocalServiceTestHelper.html" target="_top">Frames</a></li> <li><a href="LocalServiceTestHelper.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
{ "pile_set_name": "Github" }
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.0.0-beta.5 */ (function(window) { "use strict"; var _currentElement; var _flashState = { bridge: null, version: "0.0.0", pluginType: "unknown", disabled: null, outdated: null, unavailable: null, deactivated: null, overdue: null, ready: null }; var _clipData = {}; var _clipDataFormatMap = null; var _clientIdCounter = 0; var _clientMeta = {}; var _elementIdCounter = 0; var _elementMeta = {}; var _swfPath = function() { var i, jsDir, tmpJsPath, jsPath, swfPath = "ZeroClipboard.swf"; if (!(document.currentScript && (jsPath = document.currentScript.src))) { var scripts = document.getElementsByTagName("script"); if ("readyState" in scripts[0]) { for (i = scripts.length; i--; ) { if (scripts[i].readyState === "interactive" && (jsPath = scripts[i].src)) { break; } } } else if (document.readyState === "loading") { jsPath = scripts[scripts.length - 1].src; } else { for (i = scripts.length; i--; ) { tmpJsPath = scripts[i].src; if (!tmpJsPath) { jsDir = null; break; } tmpJsPath = tmpJsPath.split("#")[0].split("?")[0]; tmpJsPath = tmpJsPath.slice(0, tmpJsPath.lastIndexOf("/") + 1); if (jsDir == null) { jsDir = tmpJsPath; } else if (jsDir !== tmpJsPath) { jsDir = null; break; } } if (jsDir !== null) { jsPath = jsDir; } } } if (jsPath) { jsPath = jsPath.split("#")[0].split("?")[0]; swfPath = jsPath.slice(0, jsPath.lastIndexOf("/") + 1) + swfPath; } return swfPath; }(); var _camelizeCssPropName = function() { var matcherRegex = /\-([a-z])/g, replacerFn = function(match, group) { return group.toUpperCase(); }; return function(prop) { return prop.replace(matcherRegex, replacerFn); }; }(); var _getStyle = function(el, prop) { var value, camelProp, tagName; if (window.getComputedStyle) { value = window.getComputedStyle(el, null).getPropertyValue(prop); } else { camelProp = _camelizeCssPropName(prop); if (el.currentStyle) { value = el.currentStyle[camelProp]; } else { value = el.style[camelProp]; } } if (prop === "cursor") { if (!value || value === "auto") { tagName = el.tagName.toLowerCase(); if (tagName === "a") { return "pointer"; } } } return value; }; var _elementMouseOver = function(event) { if (!event) { event = window.event; } var target; if (this !== window) { target = this; } else if (event.target) { target = event.target; } else if (event.srcElement) { target = event.srcElement; } ZeroClipboard.activate(target); }; var _addEventHandler = function(element, method, func) { if (!element || element.nodeType !== 1) { return; } if (element.addEventListener) { element.addEventListener(method, func, false); } else if (element.attachEvent) { element.attachEvent("on" + method, func); } }; var _removeEventHandler = function(element, method, func) { if (!element || element.nodeType !== 1) { return; } if (element.removeEventListener) { element.removeEventListener(method, func, false); } else if (element.detachEvent) { element.detachEvent("on" + method, func); } }; var _addClass = function(element, value) { if (!element || element.nodeType !== 1) { return element; } if (element.classList) { if (!element.classList.contains(value)) { element.classList.add(value); } return element; } if (value && typeof value === "string") { var classNames = (value || "").split(/\s+/); if (element.nodeType === 1) { if (!element.className) { element.className = value; } else { var className = " " + element.className + " ", setClass = element.className; for (var c = 0, cl = classNames.length; c < cl; c++) { if (className.indexOf(" " + classNames[c] + " ") < 0) { setClass += " " + classNames[c]; } } element.className = setClass.replace(/^\s+|\s+$/g, ""); } } } return element; }; var _removeClass = function(element, value) { if (!element || element.nodeType !== 1) { return element; } if (element.classList) { if (element.classList.contains(value)) { element.classList.remove(value); } return element; } if (value && typeof value === "string" || value === undefined) { var classNames = (value || "").split(/\s+/); if (element.nodeType === 1 && element.className) { if (value) { var className = (" " + element.className + " ").replace(/[\n\t]/g, " "); for (var c = 0, cl = classNames.length; c < cl; c++) { className = className.replace(" " + classNames[c] + " ", " "); } element.className = className.replace(/^\s+|\s+$/g, ""); } else { element.className = ""; } } } return element; }; var _getZoomFactor = function() { var rect, physicalWidth, logicalWidth, zoomFactor = 1; if (typeof document.body.getBoundingClientRect === "function") { rect = document.body.getBoundingClientRect(); physicalWidth = rect.right - rect.left; logicalWidth = document.body.offsetWidth; zoomFactor = Math.round(physicalWidth / logicalWidth * 100) / 100; } return zoomFactor; }; var _getDOMObjectPosition = function(obj, defaultZIndex) { var info = { left: 0, top: 0, width: 0, height: 0, zIndex: _getSafeZIndex(defaultZIndex) - 1 }; if (obj.getBoundingClientRect) { var rect = obj.getBoundingClientRect(); var pageXOffset, pageYOffset, zoomFactor; if ("pageXOffset" in window && "pageYOffset" in window) { pageXOffset = window.pageXOffset; pageYOffset = window.pageYOffset; } else { zoomFactor = _getZoomFactor(); pageXOffset = Math.round(document.documentElement.scrollLeft / zoomFactor); pageYOffset = Math.round(document.documentElement.scrollTop / zoomFactor); } var leftBorderWidth = document.documentElement.clientLeft || 0; var topBorderWidth = document.documentElement.clientTop || 0; info.left = rect.left + pageXOffset - leftBorderWidth; info.top = rect.top + pageYOffset - topBorderWidth; info.width = "width" in rect ? rect.width : rect.right - rect.left; info.height = "height" in rect ? rect.height : rect.bottom - rect.top; } return info; }; var _cacheBust = function(path, options) { var cacheBust = options == null || options && options.cacheBust === true; if (cacheBust) { return (path.indexOf("?") === -1 ? "?" : "&") + "noCache=" + new Date().getTime(); } else { return ""; } }; var _vars = function(options) { var i, len, domain, domains, str = "", trustedOriginsExpanded = []; if (options.trustedDomains) { if (typeof options.trustedDomains === "string") { domains = [ options.trustedDomains ]; } else if (typeof options.trustedDomains === "object" && "length" in options.trustedDomains) { domains = options.trustedDomains; } } if (domains && domains.length) { for (i = 0, len = domains.length; i < len; i++) { if (domains.hasOwnProperty(i) && domains[i] && typeof domains[i] === "string") { domain = _extractDomain(domains[i]); if (!domain) { continue; } if (domain === "*") { trustedOriginsExpanded = [ domain ]; break; } trustedOriginsExpanded.push.apply(trustedOriginsExpanded, [ domain, "//" + domain, window.location.protocol + "//" + domain ]); } } } if (trustedOriginsExpanded.length) { str += "trustedOrigins=" + encodeURIComponent(trustedOriginsExpanded.join(",")); } if (options.forceEnhancedClipboard === true) { str += (str ? "&" : "") + "forceEnhancedClipboard=true"; } return str; }; var _inArray = function(elem, array, fromIndex) { if (typeof array.indexOf === "function") { return array.indexOf(elem, fromIndex); } var i, len = array.length; if (typeof fromIndex === "undefined") { fromIndex = 0; } else if (fromIndex < 0) { fromIndex = len + fromIndex; } for (i = fromIndex; i < len; i++) { if (array.hasOwnProperty(i) && array[i] === elem) { return i; } } return -1; }; var _prepClip = function(elements) { if (typeof elements === "string") { throw new TypeError("ZeroClipboard doesn't accept query strings."); } return typeof elements.length !== "number" ? [ elements ] : elements; }; var _dispatchCallback = function(func, context, args, async) { if (async) { window.setTimeout(function() { func.apply(context, args); }, 0); } else { func.apply(context, args); } }; var _getSafeZIndex = function(val) { var zIndex, tmp; if (val) { if (typeof val === "number" && val > 0) { zIndex = val; } else if (typeof val === "string" && (tmp = parseInt(val, 10)) && !isNaN(tmp) && tmp > 0) { zIndex = tmp; } } if (!zIndex) { if (typeof _globalConfig.zIndex === "number" && _globalConfig.zIndex > 0) { zIndex = _globalConfig.zIndex; } else if (typeof _globalConfig.zIndex === "string" && (tmp = parseInt(_globalConfig.zIndex, 10)) && !isNaN(tmp) && tmp > 0) { zIndex = tmp; } } return zIndex || 0; }; var _extend = function() { var i, len, arg, prop, src, copy, target = arguments[0] || {}; for (i = 1, len = arguments.length; i < len; i++) { if ((arg = arguments[i]) != null) { for (prop in arg) { if (arg.hasOwnProperty(prop)) { src = target[prop]; copy = arg[prop]; if (target === copy) { continue; } if (copy !== undefined) { target[prop] = copy; } } } } } return target; }; var _extractDomain = function(originOrUrl) { if (originOrUrl == null || originOrUrl === "") { return null; } originOrUrl = originOrUrl.replace(/^\s+|\s+$/g, ""); if (originOrUrl === "") { return null; } var protocolIndex = originOrUrl.indexOf("//"); originOrUrl = protocolIndex === -1 ? originOrUrl : originOrUrl.slice(protocolIndex + 2); var pathIndex = originOrUrl.indexOf("/"); originOrUrl = pathIndex === -1 ? originOrUrl : protocolIndex === -1 || pathIndex === 0 ? null : originOrUrl.slice(0, pathIndex); if (originOrUrl && originOrUrl.slice(-4).toLowerCase() === ".swf") { return null; } return originOrUrl || null; }; var _determineScriptAccess = function() { var _extractAllDomains = function(origins, resultsArray) { var i, len, tmp; if (origins == null || resultsArray[0] === "*") { return; } if (typeof origins === "string") { origins = [ origins ]; } if (!(typeof origins === "object" && typeof origins.length === "number")) { return; } for (i = 0, len = origins.length; i < len; i++) { if (origins.hasOwnProperty(i) && (tmp = _extractDomain(origins[i]))) { if (tmp === "*") { resultsArray.length = 0; resultsArray.push("*"); break; } if (_inArray(tmp, resultsArray) === -1) { resultsArray.push(tmp); } } } }; return function(currentDomain, configOptions) { var swfDomain = _extractDomain(configOptions.swfPath); if (swfDomain === null) { swfDomain = currentDomain; } var trustedDomains = []; _extractAllDomains(configOptions.trustedOrigins, trustedDomains); _extractAllDomains(configOptions.trustedDomains, trustedDomains); var len = trustedDomains.length; if (len > 0) { if (len === 1 && trustedDomains[0] === "*") { return "always"; } if (_inArray(currentDomain, trustedDomains) !== -1) { if (len === 1 && currentDomain === swfDomain) { return "sameDomain"; } return "always"; } } return "never"; }; }(); var _objectKeys = function(obj) { if (obj == null) { return []; } if (Object.keys) { return Object.keys(obj); } var keys = []; for (var prop in obj) { if (obj.hasOwnProperty(prop)) { keys.push(prop); } } return keys; }; var _deleteOwnProperties = function(obj) { if (obj) { for (var prop in obj) { if (obj.hasOwnProperty(prop)) { delete obj[prop]; } } } return obj; }; var _safeActiveElement = function() { try { return document.activeElement; } catch (err) {} return null; }; var _pick = function(obj, keys) { var newObj = {}; for (var i = 0, len = keys.length; i < len; i++) { if (keys[i] in obj) { newObj[keys[i]] = obj[keys[i]]; } } return newObj; }; var _omit = function(obj, keys) { var newObj = {}; for (var prop in obj) { if (_inArray(prop, keys) === -1) { newObj[prop] = obj[prop]; } } return newObj; }; var _mapClipDataToFlash = function(clipData) { var newClipData = {}, formatMap = {}; if (!(typeof clipData === "object" && clipData)) { return; } for (var dataFormat in clipData) { if (dataFormat && clipData.hasOwnProperty(dataFormat) && typeof clipData[dataFormat] === "string" && clipData[dataFormat]) { switch (dataFormat.toLowerCase()) { case "text/plain": case "text": case "air:text": case "flash:text": newClipData.text = clipData[dataFormat]; formatMap.text = dataFormat; break; case "text/html": case "html": case "air:html": case "flash:html": newClipData.html = clipData[dataFormat]; formatMap.html = dataFormat; break; case "application/rtf": case "text/rtf": case "rtf": case "richtext": case "air:rtf": case "flash:rtf": newClipData.rtf = clipData[dataFormat]; formatMap.rtf = dataFormat; break; default: break; } } } return { data: newClipData, formatMap: formatMap }; }; var _mapClipResultsFromFlash = function(clipResults, formatMap) { if (!(typeof clipResults === "object" && clipResults && typeof formatMap === "object" && formatMap)) { return clipResults; } var newResults = {}; for (var prop in clipResults) { if (clipResults.hasOwnProperty(prop)) { if (prop !== "success" && prop !== "data") { newResults[prop] = clipResults[prop]; continue; } newResults[prop] = {}; var tmpHash = clipResults[prop]; for (var dataFormat in tmpHash) { if (dataFormat && tmpHash.hasOwnProperty(dataFormat) && formatMap.hasOwnProperty(dataFormat)) { newResults[prop][formatMap[dataFormat]] = tmpHash[dataFormat]; } } } } return newResults; }; var _args = function(arraySlice) { return function(args) { return arraySlice.call(args, 0); }; }(window.Array.prototype.slice); var _detectFlashSupport = function() { var plugin, ax, mimeType, hasFlash = false, isActiveX = false, isPPAPI = false, flashVersion = ""; function parseFlashVersion(desc) { var matches = desc.match(/[\d]+/g); matches.length = 3; return matches.join("."); } function isPepperFlash(flashPlayerFileName) { return !!flashPlayerFileName && (flashPlayerFileName = flashPlayerFileName.toLowerCase()) && (/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(flashPlayerFileName) || flashPlayerFileName.slice(-13) === "chrome.plugin"); } function inspectPlugin(plugin) { if (plugin) { hasFlash = true; if (plugin.version) { flashVersion = parseFlashVersion(plugin.version); } if (!flashVersion && plugin.description) { flashVersion = parseFlashVersion(plugin.description); } if (plugin.filename) { isPPAPI = isPepperFlash(plugin.filename); } } } if (navigator.plugins && navigator.plugins.length) { plugin = navigator.plugins["Shockwave Flash"]; inspectPlugin(plugin); if (navigator.plugins["Shockwave Flash 2.0"]) { hasFlash = true; flashVersion = "2.0.0.11"; } } else if (navigator.mimeTypes && navigator.mimeTypes.length) { mimeType = navigator.mimeTypes["application/x-shockwave-flash"]; plugin = mimeType && mimeType.enabledPlugin; inspectPlugin(plugin); } else if (typeof ActiveXObject !== "undefined") { isActiveX = true; try { ax = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); hasFlash = true; flashVersion = parseFlashVersion(ax.GetVariable("$version")); } catch (e1) { try { ax = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); hasFlash = true; flashVersion = "6.0.21"; } catch (e2) { try { ax = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); hasFlash = true; flashVersion = parseFlashVersion(ax.GetVariable("$version")); } catch (e3) { isActiveX = false; } } } } _flashState.disabled = hasFlash !== true; _flashState.outdated = flashVersion && parseFloat(flashVersion) < 11; _flashState.version = flashVersion || "0.0.0"; _flashState.pluginType = isPPAPI ? "pepper" : isActiveX ? "activex" : hasFlash ? "netscape" : "unknown"; }; _detectFlashSupport(); var ZeroClipboard = function(elements) { if (!(this instanceof ZeroClipboard)) { return new ZeroClipboard(elements); } this.id = "" + _clientIdCounter++; _clientMeta[this.id] = { instance: this, elements: [], handlers: {} }; if (elements) { this.clip(elements); } if (typeof _flashState.ready !== "boolean") { _flashState.ready = false; } if (!ZeroClipboard.isFlashUnusable() && _flashState.bridge === null) { var _client = this; var maxWait = _globalConfig.flashLoadTimeout; if (typeof maxWait === "number" && maxWait >= 0) { setTimeout(function() { if (typeof _flashState.deactivated !== "boolean") { _flashState.deactivated = true; } if (_flashState.deactivated === true) { ZeroClipboard.emit({ type: "error", name: "flash-deactivated", client: _client }); } }, maxWait); } _flashState.overdue = false; _bridge(); } }; ZeroClipboard.prototype.setText = function(text) { ZeroClipboard.setData("text/plain", text); return this; }; ZeroClipboard.prototype.setHtml = function(html) { ZeroClipboard.setData("text/html", html); return this; }; ZeroClipboard.prototype.setRichText = function(richText) { ZeroClipboard.setData("application/rtf", richText); return this; }; ZeroClipboard.prototype.setData = function() { ZeroClipboard.setData.apply(ZeroClipboard, _args(arguments)); return this; }; ZeroClipboard.prototype.clearData = function() { ZeroClipboard.clearData.apply(ZeroClipboard, _args(arguments)); return this; }; ZeroClipboard.prototype.setSize = function(width, height) { _setSize(width, height); return this; }; var _setHandCursor = function(enabled) { if (_flashState.ready === true && _flashState.bridge && typeof _flashState.bridge.setHandCursor === "function") { _flashState.bridge.setHandCursor(enabled); } else { _flashState.ready = false; } }; ZeroClipboard.prototype.destroy = function() { this.unclip(); this.off(); delete _clientMeta[this.id]; }; var _getAllClients = function() { var i, len, client, clients = [], clientIds = _objectKeys(_clientMeta); for (i = 0, len = clientIds.length; i < len; i++) { client = _clientMeta[clientIds[i]].instance; if (client && client instanceof ZeroClipboard) { clients.push(client); } } return clients; }; ZeroClipboard.version = "2.0.0-beta.5"; var _globalConfig = { swfPath: _swfPath, trustedDomains: window.location.host ? [ window.location.host ] : [], cacheBust: true, forceHandCursor: false, forceEnhancedClipboard: false, zIndex: 999999999, debug: false, title: null, autoActivate: true, flashLoadTimeout: 3e4 }; ZeroClipboard.isFlashUnusable = function() { return !!(_flashState.disabled || _flashState.outdated || _flashState.unavailable || _flashState.deactivated); }; ZeroClipboard.config = function(options) { if (typeof options === "object" && options !== null) { _extend(_globalConfig, options); } if (typeof options === "string" && options) { if (_globalConfig.hasOwnProperty(options)) { return _globalConfig[options]; } return; } var copy = {}; for (var prop in _globalConfig) { if (_globalConfig.hasOwnProperty(prop)) { if (typeof _globalConfig[prop] === "object" && _globalConfig[prop] !== null) { if ("length" in _globalConfig[prop]) { copy[prop] = _globalConfig[prop].slice(0); } else { copy[prop] = _extend({}, _globalConfig[prop]); } } else { copy[prop] = _globalConfig[prop]; } } } return copy; }; ZeroClipboard.destroy = function() { ZeroClipboard.deactivate(); for (var clientId in _clientMeta) { if (_clientMeta.hasOwnProperty(clientId) && _clientMeta[clientId]) { var client = _clientMeta[clientId].instance; if (client && typeof client.destroy === "function") { client.destroy(); } } } var flashBridge = _flashState.bridge; if (flashBridge) { var htmlBridge = _getHtmlBridge(flashBridge); if (htmlBridge) { if (_flashState.pluginType === "activex" && "readyState" in flashBridge) { flashBridge.style.display = "none"; (function removeSwfFromIE() { if (flashBridge.readyState === 4) { for (var prop in flashBridge) { if (typeof flashBridge[prop] === "function") { flashBridge[prop] = null; } } flashBridge.parentNode.removeChild(flashBridge); if (htmlBridge.parentNode) { htmlBridge.parentNode.removeChild(htmlBridge); } } else { setTimeout(removeSwfFromIE, 10); } })(); } else { flashBridge.parentNode.removeChild(flashBridge); if (htmlBridge.parentNode) { htmlBridge.parentNode.removeChild(htmlBridge); } } } _flashState.ready = null; _flashState.bridge = null; _flashState.deactivated = null; } ZeroClipboard.clearData(); }; ZeroClipboard.activate = function(element) { if (_currentElement) { _removeClass(_currentElement, _globalConfig.hoverClass); _removeClass(_currentElement, _globalConfig.activeClass); } _currentElement = element; _addClass(element, _globalConfig.hoverClass); _reposition(); var newTitle = _globalConfig.title || element.getAttribute("title"); if (newTitle) { var htmlBridge = _getHtmlBridge(_flashState.bridge); if (htmlBridge) { htmlBridge.setAttribute("title", newTitle); } } var useHandCursor = _globalConfig.forceHandCursor === true || _getStyle(element, "cursor") === "pointer"; _setHandCursor(useHandCursor); }; ZeroClipboard.deactivate = function() { var htmlBridge = _getHtmlBridge(_flashState.bridge); if (htmlBridge) { htmlBridge.removeAttribute("title"); htmlBridge.style.left = "0px"; htmlBridge.style.top = "-9999px"; _setSize(1, 1); } if (_currentElement) { _removeClass(_currentElement, _globalConfig.hoverClass); _removeClass(_currentElement, _globalConfig.activeClass); _currentElement = null; } }; ZeroClipboard.state = function() { return { browser: _pick(window.navigator, [ "userAgent", "platform", "appName" ]), flash: _omit(_flashState, [ "bridge" ]), zeroclipboard: { version: ZeroClipboard.version, config: ZeroClipboard.config() } }; }; ZeroClipboard.setData = function(format, data) { var dataObj; if (typeof format === "object" && format && typeof data === "undefined") { dataObj = format; ZeroClipboard.clearData(); } else if (typeof format === "string" && format) { dataObj = {}; dataObj[format] = data; } else { return; } for (var dataFormat in dataObj) { if (dataFormat && dataObj.hasOwnProperty(dataFormat) && typeof dataObj[dataFormat] === "string" && dataObj[dataFormat]) { _clipData[dataFormat] = dataObj[dataFormat]; } } }; ZeroClipboard.clearData = function(format) { if (typeof format === "undefined") { _deleteOwnProperties(_clipData); _clipDataFormatMap = null; } else if (typeof format === "string" && _clipData.hasOwnProperty(format)) { delete _clipData[format]; } }; var _bridge = function() { var flashBridge, len; var container = document.getElementById("global-zeroclipboard-html-bridge"); if (!container) { var allowScriptAccess = _determineScriptAccess(window.location.host, _globalConfig); var allowNetworking = allowScriptAccess === "never" ? "none" : "all"; var flashvars = _vars(_globalConfig); var swfUrl = _globalConfig.swfPath + _cacheBust(_globalConfig.swfPath, _globalConfig); container = _createHtmlBridge(); var divToBeReplaced = document.createElement("div"); container.appendChild(divToBeReplaced); document.body.appendChild(container); var tmpDiv = document.createElement("div"); var oldIE = _flashState.pluginType === "activex"; tmpDiv.innerHTML = '<object id="global-zeroclipboard-flash-bridge" name="global-zeroclipboard-flash-bridge" ' + 'width="100%" height="100%" ' + (oldIE ? 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' : 'type="application/x-shockwave-flash" data="' + swfUrl + '"') + ">" + (oldIE ? '<param name="movie" value="' + swfUrl + '"/>' : "") + '<param name="allowScriptAccess" value="' + allowScriptAccess + '"/>' + '<param name="allowNetworking" value="' + allowNetworking + '"/>' + '<param name="menu" value="false"/>' + '<param name="wmode" value="transparent"/>' + '<param name="flashvars" value="' + flashvars + '"/>' + "</object>"; flashBridge = tmpDiv.firstChild; tmpDiv = null; flashBridge.ZeroClipboard = ZeroClipboard; container.replaceChild(flashBridge, divToBeReplaced); } if (!flashBridge) { flashBridge = document["global-zeroclipboard-flash-bridge"]; if (flashBridge && (len = flashBridge.length)) { flashBridge = flashBridge[len - 1]; } if (!flashBridge) { flashBridge = container.firstChild; } } _flashState.bridge = flashBridge || null; }; var _createHtmlBridge = function() { var container = document.createElement("div"); container.id = "global-zeroclipboard-html-bridge"; container.className = "global-zeroclipboard-container"; container.style.position = "absolute"; container.style.left = "0px"; container.style.top = "-9999px"; container.style.width = "1px"; container.style.height = "1px"; container.style.zIndex = "" + _getSafeZIndex(_globalConfig.zIndex); return container; }; var _getHtmlBridge = function(flashBridge) { var htmlBridge = flashBridge && flashBridge.parentNode; while (htmlBridge && htmlBridge.nodeName === "OBJECT" && htmlBridge.parentNode) { htmlBridge = htmlBridge.parentNode; } return htmlBridge || null; }; var _reposition = function() { if (_currentElement) { var pos = _getDOMObjectPosition(_currentElement, _globalConfig.zIndex); var htmlBridge = _getHtmlBridge(_flashState.bridge); if (htmlBridge) { htmlBridge.style.top = pos.top + "px"; htmlBridge.style.left = pos.left + "px"; htmlBridge.style.width = pos.width + "px"; htmlBridge.style.height = pos.height + "px"; htmlBridge.style.zIndex = pos.zIndex + 1; } _setSize(pos.width, pos.height); } }; var _setSize = function(width, height) { var htmlBridge = _getHtmlBridge(_flashState.bridge); if (htmlBridge) { htmlBridge.style.width = width + "px"; htmlBridge.style.height = height + "px"; } }; ZeroClipboard.emit = function(event) { var eventType, eventObj, performCallbackAsync, clients, i, len, eventCopy, returnVal, tmp; if (typeof event === "string" && event) { eventType = event; } if (typeof event === "object" && event && typeof event.type === "string" && event.type) { eventType = event.type; eventObj = event; } if (!eventType) { return; } event = _createEvent(eventType, eventObj); _preprocessEvent(event); if (event.type === "ready" && _flashState.overdue === true) { return ZeroClipboard.emit({ type: "error", name: "flash-overdue" }); } performCallbackAsync = !/^(before)?copy$/.test(event.type); if (event.client) { _dispatchClientCallbacks.call(event.client, event, performCallbackAsync); } else { clients = event.target && event.target !== window && _globalConfig.autoActivate === true ? _getAllClientsClippedToElement(event.target) : _getAllClients(); for (i = 0, len = clients.length; i < len; i++) { eventCopy = _extend({}, event, { client: clients[i] }); _dispatchClientCallbacks.call(clients[i], eventCopy, performCallbackAsync); } } if (event.type === "copy") { tmp = _mapClipDataToFlash(_clipData); returnVal = tmp.data; _clipDataFormatMap = tmp.formatMap; } return returnVal; }; var _dispatchClientCallbacks = function(event, async) { var handlers = _clientMeta[this.id] && _clientMeta[this.id].handlers[event.type]; if (handlers && handlers.length) { var i, len, func, context, originalContext = this; for (i = 0, len = handlers.length; i < len; i++) { func = handlers[i]; context = originalContext; if (typeof func === "string" && typeof window[func] === "function") { func = window[func]; } if (typeof func === "object" && func && typeof func.handleEvent === "function") { context = func; func = func.handleEvent; } if (typeof func === "function") { _dispatchCallback(func, context, [ event ], async); } } } return this; }; var _eventMessages = { ready: "Flash communication is established", error: { "flash-disabled": "Flash is disabled or not installed", "flash-outdated": "Flash is too outdated to support ZeroClipboard", "flash-unavailable": "Flash is unable to communicate bidirectionally with JavaScript", "flash-deactivated": "Flash is too outdated for your browser and/or is configured as click-to-activate", "flash-overdue": "Flash communication was established but NOT within the acceptable time limit" } }; var _createEvent = function(eventType, event) { if (!(eventType || event && event.type)) { return; } event = event || {}; eventType = (eventType || event.type).toLowerCase(); _extend(event, { type: eventType, target: event.target || _currentElement || null, relatedTarget: event.relatedTarget || null, currentTarget: _flashState && _flashState.bridge || null }); var msg = _eventMessages[event.type]; if (event.type === "error" && event.name && msg) { msg = msg[event.name]; } if (msg) { event.message = msg; } if (event.type === "ready") { _extend(event, { target: null, version: _flashState.version }); } if (event.type === "error") { event.target = null; if (/^flash-(outdated|unavailable|deactivated|overdue)$/.test(event.name)) { _extend(event, { version: _flashState.version, minimumVersion: "11.0.0" }); } } if (event.type === "copy") { event.clipboardData = { setData: ZeroClipboard.setData, clearData: ZeroClipboard.clearData }; } if (event.type === "aftercopy") { event = _mapClipResultsFromFlash(event, _clipDataFormatMap); } if (event.target && !event.relatedTarget) { event.relatedTarget = _getRelatedTarget(event.target); } return event; }; var _getRelatedTarget = function(targetEl) { var relatedTargetId = targetEl && targetEl.getAttribute && targetEl.getAttribute("data-clipboard-target"); return relatedTargetId ? document.getElementById(relatedTargetId) : null; }; var _preprocessEvent = function(event) { var element = event.target || _currentElement; switch (event.type) { case "error": if (_inArray(event.name, [ "flash-disabled", "flash-outdated", "flash-deactivated", "flash-overdue" ])) { _extend(_flashState, { disabled: event.name === "flash-disabled", outdated: event.name === "flash-outdated", unavailable: event.name === "flash-unavailable", deactivated: event.name === "flash-deactivated", overdue: event.name === "flash-overdue", ready: false }); } break; case "ready": var wasDeactivated = _flashState.deactivated === true; _extend(_flashState, { disabled: false, outdated: false, unavailable: false, deactivated: false, overdue: wasDeactivated, ready: !wasDeactivated }); break; case "copy": var textContent, htmlContent, targetEl = event.relatedTarget; if (!(_clipData["text/html"] || _clipData["text/plain"]) && targetEl && (htmlContent = targetEl.value || targetEl.outerHTML || targetEl.innerHTML) && (textContent = targetEl.value || targetEl.textContent || targetEl.innerText)) { event.clipboardData.clearData(); event.clipboardData.setData("text/plain", textContent); if (htmlContent !== textContent) { event.clipboardData.setData("text/html", htmlContent); } } else if (!_clipData["text/plain"] && event.target && (textContent = event.target.getAttribute("data-clipboard-text"))) { event.clipboardData.clearData(); event.clipboardData.setData("text/plain", textContent); } break; case "aftercopy": ZeroClipboard.clearData(); if (element && element !== _safeActiveElement() && element.focus) { element.focus(); } break; case "mouseover": _addClass(element, _globalConfig.hoverClass); break; case "mouseout": if (_globalConfig.autoActivate === true) { ZeroClipboard.deactivate(); } break; case "mousedown": _addClass(element, _globalConfig.activeClass); break; case "mouseup": _removeClass(element, _globalConfig.activeClass); break; } }; ZeroClipboard.prototype.on = function(eventName, func) { var i, len, events, added = {}, handlers = _clientMeta[this.id] && _clientMeta[this.id].handlers; if (typeof eventName === "string" && eventName) { events = eventName.toLowerCase().split(/\s+/); } else if (typeof eventName === "object" && eventName && typeof func === "undefined") { for (i in eventName) { if (eventName.hasOwnProperty(i) && typeof i === "string" && i && typeof eventName[i] === "function") { this.on(i, eventName[i]); } } } if (events && events.length) { for (i = 0, len = events.length; i < len; i++) { eventName = events[i].replace(/^on/, ""); added[eventName] = true; if (!handlers[eventName]) { handlers[eventName] = []; } handlers[eventName].push(func); } if (added.ready && _flashState.ready) { ZeroClipboard.emit({ type: "ready", client: this }); } if (added.error) { var errorTypes = [ "disabled", "outdated", "unavailable", "deactivated", "overdue" ]; for (i = 0, len = errorTypes.length; i < len; i++) { if (_flashState[errorTypes[i]]) { ZeroClipboard.emit({ type: "error", name: "flash-" + errorTypes[i], client: this }); break; } } } } return this; }; ZeroClipboard.prototype.off = function(eventName, func) { var i, len, foundIndex, events, perEventHandlers, handlers = _clientMeta[this.id] && _clientMeta[this.id].handlers; if (arguments.length === 0) { events = _objectKeys(handlers); } else if (typeof eventName === "string" && eventName) { events = eventName.split(/\s+/); } else if (typeof eventName === "object" && eventName && typeof func === "undefined") { for (i in eventName) { if (eventName.hasOwnProperty(i) && typeof i === "string" && i && typeof eventName[i] === "function") { this.off(i, eventName[i]); } } } if (events && events.length) { for (i = 0, len = events.length; i < len; i++) { eventName = events[i].toLowerCase().replace(/^on/, ""); perEventHandlers = handlers[eventName]; if (perEventHandlers && perEventHandlers.length) { if (func) { foundIndex = _inArray(func, perEventHandlers); while (foundIndex !== -1) { perEventHandlers.splice(foundIndex, 1); foundIndex = _inArray(func, perEventHandlers, foundIndex); } } else { handlers[eventName].length = 0; } } } } return this; }; ZeroClipboard.prototype.handlers = function(eventName) { var prop, copy = null, handlers = _clientMeta[this.id] && _clientMeta[this.id].handlers; if (handlers) { if (typeof eventName === "string" && eventName) { return handlers[eventName] ? handlers[eventName].slice(0) : null; } copy = {}; for (prop in handlers) { if (handlers.hasOwnProperty(prop) && handlers[prop]) { copy[prop] = handlers[prop].slice(0); } } } return copy; }; ZeroClipboard.prototype.clip = function(elements) { elements = _prepClip(elements); for (var i = 0; i < elements.length; i++) { if (elements.hasOwnProperty(i) && elements[i] && elements[i].nodeType === 1) { if (!elements[i].zcClippingId) { elements[i].zcClippingId = "zcClippingId_" + _elementIdCounter++; _elementMeta[elements[i].zcClippingId] = [ this.id ]; if (_globalConfig.autoActivate === true) { _addEventHandler(elements[i], "mouseover", _elementMouseOver); } } else if (_inArray(this.id, _elementMeta[elements[i].zcClippingId]) === -1) { _elementMeta[elements[i].zcClippingId].push(this.id); } var clippedElements = _clientMeta[this.id].elements; if (_inArray(elements[i], clippedElements) === -1) { clippedElements.push(elements[i]); } } } return this; }; ZeroClipboard.prototype.unclip = function(elements) { var meta = _clientMeta[this.id]; if (!meta) { return this; } var clippedElements = meta.elements; var arrayIndex; if (typeof elements === "undefined") { elements = clippedElements.slice(0); } else { elements = _prepClip(elements); } for (var i = elements.length; i--; ) { if (elements.hasOwnProperty(i) && elements[i] && elements[i].nodeType === 1) { arrayIndex = 0; while ((arrayIndex = _inArray(elements[i], clippedElements, arrayIndex)) !== -1) { clippedElements.splice(arrayIndex, 1); } var clientIds = _elementMeta[elements[i].zcClippingId]; if (clientIds) { arrayIndex = 0; while ((arrayIndex = _inArray(this.id, clientIds, arrayIndex)) !== -1) { clientIds.splice(arrayIndex, 1); } if (clientIds.length === 0) { if (_globalConfig.autoActivate === true) { _removeEventHandler(elements[i], "mouseover", _elementMouseOver); } delete elements[i].zcClippingId; } } } } return this; }; ZeroClipboard.prototype.elements = function() { var meta = _clientMeta[this.id]; return meta && meta.elements ? meta.elements.slice(0) : []; }; var _getAllClientsClippedToElement = function(element) { var elementMetaId, clientIds, i, len, client, clients = []; if (element && element.nodeType === 1 && (elementMetaId = element.zcClippingId) && _elementMeta.hasOwnProperty(elementMetaId)) { clientIds = _elementMeta[elementMetaId]; if (clientIds && clientIds.length) { for (i = 0, len = clientIds.length; i < len; i++) { client = _clientMeta[clientIds[i]].instance; if (client && client instanceof ZeroClipboard) { clients.push(client); } } } } return clients; }; _globalConfig.hoverClass = "zeroclipboard-is-hover"; _globalConfig.activeClass = "zeroclipboard-is-active"; if (typeof define === "function" && define.amd) { define(function() { return ZeroClipboard; }); } else if (typeof module === "object" && module && typeof module.exports === "object" && module.exports) { module.exports = ZeroClipboard; } else { window.ZeroClipboard = ZeroClipboard; } })(function() { return this; }());
{ "pile_set_name": "Github" }
eclipse.preferences.version=1 inEditor=false onBuild=false
{ "pile_set_name": "Github" }
/* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by informer-gen. DO NOT EDIT. package v1beta1 import ( time "time" storagev1beta1 "k8s.io/api/storage/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" internalinterfaces "k8s.io/client-go/informers/internalinterfaces" kubernetes "k8s.io/client-go/kubernetes" v1beta1 "k8s.io/client-go/listers/storage/v1beta1" cache "k8s.io/client-go/tools/cache" ) // StorageClassInformer provides access to a shared informer and lister for // StorageClasses. type StorageClassInformer interface { Informer() cache.SharedIndexInformer Lister() v1beta1.StorageClassLister } type storageClassInformer struct { factory internalinterfaces.SharedInformerFactory tweakListOptions internalinterfaces.TweakListOptionsFunc } // NewStorageClassInformer constructs a new informer for StorageClass type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewStorageClassInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredStorageClassInformer(client, resyncPeriod, indexers, nil) } // NewFilteredStorageClassInformer constructs a new informer for StorageClass type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredStorageClassInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( &cache.ListWatch{ ListFunc: func(options v1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } return client.StorageV1beta1().StorageClasses().List(options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } return client.StorageV1beta1().StorageClasses().Watch(options) }, }, &storagev1beta1.StorageClass{}, resyncPeriod, indexers, ) } func (f *storageClassInformer) defaultInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredStorageClassInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } func (f *storageClassInformer) Informer() cache.SharedIndexInformer { return f.factory.InformerFor(&storagev1beta1.StorageClass{}, f.defaultInformer) } func (f *storageClassInformer) Lister() v1beta1.StorageClassLister { return v1beta1.NewStorageClassLister(f.Informer().GetIndexer()) }
{ "pile_set_name": "Github" }
require 'erb' module GLI module Commands module HelpModules class CommandHelpFormat def initialize(command,app,sorter,synopsis_formatter_class,wrapper_class=TextWrapper) @app = app @command = command @sorter = sorter @wrapper_class = wrapper_class @synopsis_formatter = synopsis_formatter_class.new(@app,flags_and_switches(@command,@app)) end def format command_wrapper = @wrapper_class.new(Terminal.instance.size[0],4 + @command.name.to_s.size + 3) wrapper = @wrapper_class.new(Terminal.instance.size[0],4) options_description = OptionsFormatter.new(flags_and_switches(@command,@app),@sorter,@wrapper_class).format commands_description = format_subcommands(@command) command_examples = format_examples(@command) synopses = @synopsis_formatter.synopses_for_command(@command) COMMAND_HELP.result(binding) end private COMMAND_HELP = ERB.new(%q(NAME <%= @command.name %> - <%= command_wrapper.wrap(@command.description) %> SYNOPSIS <% synopses.each do |s| %> <%= s %> <% end %> <% unless @command.long_description.nil? %> DESCRIPTION <%= wrapper.wrap(@command.long_description) %> <% end %> <% if options_description.strip.length != 0 %> COMMAND OPTIONS <%= options_description %> <% end %> <% unless @command.commands.empty? %> COMMANDS <%= commands_description %> <% end %> <% unless @command.examples.empty? %> <%= @command.examples.size == 1 ? 'EXAMPLE' : 'EXAMPLES' %> <%= command_examples %> <% end %>),nil,'<>') def flags_and_switches(command,app) if app.subcommand_option_handling_strategy == :legacy ( command.topmost_ancestor.flags_declaration_order + command.topmost_ancestor.switches_declaration_order ).select { |option| option.associated_command == command } else ( command.flags_declaration_order + command.switches_declaration_order ) end end def format_subcommands(command) commands_array = @sorter.call(command.commands_declaration_order).map { |cmd| if command.get_default_command == cmd.name [cmd.names,String(cmd.description) + " (default)"] else [cmd.names,cmd.description] end } if command.has_action? commands_array.unshift(["<default>",command.default_description]) end formatter = ListFormatter.new(commands_array,@wrapper_class) StringIO.new.tap { |io| formatter.output(io) }.string end def format_examples(command) command.examples.map {|example| string = "" if example[:desc] string << " # #{example[:desc]}\n" end string << " #{example.fetch(:example)}\n" }.join("\n") end end end end end
{ "pile_set_name": "Github" }
hello = Hello World in Default Language
{ "pile_set_name": "Github" }
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/shape_gold" android:padding="5dp" android:orientation="horizontal" > <TextView android:id="@+id/tv_group_name" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="left" android:textColor="@color/black" android:textSize="18sp" /> <TextView android:id="@+id/tv_group_count" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="right" android:textColor="@color/black" android:textSize="18sp" /> </LinearLayout>
{ "pile_set_name": "Github" }
#ifndef BOOST_METAPARSE_V1_FWD_BUILD_PARSER_HPP #define BOOST_METAPARSE_V1_FWD_BUILD_PARSER_HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) namespace boost { namespace metaparse { namespace v1 { template <class P> struct build_parser; } } } #endif
{ "pile_set_name": "Github" }
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 */ package org.openhab.binding.lcn.internal.connection; import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.eclipse.jdt.annotation.NonNullByDefault; import org.openhab.binding.lcn.internal.common.LcnAddrGrp; import org.openhab.binding.lcn.internal.common.LcnException; import org.openhab.binding.lcn.internal.common.PckGenerator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * This state discovers the LCN segment couplers. * * After the authorization against the LCN-PCK gateway was successful, the LCN segment couplers are discovery, to * retrieve the segment ID of the local segment. When no segment couplers were found, a timeout sets the local segment * ID to 0. * * @author Fabian Wolter - Initial Contribution */ @NonNullByDefault public class ConnectionStateSegmentScan extends AbstractConnectionState { private final Logger logger = LoggerFactory.getLogger(ConnectionStateSegmentScan.class); public static final Pattern PATTERN_SK_RESPONSE = Pattern .compile("=M(?<segId>\\d{3})(?<modId>\\d{3})\\.SK(?<id>\\d+)"); private final RequestStatus statusSegmentScan = new RequestStatus(-1, 3, "Segment Scan"); public ConnectionStateSegmentScan(ConnectionStateMachine context) { super(context); } @Override public void startWorking() { statusSegmentScan.refresh(); addTimer(getScheduler().scheduleWithFixedDelay(this::update, 0, 500, TimeUnit.MILLISECONDS)); } private void update() { long currTime = System.nanoTime(); try { if (statusSegmentScan.shouldSendNextRequest(connection.getSettings().getTimeout(), currTime)) { connection.queueDirectly(new LcnAddrGrp(3, 3), false, PckGenerator.segmentCouplerScan()); statusSegmentScan.onRequestSent(currTime); } } catch (LcnException e) { // Give up. Probably no segments available. connection.setLocalSegId(0); logger.debug("No segment couplers detected"); nextState(ConnectionStateConnected::new); } } @Override public void onPckMessageReceived(String data) { Matcher matcher = PATTERN_SK_RESPONSE.matcher(data); if (matcher.matches()) { // any segment coupler answered if (Integer.parseInt(matcher.group("segId")) == 0) { // local segment coupler answered connection.setLocalSegId(Integer.parseInt(matcher.group("id"))); logger.debug("Local segment ID is {}", connection.getLocalSegId()); nextState(ConnectionStateConnected::new); } } parseLcnBusDiconnectMessage(data); } }
{ "pile_set_name": "Github" }
package com.guoshuai.mtdap.hbase.basic; import com.guoshuai.mtdap.hbase.impl.TableOperationImpl; import com.guoshuai.mtdap.hbase.SampleConstants; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Admin; import org.apache.log4j.Logger; import java.io.IOException; /** * Created on 2016/7/11. * This is the sample for dropping table. */ public class DropTableSample extends TableOperationImpl { Logger LOG = Logger.getLogger(DropTableSample.class); public DropTableSample() { super(); } public void process() { // Specify the table name. TableName tableName = TableName.valueOf(SampleConstants.TABLE); Admin admin = null; try { admin = connection.getAdmin(); if (admin.tableExists(tableName)) { // Disable the table before deleting it. admin.disableTable(tableName); // Delete table. admin.deleteTable(tableName); } LOG.info("Drop table successfully."); } catch (IOException e) { LOG.error("Failed to drop table " + tableName.getNameAsString() + ".", e); } } }
{ "pile_set_name": "Github" }
/* * Copyright 2008-2010 Cisco Systems, Inc. All rights reserved. * Copyright 2007 Nuova Systems, Inc. All rights reserved. * * This program is free software; you may redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */ #ifndef _WQ_ENET_DESC_H_ #define _WQ_ENET_DESC_H_ /* Ethernet work queue descriptor: 16B */ struct wq_enet_desc { __le64 address; __le16 length; __le16 mss_loopback; __le16 header_length_flags; __le16 vlan_tag; }; #define WQ_ENET_ADDR_BITS 64 #define WQ_ENET_LEN_BITS 14 #define WQ_ENET_LEN_MASK ((1 << WQ_ENET_LEN_BITS) - 1) #define WQ_ENET_MSS_BITS 14 #define WQ_ENET_MSS_MASK ((1 << WQ_ENET_MSS_BITS) - 1) #define WQ_ENET_MSS_SHIFT 2 #define WQ_ENET_LOOPBACK_SHIFT 1 #define WQ_ENET_HDRLEN_BITS 10 #define WQ_ENET_HDRLEN_MASK ((1 << WQ_ENET_HDRLEN_BITS) - 1) #define WQ_ENET_FLAGS_OM_BITS 2 #define WQ_ENET_FLAGS_OM_MASK ((1 << WQ_ENET_FLAGS_OM_BITS) - 1) #define WQ_ENET_FLAGS_EOP_SHIFT 12 #define WQ_ENET_FLAGS_CQ_ENTRY_SHIFT 13 #define WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT 14 #define WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT 15 #define WQ_ENET_OFFLOAD_MODE_CSUM 0 #define WQ_ENET_OFFLOAD_MODE_RESERVED 1 #define WQ_ENET_OFFLOAD_MODE_CSUM_L4 2 #define WQ_ENET_OFFLOAD_MODE_TSO 3 static inline void wq_enet_desc_enc(struct wq_enet_desc *desc, u64 address, u16 length, u16 mss, u16 header_length, u8 offload_mode, u8 eop, u8 cq_entry, u8 fcoe_encap, u8 vlan_tag_insert, u16 vlan_tag, u8 loopback) { desc->address = cpu_to_le64(address); desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << WQ_ENET_MSS_SHIFT | (loopback & 1) << WQ_ENET_LOOPBACK_SHIFT); desc->header_length_flags = cpu_to_le16( (header_length & WQ_ENET_HDRLEN_MASK) | (offload_mode & WQ_ENET_FLAGS_OM_MASK) << WQ_ENET_HDRLEN_BITS | (eop & 1) << WQ_ENET_FLAGS_EOP_SHIFT | (cq_entry & 1) << WQ_ENET_FLAGS_CQ_ENTRY_SHIFT | (fcoe_encap & 1) << WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT | (vlan_tag_insert & 1) << WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT); desc->vlan_tag = cpu_to_le16(vlan_tag); } static inline void wq_enet_desc_dec(struct wq_enet_desc *desc, u64 *address, u16 *length, u16 *mss, u16 *header_length, u8 *offload_mode, u8 *eop, u8 *cq_entry, u8 *fcoe_encap, u8 *vlan_tag_insert, u16 *vlan_tag, u8 *loopback) { *address = le64_to_cpu(desc->address); *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & WQ_ENET_MSS_MASK; *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> WQ_ENET_LOOPBACK_SHIFT) & 1); *header_length = le16_to_cpu(desc->header_length_flags) & WQ_ENET_HDRLEN_MASK; *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> WQ_ENET_HDRLEN_BITS) & WQ_ENET_FLAGS_OM_MASK); *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> WQ_ENET_FLAGS_EOP_SHIFT) & 1); *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> WQ_ENET_FLAGS_CQ_ENTRY_SHIFT) & 1); *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT) & 1); *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT) & 1); *vlan_tag = le16_to_cpu(desc->vlan_tag); } #endif /* _WQ_ENET_DESC_H_ */
{ "pile_set_name": "Github" }
load( "//bazel:envoy_build_system.bzl", "envoy_package", ) load( "//test/extensions:extensions_build_system.bzl", "envoy_extension_cc_test", ) licenses(["notice"]) # Apache 2 envoy_package() envoy_extension_cc_test( name = "config_test", srcs = ["config_test.cc"], extension_name = "envoy.filters.network.rbac", deps = [ "//source/extensions/filters/network/rbac:config", "//test/mocks/server:factory_context_mocks", "@envoy_api//envoy/config/rbac/v3:pkg_cc_proto", "@envoy_api//envoy/extensions/filters/network/rbac/v3:pkg_cc_proto", ], ) envoy_extension_cc_test( name = "filter_test", srcs = ["filter_test.cc"], extension_name = "envoy.filters.network.rbac", deps = [ "//source/extensions/filters/common/rbac:utility_lib", "//source/extensions/filters/network:well_known_names", "//source/extensions/filters/network/rbac:rbac_filter", "//test/mocks/network:network_mocks", "@envoy_api//envoy/config/rbac/v3:pkg_cc_proto", "@envoy_api//envoy/extensions/filters/network/rbac/v3:pkg_cc_proto", ], ) envoy_extension_cc_test( name = "integration_test", srcs = ["integration_test.cc"], extension_name = "envoy.filters.network.rbac", deps = [ "//source/extensions/filters/network/echo:config", "//source/extensions/filters/network/rbac:config", "//test/integration:integration_lib", "//test/test_common:environment_lib", "@envoy_api//envoy/config/bootstrap/v3:pkg_cc_proto", "@envoy_api//envoy/config/listener/v3:pkg_cc_proto", "@envoy_api//envoy/extensions/filters/network/rbac/v3:pkg_cc_proto", ], )
{ "pile_set_name": "Github" }
' Copyright (C) 2018-2020 Robbie Ward ' ' This file is a part of Winapp2ool ' ' Winapp2ool is free software: you can redistribute it and/or modify ' it under the terms of the GNU General Public License as published by ' the Free Software Foundation, either version 3 of the License, or ' (at your option) any later version. ' ' Winapp2ool is distributed in the hope that it will be useful, ' but WITHOUT ANY WARRANTY; without even the implied warranty of ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ' GNU General Public License for more details. ' ' You should have received a copy of the GNU General Public License ' along with Winapp2ool. If not, see <http://www.gnu.org/licenses/>. Option Strict On ''' <summary> ''' An object representing a section of a .ini file ''' </summary> Public Class iniSection ''' <summary> The line number from which the <c> Name </c> of the <c> iniSection </c> was originally read </summary> Public Property StartingLineNumber As Integer ''' <summary> The line number from which the last <c> iniKey </c> in the <c> iniSection </c> was originally read </summary> Public Property EndingLineNumber As Integer ''' <summary> The name of the <c> iniSection </c> without [Braces] </summary> Public Property Name As String ''' <summary>The list of <c> iniKeys </c> contained in the <c> iniSection </c></summary> Public Property Keys As New keyList ''' <summary> Sorts a section's <c>iniKeys </c> into <c> keyLists </c> based on their <c> KeyType </c> </summary> ''' <param name="listOfKeyLists">The list of <c>KeyLists </c> into which <c> iniKeys </c> will be sorted <br /> ''' The last list in the keylistlist holds the keys determined to contain errors </param> Public Sub constKeyLists(ByRef listOfKeyLists As List(Of keyList)) If listOfKeyLists Is Nothing Then argIsNull(NameOf(listOfKeyLists)) : Return Dim keyTypeList As New List(Of String) listOfKeyLists.ForEach(Sub(kl) keyTypeList.Add(kl.KeyType.ToUpperInvariant)) For Each key In Keys.Keys Dim type = key.KeyType.ToUpperInvariant If keyTypeList.Contains(type) Then listOfKeyLists(keyTypeList.IndexOf(type)).add(key) Else listOfKeyLists.Last.add(key) Next End Sub ''' <summary>Removes keys from the <c> iniSection </c> by their index </summary> ''' <param name="indicies"> A given list of indicies pointing to keys to remove from the <c> iniSection </c> </param> Public Sub removeKeys(indicies As List(Of Integer)) If indicies Is Nothing Then argIsNull(NameOf(indicies)) : Return ' Sort and reverse the indicies so that we remove from the end of the list towards the beginning indicies.Sort() indicies.Reverse() indicies.ForEach(Sub(ind) Keys.remove(ind)) End Sub ''' <summary> Returns the <c> iniSection's </c> <c> Name </c> as it would appear on disk </summary> Public Function getFullName() As String Return $"[{Name}]" End Function ''' <summary> Creates a new (empty) <c> iniSection </c> object </summary> Public Sub New() StartingLineNumber = 0 EndingLineNumber = 0 Name = "" Keys = New keyList End Sub ''' <summary> Creates a new <c> iniSection </c> object without tracking the line numbers </summary> ''' <param name="listOfLines">The list of Strings comprising the <c> iniSection </c></param> ''' <param name="listOfLineCounts">The list of line numbers associated with the lines </param> Public Sub New(ByVal listOfLines As List(Of String), Optional listOfLineCounts As List(Of Integer) = Nothing) If listOfLines Is Nothing Then argIsNull(NameOf(listOfLines)) : Return Name = listOfLines(0).Trim(CChar("["), CChar("]")) StartingLineNumber = If(listOfLineCounts IsNot Nothing, listOfLineCounts(0), 1) EndingLineNumber = StartingLineNumber + listOfLines.Count Keys = New keyList If listOfLines.Count > 1 Then For i As Integer = 1 To listOfLines.Count - 1 Keys.add(New iniKey(listOfLines(i), If(listOfLineCounts Is Nothing, 0, listOfLineCounts(i)))) Next End If End Sub ''' <summary> Returns the keys in the <c> iniSection </c> as a <c> strList </c> </summary> Public Function getKeysAsStrList() As strList Dim out As New strList For Each key In Keys.Keys out.add(key.toString) Next Return out End Function ''' <summary> Compares two <c> iniSections </c>, returns <c> False </c> if they are not the same </summary> ''' <param name="ss"> The <c> iniSection </c> against which this object will be compared </param> ''' <param name="removedKeys"> A return <c> keyList </c> that appear in this <c> iniSection </c> object but not the given <c> iniSection </c> </param> ''' <param name="addedKeys"> A return <c> keyList </c> that appear in the given <c> iniSection </c> object but not this object </param> Public Function compareTo(ss As iniSection, ByRef removedKeys As keyList, ByRef addedKeys As keyList) As Boolean If ss Is Nothing Then argIsNull(NameOf(ss)) : Return False If removedKeys Is Nothing Then argIsNull(NameOf(removedKeys)) : Return False If addedKeys Is Nothing Then argIsNull(NameOf(addedKeys)) : Return False ' Create a copy of the section so we can modify it Dim secondSection As New iniSection With {.Name = ss.Name, .StartingLineNumber = ss.StartingLineNumber} For i = 0 To ss.Keys.KeyCount - 1 secondSection.Keys.add(ss.Keys.Keys(i)) Next Dim noMatch As Boolean Dim tmpList As New List(Of Integer) For Each key In Keys.Keys noMatch = True For i = 0 To secondSection.Keys.KeyCount - 1 Dim sKey = secondSection.Keys.Keys(i) Select Case True Case key.compareTypes(sKey) And key.compareValues(sKey) noMatch = False ' In the case where a change includes that a line has been duplicated, nasty things can happen :( If Not tmpList.Contains(i) Then tmpList.Add(i) Exit For End Select Next ' If the key isn't found in the second (newer) section, consider it removed for now removedKeys.add(key, noMatch) Next ' Remove all matched keys secondSection.removeKeys(tmpList) ' Assume any remaining keys have been added For Each key In secondSection.Keys.Keys addedKeys.add(key) Next Return removedKeys.KeyCount + addedKeys.KeyCount = 0 End Function ''' <summary> Returns the <c> iniSection </c> as it would appear on disk as a <c> String </c> </summary> Public Overrides Function ToString() As String Dim out = Me.getFullName For Each key In Keys.Keys out += Environment.NewLine & key.toString Next out += Environment.NewLine Return out End Function End Class
{ "pile_set_name": "Github" }
{ "name": "<%= props.name %>", "createdWith": "<%= props.igniteVersion %>", "boilerplate": "ignite-jhipster", "jhipsterDirectory": "<%= props.jhipsterDirectory %>", "authType": "<%= props.authType %>", "searchEngine": <%= props.searchEngine %>, "websockets": <%= props.websockets %>, "detox": <%= props.detox %>, "askToOverwrite": false, "generators": { "entity": "ignite-jhipster", "import-jdl": "ignite-jhipster", "upgrade": "ignite-jhipster" } }
{ "pile_set_name": "Github" }
SET(LCB_REVDESCRIBE @LCB_REVDESCRIBE@) SET(LCB_VERSION_CHANGESET @LCB_VERSION_CHANGESET@) SET(LCB_VERSION @LCB_VERSION@) SET(LCB_VERSION_HEX @LCB_VERSION_HEX@)
{ "pile_set_name": "Github" }
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/searchlib/queryeval/searchable.h> #include <vespa/searchlib/attribute/iattributemanager.h> #include <vespa/searchlib/queryeval/irequestcontext.h> namespace search { class AttributeBlueprintFactory : public queryeval::Searchable { public: // implements Searchable queryeval::Blueprint::UP createBlueprint(const queryeval::IRequestContext & requestContext, const queryeval::FieldSpec &field, const query::Node &term) override; }; } // namespace search
{ "pile_set_name": "Github" }
// // RSAtomParser.m // RSParser // // Created by Brent Simmons on 1/15/15. // Copyright (c) 2015 Ranchero Software LLC. All rights reserved. // #import "RSAtomParser.h" #import "RSSAXParser.h" #import "RSParsedFeed.h" #import "RSParsedArticle.h" #import "NSString+RSParser.h" #import "RSDateParser.h" #import "ParserData.h" #import "RSParsedEnclosure.h" #import "RSParsedAuthor.h" #import <libxml/xmlstring.h> @interface RSAtomParser () <RSSAXParserDelegate> @property (nonatomic) NSData *feedData; @property (nonatomic) NSString *urlString; @property (nonatomic) BOOL endFeedFound; @property (nonatomic) BOOL parsingXHTML; @property (nonatomic) BOOL parsingSource; @property (nonatomic) BOOL parsingArticle; @property (nonatomic) BOOL parsingAuthor; @property (nonatomic) NSMutableArray *attributesStack; @property (nonatomic, readonly) NSDictionary *currentAttributes; @property (nonatomic) NSMutableString *xhtmlString; @property (nonatomic) NSString *link; @property (nonatomic) NSString *title; @property (nonatomic) NSMutableArray *articles; @property (nonatomic) NSDate *dateParsed; @property (nonatomic) RSSAXParser *parser; @property (nonatomic, readonly) RSParsedArticle *currentArticle; @property (nonatomic) RSParsedAuthor *currentAuthor; @property (nonatomic, readonly) NSDate *currentDate; @property (nonatomic) NSString *language; @end @implementation RSAtomParser #pragma mark - Class Methods + (RSParsedFeed *)parseFeedWithData:(ParserData *)parserData { RSAtomParser *parser = [[[self class] alloc] initWithParserData:parserData]; return [parser parseFeed]; } #pragma mark - Init - (instancetype)initWithParserData:(ParserData *)parserData { self = [super init]; if (!self) { return nil; } _feedData = parserData.data; _urlString = parserData.url; _parser = [[RSSAXParser alloc] initWithDelegate:self]; _attributesStack = [NSMutableArray new]; _articles = [NSMutableArray new]; return self; } #pragma mark - API - (RSParsedFeed *)parseFeed { [self parse]; RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title link:self.link language:self.language articles:self.articles]; return parsedFeed; } #pragma mark - Constants static NSString *kTypeKey = @"type"; static NSString *kXHTMLType = @"xhtml"; static NSString *kRelKey = @"rel"; static NSString *kAlternateValue = @"alternate"; static NSString *kHrefKey = @"href"; static NSString *kXMLKey = @"xml"; static NSString *kBaseKey = @"base"; static NSString *kLangKey = @"lang"; static NSString *kXMLBaseKey = @"xml:base"; static NSString *kXMLLangKey = @"xml:lang"; static NSString *kTextHTMLValue = @"text/html"; static NSString *kRelatedValue = @"related"; static NSString *kEnclosureValue = @"enclosure"; static NSString *kShortURLValue = @"shorturl"; static NSString *kHTMLValue = @"html"; static NSString *kEnValue = @"en"; static NSString *kTextValue = @"text"; static NSString *kSelfValue = @"self"; static NSString *kLengthKey = @"length"; static NSString *kTitleKey = @"title"; static const char *kID = "id"; static const NSInteger kIDLength = 3; static const char *kTitle = "title"; static const NSInteger kTitleLength = 6; static const char *kContent = "content"; static const NSInteger kContentLength = 8; static const char *kSummary = "summary"; static const NSInteger kSummaryLength = 8; static const char *kLink = "link"; static const NSInteger kLinkLength = 5; static const char *kPublished = "published"; static const NSInteger kPublishedLength = 10; static const char *kIssued = "issued"; static const NSInteger kIssuedLength = 7; static const char *kUpdated = "updated"; static const NSInteger kUpdatedLength = 8; static const char *kModified = "modified"; static const NSInteger kModifiedLength = 9; static const char *kAuthor = "author"; static const NSInteger kAuthorLength = 7; static const char *kName = "name"; static const NSInteger kNameLength = 5; static const char *kEmail = "email"; static const NSInteger kEmailLength = 6; static const char *kURI = "uri"; static const NSInteger kURILength = 4; static const char *kEntry = "entry"; static const NSInteger kEntryLength = 6; static const char *kSource = "source"; static const NSInteger kSourceLength = 7; static const char *kFeed = "feed"; static const NSInteger kFeedLength = 5; static const char *kType = "type"; static const NSInteger kTypeLength = 5; static const char *kRel = "rel"; static const NSInteger kRelLength = 4; static const char *kAlternate = "alternate"; static const NSInteger kAlternateLength = 10; static const char *kHref = "href"; static const NSInteger kHrefLength = 5; static const char *kXML = "xml"; static const NSInteger kXMLLength = 4; static const char *kBase = "base"; static const NSInteger kBaseLength = 5; static const char *kLang = "lang"; static const NSInteger kLangLength = 5; static const char *kTextHTML = "text/html"; static const NSInteger kTextHTMLLength = 10; static const char *kRelated = "related"; static const NSInteger kRelatedLength = 8; static const char *kShortURL = "shorturl"; static const NSInteger kShortURLLength = 9; static const char *kHTML = "html"; static const NSInteger kHTMLLength = 5; static const char *kEn = "en"; static const NSInteger kEnLength = 3; static const char *kText = "text"; static const NSInteger kTextLength = 5; static const char *kSelf = "self"; static const NSInteger kSelfLength = 5; static const char *kEnclosure = "enclosure"; static const NSInteger kEnclosureLength = 10; static const char *kLength = "length"; static const NSInteger kLengthLength = 7; #pragma mark - Parsing - (void)parse { self.dateParsed = [NSDate date]; @autoreleasepool { [self.parser parseData:self.feedData]; [self.parser finishParsing]; } } - (void)addArticle { RSParsedArticle *article = [[RSParsedArticle alloc] initWithFeedURL:self.urlString]; article.dateParsed = self.dateParsed; [self.articles addObject:article]; } - (RSParsedArticle *)currentArticle { return self.articles.lastObject; } - (NSDictionary *)currentAttributes { return self.attributesStack.lastObject; } - (NSDate *)currentDate { return RSDateWithBytes(self.parser.currentCharacters.bytes, self.parser.currentCharacters.length); } - (void)addFeedLink { if (self.link && self.link.length > 0) { return; } NSString *related = self.currentAttributes[kRelKey]; if (related == kAlternateValue) { self.link = self.currentAttributes[kHrefKey]; } } - (void)addFeedTitle { if (self.title.length < 1) { self.title = [self currentString]; } } - (void)addFeedLanguage { if (self.language.length < 0) { self.language = self.currentAttributes[kXMLLangKey] ; } } - (void)addLink { NSDictionary *attributes = self.currentAttributes; NSString *urlString = attributes[kHrefKey]; if (urlString.length < 1) { return; } RSParsedArticle *article = self.currentArticle; NSString *rel = attributes[kRelKey]; if (rel.length < 1) { rel = kAlternateValue; } if (rel == kAlternateValue) { if (!article.link) { article.link = urlString; } } else if (rel == kRelatedValue) { if (!article.permalink) { article.permalink = urlString; } } else if (rel == kEnclosureValue) { RSParsedEnclosure *enclosure = [self enclosureWithURLString:urlString attributes:attributes]; [article addEnclosure:enclosure]; } } - (RSParsedEnclosure *)enclosureWithURLString:(NSString *)urlString attributes:(NSDictionary *)attributes { RSParsedEnclosure *enclosure = [[RSParsedEnclosure alloc] init]; enclosure.url = urlString; enclosure.title = attributes[kTitleKey]; enclosure.mimeType = attributes[kTypeKey]; enclosure.length = [attributes[kLengthKey] integerValue]; return enclosure; } - (void)addContent { self.currentArticle.body = [self currentString]; } - (void)addSummary { if (!self.currentArticle.body) { self.currentArticle.body = [self currentString]; } } - (NSString *)currentString { return self.parser.currentStringWithTrimmedWhitespace; } - (void)addArticleElement:(const xmlChar *)localName prefix:(const xmlChar *)prefix { if (prefix) { return; } if (RSSAXEqualTags(localName, kID, kIDLength)) { self.currentArticle.guid = [self currentString]; } else if (RSSAXEqualTags(localName, kTitle, kTitleLength)) { self.currentArticle.title = [self currentString]; } else if (RSSAXEqualTags(localName, kContent, kContentLength)) { [self addContent]; } else if (RSSAXEqualTags(localName, kSummary, kSummaryLength)) { [self addSummary]; } else if (RSSAXEqualTags(localName, kLink, kLinkLength)) { [self addLink]; } else if (RSSAXEqualTags(localName, kPublished, kPublishedLength)) { self.currentArticle.datePublished = self.currentDate; } else if (RSSAXEqualTags(localName, kUpdated, kUpdatedLength)) { self.currentArticle.dateModified = self.currentDate; } // Atom 0.3 dates else if (RSSAXEqualTags(localName, kIssued, kIssuedLength)) { if (!self.currentArticle.datePublished) { self.currentArticle.datePublished = self.currentDate; } } else if (RSSAXEqualTags(localName, kModified, kModifiedLength)) { if (!self.currentArticle.dateModified) { self.currentArticle.dateModified = self.currentDate; } } } - (void)addXHTMLTag:(const xmlChar *)localName { if (!localName) { return; } [self.xhtmlString appendString:@"<"]; [self.xhtmlString appendString:[NSString stringWithUTF8String:(const char *)localName]]; if (self.currentAttributes.count < 1) { [self.xhtmlString appendString:@">"]; return; } for (NSString *oneKey in self.currentAttributes) { [self.xhtmlString appendString:@" "]; NSString *oneValue = self.currentAttributes[oneKey]; [self.xhtmlString appendString:oneKey]; [self.xhtmlString appendString:@"=\""]; oneValue = [oneValue stringByReplacingOccurrencesOfString:@"\"" withString:@"&quot;"]; [self.xhtmlString appendString:oneValue]; [self.xhtmlString appendString:@"\""]; } [self.xhtmlString appendString:@">"]; } #pragma mark - RSSAXParserDelegate - (void)saxParser:(RSSAXParser *)SAXParser XMLStartElement:(const xmlChar *)localName prefix:(const xmlChar *)prefix uri:(const xmlChar *)uri numberOfNamespaces:(NSInteger)numberOfNamespaces namespaces:(const xmlChar **)namespaces numberOfAttributes:(NSInteger)numberOfAttributes numberDefaulted:(int)numberDefaulted attributes:(const xmlChar **)attributes { if (self.endFeedFound) { return; } NSDictionary *xmlAttributes = [self.parser attributesDictionary:attributes numberOfAttributes:numberOfAttributes]; if (!xmlAttributes) { xmlAttributes = [NSDictionary dictionary]; } [self.attributesStack addObject:xmlAttributes]; if (self.parsingXHTML) { [self addXHTMLTag:localName]; return; } if (RSSAXEqualTags(localName, kEntry, kEntryLength)) { self.parsingArticle = YES; [self addArticle]; return; } if (RSSAXEqualTags(localName, kAuthor, kAuthorLength)) { self.parsingAuthor = YES; self.currentAuthor = [[RSParsedAuthor alloc] init]; return; } if (RSSAXEqualTags(localName, kSource, kSourceLength)) { self.parsingSource = YES; return; } BOOL isContentTag = RSSAXEqualTags(localName, kContent, kContentLength); BOOL isSummaryTag = RSSAXEqualTags(localName, kSummary, kSummaryLength); if (self.parsingArticle && (isContentTag || isSummaryTag)) { if (isContentTag) { self.currentArticle.language = xmlAttributes[kXMLLangKey]; } NSString *contentType = xmlAttributes[kTypeKey]; if ([contentType isEqualToString:kXHTMLType]) { self.parsingXHTML = YES; self.xhtmlString = [NSMutableString stringWithString:@""]; return; } } if (!self.parsingArticle && RSSAXEqualTags(localName, kLink, kLinkLength)) { [self addFeedLink]; return; } if (RSSAXEqualTags(localName, kFeed, kFeedLength)) { [self addFeedLanguage]; } [self.parser beginStoringCharacters]; } - (void)saxParser:(RSSAXParser *)SAXParser XMLEndElement:(const xmlChar *)localName prefix:(const xmlChar *)prefix uri:(const xmlChar *)uri { if (RSSAXEqualTags(localName, kFeed, kFeedLength)) { self.endFeedFound = YES; return; } if (self.endFeedFound) { return; } if (self.parsingXHTML) { BOOL isContentTag = RSSAXEqualTags(localName, kContent, kContentLength); BOOL isSummaryTag = RSSAXEqualTags(localName, kSummary, kSummaryLength); if (self.parsingArticle && (isContentTag || isSummaryTag)) { if (isContentTag) { self.currentArticle.body = [self.xhtmlString copy]; } else if (isSummaryTag) { if (self.currentArticle.body.length < 1) { self.currentArticle.body = [self.xhtmlString copy]; } } } if (isContentTag || isSummaryTag) { self.parsingXHTML = NO; } [self.xhtmlString appendString:@"</"]; [self.xhtmlString appendString:[NSString stringWithUTF8String:(const char *)localName]]; [self.xhtmlString appendString:@">"]; } else if (self.parsingAuthor) { if (RSSAXEqualTags(localName, kAuthor, kAuthorLength)) { self.parsingAuthor = NO; RSParsedAuthor *author = self.currentAuthor; if (author.name || author.emailAddress || author.url) { [self.currentArticle addAuthor:author]; } self.currentAuthor = nil; } else if (RSSAXEqualTags(localName, kName, kNameLength)) { self.currentAuthor.name = [self currentString]; } else if (RSSAXEqualTags(localName, kEmail, kEmailLength)) { self.currentAuthor.emailAddress = [self currentString]; } else if (RSSAXEqualTags(localName, kURI, kURILength)) { self.currentAuthor.url = [self currentString]; } } else if (RSSAXEqualTags(localName, kEntry, kEntryLength)) { self.parsingArticle = NO; } else if (self.parsingArticle && !self.parsingSource) { [self addArticleElement:localName prefix:prefix]; } else if (RSSAXEqualTags(localName, kSource, kSourceLength)) { self.parsingSource = NO; } else if (!self.parsingArticle && !self.parsingSource && RSSAXEqualTags(localName, kTitle, kTitleLength)) { [self addFeedTitle]; } [self.attributesStack removeLastObject]; } - (NSString *)saxParser:(RSSAXParser *)SAXParser internedStringForName:(const xmlChar *)name prefix:(const xmlChar *)prefix { if (prefix && RSSAXEqualTags(prefix, kXML, kXMLLength)) { if (RSSAXEqualTags(name, kBase, kBaseLength)) { return kXMLBaseKey; } if (RSSAXEqualTags(name, kLang, kLangLength)) { return kXMLLangKey; } } if (prefix) { return nil; } if (RSSAXEqualTags(name, kRel, kRelLength)) { return kRelKey; } if (RSSAXEqualTags(name, kType, kTypeLength)) { return kTypeKey; } if (RSSAXEqualTags(name, kHref, kHrefLength)) { return kHrefKey; } if (RSSAXEqualTags(name, kAlternate, kAlternateLength)) { return kAlternateValue; } if (RSSAXEqualTags(name, kLength, kLengthLength)) { return kLengthKey; } if (RSSAXEqualTags(name, kTitle, kTitleLength)) { return kTitleKey; } return nil; } static BOOL equalBytes(const void *bytes1, const void *bytes2, NSUInteger length) { return memcmp(bytes1, bytes2, length) == 0; } - (NSString *)saxParser:(RSSAXParser *)SAXParser internedStringForValue:(const void *)bytes length:(NSUInteger)length { static const NSUInteger alternateLength = kAlternateLength - 1; static const NSUInteger textHTMLLength = kTextHTMLLength - 1; static const NSUInteger relatedLength = kRelatedLength - 1; static const NSUInteger shortURLLength = kShortURLLength - 1; static const NSUInteger htmlLength = kHTMLLength - 1; static const NSUInteger enLength = kEnLength - 1; static const NSUInteger textLength = kTextLength - 1; static const NSUInteger selfLength = kSelfLength - 1; static const NSUInteger enclosureLength = kEnclosureLength - 1; if (length == alternateLength && equalBytes(bytes, kAlternate, alternateLength)) { return kAlternateValue; } if (length == enclosureLength && equalBytes(bytes, kEnclosure, enclosureLength)) { return kEnclosureValue; } if (length == textHTMLLength && equalBytes(bytes, kTextHTML, textHTMLLength)) { return kTextHTMLValue; } if (length == relatedLength && equalBytes(bytes, kRelated, relatedLength)) { return kRelatedValue; } if (length == shortURLLength && equalBytes(bytes, kShortURL, shortURLLength)) { return kShortURLValue; } if (length == htmlLength && equalBytes(bytes, kHTML, htmlLength)) { return kHTMLValue; } if (length == enLength && equalBytes(bytes, kEn, enLength)) { return kEnValue; } if (length == textLength && equalBytes(bytes, kText, textLength)) { return kTextValue; } if (length == selfLength && equalBytes(bytes, kSelf, selfLength)) { return kSelfValue; } return nil; } - (void)saxParser:(RSSAXParser *)SAXParser XMLCharactersFound:(const unsigned char *)characters length:(NSUInteger)length { if (self.parsingXHTML) { NSString *s = [[NSString alloc] initWithBytesNoCopy:(void *)characters length:length encoding:NSUTF8StringEncoding freeWhenDone:NO]; if (s == nil) { return; } [self.xhtmlString appendString:[[NSString alloc] initWithBytesNoCopy:(void *)characters length:length encoding:NSUTF8StringEncoding freeWhenDone:NO]]; } } @end
{ "pile_set_name": "Github" }
/* Broadcom B43legacy wireless driver Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, Stefano Brivio <stefano.brivio@polimi.it> Michael Buesch <mbuesch@freenet.de> Danny van Dyk <kugelfang@gentoo.org> Andreas Jaggi <andreas.jaggi@waterwave.ch> Some parts of the code in this file are derived from the ipw2200 driver Copyright(c) 2003 - 2004 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef B43legacy_RADIO_H_ #define B43legacy_RADIO_H_ #include "b43legacy.h" #define B43legacy_RADIO_DEFAULT_CHANNEL_BG 6 /* Force antenna 0. */ #define B43legacy_RADIO_TXANTENNA_0 0 /* Force antenna 1. */ #define B43legacy_RADIO_TXANTENNA_1 1 /* Use the RX antenna, that was selected for the most recently * received good PLCP header. */ #define B43legacy_RADIO_TXANTENNA_LASTPLCP 3 #define B43legacy_RADIO_TXANTENNA_DEFAULT B43legacy_RADIO_TXANTENNA_LASTPLCP #define B43legacy_RADIO_INTERFMODE_NONE 0 #define B43legacy_RADIO_INTERFMODE_NONWLAN 1 #define B43legacy_RADIO_INTERFMODE_MANUALWLAN 2 #define B43legacy_RADIO_INTERFMODE_AUTOWLAN 3 void b43legacy_radio_lock(struct b43legacy_wldev *dev); void b43legacy_radio_unlock(struct b43legacy_wldev *dev); u16 b43legacy_radio_read16(struct b43legacy_wldev *dev, u16 offset); void b43legacy_radio_write16(struct b43legacy_wldev *dev, u16 offset, u16 val); u16 b43legacy_radio_init2050(struct b43legacy_wldev *dev); void b43legacy_radio_turn_on(struct b43legacy_wldev *dev); void b43legacy_radio_turn_off(struct b43legacy_wldev *dev, bool force); int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev, u8 channel, int synthetic_pu_workaround); void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower); void b43legacy_radio_set_txpower_bg(struct b43legacy_wldev *dev, u16 baseband_attenuation, u16 attenuation, u16 txpower); u16 b43legacy_default_baseband_attenuation(struct b43legacy_wldev *dev); u16 b43legacy_default_radio_attenuation(struct b43legacy_wldev *dev); u16 b43legacy_default_txctl1(struct b43legacy_wldev *dev); void b43legacy_radio_set_txantenna(struct b43legacy_wldev *dev, u32 val); void b43legacy_radio_clear_tssi(struct b43legacy_wldev *dev); u8 b43legacy_radio_aci_detect(struct b43legacy_wldev *dev, u8 channel); u8 b43legacy_radio_aci_scan(struct b43legacy_wldev *dev); int b43legacy_radio_set_interference_mitigation(struct b43legacy_wldev *dev, int mode); void b43legacy_calc_nrssi_slope(struct b43legacy_wldev *dev); void b43legacy_calc_nrssi_threshold(struct b43legacy_wldev *dev); s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset); void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val); void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val); void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev); void b43legacy_radio_set_tx_iq(struct b43legacy_wldev *dev); u16 b43legacy_radio_calibrationvalue(struct b43legacy_wldev *dev); #endif /* B43legacy_RADIO_H_ */
{ "pile_set_name": "Github" }
System.config({ transpiler: 'typescript', typescriptOptions: { emitDecoratorMetadata: true, experimentalDecorators: true }, map: { // our app is within the app folder 'app': 'app', // angular bundles '@angular/core': 'node_modules/@angular/core/bundles/core.umd.js', '@angular/common': 'node_modules/@angular/common/bundles/common.umd.js', '@angular/platform-browser': 'node_modules/@angular/platform-browser/bundles/platform-browser.umd.js', '@angular/platform-browser-dynamic': 'node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', '@angular/compiler': 'node_modules/@angular/compiler/bundles/compiler.umd.js', '@angular/router': 'node_modules/@angular/router/bundles/router.umd.js', // other libraries 'rxjs': 'node_modules/rxjs', 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api' }, // packages tells the System loader how to load when no filename and/or no extension packages: { app: { defaultExtension: 'ts' }, demo: { main: './main.ts', defaultExtension: 'ts' }, rxjs: { defaultExtension: 'js' }, 'angular2-in-memory-web-api': { main: './index.js', defaultExtension: 'js' } } });
{ "pile_set_name": "Github" }
openapi: 3.0.0 servers: - url: http://api.sportsdata.io/v3/mlb/articles-rotoballer - url: https://api.sportsdata.io/v3/mlb/articles-rotoballer info: contact: x-twitter: nfldata title: MLB v3 RotoBaller Articles version: "1.0" x-apisguru-categories: - entertainment x-logo: url: https://twitter.com/nfldata/profile_image?size=original x-origin: - format: swagger url: https://fantasydata.com/downloads/swagger/mlb-v3-rotoballer-articles.json version: "2.0" x-providerName: sportsdata.io x-serviceName: mlb-v3-rotoballer-articles security: - apiKeyHeader: [] - apiKeyQuery: [] tags: [] paths: "/{format}/RotoBallerArticles": get: operationId: RotoballerArticles parameters: - description: Desired response format. Valid entries are <code>XML</code> or <code>JSON</code>. in: path name: format required: true schema: default: xml enum: - xml - json type: string responses: "200": content: application/json: schema: items: $ref: "#/components/schemas/Article" type: array description: "" summary: RotoBaller Articles "/{format}/RotoBallerArticlesByDate/{date}": get: operationId: RotoballerArticlesByDate parameters: - description: Desired response format. Valid entries are <code>XML</code> or <code>JSON</code>. in: path name: format required: true schema: default: xml enum: - xml - json type: string - description: >- The date of the news. <br>Examples: <code>2017-JUL-31</code>, <code>2017-SEP-01</code>. in: path name: date required: true schema: type: string responses: "200": content: application/json: schema: items: $ref: "#/components/schemas/Article" type: array description: "" summary: RotoBaller Articles By Date "/{format}/RotoBallerArticlesByPlayerID/{playerid}": get: operationId: RotoballerArticlesByPlayer parameters: - description: Desired response format. Valid entries are <code>XML</code> or <code>JSON</code>. in: path name: format required: true schema: default: xml enum: - xml - json type: string - description: >- Unique FantasyData Player ID. Example:<code>10000507</code>. in: path name: playerid required: true schema: type: string responses: "200": content: application/json: schema: items: $ref: "#/components/schemas/Article" type: array description: "" summary: RotoBaller Articles By Player components: schemas: Article: properties: ArticleID: nullable: false type: integer Author: nullable: true type: string Content: nullable: true type: string Players: items: $ref: "#/components/schemas/PlayerInfo" type: array Source: nullable: true type: string TermsOfUse: nullable: true type: string Title: nullable: true type: string Updated: nullable: true type: string Url: nullable: true type: string PlayerInfo: properties: Name: nullable: true type: string PlayerID: nullable: false type: integer Position: nullable: true type: string Team: nullable: true type: string TeamID: nullable: true type: integer securitySchemes: apiKeyHeader: in: header name: Ocp-Apim-Subscription-Key type: apiKey apiKeyQuery: in: query name: subscription-key type: apiKey
{ "pile_set_name": "Github" }
{capture name='t_profile_url'}user/{$user.user_hash}{/capture} <div class="col-md-9" id="own-account"> <div class="row"> <div class="col-md-12 btn-group"> <h2>{$user.user_name|escape} <div class='pull-right'> {url type="anchor" url="account/edit" text="Edit" attr='class="btn btn-default"'} {if $request_emails == TRUE} {if $user.email_address == NULL} {url type="anchor" url="accounts/email" text="Set Email" attr='class="btn btn-default"'} {else} {url type="anchor" url="accounts/email" text="Update Email" attr='class="btn btn-default"'} {/if} {/if} {url type="anchor" url="accounts/password" text="Change Password" attr='class="btn btn-default"'} </div> </h2> </div> </div> {assign var="defaultMessage" value=""} {returnMessage defaultMessage="$defaultMessage" returnMessage="$returnMessage" class="$returnMessage_class"} <div class="col-xs-12">&nbsp;</div> <div class="row"> <div class="col-md-4"><strong>Profile URL</strong></div> <div class="col-md-8">{url type="anchor" url=$smarty.capture.t_profile_url text="" attr=''}</div> </div> <div class="row"> <div class="col-md-4"><strong>Location</strong></div> <div class="col-md-8">{$user.location_f}</div> </div> <div class="row"> <div class="col-md-4"><strong>Local Currency</strong></div> <div class="col-md-8">{$user.currency.name} ({$user.currency.symbol})</div> </div> <div class="row"> <div class="col-md-4"><strong>Display Login Activity?</strong></div> <div class="col-md-8">{if $user.display_login_time == '1'}Enabled{else}Disabled{/if}</div> </div> <div class="row">&nbsp;</div> <legend>Private Settings </legend> {if $request_emails == TRUE} <div class="row"> <div class="col-md-4"><strong>Email Address</strong></div> <div class="col-md-8">{if $user.email_address == ''}none{else}{$user.email_address|escape:"html":"UTF-8"}{/if}</div> </div> <div class="row"> <div class="col-md-4"><strong>Forward messages to email?</strong></div> <div class="col-md-8">{if $user.email_updates == TRUE AND (($user.email_address == '')==FALSE) }Enabled{else}Disabled{/if}</div> </div> {/if} {if $user.user_role !== 'Admin'} <div class="row"> <div class="col-md-4"><strong>Bitcoin Public Keys</strong></div> <div class="col-md-8"> {if $bip32 == FALSE}Not set up - {url type="anchor" url="bip32" text="do so now!" attr=""} {else}Provider: {$bip32.provider} - {url type="anchor" url="bip32" text="Settings" attr=""} {/if} </div> </div> <div class="row"> <div class="col-md-4"><strong>{if $user.user_role == 'Vendor'}Payout{else}Refund{/if} Address</strong></div> <div class="col-md-8"> {if is_array($payout)} {$payout.address|escape:"html":"UTF-8"} - {url type="anchor" url="accounts/payout" text="Settings" attr=''} {else} Not set up - {url type="anchor" url="accounts/payout" text="do so now!" attr=''} {/if} </div> </div> {/if} <div class="row">&nbsp;</div> <legend>Security</legend> <div class="row"> <div class="col-md-4"><strong>Two Factor Authentication</strong></div> <div class="col-md-8"> {if $two_factor_setting == TRUE} {if $two_factor.totp == TRUE} Enabled (Mobile App) {else} Enabled (PGP) {/if} {else} Disabled {/if} {url type="anchor" url="account/two_factor" text="Configure" attr=""} </div> </div> {if isset($user.pgp.public_key) == TRUE} <div class="row"> <div class="col-md-4"><strong>PGP Fingerprint</strong></div> <div class="col-md-8">{substr($user.pgp.fingerprint, 0, -8)}<b>{substr($user.pgp.fingerprint,-8)}</b></div> </div> <div class="row"> <div class="col-md-4"><strong>Force PGP Messages?</strong></div> <div class="col-md-8">{if $user.force_pgp_messages == '1'}Enabled{else}Disabled{/if}</div> </div> <div class="row"> <div class="col-md-4"><strong>Block non-PGP messages?</strong></div> <div class="col-md-8">{if $user.block_non_pgp == '1'}Enabled{else}Disabled{/if}</div> </div> {else} <div class="row"> <div class="col-md-4"><strong>PGP Features</strong></div> <div class="col-md-8">{url type="anchor" url="pgp/add" text="Add a PGP key" attr=""} to enable features such as two-factor authentication, or automatic encryption of messages.</div> </div> {/if} </div>
{ "pile_set_name": "Github" }
/* * Copyright 2012-2018 Chronicle Map Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package examples.portfolio; import net.openhft.chronicle.core.values.LongValue; import net.openhft.chronicle.map.MapEntry; import org.apache.commons.lang3.mutable.MutableDouble; import java.util.function.Consumer; public final class PortfolioValueAccumulator implements Consumer<MapEntry<LongValue, PortfolioAssetInterface>> { final MutableDouble total; final PortfolioAssetInterface asset; public PortfolioValueAccumulator(MutableDouble total, PortfolioAssetInterface asset) { this.total = total; this.asset = asset; } @Override public void accept(MapEntry<LongValue, PortfolioAssetInterface> e) { e.value().getUsing(asset); total.add(asset.getShares() * asset.getPrice()); } }
{ "pile_set_name": "Github" }
// MESSAGE SET_LOCAL_POSITION_SETPOINT PACKING #define MAVLINK_MSG_ID_SET_LOCAL_POSITION_SETPOINT 50 typedef struct __mavlink_set_local_position_setpoint_t { float x; ///< x position float y; ///< y position float z; ///< z position float yaw; ///< Desired yaw angle uint8_t target_system; ///< System ID uint8_t target_component; ///< Component ID uint8_t coordinate_frame; ///< Coordinate frame - valid values are only MAV_FRAME_LOCAL_NED or MAV_FRAME_LOCAL_ENU } mavlink_set_local_position_setpoint_t; #define MAVLINK_MSG_ID_SET_LOCAL_POSITION_SETPOINT_LEN 19 #define MAVLINK_MSG_ID_50_LEN 19 #define MAVLINK_MESSAGE_INFO_SET_LOCAL_POSITION_SETPOINT { \ "SET_LOCAL_POSITION_SETPOINT", \ 7, \ { { "x", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_set_local_position_setpoint_t, x) }, \ { "y", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_set_local_position_setpoint_t, y) }, \ { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_set_local_position_setpoint_t, z) }, \ { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_set_local_position_setpoint_t, yaw) }, \ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_set_local_position_setpoint_t, target_system) }, \ { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_set_local_position_setpoint_t, target_component) }, \ { "coordinate_frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_set_local_position_setpoint_t, coordinate_frame) }, \ } \ } /** * @brief Pack a set_local_position_setpoint message * @param system_id ID of this system * @param component_id ID of this component (e.g. 200 for IMU) * @param msg The MAVLink message to compress the data into * * @param target_system System ID * @param target_component Component ID * @param coordinate_frame Coordinate frame - valid values are only MAV_FRAME_LOCAL_NED or MAV_FRAME_LOCAL_ENU * @param x x position * @param y y position * @param z z position * @param yaw Desired yaw angle * @return length of the message in bytes (excluding serial stream start sign) */ static inline uint16_t mavlink_msg_set_local_position_setpoint_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, float x, float y, float z, float yaw) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[19]; _mav_put_float(buf, 0, x); _mav_put_float(buf, 4, y); _mav_put_float(buf, 8, z); _mav_put_float(buf, 12, yaw); _mav_put_uint8_t(buf, 16, target_system); _mav_put_uint8_t(buf, 17, target_component); _mav_put_uint8_t(buf, 18, coordinate_frame); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, 19); #else mavlink_set_local_position_setpoint_t packet; packet.x = x; packet.y = y; packet.z = z; packet.yaw = yaw; packet.target_system = target_system; packet.target_component = target_component; packet.coordinate_frame = coordinate_frame; memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, 19); #endif msg->msgid = MAVLINK_MSG_ID_SET_LOCAL_POSITION_SETPOINT; return mavlink_finalize_message(msg, system_id, component_id, 19, 214); } /** * @brief Pack a set_local_position_setpoint message on a channel * @param system_id ID of this system * @param component_id ID of this component (e.g. 200 for IMU) * @param chan The MAVLink channel this message was sent over * @param msg The MAVLink message to compress the data into * @param target_system System ID * @param target_component Component ID * @param coordinate_frame Coordinate frame - valid values are only MAV_FRAME_LOCAL_NED or MAV_FRAME_LOCAL_ENU * @param x x position * @param y y position * @param z z position * @param yaw Desired yaw angle * @return length of the message in bytes (excluding serial stream start sign) */ static inline uint16_t mavlink_msg_set_local_position_setpoint_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, uint8_t target_system,uint8_t target_component,uint8_t coordinate_frame,float x,float y,float z,float yaw) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[19]; _mav_put_float(buf, 0, x); _mav_put_float(buf, 4, y); _mav_put_float(buf, 8, z); _mav_put_float(buf, 12, yaw); _mav_put_uint8_t(buf, 16, target_system); _mav_put_uint8_t(buf, 17, target_component); _mav_put_uint8_t(buf, 18, coordinate_frame); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, 19); #else mavlink_set_local_position_setpoint_t packet; packet.x = x; packet.y = y; packet.z = z; packet.yaw = yaw; packet.target_system = target_system; packet.target_component = target_component; packet.coordinate_frame = coordinate_frame; memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, 19); #endif msg->msgid = MAVLINK_MSG_ID_SET_LOCAL_POSITION_SETPOINT; return mavlink_finalize_message_chan(msg, system_id, component_id, chan, 19, 214); } /** * @brief Encode a set_local_position_setpoint struct into a message * * @param system_id ID of this system * @param component_id ID of this component (e.g. 200 for IMU) * @param msg The MAVLink message to compress the data into * @param set_local_position_setpoint C-struct to read the message contents from */ static inline uint16_t mavlink_msg_set_local_position_setpoint_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_set_local_position_setpoint_t* set_local_position_setpoint) { return mavlink_msg_set_local_position_setpoint_pack(system_id, component_id, msg, set_local_position_setpoint->target_system, set_local_position_setpoint->target_component, set_local_position_setpoint->coordinate_frame, set_local_position_setpoint->x, set_local_position_setpoint->y, set_local_position_setpoint->z, set_local_position_setpoint->yaw); } /** * @brief Send a set_local_position_setpoint message * @param chan MAVLink channel to send the message * * @param target_system System ID * @param target_component Component ID * @param coordinate_frame Coordinate frame - valid values are only MAV_FRAME_LOCAL_NED or MAV_FRAME_LOCAL_ENU * @param x x position * @param y y position * @param z z position * @param yaw Desired yaw angle */ #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS static inline void mavlink_msg_set_local_position_setpoint_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, float x, float y, float z, float yaw) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[19]; _mav_put_float(buf, 0, x); _mav_put_float(buf, 4, y); _mav_put_float(buf, 8, z); _mav_put_float(buf, 12, yaw); _mav_put_uint8_t(buf, 16, target_system); _mav_put_uint8_t(buf, 17, target_component); _mav_put_uint8_t(buf, 18, coordinate_frame); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_LOCAL_POSITION_SETPOINT, buf, 19, 214); #else mavlink_set_local_position_setpoint_t packet; packet.x = x; packet.y = y; packet.z = z; packet.yaw = yaw; packet.target_system = target_system; packet.target_component = target_component; packet.coordinate_frame = coordinate_frame; _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_LOCAL_POSITION_SETPOINT, (const char *)&packet, 19, 214); #endif } #endif // MESSAGE SET_LOCAL_POSITION_SETPOINT UNPACKING /** * @brief Get field target_system from set_local_position_setpoint message * * @return System ID */ static inline uint8_t mavlink_msg_set_local_position_setpoint_get_target_system(const mavlink_message_t* msg) { return _MAV_RETURN_uint8_t(msg, 16); } /** * @brief Get field target_component from set_local_position_setpoint message * * @return Component ID */ static inline uint8_t mavlink_msg_set_local_position_setpoint_get_target_component(const mavlink_message_t* msg) { return _MAV_RETURN_uint8_t(msg, 17); } /** * @brief Get field coordinate_frame from set_local_position_setpoint message * * @return Coordinate frame - valid values are only MAV_FRAME_LOCAL_NED or MAV_FRAME_LOCAL_ENU */ static inline uint8_t mavlink_msg_set_local_position_setpoint_get_coordinate_frame(const mavlink_message_t* msg) { return _MAV_RETURN_uint8_t(msg, 18); } /** * @brief Get field x from set_local_position_setpoint message * * @return x position */ static inline float mavlink_msg_set_local_position_setpoint_get_x(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 0); } /** * @brief Get field y from set_local_position_setpoint message * * @return y position */ static inline float mavlink_msg_set_local_position_setpoint_get_y(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 4); } /** * @brief Get field z from set_local_position_setpoint message * * @return z position */ static inline float mavlink_msg_set_local_position_setpoint_get_z(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 8); } /** * @brief Get field yaw from set_local_position_setpoint message * * @return Desired yaw angle */ static inline float mavlink_msg_set_local_position_setpoint_get_yaw(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 12); } /** * @brief Decode a set_local_position_setpoint message into a struct * * @param msg The message to decode * @param set_local_position_setpoint C-struct to decode the message contents into */ static inline void mavlink_msg_set_local_position_setpoint_decode(const mavlink_message_t* msg, mavlink_set_local_position_setpoint_t* set_local_position_setpoint) { #if MAVLINK_NEED_BYTE_SWAP set_local_position_setpoint->x = mavlink_msg_set_local_position_setpoint_get_x(msg); set_local_position_setpoint->y = mavlink_msg_set_local_position_setpoint_get_y(msg); set_local_position_setpoint->z = mavlink_msg_set_local_position_setpoint_get_z(msg); set_local_position_setpoint->yaw = mavlink_msg_set_local_position_setpoint_get_yaw(msg); set_local_position_setpoint->target_system = mavlink_msg_set_local_position_setpoint_get_target_system(msg); set_local_position_setpoint->target_component = mavlink_msg_set_local_position_setpoint_get_target_component(msg); set_local_position_setpoint->coordinate_frame = mavlink_msg_set_local_position_setpoint_get_coordinate_frame(msg); #else memcpy(set_local_position_setpoint, _MAV_PAYLOAD(msg), 19); #endif }
{ "pile_set_name": "Github" }
owner = AUS controller = AUS add_core = AUS infra = 10 1938.3.12 = { owner = GER controller = GER add_core = GER }
{ "pile_set_name": "Github" }
ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 1. Symbol Table .A = 0010 .B = 0020 .BANKOV = 0002 .BCPD = 0069 .BCPS = 0068 .BGP = 0047 .DIV = 0004 .DMA = 0046 .DOWN = 0008 .DT_IDLE = 0066 .DT_RECEIVING = 0055 .G_MODE = 0001 .HDMA1 = 0051 .HDMA2 = 0052 .HDMA3 = 0053 .HDMA4 = 0054 .HDMA5 = 0055 .IE = 00FF .IF = 000F .IO_ERROR = 0004 .IO_IDLE = 0000 .IO_RECEIVING = 0002 .IO_SENDING = 0001 .JOY_IFLAG = 0010 .KEY1 = 004D .LCDC = 0040 .LCD_IFLAG = 0002 .LEFT = 0002 .LY = 0044 .LYC = 0045 .MAXCURSPOSX = 0013 .MAXCURSPOSY = 0011 .MAXWNDPOSX = 00A6 .MAXWNDPOSY = 008F .MBC1_ROM_PAGE = 2000 .MINWNDPOSX = 0007 .MINWNDPOSY = 0000 .MODE_TABLE = 01E0 .M_NO_INTERP = 0008 .M_NO_SCROLL = 0004 .NEAR_CALLS = 0001 .NR10 = 0010 .NR11 = 0011 .NR12 = 0012 .NR13 = 0013 .NR14 = 0014 .NR21 = 0016 .NR22 = 0017 .NR23 = 0018 .NR24 = 0019 .NR30 = 001A .NR31 = 001B .NR32 = 001C .NR33 = 001D .NR34 = 001E .NR41 = 0020 .NR42 = 0021 .NR43 = 0022 .NR44 = 0023 .NR50 = 0024 .NR51 = 0025 .NR52 = 0026 .OAM **** GX .OBP0 = 0048 .OBP1 = 0049 .OCPD = 006B .OCPS = 006A .P1 = 0000 .RIGHT = 0001 .RP = 0056 .SB = 0001 .SC = 0002 .SCREENHEIGHT = 0090 .SCREENWIDTH = 00A0 .SCX = 0043 .SCY = 0042 .SELECT = 0040 .SIO_IFLAG = 0008 .STACK **** GX .START = 0080 .STAT = 0041 .SVBK = 0070 .TAC = 0007 .TIMA = 0005 .TIM_IFLAG = 0004 .TMA = 0006 .T_MODE = 0002 .T_MODE_INOUT = 0003 .T_MODE_OUT = 0002 .UP = 0004 .VBK = 004F .VBL_IFLAG = 0001 .WX = 004B .WY = 004A .add_JOY **** GX .add_LCD **** GX .add_SIO **** GX .add_TIM **** GX .add_VBL **** GX .display_off **** GX .init **** GX .mode **** GX .refresh_OAM **** GX .reset **** GX .set_mode **** GX .wait_vbl_done **** GX __RGBDS__ = 0000 __cpu **** GX __io_in **** GX __io_out **** GX __io_status **** GX _main **** GX 1 _move_win 0000 GR banked_call **** GX banked_ret **** GX ASxxxx Assembler V01.75 (GameBoy Z80-like CPU), page 2. Area Table 0 _CODE size 0 flags 0 1 _BASE size 9 flags 0
{ "pile_set_name": "Github" }
/** * Shape/Symbol * * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx */ @import "recipes/shape/symbol/diamond"; @import "recipes/shape/symbol/egg"; @import "recipes/shape/symbol/heart"; @import "recipes/shape/symbol/infinity"; @import "recipes/shape/symbol/pacman"; @import "recipes/shape/symbol/yin-yang";
{ "pile_set_name": "Github" }
// // AppDelegate.h // 下载进度条 // // Created by 杭城小刘 on 2017/10/15. // Copyright © 2017年 杭城小刘. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
{ "pile_set_name": "Github" }
import _plotly_utils.basevalidators class NameValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="name", parent_name="histogram2d", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "style"), role=kwargs.pop("role", "info"), **kwargs )
{ "pile_set_name": "Github" }
/* * This file is part of OpenModelica. * * Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC), * c/o Linköpings universitet, Department of Computer and Information Science, * SE-58183 Linköping, Sweden. * * All rights reserved. * * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR * THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2. * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, * ACCORDING TO RECIPIENTS CHOICE. * * The OpenModelica software and the Open Source Modelica * Consortium (OSMC) Public License (OSMC-PL) are obtained * from OSMC, either from the above address, * from the URLs: http://www.ida.liu.se/projects/OpenModelica or * http://www.openmodelica.org, and in the OpenModelica distribution. * GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html. * * This program is distributed WITHOUT ANY WARRANTY; without * even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH * IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL. * * See the full OSMC Public License conditions for more details. * */ /* * @author Adeel Asghar <adeel.asghar@liu.se> */ #ifndef HELPER_H #define HELPER_H #include <stdlib.h> #include <QString> #include <QSize> #include <QObject> #include <QFontInfo> #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) #define QStringLiteral QString::fromUtf8 #endif class Helper : public QObject { Q_OBJECT public: static void initHelperVariables(); /* Global non-translated variables */ static QString applicationName; static QString applicationIntroText; static QString organization; static QString application; static QString OpenModelicaVersion; static QString OpenModelicaHome; static QString OpenModelicaLibrary; static QString OMCServerName; static QString omFileTypes; static QString omEncryptedFileTypes; static QString omnotebookFileTypes; static QString ngspiceNetlistFileTypes; static QString imageFileTypes; static QString bitmapFileTypes; static QString fmuFileTypes; static QString xmlFileTypes; static QString infoXmlFileTypes; static QString matFileTypes; static QString csvFileTypes; static QString omResultFileTypes; static QString omResultFileTypesRegExp; static QString exeFileTypes; static QString txtFileTypes; static QString figaroFileTypes; static QString visualizationFileTypes; static QString omsFileTypes; static QString subModelFileTypes; static int treeIndentation; static QSize iconSize; static int tabWidth; static qreal minimumTextFontSize; static QString modelicaComponentFormat; static QString modelicaFileFormat; static QString busConnectorFormat; static QString cutCopyPasteFormat; static qreal shapesStrokeWidth; static int headingFontSize; static QString ModelicaSimulationOutputFormats; static QString clockOptions; static QString internalLevel; static QString notificationLevel; static QString warningLevel; static QString errorLevel; static QString syntaxKind; static QString grammarKind; static QString translationKind; static QString symbolicKind; static QString simulationKind; static QString scriptingKind; static QString tabbed; static QString subWindow; static QString structuredOutput; static QString textOutput; static QString utf8; static const char * const fmuPlatformNamePropertyId; static QFontInfo systemFontInfo; static QFontInfo monospacedFontInfo; static QString toolsOptionsPath; static QString speedOptions; /* Meta Modelica Types */ static QString MODELICA_METATYPE; static QString MODELICA_STRING; static QString MODELICA_BOOLEAN; static QString MODELICA_INETGER; static QString MODELICA_REAL; static QString REPLACEABLE_TYPE_ANY; static QString RECORD; static QString LIST; static QString OPTION; static QString TUPLE; static QString ARRAY; static QString VALUE_OPTIMIZED_OUT; /* Modelica Types */ static QString STRING; static QString BOOLEAN; static QString INTEGER; static QString REAL; /* OMSimulator system types */ static QString systemTLM; static QString systemWC; static QString systemSC; /* Global translated variables */ static QString newModelicaClass; static QString createNewModelicaClass; static QString openModelicaFiles; static QString openConvertModelicaFiles; static QString libraries; static QString clearRecentFiles; static QString encoding; static QString fileLabel; static QString file; static QString folder; static QString browse; static QString ok; static QString cancel; static QString reset; static QString close; static QString error; static QString chooseFile; static QString chooseFiles; static QString attributes; static QString properties; static QString add; static QString edit; static QString save; static QString saveTip; static QString saveAs; static QString saveAsTip; static QString saveTotal; static QString saveTotalTip; static QString apply; static QString chooseDirectory; static QString general; static QString output; static QString parameters; static QString inputs; static QString name; static QString startScript; static QString comment; static QString path; static QString type; static QString information; static QString rename; static QString renameTip; static QString OMSRenameTip; static QString checkModel; static QString checkModelTip; static QString checkAllModels; static QString checkAllModelsTip; static QString instantiateModel; static QString instantiateModelTip; static QString FMU; static QString exportt; static QString exportFMUTip; static QString exportReadonlyPackage; static QString exportRealonlyPackageTip; static QString exportEncryptedPackage; static QString exportEncryptedPackageTip; static QString importFMU; static QString importFMUTip; static QString exportXML; static QString exportXMLTip; static QString exportToOMNotebook; static QString exportToOMNotebookTip; static QString importFromOMNotebook; static QString importNgspiceNetlist; static QString importFromOMNotebookTip; static QString importNgspiceNetlistTip; static QString line; static QString exportAsImage; static QString exportAsImageTip; static QString exportFigaro; static QString exportFigaroTip; static QString OpenModelicaCompilerCLI; static QString deleteStr; static QString copy; static QString paste; static QString resetZoom; static QString zoomIn; static QString zoomOut; static QString loading; static QString question; static QString search; static QString duplicate; static QString duplicateTip; static QString unloadClass; static QString unloadClassTip; static QString unloadCompositeModelOrTextTip; static QString unloadOMSModelTip; static QString refresh; static QString simulate; static QString simulateTip; static QString callFunction; static QString callFunctionTip; static QString reSimulate; static QString reSimulateTip; static QString reSimulateSetup; static QString reSimulateSetupTip; static QString exportVariables; static QString simulateWithTransformationalDebugger; static QString simulateWithTransformationalDebuggerTip; static QString simulateWithAlgorithmicDebugger; static QString simulateWithAlgorithmicDebuggerTip; static QString simulateWithAnimation; static QString simulateWithAnimationTip; static QString simulationSetup; static QString simulationSetupTip; static QString simulation; static QString reSimulation; static QString interactiveSimulation; static QString options; static QString extent; static QString bottom; static QString top; static QString grid; static QString horizontal; static QString vertical; static QString component; static QString element; static QString scaleFactor; static QString preserveAspectRatio; static QString originX; static QString originY; static QString rotation; static QString thickness; static QString smooth; static QString bezier; static QString startArrow; static QString endArrow; static QString arrowSize; static QString size; static QString lineStyle; static QString color; static QString Colors; static QString fontFamily; static QString fontSize; static QString pickColor; static QString pattern; static QString fillStyle; static QString extent1X; static QString extent1Y; static QString extent2X; static QString extent2Y; static QString radius; static QString startAngle; static QString endAngle; static QString curveStyle; static QString figaro; static QString remove; static QString errorLocation; static QString fileLocation; static QString readOnly; static QString writable; static QString workingDirectory; static QString iconView; static QString diagramView; static QString textView; static QString documentationView; static QString filterClasses; static QString findReplaceModelicaText; static QString left; static QString center; static QString right; static QString createConnection; static QString connectionAttributes; static QString createTransition; static QString editTransition; static QString findVariables; static QString filterVariables; static QString openClass; static QString openClassTip; static QString viewIcon; static QString viewIconTip; static QString viewDiagram; static QString viewDiagramTip; static QString viewText; static QString viewTextTip; static QString viewDocumentation; static QString viewDocumentationTip; static QString dontShowThisMessageAgain; static QString clickAndDragToResize; static QString variables; static QString variablesBrowser; static QString description; static QString previous; static QString next; static QString reload; static QString index; static QString equation; static QString transformationalDebugger; static QString executionCount; static QString executionMaxTime; static QString executionTime; static QString executionFraction; static QString debuggingFileNotSaveInfo; static QString algorithmicDebugger; static QString debugConfigurations; static QString debugConfigurationsTip; static QString createGitReposiory; static QString createGitReposioryTip; static QString logCurrentFile; static QString logCurrentFileTip; static QString stageCurrentFileForCommit; static QString stageCurrentFileForCommitTip; static QString unstageCurrentFileFromCommit; static QString unstageCurrentFileFromCommitTip; static QString commitFiles; static QString commitFilesTip; static QString resume; static QString interrupt; static QString exit; static QString stepOver; static QString stepInto; static QString stepReturn; static QString attachToRunningProcess; static QString attachToRunningProcessTip; static QString crashReport; static QString parsingFailedJson; static QString expandAll; static QString collapseAll; static QString version; static QString unlimited; static QString simulationOutput; static QString cancelSimulation; static QString fetchInterfaceData; static QString fetchInterfaceDataTip; static QString alignInterfaces; static QString alignInterfacesTip; static QString tlmCoSimulationSetup; static QString tlmCoSimulationSetupTip; static QString tlmCoSimulation; static QString animationChooseFile; static QString animationChooseFileTip; static QString animationInitialize; static QString animationInitializeTip; static QString animationPlay; static QString animationPlayTip; static QString animationPause; static QString animationPauseTip; static QString animationRepeat; static QString animationRepeatTip; static QString simulationParams; static QString simulationParamsTip; static QString newOMSimulatorModel; static QString newOMSimulatorModelTip; static QString addSystem; static QString addSystemTip; static QString addSubModel; static QString addExternalTLMModel; static QString addSubModelTip; static QString addBus; static QString addBusTip; static QString editBus; static QString addTLMBus; static QString addTLMBusTip; static QString editTLMBus; static QString addConnector; static QString addConnectorTip; static QString addBusConnection; static QString editBusConnection; static QString addTLMConnection; static QString editTLMConnection; static QString running; static QString finished; static QString newVariable; static QString library; static QString moveUp; static QString moveDown; static QString fixErrorsManually; static QString revertToLastCorrectVersion; static QString translationFlagsTip; static QString saveExperimentAnnotation; static QString saveOpenModelicaSimulationFlagsAnnotation; static QString saveOpenModelicaCommandLineOptionsAnnotation; static QString item; static QString bold; static QString italic; static QString underline; static QString condition; static QString immediate; static QString synchronize; static QString priority; static QString secs; static QString saveContentsInOneFile; static QString dateTime; static QString startTime; static QString stopTime; static QString status; static QString speed; static QString instantiateOMSModelTip; static QString terminateInstantiation; static QString terminateInstantiationTip; static QString archivedSimulations; static QString systemSimulationInformation; static QString translationFlags; }; class GUIMessages : public QObject { Q_OBJECT public: enum MessagesTypes { CHECK_MESSAGES_BROWSER, SAME_COMPONENT_NAME, SAME_COMPONENT_CONNECT, NO_MODELICA_CLASS_OPEN, SIMULATION_STARTTIME_LESSTHAN_STOPTIME, ENTER_NAME, EXTENDS_CLASS_NOT_FOUND, INSERT_IN_CLASS_NOT_FOUND, INSERT_IN_SYSTEM_LIBRARY_NOT_ALLOWED, MODEL_ALREADY_EXISTS, ITEM_ALREADY_EXISTS, INSTALLATIONDIRECTORY_NOT_FOUND, ERROR_OCCURRED, ERROR_IN_TEXT, REVERT_PREVIOUS_OR_FIX_ERRORS_MANUALLY, NO_OPENMODELICA_KEYWORDS, UNABLE_TO_CREATE_CLASS, UNABLE_TO_LOAD_FILE, UNABLE_TO_OPEN_FILE, UNABLE_TO_SAVE_FILE, UNABLE_TO_DELETE_FILE, FILE_NOT_FOUND, ERROR_OPENING_FILE, UNABLE_TO_LOAD_MODEL, DELETE_AND_LOAD, REDEFINING_EXISTING_CLASSES, MULTIPLE_TOP_LEVEL_CLASSES, DIAGRAM_VIEW_DROP_MSG, ICON_VIEW_DROP_MSG, PLOT_PARAMETRIC_DIFF_FILES, ENTER_VALID_NUMBER, ENTER_VALUE, ITEM_DROPPED_ON_ITSELF, MAKE_REPLACEABLE_IF_PARTIAL, INNER_MODEL_NAME_CHANGED, FMU_GENERATED, FMU_MOVE_FAILED, FMU_EMPTY_PLATFORMS, XML_GENERATED, FIGARO_GENERATED, ENCRYPTED_PACKAGE_GENERATED, READONLY_PACKAGE_GENERATED, UNLOAD_CLASS_MSG, DELETE_CLASS_MSG, UNLOAD_TEXT_FILE_MSG, DELETE_TEXT_FILE_MSG, WRONG_MODIFIER, SET_INFO_XML_FLAG, DEBUG_CONFIGURATION_EXISTS_MSG, DEBUG_CONFIGURATION_SIZE_EXCEED, DELETE_DEBUG_CONFIGURATION_MSG, DEBUGGER_ALREADY_RUNNING, CLASS_NOT_FOUND, BREAKPOINT_INSERT_NOT_SAVED, BREAKPOINT_INSERT_NOT_MODELICA_CLASS, TLMMANAGER_NOT_SET, COMPOSITEMODEL_UNSAVED, TLMCOSIMULATION_ALREADY_RUNNING, TERMINAL_COMMAND_NOT_SET, UNABLE_FIND_COMPONENT_IN_CONNECTION, UNABLE_FIND_COMPONENT_IN_TRANSITION, UNABLE_FIND_COMPONENT_IN_INITIALSTATE, SELECT_SIMULATION_OPTION, INVALID_TRANSITION_CONDITION, MULTIPLE_DECLARATIONS_COMPONENT, GDB_ERROR, INVALID_INSTANCE_NAME, ENTER_SCRIPT }; static QString getMessage(int type); }; #endif // HELPER_H
{ "pile_set_name": "Github" }
/* Copyright 2017-2020 Charles Korn. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package batect.logging import kotlinx.serialization.SerializationStrategy import kotlinx.serialization.builtins.ListSerializer import kotlinx.serialization.builtins.MapSerializer import kotlinx.serialization.builtins.nullable import kotlinx.serialization.builtins.serializer import java.nio.file.Path import java.time.ZonedDateTime class LogMessageBuilder(val severity: Severity, val loggerAdditionalData: Map<String, Jsonable> = emptyMap()) { private var message: String = "" private val data = HashMap<String, Jsonable>() fun message(value: String): LogMessageBuilder { message = value return this } fun exception(e: Throwable): LogMessageBuilder = exception("exception", e) fun exception(key: String, e: Throwable): LogMessageBuilder = data(key, e.toDetailedString(), String.serializer()) fun <T> data(key: String, value: T, serializer: SerializationStrategy<T>): LogMessageBuilder { require(!key.startsWith('@')) { "Cannot add additional data with the key '$key': keys may not start with '@'." } data[key] = JsonableObject(value, serializer) return this } fun build(timestampSource: () -> ZonedDateTime, standardAdditionalDataSource: StandardAdditionalDataSource): LogMessage { val additionalData = loggerAdditionalData + standardAdditionalDataSource.getAdditionalData() + data return LogMessage(severity, message, timestampSource(), additionalData) } fun data(key: String, value: String) = data(key, value, String.serializer()) fun data(key: String, value: Int) = data(key, value, Int.serializer()) fun data(key: String, value: Long) = data(key, value, Long.serializer()) fun data(key: String, value: Boolean) = data(key, value, Boolean.serializer()) fun data(key: String, value: ZonedDateTime) = data(key, value, ZonedDateTimeSerializer) fun data(key: String, value: Path) = data(key, value.toString()) fun data(key: String, value: Iterable<String>) = data(key, value.toList(), ListSerializer(String.serializer())) fun data(key: String, value: Map<String, String>) = data(key, value, MapSerializer(String.serializer(), String.serializer())) @JvmName("nullableData") fun data(key: String, value: String?) = data(key, value, String.serializer().nullable) @JvmName("nullableData") fun data(key: String, value: ZonedDateTime?) = data(key, value, ZonedDateTimeSerializer.nullable) }
{ "pile_set_name": "Github" }
diff -ur ../rt2500-cvs-20050724/Module/rtmp_data.c ./Module/rtmp_data.c --- ../rt2500-cvs-20050724/Module/rtmp_data.c 2005-07-15 17:40:02.000000000 +0200 +++ ./Module/rtmp_data.c 2005-07-26 19:04:28.000000000 +0200 @@ -2741,6 +2741,23 @@ return (NDIS_STATUS_FAILURE); } + if (pAdapter->PortCfg.BssType == BSS_MONITOR) + { + pAdapter->TxRing[pAdapter->CurEncryptIndex].FrameType = BTYPE_DATA; + pDest = (PUCHAR) pAdapter->TxRing[pAdapter->CurEncryptIndex].va_data_addr; + pTxD = (PTXD_STRUC) pAdapter->TxRing[pAdapter->CurEncryptIndex].va_addr; + MlmeSetPsmBit(pAdapter, PWR_ACTIVE); + memcpy(pDest,skb->data,skb->len); + RTMPWriteTxDescriptor(pTxD, TRUE, CIPHER_NONE, FALSE, FALSE, FALSE, SHORT_RETRY, IFS_BACKOFF, pAdapter->PortCfg.TxRate, 4, skb->len, pAdapter->PortCfg.TxPreambleInUsed, AccessCategory); + + pAdapter->CurEncryptIndex++; + if (pAdapter->CurEncryptIndex >= TX_RING_SIZE) + pAdapter->CurEncryptIndex = 0; + pAdapter->RalinkCounters.EncryptCount++; + + goto skip_all_this_shit; + } + if (EnableTxBurst == 1) FrameGap = IFS_SIFS; else @@ -2779,6 +2796,7 @@ // // Start making 802.11 frame header + // this whole code is just a pathetic mess // memset(&Header_802_11, 0, sizeof(HEADER_802_11)); // Initialize 802.11 header for each fragment if (INFRA_ON(pAdapter)) @@ -3411,6 +3429,7 @@ } while (NumberRequired > 0); +skip_all_this_shit: // Kick Encrypt Control Register at the end of all ring buffer preparation RTMP_IO_WRITE32(pAdapter, SECCSR1, 0x1); diff -ur ../rt2500-cvs-20050724/Module/rtmp_main.c ./Module/rtmp_main.c --- ../rt2500-cvs-20050724/Module/rtmp_main.c 2005-07-15 17:40:02.000000000 +0200 +++ ./Module/rtmp_main.c 2005-07-26 19:03:46.000000000 +0200 @@ -354,6 +354,7 @@ DBGPRINT(RT_DEBUG_INFO, "<==== RTMPSendPackets\n"); +/* if (pAdapter->PortCfg.BssType == BSS_MONITOR) { dev_kfree_skb_irq(skb); @@ -368,7 +369,7 @@ // And Mibss for Ad-hoc mode setup dev_kfree_skb_irq(skb); } - else + else*/ { // This function has to manage NdisSendComplete return call within its routine // NdisSendComplete will acknowledge upper layer in two steps.
{ "pile_set_name": "Github" }
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
{ "pile_set_name": "Github" }
// // Wells // -------------------------------------------------- // Base class .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: @well-bg; border: 1px solid @well-border; border-radius: @border-radius-base; .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); blockquote { border-color: #ddd; border-color: rgba(0,0,0,.15); } } // Sizes .well-lg { padding: 24px; border-radius: @border-radius-large; } .well-sm { padding: 9px; border-radius: @border-radius-small; }
{ "pile_set_name": "Github" }
<!-- Table 'plans' edit --> <form action="?" method="post" enctype="multipart/form-data" name="frmEdit" class="form-horizontal"> <fieldset> [#if ID=""#] <legend><#LANG_NEW_RECORD#></legend> [#endif ID#] <!-- TITLE (varchar) --> <div class="form-group[#if ERR_TITLE#] has-error[#endif#]"> <label for="title" class="col-lg-3 control-label"> <#LANG_TITLE#>: (*) </label> <div class="col-lg-9"><input id="title" name="title" value="[#TITLE#]" type="text" class="form-control"></div> </div> <div class="form-group[#if ERR_IMAGE#] has-error[#endif#]"> <label for="image" class="col-lg-3 control-label"> <#LANG_IMAGE#>: (*) </label> <div class="col-lg-9"> [#if IMAGE!=""#] <div><a href="<#ROOTHTML#>cms/plans/[#IMAGE#]" target="_blank">[#IMAGE#]</a></div> [#endif IMAGE#] <input id="image" name="image" type="file" class="form-control" accept="image/svg+xml"> </div> </div> <div class="form-group"> <label class="col-lg-3 control-label"> <#LANG_PLAN_ZOOM_CONTROL#>: </label> <div class="col-lg-9"> <input type="radio" name="need_zoom" value="1"[#if NEED_ZOOM="1"#] checked[#endif#]> <#LANG_YES#> <input type="radio" name="need_zoom" value="0"[#if NEED_ZOOM!="1"#] checked[#endif#]> <#LANG_NO#> </div> </div> <div class="form-group"> <label class="col-lg-3 control-label"> <#LANG_PLAN_AUTO_ZOOM#>: </label> <div class="col-lg-9"> <input type="radio" name="auto_zoom" value="1"[#if AUTO_ZOOM="1"#] checked[#endif#]> <#LANG_YES#> <input type="radio" name="auto_zoom" value="0"[#if AUTO_ZOOM!="1"#] checked[#endif#]> <#LANG_NO#> </div> </div> <div class="form-group"> <div class="col-lg-offset-3 col-lg-4"> [#if ID!=""#] <button type="submit" name="subm" value="Submit" class="btn btn-primary"><#LANG_SUBMIT#></button> [#else ID#] <button type="submit" name="subm" value="Add" class="btn btn-primary"><#LANG_ADD#></button> [#endif ID#] <a href="?" class="btn btn-default "><#LANG_CANCEL#></a> <input type="hidden" name="id" value="<#ID#>"> <input type="hidden" name="view_mode" value="<#VIEW_MODE#>"> <input type="hidden" name="edit_mode" value="<#EDIT_MODE#>"> <input type="hidden" name="mode" value="update"> </div> </div> </fieldset> </form>
{ "pile_set_name": "Github" }
/*! * @license * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Provides resources used throughout the application * * @class util.Resources */ var path = require('path'); const ACTIVITI_CLOUD_APPS = require('../../lib/testing/src/lib/process-services-cloud/resources/resources.json'); exports.ACTIVITI_CLOUD_APPS = ACTIVITI_CLOUD_APPS; exports.Files = { APP_WITH_DATE_FIELD_FORM: { file_location: "/resources/apps/TestDate.zip", file_path: path.join(__dirname, '../resources/apps/TestDate.zip'), title: "TestDate", process_title: "TestDateField", id: -1, form_fields: { testDate_field: "activiti-testdate", completed_task_date_field: "span[ng-if*='field.dateDisplayFormat']" } }, APP_WITH_PROCESSES: { file_location: "/resources/apps/App_with_processes.zip", file_path: path.join(__dirname, '../resources/apps/App_with_processes.zip'), title: "App_with_processes", description: "Description for app", process_se_name: "process_with_se", process_wse_name: "process_without_se", task_name: "Task Test 2" }, APP_DYNAMIC_TABLE_DROPDOWN: { file_location: "/resources/apps/AppDynamicTableDropdown.zip", file_path: path.join(__dirname, '../resources/apps/AppDynamicTableDropdown.zip'), title: "App3576", description: "Description for app", processName: "Process3576" }, START_PROCESS_ATTACH_FILE: { file_location: "/resources/apps/Start_process_attach_file.zip", file_path: path.join(__dirname, '../resources/apps/Start_process_attach_file.zip'), title: "start process app", description: "Description for app", processName: "start process file" }, TEST_ASSIGNEE: { file_location: "/resources/apps/Assignee.zip", file_path: path.join(__dirname, '../resources/apps/Assignee.zip'), title: "Assignee", description: "Description for app", processNames: ["simple", "candidate-task"], userTasks: { "simple": {one: 'Candidate Task', two: 'User Task'}, "candidateTask": "Human step" }, candidateGroup: "candidates", adminGroup: "admin", adminCapabilities: ['tenant-admin'], candidate: {firstName: 'Candidate', lastName: 'User', email: 'candidateuser@actviti.com'} }, APP_WITH_USER_WIDGET: { file_location: "/resources/apps/appWithUser.zip", file_path: path.join(__dirname, '../resources/apps/appWithUser.zip'), title: "appWithUser", description: "Description for app", processName: "ProcessWithUser", startForm: "user", taskForm: "displayUser", peopleWidgetId: "label1" }, NO_FORM_APP: { file_location: "/resources/apps/No form app.zip", file_path: path.join(__dirname, '../resources/apps/No form app.zip'), title: "No form app", taskName: "No form task" }, SIMPLE_APP_WITH_USER_FORM: { file_location: "/resources/apps/Simple App with User Form.zip", file_path: path.join(__dirname, '../resources/apps/Simple App with User Form.zip'), title: "Simple App with User Form", description: "Simple app with a process having a User task with a form attached.", processName: "Simple Process", processDiagramFileLocation: '/resources/apps/SimpleAppWithUserForm.png', processThumbnail: '/resources/processes/Simple Process Thumbnail.png', formName: "Simple form", id: -19, taskName: "User Task", form_fields: { text_field: "activiti-textfield", form_fieldId: "textfield", text_field_value: "Hi tester, from Rest call" }, visibilityProcess: { name: 'VisibilityProcess', formName: "visibilityTabWithFields", taskName: 'No name' } }, WIDGETS_SMOKE_TEST: { file_location: "/resources/apps/Widgets smoke test.zip", file_path: path.join(__dirname, '../resources/apps/Widgets smoke test.zip'), title: "Widgets smoke test", formName: "Widgets smoke test", form_fields: { text_id: "text", header_id: "header", number_id: "number", amount_id: "amount", people_id: "people", group_id: "groupofpeople", multiline_id: "multilinetext", typeAhead_id: "typeahead", displayText_id: "displaytext", displayValue_id: "displayvalue", hyperlink_id: "hyperlink", attachFolder_id: "attachfolder", attachFile_id: "attachfile", date_id: "date", dateTime_id: "dateandtime", checkbox_id: "checkbox", dropdown_id: "dropdown", drofpdown_value: "mat-select[id='dropdown'] span span", radioButtons_id: "radiobuttons", dynamicTable_id: "dynamictable" } }, FORM_ADF: { file_location: "/resources/apps/Test-ADF.zip", file_path: path.join(__dirname, '../resources/apps/Test-ADF.zip'), title: "Test App", formName: "test-1", form_fields: { text_id: "label", displayText_id: "label1", displayValue_id: "labeldisplayusingvariable" } }, FILE_FORM_ADF: { file_location: "/resources/apps/App_file_form.zip", file_path: path.join(__dirname, '../resources/apps/App_file_form.zip'), attached_file: "generatedDocument.docx", title: "ADF-180-test", formName: "ADF-180-test", form_fields: { container_id: "1504783671016" } }, WIDGET_CHECK_APP: { file_location: "/resources/apps/WidgetApps.zip", file_path: path.join(__dirname, '../resources/apps/WidgetApps.zip'), TEXT: { formName: "TextWidgetForm", title: "TextWidgetForm", processName: "TextWidgetProcess", FIELD: { simpleText: "textsimple", textMinMax: "textminmax", textMask: "textmask", textMaskReversed: "textmaskreversed", textRegexp: "textregexp", showHiddenText: "showhiddentext", textHidden: "texthidden" } }, MULTILINE_TEXT: { formName: "MultiWidgetProcess", title: "MultiWidgetProcess", processName: "MultiWidgetProcess", FIELD: { multiSimple: "multisimple", multiMinMax: "multiminmax", multiRegexp: "multiregexp", showMultiHidden: "showmultihidden", multiVisible: "multivisible" } }, CHECKBOX: { formName: "CheckboxVisibilityProcess", title: "CheckboxVisibilityProcess", processName: "CheckboxVisibilityProcess", FIELD: { number_input_id: "label", checkbox_field_id: "label1", checkbox_id: "field-checkbox_input-container", checkbox_input_id: "label1", checkbox_label: "Label1" } }, DATE: { formName: "DateWidgetProcess", title: "DateWidgetProcess", processName: "DateWidgetProcess", FIELD: { date_input: "date_standard", date_between_input: "betweendate" } }, DATETIME: { formName: "DateTimeProcess", title: "DateTimeProcess", processName: "DateTimeProcess", FIELD: { date_time_input: "datetimegeneral", date_time_between_input: "dateandtimeadvance" } }, DROPDOWN: { formName: "DropdownProcess", title: "DropdownProcess", processName: "DropdownProcess", FIELD: { general_dropdown: "dropdown", dropdown_visible: "dropdownvisibility", checkbox_id: "clickcheckbox", option_0: "empty", option_1: "option_1", option_2: "option_2" } }, NUMBER: { formName: "NumberProcess", title: "NumberProcess", processName: "NumberProcess", FIELD: { number_general: "numbergeneral", number_visible: "number", checkbox_id: "check" } }, VISIBILITY: { formName: "visibility-process", title: "visibility-process", processName: "visibility-process" }, AMOUNT: { formName: "AmountProcess", title: "AmountProcess", processName: "AmountProcess", FIELD: { amount_input_id: "amunt_widget", checkbox_id: "check" } }, RADIO_BUTTONS: { formName: "RadioButtonsWidgetProcess", title: "RadioButtonsWidgetProcess", processName: "RadioButtonsWidgetProcess", FIELD: { radio_buttons_id: "RockFM", checkbox_id: "Dollars" } }, HYPERLINK: { formName: "HyperlinkProcess", title: "HyperlinkProcess", processName: "HyperlinkProcess", FIELD: { hyperlink_id: "hyperlink_automation", checkbox_id: "check" } }, DYNAMIC_TABLE: { formName: "DynamicTableProcess", title: "DynamicTableProcess", processName: "DynamicTableProcess", FIELD: { dynamic_table_age_id: "label2", dynamic_table_date_id: "label", checkbox_id: "viewtable", dateTime_input_id: "datetime", row: "label-row-0" } }, DYNAMIC_TABLE_USERS: { formName: "ALL_WIDGETS", title: "ALL_WIDGETS", processName: "ALL_WIDGETS", FIELD: { dynamic_table_id: "dynamictable", dynamic_table_age_id: "label2", dynamic_table_date_id: "label", checkbox_id: "viewtable", dateTime_input_id: "datetime", row: "label-row-0" } }, HEADER: { formName: "HeaderProcess", title: "HeaderProcess", processName: "HeaderProcess", FIELD: { header_id: "Happy", checkbox_id: "check" } }, ATTACH_FOLDER: { formName: "UploadFolderProcess", title: "UploadFolderProcess", processName: "UploadFolderProcess", FIELD: { checkbox_id: "check", upload_button_id: "Upload" } }, ADD_PEOPLE: { formName: "AddPeopleProcess", title: "AddPeopleProcess", processName: "AddPeopleProcess", FIELD: { widget_id: "Finally", user_id: "adf-people-search-input", checkbox_id: "check" } }, CUSTOM_VALIDATOR: { formName: "dynamic-table-custom-validation", title: "dynamic-table-custom-validation", processName: "dynamic-table-custom-validation", FIELD: { NAME: "name", ID: "id", NUM: "num", ADDRESS: "address", ROW: "label-row-0" } }, TYPE_AHEAD_WIDGET: { formName: "Type ahead widget", title: "type-ahead-process", processName: "type-ahead-process", FIELD: { widget_id: "Label" }, case1: { searchTerm: 'Customer', result: [ '123456789 - Customer Number One', '987654321 - Customer Number Two', '919191919191 - Customer Number Three', '91919191 - Customer Number X' ] }, case2: { searchTerm: 'One', result: ['123456789 - Customer Number One'] } }, UPLOAD_FOLDER_FORM_CS: { formName: "upload-folder-cs", FIELD: { widget_id: 'attachfolder', } }, UPLOAD_FILE_FORM_CS: { formName: "Upload multiple files", FIELD: { widget_id: 'attachfile', } } }, MORE_WIDGETS: { file_location: "/resources/apps/More Widgets.zip", file_path: path.join(__dirname, '../resources/apps/More Widgets.zip'), title: "More Widgets", group: {name: "Users", subgroup: [{name: "Heros"}, {name: "Villains"}]}, subGroupUser: {firstName: "Hero", lastName: "User"}, groupUser: [ {firstName: "Hero", lastName: "Audience"}, {firstName: "Villain", lastName: "Audience"}, ], ADD_PEOPLE_AND_GROUP_RESTRICTION: { formName: 'People widget - group restriction', FIELD: { widget_id: 'Finally', checkbox_id: 'check' }, searchTerm: 'Audience' }, ADD_GROUP_VISIBILITY: { formName: "Group widget - visibility", FIELD: { widget_id: 'Dreamteam', checkbox_id: 'check' }, searchTerm: 'e' }, ADD_GROUP_AND_SUBGROUP_RESTRICTION: { formName: "Group widget - subgroup restriction", FIELD: { widget_id: 'Dreamteam', checkbox_id: 'check' }, searchTerm: 's' } }, STENCIL_PROCESS: { file_location: "/resources/apps/Stencil_app.zip", file_path: path.join(__dirname, '../resources/apps/Stencil_app.zip'), processName: 'stencil_process', taskName: 'stencil task' }, DYNAMIC_TABLE_APP: { file_location: "/resources/apps/Dynamic Table App.zip", file_path: path.join(__dirname, '../resources/apps/Dynamic Table App.zip'), title: "Dynamic Table App", formName: "Dynamic Table App", process_se_name: "DynamicTableProcess" }, ADF_DOCUMENTS: { JS: { file_location: "/resources/adf/a_js_file.js", file_path: path.join(__dirname, '../resources/adf/a_js_file.js'), file_name: "a_js_file.js" }, PDF: { file_location: "/resources/adf/allFileTypes/a_file_supported.pdf", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_file_supported.pdf'), file_name: "a_file_supported.pdf", short_file_name: "a_file", first_page_text: "one", second_page_text: "two", last_page_text: "eight", last_page_number: "8" }, PDF_B: { file_location: "/resources/adf/allFileTypes/b_file_supported.pdf", file_path: path.join(__dirname, '../resources/adf/allFileTypes/b_file_supported.pdf'), file_name: "b_file_supported.pdf" }, PDF_ALL: { file_location: "/resources/adf/allFileTypes/pdf_all_properties.pdf", file_path: path.join(__dirname, '../resources/adf/allFileTypes/pdf_all_properties.pdf'), file_name: "pdf_all_properties.pdf" }, PDF_PROTECTED: { file_location: "/resources/adf/allFileTypes/a_file_protected.pdf", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_file_protected.pdf'), file_name: "a_file_protected.pdf", first_page_text: "A Journey into Test Frameworks", second_page_text: "After looking into Spock’s GitHub", last_page_text: "and provide feedback. The main advantages being the readability of the te", last_page_number: "8", password: "1q2w3e4r" }, LARGE_FILE: { file_location: "/resources/adf/BigFile.zip", file_path: path.join(__dirname, '../resources/adf/BigFile.zip'), file_name: "BigFile.zip" }, MEDIUM_FILE: { file_location: "/resources/adf/MediumFile.zip", file_path: path.join(__dirname, '../resources/adf/MediumFile.zip'), file_name: "MediumFile.zip" }, EXCEL: { file_location: "/resources/adf/allFileTypes/a_excel_file.xlsx", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_excel_file.xlsx'), file_name: "a_excel_file.xlsx" }, DOCX: { file_location: "/resources/adf/allFileTypes/a_file_supported.docx", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_file_supported.docx'), file_name: "a_file_supported.docx", first_page_text: "A Journey into Test Frameworks", second_page_text: "After looking into Spock’s GitHub", last_page_text: "and provide feedback. The main advantages being the readability of the te", last_page_number: "8" }, FOLDER_ONE: { folder_location: "/resources/adf/folderOne", folder_path: path.join(__dirname, '../resources/adf/folderOne'), folder_name: "folderOne" }, FOLDER_TWO: { folder_location: "/resources/adf/folderTwo", folder_path: path.join(__dirname, '../resources/adf/folderTwo'), folder_name: "folderTwo" }, FOLDER_EXCLUDED: { folder_location: "/resources/adf/folderExcluded", folder_path: path.join(__dirname, '../resources/adf/folderExcluded'), folder_name: "folderExcluded" }, FILE_INSIDE_FOLDER_ONE: { file_location: "/resources/adf/folderOne/share_profile_pic.png", file_path: path.join(__dirname, '../resources/adf/folderOne/share_profile_pic.png'), file_name: "share_profile_pic.png" }, FILE_INSIDE_FOLDER_TWO: { file_location: "/resources/adf/folderOne/a_file.txt", file_path: path.join(__dirname, '../resources/adf/folderOne/a_file.txt'), file_name: "a_file.txt" }, JPG: { file_location: "/resources/adf/allFileTypes/a_jpg_file.jpg", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_jpg_file.jpg'), file_name: "a_jpg_file.jpg" }, MP4: { file_location: "/resources/adf/allFileTypes/a_mp4_file.mp4", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_mp4_file.mp4'), file_name: "a_mp4_file.mp4" }, MP4_B: { file_location: "/resources/adf/allFileTypes/b_mp4_file.mp4", file_path: path.join(__dirname, '../resources/adf/allFileTypes/b_mp4_file.mp4'), file_name: "b_mp4_file.mp4" }, PNG: { file_location: "/resources/adf/allFileTypes/a_png_file.png", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_png_file.png'), file_name: "a_png_file.png" }, PNG_B: { file_location: "/resources/adf/allFileTypes/b_png_file.png", file_path: path.join(__dirname, '../resources/adf/allFileTypes/b_png_file.png'), file_name: "b_png_file.png" }, PNG_C: { file_location: "/resources/adf/allFileTypes/c_png_file.png", file_path: path.join(__dirname, '../resources/adf/allFileTypes/c_png_file.png'), file_name: "c_png_file.png" }, PNG_D: { file_location: "/resources/adf/allFileTypes/d_png_file.png", file_path: path.join(__dirname, '../resources/adf/allFileTypes/d_png_file.png'), file_name: "d_png_file.png" }, PPT: { file_location: "/resources/adf/allFileTypes/a_ppt_file.pptx", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_ppt_file.pptx'), file_name: "a_ppt_file.pptx", first_page_text: "PPTX test file" }, TEST: { file_location: "/resources/adf/allFileTypes/testExtension.test", file_path: path.join(__dirname, '../resources/adf/allFileTypes/testExtension.test'), file_name: "testExtension.test" }, TXT: { file_location: "/resources/adf/allFileTypes/a_txt_file.rtf", file_path: path.join(__dirname, '../resources/adf/allFileTypes/a_txt_file.rtf'), file_name: "a_txt_file.rtf" }, TXT_400B: { file_location: "/resources/adf/allFileTypes/file400Bytes.txt", file_path: path.join(__dirname, '../resources/adf/allFileTypes/file400Bytes.txt'), file_name: "file400Bytes.txt" }, TXT_0B: { file_location: "/resources/adf/allFileTypes/zeroBytesFile.txt", file_path: path.join(__dirname, '../resources/adf/allFileTypes/zeroBytesFile.txt'), file_name: "zeroBytesFile.txt" }, PAGES: { file_location: "/resources/adf/allFileTypes/file_unsupported.pages", file_path: path.join(__dirname, '../resources/adf/allFileTypes/file_unsupported.pages'), file_name: "file_unsupported.pages" }, UNSUPPORTED: { file_location: "/resources/adf/allFileTypes/file_unsupported.3DS", file_path: path.join(__dirname, '../resources/adf/allFileTypes/file_unsupported.3DS'), file_name: "file_unsupported.3DS" }, INI: { file_location: "/resources/adf/allFileTypes/desktop.ini", file_path: path.join(__dirname, '../resources/adf/allFileTypes/desktop.ini'), file_name: "desktop.ini" }, ARCHIVE_FOLDER: { folder_location: "/resources/adf/allFileTypes/documents/archive", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/archive'), folder_name: "archive" }, EXCEL_FOLDER: { folder_location: "/resources/adf/allFileTypes/documents/excel", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/excel'), folder_name: "excel" }, OTHER_FOLDER: { folder_location: "/resources/adf/allFileTypes/documents/other", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/other'), folder_name: "other" }, PPT_FOLDER: { folder_location: "/resources/adf/allFileTypes/documents/ppt", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/ppt'), folder_name: "ppt" }, TEXT_FOLDER: { folder_location: "/resources/adf/allFileTypes/documents/text", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/text'), folder_name: "text" }, FILE_ACCEPTED_INSIDE_TEXT_FOLDER: { file_location: "/resources/adf/allFileTypes/documents/text/a_odt_file.odt", file_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/text/a_odt_file.odt'), file_name: "a_odt_file.odt" }, FILE_EXCLUDED_INSIDE_TEXT_FOLDER: { file_location: "/resources/adf/allFileTypes/documents/text/a_cpio_file.cpio", file_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/text/a_cpio_file.cpio'), file_name: "a_cpio_file.cpio" }, WORD_FOLDER: { folder_location: "/resources/adf/allFileTypes/documents/word", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/documents/word'), folder_name: "word" }, IMG_FOLDER: { folder_location: "/resources/adf/allFileTypes/images", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/images'), folder_name: "images" }, IMG_RENDITION_FOLDER: { folder_location: "/resources/adf/allFileTypes/images-rendition", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/images-rendition'), folder_name: "images-rendition" }, ADF_FOLDER: { folder_location: "/resources/adf/allFileTypes/images", folder_path: path.join(__dirname, '../resources/adf/allFileTypes/images'), folder_name: "images" }, }, PROFILE_IMAGES: { ECM: { file_location: "/resources/adf/share_profile_pic.jpg", file_path: path.join(__dirname, '../resources/adf/share_profile_pic.jpg'), file_name: "share_profile_pic.jpg" }, BPM: { file_location: "/resources/adf/activiti_profile_pic.png", file_path: path.join(__dirname, '../resources/adf/activiti_profile_pic.png'), file_name: "activiti_profile_pic.png" } } };
{ "pile_set_name": "Github" }
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.as.quickstarts.kitchensink.test.page; import org.jboss.arquillian.graphene.findby.FindByJQuery; import org.jboss.arquillian.graphene.fragment.Root; import org.jboss.as.quickstarts.kitchensink.test.Member; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import static org.jboss.arquillian.graphene.Graphene.guardHttp; import static org.jboss.arquillian.graphene.Graphene.waitModel; public class RegistrationFormPageFragment { /** * Locator for the registration form */ @Root private WebElement registrationForm; /** * Locator for name field */ @FindBy(id = "name") private WebElement nameField; /** * Locator for email field */ @FindBy(id = "email") private WebElement emailField; /** * Locator for phone number field */ @FindBy(id = "phoneNumber") private WebElement phoneField; /** * Locator for registration button */ @FindByJQuery("input.register") private WebElement registerButton; /** * Locator for name field validation message */ @FindBy(id = "name.errors") private WebElement nameErrorMessage; /** * Locator for email field validation message */ @FindBy(id = "email.errors") private WebElement emailErrorMessage; /** * Locator for phone number field validation message */ @FindBy(id = "phoneNumber.errors") private WebElement phoneNumberErrorMessage; public void register(Member member) { nameField.clear(); nameField.sendKeys(member.getName()); emailField.clear(); emailField.sendKeys(member.getEmail()); phoneField.clear(); phoneField.sendKeys(member.getPhoneNumber()); guardHttp(registerButton).click(); } public String getNameValidation() { return nameErrorMessage.getText(); } public String getEmailValidation() { return emailErrorMessage.getText(); } public String getPhoneValidation() { return phoneNumberErrorMessage.getText(); } public void waitUntilPresent() { waitModel().until().element(registrationForm).is().present(); } }
{ "pile_set_name": "Github" }
"use strict"; module.exports = function(core, config, store) { var React = require("react"), RoomCard = require("./room-card.js")(core, config, store), GridView = require("./grid-view.js")(core, config, store), RoomList; RoomList = React.createClass({ render: function() { var titles = { visitor: "Recently visited", owner: "My rooms", moderator: "Moderated rooms", follower: "Following", featured: "Recommended by Scrollback" }, secs = {}, sections = [], relatedRooms; // Don't show if (!this.state.show) { return <div data-mode="none" />; } for (var t in titles) { secs[t] = { key: "home-feed-" + t, header: titles[t], items: [] }; } relatedRooms = store.getRelatedRooms(); relatedRooms.forEach(function(room) { if (typeof room !== "object") { return; } let role = secs[room.role] ? room.role : "visitor"; secs[role].items.push({ key: "home-room-card-" + role + "-" + room.id, elem: <RoomCard roomId={room.id} threadCount="3" /> }); }); store.getFeaturedRooms().filter(function(room) { if (typeof room !== "object") { return false; } for (var i = 0, l = relatedRooms.length; i < l; i++) { if (room.id === relatedRooms[i].id) { return false; } } return true; }).forEach(function(room) { secs.featured.items.push({ key: "home-room-card-featured-" + room.id, updateTime: room.updateTime, elem: <RoomCard roomId={room.id} threadCount="3" /> }); }); function sortByTime(a, b) { return (a.createTime || 0) - (b.createTime || 0); } for (var r in secs) { if (secs[r].items.length) { sections.push({ key: "home-" + secs[r].key, header: secs[r].header, items: secs[r].items.sort(sortByTime) }); } } return ( <div className="main-content-rooms" data-mode="home"> <GridView sections={sections} /> </div> ); }, getInitialState: function() { return { show: false }; }, onStateChange: function(changes) { if ((changes.nav && changes.nav.mode) || (changes.indexes && changes.indexes.userRooms)) { this.setState({ show: (store.get("nav", "mode") === "home") }); } }, componentDidMount: function() { core.on("statechange", this.onStateChange, 500); }, componentWillUnmount: function() { core.off("statechange", this.onStateChange); } }); return RoomList; };
{ "pile_set_name": "Github" }
SRC_NAME = ipt2socks-1.1.2 THISDIR = $(shell pwd) all: extract_test $(MAKE) -j$(HOST_NCPU) -C $(SRC_NAME) CC="$(CC)" extract_test: ( if [ ! -d $(SRC_NAME) ]; then \ tar zxf $(SRC_NAME).tar.gz ; \ fi ) config_test: ( if [ -f ./config_done ]; then \ echo "the same configuration"; \ else \ make configure && touch config_done; \ fi ) clean: rm -rf $(SRC_NAME) rm -f config_done romfs: $(ROMFSINST) -p +x $(THISDIR)/$(SRC_NAME)/ipt2socks /usr/bin/ipt2socks
{ "pile_set_name": "Github" }
package org.bukkit.craftbukkit.v1_12_R1.generator; import java.util.List; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.entity.EnumCreatureType; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.world.WorldServer; import net.minecraft.world.chunk.Chunk; import net.minecraft.world.chunk.storage.ExtendedBlockStorage; import net.minecraft.world.gen.structure.MapGenStronghold; import org.bukkit.block.Biome; import org.bukkit.craftbukkit.v1_12_R1.block.CraftBlock; import org.bukkit.generator.BlockPopulator; import org.bukkit.generator.ChunkGenerator; public class CustomChunkGenerator extends InternalChunkGenerator { private final ChunkGenerator generator; private final WorldServer world; private final Random random; private final MapGenStronghold strongholdGen = new MapGenStronghold(); public CustomChunkGenerator(World world, long seed, ChunkGenerator generator) { this.world = (WorldServer) world; this.generator = generator; this.random = new Random(seed); } @Override public Chunk generateChunk(int x, int z) { random.setSeed((long) x * 341873128712L + (long) z * 132897987541L); Chunk chunk; // Get default biome data for chunk CustomBiomeGrid biomegrid = new CustomBiomeGrid(); biomegrid.biome = new net.minecraft.world.biome.Biome[256]; world.getBiomeProvider().getBiomes(biomegrid.biome, x << 4, z << 4, 16, 16); // Try ChunkData method (1.8+) CraftChunkData data = (CraftChunkData) generator.generateChunkData(this.world.getWorld(), random, x, z, biomegrid); if (data != null) { char[][] sections = data.getRawChunkData(); chunk = new Chunk(this.world, x, z); ExtendedBlockStorage[] csect = chunk.getBlockStorageArray(); int scnt = Math.min(csect.length, sections.length); // Loop through returned sections for (int sec = 0; sec < scnt; sec++) { if (sections[sec] == null) { continue; } char[] section = sections[sec]; char emptyTest = 0; for (int i = 0; i < 4096; i++) { // Filter invalid block id & data values. if (Block.BLOCK_STATE_IDS.getByValue(section[i]) == null) { section[i] = 0; } emptyTest |= section[i]; } // Build chunk section if (emptyTest != 0) { csect[sec] = new ExtendedBlockStorage(sec << 4, true, section); } } } else { // Try extended block method (1.2+) short[][] xbtypes = generator.generateExtBlockSections(this.world.getWorld(), this.random, x, z, biomegrid); if (xbtypes != null) { chunk = new Chunk(this.world, x, z); ExtendedBlockStorage[] csect = chunk.getBlockStorageArray(); int scnt = Math.min(csect.length, xbtypes.length); // Loop through returned sections for (int sec = 0; sec < scnt; sec++) { if (xbtypes[sec] == null) { continue; } char[] secBlkID = new char[4096]; // Allocate blk ID bytes short[] bdata = xbtypes[sec]; for (int i = 0; i < bdata.length; i++) { Block b = Block.getBlockById(bdata[i]); secBlkID[i] = (char) Block.BLOCK_STATE_IDS.get(b.getDefaultState()); } // Build chunk section csect[sec] = new ExtendedBlockStorage(sec << 4, true, secBlkID); } } else { // Else check for byte-per-block section data byte[][] btypes = generator.generateBlockSections(this.world.getWorld(), this.random, x, z, biomegrid); if (btypes != null) { chunk = new Chunk(this.world, x, z); ExtendedBlockStorage[] csect = chunk.getBlockStorageArray(); int scnt = Math.min(csect.length, btypes.length); for (int sec = 0; sec < scnt; sec++) { if (btypes[sec] == null) { continue; } char[] secBlkID = new char[4096]; // Allocate block ID bytes for (int i = 0; i < secBlkID.length; i++) { Block b = Block.getBlockById(btypes[sec][i] & 0xFF); secBlkID[i] = (char) Block.BLOCK_STATE_IDS.get(b.getDefaultState()); } csect[sec] = new ExtendedBlockStorage(sec << 4, true, secBlkID); } } else { // Else, fall back to pre 1.2 method @SuppressWarnings("deprecation") byte[] types = generator.generate(this.world.getWorld(), this.random, x, z); int ydim = types.length / 256; int scnt = ydim / 16; chunk = new Chunk(this.world, x, z); // Create empty chunk ExtendedBlockStorage[] csect = chunk.getBlockStorageArray(); scnt = Math.min(scnt, csect.length); // Loop through sections for (int sec = 0; sec < scnt; sec++) { char[] csbytes = null; // Add sections when needed for (int cy = 0; cy < 16; cy++) { int cyoff = cy | (sec << 4); for (int cx = 0; cx < 16; cx++) { int cxyoff = (cx * ydim * 16) + cyoff; for (int cz = 0; cz < 16; cz++) { byte blk = types[cxyoff + (cz * ydim)]; if (blk != 0) { // If non-empty if (csbytes == null) { // If no section yet, get one csbytes = new char[16 * 16 * 16]; } Block b = Block.getBlockById(blk & 0xFF); csbytes[(cy << 8) | (cz << 4) | cx] = (char) Block.BLOCK_STATE_IDS.get(b.getDefaultState()); } } } } // If section built, finish prepping its state if (csbytes != null) { ExtendedBlockStorage cs = csect[sec] = new ExtendedBlockStorage(sec << 4, true, csbytes); cs.recalculateRefCounts(); } } } } } // Set biome grid byte[] biomeIndex = chunk.getBiomeArray(); for (int i = 0; i < biomeIndex.length; i++) { biomeIndex[i] = (byte) (net.minecraft.world.biome.Biome.REGISTRY.getIDForObject(biomegrid.biome[i]) & 0xFF); // PAIL : rename } // Initialize lighting chunk.generateSkylightMap(); return chunk; } @Override public boolean generateStructures(Chunk chunk, int i, int i1) { return false; } @SuppressWarnings("deprecation") @Override public byte[] generate(org.bukkit.World world, Random random, int x, int z) { return generator.generate(world, random, x, z); } @Override public byte[][] generateBlockSections(org.bukkit.World world, Random random, int x, int z, BiomeGrid biomes) { return generator.generateBlockSections(world, random, x, z, biomes); } @Override public short[][] generateExtBlockSections(org.bukkit.World world, Random random, int x, int z, BiomeGrid biomes) { return generator.generateExtBlockSections(world, random, x, z, biomes); } public Chunk getChunkAt(int x, int z) { return generateChunk(x, z); } @Override public boolean canSpawn(org.bukkit.World world, int x, int z) { return generator.canSpawn(world, x, z); } @Override public List<BlockPopulator> getDefaultPopulators(org.bukkit.World world) { return generator.getDefaultPopulators(world); } @Override public List<net.minecraft.world.biome.Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType type, BlockPos position) { net.minecraft.world.biome.Biome biomebase = world.getBiome(position); return biomebase == null ? null : biomebase.getSpawnableList(type); } @Override public boolean isInsideStructure(World world, String type, BlockPos position) { return "Stronghold".equals(type) && this.strongholdGen != null ? this.strongholdGen.isInsideStructure(position) : false; } @Override public BlockPos getNearestStructurePos(World world, String type, BlockPos position, boolean flag) { return "Stronghold".equals(type) && this.strongholdGen != null ? this.strongholdGen.getNearestStructurePos(world, position, flag) : null; } @Override public void populate(int i, int j) { } @Override public void recreateStructures(Chunk chunk, int i, int j) { strongholdGen.generate(this.world, i, j, null); } private static class CustomBiomeGrid implements BiomeGrid { net.minecraft.world.biome.Biome[] biome; @Override public Biome getBiome(int x, int z) { return CraftBlock.biomeBaseToBiome(biome[(z << 4) | x]); } @Override public void setBiome(int x, int z, Biome bio) { biome[(z << 4) | x] = CraftBlock.biomeToBiomeBase(bio); } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> <actionGroup name="AdminFilterVariableGridActionGroup"> <arguments> <argument name="variable" type="entity"/> </arguments> <click selector="{{AdminLegacyDataGridFilterSection.clear}}" stepKey="resetFilters" /> <waitForPageLoad stepKey="waitForFilterReset" /> <fillField selector="{{AdminVariableGridFilterSection.codeField}}" userInput="{{variable.code}}" stepKey="fillCodeFieldInFilter"/> <fillField selector="{{AdminVariableGridFilterSection.nameField}}" userInput="{{variable.name}}" stepKey="fillNameFieldInFilter"/> <click selector="{{AdminLegacyDataGridFilterSection.apply}}" stepKey="clickSearchButton"/> <waitForPageLoad stepKey="waitForFiltersApply" /> </actionGroup> </actionGroups>
{ "pile_set_name": "Github" }
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // Toggle styles @import (reference) '../Label/Label.less'; // Toggle .ms-Toggle { .ms-font-m; .ms-u-normalize; position: relative; display: block; margin-bottom: 26px; // Action label (on/off) on the right of the toggle .ms-Label { position: relative; padding-left: 62px; top: -2px; font-size: @ms-font-size-s; } &:hover { .ms-Label { color: @ms-color-black; } } &:active { .ms-Label { color: @ms-color-neutralPrimary; } } // Disabled state &.is-disabled { .ms-Label { .ms-Label.is-disabled !important; } .ms-Toggle-field { background-color: @ms-color-white !important; border-color: @ms-color-neutralTertiaryAlt !important; pointer-events: none !important; cursor: default !important; &:before { background-color: @ms-color-neutralTertiaryAlt !important; } } } } .ms-Toggle-input { display: none; // Hide the original, unstyled element } // Description text .ms-Toggle-description { position: relative; font-size: @ms-font-size-s; vertical-align: top; display: block; margin-bottom: 8px; } // Toggle input field .ms-Toggle-field { position: relative; display: inline-block; width: 57px; height: 20px; box-sizing: border-box; border: 2.5px @ms-color-neutralTertiaryAlt solid; cursor: pointer; } // Slider mixin .ms-Toggle-slider(@direction) { // Slider pseudo element &:before { position: absolute; display: block; box-sizing: content-box; content: ''; top: -2.5px; @{direction}: -2.5px; width: 12px; height: 20px; background-color: @ms-color-neutralSecondaryAlt; outline: 2px solid transparent; } & when (@direction = left) { &:before { border-right: 2.5px solid @ms-color-white; } &:hover { background-color: @ms-color-neutralLight; } } & when (@direction = right) { &:before { border-left: 2.5px solid @ms-color-white; } &:hover { background-color: @ms-color-themeDark; } } &:active { background-color: @ms-color-themePrimary; } } // On/Off slide states .ms-Toggle-input { position: relative; // 'Off' state - slider on the left &:not(:checked) + .ms-Toggle-field { background-color: @ms-color-neutralLighter; .ms-Toggle-slider(left); // Show the off label / hide the on label .ms-Label--off { display: block; } .ms-Label--on { display: none; } } // 'On' state - slider on the right &:checked { & + .ms-Toggle-field { background-color: @ms-color-themePrimary; .ms-Toggle-slider(right); // Show the on label / hide the off label .ms-Label--off { display: none; } .ms-Label--on { display: block; } } } } //== Modifier: Toggle with description text left // .ms-Toggle.ms-Toggle--textLeft { width: 225px; margin-bottom: 40px; .ms-Toggle-description { display: inline-block; max-width: 150px; top: -3px; margin-bottom: 0; } .ms-Toggle-field { float: right; } }
{ "pile_set_name": "Github" }
set(LLVM_TARGET_DEFINITIONS GPUToROCDL.td) mlir_tablegen(GPUToROCDL.cpp.inc -gen-rewriters) add_public_tablegen_target(MLIRGPUToROCDLIncGen) add_mlir_conversion_library(MLIRGPUToROCDLTransforms LowerGpuOpsToROCDLOps.cpp DEPENDS MLIRConversionPassIncGen MLIRGPUToROCDLIncGen LINK_LIBS PUBLIC MLIRGPU MLIRLLVMIR MLIRROCDLIR MLIRPass MLIRStandardToLLVM MLIRVectorToROCDL )
{ "pile_set_name": "Github" }
https://en.openfoodfacts.org/discover/
{ "pile_set_name": "Github" }
import React from "react"; import {styles} from "./styles"; import {useBrowserType} from "../../../hooks/useBrowserType"; import {Browsers} from "../../../types"; export const BrowserExtensionBanner = () => { const browser = useBrowserType(); const availableExtension = { [Browsers.Firefox]: { link: 'https://addons.mozilla.org/en-US/firefox/addon/one-click-design-mockups', name: 'FireFox Add-On', }, [Browsers.Edge]: { link: 'https://microsoftedge.microsoft.com/addons/detail/clennbaklmghlnlamipjmfikdnlhiaem', name: 'Edge Add-On', }, [Browsers.Chrome]: { link: 'https://chrome.google.com/webstore/detail/screenshotrocks-one-click/oolmphedpohnagciifbnfpemadolahki/', name: 'Chrome Extension', } }; if (!availableExtension.hasOwnProperty(browser)) { return null; } const {link, name} = (availableExtension as any)[browser]; return ( <div className={styles()}> <span role="img">🚀</span> Try our <a target="_blank" href={link}><span>{name}</span></a> for one-click mockups from any page </div> ); }
{ "pile_set_name": "Github" }
import { Component, ViewChild } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Subscription } from 'rxjs'; import { filter, map, pairwise } from 'rxjs/operators'; import { StepOnNextFunction } from '../../../../../../core/src/shared/components/stepper/step/step.component'; import { RequestInfoState } from '../../../../../../store/src/reducers/api-request-reducer/types'; import { cfEntityCatalog } from '../../../../cf-entity-catalog'; import { ActiveRouteCfOrgSpace } from '../../cf-page.types'; import { getActiveRouteCfOrgSpaceProvider } from '../../cf.helpers'; import { QuotaDefinitionFormComponent } from '../../quota-definition-form/quota-definition-form.component'; @Component({ selector: 'app-create-quota-step', templateUrl: './create-quota-step.component.html', styleUrls: ['./create-quota-step.component.scss'], providers: [ getActiveRouteCfOrgSpaceProvider ] }) export class CreateQuotaStepComponent { quotasSubscription: Subscription; cfGuid: string; quotaForm: FormGroup; @ViewChild('form', { static: true }) form: QuotaDefinitionFormComponent; constructor( activeRouteCfOrgSpace: ActiveRouteCfOrgSpace, ) { this.cfGuid = activeRouteCfOrgSpace.cfGuid; } validate = () => !!this.form && this.form.valid(); submit: StepOnNextFunction = () => { const formValues = this.form.formGroup.value; return cfEntityCatalog.quotaDefinition.api.create<RequestInfoState>(formValues.name, this.cfGuid, formValues).pipe( pairwise(), filter(([oldV, newV]) => oldV.creating && !newV.creating), map(([, newV]) => newV), map(requestInfo => ({ success: !requestInfo.error, redirect: !requestInfo.error, message: requestInfo.error ? `Failed to create quota: ${requestInfo.message}` : '' })) ); } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="EntryPointsManager"> <entry_points version="2.0" /> </component> <component name="NullableNotNullManager"> <option name="myDefaultNullable" value="android.support.annotation.Nullable" /> <option name="myDefaultNotNull" value="android.support.annotation.NonNull" /> <option name="myNullables"> <value> <list size="4"> <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" /> <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" /> <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" /> <item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" /> </list> </value> </option> <option name="myNotNulls"> <value> <list size="4"> <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" /> <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" /> <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" /> <item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" /> </list> </value> </option> </component> <component name="ProjectInspectionProfilesVisibleTreeState"> <entry key="Project Default"> <profile-state> <expanded-state> <State> <id /> </State> </expanded-state> <selected-state> <State> <id>Android</id> </State> </selected-state> </profile-state> </entry> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="false"> <OptionsSetting value="true" id="Add" /> <OptionsSetting value="true" id="Remove" /> <OptionsSetting value="true" id="Checkout" /> <OptionsSetting value="true" id="Update" /> <OptionsSetting value="true" id="Status" /> <OptionsSetting value="true" id="Edit" /> <ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Remove" /> </component> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <output url="file://$PROJECT_DIR$/build/classes" /> </component> <component name="ProjectType"> <option name="id" value="Android" /> </component> </project>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0, which is available at http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU General Public License, version 2 with the GNU Classpath Exception, which is available at https://www.gnu.org/software/classpath/license.html. SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 --> <!DOCTYPE project [ <!ENTITY commonSetup SYSTEM "./../../../config/properties.xml"> <!ENTITY commonBuild SYSTEM "./../../../config/common.xml"> <!ENTITY eeCommonBuild SYSTEM "./../../../config/ee-common.xml"> <!ENTITY run SYSTEM "./../../../config/run.xml"> <!ENTITY testproperties SYSTEM "./build.properties"> ]> <project name="webcontainer_unittest" default="all" basedir="."> &commonSetup; &commonBuild; &eeCommonBuild; &testproperties; &run; <target name="all" depends="build,deploy,run,undeploy"/> <target name="clean" depends="init-common"> <antcall target="clean-common"/> </target> <target name="compile" depends="clean"> <antcall target="compile-common"> <param name="src" value="servlet"/> </antcall> </target> <target name="build" depends="compile"> <property name="hasWebclient" value="yes"/> <antcall target="webclient-war-common"> <param name="hasWebclient" value="yes"/> <param name="webclient.war.classes" value="**/*.class"/> </antcall> <javac srcdir="." classpath="${env.APS_HOME}/lib/reportbuilder.jar" includes="WebTest.java"/> </target> <target name="deploy" depends="init-common"> <antcall target="asadmin-common-ignore-fail"> <param name="admin.command" value="deploy" /> <param name="operand.props" value="--type=osgi lib/osgi-servlet.jar"/> </antcall> </target> <target name="undeploy" depends="init-common"> <antcall target="asadmin-common-ignore-fail"> <param name="admin.command" value="undeploy" /> <param name="operand.props" value="osgi-servlet"/> </antcall> </target> <target name="build-publish-war" depends="build, publish-war-common" /> <target name="run" depends="init-common"> <java classname="WebTest"> <arg value="${http.host}"/> <arg value="${http.port}"/> <arg value="${contextroot}"/> <classpath> <pathelement location="${env.APS_HOME}/lib/reportbuilder.jar"/> <pathelement location="."/> </classpath> </java> </target> <target name="usage"> <antcall target="usage-common"/> </target> </project>
{ "pile_set_name": "Github" }
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ /* * This code was generated by https://github.com/googleapis/google-api-java-client-services/ * Modify at your own risk. */ package com.google.api.services.pubsub.model; /** * Represents an expression text. Example: * * title: "User account presence" description: "Determines whether the request has a user * account" expression: "size(request.user) > 0" * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see: * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> * </p> * * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Expr extends com.google.api.client.json.GenericJson { /** * An optional description of the expression. This is a longer text which describes the * expression, e.g. when hovered over it in a UI. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * Textual representation of an expression in Common Expression Language syntax. * * The application context of the containing message determines which well-known feature set of * CEL is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String expression; /** * An optional string indicating the location of the expression for error reporting, e.g. a file * name and a position in the file. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String location; /** * An optional title for the expression, i.e. a short string describing its purpose. This can be * used e.g. in UIs which allow to enter the expression. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String title; /** * An optional description of the expression. This is a longer text which describes the * expression, e.g. when hovered over it in a UI. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * An optional description of the expression. This is a longer text which describes the * expression, e.g. when hovered over it in a UI. * @param description description or {@code null} for none */ public Expr setDescription(java.lang.String description) { this.description = description; return this; } /** * Textual representation of an expression in Common Expression Language syntax. * * The application context of the containing message determines which well-known feature set of * CEL is supported. * @return value or {@code null} for none */ public java.lang.String getExpression() { return expression; } /** * Textual representation of an expression in Common Expression Language syntax. * * The application context of the containing message determines which well-known feature set of * CEL is supported. * @param expression expression or {@code null} for none */ public Expr setExpression(java.lang.String expression) { this.expression = expression; return this; } /** * An optional string indicating the location of the expression for error reporting, e.g. a file * name and a position in the file. * @return value or {@code null} for none */ public java.lang.String getLocation() { return location; } /** * An optional string indicating the location of the expression for error reporting, e.g. a file * name and a position in the file. * @param location location or {@code null} for none */ public Expr setLocation(java.lang.String location) { this.location = location; return this; } /** * An optional title for the expression, i.e. a short string describing its purpose. This can be * used e.g. in UIs which allow to enter the expression. * @return value or {@code null} for none */ public java.lang.String getTitle() { return title; } /** * An optional title for the expression, i.e. a short string describing its purpose. This can be * used e.g. in UIs which allow to enter the expression. * @param title title or {@code null} for none */ public Expr setTitle(java.lang.String title) { this.title = title; return this; } @Override public Expr set(String fieldName, Object value) { return (Expr) super.set(fieldName, value); } @Override public Expr clone() { return (Expr) super.clone(); } }
{ "pile_set_name": "Github" }
if (!global._graceBus) { global._graceBus = {} } export default { $emit(eventName, ...arg) { var cbs = global._graceBus[eventName]; for (var cb of cbs) { cb.apply(null, arg); } }, $on(eventName, cb) { global._graceBus[eventName] = global._graceBus[eventName] || []; global._graceBus[eventName].push(cb); }, $off(eventName, cb){ var cbs = global._graceBus[eventName] || []; if (cb) { for (var index = 0; index < cbs.length; ++index) { if (cb == o) { cbs.splice(index, 1); break } } } else { global._graceBus[eventName] = []; } } }
{ "pile_set_name": "Github" }
package io.leangen.graphql.metadata.strategy.query; import io.leangen.geantyref.GenericTypeReflector; import io.leangen.graphql.metadata.TypedElement; import io.leangen.graphql.metadata.exceptions.TypeMappingException; import io.leangen.graphql.util.ClassUtils; import java.lang.reflect.AnnotatedType; import java.lang.reflect.Field; import java.lang.reflect.Member; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.function.BinaryOperator; import java.util.function.Predicate; /** * The base class for all built-in {@code ResolverBuilder}s */ @SuppressWarnings("WeakerAccess") public abstract class AbstractResolverBuilder implements ResolverBuilder { protected OperationInfoGenerator operationInfoGenerator; protected ResolverArgumentBuilder argumentBuilder; protected BinaryOperator<TypedElement> propertyElementReducer; protected List<Predicate<Member>> filters = new ArrayList<>(); public AbstractResolverBuilder withOperationInfoGenerator(OperationInfoGenerator operationInfoGenerator) { this.operationInfoGenerator = operationInfoGenerator; return this; } public AbstractResolverBuilder withResolverArgumentBuilder(ResolverArgumentBuilder argumentBuilder) { this.argumentBuilder = argumentBuilder; return this; } public AbstractResolverBuilder withPropertyElementReducer(BinaryOperator<TypedElement> propertyElementReducer) { this.propertyElementReducer = propertyElementReducer; return this; } @SafeVarargs public final AbstractResolverBuilder withFilters(Predicate<Member>... filters) { Collections.addAll(this.filters, filters); return this; } public AbstractResolverBuilder withDefaultFilters() { return withFilters(ClassUtils::isReal); } public static TypedElement mergePropertyElements(TypedElement field, TypedElement getter) { return new TypedElement( GenericTypeReflector.mergeAnnotations(field.getJavaType(), getter.getJavaType()), field.getElement(), getter.getElement()); } protected List<Predicate<Member>> getFilters() { return filters.isEmpty() ? Collections.singletonList(ACCEPT_ALL) : filters; } protected AnnotatedType getFieldType(Field field, ResolverBuilderParams params) { try { return params.getTypeTransformer().transform(ClassUtils.getFieldType(field, params.getBeanType())); } catch (TypeMappingException e) { throw TypeMappingException.ambiguousMemberType(field, params.getBeanType(), e); } } protected AnnotatedType getReturnType(Method method, ResolverBuilderParams params) { try { return params.getTypeTransformer().transform(ClassUtils.getReturnType(method, params.getBeanType())); } catch (TypeMappingException e) { throw TypeMappingException.ambiguousMemberType(method, params.getBeanType(), e); } } }
{ "pile_set_name": "Github" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License along // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. // { dg-do run { target c++11 } } #include <list> #include <testsuite_hooks.h> #include <testsuite_allocator.h> struct T { int i; }; using __gnu_test::uneq_allocator; void test01() { typedef uneq_allocator<T> alloc_type; typedef std::list<T, alloc_type> test_type; test_type v1(alloc_type(1)); v1 = { T() }; auto it = v1.begin(); test_type v2(std::move(v1)); VERIFY(1 == v1.get_allocator().get_personality()); VERIFY(1 == v2.get_allocator().get_personality()); VERIFY( it == v2.begin() ); } void test02() { typedef uneq_allocator<T> alloc_type; typedef std::list<T, alloc_type> test_type; test_type v1(alloc_type(1)); v1 = { T() }; test_type v2(std::move(v1), alloc_type(2)); VERIFY(1 == v1.get_allocator().get_personality()); VERIFY(2 == v2.get_allocator().get_personality()); } int main() { test01(); test02(); return 0; }
{ "pile_set_name": "Github" }
/* Disable floating-point exceptions. Copyright (C) 2000-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ #include <fenv_libc.h> #include <fpu_control.h> int fedisableexcept (int excepts) { fexcept_t temp, old_exc, new_flags; _FPU_GETCW (temp); old_exc = (temp & FPC_EXCEPTION_MASK) >> FPC_EXCEPTION_MASK_SHIFT; new_flags = (temp & (~((excepts & FE_ALL_EXCEPT) << FPC_EXCEPTION_MASK_SHIFT))); _FPU_SETCW (new_flags); return old_exc; }
{ "pile_set_name": "Github" }
h3 code { font-family: inherit ; } pre { font-size: 105% ; } span.apii { float: right ; font-family: inherit ; }
{ "pile_set_name": "Github" }
/* Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com> Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /*jslint node:true */ (function () { 'use strict'; var child = require('child_process'), nodejs = '"' + process.execPath + '"', ret = 0, suites, index; suites = [ 'runner', 'compat' ]; function nextTest() { var suite = suites[index]; if (index < suites.length) { child.exec(nodejs + ' ./test/' + suite + '.js', function (err, stdout, stderr) { if (stdout) { process.stdout.write(suite + ': ' + stdout); } if (stderr) { process.stderr.write(suite + ': ' + stderr); } if (err) { ret = err.code; } index += 1; nextTest(); }); } else { process.exit(ret); } } index = 0; nextTest(); }());
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc --> <title>LdapContext (Java SE 12 &amp; JDK 12 )</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="keywords" content="javax.naming.ldap.LdapContext interface"> <meta name="keywords" content="CONTROL_FACTORIES"> <meta name="keywords" content="extendedOperation()"> <meta name="keywords" content="newInstance()"> <meta name="keywords" content="reconnect()"> <meta name="keywords" content="getConnectControls()"> <meta name="keywords" content="setRequestControls()"> <meta name="keywords" content="getRequestControls()"> <meta name="keywords" content="getResponseControls()"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> <!--[if IE]> <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> <![endif]--> <script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script> <script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script> <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="LdapContext (Java SE 12 & JDK 12 )"; } } catch(err) { } //--> var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; var pathtoroot = "../../../../"; var useModuleDirectories = true; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <header role="banner"> <nav role="navigation"> <div class="fixedNav"> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a id="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../index.html">Overview</a></li> <li><a href="../../../module-summary.html">Module</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/LdapContext.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div> </div> <div class="subNav"> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <ul class="navListSearch"> <li><label for="search">SEARCH:</label> <input type="text" id="search" value="search" disabled="disabled"> <input type="reset" id="reset" value="reset" disabled="disabled"> </li> </ul> </div> <a id="skip.navbar.top"> <!-- --> </a> <!-- ========= END OF TOP NAVBAR ========= --> </div> <div class="navPadding">&nbsp;</div> <script type="text/javascript"><!-- $('.navPadding').css('padding-top', $('.fixedNav').css("height")); //--> </script> </nav> </header> <!-- ======== START OF CLASS DATA ======== --> <main role="main"> <div class="header"> <div class="subTitle"><span class="moduleLabelInType">Module</span>&nbsp;<a href="../../../module-summary.html">java.naming</a></div> <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">javax.naming.ldap</a></div> <h2 title="Interface LdapContext" class="title">Interface LdapContext</h2> </div> <div class="contentContainer"> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Superinterfaces:</dt> <dd><code><a href="../Context.html" title="interface in javax.naming">Context</a></code>, <code><a href="../directory/DirContext.html" title="interface in javax.naming.directory">DirContext</a></code></dd> </dl> <dl> <dt>All Known Implementing Classes:</dt> <dd><code><a href="InitialLdapContext.html" title="class in javax.naming.ldap">InitialLdapContext</a></code></dd> </dl> <hr> <pre>public interface <span class="typeNameLabel">LdapContext</span> extends <a href="../directory/DirContext.html" title="interface in javax.naming.directory">DirContext</a></pre> <div class="block">This interface represents a context in which you can perform operations with LDAPv3-style controls and perform LDAPv3-style extended operations. For applications that do not require such controls or extended operations, the more generic <code>javax.naming.directory.DirContext</code> should be used instead. <h3>Usage Details About Controls</h3> This interface provides support for LDAP v3 controls. At a high level, this support allows a user program to set request controls for LDAP operations that are executed in the course of the user program's invocation of <code>Context</code>/<code>DirContext</code> methods, and read response controls resulting from LDAP operations. At the implementation level, there are some details that developers of both the user program and service providers need to understand in order to correctly use request and response controls. <h3>Request Controls</h3> <p> There are two types of request controls: <ul> <li>Request controls that affect how a connection is created <li>Request controls that affect context methods </ul> The former is used whenever a connection needs to be established or re-established with an LDAP server. The latter is used when all other LDAP operations are sent to the LDAP server. The reason why a distinction between these two types of request controls is necessary is because JNDI is a high-level API that does not deal directly with connections. It is the job of service providers to do any necessary connection management. Consequently, a single connection may be shared by multiple context instances, and a service provider is free to use its own algorithms to conserve connection and network usage. Thus, when a method is invoked on the context instance, the service provider might need to do some connection management in addition to performing the corresponding LDAP operations. For connection management, it uses the <em>connection request controls</em>, while for the normal LDAP operations, it uses the <em>context request controls</em>. <p>Unless explicitly qualified, the term "request controls" refers to context request controls. <h4>Context Request Controls</h4> There are two ways in which a context instance gets its request controls: <ol> <li><code>ldapContext.newInstance(<strong>reqCtls</strong>)</code> <li><code>ldapContext.setRequestControls(<strong>reqCtls</strong>)</code> </ol> where <code>ldapContext</code> is an instance of <code>LdapContext</code>. Specifying <code>null</code> or an empty array for <code>reqCtls</code> means no request controls. <code>newInstance()</code> creates a new instance of a context using <code>reqCtls</code>, while <code>setRequestControls()</code> updates an existing context instance's request controls to <code>reqCtls</code>. <p> Unlike environment properties, request controls of a context instance <em>are not inherited</em> by context instances that are derived from it. Derived context instances have <code>null</code> as their context request controls. You must set the request controls of a derived context instance explicitly using <code>setRequestControls()</code>. <p> A context instance's request controls are retrieved using the method <code>getRequestControls()</code>. <h4>Connection Request Controls</h4> There are three ways in which connection request controls are set: <ol> <li><code> new InitialLdapContext(env, <strong>connCtls</strong>)</code> <li><code>refException.getReferralContext(env, <strong>connCtls</strong>)</code> <li><code>ldapContext.reconnect(<strong>connCtls</strong>);</code> </ol> where <code>refException</code> is an instance of <code>LdapReferralException</code>, and <code>ldapContext</code> is an instance of <code>LdapContext</code>. Specifying <code>null</code> or an empty array for <code>connCtls</code> means no connection request controls. <p> Like environment properties, connection request controls of a context <em>are inherited</em> by contexts that are derived from it. Typically, you initialize the connection request controls using the <code>InitialLdapContext</code> constructor or <code>LdapReferralContext.getReferralContext()</code>. These connection request controls are inherited by contexts that share the same connection--that is, contexts derived from the initial or referral contexts. <p> Use <code>reconnect()</code> to change the connection request controls of a context. Invoking <code>ldapContext.reconnect()</code> affects only the connection used by <code>ldapContext</code> and any new contexts instances that are derived form <code>ldapContext</code>. Contexts that previously shared the connection with <code>ldapContext</code> remain unchanged. That is, a context's connection request controls must be explicitly changed and is not affected by changes to another context's connection request controls. <p> A context instance's connection request controls are retrieved using the method <code>getConnectControls()</code>. <h4>Service Provider Requirements</h4> A service provider supports connection and context request controls in the following ways. Context request controls must be associated on a per context instance basis while connection request controls must be associated on a per connection instance basis. The service provider must look for the connection request controls in the environment property "java.naming.ldap.control.connect" and pass this environment property on to context instances that it creates. <h3>Response Controls</h3> The method <code>LdapContext.getResponseControls()</code> is used to retrieve the response controls generated by LDAP operations executed as the result of invoking a <code>Context</code>/<code>DirContext</code> operation. The result is all of the responses controls generated by the underlying LDAP operations, including any implicit reconnection. To get only the reconnection response controls, use <code>reconnect()</code> followed by <code>getResponseControls()</code>. <h3>Parameters</h3> A <code>Control[]</code> array passed as a parameter to any method is owned by the caller. The service provider will not modify the array or keep a reference to it, although it may keep references to the individual <code>Control</code> objects in the array. A <code>Control[]</code> array returned by any method is immutable, and may not subsequently be modified by either the caller or the service provider.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>1.3</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="InitialLdapContext.html" title="class in javax.naming.ldap"><code>InitialLdapContext</code></a>, <a href="LdapReferralException.html#getReferralContext(java.util.Hashtable,javax.naming.ldap.Control%5B%5D)"><code>LdapReferralException.getReferralContext(java.util.Hashtable,javax.naming.ldap.Control[])</code></a></dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <div class="memberSummary"> <table> <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Field</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#CONTROL_FACTORIES">CONTROL_FACTORIES</a></span></code></th> <td class="colLast"> <div class="block">Constant that holds the name of the environment property for specifying the list of control factories to use.</div> </td> </tr> </tbody> </table> </div> <ul class="blockList"> <li class="blockList"><a id="fields.inherited.from.class.javax.naming.Context"> <!-- --> </a> <h3>Fields declared in interface&nbsp;javax.naming.<a href="../Context.html" title="interface in javax.naming">Context</a></h3> <code><a href="../Context.html#APPLET">APPLET</a>, <a href="../Context.html#AUTHORITATIVE">AUTHORITATIVE</a>, <a href="../Context.html#BATCHSIZE">BATCHSIZE</a>, <a href="../Context.html#DNS_URL">DNS_URL</a>, <a href="../Context.html#INITIAL_CONTEXT_FACTORY">INITIAL_CONTEXT_FACTORY</a>, <a href="../Context.html#LANGUAGE">LANGUAGE</a>, <a href="../Context.html#OBJECT_FACTORIES">OBJECT_FACTORIES</a>, <a href="../Context.html#PROVIDER_URL">PROVIDER_URL</a>, <a href="../Context.html#REFERRAL">REFERRAL</a>, <a href="../Context.html#SECURITY_AUTHENTICATION">SECURITY_AUTHENTICATION</a>, <a href="../Context.html#SECURITY_CREDENTIALS">SECURITY_CREDENTIALS</a>, <a href="../Context.html#SECURITY_PRINCIPAL">SECURITY_PRINCIPAL</a>, <a href="../Context.html#SECURITY_PROTOCOL">SECURITY_PROTOCOL</a>, <a href="../Context.html#STATE_FACTORIES">STATE_FACTORIES</a>, <a href="../Context.html#URL_PKG_PREFIXES">URL_PKG_PREFIXES</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a id="fields.inherited.from.class.javax.naming.directory.DirContext"> <!-- --> </a> <h3>Fields declared in interface&nbsp;javax.naming.directory.<a href="../directory/DirContext.html" title="interface in javax.naming.directory">DirContext</a></h3> <code><a href="../directory/DirContext.html#ADD_ATTRIBUTE">ADD_ATTRIBUTE</a>, <a href="../directory/DirContext.html#REMOVE_ATTRIBUTE">REMOVE_ATTRIBUTE</a>, <a href="../directory/DirContext.html#REPLACE_ATTRIBUTE">REPLACE_ATTRIBUTE</a></code></li> </ul> </li> </ul> </section> <!-- ========== METHOD SUMMARY =========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <div class="memberSummary"> <div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t3" class="tableTab" onclick="show(4);">Abstract Methods</button></div> <div id="memberSummary_tabpanel" role="tabpanel"> <table aria-labelledby="t0"> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor" id="i0"> <td class="colFirst"><code><a href="ExtendedResponse.html" title="interface in javax.naming.ldap">ExtendedResponse</a></code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#extendedOperation(javax.naming.ldap.ExtendedRequest)">extendedOperation</a></span>&#8203;(<a href="ExtendedRequest.html" title="interface in javax.naming.ldap">ExtendedRequest</a>&nbsp;request)</code></th> <td class="colLast"> <div class="block">Performs an extended operation.</div> </td> </tr> <tr class="rowColor" id="i1"> <td class="colFirst"><code><a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getConnectControls()">getConnectControls</a></span>()</code></th> <td class="colLast"> <div class="block">Retrieves the connection request controls in effect for this context.</div> </td> </tr> <tr class="altColor" id="i2"> <td class="colFirst"><code><a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRequestControls()">getRequestControls</a></span>()</code></th> <td class="colLast"> <div class="block">Retrieves the request controls in effect for this context.</div> </td> </tr> <tr class="rowColor" id="i3"> <td class="colFirst"><code><a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getResponseControls()">getResponseControls</a></span>()</code></th> <td class="colLast"> <div class="block">Retrieves the response controls produced as a result of the last method invoked on this context.</div> </td> </tr> <tr class="altColor" id="i4"> <td class="colFirst"><code><a href="LdapContext.html" title="interface in javax.naming.ldap">LdapContext</a></code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newInstance(javax.naming.ldap.Control%5B%5D)">newInstance</a></span>&#8203;(<a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;requestControls)</code></th> <td class="colLast"> <div class="block">Creates a new instance of this context initialized using request controls.</div> </td> </tr> <tr class="rowColor" id="i5"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reconnect(javax.naming.ldap.Control%5B%5D)">reconnect</a></span>&#8203;(<a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;connCtls)</code></th> <td class="colLast"> <div class="block">Reconnects to the LDAP server using the supplied controls and this context's environment.</div> </td> </tr> <tr class="altColor" id="i6"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRequestControls(javax.naming.ldap.Control%5B%5D)">setRequestControls</a></span>&#8203;(<a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;requestControls)</code></th> <td class="colLast"> <div class="block">Sets the request controls for methods subsequently invoked on this context.</div> </td> </tr> </tbody> </table> </div> </div> <ul class="blockList"> <li class="blockList"><a id="methods.inherited.from.class.javax.naming.Context"> <!-- --> </a> <h3>Methods declared in interface&nbsp;javax.naming.<a href="../Context.html" title="interface in javax.naming">Context</a></h3> <code><a href="../Context.html#addToEnvironment(java.lang.String,java.lang.Object)">addToEnvironment</a>, <a href="../Context.html#bind(java.lang.String,java.lang.Object)">bind</a>, <a href="../Context.html#bind(javax.naming.Name,java.lang.Object)">bind</a>, <a href="../Context.html#close()">close</a>, <a href="../Context.html#composeName(java.lang.String,java.lang.String)">composeName</a>, <a href="../Context.html#composeName(javax.naming.Name,javax.naming.Name)">composeName</a>, <a href="../Context.html#createSubcontext(java.lang.String)">createSubcontext</a>, <a href="../Context.html#createSubcontext(javax.naming.Name)">createSubcontext</a>, <a href="../Context.html#destroySubcontext(java.lang.String)">destroySubcontext</a>, <a href="../Context.html#destroySubcontext(javax.naming.Name)">destroySubcontext</a>, <a href="../Context.html#getEnvironment()">getEnvironment</a>, <a href="../Context.html#getNameInNamespace()">getNameInNamespace</a>, <a href="../Context.html#getNameParser(java.lang.String)">getNameParser</a>, <a href="../Context.html#getNameParser(javax.naming.Name)">getNameParser</a>, <a href="../Context.html#list(java.lang.String)">list</a>, <a href="../Context.html#list(javax.naming.Name)">list</a>, <a href="../Context.html#listBindings(java.lang.String)">listBindings</a>, <a href="../Context.html#listBindings(javax.naming.Name)">listBindings</a>, <a href="../Context.html#lookup(java.lang.String)">lookup</a>, <a href="../Context.html#lookup(javax.naming.Name)">lookup</a>, <a href="../Context.html#lookupLink(java.lang.String)">lookupLink</a>, <a href="../Context.html#lookupLink(javax.naming.Name)">lookupLink</a>, <a href="../Context.html#rebind(java.lang.String,java.lang.Object)">rebind</a>, <a href="../Context.html#rebind(javax.naming.Name,java.lang.Object)">rebind</a>, <a href="../Context.html#removeFromEnvironment(java.lang.String)">removeFromEnvironment</a>, <a href="../Context.html#rename(java.lang.String,java.lang.String)">rename</a>, <a href="../Context.html#rename(javax.naming.Name,javax.naming.Name)">rename</a>, <a href="../Context.html#unbind(java.lang.String)">unbind</a>, <a href="../Context.html#unbind(javax.naming.Name)">unbind</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a id="methods.inherited.from.class.javax.naming.directory.DirContext"> <!-- --> </a> <h3>Methods declared in interface&nbsp;javax.naming.directory.<a href="../directory/DirContext.html" title="interface in javax.naming.directory">DirContext</a></h3> <code><a href="../directory/DirContext.html#bind(java.lang.String,java.lang.Object,javax.naming.directory.Attributes)">bind</a>, <a href="../directory/DirContext.html#bind(javax.naming.Name,java.lang.Object,javax.naming.directory.Attributes)">bind</a>, <a href="../directory/DirContext.html#createSubcontext(java.lang.String,javax.naming.directory.Attributes)">createSubcontext</a>, <a href="../directory/DirContext.html#createSubcontext(javax.naming.Name,javax.naming.directory.Attributes)">createSubcontext</a>, <a href="../directory/DirContext.html#getAttributes(java.lang.String)">getAttributes</a>, <a href="../directory/DirContext.html#getAttributes(java.lang.String,java.lang.String%5B%5D)">getAttributes</a>, <a href="../directory/DirContext.html#getAttributes(javax.naming.Name)">getAttributes</a>, <a href="../directory/DirContext.html#getAttributes(javax.naming.Name,java.lang.String%5B%5D)">getAttributes</a>, <a href="../directory/DirContext.html#getSchema(java.lang.String)">getSchema</a>, <a href="../directory/DirContext.html#getSchema(javax.naming.Name)">getSchema</a>, <a href="../directory/DirContext.html#getSchemaClassDefinition(java.lang.String)">getSchemaClassDefinition</a>, <a href="../directory/DirContext.html#getSchemaClassDefinition(javax.naming.Name)">getSchemaClassDefinition</a>, <a href="../directory/DirContext.html#modifyAttributes(java.lang.String,int,javax.naming.directory.Attributes)">modifyAttributes</a>, <a href="../directory/DirContext.html#modifyAttributes(java.lang.String,javax.naming.directory.ModificationItem%5B%5D)">modifyAttributes</a>, <a href="../directory/DirContext.html#modifyAttributes(javax.naming.Name,int,javax.naming.directory.Attributes)">modifyAttributes</a>, <a href="../directory/DirContext.html#modifyAttributes(javax.naming.Name,javax.naming.directory.ModificationItem%5B%5D)">modifyAttributes</a>, <a href="../directory/DirContext.html#rebind(java.lang.String,java.lang.Object,javax.naming.directory.Attributes)">rebind</a>, <a href="../directory/DirContext.html#rebind(javax.naming.Name,java.lang.Object,javax.naming.directory.Attributes)">rebind</a>, <a href="../directory/DirContext.html#search(java.lang.String,java.lang.String,java.lang.Object%5B%5D,javax.naming.directory.SearchControls)">search</a>, <a href="../directory/DirContext.html#search(java.lang.String,java.lang.String,javax.naming.directory.SearchControls)">search</a>, <a href="../directory/DirContext.html#search(java.lang.String,javax.naming.directory.Attributes)">search</a>, <a href="../directory/DirContext.html#search(java.lang.String,javax.naming.directory.Attributes,java.lang.String%5B%5D)">search</a>, <a href="../directory/DirContext.html#search(javax.naming.Name,java.lang.String,java.lang.Object%5B%5D,javax.naming.directory.SearchControls)">search</a>, <a href="../directory/DirContext.html#search(javax.naming.Name,java.lang.String,javax.naming.directory.SearchControls)">search</a>, <a href="../directory/DirContext.html#search(javax.naming.Name,javax.naming.directory.Attributes)">search</a>, <a href="../directory/DirContext.html#search(javax.naming.Name,javax.naming.directory.Attributes,java.lang.String%5B%5D)">search</a></code></li> </ul> </li> </ul> </section> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="field.detail"> <!-- --> </a> <h3>Field Detail</h3> <a id="CONTROL_FACTORIES"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>CONTROL_FACTORIES</h4> <pre>static final&nbsp;<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a> CONTROL_FACTORIES</pre> <div class="block">Constant that holds the name of the environment property for specifying the list of control factories to use. The value of the property should be a colon-separated list of the fully qualified class names of factory classes that will create a control given another control. See <code>ControlFactory.getControlInstance()</code> for details. This property may be specified in the environment, a system property, or one or more resource files. <p> The value of this constant is "java.naming.factory.control".</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="ControlFactory.html" title="class in javax.naming.ldap"><code>ControlFactory</code></a>, <a href="../Context.html#addToEnvironment(java.lang.String,java.lang.Object)"><code>Context.addToEnvironment(java.lang.String, java.lang.Object)</code></a>, <a href="../Context.html#removeFromEnvironment(java.lang.String)"><code>Context.removeFromEnvironment(java.lang.String)</code></a>, <a href="../../../../constant-values.html#javax.naming.ldap.LdapContext.CONTROL_FACTORIES">Constant Field Values</a></dd> </dl> </li> </ul> </li> </ul> </section> <!-- ============ METHOD DETAIL ========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a id="extendedOperation(javax.naming.ldap.ExtendedRequest)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>extendedOperation</h4> <pre class="methodSignature"><a href="ExtendedResponse.html" title="interface in javax.naming.ldap">ExtendedResponse</a>&nbsp;extendedOperation&#8203;(<a href="ExtendedRequest.html" title="interface in javax.naming.ldap">ExtendedRequest</a>&nbsp;request) throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Performs an extended operation. This method is used to support LDAPv3 extended operations.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>request</code> - The non-null request to be performed.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The possibly null response of the operation. null means the operation did not generate any response.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while performing the extended operation.</dd> </dl> </li> </ul> <a id="newInstance(javax.naming.ldap.Control[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newInstance</h4> <pre class="methodSignature"><a href="LdapContext.html" title="interface in javax.naming.ldap">LdapContext</a>&nbsp;newInstance&#8203;(<a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;requestControls) throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Creates a new instance of this context initialized using request controls. This method is a convenience method for creating a new instance of this context for the purposes of multithreaded access. For example, if multiple threads want to use different context request controls, each thread may use this method to get its own copy of this context and set/get context request controls without having to synchronize with other threads. <p> The new context has the same environment properties and connection request controls as this context. See the class description for details. Implementations might also allow this context and the new context to share the same network connection or other resources if doing so does not impede the independence of either context.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>requestControls</code> - The possibly null request controls to use for the new context. If null, the context is initialized with no request controls.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A non-null <code>LdapContext</code> instance.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while creating the new instance.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="InitialLdapContext.html" title="class in javax.naming.ldap"><code>InitialLdapContext</code></a></dd> </dl> </li> </ul> <a id="reconnect(javax.naming.ldap.Control[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>reconnect</h4> <pre class="methodSignature">void&nbsp;reconnect&#8203;(<a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;connCtls) throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Reconnects to the LDAP server using the supplied controls and this context's environment. <p> This method is a way to explicitly initiate an LDAP "bind" operation. For example, you can use this method to set request controls for the LDAP "bind" operation, or to explicitly connect to the server to get response controls returned by the LDAP "bind" operation. <p> This method sets this context's <code>connCtls</code> to be its new connection request controls. This context's context request controls are not affected. After this method has been invoked, any subsequent implicit reconnections will be done using <code>connCtls</code>. <code>connCtls</code> are also used as connection request controls for new context instances derived from this context. These connection request controls are not affected by <code>setRequestControls()</code>. <p> Service provider implementors should read the "Service Provider" section in the class description for implementation details.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>connCtls</code> - The possibly null controls to use. If null, no controls are used.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while reconnecting.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="#getConnectControls()"><code>getConnectControls()</code></a>, <a href="#newInstance(javax.naming.ldap.Control%5B%5D)"><code>newInstance(javax.naming.ldap.Control[])</code></a></dd> </dl> </li> </ul> <a id="getConnectControls()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getConnectControls</h4> <pre class="methodSignature"><a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;getConnectControls() throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Retrieves the connection request controls in effect for this context. The controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A possibly-null array of controls. null means no connect controls have been set for this context.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while getting the request controls.</dd> </dl> </li> </ul> <a id="setRequestControls(javax.naming.ldap.Control[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRequestControls</h4> <pre class="methodSignature">void&nbsp;setRequestControls&#8203;(<a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;requestControls) throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Sets the request controls for methods subsequently invoked on this context. The request controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller. <p> This removes any previous request controls and adds <code>requestControls</code> for use by subsequent methods invoked on this context. This method does not affect this context's connection request controls. <p> Note that <code>requestControls</code> will be in effect until the next invocation of <code>setRequestControls()</code>. You need to explicitly invoke <code>setRequestControls()</code> with <code>null</code> or an empty array to clear the controls if you don't want them to affect the context methods any more. To check what request controls are in effect for this context, use <code>getRequestControls()</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>requestControls</code> - The possibly null controls to use. If null, no controls are used.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while setting the request controls.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="#getRequestControls()"><code>getRequestControls()</code></a></dd> </dl> </li> </ul> <a id="getRequestControls()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRequestControls</h4> <pre class="methodSignature"><a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;getRequestControls() throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Retrieves the request controls in effect for this context. The request controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A possibly-null array of controls. null means no request controls have been set for this context.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while getting the request controls.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="#setRequestControls(javax.naming.ldap.Control%5B%5D)"><code>setRequestControls(javax.naming.ldap.Control[])</code></a></dd> </dl> </li> </ul> <a id="getResponseControls()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getResponseControls</h4> <pre class="methodSignature"><a href="Control.html" title="interface in javax.naming.ldap">Control</a>[]&nbsp;getResponseControls() throws <a href="../NamingException.html" title="class in javax.naming">NamingException</a></pre> <div class="block">Retrieves the response controls produced as a result of the last method invoked on this context. The response controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller. <p> These response controls might have been generated by a successful or failed operation. <p> When a context method that may return response controls is invoked, response controls from the previous method invocation are cleared. <code>getResponseControls()</code> returns all of the response controls generated by LDAP operations used by the context method in the order received from the LDAP server. Invoking <code>getResponseControls()</code> does not clear the response controls. You can call it many times (and get back the same controls) until the next context method that may return controls is invoked.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A possibly null array of controls. If null, the previous method invoked on this context did not produce any controls.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../NamingException.html" title="class in javax.naming">NamingException</a></code> - If an error occurred while getting the response controls.</dd> </dl> </li> </ul> </li> </ul> </section> </li> </ul> </div> </div> </main> <!-- ========= END OF CLASS DATA ========= --> <footer role="contentinfo"> <nav role="navigation"> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a id="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../index.html">Overview</a></li> <li><a href="../../../module-summary.html">Module</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/LdapContext.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div> </div> <div class="subNav"> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> </div> <a id="skip.navbar.bottom"> <!-- --> </a> <!-- ======== END OF BOTTOM NAVBAR ======= --> </nav> <p class="legalCopy"><small><a href="https://bugreport.java.com/bugreport/">Report a bug or suggest an enhancement</a><br> For further API reference and developer documentation see the <a href="https://docs.oracle.com/pls/topic/lookup?ctx=javase12.0.2&amp;id=homepage" target="_blank">Java SE Documentation</a>, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.<br> <a href="../../../../../legal/copyright.html">Copyright</a> &copy; 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.<br>All rights reserved. Use is subject to <a href="https://www.oracle.com/technetwork/java/javase/terms/license/java12.0.2speclicense.html">license terms</a> and the <a href="https://www.oracle.com/technetwork/java/redist-137594.html">documentation redistribution policy</a>. <!-- Version 12.0.2+10 --></small></p> </footer> </body> </html>
{ "pile_set_name": "Github" }
/* * Copyright (C) 2014 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.android.gms.fit.samples.common.logger; /** * Helper class for a list (or tree) of LoggerNodes. * * <p>When this is set as the head of the list, * an instance of it can function as a drop-in replacement for {@link android.util.Log}. * Most of the methods in this class serve only to map a method call in Log to its equivalent * in LogNode.</p> */ public class Log { // Grabbing the native values from Android's native logging facilities, // to make for easy migration and interop. public static final int NONE = -1; public static final int VERBOSE = android.util.Log.VERBOSE; public static final int DEBUG = android.util.Log.DEBUG; public static final int INFO = android.util.Log.INFO; public static final int WARN = android.util.Log.WARN; public static final int ERROR = android.util.Log.ERROR; public static final int ASSERT = android.util.Log.ASSERT; // Stores the beginning of the LogNode topology. private static LogNode mLogNode; /** * Returns the next LogNode in the linked list. */ public static LogNode getLogNode() { return mLogNode; } /** * Sets the LogNode data will be sent to. */ public static void setLogNode(LogNode node) { mLogNode = node; } /** * Instructs the LogNode to print the log data provided. Other LogNodes can * be chained to the end of the LogNode as desired. * * @param priority Log level of the data being logged. Verbose, Error, etc. * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void println(int priority, String tag, String msg, Throwable tr) { if (mLogNode != null) { mLogNode.println(priority, tag, msg, tr); } } /** * Instructs the LogNode to print the log data provided. Other LogNodes can * be chained to the end of the LogNode as desired. * * @param priority Log level of the data being logged. Verbose, Error, etc. * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. The actual message to be logged. */ public static void println(int priority, String tag, String msg) { println(priority, tag, msg, null); } /** * Prints a message at VERBOSE priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void v(String tag, String msg, Throwable tr) { println(VERBOSE, tag, msg, tr); } /** * Prints a message at VERBOSE priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. */ public static void v(String tag, String msg) { v(tag, msg, null); } /** * Prints a message at DEBUG priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void d(String tag, String msg, Throwable tr) { println(DEBUG, tag, msg, tr); } /** * Prints a message at DEBUG priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. */ public static void d(String tag, String msg) { d(tag, msg, null); } /** * Prints a message at INFO priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void i(String tag, String msg, Throwable tr) { println(INFO, tag, msg, tr); } /** * Prints a message at INFO priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. */ public static void i(String tag, String msg) { i(tag, msg, null); } /** * Prints a message at WARN priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void w(String tag, String msg, Throwable tr) { println(WARN, tag, msg, tr); } /** * Prints a message at WARN priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. */ public static void w(String tag, String msg) { w(tag, msg, null); } /** * Prints a message at WARN priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void w(String tag, Throwable tr) { w(tag, null, tr); } /** * Prints a message at ERROR priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void e(String tag, String msg, Throwable tr) { println(ERROR, tag, msg, tr); } /** * Prints a message at ERROR priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. */ public static void e(String tag, String msg) { e(tag, msg, null); } /** * Prints a message at ASSERT priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void wtf(String tag, String msg, Throwable tr) { println(ASSERT, tag, msg, tr); } /** * Prints a message at ASSERT priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param msg The actual message to be logged. */ public static void wtf(String tag, String msg) { wtf(tag, msg, null); } /** * Prints a message at ASSERT priority. * * @param tag Tag for for the log data. Can be used to organize log statements. * @param tr If an exception was thrown, this can be sent along for the logging facilities * to extract and print useful information. */ public static void wtf(String tag, Throwable tr) { wtf(tag, null, tr); } }
{ "pile_set_name": "Github" }
/* * Copyright (c) 2010-2018. Axon Framework * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.axonframework.modelling.saga; import org.axonframework.eventhandling.EventMessage; import org.axonframework.messaging.annotation.MessageHandlingMember; /** * Used to derive the value of an association property as designated by the association property name. * * @author Sofia Guy Ang */ public interface AssociationResolver { /** * Validates that the associationPropertyName supplied is compatible with the handler. */ <T> void validate(String associationPropertyName, MessageHandlingMember<T> handler); /** * Resolves the associationPropertyName as a value. */ <T> Object resolve(String associationPropertyName, EventMessage<?> message, MessageHandlingMember<T> handler); }
{ "pile_set_name": "Github" }
{ "name": "Desktop Capture Sample", "version": "2", "manifest_version": 2, "icons": { "16": "desktop.png", "128": "desktop.png" }, "app": { "background": { "scripts": ["background.js"] } }, "permissions": [ "desktopCapture" ] }
{ "pile_set_name": "Github" }
/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package com.xpn.xwiki.web; import javax.script.ScriptContext; import org.xwiki.model.EntityType; import org.xwiki.resource.ResourceReference; import org.xwiki.resource.ResourceReferenceManager; import org.xwiki.resource.entity.EntityResourceReference; import com.xpn.xwiki.XWikiContext; import com.xpn.xwiki.XWikiException; import com.xpn.xwiki.api.Attachment; import com.xpn.xwiki.api.Document; import com.xpn.xwiki.doc.XWikiAttachment; import com.xpn.xwiki.doc.XWikiDocument; public class ViewAttachRevAction extends XWikiAction { /** * Default constructor. */ public ViewAttachRevAction() { this.waitForXWikiInitialization = false; this.handleRedirectObject = true; } @Override public String render(XWikiContext context) throws XWikiException { XWikiRequest request = context.getRequest(); XWikiDocument doc = context.getDoc(); String filename; if (context.getMode() == XWikiContext.MODE_PORTLET) { filename = request.getParameter("filename"); } else { filename = getFileName(); } XWikiAttachment attachment; if (context.getWiki().hasAttachmentRecycleBin(context) && request.getParameter("rid") != null) { int recycleId = Integer.parseInt(request.getParameter("rid")); attachment = new XWikiAttachment(doc, filename); attachment = context.getWiki().getAttachmentRecycleBinStore().restoreFromRecycleBin(attachment, recycleId, context, true); } else if (request.getParameter("id") != null) { int id = Integer.parseInt(request.getParameter("id")); attachment = doc.getAttachmentList().get(id); } else { attachment = doc.getAttachment(filename); if (attachment == null) { context.put("message", "attachmentdoesnotexist"); return "exception"; } } ScriptContext scriptContext = getCurrentScriptContext(); scriptContext.setAttribute("attachment", new Attachment((Document) scriptContext.getAttribute("doc"), attachment, context), ScriptContext.ENGINE_SCOPE); return "viewattachrev"; } /** * @return the filename of the attachment. */ private String getFileName() { // Extract the Attachment file name from the parsed request URL that was done before this Action is called ResourceReference resourceReference = Utils.getComponent(ResourceReferenceManager.class).getResourceReference(); EntityResourceReference entityResource = (EntityResourceReference) resourceReference; return entityResource.getEntityReference().extractReference(EntityType.ATTACHMENT).getName(); } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{0F9D2405-725F-4859-AB13-75DFAFA6BA35}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>FlowSharpCodeICSharpDevelopService</RootNamespace> <AssemblyName>FlowSharpCodeICSharpDevelopService</AssemblyName> <TargetFrameworkVersion>v4.7</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> <Reference Include="Clifton.Core"> <HintPath>..\..\..\Libs\Clifton.Core.dll</HintPath> </Reference> <Reference Include="Clifton.WinForm.ServiceInterfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\Libs\Clifton.WinForm.ServiceInterfaces.dll</HintPath> </Reference> <Reference Include="ICSharpCode.AvalonEdit"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.AvalonEdit.dll</HintPath> </Reference> <Reference Include="ICSharpCode.CodeCompletion"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.CodeCompletion.dll</HintPath> </Reference> <Reference Include="ICSharpCode.Core"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.Core.dll</HintPath> </Reference> <Reference Include="ICSharpCode.Core.Presentation"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.Core.Presentation.dll</HintPath> </Reference> <Reference Include="ICSharpCode.NRefactory"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.NRefactory.dll</HintPath> </Reference> <Reference Include="ICSharpCode.NRefactory.Cecil"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.NRefactory.Cecil.dll</HintPath> </Reference> <Reference Include="ICSharpCode.NRefactory.CSharp"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.NRefactory.CSharp.dll</HintPath> </Reference> <Reference Include="ICSharpCode.NRefactory.Xml"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.NRefactory.Xml.dll</HintPath> </Reference> <Reference Include="ICSharpCode.SharpDevelop"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.SharpDevelop.dll</HintPath> </Reference> <Reference Include="ICSharpCode.SharpDevelop.Widgets"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.SharpDevelop.Widgets.dll</HintPath> </Reference> <Reference Include="ICSharpCode.TreeView"> <HintPath>..\..\..\Libs\ICSharpCode\ICSharpCode.TreeView.dll</HintPath> </Reference> <Reference Include="Mono.Cecil"> <HintPath>..\..\..\Libs\ICSharpCode\Mono.Cecil.dll</HintPath> </Reference> <Reference Include="PresentationCore" /> <Reference Include="PresentationFramework" /> <Reference Include="System" /> <Reference Include="System.Core" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml.Linq" /> <Reference Include="System.Data.DataSetExtensions" /> <Reference Include="Microsoft.CSharp" /> <Reference Include="System.Data" /> <Reference Include="System.Net.Http" /> <Reference Include="System.Xml" /> <Reference Include="WindowsBase" /> <Reference Include="WindowsFormsIntegration" /> </ItemGroup> <ItemGroup> <Compile Include="CodeEditorService.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="ScriptProvider.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\..\FlowSharpLib\FlowSharpLib.csproj"> <Project>{07f65ca7-b8d3-4716-bfbf-812ef4da68be}</Project> <Name>FlowSharpLib</Name> </ProjectReference> <ProjectReference Include="..\FlowSharpCodeServiceInterfaces\FlowSharpCodeServiceInterfaces.csproj"> <Project>{f8d75cfd-fb07-4a09-97d6-0ac3871aa35a}</Project> <Name>FlowSharpCodeServiceInterfaces</Name> </ProjectReference> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> --> </Project>
{ "pile_set_name": "Github" }
msgid "" msgstr "" "PO-Revision-Date: 2020-09-27 12:38+0000\n" "Last-Translator: Atrate <Atrate@protonmail.com>\n" "Language-Team: Polish <https://hosted.weblate.org/projects/openwrt/" "luciapplicationstravelmate/pl/>\n" "Language: pl\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 4.3-dev\n" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:73 msgid "-- AP Selection --" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:261 msgid "AP QR-Codes..." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:823 msgid "Add Uplink %q" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:679 msgid "Add Uplink..." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:280 msgid "Additional Settings" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:321 msgid "" "Additional trigger delay in seconds before travelmate processing begins." msgstr "" "Dodatkowe opóźnienie wyzwalacza w sekundach zanim travelmate zacznie " "przetwarzać." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:360 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:787 msgid "Authentication" msgstr "Uwierzytelnienie" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:484 msgid "Auto Login Script" msgstr "Automatyczny skrypt logowania" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:310 msgid "AutoAdd Open Uplinks" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:467 msgid "" "Automatically (re-)enable the uplink after <em>n</em> minutes, e.g. after " "failed login attempts.<br /> The default of '0' disables this feature." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:310 msgid "" "Automatically add open uplinks like hotel captive portals to your wireless " "config." msgstr "" "Automatycznie dodawaj otwarte łącza zwrotne takie jak strony logowania w " "sieci w hotelu do swojej bezprzewodowej konfiguracji." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:449 msgid "" "Automatically disable the uplink after <em>n</em> minutes, e.g. for timed " "connections.<br /> The default of '0' disables this feature." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:380 msgid "Automatically handle VPN (re-) connections." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:252 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:415 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:574 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:743 msgid "BSSID" msgstr "BSSID" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:346 msgid "Buffer size in bytes to prepare nearby scan results." msgstr "" "Rozmiar bufora w bajtach do przygotowania rezultatu skanowania okolicy." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:362 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:790 msgid "CHAP" msgstr "CHAP" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:297 msgid "Captive Portal Detection" msgstr "Wykrywanie logowania w sieci" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:351 msgid "Captive Portal URL" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:572 msgid "Channel" msgstr "Kanał" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:297 msgid "" "Check the internet availability, handle captive portal redirections and keep " "the uplink connection 'alive'." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:147 msgid "" "Configuration of the travelmate package to to enable travel router " "functionality. For further information <a href=\"https://github.com/openwrt/" "packages/blob/master/net/travelmate/files/README.md\" target=\"_blank\" rel=" "\"noreferrer noopener\" >check the online documentation</a>. <br /> " "<em>Please note:</em> On first start please call the 'Interface Wizard' " "once, to make the necessary network- and firewall settings." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:437 msgid "Connection End" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:466 msgid "Connection End Expiry" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:326 msgid "Connection Limit" msgstr "Limit połączenia" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:426 msgid "Connection Start" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:448 msgid "Connection Start Expiry" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:228 msgid "Del" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:226 msgid "Delete this network" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:245 msgid "Device" msgstr "Urządzenie" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:716 msgid "Device Name" msgstr "Nazwa urządzenia" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:43 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:129 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:587 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:829 msgid "Dismiss" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:215 msgid "Drag to reorder" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:404 msgid "E-Mail Hook" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:422 msgid "E-Mail Profile" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:407 msgid "E-Mail Receiver Address" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:412 msgid "E-Mail Sender Address" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:282 msgid "E-Mail Settings" msgstr "Ustawienia E-Mail" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:417 msgid "E-Mail Topic" msgstr "Temat E-Mail" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:365 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:793 msgid "EAP-GTC" msgstr "EAP-GTC" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:366 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:794 msgid "EAP-MD5" msgstr "EAP-MD5" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:367 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:795 msgid "EAP-MSCHAPV2" msgstr "EAP-MSCHAPV2" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:351 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:779 msgid "EAP-Method" msgstr "Metoda protokołu rozszerzonego uwierzytelniania (EAP)" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:368 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:796 msgid "EAP-TLS" msgstr "EAP-TLS" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:223 msgid "Edit" msgstr "Edytuj" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:221 msgid "Edit this network" msgstr "Edytuj tę sieć" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:287 msgid "Enable the travelmate service." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:290 msgid "Enable verbose debug logging in case of any processing errors." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:287 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:233 msgid "Enabled" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:256 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:575 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:749 msgid "Encryption" msgstr "Szyfrowanie" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:244 msgid "Ext. Hooks" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:485 msgid "" "External script reference which will be called for automated captive portal " "logins." msgstr "" "Nawiązanie do zewnętrznego skryptu który będzie użyty do automatycznego " "logowania w sieci." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:355 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:784 msgid "FAST" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:279 msgid "General Settings" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:314 msgid "Generate a random unicast MAC address for each uplink connection." msgstr "" #: applications/luci-app-travelmate/root/usr/share/rpcd/acl.d/luci-app-travelmate.json:3 msgid "Grant access to LuCI app travelmate" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:336 msgid "" "How long should travelmate wait for a successful wlan uplink connection." msgstr "" "Jak długo travelmate powinien czekać na udane połączenie bezprzewodowe." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:375 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:801 msgid "Identify" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:735 msgid "Ignore BSSID" msgstr "Ignoruj BSSID" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:224 msgid "Information" msgstr "Informacje" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:720 msgid "Interface Name" msgstr "Nazwa interfejsu" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:336 msgid "Interface Timeout" msgstr "Limit czasu interfejsu" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:19 msgid "Interface Wizard" msgstr "Kreator interfejsu" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:268 msgid "Interface Wizard..." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:395 msgid "LAN Device" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:247 msgid "Last Run" msgstr "Ostatnie uruchomienie" #: applications/luci-app-travelmate/root/usr/share/luci/menu.d/luci-app-travelmate.json:35 msgid "Log View" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:363 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:791 msgid "MSCHAP" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:364 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:792 msgid "MSCHAPV2" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:331 msgid "" "Minimum signal quality threshold as percent for conditional uplink (dis-) " "connections." msgstr "" "Minimalny próg jakości sygnału jako wartość procentowa dla warunkowych " "(ujemnych) połączeń." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:301 msgid "Net Error Check" msgstr "Kontrola błędów sieci" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/logread.js:22 msgid "No travelmate related logs yet!" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:275 msgid "OWE" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:341 msgid "Overall Timeout" msgstr "Ogólny limit czasu" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:341 msgid "Overall retry timeout in seconds." msgstr "Ogólny limit czasu powtarzania w sekundach." #: applications/luci-app-travelmate/root/usr/share/luci/menu.d/luci-app-travelmate.json:19 msgid "Overview" msgstr "Przegląd" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:201 msgid "" "Overview of all configured uplinks for travelmate.<br /> You can edit, " "remove or prioritize existing uplinks by drag &#38; drop and scan for new " "ones. The currently used uplink is emphasized in blue." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:361 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:789 msgid "PAP" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:354 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:783 msgid "PEAP" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:343 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:772 msgid "Password" msgstr "Hasło" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:394 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:816 msgid "Password of Private Key" msgstr "Hasło klucza prywatnego" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:379 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:804 msgid "Path to CA-Certificate" msgstr "Ścieżka do certyfikatu CA" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:384 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:808 msgid "Path to Client-Certificate" msgstr "Ścieżka do certyfikatu klienta" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:389 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:812 msgid "Path to Private Key" msgstr "Ścieżka do Klucza Prywatnego" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:258 msgid "Please install the separate 'qrencode' package." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:282 msgid "" "Please note: E-Mail notifications require the separate setup of the " "<em>mstmp</em> package.<br /><p>&#xa0;</p>" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:281 msgid "" "Please note: VPN connections require the separate setup of the " "<em>Wireguard</em> or <em>OpenVPN</em> package.<br /><p>&#xa0;</p>" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:306 msgid "ProActive Uplink Switch" msgstr "Przełącznik połączenia ProActive" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:306 msgid "" "Proactively scan and switch to a higher prioritized uplink, despite of an " "already existing connection." msgstr "" "Aktywnie skanuj i przełączaj na łącze o wyższym priorytecie, pomimo już " "istniejącego połączenia." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:422 msgid "Profile used by 'msmtp' for travelmate notification E-Mails." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:114 msgid "QR-Code Overview" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:293 msgid "Radio Selection" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:314 msgid "Randomize MAC Addresses" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:407 msgid "Receiver address for travelmate notification E-Mails." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:115 msgid "" "Render the QR-Code of the selected Access Point to comfortably transfer the " "WLAN credentials to your mobile devices." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:592 msgid "Repeat Scan" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:293 msgid "" "Restrict travelmate to a single radio or change the overall scanning order " "(e.g. 'radio1 radio0')." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:326 msgid "Retry limit to connect to an uplink." msgstr "Limit powtórzeń do połączenia." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:241 msgid "Run Flags" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:248 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:404 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:573 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:729 msgid "SSID" msgstr "SSID" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:725 msgid "SSID (hidden)" msgstr "SSID (ukryty)" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:61 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:834 msgid "Save" msgstr "Zapisz" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:346 msgid "Scan Buffer Size" msgstr "Rozmiar bufora skanowania" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:557 msgid "Scan on" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:523 msgid "Script Arguments" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:412 msgid "Sender address for travelmate notification E-Mails." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:404 msgid "Sends notification E-Mails after every succesful uplink connect." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:368 msgid "Service Priority" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:277 msgid "Settings" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:331 msgid "Signal Quality Threshold" msgstr "Próg jakości sygnału" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:524 msgid "" "Space separated list of additional arguments passed to the Auto Login " "Script, i.e. username and password" msgstr "" "Rozdzielona spacjami lista dodatkowych argumentów przekazanych do skryptu " "automatycznego logowania, np. nazwa użytkownika i hasło" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:579 msgid "Starting wireless scan on '" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:229 msgid "Station ID" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:235 msgid "Station Interface" msgstr "Interfejs stacji" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:232 msgid "Station MAC" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:226 msgid "Status / Version" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:571 msgid "Strength" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:352 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:781 msgid "TLS" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:353 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:782 msgid "TTLS" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:105 msgid "The QR-Code could not be generated!" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:31 msgid "The firewall zone name" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:36 msgid "The interface metric" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:395 msgid "The lan network device, e.g. 'br-lan'." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:389 msgid "The logical vpn network interface, e.g. 'wg0' or 'tun0'." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:351 msgid "" "The selected URL will be used for connectivity- and captive portal checks." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:368 msgid "The selected priority will be used for travelmate processes." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:359 msgid "" "The selected user agent will be used for connectivity- and captive portal " "checks." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/logread.js:29 msgid "The syslog output, pre-filtered for travelmate related messages only." msgstr "" "Wyjście dziennika systemowego, wstępnie filtrowane aby zawierało tylko " "informacje związane z travelmate." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:56 msgid "The uplink interface has been updated." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:26 msgid "The uplink interface name" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:20 msgid "" "To use Travelmate, you have to set up an uplink interface once. This wizard " "creates an IPv4- and an IPv6 alias network interface with all required " "network- and firewall settings." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:417 msgid "Topic for travelmate notification E-Mails." msgstr "" #: applications/luci-app-travelmate/root/usr/share/luci/menu.d/luci-app-travelmate.json:3 msgid "Travelmate" msgstr "Travelmate" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:209 msgid "Travelmate Settings" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:301 msgid "Treat missing internet availability as an error." msgstr "Traktuj brak dostępu do internetu jako błąd." #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:321 msgid "Trigger Delay" msgstr "Opóźnienie wyzwalacza" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:359 msgid "User Agent" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:380 msgid "VPN Hook" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:389 msgid "VPN Interface" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:383 msgid "VPN Service" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:281 msgid "VPN Settings" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:290 msgid "Verbose Debug Logging" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:271 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:764 msgid "WPA Ent. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:272 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:765 msgid "WPA Ent. (TKIP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/overview.js:238 msgid "WPA Flags" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:262 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:755 msgid "WPA Pers." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:263 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:756 msgid "WPA Pers. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:264 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:757 msgid "WPA Pers. (TKIP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:273 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:766 msgid "WPA/WPA2 Ent. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:274 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:767 msgid "WPA/WPA2 Ent. (TKIP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:265 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:758 msgid "WPA/WPA2 Pers. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:266 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:759 msgid "WPA/WPA2 Pers. (TKIP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:269 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:762 msgid "WPA2 Ent. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:270 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:763 msgid "WPA2 Ent. (TKIP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:259 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:752 msgid "WPA2 Pers." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:260 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:753 msgid "WPA2 Pers. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:261 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:754 msgid "WPA2 Pers. (TKIP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:761 msgid "WPA2/WPA3 Ent." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:268 msgid "WPA2/WPA3 Ent. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:258 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:751 msgid "WPA2/WPA3 Pers. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:760 msgid "WPA3 Ent." msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:267 msgid "WPA3 Ent. (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:768 msgid "WPA3 OWE (CCMP)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:257 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:750 msgid "WPA3 Pers. (SAE)" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:581 msgid "Wireless Scan" msgstr "Bezprzewodowe skanowanie" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:208 msgid "Wireless Settings" msgstr "" #: applications/luci-app-travelmate/root/usr/share/luci/menu.d/luci-app-travelmate.json:27 msgid "Wireless Stations" msgstr "Stacje bezprzewodowe" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:370 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:798 msgid "auth=MSCHAPV2" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:369 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:797 msgid "auth=PAP" msgstr "" #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:276 #: applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js:769 msgid "none" msgstr "" #~ msgid "AP on" #~ msgstr "AP włączony" #~ msgid "Action" #~ msgstr "Akcja" #~ msgid "Add Open Uplinks" #~ msgstr "Dodaj otwierające łącza zwrotne" #~ msgid "Add Uplink" #~ msgstr "Dodaj łącze w górę" #~ msgid "Add Wireless Uplink Configuration" #~ msgstr "Dodaj bezprzewodową konfigurację łącza" #~ msgid "Advanced" #~ msgstr "Zaawansowane" #~ msgid "Automatic" #~ msgstr "Automatyczne" #~ msgid "" #~ "Automatically resets the 'Faulty Stations' list after n minutes. Default " #~ "is '0' which means no expiry." #~ msgstr "" #~ "Automatycznie restartuje listę \"Wadliwych stacji\" po n minut. Domyślnie " #~ "wynosi \"0\" co oznacza że nigdy nie wygaśnie." #~ msgid "Back to overview" #~ msgstr "Wróć do przeglądu" #~ msgid "" #~ "Check the internet availability, log captive portal redirections and keep " #~ "the uplink connection 'alive'." #~ msgstr "" #~ "Sprawdź dostępność internetu, zaloguj się w sieci i utrzymuj połączenie." #~ msgid "Cipher" #~ msgstr "Szyfr" #~ msgid "" #~ "Configuration of the travelmate package to to enable travel router " #~ "functionality." #~ msgstr "" #~ "Konfiguracja pakietu travelmate do włączenia funkcji turystycznego " #~ "routera." #~ msgid "Create Uplink interface" #~ msgstr "Utwórz interfejs połączenia" #~ msgid "" #~ "Create a new wireless wan uplink interface, configure it to use dhcp and" #~ msgstr "" #~ "Utwórz nowy bezprzewodowy interfejs połączenia sieci rozległej, " #~ "skonfiguruj go do używania protokołu dynamicznego konfigurowania hostów " #~ "(DHCP) i" #~ msgid "Down" #~ msgstr "Dół" #~ msgid "Edit Firewall Configuration" #~ msgstr "Edycja konfiguracji zapory sieciowej" #~ msgid "Edit Network Configuration" #~ msgstr "Edycja konfiguracji sieci" #~ msgid "Edit Travelmate Configuration" #~ msgstr "Edycja konfiguracji Travelmate" #~ msgid "Edit Wireless Configuration" #~ msgstr "Edycja konfiguracji sieci bezprzewodowej" #~ msgid "Edit Wireless Uplink Configuration" #~ msgstr "Edytuj konfigurację bezprzewodowego połączenia" #~ msgid "Edit this Uplink" #~ msgstr "Edytuj to połączenie" #~ msgid "Enable Travelmate" #~ msgstr "Włącz Travelmate'a" #~ msgid "Enable Verbose Debug Logging" #~ msgstr "Włącz pełne rejestrowanie debugowania" #~ msgid "Extra Options" #~ msgstr "Opcje dodatkowe" #~ msgid "Faulty Stations" #~ msgstr "Wadliwe stacje" #~ msgid "Find and join network on" #~ msgstr "Znajdź i połącz się z siecią" #~ msgid "For QR-Code support please install package 'qrencode'!" #~ msgstr "Dla wsparcia kodów QR proszę zainstalować pakiet 'qrencode'!" #~ msgid "" #~ "For further information <a href=\"%s\" target=\"_blank\">see online " #~ "documentation</a>" #~ msgstr "" #~ "Aby uzyskać więcej informacji<a href=\"%s\" target=\"_blank\">zobacz " #~ "dokumentację online</a>" #~ msgid "Force CCMP (AES)" #~ msgstr "Wymuś CCMP (AES)" #~ msgid "Force TKIP" #~ msgstr "Wymuś TKIP" #~ msgid "Force TKIP and CCMP (AES)" #~ msgstr "Wymuś TKIP i CCMP (AES)" #~ msgid "Grant UCI access for luci-app-travelmate" #~ msgstr "Udziel dostępu UCI do luci-app-travelmate" #~ msgid "Identity" #~ msgstr "Tożsamość" #~ msgid "Input file not found, please check your configuration." #~ msgstr "" #~ "Nie znaleziono pliku wejściowego, proszę sprawdzić swoją konfigurację." #~ msgid "List Auto Expiry" #~ msgstr "Lista automatycznego wygaśnięcia" #~ msgid "Loading" #~ msgstr "Ładowanie" #~ msgid "Move down" #~ msgstr "Przesuń w dół" #~ msgid "Move up" #~ msgstr "Przesuń w górę" #~ msgid "Name of the used uplink interface." #~ msgstr "Nazwa używanego interfejsu połączenia." #~ msgid "Optional Arguments" #~ msgstr "Argumenty opcjonalne" #~ msgid "" #~ "Options for further tweaking in case the defaults are not suitable for " #~ "you." #~ msgstr "" #~ "Opcje dalszych zmian w przypadku, gdy ustawienia domyślne nie są dla " #~ "ciebie wystarczające." #~ msgid "Passphrase" #~ msgstr "Hasło" #~ msgid "" #~ "Provides an overview of all configured uplinks for the travelmate " #~ "interface (%s). You can edit, remove or re-order/prioritize existing " #~ "uplinks or scan for new ones. The currently used uplink is emphasized in " #~ "blue, faulty stations in red." #~ msgstr "" #~ "Zawiera przegląd wszystkich skonfigurowanych połączeń dla interfejsu " #~ "travelmate (%s). Możesz edytować, usuwać lub zmieniać kolejność/priorytet " #~ "istniejących połączeń lub skanować w poszukiwaniu nowych. Aktualnie " #~ "używane połączenie jest podkreślone na niebiesko, uszkodzone na czerwono." #~ msgid "Radio Selection / Order" #~ msgstr "Wybór radia/kolejność" #~ msgid "Remove" #~ msgstr "Usuń" #~ msgid "Remove this Uplink" #~ msgstr "Usuń to połączenie" #~ msgid "Repeat scan" #~ msgstr "Powtórz skanowanie" #~ msgid "Restart" #~ msgstr "Restart" #~ msgid "Restart Travelmate" #~ msgstr "Restartuj Travelmate'a" #~ msgid "" #~ "Restrict travelmate to a single radio (e.g. 'radio1') or change the " #~ "overall scanning order (e.g. 'radio1 radio2 radio0')." #~ msgstr "" #~ "Ogranicz travelmate do pojedynczego radia (np. „radio1”) lub zmień ogólną " #~ "kolejność skanowania (np. „radio1 radio2 radio0”)." #~ msgid "Runtime Information" #~ msgstr "Informacja o środowisku uruchomieniowym" #~ msgid "Scan" #~ msgstr "Skanuj" #~ msgid "Show/Hide QR-Codes" #~ msgstr "Pokaż/Ukryj kody QR" #~ msgid "Signal strength" #~ msgstr "Siła sygnału" #~ msgid "Station ID (RADIO/SSID/BSSID)" #~ msgstr "ID stacji (RADIO/SSID/BSSID)" #~ msgid "" #~ "The BSSID information '%s' is optional and only required for hidden " #~ "networks" #~ msgstr "" #~ "Informacje o BSSID '%s' jest opcjonalna i wymagana tylko dla ukrytych " #~ "sieci" #~ msgid "" #~ "This form allows you to modify the content of the main firewall " #~ "configuration file (/etc/config/firewall)." #~ msgstr "" #~ "Ten formularz zezwala na modyfikację zawartości głównego pliku " #~ "konfiguracji zapory (etc/config/firewall)." #~ msgid "" #~ "This form allows you to modify the content of the main network " #~ "configuration file (/etc/config/network)." #~ msgstr "" #~ "Ten formularz umożliwia modyfikację zawartości pliku konfiguracji głównej " #~ "sieci (/etc/config/network)." #~ msgid "" #~ "This form allows you to modify the content of the main travelmate " #~ "configuration file (/etc/config/travelmate)." #~ msgstr "" #~ "Ten formularz umożliwia modyfikację zawartości głównego pliku " #~ "konfiguracji travelmate (/etc/config/travelmate)." #~ msgid "" #~ "This form allows you to modify the content of the main wireless " #~ "configuration file (/etc/config/wireless)." #~ msgstr "" #~ "Ten formularz umożliwia modyfikację zawartości głównego pliku " #~ "konfiguracji bezprzewodowej (/etc/config/wireless)." #~ msgid "This step has only to be done once." #~ msgstr "Ten krok należy wykonać tylko raz." #~ msgid "Travelmate Status (Quality)" #~ msgstr "Status Travelmate (Jakość)" #~ msgid "Travelmate Version" #~ msgstr "Wersja Travelmate" #~ msgid "Up" #~ msgstr "Góra" #~ msgid "Uplink / Trigger interface" #~ msgstr "Interfejs Wysyłania/Wyzwalania" #~ msgid "Uplink BSSID" #~ msgstr "BSSID połączenia" #~ msgid "Uplink SSID" #~ msgstr "BSSID połączenia" #~ msgid "View AP QR-Codes" #~ msgstr "Wyświetl kody QR punktów dostępu" #~ msgid "View Logfile" #~ msgstr "Wyświetl plik dziennika" #~ msgid "WEP-Passphrase" #~ msgstr "Hasło WEP" #~ msgid "WPA Capabilities" #~ msgstr "Możliwości WPA" #~ msgid "WPA-Passphrase" #~ msgstr "Hasło WPA" #~ msgid "add it to the wan zone of the firewall." #~ msgstr "dodaj to do strefy WAN zapory sieciowej." #~ msgid "hidden" #~ msgstr "ukryty" #~ msgid "with SSID" #~ msgstr "z SSID"
{ "pile_set_name": "Github" }
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="System.Data.SqlClient" Version="4.4.0" /> <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" /> </ItemGroup> </Project>
{ "pile_set_name": "Github" }
#ifndef CAFFE_RNG_CPP_HPP_ #define CAFFE_RNG_CPP_HPP_ #include <algorithm> #include <iterator> #include "boost/random/mersenne_twister.hpp" #include "boost/random/uniform_int.hpp" #include "caffe/common.hpp" namespace caffe { typedef boost::mt19937 rng_t; inline rng_t* caffe_rng() { return static_cast<caffe::rng_t*>(Caffe::rng_stream().generator()); } // Fisher–Yates algorithm template <class RandomAccessIterator, class RandomGenerator> inline void shuffle(RandomAccessIterator begin, RandomAccessIterator end, RandomGenerator* gen) { typedef typename std::iterator_traits<RandomAccessIterator>::difference_type difference_type; typedef typename boost::uniform_int<difference_type> dist_type; difference_type length = std::distance(begin, end); if (length <= 0) return; for (difference_type i = length - 1; i > 0; --i) { dist_type dist(0, i); std::iter_swap(begin + i, begin + dist(*gen)); } } template <class RandomAccessIterator> inline void shuffle(RandomAccessIterator begin, RandomAccessIterator end) { shuffle(begin, end, caffe_rng()); } } // namespace caffe #endif // CAFFE_RNG_HPP_
{ "pile_set_name": "Github" }
food_manager_title_label=食物管理器 subtract_fiber_amount_label=减去膳食纤维量 whole_fiber_label=整个 half_fiber_label=一半 user_interface_lable=用户界面 favourites_label=收藏 recipes_label=食谱 default_database_label=默认数据库 search_as_i_type_label=键入时搜索 import_foods_as_note_label=列出治疗笔记中的食物 no_internet_connection=没有互联网连接。 server_response_label=服务器响应 error_label=错误 error_connecting_to_food_service_label=连接到服务时出错\!\n稍后重试。 new_food_label=新食物 name_label=名称 brand_label=品牌 serving_unit_label=单位 serving_size_label=份量 link_label=链接 carbs_label=碳水化合物 fiber_label=膳食纤维 proteins_label=蛋白质 fats_label=脂肪 calories_label=卡路里 search_food_label=搜索食物 go_button_label=转到 scan_button_label=扫描 save_as_recipe_label=另存为食谱 nutrition_facts_label=营养成分 subtract_whole_fiber=减去全部膳食纤维 subtract_half_fiber=减去一半膳食纤维 link_button_label=链接 amount_label=数量 finish_button_label=完成 cart_totals_label=购物车合计 search_recipe_label=搜索食谱 no_search_results_label=没有结果! add_recipe_label=添加食谱 edit_food_label=编辑食物
{ "pile_set_name": "Github" }
<?xml version="1.0"?> <component name="org.nuxeo.drive.auth"> <extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService" point="startURL"> <startURLPattern> <patterns> <pattern>drive_login.jsp</pattern> <pattern>drive_browser_login.jsp</pattern> </patterns> </startURLPattern> </extension> </component>
{ "pile_set_name": "Github" }
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __PERF_COUNTS_H #define __PERF_COUNTS_H #include <linux/types.h> #include <internal/xyarray.h> #include <perf/evsel.h> #include <stdbool.h> struct evsel; struct perf_counts { s8 scaled; struct perf_counts_values aggr; struct xyarray *values; struct xyarray *loaded; }; static inline struct perf_counts_values* perf_counts(struct perf_counts *counts, int cpu, int thread) { return xyarray__entry(counts->values, cpu, thread); } static inline bool perf_counts__is_loaded(struct perf_counts *counts, int cpu, int thread) { return *((bool *) xyarray__entry(counts->loaded, cpu, thread)); } static inline void perf_counts__set_loaded(struct perf_counts *counts, int cpu, int thread, bool loaded) { *((bool *) xyarray__entry(counts->loaded, cpu, thread)) = loaded; } struct perf_counts *perf_counts__new(int ncpus, int nthreads); void perf_counts__delete(struct perf_counts *counts); void perf_counts__reset(struct perf_counts *counts); void evsel__reset_counts(struct evsel *evsel); int evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads); void evsel__free_counts(struct evsel *evsel); #endif /* __PERF_COUNTS_H */
{ "pile_set_name": "Github" }
# R6QE69 - MySims Agents [Core] # Values set here will override the main Dolphin settings. [EmuState] # The Emulation State. 1 is worst, 5 is best, 0 is not set. EmulationStateId = 4 EmulationIssues = [OnLoad] # Add memory patches to be loaded once on boot here. [OnFrame] # Add memory patches to be applied every frame here. [ActionReplay] # Add action replay cheats here. [Video_Hacks] EFBToTextureEnable = False [Video_Settings] SafeTextureCacheColorSamples = 4096
{ "pile_set_name": "Github" }
{ "license": "Patch (c) by Ones & Zeros. This patch is licensed under a Creative Commons Attribution 4.0 International License. You should have received a copy of the license along with this work. If not, see <http://creativecommons.org/licenses/by/4.0/>.", "synth_version": "0.9.0", "patch_name": "OZ Some Kinda Stab", "folder_name": "Percussion", "author": "Ones & Zeros", "settings": { "amp_attack": 0.10000000149011611938, "amp_decay": 0.53085941076278686523, "amp_release": 0.30000001192092895508, "amp_sustain": 0, "arp_frequency": 2, "arp_gate": 0.36048436164855962582, "arp_octaves": 1, "arp_on": 0, "arp_pattern": 0, "arp_sync": 1, "arp_tempo": 9, "beats_per_minute": 2.0499999999999998224, "cross_modulation": 0, "cutoff": 56.33255767822265625, "delay_dry_wet": 0.072530882250815720269, "delay_feedback": 0.35486721992492675781, "delay_frequency": 2.0000002384185791016, "delay_on": 1, "delay_sync": 2, "delay_tempo": 8, "distortion_drive": 5.7422456741333007812, "distortion_mix": 1, "distortion_on": 1, "distortion_type": 0, "fil_attack": 0.41640636324882501773, "fil_decay": 0.55835211277008056641, "fil_env_depth": 24.5251007080078125, "fil_release": 1.0230472087860107422, "fil_sustain": 0, "filter_blend": 1, "filter_drive": -7.1310000000000002274, "filter_on": 1, "filter_shelf": 0, "filter_style": 0, "formant_on": 1, "formant_x": 0.80000001192092895508, "formant_y": 0.42342340946197509766, "keytrack": 0, "legato": 0, "mod_attack": 0, "mod_decay": 1.5, "mod_release": 1.5, "mod_sustain": 0.5, "mono_lfo_1_amplitude": 1, "mono_lfo_1_frequency": 1.0000002384185791016, "mono_lfo_1_retrigger": 0, "mono_lfo_1_sync": 1, "mono_lfo_1_tempo": 6, "mono_lfo_1_waveform": 0, "mono_lfo_2_amplitude": 1, "mono_lfo_2_frequency": 1.0000002384185791016, "mono_lfo_2_retrigger": 0, "mono_lfo_2_sync": 1, "mono_lfo_2_tempo": 7, "mono_lfo_2_waveform": 0, "noise_volume": 0, "num_steps": 8, "osc_1_transpose": 0, "osc_1_tune": 0, "osc_1_unison_detune": 0, "osc_1_unison_voices": 1, "osc_1_volume": 0.52135651187981491006, "osc_1_waveform": 2, "osc_2_transpose": -5.0000009536743164062, "osc_2_tune": 0, "osc_2_unison_detune": 0, "osc_2_unison_voices": 1, "osc_2_volume": 0.65976826894528661782, "osc_2_waveform": 2, "osc_feedback_amount": -0.35683578252792358398, "osc_feedback_transpose": 3, "osc_feedback_tune": 0, "pitch_bend_range": 2, "poly_lfo_amplitude": 1, "poly_lfo_frequency": 1.0000002384185791016, "poly_lfo_sync": 1, "poly_lfo_tempo": 7, "poly_lfo_waveform": 0, "polyphony": 1, "portamento": -9, "portamento_type": 0, "resonance": 0.33691433072090148926, "reverb_damping": 0.5, "reverb_dry_wet": 0.13637566174543436226, "reverb_feedback": 0.89999997615814208984, "reverb_on": 1, "step_frequency": 1.9999998807907104492, "step_seq_00": 0, "step_seq_01": 0, "step_seq_02": 0, "step_seq_03": 0, "step_seq_04": 0, "step_seq_05": 0, "step_seq_06": 0, "step_seq_07": 0, "step_seq_08": 0, "step_seq_09": 0, "step_seq_10": 0, "step_seq_11": 0, "step_seq_12": 0, "step_seq_13": 0, "step_seq_14": 0, "step_seq_15": 0, "step_seq_16": 0, "step_seq_17": 0, "step_seq_18": 0, "step_seq_19": 0, "step_seq_20": 0, "step_seq_21": 0, "step_seq_22": 0, "step_seq_23": 0, "step_seq_24": 0, "step_seq_25": 0, "step_seq_26": 0, "step_seq_27": 0, "step_seq_28": 0, "step_seq_29": 0, "step_seq_30": 0, "step_seq_31": 0, "step_sequencer_retrigger": 0, "step_sequencer_sync": 1, "step_sequencer_tempo": 7, "step_smoothing": 0, "stutter_frequency": 3.5663084983825683594, "stutter_on": 0, "stutter_resample_frequency": 3.7980601787567138672, "stutter_resample_sync": 1, "stutter_resample_tempo": 6, "stutter_softness": 0.64482414722442626953, "stutter_sync": 1, "stutter_tempo": 8, "sub_octave": 1, "sub_shuffle": 0.61972653865814208984, "sub_volume": 0.5279621495000230702, "sub_waveform": 5, "unison_1_harmonize": 0, "unison_2_harmonize": 0, "velocity_track": 0.60761690139770507812, "volume": 0.99115813111033512772, "modulations": [] } }
{ "pile_set_name": "Github" }
# Sample projects ## Building Run `pod install` in each sample project directory to set up their dependencies.
{ "pile_set_name": "Github" }
""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP857.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_map) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): return codecs.charmap_encode(input,self.errors,encoding_map)[0] class IncrementalDecoder(codecs.IncrementalDecoder): def decode(self, input, final=False): return codecs.charmap_decode(input,self.errors,decoding_table)[0] class StreamWriter(Codec,codecs.StreamWriter): pass class StreamReader(Codec,codecs.StreamReader): pass ### encodings module API def getregentry(): return codecs.CodecInfo( name='cp857', encode=Codec().encode, decode=Codec().decode, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, streamreader=StreamReader, streamwriter=StreamWriter, ) ### Decoding Map decoding_map = codecs.make_identity_dict(range(256)) decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS 0x0082: 0x00e9, # LATIN SMALL LETTER E WITH ACUTE 0x0083: 0x00e2, # LATIN SMALL LETTER A WITH CIRCUMFLEX 0x0084: 0x00e4, # LATIN SMALL LETTER A WITH DIAERESIS 0x0085: 0x00e0, # LATIN SMALL LETTER A WITH GRAVE 0x0086: 0x00e5, # LATIN SMALL LETTER A WITH RING ABOVE 0x0087: 0x00e7, # LATIN SMALL LETTER C WITH CEDILLA 0x0088: 0x00ea, # LATIN SMALL LETTER E WITH CIRCUMFLEX 0x0089: 0x00eb, # LATIN SMALL LETTER E WITH DIAERESIS 0x008a: 0x00e8, # LATIN SMALL LETTER E WITH GRAVE 0x008b: 0x00ef, # LATIN SMALL LETTER I WITH DIAERESIS 0x008c: 0x00ee, # LATIN SMALL LETTER I WITH CIRCUMFLEX 0x008d: 0x0131, # LATIN SMALL LETTER DOTLESS I 0x008e: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x008f: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE 0x0090: 0x00c9, # LATIN CAPITAL LETTER E WITH ACUTE 0x0091: 0x00e6, # LATIN SMALL LIGATURE AE 0x0092: 0x00c6, # LATIN CAPITAL LIGATURE AE 0x0093: 0x00f4, # LATIN SMALL LETTER O WITH CIRCUMFLEX 0x0094: 0x00f6, # LATIN SMALL LETTER O WITH DIAERESIS 0x0095: 0x00f2, # LATIN SMALL LETTER O WITH GRAVE 0x0096: 0x00fb, # LATIN SMALL LETTER U WITH CIRCUMFLEX 0x0097: 0x00f9, # LATIN SMALL LETTER U WITH GRAVE 0x0098: 0x0130, # LATIN CAPITAL LETTER I WITH DOT ABOVE 0x0099: 0x00d6, # LATIN CAPITAL LETTER O WITH DIAERESIS 0x009a: 0x00dc, # LATIN CAPITAL LETTER U WITH DIAERESIS 0x009b: 0x00f8, # LATIN SMALL LETTER O WITH STROKE 0x009c: 0x00a3, # POUND SIGN 0x009d: 0x00d8, # LATIN CAPITAL LETTER O WITH STROKE 0x009e: 0x015e, # LATIN CAPITAL LETTER S WITH CEDILLA 0x009f: 0x015f, # LATIN SMALL LETTER S WITH CEDILLA 0x00a0: 0x00e1, # LATIN SMALL LETTER A WITH ACUTE 0x00a1: 0x00ed, # LATIN SMALL LETTER I WITH ACUTE 0x00a2: 0x00f3, # LATIN SMALL LETTER O WITH ACUTE 0x00a3: 0x00fa, # LATIN SMALL LETTER U WITH ACUTE 0x00a4: 0x00f1, # LATIN SMALL LETTER N WITH TILDE 0x00a5: 0x00d1, # LATIN CAPITAL LETTER N WITH TILDE 0x00a6: 0x011e, # LATIN CAPITAL LETTER G WITH BREVE 0x00a7: 0x011f, # LATIN SMALL LETTER G WITH BREVE 0x00a8: 0x00bf, # INVERTED QUESTION MARK 0x00a9: 0x00ae, # REGISTERED SIGN 0x00aa: 0x00ac, # NOT SIGN 0x00ab: 0x00bd, # VULGAR FRACTION ONE HALF 0x00ac: 0x00bc, # VULGAR FRACTION ONE QUARTER 0x00ad: 0x00a1, # INVERTED EXCLAMATION MARK 0x00ae: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK 0x00af: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK 0x00b0: 0x2591, # LIGHT SHADE 0x00b1: 0x2592, # MEDIUM SHADE 0x00b2: 0x2593, # DARK SHADE 0x00b3: 0x2502, # BOX DRAWINGS LIGHT VERTICAL 0x00b4: 0x2524, # BOX DRAWINGS LIGHT VERTICAL AND LEFT 0x00b5: 0x00c1, # LATIN CAPITAL LETTER A WITH ACUTE 0x00b6: 0x00c2, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX 0x00b7: 0x00c0, # LATIN CAPITAL LETTER A WITH GRAVE 0x00b8: 0x00a9, # COPYRIGHT SIGN 0x00b9: 0x2563, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT 0x00ba: 0x2551, # BOX DRAWINGS DOUBLE VERTICAL 0x00bb: 0x2557, # BOX DRAWINGS DOUBLE DOWN AND LEFT 0x00bc: 0x255d, # BOX DRAWINGS DOUBLE UP AND LEFT 0x00bd: 0x00a2, # CENT SIGN 0x00be: 0x00a5, # YEN SIGN 0x00bf: 0x2510, # BOX DRAWINGS LIGHT DOWN AND LEFT 0x00c0: 0x2514, # BOX DRAWINGS LIGHT UP AND RIGHT 0x00c1: 0x2534, # BOX DRAWINGS LIGHT UP AND HORIZONTAL 0x00c2: 0x252c, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL 0x00c3: 0x251c, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT 0x00c4: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL 0x00c5: 0x253c, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL 0x00c6: 0x00e3, # LATIN SMALL LETTER A WITH TILDE 0x00c7: 0x00c3, # LATIN CAPITAL LETTER A WITH TILDE 0x00c8: 0x255a, # BOX DRAWINGS DOUBLE UP AND RIGHT 0x00c9: 0x2554, # BOX DRAWINGS DOUBLE DOWN AND RIGHT 0x00ca: 0x2569, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL 0x00cb: 0x2566, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL 0x00cc: 0x2560, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT 0x00cd: 0x2550, # BOX DRAWINGS DOUBLE HORIZONTAL 0x00ce: 0x256c, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL 0x00cf: 0x00a4, # CURRENCY SIGN 0x00d0: 0x00ba, # MASCULINE ORDINAL INDICATOR 0x00d1: 0x00aa, # FEMININE ORDINAL INDICATOR 0x00d2: 0x00ca, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX 0x00d3: 0x00cb, # LATIN CAPITAL LETTER E WITH DIAERESIS 0x00d4: 0x00c8, # LATIN CAPITAL LETTER E WITH GRAVE 0x00d5: None, # UNDEFINED 0x00d6: 0x00cd, # LATIN CAPITAL LETTER I WITH ACUTE 0x00d7: 0x00ce, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX 0x00d8: 0x00cf, # LATIN CAPITAL LETTER I WITH DIAERESIS 0x00d9: 0x2518, # BOX DRAWINGS LIGHT UP AND LEFT 0x00da: 0x250c, # BOX DRAWINGS LIGHT DOWN AND RIGHT 0x00db: 0x2588, # FULL BLOCK 0x00dc: 0x2584, # LOWER HALF BLOCK 0x00dd: 0x00a6, # BROKEN BAR 0x00de: 0x00cc, # LATIN CAPITAL LETTER I WITH GRAVE 0x00df: 0x2580, # UPPER HALF BLOCK 0x00e0: 0x00d3, # LATIN CAPITAL LETTER O WITH ACUTE 0x00e1: 0x00df, # LATIN SMALL LETTER SHARP S 0x00e2: 0x00d4, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX 0x00e3: 0x00d2, # LATIN CAPITAL LETTER O WITH GRAVE 0x00e4: 0x00f5, # LATIN SMALL LETTER O WITH TILDE 0x00e5: 0x00d5, # LATIN CAPITAL LETTER O WITH TILDE 0x00e6: 0x00b5, # MICRO SIGN 0x00e7: None, # UNDEFINED 0x00e8: 0x00d7, # MULTIPLICATION SIGN 0x00e9: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ea: 0x00db, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX 0x00eb: 0x00d9, # LATIN CAPITAL LETTER U WITH GRAVE 0x00ed: 0x00ff, # LATIN SMALL LETTER Y WITH DIAERESIS 0x00ee: 0x00af, # MACRON 0x00ef: 0x00b4, # ACUTE ACCENT 0x00f0: 0x00ad, # SOFT HYPHEN 0x00f1: 0x00b1, # PLUS-MINUS SIGN 0x00f2: None, # UNDEFINED 0x00f3: 0x00be, # VULGAR FRACTION THREE QUARTERS 0x00f4: 0x00b6, # PILCROW SIGN 0x00f5: 0x00a7, # SECTION SIGN 0x00f6: 0x00f7, # DIVISION SIGN 0x00f7: 0x00b8, # CEDILLA 0x00f8: 0x00b0, # DEGREE SIGN 0x00f9: 0x00a8, # DIAERESIS 0x00fa: 0x00b7, # MIDDLE DOT 0x00fb: 0x00b9, # SUPERSCRIPT ONE 0x00fc: 0x00b3, # SUPERSCRIPT THREE 0x00fd: 0x00b2, # SUPERSCRIPT TWO 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE }) ### Decoding Table decoding_table = ( u'\x00' # 0x0000 -> NULL u'\x01' # 0x0001 -> START OF HEADING u'\x02' # 0x0002 -> START OF TEXT u'\x03' # 0x0003 -> END OF TEXT u'\x04' # 0x0004 -> END OF TRANSMISSION u'\x05' # 0x0005 -> ENQUIRY u'\x06' # 0x0006 -> ACKNOWLEDGE u'\x07' # 0x0007 -> BELL u'\x08' # 0x0008 -> BACKSPACE u'\t' # 0x0009 -> HORIZONTAL TABULATION u'\n' # 0x000a -> LINE FEED u'\x0b' # 0x000b -> VERTICAL TABULATION u'\x0c' # 0x000c -> FORM FEED u'\r' # 0x000d -> CARRIAGE RETURN u'\x0e' # 0x000e -> SHIFT OUT u'\x0f' # 0x000f -> SHIFT IN u'\x10' # 0x0010 -> DATA LINK ESCAPE u'\x11' # 0x0011 -> DEVICE CONTROL ONE u'\x12' # 0x0012 -> DEVICE CONTROL TWO u'\x13' # 0x0013 -> DEVICE CONTROL THREE u'\x14' # 0x0014 -> DEVICE CONTROL FOUR u'\x15' # 0x0015 -> NEGATIVE ACKNOWLEDGE u'\x16' # 0x0016 -> SYNCHRONOUS IDLE u'\x17' # 0x0017 -> END OF TRANSMISSION BLOCK u'\x18' # 0x0018 -> CANCEL u'\x19' # 0x0019 -> END OF MEDIUM u'\x1a' # 0x001a -> SUBSTITUTE u'\x1b' # 0x001b -> ESCAPE u'\x1c' # 0x001c -> FILE SEPARATOR u'\x1d' # 0x001d -> GROUP SEPARATOR u'\x1e' # 0x001e -> RECORD SEPARATOR u'\x1f' # 0x001f -> UNIT SEPARATOR u' ' # 0x0020 -> SPACE u'!' # 0x0021 -> EXCLAMATION MARK u'"' # 0x0022 -> QUOTATION MARK u'#' # 0x0023 -> NUMBER SIGN u'$' # 0x0024 -> DOLLAR SIGN u'%' # 0x0025 -> PERCENT SIGN u'&' # 0x0026 -> AMPERSAND u"'" # 0x0027 -> APOSTROPHE u'(' # 0x0028 -> LEFT PARENTHESIS u')' # 0x0029 -> RIGHT PARENTHESIS u'*' # 0x002a -> ASTERISK u'+' # 0x002b -> PLUS SIGN u',' # 0x002c -> COMMA u'-' # 0x002d -> HYPHEN-MINUS u'.' # 0x002e -> FULL STOP u'/' # 0x002f -> SOLIDUS u'0' # 0x0030 -> DIGIT ZERO u'1' # 0x0031 -> DIGIT ONE u'2' # 0x0032 -> DIGIT TWO u'3' # 0x0033 -> DIGIT THREE u'4' # 0x0034 -> DIGIT FOUR u'5' # 0x0035 -> DIGIT FIVE u'6' # 0x0036 -> DIGIT SIX u'7' # 0x0037 -> DIGIT SEVEN u'8' # 0x0038 -> DIGIT EIGHT u'9' # 0x0039 -> DIGIT NINE u':' # 0x003a -> COLON u';' # 0x003b -> SEMICOLON u'<' # 0x003c -> LESS-THAN SIGN u'=' # 0x003d -> EQUALS SIGN u'>' # 0x003e -> GREATER-THAN SIGN u'?' # 0x003f -> QUESTION MARK u'@' # 0x0040 -> COMMERCIAL AT u'A' # 0x0041 -> LATIN CAPITAL LETTER A u'B' # 0x0042 -> LATIN CAPITAL LETTER B u'C' # 0x0043 -> LATIN CAPITAL LETTER C u'D' # 0x0044 -> LATIN CAPITAL LETTER D u'E' # 0x0045 -> LATIN CAPITAL LETTER E u'F' # 0x0046 -> LATIN CAPITAL LETTER F u'G' # 0x0047 -> LATIN CAPITAL LETTER G u'H' # 0x0048 -> LATIN CAPITAL LETTER H u'I' # 0x0049 -> LATIN CAPITAL LETTER I u'J' # 0x004a -> LATIN CAPITAL LETTER J u'K' # 0x004b -> LATIN CAPITAL LETTER K u'L' # 0x004c -> LATIN CAPITAL LETTER L u'M' # 0x004d -> LATIN CAPITAL LETTER M u'N' # 0x004e -> LATIN CAPITAL LETTER N u'O' # 0x004f -> LATIN CAPITAL LETTER O u'P' # 0x0050 -> LATIN CAPITAL LETTER P u'Q' # 0x0051 -> LATIN CAPITAL LETTER Q u'R' # 0x0052 -> LATIN CAPITAL LETTER R u'S' # 0x0053 -> LATIN CAPITAL LETTER S u'T' # 0x0054 -> LATIN CAPITAL LETTER T u'U' # 0x0055 -> LATIN CAPITAL LETTER U u'V' # 0x0056 -> LATIN CAPITAL LETTER V u'W' # 0x0057 -> LATIN CAPITAL LETTER W u'X' # 0x0058 -> LATIN CAPITAL LETTER X u'Y' # 0x0059 -> LATIN CAPITAL LETTER Y u'Z' # 0x005a -> LATIN CAPITAL LETTER Z u'[' # 0x005b -> LEFT SQUARE BRACKET u'\\' # 0x005c -> REVERSE SOLIDUS u']' # 0x005d -> RIGHT SQUARE BRACKET u'^' # 0x005e -> CIRCUMFLEX ACCENT u'_' # 0x005f -> LOW LINE u'`' # 0x0060 -> GRAVE ACCENT u'a' # 0x0061 -> LATIN SMALL LETTER A u'b' # 0x0062 -> LATIN SMALL LETTER B u'c' # 0x0063 -> LATIN SMALL LETTER C u'd' # 0x0064 -> LATIN SMALL LETTER D u'e' # 0x0065 -> LATIN SMALL LETTER E u'f' # 0x0066 -> LATIN SMALL LETTER F u'g' # 0x0067 -> LATIN SMALL LETTER G u'h' # 0x0068 -> LATIN SMALL LETTER H u'i' # 0x0069 -> LATIN SMALL LETTER I u'j' # 0x006a -> LATIN SMALL LETTER J u'k' # 0x006b -> LATIN SMALL LETTER K u'l' # 0x006c -> LATIN SMALL LETTER L u'm' # 0x006d -> LATIN SMALL LETTER M u'n' # 0x006e -> LATIN SMALL LETTER N u'o' # 0x006f -> LATIN SMALL LETTER O u'p' # 0x0070 -> LATIN SMALL LETTER P u'q' # 0x0071 -> LATIN SMALL LETTER Q u'r' # 0x0072 -> LATIN SMALL LETTER R u's' # 0x0073 -> LATIN SMALL LETTER S u't' # 0x0074 -> LATIN SMALL LETTER T u'u' # 0x0075 -> LATIN SMALL LETTER U u'v' # 0x0076 -> LATIN SMALL LETTER V u'w' # 0x0077 -> LATIN SMALL LETTER W u'x' # 0x0078 -> LATIN SMALL LETTER X u'y' # 0x0079 -> LATIN SMALL LETTER Y u'z' # 0x007a -> LATIN SMALL LETTER Z u'{' # 0x007b -> LEFT CURLY BRACKET u'|' # 0x007c -> VERTICAL LINE u'}' # 0x007d -> RIGHT CURLY BRACKET u'~' # 0x007e -> TILDE u'\x7f' # 0x007f -> DELETE u'\xc7' # 0x0080 -> LATIN CAPITAL LETTER C WITH CEDILLA u'\xfc' # 0x0081 -> LATIN SMALL LETTER U WITH DIAERESIS u'\xe9' # 0x0082 -> LATIN SMALL LETTER E WITH ACUTE u'\xe2' # 0x0083 -> LATIN SMALL LETTER A WITH CIRCUMFLEX u'\xe4' # 0x0084 -> LATIN SMALL LETTER A WITH DIAERESIS u'\xe0' # 0x0085 -> LATIN SMALL LETTER A WITH GRAVE u'\xe5' # 0x0086 -> LATIN SMALL LETTER A WITH RING ABOVE u'\xe7' # 0x0087 -> LATIN SMALL LETTER C WITH CEDILLA u'\xea' # 0x0088 -> LATIN SMALL LETTER E WITH CIRCUMFLEX u'\xeb' # 0x0089 -> LATIN SMALL LETTER E WITH DIAERESIS u'\xe8' # 0x008a -> LATIN SMALL LETTER E WITH GRAVE u'\xef' # 0x008b -> LATIN SMALL LETTER I WITH DIAERESIS u'\xee' # 0x008c -> LATIN SMALL LETTER I WITH CIRCUMFLEX u'\u0131' # 0x008d -> LATIN SMALL LETTER DOTLESS I u'\xc4' # 0x008e -> LATIN CAPITAL LETTER A WITH DIAERESIS u'\xc5' # 0x008f -> LATIN CAPITAL LETTER A WITH RING ABOVE u'\xc9' # 0x0090 -> LATIN CAPITAL LETTER E WITH ACUTE u'\xe6' # 0x0091 -> LATIN SMALL LIGATURE AE u'\xc6' # 0x0092 -> LATIN CAPITAL LIGATURE AE u'\xf4' # 0x0093 -> LATIN SMALL LETTER O WITH CIRCUMFLEX u'\xf6' # 0x0094 -> LATIN SMALL LETTER O WITH DIAERESIS u'\xf2' # 0x0095 -> LATIN SMALL LETTER O WITH GRAVE u'\xfb' # 0x0096 -> LATIN SMALL LETTER U WITH CIRCUMFLEX u'\xf9' # 0x0097 -> LATIN SMALL LETTER U WITH GRAVE u'\u0130' # 0x0098 -> LATIN CAPITAL LETTER I WITH DOT ABOVE u'\xd6' # 0x0099 -> LATIN CAPITAL LETTER O WITH DIAERESIS u'\xdc' # 0x009a -> LATIN CAPITAL LETTER U WITH DIAERESIS u'\xf8' # 0x009b -> LATIN SMALL LETTER O WITH STROKE u'\xa3' # 0x009c -> POUND SIGN u'\xd8' # 0x009d -> LATIN CAPITAL LETTER O WITH STROKE u'\u015e' # 0x009e -> LATIN CAPITAL LETTER S WITH CEDILLA u'\u015f' # 0x009f -> LATIN SMALL LETTER S WITH CEDILLA u'\xe1' # 0x00a0 -> LATIN SMALL LETTER A WITH ACUTE u'\xed' # 0x00a1 -> LATIN SMALL LETTER I WITH ACUTE u'\xf3' # 0x00a2 -> LATIN SMALL LETTER O WITH ACUTE u'\xfa' # 0x00a3 -> LATIN SMALL LETTER U WITH ACUTE u'\xf1' # 0x00a4 -> LATIN SMALL LETTER N WITH TILDE u'\xd1' # 0x00a5 -> LATIN CAPITAL LETTER N WITH TILDE u'\u011e' # 0x00a6 -> LATIN CAPITAL LETTER G WITH BREVE u'\u011f' # 0x00a7 -> LATIN SMALL LETTER G WITH BREVE u'\xbf' # 0x00a8 -> INVERTED QUESTION MARK u'\xae' # 0x00a9 -> REGISTERED SIGN u'\xac' # 0x00aa -> NOT SIGN u'\xbd' # 0x00ab -> VULGAR FRACTION ONE HALF u'\xbc' # 0x00ac -> VULGAR FRACTION ONE QUARTER u'\xa1' # 0x00ad -> INVERTED EXCLAMATION MARK u'\xab' # 0x00ae -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK u'\xbb' # 0x00af -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK u'\u2591' # 0x00b0 -> LIGHT SHADE u'\u2592' # 0x00b1 -> MEDIUM SHADE u'\u2593' # 0x00b2 -> DARK SHADE u'\u2502' # 0x00b3 -> BOX DRAWINGS LIGHT VERTICAL u'\u2524' # 0x00b4 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT u'\xc1' # 0x00b5 -> LATIN CAPITAL LETTER A WITH ACUTE u'\xc2' # 0x00b6 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX u'\xc0' # 0x00b7 -> LATIN CAPITAL LETTER A WITH GRAVE u'\xa9' # 0x00b8 -> COPYRIGHT SIGN u'\u2563' # 0x00b9 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT u'\u2551' # 0x00ba -> BOX DRAWINGS DOUBLE VERTICAL u'\u2557' # 0x00bb -> BOX DRAWINGS DOUBLE DOWN AND LEFT u'\u255d' # 0x00bc -> BOX DRAWINGS DOUBLE UP AND LEFT u'\xa2' # 0x00bd -> CENT SIGN u'\xa5' # 0x00be -> YEN SIGN u'\u2510' # 0x00bf -> BOX DRAWINGS LIGHT DOWN AND LEFT u'\u2514' # 0x00c0 -> BOX DRAWINGS LIGHT UP AND RIGHT u'\u2534' # 0x00c1 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL u'\u252c' # 0x00c2 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL u'\u251c' # 0x00c3 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT u'\u2500' # 0x00c4 -> BOX DRAWINGS LIGHT HORIZONTAL u'\u253c' # 0x00c5 -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL u'\xe3' # 0x00c6 -> LATIN SMALL LETTER A WITH TILDE u'\xc3' # 0x00c7 -> LATIN CAPITAL LETTER A WITH TILDE u'\u255a' # 0x00c8 -> BOX DRAWINGS DOUBLE UP AND RIGHT u'\u2554' # 0x00c9 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT u'\u2569' # 0x00ca -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL u'\u2566' # 0x00cb -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL u'\u2560' # 0x00cc -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT u'\u2550' # 0x00cd -> BOX DRAWINGS DOUBLE HORIZONTAL u'\u256c' # 0x00ce -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL u'\xa4' # 0x00cf -> CURRENCY SIGN u'\xba' # 0x00d0 -> MASCULINE ORDINAL INDICATOR u'\xaa' # 0x00d1 -> FEMININE ORDINAL INDICATOR u'\xca' # 0x00d2 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX u'\xcb' # 0x00d3 -> LATIN CAPITAL LETTER E WITH DIAERESIS u'\xc8' # 0x00d4 -> LATIN CAPITAL LETTER E WITH GRAVE u'\ufffe' # 0x00d5 -> UNDEFINED u'\xcd' # 0x00d6 -> LATIN CAPITAL LETTER I WITH ACUTE u'\xce' # 0x00d7 -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX u'\xcf' # 0x00d8 -> LATIN CAPITAL LETTER I WITH DIAERESIS u'\u2518' # 0x00d9 -> BOX DRAWINGS LIGHT UP AND LEFT u'\u250c' # 0x00da -> BOX DRAWINGS LIGHT DOWN AND RIGHT u'\u2588' # 0x00db -> FULL BLOCK u'\u2584' # 0x00dc -> LOWER HALF BLOCK u'\xa6' # 0x00dd -> BROKEN BAR u'\xcc' # 0x00de -> LATIN CAPITAL LETTER I WITH GRAVE u'\u2580' # 0x00df -> UPPER HALF BLOCK u'\xd3' # 0x00e0 -> LATIN CAPITAL LETTER O WITH ACUTE u'\xdf' # 0x00e1 -> LATIN SMALL LETTER SHARP S u'\xd4' # 0x00e2 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX u'\xd2' # 0x00e3 -> LATIN CAPITAL LETTER O WITH GRAVE u'\xf5' # 0x00e4 -> LATIN SMALL LETTER O WITH TILDE u'\xd5' # 0x00e5 -> LATIN CAPITAL LETTER O WITH TILDE u'\xb5' # 0x00e6 -> MICRO SIGN u'\ufffe' # 0x00e7 -> UNDEFINED u'\xd7' # 0x00e8 -> MULTIPLICATION SIGN u'\xda' # 0x00e9 -> LATIN CAPITAL LETTER U WITH ACUTE u'\xdb' # 0x00ea -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX u'\xd9' # 0x00eb -> LATIN CAPITAL LETTER U WITH GRAVE u'\xec' # 0x00ec -> LATIN SMALL LETTER I WITH GRAVE u'\xff' # 0x00ed -> LATIN SMALL LETTER Y WITH DIAERESIS u'\xaf' # 0x00ee -> MACRON u'\xb4' # 0x00ef -> ACUTE ACCENT u'\xad' # 0x00f0 -> SOFT HYPHEN u'\xb1' # 0x00f1 -> PLUS-MINUS SIGN u'\ufffe' # 0x00f2 -> UNDEFINED u'\xbe' # 0x00f3 -> VULGAR FRACTION THREE QUARTERS u'\xb6' # 0x00f4 -> PILCROW SIGN u'\xa7' # 0x00f5 -> SECTION SIGN u'\xf7' # 0x00f6 -> DIVISION SIGN u'\xb8' # 0x00f7 -> CEDILLA u'\xb0' # 0x00f8 -> DEGREE SIGN u'\xa8' # 0x00f9 -> DIAERESIS u'\xb7' # 0x00fa -> MIDDLE DOT u'\xb9' # 0x00fb -> SUPERSCRIPT ONE u'\xb3' # 0x00fc -> SUPERSCRIPT THREE u'\xb2' # 0x00fd -> SUPERSCRIPT TWO u'\u25a0' # 0x00fe -> BLACK SQUARE u'\xa0' # 0x00ff -> NO-BREAK SPACE ) ### Encoding Map encoding_map = { 0x0000: 0x0000, # NULL 0x0001: 0x0001, # START OF HEADING 0x0002: 0x0002, # START OF TEXT 0x0003: 0x0003, # END OF TEXT 0x0004: 0x0004, # END OF TRANSMISSION 0x0005: 0x0005, # ENQUIRY 0x0006: 0x0006, # ACKNOWLEDGE 0x0007: 0x0007, # BELL 0x0008: 0x0008, # BACKSPACE 0x0009: 0x0009, # HORIZONTAL TABULATION 0x000a: 0x000a, # LINE FEED 0x000b: 0x000b, # VERTICAL TABULATION 0x000c: 0x000c, # FORM FEED 0x000d: 0x000d, # CARRIAGE RETURN 0x000e: 0x000e, # SHIFT OUT 0x000f: 0x000f, # SHIFT IN 0x0010: 0x0010, # DATA LINK ESCAPE 0x0011: 0x0011, # DEVICE CONTROL ONE 0x0012: 0x0012, # DEVICE CONTROL TWO 0x0013: 0x0013, # DEVICE CONTROL THREE 0x0014: 0x0014, # DEVICE CONTROL FOUR 0x0015: 0x0015, # NEGATIVE ACKNOWLEDGE 0x0016: 0x0016, # SYNCHRONOUS IDLE 0x0017: 0x0017, # END OF TRANSMISSION BLOCK 0x0018: 0x0018, # CANCEL 0x0019: 0x0019, # END OF MEDIUM 0x001a: 0x001a, # SUBSTITUTE 0x001b: 0x001b, # ESCAPE 0x001c: 0x001c, # FILE SEPARATOR 0x001d: 0x001d, # GROUP SEPARATOR 0x001e: 0x001e, # RECORD SEPARATOR 0x001f: 0x001f, # UNIT SEPARATOR 0x0020: 0x0020, # SPACE 0x0021: 0x0021, # EXCLAMATION MARK 0x0022: 0x0022, # QUOTATION MARK 0x0023: 0x0023, # NUMBER SIGN 0x0024: 0x0024, # DOLLAR SIGN 0x0025: 0x0025, # PERCENT SIGN 0x0026: 0x0026, # AMPERSAND 0x0027: 0x0027, # APOSTROPHE 0x0028: 0x0028, # LEFT PARENTHESIS 0x0029: 0x0029, # RIGHT PARENTHESIS 0x002a: 0x002a, # ASTERISK 0x002b: 0x002b, # PLUS SIGN 0x002c: 0x002c, # COMMA 0x002d: 0x002d, # HYPHEN-MINUS 0x002e: 0x002e, # FULL STOP 0x002f: 0x002f, # SOLIDUS 0x0030: 0x0030, # DIGIT ZERO 0x0031: 0x0031, # DIGIT ONE 0x0032: 0x0032, # DIGIT TWO 0x0033: 0x0033, # DIGIT THREE 0x0034: 0x0034, # DIGIT FOUR 0x0035: 0x0035, # DIGIT FIVE 0x0036: 0x0036, # DIGIT SIX 0x0037: 0x0037, # DIGIT SEVEN 0x0038: 0x0038, # DIGIT EIGHT 0x0039: 0x0039, # DIGIT NINE 0x003a: 0x003a, # COLON 0x003b: 0x003b, # SEMICOLON 0x003c: 0x003c, # LESS-THAN SIGN 0x003d: 0x003d, # EQUALS SIGN 0x003e: 0x003e, # GREATER-THAN SIGN 0x003f: 0x003f, # QUESTION MARK 0x0040: 0x0040, # COMMERCIAL AT 0x0041: 0x0041, # LATIN CAPITAL LETTER A 0x0042: 0x0042, # LATIN CAPITAL LETTER B 0x0043: 0x0043, # LATIN CAPITAL LETTER C 0x0044: 0x0044, # LATIN CAPITAL LETTER D 0x0045: 0x0045, # LATIN CAPITAL LETTER E 0x0046: 0x0046, # LATIN CAPITAL LETTER F 0x0047: 0x0047, # LATIN CAPITAL LETTER G 0x0048: 0x0048, # LATIN CAPITAL LETTER H 0x0049: 0x0049, # LATIN CAPITAL LETTER I 0x004a: 0x004a, # LATIN CAPITAL LETTER J 0x004b: 0x004b, # LATIN CAPITAL LETTER K 0x004c: 0x004c, # LATIN CAPITAL LETTER L 0x004d: 0x004d, # LATIN CAPITAL LETTER M 0x004e: 0x004e, # LATIN CAPITAL LETTER N 0x004f: 0x004f, # LATIN CAPITAL LETTER O 0x0050: 0x0050, # LATIN CAPITAL LETTER P 0x0051: 0x0051, # LATIN CAPITAL LETTER Q 0x0052: 0x0052, # LATIN CAPITAL LETTER R 0x0053: 0x0053, # LATIN CAPITAL LETTER S 0x0054: 0x0054, # LATIN CAPITAL LETTER T 0x0055: 0x0055, # LATIN CAPITAL LETTER U 0x0056: 0x0056, # LATIN CAPITAL LETTER V 0x0057: 0x0057, # LATIN CAPITAL LETTER W 0x0058: 0x0058, # LATIN CAPITAL LETTER X 0x0059: 0x0059, # LATIN CAPITAL LETTER Y 0x005a: 0x005a, # LATIN CAPITAL LETTER Z 0x005b: 0x005b, # LEFT SQUARE BRACKET 0x005c: 0x005c, # REVERSE SOLIDUS 0x005d: 0x005d, # RIGHT SQUARE BRACKET 0x005e: 0x005e, # CIRCUMFLEX ACCENT 0x005f: 0x005f, # LOW LINE 0x0060: 0x0060, # GRAVE ACCENT 0x0061: 0x0061, # LATIN SMALL LETTER A 0x0062: 0x0062, # LATIN SMALL LETTER B 0x0063: 0x0063, # LATIN SMALL LETTER C 0x0064: 0x0064, # LATIN SMALL LETTER D 0x0065: 0x0065, # LATIN SMALL LETTER E 0x0066: 0x0066, # LATIN SMALL LETTER F 0x0067: 0x0067, # LATIN SMALL LETTER G 0x0068: 0x0068, # LATIN SMALL LETTER H 0x0069: 0x0069, # LATIN SMALL LETTER I 0x006a: 0x006a, # LATIN SMALL LETTER J 0x006b: 0x006b, # LATIN SMALL LETTER K 0x006c: 0x006c, # LATIN SMALL LETTER L 0x006d: 0x006d, # LATIN SMALL LETTER M 0x006e: 0x006e, # LATIN SMALL LETTER N 0x006f: 0x006f, # LATIN SMALL LETTER O 0x0070: 0x0070, # LATIN SMALL LETTER P 0x0071: 0x0071, # LATIN SMALL LETTER Q 0x0072: 0x0072, # LATIN SMALL LETTER R 0x0073: 0x0073, # LATIN SMALL LETTER S 0x0074: 0x0074, # LATIN SMALL LETTER T 0x0075: 0x0075, # LATIN SMALL LETTER U 0x0076: 0x0076, # LATIN SMALL LETTER V 0x0077: 0x0077, # LATIN SMALL LETTER W 0x0078: 0x0078, # LATIN SMALL LETTER X 0x0079: 0x0079, # LATIN SMALL LETTER Y 0x007a: 0x007a, # LATIN SMALL LETTER Z 0x007b: 0x007b, # LEFT CURLY BRACKET 0x007c: 0x007c, # VERTICAL LINE 0x007d: 0x007d, # RIGHT CURLY BRACKET 0x007e: 0x007e, # TILDE 0x007f: 0x007f, # DELETE 0x00a0: 0x00ff, # NO-BREAK SPACE 0x00a1: 0x00ad, # INVERTED EXCLAMATION MARK 0x00a2: 0x00bd, # CENT SIGN 0x00a3: 0x009c, # POUND SIGN 0x00a4: 0x00cf, # CURRENCY SIGN 0x00a5: 0x00be, # YEN SIGN 0x00a6: 0x00dd, # BROKEN BAR 0x00a7: 0x00f5, # SECTION SIGN 0x00a8: 0x00f9, # DIAERESIS 0x00a9: 0x00b8, # COPYRIGHT SIGN 0x00aa: 0x00d1, # FEMININE ORDINAL INDICATOR 0x00ab: 0x00ae, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK 0x00ac: 0x00aa, # NOT SIGN 0x00ad: 0x00f0, # SOFT HYPHEN 0x00ae: 0x00a9, # REGISTERED SIGN 0x00af: 0x00ee, # MACRON 0x00b0: 0x00f8, # DEGREE SIGN 0x00b1: 0x00f1, # PLUS-MINUS SIGN 0x00b2: 0x00fd, # SUPERSCRIPT TWO 0x00b3: 0x00fc, # SUPERSCRIPT THREE 0x00b4: 0x00ef, # ACUTE ACCENT 0x00b5: 0x00e6, # MICRO SIGN 0x00b6: 0x00f4, # PILCROW SIGN 0x00b7: 0x00fa, # MIDDLE DOT 0x00b8: 0x00f7, # CEDILLA 0x00b9: 0x00fb, # SUPERSCRIPT ONE 0x00ba: 0x00d0, # MASCULINE ORDINAL INDICATOR 0x00bb: 0x00af, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK 0x00bc: 0x00ac, # VULGAR FRACTION ONE QUARTER 0x00bd: 0x00ab, # VULGAR FRACTION ONE HALF 0x00be: 0x00f3, # VULGAR FRACTION THREE QUARTERS 0x00bf: 0x00a8, # INVERTED QUESTION MARK 0x00c0: 0x00b7, # LATIN CAPITAL LETTER A WITH GRAVE 0x00c1: 0x00b5, # LATIN CAPITAL LETTER A WITH ACUTE 0x00c2: 0x00b6, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX 0x00c3: 0x00c7, # LATIN CAPITAL LETTER A WITH TILDE 0x00c4: 0x008e, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x00c5: 0x008f, # LATIN CAPITAL LETTER A WITH RING ABOVE 0x00c6: 0x0092, # LATIN CAPITAL LIGATURE AE 0x00c7: 0x0080, # LATIN CAPITAL LETTER C WITH CEDILLA 0x00c8: 0x00d4, # LATIN CAPITAL LETTER E WITH GRAVE 0x00c9: 0x0090, # LATIN CAPITAL LETTER E WITH ACUTE 0x00ca: 0x00d2, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX 0x00cb: 0x00d3, # LATIN CAPITAL LETTER E WITH DIAERESIS 0x00cc: 0x00de, # LATIN CAPITAL LETTER I WITH GRAVE 0x00cd: 0x00d6, # LATIN CAPITAL LETTER I WITH ACUTE 0x00ce: 0x00d7, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX 0x00cf: 0x00d8, # LATIN CAPITAL LETTER I WITH DIAERESIS 0x00d1: 0x00a5, # LATIN CAPITAL LETTER N WITH TILDE 0x00d2: 0x00e3, # LATIN CAPITAL LETTER O WITH GRAVE 0x00d3: 0x00e0, # LATIN CAPITAL LETTER O WITH ACUTE 0x00d4: 0x00e2, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX 0x00d5: 0x00e5, # LATIN CAPITAL LETTER O WITH TILDE 0x00d6: 0x0099, # LATIN CAPITAL LETTER O WITH DIAERESIS 0x00d7: 0x00e8, # MULTIPLICATION SIGN 0x00d8: 0x009d, # LATIN CAPITAL LETTER O WITH STROKE 0x00d9: 0x00eb, # LATIN CAPITAL LETTER U WITH GRAVE 0x00da: 0x00e9, # LATIN CAPITAL LETTER U WITH ACUTE 0x00db: 0x00ea, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX 0x00dc: 0x009a, # LATIN CAPITAL LETTER U WITH DIAERESIS 0x00df: 0x00e1, # LATIN SMALL LETTER SHARP S 0x00e0: 0x0085, # LATIN SMALL LETTER A WITH GRAVE 0x00e1: 0x00a0, # LATIN SMALL LETTER A WITH ACUTE 0x00e2: 0x0083, # LATIN SMALL LETTER A WITH CIRCUMFLEX 0x00e3: 0x00c6, # LATIN SMALL LETTER A WITH TILDE 0x00e4: 0x0084, # LATIN SMALL LETTER A WITH DIAERESIS 0x00e5: 0x0086, # LATIN SMALL LETTER A WITH RING ABOVE 0x00e6: 0x0091, # LATIN SMALL LIGATURE AE 0x00e7: 0x0087, # LATIN SMALL LETTER C WITH CEDILLA 0x00e8: 0x008a, # LATIN SMALL LETTER E WITH GRAVE 0x00e9: 0x0082, # LATIN SMALL LETTER E WITH ACUTE 0x00ea: 0x0088, # LATIN SMALL LETTER E WITH CIRCUMFLEX 0x00eb: 0x0089, # LATIN SMALL LETTER E WITH DIAERESIS 0x00ec: 0x00ec, # LATIN SMALL LETTER I WITH GRAVE 0x00ed: 0x00a1, # LATIN SMALL LETTER I WITH ACUTE 0x00ee: 0x008c, # LATIN SMALL LETTER I WITH CIRCUMFLEX 0x00ef: 0x008b, # LATIN SMALL LETTER I WITH DIAERESIS 0x00f1: 0x00a4, # LATIN SMALL LETTER N WITH TILDE 0x00f2: 0x0095, # LATIN SMALL LETTER O WITH GRAVE 0x00f3: 0x00a2, # LATIN SMALL LETTER O WITH ACUTE 0x00f4: 0x0093, # LATIN SMALL LETTER O WITH CIRCUMFLEX 0x00f5: 0x00e4, # LATIN SMALL LETTER O WITH TILDE 0x00f6: 0x0094, # LATIN SMALL LETTER O WITH DIAERESIS 0x00f7: 0x00f6, # DIVISION SIGN 0x00f8: 0x009b, # LATIN SMALL LETTER O WITH STROKE 0x00f9: 0x0097, # LATIN SMALL LETTER U WITH GRAVE 0x00fa: 0x00a3, # LATIN SMALL LETTER U WITH ACUTE 0x00fb: 0x0096, # LATIN SMALL LETTER U WITH CIRCUMFLEX 0x00fc: 0x0081, # LATIN SMALL LETTER U WITH DIAERESIS 0x00ff: 0x00ed, # LATIN SMALL LETTER Y WITH DIAERESIS 0x011e: 0x00a6, # LATIN CAPITAL LETTER G WITH BREVE 0x011f: 0x00a7, # LATIN SMALL LETTER G WITH BREVE 0x0130: 0x0098, # LATIN CAPITAL LETTER I WITH DOT ABOVE 0x0131: 0x008d, # LATIN SMALL LETTER DOTLESS I 0x015e: 0x009e, # LATIN CAPITAL LETTER S WITH CEDILLA 0x015f: 0x009f, # LATIN SMALL LETTER S WITH CEDILLA 0x2500: 0x00c4, # BOX DRAWINGS LIGHT HORIZONTAL 0x2502: 0x00b3, # BOX DRAWINGS LIGHT VERTICAL 0x250c: 0x00da, # BOX DRAWINGS LIGHT DOWN AND RIGHT 0x2510: 0x00bf, # BOX DRAWINGS LIGHT DOWN AND LEFT 0x2514: 0x00c0, # BOX DRAWINGS LIGHT UP AND RIGHT 0x2518: 0x00d9, # BOX DRAWINGS LIGHT UP AND LEFT 0x251c: 0x00c3, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT 0x2524: 0x00b4, # BOX DRAWINGS LIGHT VERTICAL AND LEFT 0x252c: 0x00c2, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL 0x2534: 0x00c1, # BOX DRAWINGS LIGHT UP AND HORIZONTAL 0x253c: 0x00c5, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL 0x2550: 0x00cd, # BOX DRAWINGS DOUBLE HORIZONTAL 0x2551: 0x00ba, # BOX DRAWINGS DOUBLE VERTICAL 0x2554: 0x00c9, # BOX DRAWINGS DOUBLE DOWN AND RIGHT 0x2557: 0x00bb, # BOX DRAWINGS DOUBLE DOWN AND LEFT 0x255a: 0x00c8, # BOX DRAWINGS DOUBLE UP AND RIGHT 0x255d: 0x00bc, # BOX DRAWINGS DOUBLE UP AND LEFT 0x2560: 0x00cc, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT 0x2563: 0x00b9, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT 0x2566: 0x00cb, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL 0x2569: 0x00ca, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL 0x256c: 0x00ce, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL 0x2580: 0x00df, # UPPER HALF BLOCK 0x2584: 0x00dc, # LOWER HALF BLOCK 0x2588: 0x00db, # FULL BLOCK 0x2591: 0x00b0, # LIGHT SHADE 0x2592: 0x00b1, # MEDIUM SHADE 0x2593: 0x00b2, # DARK SHADE 0x25a0: 0x00fe, # BLACK SQUARE }
{ "pile_set_name": "Github" }
ref.fa qry.fa NUCMER [S1] [E1] [S2] [E2] [LEN 1] [LEN 2] [% IDY] [LEN R] [LEN Q] [FRM] [TAGS] 61 500 61 500 440 440 100.00 500 500 1 1 ref1 qry1 10 50 11 52 51 52 99.42 500 500 1 1 ref1 qry1 1 500 1 499 500 499 99.40 500 499 1 1 ref2 qry2 [IDENTITY]
{ "pile_set_name": "Github" }
title: Track Time Processes Spend in Various States Using Tracepoints name: schedtimes.stp version: 1.0 author: Jason Baron keywords: process scheduler time tracepoint subsystem: scheduler status: production exit: user-controlled output: sorted-list scope: system-wide description: The schedtimes.stp script instruments the scheduler to track the amount of time that each process spends in running, sleeping, queuing, and waiting for io. On exit the script prints out the accumulated time for each state of processes observed. Optionally, this script can be used with the '-c' or '-x' options to focus on a specific PID and its children. test_support: stap -l 'kernel.trace("sched_switch")' && stap -l 'kernel.trace("sched_wakeup")' test_check: stap -p4 schedtimes.stp test_installcheck: stap schedtimes.stp -c "sleep 1"
{ "pile_set_name": "Github" }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % FFFFF L IIIII FFFFF % % F L I F % % FFF L I FFF % % F L I F % % F LLLLL IIIII F % % % % % % Read/Write Free Lossless Image Format % % % % Software Design % % Jon Sneyers % % April 2016 % % % % % % Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization % % dedicated to making software imaging solutions freely available. % % % % You may not use this file except in compliance with the License. You may % % obtain a copy of the License at % % % % https://imagemagick.org/script/license.php % % % % Unless required by applicable law or agreed to in writing, software % % distributed under the License is distributed on an "AS IS" BASIS, % % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % % See the License for the specific language governing permissions and % % limitations under the License. % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % */ /* Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/artifact.h" #include "MagickCore/blob.h" #include "MagickCore/blob-private.h" #include "MagickCore/client.h" #include "MagickCore/colorspace-private.h" #include "MagickCore/display.h" #include "MagickCore/exception.h" #include "MagickCore/exception-private.h" #include "MagickCore/image.h" #include "MagickCore/image-private.h" #include "MagickCore/list.h" #include "MagickCore/magick.h" #include "MagickCore/monitor.h" #include "MagickCore/monitor-private.h" #include "MagickCore/memory_.h" #include "MagickCore/option.h" #include "MagickCore/pixel-accessor.h" #include "MagickCore/quantum-private.h" #include "MagickCore/static.h" #include "MagickCore/string_.h" #include "MagickCore/string-private.h" #include "MagickCore/module.h" #include "MagickCore/utility.h" #include "MagickCore/xwindow.h" #include "MagickCore/xwindow-private.h" #if defined(MAGICKCORE_FLIF_DELEGATE) #include <flif.h> #endif /* Forward declarations. */ #if defined(MAGICKCORE_FLIF_DELEGATE) static MagickBooleanType WriteFLIFImage(const ImageInfo *,Image *,ExceptionInfo *); #endif #if defined(MAGICKCORE_FLIF_DELEGATE) /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % R e a d F L I F I m a g e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % ReadFLIFImage() reads an image in the FLIF image format. % % The format of the ReadFLIFImage method is: % % Image *ReadFLIFImage(const ImageInfo *image_info, % ExceptionInfo *exception) % % A description of each parameter follows: % % o image_info: the image info. % % o exception: return any errors or warnings in this structure. % */ static Image *ReadFLIFImage(const ImageInfo *image_info, ExceptionInfo *exception) { FLIF_DECODER *flifdec; FLIF_IMAGE *flifimage; Image *image; MagickBooleanType status; register Quantum *q; register ssize_t x; register unsigned short *p; size_t count, image_count, length; ssize_t y; unsigned char *stream; unsigned short *pixels; /* Open image file. */ assert(image_info != (const ImageInfo *) NULL); assert(image_info->signature == MagickCoreSignature); if (image_info->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", image_info->filename); assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickCoreSignature); image=AcquireImage(image_info,exception); status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); if (status == MagickFalse) { image=DestroyImageList(image); return((Image *) NULL); } length=(size_t) GetBlobSize(image); stream=(unsigned char *) AcquireQuantumMemory(length,sizeof(*stream)); if (stream == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); count=ReadBlob(image,length,stream); if (count != length) { stream=(unsigned char *) RelinquishMagickMemory(stream); ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile"); } flifdec=flif_create_decoder(); if (image_info->quality != UndefinedCompressionQuality) flif_decoder_set_quality(flifdec,(int32_t) image_info->quality); if (!flif_decoder_decode_memory(flifdec,stream,length)) { flif_destroy_decoder(flifdec); ThrowReaderException(CorruptImageError,"CorruptImage"); } image_count=flif_decoder_num_images(flifdec); flifimage=flif_decoder_get_image(flifdec,0); length=sizeof(unsigned short)*4*flif_image_get_width(flifimage); pixels=(unsigned short *) AcquireMagickMemory(length); if (pixels == (unsigned short *) NULL) { flif_destroy_decoder(flifdec); ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } for (count=0; count < image_count; count++) { if (count > 0) { /* Allocate next image structure. */ AcquireNextImage(image_info,image,exception); if (GetNextImageInList(image) == (Image *) NULL) { status=MagickFalse; break; } image=SyncNextImageInList(image); } flifimage=flif_decoder_get_image(flifdec,count); image->columns=(size_t) flif_image_get_width(flifimage); image->rows=(size_t) flif_image_get_height(flifimage); image->depth=flif_image_get_depth(flifimage); image->alpha_trait=(flif_image_get_nb_channels(flifimage) > 3 ? BlendPixelTrait : UndefinedPixelTrait); image->delay=flif_image_get_frame_delay(flifimage); image->ticks_per_second=1000; image->scene=count; image->dispose=BackgroundDispose; for (y=0; y < (ssize_t) image->rows; y++) { flif_image_read_row_RGBA16(flifimage,y,pixels,length); p=pixels; q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); if (q == (Quantum *) NULL) break; for (x=0; x < (ssize_t) image->columns; x++) { SetPixelRed(image,ScaleShortToQuantum(*p++),q); SetPixelGreen(image,ScaleShortToQuantum(*p++),q); SetPixelBlue(image,ScaleShortToQuantum(*p++),q); SetPixelAlpha(image,ScaleShortToQuantum(*p++),q); q+=GetPixelChannels(image); } if (SyncAuthenticPixels(image,exception) == MagickFalse) break; status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, image->rows); if (status == MagickFalse) break; } } flif_destroy_decoder(flifdec); pixels=(unsigned short *) RelinquishMagickMemory(pixels); if (status == MagickFalse) return(DestroyImageList(image)); return(image); } #endif /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % I s F L I F % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % IsFLIF() returns MagickTrue if the image format type, identified by the % magick string, is FLIF. % % The format of the IsFLIF method is: % % MagickBooleanType IsFLIF(const unsigned char *magick, % const size_t length) % % A description of each parameter follows: % % o magick: compare image format pattern against these bytes. % % o length: Specifies the length of the magick string. % */ static MagickBooleanType IsFLIF(const unsigned char *magick, const size_t length) { if (length < 4) return(MagickFalse); if (LocaleNCompare((char *) magick,"FLIF",4) == 0) return(MagickTrue); return(MagickFalse); } /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % R e g i s t e r F L I F I m a g e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % RegisterFLIFImage() adds attributes for the FLIF image format to % the list of supported formats. The attributes include the image format % tag, a method to read and/or write the format, whether the format % supports the saving of more than one frame to the same file or blob, % whether the format supports native in-memory I/O, and a brief % description of the format. % % The format of the RegisterFLIFImage method is: % % size_t RegisterFLIFImage(void) % */ ModuleExport size_t RegisterFLIFImage(void) { char version[MagickPathExtent]; MagickInfo *entry; *version='\0'; entry=AcquireMagickInfo("FLIF","FLIF","Free Lossless Image Format"); #if defined(MAGICKCORE_FLIF_DELEGATE) entry->decoder=(DecodeImageHandler *) ReadFLIFImage; entry->encoder=(EncodeImageHandler *) WriteFLIFImage; (void) FormatLocaleString(version,MagickPathExtent,"libflif %d.%d.%d [%04X]", (FLIF_VERSION >> 16) & 0xff, (FLIF_VERSION >> 8) & 0xff, (FLIF_VERSION >> 0) & 0xff,FLIF_ABI_VERSION); #endif entry->mime_type=ConstantString("image/flif"); entry->magick=(IsImageFormatHandler *) IsFLIF; if (*version != '\0') entry->version=ConstantString(version); (void) RegisterMagickInfo(entry); return(MagickImageCoderSignature); } /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % U n r e g i s t e r F L I F I m a g e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % UnregisterFLIFImage() removes format registrations made by the FLIF module % from the list of supported formats. % % The format of the UnregisterFLIFImage method is: % % UnregisterFLIFImage(void) % */ ModuleExport void UnregisterFLIFImage(void) { (void) UnregisterMagickInfo("FLIF"); } #if defined(MAGICKCORE_FLIF_DELEGATE) /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % W r i t e F L I F I m a g e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % WriteFLIFImage() writes an image in the FLIF image format. % % The format of the WriteFLIFImage method is: % % MagickBooleanType WriteFLIFImage(const ImageInfo *image_info, % Image *image) % % A description of each parameter follows. % % o image_info: the image info. % % o image: The image. % */ static MagickBooleanType WriteFLIFImage(const ImageInfo *image_info, Image *image, ExceptionInfo *exception) { FLIF_ENCODER *flifenc; FLIF_IMAGE *flifimage; int flif_status; MagickBooleanType status; MagickOffsetType scene; register const Quantum *magick_restrict p; register ssize_t x; register unsigned char *magick_restrict qc; register unsigned short *magick_restrict qs; size_t columns, imageListLength, length, rows; ssize_t y; void *buffer; void *pixels; assert(image_info != (const ImageInfo *) NULL); assert(image_info->signature == MagickCoreSignature); assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); if ((image->columns > 0xFFFF) || (image->rows > 0xFFFF)) ThrowWriterException(ImageError,"WidthOrHeightExceedsLimit"); status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); if (status == MagickFalse) return(status); flifenc=flif_create_encoder(); if (image_info->quality != UndefinedCompressionQuality) flif_encoder_set_lossy(flifenc,3*(100-(int32_t) image_info->quality)); /* relatively fast encoding */ flif_encoder_set_learn_repeat(flifenc,1); flif_encoder_set_split_threshold(flifenc,5461*8*5); columns=image->columns; rows=image->rows; /* Convert image to FLIFIMAGE */ if (image->depth > 8) { flifimage=flif_create_image_HDR((uint32_t) image->columns, (uint32_t) image->rows); length=sizeof(unsigned short)*4*image->columns; } else { flifimage=flif_create_image((uint32_t) image->columns, (uint32_t) image->rows); length=sizeof(unsigned char)*4*image->columns; } if (flifimage == (FLIF_IMAGE *) NULL) { flif_destroy_encoder(flifenc); ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); } pixels=AcquireMagickMemory(length); if (pixels == (void *) NULL) { flif_destroy_image(flifimage); flif_destroy_encoder(flifenc); ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); } scene=0; imageListLength=GetImageListLength(image); do { for (y=0; y < (ssize_t) image->rows; y++) { p=GetVirtualPixels(image,0,y,image->columns,1,exception); if (p == (Quantum *) NULL) break; if (image->depth > 8) { qs=(unsigned short *) pixels; for (x=0; x < (ssize_t) image->columns; x++) { *qs++=ScaleQuantumToShort(GetPixelRed(image,p)); *qs++=ScaleQuantumToShort(GetPixelGreen(image,p)); *qs++=ScaleQuantumToShort(GetPixelBlue(image,p)); if (image->alpha_trait != UndefinedPixelTrait) *qs++=ScaleQuantumToShort(GetPixelAlpha(image,p)); else *qs++=0xFFFF; p+=GetPixelChannels(image); } flif_image_write_row_RGBA16(flifimage,y,pixels,length); } else { qc=pixels; for (x=0; x < (ssize_t) image->columns; x++) { *qc++=ScaleQuantumToChar(GetPixelRed(image,p)); *qc++=ScaleQuantumToChar(GetPixelGreen(image,p)); *qc++=ScaleQuantumToChar(GetPixelBlue(image,p)); if (image->alpha_trait != UndefinedPixelTrait) *qc++=ScaleQuantumToChar(GetPixelAlpha(image,p)); else *qc++=0xFF; p+=GetPixelChannels(image); } flif_image_write_row_RGBA8(flifimage,y,pixels,length); } } flif_image_set_frame_delay(flifimage,(uint32_t) image->delay*100/ image->ticks_per_second); flif_encoder_add_image(flifenc,flifimage); if (GetNextImageInList(image) == (Image *) NULL) break; image=SyncNextImageInList(image); if ((columns != image->columns) || (rows != image->rows)) { flif_destroy_image(flifimage); flif_destroy_encoder(flifenc); pixels=RelinquishMagickMemory(pixels); ThrowWriterException(ImageError,"FramesNotSameDimensions"); } scene++; status=SetImageProgress(image,SaveImagesTag,scene,imageListLength); if (status == MagickFalse) break; } while (image_info->adjoin != MagickFalse); flif_destroy_image(flifimage); pixels=RelinquishMagickMemory(pixels); flif_status=flif_encoder_encode_memory(flifenc,&buffer,&length); if (flif_status) WriteBlob(image,length,buffer); CloseBlob(image); flif_destroy_encoder(flifenc); buffer=RelinquishMagickMemory(buffer); return(flif_status == 0 ? MagickFalse : MagickTrue); } #endif
{ "pile_set_name": "Github" }
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> #div, #svg { display: table; } #g { display: inline; } </style> </head> <body> <div id="div"> <svg id="svg" xmlns="http://www.w3.org/2000/svg"> <g id="g"> <circle cx="6.5cm" cy="2cm" r="100" style="fill: blue;" /> </g> </svg> </div> </body> </html>
{ "pile_set_name": "Github" }
[object-attributes.html] type: testharness [object.contentWindow] expected: FAIL [object.width] expected: FAIL [object.height] expected: FAIL [object.contentWindow.name] expected: FAIL
{ "pile_set_name": "Github" }
#ifndef AL_AL_H #define AL_AL_H #if defined(__cplusplus) extern "C" { #endif #ifndef AL_API #if defined(AL_LIBTYPE_STATIC) #define AL_API #elif defined(_WIN32) #define AL_API __declspec(dllimport) #else #define AL_API extern #endif #endif #if defined(_WIN32) #define AL_APIENTRY __cdecl #else #define AL_APIENTRY #endif #if defined(TARGET_OS_MAC) && TARGET_OS_MAC #pragma export on #endif /* * The OPENAL, ALAPI, ALAPIENTRY, AL_INVALID, AL_ILLEGAL_ENUM, and * AL_ILLEGAL_COMMAND macros are deprecated, but are included for * applications porting code from AL 1.0 */ #define OPENAL #define ALAPI AL_API #define ALAPIENTRY AL_APIENTRY #define AL_INVALID (-1) #define AL_ILLEGAL_ENUM AL_INVALID_ENUM #define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION #define AL_VERSION_1_0 #define AL_VERSION_1_1 /** 8-bit boolean */ typedef char ALboolean; /** character */ typedef char ALchar; /** signed 8-bit 2's complement integer */ typedef signed char ALbyte; /** unsigned 8-bit integer */ typedef unsigned char ALubyte; /** signed 16-bit 2's complement integer */ typedef short ALshort; /** unsigned 16-bit integer */ typedef unsigned short ALushort; /** signed 32-bit 2's complement integer */ typedef int ALint; /** unsigned 32-bit integer */ typedef unsigned int ALuint; /** non-negative 32-bit binary integer size */ typedef int ALsizei; /** enumerated 32-bit value */ typedef int ALenum; /** 32-bit IEEE754 floating-point */ typedef float ALfloat; /** 64-bit IEEE754 floating-point */ typedef double ALdouble; /** void type (for opaque pointers only) */ typedef void ALvoid; /* Enumerant values begin at column 50. No tabs. */ /* "no distance model" or "no buffer" */ #define AL_NONE 0 /* Boolean False. */ #define AL_FALSE 0 /** Boolean True. */ #define AL_TRUE 1 /** Indicate Source has relative coordinates. */ #define AL_SOURCE_RELATIVE 0x202 /** * Directional source, inner cone angle, in degrees. * Range: [0-360] * Default: 360 */ #define AL_CONE_INNER_ANGLE 0x1001 /** * Directional source, outer cone angle, in degrees. * Range: [0-360] * Default: 360 */ #define AL_CONE_OUTER_ANGLE 0x1002 /** * Specify the pitch to be applied at source. * Range: [0.5-2.0] * Default: 1.0 */ #define AL_PITCH 0x1003 /** * Specify the current location in three dimensional space. * OpenAL, like OpenGL, uses a right handed coordinate system, * where in a frontal default view X (thumb) points right, * Y points up (index finger), and Z points towards the * viewer/camera (middle finger). * To switch from a left handed coordinate system, flip the * sign on the Z coordinate. * Listener position is always in the world coordinate system. */ #define AL_POSITION 0x1004 /** Specify the current direction. */ #define AL_DIRECTION 0x1005 /** Specify the current velocity in three dimensional space. */ #define AL_VELOCITY 0x1006 /** * Indicate whether source is looping. * Type: ALboolean? * Range: [AL_TRUE, AL_FALSE] * Default: FALSE. */ #define AL_LOOPING 0x1007 /** * Indicate the buffer to provide sound samples. * Type: ALuint. * Range: any valid Buffer id. */ #define AL_BUFFER 0x1009 /** * Indicate the gain (volume amplification) applied. * Type: ALfloat. * Range: ]0.0- ] * A value of 1.0 means un-attenuated/unchanged. * Each division by 2 equals an attenuation of -6dB. * Each multiplicaton with 2 equals an amplification of +6dB. * A value of 0.0 is meaningless with respect to a logarithmic * scale; it is interpreted as zero volume - the channel * is effectively disabled. */ #define AL_GAIN 0x100A /* * Indicate minimum source attenuation * Type: ALfloat * Range: [0.0 - 1.0] * * Logarthmic */ #define AL_MIN_GAIN 0x100D /** * Indicate maximum source attenuation * Type: ALfloat * Range: [0.0 - 1.0] * * Logarthmic */ #define AL_MAX_GAIN 0x100E /** * Indicate listener orientation. * * at/up */ #define AL_ORIENTATION 0x100F /** * Source state information. */ #define AL_SOURCE_STATE 0x1010 #define AL_INITIAL 0x1011 #define AL_PLAYING 0x1012 #define AL_PAUSED 0x1013 #define AL_STOPPED 0x1014 /** * Buffer Queue params */ #define AL_BUFFERS_QUEUED 0x1015 #define AL_BUFFERS_PROCESSED 0x1016 /** * Source buffer position information */ #define AL_SEC_OFFSET 0x1024 #define AL_SAMPLE_OFFSET 0x1025 #define AL_BYTE_OFFSET 0x1026 /* * Source type (Static, Streaming or undetermined) * Source is Static if a Buffer has been attached using AL_BUFFER * Source is Streaming if one or more Buffers have been attached using alSourceQueueBuffers * Source is undetermined when it has the NULL buffer attached */ #define AL_SOURCE_TYPE 0x1027 #define AL_STATIC 0x1028 #define AL_STREAMING 0x1029 #define AL_UNDETERMINED 0x1030 /** Sound samples: format specifier. */ #define AL_FORMAT_MONO8 0x1100 #define AL_FORMAT_MONO16 0x1101 #define AL_FORMAT_STEREO8 0x1102 #define AL_FORMAT_STEREO16 0x1103 /** * source specific reference distance * Type: ALfloat * Range: 0.0 - +inf * * At 0.0, no distance attenuation occurs. Default is * 1.0. */ #define AL_REFERENCE_DISTANCE 0x1020 /** * source specific rolloff factor * Type: ALfloat * Range: 0.0 - +inf * */ #define AL_ROLLOFF_FACTOR 0x1021 /** * Directional source, outer cone gain. * * Default: 0.0 * Range: [0.0 - 1.0] * Logarithmic */ #define AL_CONE_OUTER_GAIN 0x1022 /** * Indicate distance above which sources are not * attenuated using the inverse clamped distance model. * * Default: +inf * Type: ALfloat * Range: 0.0 - +inf */ #define AL_MAX_DISTANCE 0x1023 /** * Sound samples: frequency, in units of Hertz [Hz]. * This is the number of samples per second. Half of the * sample frequency marks the maximum significant * frequency component. */ #define AL_FREQUENCY 0x2001 #define AL_BITS 0x2002 #define AL_CHANNELS 0x2003 #define AL_SIZE 0x2004 /** * Buffer state. * * Not supported for public use (yet). */ #define AL_UNUSED 0x2010 #define AL_PENDING 0x2011 #define AL_PROCESSED 0x2012 /** Errors: No Error. */ #define AL_NO_ERROR 0 /** * Invalid Name paramater passed to AL call. */ #define AL_INVALID_NAME 0xA001 /** * Invalid parameter passed to AL call. */ #define AL_INVALID_ENUM 0xA002 /** * Invalid enum parameter value. */ #define AL_INVALID_VALUE 0xA003 /** * Illegal call. */ #define AL_INVALID_OPERATION 0xA004 /** * No mojo. */ #define AL_OUT_OF_MEMORY 0xA005 /** Context strings: Vendor Name. */ #define AL_VENDOR 0xB001 #define AL_VERSION 0xB002 #define AL_RENDERER 0xB003 #define AL_EXTENSIONS 0xB004 /** Global tweakage. */ /** * Doppler scale. Default 1.0 */ #define AL_DOPPLER_FACTOR 0xC000 /** * Tweaks speed of propagation. */ #define AL_DOPPLER_VELOCITY 0xC001 /** * Speed of Sound in units per second */ #define AL_SPEED_OF_SOUND 0xC003 /** * Distance models * * used in conjunction with DistanceModel * * implicit: NONE, which disances distance attenuation. */ #define AL_DISTANCE_MODEL 0xD000 #define AL_INVERSE_DISTANCE 0xD001 #define AL_INVERSE_DISTANCE_CLAMPED 0xD002 #define AL_LINEAR_DISTANCE 0xD003 #define AL_LINEAR_DISTANCE_CLAMPED 0xD004 #define AL_EXPONENT_DISTANCE 0xD005 #define AL_EXPONENT_DISTANCE_CLAMPED 0xD006 /* * Renderer State management */ AL_API void AL_APIENTRY alEnable( ALenum capability ); AL_API void AL_APIENTRY alDisable( ALenum capability ); AL_API ALboolean AL_APIENTRY alIsEnabled( ALenum capability ); /* * State retrieval */ AL_API const ALchar* AL_APIENTRY alGetString( ALenum param ); AL_API void AL_APIENTRY alGetBooleanv( ALenum param, ALboolean* data ); AL_API void AL_APIENTRY alGetIntegerv( ALenum param, ALint* data ); AL_API void AL_APIENTRY alGetFloatv( ALenum param, ALfloat* data ); AL_API void AL_APIENTRY alGetDoublev( ALenum param, ALdouble* data ); AL_API ALboolean AL_APIENTRY alGetBoolean( ALenum param ); AL_API ALint AL_APIENTRY alGetInteger( ALenum param ); AL_API ALfloat AL_APIENTRY alGetFloat( ALenum param ); AL_API ALdouble AL_APIENTRY alGetDouble( ALenum param ); /* * Error support. * Obtain the most recent error generated in the AL state machine. */ AL_API ALenum AL_APIENTRY alGetError( void ); /* * Extension support. * Query for the presence of an extension, and obtain any appropriate * function pointers and enum values. */ AL_API ALboolean AL_APIENTRY alIsExtensionPresent( const ALchar* extname ); AL_API void* AL_APIENTRY alGetProcAddress( const ALchar* fname ); AL_API ALenum AL_APIENTRY alGetEnumValue( const ALchar* ename ); /* * LISTENER * Listener represents the location and orientation of the * 'user' in 3D-space. * * Properties include: - * * Gain AL_GAIN ALfloat * Position AL_POSITION ALfloat[3] * Velocity AL_VELOCITY ALfloat[3] * Orientation AL_ORIENTATION ALfloat[6] (Forward then Up vectors) */ /* * Set Listener parameters */ AL_API void AL_APIENTRY alListenerf( ALenum param, ALfloat value ); AL_API void AL_APIENTRY alListener3f( ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); AL_API void AL_APIENTRY alListenerfv( ALenum param, const ALfloat* values ); AL_API void AL_APIENTRY alListeneri( ALenum param, ALint value ); AL_API void AL_APIENTRY alListener3i( ALenum param, ALint value1, ALint value2, ALint value3 ); AL_API void AL_APIENTRY alListeneriv( ALenum param, const ALint* values ); /* * Get Listener parameters */ AL_API void AL_APIENTRY alGetListenerf( ALenum param, ALfloat* value ); AL_API void AL_APIENTRY alGetListener3f( ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3 ); AL_API void AL_APIENTRY alGetListenerfv( ALenum param, ALfloat* values ); AL_API void AL_APIENTRY alGetListeneri( ALenum param, ALint* value ); AL_API void AL_APIENTRY alGetListener3i( ALenum param, ALint *value1, ALint *value2, ALint *value3 ); AL_API void AL_APIENTRY alGetListeneriv( ALenum param, ALint* values ); /** * SOURCE * Sources represent individual sound objects in 3D-space. * Sources take the PCM data provided in the specified Buffer, * apply Source-specific modifications, and then * submit them to be mixed according to spatial arrangement etc. * * Properties include: - * * Gain AL_GAIN ALfloat * Min Gain AL_MIN_GAIN ALfloat * Max Gain AL_MAX_GAIN ALfloat * Position AL_POSITION ALfloat[3] * Velocity AL_VELOCITY ALfloat[3] * Direction AL_DIRECTION ALfloat[3] * Head Relative Mode AL_SOURCE_RELATIVE ALint (AL_TRUE or AL_FALSE) * Reference Distance AL_REFERENCE_DISTANCE ALfloat * Max Distance AL_MAX_DISTANCE ALfloat * RollOff Factor AL_ROLLOFF_FACTOR ALfloat * Inner Angle AL_CONE_INNER_ANGLE ALint or ALfloat * Outer Angle AL_CONE_OUTER_ANGLE ALint or ALfloat * Cone Outer Gain AL_CONE_OUTER_GAIN ALint or ALfloat * Pitch AL_PITCH ALfloat * Looping AL_LOOPING ALint (AL_TRUE or AL_FALSE) * MS Offset AL_MSEC_OFFSET ALint or ALfloat * Byte Offset AL_BYTE_OFFSET ALint or ALfloat * Sample Offset AL_SAMPLE_OFFSET ALint or ALfloat * Attached Buffer AL_BUFFER ALint * State (Query only) AL_SOURCE_STATE ALint * Buffers Queued (Query only) AL_BUFFERS_QUEUED ALint * Buffers Processed (Query only) AL_BUFFERS_PROCESSED ALint */ /* Create Source objects */ AL_API void AL_APIENTRY alGenSources( ALsizei n, ALuint* sources ); /* Delete Source objects */ AL_API void AL_APIENTRY alDeleteSources( ALsizei n, const ALuint* sources ); /* Verify a handle is a valid Source */ AL_API ALboolean AL_APIENTRY alIsSource( ALuint sid ); /* * Set Source parameters */ AL_API void AL_APIENTRY alSourcef( ALuint sid, ALenum param, ALfloat value ); AL_API void AL_APIENTRY alSource3f( ALuint sid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); AL_API void AL_APIENTRY alSourcefv( ALuint sid, ALenum param, const ALfloat* values ); AL_API void AL_APIENTRY alSourcei( ALuint sid, ALenum param, ALint value ); AL_API void AL_APIENTRY alSource3i( ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3 ); AL_API void AL_APIENTRY alSourceiv( ALuint sid, ALenum param, const ALint* values ); /* * Get Source parameters */ AL_API void AL_APIENTRY alGetSourcef( ALuint sid, ALenum param, ALfloat* value ); AL_API void AL_APIENTRY alGetSource3f( ALuint sid, ALenum param, ALfloat* value1, ALfloat* value2, ALfloat* value3); AL_API void AL_APIENTRY alGetSourcefv( ALuint sid, ALenum param, ALfloat* values ); AL_API void AL_APIENTRY alGetSourcei( ALuint sid, ALenum param, ALint* value ); AL_API void AL_APIENTRY alGetSource3i( ALuint sid, ALenum param, ALint* value1, ALint* value2, ALint* value3); AL_API void AL_APIENTRY alGetSourceiv( ALuint sid, ALenum param, ALint* values ); /* * Source vector based playback calls */ /* Play, replay, or resume (if paused) a list of Sources */ AL_API void AL_APIENTRY alSourcePlayv( ALsizei ns, const ALuint *sids ); /* Stop a list of Sources */ AL_API void AL_APIENTRY alSourceStopv( ALsizei ns, const ALuint *sids ); /* Rewind a list of Sources */ AL_API void AL_APIENTRY alSourceRewindv( ALsizei ns, const ALuint *sids ); /* Pause a list of Sources */ AL_API void AL_APIENTRY alSourcePausev( ALsizei ns, const ALuint *sids ); /* * Source based playback calls */ /* Play, replay, or resume a Source */ AL_API void AL_APIENTRY alSourcePlay( ALuint sid ); /* Stop a Source */ AL_API void AL_APIENTRY alSourceStop( ALuint sid ); /* Rewind a Source (set playback postiton to beginning) */ AL_API void AL_APIENTRY alSourceRewind( ALuint sid ); /* Pause a Source */ AL_API void AL_APIENTRY alSourcePause( ALuint sid ); /* * Source Queuing */ AL_API void AL_APIENTRY alSourceQueueBuffers( ALuint sid, ALsizei numEntries, const ALuint *bids ); AL_API void AL_APIENTRY alSourceUnqueueBuffers( ALuint sid, ALsizei numEntries, ALuint *bids ); /** * BUFFER * Buffer objects are storage space for sample data. * Buffers are referred to by Sources. One Buffer can be used * by multiple Sources. * * Properties include: - * * Frequency (Query only) AL_FREQUENCY ALint * Size (Query only) AL_SIZE ALint * Bits (Query only) AL_BITS ALint * Channels (Query only) AL_CHANNELS ALint */ /* Create Buffer objects */ AL_API void AL_APIENTRY alGenBuffers( ALsizei n, ALuint* buffers ); /* Delete Buffer objects */ AL_API void AL_APIENTRY alDeleteBuffers( ALsizei n, const ALuint* buffers ); /* Verify a handle is a valid Buffer */ AL_API ALboolean AL_APIENTRY alIsBuffer( ALuint bid ); /* Specify the data to be copied into a buffer */ AL_API void AL_APIENTRY alBufferData( ALuint bid, ALenum format, const ALvoid* data, ALsizei size, ALsizei freq ); /* * Set Buffer parameters */ AL_API void AL_APIENTRY alBufferf( ALuint bid, ALenum param, ALfloat value ); AL_API void AL_APIENTRY alBuffer3f( ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); AL_API void AL_APIENTRY alBufferfv( ALuint bid, ALenum param, const ALfloat* values ); AL_API void AL_APIENTRY alBufferi( ALuint bid, ALenum param, ALint value ); AL_API void AL_APIENTRY alBuffer3i( ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3 ); AL_API void AL_APIENTRY alBufferiv( ALuint bid, ALenum param, const ALint* values ); /* * Get Buffer parameters */ AL_API void AL_APIENTRY alGetBufferf( ALuint bid, ALenum param, ALfloat* value ); AL_API void AL_APIENTRY alGetBuffer3f( ALuint bid, ALenum param, ALfloat* value1, ALfloat* value2, ALfloat* value3); AL_API void AL_APIENTRY alGetBufferfv( ALuint bid, ALenum param, ALfloat* values ); AL_API void AL_APIENTRY alGetBufferi( ALuint bid, ALenum param, ALint* value ); AL_API void AL_APIENTRY alGetBuffer3i( ALuint bid, ALenum param, ALint* value1, ALint* value2, ALint* value3); AL_API void AL_APIENTRY alGetBufferiv( ALuint bid, ALenum param, ALint* values ); /* * Global Parameters */ AL_API void AL_APIENTRY alDopplerFactor( ALfloat value ); AL_API void AL_APIENTRY alDopplerVelocity( ALfloat value ); AL_API void AL_APIENTRY alSpeedOfSound( ALfloat value ); AL_API void AL_APIENTRY alDistanceModel( ALenum distanceModel ); /* * Pointer-to-function types, useful for dynamically getting AL entry points. */ typedef void (AL_APIENTRY *LPALENABLE)( ALenum capability ); typedef void (AL_APIENTRY *LPALDISABLE)( ALenum capability ); typedef ALboolean (AL_APIENTRY *LPALISENABLED)( ALenum capability ); typedef const ALchar* (AL_APIENTRY *LPALGETSTRING)( ALenum param ); typedef void (AL_APIENTRY *LPALGETBOOLEANV)( ALenum param, ALboolean* data ); typedef void (AL_APIENTRY *LPALGETINTEGERV)( ALenum param, ALint* data ); typedef void (AL_APIENTRY *LPALGETFLOATV)( ALenum param, ALfloat* data ); typedef void (AL_APIENTRY *LPALGETDOUBLEV)( ALenum param, ALdouble* data ); typedef ALboolean (AL_APIENTRY *LPALGETBOOLEAN)( ALenum param ); typedef ALint (AL_APIENTRY *LPALGETINTEGER)( ALenum param ); typedef ALfloat (AL_APIENTRY *LPALGETFLOAT)( ALenum param ); typedef ALdouble (AL_APIENTRY *LPALGETDOUBLE)( ALenum param ); typedef ALenum (AL_APIENTRY *LPALGETERROR)( void ); typedef ALboolean (AL_APIENTRY *LPALISEXTENSIONPRESENT)(const ALchar* extname ); typedef void* (AL_APIENTRY *LPALGETPROCADDRESS)( const ALchar* fname ); typedef ALenum (AL_APIENTRY *LPALGETENUMVALUE)( const ALchar* ename ); typedef void (AL_APIENTRY *LPALLISTENERF)( ALenum param, ALfloat value ); typedef void (AL_APIENTRY *LPALLISTENER3F)( ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); typedef void (AL_APIENTRY *LPALLISTENERFV)( ALenum param, const ALfloat* values ); typedef void (AL_APIENTRY *LPALLISTENERI)( ALenum param, ALint value ); typedef void (AL_APIENTRY *LPALLISTENER3I)( ALenum param, ALint value1, ALint value2, ALint value3 ); typedef void (AL_APIENTRY *LPALLISTENERIV)( ALenum param, const ALint* values ); typedef void (AL_APIENTRY *LPALGETLISTENERF)( ALenum param, ALfloat* value ); typedef void (AL_APIENTRY *LPALGETLISTENER3F)( ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3 ); typedef void (AL_APIENTRY *LPALGETLISTENERFV)( ALenum param, ALfloat* values ); typedef void (AL_APIENTRY *LPALGETLISTENERI)( ALenum param, ALint* value ); typedef void (AL_APIENTRY *LPALGETLISTENER3I)( ALenum param, ALint *value1, ALint *value2, ALint *value3 ); typedef void (AL_APIENTRY *LPALGETLISTENERIV)( ALenum param, ALint* values ); typedef void (AL_APIENTRY *LPALGENSOURCES)( ALsizei n, ALuint* sources ); typedef void (AL_APIENTRY *LPALDELETESOURCES)( ALsizei n, const ALuint* sources ); typedef ALboolean (AL_APIENTRY *LPALISSOURCE)( ALuint sid ); typedef void (AL_APIENTRY *LPALSOURCEF)( ALuint sid, ALenum param, ALfloat value); typedef void (AL_APIENTRY *LPALSOURCE3F)( ALuint sid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); typedef void (AL_APIENTRY *LPALSOURCEFV)( ALuint sid, ALenum param, const ALfloat* values ); typedef void (AL_APIENTRY *LPALSOURCEI)( ALuint sid, ALenum param, ALint value); typedef void (AL_APIENTRY *LPALSOURCE3I)( ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3 ); typedef void (AL_APIENTRY *LPALSOURCEIV)( ALuint sid, ALenum param, const ALint* values ); typedef void (AL_APIENTRY *LPALGETSOURCEF)( ALuint sid, ALenum param, ALfloat* value ); typedef void (AL_APIENTRY *LPALGETSOURCE3F)( ALuint sid, ALenum param, ALfloat* value1, ALfloat* value2, ALfloat* value3); typedef void (AL_APIENTRY *LPALGETSOURCEFV)( ALuint sid, ALenum param, ALfloat* values ); typedef void (AL_APIENTRY *LPALGETSOURCEI)( ALuint sid, ALenum param, ALint* value ); typedef void (AL_APIENTRY *LPALGETSOURCE3I)( ALuint sid, ALenum param, ALint* value1, ALint* value2, ALint* value3); typedef void (AL_APIENTRY *LPALGETSOURCEIV)( ALuint sid, ALenum param, ALint* values ); typedef void (AL_APIENTRY *LPALSOURCEPLAYV)( ALsizei ns, const ALuint *sids ); typedef void (AL_APIENTRY *LPALSOURCESTOPV)( ALsizei ns, const ALuint *sids ); typedef void (AL_APIENTRY *LPALSOURCEREWINDV)( ALsizei ns, const ALuint *sids ); typedef void (AL_APIENTRY *LPALSOURCEPAUSEV)( ALsizei ns, const ALuint *sids ); typedef void (AL_APIENTRY *LPALSOURCEPLAY)( ALuint sid ); typedef void (AL_APIENTRY *LPALSOURCESTOP)( ALuint sid ); typedef void (AL_APIENTRY *LPALSOURCEREWIND)( ALuint sid ); typedef void (AL_APIENTRY *LPALSOURCEPAUSE)( ALuint sid ); typedef void (AL_APIENTRY *LPALSOURCEQUEUEBUFFERS)(ALuint sid, ALsizei numEntries, const ALuint *bids ); typedef void (AL_APIENTRY *LPALSOURCEUNQUEUEBUFFERS)(ALuint sid, ALsizei numEntries, ALuint *bids ); typedef void (AL_APIENTRY *LPALGENBUFFERS)( ALsizei n, ALuint* buffers ); typedef void (AL_APIENTRY *LPALDELETEBUFFERS)( ALsizei n, const ALuint* buffers ); typedef ALboolean (AL_APIENTRY *LPALISBUFFER)( ALuint bid ); typedef void (AL_APIENTRY *LPALBUFFERDATA)( ALuint bid, ALenum format, const ALvoid* data, ALsizei size, ALsizei freq ); typedef void (AL_APIENTRY *LPALBUFFERF)( ALuint bid, ALenum param, ALfloat value); typedef void (AL_APIENTRY *LPALBUFFER3F)( ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); typedef void (AL_APIENTRY *LPALBUFFERFV)( ALuint bid, ALenum param, const ALfloat* values ); typedef void (AL_APIENTRY *LPALBUFFERI)( ALuint bid, ALenum param, ALint value); typedef void (AL_APIENTRY *LPALBUFFER3I)( ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3 ); typedef void (AL_APIENTRY *LPALBUFFERIV)( ALuint bid, ALenum param, const ALint* values ); typedef void (AL_APIENTRY *LPALGETBUFFERF)( ALuint bid, ALenum param, ALfloat* value ); typedef void (AL_APIENTRY *LPALGETBUFFER3F)( ALuint bid, ALenum param, ALfloat* value1, ALfloat* value2, ALfloat* value3); typedef void (AL_APIENTRY *LPALGETBUFFERFV)( ALuint bid, ALenum param, ALfloat* values ); typedef void (AL_APIENTRY *LPALGETBUFFERI)( ALuint bid, ALenum param, ALint* value ); typedef void (AL_APIENTRY *LPALGETBUFFER3I)( ALuint bid, ALenum param, ALint* value1, ALint* value2, ALint* value3); typedef void (AL_APIENTRY *LPALGETBUFFERIV)( ALuint bid, ALenum param, ALint* values ); typedef void (AL_APIENTRY *LPALDOPPLERFACTOR)( ALfloat value ); typedef void (AL_APIENTRY *LPALDOPPLERVELOCITY)( ALfloat value ); typedef void (AL_APIENTRY *LPALSPEEDOFSOUND)( ALfloat value ); typedef void (AL_APIENTRY *LPALDISTANCEMODEL)( ALenum distanceModel ); #if defined(TARGET_OS_MAC) && TARGET_OS_MAC #pragma export off #endif #if defined(__cplusplus) } /* extern "C" */ #endif #endif /* AL_AL_H */
{ "pile_set_name": "Github" }
--- # Run the Infra steps (step000, step001,step002) ################################################################################ ################################################################################ ############ Step 000 Pre Infrastructure Deploy Tasks ################################################################################ ################################################################################ - import_playbook: pre_infra.yml tags: - step000 - pre_infra_tasks ################################################################################# ################################################################################# ############# Step 001 Deploy Infrastructure ################################################################################# ################################################################################# - import_playbook: "../../cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml" tags: - step001 - deploy_infrastructure # Before continuing this playbook, assert that there is at least one new node - hosts: localhost connection: local gather_facts: false become: false tasks: - name: Assert new_node_instance_count and node_instance_count are setup properly. tags: assert_new_node assert: that: - (groups['nodes'] | length) == (node_instance_count|int) - groups['newnodes'] | length > 0 - name: Ensure one bastion is present assert: that: groups['bastions'] | length > 0 ################################################################################# ################################################################################# ############# Step 002 Post Infrastructure Deploy Tasks ################################################################################# ################################################################################# - import_playbook: post_infra.yml tags: - step002 - post_infra_tasks ################################################################################# ################################################################################# ############## Step 003 Pre Software Deploy Tasks ################################################################################# ################################################################################# # Run pre-software steps on new nodes, or all of them if we can't do just the new nodes ( pre_software playbook) - name: Configure all hosts with Repositories, Common Files and Set environment key hosts: - "newnodes" become: true gather_facts: False tags: - step004 - common_tasks roles: - { role: "set-repositories", when: 'repo_method is defined' } - { role: "common", when: 'install_common' } - { role: "set_env_authorized_key", when: 'set_env_authorized_key' } - name: PreSoftware flight-check hosts: localhost connection: local gather_facts: false become: false tags: - flight_check tasks: - debug: msg: "Pre-Software checks completed successfully" # Run openshift-node role on the new hosts - name: Configuring openshift-nodes gather_facts: False become: yes hosts: - newnodes roles: - host-ocp-node tags: - openshift_node_tasks - name: Step 00xxxxx bastion preparation for OpenShift deployment hosts: bastions become: true gather_facts: False tags: - openshift_host_templates tasks: - name: generate ansible hosts file, keep it under output_dir template: src: "./files/hosts_template.j2" dest: "{{output_dir}}/scaleup_hosts-{{ env_type }}-{{ guid }}" delegate_to: localhost become: false tags: - generate_ansible_hosts_file - name: Copy over ansible hosts file copy: src: "{{output_dir}}/scaleup_hosts-{{ env_type }}-{{ guid }}" dest: /etc/ansible/scaleup_hosts ## Run Scaleup playbook - name: Run OpenShift Scaleup playbook on first bastion gather_facts: False become: yes hosts: bastions[0] tags: - installing_openshift ## Change to scale up, and change inventory file tasks: - name: run scaleup playbook shell: "ansible-playbook -i /etc/ansible/scaleup_hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml" register: openshift_install_log tags: - openshift_installer - name: show output of the scaleup playbook debug: var: openshift_install_log verbosity: 2 - name: Tag freshly created node as node hosts: localhost connection: local become: False gather_facts: False tags: - generate_ansible_hosts_file tasks: # untag nodes, remove newnode tag - name: Ensure tags 'newnode' for instance is set to 'false' ec2_tag: region: "{{ aws_region }}" resource: "{{ hostvars[item].instance_id }}" tags: newnode: false with_items: "{{ groups['newnodes'] }}" when: cloud_provider == 'ec2' - name: Remove hosts from group newnodes gather_facts: False become: yes hosts: newnodes tasks: - group: name: newnodes state: absent ## Generate new /etc/ansible/hosts file - name: Update /etc/ansible/host file on bastion hosts: bastions become: true gather_facts: False tags: - openshift_host_templates tasks: - debug: msg: "WARNING: s3user credentials not set" when: s3user_access_key is not defined - name: generate ansible hosts file, keep it under output_dir template: src: "./files/hosts_template.j2" dest: "{{output_dir}}/hosts-{{ env_type }}-{{ guid }}" delegate_to: localhost become: false tags: - generate_ansible_hosts_file - name: Copy over ansible hosts file copy: src: "{{output_dir}}/hosts-{{ project_tag }}" dest: /etc/ansible/hosts backup: yes
{ "pile_set_name": "Github" }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ // Do not edit this file. It is machine generated. { "links.navigate.mac": "Cmd + clic per seguire il collegamento", "links.navigate": "CTRL + clic per seguire il collegamento", "invalid.url": "Non è stato possibile aprire questo collegamento perché il formato non è valido: {0}", "missing.url": "Non è stato possibile aprire questo collegamento perché manca la destinazione.", "label": "Apri il collegamento" }
{ "pile_set_name": "Github" }
<?xml version='1.0' encoding='utf-8'?> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> <Profiles> <Profile Name="(Default)" /> </Profiles> <Settings /> </SettingsFile>
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>arm_q7_to_q15.d File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="proglogo"><img alt="CMSIS Logo" src="CMSIS_Logo_Final.png"></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-DSP &#160;<span id="projectnumber">Verison 1.1.0</span> </div> <div id="projectbrief">CMSIS DSP Software Library</div> </td> </tr> </tbody> </table> </div> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <li><a href="../../General/html/index.html"><span>CMSIS</span></a></li> <li><a href="../../Core/html/index.html"><span>CORE</span></a></li> <li class="current"><a href="../../DSP/html/index.html"><span>DSP</span></a></li> <li><a href="../../RTOS/html/index.html"><span>RTOS API</span></a></li> <li><a href="../../SVD/html/index.html"><span>SVD</span></a></li> </ul> </div> <!-- Generated by Doxygen 1.7.5.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('arm__q7__to__q15_8d.html',''); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">arm_q7_to_q15.d File Reference</div> </div> </div> <div class="contents"> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="arm__q7__to__q15_8d.html">arm_q7_to_q15.d</a> </li> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <li class="footer">Generated on Wed Mar 28 2012 15:38:08 for CMSIS-DSP by ARM Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li> --> </li> </ul> </div> </body> </html>
{ "pile_set_name": "Github" }