code
stringlengths
4
1.01M
language
stringclasses
2 values
# Contributing Contributions to Respect\Validation are always welcome. You make our lives easier by sending us your contributions through [GitHub pull requests](http://help.github.com/pull-requests). Pull requests for bug fixes must be based on the current stable branch whereas pull requests for new features must be based on `master`. Due to time constraints, we are not always able to respond as quickly as we would like. Please do not take delays personal and feel free to remind us here, on IRC, or on Gitter if you feel that we forgot to respond. Please see the [project documentation](http://documentup.com/Respect/Validation) before proceeding. You should also know about [PHP-FIG](http://www.php-fig.org)'s standards and basic unit testing, but we're sure you can learn that just by looking at other rules. Pick the simple ones like `Int` to begin. Before writing anything, make sure there is no validator that already does what you need. Also, it would be awesome if you [open an issue](http://github.com/Respect/Validation/issues) before starting, so if anyone has the same idea the guy will see that you're already doing that. ## Adding a new validator A common validator (rule) on Respect\Validation is composed of three classes: * `library/Rules/YourRuleName.php`: the rule itself * `library/Exceptions/YourRuleNameException.php`: the exception thrown by the rule * `tests/Rules/YourRuleNameTest.php`: tests for the rule Classes are pretty straightforward. In the sample below, we're going to create a validator that validates if a string is equal "Hello World". ## Samples The rule itself needs to implement the `Validatable` interface. Also, it is convenient to extend the `AbstractRule`. Doing that, you'll only need to declare one method: `validate($input)`. This method must return `true` or `false`. If your validator class is `HelloWorld`, it will be available as `v::helloWorld()` and will natively have support for chaining and everything else. ```php namespace Respect\Validation\Rules; class HelloWorld extends AbstractRule { public function validate($input) { return $input === 'Hello World'; } } ``` Just that and we're done with the rule code. The Exception requires you to declare messages used by `assert()` and `check()`. Messages are declared in affirmative and negative moods, so if anyone calls `v::not(v::helloWorld())` the library will show the appropriate message. ```php namespace Respect\Validation\Exceptions; class HelloWorldException extends ValidationException { public static $defaultTemplates = array( self::MODE_DEFAULT => array( self::STANDARD => '{{name}} must be a Hello World', ), self::MODE_NEGATIVE => array( self::STANDARD => '{{name}} must not be a Hello World', ) ); } ``` Finally, we need to test if everything is running smooth: ```php namespace Respect\Validation\Rules; class HelloWorldTest extends \PHPUnit_Framework_TestCase { public function testShouldValidateAValidHelloWorld() { $rule = new HelloWorld(); $this->assertTrue($rule->validate('Hello World')); } public function testNotValidateAnInvalidHelloWorld() { $rule = new HelloWorld(); $this->assertFalse($rule->validate('Hello Moon')); } /** * @expectedException Respect\Validation\Exceptions\HelloWorldException * @expectedExceptionMessage "Hello Mars" must be a Hello World */ public function testShouldThowsTheRightExceptionWhenChecking() { $rule = new HelloWorld(); $rule->check('Hello Mars'); } } ``` PS.: We strongly recommend you use [Data Providers](https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers). ## Documentation Our docs at http://documentup.com/Respect/Validation are generated from our Markdown files. Add your brand new rule there and everything will be updated as soon as possible. ## Running Tests After run `composer install` on the library's root directory you must run PHPUnit. ### Linux You can test the project using the commands: ```sh $ vendor/bin/phpunit ``` ### Windows You can test the project using the commands: ```sh > vendor\bin\phpunit ``` No test should fail. You can tweak the PHPUnit's settings by copying `phpunit.xml.dist` to `phpunit.xml` and changing it according to your needs.
Java
/* PIED DE PAGE*/ #nom_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } #prenom_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } #date_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } #sexe_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } #adresse_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } #nationalite_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } #effectuer_ input[type="text"] { /*le input ou le textarea*/ background-color: #fffffa; /*la couleur du champ*/ height: 25px; /*la hauteur du champ input*/ width: 100%; /* la largeur du champ input*/ } /* EN TETE*/ #nom { width: 13%; } #prenom { width: 15%; } #date { width: 12%; } #sexe { width: 7%; } #adresse { width: 28%; } #nationalite { width: 15%; } #effectuer { width: 10%; } /* STYLE POUR LA LISTE DE SELECTION DE LA TABLE*/ #listeDataTable{ margin-top: 0px; margin-bottom: 0px; margin-left: -10px; } .dataTables_paginate * { background: #e9e8e8; padding-top: 6px; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; color: black; /*margin-top: 100px;*/ cursor: pointer; } div .dataTables_paginate { margin-bottom: 20px; } .dataTables_paginate .first { margin-right: 0px; } .dataTables_paginate .last { margin-left: 0px; } .dataTables_paginate .previous { margin-right: 2px; border-left: 1px solid #bdb9b9; } .dataTables_paginate .next { margin-left: 3px; border-right: 1px solid #bdb9b9; } .dataTables_paginate a:hover { text-decoration: none; background-color: #c3c1c1; color: white; } .dataTables_paginate .paginate_active { text-decoration: none; background-color: #b5b2b2; color: white; } #liste_personnel select { border-right-width: 2px; border-left-width: 2px; border-top-width: 2px; border-bottom-width: 2px; border-color: #cccccc;" } .foot_style th { font-size: 14px; font-weight: normal; color: #fefefe; padding-top: 10px; padding-right: 8px; padding-bottom: 5px; padding-left: 8px; border-bottom-width: 0px; } #titre, #titre2 { height: 30px; border: 2px solid #ccc; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom: 2px solid #cccccc; background : #fff; padding-left: 10px; padding-bottom: 5px; padding-top : 13px; box-shadow: 0pt 0pt 12px rgba(0, 0, 0, 0.5); } #contenu { background: #fff; max-height: 1000px; border: 2px solid #ccc ; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; border-top: 2px solid #cccccc; padding-left: 20px; padding-right: 25px; padding-top: 5px; padding-bottom: 10px; box-shadow: 0pt 5pt 12px rgba(0, 0, 0, 0.5); } tr:hover { background: white; } #vue_patient{ min-height:385px; background: #fff; border: 2px solid #ccc; border-top: 2px solid #cccccc; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; box-shadow: 0pt 5pt 12px rgba(0, 0, 0, 0.5); } #circonstance_deces{ width: 260px; height: 80px; border: 1px solid #ccc ; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; border-top-right-radius: 10px; } #photo, #modifier_photo /*photo*/ { width: 100px; float: left; border-top-width: 10px; border-right-width: 10px; border-right-width-ltr-source: physical; border-right-width-rtl-source: physical; border-bottom-width: 10px; border-left-width: 10px; border-left-width-ltr-source: physical; border-left-width-rtl-source: physical; border-top-style: solid; border-right-style: solid; border-right-style-ltr-source: physical; border-right-style-rtl-source: physical; border-bottom-style: solid; border-left-style: solid; border-left-style-ltr-source: physical; border-left-style-rtl-source: physical; border-top-color: white; border-right-color: white; border-right-color-ltr-source: physical; border-right-color-rtl-source: physical; border-bottom-color: white; border-left-color: white; border-left-color-ltr-source: physical; border-left-color-rtl-source: physical; box-shadow: 0pt 0pt 12px rgba(0, 0, 0, 0.2); } /****************************BOUTON************************/ #thoughtbot button { width:auto; padding:8px 0; text-align:center; display: inline-block; float:left; margin:0 0px 0 0; border-radius:7px; font-size: 0.85em; font-weight: bold; width:80px; color:#000; font-family: Arial,sans-serif; box-shadow: 0 0 1px rgba( 0, 0, 0, 0.2), 0 -1px 0 rgba( 255, 255, 255, 0.1); text-shadow: 0px 1px 0px rgba( 255, 255, 255, 0.3); } #thoughtbot button:hover { background: #ccc; background: -webkit-linear-gradient( #eee, #aaa); background: -moz-linear-gradient( #eee, #aaa); background: -ms-linear-gradient( #eee, #aaa); background: -o-linear-gradient( #eee, #aaa); background: linear-gradient( #eee, #aaa); } #titre_info_admis{ font-style: italic; font-family: Times New Roman; font-size: 18px; color: green; margin-top: 210px; margin-left: 18%; } #barre_separateur { border-bottom: 2px solid #ccc; margin-top: 2px; margin-left: 18%; } #barre_separateur_modif { border-bottom: 2px solid #ccc; margin-top: 3px; margin-left: 195px; } a{ color: black; } p{ font-family: Times New Roman; color: #065d10; } #inform{ /*Données du décès l'id se trouve dans le controller Facturation*/ font-family: Times New Roman; color: #065d10; } /***************************************************************************************************************************************************/ #titre_info_deces_modif{ font-style: italic; font-family: Times New Roman; font-size: 18px; color: green; margin-top: 180px; margin-left: 195px; } #modifier_donnees_deces { height: 510px; background: #fff; border: 2px solid #ccc; border-top: 2px solid #cccccc; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; box-shadow: 0pt 5pt 12px rgba(0, 0, 0, 0.5); } #barre_vertical{ width: 2px; height: 190px; float: left; margin-right: 2px; margin-left: 10px; background-color: #cccccc; margin-top:20px; } #menu{ width:5%; height: 150px; float: left; margin-right: 2px; background-color: #ffffff; margin-top:20px; } .vider_formulaire,.modifer_donnees,.supprimer_photo,.ajouter_photo{ position:relative; width:20px; height:20px; display: inline;float:left;border:transparent; margin-bottom: 10px; } .vider_formulaire { background: url("/simens_derniereversion/public/images_icons/annuler1.PNG") no-repeat right top; } .modifer_donnees { background: url("/simens_derniereversion/public/images_icons/modifier.png") no-repeat right top; } .supprimer_photo { background: url("/simens_derniereversion/public/images_icons/mod.png") no-repeat right top; } .ajouter_photo { background: url("/simens_derniereversion/public/images_icons/ajouterphoto.png") no-repeat right top; } .vider_formulaire input, .modifer_donnees input, .ajouter_photo input, .supprimer_photo input{ position:absolute; right:0; top:0; font-size:100px; opacity:0; -moz-opacity:0; filter:alpha(opacity=0); cursor:pointer; text-align:right; width:20px; height:20px; } /*-----STYLE FORMULAIRE ETAT CIVIL DU PATIENT-----*/ /*-----STYLE FORMULAIRE ETAT CIVIL DU PATIENT-----*/ /*-----STYLE FORMULAIRE ETAT CIVIL DU PATIENT-----*/ #form_patient .comment-form-patient label, #form_patient .comment-form-email label, #form_patient .comment-form-url label, #form_patient .comment-form-comment label {/* le label*/ line-height: 1.5em; background-color: #eeeeee; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; /*border-top-left-radius: 15px; */ border-top-right-radius: 15px; background-size: auto auto; box-shadow: 1px 2px 2px rgba(204, 204, 204, 0.8); color: #555555; display: inline-block; font-size: 13px; left: 0px; /*déplacer le label*/ min-width: 60px; padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; position: relative; top: 5px; z-index: 1; } #form_patient select { background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; background-size: auto auto; border-top-width: 4px; border-right-width-value: 4px; border-top-right-radius: 10px; border-right-width-ltr-source: physical; border-right-width-rtl-source: physical; border-bottom-width: 4px; border-left-width-value: 4px; border-left-width-ltr-source: physical; border-left-width-rtl-source: physical; border-top-style: solid; border-right-style-value: solid; border-right-style-ltr-source: physical; border-right-style-rtl-source: physical; border-bottom-style: solid; border-left-style-value: solid; border-left-style-ltr-source: physical; border-left-style-rtl-source: physical; border-top-color: #cccccc; border-right-color-value: #eeeeee; border-right-color-ltr-source: physical; border-right-color-rtl-source: physical; border-bottom-color: #cccccc; border-left-color-value: #eeeeee; border-left-color-ltr-source: physical; border-left-color-rtl-source: physical; border-top-left-radius: 5px; border-top-right-radius: 10px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; box-shadow: 0pt 1px 3px rgba(204, 204, 204, 0.95) inset; position: relative; /* les cotés des champs */ border-right-width: 2px; border-left-width: 2px; border-top-width: 2px; border-bottom-width: 2px; border-left-color: #cccccc; border-right-color: #cccccc; float: left; margin-left: 0px; margin-right: 25px; margin-bottom: 15px; /*enlever l'icone select*/ /****-webkit-appearance: none;*****/ } #form_patient option{ min-width:100px; color:#00f; background-color:#eee; font-size: 13pt; overflow: auto; } #form_patient input[type="text"], #form_patient textarea { /*le input ou le textarea*/ background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; background-size: auto auto; border-top-width: 2px; border-right-width-value: 2px; border-right-width-ltr-source: physical; border-right-width-rtl-source: physical; border-bottom-width: 2px; border-left-width-value: 2px; border-left-width-ltr-source: physical; border-left-width-rtl-source: physical; border-top-style: solid; border-right-style-value: solid; border-right-style-ltr-source: physical; border-right-style-rtl-source: physical; border-bottom-style: solid; border-left-style-value: solid; border-left-style-ltr-source: physical; border-left-style-rtl-source: physical; border-right-color-value: #eeeeee; border-right-color-ltr-source: physical; border-right-color-rtl-source: physical; border-left-color-value: #eeeeee; border-left-color-ltr-source: physical; border-left-color-rtl-source: physical; border-top-left-radius: 5px; border-top-right-radius: 10px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; box-shadow: 0pt 1px 3px rgba(204, 204, 204, 0.95) inset; /* le texte des champs*/ padding-top: 5px; padding-right: 10px; padding-bottom: 5px; margin-bottom : 15px; margin-right: 25px; padding-left: 10px; /* padding du text dans le champ*/ text-indent: 0px; /* alignement du text dans le champ input*/ font-size: 16px; } #form_patient select { display: block; height: 30px; /*la hauteur du champ input*/ width: 87%;/*225px; /*la largeur du champ input*/ } #form_patient input { height: 30px; width: 87%; } #form_patient textarea { height: 90px; width: 87%; } /****************************BOUTON************************/ #terminer_annuler{ float: left; width: 200px; height: 40px; margin-left: 490px; margin-top: 10px; } #thoughtbot button { width:auto; padding:8px 0; text-align:center; display: inline-block; float:left; margin:0 8px 0 0; border-radius:7px; font-size: 0.85em; font-weight: bold; width:80px; color:#000; font-family: Arial,sans-serif; box-shadow: 0 0 1px rgba( 0, 0, 0, 0.2), 0 -1px 0 rgba( 255, 255, 255, 0.1); text-shadow: 0px 1px 0px rgba( 255, 255, 255, 0.3); } #thoughtbot button:hover { background: #ccc; background: -webkit-linear-gradient( #eee, #aaa); background: -moz-linear-gradient( #eee, #aaa); background: -ms-linear-gradient( #eee, #aaa); background: -o-linear-gradient( #eee, #aaa); background: linear-gradient( #eee, #aaa); } /***************************************************************************************************************************************************/ #zoneTexte{ height: 40px; border: 2px solid #cccccc ; border-bottom-left-radius: 10px; border-top-right-radius: 10px; } #zoneChampInfo{ height: 40px; border: 2px solid #cccccc ; border-bottom-left-radius: 10px; border-top-right-radius: 10px; } #zoneChampInfo1{ min-height: 30px; border: 1px solid #cccccc ; border-bottom-left-radius: 10px; border-top-right-radius: 10px; margin-right: 8px; font-family: Iskoola Pota; } #zoneChampInfoVue{ width: 95%; min-height: 25px; font-size: 17px; border: 1px solid #cccccc ; border-bottom-left-radius: 10px; } #labelHeureLABEL { line-height: 1.5em; background-color: #ececec; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; border-top-right-radius: 10px; background-size: auto auto; box-shadow: 1px 2px 2px rgba(204, 204, 204, 0.8); color: black; display: inline-block; font-size: 16px; min-width: 60px; padding-top: 4px; padding-right: 5px; padding-bottom: 0px; padding-left: 10px; position: relative; font-family: Goudy Old Style; top: 0px; z-index: 1; } #labelHeureLABELVue { line-height: 1.2em; background-color: #e1e1e1; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; border-top-right-radius: 10px; background-size: auto auto; box-shadow: 1px 2px 2px rgba(204, 204, 204, 0.7); color: #555555; display: inline-block; font-size: 6px; width: 95%; padding-top: 4px; padding-bottom: 0px; padding-left: 10px; position: relative; top: 0px; z-index: 1; }
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=Home.action"> </head> <body> <p>Loading ...</p> </body> </html>
Java
// // Copyright 2015 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // texture_format_util: // Contains helper functions for texture_format_table // #include "libANGLE/renderer/d3d/d3d11/texture_format_util.h" #include "libANGLE/renderer/d3d/d3d11/formatutils11.h" #include "libANGLE/renderer/d3d/loadimage.h" #include "libANGLE/renderer/d3d/loadimage_etc.h" namespace rx { namespace d3d11 { namespace { // ES3 image loading functions vary based on: // - the GL internal format (supplied to glTex*Image*D) // - the GL data type given (supplied to glTex*Image*D) // - the target DXGI_FORMAT that the image will be loaded into (which is chosen based on the D3D // device's capabilities) // This map type determines which loading function to use, based on these three parameters. // Source formats and types are taken from Tables 3.2 and 3.3 of the ES 3 spec. void UnimplementedLoadFunction(size_t width, size_t height, size_t depth, const uint8_t *input, size_t inputRowPitch, size_t inputDepthPitch, uint8_t *output, size_t outputRowPitch, size_t outputDepthPitch) { UNIMPLEMENTED(); } void UnreachableLoadFunction(size_t width, size_t height, size_t depth, const uint8_t *input, size_t inputRowPitch, size_t inputDepthPitch, uint8_t *output, size_t outputRowPitch, size_t outputDepthPitch) { UNREACHABLE(); } // A helper function to insert data into the D3D11LoadFunctionMap with fewer characters. inline void InsertLoadFunction(D3D11LoadFunctionMap *map, GLenum internalFormat, GLenum type, DXGI_FORMAT dxgiFormat, LoadImageFunction loadFunc) { (*map)[internalFormat].push_back(GLTypeDXGIFunctionPair(type, DxgiFormatLoadFunctionPair(dxgiFormat, loadFunc))); } } // namespace // TODO: This will be generated by a JSON file const D3D11LoadFunctionMap &BuildD3D11LoadFunctionMap() { static D3D11LoadFunctionMap map; // clang-format off // | Internal format | Type | Target DXGI Format | Load function | InsertLoadFunction(&map, GL_RGBA8, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_RGB5_A1, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_RGBA4, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_SRGB8_ALPHA8, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_RGBA8_SNORM, GL_BYTE, DXGI_FORMAT_R8G8B8A8_SNORM, LoadToNative<GLbyte, 4> ); InsertLoadFunction(&map, GL_RGBA4, GL_UNSIGNED_SHORT_4_4_4_4, DXGI_FORMAT_R8G8B8A8_UNORM, LoadRGBA4ToRGBA8 ); InsertLoadFunction(&map, GL_RGBA4, GL_UNSIGNED_SHORT_4_4_4_4, DXGI_FORMAT_B4G4R4A4_UNORM, LoadRGBA4ToARGB4 ); InsertLoadFunction(&map, GL_RGB10_A2, GL_UNSIGNED_INT_2_10_10_10_REV, DXGI_FORMAT_R10G10B10A2_UNORM, LoadToNative<GLuint, 1> ); InsertLoadFunction(&map, GL_RGB5_A1, GL_UNSIGNED_SHORT_5_5_5_1, DXGI_FORMAT_R8G8B8A8_UNORM, LoadRGB5A1ToRGBA8 ); InsertLoadFunction(&map, GL_RGB5_A1, GL_UNSIGNED_SHORT_5_5_5_1, DXGI_FORMAT_B5G5R5A1_UNORM, LoadRGB5A1ToA1RGB5 ); InsertLoadFunction(&map, GL_RGB5_A1, GL_UNSIGNED_INT_2_10_10_10_REV, DXGI_FORMAT_R8G8B8A8_UNORM, LoadRGB10A2ToRGBA8 ); InsertLoadFunction(&map, GL_RGBA16F, GL_HALF_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadToNative<GLhalf, 4> ); InsertLoadFunction(&map, GL_RGBA16F, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadToNative<GLhalf, 4> ); InsertLoadFunction(&map, GL_RGBA32F, GL_FLOAT, DXGI_FORMAT_R32G32B32A32_FLOAT, LoadToNative<GLfloat, 4> ); InsertLoadFunction(&map, GL_RGBA16F, GL_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, Load32FTo16F<4> ); InsertLoadFunction(&map, GL_RGBA8UI, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UINT, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_RGBA8I, GL_BYTE, DXGI_FORMAT_R8G8B8A8_SINT, LoadToNative<GLbyte, 4> ); InsertLoadFunction(&map, GL_RGBA16UI, GL_UNSIGNED_SHORT, DXGI_FORMAT_R16G16B16A16_UINT, LoadToNative<GLushort, 4> ); InsertLoadFunction(&map, GL_RGBA16I, GL_SHORT, DXGI_FORMAT_R16G16B16A16_SINT, LoadToNative<GLshort, 4> ); InsertLoadFunction(&map, GL_RGBA32UI, GL_UNSIGNED_INT, DXGI_FORMAT_R32G32B32A32_UINT, LoadToNative<GLuint, 4> ); InsertLoadFunction(&map, GL_RGBA32I, GL_INT, DXGI_FORMAT_R32G32B32A32_SINT, LoadToNative<GLint, 4> ); InsertLoadFunction(&map, GL_RGB10_A2UI, GL_UNSIGNED_INT_2_10_10_10_REV, DXGI_FORMAT_R10G10B10A2_UINT, LoadToNative<GLuint, 1> ); InsertLoadFunction(&map, GL_RGB8, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadToNative3To4<GLubyte, 0xFF> ); InsertLoadFunction(&map, GL_RGB565, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadToNative3To4<GLubyte, 0xFF> ); InsertLoadFunction(&map, GL_SRGB8, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, LoadToNative3To4<GLubyte, 0xFF> ); InsertLoadFunction(&map, GL_RGB8_SNORM, GL_BYTE, DXGI_FORMAT_R8G8B8A8_SNORM, LoadToNative3To4<GLbyte, 0x7F> ); InsertLoadFunction(&map, GL_RGB565, GL_UNSIGNED_SHORT_5_6_5, DXGI_FORMAT_R8G8B8A8_UNORM, LoadR5G6B5ToRGBA8 ); InsertLoadFunction(&map, GL_RGB565, GL_UNSIGNED_SHORT_5_6_5, DXGI_FORMAT_B5G6R5_UNORM, LoadToNative<GLushort, 1> ); InsertLoadFunction(&map, GL_R11F_G11F_B10F, GL_UNSIGNED_INT_10F_11F_11F_REV, DXGI_FORMAT_R11G11B10_FLOAT, LoadToNative<GLuint, 1> ); InsertLoadFunction(&map, GL_RGB9_E5, GL_UNSIGNED_INT_5_9_9_9_REV, DXGI_FORMAT_R9G9B9E5_SHAREDEXP, LoadToNative<GLuint, 1> ); InsertLoadFunction(&map, GL_RGB16F, GL_HALF_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadToNative3To4<GLhalf, gl::Float16One>); InsertLoadFunction(&map, GL_RGB16F, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadToNative3To4<GLhalf, gl::Float16One>); InsertLoadFunction(&map, GL_R11F_G11F_B10F, GL_HALF_FLOAT, DXGI_FORMAT_R11G11B10_FLOAT, LoadRGB16FToRG11B10F ); InsertLoadFunction(&map, GL_R11F_G11F_B10F, GL_HALF_FLOAT_OES, DXGI_FORMAT_R11G11B10_FLOAT, LoadRGB16FToRG11B10F ); InsertLoadFunction(&map, GL_RGB9_E5, GL_HALF_FLOAT, DXGI_FORMAT_R9G9B9E5_SHAREDEXP, LoadRGB16FToRGB9E5 ); InsertLoadFunction(&map, GL_RGB9_E5, GL_HALF_FLOAT_OES, DXGI_FORMAT_R9G9B9E5_SHAREDEXP, LoadRGB16FToRGB9E5 ); InsertLoadFunction(&map, GL_RGB32F, GL_FLOAT, DXGI_FORMAT_R32G32B32A32_FLOAT, LoadToNative3To4<GLfloat, gl::Float32One>); InsertLoadFunction(&map, GL_RGB16F, GL_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadRGB32FToRGBA16F ); InsertLoadFunction(&map, GL_R11F_G11F_B10F, GL_FLOAT, DXGI_FORMAT_R11G11B10_FLOAT, LoadRGB32FToRG11B10F ); InsertLoadFunction(&map, GL_RGB9_E5, GL_FLOAT, DXGI_FORMAT_R9G9B9E5_SHAREDEXP, LoadRGB32FToRGB9E5 ); InsertLoadFunction(&map, GL_RGB8UI, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UINT, LoadToNative3To4<GLubyte, 0x01> ); InsertLoadFunction(&map, GL_RGB8I, GL_BYTE, DXGI_FORMAT_R8G8B8A8_SINT, LoadToNative3To4<GLbyte, 0x01> ); InsertLoadFunction(&map, GL_RGB16UI, GL_UNSIGNED_SHORT, DXGI_FORMAT_R16G16B16A16_UINT, LoadToNative3To4<GLushort, 0x0001> ); InsertLoadFunction(&map, GL_RGB16I, GL_SHORT, DXGI_FORMAT_R16G16B16A16_SINT, LoadToNative3To4<GLshort, 0x0001> ); InsertLoadFunction(&map, GL_RGB32UI, GL_UNSIGNED_INT, DXGI_FORMAT_R32G32B32A32_UINT, LoadToNative3To4<GLuint, 0x00000001> ); InsertLoadFunction(&map, GL_RGB32I, GL_INT, DXGI_FORMAT_R32G32B32A32_SINT, LoadToNative3To4<GLint, 0x00000001> ); InsertLoadFunction(&map, GL_RG8, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8_UNORM, LoadToNative<GLubyte, 2> ); InsertLoadFunction(&map, GL_RG8_SNORM, GL_BYTE, DXGI_FORMAT_R8G8_SNORM, LoadToNative<GLbyte, 2> ); InsertLoadFunction(&map, GL_RG16F, GL_HALF_FLOAT, DXGI_FORMAT_R16G16_FLOAT, LoadToNative<GLhalf, 2> ); InsertLoadFunction(&map, GL_RG16F, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16G16_FLOAT, LoadToNative<GLhalf, 2> ); InsertLoadFunction(&map, GL_RG32F, GL_FLOAT, DXGI_FORMAT_R32G32_FLOAT, LoadToNative<GLfloat, 2> ); InsertLoadFunction(&map, GL_RG16F, GL_FLOAT, DXGI_FORMAT_R16G16_FLOAT, Load32FTo16F<2> ); InsertLoadFunction(&map, GL_RG8UI, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8_UINT, LoadToNative<GLubyte, 2> ); InsertLoadFunction(&map, GL_RG8I, GL_BYTE, DXGI_FORMAT_R8G8_SINT, LoadToNative<GLbyte, 2> ); InsertLoadFunction(&map, GL_RG16UI, GL_UNSIGNED_SHORT, DXGI_FORMAT_R16G16_UINT, LoadToNative<GLushort, 2> ); InsertLoadFunction(&map, GL_RG16I, GL_SHORT, DXGI_FORMAT_R16G16_SINT, LoadToNative<GLshort, 2> ); InsertLoadFunction(&map, GL_RG32UI, GL_UNSIGNED_INT, DXGI_FORMAT_R32G32_UINT, LoadToNative<GLuint, 2> ); InsertLoadFunction(&map, GL_RG32I, GL_INT, DXGI_FORMAT_R32G32_SINT, LoadToNative<GLint, 2> ); InsertLoadFunction(&map, GL_R8, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8_UNORM, LoadToNative<GLubyte, 1> ); InsertLoadFunction(&map, GL_R8_SNORM, GL_BYTE, DXGI_FORMAT_R8_SNORM, LoadToNative<GLbyte, 1> ); InsertLoadFunction(&map, GL_R16F, GL_HALF_FLOAT, DXGI_FORMAT_R16_FLOAT, LoadToNative<GLhalf, 1> ); InsertLoadFunction(&map, GL_R16F, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16_FLOAT, LoadToNative<GLhalf, 1> ); InsertLoadFunction(&map, GL_R32F, GL_FLOAT, DXGI_FORMAT_R32_FLOAT, LoadToNative<GLfloat, 1> ); InsertLoadFunction(&map, GL_R16F, GL_FLOAT, DXGI_FORMAT_R16_FLOAT, Load32FTo16F<1> ); InsertLoadFunction(&map, GL_R8UI, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8_UINT, LoadToNative<GLubyte, 1> ); InsertLoadFunction(&map, GL_R8I, GL_BYTE, DXGI_FORMAT_R8_SINT, LoadToNative<GLbyte, 1> ); InsertLoadFunction(&map, GL_R16UI, GL_UNSIGNED_SHORT, DXGI_FORMAT_R16_UINT, LoadToNative<GLushort, 1> ); InsertLoadFunction(&map, GL_R16I, GL_SHORT, DXGI_FORMAT_R16_SINT, LoadToNative<GLshort, 1> ); InsertLoadFunction(&map, GL_R32UI, GL_UNSIGNED_INT, DXGI_FORMAT_R32_UINT, LoadToNative<GLuint, 1> ); InsertLoadFunction(&map, GL_R32I, GL_INT, DXGI_FORMAT_R32_SINT, LoadToNative<GLint, 1> ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT16, GL_UNSIGNED_SHORT, DXGI_FORMAT_R16_TYPELESS, LoadToNative<GLushort, 1> ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT16, GL_UNSIGNED_SHORT, DXGI_FORMAT_D16_UNORM, LoadToNative<GLushort, 1> ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT24, GL_UNSIGNED_INT, DXGI_FORMAT_R24G8_TYPELESS, LoadR32ToR24G8 ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT24, GL_UNSIGNED_INT, DXGI_FORMAT_D24_UNORM_S8_UINT, LoadR32ToR24G8 ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT16, GL_UNSIGNED_INT, DXGI_FORMAT_R16_TYPELESS, LoadR32ToR16 ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT32F, GL_FLOAT, DXGI_FORMAT_R32_TYPELESS, LoadToNative<GLfloat, 1> ); InsertLoadFunction(&map, GL_DEPTH_COMPONENT32F, GL_FLOAT, DXGI_FORMAT_UNKNOWN, UnimplementedLoadFunction ); InsertLoadFunction(&map, GL_DEPTH24_STENCIL8, GL_UNSIGNED_INT_24_8, DXGI_FORMAT_R24G8_TYPELESS, LoadR32ToR24G8 ); InsertLoadFunction(&map, GL_DEPTH24_STENCIL8, GL_UNSIGNED_INT_24_8, DXGI_FORMAT_D24_UNORM_S8_UINT, LoadR32ToR24G8 ); InsertLoadFunction(&map, GL_DEPTH32F_STENCIL8, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, DXGI_FORMAT_R32G8X24_TYPELESS, LoadToNative<GLuint, 2> ); InsertLoadFunction(&map, GL_DEPTH32F_STENCIL8, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, DXGI_FORMAT_UNKNOWN, UnimplementedLoadFunction ); InsertLoadFunction(&map, GL_STENCIL_INDEX8, DXGI_FORMAT_R24G8_TYPELESS, DXGI_FORMAT_UNKNOWN, UnimplementedLoadFunction ); InsertLoadFunction(&map, GL_STENCIL_INDEX8, DXGI_FORMAT_D24_UNORM_S8_UINT, DXGI_FORMAT_UNKNOWN, UnimplementedLoadFunction ); // Unsized formats // Load functions are unreachable because they are converted to sized internal formats based on // the format and type before loading takes place. InsertLoadFunction(&map, GL_RGBA, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_RGB, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_LUMINANCE, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_ALPHA, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); InsertLoadFunction(&map, GL_BGRA_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, UnreachableLoadFunction ); // From GL_OES_texture_float InsertLoadFunction(&map, GL_LUMINANCE_ALPHA, GL_FLOAT, DXGI_FORMAT_R32G32B32A32_FLOAT, LoadLA32FToRGBA32F ); InsertLoadFunction(&map, GL_LUMINANCE, GL_FLOAT, DXGI_FORMAT_R32G32B32A32_FLOAT, LoadL32FToRGBA32F ); InsertLoadFunction(&map, GL_ALPHA, GL_FLOAT, DXGI_FORMAT_R32G32B32A32_FLOAT, LoadA32FToRGBA32F ); // From GL_OES_texture_half_float InsertLoadFunction(&map, GL_LUMINANCE_ALPHA, GL_HALF_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadLA16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE_ALPHA, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadLA16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE, GL_HALF_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadL16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadL16FToRGBA16F ); InsertLoadFunction(&map, GL_ALPHA, GL_HALF_FLOAT, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadA16FToRGBA16F ); InsertLoadFunction(&map, GL_ALPHA, GL_HALF_FLOAT_OES, DXGI_FORMAT_R16G16B16A16_FLOAT, LoadA16FToRGBA16F ); // From GL_EXT_texture_storage InsertLoadFunction(&map, GL_ALPHA8_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_A8_UNORM, LoadToNative<GLubyte, 1> ); InsertLoadFunction(&map, GL_ALPHA8_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadA8ToRGBA8 ); InsertLoadFunction(&map, GL_LUMINANCE8_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadL8ToRGBA8 ); InsertLoadFunction(&map, GL_LUMINANCE8_ALPHA8_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadLA8ToRGBA8 ); InsertLoadFunction(&map, GL_ALPHA32F_EXT, GL_FLOAT, DXGI_FORMAT_UNKNOWN, LoadA32FToRGBA32F ); InsertLoadFunction(&map, GL_LUMINANCE32F_EXT, GL_FLOAT, DXGI_FORMAT_UNKNOWN, LoadL32FToRGBA32F ); InsertLoadFunction(&map, GL_LUMINANCE_ALPHA32F_EXT, GL_FLOAT, DXGI_FORMAT_UNKNOWN, LoadLA32FToRGBA32F ); InsertLoadFunction(&map, GL_ALPHA16F_EXT, GL_HALF_FLOAT, DXGI_FORMAT_UNKNOWN, LoadA16FToRGBA16F ); InsertLoadFunction(&map, GL_ALPHA16F_EXT, GL_HALF_FLOAT_OES, DXGI_FORMAT_UNKNOWN, LoadA16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE16F_EXT, GL_HALF_FLOAT, DXGI_FORMAT_UNKNOWN, LoadL16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE16F_EXT, GL_HALF_FLOAT_OES, DXGI_FORMAT_UNKNOWN, LoadL16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE_ALPHA16F_EXT, GL_HALF_FLOAT, DXGI_FORMAT_UNKNOWN, LoadLA16FToRGBA16F ); InsertLoadFunction(&map, GL_LUMINANCE_ALPHA16F_EXT, GL_HALF_FLOAT_OES, DXGI_FORMAT_UNKNOWN, LoadLA16FToRGBA16F ); // From GL_ANGLE_depth_texture InsertLoadFunction(&map, GL_DEPTH_COMPONENT32_OES, GL_UNSIGNED_INT, DXGI_FORMAT_UNKNOWN, LoadR32ToR24G8 ); // From GL_EXT_texture_format_BGRA8888 InsertLoadFunction(&map, GL_BGRA8_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_BGRA4_ANGLEX, GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT, DXGI_FORMAT_UNKNOWN, LoadRGBA4ToRGBA8 ); InsertLoadFunction(&map, GL_BGRA4_ANGLEX, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadToNative<GLubyte, 4> ); InsertLoadFunction(&map, GL_BGR5_A1_ANGLEX, GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT, DXGI_FORMAT_UNKNOWN, LoadRGB5A1ToRGBA8 ); InsertLoadFunction(&map, GL_BGR5_A1_ANGLEX, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadToNative<GLubyte, 4> ); // Compressed formats // From ES 3.0.1 spec, table 3.16 // | Internal format | Type | Target DXGI Format | Load function InsertLoadFunction(&map, GL_COMPRESSED_R11_EAC, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8_UNORM, LoadEACR11ToR8 ); InsertLoadFunction(&map, GL_COMPRESSED_SIGNED_R11_EAC, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8_SNORM, LoadEACR11SToR8 ); InsertLoadFunction(&map, GL_COMPRESSED_RG11_EAC, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8_UNORM, LoadEACRG11ToRG8 ); InsertLoadFunction(&map, GL_COMPRESSED_SIGNED_RG11_EAC, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8_SNORM, LoadEACRG11SToRG8 ); InsertLoadFunction(&map, GL_COMPRESSED_RGB8_ETC2, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadETC2RGB8ToRGBA8 ); InsertLoadFunction(&map, GL_COMPRESSED_SRGB8_ETC2, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, LoadETC2SRGB8ToRGBA8 ); InsertLoadFunction(&map, GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadETC2RGB8A1ToRGBA8 ); InsertLoadFunction(&map, GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, LoadETC2SRGB8A1ToRGBA8); InsertLoadFunction(&map, GL_COMPRESSED_RGBA8_ETC2_EAC, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadETC2RGBA8ToRGBA8 ); InsertLoadFunction(&map, GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, LoadETC2SRGBA8ToSRGBA8); // From GL_ETC1_RGB8_OES InsertLoadFunction(&map, GL_ETC1_RGB8_OES, GL_UNSIGNED_BYTE, DXGI_FORMAT_R8G8B8A8_UNORM, LoadETC1RGB8ToRGBA8 ); // From GL_EXT_texture_compression_dxt1 InsertLoadFunction(&map, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadCompressedToNative<4, 4, 8> ); InsertLoadFunction(&map, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadCompressedToNative<4, 4, 8> ); // From GL_ANGLE_texture_compression_dxt3 InsertLoadFunction(&map, GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadCompressedToNative<4, 4, 16> ); // From GL_ANGLE_texture_compression_dxt5 InsertLoadFunction(&map, GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE, GL_UNSIGNED_BYTE, DXGI_FORMAT_UNKNOWN, LoadCompressedToNative<4, 4, 16> ); // clang-format on return map; } typedef std::pair<InitializeTextureFormatPair, InitializeTextureDataFunction> InternalFormatInitializerPair; // TODO: This should be generated by a JSON file const InternalFormatInitializerMap &BuildInternalFormatInitializerMap() { static InternalFormatInitializerMap map; map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB8, DXGI_FORMAT_R8G8B8A8_UNORM), Initialize4ComponentData<GLubyte, 0x00, 0x00, 0x00, 0xFF>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB565, DXGI_FORMAT_R8G8B8A8_UNORM), Initialize4ComponentData<GLubyte, 0x00, 0x00, 0x00, 0xFF>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_SRGB8, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB), Initialize4ComponentData<GLubyte, 0x00, 0x00, 0x00, 0xFF>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB16F, DXGI_FORMAT_R16G16B16A16_FLOAT), Initialize4ComponentData<GLhalf, 0x0000, 0x0000, 0x0000, gl::Float16One>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB32F, DXGI_FORMAT_R32G32B32A32_FLOAT), Initialize4ComponentData<GLfloat, 0x00000000, 0x00000000, 0x00000000, gl::Float32One>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB8UI, DXGI_FORMAT_R8G8B8A8_UINT), Initialize4ComponentData<GLubyte, 0x00, 0x00, 0x00, 0x01>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB8I, DXGI_FORMAT_R8G8B8A8_SINT), Initialize4ComponentData<GLbyte, 0x00, 0x00, 0x00, 0x01>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB16UI, DXGI_FORMAT_R16G16B16A16_UINT), Initialize4ComponentData<GLushort, 0x0000, 0x0000, 0x0000, 0x0001>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB16I, DXGI_FORMAT_R16G16B16A16_SINT), Initialize4ComponentData<GLshort, 0x0000, 0x0000, 0x0000, 0x0001>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB32UI, DXGI_FORMAT_R32G32B32A32_UINT), Initialize4ComponentData<GLuint, 0x00000000, 0x00000000, 0x00000000, 0x00000001>)); map.insert(InternalFormatInitializerPair( InitializeTextureFormatPair(GL_RGB32I, DXGI_FORMAT_R32G32B32A32_SINT), Initialize4ComponentData<GLint, 0x00000000, 0x00000000, 0x00000000, 0x00000001>)); return map; } } // namespace d3d11 } // namespace rx
Java
#include "atlas_misc.h" #include "camm_strat1.h" void ATL_USET(int len, const SCALAR alpha, TYPE *X, const int incX) { NO_INLINE; #ifndef SREAL len+=len; #endif #ifdef DCPLX len+=len; #endif #define VERS 3 #define N Mjoin(set_,VERS) #ifndef BITS #define BITS 4 #endif #ifndef CL #define CL 24 #endif #ifdef SREAL #undef BITS #define BITS 3 #endif #ifdef DREAL #undef BITS #define BITS 3 #endif #ifdef SCPLX #undef BITS #define BITS 3 #endif #ifdef DCPLX #undef BITS #define BITS 3 #endif /* #include "out.h" */ /* #include "foo.h" */ ASM( #if defined(SREAL) || defined(DREAL) pls(0,cx,0) ps(0,0,0) #elif defined(SCPLX) pld(0,cx,0) plh(0,0) #else pl(0,cx,0) #endif #define ALIGN #define INC(a_) a(a_,ax) #define LR dx #include "camm_tpipe.h" #undef N ::"a" (X), #if defined(SCPLX) || defined(DCPLX) "c" (alpha), #else "c" (&alpha), #endif "d" (len) : "di","memory" ); }
Java
![wordmark](static/images/wordmark.png) ### Free peer-to-peer file transfers in your browser Cooked up by [Alex Kern](http://kern.io) & [Neeraj Baid](http://neeraj.io) while eating *Sliver* @ UC Berkeley. [![XKCD 949](http://imgs.xkcd.com/comics/file_transfer.png)](https://xkcd.com/949/) ## Overview FilePizza enables fast and private peer-to-peer file transfers in your web browser. By using [WebRTC](http://www.webrtc.org), FilePizza eliminates the initial upload traditionally required when sharing files via file sharing services (e.g. Dropbox). Instead of transmitting files through an intermediary server, the sender initializes a transfer and receives a "tempalink" they can distribute. When recipients click on this link, they connect directly to the sender’s browser to complete the download. Because the file never touches the server, the transfer is fast, private, and secure. For larger files, this is an especially big deal. A hosted instance of FilePizza is available at [file.pizza](http://file.pizza). ## Requirements * node `0.12.x` * npm `2.x.x` ## Installation $ npm install filepizza -g $ filepizza You can specify the port that FilePizza's HTTP server uses by setting the `PORT` environment variable (default 3000): $ env PORT=8080 filepizza If you'd like to use [Twilio's STUN/TURN service](https://www.twilio.com/stun-turn) for better connectivity behind NATs, you can specify your SID and token like so: $ env TWILIO_SID=abcdef TWILIO_TOKEN=ghijkl filepizza ## Development $ git clone https://github.com/kern/filepizza.git $ npm install $ npm start FilePizza is an isomorphic React application which uses the Flux application architecture. ES6 features are used liberally and compiled using Babel. Views are rendered on the server, store data is serialized and sent to the client, which then picks up where the server left off. Both client and server JavaScript files can be found in `lib/`. `lib/server.js` and `lib/client.js` are the server and client entrypoints, respectively. `lib/components/`, `lib/stores/`, and `lib/actions/` contain the corresponding Flux modules, implemented using [alt](https://github.com/goatslacker/alt). `lib/routes.js` serves as the isomorphic routes file using [react-router](https://github.com/rackt/react-router). Stylesheets are automatically compiled using Stylus and are available at `/css`. Client-side JavaScript is compiled using Browserify and is available at `/js`. ## FAQ **Where are my files sent?** Your files never touch our server. Instead, they are sent directly from the uploader's browser to the downloader's browser using WebTorrent and WebRTC. This requires that the uploader leave their browser window open until the transfer is complete. **Can multiple people download my file at once?** Yes! Just send them your tempalink. **How big can my files be?** Chrome has issues supporting files >500 MB. Firefox does not have any issues with large files, however. **What happens when I close my browser?** The tempalink is invalidated. If a downloader has completed the transfer, that downloader will continue to seed to incomplete downloaders, but no new downloads may be initiated. **Are my files encrypted?** Yes, all WebRTC communications are automatically encrypted using public-key cryptography. **My files are sending slowly!** Transfer speed is dependent on your network connection. ## Troubleshooting If you receive a `Error: EMFILE, too many open files` error when running `npm start` on a Mac, this is a result of Browserify's compilation step opening up a large number of npm modules all at once. You'll have to increase the maximum number of open files allowed on your system: $ sysctl -w kern.maxfiles=20480 ## License & Acknowledgements FilePizza is released under the [BSD 3-Clause license](https://github.com/kern/filepizza/blob/master/LICENSE). A huge thanks to [WebTorrent](https://github.com/feross/webtorrent) which we use for the file transfers under the hood.
Java
<!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/html; charset=utf-8" /> <title>tools &mdash; Translate Toolkit 1.11.0 documentation</title> <link rel="stylesheet" href="../_static/basic.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/bootstrap.css" type="text/css" /> <link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '1.11.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/bootstrap.js"></script> <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script> <link rel="top" title="Translate Toolkit 1.11.0 documentation" href="../index.html" /> <link rel="up" title="API" href="index.html" /> <link rel="prev" title="storage" href="storage.html" /> </head> <body> <div id="navbar" class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container-fluid"> <a class="brand" href="../index.html">Translate Toolkit</a> <span class="navbar-text pull-left"><b>1.11.0</b></span> <ul class="nav"> <li class="divider-vertical"></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Site <b class="caret"></b></a> <ul class="dropdown-menu globaltoc"><ul class="simple"> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../features.html">Features</a></li> <li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="../commands/index.html">Converters</a></li> <li class="toctree-l1"><a class="reference internal" href="../commands/index.html#tools">Tools</a></li> <li class="toctree-l1"><a class="reference internal" href="../commands/index.html#scripts">Scripts</a></li> <li class="toctree-l1"><a class="reference internal" href="../guides/index.html">Use Cases</a></li> <li class="toctree-l1"><a class="reference internal" href="../formats/index.html">Supported formats</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../developers/styleguide.html">Translate Styleguide</a></li> <li class="toctree-l1"><a class="reference internal" href="../developers/styleguide.html#documentation">Documentation</a></li> <li class="toctree-l1"><a class="reference internal" href="../developers/building.html">Building</a></li> <li class="toctree-l1"><a class="reference internal" href="../developers/testing.html">Testing</a></li> <li class="toctree-l1"><a class="reference internal" href="../developers/contributing.html">Contributing</a></li> <li class="toctree-l1"><a class="reference internal" href="../developers/developers.html">Translate Toolkit Developers Guide</a></li> <li class="toctree-l1"><a class="reference internal" href="../developers/releasing.html">Making a Translate Toolkit Release</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li> <li class="toctree-l1"><a class="reference internal" href="../releases/index.html">Release Notes</a></li> <li class="toctree-l1"><a class="reference internal" href="../history.html">History of the Translate Toolkit</a></li> <li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">API</a></li> </ul> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Page <b class="caret"></b></a> <ul class="dropdown-menu localtoc"><ul> <li><a class="reference internal" href="#">tools</a><ul> <li><a class="reference internal" href="#module-translate.tools.build_tmdb">build_tmdb</a></li> <li><a class="reference internal" href="#module-translate.tools.phppo2pypo">phppo2pypo</a></li> <li><a class="reference internal" href="#module-translate.tools.poclean">poclean</a></li> <li><a class="reference internal" href="#module-translate.tools.pocompile">pocompile</a></li> <li><a class="reference internal" href="#module-translate.tools.poconflicts">poconflicts</a></li> <li><a class="reference internal" href="#module-translate.tools.pocount">pocount</a></li> <li><a class="reference internal" href="#module-translate.tools.podebug">podebug</a></li> <li><a class="reference internal" href="#module-translate.tools.pogrep">pogrep</a></li> <li><a class="reference internal" href="#module-translate.tools.pomerge">pomerge</a></li> <li><a class="reference internal" href="#module-translate.tools.porestructure">porestructure</a></li> <li><a class="reference internal" href="#module-translate.tools.posegment">posegment</a></li> <li><a class="reference internal" href="#module-translate.tools.poswap">poswap</a></li> <li><a class="reference internal" href="#module-translate.tools.poterminology">poterminology</a></li> <li><a class="reference internal" href="#module-translate.tools.pretranslate">pretranslate</a></li> <li><a class="reference internal" href="#module-translate.tools.pydiff">pydiff</a></li> <li><a class="reference internal" href="#module-translate.tools.pypo2phppo">pypo2phppo</a></li> </ul> </li> </ul> </ul> </li> <li><a href="storage.html" title="previous chapter">&laquo; storage</a></li> </ul> <ul class="nav pull-right"> <form class="navbar-search pull-right" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </ul> </div> </div> </div> </div> <div class="container content"> <div class="section" id="module-translate.tools"> <span id="tools"></span><h1>tools<a class="headerlink" href="#module-translate.tools" title="Permalink to this headline">¶</a></h1> <p>Code to perform various operations, mostly on po files.</p> <div class="section" id="module-translate.tools.build_tmdb"> <span id="build-tmdb"></span><h2>build_tmdb<a class="headerlink" href="#module-translate.tools.build_tmdb" title="Permalink to this headline">¶</a></h2> <p>Import units from translations files into tmdb.</p> </div> <div class="section" id="module-translate.tools.phppo2pypo"> <span id="phppo2pypo"></span><h2>phppo2pypo<a class="headerlink" href="#module-translate.tools.phppo2pypo" title="Permalink to this headline">¶</a></h2> <p>Convert PHP format .po files to Python format .po files.</p> <dl class="function"> <dt id="translate.tools.phppo2pypo.convertphp2py"> <tt class="descclassname">translate.tools.phppo2pypo.</tt><tt class="descname">convertphp2py</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>template=None</em><big>)</big><a class="headerlink" href="#translate.tools.phppo2pypo.convertphp2py" title="Permalink to this definition">¶</a></dt> <dd><p>Converts from PHP .po format to Python .po format</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> <li><strong>inputfile</strong> &#8211; file handle of the source</li> <li><strong>outputfile</strong> &#8211; file handle to write to</li> <li><strong>template</strong> &#8211; unused</li> </ul> </td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="translate.tools.phppo2pypo.main"> <tt class="descclassname">translate.tools.phppo2pypo.</tt><tt class="descname">main</tt><big>(</big><em>argv=None</em><big>)</big><a class="headerlink" href="#translate.tools.phppo2pypo.main" title="Permalink to this definition">¶</a></dt> <dd><p>Converts PHP .po files to Python .po files.</p> </dd></dl> </div> <div class="section" id="module-translate.tools.poclean"> <span id="poclean"></span><h2>poclean<a class="headerlink" href="#module-translate.tools.poclean" title="Permalink to this headline">¶</a></h2> <p>Produces a clean file from an unclean file (Trados/Wordfast) by stripping out the tw4win indicators.</p> <p>This does not convert an RTF file to PO/XLIFF, but produces the target file with only the target text in from a text version of the RTF.</p> <dl class="function"> <dt id="translate.tools.poclean.cleanfile"> <tt class="descclassname">translate.tools.poclean.</tt><tt class="descname">cleanfile</tt><big>(</big><em>thefile</em><big>)</big><a class="headerlink" href="#translate.tools.poclean.cleanfile" title="Permalink to this definition">¶</a></dt> <dd><p>cleans the given file</p> </dd></dl> <dl class="function"> <dt id="translate.tools.poclean.cleanunit"> <tt class="descclassname">translate.tools.poclean.</tt><tt class="descname">cleanunit</tt><big>(</big><em>unit</em><big>)</big><a class="headerlink" href="#translate.tools.poclean.cleanunit" title="Permalink to this definition">¶</a></dt> <dd><p>cleans the targets in the given unit</p> </dd></dl> <dl class="function"> <dt id="translate.tools.poclean.runclean"> <tt class="descclassname">translate.tools.poclean.</tt><tt class="descname">runclean</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em><big>)</big><a class="headerlink" href="#translate.tools.poclean.runclean" title="Permalink to this definition">¶</a></dt> <dd><p>reads in inputfile, cleans, writes to outputfile</p> </dd></dl> </div> <div class="section" id="module-translate.tools.pocompile"> <span id="pocompile"></span><h2>pocompile<a class="headerlink" href="#module-translate.tools.pocompile" title="Permalink to this headline">¶</a></h2> <p>Compile XLIFF and Gettext PO localization files into Gettext MO (Machine Object) files.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pocompile.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pocompile.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.pocompile.convertmo"> <tt class="descclassname">translate.tools.pocompile.</tt><tt class="descname">convertmo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>includefuzzy=False</em><big>)</big><a class="headerlink" href="#translate.tools.pocompile.convertmo" title="Permalink to this definition">¶</a></dt> <dd><p>reads in a base class derived inputfile, converts using pocompile, writes to outputfile</p> </dd></dl> </div> <div class="section" id="module-translate.tools.poconflicts"> <span id="poconflicts"></span><h2>poconflicts<a class="headerlink" href="#module-translate.tools.poconflicts" title="Permalink to this headline">¶</a></h2> <p>Conflict finder for Gettext PO localization files.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poconflicts.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poconflicts.html</a> for examples and usage instructions.</p> <dl class="class"> <dt id="translate.tools.poconflicts.ConflictOptionParser"> <em class="property">class </em><tt class="descclassname">translate.tools.poconflicts.</tt><tt class="descname">ConflictOptionParser</tt><big>(</big><em>formats</em>, <em>usetemplates=False</em>, <em>allowmissingtemplate=False</em>, <em>description=None</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser" title="Permalink to this definition">¶</a></dt> <dd><p>a specialized Option Parser for the conflict tool...</p> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.add_option"> <tt class="descname">add_option</tt><big>(</big><em>Option</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.add_option" title="Permalink to this definition">¶</a></dt> <dd><p>add_option(opt_str, ..., kwarg=val, ...)</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.buildconflictmap"> <tt class="descname">buildconflictmap</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.buildconflictmap" title="Permalink to this definition">¶</a></dt> <dd><p>work out which strings are conflicting</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.check_values"> <tt class="descname">check_values</tt><big>(</big><em>values : Values, args : [string]</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.check_values" title="Permalink to this definition">¶</a></dt> <dd><p>-&gt; (values : Values, args : [string])</p> <p>Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new &#8211; whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.checkoutputsubdir"> <tt class="descname">checkoutputsubdir</tt><big>(</big><em>options</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.checkoutputsubdir" title="Permalink to this definition">¶</a></dt> <dd><p>Checks to see if subdir under options.output needs to be created, creates if neccessary.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.clean"> <tt class="descname">clean</tt><big>(</big><em>string</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.clean" title="Permalink to this definition">¶</a></dt> <dd><p>returns the cleaned string that contains the text to be matched</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.define_option"> <tt class="descname">define_option</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.define_option" title="Permalink to this definition">¶</a></dt> <dd><p>Defines the given option, replacing an existing one of the same short name if neccessary...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.destroy"> <tt class="descname">destroy</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.destroy" title="Permalink to this definition">¶</a></dt> <dd><p>Declare that you are done with this OptionParser. This cleans up reference cycles so the OptionParser (and all objects referenced by it) can be garbage-collected promptly. After calling destroy(), the OptionParser is unusable.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.disable_interspersed_args"> <tt class="descname">disable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.disable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to stop on the first non-option. Use this if you have a command processor which runs another command that has options of its own and you want to make sure these options don&#8217;t get confused.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.enable_interspersed_args"> <tt class="descname">enable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.enable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to not stop on the first non-option, allowing interspersing switches with command arguments. This is the default behavior. See also disable_interspersed_args() and the class documentation description of the attribute allow_interspersed_args.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.error"> <tt class="descname">error</tt><big>(</big><em>msg : string</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.error" title="Permalink to this definition">¶</a></dt> <dd><p>Print a usage message incorporating &#8216;msg&#8217; to stderr and exit. If you override this in a subclass, it should not return &#8211; it should either exit or raise an exception.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.finalizetempoutputfile"> <tt class="descname">finalizetempoutputfile</tt><big>(</big><em>options</em>, <em>outputfile</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.finalizetempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Write the temp outputfile to its final destination.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.flatten"> <tt class="descname">flatten</tt><big>(</big><em>text</em>, <em>joinchar</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.flatten" title="Permalink to this definition">¶</a></dt> <dd><p>flattens text to just be words</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.format_manpage"> <tt class="descname">format_manpage</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.format_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>returns a formatted manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getformathelp"> <tt class="descname">getformathelp</tt><big>(</big><em>formats</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getformathelp" title="Permalink to this definition">¶</a></dt> <dd><p>Make a nice help string for describing formats...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getfullinputpath"> <tt class="descname">getfullinputpath</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getfullinputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getfulloutputpath"> <tt class="descname">getfulloutputpath</tt><big>(</big><em>options</em>, <em>outputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getfulloutputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getfulltemplatepath"> <tt class="descname">getfulltemplatepath</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getfulltemplatepath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to a template file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getoutputname"> <tt class="descname">getoutputname</tt><big>(</big><em>options</em>, <em>inputname</em>, <em>outputformat</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getoutputname" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getoutputoptions"> <tt class="descname">getoutputoptions</tt><big>(</big><em>options</em>, <em>inputpath</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getoutputoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Works out which output format and processor method to use...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getpassthroughoptions"> <tt class="descname">getpassthroughoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getpassthroughoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Get the options required to pass to the filtermethod...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.gettemplatename"> <tt class="descname">gettemplatename</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.gettemplatename" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getusageman"> <tt class="descname">getusageman</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getusageman" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.getusagestring"> <tt class="descname">getusagestring</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.getusagestring" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.initprogressbar"> <tt class="descname">initprogressbar</tt><big>(</big><em>allfiles</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.initprogressbar" title="Permalink to this definition">¶</a></dt> <dd><p>Sets up a progress bar appropriate to the options and files.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.isexcluded"> <tt class="descname">isexcluded</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.isexcluded" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this path has been excluded.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.isrecursive"> <tt class="descname">isrecursive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.isrecursive" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if fileoption is a recursive file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.isvalidinputname"> <tt class="descname">isvalidinputname</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.isvalidinputname" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this is a valid input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.mkdir"> <tt class="descname">mkdir</tt><big>(</big><em>parent</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.mkdir" title="Permalink to this definition">¶</a></dt> <dd><p>Makes a subdirectory (recursively if neccessary).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.openinputfile"> <tt class="descname">openinputfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.openinputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.openoutputfile"> <tt class="descname">openoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.openoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.opentemplatefile"> <tt class="descname">opentemplatefile</tt><big>(</big><em>options</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.opentemplatefile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the template file (if required).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.opentempoutputfile"> <tt class="descname">opentempoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.opentempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens a temporary output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.outputconflicts"> <tt class="descname">outputconflicts</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.outputconflicts" title="Permalink to this definition">¶</a></dt> <dd><p>saves the result of the conflict match</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.parse_args"> <tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>values=None</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.parse_args" title="Permalink to this definition">¶</a></dt> <dd><p>parses the command line options, handling implicit input/output args</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.print_help"> <tt class="descname">print_help</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.print_help" title="Permalink to this definition">¶</a></dt> <dd><p>Print an extended help message, listing all options and any help text provided with them, to &#8216;file&#8217; (default stdout).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.print_manpage"> <tt class="descname">print_manpage</tt><big>(</big><em>file=None</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.print_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>outputs a manpage for the program using the help information</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.print_usage"> <tt class="descname">print_usage</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.print_usage" title="Permalink to this definition">¶</a></dt> <dd><p>Print the usage message for the current program (self.usage) to &#8216;file&#8217; (default stdout). Any occurrence of the string &#8220;%prog&#8221; in self.usage is replaced with the name of the current program (basename of sys.argv[0]). Does nothing if self.usage is empty or not defined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.print_version"> <tt class="descname">print_version</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.print_version" title="Permalink to this definition">¶</a></dt> <dd><p>Print the version message for this program (self.version) to &#8216;file&#8217; (default stdout). As with print_usage(), any occurrence of &#8220;%prog&#8221; in self.version is replaced by the current program&#8217;s name. Does nothing if self.version is empty or undefined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.processfile"> <tt class="descname">processfile</tt><big>(</big><em>fileprocessor</em>, <em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.processfile" title="Permalink to this definition">¶</a></dt> <dd><p>process an individual file</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.recurseinputfilelist"> <tt class="descname">recurseinputfilelist</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.recurseinputfilelist" title="Permalink to this definition">¶</a></dt> <dd><p>Use a list of files, and find a common base directory for them.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.recurseinputfiles"> <tt class="descname">recurseinputfiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.recurseinputfiles" title="Permalink to this definition">¶</a></dt> <dd><p>Recurse through directories and return files to be processed.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.recursiveprocess"> <tt class="descname">recursiveprocess</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.recursiveprocess" title="Permalink to this definition">¶</a></dt> <dd><p>recurse through directories and process files</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.reportprogress"> <tt class="descname">reportprogress</tt><big>(</big><em>filename</em>, <em>success</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.reportprogress" title="Permalink to this definition">¶</a></dt> <dd><p>Shows that we are progressing...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.run"> <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.run" title="Permalink to this definition">¶</a></dt> <dd><p>parses the arguments, and runs recursiveprocess with the resulting options</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.set_usage"> <tt class="descname">set_usage</tt><big>(</big><em>usage=None</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.set_usage" title="Permalink to this definition">¶</a></dt> <dd><p>sets the usage string - if usage not given, uses getusagestring for each option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.seterrorleveloptions"> <tt class="descname">seterrorleveloptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.seterrorleveloptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the errorlevel options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.setformats"> <tt class="descname">setformats</tt><big>(</big><em>formats</em>, <em>usetemplates</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.setformats" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the format options using the given format dictionary.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>formats</strong> (<em>Dictionary</em>) &#8211; <p>The dictionary <em>keys</em> should be:</p> <ul class="simple"> <li>Single strings (or 1-tuples) containing an input format (if not <em>usetemplates</em>)</li> <li>Tuples containing an input format and template format (if <em>usetemplates</em>)</li> <li>Formats can be <em>None</em> to indicate what to do with standard input</li> </ul> <p>The dictionary <em>values</em> should be tuples of outputformat (string) and processor method.</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.setmanpageoption"> <tt class="descname">setmanpageoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.setmanpageoption" title="Permalink to this definition">¶</a></dt> <dd><p>creates a manpage option that allows the optionparser to generate a manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.setprogressoptions"> <tt class="descname">setprogressoptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.setprogressoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the progress options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.splitext"> <tt class="descname">splitext</tt><big>(</big><em>pathname</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.splitext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits <em>pathname</em> into name and ext, and removes the extsep.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pathname</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) &#8211; A file path</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">root, ext</td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.splitinputext"> <tt class="descname">splitinputext</tt><big>(</big><em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.splitinputext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits an <em>inputpath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.splittemplateext"> <tt class="descname">splittemplateext</tt><big>(</big><em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.splittemplateext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits a <em>templatepath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.templateexists"> <tt class="descname">templateexists</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.templateexists" title="Permalink to this definition">¶</a></dt> <dd><p>Returns whether the given template exists...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poconflicts.ConflictOptionParser.warning"> <tt class="descname">warning</tt><big>(</big><em>msg</em>, <em>options=None</em>, <em>exc_info=None</em><big>)</big><a class="headerlink" href="#translate.tools.poconflicts.ConflictOptionParser.warning" title="Permalink to this definition">¶</a></dt> <dd><p>Print a warning message incorporating &#8216;msg&#8217; to stderr and exit.</p> </dd></dl> </dd></dl> </div> <div class="section" id="module-translate.tools.pocount"> <span id="pocount"></span><h2>pocount<a class="headerlink" href="#module-translate.tools.pocount" title="Permalink to this headline">¶</a></h2> <p>Count strings and words for supported localization files.</p> <p>These include: XLIFF, TMX, Gettex PO and MO, Qt .ts and .qm, Wordfast TM, etc</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pocount.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pocount.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.pocount.calcstats_old"> <tt class="descclassname">translate.tools.pocount.</tt><tt class="descname">calcstats_old</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#translate.tools.pocount.calcstats_old" title="Permalink to this definition">¶</a></dt> <dd><p>This is the previous implementation of calcstats() and is left for comparison and debuging purposes.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pocount.summarize"> <tt class="descclassname">translate.tools.pocount.</tt><tt class="descname">summarize</tt><big>(</big><em>title</em>, <em>stats</em>, <em>style=0</em>, <em>indent=8</em>, <em>incomplete_only=False</em><big>)</big><a class="headerlink" href="#translate.tools.pocount.summarize" title="Permalink to this definition">¶</a></dt> <dd><p>Print summary for a .po file in specified format.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>title</strong> &#8211; name of .po file</li> <li><strong>stats</strong> &#8211; array with translation statistics for the file specified</li> <li><strong>indent</strong> &#8211; indentation of the 2nd column (length of longest filename)</li> <li><strong>incomplete_only</strong> (<em>Boolean</em>) &#8211; omit fully translated files</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">Boolean</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">1 if counting incomplete files (incomplete_only=True) and the file is completely translated, 0 otherwise</p> </td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-translate.tools.podebug"> <span id="podebug"></span><h2>podebug<a class="headerlink" href="#module-translate.tools.podebug" title="Permalink to this headline">¶</a></h2> <p>Insert debug messages into XLIFF and Gettext PO localization files.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/podebug.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/podebug.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.podebug.convertpo"> <tt class="descclassname">translate.tools.podebug.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>format=None</em>, <em>rewritestyle=None</em>, <em>ignoreoption=None</em><big>)</big><a class="headerlink" href="#translate.tools.podebug.convertpo" title="Permalink to this definition">¶</a></dt> <dd><p>Reads in inputfile, changes it to have debug strings, writes to outputfile.</p> </dd></dl> </div> <div class="section" id="module-translate.tools.pogrep"> <span id="pogrep"></span><h2>pogrep<a class="headerlink" href="#module-translate.tools.pogrep" title="Permalink to this headline">¶</a></h2> <p>Grep XLIFF, Gettext PO and TMX localization files.</p> <p>Matches are output to snippet files of the same type which can then be reviewed and later merged using <a class="reference internal" href="../commands/pomerge.html"><em>pomerge</em></a>.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pogrep.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pogrep.html</a> for examples and usage instructions.</p> <dl class="class"> <dt id="translate.tools.pogrep.GrepMatch"> <em class="property">class </em><tt class="descclassname">translate.tools.pogrep.</tt><tt class="descname">GrepMatch</tt><big>(</big><em>unit</em>, <em>part='target'</em>, <em>part_n=0</em>, <em>start=0</em>, <em>end=0</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepMatch" title="Permalink to this definition">¶</a></dt> <dd><p>Just a small data structure that represents a search match.</p> </dd></dl> <dl class="class"> <dt id="translate.tools.pogrep.GrepOptionParser"> <em class="property">class </em><tt class="descclassname">translate.tools.pogrep.</tt><tt class="descname">GrepOptionParser</tt><big>(</big><em>formats</em>, <em>usetemplates=False</em>, <em>allowmissingtemplate=False</em>, <em>description=None</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser" title="Permalink to this definition">¶</a></dt> <dd><p>a specialized Option Parser for the grep tool...</p> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.add_option"> <tt class="descname">add_option</tt><big>(</big><em>Option</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.add_option" title="Permalink to this definition">¶</a></dt> <dd><p>add_option(opt_str, ..., kwarg=val, ...)</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.check_values"> <tt class="descname">check_values</tt><big>(</big><em>values : Values, args : [string]</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.check_values" title="Permalink to this definition">¶</a></dt> <dd><p>-&gt; (values : Values, args : [string])</p> <p>Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new &#8211; whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.checkoutputsubdir"> <tt class="descname">checkoutputsubdir</tt><big>(</big><em>options</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.checkoutputsubdir" title="Permalink to this definition">¶</a></dt> <dd><p>Checks to see if subdir under options.output needs to be created, creates if neccessary.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.define_option"> <tt class="descname">define_option</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.define_option" title="Permalink to this definition">¶</a></dt> <dd><p>Defines the given option, replacing an existing one of the same short name if neccessary...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.destroy"> <tt class="descname">destroy</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.destroy" title="Permalink to this definition">¶</a></dt> <dd><p>Declare that you are done with this OptionParser. This cleans up reference cycles so the OptionParser (and all objects referenced by it) can be garbage-collected promptly. After calling destroy(), the OptionParser is unusable.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.disable_interspersed_args"> <tt class="descname">disable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.disable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to stop on the first non-option. Use this if you have a command processor which runs another command that has options of its own and you want to make sure these options don&#8217;t get confused.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.enable_interspersed_args"> <tt class="descname">enable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.enable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to not stop on the first non-option, allowing interspersing switches with command arguments. This is the default behavior. See also disable_interspersed_args() and the class documentation description of the attribute allow_interspersed_args.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.error"> <tt class="descname">error</tt><big>(</big><em>msg : string</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.error" title="Permalink to this definition">¶</a></dt> <dd><p>Print a usage message incorporating &#8216;msg&#8217; to stderr and exit. If you override this in a subclass, it should not return &#8211; it should either exit or raise an exception.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.finalizetempoutputfile"> <tt class="descname">finalizetempoutputfile</tt><big>(</big><em>options</em>, <em>outputfile</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.finalizetempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Write the temp outputfile to its final destination.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.format_manpage"> <tt class="descname">format_manpage</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.format_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>returns a formatted manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getformathelp"> <tt class="descname">getformathelp</tt><big>(</big><em>formats</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getformathelp" title="Permalink to this definition">¶</a></dt> <dd><p>Make a nice help string for describing formats...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getfullinputpath"> <tt class="descname">getfullinputpath</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getfullinputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getfulloutputpath"> <tt class="descname">getfulloutputpath</tt><big>(</big><em>options</em>, <em>outputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getfulloutputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getfulltemplatepath"> <tt class="descname">getfulltemplatepath</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getfulltemplatepath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to a template file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getoutputname"> <tt class="descname">getoutputname</tt><big>(</big><em>options</em>, <em>inputname</em>, <em>outputformat</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getoutputname" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getoutputoptions"> <tt class="descname">getoutputoptions</tt><big>(</big><em>options</em>, <em>inputpath</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getoutputoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Works out which output format and processor method to use...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getpassthroughoptions"> <tt class="descname">getpassthroughoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getpassthroughoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Get the options required to pass to the filtermethod...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.gettemplatename"> <tt class="descname">gettemplatename</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.gettemplatename" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getusageman"> <tt class="descname">getusageman</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getusageman" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.getusagestring"> <tt class="descname">getusagestring</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.getusagestring" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.initprogressbar"> <tt class="descname">initprogressbar</tt><big>(</big><em>allfiles</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.initprogressbar" title="Permalink to this definition">¶</a></dt> <dd><p>Sets up a progress bar appropriate to the options and files.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.isexcluded"> <tt class="descname">isexcluded</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.isexcluded" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this path has been excluded.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.isrecursive"> <tt class="descname">isrecursive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.isrecursive" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if fileoption is a recursive file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.isvalidinputname"> <tt class="descname">isvalidinputname</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.isvalidinputname" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this is a valid input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.mkdir"> <tt class="descname">mkdir</tt><big>(</big><em>parent</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.mkdir" title="Permalink to this definition">¶</a></dt> <dd><p>Makes a subdirectory (recursively if neccessary).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.openinputfile"> <tt class="descname">openinputfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.openinputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.openoutputfile"> <tt class="descname">openoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.openoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.opentemplatefile"> <tt class="descname">opentemplatefile</tt><big>(</big><em>options</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.opentemplatefile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the template file (if required).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.opentempoutputfile"> <tt class="descname">opentempoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.opentempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens a temporary output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.parse_args"> <tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>values=None</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.parse_args" title="Permalink to this definition">¶</a></dt> <dd><p>parses the command line options, handling implicit input/output args</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.print_help"> <tt class="descname">print_help</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.print_help" title="Permalink to this definition">¶</a></dt> <dd><p>Print an extended help message, listing all options and any help text provided with them, to &#8216;file&#8217; (default stdout).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.print_manpage"> <tt class="descname">print_manpage</tt><big>(</big><em>file=None</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.print_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>outputs a manpage for the program using the help information</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.print_usage"> <tt class="descname">print_usage</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.print_usage" title="Permalink to this definition">¶</a></dt> <dd><p>Print the usage message for the current program (self.usage) to &#8216;file&#8217; (default stdout). Any occurrence of the string &#8220;%prog&#8221; in self.usage is replaced with the name of the current program (basename of sys.argv[0]). Does nothing if self.usage is empty or not defined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.print_version"> <tt class="descname">print_version</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.print_version" title="Permalink to this definition">¶</a></dt> <dd><p>Print the version message for this program (self.version) to &#8216;file&#8217; (default stdout). As with print_usage(), any occurrence of &#8220;%prog&#8221; in self.version is replaced by the current program&#8217;s name. Does nothing if self.version is empty or undefined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.processfile"> <tt class="descname">processfile</tt><big>(</big><em>fileprocessor</em>, <em>options</em>, <em>fullinputpath</em>, <em>fulloutputpath</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.processfile" title="Permalink to this definition">¶</a></dt> <dd><p>Process an individual file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.recurseinputfilelist"> <tt class="descname">recurseinputfilelist</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.recurseinputfilelist" title="Permalink to this definition">¶</a></dt> <dd><p>Use a list of files, and find a common base directory for them.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.recurseinputfiles"> <tt class="descname">recurseinputfiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.recurseinputfiles" title="Permalink to this definition">¶</a></dt> <dd><p>Recurse through directories and return files to be processed.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.recursiveprocess"> <tt class="descname">recursiveprocess</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.recursiveprocess" title="Permalink to this definition">¶</a></dt> <dd><p>Recurse through directories and process files.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.reportprogress"> <tt class="descname">reportprogress</tt><big>(</big><em>filename</em>, <em>success</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.reportprogress" title="Permalink to this definition">¶</a></dt> <dd><p>Shows that we are progressing...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.run"> <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.run" title="Permalink to this definition">¶</a></dt> <dd><p>parses the arguments, and runs recursiveprocess with the resulting options</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.set_usage"> <tt class="descname">set_usage</tt><big>(</big><em>usage=None</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.set_usage" title="Permalink to this definition">¶</a></dt> <dd><p>sets the usage string - if usage not given, uses getusagestring for each option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.seterrorleveloptions"> <tt class="descname">seterrorleveloptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.seterrorleveloptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the errorlevel options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.setformats"> <tt class="descname">setformats</tt><big>(</big><em>formats</em>, <em>usetemplates</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.setformats" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the format options using the given format dictionary.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>formats</strong> (<em>Dictionary</em>) &#8211; <p>The dictionary <em>keys</em> should be:</p> <ul class="simple"> <li>Single strings (or 1-tuples) containing an input format (if not <em>usetemplates</em>)</li> <li>Tuples containing an input format and template format (if <em>usetemplates</em>)</li> <li>Formats can be <em>None</em> to indicate what to do with standard input</li> </ul> <p>The dictionary <em>values</em> should be tuples of outputformat (string) and processor method.</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.setmanpageoption"> <tt class="descname">setmanpageoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.setmanpageoption" title="Permalink to this definition">¶</a></dt> <dd><p>creates a manpage option that allows the optionparser to generate a manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.setprogressoptions"> <tt class="descname">setprogressoptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.setprogressoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the progress options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.splitext"> <tt class="descname">splitext</tt><big>(</big><em>pathname</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.splitext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits <em>pathname</em> into name and ext, and removes the extsep.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pathname</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) &#8211; A file path</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">root, ext</td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.splitinputext"> <tt class="descname">splitinputext</tt><big>(</big><em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.splitinputext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits an <em>inputpath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.splittemplateext"> <tt class="descname">splittemplateext</tt><big>(</big><em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.splittemplateext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits a <em>templatepath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.templateexists"> <tt class="descname">templateexists</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.templateexists" title="Permalink to this definition">¶</a></dt> <dd><p>Returns whether the given template exists...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pogrep.GrepOptionParser.warning"> <tt class="descname">warning</tt><big>(</big><em>msg</em>, <em>options=None</em>, <em>exc_info=None</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.GrepOptionParser.warning" title="Permalink to this definition">¶</a></dt> <dd><p>Print a warning message incorporating &#8216;msg&#8217; to stderr and exit.</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="translate.tools.pogrep.find_matches"> <tt class="descclassname">translate.tools.pogrep.</tt><tt class="descname">find_matches</tt><big>(</big><em>unit</em>, <em>part</em>, <em>strings</em>, <em>re_search</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.find_matches" title="Permalink to this definition">¶</a></dt> <dd><p>Return the GrepFilter objects where re_search matches in strings.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pogrep.real_index"> <tt class="descclassname">translate.tools.pogrep.</tt><tt class="descname">real_index</tt><big>(</big><em>string</em>, <em>nfc_index</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.real_index" title="Permalink to this definition">¶</a></dt> <dd><p>Calculate the real index in the unnormalized string that corresponds to the index nfc_index in the normalized string.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pogrep.rungrep"> <tt class="descclassname">translate.tools.pogrep.</tt><tt class="descname">rungrep</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>checkfilter</em><big>)</big><a class="headerlink" href="#translate.tools.pogrep.rungrep" title="Permalink to this definition">¶</a></dt> <dd><p>reads in inputfile, filters using checkfilter, writes to outputfile</p> </dd></dl> </div> <div class="section" id="module-translate.tools.pomerge"> <span id="pomerge"></span><h2>pomerge<a class="headerlink" href="#module-translate.tools.pomerge" title="Permalink to this headline">¶</a></h2> <p>Merges XLIFF and Gettext PO localization files.</p> <p>Snippet file produced by e.g. <a class="reference internal" href="../commands/pogrep.html"><em>pogrep</em></a> and updated by a translator can be merged back into the original files.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pomerge.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pomerge.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.pomerge.mergestores"> <tt class="descclassname">translate.tools.pomerge.</tt><tt class="descname">mergestores</tt><big>(</big><em>store1</em>, <em>store2</em>, <em>mergeblanks</em>, <em>mergefuzzy</em>, <em>mergecomments</em><big>)</big><a class="headerlink" href="#translate.tools.pomerge.mergestores" title="Permalink to this definition">¶</a></dt> <dd><p>Take any new translations in store2 and write them into store1.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pomerge.str2bool"> <tt class="descclassname">translate.tools.pomerge.</tt><tt class="descname">str2bool</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.pomerge.str2bool" title="Permalink to this definition">¶</a></dt> <dd><p>Convert a string value to boolean</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>option</strong> (<em>String</em>) &#8211; yes, true, 1, no, false, 0</td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Boolean</td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-translate.tools.porestructure"> <span id="porestructure"></span><h2>porestructure<a class="headerlink" href="#module-translate.tools.porestructure" title="Permalink to this headline">¶</a></h2> <p>Restructure Gettxt PO files produced by <a class="reference internal" href="../commands/poconflicts.html"><em>poconflicts</em></a> into the original directory tree for merging using <a class="reference internal" href="../commands/pomerge.html"><em>pomerge</em></a>.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pomerge.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pomerge.html</a> for examples and usage instructions.</p> <dl class="class"> <dt id="translate.tools.porestructure.SplitOptionParser"> <em class="property">class </em><tt class="descclassname">translate.tools.porestructure.</tt><tt class="descname">SplitOptionParser</tt><big>(</big><em>formats</em>, <em>usetemplates=False</em>, <em>allowmissingtemplate=False</em>, <em>description=None</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser" title="Permalink to this definition">¶</a></dt> <dd><p>a specialized Option Parser for posplit</p> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.add_option"> <tt class="descname">add_option</tt><big>(</big><em>Option</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.add_option" title="Permalink to this definition">¶</a></dt> <dd><p>add_option(opt_str, ..., kwarg=val, ...)</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.check_values"> <tt class="descname">check_values</tt><big>(</big><em>values : Values, args : [string]</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.check_values" title="Permalink to this definition">¶</a></dt> <dd><p>-&gt; (values : Values, args : [string])</p> <p>Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new &#8211; whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.checkoutputsubdir"> <tt class="descname">checkoutputsubdir</tt><big>(</big><em>options</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.checkoutputsubdir" title="Permalink to this definition">¶</a></dt> <dd><p>Checks to see if subdir under options.output needs to be created, creates if neccessary.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.define_option"> <tt class="descname">define_option</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.define_option" title="Permalink to this definition">¶</a></dt> <dd><p>Defines the given option, replacing an existing one of the same short name if neccessary...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.destroy"> <tt class="descname">destroy</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.destroy" title="Permalink to this definition">¶</a></dt> <dd><p>Declare that you are done with this OptionParser. This cleans up reference cycles so the OptionParser (and all objects referenced by it) can be garbage-collected promptly. After calling destroy(), the OptionParser is unusable.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.disable_interspersed_args"> <tt class="descname">disable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.disable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to stop on the first non-option. Use this if you have a command processor which runs another command that has options of its own and you want to make sure these options don&#8217;t get confused.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.enable_interspersed_args"> <tt class="descname">enable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.enable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to not stop on the first non-option, allowing interspersing switches with command arguments. This is the default behavior. See also disable_interspersed_args() and the class documentation description of the attribute allow_interspersed_args.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.error"> <tt class="descname">error</tt><big>(</big><em>msg : string</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.error" title="Permalink to this definition">¶</a></dt> <dd><p>Print a usage message incorporating &#8216;msg&#8217; to stderr and exit. If you override this in a subclass, it should not return &#8211; it should either exit or raise an exception.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.finalizetempoutputfile"> <tt class="descname">finalizetempoutputfile</tt><big>(</big><em>options</em>, <em>outputfile</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.finalizetempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Write the temp outputfile to its final destination.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.format_manpage"> <tt class="descname">format_manpage</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.format_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>returns a formatted manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getformathelp"> <tt class="descname">getformathelp</tt><big>(</big><em>formats</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getformathelp" title="Permalink to this definition">¶</a></dt> <dd><p>Make a nice help string for describing formats...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getfullinputpath"> <tt class="descname">getfullinputpath</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getfullinputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getfulloutputpath"> <tt class="descname">getfulloutputpath</tt><big>(</big><em>options</em>, <em>outputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getfulloutputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getfulltemplatepath"> <tt class="descname">getfulltemplatepath</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getfulltemplatepath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to a template file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getoutputname"> <tt class="descname">getoutputname</tt><big>(</big><em>options</em>, <em>inputname</em>, <em>outputformat</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getoutputname" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getoutputoptions"> <tt class="descname">getoutputoptions</tt><big>(</big><em>options</em>, <em>inputpath</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getoutputoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Works out which output format and processor method to use...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getpassthroughoptions"> <tt class="descname">getpassthroughoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getpassthroughoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Get the options required to pass to the filtermethod...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.gettemplatename"> <tt class="descname">gettemplatename</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.gettemplatename" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getusageman"> <tt class="descname">getusageman</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getusageman" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.getusagestring"> <tt class="descname">getusagestring</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.getusagestring" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.initprogressbar"> <tt class="descname">initprogressbar</tt><big>(</big><em>allfiles</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.initprogressbar" title="Permalink to this definition">¶</a></dt> <dd><p>Sets up a progress bar appropriate to the options and files.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.isexcluded"> <tt class="descname">isexcluded</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.isexcluded" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this path has been excluded.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.isrecursive"> <tt class="descname">isrecursive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.isrecursive" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if fileoption is a recursive file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.isvalidinputname"> <tt class="descname">isvalidinputname</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.isvalidinputname" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this is a valid input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.mkdir"> <tt class="descname">mkdir</tt><big>(</big><em>parent</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.mkdir" title="Permalink to this definition">¶</a></dt> <dd><p>Makes a subdirectory (recursively if neccessary).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.openinputfile"> <tt class="descname">openinputfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.openinputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.openoutputfile"> <tt class="descname">openoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.openoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.opentemplatefile"> <tt class="descname">opentemplatefile</tt><big>(</big><em>options</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.opentemplatefile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the template file (if required).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.opentempoutputfile"> <tt class="descname">opentempoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.opentempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens a temporary output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.parse_args"> <tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>values=None</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.parse_args" title="Permalink to this definition">¶</a></dt> <dd><p>parses the command line options, handling implicit input/output args</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.print_help"> <tt class="descname">print_help</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.print_help" title="Permalink to this definition">¶</a></dt> <dd><p>Print an extended help message, listing all options and any help text provided with them, to &#8216;file&#8217; (default stdout).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.print_manpage"> <tt class="descname">print_manpage</tt><big>(</big><em>file=None</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.print_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>outputs a manpage for the program using the help information</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.print_usage"> <tt class="descname">print_usage</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.print_usage" title="Permalink to this definition">¶</a></dt> <dd><p>Print the usage message for the current program (self.usage) to &#8216;file&#8217; (default stdout). Any occurrence of the string &#8220;%prog&#8221; in self.usage is replaced with the name of the current program (basename of sys.argv[0]). Does nothing if self.usage is empty or not defined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.print_version"> <tt class="descname">print_version</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.print_version" title="Permalink to this definition">¶</a></dt> <dd><p>Print the version message for this program (self.version) to &#8216;file&#8217; (default stdout). As with print_usage(), any occurrence of &#8220;%prog&#8221; in self.version is replaced by the current program&#8217;s name. Does nothing if self.version is empty or undefined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.processfile"> <tt class="descname">processfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.processfile" title="Permalink to this definition">¶</a></dt> <dd><p>process an individual file</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.recurseinputfilelist"> <tt class="descname">recurseinputfilelist</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.recurseinputfilelist" title="Permalink to this definition">¶</a></dt> <dd><p>Use a list of files, and find a common base directory for them.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.recurseinputfiles"> <tt class="descname">recurseinputfiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.recurseinputfiles" title="Permalink to this definition">¶</a></dt> <dd><p>Recurse through directories and return files to be processed.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.recursiveprocess"> <tt class="descname">recursiveprocess</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.recursiveprocess" title="Permalink to this definition">¶</a></dt> <dd><p>recurse through directories and process files</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.reportprogress"> <tt class="descname">reportprogress</tt><big>(</big><em>filename</em>, <em>success</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.reportprogress" title="Permalink to this definition">¶</a></dt> <dd><p>Shows that we are progressing...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.run"> <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.run" title="Permalink to this definition">¶</a></dt> <dd><p>Parses the arguments, and runs recursiveprocess with the resulting options...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.set_usage"> <tt class="descname">set_usage</tt><big>(</big><em>usage=None</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.set_usage" title="Permalink to this definition">¶</a></dt> <dd><p>sets the usage string - if usage not given, uses getusagestring for each option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.seterrorleveloptions"> <tt class="descname">seterrorleveloptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.seterrorleveloptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the errorlevel options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.setformats"> <tt class="descname">setformats</tt><big>(</big><em>formats</em>, <em>usetemplates</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.setformats" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the format options using the given format dictionary.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>formats</strong> (<em>Dictionary</em>) &#8211; <p>The dictionary <em>keys</em> should be:</p> <ul class="simple"> <li>Single strings (or 1-tuples) containing an input format (if not <em>usetemplates</em>)</li> <li>Tuples containing an input format and template format (if <em>usetemplates</em>)</li> <li>Formats can be <em>None</em> to indicate what to do with standard input</li> </ul> <p>The dictionary <em>values</em> should be tuples of outputformat (string) and processor method.</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.setmanpageoption"> <tt class="descname">setmanpageoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.setmanpageoption" title="Permalink to this definition">¶</a></dt> <dd><p>creates a manpage option that allows the optionparser to generate a manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.setprogressoptions"> <tt class="descname">setprogressoptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.setprogressoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the progress options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.splitext"> <tt class="descname">splitext</tt><big>(</big><em>pathname</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.splitext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits <em>pathname</em> into name and ext, and removes the extsep.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pathname</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) &#8211; A file path</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">root, ext</td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.splitinputext"> <tt class="descname">splitinputext</tt><big>(</big><em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.splitinputext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits an <em>inputpath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.splittemplateext"> <tt class="descname">splittemplateext</tt><big>(</big><em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.splittemplateext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits a <em>templatepath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.templateexists"> <tt class="descname">templateexists</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.templateexists" title="Permalink to this definition">¶</a></dt> <dd><p>Returns whether the given template exists...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.porestructure.SplitOptionParser.warning"> <tt class="descname">warning</tt><big>(</big><em>msg</em>, <em>options=None</em>, <em>exc_info=None</em><big>)</big><a class="headerlink" href="#translate.tools.porestructure.SplitOptionParser.warning" title="Permalink to this definition">¶</a></dt> <dd><p>Print a warning message incorporating &#8216;msg&#8217; to stderr and exit.</p> </dd></dl> </dd></dl> </div> <div class="section" id="module-translate.tools.posegment"> <span id="posegment"></span><h2>posegment<a class="headerlink" href="#module-translate.tools.posegment" title="Permalink to this headline">¶</a></h2> <p>Segment Gettext PO, XLIFF and TMX localization files at the sentence level.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/posegment.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/posegment.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.posegment.segmentfile"> <tt class="descclassname">translate.tools.posegment.</tt><tt class="descname">segmentfile</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>sourcelanguage='en'</em>, <em>targetlanguage=None</em>, <em>stripspaces=True</em>, <em>onlyaligned=False</em><big>)</big><a class="headerlink" href="#translate.tools.posegment.segmentfile" title="Permalink to this definition">¶</a></dt> <dd><p>reads in inputfile, segments it then, writes to outputfile</p> </dd></dl> </div> <div class="section" id="module-translate.tools.poswap"> <span id="poswap"></span><h2>poswap<a class="headerlink" href="#module-translate.tools.poswap" title="Permalink to this headline">¶</a></h2> <p>Builds a new translation file with the target of the input language as source language.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Ensure that the two po files correspond 100% to the same pot file before using this.</p> </div> <p>To translate Kurdish (ku) through French:</p> <div class="highlight-python"><div class="highlight"><pre>po2swap -i fr/ -t ku -o fr-ku </pre></div> </div> <p>To convert the fr-ku files back to en-ku:</p> <div class="highlight-python"><div class="highlight"><pre>po2swap --reverse -i fr/ -t fr-ku -o en-ku </pre></div> </div> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poswap.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poswap.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.poswap.convertpo"> <tt class="descclassname">translate.tools.poswap.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputpofile</em>, <em>outputpotfile</em>, <em>template</em>, <em>reverse=False</em><big>)</big><a class="headerlink" href="#translate.tools.poswap.convertpo" title="Permalink to this definition">¶</a></dt> <dd><p>reads in inputpofile, removes the header, writes to outputpotfile.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.poswap.swapdir"> <tt class="descclassname">translate.tools.poswap.</tt><tt class="descname">swapdir</tt><big>(</big><em>store</em><big>)</big><a class="headerlink" href="#translate.tools.poswap.swapdir" title="Permalink to this definition">¶</a></dt> <dd><p>Swap the source and target of each unit.</p> </dd></dl> </div> <div class="section" id="module-translate.tools.poterminology"> <span id="poterminology"></span><h2>poterminology<a class="headerlink" href="#module-translate.tools.poterminology" title="Permalink to this headline">¶</a></h2> <p>Create a terminology file by reading a set of .po or .pot files to produce a pootle-terminology.pot.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poterminology.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poterminology.html</a> for examples and usage instructions.</p> <dl class="class"> <dt id="translate.tools.poterminology.TerminologyOptionParser"> <em class="property">class </em><tt class="descclassname">translate.tools.poterminology.</tt><tt class="descname">TerminologyOptionParser</tt><big>(</big><em>formats</em>, <em>usetemplates=False</em>, <em>allowmissingtemplate=False</em>, <em>description=None</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser" title="Permalink to this definition">¶</a></dt> <dd><p>a specialized Option Parser for the terminology tool...</p> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.add_option"> <tt class="descname">add_option</tt><big>(</big><em>Option</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.add_option" title="Permalink to this definition">¶</a></dt> <dd><p>add_option(opt_str, ..., kwarg=val, ...)</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.check_values"> <tt class="descname">check_values</tt><big>(</big><em>values : Values, args : [string]</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.check_values" title="Permalink to this definition">¶</a></dt> <dd><p>-&gt; (values : Values, args : [string])</p> <p>Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new &#8211; whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.checkoutputsubdir"> <tt class="descname">checkoutputsubdir</tt><big>(</big><em>options</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.checkoutputsubdir" title="Permalink to this definition">¶</a></dt> <dd><p>Checks to see if subdir under options.output needs to be created, creates if neccessary.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.define_option"> <tt class="descname">define_option</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.define_option" title="Permalink to this definition">¶</a></dt> <dd><p>Defines the given option, replacing an existing one of the same short name if neccessary...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.destroy"> <tt class="descname">destroy</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.destroy" title="Permalink to this definition">¶</a></dt> <dd><p>Declare that you are done with this OptionParser. This cleans up reference cycles so the OptionParser (and all objects referenced by it) can be garbage-collected promptly. After calling destroy(), the OptionParser is unusable.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.disable_interspersed_args"> <tt class="descname">disable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.disable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to stop on the first non-option. Use this if you have a command processor which runs another command that has options of its own and you want to make sure these options don&#8217;t get confused.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.enable_interspersed_args"> <tt class="descname">enable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.enable_interspersed_args" title="Permalink to this definition">¶</a></dt> <dd><p>Set parsing to not stop on the first non-option, allowing interspersing switches with command arguments. This is the default behavior. See also disable_interspersed_args() and the class documentation description of the attribute allow_interspersed_args.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.error"> <tt class="descname">error</tt><big>(</big><em>msg : string</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.error" title="Permalink to this definition">¶</a></dt> <dd><p>Print a usage message incorporating &#8216;msg&#8217; to stderr and exit. If you override this in a subclass, it should not return &#8211; it should either exit or raise an exception.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.finalizetempoutputfile"> <tt class="descname">finalizetempoutputfile</tt><big>(</big><em>options</em>, <em>outputfile</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.finalizetempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Write the temp outputfile to its final destination.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.format_manpage"> <tt class="descname">format_manpage</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.format_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>returns a formatted manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getformathelp"> <tt class="descname">getformathelp</tt><big>(</big><em>formats</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getformathelp" title="Permalink to this definition">¶</a></dt> <dd><p>Make a nice help string for describing formats...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getfullinputpath"> <tt class="descname">getfullinputpath</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getfullinputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getfulloutputpath"> <tt class="descname">getfulloutputpath</tt><big>(</big><em>options</em>, <em>outputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getfulloutputpath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to an output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getfulltemplatepath"> <tt class="descname">getfulltemplatepath</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getfulltemplatepath" title="Permalink to this definition">¶</a></dt> <dd><p>Gets the absolute path to a template file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getoutputname"> <tt class="descname">getoutputname</tt><big>(</big><em>options</em>, <em>inputname</em>, <em>outputformat</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getoutputname" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getoutputoptions"> <tt class="descname">getoutputoptions</tt><big>(</big><em>options</em>, <em>inputpath</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getoutputoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Works out which output format and processor method to use...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getpassthroughoptions"> <tt class="descname">getpassthroughoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getpassthroughoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Get the options required to pass to the filtermethod...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.gettemplatename"> <tt class="descname">gettemplatename</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.gettemplatename" title="Permalink to this definition">¶</a></dt> <dd><p>Gets an output filename based on the input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getusageman"> <tt class="descname">getusageman</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getusageman" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.getusagestring"> <tt class="descname">getusagestring</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.getusagestring" title="Permalink to this definition">¶</a></dt> <dd><p>returns the usage string for the given option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.initprogressbar"> <tt class="descname">initprogressbar</tt><big>(</big><em>allfiles</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.initprogressbar" title="Permalink to this definition">¶</a></dt> <dd><p>Sets up a progress bar appropriate to the options and files.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.isexcluded"> <tt class="descname">isexcluded</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.isexcluded" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this path has been excluded.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.isrecursive"> <tt class="descname">isrecursive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.isrecursive" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if fileoption is a recursive file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.isvalidinputname"> <tt class="descname">isvalidinputname</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.isvalidinputname" title="Permalink to this definition">¶</a></dt> <dd><p>Checks if this is a valid input filename.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.mkdir"> <tt class="descname">mkdir</tt><big>(</big><em>parent</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.mkdir" title="Permalink to this definition">¶</a></dt> <dd><p>Makes a subdirectory (recursively if neccessary).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.openinputfile"> <tt class="descname">openinputfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.openinputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the input file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.openoutputfile"> <tt class="descname">openoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.openoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.opentemplatefile"> <tt class="descname">opentemplatefile</tt><big>(</big><em>options</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.opentemplatefile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens the template file (if required).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.opentempoutputfile"> <tt class="descname">opentempoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.opentempoutputfile" title="Permalink to this definition">¶</a></dt> <dd><p>Opens a temporary output file.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.outputterminology"> <tt class="descname">outputterminology</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.outputterminology" title="Permalink to this definition">¶</a></dt> <dd><p>saves the generated terminology glossary</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.parse_args"> <tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>values=None</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.parse_args" title="Permalink to this definition">¶</a></dt> <dd><p>parses the command line options, handling implicit input/output args</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.print_help"> <tt class="descname">print_help</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.print_help" title="Permalink to this definition">¶</a></dt> <dd><p>Print an extended help message, listing all options and any help text provided with them, to &#8216;file&#8217; (default stdout).</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.print_manpage"> <tt class="descname">print_manpage</tt><big>(</big><em>file=None</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.print_manpage" title="Permalink to this definition">¶</a></dt> <dd><p>outputs a manpage for the program using the help information</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.print_usage"> <tt class="descname">print_usage</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.print_usage" title="Permalink to this definition">¶</a></dt> <dd><p>Print the usage message for the current program (self.usage) to &#8216;file&#8217; (default stdout). Any occurrence of the string &#8220;%prog&#8221; in self.usage is replaced with the name of the current program (basename of sys.argv[0]). Does nothing if self.usage is empty or not defined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.print_version"> <tt class="descname">print_version</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.print_version" title="Permalink to this definition">¶</a></dt> <dd><p>Print the version message for this program (self.version) to &#8216;file&#8217; (default stdout). As with print_usage(), any occurrence of &#8220;%prog&#8221; in self.version is replaced by the current program&#8217;s name. Does nothing if self.version is empty or undefined.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.processfile"> <tt class="descname">processfile</tt><big>(</big><em>fileprocessor</em>, <em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.processfile" title="Permalink to this definition">¶</a></dt> <dd><p>process an individual file</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.recurseinputfilelist"> <tt class="descname">recurseinputfilelist</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.recurseinputfilelist" title="Permalink to this definition">¶</a></dt> <dd><p>Use a list of files, and find a common base directory for them.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.recurseinputfiles"> <tt class="descname">recurseinputfiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.recurseinputfiles" title="Permalink to this definition">¶</a></dt> <dd><p>Recurse through directories and return files to be processed.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.recursiveprocess"> <tt class="descname">recursiveprocess</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.recursiveprocess" title="Permalink to this definition">¶</a></dt> <dd><p>recurse through directories and process files</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.reportprogress"> <tt class="descname">reportprogress</tt><big>(</big><em>filename</em>, <em>success</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.reportprogress" title="Permalink to this definition">¶</a></dt> <dd><p>Shows that we are progressing...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.run"> <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.run" title="Permalink to this definition">¶</a></dt> <dd><p>parses the arguments, and runs recursiveprocess with the resulting options</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.set_usage"> <tt class="descname">set_usage</tt><big>(</big><em>usage=None</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.set_usage" title="Permalink to this definition">¶</a></dt> <dd><p>sets the usage string - if usage not given, uses getusagestring for each option</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.seterrorleveloptions"> <tt class="descname">seterrorleveloptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.seterrorleveloptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the errorlevel options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.setformats"> <tt class="descname">setformats</tt><big>(</big><em>formats</em>, <em>usetemplates</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.setformats" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the format options using the given format dictionary.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>formats</strong> (<em>Dictionary</em>) &#8211; <p>The dictionary <em>keys</em> should be:</p> <ul class="simple"> <li>Single strings (or 1-tuples) containing an input format (if not <em>usetemplates</em>)</li> <li>Tuples containing an input format and template format (if <em>usetemplates</em>)</li> <li>Formats can be <em>None</em> to indicate what to do with standard input</li> </ul> <p>The dictionary <em>values</em> should be tuples of outputformat (string) and processor method.</p> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.setmanpageoption"> <tt class="descname">setmanpageoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.setmanpageoption" title="Permalink to this definition">¶</a></dt> <dd><p>creates a manpage option that allows the optionparser to generate a manpage</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.setprogressoptions"> <tt class="descname">setprogressoptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.setprogressoptions" title="Permalink to this definition">¶</a></dt> <dd><p>Sets the progress options.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.splitext"> <tt class="descname">splitext</tt><big>(</big><em>pathname</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.splitext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits <em>pathname</em> into name and ext, and removes the extsep.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pathname</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) &#8211; A file path</td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">root, ext</td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.splitinputext"> <tt class="descname">splitinputext</tt><big>(</big><em>inputpath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.splitinputext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits an <em>inputpath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.splittemplateext"> <tt class="descname">splittemplateext</tt><big>(</big><em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.splittemplateext" title="Permalink to this definition">¶</a></dt> <dd><p>Splits a <em>templatepath</em> into name and extension.</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.templateexists"> <tt class="descname">templateexists</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.templateexists" title="Permalink to this definition">¶</a></dt> <dd><p>Returns whether the given template exists...</p> </dd></dl> <dl class="method"> <dt id="translate.tools.poterminology.TerminologyOptionParser.warning"> <tt class="descname">warning</tt><big>(</big><em>msg</em>, <em>options=None</em>, <em>exc_info=None</em><big>)</big><a class="headerlink" href="#translate.tools.poterminology.TerminologyOptionParser.warning" title="Permalink to this definition">¶</a></dt> <dd><p>Print a warning message incorporating &#8216;msg&#8217; to stderr and exit.</p> </dd></dl> </dd></dl> </div> <div class="section" id="module-translate.tools.pretranslate"> <span id="pretranslate"></span><h2>pretranslate<a class="headerlink" href="#module-translate.tools.pretranslate" title="Permalink to this headline">¶</a></h2> <p>Fill localization files with suggested translations based on translation memory and existing translations.</p> <p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pretranslate.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pretranslate.html</a> for examples and usage instructions.</p> <dl class="function"> <dt id="translate.tools.pretranslate.match_fuzzy"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">match_fuzzy</tt><big>(</big><em>input_unit</em>, <em>matchers</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.match_fuzzy" title="Permalink to this definition">¶</a></dt> <dd><p>Return a fuzzy match from a queue of matchers.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.match_source"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">match_source</tt><big>(</big><em>input_unit</em>, <em>template_store</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.match_source" title="Permalink to this definition">¶</a></dt> <dd><p>Returns a matching unit from a template. matching based on unit id</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.match_template_id"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">match_template_id</tt><big>(</big><em>input_unit</em>, <em>template_store</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.match_template_id" title="Permalink to this definition">¶</a></dt> <dd><p>Returns a matching unit from a template. matching based on unit id</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.match_template_location"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">match_template_location</tt><big>(</big><em>input_unit</em>, <em>template_store</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.match_template_location" title="Permalink to this definition">¶</a></dt> <dd><p>Returns a matching unit from a template. matching based on locations</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.memory"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">memory</tt><big>(</big><em>tmfiles</em>, <em>max_candidates=1</em>, <em>min_similarity=75</em>, <em>max_length=1000</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.memory" title="Permalink to this definition">¶</a></dt> <dd><p>Returns the TM store to use. Only initialises on first call.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.pretranslate_file"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">pretranslate_file</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file</em>, <em>tm=None</em>, <em>min_similarity=75</em>, <em>fuzzymatching=True</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.pretranslate_file" title="Permalink to this definition">¶</a></dt> <dd><p>Pretranslate any factory supported file with old translations and translation memory.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.pretranslate_store"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">pretranslate_store</tt><big>(</big><em>input_store</em>, <em>template_store</em>, <em>tm=None</em>, <em>min_similarity=75</em>, <em>fuzzymatching=True</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.pretranslate_store" title="Permalink to this definition">¶</a></dt> <dd><p>Do the actual pretranslation of a whole store.</p> </dd></dl> <dl class="function"> <dt id="translate.tools.pretranslate.pretranslate_unit"> <tt class="descclassname">translate.tools.pretranslate.</tt><tt class="descname">pretranslate_unit</tt><big>(</big><em>input_unit</em>, <em>template_store</em>, <em>matchers=None</em>, <em>mark_reused=False</em>, <em>merge_on='id'</em><big>)</big><a class="headerlink" href="#translate.tools.pretranslate.pretranslate_unit" title="Permalink to this definition">¶</a></dt> <dd><p>Pretranslate a unit or return unchanged if no translation was found.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> <li><strong>input_unit</strong> &#8211; Unit that will be pretranslated.</li> <li><strong>template_store</strong> &#8211; Fill input unit with units matching in this store.</li> <li><strong>matchers</strong> &#8211; List of fuzzy <a class="reference internal" href="search.html#translate.search.match.matcher" title="translate.search.match.matcher"><tt class="xref py py-class docutils literal"><span class="pre">matcher</span></tt></a> objects.</li> <li><strong>mark_reused</strong> &#8211; Whether to mark old translations as reused or not.</li> <li><strong>merge_on</strong> &#8211; Where will the merge matching happen on.</li> </ul> </td> </tr> </tbody> </table> </dd></dl> </div> <div class="section" id="module-translate.tools.pydiff"> <span id="pydiff"></span><h2>pydiff<a class="headerlink" href="#module-translate.tools.pydiff" title="Permalink to this headline">¶</a></h2> <p>diff tool like GNU diff, but lets you have special options that are useful in dealing with PO files</p> <dl class="class"> <dt id="translate.tools.pydiff.DirDiffer"> <em class="property">class </em><tt class="descclassname">translate.tools.pydiff.</tt><tt class="descname">DirDiffer</tt><big>(</big><em>fromdir</em>, <em>todir</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.DirDiffer" title="Permalink to this definition">¶</a></dt> <dd><p>generates diffs between directories</p> <dl class="method"> <dt id="translate.tools.pydiff.DirDiffer.isexcluded"> <tt class="descname">isexcluded</tt><big>(</big><em>difffile</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.DirDiffer.isexcluded" title="Permalink to this definition">¶</a></dt> <dd><p>checks if the given filename has been excluded from the diff</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pydiff.DirDiffer.writediff"> <tt class="descname">writediff</tt><big>(</big><em>outfile</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.DirDiffer.writediff" title="Permalink to this definition">¶</a></dt> <dd><p>writes the actual diff to the given file</p> </dd></dl> </dd></dl> <dl class="class"> <dt id="translate.tools.pydiff.FileDiffer"> <em class="property">class </em><tt class="descclassname">translate.tools.pydiff.</tt><tt class="descname">FileDiffer</tt><big>(</big><em>fromfile</em>, <em>tofile</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.FileDiffer" title="Permalink to this definition">¶</a></dt> <dd><p>generates diffs between files</p> <dl class="method"> <dt id="translate.tools.pydiff.FileDiffer.get_from_lines"> <tt class="descname">get_from_lines</tt><big>(</big><em>group</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.FileDiffer.get_from_lines" title="Permalink to this definition">¶</a></dt> <dd><p>returns the lines referred to by group, from the fromfile</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pydiff.FileDiffer.get_to_lines"> <tt class="descname">get_to_lines</tt><big>(</big><em>group</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.FileDiffer.get_to_lines" title="Permalink to this definition">¶</a></dt> <dd><p>returns the lines referred to by group, from the tofile</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pydiff.FileDiffer.unified_diff"> <tt class="descname">unified_diff</tt><big>(</big><em>group</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.FileDiffer.unified_diff" title="Permalink to this definition">¶</a></dt> <dd><p>takes the group of opcodes and generates a unified diff line by line</p> </dd></dl> <dl class="method"> <dt id="translate.tools.pydiff.FileDiffer.writediff"> <tt class="descname">writediff</tt><big>(</big><em>outfile</em><big>)</big><a class="headerlink" href="#translate.tools.pydiff.FileDiffer.writediff" title="Permalink to this definition">¶</a></dt> <dd><p>writes the actual diff to the given file</p> </dd></dl> </dd></dl> <dl class="function"> <dt id="translate.tools.pydiff.main"> <tt class="descclassname">translate.tools.pydiff.</tt><tt class="descname">main</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.tools.pydiff.main" title="Permalink to this definition">¶</a></dt> <dd><p>main program for pydiff</p> </dd></dl> </div> <div class="section" id="module-translate.tools.pypo2phppo"> <span id="pypo2phppo"></span><h2>pypo2phppo<a class="headerlink" href="#module-translate.tools.pypo2phppo" title="Permalink to this headline">¶</a></h2> <p>Convert Python format .po files to PHP format .po files.</p> <dl class="function"> <dt id="translate.tools.pypo2phppo.convertpy2php"> <tt class="descclassname">translate.tools.pypo2phppo.</tt><tt class="descname">convertpy2php</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>template=None</em><big>)</big><a class="headerlink" href="#translate.tools.pypo2phppo.convertpy2php" title="Permalink to this definition">¶</a></dt> <dd><p>Converts from Python .po to PHP .po</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> <li><strong>inputfile</strong> &#8211; file handle of the source</li> <li><strong>outputfile</strong> &#8211; file handle to write to</li> <li><strong>template</strong> &#8211; unused</li> </ul> </td> </tr> </tbody> </table> </dd></dl> <dl class="function"> <dt id="translate.tools.pypo2phppo.main"> <tt class="descclassname">translate.tools.pypo2phppo.</tt><tt class="descname">main</tt><big>(</big><em>argv=None</em><big>)</big><a class="headerlink" href="#translate.tools.pypo2phppo.main" title="Permalink to this definition">¶</a></dt> <dd><p>Converts from Python .po to PHP .po</p> </dd></dl> </div> </div> </div> <hr> <footer class="footer"> <div class="container"> <p class="pull-right"><a href="#">Back to top ↑</a></p> <ul class="unstyled muted"> <li><small> &copy; 2012, Translate.org.za.<br/> </small></li> <li><small> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2.1. </small></li> </ul> </div> </footer> </body> </html>
Java
// // IMAPFetchNamespaceOperation.h // mailcore2 // // Created by DINH Viêt Hoà on 1/12/13. // Copyright (c) 2013 MailCore. All rights reserved. // #ifndef __MAILCORE_MCIMAPFETCHNAMESPACEOPERATION_H_ #define __MAILCORE_MCIMAPFETCHNAMESPACEOPERATION_H_ #include <MailCore/MCIMAPOperation.h> #ifdef __cplusplus namespace mailcore { class IMAPFetchNamespaceOperation : public IMAPOperation { public: IMAPFetchNamespaceOperation(); virtual ~IMAPFetchNamespaceOperation(); // Result. virtual HashMap * namespaces(); public: // subclass behavior virtual void main(); private: HashMap * mNamespaces; }; } #endif #endif
Java
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/x11/hotplug_event_handler_x11.h" #include <X11/extensions/XInput.h> #include <X11/extensions/XInput2.h> #include <cmath> #include <set> #include <string> #include <vector> #include "base/command_line.h" #include "base/files/file_enumerator.h" #include "base/logging.h" #include "base/process/launch.h" #include "base/strings/string_util.h" #include "base/sys_info.h" #include "ui/events/device_hotplug_event_observer.h" #include "ui/events/touchscreen_device.h" #include "ui/gfx/x/x11_types.h" namespace ui { namespace { // We consider the touchscreen to be internal if it is an I2c device. // With the device id, we can query X to get the device's dev input // node eventXXX. Then we search all the dev input nodes registered // by I2C devices to see if we can find eventXXX. bool IsTouchscreenInternal(XDisplay* dpy, int device_id) { using base::FileEnumerator; using base::FilePath; #if !defined(CHROMEOS) return false; #else if (!base::SysInfo::IsRunningOnChromeOS()) return false; #endif // Input device has a property "Device Node" pointing to its dev input node, // e.g. Device Node (250): "/dev/input/event8" Atom device_node = XInternAtom(dpy, "Device Node", False); if (device_node == None) return false; Atom actual_type; int actual_format; unsigned long nitems, bytes_after; unsigned char* data; XDevice* dev = XOpenDevice(dpy, device_id); if (!dev) return false; if (XGetDeviceProperty(dpy, dev, device_node, 0, 1000, False, AnyPropertyType, &actual_type, &actual_format, &nitems, &bytes_after, &data) != Success) { XCloseDevice(dpy, dev); return false; } base::FilePath dev_node_path(reinterpret_cast<char*>(data)); XFree(data); XCloseDevice(dpy, dev); std::string event_node = dev_node_path.BaseName().value(); if (event_node.empty() || !StartsWithASCII(event_node, "event", false)) return false; // Extract id "XXX" from "eventXXX" std::string event_node_id = event_node.substr(5); // I2C input device registers its dev input node at // /sys/bus/i2c/devices/*/input/inputXXX/eventXXX FileEnumerator i2c_enum(FilePath(FILE_PATH_LITERAL("/sys/bus/i2c/devices/")), false, base::FileEnumerator::DIRECTORIES); for (FilePath i2c_name = i2c_enum.Next(); !i2c_name.empty(); i2c_name = i2c_enum.Next()) { FileEnumerator input_enum(i2c_name.Append(FILE_PATH_LITERAL("input")), false, base::FileEnumerator::DIRECTORIES, FILE_PATH_LITERAL("input*")); for (base::FilePath input = input_enum.Next(); !input.empty(); input = input_enum.Next()) { if (input.BaseName().value().substr(5) == event_node_id) return true; } } return false; } } // namespace HotplugEventHandlerX11::HotplugEventHandlerX11( DeviceHotplugEventObserver* delegate) : delegate_(delegate) { } HotplugEventHandlerX11::~HotplugEventHandlerX11() { } void HotplugEventHandlerX11::OnHotplugEvent() { const XIDeviceList& device_list = DeviceListCacheX::GetInstance()->GetXI2DeviceList(gfx::GetXDisplay()); HandleTouchscreenDevices(device_list); } void HotplugEventHandlerX11::HandleTouchscreenDevices( const XIDeviceList& x11_devices) { std::vector<TouchscreenDevice> devices; Display* display = gfx::GetXDisplay(); Atom valuator_x = XInternAtom(display, "Abs MT Position X", False); Atom valuator_y = XInternAtom(display, "Abs MT Position Y", False); if (valuator_x == None || valuator_y == None) return; std::set<int> no_match_touchscreen; for (int i = 0; i < x11_devices.count; i++) { if (!x11_devices[i].enabled || x11_devices[i].use != XIFloatingSlave) continue; // Assume all touchscreens are floating slaves double width = -1.0; double height = -1.0; bool is_direct_touch = false; for (int j = 0; j < x11_devices[i].num_classes; j++) { XIAnyClassInfo* class_info = x11_devices[i].classes[j]; if (class_info->type == XIValuatorClass) { XIValuatorClassInfo* valuator_info = reinterpret_cast<XIValuatorClassInfo*>(class_info); if (valuator_x == valuator_info->label) { // Ignore X axis valuator with unexpected properties if (valuator_info->number == 0 && valuator_info->mode == Absolute && valuator_info->min == 0.0) { width = valuator_info->max; } } else if (valuator_y == valuator_info->label) { // Ignore Y axis valuator with unexpected properties if (valuator_info->number == 1 && valuator_info->mode == Absolute && valuator_info->min == 0.0) { height = valuator_info->max; } } } #if defined(USE_XI2_MT) if (class_info->type == XITouchClass) { XITouchClassInfo* touch_info = reinterpret_cast<XITouchClassInfo*>(class_info); is_direct_touch = touch_info->mode == XIDirectTouch; } #endif } // Touchscreens should have absolute X and Y axes, and be direct touch // devices. if (width > 0.0 && height > 0.0 && is_direct_touch) { bool is_internal = IsTouchscreenInternal(display, x11_devices[i].deviceid); devices.push_back(TouchscreenDevice( x11_devices[i].deviceid, gfx::Size(width, height), is_internal)); } } delegate_->OnTouchscreenDevicesUpdated(devices); } } // namespace ui
Java
<?php /** * ALIPAY API: alipay.pass.instance.update request * * @author auto create * @since 1.0, 2015-07-23 11:37:35 */ class AlipayPassInstanceUpdateRequest { /** * 需要更新的券实例变量和状态信息 **/ private $bizContent; private $apiParas = array(); private $terminalType; private $terminalInfo; private $prodCode; private $apiVersion="1.0"; private $notifyUrl; public function setBizContent($bizContent) { $this->bizContent = $bizContent; $this->apiParas["biz_content"] = $bizContent; } public function getBizContent() { return $this->bizContent; } public function getApiMethodName() { return "alipay.pass.instance.update"; } public function setNotifyUrl($notifyUrl) { $this->notifyUrl=$notifyUrl; } public function getNotifyUrl() { return $this->notifyUrl; } public function getApiParas() { return $this->apiParas; } public function getTerminalType() { return $this->terminalType; } public function setTerminalType($terminalType) { $this->terminalType = $terminalType; } public function getTerminalInfo() { return $this->terminalInfo; } public function setTerminalInfo($terminalInfo) { $this->terminalInfo = $terminalInfo; } public function getProdCode() { return $this->prodCode; } public function setProdCode($prodCode) { $this->prodCode = $prodCode; } public function setApiVersion($apiVersion) { $this->apiVersion=$apiVersion; } public function getApiVersion() { return $this->apiVersion; } }
Java
"""Univariate features selection.""" # Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay. # L. Buitinck, A. Joly # License: BSD 3 clause import numpy as np import warnings from scipy import special, stats from scipy.sparse import issparse from ..base import BaseEstimator from ..preprocessing import LabelBinarizer from ..utils import (as_float_array, check_array, check_X_y, safe_sqr, safe_mask) from ..utils.extmath import norm, safe_sparse_dot from ..utils.validation import check_is_fitted from .base import SelectorMixin def _clean_nans(scores): """ Fixes Issue #1240: NaNs can't be properly compared, so change them to the smallest value of scores's dtype. -inf seems to be unreliable. """ # XXX where should this function be called? fit? scoring functions # themselves? scores = as_float_array(scores, copy=True) scores[np.isnan(scores)] = np.finfo(scores.dtype).min return scores ###################################################################### # Scoring functions # The following function is a rewriting of scipy.stats.f_oneway # Contrary to the scipy.stats.f_oneway implementation it does not # copy the data while keeping the inputs unchanged. def f_oneway(*args): """Performs a 1-way ANOVA. The one-way ANOVA tests the null hypothesis that 2 or more groups have the same population mean. The test is applied to samples from two or more groups, possibly with differing sizes. Parameters ---------- sample1, sample2, ... : array_like, sparse matrices The sample measurements should be given as arguments. Returns ------- F-value : float The computed F-value of the test. p-value : float The associated p-value from the F-distribution. Notes ----- The ANOVA test has important assumptions that must be satisfied in order for the associated p-value to be valid. 1. The samples are independent 2. Each sample is from a normally distributed population 3. The population standard deviations of the groups are all equal. This property is known as homoscedasticity. If these assumptions are not true for a given set of data, it may still be possible to use the Kruskal-Wallis H-test (`scipy.stats.kruskal`_) although with some loss of power. The algorithm is from Heiman[2], pp.394-7. See ``scipy.stats.f_oneway`` that should give the same results while being less efficient. References ---------- .. [1] Lowry, Richard. "Concepts and Applications of Inferential Statistics". Chapter 14. http://faculty.vassar.edu/lowry/ch14pt1.html .. [2] Heiman, G.W. Research Methods in Statistics. 2002. """ n_classes = len(args) args = [as_float_array(a) for a in args] n_samples_per_class = np.array([a.shape[0] for a in args]) n_samples = np.sum(n_samples_per_class) ss_alldata = sum(safe_sqr(a).sum(axis=0) for a in args) sums_args = [np.asarray(a.sum(axis=0)) for a in args] square_of_sums_alldata = sum(sums_args) ** 2 square_of_sums_args = [s ** 2 for s in sums_args] sstot = ss_alldata - square_of_sums_alldata / float(n_samples) ssbn = 0. for k, _ in enumerate(args): ssbn += square_of_sums_args[k] / n_samples_per_class[k] ssbn -= square_of_sums_alldata / float(n_samples) sswn = sstot - ssbn dfbn = n_classes - 1 dfwn = n_samples - n_classes msb = ssbn / float(dfbn) msw = sswn / float(dfwn) constant_features_idx = np.where(msw == 0.)[0] if (np.nonzero(msb)[0].size != msb.size and constant_features_idx.size): warnings.warn("Features %s are constant." % constant_features_idx, UserWarning) f = msb / msw # flatten matrix to vector in sparse case f = np.asarray(f).ravel() prob = stats.fprob(dfbn, dfwn, f) return f, prob def f_classif(X, y): """Compute the Anova F-value for the provided sample Parameters ---------- X : {array-like, sparse matrix} shape = [n_samples, n_features] The set of regressors that will tested sequentially. y : array of shape(n_samples) The data matrix. Returns ------- F : array, shape = [n_features,] The set of F values. pval : array, shape = [n_features,] The set of p-values. """ X, y = check_X_y(X, y, ['csr', 'csc', 'coo']) args = [X[safe_mask(X, y == k)] for k in np.unique(y)] return f_oneway(*args) def _chisquare(f_obs, f_exp): """Fast replacement for scipy.stats.chisquare. Version from https://github.com/scipy/scipy/pull/2525 with additional optimizations. """ f_obs = np.asarray(f_obs, dtype=np.float64) k = len(f_obs) # Reuse f_obs for chi-squared statistics chisq = f_obs chisq -= f_exp chisq **= 2 chisq /= f_exp chisq = chisq.sum(axis=0) return chisq, special.chdtrc(k - 1, chisq) def chi2(X, y): """Compute chi-squared statistic for each class/feature combination. This score can be used to select the n_features features with the highest values for the test chi-squared statistic from X, which must contain booleans or frequencies (e.g., term counts in document classification), relative to the classes. Recall that the chi-square test measures dependence between stochastic variables, so using this function "weeds out" the features that are the most likely to be independent of class and therefore irrelevant for classification. Parameters ---------- X : {array-like, sparse matrix}, shape = (n_samples, n_features_in) Sample vectors. y : array-like, shape = (n_samples,) Target vector (class labels). Returns ------- chi2 : array, shape = (n_features,) chi2 statistics of each feature. pval : array, shape = (n_features,) p-values of each feature. Notes ----- Complexity of this algorithm is O(n_classes * n_features). """ # XXX: we might want to do some of the following in logspace instead for # numerical stability. X = check_array(X, accept_sparse='csr') if np.any((X.data if issparse(X) else X) < 0): raise ValueError("Input X must be non-negative.") Y = LabelBinarizer().fit_transform(y) if Y.shape[1] == 1: Y = np.append(1 - Y, Y, axis=1) observed = safe_sparse_dot(Y.T, X) # n_classes * n_features feature_count = check_array(X.sum(axis=0)) class_prob = check_array(Y.mean(axis=0)) expected = np.dot(class_prob.T, feature_count) return _chisquare(observed, expected) def f_regression(X, y, center=True): """Univariate linear regression tests Quick linear model for testing the effect of a single regressor, sequentially for many regressors. This is done in 3 steps: 1. the regressor of interest and the data are orthogonalized wrt constant regressors 2. the cross correlation between data and regressors is computed 3. it is converted to an F score then to a p-value Parameters ---------- X : {array-like, sparse matrix} shape = (n_samples, n_features) The set of regressors that will tested sequentially. y : array of shape(n_samples). The data matrix center : True, bool, If true, X and y will be centered. Returns ------- F : array, shape=(n_features,) F values of features. pval : array, shape=(n_features,) p-values of F-scores. """ if issparse(X) and center: raise ValueError("center=True only allowed for dense data") X, y = check_X_y(X, y, ['csr', 'csc', 'coo'], dtype=np.float) if center: y = y - np.mean(y) X = X.copy('F') # faster in fortran X -= X.mean(axis=0) # compute the correlation corr = safe_sparse_dot(y, X) # XXX could use corr /= row_norms(X.T) here, but the test doesn't pass corr /= np.asarray(np.sqrt(safe_sqr(X).sum(axis=0))).ravel() corr /= norm(y) # convert to p-value degrees_of_freedom = y.size - (2 if center else 1) F = corr ** 2 / (1 - corr ** 2) * degrees_of_freedom pv = stats.f.sf(F, 1, degrees_of_freedom) return F, pv ###################################################################### # Base classes class _BaseFilter(BaseEstimator, SelectorMixin): """Initialize the univariate feature selection. Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). """ def __init__(self, score_func): self.score_func = score_func def fit(self, X, y): """Run score function on (X, y) and get the appropriate features. Parameters ---------- X : array-like, shape = [n_samples, n_features] The training input samples. y : array-like, shape = [n_samples] The target values (class labels in classification, real numbers in regression). Returns ------- self : object Returns self. """ X, y = check_X_y(X, y, ['csr', 'csc', 'coo']) if not callable(self.score_func): raise TypeError("The score function should be a callable, %s (%s) " "was passed." % (self.score_func, type(self.score_func))) self._check_params(X, y) self.scores_, self.pvalues_ = self.score_func(X, y) self.scores_ = np.asarray(self.scores_) self.pvalues_ = np.asarray(self.pvalues_) return self def _check_params(self, X, y): pass ###################################################################### # Specific filters ###################################################################### class SelectPercentile(_BaseFilter): """Select features according to a percentile of the highest scores. Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). percentile : int, optional, default=10 Percent of features to keep. Attributes ---------- scores_ : array-like, shape=(n_features,) Scores of features. pvalues_ : array-like, shape=(n_features,) p-values of feature scores. Notes ----- Ties between features with equal scores will be broken in an unspecified way. """ def __init__(self, score_func=f_classif, percentile=10): super(SelectPercentile, self).__init__(score_func) self.percentile = percentile def _check_params(self, X, y): if not 0 <= self.percentile <= 100: raise ValueError("percentile should be >=0, <=100; got %r" % self.percentile) def _get_support_mask(self): check_is_fitted(self, 'scores_') # Cater for NaNs if self.percentile == 100: return np.ones(len(self.scores_), dtype=np.bool) elif self.percentile == 0: return np.zeros(len(self.scores_), dtype=np.bool) scores = _clean_nans(self.scores_) treshold = stats.scoreatpercentile(scores, 100 - self.percentile) mask = scores > treshold ties = np.where(scores == treshold)[0] if len(ties): max_feats = len(scores) * self.percentile // 100 kept_ties = ties[:max_feats - mask.sum()] mask[kept_ties] = True return mask class SelectKBest(_BaseFilter): """Select features according to the k highest scores. Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). k : int or "all", optional, default=10 Number of top features to select. The "all" option bypasses selection, for use in a parameter search. Attributes ---------- scores_ : array-like, shape=(n_features,) Scores of features. pvalues_ : array-like, shape=(n_features,) p-values of feature scores. Notes ----- Ties between features with equal scores will be broken in an unspecified way. """ def __init__(self, score_func=f_classif, k=10): super(SelectKBest, self).__init__(score_func) self.k = k def _check_params(self, X, y): if not (self.k == "all" or 0 <= self.k <= X.shape[1]): raise ValueError("k should be >=0, <= n_features; got %r." "Use k='all' to return all features." % self.k) def _get_support_mask(self): check_is_fitted(self, 'scores_') if self.k == 'all': return np.ones(self.scores_.shape, dtype=bool) elif self.k == 0: return np.zeros(self.scores_.shape, dtype=bool) else: scores = _clean_nans(self.scores_) mask = np.zeros(scores.shape, dtype=bool) # Request a stable sort. Mergesort takes more memory (~40MB per # megafeature on x86-64). mask[np.argsort(scores, kind="mergesort")[-self.k:]] = 1 return mask class SelectFpr(_BaseFilter): """Filter: Select the pvalues below alpha based on a FPR test. FPR test stands for False Positive Rate test. It controls the total amount of false detections. Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). alpha : float, optional The highest p-value for features to be kept. Attributes ---------- scores_ : array-like, shape=(n_features,) Scores of features. pvalues_ : array-like, shape=(n_features,) p-values of feature scores. """ def __init__(self, score_func=f_classif, alpha=5e-2): super(SelectFpr, self).__init__(score_func) self.alpha = alpha def _get_support_mask(self): check_is_fitted(self, 'scores_') return self.pvalues_ < self.alpha class SelectFdr(_BaseFilter): """Filter: Select the p-values for an estimated false discovery rate This uses the Benjamini-Hochberg procedure. ``alpha`` is the target false discovery rate. Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). alpha : float, optional The highest uncorrected p-value for features to keep. Attributes ---------- scores_ : array-like, shape=(n_features,) Scores of features. pvalues_ : array-like, shape=(n_features,) p-values of feature scores. """ def __init__(self, score_func=f_classif, alpha=5e-2): super(SelectFdr, self).__init__(score_func) self.alpha = alpha def _get_support_mask(self): check_is_fitted(self, 'scores_') alpha = self.alpha sv = np.sort(self.pvalues_) selected = sv[sv < alpha * np.arange(len(self.pvalues_))] if selected.size == 0: return np.zeros_like(self.pvalues_, dtype=bool) return self.pvalues_ <= selected.max() class SelectFwe(_BaseFilter): """Filter: Select the p-values corresponding to Family-wise error rate Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). alpha : float, optional The highest uncorrected p-value for features to keep. Attributes ---------- scores_ : array-like, shape=(n_features,) Scores of features. pvalues_ : array-like, shape=(n_features,) p-values of feature scores. """ def __init__(self, score_func=f_classif, alpha=5e-2): super(SelectFwe, self).__init__(score_func) self.alpha = alpha def _get_support_mask(self): check_is_fitted(self, 'scores_') return (self.pvalues_ < self.alpha / len(self.pvalues_)) ###################################################################### # Generic filter ###################################################################### # TODO this class should fit on either p-values or scores, # depending on the mode. class GenericUnivariateSelect(_BaseFilter): """Univariate feature selector with configurable strategy. Parameters ---------- score_func : callable Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). mode : {'percentile', 'k_best', 'fpr', 'fdr', 'fwe'} Feature selection mode. param : float or int depending on the feature selection mode Parameter of the corresponding mode. Attributes ---------- scores_ : array-like, shape=(n_features,) Scores of features. pvalues_ : array-like, shape=(n_features,) p-values of feature scores. """ _selection_modes = {'percentile': SelectPercentile, 'k_best': SelectKBest, 'fpr': SelectFpr, 'fdr': SelectFdr, 'fwe': SelectFwe} def __init__(self, score_func=f_classif, mode='percentile', param=1e-5): super(GenericUnivariateSelect, self).__init__(score_func) self.mode = mode self.param = param def _make_selector(self): selector = self._selection_modes[self.mode](score_func=self.score_func) # Now perform some acrobatics to set the right named parameter in # the selector possible_params = selector._get_param_names() possible_params.remove('score_func') selector.set_params(**{possible_params[0]: self.param}) return selector def _check_params(self, X, y): if self.mode not in self._selection_modes: raise ValueError("The mode passed should be one of %s, %r," " (type %s) was passed." % (self._selection_modes.keys(), self.mode, type(self.mode))) self._make_selector()._check_params(X, y) def _get_support_mask(self): check_is_fitted(self, 'scores_') selector = self._make_selector() selector.pvalues_ = self.pvalues_ selector.scores_ = self.scores_ return selector._get_support_mask()
Java
/* * graph.h * PHD Guiding * * Created by Craig Stark. * Copyright (c) 2006-2010 Craig Stark. * All rights reserved. * * This source code is distributed under the following "BSD" license * 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. * Neither the name of Craig Stark, Stark Labs nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. * */ #ifndef GRAPHCLASS #define GRAPHCLASS #include <deque> class GraphControlPane; enum GRAPH_UNITS { UNIT_PIXELS, UNIT_ARCSEC, }; // accumulator for trend line calculation struct TrendLineAccum { double sum_y; double sum_xy; double sum_y2; }; struct S_HISTORY { wxLongLong_t timestamp; double dx; double dy; double ra; double dec; int raDur; int decDur; double starSNR; double starMass; bool raLimited; bool decLimited; S_HISTORY() { } S_HISTORY(const GuideStepInfo& step) : timestamp(::wxGetUTCTimeMillis().GetValue()), dx(step.cameraOffset->X), dy(step.cameraOffset->Y), ra(step.mountOffset->X), dec(step.mountOffset->Y), raDur(step.durationRA), decDur(step.durationDec), starSNR(step.starSNR), starMass(step.starMass), raLimited(step.raLimited), decLimited(step.decLimited) { } }; struct DitherInfo { wxLongLong_t timestamp; double dRa; double dDec; }; struct SummaryStats { S_HISTORY cur; double rms_ra; double rms_dec; double rms_tot; double osc_index; bool osc_alert; double ra_peak; double dec_peak; unsigned int star_lost_cnt; unsigned int ra_limit_cnt; unsigned int dec_limit_cnt; }; class GraphLogClientWindow : public wxWindow { public: enum GRAPH_MODE { MODE_RADEC, MODE_DXDY, }; private: static const int m_xSamplesPerDivision = 50; static const int m_yDivisions = 3; wxColour m_raOrDxColor, m_decOrDyColor; wxStaticText *m_pRaRMS, *m_pDecRMS, *m_pTotRMS, *m_pOscIndex; unsigned int m_minLength; unsigned int m_minHeight; unsigned int m_maxHeight; circular_buffer<S_HISTORY> m_history; std::deque<DitherInfo> m_dithers; wxPoint *m_line1; wxPoint *m_line2; TrendLineAccum m_trendLineAccum[4]; // dx, dy, ra, dec int m_raSameSides; // accumulator for RA osc index SummaryStats m_stats; GRAPH_MODE m_mode; unsigned int m_length; unsigned int m_height; GRAPH_UNITS m_heightUnits; bool m_showTrendlines; bool m_showCorrections; bool m_showStarMass; bool m_showStarSNR; friend class GraphLogWindow; public: GraphLogClientWindow(wxWindow *parent); ~GraphLogClientWindow(void); bool SetMinLength(unsigned int minLength); bool SetMaxLength(unsigned int maxLength); bool SetMinHeight(unsigned int minLength); bool SetMaxHeight(unsigned int minHeight); void AppendData(const GuideStepInfo& step); void AppendData(const FrameDroppedInfo& info); void AppendData(const DitherInfo& info); unsigned int GetItemCount() const; void ResetData(void); private: void RecalculateTrendLines(void); void UpdateStats(unsigned int nr, const S_HISTORY *cur); void OnPaint(wxPaintEvent& evt); void OnLeftBtnDown(wxMouseEvent& evt); DECLARE_EVENT_TABLE() }; inline unsigned int GraphLogClientWindow::GetItemCount() const { return wxMin(m_history.size(), m_length); } class GraphLogWindow : public wxWindow { OptionsButton *m_pLengthButton; OptionsButton *m_pHeightButton; int m_heightButtonLabelVal; // value currently displayed on height button: <0 for arc-sec, >0 for pixels OptionsButton *m_pSettingsButton; wxCheckBox *m_pCheckboxTrendlines; wxCheckBox *m_pCheckboxCorrections; wxStaticText *RALabel; wxStaticText *DecLabel; wxStaticText *OscIndexLabel; wxStaticText *RMSLabel; wxFlexGridSizer *m_pControlSizer; int m_ControlNbRows; GraphControlPane *m_pXControlPane; GraphControlPane *m_pYControlPane; GraphControlPane *m_pScopePane; bool m_visible; GraphLogClientWindow *m_pClient; int StringWidth(const wxString& string); void UpdateHeightButtonLabel(void); void UpdateRADecDxDyLabels(void); public: enum { DefaultMinLength = 50, DefaultMaxLength = 400, DefaultMinHeight = 1, DefaultMaxHeight = 16, }; GraphLogWindow(wxWindow *parent); ~GraphLogWindow(void); void AppendData(const GuideStepInfo& step); void AppendData(const FrameDroppedInfo& info); void AppendData(const DitherInfo& info); void UpdateControls(void); void SetState(bool is_active); void EnableTrendLines(bool enable); GraphLogClientWindow::GRAPH_MODE SetMode(GraphLogClientWindow::GRAPH_MODE newMode); int GetLength(void) const; void SetLength(int length); int GetHeight(void) const; void SetHeight(int height); wxMenu *GetLengthMenu(void); unsigned int GetHistoryItemCount(void) const; void OnPaint(wxPaintEvent& evt); void OnButtonSettings(wxCommandEvent& evt); void OnRADecDxDy(wxCommandEvent& evt); void OnArcsecsPixels(wxCommandEvent& evt); void OnRADxColor(wxCommandEvent& evt); void OnDecDyColor(wxCommandEvent& evt); void OnMenuStarMass(wxCommandEvent& evt); void OnMenuStarSNR(wxCommandEvent& evt); void OnButtonLength(wxCommandEvent& evt); void OnMenuLength(wxCommandEvent& evt); void OnButtonHeight(wxCommandEvent& evt); void OnMenuHeight(wxCommandEvent& evt); void OnButtonClear(wxCommandEvent& evt); void OnCheckboxTrendlines(wxCommandEvent& evt); void OnCheckboxCorrections(wxCommandEvent& evt); void OnButtonZoomIn(wxCommandEvent& evt); void OnButtonZoomOut(wxCommandEvent& evt); wxStaticText *m_pLabel1, *m_pLabel2; wxColor GetRaOrDxColor(void); wxColor GetDecOrDyColor(void); const SummaryStats& Stats(void) const { return m_pClient->m_stats; } DECLARE_EVENT_TABLE() }; class GraphControlPane : public wxWindow { public: GraphControlPane(wxWindow *pParent, const wxString& label); ~GraphControlPane(void); protected: wxBoxSizer *m_pControlSizer; int StringWidth(const wxString& string); void DoAdd(wxControl *pCtrl, const wxString& lbl); }; #endif
Java
# coding=utf-8 from __future__ import absolute_import from .base import * # ######### IN-MEMORY TEST DATABASE DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", }, }
Java
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ios/chrome/browser/search_engines/template_url_service_factory.h" #include "base/bind.h" #include "base/callback.h" #include "base/no_destructor.h" #include "components/keyed_service/core/service_access_type.h" #include "components/keyed_service/ios/browser_state_dependency_manager.h" #include "components/search_engines/default_search_manager.h" #include "components/search_engines/template_url_service.h" #include "ios/chrome/browser/application_context.h" #include "ios/chrome/browser/browser_state/browser_state_otr_helper.h" #include "ios/chrome/browser/browser_state/chrome_browser_state.h" #include "ios/chrome/browser/history/history_service_factory.h" #include "ios/chrome/browser/search_engines/template_url_service_client_impl.h" #include "ios/chrome/browser/search_engines/ui_thread_search_terms_data.h" #include "ios/chrome/browser/webdata_services/web_data_service_factory.h" #include "rlz/buildflags/buildflags.h" #if BUILDFLAG(ENABLE_RLZ) #include "components/rlz/rlz_tracker.h" // nogncheck #endif namespace ios { namespace { base::RepeatingClosure GetDefaultSearchProviderChangedCallback() { #if BUILDFLAG(ENABLE_RLZ) return base::BindRepeating( base::IgnoreResult(&rlz::RLZTracker::RecordProductEvent), rlz_lib::CHROME, rlz::RLZTracker::ChromeOmnibox(), rlz_lib::SET_TO_GOOGLE); #else return base::RepeatingClosure(); #endif } std::unique_ptr<KeyedService> BuildTemplateURLService( web::BrowserState* context) { ChromeBrowserState* browser_state = ChromeBrowserState::FromBrowserState(context); return std::make_unique<TemplateURLService>( browser_state->GetPrefs(), std::make_unique<ios::UIThreadSearchTermsData>(), ios::WebDataServiceFactory::GetKeywordWebDataForBrowserState( browser_state, ServiceAccessType::EXPLICIT_ACCESS), std::make_unique<ios::TemplateURLServiceClientImpl>( ios::HistoryServiceFactory::GetForBrowserState( browser_state, ServiceAccessType::EXPLICIT_ACCESS)), GetDefaultSearchProviderChangedCallback()); } } // namespace // static TemplateURLService* TemplateURLServiceFactory::GetForBrowserState( ChromeBrowserState* browser_state) { return static_cast<TemplateURLService*>( GetInstance()->GetServiceForBrowserState(browser_state, true)); } // static TemplateURLServiceFactory* TemplateURLServiceFactory::GetInstance() { static base::NoDestructor<TemplateURLServiceFactory> instance; return instance.get(); } // static BrowserStateKeyedServiceFactory::TestingFactory TemplateURLServiceFactory::GetDefaultFactory() { return base::BindRepeating(&BuildTemplateURLService); } TemplateURLServiceFactory::TemplateURLServiceFactory() : BrowserStateKeyedServiceFactory( "TemplateURLService", BrowserStateDependencyManager::GetInstance()) { DependsOn(ios::HistoryServiceFactory::GetInstance()); DependsOn(ios::WebDataServiceFactory::GetInstance()); } TemplateURLServiceFactory::~TemplateURLServiceFactory() {} void TemplateURLServiceFactory::RegisterBrowserStatePrefs( user_prefs::PrefRegistrySyncable* registry) { DefaultSearchManager::RegisterProfilePrefs(registry); TemplateURLService::RegisterProfilePrefs(registry); } std::unique_ptr<KeyedService> TemplateURLServiceFactory::BuildServiceInstanceFor( web::BrowserState* context) const { return BuildTemplateURLService(context); } web::BrowserState* TemplateURLServiceFactory::GetBrowserStateToUse( web::BrowserState* context) const { return GetBrowserStateRedirectedInIncognito(context); } bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() const { return true; } } // namespace ios
Java
#!/bin/bash -ex # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Buildbot annotator script for the main waterfall. Tester only. BB_DIR="$(dirname $0)" BB_SRC_ROOT="$(cd "$BB_DIR/../../.."; pwd)" . "$BB_DIR/buildbot_functions.sh" # SHERIFF: if you need to quickly turn the main waterfall android bots # green (preventing tree closures), uncomment the next line (and send # appropriate email out): ## bb_force_bot_green_and_exit bb_baseline_setup "$BB_SRC_ROOT" "$@" bb_spawn_logcat_monitor_and_status bb_extract_build bb_reboot_phones bb_run_unit_tests bb_run_instrumentation_tests bb_print_logcat
Java
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/threading/platform_thread.h" #include <errno.h> #include <sched.h> #include <stddef.h> #include "base/lazy_instance.h" #include "base/logging.h" #include "base/threading/platform_thread_internal_posix.h" #include "base/threading/thread_id_name_manager.h" #if 0 #include "base/tracked_objects.h" #endif #include "build/build_config.h" #if !defined(OS_NACL) #include <pthread.h> #include <sys/types.h> #include <unistd.h> #endif namespace base { namespace internal { namespace { #if !defined(OS_NACL) const struct sched_param kRealTimePrio = {8}; #endif } // namespace const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = { {ThreadPriority::BACKGROUND, 10}, {ThreadPriority::NORMAL, 0}, {ThreadPriority::DISPLAY, -6}, {ThreadPriority::REALTIME_AUDIO, -10}, }; bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) { #if !defined(OS_NACL) return priority == ThreadPriority::REALTIME_AUDIO && pthread_setschedparam(pthread_self(), SCHED_RR, &kRealTimePrio) == 0; #else return false; #endif } bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) { #if !defined(OS_NACL) int maybe_sched_rr = 0; struct sched_param maybe_realtime_prio = {0}; if (pthread_getschedparam(pthread_self(), &maybe_sched_rr, &maybe_realtime_prio) == 0 && maybe_sched_rr == SCHED_RR && maybe_realtime_prio.sched_priority == kRealTimePrio.sched_priority) { *priority = ThreadPriority::REALTIME_AUDIO; return true; } #endif return false; } } // namespace internal // static void PlatformThread::SetName(const std::string& name) { ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name); #if 0 tracked_objects::ThreadData::InitializeThreadContext(name); #endif #if !defined(OS_NACL) // On FreeBSD we can get the thread names to show up in the debugger by // setting the process name for the LWP. We don't want to do this for the // main thread because that would rename the process, causing tools like // killall to stop working. if (PlatformThread::CurrentId() == getpid()) return; setproctitle("%s", name.c_str()); #endif // !defined(OS_NACL) } void InitThreading() {} void TerminateOnThread() {} size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) { #if !defined(THREAD_SANITIZER) return 0; #else // ThreadSanitizer bloats the stack heavily. Evidence has been that the // default stack size isn't enough for some browser tests. return 2 * (1 << 23); // 2 times 8192K (the default stack size on Linux). #endif } } // namespace base
Java
/* * Copyright (c) 2013, Michael Lehn, Klaus Pototzky * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1) Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2) Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3) Neither the name of the FLENS development group nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * 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 THE COPYRIGHT * OWNER OR CONTRIBUTORS 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. */ /* Based on * SUBROUTINE DGBTF2( M, N, KL, KU, AB, LDAB, IPIV, INFO ) SUBROUTINE ZGBTF2( M, N, KL, KU, AB, LDAB, IPIV, INFO ) * * -- LAPACK routine (version 3.2) -- * -- LAPACK is a software package provided by Univ. of Tennessee, -- * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- * November 2006 */ #ifndef FLENS_LAPACK_GB_TF2_H #define FLENS_LAPACK_GB_TF2_H 1 #include <flens/lapack/typedefs.h> #include <flens/matrixtypes/matrixtypes.h> #include <flens/vectortypes/vectortypes.h> namespace flens { namespace lapack { //== (gb)trf =================================================================== // // Real and complex variant // template <typename MA, typename VPIV> typename RestrictTo<IsGbMatrix<MA>::value && IsIntegerDenseVector<VPIV>::value, typename RemoveRef<MA>::Type::IndexType>::Type tf2(MA &&A, VPIV &&piv); } } // namespace lapack, flens #endif // FLENS_LAPACK_GB_TF2_H
Java
# - Try to find the CHECK libraries # Once done this will define # # CHECK_FOUND - system has check # CHECK_INCLUDE_DIR - the check include directory # CHECK_LIBRARIES - check library # # This configuration file for finding libcheck is originally from # the opensync project. The originally was downloaded from here: # opensync.org/browser/branches/3rd-party-cmake-modules/modules/FindCheck.cmake # # Copyright (c) 2007 Daniel Gollub <[email protected]> # Copyright (c) 2007 Bjoern Ricks <[email protected]> # # Redistribution and use is allowed according to the terms of the New # BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. INCLUDE( FindPkgConfig ) # Take care about check.pc settings PKG_SEARCH_MODULE( CHECK check ) # Look for CHECK include dir and libraries IF( NOT CHECK_FOUND ) IF ( CHECK_INSTALL_DIR ) MESSAGE ( STATUS "Using override CHECK_INSTALL_DIR to find check" ) SET ( CHECK_INCLUDE_DIR "${CHECK_INSTALL_DIR}/include" ) SET ( CHECK_INCLUDE_DIRS "${CHECK_INCLUDE_DIR}" ) FIND_LIBRARY( CHECK_LIBRARY NAMES check PATHS "${CHECK_INSTALL_DIR}/lib" ) FIND_LIBRARY( COMPAT_LIBRARY NAMES compat PATHS "${CHECK_INSTALL_DIR}/lib" ) SET ( CHECK_LIBRARIES "${CHECK_LIBRARY}" "${COMPAT_LIBRARY}" ) ELSE ( CHECK_INSTALL_DIR ) FIND_PATH( CHECK_INCLUDE_DIR check.h ) FIND_LIBRARY( CHECK_LIBRARIES NAMES check ) ENDIF ( CHECK_INSTALL_DIR ) IF ( CHECK_INCLUDE_DIR AND CHECK_LIBRARIES ) SET( CHECK_FOUND 1 ) IF ( NOT Check_FIND_QUIETLY ) MESSAGE ( STATUS "Found CHECK: ${CHECK_LIBRARIES}" ) ENDIF ( NOT Check_FIND_QUIETLY ) ELSE ( CHECK_INCLUDE_DIR AND CHECK_LIBRARIES ) IF ( Check_FIND_REQUIRED ) MESSAGE( FATAL_ERROR "Could NOT find CHECK" ) ELSE ( Check_FIND_REQUIRED ) IF ( NOT Check_FIND_QUIETLY ) MESSAGE( STATUS "Could NOT find CHECK" ) ENDIF ( NOT Check_FIND_QUIETLY ) ENDIF ( Check_FIND_REQUIRED ) ENDIF ( CHECK_INCLUDE_DIR AND CHECK_LIBRARIES ) ENDIF( NOT CHECK_FOUND ) # Hide advanced variables from CMake GUIs MARK_AS_ADVANCED( CHECK_INCLUDE_DIR CHECK_LIBRARIES )
Java
<?php error_reporting(E_ALL); trait THello { public abstract function hello(); } class TraitsTest { use THello; public function hello() { echo 'Hello'; } } $test = new TraitsTest(); $test->hello(); ?>
Java
// Copyright 2015, ARM Limited // All rights reserved. // // 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. // * Neither the name of ARM Limited nor the names of its contributors may be // used to endorse or promote products derived from this software without // specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 THE COPYRIGHT OWNER OR CONTRIBUTORS 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. // --------------------------------------------------------------------- // This file is auto generated using tools/generate_simulator_traces.py. // // PLEASE DO NOT EDIT. // --------------------------------------------------------------------- #ifndef VIXL_SIM_FADD_2S_TRACE_A64_H_ #define VIXL_SIM_FADD_2S_TRACE_A64_H_ const uint32_t kExpected_NEON_fadd_2S[] = { 0x00027f00, 0x00007f00, 0x00000000, 0x00000000, 0x00017f00, 0x00007f40, 0x00000000, 0x00000000, 0x00017f40, 0x00003f80, 0x00000000, 0x00000000, 0x00013f80, 0x00803f80, 0x00000000, 0x00000000, 0x00813f80, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x001273d6, 0x00000000, 0x00000000, 0x001373d6, 0x00803f7f, 0x00000000, 0x00000000, 0x00813f7f, 0x00003f81, 0x00000000, 0x00000000, 0x00013f81, 0x00003f80, 0x00000000, 0x00000000, 0x00013f80, 0x807fc080, 0x00000000, 0x00000000, 0x807ec080, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x8011f4d6, 0x00000000, 0x00000000, 0x8011f4d6, 0x807fc03f, 0x00000000, 0x00000000, 0x807fc07f, 0x00003fbf, 0x00000000, 0x00000000, 0x00003f7f, 0x00003fc0, 0x00000000, 0x00000000, 0x00003f80, 0x00803fc0, 0x00000000, 0x00000000, 0x00803f80, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00127416, 0x00000000, 0x00000000, 0x001273d6, 0x00803fbf, 0x00000000, 0x00000000, 0x00803f7f, 0x00003fc1, 0x00000000, 0x00000000, 0x00003f81, 0x00003fc0, 0x00000000, 0x00000000, 0x00003f80, 0x807fc040, 0x00000000, 0x00000000, 0x807fc080, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x8011f496, 0x00000000, 0x00000000, 0x8011f496, 0x807fffff, 0x00000000, 0x00000000, 0x807fc03f, 0x80000001, 0x00000000, 0x00000000, 0x00003fbf, 0x00000000, 0x00000000, 0x00000000, 0x00003fc0, 0x00800000, 0x00000000, 0x00000000, 0x00803fc0, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00123456, 0x00000000, 0x00000000, 0x00127416, 0x007fffff, 0x00000000, 0x00000000, 0x00803fbf, 0x00000001, 0x00000000, 0x00000000, 0x00003fc1, 0x00000000, 0x00000000, 0x00000000, 0x00003fc0, 0x80800000, 0x00000000, 0x00000000, 0x807fc040, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x80123456, 0x00000000, 0x00000000, 0x80123456, 0x00000001, 0x00000000, 0x00000000, 0x807fffff, 0x007fffff, 0x00000000, 0x00000000, 0x80000001, 0x00800000, 0x00000000, 0x00000000, 0x00000000, 0x01000000, 0x00000000, 0x00000000, 0x00800000, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00923456, 0x00000000, 0x00000000, 0x00123456, 0x00ffffff, 0x00000000, 0x00000000, 0x007fffff, 0x00800001, 0x00000000, 0x00000000, 0x00000001, 0x00800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x80800000, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x006dcbaa, 0x00000000, 0x00000000, 0x006dcbaa, 0x3effffff, 0x00000000, 0x00000000, 0x00000001, 0x3effffff, 0x00000000, 0x00000000, 0x007fffff, 0x3effffff, 0x00000000, 0x00000000, 0x00800000, 0x3effffff, 0x00000000, 0x00000000, 0x01000000, 0x3f7fffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f000001, 0x3fbfffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800000, 0x3fc00001, 0x00000000, 0x00000000, 0x3f800001, 0x40000000, 0x00000000, 0x00000000, 0x3fc00000, 0x41280000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3effffff, 0x00000000, 0x00000000, 0x00923456, 0x3effffff, 0x00000000, 0x00000000, 0x00ffffff, 0x3effffff, 0x00000000, 0x00000000, 0x00800001, 0x3effffff, 0x00000000, 0x00000000, 0x00800000, 0x3effffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xbeffffff, 0xb3000000, 0x00000000, 0x00000000, 0xbf000000, 0xb3c00000, 0x00000000, 0x00000000, 0xbf000001, 0xbeffffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf800000, 0xbf000002, 0x00000000, 0x00000000, 0xbf800001, 0xbf800000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1180000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3fc00000, 0x00000000, 0x00000000, 0x3fbfffff, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x3fc00001, 0x00000000, 0x00000000, 0x3fc00001, 0x40000000, 0x00000000, 0x00000000, 0x40000000, 0x41280000, 0x00000000, 0x00000000, 0x41280000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x33000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xb3000000, 0xb3800000, 0x00000000, 0x00000000, 0xb3c00000, 0xbefffffe, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000002, 0x00000000, 0x00000000, 0xbf000002, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xc1180000, 0x00000000, 0x00000000, 0xc1180000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x3fc00002, 0x00000000, 0x00000000, 0x3fc00001, 0x40000000, 0x00000000, 0x00000000, 0x40000000, 0x41280000, 0x00000000, 0x00000000, 0x41280000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000000, 0x33c00000, 0x00000000, 0x00000000, 0x33000000, 0x33800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xb3800000, 0xbefffffc, 0x00000000, 0x00000000, 0xbefffffe, 0xbefffffe, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000002, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf800000, 0xc1180000, 0x00000000, 0x00000000, 0xc1180000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3fbfffff, 0x00000000, 0x00000000, 0x3f800000, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800000, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fffffff, 0x00000000, 0x00000000, 0x3fc00000, 0x40000000, 0x00000000, 0x00000000, 0x3fc00000, 0x40000000, 0x00000000, 0x00000000, 0x3fc00002, 0x40200000, 0x00000000, 0x00000000, 0x40000000, 0x41300000, 0x00000000, 0x00000000, 0x41280000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3effffff, 0x00000000, 0x00000000, 0x33c00000, 0x3efffffe, 0x00000000, 0x00000000, 0x33800000, 0x3efffffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xbefffffc, 0xb3800000, 0x00000000, 0x00000000, 0xbefffffe, 0xb4400000, 0x00000000, 0x00000000, 0xbf000001, 0xbf000001, 0x00000000, 0x00000000, 0xbf7fffff, 0xc1100000, 0x00000000, 0x00000000, 0xc1180000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3fc00000, 0x00000000, 0x00000000, 0x3fbfffff, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x40000000, 0x00000000, 0x00000000, 0x3fffffff, 0x40000000, 0x00000000, 0x00000000, 0x40000000, 0x40000000, 0x00000000, 0x00000000, 0x40000000, 0x40200000, 0x00000000, 0x00000000, 0x40200000, 0x41300000, 0x00000000, 0x00000000, 0x41300000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f000000, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3efffffe, 0x3efffffe, 0x00000000, 0x00000000, 0x3efffffc, 0x33800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xb3800000, 0xb4000000, 0x00000000, 0x00000000, 0xb4400000, 0xbf000000, 0x00000000, 0x00000000, 0xbf000001, 0xc1100000, 0x00000000, 0x00000000, 0xc1100000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3fc00001, 0x00000000, 0x00000000, 0x3fc00000, 0x3fc00001, 0x00000000, 0x00000000, 0x3fc00000, 0x3fc00002, 0x00000000, 0x00000000, 0x3fc00000, 0x40000000, 0x00000000, 0x00000000, 0x40000000, 0x40000000, 0x00000000, 0x00000000, 0x40000000, 0x40000001, 0x00000000, 0x00000000, 0x40000000, 0x40200000, 0x00000000, 0x00000000, 0x40200000, 0x41300000, 0x00000000, 0x00000000, 0x41300000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800000, 0x3f000002, 0x00000000, 0x00000000, 0x3f000000, 0x3f000002, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3efffffe, 0x34400000, 0x00000000, 0x00000000, 0x33800000, 0x34000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xb4000000, 0xbefffffc, 0x00000000, 0x00000000, 0xbf000000, 0xc1100000, 0x00000000, 0x00000000, 0xc1100000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x40000000, 0x00000000, 0x00000000, 0x3fc00001, 0x40000000, 0x00000000, 0x00000000, 0x3fc00001, 0x40000000, 0x00000000, 0x00000000, 0x3fc00002, 0x40200000, 0x00000000, 0x00000000, 0x40000000, 0x40200000, 0x00000000, 0x00000000, 0x40000000, 0x40200000, 0x00000000, 0x00000000, 0x40000001, 0x40400000, 0x00000000, 0x00000000, 0x40200000, 0x41380000, 0x00000000, 0x00000000, 0x41300000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3f800001, 0x3f800000, 0x00000000, 0x00000000, 0x3f000002, 0x3f800000, 0x00000000, 0x00000000, 0x3f000002, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f000001, 0x3f000001, 0x00000000, 0x00000000, 0x34400000, 0x3f000000, 0x00000000, 0x00000000, 0x34000000, 0x3efffffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xbefffffc, 0xc1080000, 0x00000000, 0x00000000, 0xc1100000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41280000, 0x00000000, 0x00000000, 0x40000000, 0x41280000, 0x00000000, 0x00000000, 0x40000000, 0x41280000, 0x00000000, 0x00000000, 0x40000000, 0x41300000, 0x00000000, 0x00000000, 0x40200000, 0x41300000, 0x00000000, 0x00000000, 0x40200000, 0x41300000, 0x00000000, 0x00000000, 0x40200000, 0x41380000, 0x00000000, 0x00000000, 0x40400000, 0x41a00000, 0x00000000, 0x00000000, 0x41380000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x3fc00000, 0x41180000, 0x00000000, 0x00000000, 0x3f800000, 0x41180000, 0x00000000, 0x00000000, 0x3f800000, 0x41180000, 0x00000000, 0x00000000, 0x3f7fffff, 0x41100000, 0x00000000, 0x00000000, 0x3f000001, 0x41100000, 0x00000000, 0x00000000, 0x3f000000, 0x41100000, 0x00000000, 0x00000000, 0x3efffffc, 0x41080000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xc1080000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41280000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41280000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41280000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41300000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41300000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41300000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41380000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41a00000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fcfffff, 0x00000000, 0x00000000, 0x7f800000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fd23456, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fc00000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fd23456, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fc00001, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41180000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41180000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41180000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41100000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41100000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41100000, 0x7fcfffff, 0x00000000, 0x00000000, 0x41080000, 0x7fcfffff, 0x00000000, 0x00000000, 0x00000000, 0x7fcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0x7fcfffff, 0x00000000, 0x00000000, 0xff800000, 0x7fcfffff, 0x00000000, 0x00000000, 0xffd23456, 0x7fcfffff, 0x00000000, 0x00000000, 0xffc00000, 0x7fcfffff, 0x00000000, 0x00000000, 0xffd23456, 0x7fcfffff, 0x00000000, 0x00000000, 0xffc00001, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fc00000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fc00001, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7fcfffff, 0xffcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fc00000, 0x00000000, 0x00000000, 0x7fcfffff, 0xffd23456, 0x00000000, 0x00000000, 0x7fcfffff, 0xffc00000, 0x00000000, 0x00000000, 0x7fcfffff, 0xffd23456, 0x00000000, 0x00000000, 0x7fcfffff, 0xffc00001, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7f800000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0xffd23456, 0x7fd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fd23456, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00001, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0xffcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0xffd23456, 0x7fd23456, 0x00000000, 0x00000000, 0xffc00001, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x806dcba9, 0x00000000, 0x00000000, 0x7fc00001, 0x00123455, 0x00000000, 0x00000000, 0x7fc00001, 0x00123456, 0x00000000, 0x00000000, 0x7fc00001, 0x00923456, 0x00000000, 0x00000000, 0x7fc00001, 0x3effffff, 0x00000000, 0x00000000, 0x7fc00001, 0x3f000000, 0x00000000, 0x00000000, 0x7fc00001, 0x3f000001, 0x00000000, 0x00000000, 0x7fc00001, 0x3f7fffff, 0x00000000, 0x00000000, 0x7fc00001, 0x3f800000, 0x00000000, 0x00000000, 0x7fc00001, 0x3f800001, 0x00000000, 0x00000000, 0x7fc00001, 0x3fc00000, 0x00000000, 0x00000000, 0x7fc00001, 0x41200000, 0x00000000, 0x00000000, 0x7fc00001, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fc00001, 0x7f800000, 0x00000000, 0x00000000, 0x7fc00001, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00001, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00001, 0x7fd23456, 0x00000000, 0x00000000, 0x7fc00001, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x002468ac, 0x00000000, 0x00000000, 0x7fc00001, 0x00923455, 0x00000000, 0x00000000, 0x7fc00001, 0x00123457, 0x00000000, 0x00000000, 0x7fc00001, 0x00123456, 0x00000000, 0x00000000, 0x7fc00001, 0x806dcbaa, 0x00000000, 0x00000000, 0x7fc00001, 0xbeffffff, 0x00000000, 0x00000000, 0x7fc00001, 0xbf000000, 0x00000000, 0x00000000, 0x7fc00001, 0xbf000001, 0x00000000, 0x00000000, 0x7fc00001, 0xbf7fffff, 0x00000000, 0x00000000, 0x7fc00001, 0xbf800000, 0x00000000, 0x00000000, 0x7fc00001, 0xbf800001, 0x00000000, 0x00000000, 0x7fc00001, 0xbfc00000, 0x00000000, 0x00000000, 0x7fc00001, 0xc1200000, 0x00000000, 0x00000000, 0x7fc00001, 0xffcfffff, 0x00000000, 0x00000000, 0x7fc00001, 0xff800000, 0x00000000, 0x00000000, 0x7fc00001, 0xffd23456, 0x00000000, 0x00000000, 0x7fc00001, 0xffc00000, 0x00000000, 0x00000000, 0x7fc00001, 0xffd23456, 0x00000000, 0x00000000, 0x7fc00001, 0xffc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x806dcba9, 0x007ffffe, 0x00000000, 0x00000000, 0x00123455, 0x007fffff, 0x00000000, 0x00000000, 0x00123456, 0x00ffffff, 0x00000000, 0x00000000, 0x00923456, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00923455, 0x00000000, 0x00000000, 0x002468ac, 0x00fffffe, 0x00000000, 0x00000000, 0x00923455, 0x00800000, 0x00000000, 0x00000000, 0x00123457, 0x007fffff, 0x00000000, 0x00000000, 0x00123456, 0x80000001, 0x00000000, 0x00000000, 0x806dcbaa, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x006dcba9, 0x00000000, 0x00000000, 0x006dcba9, 0x807ffffe, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x007ffffe, 0x00000001, 0x00000000, 0x00000000, 0x007fffff, 0x00800001, 0x00000000, 0x00000000, 0x00ffffff, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00123457, 0x00000000, 0x00000000, 0x00923455, 0x00800000, 0x00000000, 0x00000000, 0x00fffffe, 0x00000002, 0x00000000, 0x00000000, 0x00800000, 0x00000001, 0x00000000, 0x00000000, 0x007fffff, 0x807fffff, 0x00000000, 0x00000000, 0x80000001, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x80123455, 0x00000000, 0x00000000, 0x80123455, 0x807fffff, 0x00000000, 0x00000000, 0x807ffffe, 0x80000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00800000, 0x00000000, 0x00000000, 0x00800001, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x00123456, 0x00000000, 0x00000000, 0x00123457, 0x007fffff, 0x00000000, 0x00000000, 0x00800000, 0x00000001, 0x00000000, 0x00000000, 0x00000002, 0x80000000, 0x00000000, 0x00000000, 0x00000001, 0x80800000, 0x00000000, 0x00000000, 0x807fffff, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x80123456, 0x00000000, 0x00000000, 0x80123456, 0x80ffffff, 0x00000000, 0x00000000, 0x807fffff, 0x80800001, 0x00000000, 0x00000000, 0x80000001, 0x80800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00800000, 0x3effffff, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000001, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800001, 0x00000000, 0x00000000, 0x3f800001, 0x3fc00000, 0x00000000, 0x00000000, 0x3fc00000, 0x41200000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0x806dcbaa, 0x00000000, 0x00000000, 0x00123456, 0x80000001, 0x00000000, 0x00000000, 0x007fffff, 0x807fffff, 0x00000000, 0x00000000, 0x00000001, 0x80800000, 0x00000000, 0x00000000, 0x80000000, 0x81000000, 0x00000000, 0x00000000, 0x80800000, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x80923456, 0x00000000, 0x00000000, 0x80923456, 0xbeffffff, 0x00000000, 0x00000000, 0x80ffffff, 0xbeffffff, 0x00000000, 0x00000000, 0x80800001, 0xbeffffff, 0x00000000, 0x00000000, 0x80800000, 0xbeffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3effffff, 0x33000000, 0x00000000, 0x00000000, 0x3f000000, 0x33c00000, 0x00000000, 0x00000000, 0x3f000001, 0x3effffff, 0x00000000, 0x00000000, 0x3f7fffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f000002, 0x00000000, 0x00000000, 0x3f800001, 0x3f800000, 0x00000000, 0x00000000, 0x3fc00000, 0x41180000, 0x00000000, 0x00000000, 0x41200000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbeffffff, 0x00000000, 0x00000000, 0x806dcbaa, 0xbeffffff, 0x00000000, 0x00000000, 0x80000001, 0xbeffffff, 0x00000000, 0x00000000, 0x807fffff, 0xbeffffff, 0x00000000, 0x00000000, 0x80800000, 0xbeffffff, 0x00000000, 0x00000000, 0x81000000, 0xbf7fffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf000000, 0xbf800000, 0x00000000, 0x00000000, 0xbf000001, 0xbfbfffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800000, 0xbfc00001, 0x00000000, 0x00000000, 0xbf800001, 0xc0000000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1280000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbeffffff, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xb3000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x33000000, 0x33800000, 0x00000000, 0x00000000, 0x33c00000, 0x3efffffe, 0x00000000, 0x00000000, 0x3effffff, 0x3f000000, 0x00000000, 0x00000000, 0x3f000000, 0x3f000002, 0x00000000, 0x00000000, 0x3f000002, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x41180000, 0x00000000, 0x00000000, 0x41180000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbfc00000, 0x00000000, 0x00000000, 0xbfbfffff, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xbfc00001, 0x00000000, 0x00000000, 0xbfc00001, 0xc0000000, 0x00000000, 0x00000000, 0xc0000000, 0xc1280000, 0x00000000, 0x00000000, 0xc1280000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbf000000, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xb3c00000, 0x00000000, 0x00000000, 0xb3000000, 0xb3800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x33800000, 0x3efffffc, 0x00000000, 0x00000000, 0x3efffffe, 0x3efffffe, 0x00000000, 0x00000000, 0x3f000000, 0x3f000001, 0x00000000, 0x00000000, 0x3f000002, 0x3f7fffff, 0x00000000, 0x00000000, 0x3f800000, 0x41180000, 0x00000000, 0x00000000, 0x41180000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbf000000, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xbfc00002, 0x00000000, 0x00000000, 0xbfc00001, 0xc0000000, 0x00000000, 0x00000000, 0xc0000000, 0xc1280000, 0x00000000, 0x00000000, 0xc1280000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbf000001, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbeffffff, 0x00000000, 0x00000000, 0xb3c00000, 0xbefffffe, 0x00000000, 0x00000000, 0xb3800000, 0xbefffffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3efffffc, 0x33800000, 0x00000000, 0x00000000, 0x3efffffe, 0x34400000, 0x00000000, 0x00000000, 0x3f000001, 0x3f000001, 0x00000000, 0x00000000, 0x3f7fffff, 0x41100000, 0x00000000, 0x00000000, 0x41180000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbfbfffff, 0x00000000, 0x00000000, 0xbf800000, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800000, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfffffff, 0x00000000, 0x00000000, 0xbfc00000, 0xc0000000, 0x00000000, 0x00000000, 0xbfc00000, 0xc0000000, 0x00000000, 0x00000000, 0xbfc00002, 0xc0200000, 0x00000000, 0x00000000, 0xc0000000, 0xc1300000, 0x00000000, 0x00000000, 0xc1280000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf000000, 0x00000000, 0x00000000, 0xbeffffff, 0xbf000000, 0x00000000, 0x00000000, 0xbefffffe, 0xbefffffe, 0x00000000, 0x00000000, 0xbefffffc, 0xb3800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x33800000, 0x34000000, 0x00000000, 0x00000000, 0x34400000, 0x3f000000, 0x00000000, 0x00000000, 0x3f000001, 0x41100000, 0x00000000, 0x00000000, 0x41100000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbf800000, 0x00000000, 0x00000000, 0xbf7fffff, 0xbfc00000, 0x00000000, 0x00000000, 0xbfbfffff, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc0000000, 0x00000000, 0x00000000, 0xbfffffff, 0xc0000000, 0x00000000, 0x00000000, 0xc0000000, 0xc0000000, 0x00000000, 0x00000000, 0xc0000000, 0xc0200000, 0x00000000, 0x00000000, 0xc0200000, 0xc1300000, 0x00000000, 0x00000000, 0xc1300000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbf800000, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf000002, 0x00000000, 0x00000000, 0xbf000000, 0xbf000002, 0x00000000, 0x00000000, 0xbf000000, 0xbf000001, 0x00000000, 0x00000000, 0xbefffffe, 0xb4400000, 0x00000000, 0x00000000, 0xb3800000, 0xb4000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x34000000, 0x3efffffc, 0x00000000, 0x00000000, 0x3f000000, 0x41100000, 0x00000000, 0x00000000, 0x41100000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbf800001, 0x00000000, 0x00000000, 0xbf800000, 0xbfc00001, 0x00000000, 0x00000000, 0xbfc00000, 0xbfc00001, 0x00000000, 0x00000000, 0xbfc00000, 0xbfc00002, 0x00000000, 0x00000000, 0xbfc00000, 0xc0000000, 0x00000000, 0x00000000, 0xc0000000, 0xc0000000, 0x00000000, 0x00000000, 0xc0000000, 0xc0000001, 0x00000000, 0x00000000, 0xc0000000, 0xc0200000, 0x00000000, 0x00000000, 0xc0200000, 0xc1300000, 0x00000000, 0x00000000, 0xc1300000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbf800001, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbf800000, 0x00000000, 0x00000000, 0xbf000002, 0xbf800000, 0x00000000, 0x00000000, 0xbf000002, 0xbf7fffff, 0x00000000, 0x00000000, 0xbf000001, 0xbf000001, 0x00000000, 0x00000000, 0xb4400000, 0xbf000000, 0x00000000, 0x00000000, 0xb4000000, 0xbefffffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3efffffc, 0x41080000, 0x00000000, 0x00000000, 0x41100000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xbfc00000, 0x00000000, 0x00000000, 0xbf800001, 0xc0000000, 0x00000000, 0x00000000, 0xbfc00001, 0xc0000000, 0x00000000, 0x00000000, 0xbfc00001, 0xc0000000, 0x00000000, 0x00000000, 0xbfc00002, 0xc0200000, 0x00000000, 0x00000000, 0xc0000000, 0xc0200000, 0x00000000, 0x00000000, 0xc0000000, 0xc0200000, 0x00000000, 0x00000000, 0xc0000001, 0xc0400000, 0x00000000, 0x00000000, 0xc0200000, 0xc1380000, 0x00000000, 0x00000000, 0xc1300000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xbfc00000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1180000, 0x00000000, 0x00000000, 0xbf800000, 0xc1180000, 0x00000000, 0x00000000, 0xbf800000, 0xc1180000, 0x00000000, 0x00000000, 0xbf7fffff, 0xc1100000, 0x00000000, 0x00000000, 0xbf000001, 0xc1100000, 0x00000000, 0x00000000, 0xbf000000, 0xc1100000, 0x00000000, 0x00000000, 0xbefffffc, 0xc1080000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x41080000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0x7f800000, 0x00000000, 0x00000000, 0x7f800000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00000, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1200000, 0x00000000, 0x00000000, 0xbfc00000, 0xc1280000, 0x00000000, 0x00000000, 0xc0000000, 0xc1280000, 0x00000000, 0x00000000, 0xc0000000, 0xc1280000, 0x00000000, 0x00000000, 0xc0000000, 0xc1300000, 0x00000000, 0x00000000, 0xc0200000, 0xc1300000, 0x00000000, 0x00000000, 0xc0200000, 0xc1300000, 0x00000000, 0x00000000, 0xc0200000, 0xc1380000, 0x00000000, 0x00000000, 0xc0400000, 0xc1a00000, 0x00000000, 0x00000000, 0xc1380000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xc1200000, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1180000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1180000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1180000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1100000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1100000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1100000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1080000, 0xffcfffff, 0x00000000, 0x00000000, 0x00000000, 0xffcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0xffcfffff, 0x00000000, 0x00000000, 0x7f800000, 0xffcfffff, 0x00000000, 0x00000000, 0x7fd23456, 0xffcfffff, 0x00000000, 0x00000000, 0x7fc00000, 0xffcfffff, 0x00000000, 0x00000000, 0x7fd23456, 0xffcfffff, 0x00000000, 0x00000000, 0x7fc00001, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1200000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1280000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1280000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1280000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1300000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1300000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1300000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1380000, 0xffcfffff, 0x00000000, 0x00000000, 0xc1a00000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xffcfffff, 0x00000000, 0x00000000, 0xff800000, 0xffcfffff, 0x00000000, 0x00000000, 0xffd23456, 0xffcfffff, 0x00000000, 0x00000000, 0xffc00000, 0xffcfffff, 0x00000000, 0x00000000, 0xffd23456, 0xffcfffff, 0x00000000, 0x00000000, 0xffc00001, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0x7fcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0x7fc00000, 0x00000000, 0x00000000, 0xffcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0xffcfffff, 0x7fc00000, 0x00000000, 0x00000000, 0xffcfffff, 0x7fd23456, 0x00000000, 0x00000000, 0xffcfffff, 0x7fc00001, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xffcfffff, 0xffd23456, 0x00000000, 0x00000000, 0xffcfffff, 0xffc00000, 0x00000000, 0x00000000, 0xffcfffff, 0xffd23456, 0x00000000, 0x00000000, 0xffcfffff, 0xffc00001, 0x00000000, 0x00000000, 0xffcfffff, 0xff800000, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0xffd23456, 0x00000000, 0x00000000, 0x7fc00000, 0xffd23456, 0x00000000, 0x00000000, 0x7fd23456, 0xffd23456, 0x00000000, 0x00000000, 0x7fc00000, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xffd23456, 0x00000000, 0x00000000, 0xff800000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0x7fcfffff, 0x00000000, 0x00000000, 0x7fcfffff, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0x7fd23456, 0x00000000, 0x00000000, 0x7fd23456, 0x7fc00001, 0x00000000, 0x00000000, 0x7fc00001, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffcfffff, 0x00000000, 0x00000000, 0xffcfffff, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffc00000, 0x00000000, 0x00000000, 0xffd23456, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0xffc00000, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0x7fcfffff, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0x7fd23456, 0xffd23456, 0x00000000, 0x00000000, 0x7fc00001, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffcfffff, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffc00000, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffd23456, 0x00000000, 0x00000000, 0xffc00001, 0xffd23456, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffd23456, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x80923455, 0x00000000, 0x00000000, 0xffc00001, 0x80123457, 0x00000000, 0x00000000, 0xffc00001, 0x80123456, 0x00000000, 0x00000000, 0xffc00001, 0x006dcbaa, 0x00000000, 0x00000000, 0xffc00001, 0x3effffff, 0x00000000, 0x00000000, 0xffc00001, 0x3f000000, 0x00000000, 0x00000000, 0xffc00001, 0x3f000001, 0x00000000, 0x00000000, 0xffc00001, 0x3f7fffff, 0x00000000, 0x00000000, 0xffc00001, 0x3f800000, 0x00000000, 0x00000000, 0xffc00001, 0x3f800001, 0x00000000, 0x00000000, 0xffc00001, 0x3fc00000, 0x00000000, 0x00000000, 0xffc00001, 0x41200000, 0x00000000, 0x00000000, 0xffc00001, 0x7fcfffff, 0x00000000, 0x00000000, 0xffc00001, 0x7f800000, 0x00000000, 0x00000000, 0xffc00001, 0x7fd23456, 0x00000000, 0x00000000, 0xffc00001, 0x7fc00000, 0x00000000, 0x00000000, 0xffc00001, 0x7fd23456, 0x00000000, 0x00000000, 0xffc00001, 0x7fc00001, 0x00000000, 0x00000000, 0xffc00001, 0x00000000, 0x00000000, 0x00000000, 0xffc00001, 0x006dcba9, 0x00000000, 0x00000000, 0xffc00001, 0x80123455, 0x00000000, 0x00000000, 0xffc00001, 0x80123456, 0x00000000, 0x00000000, 0xffc00001, 0x80923456, 0x00000000, 0x00000000, 0xffc00001, 0xbeffffff, 0x00000000, 0x00000000, 0xffc00001, 0xbf000000, 0x00000000, 0x00000000, 0xffc00001, 0xbf000001, 0x00000000, 0x00000000, 0xffc00001, 0xbf7fffff, 0x00000000, 0x00000000, 0xffc00001, 0xbf800000, 0x00000000, 0x00000000, 0xffc00001, 0xbf800001, 0x00000000, 0x00000000, 0xffc00001, 0xbfc00000, 0x00000000, 0x00000000, 0xffc00001, 0xc1200000, 0x00000000, 0x00000000, 0xffc00001, 0xffcfffff, 0x00000000, 0x00000000, 0xffc00001, 0xff800000, 0x00000000, 0x00000000, 0xffc00001, 0xffd23456, 0x00000000, 0x00000000, 0xffc00001, 0xffc00000, 0x00000000, 0x00000000, 0xffc00001, 0xffd23456, 0x00000000, 0x00000000, 0xffc00001, 0xffc00001, 0x00000000, 0x00000000, 0xffc00001, 0x802468ac, 0x00000000, 0x00000000, }; const unsigned kExpectedCount_NEON_fadd_2S = 1444; #endif // VIXL_SIM_FADD_2S_TRACE_A64_H_
Java
package org.broadinstitute.hellbender.tools.spark.pathseq; import com.esotericsoftware.kryo.Kryo; import com.esotericsoftware.kryo.io.Output; import htsjdk.samtools.SAMSequenceRecord; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.broadinstitute.hellbender.exceptions.UserException; import org.broadinstitute.hellbender.utils.io.IOUtils; import scala.Tuple2; import java.io.*; import java.util.*; import java.util.zip.GZIPInputStream; public final class PSBuildReferenceTaxonomyUtils { protected static final Logger logger = LogManager.getLogger(PSBuildReferenceTaxonomyUtils.class); private static final String VERTICAL_BAR_DELIMITER_REGEX = "\\s*\\|\\s*"; /** * Build set of accessions contained in the reference. * Returns: a map from accession to the name and length of the record. If the sequence name contains the * taxonomic ID, it instead gets added to taxIdToProperties. Later we merge both results into taxIdToProperties. * Method: First, look for either "taxid|<taxid>|" or "ref|<accession>|" in the sequence name. If neither of * those are found, use the first word of the name as the accession. */ protected static Map<String, Tuple2<String, Long>> parseReferenceRecords(final List<SAMSequenceRecord> dictionaryList, final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties) { final Map<String, Tuple2<String, Long>> accessionToNameAndLength = new HashMap<>(); for (final SAMSequenceRecord record : dictionaryList) { final String recordName = record.getSequenceName(); final long recordLength = record.getSequenceLength(); final String[] tokens = recordName.split(VERTICAL_BAR_DELIMITER_REGEX); String recordAccession = null; int recordTaxId = PSTree.NULL_NODE; for (int i = 0; i < tokens.length - 1 && recordTaxId == PSTree.NULL_NODE; i++) { if (tokens[i].equals("ref")) { recordAccession = tokens[i + 1]; } else if (tokens[i].equals("taxid")) { recordTaxId = parseTaxonId(tokens[i + 1]); } } if (recordTaxId == PSTree.NULL_NODE) { if (recordAccession == null) { final String[] tokens2 = tokens[0].split(" "); //Default accession to first word in the name recordAccession = tokens2[0]; } accessionToNameAndLength.put(recordAccession, new Tuple2<>(recordName, recordLength)); } else { addReferenceAccessionToTaxon(recordTaxId, recordName, recordLength, taxIdToProperties); } } return accessionToNameAndLength; } private static int parseTaxonId(final String taxonId) { try { return Integer.valueOf(taxonId); } catch (final NumberFormatException e) { throw new UserException.BadInput("Expected taxonomy ID to be an integer but found \"" + taxonId + "\"", e); } } /** * Helper classes for defining RefSeq and GenBank catalog formats. Columns should be given as 0-based indices. */ private interface AccessionCatalogFormat { int getTaxIdColumn(); int getAccessionColumn(); } private static final class RefSeqCatalogFormat implements AccessionCatalogFormat { private static final int TAX_ID_COLUMN = 0; private static final int ACCESSION_COLUMN = 2; public int getTaxIdColumn() { return TAX_ID_COLUMN; } public int getAccessionColumn() { return ACCESSION_COLUMN; } } private static final class GenBankCatalogFormat implements AccessionCatalogFormat { private static final int TAX_ID_COLUMN = 6; private static final int ACCESSION_COLUMN = 1; public int getTaxIdColumn() { return TAX_ID_COLUMN; } public int getAccessionColumn() { return ACCESSION_COLUMN; } } /** * Builds maps of reference contig accessions to their taxonomic ids and vice versa. * Input can be a RefSeq or Genbank catalog file. accNotFound is an initial list of * accessions from the reference that have not been successfully looked up; if null, * will be initialized to the accToRefInfo key set by default. * <p> * Returns a collection of reference accessions that could not be found, if any. */ protected static Set<String> parseCatalog(final BufferedReader reader, final Map<String, Tuple2<String, Long>> accessionToNameAndLength, final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties, final boolean bGenBank, final Set<String> accessionsNotFoundIn) { final Set<String> accessionsNotFoundOut; try { String line; final AccessionCatalogFormat catalogFormat = bGenBank ? new GenBankCatalogFormat() : new RefSeqCatalogFormat(); final int taxIdColumnIndex = catalogFormat.getTaxIdColumn(); final int accessionColumnIndex = catalogFormat.getAccessionColumn(); if (accessionsNotFoundIn == null) { //If accessionsNotFoundIn is null, this is the first call to parseCatalog, so initialize the set to all accessions accessionsNotFoundOut = new HashSet<>(accessionToNameAndLength.keySet()); } else { //Otherwise this is a subsequent call and we continue to look for any remaining accessions accessionsNotFoundOut = new HashSet<>(accessionsNotFoundIn); } final int minColumns = Math.max(taxIdColumnIndex, accessionColumnIndex) + 1; long lineNumber = 1; while ((line = reader.readLine()) != null && !line.isEmpty()) { final String[] tokens = line.trim().split("\t", minColumns + 1); if (tokens.length >= minColumns) { final int taxId = parseTaxonId(tokens[taxIdColumnIndex]); final String accession = tokens[accessionColumnIndex]; if (accessionToNameAndLength.containsKey(accession)) { final Tuple2<String, Long> nameAndLength = accessionToNameAndLength.get(accession); addReferenceAccessionToTaxon(taxId, nameAndLength._1, nameAndLength._2, taxIdToProperties); accessionsNotFoundOut.remove(accession); } } else { throw new UserException.BadInput("Expected at least " + minColumns + " tab-delimited columns in " + "GenBank catalog file, but only found " + tokens.length + " on line " + lineNumber); } lineNumber++; } } catch (final IOException e) { throw new UserException.CouldNotReadInputFile("Error reading from catalog file", e); } return accessionsNotFoundOut; } /** * Parses scientific name of each taxon and puts it in taxIdToProperties */ protected static void parseNamesFile(final BufferedReader reader, final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties) { try { String line; while ((line = reader.readLine()) != null) { //Split into columns delimited by <TAB>|<TAB> final String[] tokens = line.split(VERTICAL_BAR_DELIMITER_REGEX); if (tokens.length < 4) { throw new UserException.BadInput("Expected at least 4 columns in tax dump names file but found " + tokens.length); } final String nameType = tokens[3]; if (nameType.equals("scientific name")) { final int taxId = parseTaxonId(tokens[0]); final String name = tokens[1]; if (taxIdToProperties.containsKey(taxId)) { taxIdToProperties.get(taxId).setName(name); } else { taxIdToProperties.put(taxId, new PSPathogenReferenceTaxonProperties(name)); } } } } catch (final IOException e) { throw new UserException.CouldNotReadInputFile("Error reading from taxonomy dump names file", e); } } /** * Gets the rank and parent of each taxon. * Returns a Collection of tax ID's found in the nodes file that are not in taxIdToProperties (i.e. were not found in * a reference sequence name using the taxid|\<taxid\> tag or the catalog file). */ protected static Collection<Integer> parseNodesFile(final BufferedReader reader, final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties) { try { final Collection<Integer> taxIdsNotFound = new ArrayList<>(); String line; while ((line = reader.readLine()) != null) { final String[] tokens = line.split(VERTICAL_BAR_DELIMITER_REGEX); if (tokens.length < 3) { throw new UserException.BadInput("Expected at least 3 columns in tax dump nodes file but found " + tokens.length); } final int taxId = parseTaxonId(tokens[0]); final int parent = parseTaxonId(tokens[1]); final String rank = tokens[2]; final PSPathogenReferenceTaxonProperties taxonProperties; if (taxIdToProperties.containsKey(taxId)) { taxonProperties = taxIdToProperties.get(taxId); } else { taxonProperties = new PSPathogenReferenceTaxonProperties("tax_" + taxId); taxIdsNotFound.add(taxId); } taxonProperties.setRank(rank); if (taxId != PSTaxonomyConstants.ROOT_ID) { //keep root's parent set to null taxonProperties.setParent(parent); } taxIdToProperties.put(taxId, taxonProperties); } return taxIdsNotFound; } catch (final IOException e) { throw new UserException.CouldNotReadInputFile("Error reading from taxonomy dump nodes file", e); } } /** * Helper function for building the map from tax id to reference contig accession */ private static void addReferenceAccessionToTaxon(final int taxId, final String accession, final long length, final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties) { taxIdToProperties.putIfAbsent(taxId, new PSPathogenReferenceTaxonProperties()); taxIdToProperties.get(taxId).addAccession(accession, length); } /** * Removes nodes not in the tree from the tax_id-to-properties map */ static void removeUnusedTaxIds(final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties, final PSTree tree) { taxIdToProperties.keySet().retainAll(tree.getNodeIDs()); } /** * Create reference_name-to-taxid map (just an inversion on taxIdToProperties) */ protected static Map<String, Integer> buildAccessionToTaxIdMap(final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties, final PSTree tree, final int minNonVirusContigLength) { final Map<String, Integer> accessionToTaxId = new HashMap<>(); for (final int taxId : taxIdToProperties.keySet()) { final boolean isVirus = tree.getPathOf(taxId).contains(PSTaxonomyConstants.VIRUS_ID); final PSPathogenReferenceTaxonProperties taxonProperties = taxIdToProperties.get(taxId); for (final String name : taxonProperties.getAccessions()) { if (isVirus || taxonProperties.getAccessionLength(name) >= minNonVirusContigLength) { accessionToTaxId.put(name, taxId); } } } return accessionToTaxId; } /** * Returns a PSTree representing a reduced taxonomic tree containing only taxa present in the reference */ protected static PSTree buildTaxonomicTree(final Map<Integer, PSPathogenReferenceTaxonProperties> taxIdToProperties) { //Build tree of all taxa final PSTree tree = new PSTree(PSTaxonomyConstants.ROOT_ID); final Collection<Integer> invalidIds = new HashSet<>(taxIdToProperties.size()); for (final int taxId : taxIdToProperties.keySet()) { if (taxId != PSTaxonomyConstants.ROOT_ID) { final PSPathogenReferenceTaxonProperties taxonProperties = taxIdToProperties.get(taxId); if (taxonProperties.getName() != null && taxonProperties.getParent() != PSTree.NULL_NODE && taxonProperties.getRank() != null) { tree.addNode(taxId, taxonProperties.getName(), taxonProperties.getParent(), taxonProperties.getTotalLength(), taxonProperties.getRank()); } else { invalidIds.add(taxId); } } } PSUtils.logItemizedWarning(logger, invalidIds, "The following taxonomic IDs did not have name/taxonomy information (this may happen when the catalog and taxdump files are inconsistent)"); final Set<Integer> unreachableNodes = tree.removeUnreachableNodes(); if (!unreachableNodes.isEmpty()) { PSUtils.logItemizedWarning(logger, unreachableNodes, "Removed " + unreachableNodes.size() + " unreachable tree nodes"); } tree.checkStructure(); //Trim tree down to nodes corresponding only to reference taxa (and their ancestors) final Set<Integer> relevantNodes = new HashSet<>(); for (final int taxonId : taxIdToProperties.keySet()) { if (!taxIdToProperties.get(taxonId).getAccessions().isEmpty() && tree.hasNode(taxonId)) { relevantNodes.addAll(tree.getPathOf(taxonId)); } } if (relevantNodes.isEmpty()) { throw new UserException.BadInput("Did not find any taxa corresponding to reference sequence names.\n\n" + "Check that reference names follow one of the required formats:\n\n" + "\t...|ref|<accession.version>|...\n" + "\t...|taxid|<taxonomy_id>|...\n" + "\t<accession.version><mask>..."); } tree.retainNodes(relevantNodes); return tree; } /** * Gets a buffered reader for a gzipped file * @param path File path * @return Reader for the file */ public static BufferedReader getBufferedReaderGz(final String path) { try { return new BufferedReader(IOUtils.makeReaderMaybeGzipped(new File(path))); } catch (final IOException e) { throw new UserException.BadInput("Could not open file " + path, e); } } /** * Gets a Reader for a file in a gzipped tarball * @param tarPath Path to the tarball * @param fileName File within the tarball * @return The file's reader */ public static BufferedReader getBufferedReaderTarGz(final String tarPath, final String fileName) { try { InputStream result = null; final TarArchiveInputStream tarStream = new TarArchiveInputStream(new GZIPInputStream(new FileInputStream(tarPath))); TarArchiveEntry entry = tarStream.getNextTarEntry(); while (entry != null) { if (entry.getName().equals(fileName)) { result = tarStream; break; } entry = tarStream.getNextTarEntry(); } if (result == null) { throw new UserException.BadInput("Could not find file " + fileName + " in tarball " + tarPath); } return new BufferedReader(new InputStreamReader(result)); } catch (final IOException e) { throw new UserException.BadInput("Could not open compressed tarball file " + fileName + " in " + tarPath, e); } } /** * Writes objects using Kryo to specified local file path. * NOTE: using setReferences(false), which must also be set when reading the file. Does not work with nested * objects that reference its parent. */ public static void writeTaxonomyDatabase(final String filePath, final PSTaxonomyDatabase taxonomyDatabase) { try { final Kryo kryo = new Kryo(); kryo.setReferences(false); Output output = new Output(new FileOutputStream(filePath)); kryo.writeObject(output, taxonomyDatabase); output.close(); } catch (final FileNotFoundException e) { throw new UserException.CouldNotCreateOutputFile("Could not serialize objects to file", e); } } }
Java
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/banners/app_banner_debug_log.h" #include "content/public/browser/render_frame_host.h" #include "content/public/browser/web_contents.h" namespace banners { const char kRendererRequestCancel[] = "renderer has requested the banner prompt be cancelled"; const char kManifestEmpty[] = "manifest could not be fetched, is empty, or could not be parsed"; const char kNoManifest[] = "site has no manifest <link> URL"; const char kCannotDetermineBestIcon[] = "could not determine the best icon to use"; const char kNoMatchingServiceWorker[] = "no matching service worker detected. You may need to reload the page, or " "check that the service worker for the current page also controls the " "start URL from the manifest"; const char kNoIconAvailable[] = "no icon available to display"; const char kUserNavigatedBeforeBannerShown[] = "the user navigated before the banner could be shown"; const char kStartURLNotValid[] = "start URL in manifest is not valid"; const char kManifestMissingNameOrShortName[] = "one of manifest name or short name must be specified"; const char kManifestMissingSuitableIcon[] = "manifest does not contain a suitable icon - PNG format of at least " "144x144px is required, and the sizes attribute must be set"; const char kNotLoadedInMainFrame[] = "page not loaded in the main frame"; const char kNotServedFromSecureOrigin[] = "page not served from a secure origin"; // The leading space is intentional as another string is prepended. const char kIgnoredNotSupportedOnAndroid[] = " application ignored: not supported on Android"; const char kIgnoredNoId[] = "play application ignored: no id provided"; const char kIgnoredIdsDoNotMatch[] = "play application ignored: app URL and id fields were specified in the " "manifest, but they do not match"; void OutputDeveloperNotShownMessage(content::WebContents* web_contents, const std::string& message, bool is_debug_mode) { OutputDeveloperDebugMessage(web_contents, "not shown: " + message, is_debug_mode); } void OutputDeveloperDebugMessage(content::WebContents* web_contents, const std::string& message, bool is_debug_mode) { if (!is_debug_mode || !web_contents) return; web_contents->GetMainFrame()->AddMessageToConsole( content::CONSOLE_MESSAGE_LEVEL_DEBUG, "App banner " + message); } } // namespace banners
Java
--- layout: data_model title: ActionPertinentObjectPropertiesType this_version: 1.1.1 --- <div class="alert alert-danger bs-alert-old-docs"> <strong>Heads up!</strong> These docs are for STIX 1.1.1, which is not the latest version (1.2). <a href="/data-model/1.2/cybox/ActionPertinentObjectPropertiesType">View the latest!</a> </div> <div class="row"> <div class="col-md-10"> <h1>ActionPertinentObjectPropertiesType<span class="subdued">CybOX Core Schema</span></h1> <p class="data-model-description">The <a href='/data-model/1.1.1/cybox/ActionPertinentObjectPropertiesType'>ActionPertinentObjectPropertiesType</a> identifies which of the Properties of this Object are specifically pertinent to this Action.</p> </div> <div id="nav-area" class="col-md-2"> <p> <form id="nav-version"> <select> <option value="1.2" >STIX 1.2</option> <option value="1.1.1" selected="selected">STIX 1.1.1</option> <option value="1.1" >STIX 1.1</option> <option value="1.0.1" >STIX 1.0.1</option> <option value="1.0" >STIX 1.0</option> </select> </form> </p> </div> </div> <hr /> <h2>Fields</h2> <table class="table table-striped table-hover"> <thead> <tr> <th>Field Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>Property<span class="occurrence">1..n</span></td> <td> <a href="/data-model/1.1.1/cybox/ActionPertinentObjectPropertyType">ActionPertinentObjectPropertyType</a> </td> <td> <p>The Property construct identifies a single Object Property that is specifically pertinent to this Action.</p> </td> </tr> </tbody> </table>
Java
using Microsoft.Extensions.DependencyInjection; namespace OrchardCore.Liquid { public static class ServiceCollectionExtensions { public static IServiceCollection AddLiquidFilter<T>(this IServiceCollection services, string name) where T : class, ILiquidFilter { services.Configure<LiquidOptions>(options => options.FilterRegistrations[name] = typeof(T)); services.AddScoped<T>(); return services; } } }
Java
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.content.browser.input; import android.os.SystemClock; import android.text.Editable; import android.text.InputType; import android.text.Selection; import android.text.TextUtils; import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.BaseInputConnection; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.ExtractedText; import android.view.inputmethod.ExtractedTextRequest; import org.chromium.base.Log; import org.chromium.base.VisibleForTesting; import org.chromium.blink_public.web.WebInputEventType; import org.chromium.blink_public.web.WebTextInputFlags; import org.chromium.ui.base.ime.TextInputType; /** * InputConnection is created by ContentView.onCreateInputConnection. * It then adapts android's IME to chrome's RenderWidgetHostView using the * native ImeAdapterAndroid via the class ImeAdapter. */ public class AdapterInputConnection extends BaseInputConnection { private static final String TAG = "cr.InputConnection"; private static final boolean DEBUG = false; /** * Selection value should be -1 if not known. See EditorInfo.java for details. */ public static final int INVALID_SELECTION = -1; public static final int INVALID_COMPOSITION = -1; private final View mInternalView; private final ImeAdapter mImeAdapter; private final Editable mEditable; private boolean mSingleLine; private int mNumNestedBatchEdits = 0; private int mPendingAccent; private int mLastUpdateSelectionStart = INVALID_SELECTION; private int mLastUpdateSelectionEnd = INVALID_SELECTION; private int mLastUpdateCompositionStart = INVALID_COMPOSITION; private int mLastUpdateCompositionEnd = INVALID_COMPOSITION; @VisibleForTesting AdapterInputConnection(View view, ImeAdapter imeAdapter, Editable editable, EditorInfo outAttrs) { super(view, true); mInternalView = view; mImeAdapter = imeAdapter; mImeAdapter.setInputConnection(this); mEditable = editable; // The editable passed in might have been in use by a prior keyboard and could have had // prior composition spans set. To avoid keyboard conflicts, remove all composing spans // when taking ownership of an existing Editable. finishComposingText(); mSingleLine = true; outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN | EditorInfo.IME_FLAG_NO_EXTRACT_UI; outAttrs.inputType = EditorInfo.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT; int inputType = imeAdapter.getTextInputType(); int inputFlags = imeAdapter.getTextInputFlags(); if ((inputFlags & WebTextInputFlags.AutocompleteOff) != 0) { outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_NO_SUGGESTIONS; } if (inputType == TextInputType.TEXT) { // Normal text field outAttrs.imeOptions |= EditorInfo.IME_ACTION_GO; if ((inputFlags & WebTextInputFlags.AutocorrectOff) == 0) { outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT; } } else if (inputType == TextInputType.TEXT_AREA || inputType == TextInputType.CONTENT_EDITABLE) { outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE; if ((inputFlags & WebTextInputFlags.AutocorrectOff) == 0) { outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT; } outAttrs.imeOptions |= EditorInfo.IME_ACTION_NONE; mSingleLine = false; } else if (inputType == TextInputType.PASSWORD) { // Password outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD; outAttrs.imeOptions |= EditorInfo.IME_ACTION_GO; } else if (inputType == TextInputType.SEARCH) { // Search outAttrs.imeOptions |= EditorInfo.IME_ACTION_SEARCH; } else if (inputType == TextInputType.URL) { // Url outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI; outAttrs.imeOptions |= EditorInfo.IME_ACTION_GO; } else if (inputType == TextInputType.EMAIL) { // Email outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS; outAttrs.imeOptions |= EditorInfo.IME_ACTION_GO; } else if (inputType == TextInputType.TELEPHONE) { // Telephone // Number and telephone do not have both a Tab key and an // action in default OSK, so set the action to NEXT outAttrs.inputType = InputType.TYPE_CLASS_PHONE; outAttrs.imeOptions |= EditorInfo.IME_ACTION_NEXT; } else if (inputType == TextInputType.NUMBER) { // Number outAttrs.inputType = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL | InputType.TYPE_NUMBER_FLAG_DECIMAL; outAttrs.imeOptions |= EditorInfo.IME_ACTION_NEXT; } // Handling of autocapitalize. Blink will send the flag taking into account the element's // type. This is not using AutocapitalizeNone because Android does not autocapitalize by // default and there is no way to express no capitalization. // Autocapitalize is meant as a hint to the virtual keyboard. if ((inputFlags & WebTextInputFlags.AutocapitalizeCharacters) != 0) { outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS; } else if ((inputFlags & WebTextInputFlags.AutocapitalizeWords) != 0) { outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_CAP_WORDS; } else if ((inputFlags & WebTextInputFlags.AutocapitalizeSentences) != 0) { outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; } // Content editable doesn't use autocapitalize so we need to set it manually. if (inputType == TextInputType.CONTENT_EDITABLE) { outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; } outAttrs.initialSelStart = Selection.getSelectionStart(mEditable); outAttrs.initialSelEnd = Selection.getSelectionEnd(mEditable); mLastUpdateSelectionStart = outAttrs.initialSelStart; mLastUpdateSelectionEnd = outAttrs.initialSelEnd; if (DEBUG) Log.w(TAG, "Constructor called with outAttrs: " + outAttrs); Selection.setSelection(mEditable, outAttrs.initialSelStart, outAttrs.initialSelEnd); updateSelectionIfRequired(); } /** * Updates the AdapterInputConnection's internal representation of the text being edited and * its selection and composition properties. The resulting Editable is accessible through the * getEditable() method. If the text has not changed, this also calls updateSelection on the * InputMethodManager. * * @param text The String contents of the field being edited. * @param selectionStart The character offset of the selection start, or the caret position if * there is no selection. * @param selectionEnd The character offset of the selection end, or the caret position if there * is no selection. * @param compositionStart The character offset of the composition start, or -1 if there is no * composition. * @param compositionEnd The character offset of the composition end, or -1 if there is no * selection. * @param isNonImeChange True when the update was caused by non-IME (e.g. Javascript). */ @VisibleForTesting public void updateState(String text, int selectionStart, int selectionEnd, int compositionStart, int compositionEnd, boolean isNonImeChange) { if (DEBUG) { Log.w(TAG, "updateState [" + text + "] [" + selectionStart + " " + selectionEnd + "] [" + compositionStart + " " + compositionEnd + "] [" + isNonImeChange + "]"); } // If this update is from the IME, no further state modification is necessary because the // state should have been updated already by the IM framework directly. if (!isNonImeChange) return; // Non-breaking spaces can cause the IME to get confused. Replace with normal spaces. text = text.replace('\u00A0', ' '); selectionStart = Math.min(selectionStart, text.length()); selectionEnd = Math.min(selectionEnd, text.length()); compositionStart = Math.min(compositionStart, text.length()); compositionEnd = Math.min(compositionEnd, text.length()); String prevText = mEditable.toString(); boolean textUnchanged = prevText.equals(text); if (!textUnchanged) { mEditable.replace(0, mEditable.length(), text); } Selection.setSelection(mEditable, selectionStart, selectionEnd); if (compositionStart == compositionEnd) { removeComposingSpans(mEditable); } else { super.setComposingRegion(compositionStart, compositionEnd); } updateSelectionIfRequired(); } /** * @return Editable object which contains the state of current focused editable element. */ @Override public Editable getEditable() { return mEditable; } /** * Sends selection update to the InputMethodManager unless we are currently in a batch edit or * if the exact same selection and composition update was sent already. */ private void updateSelectionIfRequired() { if (mNumNestedBatchEdits != 0) return; int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); int compositionStart = getComposingSpanStart(mEditable); int compositionEnd = getComposingSpanEnd(mEditable); // Avoid sending update if we sent an exact update already previously. if (mLastUpdateSelectionStart == selectionStart && mLastUpdateSelectionEnd == selectionEnd && mLastUpdateCompositionStart == compositionStart && mLastUpdateCompositionEnd == compositionEnd) { return; } if (DEBUG) { Log.w(TAG, "updateSelectionIfRequired [" + selectionStart + " " + selectionEnd + "] [" + compositionStart + " " + compositionEnd + "]"); } // updateSelection should be called every time the selection or composition changes // if it happens not within a batch edit, or at the end of each top level batch edit. getInputMethodManagerWrapper().updateSelection( mInternalView, selectionStart, selectionEnd, compositionStart, compositionEnd); mLastUpdateSelectionStart = selectionStart; mLastUpdateSelectionEnd = selectionEnd; mLastUpdateCompositionStart = compositionStart; mLastUpdateCompositionEnd = compositionEnd; } /** * @see BaseInputConnection#setComposingText(java.lang.CharSequence, int) */ @Override public boolean setComposingText(CharSequence text, int newCursorPosition) { if (DEBUG) Log.w(TAG, "setComposingText [" + text + "] [" + newCursorPosition + "]"); if (maybePerformEmptyCompositionWorkaround(text)) return true; mPendingAccent = 0; super.setComposingText(text, newCursorPosition); updateSelectionIfRequired(); return mImeAdapter.checkCompositionQueueAndCallNative(text, newCursorPosition, false); } /** * @see BaseInputConnection#commitText(java.lang.CharSequence, int) */ @Override public boolean commitText(CharSequence text, int newCursorPosition) { if (DEBUG) Log.w(TAG, "commitText [" + text + "] [" + newCursorPosition + "]"); if (maybePerformEmptyCompositionWorkaround(text)) return true; mPendingAccent = 0; super.commitText(text, newCursorPosition); updateSelectionIfRequired(); return mImeAdapter.checkCompositionQueueAndCallNative(text, newCursorPosition, text.length() > 0); } /** * @see BaseInputConnection#performEditorAction(int) */ @Override public boolean performEditorAction(int actionCode) { if (DEBUG) Log.w(TAG, "performEditorAction [" + actionCode + "]"); if (actionCode == EditorInfo.IME_ACTION_NEXT) { restartInput(); // Send TAB key event long timeStampMs = SystemClock.uptimeMillis(); mImeAdapter.sendSyntheticKeyEvent( WebInputEventType.RawKeyDown, timeStampMs, KeyEvent.KEYCODE_TAB, 0, 0); } else { mImeAdapter.sendKeyEventWithKeyCode(KeyEvent.KEYCODE_ENTER, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE | KeyEvent.FLAG_EDITOR_ACTION); } return true; } /** * @see BaseInputConnection#performContextMenuAction(int) */ @Override public boolean performContextMenuAction(int id) { if (DEBUG) Log.w(TAG, "performContextMenuAction [" + id + "]"); switch (id) { case android.R.id.selectAll: return mImeAdapter.selectAll(); case android.R.id.cut: return mImeAdapter.cut(); case android.R.id.copy: return mImeAdapter.copy(); case android.R.id.paste: return mImeAdapter.paste(); default: return false; } } /** * @see BaseInputConnection#getExtractedText(android.view.inputmethod.ExtractedTextRequest, * int) */ @Override public ExtractedText getExtractedText(ExtractedTextRequest request, int flags) { if (DEBUG) Log.w(TAG, "getExtractedText"); ExtractedText et = new ExtractedText(); et.text = mEditable.toString(); et.partialEndOffset = mEditable.length(); et.selectionStart = Selection.getSelectionStart(mEditable); et.selectionEnd = Selection.getSelectionEnd(mEditable); et.flags = mSingleLine ? ExtractedText.FLAG_SINGLE_LINE : 0; return et; } /** * @see BaseInputConnection#beginBatchEdit() */ @Override public boolean beginBatchEdit() { if (DEBUG) Log.w(TAG, "beginBatchEdit [" + (mNumNestedBatchEdits == 0) + "]"); mNumNestedBatchEdits++; return true; } /** * @see BaseInputConnection#endBatchEdit() */ @Override public boolean endBatchEdit() { if (mNumNestedBatchEdits == 0) return false; --mNumNestedBatchEdits; if (DEBUG) Log.w(TAG, "endBatchEdit [" + (mNumNestedBatchEdits == 0) + "]"); if (mNumNestedBatchEdits == 0) updateSelectionIfRequired(); return mNumNestedBatchEdits != 0; } /** * @see BaseInputConnection#deleteSurroundingText(int, int) */ @Override public boolean deleteSurroundingText(int beforeLength, int afterLength) { return deleteSurroundingTextImpl(beforeLength, afterLength, false); } /** * Check if the given {@code index} is between UTF-16 surrogate pair. * @param str The String. * @param index The index * @return True if the index is between UTF-16 surrogate pair, false otherwise. */ @VisibleForTesting static boolean isIndexBetweenUtf16SurrogatePair(CharSequence str, int index) { return index > 0 && index < str.length() && Character.isHighSurrogate(str.charAt(index - 1)) && Character.isLowSurrogate(str.charAt(index)); } private boolean deleteSurroundingTextImpl( int beforeLength, int afterLength, boolean fromPhysicalKey) { if (DEBUG) { Log.w(TAG, "deleteSurroundingText [" + beforeLength + " " + afterLength + " " + fromPhysicalKey + "]"); } if (mPendingAccent != 0) { finishComposingText(); } int originalBeforeLength = beforeLength; int originalAfterLength = afterLength; int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); int availableBefore = selectionStart; int availableAfter = mEditable.length() - selectionEnd; beforeLength = Math.min(beforeLength, availableBefore); afterLength = Math.min(afterLength, availableAfter); // Adjust these values even before calling super.deleteSurroundingText() to be consistent // with the super class. if (isIndexBetweenUtf16SurrogatePair(mEditable, selectionStart - beforeLength)) { beforeLength += 1; } if (isIndexBetweenUtf16SurrogatePair(mEditable, selectionEnd + afterLength)) { afterLength += 1; } super.deleteSurroundingText(beforeLength, afterLength); updateSelectionIfRequired(); // If this was called due to a physical key, no need to generate a key event here as // the caller will take care of forwarding the original. if (fromPhysicalKey) { return true; } // For single-char deletion calls |ImeAdapter.sendKeyEventWithKeyCode| with the real key // code. For multi-character deletion, executes deletion by calling // |ImeAdapter.deleteSurroundingText| and sends synthetic key events with a dummy key code. int keyCode = KeyEvent.KEYCODE_UNKNOWN; if (originalBeforeLength == 1 && originalAfterLength == 0) { keyCode = KeyEvent.KEYCODE_DEL; } else if (originalBeforeLength == 0 && originalAfterLength == 1) { keyCode = KeyEvent.KEYCODE_FORWARD_DEL; } boolean result = true; if (keyCode == KeyEvent.KEYCODE_UNKNOWN) { result = mImeAdapter.sendSyntheticKeyEvent( WebInputEventType.RawKeyDown, SystemClock.uptimeMillis(), keyCode, 0, 0); result &= mImeAdapter.deleteSurroundingText(beforeLength, afterLength); result &= mImeAdapter.sendSyntheticKeyEvent( WebInputEventType.KeyUp, SystemClock.uptimeMillis(), keyCode, 0, 0); } else { mImeAdapter.sendKeyEventWithKeyCode( keyCode, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE); } return result; } /** * @see BaseInputConnection#sendKeyEvent(android.view.KeyEvent) */ @Override public boolean sendKeyEvent(KeyEvent event) { if (DEBUG) { Log.w(TAG, "sendKeyEvent [" + event.getAction() + "] [" + event.getKeyCode() + "] [" + event.getUnicodeChar() + "]"); } int action = event.getAction(); int keycode = event.getKeyCode(); int unicodeChar = event.getUnicodeChar(); // If this isn't a KeyDown event, no need to update composition state; just pass the key // event through and return. But note that some keys, such as enter, may actually be // handled on ACTION_UP in Blink. if (action != KeyEvent.ACTION_DOWN) { mImeAdapter.translateAndSendNativeEvents(event); return true; } // If this is backspace/del or if the key has a character representation, // need to update the underlying Editable (i.e. the local representation of the text // being edited). Some IMEs like Jellybean stock IME and Samsung IME mix in delete // KeyPress events instead of calling deleteSurroundingText. if (keycode == KeyEvent.KEYCODE_DEL) { deleteSurroundingTextImpl(1, 0, true); } else if (keycode == KeyEvent.KEYCODE_FORWARD_DEL) { deleteSurroundingTextImpl(0, 1, true); } else if (keycode == KeyEvent.KEYCODE_ENTER) { // Finish text composition when pressing enter, as that may submit a form field. // TODO(aurimas): remove this workaround when crbug.com/278584 is fixed. finishComposingText(); } else if ((unicodeChar & KeyCharacterMap.COMBINING_ACCENT) != 0) { // Store a pending accent character and make it the current composition. int pendingAccent = unicodeChar & KeyCharacterMap.COMBINING_ACCENT_MASK; StringBuilder builder = new StringBuilder(); builder.appendCodePoint(pendingAccent); setComposingText(builder.toString(), 1); mPendingAccent = pendingAccent; return true; } else if (mPendingAccent != 0 && unicodeChar != 0) { int combined = KeyEvent.getDeadChar(mPendingAccent, unicodeChar); if (combined != 0) { StringBuilder builder = new StringBuilder(); builder.appendCodePoint(combined); commitText(builder.toString(), 1); return true; } // Noncombinable character; commit the accent character and fall through to sending // the key event for the character afterwards. finishComposingText(); } replaceSelectionWithUnicodeChar(unicodeChar); mImeAdapter.translateAndSendNativeEvents(event); return true; } /** * Update the mEditable state to reflect what Blink will do in response to the KeyDown * for a unicode-mapped key event. * @param unicodeChar The Unicode character to update selection with. */ private void replaceSelectionWithUnicodeChar(int unicodeChar) { if (unicodeChar == 0) return; int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); if (selectionStart > selectionEnd) { int temp = selectionStart; selectionStart = selectionEnd; selectionEnd = temp; } mEditable.replace(selectionStart, selectionEnd, Character.toString((char) unicodeChar)); updateSelectionIfRequired(); } /** * @see BaseInputConnection#finishComposingText() */ @Override public boolean finishComposingText() { if (DEBUG) Log.w(TAG, "finishComposingText"); mPendingAccent = 0; if (getComposingSpanStart(mEditable) == getComposingSpanEnd(mEditable)) { return true; } super.finishComposingText(); updateSelectionIfRequired(); mImeAdapter.finishComposingText(); return true; } /** * @see BaseInputConnection#setSelection(int, int) */ @Override public boolean setSelection(int start, int end) { if (DEBUG) Log.w(TAG, "setSelection [" + start + " " + end + "]"); int textLength = mEditable.length(); if (start < 0 || end < 0 || start > textLength || end > textLength) return true; super.setSelection(start, end); updateSelectionIfRequired(); return mImeAdapter.setEditableSelectionOffsets(start, end); } /** * Informs the InputMethodManager and InputMethodSession (i.e. the IME) that the text * state is no longer what the IME has and that it needs to be updated. */ void restartInput() { if (DEBUG) Log.w(TAG, "restartInput"); getInputMethodManagerWrapper().restartInput(mInternalView); mNumNestedBatchEdits = 0; mPendingAccent = 0; } /** * @see BaseInputConnection#setComposingRegion(int, int) */ @Override public boolean setComposingRegion(int start, int end) { if (DEBUG) Log.w(TAG, "setComposingRegion [" + start + " " + end + "]"); int textLength = mEditable.length(); int a = Math.min(start, end); int b = Math.max(start, end); if (a < 0) a = 0; if (b < 0) b = 0; if (a > textLength) a = textLength; if (b > textLength) b = textLength; if (a == b) { removeComposingSpans(mEditable); } else { super.setComposingRegion(a, b); } updateSelectionIfRequired(); CharSequence regionText = null; if (b > a) { regionText = mEditable.subSequence(a, b); } return mImeAdapter.setComposingRegion(regionText, a, b); } boolean isActive() { return getInputMethodManagerWrapper().isActive(mInternalView); } private InputMethodManagerWrapper getInputMethodManagerWrapper() { return mImeAdapter.getInputMethodManagerWrapper(); } /** * This method works around the issue crbug.com/373934 where Blink does not cancel * the composition when we send a commit with the empty text. * * TODO(aurimas) Remove this once crbug.com/373934 is fixed. * * @param text Text that software keyboard requested to commit. * @return Whether the workaround was performed. */ private boolean maybePerformEmptyCompositionWorkaround(CharSequence text) { int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); int compositionStart = getComposingSpanStart(mEditable); int compositionEnd = getComposingSpanEnd(mEditable); if (TextUtils.isEmpty(text) && (selectionStart == selectionEnd) && compositionStart != INVALID_COMPOSITION && compositionEnd != INVALID_COMPOSITION) { beginBatchEdit(); finishComposingText(); int selection = Selection.getSelectionStart(mEditable); deleteSurroundingText(selection - compositionStart, selection - compositionEnd); endBatchEdit(); return true; } return false; } @VisibleForTesting static class ImeState { public final String text; public final int selectionStart; public final int selectionEnd; public final int compositionStart; public final int compositionEnd; public ImeState(String text, int selectionStart, int selectionEnd, int compositionStart, int compositionEnd) { this.text = text; this.selectionStart = selectionStart; this.selectionEnd = selectionEnd; this.compositionStart = compositionStart; this.compositionEnd = compositionEnd; } } @VisibleForTesting ImeState getImeStateForTesting() { String text = mEditable.toString(); int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); int compositionStart = getComposingSpanStart(mEditable); int compositionEnd = getComposingSpanEnd(mEditable); return new ImeState(text, selectionStart, selectionEnd, compositionStart, compositionEnd); } }
Java
/* * Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net) * All rights reserved. * 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. * * Neither the name of Ondrej Danek nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * 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 THE COPYRIGHT OWNER OR CONTRIBUTORS 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. */ #ifndef DUEL6_VERTEX_H #define DUEL6_VERTEX_H #include "Type.h" namespace Duel6 { class Vertex { public: enum Flag { None = 0, Flow = 1 }; public: Float32 x; Float32 y; Float32 z; Float32 u; Float32 v; private: Uint32 flag; public: Vertex(Size order, Float32 x, Float32 y, Float32 z, Uint32 flag = None) { this->x = x; this->y = y; this->z = z; u = (order == 0 || order == 3) ? 0.0f : 0.99f; v = (order == 0 || order == 1) ? 0.0f : 0.99f; this->flag = flag; } Vertex(Size order, Int32 x, Int32 y, Int32 z, Uint32 flag = Flag::None) : Vertex(order, Float32(x), Float32(y), Float32(z), flag) {} Uint32 getFlag() const { return flag; } }; } #endif
Java
VERSION = (1, 0, 0,) __version__ = '.'.join(map(str, VERSION)) default_app_config = 'admin_sso.apps.AdminSSOConfig' # Do not use Django settings at module level as recommended try: from django.utils.functional import LazyObject except ImportError: pass else: class LazySettings(LazyObject): def _setup(self): from admin_sso import default_settings self._wrapped = Settings(default_settings) class Settings(object): def __init__(self, settings_module): for setting in dir(settings_module): if setting == setting.upper(): setattr(self, setting, getattr(settings_module, setting)) settings = LazySettings()
Java
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/layout/ng/mathml/ng_math_under_over_layout_algorithm.h" #include "third_party/blink/renderer/core/layout/ng/mathml/ng_math_layout_utils.h" #include "third_party/blink/renderer/core/layout/ng/ng_block_break_token.h" #include "third_party/blink/renderer/core/layout/ng/ng_box_fragment.h" #include "third_party/blink/renderer/core/layout/ng/ng_length_utils.h" #include "third_party/blink/renderer/core/layout/ng/ng_out_of_flow_layout_part.h" #include "third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h" #include "third_party/blink/renderer/core/mathml/mathml_operator_element.h" #include "third_party/blink/renderer/core/mathml/mathml_under_over_element.h" namespace blink { namespace { // Describes the amount to shift to apply to the under/over boxes. // Data is populated from the OpenType MATH table. // If the OpenType MATH table is not present fallback values are used. // https://w3c.github.io/mathml-core/#base-with-underscript // https://w3c.github.io/mathml-core/#base-with-overscript struct UnderOverVerticalParameters { bool use_under_over_bar_fallback; LayoutUnit under_gap_min; LayoutUnit over_gap_min; LayoutUnit under_shift_min; LayoutUnit over_shift_min; LayoutUnit under_extra_descender; LayoutUnit over_extra_ascender; LayoutUnit accent_base_height; }; UnderOverVerticalParameters GetUnderOverVerticalParameters( const ComputedStyle& style, bool is_base_large_operator, bool is_base_stretchy_in_inline_axis) { UnderOverVerticalParameters parameters; const SimpleFontData* font_data = style.GetFont().PrimaryFont(); if (!font_data) return parameters; // https://w3c.github.io/mathml-core/#dfn-default-fallback-constant const float default_fallback_constant = 0; if (is_base_large_operator) { parameters.under_gap_min = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kLowerLimitGapMin) .value_or(default_fallback_constant)); parameters.over_gap_min = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kUpperLimitGapMin) .value_or(default_fallback_constant)); parameters.under_shift_min = LayoutUnit( MathConstant( style, OpenTypeMathSupport::MathConstants::kLowerLimitBaselineDropMin) .value_or(default_fallback_constant)); parameters.over_shift_min = LayoutUnit( MathConstant( style, OpenTypeMathSupport::MathConstants::kUpperLimitBaselineRiseMin) .value_or(default_fallback_constant)); parameters.under_extra_descender = LayoutUnit(); parameters.over_extra_ascender = LayoutUnit(); parameters.accent_base_height = LayoutUnit(); parameters.use_under_over_bar_fallback = false; return parameters; } if (is_base_stretchy_in_inline_axis) { parameters.under_gap_min = LayoutUnit( MathConstant( style, OpenTypeMathSupport::MathConstants::kStretchStackGapBelowMin) .value_or(default_fallback_constant)); parameters.over_gap_min = LayoutUnit( MathConstant( style, OpenTypeMathSupport::MathConstants::kStretchStackGapAboveMin) .value_or(default_fallback_constant)); parameters.under_shift_min = LayoutUnit( MathConstant( style, OpenTypeMathSupport::MathConstants::kStretchStackBottomShiftDown) .value_or(default_fallback_constant)); parameters.over_shift_min = LayoutUnit( MathConstant( style, OpenTypeMathSupport::MathConstants::kStretchStackTopShiftUp) .value_or(default_fallback_constant)); parameters.under_extra_descender = LayoutUnit(); parameters.over_extra_ascender = LayoutUnit(); parameters.accent_base_height = LayoutUnit(); parameters.use_under_over_bar_fallback = false; return parameters; } const float default_rule_thickness = RuleThicknessFallback(style); parameters.under_gap_min = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kUnderbarVerticalGap) .value_or(3 * default_rule_thickness)); parameters.over_gap_min = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kOverbarVerticalGap) .value_or(3 * default_rule_thickness)); parameters.under_shift_min = LayoutUnit(); parameters.over_shift_min = LayoutUnit(); parameters.under_extra_descender = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kUnderbarExtraDescender) .value_or(default_rule_thickness)); parameters.over_extra_ascender = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kOverbarExtraAscender) .value_or(default_rule_thickness)); parameters.accent_base_height = LayoutUnit( MathConstant(style, OpenTypeMathSupport::MathConstants::kAccentBaseHeight) .value_or(font_data->GetFontMetrics().XHeight() / 2)); parameters.use_under_over_bar_fallback = true; return parameters; } // https://w3c.github.io/mathml-core/#underscripts-and-overscripts-munder-mover-munderover bool HasAccent(const NGBlockNode& node, bool accent_under) { DCHECK(node); auto* underover = To<MathMLUnderOverElement>(node.GetDOMNode()); auto script_type = underover->GetScriptType(); DCHECK(script_type == MathScriptType::kUnderOver || (accent_under && script_type == MathScriptType::kUnder) || (!accent_under && script_type == MathScriptType::kOver)); absl::optional<bool> attribute_value = accent_under ? underover->AccentUnder() : underover->Accent(); return attribute_value && *attribute_value; } } // namespace NGMathUnderOverLayoutAlgorithm::NGMathUnderOverLayoutAlgorithm( const NGLayoutAlgorithmParams& params) : NGLayoutAlgorithm(params) { DCHECK(params.space.IsNewFormattingContext()); } void NGMathUnderOverLayoutAlgorithm::GatherChildren(NGBlockNode* base, NGBlockNode* over, NGBlockNode* under) { auto script_type = Node().ScriptType(); for (NGLayoutInputNode child = Node().FirstChild(); child; child = child.NextSibling()) { NGBlockNode block_child = To<NGBlockNode>(child); if (child.IsOutOfFlowPositioned()) { container_builder_.AddOutOfFlowChildCandidate( block_child, BorderScrollbarPadding().StartOffset()); continue; } if (!*base) { *base = block_child; continue; } switch (script_type) { case MathScriptType::kUnder: DCHECK(!*under); *under = block_child; break; case MathScriptType::kOver: DCHECK(!*over); *over = block_child; break; case MathScriptType::kUnderOver: if (!*under) { *under = block_child; continue; } DCHECK(!*over); *over = block_child; break; default: NOTREACHED(); } } } scoped_refptr<const NGLayoutResult> NGMathUnderOverLayoutAlgorithm::Layout() { DCHECK(!BreakToken()); DCHECK(IsValidMathMLScript(Node())); NGBlockNode base = nullptr; NGBlockNode over = nullptr; NGBlockNode under = nullptr; GatherChildren(&base, &over, &under); const LogicalSize border_box_size = container_builder_.InitialBorderBoxSize(); const LogicalOffset content_start_offset = BorderScrollbarPadding().StartOffset(); LayoutUnit block_offset = content_start_offset.block_offset; const auto base_properties = GetMathMLEmbellishedOperatorProperties(base); const bool is_base_large_operator = base_properties && base_properties->is_large_op; const bool is_base_stretchy_in_inline_axis = base_properties && base_properties->is_stretchy && !base_properties->is_vertical; const bool base_inherits_block_stretch_size_constraint = ConstraintSpace().TargetStretchBlockSizes().has_value(); const bool base_inherits_inline_stretch_size_constraint = !base_inherits_block_stretch_size_constraint && ConstraintSpace().HasTargetStretchInlineSize(); UnderOverVerticalParameters parameters = GetUnderOverVerticalParameters( Style(), is_base_large_operator, is_base_stretchy_in_inline_axis); // https://w3c.github.io/mathml-core/#dfn-algorithm-for-stretching-operators-along-the-inline-axis LayoutUnit inline_stretch_size; auto UpdateInlineStretchSize = [&](const scoped_refptr<const NGLayoutResult>& result) { NGFragment fragment( ConstraintSpace().GetWritingDirection(), To<NGPhysicalBoxFragment>(result->PhysicalFragment())); inline_stretch_size = std::max(inline_stretch_size, fragment.InlineSize()); }; // "Perform layout without any stretch size constraint on all the items of // LNotToStretch" bool layout_remaining_items_with_zero_inline_stretch_size = true; for (NGLayoutInputNode child = Node().FirstChild(); child; child = child.NextSibling()) { if (child.IsOutOfFlowPositioned() || IsInlineAxisStretchyOperator(To<NGBlockNode>(child))) continue; const auto child_constraint_space = CreateConstraintSpaceForMathChild( Node(), ChildAvailableSize(), ConstraintSpace(), child, NGCacheSlot::kMeasure); const auto child_layout_result = To<NGBlockNode>(child).Layout( child_constraint_space, nullptr /* break_token */); UpdateInlineStretchSize(child_layout_result); layout_remaining_items_with_zero_inline_stretch_size = false; } if (UNLIKELY(layout_remaining_items_with_zero_inline_stretch_size)) { // "If LNotToStretch is empty, perform layout with stretch size constraint 0 // on all the items of LToStretch. for (NGLayoutInputNode child = Node().FirstChild(); child; child = child.NextSibling()) { if (child.IsOutOfFlowPositioned()) continue; DCHECK(IsInlineAxisStretchyOperator(To<NGBlockNode>(child))); if (child == base && (base_inherits_block_stretch_size_constraint || base_inherits_inline_stretch_size_constraint)) continue; LayoutUnit zero_stretch_size; const auto child_constraint_space = CreateConstraintSpaceForMathChild( Node(), ChildAvailableSize(), ConstraintSpace(), child, NGCacheSlot::kMeasure, absl::nullopt, zero_stretch_size); const auto child_layout_result = To<NGBlockNode>(child).Layout( child_constraint_space, nullptr /* break_token */); UpdateInlineStretchSize(child_layout_result); } } auto CreateConstraintSpaceForUnderOverChild = [&](const NGBlockNode child) { if (child == base && base_inherits_block_stretch_size_constraint && IsBlockAxisStretchyOperator(To<NGBlockNode>(child))) { return CreateConstraintSpaceForMathChild( Node(), ChildAvailableSize(), ConstraintSpace(), child, NGCacheSlot::kLayout, *ConstraintSpace().TargetStretchBlockSizes()); } if (child == base && base_inherits_inline_stretch_size_constraint && IsInlineAxisStretchyOperator(To<NGBlockNode>(child))) { return CreateConstraintSpaceForMathChild( Node(), ChildAvailableSize(), ConstraintSpace(), child, NGCacheSlot::kLayout, absl::nullopt, ConstraintSpace().TargetStretchInlineSize()); } if ((child != base || (!base_inherits_block_stretch_size_constraint && !base_inherits_inline_stretch_size_constraint)) && IsInlineAxisStretchyOperator(To<NGBlockNode>(child))) { return CreateConstraintSpaceForMathChild( Node(), ChildAvailableSize(), ConstraintSpace(), child, NGCacheSlot::kLayout, absl::nullopt, inline_stretch_size); } return CreateConstraintSpaceForMathChild(Node(), ChildAvailableSize(), ConstraintSpace(), child, NGCacheSlot::kLayout); }; // TODO(crbug.com/1125136): take into account italic correction. const auto baseline_type = Style().GetFontBaseline(); const auto base_space = CreateConstraintSpaceForUnderOverChild(base); auto base_layout_result = base.Layout(base_space); auto base_margins = ComputeMarginsFor(base_space, base.Style(), ConstraintSpace()); NGBoxFragment base_fragment( ConstraintSpace().GetWritingDirection(), To<NGPhysicalBoxFragment>(base_layout_result->PhysicalFragment())); LayoutUnit base_ascent = base_fragment.BaselineOrSynthesize(baseline_type); // All children are positioned centered relative to the container (and // therefore centered relative to themselves). if (over) { const auto over_space = CreateConstraintSpaceForUnderOverChild(over); scoped_refptr<const NGLayoutResult> over_layout_result = over.Layout(over_space); NGBoxStrut over_margins = ComputeMarginsFor(over_space, over.Style(), ConstraintSpace()); NGBoxFragment over_fragment( ConstraintSpace().GetWritingDirection(), To<NGPhysicalBoxFragment>(over_layout_result->PhysicalFragment())); block_offset += parameters.over_extra_ascender + over_margins.block_start; LogicalOffset over_offset = { content_start_offset.inline_offset + over_margins.inline_start + (ChildAvailableSize().inline_size - (over_fragment.InlineSize() + over_margins.InlineSum())) / 2, block_offset}; container_builder_.AddResult(*over_layout_result, over_offset); over.StoreMargins(ConstraintSpace(), over_margins); if (parameters.use_under_over_bar_fallback) { block_offset += over_fragment.BlockSize(); if (HasAccent(Node(), false)) { if (base_ascent < parameters.accent_base_height) block_offset += parameters.accent_base_height - base_ascent; } else { block_offset += parameters.over_gap_min; } } else { LayoutUnit over_ascent = over_fragment.BaselineOrSynthesize(baseline_type); block_offset += std::max(over_fragment.BlockSize() + parameters.over_gap_min, over_ascent + parameters.over_shift_min); } block_offset += over_margins.block_end; } block_offset += base_margins.block_start; LogicalOffset base_offset = { content_start_offset.inline_offset + base_margins.inline_start + (ChildAvailableSize().inline_size - (base_fragment.InlineSize() + base_margins.InlineSum())) / 2, block_offset}; container_builder_.AddResult(*base_layout_result, base_offset); base.StoreMargins(ConstraintSpace(), base_margins); block_offset += base_fragment.BlockSize() + base_margins.block_end; if (under) { const auto under_space = CreateConstraintSpaceForUnderOverChild(under); scoped_refptr<const NGLayoutResult> under_layout_result = under.Layout(under_space); NGBoxStrut under_margins = ComputeMarginsFor(under_space, under.Style(), ConstraintSpace()); NGBoxFragment under_fragment( ConstraintSpace().GetWritingDirection(), To<NGPhysicalBoxFragment>(under_layout_result->PhysicalFragment())); block_offset += under_margins.block_start; if (parameters.use_under_over_bar_fallback) { if (!HasAccent(Node(), true)) block_offset += parameters.under_gap_min; } else { LayoutUnit under_ascent = under_fragment.BaselineOrSynthesize(baseline_type); block_offset += std::max(parameters.under_gap_min, parameters.under_shift_min - under_ascent); } LogicalOffset under_offset = { content_start_offset.inline_offset + under_margins.inline_start + (ChildAvailableSize().inline_size - (under_fragment.InlineSize() + under_margins.InlineSum())) / 2, block_offset}; block_offset += under_fragment.BlockSize(); block_offset += parameters.under_extra_descender; container_builder_.AddResult(*under_layout_result, under_offset); under.StoreMargins(ConstraintSpace(), under_margins); block_offset += under_margins.block_end; } container_builder_.SetBaseline(base_offset.block_offset + base_ascent); block_offset += BorderScrollbarPadding().block_end; LayoutUnit block_size = ComputeBlockSizeForFragment(ConstraintSpace(), Style(), BorderPadding(), block_offset, border_box_size.inline_size); container_builder_.SetIntrinsicBlockSize(block_offset); container_builder_.SetFragmentsTotalBlockSize(block_size); NGOutOfFlowLayoutPart(Node(), ConstraintSpace(), &container_builder_).Run(); return container_builder_.ToBoxFragment(); } MinMaxSizesResult NGMathUnderOverLayoutAlgorithm::ComputeMinMaxSizes( const MinMaxSizesFloatInput&) { DCHECK(IsValidMathMLScript(Node())); if (auto result = CalculateMinMaxSizesIgnoringChildren( Node(), BorderScrollbarPadding())) return *result; MinMaxSizes sizes; bool depends_on_block_constraints = false; for (NGLayoutInputNode child = Node().FirstChild(); child; child = child.NextSibling()) { if (child.IsOutOfFlowPositioned()) continue; // TODO(crbug.com/1125136): take into account italic correction. const auto child_result = ComputeMinAndMaxContentContributionForMathChild( Style(), ConstraintSpace(), To<NGBlockNode>(child), ChildAvailableSize().block_size); sizes.Encompass(child_result.sizes); depends_on_block_constraints |= child_result.depends_on_block_constraints; } sizes += BorderScrollbarPadding().InlineSum(); return MinMaxSizesResult(sizes, depends_on_block_constraints); } } // namespace blink
Java
/// @ref simd /// @file glm/simd/platform.h #pragma once /////////////////////////////////////////////////////////////////////////////////// // Platform #define GLM_PLATFORM_UNKNOWN 0x00000000 #define GLM_PLATFORM_WINDOWS 0x00010000 #define GLM_PLATFORM_LINUX 0x00020000 #define GLM_PLATFORM_APPLE 0x00040000 //#define GLM_PLATFORM_IOS 0x00080000 #define GLM_PLATFORM_ANDROID 0x00100000 #define GLM_PLATFORM_CHROME_NACL 0x00200000 #define GLM_PLATFORM_UNIX 0x00400000 #define GLM_PLATFORM_QNXNTO 0x00800000 #define GLM_PLATFORM_WINCE 0x01000000 #define GLM_PLATFORM_CYGWIN 0x02000000 #ifdef GLM_FORCE_PLATFORM_UNKNOWN # define GLM_PLATFORM GLM_PLATFORM_UNKNOWN #elif defined(__CYGWIN__) # define GLM_PLATFORM GLM_PLATFORM_CYGWIN #elif defined(__QNXNTO__) # define GLM_PLATFORM GLM_PLATFORM_QNXNTO #elif defined(__APPLE__) # define GLM_PLATFORM GLM_PLATFORM_APPLE #elif defined(WINCE) # define GLM_PLATFORM GLM_PLATFORM_WINCE #elif defined(_WIN32) # define GLM_PLATFORM GLM_PLATFORM_WINDOWS #elif defined(__native_client__) # define GLM_PLATFORM GLM_PLATFORM_CHROME_NACL #elif defined(__ANDROID__) # define GLM_PLATFORM GLM_PLATFORM_ANDROID #elif defined(__linux) # define GLM_PLATFORM GLM_PLATFORM_LINUX #elif defined(__unix) # define GLM_PLATFORM GLM_PLATFORM_UNIX #else # define GLM_PLATFORM GLM_PLATFORM_UNKNOWN #endif// // Report platform detection #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_MESSAGE_PLATFORM_DISPLAYED) # define GLM_MESSAGE_PLATFORM_DISPLAYED # if(GLM_PLATFORM & GLM_PLATFORM_QNXNTO) # pragma message("GLM: QNX platform detected") //# elif(GLM_PLATFORM & GLM_PLATFORM_IOS) //# pragma message("GLM: iOS platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_APPLE) # pragma message("GLM: Apple platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_WINCE) # pragma message("GLM: WinCE platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_WINDOWS) # pragma message("GLM: Windows platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_CHROME_NACL) # pragma message("GLM: Native Client detected") # elif(GLM_PLATFORM & GLM_PLATFORM_ANDROID) # pragma message("GLM: Android platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_LINUX) # pragma message("GLM: Linux platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_UNIX) # pragma message("GLM: UNIX platform detected") # elif(GLM_PLATFORM & GLM_PLATFORM_UNKNOWN) # pragma message("GLM: platform unknown") # else # pragma message("GLM: platform not detected") # endif #endif//GLM_MESSAGES /////////////////////////////////////////////////////////////////////////////////// // Compiler #define GLM_COMPILER_UNKNOWN 0x00000000 // Intel #define GLM_COMPILER_INTEL 0x00100000 #define GLM_COMPILER_INTEL12 0x00100010 #define GLM_COMPILER_INTEL12_1 0x00100020 #define GLM_COMPILER_INTEL13 0x00100030 #define GLM_COMPILER_INTEL14 0x00100040 #define GLM_COMPILER_INTEL15 0x00100050 #define GLM_COMPILER_INTEL16 0x00100060 // Visual C++ defines #define GLM_COMPILER_VC 0x01000000 #define GLM_COMPILER_VC10 0x01000090 #define GLM_COMPILER_VC11 0x010000A0 #define GLM_COMPILER_VC12 0x010000B0 #define GLM_COMPILER_VC14 0x010000C0 #define GLM_COMPILER_VC15 0x010000D0 // GCC defines #define GLM_COMPILER_GCC 0x02000000 #define GLM_COMPILER_GCC44 0x020000B0 #define GLM_COMPILER_GCC45 0x020000C0 #define GLM_COMPILER_GCC46 0x020000D0 #define GLM_COMPILER_GCC47 0x020000E0 #define GLM_COMPILER_GCC48 0x020000F0 #define GLM_COMPILER_GCC49 0x02000100 #define GLM_COMPILER_GCC50 0x02000200 #define GLM_COMPILER_GCC51 0x02000300 #define GLM_COMPILER_GCC52 0x02000400 #define GLM_COMPILER_GCC53 0x02000500 #define GLM_COMPILER_GCC54 0x02000600 #define GLM_COMPILER_GCC60 0x02000700 #define GLM_COMPILER_GCC61 0x02000800 #define GLM_COMPILER_GCC62 0x02000900 #define GLM_COMPILER_GCC70 0x02000A00 #define GLM_COMPILER_GCC71 0x02000B00 #define GLM_COMPILER_GCC72 0x02000C00 #define GLM_COMPILER_GCC80 0x02000D00 // CUDA #define GLM_COMPILER_CUDA 0x10000000 #define GLM_COMPILER_CUDA40 0x10000040 #define GLM_COMPILER_CUDA41 0x10000050 #define GLM_COMPILER_CUDA42 0x10000060 #define GLM_COMPILER_CUDA50 0x10000070 #define GLM_COMPILER_CUDA60 0x10000080 #define GLM_COMPILER_CUDA65 0x10000090 #define GLM_COMPILER_CUDA70 0x100000A0 #define GLM_COMPILER_CUDA75 0x100000B0 #define GLM_COMPILER_CUDA80 0x100000C0 // Clang #define GLM_COMPILER_CLANG 0x20000000 #define GLM_COMPILER_CLANG32 0x20000030 #define GLM_COMPILER_CLANG33 0x20000040 #define GLM_COMPILER_CLANG34 0x20000050 #define GLM_COMPILER_CLANG35 0x20000060 #define GLM_COMPILER_CLANG36 0x20000070 #define GLM_COMPILER_CLANG37 0x20000080 #define GLM_COMPILER_CLANG38 0x20000090 #define GLM_COMPILER_CLANG39 0x200000A0 #define GLM_COMPILER_CLANG40 0x200000B0 #define GLM_COMPILER_CLANG41 0x200000C0 #define GLM_COMPILER_CLANG42 0x200000D0 // Build model #define GLM_MODEL_32 0x00000010 #define GLM_MODEL_64 0x00000020 // Force generic C++ compiler #ifdef GLM_FORCE_COMPILER_UNKNOWN # define GLM_COMPILER GLM_COMPILER_UNKNOWN #elif defined(__INTEL_COMPILER) # if __INTEL_COMPILER == 1200 # define GLM_COMPILER GLM_COMPILER_INTEL12 # elif __INTEL_COMPILER == 1210 # define GLM_COMPILER GLM_COMPILER_INTEL12_1 # elif __INTEL_COMPILER == 1300 # define GLM_COMPILER GLM_COMPILER_INTEL13 # elif __INTEL_COMPILER == 1400 # define GLM_COMPILER GLM_COMPILER_INTEL14 # elif __INTEL_COMPILER == 1500 # define GLM_COMPILER GLM_COMPILER_INTEL15 # elif __INTEL_COMPILER >= 1600 # define GLM_COMPILER GLM_COMPILER_INTEL16 # else # define GLM_COMPILER GLM_COMPILER_INTEL # endif // CUDA #elif defined(__CUDACC__) # if !defined(CUDA_VERSION) && !defined(GLM_FORCE_CUDA) # include <cuda.h> // make sure version is defined since nvcc does not define it itself! # endif # if CUDA_VERSION < 3000 # error "GLM requires CUDA 3.0 or higher" # else # define GLM_COMPILER GLM_COMPILER_CUDA # endif // Clang #elif defined(__clang__) # if defined(__apple_build_version__) # if __clang_major__ == 5 && __clang_minor__ == 0 # define GLM_COMPILER GLM_COMPILER_CLANG33 # elif __clang_major__ == 5 && __clang_minor__ == 1 # define GLM_COMPILER GLM_COMPILER_CLANG34 # elif __clang_major__ == 6 && __clang_minor__ == 0 # define GLM_COMPILER GLM_COMPILER_CLANG35 # elif __clang_major__ == 6 && __clang_minor__ >= 1 # define GLM_COMPILER GLM_COMPILER_CLANG36 # elif __clang_major__ >= 7 # define GLM_COMPILER GLM_COMPILER_CLANG37 # else # define GLM_COMPILER GLM_COMPILER_CLANG # endif # else # if __clang_major__ == 3 && __clang_minor__ == 0 # define GLM_COMPILER GLM_COMPILER_CLANG30 # elif __clang_major__ == 3 && __clang_minor__ == 1 # define GLM_COMPILER GLM_COMPILER_CLANG31 # elif __clang_major__ == 3 && __clang_minor__ == 2 # define GLM_COMPILER GLM_COMPILER_CLANG32 # elif __clang_major__ == 3 && __clang_minor__ == 3 # define GLM_COMPILER GLM_COMPILER_CLANG33 # elif __clang_major__ == 3 && __clang_minor__ == 4 # define GLM_COMPILER GLM_COMPILER_CLANG34 # elif __clang_major__ == 3 && __clang_minor__ == 5 # define GLM_COMPILER GLM_COMPILER_CLANG35 # elif __clang_major__ == 3 && __clang_minor__ == 6 # define GLM_COMPILER GLM_COMPILER_CLANG36 # elif __clang_major__ == 3 && __clang_minor__ == 7 # define GLM_COMPILER GLM_COMPILER_CLANG37 # elif __clang_major__ == 3 && __clang_minor__ == 8 # define GLM_COMPILER GLM_COMPILER_CLANG38 # elif __clang_major__ == 3 && __clang_minor__ >= 9 # define GLM_COMPILER GLM_COMPILER_CLANG39 # elif __clang_major__ == 4 && __clang_minor__ == 0 # define GLM_COMPILER GLM_COMPILER_CLANG40 # elif __clang_major__ == 4 && __clang_minor__ == 1 # define GLM_COMPILER GLM_COMPILER_CLANG41 # elif __clang_major__ == 4 && __clang_minor__ >= 2 # define GLM_COMPILER GLM_COMPILER_CLANG42 # elif __clang_major__ >= 4 # define GLM_COMPILER GLM_COMPILER_CLANG42 # else # define GLM_COMPILER GLM_COMPILER_CLANG # endif # endif // Visual C++ #elif defined(_MSC_VER) # if _MSC_VER < 1600 # error "GLM requires Visual C++ 10 - 2010 or higher" # elif _MSC_VER == 1600 # define GLM_COMPILER GLM_COMPILER_VC11 # elif _MSC_VER == 1700 # define GLM_COMPILER GLM_COMPILER_VC11 # elif _MSC_VER == 1800 # define GLM_COMPILER GLM_COMPILER_VC12 # elif _MSC_VER == 1900 # define GLM_COMPILER GLM_COMPILER_VC14 # elif _MSC_VER >= 1910 # define GLM_COMPILER GLM_COMPILER_VC15 # else//_MSC_VER # define GLM_COMPILER GLM_COMPILER_VC # endif//_MSC_VER // G++ #elif defined(__GNUC__) || defined(__MINGW32__) # if (__GNUC__ == 4) && (__GNUC_MINOR__ == 2) # define GLM_COMPILER (GLM_COMPILER_GCC42) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ == 3) # define GLM_COMPILER (GLM_COMPILER_GCC43) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ == 4) # define GLM_COMPILER (GLM_COMPILER_GCC44) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ == 5) # define GLM_COMPILER (GLM_COMPILER_GCC45) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ == 6) # define GLM_COMPILER (GLM_COMPILER_GCC46) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ == 7) # define GLM_COMPILER (GLM_COMPILER_GCC47) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) # define GLM_COMPILER (GLM_COMPILER_GCC48) # elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 9) # define GLM_COMPILER (GLM_COMPILER_GCC49) # elif (__GNUC__ == 5) && (__GNUC_MINOR__ == 0) # define GLM_COMPILER (GLM_COMPILER_GCC50) # elif (__GNUC__ == 5) && (__GNUC_MINOR__ == 1) # define GLM_COMPILER (GLM_COMPILER_GCC51) # elif (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) # define GLM_COMPILER (GLM_COMPILER_GCC52) # elif (__GNUC__ == 5) && (__GNUC_MINOR__ == 3) # define GLM_COMPILER (GLM_COMPILER_GCC53) # elif (__GNUC__ == 5) && (__GNUC_MINOR__ >= 4) # define GLM_COMPILER (GLM_COMPILER_GCC54) # elif (__GNUC__ == 6) && (__GNUC_MINOR__ == 0) # define GLM_COMPILER (GLM_COMPILER_GCC60) # elif (__GNUC__ == 6) && (__GNUC_MINOR__ == 1) # define GLM_COMPILER (GLM_COMPILER_GCC61) # elif (__GNUC__ == 6) && (__GNUC_MINOR__ >= 2) # define GLM_COMPILER (GLM_COMPILER_GCC62) # elif (__GNUC__ == 7) && (__GNUC_MINOR__ == 0) # define GLM_COMPILER (GLM_COMPILER_GCC70) # elif (__GNUC__ == 7) && (__GNUC_MINOR__ == 1) # define GLM_COMPILER (GLM_COMPILER_GCC71) # elif (__GNUC__ == 7) && (__GNUC_MINOR__ == 2) # define GLM_COMPILER (GLM_COMPILER_GCC72) # elif (__GNUC__ == 7) && (__GNUC_MINOR__ >= 3) # define GLM_COMPILER (GLM_COMPILER_GCC72) # elif (__GNUC__ >= 8) # define GLM_COMPILER (GLM_COMPILER_GCC80) # else # define GLM_COMPILER (GLM_COMPILER_GCC) # endif #else # define GLM_COMPILER GLM_COMPILER_UNKNOWN #endif #ifndef GLM_COMPILER # error "GLM_COMPILER undefined, your compiler may not be supported by GLM. Add #define GLM_COMPILER 0 to ignore this message." #endif//GLM_COMPILER /////////////////////////////////////////////////////////////////////////////////// // Instruction sets // User defines: GLM_FORCE_PURE GLM_FORCE_SSE2 GLM_FORCE_SSE3 GLM_FORCE_AVX GLM_FORCE_AVX2 GLM_FORCE_AVX2 #define GLM_ARCH_X86_BIT 0x00000001 #define GLM_ARCH_SSE2_BIT 0x00000002 #define GLM_ARCH_SSE3_BIT 0x00000004 #define GLM_ARCH_SSSE3_BIT 0x00000008 #define GLM_ARCH_SSE41_BIT 0x00000010 #define GLM_ARCH_SSE42_BIT 0x00000020 #define GLM_ARCH_AVX_BIT 0x00000040 #define GLM_ARCH_AVX2_BIT 0x00000080 #define GLM_ARCH_AVX512_BIT 0x00000100 // Skylake subset #define GLM_ARCH_ARM_BIT 0x00000100 #define GLM_ARCH_NEON_BIT 0x00000200 #define GLM_ARCH_MIPS_BIT 0x00010000 #define GLM_ARCH_PPC_BIT 0x01000000 #define GLM_ARCH_PURE (0x00000000) #define GLM_ARCH_X86 (GLM_ARCH_X86_BIT) #define GLM_ARCH_SSE2 (GLM_ARCH_SSE2_BIT | GLM_ARCH_X86) #define GLM_ARCH_SSE3 (GLM_ARCH_SSE3_BIT | GLM_ARCH_SSE2) #define GLM_ARCH_SSSE3 (GLM_ARCH_SSSE3_BIT | GLM_ARCH_SSE3) #define GLM_ARCH_SSE41 (GLM_ARCH_SSE41_BIT | GLM_ARCH_SSSE3) #define GLM_ARCH_SSE42 (GLM_ARCH_SSE42_BIT | GLM_ARCH_SSE41) #define GLM_ARCH_AVX (GLM_ARCH_AVX_BIT | GLM_ARCH_SSE42) #define GLM_ARCH_AVX2 (GLM_ARCH_AVX2_BIT | GLM_ARCH_AVX) #define GLM_ARCH_AVX512 (GLM_ARCH_AVX512_BIT | GLM_ARCH_AVX2) // Skylake subset #define GLM_ARCH_ARM (GLM_ARCH_ARM_BIT) #define GLM_ARCH_NEON (GLM_ARCH_NEON_BIT | GLM_ARCH_ARM) #define GLM_ARCH_MIPS (GLM_ARCH_MIPS_BIT) #define GLM_ARCH_PPC (GLM_ARCH_PPC_BIT) #if defined(GLM_FORCE_PURE) # define GLM_ARCH GLM_ARCH_PURE #elif defined(GLM_FORCE_MIPS) # define GLM_ARCH (GLM_ARCH_MIPS) #elif defined(GLM_FORCE_PPC) # define GLM_ARCH (GLM_ARCH_PPC) #elif defined(GLM_FORCE_NEON) # define GLM_ARCH (GLM_ARCH_NEON) #elif defined(GLM_FORCE_AVX512) # define GLM_ARCH (GLM_ARCH_AVX512) #elif defined(GLM_FORCE_AVX2) # define GLM_ARCH (GLM_ARCH_AVX2) #elif defined(GLM_FORCE_AVX) # define GLM_ARCH (GLM_ARCH_AVX) #elif defined(GLM_FORCE_SSE42) # define GLM_ARCH (GLM_ARCH_SSE42) #elif defined(GLM_FORCE_SSE41) # define GLM_ARCH (GLM_ARCH_SSE41) #elif defined(GLM_FORCE_SSSE3) # define GLM_ARCH (GLM_ARCH_SSSE3) #elif defined(GLM_FORCE_SSE3) # define GLM_ARCH (GLM_ARCH_SSE3) #elif defined(GLM_FORCE_SSE2) # define GLM_ARCH (GLM_ARCH_SSE2) #elif (GLM_COMPILER & (GLM_COMPILER_CLANG | GLM_COMPILER_GCC)) || ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_PLATFORM & GLM_PLATFORM_LINUX)) // This is Skylake set of instruction set # if defined(__AVX512BW__) && defined(__AVX512F__) && defined(__AVX512CD__) && defined(__AVX512VL__) && defined(__AVX512DQ__) # define GLM_ARCH (GLM_ARCH_AVX512) # elif defined(__AVX2__) # define GLM_ARCH (GLM_ARCH_AVX2) # elif defined(__AVX__) # define GLM_ARCH (GLM_ARCH_AVX) # elif defined(__SSE4_2__) # define GLM_ARCH (GLM_ARCH_SSE42) # elif defined(__SSE4_1__) # define GLM_ARCH (GLM_ARCH_SSE41) # elif defined(__SSSE3__) # define GLM_ARCH (GLM_ARCH_SSSE3) # elif defined(__SSE3__) # define GLM_ARCH (GLM_ARCH_SSE3) # elif defined(__SSE2__) # define GLM_ARCH (GLM_ARCH_SSE2) # elif defined(__i386__) || defined(__x86_64__) # define GLM_ARCH (GLM_ARCH_X86) # elif defined(__ARM_NEON) # define GLM_ARCH (GLM_ARCH_ARM | GLM_ARCH_NEON) # elif defined(__arm__ ) # define GLM_ARCH (GLM_ARCH_ARM) # elif defined(__mips__ ) # define GLM_ARCH (GLM_ARCH_MIPS) # elif defined(__powerpc__ ) # define GLM_ARCH (GLM_ARCH_PPC) # else # define GLM_ARCH (GLM_ARCH_PURE) # endif #elif (GLM_COMPILER & GLM_COMPILER_VC) || ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_PLATFORM & GLM_PLATFORM_WINDOWS)) # if defined(_M_ARM) # define GLM_ARCH (GLM_ARCH_ARM) # elif defined(__AVX2__) # define GLM_ARCH (GLM_ARCH_AVX2) # elif defined(__AVX__) # define GLM_ARCH (GLM_ARCH_AVX) # elif defined(_M_X64) # define GLM_ARCH (GLM_ARCH_SSE2) # elif defined(_M_IX86_FP) # if _M_IX86_FP >= 2 # define GLM_ARCH (GLM_ARCH_SSE2) # else # define GLM_ARCH (GLM_ARCH_PURE) # endif # elif defined(_M_PPC) # define GLM_ARCH (GLM_ARCH_PPC) # else # define GLM_ARCH (GLM_ARCH_PURE) # endif #else # define GLM_ARCH GLM_ARCH_PURE #endif // With MinGW-W64, including intrinsic headers before intrin.h will produce some errors. The problem is // that windows.h (and maybe other headers) will silently include intrin.h, which of course causes problems. // To fix, we just explicitly include intrin.h here. #if defined(__MINGW64__) && (GLM_ARCH != GLM_ARCH_PURE) # include <intrin.h> #endif #if GLM_ARCH & GLM_ARCH_AVX2_BIT # include <immintrin.h> #elif GLM_ARCH & GLM_ARCH_AVX_BIT # include <immintrin.h> #elif GLM_ARCH & GLM_ARCH_SSE42_BIT # if GLM_COMPILER & GLM_COMPILER_CLANG # include <popcntintrin.h> # endif # include <nmmintrin.h> #elif GLM_ARCH & GLM_ARCH_SSE41_BIT # include <smmintrin.h> #elif GLM_ARCH & GLM_ARCH_SSSE3_BIT # include <tmmintrin.h> #elif GLM_ARCH & GLM_ARCH_SSE3_BIT # include <pmmintrin.h> #elif GLM_ARCH & GLM_ARCH_SSE2_BIT # include <emmintrin.h> #endif//GLM_ARCH #if GLM_ARCH & GLM_ARCH_SSE2_BIT typedef __m128 glm_vec4; typedef __m128i glm_ivec4; typedef __m128i glm_uvec4; #endif #if GLM_ARCH & GLM_ARCH_AVX_BIT typedef __m256d glm_dvec4; #endif #if GLM_ARCH & GLM_ARCH_AVX2_BIT typedef __m256i glm_i64vec4; typedef __m256i glm_u64vec4; #endif
Java
# Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. include $(GOROOT)/src/Make.$(GOARCH) TARG=encoding/hex GOFILES=\ hex.go\ include $(GOROOT)/src/Make.pkg
Java
/* * * Copyright 2015, Google Inc. * All rights reserved. * * 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. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * 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 THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #include "test/core/end2end/end2end_tests.h" #include <stdio.h> #include <string.h> #include <grpc/byte_buffer.h> #include <grpc/support/alloc.h> #include <grpc/support/log.h> #include <grpc/support/time.h> #include <grpc/support/useful.h> #include "test/core/end2end/cq_verifier.h" static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, grpc_channel_args *client_args, grpc_channel_args *server_args) { grpc_end2end_test_fixture f; gpr_log(GPR_INFO, "%s/%s", test_name, config.name); f = config.create_fixture(client_args, server_args); config.init_server(&f, server_args); config.init_client(&f, client_args); return f; } static gpr_timespec n_seconds_time(int n) { return GRPC_TIMEOUT_SECONDS_TO_DEADLINE(n); } static gpr_timespec five_seconds_time(void) { return n_seconds_time(5); } static void drain_cq(grpc_completion_queue *cq) { grpc_event ev; do { ev = grpc_completion_queue_next(cq, five_seconds_time(), NULL); } while (ev.type != GRPC_QUEUE_SHUTDOWN); } static void shutdown_server(grpc_end2end_test_fixture *f) { if (!f->server) return; grpc_server_shutdown_and_notify(f->server, f->cq, tag(1000)); GPR_ASSERT(grpc_completion_queue_pluck( f->cq, tag(1000), GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5), NULL) .type == GRPC_OP_COMPLETE); grpc_server_destroy(f->server); f->server = NULL; } static void shutdown_client(grpc_end2end_test_fixture *f) { if (!f->client) return; grpc_channel_destroy(f->client); f->client = NULL; } static void end_test(grpc_end2end_test_fixture *f) { shutdown_server(f); shutdown_client(f); grpc_completion_queue_shutdown(f->cq); drain_cq(f->cq); grpc_completion_queue_destroy(f->cq); } /* Creates and returns a grpc_slice containing random alphanumeric characters. */ static grpc_slice generate_random_slice() { size_t i; static const char chars[] = "abcdefghijklmnopqrstuvwxyz1234567890"; char *output; const size_t output_size = 1024 * 1024; output = gpr_malloc(output_size); for (i = 0; i < output_size - 1; ++i) { output[i] = chars[rand() % (int)(sizeof(chars) - 1)]; } output[output_size - 1] = '\0'; grpc_slice out = grpc_slice_from_copied_string(output); gpr_free(output); return out; } static void request_response_with_payload(grpc_end2end_test_config config, grpc_end2end_test_fixture f) { /* Create large request and response bodies. These are big enough to require * multiple round trips to deliver to the peer, and their exact contents of * will be verified on completion. */ grpc_slice request_payload_slice = generate_random_slice(); grpc_slice response_payload_slice = generate_random_slice(); grpc_call *c; grpc_call *s; grpc_byte_buffer *request_payload = grpc_raw_byte_buffer_create(&request_payload_slice, 1); grpc_byte_buffer *response_payload = grpc_raw_byte_buffer_create(&response_payload_slice, 1); gpr_timespec deadline = n_seconds_time(60); cq_verifier *cqv = cq_verifier_create(f.cq); grpc_op ops[6]; grpc_op *op; grpc_metadata_array initial_metadata_recv; grpc_metadata_array trailing_metadata_recv; grpc_metadata_array request_metadata_recv; grpc_byte_buffer *request_payload_recv = NULL; grpc_byte_buffer *response_payload_recv = NULL; grpc_call_details call_details; grpc_status_code status; grpc_call_error error; char *details = NULL; size_t details_capacity = 0; int was_cancelled = 2; c = grpc_channel_create_call( f.client, NULL, GRPC_PROPAGATE_DEFAULTS, f.cq, "/foo", get_host_override_string("foo.test.google.fr:1234", config), deadline, NULL); GPR_ASSERT(c); grpc_metadata_array_init(&initial_metadata_recv); grpc_metadata_array_init(&trailing_metadata_recv); grpc_metadata_array_init(&request_metadata_recv); grpc_call_details_init(&call_details); memset(ops, 0, sizeof(ops)); op = ops; op->op = GRPC_OP_SEND_INITIAL_METADATA; op->data.send_initial_metadata.count = 0; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_SEND_MESSAGE; op->data.send_message = request_payload; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_RECV_INITIAL_METADATA; op->data.recv_initial_metadata = &initial_metadata_recv; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_RECV_MESSAGE; op->data.recv_message = &response_payload_recv; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_RECV_STATUS_ON_CLIENT; op->data.recv_status_on_client.trailing_metadata = &trailing_metadata_recv; op->data.recv_status_on_client.status = &status; op->data.recv_status_on_client.status_details = &details; op->data.recv_status_on_client.status_details_capacity = &details_capacity; op->flags = 0; op->reserved = NULL; op++; error = grpc_call_start_batch(c, ops, (size_t)(op - ops), tag(1), NULL); GPR_ASSERT(GRPC_CALL_OK == error); error = grpc_server_request_call(f.server, &s, &call_details, &request_metadata_recv, f.cq, f.cq, tag(101)); GPR_ASSERT(GRPC_CALL_OK == error); CQ_EXPECT_COMPLETION(cqv, tag(101), 1); cq_verify(cqv); memset(ops, 0, sizeof(ops)); op = ops; op->op = GRPC_OP_SEND_INITIAL_METADATA; op->data.send_initial_metadata.count = 0; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_RECV_MESSAGE; op->data.recv_message = &request_payload_recv; op->flags = 0; op->reserved = NULL; op++; error = grpc_call_start_batch(s, ops, (size_t)(op - ops), tag(102), NULL); GPR_ASSERT(GRPC_CALL_OK == error); CQ_EXPECT_COMPLETION(cqv, tag(102), 1); cq_verify(cqv); memset(ops, 0, sizeof(ops)); op = ops; op->op = GRPC_OP_RECV_CLOSE_ON_SERVER; op->data.recv_close_on_server.cancelled = &was_cancelled; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_SEND_MESSAGE; op->data.send_message = response_payload; op->flags = 0; op->reserved = NULL; op++; op->op = GRPC_OP_SEND_STATUS_FROM_SERVER; op->data.send_status_from_server.trailing_metadata_count = 0; op->data.send_status_from_server.status = GRPC_STATUS_OK; op->data.send_status_from_server.status_details = "xyz"; op->flags = 0; op->reserved = NULL; op++; error = grpc_call_start_batch(s, ops, (size_t)(op - ops), tag(103), NULL); GPR_ASSERT(GRPC_CALL_OK == error); CQ_EXPECT_COMPLETION(cqv, tag(103), 1); CQ_EXPECT_COMPLETION(cqv, tag(1), 1); cq_verify(cqv); GPR_ASSERT(status == GRPC_STATUS_OK); GPR_ASSERT(0 == strcmp(details, "xyz")); GPR_ASSERT(0 == strcmp(call_details.method, "/foo")); validate_host_override_string("foo.test.google.fr:1234", call_details.host, config); GPR_ASSERT(was_cancelled == 0); GPR_ASSERT(byte_buffer_eq_slice(request_payload_recv, request_payload_slice)); GPR_ASSERT( byte_buffer_eq_slice(response_payload_recv, response_payload_slice)); gpr_free(details); grpc_metadata_array_destroy(&initial_metadata_recv); grpc_metadata_array_destroy(&trailing_metadata_recv); grpc_metadata_array_destroy(&request_metadata_recv); grpc_call_details_destroy(&call_details); grpc_call_destroy(c); grpc_call_destroy(s); cq_verifier_destroy(cqv); grpc_byte_buffer_destroy(request_payload); grpc_byte_buffer_destroy(response_payload); grpc_byte_buffer_destroy(request_payload_recv); grpc_byte_buffer_destroy(response_payload_recv); } /* Client sends a request with payload, server reads then returns a response payload and status. */ static void test_invoke_request_response_with_payload( grpc_end2end_test_config config) { grpc_end2end_test_fixture f = begin_test( config, "test_invoke_request_response_with_payload", NULL, NULL); request_response_with_payload(config, f); end_test(&f); config.tear_down_data(&f); } static void test_invoke_10_request_response_with_payload( grpc_end2end_test_config config) { int i; grpc_end2end_test_fixture f = begin_test( config, "test_invoke_10_request_response_with_payload", NULL, NULL); for (i = 0; i < 10; i++) { request_response_with_payload(config, f); } end_test(&f); config.tear_down_data(&f); } void payload(grpc_end2end_test_config config) { test_invoke_request_response_with_payload(config); test_invoke_10_request_response_with_payload(config); } void payload_pre_init(void) {}
Java
/**************************************************************************** * * Copyright (C) 2012-2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name PX4 nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * 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 THE * COPYRIGHT OWNER OR CONTRIBUTORS 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. * ****************************************************************************/ /** * @file test_ppm_loopback.c * Tests the PWM outputs and PPM input */ #include <px4_platform_common/time.h> #include <px4_platform_common/px4_config.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <drivers/drv_pwm_output.h> #include <drivers/drv_rc_input.h> #include <uORB/topics/rc_channels.h> #include <systemlib/err.h> #include "tests_main.h" #include <math.h> #include <float.h> int test_ppm_loopback(int argc, char *argv[]) { int _rc_sub = orb_subscribe(ORB_ID(input_rc)); int servo_fd, result; servo_position_t pos; servo_fd = open(PWM_OUTPUT0_DEVICE_PATH, O_RDWR); if (servo_fd < 0) { printf("failed opening /dev/pwm_servo\n"); } printf("Servo readback, pairs of values should match defaults\n"); unsigned servo_count; result = ioctl(servo_fd, PWM_SERVO_GET_COUNT, (unsigned long)&servo_count); if (result != OK) { warnx("PWM_SERVO_GET_COUNT"); (void)close(servo_fd); return ERROR; } for (unsigned i = 0; i < servo_count; i++) { result = ioctl(servo_fd, PWM_SERVO_GET(i), (unsigned long)&pos); if (result < 0) { printf("failed reading channel %u\n", i); } //printf("%u: %u %u\n", i, pos, data[i]); } // /* tell safety that its ok to disable it with the switch */ // result = ioctl(servo_fd, PWM_SERVO_SET_ARM_OK, 0); // if (result != OK) // warnx("FAIL: PWM_SERVO_SET_ARM_OK"); // tell output device that the system is armed (it will output values if safety is off) // result = ioctl(servo_fd, PWM_SERVO_ARM, 0); // if (result != OK) // warnx("FAIL: PWM_SERVO_ARM"); int pwm_values[] = {1200, 1300, 1900, 1700, 1500, 1250, 1800, 1400}; for (unsigned i = 0; (i < servo_count) && (i < sizeof(pwm_values) / sizeof(pwm_values[0])); i++) { result = ioctl(servo_fd, PWM_SERVO_SET(i), pwm_values[i]); if (result) { (void)close(servo_fd); return ERROR; } else { warnx("channel %d set to %d", i, pwm_values[i]); } } warnx("servo count: %d", servo_count); struct pwm_output_values pwm_out = {.values = {0}, .channel_count = 0}; for (unsigned i = 0; (i < servo_count) && (i < sizeof(pwm_values) / sizeof(pwm_values[0])); i++) { pwm_out.values[i] = pwm_values[i]; //warnx("channel %d: disarmed PWM: %d", i+1, pwm_values[i]); pwm_out.channel_count++; } result = ioctl(servo_fd, PWM_SERVO_SET_DISARMED_PWM, (long unsigned int)&pwm_out); /* give driver 10 ms to propagate */ /* read low-level values from FMU or IO RC inputs (PPM, Spektrum, S.Bus) */ struct input_rc_s rc_input; orb_copy(ORB_ID(input_rc), _rc_sub, &rc_input); px4_usleep(100000); /* open PPM input and expect values close to the output values */ bool rc_updated; orb_check(_rc_sub, &rc_updated); if (rc_updated) { orb_copy(ORB_ID(input_rc), _rc_sub, &rc_input); // int ppm_fd = open(RC_INPUT_DEVICE_PATH, O_RDONLY); // struct input_rc_s rc; // result = read(ppm_fd, &rc, sizeof(rc)); // if (result != sizeof(rc)) { // warnx("Error reading RC output"); // (void)close(servo_fd); // (void)close(ppm_fd); // return ERROR; // } /* go and check values */ for (unsigned i = 0; (i < servo_count) && (i < sizeof(pwm_values) / sizeof(pwm_values[0])); i++) { if (abs(rc_input.values[i] - pwm_values[i]) > 10) { warnx("comparison fail: RC: %d, expected: %d", rc_input.values[i], pwm_values[i]); (void)close(servo_fd); return ERROR; } } } else { warnx("failed reading RC input data"); (void)close(servo_fd); return ERROR; } close(servo_fd); warnx("PPM LOOPBACK TEST PASSED SUCCESSFULLY!"); return 0; }
Java
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * 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. * * Neither the name of Ajax.org B.V. nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * 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 AJAX.ORG B.V. 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. * * ***** END LICENSE BLOCK ***** */ define(function(require, exports, module) { "use strict"; var dom = require("../lib/dom"); var oop = require("../lib/oop"); var lang = require("../lib/lang"); var EventEmitter = require("../lib/event_emitter").EventEmitter; var Gutter = function(parentEl) { this.element = dom.createElement("div"); this.element.className = "ace_layer ace_gutter-layer"; parentEl.appendChild(this.element); this.setShowFoldWidgets(this.$showFoldWidgets); this.gutterWidth = 0; this.$annotations = []; this.$updateAnnotations = this.$updateAnnotations.bind(this); }; (function() { oop.implement(this, EventEmitter); this.setSession = function(session) { if (this.session) this.session.removeEventListener("change", this.$updateAnnotations); this.session = session; session.on("change", this.$updateAnnotations); }; this.addGutterDecoration = function(row, className){ if (window.console) console.warn && console.warn("deprecated use session.addGutterDecoration"); this.session.addGutterDecoration(row, className); }; this.removeGutterDecoration = function(row, className){ if (window.console) console.warn && console.warn("deprecated use session.removeGutterDecoration"); this.session.removeGutterDecoration(row, className); }; this.setAnnotations = function(annotations) { // iterate over sparse array this.$annotations = [] var rowInfo, row; for (var i = 0; i < annotations.length; i++) { var annotation = annotations[i]; var row = annotation.row; var rowInfo = this.$annotations[row]; if (!rowInfo) rowInfo = this.$annotations[row] = {text: []}; var annoText = annotation.text; annoText = annoText ? lang.escapeHTML(annoText) : annotation.html || ""; if (rowInfo.text.indexOf(annoText) === -1) rowInfo.text.push(annoText); var type = annotation.type; if (type == "error") rowInfo.className = " ace_error"; else if (type == "warning" && rowInfo.className != " ace_error") rowInfo.className = " ace_warning"; else if (type == "info" && (!rowInfo.className)) rowInfo.className = " ace_info"; } }; this.$updateAnnotations = function (e) { if (!this.$annotations.length) return; var delta = e.data; var range = delta.range; var firstRow = range.start.row; var len = range.end.row - firstRow; if (len === 0) { // do nothing } else if (delta.action == "removeText" || delta.action == "removeLines") { this.$annotations.splice(firstRow, len + 1, null); } else { var args = Array(len + 1); args.unshift(firstRow, 1); this.$annotations.splice.apply(this.$annotations, args); } }; this.update = function(config) { var emptyAnno = {className: ""}; var html = []; var i = config.firstRow; var lastRow = config.lastRow; var fold = this.session.getNextFoldLine(i); var foldStart = fold ? fold.start.row : Infinity; var foldWidgets = this.$showFoldWidgets && this.session.foldWidgets; var breakpoints = this.session.$breakpoints; var decorations = this.session.$decorations; var firstLineNumber = this.session.$firstLineNumber; var lastLineNumber = 0; while (true) { if(i > foldStart) { i = fold.end.row + 1; fold = this.session.getNextFoldLine(i, fold); foldStart = fold ?fold.start.row :Infinity; } if(i > lastRow) break; var annotation = this.$annotations[i] || emptyAnno; html.push( "<div class='ace_gutter-cell ", breakpoints[i] || "", decorations[i] || "", annotation.className, "' style='height:", this.session.getRowLength(i) * config.lineHeight, "px;'>", lastLineNumber = i + firstLineNumber ); if (foldWidgets) { var c = foldWidgets[i]; // check if cached value is invalidated and we need to recompute if (c == null) c = foldWidgets[i] = this.session.getFoldWidget(i); if (c) html.push( "<span class='ace_fold-widget ace_", c, c == "start" && i == foldStart && i < fold.end.row ? " ace_closed" : " ace_open", "' style='height:", config.lineHeight, "px", "'></span>" ); } html.push("</div>"); i++; } this.element = dom.setInnerHtml(this.element, html.join("")); this.element.style.height = config.minHeight + "px"; if (this.session.$useWrapMode) lastLineNumber = this.session.getLength(); var gutterWidth = ("" + lastLineNumber).length * config.characterWidth; var padding = this.$padding || this.$computePadding(); gutterWidth += padding.left + padding.right; if (gutterWidth !== this.gutterWidth && !isNaN(gutterWidth)) { this.gutterWidth = gutterWidth; this.element.style.width = Math.ceil(this.gutterWidth) + "px"; this._emit("changeGutterWidth", gutterWidth); } }; this.$showFoldWidgets = true; this.setShowFoldWidgets = function(show) { if (show) dom.addCssClass(this.element, "ace_folding-enabled"); else dom.removeCssClass(this.element, "ace_folding-enabled"); this.$showFoldWidgets = show; this.$padding = null; }; this.getShowFoldWidgets = function() { return this.$showFoldWidgets; }; this.$computePadding = function() { if (!this.element.firstChild) return {left: 0, right: 0}; var style = dom.computedStyle(this.element.firstChild); this.$padding = {}; this.$padding.left = parseInt(style.paddingLeft) + 1 || 0; this.$padding.right = parseInt(style.paddingRight) || 0; return this.$padding; }; this.getRegion = function(point) { var padding = this.$padding || this.$computePadding(); var rect = this.element.getBoundingClientRect(); if (point.x < padding.left + rect.left) return "markers"; if (this.$showFoldWidgets && point.x > rect.right - padding.right) return "foldWidgets"; }; }).call(Gutter.prototype); exports.Gutter = Gutter; });
Java
/* * Copyright 2020 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkFont.h" #include "include/core/SkTypeface.h" #include "src/core/SkScalerCache.h" #include "src/core/SkStrikeSpec.h" #include "src/core/SkTaskGroup.h" #include "tests/Test.h" #include "tools/ToolUtils.h" #include <atomic> class Barrier { public: Barrier(int threadCount) : fThreadCount(threadCount) { } void waitForAll() { fThreadCount -= 1; while (fThreadCount > 0) { } } private: std::atomic<int> fThreadCount; }; DEF_TEST(SkScalerCacheMultiThread, Reporter) { sk_sp<SkTypeface> typeface = ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic()); static constexpr int kThreadCount = 4; Barrier barrier{kThreadCount}; SkFont font; font.setEdging(SkFont::Edging::kAntiAlias); font.setSubpixel(true); font.setTypeface(typeface); SkGlyphID glyphs['z']; SkPoint pos['z']; for (int c = ' '; c < 'z'; c++) { glyphs[c] = font.unicharToGlyph(c); pos[c] = {30.0f * c + 30, 30.0f}; } constexpr size_t glyphCount = 'z' - ' '; auto data = SkMakeZip(glyphs, pos).subspan(SkTo<int>(' '), glyphCount); SkPaint defaultPaint; SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( font, defaultPaint, SkSurfaceProps(0, kUnknown_SkPixelGeometry), SkScalerContextFlags::kNone, SkMatrix::I()); // Make our own executor so the --threads parameter doesn't mess things up. auto executor = SkExecutor::MakeFIFOThreadPool(kThreadCount); for (int tries = 0; tries < 100; tries++) { SkScalerContextEffects effects; std::unique_ptr<SkScalerContext> ctx{ typeface->createScalerContext(effects, &strikeSpec.descriptor())}; SkScalerCache scalerCache{strikeSpec.descriptor(), std::move(ctx)}; auto perThread = [&](int threadIndex) { barrier.waitForAll(); auto local = data.subspan(threadIndex * 2, data.size() - kThreadCount * 2); for (int i = 0; i < 100; i++) { SkDrawableGlyphBuffer drawable; SkSourceGlyphBuffer rejects; drawable.ensureSize(glyphCount); rejects.setSource(local); drawable.startBitmapDevice(rejects.source(), {0, 0}, SkMatrix::I(), scalerCache.roundingSpec()); scalerCache.prepareForMaskDrawing(&drawable, &rejects); rejects.flipRejectsToSource(); drawable.reset(); } }; SkTaskGroup(*executor).batch(kThreadCount, perThread); } }
Java
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/fetch/multipart_parser.h" #include "base/cxx17_backports.h" #include "third_party/blink/public/platform/platform.h" #include "third_party/blink/renderer/platform/network/http_names.h" #include "third_party/blink/renderer/platform/network/http_parsers.h" #include "third_party/blink/renderer/platform/wtf/std_lib_extras.h" #include <algorithm> #include <utility> namespace blink { namespace { constexpr char kCloseDelimiterSuffix[] = "--\r\n"; constexpr size_t kCloseDelimiterSuffixSize = base::size(kCloseDelimiterSuffix) - 1u; constexpr size_t kDashBoundaryOffset = 2u; // The length of "\r\n". constexpr char kDelimiterSuffix[] = "\r\n"; constexpr size_t kDelimiterSuffixSize = base::size(kDelimiterSuffix) - 1u; } // namespace MultipartParser::Matcher::Matcher() = default; MultipartParser::Matcher::Matcher(const char* data, size_t num_matched_bytes, size_t size) : data_(data), num_matched_bytes_(num_matched_bytes), size_(size) {} bool MultipartParser::Matcher::Match(const char* first, const char* last) { while (first < last) { if (!Match(*first++)) return false; } return true; } void MultipartParser::Matcher::SetNumMatchedBytes(size_t num_matched_bytes) { DCHECK_LE(num_matched_bytes, size_); num_matched_bytes_ = num_matched_bytes; } MultipartParser::MultipartParser(Vector<char> boundary, Client* client) : client_(client), delimiter_(std::move(boundary)), state_(State::kParsingPreamble) { // The delimiter consists of "\r\n" and a dash boundary which consists of // "--" and a boundary. delimiter_.push_front("\r\n--", 4u); matcher_ = DelimiterMatcher(kDashBoundaryOffset); } bool MultipartParser::AppendData(const char* bytes, size_t size) { DCHECK_NE(State::kFinished, state_); DCHECK_NE(State::kCancelled, state_); const char* const bytes_end = bytes + size; while (bytes < bytes_end) { switch (state_) { case State::kParsingPreamble: // Parse either a preamble and a delimiter or a dash boundary. ParseDelimiter(&bytes, bytes_end); if (!matcher_.IsMatchComplete() && bytes < bytes_end) { // Parse a preamble data (by ignoring it) and then a delimiter. matcher_.SetNumMatchedBytes(0u); ParseDataAndDelimiter(&bytes, bytes_end); } if (matcher_.IsMatchComplete()) { // Prepare for a delimiter suffix. matcher_ = DelimiterSuffixMatcher(); state_ = State::kParsingDelimiterSuffix; } break; case State::kParsingDelimiterSuffix: // Parse transport padding and "\r\n" after a delimiter. // This state can be reached after either a preamble or part // octets are parsed. if (matcher_.NumMatchedBytes() == 0u) ParseTransportPadding(&bytes, bytes_end); while (bytes < bytes_end) { if (!matcher_.Match(*bytes++)) return false; if (matcher_.IsMatchComplete()) { // Prepare for part header fields. state_ = State::kParsingPartHeaderFields; break; } } break; case State::kParsingPartHeaderFields: { // Parse part header fields (which ends with "\r\n") and an empty // line (which also ends with "\r\n"). // This state can be reached after a delimiter and a delimiter // suffix after either a preamble or part octets are parsed. HTTPHeaderMap header_fields; if (ParseHeaderFields(&bytes, bytes_end, &header_fields)) { // Prepare for part octets. matcher_ = DelimiterMatcher(); state_ = State::kParsingPartOctets; client_->PartHeaderFieldsInMultipartReceived(header_fields); } break; } case State::kParsingPartOctets: { // Parse part octets and a delimiter. // This state can be reached only after part header fields are // parsed. const size_t num_initially_matched_bytes = matcher_.NumMatchedBytes(); const char* octets_begin = bytes; ParseDelimiter(&bytes, bytes_end); if (!matcher_.IsMatchComplete() && bytes < bytes_end) { if (matcher_.NumMatchedBytes() >= num_initially_matched_bytes && num_initially_matched_bytes > 0u) { // Since the matched bytes did not form a complete // delimiter, the matched bytes turned out to be octet // bytes instead of being delimiter bytes. Additionally, // some of the matched bytes are from the previous call and // are therefore not in the range [octetsBegin, bytesEnd[. client_->PartDataInMultipartReceived(matcher_.Data(), matcher_.NumMatchedBytes()); if (state_ != State::kParsingPartOctets) break; octets_begin = bytes; } matcher_.SetNumMatchedBytes(0u); ParseDataAndDelimiter(&bytes, bytes_end); const char* const octets_end = bytes - matcher_.NumMatchedBytes(); if (octets_begin < octets_end) { client_->PartDataInMultipartReceived( octets_begin, static_cast<size_t>(octets_end - octets_begin)); if (state_ != State::kParsingPartOctets) break; } } if (matcher_.IsMatchComplete()) { state_ = State::kParsingDelimiterOrCloseDelimiterSuffix; client_->PartDataInMultipartFullyReceived(); } break; } case State::kParsingDelimiterOrCloseDelimiterSuffix: // Determine whether this is a delimiter suffix or a close // delimiter suffix. // This state can be reached only after part octets are parsed. if (*bytes == '-') { // Prepare for a close delimiter suffix. matcher_ = CloseDelimiterSuffixMatcher(); state_ = State::kParsingCloseDelimiterSuffix; } else { // Prepare for a delimiter suffix. matcher_ = DelimiterSuffixMatcher(); state_ = State::kParsingDelimiterSuffix; } break; case State::kParsingCloseDelimiterSuffix: // Parse "--", transport padding and "\r\n" after a delimiter // (a delimiter and "--" constitute a close delimiter). // This state can be reached only after part octets are parsed. for (;;) { if (matcher_.NumMatchedBytes() == 2u) ParseTransportPadding(&bytes, bytes_end); if (bytes >= bytes_end) break; if (!matcher_.Match(*bytes++)) return false; if (matcher_.IsMatchComplete()) { // Prepare for an epilogue. state_ = State::kParsingEpilogue; break; } } break; case State::kParsingEpilogue: // Parse an epilogue (by ignoring it). // This state can be reached only after a delimiter and a close // delimiter suffix after part octets are parsed. return true; case State::kCancelled: case State::kFinished: // The client changed the state. return false; } } DCHECK_EQ(bytes_end, bytes); return true; } void MultipartParser::Cancel() { state_ = State::kCancelled; } bool MultipartParser::Finish() { DCHECK_NE(State::kCancelled, state_); DCHECK_NE(State::kFinished, state_); const State initial_state = state_; state_ = State::kFinished; switch (initial_state) { case State::kParsingPartOctets: if (matcher_.NumMatchedBytes() > 0u) { // Since the matched bytes did not form a complete delimiter, // the matched bytes turned out to be octet bytes instead of being // delimiter bytes. client_->PartDataInMultipartReceived(matcher_.Data(), matcher_.NumMatchedBytes()); } return false; case State::kParsingCloseDelimiterSuffix: // Require a full close delimiter consisting of a delimiter and "--" // but ignore missing or partial "\r\n" after that. return matcher_.NumMatchedBytes() >= 2u; case State::kParsingEpilogue: return true; default: return false; } } MultipartParser::Matcher MultipartParser::CloseDelimiterSuffixMatcher() const { return Matcher(kCloseDelimiterSuffix, 0u, kCloseDelimiterSuffixSize); } MultipartParser::Matcher MultipartParser::DelimiterMatcher( size_t num_already_matched_bytes) const { return Matcher(delimiter_.data(), num_already_matched_bytes, delimiter_.size()); } MultipartParser::Matcher MultipartParser::DelimiterSuffixMatcher() const { return Matcher(kDelimiterSuffix, 0u, kDelimiterSuffixSize); } void MultipartParser::ParseDataAndDelimiter(const char** bytes_pointer, const char* bytes_end) { DCHECK_EQ(0u, matcher_.NumMatchedBytes()); // Search for a complete delimiter within the bytes. const char* delimiter_begin = std::search( *bytes_pointer, bytes_end, delimiter_.begin(), delimiter_.end()); if (delimiter_begin != bytes_end) { // A complete delimiter was found. The bytes before that are octet // bytes. const char* const delimiter_end = delimiter_begin + delimiter_.size(); const bool matched = matcher_.Match(delimiter_begin, delimiter_end); DCHECK(matched); DCHECK(matcher_.IsMatchComplete()); *bytes_pointer = delimiter_end; } else { // Search for a partial delimiter in the end of the bytes. const size_t size = static_cast<size_t>(bytes_end - *bytes_pointer); for (delimiter_begin = bytes_end - std::min(static_cast<size_t>(delimiter_.size() - 1u), size); delimiter_begin < bytes_end; ++delimiter_begin) { if (matcher_.Match(delimiter_begin, bytes_end)) break; matcher_.SetNumMatchedBytes(0u); } // If a partial delimiter was found in the end of bytes, the bytes // before the partial delimiter are definitely octets bytes and // the partial delimiter bytes are buffered for now. // If a partial delimiter was not found in the end of bytes, all bytes // are definitely octets bytes. // In all cases, all bytes are parsed now. *bytes_pointer = bytes_end; } DCHECK(matcher_.IsMatchComplete() || *bytes_pointer == bytes_end); } void MultipartParser::ParseDelimiter(const char** bytes_pointer, const char* bytes_end) { DCHECK(!matcher_.IsMatchComplete()); while (*bytes_pointer < bytes_end && matcher_.Match(*(*bytes_pointer))) { ++(*bytes_pointer); if (matcher_.IsMatchComplete()) break; } } bool MultipartParser::ParseHeaderFields(const char** bytes_pointer, const char* bytes_end, HTTPHeaderMap* header_fields) { // Combine the current bytes with buffered header bytes if needed. const char* header_bytes = *bytes_pointer; if ((bytes_end - *bytes_pointer) > std::numeric_limits<wtf_size_t>::max()) return false; wtf_size_t header_size = static_cast<wtf_size_t>(bytes_end - *bytes_pointer); if (!buffered_header_bytes_.IsEmpty()) { buffered_header_bytes_.Append(header_bytes, header_size); header_bytes = buffered_header_bytes_.data(); header_size = buffered_header_bytes_.size(); } wtf_size_t end = 0u; if (!ParseMultipartFormHeadersFromBody(header_bytes, header_size, header_fields, &end)) { // Store the current header bytes for the next call unless that has // already been done. if (buffered_header_bytes_.IsEmpty()) buffered_header_bytes_.Append(header_bytes, header_size); *bytes_pointer = bytes_end; return false; } buffered_header_bytes_.clear(); *bytes_pointer = bytes_end - (header_size - end); return true; } void MultipartParser::ParseTransportPadding(const char** bytes_pointer, const char* bytes_end) const { while (*bytes_pointer < bytes_end && (*(*bytes_pointer) == '\t' || *(*bytes_pointer) == ' ')) ++(*bytes_pointer); } void MultipartParser::Trace(Visitor* visitor) const { visitor->Trace(client_); } } // namespace blink
Java
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const chalk = require("chalk"); const cli_utils_1 = require("@ionic/cli-utils"); const command_1 = require("@ionic/cli-utils/lib/command"); const validators_1 = require("@ionic/cli-utils/lib/validators"); const common_1 = require("./common"); let PackageBuildCommand = class PackageBuildCommand extends command_1.Command { preRun(inputs, options) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const { PackageClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/package'); }); const { SecurityClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/security'); }); const token = yield this.env.session.getAppUserToken(); const pkg = new PackageClient(token, this.env.client); const sec = new SecurityClient(token, this.env.client); if (!inputs[0]) { const platform = yield this.env.prompt({ type: 'list', name: 'platform', message: 'What platform would you like to target:', choices: ['ios', 'android'], }); inputs[0] = platform; } if (!options['profile'] && (inputs[0] === 'ios' || (inputs[0] === 'android' && options['release']))) { this.env.tasks.next(`Build requires security profile, but ${chalk.green('--profile')} was not provided. Looking up your profiles`); const allProfiles = yield sec.getProfiles({}); this.env.tasks.end(); const desiredProfileType = options['release'] ? 'production' : 'development'; const profiles = allProfiles.filter(p => p.type === desiredProfileType); if (profiles.length === 0) { this.env.log.error(`Sorry--a valid ${chalk.bold(desiredProfileType)} security profile is required for ${pkg.formatPlatform(inputs[0])} ${options['release'] ? 'release' : 'debug'} builds.`); return 1; } if (profiles.length === 1) { this.env.log.warn(`Attempting to use ${chalk.bold(profiles[0].tag)} (${chalk.bold(profiles[0].name)}), as it is your only ${chalk.bold(desiredProfileType)} security profile.`); options['profile'] = profiles[0].tag; } else { const profile = yield this.env.prompt({ type: 'list', name: 'profile', message: 'Please choose a security profile to use with this build', choices: profiles.map(p => ({ name: p.name, short: p.name, value: p.tag, })), }); options['profile'] = profile; } } }); } run(inputs, options) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const { upload } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/upload'); }); const { DeployClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/deploy'); }); const { PackageClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/package'); }); const { SecurityClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/security'); }); const { filterOptionsByIntent } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/utils/command'); }); const { createArchive } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/utils/archive'); }); let [platform] = inputs; let { prod, release, profile, note } = options; if (typeof note !== 'string') { note = 'Ionic Package Upload'; } const project = yield this.env.project.load(); const token = yield this.env.session.getAppUserToken(); const deploy = new DeployClient(token, this.env.client); const sec = new SecurityClient(token, this.env.client); const pkg = new PackageClient(token, this.env.client); if (typeof profile === 'string') { this.env.tasks.next(`Retrieving security profile ${chalk.bold(profile)}`); const p = yield sec.getProfile(profile.toLowerCase()); // TODO: gracefully handle 404 this.env.tasks.end(); if (!p.credentials[platform]) { this.env.log.error(`Profile ${chalk.bold(p.tag)} (${chalk.bold(p.name)}) was found, but didn't have credentials for ${pkg.formatPlatform(platform)}.`); // TODO: link to docs return 1; } if (release && p.type !== 'production') { this.env.log.error(`Profile ${chalk.bold(p.tag)} (${chalk.bold(p.name)}) is a ${chalk.bold(p.type)} profile, which won't work for release builds.\n` + `Please use a production security profile.`); // TODO: link to docs return 1; } } if (project.type === 'ionic-angular' && release && !prod) { this.env.log.warn(`We recommend using ${chalk.green('--prod')} for production builds when using ${chalk.green('--release')}.`); } this.env.tasks.end(); const { build } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/commands/build'); }); yield build(this.env, inputs, filterOptionsByIntent(this.metadata, options, 'app-scripts')); const snapshotRequest = yield upload(this.env, { note }); this.env.tasks.next('Requesting project upload'); const uploadTask = this.env.tasks.next('Uploading project'); const proj = yield pkg.requestProjectUpload(); const zip = createArchive('zip'); zip.file('package.json', {}); zip.file('config.xml', {}); zip.directory('resources', {}); zip.finalize(); yield pkg.uploadProject(proj, zip, { progress: (loaded, total) => { uploadTask.progress(loaded, total); } }); this.env.tasks.next('Queuing build'); const snapshot = yield deploy.getSnapshot(snapshotRequest.uuid, {}); const packageBuild = yield pkg.queueBuild({ platform, mode: release ? 'release' : 'debug', zipUrl: snapshot.url, projectId: proj.id, profileTag: typeof profile === 'string' ? profile : undefined, }); this.env.tasks.end(); this.env.log.ok(`Build ${packageBuild.id} has been submitted!`); }); } }; PackageBuildCommand = tslib_1.__decorate([ command_1.CommandMetadata({ name: 'build', type: 'project', backends: [cli_utils_1.BACKEND_LEGACY], deprecated: true, description: 'Start a package build', longDescription: ` ${chalk.bold.yellow('WARNING')}: ${common_1.DEPRECATION_NOTICE} Ionic Package makes it easy to build a native binary of your app in the cloud. Full documentation can be found here: ${chalk.bold('https://docs.ionic.io/services/package/')} `, exampleCommands: ['android', 'ios --profile=dev', 'android --profile=prod --release --prod'], inputs: [ { name: 'platform', description: `The platform to target: ${chalk.green('ios')}, ${chalk.green('android')}`, validators: [validators_1.contains(['ios', 'android'], {})], }, ], options: [ { name: 'prod', description: 'Mark as a production build', type: Boolean, intent: 'app-scripts', }, { name: 'release', description: 'Mark as a release build', type: Boolean, }, { name: 'profile', description: 'The security profile to use with this build', type: String, aliases: ['p'], }, { name: 'note', description: 'Give the package snapshot a note', }, ], }) ], PackageBuildCommand); exports.PackageBuildCommand = PackageBuildCommand;
Java
/**************************************************************************** * * Copyright (C) 2012 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name PX4 nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * 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 THE * COPYRIGHT OWNER OR CONTRIBUTORS 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. * ****************************************************************************/ /** * @file blocks.h * * Controller library code */ #pragma once #include <px4_platform_common/defines.h> #include <assert.h> #include <time.h> #include <stdlib.h> #include <math.h> #include <mathlib/math/test/test.hpp> #include <mathlib/math/filter/LowPassFilter2p.hpp> #include "block/Block.hpp" #include "block/BlockParam.hpp" #include "matrix/math.hpp" namespace control { template<class Type, size_t M> class __EXPORT BlockLowPassVector: public Block { public: // methods BlockLowPassVector(SuperBlock *parent, const char *name) : Block(parent, name), _state(), _fCut(this, "") // only one parameter, no need to name { for (size_t i = 0; i < M; i++) { _state(i) = 0.0f / 0.0f; } } virtual ~BlockLowPassVector() = default; matrix::Vector<Type, M> update(const matrix::Matrix<Type, M, 1> &input) { for (size_t i = 0; i < M; i++) { if (!PX4_ISFINITE(getState()(i))) { setState(input); } } float b = 2 * float(M_PI) * getFCut() * getDt(); float a = b / (1 + b); setState(input * a + getState() * (1 - a)); return getState(); } // accessors matrix::Vector<Type, M> getState() { return _state; } float getFCut() { return _fCut.get(); } void setState(const matrix::Vector<Type, M> &state) { _state = state; } private: // attributes matrix::Vector<Type, M> _state; control::BlockParamFloat _fCut; }; } // namespace control
Java
//===- PDBExtras.h - helper functions and classes for PDBs ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBEXTRAS_H #define LLVM_DEBUGINFO_PDB_PDBEXTRAS_H #include "llvm/DebugInfo/CodeView/CodeView.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include <unordered_map> namespace llvm { class raw_ostream; namespace pdb { using TagStats = std::unordered_map<PDB_SymType, int>; raw_ostream &operator<<(raw_ostream &OS, const PDB_VariantType &Value); raw_ostream &operator<<(raw_ostream &OS, const PDB_CallingConv &Conv); raw_ostream &operator<<(raw_ostream &OS, const PDB_DataKind &Data); raw_ostream &operator<<(raw_ostream &OS, const codeview::RegisterId &Reg); raw_ostream &operator<<(raw_ostream &OS, const PDB_LocType &Loc); raw_ostream &operator<<(raw_ostream &OS, const codeview::ThunkOrdinal &Thunk); raw_ostream &operator<<(raw_ostream &OS, const PDB_Checksum &Checksum); raw_ostream &operator<<(raw_ostream &OS, const PDB_Lang &Lang); raw_ostream &operator<<(raw_ostream &OS, const PDB_SymType &Tag); raw_ostream &operator<<(raw_ostream &OS, const PDB_MemberAccess &Access); raw_ostream &operator<<(raw_ostream &OS, const PDB_UdtType &Type); raw_ostream &operator<<(raw_ostream &OS, const PDB_Machine &Machine); raw_ostream &operator<<(raw_ostream &OS, const PDB_SourceCompression &Compression); raw_ostream &operator<<(raw_ostream &OS, const Variant &Value); raw_ostream &operator<<(raw_ostream &OS, const VersionInfo &Version); raw_ostream &operator<<(raw_ostream &OS, const TagStats &Stats); } // end namespace pdb } // end namespace llvm #endif // LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
Java
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * import versioneer __author__ = 'Chia-Jung, Yang' __email__ = '[email protected]' __version__ = versioneer.get_version() from ._version import get_versions __version__ = get_versions()['version'] del get_versions
Java
<?php /* Prototype : string basename(string path [, string suffix]) * Description: Returns the filename component of the path * Source code: ext/standard/string.c * Alias to functions: */ echo "*** Testing basename() : usage variation ***\n"; // Define error handler function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { if (error_reporting() != 0) { // report non-silenced errors echo "Error: $err_no - $err_msg, $filename($linenum)\n"; } } set_error_handler('test_error_handler'); //get an unset variable $unset_var = 10; unset ($unset_var); // define some classes class classWithToString { public function __toString() { return "Class A object"; } } class classWithoutToString { } // heredoc string $heredoc = <<<EOT hello world EOT; // add arrays $index_array = array (1, 2, 3); $assoc_array = array ('one' => 1, 'two' => 2); //array of values to iterate over $inputs = array( // int data 'int 0' => 0, 'int 1' => 1, 'int 12345' => 12345, 'int -12345' => -2345, // float data 'float 10.5' => 10.5, 'float -10.5' => -10.5, 'float 12.3456789000e10' => 12.3456789000e10, 'float -12.3456789000e10' => -12.3456789000e10, 'float .5' => .5, // array data 'empty array' => array(), 'int indexed array' => $index_array, 'associative array' => $assoc_array, 'nested arrays' => array('foo', $index_array, $assoc_array), // null data 'uppercase NULL' => NULL, 'lowercase null' => null, // boolean data 'lowercase true' => true, 'lowercase false' =>false, 'uppercase TRUE' =>TRUE, 'uppercase FALSE' =>FALSE, // empty data 'empty string DQ' => "", 'empty string SQ' => '', // object data 'instance of classWithToString' => new classWithToString(), 'instance of classWithoutToString' => new classWithoutToString(), // undefined data 'undefined var' => @$undefined_var, // unset data 'unset var' => @$unset_var, ); // loop through each element of the array for path foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( basename($value) ); }; ?> ===DONE===
Java
#!/bin/sh bindir=/usr/bin sbindir=/usr/bin libdir=/usr/lib [ -n "$gearman_db_type" ] && db_type=$gearman_db_type if [ "$db_type" = "mysql" ]; then persistence="-q libdrizzle --libdrizzle-user=%{gearman.db_user} --libdrizzle-password=\\\"\$(pw=\\\"%{gearman.db_pass}\\\" && [ \\\"\${pw:0:8}\\\" = \\\"keydb://\\\" ] && keydbgetkey \${pw:8} || echo -n \$pw)\\\" --libdrizzle-db=%{gearman.db_name} --libdrizzle-host=%{gearman.db_host} --libdrizzle-port=%{gearman.db_port} \$([ -n \\\"%{gearman.db_sock}\\\" ] && echo \\\"--libdrizzle-uds=%{gearman.db_sock}\\\") --libdrizzle-table=%{gearman.db_table} --libdrizzle-mysql" else persistence="-q libsqlite3 --libsqlite3-table=%{gearman.db_table} --libsqlite3-db=%{gearman.db_name}" fi [ -n "$async_workers" ] || async_workers=2 [ -n "$sync_workers" ] || sync_workers=10 [ -n "$exception_stack_trace" ] || exception_stack_trace=1 ENV="" case $exception_stack_trace in yes|true|on|1) ENV="$ENV GEARBOX_STACK_TRACE=1";; esac cat <<EOF { "component" : "gearbox", "config_dir" : "$ROOT/conf/gearbox/mock-config.d", "daemons" : [{ "name" : "gearmand", "logname" : "%{name}", "command" : "$ENV $sbindir/gearmand -v $persistence --user=%{gearbox.user} --listen=localhost --port=%{gearman.port} --time-order" }, { "name" : "sync-worker", "logname": "%{component}", "command" : "$ENV $bindir/workerGearbox --config $ROOT/conf/gearbox/mock-gearbox.conf --no-async --max-requests=5000", "count" : $sync_workers, "user" : "%{gearbox.user}" }, { "name" : "async-worker", "logname": "%{component}", "command" : "$ENV $bindir/workerGearbox --config $ROOT/conf/gearbox/mock-gearbox.conf --no-sync --max-requests=5000", "count" : $async_workers, "user" : "%{gearbox.user}" }, { "name" : "delay", "logname": "%{name}", "command" : "$ENV $bindir/delayDaemon --config $ROOT/conf/gearbox/mock-gearbox.conf", "count" : 1, "user" : "%{gearbox.user}" }] } EOF
Java
define( [ { "value": 40, "name": "Accessibility", "path": "Accessibility" }, { "value": 180, "name": "Accounts", "path": "Accounts", "children": [ { "value": 76, "name": "Access", "path": "Accounts/Access", "children": [ { "value": 12, "name": "DefaultAccessPlugin.bundle", "path": "Accounts/Access/DefaultAccessPlugin.bundle" }, { "value": 28, "name": "FacebookAccessPlugin.bundle", "path": "Accounts/Access/FacebookAccessPlugin.bundle" }, { "value": 20, "name": "LinkedInAccessPlugin.bundle", "path": "Accounts/Access/LinkedInAccessPlugin.bundle" }, { "value": 16, "name": "TencentWeiboAccessPlugin.bundle", "path": "Accounts/Access/TencentWeiboAccessPlugin.bundle" } ] }, { "value": 92, "name": "Authentication", "path": "Accounts/Authentication", "children": [ { "value": 24, "name": "FacebookAuthenticationPlugin.bundle", "path": "Accounts/Authentication/FacebookAuthenticationPlugin.bundle" }, { "value": 16, "name": "LinkedInAuthenticationPlugin.bundle", "path": "Accounts/Authentication/LinkedInAuthenticationPlugin.bundle" }, { "value": 20, "name": "TencentWeiboAuthenticationPlugin.bundle", "path": "Accounts/Authentication/TencentWeiboAuthenticationPlugin.bundle" }, { "value": 16, "name": "TwitterAuthenticationPlugin.bundle", "path": "Accounts/Authentication/TwitterAuthenticationPlugin.bundle" }, { "value": 16, "name": "WeiboAuthenticationPlugin.bundle", "path": "Accounts/Authentication/WeiboAuthenticationPlugin.bundle" } ] }, { "value": 12, "name": "Notification", "path": "Accounts/Notification", "children": [ { "value": 12, "name": "SPAAccountsNotificationPlugin.bundle", "path": "Accounts/Notification/SPAAccountsNotificationPlugin.bundle" } ] } ] }, { "value": 1904, "name": "AddressBook Plug-Ins", "path": "AddressBook Plug-Ins", "children": [ { "value": 744, "name": "CardDAVPlugin.sourcebundle", "path": "AddressBook Plug-Ins/CardDAVPlugin.sourcebundle", "children": [ { "value": 744, "name": "Contents", "path": "AddressBook Plug-Ins/CardDAVPlugin.sourcebundle/Contents" } ] }, { "value": 28, "name": "DirectoryServices.sourcebundle", "path": "AddressBook Plug-Ins/DirectoryServices.sourcebundle", "children": [ { "value": 28, "name": "Contents", "path": "AddressBook Plug-Ins/DirectoryServices.sourcebundle/Contents" } ] }, { "value": 680, "name": "Exchange.sourcebundle", "path": "AddressBook Plug-Ins/Exchange.sourcebundle", "children": [ { "value": 680, "name": "Contents", "path": "AddressBook Plug-Ins/Exchange.sourcebundle/Contents" } ] }, { "value": 432, "name": "LDAP.sourcebundle", "path": "AddressBook Plug-Ins/LDAP.sourcebundle", "children": [ { "value": 432, "name": "Contents", "path": "AddressBook Plug-Ins/LDAP.sourcebundle/Contents" } ] }, { "value": 20, "name": "LocalSource.sourcebundle", "path": "AddressBook Plug-Ins/LocalSource.sourcebundle", "children": [ { "value": 20, "name": "Contents", "path": "AddressBook Plug-Ins/LocalSource.sourcebundle/Contents" } ] } ] }, { "value": 36, "name": "Assistant", "path": "Assistant", "children": [ { "value": 36, "name": "Plugins", "path": "Assistant/Plugins", "children": [ { "value": 36, "name": "AddressBook.assistantBundle", "path": "Assistant/Plugins/AddressBook.assistantBundle" }, { "value": 8, "name": "GenericAddressHandler.addresshandler", "path": "Recents/Plugins/GenericAddressHandler.addresshandler" }, { "value": 12, "name": "MapsRecents.addresshandler", "path": "Recents/Plugins/MapsRecents.addresshandler" } ] } ] }, { "value": 53228, "name": "Automator", "path": "Automator", "children": [ { "value": 0, "name": "ActivateFonts.action", "path": "Automator/ActivateFonts.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/ActivateFonts.action/Contents" } ] }, { "value": 12, "name": "AddAttachments to Front Message.action", "path": "Automator/AddAttachments to Front Message.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddAttachments to Front Message.action/Contents" } ] }, { "value": 276, "name": "AddColor Profile.action", "path": "Automator/AddColor Profile.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/AddColor Profile.action/Contents" } ] }, { "value": 32, "name": "AddGrid to PDF Documents.action", "path": "Automator/AddGrid to PDF Documents.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/AddGrid to PDF Documents.action/Contents" } ] }, { "value": 12, "name": "AddMovie to iDVD Menu.action", "path": "Automator/AddMovie to iDVD Menu.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddMovie to iDVD Menu.action/Contents" } ] }, { "value": 20, "name": "AddPhotos to Album.action", "path": "Automator/AddPhotos to Album.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/AddPhotos to Album.action/Contents" } ] }, { "value": 12, "name": "AddSongs to iPod.action", "path": "Automator/AddSongs to iPod.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddSongs to iPod.action/Contents" } ] }, { "value": 44, "name": "AddSongs to Playlist.action", "path": "Automator/AddSongs to Playlist.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/AddSongs to Playlist.action/Contents" } ] }, { "value": 12, "name": "AddThumbnail Icon to Image Files.action", "path": "Automator/AddThumbnail Icon to Image Files.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddThumbnail Icon to Image Files.action/Contents" } ] }, { "value": 268, "name": "Addto Font Library.action", "path": "Automator/Addto Font Library.action", "children": [ { "value": 268, "name": "Contents", "path": "Automator/Addto Font Library.action/Contents" } ] }, { "value": 0, "name": "AddressBook.definition", "path": "Automator/AddressBook.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/AddressBook.definition/Contents" } ] }, { "value": 408, "name": "AppleVersioning Tool.action", "path": "Automator/AppleVersioning Tool.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/AppleVersioning Tool.action/Contents" } ] }, { "value": 568, "name": "ApplyColorSync Profile to Images.action", "path": "Automator/ApplyColorSync Profile to Images.action", "children": [ { "value": 568, "name": "Contents", "path": "Automator/ApplyColorSync Profile to Images.action/Contents" } ] }, { "value": 348, "name": "ApplyQuartz Composition Filter to Image Files.action", "path": "Automator/ApplyQuartz Composition Filter to Image Files.action", "children": [ { "value": 348, "name": "Contents", "path": "Automator/ApplyQuartz Composition Filter to Image Files.action/Contents" } ] }, { "value": 368, "name": "ApplyQuartz Filter to PDF Documents.action", "path": "Automator/ApplyQuartz Filter to PDF Documents.action", "children": [ { "value": 368, "name": "Contents", "path": "Automator/ApplyQuartz Filter to PDF Documents.action/Contents" } ] }, { "value": 96, "name": "ApplySQL.action", "path": "Automator/ApplySQL.action", "children": [ { "value": 96, "name": "Contents", "path": "Automator/ApplySQL.action/Contents" } ] }, { "value": 372, "name": "Askfor Confirmation.action", "path": "Automator/Askfor Confirmation.action", "children": [ { "value": 372, "name": "Contents", "path": "Automator/Askfor Confirmation.action/Contents" } ] }, { "value": 104, "name": "Askfor Finder Items.action", "path": "Automator/Askfor Finder Items.action", "children": [ { "value": 104, "name": "Contents", "path": "Automator/Askfor Finder Items.action/Contents" } ] }, { "value": 52, "name": "Askfor Movies.action", "path": "Automator/Askfor Movies.action", "children": [ { "value": 52, "name": "Contents", "path": "Automator/Askfor Movies.action/Contents" } ] }, { "value": 44, "name": "Askfor Photos.action", "path": "Automator/Askfor Photos.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/Askfor Photos.action/Contents" } ] }, { "value": 16, "name": "Askfor Servers.action", "path": "Automator/Askfor Servers.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/Askfor Servers.action/Contents" } ] }, { "value": 52, "name": "Askfor Songs.action", "path": "Automator/Askfor Songs.action", "children": [ { "value": 52, "name": "Contents", "path": "Automator/Askfor Songs.action/Contents" } ] }, { "value": 288, "name": "Askfor Text.action", "path": "Automator/Askfor Text.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/Askfor Text.action/Contents" } ] }, { "value": 0, "name": "Automator.definition", "path": "Automator/Automator.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/Automator.definition/Contents" } ] }, { "value": 12, "name": "BrowseMovies.action", "path": "Automator/BrowseMovies.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/BrowseMovies.action/Contents" } ] }, { "value": 552, "name": "BuildXcode Project.action", "path": "Automator/BuildXcode Project.action", "children": [ { "value": 552, "name": "Contents", "path": "Automator/BuildXcode Project.action/Contents" } ] }, { "value": 296, "name": "BurnA Disc.action", "path": "Automator/BurnA Disc.action", "children": [ { "value": 296, "name": "Contents", "path": "Automator/BurnA Disc.action/Contents" } ] }, { "value": 8, "name": "ChangeCase of Song Names.action", "path": "Automator/ChangeCase of Song Names.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ChangeCase of Song Names.action/Contents" } ] }, { "value": 60, "name": "ChangeType of Images.action", "path": "Automator/ChangeType of Images.action", "children": [ { "value": 60, "name": "Contents", "path": "Automator/ChangeType of Images.action/Contents" } ] }, { "value": 24, "name": "Choosefrom List.action", "path": "Automator/Choosefrom List.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/Choosefrom List.action/Contents" } ] }, { "value": 12, "name": "CombineMail Messages.action", "path": "Automator/CombineMail Messages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/CombineMail Messages.action/Contents" } ] }, { "value": 24, "name": "CombinePDF Pages.action", "path": "Automator/CombinePDF Pages.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CombinePDF Pages.action/Contents" } ] }, { "value": 12, "name": "CombineText Files.action", "path": "Automator/CombineText Files.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/CombineText Files.action/Contents" } ] }, { "value": 24, "name": "CompressImages in PDF Documents.action", "path": "Automator/CompressImages in PDF Documents.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CompressImages in PDF Documents.action/Contents" } ] }, { "value": 8, "name": "Connectto Servers.action", "path": "Automator/Connectto Servers.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/Connectto Servers.action/Contents" } ] }, { "value": 8, "name": "ConvertAccount object to Mailbox object.caction", "path": "Automator/ConvertAccount object to Mailbox object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAccount object to Mailbox object.caction/Contents" } ] }, { "value": 8, "name": "ConvertAlbum object to Photo object.caction", "path": "Automator/ConvertAlbum object to Photo object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAlbum object to Photo object.caction/Contents" } ] }, { "value": 8, "name": "ConvertAlias object to Finder object.caction", "path": "Automator/ConvertAlias object to Finder object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAlias object to Finder object.caction/Contents" } ] }, { "value": 8, "name": "ConvertAlias object to iPhoto photo object.caction", "path": "Automator/ConvertAlias object to iPhoto photo object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAlias object to iPhoto photo object.caction/Contents" } ] }, { "value": 8, "name": "ConvertCalendar object to Event object.caction", "path": "Automator/ConvertCalendar object to Event object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCalendar object to Event object.caction/Contents" } ] }, { "value": 8, "name": "ConvertCalendar object to Reminders object.caction", "path": "Automator/ConvertCalendar object to Reminders object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCalendar object to Reminders object.caction/Contents" } ] }, { "value": 8, "name": "ConvertCocoa Data To Cocoa String.caction", "path": "Automator/ConvertCocoa Data To Cocoa String.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCocoa Data To Cocoa String.caction/Contents" } ] }, { "value": 8, "name": "ConvertCocoa String To Cocoa Data.caction", "path": "Automator/ConvertCocoa String To Cocoa Data.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCocoa String To Cocoa Data.caction/Contents" } ] }, { "value": 12, "name": "ConvertCocoa URL to iTunes Track Object.caction", "path": "Automator/ConvertCocoa URL to iTunes Track Object.caction", "children": [ { "value": 12, "name": "Contents", "path": "Automator/ConvertCocoa URL to iTunes Track Object.caction/Contents" } ] }, { "value": 12, "name": "ConvertCocoa URL to RSS Feed.caction", "path": "Automator/ConvertCocoa URL to RSS Feed.caction", "children": [ { "value": 12, "name": "Contents", "path": "Automator/ConvertCocoa URL to RSS Feed.caction/Contents" } ] }, { "value": 40, "name": "ConvertCSV to SQL.action", "path": "Automator/ConvertCSV to SQL.action", "children": [ { "value": 40, "name": "Contents", "path": "Automator/ConvertCSV to SQL.action/Contents" } ] }, { "value": 8, "name": "ConvertFeeds to Articles.caction", "path": "Automator/ConvertFeeds to Articles.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertFeeds to Articles.caction/Contents" } ] }, { "value": 8, "name": "ConvertFinder object to Alias object.caction", "path": "Automator/ConvertFinder object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertFinder object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertGroup object to Person object.caction", "path": "Automator/ConvertGroup object to Person object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertGroup object to Person object.caction/Contents" } ] }, { "value": 8, "name": "ConvertiPhoto Album to Alias object.caction", "path": "Automator/ConvertiPhoto Album to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertiPhoto Album to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertiTunes object to Alias object.caction", "path": "Automator/ConvertiTunes object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertiTunes object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertiTunes Playlist object to Alias object.caction", "path": "Automator/ConvertiTunes Playlist object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertiTunes Playlist object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertMailbox object to Message object.caction", "path": "Automator/ConvertMailbox object to Message object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertMailbox object to Message object.caction/Contents" } ] }, { "value": 8, "name": "ConvertPhoto object to Alias object.caction", "path": "Automator/ConvertPhoto object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertPhoto object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertPlaylist object to Song object.caction", "path": "Automator/ConvertPlaylist object to Song object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertPlaylist object to Song object.caction/Contents" } ] }, { "value": 2760, "name": "ConvertQuartz Compositions to QuickTime Movies.action", "path": "Automator/ConvertQuartz Compositions to QuickTime Movies.action", "children": [ { "value": 2760, "name": "Contents", "path": "Automator/ConvertQuartz Compositions to QuickTime Movies.action/Contents" } ] }, { "value": 8, "name": "ConvertSource object to Playlist object.caction", "path": "Automator/ConvertSource object to Playlist object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertSource object to Playlist object.caction/Contents" } ] }, { "value": 96, "name": "CopyFinder Items.action", "path": "Automator/CopyFinder Items.action", "children": [ { "value": 96, "name": "Contents", "path": "Automator/CopyFinder Items.action/Contents" } ] }, { "value": 8, "name": "Copyto Clipboard.action", "path": "Automator/Copyto Clipboard.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/Copyto Clipboard.action/Contents" } ] }, { "value": 72, "name": "CreateAnnotated Movie File.action", "path": "Automator/CreateAnnotated Movie File.action", "children": [ { "value": 72, "name": "Contents", "path": "Automator/CreateAnnotated Movie File.action/Contents" } ] }, { "value": 96, "name": "CreateArchive.action", "path": "Automator/CreateArchive.action", "children": [ { "value": 96, "name": "Contents", "path": "Automator/CreateArchive.action/Contents" } ] }, { "value": 412, "name": "CreateBanner Image from Text.action", "path": "Automator/CreateBanner Image from Text.action", "children": [ { "value": 412, "name": "Contents", "path": "Automator/CreateBanner Image from Text.action/Contents" } ] }, { "value": 392, "name": "CreatePackage.action", "path": "Automator/CreatePackage.action", "children": [ { "value": 392, "name": "Contents", "path": "Automator/CreatePackage.action/Contents" } ] }, { "value": 208, "name": "CreateThumbnail Images.action", "path": "Automator/CreateThumbnail Images.action", "children": [ { "value": 208, "name": "Contents", "path": "Automator/CreateThumbnail Images.action/Contents" } ] }, { "value": 712, "name": "CropImages.action", "path": "Automator/CropImages.action", "children": [ { "value": 712, "name": "Contents", "path": "Automator/CropImages.action/Contents" } ] }, { "value": 8, "name": "CVSAdd.action", "path": "Automator/CVSAdd.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/CVSAdd.action/Contents" } ] }, { "value": 24, "name": "CVSCheckout.action", "path": "Automator/CVSCheckout.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CVSCheckout.action/Contents" } ] }, { "value": 24, "name": "CVSCommit.action", "path": "Automator/CVSCommit.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CVSCommit.action/Contents" } ] }, { "value": 276, "name": "CVSUpdate.action", "path": "Automator/CVSUpdate.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/CVSUpdate.action/Contents" } ] }, { "value": 0, "name": "DeactivateFonts.action", "path": "Automator/DeactivateFonts.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/DeactivateFonts.action/Contents" } ] }, { "value": 12, "name": "DeleteAll iPod Notes.action", "path": "Automator/DeleteAll iPod Notes.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/DeleteAll iPod Notes.action/Contents" } ] }, { "value": 32, "name": "DeleteCalendar Events.action", "path": "Automator/DeleteCalendar Events.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/DeleteCalendar Events.action/Contents" } ] }, { "value": 8, "name": "DeleteCalendar Items.action", "path": "Automator/DeleteCalendar Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DeleteCalendar Items.action/Contents" } ] }, { "value": 8, "name": "DeleteCalendars.action", "path": "Automator/DeleteCalendars.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DeleteCalendars.action/Contents" } ] }, { "value": 8, "name": "DeleteReminders.action", "path": "Automator/DeleteReminders.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DeleteReminders.action/Contents" } ] }, { "value": 12, "name": "DisplayMail Messages.action", "path": "Automator/DisplayMail Messages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/DisplayMail Messages.action/Contents" } ] }, { "value": 16, "name": "DisplayNotification.action", "path": "Automator/DisplayNotification.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/DisplayNotification.action/Contents" } ] }, { "value": 8, "name": "DisplayWebpages 2.action", "path": "Automator/DisplayWebpages 2.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DisplayWebpages 2.action/Contents" } ] }, { "value": 12, "name": "DisplayWebpages.action", "path": "Automator/DisplayWebpages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/DisplayWebpages.action/Contents" } ] }, { "value": 276, "name": "DownloadPictures.action", "path": "Automator/DownloadPictures.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/DownloadPictures.action/Contents" } ] }, { "value": 24, "name": "DownloadURLs.action", "path": "Automator/DownloadURLs.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/DownloadURLs.action/Contents" } ] }, { "value": 8, "name": "DuplicateFinder Items.action", "path": "Automator/DuplicateFinder Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DuplicateFinder Items.action/Contents" } ] }, { "value": 8, "name": "EjectDisk.action", "path": "Automator/EjectDisk.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/EjectDisk.action/Contents" } ] }, { "value": 12, "name": "EjectiPod.action", "path": "Automator/EjectiPod.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/EjectiPod.action/Contents" } ] }, { "value": 276, "name": "Enableor Disable Tracks.action", "path": "Automator/Enableor Disable Tracks.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/Enableor Disable Tracks.action/Contents" } ] }, { "value": 464, "name": "EncodeMedia.action", "path": "Automator/EncodeMedia.action", "children": [ { "value": 464, "name": "Contents", "path": "Automator/EncodeMedia.action/Contents" } ] }, { "value": 80, "name": "Encodeto MPEG Audio.action", "path": "Automator/Encodeto MPEG Audio.action", "children": [ { "value": 80, "name": "Contents", "path": "Automator/Encodeto MPEG Audio.action/Contents" } ] }, { "value": 24, "name": "EncryptPDF Documents.action", "path": "Automator/EncryptPDF Documents.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/EncryptPDF Documents.action/Contents" } ] }, { "value": 12, "name": "EventSummary.action", "path": "Automator/EventSummary.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/EventSummary.action/Contents" } ] }, { "value": 24, "name": "ExecuteSQL.action", "path": "Automator/ExecuteSQL.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ExecuteSQL.action/Contents" } ] }, { "value": 264, "name": "ExportFont Files.action", "path": "Automator/ExportFont Files.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/ExportFont Files.action/Contents" } ] }, { "value": 24, "name": "ExportMovies for iPod.action", "path": "Automator/ExportMovies for iPod.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ExportMovies for iPod.action/Contents" } ] }, { "value": 44, "name": "ExportvCards.action", "path": "Automator/ExportvCards.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/ExportvCards.action/Contents" } ] }, { "value": 12, "name": "ExtractData from Text.action", "path": "Automator/ExtractData from Text.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/ExtractData from Text.action/Contents" } ] }, { "value": 24, "name": "ExtractOdd & Even Pages.action", "path": "Automator/ExtractOdd & Even Pages.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ExtractOdd & Even Pages.action/Contents" } ] }, { "value": 276, "name": "ExtractPDF Annotations.action", "path": "Automator/ExtractPDF Annotations.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/ExtractPDF Annotations.action/Contents" } ] }, { "value": 2620, "name": "ExtractPDF Text.action", "path": "Automator/ExtractPDF Text.action", "children": [ { "value": 2620, "name": "Contents", "path": "Automator/ExtractPDF Text.action/Contents" } ] }, { "value": 44, "name": "FilterArticles.action", "path": "Automator/FilterArticles.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/FilterArticles.action/Contents" } ] }, { "value": 272, "name": "FilterCalendar Items 2.action", "path": "Automator/FilterCalendar Items 2.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FilterCalendar Items 2.action/Contents" } ] }, { "value": 280, "name": "FilterContacts Items 2.action", "path": "Automator/FilterContacts Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FilterContacts Items 2.action/Contents" } ] }, { "value": 280, "name": "FilterFinder Items 2.action", "path": "Automator/FilterFinder Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FilterFinder Items 2.action/Contents" } ] }, { "value": 12, "name": "FilterFinder Items.action", "path": "Automator/FilterFinder Items.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/FilterFinder Items.action/Contents" } ] }, { "value": 264, "name": "FilterFonts by Font Type.action", "path": "Automator/FilterFonts by Font Type.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/FilterFonts by Font Type.action/Contents" } ] }, { "value": 280, "name": "FilteriPhoto Items 2.action", "path": "Automator/FilteriPhoto Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FilteriPhoto Items 2.action/Contents" } ] }, { "value": 272, "name": "FilterItems.action", "path": "Automator/FilterItems.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FilterItems.action/Contents" } ] }, { "value": 276, "name": "FilteriTunes Items 2.action", "path": "Automator/FilteriTunes Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FilteriTunes Items 2.action/Contents" } ] }, { "value": 276, "name": "FilterMail Items 2.action", "path": "Automator/FilterMail Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FilterMail Items 2.action/Contents" } ] }, { "value": 60, "name": "FilterParagraphs.action", "path": "Automator/FilterParagraphs.action", "children": [ { "value": 60, "name": "Contents", "path": "Automator/FilterParagraphs.action/Contents" } ] }, { "value": 276, "name": "FilterURLs 2.action", "path": "Automator/FilterURLs 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FilterURLs 2.action/Contents" } ] }, { "value": 12, "name": "FilterURLs.action", "path": "Automator/FilterURLs.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/FilterURLs.action/Contents" } ] }, { "value": 272, "name": "FindCalendar Items 2.action", "path": "Automator/FindCalendar Items 2.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FindCalendar Items 2.action/Contents" } ] }, { "value": 276, "name": "FindContacts Items 2.action", "path": "Automator/FindContacts Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindContacts Items 2.action/Contents" } ] }, { "value": 276, "name": "FindFinder Items 2.action", "path": "Automator/FindFinder Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindFinder Items 2.action/Contents" } ] }, { "value": 280, "name": "FindFinder Items.action", "path": "Automator/FindFinder Items.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FindFinder Items.action/Contents" } ] }, { "value": 276, "name": "FindiPhoto Items 2.action", "path": "Automator/FindiPhoto Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindiPhoto Items 2.action/Contents" } ] }, { "value": 272, "name": "FindItems.action", "path": "Automator/FindItems.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FindItems.action/Contents" } ] }, { "value": 276, "name": "FindiTunes Items 2.action", "path": "Automator/FindiTunes Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindiTunes Items 2.action/Contents" } ] }, { "value": 280, "name": "FindMail Items 2.action", "path": "Automator/FindMail Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FindMail Items 2.action/Contents" } ] }, { "value": 84, "name": "FindPeople with Birthdays.action", "path": "Automator/FindPeople with Birthdays.action", "children": [ { "value": 84, "name": "Contents", "path": "Automator/FindPeople with Birthdays.action/Contents" } ] }, { "value": 0, "name": "Finder.definition", "path": "Automator/Finder.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/Finder.definition/Contents" } ] }, { "value": 104, "name": "FlipImages.action", "path": "Automator/FlipImages.action", "children": [ { "value": 104, "name": "Contents", "path": "Automator/FlipImages.action/Contents" } ] }, { "value": 0, "name": "FontBook.definition", "path": "Automator/FontBook.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/FontBook.definition/Contents" } ] }, { "value": 36, "name": "GetAttachments from Mail Messages.action", "path": "Automator/GetAttachments from Mail Messages.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/GetAttachments from Mail Messages.action/Contents" } ] }, { "value": 180, "name": "GetContact Information.action", "path": "Automator/GetContact Information.action", "children": [ { "value": 180, "name": "Contents", "path": "Automator/GetContact Information.action/Contents" } ] }, { "value": 8, "name": "GetContents of Clipboard.action", "path": "Automator/GetContents of Clipboard.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetContents of Clipboard.action/Contents" } ] }, { "value": 8, "name": "GetContents of TextEdit Document.action", "path": "Automator/GetContents of TextEdit Document.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetContents of TextEdit Document.action/Contents" } ] }, { "value": 12, "name": "GetContents of Webpages.action", "path": "Automator/GetContents of Webpages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetContents of Webpages.action/Contents" } ] }, { "value": 8, "name": "GetCurrent Webpage from Safari.action", "path": "Automator/GetCurrent Webpage from Safari.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetCurrent Webpage from Safari.action/Contents" } ] }, { "value": 84, "name": "GetDefinition of Word.action", "path": "Automator/GetDefinition of Word.action", "children": [ { "value": 84, "name": "Contents", "path": "Automator/GetDefinition of Word.action/Contents" } ] }, { "value": 8, "name": "GetEnclosure URLs from Articles.action", "path": "Automator/GetEnclosure URLs from Articles.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetEnclosure URLs from Articles.action/Contents" } ] }, { "value": 12, "name": "GetFeeds from URLs.action", "path": "Automator/GetFeeds from URLs.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetFeeds from URLs.action/Contents" } ] }, { "value": 0, "name": "GetFiles for Fonts.action", "path": "Automator/GetFiles for Fonts.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetFiles for Fonts.action/Contents" } ] }, { "value": 12, "name": "GetFolder Contents.action", "path": "Automator/GetFolder Contents.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetFolder Contents.action/Contents" } ] }, { "value": 412, "name": "GetFont Info.action", "path": "Automator/GetFont Info.action", "children": [ { "value": 412, "name": "Contents", "path": "Automator/GetFont Info.action/Contents" } ] }, { "value": 0, "name": "GetFonts from Font Files.action", "path": "Automator/GetFonts from Font Files.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetFonts from Font Files.action/Contents" } ] }, { "value": 0, "name": "GetFonts of TextEdit Document.action", "path": "Automator/GetFonts of TextEdit Document.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetFonts of TextEdit Document.action/Contents" } ] }, { "value": 20, "name": "GetiDVD Slideshow Images.action", "path": "Automator/GetiDVD Slideshow Images.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/GetiDVD Slideshow Images.action/Contents" } ] }, { "value": 28, "name": "GetImage URLs from Articles.action", "path": "Automator/GetImage URLs from Articles.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetImage URLs from Articles.action/Contents" } ] }, { "value": 52, "name": "GetImage URLs from Webpage.action", "path": "Automator/GetImage URLs from Webpage.action", "children": [ { "value": 52, "name": "Contents", "path": "Automator/GetImage URLs from Webpage.action/Contents" } ] }, { "value": 12, "name": "GetLink URLs from Articles.action", "path": "Automator/GetLink URLs from Articles.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetLink URLs from Articles.action/Contents" } ] }, { "value": 24, "name": "GetLink URLs from Webpages.action", "path": "Automator/GetLink URLs from Webpages.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/GetLink URLs from Webpages.action/Contents" } ] }, { "value": 20, "name": "GetNew Mail.action", "path": "Automator/GetNew Mail.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/GetNew Mail.action/Contents" } ] }, { "value": 276, "name": "GetPDF Metadata.action", "path": "Automator/GetPDF Metadata.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/GetPDF Metadata.action/Contents" } ] }, { "value": 8, "name": "GetPermalinks of Articles.action", "path": "Automator/GetPermalinks of Articles.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetPermalinks of Articles.action/Contents" } ] }, { "value": 0, "name": "GetPostScript name of Font.action", "path": "Automator/GetPostScript name of Font.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetPostScript name of Font.action/Contents" } ] }, { "value": 44, "name": "GetSelected Contacts Items 2.action", "path": "Automator/GetSelected Contacts Items 2.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/GetSelected Contacts Items 2.action/Contents" } ] }, { "value": 8, "name": "GetSelected Finder Items 2.action", "path": "Automator/GetSelected Finder Items 2.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetSelected Finder Items 2.action/Contents" } ] }, { "value": 28, "name": "GetSelected iPhoto Items 2.action", "path": "Automator/GetSelected iPhoto Items 2.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetSelected iPhoto Items 2.action/Contents" } ] }, { "value": 8, "name": "GetSelected Items.action", "path": "Automator/GetSelected Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetSelected Items.action/Contents" } ] }, { "value": 28, "name": "GetSelected iTunes Items 2.action", "path": "Automator/GetSelected iTunes Items 2.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetSelected iTunes Items 2.action/Contents" } ] }, { "value": 28, "name": "GetSelected Mail Items 2.action", "path": "Automator/GetSelected Mail Items 2.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetSelected Mail Items 2.action/Contents" } ] }, { "value": 540, "name": "GetSpecified Calendar Items.action", "path": "Automator/GetSpecified Calendar Items.action", "children": [ { "value": 540, "name": "Contents", "path": "Automator/GetSpecified Calendar Items.action/Contents" } ] }, { "value": 292, "name": "GetSpecified Contacts Items.action", "path": "Automator/GetSpecified Contacts Items.action", "children": [ { "value": 292, "name": "Contents", "path": "Automator/GetSpecified Contacts Items.action/Contents" } ] }, { "value": 308, "name": "GetSpecified Finder Items.action", "path": "Automator/GetSpecified Finder Items.action", "children": [ { "value": 308, "name": "Contents", "path": "Automator/GetSpecified Finder Items.action/Contents" } ] }, { "value": 288, "name": "GetSpecified iPhoto Items.action", "path": "Automator/GetSpecified iPhoto Items.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified iPhoto Items.action/Contents" } ] }, { "value": 288, "name": "GetSpecified iTunes Items.action", "path": "Automator/GetSpecified iTunes Items.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified iTunes Items.action/Contents" } ] }, { "value": 380, "name": "GetSpecified Mail Items.action", "path": "Automator/GetSpecified Mail Items.action", "children": [ { "value": 380, "name": "Contents", "path": "Automator/GetSpecified Mail Items.action/Contents" } ] }, { "value": 288, "name": "GetSpecified Movies.action", "path": "Automator/GetSpecified Movies.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified Movies.action/Contents" } ] }, { "value": 276, "name": "GetSpecified Servers.action", "path": "Automator/GetSpecified Servers.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/GetSpecified Servers.action/Contents" } ] }, { "value": 272, "name": "GetSpecified Text.action", "path": "Automator/GetSpecified Text.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/GetSpecified Text.action/Contents" } ] }, { "value": 288, "name": "GetSpecified URLs.action", "path": "Automator/GetSpecified URLs.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified URLs.action/Contents" } ] }, { "value": 8, "name": "GetText from Articles.action", "path": "Automator/GetText from Articles.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetText from Articles.action/Contents" } ] }, { "value": 40, "name": "GetText from Webpage.action", "path": "Automator/GetText from Webpage.action", "children": [ { "value": 40, "name": "Contents", "path": "Automator/GetText from Webpage.action/Contents" } ] }, { "value": 8, "name": "Getthe Current Song.action", "path": "Automator/Getthe Current Song.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/Getthe Current Song.action/Contents" } ] }, { "value": 36, "name": "GetValue of Variable.action", "path": "Automator/GetValue of Variable.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/GetValue of Variable.action/Contents" } ] }, { "value": 280, "name": "GroupMailer.action", "path": "Automator/GroupMailer.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/GroupMailer.action/Contents" } ] }, { "value": 8, "name": "HideAll Applications.action", "path": "Automator/HideAll Applications.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/HideAll Applications.action/Contents" } ] }, { "value": 12, "name": "HintMovies.action", "path": "Automator/HintMovies.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/HintMovies.action/Contents" } ] }, { "value": 0, "name": "iCal.definition", "path": "Automator/iCal.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/iCal.definition/Contents" } ] }, { "value": 44, "name": "ImportAudio Files.action", "path": "Automator/ImportAudio Files.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/ImportAudio Files.action/Contents" } ] }, { "value": 28, "name": "ImportFiles into iPhoto.action", "path": "Automator/ImportFiles into iPhoto.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/ImportFiles into iPhoto.action/Contents" } ] }, { "value": 24, "name": "ImportFiles into iTunes.action", "path": "Automator/ImportFiles into iTunes.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ImportFiles into iTunes.action/Contents" } ] }, { "value": 256, "name": "InitiateRemote Broadcast.action", "path": "Automator/InitiateRemote Broadcast.action", "children": [ { "value": 256, "name": "Contents", "path": "Automator/InitiateRemote Broadcast.action/Contents" } ] }, { "value": 0, "name": "iPhoto.definition", "path": "Automator/iPhoto.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/iPhoto.definition/Contents" } ] }, { "value": 0, "name": "iTunes.definition", "path": "Automator/iTunes.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/iTunes.definition/Contents" } ] }, { "value": 24, "name": "LabelFinder Items.action", "path": "Automator/LabelFinder Items.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/LabelFinder Items.action/Contents" } ] }, { "value": 8, "name": "LaunchApplication.action", "path": "Automator/LaunchApplication.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/LaunchApplication.action/Contents" } ] }, { "value": 24, "name": "Loop.action", "path": "Automator/Loop.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/Loop.action/Contents" } ] }, { "value": 0, "name": "Mail.definition", "path": "Automator/Mail.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/Mail.definition/Contents" } ] }, { "value": 16, "name": "MarkArticles.action", "path": "Automator/MarkArticles.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/MarkArticles.action/Contents" } ] }, { "value": 12, "name": "MountDisk Image.action", "path": "Automator/MountDisk Image.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/MountDisk Image.action/Contents" } ] }, { "value": 12, "name": "MoveFinder Items to Trash.action", "path": "Automator/MoveFinder Items to Trash.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/MoveFinder Items to Trash.action/Contents" } ] }, { "value": 28, "name": "MoveFinder Items.action", "path": "Automator/MoveFinder Items.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/MoveFinder Items.action/Contents" } ] }, { "value": 108, "name": "NewAliases.action", "path": "Automator/NewAliases.action", "children": [ { "value": 108, "name": "Contents", "path": "Automator/NewAliases.action/Contents" } ] }, { "value": 0, "name": "NewAudio Capture.action", "path": "Automator/NewAudio Capture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/NewAudio Capture.action/Contents" } ] }, { "value": 676, "name": "NewCalendar Events Leopard.action", "path": "Automator/NewCalendar Events Leopard.action", "children": [ { "value": 676, "name": "Contents", "path": "Automator/NewCalendar Events Leopard.action/Contents" } ] }, { "value": 24, "name": "NewCalendar.action", "path": "Automator/NewCalendar.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/NewCalendar.action/Contents" } ] }, { "value": 64, "name": "NewDisk Image.action", "path": "Automator/NewDisk Image.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/NewDisk Image.action/Contents" } ] }, { "value": 20, "name": "NewFolder.action", "path": "Automator/NewFolder.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/NewFolder.action/Contents" } ] }, { "value": 20, "name": "NewiDVD Menu.action", "path": "Automator/NewiDVD Menu.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/NewiDVD Menu.action/Contents" } ] }, { "value": 20, "name": "NewiDVD Movie Sequence.action", "path": "Automator/NewiDVD Movie Sequence.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/NewiDVD Movie Sequence.action/Contents" } ] }, { "value": 64, "name": "NewiDVD Slideshow.action", "path": "Automator/NewiDVD Slideshow.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/NewiDVD Slideshow.action/Contents" } ] }, { "value": 12, "name": "NewiPhoto Album.action", "path": "Automator/NewiPhoto Album.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/NewiPhoto Album.action/Contents" } ] }, { "value": 32, "name": "NewiPod Note.action", "path": "Automator/NewiPod Note.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/NewiPod Note.action/Contents" } ] }, { "value": 12, "name": "NewiTunes Playlist.action", "path": "Automator/NewiTunes Playlist.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/NewiTunes Playlist.action/Contents" } ] }, { "value": 576, "name": "NewMail Message.action", "path": "Automator/NewMail Message.action", "children": [ { "value": 576, "name": "Contents", "path": "Automator/NewMail Message.action/Contents" } ] }, { "value": 32, "name": "NewPDF Contact Sheet.action", "path": "Automator/NewPDF Contact Sheet.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/NewPDF Contact Sheet.action/Contents" } ] }, { "value": 4444, "name": "NewPDF from Images.action", "path": "Automator/NewPDF from Images.action", "children": [ { "value": 4444, "name": "Contents", "path": "Automator/NewPDF from Images.action/Contents" } ] }, { "value": 1976, "name": "NewQuickTime Slideshow.action", "path": "Automator/NewQuickTime Slideshow.action", "children": [ { "value": 1976, "name": "Contents", "path": "Automator/NewQuickTime Slideshow.action/Contents" } ] }, { "value": 808, "name": "NewReminders Item.action", "path": "Automator/NewReminders Item.action", "children": [ { "value": 808, "name": "Contents", "path": "Automator/NewReminders Item.action/Contents" } ] }, { "value": 0, "name": "NewScreen Capture.action", "path": "Automator/NewScreen Capture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/NewScreen Capture.action/Contents" } ] }, { "value": 64, "name": "NewText File.action", "path": "Automator/NewText File.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/NewText File.action/Contents" } ] }, { "value": 8, "name": "NewTextEdit Document.action", "path": "Automator/NewTextEdit Document.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/NewTextEdit Document.action/Contents" } ] }, { "value": 0, "name": "NewVideo Capture.action", "path": "Automator/NewVideo Capture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/NewVideo Capture.action/Contents" } ] }, { "value": 28, "name": "OpenFinder Items.action", "path": "Automator/OpenFinder Items.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/OpenFinder Items.action/Contents" } ] }, { "value": 12, "name": "OpenImages in Preview.action", "path": "Automator/OpenImages in Preview.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/OpenImages in Preview.action/Contents" } ] }, { "value": 12, "name": "OpenKeynote Presentations.action", "path": "Automator/OpenKeynote Presentations.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/OpenKeynote Presentations.action/Contents" } ] }, { "value": 60, "name": "PadImages.action", "path": "Automator/PadImages.action", "children": [ { "value": 60, "name": "Contents", "path": "Automator/PadImages.action/Contents" } ] }, { "value": 0, "name": "PauseCapture.action", "path": "Automator/PauseCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/PauseCapture.action/Contents" } ] }, { "value": 8, "name": "PauseDVD Playback.action", "path": "Automator/PauseDVD Playback.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PauseDVD Playback.action/Contents" } ] }, { "value": 8, "name": "PauseiTunes.action", "path": "Automator/PauseiTunes.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PauseiTunes.action/Contents" } ] }, { "value": 20, "name": "Pause.action", "path": "Automator/Pause.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/Pause.action/Contents" } ] }, { "value": 3696, "name": "PDFto Images.action", "path": "Automator/PDFto Images.action", "children": [ { "value": 3696, "name": "Contents", "path": "Automator/PDFto Images.action/Contents" } ] }, { "value": 276, "name": "PlayDVD.action", "path": "Automator/PlayDVD.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/PlayDVD.action/Contents" } ] }, { "value": 8, "name": "PlayiPhoto Slideshow.action", "path": "Automator/PlayiPhoto Slideshow.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PlayiPhoto Slideshow.action/Contents" } ] }, { "value": 8, "name": "PlayiTunes Playlist.action", "path": "Automator/PlayiTunes Playlist.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PlayiTunes Playlist.action/Contents" } ] }, { "value": 264, "name": "PlayMovies.action", "path": "Automator/PlayMovies.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/PlayMovies.action/Contents" } ] }, { "value": 20, "name": "PrintFinder Items.action", "path": "Automator/PrintFinder Items.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/PrintFinder Items.action/Contents" } ] }, { "value": 108, "name": "PrintImages.action", "path": "Automator/PrintImages.action", "children": [ { "value": 108, "name": "Contents", "path": "Automator/PrintImages.action/Contents" } ] }, { "value": 32, "name": "PrintKeynote Presentation.action", "path": "Automator/PrintKeynote Presentation.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/PrintKeynote Presentation.action/Contents" } ] }, { "value": 288, "name": "QuitAll Applications.action", "path": "Automator/QuitAll Applications.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/QuitAll Applications.action/Contents" } ] }, { "value": 24, "name": "QuitApplication.action", "path": "Automator/QuitApplication.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/QuitApplication.action/Contents" } ] }, { "value": 8, "name": "RemoveEmpty Playlists.action", "path": "Automator/RemoveEmpty Playlists.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/RemoveEmpty Playlists.action/Contents" } ] }, { "value": 0, "name": "RemoveFont Files.action", "path": "Automator/RemoveFont Files.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/RemoveFont Files.action/Contents" } ] }, { "value": 1092, "name": "RenameFinder Items.action", "path": "Automator/RenameFinder Items.action", "children": [ { "value": 1092, "name": "Contents", "path": "Automator/RenameFinder Items.action/Contents" } ] }, { "value": 16, "name": "RenamePDF Documents.action", "path": "Automator/RenamePDF Documents.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/RenamePDF Documents.action/Contents" } ] }, { "value": 32, "name": "RenderPDF Pages as Images.action", "path": "Automator/RenderPDF Pages as Images.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/RenderPDF Pages as Images.action/Contents" } ] }, { "value": 2888, "name": "RenderQuartz Compositions to Image Files.action", "path": "Automator/RenderQuartz Compositions to Image Files.action", "children": [ { "value": 2888, "name": "Contents", "path": "Automator/RenderQuartz Compositions to Image Files.action/Contents" } ] }, { "value": 0, "name": "ResumeCapture.action", "path": "Automator/ResumeCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/ResumeCapture.action/Contents" } ] }, { "value": 8, "name": "ResumeDVD Playback.action", "path": "Automator/ResumeDVD Playback.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ResumeDVD Playback.action/Contents" } ] }, { "value": 8, "name": "RevealFinder Items.action", "path": "Automator/RevealFinder Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/RevealFinder Items.action/Contents" } ] }, { "value": 428, "name": "ReviewPhotos.action", "path": "Automator/ReviewPhotos.action", "children": [ { "value": 428, "name": "Contents", "path": "Automator/ReviewPhotos.action/Contents" } ] }, { "value": 56, "name": "RotateImages.action", "path": "Automator/RotateImages.action", "children": [ { "value": 56, "name": "Contents", "path": "Automator/RotateImages.action/Contents" } ] }, { "value": 308, "name": "RunAppleScript.action", "path": "Automator/RunAppleScript.action", "children": [ { "value": 308, "name": "Contents", "path": "Automator/RunAppleScript.action/Contents" } ] }, { "value": 20, "name": "RunSelf-Test.action", "path": "Automator/RunSelf-Test.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/RunSelf-Test.action/Contents" } ] }, { "value": 316, "name": "RunShell Script.action", "path": "Automator/RunShell Script.action", "children": [ { "value": 316, "name": "Contents", "path": "Automator/RunShell Script.action/Contents" } ] }, { "value": 36, "name": "RunWeb Service.action", "path": "Automator/RunWeb Service.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/RunWeb Service.action/Contents" } ] }, { "value": 416, "name": "RunWorkflow.action", "path": "Automator/RunWorkflow.action", "children": [ { "value": 416, "name": "Contents", "path": "Automator/RunWorkflow.action/Contents" } ] }, { "value": 32, "name": "SaveImages from Web Content.action", "path": "Automator/SaveImages from Web Content.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/SaveImages from Web Content.action/Contents" } ] }, { "value": 20, "name": "ScaleImages.action", "path": "Automator/ScaleImages.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/ScaleImages.action/Contents" } ] }, { "value": 2112, "name": "SearchPDFs.action", "path": "Automator/SearchPDFs.action", "children": [ { "value": 2112, "name": "Contents", "path": "Automator/SearchPDFs.action/Contents" } ] }, { "value": 0, "name": "SelectFonts in Font Book.action", "path": "Automator/SelectFonts in Font Book.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/SelectFonts in Font Book.action/Contents" } ] }, { "value": 944, "name": "SendBirthday Greetings.action", "path": "Automator/SendBirthday Greetings.action", "children": [ { "value": 944, "name": "Contents", "path": "Automator/SendBirthday Greetings.action/Contents" } ] }, { "value": 8, "name": "SendOutgoing Messages.action", "path": "Automator/SendOutgoing Messages.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SendOutgoing Messages.action/Contents" } ] }, { "value": 16, "name": "SetApplication for Files.action", "path": "Automator/SetApplication for Files.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/SetApplication for Files.action/Contents" } ] }, { "value": 340, "name": "SetComputer Volume.action", "path": "Automator/SetComputer Volume.action", "children": [ { "value": 340, "name": "Contents", "path": "Automator/SetComputer Volume.action/Contents" } ] }, { "value": 44, "name": "SetContents of TextEdit Document.action", "path": "Automator/SetContents of TextEdit Document.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/SetContents of TextEdit Document.action/Contents" } ] }, { "value": 8, "name": "SetDesktop Picture.action", "path": "Automator/SetDesktop Picture.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SetDesktop Picture.action/Contents" } ] }, { "value": 820, "name": "SetFolder Views.action", "path": "Automator/SetFolder Views.action", "children": [ { "value": 820, "name": "Contents", "path": "Automator/SetFolder Views.action/Contents" } ] }, { "value": 8, "name": "SetiDVD Background Image.action", "path": "Automator/SetiDVD Background Image.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SetiDVD Background Image.action/Contents" } ] }, { "value": 20, "name": "SetiDVD Button Face.action", "path": "Automator/SetiDVD Button Face.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/SetiDVD Button Face.action/Contents" } ] }, { "value": 112, "name": "SetInfo of iTunes Songs.action", "path": "Automator/SetInfo of iTunes Songs.action", "children": [ { "value": 112, "name": "Contents", "path": "Automator/SetInfo of iTunes Songs.action/Contents" } ] }, { "value": 408, "name": "SetiTunes Equalizer.action", "path": "Automator/SetiTunes Equalizer.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/SetiTunes Equalizer.action/Contents" } ] }, { "value": 32, "name": "SetiTunes Volume.action", "path": "Automator/SetiTunes Volume.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/SetiTunes Volume.action/Contents" } ] }, { "value": 280, "name": "SetMovie Annotations.action", "path": "Automator/SetMovie Annotations.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/SetMovie Annotations.action/Contents" } ] }, { "value": 256, "name": "SetMovie Playback Properties.action", "path": "Automator/SetMovie Playback Properties.action", "children": [ { "value": 256, "name": "Contents", "path": "Automator/SetMovie Playback Properties.action/Contents" } ] }, { "value": 0, "name": "SetMovie URL.action", "path": "Automator/SetMovie URL.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/SetMovie URL.action/Contents" } ] }, { "value": 408, "name": "SetOptions of iTunes Songs.action", "path": "Automator/SetOptions of iTunes Songs.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/SetOptions of iTunes Songs.action/Contents" } ] }, { "value": 408, "name": "SetPDF Metadata.action", "path": "Automator/SetPDF Metadata.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/SetPDF Metadata.action/Contents" } ] }, { "value": 8, "name": "SetSpotlight Comments for Finder Items.action", "path": "Automator/SetSpotlight Comments for Finder Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SetSpotlight Comments for Finder Items.action/Contents" } ] }, { "value": 20, "name": "SetValue of Variable.action", "path": "Automator/SetValue of Variable.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/SetValue of Variable.action/Contents" } ] }, { "value": 8, "name": "ShowMain iDVD Menu.action", "path": "Automator/ShowMain iDVD Menu.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ShowMain iDVD Menu.action/Contents" } ] }, { "value": 8, "name": "ShowNext Keynote Slide.action", "path": "Automator/ShowNext Keynote Slide.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ShowNext Keynote Slide.action/Contents" } ] }, { "value": 8, "name": "ShowPrevious Keynote Slide.action", "path": "Automator/ShowPrevious Keynote Slide.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ShowPrevious Keynote Slide.action/Contents" } ] }, { "value": 16, "name": "ShowSpecified Keynote Slide.action", "path": "Automator/ShowSpecified Keynote Slide.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/ShowSpecified Keynote Slide.action/Contents" } ] }, { "value": 36, "name": "SortFinder Items.action", "path": "Automator/SortFinder Items.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/SortFinder Items.action/Contents" } ] }, { "value": 32, "name": "SpeakText.action", "path": "Automator/SpeakText.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/SpeakText.action/Contents" } ] }, { "value": 20, "name": "SpotlightLeopard.action", "path": "Automator/SpotlightLeopard.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/SpotlightLeopard.action/Contents" } ] }, { "value": 0, "name": "StartCapture.action", "path": "Automator/StartCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/StartCapture.action/Contents" } ] }, { "value": 8, "name": "StartiTunes Playing.action", "path": "Automator/StartiTunes Playing.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StartiTunes Playing.action/Contents" } ] }, { "value": 8, "name": "StartiTunes Visuals.action", "path": "Automator/StartiTunes Visuals.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StartiTunes Visuals.action/Contents" } ] }, { "value": 16, "name": "StartKeynote Slideshow.action", "path": "Automator/StartKeynote Slideshow.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/StartKeynote Slideshow.action/Contents" } ] }, { "value": 8, "name": "StartScreen Saver.action", "path": "Automator/StartScreen Saver.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StartScreen Saver.action/Contents" } ] }, { "value": 0, "name": "StopCapture.action", "path": "Automator/StopCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/StopCapture.action/Contents" } ] }, { "value": 8, "name": "StopDVD Playback.action", "path": "Automator/StopDVD Playback.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StopDVD Playback.action/Contents" } ] }, { "value": 8, "name": "StopiTunes Visuals.action", "path": "Automator/StopiTunes Visuals.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StopiTunes Visuals.action/Contents" } ] }, { "value": 8, "name": "StopKeynote Slideshow.action", "path": "Automator/StopKeynote Slideshow.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StopKeynote Slideshow.action/Contents" } ] }, { "value": 28, "name": "SystemProfile.action", "path": "Automator/SystemProfile.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/SystemProfile.action/Contents" } ] }, { "value": 276, "name": "TakePicture.action", "path": "Automator/TakePicture.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/TakePicture.action/Contents" } ] }, { "value": 420, "name": "TakeScreenshot.action", "path": "Automator/TakeScreenshot.action", "children": [ { "value": 420, "name": "Contents", "path": "Automator/TakeScreenshot.action/Contents" } ] }, { "value": 20, "name": "TakeVideo Snapshot.action", "path": "Automator/TakeVideo Snapshot.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/TakeVideo Snapshot.action/Contents" } ] }, { "value": 100, "name": "Textto Audio File.action", "path": "Automator/Textto Audio File.action", "children": [ { "value": 100, "name": "Contents", "path": "Automator/Textto Audio File.action/Contents" } ] }, { "value": 436, "name": "Textto EPUB File.action", "path": "Automator/Textto EPUB File.action", "children": [ { "value": 436, "name": "Contents", "path": "Automator/Textto EPUB File.action/Contents" } ] }, { "value": 8, "name": "UpdateiPod.action", "path": "Automator/UpdateiPod.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/UpdateiPod.action/Contents" } ] }, { "value": 264, "name": "ValidateFont Files.action", "path": "Automator/ValidateFont Files.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/ValidateFont Files.action/Contents" } ] }, { "value": 272, "name": "ViewResults.action", "path": "Automator/ViewResults.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/ViewResults.action/Contents" } ] }, { "value": 64, "name": "Waitfor User Action.action", "path": "Automator/Waitfor User Action.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/Waitfor User Action.action/Contents" } ] }, { "value": 456, "name": "WatchMe Do.action", "path": "Automator/WatchMe Do.action", "children": [ { "value": 456, "name": "Contents", "path": "Automator/WatchMe Do.action/Contents" } ] }, { "value": 72, "name": "WatermarkPDF Documents.action", "path": "Automator/WatermarkPDF Documents.action", "children": [ { "value": 72, "name": "Contents", "path": "Automator/WatermarkPDF Documents.action/Contents" } ] }, { "value": 80, "name": "WebsitePopup.action", "path": "Automator/WebsitePopup.action", "children": [ { "value": 80, "name": "Contents", "path": "Automator/WebsitePopup.action/Contents" } ] } ] }, { "value": 2868, "name": "BridgeSupport", "path": "BridgeSupport", "children": [ { "value": 0, "name": "include", "path": "BridgeSupport/include" }, { "value": 2840, "name": "ruby-2.0", "path": "BridgeSupport/ruby-2.0" } ] }, { "value": 21988, "name": "Caches", "path": "Caches", "children": [ { "value": 2296, "name": "com.apple.CVMS", "path": "Caches/com.apple.CVMS" }, { "value": 19048, "name": "com.apple.kext.caches", "path": "Caches/com.apple.kext.caches", "children": [ { "value": 12, "name": "Directories", "path": "Caches/com.apple.kext.caches/Directories" }, { "value": 19036, "name": "Startup", "path": "Caches/com.apple.kext.caches/Startup" } ] } ] }, { "value": 2252, "name": "ColorPickers", "path": "ColorPickers", "children": [ { "value": 288, "name": "NSColorPickerCrayon.colorPicker", "path": "ColorPickers/NSColorPickerCrayon.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerCrayon.colorPicker/_CodeSignature" }, { "value": 288, "name": "Resources", "path": "ColorPickers/NSColorPickerCrayon.colorPicker/Resources" } ] }, { "value": 524, "name": "NSColorPickerPageableNameList.colorPicker", "path": "ColorPickers/NSColorPickerPageableNameList.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerPageableNameList.colorPicker/_CodeSignature" }, { "value": 524, "name": "Resources", "path": "ColorPickers/NSColorPickerPageableNameList.colorPicker/Resources" } ] }, { "value": 848, "name": "NSColorPickerSliders.colorPicker", "path": "ColorPickers/NSColorPickerSliders.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerSliders.colorPicker/_CodeSignature" }, { "value": 848, "name": "Resources", "path": "ColorPickers/NSColorPickerSliders.colorPicker/Resources" } ] }, { "value": 532, "name": "NSColorPickerUser.colorPicker", "path": "ColorPickers/NSColorPickerUser.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerUser.colorPicker/_CodeSignature" }, { "value": 532, "name": "Resources", "path": "ColorPickers/NSColorPickerUser.colorPicker/Resources" } ] }, { "value": 60, "name": "NSColorPickerWheel.colorPicker", "path": "ColorPickers/NSColorPickerWheel.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerWheel.colorPicker/_CodeSignature" }, { "value": 60, "name": "Resources", "path": "ColorPickers/NSColorPickerWheel.colorPicker/Resources" } ] } ] }, { "value": 0, "name": "Colors", "path": "Colors", "children": [ { "value": 0, "name": "Apple.clr", "path": "Colors/Apple.clr", "children": [ { "value": 0, "name": "ar.lproj", "path": "Colors/Apple.clr/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "Colors/Apple.clr/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "Colors/Apple.clr/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "Colors/Apple.clr/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "Colors/Apple.clr/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "Colors/Apple.clr/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "Colors/Apple.clr/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "Colors/Apple.clr/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "Colors/Apple.clr/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "Colors/Apple.clr/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "Colors/Apple.clr/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "Colors/Apple.clr/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "Colors/Apple.clr/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "Colors/Apple.clr/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "Colors/Apple.clr/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "Colors/Apple.clr/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "Colors/Apple.clr/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "Colors/Apple.clr/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "Colors/Apple.clr/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "Colors/Apple.clr/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "Colors/Apple.clr/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "Colors/Apple.clr/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "Colors/Apple.clr/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "Colors/Apple.clr/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "Colors/Apple.clr/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "Colors/Apple.clr/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "Colors/Apple.clr/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "Colors/Apple.clr/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "Colors/Apple.clr/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "Colors/Apple.clr/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "Colors/Apple.clr/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "Colors/Apple.clr/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "Colors/Apple.clr/zh_TW.lproj" } ] }, { "value": 0, "name": "Crayons.clr", "path": "Colors/Crayons.clr", "children": [ { "value": 0, "name": "ar.lproj", "path": "Colors/Crayons.clr/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "Colors/Crayons.clr/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "Colors/Crayons.clr/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "Colors/Crayons.clr/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "Colors/Crayons.clr/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "Colors/Crayons.clr/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "Colors/Crayons.clr/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "Colors/Crayons.clr/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "Colors/Crayons.clr/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "Colors/Crayons.clr/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "Colors/Crayons.clr/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "Colors/Crayons.clr/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "Colors/Crayons.clr/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "Colors/Crayons.clr/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "Colors/Crayons.clr/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "Colors/Crayons.clr/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "Colors/Crayons.clr/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "Colors/Crayons.clr/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "Colors/Crayons.clr/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "Colors/Crayons.clr/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "Colors/Crayons.clr/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "Colors/Crayons.clr/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "Colors/Crayons.clr/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "Colors/Crayons.clr/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "Colors/Crayons.clr/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "Colors/Crayons.clr/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "Colors/Crayons.clr/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "Colors/Crayons.clr/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "Colors/Crayons.clr/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "Colors/Crayons.clr/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "Colors/Crayons.clr/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "Colors/Crayons.clr/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "Colors/Crayons.clr/zh_TW.lproj" } ] }, { "value": 0, "name": "System.clr", "path": "Colors/System.clr", "children": [ { "value": 0, "name": "ar.lproj", "path": "Colors/System.clr/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "Colors/System.clr/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "Colors/System.clr/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "Colors/System.clr/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "Colors/System.clr/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "Colors/System.clr/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "Colors/System.clr/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "Colors/System.clr/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "Colors/System.clr/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "Colors/System.clr/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "Colors/System.clr/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "Colors/System.clr/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "Colors/System.clr/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "Colors/System.clr/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "Colors/System.clr/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "Colors/System.clr/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "Colors/System.clr/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "Colors/System.clr/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "Colors/System.clr/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "Colors/System.clr/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "Colors/System.clr/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "Colors/System.clr/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "Colors/System.clr/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "Colors/System.clr/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "Colors/System.clr/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "Colors/System.clr/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "Colors/System.clr/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "Colors/System.clr/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "Colors/System.clr/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "Colors/System.clr/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "Colors/System.clr/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "Colors/System.clr/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "Colors/System.clr/zh_TW.lproj" } ] } ] }, { "value": 2908, "name": "ColorSync", "path": "ColorSync", "children": [ { "value": 2868, "name": "Calibrators", "path": "ColorSync/Calibrators", "children": [ { "value": 2868, "name": "DisplayCalibrator.app", "path": "ColorSync/Calibrators/DisplayCalibrator.app" } ] }, { "value": 40, "name": "Profiles", "path": "ColorSync/Profiles" } ] }, { "value": 21772, "name": "Components", "path": "Components", "children": [ { "value": 416, "name": "AppleScript.component", "path": "Components/AppleScript.component", "children": [ { "value": 416, "name": "Contents", "path": "Components/AppleScript.component/Contents" } ] }, { "value": 2592, "name": "AudioCodecs.component", "path": "Components/AudioCodecs.component", "children": [ { "value": 2592, "name": "Contents", "path": "Components/AudioCodecs.component/Contents" } ] }, { "value": 92, "name": "AUSpeechSynthesis.component", "path": "Components/AUSpeechSynthesis.component", "children": [ { "value": 92, "name": "Contents", "path": "Components/AUSpeechSynthesis.component/Contents" } ] }, { "value": 18492, "name": "CoreAudio.component", "path": "Components/CoreAudio.component", "children": [ { "value": 18492, "name": "Contents", "path": "Components/CoreAudio.component/Contents" } ] }, { "value": 28, "name": "IOFWDVComponents.component", "path": "Components/IOFWDVComponents.component", "children": [ { "value": 28, "name": "Contents", "path": "Components/IOFWDVComponents.component/Contents" } ] }, { "value": 16, "name": "IOQTComponents.component", "path": "Components/IOQTComponents.component", "children": [ { "value": 16, "name": "Contents", "path": "Components/IOQTComponents.component/Contents" } ] }, { "value": 12, "name": "PDFImporter.component", "path": "Components/PDFImporter.component", "children": [ { "value": 12, "name": "Contents", "path": "Components/PDFImporter.component/Contents" } ] }, { "value": 120, "name": "SoundManagerComponents.component", "path": "Components/SoundManagerComponents.component", "children": [ { "value": 120, "name": "Contents", "path": "Components/SoundManagerComponents.component/Contents" } ] } ] }, { "value": 45728, "name": "Compositions", "path": "Compositions", "children": [ { "value": 0, "name": ".Localization.bundle", "path": "Compositions/.Localization.bundle", "children": [ { "value": 0, "name": "Contents", "path": "Compositions/.Localization.bundle/Contents" } ] } ] }, { "value": 409060, "name": "CoreServices", "path": "CoreServices", "children": [ { "value": 1152, "name": "AddPrinter.app", "path": "CoreServices/AddPrinter.app", "children": [ { "value": 1152, "name": "Contents", "path": "CoreServices/AddPrinter.app/Contents" } ] }, { "value": 72, "name": "AddressBookUrlForwarder.app", "path": "CoreServices/AddressBookUrlForwarder.app", "children": [ { "value": 72, "name": "Contents", "path": "CoreServices/AddressBookUrlForwarder.app/Contents" } ] }, { "value": 20, "name": "AirPlayUIAgent.app", "path": "CoreServices/AirPlayUIAgent.app", "children": [ { "value": 20, "name": "Contents", "path": "CoreServices/AirPlayUIAgent.app/Contents" } ] }, { "value": 56, "name": "AirPortBase Station Agent.app", "path": "CoreServices/AirPortBase Station Agent.app", "children": [ { "value": 56, "name": "Contents", "path": "CoreServices/AirPortBase Station Agent.app/Contents" } ] }, { "value": 92, "name": "AOS.bundle", "path": "CoreServices/AOS.bundle", "children": [ { "value": 92, "name": "Contents", "path": "CoreServices/AOS.bundle/Contents" } ] }, { "value": 1564, "name": "AppDownloadLauncher.app", "path": "CoreServices/AppDownloadLauncher.app", "children": [ { "value": 1564, "name": "Contents", "path": "CoreServices/AppDownloadLauncher.app/Contents" } ] }, { "value": 376, "name": "Apple80211Agent.app", "path": "CoreServices/Apple80211Agent.app", "children": [ { "value": 376, "name": "Contents", "path": "CoreServices/Apple80211Agent.app/Contents" } ] }, { "value": 480, "name": "AppleFileServer.app", "path": "CoreServices/AppleFileServer.app", "children": [ { "value": 480, "name": "Contents", "path": "CoreServices/AppleFileServer.app/Contents" } ] }, { "value": 12, "name": "AppleGraphicsWarning.app", "path": "CoreServices/AppleGraphicsWarning.app", "children": [ { "value": 12, "name": "Contents", "path": "CoreServices/AppleGraphicsWarning.app/Contents" } ] }, { "value": 1752, "name": "AppleScriptUtility.app", "path": "CoreServices/AppleScriptUtility.app", "children": [ { "value": 1752, "name": "Contents", "path": "CoreServices/AppleScriptUtility.app/Contents" } ] }, { "value": 0, "name": "ApplicationFirewall.bundle", "path": "CoreServices/ApplicationFirewall.bundle", "children": [ { "value": 0, "name": "Contents", "path": "CoreServices/ApplicationFirewall.bundle/Contents" } ] }, { "value": 14808, "name": "Applications", "path": "CoreServices/Applications", "children": [ { "value": 1792, "name": "NetworkUtility.app", "path": "CoreServices/Applications/NetworkUtility.app" }, { "value": 7328, "name": "RAIDUtility.app", "path": "CoreServices/Applications/RAIDUtility.app" }, { "value": 5688, "name": "WirelessDiagnostics.app", "path": "CoreServices/Applications/WirelessDiagnostics.app" } ] }, { "value": 6620, "name": "ArchiveUtility.app", "path": "CoreServices/ArchiveUtility.app", "children": [ { "value": 6620, "name": "Contents", "path": "CoreServices/ArchiveUtility.app/Contents" } ] }, { "value": 24, "name": "AutomatorLauncher.app", "path": "CoreServices/AutomatorLauncher.app", "children": [ { "value": 24, "name": "Contents", "path": "CoreServices/AutomatorLauncher.app/Contents" } ] }, { "value": 584, "name": "AutomatorRunner.app", "path": "CoreServices/AutomatorRunner.app", "children": [ { "value": 584, "name": "Contents", "path": "CoreServices/AutomatorRunner.app/Contents" } ] }, { "value": 412, "name": "AVRCPAgent.app", "path": "CoreServices/AVRCPAgent.app", "children": [ { "value": 412, "name": "Contents", "path": "CoreServices/AVRCPAgent.app/Contents" } ] }, { "value": 1400, "name": "backupd.bundle", "path": "CoreServices/backupd.bundle", "children": [ { "value": 1400, "name": "Contents", "path": "CoreServices/backupd.bundle/Contents" } ] }, { "value": 2548, "name": "BluetoothSetup Assistant.app", "path": "CoreServices/BluetoothSetup Assistant.app", "children": [ { "value": 2548, "name": "Contents", "path": "CoreServices/BluetoothSetup Assistant.app/Contents" } ] }, { "value": 2588, "name": "BluetoothUIServer.app", "path": "CoreServices/BluetoothUIServer.app", "children": [ { "value": 2588, "name": "Contents", "path": "CoreServices/BluetoothUIServer.app/Contents" } ] }, { "value": 1288, "name": "CalendarFileHandler.app", "path": "CoreServices/CalendarFileHandler.app", "children": [ { "value": 1288, "name": "Contents", "path": "CoreServices/CalendarFileHandler.app/Contents" } ] }, { "value": 44, "name": "CaptiveNetwork Assistant.app", "path": "CoreServices/CaptiveNetwork Assistant.app", "children": [ { "value": 44, "name": "Contents", "path": "CoreServices/CaptiveNetwork Assistant.app/Contents" } ] }, { "value": 12, "name": "CarbonSpellChecker.bundle", "path": "CoreServices/CarbonSpellChecker.bundle", "children": [ { "value": 12, "name": "Contents", "path": "CoreServices/CarbonSpellChecker.bundle/Contents" } ] }, { "value": 27144, "name": "CertificateAssistant.app", "path": "CoreServices/CertificateAssistant.app", "children": [ { "value": 27144, "name": "Contents", "path": "CoreServices/CertificateAssistant.app/Contents" } ] }, { "value": 28, "name": "CommonCocoaPanels.bundle", "path": "CoreServices/CommonCocoaPanels.bundle", "children": [ { "value": 28, "name": "Contents", "path": "CoreServices/CommonCocoaPanels.bundle/Contents" } ] }, { "value": 676, "name": "CoreLocationAgent.app", "path": "CoreServices/CoreLocationAgent.app", "children": [ { "value": 676, "name": "Contents", "path": "CoreServices/CoreLocationAgent.app/Contents" } ] }, { "value": 164, "name": "CoreServicesUIAgent.app", "path": "CoreServices/CoreServicesUIAgent.app", "children": [ { "value": 164, "name": "Contents", "path": "CoreServices/CoreServicesUIAgent.app/Contents" } ] }, { "value": 171300, "name": "CoreTypes.bundle", "path": "CoreServices/CoreTypes.bundle", "children": [ { "value": 171300, "name": "Contents", "path": "CoreServices/CoreTypes.bundle/Contents" } ] }, { "value": 308, "name": "DatabaseEvents.app", "path": "CoreServices/DatabaseEvents.app", "children": [ { "value": 308, "name": "Contents", "path": "CoreServices/DatabaseEvents.app/Contents" } ] }, { "value": 6104, "name": "DirectoryUtility.app", "path": "CoreServices/DirectoryUtility.app", "children": [ { "value": 6104, "name": "Contents", "path": "CoreServices/DirectoryUtility.app/Contents" } ] }, { "value": 1840, "name": "DiskImageMounter.app", "path": "CoreServices/DiskImageMounter.app", "children": [ { "value": 1840, "name": "Contents", "path": "CoreServices/DiskImageMounter.app/Contents" } ] }, { "value": 8476, "name": "Dock.app", "path": "CoreServices/Dock.app", "children": [ { "value": 8476, "name": "Contents", "path": "CoreServices/Dock.app/Contents" } ] }, { "value": 696, "name": "Encodings", "path": "CoreServices/Encodings" }, { "value": 1024, "name": "ExpansionSlot Utility.app", "path": "CoreServices/ExpansionSlot Utility.app", "children": [ { "value": 1024, "name": "Contents", "path": "CoreServices/ExpansionSlot Utility.app/Contents" } ] }, { "value": 1732, "name": "FileSync.app", "path": "CoreServices/FileSync.app", "children": [ { "value": 1732, "name": "Contents", "path": "CoreServices/FileSync.app/Contents" } ] }, { "value": 572, "name": "FileSyncAgent.app", "path": "CoreServices/FileSyncAgent.app", "children": [ { "value": 572, "name": "Contents", "path": "CoreServices/FileSyncAgent.app/Contents" } ] }, { "value": 35168, "name": "Finder.app", "path": "CoreServices/Finder.app", "children": [ { "value": 35168, "name": "Contents", "path": "CoreServices/Finder.app/Contents" } ] }, { "value": 0, "name": "FirmwareUpdates", "path": "CoreServices/FirmwareUpdates" }, { "value": 336, "name": "FolderActions Dispatcher.app", "path": "CoreServices/FolderActions Dispatcher.app", "children": [ { "value": 336, "name": "Contents", "path": "CoreServices/FolderActions Dispatcher.app/Contents" } ] }, { "value": 1820, "name": "FolderActions Setup.app", "path": "CoreServices/FolderActions Setup.app", "children": [ { "value": 1820, "name": "Contents", "path": "CoreServices/FolderActions Setup.app/Contents" } ] }, { "value": 3268, "name": "HelpViewer.app", "path": "CoreServices/HelpViewer.app", "children": [ { "value": 3268, "name": "Contents", "path": "CoreServices/HelpViewer.app/Contents" } ] }, { "value": 352, "name": "ImageEvents.app", "path": "CoreServices/ImageEvents.app", "children": [ { "value": 352, "name": "Contents", "path": "CoreServices/ImageEvents.app/Contents" } ] }, { "value": 2012, "name": "InstallCommand Line Developer Tools.app", "path": "CoreServices/InstallCommand Line Developer Tools.app", "children": [ { "value": 2012, "name": "Contents", "path": "CoreServices/InstallCommand Line Developer Tools.app/Contents" } ] }, { "value": 108, "name": "Installin Progress.app", "path": "CoreServices/Installin Progress.app", "children": [ { "value": 108, "name": "Contents", "path": "CoreServices/Installin Progress.app/Contents" } ] }, { "value": 7444, "name": "Installer.app", "path": "CoreServices/Installer.app", "children": [ { "value": 7444, "name": "Contents", "path": "CoreServices/Installer.app/Contents" } ] }, { "value": 8, "name": "InstallerStatusNotifications.bundle", "path": "CoreServices/InstallerStatusNotifications.bundle", "children": [ { "value": 8, "name": "Contents", "path": "CoreServices/InstallerStatusNotifications.bundle/Contents" } ] }, { "value": 0, "name": "InternetSharing.bundle", "path": "CoreServices/InternetSharing.bundle", "children": [ { "value": 0, "name": "Resources", "path": "CoreServices/InternetSharing.bundle/Resources" } ] }, { "value": 244, "name": "JarLauncher.app", "path": "CoreServices/JarLauncher.app", "children": [ { "value": 244, "name": "Contents", "path": "CoreServices/JarLauncher.app/Contents" } ] }, { "value": 152, "name": "JavaWeb Start.app", "path": "CoreServices/JavaWeb Start.app", "children": [ { "value": 152, "name": "Contents", "path": "CoreServices/JavaWeb Start.app/Contents" } ] }, { "value": 12, "name": "KernelEventAgent.bundle", "path": "CoreServices/KernelEventAgent.bundle", "children": [ { "value": 0, "name": "Contents", "path": "CoreServices/KernelEventAgent.bundle/Contents" }, { "value": 12, "name": "FileSystemUIAgent.app", "path": "CoreServices/KernelEventAgent.bundle/FileSystemUIAgent.app" } ] }, { "value": 1016, "name": "KeyboardSetupAssistant.app", "path": "CoreServices/KeyboardSetupAssistant.app", "children": [ { "value": 1016, "name": "Contents", "path": "CoreServices/KeyboardSetupAssistant.app/Contents" } ] }, { "value": 840, "name": "KeychainCircle Notification.app", "path": "CoreServices/KeychainCircle Notification.app", "children": [ { "value": 840, "name": "Contents", "path": "CoreServices/KeychainCircle Notification.app/Contents" } ] }, { "value": 1448, "name": "LanguageChooser.app", "path": "CoreServices/LanguageChooser.app", "children": [ { "value": 1448, "name": "Contents", "path": "CoreServices/LanguageChooser.app/Contents" } ] }, { "value": 868, "name": "LocationMenu.app", "path": "CoreServices/LocationMenu.app", "children": [ { "value": 868, "name": "Contents", "path": "CoreServices/LocationMenu.app/Contents" } ] }, { "value": 8260, "name": "loginwindow.app", "path": "CoreServices/loginwindow.app", "children": [ { "value": 8260, "name": "Contents", "path": "CoreServices/loginwindow.app/Contents" } ] }, { "value": 3632, "name": "ManagedClient.app", "path": "CoreServices/ManagedClient.app", "children": [ { "value": 3632, "name": "Contents", "path": "CoreServices/ManagedClient.app/Contents" } ] }, { "value": 0, "name": "mDNSResponder.bundle", "path": "CoreServices/mDNSResponder.bundle", "children": [ { "value": 0, "name": "Resources", "path": "CoreServices/mDNSResponder.bundle/Resources" } ] }, { "value": 420, "name": "MemorySlot Utility.app", "path": "CoreServices/MemorySlot Utility.app", "children": [ { "value": 420, "name": "Contents", "path": "CoreServices/MemorySlot Utility.app/Contents" } ] }, { "value": 4272, "name": "MenuExtras", "path": "CoreServices/MenuExtras", "children": [ { "value": 416, "name": "AirPort.menu", "path": "CoreServices/MenuExtras/AirPort.menu" }, { "value": 788, "name": "Battery.menu", "path": "CoreServices/MenuExtras/Battery.menu" }, { "value": 112, "name": "Bluetooth.menu", "path": "CoreServices/MenuExtras/Bluetooth.menu" }, { "value": 12, "name": "Clock.menu", "path": "CoreServices/MenuExtras/Clock.menu" }, { "value": 84, "name": "Displays.menu", "path": "CoreServices/MenuExtras/Displays.menu" }, { "value": 32, "name": "Eject.menu", "path": "CoreServices/MenuExtras/Eject.menu" }, { "value": 24, "name": "ExpressCard.menu", "path": "CoreServices/MenuExtras/ExpressCard.menu" }, { "value": 76, "name": "Fax.menu", "path": "CoreServices/MenuExtras/Fax.menu" }, { "value": 112, "name": "HomeSync.menu", "path": "CoreServices/MenuExtras/HomeSync.menu" }, { "value": 84, "name": "iChat.menu", "path": "CoreServices/MenuExtras/iChat.menu" }, { "value": 28, "name": "Ink.menu", "path": "CoreServices/MenuExtras/Ink.menu" }, { "value": 104, "name": "IrDA.menu", "path": "CoreServices/MenuExtras/IrDA.menu" }, { "value": 68, "name": "PPP.menu", "path": "CoreServices/MenuExtras/PPP.menu" }, { "value": 24, "name": "PPPoE.menu", "path": "CoreServices/MenuExtras/PPPoE.menu" }, { "value": 60, "name": "RemoteDesktop.menu", "path": "CoreServices/MenuExtras/RemoteDesktop.menu" }, { "value": 48, "name": "Script Menu.menu", "path": "CoreServices/MenuExtras/Script Menu.menu" }, { "value": 832, "name": "TextInput.menu", "path": "CoreServices/MenuExtras/TextInput.menu" }, { "value": 144, "name": "TimeMachine.menu", "path": "CoreServices/MenuExtras/TimeMachine.menu" }, { "value": 40, "name": "UniversalAccess.menu", "path": "CoreServices/MenuExtras/UniversalAccess.menu" }, { "value": 108, "name": "User.menu", "path": "CoreServices/MenuExtras/User.menu" }, { "value": 316, "name": "Volume.menu", "path": "CoreServices/MenuExtras/Volume.menu" }, { "value": 48, "name": "VPN.menu", "path": "CoreServices/MenuExtras/VPN.menu" }, { "value": 712, "name": "WWAN.menu", "path": "CoreServices/MenuExtras/WWAN.menu" } ] }, { "value": 16, "name": "MLTEFile.bundle", "path": "CoreServices/MLTEFile.bundle", "children": [ { "value": 16, "name": "Contents", "path": "CoreServices/MLTEFile.bundle/Contents" } ] }, { "value": 616, "name": "MRTAgent.app", "path": "CoreServices/MRTAgent.app", "children": [ { "value": 616, "name": "Contents", "path": "CoreServices/MRTAgent.app/Contents" } ] }, { "value": 1540, "name": "NetAuthAgent.app", "path": "CoreServices/NetAuthAgent.app", "children": [ { "value": 1540, "name": "Contents", "path": "CoreServices/NetAuthAgent.app/Contents" } ] }, { "value": 3388, "name": "NetworkDiagnostics.app", "path": "CoreServices/NetworkDiagnostics.app", "children": [ { "value": 3388, "name": "Contents", "path": "CoreServices/NetworkDiagnostics.app/Contents" } ] }, { "value": 9384, "name": "NetworkSetup Assistant.app", "path": "CoreServices/NetworkSetup Assistant.app", "children": [ { "value": 9384, "name": "Contents", "path": "CoreServices/NetworkSetup Assistant.app/Contents" } ] }, { "value": 716, "name": "NotificationCenter.app", "path": "CoreServices/NotificationCenter.app", "children": [ { "value": 716, "name": "Contents", "path": "CoreServices/NotificationCenter.app/Contents" } ] }, { "value": 948, "name": "OBEXAgent.app", "path": "CoreServices/OBEXAgent.app", "children": [ { "value": 948, "name": "Contents", "path": "CoreServices/OBEXAgent.app/Contents" } ] }, { "value": 1596, "name": "ODSAgent.app", "path": "CoreServices/ODSAgent.app", "children": [ { "value": 1596, "name": "Contents", "path": "CoreServices/ODSAgent.app/Contents" } ] }, { "value": 492, "name": "PassViewer.app", "path": "CoreServices/PassViewer.app", "children": [ { "value": 492, "name": "Contents", "path": "CoreServices/PassViewer.app/Contents" } ] }, { "value": 0, "name": "PerformanceMetricLocalizations.bundle", "path": "CoreServices/PerformanceMetricLocalizations.bundle", "children": [ { "value": 0, "name": "Contents", "path": "CoreServices/PerformanceMetricLocalizations.bundle/Contents" } ] }, { "value": 88, "name": "powerd.bundle", "path": "CoreServices/powerd.bundle", "children": [ { "value": 0, "name": "_CodeSignature", "path": "CoreServices/powerd.bundle/_CodeSignature" }, { "value": 0, "name": "ar.lproj", "path": "CoreServices/powerd.bundle/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "CoreServices/powerd.bundle/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "CoreServices/powerd.bundle/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "CoreServices/powerd.bundle/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "CoreServices/powerd.bundle/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "CoreServices/powerd.bundle/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "CoreServices/powerd.bundle/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "CoreServices/powerd.bundle/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "CoreServices/powerd.bundle/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "CoreServices/powerd.bundle/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "CoreServices/powerd.bundle/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "CoreServices/powerd.bundle/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "CoreServices/powerd.bundle/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "CoreServices/powerd.bundle/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "CoreServices/powerd.bundle/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "CoreServices/powerd.bundle/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "CoreServices/powerd.bundle/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "CoreServices/powerd.bundle/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "CoreServices/powerd.bundle/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "CoreServices/powerd.bundle/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "CoreServices/powerd.bundle/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "CoreServices/powerd.bundle/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "CoreServices/powerd.bundle/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "CoreServices/powerd.bundle/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "CoreServices/powerd.bundle/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "CoreServices/powerd.bundle/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "CoreServices/powerd.bundle/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "CoreServices/powerd.bundle/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "CoreServices/powerd.bundle/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "CoreServices/powerd.bundle/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "CoreServices/powerd.bundle/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "CoreServices/powerd.bundle/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "CoreServices/powerd.bundle/zh_TW.lproj" } ] }, { "value": 776, "name": "ProblemReporter.app", "path": "CoreServices/ProblemReporter.app", "children": [ { "value": 776, "name": "Contents", "path": "CoreServices/ProblemReporter.app/Contents" } ] }, { "value": 4748, "name": "RawCamera.bundle", "path": "CoreServices/RawCamera.bundle", "children": [ { "value": 4748, "name": "Contents", "path": "CoreServices/RawCamera.bundle/Contents" } ] }, { "value": 2112, "name": "RawCameraSupport.bundle", "path": "CoreServices/RawCameraSupport.bundle", "children": [ { "value": 2112, "name": "Contents", "path": "CoreServices/RawCameraSupport.bundle/Contents" } ] }, { "value": 24, "name": "rcd.app", "path": "CoreServices/rcd.app", "children": [ { "value": 24, "name": "Contents", "path": "CoreServices/rcd.app/Contents" } ] }, { "value": 156, "name": "RegisterPluginIMApp.app", "path": "CoreServices/RegisterPluginIMApp.app", "children": [ { "value": 156, "name": "Contents", "path": "CoreServices/RegisterPluginIMApp.app/Contents" } ] }, { "value": 3504, "name": "RemoteManagement", "path": "CoreServices/RemoteManagement", "children": [ { "value": 872, "name": "AppleVNCServer.bundle", "path": "CoreServices/RemoteManagement/AppleVNCServer.bundle" }, { "value": 2260, "name": "ARDAgent.app", "path": "CoreServices/RemoteManagement/ARDAgent.app" }, { "value": 144, "name": "ScreensharingAgent.bundle", "path": "CoreServices/RemoteManagement/ScreensharingAgent.bundle" }, { "value": 228, "name": "screensharingd.bundle", "path": "CoreServices/RemoteManagement/screensharingd.bundle" } ] }, { "value": 672, "name": "ReportPanic.app", "path": "CoreServices/ReportPanic.app", "children": [ { "value": 672, "name": "Contents", "path": "CoreServices/ReportPanic.app/Contents" } ] }, { "value": 0, "name": "Resources", "path": "CoreServices/Resources", "children": [ { "value": 0, "name": "ar.lproj", "path": "CoreServices/Resources/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "CoreServices/Resources/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "CoreServices/Resources/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "CoreServices/Resources/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "CoreServices/Resources/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "CoreServices/Resources/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "CoreServices/Resources/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "CoreServices/Resources/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "CoreServices/Resources/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "CoreServices/Resources/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "CoreServices/Resources/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "CoreServices/Resources/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "CoreServices/Resources/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "CoreServices/Resources/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "CoreServices/Resources/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "CoreServices/Resources/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "CoreServices/Resources/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "CoreServices/Resources/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "CoreServices/Resources/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "CoreServices/Resources/pl.lproj" }, { "value": 0, "name": "Profiles", "path": "CoreServices/Resources/Profiles" }, { "value": 0, "name": "pt.lproj", "path": "CoreServices/Resources/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "CoreServices/Resources/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "CoreServices/Resources/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "CoreServices/Resources/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "CoreServices/Resources/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "CoreServices/Resources/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "CoreServices/Resources/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "CoreServices/Resources/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "CoreServices/Resources/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "CoreServices/Resources/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "CoreServices/Resources/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "CoreServices/Resources/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "CoreServices/Resources/zh_TW.lproj" } ] }, { "value": 20, "name": "RFBEventHelper.bundle", "path": "CoreServices/RFBEventHelper.bundle", "children": [ { "value": 20, "name": "Contents", "path": "CoreServices/RFBEventHelper.bundle/Contents" } ] }, { "value": 3304, "name": "ScreenSharing.app", "path": "CoreServices/ScreenSharing.app", "children": [ { "value": 3304, "name": "Contents", "path": "CoreServices/ScreenSharing.app/Contents" } ] }, { "value": 244, "name": "Search.bundle", "path": "CoreServices/Search.bundle", "children": [ { "value": 244, "name": "Contents", "path": "CoreServices/Search.bundle/Contents" } ] }, { "value": 4128, "name": "SecurityAgentPlugins", "path": "CoreServices/SecurityAgentPlugins", "children": [ { "value": 304, "name": "DiskUnlock.bundle", "path": "CoreServices/SecurityAgentPlugins/DiskUnlock.bundle" }, { "value": 1192, "name": "FamilyControls.bundle", "path": "CoreServices/SecurityAgentPlugins/FamilyControls.bundle" }, { "value": 340, "name": "HomeDirMechanism.bundle", "path": "CoreServices/SecurityAgentPlugins/HomeDirMechanism.bundle" }, { "value": 1156, "name": "KerberosAgent.bundle", "path": "CoreServices/SecurityAgentPlugins/KerberosAgent.bundle" }, { "value": 276, "name": "loginKC.bundle", "path": "CoreServices/SecurityAgentPlugins/loginKC.bundle" }, { "value": 104, "name": "loginwindow.bundle", "path": "CoreServices/SecurityAgentPlugins/loginwindow.bundle" }, { "value": 384, "name": "MCXMechanism.bundle", "path": "CoreServices/SecurityAgentPlugins/MCXMechanism.bundle" }, { "value": 12, "name": "PKINITMechanism.bundle", "path": "CoreServices/SecurityAgentPlugins/PKINITMechanism.bundle" }, { "value": 360, "name": "RestartAuthorization.bundle", "path": "CoreServices/SecurityAgentPlugins/RestartAuthorization.bundle" } ] }, { "value": 328, "name": "SecurityFixer.app", "path": "CoreServices/SecurityFixer.app", "children": [ { "value": 328, "name": "Contents", "path": "CoreServices/SecurityFixer.app/Contents" } ] }, { "value": 28200, "name": "SetupAssistant.app", "path": "CoreServices/SetupAssistant.app", "children": [ { "value": 28200, "name": "Contents", "path": "CoreServices/SetupAssistant.app/Contents" } ] }, { "value": 164, "name": "SetupAssistantPlugins", "path": "CoreServices/SetupAssistantPlugins", "children": [ { "value": 8, "name": "AppStore.icdplugin", "path": "CoreServices/SetupAssistantPlugins/AppStore.icdplugin" }, { "value": 8, "name": "Calendar.flplugin", "path": "CoreServices/SetupAssistantPlugins/Calendar.flplugin" }, { "value": 8, "name": "FaceTime.icdplugin", "path": "CoreServices/SetupAssistantPlugins/FaceTime.icdplugin" }, { "value": 8, "name": "Fonts.flplugin", "path": "CoreServices/SetupAssistantPlugins/Fonts.flplugin" }, { "value": 16, "name": "GameCenter.icdplugin", "path": "CoreServices/SetupAssistantPlugins/GameCenter.icdplugin" }, { "value": 8, "name": "Helpd.flplugin", "path": "CoreServices/SetupAssistantPlugins/Helpd.flplugin" }, { "value": 8, "name": "iBooks.icdplugin", "path": "CoreServices/SetupAssistantPlugins/iBooks.icdplugin" }, { "value": 16, "name": "IdentityServices.icdplugin", "path": "CoreServices/SetupAssistantPlugins/IdentityServices.icdplugin" }, { "value": 8, "name": "iMessage.icdplugin", "path": "CoreServices/SetupAssistantPlugins/iMessage.icdplugin" }, { "value": 8, "name": "LaunchServices.flplugin", "path": "CoreServices/SetupAssistantPlugins/LaunchServices.flplugin" }, { "value": 12, "name": "Mail.flplugin", "path": "CoreServices/SetupAssistantPlugins/Mail.flplugin" }, { "value": 8, "name": "QuickLook.flplugin", "path": "CoreServices/SetupAssistantPlugins/QuickLook.flplugin" }, { "value": 8, "name": "Safari.flplugin", "path": "CoreServices/SetupAssistantPlugins/Safari.flplugin" }, { "value": 8, "name": "ServicesMenu.flplugin", "path": "CoreServices/SetupAssistantPlugins/ServicesMenu.flplugin" }, { "value": 8, "name": "SoftwareUpdateActions.flplugin", "path": "CoreServices/SetupAssistantPlugins/SoftwareUpdateActions.flplugin" }, { "value": 8, "name": "Spotlight.flplugin", "path": "CoreServices/SetupAssistantPlugins/Spotlight.flplugin" }, { "value": 16, "name": "UAU.flplugin", "path": "CoreServices/SetupAssistantPlugins/UAU.flplugin" } ] }, { "value": 48, "name": "SocialPushAgent.app", "path": "CoreServices/SocialPushAgent.app", "children": [ { "value": 48, "name": "Contents", "path": "CoreServices/SocialPushAgent.app/Contents" } ] }, { "value": 2196, "name": "SoftwareUpdate.app", "path": "CoreServices/SoftwareUpdate.app", "children": [ { "value": 2196, "name": "Contents", "path": "CoreServices/SoftwareUpdate.app/Contents" } ] }, { "value": 856, "name": "Spotlight.app", "path": "CoreServices/Spotlight.app", "children": [ { "value": 856, "name": "Contents", "path": "CoreServices/Spotlight.app/Contents" } ] }, { "value": 384, "name": "SystemEvents.app", "path": "CoreServices/SystemEvents.app", "children": [ { "value": 384, "name": "Contents", "path": "CoreServices/SystemEvents.app/Contents" } ] }, { "value": 2152, "name": "SystemImage Utility.app", "path": "CoreServices/SystemImage Utility.app", "children": [ { "value": 2152, "name": "Contents", "path": "CoreServices/SystemImage Utility.app/Contents" } ] }, { "value": 0, "name": "SystemFolderLocalizations", "path": "CoreServices/SystemFolderLocalizations", "children": [ { "value": 0, "name": "ar.lproj", "path": "CoreServices/SystemFolderLocalizations/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "CoreServices/SystemFolderLocalizations/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "CoreServices/SystemFolderLocalizations/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "CoreServices/SystemFolderLocalizations/da.lproj" }, { "value": 0, "name": "de.lproj", "path": "CoreServices/SystemFolderLocalizations/de.lproj" }, { "value": 0, "name": "el.lproj", "path": "CoreServices/SystemFolderLocalizations/el.lproj" }, { "value": 0, "name": "en.lproj", "path": "CoreServices/SystemFolderLocalizations/en.lproj" }, { "value": 0, "name": "es.lproj", "path": "CoreServices/SystemFolderLocalizations/es.lproj" }, { "value": 0, "name": "fi.lproj", "path": "CoreServices/SystemFolderLocalizations/fi.lproj" }, { "value": 0, "name": "fr.lproj", "path": "CoreServices/SystemFolderLocalizations/fr.lproj" }, { "value": 0, "name": "he.lproj", "path": "CoreServices/SystemFolderLocalizations/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "CoreServices/SystemFolderLocalizations/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "CoreServices/SystemFolderLocalizations/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "CoreServices/SystemFolderLocalizations/id.lproj" }, { "value": 0, "name": "it.lproj", "path": "CoreServices/SystemFolderLocalizations/it.lproj" }, { "value": 0, "name": "ja.lproj", "path": "CoreServices/SystemFolderLocalizations/ja.lproj" }, { "value": 0, "name": "ko.lproj", "path": "CoreServices/SystemFolderLocalizations/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "CoreServices/SystemFolderLocalizations/ms.lproj" }, { "value": 0, "name": "nl.lproj", "path": "CoreServices/SystemFolderLocalizations/nl.lproj" }, { "value": 0, "name": "no.lproj", "path": "CoreServices/SystemFolderLocalizations/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "CoreServices/SystemFolderLocalizations/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "CoreServices/SystemFolderLocalizations/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "CoreServices/SystemFolderLocalizations/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "CoreServices/SystemFolderLocalizations/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "CoreServices/SystemFolderLocalizations/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "CoreServices/SystemFolderLocalizations/sk.lproj" }, { "value": 0, "name": "sv.lproj", "path": "CoreServices/SystemFolderLocalizations/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "CoreServices/SystemFolderLocalizations/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "CoreServices/SystemFolderLocalizations/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "CoreServices/SystemFolderLocalizations/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "CoreServices/SystemFolderLocalizations/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "CoreServices/SystemFolderLocalizations/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "CoreServices/SystemFolderLocalizations/zh_TW.lproj" } ] }, { "value": 852, "name": "SystemUIServer.app", "path": "CoreServices/SystemUIServer.app", "children": [ { "value": 852, "name": "Contents", "path": "CoreServices/SystemUIServer.app/Contents" } ] }, { "value": 132, "name": "SystemVersion.bundle", "path": "CoreServices/SystemVersion.bundle", "children": [ { "value": 4, "name": "ar.lproj", "path": "CoreServices/SystemVersion.bundle/ar.lproj" }, { "value": 4, "name": "ca.lproj", "path": "CoreServices/SystemVersion.bundle/ca.lproj" }, { "value": 4, "name": "cs.lproj", "path": "CoreServices/SystemVersion.bundle/cs.lproj" }, { "value": 4, "name": "da.lproj", "path": "CoreServices/SystemVersion.bundle/da.lproj" }, { "value": 4, "name": "Dutch.lproj", "path": "CoreServices/SystemVersion.bundle/Dutch.lproj" }, { "value": 4, "name": "el.lproj", "path": "CoreServices/SystemVersion.bundle/el.lproj" }, { "value": 4, "name": "English.lproj", "path": "CoreServices/SystemVersion.bundle/English.lproj" }, { "value": 4, "name": "fi.lproj", "path": "CoreServices/SystemVersion.bundle/fi.lproj" }, { "value": 4, "name": "French.lproj", "path": "CoreServices/SystemVersion.bundle/French.lproj" }, { "value": 4, "name": "German.lproj", "path": "CoreServices/SystemVersion.bundle/German.lproj" }, { "value": 4, "name": "he.lproj", "path": "CoreServices/SystemVersion.bundle/he.lproj" }, { "value": 4, "name": "hr.lproj", "path": "CoreServices/SystemVersion.bundle/hr.lproj" }, { "value": 4, "name": "hu.lproj", "path": "CoreServices/SystemVersion.bundle/hu.lproj" }, { "value": 4, "name": "id.lproj", "path": "CoreServices/SystemVersion.bundle/id.lproj" }, { "value": 4, "name": "Italian.lproj", "path": "CoreServices/SystemVersion.bundle/Italian.lproj" }, { "value": 4, "name": "Japanese.lproj", "path": "CoreServices/SystemVersion.bundle/Japanese.lproj" }, { "value": 4, "name": "ko.lproj", "path": "CoreServices/SystemVersion.bundle/ko.lproj" }, { "value": 4, "name": "ms.lproj", "path": "CoreServices/SystemVersion.bundle/ms.lproj" }, { "value": 4, "name": "no.lproj", "path": "CoreServices/SystemVersion.bundle/no.lproj" }, { "value": 4, "name": "pl.lproj", "path": "CoreServices/SystemVersion.bundle/pl.lproj" }, { "value": 4, "name": "pt.lproj", "path": "CoreServices/SystemVersion.bundle/pt.lproj" }, { "value": 4, "name": "pt_PT.lproj", "path": "CoreServices/SystemVersion.bundle/pt_PT.lproj" }, { "value": 4, "name": "ro.lproj", "path": "CoreServices/SystemVersion.bundle/ro.lproj" }, { "value": 4, "name": "ru.lproj", "path": "CoreServices/SystemVersion.bundle/ru.lproj" }, { "value": 4, "name": "sk.lproj", "path": "CoreServices/SystemVersion.bundle/sk.lproj" }, { "value": 4, "name": "Spanish.lproj", "path": "CoreServices/SystemVersion.bundle/Spanish.lproj" }, { "value": 4, "name": "sv.lproj", "path": "CoreServices/SystemVersion.bundle/sv.lproj" }, { "value": 4, "name": "th.lproj", "path": "CoreServices/SystemVersion.bundle/th.lproj" }, { "value": 4, "name": "tr.lproj", "path": "CoreServices/SystemVersion.bundle/tr.lproj" }, { "value": 4, "name": "uk.lproj", "path": "CoreServices/SystemVersion.bundle/uk.lproj" }, { "value": 4, "name": "vi.lproj", "path": "CoreServices/SystemVersion.bundle/vi.lproj" }, { "value": 4, "name": "zh_CN.lproj", "path": "CoreServices/SystemVersion.bundle/zh_CN.lproj" }, { "value": 4, "name": "zh_TW.lproj", "path": "CoreServices/SystemVersion.bundle/zh_TW.lproj" } ] }, { "value": 3148, "name": "TicketViewer.app", "path": "CoreServices/TicketViewer.app", "children": [ { "value": 3148, "name": "Contents", "path": "CoreServices/TicketViewer.app/Contents" } ] }, { "value": 532, "name": "TypographyPanel.bundle", "path": "CoreServices/TypographyPanel.bundle", "children": [ { "value": 532, "name": "Contents", "path": "CoreServices/TypographyPanel.bundle/Contents" } ] }, { "value": 676, "name": "UniversalAccessControl.app", "path": "CoreServices/UniversalAccessControl.app", "children": [ { "value": 676, "name": "Contents", "path": "CoreServices/UniversalAccessControl.app/Contents" } ] }, { "value": 52, "name": "UnmountAssistantAgent.app", "path": "CoreServices/UnmountAssistantAgent.app", "children": [ { "value": 52, "name": "Contents", "path": "CoreServices/UnmountAssistantAgent.app/Contents" } ] }, { "value": 60, "name": "UserNotificationCenter.app", "path": "CoreServices/UserNotificationCenter.app", "children": [ { "value": 60, "name": "Contents", "path": "CoreServices/UserNotificationCenter.app/Contents" } ] }, { "value": 456, "name": "VoiceOver.app", "path": "CoreServices/VoiceOver.app", "children": [ { "value": 456, "name": "Contents", "path": "CoreServices/VoiceOver.app/Contents" } ] }, { "value": 44, "name": "XsanManagerDaemon.bundle", "path": "CoreServices/XsanManagerDaemon.bundle", "children": [ { "value": 44, "name": "Contents", "path": "CoreServices/XsanManagerDaemon.bundle/Contents" } ] }, { "value": 844, "name": "ZoomWindow.app", "path": "CoreServices/ZoomWindow.app", "children": [ { "value": 844, "name": "Contents", "path": "CoreServices/ZoomWindow.app/Contents" } ] } ] }, { "value": 72, "name": "DirectoryServices", "path": "DirectoryServices", "children": [ { "value": 0, "name": "DefaultLocalDB", "path": "DirectoryServices/DefaultLocalDB" }, { "value": 72, "name": "dscl", "path": "DirectoryServices/dscl", "children": [ { "value": 44, "name": "mcxcl.dsclext", "path": "DirectoryServices/dscl/mcxcl.dsclext" }, { "value": 28, "name": "mcxProfiles.dsclext", "path": "DirectoryServices/dscl/mcxProfiles.dsclext" } ] }, { "value": 0, "name": "Templates", "path": "DirectoryServices/Templates", "children": [ { "value": 0, "name": "LDAPv3", "path": "DirectoryServices/Templates/LDAPv3" } ] } ] }, { "value": 0, "name": "Displays", "path": "Displays", "children": [ { "value": 0, "name": "_CodeSignature", "path": "Displays/_CodeSignature" }, { "value": 0, "name": "Overrides", "path": "Displays/Overrides", "children": [ { "value": 0, "name": "Contents", "path": "Displays/Overrides/Contents" }, { "value": 0, "name": "DisplayVendorID-11a9", "path": "Displays/Overrides/DisplayVendorID-11a9" }, { "value": 0, "name": "DisplayVendorID-2283", "path": "Displays/Overrides/DisplayVendorID-2283" }, { "value": 0, "name": "DisplayVendorID-34a9", "path": "Displays/Overrides/DisplayVendorID-34a9" }, { "value": 0, "name": "DisplayVendorID-38a3", "path": "Displays/Overrides/DisplayVendorID-38a3" }, { "value": 0, "name": "DisplayVendorID-4c2d", "path": "Displays/Overrides/DisplayVendorID-4c2d" }, { "value": 0, "name": "DisplayVendorID-4dd9", "path": "Displays/Overrides/DisplayVendorID-4dd9" }, { "value": 0, "name": "DisplayVendorID-5a63", "path": "Displays/Overrides/DisplayVendorID-5a63" }, { "value": 0, "name": "DisplayVendorID-5b4", "path": "Displays/Overrides/DisplayVendorID-5b4" }, { "value": 0, "name": "DisplayVendorID-610", "path": "Displays/Overrides/DisplayVendorID-610" }, { "value": 0, "name": "DisplayVendorID-756e6b6e", "path": "Displays/Overrides/DisplayVendorID-756e6b6e" }, { "value": 0, "name": "DisplayVendorID-daf", "path": "Displays/Overrides/DisplayVendorID-daf" } ] } ] }, { "value": 16, "name": "DTDs", "path": "DTDs" }, { "value": 400116, "name": "Extensions", "path": "Extensions", "children": [ { "value": 0, "name": "10.5", "path": "Extensions/10.5" }, { "value": 0, "name": "10.6", "path": "Extensions/10.6" }, { "value": 116, "name": "Accusys6xxxx.kext", "path": "Extensions/Accusys6xxxx.kext", "children": [ { "value": 116, "name": "Contents", "path": "Extensions/Accusys6xxxx.kext/Contents" } ] }, { "value": 1236, "name": "acfs.kext", "path": "Extensions/acfs.kext", "children": [ { "value": 1236, "name": "Contents", "path": "Extensions/acfs.kext/Contents" } ] }, { "value": 32, "name": "acfsctl.kext", "path": "Extensions/acfsctl.kext", "children": [ { "value": 32, "name": "Contents", "path": "Extensions/acfsctl.kext/Contents" } ] }, { "value": 196, "name": "ALF.kext", "path": "Extensions/ALF.kext", "children": [ { "value": 196, "name": "Contents", "path": "Extensions/ALF.kext/Contents" } ] }, { "value": 1836, "name": "AMD2400Controller.kext", "path": "Extensions/AMD2400Controller.kext", "children": [ { "value": 1836, "name": "Contents", "path": "Extensions/AMD2400Controller.kext/Contents" } ] }, { "value": 1840, "name": "AMD2600Controller.kext", "path": "Extensions/AMD2600Controller.kext", "children": [ { "value": 1840, "name": "Contents", "path": "Extensions/AMD2600Controller.kext/Contents" } ] }, { "value": 1848, "name": "AMD3800Controller.kext", "path": "Extensions/AMD3800Controller.kext", "children": [ { "value": 1848, "name": "Contents", "path": "Extensions/AMD3800Controller.kext/Contents" } ] }, { "value": 1828, "name": "AMD4600Controller.kext", "path": "Extensions/AMD4600Controller.kext", "children": [ { "value": 1828, "name": "Contents", "path": "Extensions/AMD4600Controller.kext/Contents" } ] }, { "value": 1820, "name": "AMD4800Controller.kext", "path": "Extensions/AMD4800Controller.kext", "children": [ { "value": 1820, "name": "Contents", "path": "Extensions/AMD4800Controller.kext/Contents" } ] }, { "value": 2268, "name": "AMD5000Controller.kext", "path": "Extensions/AMD5000Controller.kext", "children": [ { "value": 2268, "name": "Contents", "path": "Extensions/AMD5000Controller.kext/Contents" } ] }, { "value": 2292, "name": "AMD6000Controller.kext", "path": "Extensions/AMD6000Controller.kext", "children": [ { "value": 2292, "name": "Contents", "path": "Extensions/AMD6000Controller.kext/Contents" } ] }, { "value": 2316, "name": "AMD7000Controller.kext", "path": "Extensions/AMD7000Controller.kext", "children": [ { "value": 2316, "name": "Contents", "path": "Extensions/AMD7000Controller.kext/Contents" } ] }, { "value": 164, "name": "AMDFramebuffer.kext", "path": "Extensions/AMDFramebuffer.kext", "children": [ { "value": 164, "name": "Contents", "path": "Extensions/AMDFramebuffer.kext/Contents" } ] }, { "value": 1572, "name": "AMDRadeonVADriver.bundle", "path": "Extensions/AMDRadeonVADriver.bundle", "children": [ { "value": 1572, "name": "Contents", "path": "Extensions/AMDRadeonVADriver.bundle/Contents" } ] }, { "value": 4756, "name": "AMDRadeonX3000.kext", "path": "Extensions/AMDRadeonX3000.kext", "children": [ { "value": 4756, "name": "Contents", "path": "Extensions/AMDRadeonX3000.kext/Contents" } ] }, { "value": 11224, "name": "AMDRadeonX3000GLDriver.bundle", "path": "Extensions/AMDRadeonX3000GLDriver.bundle", "children": [ { "value": 11224, "name": "Contents", "path": "Extensions/AMDRadeonX3000GLDriver.bundle/Contents" } ] }, { "value": 4532, "name": "AMDRadeonX4000.kext", "path": "Extensions/AMDRadeonX4000.kext", "children": [ { "value": 4532, "name": "Contents", "path": "Extensions/AMDRadeonX4000.kext/Contents" } ] }, { "value": 17144, "name": "AMDRadeonX4000GLDriver.bundle", "path": "Extensions/AMDRadeonX4000GLDriver.bundle", "children": [ { "value": 17144, "name": "Contents", "path": "Extensions/AMDRadeonX4000GLDriver.bundle/Contents" } ] }, { "value": 544, "name": "AMDSupport.kext", "path": "Extensions/AMDSupport.kext", "children": [ { "value": 544, "name": "Contents", "path": "Extensions/AMDSupport.kext/Contents" } ] }, { "value": 148, "name": "Apple16X50Serial.kext", "path": "Extensions/Apple16X50Serial.kext", "children": [ { "value": 148, "name": "Contents", "path": "Extensions/Apple16X50Serial.kext/Contents" } ] }, { "value": 60, "name": "Apple_iSight.kext", "path": "Extensions/Apple_iSight.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/Apple_iSight.kext/Contents" } ] }, { "value": 596, "name": "AppleACPIPlatform.kext", "path": "Extensions/AppleACPIPlatform.kext", "children": [ { "value": 596, "name": "Contents", "path": "Extensions/AppleACPIPlatform.kext/Contents" } ] }, { "value": 208, "name": "AppleAHCIPort.kext", "path": "Extensions/AppleAHCIPort.kext", "children": [ { "value": 208, "name": "Contents", "path": "Extensions/AppleAHCIPort.kext/Contents" } ] }, { "value": 56, "name": "AppleAPIC.kext", "path": "Extensions/AppleAPIC.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleAPIC.kext/Contents" } ] }, { "value": 84, "name": "AppleBacklight.kext", "path": "Extensions/AppleBacklight.kext", "children": [ { "value": 84, "name": "Contents", "path": "Extensions/AppleBacklight.kext/Contents" } ] }, { "value": 56, "name": "AppleBacklightExpert.kext", "path": "Extensions/AppleBacklightExpert.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/AppleBacklightExpert.kext/_CodeSignature" } ] }, { "value": 180, "name": "AppleBluetoothMultitouch.kext", "path": "Extensions/AppleBluetoothMultitouch.kext", "children": [ { "value": 180, "name": "Contents", "path": "Extensions/AppleBluetoothMultitouch.kext/Contents" } ] }, { "value": 80, "name": "AppleBMC.kext", "path": "Extensions/AppleBMC.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/AppleBMC.kext/Contents" } ] }, { "value": 152, "name": "AppleCameraInterface.kext", "path": "Extensions/AppleCameraInterface.kext", "children": [ { "value": 152, "name": "Contents", "path": "Extensions/AppleCameraInterface.kext/Contents" } ] }, { "value": 152, "name": "AppleEFIRuntime.kext", "path": "Extensions/AppleEFIRuntime.kext", "children": [ { "value": 152, "name": "Contents", "path": "Extensions/AppleEFIRuntime.kext/Contents" } ] }, { "value": 88, "name": "AppleFDEKeyStore.kext", "path": "Extensions/AppleFDEKeyStore.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/AppleFDEKeyStore.kext/Contents" } ] }, { "value": 48, "name": "AppleFileSystemDriver.kext", "path": "Extensions/AppleFileSystemDriver.kext", "children": [ { "value": 48, "name": "Contents", "path": "Extensions/AppleFileSystemDriver.kext/Contents" } ] }, { "value": 56, "name": "AppleFSCompressionTypeDataless.kext", "path": "Extensions/AppleFSCompressionTypeDataless.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleFSCompressionTypeDataless.kext/Contents" } ] }, { "value": 60, "name": "AppleFSCompressionTypeZlib.kext", "path": "Extensions/AppleFSCompressionTypeZlib.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/AppleFSCompressionTypeZlib.kext/Contents" } ] }, { "value": 628, "name": "AppleFWAudio.kext", "path": "Extensions/AppleFWAudio.kext", "children": [ { "value": 628, "name": "Contents", "path": "Extensions/AppleFWAudio.kext/Contents" } ] }, { "value": 396, "name": "AppleGraphicsControl.kext", "path": "Extensions/AppleGraphicsControl.kext", "children": [ { "value": 396, "name": "Contents", "path": "Extensions/AppleGraphicsControl.kext/Contents" } ] }, { "value": 276, "name": "AppleGraphicsPowerManagement.kext", "path": "Extensions/AppleGraphicsPowerManagement.kext", "children": [ { "value": 276, "name": "Contents", "path": "Extensions/AppleGraphicsPowerManagement.kext/Contents" } ] }, { "value": 3112, "name": "AppleHDA.kext", "path": "Extensions/AppleHDA.kext", "children": [ { "value": 3112, "name": "Contents", "path": "Extensions/AppleHDA.kext/Contents" } ] }, { "value": 488, "name": "AppleHIDKeyboard.kext", "path": "Extensions/AppleHIDKeyboard.kext", "children": [ { "value": 488, "name": "Contents", "path": "Extensions/AppleHIDKeyboard.kext/Contents" } ] }, { "value": 184, "name": "AppleHIDMouse.kext", "path": "Extensions/AppleHIDMouse.kext", "children": [ { "value": 184, "name": "Contents", "path": "Extensions/AppleHIDMouse.kext/Contents" } ] }, { "value": 52, "name": "AppleHPET.kext", "path": "Extensions/AppleHPET.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/AppleHPET.kext/Contents" } ] }, { "value": 64, "name": "AppleHSSPIHIDDriver.kext", "path": "Extensions/AppleHSSPIHIDDriver.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleHSSPIHIDDriver.kext/Contents" } ] }, { "value": 144, "name": "AppleHSSPISupport.kext", "path": "Extensions/AppleHSSPISupport.kext", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/AppleHSSPISupport.kext/Contents" } ] }, { "value": 64, "name": "AppleHWAccess.kext", "path": "Extensions/AppleHWAccess.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleHWAccess.kext/Contents" } ] }, { "value": 72, "name": "AppleHWSensor.kext", "path": "Extensions/AppleHWSensor.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleHWSensor.kext/Contents" } ] }, { "value": 244, "name": "AppleIntelCPUPowerManagement.kext", "path": "Extensions/AppleIntelCPUPowerManagement.kext", "children": [ { "value": 244, "name": "Contents", "path": "Extensions/AppleIntelCPUPowerManagement.kext/Contents" } ] }, { "value": 52, "name": "AppleIntelCPUPowerManagementClient.kext", "path": "Extensions/AppleIntelCPUPowerManagementClient.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/AppleIntelCPUPowerManagementClient.kext/Contents" } ] }, { "value": 480, "name": "AppleIntelFramebufferAzul.kext", "path": "Extensions/AppleIntelFramebufferAzul.kext", "children": [ { "value": 480, "name": "Contents", "path": "Extensions/AppleIntelFramebufferAzul.kext/Contents" } ] }, { "value": 492, "name": "AppleIntelFramebufferCapri.kext", "path": "Extensions/AppleIntelFramebufferCapri.kext", "children": [ { "value": 492, "name": "Contents", "path": "Extensions/AppleIntelFramebufferCapri.kext/Contents" } ] }, { "value": 604, "name": "AppleIntelHD3000Graphics.kext", "path": "Extensions/AppleIntelHD3000Graphics.kext", "children": [ { "value": 604, "name": "Contents", "path": "Extensions/AppleIntelHD3000Graphics.kext/Contents" } ] }, { "value": 64, "name": "AppleIntelHD3000GraphicsGA.plugin", "path": "Extensions/AppleIntelHD3000GraphicsGA.plugin", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleIntelHD3000GraphicsGA.plugin/Contents" } ] }, { "value": 9164, "name": "AppleIntelHD3000GraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHD3000GraphicsGLDriver.bundle", "children": [ { "value": 9164, "name": "Contents", "path": "Extensions/AppleIntelHD3000GraphicsGLDriver.bundle/Contents" } ] }, { "value": 2520, "name": "AppleIntelHD3000GraphicsVADriver.bundle", "path": "Extensions/AppleIntelHD3000GraphicsVADriver.bundle", "children": [ { "value": 2520, "name": "Contents", "path": "Extensions/AppleIntelHD3000GraphicsVADriver.bundle/Contents" } ] }, { "value": 536, "name": "AppleIntelHD4000Graphics.kext", "path": "Extensions/AppleIntelHD4000Graphics.kext", "children": [ { "value": 536, "name": "Contents", "path": "Extensions/AppleIntelHD4000Graphics.kext/Contents" } ] }, { "value": 22996, "name": "AppleIntelHD4000GraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHD4000GraphicsGLDriver.bundle", "children": [ { "value": 22996, "name": "Contents", "path": "Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents" } ] }, { "value": 3608, "name": "AppleIntelHD4000GraphicsVADriver.bundle", "path": "Extensions/AppleIntelHD4000GraphicsVADriver.bundle", "children": [ { "value": 3608, "name": "Contents", "path": "Extensions/AppleIntelHD4000GraphicsVADriver.bundle/Contents" } ] }, { "value": 564, "name": "AppleIntelHD5000Graphics.kext", "path": "Extensions/AppleIntelHD5000Graphics.kext", "children": [ { "value": 564, "name": "Contents", "path": "Extensions/AppleIntelHD5000Graphics.kext/Contents" } ] }, { "value": 20692, "name": "AppleIntelHD5000GraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHD5000GraphicsGLDriver.bundle", "children": [ { "value": 20692, "name": "Contents", "path": "Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents" } ] }, { "value": 6120, "name": "AppleIntelHD5000GraphicsVADriver.bundle", "path": "Extensions/AppleIntelHD5000GraphicsVADriver.bundle", "children": [ { "value": 6120, "name": "Contents", "path": "Extensions/AppleIntelHD5000GraphicsVADriver.bundle/Contents" } ] }, { "value": 976, "name": "AppleIntelHDGraphics.kext", "path": "Extensions/AppleIntelHDGraphics.kext", "children": [ { "value": 976, "name": "Contents", "path": "Extensions/AppleIntelHDGraphics.kext/Contents" } ] }, { "value": 148, "name": "AppleIntelHDGraphicsFB.kext", "path": "Extensions/AppleIntelHDGraphicsFB.kext", "children": [ { "value": 148, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsFB.kext/Contents" } ] }, { "value": 64, "name": "AppleIntelHDGraphicsGA.plugin", "path": "Extensions/AppleIntelHDGraphicsGA.plugin", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsGA.plugin/Contents" } ] }, { "value": 9108, "name": "AppleIntelHDGraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHDGraphicsGLDriver.bundle", "children": [ { "value": 9108, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsGLDriver.bundle/Contents" } ] }, { "value": 104, "name": "AppleIntelHDGraphicsVADriver.bundle", "path": "Extensions/AppleIntelHDGraphicsVADriver.bundle", "children": [ { "value": 104, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsVADriver.bundle/Contents" } ] }, { "value": 96, "name": "AppleIntelHSWVA.bundle", "path": "Extensions/AppleIntelHSWVA.bundle", "children": [ { "value": 96, "name": "Contents", "path": "Extensions/AppleIntelHSWVA.bundle/Contents" } ] }, { "value": 96, "name": "AppleIntelIVBVA.bundle", "path": "Extensions/AppleIntelIVBVA.bundle", "children": [ { "value": 96, "name": "Contents", "path": "Extensions/AppleIntelIVBVA.bundle/Contents" } ] }, { "value": 72, "name": "AppleIntelLpssDmac.kext", "path": "Extensions/AppleIntelLpssDmac.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleIntelLpssDmac.kext/Contents" } ] }, { "value": 76, "name": "AppleIntelLpssGspi.kext", "path": "Extensions/AppleIntelLpssGspi.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleIntelLpssGspi.kext/Contents" } ] }, { "value": 132, "name": "AppleIntelLpssSpiController.kext", "path": "Extensions/AppleIntelLpssSpiController.kext", "children": [ { "value": 132, "name": "Contents", "path": "Extensions/AppleIntelLpssSpiController.kext/Contents" } ] }, { "value": 308, "name": "AppleIntelSNBGraphicsFB.kext", "path": "Extensions/AppleIntelSNBGraphicsFB.kext", "children": [ { "value": 308, "name": "Contents", "path": "Extensions/AppleIntelSNBGraphicsFB.kext/Contents" } ] }, { "value": 144, "name": "AppleIntelSNBVA.bundle", "path": "Extensions/AppleIntelSNBVA.bundle", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/AppleIntelSNBVA.bundle/Contents" } ] }, { "value": 72, "name": "AppleIRController.kext", "path": "Extensions/AppleIRController.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleIRController.kext/Contents" } ] }, { "value": 208, "name": "AppleKextExcludeList.kext", "path": "Extensions/AppleKextExcludeList.kext", "children": [ { "value": 208, "name": "Contents", "path": "Extensions/AppleKextExcludeList.kext/Contents" } ] }, { "value": 120, "name": "AppleKeyStore.kext", "path": "Extensions/AppleKeyStore.kext", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/AppleKeyStore.kext/Contents" } ] }, { "value": 48, "name": "AppleKeyswitch.kext", "path": "Extensions/AppleKeyswitch.kext", "children": [ { "value": 48, "name": "Contents", "path": "Extensions/AppleKeyswitch.kext/Contents" } ] }, { "value": 56, "name": "AppleLPC.kext", "path": "Extensions/AppleLPC.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleLPC.kext/Contents" } ] }, { "value": 188, "name": "AppleLSIFusionMPT.kext", "path": "Extensions/AppleLSIFusionMPT.kext", "children": [ { "value": 188, "name": "Contents", "path": "Extensions/AppleLSIFusionMPT.kext/Contents" } ] }, { "value": 36, "name": "AppleMatch.kext", "path": "Extensions/AppleMatch.kext", "children": [ { "value": 36, "name": "Contents", "path": "Extensions/AppleMatch.kext/Contents" } ] }, { "value": 140, "name": "AppleMCCSControl.kext", "path": "Extensions/AppleMCCSControl.kext", "children": [ { "value": 140, "name": "Contents", "path": "Extensions/AppleMCCSControl.kext/Contents" } ] }, { "value": 64, "name": "AppleMCEDriver.kext", "path": "Extensions/AppleMCEDriver.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleMCEDriver.kext/Contents" } ] }, { "value": 76, "name": "AppleMCP89RootPortPM.kext", "path": "Extensions/AppleMCP89RootPortPM.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleMCP89RootPortPM.kext/Contents" } ] }, { "value": 156, "name": "AppleMIDIFWDriver.plugin", "path": "Extensions/AppleMIDIFWDriver.plugin", "children": [ { "value": 156, "name": "Contents", "path": "Extensions/AppleMIDIFWDriver.plugin/Contents" } ] }, { "value": 236, "name": "AppleMIDIIACDriver.plugin", "path": "Extensions/AppleMIDIIACDriver.plugin", "children": [ { "value": 236, "name": "Contents", "path": "Extensions/AppleMIDIIACDriver.plugin/Contents" } ] }, { "value": 416, "name": "AppleMIDIRTPDriver.plugin", "path": "Extensions/AppleMIDIRTPDriver.plugin", "children": [ { "value": 416, "name": "Contents", "path": "Extensions/AppleMIDIRTPDriver.plugin/Contents" } ] }, { "value": 248, "name": "AppleMIDIUSBDriver.plugin", "path": "Extensions/AppleMIDIUSBDriver.plugin", "children": [ { "value": 248, "name": "Contents", "path": "Extensions/AppleMIDIUSBDriver.plugin/Contents" } ] }, { "value": 68, "name": "AppleMikeyHIDDriver.kext", "path": "Extensions/AppleMikeyHIDDriver.kext", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/AppleMikeyHIDDriver.kext/Contents" } ] }, { "value": 28, "name": "AppleMobileDevice.kext", "path": "Extensions/AppleMobileDevice.kext", "children": [ { "value": 28, "name": "Contents", "path": "Extensions/AppleMobileDevice.kext/Contents" } ] }, { "value": 860, "name": "AppleMultitouchDriver.kext", "path": "Extensions/AppleMultitouchDriver.kext", "children": [ { "value": 860, "name": "Contents", "path": "Extensions/AppleMultitouchDriver.kext/Contents" } ] }, { "value": 136, "name": "ApplePlatformEnabler.kext", "path": "Extensions/ApplePlatformEnabler.kext", "children": [ { "value": 136, "name": "Contents", "path": "Extensions/ApplePlatformEnabler.kext/Contents" } ] }, { "value": 240, "name": "AppleRAID.kext", "path": "Extensions/AppleRAID.kext", "children": [ { "value": 240, "name": "Contents", "path": "Extensions/AppleRAID.kext/Contents" } ] }, { "value": 372, "name": "AppleRAIDCard.kext", "path": "Extensions/AppleRAIDCard.kext", "children": [ { "value": 372, "name": "Contents", "path": "Extensions/AppleRAIDCard.kext/Contents" } ] }, { "value": 80, "name": "AppleRTC.kext", "path": "Extensions/AppleRTC.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/AppleRTC.kext/Contents" } ] }, { "value": 148, "name": "AppleSDXC.kext", "path": "Extensions/AppleSDXC.kext", "children": [ { "value": 148, "name": "Contents", "path": "Extensions/AppleSDXC.kext/Contents" } ] }, { "value": 76, "name": "AppleSEP.kext", "path": "Extensions/AppleSEP.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleSEP.kext/Contents" } ] }, { "value": 88, "name": "AppleSmartBatteryManager.kext", "path": "Extensions/AppleSmartBatteryManager.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/AppleSmartBatteryManager.kext/Contents" } ] }, { "value": 60, "name": "AppleSMBIOS.kext", "path": "Extensions/AppleSMBIOS.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/AppleSMBIOS.kext/Contents" } ] }, { "value": 116, "name": "AppleSMBusController.kext", "path": "Extensions/AppleSMBusController.kext", "children": [ { "value": 116, "name": "Contents", "path": "Extensions/AppleSMBusController.kext/Contents" } ] }, { "value": 56, "name": "AppleSMBusPCI.kext", "path": "Extensions/AppleSMBusPCI.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleSMBusPCI.kext/Contents" } ] }, { "value": 120, "name": "AppleSMC.kext", "path": "Extensions/AppleSMC.kext", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/AppleSMC.kext/Contents" } ] }, { "value": 172, "name": "AppleSMCLMU.kext", "path": "Extensions/AppleSMCLMU.kext", "children": [ { "value": 172, "name": "Contents", "path": "Extensions/AppleSMCLMU.kext/Contents" } ] }, { "value": 88, "name": "AppleSRP.kext", "path": "Extensions/AppleSRP.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/AppleSRP.kext/Contents" } ] }, { "value": 1936, "name": "AppleStorageDrivers.kext", "path": "Extensions/AppleStorageDrivers.kext", "children": [ { "value": 1936, "name": "Contents", "path": "Extensions/AppleStorageDrivers.kext/Contents" } ] }, { "value": 264, "name": "AppleThunderboltDPAdapters.kext", "path": "Extensions/AppleThunderboltDPAdapters.kext", "children": [ { "value": 264, "name": "Contents", "path": "Extensions/AppleThunderboltDPAdapters.kext/Contents" } ] }, { "value": 204, "name": "AppleThunderboltEDMService.kext", "path": "Extensions/AppleThunderboltEDMService.kext", "children": [ { "value": 204, "name": "Contents", "path": "Extensions/AppleThunderboltEDMService.kext/Contents" } ] }, { "value": 216, "name": "AppleThunderboltIP.kext", "path": "Extensions/AppleThunderboltIP.kext", "children": [ { "value": 216, "name": "Contents", "path": "Extensions/AppleThunderboltIP.kext/Contents" } ] }, { "value": 168, "name": "AppleThunderboltNHI.kext", "path": "Extensions/AppleThunderboltNHI.kext", "children": [ { "value": 168, "name": "Contents", "path": "Extensions/AppleThunderboltNHI.kext/Contents" } ] }, { "value": 172, "name": "AppleThunderboltPCIAdapters.kext", "path": "Extensions/AppleThunderboltPCIAdapters.kext", "children": [ { "value": 172, "name": "Contents", "path": "Extensions/AppleThunderboltPCIAdapters.kext/Contents" } ] }, { "value": 164, "name": "AppleThunderboltUTDM.kext", "path": "Extensions/AppleThunderboltUTDM.kext", "children": [ { "value": 164, "name": "Contents", "path": "Extensions/AppleThunderboltUTDM.kext/Contents" } ] }, { "value": 188, "name": "AppleTopCase.kext", "path": "Extensions/AppleTopCase.kext", "children": [ { "value": 188, "name": "Contents", "path": "Extensions/AppleTopCase.kext/Contents" } ] }, { "value": 92, "name": "AppleTyMCEDriver.kext", "path": "Extensions/AppleTyMCEDriver.kext", "children": [ { "value": 92, "name": "Contents", "path": "Extensions/AppleTyMCEDriver.kext/Contents" } ] }, { "value": 72, "name": "AppleUpstreamUserClient.kext", "path": "Extensions/AppleUpstreamUserClient.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleUpstreamUserClient.kext/Contents" } ] }, { "value": 408, "name": "AppleUSBAudio.kext", "path": "Extensions/AppleUSBAudio.kext", "children": [ { "value": 408, "name": "Contents", "path": "Extensions/AppleUSBAudio.kext/Contents" } ] }, { "value": 76, "name": "AppleUSBDisplays.kext", "path": "Extensions/AppleUSBDisplays.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleUSBDisplays.kext/Contents" } ] }, { "value": 144, "name": "AppleUSBEthernetHost.kext", "path": "Extensions/AppleUSBEthernetHost.kext", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/AppleUSBEthernetHost.kext/Contents" } ] }, { "value": 160, "name": "AppleUSBMultitouch.kext", "path": "Extensions/AppleUSBMultitouch.kext", "children": [ { "value": 160, "name": "Contents", "path": "Extensions/AppleUSBMultitouch.kext/Contents" } ] }, { "value": 728, "name": "AppleUSBTopCase.kext", "path": "Extensions/AppleUSBTopCase.kext", "children": [ { "value": 728, "name": "Contents", "path": "Extensions/AppleUSBTopCase.kext/Contents" } ] }, { "value": 3576, "name": "AppleVADriver.bundle", "path": "Extensions/AppleVADriver.bundle", "children": [ { "value": 3576, "name": "Contents", "path": "Extensions/AppleVADriver.bundle/Contents" } ] }, { "value": 60, "name": "AppleWWANAutoEject.kext", "path": "Extensions/AppleWWANAutoEject.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/AppleWWANAutoEject.kext/Contents" } ] }, { "value": 56, "name": "AppleXsanFilter.kext", "path": "Extensions/AppleXsanFilter.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleXsanFilter.kext/Contents" } ] }, { "value": 2976, "name": "ATIRadeonX2000.kext", "path": "Extensions/ATIRadeonX2000.kext", "children": [ { "value": 2976, "name": "Contents", "path": "Extensions/ATIRadeonX2000.kext/Contents" } ] }, { "value": 88, "name": "ATIRadeonX2000GA.plugin", "path": "Extensions/ATIRadeonX2000GA.plugin", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/ATIRadeonX2000GA.plugin/Contents" } ] }, { "value": 5808, "name": "ATIRadeonX2000GLDriver.bundle", "path": "Extensions/ATIRadeonX2000GLDriver.bundle", "children": [ { "value": 5808, "name": "Contents", "path": "Extensions/ATIRadeonX2000GLDriver.bundle/Contents" } ] }, { "value": 396, "name": "ATIRadeonX2000VADriver.bundle", "path": "Extensions/ATIRadeonX2000VADriver.bundle", "children": [ { "value": 396, "name": "Contents", "path": "Extensions/ATIRadeonX2000VADriver.bundle/Contents" } ] }, { "value": 496, "name": "ATTOCelerityFC.kext", "path": "Extensions/ATTOCelerityFC.kext", "children": [ { "value": 496, "name": "Contents", "path": "Extensions/ATTOCelerityFC.kext/Contents" } ] }, { "value": 268, "name": "ATTOExpressPCI4.kext", "path": "Extensions/ATTOExpressPCI4.kext", "children": [ { "value": 268, "name": "Contents", "path": "Extensions/ATTOExpressPCI4.kext/Contents" } ] }, { "value": 252, "name": "ATTOExpressSASHBA.kext", "path": "Extensions/ATTOExpressSASHBA.kext", "children": [ { "value": 252, "name": "Contents", "path": "Extensions/ATTOExpressSASHBA.kext/Contents" } ] }, { "value": 388, "name": "ATTOExpressSASHBA3.kext", "path": "Extensions/ATTOExpressSASHBA3.kext", "children": [ { "value": 388, "name": "Contents", "path": "Extensions/ATTOExpressSASHBA3.kext/Contents" } ] }, { "value": 212, "name": "ATTOExpressSASRAID.kext", "path": "Extensions/ATTOExpressSASRAID.kext", "children": [ { "value": 212, "name": "Contents", "path": "Extensions/ATTOExpressSASRAID.kext/Contents" } ] }, { "value": 72, "name": "AudioAUUC.kext", "path": "Extensions/AudioAUUC.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/AudioAUUC.kext/_CodeSignature" } ] }, { "value": 144, "name": "autofs.kext", "path": "Extensions/autofs.kext", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/autofs.kext/Contents" } ] }, { "value": 80, "name": "BootCache.kext", "path": "Extensions/BootCache.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/BootCache.kext/Contents" } ] }, { "value": 64, "name": "cd9660.kext", "path": "Extensions/cd9660.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/cd9660.kext/Contents" } ] }, { "value": 48, "name": "cddafs.kext", "path": "Extensions/cddafs.kext", "children": [ { "value": 48, "name": "Contents", "path": "Extensions/cddafs.kext/Contents" } ] }, { "value": 432, "name": "CellPhoneHelper.kext", "path": "Extensions/CellPhoneHelper.kext", "children": [ { "value": 432, "name": "Contents", "path": "Extensions/CellPhoneHelper.kext/Contents" } ] }, { "value": 0, "name": "ch34xsigned.kext", "path": "Extensions/ch34xsigned.kext" }, { "value": 308, "name": "corecrypto.kext", "path": "Extensions/corecrypto.kext", "children": [ { "value": 308, "name": "Contents", "path": "Extensions/corecrypto.kext/Contents" } ] }, { "value": 1324, "name": "CoreStorage.kext", "path": "Extensions/CoreStorage.kext", "children": [ { "value": 1324, "name": "Contents", "path": "Extensions/CoreStorage.kext/Contents" } ] }, { "value": 72, "name": "DontSteal Mac OS X.kext", "path": "Extensions/DontSteal Mac OS X.kext", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/DontSteal Mac OS X.kext/Contents" } ] }, { "value": 36, "name": "DSACL.ppp", "path": "Extensions/DSACL.ppp", "children": [ { "value": 36, "name": "Contents", "path": "Extensions/DSACL.ppp/Contents" } ] }, { "value": 40, "name": "DSAuth.ppp", "path": "Extensions/DSAuth.ppp", "children": [ { "value": 40, "name": "Contents", "path": "Extensions/DSAuth.ppp/Contents" } ] }, { "value": 56, "name": "DVFamily.bundle", "path": "Extensions/DVFamily.bundle", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/DVFamily.bundle/Contents" } ] }, { "value": 312, "name": "EAP-KRB.ppp", "path": "Extensions/EAP-KRB.ppp", "children": [ { "value": 312, "name": "Contents", "path": "Extensions/EAP-KRB.ppp/Contents" } ] }, { "value": 792, "name": "EAP-RSA.ppp", "path": "Extensions/EAP-RSA.ppp", "children": [ { "value": 792, "name": "Contents", "path": "Extensions/EAP-RSA.ppp/Contents" } ] }, { "value": 308, "name": "EAP-TLS.ppp", "path": "Extensions/EAP-TLS.ppp", "children": [ { "value": 308, "name": "Contents", "path": "Extensions/EAP-TLS.ppp/Contents" } ] }, { "value": 88, "name": "exfat.kext", "path": "Extensions/exfat.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/exfat.kext/Contents" } ] }, { "value": 776, "name": "GeForce.kext", "path": "Extensions/GeForce.kext", "children": [ { "value": 776, "name": "Contents", "path": "Extensions/GeForce.kext/Contents" } ] }, { "value": 160, "name": "GeForceGA.plugin", "path": "Extensions/GeForceGA.plugin", "children": [ { "value": 160, "name": "Contents", "path": "Extensions/GeForceGA.plugin/Contents" } ] }, { "value": 67212, "name": "GeForceGLDriver.bundle", "path": "Extensions/GeForceGLDriver.bundle", "children": [ { "value": 67212, "name": "Contents", "path": "Extensions/GeForceGLDriver.bundle/Contents" } ] }, { "value": 1100, "name": "GeForceTesla.kext", "path": "Extensions/GeForceTesla.kext", "children": [ { "value": 1100, "name": "Contents", "path": "Extensions/GeForceTesla.kext/Contents" } ] }, { "value": 67012, "name": "GeForceTeslaGLDriver.bundle", "path": "Extensions/GeForceTeslaGLDriver.bundle", "children": [ { "value": 67012, "name": "Contents", "path": "Extensions/GeForceTeslaGLDriver.bundle/Contents" } ] }, { "value": 1584, "name": "GeForceTeslaVADriver.bundle", "path": "Extensions/GeForceTeslaVADriver.bundle", "children": [ { "value": 1584, "name": "Contents", "path": "Extensions/GeForceTeslaVADriver.bundle/Contents" } ] }, { "value": 1476, "name": "GeForceVADriver.bundle", "path": "Extensions/GeForceVADriver.bundle", "children": [ { "value": 1476, "name": "Contents", "path": "Extensions/GeForceVADriver.bundle/Contents" } ] }, { "value": 212, "name": "intelhaxm.kext", "path": "Extensions/intelhaxm.kext", "children": [ { "value": 212, "name": "Contents", "path": "Extensions/intelhaxm.kext/Contents" } ] }, { "value": 10488, "name": "IO80211Family.kext", "path": "Extensions/IO80211Family.kext", "children": [ { "value": 10488, "name": "Contents", "path": "Extensions/IO80211Family.kext/Contents" } ] }, { "value": 56, "name": "IOAccelerator2D.plugin", "path": "Extensions/IOAccelerator2D.plugin", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/IOAccelerator2D.plugin/Contents" } ] }, { "value": 448, "name": "IOAcceleratorFamily.kext", "path": "Extensions/IOAcceleratorFamily.kext", "children": [ { "value": 448, "name": "Contents", "path": "Extensions/IOAcceleratorFamily.kext/Contents" } ] }, { "value": 508, "name": "IOAcceleratorFamily2.kext", "path": "Extensions/IOAcceleratorFamily2.kext", "children": [ { "value": 508, "name": "Contents", "path": "Extensions/IOAcceleratorFamily2.kext/Contents" } ] }, { "value": 76, "name": "IOACPIFamily.kext", "path": "Extensions/IOACPIFamily.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/IOACPIFamily.kext/Contents" } ] }, { "value": 448, "name": "IOAHCIFamily.kext", "path": "Extensions/IOAHCIFamily.kext", "children": [ { "value": 448, "name": "Contents", "path": "Extensions/IOAHCIFamily.kext/Contents" } ] }, { "value": 872, "name": "IOATAFamily.kext", "path": "Extensions/IOATAFamily.kext", "children": [ { "value": 872, "name": "Contents", "path": "Extensions/IOATAFamily.kext/Contents" } ] }, { "value": 276, "name": "IOAudioFamily.kext", "path": "Extensions/IOAudioFamily.kext", "children": [ { "value": 276, "name": "Contents", "path": "Extensions/IOAudioFamily.kext/Contents" } ] }, { "value": 692, "name": "IOAVBFamily.kext", "path": "Extensions/IOAVBFamily.kext", "children": [ { "value": 692, "name": "Contents", "path": "Extensions/IOAVBFamily.kext/Contents" } ] }, { "value": 4808, "name": "IOBDStorageFamily.kext", "path": "Extensions/IOBDStorageFamily.kext", "children": [ { "value": 4808, "name": "Contents", "path": "Extensions/IOBDStorageFamily.kext/Contents" } ] }, { "value": 4460, "name": "IOBluetoothFamily.kext", "path": "Extensions/IOBluetoothFamily.kext", "children": [ { "value": 4460, "name": "Contents", "path": "Extensions/IOBluetoothFamily.kext/Contents" } ] }, { "value": 260, "name": "IOBluetoothHIDDriver.kext", "path": "Extensions/IOBluetoothHIDDriver.kext", "children": [ { "value": 260, "name": "Contents", "path": "Extensions/IOBluetoothHIDDriver.kext/Contents" } ] }, { "value": 4816, "name": "IOCDStorageFamily.kext", "path": "Extensions/IOCDStorageFamily.kext", "children": [ { "value": 4816, "name": "Contents", "path": "Extensions/IOCDStorageFamily.kext/Contents" } ] }, { "value": 9656, "name": "IODVDStorageFamily.kext", "path": "Extensions/IODVDStorageFamily.kext", "children": [ { "value": 9656, "name": "Contents", "path": "Extensions/IODVDStorageFamily.kext/Contents" } ] }, { "value": 288, "name": "IOFireWireAVC.kext", "path": "Extensions/IOFireWireAVC.kext", "children": [ { "value": 288, "name": "Contents", "path": "Extensions/IOFireWireAVC.kext/Contents" } ] }, { "value": 1424, "name": "IOFireWireFamily.kext", "path": "Extensions/IOFireWireFamily.kext", "children": [ { "value": 1424, "name": "Contents", "path": "Extensions/IOFireWireFamily.kext/Contents" } ] }, { "value": 236, "name": "IOFireWireIP.kext", "path": "Extensions/IOFireWireIP.kext", "children": [ { "value": 236, "name": "Contents", "path": "Extensions/IOFireWireIP.kext/Contents" } ] }, { "value": 288, "name": "IOFireWireSBP2.kext", "path": "Extensions/IOFireWireSBP2.kext", "children": [ { "value": 288, "name": "Contents", "path": "Extensions/IOFireWireSBP2.kext/Contents" } ] }, { "value": 68, "name": "IOFireWireSerialBusProtocolTransport.kext", "path": "Extensions/IOFireWireSerialBusProtocolTransport.kext", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/IOFireWireSerialBusProtocolTransport.kext/Contents" } ] }, { "value": 320, "name": "IOGraphicsFamily.kext", "path": "Extensions/IOGraphicsFamily.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/IOGraphicsFamily.kext/_CodeSignature" } ] }, { "value": 804, "name": "IOHDIXController.kext", "path": "Extensions/IOHDIXController.kext", "children": [ { "value": 804, "name": "Contents", "path": "Extensions/IOHDIXController.kext/Contents" } ] }, { "value": 940, "name": "IOHIDFamily.kext", "path": "Extensions/IOHIDFamily.kext", "children": [ { "value": 940, "name": "Contents", "path": "Extensions/IOHIDFamily.kext/Contents" } ] }, { "value": 108, "name": "IONDRVSupport.kext", "path": "Extensions/IONDRVSupport.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/IONDRVSupport.kext/_CodeSignature" } ] }, { "value": 2396, "name": "IONetworkingFamily.kext", "path": "Extensions/IONetworkingFamily.kext", "children": [ { "value": 2396, "name": "Contents", "path": "Extensions/IONetworkingFamily.kext/Contents" } ] }, { "value": 228, "name": "IOPCIFamily.kext", "path": "Extensions/IOPCIFamily.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/IOPCIFamily.kext/_CodeSignature" } ] }, { "value": 1400, "name": "IOPlatformPluginFamily.kext", "path": "Extensions/IOPlatformPluginFamily.kext", "children": [ { "value": 1400, "name": "Contents", "path": "Extensions/IOPlatformPluginFamily.kext/Contents" } ] }, { "value": 108, "name": "IOReportFamily.kext", "path": "Extensions/IOReportFamily.kext", "children": [ { "value": 108, "name": "Contents", "path": "Extensions/IOReportFamily.kext/Contents" } ] }, { "value": 13020, "name": "IOSCSIArchitectureModelFamily.kext", "path": "Extensions/IOSCSIArchitectureModelFamily.kext", "children": [ { "value": 13020, "name": "Contents", "path": "Extensions/IOSCSIArchitectureModelFamily.kext/Contents" } ] }, { "value": 120, "name": "IOSCSIParallelFamily.kext", "path": "Extensions/IOSCSIParallelFamily.kext", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/IOSCSIParallelFamily.kext/Contents" } ] }, { "value": 1292, "name": "IOSerialFamily.kext", "path": "Extensions/IOSerialFamily.kext", "children": [ { "value": 1292, "name": "Contents", "path": "Extensions/IOSerialFamily.kext/Contents" } ] }, { "value": 52, "name": "IOSMBusFamily.kext", "path": "Extensions/IOSMBusFamily.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/IOSMBusFamily.kext/Contents" } ] }, { "value": 2064, "name": "IOStorageFamily.kext", "path": "Extensions/IOStorageFamily.kext", "children": [ { "value": 2064, "name": "Contents", "path": "Extensions/IOStorageFamily.kext/Contents" } ] }, { "value": 164, "name": "IOStreamFamily.kext", "path": "Extensions/IOStreamFamily.kext", "children": [ { "value": 164, "name": "Contents", "path": "Extensions/IOStreamFamily.kext/Contents" } ] }, { "value": 124, "name": "IOSurface.kext", "path": "Extensions/IOSurface.kext", "children": [ { "value": 124, "name": "Contents", "path": "Extensions/IOSurface.kext/Contents" } ] }, { "value": 1040, "name": "IOThunderboltFamily.kext", "path": "Extensions/IOThunderboltFamily.kext", "children": [ { "value": 1040, "name": "Contents", "path": "Extensions/IOThunderboltFamily.kext/Contents" } ] }, { "value": 248, "name": "IOTimeSyncFamily.kext", "path": "Extensions/IOTimeSyncFamily.kext", "children": [ { "value": 248, "name": "Contents", "path": "Extensions/IOTimeSyncFamily.kext/Contents" } ] }, { "value": 96, "name": "IOUSBAttachedSCSI.kext", "path": "Extensions/IOUSBAttachedSCSI.kext", "children": [ { "value": 96, "name": "Contents", "path": "Extensions/IOUSBAttachedSCSI.kext/Contents" } ] }, { "value": 4628, "name": "IOUSBFamily.kext", "path": "Extensions/IOUSBFamily.kext", "children": [ { "value": 4628, "name": "Contents", "path": "Extensions/IOUSBFamily.kext/Contents" } ] }, { "value": 140, "name": "IOUSBMassStorageClass.kext", "path": "Extensions/IOUSBMassStorageClass.kext", "children": [ { "value": 140, "name": "Contents", "path": "Extensions/IOUSBMassStorageClass.kext/Contents" } ] }, { "value": 100, "name": "IOUserEthernet.kext", "path": "Extensions/IOUserEthernet.kext", "children": [ { "value": 100, "name": "Contents", "path": "Extensions/IOUserEthernet.kext/Contents" } ] }, { "value": 172, "name": "IOVideoFamily.kext", "path": "Extensions/IOVideoFamily.kext", "children": [ { "value": 172, "name": "Contents", "path": "Extensions/IOVideoFamily.kext/Contents" } ] }, { "value": 168, "name": "iPodDriver.kext", "path": "Extensions/iPodDriver.kext", "children": [ { "value": 168, "name": "Contents", "path": "Extensions/iPodDriver.kext/Contents" } ] }, { "value": 108, "name": "JMicronATA.kext", "path": "Extensions/JMicronATA.kext", "children": [ { "value": 108, "name": "Contents", "path": "Extensions/JMicronATA.kext/Contents" } ] }, { "value": 208, "name": "L2TP.ppp", "path": "Extensions/L2TP.ppp", "children": [ { "value": 208, "name": "Contents", "path": "Extensions/L2TP.ppp/Contents" } ] }, { "value": 64, "name": "mcxalr.kext", "path": "Extensions/mcxalr.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/mcxalr.kext/Contents" } ] }, { "value": 92, "name": "msdosfs.kext", "path": "Extensions/msdosfs.kext", "children": [ { "value": 92, "name": "Contents", "path": "Extensions/msdosfs.kext/Contents" } ] }, { "value": 408, "name": "ntfs.kext", "path": "Extensions/ntfs.kext", "children": [ { "value": 408, "name": "Contents", "path": "Extensions/ntfs.kext/Contents" } ] }, { "value": 2128, "name": "NVDAGF100Hal.kext", "path": "Extensions/NVDAGF100Hal.kext", "children": [ { "value": 2128, "name": "Contents", "path": "Extensions/NVDAGF100Hal.kext/Contents" } ] }, { "value": 1952, "name": "NVDAGK100Hal.kext", "path": "Extensions/NVDAGK100Hal.kext", "children": [ { "value": 1952, "name": "Contents", "path": "Extensions/NVDAGK100Hal.kext/Contents" } ] }, { "value": 3104, "name": "NVDANV50HalTesla.kext", "path": "Extensions/NVDANV50HalTesla.kext", "children": [ { "value": 3104, "name": "Contents", "path": "Extensions/NVDANV50HalTesla.kext/Contents" } ] }, { "value": 2524, "name": "NVDAResman.kext", "path": "Extensions/NVDAResman.kext", "children": [ { "value": 2524, "name": "Contents", "path": "Extensions/NVDAResman.kext/Contents" } ] }, { "value": 2540, "name": "NVDAResmanTesla.kext", "path": "Extensions/NVDAResmanTesla.kext", "children": [ { "value": 2540, "name": "Contents", "path": "Extensions/NVDAResmanTesla.kext/Contents" } ] }, { "value": 56, "name": "NVDAStartup.kext", "path": "Extensions/NVDAStartup.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/NVDAStartup.kext/Contents" } ] }, { "value": 104, "name": "NVSMU.kext", "path": "Extensions/NVSMU.kext", "children": [ { "value": 104, "name": "Contents", "path": "Extensions/NVSMU.kext/Contents" } ] }, { "value": 92, "name": "OSvKernDSPLib.kext", "path": "Extensions/OSvKernDSPLib.kext", "children": [ { "value": 92, "name": "Contents", "path": "Extensions/OSvKernDSPLib.kext/Contents" } ] }, { "value": 72, "name": "PPP.kext", "path": "Extensions/PPP.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/PPP.kext/Contents" } ] }, { "value": 120, "name": "PPPoE.ppp", "path": "Extensions/PPPoE.ppp", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/PPPoE.ppp/Contents" } ] }, { "value": 1572, "name": "PPPSerial.ppp", "path": "Extensions/PPPSerial.ppp", "children": [ { "value": 1572, "name": "Contents", "path": "Extensions/PPPSerial.ppp/Contents" } ] }, { "value": 120, "name": "PPTP.ppp", "path": "Extensions/PPTP.ppp", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/PPTP.ppp/Contents" } ] }, { "value": 64, "name": "pthread.kext", "path": "Extensions/pthread.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/pthread.kext/Contents" } ] }, { "value": 56, "name": "Quarantine.kext", "path": "Extensions/Quarantine.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/Quarantine.kext/Contents" } ] }, { "value": 56, "name": "Radius.ppp", "path": "Extensions/Radius.ppp", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/Radius.ppp/Contents" } ] }, { "value": 52, "name": "RemoteVirtualInterface.kext", "path": "Extensions/RemoteVirtualInterface.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/RemoteVirtualInterface.kext/Contents" } ] }, { "value": 108, "name": "Sandbox.kext", "path": "Extensions/Sandbox.kext", "children": [ { "value": 108, "name": "Contents", "path": "Extensions/Sandbox.kext/Contents" } ] }, { "value": 68, "name": "SMARTLib.plugin", "path": "Extensions/SMARTLib.plugin", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/SMARTLib.plugin/Contents" } ] }, { "value": 376, "name": "smbfs.kext", "path": "Extensions/smbfs.kext", "children": [ { "value": 376, "name": "Contents", "path": "Extensions/smbfs.kext/Contents" } ] }, { "value": 80, "name": "SMCMotionSensor.kext", "path": "Extensions/SMCMotionSensor.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/SMCMotionSensor.kext/Contents" } ] }, { "value": 504, "name": "System.kext", "path": "Extensions/System.kext", "children": [ { "value": 20, "name": "_CodeSignature", "path": "Extensions/System.kext/_CodeSignature" }, { "value": 476, "name": "PlugIns", "path": "Extensions/System.kext/PlugIns" } ] }, { "value": 56, "name": "TMSafetyNet.kext", "path": "Extensions/TMSafetyNet.kext", "children": [ { "value": 40, "name": "Contents", "path": "Extensions/TMSafetyNet.kext/Contents" }, { "value": 16, "name": "Helpers", "path": "Extensions/TMSafetyNet.kext/Helpers" } ] }, { "value": 40, "name": "triggers.kext", "path": "Extensions/triggers.kext", "children": [ { "value": 40, "name": "Contents", "path": "Extensions/triggers.kext/Contents" } ] }, { "value": 296, "name": "udf.kext", "path": "Extensions/udf.kext", "children": [ { "value": 296, "name": "Contents", "path": "Extensions/udf.kext/Contents" } ] }, { "value": 212, "name": "vecLib.kext", "path": "Extensions/vecLib.kext", "children": [ { "value": 212, "name": "Contents", "path": "Extensions/vecLib.kext/Contents" } ] }, { "value": 176, "name": "webcontentfilter.kext", "path": "Extensions/webcontentfilter.kext", "children": [ { "value": 176, "name": "Contents", "path": "Extensions/webcontentfilter.kext/Contents" } ] }, { "value": 232, "name": "webdav_fs.kext", "path": "Extensions/webdav_fs.kext", "children": [ { "value": 232, "name": "Contents", "path": "Extensions/webdav_fs.kext/Contents" } ] } ] }, { "value": 11992, "name": "Filesystems", "path": "Filesystems", "children": [ { "value": 5740, "name": "acfs.fs", "path": "Filesystems/acfs.fs", "children": [ { "value": 5644, "name": "Contents", "path": "Filesystems/acfs.fs/Contents" } ] }, { "value": 636, "name": "AppleShare", "path": "Filesystems/AppleShare", "children": [ { "value": 524, "name": "afpfs.kext", "path": "Filesystems/AppleShare/afpfs.kext" }, { "value": 88, "name": "asp_tcp.kext", "path": "Filesystems/AppleShare/asp_tcp.kext" }, { "value": 16, "name": "check_afp.app", "path": "Filesystems/AppleShare/check_afp.app" } ] }, { "value": 16, "name": "cd9660.fs", "path": "Filesystems/cd9660.fs", "children": [ { "value": 16, "name": "Contents", "path": "Filesystems/cd9660.fs/Contents" } ] }, { "value": 32, "name": "cddafs.fs", "path": "Filesystems/cddafs.fs", "children": [ { "value": 32, "name": "Contents", "path": "Filesystems/cddafs.fs/Contents" } ] }, { "value": 76, "name": "exfat.fs", "path": "Filesystems/exfat.fs", "children": [ { "value": 72, "name": "Contents", "path": "Filesystems/exfat.fs/Contents" } ] }, { "value": 36, "name": "ftp.fs", "path": "Filesystems/ftp.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/ftp.fs/Contents" } ] }, { "value": 3180, "name": "hfs.fs", "path": "Filesystems/hfs.fs", "children": [ { "value": 452, "name": "Contents", "path": "Filesystems/hfs.fs/Contents" }, { "value": 2724, "name": "Encodings", "path": "Filesystems/hfs.fs/Encodings" } ] }, { "value": 64, "name": "msdos.fs", "path": "Filesystems/msdos.fs", "children": [ { "value": 60, "name": "Contents", "path": "Filesystems/msdos.fs/Contents" } ] }, { "value": 172, "name": "NetFSPlugins", "path": "Filesystems/NetFSPlugins", "children": [ { "value": 44, "name": "afp.bundle", "path": "Filesystems/NetFSPlugins/afp.bundle" }, { "value": 20, "name": "ftp.bundle", "path": "Filesystems/NetFSPlugins/ftp.bundle" }, { "value": 36, "name": "http.bundle", "path": "Filesystems/NetFSPlugins/http.bundle" }, { "value": 16, "name": "nfs.bundle", "path": "Filesystems/NetFSPlugins/nfs.bundle" }, { "value": 56, "name": "smb.bundle", "path": "Filesystems/NetFSPlugins/smb.bundle" } ] }, { "value": 0, "name": "nfs.fs", "path": "Filesystems/nfs.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/nfs.fs/Contents" } ] }, { "value": 24, "name": "ntfs.fs", "path": "Filesystems/ntfs.fs", "children": [ { "value": 20, "name": "Contents", "path": "Filesystems/ntfs.fs/Contents" } ] }, { "value": 1800, "name": "prlufs.fs", "path": "Filesystems/prlufs.fs", "children": [ { "value": 1800, "name": "Support", "path": "Filesystems/prlufs.fs/Support" } ] }, { "value": 0, "name": "smbfs.fs", "path": "Filesystems/smbfs.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/smbfs.fs/Contents" } ] }, { "value": 204, "name": "udf.fs", "path": "Filesystems/udf.fs", "children": [ { "value": 200, "name": "Contents", "path": "Filesystems/udf.fs/Contents" } ] }, { "value": 8, "name": "webdav.fs", "path": "Filesystems/webdav.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/webdav.fs/Contents" }, { "value": 8, "name": "Support", "path": "Filesystems/webdav.fs/Support" } ] } ] }, { "value": 112, "name": "Filters", "path": "Filters" }, { "value": 201212, "name": "Fonts", "path": "Fonts" }, { "value": 647772, "name": "Frameworks", "path": "Frameworks", "children": [ { "value": 9800, "name": "Accelerate.framework", "path": "Frameworks/Accelerate.framework", "children": [ { "value": 9788, "name": "Versions", "path": "Frameworks/Accelerate.framework/Versions" } ] }, { "value": 100, "name": "Accounts.framework", "path": "Frameworks/Accounts.framework", "children": [ { "value": 92, "name": "Versions", "path": "Frameworks/Accounts.framework/Versions" } ] }, { "value": 10144, "name": "AddressBook.framework", "path": "Frameworks/AddressBook.framework", "children": [ { "value": 10136, "name": "Versions", "path": "Frameworks/AddressBook.framework/Versions" } ] }, { "value": 64, "name": "AGL.framework", "path": "Frameworks/AGL.framework", "children": [ { "value": 56, "name": "Versions", "path": "Frameworks/AGL.framework/Versions" } ] }, { "value": 30320, "name": "AppKit.framework", "path": "Frameworks/AppKit.framework", "children": [ { "value": 30308, "name": "Versions", "path": "Frameworks/AppKit.framework/Versions" } ] }, { "value": 12, "name": "AppKitScripting.framework", "path": "Frameworks/AppKitScripting.framework", "children": [ { "value": 4, "name": "Versions", "path": "Frameworks/AppKitScripting.framework/Versions" } ] }, { "value": 632, "name": "AppleScriptKit.framework", "path": "Frameworks/AppleScriptKit.framework", "children": [ { "value": 624, "name": "Versions", "path": "Frameworks/AppleScriptKit.framework/Versions" } ] }, { "value": 104, "name": "AppleScriptObjC.framework", "path": "Frameworks/AppleScriptObjC.framework", "children": [ { "value": 96, "name": "Versions", "path": "Frameworks/AppleScriptObjC.framework/Versions" } ] }, { "value": 324, "name": "AppleShareClientCore.framework", "path": "Frameworks/AppleShareClientCore.framework", "children": [ { "value": 316, "name": "Versions", "path": "Frameworks/AppleShareClientCore.framework/Versions" } ] }, { "value": 77200, "name": "ApplicationServices.framework", "path": "Frameworks/ApplicationServices.framework", "children": [ { "value": 77188, "name": "Versions", "path": "Frameworks/ApplicationServices.framework/Versions" } ] }, { "value": 1792, "name": "AudioToolbox.framework", "path": "Frameworks/AudioToolbox.framework", "children": [ { "value": 1716, "name": "Versions", "path": "Frameworks/AudioToolbox.framework/Versions" }, { "value": 68, "name": "XPCServices", "path": "Frameworks/AudioToolbox.framework/XPCServices" } ] }, { "value": 40, "name": "AudioUnit.framework", "path": "Frameworks/AudioUnit.framework", "children": [ { "value": 32, "name": "Versions", "path": "Frameworks/AudioUnit.framework/Versions" } ] }, { "value": 736, "name": "AudioVideoBridging.framework", "path": "Frameworks/AudioVideoBridging.framework", "children": [ { "value": 728, "name": "Versions", "path": "Frameworks/AudioVideoBridging.framework/Versions" } ] }, { "value": 11496, "name": "Automator.framework", "path": "Frameworks/Automator.framework", "children": [ { "value": 4, "name": "Frameworks", "path": "Frameworks/Automator.framework/Frameworks" }, { "value": 11484, "name": "Versions", "path": "Frameworks/Automator.framework/Versions" } ] }, { "value": 1648, "name": "AVFoundation.framework", "path": "Frameworks/AVFoundation.framework", "children": [ { "value": 1640, "name": "Versions", "path": "Frameworks/AVFoundation.framework/Versions" } ] }, { "value": 408, "name": "AVKit.framework", "path": "Frameworks/AVKit.framework", "children": [ { "value": 400, "name": "Versions", "path": "Frameworks/AVKit.framework/Versions" } ] }, { "value": 1132, "name": "CalendarStore.framework", "path": "Frameworks/CalendarStore.framework", "children": [ { "value": 1124, "name": "Versions", "path": "Frameworks/CalendarStore.framework/Versions" } ] }, { "value": 25920, "name": "Carbon.framework", "path": "Frameworks/Carbon.framework", "children": [ { "value": 25908, "name": "Versions", "path": "Frameworks/Carbon.framework/Versions" } ] }, { "value": 2000, "name": "CFNetwork.framework", "path": "Frameworks/CFNetwork.framework", "children": [ { "value": 1992, "name": "Versions", "path": "Frameworks/CFNetwork.framework/Versions" } ] }, { "value": 20, "name": "Cocoa.framework", "path": "Frameworks/Cocoa.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/Cocoa.framework/Versions" } ] }, { "value": 900, "name": "Collaboration.framework", "path": "Frameworks/Collaboration.framework", "children": [ { "value": 892, "name": "Versions", "path": "Frameworks/Collaboration.framework/Versions" } ] }, { "value": 432, "name": "CoreAudio.framework", "path": "Frameworks/CoreAudio.framework", "children": [ { "value": 420, "name": "Versions", "path": "Frameworks/CoreAudio.framework/Versions" } ] }, { "value": 716, "name": "CoreAudioKit.framework", "path": "Frameworks/CoreAudioKit.framework", "children": [ { "value": 708, "name": "Versions", "path": "Frameworks/CoreAudioKit.framework/Versions" } ] }, { "value": 2632, "name": "CoreData.framework", "path": "Frameworks/CoreData.framework", "children": [ { "value": 2624, "name": "Versions", "path": "Frameworks/CoreData.framework/Versions" } ] }, { "value": 2608, "name": "CoreFoundation.framework", "path": "Frameworks/CoreFoundation.framework", "children": [ { "value": 2600, "name": "Versions", "path": "Frameworks/CoreFoundation.framework/Versions" } ] }, { "value": 9152, "name": "CoreGraphics.framework", "path": "Frameworks/CoreGraphics.framework", "children": [ { "value": 9144, "name": "Versions", "path": "Frameworks/CoreGraphics.framework/Versions" } ] }, { "value": 14552, "name": "CoreLocation.framework", "path": "Frameworks/CoreLocation.framework", "children": [ { "value": 14540, "name": "Versions", "path": "Frameworks/CoreLocation.framework/Versions" } ] }, { "value": 452, "name": "CoreMedia.framework", "path": "Frameworks/CoreMedia.framework", "children": [ { "value": 440, "name": "Versions", "path": "Frameworks/CoreMedia.framework/Versions" } ] }, { "value": 2876, "name": "CoreMediaIO.framework", "path": "Frameworks/CoreMediaIO.framework", "children": [ { "value": 2864, "name": "Versions", "path": "Frameworks/CoreMediaIO.framework/Versions" } ] }, { "value": 320, "name": "CoreMIDI.framework", "path": "Frameworks/CoreMIDI.framework", "children": [ { "value": 308, "name": "Versions", "path": "Frameworks/CoreMIDI.framework/Versions" } ] }, { "value": 20, "name": "CoreMIDIServer.framework", "path": "Frameworks/CoreMIDIServer.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/CoreMIDIServer.framework/Versions" } ] }, { "value": 12024, "name": "CoreServices.framework", "path": "Frameworks/CoreServices.framework", "children": [ { "value": 12012, "name": "Versions", "path": "Frameworks/CoreServices.framework/Versions" } ] }, { "value": 1472, "name": "CoreText.framework", "path": "Frameworks/CoreText.framework", "children": [ { "value": 1464, "name": "Versions", "path": "Frameworks/CoreText.framework/Versions" } ] }, { "value": 204, "name": "CoreVideo.framework", "path": "Frameworks/CoreVideo.framework", "children": [ { "value": 196, "name": "Versions", "path": "Frameworks/CoreVideo.framework/Versions" } ] }, { "value": 520, "name": "CoreWiFi.framework", "path": "Frameworks/CoreWiFi.framework", "children": [ { "value": 512, "name": "Versions", "path": "Frameworks/CoreWiFi.framework/Versions" } ] }, { "value": 536, "name": "CoreWLAN.framework", "path": "Frameworks/CoreWLAN.framework", "children": [ { "value": 528, "name": "Versions", "path": "Frameworks/CoreWLAN.framework/Versions" } ] }, { "value": 88, "name": "DirectoryService.framework", "path": "Frameworks/DirectoryService.framework", "children": [ { "value": 80, "name": "Versions", "path": "Frameworks/DirectoryService.framework/Versions" } ] }, { "value": 1352, "name": "DiscRecording.framework", "path": "Frameworks/DiscRecording.framework", "children": [ { "value": 1344, "name": "Versions", "path": "Frameworks/DiscRecording.framework/Versions" } ] }, { "value": 1384, "name": "DiscRecordingUI.framework", "path": "Frameworks/DiscRecordingUI.framework", "children": [ { "value": 1376, "name": "Versions", "path": "Frameworks/DiscRecordingUI.framework/Versions" } ] }, { "value": 76, "name": "DiskArbitration.framework", "path": "Frameworks/DiskArbitration.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/DiskArbitration.framework/Versions" } ] }, { "value": 32, "name": "DrawSprocket.framework", "path": "Frameworks/DrawSprocket.framework", "children": [ { "value": 24, "name": "Versions", "path": "Frameworks/DrawSprocket.framework/Versions" } ] }, { "value": 20, "name": "DVComponentGlue.framework", "path": "Frameworks/DVComponentGlue.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/DVComponentGlue.framework/Versions" } ] }, { "value": 1420, "name": "DVDPlayback.framework", "path": "Frameworks/DVDPlayback.framework", "children": [ { "value": 1412, "name": "Versions", "path": "Frameworks/DVDPlayback.framework/Versions" } ] }, { "value": 232, "name": "EventKit.framework", "path": "Frameworks/EventKit.framework", "children": [ { "value": 224, "name": "Versions", "path": "Frameworks/EventKit.framework/Versions" } ] }, { "value": 32, "name": "ExceptionHandling.framework", "path": "Frameworks/ExceptionHandling.framework", "children": [ { "value": 24, "name": "Versions", "path": "Frameworks/ExceptionHandling.framework/Versions" } ] }, { "value": 32, "name": "ForceFeedback.framework", "path": "Frameworks/ForceFeedback.framework", "children": [ { "value": 24, "name": "Versions", "path": "Frameworks/ForceFeedback.framework/Versions" } ] }, { "value": 4228, "name": "Foundation.framework", "path": "Frameworks/Foundation.framework", "children": [ { "value": 4216, "name": "Versions", "path": "Frameworks/Foundation.framework/Versions" } ] }, { "value": 52, "name": "FWAUserLib.framework", "path": "Frameworks/FWAUserLib.framework", "children": [ { "value": 44, "name": "Versions", "path": "Frameworks/FWAUserLib.framework/Versions" } ] }, { "value": 60, "name": "GameController.framework", "path": "Frameworks/GameController.framework", "children": [ { "value": 52, "name": "Versions", "path": "Frameworks/GameController.framework/Versions" } ] }, { "value": 44244, "name": "GameKit.framework", "path": "Frameworks/GameKit.framework", "children": [ { "value": 44236, "name": "Versions", "path": "Frameworks/GameKit.framework/Versions" } ] }, { "value": 132, "name": "GLKit.framework", "path": "Frameworks/GLKit.framework", "children": [ { "value": 124, "name": "Versions", "path": "Frameworks/GLKit.framework/Versions" } ] }, { "value": 1740, "name": "GLUT.framework", "path": "Frameworks/GLUT.framework", "children": [ { "value": 1732, "name": "Versions", "path": "Frameworks/GLUT.framework/Versions" } ] }, { "value": 280, "name": "GSS.framework", "path": "Frameworks/GSS.framework", "children": [ { "value": 272, "name": "Versions", "path": "Frameworks/GSS.framework/Versions" } ] }, { "value": 236, "name": "ICADevices.framework", "path": "Frameworks/ICADevices.framework", "children": [ { "value": 228, "name": "Versions", "path": "Frameworks/ICADevices.framework/Versions" } ] }, { "value": 392, "name": "ImageCaptureCore.framework", "path": "Frameworks/ImageCaptureCore.framework", "children": [ { "value": 384, "name": "Versions", "path": "Frameworks/ImageCaptureCore.framework/Versions" } ] }, { "value": 4008, "name": "ImageIO.framework", "path": "Frameworks/ImageIO.framework", "children": [ { "value": 4000, "name": "Versions", "path": "Frameworks/ImageIO.framework/Versions" } ] }, { "value": 104, "name": "IMServicePlugIn.framework", "path": "Frameworks/IMServicePlugIn.framework", "children": [ { "value": 28, "name": "IMServicePlugInAgent.app", "path": "Frameworks/IMServicePlugIn.framework/IMServicePlugInAgent.app" }, { "value": 64, "name": "Versions", "path": "Frameworks/IMServicePlugIn.framework/Versions" } ] }, { "value": 368, "name": "InputMethodKit.framework", "path": "Frameworks/InputMethodKit.framework", "children": [ { "value": 356, "name": "Versions", "path": "Frameworks/InputMethodKit.framework/Versions" } ] }, { "value": 360, "name": "InstallerPlugins.framework", "path": "Frameworks/InstallerPlugins.framework", "children": [ { "value": 352, "name": "Versions", "path": "Frameworks/InstallerPlugins.framework/Versions" } ] }, { "value": 76, "name": "InstantMessage.framework", "path": "Frameworks/InstantMessage.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/InstantMessage.framework/Versions" } ] }, { "value": 904, "name": "IOBluetooth.framework", "path": "Frameworks/IOBluetooth.framework", "children": [ { "value": 892, "name": "Versions", "path": "Frameworks/IOBluetooth.framework/Versions" } ] }, { "value": 4592, "name": "IOBluetoothUI.framework", "path": "Frameworks/IOBluetoothUI.framework", "children": [ { "value": 4584, "name": "Versions", "path": "Frameworks/IOBluetoothUI.framework/Versions" } ] }, { "value": 688, "name": "IOKit.framework", "path": "Frameworks/IOKit.framework", "children": [ { "value": 680, "name": "Versions", "path": "Frameworks/IOKit.framework/Versions" } ] }, { "value": 48, "name": "IOSurface.framework", "path": "Frameworks/IOSurface.framework", "children": [ { "value": 40, "name": "Versions", "path": "Frameworks/IOSurface.framework/Versions" } ] }, { "value": 28, "name": "JavaFrameEmbedding.framework", "path": "Frameworks/JavaFrameEmbedding.framework", "children": [ { "value": 20, "name": "Versions", "path": "Frameworks/JavaFrameEmbedding.framework/Versions" } ] }, { "value": 3336, "name": "JavaScriptCore.framework", "path": "Frameworks/JavaScriptCore.framework", "children": [ { "value": 3328, "name": "Versions", "path": "Frameworks/JavaScriptCore.framework/Versions" } ] }, { "value": 2756, "name": "JavaVM.framework", "path": "Frameworks/JavaVM.framework", "children": [ { "value": 2728, "name": "Versions", "path": "Frameworks/JavaVM.framework/Versions" } ] }, { "value": 168, "name": "Kerberos.framework", "path": "Frameworks/Kerberos.framework", "children": [ { "value": 160, "name": "Versions", "path": "Frameworks/Kerberos.framework/Versions" } ] }, { "value": 36, "name": "Kernel.framework", "path": "Frameworks/Kernel.framework", "children": [ { "value": 32, "name": "Versions", "path": "Frameworks/Kernel.framework/Versions" } ] }, { "value": 200, "name": "LatentSemanticMapping.framework", "path": "Frameworks/LatentSemanticMapping.framework", "children": [ { "value": 192, "name": "Versions", "path": "Frameworks/LatentSemanticMapping.framework/Versions" } ] }, { "value": 284, "name": "LDAP.framework", "path": "Frameworks/LDAP.framework", "children": [ { "value": 276, "name": "Versions", "path": "Frameworks/LDAP.framework/Versions" } ] }, { "value": 1872, "name": "MapKit.framework", "path": "Frameworks/MapKit.framework", "children": [ { "value": 1864, "name": "Versions", "path": "Frameworks/MapKit.framework/Versions" } ] }, { "value": 56, "name": "MediaAccessibility.framework", "path": "Frameworks/MediaAccessibility.framework", "children": [ { "value": 48, "name": "Versions", "path": "Frameworks/MediaAccessibility.framework/Versions" } ] }, { "value": 100, "name": "MediaLibrary.framework", "path": "Frameworks/MediaLibrary.framework", "children": [ { "value": 88, "name": "Versions", "path": "Frameworks/MediaLibrary.framework/Versions" } ] }, { "value": 3708, "name": "MediaToolbox.framework", "path": "Frameworks/MediaToolbox.framework", "children": [ { "value": 3700, "name": "Versions", "path": "Frameworks/MediaToolbox.framework/Versions" } ] }, { "value": 16, "name": "Message.framework", "path": "Frameworks/Message.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/Message.framework/Versions" } ] }, { "value": 64, "name": "NetFS.framework", "path": "Frameworks/NetFS.framework", "children": [ { "value": 56, "name": "Versions", "path": "Frameworks/NetFS.framework/Versions" } ] }, { "value": 192, "name": "OpenAL.framework", "path": "Frameworks/OpenAL.framework", "children": [ { "value": 184, "name": "Versions", "path": "Frameworks/OpenAL.framework/Versions" } ] }, { "value": 78380, "name": "OpenCL.framework", "path": "Frameworks/OpenCL.framework", "children": [ { "value": 78368, "name": "Versions", "path": "Frameworks/OpenCL.framework/Versions" } ] }, { "value": 288, "name": "OpenDirectory.framework", "path": "Frameworks/OpenDirectory.framework", "children": [ { "value": 252, "name": "Versions", "path": "Frameworks/OpenDirectory.framework/Versions" } ] }, { "value": 25628, "name": "OpenGL.framework", "path": "Frameworks/OpenGL.framework", "children": [ { "value": 25616, "name": "Versions", "path": "Frameworks/OpenGL.framework/Versions" } ] }, { "value": 1136, "name": "OSAKit.framework", "path": "Frameworks/OSAKit.framework", "children": [ { "value": 1128, "name": "Versions", "path": "Frameworks/OSAKit.framework/Versions" } ] }, { "value": 88, "name": "PCSC.framework", "path": "Frameworks/PCSC.framework", "children": [ { "value": 80, "name": "Versions", "path": "Frameworks/PCSC.framework/Versions" } ] }, { "value": 192, "name": "PreferencePanes.framework", "path": "Frameworks/PreferencePanes.framework", "children": [ { "value": 180, "name": "Versions", "path": "Frameworks/PreferencePanes.framework/Versions" } ] }, { "value": 1012, "name": "PubSub.framework", "path": "Frameworks/PubSub.framework", "children": [ { "value": 1004, "name": "Versions", "path": "Frameworks/PubSub.framework/Versions" } ] }, { "value": 129696, "name": "Python.framework", "path": "Frameworks/Python.framework", "children": [ { "value": 129684, "name": "Versions", "path": "Frameworks/Python.framework/Versions" } ] }, { "value": 2516, "name": "QTKit.framework", "path": "Frameworks/QTKit.framework", "children": [ { "value": 2504, "name": "Versions", "path": "Frameworks/QTKit.framework/Versions" } ] }, { "value": 23712, "name": "Quartz.framework", "path": "Frameworks/Quartz.framework", "children": [ { "value": 23700, "name": "Versions", "path": "Frameworks/Quartz.framework/Versions" } ] }, { "value": 6644, "name": "QuartzCore.framework", "path": "Frameworks/QuartzCore.framework", "children": [ { "value": 6632, "name": "Versions", "path": "Frameworks/QuartzCore.framework/Versions" } ] }, { "value": 3960, "name": "QuickLook.framework", "path": "Frameworks/QuickLook.framework", "children": [ { "value": 3948, "name": "Versions", "path": "Frameworks/QuickLook.framework/Versions" } ] }, { "value": 3460, "name": "QuickTime.framework", "path": "Frameworks/QuickTime.framework", "children": [ { "value": 3452, "name": "Versions", "path": "Frameworks/QuickTime.framework/Versions" } ] }, { "value": 13168, "name": "Ruby.framework", "path": "Frameworks/Ruby.framework", "children": [ { "value": 13160, "name": "Versions", "path": "Frameworks/Ruby.framework/Versions" } ] }, { "value": 204, "name": "RubyCocoa.framework", "path": "Frameworks/RubyCocoa.framework", "children": [ { "value": 196, "name": "Versions", "path": "Frameworks/RubyCocoa.framework/Versions" } ] }, { "value": 3628, "name": "SceneKit.framework", "path": "Frameworks/SceneKit.framework", "children": [ { "value": 3616, "name": "Versions", "path": "Frameworks/SceneKit.framework/Versions" } ] }, { "value": 1812, "name": "ScreenSaver.framework", "path": "Frameworks/ScreenSaver.framework", "children": [ { "value": 1804, "name": "Versions", "path": "Frameworks/ScreenSaver.framework/Versions" } ] }, { "value": 12, "name": "Scripting.framework", "path": "Frameworks/Scripting.framework", "children": [ { "value": 4, "name": "Versions", "path": "Frameworks/Scripting.framework/Versions" } ] }, { "value": 144, "name": "ScriptingBridge.framework", "path": "Frameworks/ScriptingBridge.framework", "children": [ { "value": 136, "name": "Versions", "path": "Frameworks/ScriptingBridge.framework/Versions" } ] }, { "value": 6224, "name": "Security.framework", "path": "Frameworks/Security.framework", "children": [ { "value": 124, "name": "PlugIns", "path": "Frameworks/Security.framework/PlugIns" }, { "value": 6088, "name": "Versions", "path": "Frameworks/Security.framework/Versions" } ] }, { "value": 2076, "name": "SecurityFoundation.framework", "path": "Frameworks/SecurityFoundation.framework", "children": [ { "value": 2068, "name": "Versions", "path": "Frameworks/SecurityFoundation.framework/Versions" } ] }, { "value": 8660, "name": "SecurityInterface.framework", "path": "Frameworks/SecurityInterface.framework", "children": [ { "value": 8652, "name": "Versions", "path": "Frameworks/SecurityInterface.framework/Versions" } ] }, { "value": 88, "name": "ServiceManagement.framework", "path": "Frameworks/ServiceManagement.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/ServiceManagement.framework/Versions" }, { "value": 12, "name": "XPCServices", "path": "Frameworks/ServiceManagement.framework/XPCServices" } ] }, { "value": 1112, "name": "Social.framework", "path": "Frameworks/Social.framework", "children": [ { "value": 516, "name": "Versions", "path": "Frameworks/Social.framework/Versions" }, { "value": 588, "name": "XPCServices", "path": "Frameworks/Social.framework/XPCServices" } ] }, { "value": 500, "name": "SpriteKit.framework", "path": "Frameworks/SpriteKit.framework", "children": [ { "value": 492, "name": "Versions", "path": "Frameworks/SpriteKit.framework/Versions" } ] }, { "value": 96, "name": "StoreKit.framework", "path": "Frameworks/StoreKit.framework", "children": [ { "value": 88, "name": "Versions", "path": "Frameworks/StoreKit.framework/Versions" } ] }, { "value": 1608, "name": "SyncServices.framework", "path": "Frameworks/SyncServices.framework", "children": [ { "value": 1600, "name": "Versions", "path": "Frameworks/SyncServices.framework/Versions" } ] }, { "value": 44, "name": "System.framework", "path": "Frameworks/System.framework", "children": [ { "value": 36, "name": "Versions", "path": "Frameworks/System.framework/Versions" } ] }, { "value": 576, "name": "SystemConfiguration.framework", "path": "Frameworks/SystemConfiguration.framework", "children": [ { "value": 568, "name": "Versions", "path": "Frameworks/SystemConfiguration.framework/Versions" } ] }, { "value": 3208, "name": "Tcl.framework", "path": "Frameworks/Tcl.framework", "children": [ { "value": 3200, "name": "Versions", "path": "Frameworks/Tcl.framework/Versions" } ] }, { "value": 3172, "name": "Tk.framework", "path": "Frameworks/Tk.framework", "children": [ { "value": 3160, "name": "Versions", "path": "Frameworks/Tk.framework/Versions" } ] }, { "value": 76, "name": "TWAIN.framework", "path": "Frameworks/TWAIN.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/TWAIN.framework/Versions" } ] }, { "value": 24, "name": "VideoDecodeAcceleration.framework", "path": "Frameworks/VideoDecodeAcceleration.framework", "children": [ { "value": 16, "name": "Versions", "path": "Frameworks/VideoDecodeAcceleration.framework/Versions" } ] }, { "value": 3648, "name": "VideoToolbox.framework", "path": "Frameworks/VideoToolbox.framework", "children": [ { "value": 3636, "name": "Versions", "path": "Frameworks/VideoToolbox.framework/Versions" } ] }, { "value": 17668, "name": "WebKit.framework", "path": "Frameworks/WebKit.framework", "children": [ { "value": 17512, "name": "Versions", "path": "Frameworks/WebKit.framework/Versions" }, { "value": 116, "name": "WebKitPluginHost.app", "path": "Frameworks/WebKit.framework/WebKitPluginHost.app" } ] } ] }, { "value": 1076, "name": "Graphics", "path": "Graphics", "children": [ { "value": 876, "name": "QuartzComposer Patches", "path": "Graphics/QuartzComposer Patches", "children": [ { "value": 148, "name": "Backdrops.plugin", "path": "Graphics/QuartzComposer Patches/Backdrops.plugin" }, { "value": 36, "name": "FaceEffects.plugin", "path": "Graphics/QuartzComposer Patches/FaceEffects.plugin" } ] }, { "value": 200, "name": "QuartzComposer Plug-Ins", "path": "Graphics/QuartzComposer Plug-Ins", "children": [ { "value": 200, "name": "WOTD.plugin", "path": "Graphics/QuartzComposer Plug-Ins/WOTD.plugin" } ] } ] }, { "value": 0, "name": "IdentityServices", "path": "IdentityServices", "children": [ { "value": 0, "name": "ServiceDefinitions", "path": "IdentityServices/ServiceDefinitions" } ] }, { "value": 2900, "name": "ImageCapture", "path": "ImageCapture", "children": [ { "value": 200, "name": "Automatic Tasks", "path": "ImageCapture/Automatic Tasks", "children": [ { "value": 52, "name": "Build Web Page.app", "path": "ImageCapture/Automatic Tasks/Build Web Page.app" }, { "value": 148, "name": "MakePDF.app", "path": "ImageCapture/Automatic Tasks/MakePDF.app" } ] }, { "value": 480, "name": "Devices", "path": "ImageCapture/Devices", "children": [ { "value": 84, "name": "AirScanScanner.app", "path": "ImageCapture/Devices/AirScanScanner.app" }, { "value": 44, "name": "MassStorageCamera.app", "path": "ImageCapture/Devices/MassStorageCamera.app" }, { "value": 124, "name": "PTPCamera.app", "path": "ImageCapture/Devices/PTPCamera.app" }, { "value": 36, "name": "Type4Camera.app", "path": "ImageCapture/Devices/Type4Camera.app" }, { "value": 32, "name": "Type5Camera.app", "path": "ImageCapture/Devices/Type5Camera.app" }, { "value": 36, "name": "Type8Camera.app", "path": "ImageCapture/Devices/Type8Camera.app" }, { "value": 124, "name": "VirtualScanner.app", "path": "ImageCapture/Devices/VirtualScanner.app" } ] }, { "value": 2212, "name": "Support", "path": "ImageCapture/Support", "children": [ { "value": 432, "name": "Application", "path": "ImageCapture/Support/Application" }, { "value": 1608, "name": "Icons", "path": "ImageCapture/Support/Icons" }, { "value": 172, "name": "Image Capture Extension.app", "path": "ImageCapture/Support/Image Capture Extension.app" }, { "value": 3184, "name": "CoreDeploy.bundle", "path": "Java/Support/CoreDeploy.bundle" }, { "value": 2732, "name": "Deploy.bundle", "path": "Java/Support/Deploy.bundle" } ] }, { "value": 8, "name": "Tools", "path": "ImageCapture/Tools" }, { "value": 0, "name": "TWAIN Data Sources", "path": "ImageCapture/TWAIN Data Sources" } ] }, { "value": 23668, "name": "InputMethods", "path": "InputMethods", "children": [ { "value": 1400, "name": "50onPaletteServer.app", "path": "InputMethods/50onPaletteServer.app", "children": [ { "value": 1400, "name": "Contents", "path": "InputMethods/50onPaletteServer.app/Contents" } ] }, { "value": 5728, "name": "CharacterPalette.app", "path": "InputMethods/CharacterPalette.app", "children": [ { "value": 5728, "name": "Contents", "path": "InputMethods/CharacterPalette.app/Contents" } ] }, { "value": 2476, "name": "DictationIM.app", "path": "InputMethods/DictationIM.app", "children": [ { "value": 2476, "name": "Contents", "path": "InputMethods/DictationIM.app/Contents" } ] }, { "value": 88, "name": "InkServer.app", "path": "InputMethods/InkServer.app", "children": [ { "value": 88, "name": "Contents", "path": "InputMethods/InkServer.app/Contents" } ] }, { "value": 736, "name": "KeyboardViewer.app", "path": "InputMethods/KeyboardViewer.app", "children": [ { "value": 736, "name": "Contents", "path": "InputMethods/KeyboardViewer.app/Contents" } ] }, { "value": 1144, "name": "KoreanIM.app", "path": "InputMethods/KoreanIM.app", "children": [ { "value": 1144, "name": "Contents", "path": "InputMethods/KoreanIM.app/Contents" } ] }, { "value": 2484, "name": "Kotoeri.app", "path": "InputMethods/Kotoeri.app", "children": [ { "value": 2484, "name": "Contents", "path": "InputMethods/Kotoeri.app/Contents" } ] }, { "value": 40, "name": "PluginIM.app", "path": "InputMethods/PluginIM.app", "children": [ { "value": 40, "name": "Contents", "path": "InputMethods/PluginIM.app/Contents" } ] }, { "value": 24, "name": "PressAndHold.app", "path": "InputMethods/PressAndHold.app", "children": [ { "value": 24, "name": "Contents", "path": "InputMethods/PressAndHold.app/Contents" } ] }, { "value": 64, "name": "SCIM.app", "path": "InputMethods/SCIM.app", "children": [ { "value": 64, "name": "Contents", "path": "InputMethods/SCIM.app/Contents" } ] }, { "value": 6916, "name": "Switch Control.app", "path": "InputMethods/Switch Control.app", "children": [ { "value": 6916, "name": "Contents", "path": "InputMethods/Switch Control.app/Contents" } ] }, { "value": 104, "name": "TamilIM.app", "path": "InputMethods/TamilIM.app", "children": [ { "value": 104, "name": "Contents", "path": "InputMethods/TamilIM.app/Contents" } ] }, { "value": 92, "name": "TCIM.app", "path": "InputMethods/TCIM.app", "children": [ { "value": 92, "name": "Contents", "path": "InputMethods/TCIM.app/Contents" } ] }, { "value": 1820, "name": "TrackpadIM.app", "path": "InputMethods/TrackpadIM.app", "children": [ { "value": 1820, "name": "Contents", "path": "InputMethods/TrackpadIM.app/Contents" } ] }, { "value": 552, "name": "VietnameseIM.app", "path": "InputMethods/VietnameseIM.app", "children": [ { "value": 552, "name": "Contents", "path": "InputMethods/VietnameseIM.app/Contents" } ] } ] }, { "value": 17668, "name": "InternetAccounts", "path": "InternetAccounts", "children": [ { "value": 336, "name": "126.iaplugin", "path": "InternetAccounts/126.iaplugin", "children": [ { "value": 336, "name": "Contents", "path": "InternetAccounts/126.iaplugin/Contents" } ] }, { "value": 332, "name": "163.iaplugin", "path": "InternetAccounts/163.iaplugin", "children": [ { "value": 332, "name": "Contents", "path": "InternetAccounts/163.iaplugin/Contents" } ] }, { "value": 48, "name": "AddressBook.iaplugin", "path": "InternetAccounts/AddressBook.iaplugin", "children": [ { "value": 48, "name": "Contents", "path": "InternetAccounts/AddressBook.iaplugin/Contents" } ] }, { "value": 304, "name": "AOL.iaplugin", "path": "InternetAccounts/AOL.iaplugin", "children": [ { "value": 304, "name": "Contents", "path": "InternetAccounts/AOL.iaplugin/Contents" } ] }, { "value": 44, "name": "Calendar.iaplugin", "path": "InternetAccounts/Calendar.iaplugin", "children": [ { "value": 44, "name": "Contents", "path": "InternetAccounts/Calendar.iaplugin/Contents" } ] }, { "value": 784, "name": "Exchange.iaplugin", "path": "InternetAccounts/Exchange.iaplugin", "children": [ { "value": 784, "name": "Contents", "path": "InternetAccounts/Exchange.iaplugin/Contents" } ] }, { "value": 996, "name": "Facebook.iaplugin", "path": "InternetAccounts/Facebook.iaplugin", "children": [ { "value": 996, "name": "Contents", "path": "InternetAccounts/Facebook.iaplugin/Contents" } ] }, { "value": 596, "name": "Flickr.iaplugin", "path": "InternetAccounts/Flickr.iaplugin", "children": [ { "value": 596, "name": "Contents", "path": "InternetAccounts/Flickr.iaplugin/Contents" } ] }, { "value": 384, "name": "Google.iaplugin", "path": "InternetAccounts/Google.iaplugin", "children": [ { "value": 384, "name": "Contents", "path": "InternetAccounts/Google.iaplugin/Contents" } ] }, { "value": 32, "name": "iChat.iaplugin", "path": "InternetAccounts/iChat.iaplugin", "children": [ { "value": 32, "name": "Contents", "path": "InternetAccounts/iChat.iaplugin/Contents" } ] }, { "value": 7436, "name": "iCloud.iaplugin", "path": "InternetAccounts/iCloud.iaplugin", "children": [ { "value": 7436, "name": "Contents", "path": "InternetAccounts/iCloud.iaplugin/Contents" } ] }, { "value": 840, "name": "LinkedIn.iaplugin", "path": "InternetAccounts/LinkedIn.iaplugin", "children": [ { "value": 840, "name": "Contents", "path": "InternetAccounts/LinkedIn.iaplugin/Contents" } ] }, { "value": 28, "name": "Mail.iaplugin", "path": "InternetAccounts/Mail.iaplugin", "children": [ { "value": 28, "name": "Contents", "path": "InternetAccounts/Mail.iaplugin/Contents" } ] }, { "value": 32, "name": "Notes.iaplugin", "path": "InternetAccounts/Notes.iaplugin", "children": [ { "value": 32, "name": "Contents", "path": "InternetAccounts/Notes.iaplugin/Contents" } ] }, { "value": 416, "name": "OSXServer.iaplugin", "path": "InternetAccounts/OSXServer.iaplugin", "children": [ { "value": 416, "name": "Contents", "path": "InternetAccounts/OSXServer.iaplugin/Contents" } ] }, { "value": 376, "name": "QQ.iaplugin", "path": "InternetAccounts/QQ.iaplugin", "children": [ { "value": 376, "name": "Contents", "path": "InternetAccounts/QQ.iaplugin/Contents" } ] }, { "value": 32, "name": "Reminders.iaplugin", "path": "InternetAccounts/Reminders.iaplugin", "children": [ { "value": 32, "name": "Contents", "path": "InternetAccounts/Reminders.iaplugin/Contents" } ] }, { "value": 1024, "name": "SetupPlugins", "path": "InternetAccounts/SetupPlugins", "children": [ { "value": 412, "name": "CalUIAccountSetup.iaplugin", "path": "InternetAccounts/SetupPlugins/CalUIAccountSetup.iaplugin" }, { "value": 580, "name": "Contacts.iaplugin", "path": "InternetAccounts/SetupPlugins/Contacts.iaplugin" }, { "value": 8, "name": "MailAccountSetup.iaplugin", "path": "InternetAccounts/SetupPlugins/MailAccountSetup.iaplugin" }, { "value": 16, "name": "Messages.iaplugin", "path": "InternetAccounts/SetupPlugins/Messages.iaplugin" }, { "value": 8, "name": "NotesAccountSetup.iaplugin", "path": "InternetAccounts/SetupPlugins/NotesAccountSetup.iaplugin" } ] }, { "value": 392, "name": "TencentWeibo.iaplugin", "path": "InternetAccounts/TencentWeibo.iaplugin", "children": [ { "value": 392, "name": "Contents", "path": "InternetAccounts/TencentWeibo.iaplugin/Contents" } ] }, { "value": 612, "name": "Tudou.iaplugin", "path": "InternetAccounts/Tudou.iaplugin", "children": [ { "value": 612, "name": "Contents", "path": "InternetAccounts/Tudou.iaplugin/Contents" } ] }, { "value": 608, "name": "TwitterPlugin.iaplugin", "path": "InternetAccounts/TwitterPlugin.iaplugin", "children": [ { "value": 608, "name": "Contents", "path": "InternetAccounts/TwitterPlugin.iaplugin/Contents" } ] }, { "value": 584, "name": "Vimeo.iaplugin", "path": "InternetAccounts/Vimeo.iaplugin", "children": [ { "value": 584, "name": "Contents", "path": "InternetAccounts/Vimeo.iaplugin/Contents" } ] }, { "value": 468, "name": "Weibo.iaplugin", "path": "InternetAccounts/Weibo.iaplugin", "children": [ { "value": 468, "name": "Contents", "path": "InternetAccounts/Weibo.iaplugin/Contents" } ] }, { "value": 316, "name": "Yahoo.iaplugin", "path": "InternetAccounts/Yahoo.iaplugin", "children": [ { "value": 316, "name": "Contents", "path": "InternetAccounts/Yahoo.iaplugin/Contents" } ] }, { "value": 648, "name": "Youku.iaplugin", "path": "InternetAccounts/Youku.iaplugin", "children": [ { "value": 648, "name": "Contents", "path": "InternetAccounts/Youku.iaplugin/Contents" } ] } ] }, { "value": 68776, "name": "Java", "path": "Java", "children": [ { "value": 8848, "name": "Extensions", "path": "Java/Extensions" }, { "value": 54012, "name": "JavaVirtualMachines", "path": "Java/JavaVirtualMachines", "children": [ { "value": 54012, "name": "1.6.0.jdk", "path": "Java/JavaVirtualMachines/1.6.0.jdk" } ] }, { "value": 5916, "name": "Support", "path": "Java/Support", "children": [ { "value": 432, "name": "Application", "path": "ImageCapture/Support/Application" }, { "value": 1608, "name": "Icons", "path": "ImageCapture/Support/Icons" }, { "value": 172, "name": "Image Capture Extension.app", "path": "ImageCapture/Support/Image Capture Extension.app" }, { "value": 3184, "name": "CoreDeploy.bundle", "path": "Java/Support/CoreDeploy.bundle" }, { "value": 2732, "name": "Deploy.bundle", "path": "Java/Support/Deploy.bundle" } ] } ] }, { "value": 48, "name": "KerberosPlugins", "path": "KerberosPlugins", "children": [ { "value": 48, "name": "KerberosFrameworkPlugins", "path": "KerberosPlugins/KerberosFrameworkPlugins", "children": [ { "value": 8, "name": "heimdalodpac.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/heimdalodpac.bundle" }, { "value": 16, "name": "LKDCLocate.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/LKDCLocate.bundle" }, { "value": 12, "name": "Reachability.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/Reachability.bundle" }, { "value": 12, "name": "SCKerberosConfig.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/SCKerberosConfig.bundle" } ] } ] }, { "value": 276, "name": "KeyboardLayouts", "path": "KeyboardLayouts", "children": [ { "value": 276, "name": "AppleKeyboardLayouts.bundle", "path": "KeyboardLayouts/AppleKeyboardLayouts.bundle", "children": [ { "value": 276, "name": "Contents", "path": "KeyboardLayouts/AppleKeyboardLayouts.bundle/Contents" } ] } ] }, { "value": 408, "name": "Keychains", "path": "Keychains" }, { "value": 4, "name": "LaunchAgents", "path": "LaunchAgents" }, { "value": 20, "name": "LaunchDaemons", "path": "LaunchDaemons" }, { "value": 96532, "name": "LinguisticData", "path": "LinguisticData", "children": [ { "value": 8, "name": "da", "path": "LinguisticData/da" }, { "value": 16476, "name": "de", "path": "LinguisticData/de" }, { "value": 9788, "name": "en", "path": "LinguisticData/en", "children": [ { "value": 36, "name": "GB", "path": "LinguisticData/en/GB" }, { "value": 28, "name": "US", "path": "LinguisticData/en/US" } ] }, { "value": 10276, "name": "es", "path": "LinguisticData/es" }, { "value": 0, "name": "fi", "path": "LinguisticData/fi" }, { "value": 12468, "name": "fr", "path": "LinguisticData/fr" }, { "value": 7336, "name": "it", "path": "LinguisticData/it" }, { "value": 192, "name": "ko", "path": "LinguisticData/ko" }, { "value": 48, "name": "nl", "path": "LinguisticData/nl" }, { "value": 112, "name": "no", "path": "LinguisticData/no" }, { "value": 4496, "name": "pt", "path": "LinguisticData/pt" }, { "value": 24, "name": "ru", "path": "LinguisticData/ru" }, { "value": 20, "name": "sv", "path": "LinguisticData/sv" }, { "value": 0, "name": "tr", "path": "LinguisticData/tr" }, { "value": 35288, "name": "zh", "path": "LinguisticData/zh", "children": [ { "value": 2604, "name": "Hans", "path": "LinguisticData/zh/Hans" }, { "value": 2868, "name": "Hant", "path": "LinguisticData/zh/Hant" } ] } ] }, { "value": 4, "name": "LocationBundles", "path": "LocationBundles" }, { "value": 800, "name": "LoginPlugins", "path": "LoginPlugins", "children": [ { "value": 348, "name": "BezelServices.loginPlugin", "path": "LoginPlugins/BezelServices.loginPlugin", "children": [ { "value": 348, "name": "Contents", "path": "LoginPlugins/BezelServices.loginPlugin/Contents" } ] }, { "value": 108, "name": "DisplayServices.loginPlugin", "path": "LoginPlugins/DisplayServices.loginPlugin", "children": [ { "value": 108, "name": "Contents", "path": "LoginPlugins/DisplayServices.loginPlugin/Contents" } ] }, { "value": 344, "name": "FSDisconnect.loginPlugin", "path": "LoginPlugins/FSDisconnect.loginPlugin", "children": [ { "value": 344, "name": "Contents", "path": "LoginPlugins/FSDisconnect.loginPlugin/Contents" } ] } ] }, { "value": 188, "name": "Messages", "path": "Messages", "children": [ { "value": 188, "name": "PlugIns", "path": "Messages/PlugIns", "children": [ { "value": 12, "name": "Balloons.transcriptstyle", "path": "Messages/PlugIns/Balloons.transcriptstyle" }, { "value": 8, "name": "Boxes.transcriptstyle", "path": "Messages/PlugIns/Boxes.transcriptstyle" }, { "value": 8, "name": "Compact.transcriptstyle", "path": "Messages/PlugIns/Compact.transcriptstyle" }, { "value": 76, "name": "FaceTime.imservice", "path": "Messages/PlugIns/FaceTime.imservice" }, { "value": 84, "name": "iMessage.imservice", "path": "Messages/PlugIns/iMessage.imservice" } ] } ] }, { "value": 0, "name": "Metadata", "path": "Metadata", "children": [ { "value": 0, "name": "com.apple.finder.legacy.mdlabels", "path": "Metadata/com.apple.finder.legacy.mdlabels", "children": [ { "value": 0, "name": "Contents", "path": "Metadata/com.apple.finder.legacy.mdlabels/Contents" } ] } ] }, { "value": 3276, "name": "MonitorPanels", "path": "MonitorPanels", "children": [ { "value": 860, "name": "AppleDisplay.monitorPanels", "path": "MonitorPanels/AppleDisplay.monitorPanels", "children": [ { "value": 860, "name": "Contents", "path": "MonitorPanels/AppleDisplay.monitorPanels/Contents" } ] }, { "value": 36, "name": "Arrange.monitorPanel", "path": "MonitorPanels/Arrange.monitorPanel", "children": [ { "value": 36, "name": "Contents", "path": "MonitorPanels/Arrange.monitorPanel/Contents" } ] }, { "value": 2080, "name": "Display.monitorPanel", "path": "MonitorPanels/Display.monitorPanel", "children": [ { "value": 2080, "name": "Contents", "path": "MonitorPanels/Display.monitorPanel/Contents" } ] }, { "value": 300, "name": "Profile.monitorPanel", "path": "MonitorPanels/Profile.monitorPanel", "children": [ { "value": 300, "name": "Contents", "path": "MonitorPanels/Profile.monitorPanel/Contents" } ] } ] }, { "value": 652, "name": "OpenDirectory", "path": "OpenDirectory", "children": [ { "value": 8, "name": "Configurations", "path": "OpenDirectory/Configurations" }, { "value": 0, "name": "DynamicNodeTemplates", "path": "OpenDirectory/DynamicNodeTemplates" }, { "value": 0, "name": "ManagedClient", "path": "OpenDirectory/ManagedClient" }, { "value": 12, "name": "Mappings", "path": "OpenDirectory/Mappings" }, { "value": 612, "name": "Modules", "path": "OpenDirectory/Modules", "children": [ { "value": 68, "name": "ActiveDirectory.bundle", "path": "OpenDirectory/Modules/ActiveDirectory.bundle" }, { "value": 12, "name": "AppleID.bundle", "path": "OpenDirectory/Modules/AppleID.bundle" }, { "value": 76, "name": "AppleODClientLDAP.bundle", "path": "OpenDirectory/Modules/AppleODClientLDAP.bundle" }, { "value": 68, "name": "AppleODClientPWS.bundle", "path": "OpenDirectory/Modules/AppleODClientPWS.bundle" }, { "value": 12, "name": "ConfigurationProfiles.bundle", "path": "OpenDirectory/Modules/ConfigurationProfiles.bundle" }, { "value": 20, "name": "configure.bundle", "path": "OpenDirectory/Modules/configure.bundle" }, { "value": 8, "name": "FDESupport.bundle", "path": "OpenDirectory/Modules/FDESupport.bundle" }, { "value": 12, "name": "Kerberosv5.bundle", "path": "OpenDirectory/Modules/Kerberosv5.bundle" }, { "value": 8, "name": "keychain.bundle", "path": "OpenDirectory/Modules/keychain.bundle" }, { "value": 44, "name": "ldap.bundle", "path": "OpenDirectory/Modules/ldap.bundle" }, { "value": 12, "name": "legacy.bundle", "path": "OpenDirectory/Modules/legacy.bundle" }, { "value": 12, "name": "NetLogon.bundle", "path": "OpenDirectory/Modules/NetLogon.bundle" }, { "value": 24, "name": "nis.bundle", "path": "OpenDirectory/Modules/nis.bundle" }, { "value": 68, "name": "PlistFile.bundle", "path": "OpenDirectory/Modules/PlistFile.bundle" }, { "value": 16, "name": "proxy.bundle", "path": "OpenDirectory/Modules/proxy.bundle" }, { "value": 20, "name": "search.bundle", "path": "OpenDirectory/Modules/search.bundle" }, { "value": 8, "name": "statistics.bundle", "path": "OpenDirectory/Modules/statistics.bundle" }, { "value": 124, "name": "SystemCache.bundle", "path": "OpenDirectory/Modules/SystemCache.bundle" } ] }, { "value": 8, "name": "Templates", "path": "OpenDirectory/Templates", "children": [ { "value": 0, "name": "LDAPv3", "path": "DirectoryServices/Templates/LDAPv3" } ] } ] }, { "value": 0, "name": "OpenSSL", "path": "OpenSSL", "children": [ { "value": 0, "name": "certs", "path": "OpenSSL/certs" }, { "value": 0, "name": "misc", "path": "OpenSSL/misc" }, { "value": 0, "name": "private", "path": "OpenSSL/private" } ] }, { "value": 8, "name": "PasswordServer Filters", "path": "PasswordServer Filters" }, { "value": 0, "name": "PerformanceMetrics", "path": "PerformanceMetrics" }, { "value": 57236, "name": "Perl", "path": "Perl", "children": [ { "value": 14848, "name": "5.12", "path": "Perl/5.12", "children": [ { "value": 20, "name": "App", "path": "Perl/5.12/App" }, { "value": 48, "name": "Archive", "path": "Perl/5.12/Archive" }, { "value": 12, "name": "Attribute", "path": "Perl/5.12/Attribute" }, { "value": 16, "name": "autodie", "path": "Perl/5.12/autodie" }, { "value": 56, "name": "B", "path": "Perl/5.12/B" }, { "value": 0, "name": "Carp", "path": "Perl/5.12/Carp" }, { "value": 32, "name": "CGI", "path": "Perl/5.12/CGI" }, { "value": 8, "name": "Class", "path": "Perl/5.12/Class" }, { "value": 12, "name": "Compress", "path": "Perl/5.12/Compress" }, { "value": 0, "name": "Config", "path": "Perl/5.12/Config" }, { "value": 120, "name": "CPAN", "path": "Perl/5.12/CPAN" }, { "value": 180, "name": "CPANPLUS", "path": "Perl/5.12/CPANPLUS" }, { "value": 7064, "name": "darwin-thread-multi-2level", "path": "Perl/5.12/darwin-thread-multi-2level" }, { "value": 0, "name": "DBM_Filter", "path": "Perl/5.12/DBM_Filter" }, { "value": 0, "name": "Devel", "path": "Perl/5.12/Devel" }, { "value": 0, "name": "Digest", "path": "Perl/5.12/Digest" }, { "value": 12, "name": "Encode", "path": "Perl/5.12/Encode" }, { "value": 0, "name": "encoding", "path": "Perl/5.12/encoding" }, { "value": 0, "name": "Exporter", "path": "Perl/5.12/Exporter" }, { "value": 224, "name": "ExtUtils", "path": "Perl/5.12/ExtUtils" }, { "value": 104, "name": "File", "path": "Perl/5.12/File" }, { "value": 12, "name": "Filter", "path": "Perl/5.12/Filter" }, { "value": 28, "name": "Getopt", "path": "Perl/5.12/Getopt" }, { "value": 24, "name": "I18N", "path": "Perl/5.12/I18N" }, { "value": 0, "name": "inc", "path": "Perl/5.12/inc" }, { "value": 152, "name": "IO", "path": "Perl/5.12/IO" }, { "value": 24, "name": "IPC", "path": "Perl/5.12/IPC" }, { "value": 60, "name": "Locale", "path": "Perl/5.12/Locale" }, { "value": 8, "name": "Log", "path": "Perl/5.12/Log" }, { "value": 144, "name": "Math", "path": "Perl/5.12/Math" }, { "value": 8, "name": "Memoize", "path": "Perl/5.12/Memoize" }, { "value": 284, "name": "Module", "path": "Perl/5.12/Module" }, { "value": 80, "name": "Net", "path": "Perl/5.12/Net" }, { "value": 8, "name": "Object", "path": "Perl/5.12/Object" }, { "value": 0, "name": "overload", "path": "Perl/5.12/overload" }, { "value": 0, "name": "Package", "path": "Perl/5.12/Package" }, { "value": 8, "name": "Params", "path": "Perl/5.12/Params" }, { "value": 0, "name": "Parse", "path": "Perl/5.12/Parse" }, { "value": 0, "name": "PerlIO", "path": "Perl/5.12/PerlIO" }, { "value": 312, "name": "Pod", "path": "Perl/5.12/Pod" }, { "value": 2452, "name": "pods", "path": "Perl/5.12/pods" }, { "value": 0, "name": "Search", "path": "Perl/5.12/Search" }, { "value": 32, "name": "TAP", "path": "Perl/5.12/TAP" }, { "value": 36, "name": "Term", "path": "Perl/5.12/Term" }, { "value": 60, "name": "Test", "path": "Perl/5.12/Test" }, { "value": 20, "name": "Text", "path": "Perl/5.12/Text" }, { "value": 8, "name": "Thread", "path": "Perl/5.12/Thread" }, { "value": 28, "name": "Tie", "path": "Perl/5.12/Tie" }, { "value": 8, "name": "Time", "path": "Perl/5.12/Time" }, { "value": 280, "name": "Unicode", "path": "Perl/5.12/Unicode" }, { "value": 2348, "name": "unicore", "path": "Perl/5.12/unicore" }, { "value": 8, "name": "User", "path": "Perl/5.12/User" }, { "value": 12, "name": "version", "path": "Perl/5.12/version" }, { "value": 0, "name": "warnings", "path": "Perl/5.12/warnings" } ] }, { "value": 14072, "name": "5.16", "path": "Perl/5.16", "children": [ { "value": 20, "name": "App", "path": "Perl/5.16/App" }, { "value": 48, "name": "Archive", "path": "Perl/5.16/Archive" }, { "value": 12, "name": "Attribute", "path": "Perl/5.16/Attribute" }, { "value": 16, "name": "autodie", "path": "Perl/5.16/autodie" }, { "value": 56, "name": "B", "path": "Perl/5.16/B" }, { "value": 0, "name": "Carp", "path": "Perl/5.16/Carp" }, { "value": 32, "name": "CGI", "path": "Perl/5.16/CGI" }, { "value": 8, "name": "Class", "path": "Perl/5.16/Class" }, { "value": 12, "name": "Compress", "path": "Perl/5.16/Compress" }, { "value": 0, "name": "Config", "path": "Perl/5.16/Config" }, { "value": 192, "name": "CPAN", "path": "Perl/5.16/CPAN" }, { "value": 180, "name": "CPANPLUS", "path": "Perl/5.16/CPANPLUS" }, { "value": 7328, "name": "darwin-thread-multi-2level", "path": "Perl/5.16/darwin-thread-multi-2level" }, { "value": 0, "name": "DBM_Filter", "path": "Perl/5.16/DBM_Filter" }, { "value": 0, "name": "Devel", "path": "Perl/5.16/Devel" }, { "value": 0, "name": "Digest", "path": "Perl/5.16/Digest" }, { "value": 12, "name": "Encode", "path": "Perl/5.16/Encode" }, { "value": 0, "name": "encoding", "path": "Perl/5.16/encoding" }, { "value": 0, "name": "Exporter", "path": "Perl/5.16/Exporter" }, { "value": 248, "name": "ExtUtils", "path": "Perl/5.16/ExtUtils" }, { "value": 96, "name": "File", "path": "Perl/5.16/File" }, { "value": 12, "name": "Filter", "path": "Perl/5.16/Filter" }, { "value": 28, "name": "Getopt", "path": "Perl/5.16/Getopt" }, { "value": 12, "name": "HTTP", "path": "Perl/5.16/HTTP" }, { "value": 24, "name": "I18N", "path": "Perl/5.16/I18N" }, { "value": 0, "name": "inc", "path": "Perl/5.16/inc" }, { "value": 168, "name": "IO", "path": "Perl/5.16/IO" }, { "value": 28, "name": "IPC", "path": "Perl/5.16/IPC" }, { "value": 28, "name": "JSON", "path": "Perl/5.16/JSON" }, { "value": 372, "name": "Locale", "path": "Perl/5.16/Locale" }, { "value": 8, "name": "Log", "path": "Perl/5.16/Log" }, { "value": 148, "name": "Math", "path": "Perl/5.16/Math" }, { "value": 8, "name": "Memoize", "path": "Perl/5.16/Memoize" }, { "value": 212, "name": "Module", "path": "Perl/5.16/Module" }, { "value": 80, "name": "Net", "path": "Perl/5.16/Net" }, { "value": 8, "name": "Object", "path": "Perl/5.16/Object" }, { "value": 0, "name": "overload", "path": "Perl/5.16/overload" }, { "value": 0, "name": "Package", "path": "Perl/5.16/Package" }, { "value": 8, "name": "Params", "path": "Perl/5.16/Params" }, { "value": 0, "name": "Parse", "path": "Perl/5.16/Parse" }, { "value": 0, "name": "Perl", "path": "Perl/5.16/Perl" }, { "value": 0, "name": "PerlIO", "path": "Perl/5.16/PerlIO" }, { "value": 324, "name": "Pod", "path": "Perl/5.16/Pod" }, { "value": 2452, "name": "pods", "path": "Perl/5.16/pods" }, { "value": 0, "name": "Search", "path": "Perl/5.16/Search" }, { "value": 44, "name": "TAP", "path": "Perl/5.16/TAP" }, { "value": 36, "name": "Term", "path": "Perl/5.16/Term" }, { "value": 60, "name": "Test", "path": "Perl/5.16/Test" }, { "value": 20, "name": "Text", "path": "Perl/5.16/Text" }, { "value": 8, "name": "Thread", "path": "Perl/5.16/Thread" }, { "value": 28, "name": "Tie", "path": "Perl/5.16/Tie" }, { "value": 8, "name": "Time", "path": "Perl/5.16/Time" }, { "value": 684, "name": "Unicode", "path": "Perl/5.16/Unicode" }, { "value": 468, "name": "unicore", "path": "Perl/5.16/unicore" }, { "value": 8, "name": "User", "path": "Perl/5.16/User" }, { "value": 12, "name": "version", "path": "Perl/5.16/version" }, { "value": 0, "name": "warnings", "path": "Perl/5.16/warnings" } ] }, { "value": 28316, "name": "Extras", "path": "Perl/Extras", "children": [ { "value": 14188, "name": "5.12", "path": "Perl/Extras/5.12" }, { "value": 14128, "name": "5.16", "path": "Perl/Extras/5.16" } ] } ] }, { "value": 226552, "name": "PreferencePanes", "path": "PreferencePanes", "children": [ { "value": 5380, "name": "Accounts.prefPane", "path": "PreferencePanes/Accounts.prefPane", "children": [ { "value": 5380, "name": "Contents", "path": "PreferencePanes/Accounts.prefPane/Contents" } ] }, { "value": 1448, "name": "Appearance.prefPane", "path": "PreferencePanes/Appearance.prefPane", "children": [ { "value": 1448, "name": "Contents", "path": "PreferencePanes/Appearance.prefPane/Contents" } ] }, { "value": 2008, "name": "AppStore.prefPane", "path": "PreferencePanes/AppStore.prefPane", "children": [ { "value": 2008, "name": "Contents", "path": "PreferencePanes/AppStore.prefPane/Contents" } ] }, { "value": 1636, "name": "Bluetooth.prefPane", "path": "PreferencePanes/Bluetooth.prefPane", "children": [ { "value": 1636, "name": "Contents", "path": "PreferencePanes/Bluetooth.prefPane/Contents" } ] }, { "value": 2348, "name": "DateAndTime.prefPane", "path": "PreferencePanes/DateAndTime.prefPane", "children": [ { "value": 2348, "name": "Contents", "path": "PreferencePanes/DateAndTime.prefPane/Contents" } ] }, { "value": 4644, "name": "DesktopScreenEffectsPref.prefPane", "path": "PreferencePanes/DesktopScreenEffectsPref.prefPane", "children": [ { "value": 4644, "name": "Contents", "path": "PreferencePanes/DesktopScreenEffectsPref.prefPane/Contents" } ] }, { "value": 2148, "name": "DigiHubDiscs.prefPane", "path": "PreferencePanes/DigiHubDiscs.prefPane", "children": [ { "value": 2148, "name": "Contents", "path": "PreferencePanes/DigiHubDiscs.prefPane/Contents" } ] }, { "value": 624, "name": "Displays.prefPane", "path": "PreferencePanes/Displays.prefPane", "children": [ { "value": 624, "name": "Contents", "path": "PreferencePanes/Displays.prefPane/Contents" } ] }, { "value": 1012, "name": "Dock.prefPane", "path": "PreferencePanes/Dock.prefPane", "children": [ { "value": 1012, "name": "Contents", "path": "PreferencePanes/Dock.prefPane/Contents" } ] }, { "value": 2568, "name": "EnergySaver.prefPane", "path": "PreferencePanes/EnergySaver.prefPane", "children": [ { "value": 2568, "name": "Contents", "path": "PreferencePanes/EnergySaver.prefPane/Contents" } ] }, { "value": 3056, "name": "Expose.prefPane", "path": "PreferencePanes/Expose.prefPane", "children": [ { "value": 3056, "name": "Contents", "path": "PreferencePanes/Expose.prefPane/Contents" } ] }, { "value": 156, "name": "FibreChannel.prefPane", "path": "PreferencePanes/FibreChannel.prefPane", "children": [ { "value": 156, "name": "Contents", "path": "PreferencePanes/FibreChannel.prefPane/Contents" } ] }, { "value": 252, "name": "iCloudPref.prefPane", "path": "PreferencePanes/iCloudPref.prefPane", "children": [ { "value": 252, "name": "Contents", "path": "PreferencePanes/iCloudPref.prefPane/Contents" } ] }, { "value": 1588, "name": "Ink.prefPane", "path": "PreferencePanes/Ink.prefPane", "children": [ { "value": 1588, "name": "Contents", "path": "PreferencePanes/Ink.prefPane/Contents" } ] }, { "value": 4616, "name": "InternetAccounts.prefPane", "path": "PreferencePanes/InternetAccounts.prefPane", "children": [ { "value": 4616, "name": "Contents", "path": "PreferencePanes/InternetAccounts.prefPane/Contents" } ] }, { "value": 3676, "name": "Keyboard.prefPane", "path": "PreferencePanes/Keyboard.prefPane", "children": [ { "value": 3676, "name": "Contents", "path": "PreferencePanes/Keyboard.prefPane/Contents" } ] }, { "value": 3468, "name": "Localization.prefPane", "path": "PreferencePanes/Localization.prefPane", "children": [ { "value": 3468, "name": "Contents", "path": "PreferencePanes/Localization.prefPane/Contents" } ] }, { "value": 23180, "name": "Mouse.prefPane", "path": "PreferencePanes/Mouse.prefPane", "children": [ { "value": 23180, "name": "Contents", "path": "PreferencePanes/Mouse.prefPane/Contents" } ] }, { "value": 20588, "name": "Network.prefPane", "path": "PreferencePanes/Network.prefPane", "children": [ { "value": 20588, "name": "Contents", "path": "PreferencePanes/Network.prefPane/Contents" } ] }, { "value": 1512, "name": "Notifications.prefPane", "path": "PreferencePanes/Notifications.prefPane", "children": [ { "value": 1512, "name": "Contents", "path": "PreferencePanes/Notifications.prefPane/Contents" } ] }, { "value": 7648, "name": "ParentalControls.prefPane", "path": "PreferencePanes/ParentalControls.prefPane", "children": [ { "value": 7648, "name": "Contents", "path": "PreferencePanes/ParentalControls.prefPane/Contents" } ] }, { "value": 4060, "name": "PrintAndScan.prefPane", "path": "PreferencePanes/PrintAndScan.prefPane", "children": [ { "value": 4060, "name": "Contents", "path": "PreferencePanes/PrintAndScan.prefPane/Contents" } ] }, { "value": 1904, "name": "Profiles.prefPane", "path": "PreferencePanes/Profiles.prefPane", "children": [ { "value": 1904, "name": "Contents", "path": "PreferencePanes/Profiles.prefPane/Contents" } ] }, { "value": 6280, "name": "Security.prefPane", "path": "PreferencePanes/Security.prefPane", "children": [ { "value": 6280, "name": "Contents", "path": "PreferencePanes/Security.prefPane/Contents" } ] }, { "value": 9608, "name": "SharingPref.prefPane", "path": "PreferencePanes/SharingPref.prefPane", "children": [ { "value": 9608, "name": "Contents", "path": "PreferencePanes/SharingPref.prefPane/Contents" } ] }, { "value": 2204, "name": "Sound.prefPane", "path": "PreferencePanes/Sound.prefPane", "children": [ { "value": 2204, "name": "Contents", "path": "PreferencePanes/Sound.prefPane/Contents" } ] }, { "value": 1072, "name": "Speech.prefPane", "path": "PreferencePanes/Speech.prefPane", "children": [ { "value": 1072, "name": "Contents", "path": "PreferencePanes/Speech.prefPane/Contents" } ] }, { "value": 1112, "name": "Spotlight.prefPane", "path": "PreferencePanes/Spotlight.prefPane", "children": [ { "value": 1112, "name": "Contents", "path": "PreferencePanes/Spotlight.prefPane/Contents" } ] }, { "value": 2040, "name": "StartupDisk.prefPane", "path": "PreferencePanes/StartupDisk.prefPane", "children": [ { "value": 2040, "name": "Contents", "path": "PreferencePanes/StartupDisk.prefPane/Contents" } ] }, { "value": 3080, "name": "TimeMachine.prefPane", "path": "PreferencePanes/TimeMachine.prefPane", "children": [ { "value": 3080, "name": "Contents", "path": "PreferencePanes/TimeMachine.prefPane/Contents" } ] }, { "value": 93312, "name": "Trackpad.prefPane", "path": "PreferencePanes/Trackpad.prefPane", "children": [ { "value": 93312, "name": "Contents", "path": "PreferencePanes/Trackpad.prefPane/Contents" } ] }, { "value": 7680, "name": "UniversalAccessPref.prefPane", "path": "PreferencePanes/UniversalAccessPref.prefPane", "children": [ { "value": 7680, "name": "Contents", "path": "PreferencePanes/UniversalAccessPref.prefPane/Contents" } ] }, { "value": 640, "name": "Xsan.prefPane", "path": "PreferencePanes/Xsan.prefPane", "children": [ { "value": 640, "name": "Contents", "path": "PreferencePanes/Xsan.prefPane/Contents" } ] } ] }, { "value": 224, "name": "Printers", "path": "Printers", "children": [ { "value": 224, "name": "Libraries", "path": "Printers/Libraries", "children": [ { "value": 24, "name": "USBGenericPrintingClass.plugin", "path": "Printers/Libraries/USBGenericPrintingClass.plugin" }, { "value": 24, "name": "USBGenericTOPrintingClass.plugin", "path": "Printers/Libraries/USBGenericTOPrintingClass.plugin" } ] } ] }, { "value": 586092, "name": "PrivateFrameworks", "path": "PrivateFrameworks", "children": [ { "value": 52, "name": "AccessibilityBundles.framework", "path": "PrivateFrameworks/AccessibilityBundles.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/AccessibilityBundles.framework/Versions" } ] }, { "value": 348, "name": "AccountsDaemon.framework", "path": "PrivateFrameworks/AccountsDaemon.framework", "children": [ { "value": 332, "name": "Versions", "path": "PrivateFrameworks/AccountsDaemon.framework/Versions" }, { "value": 8, "name": "XPCServices", "path": "PrivateFrameworks/AccountsDaemon.framework/XPCServices" } ] }, { "value": 168, "name": "Admin.framework", "path": "PrivateFrameworks/Admin.framework", "children": [ { "value": 160, "name": "Versions", "path": "PrivateFrameworks/Admin.framework/Versions" } ] }, { "value": 408, "name": "AirPortDevices.framework", "path": "PrivateFrameworks/AirPortDevices.framework", "children": [ { "value": 408, "name": "Versions", "path": "PrivateFrameworks/AirPortDevices.framework/Versions" } ] }, { "value": 1324, "name": "AirTrafficHost.framework", "path": "PrivateFrameworks/AirTrafficHost.framework", "children": [ { "value": 1276, "name": "Versions", "path": "PrivateFrameworks/AirTrafficHost.framework/Versions" } ] }, { "value": 2408, "name": "Altitude.framework", "path": "PrivateFrameworks/Altitude.framework", "children": [ { "value": 2400, "name": "Versions", "path": "PrivateFrameworks/Altitude.framework/Versions" } ] }, { "value": 224, "name": "AOSAccounts.framework", "path": "PrivateFrameworks/AOSAccounts.framework", "children": [ { "value": 216, "name": "Versions", "path": "PrivateFrameworks/AOSAccounts.framework/Versions" } ] }, { "value": 4672, "name": "AOSKit.framework", "path": "PrivateFrameworks/AOSKit.framework", "children": [ { "value": 4656, "name": "Versions", "path": "PrivateFrameworks/AOSKit.framework/Versions" } ] }, { "value": 20, "name": "AOSMigrate.framework", "path": "PrivateFrameworks/AOSMigrate.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/AOSMigrate.framework/Versions" } ] }, { "value": 1300, "name": "AOSNotification.framework", "path": "PrivateFrameworks/AOSNotification.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/AOSNotification.framework/Versions" } ] }, { "value": 16500, "name": "AOSUI.framework", "path": "PrivateFrameworks/AOSUI.framework", "children": [ { "value": 16492, "name": "Versions", "path": "PrivateFrameworks/AOSUI.framework/Versions" } ] }, { "value": 124, "name": "AppContainer.framework", "path": "PrivateFrameworks/AppContainer.framework", "children": [ { "value": 116, "name": "Versions", "path": "PrivateFrameworks/AppContainer.framework/Versions" } ] }, { "value": 324, "name": "Apple80211.framework", "path": "PrivateFrameworks/Apple80211.framework", "children": [ { "value": 316, "name": "Versions", "path": "PrivateFrameworks/Apple80211.framework/Versions" } ] }, { "value": 20, "name": "AppleAppSupport.framework", "path": "PrivateFrameworks/AppleAppSupport.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/AppleAppSupport.framework/Versions" } ] }, { "value": 88, "name": "AppleFSCompression.framework", "path": "PrivateFrameworks/AppleFSCompression.framework", "children": [ { "value": 80, "name": "Versions", "path": "PrivateFrameworks/AppleFSCompression.framework/Versions" } ] }, { "value": 712, "name": "AppleGVA.framework", "path": "PrivateFrameworks/AppleGVA.framework", "children": [ { "value": 704, "name": "Versions", "path": "PrivateFrameworks/AppleGVA.framework/Versions" } ] }, { "value": 88, "name": "AppleGVACore.framework", "path": "PrivateFrameworks/AppleGVACore.framework", "children": [ { "value": 80, "name": "Versions", "path": "PrivateFrameworks/AppleGVACore.framework/Versions" } ] }, { "value": 52, "name": "AppleLDAP.framework", "path": "PrivateFrameworks/AppleLDAP.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/AppleLDAP.framework/Versions" } ] }, { "value": 588, "name": "AppleProfileFamily.framework", "path": "PrivateFrameworks/AppleProfileFamily.framework", "children": [ { "value": 580, "name": "Versions", "path": "PrivateFrameworks/AppleProfileFamily.framework/Versions" } ] }, { "value": 508, "name": "ApplePushService.framework", "path": "PrivateFrameworks/ApplePushService.framework", "children": [ { "value": 128, "name": "Versions", "path": "PrivateFrameworks/ApplePushService.framework/Versions" } ] }, { "value": 672, "name": "AppleScript.framework", "path": "PrivateFrameworks/AppleScript.framework", "children": [ { "value": 664, "name": "Versions", "path": "PrivateFrameworks/AppleScript.framework/Versions" } ] }, { "value": 68, "name": "AppleSRP.framework", "path": "PrivateFrameworks/AppleSRP.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/AppleSRP.framework/Versions" } ] }, { "value": 44, "name": "AppleSystemInfo.framework", "path": "PrivateFrameworks/AppleSystemInfo.framework", "children": [ { "value": 36, "name": "Versions", "path": "PrivateFrameworks/AppleSystemInfo.framework/Versions" } ] }, { "value": 336, "name": "AppleVA.framework", "path": "PrivateFrameworks/AppleVA.framework", "children": [ { "value": 328, "name": "Versions", "path": "PrivateFrameworks/AppleVA.framework/Versions" } ] }, { "value": 72, "name": "AppSandbox.framework", "path": "PrivateFrameworks/AppSandbox.framework", "children": [ { "value": 64, "name": "Versions", "path": "PrivateFrameworks/AppSandbox.framework/Versions" } ] }, { "value": 380, "name": "Assistant.framework", "path": "PrivateFrameworks/Assistant.framework", "children": [ { "value": 372, "name": "Versions", "path": "PrivateFrameworks/Assistant.framework/Versions" } ] }, { "value": 1772, "name": "AssistantServices.framework", "path": "PrivateFrameworks/AssistantServices.framework", "children": [ { "value": 116, "name": "Versions", "path": "PrivateFrameworks/AssistantServices.framework/Versions" } ] }, { "value": 684, "name": "AssistiveControlSupport.framework", "path": "PrivateFrameworks/AssistiveControlSupport.framework", "children": [ { "value": 224, "name": "Frameworks", "path": "PrivateFrameworks/AssistiveControlSupport.framework/Frameworks" }, { "value": 452, "name": "Versions", "path": "PrivateFrameworks/AssistiveControlSupport.framework/Versions" } ] }, { "value": 1880, "name": "AVConference.framework", "path": "PrivateFrameworks/AVConference.framework", "children": [ { "value": 388, "name": "Frameworks", "path": "PrivateFrameworks/AVConference.framework/Frameworks" }, { "value": 1484, "name": "Versions", "path": "PrivateFrameworks/AVConference.framework/Versions" } ] }, { "value": 168, "name": "AVCore.framework", "path": "PrivateFrameworks/AVCore.framework", "children": [ { "value": 160, "name": "Versions", "path": "PrivateFrameworks/AVCore.framework/Versions" } ] }, { "value": 296, "name": "AVFoundationCF.framework", "path": "PrivateFrameworks/AVFoundationCF.framework", "children": [ { "value": 288, "name": "Versions", "path": "PrivateFrameworks/AVFoundationCF.framework/Versions" } ] }, { "value": 3728, "name": "Backup.framework", "path": "PrivateFrameworks/Backup.framework", "children": [ { "value": 3720, "name": "Versions", "path": "PrivateFrameworks/Backup.framework/Versions" } ] }, { "value": 52, "name": "BezelServices.framework", "path": "PrivateFrameworks/BezelServices.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/BezelServices.framework/Versions" } ] }, { "value": 316, "name": "Bom.framework", "path": "PrivateFrameworks/Bom.framework", "children": [ { "value": 308, "name": "Versions", "path": "PrivateFrameworks/Bom.framework/Versions" } ] }, { "value": 88, "name": "BookKit.framework", "path": "PrivateFrameworks/BookKit.framework", "children": [ { "value": 76, "name": "Versions", "path": "PrivateFrameworks/BookKit.framework/Versions" } ] }, { "value": 124, "name": "BookmarkDAV.framework", "path": "PrivateFrameworks/BookmarkDAV.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/BookmarkDAV.framework/Versions" } ] }, { "value": 1732, "name": "BrowserKit.framework", "path": "PrivateFrameworks/BrowserKit.framework", "children": [ { "value": 1724, "name": "Versions", "path": "PrivateFrameworks/BrowserKit.framework/Versions" } ] }, { "value": 52, "name": "ByteRangeLocking.framework", "path": "PrivateFrameworks/ByteRangeLocking.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/ByteRangeLocking.framework/Versions" } ] }, { "value": 64, "name": "Calculate.framework", "path": "PrivateFrameworks/Calculate.framework", "children": [ { "value": 56, "name": "Versions", "path": "PrivateFrameworks/Calculate.framework/Versions" } ] }, { "value": 356, "name": "CalDAV.framework", "path": "PrivateFrameworks/CalDAV.framework", "children": [ { "value": 348, "name": "Versions", "path": "PrivateFrameworks/CalDAV.framework/Versions" } ] }, { "value": 104, "name": "CalendarAgent.framework", "path": "PrivateFrameworks/CalendarAgent.framework", "children": [ { "value": 8, "name": "Executables", "path": "PrivateFrameworks/CalendarAgent.framework/Executables" }, { "value": 88, "name": "Versions", "path": "PrivateFrameworks/CalendarAgent.framework/Versions" } ] }, { "value": 88, "name": "CalendarAgentLink.framework", "path": "PrivateFrameworks/CalendarAgentLink.framework", "children": [ { "value": 80, "name": "Versions", "path": "PrivateFrameworks/CalendarAgentLink.framework/Versions" } ] }, { "value": 220, "name": "CalendarDraw.framework", "path": "PrivateFrameworks/CalendarDraw.framework", "children": [ { "value": 212, "name": "Versions", "path": "PrivateFrameworks/CalendarDraw.framework/Versions" } ] }, { "value": 196, "name": "CalendarFoundation.framework", "path": "PrivateFrameworks/CalendarFoundation.framework", "children": [ { "value": 188, "name": "Versions", "path": "PrivateFrameworks/CalendarFoundation.framework/Versions" } ] }, { "value": 4872, "name": "CalendarPersistence.framework", "path": "PrivateFrameworks/CalendarPersistence.framework", "children": [ { "value": 4864, "name": "Versions", "path": "PrivateFrameworks/CalendarPersistence.framework/Versions" } ] }, { "value": 900, "name": "CalendarUI.framework", "path": "PrivateFrameworks/CalendarUI.framework", "children": [ { "value": 892, "name": "Versions", "path": "PrivateFrameworks/CalendarUI.framework/Versions" } ] }, { "value": 76, "name": "CaptiveNetwork.framework", "path": "PrivateFrameworks/CaptiveNetwork.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/CaptiveNetwork.framework/Versions" } ] }, { "value": 1180, "name": "CharacterPicker.framework", "path": "PrivateFrameworks/CharacterPicker.framework", "children": [ { "value": 1168, "name": "Versions", "path": "PrivateFrameworks/CharacterPicker.framework/Versions" } ] }, { "value": 192, "name": "ChunkingLibrary.framework", "path": "PrivateFrameworks/ChunkingLibrary.framework", "children": [ { "value": 184, "name": "Versions", "path": "PrivateFrameworks/ChunkingLibrary.framework/Versions" } ] }, { "value": 48, "name": "ClockMenuExtraPreferences.framework", "path": "PrivateFrameworks/ClockMenuExtraPreferences.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/ClockMenuExtraPreferences.framework/Versions" } ] }, { "value": 160, "name": "CloudServices.framework", "path": "PrivateFrameworks/CloudServices.framework", "children": [ { "value": 104, "name": "Versions", "path": "PrivateFrameworks/CloudServices.framework/Versions" }, { "value": 48, "name": "XPCServices", "path": "PrivateFrameworks/CloudServices.framework/XPCServices" } ] }, { "value": 10768, "name": "CommerceKit.framework", "path": "PrivateFrameworks/CommerceKit.framework", "children": [ { "value": 10752, "name": "Versions", "path": "PrivateFrameworks/CommerceKit.framework/Versions" } ] }, { "value": 68, "name": "CommonAuth.framework", "path": "PrivateFrameworks/CommonAuth.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/CommonAuth.framework/Versions" } ] }, { "value": 120, "name": "CommonCandidateWindow.framework", "path": "PrivateFrameworks/CommonCandidateWindow.framework", "children": [ { "value": 112, "name": "Versions", "path": "PrivateFrameworks/CommonCandidateWindow.framework/Versions" } ] }, { "value": 72, "name": "CommunicationsFilter.framework", "path": "PrivateFrameworks/CommunicationsFilter.framework", "children": [ { "value": 28, "name": "CMFSyncAgent.app", "path": "PrivateFrameworks/CommunicationsFilter.framework/CMFSyncAgent.app" }, { "value": 36, "name": "Versions", "path": "PrivateFrameworks/CommunicationsFilter.framework/Versions" } ] }, { "value": 24, "name": "ConfigProfileHelper.framework", "path": "PrivateFrameworks/ConfigProfileHelper.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/ConfigProfileHelper.framework/Versions" } ] }, { "value": 156, "name": "ConfigurationProfiles.framework", "path": "PrivateFrameworks/ConfigurationProfiles.framework", "children": [ { "value": 148, "name": "Versions", "path": "PrivateFrameworks/ConfigurationProfiles.framework/Versions" } ] }, { "value": 20, "name": "ContactsAssistantServices.framework", "path": "PrivateFrameworks/ContactsAssistantServices.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/ContactsAssistantServices.framework/Versions" } ] }, { "value": 72, "name": "ContactsAutocomplete.framework", "path": "PrivateFrameworks/ContactsAutocomplete.framework", "children": [ { "value": 64, "name": "Versions", "path": "PrivateFrameworks/ContactsAutocomplete.framework/Versions" } ] }, { "value": 24, "name": "ContactsData.framework", "path": "PrivateFrameworks/ContactsData.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/ContactsData.framework/Versions" } ] }, { "value": 60, "name": "ContactsFoundation.framework", "path": "PrivateFrameworks/ContactsFoundation.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/ContactsFoundation.framework/Versions" } ] }, { "value": 100, "name": "ContactsUI.framework", "path": "PrivateFrameworks/ContactsUI.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/ContactsUI.framework/Versions" } ] }, { "value": 1668, "name": "CoreADI.framework", "path": "PrivateFrameworks/CoreADI.framework", "children": [ { "value": 1660, "name": "Versions", "path": "PrivateFrameworks/CoreADI.framework/Versions" } ] }, { "value": 4092, "name": "CoreAUC.framework", "path": "PrivateFrameworks/CoreAUC.framework", "children": [ { "value": 4084, "name": "Versions", "path": "PrivateFrameworks/CoreAUC.framework/Versions" } ] }, { "value": 200, "name": "CoreAVCHD.framework", "path": "PrivateFrameworks/CoreAVCHD.framework", "children": [ { "value": 192, "name": "Versions", "path": "PrivateFrameworks/CoreAVCHD.framework/Versions" } ] }, { "value": 2624, "name": "CoreChineseEngine.framework", "path": "PrivateFrameworks/CoreChineseEngine.framework", "children": [ { "value": 2616, "name": "Versions", "path": "PrivateFrameworks/CoreChineseEngine.framework/Versions" } ] }, { "value": 240, "name": "CoreDaemon.framework", "path": "PrivateFrameworks/CoreDaemon.framework", "children": [ { "value": 232, "name": "Versions", "path": "PrivateFrameworks/CoreDaemon.framework/Versions" } ] }, { "value": 488, "name": "CoreDAV.framework", "path": "PrivateFrameworks/CoreDAV.framework", "children": [ { "value": 480, "name": "Versions", "path": "PrivateFrameworks/CoreDAV.framework/Versions" } ] }, { "value": 19280, "name": "CoreFP.framework", "path": "PrivateFrameworks/CoreFP.framework", "children": [ { "value": 19268, "name": "Versions", "path": "PrivateFrameworks/CoreFP.framework/Versions" } ] }, { "value": 16124, "name": "CoreHandwriting.framework", "path": "PrivateFrameworks/CoreHandwriting.framework", "children": [ { "value": 16116, "name": "Versions", "path": "PrivateFrameworks/CoreHandwriting.framework/Versions" } ] }, { "value": 2124, "name": "CoreKE.framework", "path": "PrivateFrameworks/CoreKE.framework", "children": [ { "value": 2116, "name": "Versions", "path": "PrivateFrameworks/CoreKE.framework/Versions" } ] }, { "value": 7856, "name": "CoreLSKD.framework", "path": "PrivateFrameworks/CoreLSKD.framework", "children": [ { "value": 7848, "name": "Versions", "path": "PrivateFrameworks/CoreLSKD.framework/Versions" } ] }, { "value": 824, "name": "CoreMediaAuthoring.framework", "path": "PrivateFrameworks/CoreMediaAuthoring.framework", "children": [ { "value": 816, "name": "Versions", "path": "PrivateFrameworks/CoreMediaAuthoring.framework/Versions" } ] }, { "value": 784, "name": "CoreMediaIOServicesPrivate.framework", "path": "PrivateFrameworks/CoreMediaIOServicesPrivate.framework", "children": [ { "value": 776, "name": "Versions", "path": "PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions" } ] }, { "value": 116, "name": "CoreMediaPrivate.framework", "path": "PrivateFrameworks/CoreMediaPrivate.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/CoreMediaPrivate.framework/Versions" } ] }, { "value": 292, "name": "CoreMediaStream.framework", "path": "PrivateFrameworks/CoreMediaStream.framework", "children": [ { "value": 284, "name": "Versions", "path": "PrivateFrameworks/CoreMediaStream.framework/Versions" } ] }, { "value": 1436, "name": "CorePDF.framework", "path": "PrivateFrameworks/CorePDF.framework", "children": [ { "value": 1428, "name": "Versions", "path": "PrivateFrameworks/CorePDF.framework/Versions" } ] }, { "value": 1324, "name": "CoreProfile.framework", "path": "PrivateFrameworks/CoreProfile.framework", "children": [ { "value": 1312, "name": "Versions", "path": "PrivateFrameworks/CoreProfile.framework/Versions" } ] }, { "value": 1384, "name": "CoreRAID.framework", "path": "PrivateFrameworks/CoreRAID.framework", "children": [ { "value": 1372, "name": "Versions", "path": "PrivateFrameworks/CoreRAID.framework/Versions" } ] }, { "value": 128, "name": "CoreRecents.framework", "path": "PrivateFrameworks/CoreRecents.framework", "children": [ { "value": 120, "name": "Versions", "path": "PrivateFrameworks/CoreRecents.framework/Versions" } ] }, { "value": 832, "name": "CoreRecognition.framework", "path": "PrivateFrameworks/CoreRecognition.framework", "children": [ { "value": 824, "name": "Versions", "path": "PrivateFrameworks/CoreRecognition.framework/Versions" } ] }, { "value": 104, "name": "CoreSDB.framework", "path": "PrivateFrameworks/CoreSDB.framework", "children": [ { "value": 96, "name": "Versions", "path": "PrivateFrameworks/CoreSDB.framework/Versions" } ] }, { "value": 280, "name": "CoreServicesInternal.framework", "path": "PrivateFrameworks/CoreServicesInternal.framework", "children": [ { "value": 272, "name": "Versions", "path": "PrivateFrameworks/CoreServicesInternal.framework/Versions" } ] }, { "value": 576, "name": "CoreSymbolication.framework", "path": "PrivateFrameworks/CoreSymbolication.framework", "children": [ { "value": 536, "name": "Versions", "path": "PrivateFrameworks/CoreSymbolication.framework/Versions" } ] }, { "value": 476, "name": "CoreThemeDefinition.framework", "path": "PrivateFrameworks/CoreThemeDefinition.framework", "children": [ { "value": 468, "name": "Versions", "path": "PrivateFrameworks/CoreThemeDefinition.framework/Versions" } ] }, { "value": 4976, "name": "CoreUI.framework", "path": "PrivateFrameworks/CoreUI.framework", "children": [ { "value": 4968, "name": "Versions", "path": "PrivateFrameworks/CoreUI.framework/Versions" } ] }, { "value": 576, "name": "CoreUtils.framework", "path": "PrivateFrameworks/CoreUtils.framework", "children": [ { "value": 568, "name": "Versions", "path": "PrivateFrameworks/CoreUtils.framework/Versions" } ] }, { "value": 3476, "name": "CoreWLANKit.framework", "path": "PrivateFrameworks/CoreWLANKit.framework", "children": [ { "value": 3468, "name": "Versions", "path": "PrivateFrameworks/CoreWLANKit.framework/Versions" } ] }, { "value": 92, "name": "CrashReporterSupport.framework", "path": "PrivateFrameworks/CrashReporterSupport.framework", "children": [ { "value": 84, "name": "Versions", "path": "PrivateFrameworks/CrashReporterSupport.framework/Versions" } ] }, { "value": 132, "name": "DashboardClient.framework", "path": "PrivateFrameworks/DashboardClient.framework", "children": [ { "value": 124, "name": "Versions", "path": "PrivateFrameworks/DashboardClient.framework/Versions" } ] }, { "value": 1716, "name": "DataDetectors.framework", "path": "PrivateFrameworks/DataDetectors.framework", "children": [ { "value": 1708, "name": "Versions", "path": "PrivateFrameworks/DataDetectors.framework/Versions" } ] }, { "value": 4952, "name": "DataDetectorsCore.framework", "path": "PrivateFrameworks/DataDetectorsCore.framework", "children": [ { "value": 4940, "name": "Versions", "path": "PrivateFrameworks/DataDetectorsCore.framework/Versions" } ] }, { "value": 500, "name": "DCERPC.framework", "path": "PrivateFrameworks/DCERPC.framework", "children": [ { "value": 492, "name": "Versions", "path": "PrivateFrameworks/DCERPC.framework/Versions" } ] }, { "value": 232, "name": "DebugSymbols.framework", "path": "PrivateFrameworks/DebugSymbols.framework", "children": [ { "value": 224, "name": "Versions", "path": "PrivateFrameworks/DebugSymbols.framework/Versions" } ] }, { "value": 1792, "name": "DesktopServicesPriv.framework", "path": "PrivateFrameworks/DesktopServicesPriv.framework", "children": [ { "value": 1780, "name": "Versions", "path": "PrivateFrameworks/DesktopServicesPriv.framework/Versions" } ] }, { "value": 128, "name": "DeviceLink.framework", "path": "PrivateFrameworks/DeviceLink.framework", "children": [ { "value": 120, "name": "Versions", "path": "PrivateFrameworks/DeviceLink.framework/Versions" } ] }, { "value": 464, "name": "DeviceToDeviceKit.framework", "path": "PrivateFrameworks/DeviceToDeviceKit.framework", "children": [ { "value": 456, "name": "Versions", "path": "PrivateFrameworks/DeviceToDeviceKit.framework/Versions" } ] }, { "value": 52, "name": "DeviceToDeviceManager.framework", "path": "PrivateFrameworks/DeviceToDeviceManager.framework", "children": [ { "value": 28, "name": "PlugIns", "path": "PrivateFrameworks/DeviceToDeviceManager.framework/PlugIns" }, { "value": 16, "name": "Versions", "path": "PrivateFrameworks/DeviceToDeviceManager.framework/Versions" } ] }, { "value": 28, "name": "DiagnosticLogCollection.framework", "path": "PrivateFrameworks/DiagnosticLogCollection.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/DiagnosticLogCollection.framework/Versions" } ] }, { "value": 56, "name": "DigiHubPreference.framework", "path": "PrivateFrameworks/DigiHubPreference.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/DigiHubPreference.framework/Versions" } ] }, { "value": 1344, "name": "DirectoryEditor.framework", "path": "PrivateFrameworks/DirectoryEditor.framework", "children": [ { "value": 1336, "name": "Versions", "path": "PrivateFrameworks/DirectoryEditor.framework/Versions" } ] }, { "value": 104, "name": "DirectoryServer.framework", "path": "PrivateFrameworks/DirectoryServer.framework", "children": [ { "value": 52, "name": "Frameworks", "path": "PrivateFrameworks/DirectoryServer.framework/Frameworks" }, { "value": 40, "name": "Versions", "path": "PrivateFrameworks/DirectoryServer.framework/Versions" } ] }, { "value": 1596, "name": "DiskImages.framework", "path": "PrivateFrameworks/DiskImages.framework", "children": [ { "value": 1588, "name": "Versions", "path": "PrivateFrameworks/DiskImages.framework/Versions" } ] }, { "value": 1168, "name": "DiskManagement.framework", "path": "PrivateFrameworks/DiskManagement.framework", "children": [ { "value": 1160, "name": "Versions", "path": "PrivateFrameworks/DiskManagement.framework/Versions" } ] }, { "value": 80, "name": "DisplayServices.framework", "path": "PrivateFrameworks/DisplayServices.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/DisplayServices.framework/Versions" } ] }, { "value": 32, "name": "DMNotification.framework", "path": "PrivateFrameworks/DMNotification.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/DMNotification.framework/Versions" } ] }, { "value": 24, "name": "DVD.framework", "path": "PrivateFrameworks/DVD.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/DVD.framework/Versions" } ] }, { "value": 272, "name": "EAP8021X.framework", "path": "PrivateFrameworks/EAP8021X.framework", "children": [ { "value": 20, "name": "Support", "path": "PrivateFrameworks/EAP8021X.framework/Support" }, { "value": 244, "name": "Versions", "path": "PrivateFrameworks/EAP8021X.framework/Versions" } ] }, { "value": 56, "name": "EasyConfig.framework", "path": "PrivateFrameworks/EasyConfig.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/EasyConfig.framework/Versions" } ] }, { "value": 872, "name": "EFILogin.framework", "path": "PrivateFrameworks/EFILogin.framework", "children": [ { "value": 864, "name": "Versions", "path": "PrivateFrameworks/EFILogin.framework/Versions" } ] }, { "value": 32, "name": "EmailAddressing.framework", "path": "PrivateFrameworks/EmailAddressing.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/EmailAddressing.framework/Versions" } ] }, { "value": 444, "name": "ExchangeWebServices.framework", "path": "PrivateFrameworks/ExchangeWebServices.framework", "children": [ { "value": 436, "name": "Versions", "path": "PrivateFrameworks/ExchangeWebServices.framework/Versions" } ] }, { "value": 23556, "name": "FaceCore.framework", "path": "PrivateFrameworks/FaceCore.framework", "children": [ { "value": 23548, "name": "Versions", "path": "PrivateFrameworks/FaceCore.framework/Versions" } ] }, { "value": 12, "name": "FaceCoreLight.framework", "path": "PrivateFrameworks/FaceCoreLight.framework", "children": [ { "value": 8, "name": "Versions", "path": "PrivateFrameworks/FaceCoreLight.framework/Versions" } ] }, { "value": 2836, "name": "FamilyControls.framework", "path": "PrivateFrameworks/FamilyControls.framework", "children": [ { "value": 2828, "name": "Versions", "path": "PrivateFrameworks/FamilyControls.framework/Versions" } ] }, { "value": 104, "name": "FileSync.framework", "path": "PrivateFrameworks/FileSync.framework", "children": [ { "value": 96, "name": "Versions", "path": "PrivateFrameworks/FileSync.framework/Versions" } ] }, { "value": 12048, "name": "FinderKit.framework", "path": "PrivateFrameworks/FinderKit.framework", "children": [ { "value": 12040, "name": "Versions", "path": "PrivateFrameworks/FinderKit.framework/Versions" } ] }, { "value": 1068, "name": "FindMyMac.framework", "path": "PrivateFrameworks/FindMyMac.framework", "children": [ { "value": 1044, "name": "Versions", "path": "PrivateFrameworks/FindMyMac.framework/Versions" }, { "value": 16, "name": "XPCServices", "path": "PrivateFrameworks/FindMyMac.framework/XPCServices" } ] }, { "value": 32, "name": "FTClientServices.framework", "path": "PrivateFrameworks/FTClientServices.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/FTClientServices.framework/Versions" } ] }, { "value": 156, "name": "FTServices.framework", "path": "PrivateFrameworks/FTServices.framework", "children": [ { "value": 148, "name": "Versions", "path": "PrivateFrameworks/FTServices.framework/Versions" } ] }, { "value": 216, "name": "FWAVC.framework", "path": "PrivateFrameworks/FWAVC.framework", "children": [ { "value": 208, "name": "Versions", "path": "PrivateFrameworks/FWAVC.framework/Versions" } ] }, { "value": 116, "name": "FWAVCPrivate.framework", "path": "PrivateFrameworks/FWAVCPrivate.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/FWAVCPrivate.framework/Versions" } ] }, { "value": 624, "name": "GameKitServices.framework", "path": "PrivateFrameworks/GameKitServices.framework", "children": [ { "value": 616, "name": "Versions", "path": "PrivateFrameworks/GameKitServices.framework/Versions" } ] }, { "value": 312, "name": "GenerationalStorage.framework", "path": "PrivateFrameworks/GenerationalStorage.framework", "children": [ { "value": 300, "name": "Versions", "path": "PrivateFrameworks/GenerationalStorage.framework/Versions" } ] }, { "value": 14920, "name": "GeoKit.framework", "path": "PrivateFrameworks/GeoKit.framework", "children": [ { "value": 14912, "name": "Versions", "path": "PrivateFrameworks/GeoKit.framework/Versions" } ] }, { "value": 27272, "name": "GeoServices.framework", "path": "PrivateFrameworks/GeoServices.framework", "children": [ { "value": 2104, "name": "Versions", "path": "PrivateFrameworks/GeoServices.framework/Versions" } ] }, { "value": 152, "name": "GPUSupport.framework", "path": "PrivateFrameworks/GPUSupport.framework", "children": [ { "value": 144, "name": "Versions", "path": "PrivateFrameworks/GPUSupport.framework/Versions" } ] }, { "value": 28, "name": "GraphicsAppSupport.framework", "path": "PrivateFrameworks/GraphicsAppSupport.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/GraphicsAppSupport.framework/Versions" } ] }, { "value": 336, "name": "GraphKit.framework", "path": "PrivateFrameworks/GraphKit.framework", "children": [ { "value": 328, "name": "Versions", "path": "PrivateFrameworks/GraphKit.framework/Versions" } ] }, { "value": 56, "name": "HDAInterface.framework", "path": "PrivateFrameworks/HDAInterface.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/HDAInterface.framework/Versions" } ] }, { "value": 1044, "name": "Heimdal.framework", "path": "PrivateFrameworks/Heimdal.framework", "children": [ { "value": 508, "name": "Helpers", "path": "PrivateFrameworks/Heimdal.framework/Helpers" }, { "value": 528, "name": "Versions", "path": "PrivateFrameworks/Heimdal.framework/Versions" } ] }, { "value": 56, "name": "HeimODAdmin.framework", "path": "PrivateFrameworks/HeimODAdmin.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/HeimODAdmin.framework/Versions" } ] }, { "value": 232, "name": "HelpData.framework", "path": "PrivateFrameworks/HelpData.framework", "children": [ { "value": 224, "name": "Versions", "path": "PrivateFrameworks/HelpData.framework/Versions" } ] }, { "value": 104, "name": "IASUtilities.framework", "path": "PrivateFrameworks/IASUtilities.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/IASUtilities.framework/Versions" } ] }, { "value": 224, "name": "iCalendar.framework", "path": "PrivateFrameworks/iCalendar.framework", "children": [ { "value": 216, "name": "Versions", "path": "PrivateFrameworks/iCalendar.framework/Versions" } ] }, { "value": 116, "name": "ICANotifications.framework", "path": "PrivateFrameworks/ICANotifications.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/ICANotifications.framework/Versions" } ] }, { "value": 308, "name": "IconServices.framework", "path": "PrivateFrameworks/IconServices.framework", "children": [ { "value": 296, "name": "Versions", "path": "PrivateFrameworks/IconServices.framework/Versions" } ] }, { "value": 256, "name": "IDS.framework", "path": "PrivateFrameworks/IDS.framework", "children": [ { "value": 248, "name": "Versions", "path": "PrivateFrameworks/IDS.framework/Versions" } ] }, { "value": 4572, "name": "IDSCore.framework", "path": "PrivateFrameworks/IDSCore.framework", "children": [ { "value": 1300, "name": "identityservicesd.app", "path": "PrivateFrameworks/IDSCore.framework/identityservicesd.app" }, { "value": 3264, "name": "Versions", "path": "PrivateFrameworks/IDSCore.framework/Versions" } ] }, { "value": 116, "name": "IDSFoundation.framework", "path": "PrivateFrameworks/IDSFoundation.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/IDSFoundation.framework/Versions" } ] }, { "value": 24, "name": "IDSSystemPreferencesSignIn.framework", "path": "PrivateFrameworks/IDSSystemPreferencesSignIn.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/IDSSystemPreferencesSignIn.framework/Versions" } ] }, { "value": 16772, "name": "iLifeMediaBrowser.framework", "path": "PrivateFrameworks/iLifeMediaBrowser.framework", "children": [ { "value": 16764, "name": "Versions", "path": "PrivateFrameworks/iLifeMediaBrowser.framework/Versions" } ] }, { "value": 252, "name": "IMAP.framework", "path": "PrivateFrameworks/IMAP.framework", "children": [ { "value": 244, "name": "Versions", "path": "PrivateFrameworks/IMAP.framework/Versions" } ] }, { "value": 396, "name": "IMAVCore.framework", "path": "PrivateFrameworks/IMAVCore.framework", "children": [ { "value": 388, "name": "Versions", "path": "PrivateFrameworks/IMAVCore.framework/Versions" } ] }, { "value": 856, "name": "IMCore.framework", "path": "PrivateFrameworks/IMCore.framework", "children": [ { "value": 148, "name": "imagent.app", "path": "PrivateFrameworks/IMCore.framework/imagent.app" }, { "value": 700, "name": "Versions", "path": "PrivateFrameworks/IMCore.framework/Versions" } ] }, { "value": 364, "name": "IMDaemonCore.framework", "path": "PrivateFrameworks/IMDaemonCore.framework", "children": [ { "value": 356, "name": "Versions", "path": "PrivateFrameworks/IMDaemonCore.framework/Versions" } ] }, { "value": 68, "name": "IMDMessageServices.framework", "path": "PrivateFrameworks/IMDMessageServices.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/IMDMessageServices.framework/Versions" }, { "value": 44, "name": "XPCServices", "path": "PrivateFrameworks/IMDMessageServices.framework/XPCServices" } ] }, { "value": 316, "name": "IMDPersistence.framework", "path": "PrivateFrameworks/IMDPersistence.framework", "children": [ { "value": 240, "name": "Versions", "path": "PrivateFrameworks/IMDPersistence.framework/Versions" }, { "value": 68, "name": "XPCServices", "path": "PrivateFrameworks/IMDPersistence.framework/XPCServices" } ] }, { "value": 596, "name": "IMFoundation.framework", "path": "PrivateFrameworks/IMFoundation.framework", "children": [ { "value": 484, "name": "Versions", "path": "PrivateFrameworks/IMFoundation.framework/Versions" }, { "value": 24, "name": "XPCServices", "path": "PrivateFrameworks/IMFoundation.framework/XPCServices" } ] }, { "value": 88, "name": "IMTranscoding.framework", "path": "PrivateFrameworks/IMTranscoding.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/IMTranscoding.framework/Versions" }, { "value": 60, "name": "XPCServices", "path": "PrivateFrameworks/IMTranscoding.framework/XPCServices" } ] }, { "value": 92, "name": "IMTransferServices.framework", "path": "PrivateFrameworks/IMTransferServices.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/IMTransferServices.framework/Versions" }, { "value": 56, "name": "XPCServices", "path": "PrivateFrameworks/IMTransferServices.framework/XPCServices" } ] }, { "value": 48, "name": "IncomingCallFilter.framework", "path": "PrivateFrameworks/IncomingCallFilter.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/IncomingCallFilter.framework/Versions" } ] }, { "value": 1668, "name": "Install.framework", "path": "PrivateFrameworks/Install.framework", "children": [ { "value": 644, "name": "Frameworks", "path": "PrivateFrameworks/Install.framework/Frameworks" }, { "value": 1016, "name": "Versions", "path": "PrivateFrameworks/Install.framework/Versions" } ] }, { "value": 24, "name": "International.framework", "path": "PrivateFrameworks/International.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/International.framework/Versions" } ] }, { "value": 2052, "name": "InternetAccounts.framework", "path": "PrivateFrameworks/InternetAccounts.framework", "children": [ { "value": 2040, "name": "Versions", "path": "PrivateFrameworks/InternetAccounts.framework/Versions" } ] }, { "value": 216, "name": "IntlPreferences.framework", "path": "PrivateFrameworks/IntlPreferences.framework", "children": [ { "value": 208, "name": "Versions", "path": "PrivateFrameworks/IntlPreferences.framework/Versions" } ] }, { "value": 52, "name": "IOAccelerator.framework", "path": "PrivateFrameworks/IOAccelerator.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/IOAccelerator.framework/Versions" } ] }, { "value": 68, "name": "IOAccelMemoryInfo.framework", "path": "PrivateFrameworks/IOAccelMemoryInfo.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/IOAccelMemoryInfo.framework/Versions" } ] }, { "value": 20, "name": "IOPlatformPluginFamily.framework", "path": "PrivateFrameworks/IOPlatformPluginFamily.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/IOPlatformPluginFamily.framework/Versions" } ] }, { "value": 44, "name": "iPod.framework", "path": "PrivateFrameworks/iPod.framework", "children": [ { "value": 36, "name": "Versions", "path": "PrivateFrameworks/iPod.framework/Versions" } ] }, { "value": 160, "name": "iPodSync.framework", "path": "PrivateFrameworks/iPodSync.framework", "children": [ { "value": 152, "name": "Versions", "path": "PrivateFrameworks/iPodSync.framework/Versions" } ] }, { "value": 516, "name": "ISSupport.framework", "path": "PrivateFrameworks/ISSupport.framework", "children": [ { "value": 508, "name": "Versions", "path": "PrivateFrameworks/ISSupport.framework/Versions" } ] }, { "value": 644, "name": "iTunesAccess.framework", "path": "PrivateFrameworks/iTunesAccess.framework", "children": [ { "value": 636, "name": "Versions", "path": "PrivateFrameworks/iTunesAccess.framework/Versions" } ] }, { "value": 92, "name": "JavaApplicationLauncher.framework", "path": "PrivateFrameworks/JavaApplicationLauncher.framework", "children": [ { "value": 84, "name": "Versions", "path": "PrivateFrameworks/JavaApplicationLauncher.framework/Versions" } ] }, { "value": 48, "name": "JavaLaunching.framework", "path": "PrivateFrameworks/JavaLaunching.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/JavaLaunching.framework/Versions" } ] }, { "value": 8, "name": "KerberosHelper", "path": "PrivateFrameworks/KerberosHelper", "children": [ { "value": 8, "name": "Helpers", "path": "PrivateFrameworks/KerberosHelper/Helpers" } ] }, { "value": 132, "name": "KerberosHelper.framework", "path": "PrivateFrameworks/KerberosHelper.framework", "children": [ { "value": 40, "name": "Helpers", "path": "PrivateFrameworks/KerberosHelper.framework/Helpers" }, { "value": 84, "name": "Versions", "path": "PrivateFrameworks/KerberosHelper.framework/Versions" } ] }, { "value": 44, "name": "kperf.framework", "path": "PrivateFrameworks/kperf.framework", "children": [ { "value": 36, "name": "Versions", "path": "PrivateFrameworks/kperf.framework/Versions" } ] }, { "value": 100, "name": "Librarian.framework", "path": "PrivateFrameworks/Librarian.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/Librarian.framework/Versions" } ] }, { "value": 56, "name": "LibraryRepair.framework", "path": "PrivateFrameworks/LibraryRepair.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/LibraryRepair.framework/Versions" } ] }, { "value": 144, "name": "login.framework", "path": "PrivateFrameworks/login.framework", "children": [ { "value": 132, "name": "Versions", "path": "PrivateFrameworks/login.framework/Versions" } ] }, { "value": 4060, "name": "LoginUIKit.framework", "path": "PrivateFrameworks/LoginUIKit.framework", "children": [ { "value": 4048, "name": "Versions", "path": "PrivateFrameworks/LoginUIKit.framework/Versions" } ] }, { "value": 576, "name": "Lookup.framework", "path": "PrivateFrameworks/Lookup.framework", "children": [ { "value": 568, "name": "Versions", "path": "PrivateFrameworks/Lookup.framework/Versions" } ] }, { "value": 32, "name": "MachineSettings.framework", "path": "PrivateFrameworks/MachineSettings.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/MachineSettings.framework/Versions" } ] }, { "value": 2812, "name": "Mail.framework", "path": "PrivateFrameworks/Mail.framework", "children": [ { "value": 2800, "name": "Versions", "path": "PrivateFrameworks/Mail.framework/Versions" } ] }, { "value": 1856, "name": "MailCore.framework", "path": "PrivateFrameworks/MailCore.framework", "children": [ { "value": 1848, "name": "Versions", "path": "PrivateFrameworks/MailCore.framework/Versions" } ] }, { "value": 68, "name": "MailService.framework", "path": "PrivateFrameworks/MailService.framework", "children": [ { "value": 56, "name": "Versions", "path": "PrivateFrameworks/MailService.framework/Versions" } ] }, { "value": 292, "name": "MailUI.framework", "path": "PrivateFrameworks/MailUI.framework", "children": [ { "value": 280, "name": "Versions", "path": "PrivateFrameworks/MailUI.framework/Versions" } ] }, { "value": 80, "name": "ManagedClient.framework", "path": "PrivateFrameworks/ManagedClient.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/ManagedClient.framework/Versions" } ] }, { "value": 44, "name": "Mangrove.framework", "path": "PrivateFrameworks/Mangrove.framework", "children": [ { "value": 32, "name": "Versions", "path": "PrivateFrameworks/Mangrove.framework/Versions" } ] }, { "value": 28, "name": "Marco.framework", "path": "PrivateFrameworks/Marco.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/Marco.framework/Versions" } ] }, { "value": 52, "name": "MDSChannel.framework", "path": "PrivateFrameworks/MDSChannel.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/MDSChannel.framework/Versions" } ] }, { "value": 1488, "name": "MediaControlSender.framework", "path": "PrivateFrameworks/MediaControlSender.framework", "children": [ { "value": 1480, "name": "Versions", "path": "PrivateFrameworks/MediaControlSender.framework/Versions" } ] }, { "value": 480, "name": "MediaKit.framework", "path": "PrivateFrameworks/MediaKit.framework", "children": [ { "value": 468, "name": "Versions", "path": "PrivateFrameworks/MediaKit.framework/Versions" } ] }, { "value": 288, "name": "MediaUI.framework", "path": "PrivateFrameworks/MediaUI.framework", "children": [ { "value": 280, "name": "Versions", "path": "PrivateFrameworks/MediaUI.framework/Versions" } ] }, { "value": 56, "name": "MessageProtection.framework", "path": "PrivateFrameworks/MessageProtection.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/MessageProtection.framework/Versions" } ] }, { "value": 680, "name": "MessagesHelperKit.framework", "path": "PrivateFrameworks/MessagesHelperKit.framework", "children": [ { "value": 640, "name": "PlugIns", "path": "PrivateFrameworks/MessagesHelperKit.framework/PlugIns" }, { "value": 32, "name": "Versions", "path": "PrivateFrameworks/MessagesHelperKit.framework/Versions" } ] }, { "value": 160, "name": "MessagesKit.framework", "path": "PrivateFrameworks/MessagesKit.framework", "children": [ { "value": 112, "name": "Versions", "path": "PrivateFrameworks/MessagesKit.framework/Versions" }, { "value": 40, "name": "XPCServices", "path": "PrivateFrameworks/MessagesKit.framework/XPCServices" } ] }, { "value": 372, "name": "MMCS.framework", "path": "PrivateFrameworks/MMCS.framework", "children": [ { "value": 364, "name": "Versions", "path": "PrivateFrameworks/MMCS.framework/Versions" } ] }, { "value": 56, "name": "MMCSServices.framework", "path": "PrivateFrameworks/MMCSServices.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/MMCSServices.framework/Versions" } ] }, { "value": 1932, "name": "MobileDevice.framework", "path": "PrivateFrameworks/MobileDevice.framework", "children": [ { "value": 1924, "name": "Versions", "path": "PrivateFrameworks/MobileDevice.framework/Versions" } ] }, { "value": 80, "name": "MonitorPanel.framework", "path": "PrivateFrameworks/MonitorPanel.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/MonitorPanel.framework/Versions" } ] }, { "value": 132, "name": "MultitouchSupport.framework", "path": "PrivateFrameworks/MultitouchSupport.framework", "children": [ { "value": 124, "name": "Versions", "path": "PrivateFrameworks/MultitouchSupport.framework/Versions" } ] }, { "value": 76, "name": "NetAuth.framework", "path": "PrivateFrameworks/NetAuth.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/NetAuth.framework/Versions" } ] }, { "value": 52, "name": "NetFSServer.framework", "path": "PrivateFrameworks/NetFSServer.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/NetFSServer.framework/Versions" } ] }, { "value": 56, "name": "NetworkDiagnosticsUI.framework", "path": "PrivateFrameworks/NetworkDiagnosticsUI.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/NetworkDiagnosticsUI.framework/Versions" } ] }, { "value": 84, "name": "NetworkMenusCommon.framework", "path": "PrivateFrameworks/NetworkMenusCommon.framework", "children": [ { "value": 0, "name": "_CodeSignature", "path": "PrivateFrameworks/NetworkMenusCommon.framework/_CodeSignature" } ] }, { "value": 32, "name": "NetworkStatistics.framework", "path": "PrivateFrameworks/NetworkStatistics.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/NetworkStatistics.framework/Versions" } ] }, { "value": 416, "name": "Notes.framework", "path": "PrivateFrameworks/Notes.framework", "children": [ { "value": 400, "name": "Versions", "path": "PrivateFrameworks/Notes.framework/Versions" } ] }, { "value": 84, "name": "nt.framework", "path": "PrivateFrameworks/nt.framework", "children": [ { "value": 76, "name": "Versions", "path": "PrivateFrameworks/nt.framework/Versions" } ] }, { "value": 24, "name": "OAuth.framework", "path": "PrivateFrameworks/OAuth.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/OAuth.framework/Versions" } ] }, { "value": 6676, "name": "OfficeImport.framework", "path": "PrivateFrameworks/OfficeImport.framework", "children": [ { "value": 6668, "name": "Versions", "path": "PrivateFrameworks/OfficeImport.framework/Versions" } ] }, { "value": 160, "name": "oncrpc.framework", "path": "PrivateFrameworks/oncrpc.framework", "children": [ { "value": 36, "name": "bin", "path": "PrivateFrameworks/oncrpc.framework/bin" }, { "value": 116, "name": "Versions", "path": "PrivateFrameworks/oncrpc.framework/Versions" } ] }, { "value": 140, "name": "OpenDirectoryConfig.framework", "path": "PrivateFrameworks/OpenDirectoryConfig.framework", "children": [ { "value": 132, "name": "Versions", "path": "PrivateFrameworks/OpenDirectoryConfig.framework/Versions" } ] }, { "value": 1292, "name": "OpenDirectoryConfigUI.framework", "path": "PrivateFrameworks/OpenDirectoryConfigUI.framework", "children": [ { "value": 1284, "name": "Versions", "path": "PrivateFrameworks/OpenDirectoryConfigUI.framework/Versions" } ] }, { "value": 1140, "name": "PackageKit.framework", "path": "PrivateFrameworks/PackageKit.framework", "children": [ { "value": 272, "name": "Frameworks", "path": "PrivateFrameworks/PackageKit.framework/Frameworks" }, { "value": 860, "name": "Versions", "path": "PrivateFrameworks/PackageKit.framework/Versions" } ] }, { "value": 64, "name": "PacketFilter.framework", "path": "PrivateFrameworks/PacketFilter.framework", "children": [ { "value": 56, "name": "Versions", "path": "PrivateFrameworks/PacketFilter.framework/Versions" } ] }, { "value": 3312, "name": "PassKit.framework", "path": "PrivateFrameworks/PassKit.framework", "children": [ { "value": 3300, "name": "Versions", "path": "PrivateFrameworks/PassKit.framework/Versions" } ] }, { "value": 216, "name": "PasswordServer.framework", "path": "PrivateFrameworks/PasswordServer.framework", "children": [ { "value": 208, "name": "Versions", "path": "PrivateFrameworks/PasswordServer.framework/Versions" } ] }, { "value": 400, "name": "PerformanceAnalysis.framework", "path": "PrivateFrameworks/PerformanceAnalysis.framework", "children": [ { "value": 360, "name": "Versions", "path": "PrivateFrameworks/PerformanceAnalysis.framework/Versions" }, { "value": 32, "name": "XPCServices", "path": "PrivateFrameworks/PerformanceAnalysis.framework/XPCServices" } ] }, { "value": 80, "name": "PhoneNumbers.framework", "path": "PrivateFrameworks/PhoneNumbers.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/PhoneNumbers.framework/Versions" } ] }, { "value": 152, "name": "PhysicsKit.framework", "path": "PrivateFrameworks/PhysicsKit.framework", "children": [ { "value": 144, "name": "Versions", "path": "PrivateFrameworks/PhysicsKit.framework/Versions" } ] }, { "value": 112, "name": "PlatformHardwareManagement.framework", "path": "PrivateFrameworks/PlatformHardwareManagement.framework", "children": [ { "value": 104, "name": "Versions", "path": "PrivateFrameworks/PlatformHardwareManagement.framework/Versions" } ] }, { "value": 76, "name": "PodcastProducerCore.framework", "path": "PrivateFrameworks/PodcastProducerCore.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/PodcastProducerCore.framework/Versions" } ] }, { "value": 612, "name": "PodcastProducerKit.framework", "path": "PrivateFrameworks/PodcastProducerKit.framework", "children": [ { "value": 604, "name": "Versions", "path": "PrivateFrameworks/PodcastProducerKit.framework/Versions" } ] }, { "value": 956, "name": "PreferencePanesSupport.framework", "path": "PrivateFrameworks/PreferencePanesSupport.framework", "children": [ { "value": 948, "name": "Versions", "path": "PrivateFrameworks/PreferencePanesSupport.framework/Versions" } ] }, { "value": 9580, "name": "PrintingPrivate.framework", "path": "PrivateFrameworks/PrintingPrivate.framework", "children": [ { "value": 9572, "name": "Versions", "path": "PrivateFrameworks/PrintingPrivate.framework/Versions" } ] }, { "value": 104432, "name": "ProKit.framework", "path": "PrivateFrameworks/ProKit.framework", "children": [ { "value": 104424, "name": "Versions", "path": "PrivateFrameworks/ProKit.framework/Versions" } ] }, { "value": 9784, "name": "ProofReader.framework", "path": "PrivateFrameworks/ProofReader.framework", "children": [ { "value": 9776, "name": "Versions", "path": "PrivateFrameworks/ProofReader.framework/Versions" } ] }, { "value": 76, "name": "ProtocolBuffer.framework", "path": "PrivateFrameworks/ProtocolBuffer.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/ProtocolBuffer.framework/Versions" } ] }, { "value": 7628, "name": "PSNormalizer.framework", "path": "PrivateFrameworks/PSNormalizer.framework", "children": [ { "value": 7616, "name": "Versions", "path": "PrivateFrameworks/PSNormalizer.framework/Versions" } ] }, { "value": 96, "name": "RemotePacketCapture.framework", "path": "PrivateFrameworks/RemotePacketCapture.framework", "children": [ { "value": 88, "name": "Versions", "path": "PrivateFrameworks/RemotePacketCapture.framework/Versions" } ] }, { "value": 388, "name": "RemoteViewServices.framework", "path": "PrivateFrameworks/RemoteViewServices.framework", "children": [ { "value": 304, "name": "Versions", "path": "PrivateFrameworks/RemoteViewServices.framework/Versions" }, { "value": 76, "name": "XPCServices", "path": "PrivateFrameworks/RemoteViewServices.framework/XPCServices" } ] }, { "value": 420, "name": "Restore.framework", "path": "PrivateFrameworks/Restore.framework", "children": [ { "value": 412, "name": "Versions", "path": "PrivateFrameworks/Restore.framework/Versions" } ] }, { "value": 56, "name": "RTCReporting.framework", "path": "PrivateFrameworks/RTCReporting.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/RTCReporting.framework/Versions" } ] }, { "value": 6168, "name": "Safari.framework", "path": "PrivateFrameworks/Safari.framework", "children": [ { "value": 6156, "name": "Versions", "path": "PrivateFrameworks/Safari.framework/Versions" } ] }, { "value": 40, "name": "SafariServices.framework", "path": "PrivateFrameworks/SafariServices.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/SafariServices.framework/Versions" } ] }, { "value": 432, "name": "SAObjects.framework", "path": "PrivateFrameworks/SAObjects.framework", "children": [ { "value": 424, "name": "Versions", "path": "PrivateFrameworks/SAObjects.framework/Versions" } ] }, { "value": 84, "name": "SCEP.framework", "path": "PrivateFrameworks/SCEP.framework", "children": [ { "value": 76, "name": "Versions", "path": "PrivateFrameworks/SCEP.framework/Versions" } ] }, { "value": 24256, "name": "ScreenReader.framework", "path": "PrivateFrameworks/ScreenReader.framework", "children": [ { "value": 24244, "name": "Versions", "path": "PrivateFrameworks/ScreenReader.framework/Versions" } ] }, { "value": 528, "name": "ScreenSharing.framework", "path": "PrivateFrameworks/ScreenSharing.framework", "children": [ { "value": 520, "name": "Versions", "path": "PrivateFrameworks/ScreenSharing.framework/Versions" } ] }, { "value": 36, "name": "SecCodeWrapper.framework", "path": "PrivateFrameworks/SecCodeWrapper.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/SecCodeWrapper.framework/Versions" } ] }, { "value": 36, "name": "SecureNetworking.framework", "path": "PrivateFrameworks/SecureNetworking.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/SecureNetworking.framework/Versions" } ] }, { "value": 60, "name": "SecurityTokend.framework", "path": "PrivateFrameworks/SecurityTokend.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/SecurityTokend.framework/Versions" } ] }, { "value": 280, "name": "SemanticDocumentManagement.framework", "path": "PrivateFrameworks/SemanticDocumentManagement.framework", "children": [ { "value": 272, "name": "Versions", "path": "PrivateFrameworks/SemanticDocumentManagement.framework/Versions" } ] }, { "value": 720, "name": "ServerFoundation.framework", "path": "PrivateFrameworks/ServerFoundation.framework", "children": [ { "value": 712, "name": "Versions", "path": "PrivateFrameworks/ServerFoundation.framework/Versions" } ] }, { "value": 320, "name": "ServerInformation.framework", "path": "PrivateFrameworks/ServerInformation.framework", "children": [ { "value": 312, "name": "Versions", "path": "PrivateFrameworks/ServerInformation.framework/Versions" } ] }, { "value": 176, "name": "SetupAssistantSupport.framework", "path": "PrivateFrameworks/SetupAssistantSupport.framework", "children": [ { "value": 168, "name": "Versions", "path": "PrivateFrameworks/SetupAssistantSupport.framework/Versions" } ] }, { "value": 5512, "name": "ShareKit.framework", "path": "PrivateFrameworks/ShareKit.framework", "children": [ { "value": 5496, "name": "Versions", "path": "PrivateFrameworks/ShareKit.framework/Versions" } ] }, { "value": 100, "name": "Sharing.framework", "path": "PrivateFrameworks/Sharing.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/Sharing.framework/Versions" } ] }, { "value": 616, "name": "Shortcut.framework", "path": "PrivateFrameworks/Shortcut.framework", "children": [ { "value": 608, "name": "Versions", "path": "PrivateFrameworks/Shortcut.framework/Versions" } ] }, { "value": 20, "name": "SleepServices.framework", "path": "PrivateFrameworks/SleepServices.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/SleepServices.framework/Versions" } ] }, { "value": 62320, "name": "Slideshows.framework", "path": "PrivateFrameworks/Slideshows.framework", "children": [ { "value": 62312, "name": "Versions", "path": "PrivateFrameworks/Slideshows.framework/Versions" } ] }, { "value": 144, "name": "SMBClient.framework", "path": "PrivateFrameworks/SMBClient.framework", "children": [ { "value": 136, "name": "Versions", "path": "PrivateFrameworks/SMBClient.framework/Versions" } ] }, { "value": 112, "name": "SocialAppsCore.framework", "path": "PrivateFrameworks/SocialAppsCore.framework", "children": [ { "value": 104, "name": "Versions", "path": "PrivateFrameworks/SocialAppsCore.framework/Versions" } ] }, { "value": 936, "name": "SocialUI.framework", "path": "PrivateFrameworks/SocialUI.framework", "children": [ { "value": 924, "name": "Versions", "path": "PrivateFrameworks/SocialUI.framework/Versions" } ] }, { "value": 444, "name": "SoftwareUpdate.framework", "path": "PrivateFrameworks/SoftwareUpdate.framework", "children": [ { "value": 436, "name": "Versions", "path": "PrivateFrameworks/SoftwareUpdate.framework/Versions" } ] }, { "value": 2112, "name": "SpeechDictionary.framework", "path": "PrivateFrameworks/SpeechDictionary.framework", "children": [ { "value": 2104, "name": "Versions", "path": "PrivateFrameworks/SpeechDictionary.framework/Versions" } ] }, { "value": 8492, "name": "SpeechObjects.framework", "path": "PrivateFrameworks/SpeechObjects.framework", "children": [ { "value": 8484, "name": "Versions", "path": "PrivateFrameworks/SpeechObjects.framework/Versions" } ] }, { "value": 4248, "name": "SpeechRecognitionCore.framework", "path": "PrivateFrameworks/SpeechRecognitionCore.framework", "children": [ { "value": 4236, "name": "Versions", "path": "PrivateFrameworks/SpeechRecognitionCore.framework/Versions" } ] }, { "value": 2212, "name": "SpotlightIndex.framework", "path": "PrivateFrameworks/SpotlightIndex.framework", "children": [ { "value": 2204, "name": "Versions", "path": "PrivateFrameworks/SpotlightIndex.framework/Versions" } ] }, { "value": 48, "name": "SPSupport.framework", "path": "PrivateFrameworks/SPSupport.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/SPSupport.framework/Versions" } ] }, { "value": 184, "name": "StoreJavaScript.framework", "path": "PrivateFrameworks/StoreJavaScript.framework", "children": [ { "value": 176, "name": "Versions", "path": "PrivateFrameworks/StoreJavaScript.framework/Versions" } ] }, { "value": 844, "name": "StoreUI.framework", "path": "PrivateFrameworks/StoreUI.framework", "children": [ { "value": 836, "name": "Versions", "path": "PrivateFrameworks/StoreUI.framework/Versions" } ] }, { "value": 32, "name": "StoreXPCServices.framework", "path": "PrivateFrameworks/StoreXPCServices.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/StoreXPCServices.framework/Versions" } ] }, { "value": 72, "name": "StreamingZip.framework", "path": "PrivateFrameworks/StreamingZip.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/StreamingZip.framework/Versions" } ] }, { "value": 456, "name": "Suggestions.framework", "path": "PrivateFrameworks/Suggestions.framework", "children": [ { "value": 448, "name": "Versions", "path": "PrivateFrameworks/Suggestions.framework/Versions" } ] }, { "value": 504, "name": "Symbolication.framework", "path": "PrivateFrameworks/Symbolication.framework", "children": [ { "value": 496, "name": "Versions", "path": "PrivateFrameworks/Symbolication.framework/Versions" } ] }, { "value": 320, "name": "Symptoms.framework", "path": "PrivateFrameworks/Symptoms.framework", "children": [ { "value": 312, "name": "Frameworks", "path": "PrivateFrameworks/Symptoms.framework/Frameworks" }, { "value": 4, "name": "Versions", "path": "PrivateFrameworks/Symptoms.framework/Versions" } ] }, { "value": 280, "name": "SyncedDefaults.framework", "path": "PrivateFrameworks/SyncedDefaults.framework", "children": [ { "value": 216, "name": "Support", "path": "PrivateFrameworks/SyncedDefaults.framework/Support" }, { "value": 56, "name": "Versions", "path": "PrivateFrameworks/SyncedDefaults.framework/Versions" } ] }, { "value": 5272, "name": "SyncServicesUI.framework", "path": "PrivateFrameworks/SyncServicesUI.framework", "children": [ { "value": 5264, "name": "Versions", "path": "PrivateFrameworks/SyncServicesUI.framework/Versions" } ] }, { "value": 932, "name": "SystemAdministration.framework", "path": "PrivateFrameworks/SystemAdministration.framework", "children": [ { "value": 864, "name": "Versions", "path": "PrivateFrameworks/SystemAdministration.framework/Versions" }, { "value": 60, "name": "XPCServices", "path": "PrivateFrameworks/SystemAdministration.framework/XPCServices" } ] }, { "value": 5656, "name": "SystemMigration.framework", "path": "PrivateFrameworks/SystemMigration.framework", "children": [ { "value": 508, "name": "Frameworks", "path": "PrivateFrameworks/SystemMigration.framework/Frameworks" }, { "value": 5140, "name": "Versions", "path": "PrivateFrameworks/SystemMigration.framework/Versions" } ] }, { "value": 52, "name": "SystemUIPlugin.framework", "path": "PrivateFrameworks/SystemUIPlugin.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/SystemUIPlugin.framework/Versions" } ] }, { "value": 144, "name": "TCC.framework", "path": "PrivateFrameworks/TCC.framework", "children": [ { "value": 136, "name": "Versions", "path": "PrivateFrameworks/TCC.framework/Versions" } ] }, { "value": 48, "name": "TrustEvaluationAgent.framework", "path": "PrivateFrameworks/TrustEvaluationAgent.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/TrustEvaluationAgent.framework/Versions" } ] }, { "value": 720, "name": "Ubiquity.framework", "path": "PrivateFrameworks/Ubiquity.framework", "children": [ { "value": 708, "name": "Versions", "path": "PrivateFrameworks/Ubiquity.framework/Versions" } ] }, { "value": 136, "name": "UIRecording.framework", "path": "PrivateFrameworks/UIRecording.framework", "children": [ { "value": 128, "name": "Versions", "path": "PrivateFrameworks/UIRecording.framework/Versions" } ] }, { "value": 56, "name": "Uninstall.framework", "path": "PrivateFrameworks/Uninstall.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/Uninstall.framework/Versions" } ] }, { "value": 2320, "name": "UniversalAccess.framework", "path": "PrivateFrameworks/UniversalAccess.framework", "children": [ { "value": 2308, "name": "Versions", "path": "PrivateFrameworks/UniversalAccess.framework/Versions" } ] }, { "value": 1248, "name": "VCXMPP.framework", "path": "PrivateFrameworks/VCXMPP.framework", "children": [ { "value": 1232, "name": "Versions", "path": "PrivateFrameworks/VCXMPP.framework/Versions" } ] }, { "value": 2016, "name": "VectorKit.framework", "path": "PrivateFrameworks/VectorKit.framework", "children": [ { "value": 2008, "name": "Versions", "path": "PrivateFrameworks/VectorKit.framework/Versions" } ] }, { "value": 1164, "name": "VideoConference.framework", "path": "PrivateFrameworks/VideoConference.framework", "children": [ { "value": 1156, "name": "Versions", "path": "PrivateFrameworks/VideoConference.framework/Versions" } ] }, { "value": 2152, "name": "VideoProcessing.framework", "path": "PrivateFrameworks/VideoProcessing.framework", "children": [ { "value": 2144, "name": "Versions", "path": "PrivateFrameworks/VideoProcessing.framework/Versions" } ] }, { "value": 420, "name": "ViewBridge.framework", "path": "PrivateFrameworks/ViewBridge.framework", "children": [ { "value": 412, "name": "Versions", "path": "PrivateFrameworks/ViewBridge.framework/Versions" } ] }, { "value": 164, "name": "vmutils.framework", "path": "PrivateFrameworks/vmutils.framework", "children": [ { "value": 156, "name": "Versions", "path": "PrivateFrameworks/vmutils.framework/Versions" } ] }, { "value": 284, "name": "WeatherKit.framework", "path": "PrivateFrameworks/WeatherKit.framework", "children": [ { "value": 272, "name": "Versions", "path": "PrivateFrameworks/WeatherKit.framework/Versions" } ] }, { "value": 2228, "name": "WebContentAnalysis.framework", "path": "PrivateFrameworks/WebContentAnalysis.framework", "children": [ { "value": 2220, "name": "Versions", "path": "PrivateFrameworks/WebContentAnalysis.framework/Versions" } ] }, { "value": 24, "name": "WebFilterDNS.framework", "path": "PrivateFrameworks/WebFilterDNS.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/WebFilterDNS.framework/Versions" } ] }, { "value": 132, "name": "WebInspector.framework", "path": "PrivateFrameworks/WebInspector.framework", "children": [ { "value": 124, "name": "Versions", "path": "PrivateFrameworks/WebInspector.framework/Versions" } ] }, { "value": 1228, "name": "WebInspectorUI.framework", "path": "PrivateFrameworks/WebInspectorUI.framework", "children": [ { "value": 1220, "name": "Versions", "path": "PrivateFrameworks/WebInspectorUI.framework/Versions" } ] }, { "value": 2672, "name": "WebKit2.framework", "path": "PrivateFrameworks/WebKit2.framework", "children": [ { "value": 16, "name": "NetworkProcess.app", "path": "PrivateFrameworks/WebKit2.framework/NetworkProcess.app" }, { "value": 8, "name": "OfflineStorageProcess.app", "path": "PrivateFrameworks/WebKit2.framework/OfflineStorageProcess.app" }, { "value": 20, "name": "PluginProcess.app", "path": "PrivateFrameworks/WebKit2.framework/PluginProcess.app" }, { "value": 8, "name": "SharedWorkerProcess.app", "path": "PrivateFrameworks/WebKit2.framework/SharedWorkerProcess.app" }, { "value": 2592, "name": "Versions", "path": "PrivateFrameworks/WebKit2.framework/Versions" }, { "value": 16, "name": "WebProcess.app", "path": "PrivateFrameworks/WebKit2.framework/WebProcess.app" } ] }, { "value": 496, "name": "WhitePages.framework", "path": "PrivateFrameworks/WhitePages.framework", "children": [ { "value": 488, "name": "Versions", "path": "PrivateFrameworks/WhitePages.framework/Versions" } ] }, { "value": 36, "name": "WiFiCloudSyncEngine.framework", "path": "PrivateFrameworks/WiFiCloudSyncEngine.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/WiFiCloudSyncEngine.framework/Versions" } ] }, { "value": 444, "name": "WirelessDiagnosticsSupport.framework", "path": "PrivateFrameworks/WirelessDiagnosticsSupport.framework", "children": [ { "value": 436, "name": "Versions", "path": "PrivateFrameworks/WirelessDiagnosticsSupport.framework/Versions" } ] }, { "value": 372, "name": "XMPPCore.framework", "path": "PrivateFrameworks/XMPPCore.framework", "children": [ { "value": 364, "name": "Versions", "path": "PrivateFrameworks/XMPPCore.framework/Versions" } ] }, { "value": 48, "name": "XPCObjects.framework", "path": "PrivateFrameworks/XPCObjects.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/XPCObjects.framework/Versions" } ] }, { "value": 60, "name": "XPCService.framework", "path": "PrivateFrameworks/XPCService.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/XPCService.framework/Versions" } ] }, { "value": 516, "name": "XQuery.framework", "path": "PrivateFrameworks/XQuery.framework", "children": [ { "value": 508, "name": "Versions", "path": "PrivateFrameworks/XQuery.framework/Versions" } ] } ] }, { "value": 2988, "name": "QuickLook", "path": "QuickLook", "children": [ { "value": 8, "name": "Audio.qlgenerator", "path": "QuickLook/Audio.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Audio.qlgenerator/Contents" } ] }, { "value": 12, "name": "Bookmark.qlgenerator", "path": "QuickLook/Bookmark.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Bookmark.qlgenerator/Contents" } ] }, { "value": 12, "name": "Clippings.qlgenerator", "path": "QuickLook/Clippings.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Clippings.qlgenerator/Contents" } ] }, { "value": 232, "name": "Contact.qlgenerator", "path": "QuickLook/Contact.qlgenerator", "children": [ { "value": 232, "name": "Contents", "path": "QuickLook/Contact.qlgenerator/Contents" } ] }, { "value": 8, "name": "EPS.qlgenerator", "path": "QuickLook/EPS.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/EPS.qlgenerator/Contents" } ] }, { "value": 12, "name": "Font.qlgenerator", "path": "QuickLook/Font.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Font.qlgenerator/Contents" } ] }, { "value": 1432, "name": "iCal.qlgenerator", "path": "QuickLook/iCal.qlgenerator", "children": [ { "value": 1432, "name": "Contents", "path": "QuickLook/iCal.qlgenerator/Contents" } ] }, { "value": 8, "name": "iChat.qlgenerator", "path": "QuickLook/iChat.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/iChat.qlgenerator/Contents" } ] }, { "value": 8, "name": "Icon.qlgenerator", "path": "QuickLook/Icon.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Icon.qlgenerator/Contents" } ] }, { "value": 8, "name": "Image.qlgenerator", "path": "QuickLook/Image.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Image.qlgenerator/Contents" } ] }, { "value": 12, "name": "LocPDF.qlgenerator", "path": "QuickLook/LocPDF.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/LocPDF.qlgenerator/Contents" } ] }, { "value": 28, "name": "Mail.qlgenerator", "path": "QuickLook/Mail.qlgenerator", "children": [ { "value": 28, "name": "Contents", "path": "QuickLook/Mail.qlgenerator/Contents" } ] }, { "value": 12, "name": "Movie.qlgenerator", "path": "QuickLook/Movie.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Movie.qlgenerator/Contents" } ] }, { "value": 20, "name": "Notes.qlgenerator", "path": "QuickLook/Notes.qlgenerator", "children": [ { "value": 20, "name": "Contents", "path": "QuickLook/Notes.qlgenerator/Contents" } ] }, { "value": 24, "name": "Office.qlgenerator", "path": "QuickLook/Office.qlgenerator", "children": [ { "value": 24, "name": "Contents", "path": "QuickLook/Office.qlgenerator/Contents" } ] }, { "value": 8, "name": "Package.qlgenerator", "path": "QuickLook/Package.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Package.qlgenerator/Contents" } ] }, { "value": 20, "name": "PDF.qlgenerator", "path": "QuickLook/PDF.qlgenerator", "children": [ { "value": 20, "name": "Contents", "path": "QuickLook/PDF.qlgenerator/Contents" } ] }, { "value": 8, "name": "SceneKit.qlgenerator", "path": "QuickLook/SceneKit.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/SceneKit.qlgenerator/Contents" } ] }, { "value": 36, "name": "Security.qlgenerator", "path": "QuickLook/Security.qlgenerator", "children": [ { "value": 36, "name": "Contents", "path": "QuickLook/Security.qlgenerator/Contents" } ] }, { "value": 1060, "name": "StandardBundles.qlgenerator", "path": "QuickLook/StandardBundles.qlgenerator", "children": [ { "value": 1060, "name": "Contents", "path": "QuickLook/StandardBundles.qlgenerator/Contents" } ] }, { "value": 12, "name": "Text.qlgenerator", "path": "QuickLook/Text.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Text.qlgenerator/Contents" } ] }, { "value": 8, "name": "Web.qlgenerator", "path": "QuickLook/Web.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Web.qlgenerator/Contents" } ] } ] }, { "value": 17888, "name": "QuickTime", "path": "QuickTime", "children": [ { "value": 24, "name": "AppleGVAHW.component", "path": "QuickTime/AppleGVAHW.component", "children": [ { "value": 24, "name": "Contents", "path": "QuickTime/AppleGVAHW.component/Contents" } ] }, { "value": 60, "name": "ApplePixletVideo.component", "path": "QuickTime/ApplePixletVideo.component", "children": [ { "value": 60, "name": "Contents", "path": "QuickTime/ApplePixletVideo.component/Contents" } ] }, { "value": 216, "name": "AppleProResDecoder.component", "path": "QuickTime/AppleProResDecoder.component", "children": [ { "value": 216, "name": "Contents", "path": "QuickTime/AppleProResDecoder.component/Contents" } ] }, { "value": 756, "name": "AppleVAH264HW.component", "path": "QuickTime/AppleVAH264HW.component", "children": [ { "value": 756, "name": "Contents", "path": "QuickTime/AppleVAH264HW.component/Contents" } ] }, { "value": 24, "name": "QuartzComposer.component", "path": "QuickTime/QuartzComposer.component", "children": [ { "value": 24, "name": "Contents", "path": "QuickTime/QuartzComposer.component/Contents" } ] }, { "value": 520, "name": "QuickTime3GPP.component", "path": "QuickTime/QuickTime3GPP.component", "children": [ { "value": 520, "name": "Contents", "path": "QuickTime/QuickTime3GPP.component/Contents" } ] }, { "value": 11548, "name": "QuickTimeComponents.component", "path": "QuickTime/QuickTimeComponents.component", "children": [ { "value": 11548, "name": "Contents", "path": "QuickTime/QuickTimeComponents.component/Contents" } ] }, { "value": 76, "name": "QuickTimeFireWireDV.component", "path": "QuickTime/QuickTimeFireWireDV.component", "children": [ { "value": 76, "name": "Contents", "path": "QuickTime/QuickTimeFireWireDV.component/Contents" } ] }, { "value": 1592, "name": "QuickTimeH264.component", "path": "QuickTime/QuickTimeH264.component", "children": [ { "value": 1592, "name": "Contents", "path": "QuickTime/QuickTimeH264.component/Contents" } ] }, { "value": 64, "name": "QuickTimeIIDCDigitizer.component", "path": "QuickTime/QuickTimeIIDCDigitizer.component", "children": [ { "value": 64, "name": "Contents", "path": "QuickTime/QuickTimeIIDCDigitizer.component/Contents" } ] }, { "value": 832, "name": "QuickTimeImporters.component", "path": "QuickTime/QuickTimeImporters.component", "children": [ { "value": 832, "name": "Contents", "path": "QuickTime/QuickTimeImporters.component/Contents" } ] }, { "value": 200, "name": "QuickTimeMPEG.component", "path": "QuickTime/QuickTimeMPEG.component", "children": [ { "value": 200, "name": "Contents", "path": "QuickTime/QuickTimeMPEG.component/Contents" } ] }, { "value": 564, "name": "QuickTimeMPEG4.component", "path": "QuickTime/QuickTimeMPEG4.component", "children": [ { "value": 564, "name": "Contents", "path": "QuickTime/QuickTimeMPEG4.component/Contents" } ] }, { "value": 968, "name": "QuickTimeStreaming.component", "path": "QuickTime/QuickTimeStreaming.component", "children": [ { "value": 968, "name": "Contents", "path": "QuickTime/QuickTimeStreaming.component/Contents" } ] }, { "value": 120, "name": "QuickTimeUSBVDCDigitizer.component", "path": "QuickTime/QuickTimeUSBVDCDigitizer.component", "children": [ { "value": 120, "name": "Contents", "path": "QuickTime/QuickTimeUSBVDCDigitizer.component/Contents" } ] }, { "value": 324, "name": "QuickTimeVR.component", "path": "QuickTime/QuickTimeVR.component", "children": [ { "value": 324, "name": "Contents", "path": "QuickTime/QuickTimeVR.component/Contents" } ] } ] }, { "value": 28, "name": "QuickTimeJava", "path": "QuickTimeJava", "children": [ { "value": 28, "name": "QuickTimeJava.bundle", "path": "QuickTimeJava/QuickTimeJava.bundle", "children": [ { "value": 28, "name": "Contents", "path": "QuickTimeJava/QuickTimeJava.bundle/Contents" } ] } ] }, { "value": 20, "name": "Recents", "path": "Recents", "children": [ { "value": 20, "name": "Plugins", "path": "Recents/Plugins", "children": [ { "value": 36, "name": "AddressBook.assistantBundle", "path": "Assistant/Plugins/AddressBook.assistantBundle" }, { "value": 8, "name": "GenericAddressHandler.addresshandler", "path": "Recents/Plugins/GenericAddressHandler.addresshandler" }, { "value": 12, "name": "MapsRecents.addresshandler", "path": "Recents/Plugins/MapsRecents.addresshandler" } ] } ] }, { "value": 12, "name": "Sandbox", "path": "Sandbox", "children": [ { "value": 12, "name": "Profiles", "path": "Sandbox/Profiles" } ] }, { "value": 1052, "name": "ScreenSavers", "path": "ScreenSavers", "children": [ { "value": 8, "name": "FloatingMessage.saver", "path": "ScreenSavers/FloatingMessage.saver", "children": [ { "value": 8, "name": "Contents", "path": "ScreenSavers/FloatingMessage.saver/Contents" } ] }, { "value": 360, "name": "Flurry.saver", "path": "ScreenSavers/Flurry.saver", "children": [ { "value": 360, "name": "Contents", "path": "ScreenSavers/Flurry.saver/Contents" } ] }, { "value": 568, "name": "iTunes Artwork.saver", "path": "ScreenSavers/iTunes Artwork.saver", "children": [ { "value": 568, "name": "Contents", "path": "ScreenSavers/iTunes Artwork.saver/Contents" } ] }, { "value": 52, "name": "Random.saver", "path": "ScreenSavers/Random.saver", "children": [ { "value": 52, "name": "Contents", "path": "ScreenSavers/Random.saver/Contents" } ] } ] }, { "value": 1848, "name": "ScreenReader", "path": "ScreenReader", "children": [ { "value": 556, "name": "BrailleDrivers", "path": "ScreenReader/BrailleDrivers", "children": [ { "value": 28, "name": "Alva6 Series.brailledriver", "path": "ScreenReader/BrailleDrivers/Alva6 Series.brailledriver" }, { "value": 16, "name": "Alva.brailledriver", "path": "ScreenReader/BrailleDrivers/Alva.brailledriver" }, { "value": 28, "name": "BrailleConnect.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleConnect.brailledriver" }, { "value": 24, "name": "BrailleNoteApex.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleNoteApex.brailledriver" }, { "value": 16, "name": "BrailleNote.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleNote.brailledriver" }, { "value": 24, "name": "BrailleSense.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleSense.brailledriver" }, { "value": 28, "name": "Brailliant2.brailledriver", "path": "ScreenReader/BrailleDrivers/Brailliant2.brailledriver" }, { "value": 28, "name": "Brailliant.brailledriver", "path": "ScreenReader/BrailleDrivers/Brailliant.brailledriver" }, { "value": 16, "name": "Deininger.brailledriver", "path": "ScreenReader/BrailleDrivers/Deininger.brailledriver" }, { "value": 20, "name": "EasyLink.brailledriver", "path": "ScreenReader/BrailleDrivers/EasyLink.brailledriver" }, { "value": 28, "name": "Eurobraille.brailledriver", "path": "ScreenReader/BrailleDrivers/Eurobraille.brailledriver" }, { "value": 28, "name": "FreedomScientific.brailledriver", "path": "ScreenReader/BrailleDrivers/FreedomScientific.brailledriver" }, { "value": 32, "name": "HandyTech.brailledriver", "path": "ScreenReader/BrailleDrivers/HandyTech.brailledriver" }, { "value": 20, "name": "HIMSDriver.brailledriver", "path": "ScreenReader/BrailleDrivers/HIMSDriver.brailledriver" }, { "value": 28, "name": "KGSDriver.brailledriver", "path": "ScreenReader/BrailleDrivers/KGSDriver.brailledriver" }, { "value": 28, "name": "MDV.brailledriver", "path": "ScreenReader/BrailleDrivers/MDV.brailledriver" }, { "value": 24, "name": "NinepointSystems.brailledriver", "path": "ScreenReader/BrailleDrivers/NinepointSystems.brailledriver" }, { "value": 24, "name": "Papenmeier.brailledriver", "path": "ScreenReader/BrailleDrivers/Papenmeier.brailledriver" }, { "value": 28, "name": "Refreshabraille.brailledriver", "path": "ScreenReader/BrailleDrivers/Refreshabraille.brailledriver" }, { "value": 32, "name": "Seika.brailledriver", "path": "ScreenReader/BrailleDrivers/Seika.brailledriver" }, { "value": 16, "name": "SyncBraille.brailledriver", "path": "ScreenReader/BrailleDrivers/SyncBraille.brailledriver" }, { "value": 24, "name": "VarioPro.brailledriver", "path": "ScreenReader/BrailleDrivers/VarioPro.brailledriver" }, { "value": 16, "name": "Voyager.brailledriver", "path": "ScreenReader/BrailleDrivers/Voyager.brailledriver" } ] }, { "value": 1292, "name": "BrailleTables", "path": "ScreenReader/BrailleTables", "children": [ { "value": 1292, "name": "Duxbury.brailletable", "path": "ScreenReader/BrailleTables/Duxbury.brailletable" } ] } ] }, { "value": 1408, "name": "ScriptingAdditions", "path": "ScriptingAdditions", "children": [ { "value": 8, "name": "DigitalHub Scripting.osax", "path": "ScriptingAdditions/DigitalHub Scripting.osax", "children": [ { "value": 8, "name": "Contents", "path": "ScriptingAdditions/DigitalHub Scripting.osax/Contents" } ] }, { "value": 1400, "name": "StandardAdditions.osax", "path": "ScriptingAdditions/StandardAdditions.osax", "children": [ { "value": 1400, "name": "Contents", "path": "ScriptingAdditions/StandardAdditions.osax/Contents" } ] } ] }, { "value": 0, "name": "ScriptingDefinitions", "path": "ScriptingDefinitions" }, { "value": 0, "name": "SDKSettingsPlist", "path": "SDKSettingsPlist" }, { "value": 312, "name": "Security", "path": "Security", "children": [ { "value": 100, "name": "dotmac_tp.bundle", "path": "Security/dotmac_tp.bundle", "children": [ { "value": 100, "name": "Contents", "path": "Security/dotmac_tp.bundle/Contents" } ] }, { "value": 72, "name": "ldapdl.bundle", "path": "Security/ldapdl.bundle", "children": [ { "value": 72, "name": "Contents", "path": "Security/ldapdl.bundle/Contents" } ] }, { "value": 132, "name": "tokend", "path": "Security/tokend", "children": [ { "value": 132, "name": "uiplugins", "path": "Security/tokend/uiplugins" } ] } ] }, { "value": 18208, "name": "Services", "path": "Services", "children": [ { "value": 0, "name": "Addto iTunes as a Spoken Track.workflow", "path": "Services/Addto iTunes as a Spoken Track.workflow", "children": [ { "value": 0, "name": "Contents", "path": "Services/Addto iTunes as a Spoken Track.workflow/Contents" } ] }, { "value": 14308, "name": "AppleSpell.service", "path": "Services/AppleSpell.service", "children": [ { "value": 14308, "name": "Contents", "path": "Services/AppleSpell.service/Contents" } ] }, { "value": 556, "name": "ChineseTextConverterService.app", "path": "Services/ChineseTextConverterService.app", "children": [ { "value": 556, "name": "Contents", "path": "Services/ChineseTextConverterService.app/Contents" } ] }, { "value": 48, "name": "EncodeSelected Audio Files.workflow", "path": "Services/EncodeSelected Audio Files.workflow", "children": [ { "value": 48, "name": "Contents", "path": "Services/EncodeSelected Audio Files.workflow/Contents" } ] }, { "value": 40, "name": "EncodeSelected Video Files.workflow", "path": "Services/EncodeSelected Video Files.workflow", "children": [ { "value": 40, "name": "Contents", "path": "Services/EncodeSelected Video Files.workflow/Contents" } ] }, { "value": 1344, "name": "ImageCaptureService.app", "path": "Services/ImageCaptureService.app", "children": [ { "value": 1344, "name": "Contents", "path": "Services/ImageCaptureService.app/Contents" } ] }, { "value": 16, "name": "OpenSpell.service", "path": "Services/OpenSpell.service", "children": [ { "value": 16, "name": "Contents", "path": "Services/OpenSpell.service/Contents" } ] }, { "value": 0, "name": "SetDesktop Picture.workflow", "path": "Services/SetDesktop Picture.workflow", "children": [ { "value": 0, "name": "Contents", "path": "Services/SetDesktop Picture.workflow/Contents" } ] }, { "value": 0, "name": "ShowAddress in Google Maps.workflow", "path": "Services/ShowAddress in Google Maps.workflow", "children": [ { "value": 0, "name": "Contents", "path": "Services/ShowAddress in Google Maps.workflow/Contents" } ] }, { "value": 60, "name": "ShowMap.workflow", "path": "Services/ShowMap.workflow", "children": [ { "value": 60, "name": "Contents", "path": "Services/ShowMap.workflow/Contents" } ] }, { "value": 12, "name": "SpeechService.service", "path": "Services/SpeechService.service", "children": [ { "value": 12, "name": "Contents", "path": "Services/SpeechService.service/Contents" } ] }, { "value": 8, "name": "Spotlight.service", "path": "Services/Spotlight.service", "children": [ { "value": 8, "name": "Contents", "path": "Services/Spotlight.service/Contents" } ] }, { "value": 1816, "name": "SummaryService.app", "path": "Services/SummaryService.app", "children": [ { "value": 1816, "name": "Contents", "path": "Services/SummaryService.app/Contents" } ] } ] }, { "value": 700, "name": "Sounds", "path": "Sounds" }, { "value": 1512668, "name": "Speech", "path": "Speech", "children": [ { "value": 2804, "name": "Recognizers", "path": "Speech/Recognizers", "children": [ { "value": 2804, "name": "AppleSpeakableItems.SpeechRecognizer", "path": "Speech/Recognizers/AppleSpeakableItems.SpeechRecognizer" } ] }, { "value": 6684, "name": "Synthesizers", "path": "Speech/Synthesizers", "children": [ { "value": 800, "name": "MacinTalk.SpeechSynthesizer", "path": "Speech/Synthesizers/MacinTalk.SpeechSynthesizer" }, { "value": 3468, "name": "MultiLingual.SpeechSynthesizer", "path": "Speech/Synthesizers/MultiLingual.SpeechSynthesizer" }, { "value": 2416, "name": "Polyglot.SpeechSynthesizer", "path": "Speech/Synthesizers/Polyglot.SpeechSynthesizer" } ] }, { "value": 1503180, "name": "Voices", "path": "Speech/Voices", "children": [ { "value": 1540, "name": "Agnes.SpeechVoice", "path": "Speech/Voices/Agnes.SpeechVoice" }, { "value": 20, "name": "Albert.SpeechVoice", "path": "Speech/Voices/Albert.SpeechVoice" }, { "value": 412132, "name": "Alex.SpeechVoice", "path": "Speech/Voices/Alex.SpeechVoice" }, { "value": 624, "name": "AliceCompact.SpeechVoice", "path": "Speech/Voices/AliceCompact.SpeechVoice" }, { "value": 908, "name": "AlvaCompact.SpeechVoice", "path": "Speech/Voices/AlvaCompact.SpeechVoice" }, { "value": 668, "name": "AmelieCompact.SpeechVoice", "path": "Speech/Voices/AmelieCompact.SpeechVoice" }, { "value": 1016, "name": "AnnaCompact.SpeechVoice", "path": "Speech/Voices/AnnaCompact.SpeechVoice" }, { "value": 12, "name": "BadNews.SpeechVoice", "path": "Speech/Voices/BadNews.SpeechVoice" }, { "value": 20, "name": "Bahh.SpeechVoice", "path": "Speech/Voices/Bahh.SpeechVoice" }, { "value": 48, "name": "Bells.SpeechVoice", "path": "Speech/Voices/Bells.SpeechVoice" }, { "value": 20, "name": "Boing.SpeechVoice", "path": "Speech/Voices/Boing.SpeechVoice" }, { "value": 1684, "name": "Bruce.SpeechVoice", "path": "Speech/Voices/Bruce.SpeechVoice" }, { "value": 12, "name": "Bubbles.SpeechVoice", "path": "Speech/Voices/Bubbles.SpeechVoice" }, { "value": 24, "name": "Cellos.SpeechVoice", "path": "Speech/Voices/Cellos.SpeechVoice" }, { "value": 720, "name": "DamayantiCompact.SpeechVoice", "path": "Speech/Voices/DamayantiCompact.SpeechVoice" }, { "value": 1000, "name": "DanielCompact.SpeechVoice", "path": "Speech/Voices/DanielCompact.SpeechVoice" }, { "value": 24, "name": "Deranged.SpeechVoice", "path": "Speech/Voices/Deranged.SpeechVoice" }, { "value": 740, "name": "EllenCompact.SpeechVoice", "path": "Speech/Voices/EllenCompact.SpeechVoice" }, { "value": 12, "name": "Fred.SpeechVoice", "path": "Speech/Voices/Fred.SpeechVoice" }, { "value": 12, "name": "GoodNews.SpeechVoice", "path": "Speech/Voices/GoodNews.SpeechVoice" }, { "value": 28, "name": "Hysterical.SpeechVoice", "path": "Speech/Voices/Hysterical.SpeechVoice" }, { "value": 492, "name": "IoanaCompact.SpeechVoice", "path": "Speech/Voices/IoanaCompact.SpeechVoice" }, { "value": 596, "name": "JoanaCompact.SpeechVoice", "path": "Speech/Voices/JoanaCompact.SpeechVoice" }, { "value": 12, "name": "Junior.SpeechVoice", "path": "Speech/Voices/Junior.SpeechVoice" }, { "value": 1336, "name": "KanyaCompact.SpeechVoice", "path": "Speech/Voices/KanyaCompact.SpeechVoice" }, { "value": 1004, "name": "KarenCompact.SpeechVoice", "path": "Speech/Voices/KarenCompact.SpeechVoice" }, { "value": 12, "name": "Kathy.SpeechVoice", "path": "Speech/Voices/Kathy.SpeechVoice" }, { "value": 408836, "name": "Kyoko.SpeechVoice", "path": "Speech/Voices/Kyoko.SpeechVoice" }, { "value": 2620, "name": "KyokoCompact.SpeechVoice", "path": "Speech/Voices/KyokoCompact.SpeechVoice" }, { "value": 496, "name": "LauraCompact.SpeechVoice", "path": "Speech/Voices/LauraCompact.SpeechVoice" }, { "value": 2104, "name": "LekhaCompact.SpeechVoice", "path": "Speech/Voices/LekhaCompact.SpeechVoice" }, { "value": 548, "name": "LucianaCompact.SpeechVoice", "path": "Speech/Voices/LucianaCompact.SpeechVoice" }, { "value": 504, "name": "MariskaCompact.SpeechVoice", "path": "Speech/Voices/MariskaCompact.SpeechVoice" }, { "value": 2092, "name": "Mei-JiaCompact.SpeechVoice", "path": "Speech/Voices/Mei-JiaCompact.SpeechVoice" }, { "value": 1020, "name": "MelinaCompact.SpeechVoice", "path": "Speech/Voices/MelinaCompact.SpeechVoice" }, { "value": 2160, "name": "MilenaCompact.SpeechVoice", "path": "Speech/Voices/MilenaCompact.SpeechVoice" }, { "value": 728, "name": "MoiraCompact.SpeechVoice", "path": "Speech/Voices/MoiraCompact.SpeechVoice" }, { "value": 612, "name": "MonicaCompact.SpeechVoice", "path": "Speech/Voices/MonicaCompact.SpeechVoice" }, { "value": 824, "name": "NoraCompact.SpeechVoice", "path": "Speech/Voices/NoraCompact.SpeechVoice" }, { "value": 24, "name": "Organ.SpeechVoice", "path": "Speech/Voices/Organ.SpeechVoice" }, { "value": 664, "name": "PaulinaCompact.SpeechVoice", "path": "Speech/Voices/PaulinaCompact.SpeechVoice" }, { "value": 12, "name": "Princess.SpeechVoice", "path": "Speech/Voices/Princess.SpeechVoice" }, { "value": 12, "name": "Ralph.SpeechVoice", "path": "Speech/Voices/Ralph.SpeechVoice" }, { "value": 908, "name": "SamanthaCompact.SpeechVoice", "path": "Speech/Voices/SamanthaCompact.SpeechVoice" }, { "value": 828, "name": "SaraCompact.SpeechVoice", "path": "Speech/Voices/SaraCompact.SpeechVoice" }, { "value": 664, "name": "SatuCompact.SpeechVoice", "path": "Speech/Voices/SatuCompact.SpeechVoice" }, { "value": 2336, "name": "Sin-jiCompact.SpeechVoice", "path": "Speech/Voices/Sin-jiCompact.SpeechVoice" }, { "value": 2856, "name": "TarikCompact.SpeechVoice", "path": "Speech/Voices/TarikCompact.SpeechVoice" }, { "value": 948, "name": "TessaCompact.SpeechVoice", "path": "Speech/Voices/TessaCompact.SpeechVoice" }, { "value": 660, "name": "ThomasCompact.SpeechVoice", "path": "Speech/Voices/ThomasCompact.SpeechVoice" }, { "value": 610156, "name": "Ting-Ting.SpeechVoice", "path": "Speech/Voices/Ting-Ting.SpeechVoice" }, { "value": 1708, "name": "Ting-TingCompact.SpeechVoice", "path": "Speech/Voices/Ting-TingCompact.SpeechVoice" }, { "value": 12, "name": "Trinoids.SpeechVoice", "path": "Speech/Voices/Trinoids.SpeechVoice" }, { "value": 28632, "name": "Vicki.SpeechVoice", "path": "Speech/Voices/Vicki.SpeechVoice" }, { "value": 1664, "name": "Victoria.SpeechVoice", "path": "Speech/Voices/Victoria.SpeechVoice" }, { "value": 12, "name": "Whisper.SpeechVoice", "path": "Speech/Voices/Whisper.SpeechVoice" }, { "value": 992, "name": "XanderCompact.SpeechVoice", "path": "Speech/Voices/XanderCompact.SpeechVoice" }, { "value": 756, "name": "YeldaCompact.SpeechVoice", "path": "Speech/Voices/YeldaCompact.SpeechVoice" }, { "value": 728, "name": "YunaCompact.SpeechVoice", "path": "Speech/Voices/YunaCompact.SpeechVoice" }, { "value": 12, "name": "Zarvox.SpeechVoice", "path": "Speech/Voices/Zarvox.SpeechVoice" }, { "value": 564, "name": "ZosiaCompact.SpeechVoice", "path": "Speech/Voices/ZosiaCompact.SpeechVoice" }, { "value": 772, "name": "ZuzanaCompact.SpeechVoice", "path": "Speech/Voices/ZuzanaCompact.SpeechVoice" } ] } ] }, { "value": 1060, "name": "Spelling", "path": "Spelling" }, { "value": 412, "name": "Spotlight", "path": "Spotlight", "children": [ { "value": 20, "name": "Application.mdimporter", "path": "Spotlight/Application.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/Application.mdimporter/Contents" } ] }, { "value": 12, "name": "Archives.mdimporter", "path": "Spotlight/Archives.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Archives.mdimporter/Contents" } ] }, { "value": 20, "name": "Audio.mdimporter", "path": "Spotlight/Audio.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/Audio.mdimporter/Contents" } ] }, { "value": 12, "name": "Automator.mdimporter", "path": "Spotlight/Automator.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Automator.mdimporter/Contents" } ] }, { "value": 12, "name": "Bookmarks.mdimporter", "path": "Spotlight/Bookmarks.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Bookmarks.mdimporter/Contents" } ] }, { "value": 16, "name": "Chat.mdimporter", "path": "Spotlight/Chat.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/Chat.mdimporter/Contents" } ] }, { "value": 28, "name": "CoreMedia.mdimporter", "path": "Spotlight/CoreMedia.mdimporter", "children": [ { "value": 28, "name": "Contents", "path": "Spotlight/CoreMedia.mdimporter/Contents" } ] }, { "value": 32, "name": "Font.mdimporter", "path": "Spotlight/Font.mdimporter", "children": [ { "value": 32, "name": "Contents", "path": "Spotlight/Font.mdimporter/Contents" } ] }, { "value": 16, "name": "iCal.mdimporter", "path": "Spotlight/iCal.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/iCal.mdimporter/Contents" } ] }, { "value": 28, "name": "Image.mdimporter", "path": "Spotlight/Image.mdimporter", "children": [ { "value": 28, "name": "Contents", "path": "Spotlight/Image.mdimporter/Contents" } ] }, { "value": 72, "name": "iPhoto.mdimporter", "path": "Spotlight/iPhoto.mdimporter", "children": [ { "value": 72, "name": "Contents", "path": "Spotlight/iPhoto.mdimporter/Contents" } ] }, { "value": 16, "name": "iPhoto8.mdimporter", "path": "Spotlight/iPhoto8.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/iPhoto8.mdimporter/Contents" } ] }, { "value": 12, "name": "Mail.mdimporter", "path": "Spotlight/Mail.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Mail.mdimporter/Contents" } ] }, { "value": 12, "name": "MIDI.mdimporter", "path": "Spotlight/MIDI.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/MIDI.mdimporter/Contents" } ] }, { "value": 8, "name": "Notes.mdimporter", "path": "Spotlight/Notes.mdimporter", "children": [ { "value": 8, "name": "Contents", "path": "Spotlight/Notes.mdimporter/Contents" } ] }, { "value": 16, "name": "PDF.mdimporter", "path": "Spotlight/PDF.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/PDF.mdimporter/Contents" } ] }, { "value": 12, "name": "PS.mdimporter", "path": "Spotlight/PS.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/PS.mdimporter/Contents" } ] }, { "value": 12, "name": "QuartzComposer.mdimporter", "path": "Spotlight/QuartzComposer.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/QuartzComposer.mdimporter/Contents" } ] }, { "value": 20, "name": "RichText.mdimporter", "path": "Spotlight/RichText.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/RichText.mdimporter/Contents" } ] }, { "value": 16, "name": "SystemPrefs.mdimporter", "path": "Spotlight/SystemPrefs.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/SystemPrefs.mdimporter/Contents" } ] }, { "value": 20, "name": "vCard.mdimporter", "path": "Spotlight/vCard.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/vCard.mdimporter/Contents" } ] } ] }, { "value": 0, "name": "StartupItems", "path": "StartupItems" }, { "value": 168, "name": "SyncServices", "path": "SyncServices", "children": [ { "value": 0, "name": "AutoRegistration", "path": "SyncServices/AutoRegistration", "children": [ { "value": 0, "name": "Clients", "path": "SyncServices/AutoRegistration/Clients" }, { "value": 0, "name": "Schemas", "path": "SyncServices/AutoRegistration/Schemas" } ] }, { "value": 168, "name": "Schemas", "path": "SyncServices/Schemas", "children": [ { "value": 24, "name": "Bookmarks.syncschema", "path": "SyncServices/Schemas/Bookmarks.syncschema" }, { "value": 68, "name": "Calendars.syncschema", "path": "SyncServices/Schemas/Calendars.syncschema" }, { "value": 48, "name": "Contacts.syncschema", "path": "SyncServices/Schemas/Contacts.syncschema" }, { "value": 16, "name": "Notes.syncschema", "path": "SyncServices/Schemas/Notes.syncschema" }, { "value": 12, "name": "Palm.syncschema", "path": "SyncServices/Schemas/Palm.syncschema" } ] } ] }, { "value": 3156, "name": "SystemConfiguration", "path": "SystemConfiguration", "children": [ { "value": 8, "name": "ApplicationFirewallStartup.bundle", "path": "SystemConfiguration/ApplicationFirewallStartup.bundle", "children": [ { "value": 8, "name": "Contents", "path": "SystemConfiguration/ApplicationFirewallStartup.bundle/Contents" } ] }, { "value": 116, "name": "EAPOLController.bundle", "path": "SystemConfiguration/EAPOLController.bundle", "children": [ { "value": 116, "name": "Contents", "path": "SystemConfiguration/EAPOLController.bundle/Contents" } ] }, { "value": 0, "name": "InterfaceNamer.bundle", "path": "SystemConfiguration/InterfaceNamer.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/InterfaceNamer.bundle/Contents" } ] }, { "value": 132, "name": "IPConfiguration.bundle", "path": "SystemConfiguration/IPConfiguration.bundle", "children": [ { "value": 132, "name": "Contents", "path": "SystemConfiguration/IPConfiguration.bundle/Contents" } ] }, { "value": 0, "name": "IPMonitor.bundle", "path": "SystemConfiguration/IPMonitor.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/IPMonitor.bundle/Contents" } ] }, { "value": 0, "name": "KernelEventMonitor.bundle", "path": "SystemConfiguration/KernelEventMonitor.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/KernelEventMonitor.bundle/Contents" } ] }, { "value": 0, "name": "LinkConfiguration.bundle", "path": "SystemConfiguration/LinkConfiguration.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/LinkConfiguration.bundle/Contents" } ] }, { "value": 20, "name": "Logger.bundle", "path": "SystemConfiguration/Logger.bundle", "children": [ { "value": 20, "name": "Contents", "path": "SystemConfiguration/Logger.bundle/Contents" } ] }, { "value": 2804, "name": "PPPController.bundle", "path": "SystemConfiguration/PPPController.bundle", "children": [ { "value": 2804, "name": "Contents", "path": "SystemConfiguration/PPPController.bundle/Contents" } ] }, { "value": 0, "name": "PreferencesMonitor.bundle", "path": "SystemConfiguration/PreferencesMonitor.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/PreferencesMonitor.bundle/Contents" } ] }, { "value": 76, "name": "PrinterNotifications.bundle", "path": "SystemConfiguration/PrinterNotifications.bundle", "children": [ { "value": 76, "name": "Contents", "path": "SystemConfiguration/PrinterNotifications.bundle/Contents" } ] }, { "value": 0, "name": "SCNetworkReachability.bundle", "path": "SystemConfiguration/SCNetworkReachability.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/SCNetworkReachability.bundle/Contents" } ] } ] }, { "value": 1520, "name": "SystemProfiler", "path": "SystemProfiler", "children": [ { "value": 84, "name": "SPAirPortReporter.spreporter", "path": "SystemProfiler/SPAirPortReporter.spreporter", "children": [ { "value": 84, "name": "Contents", "path": "SystemProfiler/SPAirPortReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPApplicationsReporter.spreporter", "path": "SystemProfiler/SPApplicationsReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPApplicationsReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPAudioReporter.spreporter", "path": "SystemProfiler/SPAudioReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPAudioReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPBluetoothReporter.spreporter", "path": "SystemProfiler/SPBluetoothReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPBluetoothReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPCameraReporter.spreporter", "path": "SystemProfiler/SPCameraReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPCameraReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPCardReaderReporter.spreporter", "path": "SystemProfiler/SPCardReaderReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPCardReaderReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPComponentReporter.spreporter", "path": "SystemProfiler/SPComponentReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPComponentReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPConfigurationProfileReporter.spreporter", "path": "SystemProfiler/SPConfigurationProfileReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPConfigurationProfileReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPDeveloperToolsReporter.spreporter", "path": "SystemProfiler/SPDeveloperToolsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPDeveloperToolsReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPDiagnosticsReporter.spreporter", "path": "SystemProfiler/SPDiagnosticsReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPDiagnosticsReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPDisabledApplicationsReporter.spreporter", "path": "SystemProfiler/SPDisabledApplicationsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPDisabledApplicationsReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPDiscBurningReporter.spreporter", "path": "SystemProfiler/SPDiscBurningReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPDiscBurningReporter.spreporter/Contents" } ] }, { "value": 284, "name": "SPDisplaysReporter.spreporter", "path": "SystemProfiler/SPDisplaysReporter.spreporter", "children": [ { "value": 284, "name": "Contents", "path": "SystemProfiler/SPDisplaysReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPEthernetReporter.spreporter", "path": "SystemProfiler/SPEthernetReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPEthernetReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPExtensionsReporter.spreporter", "path": "SystemProfiler/SPExtensionsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPExtensionsReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPFibreChannelReporter.spreporter", "path": "SystemProfiler/SPFibreChannelReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPFibreChannelReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPFirewallReporter.spreporter", "path": "SystemProfiler/SPFirewallReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPFirewallReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPFireWireReporter.spreporter", "path": "SystemProfiler/SPFireWireReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPFireWireReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPFontReporter.spreporter", "path": "SystemProfiler/SPFontReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPFontReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPFrameworksReporter.spreporter", "path": "SystemProfiler/SPFrameworksReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPFrameworksReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPHardwareRAIDReporter.spreporter", "path": "SystemProfiler/SPHardwareRAIDReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPHardwareRAIDReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPInstallHistoryReporter.spreporter", "path": "SystemProfiler/SPInstallHistoryReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPInstallHistoryReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPLogsReporter.spreporter", "path": "SystemProfiler/SPLogsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPLogsReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPManagedClientReporter.spreporter", "path": "SystemProfiler/SPManagedClientReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPManagedClientReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPMemoryReporter.spreporter", "path": "SystemProfiler/SPMemoryReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPMemoryReporter.spreporter/Contents" } ] }, { "value": 264, "name": "SPNetworkLocationReporter.spreporter", "path": "SystemProfiler/SPNetworkLocationReporter.spreporter", "children": [ { "value": 264, "name": "Contents", "path": "SystemProfiler/SPNetworkLocationReporter.spreporter/Contents" } ] }, { "value": 268, "name": "SPNetworkReporter.spreporter", "path": "SystemProfiler/SPNetworkReporter.spreporter", "children": [ { "value": 268, "name": "Contents", "path": "SystemProfiler/SPNetworkReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPNetworkVolumeReporter.spreporter", "path": "SystemProfiler/SPNetworkVolumeReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPNetworkVolumeReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPOSReporter.spreporter", "path": "SystemProfiler/SPOSReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPOSReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPParallelATAReporter.spreporter", "path": "SystemProfiler/SPParallelATAReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPParallelATAReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPParallelSCSIReporter.spreporter", "path": "SystemProfiler/SPParallelSCSIReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPParallelSCSIReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPCIReporter.spreporter", "path": "SystemProfiler/SPPCIReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPCIReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPlatformReporter.spreporter", "path": "SystemProfiler/SPPlatformReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPlatformReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPowerReporter.spreporter", "path": "SystemProfiler/SPPowerReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPowerReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPPrefPaneReporter.spreporter", "path": "SystemProfiler/SPPrefPaneReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPPrefPaneReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPPrintersReporter.spreporter", "path": "SystemProfiler/SPPrintersReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPPrintersReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPrintersSoftwareReporter.spreporter", "path": "SystemProfiler/SPPrintersSoftwareReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPrintersSoftwareReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPSASReporter.spreporter", "path": "SystemProfiler/SPSASReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPSASReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPSerialATAReporter.spreporter", "path": "SystemProfiler/SPSerialATAReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPSerialATAReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPSPIReporter.spreporter", "path": "SystemProfiler/SPSPIReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPSPIReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPStartupItemReporter.spreporter", "path": "SystemProfiler/SPStartupItemReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPStartupItemReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPStorageReporter.spreporter", "path": "SystemProfiler/SPStorageReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPStorageReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPSyncReporter.spreporter", "path": "SystemProfiler/SPSyncReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPSyncReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPThunderboltReporter.spreporter", "path": "SystemProfiler/SPThunderboltReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPThunderboltReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPUniversalAccessReporter.spreporter", "path": "SystemProfiler/SPUniversalAccessReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPUniversalAccessReporter.spreporter/Contents" } ] }, { "value": 40, "name": "SPUSBReporter.spreporter", "path": "SystemProfiler/SPUSBReporter.spreporter", "children": [ { "value": 40, "name": "Contents", "path": "SystemProfiler/SPUSBReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPWWANReporter.spreporter", "path": "SystemProfiler/SPWWANReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPWWANReporter.spreporter/Contents" } ] } ] }, { "value": 9608, "name": "Tcl", "path": "Tcl", "children": [ { "value": 3568, "name": "8.4", "path": "Tcl/8.4", "children": [ { "value": 156, "name": "expect5.45", "path": "Tcl/8.4/expect5.45" }, { "value": 28, "name": "Ffidl0.6.1", "path": "Tcl/8.4/Ffidl0.6.1" }, { "value": 784, "name": "Img1.4", "path": "Tcl/8.4/Img1.4" }, { "value": 88, "name": "itcl3.4", "path": "Tcl/8.4/itcl3.4" }, { "value": 24, "name": "itk3.4", "path": "Tcl/8.4/itk3.4" }, { "value": 28, "name": "Memchan2.2.1", "path": "Tcl/8.4/Memchan2.2.1" }, { "value": 228, "name": "Mk4tcl2.4.9.7", "path": "Tcl/8.4/Mk4tcl2.4.9.7" }, { "value": 96, "name": "QuickTimeTcl3.2", "path": "Tcl/8.4/QuickTimeTcl3.2" }, { "value": 196, "name": "snack2.2", "path": "Tcl/8.4/snack2.2" }, { "value": 24, "name": "tbcload1.7", "path": "Tcl/8.4/tbcload1.7" }, { "value": 76, "name": "tclAE2.0.5", "path": "Tcl/8.4/tclAE2.0.5" }, { "value": 20, "name": "Tclapplescript1.0", "path": "Tcl/8.4/Tclapplescript1.0" }, { "value": 56, "name": "Tcldom2.6", "path": "Tcl/8.4/Tcldom2.6" }, { "value": 56, "name": "tcldomxml2.6", "path": "Tcl/8.4/tcldomxml2.6" }, { "value": 108, "name": "Tclexpat2.6", "path": "Tcl/8.4/Tclexpat2.6" }, { "value": 16, "name": "Tclresource1.1.2", "path": "Tcl/8.4/Tclresource1.1.2" }, { "value": 288, "name": "tclx8.4", "path": "Tcl/8.4/tclx8.4" }, { "value": 60, "name": "Tclxml2.6", "path": "Tcl/8.4/Tclxml2.6" }, { "value": 20, "name": "Tclxslt2.6", "path": "Tcl/8.4/Tclxslt2.6" }, { "value": 396, "name": "tdom0.8.3", "path": "Tcl/8.4/tdom0.8.3" }, { "value": 80, "name": "thread2.6.6", "path": "Tcl/8.4/thread2.6.6" }, { "value": 68, "name": "Tktable2.10", "path": "Tcl/8.4/Tktable2.10" }, { "value": 36, "name": "tls1.6.1", "path": "Tcl/8.4/tls1.6.1" }, { "value": 32, "name": "tnc0.3.0", "path": "Tcl/8.4/tnc0.3.0" }, { "value": 180, "name": "treectrl2.2.10", "path": "Tcl/8.4/treectrl2.2.10" }, { "value": 120, "name": "Trf2.1.4", "path": "Tcl/8.4/Trf2.1.4" }, { "value": 108, "name": "vfs1.4.1", "path": "Tcl/8.4/vfs1.4.1" }, { "value": 196, "name": "xotcl1.6.6", "path": "Tcl/8.4/xotcl1.6.6" } ] }, { "value": 3384, "name": "8.5", "path": "Tcl/8.5", "children": [ { "value": 156, "name": "expect5.45", "path": "Tcl/8.5/expect5.45" }, { "value": 32, "name": "Ffidl0.6.1", "path": "Tcl/8.5/Ffidl0.6.1" }, { "value": 972, "name": "Img1.4", "path": "Tcl/8.5/Img1.4" }, { "value": 88, "name": "itcl3.4", "path": "Tcl/8.5/itcl3.4" }, { "value": 44, "name": "itk3.4", "path": "Tcl/8.5/itk3.4" }, { "value": 32, "name": "Memchan2.2.1", "path": "Tcl/8.5/Memchan2.2.1" }, { "value": 228, "name": "Mk4tcl2.4.9.7", "path": "Tcl/8.5/Mk4tcl2.4.9.7" }, { "value": 24, "name": "tbcload1.7", "path": "Tcl/8.5/tbcload1.7" }, { "value": 76, "name": "tclAE2.0.5", "path": "Tcl/8.5/tclAE2.0.5" }, { "value": 56, "name": "Tcldom2.6", "path": "Tcl/8.5/Tcldom2.6" }, { "value": 56, "name": "tcldomxml2.6", "path": "Tcl/8.5/tcldomxml2.6" }, { "value": 108, "name": "Tclexpat2.6", "path": "Tcl/8.5/Tclexpat2.6" }, { "value": 336, "name": "tclx8.4", "path": "Tcl/8.5/tclx8.4" }, { "value": 60, "name": "Tclxml2.6", "path": "Tcl/8.5/Tclxml2.6" }, { "value": 20, "name": "Tclxslt2.6", "path": "Tcl/8.5/Tclxslt2.6" }, { "value": 400, "name": "tdom0.8.3", "path": "Tcl/8.5/tdom0.8.3" }, { "value": 80, "name": "thread2.6.6", "path": "Tcl/8.5/thread2.6.6" }, { "value": 124, "name": "Tktable2.10", "path": "Tcl/8.5/Tktable2.10" }, { "value": 36, "name": "tls1.6.1", "path": "Tcl/8.5/tls1.6.1" }, { "value": 32, "name": "tnc0.3.0", "path": "Tcl/8.5/tnc0.3.0" }, { "value": 120, "name": "Trf2.1.4", "path": "Tcl/8.5/Trf2.1.4" }, { "value": 108, "name": "vfs1.4.1", "path": "Tcl/8.5/vfs1.4.1" }, { "value": 196, "name": "xotcl1.6.6", "path": "Tcl/8.5/xotcl1.6.6" } ] }, { "value": 80, "name": "bin", "path": "Tcl/bin" }, { "value": 224, "name": "bwidget1.9.1", "path": "Tcl/bwidget1.9.1", "children": [ { "value": 100, "name": "images", "path": "Tcl/bwidget1.9.1/images" }, { "value": 0, "name": "lang", "path": "Tcl/bwidget1.9.1/lang" } ] }, { "value": 324, "name": "iwidgets4.0.2", "path": "Tcl/iwidgets4.0.2", "children": [ { "value": 324, "name": "scripts", "path": "Tcl/iwidgets4.0.2/scripts" } ] }, { "value": 40, "name": "sqlite3", "path": "Tcl/sqlite3" }, { "value": 1456, "name": "tcllib1.12", "path": "Tcl/tcllib1.12", "children": [ { "value": 8, "name": "aes", "path": "Tcl/tcllib1.12/aes" }, { "value": 16, "name": "amazon-s3", "path": "Tcl/tcllib1.12/amazon-s3" }, { "value": 12, "name": "asn", "path": "Tcl/tcllib1.12/asn" }, { "value": 0, "name": "base32", "path": "Tcl/tcllib1.12/base32" }, { "value": 0, "name": "base64", "path": "Tcl/tcllib1.12/base64" }, { "value": 8, "name": "bee", "path": "Tcl/tcllib1.12/bee" }, { "value": 16, "name": "bench", "path": "Tcl/tcllib1.12/bench" }, { "value": 8, "name": "bibtex", "path": "Tcl/tcllib1.12/bibtex" }, { "value": 12, "name": "blowfish", "path": "Tcl/tcllib1.12/blowfish" }, { "value": 0, "name": "cache", "path": "Tcl/tcllib1.12/cache" }, { "value": 8, "name": "cmdline", "path": "Tcl/tcllib1.12/cmdline" }, { "value": 16, "name": "comm", "path": "Tcl/tcllib1.12/comm" }, { "value": 0, "name": "control", "path": "Tcl/tcllib1.12/control" }, { "value": 0, "name": "coroutine", "path": "Tcl/tcllib1.12/coroutine" }, { "value": 12, "name": "counter", "path": "Tcl/tcllib1.12/counter" }, { "value": 8, "name": "crc", "path": "Tcl/tcllib1.12/crc" }, { "value": 8, "name": "csv", "path": "Tcl/tcllib1.12/csv" }, { "value": 24, "name": "des", "path": "Tcl/tcllib1.12/des" }, { "value": 36, "name": "dns", "path": "Tcl/tcllib1.12/dns" }, { "value": 0, "name": "docstrip", "path": "Tcl/tcllib1.12/docstrip" }, { "value": 44, "name": "doctools", "path": "Tcl/tcllib1.12/doctools" }, { "value": 8, "name": "doctools2base", "path": "Tcl/tcllib1.12/doctools2base" }, { "value": 12, "name": "doctools2idx", "path": "Tcl/tcllib1.12/doctools2idx" }, { "value": 12, "name": "doctools2toc", "path": "Tcl/tcllib1.12/doctools2toc" }, { "value": 36, "name": "fileutil", "path": "Tcl/tcllib1.12/fileutil" }, { "value": 16, "name": "ftp", "path": "Tcl/tcllib1.12/ftp" }, { "value": 16, "name": "ftpd", "path": "Tcl/tcllib1.12/ftpd" }, { "value": 84, "name": "fumagic", "path": "Tcl/tcllib1.12/fumagic" }, { "value": 0, "name": "gpx", "path": "Tcl/tcllib1.12/gpx" }, { "value": 20, "name": "grammar_fa", "path": "Tcl/tcllib1.12/grammar_fa" }, { "value": 8, "name": "grammar_me", "path": "Tcl/tcllib1.12/grammar_me" }, { "value": 8, "name": "grammar_peg", "path": "Tcl/tcllib1.12/grammar_peg" }, { "value": 12, "name": "html", "path": "Tcl/tcllib1.12/html" }, { "value": 12, "name": "htmlparse", "path": "Tcl/tcllib1.12/htmlparse" }, { "value": 8, "name": "http", "path": "Tcl/tcllib1.12/http" }, { "value": 0, "name": "ident", "path": "Tcl/tcllib1.12/ident" }, { "value": 12, "name": "imap4", "path": "Tcl/tcllib1.12/imap4" }, { "value": 0, "name": "inifile", "path": "Tcl/tcllib1.12/inifile" }, { "value": 0, "name": "interp", "path": "Tcl/tcllib1.12/interp" }, { "value": 0, "name": "irc", "path": "Tcl/tcllib1.12/irc" }, { "value": 0, "name": "javascript", "path": "Tcl/tcllib1.12/javascript" }, { "value": 12, "name": "jpeg", "path": "Tcl/tcllib1.12/jpeg" }, { "value": 0, "name": "json", "path": "Tcl/tcllib1.12/json" }, { "value": 28, "name": "ldap", "path": "Tcl/tcllib1.12/ldap" }, { "value": 20, "name": "log", "path": "Tcl/tcllib1.12/log" }, { "value": 0, "name": "map", "path": "Tcl/tcllib1.12/map" }, { "value": 12, "name": "mapproj", "path": "Tcl/tcllib1.12/mapproj" }, { "value": 140, "name": "math", "path": "Tcl/tcllib1.12/math" }, { "value": 8, "name": "md4", "path": "Tcl/tcllib1.12/md4" }, { "value": 16, "name": "md5", "path": "Tcl/tcllib1.12/md5" }, { "value": 0, "name": "md5crypt", "path": "Tcl/tcllib1.12/md5crypt" }, { "value": 36, "name": "mime", "path": "Tcl/tcllib1.12/mime" }, { "value": 0, "name": "multiplexer", "path": "Tcl/tcllib1.12/multiplexer" }, { "value": 0, "name": "namespacex", "path": "Tcl/tcllib1.12/namespacex" }, { "value": 12, "name": "ncgi", "path": "Tcl/tcllib1.12/ncgi" }, { "value": 0, "name": "nmea", "path": "Tcl/tcllib1.12/nmea" }, { "value": 8, "name": "nns", "path": "Tcl/tcllib1.12/nns" }, { "value": 8, "name": "nntp", "path": "Tcl/tcllib1.12/nntp" }, { "value": 0, "name": "ntp", "path": "Tcl/tcllib1.12/ntp" }, { "value": 8, "name": "otp", "path": "Tcl/tcllib1.12/otp" }, { "value": 48, "name": "page", "path": "Tcl/tcllib1.12/page" }, { "value": 0, "name": "pluginmgr", "path": "Tcl/tcllib1.12/pluginmgr" }, { "value": 0, "name": "png", "path": "Tcl/tcllib1.12/png" }, { "value": 8, "name": "pop3", "path": "Tcl/tcllib1.12/pop3" }, { "value": 8, "name": "pop3d", "path": "Tcl/tcllib1.12/pop3d" }, { "value": 8, "name": "profiler", "path": "Tcl/tcllib1.12/profiler" }, { "value": 72, "name": "pt", "path": "Tcl/tcllib1.12/pt" }, { "value": 0, "name": "rc4", "path": "Tcl/tcllib1.12/rc4" }, { "value": 0, "name": "rcs", "path": "Tcl/tcllib1.12/rcs" }, { "value": 12, "name": "report", "path": "Tcl/tcllib1.12/report" }, { "value": 8, "name": "rest", "path": "Tcl/tcllib1.12/rest" }, { "value": 16, "name": "ripemd", "path": "Tcl/tcllib1.12/ripemd" }, { "value": 8, "name": "sasl", "path": "Tcl/tcllib1.12/sasl" }, { "value": 24, "name": "sha1", "path": "Tcl/tcllib1.12/sha1" }, { "value": 0, "name": "simulation", "path": "Tcl/tcllib1.12/simulation" }, { "value": 8, "name": "smtpd", "path": "Tcl/tcllib1.12/smtpd" }, { "value": 84, "name": "snit", "path": "Tcl/tcllib1.12/snit" }, { "value": 0, "name": "soundex", "path": "Tcl/tcllib1.12/soundex" }, { "value": 12, "name": "stooop", "path": "Tcl/tcllib1.12/stooop" }, { "value": 48, "name": "stringprep", "path": "Tcl/tcllib1.12/stringprep" }, { "value": 156, "name": "struct", "path": "Tcl/tcllib1.12/struct" }, { "value": 0, "name": "tar", "path": "Tcl/tcllib1.12/tar" }, { "value": 24, "name": "tepam", "path": "Tcl/tcllib1.12/tepam" }, { "value": 0, "name": "term", "path": "Tcl/tcllib1.12/term" }, { "value": 52, "name": "textutil", "path": "Tcl/tcllib1.12/textutil" }, { "value": 0, "name": "tie", "path": "Tcl/tcllib1.12/tie" }, { "value": 8, "name": "tiff", "path": "Tcl/tcllib1.12/tiff" }, { "value": 0, "name": "transfer", "path": "Tcl/tcllib1.12/transfer" }, { "value": 0, "name": "treeql", "path": "Tcl/tcllib1.12/treeql" }, { "value": 0, "name": "uev", "path": "Tcl/tcllib1.12/uev" }, { "value": 8, "name": "units", "path": "Tcl/tcllib1.12/units" }, { "value": 8, "name": "uri", "path": "Tcl/tcllib1.12/uri" }, { "value": 0, "name": "uuid", "path": "Tcl/tcllib1.12/uuid" }, { "value": 0, "name": "virtchannel_base", "path": "Tcl/tcllib1.12/virtchannel_base" }, { "value": 0, "name": "virtchannel_core", "path": "Tcl/tcllib1.12/virtchannel_core" }, { "value": 0, "name": "virtchannel_transform", "path": "Tcl/tcllib1.12/virtchannel_transform" }, { "value": 16, "name": "wip", "path": "Tcl/tcllib1.12/wip" }, { "value": 12, "name": "yaml", "path": "Tcl/tcllib1.12/yaml" } ] }, { "value": 60, "name": "tclsoap1.6.8", "path": "Tcl/tclsoap1.6.8", "children": [ { "value": 0, "name": "interop", "path": "Tcl/tclsoap1.6.8/interop" } ] }, { "value": 56, "name": "tkcon2.6", "path": "Tcl/tkcon2.6" }, { "value": 412, "name": "tklib0.5", "path": "Tcl/tklib0.5", "children": [ { "value": 0, "name": "autoscroll", "path": "Tcl/tklib0.5/autoscroll" }, { "value": 8, "name": "canvas", "path": "Tcl/tklib0.5/canvas" }, { "value": 8, "name": "chatwidget", "path": "Tcl/tklib0.5/chatwidget" }, { "value": 28, "name": "controlwidget", "path": "Tcl/tklib0.5/controlwidget" }, { "value": 0, "name": "crosshair", "path": "Tcl/tklib0.5/crosshair" }, { "value": 8, "name": "ctext", "path": "Tcl/tklib0.5/ctext" }, { "value": 0, "name": "cursor", "path": "Tcl/tklib0.5/cursor" }, { "value": 0, "name": "datefield", "path": "Tcl/tklib0.5/datefield" }, { "value": 24, "name": "diagrams", "path": "Tcl/tklib0.5/diagrams" }, { "value": 0, "name": "getstring", "path": "Tcl/tklib0.5/getstring" }, { "value": 0, "name": "history", "path": "Tcl/tklib0.5/history" }, { "value": 24, "name": "ico", "path": "Tcl/tklib0.5/ico" }, { "value": 8, "name": "ipentry", "path": "Tcl/tklib0.5/ipentry" }, { "value": 16, "name": "khim", "path": "Tcl/tklib0.5/khim" }, { "value": 20, "name": "menubar", "path": "Tcl/tklib0.5/menubar" }, { "value": 16, "name": "ntext", "path": "Tcl/tklib0.5/ntext" }, { "value": 48, "name": "plotchart", "path": "Tcl/tklib0.5/plotchart" }, { "value": 8, "name": "style", "path": "Tcl/tklib0.5/style" }, { "value": 0, "name": "swaplist", "path": "Tcl/tklib0.5/swaplist" }, { "value": 148, "name": "tablelist", "path": "Tcl/tklib0.5/tablelist" }, { "value": 8, "name": "tkpiechart", "path": "Tcl/tklib0.5/tkpiechart" }, { "value": 8, "name": "tooltip", "path": "Tcl/tklib0.5/tooltip" }, { "value": 32, "name": "widget", "path": "Tcl/tklib0.5/widget" } ] } ] }, { "value": 80, "name": "TextEncodings", "path": "TextEncodings", "children": [ { "value": 0, "name": "ArabicEncodings.bundle", "path": "TextEncodings/ArabicEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/ArabicEncodings.bundle/Contents" } ] }, { "value": 0, "name": "CentralEuropean Encodings.bundle", "path": "TextEncodings/CentralEuropean Encodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/CentralEuropean Encodings.bundle/Contents" } ] }, { "value": 0, "name": "ChineseEncodings Supplement.bundle", "path": "TextEncodings/ChineseEncodings Supplement.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/ChineseEncodings Supplement.bundle/Contents" } ] }, { "value": 28, "name": "ChineseEncodings.bundle", "path": "TextEncodings/ChineseEncodings.bundle", "children": [ { "value": 28, "name": "Contents", "path": "TextEncodings/ChineseEncodings.bundle/Contents" } ] }, { "value": 0, "name": "CoreEncodings.bundle", "path": "TextEncodings/CoreEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/CoreEncodings.bundle/Contents" } ] }, { "value": 0, "name": "CyrillicEncodings.bundle", "path": "TextEncodings/CyrillicEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/CyrillicEncodings.bundle/Contents" } ] }, { "value": 0, "name": "GreekEncodings.bundle", "path": "TextEncodings/GreekEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/GreekEncodings.bundle/Contents" } ] }, { "value": 0, "name": "HebrewEncodings.bundle", "path": "TextEncodings/HebrewEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/HebrewEncodings.bundle/Contents" } ] }, { "value": 0, "name": "IndicEncodings.bundle", "path": "TextEncodings/IndicEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/IndicEncodings.bundle/Contents" } ] }, { "value": 20, "name": "JapaneseEncodings.bundle", "path": "TextEncodings/JapaneseEncodings.bundle", "children": [ { "value": 20, "name": "Contents", "path": "TextEncodings/JapaneseEncodings.bundle/Contents" } ] }, { "value": 16, "name": "KoreanEncodings.bundle", "path": "TextEncodings/KoreanEncodings.bundle", "children": [ { "value": 16, "name": "Contents", "path": "TextEncodings/KoreanEncodings.bundle/Contents" } ] }, { "value": 0, "name": "SymbolEncodings.bundle", "path": "TextEncodings/SymbolEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/SymbolEncodings.bundle/Contents" } ] }, { "value": 0, "name": "ThaiEncodings.bundle", "path": "TextEncodings/ThaiEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/ThaiEncodings.bundle/Contents" } ] }, { "value": 0, "name": "TurkishEncodings.bundle", "path": "TextEncodings/TurkishEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/TurkishEncodings.bundle/Contents" } ] }, { "value": 16, "name": "UnicodeEncodings.bundle", "path": "TextEncodings/UnicodeEncodings.bundle", "children": [ { "value": 16, "name": "Contents", "path": "TextEncodings/UnicodeEncodings.bundle/Contents" } ] }, { "value": 0, "name": "WesternLanguage Encodings.bundle", "path": "TextEncodings/WesternLanguage Encodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/WesternLanguage Encodings.bundle/Contents" } ] } ] }, { "value": 600, "name": "UserEventPlugins", "path": "UserEventPlugins", "children": [ { "value": 60, "name": "ACRRDaemon.plugin", "path": "UserEventPlugins/ACRRDaemon.plugin", "children": [ { "value": 60, "name": "Contents", "path": "UserEventPlugins/ACRRDaemon.plugin/Contents" } ] }, { "value": 16, "name": "AirPortUserAgent.plugin", "path": "UserEventPlugins/AirPortUserAgent.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/AirPortUserAgent.plugin/Contents" } ] }, { "value": 0, "name": "alfUIplugin.plugin", "path": "UserEventPlugins/alfUIplugin.plugin", "children": [ { "value": 0, "name": "Contents", "path": "UserEventPlugins/alfUIplugin.plugin/Contents" } ] }, { "value": 12, "name": "AppleHIDMouseAgent.plugin", "path": "UserEventPlugins/AppleHIDMouseAgent.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/AppleHIDMouseAgent.plugin/Contents" } ] }, { "value": 12, "name": "AssistantUEA.plugin", "path": "UserEventPlugins/AssistantUEA.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/AssistantUEA.plugin/Contents" } ] }, { "value": 16, "name": "AutoTimeZone.plugin", "path": "UserEventPlugins/AutoTimeZone.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/AutoTimeZone.plugin/Contents" } ] }, { "value": 20, "name": "BluetoothUserAgent-Plugin.plugin", "path": "UserEventPlugins/BluetoothUserAgent-Plugin.plugin", "children": [ { "value": 20, "name": "Contents", "path": "UserEventPlugins/BluetoothUserAgent-Plugin.plugin/Contents" } ] }, { "value": 12, "name": "BonjourEvents.plugin", "path": "UserEventPlugins/BonjourEvents.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/BonjourEvents.plugin/Contents" } ] }, { "value": 16, "name": "BTMMPortInUseAgent.plugin", "path": "UserEventPlugins/BTMMPortInUseAgent.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/BTMMPortInUseAgent.plugin/Contents" } ] }, { "value": 8, "name": "CalendarMonitor.plugin", "path": "UserEventPlugins/CalendarMonitor.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/CalendarMonitor.plugin/Contents" } ] }, { "value": 88, "name": "CaptiveSystemAgent.plugin", "path": "UserEventPlugins/CaptiveSystemAgent.plugin", "children": [ { "value": 88, "name": "Contents", "path": "UserEventPlugins/CaptiveSystemAgent.plugin/Contents" } ] }, { "value": 12, "name": "CaptiveUserAgent.plugin", "path": "UserEventPlugins/CaptiveUserAgent.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/CaptiveUserAgent.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.bonjour.plugin", "path": "UserEventPlugins/com.apple.bonjour.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.bonjour.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.cfnotification.plugin", "path": "UserEventPlugins/com.apple.cfnotification.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.cfnotification.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.diskarbitration.plugin", "path": "UserEventPlugins/com.apple.diskarbitration.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.diskarbitration.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.dispatch.vfs.plugin", "path": "UserEventPlugins/com.apple.dispatch.vfs.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.dispatch.vfs.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.fsevents.matching.plugin", "path": "UserEventPlugins/com.apple.fsevents.matching.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.fsevents.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.iokit.matching.plugin", "path": "UserEventPlugins/com.apple.iokit.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.iokit.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.KeyStore.plugin", "path": "UserEventPlugins/com.apple.KeyStore.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.KeyStore.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.launchd.helper.plugin", "path": "UserEventPlugins/com.apple.launchd.helper.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.launchd.helper.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.locationd.events.plugin", "path": "UserEventPlugins/com.apple.locationd.events.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.locationd.events.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.notifyd.matching.plugin", "path": "UserEventPlugins/com.apple.notifyd.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.notifyd.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.opendirectory.matching.plugin", "path": "UserEventPlugins/com.apple.opendirectory.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.opendirectory.matching.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.rcdevent.matching.plugin", "path": "UserEventPlugins/com.apple.rcdevent.matching.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.rcdevent.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.reachability.plugin", "path": "UserEventPlugins/com.apple.reachability.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.reachability.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.systemconfiguration.plugin", "path": "UserEventPlugins/com.apple.systemconfiguration.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.systemconfiguration.plugin/Contents" } ] }, { "value": 44, "name": "com.apple.telemetry.plugin", "path": "UserEventPlugins/com.apple.telemetry.plugin", "children": [ { "value": 44, "name": "Contents", "path": "UserEventPlugins/com.apple.telemetry.plugin/Contents" } ] }, { "value": 24, "name": "com.apple.time.plugin", "path": "UserEventPlugins/com.apple.time.plugin", "children": [ { "value": 24, "name": "Contents", "path": "UserEventPlugins/com.apple.time.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.TimeMachine.plugin", "path": "UserEventPlugins/com.apple.TimeMachine.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.TimeMachine.plugin/Contents" } ] }, { "value": 20, "name": "com.apple.TimeMachine.System.plugin", "path": "UserEventPlugins/com.apple.TimeMachine.System.plugin", "children": [ { "value": 20, "name": "Contents", "path": "UserEventPlugins/com.apple.TimeMachine.System.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.universalaccess.events.plugin", "path": "UserEventPlugins/com.apple.universalaccess.events.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.universalaccess.events.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.usernotificationcenter.matching.plugin", "path": "UserEventPlugins/com.apple.usernotificationcenter.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.usernotificationcenter.matching.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.WorkstationService.plugin", "path": "UserEventPlugins/com.apple.WorkstationService.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.WorkstationService.plugin/Contents" } ] }, { "value": 28, "name": "EAPOLMonitor.plugin", "path": "UserEventPlugins/EAPOLMonitor.plugin", "children": [ { "value": 28, "name": "Contents", "path": "UserEventPlugins/EAPOLMonitor.plugin/Contents" } ] }, { "value": 8, "name": "GSSNotificationForwarder.plugin", "path": "UserEventPlugins/GSSNotificationForwarder.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/GSSNotificationForwarder.plugin/Contents" } ] }, { "value": 12, "name": "LocationMenu.plugin", "path": "UserEventPlugins/LocationMenu.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/LocationMenu.plugin/Contents" } ] }, { "value": 12, "name": "PrinterMonitor.plugin", "path": "UserEventPlugins/PrinterMonitor.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/PrinterMonitor.plugin/Contents" } ] }, { "value": 16, "name": "SCMonitor.plugin", "path": "UserEventPlugins/SCMonitor.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/SCMonitor.plugin/Contents" } ] } ] }, { "value": 536, "name": "Video", "path": "Video", "children": [ { "value": 536, "name": "Plug-Ins", "path": "Video/Plug-Ins", "children": [ { "value": 536, "name": "AppleProResCodec.bundle", "path": "Video/Plug-Ins/AppleProResCodec.bundle" } ] } ] }, { "value": 272, "name": "WidgetResources", "path": "WidgetResources", "children": [ { "value": 16, "name": ".parsers", "path": "WidgetResources/.parsers" }, { "value": 172, "name": "AppleClasses", "path": "WidgetResources/AppleClasses", "children": [ { "value": 156, "name": "Images", "path": "WidgetResources/AppleClasses/Images" } ] }, { "value": 0, "name": "AppleParser", "path": "WidgetResources/AppleParser" }, { "value": 48, "name": "button", "path": "WidgetResources/button" }, { "value": 32, "name": "ibutton", "path": "WidgetResources/ibutton" } ] } ] );
Java
// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/torque/torque-compiler.h" #include <fstream> #include "src/torque/declarable.h" #include "src/torque/declaration-visitor.h" #include "src/torque/global-context.h" #include "src/torque/implementation-visitor.h" #include "src/torque/torque-parser.h" #include "src/torque/type-oracle.h" namespace v8 { namespace internal { namespace torque { namespace { base::Optional<std::string> ReadFile(const std::string& path) { std::ifstream file_stream(path); if (!file_stream.good()) return base::nullopt; return std::string{std::istreambuf_iterator<char>(file_stream), std::istreambuf_iterator<char>()}; } void ReadAndParseTorqueFile(const std::string& path) { SourceId source_id = SourceFileMap::AddSource(path); CurrentSourceFile::Scope source_id_scope(source_id); // path might be either a normal file path or an encoded URI. auto maybe_content = ReadFile(SourceFileMap::AbsolutePath(source_id)); if (!maybe_content) { if (auto maybe_path = FileUriDecode(path)) { maybe_content = ReadFile(*maybe_path); } } if (!maybe_content) { Error("Cannot open file path/uri: ", path).Throw(); } ParseTorque(*maybe_content); } void CompileCurrentAst(TorqueCompilerOptions options) { GlobalContext::Scope global_context(std::move(CurrentAst::Get())); if (options.collect_language_server_data) { GlobalContext::SetCollectLanguageServerData(); } if (options.force_assert_statements) { GlobalContext::SetForceAssertStatements(); } TargetArchitecture::Scope target_architecture(options.force_32bit_output); TypeOracle::Scope type_oracle; // Two-step process of predeclaration + resolution allows to resolve type // declarations independent of the order they are given. PredeclarationVisitor::Predeclare(GlobalContext::ast()); PredeclarationVisitor::ResolvePredeclarations(); // Process other declarations. DeclarationVisitor::Visit(GlobalContext::ast()); // A class types' fields are resolved here, which allows two class fields to // mutually refer to each others. TypeOracle::FinalizeAggregateTypes(); std::string output_directory = options.output_directory; ImplementationVisitor implementation_visitor; implementation_visitor.SetDryRun(output_directory.length() == 0); implementation_visitor.GenerateInstanceTypes(output_directory); implementation_visitor.BeginCSAFiles(); implementation_visitor.VisitAllDeclarables(); ReportAllUnusedMacros(); implementation_visitor.GenerateBuiltinDefinitionsAndInterfaceDescriptors( output_directory); implementation_visitor.GenerateClassFieldOffsets(output_directory); implementation_visitor.GenerateBitFields(output_directory); implementation_visitor.GeneratePrintDefinitions(output_directory); implementation_visitor.GenerateClassDefinitions(output_directory); implementation_visitor.GenerateClassVerifiers(output_directory); implementation_visitor.GenerateClassDebugReaders(output_directory); implementation_visitor.GenerateEnumVerifiers(output_directory); implementation_visitor.GenerateBodyDescriptors(output_directory); implementation_visitor.GenerateExportedMacrosAssembler(output_directory); implementation_visitor.GenerateCSATypes(output_directory); implementation_visitor.EndCSAFiles(); implementation_visitor.GenerateImplementation(output_directory); if (GlobalContext::collect_language_server_data()) { LanguageServerData::SetGlobalContext(std::move(GlobalContext::Get())); LanguageServerData::SetTypeOracle(std::move(TypeOracle::Get())); } } } // namespace TorqueCompilerResult CompileTorque(const std::string& source, TorqueCompilerOptions options) { SourceFileMap::Scope source_map_scope(options.v8_root); CurrentSourceFile::Scope no_file_scope( SourceFileMap::AddSource("dummy-filename.tq")); CurrentAst::Scope ast_scope; TorqueMessages::Scope messages_scope; LanguageServerData::Scope server_data_scope; TorqueCompilerResult result; try { ParseTorque(source); CompileCurrentAst(options); } catch (TorqueAbortCompilation&) { // Do nothing. The relevant TorqueMessage is part of the // TorqueMessages contextual. } result.source_file_map = SourceFileMap::Get(); result.language_server_data = std::move(LanguageServerData::Get()); result.messages = std::move(TorqueMessages::Get()); return result; } TorqueCompilerResult CompileTorque(std::vector<std::string> files, TorqueCompilerOptions options) { SourceFileMap::Scope source_map_scope(options.v8_root); CurrentSourceFile::Scope unknown_source_file_scope(SourceId::Invalid()); CurrentAst::Scope ast_scope; TorqueMessages::Scope messages_scope; LanguageServerData::Scope server_data_scope; TorqueCompilerResult result; try { for (const auto& path : files) { ReadAndParseTorqueFile(path); } CompileCurrentAst(options); } catch (TorqueAbortCompilation&) { // Do nothing. The relevant TorqueMessage is part of the // TorqueMessages contextual. } result.source_file_map = SourceFileMap::Get(); result.language_server_data = std::move(LanguageServerData::Get()); result.messages = std::move(TorqueMessages::Get()); return result; } } // namespace torque } // namespace internal } // namespace v8
Java
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. import visvis as vv import numpy as np import os # Try importing imageio imageio = None try: import imageio except ImportError: pass def volread(filename): """ volread(filename) Read volume from a file. If filename is 'stent', read a dedicated test dataset. For reading any other kind of volume, the imageio package is required. """ if filename == 'stent': # Get full filename path = vv.misc.getResourceDir() filename2 = os.path.join(path, 'stent_vol.ssdf') if os.path.isfile(filename2): filename = filename2 else: raise IOError("File '%s' does not exist." % filename) # Load s = vv.ssdf.load(filename) return s.vol.astype('int16') * s.colorscale elif imageio is not None: return imageio.volread(filename) else: raise RuntimeError("visvis.volread needs the imageio package to read arbitrary files.") if __name__ == '__main__': vol = vv.volread('stent') t = vv.volshow(vol) t.renderStyle = 'mip' # maximum intensity projection (is the default)
Java
/* * Copyright (c) 2012, Michael Lehn, Klaus Pototzky * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1) Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2) Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3) Neither the name of the FLENS development group nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * 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 THE COPYRIGHT * OWNER OR CONTRIBUTORS 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. */ #ifndef CXXLAPACK_INTERFACE_LASDQ_H #define CXXLAPACK_INTERFACE_LASDQ_H 1 #include <cxxstd/complex.h> namespace cxxlapack { template <typename IndexType> IndexType lasdq(char uplo, IndexType sqre, IndexType n, IndexType ncvt, IndexType nru, IndexType ncc, float *d, float *e, float *Vt, IndexType ldVt, float *U, IndexType ldU, float *C, IndexType ldC, float *work); template <typename IndexType> IndexType lasdq(char uplo, IndexType sqre, IndexType n, IndexType ncvt, IndexType nru, IndexType ncc, double *d, double *e, double *Vt, IndexType ldVt, double *U, IndexType ldU, double *C, IndexType ldC, double *work); } // namespace cxxlapack #endif // CXXLAPACK_INTERFACE_LASDQ_H
Java
<!doctype html> <html> <head> <style> iframe { position: fixed; top: 0px; bottom: 0px; left: 0px; right: 0px; width: 100%; height: 100%; border: none; margin: 0; } </style> </head> <body> <iframe src="test_web_input_editing.html" id="fs_iframe"></iframe> </body> </html>
Java
""" test positional based indexing with iloc """ from datetime import datetime import re from warnings import ( catch_warnings, simplefilter, ) import numpy as np import pytest import pandas.util._test_decorators as td from pandas import ( NA, Categorical, CategoricalDtype, DataFrame, Index, Interval, NaT, Series, array, concat, date_range, isna, ) import pandas._testing as tm from pandas.api.types import is_scalar from pandas.core.indexing import IndexingError from pandas.tests.indexing.common import Base # We pass through the error message from numpy _slice_iloc_msg = re.escape( "only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) " "and integer or boolean arrays are valid indices" ) class TestiLoc(Base): @pytest.mark.parametrize("key", [2, -1, [0, 1, 2]]) def test_iloc_getitem_int_and_list_int(self, key): self.check_result( "iloc", key, typs=["labels", "mixed", "ts", "floats", "empty"], fails=IndexError, ) # array of ints (GH5006), make sure that a single indexer is returning # the correct type class TestiLocBaseIndependent: """Tests Independent Of Base Class""" @pytest.mark.parametrize( "key", [ slice(None), slice(3), range(3), [0, 1, 2], Index(range(3)), np.asarray([0, 1, 2]), ], ) @pytest.mark.parametrize("indexer", [tm.loc, tm.iloc]) def test_iloc_setitem_fullcol_categorical(self, indexer, key, using_array_manager): frame = DataFrame({0: range(3)}, dtype=object) cat = Categorical(["alpha", "beta", "gamma"]) if not using_array_manager: assert frame._mgr.blocks[0]._can_hold_element(cat) df = frame.copy() orig_vals = df.values indexer(df)[key, 0] = cat overwrite = isinstance(key, slice) and key == slice(None) if overwrite or using_array_manager: # TODO(ArrayManager) we always overwrite because ArrayManager takes # the "split" path, which still overwrites # TODO: GH#39986 this probably shouldn't behave differently expected = DataFrame({0: cat}) assert not np.shares_memory(df.values, orig_vals) else: expected = DataFrame({0: cat}).astype(object) if not using_array_manager: assert np.shares_memory(df[0].values, orig_vals) tm.assert_frame_equal(df, expected) # check we dont have a view on cat (may be undesired GH#39986) df.iloc[0, 0] = "gamma" if overwrite: assert cat[0] != "gamma" else: assert cat[0] != "gamma" # TODO with mixed dataframe ("split" path), we always overwrite the column frame = DataFrame({0: np.array([0, 1, 2], dtype=object), 1: range(3)}) df = frame.copy() orig_vals = df.values indexer(df)[key, 0] = cat expected = DataFrame({0: cat, 1: range(3)}) tm.assert_frame_equal(df, expected) # TODO(ArrayManager) does not yet update parent @td.skip_array_manager_not_yet_implemented @pytest.mark.parametrize("box", [array, Series]) def test_iloc_setitem_ea_inplace(self, frame_or_series, box, using_array_manager): # GH#38952 Case with not setting a full column # IntegerArray without NAs arr = array([1, 2, 3, 4]) obj = frame_or_series(arr.to_numpy("i8")) if frame_or_series is Series or not using_array_manager: values = obj.values else: values = obj[0].values if frame_or_series is Series: obj.iloc[:2] = box(arr[2:]) else: obj.iloc[:2, 0] = box(arr[2:]) expected = frame_or_series(np.array([3, 4, 3, 4], dtype="i8")) tm.assert_equal(obj, expected) # Check that we are actually in-place if frame_or_series is Series: assert obj.values is values else: if using_array_manager: assert obj[0].values is values else: assert obj.values.base is values.base and values.base is not None def test_is_scalar_access(self): # GH#32085 index with duplicates doesn't matter for _is_scalar_access index = Index([1, 2, 1]) ser = Series(range(3), index=index) assert ser.iloc._is_scalar_access((1,)) df = ser.to_frame() assert df.iloc._is_scalar_access((1, 0)) def test_iloc_exceeds_bounds(self): # GH6296 # iloc should allow indexers that exceed the bounds df = DataFrame(np.random.random_sample((20, 5)), columns=list("ABCDE")) # lists of positions should raise IndexError! msg = "positional indexers are out-of-bounds" with pytest.raises(IndexError, match=msg): df.iloc[:, [0, 1, 2, 3, 4, 5]] with pytest.raises(IndexError, match=msg): df.iloc[[1, 30]] with pytest.raises(IndexError, match=msg): df.iloc[[1, -30]] with pytest.raises(IndexError, match=msg): df.iloc[[100]] s = df["A"] with pytest.raises(IndexError, match=msg): s.iloc[[100]] with pytest.raises(IndexError, match=msg): s.iloc[[-100]] # still raise on a single indexer msg = "single positional indexer is out-of-bounds" with pytest.raises(IndexError, match=msg): df.iloc[30] with pytest.raises(IndexError, match=msg): df.iloc[-30] # GH10779 # single positive/negative indexer exceeding Series bounds should raise # an IndexError with pytest.raises(IndexError, match=msg): s.iloc[30] with pytest.raises(IndexError, match=msg): s.iloc[-30] # slices are ok result = df.iloc[:, 4:10] # 0 < start < len < stop expected = df.iloc[:, 4:] tm.assert_frame_equal(result, expected) result = df.iloc[:, -4:-10] # stop < 0 < start < len expected = df.iloc[:, :0] tm.assert_frame_equal(result, expected) result = df.iloc[:, 10:4:-1] # 0 < stop < len < start (down) expected = df.iloc[:, :4:-1] tm.assert_frame_equal(result, expected) result = df.iloc[:, 4:-10:-1] # stop < 0 < start < len (down) expected = df.iloc[:, 4::-1] tm.assert_frame_equal(result, expected) result = df.iloc[:, -10:4] # start < 0 < stop < len expected = df.iloc[:, :4] tm.assert_frame_equal(result, expected) result = df.iloc[:, 10:4] # 0 < stop < len < start expected = df.iloc[:, :0] tm.assert_frame_equal(result, expected) result = df.iloc[:, -10:-11:-1] # stop < start < 0 < len (down) expected = df.iloc[:, :0] tm.assert_frame_equal(result, expected) result = df.iloc[:, 10:11] # 0 < len < start < stop expected = df.iloc[:, :0] tm.assert_frame_equal(result, expected) # slice bounds exceeding is ok result = s.iloc[18:30] expected = s.iloc[18:] tm.assert_series_equal(result, expected) result = s.iloc[30:] expected = s.iloc[:0] tm.assert_series_equal(result, expected) result = s.iloc[30::-1] expected = s.iloc[::-1] tm.assert_series_equal(result, expected) # doc example def check(result, expected): str(result) result.dtypes tm.assert_frame_equal(result, expected) dfl = DataFrame(np.random.randn(5, 2), columns=list("AB")) check(dfl.iloc[:, 2:3], DataFrame(index=dfl.index)) check(dfl.iloc[:, 1:3], dfl.iloc[:, [1]]) check(dfl.iloc[4:6], dfl.iloc[[4]]) msg = "positional indexers are out-of-bounds" with pytest.raises(IndexError, match=msg): dfl.iloc[[4, 5, 6]] msg = "single positional indexer is out-of-bounds" with pytest.raises(IndexError, match=msg): dfl.iloc[:, 4] @pytest.mark.parametrize("index,columns", [(np.arange(20), list("ABCDE"))]) @pytest.mark.parametrize( "index_vals,column_vals", [ ([slice(None), ["A", "D"]]), (["1", "2"], slice(None)), ([datetime(2019, 1, 1)], slice(None)), ], ) def test_iloc_non_integer_raises(self, index, columns, index_vals, column_vals): # GH 25753 df = DataFrame( np.random.randn(len(index), len(columns)), index=index, columns=columns ) msg = ".iloc requires numeric indexers, got" with pytest.raises(IndexError, match=msg): df.iloc[index_vals, column_vals] @pytest.mark.parametrize("dims", [1, 2]) def test_iloc_getitem_invalid_scalar(self, dims): # GH 21982 if dims == 1: s = Series(np.arange(10)) else: s = DataFrame(np.arange(100).reshape(10, 10)) with pytest.raises(TypeError, match="Cannot index by location index"): s.iloc["a"] def test_iloc_array_not_mutating_negative_indices(self): # GH 21867 array_with_neg_numbers = np.array([1, 2, -1]) array_copy = array_with_neg_numbers.copy() df = DataFrame( {"A": [100, 101, 102], "B": [103, 104, 105], "C": [106, 107, 108]}, index=[1, 2, 3], ) df.iloc[array_with_neg_numbers] tm.assert_numpy_array_equal(array_with_neg_numbers, array_copy) df.iloc[:, array_with_neg_numbers] tm.assert_numpy_array_equal(array_with_neg_numbers, array_copy) def test_iloc_getitem_neg_int_can_reach_first_index(self): # GH10547 and GH10779 # negative integers should be able to reach index 0 df = DataFrame({"A": [2, 3, 5], "B": [7, 11, 13]}) s = df["A"] expected = df.iloc[0] result = df.iloc[-3] tm.assert_series_equal(result, expected) expected = df.iloc[[0]] result = df.iloc[[-3]] tm.assert_frame_equal(result, expected) expected = s.iloc[0] result = s.iloc[-3] assert result == expected expected = s.iloc[[0]] result = s.iloc[[-3]] tm.assert_series_equal(result, expected) # check the length 1 Series case highlighted in GH10547 expected = Series(["a"], index=["A"]) result = expected.iloc[[-1]] tm.assert_series_equal(result, expected) def test_iloc_getitem_dups(self): # GH 6766 df1 = DataFrame([{"A": None, "B": 1}, {"A": 2, "B": 2}]) df2 = DataFrame([{"A": 3, "B": 3}, {"A": 4, "B": 4}]) df = concat([df1, df2], axis=1) # cross-sectional indexing result = df.iloc[0, 0] assert isna(result) result = df.iloc[0, :] expected = Series([np.nan, 1, 3, 3], index=["A", "B", "A", "B"], name=0) tm.assert_series_equal(result, expected) def test_iloc_getitem_array(self): df = DataFrame( [ {"A": 1, "B": 2, "C": 3}, {"A": 100, "B": 200, "C": 300}, {"A": 1000, "B": 2000, "C": 3000}, ] ) expected = DataFrame([{"A": 1, "B": 2, "C": 3}]) tm.assert_frame_equal(df.iloc[[0]], expected) expected = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 100, "B": 200, "C": 300}]) tm.assert_frame_equal(df.iloc[[0, 1]], expected) expected = DataFrame([{"B": 2, "C": 3}, {"B": 2000, "C": 3000}], index=[0, 2]) result = df.iloc[[0, 2], [1, 2]] tm.assert_frame_equal(result, expected) def test_iloc_getitem_bool(self): df = DataFrame( [ {"A": 1, "B": 2, "C": 3}, {"A": 100, "B": 200, "C": 300}, {"A": 1000, "B": 2000, "C": 3000}, ] ) expected = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 100, "B": 200, "C": 300}]) result = df.iloc[[True, True, False]] tm.assert_frame_equal(result, expected) expected = DataFrame( [{"A": 1, "B": 2, "C": 3}, {"A": 1000, "B": 2000, "C": 3000}], index=[0, 2] ) result = df.iloc[lambda x: x.index % 2 == 0] tm.assert_frame_equal(result, expected) @pytest.mark.parametrize("index", [[True, False], [True, False, True, False]]) def test_iloc_getitem_bool_diff_len(self, index): # GH26658 s = Series([1, 2, 3]) msg = f"Boolean index has wrong length: {len(index)} instead of {len(s)}" with pytest.raises(IndexError, match=msg): s.iloc[index] def test_iloc_getitem_slice(self): df = DataFrame( [ {"A": 1, "B": 2, "C": 3}, {"A": 100, "B": 200, "C": 300}, {"A": 1000, "B": 2000, "C": 3000}, ] ) expected = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 100, "B": 200, "C": 300}]) result = df.iloc[:2] tm.assert_frame_equal(result, expected) expected = DataFrame([{"A": 100, "B": 200}], index=[1]) result = df.iloc[1:2, 0:2] tm.assert_frame_equal(result, expected) expected = DataFrame( [{"A": 1, "C": 3}, {"A": 100, "C": 300}, {"A": 1000, "C": 3000}] ) result = df.iloc[:, lambda df: [0, 2]] tm.assert_frame_equal(result, expected) def test_iloc_getitem_slice_dups(self): df1 = DataFrame(np.random.randn(10, 4), columns=["A", "A", "B", "B"]) df2 = DataFrame( np.random.randint(0, 10, size=20).reshape(10, 2), columns=["A", "C"] ) # axis=1 df = concat([df1, df2], axis=1) tm.assert_frame_equal(df.iloc[:, :4], df1) tm.assert_frame_equal(df.iloc[:, 4:], df2) df = concat([df2, df1], axis=1) tm.assert_frame_equal(df.iloc[:, :2], df2) tm.assert_frame_equal(df.iloc[:, 2:], df1) exp = concat([df2, df1.iloc[:, [0]]], axis=1) tm.assert_frame_equal(df.iloc[:, 0:3], exp) # axis=0 df = concat([df, df], axis=0) tm.assert_frame_equal(df.iloc[0:10, :2], df2) tm.assert_frame_equal(df.iloc[0:10, 2:], df1) tm.assert_frame_equal(df.iloc[10:, :2], df2) tm.assert_frame_equal(df.iloc[10:, 2:], df1) def test_iloc_setitem(self): df = DataFrame( np.random.randn(4, 4), index=np.arange(0, 8, 2), columns=np.arange(0, 12, 3) ) df.iloc[1, 1] = 1 result = df.iloc[1, 1] assert result == 1 df.iloc[:, 2:3] = 0 expected = df.iloc[:, 2:3] result = df.iloc[:, 2:3] tm.assert_frame_equal(result, expected) # GH5771 s = Series(0, index=[4, 5, 6]) s.iloc[1:2] += 1 expected = Series([0, 1, 0], index=[4, 5, 6]) tm.assert_series_equal(s, expected) def test_iloc_setitem_list(self): # setitem with an iloc list df = DataFrame( np.arange(9).reshape((3, 3)), index=["A", "B", "C"], columns=["A", "B", "C"] ) df.iloc[[0, 1], [1, 2]] df.iloc[[0, 1], [1, 2]] += 100 expected = DataFrame( np.array([0, 101, 102, 3, 104, 105, 6, 7, 8]).reshape((3, 3)), index=["A", "B", "C"], columns=["A", "B", "C"], ) tm.assert_frame_equal(df, expected) def test_iloc_setitem_pandas_object(self): # GH 17193 s_orig = Series([0, 1, 2, 3]) expected = Series([0, -1, -2, 3]) s = s_orig.copy() s.iloc[Series([1, 2])] = [-1, -2] tm.assert_series_equal(s, expected) s = s_orig.copy() s.iloc[Index([1, 2])] = [-1, -2] tm.assert_series_equal(s, expected) def test_iloc_setitem_dups(self): # GH 6766 # iloc with a mask aligning from another iloc df1 = DataFrame([{"A": None, "B": 1}, {"A": 2, "B": 2}]) df2 = DataFrame([{"A": 3, "B": 3}, {"A": 4, "B": 4}]) df = concat([df1, df2], axis=1) expected = df.fillna(3) inds = np.isnan(df.iloc[:, 0]) mask = inds[inds].index df.iloc[mask, 0] = df.iloc[mask, 2] tm.assert_frame_equal(df, expected) # del a dup column across blocks expected = DataFrame({0: [1, 2], 1: [3, 4]}) expected.columns = ["B", "B"] del df["A"] tm.assert_frame_equal(df, expected) # assign back to self df.iloc[[0, 1], [0, 1]] = df.iloc[[0, 1], [0, 1]] tm.assert_frame_equal(df, expected) # reversed x 2 df.iloc[[1, 0], [0, 1]] = df.iloc[[1, 0], [0, 1]].reset_index(drop=True) df.iloc[[1, 0], [0, 1]] = df.iloc[[1, 0], [0, 1]].reset_index(drop=True) tm.assert_frame_equal(df, expected) def test_iloc_setitem_frame_duplicate_columns_multiple_blocks( self, using_array_manager ): # Same as the "assign back to self" check in test_iloc_setitem_dups # but on a DataFrame with multiple blocks df = DataFrame([[0, 1], [2, 3]], columns=["B", "B"]) df.iloc[:, 0] = df.iloc[:, 0].astype("f8") if not using_array_manager: assert len(df._mgr.blocks) == 2 expected = df.copy() # assign back to self df.iloc[[0, 1], [0, 1]] = df.iloc[[0, 1], [0, 1]] tm.assert_frame_equal(df, expected) # TODO: GH#27620 this test used to compare iloc against ix; check if this # is redundant with another test comparing iloc against loc def test_iloc_getitem_frame(self): df = DataFrame( np.random.randn(10, 4), index=range(0, 20, 2), columns=range(0, 8, 2) ) result = df.iloc[2] exp = df.loc[4] tm.assert_series_equal(result, exp) result = df.iloc[2, 2] exp = df.loc[4, 4] assert result == exp # slice result = df.iloc[4:8] expected = df.loc[8:14] tm.assert_frame_equal(result, expected) result = df.iloc[:, 2:3] expected = df.loc[:, 4:5] tm.assert_frame_equal(result, expected) # list of integers result = df.iloc[[0, 1, 3]] expected = df.loc[[0, 2, 6]] tm.assert_frame_equal(result, expected) result = df.iloc[[0, 1, 3], [0, 1]] expected = df.loc[[0, 2, 6], [0, 2]] tm.assert_frame_equal(result, expected) # neg indices result = df.iloc[[-1, 1, 3], [-1, 1]] expected = df.loc[[18, 2, 6], [6, 2]] tm.assert_frame_equal(result, expected) # dups indices result = df.iloc[[-1, -1, 1, 3], [-1, 1]] expected = df.loc[[18, 18, 2, 6], [6, 2]] tm.assert_frame_equal(result, expected) # with index-like s = Series(index=range(1, 5), dtype=object) result = df.iloc[s.index] expected = df.loc[[2, 4, 6, 8]] tm.assert_frame_equal(result, expected) def test_iloc_getitem_labelled_frame(self): # try with labelled frame df = DataFrame( np.random.randn(10, 4), index=list("abcdefghij"), columns=list("ABCD") ) result = df.iloc[1, 1] exp = df.loc["b", "B"] assert result == exp result = df.iloc[:, 2:3] expected = df.loc[:, ["C"]] tm.assert_frame_equal(result, expected) # negative indexing result = df.iloc[-1, -1] exp = df.loc["j", "D"] assert result == exp # out-of-bounds exception msg = "index 5 is out of bounds for axis 0 with size 4" with pytest.raises(IndexError, match=msg): df.iloc[10, 5] # trying to use a label msg = ( r"Location based indexing can only have \[integer, integer " r"slice \(START point is INCLUDED, END point is EXCLUDED\), " r"listlike of integers, boolean array\] types" ) with pytest.raises(ValueError, match=msg): df.iloc["j", "D"] def test_iloc_getitem_doc_issue(self, using_array_manager): # multi axis slicing issue with single block # surfaced in GH 6059 arr = np.random.randn(6, 4) index = date_range("20130101", periods=6) columns = list("ABCD") df = DataFrame(arr, index=index, columns=columns) # defines ref_locs df.describe() result = df.iloc[3:5, 0:2] str(result) result.dtypes expected = DataFrame(arr[3:5, 0:2], index=index[3:5], columns=columns[0:2]) tm.assert_frame_equal(result, expected) # for dups df.columns = list("aaaa") result = df.iloc[3:5, 0:2] str(result) result.dtypes expected = DataFrame(arr[3:5, 0:2], index=index[3:5], columns=list("aa")) tm.assert_frame_equal(result, expected) # related arr = np.random.randn(6, 4) index = list(range(0, 12, 2)) columns = list(range(0, 8, 2)) df = DataFrame(arr, index=index, columns=columns) if not using_array_manager: df._mgr.blocks[0].mgr_locs result = df.iloc[1:5, 2:4] str(result) result.dtypes expected = DataFrame(arr[1:5, 2:4], index=index[1:5], columns=columns[2:4]) tm.assert_frame_equal(result, expected) def test_iloc_setitem_series(self): df = DataFrame( np.random.randn(10, 4), index=list("abcdefghij"), columns=list("ABCD") ) df.iloc[1, 1] = 1 result = df.iloc[1, 1] assert result == 1 df.iloc[:, 2:3] = 0 expected = df.iloc[:, 2:3] result = df.iloc[:, 2:3] tm.assert_frame_equal(result, expected) s = Series(np.random.randn(10), index=range(0, 20, 2)) s.iloc[1] = 1 result = s.iloc[1] assert result == 1 s.iloc[:4] = 0 expected = s.iloc[:4] result = s.iloc[:4] tm.assert_series_equal(result, expected) s = Series([-1] * 6) s.iloc[0::2] = [0, 2, 4] s.iloc[1::2] = [1, 3, 5] result = s expected = Series([0, 1, 2, 3, 4, 5]) tm.assert_series_equal(result, expected) def test_iloc_setitem_list_of_lists(self): # GH 7551 # list-of-list is set incorrectly in mixed vs. single dtyped frames df = DataFrame( {"A": np.arange(5, dtype="int64"), "B": np.arange(5, 10, dtype="int64")} ) df.iloc[2:4] = [[10, 11], [12, 13]] expected = DataFrame({"A": [0, 1, 10, 12, 4], "B": [5, 6, 11, 13, 9]}) tm.assert_frame_equal(df, expected) df = DataFrame( {"A": ["a", "b", "c", "d", "e"], "B": np.arange(5, 10, dtype="int64")} ) df.iloc[2:4] = [["x", 11], ["y", 13]] expected = DataFrame({"A": ["a", "b", "x", "y", "e"], "B": [5, 6, 11, 13, 9]}) tm.assert_frame_equal(df, expected) @pytest.mark.parametrize("indexer", [[0], slice(None, 1, None), np.array([0])]) @pytest.mark.parametrize("value", [["Z"], np.array(["Z"])]) def test_iloc_setitem_with_scalar_index(self, indexer, value): # GH #19474 # assigning like "df.iloc[0, [0]] = ['Z']" should be evaluated # elementwisely, not using "setter('A', ['Z'])". df = DataFrame([[1, 2], [3, 4]], columns=["A", "B"]) df.iloc[0, indexer] = value result = df.iloc[0, 0] assert is_scalar(result) and result == "Z" def test_iloc_mask(self): # GH 3631, iloc with a mask (of a series) should raise df = DataFrame(list(range(5)), index=list("ABCDE"), columns=["a"]) mask = df.a % 2 == 0 msg = "iLocation based boolean indexing cannot use an indexable as a mask" with pytest.raises(ValueError, match=msg): df.iloc[mask] mask.index = range(len(mask)) msg = "iLocation based boolean indexing on an integer type is not available" with pytest.raises(NotImplementedError, match=msg): df.iloc[mask] # ndarray ok result = df.iloc[np.array([True] * len(mask), dtype=bool)] tm.assert_frame_equal(result, df) # the possibilities locs = np.arange(4) nums = 2 ** locs reps = [bin(num) for num in nums] df = DataFrame({"locs": locs, "nums": nums}, reps) expected = { (None, ""): "0b1100", (None, ".loc"): "0b1100", (None, ".iloc"): "0b1100", ("index", ""): "0b11", ("index", ".loc"): "0b11", ("index", ".iloc"): ( "iLocation based boolean indexing cannot use an indexable as a mask" ), ("locs", ""): "Unalignable boolean Series provided as indexer " "(index of the boolean Series and of the indexed " "object do not match).", ("locs", ".loc"): "Unalignable boolean Series provided as indexer " "(index of the boolean Series and of the " "indexed object do not match).", ("locs", ".iloc"): ( "iLocation based boolean indexing on an " "integer type is not available" ), } # UserWarnings from reindex of a boolean mask with catch_warnings(record=True): simplefilter("ignore", UserWarning) for idx in [None, "index", "locs"]: mask = (df.nums > 2).values if idx: mask = Series(mask, list(reversed(getattr(df, idx)))) for method in ["", ".loc", ".iloc"]: try: if method: accessor = getattr(df, method[1:]) else: accessor = df answer = str(bin(accessor[mask]["nums"].sum())) except (ValueError, IndexingError, NotImplementedError) as e: answer = str(e) key = ( idx, method, ) r = expected.get(key) if r != answer: raise AssertionError( f"[{key}] does not match [{answer}], received [{r}]" ) def test_iloc_non_unique_indexing(self): # GH 4017, non-unique indexing (on the axis) df = DataFrame({"A": [0.1] * 3000, "B": [1] * 3000}) idx = np.arange(30) * 99 expected = df.iloc[idx] df3 = concat([df, 2 * df, 3 * df]) result = df3.iloc[idx] tm.assert_frame_equal(result, expected) df2 = DataFrame({"A": [0.1] * 1000, "B": [1] * 1000}) df2 = concat([df2, 2 * df2, 3 * df2]) with pytest.raises(KeyError, match="not in index"): df2.loc[idx] def test_iloc_empty_list_indexer_is_ok(self): df = tm.makeCustomDataframe(5, 2) # vertical empty tm.assert_frame_equal( df.iloc[:, []], df.iloc[:, :0], check_index_type=True, check_column_type=True, ) # horizontal empty tm.assert_frame_equal( df.iloc[[], :], df.iloc[:0, :], check_index_type=True, check_column_type=True, ) # horizontal empty tm.assert_frame_equal( df.iloc[[]], df.iloc[:0, :], check_index_type=True, check_column_type=True ) def test_identity_slice_returns_new_object(self, using_array_manager): # GH13873 original_df = DataFrame({"a": [1, 2, 3]}) sliced_df = original_df.iloc[:] assert sliced_df is not original_df # should be a shallow copy original_df["a"] = [4, 4, 4] if using_array_manager: # TODO(ArrayManager) verify it is expected that the original didn't change # setitem is replacing full column, so doesn't update "viewing" dataframe assert not (sliced_df["a"] == 4).all() else: assert (sliced_df["a"] == 4).all() original_series = Series([1, 2, 3, 4, 5, 6]) sliced_series = original_series.iloc[:] assert sliced_series is not original_series # should also be a shallow copy original_series[:3] = [7, 8, 9] assert all(sliced_series[:3] == [7, 8, 9]) def test_indexing_zerodim_np_array(self): # GH24919 df = DataFrame([[1, 2], [3, 4]]) result = df.iloc[np.array(0)] s = Series([1, 2], name=0) tm.assert_series_equal(result, s) def test_series_indexing_zerodim_np_array(self): # GH24919 s = Series([1, 2]) result = s.iloc[np.array(0)] assert result == 1 @pytest.mark.xfail(reason="https://github.com/pandas-dev/pandas/issues/33457") def test_iloc_setitem_categorical_updates_inplace(self): # Mixed dtype ensures we go through take_split_path in setitem_with_indexer cat = Categorical(["A", "B", "C"]) df = DataFrame({1: cat, 2: [1, 2, 3]}) # This should modify our original values in-place df.iloc[:, 0] = cat[::-1] expected = Categorical(["C", "B", "A"]) tm.assert_categorical_equal(cat, expected) def test_iloc_with_boolean_operation(self): # GH 20627 result = DataFrame([[0, 1], [2, 3], [4, 5], [6, np.nan]]) result.iloc[result.index <= 2] *= 2 expected = DataFrame([[0, 2], [4, 6], [8, 10], [6, np.nan]]) tm.assert_frame_equal(result, expected) result.iloc[result.index > 2] *= 2 expected = DataFrame([[0, 2], [4, 6], [8, 10], [12, np.nan]]) tm.assert_frame_equal(result, expected) result.iloc[[True, True, False, False]] *= 2 expected = DataFrame([[0, 4], [8, 12], [8, 10], [12, np.nan]]) tm.assert_frame_equal(result, expected) result.iloc[[False, False, True, True]] /= 2 expected = DataFrame([[0.0, 4.0], [8.0, 12.0], [4.0, 5.0], [6.0, np.nan]]) tm.assert_frame_equal(result, expected) def test_iloc_getitem_singlerow_slice_categoricaldtype_gives_series(self): # GH#29521 df = DataFrame({"x": Categorical("a b c d e".split())}) result = df.iloc[0] raw_cat = Categorical(["a"], categories=["a", "b", "c", "d", "e"]) expected = Series(raw_cat, index=["x"], name=0, dtype="category") tm.assert_series_equal(result, expected) def test_iloc_getitem_categorical_values(self): # GH#14580 # test iloc() on Series with Categorical data ser = Series([1, 2, 3]).astype("category") # get slice result = ser.iloc[0:2] expected = Series([1, 2]).astype(CategoricalDtype([1, 2, 3])) tm.assert_series_equal(result, expected) # get list of indexes result = ser.iloc[[0, 1]] expected = Series([1, 2]).astype(CategoricalDtype([1, 2, 3])) tm.assert_series_equal(result, expected) # get boolean array result = ser.iloc[[True, False, False]] expected = Series([1]).astype(CategoricalDtype([1, 2, 3])) tm.assert_series_equal(result, expected) @pytest.mark.parametrize("value", [None, NaT, np.nan]) def test_iloc_setitem_td64_values_cast_na(self, value): # GH#18586 series = Series([0, 1, 2], dtype="timedelta64[ns]") series.iloc[0] = value expected = Series([NaT, 1, 2], dtype="timedelta64[ns]") tm.assert_series_equal(series, expected) def test_iloc_setitem_empty_frame_raises_with_3d_ndarray(self): idx = Index([]) obj = DataFrame(np.random.randn(len(idx), len(idx)), index=idx, columns=idx) nd3 = np.random.randint(5, size=(2, 2, 2)) msg = f"Cannot set values with ndim > {obj.ndim}" with pytest.raises(ValueError, match=msg): obj.iloc[nd3] = 0 @pytest.mark.parametrize("indexer", [tm.loc, tm.iloc]) def test_iloc_getitem_read_only_values(self, indexer): # GH#10043 this is fundamentally a test for iloc, but test loc while # we're here rw_array = np.eye(10) rw_df = DataFrame(rw_array) ro_array = np.eye(10) ro_array.setflags(write=False) ro_df = DataFrame(ro_array) tm.assert_frame_equal(indexer(rw_df)[[1, 2, 3]], indexer(ro_df)[[1, 2, 3]]) tm.assert_frame_equal(indexer(rw_df)[[1]], indexer(ro_df)[[1]]) tm.assert_series_equal(indexer(rw_df)[1], indexer(ro_df)[1]) tm.assert_frame_equal(indexer(rw_df)[1:3], indexer(ro_df)[1:3]) def test_iloc_getitem_readonly_key(self): # GH#17192 iloc with read-only array raising TypeError df = DataFrame({"data": np.ones(100, dtype="float64")}) indices = np.array([1, 3, 6]) indices.flags.writeable = False result = df.iloc[indices] expected = df.loc[[1, 3, 6]] tm.assert_frame_equal(result, expected) result = df["data"].iloc[indices] expected = df["data"].loc[[1, 3, 6]] tm.assert_series_equal(result, expected) # TODO(ArrayManager) setting single item with an iterable doesn't work yet # in the "split" path @td.skip_array_manager_not_yet_implemented def test_iloc_assign_series_to_df_cell(self): # GH 37593 df = DataFrame(columns=["a"], index=[0]) df.iloc[0, 0] = Series([1, 2, 3]) expected = DataFrame({"a": [Series([1, 2, 3])]}, columns=["a"], index=[0]) tm.assert_frame_equal(df, expected) @pytest.mark.parametrize("klass", [list, np.array]) def test_iloc_setitem_bool_indexer(self, klass): # GH#36741 df = DataFrame({"flag": ["x", "y", "z"], "value": [1, 3, 4]}) indexer = klass([True, False, False]) df.iloc[indexer, 1] = df.iloc[indexer, 1] * 2 expected = DataFrame({"flag": ["x", "y", "z"], "value": [2, 3, 4]}) tm.assert_frame_equal(df, expected) @pytest.mark.parametrize("indexer", [[1], slice(1, 2)]) def test_iloc_setitem_pure_position_based(self, indexer): # GH#22046 df1 = DataFrame({"a2": [11, 12, 13], "b2": [14, 15, 16]}) df2 = DataFrame({"a": [1, 2, 3], "b": [4, 5, 6], "c": [7, 8, 9]}) df2.iloc[:, indexer] = df1.iloc[:, [0]] expected = DataFrame({"a": [1, 2, 3], "b": [11, 12, 13], "c": [7, 8, 9]}) tm.assert_frame_equal(df2, expected) def test_iloc_setitem_dictionary_value(self): # GH#37728 df = DataFrame({"x": [1, 2], "y": [2, 2]}) rhs = {"x": 9, "y": 99} df.iloc[1] = rhs expected = DataFrame({"x": [1, 9], "y": [2, 99]}) tm.assert_frame_equal(df, expected) # GH#38335 same thing, mixed dtypes df = DataFrame({"x": [1, 2], "y": [2.0, 2.0]}) df.iloc[1] = rhs expected = DataFrame({"x": [1, 9], "y": [2.0, 99.0]}) tm.assert_frame_equal(df, expected) def test_iloc_getitem_float_duplicates(self): df = DataFrame( np.random.randn(3, 3), index=[0.1, 0.2, 0.2], columns=list("abc") ) expect = df.iloc[1:] tm.assert_frame_equal(df.loc[0.2], expect) expect = df.iloc[1:, 0] tm.assert_series_equal(df.loc[0.2, "a"], expect) df.index = [1, 0.2, 0.2] expect = df.iloc[1:] tm.assert_frame_equal(df.loc[0.2], expect) expect = df.iloc[1:, 0] tm.assert_series_equal(df.loc[0.2, "a"], expect) df = DataFrame( np.random.randn(4, 3), index=[1, 0.2, 0.2, 1], columns=list("abc") ) expect = df.iloc[1:-1] tm.assert_frame_equal(df.loc[0.2], expect) expect = df.iloc[1:-1, 0] tm.assert_series_equal(df.loc[0.2, "a"], expect) df.index = [0.1, 0.2, 2, 0.2] expect = df.iloc[[1, -1]] tm.assert_frame_equal(df.loc[0.2], expect) expect = df.iloc[[1, -1], 0] tm.assert_series_equal(df.loc[0.2, "a"], expect) def test_iloc_setitem_custom_object(self): # iloc with an object class TO: def __init__(self, value): self.value = value def __str__(self) -> str: return f"[{self.value}]" __repr__ = __str__ def __eq__(self, other) -> bool: return self.value == other.value def view(self): return self df = DataFrame(index=[0, 1], columns=[0]) df.iloc[1, 0] = TO(1) df.iloc[1, 0] = TO(2) result = DataFrame(index=[0, 1], columns=[0]) result.iloc[1, 0] = TO(2) tm.assert_frame_equal(result, df) # remains object dtype even after setting it back df = DataFrame(index=[0, 1], columns=[0]) df.iloc[1, 0] = TO(1) df.iloc[1, 0] = np.nan result = DataFrame(index=[0, 1], columns=[0]) tm.assert_frame_equal(result, df) def test_iloc_getitem_with_duplicates(self): df = DataFrame(np.random.rand(3, 3), columns=list("ABC"), index=list("aab")) result = df.iloc[0] assert isinstance(result, Series) tm.assert_almost_equal(result.values, df.values[0]) result = df.T.iloc[:, 0] assert isinstance(result, Series) tm.assert_almost_equal(result.values, df.values[0]) def test_iloc_getitem_with_duplicates2(self): # GH#2259 df = DataFrame([[1, 2, 3], [4, 5, 6]], columns=[1, 1, 2]) result = df.iloc[:, [0]] expected = df.take([0], axis=1) tm.assert_frame_equal(result, expected) def test_iloc_interval(self): # GH#17130 df = DataFrame({Interval(1, 2): [1, 2]}) result = df.iloc[0] expected = Series({Interval(1, 2): 1}, name=0) tm.assert_series_equal(result, expected) result = df.iloc[:, 0] expected = Series([1, 2], name=Interval(1, 2)) tm.assert_series_equal(result, expected) result = df.copy() result.iloc[:, 0] += 1 expected = DataFrame({Interval(1, 2): [2, 3]}) tm.assert_frame_equal(result, expected) @pytest.mark.parametrize("indexing_func", [list, np.array]) @pytest.mark.parametrize("rhs_func", [list, np.array]) def test_loc_setitem_boolean_list(self, rhs_func, indexing_func): # GH#20438 testing specifically list key, not arraylike ser = Series([0, 1, 2]) ser.iloc[indexing_func([True, False, True])] = rhs_func([5, 10]) expected = Series([5, 1, 10]) tm.assert_series_equal(ser, expected) df = DataFrame({"a": [0, 1, 2]}) df.iloc[indexing_func([True, False, True])] = rhs_func([[5], [10]]) expected = DataFrame({"a": [5, 1, 10]}) tm.assert_frame_equal(df, expected) class TestILocErrors: # NB: this test should work for _any_ Series we can pass as # series_with_simple_index def test_iloc_float_raises(self, series_with_simple_index, frame_or_series): # GH#4892 # float_indexers should raise exceptions # on appropriate Index types & accessors # this duplicates the code below # but is specifically testing for the error # message obj = series_with_simple_index if frame_or_series is DataFrame: obj = obj.to_frame() msg = "Cannot index by location index with a non-integer key" with pytest.raises(TypeError, match=msg): obj.iloc[3.0] with pytest.raises(IndexError, match=_slice_iloc_msg): obj.iloc[3.0] = 0 def test_iloc_getitem_setitem_fancy_exceptions(self, float_frame): with pytest.raises(IndexingError, match="Too many indexers"): float_frame.iloc[:, :, :] with pytest.raises(IndexError, match="too many indices for array"): # GH#32257 we let numpy do validation, get their exception float_frame.iloc[:, :, :] = 1 # TODO(ArrayManager) "split" path doesn't properly implement DataFrame indexer @td.skip_array_manager_not_yet_implemented def test_iloc_frame_indexer(self): # GH#39004 df = DataFrame({"a": [1, 2, 3]}) indexer = DataFrame({"a": [True, False, True]}) with tm.assert_produces_warning(FutureWarning): df.iloc[indexer] = 1 msg = ( "DataFrame indexer is not allowed for .iloc\n" "Consider using .loc for automatic alignment." ) with pytest.raises(IndexError, match=msg): df.iloc[indexer] class TestILocSetItemDuplicateColumns: def test_iloc_setitem_scalar_duplicate_columns(self): # GH#15686, duplicate columns and mixed dtype df1 = DataFrame([{"A": None, "B": 1}, {"A": 2, "B": 2}]) df2 = DataFrame([{"A": 3, "B": 3}, {"A": 4, "B": 4}]) df = concat([df1, df2], axis=1) df.iloc[0, 0] = -1 assert df.iloc[0, 0] == -1 assert df.iloc[0, 2] == 3 assert df.dtypes.iloc[2] == np.int64 def test_iloc_setitem_list_duplicate_columns(self): # GH#22036 setting with same-sized list df = DataFrame([[0, "str", "str2"]], columns=["a", "b", "b"]) df.iloc[:, 2] = ["str3"] expected = DataFrame([[0, "str", "str3"]], columns=["a", "b", "b"]) tm.assert_frame_equal(df, expected) def test_iloc_setitem_series_duplicate_columns(self): df = DataFrame( np.arange(8, dtype=np.int64).reshape(2, 4), columns=["A", "B", "A", "B"] ) df.iloc[:, 0] = df.iloc[:, 0].astype(np.float64) assert df.dtypes.iloc[2] == np.int64 @pytest.mark.parametrize( ["dtypes", "init_value", "expected_value"], [("int64", "0", 0), ("float", "1.2", 1.2)], ) def test_iloc_setitem_dtypes_duplicate_columns( self, dtypes, init_value, expected_value ): # GH#22035 df = DataFrame([[init_value, "str", "str2"]], columns=["a", "b", "b"]) df.iloc[:, 0] = df.iloc[:, 0].astype(dtypes) expected_df = DataFrame( [[expected_value, "str", "str2"]], columns=["a", "b", "b"] ) tm.assert_frame_equal(df, expected_df) class TestILocCallable: def test_frame_iloc_getitem_callable(self): # GH#11485 df = DataFrame({"X": [1, 2, 3, 4], "Y": list("aabb")}, index=list("ABCD")) # return location res = df.iloc[lambda x: [1, 3]] tm.assert_frame_equal(res, df.iloc[[1, 3]]) res = df.iloc[lambda x: [1, 3], :] tm.assert_frame_equal(res, df.iloc[[1, 3], :]) res = df.iloc[lambda x: [1, 3], lambda x: 0] tm.assert_series_equal(res, df.iloc[[1, 3], 0]) res = df.iloc[lambda x: [1, 3], lambda x: [0]] tm.assert_frame_equal(res, df.iloc[[1, 3], [0]]) # mixture res = df.iloc[[1, 3], lambda x: 0] tm.assert_series_equal(res, df.iloc[[1, 3], 0]) res = df.iloc[[1, 3], lambda x: [0]] tm.assert_frame_equal(res, df.iloc[[1, 3], [0]]) res = df.iloc[lambda x: [1, 3], 0] tm.assert_series_equal(res, df.iloc[[1, 3], 0]) res = df.iloc[lambda x: [1, 3], [0]] tm.assert_frame_equal(res, df.iloc[[1, 3], [0]]) def test_frame_iloc_setitem_callable(self): # GH#11485 df = DataFrame({"X": [1, 2, 3, 4], "Y": list("aabb")}, index=list("ABCD")) # return location res = df.copy() res.iloc[lambda x: [1, 3]] = 0 exp = df.copy() exp.iloc[[1, 3]] = 0 tm.assert_frame_equal(res, exp) res = df.copy() res.iloc[lambda x: [1, 3], :] = -1 exp = df.copy() exp.iloc[[1, 3], :] = -1 tm.assert_frame_equal(res, exp) res = df.copy() res.iloc[lambda x: [1, 3], lambda x: 0] = 5 exp = df.copy() exp.iloc[[1, 3], 0] = 5 tm.assert_frame_equal(res, exp) res = df.copy() res.iloc[lambda x: [1, 3], lambda x: [0]] = 25 exp = df.copy() exp.iloc[[1, 3], [0]] = 25 tm.assert_frame_equal(res, exp) # mixture res = df.copy() res.iloc[[1, 3], lambda x: 0] = -3 exp = df.copy() exp.iloc[[1, 3], 0] = -3 tm.assert_frame_equal(res, exp) res = df.copy() res.iloc[[1, 3], lambda x: [0]] = -5 exp = df.copy() exp.iloc[[1, 3], [0]] = -5 tm.assert_frame_equal(res, exp) res = df.copy() res.iloc[lambda x: [1, 3], 0] = 10 exp = df.copy() exp.iloc[[1, 3], 0] = 10 tm.assert_frame_equal(res, exp) res = df.copy() res.iloc[lambda x: [1, 3], [0]] = [-5, -5] exp = df.copy() exp.iloc[[1, 3], [0]] = [-5, -5] tm.assert_frame_equal(res, exp) class TestILocSeries: def test_iloc(self): ser = Series(np.random.randn(10), index=list(range(0, 20, 2))) for i in range(len(ser)): result = ser.iloc[i] exp = ser[ser.index[i]] tm.assert_almost_equal(result, exp) # pass a slice result = ser.iloc[slice(1, 3)] expected = ser.loc[2:4] tm.assert_series_equal(result, expected) # test slice is a view result[:] = 0 assert (ser[1:3] == 0).all() # list of integers result = ser.iloc[[0, 2, 3, 4, 5]] expected = ser.reindex(ser.index[[0, 2, 3, 4, 5]]) tm.assert_series_equal(result, expected) def test_iloc_getitem_nonunique(self): ser = Series([0, 1, 2], index=[0, 1, 0]) assert ser.iloc[2] == 2 def test_iloc_setitem_pure_position_based(self): # GH#22046 ser1 = Series([1, 2, 3]) ser2 = Series([4, 5, 6], index=[1, 0, 2]) ser1.iloc[1:3] = ser2.iloc[1:3] expected = Series([1, 5, 6]) tm.assert_series_equal(ser1, expected) def test_iloc_nullable_int64_size_1_nan(self): # GH 31861 result = DataFrame({"a": ["test"], "b": [np.nan]}) result.loc[:, "b"] = result.loc[:, "b"].astype("Int64") expected = DataFrame({"a": ["test"], "b": array([NA], dtype="Int64")}) tm.assert_frame_equal(result, expected)
Java
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/usb/usb_policy_allowed_devices.h" #include <string> #include <vector> #include "base/bind.h" #include "base/strings/string_split.h" #include "base/values.h" #include "components/content_settings/core/common/pref_names.h" #include "components/prefs/pref_service.h" #include "services/device/public/mojom/usb_device.mojom.h" #include "services/device/public/mojom/usb_manager.mojom.h" #include "url/gurl.h" namespace { constexpr char kPrefDevicesKey[] = "devices"; constexpr char kPrefUrlsKey[] = "urls"; constexpr char kPrefVendorIdKey[] = "vendor_id"; constexpr char kPrefProductIdKey[] = "product_id"; } // namespace UsbPolicyAllowedDevices::UsbPolicyAllowedDevices(PrefService* pref_service) { pref_change_registrar_.Init(pref_service); // Add an observer for |kManagedWebUsbAllowDevicesForUrls| to call // CreateOrUpdateMap when the value is changed. The lifetime of // |pref_change_registrar_| is managed by this class, therefore it is safe to // use base::Unretained here. pref_change_registrar_.Add( prefs::kManagedWebUsbAllowDevicesForUrls, base::BindRepeating(&UsbPolicyAllowedDevices::CreateOrUpdateMap, base::Unretained(this))); CreateOrUpdateMap(); } UsbPolicyAllowedDevices::~UsbPolicyAllowedDevices() {} bool UsbPolicyAllowedDevices::IsDeviceAllowed( const url::Origin& origin, const device::mojom::UsbDeviceInfo& device_info) { return IsDeviceAllowed( origin, std::make_pair(device_info.vendor_id, device_info.product_id)); } bool UsbPolicyAllowedDevices::IsDeviceAllowed( const url::Origin& origin, const std::pair<int, int>& device_ids) { // Search through each set of URL pair that match the given device. The // keys correspond to the following URL pair sets: // * (vendor_id, product_id): A set corresponding to the exact device. // * (vendor_id, -1): A set corresponding to any device with |vendor_id|. // * (-1, -1): A set corresponding to any device. const std::pair<int, int> set_keys[] = { std::make_pair(device_ids.first, device_ids.second), std::make_pair(device_ids.first, -1), std::make_pair(-1, -1)}; for (const auto& key : set_keys) { const auto entry = usb_device_ids_to_urls_.find(key); if (entry == usb_device_ids_to_urls_.cend()) continue; if (entry->second.find(origin) != entry->second.end()) return true; } return false; } void UsbPolicyAllowedDevices::CreateOrUpdateMap() { const base::Value* pref_value = pref_change_registrar_.prefs()->Get( prefs::kManagedWebUsbAllowDevicesForUrls); usb_device_ids_to_urls_.clear(); // A policy has not been assigned. if (!pref_value) { return; } // The pref value has already been validated by the policy handler, so it is // safe to assume that |pref_value| follows the policy template. for (const auto& item : pref_value->GetList()) { const base::Value* urls_list = item.FindKey(kPrefUrlsKey); std::set<url::Origin> parsed_set; // A urls item can contain a pair of URLs that are delimited by a comma. If // it does not contain a second URL, set the embedding URL to an empty GURL // to signify a wildcard embedded URL. for (const auto& urls_value : urls_list->GetList()) { std::vector<std::string> urls = base::SplitString(urls_value.GetString(), ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); // Skip invalid URL entries. if (urls.empty()) continue; auto requesting_origin = url::Origin::Create(GURL(urls[0])); absl::optional<url::Origin> embedding_origin; if (urls.size() == 2 && !urls[1].empty()) embedding_origin = url::Origin::Create(GURL(urls[1])); // In order to be compatible with legacy (requesting,embedding) entries // without breaking any access specified, we will grant the permission to // the embedder if present because under permission delegation the // top-level origin has the permission. If only the requesting origin is // present, use that instead. auto origin = embedding_origin.has_value() ? embedding_origin.value() : requesting_origin; parsed_set.insert(std::move(origin)); } // Ignore items with empty parsed URLs. if (parsed_set.empty()) continue; // For each device entry in the map, create or update its respective URL // set. const base::Value* devices = item.FindKey(kPrefDevicesKey); for (const auto& device : devices->GetList()) { // A missing ID signifies a wildcard for that ID, so a sentinel value of // -1 is assigned. const base::Value* vendor_id_value = device.FindKey(kPrefVendorIdKey); const base::Value* product_id_value = device.FindKey(kPrefProductIdKey); int vendor_id = vendor_id_value ? vendor_id_value->GetInt() : -1; int product_id = product_id_value ? product_id_value->GetInt() : -1; DCHECK(vendor_id != -1 || product_id == -1); auto key = std::make_pair(vendor_id, product_id); usb_device_ids_to_urls_[key].insert(parsed_set.begin(), parsed_set.end()); } } }
Java
#pragma once #include "scbwdata.h" #include <algorithm> namespace scbw { /// The UnitFinder class is used to efficiently search for units in a certain /// area using StarCraft's internal data structures. class UnitFinder { public: /// Default constructor. UnitFinder(); /// Constructs and searches for all units within the given bounds. UnitFinder(int left, int top, int right, int bottom); /// Searches for all units within the given bounds, using StarCraft's /// internal data structures. This is much more efficient than manually /// looping through the entire unit table or linked list. void search(int left, int top, int right, int bottom); /// Returns the number of units found by UnitFinder::search() call. /// If no searches have been conducted, returns 0. int getUnitCount() const; /// Returns the unit at the given index. Invalid index returns NULL instead. CUnit* getUnit(int index) const; /// Iterates through all units found, calling func() once for each unit. template <class Callback> void forEach(Callback &func) const; /// Returns the first unit for which match() returns true. /// If there are no matches, returns nullptr. template <class Callback> CUnit* getFirst(Callback &match) const; /// Returns the unit for which score() returns the highest nonnegative /// integer. If there are no units, returns nullptr. /// Note: If score() returns a negative value, the unit is ignored. template <class Callback> CUnit* getBest(Callback &score) const; /// Searches the area given by (@p left, @p top, @p right, @p bottom), /// returning the nearest unit to @p sourceUnit for which match(unit) /// evaluates to true. If there are no matches, returns nullptr. /// This does not use unit collision boxes for calculating distances. template <class Callback> static CUnit* getNearestTarget(int left, int top, int right, int bottom, const CUnit* sourceUnit, Callback& match); /// Searches the entire map, returning the nearest unit to @p sourceUnit /// for which match(unit) evaluates to true. If there are no matches, /// returns nullptr. /// This does not use unit collision boxes for calculating distances. template <class Callback> static CUnit* getNearestTarget(const CUnit* sourceUnit, Callback& match); private: //This function is meant to be used by other getNearest() functions. //Do NOT use this function in the game code! template <class Callback> static CUnit* getNearest(int x, int y, int boundsLeft, int boundsTop, int boundsRight, int boundsBottom, UnitFinderData* left, UnitFinderData* top, UnitFinderData* right, UnitFinderData* bottom, Callback &match, const CUnit *sourceUnit); static UnitFinderData* getStartX(); static UnitFinderData* getStartY(); static UnitFinderData* getEndX(); static UnitFinderData* getEndY(); int unitCount; CUnit* units[UNIT_ARRAY_LENGTH]; }; //-------- Template member function definitions --------// template <class Callback> void UnitFinder::forEach(Callback &func) const { for (int i = 0; i < this->getUnitCount(); ++i) func(this->getUnit(i)); } template <class Callback> CUnit* UnitFinder::getFirst(Callback &match) const { for (int i = 0; i < this->getUnitCount(); ++i) if (match(this->getUnit(i))) return this->getUnit(i); return nullptr; } template <class Callback> CUnit* UnitFinder::getBest(Callback &score) const { int bestScore = -1; CUnit *bestUnit = nullptr; for (int i = 0; i < this->getUnitCount(); ++i) { const int score = score(this->getUnit(i)); if (score > bestScore) { bestUnit = this->getUnit(i); bestScore = score; } } return bestUnit; } //-------- UnitFinder::getNearest() family --------// //Based on function @ 0x004E8320 template <class Callback> CUnit* UnitFinder::getNearest(int x, int y, int boundsLeft, int boundsTop, int boundsRight, int boundsBottom, UnitFinderData* left, UnitFinderData* top, UnitFinderData* right, UnitFinderData* bottom, Callback &match, const CUnit *sourceUnit) { using scbw::getDistanceFast; int bestDistance = getDistanceFast(0, 0, std::max(x - boundsLeft, boundsRight - x), std::max(y - boundsTop, boundsBottom - y)); CUnit *bestUnit = nullptr; bool canContinueSearch, hasFoundBestUnit; do { canContinueSearch = false; hasFoundBestUnit = false; //Search to the left if (getStartX() <= left) { CUnit *unit = CUnit::getFromIndex(left->unitIndex); if (boundsLeft <= unit->getX()) { if (boundsTop <= unit->getY() && unit->getY() < boundsBottom) { if (unit != sourceUnit && match(unit)) { int distance = getDistanceFast(x, y, unit->getX(), unit->getY()); if (distance < bestDistance) { bestDistance = distance; bestUnit = unit; hasFoundBestUnit = true; } } } } else left = getStartX() - 1; canContinueSearch = true; --left; } //Search to the right if (right < getEndX()) { CUnit *unit = CUnit::getFromIndex(right->unitIndex); if (unit->getX() < boundsRight) { if (boundsTop <= unit->getY() && unit->getY() < boundsBottom) { if (unit != sourceUnit && match(unit)) { int distance = getDistanceFast(x, y, unit->getX(), unit->getY()); if (distance < bestDistance) { bestDistance = distance; bestUnit = unit; hasFoundBestUnit = true; } } } } else right = getEndX(); canContinueSearch = true; ++right; } //Search upwards if (getStartY() <= top) { CUnit *unit = CUnit::getFromIndex(top->unitIndex); if (boundsTop <= unit->getY()) { if (boundsLeft <= unit->getX() && unit->getX() < boundsRight) { if (unit != sourceUnit && match(unit)) { int distance = getDistanceFast(x, y, unit->getX(), unit->getY()); if (distance < bestDistance) { bestDistance = distance; bestUnit = unit; hasFoundBestUnit = true; } } } } else top = getStartY() - 1; canContinueSearch = true; --top; } //Search downwards if (bottom < getEndY()) { CUnit *unit = CUnit::getFromIndex(bottom->unitIndex); if (unit->getY() < boundsBottom) { if (boundsLeft <= unit->getX() && unit->getX() < boundsRight) { if (unit != sourceUnit && match(unit)) { int distance = getDistanceFast(x, y, unit->getX(), unit->getY()); if (distance < bestDistance) { bestDistance = distance; bestUnit = unit; hasFoundBestUnit = true; } } } } else bottom = getEndY(); canContinueSearch = true; ++bottom; } //Reduce the search bounds if (hasFoundBestUnit) { boundsLeft = std::max(boundsLeft, x - bestDistance); boundsRight = std::min(boundsRight, x + bestDistance); boundsTop = std::max(boundsTop, y - bestDistance); boundsBottom = std::max(boundsBottom, y + bestDistance); } } while (canContinueSearch); return bestUnit; } template <class Callback> CUnit* UnitFinder::getNearestTarget(int left, int top, int right, int bottom, const CUnit* sourceUnit, Callback& match) { UnitFinderData *searchLeft, *searchTop, *searchRight, *searchBottom; //If the unit sprite is hidden if (sourceUnit->sprite->flags & 0x20) { UnitFinderData temp; temp.position = sourceUnit->getX(); searchRight = std::lower_bound(getStartX(), getEndX(), temp); searchLeft = searchRight - 1; temp.position = sourceUnit->getY(); searchBottom = std::lower_bound(getStartY(), getEndY(), temp); searchTop = searchBottom - 1; } else { searchLeft = getStartX() + sourceUnit->finderIndex.right - 1; searchRight = getStartX() + sourceUnit->finderIndex.left + 1; searchTop = getStartY() + sourceUnit->finderIndex.bottom - 1; searchBottom = getStartY() + sourceUnit->finderIndex.top + 1; } return getNearest(sourceUnit->getX(), sourceUnit->getY(), left, top, right, bottom, searchLeft, searchTop, searchRight, searchBottom, match, sourceUnit); } template <class Callback> CUnit* UnitFinder::getNearestTarget(const CUnit* sourceUnit, Callback& match) { return getNearestTarget(0, 0, mapTileSize->width * 32, mapTileSize->height * 32, sourceUnit, match); } } //scbw
Java
#ifndef HEATSHRINK_H #define HEATSHRINK_H #define HEATSHRINK_AUTHOR "Scott Vokes <[email protected]>" #define HEATSHRINK_URL "https://github.com/atomicobject/heatshrink" /* Version 0.4.0 */ #define HEATSHRINK_VERSION_MAJOR 0 #define HEATSHRINK_VERSION_MINOR 4 #define HEATSHRINK_VERSION_PATCH 0 #define HEATSHRINK_MIN_WINDOW_BITS 4 #define HEATSHRINK_MAX_WINDOW_BITS 15 #define HEATSHRINK_MIN_LOOKAHEAD_BITS 3 #define HEATSHRINK_LITERAL_MARKER 0x01 #define HEATSHRINK_BACKREF_MARKER 0x00 #endif
Java
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Aga.Controls.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aga.Controls.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap check { get { object obj = ResourceManager.GetObject("check", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Byte[]. /// </summary> internal static byte[] DVSplit { get { object obj = ResourceManager.GetObject("DVSplit", resourceCulture); return ((byte[])(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Folder { get { object obj = ResourceManager.GetObject("Folder", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap FolderClosed { get { object obj = ResourceManager.GetObject("FolderClosed", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Leaf { get { object obj = ResourceManager.GetObject("Leaf", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Byte[]. /// </summary> internal static byte[] loading_icon { get { object obj = ResourceManager.GetObject("loading_icon", resourceCulture); return ((byte[])(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap minus { get { object obj = ResourceManager.GetObject("minus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap plus { get { object obj = ResourceManager.GetObject("plus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap uncheck { get { object obj = ResourceManager.GetObject("uncheck", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap unknown { get { object obj = ResourceManager.GetObject("unknown", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } } }
Java
<div ng-controller="EditableFormCtrl" id="EditableFormCtrl"> <form editable-form name="editableForm" onaftersave="saveUser()"> <div> <!-- editable username (text with validation) --> <span class="title">User name: </span> <span editable-text="user.name" e-name="name" onbeforesave="checkName($data)" e-required>{{ user.name || 'empty' }}</span> </div> <div> <!-- editable status (select-local) --> <span class="title">Status: </span> <span editable-select="user.status" e-name="status" e-ng-options="s.value as s.text for s in statuses"> {{ (statuses | filter:{value: user.status})[0].text || 'Not set' }} </span> </div> <div> <!-- editable group (select-remote) --> <span class="title">Group: </span> <span editable-select="user.group" e-name="group" onshow="loadGroups()" e-ng-options="g.id as g.text for g in groups"> {{ showGroup() }} </span> </div> <div class="buttons"> <!-- button to show form --> <button type="button" class="btn btn-default" ng-click="editableForm.$show()" ng-show="!editableForm.$visible"> Edit </button> <!-- buttons to submit / cancel form --> <span ng-show="editableForm.$visible"> <button type="submit" class="btn btn-primary" ng-disabled="editableForm.$waiting"> Save </button> <button type="button" class="btn btn-default" ng-disabled="editableForm.$waiting" ng-click="editableForm.$cancel()"> Cancel </button> </span> </div> </form> </div>
Java
<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>sd-reader: partition.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">sd-reader </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.6.1 --> <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>Modules</span></a></li> <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">partition.c File Reference<div class="ingroups"><a class="el" href="group__partition.html">Partition table support</a></div></div> </div> </div><!--header--> <div class="contents"> <p>Partition table implementation (license: GPLv2 or LGPLv2.1) <a href="#details">More...</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structpartition__struct.html">partition_struct</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__partition.html#ga3125023db4e9d50adb8489c71fa1be68">partition_open</a> (<a class="el" href="group__partition.html#ga52bf225ef74664c7e596f23d8d807c85">device_read_t</a> device_read, <a class="el" href="group__partition.html#gae89b7507ba9787aec1e8974c5f2b30a4">device_read_interval_t</a> device_read_interval, <a class="el" href="group__partition.html#ga8d202a969ce237e5876b1f1f506df53f">device_write_t</a> device_write, <a class="el" href="group__partition.html#ga032324dc0780bc62cd91a8856ffe0800">device_write_interval_t</a> device_write_interval, int8_t index)</td></tr> <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a partition. <a href="group__partition.html#ga3125023db4e9d50adb8489c71fa1be68"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__partition.html#ga128f4363de35c81a9ff8026d4db289d2">partition_close</a> (struct <a class="el" href="structpartition__struct.html">partition_struct</a> *partition)</td></tr> <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes a partition. <a href="group__partition.html#ga128f4363de35c81a9ff8026d4db289d2"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Partition table implementation (license: GPLv2 or LGPLv2.1) </p> <dl class="author"><dt><b>Author:</b></dt><dd>Roland Riegel </dd></dl> </div></div><!-- contents --> <hr class="footer"/><address class="footer"><small> Generated on Tue Jun 12 2012 20:06:45 for sd-reader by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.7.6.1 </small></address> </body> </html>
Java
/* * Copyright (c) 2012-2014 The Khronos Group Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Materials, and to * permit persons to whom the Materials are 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 Materials. * * THE MATERIALS ARE 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 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ #define LOG_TAG "Node_JNI" #include "openvx_jni.h" namespace android { //************************************************************************** // LOCAL VARIABLES //************************************************************************** //************************************************************************** // EXPORTED FUNCTIONS //************************************************************************** static void Initialize(JNIEnv *env, jobject obj, jlong g, jlong k) { vx_graph graph = (vx_graph)g; vx_kernel kernel = (vx_kernel)k; vx_node n = vxCreateGenericNode(graph, kernel); SetHandle(env, obj, NodeClass, parentName, g); SetHandle(env, obj, NodeClass, handleName, (jlong)n); } static void Finalize(JNIEnv *env, jobject obj) { vx_node n = (vx_node)GetHandle(env, obj, NodeClass, handleName); vxReleaseNode(&n); SetHandle(env, obj, NodeClass, handleName, 0); } static jobject getParameter(JNIEnv *env, jobject obj, jint i) { vx_node n = (vx_node)GetHandle(env, obj, NodeClass, handleName); jclass c = env->FindClass(ParameterClass); jmethodID id = env->GetMethodID(c, "<init>", "(JI)"OBJECT(Parameter)); jobject p = env->NewObject(c, id, (jlong)n, i); return p; } static jint setParameter(JNIEnv *env, jobject obj, jint index, jlong ref) { vx_node n = (vx_node)GetHandle(env, obj, NodeClass, handleName); return vxSetParameterByIndex(n, index, (vx_reference)ref); } static JNINativeMethod method_table[] = { // { name, signature, function_pointer } { "create", "(JJ)V", (void *)Initialize }, { "destroy", "()V", (void *)Finalize }, { "getParameter", "(I)"OBJECT(Parameter), (void *)getParameter }, { "_setParameter", "(IJ)I", (void *)setParameter }, }; int register_org_khronos_OpenVX_Node(JNIEnv *env) { PrintJNITable(LOG_TAG, NodeClass, method_table, NELEM(method_table)); return jniRegisterNativeMethods(env, NodeClass, method_table, NELEM(method_table)); } };
Java
# frozen_string_literal: true require 'csv' class CourseStudentsCsvBuilder def initialize(course) @course = course end def generate_csv csv_data = [CSV_HEADERS] courses_users.each do |courses_user| csv_data << row(courses_user) end CSV.generate { |csv| csv_data.each { |line| csv << line } } end private def courses_users @course.courses_users.where(role: CoursesUsers::Roles::STUDENT_ROLE).includes(:user) end CSV_HEADERS = %w[ username enrollment_timestamp registered_at revisions_during_project mainspace_bytes_added userpace_bytes_added draft_space_bytes_added registered_during_project ].freeze def row(courses_user) row = [courses_user.user.username] row << courses_user.created_at row << courses_user.user.registered_at row << courses_user.revision_count row << courses_user.character_sum_ms row << courses_user.character_sum_us row << courses_user.character_sum_draft row << newbie?(courses_user.user) end def newbie?(user) (@[email protected]).cover? user.registered_at end end
Java
<?php class Typography_test extends CI_TestCase { public function set_up() { $this->type = new Mock_Libraries_Typography(); $this->ci_instance('type', $this->type); } // -------------------------------------------------------------------- /** * Tests the format_characters() function. * * this can and should grow. */ public function test_format_characters() { $strs = array( '"double quotes"' => '&#8220;double quotes&#8221;', '"testing" in "theory" that is' => '&#8220;testing&#8221; in &#8220;theory&#8221; that is', "Here's what I'm" => 'Here&#8217;s what I&#8217;m', '&' => '&amp;', '&amp;' => '&amp;', '&nbsp;' => '&nbsp;', '--' => '&#8212;', 'foo...' => 'foo&#8230;', 'foo..' => 'foo..', 'foo...bar.' => 'foo&#8230;bar.', 'test. new' => 'test.&nbsp; new', ); foreach ($strs as $str => $expected) { $this->assertEquals($expected, $this->type->format_characters($str)); } } // -------------------------------------------------------------------- public function test_nl2br_except_pre() { $str = <<<EOH Hello, I'm a happy string with some new lines. I like to skip. Jump and sing. <pre> I am inside a pre tag. Please don't mess with me. k? </pre> That's my story and I'm sticking to it. The End. EOH; $expected = <<<EOH Hello, I'm a happy string with some new lines. <br /> <br /> I like to skip.<br /> <br /> Jump<br /> <br /> and sing.<br /> <br /> <pre> I am inside a pre tag. Please don't mess with me. k? </pre><br /> <br /> That's my story and I'm sticking to it.<br /> <br /> The End. EOH; $this->assertEquals($expected, $this->type->nl2br_except_pre($str)); } // -------------------------------------------------------------------- public function test_auto_typography() { $this->_blank_string(); $this->_standardize_new_lines(); $this->_reduce_linebreaks(); $this->_remove_comments(); $this->_protect_pre(); $this->_no_opening_block(); $this->_protect_braced_quotes(); } // -------------------------------------------------------------------- private function _blank_string() { // Test blank string $this->assertEquals('', $this->type->auto_typography('')); } // -------------------------------------------------------------------- private function _standardize_new_lines() { $strs = array( "My string\rhas return characters" => "<p>My string<br />\nhas return characters</p>", 'This one does not!' => '<p>This one does not!</p>' ); foreach ($strs as $str => $expect) { $this->assertEquals($expect, $this->type->auto_typography($str)); } } // -------------------------------------------------------------------- private function _reduce_linebreaks() { $str = "This has way too many linebreaks.\n\n\n\nSee?"; $expect = "<p>This has way too many linebreaks.</p>\n\n<p>See?</p>"; $this->assertEquals($expect, $this->type->auto_typography($str, TRUE)); } // -------------------------------------------------------------------- private function _remove_comments() { $str = '<!-- I can haz comments? --> But no!'; $expect = '<p><!-- I can haz comments? -->&nbsp; But no!</p>'; $this->assertEquals($expect, $this->type->auto_typography($str)); } // -------------------------------------------------------------------- private function _protect_pre() { $str = '<p>My Sentence</p><pre>var_dump($this);</pre>'; $expect = '<p>My Sentence</p><pre>var_dump($this);</pre>'; $this->assertEquals($expect, $this->type->auto_typography($str)); } // -------------------------------------------------------------------- private function _no_opening_block() { $str = 'My Sentence<pre>var_dump($this);</pre>'; $expect = '<p>My Sentence</p><pre>var_dump($this);</pre>'; $this->assertEquals($expect, $this->type->auto_typography($str)); } // -------------------------------------------------------------------- public function _protect_braced_quotes() { $this->type->protect_braced_quotes = TRUE; $str = 'Test {parse="foobar"}'; $expect = '<p>Test {parse="foobar"}</p>'; $this->assertEquals($expect, $this->type->auto_typography($str)); $this->type->protect_braced_quotes = FALSE; $str = 'Test {parse="foobar"}'; $expect = '<p>Test {parse=&#8220;foobar&#8221;}</p>'; $this->assertEquals($expect, $this->type->auto_typography($str)); } }
Java
/* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "net.h" #include "ioloop.h" #include "hash.h" #include "strescape.h" #include "fd-set-nonblock.h" #include "login-proxy-state.h" #include <unistd.h> #include <fcntl.h> #define NOTIFY_RETRY_REOPEN_MSECS (60*1000) struct login_proxy_state { HASH_TABLE(struct login_proxy_record *, struct login_proxy_record *) hash; pool_t pool; const char *notify_path; int notify_fd; struct timeout *to_reopen; }; static int login_proxy_state_notify_open(struct login_proxy_state *state); static unsigned int login_proxy_record_hash(const struct login_proxy_record *rec) { return net_ip_hash(&rec->ip) ^ rec->port; } static int login_proxy_record_cmp(struct login_proxy_record *rec1, struct login_proxy_record *rec2) { if (!net_ip_compare(&rec1->ip, &rec2->ip)) return 1; return (int)rec1->port - (int)rec2->port; } struct login_proxy_state *login_proxy_state_init(const char *notify_path) { struct login_proxy_state *state; state = i_new(struct login_proxy_state, 1); state->pool = pool_alloconly_create("login proxy state", 1024); hash_table_create(&state->hash, state->pool, 0, login_proxy_record_hash, login_proxy_record_cmp); state->notify_path = p_strdup(state->pool, notify_path); state->notify_fd = -1; return state; } static void login_proxy_state_close(struct login_proxy_state *state) { if (state->notify_fd != -1) { if (close(state->notify_fd) < 0) i_error("close(%s) failed: %m", state->notify_path); state->notify_fd = -1; } } void login_proxy_state_deinit(struct login_proxy_state **_state) { struct login_proxy_state *state = *_state; *_state = NULL; if (state->to_reopen != NULL) timeout_remove(&state->to_reopen); login_proxy_state_close(state); hash_table_destroy(&state->hash); pool_unref(&state->pool); i_free(state); } struct login_proxy_record * login_proxy_state_get(struct login_proxy_state *state, const struct ip_addr *ip, unsigned int port) { struct login_proxy_record *rec, key; memset(&key, 0, sizeof(key)); key.ip = *ip; key.port = port; rec = hash_table_lookup(state->hash, &key); if (rec == NULL) { rec = p_new(state->pool, struct login_proxy_record, 1); rec->ip = *ip; rec->port = port; hash_table_insert(state->hash, rec, rec); } return rec; } static void login_proxy_state_reopen(struct login_proxy_state *state) { timeout_remove(&state->to_reopen); (void)login_proxy_state_notify_open(state); } static int login_proxy_state_notify_open(struct login_proxy_state *state) { if (state->to_reopen != NULL) { /* reopen later */ return -1; } state->notify_fd = open(state->notify_path, O_WRONLY); if (state->notify_fd == -1) { i_error("open(%s) failed: %m", state->notify_path); state->to_reopen = timeout_add(NOTIFY_RETRY_REOPEN_MSECS, login_proxy_state_reopen, state); return -1; } fd_set_nonblock(state->notify_fd, TRUE); return 0; } static bool login_proxy_state_try_notify(struct login_proxy_state *state, const char *user) { unsigned int len; ssize_t ret; if (state->notify_fd == -1) { if (login_proxy_state_notify_open(state) < 0) return TRUE; } T_BEGIN { const char *cmd; cmd = t_strconcat(str_tabescape(user), "\n", NULL); len = strlen(cmd); ret = write(state->notify_fd, cmd, len); } T_END; if (ret != (ssize_t)len) { if (ret < 0) i_error("write(%s) failed: %m", state->notify_path); else { i_error("write(%s) wrote partial update", state->notify_path); } login_proxy_state_close(state); /* retry sending */ return FALSE; } return TRUE; } void login_proxy_state_notify(struct login_proxy_state *state, const char *user) { if (!login_proxy_state_try_notify(state, user)) (void)login_proxy_state_try_notify(state, user); }
Java
/** * window.c.ProjectSuggestedContributions component * A Project-show page helper to show suggested amounts of contributions * * Example of use: * view: () => { * ... * m.component(c.ProjectSuggestedContributions, {project: project}) * ... * } */ import m from 'mithril'; import _ from 'underscore'; const projectSuggestedContributions = { view(ctrl, args) { const project = args.project(); const suggestionUrl = amount => `/projects/${project.project_id}/contributions/new?amount=${amount}`, suggestedValues = [10, 25, 50, 100]; return m('#suggestions', _.map(suggestedValues, amount => project ? m(`a[href="${suggestionUrl(amount)}"].card-reward.card-big.card-secondary.u-marginbottom-20`, [ m('.fontsize-larger', `R$ ${amount}`) ]) : '')); } }; export default projectSuggestedContributions;
Java
""" Copyright (c) 2012-2016 Ben Croston 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 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. """ from RPi._GPIO import * VERSION = '0.6.3'
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1"> <title>org.apache.commons.net.pop3 (Commons Net 3.3 API)</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="org.apache.commons.net.pop3 (Commons Net 3.3 API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.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-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="../../../../../org/apache/commons/net/ntp/package-summary.html">Prev Package</a></li> <li><a href="../../../../../org/apache/commons/net/smtp/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/commons/net/pop3/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All 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> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 title="Package" class="title">Package&nbsp;org.apache.commons.net.pop3</h1> <div class="docSummary"> <div class="block">POP3 and POP3S mail</div> </div> <p>See:&nbsp;<a href="#package_description">Description</a></p> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> <caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Class</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/ExtendedPOP3Client.html" title="class in org.apache.commons.net.pop3">ExtendedPOP3Client</a></td> <td class="colLast"> <div class="block">A POP3 Cilent class with protocol and authentication extensions support (RFC2449 and RFC2195).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/POP3.html" title="class in org.apache.commons.net.pop3">POP3</a></td> <td class="colLast"> <div class="block">The POP3 class is not meant to be used by itself and is provided only so that you may easily implement your own POP3 client if you so desire.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/POP3Client.html" title="class in org.apache.commons.net.pop3">POP3Client</a></td> <td class="colLast"> <div class="block">The POP3Client class implements the client side of the Internet POP3 Protocol defined in RFC 1939.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/POP3Command.html" title="class in org.apache.commons.net.pop3">POP3Command</a></td> <td class="colLast"> <div class="block">POP3Command stores POP3 command code constants.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/POP3MessageInfo.html" title="class in org.apache.commons.net.pop3">POP3MessageInfo</a></td> <td class="colLast"> <div class="block">POP3MessageInfo is used to return information about messages stored on a POP3 server.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/POP3Reply.html" title="class in org.apache.commons.net.pop3">POP3Reply</a></td> <td class="colLast"> <div class="block">POP3Reply stores POP3 reply code constants.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/POP3SClient.html" title="class in org.apache.commons.net.pop3">POP3SClient</a></td> <td class="colLast"> <div class="block">POP3 over SSL processing.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation"> <caption><span>Enum Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Enum</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../org/apache/commons/net/pop3/ExtendedPOP3Client.AUTH_METHOD.html" title="enum in org.apache.commons.net.pop3">ExtendedPOP3Client.AUTH_METHOD</a></td> <td class="colLast"> <div class="block">The enumeration of currently-supported authentication methods.</div> </td> </tr> </tbody> </table> </li> </ul> <a name="package_description"> <!-- --> </a> <h2 title="Package org.apache.commons.net.pop3 Description">Package org.apache.commons.net.pop3 Description</h2> <div class="block">POP3 and POP3S mail</div> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.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-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="../../../../../org/apache/commons/net/ntp/package-summary.html">Prev Package</a></li> <li><a href="../../../../../org/apache/commons/net/smtp/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/commons/net/pop3/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All 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> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2001-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> </body> </html>
Java
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading; namespace GSoft.Dynamite.Collections { /// <summary> /// A list that supports synchronized reading and writing. /// </summary> /// <typeparam name="T">The type of object contained in the list.</typeparam> [Serializable] [SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "This is actually a list.")] public class ConcurrentList<T> : IList<T>, IList { #region Fields private readonly List<T> _underlyingList = new List<T>(); [NonSerialized] private volatile ReaderWriterLockSlim _lock; #endregion #region Properties /// <summary> /// Gets the number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </summary> /// <returns> /// The number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </returns> public int Count { get { this.Lock.EnterReadLock(); try { return this._underlyingList.Count; } finally { this.Lock.ExitReadLock(); } } } /// <summary> /// Gets a value indicating whether the <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only. /// </summary> /// <returns>true if the <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only; otherwise, false. /// </returns> public bool IsReadOnly { get { this.Lock.EnterReadLock(); try { return ((IList)this._underlyingList).IsReadOnly; } finally { this.Lock.ExitReadLock(); } } } /// <summary> /// Gets a value indicating whether the <see cref="T:System.Collections.IList"/> has a fixed size. /// </summary> /// <returns>true if the <see cref="T:System.Collections.IList"/> has a fixed size; otherwise, false.</returns> [SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Justification = "Not part of IList of T.")] bool IList.IsFixedSize { get { return false; } } /// <summary> /// Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection"/> is synchronized (thread safe). /// </summary> /// <returns>true if access to the <see cref="T:System.Collections.ICollection"/> is synchronized (thread safe); otherwise, false.</returns> [SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Justification = "Not part of IList of T.")] bool ICollection.IsSynchronized { get { return true; } } /// <summary> /// Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection"/>. /// </summary> /// <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection"/>.</returns> [SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Justification = "Not part of IList of T.")] object ICollection.SyncRoot { get { return this; } } /// <summary> /// Gets the lock used for synchronization. /// </summary> private ReaderWriterLockSlim Lock { get { if (this._lock == null) { lock (this) { if (this._lock == null) { this._lock = new ReaderWriterLockSlim(); } } } return this._lock; } } /// <summary> /// Gets or sets the element at the specified index. /// </summary> /// <param name="index">The index to add the item at.</param> /// <returns> /// The element at the specified index. /// </returns> /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception> /// <exception cref="T:System.NotSupportedException"> /// The property is set and the <see cref="T:System.Collections.Generic.IList`1"/> is read-only. /// </exception> object IList.this[int index] { get { return this[index]; } set { this[index] = (T)value; } } /// <summary> /// Gets or sets the element at the specified index. /// </summary> /// <param name="index">The index to add the item at.</param> /// <returns> /// The element at the specified index. /// </returns> /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception> /// <exception cref="T:System.NotSupportedException">The property is set and the <see cref="T:System.Collections.Generic.IList`1"/> is read-only.</exception> public T this[int index] { get { this.Lock.EnterReadLock(); try { return this._underlyingList[index]; } finally { this.Lock.ExitReadLock(); } } set { this.Lock.EnterWriteLock(); try { this._underlyingList[index] = value; } finally { this.Lock.ExitWriteLock(); } } } #endregion #region Methods /// <summary> /// Determines the index of a specific item in the <see cref="T:System.Collections.Generic.IList`1"/>. /// </summary> /// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.IList`1"/>.</param> /// <returns> /// The index of <paramref name="item"/> if found in the list; otherwise, -1. /// </returns> public int IndexOf(T item) { this.Lock.EnterReadLock(); try { return this._underlyingList.IndexOf(item); } finally { this.Lock.ExitReadLock(); } } /// <summary> /// Inserts an item to the <see cref="T:System.Collections.Generic.IList`1"/> at the specified index. /// </summary> /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param> /// <param name="item">The object to insert into the <see cref="T:System.Collections.Generic.IList`1"/>.</param> /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception> /// <exception cref="T:System.NotSupportedException"> /// The <see cref="T:System.Collections.Generic.IList`1"/> is read-only. /// </exception> public void Insert(int index, T item) { this.Lock.EnterWriteLock(); try { this._underlyingList.Insert(index, item); } finally { this.Lock.ExitWriteLock(); } } /// <summary> /// Removes the <see cref="T:System.Collections.Generic.IList`1"/> item at the specified index. /// </summary> /// <param name="index">The zero-based index of the item to remove.</param> /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>. /// </exception> /// <exception cref="T:System.NotSupportedException"> /// The <see cref="T:System.Collections.Generic.IList`1"/> is read-only. /// </exception> public void RemoveAt(int index) { this.Lock.EnterWriteLock(); try { this._underlyingList.RemoveAt(index); } finally { this.Lock.ExitWriteLock(); } } /// <summary> /// Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </summary> /// <param name="item">The object to add to the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param> /// <exception cref="T:System.NotSupportedException"> /// The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only. /// </exception> public void Add(T item) { this.Lock.EnterWriteLock(); try { this._underlyingList.Add(item); } finally { this.Lock.ExitWriteLock(); } } /// <summary> /// Removes all items from the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </summary> /// <exception cref="T:System.NotSupportedException"> /// The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only. /// </exception> public void Clear() { this.Lock.EnterWriteLock(); try { this._underlyingList.Clear(); } finally { this.Lock.ExitWriteLock(); } } /// <summary> /// Determines whether the <see cref="T:System.Collections.Generic.ICollection`1"/> contains a specific value. /// </summary> /// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param> /// <returns> /// true if <paramref name="item"/> is found in the <see cref="T:System.Collections.Generic.ICollection`1"/>; otherwise, false. /// </returns> public bool Contains(T item) { this.Lock.EnterReadLock(); try { return this._underlyingList.Contains(item); } finally { this.Lock.ExitReadLock(); } } /// <summary> /// Copies to. /// </summary> /// <param name="array">The array.</param> /// <param name="arrayIndex">Index of the array.</param> public void CopyTo(T[] array, int arrayIndex) { ((IList)this).CopyTo(array, arrayIndex); } /// <summary> /// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </summary> /// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param> /// <returns> /// true if <paramref name="item"/> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1"/>; otherwise, false. This method also returns false if <paramref name="item"/> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1"/>. /// </returns> /// <exception cref="T:System.NotSupportedException"> /// The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only. /// </exception> public bool Remove(T item) { this.Lock.EnterWriteLock(); try { return this._underlyingList.Remove(item); } finally { this.Lock.ExitWriteLock(); } } /// <summary> /// Returns an enumerator that iterates through the collection. /// </summary> /// <returns> /// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection. /// </returns> public virtual IEnumerator<T> GetEnumerator() { this.Lock.EnterReadLock(); return new ReadLockedEnumerator<T>(this.Lock, this._underlyingList.GetEnumerator()); } /// <summary> /// Adds an item to the <see cref="T:System.Collections.IList"/>. /// </summary> /// <param name="value">The object to add to the <see cref="T:System.Collections.IList"/>.</param> /// <returns> /// The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection, /// </returns> /// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IList"/> is read-only.-or- The <see cref="T:System.Collections.IList"/> has a fixed size. </exception> int IList.Add(object value) { this.Lock.EnterWriteLock(); try { return ((IList)this._underlyingList).Add(value); } finally { this.Lock.ExitWriteLock(); } } /// <summary> /// Determines whether the <see cref="T:System.Collections.IList"/> contains a specific value. /// </summary> /// <param name="value">The object to locate in the <see cref="T:System.Collections.IList"/>.</param> /// <returns> /// true if the <see cref="T:System.Object"/> is found in the <see cref="T:System.Collections.IList"/>; otherwise, false. /// </returns> bool IList.Contains(object value) { return this.Contains((T)value); } /// <summary> /// Determines the index of a specific item in the <see cref="T:System.Collections.IList"/>. /// </summary> /// <param name="value">The object to locate in the <see cref="T:System.Collections.IList"/>.</param> /// <returns> /// The index of <paramref name="value"/> if found in the list; otherwise, -1. /// </returns> int IList.IndexOf(object value) { return this.IndexOf((T)value); } /// <summary> /// Inserts an item to the <see cref="T:System.Collections.IList"/> at the specified index. /// </summary> /// <param name="index">The zero-based index at which <paramref name="value"/> should be inserted.</param> /// <param name="value">The object to insert into the <see cref="T:System.Collections.IList"/>.</param> /// <exception cref="T:System.ArgumentOutOfRangeException"> /// <paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.IList"/>. </exception> /// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IList"/> is read-only.-or- The <see cref="T:System.Collections.IList"/> has a fixed size. </exception> /// <exception cref="T:System.NullReferenceException"> /// <paramref name="value"/> is null reference in the <see cref="T:System.Collections.IList"/>.</exception> void IList.Insert(int index, object value) { this.Insert(index, (T)value); } /// <summary> /// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.IList"/>. /// </summary> /// <param name="value">The object to remove from the <see cref="T:System.Collections.IList"/>.</param> /// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IList"/> is read-only.-or- The <see cref="T:System.Collections.IList"/> has a fixed size. </exception> void IList.Remove(object value) { this.Remove((T)value); } /// <summary> /// Copies the elements of the <see cref="T:System.Collections.ICollection"/> to an <see cref="T:System.Array"/>, starting at a particular <see cref="T:System.Array"/> index. /// </summary> /// <param name="array">The one-dimensional <see cref="T:System.Array"/> that is the destination of the elements copied from <see cref="T:System.Collections.ICollection"/>. The <see cref="T:System.Array"/> must have zero-based indexing.</param> /// <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="array"/> is null. </exception> /// <exception cref="T:System.ArgumentOutOfRangeException"> /// <paramref name="index"/> is less than zero. </exception> /// <exception cref="T:System.ArgumentException"> /// <paramref name="array"/> is multidimensional.-or- The number of elements in the source <see cref="T:System.Collections.ICollection"/> is greater than the available space from <paramref name="index"/> to the end of the destination <paramref name="array"/>. </exception> /// <exception cref="T:System.ArgumentException">The type of the source <see cref="T:System.Collections.ICollection"/> cannot be cast automatically to the type of the destination <paramref name="array"/>. </exception> void ICollection.CopyTo(Array array, int index) { this.Lock.EnterReadLock(); try { ((IList)this._underlyingList).CopyTo(array, index); } finally { this.Lock.ExitReadLock(); } } /// <summary> /// Returns an enumerator that iterates through a collection. /// </summary> /// <returns> /// An <see cref="T:System.Collections.IEnumerator"/> object that can be used to iterate through the collection. /// </returns> IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumerator(); } #endregion #region Nested classes /// <summary> /// An enumerator that releases a read lock when Disposing. /// </summary> /// <typeparam name="TItem">The type of the item.</typeparam> private class ReadLockedEnumerator<TItem> : IEnumerator<TItem> { private readonly ReaderWriterLockSlim _syncRoot; private readonly IEnumerator<TItem> _underlyingEnumerator; /// <summary> /// Initializes a new instance of the <see cref="ConcurrentList&lt;T&gt;.ReadLockedEnumerator&lt;TItem&gt;"/> class. /// </summary> /// <param name="syncRoot">The sync root.</param> /// <param name="underlyingEnumerator">The underlying enumerator.</param> public ReadLockedEnumerator(ReaderWriterLockSlim syncRoot, IEnumerator<TItem> underlyingEnumerator) { this._syncRoot = syncRoot; this._underlyingEnumerator = underlyingEnumerator; } /// <summary> /// Gets the element in the collection at the current position of the enumerator. /// </summary> /// <returns> /// The element in the collection at the current position of the enumerator. /// </returns> public TItem Current { get { return this._underlyingEnumerator.Current; } } /// <summary> /// Gets the element in the collection at the current position of the enumerator. /// </summary> /// <returns> /// The element in the collection at the current position of the enumerator. /// </returns> object IEnumerator.Current { get { return this.Current; } } /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { this._syncRoot.ExitReadLock(); } /// <summary> /// Advances the enumerator to the next element of the collection. /// </summary> /// <returns> /// true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. /// </returns> /// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception> public bool MoveNext() { return this._underlyingEnumerator.MoveNext(); } /// <summary> /// Sets the enumerator to its initial position, which is before the first element in the collection. /// </summary> /// <exception cref="T:System.InvalidOperationException">The collection was modified after the enumerator was created. </exception> public void Reset() { this._underlyingEnumerator.Reset(); } } #endregion } }
Java
<?php namespace Oro\Bundle\IntegrationBundle\Provider; use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration; interface SyncProcessorInterface { /** * @param Integration $integration * @param $connector * @param array $connectorParameters * * @return bool */ public function process(Integration $integration, $connector, array $connectorParameters = []); }
Java
<!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 (version 1.7.0_17) on Sun Nov 03 15:35:48 CET 2013 --> <title>Uses of Class com.badlogic.gdx.utils.ObjectFloatMap.Values (libgdx API)</title> <meta name="date" content="2013-11-03"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class com.badlogic.gdx.utils.ObjectFloatMap.Values (libgdx API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><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><a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.Values.html" title="class in com.badlogic.gdx.utils">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../overview-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 class="aboutLanguage"><em> libgdx API <style> body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt } pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif } h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold } .TableHeadingColor { background:#EEEEFF; } a { text-decoration:none } a:hover { text-decoration:underline } a:link, a:visited { color:blue } table { border:0px } .TableRowColor td:first-child { border-left:1px solid black } .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black } hr { border:0px; border-bottom:1px solid #333366; } </style> </em></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/badlogic/gdx/utils/class-use/ObjectFloatMap.Values.html" target="_top">Frames</a></li> <li><a href="ObjectFloatMap.Values.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All 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> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class com.badlogic.gdx.utils.ObjectFloatMap.Values" class="title">Uses of Class<br>com.badlogic.gdx.utils.ObjectFloatMap.Values</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectFloatMap.Values</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.badlogic.gdx.utils">com.badlogic.gdx.utils</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="com.badlogic.gdx.utils"> <!-- --> </a> <h3>Uses of <a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectFloatMap.Values</a> in <a href="../../../../../com/badlogic/gdx/utils/package-summary.html">com.badlogic.gdx.utils</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../com/badlogic/gdx/utils/package-summary.html">com.badlogic.gdx.utils</a> that return <a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectFloatMap.Values</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectFloatMap.Values</a></code></td> <td class="colLast"><span class="strong">ObjectFloatMap.</span><code><strong><a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.html#values()">values</a></strong>()</code> <div class="block">Returns an iterator for the values in the map.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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><a href="../../../../../com/badlogic/gdx/utils/ObjectFloatMap.Values.html" title="class in com.badlogic.gdx.utils">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../overview-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 class="aboutLanguage"><em>libgdx API</em></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/badlogic/gdx/utils/class-use/ObjectFloatMap.Values.html" target="_top">Frames</a></li> <li><a href="ObjectFloatMap.Values.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All 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> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small> <div style="font-size:9pt"><i> Copyright &copy; 2010-2013 Mario Zechner ([email protected]), Nathan Sweet ([email protected]) </i></div> </small></p> </body> </html>
Java
import { get } from '../get' export function getSearchData(page, cityName, category, keyword) { const keywordStr = keyword ? '/' + keyword : '' const result = get('/api/search/' + page + '/' + cityName + '/' + category + keywordStr) return result }
Java
/*global define*/ /*jslint white:true,browser:true*/ define([ 'bluebird', // CDN 'kb_common/html', // LOCAL 'common/ui', 'common/runtime', 'common/events', 'common/props', // Wrapper for inputs './inputWrapperWidget', 'widgets/appWidgets/fieldWidget', // Display widgets 'widgets/appWidgets/paramDisplayResolver' ], function ( Promise, html, UI, Runtime, Events, Props, //Wrappers RowWidget, FieldWidget, ParamResolver ) { 'use strict'; var t = html.tag, form = t('form'), span = t('span'), div = t('div'); function factory(config) { var runtime = Runtime.make(), parentBus = config.bus, cellId = config.cellId, workspaceInfo = config.workspaceInfo, container, ui, bus, places, model = Props.make(), inputBusses = [], settings = { showAdvanced: null }, paramResolver = ParamResolver.make(); // DATA /* * The input control widget is selected based on these parameters: * - data type - (text, int, float, workspaceObject (ref, name) * - input app - input, select */ // RENDERING function makeFieldWidget(parameterSpec, value) { var bus = runtime.bus().makeChannelBus(null, 'Params view input bus comm widget'), inputWidget = paramResolver.getWidgetFactory(parameterSpec); inputBusses.push(bus); // An input widget may ask for the current model value at any time. bus.on('sync', function () { parentBus.emit('parameter-sync', { parameter: parameterSpec.id() }); }); parentBus.listen({ key: { type: 'update', parameter: parameterSpec.id() }, handle: function (message) { bus.emit('update', { value: message.value }); } }); // Just pass the update along to the input widget. // TODO: commented out, is it even used? // parentBus.listen({ // test: function (message) { // var pass = (message.type === 'update' && message.parameter === parameterSpec.id()); // return pass; // }, // handle: function (message) { // bus.send(message); // } // }); return FieldWidget.make({ inputControlFactory: inputWidget, showHint: true, useRowHighight: true, initialValue: value, parameterSpec: parameterSpec, bus: bus, workspaceId: workspaceInfo.id }); } function renderAdvanced() { var advancedInputs = container.querySelectorAll('[data-advanced-parameter]'); if (advancedInputs.length === 0) { return; } var removeClass = (settings.showAdvanced ? 'advanced-parameter-hidden' : 'advanced-parameter-showing'), addClass = (settings.showAdvanced ? 'advanced-parameter-showing' : 'advanced-parameter-hidden'); for (var i = 0; i < advancedInputs.length; i += 1) { var input = advancedInputs[i]; input.classList.remove(removeClass); input.classList.add(addClass); } // How many advanaced? // Also update the button var button = container.querySelector('[data-button="toggle-advanced"]'); button.innerHTML = (settings.showAdvanced ? 'Hide Advanced' : 'Show Advanced (' + advancedInputs.length + ' hidden)'); // Also update the } function renderLayout() { var events = Events.make(), content = form({dataElement: 'input-widget-form'}, [ ui.buildPanel({ type: 'default', classes: 'kb-panel-light', body: [ ui.makeButton('Show Advanced', 'toggle-advanced', {events: events}) ] }), ui.buildPanel({ title: 'Inputs', body: div({dataElement: 'input-fields'}), classes: ['kb-panel-container'] }), ui.buildPanel({ title: span(['Parameters', span({dataElement: 'advanced-hidden'})]), body: div({dataElement: 'parameter-fields'}), classes: ['kb-panel-container'] }), ui.buildPanel({ title: 'Outputs', body: div({dataElement: 'output-fields'}), classes: ['kb-panel-container'] }) ]); return { content: content, events: events }; } // MESSAGE HANDLERS function doAttach(node) { container = node; ui = UI.make({ node: container, bus: bus }); var layout = renderLayout(); container.innerHTML = layout.content; layout.events.attachEvents(container); places = { inputFields: ui.getElement('input-fields'), outputFields: ui.getElement('output-fields'), parameterFields: ui.getElement('parameter-fields'), advancedParameterFields: ui.getElement('advanced-parameter-fields') }; } // EVENTS function attachEvents() { bus.on('reset-to-defaults', function () { inputBusses.forEach(function (inputBus) { inputBus.send({ type: 'reset-to-defaults' }); }); }); bus.on('toggle-advanced', function () { settings.showAdvanced = !settings.showAdvanced; renderAdvanced(); }); } // LIFECYCLE API function renderParameters(params) { var widgets = []; // First get the app specs, which is stashed in the model, // with the parameters returned. // Separate out the params into the primary groups. var params = model.getItem('parameters'), inputParams = params.filter(function (spec) { return (spec.spec.ui_class === 'input'); }), outputParams = params.filter(function (spec) { return (spec.spec.ui_class === 'output'); }), parameterParams = params.filter(function (spec) { return (spec.spec.ui_class === 'parameter'); }); return Promise.resolve() .then(function () { if (inputParams.length === 0) { places.inputFields.innerHTML = span({style: {fontStyle: 'italic'}}, 'No input objects for this app'); } else { return Promise.all(inputParams.map(function (spec) { var fieldWidget = makeFieldWidget(spec, model.getItem(['params', spec.name()])), rowWidget = RowWidget.make({widget: fieldWidget, spec: spec}), rowNode = document.createElement('div'); places.inputFields.appendChild(rowNode); widgets.push(rowWidget); rowWidget.attach(rowNode); })); } }) .then(function () { if (outputParams.length === 0) { places.outputFields.innerHTML = span({style: {fontStyle: 'italic'}}, 'No output objects for this app'); } else { return Promise.all(outputParams.map(function (spec) { var fieldWidget = makeFieldWidget(spec, model.getItem(['params', spec.name()])), rowWidget = RowWidget.make({widget: fieldWidget, spec: spec}), rowNode = document.createElement('div'); places.outputFields.appendChild(rowNode); widgets.push(rowWidget); rowWidget.attach(rowNode); })); } }) .then(function () { if (parameterParams.length === 0) { ui.setContent('parameter-fields', span({style: {fontStyle: 'italic'}}, 'No parameters for this app')); } else { return Promise.all(parameterParams.map(function (spec) { var fieldWidget = makeFieldWidget(spec, model.getItem(['params', spec.name()])), rowWidget = RowWidget.make({widget: fieldWidget, spec: spec}), rowNode = document.createElement('div'); places.parameterFields.appendChild(rowNode); widgets.push(rowWidget); rowWidget.attach(rowNode); })); } }) .then(function () { return Promise.all(widgets.map(function (widget) { return widget.start(); })); }) .then(function () { return Promise.all(widgets.map(function (widget) { return widget.run(params); })); }) .then(function () { renderAdvanced(); }); } function start() { // send parent the ready message return Promise.try(function () { parentBus.emit('ready'); // parent will send us our initial parameters parentBus.on('run', function (message) { doAttach(message.node); model.setItem('parameters', message.parameters); // we then create our widgets renderParameters() .then(function () { // do something after success attachEvents(); }) .catch(function (err) { // do somethig with the error. console.error('ERROR in start', err); }); }); }); } function stop() { return Promise.try(function () { // unregister listerrs... }); } // CONSTRUCTION bus = runtime.bus().makeChannelBus(null, 'params view own bus'); return { start: start, stop: stop, bus: function () { return bus; } }; } return { make: function (config) { return factory(config); } }; });
Java
#!/bin/bash FN="ALL_1.32.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.12/data/experiment/src/contrib/ALL_1.32.0.tar.gz" "https://bioarchive.galaxyproject.org/ALL_1.32.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-all/bioconductor-all_1.32.0_src_all.tar.gz" ) MD5="a7181423086d1ea752a3e417ff1063c0" # Use a staging area in the conda dir rather than temp dirs, both to avoid # permission issues as well as to have things downloaded in a predictable # manner. STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $STAGING TARBALL=$STAGING/$FN SUCCESS=0 for URL in ${URLS[@]}; do curl $URL > $TARBALL [[ $? == 0 ]] || continue # Platform-specific md5sum checks. if [[ $(uname -s) == "Linux" ]]; then if md5sum -c <<<"$MD5 $TARBALL"; then SUCCESS=1 break fi else if [[ $(uname -s) == "Darwin" ]]; then if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then SUCCESS=1 break fi fi fi done if [[ $SUCCESS != 1 ]]; then echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" printf '%s\n' "${URLS[@]}" exit 1 fi # Install and clean up R CMD INSTALL --library=$PREFIX/lib/R/library $TARBALL rm $TARBALL rmdir $STAGING
Java
/* css Zen Garden submission 145 - 'Paravion', by Emiliano Pennisi, http://www.peamarte.it/01/metro.html */ /* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */ /* All associated graphics copyright 2004, Emiliano Pennisi */ /* Added: Dec. 16th, 2004 */ /* IMPORTANT */ /* This design is not a template. You may not reproduce it elsewhere without the designer's written permission. However, feel free to study the CSS and use techniques you learn from it elsewhere. */ body{ font-family: "Book Antiqua",Georgia,"MS Sans Serif", Geneva, sans-serif; background: #A3181E url(bg_body.gif) fixed repeat-x; margin: 0; text-align: center; margin: 0; padding: 0; height: 100%; } acronym { color: #A3181E; font-weight: bold; } /*h3 rules*/ div#linkList h3 span{ font-size: 16px; background: #A3181E; border-bottom: 2px solid white; color: White; margin-left: 5px; margin-bottom: 0; padding: 3px; width: 185px; display: block; } #preamble h3 span,#supportingText h3 span{ font-family: "Courier New", Courier, monospace; background: url(h3bg.gif) no-repeat 6px 0; color: #A3181E; font-size: 20px; letter-spacing: -1px; padding-left: 35px; } div#linkList h3{ font-family: "Book Antiqua",Times, Helvetica, sans-serif; font-weight: bold; } /*link*/ #preamble a, #supportingText a,#linkList a{ color: #2B497B; font-weight: bold; } #preamble a:hover,#supportingText a:hover{ background: #2B497B; color: White; text-decoration: none; } /*Style for linkList acronym*/ div#linkList acronym { background: #A3181E; color: White; } /*child selector only for compliant mode*/ body>div#container{ height: auto; min-height: 100%; } /*container*/ div#container{ position: relative; height: 100%; background: url(bg_container.gif); margin-left: auto; margin-right: auto; border-right: 3px solid white; border-left: 3px solid white; border-bottom: 20px solid white; width: 650px; text-align: left; font-size: 0.8em; } #pageHeader { background: url(head.gif) no-repeat; height: 452px; margin: 0 0 30px 0; } #pageHeader h1,#pageHeader h2{ display: none; } /*Hide quicksummary*/ #quickSummary .p2 a{ color: #A3181E; } #quickSummary p.p1 span{ display: none; } #quickSummary p.p2 { font-size: 0.9em; line-height: 12px; position: absolute; top: 275px; left: 235px; padding: 0 0 8px 0; width: 200px; text-transform: uppercase; font-weight: bold; border-top: 1px dashed #000; padding-top: 2px; } #preamble,#supportingText{ position: relative; margin-left: 250px; margin-top: -30px; width: 400px; } /*child selector only for compliant mode*/ div#preamble,div#supportingText{ background: url(st_bg.gif); } div#preamble,#supportingText{ padding: 10px; margin-bottom: 10px; width: 370px; /*Start Tantek Box Model Hack*/ voice-family: "\"}\""; voice-family: inherit; width: 350px; } /*child selector only for compliant mode*/ body > div#preamble,#supportingText{ width: 350px; } /**************************Navigation**********************************/ #linkList{ font-family: Georgia,"MS Sans Serif", Geneva, sans-serif; background: url(linklist_bg.jpg); padding: 10px; width: 220px; position: absolute; top: 450px; margin-left: 15px; /*Start Tantek Box Model Hack*/ voice-family: "\"}\""; voice-family: inherit; width: 200px; } #linkList li { color: #fff; } #linkList ul { list-style: none; margin: 5px; margin-top: -20px; padding: 0px; border-top: 10px solid #CAD2DE; background: #2B497B; } #linkList li { color: #000; border-bottom: 1px dotted #fff; padding: 0.2em 10px; line-height: 15px; } #linkList li:hover { background: #A3181E; } #container > #linkList ul li a:hover{ color: White; } #linkList ul li a:hover{ color: #A3181E; } #linkList li a { font-size: 10px; display: block; color: #fff; font-weight: bold; text-decoration: none; text-transform: uppercase; } #linkList li a:hover { color: #fff; } #linkList li a.c:hover { color: #fff; } #lselect ul li{ color: White; } #lselect ul li a.c{ font-weight: bold; display: inline; color: White; text-transform: none; } /*Start Footer rules*/ #footer { font-family: Georgia,"MS Sans Serif", Geneva, sans-serif; margin: 0 -5px -5px; border-top: 5px solid #FFF; background-color: #A3181E; padding: 10px; text-transform: uppercase; text-align: right; } #footer a{ font-size: 9px; color: #fff; font-weight: bold; padding: 3px; text-decoration: none; border-right: 1px solid white; padding: 0 5px 0 0; } /*End of code*/
Java
package com.hearthsim.card.basic.spell; import com.hearthsim.card.spellcard.SpellTargetableCard; import com.hearthsim.event.effect.EffectCharacter; import com.hearthsim.event.effect.EffectCharacterBuffTemp; import com.hearthsim.event.filter.FilterCharacter; import com.hearthsim.event.filter.FilterCharacterTargetedSpell; public class HeroicStrike extends SpellTargetableCard { private final static EffectCharacter effect = new EffectCharacterBuffTemp(4); /** * Constructor * * Defaults to hasBeenUsed = false */ public HeroicStrike() { super(); } @Override public FilterCharacter getTargetableFilter() { return FilterCharacterTargetedSpell.SELF; } /** * Heroic Strike * * Gives the hero +4 attack this turn * * * * @param side * @param boardState The BoardState before this card has performed its action. It will be manipulated and returned. * * @return The boardState is manipulated and returned */ @Override public EffectCharacter getTargetableEffect() { return HeroicStrike.effect; } }
Java
module SS::Reference::Site extend ActiveSupport::Concern extend SS::Translation included do cattr_accessor :site_required, instance_accessor: false self.site_required = true attr_accessor :cur_site belongs_to :site, class_name: "SS::Site" validates :site_id, presence: true, if: ->{ self.class.site_required } before_validation :set_site_id, if: ->{ @cur_site } end module ClassMethods # define scope by class method instead of scope to be able to override by subclass def site(site) where(site_id: site.id) end end private def set_site_id self.site_id ||= @cur_site.id end end
Java
#! /bin/sh # SPDX-License-Identifier: BSD-3-Clause # Copyright 2015 6WIND S.A. # Do some basic checks in MAINTAINERS file cd $(dirname $0)/.. # speed up by ignoring Unicode details export LC_ALL=C # Get files matching paths with wildcards and / meaning recursing files () # <path> [<path> ...] { if [ -z "$1" ] ; then return fi if [ -r .git ] ; then git ls-files "$1" else find $1 -type f | sed 's,^\./,,' fi | # if not ended by / if ! echo "$1" | grep -q '/[[:space:]]*$' ; then # filter out deeper directories sed "/\(\/[^/]*\)\{$(($(echo "$1" | grep -o / | wc -l) + 1))\}/d" else cat fi # next path shift files "$@" } # Get all files matching F: and X: fields parse_fx () # <index file> { IFS=' ' # parse each line excepted underlining for line in $( (sed '/^-\+$/d' $1 ; echo) | sed 's,^$,§,') ; do if echo "$line" | grep -q '^§$' ; then # empty line delimit end of section include_files=$(files $flines) exclude_files=$(files $xlines) match=$(aminusb "$include_files" "$exclude_files") if [ -n "$include_files" ] ; then printf "# $title " maintainers=$(echo "$maintainers" | sed -r 's,.*<(.*)>.*,\1,') maintainers=$(printf "$maintainers" | sed -e 's,^,<,' -e 's,$,>,') echo $maintainers fi if [ -n "$match" ] ; then echo "$match" fi # flush section unset maintainers unset flines unset xlines elif echo "$line" | grep -q '^[A-Z]: ' ; then # maintainer maintainers=$(add_line_to_if "$line" "$maintainers" 'M: ') # file matching pattern flines=$(add_line_to_if "$line" "$flines" 'F: ') # file exclusion pattern xlines=$(add_line_to_if "$line" "$xlines" 'X: ') else # assume it is a title title="$line" fi done } # Check patterns in F: and X: check_fx () # <index file> { IFS=' ' for line in $(sed -n 's,^[FX]: ,,p' $1 | tr '*' '#') ; do line=$(printf "$line" | tr '#' '*') match=$(files "$line") if [ -z "$match" ] ; then echo "$line" fi done } # Add a line to a set of lines if it begins with right pattern add_line_to_if () # <new line> <lines> <head pattern> { ( echo "$2" echo "$1" | sed -rn "s,^$3(.*),\1,p" ) | sed '/^$/d' } # Subtract two sets of lines aminusb () # <lines a> <lines b> { printf "$1\n$2\n$2" | sort | uniq -u | sed '/^$/d' } printf 'sections: ' parsed=$(parse_fx MAINTAINERS) echo "$parsed" | grep -c '^#' printf 'with maintainer: ' echo "$parsed" | grep -c '^#.*@' printf 'maintainers: ' grep '^M:.*<' MAINTAINERS | sort -u | wc -l echo echo '##########' echo '# orphan areas' echo '##########' echo "$parsed" | sed -rn 's,^#([^@]*)$,\1,p' | uniq echo echo '##########' echo '# files not listed' echo '##########' all=$(files ./) listed=$(echo "$parsed" | sed '/^#/d' | sort -u) aminusb "$all" "$listed" echo echo '##########' echo '# wrong patterns' echo '##########' check_fx MAINTAINERS # TODO: check overlaps
Java
<!DOCTYPE html> <html> <head> <title>NEJ实例 - 计数器</title> <meta charset="utf-8" /> <script> function log(msg){ var div = document.createElement('div'); div.innerHTML = msg; document.body.appendChild(div); } </script> </head> <body> <textarea id="abc" style="width:300px;height:200px" onclick="b();"></textarea> <input type="button" value="show" onclick="a();"/> <script src="../../../define.js"></script> <script> NEJ.define([ '../cursor.js' ],function(_e){ var xx; var tx = document.getElementById('abc'); tx.onbeforedeactivate = function(){ xx = _e._$cursor(tx); }; window.a = function(){ var p = xx||_e._$cursor(tx), v = tx.value, t = '[表情]'; tx.value = v.substr(0, p.start)+t+ v.substring(p.end); _e._$cursor(tx,p.start+ t.length); xx = null; }; window.b = function(){ log(_e._$lineno(tx)); }; }); </script> </body> </html>
Java
TARGET?=tests .PHONY: docs flake8 example test coverage docs: cd docs; make html open docs/_build/html/index.html flake8: flake8 --ignore=W999 two_factor example tests example: DJANGO_SETTINGS_MODULE=example.settings PYTHONPATH=. \ django-admin.py runserver test: DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \ django-admin.py test ${TARGET} coverage: coverage erase DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \ coverage run --branch --source=two_factor \ `which django-admin.py` test ${TARGET} coverage combine coverage html coverage report tx-pull: tx pull -a cd two_factor; django-admin.py compilemessages cd example; django-admin.py compilemessages tx-push: cd two_factor; django-admin.py makemessages -l en cd example; django-admin.py makemessages -l en tx push -s
Java
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net; using Mindscape.Raygun4Net.Messages; using System.Threading; using System.Reflection; using Mindscape.Raygun4Net.Builders; namespace Mindscape.Raygun4Net { public class RaygunClient : RaygunClientBase { private readonly string _apiKey; private readonly List<Type> _wrapperExceptions = new List<Type>(); /// <summary> /// Initializes a new instance of the <see cref="RaygunClient" /> class. /// </summary> /// <param name="apiKey">The API key.</param> public RaygunClient(string apiKey) { _apiKey = apiKey; _wrapperExceptions.Add(typeof(TargetInvocationException)); } /// <summary> /// Initializes a new instance of the <see cref="RaygunClient" /> class. /// Uses the ApiKey specified in the config file. /// </summary> public RaygunClient() : this(RaygunSettings.Settings.ApiKey) { } protected bool ValidateApiKey() { if (string.IsNullOrEmpty(_apiKey)) { System.Diagnostics.Debug.WriteLine("ApiKey has not been provided, exception will not be logged"); return false; } return true; } /// <summary> /// Gets or sets the username/password credentials which are used to authenticate with the system default Proxy server, if one is set /// and requires credentials. /// </summary> public ICredentials ProxyCredentials { get; set; } /// <summary> /// Gets or sets an IWebProxy instance which can be used to override the default system proxy server settings /// </summary> public IWebProxy WebProxy { get; set; } /// <summary> /// Adds a list of outer exceptions that will be stripped, leaving only the valuable inner exception. /// This can be used when a wrapper exception, e.g. TargetInvocationException or HttpUnhandledException, /// contains the actual exception as the InnerException. The message and stack trace of the inner exception will then /// be used by Raygun for grouping and display. The above two do not need to be added manually, /// but if you have other wrapper exceptions that you want stripped you can pass them in here. /// </summary> /// <param name="wrapperExceptions">Exception types that you want removed and replaced with their inner exception.</param> public void AddWrapperExceptions(params Type[] wrapperExceptions) { foreach (Type wrapper in wrapperExceptions) { if (!_wrapperExceptions.Contains(wrapper)) { _wrapperExceptions.Add(wrapper); } } } /// <summary> /// Specifies types of wrapper exceptions that Raygun should send rather than stripping out and sending the inner exception. /// This can be used to remove the default wrapper exceptions (TargetInvocationException and HttpUnhandledException). /// </summary> /// <param name="wrapperExceptions">Exception types that should no longer be stripped away.</param> public void RemoveWrapperExceptions(params Type[] wrapperExceptions) { foreach (Type wrapper in wrapperExceptions) { _wrapperExceptions.Remove(wrapper); } } /// <summary> /// Transmits an exception to Raygun.io synchronously, using the version number of the originating assembly. /// </summary> /// <param name="exception">The exception to deliver.</param> public override void Send(Exception exception) { Send(exception, null, (IDictionary)null, null); } /// <summary> /// Transmits an exception to Raygun.io synchronously specifying a list of string tags associated /// with the message for identification. This uses the version number of the originating assembly. /// </summary> /// <param name="exception">The exception to deliver.</param> /// <param name="tags">A list of strings associated with the message.</param> public void Send(Exception exception, IList<string> tags) { Send(exception, tags, (IDictionary)null, null); } /// <summary> /// Transmits an exception to Raygun.io synchronously specifying a list of string tags associated /// with the message for identification, as well as sending a key-value collection of custom data. /// This uses the version number of the originating assembly. /// </summary> /// <param name="exception">The exception to deliver.</param> /// <param name="tags">A list of strings associated with the message.</param> /// <param name="userCustomData">A key-value collection of custom data that will be added to the payload.</param> public void Send(Exception exception, IList<string> tags, IDictionary userCustomData) { Send(exception, tags, userCustomData, null); } /// <summary> /// Transmits an exception to Raygun.io synchronously specifying a list of string tags associated /// with the message for identification, as well as sending a key-value collection of custom data. /// This uses the version number of the originating assembly. /// </summary> /// <param name="exception">The exception to deliver.</param> /// <param name="tags">A list of strings associated with the message.</param> /// <param name="userCustomData">A key-value collection of custom data that will be added to the payload.</param> /// <param name="userInfo">Information about the user including the identity string.</param> public void Send(Exception exception, IList<string> tags, IDictionary userCustomData, RaygunIdentifierMessage userInfo) { if (CanSend(exception)) { StripAndSend(exception, tags, userCustomData, userInfo, null); FlagAsSent(exception); } } /// <summary> /// Asynchronously transmits a message to Raygun.io. /// </summary> /// <param name="exception">The exception to deliver.</param> public void SendInBackground(Exception exception) { SendInBackground(exception, null, (IDictionary)null, null); } /// <summary> /// Asynchronously transmits an exception to Raygun.io. /// </summary> /// <param name="exception">The exception to deliver.</param> /// <param name="tags">A list of strings associated with the message.</param> public void SendInBackground(Exception exception, IList<string> tags) { SendInBackground(exception, tags, (IDictionary)null, null); } /// <summary> /// Asynchronously transmits an exception to Raygun.io. /// </summary> /// <param name="exception">The exception to deliver.</param> /// <param name="tags">A list of strings associated with the message.</param> /// <param name="userCustomData">A key-value collection of custom data that will be added to the payload.</param> public void SendInBackground(Exception exception, IList<string> tags, IDictionary userCustomData) { SendInBackground(exception, tags, userCustomData, null); } /// <summary> /// Asynchronously transmits an exception to Raygun.io. /// </summary> /// <param name="exception">The exception to deliver.</param> /// <param name="tags">A list of strings associated with the message.</param> /// <param name="userCustomData">A key-value collection of custom data that will be added to the payload.</param> /// <param name="userInfo">Information about the user including the identity string.</param> public void SendInBackground(Exception exception, IList<string> tags, IDictionary userCustomData, RaygunIdentifierMessage userInfo) { DateTime? currentTime = DateTime.UtcNow; if (CanSend(exception)) { ThreadPool.QueueUserWorkItem(c => { try { StripAndSend(exception, tags, userCustomData, userInfo, currentTime); } catch (Exception) { // This will swallow any unhandled exceptions unless we explicitly want to throw on error. // Otherwise this can bring the whole process down. if (RaygunSettings.Settings.ThrowOnError) { throw; } } }); FlagAsSent(exception); } } /// <summary> /// Asynchronously transmits a message to Raygun.io. /// </summary> /// <param name="raygunMessage">The RaygunMessage to send. This needs its OccurredOn property /// set to a valid DateTime and as much of the Details property as is available.</param> public void SendInBackground(RaygunMessage raygunMessage) { ThreadPool.QueueUserWorkItem(c => Send(raygunMessage)); } protected RaygunMessage BuildMessage(Exception exception, IList<string> tags, IDictionary userCustomData) { return BuildMessage(exception, tags, userCustomData, null, null); } protected RaygunMessage BuildMessage(Exception exception, IList<string> tags, IDictionary userCustomData, RaygunIdentifierMessage userInfoMessage) { return BuildMessage(exception, tags, userCustomData, userInfoMessage, null); } protected RaygunMessage BuildMessage(Exception exception, IList<string> tags, IDictionary userCustomData, RaygunIdentifierMessage userInfoMessage, DateTime? currentTime) { var message = RaygunMessageBuilder.New .SetEnvironmentDetails() .SetTimeStamp(currentTime) .SetMachineName(Environment.MachineName) .SetExceptionDetails(exception) .SetClientDetails() .SetVersion(ApplicationVersion) .SetTags(tags) .SetUserCustomData(userCustomData) .SetUser(userInfoMessage ?? UserInfo ?? (!String.IsNullOrEmpty(User) ? new RaygunIdentifierMessage(User) : null)) .Build(); return message; } private void StripAndSend(Exception exception, IList<string> tags, IDictionary userCustomData, RaygunIdentifierMessage userInfo, DateTime? currentTime) { foreach (Exception e in StripWrapperExceptions(exception)) { Send(BuildMessage(e, tags, userCustomData, userInfo, currentTime)); } } protected IEnumerable<Exception> StripWrapperExceptions(Exception exception) { if (exception != null && _wrapperExceptions.Any(wrapperException => exception.GetType() == wrapperException && exception.InnerException != null)) { AggregateException aggregate = exception as AggregateException; if (aggregate != null) { foreach (Exception e in aggregate.InnerExceptions) { foreach (Exception ex in StripWrapperExceptions(e)) { yield return ex; } } } else { foreach (Exception e in StripWrapperExceptions(exception.InnerException)) { yield return e; } } } else { yield return exception; } } /// <summary> /// Posts a RaygunMessage to the Raygun.io api endpoint. /// </summary> /// <param name="raygunMessage">The RaygunMessage to send. This needs its OccurredOn property /// set to a valid DateTime and as much of the Details property as is available.</param> public override void Send(RaygunMessage raygunMessage) { if (ValidateApiKey()) { bool canSend = OnSendingMessage(raygunMessage); if (canSend) { using (var client = CreateWebClient()) { try { var message = SimpleJson.SerializeObject(raygunMessage); client.UploadString(RaygunSettings.Settings.ApiEndpoint, message); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine(string.Format("Error Logging Exception to Raygun.io {0}", ex.Message)); if (RaygunSettings.Settings.ThrowOnError) { throw; } } } } } } protected WebClient CreateWebClient() { var client = new WebClient(); client.Headers.Add("X-ApiKey", _apiKey); client.Headers.Add("content-type", "application/json; charset=utf-8"); client.Encoding = System.Text.Encoding.UTF8; if (WebProxy != null) { client.Proxy = WebProxy; } else if (WebRequest.DefaultWebProxy != null) { Uri proxyUri = WebRequest.DefaultWebProxy.GetProxy(new Uri(RaygunSettings.Settings.ApiEndpoint.ToString())); if (proxyUri != null && proxyUri.AbsoluteUri != RaygunSettings.Settings.ApiEndpoint.ToString()) { client.Proxy = new WebProxy(proxyUri, false); if (ProxyCredentials == null) { client.UseDefaultCredentials = true; client.Proxy.Credentials = CredentialCache.DefaultCredentials; } else { client.UseDefaultCredentials = false; client.Proxy.Credentials = ProxyCredentials; } } } return client; } } }
Java
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "ProfileService_winrt.h" #include "Utils_WinRT.h" using namespace pplx; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Platform; using namespace Platform::Collections; using namespace Microsoft::Xbox::Services::System; using namespace xbox::services::social; using namespace xbox::services; NAMESPACE_MICROSOFT_XBOX_SERVICES_SOCIAL_BEGIN ProfileService::ProfileService( _In_ profile_service cppObj ): m_cppObj(std::move(cppObj)) { } IAsyncOperation<XboxUserProfile^>^ ProfileService::GetUserProfileAsync( _In_ String^ xboxUserId ) { auto task = m_cppObj.get_user_profile( STRING_T_FROM_PLATFORM_STRING(xboxUserId) ) .then([](xbox::services::xbox_live_result<xbox_user_profile> cppUserProfile) { THROW_HR_IF_ERR(cppUserProfile.err()); return ref new XboxUserProfile(cppUserProfile.payload()); }); return ASYNC_FROM_TASK(task); } IAsyncOperation<IVectorView<XboxUserProfile^>^>^ ProfileService::GetUserProfilesAsync( _In_ IVectorView<String^>^ xboxUserIds ) { std::vector<string_t> vecXboxUserIds = UtilsWinRT::CovertVectorViewToStdVectorString(xboxUserIds); auto task = m_cppObj.get_user_profiles(vecXboxUserIds) .then([](xbox::services::xbox_live_result<std::vector<xbox_user_profile>> cppUserProfiles) { THROW_HR_IF_ERR(cppUserProfiles.err()); Vector<XboxUserProfile^>^ responseVector = ref new Vector<XboxUserProfile^>(); const auto& result = cppUserProfiles.payload(); for (auto& cppUserProfile : result) { auto userProfile = ref new XboxUserProfile(cppUserProfile); responseVector->Append(userProfile); } return responseVector->GetView(); }); return ASYNC_FROM_TASK(task); } IAsyncOperation<IVectorView<XboxUserProfile^>^>^ ProfileService::GetUserProfilesForSocialGroupAsync( _In_ Platform::String^ socialGroup ) { auto task = m_cppObj.get_user_profiles_for_social_group(STRING_T_FROM_PLATFORM_STRING(socialGroup)) .then([](xbox_live_result<std::vector<xbox_user_profile>> cppUserProfileList) { THROW_IF_ERR(cppUserProfileList); Vector<XboxUserProfile^>^ responseVector = ref new Vector<XboxUserProfile^>(); for (auto& cppUserProfile : cppUserProfileList.payload()) { XboxUserProfile^ userProfile = ref new XboxUserProfile(cppUserProfile); responseVector->Append(userProfile); } return responseVector->GetView(); }); return ASYNC_FROM_TASK(task); } NAMESPACE_MICROSOFT_XBOX_SERVICES_SOCIAL_END
Java
// Copyright 2011 Splunk, 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. (function() { var Http = require('../../http'); var utils = require('../../utils'); var root = exports || this; var getHeaders = function(headersString) { var headers = {}; var headerLines = headersString.split("\n"); for(var i = 0; i < headerLines.length; i++) { if (utils.trim(headerLines[i]) !== "") { var headerParts = headerLines[i].split(": "); headers[headerParts[0]] = headerParts[1]; } } return headers; }; root.JQueryHttp = Http.extend({ init: function(isSplunk) { this._super(isSplunk); }, makeRequest: function(url, message, callback) { var that = this; var params = { url: url, type: message.method, headers: message.headers, data: message.body || "", timeout: message.timeout || 0, dataType: "json", success: utils.bind(this, function(data, error, res) { var response = { statusCode: res.status, headers: getHeaders(res.getAllResponseHeaders()) }; var complete_response = this._buildResponse(error, response, data); callback(complete_response); }), error: function(res, data, error) { var response = { statusCode: res.status, headers: getHeaders(res.getAllResponseHeaders()) }; if (data === "abort") { response.statusCode = "abort"; res.responseText = "{}"; } var json = JSON.parse(res.responseText); var complete_response = that._buildResponse(error, response, json); callback(complete_response); } }; return $.ajax(params); }, parseJson: function(json) { // JQuery does this for us return json; } }); })();
Java
/* * MP3 muxer * Copyright (c) 2003 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "avformat.h" #include "avio_internal.h" #include "id3v1.h" #include "id3v2.h" #include "rawenc.h" #include "libavutil/avstring.h" #include "libavcodec/mpegaudio.h" #include "libavcodec/mpegaudiodata.h" #include "libavcodec/mpegaudiodecheader.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" #include "libavutil/dict.h" #include "libavutil/avassert.h" static int id3v1_set_string(AVFormatContext *s, const char *key, uint8_t *buf, int buf_size) { AVDictionaryEntry *tag; if ((tag = av_dict_get(s->metadata, key, NULL, 0))) av_strlcpy(buf, tag->value, buf_size); return !!tag; } static int id3v1_create_tag(AVFormatContext *s, uint8_t *buf) { AVDictionaryEntry *tag; int i, count = 0; memset(buf, 0, ID3v1_TAG_SIZE); /* fail safe */ buf[0] = 'T'; buf[1] = 'A'; buf[2] = 'G'; /* we knowingly overspecify each tag length by one byte to compensate for the mandatory null byte added by av_strlcpy */ count += id3v1_set_string(s, "TIT2", buf + 3, 30 + 1); //title count += id3v1_set_string(s, "TPE1", buf + 33, 30 + 1); //author|artist count += id3v1_set_string(s, "TALB", buf + 63, 30 + 1); //album count += id3v1_set_string(s, "TDRL", buf + 93, 4 + 1); //date count += id3v1_set_string(s, "comment", buf + 97, 30 + 1); if ((tag = av_dict_get(s->metadata, "TRCK", NULL, 0))) { //track buf[125] = 0; buf[126] = atoi(tag->value); count++; } buf[127] = 0xFF; /* default to unknown genre */ if ((tag = av_dict_get(s->metadata, "TCON", NULL, 0))) { //genre for(i = 0; i <= ID3v1_GENRE_MAX; i++) { if (!av_strcasecmp(tag->value, ff_id3v1_genre_str[i])) { buf[127] = i; count++; break; } } } return count; } #define XING_NUM_BAGS 400 #define XING_TOC_SIZE 100 // maximum size of the xing frame: offset/Xing/flags/frames/size/TOC #define XING_MAX_SIZE (32 + 4 + 4 + 4 + 4 + XING_TOC_SIZE) typedef struct MP3Context { const AVClass *class; ID3v2EncContext id3; int id3v2_version; int write_id3v1; int write_xing; /* xing header */ int64_t xing_offset; int32_t frames; int32_t size; uint32_t want; uint32_t seen; uint32_t pos; uint64_t bag[XING_NUM_BAGS]; int initial_bitrate; int has_variable_bitrate; /* index of the audio stream */ int audio_stream_idx; /* number of attached pictures we still need to write */ int pics_to_write; /* audio packets are queued here until we get all the attached pictures */ AVPacketList *queue, *queue_end; } MP3Context; static const uint8_t xing_offtbl[2][2] = {{32, 17}, {17, 9}}; /* * Write an empty XING header and initialize respective data. */ static int mp3_write_xing(AVFormatContext *s) { MP3Context *mp3 = s->priv_data; AVCodecContext *codec = s->streams[mp3->audio_stream_idx]->codec; int bitrate_idx; int best_bitrate_idx = -1; int best_bitrate_error= INT_MAX; int xing_offset; int32_t header, mask; MPADecodeHeader c; int srate_idx, ver = 0, i, channels; int needed; const char *vendor = (codec->flags & CODEC_FLAG_BITEXACT) ? "Lavf" : LIBAVFORMAT_IDENT; if (!s->pb->seekable || !mp3->write_xing) return 0; for (i = 0; i < FF_ARRAY_ELEMS(avpriv_mpa_freq_tab); i++) { const uint16_t base_freq = avpriv_mpa_freq_tab[i]; if (codec->sample_rate == base_freq) ver = 0x3; // MPEG 1 else if (codec->sample_rate == base_freq / 2) ver = 0x2; // MPEG 2 else if (codec->sample_rate == base_freq / 4) ver = 0x0; // MPEG 2.5 else continue; srate_idx = i; break; } if (i == FF_ARRAY_ELEMS(avpriv_mpa_freq_tab)) { av_log(s, AV_LOG_WARNING, "Unsupported sample rate, not writing Xing header.\n"); return -1; } switch (codec->channels) { case 1: channels = MPA_MONO; break; case 2: channels = MPA_STEREO; break; default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, " "not writing Xing header.\n"); return -1; } /* dummy MPEG audio header */ header = 0xffU << 24; // sync header |= (0x7 << 5 | ver << 3 | 0x1 << 1 | 0x1) << 16; // sync/audio-version/layer 3/no crc*/ header |= (srate_idx << 2) << 8; header |= channels << 6; for (bitrate_idx=1; bitrate_idx<15; bitrate_idx++) { int error; avpriv_mpegaudio_decode_header(&c, header | (bitrate_idx << (4+8))); error= FFABS(c.bit_rate - codec->bit_rate); if(error < best_bitrate_error){ best_bitrate_error= error; best_bitrate_idx = bitrate_idx; } } av_assert0(best_bitrate_idx >= 0); for (bitrate_idx= best_bitrate_idx;; bitrate_idx++) { if (15 == bitrate_idx) return -1; mask = bitrate_idx << (4+8); header |= mask; avpriv_mpegaudio_decode_header(&c, header); xing_offset=xing_offtbl[c.lsf == 1][c.nb_channels == 1]; needed = 4 // header + xing_offset + 4 // xing tag + 4 // frames/size/toc flags + 4 // frames + 4 // size + XING_TOC_SIZE // toc + 24 ; if (needed <= c.frame_size) break; header &= ~mask; } avio_wb32(s->pb, header); ffio_fill(s->pb, 0, xing_offset); mp3->xing_offset = avio_tell(s->pb); ffio_wfourcc(s->pb, "Xing"); avio_wb32(s->pb, 0x01 | 0x02 | 0x04); // frames / size / TOC mp3->size = c.frame_size; mp3->want=1; mp3->seen=0; mp3->pos=0; avio_wb32(s->pb, 0); // frames avio_wb32(s->pb, 0); // size // toc for (i = 0; i < XING_TOC_SIZE; ++i) avio_w8(s->pb, (uint8_t)(255 * i / XING_TOC_SIZE)); for (i = 0; i < strlen(vendor); ++i) avio_w8(s->pb, vendor[i]); for (; i < 21; ++i) avio_w8(s->pb, 0); avio_wb24(s->pb, FFMAX(codec->delay - 528 - 1, 0)<<12); ffio_fill(s->pb, 0, c.frame_size - needed); return 0; } /* * Add a frame to XING data. * Following lame's "VbrTag.c". */ static void mp3_xing_add_frame(MP3Context *mp3, AVPacket *pkt) { int i; mp3->frames++; mp3->seen++; mp3->size += pkt->size; if (mp3->want == mp3->seen) { mp3->bag[mp3->pos] = mp3->size; if (XING_NUM_BAGS == ++mp3->pos) { /* shrink table to half size by throwing away each second bag. */ for (i = 1; i < XING_NUM_BAGS; i += 2) mp3->bag[i >> 1] = mp3->bag[i]; /* double wanted amount per bag. */ mp3->want *= 2; /* adjust current position to half of table size. */ mp3->pos = XING_NUM_BAGS / 2; } mp3->seen = 0; } } static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; if (pkt->data && pkt->size >= 4) { MPADecodeHeader c; int av_unused base; uint32_t head = AV_RB32(pkt->data); if (ff_mpa_check_header(head) < 0) { av_log(s, AV_LOG_WARNING, "Audio packet of size %d (starting with %08X...) " "is invalid, writing it anyway.\n", pkt->size, head); return ff_raw_write_packet(s, pkt); } avpriv_mpegaudio_decode_header(&c, head); if (!mp3->initial_bitrate) mp3->initial_bitrate = c.bit_rate; if ((c.bit_rate == 0) || (mp3->initial_bitrate != c.bit_rate)) mp3->has_variable_bitrate = 1; #ifdef FILTER_VBR_HEADERS /* filter out XING and INFO headers. */ base = 4 + xing_offtbl[c.lsf == 1][c.nb_channels == 1]; if (base + 4 <= pkt->size) { uint32_t v = AV_RB32(pkt->data + base); if (MKBETAG('X','i','n','g') == v || MKBETAG('I','n','f','o') == v) return 0; } /* filter out VBRI headers. */ base = 4 + 32; if (base + 4 <= pkt->size && MKBETAG('V','B','R','I') == AV_RB32(pkt->data + base)) return 0; #endif if (mp3->xing_offset) mp3_xing_add_frame(mp3, pkt); } return ff_raw_write_packet(s, pkt); } static int mp3_queue_flush(AVFormatContext *s) { MP3Context *mp3 = s->priv_data; AVPacketList *pktl; int ret = 0, write = 1; ff_id3v2_finish(&mp3->id3, s->pb, s->metadata_header_padding); mp3_write_xing(s); while ((pktl = mp3->queue)) { if (write && (ret = mp3_write_audio_packet(s, &pktl->pkt)) < 0) write = 0; av_free_packet(&pktl->pkt); mp3->queue = pktl->next; av_freep(&pktl); } mp3->queue_end = NULL; return ret; } static void mp3_update_xing(AVFormatContext *s) { MP3Context *mp3 = s->priv_data; int i; /* replace "Xing" identification string with "Info" for CBR files. */ if (!mp3->has_variable_bitrate) { avio_seek(s->pb, mp3->xing_offset, SEEK_SET); ffio_wfourcc(s->pb, "Info"); } avio_seek(s->pb, mp3->xing_offset + 8, SEEK_SET); avio_wb32(s->pb, mp3->frames); avio_wb32(s->pb, mp3->size); avio_w8(s->pb, 0); // first toc entry has to be zero. for (i = 1; i < XING_TOC_SIZE; ++i) { int j = i * mp3->pos / XING_TOC_SIZE; int seek_point = 256LL * mp3->bag[j] / mp3->size; avio_w8(s->pb, FFMIN(seek_point, 255)); } avio_seek(s->pb, 0, SEEK_END); } static int mp3_write_trailer(struct AVFormatContext *s) { uint8_t buf[ID3v1_TAG_SIZE]; MP3Context *mp3 = s->priv_data; if (mp3->pics_to_write) { av_log(s, AV_LOG_WARNING, "No packets were sent for some of the " "attached pictures.\n"); mp3_queue_flush(s); } /* write the id3v1 tag */ if (mp3->write_id3v1 && id3v1_create_tag(s, buf) > 0) { avio_write(s->pb, buf, ID3v1_TAG_SIZE); } if (mp3->xing_offset) mp3_update_xing(s); return 0; } static int query_codec(enum AVCodecID id, int std_compliance) { const CodecMime *cm= ff_id3v2_mime_tags; while(cm->id != AV_CODEC_ID_NONE) { if(id == cm->id) return MKTAG('A', 'P', 'I', 'C'); cm++; } return -1; } #if CONFIG_MP2_MUXER AVOutputFormat ff_mp2_muxer = { .name = "mp2", .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), .mime_type = "audio/x-mpeg", .extensions = "mp2,m2a,mpa", .audio_codec = AV_CODEC_ID_MP2, .video_codec = AV_CODEC_ID_NONE, .write_packet = ff_raw_write_packet, .flags = AVFMT_NOTIMESTAMPS, }; #endif #if CONFIG_MP3_MUXER static const AVOption options[] = { { "id3v2_version", "Select ID3v2 version to write. Currently 3 and 4 are supported.", offsetof(MP3Context, id3v2_version), AV_OPT_TYPE_INT, {.i64 = 4}, 0, 4, AV_OPT_FLAG_ENCODING_PARAM}, { "write_id3v1", "Enable ID3v1 writing. ID3v1 tags are written in UTF-8 which may not be supported by most software.", offsetof(MP3Context, write_id3v1), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM}, { "write_xing", "Write the Xing header containing file duration.", offsetof(MP3Context, write_xing), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM}, { NULL }, }; static const AVClass mp3_muxer_class = { .class_name = "MP3 muxer", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }; static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; if (pkt->stream_index == mp3->audio_stream_idx) { if (mp3->pics_to_write) { /* buffer audio packets until we get all the pictures */ AVPacketList *pktl = av_mallocz(sizeof(*pktl)); if (!pktl) return AVERROR(ENOMEM); pktl->pkt = *pkt; pktl->pkt.buf = av_buffer_ref(pkt->buf); if (!pktl->pkt.buf) { av_freep(&pktl); return AVERROR(ENOMEM); } if (mp3->queue_end) mp3->queue_end->next = pktl; else mp3->queue = pktl; mp3->queue_end = pktl; } else return mp3_write_audio_packet(s, pkt); } else { int ret; /* warn only once for each stream */ if (s->streams[pkt->stream_index]->nb_frames == 1) { av_log(s, AV_LOG_WARNING, "Got more than one picture in stream %d," " ignoring.\n", pkt->stream_index); } if (!mp3->pics_to_write || s->streams[pkt->stream_index]->nb_frames >= 1) return 0; if ((ret = ff_id3v2_write_apic(s, &mp3->id3, pkt)) < 0) return ret; mp3->pics_to_write--; /* flush the buffered audio packets */ if (!mp3->pics_to_write && (ret = mp3_queue_flush(s)) < 0) return ret; } return 0; } /** * Write an ID3v2 header at beginning of stream */ static int mp3_write_header(struct AVFormatContext *s) { MP3Context *mp3 = s->priv_data; int ret, i; if (mp3->id3v2_version && mp3->id3v2_version != 3 && mp3->id3v2_version != 4) { av_log(s, AV_LOG_ERROR, "Invalid ID3v2 version requested: %d. Only " "3, 4 or 0 (disabled) are allowed.\n", mp3->id3v2_version); return AVERROR(EINVAL); } /* check the streams -- we want exactly one audio and arbitrary number of * video (attached pictures) */ mp3->audio_stream_idx = -1; for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) { if (mp3->audio_stream_idx >= 0 || st->codec->codec_id != AV_CODEC_ID_MP3) { av_log(s, AV_LOG_ERROR, "Invalid audio stream. Exactly one MP3 " "audio stream is required.\n"); return AVERROR(EINVAL); } mp3->audio_stream_idx = i; } else if (st->codec->codec_type != AVMEDIA_TYPE_VIDEO) { av_log(s, AV_LOG_ERROR, "Only audio streams and pictures are allowed in MP3.\n"); return AVERROR(EINVAL); } } if (mp3->audio_stream_idx < 0) { av_log(s, AV_LOG_ERROR, "No audio stream present.\n"); return AVERROR(EINVAL); } mp3->pics_to_write = s->nb_streams - 1; if (mp3->pics_to_write && !mp3->id3v2_version) { av_log(s, AV_LOG_ERROR, "Attached pictures were requested, but the " "ID3v2 header is disabled.\n"); return AVERROR(EINVAL); } if (mp3->id3v2_version) { ff_id3v2_start(&mp3->id3, s->pb, mp3->id3v2_version, ID3v2_DEFAULT_MAGIC); ret = ff_id3v2_write_metadata(s, &mp3->id3); if (ret < 0) return ret; } if (!mp3->pics_to_write) { if (mp3->id3v2_version) ff_id3v2_finish(&mp3->id3, s->pb, s->metadata_header_padding); mp3_write_xing(s); } return 0; } AVOutputFormat ff_mp3_muxer = { .name = "mp3", .long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"), .mime_type = "audio/x-mpeg", .extensions = "mp3", .priv_data_size = sizeof(MP3Context), .audio_codec = AV_CODEC_ID_MP3, .video_codec = AV_CODEC_ID_PNG, .write_header = mp3_write_header, .write_packet = mp3_write_packet, .write_trailer = mp3_write_trailer, .query_codec = query_codec, .flags = AVFMT_NOTIMESTAMPS, .priv_class = &mp3_muxer_class, }; #endif
Java
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> OptionsDialog::OptionsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::OptionsDialog), model(0), mapper(0), fRestartWarningDisplayed_Proxy(false), fRestartWarningDisplayed_Lang(false), fProxyIpValid(true) { ui->setupUi(this); /* Network elements init */ #ifndef USE_UPNP ui->mapPortUpnp->setEnabled(false); #endif ui->proxyIp->setEnabled(false); ui->proxyPort->setEnabled(false); ui->proxyPort->setValidator(new QIntValidator(1, 65535, this)); ui->socksVersion->setEnabled(false); ui->socksVersion->addItem("5", 5); ui->socksVersion->addItem("4", 4); ui->socksVersion->setCurrentIndex(0); connect(ui->connectSocks, SIGNAL(toggled(bool)), ui->proxyIp, SLOT(setEnabled(bool))); connect(ui->connectSocks, SIGNAL(toggled(bool)), ui->proxyPort, SLOT(setEnabled(bool))); connect(ui->connectSocks, SIGNAL(toggled(bool)), ui->socksVersion, SLOT(setEnabled(bool))); connect(ui->connectSocks, SIGNAL(clicked(bool)), this, SLOT(showRestartWarning_Proxy())); ui->proxyIp->installEventFilter(this); /* Window elements init */ #ifdef Q_OS_MAC /* remove Window tab on Mac */ ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabWindow)); #endif /* Display elements init */ QDir translations(":translations"); ui->lang->addItem(QString("(") + tr("default") + QString(")"), QVariant("")); foreach(const QString &langStr, translations.entryList()) { QLocale locale(langStr); /** check if the locale name consists of 2 parts (language_country) */ if(langStr.contains("_")) { #if QT_VERSION >= 0x040800 /** display language strings as "native language - native country (locale name)", e.g. "Deutsch - Deutschland (de)" */ ui->lang->addItem(locale.nativeLanguageName() + QString(" - ") + locale.nativeCountryName() + QString(" (") + langStr + QString(")"), QVariant(langStr)); #else /** display language strings as "language - country (locale name)", e.g. "German - Germany (de)" */ ui->lang->addItem(QLocale::languageToString(locale.language()) + QString(" - ") + QLocale::countryToString(locale.country()) + QString(" (") + langStr + QString(")"), QVariant(langStr)); #endif } else { #if QT_VERSION >= 0x040800 /** display language strings as "native language (locale name)", e.g. "Deutsch (de)" */ ui->lang->addItem(locale.nativeLanguageName() + QString(" (") + langStr + QString(")"), QVariant(langStr)); #else /** display language strings as "language (locale name)", e.g. "German (de)" */ ui->lang->addItem(QLocale::languageToString(locale.language()) + QString(" (") + langStr + QString(")"), QVariant(langStr)); #endif } } ui->unit->setModel(new BitcoinUnits(this)); /* Widget-to-option mapper */ mapper = new MonitoredDataMapper(this); mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit); mapper->setOrientation(Qt::Vertical); /* enable apply button when data modified */ connect(mapper, SIGNAL(viewModified()), this, SLOT(enableApplyButton())); /* disable apply button when new data loaded */ connect(mapper, SIGNAL(currentIndexChanged(int)), this, SLOT(disableApplyButton())); /* setup/change UI elements when proxy IP is invalid/valid */ connect(this, SIGNAL(proxyIpValid(QValidatedLineEdit *, bool)), this, SLOT(handleProxyIpValid(QValidatedLineEdit *, bool))); } OptionsDialog::~OptionsDialog() { delete ui; } void OptionsDialog::setModel(OptionsModel *model) { this->model = model; if(model) { connect(model, SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); mapper->setModel(model); setMapper(); mapper->toFirst(); } /* update the display unit, to not use the default ("BTC") */ updateDisplayUnit(); /* warn only when language selection changes by user action (placed here so init via mapper doesn't trigger this) */ connect(ui->lang, SIGNAL(valueChanged()), this, SLOT(showRestartWarning_Lang())); /* disable apply button after settings are loaded as there is nothing to save */ disableApplyButton(); } void OptionsDialog::setMapper() { /* Main */ mapper->addMapping(ui->bitcoinAtStartup, OptionsModel::StartAtStartup); /* Wallet */ mapper->addMapping(ui->transactionFee, OptionsModel::Fee); mapper->addMapping(ui->spendZeroConfChange, OptionsModel::SpendZeroConfChange); /* Network */ mapper->addMapping(ui->mapPortUpnp, OptionsModel::MapPortUPnP); mapper->addMapping(ui->connectSocks, OptionsModel::ProxyUse); mapper->addMapping(ui->proxyIp, OptionsModel::ProxyIP); mapper->addMapping(ui->proxyPort, OptionsModel::ProxyPort); mapper->addMapping(ui->socksVersion, OptionsModel::ProxySocksVersion); /* Window */ #ifndef Q_OS_MAC mapper->addMapping(ui->minimizeToTray, OptionsModel::MinimizeToTray); mapper->addMapping(ui->minimizeOnClose, OptionsModel::MinimizeOnClose); #endif /* Display */ mapper->addMapping(ui->lang, OptionsModel::Language); mapper->addMapping(ui->unit, OptionsModel::DisplayUnit); mapper->addMapping(ui->displayAddresses, OptionsModel::DisplayAddresses); mapper->addMapping(ui->coinControlFeatures, OptionsModel::CoinControlFeatures); } void OptionsDialog::enableApplyButton() { ui->applyButton->setEnabled(true); } void OptionsDialog::disableApplyButton() { ui->applyButton->setEnabled(false); } void OptionsDialog::enableSaveButtons() { /* prevent enabling of the save buttons when data modified, if there is an invalid proxy address present */ if(fProxyIpValid) setSaveButtonState(true); } void OptionsDialog::disableSaveButtons() { setSaveButtonState(false); } void OptionsDialog::setSaveButtonState(bool fState) { ui->applyButton->setEnabled(fState); ui->okButton->setEnabled(fState); } void OptionsDialog::on_resetButton_clicked() { if(model) { // confirmation dialog QMessageBox::StandardButton btnRetVal = QMessageBox::question(this, tr("Confirm options reset"), tr("Some settings may require a client restart to take effect.") + "<br><br>" + tr("Do you want to proceed?"), QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); if(btnRetVal == QMessageBox::Cancel) return; disableApplyButton(); /* disable restart warning messages display */ fRestartWarningDisplayed_Lang = fRestartWarningDisplayed_Proxy = true; /* reset all options and save the default values (QSettings) */ model->Reset(); mapper->toFirst(); mapper->submit(); /* re-enable restart warning messages display */ fRestartWarningDisplayed_Lang = fRestartWarningDisplayed_Proxy = false; } } void OptionsDialog::on_okButton_clicked() { mapper->submit(); accept(); } void OptionsDialog::on_cancelButton_clicked() { reject(); } void OptionsDialog::on_applyButton_clicked() { mapper->submit(); disableApplyButton(); } void OptionsDialog::showRestartWarning_Proxy() { if(!fRestartWarningDisplayed_Proxy) { QMessageBox::warning(this, tr("Warning"), tr("This setting will take effect after restarting Potcoin."), QMessageBox::Ok); fRestartWarningDisplayed_Proxy = true; } } void OptionsDialog::showRestartWarning_Lang() { if(!fRestartWarningDisplayed_Lang) { QMessageBox::warning(this, tr("Warning"), tr("This setting will take effect after restarting Potcoin."), QMessageBox::Ok); fRestartWarningDisplayed_Lang = true; } } void OptionsDialog::updateDisplayUnit() { if(model) { /* Update transactionFee with the current unit */ ui->transactionFee->setDisplayUnit(model->getDisplayUnit()); } } void OptionsDialog::handleProxyIpValid(QValidatedLineEdit *object, bool fState) { // this is used in a check before re-enabling the save buttons fProxyIpValid = fState; if(fProxyIpValid) { enableSaveButtons(); ui->statusLabel->clear(); } else { disableSaveButtons(); object->setValid(fProxyIpValid); ui->statusLabel->setStyleSheet("QLabel { color: red; }"); ui->statusLabel->setText(tr("The supplied proxy address is invalid.")); } } bool OptionsDialog::eventFilter(QObject *object, QEvent *event) { if(event->type() == QEvent::FocusOut) { if(object == ui->proxyIp) { CService addr; /* Check proxyIp for a valid IPv4/IPv6 address and emit the proxyIpValid signal */ emit proxyIpValid(ui->proxyIp, LookupNumeric(ui->proxyIp->text().toStdString().c_str(), addr)); } } return QDialog::eventFilter(object, event); }
Java
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "init.h" #include "addrman.h" #include "amount.h" #include "chain.h" #include "chainparams.h" #include "checkpoints.h" #include "compat/sanity.h" #include "consensus/validation.h" #include "httpserver.h" #include "httprpc.h" #include "key.h" #include "validation.h" #include "miner.h" #include "netbase.h" #include "net.h" #include "net_processing.h" #include "policy/policy.h" #include "rpc/server.h" #include "rpc/register.h" #include "script/standard.h" #include "script/sigcache.h" #include "scheduler.h" #include "timedata.h" #include "txdb.h" #include "txmempool.h" #include "torcontrol.h" #include "ui_interface.h" #include "util.h" #include "utilmoneystr.h" #include "validationinterface.h" #ifdef ENABLE_WALLET #include "wallet/wallet.h" #endif #include "warnings.h" #include <stdint.h> #include <stdio.h> #include <memory> #ifndef WIN32 #include <signal.h> #endif #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/bind.hpp> #include <boost/filesystem.hpp> #include <boost/function.hpp> #include <boost/interprocess/sync/file_lock.hpp> #include <boost/thread.hpp> #include <openssl/crypto.h> #if ENABLE_ZMQ #include "zmq/zmqnotificationinterface.h" #endif bool fFeeEstimatesInitialized = false; static const bool DEFAULT_PROXYRANDOMIZE = true; static const bool DEFAULT_REST_ENABLE = false; static const bool DEFAULT_DISABLE_SAFEMODE = false; static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false; std::unique_ptr<CConnman> g_connman; std::unique_ptr<PeerLogicValidation> peerLogic; #if ENABLE_ZMQ static CZMQNotificationInterface* pzmqNotificationInterface = NULL; #endif #ifdef WIN32 // Win32 LevelDB doesn't use filedescriptors, and the ones used for // accessing block files don't count towards the fd_set size limit // anyway. #define MIN_CORE_FILEDESCRIPTORS 0 #else #define MIN_CORE_FILEDESCRIPTORS 150 #endif /** Used to pass flags to the Bind() function */ enum BindFlags { BF_NONE = 0, BF_EXPLICIT = (1U << 0), BF_REPORT_ERROR = (1U << 1), BF_WHITELIST = (1U << 2), }; static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat"; ////////////////////////////////////////////////////////////////////////////// // // Shutdown // // // Thread management and startup/shutdown: // // The network-processing threads are all part of a thread group // created by AppInit() or the Qt main() function. // // A clean exit happens when StartShutdown() or the SIGTERM // signal handler sets fRequestShutdown, which triggers // the DetectShutdownThread(), which interrupts the main thread group. // DetectShutdownThread() then exits, which causes AppInit() to // continue (it .joins the shutdown thread). // Shutdown() is then // called to clean up database connections, and stop other // threads that should only be stopped after the main network-processing // threads have exited. // // Shutdown for Qt is very similar, only it uses a QTimer to detect // fRequestShutdown getting set, and then does the normal Qt // shutdown thing. // std::atomic<bool> fRequestShutdown(false); std::atomic<bool> fDumpMempoolLater(false); void StartShutdown() { fRequestShutdown = true; } bool ShutdownRequested() { return fRequestShutdown; } /** * This is a minimally invasive approach to shutdown on LevelDB read errors from the * chainstate, while keeping user interface out of the common library, which is shared * between bitcoind, and bitcoin-qt and non-server tools. */ class CCoinsViewErrorCatcher : public CCoinsViewBacked { public: CCoinsViewErrorCatcher(CCoinsView* view) : CCoinsViewBacked(view) {} bool GetCoins(const uint256 &txid, CCoins &coins) const { try { return CCoinsViewBacked::GetCoins(txid, coins); } catch(const std::runtime_error& e) { uiInterface.ThreadSafeMessageBox(_("Error reading from database, shutting down."), "", CClientUIInterface::MSG_ERROR); LogPrintf("Error reading from database: %s\n", e.what()); // Starting the shutdown sequence and returning false to the caller would be // interpreted as 'entry not found' (as opposed to unable to read data), and // could lead to invalid interpretation. Just exit immediately, as we can't // continue anyway, and all writes should be atomic. abort(); } } // Writes do not need similar protection, as failure to write is handled by the caller. }; static CCoinsViewDB *pcoinsdbview = NULL; static CCoinsViewErrorCatcher *pcoinscatcher = NULL; static std::unique_ptr<ECCVerifyHandle> globalVerifyHandle; void Interrupt(boost::thread_group& threadGroup) { InterruptHTTPServer(); InterruptHTTPRPC(); InterruptRPC(); InterruptREST(); InterruptTorControl(); if (g_connman) g_connman->Interrupt(); threadGroup.interrupt_all(); } void Shutdown() { LogPrintf("%s: In progress...\n", __func__); static CCriticalSection cs_Shutdown; TRY_LOCK(cs_Shutdown, lockShutdown); if (!lockShutdown) return; /// Note: Shutdown() must be able to handle cases in which initialization failed part of the way, /// for example if the data directory was found to be locked. /// Be sure that anything that writes files or flushes caches only does this if the respective /// module was initialized. RenameThread("bitcoin-shutoff"); mempool.AddTransactionsUpdated(1); StopHTTPRPC(); StopREST(); StopRPC(); StopHTTPServer(); #ifdef ENABLE_WALLET if (pwalletMain) pwalletMain->Flush(false); #endif MapPort(false); UnregisterValidationInterface(peerLogic.get()); peerLogic.reset(); g_connman.reset(); StopTorControl(); UnregisterNodeSignals(GetNodeSignals()); if (fDumpMempoolLater) DumpMempool(); if (fFeeEstimatesInitialized) { boost::filesystem::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME; CAutoFile est_fileout(fopen(est_path.string().c_str(), "wb"), SER_DISK, CLIENT_VERSION); if (!est_fileout.IsNull()) mempool.WriteFeeEstimates(est_fileout); else LogPrintf("%s: Failed to write fee estimates to %s\n", __func__, est_path.string()); fFeeEstimatesInitialized = false; } { LOCK(cs_main); if (pcoinsTip != NULL) { FlushStateToDisk(); } delete pcoinsTip; pcoinsTip = NULL; delete pcoinscatcher; pcoinscatcher = NULL; delete pcoinsdbview; pcoinsdbview = NULL; delete pblocktree; pblocktree = NULL; } #ifdef ENABLE_WALLET if (pwalletMain) pwalletMain->Flush(true); #endif #if ENABLE_ZMQ if (pzmqNotificationInterface) { UnregisterValidationInterface(pzmqNotificationInterface); delete pzmqNotificationInterface; pzmqNotificationInterface = NULL; } #endif #ifndef WIN32 try { boost::filesystem::remove(GetPidFile()); } catch (const boost::filesystem::filesystem_error& e) { LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what()); } #endif UnregisterAllValidationInterfaces(); #ifdef ENABLE_WALLET delete pwalletMain; pwalletMain = NULL; #endif globalVerifyHandle.reset(); ECC_Stop(); LogPrintf("%s: done\n", __func__); } /** * Signal handlers are very limited in what they are allowed to do, so: */ void HandleSIGTERM(int) { fRequestShutdown = true; } void HandleSIGHUP(int) { fReopenDebugLog = true; } bool static Bind(CConnman& connman, const CService &addr, unsigned int flags) { if (!(flags & BF_EXPLICIT) && IsLimited(addr)) return false; std::string strError; if (!connman.BindListenPort(addr, strError, (flags & BF_WHITELIST) != 0)) { if (flags & BF_REPORT_ERROR) return InitError(strError); return false; } return true; } void OnRPCStarted() { uiInterface.NotifyBlockTip.connect(&RPCNotifyBlockChange); } void OnRPCStopped() { uiInterface.NotifyBlockTip.disconnect(&RPCNotifyBlockChange); RPCNotifyBlockChange(false, nullptr); cvBlockChange.notify_all(); LogPrint("rpc", "RPC stopped.\n"); } void OnRPCPreCommand(const CRPCCommand& cmd) { // Observe safe mode std::string strWarning = GetWarnings("rpc"); if (strWarning != "" && !GetBoolArg("-disablesafemode", DEFAULT_DISABLE_SAFEMODE) && !cmd.okSafeMode) throw JSONRPCError(RPC_FORBIDDEN_BY_SAFE_MODE, std::string("Safe mode: ") + strWarning); } std::string HelpMessage(HelpMessageMode mode) { const bool showDebug = GetBoolArg("-help-debug", false); // When adding new options to the categories, please keep and ensure alphabetical ordering. // Do not translate _(...) -help-debug options, Many technical terms, and only a very small audience, so is unnecessary stress to translators. std::string strUsage = HelpMessageGroup(_("Options:")); strUsage += HelpMessageOpt("-?", _("Print this help message and exit")); strUsage += HelpMessageOpt("-version", _("Print version and exit")); strUsage += HelpMessageOpt("-alertnotify=<cmd>", _("Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)")); strUsage += HelpMessageOpt("-blocknotify=<cmd>", _("Execute command when the best block changes (%s in cmd is replaced by block hash)")); if (showDebug) strUsage += HelpMessageOpt("-blocksonly", strprintf(_("Whether to operate in a blocks only mode (default: %u)"), DEFAULT_BLOCKSONLY)); strUsage +=HelpMessageOpt("-assumevalid=<hex>", strprintf(_("If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: %s, testnet: %s)"), Params(CBaseChainParams::MAIN).GetConsensus().defaultAssumeValid.GetHex(), Params(CBaseChainParams::TESTNET).GetConsensus().defaultAssumeValid.GetHex())); strUsage += HelpMessageOpt("-conf=<file>", strprintf(_("Specify configuration file (default: %s)"), BITCOIN_CONF_FILENAME)); if (mode == HMM_BITCOIND) { #if HAVE_DECL_DAEMON strUsage += HelpMessageOpt("-daemon", _("Run in the background as a daemon and accept commands")); #endif } strUsage += HelpMessageOpt("-datadir=<dir>", _("Specify data directory")); strUsage += HelpMessageOpt("-dbcache=<n>", strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"), nMinDbCache, nMaxDbCache, nDefaultDbCache)); if (showDebug) strUsage += HelpMessageOpt("-feefilter", strprintf("Tell other nodes to filter invs to us by our mempool min fee (default: %u)", DEFAULT_FEEFILTER)); strUsage += HelpMessageOpt("-loadblock=<file>", _("Imports blocks from external blk000??.dat file on startup")); strUsage += HelpMessageOpt("-maxorphantx=<n>", strprintf(_("Keep at most <n> unconnectable transactions in memory (default: %u)"), DEFAULT_MAX_ORPHAN_TRANSACTIONS)); strUsage += HelpMessageOpt("-maxmempool=<n>", strprintf(_("Keep the transaction memory pool below <n> megabytes (default: %u)"), DEFAULT_MAX_MEMPOOL_SIZE)); strUsage += HelpMessageOpt("-mempoolexpiry=<n>", strprintf(_("Do not keep transactions in the mempool longer than <n> hours (default: %u)"), DEFAULT_MEMPOOL_EXPIRY)); strUsage += HelpMessageOpt("-blockreconstructionextratxn=<n>", strprintf(_("Extra transactions to keep in memory for compact block reconstructions (default: %u)"), DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN)); strUsage += HelpMessageOpt("-par=<n>", strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"), -GetNumCores(), MAX_SCRIPTCHECK_THREADS, DEFAULT_SCRIPTCHECK_THREADS)); #ifndef WIN32 strUsage += HelpMessageOpt("-pid=<file>", strprintf(_("Specify pid file (default: %s)"), BITCOIN_PID_FILENAME)); #endif strUsage += HelpMessageOpt("-prune=<n>", strprintf(_("Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. " "Warning: Reverting this setting requires re-downloading the entire blockchain. " "(default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >%u = automatically prune block files to stay under the specified target size in MiB)"), MIN_DISK_SPACE_FOR_BLOCK_FILES / 1024 / 1024)); strUsage += HelpMessageOpt("-reindex-chainstate", _("Rebuild chain state from the currently indexed blocks")); strUsage += HelpMessageOpt("-reindex", _("Rebuild chain state and block index from the blk*.dat files on disk")); #ifndef WIN32 strUsage += HelpMessageOpt("-sysperms", _("Create new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)")); #endif strUsage += HelpMessageOpt("-txindex", strprintf(_("Maintain a full transaction index, used by the getrawtransaction rpc call (default: %u)"), DEFAULT_TXINDEX)); strUsage += HelpMessageGroup(_("Connection options:")); strUsage += HelpMessageOpt("-addnode=<ip>", _("Add a node to connect to and attempt to keep the connection open")); strUsage += HelpMessageOpt("-banscore=<n>", strprintf(_("Threshold for disconnecting misbehaving peers (default: %u)"), DEFAULT_BANSCORE_THRESHOLD)); strUsage += HelpMessageOpt("-bantime=<n>", strprintf(_("Number of seconds to keep misbehaving peers from reconnecting (default: %u)"), DEFAULT_MISBEHAVING_BANTIME)); strUsage += HelpMessageOpt("-bind=<addr>", _("Bind to given address and always listen on it. Use [host]:port notation for IPv6")); strUsage += HelpMessageOpt("-connect=<ip>", _("Connect only to the specified node(s); -noconnect or -connect=0 alone to disable automatic connections")); strUsage += HelpMessageOpt("-discover", _("Discover own IP addresses (default: 1 when listening and no -externalip or -proxy)")); strUsage += HelpMessageOpt("-dns", _("Allow DNS lookups for -addnode, -seednode and -connect") + " " + strprintf(_("(default: %u)"), DEFAULT_NAME_LOOKUP)); strUsage += HelpMessageOpt("-dnsseed", _("Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect/-noconnect)")); strUsage += HelpMessageOpt("-externalip=<ip>", _("Specify your own public address")); strUsage += HelpMessageOpt("-forcednsseed", strprintf(_("Always query for peer addresses via DNS lookup (default: %u)"), DEFAULT_FORCEDNSSEED)); strUsage += HelpMessageOpt("-listen", _("Accept connections from outside (default: 1 if no -proxy or -connect/-noconnect)")); strUsage += HelpMessageOpt("-listenonion", strprintf(_("Automatically create Tor hidden service (default: %d)"), DEFAULT_LISTEN_ONION)); strUsage += HelpMessageOpt("-maxconnections=<n>", strprintf(_("Maintain at most <n> connections to peers (default: %u)"), DEFAULT_MAX_PEER_CONNECTIONS)); strUsage += HelpMessageOpt("-maxreceivebuffer=<n>", strprintf(_("Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)"), DEFAULT_MAXRECEIVEBUFFER)); strUsage += HelpMessageOpt("-maxsendbuffer=<n>", strprintf(_("Maximum per-connection send buffer, <n>*1000 bytes (default: %u)"), DEFAULT_MAXSENDBUFFER)); strUsage += HelpMessageOpt("-maxtimeadjustment", strprintf(_("Maximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: %u seconds)"), DEFAULT_MAX_TIME_ADJUSTMENT)); strUsage += HelpMessageOpt("-onion=<ip:port>", strprintf(_("Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: %s)"), "-proxy")); strUsage += HelpMessageOpt("-onlynet=<net>", _("Only connect to nodes in network <net> (ipv4, ipv6 or onion)")); strUsage += HelpMessageOpt("-permitbaremultisig", strprintf(_("Relay non-P2SH multisig (default: %u)"), DEFAULT_PERMIT_BAREMULTISIG)); strUsage += HelpMessageOpt("-peerbloomfilters", strprintf(_("Support filtering of blocks and transaction with bloom filters (default: %u)"), DEFAULT_PEERBLOOMFILTERS)); strUsage += HelpMessageOpt("-port=<port>", strprintf(_("Listen for connections on <port> (default: %u or testnet: %u)"), Params(CBaseChainParams::MAIN).GetDefaultPort(), Params(CBaseChainParams::TESTNET).GetDefaultPort())); strUsage += HelpMessageOpt("-proxy=<ip:port>", _("Connect through SOCKS5 proxy")); strUsage += HelpMessageOpt("-proxyrandomize", strprintf(_("Randomize credentials for every proxy connection. This enables Tor stream isolation (default: %u)"), DEFAULT_PROXYRANDOMIZE)); strUsage += HelpMessageOpt("-rpcserialversion", strprintf(_("Sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default: %d)"), DEFAULT_RPC_SERIALIZE_VERSION)); strUsage += HelpMessageOpt("-seednode=<ip>", _("Connect to a node to retrieve peer addresses, and disconnect")); strUsage += HelpMessageOpt("-timeout=<n>", strprintf(_("Specify connection timeout in milliseconds (minimum: 1, default: %d)"), DEFAULT_CONNECT_TIMEOUT)); strUsage += HelpMessageOpt("-torcontrol=<ip>:<port>", strprintf(_("Tor control port to use if onion listening enabled (default: %s)"), DEFAULT_TOR_CONTROL)); strUsage += HelpMessageOpt("-torpassword=<pass>", _("Tor control port password (default: empty)")); #ifdef USE_UPNP #if USE_UPNP strUsage += HelpMessageOpt("-upnp", _("Use UPnP to map the listening port (default: 1 when listening and no -proxy)")); #else strUsage += HelpMessageOpt("-upnp", strprintf(_("Use UPnP to map the listening port (default: %u)"), 0)); #endif #endif strUsage += HelpMessageOpt("-whitebind=<addr>", _("Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6")); strUsage += HelpMessageOpt("-whitelist=<IP address or network>", _("Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) or CIDR notated network (e.g. 1.2.3.0/24). Can be specified multiple times.") + " " + _("Whitelisted peers cannot be DoS banned and their transactions are always relayed, even if they are already in the mempool, useful e.g. for a gateway")); strUsage += HelpMessageOpt("-whitelistrelay", strprintf(_("Accept relayed transactions received from whitelisted peers even when not relaying transactions (default: %d)"), DEFAULT_WHITELISTRELAY)); strUsage += HelpMessageOpt("-whitelistforcerelay", strprintf(_("Force relay of transactions from whitelisted peers even if they violate local relay policy (default: %d)"), DEFAULT_WHITELISTFORCERELAY)); strUsage += HelpMessageOpt("-maxuploadtarget=<n>", strprintf(_("Tries to keep outbound traffic under the given target (in MiB per 24h), 0 = no limit (default: %d)"), DEFAULT_MAX_UPLOAD_TARGET)); #ifdef ENABLE_WALLET strUsage += CWallet::GetWalletHelpString(showDebug); #endif #if ENABLE_ZMQ strUsage += HelpMessageGroup(_("ZeroMQ notification options:")); strUsage += HelpMessageOpt("-zmqpubhashblock=<address>", _("Enable publish hash block in <address>")); strUsage += HelpMessageOpt("-zmqpubhashtx=<address>", _("Enable publish hash transaction in <address>")); strUsage += HelpMessageOpt("-zmqpubrawblock=<address>", _("Enable publish raw block in <address>")); strUsage += HelpMessageOpt("-zmqpubrawtx=<address>", _("Enable publish raw transaction in <address>")); #endif strUsage += HelpMessageGroup(_("Debugging/Testing options:")); strUsage += HelpMessageOpt("-uacomment=<cmt>", _("Append comment to the user agent string")); if (showDebug) { strUsage += HelpMessageOpt("-checkblocks=<n>", strprintf(_("How many blocks to check at startup (default: %u, 0 = all)"), DEFAULT_CHECKBLOCKS)); strUsage += HelpMessageOpt("-checklevel=<n>", strprintf(_("How thorough the block verification of -checkblocks is (0-4, default: %u)"), DEFAULT_CHECKLEVEL)); strUsage += HelpMessageOpt("-checkblockindex", strprintf("Do a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive and mapBlocksUnlinked occasionally. Also sets -checkmempool (default: %u)", Params(CBaseChainParams::MAIN).DefaultConsistencyChecks())); strUsage += HelpMessageOpt("-checkmempool=<n>", strprintf("Run checks every <n> transactions (default: %u)", Params(CBaseChainParams::MAIN).DefaultConsistencyChecks())); strUsage += HelpMessageOpt("-checkpoints", strprintf("Disable expensive verification for known chain history (default: %u)", DEFAULT_CHECKPOINTS_ENABLED)); strUsage += HelpMessageOpt("-disablesafemode", strprintf("Disable safemode, override a real safe mode event (default: %u)", DEFAULT_DISABLE_SAFEMODE)); strUsage += HelpMessageOpt("-testsafemode", strprintf("Force safe mode (default: %u)", DEFAULT_TESTSAFEMODE)); strUsage += HelpMessageOpt("-dropmessagestest=<n>", "Randomly drop 1 of every <n> network messages"); strUsage += HelpMessageOpt("-fuzzmessagestest=<n>", "Randomly fuzz 1 of every <n> network messages"); strUsage += HelpMessageOpt("-stopafterblockimport", strprintf("Stop running after importing blocks from disk (default: %u)", DEFAULT_STOPAFTERBLOCKIMPORT)); strUsage += HelpMessageOpt("-limitancestorcount=<n>", strprintf("Do not accept transactions if number of in-mempool ancestors is <n> or more (default: %u)", DEFAULT_ANCESTOR_LIMIT)); strUsage += HelpMessageOpt("-limitancestorsize=<n>", strprintf("Do not accept transactions whose size with all in-mempool ancestors exceeds <n> kilobytes (default: %u)", DEFAULT_ANCESTOR_SIZE_LIMIT)); strUsage += HelpMessageOpt("-limitdescendantcount=<n>", strprintf("Do not accept transactions if any ancestor would have <n> or more in-mempool descendants (default: %u)", DEFAULT_DESCENDANT_LIMIT)); strUsage += HelpMessageOpt("-limitdescendantsize=<n>", strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).", DEFAULT_DESCENDANT_SIZE_LIMIT)); strUsage += HelpMessageOpt("-bip9params=deployment:start:end", "Use given start/end times for specified BIP9 deployment (regtest-only)"); } std::string debugCategories = "addrman, alert, bench, cmpctblock, coindb, db, http, leveldb, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq"; // Don't translate these and qt below if (mode == HMM_BITCOIN_QT) debugCategories += ", qt"; strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " + _("If <category> is not supplied or if <category> = 1, output all debugging information.") + _("<category> can be:") + " " + debugCategories + "."); if (showDebug) strUsage += HelpMessageOpt("-nodebug", "Turn off debugging messages, same as -debug=0"); strUsage += HelpMessageOpt("-help-debug", _("Show all debugging options (usage: --help -help-debug)")); strUsage += HelpMessageOpt("-logips", strprintf(_("Include IP addresses in debug output (default: %u)"), DEFAULT_LOGIPS)); strUsage += HelpMessageOpt("-logtimestamps", strprintf(_("Prepend debug output with timestamp (default: %u)"), DEFAULT_LOGTIMESTAMPS)); if (showDebug) { strUsage += HelpMessageOpt("-logtimemicros", strprintf("Add microsecond precision to debug timestamps (default: %u)", DEFAULT_LOGTIMEMICROS)); strUsage += HelpMessageOpt("-mocktime=<n>", "Replace actual time with <n> seconds since epoch (default: 0)"); strUsage += HelpMessageOpt("-maxsigcachesize=<n>", strprintf("Limit size of signature cache to <n> MiB (default: %u)", DEFAULT_MAX_SIG_CACHE_SIZE)); strUsage += HelpMessageOpt("-maxtipage=<n>", strprintf("Maximum tip age in seconds to consider node in initial block download (default: %u)", DEFAULT_MAX_TIP_AGE)); } strUsage += HelpMessageOpt("-minrelaytxfee=<amt>", strprintf(_("Fees (in %s/kB) smaller than this are considered zero fee for relaying, mining and transaction creation (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_MIN_RELAY_TX_FEE))); strUsage += HelpMessageOpt("-maxtxfee=<amt>", strprintf(_("Maximum total fees (in %s) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MAXFEE))); strUsage += HelpMessageOpt("-printtoconsole", _("Send trace/debug info to console instead of debug.log file")); if (showDebug) { strUsage += HelpMessageOpt("-printpriority", strprintf("Log transaction fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY)); } strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)")); AppendParamsHelpMessages(strUsage, showDebug); strUsage += HelpMessageGroup(_("Node relay options:")); if (showDebug) { strUsage += HelpMessageOpt("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)", "testnet/regtest only; ", !Params(CBaseChainParams::TESTNET).RequireStandard())); strUsage += HelpMessageOpt("-incrementalrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to define cost of relay, used for mempool limiting and BIP 125 replacement. (default: %s)", CURRENCY_UNIT, FormatMoney(DEFAULT_INCREMENTAL_RELAY_FEE))); strUsage += HelpMessageOpt("-dustrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to defined dust, the value of an output such that it will cost about 1/3 of its value in fees at this fee rate to spend it. (default: %s)", CURRENCY_UNIT, FormatMoney(DUST_RELAY_TX_FEE))); } strUsage += HelpMessageOpt("-bytespersigop", strprintf(_("Equivalent bytes per sigop in transactions for relay and mining (default: %u)"), DEFAULT_BYTES_PER_SIGOP)); strUsage += HelpMessageOpt("-datacarrier", strprintf(_("Relay and mine data carrier transactions (default: %u)"), DEFAULT_ACCEPT_DATACARRIER)); strUsage += HelpMessageOpt("-datacarriersize", strprintf(_("Maximum size of data in data carrier transactions we relay and mine (default: %u)"), MAX_OP_RETURN_RELAY)); strUsage += HelpMessageOpt("-mempoolreplacement", strprintf(_("Enable transaction replacement in the memory pool (default: %u)"), DEFAULT_ENABLE_REPLACEMENT)); strUsage += HelpMessageGroup(_("Block creation options:")); strUsage += HelpMessageOpt("-blockmaxweight=<n>", strprintf(_("Set maximum BIP141 block weight (default: %d)"), DEFAULT_BLOCK_MAX_WEIGHT)); strUsage += HelpMessageOpt("-blockmaxsize=<n>", strprintf(_("Set maximum block size in bytes (default: %d)"), DEFAULT_BLOCK_MAX_SIZE)); strUsage += HelpMessageOpt("-blockmintxfee=<amt>", strprintf(_("Set lowest fee rate (in %s/kB) for transactions to be included in block creation. (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_BLOCK_MIN_TX_FEE))); if (showDebug) strUsage += HelpMessageOpt("-blockversion=<n>", "Override block version to test forking scenarios"); strUsage += HelpMessageGroup(_("RPC server options:")); strUsage += HelpMessageOpt("-server", _("Accept command line and JSON-RPC commands")); strUsage += HelpMessageOpt("-rest", strprintf(_("Accept public REST requests (default: %u)"), DEFAULT_REST_ENABLE)); strUsage += HelpMessageOpt("-rpcbind=<addr>[:port]", _("Bind to given address to listen for JSON-RPC connections. This option is ignored unless -rpcallowip is also passed. Port is optional and overrides -rpcport. Use [host]:port notation for IPv6. This option can be specified multiple times (default: 127.0.0.1 and ::1 i.e., localhost, or if -rpcallowip has been specified, 0.0.0.0 and :: i.e., all addresses)")); strUsage += HelpMessageOpt("-rpccookiefile=<loc>", _("Location of the auth cookie (default: data dir)")); strUsage += HelpMessageOpt("-rpcuser=<user>", _("Username for JSON-RPC connections")); strUsage += HelpMessageOpt("-rpcpassword=<pw>", _("Password for JSON-RPC connections")); strUsage += HelpMessageOpt("-rpcauth=<userpw>", _("Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times")); strUsage += HelpMessageOpt("-rpcport=<port>", strprintf(_("Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)"), BaseParams(CBaseChainParams::MAIN).RPCPort(), BaseParams(CBaseChainParams::TESTNET).RPCPort())); strUsage += HelpMessageOpt("-rpcallowip=<ip>", _("Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times")); strUsage += HelpMessageOpt("-rpcthreads=<n>", strprintf(_("Set the number of threads to service RPC calls (default: %d)"), DEFAULT_HTTP_THREADS)); if (showDebug) { strUsage += HelpMessageOpt("-rpcworkqueue=<n>", strprintf("Set the depth of the work queue to service RPC calls (default: %d)", DEFAULT_HTTP_WORKQUEUE)); strUsage += HelpMessageOpt("-rpcservertimeout=<n>", strprintf("Timeout during HTTP requests (default: %d)", DEFAULT_HTTP_SERVER_TIMEOUT)); } return strUsage; } std::string LicenseInfo() { const std::string URL_SOURCE_CODE = "<https://github.com/bitcoin/bitcoin>"; const std::string URL_WEBSITE = "<https://bitcoincore.org>"; return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + " ") + "\n" + "\n" + strprintf(_("Please contribute if you find %s useful. " "Visit %s for further information about the software."), PACKAGE_NAME, URL_WEBSITE) + "\n" + strprintf(_("The source code is available from %s."), URL_SOURCE_CODE) + "\n" + "\n" + _("This is experimental software.") + "\n" + strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s"), "COPYING", "<https://opensource.org/licenses/MIT>") + "\n" + "\n" + strprintf(_("This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit %s and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard."), "<https://www.openssl.org>") + "\n"; } static void BlockNotifyCallback(bool initialSync, const CBlockIndex *pBlockIndex) { if (initialSync || !pBlockIndex) return; std::string strCmd = GetArg("-blocknotify", ""); boost::replace_all(strCmd, "%s", pBlockIndex->GetBlockHash().GetHex()); boost::thread t(runCommand, strCmd); // thread runs free } static bool fHaveGenesis = false; static boost::mutex cs_GenesisWait; static CConditionVariable condvar_GenesisWait; static void BlockNotifyGenesisWait(bool, const CBlockIndex *pBlockIndex) { if (pBlockIndex != NULL) { { boost::unique_lock<boost::mutex> lock_GenesisWait(cs_GenesisWait); fHaveGenesis = true; } condvar_GenesisWait.notify_all(); } } struct CImportingNow { CImportingNow() { assert(fImporting == false); fImporting = true; } ~CImportingNow() { assert(fImporting == true); fImporting = false; } }; // If we're using -prune with -reindex, then delete block files that will be ignored by the // reindex. Since reindexing works by starting at block file 0 and looping until a blockfile // is missing, do the same here to delete any later block files after a gap. Also delete all // rev files since they'll be rewritten by the reindex anyway. This ensures that vinfoBlockFile // is in sync with what's actually on disk by the time we start downloading, so that pruning // works correctly. void CleanupBlockRevFiles() { std::map<std::string, boost::filesystem::path> mapBlockFiles; // Glob all blk?????.dat and rev?????.dat files from the blocks directory. // Remove the rev files immediately and insert the blk file paths into an // ordered map keyed by block file index. LogPrintf("Removing unusable blk?????.dat and rev?????.dat files for -reindex with -prune\n"); boost::filesystem::path blocksdir = GetDataDir() / "blocks"; for (boost::filesystem::directory_iterator it(blocksdir); it != boost::filesystem::directory_iterator(); it++) { if (is_regular_file(*it) && it->path().filename().string().length() == 12 && it->path().filename().string().substr(8,4) == ".dat") { if (it->path().filename().string().substr(0,3) == "blk") mapBlockFiles[it->path().filename().string().substr(3,5)] = it->path(); else if (it->path().filename().string().substr(0,3) == "rev") remove(it->path()); } } // Remove all block files that aren't part of a contiguous set starting at // zero by walking the ordered map (keys are block file indices) by // keeping a separate counter. Once we hit a gap (or if 0 doesn't exist) // start removing block files. int nContigCounter = 0; BOOST_FOREACH(const PAIRTYPE(std::string, boost::filesystem::path)& item, mapBlockFiles) { if (atoi(item.first) == nContigCounter) { nContigCounter++; continue; } remove(item.second); } } void ThreadImport(std::vector<boost::filesystem::path> vImportFiles) { const CChainParams& chainparams = Params(); RenameThread("bitcoin-loadblk"); { CImportingNow imp; // -reindex if (fReindex) { int nFile = 0; while (true) { CDiskBlockPos pos(nFile, 0); if (!boost::filesystem::exists(GetBlockPosFilename(pos, "blk"))) break; // No block files left to reindex FILE *file = OpenBlockFile(pos, true); if (!file) break; // This error is logged in OpenBlockFile LogPrintf("Reindexing block file blk%05u.dat...\n", (unsigned int)nFile); LoadExternalBlockFile(chainparams, file, &pos); nFile++; } pblocktree->WriteReindexing(false); fReindex = false; LogPrintf("Reindexing finished\n"); // To avoid ending up in a situation without genesis block, re-try initializing (no-op if reindexing worked): InitBlockIndex(chainparams); } // hardcoded $DATADIR/bootstrap.dat boost::filesystem::path pathBootstrap = GetDataDir() / "bootstrap.dat"; if (boost::filesystem::exists(pathBootstrap)) { FILE *file = fopen(pathBootstrap.string().c_str(), "rb"); if (file) { boost::filesystem::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old"; LogPrintf("Importing bootstrap.dat...\n"); LoadExternalBlockFile(chainparams, file); RenameOver(pathBootstrap, pathBootstrapOld); } else { LogPrintf("Warning: Could not open bootstrap file %s\n", pathBootstrap.string()); } } // -loadblock= BOOST_FOREACH(const boost::filesystem::path& path, vImportFiles) { FILE *file = fopen(path.string().c_str(), "rb"); if (file) { LogPrintf("Importing blocks file %s...\n", path.string()); LoadExternalBlockFile(chainparams, file); } else { LogPrintf("Warning: Could not open blocks file %s\n", path.string()); } } // scan for better chains in the block chain database, that are not yet connected in the active best chain CValidationState state; if (!ActivateBestChain(state, chainparams)) { LogPrintf("Failed to connect best block"); StartShutdown(); } if (GetBoolArg("-stopafterblockimport", DEFAULT_STOPAFTERBLOCKIMPORT)) { LogPrintf("Stopping after block import\n"); StartShutdown(); } } // End scope of CImportingNow LoadMempool(); fDumpMempoolLater = !fRequestShutdown; } /** Sanity checks * Ensure that Bitcoin is running in a usable environment with all * necessary library support. */ bool InitSanityCheck(void) { if(!ECC_InitSanityCheck()) { InitError("Elliptic curve cryptography sanity check failure. Aborting."); return false; } if (!glibc_sanity_test() || !glibcxx_sanity_test()) return false; if (!Random_SanityCheck()) { InitError("OS cryptographic RNG sanity check failure. Aborting."); return false; } return true; } bool AppInitServers(boost::thread_group& threadGroup) { RPCServer::OnStarted(&OnRPCStarted); RPCServer::OnStopped(&OnRPCStopped); RPCServer::OnPreCommand(&OnRPCPreCommand); if (!InitHTTPServer()) return false; if (!StartRPC()) return false; if (!StartHTTPRPC()) return false; if (GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST()) return false; if (!StartHTTPServer()) return false; return true; } // Parameter interaction based on rules void InitParameterInteraction() { // when specifying an explicit binding address, you want to listen on it // even when -connect or -proxy is specified if (IsArgSet("-bind")) { if (SoftSetBoolArg("-listen", true)) LogPrintf("%s: parameter interaction: -bind set -> setting -listen=1\n", __func__); } if (IsArgSet("-whitebind")) { if (SoftSetBoolArg("-listen", true)) LogPrintf("%s: parameter interaction: -whitebind set -> setting -listen=1\n", __func__); } if (mapMultiArgs.count("-connect") && mapMultiArgs.at("-connect").size() > 0) { // when only connecting to trusted nodes, do not seed via DNS, or listen by default if (SoftSetBoolArg("-dnsseed", false)) LogPrintf("%s: parameter interaction: -connect set -> setting -dnsseed=0\n", __func__); if (SoftSetBoolArg("-listen", false)) LogPrintf("%s: parameter interaction: -connect set -> setting -listen=0\n", __func__); } if (IsArgSet("-proxy")) { // to protect privacy, do not listen by default if a default proxy server is specified if (SoftSetBoolArg("-listen", false)) LogPrintf("%s: parameter interaction: -proxy set -> setting -listen=0\n", __func__); // to protect privacy, do not use UPNP when a proxy is set. The user may still specify -listen=1 // to listen locally, so don't rely on this happening through -listen below. if (SoftSetBoolArg("-upnp", false)) LogPrintf("%s: parameter interaction: -proxy set -> setting -upnp=0\n", __func__); // to protect privacy, do not discover addresses by default if (SoftSetBoolArg("-discover", false)) LogPrintf("%s: parameter interaction: -proxy set -> setting -discover=0\n", __func__); } if (!GetBoolArg("-listen", DEFAULT_LISTEN)) { // do not map ports or try to retrieve public IP when not listening (pointless) if (SoftSetBoolArg("-upnp", false)) LogPrintf("%s: parameter interaction: -listen=0 -> setting -upnp=0\n", __func__); if (SoftSetBoolArg("-discover", false)) LogPrintf("%s: parameter interaction: -listen=0 -> setting -discover=0\n", __func__); if (SoftSetBoolArg("-listenonion", false)) LogPrintf("%s: parameter interaction: -listen=0 -> setting -listenonion=0\n", __func__); } if (IsArgSet("-externalip")) { // if an explicit public IP is specified, do not try to find others if (SoftSetBoolArg("-discover", false)) LogPrintf("%s: parameter interaction: -externalip set -> setting -discover=0\n", __func__); } // disable whitelistrelay in blocksonly mode if (GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)) { if (SoftSetBoolArg("-whitelistrelay", false)) LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0\n", __func__); } // Forcing relay from whitelisted hosts implies we will accept relays from them in the first place. if (GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) { if (SoftSetBoolArg("-whitelistrelay", true)) LogPrintf("%s: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1\n", __func__); } } static std::string ResolveErrMsg(const char * const optname, const std::string& strBind) { return strprintf(_("Cannot resolve -%s address: '%s'"), optname, strBind); } void InitLogging() { fPrintToConsole = GetBoolArg("-printtoconsole", false); fLogTimestamps = GetBoolArg("-logtimestamps", DEFAULT_LOGTIMESTAMPS); fLogTimeMicros = GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS); fLogIPs = GetBoolArg("-logips", DEFAULT_LOGIPS); LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); LogPrintf("Bitcoin version %s\n", FormatFullVersion()); } namespace { // Variables internal to initialization process only ServiceFlags nRelevantServices = NODE_NETWORK; int nMaxConnections; int nUserMaxConnections; int nFD; ServiceFlags nLocalServices = NODE_NETWORK; } [[noreturn]] static void new_handler_terminate() { // Rather than throwing std::bad-alloc if allocation fails, terminate // immediately to (try to) avoid chain corruption. // Since LogPrintf may itself allocate memory, set the handler directly // to terminate first. std::set_new_handler(std::terminate); LogPrintf("Error: Out of memory. Terminating.\n"); // The log was successful, terminate now. std::terminate(); }; bool AppInitBasicSetup() { // ********************************************************* Step 1: setup #ifdef _MSC_VER // Turn off Microsoft heap dump noise _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0)); #endif #if _MSC_VER >= 1400 // Disable confusing "helpful" text message on abort, Ctrl-C _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif #ifdef WIN32 // Enable Data Execution Prevention (DEP) // Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008 // A failure is non-critical and needs no further attention! #ifndef PROCESS_DEP_ENABLE // We define this here, because GCCs winbase.h limits this to _WIN32_WINNT >= 0x0601 (Windows 7), // which is not correct. Can be removed, when GCCs winbase.h is fixed! #define PROCESS_DEP_ENABLE 0x00000001 #endif typedef BOOL (WINAPI *PSETPROCDEPPOL)(DWORD); PSETPROCDEPPOL setProcDEPPol = (PSETPROCDEPPOL)GetProcAddress(GetModuleHandleA("Kernel32.dll"), "SetProcessDEPPolicy"); if (setProcDEPPol != NULL) setProcDEPPol(PROCESS_DEP_ENABLE); #endif if (!SetupNetworking()) return InitError("Initializing networking failed"); #ifndef WIN32 if (!GetBoolArg("-sysperms", false)) { umask(077); } // Clean shutdown on SIGTERM struct sigaction sa; sa.sa_handler = HandleSIGTERM; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; sigaction(SIGTERM, &sa, NULL); sigaction(SIGINT, &sa, NULL); // Reopen debug.log on SIGHUP struct sigaction sa_hup; sa_hup.sa_handler = HandleSIGHUP; sigemptyset(&sa_hup.sa_mask); sa_hup.sa_flags = 0; sigaction(SIGHUP, &sa_hup, NULL); // Ignore SIGPIPE, otherwise it will bring the daemon down if the client closes unexpectedly signal(SIGPIPE, SIG_IGN); #endif std::set_new_handler(new_handler_terminate); return true; } bool AppInitParameterInteraction() { const CChainParams& chainparams = Params(); // ********************************************************* Step 2: parameter interactions // also see: InitParameterInteraction() // if using block pruning, then disallow txindex if (GetArg("-prune", 0)) { if (GetBoolArg("-txindex", DEFAULT_TXINDEX)) return InitError(_("Prune mode is incompatible with -txindex.")); } // Make sure enough file descriptors are available int nBind = std::max( (mapMultiArgs.count("-bind") ? mapMultiArgs.at("-bind").size() : 0) + (mapMultiArgs.count("-whitebind") ? mapMultiArgs.at("-whitebind").size() : 0), size_t(1)); nUserMaxConnections = GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS); nMaxConnections = std::max(nUserMaxConnections, 0); // Trim requested connection counts, to fit into system limitations nMaxConnections = std::max(std::min(nMaxConnections, (int)(FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS)), 0); nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS); if (nFD < MIN_CORE_FILEDESCRIPTORS) return InitError(_("Not enough file descriptors available.")); nMaxConnections = std::min(nFD - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS, nMaxConnections); if (nMaxConnections < nUserMaxConnections) InitWarning(strprintf(_("Reducing -maxconnections from %d to %d, because of system limitations."), nUserMaxConnections, nMaxConnections)); // ********************************************************* Step 3: parameter-to-internal-flags fDebug = mapMultiArgs.count("-debug"); // Special-case: if -debug=0/-nodebug is set, turn off debugging messages if (fDebug) { const std::vector<std::string>& categories = mapMultiArgs.at("-debug"); if (GetBoolArg("-nodebug", false) || find(categories.begin(), categories.end(), std::string("0")) != categories.end()) fDebug = false; } // Check for -debugnet if (GetBoolArg("-debugnet", false)) InitWarning(_("Unsupported argument -debugnet ignored, use -debug=net.")); // Check for -socks - as this is a privacy risk to continue, exit here if (IsArgSet("-socks")) return InitError(_("Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported.")); // Check for -tor - as this is a privacy risk to continue, exit here if (GetBoolArg("-tor", false)) return InitError(_("Unsupported argument -tor found, use -onion.")); if (GetBoolArg("-benchmark", false)) InitWarning(_("Unsupported argument -benchmark ignored, use -debug=bench.")); if (GetBoolArg("-whitelistalwaysrelay", false)) InitWarning(_("Unsupported argument -whitelistalwaysrelay ignored, use -whitelistrelay and/or -whitelistforcerelay.")); if (IsArgSet("-blockminsize")) InitWarning("Unsupported argument -blockminsize ignored."); // Checkmempool and checkblockindex default to true in regtest mode int ratio = std::min<int>(std::max<int>(GetArg("-checkmempool", chainparams.DefaultConsistencyChecks() ? 1 : 0), 0), 1000000); if (ratio != 0) { mempool.setSanityCheck(1.0 / ratio); } fCheckBlockIndex = GetBoolArg("-checkblockindex", chainparams.DefaultConsistencyChecks()); fCheckpointsEnabled = GetBoolArg("-checkpoints", DEFAULT_CHECKPOINTS_ENABLED); hashAssumeValid = uint256S(GetArg("-assumevalid", chainparams.GetConsensus().defaultAssumeValid.GetHex())); if (!hashAssumeValid.IsNull()) LogPrintf("Assuming ancestors of block %s have valid signatures.\n", hashAssumeValid.GetHex()); else LogPrintf("Validating signatures for all blocks.\n"); // mempool limits int64_t nMempoolSizeMax = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; int64_t nMempoolSizeMin = GetArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 * 40; if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin) return InitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0))); // incremental relay fee sets the minimum feerate increase necessary for BIP 125 replacement in the mempool // and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting. if (IsArgSet("-incrementalrelayfee")) { CAmount n = 0; if (!ParseMoney(GetArg("-incrementalrelayfee", ""), n)) return InitError(AmountErrMsg("incrementalrelayfee", GetArg("-incrementalrelayfee", ""))); incrementalRelayFee = CFeeRate(n); } // -par=0 means autodetect, but nScriptCheckThreads==0 means no concurrency nScriptCheckThreads = GetArg("-par", DEFAULT_SCRIPTCHECK_THREADS); if (nScriptCheckThreads <= 0) nScriptCheckThreads += GetNumCores(); if (nScriptCheckThreads <= 1) nScriptCheckThreads = 0; else if (nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS) nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS; // block pruning; get the amount of disk space (in MiB) to allot for block & undo files int64_t nPruneArg = GetArg("-prune", 0); if (nPruneArg < 0) { return InitError(_("Prune cannot be configured with a negative value.")); } nPruneTarget = (uint64_t) nPruneArg * 1024 * 1024; if (nPruneArg == 1) { // manual pruning: -prune=1 LogPrintf("Block pruning enabled. Use RPC call pruneblockchain(height) to manually prune block and undo files.\n"); nPruneTarget = std::numeric_limits<uint64_t>::max(); fPruneMode = true; } else if (nPruneTarget) { if (nPruneTarget < MIN_DISK_SPACE_FOR_BLOCK_FILES) { return InitError(strprintf(_("Prune configured below the minimum of %d MiB. Please use a higher number."), MIN_DISK_SPACE_FOR_BLOCK_FILES / 1024 / 1024)); } LogPrintf("Prune configured to target %uMiB on disk for block and undo files.\n", nPruneTarget / 1024 / 1024); fPruneMode = true; } RegisterAllCoreRPCCommands(tableRPC); #ifdef ENABLE_WALLET RegisterWalletRPCCommands(tableRPC); #endif nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); if (nConnectTimeout <= 0) nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; // Fee-per-kilobyte amount required for mempool acceptance and relay // If you are mining, be careful setting this: // if you set it to zero then // a transaction spammer can cheaply fill blocks using // 0-fee transactions. It should be set above the real // cost to you of processing a transaction. if (IsArgSet("-minrelaytxfee")) { CAmount n = 0; if (!ParseMoney(GetArg("-minrelaytxfee", ""), n)) { return InitError(AmountErrMsg("minrelaytxfee", GetArg("-minrelaytxfee", ""))); } // High fee check is done afterward in CWallet::ParameterInteraction() ::minRelayTxFee = CFeeRate(n); } else if (incrementalRelayFee > ::minRelayTxFee) { // Allow only setting incrementalRelayFee to control both ::minRelayTxFee = incrementalRelayFee; LogPrintf("Increasing minrelaytxfee to %s to match incrementalrelayfee\n",::minRelayTxFee.ToString()); } // Sanity check argument for min fee for including tx in block // TODO: Harmonize which arguments need sanity checking and where that happens if (IsArgSet("-blockmintxfee")) { CAmount n = 0; if (!ParseMoney(GetArg("-blockmintxfee", ""), n)) return InitError(AmountErrMsg("blockmintxfee", GetArg("-blockmintxfee", ""))); } // Feerate used to define dust. Shouldn't be changed lightly as old // implementations may inadvertently create non-standard transactions if (IsArgSet("-dustrelayfee")) { CAmount n = 0; if (!ParseMoney(GetArg("-dustrelayfee", ""), n) || 0 == n) return InitError(AmountErrMsg("dustrelayfee", GetArg("-dustrelayfee", ""))); dustRelayFee = CFeeRate(n); } fRequireStandard = !GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()); if (chainparams.RequireStandard() && !fRequireStandard) return InitError(strprintf("acceptnonstdtxn is not currently supported for %s chain", chainparams.NetworkIDString())); nBytesPerSigOp = GetArg("-bytespersigop", nBytesPerSigOp); #ifdef ENABLE_WALLET if (!CWallet::ParameterInteraction()) return false; #endif fIsBareMultisigStd = GetBoolArg("-permitbaremultisig", DEFAULT_PERMIT_BAREMULTISIG); fAcceptDatacarrier = GetBoolArg("-datacarrier", DEFAULT_ACCEPT_DATACARRIER); nMaxDatacarrierBytes = GetArg("-datacarriersize", nMaxDatacarrierBytes); // Option to startup with mocktime set (used for regression testing): SetMockTime(GetArg("-mocktime", 0)); // SetMockTime(0) is a no-op if (GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS)) nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM); if (GetArg("-rpcserialversion", DEFAULT_RPC_SERIALIZE_VERSION) < 0) return InitError("rpcserialversion must be non-negative."); if (GetArg("-rpcserialversion", DEFAULT_RPC_SERIALIZE_VERSION) > 1) return InitError("unknown rpcserialversion requested."); nMaxTipAge = GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE); fEnableReplacement = GetBoolArg("-mempoolreplacement", DEFAULT_ENABLE_REPLACEMENT); if ((!fEnableReplacement) && IsArgSet("-mempoolreplacement")) { // Minimal effort at forwards compatibility std::string strReplacementModeList = GetArg("-mempoolreplacement", ""); // default is impossible std::vector<std::string> vstrReplacementModes; boost::split(vstrReplacementModes, strReplacementModeList, boost::is_any_of(",")); fEnableReplacement = (std::find(vstrReplacementModes.begin(), vstrReplacementModes.end(), "fee") != vstrReplacementModes.end()); } if (mapMultiArgs.count("-bip9params")) { // Allow overriding BIP9 parameters for testing if (!chainparams.MineBlocksOnDemand()) { return InitError("BIP9 parameters may only be overridden on regtest."); } const std::vector<std::string>& deployments = mapMultiArgs.at("-bip9params"); for (auto i : deployments) { std::vector<std::string> vDeploymentParams; boost::split(vDeploymentParams, i, boost::is_any_of(":")); if (vDeploymentParams.size() != 3) { return InitError("BIP9 parameters malformed, expecting deployment:start:end"); } int64_t nStartTime, nTimeout; if (!ParseInt64(vDeploymentParams[1], &nStartTime)) { return InitError(strprintf("Invalid nStartTime (%s)", vDeploymentParams[1])); } if (!ParseInt64(vDeploymentParams[2], &nTimeout)) { return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2])); } bool found = false; for (int j=0; j<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) { if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[j].name) == 0) { UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(j), nStartTime, nTimeout); found = true; LogPrintf("Setting BIP9 activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout); break; } } if (!found) { return InitError(strprintf("Invalid deployment (%s)", vDeploymentParams[0])); } } } return true; } static bool LockDataDirectory(bool probeOnly) { std::string strDataDir = GetDataDir().string(); // Make sure only a single Bitcoin process is using the data directory. boost::filesystem::path pathLockFile = GetDataDir() / ".lock"; FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist. if (file) fclose(file); try { static boost::interprocess::file_lock lock(pathLockFile.string().c_str()); if (!lock.try_lock()) { return InitError(strprintf(_("Cannot obtain a lock on data directory %s. %s is probably already running."), strDataDir, _(PACKAGE_NAME))); } if (probeOnly) { lock.unlock(); } } catch(const boost::interprocess::interprocess_exception& e) { return InitError(strprintf(_("Cannot obtain a lock on data directory %s. %s is probably already running.") + " %s.", strDataDir, _(PACKAGE_NAME), e.what())); } return true; } bool AppInitSanityChecks() { // ********************************************************* Step 4: sanity checks // Initialize elliptic curve code ECC_Start(); globalVerifyHandle.reset(new ECCVerifyHandle()); // Sanity check if (!InitSanityCheck()) return InitError(strprintf(_("Initialization sanity check failed. %s is shutting down."), _(PACKAGE_NAME))); // Probe the data directory lock to give an early error message, if possible return LockDataDirectory(true); } bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) { const CChainParams& chainparams = Params(); // ********************************************************* Step 4a: application initialization // After daemonization get the data directory lock again and hold on to it until exit // This creates a slight window for a race condition to happen, however this condition is harmless: it // will at most make us exit without printing a message to console. if (!LockDataDirectory(false)) { // Detailed error printed inside LockDataDirectory return false; } #ifndef WIN32 CreatePidFile(GetPidFile(), getpid()); #endif if (GetBoolArg("-shrinkdebugfile", !fDebug)) { // Do this first since it both loads a bunch of debug.log into memory, // and because this needs to happen before any other debug.log printing ShrinkDebugFile(); } if (fPrintToDebugLog) OpenDebugLog(); if (!fLogTimestamps) LogPrintf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); LogPrintf("Using data directory %s\n", GetDataDir().string()); LogPrintf("Using config file %s\n", GetConfigFile(GetArg("-conf", BITCOIN_CONF_FILENAME)).string()); LogPrintf("Using at most %i automatic connections (%i file descriptors available)\n", nMaxConnections, nFD); InitSignatureCache(); LogPrintf("Using %u threads for script verification\n", nScriptCheckThreads); if (nScriptCheckThreads) { for (int i=0; i<nScriptCheckThreads-1; i++) threadGroup.create_thread(&ThreadScriptCheck); } // Start the lightweight task scheduler thread CScheduler::Function serviceLoop = boost::bind(&CScheduler::serviceQueue, &scheduler); threadGroup.create_thread(boost::bind(&TraceThread<CScheduler::Function>, "scheduler", serviceLoop)); /* Start the RPC server already. It will be started in "warmup" mode * and not really process calls already (but it will signify connections * that the server is there and will be ready later). Warmup mode will * be disabled when initialisation is finished. */ if (GetBoolArg("-server", false)) { uiInterface.InitMessage.connect(SetRPCWarmupStatus); if (!AppInitServers(threadGroup)) return InitError(_("Unable to start HTTP server. See debug log for details.")); } int64_t nStart; // ********************************************************* Step 5: verify wallet database integrity #ifdef ENABLE_WALLET if (!CWallet::Verify()) return false; #endif // ********************************************************* Step 6: network initialization // Note that we absolutely cannot open any actual connections // until the very end ("start node") as the UTXO/block state // is not yet setup and may end up being set up twice if we // need to reindex later. assert(!g_connman); g_connman = std::unique_ptr<CConnman>(new CConnman(GetRand(std::numeric_limits<uint64_t>::max()), GetRand(std::numeric_limits<uint64_t>::max()))); CConnman& connman = *g_connman; peerLogic.reset(new PeerLogicValidation(&connman)); RegisterValidationInterface(peerLogic.get()); RegisterNodeSignals(GetNodeSignals()); // sanitize comments per BIP-0014, format user agent and check total size std::vector<std::string> uacomments; if (mapMultiArgs.count("-uacomment")) { BOOST_FOREACH(std::string cmt, mapMultiArgs.at("-uacomment")) { if (cmt != SanitizeString(cmt, SAFE_CHARS_UA_COMMENT)) return InitError(strprintf(_("User Agent comment (%s) contains unsafe characters."), cmt)); uacomments.push_back(cmt); } } strSubVersion = FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, uacomments); if (strSubVersion.size() > MAX_SUBVERSION_LENGTH) { return InitError(strprintf(_("Total length of network version string (%i) exceeds maximum length (%i). Reduce the number or size of uacomments."), strSubVersion.size(), MAX_SUBVERSION_LENGTH)); } if (mapMultiArgs.count("-onlynet")) { std::set<enum Network> nets; BOOST_FOREACH(const std::string& snet, mapMultiArgs.at("-onlynet")) { enum Network net = ParseNetwork(snet); if (net == NET_UNROUTABLE) return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet)); nets.insert(net); } for (int n = 0; n < NET_MAX; n++) { enum Network net = (enum Network)n; if (!nets.count(net)) SetLimited(net); } } if (mapMultiArgs.count("-whitelist")) { BOOST_FOREACH(const std::string& net, mapMultiArgs.at("-whitelist")) { CSubNet subnet; LookupSubNet(net.c_str(), subnet); if (!subnet.IsValid()) return InitError(strprintf(_("Invalid netmask specified in -whitelist: '%s'"), net)); connman.AddWhitelistedRange(subnet); } } // Check for host lookup allowed before parsing any network related parameters fNameLookup = GetBoolArg("-dns", DEFAULT_NAME_LOOKUP); bool proxyRandomize = GetBoolArg("-proxyrandomize", DEFAULT_PROXYRANDOMIZE); // -proxy sets a proxy for all outgoing network traffic // -noproxy (or -proxy=0) as well as the empty string can be used to not set a proxy, this is the default std::string proxyArg = GetArg("-proxy", ""); SetLimited(NET_TOR); if (proxyArg != "" && proxyArg != "0") { CService proxyAddr; if (!Lookup(proxyArg.c_str(), proxyAddr, 9050, fNameLookup)) { return InitError(strprintf(_("Invalid -proxy address or hostname: '%s'"), proxyArg)); } proxyType addrProxy = proxyType(proxyAddr, proxyRandomize); if (!addrProxy.IsValid()) return InitError(strprintf(_("Invalid -proxy address or hostname: '%s'"), proxyArg)); SetProxy(NET_IPV4, addrProxy); SetProxy(NET_IPV6, addrProxy); SetProxy(NET_TOR, addrProxy); SetNameProxy(addrProxy); SetLimited(NET_TOR, false); // by default, -proxy sets onion as reachable, unless -noonion later } // -onion can be used to set only a proxy for .onion, or override normal proxy for .onion addresses // -noonion (or -onion=0) disables connecting to .onion entirely // An empty string is used to not override the onion proxy (in which case it defaults to -proxy set above, or none) std::string onionArg = GetArg("-onion", ""); if (onionArg != "") { if (onionArg == "0") { // Handle -noonion/-onion=0 SetLimited(NET_TOR); // set onions as unreachable } else { CService onionProxy; if (!Lookup(onionArg.c_str(), onionProxy, 9050, fNameLookup)) { return InitError(strprintf(_("Invalid -onion address or hostname: '%s'"), onionArg)); } proxyType addrOnion = proxyType(onionProxy, proxyRandomize); if (!addrOnion.IsValid()) return InitError(strprintf(_("Invalid -onion address or hostname: '%s'"), onionArg)); SetProxy(NET_TOR, addrOnion); SetLimited(NET_TOR, false); } } // see Step 2: parameter interactions for more information about these fListen = GetBoolArg("-listen", DEFAULT_LISTEN); fDiscover = GetBoolArg("-discover", true); fRelayTxes = !GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY); if (fListen) { bool fBound = false; if (mapMultiArgs.count("-bind")) { BOOST_FOREACH(const std::string& strBind, mapMultiArgs.at("-bind")) { CService addrBind; if (!Lookup(strBind.c_str(), addrBind, GetListenPort(), false)) return InitError(ResolveErrMsg("bind", strBind)); fBound |= Bind(connman, addrBind, (BF_EXPLICIT | BF_REPORT_ERROR)); } } if (mapMultiArgs.count("-whitebind")) { BOOST_FOREACH(const std::string& strBind, mapMultiArgs.at("-whitebind")) { CService addrBind; if (!Lookup(strBind.c_str(), addrBind, 0, false)) return InitError(ResolveErrMsg("whitebind", strBind)); if (addrBind.GetPort() == 0) return InitError(strprintf(_("Need to specify a port with -whitebind: '%s'"), strBind)); fBound |= Bind(connman, addrBind, (BF_EXPLICIT | BF_REPORT_ERROR | BF_WHITELIST)); } } if (!mapMultiArgs.count("-bind") && !mapMultiArgs.count("-whitebind")) { struct in_addr inaddr_any; inaddr_any.s_addr = INADDR_ANY; fBound |= Bind(connman, CService(in6addr_any, GetListenPort()), BF_NONE); fBound |= Bind(connman, CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE); } if (!fBound) return InitError(_("Failed to listen on any port. Use -listen=0 if you want this.")); } if (mapMultiArgs.count("-externalip")) { BOOST_FOREACH(const std::string& strAddr, mapMultiArgs.at("-externalip")) { CService addrLocal; if (Lookup(strAddr.c_str(), addrLocal, GetListenPort(), fNameLookup) && addrLocal.IsValid()) AddLocal(addrLocal, LOCAL_MANUAL); else return InitError(ResolveErrMsg("externalip", strAddr)); } } if (mapMultiArgs.count("-seednode")) { BOOST_FOREACH(const std::string& strDest, mapMultiArgs.at("-seednode")) connman.AddOneShot(strDest); } #if ENABLE_ZMQ pzmqNotificationInterface = CZMQNotificationInterface::Create(); if (pzmqNotificationInterface) { RegisterValidationInterface(pzmqNotificationInterface); } #endif uint64_t nMaxOutboundLimit = 0; //unlimited unless -maxuploadtarget is set uint64_t nMaxOutboundTimeframe = MAX_UPLOAD_TIMEFRAME; if (IsArgSet("-maxuploadtarget")) { nMaxOutboundLimit = GetArg("-maxuploadtarget", DEFAULT_MAX_UPLOAD_TARGET)*1024*1024; } // ********************************************************* Step 7: load block chain fReindex = GetBoolArg("-reindex", false); bool fReindexChainState = GetBoolArg("-reindex-chainstate", false); boost::filesystem::create_directories(GetDataDir() / "blocks"); // cache size calculations int64_t nTotalCache = (GetArg("-dbcache", nDefaultDbCache) << 20); nTotalCache = std::max(nTotalCache, nMinDbCache << 20); // total cache cannot be less than nMinDbCache nTotalCache = std::min(nTotalCache, nMaxDbCache << 20); // total cache cannot be greater than nMaxDbcache int64_t nBlockTreeDBCache = nTotalCache / 8; nBlockTreeDBCache = std::min(nBlockTreeDBCache, (GetBoolArg("-txindex", DEFAULT_TXINDEX) ? nMaxBlockDBAndTxIndexCache : nMaxBlockDBCache) << 20); nTotalCache -= nBlockTreeDBCache; int64_t nCoinDBCache = std::min(nTotalCache / 2, (nTotalCache / 4) + (1 << 23)); // use 25%-50% of the remainder for disk cache nCoinDBCache = std::min(nCoinDBCache, nMaxCoinsDBCache << 20); // cap total coins db cache nTotalCache -= nCoinDBCache; nCoinCacheUsage = nTotalCache; // the rest goes to in-memory cache int64_t nMempoolSizeMax = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; LogPrintf("Cache configuration:\n"); LogPrintf("* Using %.1fMiB for block index database\n", nBlockTreeDBCache * (1.0 / 1024 / 1024)); LogPrintf("* Using %.1fMiB for chain state database\n", nCoinDBCache * (1.0 / 1024 / 1024)); LogPrintf("* Using %.1fMiB for in-memory UTXO set (plus up to %.1fMiB of unused mempool space)\n", nCoinCacheUsage * (1.0 / 1024 / 1024), nMempoolSizeMax * (1.0 / 1024 / 1024)); bool fLoaded = false; while (!fLoaded) { bool fReset = fReindex; std::string strLoadError; uiInterface.InitMessage(_("Loading block index...")); nStart = GetTimeMillis(); do { try { UnloadBlockIndex(); delete pcoinsTip; delete pcoinsdbview; delete pcoinscatcher; delete pblocktree; pblocktree = new CBlockTreeDB(nBlockTreeDBCache, false, fReindex); pcoinsdbview = new CCoinsViewDB(nCoinDBCache, false, fReindex || fReindexChainState); pcoinscatcher = new CCoinsViewErrorCatcher(pcoinsdbview); pcoinsTip = new CCoinsViewCache(pcoinscatcher); if (fReindex) { pblocktree->WriteReindexing(true); //If we're reindexing in prune mode, wipe away unusable block files and all undo data files if (fPruneMode) CleanupBlockRevFiles(); } if (!LoadBlockIndex(chainparams)) { strLoadError = _("Error loading block database"); break; } // If the loaded chain has a wrong genesis, bail out immediately // (we're likely using a testnet datadir, or the other way around). if (!mapBlockIndex.empty() && mapBlockIndex.count(chainparams.GetConsensus().hashGenesisBlock) == 0) return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?")); // Initialize the block index (no-op if non-empty database was already loaded) if (!InitBlockIndex(chainparams)) { strLoadError = _("Error initializing block database"); break; } // Check for changed -txindex state if (fTxIndex != GetBoolArg("-txindex", DEFAULT_TXINDEX)) { strLoadError = _("You need to rebuild the database using -reindex-chainstate to change -txindex"); break; } // Check for changed -prune state. What we are concerned about is a user who has pruned blocks // in the past, but is now trying to run unpruned. if (fHavePruned && !fPruneMode) { strLoadError = _("You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain"); break; } if (!fReindex && chainActive.Tip() != NULL) { uiInterface.InitMessage(_("Rewinding blocks...")); if (!RewindBlockIndex(chainparams)) { strLoadError = _("Unable to rewind the database to a pre-fork state. You will need to redownload the blockchain"); break; } } uiInterface.InitMessage(_("Verifying blocks...")); if (fHavePruned && GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) { LogPrintf("Prune: pruned datadir may not have more than %d blocks; only checking available blocks", MIN_BLOCKS_TO_KEEP); } { LOCK(cs_main); CBlockIndex* tip = chainActive.Tip(); RPCNotifyBlockChange(true, tip); if (tip && tip->nTime > GetAdjustedTime() + 2 * 60 * 60) { strLoadError = _("The block database contains a block which appears to be from the future. " "This may be due to your computer's date and time being set incorrectly. " "Only rebuild the block database if you are sure that your computer's date and time are correct"); break; } } if (!CVerifyDB().VerifyDB(chainparams, pcoinsdbview, GetArg("-checklevel", DEFAULT_CHECKLEVEL), GetArg("-checkblocks", DEFAULT_CHECKBLOCKS))) { strLoadError = _("Corrupted block database detected"); break; } } catch (const std::exception& e) { if (fDebug) LogPrintf("%s\n", e.what()); strLoadError = _("Error opening block database"); break; } fLoaded = true; } while(false); if (!fLoaded) { // first suggest a reindex if (!fReset) { bool fRet = uiInterface.ThreadSafeQuestion( strLoadError + ".\n\n" + _("Do you want to rebuild the block database now?"), strLoadError + ".\nPlease restart with -reindex or -reindex-chainstate to recover.", "", CClientUIInterface::MSG_ERROR | CClientUIInterface::BTN_ABORT); if (fRet) { fReindex = true; fRequestShutdown = false; } else { LogPrintf("Aborted block database rebuild. Exiting.\n"); return false; } } else { return InitError(strLoadError); } } } // As LoadBlockIndex can take several minutes, it's possible the user // requested to kill the GUI during the last operation. If so, exit. // As the program has not fully started yet, Shutdown() is possibly overkill. if (fRequestShutdown) { LogPrintf("Shutdown requested. Exiting.\n"); return false; } LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart); boost::filesystem::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME; CAutoFile est_filein(fopen(est_path.string().c_str(), "rb"), SER_DISK, CLIENT_VERSION); // Allowed to fail as this file IS missing on first startup. if (!est_filein.IsNull()) mempool.ReadFeeEstimates(est_filein); fFeeEstimatesInitialized = true; // ********************************************************* Step 8: load wallet #ifdef ENABLE_WALLET if (!CWallet::InitLoadWallet()) return false; #else LogPrintf("No wallet support compiled in!\n"); #endif // ********************************************************* Step 9: data directory maintenance // if pruning, unset the service bit and perform the initial blockstore prune // after any wallet rescanning has taken place. if (fPruneMode) { LogPrintf("Unsetting NODE_NETWORK on prune mode\n"); nLocalServices = ServiceFlags(nLocalServices & ~NODE_NETWORK); if (!fReindex) { uiInterface.InitMessage(_("Pruning blockstore...")); PruneAndFlush(); } } if (chainparams.GetConsensus().vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout != 0) { // Only advertise witness capabilities if they have a reasonable start time. // This allows us to have the code merged without a defined softfork, by setting its // end time to 0. // Note that setting NODE_WITNESS is never required: the only downside from not // doing so is that after activation, no upgraded nodes will fetch from you. nLocalServices = ServiceFlags(nLocalServices | NODE_WITNESS); // Only care about others providing witness capabilities if there is a softfork // defined. nRelevantServices = ServiceFlags(nRelevantServices | NODE_WITNESS); } // ********************************************************* Step 10: import blocks if (!CheckDiskSpace()) return false; // Either install a handler to notify us when genesis activates, or set fHaveGenesis directly. // No locking, as this happens before any background thread is started. if (chainActive.Tip() == NULL) { uiInterface.NotifyBlockTip.connect(BlockNotifyGenesisWait); } else { fHaveGenesis = true; } if (IsArgSet("-blocknotify")) uiInterface.NotifyBlockTip.connect(BlockNotifyCallback); std::vector<boost::filesystem::path> vImportFiles; if (mapMultiArgs.count("-loadblock")) { BOOST_FOREACH(const std::string& strFile, mapMultiArgs.at("-loadblock")) vImportFiles.push_back(strFile); } threadGroup.create_thread(boost::bind(&ThreadImport, vImportFiles)); // Wait for genesis block to be processed { boost::unique_lock<boost::mutex> lock(cs_GenesisWait); while (!fHaveGenesis) { condvar_GenesisWait.wait(lock); } uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); } // ********************************************************* Step 11: start node //// debug print LogPrintf("mapBlockIndex.size() = %u\n", mapBlockIndex.size()); LogPrintf("nBestHeight = %d\n", chainActive.Height()); if (GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION)) StartTorControl(threadGroup, scheduler); Discover(threadGroup); // Map ports with UPnP MapPort(GetBoolArg("-upnp", DEFAULT_UPNP)); std::string strNodeError; CConnman::Options connOptions; connOptions.nLocalServices = nLocalServices; connOptions.nRelevantServices = nRelevantServices; connOptions.nMaxConnections = nMaxConnections; connOptions.nMaxOutbound = std::min(MAX_OUTBOUND_CONNECTIONS, connOptions.nMaxConnections); connOptions.nMaxAddnode = MAX_ADDNODE_CONNECTIONS; connOptions.nMaxFeeler = 1; connOptions.nBestHeight = chainActive.Height(); connOptions.uiInterface = &uiInterface; connOptions.nSendBufferMaxSize = 1000*GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER); connOptions.nReceiveFloodSize = 1000*GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER); connOptions.nMaxOutboundTimeframe = nMaxOutboundTimeframe; connOptions.nMaxOutboundLimit = nMaxOutboundLimit; if (!connman.Start(scheduler, strNodeError, connOptions)) return InitError(strNodeError); // ********************************************************* Step 12: finished SetRPCWarmupFinished(); uiInterface.InitMessage(_("Done loading")); #ifdef ENABLE_WALLET if (pwalletMain) pwalletMain->postInitProcess(scheduler); #endif return !fRequestShutdown; }
Java
<?php namespace esperanto\UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\Group as BaseGroup; /** * Group */ class Group extends BaseGroup { /** * @var integer */ protected $id; /** * @var \Doctrine\Common\Collections\Collection */ private $users; /** * Constructor */ public function __construct() { parent::__construct('', array()); $this->users = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Add users * * @param \esperanto\UserBundle\Entity\User $users * @return Group */ public function addUser(\esperanto\UserBundle\Entity\User $users) { $this->users[] = $users; return $this; } /** * Remove users * * @param \esperanto\UserBundle\Entity\User $users */ public function removeUser(\esperanto\UserBundle\Entity\User $users) { $this->users->removeElement($users); } /** * Get users * * @return \Doctrine\Common\Collections\Collection */ public function getUsers() { return $this->users; } }
Java
@extends('admin.layouts.modal') {{-- Content --}} @section('content') <!-- Tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="#tab-general" data-toggle="tab">General</a></li> </ul> <!-- ./ tabs --> {{-- Delete User Form --}} <form class="form-horizontal" method="post" action="" autocomplete="off"> <!-- CSRF Token --> <input type="hidden" name="_token" value="{{{ csrf_token() }}}" /> <input type="hidden" name="id" value="{{ $user->id }}" /> <!-- ./ csrf token --> <!-- Form Actions --> <div class="control-group"> <div class="controls"> <element class="btn-cancel close_popup">Cancel</element> <button type="submit" class="btn btn-danger close_popup">Delete</button> </div> </div> <!-- ./ form actions --> </form> @stop
Java
package org.multibit.hd.core.events; /** * <p>Signature interface to provide the following to Core Event API:</p> * <ul> * <li>Identification of core events</li> * </ul> * <p>A core event should be named using a noun as the first part of the name (e.g. ExchangeRateChangedEvent)</p> * <p>A core event can occur at any time and will not be synchronized with other events.</p> * * @since 0.0.1 *   */ public interface CoreEvent { }
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; namespace Azure.Media.Analytics.Edge.Models { /// <summary> Http header service credentials. </summary> public partial class MediaGraphHttpHeaderCredentials : MediaGraphCredentials { /// <summary> Initializes a new instance of MediaGraphHttpHeaderCredentials. </summary> /// <param name="headerName"> HTTP header name. </param> /// <param name="headerValue"> HTTP header value. Please use a parameter so that the actual value is not returned on PUT or GET requests. </param> /// <exception cref="ArgumentNullException"> <paramref name="headerName"/> or <paramref name="headerValue"/> is null. </exception> public MediaGraphHttpHeaderCredentials(string headerName, string headerValue) { if (headerName == null) { throw new ArgumentNullException(nameof(headerName)); } if (headerValue == null) { throw new ArgumentNullException(nameof(headerValue)); } HeaderName = headerName; HeaderValue = headerValue; Type = "#Microsoft.Media.MediaGraphHttpHeaderCredentials"; } /// <summary> Initializes a new instance of MediaGraphHttpHeaderCredentials. </summary> /// <param name="type"> The discriminator for derived types. </param> /// <param name="headerName"> HTTP header name. </param> /// <param name="headerValue"> HTTP header value. Please use a parameter so that the actual value is not returned on PUT or GET requests. </param> internal MediaGraphHttpHeaderCredentials(string type, string headerName, string headerValue) : base(type) { HeaderName = headerName; HeaderValue = headerValue; Type = type ?? "#Microsoft.Media.MediaGraphHttpHeaderCredentials"; } /// <summary> HTTP header name. </summary> public string HeaderName { get; set; } /// <summary> HTTP header value. Please use a parameter so that the actual value is not returned on PUT or GET requests. </summary> public string HeaderValue { get; set; } } }
Java
var fs = require('fs'); var PNG = require('../lib/png').PNG; var test = require('tape'); var noLargeOption = process.argv.indexOf("nolarge") >= 0; fs.readdir(__dirname + '/in/', function (err, files) { if (err) throw err; files = files.filter(function (file) { return (!noLargeOption || !file.match(/large/i)) && Boolean(file.match(/\.png$/i)); }); console.log("Converting images"); files.forEach(function (file) { var expectedError = false; if (file.match(/^x/)) { expectedError = true; } test('convert sync - ' + file, function (t) { t.timeoutAfter(1000 * 60 * 5); var data = fs.readFileSync(__dirname + '/in/' + file); try { var png = PNG.sync.read(data); } catch (e) { if (!expectedError) { t.fail('Unexpected error parsing..' + file + '\n' + e.message + "\n" + e.stack); } else { t.pass("completed"); } return t.end(); } if (expectedError) { t.fail("Sync: Error expected, parsed fine .. - " + file); return t.end(); } var outpng = new PNG(); outpng.gamma = png.gamma; outpng.data = png.data; outpng.width = png.width; outpng.height = png.height; outpng.pack() .pipe(fs.createWriteStream(__dirname + '/outsync/' + file) .on("finish", function () { t.pass("completed"); t.end(); })); }); test('convert async - ' + file, function (t) { t.timeoutAfter(1000 * 60 * 5); fs.createReadStream(__dirname + '/in/' + file) .pipe(new PNG()) .on('error', function (err) { if (!expectedError) { t.fail("Async: Unexpected error parsing.." + file + '\n' + err.message + '\n' + err.stack); } else { t.pass("completed"); } t.end(); }) .on('parsed', function () { if (expectedError) { t.fail("Async: Error expected, parsed fine .." + file); return t.end(); } this.pack() .pipe( fs.createWriteStream(__dirname + '/out/' + file) .on("finish", function () { t.pass("completed"); t.end(); })); }); }); }); });
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>make_vector</title> <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.2"> <link rel="up" href="../functions.html" title="Functions"> <link rel="prev" href="make_cons.html" title="make_cons"> <link rel="next" href="make_deque.html" title="make_deque"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="make_cons.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="make_deque.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h5 class="title"> <a name="fusion.container.generation.functions.make_vector"></a><a class="link" href="make_vector.html" title="make_vector">make_vector</a> </h5></div></div></div> <h6> <a name="fusion.container.generation.functions.make_vector.h0"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.description"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.description">Description</a> </h6> <p> Create a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> from one or more values. </p> <h6> <a name="fusion.container.generation.functions.make_vector.h1"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.synopsis"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.synopsis">Synopsis</a> </h6> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">&gt;</span> <span class="keyword">typename</span> <a class="link" href="../metafunctions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span></code></a><span class="special">&lt;</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">make_vector</span><span class="special">(</span><span class="identifier">T0</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">xN</span><span class="special">);</span> </pre> <p> For C++11 compilers, the variadic function interface has no upper bound. </p> <p> For C++03 compilers, the variadic function accepts <code class="computeroutput"><span class="number">0</span></code> to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code> elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code> is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code> before including any Fusion header to change the default. Example: </p> <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span> </pre> <h6> <a name="fusion.container.generation.functions.make_vector.h2"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.parameters"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.parameters">Parameters</a> </h6> <div class="informaltable"><table class="table"> <colgroup> <col> <col> <col> </colgroup> <thead><tr> <th> <p> Parameter </p> </th> <th> <p> Requirement </p> </th> <th> <p> Description </p> </th> </tr></thead> <tbody><tr> <td> <p> <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code> </p> </td> <td> <p> Instances of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code> </p> </td> <td> <p> The arguments to <code class="computeroutput"><span class="identifier">make_vector</span></code> </p> </td> </tr></tbody> </table></div> <h6> <a name="fusion.container.generation.functions.make_vector.h3"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.expression_semantics"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.expression_semantics">Expression Semantics</a> </h6> <pre class="programlisting"><span class="identifier">make_vector</span><span class="special">(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span> </pre> <p> <span class="bold"><strong>Return type</strong></span>: <a class="link" href="../metafunctions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span></code></a><code class="computeroutput"><span class="special">&lt;</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">&gt;::</span><span class="identifier">type</span></code> </p> <p> <span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> from <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>. </p> <h6> <a name="fusion.container.generation.functions.make_vector.h4"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.header"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.header">Header</a> </h6> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">container</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> </pre> <h6> <a name="fusion.container.generation.functions.make_vector.h5"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.example"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.example">Example</a> </h6> <pre class="programlisting"><span class="identifier">make_vector</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">,</span> <span class="number">12.5</span><span class="special">)</span> </pre> <h6> <a name="fusion.container.generation.functions.make_vector.h6"></a> <span class="phrase"><a name="fusion.container.generation.functions.make_vector.see_also"></a></span><a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.see_also">See also</a> </h6> <p> <a class="link" href="../../../notes.html#fusion.notes.reference_wrappers"><code class="computeroutput"><span class="identifier">Reference</span> <span class="identifier">Wrappers</span></code></a> </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman, Dan Marsden, Tobias Schwinger<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="make_cons.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="make_deque.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
Java
/*************************************************************************************** Extended WPF Toolkit Copyright (C) 2007-2014 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license For more features, controls, and fast professional support, pick up the Plus Edition at http://xceed.com/wpf_toolkit Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids ************************************************************************************/ using System; using System.IO; using System.Windows; using System.Windows.Resources; namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Magnifier.Views { /// <summary> /// Interaction logic for MagnifierView.xaml /// </summary> public partial class MagnifierView : DemoView { public MagnifierView() { InitializeComponent(); // Load and display the RTF file. Uri uri = new Uri( "pack://application:,,,/Xceed.Wpf.Toolkit.LiveExplorer;component/Samples/Magnifier/Resources/SampleText.rtf" ); StreamResourceInfo info = Application.GetResourceStream( uri ); using( StreamReader txtReader = new StreamReader( info.Stream ) ) { _txtContent.Text = txtReader.ReadToEnd(); } } } }
Java
var assert = require('assert'); var Q = require('q'); var R = require('..'); describe('pipeP', function() { function a(x) {return x + 'A';} function b(x) {return x + 'B';} it('handles promises', function() { var plusOne = function(a) {return a + 1;}; var multAsync = function(a, b) {return Q.when(a * b);}; return R.pipeP(multAsync, plusOne)(2, 3) .then(function(result) { assert.strictEqual(result, 7); }); }); it('returns a function with arity == leftmost argument', function() { function a2(x, y) { void y; return 'A2'; } function a3(x, y) { void y; return Q.when('A2'); } function a4(x, y) { void y; return 'A2'; } var f1 = R.pipeP(a, b); assert.strictEqual(f1.length, a.length); var f2 = R.pipeP(a2, b); assert.strictEqual(f2.length, a2.length); var f3 = R.pipeP(a3, b); assert.strictEqual(f3.length, a3.length); var f4 = R.pipeP(a4, b); assert.strictEqual(f4.length, a4.length); }); });
Java
<?php namespace Illuminate\Tests\Support; use DateTime; use DateTimeInterface; use BadMethodCallException; use Carbon\CarbonImmutable; use Illuminate\Support\Carbon; use PHPUnit\Framework\TestCase; use Carbon\Carbon as BaseCarbon; class SupportCarbonTest extends TestCase { /** * @var \Illuminate\Support\Carbon */ protected $now; protected function setUp(): void { parent::setUp(); Carbon::setTestNow($this->now = Carbon::create(2017, 6, 27, 13, 14, 15, 'UTC')); } protected function tearDown(): void { Carbon::setTestNow(); Carbon::serializeUsing(null); parent::tearDown(); } public function testInstance() { $this->assertInstanceOf(DateTime::class, $this->now); $this->assertInstanceOf(DateTimeInterface::class, $this->now); $this->assertInstanceOf(BaseCarbon::class, $this->now); $this->assertInstanceOf(Carbon::class, $this->now); } public function testCarbonIsMacroableWhenNotCalledStatically() { Carbon::macro('diffInDecades', function (Carbon $dt = null, $abs = true) { return (int) ($this->diffInYears($dt, $abs) / 10); }); $this->assertSame(2, $this->now->diffInDecades(Carbon::now()->addYears(25))); } public function testCarbonIsMacroableWhenCalledStatically() { Carbon::macro('twoDaysAgoAtNoon', function () { return Carbon::now()->subDays(2)->setTime(12, 0, 0); }); $this->assertSame('2017-06-25 12:00:00', Carbon::twoDaysAgoAtNoon()->toDateTimeString()); } public function testCarbonRaisesExceptionWhenStaticMacroIsNotFound() { $this->expectException(BadMethodCallException::class); $this->expectExceptionMessage('nonExistingStaticMacro does not exist.'); Carbon::nonExistingStaticMacro(); } public function testCarbonRaisesExceptionWhenMacroIsNotFound() { $this->expectException(BadMethodCallException::class); $this->expectExceptionMessage('nonExistingMacro does not exist.'); Carbon::now()->nonExistingMacro(); } public function testCarbonAllowsCustomSerializer() { Carbon::serializeUsing(function (Carbon $carbon) { return $carbon->getTimestamp(); }); $result = json_decode(json_encode($this->now), true); $this->assertSame(1498569255, $result); } public function testCarbonCanSerializeToJson() { $this->assertSame(class_exists(CarbonImmutable::class) ? '2017-06-27T13:14:15.000000Z' : [ 'date' => '2017-06-27 13:14:15.000000', 'timezone_type' => 3, 'timezone' => 'UTC', ], $this->now->jsonSerialize()); } public function testSetStateReturnsCorrectType() { $carbon = Carbon::__set_state([ 'date' => '2017-06-27 13:14:15.000000', 'timezone_type' => 3, 'timezone' => 'UTC', ]); $this->assertInstanceOf(Carbon::class, $carbon); } public function testDeserializationOccursCorrectly() { $carbon = new Carbon('2017-06-27 13:14:15.000000'); $serialized = 'return '.var_export($carbon, true).';'; $deserialized = eval($serialized); $this->assertInstanceOf(Carbon::class, $deserialized); } }
Java
local yui_path = (...):match('(.-)[^%.]+$') local Object = require(yui_path .. 'UI.classic.classic') local FlatDropdown = Object:extend('FlatDropdown') function FlatDropdown:new(yui, settings) self.yui = yui self.x, self.y = 0, 0 self.name = settings.name self.size = settings.size or 20 self.options = settings.options self.font = love.graphics.newFont(self.yui.Theme.open_sans_regular, math.floor(self.size*0.7)) self.font:setFallbacks(love.graphics.newFont(self.yui.Theme.font_awesome_path, math.floor(self.size*0.7))) self.icon = self.yui.Theme.font_awesome['fa-sort-desc'] self.current_option = settings.current_option or 1 self.title = settings.title or '' self.drop_up = settings.drop_up self.show_dropdown = false local min_w = 0 for i = 1, #self.options do local w = self.font:getWidth(self.options[i]) + 2*self.size if w > min_w then min_w = w end end self.w = settings.w or math.max(min_w, self.font:getWidth(self.options[self.current_option] .. ' ' .. self.icon) + 2*self.size) self.h = self.font:getHeight() + math.floor(self.size)*0.7 self.main_button = self.yui.UI.Button(0, 0, self.w, self.h, { yui = self.yui, extensions = {self.yui.Theme.FlatDropdown}, font = self.font, parent = self, icon = self.icon, }) local h = self.font:getHeight() self.down_area = self.yui.UI.Scrollarea(0, 0, math.max(min_w, self.w), #self.options*h, { yui = self.yui, extensions = {self.yui.Theme.FlatDropdownScrollarea}, parent = self, size = self.size, show_scrollbars = true, }) for i, option in ipairs(self.options) do self.down_area:addElement(self.yui.UI.Button(0, 1 + (i-1)*h, math.max(min_w, self.w), h, { yui = self.yui, extensions = {self.yui.Theme.FlatDropdownButton}, font = love.graphics.newFont(self.yui.Theme.open_sans_regular, math.floor(self.size*0.7)), text = self.options[i], size = self.size, })) end self.onSelect = settings.onSelect end function FlatDropdown:update(dt) self.main_button.x, self.main_button.y = self.x, self.y if self.drop_up then self.down_area.ix, self.down_area.iy = self.x, self.y - self.down_area.h else self.down_area.ix, self.down_area.iy = self.x, self.y + self.h end for i, element in ipairs(self.down_area.elements) do if element.released and element.hot then self.current_option = i self.show_dropdown = false if self.onSelect then self:onSelect(self.options[self.current_option]) end self.down_area:update(0) self.down_area.hot = false end end if self.main_button.pressed then self.show_dropdown = not self.show_dropdown end local any_hot = false if self.main_button.hot then any_hot = true end for i, element in ipairs(self.down_area.elements) do if element.hot then any_hot = true end if i == self.current_option then element.dropdown_selected = true else element.dropdown_selected = false end end if self.main_button.input:pressed('left-click') and not any_hot then self.show_dropdown = false self.down_area:update(0) self.down_area.hot = false end for i, element in ipairs(self.down_area.elements) do if any_hot then element.dropdown_selected = false end end self.main_button:update(dt) if self.show_dropdown then self.down_area:update(dt) end if self.main_button.hot then love.mouse.setCursor(self.yui.Theme.hand_cursor) end end function FlatDropdown:draw() self.main_button:draw() end function FlatDropdown:postDraw() if self.show_dropdown then self.down_area:draw() end end return FlatDropdown
Java
// // MTFontMathTable.h // iosMath // // Created by Kostub Deshmukh on 8/28/13. // Copyright (C) 2013 MathChat // // This software may be modified and distributed under the terms of the // MIT license. See the LICENSE file for details. // @import Foundation; @import CoreText; @class MTFont; /** MTGlyphPart represents a part of a glyph used for assembling a large vertical or horizontal glyph. */ @interface MTGlyphPart : NSObject /// The glyph that represents this part @property (nonatomic, readonly) CGGlyph glyph; /// Full advance width/height for this part, in the direction of the extension in points. @property (nonatomic, readonly) CGFloat fullAdvance; /// Advance width/ height of the straight bar connector material at the beginning of the glyph in points. @property (nonatomic, readonly) CGFloat startConnectorLength; /// Advance width/ height of the straight bar connector material at the end of the glyph in points. @property (nonatomic, readonly) CGFloat endConnectorLength; /// If this part is an extender. If set, the part can be skipped or repeated. @property (nonatomic, readonly) BOOL isExtender; @end /** This class represents the Math table of an open type font. The math table is documented here: https://www.microsoft.com/typography/otspec/math.htm How the constants in this class affect the display is documented here: http://www.tug.org/TUGboat/tb30-1/tb94vieth.pdf @note We don't parse the math table from the open type font. Rather we parse it in python and convert it to a .plist file which is easily consumed by this class. This approach is preferable to spending an inordinate amount of time figuring out how to parse the returned NSData object using the open type rules. @remark This class is not meant to be used outside of this library. */ @interface MTFontMathTable : NSObject - (nonnull instancetype) initWithFont:(nonnull MTFont*) font mathTable:(nonnull NSDictionary*) mathTable NS_DESIGNATED_INITIALIZER; - (nonnull instancetype) init NS_UNAVAILABLE; /** MU unit in points */ @property (nonatomic, readonly) CGFloat muUnit; // Math Font Metrics from the opentype specification #pragma mark Fractions @property (nonatomic, readonly) CGFloat fractionNumeratorDisplayStyleShiftUp; // \sigma_8 in TeX @property (nonatomic, readonly) CGFloat fractionNumeratorShiftUp; // \sigma_9 in TeX @property (nonatomic, readonly) CGFloat fractionDenominatorDisplayStyleShiftDown; // \sigma_11 in TeX @property (nonatomic, readonly) CGFloat fractionDenominatorShiftDown; // \sigma_12 in TeX @property (nonatomic, readonly) CGFloat fractionNumeratorDisplayStyleGapMin; // 3 * \xi_8 in TeX @property (nonatomic, readonly) CGFloat fractionNumeratorGapMin; // \xi_8 in TeX @property (nonatomic, readonly) CGFloat fractionDenominatorDisplayStyleGapMin; // 3 * \xi_8 in TeX @property (nonatomic, readonly) CGFloat fractionDenominatorGapMin; // \xi_8 in TeX @property (nonatomic, readonly) CGFloat fractionRuleThickness; // \xi_8 in TeX @property (nonatomic, readonly) CGFloat fractionDelimiterDisplayStyleSize; // \sigma_20 in TeX @property (nonatomic, readonly) CGFloat fractionDelimiterSize; // \sigma_21 in TeX #pragma mark Stacks @property (nonatomic, readonly) CGFloat stackTopDisplayStyleShiftUp; // \sigma_8 in TeX @property (nonatomic, readonly) CGFloat stackTopShiftUp; // \sigma_10 in TeX @property (nonatomic, readonly) CGFloat stackDisplayStyleGapMin; // 7 \xi_8 in TeX @property (nonatomic, readonly) CGFloat stackGapMin; // 3 \xi_8 in TeX @property (nonatomic, readonly) CGFloat stackBottomDisplayStyleShiftDown; // \sigma_11 in TeX @property (nonatomic, readonly) CGFloat stackBottomShiftDown; // \sigma_12 in TeX #pragma mark super/sub scripts @property (nonatomic, readonly) CGFloat superscriptShiftUp; // \sigma_13, \sigma_14 in TeX @property (nonatomic, readonly) CGFloat superscriptShiftUpCramped; // \sigma_15 in TeX @property (nonatomic, readonly) CGFloat subscriptShiftDown; // \sigma_16, \sigma_17 in TeX @property (nonatomic, readonly) CGFloat superscriptBaselineDropMax; // \sigma_18 in TeX @property (nonatomic, readonly) CGFloat subscriptBaselineDropMin; // \sigma_19 in TeX @property (nonatomic, readonly) CGFloat superscriptBottomMin; // 1/4 \sigma_5 in TeX @property (nonatomic, readonly) CGFloat subscriptTopMax; // 4/5 \sigma_5 in TeX @property (nonatomic, readonly) CGFloat subSuperscriptGapMin; // 4 \xi_8 in TeX @property (nonatomic, readonly) CGFloat superscriptBottomMaxWithSubscript; // 4/5 \sigma_5 in TeX @property (nonatomic, readonly) CGFloat spaceAfterScript; #pragma mark radicals @property (nonatomic, readonly) CGFloat radicalExtraAscender; // \xi_8 in Tex @property (nonatomic, readonly) CGFloat radicalRuleThickness; // \xi_8 in Tex @property (nonatomic, readonly) CGFloat radicalDisplayStyleVerticalGap; // \xi_8 + 1/4 \sigma_5 in Tex @property (nonatomic, readonly) CGFloat radicalVerticalGap; // 5/4 \xi_8 in Tex @property (nonatomic, readonly) CGFloat radicalKernBeforeDegree; // 5 mu in Tex @property (nonatomic, readonly) CGFloat radicalKernAfterDegree; // -10 mu in Tex @property (nonatomic, readonly) CGFloat radicalDegreeBottomRaisePercent; // 60% in Tex #pragma mark Limits @property (nonatomic, readonly) CGFloat upperLimitBaselineRiseMin; // \xi_11 in TeX @property (nonatomic, readonly) CGFloat upperLimitGapMin; // \xi_9 in TeX @property (nonatomic, readonly) CGFloat lowerLimitGapMin; // \xi_10 in TeX @property (nonatomic, readonly) CGFloat lowerLimitBaselineDropMin; // \xi_12 in TeX @property (nonatomic, readonly) CGFloat limitExtraAscenderDescender; // \xi_13 in TeX, not present in OpenType so we always set it to 0. #pragma mark Underline @property (nonatomic, readonly) CGFloat underbarVerticalGap; // 3 \xi_8 in TeX @property (nonatomic, readonly) CGFloat underbarRuleThickness; // \xi_8 in TeX @property (nonatomic, readonly) CGFloat underbarExtraDescender; // \xi_8 in TeX #pragma mark Overline @property (nonatomic, readonly) CGFloat overbarVerticalGap; // 3 \xi_8 in TeX @property (nonatomic, readonly) CGFloat overbarRuleThickness; // \xi_8 in TeX @property (nonatomic, readonly) CGFloat overbarExtraAscender; // \xi_8 in TeX #pragma mark Constants @property (nonatomic, readonly) CGFloat axisHeight; // \sigma_22 in TeX @property (nonatomic, readonly) CGFloat scriptScaleDown; @property (nonatomic, readonly) CGFloat scriptScriptScaleDown; #pragma mark Accent @property (nonatomic, readonly) CGFloat accentBaseHeight; // \fontdimen5 in TeX (x-height) #pragma mark Variants /** Returns an NSArray of all the vertical variants of the glyph if any. If there are no variants for the glyph, the array contains the given glyph. */ - (nonnull NSArray<NSNumber*>*) getVerticalVariantsForGlyph:(CGGlyph) glyph; /** Returns an NSArray of all the horizontal variants of the glyph if any. If there are no variants for the glyph, the array contains the given glyph. */ - (nonnull NSArray<NSNumber*>*) getHorizontalVariantsForGlyph:(CGGlyph) glyph; /** Returns a larger vertical variant of the given glyph if any. If there is no larger version, this returns the current glyph. */ - (CGGlyph) getLargerGlyph:(CGGlyph) glyph; #pragma mark Italic Correction /** Returns the italic correction for the given glyph if any. If there isn't any this returns 0. */ - (CGFloat) getItalicCorrection:(CGGlyph) glyph; #pragma mark Accents /** Returns the adjustment to the top accent for the given glyph if any. If there isn't any this returns -1. */ - (CGFloat) getTopAccentAdjustment:(CGGlyph) glyph; #pragma mark Glyph Construction /** Minimum overlap of connecting glyphs during glyph construction */ @property (nonatomic, readonly) CGFloat minConnectorOverlap; /** Returns an array of the glyph parts to be used for constructing vertical variants of this glyph. If there is no glyph assembly defined, returns nil. */ - (nullable NSArray<MTGlyphPart*>*) getVerticalGlyphAssemblyForGlyph:(CGGlyph) glyph; @end
Java
from __future__ import print_function from .patchpipette import PatchPipette
Java
# Acknowledgements This application makes use of the following third party libraries: ## TFBubbleItUp Copyright (c) 2015 Ales Kocur <[email protected]> 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 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. Generated by CocoaPods - http://cocoapods.org
Java
// // LOTPlatformCompat.h // Lottie // // Created by Oleksii Pavlovskyi on 2/2/17. // Copyright (c) 2017 Airbnb. All rights reserved. // #ifndef LOTPlatformCompat_h #define LOTPlatformCompat_h #import "TargetConditionals.h" #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR #import <UIKit/UIKit.h> #else #import <AppKit/AppKit.h> #import "UIColor.h" #import "CALayer+Compat.h" #import "NSValue+Compat.h" NS_INLINE NSString *NSStringFromCGRect(CGRect rect) { return NSStringFromRect(rect); } NS_INLINE NSString *NSStringFromCGPoint(CGPoint point) { return NSStringFromPoint(point); } typedef NSEdgeInsets UIEdgeInsets; #endif #endif
Java
<?php /** * Subclass for representing a row from the 'sf_simple_forum_category' table. * * * * @package plugins.sfSimpleForumPlugin.lib.model */ class sfSimpleForumCategory extends PluginsfSimpleForumCategory { }
Java
var _ = require('underscore'); /* A rule should contain explain and rule methods */ // TODO explain explain // TODO explain missing // TODO explain assert function assert (options, password) { return !!password && options.minLength <= password.length; } function explain(options) { if (options.minLength === 1) { return { message: 'Non-empty password required', code: 'nonEmpty' }; } return { message: 'At least %d characters in length', format: [options.minLength], code: 'lengthAtLeast' }; } module.exports = { validate: function (options) { if (!_.isObject(options)) { throw new Error('options should be an object'); } if (!_.isNumber(options.minLength) || _.isNaN(options.minLength)) { throw new Error('length expects minLength to be a non-zero number'); } return true; }, explain: explain, missing: function (options, password) { var explained = explain(options); explained.verified = !!assert(options, password); return explained; }, assert: assert };
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>placeholders::signal_number</title> <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../reference.html" title="Reference"> <link rel="prev" href="placeholders__iterator.html" title="placeholders::iterator"> <link rel="next" href="posix__basic_descriptor.html" title="posix::basic_descriptor"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> <td align="center"><a href="../../../../index.html">Home</a></td> <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="placeholders__iterator.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="posix__basic_descriptor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> <a name="boost_asio.reference.placeholders__signal_number"></a><a class="link" href="placeholders__signal_number.html" title="placeholders::signal_number">placeholders::signal_number</a> </h3></div></div></div> <p> <a class="indexterm" name="id1453506"></a> An argument placeholder, for use with boost::bind(), that corresponds to the signal_number argument of a handler for asynchronous functions such as <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">signal_set</span><span class="special">::</span><span class="identifier">async_wait</span></code>. </p> <pre class="programlisting"><span class="identifier">unspecified</span> <span class="identifier">signal_number</span><span class="special">;</span> </pre> <h5> <a name="boost_asio.reference.placeholders__signal_number.h0"></a> <span><a name="boost_asio.reference.placeholders__signal_number.requirements"></a></span><a class="link" href="placeholders__signal_number.html#boost_asio.reference.placeholders__signal_number.requirements">Requirements</a> </h5> <p> <span class="bold"><strong>Header: </strong></span><code class="literal">boost/asio/placeholders.hpp</code> </p> <p> <span class="bold"><strong>Convenience header: </strong></span><code class="literal">boost/asio.hpp</code> </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2012 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="placeholders__iterator.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="posix__basic_descriptor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
Java
// // RZTCustomErrorViewController.h // RaisinToast // // Created by Adam Howitt on 1/7/15. // Copyright (c) 2015 adamhrz. All rights reserved. // #import "RZErrorMessagingViewController.h" @interface RZTCustomErrorViewController : UIViewController <RZMessagingViewController> @end
Java
<?php /** * @package CleverStyle CMS * @author Nazar Mokrynskyi <[email protected]> * @copyright Copyright (c) 2011-2014, Nazar Mokrynskyi * @license MIT License, see license.txt */ namespace cs; use ArrayAccess, SimpleXMLElement; /** * False_class is used for chained calling, when some method may return false. * * Usage of class is simple, just return his instance instead of real boolean <i>false</i>. * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned. * Access to anything of this class instance will be casted to boolean <i>false</i> * * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i> * * @property string $error */ class False_class extends SimpleXMLElement implements ArrayAccess { /** * Use this method to obtain correct instance * * @return False_class */ static function instance () { static $instance; if (!isset($instance)) { $instance = new self('<?xml version=\'1.0\'?><cs></cs>'); } return $instance; } /** * Getting any property * * @param string $item * * @return False_class */ function __get ($item) { return $this; } /** * Calling of any method * * @param string $method * @param mixed[] $params * * @return False_class */ function __call ($method, $params) { return $this; } /** * @return string */ function __toString () { return '0'; } /** * If item exists */ function offsetExists ($offset) { return false; } /** * Get item */ function offsetGet ($offset) { return $this; } /** * Set item */ public function offsetSet ($offset, $value) {} /** * Delete item */ public function offsetUnset ($offset) {} }
Java
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is JavaScript Engine testing utilities. * * The Initial Developer of the Original Code is * Mozilla Foundation. * Portions created by the Initial Developer are Copyright (C) 2008 * the Initial Developer. All Rights Reserved. * * Contributor(s): Jesse Ruderman * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ var gTestfile = 'regress-463259.js'; //----------------------------------------------------------------------------- var BUGNUMBER = 463259; var summary = 'Do not assert: VALUE_IS_FUNCTION(cx, fval)'; var actual = ''; var expect = ''; printBugNumber(BUGNUMBER); printStatus (summary); jit(true); try { (function(){ eval("(function(){ for (var j=0;j<4;++j) if (j==3) undefined(); })();"); })(); } catch(ex) { } jit(false); reportCompare(expect, actual, summary);
Java
$hidden=true This is a sticky notice that should appear on the homepage!
Java
/* * Farseer Physics Engine: * Copyright (c) 2012 Ian Qvist * * Original source Box2D: * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ using System; using System.Diagnostics; using FarseerPhysics.Common; using Microsoft.Xna.Framework; namespace FarseerPhysics.Dynamics.Joints { // 1-D rained system // m (v2 - v1) = lambda // v2 + (beta/h) * x1 + gamma * lambda = 0, gamma has units of inverse mass. // x2 = x1 + h * v2 // 1-D mass-damper-spring system // m (v2 - v1) + h * d * v2 + h * k * // C = norm(p2 - p1) - L // u = (p2 - p1) / norm(p2 - p1) // Cdot = dot(u, v2 + cross(w2, r2) - v1 - cross(w1, r1)) // J = [-u -cross(r1, u) u cross(r2, u)] // K = J * invM * JT // = invMass1 + invI1 * cross(r1, u)^2 + invMass2 + invI2 * cross(r2, u)^2 /// <summary> /// A distance joint rains two points on two bodies /// to remain at a fixed distance from each other. You can view /// this as a massless, rigid rod. /// </summary> public class DistanceJoint : Joint { #region Properties/Fields /// <summary> /// The local anchor point relative to bodyA's origin. /// </summary> public Vector2 localAnchorA; /// <summary> /// The local anchor point relative to bodyB's origin. /// </summary> public Vector2 localAnchorB; public override sealed Vector2 worldAnchorA { get { return bodyA.getWorldPoint( localAnchorA ); } set { Debug.Assert( false, "You can't set the world anchor on this joint type." ); } } public override sealed Vector2 worldAnchorB { get { return bodyB.getWorldPoint( localAnchorB ); } set { Debug.Assert( false, "You can't set the world anchor on this joint type." ); } } /// <summary> /// The natural length between the anchor points. /// Manipulating the length can lead to non-physical behavior when the frequency is zero. /// </summary> public float length; /// <summary> /// The mass-spring-damper frequency in Hertz. A value of 0 /// disables softness. /// </summary> public float frequency; /// <summary> /// The damping ratio. 0 = no damping, 1 = critical damping. /// </summary> public float dampingRatio; // Solver shared float _bias; float _gamma; float _impulse; // Solver temp int _indexA; int _indexB; Vector2 _u; Vector2 _rA; Vector2 _rB; Vector2 _localCenterA; Vector2 _localCenterB; float _invMassA; float _invMassB; float _invIA; float _invIB; float _mass; #endregion internal DistanceJoint() { jointType = JointType.Distance; } /// <summary> /// This requires defining an /// anchor point on both bodies and the non-zero length of the /// distance joint. If you don't supply a length, the local anchor points /// is used so that the initial configuration can violate the constraint /// slightly. This helps when saving and loading a game. /// Warning Do not use a zero or short length. /// </summary> /// <param name="bodyA">The first body</param> /// <param name="bodyB">The second body</param> /// <param name="anchorA">The first body anchor</param> /// <param name="anchorB">The second body anchor</param> /// <param name="useWorldCoordinates">Set to true if you are using world coordinates as anchors.</param> public DistanceJoint( Body bodyA, Body bodyB, Vector2 anchorA, Vector2 anchorB, bool useWorldCoordinates = false ) : base( bodyA, bodyB ) { jointType = JointType.Distance; if( useWorldCoordinates ) { localAnchorA = bodyA.getLocalPoint( ref anchorA ); localAnchorB = bodyB.getLocalPoint( ref anchorB ); length = ( anchorB - anchorA ).Length(); } else { localAnchorA = anchorA; localAnchorB = anchorB; length = ( base.bodyB.getWorldPoint( ref anchorB ) - base.bodyA.getWorldPoint( ref anchorA ) ).Length(); } } /// <summary> /// Get the reaction force given the inverse time step. Unit is N. /// </summary> /// <param name="invDt"></param> /// <returns></returns> public override Vector2 getReactionForce( float invDt ) { Vector2 F = ( invDt * _impulse ) * _u; return F; } /// <summary> /// Get the reaction torque given the inverse time step. /// Unit is N*m. This is always zero for a distance joint. /// </summary> /// <param name="invDt"></param> /// <returns></returns> public override float getReactionTorque( float invDt ) { return 0.0f; } internal override void initVelocityConstraints( ref SolverData data ) { _indexA = bodyA.islandIndex; _indexB = bodyB.islandIndex; _localCenterA = bodyA._sweep.localCenter; _localCenterB = bodyB._sweep.localCenter; _invMassA = bodyA._invMass; _invMassB = bodyB._invMass; _invIA = bodyA._invI; _invIB = bodyB._invI; Vector2 cA = data.positions[_indexA].c; float aA = data.positions[_indexA].a; Vector2 vA = data.velocities[_indexA].v; float wA = data.velocities[_indexA].w; Vector2 cB = data.positions[_indexB].c; float aB = data.positions[_indexB].a; Vector2 vB = data.velocities[_indexB].v; float wB = data.velocities[_indexB].w; Rot qA = new Rot( aA ), qB = new Rot( aB ); _rA = MathUtils.mul( qA, localAnchorA - _localCenterA ); _rB = MathUtils.mul( qB, localAnchorB - _localCenterB ); _u = cB + _rB - cA - _rA; // Handle singularity. float length = _u.Length(); if( length > Settings.linearSlop ) { _u *= 1.0f / length; } else { _u = Vector2.Zero; } float crAu = MathUtils.cross( _rA, _u ); float crBu = MathUtils.cross( _rB, _u ); float invMass = _invMassA + _invIA * crAu * crAu + _invMassB + _invIB * crBu * crBu; // Compute the effective mass matrix. _mass = invMass != 0.0f ? 1.0f / invMass : 0.0f; if( frequency > 0.0f ) { float C = length - this.length; // Frequency float omega = 2.0f * Settings.pi * frequency; // Damping coefficient float d = 2.0f * _mass * dampingRatio * omega; // Spring stiffness float k = _mass * omega * omega; // magic formulas float h = data.step.dt; _gamma = h * ( d + h * k ); _gamma = _gamma != 0.0f ? 1.0f / _gamma : 0.0f; _bias = C * h * k * _gamma; invMass += _gamma; _mass = invMass != 0.0f ? 1.0f / invMass : 0.0f; } else { _gamma = 0.0f; _bias = 0.0f; } if( Settings.enableWarmstarting ) { // Scale the impulse to support a variable time step. _impulse *= data.step.dtRatio; Vector2 P = _impulse * _u; vA -= _invMassA * P; wA -= _invIA * MathUtils.cross( _rA, P ); vB += _invMassB * P; wB += _invIB * MathUtils.cross( _rB, P ); } else { _impulse = 0.0f; } data.velocities[_indexA].v = vA; data.velocities[_indexA].w = wA; data.velocities[_indexB].v = vB; data.velocities[_indexB].w = wB; } internal override void solveVelocityConstraints( ref SolverData data ) { Vector2 vA = data.velocities[_indexA].v; float wA = data.velocities[_indexA].w; Vector2 vB = data.velocities[_indexB].v; float wB = data.velocities[_indexB].w; // Cdot = dot(u, v + cross(w, r)) Vector2 vpA = vA + MathUtils.cross( wA, _rA ); Vector2 vpB = vB + MathUtils.cross( wB, _rB ); float Cdot = Vector2.Dot( _u, vpB - vpA ); float impulse = -_mass * ( Cdot + _bias + _gamma * _impulse ); _impulse += impulse; Vector2 P = impulse * _u; vA -= _invMassA * P; wA -= _invIA * MathUtils.cross( _rA, P ); vB += _invMassB * P; wB += _invIB * MathUtils.cross( _rB, P ); data.velocities[_indexA].v = vA; data.velocities[_indexA].w = wA; data.velocities[_indexB].v = vB; data.velocities[_indexB].w = wB; } internal override bool solvePositionConstraints( ref SolverData data ) { if( frequency > 0.0f ) { // There is no position correction for soft distance constraints. return true; } var cA = data.positions[_indexA].c; var aA = data.positions[_indexA].a; var cB = data.positions[_indexB].c; var aB = data.positions[_indexB].a; Rot qA = new Rot( aA ), qB = new Rot( aB ); var rA = MathUtils.mul( qA, localAnchorA - _localCenterA ); var rB = MathUtils.mul( qB, localAnchorB - _localCenterB ); var u = cB + rB - cA - rA; var length = u.Length(); Nez.Vector2Ext.normalize( ref u ); var C = length - this.length; C = MathUtils.clamp( C, -Settings.maxLinearCorrection, Settings.maxLinearCorrection ); var impulse = -_mass * C; var P = impulse * u; cA -= _invMassA * P; aA -= _invIA * MathUtils.cross( rA, P ); cB += _invMassB * P; aB += _invIB * MathUtils.cross( rB, P ); data.positions[_indexA].c = cA; data.positions[_indexA].a = aA; data.positions[_indexB].c = cB; data.positions[_indexB].a = aB; return Math.Abs( C ) < Settings.linearSlop; } } }
Java