code
stringlengths
4
991k
repo_name
stringlengths
6
116
path
stringlengths
4
249
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
4
991k
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
const {Scene, Sprite} = spritejs; const container = document.getElementById('stage'); const scene = new Scene({ container, width: 1200, height: 600, // contextType: '2d', }); const layer = scene.layer(); (async function () { const sprite = new Sprite({ anchor: 0.5, bgcolor: 'red', pos: [500, 300], size: [200, 200], borderRadius: 50, }); layer.append(sprite); await sprite.transition(2.0) .attr({ bgcolor: 'green', width: width => width + 100, }); await sprite.transition(1.0) .attr({ bgcolor: 'orange', height: height => height + 100, }); }());
spritejs/spritejs
demos/doc/transition_basic/index.js
JavaScript
mit
628
[ 30522, 9530, 3367, 1063, 3496, 1010, 11867, 17625, 1065, 1027, 11867, 17625, 22578, 1025, 9530, 3367, 11661, 1027, 6254, 1012, 2131, 12260, 3672, 3762, 3593, 1006, 1005, 2754, 1005, 1007, 1025, 9530, 3367, 3496, 1027, 2047, 3496, 1006, 1063, 11661, 1010, 9381, 1024, 14840, 1010, 4578, 1024, 5174, 1010, 1013, 1013, 6123, 13874, 1024, 1005, 14134, 1005, 1010, 1065, 1007, 1025, 9530, 3367, 6741, 1027, 3496, 1012, 6741, 1006, 1007, 1025, 1006, 2004, 6038, 2278, 3853, 1006, 1007, 1063, 9530, 3367, 11867, 17625, 1027, 2047, 11867, 17625, 1006, 1063, 8133, 1024, 1014, 1012, 1019, 1010, 1038, 18195, 12898, 2099, 1024, 1005, 2417, 1005, 1010, 13433, 2015, 1024, 1031, 3156, 1010, 3998, 1033, 1010, 2946, 1024, 1031, 3263, 1010, 3263, 1033, 1010, 3675, 12173, 4173, 1024, 2753, 1010, 1065, 1007, 1025, 6741, 1012, 10439, 10497, 1006, 11867, 17625, 1007, 1025, 26751, 11867, 17625, 1012, 6653, 1006, 1016, 1012, 1014, 1007, 1012, 2012, 16344, 1006, 1063, 1038, 18195, 12898, 2099, 1024, 1005, 2665, 1005, 1010, 9381, 1024, 9381, 1027, 1028, 9381, 1009, 2531, 1010, 1065, 1007, 1025, 26751, 11867, 17625, 1012, 6653, 1006, 1015, 1012, 1014, 1007, 1012, 2012, 16344, 1006, 1063, 1038, 18195, 12898, 2099, 1024, 1005, 4589, 1005, 1010, 4578, 1024, 4578, 1027, 1028, 4578, 1009, 2531, 1010, 1065, 1007, 1025, 1065, 1006, 1007, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<?php /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\BlockBundle\Block\Service; use Sonata\AdminBundle\Form\FormMapper; use Sonata\BlockBundle\Block\BaseBlockService; use Sonata\BlockBundle\Block\BlockContextInterface; use Sonata\BlockBundle\Model\BlockInterface; use Sonata\CoreBundle\Validator\ErrorElement; use Symfony\Component\HttpFoundation\Response; class EmptyBlockService extends BaseBlockService { /** * {@inheritdoc} */ public function buildEditForm(FormMapper $form, BlockInterface $block) { throw new \RuntimeException('Not used, this block renders an empty result if no block document can be found'); } /** * {@inheritdoc} */ public function validateBlock(ErrorElement $errorElement, BlockInterface $block) { throw new \RuntimeException('Not used, this block renders an empty result if no block document can be found'); } /** * {@inheritdoc} */ public function execute(BlockContextInterface $blockContext, Response $response = null) { return new Response(); } }
firestorm23/gyrolab-ste
vendor/sonata-project/block-bundle/Block/Service/EmptyBlockService.php
PHP
mit
1,302
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 1996, 14681, 2622, 7427, 1012, 1008, 1008, 1006, 1039, 1007, 2726, 10958, 26068, 2595, 1026, 2726, 1012, 10958, 26068, 2595, 1030, 14681, 1011, 2622, 1012, 8917, 1028, 1008, 1008, 30524, 1032, 3796, 1032, 2326, 1025, 2224, 14681, 1032, 4748, 10020, 27265, 2571, 1032, 2433, 1032, 2433, 2863, 18620, 1025, 2224, 14681, 1032, 3796, 27265, 2571, 1032, 3796, 1032, 2918, 23467, 8043, 7903, 2063, 1025, 2224, 14681, 1032, 3796, 27265, 2571, 1032, 3796, 1032, 3796, 8663, 18209, 18447, 2121, 12172, 1025, 2224, 14681, 1032, 3796, 27265, 2571, 1032, 2944, 1032, 3796, 18447, 2121, 12172, 1025, 2224, 14681, 1032, 4563, 27265, 2571, 1032, 9398, 8844, 1032, 7561, 12260, 3672, 1025, 2224, 25353, 2213, 14876, 4890, 1032, 6922, 1032, 8299, 14876, 18426, 3508, 1032, 3433, 1025, 2465, 4064, 23467, 8043, 7903, 2063, 8908, 2918, 23467, 8043, 7903, 2063, 1063, 1013, 1008, 1008, 1008, 1063, 1030, 22490, 3527, 2278, 1065, 1008, 1013, 2270, 3853, 3857, 2098, 4183, 14192, 1006, 2433, 2863, 18620, 1002, 2433, 1010, 3796, 18447, 2121, 12172, 1002, 3796, 1007, 1063, 5466, 2047, 1032, 2448, 7292, 10288, 24422, 1006, 1005, 2025, 2109, 1010, 2023, 3796, 17552, 2015, 2019, 4064, 2765, 2065, 2053, 3796, 6254, 2064, 2022, 2179, 1005, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 1063, 1030, 22490, 3527, 2278, 1065, 1008, 1013, 2270, 3853, 9398, 3686, 23467, 1006, 7561, 12260, 3672, 1002, 7561, 12260, 3672, 1010, 3796, 18447, 2121, 12172, 1002, 3796, 1007, 1063, 5466, 2047, 1032, 2448, 7292, 10288, 24422, 1006, 1005, 2025, 2109, 1010, 2023, 3796, 17552, 2015, 2019, 4064, 2765, 2065, 2053, 3796, 6254, 2064, 2022, 2179, 1005, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 1063, 1030, 22490, 3527, 2278, 1065, 1008, 1013, 2270, 3853, 15389, 1006, 3796, 8663, 18209, 18447, 2121, 12172, 1002, 3796, 8663, 18209, 1010, 3433, 1002, 3433, 1027, 19701, 1007, 1063, 2709, 2047, 3433, 1006, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 2005, 1996, 2440, 9385, 1998, 6105, 2592, 1010, 3531, 3193, 1996, 6105, 1008, 5371, 2008, 2001, 5500, 2007, 2023, 3120, 3642, 1012, 1008, 1013, 3415, 15327, 14681, 1032, 3796, 27265, 2571, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2005, 1996, 2440, 9385, 1998, 6105, 2592, 1010, 3531, 3193, 1996, 6105, 1008, 5371, 2008, 2001, 5500, 2007, 2023, 3120, 3642, 1012, 1008, 1013, 3415, 15327, 14681, 1032, 3796, 27265, 2571, 30526 ]
require './test_common.rb' require '../lib/crocus/minibloom' class TestMiniBloom < Test::Unit::TestCase def test_single_push results = [] mb = MiniBloom.new mb.source('p1',1) mb.p1.pro {|i| results << [2*i[0]]} mb.p1 << [2] assert_equal([4], results.pop) end def test_single_table results = [] mb = MiniBloom.new mb.table('p1',{[:key]=>[:val]}) mb.p1 << [1,2] mb.p1.pro {|i| results << [2*i[0]]} keys = mb.p1.keys vals = mb.p1.values mb.tick assert_equal([[2]], results) assert_equal([[1]], keys) assert_equal([[2]], vals) end def test_join_tables results = [] mb = MiniBloom.new mb.table('rel1',{[:key]=>[:val]}) mb.table('p2',{[:key]=>[:val]}) mb.rel1 <= [[:alpha,1], [:beta,2]] mb.p2 <= [[:alpha,3], [:beta,4]] (mb.rel1 * mb.p2).pairs([0]=>[0]){|x,y| results << [x[0],x[1],y[1]]} mb.tick assert_equal([[:alpha, 1, 3], [:beta, 2, 4]], results) end def test_join results = [] mb = MiniBloom.new mb.run_bg mb.source('rel1',2) mb.source('rel2',2) (mb.rel1*mb.rel2).pairs([1]=>[1]) {|i,j| results << [i[0], j[0], j[1]]} mb.rel1 <= [['a',1], ['c', 3]] mb.rel2 << ['b',1] mb.stop assert_equal(['a', 'b', 1], results.pop) assert_equal([], results) end def test_cross_product results = [] mb = MiniBloom.new mb.run_bg mb.source('rel1',2) mb.source('rel2',2) (mb.rel1*mb.rel2).pairs {|i,j| results << i+j} mb.rel1 <= [['a',1], ['c', 3]] mb.rel2 << ['b',1] mb.stop assert_equal([['a', 1, 'b', 1],['c',3, 'b',1]], results.sort) end def test_two_joins outs = [] mb = MiniBloom.new mb.run_bg mb.source('rel1',2) mb.source('rel2',2) mb.source('rel3',2) ((mb.rel1*mb.rel2).pairs([0]=>[0]){|i,j| i+j} * mb.rel3).pairs([2]=>[0]).pro do |i,j| outs << i+j end mb.rel1 <= [[1,:a],[2,:a]] mb.rel2 <= [[1,:b],[2,:b]] mb.rel3 <= [[1,:c],[2,:c]] mb.stop assert_equal([[1, :a, 1, :b, 1, :c], [2, :a, 2, :b, 2, :c]], outs.sort) end require 'set' def test_recursion outs = Set.new links = Set.new mb = MiniBloom.new mb.run_bg mb.source('link', 2) mb.source('path', 2) mb.path <= mb.link mb.path <= (mb.link*mb.path).pairs([1]=>[0]) do |i,j| tup = [i[0], j[1]] unless outs.include? tup outs << tup tup else nil end end [[1,2],[2,3],[3,4],[6,7],[2,7]].each{|i| links << i} mb.link <= links mb.stop assert_equal([[1,2],[1,3],[1,4],[1,7],[2,3],[2,4],[2,7],[3,4],[6,7]], (outs+links).to_a.sort) end def test_group_by outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.group([1], Crocus::sum(0)) {|i| outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([['a', 3],['c', 2]], outs.sort) end def test_agg_nogroup outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.group([], Crocus::sum(0)) {|i| outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[5]], outs.sort) end def test_argagg agg_outs = [] max_outs = [] min_outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.argagg([1], Crocus::min(0)) {|i| agg_outs << i unless i.nil?} mb.r.argmin([1], 0) {|i| min_outs << i unless i.nil?} mb.r.argmax([1], 0) {|i| max_outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[1,'a'],[2,'c']], agg_outs.sort) assert_equal([[1,'a'],[2,'c']], min_outs.sort) assert_equal([[2,'a'],[2,'c']], max_outs.sort) end def test_argagg_nogroup outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.argagg([], Crocus::min(0)) {|i| outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[1,'a']], outs) end def test_preds mb = MiniBloom.new mb.run_bg mb.source('r',2) ex_outs = false inc_outs = false fail_outs = false mb.r.on_exists? {ex_outs = true} mb.r.on_include?([1,'a']) {inc_outs = true} mb.r.on_include?(['joe']) {fail_outs = true} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal(true, ex_outs) assert_equal(true, inc_outs) assert_equal(false, fail_outs) end def test_inspected outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.inspected.pro {|i| outs << i} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[1,'a'],[2,'a'],[2,'c']].map{|i| [i.inspect]}, outs) end end
jhellerstein/crocus
test/tc_minibloom.rb
Ruby
bsd-3-clause
4,706
[ 30522, 5478, 1005, 1012, 1013, 3231, 1035, 2691, 1012, 21144, 1005, 5478, 1005, 1012, 1012, 1013, 5622, 2497, 1013, 13675, 10085, 2271, 1013, 7163, 16558, 17650, 1005, 2465, 3231, 25300, 16558, 17650, 1026, 3231, 1024, 1024, 3131, 1024, 1024, 3231, 18382, 13366, 3231, 1035, 2309, 1035, 5245, 3463, 1027, 1031, 1033, 16914, 1027, 7163, 16558, 17650, 1012, 2047, 16914, 1012, 3120, 1006, 1005, 1052, 2487, 1005, 1010, 1015, 1007, 16914, 1012, 1052, 2487, 1012, 4013, 1063, 1064, 1045, 1064, 3463, 1026, 1026, 1031, 1016, 1008, 1045, 1031, 1014, 1033, 1033, 1065, 16914, 1012, 1052, 2487, 1026, 1026, 1031, 1016, 1033, 20865, 1035, 5020, 1006, 1031, 1018, 1033, 1010, 3463, 1012, 3769, 1007, 2203, 13366, 3231, 1035, 2309, 1035, 2795, 3463, 1027, 1031, 1033, 16914, 1027, 7163, 16558, 17650, 1012, 2047, 16914, 1012, 2795, 1006, 1005, 1052, 2487, 1005, 1010, 1063, 1031, 1024, 3145, 1033, 1027, 1028, 1031, 1024, 11748, 1033, 1065, 1007, 16914, 1012, 1052, 2487, 1026, 1026, 1031, 1015, 1010, 1016, 1033, 16914, 1012, 1052, 2487, 1012, 4013, 1063, 1064, 1045, 1064, 3463, 1026, 1026, 1031, 1016, 1008, 1045, 1031, 1014, 1033, 1033, 1065, 6309, 1027, 16914, 1012, 1052, 2487, 1012, 6309, 11748, 2015, 1027, 16914, 1012, 1052, 2487, 1012, 5300, 16914, 1012, 16356, 20865, 1035, 5020, 1006, 1031, 1031, 1016, 1033, 1033, 1010, 30524, 1012, 2795, 1006, 1005, 2128, 2140, 2487, 1005, 1010, 1063, 1031, 1024, 3145, 1033, 1027, 1028, 1031, 1024, 11748, 1033, 1065, 1007, 16914, 1012, 2795, 1006, 1005, 1052, 2475, 1005, 1010, 1063, 1031, 1024, 3145, 1033, 1027, 1028, 1031, 1024, 11748, 1033, 1065, 1007, 16914, 1012, 2128, 2140, 2487, 1026, 1027, 1031, 1031, 1024, 6541, 1010, 1015, 1033, 1010, 1031, 1024, 8247, 1010, 1016, 1033, 1033, 16914, 1012, 1052, 2475, 1026, 1027, 1031, 1031, 1024, 6541, 1010, 1017, 1033, 1010, 1031, 1024, 8247, 1010, 1018, 1033, 1033, 1006, 16914, 1012, 2128, 2140, 2487, 1008, 16914, 1012, 1052, 2475, 1007, 1012, 7689, 1006, 1031, 1014, 1033, 1027, 1028, 1031, 1014, 1033, 1007, 1063, 1064, 1060, 1010, 1061, 1064, 3463, 1026, 1026, 1031, 1060, 1031, 1014, 1033, 1010, 1060, 1031, 1015, 1033, 1010, 1061, 1031, 1015, 1033, 1033, 1065, 16914, 1012, 16356, 20865, 1035, 5020, 1006, 1031, 1031, 1024, 6541, 1010, 1015, 1010, 1017, 1033, 1010, 1031, 1024, 8247, 1010, 1016, 1010, 1018, 1033, 1033, 1010, 3463, 1007, 2203, 13366, 3231, 1035, 3693, 3463, 1027, 1031, 1033, 16914, 1027, 7163, 16558, 17650, 1012, 2047, 16914, 1012, 2448, 1035, 1038, 2290, 16914, 1012, 3120, 1006, 1005, 2128, 2140, 2487, 1005, 1010, 1016, 1007, 16914, 1012, 3120, 1006, 1005, 2128, 2140, 2475, 1005, 1010, 1016, 1007, 1006, 16914, 1012, 2128, 2140, 2487, 1008, 16914, 1012, 2128, 2140, 2475, 1007, 1012, 7689, 1006, 1031, 1015, 1033, 1027, 1028, 1031, 1015, 1033, 1007, 1063, 30523, 3463, 1007, 20865, 1035, 5020, 1006, 1031, 1031, 1015, 1033, 1033, 1010, 6309, 1007, 20865, 1035, 5020, 1006, 1031, 1031, 1016, 1033, 1033, 1010, 11748, 2015, 1007, 2203, 13366, 3231, 1035, 3693, 1035, 7251, 3463, 1027, 1031, 1033, 16914, 1027, 7163, 16558, 17650, 1012, 2047, 16914, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3463, 1007, 20865, 1035, 5020, 1006, 1031, 1031, 1015, 1033, 1033, 1010, 6309, 1007, 20865, 1035, 5020, 1006, 1031, 1031, 1016, 1033, 1033, 1010, 11748, 2015, 1007, 2203, 13366, 3231, 1035, 3693, 1035, 7251, 3463, 1027, 1031, 1033, 16914, 1027, 7163, 16558, 17650, 1012, 2047, 16914, 30526 ]
package com.monkeysarmy.fit.ui.debug; import android.view.View; import android.view.ViewGroup; /** * A {@link android.view.ViewGroup.OnHierarchyChangeListener hierarchy change listener} which recursively * monitors an entire tree of views. */ public final class HierarchyTreeChangeListener implements ViewGroup.OnHierarchyChangeListener { /** * Wrap a regular {@link android.view.ViewGroup.OnHierarchyChangeListener hierarchy change listener} with one * that monitors an entire tree of views. */ public static HierarchyTreeChangeListener wrap(ViewGroup.OnHierarchyChangeListener delegate) { return new HierarchyTreeChangeListener(delegate); } private final ViewGroup.OnHierarchyChangeListener delegate; private HierarchyTreeChangeListener(ViewGroup.OnHierarchyChangeListener delegate) { if (delegate == null) { throw new NullPointerException("Delegate must not be null."); } this.delegate = delegate; } @Override public void onChildViewAdded(View parent, View child) { delegate.onChildViewAdded(parent, child); if (child instanceof ViewGroup) { ViewGroup childGroup = (ViewGroup) child; childGroup.setOnHierarchyChangeListener(this); for (int i = 0; i < childGroup.getChildCount(); i++) { onChildViewAdded(childGroup, childGroup.getChildAt(i)); } } } @Override public void onChildViewRemoved(View parent, View child) { if (child instanceof ViewGroup) { ViewGroup childGroup = (ViewGroup) child; for (int i = 0; i < childGroup.getChildCount(); i++) { onChildViewRemoved(childGroup, childGroup.getChildAt(i)); } childGroup.setOnHierarchyChangeListener(null); } delegate.onChildViewRemoved(parent, child); } }
niqo01/monkey
src/internalDebug/java/com/monkeysarmy/fit/ui/debug/HierarchyTreeChangeListener.java
Java
apache-2.0
1,757
[ 30522, 7427, 4012, 1012, 17059, 27292, 2100, 1012, 4906, 1012, 21318, 1012, 2139, 8569, 2290, 1025, 12324, 11924, 1012, 3193, 1012, 3193, 1025, 12324, 11924, 1012, 3193, 1012, 3193, 17058, 1025, 1013, 1008, 1008, 1008, 1037, 1063, 1030, 4957, 11924, 1012, 3193, 1012, 3193, 17058, 1012, 2006, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 12571, 2689, 19373, 1065, 2029, 28667, 9236, 14547, 1008, 15410, 2019, 2972, 3392, 1997, 5328, 1012, 1008, 1013, 2270, 2345, 2465, 12571, 13334, 22305, 29282, 6528, 2121, 22164, 3193, 17058, 1012, 2006, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 1063, 1013, 1008, 1008, 1008, 10236, 1037, 3180, 1063, 1030, 4957, 11924, 1012, 3193, 1012, 3193, 17058, 1012, 2006, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 12571, 2689, 19373, 1065, 2007, 2028, 1008, 2008, 15410, 2019, 2972, 3392, 1997, 5328, 1012, 1008, 1013, 2270, 10763, 12571, 13334, 22305, 29282, 6528, 2121, 10236, 1006, 3193, 17058, 1012, 2006, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 11849, 1007, 1063, 2709, 2047, 12571, 13334, 22305, 29282, 6528, 2121, 1006, 11849, 1007, 1025, 1065, 2797, 2345, 3193, 17058, 1012, 2006, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 11849, 1025, 2797, 12571, 13334, 22305, 29282, 6528, 2121, 1006, 3193, 17058, 1012, 2006, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 11849, 1007, 1063, 2065, 1006, 11849, 1027, 1027, 19701, 1007, 1063, 5466, 2047, 19701, 8400, 7869, 2595, 24422, 1006, 1000, 11849, 2442, 2025, 2022, 19701, 1012, 1000, 1007, 1025, 1065, 2023, 1012, 11849, 1027, 11849, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 2006, 19339, 8584, 4215, 5732, 1006, 3193, 6687, 1010, 3193, 2775, 1007, 1063, 11849, 1012, 2006, 19339, 8584, 4215, 5732, 1006, 6687, 1010, 2775, 1007, 1025, 2065, 1006, 2775, 6013, 11253, 3193, 17058, 1007, 1063, 3193, 17058, 2775, 17058, 1027, 1006, 3193, 17058, 1007, 2775, 1025, 2775, 17058, 1012, 28796, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 1006, 2023, 1007, 1025, 2005, 1006, 20014, 1045, 1027, 1014, 1025, 1045, 1026, 2775, 17058, 1012, 2131, 19339, 3597, 16671, 1006, 1007, 1025, 1045, 1009, 1009, 1007, 1063, 2006, 19339, 8584, 4215, 5732, 1006, 2775, 17058, 1010, 2775, 17058, 1012, 2131, 19339, 4017, 1006, 1045, 1007, 1007, 1025, 1065, 1065, 1065, 1030, 2058, 15637, 2270, 11675, 2006, 19339, 8584, 28578, 21818, 2094, 1006, 3193, 6687, 1010, 3193, 2775, 1007, 1063, 2065, 1006, 2775, 6013, 11253, 3193, 17058, 1007, 1063, 3193, 17058, 2775, 17058, 1027, 1006, 3193, 17058, 1007, 2775, 1025, 2005, 1006, 20014, 1045, 1027, 1014, 1025, 1045, 1026, 2775, 17058, 1012, 2131, 19339, 3597, 16671, 1006, 1007, 1025, 1045, 1009, 1009, 1007, 1063, 2006, 19339, 8584, 28578, 21818, 2094, 30524, 1007, 1007, 1025, 1065, 2775, 17058, 1012, 28796, 4048, 6906, 29389, 22305, 29282, 6528, 2121, 1006, 19701, 1007, 1025, 1065, 11849, 1012, 2006, 19339, 8584, 28578, 21818, 2094, 1006, 6687, 1010, 2775, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1006, 2775, 17058, 1010, 2775, 17058, 1012, 2131, 19339, 4017, 1006, 1045, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1006, 2775, 17058, 1010, 2775, 17058, 1012, 2131, 19339, 4017, 1006, 1045, 30526 ]
// // graphene_functions.hpp // graphenePFC // // Created by Rachel Zucker on 8/15/16. // Copyright © 2016 Rachel Zucker. All rights reserved. // #ifndef graphene_functions_hpp #define graphene_functions_hpp #include "matrix_types.hpp" // an inital condition that produces an AC circle inside an AB matrix void InitialCircle(matrix_t* n_mat, const double r0); // an inital condition that produces stripes void InitialShallowStripes(matrix_t* n_mat, const double r0); void InitialSteepStripes(matrix_t* n_mat, const double r0); void InitialDiagonalStripes(matrix_t* n_mat, const double r0); void InitialVerticalStripes(matrix_t* n_mat, const double r0); void InitialHorizontalStripes(matrix_t* n_mat, const double r0); void InitialHorizontalDoubleStripes(matrix_t* n_mat, const double r0); void InitialSmoothStripes(matrix_t* n_mat, const double r0, const double degrees); void InitialSmoothStripesVert(matrix_t* n_mat, const double r0, const double degrees); // an inital condition to make a perfect "A" sheet void InitialAA(matrix_t* n_mat, const double r0); // a function that can add a constant shift to a matrix, useful for conserved dynamics void AddConstToMatrix(matrix_t* n_mat, const double amount); // a function that produces the fourier-space vectors // in cylindrical coordinates void MakeKs(matrix_t* k_r, matrix_t* k_th); // a function that produces the fourier transform of the coefficients // C2, Cs1, and Cs2 from Seymour's paper void MakeCs(matrix_t* c2, matrix_t* cs1, matrix_t* cs2, matrix_t* minus_k_squared, const double r0, const double a0); // a function that writes a matrix to a file in the directory directoryString // with the first line "the time is (time)" and a filename of the iteration number void WriteMatrix(const double time, const double energy_val, const std::string directory_string, const matrix_t& mat); void AFMTip(matrix_t* total_potential, const double radius, const double speed, const double force, const double angle, const double time, const double delay, const matrix_t& fixed_potential); #endif /* graphene_functions_hpp */
rzucker/graphenePFC
graphenePFC/graphene_functions.hpp
C++
mit
2,088
[ 30522, 1013, 1013, 1013, 1013, 10629, 8625, 1035, 4972, 1012, 6522, 2361, 1013, 1013, 10629, 8625, 14376, 2278, 1013, 1013, 1013, 1013, 2580, 2011, 5586, 16950, 9102, 2006, 1022, 1013, 2321, 1013, 2385, 1012, 1013, 1013, 9385, 1075, 2355, 5586, 16950, 9102, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 1001, 2065, 13629, 2546, 10629, 8625, 1035, 4972, 1035, 6522, 2361, 1001, 9375, 10629, 8625, 1035, 4972, 1035, 6522, 2361, 1001, 2421, 1000, 8185, 1035, 4127, 1012, 6522, 2361, 1000, 1013, 1013, 2019, 1999, 18400, 4650, 2008, 7137, 2019, 9353, 4418, 2503, 2019, 11113, 8185, 11675, 3988, 6895, 21769, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 1013, 1013, 2019, 1999, 18400, 4650, 2008, 7137, 13560, 11675, 20381, 9892, 15568, 24901, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 11675, 20381, 17389, 4523, 24901, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 11675, 3988, 9032, 20028, 3367, 29443, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 11675, 3988, 16874, 7476, 3367, 29443, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 11675, 3988, 16368, 10993, 12162, 9777, 24901, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 11675, 3988, 16368, 10993, 12162, 27318, 12083, 4244, 24901, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 11675, 20381, 5302, 14573, 3367, 29443, 2229, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1010, 9530, 3367, 3313, 5445, 1007, 1025, 11675, 20381, 5302, 14573, 3367, 29443, 2229, 16874, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1010, 9530, 3367, 3313, 5445, 1007, 1025, 1013, 1013, 2019, 1999, 18400, 4650, 2000, 2191, 1037, 3819, 1000, 1037, 1000, 7123, 11675, 3988, 11057, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 1054, 2692, 1007, 1025, 1013, 1013, 1037, 3853, 2008, 2064, 5587, 1037, 5377, 5670, 2000, 1037, 8185, 1010, 6179, 2005, 19995, 10949, 11675, 5587, 8663, 3367, 20389, 30524, 1013, 1037, 3853, 2008, 7137, 1996, 26899, 1011, 2686, 19019, 1013, 1013, 1999, 18797, 12093, 11675, 2191, 5705, 1006, 8185, 1035, 1056, 1008, 1047, 1035, 1054, 1010, 8185, 1035, 1056, 1008, 1047, 1035, 16215, 1007, 1025, 1013, 1013, 1037, 3853, 2008, 7137, 1996, 26899, 10938, 1997, 1996, 21374, 1013, 1013, 29248, 1010, 20116, 2487, 1010, 1998, 20116, 2475, 2013, 13254, 1005, 1055, 3259, 11675, 2191, 6169, 1006, 8185, 1035, 1056, 1008, 29248, 1010, 8185, 1035, 1056, 1008, 20116, 2487, 1010, 8185, 1035, 1056, 1008, 20116, 2475, 1010, 8185, 1035, 1056, 1008, 15718, 1035, 1047, 1035, 19942, 1010, 9530, 3367, 3313, 1054, 2692, 1010, 9530, 3367, 30523, 4017, 17682, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 3815, 1007, 1025, 1013, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4017, 17682, 1006, 8185, 1035, 1056, 1008, 1050, 1035, 13523, 1010, 9530, 3367, 3313, 3815, 1007, 1025, 1013, 30526 ]
/** Copyright 2017 Andrea "Stock" Stocchero 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. */ /** * Contains the {@link org.pepstock.charba.client.annotation.AnnotationPlugin#ID} plugin elements interfaces to use in the callbacks and events. * * @author Andrea "Stock" Stocchero * */ package org.pepstock.charba.client.annotation.elements;
pepstock-org/Charba
src/org/pepstock/charba/client/annotation/elements/package-info.java
Java
apache-2.0
881
[ 30522, 1013, 1008, 1008, 9385, 2418, 8657, 1000, 4518, 1000, 2358, 10085, 7474, 2080, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 1013, 1008, 1008, 1008, 3397, 1996, 1063, 1030, 4957, 8917, 1012, 27233, 14758, 1012, 25869, 3676, 1012, 7396, 1012, 5754, 17287, 3508, 1012, 5754, 17287, 3508, 24759, 15916, 2378, 1001, 8909, 1065, 13354, 2378, 3787, 19706, 2000, 2224, 1999, 1996, 2655, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12221, 1998, 2824, 1012, 1008, 1008, 1030, 3166, 8657, 1000, 4518, 1000, 2358, 10085, 7474, 2080, 1008, 1008, 1013, 7427, 8917, 1012, 27233, 14758, 1012, 25869, 3676, 1012, 7396, 1012, 5754, 17287, 3508, 1012, 3787, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<?php namespace SilexMarkdown\Parser; use SilexMarkdown\Filter\FilterInterface; interface ParserInterface { public function transform($source); public function registerFilter($method, FilterInterface $filter); public function getFilters(); public function hasFilter($method); public function useFilter($method, $content, $params); }
MadCatme/SilexMarkdown
src/SilexMarkdown/Parser/ParserInterface.php
PHP
mit
356
[ 30522, 1026, 1029, 25718, 3415, 15327, 9033, 2571, 2595, 10665, 7698, 1032, 11968, 8043, 1025, 2224, 9033, 2571, 2595, 10665, 7698, 1032, 11307, 1032, 11307, 18447, 2121, 12172, 1025, 8278, 11968, 8043, 18447, 2121, 12172, 1063, 2270, 3853, 10938, 1006, 1002, 3120, 1007, 1025, 2270, 3853, 4236, 8873, 21928, 1006, 1002, 4118, 1010, 11307, 18447, 2121, 12172, 1002, 11307, 1007, 1025, 2270, 3853, 2131, 8873, 21928, 2015, 1006, 1007, 1025, 2270, 3853, 2038, 8873, 21928, 1006, 1002, 4118, 1007, 1025, 2270, 3853, 2224, 8873, 21928, 1006, 1002, 4118, 1010, 1002, 4180, 1010, 1002, 11498, 5244, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* * Copyright 2013, winocm. <[email protected]> * 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. * * If you are going to use this software in any form that does not involve * releasing the source to this project or improving it, let me know beforehand. * * 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. */ /* * Compatibility support to bridge old pe_arm_xxx api and new * AWESOME SOC DISPATCH STUFF. */ #include <mach/mach_types.h> #include <pexpert/pexpert.h> #include <pexpert/arm/protos.h> #include <pexpert/arm/boot.h> #include <machine/machine_routines.h> #include <kern/debug.h> /** * pe_arm_init_interrupts * * Initialize the SoC dependent interrrupt controller. */ uint32_t pe_arm_init_interrupts(__unused void *args) { if (gPESocDispatch.interrupt_init == NULL) panic("gPESocDispatch.interrupt_init was null, did you forget to set up the table?"); gPESocDispatch.interrupt_init(); return 0; } /** * pe_arm_init_timebase * * Initialize the SoC dependent timebase. */ uint32_t pe_arm_init_timebase(__unused void *args) { if (gPESocDispatch.timebase_init == NULL) panic("gPESocDispatch.timebase_init was null, did you forget to set up the table?"); gPESocDispatch.timebase_init(); return 0; } /** * pe_arm_dispatch_interrupt * * Dispatch IRQ requests to the SoC specific handler. */ boolean_t pe_arm_dispatch_interrupt(void *context) { if (gPESocDispatch.handle_interrupt == NULL) panic("gPESocDispatch.handle_interrupt was null, did you forget to set up the table?"); gPESocDispatch.handle_interrupt(context); return TRUE; } /** * pe_arm_get_timebase * * Get current system timebase from the SoC handler. */ uint64_t pe_arm_get_timebase(__unused void *args) { if (gPESocDispatch.get_timebase == NULL) panic("gPESocDispatch.get_timebase was null, did you forget to set up the table?"); return gPESocDispatch.get_timebase(); } /** * pe_arm_set_timer_enabled * * Set platform timer enabled status. */ void pe_arm_set_timer_enabled(boolean_t enable) { if (gPESocDispatch.timer_enabled == NULL) panic("gPESocDispatch.timer_enabled was null, did you forget to set up the table?"); gPESocDispatch.timer_enabled(enable); } /* * iOS like functionality. */ uint32_t debug_enabled = 1; uint32_t PE_i_can_has_debugger(uint32_t * pe_debug) { if (pe_debug) { if (debug_enabled) *pe_debug = 1; else *pe_debug = 0; } return debug_enabled; } uint32_t PE_get_security_epoch(void) { return 0; }
p01arst0rm/decorum-linux
_resources/kernels/xnu-arm/pexpert/arm/common/pe_armsupport.c
C
gpl-3.0
3,815
[ 30522, 1013, 1008, 1008, 9385, 2286, 1010, 2663, 10085, 2213, 1012, 1026, 2663, 10085, 2213, 1030, 24582, 23743, 2094, 1012, 4012, 1028, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 1010, 2007, 2030, 2302, 14080, 1010, 1008, 2024, 7936, 3024, 2008, 1996, 2206, 3785, 2024, 2777, 1024, 1008, 1008, 25707, 2015, 1997, 3120, 3642, 2442, 9279, 1996, 2682, 9385, 5060, 1010, 2023, 1008, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1012, 1008, 1008, 25707, 2015, 1999, 12441, 2433, 2442, 21376, 1996, 2682, 9385, 5060, 1010, 2023, 1008, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1999, 1996, 12653, 1998, 1013, 2030, 1008, 2060, 4475, 3024, 2007, 1996, 4353, 1012, 1008, 1008, 2065, 2017, 2024, 2183, 2000, 2224, 2023, 4007, 1999, 2151, 2433, 2008, 2515, 2025, 9125, 1008, 8287, 1996, 3120, 2000, 2023, 2622, 2030, 9229, 2009, 1010, 2292, 2033, 2113, 25828, 1012, 1008, 1008, 2023, 4007, 2003, 3024, 2011, 1996, 9385, 13304, 1998, 16884, 1000, 2004, 2003, 1000, 1998, 1008, 2151, 4671, 2030, 13339, 10943, 3111, 1010, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 1996, 13339, 1008, 10943, 3111, 1997, 6432, 8010, 1998, 10516, 2005, 1037, 3327, 3800, 2024, 1008, 5860, 19771, 7583, 1012, 1999, 2053, 2724, 4618, 1996, 9385, 9111, 2030, 16884, 2022, 20090, 2005, 1008, 2151, 3622, 1010, 14958, 1010, 5043, 2389, 1010, 2569, 1010, 27792, 1010, 2030, 9530, 3366, 15417, 4818, 12394, 1008, 1006, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 21423, 1997, 7681, 5350, 2030, 2578, 1025, 1008, 3279, 1997, 2224, 1010, 2951, 1010, 2030, 11372, 1025, 2030, 2449, 24191, 1007, 2174, 3303, 1998, 2006, 1008, 2151, 3399, 1997, 14000, 1010, 3251, 1999, 3206, 1010, 9384, 14000, 1010, 2030, 17153, 2102, 1008, 1006, 2164, 27988, 2030, 4728, 1007, 17707, 1999, 2151, 2126, 2041, 1997, 1996, 2224, 1997, 2023, 1008, 4007, 1010, 2130, 2065, 9449, 1997, 1996, 6061, 1997, 2107, 4053, 1012, 1008, 1013, 1013, 1008, 1008, 21778, 2490, 30524, 4933, 1012, 1008, 1013, 1001, 2421, 1026, 24532, 1013, 24532, 1035, 4127, 1012, 1044, 1028, 1001, 2421, 1026, 21877, 2595, 4842, 2102, 1013, 21877, 2595, 4842, 2102, 1012, 1044, 1028, 1001, 2421, 1026, 21877, 2595, 4842, 2102, 1013, 2849, 1013, 15053, 2015, 1012, 1044, 1028, 1001, 2421, 1026, 21877, 2595, 4842, 2102, 1013, 2849, 1013, 9573, 1012, 1044, 1028, 1001, 2421, 1026, 3698, 1013, 3698, 1035, 23964, 1012, 1044, 1028, 1001, 2421, 1026, 22762, 1013, 2139, 8569, 2290, 1012, 1044, 1028, 1013, 1008, 1008, 1008, 21877, 1035, 2849, 1035, 1999, 4183, 1035, 17938, 2015, 1008, 1008, 3988, 4697, 1996, 27084, 7790, 6970, 12171, 29441, 11486, 1012, 1008, 1013, 21318, 3372, 16703, 1035, 1056, 21877, 1035, 2849, 1035, 1999, 4183, 1035, 17938, 2015, 1006, 1035, 1035, 15171, 11675, 1008, 12098, 5620, 1007, 1063, 2065, 1006, 14246, 2229, 10085, 10521, 4502, 10649, 1012, 17938, 1035, 1999, 4183, 1027, 1027, 19701, 1007, 6634, 1006, 1000, 14246, 2229, 10085, 10521, 4502, 10649, 1012, 17938, 1035, 30523, 2000, 2958, 2214, 21877, 1035, 2849, 1035, 22038, 2595, 17928, 1998, 2047, 1008, 12476, 27084, 18365, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2000, 2958, 2214, 21877, 1035, 2849, 1035, 22038, 2595, 17928, 1998, 2047, 1008, 12476, 27084, 18365, 30526 ]
/* Resource.cpp Resource base class (c)2005 Palestar, Richard Lyle */ #define RESOURCE_DLL #include "Resource/Resource.h" #include "Factory/FactoryTypes.h" //------------------------------------------------------------------------------- IMPLEMENT_RESOURCE_FACTORY( Resource, Widget ); Resource::Resource() {} //------------------------------------------------------------------------------- // EOF
palestar/medusa
Resource/Resource.cpp
C++
mit
408
[ 30522, 1013, 1008, 7692, 1012, 18133, 2361, 7692, 2918, 2465, 1006, 1039, 1007, 2384, 5122, 14117, 1010, 2957, 21971, 1008, 1013, 1001, 9375, 7692, 1035, 21469, 2140, 1001, 2421, 1000, 7692, 1013, 7692, 1012, 1044, 1000, 1001, 2421, 1000, 4713, 1013, 4713, 13874, 2015, 1012, 1044, 1000, 1013, 1013, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 30524, 1035, 4713, 1006, 7692, 1010, 15536, 24291, 1007, 1025, 7692, 1024, 1024, 7692, 1006, 1007, 1063, 1065, 1013, 1013, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1013, 1013, 1041, 11253, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011,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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 10408, 1035, 7692, 30526 ]
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.simplesystemsmanagement.model.transform; import static com.amazonaws.util.StringUtils.UTF8; import static com.amazonaws.util.StringUtils.COMMA_SEPARATOR; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.OutputStreamWriter; import java.io.StringWriter; import java.io.Writer; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.List; import java.util.regex.Pattern; import com.amazonaws.AmazonClientException; import com.amazonaws.Request; import com.amazonaws.DefaultRequest; import com.amazonaws.http.HttpMethodName; import com.amazonaws.services.simplesystemsmanagement.model.*; import com.amazonaws.transform.Marshaller; import com.amazonaws.util.BinaryUtils; import com.amazonaws.util.StringUtils; import com.amazonaws.util.StringInputStream; import com.amazonaws.util.json.*; /** * DeleteAssociationRequest Marshaller */ public class DeleteAssociationRequestMarshaller implements Marshaller<Request<DeleteAssociationRequest>, DeleteAssociationRequest> { public Request<DeleteAssociationRequest> marshall( DeleteAssociationRequest deleteAssociationRequest) { if (deleteAssociationRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(...)"); } Request<DeleteAssociationRequest> request = new DefaultRequest<DeleteAssociationRequest>( deleteAssociationRequest, "AWSSimpleSystemsManagement"); request.addHeader("X-Amz-Target", "AmazonSSM.DeleteAssociation"); request.setHttpMethod(HttpMethodName.POST); request.setResourcePath(""); try { StringWriter stringWriter = new StringWriter(); JSONWriter jsonWriter = new JSONWriter(stringWriter); jsonWriter.object(); if (deleteAssociationRequest.getName() != null) { jsonWriter.key("Name") .value(deleteAssociationRequest.getName()); } if (deleteAssociationRequest.getInstanceId() != null) { jsonWriter.key("InstanceId").value( deleteAssociationRequest.getInstanceId()); } jsonWriter.endObject(); String snippet = stringWriter.toString(); byte[] content = snippet.getBytes(UTF8); request.setContent(new StringInputStream(snippet)); request.addHeader("Content-Length", Integer.toString(content.length)); request.addHeader("Content-Type", "application/x-amz-json-1.1"); } catch (Throwable t) { throw new AmazonClientException( "Unable to marshall request to JSON: " + t.getMessage(), t); } return request; } }
trasa/aws-sdk-java
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DeleteAssociationRequestMarshaller.java
Java
apache-2.0
3,452
[ 30522, 1013, 1008, 1008, 9385, 2230, 1011, 2355, 9733, 1012, 4012, 1010, 4297, 1012, 2030, 2049, 18460, 1012, 2035, 2916, 9235, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1012, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 1037, 6100, 1997, 1996, 6105, 2003, 2284, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 22091, 2015, 1012, 9733, 1012, 4012, 1013, 15895, 2475, 1012, 1014, 1008, 1008, 2030, 1999, 1996, 1000, 6105, 1000, 5371, 10860, 2023, 5371, 1012, 2023, 5371, 2003, 5500, 1008, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 1008, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 1008, 6656, 2015, 1998, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 4012, 1012, 9733, 10376, 2015, 1012, 2578, 1012, 3722, 29390, 24805, 20511, 1012, 2944, 1012, 10938, 1025, 12324, 10763, 4012, 1012, 9733, 10376, 2015, 1012, 21183, 4014, 1012, 5164, 21823, 4877, 1012, 21183, 2546, 2620, 1025, 12324, 10763, 4012, 1012, 9733, 10376, 2015, 1012, 21183, 4014, 1012, 5164, 21823, 4877, 1012, 4012, 2863, 1035, 19802, 25879, 2953, 1025, 12324, 9262, 1012, 22834, 1012, 24880, 2906, 9447, 2378, 18780, 21422, 1025, 12324, 9262, 1012, 22834, 1012, 24880, 2906, 9447, 5833, 18780, 21422, 1025, 12324, 9262, 1012, 22834, 1012, 27852, 25379, 15994, 1025, 12324, 9262, 1012, 22834, 1012, 5164, 15994, 1025, 12324, 9262, 1012, 22834, 1012, 3213, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 6407, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 23325, 2863, 2361, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 4949, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 19723, 10288, 1012, 5418, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 9733, 20464, 25099, 2595, 24422, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 5227, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 30524, 3722, 29390, 24805, 20511, 1012, 2944, 1012, 1008, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 10938, 1012, 5832, 2121, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 21183, 4014, 1012, 12441, 21823, 4877, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 21183, 4014, 1012, 5164, 21823, 4877, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 21183, 4014, 1012, 5164, 2378, 18780, 21422, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 21183, 4014, 1012, 1046, 3385, 1012, 1008, 1025, 1013, 1008, 1008, 1008, 3972, 12870, 12054, 10085, 18963, 2890, 15500, 5832, 2121, 1008, 1013, 2270, 2465, 3972, 12870, 12054, 10085, 18963, 2890, 15500, 7849, 7377, 10820, 22164, 5832, 2121, 1026, 5227, 1026, 3972, 12870, 12054, 10085, 18963, 2890, 15500, 1028, 1010, 3972, 12870, 12054, 10085, 18963, 2890, 15500, 1028, 1063, 2270, 5227, 1026, 3972, 12870, 12054, 10085, 18963, 2890, 15500, 1028, 5832, 1006, 3972, 12870, 12054, 10085, 18963, 2890, 30523, 1012, 12398, 2890, 15500, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 8299, 1012, 8299, 11368, 6806, 28911, 4168, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 2578, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 12398, 2890, 15500, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 8299, 1012, 8299, 11368, 6806, 28911, 4168, 1025, 12324, 4012, 1012, 9733, 10376, 2015, 1012, 2578, 1012, 30526 ]
span.cm-liquid-control { } span.cm-liquid-output { } span.cm-liquid-control, span.cm-liquid-output { color: purple; }
redlinesoftware/liquid_cms
lib/generators/liquid_cms/templates/public/cms/stylesheets/liquid.css
CSS
mit
120
[ 30522, 8487, 1012, 4642, 1011, 6381, 1011, 2491, 1063, 1065, 8487, 1012, 4642, 1011, 6381, 1011, 6434, 1063, 1065, 8487, 1012, 4642, 1011, 6381, 1011, 2491, 1010, 8487, 1012, 4642, 1011, 6381, 1011, 6434, 1063, 3609, 1024, 6379, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
#include "NodoTipo.h" NodoTipo::NodoTipo(Tipo* obj) { setTipo(obj); setDer(NULL); setIzq(NULL); _listaISBN = new ListaISBN(); } NodoTipo*&NodoTipo::getIzq() { return _izq; } void NodoTipo::setIzq(NodoTipo* _izq) { this->_izq = _izq; } NodoTipo*& NodoTipo::getDer() { return _der; } void NodoTipo::setDer(NodoTipo* _der) { this->_der = _der; } Tipo* NodoTipo::getTipo()const { return _Tipo; } void NodoTipo::setTipo(Tipo* _Tipo) { this->_Tipo = _Tipo; } NodoTipo::~NodoTipo() { _listaISBN->destruir(); delete _listaISBN; delete _Tipo; } ListaISBN* NodoTipo::getListaISBN(){ return _listaISBN; } void NodoTipo::setListaISBN(ListaISBN* l){ _listaISBN = l; } void NodoTipo::agregarISBN(int isbn){ _listaISBN->Inserta(isbn); } bool NodoTipo::borrarISBN(int isbn){ return _listaISBN->borrar(isbn); } void NodoTipo::destruirISBN(){ _listaISBN->destruir(); } string NodoTipo::MostrarListaISBN(){ return _listaISBN->toString(); }
jloriag/Bibliotc
NodoTipo.cpp
C++
lgpl-3.0
958
[ 30522, 1001, 2421, 1000, 7293, 4140, 11514, 2080, 1012, 1044, 1000, 7293, 4140, 11514, 2080, 1024, 1024, 7293, 4140, 11514, 2080, 1006, 5955, 30524, 1006, 1007, 1025, 1065, 7293, 4140, 11514, 2080, 1008, 1004, 7293, 4140, 11514, 2080, 1024, 1024, 2131, 10993, 4160, 1006, 1007, 1063, 2709, 1035, 1045, 2480, 4160, 1025, 1065, 11675, 7293, 4140, 11514, 2080, 1024, 1024, 2275, 10993, 4160, 1006, 7293, 4140, 11514, 2080, 1008, 1035, 1045, 2480, 4160, 1007, 1063, 2023, 1011, 1028, 1035, 1045, 2480, 4160, 1027, 1035, 1045, 2480, 4160, 1025, 1065, 7293, 4140, 11514, 2080, 1008, 1004, 7293, 4140, 11514, 2080, 1024, 1024, 2131, 4063, 1006, 1007, 1063, 2709, 1035, 4315, 1025, 1065, 11675, 7293, 4140, 11514, 2080, 1024, 1024, 2275, 4063, 1006, 7293, 4140, 11514, 2080, 1008, 1035, 4315, 1007, 1063, 2023, 1011, 1028, 1035, 4315, 1027, 1035, 4315, 1025, 1065, 5955, 2080, 1008, 7293, 4140, 11514, 2080, 1024, 1024, 2131, 25101, 2080, 1006, 1007, 9530, 3367, 1063, 2709, 1035, 5955, 2080, 1025, 1065, 11675, 7293, 4140, 11514, 2080, 1024, 1024, 2275, 25101, 2080, 1006, 5955, 2080, 1008, 1035, 5955, 2080, 1007, 1063, 2023, 1011, 1028, 1035, 5955, 2080, 1027, 1035, 5955, 2080, 1025, 1065, 7293, 4140, 11514, 2080, 1024, 1024, 1066, 7293, 4140, 11514, 2080, 1006, 1007, 1063, 1035, 2862, 15593, 24700, 1011, 1028, 4078, 16344, 10179, 2099, 1006, 1007, 1025, 3972, 12870, 1035, 2862, 15593, 24700, 1025, 3972, 12870, 1035, 5955, 2080, 1025, 1065, 2862, 15593, 24700, 1008, 7293, 4140, 11514, 2080, 1024, 1024, 2131, 9863, 15593, 24700, 1006, 1007, 1063, 2709, 1035, 2862, 15593, 24700, 1025, 1065, 11675, 7293, 4140, 11514, 2080, 1024, 1024, 2275, 9863, 15593, 24700, 1006, 2862, 15593, 24700, 1008, 1048, 1007, 1063, 1035, 2862, 15593, 24700, 1027, 1048, 1025, 1065, 11675, 7293, 4140, 11514, 2080, 1024, 1024, 12943, 2890, 6843, 2483, 24700, 1006, 20014, 3175, 1007, 1063, 1035, 2862, 15593, 24700, 1011, 1028, 19274, 2050, 1006, 3175, 1007, 1025, 1065, 22017, 2140, 7293, 4140, 11514, 2080, 1024, 1024, 8945, 11335, 6935, 24700, 1006, 20014, 3175, 1007, 1063, 2709, 1035, 2862, 15593, 24700, 1011, 1028, 8945, 11335, 2099, 1006, 3175, 1007, 1025, 1065, 11675, 7293, 4140, 11514, 2080, 1024, 1024, 4078, 16344, 10179, 6935, 24700, 1006, 1007, 1063, 1035, 2862, 15593, 24700, 1011, 1028, 4078, 16344, 10179, 2099, 1006, 1007, 1025, 1065, 5164, 7293, 4140, 11514, 2080, 1024, 1024, 2087, 19848, 9863, 15593, 24700, 1006, 1007, 1063, 2709, 1035, 2862, 15593, 24700, 1011, 1028, 2000, 3367, 4892, 1006, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 2080, 1008, 27885, 3501, 1007, 1063, 2275, 25101, 2080, 1006, 27885, 3501, 1007, 1025, 2275, 4063, 1006, 19701, 1007, 1025, 2275, 10993, 4160, 1006, 19701, 1007, 1025, 1035, 2862, 15593, 24700, 1027, 2047, 2862, 15593, 24700, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2080, 1008, 27885, 3501, 1007, 1063, 2275, 25101, 2080, 1006, 27885, 3501, 1007, 1025, 2275, 4063, 1006, 19701, 1007, 1025, 2275, 10993, 4160, 1006, 19701, 1007, 1025, 1035, 2862, 15593, 24700, 1027, 2047, 2862, 15593, 24700, 30526 ]
#!/usr/bin/env python # example setselection.py import pygtk pygtk.require('2.0') import gtk import time class SetSelectionExample: # Callback when the user toggles the selection def selection_toggled(self, widget, window): if widget.get_active(): self.have_selection = window.selection_owner_set("PRIMARY") # if claiming the selection failed, we return the button to # the out state if not self.have_selection: widget.set_active(False) else: if self.have_selection: # Not possible to release the selection in PyGTK # just mark that we don't have it self.have_selection = False return # Called when another application claims the selection def selection_clear(self, widget, event): self.have_selection = False widget.set_active(False) return True # Supplies the current time as the selection. def selection_handle(self, widget, selection_data, info, time_stamp): current_time = time.time() timestr = time.asctime(time.localtime(current_time)) # When we return a single string, it should not be null terminated. # That will be done for us selection_data.set_text(timestr, len(timestr)) return def __init__(self): self.have_selection = False # Create the toplevel window window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.set_title("Set Selection") window.set_border_width(10) window.connect("destroy", lambda w: gtk.main_quit()) self.window = window # Create an eventbox to hold the button since it no longer has # a GdkWindow eventbox = gtk.EventBox() eventbox.show() window.add(eventbox) # Create a toggle button to act as the selection selection_button = gtk.ToggleButton("Claim Selection") eventbox.add(selection_button) selection_button.connect("toggled", self.selection_toggled, eventbox) eventbox.connect_object("selection_clear_event", self.selection_clear, selection_button) eventbox.selection_add_target("PRIMARY", "STRING", 1) eventbox.selection_add_target("PRIMARY", "COMPOUND_TEXT", 1) eventbox.connect("selection_get", self.selection_handle) selection_button.show() window.show() def main(): gtk.main() return 0 if __name__ == "__main__": SetSelectionExample() main()
certik/pyjamas
pygtkweb/demos/065-setselection.py
Python
apache-2.0
2,570
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 18750, 1001, 2742, 4520, 12260, 7542, 1012, 1052, 2100, 12324, 1052, 2100, 13512, 2243, 1052, 2100, 13512, 2243, 1012, 5478, 1006, 1005, 1016, 1012, 1014, 1005, 1007, 12324, 14181, 2243, 12324, 2051, 2465, 4520, 12260, 7542, 10288, 16613, 2571, 1024, 1001, 2655, 5963, 2043, 1996, 5310, 2000, 24989, 1996, 4989, 13366, 4989, 1035, 2000, 24679, 2094, 1006, 2969, 1010, 15536, 24291, 1010, 3332, 1007, 1024, 2065, 15536, 24291, 1012, 2131, 1035, 3161, 1006, 1007, 1024, 2969, 1012, 2031, 1035, 4989, 1027, 3332, 1012, 4989, 1035, 3954, 1035, 2275, 1006, 1000, 3078, 1000, 1007, 1001, 2065, 6815, 1996, 4989, 3478, 1010, 2057, 2709, 1996, 6462, 2000, 1001, 1996, 2041, 2110, 2065, 2025, 2969, 1012, 2031, 1035, 4989, 1024, 15536, 24291, 1012, 2275, 1035, 3161, 1006, 6270, 1007, 2842, 1024, 2065, 2969, 1012, 2031, 1035, 4989, 1024, 1001, 2025, 2825, 2000, 2713, 1996, 4989, 1999, 1052, 2100, 13512, 2243, 1001, 2074, 2928, 2008, 2057, 2123, 1005, 1056, 2031, 2009, 2969, 1012, 2031, 1035, 4989, 1027, 6270, 2709, 1001, 2170, 2043, 2178, 4646, 4447, 1996, 4989, 13366, 4989, 1035, 3154, 1006, 2969, 1010, 15536, 24291, 1010, 2724, 1007, 1024, 2969, 1012, 2031, 1035, 4989, 1027, 6270, 15536, 24291, 1012, 2275, 1035, 3161, 30524, 2051, 1006, 1007, 2335, 16344, 1027, 2051, 1012, 2004, 6593, 14428, 1006, 2051, 1012, 2334, 7292, 1006, 2783, 1035, 2051, 1007, 1007, 1001, 2043, 2057, 2709, 1037, 2309, 5164, 1010, 2009, 2323, 2025, 2022, 19701, 12527, 1012, 1001, 2008, 2097, 2022, 2589, 2005, 2149, 4989, 1035, 2951, 1012, 2275, 1035, 3793, 1006, 2335, 16344, 1010, 18798, 1006, 2335, 16344, 1007, 1007, 2709, 13366, 1035, 1035, 1999, 4183, 1035, 1035, 1006, 2969, 1007, 1024, 2969, 1012, 2031, 1035, 4989, 1027, 6270, 1001, 3443, 1996, 2327, 20414, 2884, 3332, 3332, 1027, 14181, 2243, 1012, 3332, 1006, 14181, 2243, 1012, 3332, 1035, 2327, 20414, 2884, 1007, 3332, 1012, 2275, 1035, 2516, 1006, 1000, 2275, 4989, 1000, 1007, 3332, 1012, 2275, 1035, 3675, 1035, 9381, 1006, 2184, 1007, 3332, 1012, 7532, 1006, 1000, 6033, 1000, 1010, 23375, 1059, 1024, 14181, 2243, 1012, 2364, 1035, 8046, 1006, 1007, 1007, 2969, 1012, 3332, 1027, 3332, 1001, 3443, 2019, 2724, 8758, 2000, 2907, 1996, 6462, 2144, 2009, 2053, 2936, 2038, 1001, 1037, 1043, 2094, 2243, 11101, 5004, 2724, 8758, 1027, 14181, 2243, 1012, 2724, 8758, 1006, 1007, 2724, 8758, 1012, 2265, 1006, 1007, 3332, 1012, 5587, 1006, 2724, 8758, 1007, 1001, 3443, 1037, 2000, 24679, 6462, 2000, 2552, 2004, 1996, 4989, 4989, 1035, 6462, 1027, 14181, 2243, 1012, 2000, 24679, 8569, 15474, 1006, 1000, 4366, 4989, 1000, 1007, 2724, 8758, 1012, 5587, 1006, 4989, 1035, 6462, 1007, 4989, 1035, 6462, 1012, 7532, 1006, 1000, 2000, 24679, 2094, 1000, 1010, 2969, 1012, 4989, 1035, 2000, 24679, 30523, 1006, 6270, 1007, 2709, 2995, 1001, 6067, 1996, 2783, 2051, 2004, 1996, 4989, 1012, 13366, 4989, 1035, 5047, 1006, 2969, 1010, 15536, 24291, 1010, 4989, 1035, 2951, 1010, 18558, 1010, 2051, 1035, 11359, 1007, 1024, 2783, 1035, 2051, 1027, 2051, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1006, 6270, 1007, 2709, 2995, 1001, 6067, 1996, 2783, 2051, 2004, 1996, 4989, 1012, 13366, 4989, 1035, 5047, 1006, 2969, 1010, 15536, 24291, 1010, 4989, 1035, 2951, 1010, 18558, 1010, 2051, 1035, 11359, 1007, 1024, 2783, 1035, 2051, 1027, 2051, 1012, 30526 ]
require File.expand_path(File.dirname(__FILE__) + '/../helpers/manage_groups_common') require 'thread' describe "account admin manage groups" do include_context "in-process server selenium tests" def add_account_category (account, name) f(".add_category_link").click form = f("#add_category_form") replace_content form.find_element(:css, "input[type=text]"), name submit_form(form) wait_for_ajaximations category = account.group_categories.where(name: name).first expect(category).not_to be_nil category end before (:each) do skip #course_with_admin_logged_in #@admin_account = Account.default #@admin_account.settings[:enable_manage_groups2] = false #@admin_account.save! end it "should show one div.group_category per category" do group_categories = create_categories @course.account create_new_set_groups(@course.account, group_categories[0], group_categories[1], group_categories[1], group_categories[2]) get "/accounts/#{@course.account.id}/groups" group_divs = find_all_with_jquery("div.group_category") expect(group_divs.size).to eq 4 # three groups + blank ids = group_divs.map { |div| div.attribute(:id) } group_categories.each { |category| expect(ids).to include("category_#{category.id}") } expect(ids).to include("category_template") end it "should show one li.category per category" do group_categories = create_categories @admin_account create_new_set_groups(@admin_account, group_categories[0], group_categories[1], group_categories[1], group_categories[2]) get "/accounts/#{@admin_account.id}/groups" group_divs = driver.find_elements(:css, "li.category") expect(group_divs.size).to eq 3 labels = group_divs.map { |div| div.find_element(:css, "a").text } group_categories.each { |category| expect(labels).to be_include(category.name) } end context "single category" do before (:each) do @courses_group_category = @admin_account.group_categories.create(:name => "Existing Category") groups_student_enrollment 1 end it "should add new categories at the end of the tabs" do create_new_set_groups @admin_account, @courses_group_category get "/accounts/#{@admin_account.id}/groups" expect(driver.find_elements(:css, "#category_list li").size).to eq 1 # submit new category form add_account_category @admin_account, 'New Category' expect(driver.find_elements(:css, "#category_list li").size).to eq 2 expect(driver.find_elements(:css, "#category_list li a").last.text).to eq "New Category" end it "should remove tab and sidebar entries for deleted category" do get "/accounts/#{@admin_account.id}/groups" expect(f("#category_#{@courses_group_category.id}")).to be_displayed expect(f("#sidebar_category_#{@courses_group_category.id}")).to be_displayed f("#category_#{@courses_group_category.id} .delete_category_link").click confirm_dialog = driver.switch_to.alert confirm_dialog.accept wait_for_ajaximations expect(find_with_jquery("#category_#{@courses_group_category.id}")).to be_nil expect(find_with_jquery("#sidebar_category_#{@courses_group_category.id}")).to be_nil end it "should populate sidebar with new category when adding a category" do group = @admin_account.groups.create(:name => "Group 1", :group_category => @courses_group_category) get "/accounts/#{Account.default.id}/groups" expect(f("#sidebar_category_#{@courses_group_category.id}")).to be_displayed expect(f("#sidebar_category_#{@courses_group_category.id} #sidebar_group_#{group.id}")).to be_displayed new_category = add_account_category(@admin_account, 'New Category') # We need to refresh the page because it doesn't update the sidebar, # This is should probably be reported as a bug refresh_page expect(f("#sidebar_category_#{new_category.id}")).to be_displayed end it "should populate sidebar with new category when adding a category and group" do group = @admin_account.groups.create(:name => "Group 1", :group_category => @courses_group_category) get "/accounts/#{Account.default.id}/groups" expect(f("#sidebar_category_#{@courses_group_category.id}")).to be_displayed expect(f("#sidebar_category_#{@courses_group_category.id} #sidebar_group_#{group.id}")).to be_displayed new_category = add_account_category(@admin_account, 'New Category') group2 = add_group_to_category new_category, "New Group Category 2" expect(f("#sidebar_category_#{new_category.id}")).to be_displayed expect(driver.find_element(:css, "#sidebar_category_#{new_category.id} #sidebar_group_#{group2.id}")).to be_displayed end it "should preserve group to category association when editing a group" do group = @admin_account.groups.create(:name => "Group 1", :group_category => @courses_group_category) get "/accounts/#{Account.default.id}/groups" wait_for_ajaximations expect(find_with_jquery("#category_#{@courses_group_category.id} #group_#{group.id}")).to be_displayed # submit new category form hover_and_click(".edit_group_link") form = f("#edit_group_form") replace_content form.find_element(:css, "input[type=text]"), "New Name" submit_form(form) expect(f("#category_#{@courses_group_category.id} #group_#{group.id}")).to be_displayed end it "should populate a group tag and check if it's there" do get "/accounts/#{@admin_account.id}/groups" category = add_account_category @admin_account, 'New Category' category_tabs = driver.find_elements(:css, '#category_list li') category_tabs[1].click category_name = f("#category_#{category.id} .category_name").text expect(category_name).to include_text(category.name) end it "should add another group and see that the group is there" do get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, 'group 1' expect(f("#group_#{group.id} .group_name").text).to eq group.name end it "should add multiple groups and validate they exist" do groups = add_groups_in_category @courses_group_category get "/accounts/#{Account.default.id}/groups" category_groups = driver.find_elements(:css, ".left_side .group .name") category_groups.each_with_index { |cg, i| expect(cg.text).to include_text(groups[i].name)} end it "should add multiple groups and be sure they are all deleted" do add_groups_in_category @courses_group_category get "/accounts/#{@admin_account.id}/groups" make_full_screen delete = f(".delete_category_link") delete.click confirm_dialog = driver.switch_to.alert confirm_dialog.accept wait_for_ajaximations expect(driver.find_elements(:css, ".left_side .group")).to be_empty expect(@admin_account.group_categories.count).to eq 0 end it "should edit an individual group" do get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, "group 1" expect(group).not_to be_nil f("#group_#{group.id}").click wait_for_ajaximations f("#group_#{group.id} .edit_group_link").click wait_for_ajaximations name = "new group 1" f("#group_name").send_keys(name) f("#group_#{group.id} .btn").click wait_for_ajaximations group = @admin_account.groups.where(name: name).first expect(group).not_to be_nil end it "should delete an individual group" do get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, "group 1" f("#group_#{group.id}").click driver.find_element(:css, "#group_#{group.id} .delete_group_link").click confirm_dialog = driver.switch_to.alert confirm_dialog.accept wait_for_ajaximations expect(driver.find_elements(:css, ".left_side .group")).to be_empty @admin_account.group_categories.last.groups.last.workflow_state =='deleted' end it "should drag a user to a group" do student = @course.students.last get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, "group 1" simulate_group_drag(student.id, "blank", group.id) group_div = f("#group_#{group.id}") expect(group_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed end it "should drag a user to 2 different groups" do student = @course.students.last groups = add_groups_in_category @courses_group_category, 2 get "/accounts/#{@admin_account.id}/groups" wait_for_ajax_requests simulate_group_drag(student.id, "blank", groups[0].id) group1_div = f("#group_#{groups[0].id}") expect(group1_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed simulate_group_drag(student.id, groups[0].id, groups[1].id) group2_div = f("#group_#{groups[1].id}") expect(group2_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed end it "should drag a user to 2 different groups and back to the unassigned group" do student = @course.students.last groups = add_groups_in_category @courses_group_category, 2 get "/accounts/#{@admin_account.id}/groups" wait_for_ajax_requests simulate_group_drag(student.id, "blank", groups[0].id) group1_div = f("#group_#{groups[0].id}") expect(group1_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed simulate_group_drag(student.id, groups[0].id, groups[1].id) group2_div = f("#group_#{groups[1].id}") expect(group2_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed unassigned_div = f("#category_#{@courses_group_category.id} .group_blank") simulate_group_drag(student.id, groups[1].id, "blank") expect(unassigned_div.find_elements(:css, ".user_id_#{student.id}")).not_to be_empty get "/accounts/#{@admin_account.id}/groups" unassigned_div =f("#category_#{@courses_group_category.id} .group_blank") expect(unassigned_div.find_elements(:css, ".user_id_#{student.id}")).not_to be_empty end it "should create a category and should be able to edit it" do get "/accounts/#{@admin_account.id}/groups" expect(@admin_account.group_categories.last.name).to eq "Existing Category" make_full_screen f("#category_#{@courses_group_category.id} .edit_category_link .icon-edit").click wait_for_ajaximations form = f("#edit_category_form") input_box = form.find_element(:css, "input[type=text]") category_name = "New Category" replace_content input_box, category_name submit_form(form) wait_for_ajaximations expect(@admin_account.group_categories.last.name).to eq category_name end it "should not be able to check the Allow self sign-up box" do get "/accounts/#{@admin_account.id}/groups" expect(@admin_account.group_categories.last.name).to eq "Existing Category" make_full_screen f("#category_#{@courses_group_category.id} .edit_category_link .icon-edit").click wait_for_ajaximations form = driver.find_element(:id, "edit_category_form") expect(ff("#category_enable_self_signup", form)).to be_empty submit_form(form) wait_for_ajaximations expect(f("#category_#{@courses_group_category.id} .self_signup_text")).not_to include_text "Self sign-up is enabled" end end end
greyhwndz/canvas-lms
spec/selenium/admin/account_admin_manage_groups_spec.rb
Ruby
agpl-3.0
11,626
[ 30522, 5478, 5371, 1012, 7818, 1035, 4130, 1006, 5371, 1012, 16101, 18442, 1006, 1035, 1035, 5371, 1035, 1035, 1007, 1009, 1005, 1013, 1012, 1012, 1013, 2393, 2545, 1013, 6133, 1035, 2967, 1035, 2691, 1005, 1007, 5478, 1005, 11689, 1005, 6235, 1000, 4070, 4748, 10020, 6133, 2967, 1000, 2079, 2421, 1035, 6123, 1000, 1999, 1011, 2832, 8241, 7367, 7770, 5007, 5852, 30524, 1007, 5672, 1035, 4180, 2433, 1012, 2424, 1035, 5783, 1006, 1024, 20116, 2015, 1010, 1000, 7953, 1031, 2828, 1027, 3793, 1033, 1000, 1007, 1010, 2171, 12040, 1035, 2433, 1006, 2433, 1007, 3524, 1035, 2005, 1035, 18176, 9581, 9285, 4696, 1027, 4070, 1012, 2177, 1035, 7236, 1012, 2073, 1006, 2171, 1024, 2171, 1007, 1012, 2034, 5987, 1006, 4696, 1007, 1012, 2025, 1035, 2000, 2022, 1035, 9152, 2140, 4696, 2203, 2077, 1006, 1024, 2169, 1007, 2079, 13558, 1001, 2607, 1035, 2007, 1035, 4748, 10020, 1035, 26618, 1035, 1999, 1001, 1030, 4748, 10020, 1035, 4070, 1027, 4070, 1012, 12398, 1001, 1030, 4748, 10020, 1035, 4070, 1012, 10906, 1031, 1024, 9585, 1035, 6133, 1035, 2967, 2475, 1033, 1027, 6270, 1001, 1030, 4748, 10020, 1035, 4070, 1012, 3828, 999, 2203, 2009, 1000, 2323, 2265, 2028, 4487, 2615, 1012, 2177, 1035, 4696, 2566, 4696, 1000, 2079, 2177, 1035, 7236, 1027, 3443, 1035, 7236, 1030, 2607, 1012, 4070, 3443, 1035, 2047, 1035, 2275, 1035, 2967, 1006, 1030, 2607, 1012, 4070, 1010, 2177, 1035, 7236, 1031, 1014, 1033, 1010, 2177, 1035, 7236, 1031, 1015, 1033, 1010, 2177, 1035, 7236, 1031, 1015, 1033, 1010, 2177, 1035, 7236, 1031, 1016, 1033, 1007, 2131, 1000, 1013, 6115, 1013, 1001, 1063, 1030, 2607, 1012, 4070, 1012, 8909, 1065, 1013, 2967, 1000, 2177, 1035, 4487, 15088, 1027, 2424, 1035, 2035, 1035, 2007, 1035, 1046, 4226, 2854, 1006, 1000, 4487, 2615, 1012, 2177, 1035, 4696, 1000, 1007, 5987, 1006, 2177, 1035, 4487, 15088, 1012, 2946, 1007, 1012, 2000, 1041, 4160, 1018, 1001, 2093, 2967, 1009, 8744, 8909, 2015, 1027, 2177, 1035, 4487, 15088, 1012, 4949, 1063, 1064, 4487, 2615, 1064, 4487, 2615, 1012, 17961, 1006, 1024, 8909, 1007, 1065, 2177, 1035, 7236, 1012, 2169, 1063, 1064, 4696, 1064, 5987, 1006, 8909, 2015, 1007, 1012, 2000, 2421, 1006, 1000, 4696, 1035, 1001, 1063, 4696, 1012, 8909, 1065, 1000, 1007, 1065, 5987, 1006, 8909, 2015, 1007, 1012, 2000, 2421, 1006, 1000, 4696, 1035, 23561, 1000, 1007, 2203, 2009, 1000, 2323, 2265, 2028, 5622, 1012, 4696, 2566, 4696, 1000, 2079, 2177, 1035, 7236, 1027, 3443, 1035, 7236, 1030, 4748, 10020, 1035, 4070, 3443, 1035, 2047, 1035, 2275, 1035, 2967, 1006, 1030, 4748, 10020, 1035, 4070, 1010, 2177, 1035, 7236, 1031, 1014, 1033, 1010, 2177, 1035, 7236, 1031, 1015, 1033, 1010, 2177, 1035, 7236, 1031, 1015, 1033, 1010, 2177, 1035, 7236, 1031, 1016, 1033, 1007, 2131, 1000, 1013, 6115, 1013, 1001, 1063, 1030, 4748, 10020, 1035, 4070, 1012, 8909, 1065, 30523, 1000, 13366, 5587, 1035, 4070, 1035, 4696, 1006, 4070, 1010, 2171, 1007, 1042, 1006, 1000, 1012, 5587, 1035, 4696, 1035, 4957, 1000, 1007, 1012, 11562, 2433, 1027, 1042, 1006, 1000, 1001, 5587, 1035, 4696, 1035, 2433, 1000, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1000, 13366, 5587, 1035, 4070, 1035, 4696, 1006, 4070, 1010, 2171, 1007, 1042, 1006, 1000, 1012, 5587, 1035, 4696, 1035, 4957, 1000, 1007, 1012, 11562, 2433, 1027, 1042, 1006, 1000, 1001, 5587, 1035, 4696, 1035, 2433, 1000, 30526 ]
<?php /* sil12VitrineBundle:Promotion:new.html.twig */ class __TwigTemplate_6b35c8288681521c57bf3eaa34c3cd1f8147156caf9e081e884352d40f9d44eb extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("sil12VitrineBundle:BackOffice:layout.html.twig"); $this->blocks = array( 'content' => array($this, 'block_content'), ); } protected function doGetParent(array $context) { return "sil12VitrineBundle:BackOffice:layout.html.twig"; } protected function doDisplay(array $context, array $blocks = array()) { $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 4 public function block_content($context, array $blocks = array()) { // line 5 echo "<div class=\"col-md-6 col-md-offset-3\"> \t<div class=\"panel panel-default\"> \t <div class=\"panel-heading\"> \t <h3 class=\"panel-title\">Ajout de promotion</h3> \t </div> \t <div class=\"panel-body\"> \t\t "; // line 11 echo $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form'); echo " \t\t <ul class=\"record_actions\"> \t\t\t <li> \t\t\t <a href=\""; // line 15 echo $this->env->getExtension('routing')->getPath("promotion"); echo "\"> \t\t\t Retour à la liste \t\t\t </a> \t\t\t </li> \t\t\t</ul> \t </div> \t</div> </div> "; } public function getTemplateName() { return "sil12VitrineBundle:Promotion:new.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 46 => 15, 39 => 11, 31 => 5, 28 => 4,); } }
matthieuh/projet-sil5-cours
app/cache/dev/twig/6b/35/c8288681521c57bf3eaa34c3cd1f8147156caf9e081e884352d40f9d44eb.php
PHP
mit
1,932
[ 30522, 1026, 1029, 25718, 1013, 1008, 9033, 2140, 12521, 5737, 18886, 2638, 27265, 2571, 1024, 4712, 1024, 2047, 1012, 16129, 1012, 1056, 16279, 1008, 1013, 2465, 1035, 1035, 1056, 16279, 18532, 15725, 1035, 1020, 2497, 19481, 2278, 2620, 22407, 20842, 2620, 16068, 17465, 2278, 28311, 29292, 2509, 5243, 2050, 22022, 2278, 2509, 19797, 2487, 2546, 2620, 16932, 2581, 16068, 2575, 3540, 2546, 2683, 2063, 2692, 2620, 2487, 2063, 2620, 2620, 23777, 25746, 2094, 12740, 2546, 2683, 2094, 22932, 15878, 8908, 1056, 16279, 1035, 23561, 1063, 2270, 3853, 1035, 1035, 9570, 1006, 1056, 16279, 1035, 4044, 1002, 4372, 2615, 1007, 1063, 6687, 1024, 1024, 1035, 1035, 9570, 1006, 1002, 4372, 2615, 1007, 1025, 1002, 2023, 1011, 1028, 6687, 1027, 1002, 2023, 1011, 1028, 4372, 2615, 1011, 1028, 7170, 18532, 15725, 1006, 1000, 9033, 2140, 12521, 5737, 18886, 2638, 27265, 2571, 1024, 2067, 7245, 6610, 1024, 9621, 1012, 16129, 1012, 1056, 16279, 1000, 1007, 1025, 1002, 2023, 1011, 1028, 5991, 1027, 9140, 1006, 1005, 4180, 1005, 1027, 1028, 9140, 1006, 1002, 2023, 1010, 1005, 3796, 1035, 4180, 1005, 1007, 1010, 1007, 1025, 1065, 5123, 3853, 3899, 3388, 19362, 4765, 1006, 9140, 1002, 6123, 1007, 1063, 2709, 1000, 9033, 2140, 12521, 5737, 18886, 2638, 27265, 2571, 1024, 2067, 7245, 6610, 1024, 9621, 1012, 16129, 1012, 1056, 16279, 1000, 1025, 1065, 5123, 3853, 26489, 2483, 13068, 1006, 9140, 1002, 6123, 1010, 9140, 1002, 5991, 1027, 9140, 1006, 1007, 1007, 1063, 1002, 2023, 1011, 1028, 6687, 1011, 1028, 4653, 1006, 1002, 6123, 1010, 9140, 1035, 13590, 1006, 1002, 2023, 1011, 1028, 5991, 1010, 1002, 5991, 1007, 1007, 1025, 1065, 1013, 1013, 2240, 1018, 2270, 3853, 3796, 1035, 4180, 1006, 1002, 6123, 1010, 9140, 1002, 5991, 1027, 9140, 1006, 1007, 1007, 1063, 1013, 1013, 2240, 1019, 9052, 1000, 1026, 4487, 2615, 2465, 1027, 1032, 1000, 8902, 1011, 9108, 1011, 1020, 8902, 1011, 9108, 1011, 16396, 1011, 1017, 1032, 1000, 1028, 1032, 1056, 1026, 4487, 2615, 2465, 1027, 1032, 1000, 5997, 5997, 1011, 12398, 1032, 1000, 1028, 1032, 1056, 1026, 4487, 2615, 2465, 1027, 1032, 1000, 5997, 1011, 5825, 1032, 1000, 1028, 1032, 1056, 1026, 1044, 2509, 2465, 1027, 1032, 1000, 5997, 1011, 2516, 1032, 1000, 1028, 19128, 5833, 2139, 4712, 1026, 1013, 1044, 2509, 1028, 1032, 1056, 1026, 1013, 4487, 2615, 1028, 1032, 1056, 1026, 4487, 2615, 2465, 1027, 1032, 1000, 5997, 1011, 2303, 1032, 1000, 1028, 1032, 1056, 1032, 1056, 1000, 1025, 1013, 1013, 30524, 1007, 1011, 1028, 17552, 2121, 1011, 1028, 17552, 23467, 1006, 1006, 26354, 3388, 1006, 1002, 6123, 1031, 1000, 2433, 1000, 1033, 1007, 1029, 1002, 6123, 1031, 1000, 2433, 1000, 1033, 1024, 1002, 2023, 1011, 1028, 2131, 8663, 18209, 1006, 1002, 6123, 1010, 1000, 2433, 1000, 1007, 1007, 1010, 1005, 2433, 1005, 1007, 1025, 9052, 1000, 1032, 1056, 1032, 1056, 1026, 17359, 2465, 1027, 1032, 1000, 2501, 1035, 4506, 1032, 1000, 1028, 1032, 1056, 1032, 1056, 1032, 1056, 1026, 5622, 1028, 1032, 1056, 30523, 2240, 2340, 9052, 1002, 2023, 1011, 1028, 4372, 2615, 1011, 1028, 2131, 10288, 29048, 1006, 1005, 2433, 1005, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2240, 2340, 9052, 1002, 2023, 1011, 1028, 4372, 2615, 1011, 1028, 2131, 10288, 29048, 1006, 1005, 2433, 1005, 30526 ]
/* Tabulator v4.6.3 (c) Oliver Folkerd */ .tabulator { position: relative; border: 1px solid #fff; background-color: #fff; overflow: hidden; font-size: 16px; text-align: left; -ms-transform: translatez(0); transform: translatez(0); } .tabulator[tabulator-layout="fitDataFill"] .tabulator-tableHolder .tabulator-table { min-width: 100%; } .tabulator.tabulator-block-select { -webkit-user-select: none; -ms-user-select: none; user-select: none; } .tabulator .tabulator-header { position: relative; box-sizing: border-box; width: 100%; border-bottom: 3px solid #3759D7; margin-bottom: 4px; background-color: #fff; color: #3759D7; font-weight: bold; white-space: nowrap; overflow: hidden; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; padding-left: 10px; font-size: 1.1em; } .tabulator .tabulator-header.tabulator-header-hidden { display: none; } .tabulator .tabulator-header .tabulator-col { display: inline-block; position: relative; box-sizing: border-box; border-right: 2px solid #fff; background-color: #fff; text-align: left; vertical-align: bottom; overflow: hidden; } .tabulator .tabulator-header .tabulator-col.tabulator-moving { position: absolute; border: 1px solid #3759D7; background: #e6e6e6; pointer-events: none; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content { box-sizing: border-box; position: relative; padding: 4px; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button { padding: 0 8px; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover { cursor: pointer; opacity: .6; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title { box-sizing: border-box; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor { box-sizing: border-box; width: 100%; border: 1px solid #3759D7; padding: 1px; background: #fff; font-size: 1em; color: #3759D7; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow { display: inline-block; position: absolute; top: 9px; right: 8px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #b7c3f1; } .tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols { position: relative; display: -ms-flexbox; display: flex; border-top: 2px solid #3759D7; overflow: hidden; margin-right: -1px; } .tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev { display: none; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter { position: relative; box-sizing: border-box; margin-top: 2px; width: 100%; text-align: center; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea { height: auto !important; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg { margin-top: 3px; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear { width: 0; height: 0; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title { padding-right: 25px; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover { cursor: pointer; background-color: #e6e6e6; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-arrow { border-top: none; border-bottom: 6px solid #b7c3f1; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-arrow { border-top: none; border-bottom: 6px solid #3759D7; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-arrow { border-top: 6px solid #3759D7; border-bottom: none; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title { -ms-writing-mode: tb-rl; writing-mode: vertical-rl; text-orientation: mixed; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title { -ms-transform: rotate(180deg); transform: rotate(180deg); } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title { padding-right: 0; padding-top: 20px; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title { padding-right: 0; padding-bottom: 20px; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-arrow { right: calc(50% - 6px); } .tabulator .tabulator-header .tabulator-frozen { display: inline-block; position: absolute; z-index: 10; } .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left { padding-left: 10px; border-right: 2px solid #fff; } .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right { border-left: 2px solid #fff; } .tabulator .tabulator-header .tabulator-calcs-holder { box-sizing: border-box; min-width: 600%; border-top: 2px solid #3759D7 !important; background: white !important; border-top: 1px solid #fff; border-bottom: 1px solid #fff; overflow: hidden; } .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row { padding-left: 0 !important; background: white !important; } .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle { display: none; } .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-cell { background: none; } .tabulator .tabulator-header .tabulator-frozen-rows-holder { min-width: 600%; } .tabulator .tabulator-header .tabulator-frozen-rows-holder:empty { display: none; } .tabulator .tabulator-tableHolder { position: relative; width: 100%; white-space: nowrap; overflow: auto; -webkit-overflow-scrolling: touch; } .tabulator .tabulator-tableHolder:focus { outline: none; } .tabulator .tabulator-tableHolder .tabulator-placeholder { box-sizing: border-box; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; width: 100%; } .tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode="virtual"] { min-height: 100%; min-width: 100%; } .tabulator .tabulator-tableHolder .tabulator-placeholder span { display: inline-block; margin: 0 auto; padding: 10px; color: #3759D7; font-weight: bold; font-size: 20px; } .tabulator .tabulator-tableHolder .tabulator-table { position: relative; display: inline-block; background-color: #f3f3f3; white-space: nowrap; overflow: visible; color: #333; } .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs { font-weight: bold; background: #f2f2f2 !important; } .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top { border-bottom: 2px solid #3759D7; } .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom { border-top: 2px solid #3759D7; } .tabulator .tabulator-col-resize-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; } .tabulator .tabulator-col-resize-handle.prev { left: 0; right: auto; } .tabulator .tabulator-col-resize-handle:hover { cursor: ew-resize; } .tabulator .tabulator-footer { padding: 5px 10px; border-top: 1px solid #999; background-color: #fff; text-align: right; color: #3759D7; font-weight: bold; white-space: nowrap; -ms-user-select: none; user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; } .tabulator .tabulator-footer .tabulator-calcs-holder { box-sizing: border-box; width: calc(100% + 20px); margin: -5px -10px 5px -10px; text-align: left; background: white !important; border-top: 3px solid #3759D7 !important; border-bottom: 2px solid #3759D7 !important; border-bottom: 1px solid #fff; border-top: 1px solid #fff; overflow: hidden; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row { background: white !important; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle { display: none; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-cell { background: none; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-cell:first-child { border-left: 10px solid transparent; } .tabulator .tabulator-footer .tabulator-calcs-holder:only-child { margin-bottom: -5px; border-bottom: none; border-bottom: none !important; } .tabulator .tabulator-footer .tabulator-paginator { color: #3759D7; font-family: inherit; font-weight: inherit; font-size: inherit; } .tabulator .tabulator-footer .tabulator-page-size { display: inline-block; margin: 0 5px; padding: 2px 5px; border: 1px solid #aaa; border-radius: 3px; } .tabulator .tabulator-footer .tabulator-pages { margin: 0 7px; } .tabulator .tabulator-footer .tabulator-page { display: inline-block; margin: 0 2px; padding: 2px 5px; border: 1px solid #aaa; border-radius: 3px; background: rgba(255, 255, 255, 0.2); } .tabulator .tabulator-footer .tabulator-page.active { color: #3759D7; } .tabulator .tabulator-footer .tabulator-page:disabled { opacity: .5; } .tabulator .tabulator-footer .tabulator-page:not(.disabled):hover { cursor: pointer; background: rgba(0, 0, 0, 0.2); color: #fff; } .tabulator .tabulator-loader { position: absolute; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; top: 0; left: 0; z-index: 100; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.4); text-align: center; } .tabulator .tabulator-loader .tabulator-loader-msg { display: inline-block; margin: 0 auto; padding: 10px 20px; border-radius: 10px; background: #fff; font-weight: bold; font-size: 16px; } .tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading { border: 4px solid #333; color: #000; } .tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error { border: 4px solid #D00; color: #590000; } .tabulator-row { position: relative; box-sizing: border-box; box-sizing: border-box; min-height: 24px; margin-bottom: 2px; } .tabulator-row .tabulator-cell:first-child { border-left: 10px solid #3759D7; } .tabulator-row:nth-child(even) { background-color: #627ce0; } .tabulator-row:nth-child(even) .tabulator-cell { background-color: #fff; } .tabulator-row:nth-child(even) .tabulator-cell:first-child { border-left: 10px solid #627ce0; } .tabulator-row.tabulator-selectable:hover { cursor: pointer; } .tabulator-row.tabulator-selectable:hover .tabulator-cell { background-color: #bbb; } .tabulator-row.tabulator-selected .tabulator-cell { background-color: #9ABCEA; } .tabulator-row.tabulator-selected:hover .tabulator-cell { background-color: #769BCC; cursor: pointer; } .tabulator-row.tabulator-moving { position: absolute; border-top: 1px solid #fff; border-bottom: 1px solid #fff; pointer-events: none !important; z-index: 15; } .tabulator-row .tabulator-row-resize-handle { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; } .tabulator-row .tabulator-row-resize-handle.prev { top: 0; bottom: auto; } .tabulator-row .tabulator-row-resize-handle:hover { cursor: ns-resize; } .tabulator-row .tabulator-frozen { display: inline-block; position: absolute; background-color: inherit; z-index: 10; } .tabulator-row .tabulator-frozen.tabulator-frozen-left { border-right: 2px solid #fff; } .tabulator-row .tabulator-frozen.tabulator-frozen-right { border-left: 2px solid #fff; } .tabulator-row .tabulator-responsive-collapse { box-sizing: border-box; padding: 5px; border-top: 1px solid #fff; border-bottom: 1px solid #fff; } .tabulator-row .tabulator-responsive-collapse:empty { display: none; } .tabulator-row .tabulator-responsive-collapse table { font-size: 16px; } .tabulator-row .tabulator-responsive-collapse table tr td { position: relative; } .tabulator-row .tabulator-responsive-collapse table tr td:first-of-type { padding-right: 10px; } .tabulator-row .tabulator-cell { display: inline-block; position: relative; box-sizing: border-box; padding: 6px 4px; border-right: 2px solid #fff; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: #f3f3f3; } .tabulator-row .tabulator-cell.tabulator-editing { border: 1px solid #1D68CD; padding: 0; } .tabulator-row .tabulator-cell.tabulator-editing input, .tabulator-row .tabulator-cell.tabulator-editing select { border: 1px; background: transparent; } .tabulator-row .tabulator-cell.tabulator-validation-fail { border: 1px solid #dd0000; } .tabulator-row .tabulator-cell.tabulator-validation-fail input, .tabulator-row .tabulator-cell.tabulator-validation-fail select { border: 1px; background: transparent; color: #dd0000; } .tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev { display: none; } .tabulator-row .tabulator-cell.tabulator-row-handle { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; } .tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box { width: 80%; } .tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar { width: 100%; height: 3px; margin-top: 2px; background: #666; } .tabulator-row .tabulator-cell .tabulator-data-tree-branch { display: inline-block; vertical-align: middle; height: 9px; width: 7px; margin-top: -9px; margin-right: 5px; border-bottom-left-radius: 1px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; } .tabulator-row .tabulator-cell .tabulator-data-tree-control { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-pack: center; justify-content: center; -ms-flex-align: center; align-items: center; vertical-align: middle; height: 11px; width: 11px; margin-right: 5px; border: 1px solid #333; border-radius: 2px; background: rgba(0, 0, 0, 0.1); overflow: hidden; } .tabulator-row .tabulator-cell .tabulator-data-tree-control:hover { cursor: pointer; background: rgba(0, 0, 0, 0.2); } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse { display: inline-block; position: relative; height: 7px; width: 1px; background: transparent; } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand { display: inline-block; position: relative; height: 7px; width: 1px; background: #333; } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; height: 15px; width: 15px; border-radius: 20px; background: #666; color: #f3f3f3; font-weight: bold; font-size: 1.1em; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover { opacity: .7; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close { display: initial; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open { display: none; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close { display: none; } .tabulator-row .tabulator-cell .tabulator-traffic-light { display: inline-block; height: 14px; width: 14px; border-radius: 14px; } .tabulator-row.tabulator-group { box-sizing: border-box; border-bottom: 2px solid #3759D7; border-top: 2px solid #3759D7; padding: 5px; padding-left: 10px; background: #8ca0e8; font-weight: bold; color: fff; margin-bottom: 2px; min-width: 100%; } .tabulator-row.tabulator-group:hover { cursor: pointer; background-color: rgba(0, 0, 0, 0.1); } .tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow { margin-right: 10px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #3759D7; border-bottom: 0; } .tabulator-row.tabulator-group.tabulator-group-level-1 { padding-left: 30px; } .tabulator-row.tabulator-group.tabulator-group-level-2 { padding-left: 50px; } .tabulator-row.tabulator-group.tabulator-group-level-3 { padding-left: 70px; } .tabulator-row.tabulator-group.tabulator-group-level-4 { padding-left: 90px; } .tabulator-row.tabulator-group.tabulator-group-level-5 { padding-left: 110px; } .tabulator-row.tabulator-group .tabulator-group-toggle { display: inline-block; } .tabulator-row.tabulator-group .tabulator-arrow { display: inline-block; width: 0; height: 0; margin-right: 16px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 0; border-left: 6px solid #3759D7; vertical-align: middle; } .tabulator-row.tabulator-group span { margin-left: 10px; color: #3759D7; } .tabulator-menu { position: absolute; display: inline-block; box-sizing: border-box; background: #f3f3f3; border: 1px solid #fff; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); font-size: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 10000; } .tabulator-menu .tabulator-menu-item { padding: 5px 10px; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled { opacity: .5; } .tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover { cursor: pointer; background: #fff; } .tabulator-menu .tabulator-menu-separator { border-top: 1px solid #fff; } .tabulator-edit-select-list { position: absolute; display: inline-block; box-sizing: border-box; max-height: 200px; background: #f3f3f3; border: 1px solid #1D68CD; font-size: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 10000; } .tabulator-edit-select-list .tabulator-edit-select-list-item { padding: 4px; color: #333; } .tabulator-edit-select-list .tabulator-edit-select-list-item.active { color: #f3f3f3; background: #1D68CD; } .tabulator-edit-select-list .tabulator-edit-select-list-item:hover { cursor: pointer; color: #f3f3f3; background: #1D68CD; } .tabulator-edit-select-list .tabulator-edit-select-list-notice { padding: 4px; color: #333; text-align: center; } .tabulator-edit-select-list .tabulator-edit-select-list-group { border-bottom: 1px solid #fff; padding: 4px; padding-top: 6px; color: #333; font-weight: bold; } .tabulator-print-fullscreen { position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 10000; } body.tabulator-print-fullscreen-hide > *:not(.tabulator-print-fullscreen) { display: none !important; } .tabulator-print-table { border-collapse: collapse; } .tabulator-print-table .tabulator-data-tree-branch { display: inline-block; vertical-align: middle; height: 9px; width: 7px; margin-top: -9px; margin-right: 5px; border-bottom-left-radius: 1px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; } .tabulator-print-table .tabulator-data-tree-control { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-pack: center; justify-content: center; -ms-flex-align: center; align-items: center; vertical-align: middle; height: 11px; width: 11px; margin-right: 5px; border: 1px solid #333; border-radius: 2px; background: rgba(0, 0, 0, 0.1); overflow: hidden; } .tabulator-print-table .tabulator-data-tree-control:hover { cursor: pointer; background: rgba(0, 0, 0, 0.2); } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse { display: inline-block; position: relative; height: 7px; width: 1px; background: transparent; } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand { display: inline-block; position: relative; height: 7px; width: 1px; background: #333; } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; }
cdnjs/cdnjs
ajax/libs/tabulator/4.6.3/css/tabulator_modern.css
CSS
mit
22,223
[ 30522, 1013, 1008, 21628, 20350, 1058, 2549, 1012, 1020, 1012, 1017, 1006, 1039, 1007, 6291, 5154, 2121, 2094, 1008, 1013, 1012, 21628, 20350, 1063, 2597, 1024, 5816, 1025, 3675, 1024, 1015, 2361, 2595, 5024, 1001, 21461, 2546, 1025, 4281, 1011, 3609, 1024, 1001, 21461, 2546, 1025, 2058, 12314, 1024, 5023, 1025, 15489, 1011, 2946, 1024, 2385, 2361, 2595, 1025, 3793, 1011, 25705, 1024, 2187, 1025, 1011, 5796, 1011, 10938, 1024, 17637, 2480, 1006, 1014, 1007, 1025, 10938, 1024, 17637, 2480, 1006, 1014, 1007, 1025, 1065, 1012, 21628, 20350, 1031, 21628, 20350, 1011, 9621, 1027, 1000, 4906, 2850, 2696, 8873, 3363, 1000, 1033, 1012, 21628, 20350, 1011, 2795, 14528, 1012, 21628, 20350, 1011, 2795, 1063, 8117, 1011, 9381, 1024, 2531, 1003, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 3796, 1011, 7276, 1063, 1011, 4773, 23615, 1011, 5310, 1011, 7276, 1024, 3904, 1025, 1011, 5796, 1011, 5310, 1011, 7276, 1024, 3904, 1025, 5310, 1011, 7276, 1024, 3904, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 20346, 1063, 2597, 1024, 5816, 1025, 3482, 1011, 9033, 6774, 1024, 3675, 1011, 3482, 1025, 9381, 1024, 2531, 1003, 1025, 3675, 1011, 3953, 1024, 1017, 2361, 2595, 5024, 1001, 18034, 2683, 2094, 2581, 1025, 7785, 1011, 3953, 1024, 1018, 2361, 2595, 1025, 4281, 1011, 3609, 1024, 1001, 21461, 2546, 1025, 3609, 1024, 1001, 18034, 2683, 2094, 2581, 1025, 15489, 1011, 3635, 1024, 7782, 1025, 2317, 1011, 2686, 1024, 2085, 2527, 2361, 1025, 2058, 12314, 1024, 5023, 1025, 1011, 9587, 2480, 1011, 5310, 1011, 7276, 1024, 3904, 1025, 1011, 1047, 11039, 19968, 1011, 5310, 1011, 7276, 1024, 3904, 1025, 1011, 4773, 23615, 1011, 5310, 1011, 7276, 1024, 3904, 1025, 1011, 1051, 1011, 5310, 1011, 7276, 1024, 3904, 1025, 11687, 4667, 1011, 2187, 1024, 2184, 2361, 2595, 1025, 15489, 1011, 2946, 1024, 1015, 1012, 1015, 6633, 1025, 1065, 1012, 21628, 20350, 30524, 2597, 1024, 5816, 1025, 3482, 1011, 9033, 6774, 1024, 3675, 1011, 3482, 1025, 3675, 1011, 2157, 1024, 1016, 2361, 2595, 5024, 1001, 21461, 2546, 1025, 4281, 1011, 3609, 1024, 1001, 21461, 2546, 1025, 3793, 1011, 25705, 1024, 2187, 1025, 7471, 1011, 25705, 1024, 3953, 1025, 2058, 12314, 1024, 5023, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 1011, 8902, 1012, 21628, 20350, 1011, 3048, 1063, 2597, 1024, 7619, 1025, 3675, 1024, 1015, 2361, 2595, 5024, 1001, 18034, 2683, 2094, 2581, 1025, 4281, 1024, 1001, 1041, 2575, 2063, 2575, 2063, 2575, 1025, 20884, 1011, 2824, 1024, 3904, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 1011, 8902, 1012, 21628, 20350, 1011, 8902, 1011, 4180, 1063, 3482, 1011, 9033, 6774, 1024, 3675, 1011, 3482, 1025, 2597, 1024, 5816, 1025, 11687, 4667, 1024, 1018, 2361, 2595, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 30523, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 1011, 20346, 1011, 5023, 1063, 4653, 1024, 3904, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 1011, 8902, 1063, 4653, 1024, 23881, 1011, 3796, 1025, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 1011, 20346, 1011, 5023, 1063, 4653, 1024, 3904, 1025, 1065, 1012, 21628, 20350, 1012, 21628, 20350, 1011, 20346, 1012, 21628, 20350, 1011, 8902, 1063, 4653, 1024, 23881, 1011, 3796, 1025, 30526 ]
/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www.opensource.org/licenses/bsd-license.php * * Contributors: * IBM Corporation - initial implementation *****************************************************************************/ #ifndef IOLIB_H #define IOLIB_H #include <stdint.h> #define addr_t volatile unsigned int #define addr8_t volatile unsigned char extern void halt_sys (unsigned int); extern uint32_t get_sb_version (void); extern void uart_send_byte(unsigned char b); extern void io_putchar(unsigned char); extern uint64_t tb_frequency(void); extern uint64_t be_frequency(void); extern uint32_t get_dec(void); extern void set_dec(uint32_t); extern void delay_ms( unsigned int ms ); #endif
KernelAnalysisPlatform/KlareDbg
tracers/qemu/decaf/roms/SLOF/llfw/clib/iolib.h
C
gpl-3.0
1,016
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 9385, 1006, 1039, 1007, 2432, 1010, 2263, 9980, 3840, 1008, 2035, 2916, 9235, 1012, 1008, 2023, 2565, 1998, 1996, 10860, 4475, 1008, 2024, 2081, 2800, 2104, 1996, 3408, 1997, 1996, 18667, 2094, 6105, 1008, 2029, 16222, 25377, 28064, 2023, 4353, 1010, 1998, 2003, 2800, 2012, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 7480, 8162, 3401, 1012, 8917, 1013, 15943, 1013, 18667, 2094, 1011, 6105, 1012, 25718, 1008, 1008, 16884, 1024, 1008, 9980, 3840, 1011, 3988, 7375, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30524, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1001, 2065, 13629, 2546, 22834, 29521, 1035, 1044, 1001, 9375, 22834, 29521, 1035, 1044, 1001, 2421, 1026, 2358, 8718, 2102, 1012, 1044, 1028, 1001, 9375, 5587, 2099, 1035, 1056, 20606, 27121, 20014, 1001, 9375, 5587, 2099, 2620, 1035, 1056, 20606, 27121, 25869, 4654, 16451, 11675, 9190, 1035, 25353, 2015, 1006, 27121, 20014, 1007, 1025, 4654, 16451, 21318, 3372, 16703, 1035, 1056, 2131, 1035, 24829, 1035, 2544, 1006, 11675, 1007, 1025, 4654, 16451, 11675, 25423, 5339, 1035, 4604, 1035, 24880, 1006, 27121, 25869, 1038, 1007, 1025, 4654, 16451, 11675, 22834, 1035, 2404, 7507, 2099, 1006, 27121, 25869, 1007, 1025, 4654, 16451, 21318, 3372, 21084, 1035, 1056, 26419, 1035, 6075, 1006, 11675, 1007, 1025, 4654, 16451, 21318, 3372, 21084, 1035, 1056, 2022, 1035, 6075, 1006, 11675, 1007, 1025, 4654, 16451, 21318, 3372, 16703, 1035, 1056, 2131, 1035, 11703, 1006, 11675, 1007, 1025, 4654, 16451, 11675, 2275, 1035, 11703, 1006, 21318, 3372, 16703, 1035, 1056, 1007, 1025, 4654, 16451, 11675, 8536, 1035, 5796, 1006, 27121, 20014, 5796, 1007, 1025, 1001, 2203, 10128, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
<?php namespace Oro\Bundle\EmailBundle\Provider; class VariablesProvider { /** @var SystemVariablesProviderInterface[] */ protected $systemVariablesProviders = []; /** @var EntityVariablesProviderInterface[] */ protected $entityVariablesProviders = []; /** * @param SystemVariablesProviderInterface $provider */ public function addSystemVariablesProvider(SystemVariablesProviderInterface $provider) { $this->systemVariablesProviders[] = $provider; } /** * @param EntityVariablesProviderInterface $provider */ public function addEntityVariablesProvider(EntityVariablesProviderInterface $provider) { $this->entityVariablesProviders[] = $provider; } /** * Gets system variables available in a template * Returned variables are sorted be name. * * @return array The list of variables in the following format: * {variable name} => array * 'type' => {variable data type} * 'name' => {translated variable name} */ public function getSystemVariableDefinitions() { $result = []; foreach ($this->systemVariablesProviders as $provider) { $result = array_merge( $result, $provider->getVariableDefinitions() ); } ksort($result); return $result; } /** * Gets entity related variables available in a template * Returned variables are sorted by name. * * @param string $entityClass The entity class name. If it is not specified the definitions for all * entities are returned. * * @return array The list of variables in the following format: * {variable name} => array * 'type' => {variable data type} * 'name' => {translated variable name} * If a field represents a relation the following attributes are added: * 'related_entity_name' => {related entity full class name} * If $entityClass is NULL variables are grouped by entity class: * {entity class} => array * {variable name} => array of attributes described above */ public function getEntityVariableDefinitions($entityClass = null) { $result = []; foreach ($this->entityVariablesProviders as $provider) { $result = array_merge_recursive( $result, $provider->getVariableDefinitions($entityClass) ); } if ($entityClass) { ksort($result); } else { foreach ($result as &$variables) { ksort($variables); } } return $result; } /** * Gets values of system variables available in a template * * @return array The list of values * key = {variable name} * value = {variable value} */ public function getSystemVariableValues() { $result = []; foreach ($this->systemVariablesProviders as $provider) { $result = array_merge( $result, $provider->getVariableValues() ); } return $result; } /** * Gets getters of entity related variables available in a template * * @param string $entityClass The entity class name. If it is not specified the definitions for all * entities are returned. * * @return string[] The list of getter names * key = {variable name} * value = {method name} // can be NULL if entity field is public */ public function getEntityVariableGetters($entityClass = null) { $result = []; foreach ($this->entityVariablesProviders as $provider) { $result = array_merge_recursive( $result, $provider->getVariableGetters($entityClass) ); } return $result; } }
Djamy/platform
src/Oro/Bundle/EmailBundle/Provider/VariablesProvider.php
PHP
mit
4,230
[ 30522, 1026, 1029, 25718, 3415, 15327, 20298, 1032, 14012, 1032, 10373, 27265, 2571, 1032, 10802, 1025, 2465, 10857, 21572, 17258, 2121, 1063, 1013, 1008, 1008, 1030, 13075, 2291, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1031, 1033, 1008, 1013, 5123, 1002, 2291, 10755, 19210, 13102, 12298, 18688, 2015, 1027, 1031, 1033, 1025, 1013, 1008, 1008, 1030, 13075, 9178, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1031, 1033, 1008, 1013, 5123, 1002, 9178, 10755, 19210, 13102, 12298, 18688, 2015, 1027, 1031, 1033, 1025, 1013, 1008, 1008, 1008, 1030, 11498, 2213, 2291, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1002, 10802, 1008, 1013, 2270, 3853, 9909, 27268, 6633, 10755, 19210, 13102, 12298, 18688, 1006, 2291, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1002, 10802, 1007, 1063, 1002, 2023, 1011, 1028, 2291, 10755, 19210, 13102, 12298, 18688, 2015, 1031, 1033, 1027, 1002, 10802, 1025, 1065, 1013, 1008, 1008, 1008, 1030, 11498, 2213, 30524, 2023, 1011, 1028, 9178, 10755, 19210, 13102, 12298, 18688, 2015, 1031, 1033, 1027, 1002, 10802, 1025, 1065, 1013, 1008, 1008, 1008, 4152, 2291, 10857, 2800, 1999, 1037, 23561, 1008, 2513, 10857, 2024, 19616, 2022, 2171, 1012, 1008, 1008, 1030, 2709, 9140, 1996, 2862, 1997, 10857, 1999, 1996, 2206, 4289, 1024, 1008, 1063, 8023, 2171, 1065, 1027, 1028, 9140, 1008, 1005, 2828, 1005, 1027, 1028, 1063, 8023, 2951, 2828, 1065, 1008, 1005, 2171, 1005, 1027, 1028, 1063, 5421, 8023, 2171, 1065, 1008, 1013, 2270, 3853, 4152, 27268, 6633, 10755, 19210, 3207, 16294, 22753, 2015, 1006, 1007, 1063, 1002, 2765, 1027, 1031, 1033, 1025, 18921, 6776, 1006, 1002, 2023, 1011, 1028, 2291, 10755, 19210, 13102, 12298, 18688, 2015, 2004, 1002, 10802, 1007, 1063, 1002, 2765, 1027, 9140, 1035, 13590, 1006, 1002, 2765, 1010, 1002, 10802, 1011, 1028, 2131, 10755, 19210, 3207, 16294, 22753, 2015, 1006, 1007, 1007, 1025, 1065, 29535, 11589, 1006, 1002, 2765, 1007, 1025, 2709, 1002, 2765, 1025, 1065, 1013, 1008, 1008, 1008, 4152, 9178, 3141, 10857, 2800, 1999, 1037, 23561, 1008, 2513, 10857, 2024, 19616, 2011, 2171, 1012, 1008, 1008, 1030, 11498, 2213, 5164, 1002, 9178, 26266, 1996, 9178, 2465, 2171, 1012, 2065, 2009, 2003, 2025, 9675, 1996, 15182, 2005, 2035, 1008, 11422, 2024, 2513, 1012, 1008, 1008, 1030, 2709, 9140, 1996, 2862, 1997, 10857, 1999, 1996, 2206, 4289, 1024, 1008, 1063, 8023, 2171, 1065, 1027, 1028, 9140, 1008, 1005, 2828, 1005, 1027, 1028, 1063, 8023, 2951, 2828, 1065, 1008, 1005, 2171, 1005, 1027, 1028, 1063, 5421, 8023, 2171, 1065, 1008, 2065, 1037, 2492, 5836, 1037, 7189, 1996, 2206, 12332, 2024, 2794, 1024, 1008, 1005, 3141, 1035, 9178, 1035, 2171, 1005, 1027, 1028, 1063, 3141, 9178, 2440, 2465, 2171, 1065, 1008, 2065, 1002, 9178, 26266, 2003, 19701, 10857, 2024, 15131, 2011, 9178, 2465, 1024, 1008, 1063, 9178, 2465, 1065, 1027, 1028, 9140, 1008, 1063, 8023, 2171, 1065, 30523, 9178, 10755, 19210, 13102, 12298, 18688, 18447, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 9178, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1002, 10802, 1008, 1013, 2270, 3853, 5587, 4765, 3012, 10755, 19210, 13102, 12298, 18688, 1006, 9178, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1002, 10802, 1007, 1063, 1002, 30526 ]
# n peg hanoi tower problem, use bfs instead of dfs, and don't have a full # analytical solution import sys import copy def solutionWorks(currentSolution, stacksAfterSolution, initialStacks, finalStacks): for x in range(len(currentSolution)): i, j = currentSolution[x] stacksAfterSolution[j].append(stacksAfterSolution[i].pop()) if str(stacksAfterSolution) == str(finalStacks): return True else: return False def stepLegitimate(stacksAfterSolution, i, j): if len(stacksAfterSolution[i]) == 0 or \ (len(stacksAfterSolution[j]) > 0 and stacksAfterSolution[i][-1] > stacksAfterSolution[j][-1]): return False return True # DFS cannot work, need to use BFS def moveDiscs(initialStacks, finalStacks, results): import collections solutions = collections.deque() solutions.append([]) K = len(initialStacks) - 1 while len(solutions) > 0: currentSolution = copy.deepcopy(solutions.popleft()) if len(currentSolution) > 7: continue stacksAfterSolution = copy.deepcopy(initialStacks) if solutionWorks(currentSolution, stacksAfterSolution, initialStacks, finalStacks): for x in range(len(currentSolution)): results.append(list(currentSolution[x])) return # add other solutions in queue for i in range(1, K + 1): for j in range(1, K + 1): if j != i and stepLegitimate(stacksAfterSolution, i, j): currentSolution.append([i, j]) solutions.append(copy.deepcopy(currentSolution)) currentSolution.pop() if __name__ == '__main__': # N, K = [int(x) for x in sys.stdin.readline().split()] N, K = 6, 4 initialStacks = [[] for x in range(K + 1)] finalStacks = [[] for x in range(K + 1)] # initial = [int(x) for x in sys.stdin.readline().split()] # final = [int(x) for x in sys.stdin.readline().split()] initial = [4, 2, 4, 3, 1, 1] final = [1, 1, 1, 1, 1, 1] for i in range(N - 1, -1, -1): initialStacks[initial[i]].append(i + 1) for i in range(N - 1, -1, -1): finalStacks[final[i]].append(i + 1) print(initialStacks) print(finalStacks) results = [] moveDiscs(initialStacks, finalStacks, results) print(len(results)) for i in range(len(results)): print(results[i][0], results[i][1])
baiyubin/python_practice
pegs.py
Python
apache-2.0
2,445
[ 30522, 1001, 1050, 25039, 24809, 3578, 3291, 1010, 2224, 28939, 2015, 2612, 1997, 1040, 10343, 1010, 1998, 2123, 1005, 1056, 2031, 1037, 2440, 1001, 17826, 5576, 12324, 25353, 2015, 12324, 6100, 13366, 5576, 9316, 1006, 14731, 4747, 13700, 1010, 20829, 10354, 7747, 4747, 13700, 1010, 20381, 2696, 10603, 1010, 4399, 2696, 10603, 1007, 1024, 2005, 1060, 1999, 2846, 1006, 18798, 1006, 14731, 4747, 13700, 1007, 1007, 1024, 1045, 1010, 1046, 1027, 14731, 4747, 13700, 1031, 1060, 1033, 20829, 10354, 7747, 4747, 13700, 1031, 1046, 1033, 1012, 10439, 10497, 1006, 20829, 10354, 7747, 4747, 13700, 1031, 1045, 1033, 1012, 3769, 1006, 1007, 1007, 2065, 2358, 2099, 1006, 20829, 10354, 7747, 4747, 13700, 1007, 1027, 1027, 2358, 2099, 1006, 4399, 2696, 10603, 1007, 1024, 2709, 2995, 2842, 1024, 2709, 6270, 13366, 3357, 23115, 25090, 8585, 1006, 20829, 10354, 7747, 4747, 13700, 1010, 1045, 1010, 1046, 1007, 1024, 2065, 18798, 1006, 20829, 10354, 7747, 4747, 13700, 1031, 1045, 1033, 1007, 1027, 1027, 1014, 2030, 1032, 1006, 18798, 1006, 20829, 10354, 7747, 4747, 13700, 1031, 1046, 1033, 1007, 1028, 1014, 1998, 20829, 10354, 7747, 4747, 13700, 1031, 1045, 1033, 1031, 1011, 1015, 1033, 1028, 20829, 10354, 7747, 4747, 13700, 1031, 1046, 1033, 1031, 1011, 1015, 1033, 1007, 1024, 2709, 6270, 2709, 2995, 1001, 1040, 10343, 3685, 2147, 1010, 2342, 2000, 2224, 28939, 2015, 13366, 2333, 2483, 6169, 1006, 20381, 2696, 10603, 1010, 4399, 2696, 10603, 1010, 3463, 1007, 1024, 12324, 6407, 7300, 1027, 6407, 1012, 2139, 4226, 1006, 1007, 7300, 1012, 10439, 10497, 1006, 1031, 1033, 1007, 1047, 1027, 18798, 1006, 20381, 2696, 10603, 1007, 1011, 1015, 2096, 18798, 1006, 7300, 1007, 1028, 1014, 1024, 14731, 4747, 13700, 1027, 6100, 1012, 2784, 3597, 7685, 1006, 7300, 1012, 3769, 2571, 6199, 1006, 1007, 1007, 2065, 18798, 1006, 14731, 4747, 13700, 1007, 1028, 1021, 1024, 3613, 20829, 10354, 7747, 4747, 13700, 1027, 6100, 1012, 2784, 3597, 7685, 1006, 20381, 2696, 10603, 1007, 2065, 5576, 9316, 1006, 14731, 4747, 13700, 1010, 20829, 10354, 7747, 4747, 13700, 1010, 20381, 2696, 10603, 1010, 4399, 2696, 10603, 1007, 1024, 2005, 1060, 1999, 2846, 1006, 18798, 1006, 14731, 4747, 13700, 1007, 1007, 1024, 3463, 1012, 10439, 10497, 1006, 2862, 1006, 14731, 4747, 13700, 1031, 1060, 1033, 1007, 1007, 2709, 1001, 5587, 2060, 7300, 1999, 24240, 2005, 1045, 1999, 2846, 1006, 1015, 1010, 1047, 1009, 1015, 1007, 1024, 2005, 1046, 1999, 2846, 1006, 1015, 1010, 1047, 1009, 1015, 1007, 1024, 2065, 1046, 999, 1027, 1045, 1998, 3357, 23115, 25090, 8585, 1006, 20829, 10354, 7747, 4747, 13700, 1010, 1045, 1010, 1046, 1007, 1024, 14731, 4747, 13700, 1012, 10439, 10497, 1006, 1031, 1045, 1010, 1046, 1033, 1007, 7300, 1012, 10439, 10497, 1006, 6100, 1012, 2784, 3597, 7685, 30524, 1007, 2005, 1060, 1999, 25353, 2015, 1012, 2358, 8718, 1012, 3191, 4179, 1006, 1007, 1012, 3975, 1006, 1007, 30523, 1006, 14731, 4747, 13700, 1007, 1007, 14731, 4747, 13700, 1012, 3769, 1006, 1007, 2065, 1035, 1035, 2171, 1035, 1035, 1027, 1027, 1005, 1035, 1035, 2364, 1035, 1035, 1005, 1024, 1001, 1050, 1010, 1047, 1027, 1031, 20014, 1006, 1060, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1006, 14731, 4747, 13700, 1007, 1007, 14731, 4747, 13700, 1012, 3769, 1006, 1007, 2065, 1035, 1035, 2171, 1035, 1035, 1027, 1027, 1005, 1035, 1035, 2364, 1035, 1035, 1005, 1024, 1001, 1050, 1010, 1047, 1027, 1031, 20014, 1006, 1060, 30526 ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_252) on Fri Aug 20 17:47:57 BST 2021 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class psidev.psi.mi.jami.tab.io.writer.extended.Mitab28ModelledWriter (PSI :: JAMI - Java framework for molecular interactions 3.2.12 API)</title> <meta name="date" content="2021-08-20"> <link rel="stylesheet" type="text/css" href="../../../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class psidev.psi.mi.jami.tab.io.writer.extended.Mitab28ModelledWriter (PSI :: JAMI - Java framework for molecular interactions 3.2.12 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../../psidev/psi/mi/jami/tab/io/writer/extended/Mitab28ModelledWriter.html" title="class in psidev.psi.mi.jami.tab.io.writer.extended">Class</a></li> <li class="navBarCell1Rev">Use</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>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../../index.html?psidev/psi/mi/jami/tab/io/writer/extended/class-use/Mitab28ModelledWriter.html" target="_top">Frames</a></li> <li><a href="Mitab28ModelledWriter.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class psidev.psi.mi.jami.tab.io.writer.extended.Mitab28ModelledWriter" class="title">Uses of Class<br>psidev.psi.mi.jami.tab.io.writer.extended.Mitab28ModelledWriter</h2> </div> <div class="classUseContainer">No usage of psidev.psi.mi.jami.tab.io.writer.extended.Mitab28ModelledWriter</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../../psidev/psi/mi/jami/tab/io/writer/extended/Mitab28ModelledWriter.html" title="class in psidev.psi.mi.jami.tab.io.writer.extended">Class</a></li> <li class="navBarCell1Rev">Use</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>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../../index.html?psidev/psi/mi/jami/tab/io/writer/extended/class-use/Mitab28ModelledWriter.html" target="_top">Frames</a></li> <li><a href="Mitab28ModelledWriter.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2021. All rights reserved.</small></p> </body> </html>
MICommunity/psi-jami
docs/psidev/psi/mi/jami/tab/io/writer/extended/class-use/Mitab28ModelledWriter.html
HTML
apache-2.0
5,136
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 30524, 16129, 2549, 1013, 6065, 1012, 26718, 2094, 1000, 1028, 1026, 999, 1011, 1011, 2047, 13704, 1011, 1011, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 999, 1011, 1011, 7013, 2011, 9262, 3527, 2278, 1006, 1015, 1012, 1022, 1012, 1014, 1035, 22898, 1007, 2006, 10424, 2072, 15476, 2322, 2459, 1024, 4700, 1024, 5401, 18667, 2102, 25682, 1011, 1011, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 2516, 1028, 3594, 1997, 2465, 17816, 24844, 1012, 17816, 1012, 2771, 1012, 9389, 2072, 1012, 21628, 1012, 22834, 1012, 3213, 1012, 3668, 1012, 10210, 7875, 22407, 5302, 12662, 2098, 15994, 1006, 17816, 1024, 1024, 9389, 2072, 1011, 9262, 7705, 2005, 8382, 10266, 1017, 1012, 1016, 1012, 2260, 17928, 1007, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 3058, 1000, 4180, 1027, 1000, 25682, 1011, 5511, 1011, 2322, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 6782, 21030, 2102, 1012, 20116, 2015, 1000, 2516, 1027, 1000, 2806, 1000, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5896, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 1028, 1026, 999, 1011, 1011, 3046, 1063, 2065, 1006, 3295, 1012, 17850, 12879, 1012, 5950, 11253, 1006, 1005, 2003, 1011, 6327, 1027, 2995, 1005, 1007, 1027, 1027, 1011, 1015, 1007, 1063, 6687, 1012, 6254, 1012, 2516, 1027, 1000, 3594, 1997, 2465, 17816, 24844, 1012, 17816, 1012, 2771, 1012, 9389, 2072, 1012, 21628, 1012, 22834, 1012, 3213, 1012, 3668, 1012, 10210, 7875, 22407, 5302, 12662, 2098, 15994, 1006, 17816, 1024, 1024, 9389, 2072, 1011, 9262, 7705, 2005, 8382, 10266, 1017, 1012, 1016, 1012, 2260, 17928, 1007, 1000, 1025, 1065, 1065, 4608, 1006, 9413, 2099, 1007, 1063, 1065, 1013, 1013, 1011, 1011, 1028, 1026, 1013, 5896, 1028, 1026, 16839, 23235, 1028, 1026, 4487, 2615, 1028, 9262, 22483, 2003, 9776, 2006, 2115, 16602, 1012, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 16839, 23235, 1028, 1026, 999, 1011, 1011, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 2707, 1997, 2327, 6583, 26493, 2906, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1011, 1011, 1028, 1026, 4487, 2615, 2465, 1027, 30523, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 30526 ]
package com.microsoft.bingads.v12.adinsight; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for KeywordCategory complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="KeywordCategory"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="Category" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;element name="ConfidenceScore" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "KeywordCategory", propOrder = { "category", "confidenceScore" }) public class KeywordCategory { @XmlElement(name = "Category", nillable = true) protected String category; @XmlElement(name = "ConfidenceScore") protected Double confidenceScore; /** * Gets the value of the category property. * * @return * possible object is * {@link String } * */ public String getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link String } * */ public void setCategory(String value) { this.category = value; } /** * Gets the value of the confidenceScore property. * * @return * possible object is * {@link Double } * */ public Double getConfidenceScore() { return confidenceScore; } /** * Sets the value of the confidenceScore property. * * @param value * allowed object is * {@link Double } * */ public void setConfidenceScore(Double value) { this.confidenceScore = value; } }
bing-ads-sdk/BingAds-Java-SDK
proxies/com/microsoft/bingads/v12/adinsight/KeywordCategory.java
Java
mit
2,193
[ 30522, 7427, 4012, 1012, 7513, 1012, 17620, 19303, 1012, 1058, 12521, 1012, 27133, 3619, 18743, 1025, 12324, 9262, 2595, 1012, 20950, 1012, 14187, 1012, 5754, 17287, 3508, 1012, 20950, 6305, 9623, 21756, 5051, 1025, 12324, 9262, 2595, 1012, 20950, 1012, 14187, 1012, 5754, 17287, 3508, 1012, 20950, 6305, 9623, 21748, 13874, 1025, 12324, 9262, 2595, 1012, 20950, 1012, 14187, 1012, 5754, 17287, 3508, 1012, 20950, 12260, 3672, 1025, 12324, 9262, 2595, 1012, 20950, 1012, 14187, 1012, 5754, 17287, 3508, 1012, 20950, 13874, 1025, 1013, 1008, 1008, 1008, 1026, 1052, 1028, 9262, 2465, 2005, 3145, 18351, 16280, 20255, 2100, 3375, 2828, 1012, 1008, 1008, 1026, 1052, 1028, 1996, 2206, 8040, 28433, 15778, 27171, 1996, 3517, 4180, 4838, 2306, 2023, 2465, 1012, 1008, 1008, 1026, 3653, 1028, 1008, 1004, 8318, 1025, 3375, 13874, 2171, 1027, 1000, 3145, 18351, 16280, 30524, 8663, 6528, 2102, 1028, 1008, 1004, 8318, 1025, 16840, 2918, 1027, 1000, 1063, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2541, 1013, 20950, 22842, 2863, 1065, 2151, 13874, 1000, 1028, 1008, 1004, 8318, 1025, 5537, 1028, 1008, 1004, 8318, 1025, 5783, 2171, 1027, 1000, 4696, 1000, 2828, 1027, 1000, 1063, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2541, 1013, 20950, 22842, 2863, 1065, 5164, 1000, 8117, 10085, 10841, 2869, 1027, 1000, 1014, 1000, 1013, 1028, 1008, 1004, 8318, 1025, 5783, 2171, 1027, 1000, 7023, 9363, 2890, 1000, 2828, 1027, 1000, 1063, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2541, 1013, 20950, 22842, 2863, 1065, 3313, 1000, 8117, 10085, 10841, 2869, 1027, 1000, 1014, 1000, 1013, 1028, 1008, 1004, 8318, 1025, 1013, 5537, 1028, 1008, 1004, 8318, 1025, 1013, 16840, 1028, 1008, 1004, 8318, 1025, 1013, 3375, 8663, 6528, 2102, 1028, 1008, 1004, 8318, 1025, 1013, 3375, 13874, 1028, 1008, 1026, 1013, 3653, 1028, 1008, 1008, 1008, 1013, 1030, 20950, 6305, 9623, 21748, 13874, 1006, 20950, 6305, 9623, 21756, 5051, 1012, 2492, 1007, 1030, 20950, 13874, 1006, 2171, 1027, 1000, 3145, 18351, 16280, 20255, 2100, 1000, 1010, 17678, 8551, 2121, 1027, 1063, 1000, 4696, 1000, 1010, 1000, 7023, 9363, 2890, 1000, 1065, 1007, 2270, 2465, 3145, 18351, 16280, 20255, 2100, 1063, 1030, 20950, 12260, 3672, 1006, 2171, 1027, 1000, 4696, 1000, 1010, 9152, 4571, 3468, 1027, 2995, 1007, 5123, 5164, 4696, 1025, 1030, 20950, 12260, 3672, 1006, 2171, 1027, 1000, 7023, 9363, 2890, 1000, 1007, 5123, 3313, 7023, 9363, 2890, 1025, 1013, 1008, 1008, 1008, 4152, 1996, 3643, 1997, 1996, 4696, 3200, 1012, 1008, 1008, 1030, 2709, 1008, 2825, 4874, 2003, 1008, 1063, 1030, 4957, 5164, 1065, 1008, 1008, 1013, 2270, 5164, 2131, 16280, 20255, 2100, 1006, 1007, 1063, 2709, 4696, 1025, 1065, 1013, 1008, 1008, 1008, 4520, 1996, 3643, 1997, 1996, 4696, 3200, 1012, 1008, 1008, 1030, 11498, 2213, 3643, 1008, 3039, 4874, 2003, 1008, 1063, 1030, 4957, 5164, 1065, 1008, 1008, 1013, 2270, 11675, 2275, 16280, 20255, 2100, 1006, 5164, 3643, 1007, 1063, 2023, 1012, 4696, 1027, 3643, 1025, 1065, 30523, 20255, 2100, 1000, 1028, 1008, 1004, 8318, 1025, 3375, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 20255, 2100, 1000, 1028, 1008, 1004, 8318, 1025, 3375, 30526 ]
# Role notes Users is https://galaxy.ansible.com/singleplatform-eng/users
phips/ansible-demos
roles/README.md
Markdown
gpl-3.0
76
[ 30522, 1001, 2535, 3964, 5198, 2003, 16770, 1024, 1013, 1013, 9088, 1012, 2019, 19307, 1012, 4012, 1013, 2309, 24759, 4017, 14192,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<!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_67) on Wed Aug 05 09:09:27 CEST 2015 --> <title>Uses of Package negotiator.tournament (Genius GUI Documentation)</title> <meta name="date" content="2015-08-05"> <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 Package negotiator.tournament (Genius GUI Documentation)"; } //--> </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>Class</li> <li class="navBarCell1Rev">Use</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>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../index.html?negotiator/tournament/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.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="Uses of Package negotiator.tournament" class="title">Uses of Package<br>negotiator.tournament</h1> </div> <div class="contentContainer"> <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="../../negotiator/tournament/package-summary.html">negotiator.tournament</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="#negotiator.distributedtournament">negotiator.distributedtournament</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#negotiator.gui.tournamentvars">negotiator.gui.tournamentvars</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#negotiator.protocol">negotiator.protocol</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#negotiator.protocol.alternatingoffers">negotiator.protocol.alternatingoffers</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#negotiator.protocol.auction">negotiator.protocol.auction</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#negotiator.tournament">negotiator.tournament</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="negotiator.distributedtournament"> <!-- --> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a> used by <a href="../../negotiator/distributedtournament/package-summary.html">negotiator.distributedtournament</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/Tournament.html#negotiator.distributedtournament">Tournament</a> <div class="block">This class stores all tournament info (protocol, list of profiles, list of agents, etc.) This is then converted into a list of <a href="../../negotiator/protocol/Protocol.html" title="class in negotiator.protocol"><code>Protocol</code></a>s using <a href="../../negotiator/tournament/Tournament.html#getSessions()"><code>Tournament.getSessions()</code></a>.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="negotiator.gui.tournamentvars"> <!-- --> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a> used by <a href="../../negotiator/gui/tournamentvars/package-summary.html">negotiator.gui.tournamentvars</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/Tournament.html#negotiator.gui.tournamentvars">Tournament</a> <div class="block">This class stores all tournament info (protocol, list of profiles, list of agents, etc.) This is then converted into a list of <a href="../../negotiator/protocol/Protocol.html" title="class in negotiator.protocol"><code>Protocol</code></a>s using <a href="../../negotiator/tournament/Tournament.html#getSessions()"><code>Tournament.getSessions()</code></a>.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="negotiator.protocol"> <!-- --> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a> used by <a href="../../negotiator/protocol/package-summary.html">negotiator.protocol</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/Tournament.html#negotiator.protocol">Tournament</a> <div class="block">This class stores all tournament info (protocol, list of profiles, list of agents, etc.) This is then converted into a list of <a href="../../negotiator/protocol/Protocol.html" title="class in negotiator.protocol"><code>Protocol</code></a>s using <a href="../../negotiator/tournament/Tournament.html#getSessions()"><code>Tournament.getSessions()</code></a>.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/TournamentRunner.html#negotiator.protocol">TournamentRunner</a> <div class="block">This is a class that runs a multi-party tournament.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="negotiator.protocol.alternatingoffers"> <!-- --> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a> used by <a href="../../negotiator/protocol/alternatingoffers/package-summary.html">negotiator.protocol.alternatingoffers</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/Tournament.html#negotiator.protocol.alternatingoffers">Tournament</a> <div class="block">This class stores all tournament info (protocol, list of profiles, list of agents, etc.) This is then converted into a list of <a href="../../negotiator/protocol/Protocol.html" title="class in negotiator.protocol"><code>Protocol</code></a>s using <a href="../../negotiator/tournament/Tournament.html#getSessions()"><code>Tournament.getSessions()</code></a>.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="negotiator.protocol.auction"> <!-- --> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a> used by <a href="../../negotiator/protocol/auction/package-summary.html">negotiator.protocol.auction</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/Tournament.html#negotiator.protocol.auction">Tournament</a> <div class="block">This class stores all tournament info (protocol, list of profiles, list of agents, etc.) This is then converted into a list of <a href="../../negotiator/protocol/Protocol.html" title="class in negotiator.protocol"><code>Protocol</code></a>s using <a href="../../negotiator/tournament/Tournament.html#getSessions()"><code>Tournament.getSessions()</code></a>.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="negotiator.tournament"> <!-- --> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a> used by <a href="../../negotiator/tournament/package-summary.html">negotiator.tournament</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../negotiator/tournament/class-use/Tournament.html#negotiator.tournament">Tournament</a> <div class="block">This class stores all tournament info (protocol, list of profiles, list of agents, etc.) This is then converted into a list of <a href="../../negotiator/protocol/Protocol.html" title="class in negotiator.protocol"><code>Protocol</code></a>s using <a href="../../negotiator/tournament/Tournament.html#getSessions()"><code>Tournament.getSessions()</code></a>.</div> </td> </tr> </tbody> </table> </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>Class</li> <li class="navBarCell1Rev">Use</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>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../index.html?negotiator/tournament/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.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 ======= --> </body> </html>
hendrahc/nego11
AI2015Group11assignment/javadoc/negotiator/tournament/package-use.html
HTML
gpl-2.0
11,952
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 16129, 2549, 1013, 6065, 1012, 26718, 2094, 1000, 1028, 1026, 999, 1011, 1011, 2047, 13704, 1011, 1011, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 999, 1011, 1011, 7013, 2011, 9262, 3527, 2278, 1006, 2544, 1015, 1012, 1021, 1012, 1014, 1035, 6163, 1007, 2006, 21981, 15476, 5709, 5641, 1024, 5641, 1024, 2676, 8292, 3367, 2325, 1011, 1011, 1028, 1026, 2516, 1028, 3594, 1997, 7427, 11265, 3995, 10711, 4263, 1012, 2977, 1006, 11067, 26458, 12653, 1007, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 3058, 1000, 4180, 1027, 1000, 2325, 1011, 5511, 1011, 5709, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 6782, 21030, 2102, 1012, 20116, 2015, 1000, 2516, 1027, 1000, 2806, 1000, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 1028, 1026, 999, 1011, 1011, 2065, 1006, 3295, 1012, 17850, 12879, 1012, 5950, 11253, 1006, 1005, 2003, 1011, 6327, 1027, 2995, 1005, 1007, 1027, 1027, 1011, 1015, 1007, 1063, 6687, 1012, 6254, 1012, 2516, 1027, 1000, 3594, 1997, 7427, 11265, 3995, 10711, 4263, 1012, 2977, 1006, 11067, 26458, 12653, 1007, 1000, 1025, 1065, 1013, 1013, 1011, 1011, 1028, 1026, 1013, 5896, 1028, 1026, 16839, 23235, 1028, 1026, 4487, 2615, 1028, 9262, 22483, 2003, 9776, 2006, 2115, 16602, 1012, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 16839, 23235, 1028, 1026, 999, 1011, 1011, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 2707, 1997, 2327, 6583, 26493, 2906, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1011, 1011, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2327, 2532, 2615, 1000, 1028, 1026, 1037, 2171, 1027, 1000, 6583, 26493, 2906, 1035, 2327, 1000, 1028, 1026, 999, 1011, 1011, 1011, 1011, 1028, 1026, 1013, 1037, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 1001, 13558, 1011, 6583, 26493, 2906, 1035, 2327, 1000, 2516, 1027, 1000, 13558, 9163, 6971, 1000, 1028, 1026, 1013, 1037, 1028, 1026, 1037, 2171, 1027, 1000, 6583, 26493, 2906, 1035, 2327, 1035, 2034, 10524, 1000, 1028, 1026, 999, 1011, 1011, 1011, 1011, 1028, 1026, 1013, 1037, 1028, 1026, 17359, 2465, 1027, 1000, 6583, 2615, 9863, 1000, 2516, 1027, 1000, 9163, 1000, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 19184, 1011, 12654, 1012, 16129, 1000, 1028, 19184, 1026, 1013, 1037, 30524, 1028, 1026, 5622, 2465, 1027, 1000, 6583, 26493, 2906, 29109, 2140, 2487, 2890, 2615, 1000, 1028, 2224, 30523, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 7427, 1011, 12654, 1012, 16129, 1000, 1028, 7427, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 2465, 1026, 1013, 5622, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 7427, 1011, 12654, 1012, 16129, 1000, 1028, 7427, 1026, 1013, 1037, 1028, 1026, 1013, 5622, 1028, 1026, 5622, 1028, 2465, 1026, 1013, 5622, 30526 ]
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Wall\Controller; use Zend\Mvc\Controller\AbstractRestfulController; use Zend\View\Model\JsonModel; use Zend\Http\Client; use Zend\Filter\FilterChain; use Zend\Filter\StripTags; use Zend\Filter\StringTrim; use Zend\Filter\StripNewLines; use Zend\Dom\Query; /** * This class is the responsible to answer the requests to the /wall endpoint * * @package Wall/Controller */ class IndexController extends AbstractRestfulController { /** * Holds the table object * * @var UsersTable */ protected $usersTable; /** * Holds the table object * * @var UserStatusesTable */ protected $userStatusesTable; /** * Holds the table object * * @var UserImagesTable */ protected $userImagesTable; /** * Holds the table object * * @var UserLinksTable */ protected $userLinksTable; /** * This method will fetch the data related to the wall of a user and return * it. The data is fetched using the username as reference * * @param string $username * @return array */ public function get($username) { $usersTable = $this->getUsersTable(); $userStatusesTable = $this->getUserStatusesTable(); $userImagesTable = $this->getUserImagesTable(); $userLinksTable = $this->getUserLinksTable(); $userData = $usersTable->getByUsername($username); $userStatuses = $userStatusesTable->getByUserId($userData->id)->toArray(); $userImages = $userImagesTable->getByUserId($userData->id)->toArray(); $userLinks = $userLinksTable->getByUserId($userData->id)->toArray(); $wallData = $userData->getArrayCopy(); $wallData['feed'] = array_merge($userStatuses, $userImages, $userLinks); usort($wallData['feed'], function($a, $b){ $timestampA = strtotime($a['created_at']); $timestampB = strtotime($b['created_at']); if ($timestampA == $timestampB) { return 0; } return ($timestampA > $timestampB) ? -1 : 1; }); if ($userData !== false) { return new JsonModel($wallData); } else { throw new \Exception('User not found', 404); } } /** * Method not available for this endpoint * * @return void */ public function getList() { $this->methodNotAllowed(); } /** * This method inspects the request and routes the data * to the correct method * * @return void */ public function create($data) { if (array_key_exists('status', $data) && !empty($data['status'])) { $result = $this->createStatus($data); } if (array_key_exists('image', $data) && !empty($data['image'])) { $result = $this->createImage($data); } if (array_key_exists('url', $data) && !empty($data['url'])) { $result = $this->createLink($data); } return $result; } /** * Handle the creation of a new image * * @param array $data * @return JsonModel */ protected function createImage($data) { $userImagesTable = $this->getUserImagesTable(); $filters = $userImagesTable->getInputFilter(); $filters->setData($data); if ($filters->isValid()) { $filename = sprintf('public/images/%s.png', sha1(uniqid(time(), TRUE))); $content = base64_decode($data['image']); $image = imagecreatefromstring($content); if (imagepng($image, $filename) === TRUE) { $result = new JsonModel(array( 'result' => $userImagesTable->create($data['user_id'], basename($filename)) )); } else { $result = new JsonModel(array( 'result' => false, 'errors' => 'Error while storing the image' )); } imagedestroy($image); } else { $result = new JsonModel(array( 'result' => false, 'errors' => $filters->getMessages() )); } return $result; } /** * Handle the creation of a new status * * @param array $data * @return JsonModel */ protected function createStatus($data) { $userStatusesTable = $this->getUserStatusesTable(); $filters = $userStatusesTable->getInputFilter(); $filters->setData($data); if ($filters->isValid()) { $data = $filters->getValues(); $result = new JsonModel(array( 'result' => $userStatusesTable->create($data['user_id'], $data['status']) )); } else { $result = new JsonModel(array( 'result' => false, 'errors' => $filters->getMessages() )); } return $result; } /** * Handle the creation of a new link * * @param array $data * @return JsonModel */ protected function createLink($data) { $userLinksTable = $this->getUserLinksTable(); $filters = $userLinksTable->getInputFilter(); $filters->setData($data); if ($filters->isValid()) { $data = $filters->getValues(); $client = new Client($data['url']); $client->setEncType(Client::ENC_URLENCODED); $client->setMethod(\Zend\Http\Request::METHOD_GET); $response = $client->send(); if ($response->isSuccess()) { $html = $response->getBody(); $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); $dom = new Query($html); $title = $dom->execute('title')->current()->nodeValue; if (!empty($title)) { $filterChain = new FilterChain(); $filterChain->attach(new StripTags()); $filterChain->attach(new StringTrim()); $filterChain->attach(new StripNewLines()); $title = $filterChain->filter($title); } else { $title = NULL; } return new JsonModel(array( 'result' => $userLinksTable->create( $data['user_id'], $data['url'], $title ) )); } } return new JsonModel(array( 'result' => false, 'errors' => $filters->getMessages() )); } /** * Method not available for this endpoint * * @return void */ public function update($id, $data) { $this->methodNotAllowed(); } /** * Method not available for this endpoint * * @return void */ public function delete($id) { $this->methodNotAllowed(); } protected function methodNotAllowed() { $this->response->setStatusCode(\Zend\Http\PhpEnvironment\Response::STATUS_CODE_405); } /** * This is a convenience method to load the usersTable db object and keeps track * of the instance to avoid multiple of them * * @return UsersTable */ protected function getUsersTable() { if (!$this->usersTable) { $sm = $this->getServiceLocator(); $this->usersTable = $sm->get('Users\Model\UsersTable'); } return $this->usersTable; } /** * This is a convenience method to load the userStatusesTable db object and keeps track * of the instance to avoid multiple of them * * @return UserStatusesTable */ protected function getUserStatusesTable() { if (!$this->userStatusesTable) { $sm = $this->getServiceLocator(); $this->userStatusesTable = $sm->get('Users\Model\UserStatusesTable'); } return $this->userStatusesTable; } /** * This is a convenience method to load the userImagesTable db object and keeps track * of the instance to avoid multiple of them * * @return UserImagesTable */ protected function getUserImagesTable() { if (!$this->userImagesTable) { $sm = $this->getServiceLocator(); $this->userImagesTable = $sm->get('Users\Model\UserImagesTable'); } return $this->userImagesTable; } /** * This is a convenience method to load the userLinksTable db object and keeps track * of the instance to avoid multiple of them * * @return UserLinksTable */ protected function getUserLinksTable() { if (!$this->userLinksTable) { $sm = $this->getServiceLocator(); $this->userLinksTable = $sm->get('Users\Model\UserLinksTable'); } return $this->userLinksTable; } }
crysthianophp/api
module/Wall/src/Wall/Controller/IndexController.php
PHP
bsd-3-clause
9,694
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 16729, 2094, 7705, 1006, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 1007, 1008, 1008, 1030, 4957, 8299, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 16729, 20952, 6444, 7974, 2953, 2243, 1013, 16729, 5104, 11705, 18903, 2532, 9397, 19341, 3508, 2005, 1996, 18562, 3120, 22409, 1008, 1030, 9385, 9385, 1006, 1039, 1007, 2384, 1011, 2262, 16729, 2094, 6786, 3915, 4297, 1012, 1006, 8299, 1024, 1013, 1013, 7479, 1012, 16729, 2094, 1012, 4012, 1007, 1008, 1030, 6105, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 6105, 1013, 2047, 1011, 18667, 2094, 2047, 18667, 2094, 6105, 1008, 1013, 3415, 15327, 2813, 1032, 11486, 1025, 2224, 16729, 2094, 1032, 19842, 2278, 1032, 11486, 1032, 10061, 28533, 3993, 8663, 13181, 10820, 1025, 2224, 16729, 2094, 1032, 3193, 1032, 2944, 1032, 1046, 3385, 5302, 9247, 1025, 2224, 16729, 2094, 1032, 8299, 1032, 7396, 1025, 2224, 16729, 2094, 1032, 11307, 1032, 11307, 24925, 2078, 1025, 2224, 16729, 2094, 1032, 11307, 1032, 6167, 15900, 2015, 1025, 2224, 16729, 2094, 1032, 11307, 1032, 5164, 18886, 2213, 1025, 2224, 16729, 2094, 1032, 11307, 1032, 6167, 2638, 13668, 10586, 1025, 2224, 16729, 2094, 1032, 14383, 1032, 23032, 1025, 1013, 1008, 1008, 1008, 2023, 2465, 2003, 1996, 3625, 2000, 3437, 1996, 11186, 2000, 1996, 1013, 2813, 2203, 8400, 1008, 1008, 1030, 7427, 2813, 1013, 11486, 1008, 1013, 2465, 5950, 8663, 13181, 10820, 8908, 10061, 28533, 3993, 8663, 13181, 10820, 1063, 1013, 1008, 1008, 1008, 4324, 1996, 30524, 4874, 1008, 1008, 1030, 13075, 5310, 9581, 8449, 10880, 1008, 1013, 5123, 1002, 5310, 9581, 8449, 10880, 1025, 1013, 1008, 1008, 1008, 4324, 1996, 2795, 4874, 1008, 1008, 1030, 13075, 5310, 13767, 9153, 3468, 1008, 1013, 5123, 1002, 5310, 13767, 9153, 3468, 1025, 1013, 1008, 1008, 1008, 2023, 4118, 2097, 18584, 1996, 2951, 3141, 2000, 1996, 2813, 1997, 1037, 5310, 1998, 2709, 1008, 2009, 1012, 1996, 2951, 2003, 18584, 2098, 2478, 1996, 5310, 18442, 2004, 4431, 1008, 1008, 1030, 11498, 2213, 5164, 1002, 5310, 18442, 1008, 1030, 2709, 9140, 1008, 1013, 2270, 3853, 2131, 1006, 1002, 5310, 18442, 1007, 1063, 1002, 5198, 10880, 1027, 1002, 2023, 1011, 1028, 2131, 20330, 9153, 3468, 1006, 1007, 1025, 1002, 5198, 29336, 25581, 10880, 1027, 1002, 2023, 1011, 1028, 2131, 20330, 9153, 5809, 4355, 3085, 1006, 1007, 1025, 1002, 5310, 9581, 8449, 10880, 1027, 1002, 2023, 1011, 1028, 2131, 20330, 9581, 8449, 10880, 1006, 1007, 1025, 1002, 5310, 13767, 9153, 3468, 1027, 1002, 2023, 1011, 1028, 2131, 20330, 13767, 9153, 3468, 1006, 1007, 1025, 1002, 5310, 2850, 2696, 1027, 1002, 5198, 10880, 1011, 1028, 2131, 3762, 20330, 18442, 1006, 1002, 5310, 18442, 1007, 1025, 1002, 5198, 29336, 25581, 1027, 1002, 5198, 29336, 25581, 10880, 1011, 30523, 2795, 4874, 1008, 1008, 1030, 13075, 5198, 10880, 1008, 1013, 5123, 1002, 5198, 10880, 1025, 1013, 1008, 1008, 1008, 4324, 1996, 2795, 4874, 1008, 1008, 1030, 13075, 5198, 29336, 25581, 10880, 1008, 1013, 5123, 1002, 5198, 29336, 25581, 10880, 1025, 1013, 1008, 1008, 1008, 4324, 1996, 2795, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2795, 4874, 1008, 1008, 1030, 13075, 5198, 10880, 1008, 1013, 5123, 1002, 5198, 10880, 1025, 1013, 1008, 1008, 1008, 4324, 1996, 2795, 4874, 1008, 1008, 1030, 13075, 5198, 29336, 25581, 10880, 1008, 1013, 5123, 1002, 5198, 29336, 25581, 10880, 1025, 1013, 1008, 1008, 1008, 4324, 1996, 2795, 30526 ]
/** RTAPI is a library providing a uniform API for several real time operating systems. As of ver 2.0, RTLinux and RTAI are supported. */ /******************************************************************** * Description: rtl_rtapi.c * This file, 'rtl_rtapi.c', implements the realtime * portion of the API for the RTlinux platform. * * Author: John Kasunich, Paul Corner * License: GPL Version 2 * * Copyright (c) 2004 All rights reserved. * * Last change: ********************************************************************/ /** This file, 'rtl_rtapi.c', implements the realtime portion of the API for the RTLinux platform. The API is defined in rtapi.h, which includes documentation for all of the API functions. The non-real- time portion of the API is implemented in rtl_ulapi.c (for the RTLinux platform). This implementation attempts to prevent kernel panics, 'oops'es, and other nasty stuff that can happen when writing and testing realtime code. Wherever possible, common errors are detected and corrected before they can cause a crash. This implementation also includes several /proc filesystem entries and numerous debugging print statements. */ /** Copyright (C) 2003 John Kasunich <jmkasunich AT users DOT sourceforge DOT net> Copyright (C) 2003 Paul Corner <paul_c AT users DOT sourceforge DOT net> This library is based on version 1.0, which was released into the public domain by its author, Fred Proctor. Thanks Fred! */ /* This library is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */ /** THE AUTHORS OF THIS LIBRARY ACCEPT ABSOLUTELY NO LIABILITY FOR ANY HARM OR LOSS RESULTING FROM ITS USE. IT IS _EXTREMELY_ UNWISE TO RELY ON SOFTWARE ALONE FOR SAFETY. Any machinery capable of harming persons must have provisions for completely removing power from all motors, etc, before persons enter any danger area. All machinery must be designed to comply with local and national safety codes, and the authors of this software can not, and do not, take any responsibility for such compliance. This code was written as part of the EMC HAL project. For more information, go to www.linuxcnc.org. */ #include <stdarg.h> /* va_* */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/slab.h> /* replaces malloc.h in recent kernels */ #include <linux/ctype.h> /* isdigit */ #include <linux/delay.h> /* udelay */ #include <asm/uaccess.h> /* copy_from_user() */ #include <asm/msr.h> /* rdtscll() */ #ifndef LINUX_VERSION_CODE #include <linux/version.h> #endif #ifndef KERNEL_VERSION #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))*/ #endif /* get inb(), outb(), ioperm() */ #include <asm/io.h> #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,0) /* Kernel is 2.4 or higher, use it's vsnprintf() implementation */ #define vsn_printf vsnprintf #else /* 2.2 and older kernels don't have vsnprintf() so we bring in our own implementation (vsn_printf) of it here.*/ #include "vsnprintf.h" #endif #include <rtl.h> /* top level config */ #include <rtl_sched.h> /* rtl_getschedclock(), RTL_CLOCK_MODE_PERIODIC, struct sched_param, pthread_*_np() */ #include <rtl_core.h> #include <rtl_time.h> /* clock_gethrtime() */ #include <rtl_sync.h> #include <rtl_fifo.h> #include <rtl_sema.h> /* sem_t, sem_init,post,wait() */ #include <posix/pthread.h> /* pthread_* */ #include <posix/time.h> /*! \todo FIX ME - This is needed with rtl-3.2, but is clock_getres in the same place with earlier versions. */ #include <mbuff.h> /* mbuff_alloc,free() */ #include "rtapi.h" /* public RTAPI decls */ #include "rtapi_common.h" /* shared realtime/nonrealtime stuff */ /* resource data unique to kernel space */ static pthread_t ostask_array[RTAPI_MAX_TASKS + 1]; static void *shmem_addr_array[RTAPI_MAX_SHMEMS + 1]; static sem_t ossem_array[RTAPI_MAX_SEMS + 1]; #define DEFAULT_MAX_DELAY 10000 static long int max_delay = DEFAULT_MAX_DELAY; /* module parameters */ static int msg_level = RTAPI_MSG_INFO; /* message printing level */ RTAPI_MP_INT(msg_level, "debug message level (default=3)"); /* other module information */ MODULE_AUTHOR("John Kasunich, Fred Proctor, & Paul Corner"); MODULE_DESCRIPTION("Portable Real Time API for RTLinux"); MODULE_LICENSE("GPL"); #include "rtapi_proc.h" /* proc filesystem decls & code */ /* the following are internal functions that do the real work associated with deleting tasks, etc. They do not check the mutex that protects the internal data structures. When someone calls an rtapi_xxx_delete() function, the rtapi funct gets the mutex before calling one of these internal functions. When internal code that already has the mutex needs to delete something, it calls these functions directly. */ static int module_delete(int module_id); static int task_delete(int task_id); static int shmem_delete(int shmem_id, int module_id); static int sem_delete(int sem_id, int module_id); static int fifo_delete(int fifo_id, int module_id); static int irq_delete(unsigned int irq_num); /*********************************************************************** * Internal routines * ************************************************************************/ /* RTAPI uses integers as keys, since these can be mapped onto either integers or strings easily, whereas the reverse is not true: you can't map an arbitrary string to an integer uniquely. Since mbuff takes string keys, we need to convert them to some unique string using genstr(). genstr() generates a string 'str' unique for unsigned integers 'i', as the reverse, e.g., 120 -> "012", -1 -> "5927694924" */ #define KEYSTR_LEN 16 /* larger than number of digits in MAX_INT */ static void genstr(unsigned int i, char *str) { unsigned int x, d; if (i == 0) { *str++ = '0'; *str = 0; return; } x = i; while (x > 0) { i = x / 10; d = x - (i * 10); *str++ = d + '0'; x = i; } *str = 0; return; } /*********************************************************************** * INIT AND SHUTDOWN FUNCTIONS * ************************************************************************/ int init_module(void) { int n; char keystr[KEYSTR_LEN]; /* say hello */ rtapi_print_msg(RTAPI_MSG_INFO, "RTAPI: Init\n"); /* setup revision string and code, and print opening message */ setup_revision_info(); /* convert RTAPI_KEY to a string */ genstr(RTAPI_KEY, keystr); /* get master shared memory block from OS and save its address */ rtapi_data = mbuff_alloc(keystr, sizeof(rtapi_data_t)); if (rtapi_data == NULL) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: Could not open shared memory area\n"); return -ENOMEM; } /* perform a global init if needed */ init_rtapi_data(rtapi_data); /* check revision code */ if (rtapi_data->rev_code != rev_code) { /* mismatch - release master shared memory block */ mbuff_free(keystr, rtapi_data); rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: Version mismatch\n"); return -EINVAL; } /* set up local pointers to global data */ module_array = rtapi_data->module_array; task_array = rtapi_data->task_array; shmem_array = rtapi_data->shmem_array; sem_array = rtapi_data->sem_array; fifo_array = rtapi_data->fifo_array; irq_array = rtapi_data->irq_array; /* perform local init */ for (n = 0; n <= RTAPI_MAX_TASKS; n++) { ostask_array[n] = NULL; } for (n = 0; n <= RTAPI_MAX_SHMEMS; n++) { shmem_addr_array[n] = NULL; } rtapi_data->timer_running = 0; rtapi_data->timer_period = 0; /* all RT tasks run on CPU 0 - non-optimal, but works everywhere */ rtapi_data->rt_cpu = 0; max_delay = DEFAULT_MAX_DELAY; #ifdef CONFIG_PROC_FS /* set up /proc/rtapi */ if (proc_init() != 0) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: Could not activate /proc entries\n"); proc_clean(); } #endif /* done */ rtapi_print_msg(RTAPI_MSG_INFO, "RTAPI: Init complete\n"); return 0; } /* This cleanup code attempts to fix any messes left by modules that fail to load properly, or fail to clean up after themselves */ void cleanup_module(void) { int n; char keystr[KEYSTR_LEN]; if (rtapi_data == NULL) { /* never got inited, nothing to do */ return; } /* grab the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); rtapi_print_msg(RTAPI_MSG_INFO, "RTAPI: Exiting\n"); /* clean up leftover modules (start at 1, we don't use ID 0 */ for (n = 1; n <= RTAPI_MAX_MODULES; n++) { if (module_array[n].state == REALTIME) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: Module '%s' (ID: %02d) did not call rtapi_exit()\n", module_array[n].name, n); module_delete(n); } } /* cleaning up modules should clean up everything, if not there has probably been an unrecoverable internal error.... */ for (n = 1; n <= RTAPI_MAX_IRQS; n++) { if (irq_array[n].irq_num != 0) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: Interrupt handler %02d not deleted (IRQ %d)\n", n, irq_array[n].irq_num); /* probably un-recoverable, but try anyway */ irq_delete(irq_array[n].irq_num); } } for (n = 1; n <= RTAPI_MAX_FIFOS; n++) { if (fifo_array[n].state != UNUSED) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: FIFO %02d not deleted\n", n); } } for (n = 1; n <= RTAPI_MAX_SEMS; n++) { while (sem_array[n].users > 0) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: Semaphore %02d not deleted\n", n); } } for (n = 1; n <= RTAPI_MAX_SHMEMS; n++) { if (shmem_array[n].rtusers > 0) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: Shared memory block %02d not deleted\n", n); } } for (n = 1; n <= RTAPI_MAX_TASKS; n++) { if (task_array[n].state != EMPTY) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERROR: Task %02d not deleted\n", n); /* probably un-recoverable, but try anyway */ rtapi_task_pause(n); task_delete(n); } } if (rtapi_data->timer_running != 0) { /* in RTLinux, you can't really stop the timer. Since no realtime task needs it running, we set it to 10mS, and it serves as the Linux jiffies clock. This seems like a kluge, and probably won't work on platforms where jiffies are not 100Hz, but the RTLinux docs don't list a "timer stop" function */ rtl_setclockmode(rtl_getschedclock(), RTL_CLOCK_MODE_PERIODIC, 10000000); rtapi_data->timer_period = 0; rtapi_data->timer_running = 0; max_delay = DEFAULT_MAX_DELAY; } rtapi_mutex_give(&(rtapi_data->mutex)); #ifdef CONFIG_PROC_FS proc_clean(); #endif /* convert RTAPI_KEY to a string */ genstr(RTAPI_KEY, keystr); /* release master shared memory block */ mbuff_free(keystr, rtapi_data); rtapi_print_msg(RTAPI_MSG_INFO, "RTAPI: Exit complete\n"); return; } /*********************************************************************** * GENERAL PURPOSE FUNCTIONS * ************************************************************************/ /* all RTAPI init is done when the rtapi kernel module is insmoded. The rtapi_init() and rtapi_exit() functions simply register that another module is using the RTAPI. For other RTOSes, things might be different, especially if the RTOS does not use modules. */ int rtapi_init(const char *modname) { int n, module_id; module_data *module; /* get the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); /* find empty spot in module array */ n = 1; while ((n <= RTAPI_MAX_MODULES) && (module_array[n].state != NO_MODULE)) { n++; } if (n > RTAPI_MAX_MODULES) { /* no room */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EMFILE; } /* we have space for the module */ module_id = n; module = &(module_array[n]); /* update module data */ module->state = REALTIME; if (modname != NULL) { /* use name supplied by caller, truncating if needed */ rtapi_snprintf(module->name, RTAPI_NAME_LEN, "%s", modname); } else { /* make up a name */ rtapi_snprintf(module->name, RTAPI_NAME_LEN, "RTMOD%03d", module_id); } rtapi_data->rt_module_count++; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: module %02d loaded, name: '%s'\n", module_id, module->name); rtapi_mutex_give(&(rtapi_data->mutex)); return module_id; } int rtapi_exit(int module_id) { int retval; rtapi_mutex_get(&(rtapi_data->mutex)); retval = module_delete(module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return retval; } static int module_delete(int module_id) { module_data *module; char name[RTAPI_NAME_LEN + 1]; int n; /* validate module ID */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { return -EINVAL; } /* point to the module's data */ module = &(module_array[module_id]); /* check module status */ if (module->state != REALTIME) { /* not an active realtime module */ return -EINVAL; } /* clean up any mess left behind by the module */ for (n = 1; n <= RTAPI_MAX_TASKS; n++) { if ((task_array[n].state != EMPTY) && (task_array[n].owner == module_id)) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: module '%s' failed to delete task %02d\n", module->name, n); task_delete(n); } } for (n = 1; n <= RTAPI_MAX_SHMEMS; n++) { if (test_bit(module_id, shmem_array[n].bitmap)) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: module '%s' failed to delete shmem %02d\n", module->name, n); shmem_delete(n, module_id); } } for (n = 1; n <= RTAPI_MAX_SEMS; n++) { if (test_bit(module_id, sem_array[n].bitmap)) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: module '%s' failed to delete sem %02d\n", module->name, n); sem_delete(n, module_id); } } for (n = 1; n <= RTAPI_MAX_FIFOS; n++) { if ((fifo_array[n].reader == module_id) || (fifo_array[n].writer == module_id)) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: module '%s' failed to delete fifo %02d\n", module->name, n); fifo_delete(n, module_id); } } for (n = 1; n <= RTAPI_MAX_IRQS; n++) { if (irq_array[n].owner == module_id) { rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: module '%s' failed to delete handler for IRQ %d\n", module->name, irq_array[n].irq_num); irq_delete(irq_array[n].irq_num); } } /* use snprintf() to do strncpy(), since we don't have string.h */ rtapi_snprintf(name, RTAPI_NAME_LEN, "%s", module->name); /* update module data */ module->state = NO_MODULE; module->name[0] = '\0'; rtapi_data->rt_module_count--; if (rtapi_data->rt_module_count == 0) { if (rtapi_data->timer_running != 0) { /* in RTLinux, you can't really stop the timer. Since no realtime task needs it running, we set it to 10mS, and it serves as the Linux jiffies clock. This seems like a kluge, and probably won't work on platforms where jiffies are not 100Hz, but the RTLinux docs don't list a "timer stop" function */ rtl_setclockmode(rtl_getschedclock(), RTL_CLOCK_MODE_PERIODIC, 10000000); rtapi_data->timer_period = 0; max_delay = DEFAULT_MAX_DELAY; rtapi_data->timer_running = 0; } } rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: module exit: ID: %d, name: '%s'\n", module_id, name); return 0; } int rtapi_vsnprintf(char *buf, unsigned long int size, const char *fmt, va_list ap) { return vsn_printf(buf, size, fmt, ap); } int rtapi_snprintf(char *buf, unsigned long int size, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); /* call our own vsn_printf(), which is #defined to vsnprintf() if the kernel supplies one. */ i = vsn_printf(buf, size, fmt, args); va_end(args); return i; } #define BUFFERLEN 1024 void default_rtapi_msg_handler(msg_level_t *level, char *buffer) { rt_printk(buffer); } static rtapi_msg_handler_t rtapi_msg_handler = default_rtapi_msg_handler; rtapi_msg_handler_t rtapi_get_msg_handler(void) { return rtapi_msg_handler; } void rtapi_set_msg_handler(rtapi_msg_handler_t handler) { if(handler == NULL) rtapi_msg_handler = default_rtapi_msg_handler; else rtapi_msg_handler = handler; } void rtapi_print(const char *fmt, ...) { char buffer[BUFFERLEN]; va_list args; va_start(args, fmt); /* call our own vsn_printf(), which is #defined to vsnprintf() if the kernel supplies one. */ vsn_printf(buffer, BUFFERLEN, fmt, args); rtapi_msg_handler(RTAPI_MSG_ALL, buffer); va_end(args); } void rtapi_print_msg(int level, const char *fmt, ...) { char buffer[BUFFERLEN]; va_list args; if ((level <= msg_level) && (msg_level != RTAPI_MSG_NONE)) { va_start(args, fmt); /* call our own vsn_printf(), which is #defined to vsnprintf() if the kernel supplies one. */ vsn_printf(buffer, BUFFERLEN, fmt, args); rtapi_msg_handler(level, buffer); va_end(args); } } int rtapi_set_msg_level(int level) { if ((level < RTAPI_MSG_NONE) || (level > RTAPI_MSG_ALL)) { return -EINVAL; } msg_level = level; return 0; } int rtapi_get_msg_level(void) { return msg_level; } /*********************************************************************** * CLOCK RELATED FUNCTIONS * ************************************************************************/ long int rtapi_clock_set_period(long int nsecs) { struct timespec res; if (nsecs == 0) { /* it's a query, not a command */ return rtapi_data->timer_period; } if (rtapi_data->timer_running) { /* already started, can't restart */ return -EINVAL; } /* limit period to 2 micro-seconds min, 10 milli-second max (RTLinux limit) */ if ((nsecs < 2000) || (nsecs > 10000000L)) { rtapi_print_msg(RTAPI_MSG_ERR, "RTAPI: ERR: clock_set_period: %ld nsecs, out of range\n", nsecs); return -EINVAL; } rtl_setclockmode(rtl_getschedclock(), RTL_CLOCK_MODE_PERIODIC, nsecs); /* This _should_ return the actual time set, but... Does it ? */ clock_getres(rtl_getschedclock(), &res); rtapi_data->timer_period = timespec_to_ns(&res); rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: clock_set_period requested: %ld actual: %ld\n", nsecs, rtapi_data->timer_period); rtapi_data->timer_running = 1; max_delay = rtapi_data->timer_period / 4; return rtapi_data->timer_period; } long long int rtapi_get_time(void) { return gethrtime(); } long long int rtapi_get_clocks(void) { long long int retval; rdtscll(retval); return retval; } void rtapi_delay(long int nsec) { if (nsec > max_delay) { nsec = max_delay; } udelay(nsec / 1000); } long int rtapi_delay_max(void) { return max_delay; } /*********************************************************************** * TASK RELATED FUNCTIONS * ************************************************************************/ /* Priority functions. RTL uses 0 as the highest priority, as the number increases, the actual priority of the task increases. */ /* RTLinux has LOTS of different priorities - The highest seems to be 1000000! I don't want such ugly numbers, and we only need a few levels, so we use 0xFFF (4095) instead */ int rtapi_prio_highest(void) { return 0xFFF; } int rtapi_prio_lowest(void) { return 0; } int rtapi_prio_next_higher(int prio) { /* return a valid priority for out of range arg */ if (prio >= rtapi_prio_highest()) { return rtapi_prio_highest(); } if (prio < rtapi_prio_lowest()) { return rtapi_prio_lowest(); } /* return next higher priority for in-range arg */ return prio + 1; } int rtapi_prio_next_lower(int prio) { /* return a valid priority for out of range arg */ if (prio <= rtapi_prio_lowest()) { return rtapi_prio_lowest(); } if (prio > rtapi_prio_highest()) { return rtapi_prio_highest(); } /* return next lower priority for in-range arg */ return prio - 1; } /* We define taskcode as taking a void pointer and returning void, but pthread wants it to take a void pointer and return a void pointer. We solve this with a wrapper function that meets pthread's needs. The wrapper functions also properly deals with tasks that return. (Most tasks are infinite loops, and don't return.) */ static void *wrapper(void *wrapper_arg) { int task_id; task_data *task; /* argument is actually an int, containing the task ID */ task_id = (int) wrapper_arg; /* point to the task data */ task = &task_array[task_id]; /* This wrapper starts executing as soon as the thread is created because RTLinux does not wait for a task_start call. So the wrapper must suspend itself right away. Then task_start or task_resume can be used to start the task when desired. */ task->state = PAUSED; pthread_suspend_np(ostask_array[task_id]); /* when pthread_suspend_np() returns, it means that the task has been started, so call the task function with the task argument */ (task->taskcode) (task->arg); /* if the task ever returns, we record that fact */ task->state = ENDED; /* and return to end the thread */ return NULL; } int rtapi_task_new(void (*taskcode) (void *), void *arg, int prio, int owner, unsigned long int stacksize, int uses_fp) { int n; int task_id; int retval = 0; task_data *task; pthread_attr_t attr; struct sched_param sched_param; /* get the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); /* validate owner */ if ((owner < 1) || (owner > RTAPI_MAX_MODULES)) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } if (module_array[owner].state != REALTIME) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* find empty spot in task array */ n = 1; while ((n <= RTAPI_MAX_TASKS) && (task_array[n].state != EMPTY)) { n++; } if (n > RTAPI_MAX_TASKS) { /* no room */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EMFILE; } /* we have space for the task */ task_id = n; task = &(task_array[n]); /* check requested priority */ if ((prio > rtapi_prio_highest()) || (prio < rtapi_prio_lowest())) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* set up task attributes */ retval = pthread_attr_init(&attr); if (retval != 0) { return -ENOMEM; } attr.stack_size = stacksize; sched_param.sched_priority = prio; retval = pthread_attr_setschedparam(&attr, &sched_param); if (retval != 0) { return -EINVAL; } /* use pre-determined CPU for RT tasks */ pthread_attr_setcpu_np(&attr, rtapi_data->rt_cpu); pthread_attr_setfp_np(&attr, uses_fp); task->taskcode = taskcode; task->arg = arg; /* call OS to initialize the task - use the wrapper function, passing it the task ID so it can call the actual task function */ retval = pthread_create(&(ostask_array[task_id]), &attr, wrapper, (void *) task_id); if (retval != 0) { /* create failed, free task data memory */ rtapi_mutex_give(&(rtapi_data->mutex)); if (retval == ENOMEM) { /* not enough space for stack */ return -ENOMEM; } /* unknown error */ return -EINVAL; } /* create worked, set scheduling policy */ pthread_setschedparam(ostask_array[task_id], SCHED_FIFO, &sched_param); /* the task has been created, update data */ task->state = PAUSED; task->prio = prio; task->owner = owner; rtapi_data->task_count++; /* announce the birth of a brand new baby task */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: task %02d installed by module %02d, priority %d, code: %p\n", task_id, task->owner, task->prio, taskcode); /* and return the ID to the proud parent */ rtapi_mutex_give(&(rtapi_data->mutex)); return task_id; } int rtapi_task_delete(int task_id) { int retval = 0; rtapi_mutex_get(&(rtapi_data->mutex)); retval = task_delete(task_id); rtapi_mutex_give(&(rtapi_data->mutex)); return retval; } static int task_delete(int task_id) { task_data *task; /* validate task ID */ if ((task_id < 1) || (task_id > RTAPI_MAX_TASKS)) { return -EINVAL; } /* point to the task's data */ task = &(task_array[task_id]); /* check task status */ if (task->state == EMPTY) { /* nothing to delete */ return -EINVAL; } if ((task->state == PERIODIC) || (task->state == FREERUN)) { /* task is running, need to stop it */ rtapi_print_msg(RTAPI_MSG_WARN, "RTAPI: WARNING: tried to delete task %02d while running\n", task_id); pthread_suspend_np(ostask_array[task_id]); task->state = PAUSED; } /* get rid of task - delete may be more robust than cancel/join */ pthread_delete_np(ostask_array[task_id]); /* update data */ task->state = EMPTY; task->prio = 0; task->owner = 0; task->taskcode = NULL; ostask_array[task_id] = NULL; rtapi_data->task_count--; /* if no more tasks, stop the timer */ if (rtapi_data->task_count == 0) { if (rtapi_data->timer_running != 0) { /* in RTLinux, you can't really stop the timer. Since no realtime task needs it running, we set it to 10mS, and it serves as the Linux jiffies clock. This seems like a kluge, and probably won't work on platforms where jiffies are not 100Hz, but the RTLinux docs don't list a "timer stop" function */ rtl_setclockmode(rtl_getschedclock(), RTL_CLOCK_MODE_PERIODIC, 10000000); rtapi_data->timer_period = 0; max_delay = DEFAULT_MAX_DELAY; rtapi_data->timer_running = 0; } } /* done */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: task %02d deleted\n", task_id); return 0; } int rtapi_task_start(int task_id, unsigned long int period_nsec) { int retval = 0; unsigned long int quo, rem; task_data *task; /* validate task ID */ if ((task_id < 1) || (task_id > RTAPI_MAX_TASKS)) { return -EINVAL; } /* point to the task's data */ task = &(task_array[task_id]); /* is task ready to be started? */ if (task->state != PAUSED) { return -EINVAL; } /* can't start periodic tasks if timer isn't running */ if ((rtapi_data->timer_running == 0) || (rtapi_data->timer_period == 0)) { return -EINVAL; } /* make period_nsec an integer multiple of timer_period */ quo = period_nsec / rtapi_data->timer_period; rem = period_nsec - (quo * rtapi_data->timer_period); /* round to nearest */ if (rem > (rtapi_data->timer_period / 2)) { quo++; } /* must be at least 1 * timer_period */ if (quo == 0) { quo = 1; } period_nsec = quo * rtapi_data->timer_period; /* start the task */ retval = pthread_make_periodic_np(ostask_array[task_id], gethrtime(), (hrtime_t) period_nsec); if (retval != 0) { return -EINVAL; } /* ok, task is started */ task->state = PERIODIC; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: start_task id: %02d\n", task_id); return retval; } void rtapi_wait(void) { pthread_wait_np(); } int rtapi_task_resume(int task_id) { int retval = 0; task_data *task; /* validate task ID */ if ((task_id < 1) || (task_id > RTAPI_MAX_TASKS)) { return -EINVAL; } /* point to the task's data */ task = &(task_array[task_id]); /* is task ready to be started? */ if (task->state != PAUSED) { return -EINVAL; } /* start the task */ retval = pthread_wakeup_np(ostask_array[task_id]); if (retval != 0) { return -EINVAL; } /* update task data */ task->state = FREERUN; return 0; } int rtapi_task_pause(int task_id) { int retval = 0; int oldstate; task_data *task; /* validate task ID */ if ((task_id < 1) || (task_id > RTAPI_MAX_TASKS)) { return -EINVAL; } /* point to the task's data */ task = &(task_array[task_id]); /* is it running? */ if ((task->state != PERIODIC) && (task->state != FREERUN)) { return -EINVAL; } /* pause the task */ oldstate = task->state; task->state = PAUSED; retval = pthread_suspend_np(ostask_array[task_id]); if (retval != 0) { task->state = oldstate; return -EINVAL; } /* update task data */ return 0; } int rtapi_task_self(void) { pthread_t ptr; int n; /* ask OS for pointer to its data for the current task */ ptr = pthread_self(); if (ptr == NULL) { /* called from outside a task? */ return -EINVAL; } /* find matching entry in task array */ n = 1; while (n <= RTAPI_MAX_TASKS) { if (ostask_array[n] == ptr) { /* found a match */ return n; } n++; } return -EINVAL; } /*********************************************************************** * SHARED MEMORY RELATED FUNCTIONS * ************************************************************************/ int rtapi_shmem_new(int key, int module_id, unsigned long int size) { int n; int shmem_id; shmem_data *shmem; char keystr[KEYSTR_LEN]; /* key must be non-zero, and also cannot match the key that RTAPI uses */ if ((key == 0) || (key == RTAPI_KEY)) { return -EINVAL; } /* convert the key to a string */ genstr((unsigned int) key, keystr); /* get the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); /* validate module_id */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } if (module_array[module_id].state != REALTIME) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* check if a block is already open for this key */ for (n = 1; n <= RTAPI_MAX_SHMEMS; n++) { if (shmem_array[n].key == key) { /* found a match */ shmem_id = n; shmem = &(shmem_array[n]); /* is it big enough? */ if (shmem->size < size) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* yes, has it been mapped into kernel space? */ if (shmem->rtusers == 0) { /* no, map it and save the address */ /* convert the key to a string */ genstr((unsigned int) key, keystr); shmem_addr_array[shmem_id] = mbuff_alloc(keystr, shmem->size); if (shmem_addr_array[shmem_id] == NULL) { rtapi_mutex_give(&(rtapi_data->mutex)); return -ENOMEM; } } /* is this module already using it? */ if (test_bit(module_id, shmem->bitmap)) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* update usage data */ set_bit(module_id, shmem->bitmap); shmem->rtusers++; /* announce another user for this shmem */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: shmem %02d opened by module %02d\n", shmem_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return shmem_id; } } /* find empty spot in shmem array */ n = 1; while ((n <= RTAPI_MAX_SHMEMS) && (shmem_array[n].key != 0)) { n++; } if (n > RTAPI_MAX_SHMEMS) { /* no room */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EMFILE; } /* we have space for the block data */ shmem_id = n; shmem = &(shmem_array[n]); /* convert the key to a string */ genstr((unsigned int) key, keystr); /* get shared memory block from OS and save its address */ shmem_addr_array[shmem_id] = mbuff_alloc(keystr, size); if (shmem_addr_array[shmem_id] == NULL) { rtapi_mutex_give(&(rtapi_data->mutex)); return -ENOMEM; } /* the block has been created, update data */ set_bit(module_id, shmem->bitmap); shmem->key = key; shmem->rtusers = 1; shmem->ulusers = 0; shmem->size = size; rtapi_data->shmem_count++; /* zero the first word of the shmem area */ *((long int *)(shmem_addr_array[shmem_id])) = 0; /* announce the birth of a brand new baby shmem */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: shmem %02d created by module %02d, key: %d, size: %lu\n", shmem_id, module_id, key, size); /* and return the ID to the proud parent */ rtapi_mutex_give(&(rtapi_data->mutex)); return shmem_id; } int rtapi_shmem_delete(int shmem_id, int module_id) { int retval; rtapi_mutex_get(&(rtapi_data->mutex)); retval = shmem_delete(shmem_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return retval; } static int shmem_delete(int shmem_id, int module_id) { shmem_data *shmem; char keystr[KEYSTR_LEN]; /* validate shmem ID */ if ((shmem_id < 1) || (shmem_id > RTAPI_MAX_SHMEMS)) { return -EINVAL; } /* point to the shmem's data */ shmem = &(shmem_array[shmem_id]); /* is the block valid? */ if (shmem->key == 0) { return -EINVAL; } /* validate module_id */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { return -EINVAL; } if (module_array[module_id].state != REALTIME) { return -EINVAL; } /* is this module using the block? */ if (test_bit(module_id, shmem->bitmap) == 0) { return -EINVAL; } /* OK, we're no longer using it */ clear_bit(module_id, shmem->bitmap); shmem->rtusers--; /* is somebody else still using the block? */ if (shmem->rtusers > 0) { /* yes, we're done for now */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: shmem %02d closed by module %02d\n", shmem_id, module_id); return 0; } /* convert the key to a string */ genstr(shmem->key, keystr); /* no other realtime users, free the shared memory from kernel space */ mbuff_free(keystr, shmem_addr_array[shmem_id]); shmem_addr_array[shmem_id] = NULL; shmem->rtusers = 0; /* are any user processes using the block? */ if (shmem->ulusers > 0) { /* yes, we're done for now */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: shmem %02d unmapped by module %02d\n", shmem_id, module_id); return 0; } /* no other users at all, this ID is now free */ /* update the data array and usage count */ shmem->key = 0; shmem->size = 0; rtapi_data->shmem_count--; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: shmem %02d freed by module %02d\n", shmem_id, module_id); return 0; } int rtapi_shmem_getptr(int shmem_id, void **ptr) { /* validate shmem ID */ if ((shmem_id < 1) || (shmem_id > RTAPI_MAX_SHMEMS)) { return -EINVAL; } /* is the block mapped? */ if (shmem_addr_array[shmem_id] == NULL) { return -EINVAL; } /* pass memory address back to caller */ *ptr = shmem_addr_array[shmem_id]; return 0; } /*********************************************************************** * SEMAPHORE RELATED FUNCTIONS * ************************************************************************/ int rtapi_sem_new(int key, int module_id) { int n; int sem_id; sem_data *sem; /* key must be non-zero */ if (key == 0) { return -EINVAL; } /* get the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); /* validate module_id */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } if (module_array[module_id].state != REALTIME) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* check if a semaphore already exists for this key */ for (n = 1; n <= RTAPI_MAX_SEMS; n++) { if ((sem_array[n].users > 0) && (sem_array[n].key == key)) { /* found a match */ sem_id = n; sem = &(sem_array[n]); /* is this module already using it? */ if (test_bit(module_id, sem->bitmap)) { /* yes, can't open it again */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* update usage data */ set_bit(module_id, sem->bitmap); sem->users++; /* announce another user for this semaphore */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: sem %02d opened by module %02d\n", sem_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return sem_id; } } /* find empty spot in sem array */ n = 1; while ((n <= RTAPI_MAX_SEMS) && (sem_array[n].users != 0)) { n++; } if (n > RTAPI_MAX_SEMS) { /* no room */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EMFILE; } /* we have space for the semaphore */ sem_id = n; sem = &(sem_array[n]); /* ask the OS to initialize the semaphore */ sem_init(&(ossem_array[sem_id]), 0, 0); /* the semaphore has been created, update data */ set_bit(module_id, sem->bitmap); sem->users = 1; sem->key = key; rtapi_data->sem_count++; /* announce the birth of a brand new baby semaphore */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: sem %02d created by module %02d, key: %d\n", sem_id, module_id, key); /* and return the ID to the proud parent */ rtapi_mutex_give(&(rtapi_data->mutex)); return sem_id; } int rtapi_sem_delete(int sem_id, int module_id) { int retval; rtapi_mutex_get(&(rtapi_data->mutex)); retval = sem_delete(sem_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return retval; } static int sem_delete(int sem_id, int module_id) { sem_data *sem; /* validate sem ID */ if ((sem_id < 1) || (sem_id > RTAPI_MAX_SEMS)) { return -EINVAL; } /* point to the semaphores's data */ sem = &(sem_array[sem_id]); /* is the semaphore valid? */ if (sem->users == 0) { return -EINVAL; } /* validate module_id */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { return -EINVAL; } if (module_array[module_id].state != REALTIME) { return -EINVAL; } /* is this module using the semaphore? */ if (test_bit(module_id, sem->bitmap) == 0) { return -EINVAL; } /* OK, we're no longer using it */ clear_bit(module_id, sem->bitmap); sem->users--; /* is somebody else still using the semaphore */ if (sem->users > 0) { /* yes, we're done for now */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: sem %02d closed by module %02d\n", sem_id, module_id); return 0; } /* no other users, ask the OS to shut down the semaphore */ sem_destroy(&(ossem_array[sem_id])); /* update the data array and usage count */ sem->users = 0; sem->key = 0; rtapi_data->sem_count--; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: sem %02d deleted by module %02d\n", sem_id, module_id); return 0; } int rtapi_sem_give(int sem_id) { sem_data *sem; /* validate sem ID */ if ((sem_id < 1) || (sem_id > RTAPI_MAX_SEMS)) { return -EINVAL; } /* point to the semaphores's data */ sem = &(sem_array[sem_id]); /* is the semaphore valid? */ if (sem->users == 0) { return -EINVAL; } /* give up the semaphore */ sem_post(&(ossem_array[sem_id])); return 0; } int rtapi_sem_take(int sem_id) { sem_data *sem; /* validate sem ID */ if ((sem_id < 1) || (sem_id > RTAPI_MAX_SEMS)) { return -EINVAL; } /* point to the semaphores's data */ sem = &(sem_array[sem_id]); /* is the semaphore valid? */ if (sem->users == 0) { return -EINVAL; } /* get the semaphore */ sem_wait(&(ossem_array[sem_id])); return 0; } int rtapi_sem_try(int sem_id) { sem_data *sem; /* validate sem ID */ if ((sem_id < 1) || (sem_id > RTAPI_MAX_SEMS)) { return -EINVAL; } /* point to the semaphores's data */ sem = &(sem_array[sem_id]); /* is the semaphore valid? */ if (sem->users == 0) { return -EINVAL; } /* try the semaphore */ if (sem_trywait(&(ossem_array[sem_id])) <= 0) { return -EBUSY; } return 0; } /*********************************************************************** * FIFO RELATED FUNCTIONS * ************************************************************************/ int rtapi_fifo_new(int key, int module_id, unsigned long int size, char mode) { int n, retval; int fifo_id; fifo_data *fifo; /* key must be non-zero */ if (key == 0) { return -EINVAL; } /* mode must be "R" or "W" */ if ((mode != 'R') && (mode != 'W')) { return -EINVAL; } /* get the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); /* validate module_id */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } if (module_array[module_id].state != REALTIME) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* check if a fifo already exists for this key */ for (n = 1; n <= RTAPI_MAX_FIFOS; n++) { if ((fifo_array[n].state != UNUSED) && (fifo_array[n].key == key)) { /* found a match */ fifo_id = n; fifo = &(fifo_array[n]); /* is the desired mode available */ if (mode == 'R') { if (fifo->state & HAS_READER) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EBUSY; } /* available, update status */ fifo->state |= HAS_READER; fifo->reader = module_id; /* announce */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: fifo %02d opened for read by module %02d\n", fifo_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return fifo_id; } else { /* mode == 'W' */ if (fifo->state & HAS_WRITER) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EBUSY; } /* available, update status */ fifo->state |= HAS_WRITER; fifo->writer = module_id; /* announce */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: fifo %02d opened for write by module %02d\n", fifo_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return fifo_id; } } } /* find empty spot in fifo array */ n = 1; while ((n <= RTAPI_MAX_FIFOS) && (fifo_array[n].state != UNUSED)) { n++; } if (n > RTAPI_MAX_FIFOS) { /* no room */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EMFILE; } /* we have a free ID for the fifo */ fifo_id = n; fifo = &(fifo_array[n]); /* create the fifo */ retval = rtf_create(fifo_id, size); /* rtf_create() returns 0 on success */ if (retval != 0) { /* create failed */ rtapi_mutex_give(&(rtapi_data->mutex)); if (retval == ENOMEM) { /* couldn't allocate memory */ return -ENOMEM; } /* some other failure */ return -EINVAL; } /* the fifo has been created, update data */ if (mode == 'R') { fifo->state = HAS_READER; fifo->reader = module_id; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: fifo %02d created for read by module %02d, key: %d, size: %ld\n", fifo_id, module_id, key, size); } else { /* mode == 'W' */ fifo->state = HAS_WRITER; fifo->writer = module_id; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: fifo %02d created for write by module %02d, key: %d, size: %ld\n", fifo_id, module_id, key, size); } fifo->key = key; fifo->size = size; rtapi_data->fifo_count++; /* and return the ID */ rtapi_mutex_give(&(rtapi_data->mutex)); return fifo_id; } int rtapi_fifo_delete(int fifo_id, int module_id) { int retval; rtapi_mutex_get(&(rtapi_data->mutex)); retval = fifo_delete(fifo_id, module_id); rtapi_mutex_give(&(rtapi_data->mutex)); return retval; } static int fifo_delete(int fifo_id, int module_id) { fifo_data *fifo; /* validate fifo ID */ if ((fifo_id < 1) || (fifo_id > RTAPI_MAX_FIFOS)) { return -EINVAL; } /* point to the fifo's data */ fifo = &(fifo_array[fifo_id]); /* is the fifo valid? */ if (fifo->state == UNUSED) { return -EINVAL; } /* validate module_id */ if ((module_id < 1) || (module_id > RTAPI_MAX_MODULES)) { return -EINVAL; } if (module_array[module_id].state != REALTIME) { return -EINVAL; } /* is this module using the fifo? */ if ((fifo->reader != module_id) && (fifo->writer != module_id)) { return -EINVAL; } /* update fifo state */ if (fifo->reader == module_id) { fifo->state &= ~HAS_READER; fifo->reader = 0; } if (fifo->writer == module_id) { fifo->state &= ~HAS_WRITER; fifo->writer = 0; } /* is somebody else still using the fifo */ if (fifo->state != UNUSED) { /* yes, done for now */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: fifo %02d closed by module %02d\n", fifo_id, module_id); return 0; } /* no other users, call the OS to destroy the fifo */ /* OS returns open count, loop until truly destroyed */ while (rtf_destroy(fifo_id) > 0); /* update the data array and usage count */ fifo->state = UNUSED; fifo->key = 0; fifo->size = 0; rtapi_data->fifo_count--; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: fifo %02d deleted by module %02d\n", fifo_id, module_id); return 0; } int rtapi_fifo_read(int fifo_id, char *buf, unsigned long int size) { int retval; fifo_data *fifo; /* validate fifo ID */ if ((fifo_id < 1) || (fifo_id > RTAPI_MAX_FIFOS)) { return -EINVAL; } /* point to the fifo's data */ fifo = &(fifo_array[fifo_id]); /* is the fifo valid? */ if ((fifo->state & HAS_READER) == 0) { return -EINVAL; } /* get whatever data is available */ retval = rtf_get(fifo_id, &buf, size); if (retval < 0) { return -EINVAL; } return retval; } int rtapi_fifo_write(int fifo_id, char *buf, unsigned long int size) { int retval; fifo_data *fifo; /* validate fifo ID */ if ((fifo_id < 1) || (fifo_id > RTAPI_MAX_FIFOS)) { return -EINVAL; } /* point to the fifo's data */ fifo = &(fifo_array[fifo_id]); /* is the fifo valid? */ if ((fifo->state & HAS_WRITER) == 0) { return -EINVAL; } /* put as much data as possible */ retval = rtf_put(fifo_id, buf, size); if (retval < 0) { return -EINVAL; } return retval; } /*********************************************************************** * INTERRUPT RELATED FUNCTIONS * ************************************************************************/ typedef unsigned int (*handler_t) (unsigned int irq_number, struct pt_regs * p); int rtapi_irq_new(unsigned int irq_num, int owner, void (*handler) (void)) { int n; int retval = 0; int irq_id; irq_data *irq; /* validate irq */ if ((irq_num < 1) || (irq_num > 255)) { return -EINVAL; } /* validate handler */ if (handler == NULL) { return -EINVAL; } /* get the mutex */ rtapi_mutex_get(&(rtapi_data->mutex)); /* validate owner */ if ((owner < 1) || (owner > RTAPI_MAX_MODULES)) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } if (module_array[owner].state != REALTIME) { rtapi_mutex_give(&(rtapi_data->mutex)); return -EINVAL; } /* check if a handler already exists for this irq */ for (n = 1; n <= RTAPI_MAX_IRQS; n++) { if (irq_array[n].irq_num == irq_num) { /* found a match */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EBUSY; } } /* find empty spot in irq array */ n = 1; while ((n <= RTAPI_MAX_IRQS) && (irq_array[n].irq_num != 0)) { n++; } if (n > RTAPI_MAX_IRQS) { /* no room */ rtapi_mutex_give(&(rtapi_data->mutex)); return -EMFILE; } /* we have space for the irq */ irq_id = n; irq = &(irq_array[n]); /* install the handler */ retval = rtl_request_irq(irq_num, (handler_t) handler); if (retval != 0) { rtapi_mutex_give(&(rtapi_data->mutex)); if (retval == EBUSY) { return -EBUSY; } else { return -EINVAL; } } /* update data */ irq->irq_num = irq_num; irq->owner = owner; irq->handler = handler; rtapi_data->irq_count++; /* announce the new interrupt handler */ rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: handler for IRQ %d installed by module %02d\n", irq_num, owner); /* and return success */ rtapi_mutex_give(&(rtapi_data->mutex)); return 0; } int rtapi_irq_delete(unsigned int irq_num) { int retval; rtapi_mutex_get(&(rtapi_data->mutex)); retval = irq_delete(irq_num); rtapi_mutex_give(&(rtapi_data->mutex)); return retval; } static int irq_delete(unsigned int irq_num) { int n; int retval = 0; int irq_id; int old_irq_state; irq_data *irq; /* validate irq */ if ((irq_num < 1) || (irq_num > 255)) { return -EINVAL; } /* check if a handler exists for this irq */ n = 1; while ((n <= RTAPI_MAX_IRQS) && (irq_array[n].irq_num != irq_num)) { n++; } if (n > RTAPI_MAX_IRQS) { /* not found */ return -EINVAL; } /* found the irq */ irq_id = n; irq = &(irq_array[n]); /* disable interrupts */ rtl_no_interrupts(old_irq_state); /* get rid of the handler */ retval = rtl_free_irq(irq_num); /* re-enable interrupts */ rtl_restore_interrupts(old_irq_state); if (retval != 0) { return -EINVAL; } /* update data */ irq->irq_num = 0; irq->owner = 0; irq->handler = NULL; rtapi_data->irq_count--; rtapi_print_msg(RTAPI_MSG_DBG, "RTAPI: handler for IRQ %d deleted\n", irq_num); return 0; } int rtapi_enable_interrupt(unsigned int irq) { rtl_hard_enable_irq(irq); return 0; } int rtapi_disable_interrupt(unsigned int irq) { rtl_hard_disable_irq(irq); return 0; } /*********************************************************************** * I/O RELATED FUNCTIONS * ************************************************************************/ void rtapi_outb(unsigned char byte, unsigned int port) { outb(byte, port); } unsigned char rtapi_inb(unsigned int port) { return inb(port); } /*export necessary function symbol*/ EXPORT_SYMBOL(rtapi_init); EXPORT_SYMBOL(rtapi_exit); EXPORT_SYMBOL(rtapi_task_new); EXPORT_SYMBOL(rtapi_prio_next_lower); EXPORT_SYMBOL(rtapi_prio_highest); EXPORT_SYMBOL(rtapi_vsnprintf); EXPORT_SYMBOL(rtapi_wait); EXPORT_SYMBOL(rtapi_task_pause); EXPORT_SYMBOL(rtapi_clock_set_period); EXPORT_SYMBOL(rtapi_print_msg); EXPORT_SYMBOL(rtapi_shmem_getptr); EXPORT_SYMBOL(rtapi_get_clocks); EXPORT_SYMBOL(rtapi_shmem_delete); EXPORT_SYMBOL(rtapi_task_delete); EXPORT_SYMBOL(rtapi_shmem_new); EXPORT_SYMBOL(rtapi_snprintf); EXPORT_SYMBOL(rtapi_task_start); EXPORT_SYMBOL(rtapi_set_msg_handler); EXPORT_SYMBOL(rtapi_get_msg_handler); EXPORT_SYMBOL(rtapi_set_msg_level); EXPORT_SYMBOL(rtapi_get_msg_level); EXPORT_SYMBOL(rtapi_get_time); EXPORT_SYMBOL(rtapi_print);
yishinli/emc2
src/rtapi/rtl_rtapi.c
C
lgpl-2.1
51,380
[ 30522, 1013, 1008, 1008, 19387, 9331, 2072, 2003, 1037, 3075, 4346, 1037, 6375, 17928, 2005, 2195, 2613, 2051, 4082, 3001, 30524, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 6412, 1024, 19387, 2140, 1035, 19387, 9331, 2072, 1012, 1039, 1008, 2023, 5371, 1010, 1005, 19387, 2140, 1035, 19387, 9331, 2072, 1012, 1039, 1005, 1010, 22164, 1996, 2613, 7292, 1008, 4664, 1997, 1996, 17928, 2005, 1996, 19387, 4115, 5602, 4132, 1012, 1008, 1008, 3166, 1024, 2198, 10556, 19729, 7033, 1010, 2703, 3420, 1008, 6105, 1024, 14246, 2140, 2544, 1016, 1008, 1008, 9385, 1006, 1039, 1007, 2432, 2035, 2916, 9235, 1012, 1008, 1008, 2197, 2689, 1024, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 1008, 1008, 2023, 5371, 1010, 1005, 19387, 2140, 1035, 19387, 9331, 2072, 1012, 1039, 1005, 1010, 22164, 1996, 2613, 7292, 4664, 1997, 1996, 17928, 2005, 1996, 19387, 4115, 5602, 4132, 1012, 1996, 17928, 2003, 4225, 1999, 19387, 9331, 2072, 1012, 1044, 1010, 2029, 2950, 12653, 2005, 2035, 1997, 1996, 17928, 4972, 1012, 1996, 2512, 1011, 2613, 1011, 2051, 4664, 1997, 1996, 17928, 2003, 7528, 1999, 19387, 2140, 1035, 17359, 9331, 2072, 1012, 1039, 1006, 2005, 1996, 19387, 4115, 5602, 4132, 1007, 1012, 2023, 7375, 4740, 2000, 4652, 16293, 6634, 2015, 1010, 1005, 1051, 11923, 1005, 9686, 1010, 1998, 2060, 11808, 4933, 2008, 2064, 4148, 2043, 3015, 1998, 5604, 2613, 7292, 3642, 1012, 11210, 2825, 1010, 2691, 10697, 2024, 11156, 1998, 13371, 2077, 2027, 2064, 3426, 1037, 5823, 1012, 2023, 7375, 2036, 2950, 2195, 1013, 4013, 2278, 6764, 27268, 6633, 10445, 1998, 3365, 2139, 8569, 12588, 6140, 8635, 1012, 1008, 1013, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2494, 2198, 10556, 19729, 7033, 1026, 1046, 2213, 13716, 19496, 2818, 2012, 5198, 11089, 3120, 29278, 3351, 11089, 5658, 1028, 9385, 1006, 1039, 1007, 2494, 2703, 3420, 1026, 2703, 1035, 1039, 2012, 5198, 11089, 3120, 29278, 3351, 11089, 5658, 1028, 2023, 3075, 2003, 2241, 2006, 2544, 1015, 1012, 1014, 1010, 2029, 2001, 2207, 2046, 1996, 2270, 5884, 2011, 2049, 3166, 1010, 5965, 28770, 1012, 4283, 5965, 999, 1008, 1013, 1013, 1008, 2023, 3075, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 30523, 1012, 2004, 1997, 2310, 2099, 1016, 1012, 1014, 1010, 19387, 4115, 5602, 1998, 19387, 4886, 2024, 3569, 1012, 1008, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 2004, 1997, 2310, 2099, 1016, 1012, 1014, 1010, 19387, 4115, 5602, 1998, 19387, 4886, 2024, 3569, 1012, 1008, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
// Copyright (c) 2011 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. #ifndef CONTENT_COMMON_QUOTA_DISPATCHER_H_ #define CONTENT_COMMON_QUOTA_DISPATCHER_H_ #include <map> #include <set> #include "base/basictypes.h" #include "base/id_map.h" #include "ipc/ipc_channel.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h" class GURL; namespace IPC { class Message; } namespace WebKit { class WebStorageQuotaCallbacks; } // Dispatches and sends quota related messages sent to/from a child // process from/to the main browser process. There is one instance // per child process. Messages are dispatched on the main child thread. class QuotaDispatcher : public IPC::Channel::Listener { public: QuotaDispatcher(); ~QuotaDispatcher(); // IPC::Channel::Listener implementation. virtual bool OnMessageReceived(const IPC::Message& msg); void QueryStorageUsageAndQuota(const GURL& gurl, WebKit::WebStorageQuotaType type, WebKit::WebStorageQuotaCallbacks* callbacks); void RequestStorageQuota(const GURL& gurl, WebKit::WebStorageQuotaType type, unsigned long long requested_size, WebKit::WebStorageQuotaCallbacks* callbacks); private: // Message handlers. void DidQueryStorageUsageAndQuota(int request_id, int64 current_usage, int64 current_quota); void DidGrantStorageQuota(int request_id, int64 granted_quota); void DidFail(int request_id, WebKit::WebStorageQuotaError error); IDMap<WebKit::WebStorageQuotaCallbacks> pending_quota_callbacks_; DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher); }; #endif // CONTENT_COMMON_QUOTA_DISPATCHER_H_
meego-tablet-ux/meego-app-browser
content/common/quota_dispatcher.h
C
bsd-3-clause
2,041
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 2249, 1996, 10381, 21716, 5007, 6048, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 2224, 1997, 2023, 3120, 3642, 2003, 9950, 2011, 1037, 18667, 2094, 1011, 2806, 6105, 2008, 2064, 2022, 1013, 1013, 2179, 1999, 1996, 6105, 5371, 1012, 1001, 2065, 13629, 2546, 4180, 1035, 2691, 1035, 20563, 1035, 18365, 2121, 1035, 1044, 1035, 1001, 9375, 4180, 1035, 2691, 1035, 20563, 1035, 18365, 2121, 1035, 1044, 1035, 1001, 2421, 1026, 4949, 1028, 1001, 2421, 1026, 2275, 1028, 1001, 2421, 1000, 2918, 1013, 3937, 13874, 2015, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 8909, 1035, 4949, 1012, 1044, 1000, 1001, 2421, 1000, 12997, 2278, 1013, 12997, 2278, 1035, 3149, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 4773, 23615, 1013, 3120, 1013, 4773, 23615, 1013, 10381, 21716, 5007, 1013, 2270, 1013, 4773, 23809, 4270, 28940, 17287, 2121, 29165, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 4773, 23615, 1013, 3120, 1013, 4773, 23615, 1013, 10381, 21716, 5007, 1013, 2270, 1013, 4773, 23809, 4270, 28940, 17287, 13874, 1012, 1044, 1000, 2465, 19739, 12190, 1025, 3415, 15327, 12997, 2278, 1063, 2465, 4471, 1025, 1065, 3415, 15327, 4773, 23615, 1063, 2465, 4773, 23809, 4270, 28940, 17287, 9289, 20850, 8684, 2015, 1025, 1065, 1013, 1013, 18365, 2229, 1998, 10255, 20563, 3141, 7696, 2741, 2000, 1013, 2013, 1037, 2775, 1013, 1013, 2832, 2013, 1013, 30524, 19373, 1063, 2270, 1024, 20563, 10521, 4502, 10649, 2121, 1006, 1007, 1025, 1066, 20563, 10521, 4502, 10649, 2121, 1006, 1007, 1025, 1013, 1013, 12997, 2278, 1024, 1024, 3149, 1024, 1024, 19373, 7375, 1012, 7484, 22017, 2140, 2006, 7834, 3736, 4590, 26005, 3512, 2094, 1006, 9530, 3367, 12997, 2278, 1024, 1024, 4471, 1004, 5796, 2290, 1007, 1025, 11675, 23032, 23809, 4270, 10383, 3351, 5685, 28940, 17287, 1006, 9530, 3367, 19739, 12190, 1004, 19739, 12190, 1010, 4773, 23615, 1024, 1024, 4773, 23809, 4270, 28940, 17287, 13874, 2828, 1010, 4773, 23615, 1024, 1024, 4773, 23809, 4270, 28940, 17287, 9289, 20850, 8684, 2015, 1008, 2655, 12221, 1007, 1025, 11675, 11186, 4263, 4270, 28940, 17287, 1006, 9530, 3367, 19739, 12190, 1004, 19739, 12190, 1010, 4773, 23615, 1024, 1024, 4773, 23809, 4270, 28940, 17287, 13874, 2828, 1010, 27121, 2146, 2146, 7303, 1035, 2946, 1010, 4773, 23615, 1024, 1024, 4773, 23809, 4270, 28940, 17287, 9289, 20850, 8684, 2015, 1008, 2655, 12221, 1007, 1025, 2797, 1024, 1013, 1013, 4471, 28213, 2015, 1012, 11675, 2106, 4226, 24769, 4263, 4270, 10383, 3351, 5685, 28940, 17287, 1006, 20014, 5227, 1035, 8909, 1010, 20014, 21084, 2783, 1035, 8192, 1010, 20014, 21084, 2783, 1035, 20563, 1007, 1025, 11675, 2106, 27444, 4263, 4270, 28940, 17287, 1006, 20014, 5227, 1035, 8909, 1010, 20014, 21084, 4379, 1035, 20563, 1007, 1025, 11675, 2106, 7011, 4014, 1006, 20014, 5227, 1035, 8909, 1010, 4773, 23615, 1024, 1024, 4773, 23809, 30523, 2000, 1996, 2364, 16602, 2832, 1012, 2045, 2003, 2028, 6013, 1013, 1013, 2566, 2775, 2832, 1012, 7696, 2024, 14501, 2006, 1996, 2364, 2775, 11689, 1012, 2465, 20563, 10521, 4502, 10649, 2121, 1024, 2270, 12997, 2278, 1024, 1024, 3149, 1024, 1024, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2000, 1996, 2364, 16602, 2832, 1012, 2045, 2003, 2028, 6013, 1013, 1013, 2566, 2775, 2832, 1012, 7696, 2024, 14501, 2006, 1996, 2364, 2775, 11689, 1012, 2465, 20563, 10521, 4502, 10649, 2121, 1024, 2270, 12997, 2278, 1024, 1024, 3149, 1024, 1024, 30526 ]
package net.sourceforge.seqware.common.util.filetools.lock; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.nio.channels.FileLock; import java.nio.charset.StandardCharsets; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * <p> * LockingFileTools class. * </p> * * @author boconnor * @version $Id: $Id */ public class LockingFileTools { private static final Logger LOGGER = LoggerFactory.getLogger(LockingFileTools.class); private static final int RETRIES = 100; public static boolean lockAndAppend(File file, String output) { return lockAndWrite(file, output, true); } /** * Try to acquire lock. If we can, write the String to file and then release the lock * * @param file * a {@link java.io.File} object. * @param output * a {@link java.lang.String} object. * @param append * @return a boolean. */ public static boolean lockAndWrite(File file, String output, boolean append) { for (int i = 0; i < RETRIES; i++) { try { try (FileOutputStream fos = new FileOutputStream(file, append)) { FileLock fl = fos.getChannel().tryLock(); if (fl != null) { try (OutputStreamWriter fw = new OutputStreamWriter(fos, StandardCharsets.UTF_8)) { fw.append(output); fl.release(); } // LOGGER.info("LockingFileTools.lockAndWrite Locked, appended, and released for file: "+file.getAbsolutePath()+" value: "+output); return true; } else { LOGGER.info("LockingFileTools.lockAndWrite Can't get lock for " + file.getAbsolutePath() + " try number " + i + " of " + RETRIES); // sleep for 2 seconds before trying again Thread.sleep(2000); } } } catch (IOException | InterruptedException e) { LOGGER.error("LockingFileTools.lockAndWrite Attempt " + i + " Exception with LockingFileTools: " + e.getMessage(), e); } } LOGGER.error("LockingFileTools.lockAndWrite Unable to get lock for " + file.getAbsolutePath() + " gave up after " + RETRIES + " tries"); return false; } }
oicr-gsi/niassa
seqware-common/src/main/java/net/sourceforge/seqware/common/util/filetools/lock/LockingFileTools.java
Java
gpl-3.0
2,474
[ 30522, 7427, 5658, 1012, 3120, 29278, 3351, 1012, 7367, 4160, 8059, 1012, 2691, 1012, 21183, 4014, 1012, 5371, 3406, 27896, 1012, 5843, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 5833, 18780, 21422, 1025, 12324, 9262, 1012, 22834, 1012, 22834, 10288, 24422, 1025, 12324, 9262, 1012, 22834, 1012, 27852, 25379, 15994, 1025, 12324, 9262, 1012, 9152, 2080, 1012, 6833, 1012, 5371, 7878, 1025, 12324, 9262, 1012, 9152, 2080, 1012, 25869, 13462, 1012, 3115, 7507, 22573, 3215, 1025, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 1025, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 21450, 1025, 1013, 1008, 1008, 1008, 1026, 1052, 1028, 1008, 14889, 8873, 7485, 13669, 2015, 2465, 1012, 1008, 1026, 1013, 1052, 1028, 1008, 1008, 1030, 3166, 8945, 8663, 12131, 1008, 1030, 2544, 1002, 8909, 1024, 1002, 8909, 1008, 1013, 2270, 2465, 14889, 8873, 7485, 13669, 2015, 1063, 2797, 10763, 2345, 8833, 4590, 8833, 4590, 1027, 8833, 4590, 21450, 1012, 2131, 21197, 4590, 1006, 14889, 8873, 7485, 13669, 2015, 1012, 2465, 1007, 1025, 2797, 10763, 2345, 20014, 2128, 21011, 1027, 2531, 1025, 2270, 10763, 22017, 20898, 5843, 13832, 21512, 4859, 1006, 5371, 5371, 1010, 5164, 6434, 1007, 1063, 2709, 5843, 5685, 26373, 1006, 5371, 1010, 6434, 1010, 2995, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 3046, 2000, 9878, 5843, 1012, 2065, 2057, 2064, 1010, 4339, 1996, 5164, 2000, 5371, 1998, 2059, 2713, 1996, 5843, 1008, 1008, 1030, 11498, 2213, 5371, 1008, 1037, 1063, 1030, 4957, 9262, 1012, 22834, 1012, 5371, 1065, 4874, 1012, 1008, 1030, 11498, 2213, 6434, 1008, 1037, 1063, 1030, 4957, 9262, 1012, 11374, 1012, 5164, 1065, 4874, 1012, 1008, 1030, 11498, 2213, 10439, 10497, 1008, 1030, 2709, 1037, 22017, 20898, 1012, 1008, 1013, 2270, 10763, 22017, 20898, 5843, 5685, 26373, 1006, 5371, 5371, 1010, 5164, 6434, 1010, 22017, 20898, 10439, 10497, 1007, 1063, 2005, 1006, 20014, 1045, 1027, 1014, 1025, 1045, 1026, 2128, 21011, 1025, 1045, 1009, 1009, 1007, 1063, 3046, 1063, 3046, 1006, 5371, 5833, 18780, 21422, 1042, 2891, 1027, 2047, 5371, 5833, 18780, 21422, 1006, 5371, 1010, 10439, 10497, 1007, 1007, 1063, 5371, 7878, 13109, 1027, 1042, 2891, 1012, 2131, 26058, 1006, 1007, 1012, 3046, 7878, 1006, 1007, 1025, 2065, 1006, 13109, 999, 1027, 19701, 1007, 1063, 3046, 1006, 27852, 25379, 15994, 30524, 1000, 14889, 8873, 7485, 13669, 2015, 1012, 5843, 5685, 26373, 5299, 1010, 10439, 21945, 1010, 1998, 2207, 2005, 5371, 1024, 1000, 1009, 5371, 1012, 2131, 7875, 19454, 10421, 15069, 1006, 1007, 1009, 1000, 3643, 1024, 1000, 1009, 6434, 1007, 1025, 2709, 2995, 1025, 1065, 2842, 1063, 8833, 4590, 1012, 18558, 1006, 1000, 14889, 8873, 7485, 13669, 2015, 1012, 5843, 5685, 26373, 2064, 1005, 1056, 2131, 5843, 2005, 1000, 1009, 5371, 1012, 2131, 7875, 30523, 1042, 2860, 1027, 2047, 27852, 25379, 15994, 1006, 1042, 2891, 1010, 3115, 7507, 22573, 3215, 1012, 21183, 2546, 1035, 1022, 1007, 1007, 1063, 1042, 2860, 1012, 10439, 10497, 1006, 6434, 1007, 1025, 13109, 1012, 2713, 1006, 1007, 1025, 1065, 1013, 1013, 8833, 4590, 1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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1042, 2860, 1027, 2047, 27852, 25379, 15994, 1006, 1042, 2891, 1010, 3115, 7507, 22573, 3215, 1012, 21183, 2546, 1035, 1022, 1007, 1007, 1063, 1042, 2860, 1012, 10439, 10497, 1006, 6434, 1007, 1025, 13109, 1012, 2713, 1006, 1007, 1025, 1065, 1013, 1013, 8833, 4590, 1012, 18558, 1006, 30526 ]
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace Kooboo.CMS.Toolkit { public static class ObjectExtensions { private static readonly string[] Booleans = new string[] { "true", "yes", "on", "1" }; public static int AsInt(this object value) { return As<int>(value); } public static int AsInt(this object value, int defaultValue) { return As<int>(value, defaultValue); } public static float AsFloat(this object value) { return As<float>(value); } public static float AsFloat(this object value, float defaultValue) { return As<float>(value, defaultValue); } public static decimal AsDecimal(this object value) { return As<decimal>(value); } public static decimal AsDecimal(this object value, decimal defaultValue) { return As<decimal>(value, defaultValue); } public static double AsDouble(this object value) { return As<double>(value); } public static double AsDouble(this object value, double defaultValue) { return As<double>(value, defaultValue); } public static DateTime AsDateTime(this object value) { return As<DateTime>(value); } public static DateTime AsDateTime(this object value, DateTime defaultValue) { return As<DateTime>(value, defaultValue); } public static DateTime AsDateTime(this object value, string format) { return AsDateTime(value, format, default(DateTime)); } public static DateTime AsDateTime(this object value, string format, DateTime defaultValue) { string date = value.AsString(); if (!String.IsNullOrEmpty(date)) { try { return DateTime.ParseExact(date, format, CultureInfo.InvariantCulture); } catch { } } return defaultValue; } public static string AsString(this object value) { return AsString(value, String.Empty); } public static string AsString(this object value, string defaultValue) { return As<string>(value, defaultValue); } public static bool AsBool(this object value) { return AsBool(value, false); } public static bool AsBool(this object value, bool defaultValue) { if (value != null && value != DBNull.Value) { return Booleans.Contains(value.ToString().ToLower()); } return defaultValue; } public static T As<T>(this object value) { return As<T>(value, default(T)); } public static T As<T>(this object value, T defaultValue) { T convertedValue = defaultValue; if (value != null && value != DBNull.Value && value is IConvertible) { try { convertedValue = (T)value; } catch { try { convertedValue = (T)Convert.ChangeType(value, typeof(T)); } catch { } } } return convertedValue; } } }
Kooboo/Extensions
Kooboo.Toolkits/Kooboo.CMS.Toolkit/Common/Extensions/ObjectExtensions.cs
C#
bsd-3-clause
3,660
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 24370, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 3793, 1025, 3415, 15327, 12849, 16429, 9541, 1012, 4642, 2015, 1012, 6994, 23615, 1063, 2270, 10763, 2465, 4874, 10288, 29048, 2015, 1063, 2797, 10763, 3191, 2239, 2135, 5164, 1031, 1033, 22017, 20898, 2015, 1027, 2047, 5164, 1031, 1033, 1063, 1000, 2995, 1000, 1010, 1000, 2748, 1000, 1010, 1000, 2006, 1000, 1010, 1000, 1015, 1000, 1065, 1025, 2270, 10763, 20014, 2004, 18447, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 2004, 1026, 20014, 1028, 1006, 3643, 1007, 1025, 1065, 2270, 10763, 20014, 2004, 18447, 1006, 2023, 4874, 3643, 1010, 20014, 12398, 10175, 5657, 1007, 1063, 2709, 2004, 1026, 20014, 1028, 1006, 3643, 1010, 12398, 10175, 5657, 1007, 1025, 1065, 2270, 10763, 14257, 2004, 10258, 16503, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 2004, 1026, 14257, 1028, 1006, 3643, 1007, 1025, 1065, 2270, 10763, 14257, 2004, 10258, 16503, 1006, 2023, 4874, 3643, 1010, 14257, 12398, 10175, 5657, 1007, 1063, 2709, 30524, 1007, 1025, 1065, 2270, 10763, 26066, 2004, 3207, 6895, 9067, 1006, 2023, 4874, 3643, 1010, 26066, 12398, 10175, 5657, 1007, 1063, 2709, 2004, 1026, 26066, 1028, 1006, 3643, 1010, 12398, 10175, 5657, 1007, 1025, 1065, 2270, 10763, 3313, 2004, 26797, 3468, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 2004, 1026, 3313, 1028, 1006, 3643, 1007, 1025, 1065, 2270, 10763, 3313, 2004, 26797, 3468, 1006, 2023, 4874, 3643, 1010, 3313, 12398, 10175, 5657, 1007, 1063, 2709, 2004, 1026, 3313, 1028, 1006, 3643, 1010, 12398, 10175, 5657, 1007, 1025, 1065, 2270, 10763, 3058, 7292, 2004, 13701, 7292, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 2004, 1026, 3058, 7292, 1028, 1006, 3643, 1007, 1025, 1065, 2270, 10763, 3058, 7292, 2004, 13701, 7292, 1006, 2023, 4874, 3643, 1010, 3058, 7292, 12398, 10175, 5657, 1007, 1063, 2709, 2004, 1026, 3058, 7292, 1028, 1006, 3643, 1010, 12398, 10175, 5657, 1007, 1025, 1065, 2270, 10763, 3058, 7292, 2004, 13701, 7292, 1006, 2023, 4874, 3643, 1010, 5164, 4289, 1007, 1063, 2709, 2004, 13701, 7292, 1006, 3643, 1010, 4289, 1010, 12398, 1006, 3058, 7292, 1007, 1007, 1025, 1065, 2270, 10763, 3058, 7292, 2004, 13701, 7292, 1006, 2023, 4874, 3643, 1010, 5164, 4289, 1010, 3058, 7292, 12398, 10175, 5657, 1007, 1063, 5164, 3058, 1027, 3643, 1012, 4632, 18886, 3070, 1006, 1007, 1025, 2065, 1006, 999, 5164, 1012, 3475, 18083, 5686, 27718, 2100, 1006, 3058, 1007, 1007, 1063, 3046, 1063, 2709, 3058, 7292, 1012, 11968, 19763, 18684, 6593, 1006, 3058, 1010, 4289, 1010, 3226, 2378, 14876, 1012, 23915, 14561, 1007, 1025, 1065, 4608, 1063, 1065, 1065, 2709, 12398, 10175, 5657, 1025, 1065, 2270, 10763, 5164, 4632, 18886, 3070, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 4632, 18886, 3070, 1006, 3643, 1010, 5164, 1012, 4064, 1007, 1025, 1065, 2270, 10763, 5164, 4632, 18886, 3070, 1006, 2023, 30523, 2004, 1026, 14257, 1028, 1006, 3643, 1010, 12398, 10175, 5657, 1007, 1025, 1065, 2270, 10763, 26066, 2004, 3207, 6895, 9067, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 2004, 1026, 26066, 1028, 1006, 3643, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2004, 1026, 14257, 1028, 1006, 3643, 1010, 12398, 10175, 5657, 1007, 1025, 1065, 2270, 10763, 26066, 2004, 3207, 6895, 9067, 1006, 2023, 4874, 3643, 1007, 1063, 2709, 2004, 1026, 26066, 1028, 1006, 3643, 30526 ]
/* * Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License, * Version 1.0, and under the Eclipse Public License, Version 1.0 * (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.jaqu; import org.h2.jaqu.Table.IndexType; /** * This class provides utility methods to define primary keys, indexes, and set * the name of the table. */ public class Define { private static TableDefinition<?> currentTableDefinition; private static Table currentTable; public static void primaryKey(Object... columns) { checkInDefine(); currentTableDefinition.setPrimaryKey(columns); } public static void index(Object... columns) { checkInDefine(); currentTableDefinition.addIndex(IndexType.STANDARD, columns); } public static void uniqueIndex(Object... columns) { checkInDefine(); currentTableDefinition.addIndex(IndexType.UNIQUE, columns); } public static void hashIndex(Object column) { checkInDefine(); currentTableDefinition.addIndex(IndexType.HASH, new Object [] { column }); } public static void uniqueHashIndex(Object column) { checkInDefine(); currentTableDefinition.addIndex(IndexType.UNIQUE_HASH, new Object [] { column }); } public static void maxLength(Object column, int length) { checkInDefine(); currentTableDefinition.setMaxLength(column, length); } public static void tableName(String tableName) { currentTableDefinition.setTableName(tableName); } static synchronized <T> void define(TableDefinition<T> tableDefinition, Table table) { currentTableDefinition = tableDefinition; currentTable = table; tableDefinition.mapObject(table); table.define(); currentTable = null; } private static void checkInDefine() { if (currentTable == null) { throw new RuntimeException("This method may only be called " + "from within the define() method, and the define() method " + "is called by the framework."); } } }
ferquies/2dam
AD/Tema 2/h2/src/tools/org/h2/jaqu/Define.java
Java
gpl-3.0
2,168
[ 30522, 1013, 1008, 1008, 9385, 2432, 1011, 2286, 1044, 2475, 2177, 1012, 3674, 1011, 7000, 2104, 1996, 1044, 2475, 6105, 1010, 1008, 2544, 1015, 1012, 1014, 1010, 1998, 2104, 1996, 13232, 2270, 6105, 1010, 2544, 1015, 1012, 1014, 1008, 1006, 8299, 1024, 1013, 1013, 1044, 2475, 2850, 2696, 15058, 1012, 4012, 1013, 16129, 1013, 6105, 1012, 16129, 1007, 1012, 1008, 3988, 9722, 1024, 1044, 2475, 2177, 1008, 1013, 7427, 8917, 1012, 1044, 2475, 1012, 14855, 28940, 1025, 12324, 8917, 1012, 1044, 2475, 1012, 14855, 28940, 1012, 2795, 1012, 5950, 13874, 1025, 1013, 1008, 1008, 1008, 2023, 2465, 3640, 9710, 4725, 2000, 9375, 3078, 6309, 1010, 5950, 2229, 1010, 1998, 2275, 1008, 30524, 16294, 22753, 1026, 1029, 1028, 2783, 10880, 3207, 16294, 22753, 1025, 2797, 10763, 2795, 2783, 10880, 1025, 2270, 10763, 11675, 3078, 14839, 1006, 4874, 1012, 1012, 1012, 7753, 1007, 1063, 4638, 22254, 12879, 3170, 1006, 1007, 1025, 2783, 10880, 3207, 16294, 22753, 1012, 2275, 18098, 9581, 2854, 14839, 1006, 7753, 1007, 1025, 1065, 2270, 10763, 11675, 5950, 1006, 4874, 1012, 1012, 1012, 7753, 1007, 1063, 4638, 22254, 12879, 3170, 1006, 1007, 1025, 2783, 10880, 3207, 16294, 22753, 1012, 5587, 22254, 10288, 1006, 5950, 13874, 1012, 3115, 1010, 7753, 1007, 1025, 1065, 2270, 10763, 11675, 4310, 22254, 10288, 1006, 4874, 1012, 1012, 1012, 7753, 1007, 1063, 4638, 22254, 12879, 3170, 1006, 1007, 1025, 2783, 10880, 3207, 16294, 22753, 1012, 5587, 22254, 10288, 1006, 5950, 13874, 1012, 4310, 1010, 7753, 1007, 1025, 1065, 2270, 10763, 11675, 23325, 22254, 10288, 1006, 4874, 5930, 1007, 1063, 4638, 22254, 12879, 3170, 1006, 1007, 1025, 2783, 10880, 3207, 16294, 22753, 1012, 5587, 22254, 10288, 1006, 5950, 13874, 1012, 23325, 1010, 2047, 4874, 1031, 1033, 1063, 5930, 1065, 1007, 1025, 1065, 2270, 10763, 11675, 4310, 14949, 10606, 3207, 2595, 1006, 4874, 5930, 1007, 1063, 4638, 22254, 12879, 3170, 1006, 1007, 1025, 2783, 10880, 3207, 16294, 22753, 1012, 5587, 22254, 10288, 1006, 5950, 13874, 1012, 4310, 1035, 23325, 1010, 2047, 4874, 1031, 1033, 1063, 5930, 1065, 1007, 1025, 1065, 2270, 10763, 11675, 4098, 7770, 13512, 2232, 1006, 4874, 5930, 1010, 20014, 3091, 1007, 1063, 4638, 22254, 12879, 3170, 1006, 1007, 1025, 2783, 10880, 3207, 16294, 22753, 1012, 2275, 17848, 7770, 13512, 2232, 1006, 5930, 1010, 3091, 1007, 1025, 1065, 2270, 10763, 11675, 2795, 18442, 1006, 5164, 2795, 18442, 1007, 1063, 2783, 10880, 3207, 16294, 22753, 1012, 2275, 10880, 18442, 1006, 2795, 18442, 1007, 1025, 1065, 10763, 25549, 1026, 1056, 1028, 11675, 9375, 1006, 2795, 3207, 16294, 22753, 1026, 1056, 1028, 2795, 3207, 16294, 22753, 1010, 2795, 2795, 1007, 1063, 2783, 10880, 3207, 16294, 22753, 1027, 2795, 3207, 16294, 22753, 1025, 2783, 10880, 1027, 2795, 1025, 2795, 3207, 16294, 22753, 1012, 4949, 16429, 20614, 1006, 2795, 1007, 1025, 2795, 1012, 9375, 1006, 1007, 1025, 2783, 10880, 1027, 19701, 1025, 1065, 2797, 10763, 11675, 4638, 22254, 12879, 3170, 1006, 1007, 1063, 2065, 1006, 2783, 10880, 1027, 1027, 19701, 1007, 1063, 5466, 2047, 30523, 1996, 2171, 1997, 1996, 2795, 1012, 1008, 1013, 2270, 2465, 9375, 1063, 2797, 10763, 2795, 3207, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1996, 2171, 1997, 1996, 2795, 1012, 1008, 1013, 2270, 2465, 9375, 1063, 2797, 10763, 2795, 3207, 30526 ]
/* * Copyright 2016 The Bazel Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.idea.blaze.base.lang.buildfile.formatting; import com.google.idea.blaze.base.lang.buildfile.lexer.BuildToken; import com.google.idea.blaze.base.lang.buildfile.lexer.TokenKind; import com.intellij.lang.BracePair; import com.intellij.lang.PairedBraceMatcher; import com.intellij.psi.PsiFile; import com.intellij.psi.tree.IElementType; import com.intellij.psi.tree.TokenSet; import java.util.Arrays; import javax.annotation.Nullable; /** * This adds a close brace automatically once an opening brace is typed by the user in the editor. */ public class BuildBraceMatcher implements PairedBraceMatcher { private static final BracePair[] PAIRS = new BracePair[] { new BracePair( BuildToken.fromKind(TokenKind.LPAREN), BuildToken.fromKind(TokenKind.RPAREN), true), new BracePair( BuildToken.fromKind(TokenKind.LBRACKET), BuildToken.fromKind(TokenKind.RBRACKET), true), new BracePair( BuildToken.fromKind(TokenKind.LBRACE), BuildToken.fromKind(TokenKind.RBRACE), true) }; private static final TokenSet BRACES_ALLOWED_BEFORE = tokenSet( TokenKind.NEWLINE, TokenKind.WHITESPACE, TokenKind.COMMENT, TokenKind.COLON, TokenKind.COMMA, TokenKind.RPAREN, TokenKind.RBRACKET, TokenKind.RBRACE, TokenKind.LBRACE); @Override public BracePair[] getPairs() { return PAIRS; } @Override public boolean isPairedBracesAllowedBeforeType( IElementType lbraceType, @Nullable IElementType contextType) { return contextType == null || BRACES_ALLOWED_BEFORE.contains(contextType); } @Override public int getCodeConstructStart(PsiFile file, int openingBraceOffset) { return openingBraceOffset; } private static TokenSet tokenSet(TokenKind... kind) { return TokenSet.create( Arrays.stream(kind).map(BuildToken::fromKind).toArray(IElementType[]::new)); } }
brendandouglas/intellij
base/src/com/google/idea/blaze/base/lang/buildfile/formatting/BuildBraceMatcher.java
Java
apache-2.0
2,599
[ 30522, 1013, 1008, 1008, 9385, 2355, 1996, 8670, 12638, 6048, 1012, 2035, 2916, 9235, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 30524, 1996, 6105, 1012, 1008, 1013, 7427, 4012, 1012, 8224, 1012, 2801, 1012, 15347, 1012, 2918, 1012, 11374, 1012, 3857, 8873, 2571, 1012, 4289, 3436, 1025, 12324, 4012, 1012, 8224, 1012, 2801, 1012, 15347, 1012, 2918, 1012, 11374, 1012, 3857, 8873, 2571, 1012, 17244, 2121, 1012, 3857, 18715, 2368, 1025, 12324, 4012, 1012, 8224, 1012, 2801, 1012, 15347, 1012, 2918, 1012, 11374, 1012, 3857, 8873, 2571, 1012, 17244, 2121, 1012, 19204, 18824, 1025, 12324, 4012, 1012, 13420, 3669, 3501, 1012, 11374, 1012, 17180, 4502, 4313, 1025, 12324, 4012, 1012, 13420, 3669, 3501, 1012, 11374, 1012, 12739, 10024, 3401, 18900, 7474, 1025, 12324, 4012, 1012, 13420, 3669, 3501, 1012, 17816, 1012, 17816, 8873, 2571, 1025, 12324, 4012, 1012, 13420, 3669, 3501, 1012, 17816, 1012, 3392, 1012, 29464, 16930, 4765, 13874, 1025, 12324, 4012, 1012, 13420, 3669, 3501, 1012, 17816, 1012, 3392, 1012, 19204, 13462, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 27448, 1025, 12324, 9262, 2595, 1012, 5754, 17287, 3508, 1012, 19701, 3085, 1025, 1013, 1008, 1008, 1008, 2023, 9909, 1037, 2485, 17180, 8073, 2320, 2019, 3098, 17180, 2003, 21189, 2011, 1996, 5310, 1999, 1996, 3559, 1012, 1008, 1013, 2270, 2465, 3857, 10024, 3401, 18900, 7474, 22164, 12739, 10024, 3401, 18900, 7474, 1063, 2797, 10763, 2345, 17180, 4502, 4313, 1031, 1033, 7689, 1027, 2047, 17180, 4502, 4313, 1031, 1033, 1063, 2047, 17180, 4502, 4313, 1006, 3857, 18715, 2368, 1012, 2013, 18824, 1006, 19204, 18824, 1012, 6948, 12069, 2078, 1007, 1010, 3857, 18715, 2368, 1012, 2013, 18824, 1006, 19204, 18824, 1012, 1054, 19362, 2368, 1007, 1010, 2995, 1007, 1010, 2047, 17180, 4502, 4313, 1006, 3857, 18715, 2368, 1012, 2013, 18824, 1006, 19204, 18824, 1012, 6053, 22648, 3489, 2102, 1007, 1010, 3857, 18715, 2368, 1012, 2013, 18824, 1006, 19204, 18824, 1012, 21144, 22648, 3489, 2102, 1007, 1010, 2995, 1007, 1010, 2047, 17180, 4502, 4313, 1006, 3857, 18715, 2368, 1012, 2013, 18824, 1006, 19204, 18824, 1012, 6053, 22903, 1007, 1010, 3857, 18715, 2368, 1012, 2013, 18824, 1006, 19204, 18824, 1012, 21144, 22903, 1007, 1010, 2995, 1007, 1065, 1025, 2797, 10763, 2345, 19204, 13462, 17180, 2015, 1035, 3039, 1035, 2077, 1027, 19204, 13462, 1006, 19204, 18824, 1012, 2047, 4179, 1010, 19204, 18824, 1012, 12461, 15327, 1010, 19204, 18824, 1012, 30523, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 30526 ]
/*Problem 13. Solve tasks Write a program that can solve these tasks: Reverses the digits of a number Calculates the average of a sequence of integers Solves a linear equation a * x + b = 0 Create appropriate methods. Provide a simple text-based menu for the user to choose which task to solve. Validate the input data: The decimal number should be non-negative The sequence should not be empty a should not be equal to 0*/ using System; using System.Linq; using System.Globalization; class Program { static void Main() { string user = "0"; while (user == "0") { Console.WriteLine("Program options: "); Console.WriteLine("1) Reverses the digits of a number"); Console.WriteLine("2) Calculates the average of a sequence of integers"); Console.WriteLine("3) Solves a linear equation 'a * x + b = 0'"); Console.Write("Enter your choice: "); user = Console.ReadLine(); switch (user) { case "1": ReverseDigits(); return; case "2": FindAverageSumOfSequence(); return; case "3": SolveLinearEquation(); return; default: Console.Clear(); user = "0"; break; } } } static void ReverseDigits() { decimal number = 0; do { Console.Write("Enter a non-negative number (real or integer): "); number = decimal.Parse(Console.ReadLine()); } while (number < 0); string temp = number.ToString(CultureInfo.InvariantCulture); string result = string.Empty; for (int i = temp.Length - 1; i >= 0; i--) { result += temp[i]; } Console.WriteLine("Result: {0} -> {1}", number, decimal.Parse(result)); } static void FindAverageSumOfSequence() { int n = 0; do { Console.Write("Enter a non-negative number N (size of array): "); n = int.Parse(Console.ReadLine()); } while (n <= 0); int[] numbers = new int[n]; Console.WriteLine("\nEnter a {0} number(s) to array: ", n); for (int i = 0; i < numbers.Length; i++) { Console.Write(" {0}: ", i + 1); numbers[i] = int.Parse(Console.ReadLine()); } Console.WriteLine("\nAverage sum = {0}", numbers.Average()); return; } static void SolveLinearEquation() { decimal a = 0; do { Console.Write("Enter a non-zero number A: "); a = decimal.Parse(Console.ReadLine()); } while (a == 0); Console.Write("Enter a number B: "); decimal b = decimal.Parse(Console.ReadLine()); Console.WriteLine("\nResult -> x = -b / a = {0}", -b / a); } }
MarinMarinov/C-Sharp-Part-2
Homework 03-Methods/Problem 13. Solve tasks/Program.cs
C#
mit
3,087
[ 30522, 1013, 1008, 3291, 2410, 1012, 9611, 8518, 4339, 1037, 2565, 2008, 2064, 9611, 2122, 8518, 1024, 7901, 2015, 1996, 16648, 1997, 1037, 2193, 18422, 2015, 1996, 2779, 1997, 1037, 5537, 1997, 24028, 9611, 2015, 1037, 7399, 8522, 1037, 1008, 1060, 1009, 1038, 1027, 1014, 3443, 6413, 4725, 1012, 3073, 1037, 3722, 3793, 1011, 2241, 12183, 2005, 1996, 5310, 2000, 5454, 2029, 4708, 2000, 9611, 1012, 9398, 3686, 1996, 7953, 2951, 1024, 1996, 26066, 2193, 2323, 2022, 2512, 1011, 4997, 1996, 5537, 2323, 2025, 2022, 4064, 1037, 2323, 2025, 2022, 5020, 2000, 1014, 1008, 1013, 2478, 2291, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 24370, 1025, 2465, 2565, 1063, 10763, 11675, 2364, 1006, 1007, 1063, 5164, 5310, 1027, 1000, 1014, 1000, 1025, 2096, 1006, 5310, 1027, 1027, 1000, 1014, 1000, 1007, 1063, 10122, 1012, 4339, 4179, 1006, 1000, 2565, 7047, 1024, 1000, 1007, 1025, 10122, 1012, 4339, 4179, 1006, 1000, 1015, 1007, 7901, 2015, 1996, 16648, 1997, 1037, 2193, 1000, 1007, 1025, 10122, 1012, 4339, 4179, 1006, 1000, 1016, 1007, 18422, 2015, 1996, 2779, 1997, 1037, 5537, 1997, 24028, 1000, 1007, 1025, 10122, 1012, 4339, 4179, 1006, 1000, 1017, 1007, 9611, 2015, 1037, 7399, 8522, 1005, 1037, 1008, 1060, 1009, 1038, 1027, 1014, 1005, 1000, 1007, 1025, 10122, 1012, 4339, 1006, 1000, 4607, 2115, 3601, 1024, 1000, 1007, 1025, 5310, 1027, 10122, 1012, 3191, 4179, 1006, 1007, 1025, 6942, 1006, 5310, 1007, 1063, 2553, 1000, 1015, 1000, 1024, 11674, 30524, 1000, 1024, 2424, 22208, 13923, 2819, 11253, 3366, 4226, 5897, 1006, 1007, 1025, 2709, 1025, 2553, 1000, 1017, 1000, 1024, 9611, 4179, 12069, 16211, 3508, 1006, 1007, 1025, 2709, 1025, 12398, 1024, 10122, 1012, 3154, 1006, 1007, 1025, 5310, 1027, 1000, 1014, 1000, 1025, 3338, 1025, 1065, 1065, 1065, 10763, 11675, 11674, 8004, 12762, 1006, 1007, 1063, 26066, 2193, 1027, 1014, 1025, 2079, 1063, 10122, 1012, 4339, 1006, 1000, 4607, 1037, 2512, 1011, 4997, 2193, 1006, 2613, 2030, 16109, 1007, 1024, 1000, 1007, 1025, 2193, 1027, 26066, 1012, 11968, 3366, 1006, 10122, 1012, 3191, 4179, 1006, 1007, 1007, 1025, 1065, 2096, 1006, 2193, 1026, 1014, 1007, 1025, 5164, 8915, 8737, 1027, 2193, 1012, 2000, 3367, 4892, 1006, 3226, 2378, 14876, 1012, 23915, 14561, 1007, 1025, 5164, 2765, 1027, 5164, 1012, 4064, 1025, 2005, 1006, 20014, 1045, 1027, 8915, 8737, 1012, 3091, 1011, 1015, 1025, 1045, 1028, 1027, 1014, 1025, 1045, 1011, 1011, 1007, 1063, 2765, 1009, 1027, 8915, 8737, 1031, 1045, 1033, 1025, 1065, 10122, 1012, 4339, 4179, 1006, 1000, 2765, 1024, 1063, 1014, 1065, 1011, 1028, 1063, 1015, 1065, 1000, 1010, 2193, 1010, 26066, 1012, 11968, 3366, 1006, 2765, 1007, 1007, 1025, 1065, 10763, 11675, 2424, 22208, 13923, 2819, 11253, 3366, 4226, 5897, 1006, 1007, 1063, 20014, 1050, 1027, 1014, 1025, 2079, 1063, 10122, 1012, 4339, 1006, 1000, 4607, 1037, 2512, 1011, 4997, 2193, 1050, 1006, 2946, 1997, 9140, 1007, 1024, 1000, 1007, 1025, 1050, 1027, 20014, 1012, 11968, 3366, 1006, 10122, 1012, 3191, 4179, 1006, 30523, 8004, 12762, 1006, 1007, 1025, 2709, 1025, 2553, 1000, 1016, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8004, 12762, 1006, 1007, 1025, 2709, 1025, 2553, 1000, 1016, 30526 ]
/* This project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Deviation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Deviation. If not, see <http://www.gnu.org/licenses/>. */ #include <libopencm3/cm3/systick.h> #include <libopencm3/stm32/timer.h> #include <libopencm3/stm32/usart.h> #include <libopencm3/stm32/pwr.h> #include <libopencm3/stm32/f2/rcc.h> #include <libopencm3/stm32/f2/rtc.h> #include <libopencm3/cm3/nvic.h> #include <libopencm3/stm32/iwdg.h> #include "common.h" #include "rtc.h" #include "../common/devo/devo.h" //The following is from an unreleased libopencm3 //We should remove it eventually #if 1 void iwdg_start(void); void iwdg_set_period_ms(u32 period); bool iwdg_reload_busy(void); bool iwdg_prescaler_busy(void); void iwdg_reset(void); #endif volatile u32 msecs; volatile u32 msecTimer1; volatile u32 msecTimer2; volatile u32 wdg_time; u16 (*timer_callback)(void); volatile u8 msec_callbacks; volatile u32 msec_cbtime[NUM_MSEC_CALLBACKS]; void CLOCK_Init() { /* 60MHz / 8 => 7500000 counts per second */ systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8); /* 7500000/7500 = 1000 overflows per second - every 1ms one interrupt */ systick_set_reload(7500); nvic_set_priority(NVIC_SYSTICK_IRQ, 0x0); //Highest priority /* We trigger exti2 right before the watchdog fires to do a stack dump */ nvic_set_priority(NVIC_EXTI2_IRQ, 0x01); //Highest priority systick_interrupt_enable(); msecs = 0; msec_callbacks = 0; /* Start counting. */ systick_counter_enable(); /* Setup timer for Transmitter */ timer_callback = NULL; /* Enable TIM5 clock. */ rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_TIM5EN); /* Enable TIM5 interrupt. */ nvic_enable_irq(NVIC_TIM5_IRQ); nvic_set_priority(NVIC_TIM5_IRQ, 16); //High priority timer_disable_counter(TIM5); /* Reset TIM5 peripheral. */ timer_reset(TIM5); /* Timer global mode: * - No divider * - Alignment edge * - Direction up */ timer_set_mode(TIM5, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP); /* timer updates each microsecond */ timer_set_prescaler(TIM5, 60 - 1); timer_set_period(TIM5, 65535); /* Disable preload. */ timer_disable_preload(TIM5); /* Continous mode. */ timer_continuous_mode(TIM5); /* Disable outputs. */ timer_disable_oc_output(TIM5, TIM_OC1); timer_disable_oc_output(TIM5, TIM_OC2); timer_disable_oc_output(TIM5, TIM_OC3); timer_disable_oc_output(TIM5, TIM_OC4); /* Enable CCP1 */ timer_disable_oc_clear(TIM5, TIM_OC1); timer_disable_oc_preload(TIM5, TIM_OC1); timer_set_oc_slow_mode(TIM5, TIM_OC1); timer_set_oc_mode(TIM5, TIM_OC1, TIM_OCM_FROZEN); /* Disable CCP1 interrupt. */ timer_disable_irq(TIM5, TIM_DIER_CC1IE); timer_enable_counter(TIM5); /* Enable EXTI1 interrupt. */ /* We are enabling only the interrupt * We'll manually trigger this via set_pending_interrupt */ nvic_enable_irq(NVIC_EXTI1_IRQ); nvic_set_priority(NVIC_EXTI1_IRQ, 64); //Medium priority /* Enable DMA Channel1 with same priority as EXTI1 */ //FIXME //nvic_enable_irq(NVIC_DMA1_STREAM1_IRQ); //nvic_set_priority(NVIC_DMA1_STREAM1_IRQ, 65); //Medium priority /* wait for system to start up and stabilize */ while(msecs < 100) ; } void CLOCK_StartTimer(unsigned us, u16 (*cb)(void)) { if(! cb) return; timer_callback = cb; /* Counter enable. */ u16 t = timer_get_counter(TIM5); /* Set the capture compare value for OC1. */ timer_set_oc_value(TIM5, TIM_OC1, us + t); timer_clear_flag(TIM5, TIM_SR_CC1IF); timer_enable_irq(TIM5, TIM_DIER_CC1IE); } void CLOCK_StartWatchdog() { iwdg_set_period_ms(3000); iwdg_start(); wdg_time = msecs; nvic_clear_pending_irq(NVIC_EXTI2_IRQ); nvic_enable_irq(NVIC_EXTI2_IRQ); } void CLOCK_ResetWatchdog() { iwdg_reset(); wdg_time = msecs; } void CLOCK_StopTimer() { timer_disable_irq(TIM5, TIM_DIER_CC1IE); timer_callback = NULL; } void tim5_isr() { if(timer_callback) { #ifdef TIMING_DEBUG debug_timing(4, 0); #endif u16 us = timer_callback(); #ifdef TIMING_DEBUG debug_timing(4, 1); #endif timer_clear_flag(TIM5, TIM_SR_CC1IF); if (us) { timer_set_oc_value(TIM5, TIM_OC1, us + TIM_CCR1(TIM5)); return; } } CLOCK_StopTimer(); } u32 CLOCK_getms() { return msecs; } void CLOCK_SetMsecCallback(int cb, u32 msec) { msec_cbtime[cb] = msecs + msec; msec_callbacks |= (1 << cb); } void CLOCK_ClearMsecCallback(int cb) { msec_callbacks &= ~(1 << cb); } void exti1_isr() { //ADC_StartCapture(); //ADC completion will trigger update ADC_Filter(); medium_priority_cb(); } void sys_tick_handler(void) { msecs++; if(msecTimer1) msecTimer1--; if(msecTimer2) msecTimer2--; if(msecs - wdg_time > 2000) { nvic_set_pending_irq(NVIC_EXTI2_IRQ); return; } if(msec_callbacks & (1 << MEDIUM_PRIORITY)) { if (msecs == msec_cbtime[MEDIUM_PRIORITY]) { //medium priority tasks execute in interrupt and main loop context nvic_set_pending_irq(NVIC_EXTI1_IRQ); priority_ready |= 1 << MEDIUM_PRIORITY; msec_cbtime[MEDIUM_PRIORITY] = msecs + MEDIUM_PRIORITY_MSEC; } } if(msec_callbacks & (1 << LOW_PRIORITY)) { if (msecs == msec_cbtime[LOW_PRIORITY]) { //Low priority tasks execute in the main loop priority_ready |= 1 << LOW_PRIORITY; msec_cbtime[LOW_PRIORITY] = msecs + LOW_PRIORITY_MSEC; } } if(msec_callbacks & (1 << TIMER_SOUND)) { if (msecs == msec_cbtime[TIMER_SOUND]) { u16 ms = SOUND_Callback(); if(! ms) msec_callbacks &= ~(1 << TIMER_SOUND); else msec_cbtime[TIMER_SOUND] = msecs + ms; } } } // initialize RTC void RTC_Init() { rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_PWREN); pwr_disable_backup_domain_write_protect(); rcc_osc_on(LSE); rcc_wait_for_osc_ready(LSE); RCC_BDCR |= RCC_BDCR_SRC_LSE; //Set source to LSE RCC_BDCR |= RCC_BDCR_RTCEN; //Enable RTC rtc_wait_for_synchro(); rtc_set_prescaler(255, 127); } static const u16 daysInYear[2][13] = { { 0,31,59,90,120,151,181,212,243,273,304,334,365}, { 0,31,60,91,121,152,182,213,244,274,305,335,366} }; // set date value (deviation epoch = seconds since 1.1.2012, 00:00:00) void RTC_SetValue(u32 value) { value += 4382 * 60 * 60 * 24; //convert date from 1.1.2012, 00:00:00 to 1.1.2000, 00:00:00 uint32_t date = 0, time = 0; const uint32_t SEC = value % 60; const uint32_t MIN = (value / 60) % 60; const uint32_t HR = (value / 60 / 60) % 24; uint32_t DAYS = (value / 60 / 60 / 24); uint32_t DAY = 0; uint32_t YEAR = (4*DAYS) / 1461; // = days/365.25 uint32_t LEAP = (YEAR % 4 == 0) ? 1 : 0; uint32_t WEEKDAY = DAYS / 7 + 7; //1/1/2000 was a Saturday uint32_t MONTH = 0; //Convert time to bcd time |= (SEC % 10) << 0; //seconds ones time |= (SEC / 10) << 4; //seconds tens time |= (MIN % 10) << 8; //minutes ones time |= (MIN / 10) << 12; //minutes tens time |= (HR % 10) << 16; //hours ones time |= (HR / 10) << 20; //hours tens //Convert date to bcd DAYS -= (uint32_t)(YEAR * 365 + YEAR / 4); DAYS -= (DAYS > daysInYear[LEAP][2]) ? 1 : 0; //leap year correction for RTC_STARTYEAR for (MONTH=0; MONTH<12; MONTH++) { if (DAYS < daysInYear[LEAP][MONTH + 1]) break; } DAY = DAYS - daysInYear[LEAP][MONTH]; date |= (DAY % 10) << 0; //date in ones date |= (DAY / 10) << 4; //date in tens date |= (MONTH % 10) << 8; //month in ones date |= (MONTH / 10) << 12; //month in tens date |= (WEEKDAY) << 13; //weekday date |= (YEAR % 10) << 16; //year in ones date |= (YEAR / 10) << 20; //year in tens //Unlock rtc_unlock(); //Enter Init mode RTC_ISR = 0xFFFFFFFF; for(int i = 0; i < 0x10000; i++) if((RTC_ISR & RTC_ISR_INITF) == 0) break; //SetDate RTC_DR = date; RTC_TR = time; // Exit Init mode RTC_ISR &= (uint32_t)~RTC_ISR_INIT; //Wait for synch rtc_wait_for_synchro(); //Lock rtc_lock(); } // get date value (deviation epoch = seconds since 1.1.2012, 00:00:00) u32 RTC_GetValue() { u32 value = 0; uint32_t time = RTC_TR; uint32_t date = RTC_DR; const uint32_t YEAR = (((date >> 20) & 0x0f) * 10) + ((date >> 16) & 0x0f) - 12; const uint32_t MONTH = (((date >> 12) & 0x01) * 10) + ((date >> 8) & 0x0f); const uint32_t DAY = (((date >> 4) & 0x03) * 10) + ((date >> 0) & 0x0f); const uint32_t HOUR = (((time >> 20) & 0x03) * 10) + ((time >> 16) & 0x0f); const uint32_t MIN = (((time >> 12) & 0x07) * 10) + ((time >> 8) & 0x0f); const uint32_t SEC = (((time >> 4) & 0x07) * 10) + ((time >> 0) & 0x0f); value += (DAY-1 + daysInYear[YEAR%4 == 0 ? 1 : 0][MONTH-1] + YEAR * 365 + YEAR/4 + ((YEAR != 0 && MONTH > 2) ? 1 : 0)) * (60*60*24); value += HOUR*60*60 + MIN*60+SEC; return value; } void rtc_gettime(struct gtm * t) { uint32_t time = RTC_TR; uint32_t date = RTC_DR; const uint32_t YEAR = (((date >> 20) & 0x0f) * 10) + ((date >> 16) & 0x0f); const uint32_t MONTH = (((date >> 12) & 0x01) * 10) + ((date >> 8) & 0x0f); const uint32_t DAY = (((date >> 4) & 0x03) * 10) + ((date >> 0) & 0x0f); const uint32_t HOUR = (((time >> 20) & 0x03) * 10) + ((time >> 16) & 0x0f); const uint32_t MIN = (((time >> 12) & 0x07) * 10) + ((time >> 8) & 0x0f); const uint32_t SEC = (((time >> 4) & 0x07) * 10) + ((time >> 0) & 0x0f); t->tm_hour = HOUR; t->tm_min = MIN; t->tm_sec = SEC; t->tm_year = YEAR + 100; t->tm_mon = MONTH; t->tm_mday = DAY; }
cctsao1008/deviation
src/target/x9d/clock.c
C
gpl-3.0
10,674
[ 30522, 1013, 1008, 2023, 2622, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 24353, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 2007, 24353, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1008, 1013, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 4642, 2509, 1013, 25353, 21354, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 2358, 2213, 16703, 1013, 25309, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 2358, 2213, 16703, 1013, 3915, 5339, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 2358, 2213, 16703, 1013, 1052, 13088, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 2358, 2213, 16703, 1013, 1042, 2475, 1013, 22110, 2278, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 2358, 2213, 16703, 1013, 1042, 2475, 1013, 19387, 2278, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 4642, 2509, 1013, 1050, 7903, 1012, 1044, 1028, 1001, 2421, 1026, 5622, 5092, 11837, 27487, 2509, 1013, 2358, 2213, 16703, 1013, 1045, 21724, 2290, 1012, 1044, 1028, 1001, 2421, 1000, 2691, 1012, 1044, 1000, 1001, 2421, 1000, 19387, 2278, 1012, 1044, 1000, 1001, 2421, 1000, 1012, 1012, 1013, 2691, 1013, 16475, 2080, 1013, 16475, 2080, 1012, 1044, 1000, 1013, 1013, 1996, 2206, 2003, 2013, 2019, 13270, 5622, 5092, 11837, 27487, 2509, 1013, 1013, 2057, 2323, 6366, 2009, 2776, 1001, 2065, 1015, 11675, 1045, 21724, 2290, 1035, 2707, 1006, 11675, 1007, 1025, 11675, 1045, 21724, 2290, 1035, 2275, 30524, 2290, 1035, 2128, 11066, 1035, 5697, 1006, 11675, 1007, 1025, 22017, 2140, 1045, 21724, 2290, 1035, 3653, 15782, 3917, 1035, 5697, 1006, 11675, 1007, 1025, 11675, 1045, 21724, 2290, 1035, 25141, 1006, 11675, 1007, 1025, 1001, 2203, 10128, 20606, 1057, 16703, 5796, 8586, 2015, 1025, 20606, 1057, 16703, 5796, 22471, 14428, 2099, 2487, 1025, 20606, 1057, 16703, 5796, 22471, 14428, 2099, 2475, 1025, 20606, 1057, 16703, 1059, 2094, 2290, 1035, 2051, 1025, 1057, 16048, 1006, 1008, 25309, 1035, 2655, 5963, 1007, 1006, 11675, 1007, 1025, 20606, 1057, 2620, 5796, 8586, 1035, 2655, 12221, 1025, 20606, 1057, 16703, 5796, 8586, 1035, 17324, 7292, 1031, 16371, 2213, 1035, 5796, 8586, 1035, 2655, 12221, 1033, 1025, 11675, 5119, 1035, 1999, 4183, 1006, 1007, 1063, 1013, 1008, 3438, 2213, 2232, 2480, 1013, 1022, 1027, 30523, 1035, 2558, 1035, 5796, 1006, 1057, 16703, 2558, 1007, 1025, 22017, 2140, 1045, 21724, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1035, 2558, 1035, 5796, 1006, 1057, 16703, 2558, 1007, 1025, 22017, 2140, 1045, 21724, 30526 ]
/* ------------------------------------------------------------------ * Copyright (C) 2008 PacketVideo * * 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. * ------------------------------------------------------------------- */ /**************************************************************************************** Portions of this file are derived from the following 3GPP standard: 3GPP TS 26.073 ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec Available from http://www.3gpp.org (C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC) Permission to distribute, modify and use this file under the standard license terms listed above has been obtained from the copyright holder. ****************************************************************************************/ /* ------------------------------------------------------------------------------ Pathname: ./audio/gsm-amr/c/src/d8_31pf.c Functions: Date: 01/28/2002 ------------------------------------------------------------------------------ REVISION HISTORY Description: Modified to pass overflow flag through to basic math function. The flag is passed back to the calling function by pointer reference. Description: Per review comments... (1) Removed include of "count.h" and "basic_op.h" (2) Added includes of mult.h, shl.h, shr.h, add.h, sub.h, negate.h, L_mult.h, and L_shr.h Description: Replaced "int" and/or "char" with OSCL defined types. Description: ------------------------------------------------------------------------------ MODULE DESCRIPTION */ /*---------------------------------------------------------------------------- ; INCLUDES ----------------------------------------------------------------------------*/ #include "d8_31pf.h" #include "typedef.h" #include "basic_op.h" #include "cnst.h" /*---------------------------------------------------------------------------- ; MACROS ; Define module specific macros here ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; DEFINES ; Include all pre-processor statements here. Include conditional ; compile variables also. ----------------------------------------------------------------------------*/ #define NB_PULSE 8 /* number of pulses */ /* define values/representation for output codevector and sign */ #define POS_CODE 8191 #define NEG_CODE 8191 /*---------------------------------------------------------------------------- ; LOCAL FUNCTION DEFINITIONS ; Function Prototype declaration ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; LOCAL VARIABLE DEFINITIONS ; Variable declaration - defined here and used outside this module ----------------------------------------------------------------------------*/ /* ------------------------------------------------------------------------------ FUNCTION NAME: decompress10 ------------------------------------------------------------------------------ INPUT AND OUTPUT DEFINITIONS Inputs: MSBs -- Word16 -- MSB part of the index LSBs -- Word16 -- LSB part of the index index1 -- Word16 -- index for first pos in pos_index[] index2 -- Word16 -- index for second pos in pos_index[] index3 -- Word16 -- index for third pos in pos_index[] Outputs: pos_indx[] -- array of type Word16 -- position of 3 pulses (decompressed) pOverflow Flag set when overflow occurs, pointer of type Flag * Returns: None Global Variables Used: None Local Variables Needed: None ------------------------------------------------------------------------------ FUNCTION DESCRIPTION ------------------------------------------------------------------------------ REQUIREMENTS None ------------------------------------------------------------------------------ REFERENCES d8_31pf.c, UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001 ------------------------------------------------------------------------------ PSEUDO-CODE ------------------------------------------------------------------------------ RESOURCES USED [optional] When the code is written for a specific target processor the the resources used should be documented below. HEAP MEMORY USED: x bytes STACK MEMORY USED: x bytes CLOCK CYCLES: (cycle count equation for this function) + (variable used to represent cycle count for each subroutine called) where: (cycle count variable) = cycle count for [subroutine name] ------------------------------------------------------------------------------ CAUTION [optional] [State any special notes, constraints or cautions for users of this function] ------------------------------------------------------------------------------ */ static void decompress10( Word16 MSBs, /* i : MSB part of the index */ Word16 LSBs, /* i : LSB part of the index */ Word16 index1, /* i : index for first pos in pos_index[] */ Word16 index2, /* i : index for second pos in pos_index[] */ Word16 index3, /* i : index for third pos in pos_index[] */ Word16 pos_indx[], /* o : position of 3 pulses (decompressed) */ Flag *pOverflow) /* o : Flag set when overflow occurs */ { Word16 ia; Word16 ib; Word16 ic; Word32 tempWord32; /* pos_indx[index1] = ((MSBs-25*(MSBs/25))%5)*2 + (LSBs-4*(LSBs/4))%2; pos_indx[index2] = ((MSBs-25*(MSBs/25))/5)*2 + (LSBs-4*(LSBs/4))/2; pos_indx[index3] = (MSBs/25)*2 + LSBs/4; */ if (MSBs > 124) { MSBs = 124; } ia = mult( MSBs, 1311, pOverflow); tempWord32 = L_mult( ia, 25, pOverflow); ia = (Word16) L_shr( tempWord32, 1, pOverflow); ia = sub( MSBs, ia, pOverflow); ib = mult( ia, 6554, pOverflow); tempWord32 = L_mult( ib, 5, pOverflow); ib = (Word16) L_shr( tempWord32, 1, pOverflow); ib = sub( ia, ib, pOverflow); ib = shl( ib, 1, pOverflow); ic = shr( LSBs, 2, pOverflow); ic = shl( ic, 2, pOverflow); ic = sub( LSBs, ic, pOverflow); pos_indx[index1] = add( (Word16)ib, (Word16)(ic & 0x1), pOverflow); ib = mult( ia, 6554, pOverflow); ib = shl( ib, 1, pOverflow); ic = shr( ic, 1, pOverflow); pos_indx[index2] = add( ib, ic, pOverflow); ib = shr( LSBs, 2, pOverflow); ic = mult( MSBs, 1311, pOverflow); ic = shl( ic, 1, pOverflow); pos_indx[index3] = add( ib, ic, pOverflow); return; } /* ------------------------------------------------------------------------------ FUNCTION NAME: decompress_code ------------------------------------------------------------------------------ INPUT AND OUTPUT DEFINITIONS Inputs: indx[] -- array of type Word16 -- position and sign of 8 pulses (compressed) Outputs: sign_indx[] -- array of type Word16 -- signs of 4 pulses (signs only) pos_indx[] -- array of type Word16 -- position index of 8 pulses (position only) pOverflow pointer to type Flag -- Flag set when overflow occurs Returns: None Global Variables Used: None Local Variables Needed: None ------------------------------------------------------------------------------ FUNCTION DESCRIPTION PURPOSE: decompression of the linear codewords to 4+three indeces one bit from each pulse is made robust to errors by minimizing the phase shift of a bit error. 4 signs (one for each track) i0,i4,i1 => one index (7+3) bits, 3 LSBs more robust i2,i6,i5 => one index (7+3) bits, 3 LSBs more robust i3,i7 => one index (5+2) bits, 2-3 LSbs more robust ------------------------------------------------------------------------------ REQUIREMENTS None ------------------------------------------------------------------------------ REFERENCES d8_31pf.c, UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001 ------------------------------------------------------------------------------ PSEUDO-CODE ------------------------------------------------------------------------------ RESOURCES USED [optional] When the code is written for a specific target processor the the resources used should be documented below. HEAP MEMORY USED: x bytes STACK MEMORY USED: x bytes CLOCK CYCLES: (cycle count equation for this function) + (variable used to represent cycle count for each subroutine called) where: (cycle count variable) = cycle count for [subroutine name] ------------------------------------------------------------------------------ CAUTION [optional] [State any special notes, constraints or cautions for users of this function] ------------------------------------------------------------------------------ */ static void decompress_code( Word16 indx[], /* i : position and sign of 8 pulses (compressed) */ Word16 sign_indx[], /* o : signs of 4 pulses (signs only) */ Word16 pos_indx[], /* o : position index of 8 pulses (position only) */ Flag *pOverflow /* o : Flag set when overflow occurs */ ) { Word16 i; Word16 ia; Word16 ib; Word16 MSBs; Word16 LSBs; Word16 MSBs0_24; Word32 tempWord32; for (i = 0; i < NB_TRACK_MR102; i++) { sign_indx[i] = indx[i]; } /* First index: 10x10x10 -> 2x5x2x5x2x5-> 125x2x2x2 -> 7+1x3 bits MSBs = indx[NB_TRACK]/8; LSBs = indx[NB_TRACK]%8; */ MSBs = shr( indx[NB_TRACK_MR102], 3, pOverflow); LSBs = indx[NB_TRACK_MR102] & 0x7; decompress10( MSBs, LSBs, 0, 4, 1, pos_indx, pOverflow); /* Second index: 10x10x10 -> 2x5x2x5x2x5-> 125x2x2x2 -> 7+1x3 bits MSBs = indx[NB_TRACK+1]/8; LSBs = indx[NB_TRACK+1]%8; */ MSBs = shr( indx[NB_TRACK_MR102+1], 3, pOverflow); LSBs = indx[NB_TRACK_MR102+1] & 0x7; decompress10( MSBs, LSBs, 2, 6, 5, pos_indx, pOverflow); /* Third index: 10x10 -> 2x5x2x5-> 25x2x2 -> 5+1x2 bits MSBs = indx[NB_TRACK+2]/4; LSBs = indx[NB_TRACK+2]%4; MSBs0_24 = (MSBs*25+12)/32; if ((MSBs0_24/5)%2==1) pos_indx[3] = (4-(MSBs0_24%5))*2 + LSBs%2; else pos_indx[3] = (MSBs0_24%5)*2 + LSBs%2; pos_indx[7] = (MSBs0_24/5)*2 + LSBs/2; */ MSBs = shr( indx[NB_TRACK_MR102+2], 2, pOverflow); LSBs = indx[NB_TRACK_MR102+2] & 0x3; tempWord32 = L_mult( MSBs, 25, pOverflow); ia = (Word16) L_shr( tempWord32, 1, pOverflow); ia = add( ia, 12, pOverflow); MSBs0_24 = shr( ia, 5, pOverflow); ia = mult( MSBs0_24, 6554, pOverflow); ia &= 1; ib = mult( MSBs0_24, 6554, pOverflow); tempWord32 = L_mult( ib, 5, pOverflow); ib = (Word16) L_shr( tempWord32, 1, pOverflow); ib = sub( MSBs0_24, ib, pOverflow); if (ia == 1) { ib = sub( 4, ib, pOverflow); } ib = shl( ib, 1, pOverflow); ia = LSBs & 0x1; pos_indx[3] = add( ib, ia, pOverflow); ia = mult( MSBs0_24, 6554, pOverflow); ia = shl( ia, 1, pOverflow); ib = shr( LSBs, 1, pOverflow); pos_indx[7] = add( ia, ib, pOverflow); } /* ------------------------------------------------------------------------------ FUNCTION NAME: dec_8i40_31bits ------------------------------------------------------------------------------ INPUT AND OUTPUT DEFINITIONS Inputs: index array of type Word16 -- index of 8 pulses (sign+position) Outputs: cod array of type Word16 -- algebraic (fixed) codebook excitation pOverflow pointer to type Flag -- Flag set when overflow occurs Returns: None Global Variables Used: None Local Variables Needed: None ------------------------------------------------------------------------------ FUNCTION DESCRIPTION PURPOSE: Builds the innovative codevector from the received index of algebraic codebook. ------------------------------------------------------------------------------ REQUIREMENTS None ------------------------------------------------------------------------------ REFERENCES d8_31pf.c, UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001 ------------------------------------------------------------------------------ PSEUDO-CODE ------------------------------------------------------------------------------ RESOURCES USED [optional] When the code is written for a specific target processor the the resources used should be documented below. HEAP MEMORY USED: x bytes STACK MEMORY USED: x bytes CLOCK CYCLES: (cycle count equation for this function) + (variable used to represent cycle count for each subroutine called) where: (cycle count variable) = cycle count for [subroutine name] ------------------------------------------------------------------------------ CAUTION [optional] [State any special notes, constraints or cautions for users of this function] ------------------------------------------------------------------------------ */ void dec_8i40_31bits( Word16 index[], /* i : index of 8 pulses (sign+position) */ Word16 cod[], /* o : algebraic (fixed) codebook excitation */ Flag *pOverflow /* o : Flag set when overflow occurs */ ) { Word16 i; Word16 j; Word16 pos1; Word16 pos2; Word16 sign; Word32 tempWord32; Word16 linear_signs[NB_TRACK_MR102]; Word16 linear_codewords[NB_PULSE]; for (i = 0; i < L_CODE; i++) { cod[i] = 0; } decompress_code( index, linear_signs, linear_codewords, pOverflow); /* decode the positions and signs of pulses and build the codeword */ for (j = 0; j < NB_TRACK_MR102; j++) { /* compute index i */ i = linear_codewords[j]; tempWord32 = L_mult( i, 4, pOverflow); i = (Word16) L_shr( tempWord32, 1, pOverflow); pos1 = add( i, j, pOverflow); /* position of pulse "j" */ if (linear_signs[j] == 0) { sign = POS_CODE; /* +1.0 */ } else { sign = -NEG_CODE; /* -1.0 */ } cod[pos1] = sign; /* compute index i */ i = add( j, 4, pOverflow); i = linear_codewords[i]; tempWord32 = L_mult( i, 4, pOverflow); i = (Word16) L_shr( tempWord32, 1, pOverflow); pos2 = add( i, j, pOverflow); /* position of pulse "j+4" */ if (pos2 < pos1) { sign = negate(sign); } cod[pos2] = add( cod[pos2], sign, pOverflow); } /* for (j = 0; j < NB_TRACK_MR102; j++) */ return; }
MoSync/MoSync
intlibs/gsm_amr/amr_nb/dec/src/d8_31pf.cpp
C++
gpl-2.0
18,019
[ 30522, 1013, 1008, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1008, 9385, 1006, 1039, 1007, 2263, 14771, 17258, 8780, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 30524, 2015, 1008, 1998, 12546, 2104, 1996, 6105, 1012, 1008, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1008, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 8810, 1997, 2023, 5371, 2024, 5173, 2013, 1996, 2206, 1017, 21600, 2361, 3115, 1024, 1017, 21600, 2361, 24529, 2656, 1012, 5718, 2509, 2019, 5332, 1011, 1039, 3642, 2005, 1996, 19293, 4800, 1011, 3446, 1006, 2572, 2099, 1007, 4613, 3642, 2278, 2800, 2013, 8299, 1024, 1013, 1013, 7479, 1012, 1017, 21600, 2361, 1012, 8917, 1006, 1039, 1007, 2432, 1010, 1017, 21600, 2361, 13296, 5826, 1006, 10488, 2497, 1010, 2012, 2483, 1010, 10507, 3736, 1010, 3802, 5332, 1010, 23746, 2050, 1010, 23746, 2278, 1007, 6656, 2000, 16062, 1010, 19933, 1998, 2224, 2023, 5371, 2104, 1996, 3115, 6105, 3408, 3205, 2682, 2038, 2042, 4663, 2013, 1996, 9385, 9111, 1012, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30523, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 1008, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 30526 ]
[ 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 1008, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 30526 ]
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sqoop.hive.numerictypes; import org.apache.sqoop.hive.minicluster.HiveMiniCluster; import org.apache.sqoop.importjob.configuration.HiveTestConfiguration; import org.apache.sqoop.importjob.numerictypes.NumericTypesImportTestBase; import org.apache.sqoop.testutil.ArgumentArrayBuilder; import org.apache.sqoop.testutil.HiveServer2TestUtil; import org.apache.sqoop.testutil.NumericTypesTestUtils; import static java.util.Arrays.deepEquals; import static org.junit.Assert.assertTrue; public abstract class NumericTypesHiveImportTestBase<T extends HiveTestConfiguration> extends NumericTypesImportTestBase<T> { public NumericTypesHiveImportTestBase(T configuration, boolean failWithoutExtraArgs, boolean failWithPaddingOnly, HiveMiniCluster hiveMiniCluster, HiveServer2TestUtil hiveServer2TestUtil) { super(configuration, failWithoutExtraArgs, failWithPaddingOnly); this.hiveServer2TestUtil = hiveServer2TestUtil; this.hiveMiniCluster = hiveMiniCluster; } private final HiveMiniCluster hiveMiniCluster; private final HiveServer2TestUtil hiveServer2TestUtil; @Override public ArgumentArrayBuilder getArgsBuilder() { ArgumentArrayBuilder builder = new ArgumentArrayBuilder() .withCommonHadoopFlags() .withProperty("parquetjob.configurator.implementation", "hadoop") .withOption("connect", getAdapter().getConnectionString()) .withOption("table", getTableName()) .withOption("hive-import") .withOption("hs2-url", hiveMiniCluster.getUrl()) .withOption("num-mappers", "1") .withOption("as-parquetfile") .withOption("delete-target-dir"); NumericTypesTestUtils.addEnableParquetDecimal(builder); return builder; } @Override public void verify() { // The result contains a byte[] so we have to use Arrays.deepEquals() to assert. Object[] firstRow = hiveServer2TestUtil.loadRawRowsFromTable(getTableName()).iterator().next().toArray(); Object[] expectedResultsForHive = getConfiguration().getExpectedResultsForHive(); assertTrue(deepEquals(expectedResultsForHive, firstRow)); } }
apache/sqoop
src/test/org/apache/sqoop/hive/numerictypes/NumericTypesHiveImportTestBase.java
Java
apache-2.0
2,976
[ 30522, 1013, 1008, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 1008, 2030, 2062, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 1008, 5500, 2007, 2023, 2147, 2005, 3176, 2592, 1008, 4953, 9385, 6095, 1012, 1996, 2004, 2546, 15943, 2023, 5371, 1008, 2000, 2017, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1008, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 1008, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1026, 1052, 1028, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1026, 1052, 1028, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 26736, 1012, 16371, 25531, 13874, 2015, 1025, 12324, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 26736, 1012, 7163, 20464, 19966, 2121, 1012, 26736, 25300, 20464, 19966, 2121, 1025, 12324, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 12324, 5558, 2497, 1012, 9563, 1012, 26736, 22199, 8663, 8873, 27390, 3370, 1025, 12324, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 12324, 5558, 2497, 1012, 16371, 25531, 13874, 2015, 1012, 16371, 25531, 13874, 5332, 8737, 11589, 22199, 15058, 1025, 12324, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 3231, 21823, 2140, 1012, 6685, 2906, 9447, 8569, 23891, 2099, 1025, 12324, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 3231, 21823, 2140, 1012, 26736, 8043, 6299, 2475, 22199, 21823, 2140, 1025, 12324, 8917, 1012, 15895, 1012, 5490, 18589, 1012, 3231, 21823, 2140, 1012, 16371, 25531, 13874, 13473, 3367, 21823, 4877, 1025, 12324, 10763, 9262, 1012, 21183, 4014, 1012, 27448, 1012, 2784, 2063, 26426, 2015, 1025, 12324, 10763, 8917, 1012, 12022, 4183, 1012, 20865, 1012, 20865, 16344, 5657, 1025, 2270, 10061, 2465, 16371, 25531, 13874, 6182, 3726, 5714, 6442, 22199, 15058, 1026, 1056, 8908, 26736, 22199, 8663, 8873, 27390, 3370, 1028, 8908, 16371, 25531, 13874, 5332, 8737, 11589, 22199, 15058, 1026, 1056, 1028, 1063, 2270, 16371, 25531, 13874, 6182, 3726, 5714, 6442, 22199, 15058, 1006, 1056, 9563, 1010, 22017, 20898, 8246, 24415, 5833, 10288, 6494, 2906, 5620, 1010, 22017, 20898, 8246, 24415, 15455, 4667, 2239, 2135, 1010, 26736, 25300, 20464, 19966, 2121, 26736, 25300, 20464, 19966, 2121, 1010, 26736, 8043, 6299, 2475, 22199, 21823, 2140, 26736, 8043, 6299, 2475, 22199, 21823, 2140, 1007, 1063, 3565, 1006, 9563, 1010, 8246, 24415, 5833, 10288, 6494, 2906, 5620, 1010, 8246, 24415, 15455, 4667, 2239, 2135, 1007, 1025, 2023, 1012, 26736, 8043, 6299, 30524, 22199, 21823, 2140, 1025, 2023, 1012, 26736, 25300, 20464, 19966, 2121, 1027, 26736, 25300, 20464, 19966, 2121, 1025, 1065, 2797, 2345, 26736, 30523, 2475, 22199, 21823, 2140, 1027, 26736, 8043, 6299, 2475, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2475, 22199, 21823, 2140, 1027, 26736, 8043, 6299, 2475, 30526 ]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../../..">Unstable</a></li> <li class="active"><a href="">8.5.dev / contrib:finger-tree dev</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="../../../../../about.html">About</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../../..">« Up</a> <h1>contrib:finger-tree <small>dev</small></h1> <table class="table table-striped text-center"> <thead> <tr> <td>Date</td> <td>Time</td> <td>Relative</td> <td>Status</td> </tr> </thead> <tbody> <tr> <td>2015-01-29</td> <td>18:50:21</td> <td><script>document.write(moment("2015-01-29 18:50:21 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="danger"><a href="2015-01-29_18-50-21.html">Error</a></td> </tr> </tbody> </table> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io-old
clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.5.dev/contrib:finger-tree/dev/index.html
HTML
mit
3,303
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1000, 1028, 1026, 2516, 1028, 2522, 4160, 6847, 1026, 1013, 2516, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 2460, 12690, 12696, 1000, 2828, 1027, 1000, 3746, 1013, 1052, 3070, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 6904, 7903, 2239, 1012, 1052, 3070, 1000, 1013, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 6879, 6494, 2361, 1012, 8117, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 1013, 1013, 4098, 19797, 2078, 1012, 6879, 6494, 15042, 2094, 2078, 1012, 4012, 1013, 15489, 1011, 12476, 1013, 1018, 1012, 1016, 1012, 1014, 1013, 20116, 2015, 1013, 15489, 1011, 12476, 1012, 8117, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 2617, 1012, 8117, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 999, 1011, 1011, 16129, 2629, 11895, 2213, 1998, 6869, 1012, 1046, 2015, 29464, 2620, 30524, 3081, 5371, 1024, 1013, 1013, 1011, 1011, 1028, 1026, 999, 1011, 1011, 1031, 2065, 8318, 29464, 1023, 1033, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 16770, 1024, 1013, 1013, 9808, 2015, 1012, 4098, 19797, 2078, 1012, 4012, 1013, 16129, 2629, 6182, 2615, 1013, 1017, 1012, 1021, 1012, 1016, 1013, 16129, 2629, 6182, 2615, 1012, 8117, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 16770, 1024, 1013, 1013, 9808, 2015, 1012, 4098, 19797, 2078, 1012, 4012, 1013, 6869, 1013, 1015, 1012, 1018, 1012, 1016, 1013, 6869, 1012, 8117, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 999, 1031, 2203, 10128, 1033, 1011, 1011, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 11661, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 6583, 26493, 2906, 6583, 26493, 2906, 1011, 12398, 1000, 2535, 1027, 1000, 9163, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 11661, 1011, 8331, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 6583, 26493, 2906, 1011, 20346, 1000, 1028, 1026, 6462, 2828, 1027, 1000, 6462, 1000, 2465, 1027, 1000, 6583, 26493, 2906, 1011, 2000, 24679, 7798, 1000, 2951, 1011, 2000, 24679, 1027, 1000, 7859, 1000, 2951, 1011, 4539, 1027, 1000, 1001, 6583, 26493, 2906, 1000, 9342, 1011, 4423, 1027, 1000, 6270, 1000, 9342, 1011, 7711, 1027, 30523, 2490, 1997, 16129, 2629, 3787, 1998, 2865, 10861, 5134, 1011, 1011, 1028, 1026, 999, 1011, 1011, 5432, 1024, 6869, 1012, 1046, 2015, 2987, 1005, 1056, 2147, 2065, 2017, 3193, 1996, 3931, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2490, 1997, 16129, 2629, 3787, 1998, 2865, 10861, 5134, 1011, 1011, 1028, 1026, 999, 1011, 1011, 5432, 1024, 6869, 1012, 1046, 2015, 2987, 1005, 1056, 2147, 2065, 2017, 3193, 1996, 3931, 30526 ]
<html> <head> <title> NLRB targets workers' rights (again) </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table width="744" cellspacing="0" cellpadding="0" border="0"> <tr><td width="474"><a name="Top"></a><?php include "../../legacy-includes/TopLogo.htmlf" ?></td> <td width="270"><?php include "../../legacy-includes/TopAd.htmlf" ?> </td></tr></table> <table width="744" cellspacing="0" cellpadding="0" border="0"> <tr><td width="18" bgcolor="FFCC66"></td> <td width="108" bgcolor="FFCC66" valign=top><?php include "../../legacy-includes/LeftButtons.htmlf" ?></td> <td width="18"></td> <td width="480" valign="top"> <?php include "../../legacy-includes/BodyInsert.htmlf" ?> <font face="Arial, Helvetica, sans-serif" size="2"><b>ISSUES IN THE LABOR MOVEMENT</b></font><br> <font face="Times New Roman, Times, serif" size="5"><b>NLRB targets workers' rights (again)</b></font><p> <font face="Times New Roman, Times, serif" size="2"><b>By Darrin Hoop, UFCW Local 21</b></font><font face="Arial, Helvetica, sans-serif" size="2"> | November 3, 2006 | Page 15</font><p> <font face="Times New Roman, Times, serif" size="3">THE KENTUCKY River case recently handed down by the National Labor Relations Board (NLRB) could prevent millions of workers labeled as "supervisors" from joining or remaining in unions.<p> But it's only the latest in a series of anti-union rulings by that body under the administration of George W. Bush. The NLRB under Bush has also stripped the right to form unions from graduate research assistants, disabled workers in vocational programs, and workers hired through temporary agencies.<p> Now the Kentucky River case makes a bleak picture for workers' rights even worse.<p> According to a 2002 Government Accounting Office report, 25 percent of the civilian workforce--32 million workers--is without any legal protection to form unions. These include, in part, farm workers, domestic workers and independent contractors.<p> The largest group of employees without collective bargaining rights, some 10.2 million people, are those deemed supervisors by the NLRB--a category that now includes charge nurses, according to the Kentucky River ruling.<p> In order to understand how labor has gotten to this point, we must look at the history of the NLRB, a federal agency with headquarters in Washington and 34 regional offices. It's run by a five-person board whose members are appointed by the president, with the approval of the Senate, for staggered five-year terms.<p> The NLRB's job is to define bargaining units, hold elections, certify union elections and to interpret and apply the provisions of the National Labor Relations Act (NLRA) of 1935, originally known as the Wagner Act. The law acknowledged workers' right to form unions and made it illegal for employers to refuse to bargain with them.<p> Roosevelt backed the NLRA because he recognized that working-class anger was reaching a boiling point in the early 1930s. He hoped to prevent a working-class rebellion, and he needed workers' votes in order to win re-election in 1936.<p> The Taft-Hartley Act, passed in 1947, dramatically restricted the NLRA in response to the biggest strike wave in U.S. history.<p> During the 12 months after the Second World War ended in 1945, more than five million workers were involved in strikes. Taft-Hartley outlawed wildcat strikes, solidarity strikes known as secondary boycotts, and mass picketing. It also required all union officials to sign affidavits stating that they weren't members of the Communist Party.<p> A less well-known provision excluded supervisors from the right to join unions by including a broad definition of employees who have a managerial responsibility to hire, fire, or discipline other employees if "the exercise of such authority is not of a merely routine or clerical nature, but requires the use of independent judgment"--language cited in the Kentucky River ruling.<p> Democratic President Harry Truman vetoed Taft-Hartley in June 1947, knowing that the Republican-controlled Congress had more than enough votes to override his veto. By the middle of 1948, Truman had used the law 12 times to break strikes. As Sharon Smith points out in her book <i>Subterranean Fire,</i> by 1957, the law had severely weakened the labor movement.<p> For almost 60 years, the official labor movement has failed to mount a successful challenge to the crushing weight of Taft Hartley. Today, reliance on the Democratic Party, labor-management partnership, corporate campaigns, and a weakening of union democracy has opened the door to a new round of attacks.<p> As an increasing number of U.S. workers are thrown back into pre-NLRA 1935 working conditions, workers would do well to follow the model of unions like the California Nurses Association, where 30,000 members have already signed pledges to strike if their employers try to implement the new Kentucky River ruling.<p> After all, it was the three great mass strikes of 1934 in Toledo, San Francisco and Minneapolis that compelled Congress to "grant" the right to join unions under the original NLRA. Learning from that history will be key to politically arming the labor movement to move forward today.<p> <?php include "../../legacy-includes/BottomNavLinks.htmlf" ?> <td width="12"></td> <td width="108" valign="top"> <?php include "../../legacy-includes/RightAdFolder.htmlf" ?> </td> </tr> </table> </body> </html>
ISO-tech/sw-d8
web/2006-2/608/608_15_NLRB.php
PHP
mit
5,633
[ 30522, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 17953, 15185, 7889, 3667, 1005, 2916, 1006, 2153, 1007, 1026, 1013, 2516, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 11163, 1011, 6070, 28154, 1011, 1015, 1000, 1028, 1026, 1029, 25718, 2421, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 8027, 1011, 2950, 1013, 5896, 1012, 16129, 2546, 1000, 1029, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1038, 18195, 12898, 2099, 1027, 1000, 1001, 21461, 4246, 9468, 1000, 3793, 1027, 1000, 2199, 8889, 2692, 1000, 4957, 1027, 1000, 5585, 8889, 8889, 1000, 1058, 13767, 1027, 1000, 20982, 8889, 2692, 1000, 4862, 8950, 1027, 1000, 4002, 22394, 28756, 1000, 2187, 7849, 11528, 1027, 1000, 1014, 1000, 2327, 7849, 11528, 1027, 1000, 1014, 1000, 1028, 1026, 2795, 9381, 1027, 1000, 6356, 2549, 1000, 4442, 19498, 2075, 1027, 1000, 1014, 1000, 3526, 15455, 4667, 1027, 1000, 1014, 1000, 3675, 1027, 1000, 1014, 1000, 1028, 1026, 19817, 1028, 1026, 14595, 9381, 1027, 1000, 4700, 2549, 1000, 1028, 1026, 1037, 2171, 1027, 1000, 2327, 1000, 1028, 1026, 1013, 1037, 1028, 1026, 1029, 25718, 2421, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 8027, 1011, 2950, 1013, 2327, 21197, 2080, 1012, 16129, 2546, 1000, 1029, 1028, 1026, 1013, 14595, 1028, 1026, 14595, 9381, 1027, 1000, 13756, 1000, 1028, 1026, 1029, 25718, 2421, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 8027, 1011, 2950, 1013, 2327, 4215, 1012, 16129, 2546, 1000, 1029, 1028, 1026, 1013, 14595, 1028, 1026, 1013, 19817, 1028, 1026, 1013, 2795, 1028, 1026, 2795, 9381, 1027, 1000, 6356, 2549, 1000, 4442, 19498, 2075, 1027, 1000, 1014, 1000, 3526, 15455, 4667, 1027, 1000, 1014, 1000, 3675, 1027, 1000, 1014, 1000, 1028, 1026, 19817, 1028, 1026, 14595, 9381, 1027, 1000, 2324, 1000, 1038, 18195, 12898, 2099, 1027, 1000, 21461, 9468, 28756, 1000, 1028, 1026, 1013, 14595, 1028, 1026, 14595, 9381, 1027, 1000, 10715, 1000, 1038, 18195, 12898, 2099, 1027, 1000, 21461, 9468, 28756, 1000, 11748, 23773, 1027, 2327, 1028, 1026, 1029, 25718, 2421, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 8027, 1011, 2950, 1013, 2187, 8569, 15474, 2015, 1012, 16129, 2546, 1000, 1029, 1028, 1026, 1013, 14595, 30524, 25718, 2421, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 8027, 1011, 2950, 1013, 2303, 7076, 8743, 1012, 16129, 2546, 1000, 1029, 1028, 1026, 15489, 2227, 1027, 1000, 9342, 2140, 1010, 2002, 2140, 19510, 5555, 1010, 20344, 1011, 14262, 10128, 1000, 2946, 1027, 1000, 1016, 1000, 1028, 1026, 1038, 1028, 3314, 1999, 1996, 4450, 2929, 1026, 1013, 1038, 1028, 1026, 1013, 15489, 1028, 1026, 7987, 1028, 1026, 15489, 2227, 1027, 1000, 2335, 2047, 3142, 1010, 2335, 1010, 14262, 10128, 1000, 2946, 1027, 1000, 1019, 1000, 1028, 1026, 1038, 1028, 17953, 15185, 7889, 3667, 1005, 2916, 1006, 2153, 1007, 1026, 1013, 1038, 1028, 1026, 1013, 15489, 1028, 1026, 30523, 1028, 1026, 14595, 9381, 1027, 1000, 2324, 1000, 1028, 1026, 1013, 14595, 1028, 1026, 14595, 9381, 1027, 1000, 17295, 1000, 11748, 23773, 1027, 1000, 2327, 1000, 1028, 1026, 1029, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1028, 1026, 14595, 9381, 1027, 1000, 2324, 1000, 1028, 1026, 1013, 14595, 1028, 1026, 14595, 9381, 1027, 1000, 17295, 1000, 11748, 23773, 1027, 1000, 2327, 1000, 1028, 1026, 1029, 30526 ]
<?php use Illuminate\Session\TokenMismatchException; /** * FRONT */ Route::get('contact', [ 'as' => 'contact', 'uses' => 'Foostart\Contact\Controllers\Front\ContactFrontController@index' ]); /** * ADMINISTRATOR */ Route::group(['middleware' => ['web']], function () { Route::group(['middleware' => ['admin_logged', 'can_see']], function () { //////////////////////////////////////////////////////////////////////// ////////////////////////////SAMPLES ROUTE/////////////////////////////// //////////////////////////////////////////////////////////////////////// /** * list */ Route::get('admin/contact', [ 'as' => 'admin_contact', 'uses' => 'Foostart\Contact\Controllers\Admin\ContactAdminController@index' ]); /** * edit-add */ Route::get('admin/contact/edit', [ 'as' => 'admin_contact.edit', 'uses' => 'Foostart\Contact\Controllers\Admin\ContactAdminController@edit' ]); /** * post */ Route::post('admin/contact/edit', [ 'as' => 'admin_contact.post', 'uses' => 'Foostart\Contact\Controllers\Admin\ContactAdminController@post' ]); /** * delete */ Route::get('admin/contact/delete', [ 'as' => 'admin_contact.delete', 'uses' => 'Foostart\Contact\Controllers\Admin\ContactAdminController@delete' ]); //////////////////////////////////////////////////////////////////////// ////////////////////////////SAMPLES ROUTE/////////////////////////////// //////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////// // ////////////////////////////CATEGORIES/////////////////////////////// // //////////////////////////////////////////////////////////////////////// // Route::get('admin/contact_category', [ // 'as' => 'admin_contact_category', // 'uses' => 'Foostart\Contact\Controllers\Admin\ContactCategoryAdminController@index' // ]); // // /** // * edit-add // */ // Route::get('admin/contact_category/edit', [ // 'as' => 'admin_contact_category.edit', // 'uses' => 'Foostart\Contact\Controllers\Admin\ContactCategoryAdminController@edit' // ]); // // /** // * post // */ // Route::post('admin/contact_category/edit', [ // 'as' => 'admin_contact_category.post', // 'uses' => 'Foostart\Contact\Controllers\Admin\ContactCategoryAdminController@post' // ]); // /** // * delete // */ // Route::get('admin/contact_category/delete', [ // 'as' => 'admin_contact_category.delete', // 'uses' => 'Foostart\Contact\Controllers\Admin\ContactCategoryAdminController@delete' // ]); // //////////////////////////////////////////////////////////////////////// // ////////////////////////////CATEGORIES/////////////////////////////// // //////////////////////////////////////////////////////////////////////// }); });
tvhai01/cdw1_2016_2017_c
laravel/packages/foostart/contact/src/routes.php
PHP
apache-2.0
3,292
[ 30522, 1026, 1029, 25718, 2224, 5665, 12717, 12556, 1032, 5219, 1032, 19204, 26725, 4017, 5403, 2595, 24422, 1025, 1013, 1008, 1008, 1008, 2392, 1008, 1013, 2799, 1024, 1024, 2131, 1006, 1005, 3967, 1005, 1010, 1031, 1005, 2004, 1005, 1027, 1028, 1005, 3967, 1005, 1010, 1005, 3594, 1005, 1027, 1028, 1005, 29379, 14117, 2102, 1032, 3967, 1032, 21257, 1032, 2392, 1032, 3967, 12792, 8663, 13181, 10820, 1030, 5950, 1005, 1033, 1007, 1025, 1013, 1008, 1008, 1008, 8911, 1008, 1013, 2799, 1024, 1024, 2177, 1006, 1031, 1005, 2690, 8059, 1005, 1027, 1028, 1031, 1005, 4773, 1005, 1033, 1033, 1010, 3853, 1006, 1007, 1063, 2799, 1024, 1024, 2177, 1006, 1031, 1005, 2690, 30524, 1010, 1005, 2064, 1035, 2156, 1005, 1033, 1033, 1010, 3853, 1006, 1007, 1063, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 8168, 2799, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1008, 1008, 1008, 2862, 1008, 1013, 2799, 1024, 1024, 2131, 1006, 1005, 4748, 10020, 1013, 3967, 1005, 1010, 1031, 1005, 2004, 1005, 1027, 1028, 1005, 4748, 10020, 1035, 3967, 1005, 1010, 1005, 3594, 1005, 1027, 1028, 1005, 29379, 14117, 2102, 1032, 3967, 1032, 21257, 1032, 4748, 10020, 1032, 3967, 4215, 10020, 8663, 13181, 10820, 1030, 5950, 1005, 1033, 1007, 1025, 1013, 1008, 1008, 1008, 10086, 1011, 5587, 1008, 1013, 2799, 1024, 1024, 2131, 1006, 1005, 4748, 10020, 1013, 3967, 1013, 10086, 1005, 1010, 1031, 1005, 2004, 1005, 1027, 1028, 1005, 4748, 10020, 1035, 3967, 1012, 10086, 1005, 1010, 1005, 3594, 1005, 1027, 1028, 1005, 29379, 14117, 2102, 1032, 3967, 1032, 21257, 1032, 4748, 10020, 1032, 3967, 4215, 10020, 8663, 13181, 10820, 1030, 10086, 1005, 1033, 1007, 1025, 1013, 1008, 1008, 1008, 2695, 1008, 1013, 2799, 1024, 1024, 2695, 1006, 1005, 4748, 10020, 1013, 3967, 1013, 10086, 1005, 1010, 1031, 1005, 2004, 1005, 1027, 1028, 1005, 4748, 10020, 1035, 3967, 1012, 30523, 8059, 1005, 1027, 1028, 1031, 1005, 4748, 10020, 1035, 26618, 1005, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8059, 1005, 1027, 1028, 1031, 1005, 4748, 10020, 1035, 26618, 1005, 30526 ]
using System; using System.Linq.Expressions; using System.Threading; using System.Threading.Tasks; namespace LinqToDB.Linq { using LinqToDB.Expressions; using SqlQuery; static partial class QueryRunner { public static class DropTable<T> { public static void Query( IDataContext dataContext, string? tableName, string? serverName, string? databaseName, string? schemaName, bool? ifExists, TableOptions tableOptions) { var sqlTable = new SqlTable<T>(dataContext.MappingSchema); var dropTable = new SqlDropTableStatement(sqlTable); if (tableName != null) sqlTable.PhysicalName = tableName; if (serverName != null) sqlTable.Server = serverName; if (databaseName != null) sqlTable.Database = databaseName; if (schemaName != null) sqlTable.Schema = schemaName; if (tableOptions.IsSet()) sqlTable.TableOptions = tableOptions; sqlTable.Set(ifExists, TableOptions.DropIfExists); var query = new Query<int>(dataContext, null) { Queries = { new QueryInfo { Statement = dropTable } } }; SetNonQueryQuery(query); query.GetElement(dataContext, ExpressionInstances.UntypedNull, null, null); } public static async Task QueryAsync( IDataContext dataContext, string? tableName, string? serverName, string? databaseName, string? schemaName, bool? ifExists, TableOptions tableOptions, CancellationToken token) { var sqlTable = new SqlTable<T>(dataContext.MappingSchema); var dropTable = new SqlDropTableStatement(sqlTable); if (tableName != null) sqlTable.PhysicalName = tableName; if (serverName != null) sqlTable.Server = serverName; if (databaseName != null) sqlTable.Database = databaseName; if (schemaName != null) sqlTable.Schema = schemaName; if (tableOptions.IsSet()) sqlTable.TableOptions = tableOptions; sqlTable.Set(ifExists, TableOptions.DropIfExists); var query = new Query<int>(dataContext, null) { Queries = { new QueryInfo { Statement = dropTable, } } }; SetNonQueryQuery(query); await query.GetElementAsync(dataContext, ExpressionInstances.UntypedNull, null, null, token).ConfigureAwait(Common.Configuration.ContinueOnCapturedContext); } } } }
linq2db/linq2db
Source/LinqToDB/Linq/QueryRunner.DropTable.cs
C#
mit
2,397
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 11409, 4160, 1012, 11423, 1025, 2478, 2291, 1012, 11689, 2075, 1025, 2478, 2291, 1012, 11689, 2075, 1012, 8518, 1025, 3415, 15327, 11409, 4160, 3406, 18939, 1012, 11409, 4160, 1063, 2478, 11409, 4160, 3406, 18939, 1012, 11423, 1025, 2478, 29296, 4226, 2854, 1025, 10763, 7704, 2465, 23032, 23195, 1063, 2270, 10763, 2465, 4530, 10880, 1026, 1056, 1028, 1063, 2270, 10763, 11675, 23032, 1006, 16096, 2696, 8663, 18209, 2951, 8663, 18209, 1010, 5164, 1029, 2795, 18442, 1010, 5164, 1029, 8241, 18442, 1010, 5164, 1029, 7809, 18442, 1010, 5164, 1029, 8040, 28433, 18442, 1010, 22017, 2140, 1029, 2065, 10288, 5130, 1010, 2795, 7361, 9285, 2795, 7361, 9285, 1007, 1063, 13075, 29296, 10880, 1027, 2047, 29296, 10880, 1026, 1056, 1028, 1006, 2951, 8663, 18209, 1012, 12375, 22842, 2863, 1007, 1025, 13075, 4530, 10880, 1027, 2047, 29296, 25711, 10880, 9153, 18532, 4765, 1006, 29296, 10880, 1007, 1025, 2065, 1006, 2795, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 3558, 18442, 1027, 2795, 18442, 1025, 2065, 1006, 8241, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 8241, 1027, 8241, 18442, 1025, 2065, 1006, 7809, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 7809, 1027, 7809, 18442, 1025, 2065, 1006, 8040, 28433, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 8040, 28433, 1027, 8040, 28433, 18442, 1025, 2065, 1006, 2795, 7361, 9285, 1012, 26354, 3388, 1006, 1007, 1007, 29296, 10880, 1012, 2795, 30524, 1006, 2065, 10288, 5130, 1010, 2795, 7361, 9285, 1012, 4530, 29323, 9048, 12837, 1007, 1025, 13075, 23032, 1027, 2047, 23032, 1026, 20014, 1028, 1006, 2951, 8663, 18209, 1010, 19701, 1007, 1063, 10861, 5134, 1027, 1063, 2047, 23032, 2378, 14876, 1063, 4861, 1027, 4530, 10880, 1065, 1065, 1065, 1025, 2275, 8540, 4226, 2854, 4226, 2854, 1006, 23032, 1007, 1025, 23032, 1012, 2131, 12260, 3672, 1006, 2951, 8663, 18209, 1010, 3670, 7076, 26897, 2015, 1012, 4895, 13874, 2094, 11231, 3363, 1010, 19701, 1010, 19701, 1007, 1025, 1065, 2270, 10763, 2004, 6038, 2278, 4708, 23032, 3022, 6038, 2278, 1006, 16096, 2696, 8663, 18209, 2951, 8663, 18209, 1010, 5164, 1029, 2795, 18442, 1010, 5164, 1029, 8241, 18442, 1010, 5164, 1029, 7809, 18442, 1010, 5164, 1029, 8040, 28433, 18442, 1010, 22017, 2140, 1029, 2065, 10288, 5130, 1010, 2795, 7361, 9285, 2795, 7361, 9285, 1010, 16990, 18715, 2368, 19204, 1007, 1063, 13075, 29296, 10880, 1027, 2047, 29296, 10880, 1026, 1056, 1028, 1006, 2951, 8663, 18209, 1012, 12375, 22842, 2863, 1007, 1025, 13075, 4530, 10880, 1027, 2047, 29296, 25711, 10880, 9153, 18532, 4765, 1006, 29296, 10880, 1007, 1025, 2065, 1006, 2795, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 3558, 18442, 1027, 2795, 18442, 1025, 2065, 1006, 8241, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 8241, 1027, 8241, 18442, 1025, 2065, 1006, 7809, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 7809, 1027, 7809, 18442, 1025, 2065, 1006, 8040, 28433, 18442, 999, 1027, 19701, 1007, 29296, 10880, 1012, 8040, 28433, 1027, 8040, 28433, 18442, 1025, 2065, 1006, 2795, 7361, 9285, 1012, 26354, 30523, 7361, 9285, 1027, 2795, 7361, 9285, 1025, 29296, 10880, 1012, 2275, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 7361, 9285, 1027, 2795, 7361, 9285, 1025, 29296, 10880, 1012, 2275, 30526 ]
class Libqalculate < Formula desc "Library for Qalculate! program" homepage "https://qalculate.github.io/" url "https://github.com/Qalculate/libqalculate/releases/download/v2.0.0/libqalculate-2.0.0.tar.gz" sha256 "86d04362f37aa5acbc78108e0044b96fbffbaa33c309c19c8c37ac4fb46c5485" bottle do sha256 "399990694f3e020f4f52e7c84debd9f365383401b57a47dd36ebc73d90f4c306" => :sierra sha256 "8d1170eebb1d0c862beb57bf399a9af73ba10d281fc4ca13e53c4f8f3a2269a2" => :el_capitan sha256 "6d136a4bd9e77bc8a2467d776ab566ebd9dd1fe32710950695cc3a2fc15c6c86" => :yosemite end depends_on "intltool" => :build depends_on "pkg-config" => :build depends_on "cln" depends_on "glib" depends_on "gnuplot" depends_on "gettext" depends_on "mpfr" depends_on "readline" depends_on "wget" def install system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--without-icu", "--prefix=#{prefix}" system "make", "install" end test do system "#{bin}/qalc", "-nocurrencies", "(2+2)/4 hours to minutes" end end
mvbattista/homebrew-core
Formula/libqalculate.rb
Ruby
bsd-2-clause
1,142
[ 30522, 2465, 5622, 2497, 19062, 15472, 9869, 1026, 5675, 4078, 2278, 1000, 3075, 2005, 1053, 2389, 19879, 2618, 999, 2565, 1000, 2188, 13704, 1000, 16770, 1024, 1013, 1013, 1053, 2389, 19879, 2618, 1012, 21025, 2705, 12083, 1012, 22834, 1013, 1000, 24471, 2140, 1000, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 1053, 2389, 19879, 2618, 1013, 5622, 2497, 19062, 15472, 9869, 1013, 7085, 1013, 8816, 1013, 1058, 2475, 1012, 1014, 1012, 30524, 2063, 8889, 22932, 2497, 2683, 2575, 26337, 4246, 3676, 2050, 22394, 2278, 14142, 2683, 2278, 16147, 2278, 2620, 2278, 24434, 6305, 2549, 26337, 21472, 2278, 27009, 27531, 1000, 5835, 2079, 21146, 17788, 2575, 1000, 4464, 2683, 2683, 21057, 2575, 2683, 2549, 2546, 2509, 2063, 2692, 11387, 2546, 2549, 2546, 25746, 2063, 2581, 2278, 2620, 2549, 3207, 2497, 2094, 2683, 2546, 21619, 22275, 2620, 22022, 24096, 2497, 28311, 2050, 22610, 14141, 21619, 15878, 2278, 2581, 29097, 21057, 2546, 2549, 2278, 14142, 2575, 1000, 1027, 1028, 1024, 7838, 21146, 17788, 2575, 1000, 1022, 2094, 14526, 19841, 4402, 10322, 2487, 2094, 2692, 2278, 20842, 2475, 4783, 2497, 28311, 29292, 23499, 2683, 2050, 2683, 10354, 2581, 2509, 3676, 10790, 2094, 22407, 2487, 11329, 2549, 3540, 17134, 2063, 22275, 2278, 2549, 2546, 2620, 2546, 2509, 2050, 19317, 2575, 2683, 2050, 2475, 1000, 1027, 1028, 1024, 3449, 1035, 8353, 2078, 21146, 17788, 2575, 1000, 1020, 2094, 17134, 2575, 2050, 2549, 2497, 2094, 2683, 2063, 2581, 2581, 9818, 2620, 2050, 18827, 2575, 2581, 2094, 2581, 2581, 2575, 7875, 26976, 2575, 15878, 2094, 2683, 14141, 2487, 7959, 16703, 2581, 10790, 2683, 12376, 2575, 2683, 2629, 9468, 2509, 2050, 2475, 11329, 16068, 2278, 2575, 2278, 20842, 1000, 1027, 1028, 1024, 10930, 3366, 23419, 2203, 9041, 1035, 2006, 1000, 20014, 23223, 4747, 1000, 1027, 1028, 1024, 3857, 9041, 1035, 2006, 1000, 1052, 2243, 2290, 1011, 9530, 8873, 2290, 1000, 1027, 1028, 1024, 3857, 9041, 1035, 2006, 1000, 18856, 2078, 1000, 9041, 1035, 2006, 1000, 1043, 29521, 1000, 9041, 1035, 2006, 1000, 27004, 24759, 4140, 1000, 9041, 1035, 2006, 1000, 2131, 18209, 1000, 9041, 1035, 2006, 1000, 6131, 19699, 1000, 9041, 1035, 2006, 1000, 3191, 4179, 1000, 9041, 1035, 2006, 1000, 1059, 18150, 1000, 13366, 16500, 2291, 1000, 1012, 1013, 9530, 8873, 27390, 2063, 1000, 1010, 1000, 1011, 1011, 4487, 19150, 1011, 24394, 1011, 9651, 1000, 1010, 1000, 1011, 1011, 4487, 19150, 1011, 4333, 1011, 3513, 1000, 1010, 1000, 1011, 1011, 2302, 1011, 24582, 2226, 1000, 1010, 1000, 1011, 1011, 17576, 1027, 1001, 1063, 17576, 1065, 1000, 2291, 1000, 2191, 1000, 1010, 1000, 16500, 1000, 2203, 3231, 2079, 2291, 1000, 1001, 1063, 8026, 1065, 1013, 1053, 2389, 2278, 1000, 1010, 1000, 1011, 2053, 10841, 14343, 14767, 1000, 1010, 1000, 1006, 1016, 1009, 1016, 1007, 1013, 1018, 2847, 2000, 2781, 1000, 2203, 2203, 102, 0, 0, 0, 0, 0, 30523, 1014, 1013, 5622, 2497, 19062, 15472, 9869, 1011, 1016, 1012, 1014, 1012, 1014, 1012, 16985, 1012, 1043, 2480, 1000, 21146, 17788, 2575, 1000, 6564, 2094, 2692, 23777, 2575, 2475, 2546, 24434, 11057, 2629, 6305, 9818, 2581, 2620, 10790, 2620, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1014, 1013, 5622, 2497, 19062, 15472, 9869, 1011, 1016, 1012, 1014, 1012, 1014, 1012, 16985, 1012, 1043, 2480, 1000, 21146, 17788, 2575, 1000, 6564, 2094, 2692, 23777, 2575, 2475, 2546, 24434, 11057, 2629, 6305, 9818, 2581, 2620, 10790, 2620, 30526 ]
# Stipa mongholica Turcz. ex Trin. SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Poales/Poaceae/Stipa/Stipa mongholica/README.md
Markdown
apache-2.0
190
[ 30522, 1001, 2358, 11514, 2050, 12256, 5603, 23518, 2050, 10722, 11890, 2480, 1012, 4654, 13012, 2078, 1012, 2427, 1001, 1001, 1001, 1001, 3570, 3970, 1001, 1001, 1001, 1001, 2429, 2000, 1996, 10161, 1997, 2166, 1010, 3822, 2254, 2249, 1001, 1001, 1001, 1001, 2405, 1999, 19701, 1001, 1001, 1001, 1001, 2434, 2171, 19701, 1001, 1001, 1001, 12629, 19701, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<?php require_once($root_path.'include/care_api_classes/class_core.php'); global $page_funct, $Headline; class page_funct extends Core { function page_funct(){ return true; } function Display_Header(){ global $URL_APPEND, $LDBillingInsurance; echo '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd"> <HTML> <HEAD> <TITLE> <?php echo $LDBillingInsurance; ?> </TITLE> <meta name="Description" content="Hospital and Healthcare Integrated Information System - CARE2x"> <meta name="Author" content="Robert Meggle"> <meta name="Generator" content="various: Quanta, AceHTML 4 Freeware, NuSphere, PHP Coder"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="javascript"> <!-- function gethelp(x,s,x1,x2,x3,x4) { if (!x) x=""; urlholder="../../main/help-router.php<?php echo URL_APPEND; ?>&helpidx="+x+"&src="+s+"&x1="+x1+"&x2="+x2+"&x3="+x3+"&x4="+x4; helpwin=window.open(urlholder,"helpwin","width=790,height=540,menubar=no,resizable=yes,scrollbars=yes"); window.helpwin.moveTo(0,0); } // --> </script> <link rel="stylesheet" href="../../css/themes/default/default.css" type="text/css"> <script language="javascript" src="../../js/hilitebu.js"></script> <STYLE TYPE="text/css"> A:link {color: #000066;} A:hover {color: #cc0033;} A:active {color: #cc0000;} A:visited {color: #000066;} A:visited:active {color: #cc0000;} A:visited:hover {color: #cc0033;} </style> <script language="JavaScript"> <!-- function popPic(pid,nm){ if(pid!="") regpicwindow = window.open("../../main/pop_reg_pic.php?sid=<?php echo $sid."&lang=".$lang; ?>&pid="+pid+"&nm="+nm,"regpicwin","toolbar=no,scrollbars,width=180,height=250"); } // --> </script> <script language="javascript"> <!-- function closewin() { location.href=\'startframe.php?sid="<?php echo $sid."&lang=".$lang; ?>"\'; } // --> </script> </HEAD>'; return true; } function Display_Headline($Headline){ echo '<table cellspacing="0" class="titlebar" border=0 height="35" width="100%"> <tr valign=top class="titlebar"> <td bgcolor="#99ccff"> &nbsp;&nbsp;<font color="#330066">'.$Headline.'</font> </td> <td bgcolor="#99ccff" align=right><a href="javascript:window.history.back()"><img src="../../gui/img/control/default/en/en_back2.gif" border=0 width="110" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)" ></a><a href="javascript:gethelp(\'insurance_companies_edit.php','Administrative Companies :: Setup\')"><img src="../../gui/img/control/default/en/en_hilfe-r.gif" border=0 width="75" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"></a><a href="insurance_tz.php?ntid=false&lang=$lang" ><img src="../../gui/img/control/default/en/en_close2.gif" border=0 width="103" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"></a> </td> </tr> </table> <table width=100% border=0 cellspacing=0 height=80%> <tbody class="main"> <tr> <td>'; return true; } function Display_Footer($Headline){ echo '</td><tr></table></<table cellspacing="0" class="titlebar" border=0 height="35" width="100%"> <tr valign=top class="titlebar"> <td bgcolor="#99ccff"> &nbsp;&nbsp;<font color="#330066">'.$Headline.'</font> </td> <td bgcolor="#99ccff" align=right><a href="javascript:window.history.back()"><img src="../../gui/img/control/default/en/en_back2.gif" border=0 width="110" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)" ></a><a href="javascript:gethelp(\'insurance_companies_edit.php\',\'Administrative Companies :: Setup\')"><img src="../../gui/img/control/default/en/en_hilfe-r.gif" border=0 width="75" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"></a><a href="insurance_tz.php?ntid=false&lang=$lang" ><img src="../../gui/img/control/default/en/en_close2.gif" border=0 width="103" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"></a> </td> </tr> </table>'; return true; } function Display_Credits(){ echo '<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#cfcfcf"> <tr> <td align="center"> <table width="100%" bgcolor="#ffffff" cellspacing=0 cellpadding=5> <tr> <td> <div class="copyright"> <script language="JavaScript"> <!-- function openCreditsWindow() { urlholder="../../language/$lang/$lang_credits.php?lang=$lang"; creditswin=window.open(urlholder,"creditswin","width=500,height=600,menubar=no,resizable=yes,scrollbars=yes"); // --> } </script> <a href="http://www.care2x.org" target=_new>CARE2X 2nd Generation pre-deployment 2.0.2</a> :: <a href="../../legal_gnu_gpl.htm" target=_new> License</a> :: <a href=mailto:[email protected]>Contact</a> :: <a href="../../language/en/en_privacy.htm" target="pp"> Our Privacy Policy </a> :: <a href="../../docs/show_legal.php?lang=$lang" target="lgl"> Legal </a> :: <a href="javascript:openCreditsWindow()"> Credits </a> ::.<br> </div> </td> <tr> </table> </td> </tr> </table> </BODY> </HTML>'; return true; } } ?>
victorkagimu/khl-care2x
include/inc_page_functions.php
PHP
gpl-2.0
5,535
[ 30522, 1026, 1029, 25718, 5478, 1035, 2320, 1006, 1002, 7117, 1035, 4130, 1012, 1005, 2421, 1013, 2729, 1035, 17928, 1035, 4280, 1013, 2465, 1035, 4563, 1012, 25718, 1005, 1007, 1025, 3795, 1002, 3931, 1035, 4569, 6593, 1010, 1002, 17653, 1025, 2465, 3931, 1035, 4569, 6593, 8908, 4563, 1063, 3853, 3931, 1035, 4569, 6593, 1006, 1007, 1063, 2709, 2995, 1025, 1065, 3853, 4653, 1035, 20346, 1006, 1007, 1063, 3795, 1002, 24471, 2140, 1035, 10439, 10497, 1010, 1002, 25510, 24457, 2075, 7076, 25863, 1025, 9052, 1005, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 29464, 24475, 1013, 1013, 26718, 2094, 16129, 1017, 1012, 1014, 1013, 1013, 4372, 1000, 1000, 16129, 1012, 26718, 2094, 1000, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 1026, 1029, 25718, 9052, 1002, 25510, 24457, 2075, 7076, 25863, 1025, 1029, 1028, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 6412, 1000, 4180, 1027, 1000, 2902, 1998, 9871, 6377, 2592, 2291, 1011, 2729, 2475, 2595, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3166, 1000, 4180, 1027, 1000, 30524, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 11163, 1011, 6070, 28154, 1011, 1015, 1000, 1028, 1026, 5896, 2653, 1027, 1000, 9262, 22483, 1000, 1028, 1026, 999, 1011, 1011, 3853, 2131, 16001, 2361, 1006, 1060, 1010, 1055, 1010, 1060, 2487, 1010, 1060, 2475, 1010, 1060, 2509, 1010, 1060, 2549, 1007, 1063, 2065, 1006, 999, 1060, 1007, 1060, 1027, 1000, 1000, 1025, 24471, 28061, 16502, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 2364, 1013, 2393, 1011, 2799, 2099, 1012, 25718, 1026, 1029, 25718, 9052, 24471, 2140, 1035, 10439, 10497, 1025, 1029, 1028, 1004, 2393, 3593, 2595, 1027, 1000, 1009, 1060, 1009, 1000, 1004, 5034, 2278, 1027, 1000, 1009, 1055, 1009, 1000, 1004, 1060, 2487, 1027, 1000, 1009, 1060, 2487, 1009, 1000, 1004, 1060, 2475, 1027, 1000, 1009, 1060, 2475, 1009, 1000, 1004, 1060, 2509, 1027, 1000, 1009, 1060, 2509, 1009, 1000, 1004, 1060, 2549, 1027, 1000, 1009, 1060, 2549, 1025, 2393, 10105, 1027, 3332, 1012, 2330, 1006, 24471, 28061, 16502, 1010, 1000, 2393, 10105, 1000, 1010, 1000, 9381, 1027, 6535, 2692, 1010, 4578, 1027, 20263, 1010, 12183, 8237, 1027, 2053, 1010, 24501, 21335, 3468, 1027, 2748, 1010, 17186, 8237, 2015, 1027, 2748, 1000, 1007, 1025, 3332, 1012, 2393, 10105, 1012, 2693, 3406, 1006, 1014, 1010, 1014, 1007, 1025, 1065, 1013, 1013, 1011, 1011, 1028, 1026, 1013, 5896, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 20116, 2015, 1013, 6991, 1013, 12398, 1013, 12398, 1012, 20116, 2015, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1028, 1026, 5896, 2653, 1027, 1000, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 30523, 2728, 12669, 9354, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 13103, 1000, 4180, 1027, 1000, 2536, 1024, 24110, 2696, 1010, 9078, 11039, 19968, 1018, 2489, 8059, 1010, 16371, 23874, 1010, 25718, 3642, 2099, 1000, 1028, 1026, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2728, 12669, 9354, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 13103, 1000, 4180, 1027, 1000, 2536, 1024, 24110, 2696, 1010, 9078, 11039, 19968, 1018, 2489, 8059, 1010, 16371, 23874, 1010, 25718, 3642, 2099, 1000, 1028, 1026, 30526 ]
using System; using System.Linq; using Avalonia.Controls; using Avalonia.Media; using Avalonia.Rendering.SceneGraph; using Avalonia.UnitTests; using Avalonia.VisualTree; using Xunit; using Avalonia.Layout; using Moq; using Avalonia.Platform; using System.Reactive.Subjects; using Avalonia.Data; using Avalonia.Utilities; using Avalonia.Media.Imaging; namespace Avalonia.Visuals.UnitTests.Rendering.SceneGraph { public partial class SceneBuilderTests { [Fact] public void Should_Build_Initial_Scene() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; TextBlock textBlock; var tree = new TestRoot { Child = border = new Border { Width = 100, Height = 100, Background = Brushes.Red, Child = textBlock = new TextBlock { TextWrapping = TextWrapping.NoWrap, Text = "Hello World", } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var result = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(result); Assert.Same(tree, ((VisualNode)result.Root).LayerRoot); Assert.Equal(1, result.Root.Children.Count); var borderNode = (VisualNode)result.Root.Children[0]; Assert.Same(borderNode, result.FindNode(border)); Assert.Same(border, borderNode.Visual); Assert.Equal(1, borderNode.Children.Count); Assert.Equal(1, borderNode.DrawOperations.Count); var backgroundNode = (RectangleNode)borderNode.DrawOperations[0].Item; Assert.Equal(Brushes.Red, backgroundNode.Brush); var textBlockNode = borderNode.Children[0]; Assert.Same(textBlockNode, result.FindNode(textBlock)); Assert.Same(textBlock, textBlockNode.Visual); Assert.Equal(1, textBlockNode.DrawOperations.Count); var textNode = (GlyphRunNode)textBlockNode.DrawOperations[0].Item; Assert.NotNull(textNode.GlyphRun); } } [Fact] public void Should_Respect_Margin_For_ClipBounds() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Canvas canvas; var tree = new TestRoot { Width = 200, Height = 300, Child = new Border { Margin = new Thickness(10, 20, 30, 40), Child = canvas = new Canvas { ClipToBounds = true, Background = Brushes.AliceBlue, } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var result = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(result); var canvasNode = result.FindNode(canvas); Assert.Equal(new Rect(10, 20, 160, 240), canvasNode.ClipBounds); // Initial ClipBounds are correct, make sure they're still correct after updating canvas. result = result.CloneScene(); Assert.True(sceneBuilder.Update(result, canvas)); canvasNode = result.FindNode(canvas); Assert.Equal(new Rect(10, 20, 160, 240), canvasNode.ClipBounds); } } [Fact] public void ClipBounds_Should_Be_Intersection_With_Parent_ClipBounds() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; var tree = new TestRoot { Width = 200, Height = 300, Child = new Canvas { ClipToBounds = true, Width = 100, Height = 100, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top, Children = { (border = new Border { Background = Brushes.AliceBlue, ClipToBounds = true, Width = 100, Height = 100, [Canvas.LeftProperty] = 50, [Canvas.TopProperty] = 50, }) } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var borderNode = scene.FindNode(border); Assert.Equal(new Rect(50, 50, 50, 50), borderNode.ClipBounds); } } [Fact] public void Should_Update_Descendent_ClipBounds_When_Margin_Changed() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; Canvas canvas; var tree = new TestRoot { Width = 200, Height = 300, Child = canvas = new Canvas { ClipToBounds = true, Width = 100, Height = 100, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top, Children = { (border = new Border { Background = Brushes.AliceBlue, ClipToBounds = true, Width = 100, Height = 100, [Canvas.LeftProperty] = 50, [Canvas.TopProperty] = 50, }) } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var borderNode = scene.FindNode(border); Assert.Equal(new Rect(50, 50, 50, 50), borderNode.ClipBounds); canvas.Width = canvas.Height = 125; canvas.Measure(Size.Infinity); canvas.Arrange(new Rect(tree.DesiredSize)); // Initial ClipBounds are correct, make sure they're still correct after updating canvas. scene = scene.CloneScene(); Assert.True(sceneBuilder.Update(scene, canvas)); borderNode = scene.FindNode(border); Assert.Equal(new Rect(50, 50, 75, 75), borderNode.ClipBounds); } } [Fact] public void Should_Respect_ZIndex() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border front; Border back; var tree = new TestRoot { Child = new Panel { Children = { (front = new Border { ZIndex = 1, }), (back = new Border { ZIndex = 0, }), } } }; var result = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(result); var panelNode = result.FindNode(tree.Child); var expected = new IVisual[] { back, front }; var actual = panelNode.Children.OfType<IVisualNode>().Select(x => x.Visual).ToArray(); Assert.Equal(expected, actual); } } [Fact] public void ClipBounds_Should_Be_In_Global_Coordinates() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border target; var tree = new TestRoot { Child = new Decorator { Margin = new Thickness(24, 26), Child = target = new Border { ClipToBounds = true, Margin = new Thickness(26, 24), Width = 100, Height = 100, } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var result = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(result); var targetNode = result.FindNode(target); Assert.Equal(new Rect(50, 50, 100, 100), targetNode.ClipBounds); } } [Fact] public void Transform_For_Control_With_RenderTransform_Should_Be_Correct_After_Update() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; var tree = new TestRoot { Width = 400, Height = 200, Child = new Decorator { Width = 200, Height = 100, Child = border = new Border { Background = Brushes.Red, HorizontalAlignment = HorizontalAlignment.Right, Width = 100, RenderTransform = new ScaleTransform(0.5, 1), } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var expectedTransform = Matrix.CreateScale(0.5, 1) * Matrix.CreateTranslation(225, 50); var borderNode = scene.FindNode(border); Assert.Equal(expectedTransform, borderNode.Transform); scene = scene.CloneScene(); Assert.True(sceneBuilder.Update(scene, border)); borderNode = scene.FindNode(border); Assert.Equal(expectedTransform, borderNode.Transform); } } [Fact] public void Should_Update_Border_Background_Node() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; TextBlock textBlock; var tree = new TestRoot { Child = border = new Border { Width = 100, Height = 100, Background = Brushes.Red, Child = textBlock = new TextBlock { Foreground = Brushes.Green, Text = "Hello World", } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var initial = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(initial); var initialBackgroundNode = initial.FindNode(border).Children[0]; var initialTextNode = initial.FindNode(textBlock).DrawOperations[0]; Assert.NotNull(initialBackgroundNode); Assert.NotNull(initialTextNode); border.Background = Brushes.Green; var result = initial.CloneScene(); sceneBuilder.Update(result, border); var borderNode = (VisualNode)result.Root.Children[0]; Assert.Same(border, borderNode.Visual); var backgroundNode = (RectangleNode)borderNode.DrawOperations[0].Item; Assert.NotSame(initialBackgroundNode, backgroundNode); Assert.Equal(Brushes.Green, backgroundNode.Brush); var textBlockNode = (VisualNode)borderNode.Children[0]; Assert.Same(textBlock, textBlockNode.Visual); var textNode = (GlyphRunNode)textBlockNode.DrawOperations[0].Item; Assert.Same(initialTextNode.Item, textNode); } } [Fact] public void Should_Update_When_Control_Added() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; var tree = new TestRoot { Width = 100, Height = 100, Child = border = new Border { Background = Brushes.Red, } }; Canvas canvas; var decorator = new Decorator { Child = canvas = new Canvas(), }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var initial = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(initial); border.Child = decorator; var result = initial.CloneScene(); Assert.True(sceneBuilder.Update(result, decorator)); // Updating canvas should result in no-op as it should have been updated along // with decorator as part of the add opeation. Assert.False(sceneBuilder.Update(result, canvas)); var borderNode = (VisualNode)result.Root.Children[0]; Assert.Equal(1, borderNode.Children.Count); Assert.Equal(1, borderNode.DrawOperations.Count); var decoratorNode = (VisualNode)borderNode.Children[0]; Assert.Same(decorator, decoratorNode.Visual); Assert.Same(decoratorNode, result.FindNode(decorator)); var canvasNode = (VisualNode)decoratorNode.Children[0]; Assert.Same(canvas, canvasNode.Visual); Assert.Same(canvasNode, result.FindNode(canvas)); } } [Fact] public void Should_Update_When_Control_Removed() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Border border; Decorator decorator; Canvas canvas; var tree = new TestRoot { Width = 100, Height = 100, Child = border = new Border { Background = Brushes.Red, Child = decorator = new Decorator { Child = canvas = new Canvas { Background = Brushes.AliceBlue, } } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var initial = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(initial); border.Child = null; var result = initial.CloneScene(); Assert.True(sceneBuilder.Update(result, decorator)); Assert.False(sceneBuilder.Update(result, canvas)); var borderNode = (VisualNode)result.Root.Children[0]; Assert.Equal(0, borderNode.Children.Count); Assert.Equal(1, borderNode.DrawOperations.Count); Assert.Null(result.FindNode(decorator)); Assert.Equal(new Rect(0, 0, 100, 100), result.Layers.Single().Dirty.Single()); } } [Fact] public void Should_Update_When_Control_Moved() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator moveFrom; Decorator moveTo; Canvas moveMe; var tree = new TestRoot { Width = 100, Height = 100, Child = new StackPanel { Children = { (moveFrom = new Decorator { Child = moveMe = new Canvas(), }), (moveTo = new Decorator()), } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var moveFromNode = (VisualNode)scene.FindNode(moveFrom); var moveToNode = (VisualNode)scene.FindNode(moveTo); Assert.Equal(1, moveFromNode.Children.Count); Assert.Same(moveMe, moveFromNode.Children[0].Visual); Assert.Empty(moveToNode.Children); moveFrom.Child = null; moveTo.Child = moveMe; scene = scene.CloneScene(); moveFromNode = (VisualNode)scene.FindNode(moveFrom); moveToNode = (VisualNode)scene.FindNode(moveTo); moveFromNode.SortChildren(scene); moveToNode.SortChildren(scene); sceneBuilder.Update(scene, moveFrom); sceneBuilder.Update(scene, moveTo); sceneBuilder.Update(scene, moveMe); Assert.Empty(moveFromNode.Children); Assert.Equal(1, moveToNode.Children.Count); Assert.Same(moveMe, moveToNode.Children[0].Visual); } } [Fact] public void Should_Update_When_Control_Made_Invisible() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator decorator; Border border; Canvas canvas; var tree = new TestRoot { Width = 100, Height = 100, Child = decorator = new Decorator { Child = border = new Border { Background = Brushes.Red, Child = canvas = new Canvas(), } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var initial = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(initial); border.IsVisible = false; var result = initial.CloneScene(); Assert.True(sceneBuilder.Update(result, border)); Assert.False(sceneBuilder.Update(result, canvas)); var decoratorNode = (VisualNode)result.Root.Children[0]; Assert.Equal(0, decoratorNode.Children.Count); Assert.Null(result.FindNode(border)); Assert.Null(result.FindNode(canvas)); Assert.Equal(new Rect(0, 0, 100, 100), result.Layers.Single().Dirty.Single()); } } [Fact] public void Should_Not_Dispose_Active_VisualNode_When_Control_Reparented_And_Child_Made_Invisible() { // Issue #3115 using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { StackPanel panel; Border border1; Border border2; var tree = new TestRoot { Width = 100, Height = 100, Child = panel = new StackPanel { Children = { (border1 = new Border { Background = Brushes.Red, }), (border2 = new Border { Background = Brushes.Green, }), } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var decorator = new Decorator(); tree.Child = null; decorator.Child = panel; tree.Child = decorator; border1.IsVisible = false; scene = scene.CloneScene(); sceneBuilder.Update(scene, decorator); var panelNode = (VisualNode)scene.FindNode(panel); Assert.Equal(2, panelNode.Children.Count); Assert.False(panelNode.Children[0].Disposed); Assert.False(panelNode.Children[1].Disposed); } } [Fact] public void Should_Update_ClipBounds_For_Negative_Margin() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator decorator; Border border; var tree = new TestRoot { Width = 100, Height = 100, Child = decorator = new Decorator { Margin = new Thickness(0, 10, 0, 0), Child = border = new Border { Background = Brushes.Red, ClipToBounds = true, Margin = new Thickness(0, -5, 0, 0), } } }; var layout = tree.LayoutManager; layout.ExecuteInitialLayoutPass(); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var borderNode = scene.FindNode(border); Assert.Equal(new Rect(0, 5, 100, 95), borderNode.ClipBounds); border.Margin = new Thickness(0, -8, 0, 0); layout.ExecuteLayoutPass(); scene = scene.CloneScene(); sceneBuilder.Update(scene, border); borderNode = scene.FindNode(border); Assert.Equal(new Rect(0, 2, 100, 98), borderNode.ClipBounds); } } [Fact] public void Should_Update_Descendent_Tranform_When_Margin_Changed() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator decorator; Border border; Canvas canvas; var tree = new TestRoot { Width = 100, Height = 100, Child = decorator = new Decorator { Margin = new Thickness(0, 10, 0, 0), Child = border = new Border { Child = canvas = new Canvas(), } } }; var layout = tree.LayoutManager; layout.ExecuteInitialLayoutPass(); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var borderNode = scene.FindNode(border); var canvasNode = scene.FindNode(canvas); Assert.Equal(Matrix.CreateTranslation(0, 10), borderNode.Transform); Assert.Equal(Matrix.CreateTranslation(0, 10), canvasNode.Transform); decorator.Margin = new Thickness(0, 20, 0, 0); layout.ExecuteLayoutPass(); scene = scene.CloneScene(); sceneBuilder.Update(scene, decorator); borderNode = scene.FindNode(border); canvasNode = scene.FindNode(canvas); Assert.Equal(Matrix.CreateTranslation(0, 20), borderNode.Transform); Assert.Equal(Matrix.CreateTranslation(0, 20), canvasNode.Transform); } } [Fact] public void DirtyRects_Should_Contain_Old_And_New_Bounds_When_Margin_Changed() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator decorator; Border border; Canvas canvas; var tree = new TestRoot { Width = 100, Height = 100, Child = decorator = new Decorator { Margin = new Thickness(0, 10, 0, 0), Child = border = new Border { Background = Brushes.Red, Child = canvas = new Canvas(), } } }; var layout = tree.LayoutManager; layout.ExecuteInitialLayoutPass(); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var borderNode = scene.FindNode(border); var canvasNode = scene.FindNode(canvas); Assert.Equal(Matrix.CreateTranslation(0, 10), borderNode.Transform); Assert.Equal(Matrix.CreateTranslation(0, 10), canvasNode.Transform); decorator.Margin = new Thickness(0, 20, 0, 0); layout.ExecuteLayoutPass(); scene = scene.CloneScene(); sceneBuilder.Update(scene, decorator); var rects = scene.Layers.Single().Dirty.ToArray(); Assert.Equal(new[] { new Rect(0, 10, 100, 90) }, rects); } } [Fact] public void Resizing_Scene_Should_Add_DirtyRects() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator decorator; Border border; Canvas canvas; var tree = new TestRoot { Child = decorator = new Decorator { Margin = new Thickness(0, 10, 0, 0), Child = border = new Border { Background = Brushes.Red, Child = canvas = new Canvas(), } } }; var animation = new BehaviorSubject<double>(0.5); border.Bind(Border.OpacityProperty, animation, BindingPriority.Animation); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); Assert.Equal(new Size(100, 100), scene.Size); tree.ClientSize = new Size(110, 120); scene = scene.CloneScene(); sceneBuilder.Update(scene, tree); Assert.Equal(new Size(110, 120), scene.Size); var expected = new[] { new Rect(100, 0, 10, 100), new Rect(0, 100, 110, 20), }; Assert.Equal(expected, scene.Layers[tree].Dirty.ToArray()); // Layers are disabled. See #2244 // Assert.Equal(expected, scene.Layers[border].Dirty.ToArray()); } } [Fact] public void Setting_Opacity_Should_Add_Descendent_Bounds_To_DirtyRects() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { Decorator decorator; Border border; var tree = new TestRoot { Child = decorator = new Decorator { Child = border = new Border { Background = Brushes.Red, Width = 100, Height = 100, } } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(tree.DesiredSize)); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); decorator.Opacity = 0.5; scene = scene.CloneScene(); sceneBuilder.Update(scene, decorator); Assert.NotEmpty(scene.Layers.Single().Dirty); var dirty = scene.Layers.Single().Dirty.Single(); Assert.Equal(new Rect(0, 0, 100, 100), dirty); } } [Fact] public void Should_Set_GeometryClip() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { var clip = StreamGeometry.Parse("M100,0 L0,100 100,100"); Decorator decorator; var tree = new TestRoot { Child = decorator = new Decorator { Clip = clip, } }; var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var decoratorNode = scene.FindNode(decorator); Assert.Same(clip.PlatformImpl, decoratorNode.GeometryClip); } } [Fact] public void Disposing_Scene_Releases_DrawOperation_References() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { var bitmap = RefCountable.Create(Mock.Of<IBitmapImpl>( x => x.PixelSize == new PixelSize(100, 100) && x.Dpi == new Vector(96, 96))); Image img; var tree = new TestRoot { Child = img = new Image { Source = new Bitmap(bitmap), Height = 100, Width = 100 } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(new Size(100, 100))); Assert.Equal(2, bitmap.RefCount); IRef<IDrawOperation> operation; using (var scene = new Scene(tree)) { var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); operation = scene.FindNode(img).DrawOperations[0]; Assert.Equal(1, operation.RefCount); Assert.Equal(3, bitmap.RefCount); } Assert.Equal(0, operation.RefCount); Assert.Equal(2, bitmap.RefCount); } } [Fact] public void Replacing_Control_Releases_DrawOperation_Reference() { using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface)) { var bitmap = RefCountable.Create(Mock.Of<IBitmapImpl>( x => x.PixelSize == new PixelSize(100, 100) && x.Dpi == new Vector(96, 96))); Image img; var tree = new TestRoot { Child = img = new Image { Source = new Bitmap(bitmap), Width = 100, Height = 100 } }; tree.Measure(Size.Infinity); tree.Arrange(new Rect(new Size(100, 100))); var scene = new Scene(tree); var sceneBuilder = new SceneBuilder(); sceneBuilder.UpdateAll(scene); var operation = scene.FindNode(img).DrawOperations[0]; tree.Child = new Decorator(); using (var result = scene.CloneScene()) { sceneBuilder.Update(result, img); scene.Dispose(); Assert.Equal(0, operation.RefCount); Assert.Equal(2, bitmap.RefCount); } } } } }
akrisiun/Perspex
tests/Avalonia.Visuals.UnitTests/Rendering/SceneGraph/SceneBuilderTests.cs
C#
mit
35,098
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 18973, 2401, 1012, 7711, 1025, 2478, 18973, 2401, 1012, 2865, 1025, 2478, 18973, 2401, 30524, 15990, 3490, 2102, 1025, 2478, 18973, 2401, 1012, 9621, 1025, 2478, 9587, 4160, 1025, 2478, 18973, 2401, 1012, 4132, 1025, 2478, 2291, 1012, 22643, 1012, 5739, 1025, 2478, 18973, 2401, 1012, 2951, 1025, 2478, 18973, 2401, 1012, 16548, 1025, 2478, 18973, 2401, 1012, 2865, 1012, 12126, 1025, 3415, 15327, 18973, 2401, 1012, 26749, 1012, 3131, 22199, 2015, 1012, 14259, 1012, 3496, 14413, 1063, 2270, 7704, 2465, 3496, 8569, 23891, 19731, 12837, 1063, 1031, 2755, 1033, 2270, 11675, 2323, 1035, 3857, 1035, 3988, 1035, 3496, 1006, 1007, 1063, 2478, 1006, 3131, 22199, 29098, 19341, 3508, 1012, 2707, 1006, 5852, 2121, 7903, 2229, 1012, 12934, 24759, 4017, 14192, 7389, 4063, 18447, 2121, 12172, 1007, 1007, 1063, 3675, 3675, 1025, 3793, 23467, 3793, 23467, 1025, 13075, 3392, 1027, 2047, 3231, 3217, 4140, 1063, 2775, 1027, 3675, 1027, 2047, 3675, 1063, 9381, 1027, 2531, 1010, 4578, 1027, 2531, 1010, 4281, 1027, 22569, 1012, 2417, 1010, 2775, 1027, 3793, 23467, 1027, 2047, 3793, 23467, 1063, 3793, 13088, 29098, 2075, 1027, 3793, 13088, 29098, 2075, 1012, 2085, 2527, 2361, 1010, 3793, 1027, 1000, 7592, 2088, 1000, 1010, 1065, 1065, 1065, 1025, 3392, 1012, 5468, 1006, 2946, 1012, 15579, 1007, 1025, 3392, 1012, 13621, 1006, 2047, 28667, 2102, 1006, 3392, 1012, 9059, 5332, 4371, 1007, 1007, 1025, 13075, 2765, 1027, 2047, 3496, 1006, 3392, 1007, 1025, 13075, 3496, 8569, 23891, 2099, 1027, 2047, 3496, 8569, 23891, 2099, 1006, 1007, 1025, 3496, 8569, 23891, 2099, 1012, 10651, 8095, 1006, 2765, 1007, 1025, 20865, 1012, 2168, 1006, 3392, 1010, 1006, 1006, 5107, 3630, 3207, 1007, 2765, 1012, 7117, 1007, 1012, 6741, 3217, 4140, 1007, 1025, 20865, 1012, 5020, 1006, 1015, 1010, 2765, 1012, 7117, 1012, 2336, 1012, 4175, 1007, 1025, 13075, 3675, 3630, 3207, 1027, 1006, 5107, 3630, 3207, 1007, 2765, 1012, 7117, 1012, 2336, 1031, 1014, 1033, 1025, 20865, 1012, 2168, 1006, 3675, 3630, 3207, 1010, 2765, 1012, 2424, 3630, 3207, 1006, 3675, 1007, 1007, 1025, 20865, 1012, 2168, 1006, 3675, 1010, 3675, 3630, 3207, 1012, 5107, 1007, 1025, 20865, 1012, 5020, 1006, 1015, 1010, 3675, 3630, 3207, 1012, 2336, 1012, 4175, 1007, 1025, 20865, 1012, 5020, 1006, 1015, 1010, 3675, 3630, 3207, 1012, 4009, 25918, 10708, 1012, 4175, 1007, 1025, 13075, 4281, 3630, 3207, 1027, 1006, 28667, 23395, 3630, 3207, 1007, 3675, 3630, 3207, 1012, 4009, 25918, 10708, 1031, 1014, 1033, 1012, 8875, 1025, 20865, 1012, 5020, 1006, 22569, 1012, 2417, 1010, 4281, 3630, 3207, 1012, 8248, 1007, 1025, 13075, 3793, 23467, 3630, 3207, 1027, 3675, 3630, 3207, 1012, 2336, 1031, 1014, 1033, 1025, 20865, 1012, 2168, 1006, 3793, 23467, 3630, 3207, 1010, 2765, 1012, 2424, 3630, 3207, 1006, 3793, 23467, 1007, 1007, 1025, 20865, 1012, 2168, 1006, 3793, 23467, 1010, 3793, 23467, 3630, 3207, 1012, 5107, 1007, 1025, 30523, 1012, 14259, 1012, 3496, 14413, 1025, 2478, 18973, 2401, 1012, 3131, 22199, 2015, 1025, 2478, 18973, 2401, 1012, 5107, 13334, 1025, 2478, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 14259, 1012, 3496, 14413, 1025, 2478, 18973, 2401, 1012, 3131, 22199, 2015, 1025, 2478, 18973, 2401, 1012, 5107, 13334, 1025, 2478, 30526 ]
/* Default color scheme */ @define-color base_color #dadada; @define-color bg_color #c6c6c6; @define-color text_color #161616; @define-color fg_color #242424; @define-color selected_bg_color #4a6787; @define-color selected_fg_color #fff; @define-color tooltip_bg_color #040404; @define-color tooltip_fg_color #fff; /* Colormap actually used by the theme, to be overridden in other css files */ @define-color theme_base_color @base_color; @define-color theme_bg_color @bg_color; @define-color theme_text_color @text_color; @define-color theme_fg_color @fg_color; @define-color theme_shadow_color alpha(#fff, 0.22); @define-color theme_selected_bg_color #646464; @define-color theme_selected_fg_color @selected_fg_color; @define-color theme_selected_shadow_color alpha(#000, 0.18); @define-color theme_tooltip_bg_color @tooltip_bg_color; @define-color theme_tooltip_fg_color @tooltip_fg_color; @define-color menu_bg_color shade(@theme_bg_color, 1.06); @define-color menu_fg_color shade(@theme_fg_color, 1.00); @define-color menu_shadow_color @theme_shadow_color; /*************************[Mediterranean-White-Night]***************************/ @define-color theme_bg_dark_color @theme_bg_color; @define-color theme_fg_dark_color @theme_fg_color; @define-color theme_text_dark_color @theme_text_color; @define-color theme_shadow_dark_color @theme_shadow_color; @define-color theme_highlight_color alpha(#fff, 0.18); @define-color theme_button_border_dark shade(@theme_bg_dark_color, 0.74); @define-color theme_entry_border_dark @theme_button_border_dark; @define-color theme_path_bg_color shade(@theme_bg_dark_color, 0.97); @define-color theme_path_active_color shade(@theme_bg_dark_color, 0.95); @define-color theme_tab_dark_active1 shade(@theme_bg_dark_color, 0.85); @define-color theme_tab_dark_active2 shade(@theme_tab_dark_active1, 1.25); @define-color theme_mdi_border_color shade(@theme_bg_dark_color, 0.82); @define-color menu_bg_dark_color shade(@theme_bg_dark_color, 1.12); @define-color menu_fg_dark_color @theme_fg_dark_color; @define-color menu_shadow_dark_color alpha(#fff, 0.18); @define-color menu_line_dark_color shade(@theme_bg_dark_color, 0.87); @define-color menu_line_light_color shade(@theme_bg_dark_color, 1.05); /**************************************************************************/ @define-color theme_tab_active1 shade(@theme_base_color, 0.80); @define-color theme_tab_active2 shade(@theme_base_color, 1.00); @define-color button_raised_gradient_color_a shade(@theme_bg_dark_color, 1.05); @define-color button_raised_gradient_color_b shade(@theme_bg_dark_color, 0.90); @define-color button_raised_linked_shadow alpha(@theme_base_color, 0.70); @define-color link_color shade(#4a90d9, 0.20); @define-color frame_color #808080; @define-color inactive_frame_color #bbbbbb; @define-color warning_color #f57900; @define-color error_color #cc0000; @define-color success_color #4e9a06; @define-color info_fg_color rgb (181, 171, 156); @define-color info_bg_color rgb (252, 252, 189); @define-color warning_fg_color rgb (173, 120, 41); @define-color warning_bg_color rgb (250, 173, 61); @define-color question_fg_color rgb (97, 122, 214); @define-color question_bg_color rgb (138, 173, 212); @define-color error_fg_color rgb (106, 18, 18); @define-color error_bg_color rgb (240, 54, 54); @define-color os_chrome_bg_color @theme_bg_dark_color; @define-color os_chrome_fg_color @theme_fg_dark_color; @define-color os_chrome_selected_bg_color @theme_selected_bg_color; @define-color os_chrome_selected_fg_color @theme_selected_fg_color; @define-color chrome_bg_color @theme_bg_color; @define-color chrome_fg_color @theme_fg_color; @define-color entry_text_color @theme_text_color; @define-color focused_entry_border mix(@theme_selected_bg_color, @theme_bg_color, 0.37); @define-color focused_entry_outer alpha(shade(@theme_selected_bg_color, 1.30), 0.25); @define-color entry_text_dark_color @theme_text_color; @define-color entry_bg_dark_color shade(@theme_base_color, 1.00); @define-color focused_dark_entry_border @focused_entry_border; @define-color focused_dark_entry_outer @focused_entry_outer; @define-color focused_entry_inset alpha (#d7e4f1, 0.50); /* @define-color sidebar_background shade(#e1e5e8, 0.95); */ @define-color sidebar_background shade(mix(@theme_bg_color, #afb8bf, 0.35), 1.03); @define-color sidebar_icon shade(@sidebar_background, 0.60); @define-color sidebar_selected_bg shade(@theme_selected_bg_color,0.90); @define-color sidebar_fg_color @theme_text_color; @define-color button_base @theme_base_color; @define-color button_gradient1 shade(@button_base, 0.98); @define-color button_gradient2 shade(@button_base, 0.95); @define-color button_gradient3 shade(@button_base, 0.92); @define-color button_gradient4 shade(@button_base, 0.89); @define-color button_bg_active shade(@theme_selected_bg_color, 1.15); @define-color button_border shade(@theme_bg_color, 0.68); @define-color button_border_active shade(@button_bg_active, 0.97); @define-color insensitive_bg_color shade(@bg_color, 0.93); @define-color insensitive_fg_color mix(@theme_bg_color, @theme_fg_color, 0.65); @define-color insensitive_border_color shade(@bg_color, 0.80); @define-color trough_bg_color_a shade (@theme_bg_color, 0.88); @define-color trough_bg_color_b shade (@theme_bg_color, 0.95); @define-color internal_element_color #646464; @define-color internal_element_prelight @theme_text_color; @define-color internal_element_insensitive shade (@internal_element_color, 1.4); @define-color scale_fill shade(@button_bg_active, 1.00); @define-color scale_border_a @internal_element_color; @define-color scale_border_b shade (@internal_element_color, 1.25); @define-color progressbar_fill_a @button_bg_active; @define-color progressbar_fill_b shade(mix(@button_bg_active, white, 0.30), 1.10); @define-color highlighted_border #8f8f8f; @define-color transparent alpha(#000, 0.0); @define-color notebook_border shade(@theme_bg_color, 0.75); /* @define-color toolbar_gradient_base shade (mix(#d5dade, @theme_bg_dark_color, 0.75), 0.92); */ @define-color toolbar_gradient_base shade (@theme_bg_color, 1.00); @define-color toolbar_fg_color shade(@theme_fg_color, 1.00); @define-color toolbar_shadow_color @theme_shadow_color; @define-color toolbar_border_color @button_border; @define-color toolbar_active_button_color #909081; @define-color nautilus_cluebar_color shade(@sidebar_background, 1.00); @define-color treeview_focus_border @nautilus_cluebar_color; @define-color calc_display_fg_color black; @define-color expander_row_selected_color #FFF; @define-color test #f00; /******* * OSD * *******/ @define-color osd_highlight #fff; @define-color osd_lowlight #525252; @define-color osd_base #212526; @define-color osd_fg #ededed; @define-color osd_bg alpha(@osd_base, 0.80); @define-color osd_bg_backdrop alpha(shade(@osd_base, 1.40), 0.90); @define-color osd_text_shadow alpha(black, 0.75); @define-color osd_toolbar_bg_a alpha(@osd_base, 0.80); @define-color osd_toolbar_bg_b alpha(#101010, 0.80); @define-color osd_toolbar_bg_c alpha(shade(@osd_base, 1.02), 0.80); @define-color osd_button_bg_a alpha(@osd_highlight, 0.16); @define-color osd_button_bg_b alpha(@osd_lowlight, 0.05); @define-color osd_button_bg_c alpha(@osd_highlight, 0.12); @define-color osd_button_bg_insensitive alpha(@osd_highlight, 0.25); @define-color osd_button_bg_insensitive_active alpha(@osd_highlight, 0.16); @define-color osd_button_bg_hover_a alpha(@osd_highlight, 0.28); @define-color osd_button_bg_hover_b alpha(@osd_lowlight, 0.14); @define-color osd_button_bg_hover_c alpha(@osd_highlight, 0.14); @define-color osd_button_bg_active_a alpha(@osd_lowlight, 0.18); @define-color osd_button_bg_active_b alpha(@osd_highlight, 0.23); @define-color osd_button_bg_active_c alpha(@osd_lowlight, 0.17); @define-color osd_button_bg_backdrop alpha(@osd_highlight, 0.18); @define-color osd_button_bg_backdrop_hover alpha(@osd_highlight, 0.25); @define-color osd_button_bg_backdrop_active alpha(@osd_highlight, 0.35); @define-color osd_button_bg_backdrop_insensitive alpha(@osd_highlight, 0.08); @define-color osd_button_fg_backdrop shade(@osd_fg, 0.70); @define-color osd_button_fg_backdrop_active shade(@osd_fg, 0.95); @define-color osd_button_fg shade(@osd_fg, 0.80); @define-color osd_button_fg_hover shade(@osd_fg, 0.96); @define-color osd_button_fg_active shade(@osd_fg, 1.10); @define-color osd_button_fg_insensitive shade(@osd_fg, 0.70); @define-color osd_button_border alpha(@osd_highlight, 0.40); @define-color osd_button_inset shade(@osd_fg, 0.67); @define-color osd_button_shadow alpha(black, 0.35); @define-color osd_trough_bg alpha(@osd_button_fg, 0.10); /* Metacity ¡No modificar! */ @define-color wm_highlight #fff; @define-color wm_title_highlight #fff; @define-color wm_bg_a shade (@bg_color, 1.1); @define-color wm_bg_b @bg_color; @define-color wm_button_bg_a shade (@bg_color, 1.0); @define-color wm_button_bg_b shade (@bg_color, 0.85); @define-color wm_button_bg_c shade (@bg_color, 0.8); @define-color wm_button_bg_d shade (@bg_color, 0.9); @define-color wm_button_bg_hover_a shade (@wm_button_bg_a, 1.1); @define-color wm_button_bg_hover_b shade (@wm_button_bg_b, 1.1); @define-color wm_button_bg_hover_c shade (@wm_button_bg_c, 1.1); @define-color wm_button_bg_hover_d shade (@wm_button_bg_d, 1.1); @define-color wm_button_bg_active_a shade (@bg_color, 0.7); @define-color wm_button_bg_active_b shade (@bg_color, 0.9); @define-color wm_button_bg_active_c shade (@bg_color, 0.9); @import url("gtk-widgets.css"); @import url("menu.css"); @import url("scrollbar.css"); @import url("sidebar.css"); @import url("gtk-widgets-assets.css"); @import url("unity-greeter.css"); @import url("gnome-panel.css"); /* Select style for TABS 1.- tabs dark gray (full) @import url("tabs-dark.css"); 2.- tabs themed blue (full) @import url("tabs-themed.css"); 3.- Default theme tabs @import url("tabs.css"); 4.- tabs with dark gray highlight @import url("tabs-mono.css"); 5.- more traditional style tabs @import url("tabs-classic.css"); (Be careful to leave only ONE of the five, edit the line below according to the style you want) */ @import url("tabs-mono.css"); /* some gnome-mdi-apps */ @import url("gnome-mdi.css"); /* There are 2 options for Unity panel: If you prefer the dark panel "Unity" ------------------------------------ @import url("unity-darkest.css"); If you prefer the default (perfect fit with maximized windows) -------------------------------------------------------------- @import url("unity.css"); (edit the line below according to the style you want) -------------------------------------------------------------- */ @import url("unity.css"); /* There are 7 options for nautilus: ----------------------------------- Nautilus 3.6 (default) ----------------------------------- Nautilus 3.6.x for gnome-shell 3.6.x or unity @import url("nautilus36.css"); ----------------------------------- 3 for Nautilus 3.4 GNOME-SHELL ----------------------------------- 1.- nautilus sidebar and pathbar dark gray: @import url("gnome-nautilus34-gray.css"); OR 2.- nautilus sidebar and pathbar light: @import url("gnome-nautilus34-light.css"); OR 3.- nautilus sidebar dark gray and pathbar light: @import url("gnome-nautilus34-gray-light.css"); ----------------------------------- 3 for Nautilus 3.4 UNITY ----------------------------------- 1.- nautilus sidebar and pathbar dark gray: @import url("unity-nautilus34-gray.css"); OR 2.- nautilus sidebar and pathbar light: @import url("unity-nautilus34-light.css"); OR 3.- nautilus sidebar dark gray and pathbar light: @import url("unity-nautilus34-gray-light.css"); (edit the line below according to the style of nautilus you want) -------------------------------------------------------------------- */ @import url("nautilus36.css");
darvelo/pkg-mediterranean-gtk-themes
MediterraneanWhiteNight/gtk-3.0/gtk.css
CSS
gpl-3.0
11,915
[ 30522, 1013, 1008, 12398, 3609, 5679, 1008, 1013, 1030, 9375, 1011, 3609, 2918, 1035, 3609, 1001, 3611, 8447, 1025, 1030, 9375, 1011, 3609, 1038, 2290, 1035, 3609, 1001, 1039, 2575, 2278, 2575, 2278, 2575, 1025, 1030, 9375, 1011, 3609, 3793, 1035, 3609, 1001, 17365, 2575, 16048, 1025, 1030, 9375, 1011, 3609, 1042, 2290, 1035, 3609, 1001, 22431, 20958, 2549, 1025, 1030, 9375, 1011, 3609, 3479, 1035, 1038, 2290, 1035, 3609, 1001, 26424, 2575, 2581, 2620, 2581, 1025, 1030, 9375, 1011, 3609, 3479, 1035, 1042, 2290, 1035, 3609, 1001, 21461, 2546, 1025, 1030, 9375, 1011, 3609, 6994, 25101, 1035, 1038, 2290, 1035, 3609, 1001, 5840, 2692, 12740, 2549, 1025, 1030, 9375, 1011, 3609, 6994, 25101, 1035, 1042, 2290, 1035, 3609, 1001, 21461, 2546, 1025, 1013, 1008, 3609, 2863, 2361, 2941, 2109, 2011, 1996, 4323, 1010, 2000, 2022, 2058, 14615, 4181, 1999, 2060, 20116, 2015, 6764, 1008, 1013, 1030, 9375, 1011, 3609, 4323, 1035, 2918, 1035, 3609, 1030, 2918, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 1038, 2290, 1035, 3609, 1030, 1038, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 3793, 1035, 3609, 1030, 3793, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 1042, 2290, 1035, 3609, 1030, 1042, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 5192, 1035, 3609, 6541, 1006, 1001, 21461, 2546, 1010, 1014, 1012, 2570, 1007, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 3479, 1035, 1038, 2290, 1035, 3609, 1001, 4185, 21084, 21084, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 3479, 1035, 1042, 2290, 1035, 3609, 1030, 3479, 1035, 1042, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 3479, 1035, 5192, 1035, 3609, 6541, 1006, 1001, 2199, 1010, 1014, 1012, 2324, 1007, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 6994, 25101, 1035, 1038, 2290, 1035, 3609, 1030, 6994, 25101, 1035, 1038, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 6994, 25101, 1035, 1042, 2290, 1035, 3609, 1030, 6994, 25101, 1035, 1042, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 12183, 1035, 1038, 2290, 1035, 3609, 8703, 1006, 1030, 4323, 1035, 1038, 2290, 1035, 3609, 1010, 1015, 1012, 5757, 1007, 1025, 1030, 9375, 1011, 3609, 12183, 1035, 1042, 2290, 1035, 3609, 8703, 1006, 1030, 4323, 1035, 1042, 2290, 1035, 3609, 1010, 1015, 1012, 4002, 1007, 1025, 1030, 9375, 1011, 3609, 12183, 1035, 5192, 1035, 3609, 1030, 4323, 1035, 5192, 1035, 3609, 1025, 30524, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1031, 7095, 1011, 2317, 1011, 2305, 1033, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1030, 9375, 1011, 3609, 4323, 1035, 1038, 2290, 1035, 2601, 1035, 3609, 1030, 4323, 1035, 1038, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 4323, 1035, 1042, 2290, 1035, 2601, 1035, 3609, 1030, 4323, 1035, 1042, 2290, 1035, 3609, 1025, 1030, 9375, 1011, 3609, 30523, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
/* * This project and its source code is licensed under * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * Copyright (c) 2017 Mathias Lux, [email protected] */ package at.juggle.games.counting.client; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.backends.gwt.GwtApplication; import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; import at.juggle.games.counting.CountingGame; import at.juggle.games.counting.SpeechInterface; public class HtmlLauncher extends GwtApplication { @Override public GwtApplicationConfiguration getConfig () { return new GwtApplicationConfiguration(480, 320); } @Override public ApplicationListener createApplicationListener () { return new CountingGame(new SpeechInterface() { @Override public void speakOut(String text) { return; } }); } }
dermotte/CountingGame
html/src/at/juggle/games/counting/client/HtmlLauncher.java
Java
apache-2.0
1,046
[ 30522, 1013, 1008, 1008, 2023, 2622, 1998, 2049, 3120, 3642, 2003, 7000, 2104, 1008, 15895, 6105, 1008, 2544, 1016, 1012, 1014, 1010, 2254, 2432, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2418, 20494, 28359, 1010, 20494, 1030, 26536, 9354, 1012, 2012, 1008, 1013, 7427, 2012, 1012, 26536, 9354, 1012, 2399, 1012, 10320, 1012, 7396, 1025, 12324, 4012, 1012, 2919, 27179, 1012, 1043, 2094, 2595, 1012, 4646, 9863, 24454, 1025, 12324, 4012, 1012, 2919, 27179, 1012, 1043, 2094, 2595, 1012, 2067, 10497, 2015, 1012, 1043, 26677, 1012, 1043, 26677, 29098, 19341, 3508, 1025, 12324, 4012, 1012, 2919, 27179, 1012, 1043, 2094, 2595, 1012, 2067, 10497, 2015, 1012, 1043, 26677, 1012, 1043, 26677, 29098, 19341, 3508, 8663, 8873, 27390, 3370, 1025, 12324, 2012, 1012, 26536, 9354, 1012, 2399, 1012, 10320, 1012, 10320, 16650, 1025, 12324, 2012, 1012, 26536, 9354, 1012, 2399, 1012, 10320, 1012, 4613, 18447, 2121, 12172, 1025, 2270, 2465, 16129, 17298, 26091, 2099, 8908, 1043, 26677, 29098, 19341, 3508, 1063, 1030, 2058, 15637, 2270, 1043, 26677, 29098, 19341, 3508, 8663, 8873, 27390, 3370, 2131, 8663, 8873, 2290, 1006, 1007, 1063, 2709, 2047, 1043, 26677, 29098, 19341, 3508, 8663, 8873, 27390, 3370, 1006, 17295, 1010, 13710, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 4646, 9863, 24454, 3443, 29098, 19341, 3508, 9863, 24454, 1006, 1007, 1063, 2709, 2047, 10320, 16650, 1006, 2047, 4613, 18447, 2121, 12172, 1006, 1007, 1063, 1030, 2058, 15637, 2270, 11675, 3713, 5833, 1006, 5164, 3793, 1007, 1063, 2709, 1025, 1065, 1065, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* drivers/misc/fm34_we395.c - fm34_we395 voice processor driver * * Copyright (C) 2012 Samsung Corporation. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include <linux/interrupt.h> #include <linux/i2c.h> #include <linux/slab.h> #include <linux/irq.h> #include <linux/miscdevice.h> #include <linux/gpio.h> #include <linux/uaccess.h> #include <linux/delay.h> #include <linux/input.h> #include <linux/workqueue.h> #include <linux/freezer.h> #include <linux/kthread.h> #include <linux/i2c/fm34_we395.h> #include "2mic/fm34_we395.h" #define MODULE_NAME "[FM34_WE395] :" #define DEBUG 0 static struct i2c_client *this_client; static struct fm34_platform_data *pdata; #if defined(CONFIG_MACH_C1_KOR_LGT) || defined(CONFIG_MACH_BAFFIN_KOR_LGT) unsigned char bypass_cmd[] = { /*0xC0,*/ 0xFC, 0xF3, 0x3B, 0x22, 0xC0, 0x00, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xC1, 0x00, 0x01, 0xFC, 0xF3, 0x3B, 0x22, 0xC2, 0x00, 0x02, 0xFC, 0xF3, 0x3B, 0x22, 0xC3, 0x00, 0x02, 0xFC, 0xF3, 0x3B, 0x22, 0xC6, 0x00, 0x7D, 0xFC, 0xF3, 0x3B, 0x22, 0xC7, 0x00, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xC8, 0x00, 0x18, 0xFC, 0xF3, 0x3B, 0x22, 0xD2, 0x82, 0x94, 0xFC, 0xF3, 0x3B, 0x22, 0xEE, 0x00, 0x01, 0xFC, 0xF3, 0x3B, 0x22, 0xF5, 0x00, 0x03, 0xFC, 0xF3, 0x3B, 0x22, 0xF6, 0x00, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xF8, 0x80, 0x01, 0xFC, 0xF3, 0x3B, 0x22, 0xF9, 0x08, 0x7F, 0xFC, 0xF3, 0x3B, 0x22, 0xFA, 0x24, 0x8B, 0xFC, 0xF3, 0x3B, 0x23, 0x07, 0x00, 0x00, 0xFC, 0xF3, 0x3B, 0x23, 0x0A, 0x1A, 0x00, 0xFC, 0xF3, 0x3B, 0x23, 0x0C, 0x00, 0xB8, 0xFC, 0xF3, 0x3B, 0x23, 0x0D, 0x02, 0x00, 0xFC, 0xF3, 0x3B, 0x23, 0x65, 0x08, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xFB, 0x00, 0x00 }; #else unsigned char bypass_cmd[] = { /*0xC0,*/ 0xFC, 0xF3, 0x3B, 0x22, 0xF5, 0x00, 0x03, 0xFC, 0xF3, 0x3B, 0x22, 0xF8, 0x80, 0x03, 0xFC, 0xF3, 0x3B, 0x22, 0xC6, 0x00, 0x7D, 0xFC, 0xF3, 0x3B, 0x22, 0xC7, 0x00, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xC8, 0x00, 0x18, 0xFC, 0xF3, 0x3B, 0x23, 0x0A, 0x1A, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xFA, 0x24, 0x8B, 0xFC, 0xF3, 0x3B, 0x22, 0xF9, 0x00, 0x7F, 0xFC, 0xF3, 0x3B, 0x22, 0xF6, 0x00, 0x00, 0xFC, 0xF3, 0x3B, 0x22, 0xD2, 0x82, 0x94, 0xFC, 0xF3, 0x3B, 0x22, 0xEE, 0x00, 0x01, 0xFC, 0xF3, 0x3B, 0x22, 0xFB, 0x00, 0x00, }; #endif static int fm34_i2c_read(char *rxData, int length) { int rc; struct i2c_msg msgs[] = { { .addr = this_client->addr, .flags = I2C_M_RD, .len = length, .buf = rxData, }, }; rc = i2c_transfer(this_client->adapter, msgs, 1); if (rc < 0) { pr_err("%s: transfer error %d\n", __func__, rc); return rc; } return 0; } static int fm34_i2c_write(char *txData, int length) { int rc; struct i2c_msg msg[] = { { .addr = this_client->addr, .flags = 0, .len = length, .buf = txData, }, }; rc = i2c_transfer(this_client->adapter, msg, 1); if (rc < 0) { pr_err("%s: transfer error %d\n", __func__, rc); return rc; } return 0; } #if defined(CONFIG_MACH_C1_KOR_LGT) || defined(CONFIG_MACH_BAFFIN_KOR_LGT) void fm34_parameter_reset(void) { pr_info(MODULE_NAME "%s\n", __func__); if (pdata->gpio_rst) { gpio_set_value(pdata->gpio_rst, 0); usleep_range(5000, 5000); gpio_set_value(pdata->gpio_rst, 1); } usleep_range(5000, 5000); } int fm34_set_bypass_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; pr_info(MODULE_NAME "%s\n", __func__); fm34_parameter_reset(); i2c_cmds = bypass_cmd; size = sizeof(bypass_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_hw_bypass_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; pr_info(MODULE_NAME "%s\n", __func__); usleep_range(20000, 20000); gpio_set_value(pdata->gpio_pwdn, 0); return rc; } int fm34_set_loopback_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = loopback_cmd; size = sizeof(loopback_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_HS_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HS_cmd; size = sizeof(HS_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_SPK_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HF_cmd; size = sizeof(HF_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_HS_NS_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HS_NS_cmd; size = sizeof(HS_NS_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_HS_ExtraVol_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HS_ExtraVol_cmd; size = sizeof(HS_ExtraVol_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_SPK_ExtraVol_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HF_ExtraVol_cmd; size = sizeof(HF_ExtraVol_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_ExtraVol_NS_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HS_ExtraVol_NS_cmd; size = sizeof(HS_ExtraVol_NS_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_EP_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = EP_cmd; size = sizeof(EP_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_BTSCO_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = BT_SCO_cmd; size = sizeof(BT_SCO_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_factory_rcv_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HS_FACTORY_RCV_cmd; size = sizeof(HS_FACTORY_RCV_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_factory_spk_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; int val = gpio_get_value(pdata->gpio_pwdn); pr_info(MODULE_NAME "%s\n", __func__); if (val == 0) gpio_set_value(pdata->gpio_pwdn, 1); fm34_parameter_reset(); i2c_cmds = HS_FACTORY_SPK_cmd; size = sizeof(HS_FACTORY_SPK_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); return rc; } int fm34_set_mode(int mode) { int ret = 0; pr_info(MODULE_NAME "%s : fm34_set_mode mode[%d]\n", __func__, mode); if (mode == 0) ret = fm34_set_bypass_mode(); /* OFF,Bypass */ else if (mode == 1) ret = fm34_set_HS_mode(); /* Receiver */ else if (mode == 2) ret = fm34_set_bypass_mode(); /* S/W Bypass */ else if (mode == 3) ret = fm34_set_SPK_mode(); /* Speaker */ else if (mode == 4) ret = fm34_set_hw_bypass_mode(); /* PwrDn H/W Bypass */ else if (mode == 5) ret = fm34_set_HS_NS_mode(); /* Receiver+NS */ else if (mode == 6) ret = fm34_set_HS_ExtraVol_mode(); /* Receiver+ExtraVol */ else if (mode == 7) ret = fm34_set_SPK_ExtraVol_mode(); /* Speaker+ExtraVol */ else if (mode == 8) ret = fm34_set_EP_mode(); /* Headset */ else if (mode == 9) ret = fm34_set_BTSCO_mode(); /* BT SCO */ else if (mode == 11) ret = fm34_set_factory_rcv_mode(); /* Factory Mode RCV */ else if (mode == 12) ret = fm34_set_factory_spk_mode(); /* Factory Mode SPK */ else if (mode == 13) ret = fm34_set_ExtraVol_NS_mode(); /* Receiver+ExtraVol+NS */ else pr_err(MODULE_NAME"fm34_set_mode : INVALID mode[%d]\n", mode); return ret; } EXPORT_SYMBOL_GPL(fm34_set_mode); #else int fm34_set_bypass_mode(void) { int i = 0, rc = 0, size = 0; unsigned char *i2c_cmds; pr_info(MODULE_NAME "%s\n", __func__); i2c_cmds = bypass_cmd; size = sizeof(bypass_cmd); #if DEBUG for (i = 0; i < size; i += 1) pr_info(MODULE_NAME "%s : i2c_cmds[%d/%d] = 0x%x\n", __func__, i, size, i2c_cmds[i]); #endif rc = fm34_i2c_write(i2c_cmds, size); if (rc < 0) { pr_err(MODULE_NAME "%s failed return %d\n", __func__, rc); } else if (pdata->gpio_pwdn) { msleep(20); gpio_set_value(pdata->gpio_pwdn, 0); } return rc; } #endif static struct miscdevice fm34_device = { .minor = MISC_DYNAMIC_MINOR, .name = "fm34_we395", }; static void fm34_gpio_init(void) { if (pdata->gpio_rst) { gpio_request(pdata->gpio_rst, "FM34_RESET"); gpio_direction_output(pdata->gpio_rst, 1); gpio_free(pdata->gpio_rst); gpio_set_value(pdata->gpio_rst, 0); } usleep_range(10000, 10000); if (pdata->gpio_pwdn) { gpio_request(pdata->gpio_pwdn, "FM34_PWDN"); gpio_direction_output(pdata->gpio_pwdn, 1); gpio_free(pdata->gpio_pwdn); gpio_set_value(pdata->gpio_pwdn, 1); } if (pdata->gpio_bp) { gpio_request(pdata->gpio_bp, "FM34_BYPASS"); gpio_direction_output(pdata->gpio_bp, 1); gpio_free(pdata->gpio_bp); gpio_set_value(pdata->gpio_bp, 1); } } static void fm34_bootup_init(void) { if (pdata->set_mclk != NULL) pdata->set_mclk(true, false); msleep(20); if (pdata->gpio_rst) { gpio_set_value(pdata->gpio_rst, 0); msleep(20); gpio_set_value(pdata->gpio_rst, 1); } msleep(50); } static int fm34_probe( struct i2c_client *client, const struct i2c_device_id *id) { int rc = 0; pdata = client->dev.platform_data; pr_info(MODULE_NAME "%s : start\n", __func__); if (pdata == NULL) { pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); if (pdata == NULL) { rc = -ENOMEM; pr_err(MODULE_NAME "%s: platform data is NULL\n", __func__); } } this_client = client; fm34_gpio_init(); fm34_bootup_init(); if (fm34_set_bypass_mode() < 0) pr_err(MODULE_NAME "bypass setting failed %d\n", rc); pr_info(MODULE_NAME "%s : finish\n", __func__); return rc; } static int fm34_remove(struct i2c_client *client) { struct fm34_platform_data *pfm34data = i2c_get_clientdata(client); kfree(pfm34data); return 0; } static int fm34_suspend(struct i2c_client *client, pm_message_t mesg) { return 0; } static int fm34_resume(struct i2c_client *client) { return 0; } static const struct i2c_device_id fm34_id[] = { { "fm34_we395", 0 }, { } }; static struct i2c_driver fm34_driver = { .probe = fm34_probe, .remove = fm34_remove, .suspend = fm34_suspend, .resume = fm34_resume, .id_table = fm34_id, .driver = { .name = "fm34_we395", }, }; static int __init fm34_init(void) { pr_info("%s\n", __func__); return i2c_add_driver(&fm34_driver); } static void __exit fm34_exit(void) { i2c_del_driver(&fm34_driver); } module_init(fm34_init); module_exit(fm34_exit); MODULE_DESCRIPTION("fm34 voice processor driver"); MODULE_LICENSE("GPL");
vet-note/android_kernel_samsung_smdk4210
drivers/misc/fm34_we395.c
C
gpl-2.0
14,942
[ 30522, 1013, 1008, 6853, 1013, 28616, 2278, 1013, 4718, 22022, 1035, 2057, 23499, 2629, 1012, 1039, 1011, 4718, 22022, 1035, 2057, 23499, 2629, 2376, 13151, 4062, 1008, 1008, 9385, 1006, 1039, 1007, 2262, 19102, 3840, 1012, 1008, 1008, 2023, 4007, 2003, 7000, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 1008, 6105, 2544, 1016, 1010, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 1998, 1008, 2089, 2022, 15826, 1010, 5500, 1010, 1998, 6310, 2104, 2216, 3408, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 1013, 1001, 2421, 1026, 11603, 1013, 17938, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1045, 2475, 2278, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 17584, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 20868, 4160, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 28616, 19797, 17726, 2063, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 14246, 3695, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 25423, 9468, 7971, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 8536, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 7953, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2147, 4226, 5657, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 13184, 2099, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1047, 2705, 16416, 2094, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1045, 2475, 2278, 1013, 4718, 22022, 1035, 2057, 23499, 2629, 1012, 1044, 1028, 1001, 2421, 1000, 1016, 7712, 1013, 4718, 22022, 1035, 2057, 23499, 2629, 1012, 1044, 1000, 1001, 9375, 11336, 1035, 2171, 1000, 1031, 4718, 22022, 1035, 2057, 23499, 2629, 1033, 1024, 1000, 1001, 9375, 2139, 8569, 2290, 1014, 10763, 2358, 6820, 6593, 1045, 2475, 2278, 1035, 7396, 1008, 2023, 1035, 7396, 1025, 10763, 2358, 6820, 6593, 4718, 22022, 1035, 4132, 1035, 2951, 1008, 22851, 6790, 1025, 1001, 2065, 4225, 1006, 9530, 8873, 2290, 1035, 24532, 1035, 30524, 8670, 15379, 1035, 12849, 2099, 1035, 1048, 13512, 1007, 27121, 25869, 11826, 1035, 4642, 2094, 1031, 1033, 1027, 1063, 1013, 1008, 1014, 2595, 2278, 2692, 1010, 1008, 1013, 1014, 2595, 11329, 1010, 1014, 2595, 2546, 2509, 1010, 1014, 2595, 2509, 2497, 1010, 1014, 2595, 19317, 1010, 1014, 2595, 2278, 2692, 1010, 1014, 2595, 8889, 1010, 1014, 2595, 8889, 1010, 1014, 2595, 11329, 1010, 1014, 2595, 2546, 2509, 1010, 1014, 2595, 2509, 2497, 1010, 1014, 2595, 19317, 1010, 1014, 2595, 2278, 2487, 1010, 1014, 2595, 8889, 1010, 1014, 2595, 24096, 1010, 1014, 2595, 11329, 1010, 1014, 2595, 2546, 2509, 1010, 1014, 2595, 2509, 2497, 1010, 1014, 2595, 19317, 1010, 1014, 2595, 2278, 2475, 1010, 1014, 2595, 8889, 1010, 1014, 2595, 2692, 2475, 1010, 1014, 2595, 11329, 1010, 1014, 2595, 2546, 2509, 1010, 1014, 2595, 2509, 2497, 30523, 27723, 1035, 12849, 2099, 1035, 1048, 13512, 1007, 1064, 1064, 4225, 1006, 9530, 8873, 2290, 1035, 24532, 1035, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 27723, 1035, 12849, 2099, 1035, 1048, 13512, 1007, 1064, 1064, 4225, 1006, 9530, 8873, 2290, 1035, 24532, 1035, 30526 ]
package io.dropwizard.migrations; import com.google.common.base.Charsets; import io.dropwizard.Configuration; import io.dropwizard.db.DatabaseConfiguration; import liquibase.Liquibase; import liquibase.diff.DiffGeneratorFactory; import liquibase.diff.DiffResult; import liquibase.diff.compare.CompareControl; import liquibase.diff.output.DiffOutputControl; import liquibase.diff.output.changelog.DiffToChangeLog; import liquibase.structure.DatabaseObject; import liquibase.structure.core.*; import net.sourceforge.argparse4j.impl.Arguments; import net.sourceforge.argparse4j.inf.ArgumentGroup; import net.sourceforge.argparse4j.inf.Namespace; import net.sourceforge.argparse4j.inf.Subparser; import java.io.PrintStream; import java.util.HashSet; import java.util.Set; public class DbDumpCommand<T extends Configuration> extends AbstractLiquibaseCommand<T> { public DbDumpCommand(DatabaseConfiguration<T> strategy, Class<T> configurationClass) { super("dump", "Generate a dump of the existing database state.", strategy, configurationClass); } @Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-o", "--output") .dest("output") .help("Write output to <file> instead of stdout"); final ArgumentGroup tables = subparser.addArgumentGroup("Tables"); tables.addArgument("--tables") .action(Arguments.storeTrue()) .dest("tables") .help("Check for added or removed tables (default)"); tables.addArgument("--ignore-tables") .action(Arguments.storeFalse()) .dest("tables") .help("Ignore tables"); final ArgumentGroup columns = subparser.addArgumentGroup("Columns"); columns.addArgument("--columns") .action(Arguments.storeTrue()) .dest("columns") .help("Check for added, removed, or modified tables (default)"); columns.addArgument("--ignore-columns") .action(Arguments.storeFalse()) .dest("columns") .help("Ignore columns"); final ArgumentGroup views = subparser.addArgumentGroup("Views"); views.addArgument("--views") .action(Arguments.storeTrue()) .dest("views") .help("Check for added, removed, or modified views (default)"); views.addArgument("--ignore-views") .action(Arguments.storeFalse()) .dest("views") .help("Ignore views"); final ArgumentGroup primaryKeys = subparser.addArgumentGroup("Primary Keys"); primaryKeys.addArgument("--primary-keys") .action(Arguments.storeTrue()) .dest("primary-keys") .help("Check for changed primary keys (default)"); primaryKeys.addArgument("--ignore-primary-keys") .action(Arguments.storeFalse()) .dest("primary-keys") .help("Ignore primary keys"); final ArgumentGroup uniqueConstraints = subparser.addArgumentGroup("Unique Constraints"); uniqueConstraints.addArgument("--unique-constraints") .action(Arguments.storeTrue()) .dest("unique-constraints") .help("Check for changed unique constraints (default)"); uniqueConstraints.addArgument("--ignore-unique-constraints") .action(Arguments.storeFalse()) .dest("unique-constraints") .help("Ignore unique constraints"); final ArgumentGroup indexes = subparser.addArgumentGroup("Indexes"); indexes.addArgument("--indexes") .action(Arguments.storeTrue()) .dest("indexes") .help("Check for changed indexes (default)"); indexes.addArgument("--ignore-indexes") .action(Arguments.storeFalse()) .dest("indexes") .help("Ignore indexes"); final ArgumentGroup foreignKeys = subparser.addArgumentGroup("Foreign Keys"); foreignKeys.addArgument("--foreign-keys") .action(Arguments.storeTrue()) .dest("foreign-keys") .help("Check for changed foreign keys (default)"); foreignKeys.addArgument("--ignore-foreign-keys") .action(Arguments.storeFalse()) .dest("foreign-keys") .help("Ignore foreign keys"); final ArgumentGroup sequences = subparser.addArgumentGroup("Sequences"); sequences.addArgument("--sequences") .action(Arguments.storeTrue()) .dest("sequences") .help("Check for changed sequences (default)"); sequences.addArgument("--ignore-sequences") .action(Arguments.storeFalse()) .dest("sequences") .help("Ignore foreign keys"); final ArgumentGroup data = subparser.addArgumentGroup("Data"); data.addArgument("--data") .action(Arguments.storeTrue()) .dest("data") .help("Check for changed data") .setDefault(Boolean.FALSE); data.addArgument("--ignore-data") .action(Arguments.storeFalse()) .dest("data") .help("Ignore data (default)") .setDefault(Boolean.FALSE); } @Override @SuppressWarnings("UseOfSystemOutOrSystemErr") public void run(Namespace namespace, Liquibase liquibase) throws Exception { final Set<Class<? extends DatabaseObject>> compareTypes = new HashSet<>(); if (namespace.getBoolean("columns")) { compareTypes.add(Column.class); } if (namespace.getBoolean("data")) { compareTypes.add(Data.class); } if (namespace.getBoolean("foreign-keys")) { compareTypes.add(ForeignKey.class); } if (namespace.getBoolean("indexes")) { compareTypes.add(Index.class); } if (namespace.getBoolean("primary-keys")) { compareTypes.add(PrimaryKey.class); } if (namespace.getBoolean("sequences")) { compareTypes.add(Sequence.class); } if (namespace.getBoolean("tables")) { compareTypes.add(Table.class); } if (namespace.getBoolean("unique-constraints")) { compareTypes.add(UniqueConstraint.class); } if (namespace.getBoolean("views")) { compareTypes.add(View.class); } final DiffResult diffResult = DiffGeneratorFactory.getInstance().compare( liquibase.getDatabase(), null, new CompareControl(compareTypes)); final DiffToChangeLog diffToChangeLog = new DiffToChangeLog(diffResult, new DiffOutputControl()); final String filename = namespace.getString("output"); if (filename != null) { try (PrintStream file = new PrintStream(filename, Charsets.UTF_8.name())) { diffToChangeLog.print(file); } } else { diffToChangeLog.print(System.out); } } }
vimond/dropwizard
dropwizard-migrations/src/main/java/io/dropwizard/migrations/DbDumpCommand.java
Java
apache-2.0
7,326
[ 30522, 7427, 22834, 1012, 4530, 9148, 26154, 1012, 9230, 2015, 1025, 12324, 4012, 1012, 8224, 1012, 2691, 1012, 2918, 1012, 25869, 13462, 2015, 1025, 12324, 22834, 1012, 4530, 9148, 26154, 1012, 9563, 1025, 12324, 22834, 1012, 30524, 15058, 1012, 5622, 15549, 15058, 1025, 12324, 5622, 15549, 15058, 1012, 4487, 4246, 1012, 4487, 4246, 6914, 6906, 4263, 21450, 1025, 12324, 5622, 15549, 15058, 1012, 4487, 4246, 1012, 4487, 4246, 6072, 11314, 1025, 12324, 5622, 15549, 15058, 1012, 4487, 4246, 1012, 12826, 1012, 12826, 8663, 13181, 2140, 1025, 12324, 5622, 15549, 15058, 1012, 4487, 4246, 1012, 6434, 1012, 4487, 4246, 5833, 18780, 8663, 13181, 2140, 1025, 12324, 5622, 15549, 15058, 1012, 4487, 4246, 1012, 6434, 1012, 2689, 21197, 1012, 4487, 4246, 3406, 22305, 18349, 2290, 1025, 12324, 5622, 15549, 15058, 1012, 3252, 1012, 7809, 16429, 20614, 1025, 12324, 5622, 15549, 15058, 1012, 3252, 1012, 4563, 1012, 1008, 1025, 12324, 5658, 1012, 3120, 29278, 3351, 1012, 12098, 21600, 11650, 2063, 2549, 3501, 1012, 17727, 2140, 1012, 9918, 1025, 12324, 5658, 1012, 3120, 29278, 3351, 1012, 12098, 21600, 11650, 2063, 2549, 3501, 1012, 1999, 2546, 1012, 6685, 17058, 1025, 12324, 5658, 1012, 3120, 29278, 3351, 1012, 12098, 21600, 11650, 2063, 2549, 3501, 1012, 1999, 2546, 1012, 3415, 15327, 1025, 12324, 5658, 1012, 3120, 29278, 3351, 1012, 12098, 21600, 11650, 2063, 2549, 3501, 1012, 1999, 2546, 1012, 4942, 19362, 8043, 1025, 12324, 9262, 1012, 22834, 1012, 11204, 25379, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 23325, 13462, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2275, 1025, 2270, 2465, 16962, 8566, 8737, 9006, 2386, 2094, 1026, 1056, 8908, 9563, 1028, 8908, 10061, 3669, 15549, 15058, 9006, 2386, 2094, 1026, 1056, 1028, 1063, 2270, 16962, 8566, 8737, 9006, 2386, 2094, 1006, 7809, 8663, 8873, 27390, 3370, 1026, 1056, 1028, 5656, 1010, 2465, 1026, 1056, 1028, 9563, 26266, 1007, 1063, 3565, 1006, 1000, 15653, 1000, 1010, 1000, 9699, 1037, 15653, 1997, 1996, 4493, 7809, 2110, 1012, 1000, 1010, 5656, 1010, 9563, 26266, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 9530, 8873, 27390, 2063, 1006, 4942, 19362, 8043, 4942, 19362, 8043, 1007, 1063, 3565, 1012, 9530, 8873, 27390, 2063, 1006, 4942, 19362, 8043, 1007, 1025, 4942, 19362, 8043, 1012, 5587, 2906, 22850, 4765, 1006, 1000, 1011, 1051, 1000, 1010, 1000, 1011, 1011, 6434, 1000, 1007, 1012, 4078, 2102, 1006, 1000, 6434, 1000, 1007, 1012, 2393, 1006, 1000, 4339, 6434, 2000, 1026, 5371, 1028, 2612, 1997, 2358, 26797, 2102, 1000, 1007, 1025, 2345, 6685, 17058, 7251, 1027, 4942, 19362, 8043, 1012, 5587, 2906, 22850, 4765, 17058, 1006, 1000, 7251, 1000, 1007, 1025, 7251, 1012, 5587, 2906, 22850, 4765, 1006, 1000, 1011, 1011, 7251, 1000, 1007, 1012, 2895, 1006, 9918, 1012, 3573, 16344, 5657, 1006, 1007, 1007, 1012, 4078, 2102, 1006, 1000, 7251, 1000, 1007, 1012, 2393, 1006, 1000, 4638, 2005, 2794, 2030, 3718, 7251, 1006, 12398, 1007, 1000, 1007, 1025, 7251, 1012, 5587, 2906, 22850, 4765, 1006, 1000, 1011, 1011, 8568, 1011, 7251, 1000, 30523, 4530, 9148, 26154, 1012, 16962, 1012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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4530, 9148, 26154, 1012, 16962, 1012, 7809, 8663, 8873, 27390, 3370, 1025, 12324, 5622, 15549, 30526 ]
// // CertificateHandlerFactory.cpp // // Library: NetSSL_OpenSSL // Package: SSLCore // Module: CertificateHandlerFactory // // Copyright (c) 2006-2009, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/Net/CertificateHandlerFactory.h" #include "Poco/Net/SSLManager.h" namespace Poco { namespace Net { CertificateHandlerFactory::CertificateHandlerFactory() { } CertificateHandlerFactory::~CertificateHandlerFactory() { } CertificateHandlerFactoryRegistrar::CertificateHandlerFactoryRegistrar(const std::string& name, CertificateHandlerFactory* pFactory) { SSLManager::instance().certificateHandlerFactoryMgr().setFactory(name, pFactory); } CertificateHandlerFactoryRegistrar::~CertificateHandlerFactoryRegistrar() { } } } // namespace Poco::Net
macchina-io/macchina.io
platform/NetSSL_OpenSSL/src/CertificateHandlerFactory.cpp
C++
apache-2.0
837
[ 30522, 1013, 1013, 1013, 1013, 8196, 11774, 3917, 21450, 1012, 18133, 2361, 1013, 1013, 1013, 1013, 3075, 1024, 16996, 14540, 1035, 7480, 14540, 1013, 1013, 7427, 1024, 7020, 22499, 2890, 1013, 1013, 11336, 1024, 8196, 11774, 3917, 21450, 1013, 1013, 1013, 1013, 9385, 1006, 1039, 1007, 2294, 1011, 2268, 1010, 4162, 12367, 17592, 4007, 3330, 18289, 1012, 1013, 1013, 1998, 16884, 1012, 1013, 1013, 1013, 1013, 23772, 2595, 1011, 6105, 1011, 8909, 4765, 18095, 1024, 18667, 2140, 1011, 1015, 1012, 1014, 1013, 1013, 1001, 2421, 1000, 13433, 3597, 1013, 5658, 1013, 8196, 11774, 3917, 21450, 1012, 1044, 1000, 1001, 2421, 1000, 13433, 3597, 1013, 5658, 1013, 7020, 12624, 17325, 1012, 1044, 1000, 3415, 15327, 13433, 3597, 1063, 3415, 15327, 5658, 1063, 8196, 11774, 3917, 21450, 1024, 1024, 8196, 11774, 3917, 21450, 1006, 1007, 1063, 1065, 8196, 11774, 3917, 21450, 1024, 1024, 1066, 8196, 11774, 3917, 21450, 1006, 1007, 1063, 1065, 8196, 11774, 3917, 21450, 2890, 24063, 19848, 1024, 1024, 8196, 11774, 3917, 21450, 2890, 24063, 19848, 1006, 9530, 3367, 2358, 2094, 1024, 1024, 5164, 1004, 2171, 1010, 8196, 11774, 3917, 21450, 1008, 1052, 21450, 1007, 1063, 7020, 12624, 17325, 1024, 1024, 6013, 1006, 1007, 1012, 8196, 11774, 3917, 21450, 24798, 2099, 1006, 1007, 1012, 2275, 21450, 1006, 2171, 1010, 1052, 21450, 1007, 1025, 1065, 8196, 11774, 3917, 21450, 2890, 24063, 19848, 1024, 1024, 1066, 8196, 11774, 3917, 21450, 2890, 24063, 19848, 1006, 1007, 1063, 1065, 1065, 1065, 1013, 1013, 3415, 15327, 13433, 3597, 1024, 1024, 5658, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
// // NSDataDetector+TFEasyCoder.h // TFEasyCoder // // Created by ztf on 16/10/26. // Copyright © 2016年 ztf. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "TFEasyCoderConst.h" typedef void(^NSDataDetectorEasyCoderBlock) (NSDataDetector * ins); @interface NSDataDetector (TFEasyCoder) +( NSDataDetector *)easyCoder:(NSDataDetectorEasyCoderBlock)block; -(NSDataDetector *)easyCoder:(NSDataDetectorEasyCoderBlock)block; //superclass pros NSRegularExpression //superclass pros NSObject -(NSDataDetector *(^)(NSArray * accessibilityElements))set_accessibilityElements; -(NSDataDetector *(^)(NSArray * accessibilityCustomActions))set_accessibilityCustomActions; -(NSDataDetector *(^)(BOOL isAccessibilityElement))set_isAccessibilityElement; -(NSDataDetector *(^)(NSString * accessibilityLabel))set_accessibilityLabel; -(NSDataDetector *(^)(NSString * accessibilityHint))set_accessibilityHint; -(NSDataDetector *(^)(NSString * accessibilityValue))set_accessibilityValue; -(NSDataDetector *(^)(unsigned long long accessibilityTraits))set_accessibilityTraits; -(NSDataDetector *(^)(UIBezierPath * accessibilityPath))set_accessibilityPath; -(NSDataDetector *(^)(CGPoint accessibilityActivationPoint))set_accessibilityActivationPoint; -(NSDataDetector *(^)(NSString * accessibilityLanguage))set_accessibilityLanguage; -(NSDataDetector *(^)(BOOL accessibilityElementsHidden))set_accessibilityElementsHidden; -(NSDataDetector *(^)(BOOL accessibilityViewIsModal))set_accessibilityViewIsModal; -(NSDataDetector *(^)(BOOL shouldGroupAccessibilityChildren))set_shouldGroupAccessibilityChildren; -(NSDataDetector *(^)(long long accessibilityNavigationStyle))set_accessibilityNavigationStyle; -(NSDataDetector *(^)(id value,NSString *key))set_ValueKey; @end
shmxybfq/TFDemos
demo-转场动画/demo-转场动画/TFEasyCoder/foundation/NSDataDetector+TFEasyCoder.h
C
apache-2.0
1,835
[ 30522, 1013, 1013, 1013, 1013, 24978, 2850, 17713, 12870, 16761, 1009, 1056, 7959, 3022, 2100, 16044, 2099, 1012, 1044, 1013, 1013, 1056, 7959, 3022, 2100, 16044, 2099, 1013, 1013, 1013, 1013, 2580, 2011, 1062, 24475, 2006, 2385, 1013, 2184, 1013, 2656, 1012, 1013, 1013, 9385, 1075, 2355, 1840, 1062, 24475, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 1001, 12324, 1026, 21318, 23615, 1013, 21318, 23615, 1012, 1044, 1028, 1001, 12324, 1026, 3192, 1013, 3192, 1012, 1044, 1028, 1001, 12324, 1000, 1056, 7959, 3022, 2100, 16044, 29566, 23808, 1012, 1044, 1000, 21189, 12879, 11675, 1006, 1034, 24978, 2850, 17713, 12870, 16761, 5243, 6508, 16044, 15185, 7878, 1007, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 16021, 1007, 1025, 1030, 8278, 24978, 2850, 17713, 12870, 16761, 1006, 1056, 7959, 3022, 2100, 16044, 2099, 1007, 1009, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1007, 3733, 16044, 2099, 1024, 1006, 24978, 2850, 17713, 12870, 16761, 5243, 6508, 16044, 15185, 7878, 1007, 3796, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1007, 3733, 16044, 2099, 1024, 1006, 24978, 2850, 17713, 12870, 16761, 5243, 6508, 16044, 15185, 7878, 1007, 3796, 1025, 1013, 1013, 3565, 26266, 4013, 2015, 24978, 2890, 24848, 12069, 2595, 20110, 3258, 1013, 1013, 3565, 26266, 4013, 2015, 24978, 16429, 20614, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 23971, 11335, 2100, 1008, 23661, 12260, 8163, 1007, 1007, 2275, 1035, 23661, 12260, 8163, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 23971, 11335, 2100, 1008, 23661, 7874, 20389, 18908, 8496, 1007, 1007, 2275, 1035, 23661, 7874, 20389, 18908, 8496, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 22017, 2140, 18061, 9468, 7971, 13464, 12260, 3672, 1007, 1007, 2275, 1035, 18061, 9468, 7971, 13464, 12260, 3672, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 24978, 3367, 4892, 1008, 23661, 20470, 2884, 1007, 1007, 2275, 1035, 23661, 20470, 2884, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 24978, 3367, 4892, 1008, 23661, 10606, 2102, 1007, 1007, 2275, 1035, 23661, 10606, 2102, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 24978, 3367, 4892, 1008, 23661, 10175, 5657, 1007, 1007, 2275, 1035, 23661, 10175, 5657, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 30524, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 1039, 21600, 25785, 23661, 18908, 25761, 8400, 1007, 1007, 2275, 1035, 23661, 18908, 25761, 8400, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 24978, 3367, 4892, 1008, 23661, 25023, 6692, 3351, 1007, 1007, 2275, 1035, 23661, 25023, 6692, 3351, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 22017, 30523, 1007, 1006, 27121, 2146, 2146, 23661, 6494, 12762, 1007, 1007, 2275, 1035, 23661, 6494, 12762, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 21318, 4783, 21548, 15069, 1008, 23661, 15069, 1007, 1007, 2275, 1035, 23661, 15069, 1025, 1011, 1006, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1007, 1006, 27121, 2146, 2146, 23661, 6494, 12762, 1007, 1007, 2275, 1035, 23661, 6494, 12762, 1025, 1011, 1006, 24978, 2850, 17713, 12870, 16761, 1008, 1006, 1034, 1007, 1006, 21318, 4783, 21548, 15069, 1008, 23661, 15069, 1007, 1007, 2275, 1035, 23661, 15069, 1025, 1011, 1006, 30526 ]
/* * IPv6 Address [auto]configuration * Linux INET6 implementation * * Authors: * Pedro Roque <[email protected]> * Alexey Kuznetsov <[email protected]> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ /* * Changes: * * Janos Farkas : delete timer on ifdown * <[email protected]> * Andi Kleen : kill double kfree on module * unload. * Maciej W. Rozycki : FDDI support * sekiya@USAGI : Don't send too many RS * packets. * yoshfuji@USAGI : Fixed interval between DAD * packets. * YOSHIFUJI Hideaki @USAGI : improved accuracy of * address validation timer. * YOSHIFUJI Hideaki @USAGI : Privacy Extensions (RFC3041) * support. * Yuji SEKIYA @USAGI : Don't assign a same IPv6 * address on a same interface. * YOSHIFUJI Hideaki @USAGI : ARCnet support * YOSHIFUJI Hideaki @USAGI : convert /proc/net/if_inet6 to * seq_file. * YOSHIFUJI Hideaki @USAGI : improved source address * selection; consider scope, * status etc. * Harout S. Hedeshian : procfs flag to toggle automatic * addition of prefix route */ #include <linux/errno.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/socket.h> #include <linux/sockios.h> #include <linux/net.h> #include <linux/in6.h> #include <linux/netdevice.h> #include <linux/if_addr.h> #include <linux/if_arp.h> #include <linux/if_arcnet.h> #include <linux/if_infiniband.h> #include <linux/route.h> #include <linux/inetdevice.h> #include <linux/init.h> #include <linux/slab.h> #ifdef CONFIG_SYSCTL #include <linux/sysctl.h> #endif #include <linux/capability.h> #include <linux/delay.h> #include <linux/notifier.h> #include <linux/string.h> #include <net/net_namespace.h> #include <net/sock.h> #include <net/snmp.h> #include <net/ipv6.h> #include <net/protocol.h> #include <net/ndisc.h> #include <net/ip6_route.h> #include <net/addrconf.h> #include <net/tcp.h> #include <net/ip.h> #include <net/netlink.h> #include <net/pkt_sched.h> #include <linux/if_tunnel.h> #include <linux/rtnetlink.h> #ifdef CONFIG_IPV6_PRIVACY #include <linux/random.h> #endif #include <linux/uaccess.h> #include <asm/unaligned.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> #include <linux/export.h> /* Set to 3 to get tracing... */ // //#define ACONF_DEBUG 2 // The original value. #define ACONF_DEBUG 2 // To debug... // LGE_CHANGE_E, [LGE_DATA][LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER], [email protected], 2013-05-21 #if ACONF_DEBUG >= 3 #define ADBG(x) printk x #else #define ADBG(x) #endif #define INFINITY_LIFE_TIME 0xFFFFFFFF // //The value of global scope is 1. //The value of link-local scope is 33. #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER #define LGE_DATA_GLOBAL_SCOPE 1 #define LGE_DATA_LINK_LOCAL_SCOPE 33 //The value which is 100 equals 1 second. //So value which is 5 equals 50 milli-seconds. //The 50 milli-seconds is requirements of LGU+. #define LGE_DATA_WAITING_TIME_FOR_DAD_OF_LGU 5 #endif // static inline u32 cstamp_delta(unsigned long cstamp) { return (cstamp - INITIAL_JIFFIES) * 100UL / HZ; } #define ADDRCONF_TIMER_FUZZ_MINUS (HZ > 50 ? HZ/50 : 1) #define ADDRCONF_TIMER_FUZZ (HZ / 4) #define ADDRCONF_TIMER_FUZZ_MAX (HZ) #ifdef CONFIG_SYSCTL static void addrconf_sysctl_register(struct inet6_dev *idev); static void addrconf_sysctl_unregister(struct inet6_dev *idev); #else static inline void addrconf_sysctl_register(struct inet6_dev *idev) { } static inline void addrconf_sysctl_unregister(struct inet6_dev *idev) { } #endif #ifdef CONFIG_IPV6_PRIVACY static int __ipv6_regen_rndid(struct inet6_dev *idev); static int __ipv6_try_regen_rndid(struct inet6_dev *idev, struct in6_addr *tmpaddr); static void ipv6_regen_rndid(unsigned long data); #endif static int ipv6_generate_eui64(u8 *eui, struct net_device *dev); static int ipv6_count_addresses(struct inet6_dev *idev); /* * Configured unicast address hash table */ static struct hlist_head inet6_addr_lst[IN6_ADDR_HSIZE]; static DEFINE_SPINLOCK(addrconf_hash_lock); static void addrconf_verify(unsigned long); static DEFINE_TIMER(addr_chk_timer, addrconf_verify, 0, 0); static DEFINE_SPINLOCK(addrconf_verify_lock); static void addrconf_join_anycast(struct inet6_ifaddr *ifp); static void addrconf_leave_anycast(struct inet6_ifaddr *ifp); static void addrconf_type_change(struct net_device *dev, unsigned long event); static int addrconf_ifdown(struct net_device *dev, int how); static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags); static void addrconf_dad_timer(unsigned long data); static void addrconf_dad_completed(struct inet6_ifaddr *ifp); static void addrconf_dad_run(struct inet6_dev *idev); static void addrconf_rs_timer(unsigned long data); static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); static void inet6_prefix_notify(int event, struct inet6_dev *idev, struct prefix_info *pinfo); static bool ipv6_chk_same_addr(struct net *net, const struct in6_addr *addr, struct net_device *dev); static ATOMIC_NOTIFIER_HEAD(inet6addr_chain); static struct ipv6_devconf ipv6_devconf __read_mostly = { .forwarding = 0, .hop_limit = IPV6_DEFAULT_HOPLIMIT, .mtu6 = IPV6_MIN_MTU, .accept_ra = 1, .accept_redirects = 1, .autoconf = 1, .force_mld_version = 0, .dad_transmits = 1, .rtr_solicits = MAX_RTR_SOLICITATIONS, .rtr_solicit_interval = RTR_SOLICITATION_INTERVAL, .rtr_solicit_delay = MAX_RTR_SOLICITATION_DELAY, #ifdef CONFIG_IPV6_PRIVACY .use_tempaddr = 0, .temp_valid_lft = TEMP_VALID_LIFETIME, .temp_prefered_lft = TEMP_PREFERRED_LIFETIME, .regen_max_retry = REGEN_MAX_RETRY, .max_desync_factor = MAX_DESYNC_FACTOR, #endif .max_addresses = IPV6_MAX_ADDRESSES, .accept_ra_defrtr = 1, .accept_ra_pinfo = 1, #ifdef CONFIG_LGE_DHCPV6_WIFI .ra_info_flag = 0, #endif #ifdef CONFIG_IPV6_ROUTER_PREF .accept_ra_rtr_pref = 1, .rtr_probe_interval = 60 * HZ, #ifdef CONFIG_IPV6_ROUTE_INFO .accept_ra_rt_info_max_plen = 0, #endif #endif .accept_ra_rt_table = 0, .proxy_ndp = 0, .accept_source_route = 0, /* we do not accept RH0 by default. */ .disable_ipv6 = 0, .accept_dad = 1, .accept_ra_prefix_route = 1, }; static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = { .forwarding = 0, .hop_limit = IPV6_DEFAULT_HOPLIMIT, .mtu6 = IPV6_MIN_MTU, .accept_ra = 1, .accept_redirects = 1, .autoconf = 1, .dad_transmits = 1, .rtr_solicits = MAX_RTR_SOLICITATIONS, .rtr_solicit_interval = RTR_SOLICITATION_INTERVAL, .rtr_solicit_delay = MAX_RTR_SOLICITATION_DELAY, #ifdef CONFIG_IPV6_PRIVACY .use_tempaddr = 0, .temp_valid_lft = TEMP_VALID_LIFETIME, .temp_prefered_lft = TEMP_PREFERRED_LIFETIME, .regen_max_retry = REGEN_MAX_RETRY, .max_desync_factor = MAX_DESYNC_FACTOR, #endif .max_addresses = IPV6_MAX_ADDRESSES, .accept_ra_defrtr = 1, .accept_ra_pinfo = 1, #ifdef CONFIG_LGE_DHCPV6_WIFI .ra_info_flag = 0, #endif #ifdef CONFIG_IPV6_ROUTER_PREF .accept_ra_rtr_pref = 1, .rtr_probe_interval = 60 * HZ, #ifdef CONFIG_IPV6_ROUTE_INFO .accept_ra_rt_info_max_plen = 0, #endif #endif .accept_ra_rt_table = 0, .proxy_ndp = 0, .accept_source_route = 0, /* we do not accept RH0 by default. */ .disable_ipv6 = 0, .accept_dad = 1, .accept_ra_prefix_route = 1, }; /* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */ const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT; const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT; const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT; /* Check if a valid qdisc is available */ static inline bool addrconf_qdisc_ok(const struct net_device *dev) { return !qdisc_tx_is_noop(dev); } /* Check if a route is valid prefix route */ static inline int addrconf_is_prefix_route(const struct rt6_info *rt) { return (rt->rt6i_flags & (RTF_GATEWAY | RTF_DEFAULT)) == 0; } static void addrconf_del_timer(struct inet6_ifaddr *ifp) { if (del_timer(&ifp->timer)) __in6_ifa_put(ifp); } enum addrconf_timer_t { AC_NONE, AC_DAD, AC_RS, }; static void addrconf_mod_timer(struct inet6_ifaddr *ifp, enum addrconf_timer_t what, unsigned long when) { if (!del_timer(&ifp->timer)) in6_ifa_hold(ifp); switch (what) { case AC_DAD: ifp->timer.function = addrconf_dad_timer; break; case AC_RS: ifp->timer.function = addrconf_rs_timer; break; default: break; } ifp->timer.expires = jiffies + when; add_timer(&ifp->timer); } static int snmp6_alloc_dev(struct inet6_dev *idev) { if (snmp_mib_init((void __percpu **)idev->stats.ipv6, sizeof(struct ipstats_mib), __alignof__(struct ipstats_mib)) < 0) goto err_ip; idev->stats.icmpv6dev = kzalloc(sizeof(struct icmpv6_mib_device), GFP_KERNEL); if (!idev->stats.icmpv6dev) goto err_icmp; idev->stats.icmpv6msgdev = kzalloc(sizeof(struct icmpv6msg_mib_device), GFP_KERNEL); if (!idev->stats.icmpv6msgdev) goto err_icmpmsg; return 0; err_icmpmsg: kfree(idev->stats.icmpv6dev); err_icmp: snmp_mib_free((void __percpu **)idev->stats.ipv6); err_ip: return -ENOMEM; } static void snmp6_free_dev(struct inet6_dev *idev) { kfree(idev->stats.icmpv6msgdev); kfree(idev->stats.icmpv6dev); snmp_mib_free((void __percpu **)idev->stats.ipv6); } /* Nobody refers to this device, we may destroy it. */ void in6_dev_finish_destroy(struct inet6_dev *idev) { struct net_device *dev = idev->dev; WARN_ON(!list_empty(&idev->addr_list)); WARN_ON(idev->mc_list != NULL); #ifdef NET_REFCNT_DEBUG printk(KERN_DEBUG "in6_dev_finish_destroy: %s\n", dev ? dev->name : "NIL"); #endif dev_put(dev); if (!idev->dead) { pr_warning("Freeing alive inet6 device %p\n", idev); return; } snmp6_free_dev(idev); kfree_rcu(idev, rcu); } EXPORT_SYMBOL(in6_dev_finish_destroy); static struct inet6_dev * ipv6_add_dev(struct net_device *dev) { struct inet6_dev *ndev; ASSERT_RTNL(); if (dev->mtu < IPV6_MIN_MTU) return NULL; ndev = kzalloc(sizeof(struct inet6_dev), GFP_KERNEL); if (ndev == NULL) return NULL; rwlock_init(&ndev->lock); ndev->dev = dev; INIT_LIST_HEAD(&ndev->addr_list); memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); ndev->cnf.mtu6 = dev->mtu; ndev->cnf.sysctl = NULL; ndev->nd_parms = neigh_parms_alloc(dev, &nd_tbl); if (ndev->nd_parms == NULL) { kfree(ndev); return NULL; } if (ndev->cnf.forwarding) dev_disable_lro(dev); /* We refer to the device */ dev_hold(dev); if (snmp6_alloc_dev(ndev) < 0) { ADBG((KERN_WARNING "%s(): cannot allocate memory for statistics; dev=%s.\n", __func__, dev->name)); neigh_parms_release(&nd_tbl, ndev->nd_parms); dev_put(dev); kfree(ndev); return NULL; } if (snmp6_register_dev(ndev) < 0) { ADBG((KERN_WARNING "%s(): cannot create /proc/net/dev_snmp6/%s\n", __func__, dev->name)); neigh_parms_release(&nd_tbl, ndev->nd_parms); ndev->dead = 1; in6_dev_finish_destroy(ndev); return NULL; } /* One reference from device. We must do this before * we invoke __ipv6_regen_rndid(). */ in6_dev_hold(ndev); if (dev->flags & (IFF_NOARP | IFF_LOOPBACK)) ndev->cnf.accept_dad = -1; #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) if (dev->type == ARPHRD_SIT && (dev->priv_flags & IFF_ISATAP)) { printk(KERN_INFO "%s: Disabled Multicast RS\n", dev->name); ndev->cnf.rtr_solicits = 0; } #endif #ifdef CONFIG_IPV6_PRIVACY INIT_LIST_HEAD(&ndev->tempaddr_list); setup_timer(&ndev->regen_timer, ipv6_regen_rndid, (unsigned long)ndev); if ((dev->flags&IFF_LOOPBACK) || dev->type == ARPHRD_TUNNEL || dev->type == ARPHRD_TUNNEL6 || dev->type == ARPHRD_SIT || dev->type == ARPHRD_NONE) { ndev->cnf.use_tempaddr = -1; } else { in6_dev_hold(ndev); ipv6_regen_rndid((unsigned long) ndev); } #endif if (netif_running(dev) && addrconf_qdisc_ok(dev)) ndev->if_flags |= IF_READY; ipv6_mc_init_dev(ndev); ndev->tstamp = jiffies; addrconf_sysctl_register(ndev); /* protected by rtnl_lock */ rcu_assign_pointer(dev->ip6_ptr, ndev); /* Join all-node multicast group */ ipv6_dev_mc_inc(dev, &in6addr_linklocal_allnodes); /* Join all-router multicast group if forwarding is set */ if (ndev->cnf.forwarding && (dev->flags & IFF_MULTICAST)) ipv6_dev_mc_inc(dev, &in6addr_linklocal_allrouters); return ndev; } static struct inet6_dev * ipv6_find_idev(struct net_device *dev) { struct inet6_dev *idev; ASSERT_RTNL(); idev = __in6_dev_get(dev); if (!idev) { idev = ipv6_add_dev(dev); if (!idev) return NULL; } if (dev->flags&IFF_UP) ipv6_mc_up(idev); return idev; } #ifdef CONFIG_SYSCTL static void dev_forward_change(struct inet6_dev *idev) { struct net_device *dev; struct inet6_ifaddr *ifa; if (!idev) return; dev = idev->dev; if (idev->cnf.forwarding) dev_disable_lro(dev); if (dev && (dev->flags & IFF_MULTICAST)) { if (idev->cnf.forwarding) ipv6_dev_mc_inc(dev, &in6addr_linklocal_allrouters); else ipv6_dev_mc_dec(dev, &in6addr_linklocal_allrouters); } list_for_each_entry(ifa, &idev->addr_list, if_list) { if (ifa->flags&IFA_F_TENTATIVE) continue; if (idev->cnf.forwarding) addrconf_join_anycast(ifa); else addrconf_leave_anycast(ifa); } } static void addrconf_forward_change(struct net *net, __s32 newf) { struct net_device *dev; struct inet6_dev *idev; for_each_netdev(net, dev) { idev = __in6_dev_get(dev); if (idev) { int changed = (!idev->cnf.forwarding) ^ (!newf); idev->cnf.forwarding = newf; if (changed) dev_forward_change(idev); } } } static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int newf) { struct net *net; int old; if (!rtnl_trylock()) return restart_syscall(); net = (struct net *)table->extra2; old = *p; *p = newf; if (p == &net->ipv6.devconf_dflt->forwarding) { rtnl_unlock(); return 0; } if (p == &net->ipv6.devconf_all->forwarding) { net->ipv6.devconf_dflt->forwarding = newf; addrconf_forward_change(net, newf); } else if ((!newf) ^ (!old)) dev_forward_change((struct inet6_dev *)table->extra1); rtnl_unlock(); if (newf) rt6_purge_dflt_routers(net); return 1; } #endif /* Nobody refers to this ifaddr, destroy it */ void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp) { WARN_ON(!hlist_unhashed(&ifp->addr_lst)); #ifdef NET_REFCNT_DEBUG printk(KERN_DEBUG "inet6_ifa_finish_destroy\n"); #endif in6_dev_put(ifp->idev); if (del_timer(&ifp->timer)) pr_notice("Timer is still running, when freeing ifa=%p\n", ifp); if (ifp->state != INET6_IFADDR_STATE_DEAD) { pr_warning("Freeing alive inet6 address %p\n", ifp); return; } dst_release(&ifp->rt->dst); kfree_rcu(ifp, rcu); } static void ipv6_link_dev_addr(struct inet6_dev *idev, struct inet6_ifaddr *ifp) { struct list_head *p; int ifp_scope = ipv6_addr_src_scope(&ifp->addr); /* * Each device address list is sorted in order of scope - * global before linklocal. */ list_for_each(p, &idev->addr_list) { struct inet6_ifaddr *ifa = list_entry(p, struct inet6_ifaddr, if_list); if (ifp_scope >= ipv6_addr_src_scope(&ifa->addr)) break; } list_add_tail(&ifp->if_list, p); } static u32 ipv6_addr_hash(const struct in6_addr *addr) { /* * We perform the hash function over the last 64 bits of the address * This will include the IEEE address token on links that support it. */ return jhash_2words((__force u32)addr->s6_addr32[2], (__force u32)addr->s6_addr32[3], 0) & (IN6_ADDR_HSIZE - 1); } /* On success it returns ifp with increased reference count */ static struct inet6_ifaddr * ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, int scope, u32 flags) { struct inet6_ifaddr *ifa = NULL; struct rt6_info *rt; unsigned int hash; int err = 0; int addr_type = ipv6_addr_type(addr); if (addr_type == IPV6_ADDR_ANY || addr_type & IPV6_ADDR_MULTICAST || (!(idev->dev->flags & IFF_LOOPBACK) && addr_type & IPV6_ADDR_LOOPBACK)) return ERR_PTR(-EADDRNOTAVAIL); rcu_read_lock_bh(); if (idev->dead) { err = -ENODEV; /*XXX*/ goto out2; } if (idev->cnf.disable_ipv6) { err = -EACCES; goto out2; } spin_lock(&addrconf_hash_lock); /* Ignore adding duplicate addresses on an interface */ if (ipv6_chk_same_addr(dev_net(idev->dev), addr, idev->dev)) { ADBG(("ipv6_add_addr: already assigned\n")); err = -EEXIST; goto out; } ifa = kzalloc(sizeof(struct inet6_ifaddr), GFP_ATOMIC); if (ifa == NULL) { ADBG(("ipv6_add_addr: malloc failed\n")); err = -ENOBUFS; goto out; } rt = addrconf_dst_alloc(idev, addr, false); if (IS_ERR(rt)) { err = PTR_ERR(rt); goto out; } ifa->addr = *addr; spin_lock_init(&ifa->lock); spin_lock_init(&ifa->state_lock); init_timer(&ifa->timer); INIT_HLIST_NODE(&ifa->addr_lst); ifa->timer.data = (unsigned long) ifa; ifa->scope = scope; ifa->prefix_len = pfxlen; ifa->flags = flags | IFA_F_TENTATIVE; ifa->cstamp = ifa->tstamp = jiffies; ifa->rt = rt; ifa->idev = idev; in6_dev_hold(idev); /* For caller */ in6_ifa_hold(ifa); /* Add to big hash table */ hash = ipv6_addr_hash(addr); hlist_add_head_rcu(&ifa->addr_lst, &inet6_addr_lst[hash]); write_lock(&idev->lock); /* Add to inet6_dev unicast addr list. */ ipv6_link_dev_addr(idev, ifa); #ifdef CONFIG_IPV6_PRIVACY if (ifa->flags&IFA_F_TEMPORARY) { list_add(&ifa->tmp_list, &idev->tempaddr_list); in6_ifa_hold(ifa); } #endif in6_ifa_hold(ifa); write_unlock(&idev->lock); spin_unlock(&addrconf_hash_lock); out2: rcu_read_unlock_bh(); if (likely(err == 0)) atomic_notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa); else { kfree(ifa); ifa = ERR_PTR(err); } return ifa; out: spin_unlock(&addrconf_hash_lock); goto out2; } /* This function wants to get referenced ifp and releases it before return */ static void ipv6_del_addr(struct inet6_ifaddr *ifp) { struct inet6_ifaddr *ifa, *ifn; struct inet6_dev *idev = ifp->idev; int state; int deleted = 0, onlink = 0; unsigned long expires = jiffies; spin_lock_bh(&ifp->state_lock); state = ifp->state; ifp->state = INET6_IFADDR_STATE_DEAD; spin_unlock_bh(&ifp->state_lock); if (state == INET6_IFADDR_STATE_DEAD) goto out; spin_lock_bh(&addrconf_hash_lock); hlist_del_init_rcu(&ifp->addr_lst); write_lock_bh(&idev->lock); #ifdef CONFIG_IPV6_PRIVACY if (ifp->flags&IFA_F_TEMPORARY) { list_del(&ifp->tmp_list); if (ifp->ifpub) { in6_ifa_put(ifp->ifpub); ifp->ifpub = NULL; } __in6_ifa_put(ifp); } #endif list_for_each_entry_safe(ifa, ifn, &idev->addr_list, if_list) { if (ifa == ifp) { list_del_init(&ifp->if_list); __in6_ifa_put(ifp); if (!(ifp->flags & IFA_F_PERMANENT) || onlink > 0) break; deleted = 1; continue; } else if (ifp->flags & IFA_F_PERMANENT) { if (ipv6_prefix_equal(&ifa->addr, &ifp->addr, ifp->prefix_len)) { if (ifa->flags & IFA_F_PERMANENT) { onlink = 1; if (deleted) break; } else { unsigned long lifetime; if (!onlink) onlink = -1; spin_lock(&ifa->lock); lifetime = addrconf_timeout_fixup(ifa->valid_lft, HZ); /* * Note: Because this address is * not permanent, lifetime < * LONG_MAX / HZ here. */ if (time_before(expires, ifa->tstamp + lifetime * HZ)) expires = ifa->tstamp + lifetime * HZ; spin_unlock(&ifa->lock); } } } } write_unlock_bh(&idev->lock); spin_unlock_bh(&addrconf_hash_lock); addrconf_del_timer(ifp); ipv6_ifa_notify(RTM_DELADDR, ifp); atomic_notifier_call_chain(&inet6addr_chain, NETDEV_DOWN, ifp); /* * Purge or update corresponding prefix * * 1) we don't purge prefix here if address was not permanent. * prefix is managed by its own lifetime. * 2) if there're no addresses, delete prefix. * 3) if there're still other permanent address(es), * corresponding prefix is still permanent. * 4) otherwise, update prefix lifetime to the * longest valid lifetime among the corresponding * addresses on the device. * Note: subsequent RA will update lifetime. * * --yoshfuji */ if ((ifp->flags & IFA_F_PERMANENT) && onlink < 1) { struct in6_addr prefix; struct rt6_info *rt; struct net *net = dev_net(ifp->idev->dev); struct flowi6 fl6 = {}; ipv6_addr_prefix(&prefix, &ifp->addr, ifp->prefix_len); fl6.flowi6_oif = ifp->idev->dev->ifindex; fl6.daddr = prefix; rt = (struct rt6_info *)ip6_route_lookup(net, &fl6, RT6_LOOKUP_F_IFACE); if (rt != net->ipv6.ip6_null_entry && addrconf_is_prefix_route(rt)) { if (onlink == 0) { ip6_del_rt(rt); rt = NULL; } else if (!(rt->rt6i_flags & RTF_EXPIRES)) { rt6_set_expires(rt, expires); } } dst_release(&rt->dst); } /* clean up prefsrc entries */ rt6_remove_prefsrc(ifp); out: in6_ifa_put(ifp); } #ifdef CONFIG_IPV6_PRIVACY static int ipv6_create_tempaddr(struct inet6_ifaddr *ifp, struct inet6_ifaddr *ift) { struct inet6_dev *idev = ifp->idev; struct in6_addr addr, *tmpaddr; unsigned long tmp_prefered_lft, tmp_valid_lft, tmp_tstamp, age; unsigned long regen_advance; int tmp_plen; int ret = 0; int max_addresses; u32 addr_flags; unsigned long now = jiffies; write_lock(&idev->lock); if (ift) { spin_lock_bh(&ift->lock); memcpy(&addr.s6_addr[8], &ift->addr.s6_addr[8], 8); spin_unlock_bh(&ift->lock); tmpaddr = &addr; } else { tmpaddr = NULL; } retry: in6_dev_hold(idev); if (idev->cnf.use_tempaddr <= 0) { write_unlock(&idev->lock); printk(KERN_INFO "ipv6_create_tempaddr(): use_tempaddr is disabled.\n"); in6_dev_put(idev); ret = -1; goto out; } spin_lock_bh(&ifp->lock); if (ifp->regen_count++ >= idev->cnf.regen_max_retry) { idev->cnf.use_tempaddr = -1; /*XXX*/ spin_unlock_bh(&ifp->lock); write_unlock(&idev->lock); printk(KERN_WARNING "ipv6_create_tempaddr(): regeneration time exceeded. disabled temporary address support.\n"); in6_dev_put(idev); ret = -1; goto out; } in6_ifa_hold(ifp); memcpy(addr.s6_addr, ifp->addr.s6_addr, 8); if (__ipv6_try_regen_rndid(idev, tmpaddr) < 0) { spin_unlock_bh(&ifp->lock); write_unlock(&idev->lock); printk(KERN_WARNING "ipv6_create_tempaddr(): regeneration of randomized interface id failed.\n"); in6_ifa_put(ifp); in6_dev_put(idev); ret = -1; goto out; } memcpy(&addr.s6_addr[8], idev->rndid, 8); age = (now - ifp->tstamp) / HZ; tmp_valid_lft = min_t(__u32, ifp->valid_lft, idev->cnf.temp_valid_lft + age); tmp_prefered_lft = min_t(__u32, ifp->prefered_lft, idev->cnf.temp_prefered_lft + age - idev->cnf.max_desync_factor); tmp_plen = ifp->prefix_len; max_addresses = idev->cnf.max_addresses; tmp_tstamp = ifp->tstamp; spin_unlock_bh(&ifp->lock); regen_advance = idev->cnf.regen_max_retry * idev->cnf.dad_transmits * idev->nd_parms->retrans_time / HZ; write_unlock(&idev->lock); /* A temporary address is created only if this calculated Preferred * Lifetime is greater than REGEN_ADVANCE time units. In particular, * an implementation must not create a temporary address with a zero * Preferred Lifetime. * Use age calculation as in addrconf_verify to avoid unnecessary * temporary addresses being generated. */ age = (now - tmp_tstamp + ADDRCONF_TIMER_FUZZ_MINUS) / HZ; if (tmp_prefered_lft <= regen_advance + age) { in6_ifa_put(ifp); in6_dev_put(idev); ret = -1; goto out; } addr_flags = IFA_F_TEMPORARY; /* set in addrconf_prefix_rcv() */ if (ifp->flags & IFA_F_OPTIMISTIC) addr_flags |= IFA_F_OPTIMISTIC; ift = ipv6_add_addr(idev, &addr, tmp_plen, ipv6_addr_type(&addr)&IPV6_ADDR_SCOPE_MASK, addr_flags); if (IS_ERR(ift)) { in6_ifa_put(ifp); in6_dev_put(idev); printk(KERN_INFO "ipv6_create_tempaddr(): retry temporary address regeneration.\n"); tmpaddr = &addr; write_lock(&idev->lock); goto retry; } spin_lock_bh(&ift->lock); ift->ifpub = ifp; ift->valid_lft = tmp_valid_lft; ift->prefered_lft = tmp_prefered_lft; ift->cstamp = now; ift->tstamp = tmp_tstamp; spin_unlock_bh(&ift->lock); addrconf_dad_start(ift, 0); in6_ifa_put(ift); in6_dev_put(idev); out: return ret; } #endif /* * Choose an appropriate source address (RFC3484) */ enum { IPV6_SADDR_RULE_INIT = 0, IPV6_SADDR_RULE_LOCAL, IPV6_SADDR_RULE_SCOPE, IPV6_SADDR_RULE_PREFERRED, #ifdef CONFIG_IPV6_MIP6 IPV6_SADDR_RULE_HOA, #endif IPV6_SADDR_RULE_OIF, IPV6_SADDR_RULE_LABEL, #ifdef CONFIG_IPV6_PRIVACY IPV6_SADDR_RULE_PRIVACY, #endif IPV6_SADDR_RULE_ORCHID, IPV6_SADDR_RULE_PREFIX, #ifdef CONFIG_IPV6_OPTIMISTIC_DAD IPV6_SADDR_RULE_NOT_OPTIMISTIC, #endif IPV6_SADDR_RULE_MAX }; struct ipv6_saddr_score { int rule; int addr_type; struct inet6_ifaddr *ifa; DECLARE_BITMAP(scorebits, IPV6_SADDR_RULE_MAX); int scopedist; int matchlen; }; struct ipv6_saddr_dst { const struct in6_addr *addr; int ifindex; int scope; int label; unsigned int prefs; }; static inline int ipv6_saddr_preferred(int type) { if (type & (IPV6_ADDR_MAPPED|IPV6_ADDR_COMPATv4|IPV6_ADDR_LOOPBACK)) return 1; return 0; } static inline bool ipv6_use_optimistic_addr(struct inet6_dev *idev) { #ifdef CONFIG_IPV6_OPTIMISTIC_DAD return idev && idev->cnf.optimistic_dad && idev->cnf.use_optimistic; #else return false; #endif } static int ipv6_get_saddr_eval(struct net *net, struct ipv6_saddr_score *score, struct ipv6_saddr_dst *dst, int i) { int ret; if (i <= score->rule) { switch (i) { case IPV6_SADDR_RULE_SCOPE: ret = score->scopedist; break; case IPV6_SADDR_RULE_PREFIX: ret = score->matchlen; break; default: ret = !!test_bit(i, score->scorebits); } goto out; } switch (i) { case IPV6_SADDR_RULE_INIT: /* Rule 0: remember if hiscore is not ready yet */ ret = !!score->ifa; break; case IPV6_SADDR_RULE_LOCAL: /* Rule 1: Prefer same address */ ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); break; case IPV6_SADDR_RULE_SCOPE: /* Rule 2: Prefer appropriate scope * * ret * ^ * -1 | d 15 * ---+--+-+---> scope * | * | d is scope of the destination. * B-d | \ * | \ <- smaller scope is better if * B-15 | \ if scope is enough for destinaion. * | ret = B - scope (-1 <= scope >= d <= 15). * d-C-1 | / * |/ <- greater is better * -C / if scope is not enough for destination. * /| ret = scope - C (-1 <= d < scope <= 15). * * d - C - 1 < B -15 (for all -1 <= d <= 15). * C > d + 14 - B >= 15 + 14 - B = 29 - B. * Assume B = 0 and we get C > 29. */ ret = __ipv6_addr_src_scope(score->addr_type); if (ret >= dst->scope) ret = -ret; else ret -= 128; /* 30 is enough */ score->scopedist = ret; break; case IPV6_SADDR_RULE_PREFERRED: { /* Rule 3: Avoid deprecated and optimistic addresses */ u8 avoid = IFA_F_DEPRECATED; if (!ipv6_use_optimistic_addr(score->ifa->idev)) avoid |= IFA_F_OPTIMISTIC; ret = ipv6_saddr_preferred(score->addr_type) || !(score->ifa->flags & avoid); break; } #ifdef CONFIG_IPV6_MIP6 case IPV6_SADDR_RULE_HOA: { /* Rule 4: Prefer home address */ int prefhome = !(dst->prefs & IPV6_PREFER_SRC_COA); ret = !(score->ifa->flags & IFA_F_HOMEADDRESS) ^ prefhome; break; } #endif case IPV6_SADDR_RULE_OIF: /* Rule 5: Prefer outgoing interface */ ret = (!dst->ifindex || dst->ifindex == score->ifa->idev->dev->ifindex); break; case IPV6_SADDR_RULE_LABEL: /* Rule 6: Prefer matching label */ ret = ipv6_addr_label(net, &score->ifa->addr, score->addr_type, score->ifa->idev->dev->ifindex) == dst->label; break; #ifdef CONFIG_IPV6_PRIVACY case IPV6_SADDR_RULE_PRIVACY: { /* Rule 7: Prefer public address * Note: prefer temporary address if use_tempaddr >= 2 */ int preftmp = dst->prefs & (IPV6_PREFER_SRC_PUBLIC|IPV6_PREFER_SRC_TMP) ? !!(dst->prefs & IPV6_PREFER_SRC_TMP) : score->ifa->idev->cnf.use_tempaddr >= 2; ret = (!(score->ifa->flags & IFA_F_TEMPORARY)) ^ preftmp; break; } #endif case IPV6_SADDR_RULE_ORCHID: /* Rule 8-: Prefer ORCHID vs ORCHID or * non-ORCHID vs non-ORCHID */ ret = !(ipv6_addr_orchid(&score->ifa->addr) ^ ipv6_addr_orchid(dst->addr)); break; case IPV6_SADDR_RULE_PREFIX: /* Rule 8: Use longest matching prefix */ score->matchlen = ret = ipv6_addr_diff(&score->ifa->addr, dst->addr); break; #ifdef CONFIG_IPV6_OPTIMISTIC_DAD case IPV6_SADDR_RULE_NOT_OPTIMISTIC: /* Optimistic addresses still have lower precedence than other * preferred addresses. */ ret = !(score->ifa->flags & IFA_F_OPTIMISTIC); break; #endif default: ret = 0; } if (ret) __set_bit(i, score->scorebits); score->rule = i; out: return ret; } int ipv6_dev_get_saddr(struct net *net, struct net_device *dst_dev, const struct in6_addr *daddr, unsigned int prefs, struct in6_addr *saddr) { struct ipv6_saddr_score scores[2], *score = &scores[0], *hiscore = &scores[1]; struct ipv6_saddr_dst dst; struct net_device *dev; int dst_type; dst_type = __ipv6_addr_type(daddr); dst.addr = daddr; dst.ifindex = dst_dev ? dst_dev->ifindex : 0; dst.scope = __ipv6_addr_src_scope(dst_type); dst.label = ipv6_addr_label(net, daddr, dst_type, dst.ifindex); dst.prefs = prefs; hiscore->rule = -1; hiscore->ifa = NULL; rcu_read_lock(); for_each_netdev_rcu(net, dev) { struct inet6_dev *idev; /* Candidate Source Address (section 4) * - multicast and link-local destination address, * the set of candidate source address MUST only * include addresses assigned to interfaces * belonging to the same link as the outgoing * interface. * (- For site-local destination addresses, the * set of candidate source addresses MUST only * include addresses assigned to interfaces * belonging to the same site as the outgoing * interface.) */ if (((dst_type & IPV6_ADDR_MULTICAST) || dst.scope <= IPV6_ADDR_SCOPE_LINKLOCAL) && dst.ifindex && dev->ifindex != dst.ifindex) continue; idev = __in6_dev_get(dev); if (!idev) continue; read_lock_bh(&idev->lock); list_for_each_entry(score->ifa, &idev->addr_list, if_list) { int i; /* * - Tentative Address (RFC2462 section 5.4) * - A tentative address is not considered * "assigned to an interface" in the traditional * sense, unless it is also flagged as optimistic. * - Candidate Source Address (section 4) * - In any case, anycast addresses, multicast * addresses, and the unspecified address MUST * NOT be included in a candidate set. */ if ((score->ifa->flags & IFA_F_TENTATIVE) && (!(score->ifa->flags & IFA_F_OPTIMISTIC))) continue; score->addr_type = __ipv6_addr_type(&score->ifa->addr); if (unlikely(score->addr_type == IPV6_ADDR_ANY || score->addr_type & IPV6_ADDR_MULTICAST)) { LIMIT_NETDEBUG(KERN_DEBUG "ADDRCONF: unspecified / multicast address " "assigned as unicast address on %s", dev->name); continue; } score->rule = -1; bitmap_zero(score->scorebits, IPV6_SADDR_RULE_MAX); for (i = 0; i < IPV6_SADDR_RULE_MAX; i++) { int minihiscore, miniscore; minihiscore = ipv6_get_saddr_eval(net, hiscore, &dst, i); miniscore = ipv6_get_saddr_eval(net, score, &dst, i); if (minihiscore > miniscore) { if (i == IPV6_SADDR_RULE_SCOPE && score->scopedist > 0) { /* * special case: * each remaining entry * has too small (not enough) * scope, because ifa entries * are sorted by their scope * values. */ goto try_nextdev; } break; } else if (minihiscore < miniscore) { if (hiscore->ifa) in6_ifa_put(hiscore->ifa); in6_ifa_hold(score->ifa); swap(hiscore, score); /* restore our iterator */ score->ifa = hiscore->ifa; break; } } } try_nextdev: read_unlock_bh(&idev->lock); } rcu_read_unlock(); if (!hiscore->ifa) return -EADDRNOTAVAIL; *saddr = hiscore->ifa->addr; in6_ifa_put(hiscore->ifa); return 0; } EXPORT_SYMBOL(ipv6_dev_get_saddr); int __ipv6_get_lladdr(struct inet6_dev *idev, struct in6_addr *addr, unsigned char banned_flags) { struct inet6_ifaddr *ifp; int err = -EADDRNOTAVAIL; list_for_each_entry(ifp, &idev->addr_list, if_list) { if (ifp->scope == IFA_LINK && !(ifp->flags & banned_flags)) { *addr = ifp->addr; err = 0; break; } } return err; } int ipv6_get_lladdr(struct net_device *dev, struct in6_addr *addr, unsigned char banned_flags) { struct inet6_dev *idev; int err = -EADDRNOTAVAIL; rcu_read_lock(); idev = __in6_dev_get(dev); if (idev) { read_lock_bh(&idev->lock); err = __ipv6_get_lladdr(idev, addr, banned_flags); read_unlock_bh(&idev->lock); } rcu_read_unlock(); return err; } static int ipv6_count_addresses(struct inet6_dev *idev) { int cnt = 0; struct inet6_ifaddr *ifp; read_lock_bh(&idev->lock); list_for_each_entry(ifp, &idev->addr_list, if_list) cnt++; read_unlock_bh(&idev->lock); return cnt; } int ipv6_chk_addr(struct net *net, const struct in6_addr *addr, const struct net_device *dev, int strict) { struct inet6_ifaddr *ifp; struct hlist_node *node; unsigned int hash = ipv6_addr_hash(addr); rcu_read_lock_bh(); hlist_for_each_entry_rcu(ifp, node, &inet6_addr_lst[hash], addr_lst) { if (!net_eq(dev_net(ifp->idev->dev), net)) continue; if (ipv6_addr_equal(&ifp->addr, addr) && (!(ifp->flags&IFA_F_TENTATIVE) || (ipv6_use_optimistic_addr(ifp->idev) && ifp->flags&IFA_F_OPTIMISTIC)) && (dev == NULL || ifp->idev->dev == dev || !(ifp->scope&(IFA_LINK|IFA_HOST) || strict))) { rcu_read_unlock_bh(); return 1; } } rcu_read_unlock_bh(); return 0; } EXPORT_SYMBOL(ipv6_chk_addr); static bool ipv6_chk_same_addr(struct net *net, const struct in6_addr *addr, struct net_device *dev) { unsigned int hash = ipv6_addr_hash(addr); struct inet6_ifaddr *ifp; struct hlist_node *node; hlist_for_each_entry(ifp, node, &inet6_addr_lst[hash], addr_lst) { if (!net_eq(dev_net(ifp->idev->dev), net)) continue; if (ipv6_addr_equal(&ifp->addr, addr)) { if (dev == NULL || ifp->idev->dev == dev) return true; } } return false; } int ipv6_chk_prefix(const struct in6_addr *addr, struct net_device *dev) { struct inet6_dev *idev; struct inet6_ifaddr *ifa; int onlink; onlink = 0; rcu_read_lock(); idev = __in6_dev_get(dev); if (idev) { read_lock_bh(&idev->lock); list_for_each_entry(ifa, &idev->addr_list, if_list) { onlink = ipv6_prefix_equal(addr, &ifa->addr, ifa->prefix_len); if (onlink) break; } read_unlock_bh(&idev->lock); } rcu_read_unlock(); return onlink; } EXPORT_SYMBOL(ipv6_chk_prefix); struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, const struct in6_addr *addr, struct net_device *dev, int strict) { struct inet6_ifaddr *ifp, *result = NULL; unsigned int hash = ipv6_addr_hash(addr); struct hlist_node *node; rcu_read_lock_bh(); hlist_for_each_entry_rcu_bh(ifp, node, &inet6_addr_lst[hash], addr_lst) { if (!net_eq(dev_net(ifp->idev->dev), net)) continue; if (ipv6_addr_equal(&ifp->addr, addr)) { if (dev == NULL || ifp->idev->dev == dev || !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) { result = ifp; in6_ifa_hold(ifp); break; } } } rcu_read_unlock_bh(); return result; } /* Gets referenced address, destroys ifaddr */ static void addrconf_dad_stop(struct inet6_ifaddr *ifp, int dad_failed) { if (ifp->flags&IFA_F_PERMANENT) { spin_lock_bh(&ifp->lock); addrconf_del_timer(ifp); ifp->flags |= IFA_F_TENTATIVE; if (dad_failed) ifp->flags |= IFA_F_DADFAILED; spin_unlock_bh(&ifp->lock); if (dad_failed) ipv6_ifa_notify(0, ifp); in6_ifa_put(ifp); #ifdef CONFIG_IPV6_PRIVACY } else if (ifp->flags&IFA_F_TEMPORARY) { struct inet6_ifaddr *ifpub; spin_lock_bh(&ifp->lock); ifpub = ifp->ifpub; if (ifpub) { in6_ifa_hold(ifpub); spin_unlock_bh(&ifp->lock); ipv6_create_tempaddr(ifpub, ifp); in6_ifa_put(ifpub); } else { spin_unlock_bh(&ifp->lock); } ipv6_del_addr(ifp); #endif } else ipv6_del_addr(ifp); } static int addrconf_dad_end(struct inet6_ifaddr *ifp) { int err = -ENOENT; spin_lock(&ifp->state_lock); if (ifp->state == INET6_IFADDR_STATE_DAD) { ifp->state = INET6_IFADDR_STATE_POSTDAD; err = 0; } spin_unlock(&ifp->state_lock); return err; } void addrconf_dad_failure(struct inet6_ifaddr *ifp) { struct inet6_dev *idev = ifp->idev; if (addrconf_dad_end(ifp)) { in6_ifa_put(ifp); return; } if (net_ratelimit()) printk(KERN_INFO "%s: IPv6 duplicate address %pI6c detected!\n", ifp->idev->dev->name, &ifp->addr); if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) { struct in6_addr addr; addr.s6_addr32[0] = htonl(0xfe800000); addr.s6_addr32[1] = 0; if (!ipv6_generate_eui64(addr.s6_addr + 8, idev->dev) && ipv6_addr_equal(&ifp->addr, &addr)) { /* DAD failed for link-local based on MAC address */ idev->cnf.disable_ipv6 = 1; printk(KERN_INFO "%s: IPv6 being disabled!\n", ifp->idev->dev->name); } } addrconf_dad_stop(ifp, 1); } /* Join to solicited addr multicast group. */ void addrconf_join_solict(struct net_device *dev, const struct in6_addr *addr) { struct in6_addr maddr; if (dev->flags&(IFF_LOOPBACK|IFF_NOARP)) return; addrconf_addr_solict_mult(addr, &maddr); ipv6_dev_mc_inc(dev, &maddr); } void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr) { struct in6_addr maddr; if (idev->dev->flags&(IFF_LOOPBACK|IFF_NOARP)) return; addrconf_addr_solict_mult(addr, &maddr); __ipv6_dev_mc_dec(idev, &maddr); } static void addrconf_join_anycast(struct inet6_ifaddr *ifp) { struct in6_addr addr; if (ifp->prefix_len == 127) /* RFC 6164 */ return; ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len); if (ipv6_addr_any(&addr)) return; ipv6_dev_ac_inc(ifp->idev->dev, &addr); } static void addrconf_leave_anycast(struct inet6_ifaddr *ifp) { struct in6_addr addr; if (ifp->prefix_len == 127) /* RFC 6164 */ return; ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len); if (ipv6_addr_any(&addr)) return; __ipv6_dev_ac_dec(ifp->idev, &addr); } static int addrconf_ifid_eui48(u8 *eui, struct net_device *dev) { if (dev->addr_len != ETH_ALEN) return -1; memcpy(eui, dev->dev_addr, 3); memcpy(eui + 5, dev->dev_addr + 3, 3); /* * The zSeries OSA network cards can be shared among various * OS instances, but the OSA cards have only one MAC address. * This leads to duplicate address conflicts in conjunction * with IPv6 if more than one instance uses the same card. * * The driver for these cards can deliver a unique 16-bit * identifier for each instance sharing the same card. It is * placed instead of 0xFFFE in the interface identifier. The * "u" bit of the interface identifier is not inverted in this * case. Hence the resulting interface identifier has local * scope according to RFC2373. */ if (dev->dev_id) { eui[3] = (dev->dev_id >> 8) & 0xFF; eui[4] = dev->dev_id & 0xFF; } else { eui[3] = 0xFF; eui[4] = 0xFE; eui[0] ^= 2; } return 0; } static int addrconf_ifid_arcnet(u8 *eui, struct net_device *dev) { /* XXX: inherit EUI-64 from other interface -- yoshfuji */ if (dev->addr_len != ARCNET_ALEN) return -1; memset(eui, 0, 7); eui[7] = *(u8*)dev->dev_addr; return 0; } static int addrconf_ifid_infiniband(u8 *eui, struct net_device *dev) { if (dev->addr_len != INFINIBAND_ALEN) return -1; memcpy(eui, dev->dev_addr + 12, 8); eui[0] |= 2; return 0; } static int __ipv6_isatap_ifid(u8 *eui, __be32 addr) { if (addr == 0) return -1; eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) || ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) || ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || ipv4_is_anycast_6to4(addr) || ipv4_is_private_192(addr) || ipv4_is_test_198(addr) || ipv4_is_multicast(addr) || ipv4_is_lbcast(addr)) ? 0x00 : 0x02; eui[1] = 0; eui[2] = 0x5E; eui[3] = 0xFE; memcpy(eui + 4, &addr, 4); return 0; } static int addrconf_ifid_sit(u8 *eui, struct net_device *dev) { if (dev->priv_flags & IFF_ISATAP) return __ipv6_isatap_ifid(eui, *(__be32 *)dev->dev_addr); return -1; } static int addrconf_ifid_gre(u8 *eui, struct net_device *dev) { return __ipv6_isatap_ifid(eui, *(__be32 *)dev->dev_addr); } static int ipv6_generate_eui64(u8 *eui, struct net_device *dev) { switch (dev->type) { case ARPHRD_ETHER: case ARPHRD_FDDI: case ARPHRD_IEEE802_TR: return addrconf_ifid_eui48(eui, dev); case ARPHRD_ARCNET: return addrconf_ifid_arcnet(eui, dev); case ARPHRD_INFINIBAND: return addrconf_ifid_infiniband(eui, dev); case ARPHRD_SIT: return addrconf_ifid_sit(eui, dev); case ARPHRD_IPGRE: return addrconf_ifid_gre(eui, dev); case ARPHRD_RAWIP: { struct in6_addr lladdr; if (ipv6_get_lladdr(dev, &lladdr, IFA_F_TENTATIVE)) get_random_bytes(eui, 8); else memcpy(eui, lladdr.s6_addr + 8, 8); return 0; } } return -1; } static int ipv6_inherit_eui64(u8 *eui, struct inet6_dev *idev) { int err = -1; struct inet6_ifaddr *ifp; read_lock_bh(&idev->lock); list_for_each_entry(ifp, &idev->addr_list, if_list) { if (ifp->scope == IFA_LINK && !(ifp->flags&IFA_F_TENTATIVE)) { memcpy(eui, ifp->addr.s6_addr+8, 8); err = 0; break; } } read_unlock_bh(&idev->lock); return err; } #ifdef CONFIG_IPV6_PRIVACY /* (re)generation of randomized interface identifier (RFC 3041 3.2, 3.5) */ static int __ipv6_regen_rndid(struct inet6_dev *idev) { regen: get_random_bytes(idev->rndid, sizeof(idev->rndid)); idev->rndid[0] &= ~0x02; /* * <draft-ietf-ipngwg-temp-addresses-v2-00.txt>: * check if generated address is not inappropriate * * - Reserved subnet anycast (RFC 2526) * 11111101 11....11 1xxxxxxx * - ISATAP (RFC4214) 6.1 * 00-00-5E-FE-xx-xx-xx-xx * - value 0 * - XXX: already assigned to an address on the device */ if (idev->rndid[0] == 0xfd && (idev->rndid[1]&idev->rndid[2]&idev->rndid[3]&idev->rndid[4]&idev->rndid[5]&idev->rndid[6]) == 0xff && (idev->rndid[7]&0x80)) goto regen; if ((idev->rndid[0]|idev->rndid[1]) == 0) { if (idev->rndid[2] == 0x5e && idev->rndid[3] == 0xfe) goto regen; if ((idev->rndid[2]|idev->rndid[3]|idev->rndid[4]|idev->rndid[5]|idev->rndid[6]|idev->rndid[7]) == 0x00) goto regen; } return 0; } static void ipv6_regen_rndid(unsigned long data) { struct inet6_dev *idev = (struct inet6_dev *) data; unsigned long expires; rcu_read_lock_bh(); write_lock_bh(&idev->lock); if (idev->dead) goto out; if (__ipv6_regen_rndid(idev) < 0) goto out; expires = jiffies + idev->cnf.temp_prefered_lft * HZ - idev->cnf.regen_max_retry * idev->cnf.dad_transmits * idev->nd_parms->retrans_time - idev->cnf.max_desync_factor * HZ; if (time_before(expires, jiffies)) { printk(KERN_WARNING "ipv6_regen_rndid(): too short regeneration interval; timer disabled for %s.\n", idev->dev->name); goto out; } if (!mod_timer(&idev->regen_timer, expires)) in6_dev_hold(idev); out: write_unlock_bh(&idev->lock); rcu_read_unlock_bh(); in6_dev_put(idev); } static int __ipv6_try_regen_rndid(struct inet6_dev *idev, struct in6_addr *tmpaddr) { int ret = 0; if (tmpaddr && memcmp(idev->rndid, &tmpaddr->s6_addr[8], 8) == 0) ret = __ipv6_regen_rndid(idev); return ret; } #endif u32 addrconf_rt_table(const struct net_device *dev, u32 default_table) { /* Determines into what table to put autoconf PIO/RIO/default routes * learned on this device. * * - If 0, use the same table for every device. This puts routes into * one of RT_TABLE_{PREFIX,INFO,DFLT} depending on the type of route * (but note that these three are currently all equal to * RT6_TABLE_MAIN). * - If > 0, use the specified table. * - If < 0, put routes into table dev->ifindex + (-rt_table). */ struct inet6_dev *idev = in6_dev_get(dev); u32 table; int sysctl = idev->cnf.accept_ra_rt_table; if (sysctl == 0) { table = default_table; } else if (sysctl > 0) { table = (u32) sysctl; } else { table = (unsigned) dev->ifindex + (-sysctl); } in6_dev_put(idev); return table; } /* * Add prefix route. */ static void addrconf_prefix_route(struct in6_addr *pfx, int plen, struct net_device *dev, unsigned long expires, u32 flags) { struct fib6_config cfg = { .fc_table = addrconf_rt_table(dev, RT6_TABLE_PREFIX), .fc_metric = IP6_RT_PRIO_ADDRCONF, .fc_ifindex = dev->ifindex, .fc_expires = expires, .fc_dst_len = plen, .fc_flags = RTF_UP | flags, .fc_nlinfo.nl_net = dev_net(dev), .fc_protocol = RTPROT_KERNEL, }; cfg.fc_dst = *pfx; /* Prevent useless cloning on PtP SIT. This thing is done here expecting that the whole class of non-broadcast devices need not cloning. */ #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) if (dev->type == ARPHRD_SIT && (dev->flags & IFF_POINTOPOINT)) cfg.fc_flags |= RTF_NONEXTHOP; #endif ip6_route_add(&cfg); } static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx, int plen, const struct net_device *dev, u32 flags, u32 noflags) { struct fib6_node *fn; struct rt6_info *rt = NULL; struct fib6_table *table; table = fib6_get_table(dev_net(dev), addrconf_rt_table(dev, RT6_TABLE_PREFIX)); if (table == NULL) return NULL; write_lock_bh(&table->tb6_lock); fn = fib6_locate(&table->tb6_root, pfx, plen, NULL, 0); if (!fn) goto out; for (rt = fn->leaf; rt; rt = rt->dst.rt6_next) { if (rt->dst.dev->ifindex != dev->ifindex) continue; if ((rt->rt6i_flags & flags) != flags) continue; if ((rt->rt6i_flags & noflags) != 0) continue; dst_hold(&rt->dst); break; } out: write_unlock_bh(&table->tb6_lock); return rt; } /* Create "default" multicast route to the interface */ static void addrconf_add_mroute(struct net_device *dev) { struct fib6_config cfg = { .fc_table = RT6_TABLE_LOCAL, .fc_metric = IP6_RT_PRIO_ADDRCONF, .fc_ifindex = dev->ifindex, .fc_dst_len = 8, .fc_flags = RTF_UP, .fc_nlinfo.nl_net = dev_net(dev), }; ipv6_addr_set(&cfg.fc_dst, htonl(0xFF000000), 0, 0, 0); ip6_route_add(&cfg); } #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) static void sit_route_add(struct net_device *dev) { struct fib6_config cfg = { .fc_table = RT6_TABLE_MAIN, .fc_metric = IP6_RT_PRIO_ADDRCONF, .fc_ifindex = dev->ifindex, .fc_dst_len = 96, .fc_flags = RTF_UP | RTF_NONEXTHOP, .fc_nlinfo.nl_net = dev_net(dev), }; /* prefix length - 96 bits "::d.d.d.d" */ ip6_route_add(&cfg); } #endif static void addrconf_add_lroute(struct net_device *dev) { struct in6_addr addr; ipv6_addr_set(&addr, htonl(0xFE800000), 0, 0, 0); addrconf_prefix_route(&addr, 64, dev, 0, 0); } static struct inet6_dev *addrconf_add_dev(struct net_device *dev) { struct inet6_dev *idev; ASSERT_RTNL(); idev = ipv6_find_idev(dev); if (!idev) return ERR_PTR(-ENOBUFS); if (idev->cnf.disable_ipv6) return ERR_PTR(-EACCES); /* Add default multicast route */ if (!(dev->flags & IFF_LOOPBACK)) addrconf_add_mroute(dev); /* Add link local route */ addrconf_add_lroute(dev); return idev; } void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len, bool sllao) { struct prefix_info *pinfo; __u32 valid_lft; __u32 prefered_lft; int addr_type; struct inet6_dev *in6_dev; struct net *net = dev_net(dev); // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] The prefix is received now !", __func__); #endif // pinfo = (struct prefix_info *) opt; if (len < sizeof(struct prefix_info)) { ADBG(("addrconf: prefix option too short\n")); return; } /* * Validation checks ([ADDRCONF], page 19) */ addr_type = ipv6_addr_type(&pinfo->prefix); if (addr_type & (IPV6_ADDR_MULTICAST|IPV6_ADDR_LINKLOCAL)) return; valid_lft = ntohl(pinfo->valid); prefered_lft = ntohl(pinfo->prefered); if (prefered_lft > valid_lft) { if (net_ratelimit()) printk(KERN_WARNING "addrconf: prefix option has invalid lifetime\n"); return; } in6_dev = in6_dev_get(dev); if (in6_dev == NULL) { if (net_ratelimit()) printk(KERN_DEBUG "addrconf: device %s not configured\n", dev->name); return; } /* * Two things going on here: * 1) Add routes for on-link prefixes * 2) Configure prefixes with the auto flag set */ if (pinfo->onlink) { struct rt6_info *rt; unsigned long rt_expires; /* Avoid arithmetic overflow. Really, we could * save rt_expires in seconds, likely valid_lft, * but it would require division in fib gc, that it * not good. */ if (HZ > USER_HZ) rt_expires = addrconf_timeout_fixup(valid_lft, HZ); else rt_expires = addrconf_timeout_fixup(valid_lft, USER_HZ); if (addrconf_finite_timeout(rt_expires)) rt_expires *= HZ; rt = addrconf_get_prefix_route(&pinfo->prefix, pinfo->prefix_len, dev, RTF_ADDRCONF | RTF_PREFIX_RT, RTF_GATEWAY | RTF_DEFAULT); if (rt) { /* Autoconf prefix route */ if (valid_lft == 0) { ip6_del_rt(rt); rt = NULL; } else if (addrconf_finite_timeout(rt_expires)) { /* not infinity */ rt6_set_expires(rt, jiffies + rt_expires); } else { rt6_clean_expires(rt); } } else if (valid_lft) { clock_t expires = 0; int flags = RTF_ADDRCONF | RTF_PREFIX_RT; if (addrconf_finite_timeout(rt_expires)) { /* not infinity */ flags |= RTF_EXPIRES; expires = jiffies_to_clock_t(rt_expires); } if (dev->ip6_ptr->cnf.accept_ra_prefix_route) { addrconf_prefix_route(&pinfo->prefix, pinfo->prefix_len, dev, expires, flags); } } if (rt) dst_release(&rt->dst); } /* Try to figure out our local address for this prefix */ if (pinfo->autoconf && in6_dev->cnf.autoconf) { struct inet6_ifaddr * ifp; struct in6_addr addr; int create = 0, update_lft = 0; if (pinfo->prefix_len == 64) { memcpy(&addr, &pinfo->prefix, 8); if (ipv6_generate_eui64(addr.s6_addr + 8, dev) && ipv6_inherit_eui64(addr.s6_addr + 8, in6_dev)) { in6_dev_put(in6_dev); return; } goto ok; } if (net_ratelimit()) printk(KERN_DEBUG "IPv6 addrconf: prefix with wrong length %d\n", pinfo->prefix_len); in6_dev_put(in6_dev); return; ok: ifp = ipv6_get_ifaddr(net, &addr, dev, 1); if (ifp == NULL && valid_lft) { int max_addresses = in6_dev->cnf.max_addresses; u32 addr_flags = 0; #ifdef CONFIG_IPV6_OPTIMISTIC_DAD if (in6_dev->cnf.optimistic_dad && !net->ipv6.devconf_all->forwarding && sllao) addr_flags = IFA_F_OPTIMISTIC; #endif /* Do not allow to create too much of autoconfigured * addresses; this would be too easy way to crash kernel. */ if (!max_addresses || ipv6_count_addresses(in6_dev) < max_addresses) ifp = ipv6_add_addr(in6_dev, &addr, pinfo->prefix_len, addr_type&IPV6_ADDR_SCOPE_MASK, addr_flags); if (!ifp || IS_ERR(ifp)) { in6_dev_put(in6_dev); return; } update_lft = create = 1; ifp->cstamp = jiffies; addrconf_dad_start(ifp, RTF_ADDRCONF|RTF_PREFIX_RT); } if (ifp) { int flags; unsigned long now; #ifdef CONFIG_IPV6_PRIVACY struct inet6_ifaddr *ift; #endif u32 stored_lft; /* update lifetime (RFC2462 5.5.3 e) */ spin_lock(&ifp->lock); now = jiffies; if (ifp->valid_lft > (now - ifp->tstamp) / HZ) stored_lft = ifp->valid_lft - (now - ifp->tstamp) / HZ; else stored_lft = 0; if (!update_lft && stored_lft) { if (valid_lft > MIN_VALID_LIFETIME || valid_lft > stored_lft) update_lft = 1; else if (stored_lft <= MIN_VALID_LIFETIME) { /* valid_lft <= stored_lft is always true */ /* * RFC 4862 Section 5.5.3e: * "Note that the preferred lifetime of * the corresponding address is always * reset to the Preferred Lifetime in * the received Prefix Information * option, regardless of whether the * valid lifetime is also reset or * ignored." * * So if the preferred lifetime in * this advertisement is different * than what we have stored, but the * valid lifetime is invalid, just * reset prefered_lft. * * We must set the valid lifetime * to the stored lifetime since we'll * be updating the timestamp below, * else we'll set it back to the * minimum. */ if (prefered_lft != ifp->prefered_lft) { valid_lft = stored_lft; update_lft = 1; } } else { valid_lft = MIN_VALID_LIFETIME; if (valid_lft < prefered_lft) prefered_lft = valid_lft; update_lft = 1; } } if (update_lft) { ifp->valid_lft = valid_lft; ifp->prefered_lft = prefered_lft; ifp->tstamp = now; flags = ifp->flags; ifp->flags &= ~IFA_F_DEPRECATED; spin_unlock(&ifp->lock); if (!(flags&IFA_F_TENTATIVE)) ipv6_ifa_notify(0, ifp); } else spin_unlock(&ifp->lock); #ifdef CONFIG_IPV6_PRIVACY read_lock_bh(&in6_dev->lock); /* update all temporary addresses in the list */ list_for_each_entry(ift, &in6_dev->tempaddr_list, tmp_list) { int age, max_valid, max_prefered; if (ifp != ift->ifpub) continue; /* * RFC 4941 section 3.3: * If a received option will extend the lifetime * of a public address, the lifetimes of * temporary addresses should be extended, * subject to the overall constraint that no * temporary addresses should ever remain * "valid" or "preferred" for a time longer than * (TEMP_VALID_LIFETIME) or * (TEMP_PREFERRED_LIFETIME - DESYNC_FACTOR), * respectively. */ age = (now - ift->cstamp) / HZ; max_valid = in6_dev->cnf.temp_valid_lft - age; if (max_valid < 0) max_valid = 0; max_prefered = in6_dev->cnf.temp_prefered_lft - in6_dev->cnf.max_desync_factor - age; if (max_prefered < 0) max_prefered = 0; if (valid_lft > max_valid) valid_lft = max_valid; if (prefered_lft > max_prefered) prefered_lft = max_prefered; spin_lock(&ift->lock); flags = ift->flags; ift->valid_lft = valid_lft; ift->prefered_lft = prefered_lft; ift->tstamp = now; if (prefered_lft > 0) ift->flags &= ~IFA_F_DEPRECATED; spin_unlock(&ift->lock); if (!(flags&IFA_F_TENTATIVE)) ipv6_ifa_notify(0, ift); } if ((create || list_empty(&in6_dev->tempaddr_list)) && in6_dev->cnf.use_tempaddr > 0) { /* * When a new public address is created as * described in [ADDRCONF], also create a new * temporary address. Also create a temporary * address if it's enabled but no temporary * address currently exists. */ read_unlock_bh(&in6_dev->lock); ipv6_create_tempaddr(ifp, NULL); } else { read_unlock_bh(&in6_dev->lock); } #endif in6_ifa_put(ifp); addrconf_verify(0); } } inet6_prefix_notify(RTM_NEWPREFIX, in6_dev, pinfo); in6_dev_put(in6_dev); } /* * Set destination address. * Special case for SIT interfaces where we create a new "virtual" * device. */ int addrconf_set_dstaddr(struct net *net, void __user *arg) { struct in6_ifreq ireq; struct net_device *dev; int err = -EINVAL; rtnl_lock(); err = -EFAULT; if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) goto err_exit; dev = __dev_get_by_index(net, ireq.ifr6_ifindex); err = -ENODEV; if (dev == NULL) goto err_exit; #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) if (dev->type == ARPHRD_SIT) { const struct net_device_ops *ops = dev->netdev_ops; struct ifreq ifr; struct ip_tunnel_parm p; err = -EADDRNOTAVAIL; if (!(ipv6_addr_type(&ireq.ifr6_addr) & IPV6_ADDR_COMPATv4)) goto err_exit; memset(&p, 0, sizeof(p)); p.iph.daddr = ireq.ifr6_addr.s6_addr32[3]; p.iph.saddr = 0; p.iph.version = 4; p.iph.ihl = 5; p.iph.protocol = IPPROTO_IPV6; p.iph.ttl = 64; ifr.ifr_ifru.ifru_data = (__force void __user *)&p; if (ops->ndo_do_ioctl) { mm_segment_t oldfs = get_fs(); set_fs(KERNEL_DS); err = ops->ndo_do_ioctl(dev, &ifr, SIOCADDTUNNEL); set_fs(oldfs); } else err = -EOPNOTSUPP; if (err == 0) { err = -ENOBUFS; dev = __dev_get_by_name(net, p.name); if (!dev) goto err_exit; err = dev_open(dev); } } #endif err_exit: rtnl_unlock(); return err; } /* * Manual configuration of address on an interface */ static int inet6_addr_add(struct net *net, int ifindex, const struct in6_addr *pfx, unsigned int plen, __u8 ifa_flags, __u32 prefered_lft, __u32 valid_lft) { struct inet6_ifaddr *ifp; struct inet6_dev *idev; struct net_device *dev; int scope; u32 flags; clock_t expires; unsigned long timeout; ASSERT_RTNL(); if (plen > 128) return -EINVAL; /* check the lifetime */ if (!valid_lft || prefered_lft > valid_lft) return -EINVAL; dev = __dev_get_by_index(net, ifindex); if (!dev) return -ENODEV; idev = addrconf_add_dev(dev); if (IS_ERR(idev)) return PTR_ERR(idev); scope = ipv6_addr_scope(pfx); timeout = addrconf_timeout_fixup(valid_lft, HZ); if (addrconf_finite_timeout(timeout)) { expires = jiffies_to_clock_t(timeout * HZ); valid_lft = timeout; flags = RTF_EXPIRES; } else { expires = 0; flags = 0; ifa_flags |= IFA_F_PERMANENT; } timeout = addrconf_timeout_fixup(prefered_lft, HZ); if (addrconf_finite_timeout(timeout)) { if (timeout == 0) ifa_flags |= IFA_F_DEPRECATED; prefered_lft = timeout; } ifp = ipv6_add_addr(idev, pfx, plen, scope, ifa_flags); if (!IS_ERR(ifp)) { spin_lock_bh(&ifp->lock); ifp->valid_lft = valid_lft; ifp->prefered_lft = prefered_lft; ifp->tstamp = jiffies; spin_unlock_bh(&ifp->lock); addrconf_prefix_route(&ifp->addr, ifp->prefix_len, dev, expires, flags); /* * Note that section 3.1 of RFC 4429 indicates * that the Optimistic flag should not be set for * manually configured addresses */ addrconf_dad_start(ifp, 0); in6_ifa_put(ifp); addrconf_verify(0); return 0; } return PTR_ERR(ifp); } static int inet6_addr_del(struct net *net, int ifindex, const struct in6_addr *pfx, unsigned int plen) { struct inet6_ifaddr *ifp; struct inet6_dev *idev; struct net_device *dev; if (plen > 128) return -EINVAL; dev = __dev_get_by_index(net, ifindex); if (!dev) return -ENODEV; if ((idev = __in6_dev_get(dev)) == NULL) return -ENXIO; read_lock_bh(&idev->lock); list_for_each_entry(ifp, &idev->addr_list, if_list) { if (ifp->prefix_len == plen && ipv6_addr_equal(pfx, &ifp->addr)) { in6_ifa_hold(ifp); read_unlock_bh(&idev->lock); ipv6_del_addr(ifp); /* If the last address is deleted administratively, disable IPv6 on this interface. */ if (list_empty(&idev->addr_list)) addrconf_ifdown(idev->dev, 1); return 0; } } read_unlock_bh(&idev->lock); return -EADDRNOTAVAIL; } int addrconf_add_ifaddr(struct net *net, void __user *arg) { struct in6_ifreq ireq; int err; if (!capable(CAP_NET_ADMIN)) return -EPERM; if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) return -EFAULT; rtnl_lock(); err = inet6_addr_add(net, ireq.ifr6_ifindex, &ireq.ifr6_addr, ireq.ifr6_prefixlen, IFA_F_PERMANENT, INFINITY_LIFE_TIME, INFINITY_LIFE_TIME); rtnl_unlock(); return err; } int addrconf_del_ifaddr(struct net *net, void __user *arg) { struct in6_ifreq ireq; int err; if (!capable(CAP_NET_ADMIN)) return -EPERM; if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) return -EFAULT; rtnl_lock(); err = inet6_addr_del(net, ireq.ifr6_ifindex, &ireq.ifr6_addr, ireq.ifr6_prefixlen); rtnl_unlock(); return err; } static void add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int plen, int scope) { struct inet6_ifaddr *ifp; ifp = ipv6_add_addr(idev, addr, plen, scope, IFA_F_PERMANENT); if (!IS_ERR(ifp)) { spin_lock_bh(&ifp->lock); ifp->flags &= ~IFA_F_TENTATIVE; spin_unlock_bh(&ifp->lock); ipv6_ifa_notify(RTM_NEWADDR, ifp); in6_ifa_put(ifp); } } #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) static void sit_add_v4_addrs(struct inet6_dev *idev) { struct in6_addr addr; struct net_device *dev; struct net *net = dev_net(idev->dev); int scope; ASSERT_RTNL(); memset(&addr, 0, sizeof(struct in6_addr)); memcpy(&addr.s6_addr32[3], idev->dev->dev_addr, 4); if (idev->dev->flags&IFF_POINTOPOINT) { addr.s6_addr32[0] = htonl(0xfe800000); scope = IFA_LINK; } else { scope = IPV6_ADDR_COMPATv4; } if (addr.s6_addr32[3]) { add_addr(idev, &addr, 128, scope); return; } for_each_netdev(net, dev) { struct in_device * in_dev = __in_dev_get_rtnl(dev); if (in_dev && (dev->flags & IFF_UP)) { struct in_ifaddr * ifa; int flag = scope; for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { int plen; addr.s6_addr32[3] = ifa->ifa_local; if (ifa->ifa_scope == RT_SCOPE_LINK) continue; if (ifa->ifa_scope >= RT_SCOPE_HOST) { if (idev->dev->flags&IFF_POINTOPOINT) continue; flag |= IFA_HOST; } if (idev->dev->flags&IFF_POINTOPOINT) plen = 64; else plen = 96; add_addr(idev, &addr, plen, flag); } } } } #endif static void init_loopback(struct net_device *dev) { struct inet6_dev *idev; struct net_device *sp_dev; struct inet6_ifaddr *sp_ifa; struct rt6_info *sp_rt; /* ::1 */ ASSERT_RTNL(); if ((idev = ipv6_find_idev(dev)) == NULL) { printk(KERN_DEBUG "init loopback: add_dev failed\n"); return; } add_addr(idev, &in6addr_loopback, 128, IFA_HOST); /* Add routes to other interface's IPv6 addresses */ for_each_netdev(dev_net(dev), sp_dev) { if (!strcmp(sp_dev->name, dev->name)) continue; idev = __in6_dev_get(sp_dev); if (!idev) continue; read_lock_bh(&idev->lock); list_for_each_entry(sp_ifa, &idev->addr_list, if_list) { if (sp_ifa->flags & (IFA_F_DADFAILED | IFA_F_TENTATIVE)) continue; if (sp_ifa->rt) { /* This dst has been added to garbage list when * lo device down, release this obsolete dst and * reallocate a new router for ifa. */ if (sp_ifa->rt->dst.obsolete > 0) { dst_release(&sp_ifa->rt->dst); sp_ifa->rt = NULL; } else { continue; } } sp_rt = addrconf_dst_alloc(idev, &sp_ifa->addr, 0); /* Failure cases are ignored */ if (!IS_ERR(sp_rt)) { sp_ifa->rt = sp_rt; ip6_ins_rt(sp_rt); } } read_unlock_bh(&idev->lock); } } static void addrconf_add_linklocal(struct inet6_dev *idev, const struct in6_addr *addr) { struct inet6_ifaddr * ifp; u32 addr_flags = IFA_F_PERMANENT; #ifdef CONFIG_IPV6_OPTIMISTIC_DAD if (idev->cnf.optimistic_dad && !dev_net(idev->dev)->ipv6.devconf_all->forwarding) addr_flags |= IFA_F_OPTIMISTIC; #endif ifp = ipv6_add_addr(idev, addr, 64, IFA_LINK, addr_flags); if (!IS_ERR(ifp)) { addrconf_prefix_route(&ifp->addr, ifp->prefix_len, idev->dev, 0, 0); addrconf_dad_start(ifp, 0); in6_ifa_put(ifp); } } static void addrconf_dev_config(struct net_device *dev) { struct in6_addr addr; struct inet6_dev * idev; ASSERT_RTNL(); if ((dev->type != ARPHRD_ETHER) && (dev->type != ARPHRD_FDDI) && (dev->type != ARPHRD_IEEE802_TR) && (dev->type != ARPHRD_ARCNET) && (dev->type != ARPHRD_RAWIP) && (dev->type != ARPHRD_INFINIBAND)) { /* Alas, we support only Ethernet autoconfiguration. */ return; } idev = addrconf_add_dev(dev); if (IS_ERR(idev)) return; memset(&addr, 0, sizeof(struct in6_addr)); addr.s6_addr32[0] = htonl(0xFE800000); if (ipv6_generate_eui64(addr.s6_addr + 8, dev) == 0) addrconf_add_linklocal(idev, &addr); } #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) static void addrconf_sit_config(struct net_device *dev) { struct inet6_dev *idev; ASSERT_RTNL(); /* * Configure the tunnel with one of our IPv4 * addresses... we should configure all of * our v4 addrs in the tunnel */ if ((idev = ipv6_find_idev(dev)) == NULL) { printk(KERN_DEBUG "init sit: add_dev failed\n"); return; } if (dev->priv_flags & IFF_ISATAP) { struct in6_addr addr; ipv6_addr_set(&addr, htonl(0xFE800000), 0, 0, 0); addrconf_prefix_route(&addr, 64, dev, 0, 0); if (!ipv6_generate_eui64(addr.s6_addr + 8, dev)) addrconf_add_linklocal(idev, &addr); return; } sit_add_v4_addrs(idev); if (dev->flags&IFF_POINTOPOINT) { addrconf_add_mroute(dev); addrconf_add_lroute(dev); } else sit_route_add(dev); } #endif #if defined(CONFIG_NET_IPGRE) || defined(CONFIG_NET_IPGRE_MODULE) static void addrconf_gre_config(struct net_device *dev) { struct inet6_dev *idev; struct in6_addr addr; pr_info("ipv6: addrconf_gre_config(%s)\n", dev->name); ASSERT_RTNL(); if ((idev = ipv6_find_idev(dev)) == NULL) { printk(KERN_DEBUG "init gre: add_dev failed\n"); return; } ipv6_addr_set(&addr, htonl(0xFE800000), 0, 0, 0); addrconf_prefix_route(&addr, 64, dev, 0, 0); if (!ipv6_generate_eui64(addr.s6_addr + 8, dev)) addrconf_add_linklocal(idev, &addr); } #endif static inline int ipv6_inherit_linklocal(struct inet6_dev *idev, struct net_device *link_dev) { struct in6_addr lladdr; if (!ipv6_get_lladdr(link_dev, &lladdr, IFA_F_TENTATIVE)) { addrconf_add_linklocal(idev, &lladdr); return 0; } return -1; } static void ip6_tnl_add_linklocal(struct inet6_dev *idev) { struct net_device *link_dev; struct net *net = dev_net(idev->dev); /* first try to inherit the link-local address from the link device */ if (idev->dev->iflink && (link_dev = __dev_get_by_index(net, idev->dev->iflink))) { if (!ipv6_inherit_linklocal(idev, link_dev)) return; } /* then try to inherit it from any device */ for_each_netdev(net, link_dev) { if (!ipv6_inherit_linklocal(idev, link_dev)) return; } printk(KERN_DEBUG "init ip6-ip6: add_linklocal failed\n"); } /* * Autoconfigure tunnel with a link-local address so routing protocols, * DHCPv6, MLD etc. can be run over the virtual link */ static void addrconf_ip6_tnl_config(struct net_device *dev) { struct inet6_dev *idev; ASSERT_RTNL(); idev = addrconf_add_dev(dev); if (IS_ERR(idev)) { printk(KERN_DEBUG "init ip6-ip6: add_dev failed\n"); return; } ip6_tnl_add_linklocal(idev); } static int addrconf_notify(struct notifier_block *this, unsigned long event, void * data) { struct net_device *dev = (struct net_device *) data; struct inet6_dev *idev = __in6_dev_get(dev); int run_pending = 0; int err; switch (event) { case NETDEV_REGISTER: if (!idev && dev->mtu >= IPV6_MIN_MTU) { idev = ipv6_add_dev(dev); if (!idev) return notifier_from_errno(-ENOMEM); } break; case NETDEV_UP: case NETDEV_CHANGE: if (dev->flags & IFF_SLAVE) break; if (event == NETDEV_UP) { if (!addrconf_qdisc_ok(dev)) { /* device is not ready yet. */ printk(KERN_INFO "ADDRCONF(NETDEV_UP): %s: " "link is not ready\n", dev->name); break; } if (!idev && dev->mtu >= IPV6_MIN_MTU) idev = ipv6_add_dev(dev); if (idev) { idev->if_flags |= IF_READY; run_pending = 1; } } else { if (!addrconf_qdisc_ok(dev)) { /* device is still not ready. */ break; } if (idev) { if (idev->if_flags & IF_READY) /* device is already configured. */ break; idev->if_flags |= IF_READY; } printk(KERN_INFO "ADDRCONF(NETDEV_CHANGE): %s: " "link becomes ready\n", dev->name); run_pending = 1; } switch (dev->type) { #if defined(CONFIG_IPV6_SIT) || defined(CONFIG_IPV6_SIT_MODULE) case ARPHRD_SIT: addrconf_sit_config(dev); break; #endif #if defined(CONFIG_NET_IPGRE) || defined(CONFIG_NET_IPGRE_MODULE) case ARPHRD_IPGRE: addrconf_gre_config(dev); break; #endif case ARPHRD_TUNNEL6: addrconf_ip6_tnl_config(dev); break; case ARPHRD_LOOPBACK: init_loopback(dev); break; default: addrconf_dev_config(dev); break; } if (idev) { if (run_pending) addrconf_dad_run(idev); /* * If the MTU changed during the interface down, * when the interface up, the changed MTU must be * reflected in the idev as well as routers. */ if (idev->cnf.mtu6 != dev->mtu && dev->mtu >= IPV6_MIN_MTU) { rt6_mtu_change(dev, dev->mtu); idev->cnf.mtu6 = dev->mtu; } idev->tstamp = jiffies; inet6_ifinfo_notify(RTM_NEWLINK, idev); /* * If the changed mtu during down is lower than * IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu < IPV6_MIN_MTU) addrconf_ifdown(dev, 1); } break; case NETDEV_CHANGEMTU: if (idev && dev->mtu >= IPV6_MIN_MTU) { rt6_mtu_change(dev, dev->mtu); idev->cnf.mtu6 = dev->mtu; break; } if (!idev && dev->mtu >= IPV6_MIN_MTU) { idev = ipv6_add_dev(dev); if (idev) break; } /* * MTU falled under IPV6_MIN_MTU. * Stop IPv6 on this interface. */ case NETDEV_DOWN: case NETDEV_UNREGISTER: /* * Remove all addresses from this interface. */ addrconf_ifdown(dev, event != NETDEV_DOWN); break; case NETDEV_CHANGENAME: if (idev) { snmp6_unregister_dev(idev); addrconf_sysctl_unregister(idev); addrconf_sysctl_register(idev); err = snmp6_register_dev(idev); if (err) return notifier_from_errno(err); } break; case NETDEV_PRE_TYPE_CHANGE: case NETDEV_POST_TYPE_CHANGE: addrconf_type_change(dev, event); break; } return NOTIFY_OK; } /* * addrconf module should be notified of a device going up */ static struct notifier_block ipv6_dev_notf = { .notifier_call = addrconf_notify, }; static void addrconf_type_change(struct net_device *dev, unsigned long event) { struct inet6_dev *idev; ASSERT_RTNL(); idev = __in6_dev_get(dev); if (event == NETDEV_POST_TYPE_CHANGE) ipv6_mc_remap(idev); else if (event == NETDEV_PRE_TYPE_CHANGE) ipv6_mc_unmap(idev); } static int addrconf_ifdown(struct net_device *dev, int how) { struct net *net = dev_net(dev); struct inet6_dev *idev; struct inet6_ifaddr *ifa; int state, i; ASSERT_RTNL(); rt6_ifdown(net, dev); neigh_ifdown(&nd_tbl, dev); idev = __in6_dev_get(dev); if (idev == NULL) return -ENODEV; /* * Step 1: remove reference to ipv6 device from parent device. * Do not dev_put! */ if (how) { idev->dead = 1; /* protected by rtnl_lock */ RCU_INIT_POINTER(dev->ip6_ptr, NULL); /* Step 1.5: remove snmp6 entry */ snmp6_unregister_dev(idev); } /* Step 2: clear hash table */ spin_lock_bh(&addrconf_hash_lock); for (i = 0; i < IN6_ADDR_HSIZE; i++) { struct hlist_head *h = &inet6_addr_lst[i]; struct hlist_node *n; restart: hlist_for_each_entry_rcu(ifa, n, h, addr_lst) { if (ifa->idev == idev) { hlist_del_init_rcu(&ifa->addr_lst); addrconf_del_timer(ifa); goto restart; } } } write_lock_bh(&idev->lock); /* Step 2: clear flags for stateless addrconf */ if (!how) idev->if_flags &= ~(IF_RS_SENT|IF_RA_RCVD|IF_READY); #ifdef CONFIG_IPV6_PRIVACY if (how && del_timer(&idev->regen_timer)) in6_dev_put(idev); /* Step 3: clear tempaddr list */ while (!list_empty(&idev->tempaddr_list)) { ifa = list_first_entry(&idev->tempaddr_list, struct inet6_ifaddr, tmp_list); list_del(&ifa->tmp_list); write_unlock_bh(&idev->lock); spin_lock_bh(&ifa->lock); if (ifa->ifpub) { in6_ifa_put(ifa->ifpub); ifa->ifpub = NULL; } spin_unlock_bh(&ifa->lock); in6_ifa_put(ifa); write_lock_bh(&idev->lock); } #endif while (!list_empty(&idev->addr_list)) { ifa = list_first_entry(&idev->addr_list, struct inet6_ifaddr, if_list); addrconf_del_timer(ifa); list_del(&ifa->if_list); write_unlock_bh(&idev->lock); spin_lock_bh(&ifa->state_lock); state = ifa->state; ifa->state = INET6_IFADDR_STATE_DEAD; spin_unlock_bh(&ifa->state_lock); if (state != INET6_IFADDR_STATE_DEAD) { __ipv6_ifa_notify(RTM_DELADDR, ifa); atomic_notifier_call_chain(&inet6addr_chain, NETDEV_DOWN, ifa); } in6_ifa_put(ifa); write_lock_bh(&idev->lock); } write_unlock_bh(&idev->lock); spin_unlock_bh(&addrconf_hash_lock); /* Step 5: Discard anycast and multicast list */ if (how) { ipv6_ac_destroy_dev(idev); ipv6_mc_destroy_dev(idev); } else { ipv6_mc_down(idev); } idev->tstamp = jiffies; /* Last: Shot the device (if unregistered) */ if (how) { addrconf_sysctl_unregister(idev); neigh_parms_release(&nd_tbl, idev->nd_parms); neigh_ifdown(&nd_tbl, dev); in6_dev_put(idev); } return 0; } static void addrconf_rs_timer(unsigned long data) { struct inet6_ifaddr *ifp = (struct inet6_ifaddr *) data; struct inet6_dev *idev = ifp->idev; read_lock(&idev->lock); if (idev->dead || !(idev->if_flags & IF_READY)) goto out; if (idev->cnf.forwarding) goto out; /* Announcement received after solicitation was sent */ // if (idev->if_flags & IF_RA_RCVD){ #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] The RA msg had been received!", __func__); #endif goto out; } // spin_lock(&ifp->lock); if (ifp->probes++ < idev->cnf.rtr_solicits) { /* The wait after the last probe can be shorter */ addrconf_mod_timer(ifp, AC_RS, (ifp->probes == idev->cnf.rtr_solicits) ? idev->cnf.rtr_solicit_delay : idev->cnf.rtr_solicit_interval); spin_unlock(&ifp->lock); // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()][stage 2] rs is sent now!", __func__); #endif // ndisc_send_rs(idev->dev, &ifp->addr, &in6addr_linklocal_allrouters); } else { spin_unlock(&ifp->lock); /* * Note: we do not support deprecated "all on-link" * assumption any longer. */ printk(KERN_DEBUG "%s: no IPv6 routers present\n", idev->dev->name); } out: read_unlock(&idev->lock); in6_ifa_put(ifp); } /* * Duplicate Address Detection */ static void addrconf_dad_kick(struct inet6_ifaddr *ifp) { unsigned long rand_num; struct inet6_dev *idev = ifp->idev; if (ifp->flags & IFA_F_OPTIMISTIC) rand_num = 0; else rand_num = net_random() % (idev->cnf.rtr_solicit_delay ? : 1); ifp->probes = idev->cnf.dad_transmits; // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] dad_transmits == %d, ramd_num == %lu", __func__, idev->cnf.dad_transmits, rand_num); #endif // addrconf_mod_timer(ifp, AC_DAD, rand_num); } static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags) { struct inet6_dev *idev = ifp->idev; struct net_device *dev = idev->dev; // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER int ipv6AddrType = 0; //initializing const char InterfaceNameToApply[6]="rmnet"; char CurrentInterfaceName[6]={0};//initializing ipv6AddrType = ipv6_addr_type(&ifp->addr); printk(KERN_DEBUG "[LGE_DATA][%s()] dad_start! dev_name == %s", __func__, dev->name); printk(KERN_DEBUG "[LGE_DATA][%s()] ipv6_addr_type == %d", __func__, ipv6AddrType); strncpy(CurrentInterfaceName,dev->name,5); if(CurrentInterfaceName == NULL){ printk(KERN_DEBUG "[LGE_DATA] CurrentInterfaceName is NULL !\n"); return; } #endif // addrconf_join_solict(dev, &ifp->addr); net_srandom(ifp->addr.s6_addr32[3]); read_lock_bh(&idev->lock); spin_lock(&ifp->lock); if (ifp->state == INET6_IFADDR_STATE_DEAD) goto out; // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER if (((strcmp(InterfaceNameToApply, CurrentInterfaceName) == 0) && (ipv6AddrType == LGE_DATA_GLOBAL_SCOPE)) || (dev->flags&(IFF_NOARP|IFF_LOOPBACK) || idev->cnf.accept_dad < 1 || !(ifp->flags&IFA_F_TENTATIVE) || ifp->flags & IFA_F_NODAD)) #else // Kernel Original implemenatation START if (dev->flags&(IFF_NOARP|IFF_LOOPBACK) || idev->cnf.accept_dad < 1 || !(ifp->flags&IFA_F_TENTATIVE) || ifp->flags & IFA_F_NODAD) // Kernel Original implemenatation END #endif // { ifp->flags &= ~(IFA_F_TENTATIVE|IFA_F_OPTIMISTIC|IFA_F_DADFAILED); spin_unlock(&ifp->lock); read_unlock_bh(&idev->lock); // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] ipv6_addr_type == %d, Because the IPv6 type is Global Scope, we will immediately finish the DAD process for Global Scope.", __func__, ipv6AddrType); #endif // addrconf_dad_completed(ifp); return; } if (!(idev->if_flags & IF_READY)) { spin_unlock(&ifp->lock); read_unlock_bh(&idev->lock); /* * If the device is not ready: * - keep it tentative if it is a permanent address. * - otherwise, kill it. */ in6_ifa_hold(ifp); addrconf_dad_stop(ifp, 0); return; } /* * Optimistic nodes can start receiving * Frames right away */ if (ifp->flags & IFA_F_OPTIMISTIC) { ip6_ins_rt(ifp->rt); if (ipv6_use_optimistic_addr(idev)) { /* Because optimistic nodes can use this address, * notify listeners. If DAD fails, RTM_DELADDR is sent. */ ipv6_ifa_notify(RTM_NEWADDR, ifp); } } addrconf_dad_kick(ifp); out: spin_unlock(&ifp->lock); read_unlock_bh(&idev->lock); } static void addrconf_dad_timer(unsigned long data) { struct inet6_ifaddr *ifp = (struct inet6_ifaddr *) data; struct inet6_dev *idev = ifp->idev; struct in6_addr mcaddr; // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER struct net_device *dev = idev->dev; const char InterfaceNameToApply[6]="rmnet"; char CurrentInterfaceName[6]={0};//initializing #endif // if (!ifp->probes && addrconf_dad_end(ifp)) goto out; read_lock(&idev->lock); if (idev->dead || !(idev->if_flags & IF_READY)) { read_unlock(&idev->lock); goto out; } spin_lock(&ifp->lock); if (ifp->state == INET6_IFADDR_STATE_DEAD) { spin_unlock(&ifp->lock); read_unlock(&idev->lock); goto out; } if (ifp->probes == 0) { /* * DAD was successful */ // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] DAD was successful!", __func__); #endif // ifp->flags &= ~(IFA_F_TENTATIVE|IFA_F_OPTIMISTIC|IFA_F_DADFAILED); spin_unlock(&ifp->lock); read_unlock(&idev->lock); addrconf_dad_completed(ifp); goto out; } ifp->probes--; // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()], ifp->idev->nd_parms->retrans_time == %d", __func__, ifp->idev->nd_parms->retrans_time); printk(KERN_DEBUG "[LGE_DATA][%s()] dev_name == %s", __func__, dev->name); strncpy(CurrentInterfaceName,dev->name,5); if(CurrentInterfaceName == NULL){ spin_unlock(&ifp->lock); read_unlock(&idev->lock); printk(KERN_DEBUG "[LGE_DATA] CurrentInterfaceName is NULL !\n"); goto out; } printk(KERN_DEBUG "[LGE_DATA][%s()] CopyInterfaceName == %s, CurrentInterfaceName == %s", __func__, InterfaceNameToApply, CurrentInterfaceName); if(strcmp(InterfaceNameToApply, CurrentInterfaceName) == 0){//In case of rmnet, this patch will be applied bacause We should not impact to the Wi-Fi and so on. addrconf_mod_timer(ifp, AC_DAD, LGE_DATA_WAITING_TIME_FOR_DAD_OF_LGU); printk(KERN_DEBUG "[LGE_DATA][%s()] The waiting time for link-local DAD is set as [%d] milli-seconds in case of only rmnet interface !", __func__, LGE_DATA_WAITING_TIME_FOR_DAD_OF_LGU*10); }else{ //kernel original code -- START addrconf_mod_timer(ifp, AC_DAD, ifp->idev->nd_parms->retrans_time); //kernel original code -- END } #else addrconf_mod_timer(ifp, AC_DAD, ifp->idev->nd_parms->retrans_time); #endif // spin_unlock(&ifp->lock); read_unlock(&idev->lock); /* send a neighbour solicitation for our addr */ // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] send a neighbour solicitation for our addr !", __func__); #endif // addrconf_addr_solict_mult(&ifp->addr, &mcaddr); ndisc_send_ns(ifp->idev->dev, NULL, &ifp->addr, &mcaddr, &in6addr_any); out: in6_ifa_put(ifp); } static void addrconf_dad_completed(struct inet6_ifaddr *ifp) { struct net_device *dev = ifp->idev->dev; /* * Configure the address for reception. Now it is valid. */ ipv6_ifa_notify(RTM_NEWADDR, ifp); // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()] dad_is_completed!", __func__); #endif // /* If added prefix is link local and we are prepared to process router advertisements, start sending router solicitations. */ if (((ifp->idev->cnf.accept_ra == 1 && !ifp->idev->cnf.forwarding) || ifp->idev->cnf.accept_ra == 2) && ifp->idev->cnf.rtr_solicits > 0 && (dev->flags&IFF_LOOPBACK) == 0 && (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) { /* * If a host as already performed a random delay * [...] as part of DAD [...] there is no need * to delay again before sending the first RS */ // #ifdef CONFIG_LGP_DATA_TCPIP_SLAAC_IPV6_ALLOCATION_BOOSTER printk(KERN_DEBUG "[LGE_DATA][%s()][stage 1] rs is sent now!", __func__); #endif // ndisc_send_rs(ifp->idev->dev, &ifp->addr, &in6addr_linklocal_allrouters); spin_lock_bh(&ifp->lock); ifp->probes = 1; ifp->idev->if_flags |= IF_RS_SENT; addrconf_mod_timer(ifp, AC_RS, ifp->idev->cnf.rtr_solicit_interval); spin_unlock_bh(&ifp->lock); } } static void addrconf_dad_run(struct inet6_dev *idev) { struct inet6_ifaddr *ifp; read_lock_bh(&idev->lock); list_for_each_entry(ifp, &idev->addr_list, if_list) { spin_lock(&ifp->lock); if (ifp->flags & IFA_F_TENTATIVE && ifp->state == INET6_IFADDR_STATE_DAD) addrconf_dad_kick(ifp); spin_unlock(&ifp->lock); } read_unlock_bh(&idev->lock); } #ifdef CONFIG_PROC_FS struct if6_iter_state { struct seq_net_private p; int bucket; int offset; }; static struct inet6_ifaddr *if6_get_first(struct seq_file *seq, loff_t pos) { struct inet6_ifaddr *ifa = NULL; struct if6_iter_state *state = seq->private; struct net *net = seq_file_net(seq); int p = 0; /* initial bucket if pos is 0 */ if (pos == 0) { state->bucket = 0; state->offset = 0; } for (; state->bucket < IN6_ADDR_HSIZE; ++state->bucket) { struct hlist_node *n; hlist_for_each_entry_rcu_bh(ifa, n, &inet6_addr_lst[state->bucket], addr_lst) { if (!net_eq(dev_net(ifa->idev->dev), net)) continue; /* sync with offset */ if (p < state->offset) { p++; continue; } state->offset++; return ifa; } /* prepare for next bucket */ state->offset = 0; p = 0; } return NULL; } static struct inet6_ifaddr *if6_get_next(struct seq_file *seq, struct inet6_ifaddr *ifa) { struct if6_iter_state *state = seq->private; struct net *net = seq_file_net(seq); struct hlist_node *n = &ifa->addr_lst; hlist_for_each_entry_continue_rcu_bh(ifa, n, addr_lst) { if (!net_eq(dev_net(ifa->idev->dev), net)) continue; state->offset++; return ifa; } while (++state->bucket < IN6_ADDR_HSIZE) { state->offset = 0; hlist_for_each_entry_rcu_bh(ifa, n, &inet6_addr_lst[state->bucket], addr_lst) { if (!net_eq(dev_net(ifa->idev->dev), net)) continue; state->offset++; return ifa; } } return NULL; } static void *if6_seq_start(struct seq_file *seq, loff_t *pos) __acquires(rcu_bh) { rcu_read_lock_bh(); return if6_get_first(seq, *pos); } static void *if6_seq_next(struct seq_file *seq, void *v, loff_t *pos) { struct inet6_ifaddr *ifa; ifa = if6_get_next(seq, v); ++*pos; return ifa; } static void if6_seq_stop(struct seq_file *seq, void *v) __releases(rcu_bh) { rcu_read_unlock_bh(); } static int if6_seq_show(struct seq_file *seq, void *v) { struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v; seq_printf(seq, "%pi6 %02x %02x %02x %02x %8s\n", &ifp->addr, ifp->idev->dev->ifindex, ifp->prefix_len, ifp->scope, ifp->flags, ifp->idev->dev->name); return 0; } static const struct seq_operations if6_seq_ops = { .start = if6_seq_start, .next = if6_seq_next, .show = if6_seq_show, .stop = if6_seq_stop, }; static int if6_seq_open(struct inode *inode, struct file *file) { return seq_open_net(inode, file, &if6_seq_ops, sizeof(struct if6_iter_state)); } static const struct file_operations if6_fops = { .owner = THIS_MODULE, .open = if6_seq_open, .read = seq_read, .llseek = seq_lseek, .release = seq_release_net, }; static int __net_init if6_proc_net_init(struct net *net) { if (!proc_net_fops_create(net, "if_inet6", S_IRUGO, &if6_fops)) return -ENOMEM; return 0; } static void __net_exit if6_proc_net_exit(struct net *net) { proc_net_remove(net, "if_inet6"); } static struct pernet_operations if6_proc_net_ops = { .init = if6_proc_net_init, .exit = if6_proc_net_exit, }; int __init if6_proc_init(void) { return register_pernet_subsys(&if6_proc_net_ops); } void if6_proc_exit(void) { unregister_pernet_subsys(&if6_proc_net_ops); } #endif /* CONFIG_PROC_FS */ #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) /* Check if address is a home address configured on any interface. */ int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr) { int ret = 0; struct inet6_ifaddr *ifp = NULL; struct hlist_node *n; unsigned int hash = ipv6_addr_hash(addr); rcu_read_lock_bh(); hlist_for_each_entry_rcu_bh(ifp, n, &inet6_addr_lst[hash], addr_lst) { if (!net_eq(dev_net(ifp->idev->dev), net)) continue; if (ipv6_addr_equal(&ifp->addr, addr) && (ifp->flags & IFA_F_HOMEADDRESS)) { ret = 1; break; } } rcu_read_unlock_bh(); return ret; } #endif /* * Periodic address status verification */ static void addrconf_verify(unsigned long foo) { unsigned long now, next, next_sec, next_sched; struct inet6_ifaddr *ifp; struct hlist_node *node; int i; rcu_read_lock_bh(); spin_lock(&addrconf_verify_lock); now = jiffies; next = round_jiffies_up(now + ADDR_CHECK_FREQUENCY); del_timer(&addr_chk_timer); for (i = 0; i < IN6_ADDR_HSIZE; i++) { restart: hlist_for_each_entry_rcu_bh(ifp, node, &inet6_addr_lst[i], addr_lst) { unsigned long age; if (ifp->flags & IFA_F_PERMANENT) continue; spin_lock(&ifp->lock); /* We try to batch several events at once. */ age = (now - ifp->tstamp + ADDRCONF_TIMER_FUZZ_MINUS) / HZ; if (ifp->valid_lft != INFINITY_LIFE_TIME && age >= ifp->valid_lft) { spin_unlock(&ifp->lock); in6_ifa_hold(ifp); ipv6_del_addr(ifp); goto restart; } else if (ifp->prefered_lft == INFINITY_LIFE_TIME) { spin_unlock(&ifp->lock); continue; } else if (age >= ifp->prefered_lft) { /* jiffies - ifp->tstamp > age >= ifp->prefered_lft */ int deprecate = 0; if (!(ifp->flags&IFA_F_DEPRECATED)) { deprecate = 1; ifp->flags |= IFA_F_DEPRECATED; } if (time_before(ifp->tstamp + ifp->valid_lft * HZ, next)) next = ifp->tstamp + ifp->valid_lft * HZ; spin_unlock(&ifp->lock); if (deprecate) { in6_ifa_hold(ifp); ipv6_ifa_notify(0, ifp); in6_ifa_put(ifp); goto restart; } #ifdef CONFIG_IPV6_PRIVACY } else if ((ifp->flags&IFA_F_TEMPORARY) && !(ifp->flags&IFA_F_TENTATIVE)) { unsigned long regen_advance = ifp->idev->cnf.regen_max_retry * ifp->idev->cnf.dad_transmits * ifp->idev->nd_parms->retrans_time / HZ; if (age >= ifp->prefered_lft - regen_advance) { struct inet6_ifaddr *ifpub = ifp->ifpub; if (time_before(ifp->tstamp + ifp->prefered_lft * HZ, next)) next = ifp->tstamp + ifp->prefered_lft * HZ; if (!ifp->regen_count && ifpub) { ifp->regen_count++; in6_ifa_hold(ifp); in6_ifa_hold(ifpub); spin_unlock(&ifp->lock); spin_lock(&ifpub->lock); ifpub->regen_count = 0; spin_unlock(&ifpub->lock); ipv6_create_tempaddr(ifpub, ifp); in6_ifa_put(ifpub); in6_ifa_put(ifp); goto restart; } } else if (time_before(ifp->tstamp + ifp->prefered_lft * HZ - regen_advance * HZ, next)) next = ifp->tstamp + ifp->prefered_lft * HZ - regen_advance * HZ; spin_unlock(&ifp->lock); #endif } else { /* ifp->prefered_lft <= ifp->valid_lft */ if (time_before(ifp->tstamp + ifp->prefered_lft * HZ, next)) next = ifp->tstamp + ifp->prefered_lft * HZ; spin_unlock(&ifp->lock); } } } next_sec = round_jiffies_up(next); next_sched = next; /* If rounded timeout is accurate enough, accept it. */ if (time_before(next_sec, next + ADDRCONF_TIMER_FUZZ)) next_sched = next_sec; /* And minimum interval is ADDRCONF_TIMER_FUZZ_MAX. */ if (time_before(next_sched, jiffies + ADDRCONF_TIMER_FUZZ_MAX)) next_sched = jiffies + ADDRCONF_TIMER_FUZZ_MAX; pr_debug("now = %lu, schedule = %lu, rounded schedule = %lu => %lu\n", now, next, next_sec, next_sched); addr_chk_timer.expires = next_sched; add_timer(&addr_chk_timer); spin_unlock(&addrconf_verify_lock); rcu_read_unlock_bh(); } static struct in6_addr *extract_addr(struct nlattr *addr, struct nlattr *local) { struct in6_addr *pfx = NULL; if (addr) pfx = nla_data(addr); if (local) { if (pfx && nla_memcmp(local, pfx, sizeof(*pfx))) pfx = NULL; else pfx = nla_data(local); } return pfx; } static const struct nla_policy ifa_ipv6_policy[IFA_MAX+1] = { [IFA_ADDRESS] = { .len = sizeof(struct in6_addr) }, [IFA_LOCAL] = { .len = sizeof(struct in6_addr) }, [IFA_CACHEINFO] = { .len = sizeof(struct ifa_cacheinfo) }, }; static int inet6_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) { struct net *net = sock_net(skb->sk); struct ifaddrmsg *ifm; struct nlattr *tb[IFA_MAX+1]; struct in6_addr *pfx; int err; err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); if (err < 0) return err; ifm = nlmsg_data(nlh); pfx = extract_addr(tb[IFA_ADDRESS], tb[IFA_LOCAL]); if (pfx == NULL) return -EINVAL; return inet6_addr_del(net, ifm->ifa_index, pfx, ifm->ifa_prefixlen); } static int inet6_addr_modify(struct inet6_ifaddr *ifp, u8 ifa_flags, u32 prefered_lft, u32 valid_lft) { u32 flags; clock_t expires; unsigned long timeout; if (!valid_lft || (prefered_lft > valid_lft)) return -EINVAL; timeout = addrconf_timeout_fixup(valid_lft, HZ); if (addrconf_finite_timeout(timeout)) { expires = jiffies_to_clock_t(timeout * HZ); valid_lft = timeout; flags = RTF_EXPIRES; } else { expires = 0; flags = 0; ifa_flags |= IFA_F_PERMANENT; } timeout = addrconf_timeout_fixup(prefered_lft, HZ); if (addrconf_finite_timeout(timeout)) { if (timeout == 0) ifa_flags |= IFA_F_DEPRECATED; prefered_lft = timeout; } spin_lock_bh(&ifp->lock); ifp->flags = (ifp->flags & ~(IFA_F_DEPRECATED | IFA_F_PERMANENT | IFA_F_NODAD | IFA_F_HOMEADDRESS)) | ifa_flags; ifp->tstamp = jiffies; ifp->valid_lft = valid_lft; ifp->prefered_lft = prefered_lft; spin_unlock_bh(&ifp->lock); if (!(ifp->flags&IFA_F_TENTATIVE)) ipv6_ifa_notify(0, ifp); addrconf_prefix_route(&ifp->addr, ifp->prefix_len, ifp->idev->dev, expires, flags); addrconf_verify(0); return 0; } static int inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) { struct net *net = sock_net(skb->sk); struct ifaddrmsg *ifm; struct nlattr *tb[IFA_MAX+1]; struct in6_addr *pfx; struct inet6_ifaddr *ifa; struct net_device *dev; u32 valid_lft = INFINITY_LIFE_TIME, preferred_lft = INFINITY_LIFE_TIME; u8 ifa_flags; int err; err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); if (err < 0) return err; ifm = nlmsg_data(nlh); pfx = extract_addr(tb[IFA_ADDRESS], tb[IFA_LOCAL]); if (pfx == NULL) return -EINVAL; if (tb[IFA_CACHEINFO]) { struct ifa_cacheinfo *ci; ci = nla_data(tb[IFA_CACHEINFO]); valid_lft = ci->ifa_valid; preferred_lft = ci->ifa_prefered; } else { preferred_lft = INFINITY_LIFE_TIME; valid_lft = INFINITY_LIFE_TIME; } dev = __dev_get_by_index(net, ifm->ifa_index); if (dev == NULL) return -ENODEV; /* We ignore other flags so far. */ ifa_flags = ifm->ifa_flags & (IFA_F_NODAD | IFA_F_HOMEADDRESS); ifa = ipv6_get_ifaddr(net, pfx, dev, 1); if (ifa == NULL) { /* * It would be best to check for !NLM_F_CREATE here but * userspace alreay relies on not having to provide this. */ return inet6_addr_add(net, ifm->ifa_index, pfx, ifm->ifa_prefixlen, ifa_flags, preferred_lft, valid_lft); } if (nlh->nlmsg_flags & NLM_F_EXCL || !(nlh->nlmsg_flags & NLM_F_REPLACE)) err = -EEXIST; else err = inet6_addr_modify(ifa, ifa_flags, preferred_lft, valid_lft); in6_ifa_put(ifa); return err; } static void put_ifaddrmsg(struct nlmsghdr *nlh, u8 prefixlen, u8 flags, u8 scope, int ifindex) { struct ifaddrmsg *ifm; ifm = nlmsg_data(nlh); ifm->ifa_family = AF_INET6; ifm->ifa_prefixlen = prefixlen; ifm->ifa_flags = flags; ifm->ifa_scope = scope; ifm->ifa_index = ifindex; } static int put_cacheinfo(struct sk_buff *skb, unsigned long cstamp, unsigned long tstamp, u32 preferred, u32 valid) { struct ifa_cacheinfo ci; ci.cstamp = cstamp_delta(cstamp); ci.tstamp = cstamp_delta(tstamp); ci.ifa_prefered = preferred; ci.ifa_valid = valid; return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); } static inline int rt_scope(int ifa_scope) { if (ifa_scope & IFA_HOST) return RT_SCOPE_HOST; else if (ifa_scope & IFA_LINK) return RT_SCOPE_LINK; else if (ifa_scope & IFA_SITE) return RT_SCOPE_SITE; else return RT_SCOPE_UNIVERSE; } static inline int inet6_ifaddr_msgsize(void) { return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + nla_total_size(16) /* IFA_ADDRESS */ + nla_total_size(sizeof(struct ifa_cacheinfo)); } static int inet6_fill_ifaddr(struct sk_buff *skb, struct inet6_ifaddr *ifa, u32 pid, u32 seq, int event, unsigned int flags) { struct nlmsghdr *nlh; u32 preferred, valid; nlh = nlmsg_put(skb, pid, seq, event, sizeof(struct ifaddrmsg), flags); if (nlh == NULL) return -EMSGSIZE; put_ifaddrmsg(nlh, ifa->prefix_len, ifa->flags, rt_scope(ifa->scope), ifa->idev->dev->ifindex); if (!(ifa->flags&IFA_F_PERMANENT)) { preferred = ifa->prefered_lft; valid = ifa->valid_lft; if (preferred != INFINITY_LIFE_TIME) { long tval = (jiffies - ifa->tstamp)/HZ; if (preferred > tval) preferred -= tval; else preferred = 0; if (valid != INFINITY_LIFE_TIME) { if (valid > tval) valid -= tval; else valid = 0; } } } else { preferred = INFINITY_LIFE_TIME; valid = INFINITY_LIFE_TIME; } if (nla_put(skb, IFA_ADDRESS, 16, &ifa->addr) < 0 || put_cacheinfo(skb, ifa->cstamp, ifa->tstamp, preferred, valid) < 0) { nlmsg_cancel(skb, nlh); return -EMSGSIZE; } return nlmsg_end(skb, nlh); } static int inet6_fill_ifmcaddr(struct sk_buff *skb, struct ifmcaddr6 *ifmca, u32 pid, u32 seq, int event, u16 flags) { struct nlmsghdr *nlh; u8 scope = RT_SCOPE_UNIVERSE; int ifindex = ifmca->idev->dev->ifindex; if (ipv6_addr_scope(&ifmca->mca_addr) & IFA_SITE) scope = RT_SCOPE_SITE; nlh = nlmsg_put(skb, pid, seq, event, sizeof(struct ifaddrmsg), flags); if (nlh == NULL) return -EMSGSIZE; put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex); if (nla_put(skb, IFA_MULTICAST, 16, &ifmca->mca_addr) < 0 || put_cacheinfo(skb, ifmca->mca_cstamp, ifmca->mca_tstamp, INFINITY_LIFE_TIME, INFINITY_LIFE_TIME) < 0) { nlmsg_cancel(skb, nlh); return -EMSGSIZE; } return nlmsg_end(skb, nlh); } static int inet6_fill_ifacaddr(struct sk_buff *skb, struct ifacaddr6 *ifaca, u32 pid, u32 seq, int event, unsigned int flags) { struct nlmsghdr *nlh; u8 scope = RT_SCOPE_UNIVERSE; int ifindex = ifaca->aca_idev->dev->ifindex; if (ipv6_addr_scope(&ifaca->aca_addr) & IFA_SITE) scope = RT_SCOPE_SITE; nlh = nlmsg_put(skb, pid, seq, event, sizeof(struct ifaddrmsg), flags); if (nlh == NULL) return -EMSGSIZE; put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex); if (nla_put(skb, IFA_ANYCAST, 16, &ifaca->aca_addr) < 0 || put_cacheinfo(skb, ifaca->aca_cstamp, ifaca->aca_tstamp, INFINITY_LIFE_TIME, INFINITY_LIFE_TIME) < 0) { nlmsg_cancel(skb, nlh); return -EMSGSIZE; } return nlmsg_end(skb, nlh); } enum addr_type_t { UNICAST_ADDR, MULTICAST_ADDR, ANYCAST_ADDR, }; /* called with rcu_read_lock() */ static int in6_dump_addrs(struct inet6_dev *idev, struct sk_buff *skb, struct netlink_callback *cb, enum addr_type_t type, int s_ip_idx, int *p_ip_idx) { struct ifmcaddr6 *ifmca; struct ifacaddr6 *ifaca; int err = 1; int ip_idx = *p_ip_idx; read_lock_bh(&idev->lock); switch (type) { case UNICAST_ADDR: { struct inet6_ifaddr *ifa; /* unicast address incl. temp addr */ list_for_each_entry(ifa, &idev->addr_list, if_list) { if (++ip_idx < s_ip_idx) continue; err = inet6_fill_ifaddr(skb, ifa, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, RTM_NEWADDR, NLM_F_MULTI); if (err <= 0) break; } break; } case MULTICAST_ADDR: /* multicast address */ for (ifmca = idev->mc_list; ifmca; ifmca = ifmca->next, ip_idx++) { if (ip_idx < s_ip_idx) continue; err = inet6_fill_ifmcaddr(skb, ifmca, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, RTM_GETMULTICAST, NLM_F_MULTI); if (err <= 0) break; } break; case ANYCAST_ADDR: /* anycast address */ for (ifaca = idev->ac_list; ifaca; ifaca = ifaca->aca_next, ip_idx++) { if (ip_idx < s_ip_idx) continue; err = inet6_fill_ifacaddr(skb, ifaca, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, RTM_GETANYCAST, NLM_F_MULTI); if (err <= 0) break; } break; default: break; } read_unlock_bh(&idev->lock); *p_ip_idx = ip_idx; return err; } static int inet6_dump_addr(struct sk_buff *skb, struct netlink_callback *cb, enum addr_type_t type) { struct net *net = sock_net(skb->sk); int h, s_h; int idx, ip_idx; int s_idx, s_ip_idx; struct net_device *dev; struct inet6_dev *idev; struct hlist_head *head; struct hlist_node *node; s_h = cb->args[0]; s_idx = idx = cb->args[1]; s_ip_idx = ip_idx = cb->args[2]; rcu_read_lock(); for (h = s_h; h < NETDEV_HASHENTRIES; h++, s_idx = 0) { idx = 0; head = &net->dev_index_head[h]; hlist_for_each_entry_rcu(dev, node, head, index_hlist) { if (idx < s_idx) goto cont; if (h > s_h || idx > s_idx) s_ip_idx = 0; ip_idx = 0; idev = __in6_dev_get(dev); if (!idev) goto cont; if (in6_dump_addrs(idev, skb, cb, type, s_ip_idx, &ip_idx) <= 0) goto done; cont: idx++; } } done: rcu_read_unlock(); cb->args[0] = h; cb->args[1] = idx; cb->args[2] = ip_idx; return skb->len; } static int inet6_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb) { enum addr_type_t type = UNICAST_ADDR; return inet6_dump_addr(skb, cb, type); } static int inet6_dump_ifmcaddr(struct sk_buff *skb, struct netlink_callback *cb) { enum addr_type_t type = MULTICAST_ADDR; return inet6_dump_addr(skb, cb, type); } static int inet6_dump_ifacaddr(struct sk_buff *skb, struct netlink_callback *cb) { enum addr_type_t type = ANYCAST_ADDR; return inet6_dump_addr(skb, cb, type); } static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) { struct net *net = sock_net(in_skb->sk); struct ifaddrmsg *ifm; struct nlattr *tb[IFA_MAX+1]; struct in6_addr *addr = NULL; struct net_device *dev = NULL; struct inet6_ifaddr *ifa; struct sk_buff *skb; int err; err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); if (err < 0) goto errout; addr = extract_addr(tb[IFA_ADDRESS], tb[IFA_LOCAL]); if (addr == NULL) { err = -EINVAL; goto errout; } ifm = nlmsg_data(nlh); if (ifm->ifa_index) dev = __dev_get_by_index(net, ifm->ifa_index); ifa = ipv6_get_ifaddr(net, addr, dev, 1); if (!ifa) { err = -EADDRNOTAVAIL; goto errout; } skb = nlmsg_new(inet6_ifaddr_msgsize(), GFP_KERNEL); if (!skb) { err = -ENOBUFS; goto errout_ifa; } err = inet6_fill_ifaddr(skb, ifa, NETLINK_CB(in_skb).pid, nlh->nlmsg_seq, RTM_NEWADDR, 0); if (err < 0) { /* -EMSGSIZE implies BUG in inet6_ifaddr_msgsize() */ WARN_ON(err == -EMSGSIZE); kfree_skb(skb); goto errout_ifa; } err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); errout_ifa: in6_ifa_put(ifa); errout: return err; } static void inet6_ifa_notify(int event, struct inet6_ifaddr *ifa) { struct sk_buff *skb; struct net *net = dev_net(ifa->idev->dev); int err = -ENOBUFS; skb = nlmsg_new(inet6_ifaddr_msgsize(), GFP_ATOMIC); if (skb == NULL) goto errout; err = inet6_fill_ifaddr(skb, ifa, 0, 0, event, 0); if (err < 0) { /* -EMSGSIZE implies BUG in inet6_ifaddr_msgsize() */ WARN_ON(err == -EMSGSIZE); kfree_skb(skb); goto errout; } rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); return; errout: if (err < 0) rtnl_set_sk_err(net, RTNLGRP_IPV6_IFADDR, err); } static inline void ipv6_store_devconf(struct ipv6_devconf *cnf, __s32 *array, int bytes) { BUG_ON(bytes < (DEVCONF_MAX * 4)); memset(array, 0, bytes); array[DEVCONF_FORWARDING] = cnf->forwarding; array[DEVCONF_HOPLIMIT] = cnf->hop_limit; array[DEVCONF_MTU6] = cnf->mtu6; array[DEVCONF_ACCEPT_RA] = cnf->accept_ra; array[DEVCONF_ACCEPT_REDIRECTS] = cnf->accept_redirects; array[DEVCONF_AUTOCONF] = cnf->autoconf; array[DEVCONF_DAD_TRANSMITS] = cnf->dad_transmits; array[DEVCONF_RTR_SOLICITS] = cnf->rtr_solicits; array[DEVCONF_RTR_SOLICIT_INTERVAL] = jiffies_to_msecs(cnf->rtr_solicit_interval); array[DEVCONF_RTR_SOLICIT_DELAY] = jiffies_to_msecs(cnf->rtr_solicit_delay); array[DEVCONF_FORCE_MLD_VERSION] = cnf->force_mld_version; #ifdef CONFIG_IPV6_PRIVACY array[DEVCONF_USE_TEMPADDR] = cnf->use_tempaddr; array[DEVCONF_TEMP_VALID_LFT] = cnf->temp_valid_lft; array[DEVCONF_TEMP_PREFERED_LFT] = cnf->temp_prefered_lft; array[DEVCONF_REGEN_MAX_RETRY] = cnf->regen_max_retry; array[DEVCONF_MAX_DESYNC_FACTOR] = cnf->max_desync_factor; #endif array[DEVCONF_MAX_ADDRESSES] = cnf->max_addresses; array[DEVCONF_ACCEPT_RA_DEFRTR] = cnf->accept_ra_defrtr; array[DEVCONF_ACCEPT_RA_PINFO] = cnf->accept_ra_pinfo; #ifdef CONFIG_IPV6_ROUTER_PREF array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; array[DEVCONF_RTR_PROBE_INTERVAL] = jiffies_to_msecs(cnf->rtr_probe_interval); #ifdef CONFIG_IPV6_ROUTE_INFO array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen; #endif #endif array[DEVCONF_ACCEPT_RA_RT_TABLE] = cnf->accept_ra_rt_table; array[DEVCONF_PROXY_NDP] = cnf->proxy_ndp; array[DEVCONF_ACCEPT_SOURCE_ROUTE] = cnf->accept_source_route; #ifdef CONFIG_IPV6_OPTIMISTIC_DAD array[DEVCONF_OPTIMISTIC_DAD] = cnf->optimistic_dad; array[DEVCONF_USE_OPTIMISTIC] = cnf->use_optimistic; #endif #ifdef CONFIG_IPV6_MROUTE array[DEVCONF_MC_FORWARDING] = cnf->mc_forwarding; #endif array[DEVCONF_DISABLE_IPV6] = cnf->disable_ipv6; array[DEVCONF_ACCEPT_DAD] = cnf->accept_dad; array[DEVCONF_FORCE_TLLAO] = cnf->force_tllao; #ifdef CONFIG_LGE_DHCPV6_WIFI array[DEVCONF_RA_INFO_FLAG] = cnf->ra_info_flag; #endif } static inline size_t inet6_ifla6_size(void) { return nla_total_size(4) /* IFLA_INET6_FLAGS */ + nla_total_size(sizeof(struct ifla_cacheinfo)) + nla_total_size(DEVCONF_MAX * 4) /* IFLA_INET6_CONF */ + nla_total_size(IPSTATS_MIB_MAX * 8) /* IFLA_INET6_STATS */ + nla_total_size(ICMP6_MIB_MAX * 8); /* IFLA_INET6_ICMP6STATS */ } static inline size_t inet6_if_nlmsg_size(void) { return NLMSG_ALIGN(sizeof(struct ifinfomsg)) + nla_total_size(IFNAMSIZ) /* IFLA_IFNAME */ + nla_total_size(MAX_ADDR_LEN) /* IFLA_ADDRESS */ + nla_total_size(4) /* IFLA_MTU */ + nla_total_size(4) /* IFLA_LINK */ + nla_total_size(inet6_ifla6_size()); /* IFLA_PROTINFO */ } static inline void __snmp6_fill_statsdev(u64 *stats, atomic_long_t *mib, int items, int bytes) { int i; int pad = bytes - sizeof(u64) * items; BUG_ON(pad < 0); /* Use put_unaligned() because stats may not be aligned for u64. */ put_unaligned(items, &stats[0]); for (i = 1; i < items; i++) put_unaligned(atomic_long_read(&mib[i]), &stats[i]); memset(&stats[items], 0, pad); } static inline void __snmp6_fill_stats64(u64 *stats, void __percpu **mib, int items, int bytes, size_t syncpoff) { int i; int pad = bytes - sizeof(u64) * items; BUG_ON(pad < 0); /* Use put_unaligned() because stats may not be aligned for u64. */ put_unaligned(items, &stats[0]); for (i = 1; i < items; i++) put_unaligned(snmp_fold_field64(mib, i, syncpoff), &stats[i]); memset(&stats[items], 0, pad); } static void snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, int bytes) { switch (attrtype) { case IFLA_INET6_STATS: __snmp6_fill_stats64(stats, (void __percpu **)idev->stats.ipv6, IPSTATS_MIB_MAX, bytes, offsetof(struct ipstats_mib, syncp)); break; case IFLA_INET6_ICMP6STATS: __snmp6_fill_statsdev(stats, idev->stats.icmpv6dev->mibs, ICMP6_MIB_MAX, bytes); break; } } static int inet6_fill_ifla6_attrs(struct sk_buff *skb, struct inet6_dev *idev) { struct nlattr *nla; struct ifla_cacheinfo ci; NLA_PUT_U32(skb, IFLA_INET6_FLAGS, idev->if_flags); ci.max_reasm_len = IPV6_MAXPLEN; ci.tstamp = cstamp_delta(idev->tstamp); ci.reachable_time = jiffies_to_msecs(idev->nd_parms->reachable_time); ci.retrans_time = jiffies_to_msecs(idev->nd_parms->retrans_time); NLA_PUT(skb, IFLA_INET6_CACHEINFO, sizeof(ci), &ci); nla = nla_reserve(skb, IFLA_INET6_CONF, DEVCONF_MAX * sizeof(s32)); if (nla == NULL) goto nla_put_failure; ipv6_store_devconf(&idev->cnf, nla_data(nla), nla_len(nla)); /* XXX - MC not implemented */ nla = nla_reserve(skb, IFLA_INET6_STATS, IPSTATS_MIB_MAX * sizeof(u64)); if (nla == NULL) goto nla_put_failure; snmp6_fill_stats(nla_data(nla), idev, IFLA_INET6_STATS, nla_len(nla)); nla = nla_reserve(skb, IFLA_INET6_ICMP6STATS, ICMP6_MIB_MAX * sizeof(u64)); if (nla == NULL) goto nla_put_failure; snmp6_fill_stats(nla_data(nla), idev, IFLA_INET6_ICMP6STATS, nla_len(nla)); return 0; nla_put_failure: return -EMSGSIZE; } static size_t inet6_get_link_af_size(const struct net_device *dev) { if (!__in6_dev_get(dev)) return 0; return inet6_ifla6_size(); } static int inet6_fill_link_af(struct sk_buff *skb, const struct net_device *dev) { struct inet6_dev *idev = __in6_dev_get(dev); if (!idev) return -ENODATA; if (inet6_fill_ifla6_attrs(skb, idev) < 0) return -EMSGSIZE; return 0; } static int inet6_fill_ifinfo(struct sk_buff *skb, struct inet6_dev *idev, u32 pid, u32 seq, int event, unsigned int flags) { struct net_device *dev = idev->dev; struct ifinfomsg *hdr; struct nlmsghdr *nlh; void *protoinfo; nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags); if (nlh == NULL) return -EMSGSIZE; hdr = nlmsg_data(nlh); hdr->ifi_family = AF_INET6; hdr->__ifi_pad = 0; hdr->ifi_type = dev->type; hdr->ifi_index = dev->ifindex; hdr->ifi_flags = dev_get_flags(dev); hdr->ifi_change = 0; NLA_PUT_STRING(skb, IFLA_IFNAME, dev->name); if (dev->addr_len) NLA_PUT(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr); NLA_PUT_U32(skb, IFLA_MTU, dev->mtu); if (dev->ifindex != dev->iflink) NLA_PUT_U32(skb, IFLA_LINK, dev->iflink); protoinfo = nla_nest_start(skb, IFLA_PROTINFO); if (protoinfo == NULL) goto nla_put_failure; if (inet6_fill_ifla6_attrs(skb, idev) < 0) goto nla_put_failure; nla_nest_end(skb, protoinfo); return nlmsg_end(skb, nlh); nla_put_failure: nlmsg_cancel(skb, nlh); return -EMSGSIZE; } static int inet6_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); int h, s_h; int idx = 0, s_idx; struct net_device *dev; struct inet6_dev *idev; struct hlist_head *head; struct hlist_node *node; s_h = cb->args[0]; s_idx = cb->args[1]; rcu_read_lock(); for (h = s_h; h < NETDEV_HASHENTRIES; h++, s_idx = 0) { idx = 0; head = &net->dev_index_head[h]; hlist_for_each_entry_rcu(dev, node, head, index_hlist) { if (idx < s_idx) goto cont; idev = __in6_dev_get(dev); if (!idev) goto cont; if (inet6_fill_ifinfo(skb, idev, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, RTM_NEWLINK, NLM_F_MULTI) <= 0) goto out; cont: idx++; } } out: rcu_read_unlock(); cb->args[1] = idx; cb->args[0] = h; return skb->len; } void inet6_ifinfo_notify(int event, struct inet6_dev *idev) { struct sk_buff *skb; struct net *net = dev_net(idev->dev); int err = -ENOBUFS; skb = nlmsg_new(inet6_if_nlmsg_size(), GFP_ATOMIC); if (skb == NULL) goto errout; err = inet6_fill_ifinfo(skb, idev, 0, 0, event, 0); if (err < 0) { /* -EMSGSIZE implies BUG in inet6_if_nlmsg_size() */ WARN_ON(err == -EMSGSIZE); kfree_skb(skb); goto errout; } rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFINFO, NULL, GFP_ATOMIC); return; errout: if (err < 0) rtnl_set_sk_err(net, RTNLGRP_IPV6_IFINFO, err); } static inline size_t inet6_prefix_nlmsg_size(void) { return NLMSG_ALIGN(sizeof(struct prefixmsg)) + nla_total_size(sizeof(struct in6_addr)) + nla_total_size(sizeof(struct prefix_cacheinfo)); } static int inet6_fill_prefix(struct sk_buff *skb, struct inet6_dev *idev, struct prefix_info *pinfo, u32 pid, u32 seq, int event, unsigned int flags) { struct prefixmsg *pmsg; struct nlmsghdr *nlh; struct prefix_cacheinfo ci; nlh = nlmsg_put(skb, pid, seq, event, sizeof(*pmsg), flags); if (nlh == NULL) return -EMSGSIZE; pmsg = nlmsg_data(nlh); pmsg->prefix_family = AF_INET6; pmsg->prefix_pad1 = 0; pmsg->prefix_pad2 = 0; pmsg->prefix_ifindex = idev->dev->ifindex; pmsg->prefix_len = pinfo->prefix_len; pmsg->prefix_type = pinfo->type; pmsg->prefix_pad3 = 0; pmsg->prefix_flags = 0; if (pinfo->onlink) pmsg->prefix_flags |= IF_PREFIX_ONLINK; if (pinfo->autoconf) pmsg->prefix_flags |= IF_PREFIX_AUTOCONF; NLA_PUT(skb, PREFIX_ADDRESS, sizeof(pinfo->prefix), &pinfo->prefix); ci.preferred_time = ntohl(pinfo->prefered); ci.valid_time = ntohl(pinfo->valid); NLA_PUT(skb, PREFIX_CACHEINFO, sizeof(ci), &ci); return nlmsg_end(skb, nlh); nla_put_failure: nlmsg_cancel(skb, nlh); return -EMSGSIZE; } static void inet6_prefix_notify(int event, struct inet6_dev *idev, struct prefix_info *pinfo) { struct sk_buff *skb; struct net *net = dev_net(idev->dev); int err = -ENOBUFS; skb = nlmsg_new(inet6_prefix_nlmsg_size(), GFP_ATOMIC); if (skb == NULL) goto errout; err = inet6_fill_prefix(skb, idev, pinfo, 0, 0, event, 0); if (err < 0) { /* -EMSGSIZE implies BUG in inet6_prefix_nlmsg_size() */ WARN_ON(err == -EMSGSIZE); kfree_skb(skb); goto errout; } rtnl_notify(skb, net, 0, RTNLGRP_IPV6_PREFIX, NULL, GFP_ATOMIC); return; errout: if (err < 0) rtnl_set_sk_err(net, RTNLGRP_IPV6_PREFIX, err); } static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) { inet6_ifa_notify(event ? : RTM_NEWADDR, ifp); switch (event) { case RTM_NEWADDR: /* * If the address was optimistic * we inserted the route at the start of * our DAD process, so we don't need * to do it again */ if (!(ifp->rt->rt6i_node)) ip6_ins_rt(ifp->rt); if (ifp->idev->cnf.forwarding) addrconf_join_anycast(ifp); break; case RTM_DELADDR: if (ifp->idev->cnf.forwarding) addrconf_leave_anycast(ifp); addrconf_leave_solict(ifp->idev, &ifp->addr); dst_hold(&ifp->rt->dst); if (ip6_del_rt(ifp->rt)) dst_free(&ifp->rt->dst); break; } } static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) { rcu_read_lock_bh(); if (likely(ifp->idev->dead == 0)) __ipv6_ifa_notify(event, ifp); rcu_read_unlock_bh(); } #ifdef CONFIG_SYSCTL static int addrconf_sysctl_forward(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int *valp = ctl->data; int val = *valp; loff_t pos = *ppos; ctl_table lctl; int ret; /* * ctl->data points to idev->cnf.forwarding, we should * not modify it until we get the rtnl lock. */ lctl = *ctl; lctl.data = &val; ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); if (write) ret = addrconf_fixup_forwarding(ctl, valp, val); if (ret) *ppos = pos; return ret; } static void dev_disable_change(struct inet6_dev *idev) { if (!idev || !idev->dev) return; if (idev->cnf.disable_ipv6) addrconf_notify(NULL, NETDEV_DOWN, idev->dev); else addrconf_notify(NULL, NETDEV_UP, idev->dev); } static void addrconf_disable_change(struct net *net, __s32 newf) { struct net_device *dev; struct inet6_dev *idev; rcu_read_lock(); for_each_netdev_rcu(net, dev) { idev = __in6_dev_get(dev); if (idev) { int changed = (!idev->cnf.disable_ipv6) ^ (!newf); idev->cnf.disable_ipv6 = newf; if (changed) dev_disable_change(idev); } } rcu_read_unlock(); } static int addrconf_disable_ipv6(struct ctl_table *table, int *p, int newf) { struct net *net; int old; if (!rtnl_trylock()) return restart_syscall(); net = (struct net *)table->extra2; old = *p; *p = newf; if (p == &net->ipv6.devconf_dflt->disable_ipv6) { rtnl_unlock(); return 0; } if (p == &net->ipv6.devconf_all->disable_ipv6) { net->ipv6.devconf_dflt->disable_ipv6 = newf; addrconf_disable_change(net, newf); } else if ((!newf) ^ (!old)) dev_disable_change((struct inet6_dev *)table->extra1); rtnl_unlock(); return 0; } static int addrconf_sysctl_disable(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int *valp = ctl->data; int val = *valp; loff_t pos = *ppos; ctl_table lctl; int ret; /* * ctl->data points to idev->cnf.disable_ipv6, we should * not modify it until we get the rtnl lock. */ lctl = *ctl; lctl.data = &val; ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); if (write) ret = addrconf_disable_ipv6(ctl, valp, val); if (ret) *ppos = pos; return ret; } static struct addrconf_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table addrconf_vars[DEVCONF_MAX+1]; char *dev_name; } addrconf_sysctl __read_mostly = { .sysctl_header = NULL, .addrconf_vars = { { .procname = "forwarding", .data = &ipv6_devconf.forwarding, .maxlen = sizeof(int), .mode = 0644, .proc_handler = addrconf_sysctl_forward, }, { .procname = "hop_limit", .data = &ipv6_devconf.hop_limit, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "mtu", .data = &ipv6_devconf.mtu6, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "accept_ra", .data = &ipv6_devconf.accept_ra, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "accept_redirects", .data = &ipv6_devconf.accept_redirects, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "autoconf", .data = &ipv6_devconf.autoconf, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "dad_transmits", .data = &ipv6_devconf.dad_transmits, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "router_solicitations", .data = &ipv6_devconf.rtr_solicits, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "router_solicitation_interval", .data = &ipv6_devconf.rtr_solicit_interval, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { .procname = "router_solicitation_delay", .data = &ipv6_devconf.rtr_solicit_delay, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { .procname = "force_mld_version", .data = &ipv6_devconf.force_mld_version, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #ifdef CONFIG_IPV6_PRIVACY { .procname = "use_tempaddr", .data = &ipv6_devconf.use_tempaddr, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "temp_valid_lft", .data = &ipv6_devconf.temp_valid_lft, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "temp_prefered_lft", .data = &ipv6_devconf.temp_prefered_lft, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "regen_max_retry", .data = &ipv6_devconf.regen_max_retry, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "max_desync_factor", .data = &ipv6_devconf.max_desync_factor, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #endif { .procname = "max_addresses", .data = &ipv6_devconf.max_addresses, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "accept_ra_defrtr", .data = &ipv6_devconf.accept_ra_defrtr, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "accept_ra_pinfo", .data = &ipv6_devconf.accept_ra_pinfo, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #ifdef CONFIG_IPV6_ROUTER_PREF { .procname = "accept_ra_rtr_pref", .data = &ipv6_devconf.accept_ra_rtr_pref, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "router_probe_interval", .data = &ipv6_devconf.rtr_probe_interval, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, #ifdef CONFIG_IPV6_ROUTE_INFO { .procname = "accept_ra_rt_info_max_plen", .data = &ipv6_devconf.accept_ra_rt_info_max_plen, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #endif #endif { .procname = "accept_ra_rt_table", .data = &ipv6_devconf.accept_ra_rt_table, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "proxy_ndp", .data = &ipv6_devconf.proxy_ndp, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "accept_source_route", .data = &ipv6_devconf.accept_source_route, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #ifdef CONFIG_IPV6_OPTIMISTIC_DAD { .procname = "optimistic_dad", .data = &ipv6_devconf.optimistic_dad, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "use_optimistic", .data = &ipv6_devconf.use_optimistic, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #endif #ifdef CONFIG_IPV6_MROUTE { .procname = "mc_forwarding", .data = &ipv6_devconf.mc_forwarding, .maxlen = sizeof(int), .mode = 0444, .proc_handler = proc_dointvec, }, #endif { .procname = "disable_ipv6", .data = &ipv6_devconf.disable_ipv6, .maxlen = sizeof(int), .mode = 0644, .proc_handler = addrconf_sysctl_disable, }, { .procname = "accept_dad", .data = &ipv6_devconf.accept_dad, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, { .procname = "force_tllao", .data = &ipv6_devconf.force_tllao, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec }, { .procname = "accept_ra_prefix_route", .data = &ipv6_devconf.accept_ra_prefix_route, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, }, #ifdef CONFIG_LGE_DHCPV6_WIFI { .procname = "ra_info_flag", .data = &ipv6_devconf.ra_info_flag, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec }, #endif { /* sentinel */ } }, }; static int __addrconf_sysctl_register(struct net *net, char *dev_name, struct inet6_dev *idev, struct ipv6_devconf *p) { int i; struct addrconf_sysctl_table *t; #define ADDRCONF_CTL_PATH_DEV 3 struct ctl_path addrconf_ctl_path[] = { { .procname = "net", }, { .procname = "ipv6", }, { .procname = "conf", }, { /* to be set */ }, { }, }; t = kmemdup(&addrconf_sysctl, sizeof(*t), GFP_KERNEL); if (t == NULL) goto out; for (i = 0; t->addrconf_vars[i].data; i++) { t->addrconf_vars[i].data += (char *)p - (char *)&ipv6_devconf; t->addrconf_vars[i].extra1 = idev; /* embedded; no ref */ t->addrconf_vars[i].extra2 = net; } /* * Make a copy of dev_name, because '.procname' is regarded as const * by sysctl and we wouldn't want anyone to change it under our feet * (see SIOCSIFNAME). */ t->dev_name = kstrdup(dev_name, GFP_KERNEL); if (!t->dev_name) goto free; addrconf_ctl_path[ADDRCONF_CTL_PATH_DEV].procname = t->dev_name; t->sysctl_header = register_net_sysctl_table(net, addrconf_ctl_path, t->addrconf_vars); if (t->sysctl_header == NULL) goto free_procname; p->sysctl = t; return 0; free_procname: kfree(t->dev_name); free: kfree(t); out: return -ENOBUFS; } static void __addrconf_sysctl_unregister(struct ipv6_devconf *p) { struct addrconf_sysctl_table *t; if (p->sysctl == NULL) return; t = p->sysctl; p->sysctl = NULL; unregister_net_sysctl_table(t->sysctl_header); kfree(t->dev_name); kfree(t); } static void addrconf_sysctl_register(struct inet6_dev *idev) { neigh_sysctl_register(idev->dev, idev->nd_parms, "ipv6", &ndisc_ifinfo_sysctl_change); __addrconf_sysctl_register(dev_net(idev->dev), idev->dev->name, idev, &idev->cnf); } static void addrconf_sysctl_unregister(struct inet6_dev *idev) { __addrconf_sysctl_unregister(&idev->cnf); neigh_sysctl_unregister(idev->nd_parms); } #endif static int __net_init addrconf_init_net(struct net *net) { int err = -ENOMEM; struct ipv6_devconf *all, *dflt; all = kmemdup(&ipv6_devconf, sizeof(ipv6_devconf), GFP_KERNEL); if (all == NULL) goto err_alloc_all; dflt = kmemdup(&ipv6_devconf_dflt, sizeof(ipv6_devconf_dflt), GFP_KERNEL); if (dflt == NULL) goto err_alloc_dflt; /* these will be inherited by all namespaces */ dflt->autoconf = ipv6_defaults.autoconf; dflt->disable_ipv6 = ipv6_defaults.disable_ipv6; net->ipv6.devconf_all = all; net->ipv6.devconf_dflt = dflt; #ifdef CONFIG_SYSCTL err = __addrconf_sysctl_register(net, "all", NULL, all); if (err < 0) goto err_reg_all; err = __addrconf_sysctl_register(net, "default", NULL, dflt); if (err < 0) goto err_reg_dflt; #endif return 0; #ifdef CONFIG_SYSCTL err_reg_dflt: __addrconf_sysctl_unregister(all); err_reg_all: kfree(dflt); #endif err_alloc_dflt: kfree(all); err_alloc_all: return err; } static void __net_exit addrconf_exit_net(struct net *net) { #ifdef CONFIG_SYSCTL __addrconf_sysctl_unregister(net->ipv6.devconf_dflt); __addrconf_sysctl_unregister(net->ipv6.devconf_all); #endif if (!net_eq(net, &init_net)) { kfree(net->ipv6.devconf_dflt); kfree(net->ipv6.devconf_all); } } static struct pernet_operations addrconf_ops = { .init = addrconf_init_net, .exit = addrconf_exit_net, }; /* * Device notifier */ int register_inet6addr_notifier(struct notifier_block *nb) { return atomic_notifier_chain_register(&inet6addr_chain, nb); } EXPORT_SYMBOL(register_inet6addr_notifier); int unregister_inet6addr_notifier(struct notifier_block *nb) { return atomic_notifier_chain_unregister(&inet6addr_chain, nb); } EXPORT_SYMBOL(unregister_inet6addr_notifier); static struct rtnl_af_ops inet6_ops = { .family = AF_INET6, .fill_link_af = inet6_fill_link_af, .get_link_af_size = inet6_get_link_af_size, }; /* * Init / cleanup code */ int __init addrconf_init(void) { int i, err; err = ipv6_addr_label_init(); if (err < 0) { printk(KERN_CRIT "IPv6 Addrconf:" " cannot initialize default policy table: %d.\n", err); goto out; } err = register_pernet_subsys(&addrconf_ops); if (err < 0) goto out_addrlabel; /* The addrconf netdev notifier requires that loopback_dev * has it's ipv6 private information allocated and setup * before it can bring up and give link-local addresses * to other devices which are up. * * Unfortunately, loopback_dev is not necessarily the first * entry in the global dev_base list of net devices. In fact, * it is likely to be the very last entry on that list. * So this causes the notifier registry below to try and * give link-local addresses to all devices besides loopback_dev * first, then loopback_dev, which cases all the non-loopback_dev * devices to fail to get a link-local address. * * So, as a temporary fix, allocate the ipv6 structure for * loopback_dev first by hand. * Longer term, all of the dependencies ipv6 has upon the loopback * device and it being up should be removed. */ rtnl_lock(); if (!ipv6_add_dev(init_net.loopback_dev)) err = -ENOMEM; rtnl_unlock(); if (err) goto errlo; for (i = 0; i < IN6_ADDR_HSIZE; i++) INIT_HLIST_HEAD(&inet6_addr_lst[i]); register_netdevice_notifier(&ipv6_dev_notf); addrconf_verify(0); err = rtnl_af_register(&inet6_ops); if (err < 0) goto errout_af; err = __rtnl_register(PF_INET6, RTM_GETLINK, NULL, inet6_dump_ifinfo, NULL); if (err < 0) goto errout; /* Only the first call to __rtnl_register can fail */ __rtnl_register(PF_INET6, RTM_NEWADDR, inet6_rtm_newaddr, NULL, NULL); __rtnl_register(PF_INET6, RTM_DELADDR, inet6_rtm_deladdr, NULL, NULL); __rtnl_register(PF_INET6, RTM_GETADDR, inet6_rtm_getaddr, inet6_dump_ifaddr, NULL); __rtnl_register(PF_INET6, RTM_GETMULTICAST, NULL, inet6_dump_ifmcaddr, NULL); __rtnl_register(PF_INET6, RTM_GETANYCAST, NULL, inet6_dump_ifacaddr, NULL); ipv6_addr_label_rtnl_register(); return 0; errout: rtnl_af_unregister(&inet6_ops); errout_af: unregister_netdevice_notifier(&ipv6_dev_notf); errlo: unregister_pernet_subsys(&addrconf_ops); out_addrlabel: ipv6_addr_label_cleanup(); out: return err; } void addrconf_cleanup(void) { struct net_device *dev; int i; unregister_netdevice_notifier(&ipv6_dev_notf); unregister_pernet_subsys(&addrconf_ops); ipv6_addr_label_cleanup(); rtnl_lock(); __rtnl_af_unregister(&inet6_ops); /* clean dev list */ for_each_netdev(&init_net, dev) { if (__in6_dev_get(dev) == NULL) continue; addrconf_ifdown(dev, 1); } addrconf_ifdown(init_net.loopback_dev, 2); /* * Check hash table. */ spin_lock_bh(&addrconf_hash_lock); for (i = 0; i < IN6_ADDR_HSIZE; i++) WARN_ON(!hlist_empty(&inet6_addr_lst[i])); spin_unlock_bh(&addrconf_hash_lock); del_timer(&addr_chk_timer); rtnl_unlock(); }
lawnn/Dorimanx-LG-G2-D802-Kernel
net/ipv6/addrconf.c
C
gpl-2.0
130,583
[ 30522, 1013, 1008, 1008, 12997, 2615, 2575, 4769, 1031, 8285, 1033, 9563, 1008, 11603, 1999, 3388, 2575, 7375, 1008, 1008, 6048, 1024, 1008, 7707, 20996, 4226, 1026, 20996, 4226, 1030, 4487, 1012, 4429, 1012, 17359, 1012, 13866, 1028, 1008, 4074, 3240, 13970, 2480, 22781, 4492, 1026, 13970, 2480, 7159, 1030, 5796, 2475, 1012, 1999, 2099, 1012, 9353, 1012, 21766, 1028, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 1008, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 1008, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1008, 1016, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1013, 1013, 1008, 1008, 3431, 1024, 1008, 1008, 5553, 2891, 2521, 13716, 1024, 3972, 12870, 25309, 2006, 2065, 7698, 1008, 1026, 18178, 2595, 2819, 1030, 2924, 2378, 2546, 1012, 2924, 2072, 1012, 15876, 1028, 1008, 1998, 2072, 1047, 24129, 1024, 3102, 3313, 1047, 23301, 2006, 11336, 1008, 4895, 11066, 1012, 1008, 6097, 2666, 3501, 1059, 1012, 20996, 9096, 18009, 1024, 1042, 14141, 2072, 2490, 1008, 7367, 3211, 3148, 1030, 3915, 5856, 1024, 2123, 1005, 1056, 4604, 2205, 2116, 12667, 1008, 23730, 1012, 1008, 10930, 4095, 11263, 4478, 1030, 3915, 5856, 1024, 4964, 13483, 2090, 3611, 1008, 23730, 1012, 1008, 10930, 6182, 11263, 4478, 5342, 8978, 1030, 3915, 5856, 1024, 5301, 10640, 1997, 1008, 4769, 27354, 25309, 1012, 1008, 10930, 6182, 11263, 4478, 5342, 8978, 1030, 3915, 5856, 1024, 9394, 14305, 1006, 14645, 14142, 23632, 1007, 1008, 2490, 1012, 1008, 9805, 4478, 7367, 3211, 3148, 1030, 3915, 5856, 1024, 2123, 1005, 1056, 23911, 1037, 2168, 12997, 2615, 2575, 1008, 4769, 2006, 1037, 2168, 8278, 1012, 1008, 10930, 6182, 11263, 4478, 5342, 8978, 1030, 3915, 5856, 1024, 8115, 7159, 2490, 1008, 10930, 6182, 11263, 4478, 5342, 8978, 1030, 3915, 5856, 1024, 10463, 1013, 4013, 2278, 1013, 5658, 1013, 2065, 1035, 1999, 3388, 2575, 2000, 1008, 7367, 4160, 1035, 5371, 1012, 1008, 10930, 6182, 11263, 4478, 5342, 8978, 1030, 3915, 5856, 1024, 5301, 3120, 4769, 1008, 4989, 1025, 5136, 9531, 1010, 1008, 3570, 4385, 1012, 1008, 5292, 22494, 2102, 1055, 1012, 2002, 6155, 14204, 1024, 4013, 2278, 10343, 5210, 2000, 2000, 24679, 6882, 1008, 2804, 1997, 17576, 2799, 1008, 1013, 1001, 2421, 1026, 11603, 1013, 9413, 19139, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 4127, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 16293, 1012, 1044, 1028, 1001, 30524, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 28407, 10735, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 5658, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1999, 2575, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 5658, 24844, 6610, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2065, 1035, 5587, 2099, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2065, 1035, 12098, 2361, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2065, 1035, 8115, 7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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2421, 1026, 11603, 1013, 22278, 30526 ]
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * @category Zend * @package Zend_Tool * @subpackage Framework * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id$ */ /** * @see Zend_Tool_Project_Context_Filesystem_File */ #require_once 'Zend/Tool/Project/Context/Filesystem/File.php'; /** * This class is the front most class for utilizing Zend_Tool_Project * * A profile is a hierarchical set of resources that keep track of * items within a specific project. * * @category Zend * @package Zend_Tool * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Context_Filesystem_File { /** * @var string */ protected $_forClassName = ''; /** * getName() * * @return string */ public function getName() { return 'TestLibraryFile'; } /** * init() * * @return Zend_Tool_Project_Context_Zf_TestLibraryFile */ public function init() { $this->_forClassName = $this->_resource->getAttribute('forClassName'); $this->_filesystemName = ucfirst(ltrim(strrchr($this->_forClassName, '_'), '_')) . 'Test.php'; parent::init(); return $this; } /** * getContents() * * @return string */ public function getContents() { $filter = new Zend_Filter_Word_DashToCamelCase(); $className = $filter->filter($this->_forClassName) . 'Test'; $codeGenFile = new Zend_CodeGenerator_Php_File(array( 'requiredFiles' => array( 'PHPUnit/Framework/TestCase.php' ), 'classes' => array( new Zend_CodeGenerator_Php_Class(array( 'name' => $className, 'extendedClass' => 'PHPUnit_Framework_TestCase', 'methods' => array( new Zend_CodeGenerator_Php_Method(array( 'name' => 'setUp', 'body' => ' /* Setup Routine */' )), new Zend_CodeGenerator_Php_Method(array( 'name' => 'tearDown', 'body' => ' /* Tear Down Routine */' )) ) )) ) )); return $codeGenFile->generate(); } }
T0MM0R/magento
web/lib/Zend/Tool/Project/Context/Zf/TestLibraryFile.php
PHP
gpl-2.0
3,128
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 16729, 2094, 7705, 1008, 1008, 6105, 1008, 1008, 2023, 3120, 5371, 2003, 3395, 2000, 1996, 2047, 18667, 2094, 6105, 2008, 2003, 24378, 1008, 2007, 2023, 7427, 1999, 1996, 5371, 6105, 1012, 19067, 2102, 1012, 1008, 2009, 2003, 2036, 2800, 2083, 1996, 2088, 1011, 2898, 1011, 4773, 2012, 2023, 24471, 2140, 1024, 1008, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 6105, 1013, 2047, 1011, 18667, 2094, 1008, 2065, 2017, 2106, 2025, 4374, 1037, 6100, 1997, 1996, 6105, 1998, 2024, 4039, 2000, 1008, 6855, 2009, 2083, 1996, 2088, 1011, 2898, 1011, 4773, 1010, 3531, 4604, 2019, 10373, 1008, 2000, 6105, 1030, 16729, 2094, 1012, 4012, 2061, 2057, 2064, 4604, 2017, 1037, 6100, 3202, 1012, 1008, 1008, 1030, 4696, 16729, 2094, 1008, 1030, 7427, 16729, 2094, 1035, 6994, 1008, 1030, 4942, 23947, 4270, 7705, 1008, 1030, 9385, 9385, 1006, 1039, 1007, 2384, 1011, 2297, 16729, 2094, 6786, 3915, 4297, 1012, 1006, 8299, 1024, 1013, 1013, 7479, 1012, 16729, 2094, 1012, 4012, 1007, 1008, 1030, 6105, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 6105, 1013, 2047, 1011, 18667, 2094, 2047, 18667, 2094, 6105, 1008, 1030, 2544, 1002, 8909, 1002, 1008, 1013, 1013, 1008, 1008, 1008, 1030, 2156, 16729, 2094, 1035, 6994, 1035, 2622, 1035, 6123, 1035, 6764, 27268, 6633, 1035, 5371, 1008, 1013, 1001, 5478, 1035, 30524, 27268, 6633, 1013, 5371, 1012, 25718, 1005, 1025, 1013, 1008, 1008, 1008, 2023, 2465, 2003, 1996, 2392, 2087, 2465, 2005, 16911, 16729, 2094, 1035, 6994, 1035, 2622, 1008, 1008, 1037, 6337, 2003, 1037, 25835, 2275, 1997, 4219, 2008, 2562, 2650, 1997, 1008, 5167, 2306, 1037, 3563, 2622, 1012, 1008, 1008, 1030, 4696, 16729, 2094, 1008, 1030, 7427, 16729, 2094, 1035, 6994, 1008, 1030, 9385, 9385, 1006, 1039, 1007, 2384, 1011, 2297, 16729, 2094, 6786, 3915, 4297, 1012, 1006, 8299, 1024, 1013, 1013, 7479, 1012, 16729, 2094, 1012, 4012, 1007, 1008, 1030, 6105, 8299, 1024, 1013, 1013, 7705, 1012, 16729, 2094, 1012, 4012, 1013, 6105, 1013, 2047, 1011, 18667, 2094, 2047, 18667, 2094, 6105, 1008, 1013, 2465, 16729, 2094, 1035, 6994, 1035, 2622, 1035, 6123, 1035, 1062, 2546, 1035, 3231, 29521, 19848, 2100, 8873, 2571, 8908, 16729, 2094, 1035, 6994, 1035, 2622, 1035, 6123, 1035, 6764, 27268, 6633, 1035, 5371, 1063, 1013, 1008, 1008, 1008, 1030, 13075, 5164, 1008, 1013, 5123, 1002, 1035, 2005, 26266, 18442, 1027, 1005, 1005, 1025, 1013, 1008, 1008, 1008, 2131, 18442, 1006, 1007, 1008, 1008, 1030, 2709, 5164, 1008, 1013, 2270, 3853, 2131, 18442, 1006, 1007, 1063, 2709, 1005, 3231, 29521, 19848, 2100, 8873, 2571, 1005, 1025, 1065, 1013, 1008, 1008, 1008, 1999, 4183, 1006, 1007, 1008, 1008, 1030, 2709, 16729, 2094, 1035, 6994, 1035, 2622, 1035, 6123, 1035, 1062, 2546, 1035, 3231, 29521, 19848, 2100, 8873, 2571, 1008, 1013, 2270, 3853, 1999, 4183, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 1035, 2005, 26266, 18442, 1027, 1002, 2023, 1011, 1028, 1035, 7692, 1011, 1028, 2131, 30523, 2320, 1005, 16729, 2094, 1013, 6994, 1013, 2622, 1013, 6123, 1013, 6764, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2320, 1005, 16729, 2094, 1013, 6994, 1013, 2622, 1013, 6123, 1013, 6764, 30526 ]
<!doctype html> <meta charset="utf-8"> <title>Container Queries - Style Change Event for transitions</title> <link rel="help" href="https://drafts.csswg.org/css-transitions/#starting"> <link rel="help" href="https://drafts.csswg.org/css-contain-3/#animated-containers"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="support/cq-testcommon.js"></script> <style> .container { container-type: size } #outer { width: 100px; color: green; } @container (min-width: 200px) { #inner { color: red } } @container (min-width: 400px) { #target { color: green; transition: color 1s step-start; } } </style> <div id="outer" class="container"> <div id="inner" class="container"> <div id="target">Green</div> </div> </div> </div> <script> setup(() => assert_implements_container_queries()); const t = async_test(""); const event_handler = t.step_func_done((e) => { assert_unreached("Transition event incorrectly triggered: " + e.type); }); for (let event_name of ["transitionrun", "transitionstart", "transitionend", "transitioncancel"]) { target.addEventListener(event_name, event_handler); } outer.offsetTop; // #target is green. Making the #outer container 200px will turn #inner and // #target red through inheritance. outer.style.width = "200px"; // Making #inner 400px will make #target green. inner.style.width = "400px"; // Both changes above should happen in one style change event and should not // trigger any transition events. Run two rAFs to make sure any events have // time to trigger. requestAnimationFrame(() => requestAnimationFrame(t.step_func_done(() => { assert_equals(getComputedStyle(inner).color, "rgb(255, 0, 0)", "@container queries supported"); }))); </script>
chromium/chromium
third_party/blink/web_tests/external/wpt/css/css-contain/container-queries/transition-style-change-event.html
HTML
bsd-3-clause
1,933
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 2516, 1028, 11661, 10861, 5134, 1011, 2806, 2689, 2724, 2005, 22166, 1026, 1013, 2516, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 2393, 1000, 17850, 12879, 1027, 1000, 16770, 1024, 1013, 1013, 28967, 1012, 20116, 26760, 2290, 1012, 8917, 1013, 20116, 2015, 1011, 22166, 1013, 1001, 3225, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 2393, 1000, 17850, 12879, 1027, 1000, 16770, 1024, 1013, 1013, 28967, 1012, 20116, 26760, 2290, 1012, 8917, 1013, 20116, 2015, 1011, 5383, 1011, 1017, 1013, 1001, 6579, 1011, 16143, 1000, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1013, 4219, 1013, 3231, 8167, 2791, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1013, 4219, 1013, 3231, 8167, 2791, 2890, 6442, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 2490, 1013, 1039, 4160, 1011, 3231, 9006, 8202, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 2806, 1028, 1012, 11661, 1063, 11661, 1011, 2828, 1024, 2946, 1065, 1001, 6058, 1063, 9381, 1024, 2531, 2361, 2595, 1025, 3609, 1024, 2665, 1025, 1065, 1030, 11661, 1006, 8117, 1011, 9381, 1024, 3263, 2361, 2595, 1007, 1063, 1001, 5110, 1063, 3609, 1024, 2417, 1065, 1065, 1030, 11661, 1006, 8117, 1011, 9381, 1024, 4278, 2361, 2595, 1007, 1063, 1001, 4539, 1063, 3609, 1024, 2665, 1025, 6653, 1024, 3609, 1015, 2015, 3357, 1011, 2707, 1025, 1065, 1065, 1026, 1013, 2806, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 6058, 1000, 2465, 1027, 1000, 11661, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 5110, 1000, 2465, 1027, 1000, 11661, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 4539, 1000, 1028, 2665, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 5896, 1028, 16437, 1006, 1006, 1007, 1027, 1028, 20865, 1035, 22164, 1035, 11661, 1035, 10861, 5134, 1006, 1007, 1007, 1025, 9530, 3367, 1056, 1027, 2004, 6038, 2278, 1035, 3231, 1006, 1000, 1000, 1007, 1025, 9530, 3367, 2724, 1035, 28213, 1027, 1056, 1012, 3357, 1035, 4569, 2278, 1035, 2589, 1006, 1006, 1041, 1007, 1027, 1028, 1063, 20865, 1035, 4895, 16416, 7690, 1006, 1000, 6653, 2724, 19721, 13330, 1024, 1000, 1009, 1041, 1012, 2828, 1007, 1025, 1065, 1007, 1025, 2005, 1006, 2292, 2724, 1035, 2171, 1997, 1031, 1000, 6653, 15532, 1000, 1010, 1000, 22166, 7559, 2102, 1000, 1010, 1000, 6653, 10497, 1000, 1010, 1000, 6653, 9336, 29109, 1000, 1033, 1007, 1063, 4539, 1012, 5587, 18697, 3372, 9863, 24454, 1006, 2724, 1035, 30524, 1025, 1065, 6058, 1012, 16396, 14399, 1025, 1013, 1013, 1001, 4539, 2003, 2665, 1012, 2437, 1996, 1001, 6058, 11661, 3263, 2361, 2595, 2097, 2735, 1001, 5110, 1998, 1013, 1013, 1001, 4539, 2417, 2083, 12839, 1012, 6058, 1012, 2806, 1012, 9381, 1027, 1000, 3263, 2361, 2595, 1000, 1025, 1013, 1013, 2437, 1001, 5110, 4278, 2361, 2595, 2097, 2191, 1001, 4539, 2665, 1012, 5110, 1012, 30523, 2171, 1010, 2724, 1035, 28213, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2171, 1010, 2724, 1035, 28213, 1007, 30526 ]
package org.openbase.jul.pattern.controller; /* * #%L * JUL Pattern Controller * %% * Copyright (C) 2015 - 2021 openbase.org * %% * This program 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 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-3.0.html>. * #L% */ import org.openbase.jul.iface.Configurable; import org.openbase.jul.iface.Manageable; /** * * @author <a href="mailto:[email protected]">Divine Threepwood</a> * @param <ID> the identifier type * @param <M> the data type * @param <CONFIG> the configuration type */ public interface ConfigurableController<ID, M, CONFIG> extends IdentifiableController<ID, M>, Manageable<CONFIG>, Configurable<ID, CONFIG> { }
DivineCooperation/jul
pattern/controller/src/main/java/org/openbase/jul/pattern/controller/ConfigurableController.java
Java
lgpl-3.0
1,249
[ 30522, 7427, 8917, 1012, 2330, 15058, 1012, 21650, 1012, 5418, 1012, 11486, 1025, 1013, 1008, 1008, 1001, 1003, 1048, 1008, 21650, 5418, 11486, 1008, 1003, 1003, 1008, 9385, 1006, 1039, 1007, 2325, 1011, 25682, 2330, 15058, 1012, 8917, 1008, 1003, 1003, 1008, 2023, 2565, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 1008, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 1008, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 8276, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 8276, 2270, 1008, 6105, 2247, 2007, 2023, 2565, 1012, 2065, 2025, 1010, 2156, 1008, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1048, 21600, 2140, 1011, 1017, 1012, 1014, 1012, 16129, 1028, 1012, 1008, 1001, 1048, 1003, 1008, 1013, 12324, 8917, 1012, 2330, 15058, 1012, 21650, 1012, 2065, 10732, 1012, 9530, 8873, 27390, 3085, 1025, 12324, 8917, 1012, 2330, 15058, 1012, 21650, 1012, 2065, 10732, 1012, 6133, 3085, 1025, 1013, 1008, 1008, 1008, 1008, 1030, 3166, 1026, 1037, 17850, 12879, 1027, 1000, 5653, 3406, 1024, 7746, 1030, 2330, 15058, 1012, 8917, 1000, 1028, 7746, 2093, 28400, 17139, 1026, 1013, 1037, 1028, 1008, 1030, 11498, 2213, 1026, 8909, 1028, 1996, 8909, 4765, 18095, 2828, 1008, 1030, 11498, 2213, 1026, 1049, 1028, 1996, 2951, 2828, 1008, 1030, 11498, 2213, 1026, 9530, 8873, 2290, 1028, 1996, 9563, 2828, 1008, 1013, 2270, 8278, 9530, 8873, 27390, 3085, 8663, 13181, 10820, 1026, 8909, 1010, 1049, 1010, 9530, 8873, 2290, 1028, 8908, 27800, 8663, 13181, 10820, 1026, 8909, 1010, 1049, 1028, 1010, 6133, 3085, 1026, 9530, 8873, 2290, 1028, 1010, 9530, 8873, 27390, 30524, 1063, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3085, 1026, 8909, 1010, 9530, 8873, 2290, 1028, 30526 ]
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <[email protected]> # # Copyright 2012 Zearin <[email protected]> # # Copyright 2013 AKFish <[email protected]> # # Copyright 2013 Vincent Jacques <[email protected]> # # Copyright 2014 Vincent Jacques <[email protected]> # # Copyright 2016 Jannis Gebauer <[email protected]> # # Copyright 2016 Peter Buckley <[email protected]> # # Copyright 2017 Wan Liuyang <[email protected]> # # Copyright 2018 Wan Liuyang <[email protected]> # # Copyright 2018 sfdye <[email protected]> # # # # This file is part of PyGithub. # # http://pygithub.readthedocs.io/ # # # # PyGithub 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 3 of the License, or (at your option) # # any later version. # # # # PyGithub 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 PyGithub. If not, see <http://www.gnu.org/licenses/>. # # # ################################################################################ from __future__ import absolute_import import six import github.GithubObject import github.HookResponse class Hook(github.GithubObject.CompletableGithubObject): """ This class represents Hooks. The reference can be found here http://developer.github.com/v3/repos/hooks """ def __repr__(self): return self.get__repr__({"id": self._id.value, "url": self._url.value}) @property def active(self): """ :type: bool """ self._completeIfNotSet(self._active) return self._active.value @property def config(self): """ :type: dict """ self._completeIfNotSet(self._config) return self._config.value @property def created_at(self): """ :type: datetime.datetime """ self._completeIfNotSet(self._created_at) return self._created_at.value @property def events(self): """ :type: list of string """ self._completeIfNotSet(self._events) return self._events.value @property def id(self): """ :type: integer """ self._completeIfNotSet(self._id) return self._id.value @property def last_response(self): """ :type: :class:`github.HookResponse.HookResponse` """ self._completeIfNotSet(self._last_response) return self._last_response.value @property def name(self): """ :type: string """ self._completeIfNotSet(self._name) return self._name.value @property def test_url(self): """ :type: string """ self._completeIfNotSet(self._test_url) return self._test_url.value @property def updated_at(self): """ :type: datetime.datetime """ self._completeIfNotSet(self._updated_at) return self._updated_at.value @property def url(self): """ :type: string """ self._completeIfNotSet(self._url) return self._url.value @property def ping_url(self): """ :type: string """ self._completeIfNotSet(self._ping_url) return self._ping_url.value def delete(self): """ :calls: `DELETE /repos/:owner/:repo/hooks/:id <http://developer.github.com/v3/repos/hooks>`_ :rtype: None """ headers, data = self._requester.requestJsonAndCheck("DELETE", self.url) def edit( self, name, config, events=github.GithubObject.NotSet, add_events=github.GithubObject.NotSet, remove_events=github.GithubObject.NotSet, active=github.GithubObject.NotSet, ): """ :calls: `PATCH /repos/:owner/:repo/hooks/:id <http://developer.github.com/v3/repos/hooks>`_ :param name: string :param config: dict :param events: list of string :param add_events: list of string :param remove_events: list of string :param active: bool :rtype: None """ assert isinstance(name, (str, six.text_type)), name assert isinstance(config, dict), config assert events is github.GithubObject.NotSet or all( isinstance(element, (str, six.text_type)) for element in events ), events assert add_events is github.GithubObject.NotSet or all( isinstance(element, (str, six.text_type)) for element in add_events ), add_events assert remove_events is github.GithubObject.NotSet or all( isinstance(element, (str, six.text_type)) for element in remove_events ), remove_events assert active is github.GithubObject.NotSet or isinstance(active, bool), active post_parameters = { "name": name, "config": config, } if events is not github.GithubObject.NotSet: post_parameters["events"] = events if add_events is not github.GithubObject.NotSet: post_parameters["add_events"] = add_events if remove_events is not github.GithubObject.NotSet: post_parameters["remove_events"] = remove_events if active is not github.GithubObject.NotSet: post_parameters["active"] = active headers, data = self._requester.requestJsonAndCheck( "PATCH", self.url, input=post_parameters ) self._useAttributes(data) def test(self): """ :calls: `POST /repos/:owner/:repo/hooks/:id/tests <http://developer.github.com/v3/repos/hooks>`_ :rtype: None """ headers, data = self._requester.requestJsonAndCheck("POST", self.url + "/tests") def ping(self): """ :calls: `POST /repos/:owner/:repo/hooks/:id/pings <http://developer.github.com/v3/repos/hooks>`_ :rtype: None """ headers, data = self._requester.requestJsonAndCheck("POST", self.url + "/pings") def _initAttributes(self): self._active = github.GithubObject.NotSet self._config = github.GithubObject.NotSet self._created_at = github.GithubObject.NotSet self._events = github.GithubObject.NotSet self._id = github.GithubObject.NotSet self._last_response = github.GithubObject.NotSet self._name = github.GithubObject.NotSet self._test_url = github.GithubObject.NotSet self._updated_at = github.GithubObject.NotSet self._url = github.GithubObject.NotSet self._ping_url = github.GithubObject.NotSet def _useAttributes(self, attributes): if "active" in attributes: # pragma no branch self._active = self._makeBoolAttribute(attributes["active"]) if "config" in attributes: # pragma no branch self._config = self._makeDictAttribute(attributes["config"]) if "created_at" in attributes: # pragma no branch self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) if "events" in attributes: # pragma no branch self._events = self._makeListOfStringsAttribute(attributes["events"]) if "id" in attributes: # pragma no branch self._id = self._makeIntAttribute(attributes["id"]) if "last_response" in attributes: # pragma no branch self._last_response = self._makeClassAttribute( github.HookResponse.HookResponse, attributes["last_response"] ) if "name" in attributes: # pragma no branch self._name = self._makeStringAttribute(attributes["name"]) if "test_url" in attributes: # pragma no branch self._test_url = self._makeStringAttribute(attributes["test_url"]) if "updated_at" in attributes: # pragma no branch self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) if "url" in attributes: # pragma no branch self._url = self._makeStringAttribute(attributes["url"]) if "ping_url" in attributes: # pragma no branch self._ping_url = self._makeStringAttribute(attributes["ping_url"])
pymedusa/Medusa
ext/github/Hook.py
Python
gpl-3.0
9,634
[ 30522, 1001, 1011, 1008, 1011, 16861, 1024, 21183, 2546, 1011, 1022, 1011, 1008, 1011, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 9385, 2015, 1998, 6105, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 9385, 2262, 6320, 7445, 1026, 6320, 1030, 6320, 1011, 7445, 1012, 5658, 1028, 1001, 1001, 9385, 2262, 27838, 8486, 2078, 1026, 27838, 8486, 2078, 1030, 2175, 8950, 1012, 5658, 1028, 1001, 1001, 9385, 2286, 17712, 7529, 1026, 17712, 7529, 1030, 20917, 4014, 1012, 4012, 1028, 1001, 1001, 9385, 2286, 6320, 7445, 1026, 6320, 1030, 6320, 1011, 7445, 1012, 5658, 1028, 1001, 1001, 9385, 2297, 6320, 7445, 1026, 6320, 1030, 6320, 1011, 7445, 1012, 5658, 1028, 1001, 1001, 9385, 2355, 5553, 8977, 16216, 27773, 2121, 1026, 14855, 1012, 16216, 2497, 1030, 2033, 1012, 4012, 1028, 1001, 1001, 9385, 2355, 2848, 17898, 1026, 1040, 2595, 1011, 1052, 24204, 3051, 1030, 5198, 1012, 4496, 13699, 2135, 1012, 21025, 2705, 12083, 1012, 4012, 1028, 1001, 1001, 9385, 2418, 14071, 8607, 12198, 1026, 24529, 2546, 5149, 2063, 1030, 20917, 4014, 1012, 4012, 1028, 1001, 1001, 9385, 2760, 14071, 8607, 12198, 1026, 24529, 2546, 5149, 2063, 1030, 20917, 4014, 1012, 4012, 1028, 1001, 1001, 9385, 2760, 16420, 5149, 2063, 1026, 24529, 2546, 5149, 2063, 1030, 20917, 4014, 1012, 4012, 1028, 1001, 1001, 1001, 1001, 2023, 5371, 2003, 2112, 1997, 1052, 2100, 23806, 6979, 2497, 1012, 1001, 1001, 8299, 1024, 1013, 1013, 1052, 2100, 23806, 6979, 2497, 1012, 3191, 23816, 10085, 2015, 1012, 22834, 1013, 1001, 1001, 1001, 1001, 1052, 2100, 23806, 6979, 2497, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1001, 1001, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 2405, 2011, 30524, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 1001, 1001, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 1001, 1001, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 8276, 2236, 2270, 6105, 2005, 2062, 1001, 1001, 4751, 1012, 1001, 1001, 1001, 1001, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 1001, 1001, 2247, 2007, 1052, 2100, 23806, 6979, 2497, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 30523, 1996, 2489, 1001, 1001, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 1001, 1001, 2151, 2101, 2544, 1012, 1001, 1001, 1001, 1001, 1052, 2100, 23806, 6979, 2497, 2003, 5500, 1999, 1996, 3246, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1996, 2489, 1001, 1001, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 1001, 1001, 2151, 2101, 2544, 1012, 1001, 1001, 1001, 1001, 1052, 2100, 23806, 6979, 2497, 2003, 5500, 1999, 1996, 3246, 30526 ]
/* * fs/nfs/nfs4state.c * * Client-side XDR for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <[email protected]> * * 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 University 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 ``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 REGENTS 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. * * Implementation of the NFSv4 state model. For the time being, * this is minimal, but will be made much more complex in a * subsequent patch. */ #include <linux/config.h> #include <linux/slab.h> #include <linux/smp_lock.h> #include <linux/nfs_fs.h> #include <linux/nfs_idmap.h> #include <linux/workqueue.h> #include <linux/bitops.h> #include "nfs4_fs.h" #include "callback.h" #include "delegation.h" #define OPENOWNER_POOL_SIZE 8 const nfs4_stateid zero_stateid; static DEFINE_SPINLOCK(state_spinlock); static LIST_HEAD(nfs4_clientid_list); static void nfs4_recover_state(void *); void init_nfsv4_state(struct nfs_server *server) { server->nfs4_state = NULL; INIT_LIST_HEAD(&server->nfs4_siblings); } void destroy_nfsv4_state(struct nfs_server *server) { if (server->mnt_path) { kfree(server->mnt_path); server->mnt_path = NULL; } if (server->nfs4_state) { nfs4_put_client(server->nfs4_state); server->nfs4_state = NULL; } } /* * nfs4_get_client(): returns an empty client structure * nfs4_put_client(): drops reference to client structure * * Since these are allocated/deallocated very rarely, we don't * bother putting them in a slab cache... */ static struct nfs4_client * nfs4_alloc_client(struct in_addr *addr) { struct nfs4_client *clp; if (nfs_callback_up() < 0) return NULL; if ((clp = kmalloc(sizeof(*clp), GFP_KERNEL)) == NULL) { nfs_callback_down(); return NULL; } memset(clp, 0, sizeof(*clp)); memcpy(&clp->cl_addr, addr, sizeof(clp->cl_addr)); init_rwsem(&clp->cl_sem); INIT_LIST_HEAD(&clp->cl_delegations); INIT_LIST_HEAD(&clp->cl_state_owners); INIT_LIST_HEAD(&clp->cl_unused); spin_lock_init(&clp->cl_lock); atomic_set(&clp->cl_count, 1); INIT_WORK(&clp->cl_recoverd, nfs4_recover_state, clp); INIT_WORK(&clp->cl_renewd, nfs4_renew_state, clp); INIT_LIST_HEAD(&clp->cl_superblocks); init_waitqueue_head(&clp->cl_waitq); rpc_init_wait_queue(&clp->cl_rpcwaitq, "NFS4 client"); clp->cl_rpcclient = ERR_PTR(-EINVAL); clp->cl_boot_time = CURRENT_TIME; clp->cl_state = 1 << NFS4CLNT_OK; return clp; } static void nfs4_free_client(struct nfs4_client *clp) { struct nfs4_state_owner *sp; while (!list_empty(&clp->cl_unused)) { sp = list_entry(clp->cl_unused.next, struct nfs4_state_owner, so_list); list_del(&sp->so_list); kfree(sp); } BUG_ON(!list_empty(&clp->cl_state_owners)); if (clp->cl_cred) put_rpccred(clp->cl_cred); nfs_idmap_delete(clp); if (!IS_ERR(clp->cl_rpcclient)) rpc_shutdown_client(clp->cl_rpcclient); kfree(clp); nfs_callback_down(); } static struct nfs4_client *__nfs4_find_client(struct in_addr *addr) { struct nfs4_client *clp; list_for_each_entry(clp, &nfs4_clientid_list, cl_servers) { if (memcmp(&clp->cl_addr, addr, sizeof(clp->cl_addr)) == 0) { atomic_inc(&clp->cl_count); return clp; } } return NULL; } struct nfs4_client *nfs4_find_client(struct in_addr *addr) { struct nfs4_client *clp; spin_lock(&state_spinlock); clp = __nfs4_find_client(addr); spin_unlock(&state_spinlock); return clp; } struct nfs4_client * nfs4_get_client(struct in_addr *addr) { struct nfs4_client *clp, *new = NULL; spin_lock(&state_spinlock); for (;;) { clp = __nfs4_find_client(addr); if (clp != NULL) break; clp = new; if (clp != NULL) { list_add(&clp->cl_servers, &nfs4_clientid_list); new = NULL; break; } spin_unlock(&state_spinlock); new = nfs4_alloc_client(addr); spin_lock(&state_spinlock); if (new == NULL) break; } spin_unlock(&state_spinlock); if (new) nfs4_free_client(new); return clp; } void nfs4_put_client(struct nfs4_client *clp) { if (!atomic_dec_and_lock(&clp->cl_count, &state_spinlock)) return; list_del(&clp->cl_servers); spin_unlock(&state_spinlock); BUG_ON(!list_empty(&clp->cl_superblocks)); wake_up_all(&clp->cl_waitq); rpc_wake_up(&clp->cl_rpcwaitq); nfs4_kill_renewd(clp); nfs4_free_client(clp); } static int __nfs4_init_client(struct nfs4_client *clp) { int status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, nfs_callback_tcpport); if (status == 0) status = nfs4_proc_setclientid_confirm(clp); if (status == 0) nfs4_schedule_state_renewal(clp); return status; } int nfs4_init_client(struct nfs4_client *clp) { return nfs4_map_errors(__nfs4_init_client(clp)); } u32 nfs4_alloc_lockowner_id(struct nfs4_client *clp) { return clp->cl_lockowner_id ++; } static struct nfs4_state_owner * nfs4_client_grab_unused(struct nfs4_client *clp, struct rpc_cred *cred) { struct nfs4_state_owner *sp = NULL; if (!list_empty(&clp->cl_unused)) { sp = list_entry(clp->cl_unused.next, struct nfs4_state_owner, so_list); atomic_inc(&sp->so_count); sp->so_cred = cred; list_move(&sp->so_list, &clp->cl_state_owners); clp->cl_nunused--; } return sp; } static struct nfs4_state_owner * nfs4_find_state_owner(struct nfs4_client *clp, struct rpc_cred *cred) { struct nfs4_state_owner *sp, *res = NULL; list_for_each_entry(sp, &clp->cl_state_owners, so_list) { if (sp->so_cred != cred) continue; atomic_inc(&sp->so_count); /* Move to the head of the list */ list_move(&sp->so_list, &clp->cl_state_owners); res = sp; break; } return res; } /* * nfs4_alloc_state_owner(): this is called on the OPEN or CREATE path to * create a new state_owner. * */ static struct nfs4_state_owner * nfs4_alloc_state_owner(void) { struct nfs4_state_owner *sp; sp = kmalloc(sizeof(*sp),GFP_KERNEL); if (!sp) return NULL; init_MUTEX(&sp->so_sema); sp->so_seqid = 0; /* arbitrary */ INIT_LIST_HEAD(&sp->so_states); INIT_LIST_HEAD(&sp->so_delegations); atomic_set(&sp->so_count, 1); return sp; } void nfs4_drop_state_owner(struct nfs4_state_owner *sp) { struct nfs4_client *clp = sp->so_client; spin_lock(&clp->cl_lock); list_del_init(&sp->so_list); spin_unlock(&clp->cl_lock); } /* * Note: must be called with clp->cl_sem held in order to prevent races * with reboot recovery! */ struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, struct rpc_cred *cred) { struct nfs4_client *clp = server->nfs4_state; struct nfs4_state_owner *sp, *new; get_rpccred(cred); new = nfs4_alloc_state_owner(); spin_lock(&clp->cl_lock); sp = nfs4_find_state_owner(clp, cred); if (sp == NULL) sp = nfs4_client_grab_unused(clp, cred); if (sp == NULL && new != NULL) { list_add(&new->so_list, &clp->cl_state_owners); new->so_client = clp; new->so_id = nfs4_alloc_lockowner_id(clp); new->so_cred = cred; sp = new; new = NULL; } spin_unlock(&clp->cl_lock); if (new) kfree(new); if (sp != NULL) return sp; put_rpccred(cred); return NULL; } /* * Must be called with clp->cl_sem held in order to avoid races * with state recovery... */ void nfs4_put_state_owner(struct nfs4_state_owner *sp) { struct nfs4_client *clp = sp->so_client; struct rpc_cred *cred = sp->so_cred; if (!atomic_dec_and_lock(&sp->so_count, &clp->cl_lock)) return; if (clp->cl_nunused >= OPENOWNER_POOL_SIZE) goto out_free; if (list_empty(&sp->so_list)) goto out_free; list_move(&sp->so_list, &clp->cl_unused); clp->cl_nunused++; spin_unlock(&clp->cl_lock); put_rpccred(cred); cred = NULL; return; out_free: list_del(&sp->so_list); spin_unlock(&clp->cl_lock); put_rpccred(cred); kfree(sp); } static struct nfs4_state * nfs4_alloc_open_state(void) { struct nfs4_state *state; state = kmalloc(sizeof(*state), GFP_KERNEL); if (!state) return NULL; state->state = 0; state->nreaders = 0; state->nwriters = 0; state->flags = 0; memset(state->stateid.data, 0, sizeof(state->stateid.data)); atomic_set(&state->count, 1); INIT_LIST_HEAD(&state->lock_states); init_MUTEX(&state->lock_sema); spin_lock_init(&state->state_lock); return state; } static struct nfs4_state * __nfs4_find_state(struct inode *inode, struct rpc_cred *cred, mode_t mode) { struct nfs_inode *nfsi = NFS_I(inode); struct nfs4_state *state; mode &= (FMODE_READ|FMODE_WRITE); list_for_each_entry(state, &nfsi->open_states, inode_states) { if (state->owner->so_cred != cred) continue; if ((mode & FMODE_READ) != 0 && state->nreaders == 0) continue; if ((mode & FMODE_WRITE) != 0 && state->nwriters == 0) continue; if ((state->state & mode) != mode) continue; atomic_inc(&state->count); if (mode & FMODE_READ) state->nreaders++; if (mode & FMODE_WRITE) state->nwriters++; return state; } return NULL; } static struct nfs4_state * __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) { struct nfs_inode *nfsi = NFS_I(inode); struct nfs4_state *state; list_for_each_entry(state, &nfsi->open_states, inode_states) { /* Is this in the process of being freed? */ if (state->nreaders == 0 && state->nwriters == 0) continue; if (state->owner == owner) { atomic_inc(&state->count); return state; } } return NULL; } struct nfs4_state * nfs4_find_state(struct inode *inode, struct rpc_cred *cred, mode_t mode) { struct nfs4_state *state; spin_lock(&inode->i_lock); state = __nfs4_find_state(inode, cred, mode); spin_unlock(&inode->i_lock); return state; } static void nfs4_free_open_state(struct nfs4_state *state) { kfree(state); } struct nfs4_state * nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner) { struct nfs4_state *state, *new; struct nfs_inode *nfsi = NFS_I(inode); spin_lock(&inode->i_lock); state = __nfs4_find_state_byowner(inode, owner); spin_unlock(&inode->i_lock); if (state) goto out; new = nfs4_alloc_open_state(); spin_lock(&inode->i_lock); state = __nfs4_find_state_byowner(inode, owner); if (state == NULL && new != NULL) { state = new; /* Caller *must* be holding owner->so_sem */ /* Note: The reclaim code dictates that we add stateless * and read-only stateids to the end of the list */ list_add_tail(&state->open_states, &owner->so_states); state->owner = owner; atomic_inc(&owner->so_count); list_add(&state->inode_states, &nfsi->open_states); state->inode = igrab(inode); spin_unlock(&inode->i_lock); } else { spin_unlock(&inode->i_lock); if (new) nfs4_free_open_state(new); } out: return state; } /* * Beware! Caller must be holding exactly one * reference to clp->cl_sem and owner->so_sema! */ void nfs4_put_open_state(struct nfs4_state *state) { struct inode *inode = state->inode; struct nfs4_state_owner *owner = state->owner; if (!atomic_dec_and_lock(&state->count, &inode->i_lock)) return; if (!list_empty(&state->inode_states)) list_del(&state->inode_states); spin_unlock(&inode->i_lock); list_del(&state->open_states); iput(inode); BUG_ON (state->state != 0); nfs4_free_open_state(state); nfs4_put_state_owner(owner); } /* * Beware! Caller must be holding no references to clp->cl_sem! * of owner->so_sema! */ void nfs4_close_state(struct nfs4_state *state, mode_t mode) { struct inode *inode = state->inode; struct nfs4_state_owner *owner = state->owner; struct nfs4_client *clp = owner->so_client; int newstate; atomic_inc(&owner->so_count); down_read(&clp->cl_sem); down(&owner->so_sema); /* Protect against nfs4_find_state() */ spin_lock(&inode->i_lock); if (mode & FMODE_READ) state->nreaders--; if (mode & FMODE_WRITE) state->nwriters--; if (state->nwriters == 0) { if (state->nreaders == 0) list_del_init(&state->inode_states); /* See reclaim code */ list_move_tail(&state->open_states, &owner->so_states); } spin_unlock(&inode->i_lock); newstate = 0; if (state->state != 0) { if (state->nreaders) newstate |= FMODE_READ; if (state->nwriters) newstate |= FMODE_WRITE; if (state->state == newstate) goto out; if (nfs4_do_close(inode, state, newstate) == -EINPROGRESS) return; } out: nfs4_put_open_state(state); up(&owner->so_sema); nfs4_put_state_owner(owner); up_read(&clp->cl_sem); } /* * Search the state->lock_states for an existing lock_owner * that is compatible with current->files */ static struct nfs4_lock_state * __nfs4_find_lock_state(struct nfs4_state *state, fl_owner_t fl_owner) { struct nfs4_lock_state *pos; list_for_each_entry(pos, &state->lock_states, ls_locks) { if (pos->ls_owner != fl_owner) continue; atomic_inc(&pos->ls_count); return pos; } return NULL; } /* * Return a compatible lock_state. If no initialized lock_state structure * exists, return an uninitialized one. * * The caller must be holding state->lock_sema */ static struct nfs4_lock_state *nfs4_alloc_lock_state(struct nfs4_state *state, fl_owner_t fl_owner) { struct nfs4_lock_state *lsp; struct nfs4_client *clp = state->owner->so_client; lsp = kmalloc(sizeof(*lsp), GFP_KERNEL); if (lsp == NULL) return NULL; lsp->ls_flags = 0; lsp->ls_seqid = 0; /* arbitrary */ memset(lsp->ls_stateid.data, 0, sizeof(lsp->ls_stateid.data)); atomic_set(&lsp->ls_count, 1); lsp->ls_owner = fl_owner; spin_lock(&clp->cl_lock); lsp->ls_id = nfs4_alloc_lockowner_id(clp); spin_unlock(&clp->cl_lock); INIT_LIST_HEAD(&lsp->ls_locks); return lsp; } /* * Return a compatible lock_state. If no initialized lock_state structure * exists, return an uninitialized one. * * The caller must be holding state->lock_sema and clp->cl_sem */ static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner) { struct nfs4_lock_state *lsp, *new = NULL; for(;;) { spin_lock(&state->state_lock); lsp = __nfs4_find_lock_state(state, owner); if (lsp != NULL) break; if (new != NULL) { new->ls_state = state; list_add(&new->ls_locks, &state->lock_states); set_bit(LK_STATE_IN_USE, &state->flags); lsp = new; new = NULL; break; } spin_unlock(&state->state_lock); new = nfs4_alloc_lock_state(state, owner); if (new == NULL) return NULL; } spin_unlock(&state->state_lock); kfree(new); return lsp; } /* * Release reference to lock_state, and free it if we see that * it is no longer in use */ static void nfs4_put_lock_state(struct nfs4_lock_state *lsp) { struct nfs4_state *state; if (lsp == NULL) return; state = lsp->ls_state; if (!atomic_dec_and_lock(&lsp->ls_count, &state->state_lock)) return; list_del(&lsp->ls_locks); if (list_empty(&state->lock_states)) clear_bit(LK_STATE_IN_USE, &state->flags); spin_unlock(&state->state_lock); kfree(lsp); } static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src) { struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner; dst->fl_u.nfs4_fl.owner = lsp; atomic_inc(&lsp->ls_count); } static void nfs4_fl_release_lock(struct file_lock *fl) { nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner); } static struct file_lock_operations nfs4_fl_lock_ops = { .fl_copy_lock = nfs4_fl_copy_lock, .fl_release_private = nfs4_fl_release_lock, }; int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl) { struct nfs4_lock_state *lsp; if (fl->fl_ops != NULL) return 0; lsp = nfs4_get_lock_state(state, fl->fl_owner); if (lsp == NULL) return -ENOMEM; fl->fl_u.nfs4_fl.owner = lsp; fl->fl_ops = &nfs4_fl_lock_ops; return 0; } /* * Byte-range lock aware utility to initialize the stateid of read/write * requests. */ void nfs4_copy_stateid(nfs4_stateid *dst, struct nfs4_state *state, fl_owner_t fl_owner) { struct nfs4_lock_state *lsp; memcpy(dst, &state->stateid, sizeof(*dst)); if (test_bit(LK_STATE_IN_USE, &state->flags) == 0) return; spin_lock(&state->state_lock); lsp = __nfs4_find_lock_state(state, fl_owner); if (lsp != NULL && (lsp->ls_flags & NFS_LOCK_INITIALIZED) != 0) memcpy(dst, &lsp->ls_stateid, sizeof(*dst)); spin_unlock(&state->state_lock); nfs4_put_lock_state(lsp); } /* * Called with state->lock_sema and clp->cl_sem held. */ void nfs4_increment_lock_seqid(int status, struct nfs4_lock_state *lsp) { if (status == NFS_OK || seqid_mutating_err(-status)) lsp->ls_seqid++; } /* * Called with sp->so_sema and clp->cl_sem held. * * Increment the seqid if the OPEN/OPEN_DOWNGRADE/CLOSE succeeded, or * failed with a seqid incrementing error - * see comments nfs_fs.h:seqid_mutating_error() */ void nfs4_increment_seqid(int status, struct nfs4_state_owner *sp) { if (status == NFS_OK || seqid_mutating_err(-status)) sp->so_seqid++; /* If the server returns BAD_SEQID, unhash state_owner here */ if (status == -NFS4ERR_BAD_SEQID) nfs4_drop_state_owner(sp); } static int reclaimer(void *); struct reclaimer_args { struct nfs4_client *clp; struct completion complete; }; /* * State recovery routine */ void nfs4_recover_state(void *data) { struct nfs4_client *clp = (struct nfs4_client *)data; struct reclaimer_args args = { .clp = clp, }; might_sleep(); init_completion(&args.complete); if (kernel_thread(reclaimer, &args, CLONE_KERNEL) < 0) goto out_failed_clear; wait_for_completion(&args.complete); return; out_failed_clear: set_bit(NFS4CLNT_OK, &clp->cl_state); wake_up_all(&clp->cl_waitq); rpc_wake_up(&clp->cl_rpcwaitq); } /* * Schedule a state recovery attempt */ void nfs4_schedule_state_recovery(struct nfs4_client *clp) { if (!clp) return; if (test_and_clear_bit(NFS4CLNT_OK, &clp->cl_state)) schedule_work(&clp->cl_recoverd); } static int nfs4_reclaim_locks(struct nfs4_state_recovery_ops *ops, struct nfs4_state *state) { struct inode *inode = state->inode; struct file_lock *fl; int status = 0; for (fl = inode->i_flock; fl != 0; fl = fl->fl_next) { if (!(fl->fl_flags & FL_POSIX)) continue; if (((struct nfs_open_context *)fl->fl_file->private_data)->state != state) continue; status = ops->recover_lock(state, fl); if (status >= 0) continue; switch (status) { default: printk(KERN_ERR "%s: unhandled error %d. Zeroing state\n", __FUNCTION__, status); case -NFS4ERR_EXPIRED: case -NFS4ERR_NO_GRACE: case -NFS4ERR_RECLAIM_BAD: case -NFS4ERR_RECLAIM_CONFLICT: /* kill_proc(fl->fl_owner, SIGLOST, 1); */ break; case -NFS4ERR_STALE_CLIENTID: goto out_err; } } return 0; out_err: return status; } static int nfs4_reclaim_open_state(struct nfs4_state_recovery_ops *ops, struct nfs4_state_owner *sp) { struct nfs4_state *state; struct nfs4_lock_state *lock; int status = 0; /* Note: we rely on the sp->so_states list being ordered * so that we always reclaim open(O_RDWR) and/or open(O_WRITE) * states first. * This is needed to ensure that the server won't give us any * read delegations that we have to return if, say, we are * recovering after a network partition or a reboot from a * server that doesn't support a grace period. */ list_for_each_entry(state, &sp->so_states, open_states) { if (state->state == 0) continue; status = ops->recover_open(sp, state); list_for_each_entry(lock, &state->lock_states, ls_locks) lock->ls_flags &= ~NFS_LOCK_INITIALIZED; if (status >= 0) { status = nfs4_reclaim_locks(ops, state); if (status < 0) goto out_err; list_for_each_entry(lock, &state->lock_states, ls_locks) { if (!(lock->ls_flags & NFS_LOCK_INITIALIZED)) printk("%s: Lock reclaim failed!\n", __FUNCTION__); } continue; } switch (status) { default: printk(KERN_ERR "%s: unhandled error %d. Zeroing state\n", __FUNCTION__, status); case -ENOENT: case -NFS4ERR_RECLAIM_BAD: case -NFS4ERR_RECLAIM_CONFLICT: /* * Open state on this file cannot be recovered * All we can do is revert to using the zero stateid. */ memset(state->stateid.data, 0, sizeof(state->stateid.data)); /* Mark the file as being 'closed' */ state->state = 0; break; case -NFS4ERR_EXPIRED: case -NFS4ERR_NO_GRACE: case -NFS4ERR_STALE_CLIENTID: goto out_err; } } return 0; out_err: return status; } static int reclaimer(void *ptr) { struct reclaimer_args *args = (struct reclaimer_args *)ptr; struct nfs4_client *clp = args->clp; struct nfs4_state_owner *sp; struct nfs4_state_recovery_ops *ops; int status = 0; daemonize("%u.%u.%u.%u-reclaim", NIPQUAD(clp->cl_addr)); allow_signal(SIGKILL); atomic_inc(&clp->cl_count); complete(&args->complete); /* Ensure exclusive access to NFSv4 state */ lock_kernel(); down_write(&clp->cl_sem); /* Are there any NFS mounts out there? */ if (list_empty(&clp->cl_superblocks)) goto out; restart_loop: status = nfs4_proc_renew(clp); switch (status) { case 0: case -NFS4ERR_CB_PATH_DOWN: goto out; case -NFS4ERR_STALE_CLIENTID: case -NFS4ERR_LEASE_MOVED: ops = &nfs4_reboot_recovery_ops; break; default: ops = &nfs4_network_partition_recovery_ops; }; status = __nfs4_init_client(clp); if (status) goto out_error; /* Mark all delegations for reclaim */ nfs_delegation_mark_reclaim(clp); /* Note: list is protected by exclusive lock on cl->cl_sem */ list_for_each_entry(sp, &clp->cl_state_owners, so_list) { status = nfs4_reclaim_open_state(ops, sp); if (status < 0) { if (status == -NFS4ERR_NO_GRACE) { ops = &nfs4_network_partition_recovery_ops; status = nfs4_reclaim_open_state(ops, sp); } if (status == -NFS4ERR_STALE_CLIENTID) goto restart_loop; if (status == -NFS4ERR_EXPIRED) goto restart_loop; } } nfs_delegation_reap_unclaimed(clp); out: set_bit(NFS4CLNT_OK, &clp->cl_state); up_write(&clp->cl_sem); unlock_kernel(); wake_up_all(&clp->cl_waitq); rpc_wake_up(&clp->cl_rpcwaitq); if (status == -NFS4ERR_CB_PATH_DOWN) nfs_handle_cb_pathdown(clp); nfs4_put_client(clp); return 0; out_error: printk(KERN_WARNING "Error: state recovery failed on NFSv4 server %u.%u.%u.%u with error %d\n", NIPQUAD(clp->cl_addr.s_addr), -status); goto out; } /* * Local variables: * c-basic-offset: 8 * End: */
ipwndev/DSLinux-Mirror
linux-2.6.x/fs/nfs/nfs4state.c
C
gpl-2.0
23,292
[ 30522, 1013, 1008, 1008, 1042, 2015, 1013, 1050, 10343, 1013, 1050, 10343, 2549, 9153, 2618, 1012, 1039, 1008, 1008, 7396, 1011, 2217, 1060, 13626, 2005, 1050, 10343, 2615, 2549, 1012, 1008, 1008, 9385, 1006, 1039, 1007, 2526, 1996, 22832, 1997, 1996, 2118, 1997, 4174, 1012, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 25341, 3044, 1026, 2463, 21405, 1030, 8529, 7033, 1012, 3968, 2226, 1028, 1008, 1008, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 30524, 1012, 1008, 1016, 1012, 25707, 2015, 1999, 12441, 2433, 2442, 21376, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1999, 1996, 1008, 12653, 1998, 1013, 2030, 2060, 4475, 3024, 2007, 1996, 4353, 1012, 1008, 1017, 1012, 4445, 1996, 2171, 1997, 1996, 2118, 4496, 1996, 3415, 1997, 2049, 1008, 16884, 2089, 2022, 2109, 2000, 2203, 5668, 2063, 2030, 5326, 3688, 5173, 1008, 2013, 2023, 4007, 2302, 3563, 3188, 2517, 6656, 1012, 1008, 1008, 2023, 4007, 2003, 3024, 1036, 1036, 2004, 2003, 1005, 1005, 1998, 2151, 4671, 2030, 13339, 1008, 10943, 3111, 1010, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 1996, 13339, 10943, 3111, 1997, 1008, 6432, 8010, 1998, 10516, 2005, 1037, 3327, 3800, 2024, 1008, 5860, 19771, 7583, 1012, 1999, 2053, 2724, 4618, 1996, 22832, 2030, 16884, 2022, 20090, 1008, 2005, 2151, 3622, 1010, 14958, 1010, 5043, 2389, 1010, 2569, 1010, 27792, 1010, 2030, 1008, 9530, 3366, 15417, 4818, 12394, 1006, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 21423, 1997, 1008, 7681, 5350, 2030, 2578, 1025, 3279, 1997, 2224, 1010, 2951, 1010, 2030, 11372, 1025, 2030, 1008, 2449, 24191, 1007, 2174, 3303, 1998, 2006, 2151, 3399, 1997, 1008, 14000, 1010, 3251, 1999, 3206, 1010, 9384, 14000, 1010, 2030, 17153, 2102, 1006, 2164, 1008, 27988, 2030, 4728, 1007, 17707, 1999, 2151, 2126, 2041, 1997, 1996, 2224, 1997, 2023, 1008, 4007, 1010, 2130, 2065, 9449, 1997, 1996, 6061, 1997, 2107, 4053, 1012, 1008, 1008, 7375, 1997, 1996, 1050, 10343, 2615, 2549, 2110, 2944, 1012, 2005, 1996, 2051, 2108, 1010, 1008, 2023, 2003, 10124, 1010, 2021, 2097, 2022, 2081, 2172, 2062, 3375, 1999, 1037, 1008, 4745, 8983, 1012, 1008, 1013, 1001, 2421, 1026, 11603, 1013, 9530, 8873, 2290, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 17584, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 15488, 2361, 1035, 5843, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1050, 10343, 1035, 1042, 2015, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1050, 10343, 1035, 8909, 2863, 2361, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2147, 4226, 5657, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2978, 11923, 1012, 1044, 1028, 1001, 2421, 1000, 1050, 10343, 2549, 1035, 1042, 2015, 1012, 1044, 1000, 1001, 2421, 1000, 2655, 5963, 1012, 1044, 1000, 1001, 2421, 1000, 10656, 1012, 1044, 30523, 1010, 2007, 2030, 2302, 1008, 14080, 1010, 2024, 7936, 3024, 2008, 1996, 2206, 3785, 1008, 2024, 2777, 1024, 1008, 1008, 1015, 1012, 25707, 2015, 1997, 3120, 3642, 2442, 9279, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1010, 2007, 2030, 2302, 1008, 14080, 1010, 2024, 7936, 3024, 2008, 1996, 2206, 3785, 1008, 2024, 2777, 1024, 1008, 1008, 1015, 1012, 25707, 2015, 1997, 3120, 3642, 2442, 9279, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 30526 ]
// This file is part of fityk program. Copyright 2001-2013 Marcin Wojdyr // Licence: GNU General Public License ver. 2+ /// wrapper around MPFIT (cmpfit) library, /// http://www.physics.wisc.edu/~craigm/idl/cmpfit.html /// which is Levenberg-Marquardt implementation based on MINPACK-1 #ifndef FITYK_MPFIT_H_ #define FITYK_MPFIT_H_ #include "fit.h" #include "cmpfit/mpfit.h" namespace fityk { /// Wrapper around CMPFIT class MPfit : public Fit { public: MPfit(Full* F, const char* fname) : Fit(F, fname) {} virtual double run_method(std::vector<realt>* best_a); // implementation (must be public to be called inside callback function) int calculate(int m, int npar, double *par, double *deviates, double **derivs); int on_iteration(); virtual std::vector<double> get_covariance_matrix(const std::vector<Data*>& datas); virtual std::vector<double> get_standard_errors(const std::vector<Data*>& datas); private: mp_config_struct mp_conf_; mp_result result_; int run_mpfit(const std::vector<Data*>& datas, const std::vector<realt>& parameters, const std::vector<bool>& param_usage, double *final_a=NULL); }; } // namespace fityk #endif
wojdyr/fityk
fityk/CMPfit.h
C
gpl-2.0
1,270
[ 30522, 1013, 1013, 2023, 5371, 2003, 2112, 1997, 4906, 15922, 2565, 1012, 9385, 2541, 1011, 2286, 7871, 2378, 24185, 3501, 5149, 2099, 1013, 1013, 11172, 1024, 27004, 2236, 2270, 6105, 2310, 2099, 1012, 1016, 1009, 1013, 1013, 1013, 10236, 4842, 2105, 6131, 8873, 2102, 1006, 4642, 14376, 4183, 1007, 3075, 1010, 1013, 1013, 1013, 8299, 1024, 1013, 1013, 7479, 1012, 5584, 1012, 15536, 11020, 1012, 3968, 2226, 1013, 1066, 7010, 2213, 1013, 8909, 2140, 1013, 4642, 14376, 4183, 1012, 16129, 1013, 1013, 1013, 2029, 2003, 23310, 11029, 1011, 9388, 16211, 4103, 2102, 7375, 2241, 2006, 8117, 23947, 1011, 1015, 1001, 2065, 13629, 2546, 4906, 15922, 1035, 6131, 8873, 2102, 1035, 1044, 1035, 1001, 9375, 4906, 15922, 1035, 6131, 30524, 2270, 1024, 6131, 8873, 2102, 1006, 2440, 1008, 1042, 1010, 9530, 3367, 25869, 1008, 1042, 18442, 1007, 1024, 4906, 1006, 1042, 1010, 1042, 18442, 1007, 1063, 1065, 7484, 3313, 2448, 1035, 4118, 1006, 2358, 2094, 1024, 1024, 9207, 1026, 2613, 2102, 1028, 1008, 2190, 1035, 1037, 1007, 1025, 1013, 1013, 7375, 1006, 2442, 2022, 2270, 2000, 2022, 2170, 2503, 2655, 5963, 3853, 1007, 20014, 18422, 1006, 20014, 1049, 1010, 20014, 27937, 2906, 1010, 3313, 1008, 11968, 1010, 3313, 1008, 14386, 8520, 1010, 3313, 1008, 1008, 4315, 12848, 2015, 1007, 1025, 20014, 2006, 1035, 27758, 1006, 1007, 1025, 7484, 2358, 2094, 1024, 1024, 9207, 1026, 3313, 1028, 2131, 1035, 2522, 10755, 28335, 1035, 8185, 1006, 9530, 3367, 2358, 2094, 1024, 1024, 9207, 1026, 2951, 1008, 1028, 1004, 2951, 2015, 1007, 1025, 7484, 2358, 2094, 1024, 1024, 9207, 1026, 3313, 1028, 2131, 1035, 3115, 1035, 10697, 1006, 9530, 3367, 2358, 2094, 1024, 1024, 9207, 1026, 2951, 1008, 1028, 1004, 2951, 2015, 1007, 1025, 2797, 1024, 6131, 1035, 9530, 8873, 2290, 1035, 2358, 6820, 6593, 6131, 1035, 9530, 2546, 1035, 1025, 6131, 1035, 2765, 2765, 1035, 1025, 20014, 2448, 1035, 6131, 8873, 2102, 1006, 9530, 3367, 2358, 2094, 1024, 1024, 9207, 1026, 2951, 1008, 1028, 1004, 2951, 2015, 1010, 9530, 3367, 2358, 2094, 1024, 1024, 9207, 1026, 2613, 2102, 1028, 1004, 11709, 1010, 9530, 3367, 2358, 2094, 1024, 1024, 9207, 1026, 22017, 2140, 1028, 1004, 11498, 2213, 1035, 8192, 1010, 3313, 1008, 2345, 1035, 1037, 1027, 19701, 1007, 1025, 1065, 1025, 1065, 1013, 1013, 3415, 15327, 4906, 15922, 1001, 2203, 10128, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 8873, 2102, 1035, 1044, 1035, 1001, 2421, 1000, 4906, 1012, 1044, 1000, 1001, 2421, 1000, 4642, 14376, 4183, 1013, 6131, 8873, 2102, 1012, 1044, 1000, 3415, 15327, 4906, 15922, 1063, 1013, 1013, 1013, 10236, 4842, 2105, 4642, 14376, 4183, 2465, 6131, 8873, 2102, 1024, 2270, 4906, 1063, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8873, 2102, 1035, 1044, 1035, 1001, 2421, 1000, 4906, 1012, 1044, 1000, 1001, 2421, 1000, 4642, 14376, 4183, 1013, 6131, 8873, 2102, 1012, 1044, 1000, 3415, 15327, 4906, 15922, 1063, 1013, 1013, 1013, 10236, 4842, 2105, 4642, 14376, 4183, 2465, 6131, 8873, 2102, 1024, 2270, 4906, 1063, 30526 ]
/** * This file is part of the tlog Library. * * Copyright 2017, Huang Yang <[email protected]>. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <string.h> #include <stdlib.h> #include <errno.h> #include "thash_string.h" #include "tassert.h" /**************************************************** * macros definition ****************************************************/ #define DEFAULT_TABLE_SIZE (16) #define REHASH_FACTOR (1.2) /**************************************************** * struct definition ****************************************************/ struct _thash_string { tuint32 table_size; /* rehash border */ tuint32 max_element_size; tuint32 element_count; thlist_head *head; }; /**************************************************** * static variable ****************************************************/ /**************************************************** * functions ****************************************************/ /** * @brief get string hash value * @param hash_string - hash table * @param key - string to hash * @return hash value */ static tuint32 t_hash_string_hash(const thash_string *hash_string, const char *key) { tuint32 hash_val = 0; while (*key != '\0') { hash_val = (hash_val << 5) + *key++; } return hash_val & (hash_string->table_size - 1); } /** * @brief round data to the nearest interger * @param data - data to round * @return nearest interger */ static tint tround(tdouble data) { if (data < 0) { return (tint)(data - 0.5); } else { return (tint)(data + 0.5); } } /** * @brief create new hash table * @param table_size - hash table size * @return if create success return hash table pointer otherwise return NULL */ static thash_string *t_hash_string_new_size(tuint32 table_size) { thash_string *hash = malloc(sizeof(thash_string)); if (NULL != hash) { hash->head = calloc(sizeof(thlist_head), table_size); if (NULL != hash->head) { hash->table_size = table_size; hash->element_count = 0; tuint32 i = 0; tdouble max_size = REHASH_FACTOR * hash->table_size; hash->max_element_size = tround(max_size); for (; i < table_size; ++i) { t_hlist_init_head(&hash->head[i]); } } else { free(hash); hash = NULL; } } return hash; } /** * @brief rehash old hash table to new hash table * @param hash_string - old hash table * @param table_size - new hash table size * @return if success new hash table pointer return and delete old hash table, * otherwise NULL return and no change to old hash table */ static thash_string *t_hash_string_rehash(thash_string *hash_string, tuint32 table_size) { if (table_size < DEFAULT_TABLE_SIZE) { table_size = DEFAULT_TABLE_SIZE; } thash_string *new_hash_string = t_hash_string_new_size(table_size); if (NULL != new_hash_string) { thlist_head *hlist_head = NULL; thlist_node *hlist_node = NULL, *hlist_node_next = NULL; thash_string_node *string_node = NULL; tuint32 index = 0; //foreach every entry in old hash table for (index = 0; index < hash_string->table_size; ++index) { hlist_head = &hash_string->head[index]; hlist_node = hlist_head->first; //insert to new hash table while(hlist_node != NULL) { hlist_node_next = hlist_node->next; string_node = t_hlist_entry(hlist_node, thash_string_node, node); t_hash_string_insert(new_hash_string, string_node); hlist_node = hlist_node_next; } } } return new_hash_string; } /** * @brief init string hash node * @param node - string hash node * @param key - key string */ tint t_hash_string_init_node(thash_string_node *node, const char *key) { T_ASSERT(NULL != node); if (NULL != key) { /* new key */ node->key = malloc(strlen(key) + 1); if (NULL != node->key) { strcpy(node->key, key); } else { return -ENOMEM; } } t_hlist_init_node(&node->node); return 0; } /** * @brief new string hash node * @param key - key string * @return node pointer */ thash_string_node *t_hash_string_new_node(const tchar *key) { thash_string_node *node = malloc(sizeof(thash_string_node)); if (NULL != node) { if (NULL != key) { node->key = malloc(strlen(key) + 1); strcpy(node->key, key); } t_hlist_init_node(&node->node); } return node; } /** * @brief create new hash table * @return if create success return hash table pointer otherwise return NULL */ thash_string *t_hash_string_new(void) { return t_hash_string_new_size(DEFAULT_TABLE_SIZE); } /** * @brief insert hash node to hash table * @param hash_string - hash table * @param node - node to insert */ thash_string *t_hash_string_insert(thash_string *hash_string, thash_string_node *node) { T_ASSERT(NULL != hash_string); T_ASSERT(NULL != node); T_ASSERT(NULL != node->key); tuint32 hash_val = t_hash_string_hash(hash_string, node->key); //check if already contain thlist_node *hlist_node = NULL; thash_string_node *string_node = NULL; t_hlist_foreach(hlist_node, &hash_string->head[hash_val]) { string_node = t_hlist_entry(hlist_node, thash_string_node, node); if (0 == strcmp(string_node->key, node->key)) { return hash_string; } } //insert node t_hlist_insert(&hash_string->head[hash_val], &node->node); hash_string->element_count++; //check if need rehash if (hash_string->element_count > hash_string->max_element_size) { thash_string *new_hash_string = t_hash_string_rehash(hash_string, hash_string->table_size * 2); if (NULL != new_hash_string) { //delete old hash string free(hash_string->head); free(hash_string); return new_hash_string; } } return hash_string; } /** * @brief remove node key equals to key from hash table * @param hash_string - hash table * @param key - key to remove * @return removed hash node pointer */ thash_string_node *t_hash_string_remove(thash_string *hash_string, const char *key) { T_ASSERT(NULL != hash_string); T_ASSERT(NULL != key); thash_string_node *string_node = t_hash_string_get(hash_string, key); if (NULL != string_node) { t_hlist_remove(&(string_node->node)); hash_string->element_count--; } return string_node; } /** * @brief get hash node which key euqals to key in hash table * @param hash_string - hash table * @param key - key to find * @return hash node */ thash_string_node *t_hash_string_get(const thash_string *hash_string, const char *key) { T_ASSERT(NULL != hash_string); T_ASSERT(NULL != key); tuint32 hash_val = t_hash_string_hash(hash_string, key); thlist_node *hlist_node = NULL; thash_string_node *string_node = NULL; t_hlist_foreach(hlist_node, &hash_string->head[hash_val]) { string_node = t_hlist_entry(hlist_node, thash_string_node, node); if (0 == strcmp(string_node->key, key)) { return string_node; } } return NULL; } /** * @brief get hash table all keys * @param hash_string - string hash table * @param keys - output key buffers */ void t_hash_string_keys(const thash_string *hash_string, char **keys) { T_ASSERT(NULL != hash_string); T_ASSERT(NULL != keys); thlist_node *hlist_node = NULL; thash_string_node *string_node = NULL; tuint32 index = 0; for (tuint32 i = 0; i < hash_string->table_size; ++i) { t_hlist_foreach(hlist_node, &hash_string->head[i]) { string_node = t_hlist_entry(hlist_node, thash_string_node, node); strcpy(keys[index], string_node->key); index ++; } } keys[index] = NULL; } /** * @brief iterator all node in hash table * @param hash_string - hash table handle * @param hash_func - hash callback function * @return error code, 0 means no error happend */ tint t_hash_string_foreach(const thash_string *hash_string, thash_func hash_func, void *userdata) { if (NULL == hash_string) { return 0; } thlist_node *hlist_node = NULL; thash_string_node *string_node = NULL; tint err = 0; for (tuint32 i = 0; i < hash_string->table_size; ++i) { t_hlist_foreach(hlist_node, &hash_string->head[i]) { string_node = t_hlist_entry(hlist_node, thash_string_node, node); if (NULL != hash_func) { err = hash_func(string_node, userdata); if (0 != err) { return err; } } } } return 0; } /** * @brief check if there is any node whose key equals to key in hash table * @param hash_string - hash table * @param key - key to find * @return check value TRUE: contain FALSE: can't find */ tbool t_hash_string_contain(const thash_string *hash_string, const char *key) { T_ASSERT(NULL != hash_string); T_ASSERT(NULL != key); tuint32 hash_val = t_hash_string_hash(hash_string, key); thlist_node *hlist_node = NULL; thash_string_node *string_node = NULL; t_hlist_foreach(hlist_node, &hash_string->head[hash_val]) { string_node = t_hlist_entry(hlist_node, thash_string_node, node); if (0 == strcmp(string_node->key, key)) { return TRUE; } } return FALSE; } /** * @brief get hash table element count * @param hash_string - hash table pointer * @return hash table element count */ tuint32 t_hash_string_count(const thash_string *hash_string) { T_ASSERT(NULL != hash_string); return hash_string->element_count; } /** * @brief get hash table table size * @param hash_string - hash table pointer * @return hash table table size */ tuint32 t_hash_string_capacity(const thash_string *hash_string) { T_ASSERT(NULL != hash_string); return hash_string->table_size; } /** * @brief free all node in hash table * @param hash_string - hash table * @param free_func - resource free function */ void t_hash_string_free(thash_string *hash_string, tfree_func free_func) { T_ASSERT(NULL != hash_string); thlist_head *head = NULL; for (tuint32 i = 0; i < hash_string->table_size; ++i) { head = &hash_string->head[i]; thlist_node *cur = head->first; thlist_node *temp = NULL; while (cur != NULL) { temp = cur->next; if (NULL != free_func) { free_func(t_hlist_entry(cur, thash_string_node, node)); } cur = temp; } } free(hash_string->head); free(hash_string); } /** * @brief free all node in hash table * @param hash_string - hash table * @param free_func - resource free function */ void t_hash_string_clear(thash_string *hash_string, tfree_func free_func) { T_ASSERT(NULL != hash_string); thlist_head *head = NULL; /* free node first */ for (tuint32 i = 0; i < hash_string->table_size; ++i) { head = &hash_string->head[i]; thlist_node *cur = head->first; thlist_node *temp = NULL; while (cur != NULL) { temp = cur->next; if (NULL != free_func) { free_func(t_hlist_entry(cur, thash_string_node, node)); } cur = temp; } } /* free head */ for (tuint32 i = DEFAULT_TABLE_SIZE; i < hash_string->table_size; ++i) { free(&hash_string->head[i]); } /* init head */ for (tuint32 i = 0; i < hash_string->table_size; ++i) { t_hlist_init_head(&hash_string->head[i]); } hash_string->table_size = DEFAULT_TABLE_SIZE; hash_string->element_count = 0; tdouble max_size = REHASH_FACTOR * hash_string->table_size; hash_string->max_element_size = tround(max_size); }
semerlin/tlog
src/thash_string.c
C
lgpl-2.1
12,497
[ 30522, 1013, 1008, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 1996, 1056, 21197, 3075, 1012, 1008, 1008, 9385, 2418, 1010, 15469, 8675, 1026, 12005, 3560, 1012, 15469, 1030, 20917, 4014, 1012, 4012, 1028, 1012, 2035, 2916, 9235, 1012, 1008, 1008, 2156, 1996, 24731, 5371, 2005, 1996, 3408, 1997, 8192, 1998, 4353, 1012, 1008, 1013, 1001, 2421, 1026, 5164, 1012, 1044, 1028, 1001, 2421, 1026, 2358, 19422, 12322, 1012, 1044, 1028, 1001, 2421, 1026, 9413, 19139, 1012, 1044, 1028, 1001, 2421, 1000, 22794, 4095, 1035, 5164, 1012, 1044, 1000, 1001, 2421, 1000, 11937, 18116, 2102, 1012, 1044, 1000, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 26632, 2015, 6210, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1001, 9375, 12398, 1035, 2795, 1035, 2946, 1006, 2385, 1007, 1001, 9375, 2128, 14949, 2232, 1035, 5387, 1006, 1015, 1012, 1016, 1007, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 2358, 6820, 6593, 6210, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 2358, 6820, 6593, 1035, 22794, 4095, 1035, 5164, 1063, 10722, 18447, 16703, 2795, 1035, 2946, 1025, 1013, 1008, 2128, 14949, 2232, 3675, 1008, 1013, 10722, 18447, 16703, 4098, 1035, 5783, 1035, 2946, 1025, 10722, 18447, 16703, 5783, 1035, 4175, 1025, 16215, 9863, 1035, 2132, 1008, 2132, 1025, 1065, 1025, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30524, 10763, 8023, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 30523, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008,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
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30526 ]
export const BattleAvatarNumbers = { 1: 'lucas', 2: 'dawn', 3: 'youngster-gen4', 4: 'lass-gen4dp', 5: 'camper', 6: 'picnicker', 7: 'bugcatcher', 8: 'aromalady', 9: 'twins-gen4dp', 10: 'hiker-gen4', 11: 'battlegirl-gen4', 12: 'fisherman-gen4', 13: 'cyclist-gen4', 14: 'cyclistf-gen4', 15: 'blackbelt-gen4dp', 16: 'artist-gen4', 17: 'pokemonbreeder-gen4', 18: 'pokemonbreederf-gen4', 19: 'cowgirl', 20: 'jogger', 21: 'pokefan-gen4', 22: 'pokefanf-gen4', 23: 'pokekid', 24: 'youngcouple-gen4dp', 25: 'acetrainer-gen4dp', 26: 'acetrainerf-gen4dp', 27: 'waitress-gen4', 28: 'veteran-gen4', 29: 'ninjaboy', 30: 'dragontamer', 31: 'birdkeeper-gen4dp', 32: 'doubleteam', 33: 'richboy-gen4', 34: 'lady-gen4', 35: 'gentleman-gen4dp', 36: 'madame-gen4dp', 37: 'beauty-gen4dp', 38: 'collector', 39: 'policeman-gen4', 40: 'pokemonranger-gen4', 41: 'pokemonrangerf-gen4', 42: 'scientist-gen4dp', 43: 'swimmer-gen4dp', 44: 'swimmerf-gen4dp', 45: 'tuber', 46: 'tuberf', 47: 'sailor', 48: 'sisandbro', 49: 'ruinmaniac', 50: 'psychic-gen4', 51: 'psychicf-gen4', 52: 'gambler', 53: 'guitarist-gen4', 54: 'acetrainersnow', 55: 'acetrainersnowf', 56: 'skier', 57: 'skierf-gen4dp', 58: 'roughneck-gen4', 59: 'clown', 60: 'worker-gen4', 61: 'schoolkid-gen4dp', 62: 'schoolkidf-gen4', 63: 'roark', 64: 'barry', 65: 'byron', 66: 'aaron', 67: 'bertha', 68: 'flint', 69: 'lucian', 70: 'cynthia-gen4', 71: 'bellepa', 72: 'rancher', 73: 'mars', 74: 'galacticgrunt', 75: 'gardenia', 76: 'crasherwake', 77: 'maylene', 78: 'fantina', 79: 'candice', 80: 'volkner', 81: 'parasollady-gen4', 82: 'waiter-gen4dp', 83: 'interviewers', 84: 'cameraman', 85: 'reporter', 86: 'idol', 87: 'cyrus', 88: 'jupiter', 89: 'saturn', 90: 'galacticgruntf', 91: 'argenta', 92: 'palmer', 93: 'thorton', 94: 'buck', 95: 'darach', 96: 'marley', 97: 'mira', 98: 'cheryl', 99: 'riley', 100: 'dahlia', 101: 'ethan', 102: 'lyra', 103: 'twins-gen4', 104: 'lass-gen4', 105: 'acetrainer-gen4', 106: 'acetrainerf-gen4', 107: 'juggler', 108: 'sage', 109: 'li', 110: 'gentleman-gen4', 111: 'teacher', 112: 'beauty', 113: 'birdkeeper', 114: 'swimmer-gen4', 115: 'swimmerf-gen4', 116: 'kimonogirl', 117: 'scientist-gen4', 118: 'acetrainercouple', 119: 'youngcouple', 120: 'supernerd', 121: 'medium', 122: 'schoolkid-gen4', 123: 'blackbelt-gen4', 124: 'pokemaniac', 125: 'firebreather', 126: 'burglar', 127: 'biker-gen4', 128: 'skierf', 129: 'boarder', 130: 'rocketgrunt', 131: 'rocketgruntf', 132: 'archer', 133: 'ariana', 134: 'proton', 135: 'petrel', 136: 'eusine', 137: 'lucas-gen4pt', 138: 'dawn-gen4pt', 139: 'madame-gen4', 140: 'waiter-gen4', 141: 'falkner', 142: 'bugsy', 143: 'whitney', 144: 'morty', 145: 'chuck', 146: 'jasmine', 147: 'pryce', 148: 'clair', 149: 'will', 150: 'koga', 151: 'bruno', 152: 'karen', 153: 'lance', 154: 'brock', 155: 'misty', 156: 'ltsurge', 157: 'erika', 158: 'janine', 159: 'sabrina', 160: 'blaine', 161: 'blue', 162: 'red', 163: 'red', 164: 'silver', 165: 'giovanni', 166: 'unknownf', 167: 'unknown', 168: 'unknown', 169: 'hilbert', 170: 'hilda', 171: 'youngster', 172: 'lass', 173: 'schoolkid', 174: 'schoolkidf', 175: 'smasher', 176: 'linebacker', 177: 'waiter', 178: 'waitress', 179: 'chili', 180: 'cilan', 181: 'cress', 182: 'nurseryaide', 183: 'preschoolerf', 184: 'preschooler', 185: 'twins', 186: 'pokemonbreeder', 187: 'pokemonbreederf', 188: 'lenora', 189: 'burgh', 190: 'elesa', 191: 'clay', 192: 'skyla', 193: 'pokemonranger', 194: 'pokemonrangerf', 195: 'worker', 196: 'backpacker', 197: 'backpackerf', 198: 'fisherman', 199: 'musician', 200: 'dancer', 201: 'harlequin', 202: 'artist', 203: 'baker', 204: 'psychic', 205: 'psychicf', 206: 'cheren', 207: 'bianca', 208: 'plasmagrunt-gen5bw', 209: 'n', 210: 'richboy', 211: 'lady', 212: 'pilot', 213: 'workerice', 214: 'hoopster', 215: 'scientistf', 216: 'clerkf', 217: 'acetrainerf', 218: 'acetrainer', 219: 'blackbelt', 220: 'scientist', 221: 'striker', 222: 'brycen', 223: 'iris', 224: 'drayden', 225: 'roughneck', 226: 'janitor', 227: 'pokefan', 228: 'pokefanf', 229: 'doctor', 230: 'nurse', 231: 'hooligans', 232: 'battlegirl', 233: 'parasollady', 234: 'clerk', 235: 'clerk-boss', 236: 'backers', 237: 'backersf', 238: 'veteran', 239: 'veteranf', 240: 'biker', 241: 'infielder', 242: 'hiker', 243: 'madame', 244: 'gentleman', 245: 'plasmagruntf-gen5bw', 246: 'shauntal', 247: 'marshal', 248: 'grimsley', 249: 'caitlin', 250: 'ghetsis-gen5bw', 251: 'depotagent', 252: 'swimmer', 253: 'swimmerf', 254: 'policeman', 255: 'maid', 256: 'ingo', 257: 'alder', 258: 'cyclist', 259: 'cyclistf', 260: 'cynthia', 261: 'emmet', 262: 'hilbert-dueldisk', 263: 'hilda-dueldisk', 264: 'hugh', 265: 'rosa', 266: 'nate', 267: 'colress', 268: 'beauty-gen5bw2', 269: 'ghetsis', 270: 'plasmagrunt', 271: 'plasmagruntf', 272: 'iris-gen5bw2', 273: 'brycenman', 274: 'shadowtriad', 275: 'rood', 276: 'zinzolin', 277: 'cheren-gen5bw2', 278: 'marlon', 279: 'roxie', 280: 'roxanne', 281: 'brawly', 282: 'wattson', 283: 'flannery', 284: 'norman', 285: 'winona', 286: 'tate', 287: 'liza', 288: 'juan', 289: 'guitarist', 290: 'steven', 291: 'wallace', 292: 'bellelba', 293: 'benga', 294: 'ash', '#bw2elesa': 'elesa-gen5bw2', '#teamrocket': 'teamrocket', '#yellow': 'yellow', '#zinnia': 'zinnia', '#clemont': 'clemont', '#wally': 'wally', breeder: 'pokemonbreeder', breederf: 'pokemonbreederf', 1001: '#1001', 1002: '#1002', 1003: '#1003', 1005: '#1005', 1010: '#1010', };
shoedrip-unbound/dogars
src/Shoedrip/dexdata.ts
TypeScript
agpl-3.0
5,687
[ 30522, 9167, 9530, 3367, 2645, 12462, 7559, 19172, 17198, 1027, 1063, 1015, 1024, 1005, 6326, 1005, 1010, 1016, 1024, 1005, 6440, 1005, 1010, 1017, 1024, 1005, 2402, 6238, 1011, 8991, 2549, 1005, 1010, 1018, 1024, 1005, 27333, 1011, 8991, 2549, 18927, 1005, 1010, 1019, 1024, 1005, 3409, 2121, 1005, 1010, 1020, 1024, 1005, 12695, 5484, 1005, 1010, 1021, 1024, 1005, 11829, 11266, 7474, 1005, 1010, 1022, 1024, 1005, 23958, 27266, 2100, 1005, 1010, 1023, 1024, 1005, 8178, 1011, 8991, 2549, 18927, 1005, 1010, 2184, 1024, 1005, 21857, 2099, 1011, 8991, 2549, 1005, 1010, 2340, 1024, 1005, 2645, 15239, 1011, 8991, 2549, 1005, 1010, 2260, 1024, 1005, 19949, 1011, 8991, 2549, 1005, 1010, 2410, 1024, 1005, 14199, 1011, 8991, 2549, 1005, 1010, 2403, 1024, 1005, 14199, 2546, 1011, 8991, 2549, 1005, 1010, 2321, 1024, 1005, 2304, 21561, 1011, 8991, 2549, 18927, 1005, 1010, 2385, 1024, 1005, 3063, 1011, 8991, 2549, 1005, 1010, 2459, 1024, 1005, 20421, 13578, 14728, 2099, 1011, 8991, 2549, 1005, 1010, 2324, 1024, 1005, 20421, 13578, 14728, 12881, 1011, 8991, 2549, 1005, 1010, 2539, 1024, 1005, 11190, 15239, 1005, 1010, 2322, 1024, 1005, 8183, 13327, 1005, 1010, 2538, 1024, 1005, 26202, 15143, 1011, 8991, 2549, 1005, 1010, 2570, 1024, 1005, 26202, 15143, 2546, 1011, 8991, 2549, 1005, 1010, 2603, 1024, 1005, 26202, 3211, 2094, 1005, 1010, 2484, 1024, 1005, 2402, 3597, 6279, 2571, 1011, 8991, 2549, 18927, 1005, 1010, 2423, 1024, 1005, 9078, 23654, 2121, 1011, 8991, 2549, 18927, 1005, 1010, 2656, 1024, 1005, 9078, 23654, 2121, 2546, 1011, 8991, 2549, 18927, 1005, 1010, 2676, 1024, 1005, 13877, 1011, 8991, 2549, 1005, 1010, 2654, 1024, 1005, 8003, 1011, 8991, 2549, 1005, 1010, 2756, 1024, 1005, 14104, 11097, 1005, 1010, 2382, 1024, 1005, 5202, 15464, 2121, 1005, 1010, 2861, 1024, 1005, 4743, 13106, 1011, 8991, 2549, 18927, 1005, 1010, 3590, 1024, 1005, 3313, 27058, 2213, 1005, 1010, 3943, 1024, 1005, 4138, 11097, 1011, 8991, 2549, 1005, 1010, 4090, 1024, 1005, 3203, 1011, 8991, 2549, 1005, 1010, 3486, 1024, 1005, 10170, 1011, 8991, 2549, 18927, 1005, 1010, 4029, 1024, 1005, 10602, 1011, 8991, 2549, 18927, 1005, 1010, 4261, 1024, 1005, 5053, 1011, 8991, 2549, 18927, 1005, 1010, 4229, 1024, 1005, 10018, 1005, 1010, 4464, 1024, 1005, 14460, 1011, 8991, 2549, 1005, 1010, 2871, 1024, 1005, 20421, 24388, 2121, 1011, 8991, 2549, 1005, 1010, 4601, 1024, 1005, 20421, 24388, 2121, 2546, 1011, 8991, 2549, 1005, 1010, 4413, 1024, 1005, 7155, 1011, 8991, 2549, 18927, 1005, 1010, 4724, 1024, 1005, 13361, 1011, 8991, 2549, 18927, 1005, 1010, 4008, 1024, 1005, 13361, 2546, 1011, 8991, 2549, 18927, 1005, 1010, 3429, 1024, 1005, 7270, 2099, 1005, 1010, 4805, 1024, 1005, 7270, 12881, 1005, 1010, 4700, 1024, 1005, 30524, 12663, 2546, 1011, 8991, 2549, 1005, 1010, 4720, 1024, 1005, 18503, 2099, 1005, 1010, 5187, 1024, 1005, 5990, 1011, 8991, 2549, 1005, 1010, 5139, 1024, 30523, 11803, 1005, 1010, 4466, 1024, 1005, 24761, 5685, 12618, 1005, 1010, 4749, 1024, 1005, 10083, 27010, 2278, 1005, 1010, 2753, 1024, 1005, 12663, 1011, 8991, 2549, 1005, 1010, 4868, 1024, 1005, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11803, 1005, 1010, 4466, 1024, 1005, 24761, 5685, 12618, 1005, 1010, 4749, 1024, 1005, 10083, 27010, 2278, 1005, 1010, 2753, 1024, 1005, 12663, 1011, 8991, 2549, 1005, 1010, 4868, 1024, 1005, 30526 ]
module Headlines class BaseCategorySerializer < ActiveModel::Serializer attributes :id, :title end end
srcclr/security-headers
app/serializers/headlines/base_category_serializer.rb
Ruby
mit
111
[ 30522, 11336, 19377, 2465, 2918, 16280, 20255, 23274, 14482, 17629, 1026, 3161, 5302, 9247, 1024, 1024, 7642, 17629, 12332, 1024, 8909, 1010, 1024, 2516, 2203, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
class Yaz < Formula desc "Toolkit for Z39.50/SRW/SRU clients/servers" homepage "https://www.indexdata.com/yaz" url "http://ftp.indexdata.dk/pub/yaz/yaz-5.15.1.tar.gz" sha256 "ebef25b0970ea1485bbba43a721d7001523b6faa18c8d8da4080a8f83d5e2116" revision 1 bottle do cellar :any sha256 "5c92b86a99954d7c94d4fea236515387c985b4cb53ae08e7b44db3273bdf7752" => :el_capitan sha256 "24875e71916b26cbe8758bb8ecbd8efe4a3b0cf02349fc7668fb84db99c6e048" => :yosemite sha256 "6326adcf981c85d58153e9472797efe34605196ec5ead5cf19faf127e1d93444" => :mavericks end option :universal depends_on "pkg-config" => :build depends_on "icu4c" => :recommended def install ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-xml2" system "make", "install" end test do # This test converts between MARC8, an obscure mostly-obsolete library # text encoding supported by yaz-iconv, and UTF8. marc8file = testpath/"marc8.txt" marc8file.write "$1!0-!L,i$3i$si$Ki$Ai$O!+=(B" result = shell_output("#{bin}/yaz-iconv -f marc8 -t utf8 #{marc8file}") result.force_encoding(Encoding::UTF_8) if result.respond_to?(:force_encoding) assert_equal "世界こんにちは!", result # Test ICU support if building with ICU by running yaz-icu # with the example icu_chain from its man page. if build.with? "icu4c" # The input string should be transformed to be: # * without control characters (tab) # * split into tokens at word boundaries (including -) # * without whitespace and Punctuation # * xy transformed to z # * lowercase configurationfile = testpath/"icu-chain.xml" configurationfile.write <<-EOS.undent <?xml version="1.0" encoding="UTF-8"?> <icu_chain locale="en"> <transform rule="[:Control:] Any-Remove"/> <tokenize rule="w"/> <transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/> <transliterate rule="xy > z;"/> <display/> <casemap rule="l"/> </icu_chain> EOS inputfile = testpath/"icu-test.txt" inputfile.write "yaz-ICU xy!" expectedresult = <<-EOS.undent 1 1 'yaz' 'yaz' 2 1 '' '' 3 1 'icuz' 'ICUz' 4 1 '' '' EOS result = shell_output("#{bin}/yaz-icu -c #{configurationfile} #{inputfile}") assert_equal expectedresult, result end end end
tkoenig/homebrew-core
Formula/yaz.rb
Ruby
bsd-2-clause
2,555
[ 30522, 2465, 8038, 2480, 1026, 5675, 4078, 2278, 1000, 6994, 23615, 2005, 1062, 23499, 1012, 2753, 1013, 5034, 2860, 1013, 5034, 2226, 7846, 1013, 14903, 1000, 2188, 13704, 1000, 16770, 1024, 1013, 1013, 7479, 1012, 5950, 2850, 2696, 1012, 4012, 1013, 8038, 2480, 1000, 24471, 2140, 1000, 8299, 1024, 1013, 1013, 3027, 2361, 1012, 5950, 2850, 2696, 1012, 1040, 2243, 1013, 9047, 1013, 8038, 2480, 1013, 8038, 2480, 1011, 1019, 1012, 2321, 1012, 1015, 1012, 16985, 1012, 1043, 2480, 1000, 21146, 17788, 2575, 1000, 1041, 4783, 2546, 17788, 2497, 2692, 2683, 19841, 5243, 16932, 27531, 10322, 3676, 23777, 2050, 2581, 17465, 2094, 19841, 24096, 25746, 2509, 2497, 2575, 7011, 27717, 2620, 2278, 2620, 2094, 2620, 2850, 12740, 17914, 2050, 2620, 2546, 2620, 29097, 2629, 2063, 17465, 16048, 1000, 13921, 1015, 5835, 2079, 15423, 1024, 2151, 21146, 17788, 2575, 1000, 1019, 2278, 2683, 2475, 2497, 20842, 2050, 2683, 2683, 2683, 27009, 2094, 2581, 2278, 2683, 2549, 2094, 2549, 7959, 2050, 21926, 26187, 16068, 22025, 2581, 2278, 2683, 27531, 2497, 2549, 27421, 22275, 6679, 2692, 2620, 2063, 2581, 2497, 22932, 18939, 16703, 2581, 2509, 2497, 20952, 2581, 23352, 2475, 1000, 1027, 1028, 1024, 3449, 1035, 8353, 2078, 21146, 17788, 2575, 1000, 24568, 23352, 2063, 2581, 16147, 16048, 2497, 23833, 27421, 2063, 2620, 23352, 2620, 10322, 2620, 8586, 2497, 2094, 2620, 27235, 2549, 2050, 2509, 2497, 2692, 2278, 2546, 2692, 21926, 26224, 11329, 2581, 28756, 2620, 26337, 2620, 2549, 18939, 2683, 2683, 2278, 2575, 2063, 2692, 18139, 1000, 1027, 1028, 1024, 10930, 3366, 23419, 21146, 17788, 2575, 1000, 6191, 23833, 4215, 2278, 2546, 2683, 2620, 2487, 2278, 27531, 2094, 27814, 16068, 2509, 2063, 2683, 22610, 22907, 2683, 2581, 27235, 22022, 16086, 22203, 2683, 2575, 8586, 2629, 13775, 2629, 2278, 2546, 16147, 7011, 2546, 12521, 2581, 2063, 2487, 2094, 2683, 22022, 22932, 1000, 1027, 1028, 1024, 28330, 2203, 5724, 1024, 5415, 9041, 1035, 2006, 1000, 1052, 2243, 2290, 1011, 9530, 8873, 2290, 1000, 1027, 1028, 1024, 3857, 9041, 1035, 2006, 1000, 24582, 2226, 2549, 2278, 1000, 1027, 1028, 1024, 6749, 13366, 16500, 4372, 2615, 1012, 5415, 1035, 12441, 2065, 3857, 1012, 5415, 1029, 2291, 1000, 1012, 1013, 9530, 8873, 27390, 30524, 1011, 2007, 1011, 20950, 2475, 1000, 2291, 1000, 2191, 1000, 1010, 1000, 16500, 1000, 2203, 3231, 2079, 1001, 2023, 3231, 19884, 2090, 7871, 2620, 1010, 2019, 14485, 3262, 1011, 15832, 3075, 1001, 3793, 17181, 3569, 2011, 8038, 2480, 1011, 12696, 2615, 1010, 1998, 21183, 2546, 2620, 1012, 7871, 2620, 8873, 2571, 1027, 3231, 15069, 1013, 1000, 7871, 2620, 1012, 19067, 2102, 1000, 7871, 2620, 8873, 2571, 1012, 4339, 1000, 1002, 1015, 999, 1014, 1011, 999, 1048, 1010, 1045, 1002, 1017, 2072, 1002, 9033, 1002, 11382, 1002, 9932, 1002, 1051, 999, 1009, 1027, 1006, 1038, 1000, 2765, 1027, 5806, 1035, 6434, 1006, 1000, 1001, 1063, 8026, 1065, 1013, 8038, 2480, 1011, 12696, 2615, 1011, 1042, 7871, 2620, 30523, 2063, 1000, 1010, 1000, 1011, 1011, 4487, 19150, 1011, 24394, 1011, 9651, 1000, 1010, 1000, 1011, 1011, 17576, 1027, 1001, 1063, 17576, 1065, 1000, 1010, 1000, 1011, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2063, 1000, 1010, 1000, 1011, 1011, 4487, 19150, 1011, 24394, 1011, 9651, 1000, 1010, 1000, 1011, 1011, 17576, 1027, 1001, 1063, 17576, 1065, 1000, 1010, 1000, 1011, 30526 ]
export = IPFS; declare const IPFS: typeof import("ipfs-core/src"); //# sourceMappingURL=index.d.ts.map
cdnjs/cdnjs
ajax/libs/ipfs/0.52.3-rc.2/src/index.d.ts
TypeScript
mit
102
[ 30522, 9167, 1027, 12997, 10343, 1025, 13520, 9530, 3367, 12997, 10343, 1024, 2828, 11253, 12324, 1006, 1000, 12997, 10343, 1011, 4563, 1013, 5034, 2278, 1000, 1007, 1025, 1013, 1013, 1001, 3120, 2863, 14853, 3126, 2140, 1027, 5950, 1012, 1040, 1012, 24529, 1012, 4949, 102, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<?php namespace Speicher210\Fastbill\Api\Service\Subscription\ChangeArticle; use JMS\Serializer\Annotation as JMS; use Speicher210\Fastbill\Api\AbstractRequestData; use Speicher210\Fastbill\Api\Model\Addon; use Speicher210\Fastbill\Api\Model\Feature; /** * The request data for changing article of a subscription. */ final class RequestData extends AbstractRequestData { /** * The subscription ID. * * @var integer * * @JMS\Type("integer") * @JMS\SerializedName("SUBSCRIPTION_ID") */ protected $subscriptionId; /** * The subscription quantity. * * @var integer * * @JMS\Type("integer") * @JMS\SerializedName("QUANTITY") */ protected $quantity; /** * The subscription article number. * * @var string * * @JMS\Type("string") * @JMS\SerializedName("ARTICLE_NUMBER") */ protected $articleNumber; /** * The title of the article. * * @var string * * @JMS\Type("string") * @JMS\SerializedName("TITLE") */ protected $title; /** * The description of the article. * * @var string * * @JMS\Type("string") * @JMS\SerializedName("DESCRIPTION") */ protected $description; /** * The unit price. * * @var float * * @JMS\Type("float") * @JMS\SerializedName("UNIT_PRICE") */ protected $unitPrice; /** * The currency code. * * @var string * * @JMS\Type("string") * @JMS\SerializedName("CURRENCY_CODE") */ protected $currencyCode; /** * Flag if reset addons. * * @var integer * * @JMS\Type("integer") * @JMS\SerializedName("RESET_ADDONS") */ protected $resetAddons; /** * The coupon code. * * @var string * * @JMS\Type("string") * @JMS\SerializedName("COUPON") */ protected $coupon; /** * Addons. * * @var array * * @JMS\Type("array<Speicher210\Fastbill\Api\Model\Addon>") * @JMS\SerializedName("ADDONS") */ protected $addons; /** * Product features. * * @var array * * @JMS\Type("array<Speicher210\Fastbill\Api\Model\Feature>") * @JMS\SerializedName("FEATURES") */ protected $features = array(); /** * Flag if suppress confirmation mail to customer. * * @var integer * * @JMS\Type("integer") * @JMS\SerializedName("SUPPRESS_MAIL") */ protected $suppressMail; /** * Constructor. * * @param integer $subscriptionId The subscription ID. * @param string $articleNumber The article number. */ public function __construct($subscriptionId, $articleNumber) { $this->setSubscriptionId($subscriptionId); $this->setArticleNumber($articleNumber); } /** * Get the subscription ID. * * @return integer */ public function getSubscriptionId() { return $this->subscriptionId; } /** * Set the subscription ID. * * @param integer $subscriptionId The subscription ID. * @return RequestData */ public function setSubscriptionId($subscriptionId) { $this->subscriptionId = $subscriptionId; return $this; } /** * Get the quantity. * * @return integer */ public function getQuantity() { return $this->quantity; } /** * Set the quantity. * * @param integer $quantity The quantity. * @return RequestData */ public function setQuantity($quantity) { if ($quantity < 1) { throw new \InvalidArgumentException('Quantity must be bigger than 0.'); } $this->quantity = $quantity; return $this; } /** * Get the article number. * * @return integer */ public function getArticleNumber() { return $this->articleNumber; } /** * Set the article number. * * @param string $articleNumber The article number. * @return RequestData */ public function setArticleNumber($articleNumber) { $this->articleNumber = $articleNumber; return $this; } /** * Get the title. * * @return string */ public function getTitle() { return $this->title; } /** * Set the title. * * @param string $title The title. * @return RequestData */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get the description. * * @return string */ public function getDescription() { return $this->description; } /** * Set the description. * * @param string $description The description. * @return RequestData */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get the unit price. * * @return float */ public function getUnitPrice() { return $this->unitPrice; } /** * Set the unit price. * * @param float $unitPrice The price. * @return RequestData */ public function setUnitPrice($unitPrice) { $this->unitPrice = $unitPrice; return $this; } /** * Get the currency code. * * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * Set the currency code. * * @param string $currencyCode The currency code. * @return RequestData */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; return $this; } /** * Check if the addons should be reset. * * @return boolean */ public function isResetAddons() { return (boolean)$this->resetAddons; } /** * Set if the addons should be reset. * * @param boolean $resetAddons Flag if reset addons. * @return RequestData */ public function setResetAddons($resetAddons) { $this->resetAddons = (integer)(boolean)$resetAddons; return $this; } /** * Get the coupon code. * * @return string */ public function getCoupon() { return $this->coupon; } /** * Set the coupon code. * * @param string $coupon The coupon code. * @return RequestData */ public function setCoupon($coupon) { $this->coupon = $coupon; return $this; } /** * Get the addons. * * @return array */ public function getAddons() { return $this->addons; } /** * Set the addons. * * @param Addon[] $addons The addons. * @return RequestData */ public function setAddons(array $addons) { $this->addons = $addons; return $this; } /** * Get the features. * * @return array */ public function getFeatures() { return $this->features; } /** * Set the features. * * @param Feature[] $features The features. * @return RequestData */ public function setFeatures(array $features) { $this->features = $features; return $this; } /** * Check if suppress mail. * * @return boolean */ public function getSuppressMail() { return (boolean)$this->suppressMail; } /** * Set if suppress mail. * * @param boolean $suppressMail Flag if suppress confirmation mail to customer. * @return RequestData */ public function setSuppressMail($suppressMail) { $this->suppressMail = (integer)(boolean)$suppressMail; return $this; } }
Speicher210/fastbill-api
src/Service/Subscription/ChangeArticle/RequestData.php
PHP
mit
8,006
[ 30522, 1026, 1029, 25718, 3415, 15327, 11867, 7416, 7474, 17465, 2692, 1032, 3435, 24457, 1032, 17928, 1032, 2326, 1032, 15002, 1032, 2689, 8445, 25128, 1025, 2224, 1046, 5244, 1032, 7642, 17629, 1032, 5754, 17287, 3508, 2004, 1046, 5244, 1025, 2224, 11867, 7416, 7474, 17465, 2692, 1032, 3435, 24457, 1032, 17928, 1032, 10061, 2890, 15500, 2850, 2696, 1025, 2224, 11867, 7416, 7474, 17465, 2692, 1032, 3435, 24457, 1032, 17928, 1032, 2944, 1032, 5587, 2239, 1025, 2224, 11867, 7416, 7474, 17465, 2692, 1032, 3435, 24457, 1032, 17928, 1032, 2944, 1032, 3444, 1025, 1013, 1008, 1008, 1008, 1996, 5227, 2951, 2005, 5278, 3720, 1997, 1037, 15002, 1012, 1008, 1013, 2345, 2465, 5227, 2850, 2696, 8908, 10061, 2890, 15500, 2850, 2696, 1063, 1013, 1008, 1008, 1008, 1996, 15002, 8909, 1012, 1008, 1008, 1030, 13075, 16109, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 16109, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 15002, 1035, 8909, 1000, 1007, 1008, 1013, 5123, 1002, 15002, 3593, 1025, 1013, 1008, 1008, 1008, 1996, 15002, 11712, 1012, 1008, 1008, 1030, 13075, 16109, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 16109, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 11712, 1000, 1007, 1008, 1013, 5123, 1002, 11712, 1025, 1013, 1008, 1008, 30524, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 5164, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 3720, 1035, 2193, 1000, 1007, 1008, 1013, 5123, 1002, 3720, 19172, 5677, 1025, 1013, 1008, 1008, 1008, 1996, 2516, 1997, 1996, 3720, 1012, 1008, 1008, 1030, 13075, 5164, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 5164, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 2516, 1000, 1007, 1008, 1013, 5123, 1002, 2516, 1025, 1013, 1008, 1008, 1008, 1996, 6412, 1997, 1996, 3720, 1012, 1008, 1008, 1030, 13075, 5164, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 5164, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 6412, 1000, 1007, 1008, 1013, 5123, 1002, 6412, 1025, 1013, 1008, 1008, 1008, 1996, 3131, 3976, 1012, 1008, 1008, 1030, 13075, 14257, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 14257, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 3131, 1035, 3976, 1000, 1007, 1008, 1013, 5123, 1002, 3131, 18098, 6610, 1025, 1013, 1008, 1008, 1008, 1996, 9598, 3642, 1012, 1008, 1008, 1030, 13075, 5164, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 5164, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 9598, 1035, 3642, 1000, 1007, 1008, 1013, 5123, 1002, 9598, 16044, 1025, 1013, 1008, 1008, 1008, 5210, 2065, 25141, 5587, 5644, 1012, 1008, 1008, 1030, 13075, 16109, 1008, 1008, 1030, 1046, 5244, 1032, 2828, 1006, 1000, 16109, 1000, 1007, 1008, 1030, 1046, 5244, 1032, 27289, 18442, 1006, 1000, 25141, 1035, 5587, 5644, 1000, 1007, 1008, 1013, 5123, 1002, 25141, 4215, 5280, 2015, 1025, 1013, 1008, 1008, 1008, 1996, 8648, 2239,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 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 1996, 15002, 3720, 2193, 1012, 1008, 1008, 1030, 13075, 5164, 1008, 30526 ]
// Copyright 2012, 2013 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package deployer_test import ( "encoding/json" "io/ioutil" "os" "path/filepath" "regexp" "runtime" "sort" jc "github.com/juju/testing/checkers" "github.com/juju/utils/arch" "github.com/juju/utils/series" "github.com/juju/version" gc "gopkg.in/check.v1" "gopkg.in/juju/names.v2" "github.com/juju/juju/agent" "github.com/juju/juju/agent/tools" svctesting "github.com/juju/juju/service/common/testing" "github.com/juju/juju/service/upstart" "github.com/juju/juju/state/multiwatcher" "github.com/juju/juju/testing" coretools "github.com/juju/juju/tools" jujuversion "github.com/juju/juju/version" "github.com/juju/juju/worker/deployer" ) var quote, cmdSuffix string func init() { quote = "'" if runtime.GOOS == "windows" { cmdSuffix = ".exe" quote = `"` } } type SimpleContextSuite struct { SimpleToolsFixture } var _ = gc.Suite(&SimpleContextSuite{}) func (s *SimpleContextSuite) SetUpTest(c *gc.C) { s.SimpleToolsFixture.SetUp(c, c.MkDir()) } func (s *SimpleContextSuite) TearDownTest(c *gc.C) { s.SimpleToolsFixture.TearDown(c) } func (s *SimpleContextSuite) TestDeployRecall(c *gc.C) { mgr0 := s.getContext(c) units, err := mgr0.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.HasLen, 0) s.assertUpstartCount(c, 0) err = mgr0.DeployUnit("foo/123", "some-password") c.Assert(err, jc.ErrorIsNil) units, err = mgr0.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.DeepEquals, []string{"foo/123"}) s.assertUpstartCount(c, 1) s.checkUnitInstalled(c, "foo/123", "some-password") err = mgr0.RecallUnit("foo/123") c.Assert(err, jc.ErrorIsNil) units, err = mgr0.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.HasLen, 0) s.assertUpstartCount(c, 0) s.checkUnitRemoved(c, "foo/123") } func (s *SimpleContextSuite) TestOldDeployedUnitsCanBeRecalled(c *gc.C) { // After r1347 deployer tag is no longer part of the upstart conf filenames, // now only the units' tags are used. This change is with the assumption only // one deployer will be running on a machine (in the machine agent as a task, // unlike before where there was one in the unit agent as well). // This test ensures units deployed previously (or their upstart confs more // specifically) can be detected and recalled by the deployer. manager := s.getContext(c) // No deployed units at first. units, err := manager.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.HasLen, 0) s.assertUpstartCount(c, 0) // Trying to recall any units will fail. err = manager.RecallUnit("principal/1") c.Assert(err, gc.ErrorMatches, `unit "principal/1" is not deployed`) // Simulate some previously deployed units with the old // upstart conf filename format (+deployer tags). s.injectUnit(c, "jujud-machine-0:unit-mysql-0", "unit-mysql-0") s.assertUpstartCount(c, 1) s.injectUnit(c, "jujud-unit-wordpress-0:unit-nrpe-0", "unit-nrpe-0") s.assertUpstartCount(c, 2) // Make sure we can discover them. units, err = manager.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.HasLen, 2) sort.Strings(units) c.Assert(units, gc.DeepEquals, []string{"mysql/0", "nrpe/0"}) // Deploy some units. err = manager.DeployUnit("principal/1", "some-password") c.Assert(err, jc.ErrorIsNil) s.checkUnitInstalled(c, "principal/1", "some-password") s.assertUpstartCount(c, 3) err = manager.DeployUnit("subordinate/2", "fake-password") c.Assert(err, jc.ErrorIsNil) s.checkUnitInstalled(c, "subordinate/2", "fake-password") s.assertUpstartCount(c, 4) // Verify the newly deployed units are also discoverable. units, err = manager.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.HasLen, 4) sort.Strings(units) c.Assert(units, gc.DeepEquals, []string{"mysql/0", "nrpe/0", "principal/1", "subordinate/2"}) // Recall all of them - should work ok. unitCount := 4 for _, unitName := range units { err = manager.RecallUnit(unitName) c.Assert(err, jc.ErrorIsNil) unitCount-- s.checkUnitRemoved(c, unitName) s.assertUpstartCount(c, unitCount) } // Verify they're no longer discoverable. units, err = manager.DeployedUnits() c.Assert(err, jc.ErrorIsNil) c.Assert(units, gc.HasLen, 0) } type SimpleToolsFixture struct { dataDir string logDir string origPath string binDir string data *svctesting.FakeServiceData } var fakeJujud = "#!/bin/bash --norc\n# fake-jujud\nexit 0\n" func (fix *SimpleToolsFixture) SetUp(c *gc.C, dataDir string) { fix.dataDir = dataDir fix.logDir = c.MkDir() current := version.Binary{ Number: jujuversion.Current, Arch: arch.HostArch(), Series: series.HostSeries(), } toolsDir := tools.SharedToolsDir(fix.dataDir, current) err := os.MkdirAll(toolsDir, 0755) c.Assert(err, jc.ErrorIsNil) jujudPath := filepath.Join(toolsDir, "jujud") err = ioutil.WriteFile(jujudPath, []byte(fakeJujud), 0755) c.Assert(err, jc.ErrorIsNil) toolsPath := filepath.Join(toolsDir, "downloaded-tools.txt") testTools := coretools.Tools{Version: current, URL: "http://testing.invalid/tools"} data, err := json.Marshal(testTools) c.Assert(err, jc.ErrorIsNil) err = ioutil.WriteFile(toolsPath, data, 0644) c.Assert(err, jc.ErrorIsNil) fix.binDir = c.MkDir() fix.origPath = os.Getenv("PATH") os.Setenv("PATH", fix.binDir+":"+fix.origPath) fix.makeBin(c, "status", `echo "blah stop/waiting"`) fix.makeBin(c, "stopped-status", `echo "blah stop/waiting"`) fix.makeBin(c, "started-status", `echo "blah start/running, process 666"`) fix.makeBin(c, "start", "cp $(which started-status) $(which status)") fix.makeBin(c, "stop", "cp $(which stopped-status) $(which status)") fix.data = svctesting.NewFakeServiceData() } func (fix *SimpleToolsFixture) TearDown(c *gc.C) { os.Setenv("PATH", fix.origPath) } func (fix *SimpleToolsFixture) makeBin(c *gc.C, name, script string) { path := filepath.Join(fix.binDir, name) err := ioutil.WriteFile(path, []byte("#!/bin/bash --norc\n"+script), 0755) c.Assert(err, jc.ErrorIsNil) } func (fix *SimpleToolsFixture) assertUpstartCount(c *gc.C, count int) { c.Assert(fix.data.InstalledNames(), gc.HasLen, count) } func (fix *SimpleToolsFixture) getContext(c *gc.C) *deployer.SimpleContext { config := agentConfig(names.NewMachineTag("99"), fix.dataDir, fix.logDir) return deployer.NewTestSimpleContext(config, fix.logDir, fix.data) } func (fix *SimpleToolsFixture) getContextForMachine(c *gc.C, machineTag names.Tag) *deployer.SimpleContext { config := agentConfig(machineTag, fix.dataDir, fix.logDir) return deployer.NewTestSimpleContext(config, fix.logDir, fix.data) } func (fix *SimpleToolsFixture) paths(tag names.Tag) (agentDir, toolsDir string) { agentDir = agent.Dir(fix.dataDir, tag) toolsDir = tools.ToolsDir(fix.dataDir, tag.String()) return } func (fix *SimpleToolsFixture) checkUnitInstalled(c *gc.C, name, password string) { tag := names.NewUnitTag(name) svcName := "jujud-" + tag.String() assertContains(c, fix.data.InstalledNames(), svcName) svcConf := fix.data.GetInstalled(svcName).Conf() // TODO(ericsnow) For now we just use upstart serialization. uconfData, err := upstart.Serialize(svcName, svcConf) c.Assert(err, jc.ErrorIsNil) uconf := string(uconfData) regex := regexp.MustCompile("(?m)(?:^\\s)*exec\\s.+$") execs := regex.FindAllString(uconf, -1) if nil == execs { c.Fatalf("no command found in conf:\n%s", uconf) } else if 1 > len(execs) { c.Fatalf("Test is not built to handle more than one exec line.") } _, toolsDir := fix.paths(tag) jujudPath := filepath.Join(toolsDir, "jujud"+cmdSuffix) logPath := filepath.Join(fix.logDir, tag.String()+".log") for _, pat := range []string{ "^exec " + quote + jujudPath + quote + " unit ", " --unit-name " + name + " ", " >> " + logPath + " 2>&1$", } { match, err := regexp.MatchString(pat, execs[0]) c.Assert(err, jc.ErrorIsNil) if !match { c.Fatalf("failed to match:\n%s\nin:\n%s", pat, execs[0]) } } conf, err := agent.ReadConfig(agent.ConfigPath(fix.dataDir, tag)) c.Assert(err, jc.ErrorIsNil) c.Assert(conf.Tag(), gc.Equals, tag) c.Assert(conf.DataDir(), gc.Equals, fix.dataDir) jujudData, err := ioutil.ReadFile(jujudPath) c.Assert(err, jc.ErrorIsNil) c.Assert(string(jujudData), gc.Equals, fakeJujud) } func (fix *SimpleToolsFixture) checkUnitRemoved(c *gc.C, name string) { assertNotContains(c, fix.data.InstalledNames(), name) tag := names.NewUnitTag(name) agentDir, toolsDir := fix.paths(tag) for _, path := range []string{agentDir, toolsDir} { _, err := ioutil.ReadFile(path) if err == nil { c.Logf("Warning: %q not removed as expected", path) } else { c.Assert(err, jc.Satisfies, os.IsNotExist) } } } func (fix *SimpleToolsFixture) injectUnit(c *gc.C, name, unitTag string) { fix.data.SetStatus(name, "installed") toolsDir := filepath.Join(fix.dataDir, "tools", unitTag) err := os.MkdirAll(toolsDir, 0755) c.Assert(err, jc.ErrorIsNil) } type mockConfig struct { agent.Config tag names.Tag datadir string logdir string upgradedToVersion version.Number jobs []multiwatcher.MachineJob } func (mock *mockConfig) Tag() names.Tag { return mock.tag } func (mock *mockConfig) DataDir() string { return mock.datadir } func (mock *mockConfig) LogDir() string { return mock.logdir } func (mock *mockConfig) Jobs() []multiwatcher.MachineJob { return mock.jobs } func (mock *mockConfig) UpgradedToVersion() version.Number { return mock.upgradedToVersion } func (mock *mockConfig) WriteUpgradedToVersion(newVersion version.Number) error { mock.upgradedToVersion = newVersion return nil } func (mock *mockConfig) Model() names.ModelTag { return testing.ModelTag } func (mock *mockConfig) Controller() names.ControllerTag { return testing.ControllerTag } func (mock *mockConfig) CACert() string { return testing.CACert } func (mock *mockConfig) Value(_ string) string { return "" } func agentConfig(tag names.Tag, datadir, logdir string) agent.Config { return &mockConfig{tag: tag, datadir: datadir, logdir: logdir} } // assertContains asserts a needle is contained within haystack func assertContains(c *gc.C, haystack []string, needle string) { c.Assert(contains(haystack, needle), jc.IsTrue) } // assertNotContains asserts a needle is not contained within haystack func assertNotContains(c *gc.C, haystack []string, needle string) { c.Assert(contains(haystack, needle), gc.Not(jc.IsTrue)) } func contains(haystack []string, needle string) bool { for _, e := range haystack { if e == needle { return true } } return false }
perrito666/juju
worker/deployer/simple_test.go
GO
agpl-3.0
10,677
[ 30522, 1013, 1013, 9385, 2262, 1010, 2286, 18562, 5183, 1012, 1013, 1013, 7000, 2104, 1996, 12943, 24759, 2615, 2509, 1010, 2156, 11172, 5371, 2005, 4751, 1012, 7427, 21296, 2121, 1035, 3231, 12324, 1006, 1000, 17181, 1013, 1046, 3385, 1000, 1000, 22834, 1013, 22834, 21823, 2140, 1000, 1000, 9808, 1000, 1000, 4130, 1013, 5371, 15069, 1000, 1000, 19723, 10288, 2361, 1000, 1000, 2448, 7292, 1000, 1000, 4066, 1000, 29175, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 5604, 1013, 4638, 2545, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 21183, 12146, 1013, 7905, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 21183, 12146, 1013, 2186, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 2544, 1000, 1043, 2278, 1000, 2175, 2361, 2243, 2290, 1012, 1999, 1013, 4638, 1012, 1058, 2487, 1000, 1000, 2175, 2361, 2243, 2290, 1012, 1999, 1013, 18414, 9103, 1013, 3415, 1012, 1058, 2475, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 4005, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 4005, 1013, 5906, 1000, 17917, 6593, 4355, 2075, 1000, 21025, 2705, 12083, 1012, 30524, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 2110, 1013, 4800, 18866, 2121, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 5604, 1000, 4563, 3406, 27896, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 5906, 1000, 18414, 9103, 27774, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 2544, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 7309, 1013, 21296, 2121, 1000, 1007, 13075, 14686, 1010, 4642, 5104, 16093, 8873, 2595, 5164, 4569, 2278, 1999, 4183, 1006, 1007, 1063, 14686, 1027, 1000, 1005, 1000, 2065, 2448, 7292, 1012, 27571, 2015, 1027, 1027, 1000, 3645, 1000, 1063, 4642, 5104, 16093, 8873, 2595, 1027, 1000, 1012, 4654, 2063, 1000, 14686, 1027, 1036, 1000, 1036, 1065, 1065, 2828, 3722, 8663, 18209, 28880, 2063, 2358, 6820, 6593, 1063, 3722, 3406, 27896, 8873, 18413, 5397, 1065, 13075, 1035, 1027, 1043, 2278, 1012, 7621, 1006, 1004, 3722, 8663, 18209, 28880, 2063, 1063, 1065, 1007, 4569, 2278, 1006, 1055, 1008, 3722, 8663, 18209, 28880, 2063, 1007, 16437, 22199, 1006, 1039, 1008, 1043, 2278, 1012, 1039, 1007, 1063, 1055, 1012, 3722, 3406, 27896, 8873, 18413, 5397, 1012, 16437, 1006, 1039, 1010, 1039, 1012, 12395, 4305, 2099, 1006, 1007, 1007, 1065, 4569, 2278, 1006, 1055, 1008, 3722, 8663, 18209, 28880, 2063, 1007, 7697, 7698, 22199, 1006, 1039, 1008, 1043, 2278, 1012, 1039, 1007, 1063, 1055, 1012, 3722, 3406, 27896, 8873, 18413, 5397, 1012, 7697, 7698, 1006, 1039, 1007, 1065, 4569, 2278, 1006, 1055, 1008, 3722, 8663, 18209, 28880, 2063, 1007, 3231, 3207, 30523, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 2326, 1013, 2691, 1013, 5604, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 2326, 1013, 11139, 7559, 2102, 1000, 1000, 21025, 2705, 12083, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 2326, 1013, 2691, 1013, 5604, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 18414, 9103, 1013, 18414, 9103, 1013, 2326, 1013, 11139, 7559, 2102, 1000, 1000, 21025, 2705, 12083, 1012, 30526 ]
/* * This file is part of the Turtle project * * (c) 2011 Julien Brochet <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package turtle.gui.panel; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.BorderFactory; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.Border; import turtle.behavior.team.TeamBehaviorInterface; import turtle.controller.Kernel; import turtle.entity.Team; import turtle.util.Log; /** * Représentation du panel permettant le changement du * comportement d'une équipe * * @author Julien Brochet <[email protected]> * @since 1.0 */ public class TeamBehaviorPanel extends JPanel implements ActionListener { /** * L'équipe concernée */ protected Team mTeam; /** * Le contrôlleur */ protected Kernel mKernel; public TeamBehaviorPanel(Kernel kernel, Team team) { mTeam = team; mKernel = kernel; initialize(); } /** * Création de la fenêtre et de ses composants */ private void initialize() { Border paddingBorder = BorderFactory.createEmptyBorder(0,10,10,0); JLabel label = new JLabel("Comportement de l'équipe " + mTeam.getName()); label.setBorder(paddingBorder); JComboBox comboBox = new JComboBox(mTeam.getAvailableBehaviors().toArray()); comboBox.addActionListener(this); comboBox.setSelectedIndex(-1); setLayout(new BorderLayout()); add(label, BorderLayout.NORTH); add(comboBox, BorderLayout.SOUTH); } @Override public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox) e.getSource(); TeamBehaviorInterface behavior = (TeamBehaviorInterface) cb.getSelectedItem(); TeamBehaviorInterface oldBehavior = mTeam.getBehavior(); if (behavior != oldBehavior) { Log.i(String.format("Behavior change for Team %s (old=%s, new=%s)", mTeam.getName(), mTeam.getBehavior(), behavior)); mKernel.changeTeamBehavior(mTeam, behavior); } } }
aerialls/Turtle
src/turtle/gui/panel/TeamBehaviorPanel.java
Java
mit
2,309
[ 30522, 1013, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 1996, 13170, 2622, 1008, 1008, 1006, 1039, 1007, 2249, 19290, 22953, 20318, 1026, 19290, 1012, 22953, 20318, 1030, 3802, 2226, 1012, 4895, 12848, 1011, 10241, 2487, 1012, 10424, 1028, 1008, 1008, 2005, 1996, 2440, 9385, 1998, 6105, 2592, 1010, 3531, 3193, 1996, 6105, 1008, 5371, 2008, 2001, 5500, 2007, 2023, 3120, 3642, 1012, 1008, 1013, 7427, 13170, 1012, 26458, 1012, 5997, 1025, 12324, 9262, 1012, 22091, 2102, 1012, 3675, 8485, 5833, 1025, 12324, 9262, 1012, 22091, 2102, 1012, 2724, 1012, 2895, 18697, 3372, 1025, 12324, 9262, 1012, 22091, 2102, 1012, 2724, 1012, 2895, 9863, 24454, 1025, 12324, 9262, 2595, 1012, 7370, 1012, 3675, 21450, 1025, 12324, 9262, 2595, 1012, 7370, 1012, 29175, 5358, 5092, 8758, 1025, 12324, 9262, 2595, 1012, 7370, 1012, 1046, 20470, 2884, 1025, 12324, 9262, 2595, 1012, 7370, 1012, 16545, 7231, 2140, 1025, 12324, 9262, 2595, 1012, 7370, 1012, 3675, 30524, 21183, 4014, 1012, 8833, 1025, 1013, 1008, 1008, 1008, 6630, 4241, 5997, 2566, 11368, 5794, 2102, 3393, 2689, 3672, 4241, 1008, 4012, 6442, 13665, 1040, 1005, 16655, 1041, 15549, 5051, 1008, 1008, 1030, 3166, 19290, 22953, 20318, 1026, 19290, 1012, 22953, 20318, 1030, 3802, 2226, 1012, 4895, 12848, 1011, 10241, 2487, 1012, 10424, 1028, 1008, 1030, 2144, 1015, 1012, 1014, 1008, 1013, 2270, 2465, 2136, 4783, 3270, 25500, 14536, 7231, 2140, 8908, 16545, 7231, 2140, 22164, 2895, 9863, 24454, 1063, 1013, 1008, 1008, 1008, 1048, 1005, 1041, 15549, 5051, 5142, 4402, 1008, 1013, 5123, 2136, 11047, 5243, 2213, 1025, 1013, 1008, 1008, 1008, 3393, 2491, 2571, 3126, 1008, 1013, 5123, 16293, 12395, 11795, 2884, 1025, 2270, 2136, 4783, 3270, 25500, 14536, 7231, 2140, 1006, 16293, 16293, 1010, 2136, 2136, 1007, 1063, 11047, 5243, 2213, 1027, 2136, 1025, 12395, 11795, 2884, 1027, 16293, 1025, 3988, 4697, 1006, 1007, 1025, 1065, 1013, 1008, 1008, 1008, 4325, 2139, 2474, 21713, 3388, 2890, 3802, 2139, 7367, 2015, 4012, 6873, 22341, 2015, 1008, 1013, 2797, 11675, 3988, 4697, 1006, 1007, 1063, 3675, 11687, 4667, 12821, 4063, 1027, 3675, 21450, 1012, 3443, 6633, 13876, 2100, 12821, 4063, 1006, 1014, 1010, 2184, 1010, 2184, 1010, 1014, 1007, 1025, 1046, 20470, 2884, 3830, 1027, 2047, 1046, 20470, 2884, 1006, 1000, 4012, 6442, 13665, 2139, 1048, 1005, 1041, 15549, 5051, 1000, 1009, 11047, 5243, 2213, 1012, 2131, 18442, 1006, 1007, 1007, 1025, 3830, 1012, 2275, 12821, 4063, 1006, 11687, 4667, 12821, 4063, 1007, 1025, 29175, 5358, 5092, 8758, 25025, 8758, 1027, 2047, 29175, 5358, 5092, 8758, 1006, 11047, 5243, 2213, 1012, 2131, 12462, 11733, 3468, 4783, 3270, 25500, 2869, 1006, 1007, 1012, 2000, 2906, 9447, 1006, 1007, 1007, 1025, 25025, 8758, 1012, 5587, 18908, 3258, 9863, 24454, 1006, 2023, 1007, 1025, 25025, 8758, 1012, 4520, 12260, 10985, 22254, 10288, 1006, 1011, 1015, 1007, 1025, 2275, 8485, 5833, 1006, 2047, 3675, 8485, 30523, 1012, 3675, 1025, 12324, 13170, 1012, 5248, 1012, 2136, 1012, 2136, 4783, 3270, 25500, 6657, 3334, 12172, 1025, 12324, 13170, 1012, 11486, 1012, 16293, 1025, 12324, 13170, 1012, 9178, 1012, 2136, 1025, 12324, 13170, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 3675, 1025, 12324, 13170, 1012, 5248, 1012, 2136, 1012, 2136, 4783, 3270, 25500, 6657, 3334, 12172, 1025, 12324, 13170, 1012, 11486, 1012, 16293, 1025, 12324, 13170, 1012, 9178, 1012, 2136, 1025, 12324, 13170, 1012, 30526 ]
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ package org.apache.toree.kernel.interpreter.sql import org.apache.toree.kernel.api.KernelLike import java.io.ByteArrayOutputStream import org.apache.toree.interpreter.broker.BrokerService import org.apache.toree.kernel.interpreter.sql.SqlTypes._ import org.apache.spark.sql.SQLContext import scala.concurrent.{Future, future} /** * Represents the service that provides the high-level interface between the * JVM and Spark SQL. * * @param kernel The SQL Context of Apache Spark to use to perform SQL * queries */ class SqlService(private val kernel: KernelLike) extends BrokerService { import scala.concurrent.ExecutionContext.Implicits.global @volatile private var _isRunning: Boolean = false override def isRunning: Boolean = _isRunning /** * Submits code to the broker service to be executed and return a result. * * @param code The code to execute * * @return The result as a future to eventually return */ override def submitCode(code: Code): Future[CodeResults] = future { println(s"Executing: '${code.trim}'") val result = kernel.sqlContext.sql(code.trim) // TODO: There is an internal method used for show called showString that // supposedly is only for the Python API, look into why val stringOutput = { val outputStream = new ByteArrayOutputStream() Console.withOut(outputStream) { // TODO: Provide some way to change the number of records shown result.show(10) } outputStream.toString("UTF-8") } stringOutput } /** Stops the running broker service. */ override def stop(): Unit = _isRunning = false /** Starts the broker service. */ override def start(): Unit = _isRunning = true }
kapil-malik/incubator-toree
sql-interpreter/src/main/scala/org/apache/toree/kernel/interpreter/sql/SqlService.scala
Scala
apache-2.0
2,552
[ 30522, 1013, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 2030, 2062, 1008, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 5500, 2007, 1008, 2023, 2147, 2005, 3176, 2592, 4953, 9385, 6095, 1012, 1008, 1996, 2004, 2546, 15943, 2023, 5371, 2000, 2017, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1008, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1008, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 30524, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1008, 1013, 7427, 8917, 1012, 15895, 1012, 9538, 2063, 1012, 16293, 1012, 19555, 1012, 29296, 12324, 8917, 1012, 15895, 1012, 9538, 2063, 1012, 16293, 1012, 17928, 1012, 16293, 10359, 12324, 9262, 1012, 22834, 1012, 24880, 2906, 9447, 5833, 18780, 21422, 12324, 8917, 1012, 15895, 1012, 9538, 2063, 1012, 19555, 1012, 20138, 1012, 20138, 8043, 7903, 2063, 12324, 8917, 1012, 15895, 1012, 9538, 2063, 1012, 16293, 1012, 19555, 1012, 29296, 1012, 29296, 13874, 2015, 1012, 1035, 12324, 8917, 1012, 15895, 1012, 12125, 1012, 29296, 1012, 29296, 8663, 18209, 12324, 26743, 1012, 16483, 1012, 1063, 2925, 1010, 2925, 1065, 1013, 1008, 1008, 1008, 5836, 1996, 2326, 2008, 3640, 1996, 2152, 1011, 2504, 8278, 2090, 1996, 1008, 1046, 2615, 2213, 1998, 12125, 29296, 1012, 1008, 1008, 1030, 11498, 2213, 16293, 1996, 29296, 6123, 1997, 15895, 12125, 2000, 2224, 2000, 4685, 29296, 1008, 10861, 5134, 1008, 1013, 2465, 29296, 8043, 7903, 2063, 1006, 2797, 11748, 16293, 1024, 16293, 10359, 1007, 8908, 20138, 8043, 7903, 2063, 1063, 12324, 26743, 1012, 16483, 1012, 7781, 8663, 18209, 1012, 24655, 2015, 1012, 3795, 1030, 20606, 2797, 13075, 1035, 2003, 15532, 5582, 1024, 22017, 20898, 1027, 6270, 2058, 15637, 13366, 2003, 15532, 5582, 1024, 22017, 20898, 1027, 1035, 2003, 15532, 5582, 1013, 1008, 1008, 1008, 12040, 2015, 3642, 2000, 1996, 20138, 2326, 2000, 2022, 6472, 1998, 2709, 1037, 2765, 1012, 1008, 1008, 1030, 11498, 2213, 3642, 1996, 3642, 2000, 15389, 1008, 1008, 1030, 2709, 1996, 2765, 2004, 1037, 2925, 2000, 2776, 2709, 1008, 1013, 2058, 15637, 13366, 12040, 16044, 1006, 3642, 1024, 3642, 1007, 1024, 2925, 1031, 3642, 6072, 11314, 2015, 1033, 1027, 2925, 1063, 6140, 19666, 1006, 1055, 1000, 23448, 1024, 1005, 1002, 1063, 3642, 1012, 12241, 1065, 1005, 1000, 1007, 11748, 2765, 1027, 16293, 1012, 29296, 8663, 18209, 1012, 29296, 1006, 3642, 1012, 12241, 1007, 1013, 1013, 28681, 2080, 1024, 2045, 2003, 2019, 4722, 4118, 2109, 2005, 2265, 2170, 3065, 18886, 3070, 2008, 1013, 1013, 10743, 2003, 2069, 2005, 1996, 18750, 17928, 1010, 2298, 2046, 2339, 11748, 5164, 30523, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 30526 ]
[ 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 30526 ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from djangocms_carousel import __version__ INSTALL_REQUIRES = [ ] CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Communications', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Message Boards', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ] setup( name='djangocms-carousel', version=__version__, description='Slider Plugin for django CMS', author='Andrew Mirsky', author_email='[email protected]', url='https://git.mirsky.net/mirskyconsulting/djangocms-carousel', packages=['djangocms_carousel', 'djangocms_carousel.migrations'], install_requires=INSTALL_REQUIRES, license='LICENSE.txt', platforms=['OS Independent'], classifiers=CLASSIFIERS, long_description=open('README.md').read(), include_package_data=True, zip_safe=False )
mirskytech/djangocms-carousel
setup.py
Python
bsd-3-clause
1,241
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 18750, 1001, 1011, 1008, 1011, 16861, 1024, 21183, 2546, 1011, 1022, 1011, 1008, 1011, 2013, 16437, 3406, 27896, 12324, 16437, 2013, 6520, 23422, 27487, 2015, 1035, 27628, 12324, 1035, 1035, 2544, 1035, 1035, 16500, 1035, 5942, 1027, 1031, 1033, 2465, 28295, 1027, 1031, 1005, 2458, 3570, 1024, 1024, 1019, 1011, 2537, 1013, 6540, 1005, 1010, 1005, 4044, 1024, 1024, 4773, 4044, 1005, 1010, 1005, 7705, 1024, 1024, 6520, 23422, 1005, 1010, 1005, 3832, 4378, 1024, 1024, 9797, 1005, 1010, 1005, 6105, 1024, 1024, 9808, 2072, 4844, 1024, 1024, 18667, 2094, 6105, 1005, 1010, 1005, 4082, 2291, 1024, 1024, 9808, 2981, 1005, 1010, 1005, 4730, 2653, 1024, 1024, 18750, 1005, 1010, 1005, 8476, 1024, 1024, 4806, 1005, 1010, 1005, 8476, 1024, 1024, 4274, 1024, 1024, 7479, 1013, 8299, 1024, 1024, 8790, 4180, 1005, 1010, 1005, 8476, 1024, 1024, 4274, 1024, 1024, 7479, 1013, 8299, 1024, 1024, 8790, 4180, 1024, 1024, 4471, 7923, 1005, 1010, 1005, 4730, 2653, 1024, 1024, 18750, 1024, 1024, 1016, 1012, 1020, 1005, 1010, 1005, 4730, 2653, 1024, 1024, 18750, 1024, 1024, 1016, 1012, 1021, 1005, 1010, 1033, 16437, 1006, 2171, 1027, 1005, 6520, 23422, 27487, 2015, 1011, 27628, 1005, 1010, 2544, 1027, 1035, 1035, 2544, 1035, 1035, 1010, 6412, 1027, 1005, 7358, 2099, 13354, 2378, 2005, 6520, 23422, 4642, 2015, 1005, 1010, 3166, 1027, 1005, 4080, 14719, 5874, 1005, 1010, 3166, 1035, 10373, 1027, 1005, 4080, 1030, 14719, 5874, 1012, 5658, 1005, 1010, 24471, 2140, 1027, 1005, 16770, 1024, 1013, 1013, 21025, 2102, 1012, 14719, 5874, 1012, 5658, 1013, 14719, 5874, 8663, 23722, 3436, 1013, 6520, 23422, 27487, 2015, 1011, 27628, 1005, 1010, 14555, 1027, 1031, 1005, 6520, 23422, 27487, 2015, 1035, 27628, 1005, 1010, 1005, 6520, 23422, 27487, 2015, 1035, 27628, 1012, 9230, 2015, 1005, 1033, 1010, 16500, 1035, 5942, 1027, 16500, 1035, 5942, 1010, 6105, 1027, 1005, 6105, 1012, 19067, 2102, 1005, 1010, 7248, 1027, 1031, 1005, 9808, 2981, 1005, 1033, 1010, 2465, 28295, 1027, 2465, 28295, 1010, 2146, 1035, 6412, 1027, 2330, 1006, 1005, 3191, 4168, 1012, 9108, 1005, 1007, 1012, 3191, 1006, 1007, 1010, 2421, 1035, 7427, 1035, 2951, 1027, 2995, 1010, 14101, 1035, 3647, 1027, 6270, 1007, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
@echo off rem rem ADOBE SYSTEMS INCORPORATED rem Copyright 2007 Adobe Systems Incorporated rem All Rights Reserved. rem rem NOTICE: Adobe permits you to use, modify, and distribute this file rem in accordance with the terms of the license agreement accompanying it. rem rem rem acompc.bat script for Windows. rem This simply executes compc.exe in the same directory, rem inserting the option +configname=air, which makes rem compc.exe use air-config.xml instead of flex-config.xml. rem On Unix, acompc is used instead. rem "%~dp0compc.exe" +configname=air %*
ArcherSys/ArcherSys
drives/Flex/bin/acompc.bat
Batchfile
mit
565
[ 30522, 1030, 9052, 2125, 2128, 2213, 2128, 2213, 18106, 3001, 5100, 2128, 2213, 9385, 2289, 18106, 3001, 5100, 2128, 2213, 2035, 2916, 9235, 1012, 2128, 2213, 2128, 2213, 5060, 1024, 18106, 14245, 2017, 2000, 2224, 1010, 19933, 1010, 1998, 16062, 2023, 5371, 30524, 2063, 1999, 1996, 2168, 14176, 1010, 2128, 2213, 19274, 2075, 1996, 5724, 1009, 9530, 8873, 16989, 4168, 1027, 2250, 1010, 2029, 3084, 2128, 2213, 4012, 15042, 1012, 4654, 2063, 2224, 2250, 1011, 9530, 8873, 2290, 1012, 20950, 2612, 1997, 23951, 1011, 9530, 8873, 2290, 1012, 20950, 1012, 2128, 2213, 2006, 19998, 1010, 9353, 25377, 2278, 2003, 2109, 2612, 1012, 2128, 2213, 1000, 1003, 1066, 1040, 2361, 2692, 9006, 15042, 1012, 4654, 2063, 1000, 1009, 9530, 8873, 16989, 4168, 1027, 2250, 1003, 1008, 102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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2128, 2213, 1999, 10388, 2007, 1996, 3408, 1997, 1996, 6105, 3820, 10860, 2009, 1012, 2128, 2213, 2128, 2213, 2128, 2213, 9353, 25377, 2278, 1012, 7151, 5896, 2005, 3645, 1012, 2128, 2213, 2023, 3432, 15389, 2015, 4012, 15042, 1012, 4654, 30526 ]
/* * Copyright (c) 2011-2015 EPFL DATA Laboratory * Copyright (c) 2014-2015 The Squall Collaboration (see NOTICE) * * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ch.epfl.data.squall.components.theta; import ch.epfl.data.squall.components.Component; import ch.epfl.data.squall.components.JoinerComponent; import ch.epfl.data.squall.query_plans.QueryBuilder; import ch.epfl.data.squall.utilities.SystemParameters; public class ThetaJoinComponentFactory { public static JoinerComponent createThetaJoinOperator(int thetaJoinType, Component firstParent, Component secondParent, QueryBuilder queryBuilder) { JoinerComponent result = null; if (thetaJoinType == SystemParameters.STATIC_CIS) { result = new ThetaJoinComponent(firstParent, secondParent, false); } else if (thetaJoinType == SystemParameters.EPOCHS_CIS) { result = new AdaptiveThetaJoinComponent(firstParent, secondParent); } else if (thetaJoinType == SystemParameters.STATIC_CS) { result = new ThetaJoinComponent(firstParent, secondParent, true); } else if (thetaJoinType == SystemParameters.EPOCHS_CS) { result = new AdaptiveThetaJoinComponent(firstParent, secondParent); } else { throw new RuntimeException("Unsupported Thtea Join Type"); } queryBuilder.add(result); return result; } }
mt0803/squall
squall-core/src/main/java/ch/epfl/data/squall/components/theta/ThetaJoinComponentFactory.java
Java
apache-2.0
1,892
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2249, 1011, 2325, 4958, 10258, 2951, 5911, 1008, 9385, 1006, 1039, 1007, 2297, 1011, 2325, 1996, 5490, 8787, 2140, 5792, 1006, 2156, 5060, 1007, 1008, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 10381, 1012, 4958, 10258, 1012, 2951, 1012, 5490, 8787, 2140, 1012, 6177, 1012, 23963, 1025, 12324, 10381, 1012, 4958, 10258, 1012, 2951, 1012, 5490, 8787, 2140, 1012, 6177, 1012, 6922, 1025, 12324, 10381, 1012, 4958, 10258, 1012, 2951, 1012, 5490, 8787, 2140, 1012, 6177, 1012, 3693, 2121, 9006, 29513, 3372, 1025, 12324, 10381, 1012, 4958, 10258, 1012, 2951, 1012, 5490, 8787, 2140, 1012, 23032, 1035, 3488, 1012, 23032, 8569, 23891, 2099, 1025, 12324, 10381, 1012, 4958, 10258, 1012, 2951, 1012, 5490, 8787, 2140, 1012, 16548, 1012, 2291, 28689, 22828, 2015, 1025, 2270, 2465, 23963, 5558, 2378, 9006, 29513, 3372, 30524, 3372, 2765, 1027, 19701, 1025, 2065, 1006, 23963, 5558, 18447, 18863, 1027, 1027, 2291, 28689, 22828, 2015, 1012, 10763, 1035, 20199, 1007, 1063, 2765, 1027, 2047, 23963, 5558, 2378, 9006, 29513, 3372, 1006, 2034, 19362, 4765, 1010, 2117, 19362, 4765, 1010, 6270, 1007, 1025, 1065, 2842, 2065, 1006, 23963, 5558, 18447, 18863, 1027, 1027, 2291, 28689, 22828, 2015, 1012, 25492, 2015, 1035, 20199, 1007, 1063, 2765, 1027, 2047, 19293, 10760, 2696, 5558, 2378, 9006, 29513, 3372, 1006, 2034, 19362, 4765, 1010, 2117, 19362, 4765, 1007, 1025, 1065, 2842, 2065, 1006, 23963, 5558, 18447, 18863, 1027, 1027, 2291, 28689, 22828, 2015, 1012, 10763, 1035, 20116, 1007, 1063, 2765, 1027, 2047, 23963, 5558, 2378, 9006, 29513, 3372, 1006, 2034, 19362, 4765, 1010, 2117, 19362, 4765, 1010, 2995, 1007, 1025, 1065, 2842, 2065, 1006, 23963, 5558, 18447, 18863, 1027, 1027, 2291, 28689, 22828, 2015, 1012, 25492, 2015, 1035, 20116, 1007, 1063, 2765, 1027, 2047, 19293, 10760, 2696, 5558, 2378, 9006, 29513, 3372, 1006, 2034, 19362, 4765, 1010, 2117, 19362, 4765, 1007, 1025, 1065, 2842, 1063, 5466, 2047, 2448, 7292, 10288, 24422, 1006, 1000, 4895, 6342, 9397, 15613, 16215, 27058, 3693, 2828, 30523, 21450, 1063, 2270, 10763, 3693, 2121, 9006, 29513, 3372, 3443, 10760, 2696, 5558, 5740, 4842, 8844, 1006, 20014, 23963, 5558, 18447, 18863, 1010, 6922, 2034, 19362, 4765, 1010, 6922, 2117, 19362, 4765, 1010, 23032, 8569, 23891, 2099, 23032, 8569, 23891, 2099, 1007, 1063, 3693, 2121, 9006, 29513, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 21450, 1063, 2270, 10763, 3693, 2121, 9006, 29513, 3372, 3443, 10760, 2696, 5558, 5740, 4842, 8844, 1006, 20014, 23963, 5558, 18447, 18863, 1010, 6922, 2034, 19362, 4765, 1010, 6922, 2117, 19362, 4765, 1010, 23032, 8569, 23891, 2099, 23032, 8569, 23891, 2099, 1007, 1063, 3693, 2121, 9006, 29513, 30526 ]
#!/usr/bin/env python # # Copyright 2020 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import gr, gr_unittest import random, numpy from gnuradio import digital, blocks, channels class qa_linear_equalizer(gr_unittest.TestCase): def unpack_values(self, values_in, bits_per_value, bits_per_symbol): # verify that 8 is divisible by bits_per_symbol m = bits_per_value / bits_per_symbol # print(m) mask = 2**(bits_per_symbol)-1 if bits_per_value != m*bits_per_symbol: print("error - bits per symbols must fit nicely into bits_per_value bit values") return [] num_values = len(values_in) num_symbols = int(num_values*( m) ) cur_byte = 0 cur_bit = 0 out = [] for i in range(num_symbols): s = (values_in[cur_byte] >> (bits_per_value-bits_per_symbol-cur_bit)) & mask out.append(s) cur_bit += bits_per_symbol if cur_bit >= bits_per_value: cur_bit = 0 cur_byte += 1 return out def map_symbols_to_constellation(self, symbols, cons): l = list(map(lambda x: cons.points()[x], symbols)) return l def setUp(self): random.seed(987654) self.tb = gr.top_block() self.num_data = num_data = 10000 self.sps = sps = 4 self.eb = eb = 0.35 self.preamble = preamble = [0x27,0x2F,0x18,0x5D,0x5B,0x2A,0x3F,0x71,0x63,0x3C,0x17,0x0C,0x0A,0x41,0xD6,0x1F,0x4C,0x23,0x65,0x68,0xED,0x1C,0x77,0xA7,0x0E,0x0A,0x9E,0x47,0x82,0xA4,0x57,0x24,] self.payload_size = payload_size = 300 # bytes self.data = data = [0]*4+[random.getrandbits(8) for i in range(payload_size)] self.gain = gain = .001 # LMS gain self.corr_thresh = corr_thresh = 3e6 self.num_taps = num_taps = 16 def tearDown(self): self.tb = None def transform(self, src_data, gain, const): SRC = blocks.vector_source_c(src_data, False) EQU = digital.lms_dd_equalizer_cc(4, gain, 1, const.base()) DST = blocks.vector_sink_c() self.tb.connect(SRC, EQU, DST) self.tb.run() return DST.data() def test_001_identity(self): # Constant modulus signal so no adjustments const = digital.constellation_qpsk() src_data = const.points()*1000 N = 100 # settling time expected_data = src_data[N:] result = self.transform(src_data, 0.1, const)[N:] N = -500 self.assertComplexTuplesAlmostEqual(expected_data[N:], result[N:], 5) def test_qpsk_3tap_lms_training(self): # set up fg gain = 0.01 # LMS gain num_taps = 16 num_samp = 2000 num_test = 500 cons = digital.constellation_qpsk().base() rxmod = digital.generic_mod(cons, False, self.sps, True, self.eb, False, False) modulated_sync_word_pre = digital.modulate_vector_bc(rxmod.to_basic_block(), self.preamble+self.preamble, [1]) modulated_sync_word = modulated_sync_word_pre[86:(512+86)] # compensate for the RRC filter delay corr_max = numpy.abs(numpy.dot(modulated_sync_word,numpy.conj(modulated_sync_word))) corr_calc = self.corr_thresh/(corr_max*corr_max) preamble_symbols = self.map_symbols_to_constellation(self.unpack_values(self.preamble, 8, 2), cons) alg = digital.adaptive_algorithm_lms(cons, gain).base() evm = digital.meas_evm_cc(cons, digital.evm_measurement_t.EVM_PERCENT) leq = digital.linear_equalizer(num_taps, self.sps, alg, False, preamble_symbols, 'corr_est') correst = digital.corr_est_cc(modulated_sync_word, self.sps, 12, corr_calc, digital.THRESHOLD_ABSOLUTE) constmod = digital.generic_mod( constellation=cons, differential=False, samples_per_symbol=4, pre_diff_code=True, excess_bw=0.35, verbose=False, log=False) chan = channels.channel_model( noise_voltage=0.0, frequency_offset=0.0, epsilon=1.0, taps=(1.0 + 1.0j, 0.63-.22j, -.1+.07j), noise_seed=0, block_tags=False) vso = blocks.vector_source_b(self.preamble+self.data, True, 1, []) head = blocks.head(gr.sizeof_float*1, num_samp) vsi = blocks.vector_sink_f() self.tb.connect(vso, constmod, chan, correst, leq, evm, head, vsi) self.tb.run() # look at the last 1000 samples, should converge quickly, below 5% EVM upper_bound = list(20.0*numpy.ones((num_test,))) lower_bound = list(0.0*numpy.zeros((num_test,))) output_data = vsi.data() output_data = output_data[-num_test:] self.assertLess(output_data, upper_bound) self.assertGreater(output_data, lower_bound) if __name__ == '__main__': gr_unittest.run(qa_linear_equalizer)
jdemel/gnuradio
gr-digital/python/digital/qa_linear_equalizer.py
Python
gpl-3.0
5,126
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 18750, 1001, 1001, 9385, 12609, 2489, 4007, 3192, 1010, 4297, 1012, 1001, 1001, 2023, 5371, 2003, 2112, 1997, 27004, 2557, 1001, 1001, 23772, 2595, 1011, 6105, 1011, 8909, 4765, 18095, 1024, 14246, 2140, 1011, 1017, 1012, 1014, 1011, 2030, 1011, 2101, 1001, 1001, 2013, 27004, 12173, 3695, 12324, 24665, 1010, 24665, 1035, 3131, 22199, 12324, 6721, 1010, 16371, 8737, 2100, 2013, 27004, 12173, 3695, 12324, 3617, 1010, 5991, 1010, 6833, 2465, 1053, 2050, 1035, 7399, 1035, 5020, 17629, 1006, 24665, 1035, 3131, 22199, 1012, 3231, 18382, 1007, 1024, 13366, 4895, 23947, 1035, 5300, 1006, 2969, 1010, 5300, 1035, 1999, 1010, 9017, 1035, 2566, 1035, 3643, 1010, 9017, 1035, 2566, 1035, 6454, 1007, 1024, 1001, 20410, 2008, 1022, 2003, 4487, 11365, 7028, 2011, 9017, 1035, 2566, 1035, 6454, 1049, 1027, 9017, 1035, 2566, 1035, 3643, 1013, 9017, 1035, 2566, 1035, 6454, 1001, 6140, 1006, 1049, 1007, 7308, 1027, 1016, 1008, 1008, 1006, 9017, 1035, 2566, 1035, 6454, 1007, 1011, 1015, 2065, 9017, 1035, 2566, 1035, 3643, 999, 1027, 1049, 1008, 9017, 1035, 2566, 1035, 6454, 1024, 6140, 1006, 1000, 7561, 1011, 9017, 2566, 9255, 2442, 4906, 19957, 2046, 9017, 1035, 2566, 1035, 3643, 2978, 5300, 1000, 1007, 2709, 1031, 1033, 16371, 2213, 1035, 5300, 1027, 18798, 1006, 5300, 1035, 1999, 1007, 16371, 2213, 1035, 9255, 1027, 20014, 1006, 16371, 2213, 1035, 5300, 1008, 1006, 1049, 1007, 1007, 12731, 2099, 1035, 24880, 1027, 1014, 12731, 2099, 1035, 2978, 1027, 1014, 2041, 1027, 1031, 1033, 2005, 1045, 1999, 2846, 1006, 16371, 2213, 1035, 9255, 1007, 1024, 1055, 1027, 1006, 5300, 1035, 1999, 1031, 12731, 2099, 1035, 24880, 1033, 1028, 1028, 1006, 9017, 1035, 2566, 1035, 3643, 1011, 9017, 1035, 2566, 1035, 6454, 1011, 12731, 2099, 1035, 2978, 1007, 1007, 1004, 7308, 2041, 1012, 10439, 10497, 1006, 1055, 1007, 12731, 2099, 1035, 2978, 1009, 1027, 9017, 1035, 2566, 1035, 6454, 2065, 12731, 2099, 1035, 2978, 1028, 1027, 9017, 1035, 2566, 1035, 3643, 1024, 12731, 2099, 1035, 2978, 1027, 1014, 12731, 2099, 1035, 24880, 1009, 1027, 1015, 2709, 2041, 13366, 4949, 1035, 9255, 1035, 2000, 1035, 15300, 1006, 2969, 1010, 9255, 1010, 9530, 2015, 1007, 1024, 1048, 1027, 2862, 1006, 4949, 1006, 23375, 1060, 1024, 9530, 2015, 1012, 2685, 1006, 1007, 1031, 1060, 1033, 1010, 9255, 1007, 1007, 2709, 1048, 13366, 16437, 1006, 2969, 1007, 1024, 6721, 1012, 6534, 1006, 5818, 2581, 26187, 2549, 1007, 2969, 1012, 26419, 1027, 24665, 1012, 2327, 1035, 3796, 1006, 1007, 2969, 1012, 16371, 2213, 1035, 2951, 1027, 16371, 2213, 1035, 2951, 1027, 6694, 2692, 2969, 1012, 11867, 2015, 30524, 1012, 3653, 3286, 3468, 1027, 3653, 3286, 3468, 1027, 1031, 1014, 2595, 22907, 1010, 1014, 2595, 2475, 2546, 1010, 1014, 2595, 15136, 1010, 1014, 2595, 2629, 2094, 1010, 1014, 2595, 2629, 2497, 1010, 1014, 2595, 2475, 2050, 1010, 1014, 2595, 2509, 2546, 1010, 1014, 2595, 2581, 2487, 1010, 1014, 2595, 2575, 2509, 30523, 1027, 11867, 2015, 1027, 1018, 2969, 1012, 1041, 2497, 1027, 1041, 2497, 1027, 1014, 1012, 3486, 2969, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1027, 11867, 2015, 1027, 1018, 2969, 1012, 1041, 2497, 1027, 1041, 2497, 1027, 1014, 1012, 3486, 2969, 30526 ]
// 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. #include "content/plugin/webplugin_proxy.h" #include "build/build_config.h" #include "base/bind.h" #include "base/lazy_instance.h" #include "base/memory/scoped_handle.h" #include "base/shared_memory.h" #include "build/build_config.h" #include "content/child/npobject_proxy.h" #include "content/child/npobject_util.h" #include "content/child/plugin_messages.h" #include "content/plugin/plugin_channel.h" #include "content/plugin/plugin_thread.h" #include "content/public/common/content_client.h" #include "content/public/common/url_constants.h" #include "skia/ext/platform_canvas.h" #include "skia/ext/platform_device.h" #include "third_party/WebKit/public/web/WebBindings.h" #include "ui/gfx/blit.h" #include "ui/gfx/canvas.h" #include "webkit/plugins/npapi/webplugin_delegate_impl.h" #if defined(OS_MACOSX) #include "base/mac/mac_util.h" #include "base/mac/scoped_cftyperef.h" #include "content/plugin/webplugin_accelerated_surface_proxy_mac.h" #endif #if defined(USE_X11) #include "ui/base/x/x11_util_internal.h" #endif #if defined(OS_WIN) #include "content/common/plugin_process_messages.h" #include "content/public/common/sandbox_init.h" #endif using WebKit::WebBindings; using webkit::npapi::WebPluginResourceClient; #if defined(OS_MACOSX) using webkit::npapi::WebPluginAcceleratedSurface; #endif namespace content { WebPluginProxy::SharedTransportDIB::SharedTransportDIB(TransportDIB* dib) : dib_(dib) { } WebPluginProxy::SharedTransportDIB::~SharedTransportDIB() { } WebPluginProxy::WebPluginProxy( PluginChannel* channel, int route_id, const GURL& page_url, int host_render_view_routing_id) : channel_(channel), route_id_(route_id), window_npobject_(NULL), plugin_element_(NULL), delegate_(NULL), waiting_for_paint_(false), page_url_(page_url), windowless_buffer_index_(0), host_render_view_routing_id_(host_render_view_routing_id), weak_factory_(this) { #if defined(USE_X11) windowless_shm_pixmaps_[0] = None; windowless_shm_pixmaps_[1] = None; use_shm_pixmap_ = false; // If the X server supports SHM pixmaps // and the color depth and masks match, // then consider using SHM pixmaps for windowless plugin painting. Display* display = ui::GetXDisplay(); if (ui::QuerySharedMemorySupport(display) == ui::SHARED_MEMORY_PIXMAP && ui::BitsPerPixelForPixmapDepth( display, DefaultDepth(display, DefaultScreen(display))) == 32) { Visual* vis = DefaultVisual(display, DefaultScreen(display)); if (vis->red_mask == 0xff0000 && vis->green_mask == 0xff00 && vis->blue_mask == 0xff) use_shm_pixmap_ = true; } #endif } WebPluginProxy::~WebPluginProxy() { #if defined(USE_X11) if (windowless_shm_pixmaps_[0] != None) XFreePixmap(ui::GetXDisplay(), windowless_shm_pixmaps_[0]); if (windowless_shm_pixmaps_[1] != None) XFreePixmap(ui::GetXDisplay(), windowless_shm_pixmaps_[1]); #endif #if defined(OS_MACOSX) // Destroy the surface early, since it may send messages during cleanup. if (accelerated_surface_) accelerated_surface_.reset(); #endif if (plugin_element_) WebBindings::releaseObject(plugin_element_); if (window_npobject_) WebBindings::releaseObject(window_npobject_); } bool WebPluginProxy::Send(IPC::Message* msg) { return channel_->Send(msg); } void WebPluginProxy::SetWindow(gfx::PluginWindowHandle window) { Send(new PluginHostMsg_SetWindow(route_id_, window)); } void WebPluginProxy::SetAcceptsInputEvents(bool accepts) { NOTREACHED(); } void WebPluginProxy::WillDestroyWindow(gfx::PluginWindowHandle window) { #if defined(OS_WIN) PluginThread::current()->Send( new PluginProcessHostMsg_PluginWindowDestroyed( window, ::GetParent(window))); #elif defined(USE_X11) // Nothing to do. #else NOTIMPLEMENTED(); #endif } #if defined(OS_WIN) void WebPluginProxy::SetWindowlessData( HANDLE pump_messages_event, gfx::NativeViewId dummy_activation_window) { HANDLE pump_messages_event_for_renderer = NULL; BrokerDuplicateHandle(pump_messages_event, channel_->peer_pid(), &pump_messages_event_for_renderer, SYNCHRONIZE | EVENT_MODIFY_STATE, 0); DCHECK(pump_messages_event_for_renderer); Send(new PluginHostMsg_SetWindowlessData( route_id_, pump_messages_event_for_renderer, dummy_activation_window)); } #endif void WebPluginProxy::CancelResource(unsigned long id) { Send(new PluginHostMsg_CancelResource(route_id_, id)); resource_clients_.erase(id); } void WebPluginProxy::Invalidate() { gfx::Rect rect(0, 0, delegate_->GetRect().width(), delegate_->GetRect().height()); InvalidateRect(rect); } void WebPluginProxy::InvalidateRect(const gfx::Rect& rect) { #if defined(OS_MACOSX) // If this is a Core Animation plugin, all we need to do is inform the // delegate. if (!windowless_context()) { delegate_->PluginDidInvalidate(); return; } // Some plugins will send invalidates larger than their own rect when // offscreen, so constrain invalidates to the plugin rect. gfx::Rect plugin_rect = delegate_->GetRect(); plugin_rect.set_origin(gfx::Point(0, 0)); plugin_rect.Intersect(rect); const gfx::Rect invalidate_rect(plugin_rect); #else const gfx::Rect invalidate_rect(rect); #endif damaged_rect_.Union(invalidate_rect); // Ignore NPN_InvalidateRect calls with empty rects. Also don't send an // invalidate if it's outside the clipping region, since if we did it won't // lead to a paint and we'll be stuck waiting forever for a DidPaint response. // // TODO(piman): There is a race condition here, because this test assumes // that when the paint actually occurs, the clip rect will not have changed. // This is not true because scrolling (or window resize) could occur and be // handled by the renderer before it receives the InvalidateRect message, // changing the clip rect and then not painting. if (damaged_rect_.IsEmpty() || !delegate_->GetClipRect().Intersects(damaged_rect_)) return; // Only send a single InvalidateRect message at a time. From DidPaint we // will dispatch an additional InvalidateRect message if necessary. if (!waiting_for_paint_) { waiting_for_paint_ = true; // Invalidates caused by calls to NPN_InvalidateRect/NPN_InvalidateRgn // need to be painted asynchronously as per the NPAPI spec. base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&WebPluginProxy::OnPaint, weak_factory_.GetWeakPtr(), damaged_rect_)); damaged_rect_ = gfx::Rect(); } } NPObject* WebPluginProxy::GetWindowScriptNPObject() { if (window_npobject_) return window_npobject_; int npobject_route_id = channel_->GenerateRouteID(); bool success = false; Send(new PluginHostMsg_GetWindowScriptNPObject( route_id_, npobject_route_id, &success)); if (!success) return NULL; window_npobject_ = NPObjectProxy::Create(channel_.get(), npobject_route_id, host_render_view_routing_id_, page_url_); return window_npobject_; } NPObject* WebPluginProxy::GetPluginElement() { if (plugin_element_) return plugin_element_; int npobject_route_id = channel_->GenerateRouteID(); bool success = false; Send(new PluginHostMsg_GetPluginElement(route_id_, npobject_route_id, &success)); if (!success) return NULL; plugin_element_ = NPObjectProxy::Create(channel_.get(), npobject_route_id, host_render_view_routing_id_, page_url_); return plugin_element_; } bool WebPluginProxy::FindProxyForUrl(const GURL& url, std::string* proxy_list) { bool result = false; Send(new PluginHostMsg_ResolveProxy(route_id_, url, &result, proxy_list)); return result; } void WebPluginProxy::SetCookie(const GURL& url, const GURL& first_party_for_cookies, const std::string& cookie) { Send(new PluginHostMsg_SetCookie(route_id_, url, first_party_for_cookies, cookie)); } std::string WebPluginProxy::GetCookies(const GURL& url, const GURL& first_party_for_cookies) { std::string cookies; Send(new PluginHostMsg_GetCookies(route_id_, url, first_party_for_cookies, &cookies)); return cookies; } WebPluginResourceClient* WebPluginProxy::GetResourceClient(int id) { ResourceClientMap::iterator iterator = resource_clients_.find(id); // The IPC messages which deal with streams are now asynchronous. It is // now possible to receive stream messages from the renderer for streams // which may have been cancelled by the plugin. if (iterator == resource_clients_.end()) { return NULL; } return iterator->second; } int WebPluginProxy::GetRendererId() { if (channel_.get()) return channel_->renderer_id(); return -1; } void WebPluginProxy::DidPaint() { // If we have an accumulated damaged rect, then check to see if we need to // send out another InvalidateRect message. waiting_for_paint_ = false; if (!damaged_rect_.IsEmpty()) InvalidateRect(damaged_rect_); } void WebPluginProxy::OnResourceCreated(int resource_id, WebPluginResourceClient* client) { DCHECK(resource_clients_.find(resource_id) == resource_clients_.end()); resource_clients_[resource_id] = client; } void WebPluginProxy::HandleURLRequest(const char* url, const char* method, const char* target, const char* buf, unsigned int len, int notify_id, bool popups_allowed, bool notify_redirects) { if (!target && (0 == base::strcasecmp(method, "GET"))) { // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 // for more details on this. if (delegate_->GetQuirks() & webkit::npapi::WebPluginDelegateImpl:: PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { GURL request_url(url); if (!request_url.SchemeIs(chrome::kHttpScheme) && !request_url.SchemeIs(chrome::kHttpsScheme) && !request_url.SchemeIs(chrome::kFtpScheme)) { return; } } } PluginHostMsg_URLRequest_Params params; params.url = url; params.method = method; if (target) params.target = std::string(target); if (len) { params.buffer.resize(len); memcpy(&params.buffer.front(), buf, len); } params.notify_id = notify_id; params.popups_allowed = popups_allowed; params.notify_redirects = notify_redirects; Send(new PluginHostMsg_URLRequest(route_id_, params)); } void WebPluginProxy::Paint(const gfx::Rect& rect) { #if defined(OS_MACOSX) if (!windowless_context()) return; #else if (!windowless_canvas() || !windowless_canvas()->getDevice()) return; #endif // Clear the damaged area so that if the plugin doesn't paint there we won't // end up with the old values. gfx::Rect offset_rect = rect; offset_rect.Offset(delegate_->GetRect().OffsetFromOrigin()); #if defined(OS_MACOSX) CGContextSaveGState(windowless_context()); // It is possible for windowless_contexts_ to change during plugin painting // (since the plugin can make a synchronous call during paint event handling), // in which case we don't want to try to restore later. Not an owning ref // since owning the ref without owning the shared backing memory doesn't make // sense, so this should only be used for pointer comparisons. CGContextRef saved_context_weak = windowless_context(); // We also save the buffer index for the comparison because if we flip buffers // but haven't reallocated them then we do need to restore the context because // it is going to continue to be used. int saved_index = windowless_buffer_index_; CGContextClipToRect(windowless_context(), rect.ToCGRect()); // TODO(caryclark): This is a temporary workaround to allow the Darwin / Skia // port to share code with the Darwin / CG port. All ports will eventually use // the common code below. delegate_->CGPaint(windowless_context(), rect); if (windowless_contexts_[saved_index].get() == saved_context_weak) CGContextRestoreGState(windowless_contexts_[saved_index]); #else // See above comment about windowless_context_ changing. // http::/crbug.com/139462 skia::RefPtr<skia::PlatformCanvas> saved_canvas = windowless_canvas(); #if defined(USE_X11) scoped_refptr<SharedTransportDIB> local_dib_ref( windowless_dibs_[windowless_buffer_index_]); #endif saved_canvas->save(); // The given clip rect is relative to the plugin coordinate system. SkRect sk_rect = { SkIntToScalar(rect.x()), SkIntToScalar(rect.y()), SkIntToScalar(rect.right()), SkIntToScalar(rect.bottom()) }; saved_canvas->clipRect(sk_rect); // Fill a transparent value so that if the plugin supports transparency that // will work. saved_canvas->drawColor(SkColorSetARGB(0, 0, 0, 0), SkXfermode::kSrc_Mode); // Bring the windowless canvas into the window coordinate system, which is // how the plugin expects to draw (since the windowless API was originally // designed just for scribbling over the web page). saved_canvas->translate(SkIntToScalar(-delegate_->GetRect().x()), SkIntToScalar(-delegate_->GetRect().y())); // Before we send the invalidate, paint so that renderer uses the updated // bitmap. delegate_->Paint(saved_canvas.get(), offset_rect); saved_canvas->restore(); #endif } void WebPluginProxy::UpdateGeometry( const gfx::Rect& window_rect, const gfx::Rect& clip_rect, const TransportDIB::Handle& windowless_buffer0, const TransportDIB::Handle& windowless_buffer1, int windowless_buffer_index) { gfx::Rect old = delegate_->GetRect(); gfx::Rect old_clip_rect = delegate_->GetClipRect(); // Update the buffers before doing anything that could call into plugin code, // so that we don't process buffer changes out of order if plugins make // synchronous calls that lead to nested UpdateGeometry calls. if (TransportDIB::is_valid_handle(windowless_buffer0)) { // The plugin's rect changed, so now we have new buffers to draw into. SetWindowlessBuffers(windowless_buffer0, windowless_buffer1, window_rect); } DCHECK(0 <= windowless_buffer_index && windowless_buffer_index <= 1); windowless_buffer_index_ = windowless_buffer_index; #if defined(USE_X11) delegate_->SetWindowlessShmPixmap(windowless_shm_pixmap()); #endif #if defined(OS_MACOSX) delegate_->UpdateGeometryAndContext( window_rect, clip_rect, windowless_context()); #else delegate_->UpdateGeometry(window_rect, clip_rect); #endif // Send over any pending invalidates which occured when the plugin was // off screen. if (delegate_->IsWindowless() && !clip_rect.IsEmpty() && !damaged_rect_.IsEmpty()) { InvalidateRect(damaged_rect_); } } #if defined(OS_WIN) void WebPluginProxy::CreateCanvasFromHandle( const TransportDIB::Handle& dib_handle, const gfx::Rect& window_rect, skia::RefPtr<skia::PlatformCanvas>* canvas) { *canvas = skia::AdoptRef( skia::CreatePlatformCanvas(window_rect.width(), window_rect.height(), true, dib_handle, skia::RETURN_NULL_ON_FAILURE)); // The canvas does not own the section so we need to close it now. CloseHandle(dib_handle); } void WebPluginProxy::SetWindowlessBuffers( const TransportDIB::Handle& windowless_buffer0, const TransportDIB::Handle& windowless_buffer1, const gfx::Rect& window_rect) { CreateCanvasFromHandle(windowless_buffer0, window_rect, &windowless_canvases_[0]); if (!windowless_canvases_[0]) { windowless_canvases_[1].clear(); return; } CreateCanvasFromHandle(windowless_buffer1, window_rect, &windowless_canvases_[1]); if (!windowless_canvases_[1]) { windowless_canvases_[0].clear(); return; } } #elif defined(OS_MACOSX) void WebPluginProxy::CreateDIBAndCGContextFromHandle( const TransportDIB::Handle& dib_handle, const gfx::Rect& window_rect, scoped_ptr<TransportDIB>* dib_out, base::mac::ScopedCFTypeRef<CGContextRef>* cg_context_out) { // Convert the shared memory handle to a handle that works in our process, // and then use that to create a CGContextRef. TransportDIB* dib = TransportDIB::Map(dib_handle); CGContextRef cg_context = NULL; if (dib) { cg_context = CGBitmapContextCreate( dib->memory(), window_rect.width(), window_rect.height(), 8, 4 * window_rect.width(), base::mac::GetSystemColorSpace(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host); CGContextTranslateCTM(cg_context, 0, window_rect.height()); CGContextScaleCTM(cg_context, 1, -1); } dib_out->reset(dib); cg_context_out->reset(cg_context); } void WebPluginProxy::SetWindowlessBuffers( const TransportDIB::Handle& windowless_buffer0, const TransportDIB::Handle& windowless_buffer1, const gfx::Rect& window_rect) { CreateDIBAndCGContextFromHandle(windowless_buffer0, window_rect, &windowless_dibs_[0], &windowless_contexts_[0]); CreateDIBAndCGContextFromHandle(windowless_buffer1, window_rect, &windowless_dibs_[1], &windowless_contexts_[1]); } #elif defined(TOOLKIT_GTK) void WebPluginProxy::CreateDIBAndCanvasFromHandle( const TransportDIB::Handle& dib_handle, const gfx::Rect& window_rect, scoped_refptr<SharedTransportDIB>* dib_out, skia::RefPtr<skia::PlatformCanvas>* canvas) { TransportDIB* dib = TransportDIB::Map(dib_handle); // dib may be NULL if the renderer has already destroyed the TransportDIB by // the time we receive the handle, e.g. in case of multiple resizes. if (dib) { *canvas = skia::AdoptRef( dib->GetPlatformCanvas(window_rect.width(), window_rect.height())); } else { canvas->clear(); } *dib_out = new SharedTransportDIB(dib); } void WebPluginProxy::CreateShmPixmapFromDIB( TransportDIB* dib, const gfx::Rect& window_rect, XID* pixmap_out) { if (dib) { Display* display = ui::GetXDisplay(); XID root_window = ui::GetX11RootWindow(); XShmSegmentInfo shminfo = {0}; if (*pixmap_out != None) XFreePixmap(display, *pixmap_out); shminfo.shmseg = dib->MapToX(display); // Create a shared memory pixmap based on the image buffer. *pixmap_out = XShmCreatePixmap(display, root_window, NULL, &shminfo, window_rect.width(), window_rect.height(), DefaultDepth(display, DefaultScreen(display))); } } void WebPluginProxy::SetWindowlessBuffers( const TransportDIB::Handle& windowless_buffer0, const TransportDIB::Handle& windowless_buffer1, const gfx::Rect& window_rect) { CreateDIBAndCanvasFromHandle(windowless_buffer0, window_rect, &windowless_dibs_[0], &windowless_canvases_[0]); CreateDIBAndCanvasFromHandle(windowless_buffer1, window_rect, &windowless_dibs_[1], &windowless_canvases_[1]); // If SHM pixmaps support is available, create SHM pixmaps to pass to the // delegate for windowless plugin painting. if (delegate_->IsWindowless() && use_shm_pixmap_) { CreateShmPixmapFromDIB(windowless_dibs_[0]->dib(), window_rect, &windowless_shm_pixmaps_[0]); CreateShmPixmapFromDIB(windowless_dibs_[1]->dib(), window_rect, &windowless_shm_pixmaps_[1]); } } #else void WebPluginProxy::SetWindowlessBuffers( const TransportDIB::Handle& windowless_buffer0, const TransportDIB::Handle& windowless_buffer1, const gfx::Rect& window_rect) { NOTIMPLEMENTED(); } #endif void WebPluginProxy::CancelDocumentLoad() { Send(new PluginHostMsg_CancelDocumentLoad(route_id_)); } void WebPluginProxy::InitiateHTTPRangeRequest( const char* url, const char* range_info, int range_request_id) { Send(new PluginHostMsg_InitiateHTTPRangeRequest( route_id_, url, range_info, range_request_id)); } void WebPluginProxy::SetDeferResourceLoading(unsigned long resource_id, bool defer) { Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); } #if defined(OS_MACOSX) void WebPluginProxy::FocusChanged(bool focused) { IPC::Message* msg = new PluginHostMsg_FocusChanged(route_id_, focused); Send(msg); } void WebPluginProxy::StartIme() { IPC::Message* msg = new PluginHostMsg_StartIme(route_id_); // This message can be sent during event-handling, and needs to be delivered // within that context. msg->set_unblock(true); Send(msg); } WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface( gfx::GpuPreference gpu_preference) { if (!accelerated_surface_) accelerated_surface_.reset( WebPluginAcceleratedSurfaceProxy::Create(this, gpu_preference)); return accelerated_surface_.get(); } void WebPluginProxy::AcceleratedPluginEnabledRendering() { Send(new PluginHostMsg_AcceleratedPluginEnabledRendering(route_id_)); } void WebPluginProxy::AcceleratedPluginAllocatedIOSurface(int32 width, int32 height, uint32 surface_id) { Send(new PluginHostMsg_AcceleratedPluginAllocatedIOSurface( route_id_, width, height, surface_id)); } void WebPluginProxy::AcceleratedPluginSwappedIOSurface() { Send(new PluginHostMsg_AcceleratedPluginSwappedIOSurface( route_id_)); } #endif void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) { GetContentClient()->SetActiveURL(page_url_); Paint(damaged_rect); Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect)); } bool WebPluginProxy::IsOffTheRecord() { return channel_->incognito(); } void WebPluginProxy::ResourceClientDeleted( WebPluginResourceClient* resource_client) { ResourceClientMap::iterator index = resource_clients_.begin(); while (index != resource_clients_.end()) { WebPluginResourceClient* client = (*index).second; if (client == resource_client) { resource_clients_.erase(index++); } else { index++; } } } void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); } #if defined(OS_WIN) && !defined(USE_AURA) void WebPluginProxy::UpdateIMEStatus() { // Retrieve the IME status from a plug-in and send it to a renderer process // when the plug-in has updated it. int input_type; gfx::Rect caret_rect; if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) return; Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); } #endif } // namespace content
hujiajie/pa-chromium
content/plugin/webplugin_proxy.cc
C++
bsd-3-clause
24,281
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 2262, 1996, 10381, 21716, 5007, 6048, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 2224, 1997, 2023, 3120, 3642, 2003, 9950, 2011, 1037, 18667, 2094, 1011, 2806, 6105, 2008, 2064, 2022, 1013, 1013, 2179, 1999, 1996, 6105, 5371, 1012, 1001, 2421, 1000, 4180, 1013, 13354, 2378, 1013, 4773, 24759, 15916, 2378, 1035, 24540, 1012, 1044, 1000, 1001, 2421, 1000, 3857, 1013, 3857, 1035, 9530, 8873, 2290, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 14187, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 13971, 1035, 6013, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 3638, 1013, 9531, 2094, 1035, 5047, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 4207, 1035, 3638, 1012, 1044, 1000, 1001, 2421, 1000, 3857, 1013, 3857, 1035, 9530, 8873, 2290, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2775, 1013, 27937, 16429, 20614, 1035, 24540, 1012, 30524, 7696, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 13354, 2378, 1013, 13354, 2378, 1035, 3149, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 13354, 2378, 1013, 13354, 2378, 1035, 11689, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2270, 1013, 2691, 1013, 4180, 1035, 7396, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2270, 1013, 2691, 1013, 24471, 2140, 1035, 5377, 2015, 1012, 1044, 1000, 1001, 2421, 1000, 8301, 2050, 1013, 4654, 2102, 1013, 4132, 1035, 10683, 1012, 1044, 1000, 1001, 2421, 1000, 8301, 2050, 1013, 4654, 2102, 1013, 4132, 1035, 5080, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 4773, 23615, 1013, 2270, 1013, 4773, 1013, 10923, 22254, 8613, 1012, 1044, 1000, 1001, 2421, 1000, 21318, 1013, 1043, 2546, 2595, 1013, 1038, 15909, 1012, 1044, 1000, 1001, 2421, 1000, 21318, 1013, 1043, 2546, 2595, 1013, 10683, 1012, 1044, 1000, 1001, 2421, 1000, 4773, 23615, 1013, 13354, 7076, 1013, 27937, 9331, 2072, 1013, 4773, 24759, 15916, 2378, 1035, 11849, 1035, 17727, 2140, 1012, 1044, 1000, 1001, 2065, 4225, 1006, 9808, 1035, 6097, 2891, 2595, 1007, 1001, 2421, 1000, 2918, 1013, 6097, 1013, 6097, 1035, 21183, 4014, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 6097, 1013, 9531, 2094, 1035, 12935, 13874, 2890, 2546, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 13354, 2378, 1013, 4773, 24759, 15916, 2378, 1035, 14613, 1035, 3302, 1035, 24540, 1035, 6097, 1012, 1044, 1000, 1001, 2203, 10128, 1001, 2065, 4225, 1006, 2224, 1035, 1060, 14526, 1007, 1001, 2421, 1000, 21318, 1013, 2918, 1013, 1060, 1013, 1060, 14526, 1035, 21183, 4014, 1035, 4722, 1012, 1044, 1000, 1001, 2203, 10128, 1001, 2065, 4225, 1006, 9808, 1035, 2663, 1007, 1001, 2421, 1000, 4180, 1013, 2691, 1013, 13354, 2378, 1035, 2832, 1035, 7696, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2270, 1013, 2691, 1013, 5472, 8758, 1035, 1999, 4183, 1012, 1044, 1000, 1001, 2203, 10128, 2478, 4773, 23615, 1024, 1024, 10923, 22254, 8613, 1025, 2478, 4773, 23615, 1024, 1024, 27937, 30523, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2775, 1013, 27937, 16429, 20614, 1035, 21183, 4014, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2775, 1013, 13354, 2378, 1035, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2775, 1013, 27937, 16429, 20614, 1035, 21183, 4014, 1012, 1044, 1000, 1001, 2421, 1000, 4180, 1013, 2775, 1013, 13354, 2378, 1035, 30526 ]
/** * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver * * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com * Author: Roger Quadros <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <linux/extcon.h> #include <linux/gpio.h> #include <linux/gpio/consumer.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of_gpio.h> #include <linux/platform_device.h> #include <linux/slab.h> #include <linux/workqueue.h> #include <linux/pinctrl/consumer.h> #define USB_GPIO_DEBOUNCE_MS 20 /* ms */ struct usb_extcon_info { struct device *dev; struct extcon_dev *edev; struct gpio_desc *id_gpiod; struct gpio_desc *vbus_gpiod; int id_irq; int vbus_irq; unsigned long debounce_jiffies; struct delayed_work wq_detcable; }; static const unsigned int usb_extcon_cable[] = { EXTCON_USB, EXTCON_USB_HOST, EXTCON_NONE, }; /* * "USB" = VBUS and "USB-HOST" = !ID, so we have: * Both "USB" and "USB-HOST" can't be set as active at the * same time so if "USB-HOST" is active (i.e. ID is 0) we keep "USB" inactive * even if VBUS is on. * * State | ID | VBUS * ---------------------------------------- * [1] USB | H | H * [2] none | H | L * [3] USB-HOST | L | H * [4] USB-HOST | L | L * * In case we have only one of these signals: * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1. * - ID only - we want to distinguish between [1] and [4], so VBUS = ID. */ static void usb_extcon_detect_cable(struct work_struct *work) { int id, vbus; struct usb_extcon_info *info = container_of(to_delayed_work(work), struct usb_extcon_info, wq_detcable); /* check ID and VBUS and update cable state */ id = info->id_gpiod ? gpiod_get_value_cansleep(info->id_gpiod) : 1; vbus = info->vbus_gpiod ? gpiod_get_value_cansleep(info->vbus_gpiod) : id; /* at first we clean states which are no longer active */ if (id) extcon_set_state_sync(info->edev, EXTCON_USB_HOST, false); if (!vbus) extcon_set_state_sync(info->edev, EXTCON_USB, false); if (!id) { extcon_set_state_sync(info->edev, EXTCON_USB_HOST, true); } else { if (vbus) extcon_set_state_sync(info->edev, EXTCON_USB, true); } } static irqreturn_t usb_irq_handler(int irq, void *dev_id) { struct usb_extcon_info *info = dev_id; queue_delayed_work(system_power_efficient_wq, &info->wq_detcable, info->debounce_jiffies); return IRQ_HANDLED; } static int usb_extcon_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct usb_extcon_info *info; int ret; if (!np) return -EINVAL; info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); if (!info) return -ENOMEM; info->dev = dev; info->id_gpiod = devm_gpiod_get_optional(&pdev->dev, "id", GPIOD_IN); info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", GPIOD_IN); if (!info->id_gpiod && !info->vbus_gpiod) { dev_err(dev, "failed to get gpios\n"); return -ENODEV; } if (IS_ERR(info->id_gpiod)) return PTR_ERR(info->id_gpiod); if (IS_ERR(info->vbus_gpiod)) return PTR_ERR(info->vbus_gpiod); info->edev = devm_extcon_dev_allocate(dev, usb_extcon_cable); if (IS_ERR(info->edev)) { dev_err(dev, "failed to allocate extcon device\n"); return -ENOMEM; } ret = devm_extcon_dev_register(dev, info->edev); if (ret < 0) { dev_err(dev, "failed to register extcon device\n"); return ret; } if (info->id_gpiod) ret = gpiod_set_debounce(info->id_gpiod, USB_GPIO_DEBOUNCE_MS * 1000); if (!ret && info->vbus_gpiod) ret = gpiod_set_debounce(info->vbus_gpiod, USB_GPIO_DEBOUNCE_MS * 1000); if (ret < 0) info->debounce_jiffies = msecs_to_jiffies(USB_GPIO_DEBOUNCE_MS); INIT_DELAYED_WORK(&info->wq_detcable, usb_extcon_detect_cable); if (info->id_gpiod) { info->id_irq = gpiod_to_irq(info->id_gpiod); if (info->id_irq < 0) { dev_err(dev, "failed to get ID IRQ\n"); return info->id_irq; } ret = devm_request_threaded_irq(dev, info->id_irq, NULL, usb_irq_handler, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, pdev->name, info); if (ret < 0) { dev_err(dev, "failed to request handler for ID IRQ\n"); return ret; } } if (info->vbus_gpiod) { info->vbus_irq = gpiod_to_irq(info->vbus_gpiod); if (info->vbus_irq < 0) { dev_err(dev, "failed to get VBUS IRQ\n"); return info->vbus_irq; } ret = devm_request_threaded_irq(dev, info->vbus_irq, NULL, usb_irq_handler, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, pdev->name, info); if (ret < 0) { dev_err(dev, "failed to request handler for VBUS IRQ\n"); return ret; } } platform_set_drvdata(pdev, info); device_set_wakeup_capable(&pdev->dev, true); /* Perform initial detection */ usb_extcon_detect_cable(&info->wq_detcable.work); return 0; } static int usb_extcon_remove(struct platform_device *pdev) { struct usb_extcon_info *info = platform_get_drvdata(pdev); cancel_delayed_work_sync(&info->wq_detcable); device_init_wakeup(&pdev->dev, false); return 0; } #ifdef CONFIG_PM_SLEEP static int usb_extcon_suspend(struct device *dev) { struct usb_extcon_info *info = dev_get_drvdata(dev); int ret = 0; if (device_may_wakeup(dev)) { if (info->id_gpiod) { ret = enable_irq_wake(info->id_irq); if (ret) return ret; } if (info->vbus_gpiod) { ret = enable_irq_wake(info->vbus_irq); if (ret) { if (info->id_gpiod) disable_irq_wake(info->id_irq); return ret; } } } /* * We don't want to process any IRQs after this point * as GPIOs used behind I2C subsystem might not be * accessible until resume completes. So disable IRQ. */ if (info->id_gpiod) disable_irq(info->id_irq); if (info->vbus_gpiod) disable_irq(info->vbus_irq); if (!device_may_wakeup(dev)) pinctrl_pm_select_sleep_state(dev); return ret; } static int usb_extcon_resume(struct device *dev) { struct usb_extcon_info *info = dev_get_drvdata(dev); int ret = 0; if (!device_may_wakeup(dev)) pinctrl_pm_select_default_state(dev); if (device_may_wakeup(dev)) { if (info->id_gpiod) { ret = disable_irq_wake(info->id_irq); if (ret) return ret; } if (info->vbus_gpiod) { ret = disable_irq_wake(info->vbus_irq); if (ret) { if (info->id_gpiod) enable_irq_wake(info->id_irq); return ret; } } } if (info->id_gpiod) enable_irq(info->id_irq); if (info->vbus_gpiod) enable_irq(info->vbus_irq); queue_delayed_work(system_power_efficient_wq, &info->wq_detcable, 0); return ret; } #endif static SIMPLE_DEV_PM_OPS(usb_extcon_pm_ops, usb_extcon_suspend, usb_extcon_resume); static const struct of_device_id usb_extcon_dt_match[] = { { .compatible = "linux,extcon-usb-gpio", }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, usb_extcon_dt_match); static const struct platform_device_id usb_extcon_platform_ids[] = { { .name = "extcon-usb-gpio", }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(platform, usb_extcon_platform_ids); static struct platform_driver usb_extcon_driver = { .probe = usb_extcon_probe, .remove = usb_extcon_remove, .driver = { .name = "extcon-usb-gpio", .pm = &usb_extcon_pm_ops, .of_match_table = usb_extcon_dt_match, }, .id_table = usb_extcon_platform_ids, }; module_platform_driver(usb_extcon_driver); MODULE_AUTHOR("Roger Quadros <[email protected]>"); MODULE_DESCRIPTION("USB GPIO extcon driver"); MODULE_LICENSE("GPL v2");
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/extcon/extcon-usb-gpio.c
C
gpl-3.0
8,079
[ 30522, 1013, 1008, 1008, 1008, 6853, 1013, 4654, 13535, 2239, 1013, 4654, 13535, 2239, 1011, 18833, 1011, 14246, 3695, 1012, 1039, 1011, 18833, 14246, 3695, 4654, 13535, 2239, 4062, 1008, 1008, 9385, 1006, 1039, 1007, 2325, 3146, 5693, 5100, 1011, 8299, 1024, 1013, 1013, 7479, 1012, 14841, 1012, 4012, 1008, 3166, 1024, 5074, 17718, 7352, 1026, 5074, 4160, 1030, 14841, 1012, 4012, 1028, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2544, 1016, 2004, 1008, 2405, 2011, 1996, 2489, 4007, 3192, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1013, 1001, 2421, 1026, 11603, 1013, 4654, 13535, 2239, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 14246, 3695, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 14246, 3695, 1013, 7325, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1999, 4183, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 17938, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 20868, 4160, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 16293, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 11336, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1997, 1035, 14246, 3695, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 4132, 1035, 5080, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 17584, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 2147, 4226, 5657, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 9231, 6593, 12190, 1013, 7325, 1012, 1044, 1028, 1001, 9375, 18833, 1035, 14246, 3695, 1035, 2139, 5092, 17457, 1035, 5796, 2322, 1013, 1008, 5796, 1008, 1013, 2358, 6820, 6593, 18833, 1035, 4654, 13535, 2239, 1035, 18558, 1063, 2358, 6820, 6593, 5080, 1008, 16475, 1025, 2358, 6820, 6593, 4654, 13535, 2239, 1035, 16475, 1008, 3968, 6777, 1025, 2358, 6820, 6593, 14246, 3695, 1035, 4078, 2278, 1008, 8909, 1035, 14246, 3695, 2094, 1025, 2358, 6820, 6593, 14246, 3695, 1035, 4078, 2278, 1008, 1058, 8286, 1035, 14246, 3695, 2094, 1025, 20014, 8909, 1035, 20868, 4160, 1025, 20014, 1058, 8286, 1035, 20868, 4160, 1025, 27121, 2146, 2139, 5092, 17457, 1035, 10147, 29055, 2015, 1025, 2358, 6820, 6593, 8394, 1035, 2147, 1059, 4160, 1035, 20010, 21170, 1025, 1065, 1025, 10763, 9530, 3367, 27121, 20014, 18833, 1035, 4654, 13535, 2239, 1035, 5830, 1031, 1033, 1027, 1063, 4654, 13535, 2239, 1035, 18833, 1010, 4654, 13535, 2239, 1035, 18833, 1035, 3677, 1010, 30524, 1000, 1027, 999, 8909, 1010, 2061, 2057, 2031, 1024, 1008, 2119, 1000, 18833, 1000, 1998, 1000, 18833, 1011, 3677, 1000, 2064, 1005, 1056, 2022, 2275, 2004, 3161, 2012, 1996, 1008, 2168, 2051, 2061, 2065, 1000, 18833, 1011, 3677, 30523, 4654, 13535, 2239, 1035, 3904, 1010, 1065, 1025, 1013, 1008, 1008, 1000, 18833, 1000, 1027, 1058, 8286, 1998, 1000, 18833, 1011, 3677, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4654, 13535, 2239, 1035, 3904, 1010, 1065, 1025, 1013, 1008, 1008, 1000, 18833, 1000, 1027, 1058, 8286, 1998, 1000, 18833, 1011, 3677, 30526 ]
<html><body> <h4>Windows 10 x64 (18363.592)</h4><br> <h2>_MI_PARTITION_FLAGS</h2> <font face="arial"> +0x000 BeingDeleted : Pos 0, 1 Bit<br> +0x000 PageListsInitialized : Pos 1, 1 Bit<br> +0x000 StoreReservedPagesCharged : Pos 2, 1 Bit<br> +0x000 UseProtectedSlabAllocators : Pos 3, 1 Bit<br> +0x000 UseUnprotectedSlabAllocators : Pos 4, 1 Bit<br> +0x000 PureHoldingPartition : Pos 5, 1 Bit<br> +0x000 ZeroPagesOptional : Pos 6, 1 Bit<br> </font></body></html>
epikcraw/ggool
public/Windows 10 x64 (18363.592)/_MI_PARTITION_FLAGS.html
HTML
mit
494
[ 30522, 1026, 16129, 1028, 1026, 2303, 1028, 1026, 1044, 2549, 1028, 3645, 2184, 1060, 21084, 1006, 10081, 2509, 1012, 5354, 2475, 1007, 1026, 1013, 1044, 2549, 1028, 1026, 7987, 1028, 1026, 1044, 2475, 1028, 1035, 2771, 1035, 13571, 1035, 9245, 1026, 1013, 1044, 2475, 1028, 1026, 15489, 2227, 1027, 1000, 9342, 2140, 1000, 1028, 1009, 1014, 2595, 8889, 2692, 2108, 9247, 12870, 2094, 1024, 13433, 2015, 1014, 1010, 1015, 2978, 1026, 7987, 1028, 1009, 1014, 2595, 8889, 2692, 3931, 27103, 5498, 20925, 3550, 1024, 13433, 2015, 1015, 1010, 1015, 2978, 1026, 7987, 1028, 1009, 1014, 2595, 8889, 2692, 3573, 6072, 25944, 13704, 11624, 2906, 5999, 1024, 13433, 2015, 1016, 1010, 1015, 2978, 1026, 7987, 1028, 1009, 1014, 2595, 8889, 2692, 2224, 21572, 26557, 3064, 14540, 19736, 7174, 11266, 5668, 1024, 13433, 2015, 1017, 1010, 1015, 2978, 1026, 7987, 1028, 1009, 1014, 2595, 8889, 2692, 2224, 4609, 21572, 26557, 3064, 14540, 19736, 7174, 11266, 5668, 1024, 13433, 2015, 1018, 1010, 1015, 2978, 1026, 7987, 1028, 1009, 1014, 2595, 8889, 2692, 5760, 30524, 1013, 15489, 1028, 1026, 1013, 2303, 1028, 1026, 1013, 16129, 1028, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 23410, 19362, 3775, 3508, 1024, 13433, 2015, 1019, 1010, 1015, 2978, 1026, 7987, 1028, 1009, 1014, 2595, 8889, 2692, 5717, 13704, 28793, 3508, 2389, 1024, 13433, 2015, 1020, 1010, 1015, 2978, 1026, 7987, 1028, 1026, 30526 ]
unless ENV["HOMEBREW_BREW_FILE"] raise "HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!" end require "constants" require "tmpdir" require "pathname" HOMEBREW_BREW_FILE = Pathname.new(ENV["HOMEBREW_BREW_FILE"]) TEST_TMPDIR = ENV.fetch("HOMEBREW_TEST_TMPDIR") do |k| dir = Dir.mktmpdir("homebrew-tests-", ENV["HOMEBREW_TEMP"] || "/tmp") at_exit { FileUtils.remove_entry(dir) } ENV[k] = dir end # Paths pointing into the Homebrew code base that persist across test runs HOMEBREW_LIBRARY_PATH = Pathname.new(File.expand_path("../../../..", __FILE__)) HOMEBREW_SHIMS_PATH = HOMEBREW_LIBRARY_PATH.parent+"Homebrew/shims" HOMEBREW_LOAD_PATH = [File.expand_path("..", __FILE__), HOMEBREW_LIBRARY_PATH].join(":") # Paths redirected to a temporary directory and wiped at the end of the test run HOMEBREW_PREFIX = Pathname.new(TEST_TMPDIR).join("prefix") HOMEBREW_REPOSITORY = HOMEBREW_PREFIX HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY+"Library" HOMEBREW_CACHE = HOMEBREW_PREFIX.parent+"cache" HOMEBREW_CACHE_FORMULA = HOMEBREW_PREFIX.parent+"formula_cache" HOMEBREW_LINKED_KEGS = HOMEBREW_PREFIX.parent+"linked" HOMEBREW_PINNED_KEGS = HOMEBREW_PREFIX.parent+"pinned" HOMEBREW_LOCK_DIR = HOMEBREW_PREFIX.parent+"locks" HOMEBREW_CELLAR = HOMEBREW_PREFIX.parent+"cellar" HOMEBREW_LOGS = HOMEBREW_PREFIX.parent+"logs" HOMEBREW_TEMP = HOMEBREW_PREFIX.parent+"temp" TEST_FIXTURE_DIR = HOMEBREW_LIBRARY_PATH.join("test", "support", "fixtures") TESTBALL_SHA1 = "be478fd8a80fe7f29196d6400326ac91dad68c37".freeze TESTBALL_SHA256 = "91e3f7930c98d7ccfb288e115ed52d06b0e5bc16fec7dce8bdda86530027067b".freeze TESTBALL_PATCHES_SHA256 = "799c2d551ac5c3a5759bea7796631a7906a6a24435b52261a317133a0bfb34d9".freeze PATCH_A_SHA256 = "83404f4936d3257e65f176c4ffb5a5b8d6edd644a21c8d8dcc73e22a6d28fcfa".freeze PATCH_B_SHA256 = "57958271bb802a59452d0816e0670d16c8b70bdf6530bcf6f78726489ad89b90".freeze LINUX_TESTBALL_SHA256 = "fa7fac451a7c37e74f02e2a425a76aff89106098a55707832a02be5af5071cf8".freeze TEST_SHA1 = "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef".freeze TEST_SHA256 = "deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef".freeze
rwhogg/brew
Library/Homebrew/test/support/lib/config.rb
Ruby
bsd-2-clause
2,216
[ 30522, 4983, 4372, 2615, 1031, 1000, 2188, 13578, 2860, 1035, 24702, 1035, 5371, 1000, 1033, 5333, 1000, 2188, 13578, 2860, 1035, 24702, 1035, 5371, 2001, 2025, 15612, 999, 3531, 2655, 8026, 1013, 24702, 3495, 999, 1000, 2203, 5478, 1000, 5377, 2015, 1000, 5478, 1000, 1056, 8737, 4305, 2099, 1000, 5478, 1000, 4130, 18442, 1000, 2188, 13578, 2860, 1035, 24702, 1035, 5371, 1027, 4130, 18442, 1012, 2047, 1006, 4372, 2615, 1031, 1000, 2188, 13578, 2860, 1035, 24702, 1035, 5371, 1000, 1033, 1007, 3231, 1035, 1056, 8737, 4305, 2099, 1027, 4372, 2615, 1012, 18584, 1006, 1000, 2188, 13578, 2860, 1035, 3231, 1035, 1056, 8737, 4305, 2099, 1000, 1007, 2079, 1064, 1047, 1064, 16101, 1027, 16101, 1012, 12395, 21246, 17299, 4313, 1006, 1000, 2188, 13578, 2860, 1011, 5852, 1011, 1000, 1010, 4372, 2615, 1031, 1000, 2188, 13578, 2860, 1035, 8915, 8737, 1000, 1033, 1064, 1064, 1000, 1013, 1056, 8737, 1000, 1007, 2012, 1035, 6164, 1063, 5371, 21823, 4877, 1012, 6366, 1035, 4443, 1006, 16101, 1007, 1065, 4372, 2615, 1031, 1047, 1033, 1027, 16101, 2203, 1001, 10425, 7302, 2046, 1996, 2188, 13578, 2860, 3642, 2918, 2008, 29486, 2408, 3231, 3216, 2188, 13578, 2860, 1035, 3075, 1035, 4130, 1027, 4130, 18442, 1012, 2047, 1006, 5371, 1012, 7818, 1035, 4130, 1006, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1000, 1010, 1035, 1035, 5371, 1035, 1035, 1007, 1007, 2188, 13578, 2860, 1035, 11895, 5244, 1035, 4130, 1027, 2188, 13578, 2860, 1035, 3075, 1035, 4130, 1012, 6687, 1009, 1000, 2188, 13578, 2860, 1013, 11895, 5244, 1000, 2188, 13578, 2860, 1035, 7170, 1035, 4130, 1027, 1031, 5371, 1012, 7818, 1035, 4130, 1006, 1000, 1012, 1012, 1000, 1010, 1035, 1035, 5371, 1035, 1035, 1007, 1010, 2188, 13578, 2860, 1035, 3075, 1035, 4130, 1033, 1012, 3693, 1006, 1000, 1024, 1000, 1007, 1001, 10425, 2417, 7442, 10985, 2000, 1037, 5741, 14176, 1998, 8342, 2012, 1996, 2203, 1997, 1996, 3231, 2448, 2188, 13578, 2860, 1035, 17576, 1027, 4130, 18442, 1012, 2047, 1006, 3231, 1035, 1056, 8737, 4305, 2099, 1007, 1012, 3693, 1006, 1000, 17576, 1000, 1007, 2188, 13578, 2860, 1035, 22409, 1027, 2188, 13578, 2860, 1035, 17576, 2188, 13578, 2860, 1035, 3075, 1027, 2188, 13578, 2860, 1035, 22409, 1009, 1000, 3075, 1000, 2188, 13578, 2860, 1035, 17053, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 17053, 1000, 2188, 13578, 2860, 1035, 17053, 1035, 30524, 1035, 17576, 1012, 6687, 1009, 1000, 5799, 1000, 2188, 13578, 2860, 1035, 11807, 1035, 17710, 5620, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 11807, 1000, 2188, 13578, 2860, 1035, 5843, 1035, 16101, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 11223, 1000, 2188, 13578, 2860, 1035, 15423, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 15423, 1000, 2188, 13578, 2860, 1035, 15664, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 15664, 1000, 2188, 13578, 2860, 1035, 30523, 5675, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 5675, 1035, 17053, 1000, 2188, 13578, 2860, 1035, 5799, 1035, 17710, 5620, 1027, 2188, 13578, 2860, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5675, 1027, 2188, 13578, 2860, 1035, 17576, 1012, 6687, 1009, 1000, 5675, 1035, 17053, 1000, 2188, 13578, 2860, 1035, 5799, 1035, 17710, 5620, 1027, 2188, 13578, 2860, 30526 ]
ConstructIndex(); //non ui for(let B of Bakteriler) { AddBacteriaToDisplay(B);//sadece isimler ve aileler //only ui with variables BakteriRouterSearch(B); //non ui + } ConstructBottomPanel(); //only ui with variables IndexFamilies(); //non ui PremakeLeftPanel(); //only ui if(HaveNotification) { document.querySelector("#notificationCircle").style.display = "block"; } FilterRuleQueExec(); //sayi vs icin //non ui //asd //SozlukBuilderStart();
occ55/Mikrobiyoloji
init.js
JavaScript
apache-2.0
472
[ 30522, 9570, 22254, 10288, 1006, 1007, 1025, 1013, 1013, 2512, 21318, 2005, 1006, 2292, 1038, 1997, 8670, 25509, 11124, 3917, 1007, 1063, 5587, 3676, 21162, 2401, 3406, 10521, 13068, 1006, 1038, 1007, 1025, 1013, 1013, 6517, 26005, 2003, 5714, 3917, 2310, 9932, 2571, 3917, 1013, 1013, 2069, 21318, 2007, 10857, 8670, 25509, 11124, 22494, 7747, 14644, 2818, 1006, 1038, 1007, 1025, 1013, 1013, 2512, 21318, 1009, 1065, 9570, 18384, 20389, 30524, 6254, 1012, 23032, 11246, 22471, 2953, 1006, 1000, 1001, 26828, 6895, 21769, 1000, 1007, 1012, 2806, 1012, 4653, 1027, 1000, 3796, 1000, 1025, 1065, 11307, 6820, 2571, 4226, 10288, 8586, 1006, 1007, 1025, 1013, 1013, 2360, 2072, 5443, 24582, 2378, 1013, 1013, 2512, 21318, 1013, 1013, 2004, 2094, 1013, 1013, 2061, 2480, 7630, 2243, 8569, 23891, 12096, 8445, 1006, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 9739, 2884, 1006, 1007, 1025, 1013, 1013, 2069, 21318, 2007, 10857, 5950, 7011, 4328, 11983, 1006, 1007, 1025, 1013, 1013, 2512, 21318, 26563, 13808, 2571, 6199, 9739, 2884, 1006, 1007, 1025, 1013, 1013, 2069, 21318, 2065, 1006, 4033, 4140, 9031, 1007, 1063, 30526 ]
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using KSP; namespace panelfar { public static class PANELFARMeshSimplification { //Take the raw part geometry and simplify it so that further simplification of the entire vessel is faster public static PANELFARPartLocalMesh PreProcessLocalMesh(PANELFARPartLocalMesh mesh) { //Array of vertices; indexing must not change Vector3[] verts = new Vector3[mesh.vertexes.Length]; mesh.vertexes.CopyTo(verts, 0); //Array of triangles; each triangle points to an index in verts MeshIndexTriangle[] indexTris = new MeshIndexTriangle[mesh.triangles.Length]; mesh.triangles.CopyTo(indexTris, 0); //Array of a list of triangles that contain a given vertex; indexing is same as verts, each index in list points to an index in indexTris List<int>[] trisAttachedToVerts = GetTrisAttachedToVerts(verts, indexTris); //Array of quadrics associated with a particular vertex; indexing is same as verts Quadric[] vertQuadrics = CalculateVertQuadrics(verts, indexTris); //A list of possible vertex pairs that can be contracted into a single point MinHeap<MeshPairContraction> pairContractions = GeneratePairContractions(indexTris, verts, vertQuadrics); int faces = (int)Math.Floor(indexTris.Length * 0.5); faces = DecimateVertices(faces, ref pairContractions, ref verts, ref indexTris, ref trisAttachedToVerts, ref vertQuadrics); //This will be used to update the old array (which has many empty elements) to a new vertex array and allow the indexTris to be updated as well Dictionary<int, int> beforeIndexAfterIndex = new Dictionary<int, int>(); int currentIndex = 0; List<Vector3> newVerts = new List<Vector3>(); for (int i = 0; i < verts.Length; i++) { Vector3 v = verts[i]; if (trisAttachedToVerts[i] != null) { beforeIndexAfterIndex.Add(i, currentIndex); currentIndex++; newVerts.Add(v); } } MeshIndexTriangle[] newIndexTris = new MeshIndexTriangle[faces]; currentIndex = 0; foreach(MeshIndexTriangle tri in indexTris) { if(tri != null) { MeshIndexTriangle newTri = new MeshIndexTriangle(beforeIndexAfterIndex[tri.v0], beforeIndexAfterIndex[tri.v1], beforeIndexAfterIndex[tri.v2]); newIndexTris[currentIndex] = newTri; currentIndex++; } } mesh.vertexes = newVerts.ToArray(); mesh.triangles = newIndexTris; return mesh; } public static int DecimateVertices(int targetFaces, ref MinHeap<MeshPairContraction> pairContractions, ref Vector3[] verts, ref MeshIndexTriangle[] indexTris, ref List<int>[] trisAttachedToVerts, ref Quadric[] vertQuadrics) { int validFaces = indexTris.Length; int counter = 1; StringBuilder debug = new StringBuilder(); debug.AppendLine("Target Faces: " + targetFaces); try { while (validFaces > targetFaces) { debug.AppendLine("Iteration: " + counter + " Faces: " + validFaces); //Get the pair contraction with the least error associated with it MeshPairContraction pair = pairContractions.ExtractDominating(); debug.AppendLine("Contraction between vertices at indicies: " + pair.v0 + " and " + pair.v1); debug.AppendLine("Tris attached to v0: " + trisAttachedToVerts[pair.v0].Count + " Tris attached to v1: " + trisAttachedToVerts[pair.v1].Count); //Get faces that will be deleted / changed by contraction ComputeContraction(ref pair, indexTris, trisAttachedToVerts); //Act on faces, delete extra vertex, change all references to second vertex validFaces -= ApplyContraction(ref pair, ref pairContractions, ref verts, ref indexTris, ref trisAttachedToVerts, ref vertQuadrics); counter++; } for(int i = 0; i < indexTris.Length; i++) { MeshIndexTriangle tri = indexTris[i]; if (tri == null) continue; if (trisAttachedToVerts[tri.v0] == null) { debug.AppendLine("Tri at index " + i + " points to nonexistent vertex at index " + tri.v0); } if (trisAttachedToVerts[tri.v1] == null) { debug.AppendLine("Tri at index " + i + " points to nonexistent vertex at index " + tri.v1); } if (trisAttachedToVerts[tri.v2] == null) { debug.AppendLine("Tri at index " + i + " points to nonexistent vertex at index " + tri.v2); } } debug.AppendLine("Final: Faces: " + validFaces); } catch (Exception e) { debug.AppendLine("Error: " + e.Message); debug.AppendLine("Stack trace"); debug.AppendLine(e.StackTrace); } Debug.Log(debug.ToString()); return validFaces; } public static int ApplyContraction(ref MeshPairContraction pair, ref MinHeap<MeshPairContraction> pairContractions, ref Vector3[] verts, ref MeshIndexTriangle[] indexTris, ref List<int>[] trisAttachedToVerts, ref Quadric[] vertQuadrics) { int removedFaces = pair.deletedFaces.Count; //Move v0, clear v1 verts[pair.v0] = pair.contractedPosition; verts[pair.v1] = Vector3.zero; foreach (int triIndex in trisAttachedToVerts[pair.v1]) if (!pair.deletedFaces.Contains(triIndex) && !trisAttachedToVerts[pair.v0].Contains(triIndex)) trisAttachedToVerts[pair.v0].Add(triIndex); //Clear out all the tris attached to a non-existent vertex trisAttachedToVerts[pair.v1] = null; //Accumulate quadrics, clear unused one vertQuadrics[pair.v0] += vertQuadrics[pair.v1]; vertQuadrics[pair.v1] = new Quadric(); //Adjust deformed triangles foreach (int changedTri in pair.deformedFaces) { MeshIndexTriangle tri = indexTris[changedTri]; if (tri.v0.Equals(pair.v1)) tri.v0 = pair.v0; else if (tri.v1.Equals(pair.v1)) tri.v1 = pair.v0; else tri.v2 = pair.v0; indexTris[changedTri] = tri; } //Clear deleted triangles foreach(int deletedTri in pair.deletedFaces) { indexTris[deletedTri] = null; } List<MeshPairContraction> pairList = pairContractions.ToList(); for (int i = 0; i < pairContractions.Count; i++) { MeshPairContraction otherPair = pairList[i]; if (otherPair.v0.Equals(pair.v1)) { otherPair.v0 = pair.v0; } else if (otherPair.v1.Equals(pair.v1)) { otherPair.v1 = pair.v0; } pairList[i] = otherPair; } int count = pairList.Count; for (int i = 0; i < count; i++ ) { MeshPairContraction iItem = pairList[i]; for(int j = i + 1; j < count; j++) { if (pairList[j].Equals(iItem)) { pairList.RemoveAt(j); //Remove duplicate element count--; //Reduce length to iterate over j--; //Make sure not to skip over a duplicate } } if(iItem.v1 == iItem.v0) { pairList.RemoveAt(i); //Remove degenerate edge count--; //Reduce length to iterate over i--; //Make sure not to skip over a duplicate continue; } CalculateTargetPositionForPairContraction(ref iItem, verts, vertQuadrics); pairList[i] = iItem; } pairContractions = new MinHeap<MeshPairContraction>(pairList); return removedFaces; } public static void ComputeContraction(ref MeshPairContraction pair, MeshIndexTriangle[] indexTris, List<int>[] trisAttachedToVerts) { //This contains a list of all tris that will be changed by this contraction; boolean indicates whether they will be removed or not Dictionary<int, bool> trisToChange = new Dictionary<int, bool>(); pair.deformedFaces.Clear(); pair.deletedFaces.Clear(); //Iterate through every triangle attached to vertex 0 of this pair and add them to the dict foreach(int triIndex in trisAttachedToVerts[pair.v0]) { if(indexTris[triIndex] != null) trisToChange.Add(triIndex, false); } //Iterate through tris attached to vert 1... foreach (int triIndex in trisAttachedToVerts[pair.v1]) { if (indexTris[triIndex] == null) continue; //if the tri is already there, it will become degenerate during this contraction and should be removed if (trisToChange.ContainsKey(triIndex)) trisToChange[triIndex] = true; //else, add it and it will simply be deformed else trisToChange.Add(triIndex, false); } //Now, divide them into the appropriate lists foreach(KeyValuePair<int, bool> triIndex in trisToChange) { if (triIndex.Value) pair.deletedFaces.Add(triIndex.Key); else pair.deformedFaces.Add(triIndex.Key); } } public static MinHeap<MeshPairContraction> GeneratePairContractions(MeshIndexTriangle[] indexTris, Vector3[] verts, Quadric[] vertQuadrics) { List<MeshPairContraction> pairContractions = new List<MeshPairContraction>(); foreach(MeshIndexTriangle tri in indexTris) { MeshPairContraction e0 = new MeshPairContraction(tri.v0, tri.v1), e1 = new MeshPairContraction(tri.v1, tri.v2), e2 = new MeshPairContraction(tri.v2, tri.v0); if (!pairContractions.Contains(e0)) pairContractions.Add(e0); if (!pairContractions.Contains(e1)) pairContractions.Add(e1); if (!pairContractions.Contains(e2)) pairContractions.Add(e2); } //Calculate point that each pair contraction will contract to if it is to be done CalculateTargetPositionForAllPairContractions(ref pairContractions, verts, vertQuadrics); MinHeap<MeshPairContraction> heap = new MinHeap<MeshPairContraction>(pairContractions); return heap; } public static void CalculateTargetPositionForAllPairContractions(ref List<MeshPairContraction> pairContractions, Vector3[] verts, Quadric[] vertQuadrics) { for (int i = 0; i < pairContractions.Count; i++) { MeshPairContraction pair = pairContractions[i]; CalculateTargetPositionForPairContraction(ref pair, verts, vertQuadrics); pairContractions[i] = pair; } } public static void CalculateTargetPositionForPairContraction(ref MeshPairContraction pair, Vector3[] verts, Quadric[] vertQuadrics) { Vector3 v0 = verts[pair.v0], v1 = verts[pair.v1]; Quadric Q0 = vertQuadrics[pair.v0], Q1 = vertQuadrics[pair.v1]; Quadric Q = Q0 + Q1; if (Q.Optimize(ref pair.contractedPosition, 1e-12)) pair.error = Q.Evaluate(pair.contractedPosition); else { double ei = Q.Evaluate(v0), ej = Q.Evaluate(v1); if (ei < ej) { pair.error = ei; pair.contractedPosition = v0; } else { pair.error = ej; pair.contractedPosition = v1; } } } //This returns an array that contains (in each element) a list of indexes that specify which MeshIndexTriangles (in indexTris) are connected to which Vector3s (in verts) public static List<int>[] GetTrisAttachedToVerts(Vector3[] verts, MeshIndexTriangle[] indexTris) { List<int>[] trisAttachedToVerts = new List<int>[verts.Length]; for (int i = 0; i < trisAttachedToVerts.Length; i++) { trisAttachedToVerts[i] = new List<int>(); } for (int i = 0; i < indexTris.Length; i++) { MeshIndexTriangle tri = indexTris[i]; trisAttachedToVerts[tri.v0].Add(i); trisAttachedToVerts[tri.v1].Add(i); trisAttachedToVerts[tri.v2].Add(i); } return trisAttachedToVerts; } //Returns an array of quadrics for evaluating the error of each possible contraction public static Quadric[] CalculateVertQuadrics(Vector3[] verts, MeshIndexTriangle[] indexTris) { Quadric[] vertQuadrics = new Quadric[verts.Length]; for (int i = 0; i < vertQuadrics.Length; i++ ) vertQuadrics[i] = new Quadric(); foreach (MeshIndexTriangle tri in indexTris) { Vector3 v0, v1, v2; v0 = verts[tri.v0]; v1 = verts[tri.v1]; v2 = verts[tri.v2]; double area = PANELFARTriangleUtils.triangle_area(v0, v1, v2); Vector4 p; if (area > 0) p = PANELFARTriangleUtils.triangle_plane(v0, v1, v2); else { p = PANELFARTriangleUtils.triangle_plane(v2, v1, v0); area = -area; } Quadric Q = new Quadric(p.x, p.y, p.z, p.w, area); // Area-weight quadric and add it into the three quadrics for the corners Q *= Q.area; vertQuadrics[tri.v0] += Q; vertQuadrics[tri.v1] += Q; vertQuadrics[tri.v2] += Q; } return vertQuadrics; } } }
ferram4/PANELFAR
PANELFAR/PANELFARMeshSimplification.cs
C#
gpl-3.0
15,504
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 3793, 1025, 2478, 8499, 13159, 3170, 1025, 2478, 29535, 2361, 1025, 3415, 15327, 5997, 14971, 1063, 2270, 10763, 2465, 5997, 14971, 7834, 7898, 5714, 24759, 9031, 1063, 1013, 1013, 2202, 1996, 6315, 2112, 10988, 1998, 21934, 28250, 2009, 2061, 2008, 2582, 21934, 24759, 9031, 1997, 1996, 2972, 6258, 2003, 5514, 2270, 10763, 5997, 14971, 19362, 19646, 24755, 13728, 9953, 17463, 3217, 9623, 14540, 24755, 13728, 9953, 1006, 5997, 14971, 19362, 19646, 24755, 13728, 9953, 20437, 1007, 1063, 1013, 1013, 9140, 1997, 18984, 1025, 5950, 2075, 2442, 2025, 2689, 9207, 2509, 1031, 1033, 2310, 21217, 1027, 2047, 9207, 2509, 1031, 20437, 1012, 19449, 2229, 1012, 3091, 1033, 1025, 20437, 1012, 19449, 2229, 1012, 6100, 3406, 1006, 2310, 21217, 1010, 1014, 1007, 1025, 1013, 1013, 9140, 1997, 27189, 1025, 2169, 9546, 2685, 2000, 2019, 5950, 1999, 2310, 21217, 20437, 22254, 10288, 18886, 5654, 2571, 1031, 1033, 5950, 18886, 2015, 1027, 2047, 20437, 22254, 10288, 18886, 5654, 2571, 1031, 20437, 1012, 27189, 1012, 3091, 1033, 1025, 20437, 1012, 27189, 1012, 6100, 3406, 1006, 5950, 18886, 2015, 1010, 1014, 1007, 1025, 1013, 1013, 9140, 1997, 1037, 2862, 1997, 27189, 2008, 5383, 1037, 2445, 19449, 1025, 5950, 2075, 2003, 2168, 2004, 2310, 21217, 1010, 2169, 5950, 1999, 2862, 2685, 2000, 2019, 5950, 1999, 5950, 18886, 2015, 2862, 1026, 20014, 1028, 1031, 1033, 13012, 16846, 2696, 7690, 26525, 8743, 2015, 1027, 2131, 18886, 16846, 2696, 7690, 26525, 8743, 2015, 1006, 2310, 21217, 1010, 5950, 18886, 2015, 1007, 1025, 1013, 1013, 9140, 1997, 17718, 7277, 2015, 3378, 2007, 1037, 3327, 19449, 1025, 5950, 2075, 2003, 2168, 2004, 2310, 21217, 17718, 7277, 1031, 30524, 13626, 6558, 1027, 18422, 16874, 16211, 13626, 6558, 1006, 2310, 21217, 1010, 5950, 18886, 2015, 1007, 1025, 1013, 1013, 1037, 2862, 1997, 2825, 19449, 7689, 2008, 2064, 2022, 11016, 2046, 1037, 2309, 2391, 19538, 5243, 2361, 1026, 20437, 4502, 4313, 8663, 6494, 7542, 1028, 3940, 8663, 6494, 22014, 1027, 9699, 4502, 4313, 8663, 6494, 22014, 1006, 5950, 18886, 2015, 1010, 2310, 21217, 1010, 2310, 5339, 16211, 13626, 6558, 1007, 1025, 20014, 5344, 1027, 1006, 20014, 1007, 8785, 1012, 2723, 1006, 5950, 18886, 2015, 1012, 3091, 1008, 1014, 1012, 1019, 1007, 1025, 5344, 1027, 11703, 21499, 16874, 23522, 1006, 5344, 1010, 25416, 3940, 8663, 6494, 22014, 1010, 25416, 2310, 21217, 1010, 25416, 5950, 18886, 2015, 1010, 25416, 13012, 16846, 2696, 7690, 26525, 8743, 2015, 1010, 25416, 2310, 5339, 16211, 13626, 6558, 1007, 1025, 1013, 1013, 2023, 2097, 2022, 2109, 2000, 10651, 1996, 2214, 9140, 1006, 2029, 2038, 2116, 4064, 3787, 1007, 2000, 1037, 2047, 19449, 9140, 1998, 3499, 1996, 5950, 18886, 2015, 2000, 2022, 7172, 2004, 2092, 9206, 1026, 20014, 1010, 20014, 1028, 2077, 22254, 10288, 10354, 3334, 22254, 10288, 1027, 2047, 9206, 1026, 20014, 1010, 20014, 1028, 1006, 1007, 1025, 20014, 2783, 22254, 10288, 1027, 1014, 1025, 2862, 1026, 9207, 2509, 1028, 2047, 16874, 2015, 1027, 2047, 2862, 1026, 9207, 30523, 1033, 2310, 5339, 16211, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1033, 2310, 5339, 16211, 30526 ]
.AppContainer { /* flex container */ display: flex; flex-direction: column; /* flex item */ flex: 1; /* style */ text-align: left; }
Nospamas/xgy.im
src/app/containers/App/style.css
CSS
mit
150
[ 30522, 1012, 10439, 8663, 18249, 2121, 1063, 1013, 1008, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<?php namespace EcommerceBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; use CoreBundle\Entity\Timestampable; use CoreBundle\Entity\Image; /** * AttributeValue Entity class * * @ORM\Table(name="attribute_value") * @ORM\Entity(repositoryClass="EcommerceBundle\Entity\Repository\AttributeValueRepository") */ class AttributeValue extends Timestampable { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="name", type="string", length=255) * @Assert\NotBlank */ private $name; /** * @var Attribute * * @ORM\ManyToOne(targetEntity="Attribute", inversedBy="values", fetch="EAGER") * @ORM\JoinColumn(name="attribute_id", referencedColumnName="id", nullable=false) * @Assert\NotBlank */ private $attribute; /** * @var Image * * @ORM\OneToOne(targetEntity="CoreBundle\Entity\Image", cascade={"persist", "remove"}, fetch="EAGER") */ private $image; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set name * * @param string $name * * @return AttributeValue */ public function setName($name) { $this->name = $name; return $this; } /** * Set attribute * * @param Attribute $attribute * * @return AttributeValue */ public function setAttribute(Attribute $attribute = null) { $this->attribute = $attribute; return $this; } /** * Get attribute * * @return Attribute */ public function getAttribute() { return $this->attribute; } /** * Set image * * @param Image $image * * @return AttributeValue */ public function setImage(Image $image = null) { $this->image = $image; return $this; } /** * Get image * * @return Image */ public function getImage() { return $this->image; } /** * @return string */ public function __toString() { return $this->attribute->getName().': '.$this->name; } }
sebardo/ecommerce
EcommerceBundle/Entity/AttributeValue.php
PHP
gpl-3.0
2,565
[ 30522, 1026, 1029, 25718, 3415, 15327, 17338, 15810, 3401, 27265, 2571, 1032, 9178, 1025, 2224, 8998, 1032, 2030, 2213, 1032, 12375, 2004, 2030, 2213, 1025, 2224, 16216, 22117, 2080, 1032, 12375, 1032, 5754, 17287, 3508, 2004, 16216, 22117, 2080, 1025, 2224, 25353, 2213, 14876, 4890, 1032, 6922, 1032, 9398, 8844, 1032, 14679, 2004, 20865, 1025, 2224, 4563, 27265, 2571, 1032, 9178, 1032, 2335, 15464, 4502, 3468, 1025, 2224, 4563, 27265, 2571, 1032, 9178, 1032, 3746, 1025, 1013, 1008, 1008, 1008, 17961, 10175, 5657, 9178, 2465, 1008, 1008, 1030, 2030, 2213, 1032, 2795, 1006, 2171, 1027, 1000, 17961, 1035, 3643, 1000, 1007, 1008, 1030, 2030, 2213, 1032, 9178, 1006, 22409, 26266, 1027, 1000, 17338, 15810, 3401, 27265, 2571, 1032, 9178, 1032, 22409, 1032, 17961, 10175, 13094, 13699, 20049, 7062, 1000, 1007, 1008, 1013, 2465, 17961, 10175, 5657, 8908, 2335, 15464, 4502, 3468, 1063, 1013, 1008, 1008, 1008, 1030, 13075, 16109, 1008, 1008, 1030, 2030, 2213, 1032, 5930, 1006, 2171, 1027, 1000, 8909, 1000, 1010, 2828, 1027, 1000, 16109, 1000, 1007, 1008, 1030, 2030, 2213, 1032, 8909, 1008, 1030, 2030, 2213, 1032, 7013, 10175, 5657, 1006, 5656, 1027, 1000, 8285, 1000, 1007, 1008, 1013, 2797, 1002, 8909, 1025, 1013, 1008, 1008, 1008, 1030, 13075, 5164, 1008, 1008, 1030, 2030, 2213, 1032, 5930, 1006, 2171, 1027, 1000, 2171, 1000, 1010, 2828, 1027, 1000, 5164, 1000, 1010, 3091, 1027, 20637, 1007, 1008, 1030, 20865, 1032, 2025, 28522, 8950, 1008, 1013, 2797, 1002, 2171, 1025, 1013, 1008, 1008, 1008, 1030, 13075, 17961, 1008, 1008, 1030, 2030, 2213, 1032, 2116, 3406, 5643, 1006, 4539, 4765, 3012, 1027, 1000, 17961, 1000, 1010, 19262, 18939, 2100, 1027, 1000, 5300, 1000, 1010, 18584, 1027, 1000, 9461, 1000, 1007, 1008, 1030, 2030, 2213, 1032, 3693, 25778, 2819, 2078, 1006, 2171, 1027, 1000, 17961, 1035, 8909, 1000, 1010, 14964, 25778, 2819, 9516, 4168, 1027, 1000, 8909, 1000, 1010, 19701, 3085, 1027, 6270, 1007, 1008, 1030, 20865, 1032, 2025, 28522, 8950, 1008, 1013, 2797, 1002, 17961, 1025, 1013, 1008, 1008, 1008, 1030, 13075, 3746, 1008, 1008, 1030, 2030, 2213, 1032, 2028, 3406, 5643, 1006, 4539, 4765, 3012, 1027, 1000, 4563, 27265, 2571, 1032, 9178, 1032, 3746, 1000, 1010, 16690, 1027, 1063, 1000, 29486, 1000, 1010, 1000, 6366, 1000, 1065, 1010, 18584, 1027, 1000, 9461, 1000, 1007, 1008, 1013, 2797, 1002, 3746, 1025, 1013, 1008, 1008, 1008, 2131, 8909, 1008, 1008, 1030, 2709, 16109, 1008, 1013, 2270, 3853, 2131, 3593, 1006, 1007, 1063, 2709, 1002, 2023, 30524, 1013, 1008, 1008, 1008, 2131, 2171, 1008, 1008, 1030, 2709, 5164, 1008, 1013, 2270, 3853, 2131, 18442, 1006, 1007, 1063, 2709, 1002, 2023, 1011, 1028, 2171, 1025, 1065, 1013, 1008, 1008, 1008, 2275, 2171, 1008, 1008, 1030, 11498, 2213, 5164, 1002, 2171, 1008, 1008, 1030, 2709, 17961, 10175, 5657, 1008, 1013, 2270, 3853, 2275, 18442, 1006, 1002, 2171, 1007, 1063, 1002, 2023, 1011, 1028, 2171, 1027, 1002, 2171, 1025, 2709, 1002, 2023, 1025, 1065, 1013, 1008, 1008, 1008, 2275, 17961, 1008, 1008, 1030, 11498, 2213, 17961, 1002, 17961, 1008, 1008, 1030, 30523, 1011, 1028, 8909, 1025, 1065, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1011, 1028, 8909, 1025, 1065, 30526 ]
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.sling.testing.paxexam; import java.util.HashMap; import java.util.Map; import org.ops4j.pax.exam.options.MavenUrlReference.VersionResolver; /** * NOTE: This file is generated from Sling's Launchpad Karaf Features */ public class SlingVersionResolver implements VersionResolver { private final Map<String, String> versions = new HashMap<>(); public SlingVersionResolver() { versions.put("org.apache.felix:org.apache.felix.configadmin", "1.8.8"); versions.put("org.apache.felix:org.apache.felix.eventadmin", "1.4.6"); versions.put("org.apache.felix:org.apache.felix.http.jetty", "3.2.0"); versions.put("org.apache.felix:org.apache.felix.http.servlet-api", "1.1.2"); versions.put("org.apache.felix:org.apache.felix.http.whiteboard", "3.0.0"); versions.put("org.apache.aries:org.apache.aries.util", "1.1.1"); versions.put("org.apache.aries.jmx:org.apache.aries.jmx.api", "1.1.5"); versions.put("org.apache.aries.jmx:org.apache.aries.jmx.core", "1.1.6"); versions.put("org.apache.aries.jmx:org.apache.aries.jmx.whiteboard", "1.1.5"); versions.put("org.apache.felix:org.apache.felix.inventory", "1.0.4"); versions.put("org.apache.felix:org.apache.felix.metatype", "1.1.2"); versions.put("org.apache.felix:org.apache.felix.scr", "2.0.2"); versions.put("org.apache.felix:org.apache.felix.webconsole", "4.2.16"); versions.put("com.composum.sling.core:composum-sling-core-commons", "1.5.3"); versions.put("com.composum.sling.core:composum-sling-core-console", "1.5.3"); versions.put("com.composum.sling.core:composum-sling-core-jslibs", "1.5.3"); versions.put("com.google.guava:guava", "15.0"); versions.put("com.sun.mail:javax.mail", "1.5.5"); versions.put("commons-codec:commons-codec", "1.10"); versions.put("commons-collections:commons-collections", "3.2.2"); versions.put("commons-fileupload:commons-fileupload", "1.3.2"); versions.put("commons-io:commons-io", "2.5"); versions.put("commons-lang:commons-lang", "2.6"); versions.put("io.dropwizard.metrics:metrics-core", "3.1.2"); versions.put("io.wcm.osgi.wrapper:io.wcm.osgi.wrapper.rxjava", "1.0.14-0000"); versions.put("javax.jcr:jcr", "2.0"); versions.put("javax.mail:javax.mail-api", "1.5.5"); versions.put("org.apache.commons:commons-email", "1.4"); versions.put("org.apache.commons:commons-lang3", "3.4"); versions.put("org.apache.commons:commons-math", "2.2"); versions.put("org.apache.felix:org.apache.felix.inventory", "1.0.4"); versions.put("org.apache.felix:org.apache.felix.jaas", "0.0.4"); versions.put("org.apache.felix:org.apache.felix.prefs", "1.0.6"); versions.put("org.apache.felix:org.apache.felix.webconsole.plugins.memoryusage", "1.0.6"); versions.put("org.apache.felix:org.apache.felix.webconsole.plugins.packageadmin", "1.0.2"); versions.put("org.apache.geronimo.bundles:commons-httpclient", "3.1_2"); versions.put("org.apache.geronimo.bundles:json", "20090211_1"); versions.put("org.apache.geronimo.specs:geronimo-atinject_1.0_spec", "1.0"); versions.put("org.apache.geronimo.specs:geronimo-el_2.2_spec", "1.0.4"); versions.put("org.apache.geronimo.specs:geronimo-interceptor_1.1_spec", "1.0"); versions.put("org.apache.geronimo.specs:geronimo-jcdi_1.0_spec", "1.0"); versions.put("org.apache.geronimo.specs:geronimo-jta_1.1_spec", "1.1.1"); versions.put("org.apache.geronimo.specs:geronimo-servlet_3.0_spec", "1.0"); versions.put("org.apache.httpcomponents:httpclient-osgi", "4.5.2"); versions.put("org.apache.httpcomponents:httpcore-osgi", "4.4.5"); versions.put("org.apache.jackrabbit:jackrabbit-api", "2.12.1"); versions.put("org.apache.jackrabbit:jackrabbit-data", "2.12.1"); versions.put("org.apache.jackrabbit:jackrabbit-jcr-commons", "2.12.1"); versions.put("org.apache.jackrabbit:jackrabbit-jcr-rmi", "2.12.1"); versions.put("org.apache.jackrabbit:jackrabbit-spi", "2.12.1"); versions.put("org.apache.jackrabbit:jackrabbit-spi-commons", "2.12.1"); versions.put("org.apache.jackrabbit:jackrabbit-webdav", "2.12.1"); versions.put("org.apache.jackrabbit:oak-blob", "1.5.3"); versions.put("org.apache.jackrabbit:oak-commons", "1.5.3"); versions.put("org.apache.jackrabbit:oak-core", "1.5.3"); versions.put("org.apache.jackrabbit:oak-jcr", "1.5.3"); versions.put("org.apache.jackrabbit:oak-lucene", "1.5.3"); versions.put("org.apache.jackrabbit:oak-segment", "1.5.3"); versions.put("org.apache.jackrabbit.vault:org.apache.jackrabbit.vault", "3.1.26"); versions.put("org.apache.servicemix.bundles:org.apache.servicemix.bundles.rhino", "1.7.7.1_1"); versions.put("org.apache.servicemix.bundles:org.apache.servicemix.bundles.urlrewritefilter", "4.0.4_1"); versions.put("org.apache.sling:org.apache.sling.adapter", "2.1.6"); versions.put("org.apache.sling:org.apache.sling.api", "2.11.1-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.auth.core", "1.3.14"); versions.put("org.apache.sling:org.apache.sling.auth.form", "1.0.8"); versions.put("org.apache.sling:org.apache.sling.auth.openid", "1.0.4"); versions.put("org.apache.sling:org.apache.sling.auth.selector", "1.0.6"); versions.put("org.apache.sling:org.apache.sling.bundleresource.impl", "2.2.0"); versions.put("org.apache.sling:org.apache.sling.commons.classloader", "1.3.2"); versions.put("org.apache.sling:org.apache.sling.commons.compiler", "2.3.0"); versions.put("org.apache.sling:org.apache.sling.commons.fsclassloader", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.commons.html", "1.0.0"); versions.put("org.apache.sling:org.apache.sling.commons.json", "2.0.18"); versions.put("org.apache.sling:org.apache.sling.commons.messaging", "0.0.1-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.commons.messaging.mail", "0.0.1-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.commons.metrics", "1.0.0"); versions.put("org.apache.sling:org.apache.sling.commons.mime", "2.1.8"); versions.put("org.apache.sling:org.apache.sling.commons.osgi", "2.4.0"); versions.put("org.apache.sling:org.apache.sling.commons.scheduler", "2.4.14"); versions.put("org.apache.sling:org.apache.sling.commons.threads", "3.2.6"); versions.put("org.apache.sling:org.apache.sling.discovery.api", "1.0.4"); versions.put("org.apache.sling:org.apache.sling.discovery.base", "1.1.3-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.discovery.commons", "1.0.12"); versions.put("org.apache.sling:org.apache.sling.discovery.impl", "1.2.7-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.discovery.oak", "1.2.7-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.discovery.standalone", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.discovery.support", "1.0.0"); versions.put("org.apache.sling:org.apache.sling.distribution.api", "0.3.0"); versions.put("org.apache.sling:org.apache.sling.distribution.core", "0.1.18"); versions.put("org.apache.sling:org.apache.sling.engine", "2.4.6"); versions.put("org.apache.sling:org.apache.sling.event", "4.0.2"); versions.put("org.apache.sling:org.apache.sling.event.dea", "1.0.4"); versions.put("org.apache.sling:org.apache.sling.extensions.explorer", "1.0.4"); versions.put("org.apache.sling:org.apache.sling.extensions.threaddump", "0.2.2"); versions.put("org.apache.sling:org.apache.sling.featureflags", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.fsresource", "1.1.4"); versions.put("org.apache.sling:org.apache.sling.hc.core", "1.2.5-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.hc.jmx", "1.0.6"); versions.put("org.apache.sling:org.apache.sling.hc.support", "1.0.4"); versions.put("org.apache.sling:org.apache.sling.hc.webconsole", "1.1.2"); versions.put("org.apache.sling:org.apache.sling.i18n", "2.4.6"); versions.put("org.apache.sling:org.apache.sling.installer.console", "1.0.0"); versions.put("org.apache.sling:org.apache.sling.installer.core", "3.6.8"); versions.put("org.apache.sling:org.apache.sling.installer.factory.configuration", "1.1.2"); versions.put("org.apache.sling:org.apache.sling.installer.provider.file", "1.1.0"); versions.put("org.apache.sling:org.apache.sling.installer.provider.jcr", "3.1.18"); versions.put("org.apache.sling:org.apache.sling.jcr.api", "2.3.1-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.jcr.base", "2.3.3-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.jcr.classloader", "3.2.2"); versions.put("org.apache.sling:org.apache.sling.jcr.compiler", "2.1.0"); versions.put("org.apache.sling:org.apache.sling.jcr.contentloader", "2.1.10"); versions.put("org.apache.sling:org.apache.sling.jcr.davex", "1.3.4"); versions.put("org.apache.sling:org.apache.sling.jcr.jackrabbit.accessmanager", "2.1.2"); versions.put("org.apache.sling:org.apache.sling.jcr.jackrabbit.usermanager", "2.2.4"); versions.put("org.apache.sling:org.apache.sling.jcr.oak.server", "1.0.1-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.jcr.registration", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.jcr.resource", "2.8.0"); versions.put("org.apache.sling:org.apache.sling.jcr.webconsole", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.jcr.webdav", "2.3.4"); versions.put("org.apache.sling:org.apache.sling.jmx.provider", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.launchpad.content", "2.0.8"); versions.put("org.apache.sling:org.apache.sling.models.api", "1.2.2"); versions.put("org.apache.sling:org.apache.sling.models.impl", "1.2.8"); versions.put("org.apache.sling:org.apache.sling.nosql.couchbase-client", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.nosql.couchbase-resourceprovider", "1.1.0"); versions.put("org.apache.sling:org.apache.sling.nosql.generic", "1.1.0"); versions.put("org.apache.sling:org.apache.sling.nosql.mongodb-resourceprovider", "1.1.0"); versions.put("org.apache.sling:org.apache.sling.query", "3.0.0"); versions.put("org.apache.sling:org.apache.sling.resource.inventory", "1.0.4"); versions.put("org.apache.sling:org.apache.sling.resourcemerger", "1.3.0"); versions.put("org.apache.sling:org.apache.sling.resourceresolver", "1.4.12"); versions.put("org.apache.sling:org.apache.sling.rewriter", "1.1.2"); versions.put("org.apache.sling:org.apache.sling.scripting.api", "2.1.8"); versions.put("org.apache.sling:org.apache.sling.scripting.core", "2.0.37-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.scripting.freemarker", "1.0.0-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.scripting.groovy", "1.0.2"); versions.put("org.apache.sling:org.apache.sling.scripting.java", "2.0.14"); versions.put("org.apache.sling:org.apache.sling.scripting.javascript", "2.0.30"); versions.put("org.apache.sling:org.apache.sling.scripting.jsp", "2.1.8"); versions.put("org.apache.sling:org.apache.sling.scripting.jsp.taglib", "2.2.6"); versions.put("org.apache.sling:org.apache.sling.scripting.sightly", "1.0.18"); versions.put("org.apache.sling:org.apache.sling.scripting.sightly.js.provider", "1.0.10"); versions.put("org.apache.sling:org.apache.sling.scripting.thymeleaf", "0.1.7-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.security", "1.0.18"); versions.put("org.apache.sling:org.apache.sling.serviceusermapper", "1.2.2"); versions.put("org.apache.sling:org.apache.sling.servlets.get", "2.1.14"); versions.put("org.apache.sling:org.apache.sling.servlets.post", "2.3.12"); versions.put("org.apache.sling:org.apache.sling.servlets.resolver", "2.4.3-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.settings", "1.3.8"); versions.put("org.apache.sling:org.apache.sling.urlrewriter", "0.0.2"); versions.put("org.apache.sling:org.apache.sling.validation.api", "1.0.0-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.validation.core", "1.0.0-SNAPSHOT"); versions.put("org.apache.sling:org.apache.sling.xss", "1.0.8"); versions.put("org.apache.sling.samples:org.apache.sling.samples.fling", "0.0.1-SNAPSHOT"); versions.put("org.apache.tika:tika-bundle", "1.13"); versions.put("org.apache.tika:tika-core", "1.13"); versions.put("org.codehaus.groovy:groovy", "2.4.7"); versions.put("org.codehaus.groovy:groovy-json", "2.4.7"); versions.put("org.codehaus.groovy:groovy-templates", "2.4.7"); versions.put("org.javassist:javassist", "3.20.0-GA"); versions.put("org.mongodb:mongo-java-driver", "2.14.2"); } private String key(final String groupId, final String artifactId) { return String.format("%s:%s", groupId, artifactId); } public String setVersion(final String groupId, final String artifactId, final String version) { return versions.put(key(groupId, artifactId), version); } @Override public String getVersion(final String groupId, final String artifactId) { return versions.get(key(groupId, artifactId)); } }
wimsymons/sling
testing/org.apache.sling.testing.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java
Java
apache-2.0
14,723
[ 30522, 1013, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 1008, 2030, 2062, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 1008, 5500, 2007, 2023, 2147, 2005, 3176, 2592, 1008, 4953, 9385, 6095, 1012, 1996, 2004, 2546, 15943, 2023, 5371, 1008, 2000, 2017, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1008, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 30524, 1999, 12646, 1008, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 1008, 4007, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1008, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 1008, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 1008, 3563, 2653, 8677, 6656, 2015, 1998, 12546, 1008, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 8917, 1012, 15895, 1012, 27076, 1012, 5604, 1012, 6643, 2595, 10288, 3286, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 23325, 2863, 2361, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 4949, 1025, 12324, 8917, 1012, 23092, 2549, 3501, 1012, 6643, 2595, 1012, 11360, 1012, 7047, 1012, 5003, 8159, 3126, 20974, 27235, 24413, 1012, 2544, 6072, 4747, 6299, 1025, 1013, 1008, 1008, 1008, 3602, 1024, 2023, 5371, 2003, 7013, 2013, 27076, 1005, 1055, 4888, 15455, 13173, 2546, 2838, 1008, 1013, 2270, 2465, 27076, 27774, 6072, 4747, 6299, 22164, 2544, 6072, 4747, 6299, 1063, 2797, 2345, 4949, 1026, 5164, 1010, 5164, 1028, 4617, 1027, 2047, 23325, 2863, 2361, 1026, 1028, 1006, 1007, 1025, 2270, 27076, 27774, 6072, 4747, 6299, 1006, 1007, 1063, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 8383, 1024, 8917, 1012, 15895, 1012, 8383, 1012, 9530, 8873, 3654, 22117, 2378, 1000, 1010, 1000, 1015, 1012, 1022, 1012, 1022, 1000, 1007, 1025, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 8383, 1024, 8917, 1012, 15895, 1012, 8383, 1012, 2724, 4215, 10020, 1000, 1010, 1000, 1015, 1012, 1018, 1012, 1020, 1000, 1007, 1025, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 8383, 1024, 8917, 1012, 15895, 1012, 8383, 1012, 8299, 1012, 22962, 2100, 1000, 1010, 1000, 1017, 1012, 1016, 1012, 1014, 1000, 1007, 1025, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 8383, 1024, 8917, 1012, 15895, 1012, 8383, 1012, 8299, 1012, 14262, 2615, 7485, 1011, 17928, 1000, 1010, 1000, 1015, 1012, 1015, 1012, 1016, 1000, 1007, 1025, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 8383, 1024, 8917, 1012, 15895, 1012, 8383, 1012, 8299, 1012, 2317, 6277, 1000, 1010, 1000, 1017, 1012, 1014, 1012, 1014, 1000, 1007, 1025, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 10488, 2229, 1024, 8917, 1012, 15895, 1012, 10488, 2229, 1012, 21183, 4014, 1000, 1010, 1000, 1015, 1012, 1015, 1012, 1015, 1000, 1007, 1025, 4617, 1012, 2404, 1006, 1000, 8917, 1012, 15895, 1012, 10488, 2229, 30523, 2025, 2224, 2023, 5371, 3272, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2025, 2224, 2023, 5371, 3272, 30526 ]
-------------------------------------------------------------------------------- ## Treebank Statistics (UD_Irish) This relation is universal. 708 nodes (3%) are attached to their parents as `amod`. 692 instances of `amod` (98%) are left-to-right (parent precedes child). Average distance between parent and child is 1.85875706214689. The following 14 pairs of parts of speech are connected with `amod`: [ga-pos/NOUN]()-[ga-pos/ADJ]() (609; 86% instances), [ga-pos/VERB]()-[ga-pos/ADJ]() (29; 4% instances), [ga-pos/ADJ]()-[ga-pos/ADJ]() (27; 4% instances), [ga-pos/PROPN]()-[ga-pos/ADJ]() (17; 2% instances), [ga-pos/NOUN]()-[ga-pos/NOUN]() (5; 1% instances), [ga-pos/X]()-[ga-pos/ADJ]() (5; 1% instances), [ga-pos/NOUN]()-[ga-pos/X]() (3; 0% instances), [ga-pos/PRON]()-[ga-pos/ADJ]() (3; 0% instances), [ga-pos/NOUN]()-[ga-pos/ADV]() (2; 0% instances), [ga-pos/PROPN]()-[ga-pos/ADV]() (2; 0% instances), [ga-pos/PROPN]()-[ga-pos/PROPN]() (2; 0% instances), [ga-pos/SCONJ]()-[ga-pos/ADJ]() (2; 0% instances), [ga-pos/VERB]()-[ga-pos/ADV]() (1; 0% instances), [ga-pos/X]()-[ga-pos/X]() (1; 0% instances). ~~~ conllu # visual-style 2 bgColor:blue # visual-style 2 fgColor:white # visual-style 1 bgColor:blue # visual-style 1 fgColor:white # visual-style 1 2 amod color:blue 1 Maidin maidin NOUN Noun Case=Com|Gender=Fem|Number=Sing 0 root _ _ 2 thirim tirim ADJ Adj Case=Com|Gender=Fem|Number=Sing 1 amod _ _ 3 fhionnuar fionnuar ADJ Adj Case=Com|Gender=Fem|Number=Sing 1 amod _ _ 4 a a PART Vb PartType=Vb|PronType=Rel 5 mark:prt _ _ 5 bhí bí VERB PastInd Form=Len|Mood=Ind|Tense=Past 1 csubj:cleft _ _ 6 ann i ADP Prep Gender=Masc|Number=Sing|Person=3 5 xcomp:pred _ _ 7 . . PUNCT . _ 1 punct _ _ ~~~ ~~~ conllu # visual-style 1 bgColor:blue # visual-style 1 fgColor:white # visual-style 5 bgColor:blue # visual-style 5 fgColor:white # visual-style 5 1 amod color:blue 1 Sásta sásta ADJ Adj Degree=Pos 5 amod _ _ 2 ar ar ADP Simp _ 3 case _ _ 3 deireadh deireadh NOUN Noun Case=Com|Gender=Masc|Number=Sing 1 nmod _ _ 4 , , PUNCT Punct _ 5 punct _ _ 5 glacaim glac VERB VT Mood=Ind|Number=Sing|Person=1|Tense=Pres 0 root _ _ 6 sos sos NOUN Noun Case=Com|Gender=Masc|Number=Sing 5 dobj _ _ 7 . . PUNCT . _ 5 punct _ _ ~~~ ~~~ conllu # visual-style 7 bgColor:blue # visual-style 7 fgColor:white # visual-style 6 bgColor:blue # visual-style 6 fgColor:white # visual-style 6 7 amod color:blue 1 Ar ar ADP Simp _ 2 case _ _ 2 ndóigh dóigh NOUN Noun Case=Com|Form=Ecl|Gender=Fem|Number=Sing 3 nmod _ _ 3 bhí bí VERB PastInd Form=Len|Mood=Ind|Tense=Past 0 root _ _ 4 an an DET Art Definite=Def|Number=Sing|PronType=Art 5 det _ _ 5 tír tír NOUN Noun Case=Com|Gender=Fem|Number=Sing 3 nsubj _ _ 6 suaite suaite ADJ Adj VerbForm=Part 3 xcomp:pred _ _ 7 go_leor go_leor ADJ Adj _ 6 amod _ _ 8 i_rith i_rith ADP Cmpd PrepForm=Cmpd 10 case _ _ 9 an an DET Art Definite=Def|Number=Sing|PronType=Art 10 det _ _ 10 am am NOUN Noun Case=Com|Gender=Masc|Number=Sing 3 nmod _ _ 11 seo seo DET Det PronType=Dem 10 det _ _ 12 go go PART Ad PartType=Ad 13 mark:prt _ _ 13 léir léir ADJ Adj Degree=Pos 3 advmod _ _ 14 . . PUNCT . _ 3 punct _ _ ~~~
fginter/docs-fginterfork
_includes/stats/ga/dep/amod.md
Markdown
apache-2.0
3,156
[ 30522, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 30524, 12107, 1997, 1036, 2572, 7716, 1036, 1006, 5818, 1003, 1007, 2024, 2187, 1011, 2000, 1011, 2157, 1006, 6687, 3653, 22119, 2015, 2775, 1007, 1012, 2779, 3292, 2090, 6687, 1998, 2775, 2003, 1015, 1012, 5594, 2620, 23352, 19841, 2575, 17465, 21472, 2620, 2683, 1012, 1996, 2206, 2403, 7689, 1997, 3033, 1997, 4613, 2024, 4198, 2007, 1036, 2572, 7716, 1036, 1024, 1031, 11721, 1011, 13433, 2015, 1013, 15156, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1006, 3438, 2683, 1025, 6564, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 12034, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1006, 2756, 1025, 1018, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1006, 2676, 1025, 1018, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 17678, 2078, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1006, 2459, 1025, 1016, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 15156, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 15156, 1033, 1006, 1007, 1006, 1019, 1025, 1015, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 1060, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1006, 1019, 1025, 1015, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 15156, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 1060, 1033, 1006, 1007, 1006, 1017, 1025, 1014, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 4013, 2078, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 3501, 1033, 1006, 1007, 1006, 1017, 1025, 1014, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 15156, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 2615, 1033, 1006, 1007, 1006, 1016, 1025, 1014, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 17678, 2078, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 4748, 2615, 1033, 1006, 1007, 1006, 1016, 1025, 1014, 1003, 12107, 1007, 1010, 1031, 11721, 1011, 13433, 2015, 1013, 17678, 2078, 1033, 1006, 1007, 1011, 1031, 11721, 1011, 13433, 2015, 1013, 17678, 2078, 1033, 30523, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1001, 1001, 3392, 9299, 6747, 1006, 20904, 1035, 3493, 1007, 2023, 7189, 2003, 5415, 1012, 3963, 2620, 14164, 1006, 1017, 1003, 1007, 2024, 4987, 2000, 2037, 3008, 2004, 1036, 2572, 7716, 1036, 1012, 6353, 2475, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1001, 1001, 3392, 9299, 6747, 1006, 20904, 1035, 3493, 1007, 2023, 7189, 2003, 5415, 1012, 3963, 2620, 14164, 1006, 1017, 1003, 1007, 2024, 4987, 2000, 2037, 3008, 2004, 1036, 2572, 7716, 1036, 1012, 6353, 2475, 30526 ]
# frozen_string_literal: false require 'tempfile' require 'rubygems' require 'rubygems/remote_fetcher' ## # A fake Gem::RemoteFetcher for use in tests or to avoid real live HTTP # requests when testing code that uses RubyGems. # # Example: # # @fetcher = Gem::FakeFetcher.new # @fetcher.data['http://gems.example.com/yaml'] = source_index.to_yaml # Gem::RemoteFetcher.fetcher = @fetcher # # # invoke RubyGems code # # paths = @fetcher.paths # assert_equal 'http://gems.example.com/yaml', paths.shift # assert paths.empty?, paths.join(', ') # # See RubyGems' tests for more examples of FakeFetcher. class Gem::FakeFetcher attr_reader :data attr_reader :last_request attr_reader :api_endpoints attr_accessor :paths def initialize @data = {} @paths = [] @api_endpoints = {} end def api_endpoint(uri) @api_endpoints[uri] || uri end def find_data(path) return File.read path.path if URI === path and 'file' == path.scheme if URI === path and "URI::#{path.scheme.upcase}" != path.class.name then raise ArgumentError, "mismatch for scheme #{path.scheme} and class #{path.class}" end path = path.to_s @paths << path raise ArgumentError, 'need full URI' unless path =~ %r'^https?://' unless @data.key? path then raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path) end @data[path] end def fetch_path path, mtime = nil, head = false data = find_data(path) if data.respond_to?(:call) then data.call else if path.to_s =~ /gz$/ and not data.nil? and not data.empty? then data = Gem.gunzip data end data end end def cache_update_path uri, path = nil, update = true if data = fetch_path(uri) open(path, 'wb') { |io| io.write data } if path and update data else Gem.read_binary(path) if path end end # Thanks, FakeWeb! def open_uri_or_path(path) data = find_data(path) body, code, msg = data response = Net::HTTPResponse.send(:response_class, code.to_s).new("1.0", code.to_s, msg) response.instance_variable_set(:@body, body) response.instance_variable_set(:@read, true) response end def request(uri, request_class, last_modified = nil) data = find_data(uri) body, code, msg = data @last_request = request_class.new uri.request_uri yield @last_request if block_given? response = Net::HTTPResponse.send(:response_class, code.to_s).new("1.0", code.to_s, msg) response.instance_variable_set(:@body, body) response.instance_variable_set(:@read, true) response end def pretty_print q # :nodoc: q.group 2, '[FakeFetcher', ']' do q.breakable q.text 'URIs:' q.breakable q.pp @data.keys unless @api_endpoints.empty? then q.breakable q.text 'API endpoints:' q.breakable q.pp @api_endpoints.keys end end end def fetch_size(path) path = path.to_s @paths << path raise ArgumentError, 'need full URI' unless path =~ %r'^http://' unless @data.key? path then raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path) end data = @data[path] data.respond_to?(:call) ? data.call : data.length end def download spec, source_uri, install_dir = Gem.dir name = File.basename spec.cache_file path = if Dir.pwd == install_dir then # see fetch_command install_dir else File.join install_dir, "cache" end path = File.join path, name if source_uri =~ /^http/ then File.open(path, "wb") do |f| f.write fetch_path(File.join(source_uri, "gems", name)) end else FileUtils.cp source_uri, path end path end def download_to_cache dependency found, _ = Gem::SpecFetcher.fetcher.spec_for_dependency dependency return if found.empty? spec, source = found.first download spec, source.uri.to_s end end # :stopdoc: class Gem::RemoteFetcher def self.fetcher=(fetcher) @fetcher = fetcher end end # :startdoc: ## # The SpecFetcherSetup allows easy setup of a remote source in RubyGems tests: # # spec_fetcher do |f| # f.gem 'a', 1 # f.spec 'a', 2 # f.gem 'b', 1' 'a' => '~> 1.0' # end # # The above declaration creates two gems, a-1 and b-1, with a dependency from # b to a. The declaration creates an additional spec a-2, but no gem for it # (so it cannot be installed). # # After the gems are created they are removed from Gem.dir. class Gem::TestCase::SpecFetcherSetup ## # Executes a SpecFetcher setup block. Yields an instance then creates the # gems and specifications defined in the instance. def self.declare test, repository setup = new test, repository yield setup setup.execute end def initialize test, repository # :nodoc: @test = test @repository = repository @gems = {} @downloaded = [] @installed = [] @operations = [] end ## # Returns a Hash of created Specification full names and the corresponding # Specification. def created_specs created = {} @gems.keys.each do |spec| created[spec.full_name] = spec end created end ## # Creates any defined gems or specifications def execute # :nodoc: execute_operations setup_fetcher created_specs end def execute_operations # :nodoc: @operations.each do |operation, *arguments| case operation when :gem then spec, gem = @test.util_gem(*arguments, &arguments.pop) write_spec spec @gems[spec] = gem @installed << spec when :download then spec, gem = @test.util_gem(*arguments, &arguments.pop) @gems[spec] = gem @downloaded << spec when :spec then spec = @test.util_spec(*arguments, &arguments.pop) write_spec spec @gems[spec] = nil @installed << spec end end end ## # Creates a gem with +name+, +version+ and +deps+. The created gem can be # downloaded and installed. # # The specification will be yielded before gem creation for customization, # but only the block or the dependencies may be set, not both. def gem name, version, dependencies = nil, &block @operations << [:gem, name, version, dependencies, block] end ## # Creates a gem with +name+, +version+ and +deps+. The created gem is # downloaded in to the cache directory but is not installed # # The specification will be yielded before gem creation for customization, # but only the block or the dependencies may be set, not both. def download name, version, dependencies = nil, &block @operations << [:download, name, version, dependencies, block] end ## # Creates a legacy platform spec with the name 'pl' and version 1 def legacy_platform spec 'pl', 1 do |s| s.platform = Gem::Platform.new 'i386-linux' s.instance_variable_set :@original_platform, 'i386-linux' end end def setup_fetcher # :nodoc: require 'zlib' require 'socket' require 'rubygems/remote_fetcher' unless @test.fetcher then @test.fetcher = Gem::FakeFetcher.new Gem::RemoteFetcher.fetcher = @test.fetcher end Gem::Specification.reset begin gem_repo, @test.gem_repo = @test.gem_repo, @repository @test.uri = URI @repository @test.util_setup_spec_fetcher(*@downloaded) ensure @test.gem_repo = gem_repo @test.uri = URI gem_repo end @gems.each do |spec, gem| next unless gem @test.fetcher.data["#{@repository}gems/#{spec.file_name}"] = Gem.read_binary(gem) FileUtils.cp gem, spec.cache_file end end ## # Creates a spec with +name+, +version+ and +deps+. The created gem can be # downloaded and installed. # # The specification will be yielded before creation for customization, # but only the block or the dependencies may be set, not both. def spec name, version, dependencies = nil, &block @operations << [:spec, name, version, dependencies, block] end def write_spec spec # :nodoc: open spec.spec_file, 'w' do |io| io.write spec.to_ruby_for_cache end end end ## # A StringIO duck-typed class that uses Tempfile instead of String as the # backing store. # # This is available when rubygems/test_utilities is required. #-- # This class was added to flush out problems in Rubinius' IO implementation. class TempIO < Tempfile ## # Creates a new TempIO that will be initialized to contain +string+. def initialize(string = '') super "TempIO" binmode write string rewind end ## # The content of the TempIO as a String. def string flush Gem.read_binary path end end
wpm-org/wpm
lang/ruby/Ruby23-x64/lib/ruby/2.3.0/rubygems/test_utilities.rb
Ruby
apache-2.0
8,838
[ 30522, 1001, 7708, 1035, 5164, 1035, 18204, 1024, 6270, 5478, 1005, 8915, 8737, 8873, 2571, 1005, 5478, 1005, 10090, 3351, 5244, 1005, 5478, 1005, 10090, 3351, 5244, 1013, 6556, 1035, 18584, 2121, 1005, 1001, 1001, 1001, 1037, 8275, 17070, 1024, 1024, 6556, 7959, 10649, 2121, 2005, 2224, 1999, 5852, 2030, 2000, 4468, 2613, 2444, 8299, 1001, 11186, 2043, 5604, 3642, 2008, 3594, 10090, 3351, 5244, 1012, 1001, 1001, 2742, 1024, 1001, 1001, 1030, 18584, 2121, 1027, 17070, 1024, 1024, 8275, 7959, 10649, 2121, 1012, 2047, 1001, 1030, 18584, 2121, 1012, 2951, 1031, 1005, 8299, 1024, 1013, 1013, 20296, 1012, 2742, 1012, 4012, 1013, 8038, 19968, 1005, 1033, 1027, 3120, 1035, 5950, 1012, 2000, 1035, 8038, 19968, 1001, 17070, 1024, 1024, 6556, 7959, 10649, 2121, 1012, 18584, 2121, 1027, 1030, 18584, 2121, 1001, 1001, 1001, 1999, 6767, 3489, 10090, 3351, 5244, 3642, 1001, 1001, 10425, 1027, 1030, 18584, 2121, 1012, 10425, 1001, 20865, 1035, 5020, 1005, 8299, 1024, 1013, 1013, 20296, 1012, 2742, 1012, 4012, 1013, 8038, 19968, 1005, 1010, 10425, 1012, 5670, 1001, 20865, 10425, 1012, 4064, 1029, 1010, 10425, 1012, 3693, 1006, 1005, 1010, 1005, 1007, 1001, 1001, 2156, 10090, 3351, 5244, 1005, 5852, 2005, 2062, 4973, 1997, 8275, 7959, 10649, 2121, 1012, 2465, 17070, 1024, 1024, 8275, 7959, 10649, 2121, 2012, 16344, 1035, 8068, 1024, 2951, 2012, 16344, 1035, 8068, 1024, 2197, 1035, 5227, 2012, 16344, 1035, 8068, 1024, 17928, 1035, 2203, 26521, 2012, 16344, 1035, 3229, 2953, 1024, 10425, 13366, 3988, 4697, 1030, 2951, 1027, 1063, 1065, 1030, 10425, 1027, 1031, 1033, 1030, 17928, 1035, 2203, 26521, 1027, 1063, 1065, 2203, 13366, 17928, 1035, 2203, 8400, 1006, 24471, 2072, 1007, 1030, 17928, 1035, 2203, 26521, 1031, 24471, 2072, 1033, 1064, 1064, 24471, 2072, 2203, 13366, 2424, 1035, 2951, 1006, 4130, 1007, 2709, 5371, 1012, 3191, 4130, 1012, 4130, 2065, 24471, 2072, 1027, 1027, 1027, 4130, 1998, 1005, 5371, 1005, 1027, 1027, 4130, 1012, 5679, 2065, 24471, 2072, 1027, 1027, 1027, 4130, 1998, 1000, 24471, 2072, 1024, 1024, 1001, 1063, 30524, 1012, 2000, 1035, 1055, 1030, 10425, 1026, 1026, 4130, 5333, 6685, 2121, 29165, 1010, 1005, 2342, 2440, 24471, 2072, 1005, 4983, 4130, 1027, 1066, 1003, 1054, 1005, 1034, 16770, 1029, 1024, 1013, 1013, 1005, 4983, 1030, 2951, 1012, 3145, 1029, 4130, 2059, 5333, 17070, 1024, 1024, 6556, 7959, 10649, 2121, 1024, 1024, 18584, 2121, 29165, 1012, 2047, 1006, 1000, 2053, 2951, 2005, 1001, 1063, 4130, 1065, 1000, 1010, 4130, 1007, 2203, 1030, 2951, 1031, 4130, 1033, 2203, 13366, 18584, 1035, 4130, 4130, 1010, 11047, 14428, 1027, 9152, 2140, 1010, 2132, 1027, 6270, 2951, 1027, 2424, 1035, 2951, 1006, 4130, 1007, 2065, 2951, 1012, 6869, 1035, 2000, 1029, 1006, 1024, 2655, 1007, 2059, 2951, 1012, 2655, 2842, 2065, 4130, 1012, 2000, 1035, 30523, 4130, 1012, 5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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4130, 1012, 5679, 1012, 2039, 18382, 1065, 1000, 999, 1027, 4130, 1012, 2465, 1012, 2171, 2059, 5333, 6685, 2121, 29165, 1010, 1000, 28616, 18900, 2818, 2005, 5679, 1001, 1063, 4130, 1012, 5679, 1065, 1998, 2465, 1001, 1063, 4130, 1012, 2465, 1065, 1000, 2203, 4130, 1027, 4130, 30526 ]
#!/usr/bin/env bash echo "Puppet6 Platform Detection and Installation" /usr/bin/wget -O - https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_6_agent.sh | /bin/sh echo "Install R10k and Hiera-Eyaml" /opt/puppetlabs/puppet/bin/gem install r10k hiera-eyaml echo "Retrieve Puppetfile from puppet-maas repo" #/usr/bin/wget -O /etc/puppetlabs/code/environments/production/Puppetfile https://raw.githubusercontent.com/ppouliot/Puppetfile/master/Puppetfile /usr/bin/wget -O /etc/puppetlabs/code/environments/production/Puppetfile https://raw.githubusercontent.com/ppouliot/puppet-maas/master/Puppetfile echo "Run R10k on downloaded Puppetfile" cd /etc/puppetlabs/code/environments/production && /opt/puppetlabs/puppet/bin/r10k puppetfile install --verbose DEBUG2 /opt/puppetlabs/bin/puppet apply --debug --trace --verbose --modulepath=/etc/puppetlabs/code/environments/production/modules:/etc/puppetlabs/code/modules /etc/puppetlabs/code/environments/production/modules/maas/examples/init.pp
ppouliot/puppet-maas
files/scripts/bootstrap_puppet_to_maas.sh
Shell
apache-2.0
1,017
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 30524, 1035, 13997, 1035, 1020, 1035, 4005, 1012, 14021, 1064, 1013, 8026, 1013, 14021, 9052, 1000, 16500, 1054, 10790, 2243, 1998, 7632, 6906, 1011, 1041, 14852, 2140, 1000, 1013, 23569, 1013, 13997, 20470, 2015, 1013, 13997, 1013, 8026, 1013, 17070, 16500, 1054, 10790, 2243, 7632, 6906, 1011, 1041, 14852, 2140, 9052, 1000, 12850, 13997, 8873, 2571, 2013, 13997, 1011, 5003, 3022, 16360, 2080, 1000, 1001, 1013, 2149, 2099, 1013, 8026, 1013, 1059, 18150, 1011, 1051, 1013, 4385, 1013, 13997, 20470, 2015, 1013, 3642, 1013, 10058, 1013, 2537, 1013, 13997, 8873, 2571, 16770, 1024, 1013, 1013, 6315, 1012, 21025, 2705, 12083, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 4903, 7140, 12798, 2102, 1013, 13997, 8873, 2571, 1013, 3040, 1013, 13997, 8873, 2571, 1013, 2149, 2099, 1013, 8026, 1013, 1059, 18150, 1011, 1051, 1013, 4385, 1013, 13997, 20470, 2015, 1013, 3642, 1013, 10058, 1013, 2537, 1013, 13997, 8873, 2571, 16770, 1024, 1013, 1013, 6315, 1012, 21025, 2705, 12083, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 4903, 7140, 12798, 2102, 1013, 13997, 1011, 5003, 3022, 1013, 3040, 1013, 13997, 8873, 2571, 9052, 1000, 2448, 1054, 10790, 2243, 2006, 22817, 13997, 8873, 2571, 1000, 3729, 1013, 4385, 1013, 13997, 20470, 2015, 1013, 3642, 1013, 10058, 1013, 2537, 1004, 1004, 1013, 23569, 1013, 13997, 20470, 2015, 1013, 13997, 1013, 8026, 1013, 1054, 10790, 2243, 13997, 8873, 2571, 16500, 1011, 1011, 12034, 9232, 2139, 8569, 2290, 2475, 1013, 23569, 1013, 13997, 20470, 2015, 1013, 8026, 1013, 13997, 6611, 1011, 1011, 2139, 8569, 2290, 1011, 1011, 7637, 1011, 1011, 12034, 9232, 1011, 1011, 11336, 15069, 1027, 1013, 4385, 1013, 13997, 20470, 2015, 1013, 3642, 1013, 10058, 1013, 2537, 1013, 14184, 1024, 1013, 4385, 1013, 13997, 20470, 2015, 1013, 3642, 1013, 14184, 1013, 4385, 1013, 13997, 20470, 2015, 1013, 3642, 1013, 10058, 1013, 2537, 1013, 14184, 1013, 5003, 3022, 1013, 4973, 1013, 1999, 4183, 1012, 4903, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 24234, 9052, 1000, 13997, 2575, 4132, 10788, 1998, 8272, 1000, 1013, 2149, 2099, 1013, 8026, 1013, 1059, 18150, 1011, 1051, 1011, 16770, 1024, 1013, 1013, 6315, 1012, 21025, 2705, 12083, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 6969, 5244, 1013, 13997, 1011, 16500, 1011, 5806, 1013, 3040, 1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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 24234, 9052, 1000, 13997, 2575, 4132, 10788, 1998, 8272, 1000, 1013, 2149, 2099, 1013, 8026, 1013, 1059, 18150, 1011, 1051, 1011, 16770, 1024, 1013, 1013, 6315, 1012, 21025, 2705, 12083, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 6969, 5244, 1013, 13997, 1011, 16500, 1011, 5806, 1013, 3040, 1013, 16500, 30526 ]
/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "abstract_crawler.h" #include "this_thread.h" #include <boost/date_time.hpp> using namespace Mysql::Tools::Dump; my_boost::atomic_uint64_t Abstract_crawler::next_chain_id; Abstract_crawler::Abstract_crawler( Mysql::I_callable<bool, const Mysql::Tools::Base::Message_data&>* message_handler, Simple_id_generator* object_id_generator) : Abstract_chain_element(message_handler, object_id_generator) {} void Abstract_crawler::register_chain_maker(I_chain_maker* new_chain_maker) { m_chain_makers.push_back(new_chain_maker); } void Abstract_crawler::process_dump_task(I_dump_task* new_dump_task) { m_dump_tasks_created.push_back(new_dump_task); Item_processing_data* main_item_processing_data= this->new_task_created(new_dump_task); this->object_processing_starts(main_item_processing_data); for (std::vector<I_chain_maker*>::iterator it= m_chain_makers.begin(); it != m_chain_makers.end(); ++it) { uint64 new_chain_id= next_chain_id++; Chain_data* chain_data= new Chain_data(new_chain_id); I_object_reader* chain= (*it)->create_chain(chain_data, new_dump_task); if (chain != NULL) { main_item_processing_data->set_chain(chain_data); chain->read_object( this->new_chain_created( chain_data, main_item_processing_data, chain)); } else { delete chain_data; } } this->object_processing_ends(main_item_processing_data); } void Abstract_crawler::wait_for_tasks_completion() { for (std::vector<I_dump_task*>::iterator it= m_dump_tasks_created.begin(); it != m_dump_tasks_created.end(); ++it) { while ((*it)->is_completed() == false) my_boost::this_thread::sleep(boost::posix_time::milliseconds(1)); } } bool Abstract_crawler::need_callbacks_in_child() { return true; }
myblockchain/myblockchain
client/dump/abstract_crawler.cc
C++
gpl-2.0
2,532
[ 30522, 1013, 1008, 9385, 1006, 1039, 1007, 2325, 1010, 14721, 1998, 1013, 2030, 2049, 18460, 1012, 2035, 2916, 9235, 1012, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1025, 2544, 1016, 1997, 1996, 6105, 1012, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 3192, 1010, 4297, 1012, 1010, 4868, 5951, 2358, 1010, 30524, 3415, 15327, 2026, 2015, 4160, 2140, 1024, 1024, 5906, 1024, 1024, 15653, 1025, 2026, 1035, 12992, 1024, 1024, 9593, 1035, 21318, 3372, 21084, 1035, 1056, 10061, 1035, 13529, 2121, 1024, 1024, 2279, 1035, 4677, 1035, 8909, 1025, 10061, 1035, 13529, 2121, 1024, 1024, 10061, 1035, 13529, 2121, 1006, 2026, 2015, 4160, 2140, 1024, 1024, 1045, 1035, 2655, 3085, 1026, 22017, 2140, 1010, 9530, 3367, 2026, 2015, 4160, 2140, 1024, 1024, 5906, 1024, 1024, 2918, 1024, 1024, 4471, 1035, 2951, 1004, 1028, 1008, 4471, 1035, 28213, 1010, 3722, 1035, 8909, 1035, 13103, 1008, 4874, 1035, 8909, 1035, 13103, 1007, 1024, 10061, 1035, 4677, 1035, 5783, 1006, 4471, 1035, 28213, 1010, 4874, 1035, 8909, 1035, 13103, 1007, 1063, 1065, 11675, 10061, 1035, 13529, 2121, 1024, 1024, 4236, 1035, 4677, 1035, 9338, 1006, 1045, 1035, 4677, 1035, 9338, 1008, 2047, 1035, 4677, 1035, 9338, 1007, 1063, 1049, 1035, 4677, 1035, 11153, 1012, 5245, 1035, 2067, 1006, 2047, 1035, 4677, 1035, 9338, 1007, 1025, 1065, 11675, 10061, 1035, 13529, 2121, 1024, 1024, 2832, 1035, 15653, 1035, 4708, 1006, 1045, 1035, 15653, 1035, 4708, 1008, 2047, 1035, 15653, 1035, 4708, 1007, 1063, 1049, 1035, 15653, 1035, 8518, 1035, 2580, 1012, 5245, 1035, 2067, 1006, 2047, 1035, 15653, 1035, 4708, 1007, 1025, 8875, 1035, 6364, 1035, 2951, 1008, 2364, 1035, 8875, 1035, 6364, 1035, 2951, 1027, 2023, 1011, 1028, 2047, 1035, 4708, 1035, 2580, 1006, 2047, 1035, 15653, 1035, 4708, 1007, 1025, 2023, 1011, 1028, 4874, 1035, 6364, 1035, 4627, 1006, 2364, 1035, 8875, 1035, 6364, 1035, 2951, 1007, 1025, 2005, 1006, 2358, 2094, 1024, 1024, 9207, 1026, 1045, 1035, 4677, 1035, 9338, 1008, 1028, 1024, 1024, 2009, 6906, 4263, 2009, 1027, 1049, 1035, 4677, 1035, 11153, 1012, 4088, 1006, 1007, 1025, 2009, 999, 1027, 1049, 1035, 4677, 1035, 11153, 1012, 2203, 1006, 1007, 1025, 1009, 1009, 2009, 1007, 1063, 21318, 3372, 21084, 2047, 1035, 4677, 1035, 30523, 3587, 2723, 1010, 3731, 1010, 5003, 6185, 14526, 2692, 1011, 7558, 2487, 3915, 1008, 1013, 1001, 2421, 1000, 10061, 1035, 13529, 2121, 1012, 1044, 1000, 1001, 2421, 1000, 2023, 1035, 11689, 1012, 1044, 1000, 1001, 2421, 1026, 12992, 1013, 3058, 1035, 2051, 1012, 6522, 2361, 1028, 2478, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3587, 2723, 1010, 3731, 1010, 5003, 6185, 14526, 2692, 1011, 7558, 2487, 3915, 1008, 1013, 1001, 2421, 1000, 10061, 1035, 13529, 2121, 1012, 1044, 1000, 1001, 2421, 1000, 2023, 1035, 11689, 1012, 1044, 1000, 1001, 2421, 1026, 12992, 1013, 3058, 1035, 2051, 1012, 6522, 2361, 1028, 2478, 30526 ]
<? # $Id: new-user.php,v 1.1.2.7 2002-05-18 08:25:09 dan Exp $ # # Copyright (c) 1998-2002 DVL Software Limited $origin = $_GET["origin"]; ?> <form action="<?php echo $_SERVER["PHP_SELF"] . "?origin=" . $origin ?>" method="POST" NAME=f> <TABLE width="*" border="0" cellpadding="1"> <TR> <TD VALIGN="top"> <? if (!$Customize) { ?> <INPUT TYPE="hidden" NAME="ADD" VALUE="1"> User ID:<br> <INPUT SIZE="15" NAME="UserLogin" VALUE="<? echo $UserLogin ?>"><br><br> <? } ?> Password:<br> <INPUT TYPE="PASSWORD" NAME="Password1" VALUE="<?echo $Password1 ?>" size="20"><br><br> Confirm Password:<br> <INPUT TYPE="PASSWORD" NAME="Password2" VALUE="<?echo $Password2 ?>" size="20"> </TD> <TD VALIGN="top"> email address (required):<br> <INPUT SIZE="35" NAME="email" VALUE="<?echo $email ?>"> Number of Days to show in side-bar: <SELECT NAME="numberofdays" size="1"> <OPTION <? if ($numberofdays == "0") echo "selected " ?> VALUE="0">0</OPTION> <OPTION <? if ($numberofdays == "1") echo "selected " ?> VALUE="1">1</OPTION> <OPTION <? if ($numberofdays == "2") echo "selected " ?> VALUE="2">2</OPTION> <OPTION <? if ($numberofdays == "3") echo "selected " ?> VALUE="3">3</OPTION> <OPTION <? if ($numberofdays == "4") echo "selected " ?> VALUE="4">4</OPTION> <OPTION <? if ($numberofdays == "5") echo "selected " ?> VALUE="5">5</OPTION> <OPTION <? if ($numberofdays == "6") echo "selected " ?> VALUE="6">6</OPTION> <OPTION <? if ($numberofdays == "7") echo "selected " ?> VALUE="7">7</OPTION> <OPTION <? if ($numberofdays == "8") echo "selected " ?> VALUE="8">8</OPTION> <OPTION <? if ($numberofdays == "9") echo "selected " ?> VALUE="9">9</OPTION> </SELECT> <br><br> <INPUT TYPE="checkbox" NAME="emailsitenotices_yn" VALUE="ON" <? if ($emailsitenotices_yn == "ON") {echo " checked";}?>>Put me on the announcement mailing list (low volume)<br> <br> We can send you an email when something on your watch list changes.<br> Send me, at most, one message per: <SELECT NAME="watchnotifyfrequency" size="1"> <OPTION <? if ($watchnotifyfrequency == "Z") echo "selected " ?> VALUE="Z">Don't notify me</OPTION> <OPTION <? if ($watchnotifyfrequency == "D") echo "selected " ?> VALUE="D">Day</OPTION> <OPTION <? if ($watchnotifyfrequency == "W") echo "selected " ?> VALUE="W">Week (on Tuesdays)</OPTION> <OPTION <? if ($watchnotifyfrequency == "F") echo "selected " ?> VALUE="F">Fortnight (9th and 23rd)</OPTION> <OPTION <? if ($watchnotifyfrequency == "M") echo "selected " ?> VALUE="M">Month (23rd)</OPTION> </SELECT> <br><br> <INPUT TYPE="submit" VALUE="<? if ($Customize) { echo "update";} else { echo "create";} ?> account" NAME="submit"> <INPUT TYPE="reset" VALUE="reset form"> </TD> </TR> </TABLE> </FORM>
lattera/freshports
include/tags/FreshPorts2_Launch/new-user.php
PHP
bsd-2-clause
3,014
[ 30522, 1026, 1029, 1001, 1002, 8909, 1024, 2047, 1011, 5310, 1012, 25718, 1010, 1058, 1015, 1012, 1015, 1012, 1016, 1012, 1021, 2526, 1011, 5709, 1011, 2324, 5511, 1024, 2423, 1024, 5641, 4907, 4654, 2361, 1002, 1001, 1001, 9385, 1006, 1039, 1007, 2687, 1011, 2526, 1040, 2615, 2140, 4007, 3132, 1002, 4761, 1027, 1002, 1035, 2131, 1031, 1000, 4761, 1000, 1033, 1025, 1029, 1028, 1026, 2433, 2895, 1027, 1000, 1026, 1029, 25718, 9052, 1002, 1035, 8241, 1031, 1000, 25718, 1035, 2969, 1000, 1033, 1012, 1000, 1029, 4761, 1027, 1000, 1012, 1002, 4761, 1029, 1028, 1000, 4118, 1027, 1000, 2695, 1000, 2171, 1027, 1042, 1028, 1026, 2795, 9381, 1027, 1000, 1008, 1000, 3675, 1027, 1000, 1014, 1000, 3526, 15455, 4667, 1027, 1000, 1015, 1000, 1028, 1026, 19817, 1028, 1026, 14595, 11748, 23773, 1027, 1000, 2327, 1000, 1028, 1026, 1029, 2065, 1006, 999, 1002, 7661, 4697, 1007, 1063, 1029, 1028, 1026, 7953, 2828, 1027, 1000, 5023, 1000, 2171, 1027, 1000, 5587, 1000, 3643, 1027, 1000, 30524, 7987, 1028, 1026, 1029, 1065, 1029, 1028, 20786, 1024, 1026, 7987, 1028, 1026, 7953, 2828, 1027, 1000, 20786, 1000, 2171, 1027, 1000, 20786, 2487, 1000, 3643, 1027, 1000, 1026, 1029, 9052, 1002, 20786, 2487, 1029, 1028, 1000, 2946, 1027, 1000, 2322, 1000, 1028, 1026, 7987, 1028, 1026, 7987, 1028, 12210, 20786, 1024, 1026, 7987, 1028, 1026, 7953, 2828, 1027, 1000, 20786, 1000, 2171, 1027, 1000, 20786, 2475, 1000, 3643, 1027, 1000, 1026, 1029, 9052, 1002, 20786, 2475, 1029, 1028, 1000, 2946, 1027, 1000, 2322, 1000, 1028, 1026, 1013, 14595, 1028, 1026, 14595, 11748, 23773, 1027, 1000, 2327, 1000, 1028, 10373, 4769, 1006, 3223, 1007, 1024, 1026, 7987, 1028, 1026, 7953, 2946, 1027, 1000, 3486, 1000, 2171, 1027, 1000, 10373, 1000, 3643, 1027, 1000, 1026, 1029, 9052, 1002, 10373, 1029, 1028, 1000, 1028, 2193, 1997, 2420, 2000, 2265, 1999, 2217, 1011, 3347, 1024, 1026, 7276, 2171, 1027, 1000, 2193, 11253, 10259, 2015, 1000, 2946, 1027, 1000, 1015, 1000, 1028, 1026, 5724, 1026, 1029, 2065, 1006, 1002, 2193, 11253, 10259, 2015, 1027, 1027, 1000, 1014, 1000, 1007, 9052, 1000, 3479, 1000, 1029, 1028, 3643, 1027, 1000, 1014, 1000, 1028, 1014, 1026, 1013, 5724, 1028, 1026, 5724, 1026, 1029, 2065, 1006, 1002, 2193, 11253, 10259, 2015, 1027, 1027, 1000, 1015, 1000, 1007, 9052, 1000, 3479, 1000, 1029, 1028, 3643, 1027, 1000, 1015, 1000, 1028, 1015, 1026, 1013, 5724, 1028, 1026, 5724, 1026, 1029, 2065, 1006, 1002, 2193, 11253, 10259, 2015, 1027, 1027, 1000, 1016, 1000, 1007, 9052, 1000, 3479, 1000, 1029, 1028, 3643, 1027, 1000, 1016, 1000, 1028, 1016, 1026, 1013, 5724, 1028, 1026, 5724, 1026, 1029, 2065, 1006, 1002, 2193, 11253, 10259, 2015, 1027, 1027, 1000, 1017, 1000, 1007, 9052, 1000, 3479, 1000, 1029, 1028, 3643, 1027, 1000, 1017, 1000, 1028, 1017, 1026, 1013, 5724, 1028, 1026, 5724, 30523, 1015, 1000, 1028, 5310, 8909, 1024, 1026, 7987, 1028, 1026, 7953, 2946, 1027, 1000, 2321, 1000, 2171, 1027, 1000, 5310, 21197, 2378, 1000, 3643, 1027, 1000, 1026, 1029, 9052, 1002, 5310, 21197, 2378, 1029, 1028, 1000, 1028, 1026, 7987, 1028, 1026, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1015, 1000, 1028, 5310, 8909, 1024, 1026, 7987, 1028, 1026, 7953, 2946, 1027, 1000, 2321, 1000, 2171, 1027, 1000, 5310, 21197, 2378, 1000, 3643, 1027, 1000, 1026, 1029, 9052, 1002, 5310, 21197, 2378, 1029, 1028, 1000, 1028, 1026, 7987, 1028, 1026, 30526 ]
process.env.NODE_ENV = 'test'; const chai = require('chai'); const chaiHttp = require('chai-http'); const should = chai.should(); const CostCalculator = require("../libs/costcalculator"); describe('Calculate Cost', () => { describe("Book Meeting Room", () => { it("it should calcuate cost for meeting room for 30m", async (done) => { try { let result = await CostCalculator("5bd7283ebfc02163c7b4d5d7", new Date("2020-01-01T09:00:00"), new Date("2020-01-01T09:30:00")); result.should.equal(2.8); done(); } catch(err) { done(err); } }); }); });
10layer/jexpress
test/costcalculator.js
JavaScript
mit
675
[ 30522, 2832, 1012, 4372, 2615, 1012, 13045, 1035, 4372, 2615, 1027, 1005, 3231, 1005, 1025, 9530, 3367, 15775, 2072, 1027, 5478, 1006, 1005, 15775, 2072, 1005, 1007, 1025, 9530, 3367, 15775, 19190, 4779, 2361, 1027, 5478, 1006, 1005, 15775, 2072, 1011, 8299, 1005, 1007, 1025, 9530, 3367, 2323, 1027, 15775, 2072, 1012, 2323, 1006, 1007, 1025, 9530, 3367, 3465, 9289, 19879, 4263, 1027, 5478, 1006, 1000, 1012, 1012, 1013, 5622, 5910, 1013, 3465, 9289, 19879, 4263, 1000, 1007, 1025, 6235, 1006, 1005, 18422, 3465, 1005, 1010, 1006, 1007, 1027, 30524, 3116, 2282, 2005, 2382, 2213, 1000, 1010, 2004, 6038, 2278, 1006, 2589, 1007, 1027, 1028, 1063, 3046, 1063, 2292, 2765, 1027, 26751, 3465, 9289, 19879, 4263, 1006, 1000, 1019, 2497, 2094, 2581, 22407, 2509, 15878, 11329, 2692, 17465, 2575, 2509, 2278, 2581, 2497, 2549, 2094, 2629, 2094, 2581, 1000, 1010, 2047, 3058, 1006, 1000, 12609, 1011, 5890, 1011, 5890, 2102, 2692, 2683, 1024, 4002, 1024, 4002, 1000, 1007, 1010, 2047, 3058, 1006, 1000, 12609, 1011, 5890, 1011, 5890, 2102, 2692, 2683, 1024, 2382, 1024, 4002, 1000, 1007, 1007, 1025, 2765, 1012, 2323, 1012, 5020, 1006, 1016, 1012, 1022, 1007, 1025, 2589, 1006, 1007, 1025, 1065, 4608, 1006, 9413, 2099, 1007, 1063, 2589, 1006, 9413, 2099, 1007, 1025, 1065, 1065, 1007, 1025, 1065, 1007, 1025, 1065, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1028, 1063, 6235, 1006, 1000, 2338, 3116, 2282, 1000, 1010, 1006, 1007, 1027, 1028, 1063, 2009, 1006, 1000, 2009, 2323, 10250, 10841, 3686, 3465, 2005, 30526 ]
# ============================================================================ ''' This file is part of the lenstractor project. Copyright 2012 David W. Hogg (NYU) and Phil Marshall (Oxford). Description ----------- General-purpose data management classes and functions: * Order a pile of FITS files into scifiles and matching varfiles * Read in a deck of postcard images in FITS files and return an array of tractor image data structures. ''' import numpy as np import os,glob,string,pyfits,subprocess from astrometry.util import util import tractor import lenstractor # ============================================================================ # Parse filenames for sci and wht images: def Riffle(filenames,vb=False): if vb: print "Looking at",len(filenames),"files: ",filenames # Break down file names. Naming convention: fruit_flavor.fits fruits = [] flavors = [] for filename in set(filenames): pieces = string.split(filename,'_') fruits.append(string.join(pieces[0:-1],'_')) flavors.append(string.split(pieces[-1],'.')[0]) if len(set(flavors)) > 2: raise ValueError("ERROR: expecting 1 or 2 flavors of datafile, got more") elif len(set(flavors)) == 0: raise ValueError("ERROR: expecting 1 or 2 flavors of datafile, got none") if 'sci' not in set(flavors): raise ValueError("ERROR: expecting at least some files to be xxx_sci.fits") if len(set(flavors)) == 1: whttype = 'No-one_will_ever_choose_this_flavor' else: for x in (set(flavors) - set(['sci'])): whttype = x number = len(set(fruits)) scifiles = [] whtfiles = [] for fruit in set(fruits): x = fruit+'_sci.fits' if os.path.exists(x): scifiles.append(x) else: scifiles.append(None) x = fruit+'_'+whttype+'.fits' if os.path.exists(x): whtfiles.append(x) else: whtfiles.append(None) if vb: print "Riffled files into",number,"pair(s)" if len(set(flavors)) == 1: print "Only 1 flavor of file found, sci" else: print "2 flavors of file found: sci and",whttype for i in range(number): print " ",i+1,"th pair:",[scifiles[i],whtfiles[i]] return scifiles,whtfiles # ============================================================================ # Read in data and organise into Tractor Image objects. # Some of this is survey specific: subroutines to be stored in $survey.py. def Deal(scifiles,varfiles,SURVEY='PS1',vb=False): images = [] bands = [] epochs = [] centroids = [] total_mags = [] for scifile,varfile in zip(scifiles,varfiles): name = scifile.replace('_sci.fits','') if vb: print " " print "Making Tractor image from "+name+"_*.fits:" # Read in sci and wht images. Note assumptions about file format: sci,invvar,hdr,total_flux = Read_in_data(scifile,varfile,SURVEY=SURVEY,vb=vb) if total_flux == 0.0: print "No flux found in image from "+scifile print "Skipping to next image!" continue # Initialize a PSF object (single Gaussian by default), first # getting FWHM from somewhere. Start with FWHM a little small, # then refine it: if SURVEY=='PS1': try: FWHM = lenstractor.PS1_IQ(hdr) except: FWHM = 1.4 elif SURVEY=='KIDS': FWHM = lenstractor.KIDS_IQ(hdr) elif SURVEY=='SDSS': try: FWHM = lenstractor.SDSS_IQ(hdr) except: FWHM = 'NaN' if FWHM == 'NaN': print "Problem with initialising PSF for SDSS, using (1.4,0.4) default" FWHM = 1.4/0.4 else: raise ValueError('Unrecognised survey name '+SURVEY) if vb: print " PSF FWHM =",FWHM,"pixels" # MAGIC shrinkage factor: shrink = 0.8 psf = Initial_PSF(shrink*FWHM) if vb: print psf # Now get the photometric calibration from the image header. if SURVEY=='PS1': try: band,photocal = lenstractor.PS1_photocal(hdr) except: band,photocal = lenstractor.SDSS_photocal(hdr) elif SURVEY=='KIDS': band,photocal = lenstractor.KIDS_photocal(hdr) elif SURVEY=='SDSS': band,photocal = lenstractor.SDSS_photocal(hdr) else: print "Unrecognised survey name "+SURVEY+", assuming SDSS" band,photocal = lenstractor.SDSS_photocal(hdr) if vb: print photocal bands.append(band) if SURVEY=='PS1': try: epochs.append(lenstractor.PS1_epoch(hdr)) except: epochs.append(lenstractor.SDSS_epoch(hdr)) elif SURVEY=='KIDS': epochs.append(lenstractor.KIDS_epoch(hdr)) elif SURVEY=='SDSS': epochs.append(lenstractor.SDSS_epoch(hdr)) # Use photocal to return a total magnitude: total_mag = photocal.countsToMag(total_flux) if vb: print "Total brightness of image (mag):",total_mag total_mags.append(total_mag) # Set up sky to be varied: median = np.median(sci[invvar > 0]) sky = tractor.ConstantSky(median) delta = 0.1*np.sqrt(1.0/np.sum(invvar)) assert delta > 0 sky.stepsize = delta if vb: print sky # Get WCS from FITS header: if SURVEY=='PS1': try: wcs = lenstractor.PS1WCS(hdr) except: wcs = lenstractor.SDSSWCS(hdr) elif SURVEY=='KIDS': wcs = lenstractor.KIDSWCS(hdr) else: try: wcs = lenstractor.SDSSWCS(hdr) except: wcs = lenstractor.SDSSWCS(hdr) # if vb: # print wcs # Compute flux-weighted centroid, in world coordinates: NX,NY = sci.shape x = np.outer(np.ones(NX),np.linspace(0,NY-1,NY)) y = np.outer(np.linspace(0,NX-1,NX),np.ones(NY)) x0 = np.sum(sci*x)/np.sum(sci) y0 = np.sum(sci*y)/np.sum(sci) # BUG: this returns pretty much the image center, not # the object center... Need a better object finder! radec = wcs.pixelToPosition(x0,y0) centroids.append(radec) print "Flux centroid: ",radec # Make a tractor Image object out of all this stuff, and add it to the array: images.append(tractor.Image(data=sci, invvar=invvar, name=name, psf=psf, wcs=wcs, sky=sky, photocal=photocal)) # Figure out the unique band names and epochs: uniqbands = np.unique(np.array(bands)) if vb: print " " print "Read in",len(images),"image datasets" print " in",len(uniqbands),"bands:",uniqbands print " at",len(epochs),"epochs" print " " return images,centroids,np.array(total_mags),np.array(bands) # ============================================================================ # Read in sci and wht images. Note assumptions about file format: def Read_in_data(scifile,varfile,SURVEY='PS1',vb=False): hdulist = pyfits.open(scifile) sci = hdulist[0].data hdr = hdulist[0].header hdulist.close() NX,NY = sci.shape if (varfile is not None): hdulist = pyfits.open(varfile) var = hdulist[0].data hdulist.close() else: # Make a var image from the sci image... background = np.median(sci) diffimage = sci - background # Get the flux-to-count conversion factor from header, at least in SDSS: try: tmpsurvey = hdr['ORIGIN'] if (tmpsurvey == 'SDSS'): tempmtoc = hdr['NMGY'] else: tempmtoc = 1. except: tempmtoc = 1. background, diffimage = background/tempmtoc, diffimage/tempmtoc # units: counts variance = np.median(diffimage*diffimage) # sky count variance var = diffimage + variance # variance in the whole image number-counts # Go again in fluxes var = (tempmtoc**2)*var # Ensure positivity: var[var <= 0] = variance*(tempmtoc**2) # Check image sizes... assert sci.shape == var.shape if SURVEY == 'KIDS': # Var image is actually already an inverse variance image! invvar = var.copy() var = 1.0/invvar else: # Convert var to wht, and find median uncertainty as well: # Regardless of maggy-count conversion, start again here: invvar = 1.0/var # Assign zero weight to var=nan, var<=0: invvar[var != var] = 0.0 invvar[var <= 0] = 0.0 bad = np.where(invvar == 0) # Zero out sci image where wht is 0.0: sci[bad] = 0.0 assert(all(np.isfinite(sci.ravel()))) assert(all(np.isfinite(invvar.ravel()))) # Measure total flux in sci image: # total_flux = np.sum(sci) # background-subtracted background = np.median(sci) diffimage = sci - background total_flux = np.sum(diffimage) # Report on progress so far: if vb: print 'Science image:', sci.shape #, sci print 'Total flux:', total_flux print 'Variance image:', var.shape #, var if total_flux != 0.0: # Very rough estimates of background level and rms, never used: good = np.where(invvar > 0) sciback = np.median(sci[good]) scirms = np.sqrt(np.median(var[good])) if vb: print 'Useful variance range:', var[good].min(), var[good].max() print 'Useful image median level:', sciback print 'Useful image median pixel uncertainty:', scirms return sci,invvar,hdr,total_flux # ============================================================================ # Initialize a PSF object - by default, a single circularly symmetric Gaussian # defined on same grid as sci image: def Initial_PSF(FWHM,double=False): # NB. FWHM of PSF is given in pixels. if not double: # Single Gaussian default: w = np.array([1.0]) # amplitude at peak mu = np.array([[0.0,0.0]]) # centroid position in pixels var = (FWHM/2.35)**2.0 cov = np.array([[[var,0.0],[0.0,var]]]) # pixels^2, covariance matrix else: # Double Gaussian alternative: w = np.array([1.0,1.0]) mu = np.array([[0.0,0.0],[0.0,0.0]]) var = (FWHM/2.35)**2.0 cov = np.array([[[1.0,0.0],[0.0,1.0]],[[var,0.0],[0.0,var]]]) return tractor.GaussianMixturePSF(w,mu,cov) # ============================================================================ # Compute suitable mean centroid and magnitudes in each band: def Turnover(allbands,allmagnitudes,allcentroids,vb=False): # Models need good initial fluxes to avoid wasting time getting these # right. Take a quick look at the data to do this: # 1) Get rough idea of object position from wcs of first image - works # OK if all images are the same size and well registered, and the # target is in the center of the field... ra, dec = 0.0, 0.0 for radec in allcentroids: ra += radec.ra dec += radec.dec ra, dec = ra/len(allcentroids), dec/len(allcentroids) centroid = tractor.RaDecPos(ra,dec) print "Mean flux-weighted centroid: ",centroid # 2) Get rough idea of total object magnitudes from median of images # in each filter. (Models have non-variable flux, by assumption!) bandnames = np.unique(allbands) magnitudes = np.zeros(len(bandnames)) for i,bandname in enumerate(bandnames): index = np.where(allbands == bandname) magnitudes[i] = np.median(allmagnitudes[index]) SED = tractor.Mags(order=bandnames, **dict(zip(bandnames,magnitudes))) if vb: print "Mean SED: ",SED return centroid,SED # ============================================================================ if __name__ == '__main__': if True: # Basic test on lenstractor examples dir: folder = os.environ['LENSTRACTOR_DIR']+'/examples' inputfiles = glob.glob(os.path.join(folder,'*.fits')) scifiles,varfiles = riffle(inputfiles)
davidwhogg/LensTractor
lenstractor/dm.py
Python
gpl-2.0
12,090
[ 30522, 1001, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1005, 1005, 1005, 2023, 5371, 2003, 2112, 1997, 1996, 10014, 6494, 16761, 2622, 1012, 9385, 2262, 2585, 1059, 1012, 27589, 2290, 1006, 27935, 1007, 1998, 6316, 5832, 1006, 4345, 1007, 1012, 6412, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 2236, 1011, 3800, 2951, 2968, 4280, 1998, 4972, 1024, 1008, 2344, 1037, 8632, 1997, 16142, 6764, 2046, 16596, 8873, 4244, 1998, 9844, 13075, 8873, 4244, 1008, 3191, 1999, 1037, 5877, 1997, 2695, 11522, 4871, 1999, 16142, 6764, 1998, 2709, 2019, 9140, 1997, 16358, 3746, 2951, 5090, 1012, 1005, 1005, 1005, 12324, 16371, 8737, 2100, 2004, 27937, 12324, 9808, 1010, 1043, 4135, 2497, 1010, 5164, 1010, 1052, 2100, 8873, 3215, 1010, 4942, 21572, 9623, 2015, 2013, 28625, 24327, 1012, 21183, 4014, 12324, 21183, 4014, 12324, 16358, 12324, 10014, 6494, 16761, 1001, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1001, 11968, 3366, 5371, 18442, 2015, 2005, 16596, 1998, 1059, 11039, 4871, 1024, 13366, 24808, 2571, 1006, 5371, 18442, 2015, 1010, 1058, 2497, 1027, 6270, 1007, 1024, 2065, 1058, 2497, 1024, 6140, 1000, 2559, 2012, 1000, 1010, 18798, 1006, 5371, 18442, 2015, 1007, 1010, 1000, 6764, 1024, 1000, 1010, 5371, 18442, 2015, 1001, 3338, 2091, 5371, 3415, 1012, 10324, 4680, 1024, 5909, 1035, 14894, 1012, 16142, 10962, 1027, 1031, 1033, 26389, 1027, 1031, 1033, 2005, 5371, 18442, 1999, 2275, 1006, 5371, 18442, 2015, 1007, 1024, 4109, 1027, 5164, 1012, 30524, 1012, 3975, 1006, 4109, 1031, 1011, 1015, 1033, 1010, 1005, 1012, 1005, 1007, 1031, 1014, 1033, 1007, 2065, 18798, 1006, 2275, 1006, 26389, 1007, 1007, 1028, 1016, 1024, 5333, 3643, 2121, 29165, 1006, 1000, 7561, 1024, 8074, 1015, 2030, 1016, 26389, 1997, 2951, 8873, 2571, 1010, 2288, 2062, 1000, 1007, 12005, 2546, 18798, 1006, 2275, 1006, 26389, 1007, 1007, 1027, 1027, 1014, 1024, 5333, 3643, 2121, 29165, 1006, 1000, 7561, 1024, 8074, 1015, 2030, 1016, 26389, 1997, 2951, 8873, 2571, 1010, 2288, 3904, 1000, 1007, 2065, 30523, 3975, 1006, 5371, 18442, 1010, 1005, 1035, 1005, 1007, 10962, 1012, 10439, 10497, 1006, 5164, 1012, 3693, 1006, 4109, 1031, 1014, 1024, 1011, 1015, 1033, 1010, 1005, 1035, 1005, 1007, 1007, 26389, 1012, 10439, 10497, 1006, 5164, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3975, 1006, 5371, 18442, 1010, 1005, 1035, 1005, 1007, 10962, 1012, 10439, 10497, 1006, 5164, 1012, 3693, 1006, 4109, 1031, 1014, 1024, 1011, 1015, 1033, 1010, 1005, 1035, 1005, 1007, 1007, 26389, 1012, 10439, 10497, 1006, 5164, 30526 ]
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), /* * external bundles */ new FOS\UserBundle\FOSUserBundle(), new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(), /* * my bundles */ new Application\Frontend\FrontendBundle\ApplicationFrontendFrontendBundle(), new Application\Backend\BackendBundle\ApplicationBackendBackendBundle(), new Application\Backend\UserBundle\ApplicationBackendUserBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } return $bundles; } public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); } }
najibla/Sf2AppSkeleton
app/AppKernel.php
PHP
mit
1,779
[ 30522, 1026, 1029, 25718, 2224, 25353, 2213, 14876, 4890, 1032, 6922, 1032, 8299, 5484, 11877, 1032, 16293, 1025, 2224, 25353, 2213, 14876, 4890, 1032, 6922, 1032, 9530, 8873, 2290, 1032, 7170, 2121, 1032, 7170, 23282, 3334, 12172, 1025, 2465, 10439, 5484, 11877, 8908, 16293, 1063, 2270, 3853, 4236, 27265, 4244, 1006, 1007, 1063, 1002, 26825, 1027, 9140, 1006, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 7705, 27265, 2571, 1032, 7705, 27265, 2571, 1006, 1007, 1010, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 3036, 27265, 2571, 1032, 3036, 27265, 2571, 1006, 1007, 1010, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 1056, 16279, 27265, 2571, 1032, 1056, 16279, 27265, 2571, 1006, 1007, 1010, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 18847, 21197, 27265, 2571, 1032, 18847, 21197, 27265, 2571, 1006, 1007, 1010, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 9170, 21397, 2121, 27265, 2571, 1032, 9170, 21397, 2121, 27265, 2571, 1006, 1007, 1010, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 11412, 2594, 27265, 2571, 1032, 11412, 2594, 27265, 2571, 1006, 1007, 1010, 2047, 8998, 1032, 14012, 1032, 8998, 27265, 2571, 1032, 8998, 27265, 2571, 1006, 1007, 1010, 2047, 12411, 20763, 1032, 14012, 1032, 7705, 10288, 6494, 27265, 2571, 1032, 12411, 20763, 15643, 6198, 10288, 6494, 27265, 2571, 1006, 1007, 1010, 1013, 1008, 1008, 6327, 26825, 1008, 1013, 2047, 1042, 2891, 1032, 5310, 27265, 2571, 1032, 1042, 2891, 20330, 27265, 2571, 1006, 1007, 1010, 2047, 8998, 1032, 14012, 1032, 17407, 27265, 2571, 1032, 8998, 8873, 18413, 14900, 27265, 2571, 1006, 1007, 1010, 1013, 1008, 1008, 2026, 26825, 1008, 1013, 2047, 4646, 1032, 2392, 10497, 1032, 2392, 10497, 27265, 2571, 1032, 4646, 12792, 10497, 12792, 10497, 27265, 2571, 1006, 1007, 1010, 2047, 4646, 1032, 2067, 10497, 1032, 2067, 10497, 27265, 2571, 1032, 4646, 5963, 10497, 5963, 10497, 27265, 2571, 1006, 1007, 1010, 2047, 4646, 1032, 2067, 10497, 1032, 5310, 27265, 2571, 1032, 4646, 5963, 10497, 20330, 27265, 2571, 1006, 1007, 1010, 1007, 1025, 2065, 1006, 1999, 1035, 9140, 1006, 1002, 2023, 1011, 1028, 2131, 2368, 21663, 2239, 3672, 1006, 1007, 1010, 9140, 1006, 1005, 16475, 1005, 1010, 1005, 3231, 1005, 1007, 1007, 1007, 1063, 1002, 26825, 1031, 1033, 1027, 2047, 25353, 2213, 14876, 4890, 1032, 14012, 1032, 4773, 21572, 8873, 3917, 27265, 2571, 1032, 4773, 21572, 8873, 3917, 27265, 2571, 1006, 1007, 1025, 1002, 26825, 1031, 1033, 1027, 2047, 12411, 20763, 1032, 14012, 1032, 4353, 27265, 2571, 1032, 12411, 20763, 10521, 18886, 29446, 27265, 2571, 1006, 1007, 1025, 1002, 26825, 1031, 1033, 1027, 2047, 12411, 20763, 1032, 14012, 1032, 13103, 27265, 30524, 7170, 2121, 1011, 1028, 7170, 1006, 1035, 1035, 16101, 1035, 1035, 1012, 1005, 1013, 9530, 8873, 2290, 1013, 9530, 8873, 2290, 1035, 1005, 1012, 1002, 2023, 1011, 1028, 2131, 2368, 21663, 2239, 3672, 1006, 1007, 1012, 1005, 30523, 2571, 1032, 12411, 20763, 6914, 6906, 4263, 27265, 2571, 1006, 1007, 1025, 1065, 2709, 1002, 26825, 1025, 1065, 2270, 3853, 4236, 8663, 18249, 2121, 8663, 8873, 27390, 3370, 1006, 7170, 23282, 3334, 12172, 1002, 7170, 2121, 1007, 1063, 1002, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2571, 1032, 12411, 20763, 6914, 6906, 4263, 27265, 2571, 1006, 1007, 1025, 1065, 2709, 1002, 26825, 1025, 1065, 2270, 3853, 4236, 8663, 18249, 2121, 8663, 8873, 27390, 3370, 1006, 7170, 23282, 3334, 12172, 1002, 7170, 2121, 1007, 1063, 1002, 30526 ]
// // KYSquare.h // QiPa // // Created by 欧阳凯 on 15/12/8. // Copyright © 2015年 kaylio. All rights reserved. // #import <Foundation/Foundation.h> @interface KYSquare : NSObject @property (nonatomic, copy) NSString *url; @property (nonatomic, copy) NSString *android; @property (nonatomic, copy) NSString *iphone; //@property (nonatomic, copy) NSString *ID; @property (nonatomic, copy) NSString *market; @property (nonatomic, copy) NSString *ipad; @property (nonatomic, copy) NSString *name; @property (nonatomic, copy) NSString *icon; @end
kaylio/QiPa
QiPa/Classes/Mine/Model/KYSquare.h
C
apache-2.0
563
[ 30522, 1013, 1013, 1013, 1013, 18712, 2015, 16211, 2890, 1012, 1044, 30524, 2325, 1840, 10905, 12798, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 1001, 12324, 1026, 3192, 1013, 3192, 1012, 1044, 1028, 1030, 8278, 18712, 2015, 16211, 2890, 1024, 24978, 16429, 20614, 1030, 3200, 1006, 2512, 10610, 7712, 1010, 6100, 1007, 24978, 3367, 4892, 1008, 24471, 2140, 1025, 1030, 3200, 1006, 2512, 10610, 7712, 1010, 6100, 1007, 24978, 3367, 4892, 1008, 11924, 1025, 1030, 3200, 1006, 2512, 10610, 7712, 1010, 6100, 1007, 24978, 3367, 4892, 1008, 18059, 1025, 1013, 1013, 1030, 3200, 1006, 2512, 10610, 7712, 1010, 6100, 1007, 24978, 3367, 4892, 1008, 8909, 1025, 1030, 3200, 1006, 2512, 10610, 7712, 1010, 6100, 1007, 24978, 3367, 4892, 1008, 3006, 1025, 1030, 3200, 1006, 2512, 10610, 7712, 1010, 6100, 1007, 24978, 3367, 4892, 1008, 25249, 1025, 1030, 3200, 1006, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1013, 18816, 4502, 1013, 1013, 1013, 1013, 2580, 2011, 100, 100, 100, 2006, 2321, 1013, 2260, 1013, 1022, 1012, 1013, 1013, 9385, 1075, 30526 ]
--- layout: page title: "JavaScript user_error function" comments: true sharing: true footer: true alias: - /functions/view/user_error:843 - /functions/view/user_error - /functions/view/843 - /functions/user_error:843 - /functions/843 --- <!-- Generated by Rakefile:build --> A JavaScript equivalent of PHP's user_error {% codeblock errorfunc/user_error.js lang:js https://raw.github.com/kvz/phpjs/master/functions/errorfunc/user_error.js raw on github %} function user_error (error_msg, error_type) { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // - depends on: trigger_error // * example 1: user_error('Cannot divide by zero', 256); // * returns 1: true return this.trigger_error(error_msg, error_type); } {% endcodeblock %} - [view on github](https://github.com/kvz/phpjs/blob/master/functions/errorfunc/user_error.js) - [edit on github](https://github.com/kvz/phpjs/edit/master/functions/errorfunc/user_error.js) ### Example 1 This code {% codeblock lang:js example %} user_error('Cannot divide by zero', 256); {% endcodeblock %} Should return {% codeblock lang:js returns %} true {% endcodeblock %} ### Other PHP functions in the errorfunc extension {% render_partial _includes/custom/errorfunc.html %}
1suming/phpjs
_octopress/source/functions/user_error/index.markdown
Markdown
mit
1,284
[ 30522, 1011, 1011, 1011, 9621, 1024, 3931, 2516, 1024, 1000, 9262, 22483, 5310, 1035, 7561, 3853, 1000, 7928, 1024, 2995, 6631, 1024, 2995, 3329, 2121, 1024, 2995, 14593, 1024, 1011, 1013, 4972, 1013, 3193, 1013, 5310, 1035, 7561, 1024, 6391, 2509, 1011, 1013, 4972, 1013, 3193, 1013, 5310, 1035, 7561, 1011, 1013, 4972, 1013, 3193, 1013, 6391, 2509, 1011, 1013, 4972, 1013, 5310, 1035, 7561, 1024, 6391, 2509, 1011, 1013, 4972, 1013, 6391, 2509, 1011, 1011, 1011, 1026, 999, 1011, 1011, 7013, 2011, 26008, 8873, 2571, 1024, 3857, 1011, 1011, 1028, 1037, 9262, 22483, 5662, 1997, 25718, 1005, 1055, 5310, 1035, 7561, 1063, 1003, 3642, 23467, 7561, 11263, 12273, 1013, 5310, 1035, 7561, 1012, 1046, 2015, 11374, 1024, 1046, 2015, 16770, 1024, 1013, 1013, 6315, 1012, 21025, 2705, 12083, 1012, 4012, 30524, 7561, 1035, 2828, 1007, 1063, 1013, 1013, 8299, 1024, 1013, 1013, 4901, 1012, 3158, 11597, 2638, 15985, 2094, 1012, 5658, 1013, 1013, 1009, 2434, 2011, 1024, 12049, 23564, 14503, 1006, 8299, 1024, 1013, 1013, 12049, 1011, 23564, 14503, 1012, 2033, 1007, 1013, 1013, 1011, 9041, 2006, 1024, 9495, 1035, 7561, 1013, 1013, 1008, 2742, 1015, 1024, 5310, 1035, 7561, 1006, 1005, 3685, 11443, 2011, 5717, 1005, 1010, 17273, 1007, 1025, 1013, 1013, 1008, 5651, 1015, 1024, 2995, 2709, 2023, 1012, 9495, 1035, 7561, 1006, 7561, 1035, 5796, 2290, 1010, 7561, 1035, 2828, 1007, 1025, 1065, 1063, 1003, 2203, 16044, 23467, 1003, 1065, 1011, 1031, 3193, 2006, 21025, 2705, 12083, 1033, 1006, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 24888, 2480, 1013, 25718, 22578, 1013, 1038, 4135, 2497, 1013, 3040, 1013, 4972, 1013, 7561, 11263, 12273, 1013, 5310, 1035, 7561, 1012, 1046, 2015, 1007, 1011, 1031, 10086, 2006, 21025, 2705, 12083, 1033, 1006, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 24888, 2480, 1013, 25718, 22578, 1013, 10086, 1013, 3040, 1013, 4972, 1013, 7561, 11263, 12273, 1013, 5310, 1035, 7561, 1012, 1046, 2015, 1007, 1001, 1001, 1001, 2742, 1015, 2023, 3642, 1063, 1003, 3642, 23467, 11374, 1024, 1046, 2015, 2742, 1003, 1065, 5310, 1035, 7561, 1006, 1005, 3685, 11443, 2011, 5717, 1005, 1010, 17273, 1007, 1025, 1063, 1003, 2203, 16044, 23467, 1003, 1065, 2323, 2709, 1063, 1003, 3642, 23467, 11374, 1024, 1046, 2015, 5651, 1003, 1065, 2995, 1063, 1003, 2203, 16044, 23467, 1003, 1065, 1001, 1001, 1001, 2060, 25718, 4972, 1999, 1996, 7561, 11263, 12273, 5331, 1063, 1003, 17552, 1035, 7704, 1035, 2950, 1013, 7661, 1013, 7561, 11263, 12273, 1012, 16129, 1003, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1013, 24888, 2480, 1013, 25718, 22578, 1013, 3040, 1013, 4972, 1013, 7561, 11263, 12273, 1013, 5310, 1035, 7561, 1012, 1046, 2015, 6315, 2006, 21025, 2705, 12083, 1003, 1065, 3853, 5310, 1035, 7561, 1006, 7561, 1035,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 24888, 2480, 1013, 25718, 22578, 1013, 3040, 1013, 4972, 1013, 7561, 11263, 12273, 1013, 5310, 1035, 7561, 1012, 1046, 2015, 6315, 2006, 21025, 2705, 12083, 1003, 1065, 3853, 5310, 1035, 7561, 1006, 7561, 1035, 5796, 2290, 1010, 30526 ]
/* * GRAL: GRAphing Library for Java(R) * * (C) Copyright 2009-2012 Erich Seifert <dev[at]erichseifert.de>, * Michael Seifert <michael[at]erichseifert.de> * * This file is part of GRAL. * * GRAL 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 3 of the License, or * (at your option) any later version. * * GRAL 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 GRAL. If not, see <http://www.gnu.org/licenses/>. */ package de.erichseifert.gral.graphics; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; import de.erichseifert.gral.util.Insets2D; /** * An interface that provides functions to build a group of multiple components * of {@link Drawable}. It is also responsible for managing layout of its * components using a {@link Layout} and layout constraints for each component. */ public interface Container extends Iterable<Drawable> { /** * Returns the space that this container must preserve at each of its * edges. * @return The insets of this DrawableContainer */ Insets2D getInsets(); /** * Sets the space that this container must preserve at each of its * edges. * @param insets Insets to be set. */ void setInsets(Insets2D insets); /** * Returns the bounds of this container. * @return bounds */ Rectangle2D getBounds(); /** * Sets the bounds of this container. * @param bounds Bounds */ void setBounds(Rectangle2D bounds); /** * Returns the layout associated with this container. * @return Layout manager */ Layout getLayout(); /** * Recalculates this container's layout. */ void layout(); /** * Sets the layout associated with this container. * @param layout Layout to be set. */ void setLayout(Layout layout); /** * Adds a new component to this container. * @param drawable Component */ void add(Drawable drawable); /** * Adds a new component to this container. * @param drawable Component * @param constraints Additional information (e.g. for layout) */ void add(Drawable drawable, Object constraints); /** * Returns the component at the specified point. If no component could be * found {@code null} will be returned. * @param point Two-dimensional point. * @return Component at the specified point, or {@code null} if no * component could be found. */ Drawable getDrawableAt(Point2D point); /** * Return additional information on component * @param drawable Component * @return Information object or {@code null} */ Object getConstraints(Drawable drawable); /** * Removes a component from this container. * @param drawable Component */ void remove(Drawable drawable); /** * Returns the number of components that are stored in this container. * @return total number of components */ int size(); }
charles-cooper/idylfin
src/de/erichseifert/gral/graphics/Container.java
Java
apache-2.0
3,199
[ 30522, 1013, 1008, 1008, 24665, 2389, 1024, 10629, 2075, 3075, 2005, 30524, 17513, 7367, 23780, 2102, 1026, 16475, 1031, 2012, 1033, 17513, 20240, 7512, 2102, 1012, 2139, 1028, 1010, 1008, 2745, 7367, 23780, 2102, 1026, 2745, 1031, 2012, 1033, 17513, 20240, 7512, 2102, 1012, 2139, 1028, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 24665, 2389, 1012, 1008, 1008, 24665, 2389, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 2405, 2011, 1008, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1008, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 24665, 2389, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 8276, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 1008, 2247, 2007, 24665, 2389, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1008, 1013, 7427, 2139, 1012, 17513, 20240, 7512, 2102, 1012, 24665, 2389, 1012, 8389, 1025, 12324, 9262, 1012, 22091, 2102, 1012, 20248, 2213, 1012, 2391, 2475, 2094, 1025, 12324, 9262, 1012, 22091, 2102, 1012, 20248, 2213, 1012, 28667, 23395, 2475, 2094, 1025, 12324, 2139, 1012, 17513, 20240, 7512, 2102, 1012, 24665, 2389, 1012, 21183, 4014, 1012, 16021, 8454, 2475, 2094, 1025, 1013, 1008, 1008, 1008, 2019, 8278, 2008, 3640, 4972, 2000, 3857, 1037, 2177, 1997, 3674, 6177, 1008, 1997, 1063, 1030, 4957, 4009, 3085, 1065, 1012, 2009, 2003, 2036, 3625, 2005, 6605, 9621, 1997, 2049, 1008, 6177, 2478, 1037, 1063, 1030, 4957, 9621, 1065, 1998, 9621, 14679, 2005, 2169, 6922, 1012, 1008, 1013, 2270, 8278, 11661, 8908, 2009, 6906, 3468, 1026, 4009, 3085, 1028, 1063, 1013, 1008, 1008, 1008, 5651, 1996, 2686, 2008, 2023, 11661, 2442, 7969, 2012, 2169, 1997, 2049, 1008, 7926, 1012, 1008, 1030, 2709, 1996, 16021, 8454, 1997, 2023, 4009, 3085, 8663, 18249, 2121, 1008, 1013, 16021, 8454, 2475, 2094, 2131, 7076, 8454, 1006, 1007, 1025, 1013, 1008, 1008, 1008, 4520, 1996, 2686, 2008, 2023, 11661, 2442, 7969, 2012, 2169, 1997, 2049, 1008, 7926, 1012, 1008, 1030, 11498, 2213, 16021, 8454, 16021, 8454, 2000, 2022, 2275, 1012, 1008, 1013, 11675, 2275, 7076, 8454, 1006, 16021, 8454, 2475, 2094, 16021, 8454, 1007, 1025, 1013, 1008, 1008, 1008, 5651, 1996, 19202, 1997, 2023, 11661, 1012, 1008, 1030, 2709, 19202, 1008, 1013, 28667, 23395, 2475, 2094, 2131, 15494, 2015, 1006, 1007, 1025, 1013, 1008, 1008, 1008, 4520, 1996, 19202, 1997, 2023, 11661, 1012, 1008, 1030, 11498, 2213, 19202, 19202, 1008, 1013, 11675, 2275, 15494, 2015, 1006, 28667, 23395, 2475, 2094, 19202, 1007, 1025, 1013, 1008, 1008, 1008, 5651, 1996, 9621, 3378, 30523, 9262, 1006, 1054, 1007, 1008, 1008, 1006, 1039, 1007, 9385, 2268, 1011, 2262, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 9262, 1006, 1054, 1007, 1008, 1008, 1006, 1039, 1007, 9385, 2268, 1011, 2262, 30526 ]
import numpy from srxraylib.plot.gol import plot_image, plot import sys from comsyl.scripts.CompactAFReader import CompactAFReader def plot_stack(mystack,what="intensity",title0="X",title1="Y",title2="Z"): from silx.gui.plot.StackView import StackViewMainWindow from silx.gui import qt app = qt.QApplication(sys.argv[1:]) sv = StackViewMainWindow() sv.setColormap("jet", autoscale=True) if what == "intensity": sv.setStack(numpy.absolute(mystack)) elif what == "real": sv.setStack(numpy.real(mystack)) elif what == "imaginary": sv.setStack(numpy.imag(mystack)) elif what == "phase": sv.setStack(numpy.angle(mystack)) elif what == "phase_deg": sv.setStack(numpy.angle(mystack,deg=True)) else: raise Exception("Undefined label "+what) sv.setLabels([title0,title1,title2]) sv.show() app.exec_() def load_stack(filename): # filename = "/users/srio/OASYS_VE/comsyl_srio/calculations/new_u18_2m_1h_s2.5" reader = CompactAFReader(filename) print("File %s:" % filename) print("contains") print("%i modes" % reader.number_modes()) print("on the grid") print("x: from %e to %e" % (reader.x_coordinates().min(), reader.x_coordinates().max())) print("y: from %e to %e" % (reader.y_coordinates().min(), reader.y_coordinates().max())) print("calculated at %f eV" % reader.photon_energy()) print("with total intensity in (maybe improper) normalization: %e" % reader.total_intensity().real.sum()) print("Occupation and max abs value of the mode") x = reader.x_coordinates() y = reader.y_coordinates() eigenvalues = numpy.zeros(reader.number_modes()) mystack = numpy.zeros((reader.number_modes(),y.size,x.size),dtype=complex) for i_mode in range(reader.number_modes()): eigenvalues[i_mode] = reader.occupation(i_mode) mode = reader.mode(i_mode) mystack[i_mode,:,:] = mode.T return x,y,mystack, eigenvalues if __name__ == "__main__": h,v,mystack, occupation = load_stack("/users/srio/OASYS_VE/comsyl_srio/calculations/new_u18_2m_1h_s2.5") plot_stack(mystack,what="intensity", title0="Mode index", title1="V from %3.2f to %3.2f um"%(1e3*v.min(),1e3*v.max()), title2="H from %3.2f to %3.2f um"%(1e3*h.min(),1e3*h.max())) plot(numpy.arange(occupation.size),occupation)
srio/oasys-comsyl
orangecontrib/comsyl/scripts/load_results_from_file.py
Python
mit
2,411
[ 30522, 12324, 16371, 8737, 2100, 2013, 5034, 2595, 9447, 29521, 1012, 5436, 1012, 2175, 2140, 12324, 5436, 1035, 3746, 1010, 5436, 12324, 25353, 2015, 2013, 4012, 6508, 2140, 1012, 14546, 1012, 9233, 10354, 16416, 4063, 12324, 9233, 10354, 16416, 4063, 13366, 5436, 1035, 9991, 1006, 2026, 9153, 3600, 1010, 2054, 1027, 1000, 8015, 1000, 1010, 2516, 2692, 1027, 1000, 1060, 1000, 1010, 2516, 2487, 1027, 1000, 1061, 1000, 1010, 2516, 2475, 1027, 1000, 1062, 1000, 1007, 1024, 2013, 9033, 2140, 2595, 1012, 26458, 1012, 5436, 1012, 9991, 8584, 12324, 9991, 8584, 24238, 11101, 5004, 2013, 9033, 2140, 2595, 1012, 26458, 12324, 1053, 2102, 10439, 1027, 1053, 2102, 1012, 1053, 29098, 19341, 3508, 1006, 25353, 2015, 1012, 12098, 2290, 2615, 1031, 1015, 1024, 1033, 1007, 17917, 1027, 9991, 8584, 24238, 11101, 5004, 1006, 1007, 17917, 1012, 2275, 18717, 2863, 2361, 1006, 1000, 6892, 1000, 1010, 8285, 15782, 2571, 1027, 2995, 1007, 2065, 2054, 1027, 1027, 1000, 8015, 1000, 1024, 17917, 1012, 4520, 2696, 3600, 1006, 16371, 8737, 2100, 1012, 7619, 1006, 2026, 9153, 3600, 1007, 1007, 12005, 2546, 2054, 1027, 1027, 1000, 2613, 1000, 1024, 17917, 1012, 4520, 2696, 3600, 1006, 16371, 8737, 2100, 1012, 2613, 1006, 2026, 9153, 3600, 1007, 1007, 12005, 2546, 2054, 1027, 1027, 1000, 15344, 1000, 1024, 17917, 1012, 4520, 2696, 3600, 1006, 16371, 8737, 2100, 1012, 10047, 8490, 1006, 2026, 9153, 3600, 1007, 1007, 12005, 2546, 2054, 1027, 1027, 1000, 4403, 1000, 1024, 17917, 1012, 4520, 2696, 3600, 1006, 16371, 8737, 2100, 1012, 6466, 1006, 2026, 9153, 3600, 1007, 1007, 12005, 2546, 2054, 1027, 1027, 1000, 4403, 1035, 2139, 2290, 1000, 1024, 17917, 30524, 9153, 3600, 1010, 2139, 2290, 1027, 2995, 1007, 1007, 2842, 1024, 5333, 6453, 1006, 1000, 6151, 28344, 3830, 1000, 1009, 2054, 1007, 17917, 1012, 2275, 20470, 9050, 1006, 1031, 2516, 2692, 1010, 2516, 2487, 1010, 2516, 2475, 1033, 1007, 17917, 1012, 2265, 1006, 1007, 10439, 1012, 4654, 8586, 1035, 1006, 1007, 13366, 7170, 1035, 9991, 1006, 5371, 18442, 1007, 1024, 1001, 5371, 18442, 1027, 1000, 1013, 5198, 1013, 5185, 2080, 1013, 1051, 3022, 7274, 1035, 2310, 1013, 4012, 6508, 2140, 1035, 5185, 2080, 1013, 16268, 1013, 2047, 1035, 1057, 15136, 1035, 1016, 2213, 1035, 1015, 2232, 1035, 1055, 2475, 1012, 1019, 1000, 8068, 1027, 9233, 10354, 16416, 4063, 1006, 5371, 18442, 1007, 6140, 1006, 1000, 5371, 1003, 1055, 1024, 1000, 1003, 5371, 18442, 1007, 6140, 1006, 1000, 3397, 1000, 1007, 6140, 1006, 1000, 1003, 1045, 11583, 1000, 1003, 8068, 1012, 2193, 1035, 11583, 1006, 1007, 1007, 6140, 1006, 1000, 2006, 1996, 8370, 1000, 1007, 6140, 1006, 1000, 1060, 1024, 2013, 1003, 1041, 2000, 1003, 1041, 1000, 1003, 1006, 8068, 1012, 1060, 1035, 12093, 1006, 1007, 1012, 8117, 1006, 1007, 1010, 8068, 1012, 1060, 1035, 12093, 1006, 1007, 1012, 4098, 1006, 1007, 1007, 1007, 6140, 1006, 1000, 1061, 1024, 2013, 1003, 1041, 2000, 1003, 1041, 1000, 1003, 1006, 8068, 1012, 1061, 1035, 12093, 1006, 1007, 1012, 8117, 1006, 1007, 1010, 8068, 30523, 1012, 4520, 2696, 3600, 1006, 16371, 8737, 2100, 1012, 6466, 1006, 2026, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1012, 4520, 2696, 3600, 1006, 16371, 8737, 2100, 1012, 6466, 1006, 2026, 30526 ]
require 'spec_helper' describe Pagerage::IncidentsParser do before(:each) do Pagerage::Incident.delete end let(:incidents_json) { File.read(File.dirname(__FILE__) + '/incidents_sample.json') } let(:incidents_data) { JSON.parse(incidents_json) } let(:parser) { Pagerage::IncidentsParser.new(incidents_json) } it 'should set data attr when created' do parser.data.should eq(incidents_data) end it 'should generate two incidents from the sample data' do parser.run! Pagerage::Incident.count.should eq(2) end end
gorsuch/pagerage
spec/pagerage/incidents_parser_spec.rb
Ruby
mit
546
[ 30522, 5478, 1005, 28699, 1035, 2393, 2121, 1005, 6235, 3931, 24449, 1024, 1024, 10444, 19362, 8043, 2079, 2077, 1006, 1024, 2169, 1007, 2079, 3931, 24449, 1024, 1024, 5043, 1012, 3972, 12870, 2203, 2292, 1006, 1024, 10444, 1035, 1046, 3385, 1007, 1063, 5371, 1012, 3191, 1006, 5371, 1012, 16101, 18442, 1006, 1035, 1035, 5371, 1035, 1035, 1007, 1009, 1005, 1013, 10444, 1035, 7099, 1012, 1046, 3385, 1005, 1007, 1065, 2292, 1006, 1024, 10444, 1035, 2951, 1007, 1063, 1046, 3385, 1012, 11968, 3366, 1006, 10444, 1035, 1046, 3385, 1007, 1065, 2292, 1006, 1024, 11968, 8043, 1007, 1063, 3931, 24449, 1024, 1024, 10444, 19362, 8043, 1012, 2047, 1006, 10444, 1035, 1046, 3385, 1007, 1065, 2009, 1005, 2323, 2275, 2951, 2012, 16344, 2043, 2580, 1005, 2079, 11968, 8043, 1012, 2951, 1012, 2323, 1041, 4160, 1006, 10444, 1035, 2951, 1007, 2203, 2009, 1005, 2323, 9699, 2048, 10444, 2013, 1996, 7099, 2951, 1005, 2079, 11968, 8043, 1012, 2448, 999, 3931, 24449, 1024, 1024, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5043, 1012, 4175, 1012, 2323, 1041, 4160, 1006, 1016, 1007, 2203, 2203, 102, 0, 30526 ]
--- layout: post title: "Beam Summit Europe 2018" date: 2018-08-21 00:00:01 -0800 excerpt_separator: <!--more--> categories: blog authors: - mbaetens --- <!-- 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. --> With a growing community of contributors and users, the Apache Beam project is organising the first European Beam Summit. We are happy to invite you to this event, which will take place in **London** on **October 1st and 2nd of 2018**. <!--more--> <img src="{{ "/images/blog/Facebook-AD.png" | prepend: site.baseurl }}" alt="Beam Summit Europe 2018 flyer" height="360" width="640" > ### What is the Beam Summit 2018? The summit is a 2 day, multi-track event. During the first day we’ll host sessions to share use cases from companies using Apache Beam, community driven talks, and a session to discuss the project's roadmap (from the main partners in the project as well as all users planning to contribute to the project and wanting to share their plans). We'll also have break-out sessions that will allow cross team collaboration in multiple sub-topics. The second day will be a "hands-on" day. We will offer an introductory session to Apache Beam. Additionally, we'll host an advanced track for more advanced users with open-table discussions about more complex and newer Apache Beam features. The agenda will grow and be communicated in the coming month, keep an eye on the page. ### Event Details - **Venue**: [Level39, One Canada Square, Canary Wharf, London E14 5AB](https://goo.gl/maps/LAC4haDzSzR2) - **Dates**: 1-2 October 2018 ### How do I register? You can register for free on the [Eventbrite registration page](https://www.eventbrite.com/e/beam-summit-london-2018-tickets-49100625292#tickets). ### I am interested in speaking, how do I propose my session? With this we are also launching a Call for Papers in case you want to secure a slot for one of the sessions. Please fill out the [CfP form](https://goo.gl/forms/nrZOCC1JwEfLtKfA2). ### I'd love to get involved as a volunteer or sponsor Furthermore, in order to keep this event free, we are looking for people to help out at and/or sponsor some parts of the conference. If you (or your company) are interested to help out, please reach out to: <[email protected]> or <[email protected]>. You can find more info in the [sponsor booklet](https://drive.google.com/file/d/1RnZ52rGaB6BR-EKneBcabdMcg9Pl7z9M) Thanks, and we hope to see you at the event! The Events & Meetups Group
mxm/incubator-beam
website/src/_posts/2018-08-21-beam-summit-europe.md
Markdown
apache-2.0
2,959
[ 30522, 1011, 1011, 1011, 9621, 1024, 2695, 2516, 1024, 1000, 7504, 6465, 2885, 2760, 1000, 3058, 1024, 2760, 1011, 5511, 1011, 2538, 4002, 1024, 4002, 1024, 5890, 1011, 5511, 8889, 28142, 1035, 19802, 25879, 2953, 1024, 1026, 999, 1011, 1011, 2062, 1011, 1011, 1028, 7236, 1024, 9927, 6048, 1024, 1011, 15038, 12870, 3619, 1011, 1011, 1011, 1026, 999, 30524, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 12546, 2104, 1996, 6105, 1012, 1011, 1011, 1028, 2007, 1037, 3652, 2451, 1997, 16884, 1998, 5198, 1010, 1996, 15895, 7504, 2622, 2003, 21317, 1996, 2034, 2647, 7504, 6465, 1012, 2057, 2024, 3407, 2000, 13260, 2017, 2000, 2023, 2724, 1010, 2029, 2097, 2202, 2173, 1999, 1008, 1008, 2414, 1008, 1008, 2006, 1008, 1008, 2255, 3083, 1998, 3416, 1997, 2760, 1008, 1008, 1012, 1026, 999, 1011, 1011, 2062, 1011, 1011, 1028, 1026, 10047, 2290, 5034, 2278, 1027, 1000, 1063, 1063, 1000, 1013, 4871, 1013, 9927, 1013, 9130, 1011, 4748, 1012, 1052, 3070, 1000, 1064, 17463, 10497, 1024, 2609, 1012, 2918, 3126, 2140, 1065, 1065, 1000, 12456, 1027, 1000, 7504, 6465, 2885, 2760, 23821, 1000, 4578, 1027, 1000, 9475, 1000, 9381, 1027, 1000, 19714, 1000, 1028, 1001, 1001, 1001, 2054, 2003, 1996, 7504, 6465, 2760, 1029, 1996, 6465, 2003, 1037, 1016, 2154, 1010, 4800, 1011, 2650, 2724, 1012, 2076, 1996, 2034, 2154, 2057, 1521, 2222, 3677, 6521, 2000, 3745, 2224, 3572, 2013, 3316, 2478, 15895, 7504, 1010, 2451, 5533, 7566, 1010, 1998, 1037, 5219, 2000, 6848, 1996, 2622, 1005, 1055, 2346, 2863, 2361, 1006, 2013, 1996, 2364, 5826, 1999, 1996, 2622, 2004, 2092, 2004, 2035, 5198, 4041, 2000, 9002, 2000, 1996, 2622, 1998, 5782, 2000, 3745, 2037, 3488, 1007, 1012, 2057, 1005, 2222, 2036, 2031, 3338, 1011, 2041, 6521, 2008, 2097, 3499, 2892, 2136, 5792, 1999, 3674, 4942, 1011, 7832, 1012, 1996, 2117, 2154, 2097, 2022, 1037, 1000, 2398, 1011, 2006, 1000, 2154, 1012, 2057, 2097, 3749, 2019, 23889, 5219, 2000, 15895, 7504, 1012, 5678, 1010, 2057, 1005, 2222, 3677, 2019, 3935, 2650, 2005, 2062, 3935, 5198, 2007, 2330, 1011, 2795, 10287, 2055, 2062, 3375, 1998, 10947, 15895, 7504, 2838, 1012, 1996, 11376, 2097, 4982, 1998, 2022, 24162, 1999, 1996, 2746, 3204, 1010, 2562, 2019, 3239, 2006, 1996, 3931, 1012, 1001, 1001, 1001, 2724, 4751, 1011, 1008, 1008, 6891, 1008, 1008, 1024, 1031, 2504, 23499, 1010, 2028, 2710, 2675, 1010, 17154, 16435, 1010, 2414, 1041, 16932, 1019, 7875, 1033, 1006, 16770, 1024, 1013, 1013, 27571, 30523, 1011, 1011, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1011, 1011, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 30526 ]
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>DateField - ScalaTest 2.2.4 - org.scalatest.selenium.WebBrowser.DateField</title> <meta name="description" content="DateField - ScalaTest 2.2.4 - org.scalatest.selenium.WebBrowser.DateField" /> <meta name="keywords" content="DateField ScalaTest 2.2.4 org.scalatest.selenium.WebBrowser.DateField" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link href="../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" /> <link href="../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" /> <script type="text/javascript" src="../../../lib/jquery.js" id="jquery-js"></script> <script type="text/javascript" src="../../../lib/jquery-ui.js"></script> <script type="text/javascript" src="../../../lib/template.js"></script> <script type="text/javascript" src="../../../lib/tools.tooltip.js"></script> <script type="text/javascript"> if(top === self) { var url = '../../../index.html'; var hash = 'org.scalatest.selenium.WebBrowser$DateField'; var anchor = window.location.hash; var anchor_opt = ''; if (anchor.length >= 1) anchor_opt = '@' + anchor.substring(1); window.location.href = url + '#' + hash + anchor_opt; } </script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-71294502-3', 'auto'); ga('send', 'pageview'); </script> </head> <body class="type"> <!-- Top of doc.scalatest.org [javascript] --> <script type="text/javascript"> var rnd = window.rnd || Math.floor(Math.random()*10e6); var pid204546 = window.pid204546 || rnd; var plc204546 = window.plc204546 || 0; var abkw = window.abkw || ''; var absrc = 'http://ab167933.adbutler-ikon.com/adserve/;ID=167933;size=468x60;setID=204546;type=js;sw='+screen.width+';sh='+screen.height+';spr='+window.devicePixelRatio+';kw='+abkw+';pid='+pid204546+';place='+(plc204546++)+';rnd='+rnd+';click=CLICK_MACRO_PLACEHOLDER'; document.write('<scr'+'ipt src="'+absrc+'" type="text/javascript"></scr'+'ipt>'); </script> <div id="definition"> <img src="../../../lib/class_big.png" /> <p id="owner"><a href="../../package.html" class="extype" name="org">org</a>.<a href="../package.html" class="extype" name="org.scalatest">scalatest</a>.<a href="package.html" class="extype" name="org.scalatest.selenium">selenium</a>.<a href="WebBrowser.html" class="extype" name="org.scalatest.selenium.WebBrowser">WebBrowser</a></p> <h1>DateField</h1> </div> <h4 id="signature" class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">class</span> </span> <span class="symbol"> <span class="name">DateField</span><span class="result"> extends <a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a> with <a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a></span> </span> </h4> <div id="comment" class="fullcommenttop"><div class="comment cmt"><p>This class is part of ScalaTest's Selenium DSL. Please see the documentation for <a href="WebBrowser.html"><code>WebBrowser</code></a> for an overview of the Selenium DSL.</p><p>This class enables syntax such as the following:</p><p><pre class="stHighlighted"> dateField(<span class="stQuotedString">&quot;q&quot;</span>).value should be (<span class="stQuotedString">&quot;2003-03-01&quot;</span>) </pre> </p></div><dl class="attributes block"> <dt>Source</dt><dd><a href="https://github.com/scalatest/scalatest/tree/release-2.2.4-for-scala-2.11-and-2.10/src/main/scala/org/scalatest/selenium/WebBrowser.scala" target="_blank">WebBrowser.scala</a></dd><dt>Exceptions thrown</dt><dd><span class="cmt">TestFailedExeption<p>if the passed <code>WebElement</code> does not represent a date field </p></span></dd></dl><div class="toggleContainer block"> <span class="toggle">Linear Supertypes</span> <div class="superTypes hiddenContent"><a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a>, <a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a>, <span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div> </div></div> <div id="mbrsel"> <div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div> <div id="order"> <span class="filtertype">Ordering</span> <ol> <li class="alpha in"><span>Alphabetic</span></li> <li class="inherit out"><span>By inheritance</span></li> </ol> </div> <div id="ancestors"> <span class="filtertype">Inherited<br /> </span> <ol id="linearization"> <li class="in" name="org.scalatest.selenium.WebBrowser.DateField"><span>DateField</span></li><li class="in" name="org.scalatest.selenium.WebBrowser.ValueElement"><span>ValueElement</span></li><li class="in" name="org.scalatest.selenium.WebBrowser.Element"><span>Element</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li> </ol> </div><div id="ancestors"> <span class="filtertype"></span> <ol> <li class="hideall out"><span>Hide All</span></li> <li class="showall in"><span>Show all</span></li> </ol> <a href="http://docs.scala-lang.org/overviews/scaladoc/usage.html#members" target="_blank">Learn more about member selection</a> </div> <div id="visbl"> <span class="filtertype">Visibility</span> <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol> </div> </div> <div id="template"> <div id="allMembers"> <div id="constructors" class="members"> <h3>Instance Constructors</h3> <ol><li name="org.scalatest.selenium.WebBrowser.DateField#&lt;init&gt;" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="&lt;init&gt;(underlying:org.openqa.selenium.WebElement):WebBrowser.this.DateField"></a> <a id="&lt;init&gt;:DateField"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">new</span> </span> <span class="symbol"> <span class="name">DateField</span><span class="params">(<span name="underlying">underlying: <span class="extype" name="org.openqa.selenium.WebElement">WebElement</span></span>)</span> </span> </h4> <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="paramcmts block"><dt class="param">underlying</dt><dd class="cmt"><p>the <code>WebElement</code> representing a date field</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt">TestFailedExeption<p>if the passed <code>WebElement</code> does not represent a date field </p></span></dd></dl></div> </li></ol> </div> <div id="values" class="values members"> <h3>Value Members</h3> <ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="!=(x$1:AnyRef):Boolean"></a> <a id="!=(AnyRef):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.Any#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="!=(x$1:Any):Boolean"></a> <a id="!=(Any):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div> </li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="##():Int"></a> <a id="##():Int"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div> </li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="==(x$1:AnyRef):Boolean"></a> <a id="==(AnyRef):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.Any#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="==(x$1:Any):Boolean"></a> <a id="==(Any):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div> </li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="asInstanceOf[T0]:T0"></a> <a id="asInstanceOf[T0]:T0"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#attribute" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="attribute(name:String):Option[String]"></a> <a id="attribute(String):Option[String]"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">attribute</span><span class="params">(<span name="name">name: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="scala.Predef.String">String</span>]</span> </span> </h4> <p class="shortcomment cmt">The attribute value of the given attribute name of this element, wrapped in a <code>Some</code>, or <code>None</code> if no such attribute exists on this <code>Element</code>.</p><div class="fullcomment"><div class="comment cmt"><p>The attribute value of the given attribute name of this element, wrapped in a <code>Some</code>, or <code>None</code> if no such attribute exists on this <code>Element</code>.</p><p>This method invokes <code>getAttribute</code> on the underlying <code>WebElement</code>, passing in the specified <code>name</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the attribute with the given name, wrapped in a <code>Some</code>, else <code>None</code> </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.ValueElement#checkCorrectType" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="checkCorrectType(isA:org.openqa.selenium.WebElement=&gt;Boolean,typeDescription:String):Unit"></a> <a id="checkCorrectType((WebElement)⇒Boolean,String):Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">checkCorrectType</span><span class="params">(<span name="isA">isA: (<span class="extype" name="org.openqa.selenium.WebElement">WebElement</span>) ⇒ <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="typeDescription">typeDescription: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.ValueElement#clear" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="clear():Unit"></a> <a id="clear():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">clear</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <p class="shortcomment cmt">Clears this field.</p><div class="fullcomment"><div class="comment cmt"><p>Clears this field. </p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a></dd></dl></div> </li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="clone():Object"></a> <a id="clone():AnyRef"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">()</span> </dd></dl></div> </li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="eq(x$1:AnyRef):Boolean"></a> <a id="eq(AnyRef):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="equals(other:Any):Boolean"></a> <a id="equals(Any):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">equals</span><span class="params">(<span name="other">other: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <p class="shortcomment cmt">Returns the result of invoking <code>equals</code> on the underlying <code>Element</code>, passing in the specified <code>other</code> object.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the result of invoking <code>equals</code> on the underlying <code>Element</code>, passing in the specified <code>other</code> object. </p></div><dl class="paramcmts block"><dt class="param">other</dt><dd class="cmt"><p>the object with which to compare for equality </p></dd><dt>returns</dt><dd class="cmt"><p>true if the passed object is equal to this one </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a> → AnyRef → Any</dd></dl></div> </li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="finalize():Unit"></a> <a id="finalize():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">()</span> </dd></dl></div> </li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="getClass():Class[_]"></a> <a id="getClass():Class[_]"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="hashCode():Int"></a> <a id="hashCode():Int"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span> </span> </h4> <p class="shortcomment cmt">Returns the result of invoking <code>hashCode</code> on the underlying <code>Element</code>.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the result of invoking <code>hashCode</code> on the underlying <code>Element</code>. </p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>a hash code for this object </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a> → AnyRef → Any</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#isDisplayed" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="isDisplayed:Boolean"></a> <a id="isDisplayed:Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">isDisplayed</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <p class="shortcomment cmt">Indicates whether this <code>Element</code> is displayed.</p><div class="fullcomment"><div class="comment cmt"><p>Indicates whether this <code>Element</code> is displayed.</p><p>This invokes <code>isDisplayed</code> on the underlying <code>WebElement</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p><code>true</code> if the element is currently displayed </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#isEnabled" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="isEnabled:Boolean"></a> <a id="isEnabled:Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">isEnabled</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <p class="shortcomment cmt">Indicates whether this <code>Element</code> is enabled.</p><div class="fullcomment"><div class="comment cmt"><p>Indicates whether this <code>Element</code> is enabled.</p><p>This invokes <code>isEnabled</code> on the underlying <code>WebElement</code>, which will generally return <code>true</code> for everything but disabled input elements.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p><code>true</code> if the element is currently enabled </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="isInstanceOf[T0]:Boolean"></a> <a id="isInstanceOf[T0]:Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#isSelected" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="isSelected:Boolean"></a> <a id="isSelected:Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">isSelected</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <p class="shortcomment cmt">Indicates whether this <code>Element</code> is selected.</p><div class="fullcomment"><div class="comment cmt"><p>Indicates whether this <code>Element</code> is selected.</p><p>This method, which invokes <code>isSelected</code> on the underlying <code>WebElement</code>, is relevant only for input elements such as checkboxes, options in a single- or multiple-selection list box, and radio buttons. For any other element it will simply return <code>false</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p><code>true</code> if the element is currently selected or checked </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#location" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="location:WebBrowser.this.Point"></a> <a id="location:Point"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">location</span><span class="result">: <a href="WebBrowser$Point.html" class="extype" name="org.scalatest.selenium.WebBrowser.Point">Point</a></span> </span> </h4> <p class="shortcomment cmt">The XY location of the top-left corner of this <code>Element</code>.</p><div class="fullcomment"><div class="comment cmt"><p>The XY location of the top-left corner of this <code>Element</code>.</p><p>This invokes <code>getLocation</code> on the underlying <code>WebElement</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the location of the top-left corner of this element on the page </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="ne(x$1:AnyRef):Boolean"></a> <a id="ne(AnyRef):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="notify():Unit"></a> <a id="notify():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="notifyAll():Unit"></a> <a id="notifyAll():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#size" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="size:WebBrowser.this.Dimension"></a> <a id="size:Dimension"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">size</span><span class="result">: <a href="WebBrowser$Dimension.html" class="extype" name="org.scalatest.selenium.WebBrowser.Dimension">Dimension</a></span> </span> </h4> <p class="shortcomment cmt">The width/height size of this <code>Element</code>.</p><div class="fullcomment"><div class="comment cmt"><p>The width/height size of this <code>Element</code>.</p><p>This invokes <code>getSize</code> on the underlying <code>WebElement</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the size of the element on the page </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="synchronized[T0](x$1:=&gt;T0):T0"></a> <a id="synchronized[T0](⇒T0):T0"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#tagName" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="tagName:String"></a> <a id="tagName:String"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">tagName</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span> </span> </h4> <p class="shortcomment cmt">The tag name of this element.</p><div class="fullcomment"><div class="comment cmt"><p>The tag name of this element.</p><p>This method invokes <code>getTagName</code> on the underlying <code>WebElement</code>. Note it returns the name of the tag, not the value of the of the <code>name</code> attribute. For example, it will return will return <code>"input"</code> for the element <code>&lt;input name="city" /&gt;</code>, not <code>"city"</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the tag name of this element </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#text" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="text:String"></a> <a id="text:String"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">text</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span> </span> </h4> <p class="shortcomment cmt">Returns the visible (<em>i.e.</em>, not hidden by CSS) text of this element, including sub-elements, without any leading or trailing whitespace.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the visible (<em>i.e.</em>, not hidden by CSS) text of this element, including sub-elements, without any leading or trailing whitespace. </p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the visible text enclosed by this element, or an empty string, if the element encloses no visible text </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.Element#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="toString():String"></a> <a id="toString():String"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span> </span> </h4> <p class="shortcomment cmt">Returns the result of invoking <code>toString</code> on the underlying <code>Element</code>.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the result of invoking <code>toString</code> on the underlying <code>Element</code>. </p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>a string representation of this object </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a> → AnyRef → Any</dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.DateField#underlying" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="underlying:org.openqa.selenium.WebElement"></a> <a id="underlying:WebElement"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">val</span> </span> <span class="symbol"> <span class="name">underlying</span><span class="result">: <span class="extype" name="org.openqa.selenium.WebElement">WebElement</span></span> </span> </h4> <p class="shortcomment cmt">the <code>WebElement</code> representing a date field</p><div class="fullcomment"><div class="comment cmt"><p>the <code>WebElement</code> representing a date field</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.scalatest.selenium.WebBrowser.DateField">DateField</a> → <a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a> → <a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.ValueElement#value" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="value:String"></a> <a id="value:String"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">value</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span> </span> </h4> <p class="shortcomment cmt">Gets this field's value.</p><div class="fullcomment"><div class="comment cmt"><p>Gets this field's value.</p><p>This method invokes <code>getAttribute("value")</code> on the underlying <code>WebElement</code>.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the field's value </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a></dd></dl></div> </li><li name="org.scalatest.selenium.WebBrowser.ValueElement#value_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="value_=(value:String):Unit"></a> <a id="value_=(String):Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: value_$eq" class="name">value_=</span><span class="params">(<span name="value">value: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <p class="shortcomment cmt">Sets this field's value.</p><div class="fullcomment"><div class="comment cmt"><p>Sets this field's value. </p></div><dl class="paramcmts block"><dt class="param">value</dt><dd class="cmt"><p>the new value </p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a></dd></dl></div> </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="wait():Unit"></a> <a id="wait():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">()</span> </dd></dl></div> </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="wait(x$1:Long,x$2:Int):Unit"></a> <a id="wait(Long,Int):Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">()</span> </dd></dl></div> </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="wait(x$1:Long):Unit"></a> <a id="wait(Long):Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">()</span> </dd></dl></div> </li></ol> </div> </div> <div id="inheritedMembers"> <div class="parent" name="org.scalatest.selenium.WebBrowser.ValueElement"> <h3>Inherited from <a href="WebBrowser$ValueElement.html" class="extype" name="org.scalatest.selenium.WebBrowser.ValueElement">ValueElement</a></h3> </div><div class="parent" name="org.scalatest.selenium.WebBrowser.Element"> <h3>Inherited from <a href="WebBrowser$Element.html" class="extype" name="org.scalatest.selenium.WebBrowser.Element">Element</a></h3> </div><div class="parent" name="scala.AnyRef"> <h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3> </div><div class="parent" name="scala.Any"> <h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3> </div> </div> <div id="groupedMembers"> <div class="group" name="Ungrouped"> <h3>Ungrouped</h3> </div> </div> </div> <div id="tooltip"></div> <div id="footer"> </div> </body> </html>
scalatest/scalatest-website
public/scaladoc/2.2.4/org/scalatest/selenium/WebBrowser$DateField.html
HTML
apache-2.0
43,461
[ 30522, 1026, 1029, 20950, 2544, 1027, 1005, 1015, 1012, 1014, 1005, 17181, 30524, 1013, 19817, 1013, 1060, 11039, 19968, 14526, 1013, 26718, 2094, 1013, 1060, 11039, 19968, 14526, 1012, 26718, 2094, 1000, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 3058, 3790, 1011, 26743, 22199, 1016, 1012, 1016, 1012, 1018, 1011, 8917, 1012, 26743, 22199, 1012, 7367, 7770, 5007, 1012, 10923, 10524, 8043, 1012, 3058, 3790, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 6412, 1000, 4180, 1027, 1000, 3058, 3790, 1011, 26743, 22199, 1016, 1012, 1016, 1012, 1018, 1011, 8917, 1012, 26743, 22199, 1012, 7367, 7770, 5007, 1012, 10923, 10524, 8043, 1012, 3058, 3790, 1000, 1013, 1028, 1026, 18804, 2171, 1027, 1000, 3145, 22104, 1000, 4180, 1027, 1000, 3058, 3790, 26743, 22199, 1016, 1012, 1016, 1012, 1018, 8917, 1012, 26743, 22199, 1012, 7367, 7770, 5007, 1012, 10923, 10524, 8043, 1012, 3058, 3790, 1000, 1013, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5622, 2497, 1013, 23561, 1012, 20116, 2015, 1000, 2865, 1027, 1000, 3898, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1013, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5622, 2497, 1013, 26309, 1012, 20116, 2015, 1000, 2865, 1027, 1000, 3898, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 8909, 1027, 1000, 26309, 1011, 20116, 2015, 1000, 1013, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5622, 2497, 1013, 1046, 4226, 2854, 1012, 1046, 2015, 1000, 8909, 1027, 1000, 1046, 4226, 2854, 1011, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5622, 2497, 1013, 1046, 4226, 2854, 1011, 21318, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5622, 2497, 1013, 23561, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 5622, 2497, 1013, 5906, 1012, 6994, 25101, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 1028, 30523, 1027, 1005, 21183, 2546, 1011, 1022, 1005, 1029, 1028, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 1060, 11039, 19968, 1015, 1012, 1015, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1027, 1005, 21183, 2546, 1011, 1022, 1005, 1029, 1028, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 1060, 11039, 19968, 1015, 1012, 1015, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 30526 ]
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.talend.test; import java.io.Serializable; import java.util.Map; import org.talend.sdk.component.api.component.MigrationHandler; import org.talend.sdk.component.api.component.Version; import org.talend.sdk.component.api.configuration.Option; import org.talend.sdk.component.api.configuration.type.DataSet; import org.talend.sdk.component.api.configuration.type.DataStore; import org.talend.sdk.component.api.configuration.ui.layout.GridLayout; import org.talend.sdk.component.api.meta.Documentation; import org.talend.sdk.component.api.processor.ElementListener; import org.talend.sdk.component.api.processor.Input; import org.talend.sdk.component.api.processor.Processor; import org.talend.sdk.component.api.record.Record; import lombok.Data; @Processor(family = "metadata", name = "MetadataMigrationProcessor") public class MetadataMigrationProcessor implements Serializable { public MetadataMigrationProcessor(@Option("configuration") final Config config) { // no-op } @ElementListener public void onElement(@Input final Record in) { // no-op } public static class Config { @Option private MyDataSet dataset; } @Data @DataSet @Version(value = 2, migrationHandler = MyDataSet.InputMapperDataSetHandler.class) @GridLayout({ @GridLayout.Row({ "dataStore" }), @GridLayout.Row({ "config" }) }) @Documentation("") public static class MyDataSet implements Serializable { @Option private MyDataStore dataStore; @Option private String config; public static class InputMapperDataSetHandler implements MigrationHandler { @Override public Map<String, String> migrate(final int incomingVersion, final Map<String, String> incomingData) { final String value = incomingData.remove("option"); if (value != null) { incomingData.put("config", value); } return incomingData; } } } @Data @DataStore @Version(value = 2, migrationHandler = MyDataStore.InputMapperDataStoretHandler.class) @GridLayout({ @GridLayout.Row({ "url" }) }) @Documentation("") public static class MyDataStore { @Option private String url; public static class InputMapperDataStoretHandler implements MigrationHandler { @Override public Map<String, String> migrate(final int incomingVersion, final Map<String, String> incomingData) { final String value = incomingData.remove("connection"); if (value != null) { incomingData.put("url", value); } return incomingData; } } } }
chmyga/component-runtime
component-runtime-design-extension/src/test/java/org/talend/test/MetadataMigrationProcessor.java
Java
apache-2.0
3,409
[ 30522, 1013, 1008, 1008, 1008, 9385, 1006, 1039, 1007, 2294, 1011, 12609, 6925, 4859, 4297, 1012, 1011, 7479, 1012, 6925, 4859, 1012, 4012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 30524, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 8917, 1012, 6925, 4859, 1012, 3231, 1025, 12324, 9262, 1012, 22834, 1012, 7642, 21335, 3468, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 4949, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 6922, 1012, 9230, 11774, 3917, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 6922, 1012, 2544, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 9563, 1012, 5724, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 9563, 1012, 2828, 1012, 2951, 13462, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 9563, 1012, 2828, 1012, 2951, 23809, 2063, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 9563, 1012, 21318, 1012, 9621, 1012, 8370, 8485, 5833, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 18804, 1012, 12653, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 13151, 1012, 5783, 9863, 24454, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 13151, 1012, 7953, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 13151, 1012, 13151, 1025, 12324, 8917, 1012, 6925, 4859, 1012, 17371, 2243, 1012, 6922, 1012, 17928, 1012, 2501, 1012, 2501, 1025, 12324, 8840, 13344, 2243, 1012, 2951, 1025, 1030, 13151, 1006, 2155, 1027, 1000, 27425, 1000, 1010, 2171, 1027, 1000, 27425, 4328, 29397, 21572, 9623, 21748, 1000, 1007, 2270, 2465, 27425, 4328, 29397, 21572, 9623, 21748, 22164, 7642, 21335, 3468, 1063, 2270, 27425, 4328, 29397, 21572, 9623, 21748, 1006, 1030, 5724, 1006, 1000, 9563, 1000, 1007, 2345, 9530, 8873, 2290, 9530, 8873, 2290, 1007, 1063, 1013, 1013, 2053, 1011, 6728, 1065, 1030, 5783, 9863, 24454, 2270, 11675, 2028, 16930, 4765, 1006, 1030, 7953, 2345, 2501, 1999, 1007, 1063, 1013, 1013, 2053, 1011, 6728, 1065, 2270, 10763, 2465, 9530, 8873, 2290, 1063, 1030, 5724, 2797, 2026, 2850, 18260, 2102, 2951, 13462, 1025, 1065, 1030, 2951, 1030, 2951, 13462, 1030, 2544, 1006, 3643, 1027, 30523, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 30526 ]
package org.sfm.tuples; public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> { private final T20 element19; public Tuple20(T1 element0, T2 element1, T3 element2, T4 element3, T5 element4, T6 element5, T7 element6, T8 element7, T9 element8, T10 element9, T11 element10, T12 element11, T13 element12, T14 element13, T15 element14, T16 element15, T17 element16, T18 element17, T19 element18, T20 element19) { super(element0, element1, element2, element3, element4, element5, element6, element7, element8, element9, element10, element11, element12, element13, element14, element15, element16, element17, element18); this.element19 = element19; } public final T20 getElement19() { return element19; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; Tuple20 tuple20 = (Tuple20) o; if (element19 != null ? !element19.equals(tuple20.element19) : tuple20.element19 != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (element19 != null ? element19.hashCode() : 0); return result; } @Override public String toString() { return "Tuple20{" + "element0=" + getElement0() + ", element1=" + getElement1() + ", element2=" + getElement2() + ", element3=" + getElement3() + ", element4=" + getElement4() + ", element5=" + getElement5() + ", element6=" + getElement6() + ", element7=" + getElement7() + ", element8=" + getElement8() + ", element9=" + getElement9() + ", element10=" + getElement10() + ", element11=" + getElement11() + ", element12=" + getElement12() + ", element13=" + getElement13() + ", element14=" + getElement14() + ", element15=" + getElement15() + ", element16=" + getElement16() + ", element17=" + getElement17() + ", element18=" + getElement18() + ", element19=" + getElement19() + '}'; } public <T21> Tuple21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> tuple21(T21 element20) { return new Tuple21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>(getElement0(), getElement1(), getElement2(), getElement3(), getElement4(), getElement5(), getElement6(), getElement7(), getElement8(), getElement9(), getElement10(), getElement11(), getElement12(), getElement13(), getElement14(), getElement15(), getElement16(), getElement17(), getElement18(), getElement19(), element20); } }
tsdl2013/SimpleFlatMapper
sfm/src/main/java/org/sfm/tuples/Tuple20.java
Java
mit
3,155
[ 30522, 7427, 8917, 1012, 16420, 2213, 1012, 10722, 21112, 1025, 2270, 2465, 10722, 10814, 11387, 1026, 1056, 2487, 1010, 1056, 2475, 1010, 1056, 2509, 1010, 1056, 2549, 1010, 1056, 2629, 1010, 1056, 2575, 1010, 1056, 2581, 1010, 1056, 2620, 1010, 1056, 2683, 1010, 1056, 10790, 1010, 1056, 14526, 1010, 1056, 12521, 1010, 1056, 17134, 1010, 1056, 16932, 1010, 1056, 16068, 1010, 1056, 16048, 1010, 1056, 16576, 1010, 1056, 15136, 1010, 1056, 16147, 1010, 1056, 11387, 1028, 8908, 10722, 10814, 16147, 1026, 1056, 2487, 1010, 1056, 2475, 1010, 1056, 2509, 1010, 1056, 2549, 1010, 1056, 2629, 1010, 1056, 2575, 1010, 1056, 2581, 1010, 1056, 2620, 1010, 1056, 2683, 1010, 1056, 10790, 1010, 1056, 14526, 1010, 1056, 12521, 1010, 1056, 17134, 1010, 1056, 16932, 1010, 1056, 16068, 1010, 1056, 16048, 1010, 1056, 16576, 1010, 1056, 15136, 1010, 1056, 16147, 1028, 1063, 2797, 2345, 1056, 11387, 5783, 16147, 1025, 2270, 10722, 10814, 11387, 1006, 1056, 2487, 5783, 2692, 1010, 1056, 2475, 5783, 2487, 1010, 1056, 2509, 5783, 2475, 1010, 1056, 2549, 5783, 2509, 1010, 1056, 2629, 5783, 2549, 1010, 1056, 2575, 5783, 2629, 1010, 1056, 2581, 5783, 2575, 1010, 1056, 2620, 5783, 2581, 1010, 1056, 2683, 5783, 2620, 1010, 1056, 10790, 5783, 2683, 1010, 1056, 14526, 5783, 10790, 1010, 1056, 12521, 5783, 14526, 1010, 1056, 17134, 5783, 12521, 1010, 1056, 16932, 5783, 17134, 1010, 1056, 16068, 5783, 16932, 1010, 1056, 16048, 5783, 16068, 1010, 1056, 16576, 5783, 16048, 1010, 1056, 15136, 5783, 16576, 1010, 1056, 16147, 5783, 15136, 1010, 1056, 11387, 5783, 16147, 1007, 1063, 3565, 1006, 5783, 2692, 1010, 5783, 2487, 1010, 5783, 2475, 1010, 5783, 2509, 1010, 5783, 2549, 1010, 5783, 2629, 1010, 5783, 2575, 1010, 5783, 2581, 1010, 5783, 2620, 1010, 5783, 2683, 1010, 5783, 10790, 1010, 5783, 14526, 1010, 5783, 12521, 1010, 5783, 17134, 1010, 5783, 16932, 1010, 5783, 16068, 1010, 5783, 16048, 1010, 5783, 16576, 1010, 5783, 15136, 1007, 1025, 2023, 1012, 5783, 16147, 1027, 5783, 16147, 1025, 1065, 2270, 2345, 1056, 11387, 2131, 12260, 3672, 16147, 1006, 1007, 1063, 2709, 5783, 16147, 1025, 30524, 26266, 1006, 1007, 999, 1027, 1051, 1012, 2131, 26266, 1006, 1007, 1007, 2709, 6270, 1025, 2065, 1006, 999, 3565, 1012, 19635, 1006, 1051, 1007, 1007, 2709, 6270, 1025, 10722, 10814, 11387, 10722, 10814, 11387, 1027, 1006, 10722, 10814, 11387, 1007, 1051, 1025, 2065, 1006, 5783, 16147, 999, 1027, 19701, 1029, 999, 5783, 16147, 1012, 19635, 1006, 10722, 10814, 11387, 1012, 5783, 16147, 1007, 1024, 10722, 10814, 11387, 1012, 5783, 16147, 999, 1027, 19701, 1007, 2709, 6270, 1025, 2709, 2995, 1025, 1065, 1030, 2058, 15637, 2270, 20014, 23325, 16044, 1006, 1007, 1063, 20014, 2765, 1027, 3565, 1012, 23325, 16044, 1006, 1007, 1025, 2765, 1027, 2861, 1008, 2765, 1009, 1006, 5783, 16147, 999, 1027, 19701, 1029, 5783, 16147, 1012, 23325, 16044, 1006, 1007, 1024, 1014, 1007, 1025, 2709, 2765, 1025, 1065, 1030, 2058, 30523, 1065, 1030, 2058, 15637, 2270, 22017, 20898, 19635, 1006, 4874, 1051, 1007, 1063, 2065, 1006, 2023, 1027, 1027, 1051, 1007, 2709, 2995, 1025, 2065, 1006, 1051, 1027, 1027, 19701, 1064, 1064, 2131, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1065, 1030, 2058, 15637, 2270, 22017, 20898, 19635, 1006, 4874, 1051, 1007, 1063, 2065, 1006, 2023, 1027, 1027, 1051, 1007, 2709, 2995, 1025, 2065, 1006, 1051, 1027, 1027, 19701, 1064, 1064, 2131, 30526 ]
--- layout: quilt title: Black, White & Colorful date: 2012-08-21 00:00:00 tags: frontpage columnCSS: "large-6 columns" css: "height: 370px; width: 100%;" featuredImage: https://lh4.googleusercontent.com/Mz9NO1yxBrSMDYvsvK9HgUziYVQoyzcg98oE7P_wYDg=w470 featuredImageOnPage: https://lh4.googleusercontent.com/Mz9NO1yxBrSMDYvsvK9HgUziYVQoyzcg98oE7P_wYDg=w1000 imagesOnPage: [ 'https://lh6.googleusercontent.com/tCWOABsuwAAsV7Tkrr61Sn4g0VQAP_voSPOGCRNYNg=w303', 'https://lh6.googleusercontent.com/5m-h8SowwraRu5EAuvMBysaJL9482HDobZtjCvsgzw=w303', 'https://lh4.googleusercontent.com/9iK3JwB_Vcrsner2tnttdOs_VXYMUXDPbpEZ_Ug7RQ=w303', 'https://lh3.googleusercontent.com/T430E_Eq0-kSNn7M3BI6jmXR6L3RTe2penEkKkaBucY=w303', 'https://lh4.googleusercontent.com/kmUWQ1sdLjYIClItdoE-RBaEXmmJl3jeMbpu3jzK_A=w303' ] --- ### by Diana Heiney I guess the only thing I could say about the quilt is that it was the result of engaging in too many 5" Charm exchanges when I first started thinking about building a stash. Then I had to think about what to do with them and this take on an old pattern called “Evening Star” resulted. Jackie did a fabulous job on my quilt! She is thoroughly versed in her art and was very willing to listen to help me define and achieve my quilting goals within my budget, which was greatly appreciated as this was my first time using a longarm service. Diana owns [“Glass On The Square”] (https://www.glassonthesquare.com), creating art with stained glass.
silverforestquilts/silverforestquilts.github.io
_posts/Diana-Heiney/Black-White-Colorful/2012-08-21-Black-White-and-Colorful.md
Markdown
mit
1,621
[ 30522, 1011, 1011, 1011, 9621, 1024, 27565, 2516, 1024, 2304, 1010, 2317, 1004, 14231, 3058, 1024, 2262, 1011, 5511, 1011, 2538, 4002, 1024, 4002, 1024, 4002, 22073, 1024, 2392, 13704, 5930, 6169, 2015, 1024, 1000, 2312, 1011, 1020, 7753, 1000, 20116, 2015, 1024, 1000, 4578, 1024, 16444, 2361, 2595, 1025, 9381, 1024, 2531, 1003, 1025, 1000, 2956, 9581, 3351, 1024, 16770, 1024, 1013, 1013, 1048, 2232, 2549, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 1049, 2480, 2683, 3630, 2487, 17275, 19892, 6491, 5149, 15088, 2615, 2243, 2683, 25619, 17040, 28008, 2615, 4160, 6977, 2480, 2278, 2290, 2683, 2620, 8913, 2581, 2361, 1035, 1059, 25688, 2290, 1027, 1059, 22610, 2692, 2956, 9581, 3351, 2239, 13704, 1024, 16770, 1024, 1013, 1013, 1048, 2232, 2549, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 1049, 2480, 2683, 3630, 2487, 17275, 19892, 6491, 5149, 15088, 2615, 2243, 2683, 25619, 17040, 28008, 2615, 4160, 6977, 2480, 2278, 2290, 2683, 2620, 8913, 2581, 2361, 1035, 1059, 25688, 2290, 1027, 1059, 18613, 2692, 4871, 2239, 13704, 1024, 1031, 1005, 16770, 1024, 1013, 1013, 1048, 2232, 2575, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 22975, 12155, 7875, 6342, 4213, 3022, 2615, 2581, 2102, 21638, 2099, 2575, 2487, 2015, 2078, 2549, 2290, 2692, 2615, 19062, 2361, 1035, 29536, 13102, 8649, 26775, 4890, 3070, 1027, 1059, 14142, 2509, 1005, 1010, 1005, 16770, 1024, 1013, 1013, 1048, 2232, 2575, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 1019, 2213, 1011, 1044, 2620, 6499, 2860, 13088, 15728, 2629, 10207, 2615, 14905, 7274, 13006, 2140, 2683, 18139, 2475, 14945, 16429, 2480, 2102, 3501, 2278, 15088, 2290, 2480, 2860, 1027, 1059, 14142, 2509, 1005, 1010, 1005, 16770, 1024, 1013, 1013, 1048, 2232, 2549, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 1023, 5480, 2509, 3501, 2860, 2497, 1035, 18315, 2869, 3678, 2475, 2102, 3372, 2102, 12269, 1035, 1058, 18037, 12274, 2595, 18927, 2497, 5051, 2480, 1035, 1057, 2290, 2581, 2099, 4160, 1027, 1059, 14142, 2509, 1005, 1010, 1005, 16770, 1024, 1013, 1013, 1048, 2232, 2509, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 1056, 23777, 2692, 2063, 1035, 1041, 4160, 2692, 1011, 29535, 10695, 2581, 2213, 2509, 5638, 2575, 24703, 2595, 2099, 2575, 2140, 2509, 19731, 2475, 11837, 5937, 15714, 8569, 5666, 1027, 1059, 14142, 2509, 1005, 1010, 1005, 16770, 1024, 1013, 1013, 1048, 2232, 2549, 1012, 8224, 20330, 8663, 6528, 2102, 1012, 4012, 1013, 2463, 25974, 4160, 2487, 16150, 2140, 3501, 10139, 20464, 4183, 3527, 2063, 1011, 21144, 30524, 14905, 14289, 2509, 3501, 2480, 2243, 1035, 1037, 1027, 1059, 14142, 2509, 1005, 1033, 1011, 1011, 1011, 1001, 1001, 1001, 2011, 8805, 2002, 3170, 2100, 1045, 3984, 1996, 2069, 2518, 1045, 2071, 2360, 2055, 1996, 27565, 2003, 2008, 2009, 2001, 1996, 2765, 1997, 11973, 1999, 2205, 2116, 1019, 1000, 11084, 15800, 2043, 1045, 2034, 2318, 3241, 2055, 2311, 1037, 2358, 11823, 1012, 2059, 1045, 2018, 2000, 2228, 2055, 2054, 2000, 2079, 2007, 2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, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 6679, 2595, 7382, 3501, 2140, 2509, 6460, 30526 ]
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Package' db.create_table(u'api_package', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=500, db_index=True)), ('url', self.gf('django.db.models.fields.CharField')(unique=True, max_length=500)), ('created_at', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)), )) db.send_create_signal(u'api', ['Package']) # Adding unique constraint on 'Package', fields ['name', 'url'] db.create_unique(u'api_package', ['name', 'url']) def backwards(self, orm): # Removing unique constraint on 'Package', fields ['name', 'url'] db.delete_unique(u'api_package', ['name', 'url']) # Deleting model 'Package' db.delete_table(u'api_package') models = { u'api.package': { 'Meta': {'unique_together': "(('name', 'url'),)", 'object_name': 'Package'}, 'created_at': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '500', 'db_index': 'True'}), 'url': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '500'}) } } complete_apps = ['api']
toranb/django-bower-registry
api/migrations/0001_initial.py
Python
mit
1,703
[ 30522, 1001, 1011, 1008, 1011, 16861, 1024, 21183, 2546, 1011, 1022, 1011, 1008, 1011, 12324, 3058, 7292, 2013, 2148, 1012, 16962, 12324, 16962, 2013, 2148, 1012, 1058, 2475, 12324, 8040, 28433, 4328, 29397, 2013, 6520, 23422, 1012, 16962, 12324, 4275, 2465, 9230, 1006, 8040, 28433, 4328, 29397, 1007, 1024, 13366, 19390, 1006, 2969, 1010, 2030, 2213, 1007, 1024, 1001, 5815, 2944, 1005, 7427, 1005, 16962, 1012, 3443, 1035, 2795, 1006, 1057, 1005, 17928, 1035, 7427, 1005, 1010, 1006, 1006, 1057, 1005, 8909, 1005, 1010, 2969, 1012, 1043, 2546, 1006, 1005, 6520, 23422, 1012, 16962, 1012, 4275, 1012, 4249, 1012, 8285, 3790, 1005, 1007, 1006, 3078, 1035, 3145, 1027, 2995, 1007, 1007, 1010, 1006, 1005, 2171, 1005, 1010, 2969, 1012, 1043, 2546, 1006, 1005, 6520, 23422, 1012, 16962, 1012, 4275, 1012, 4249, 1012, 25869, 3790, 1005, 1007, 1006, 4310, 1027, 2995, 1010, 4098, 1035, 3091, 1027, 3156, 1010, 16962, 1035, 5950, 1027, 2995, 1007, 1007, 1010, 1006, 1005, 24471, 2140, 1005, 1010, 2969, 1012, 1043, 2546, 1006, 1005, 6520, 23422, 1012, 16962, 1012, 4275, 1012, 4249, 1012, 25869, 3790, 1005, 1007, 1006, 4310, 1027, 2995, 1010, 4098, 1035, 3091, 1027, 3156, 1007, 1007, 1010, 1006, 1005, 2580, 1035, 2012, 1005, 1010, 2969, 1012, 1043, 2546, 1006, 1005, 6520, 23422, 1012, 16962, 1012, 4275, 1012, 4249, 1012, 3058, 3790, 1005, 1007, 1006, 8285, 1035, 2085, 1035, 5587, 1027, 2995, 1010, 8744, 1027, 2995, 1007, 1007, 1010, 1007, 1007, 16962, 1012, 4604, 1035, 3443, 1035, 4742, 1006, 30524, 1005, 1010, 1005, 24471, 2140, 1005, 1033, 1007, 13366, 11043, 1006, 2969, 1010, 2030, 2213, 1007, 1024, 1001, 9268, 4310, 27142, 2006, 1005, 7427, 1005, 1010, 4249, 1031, 1005, 2171, 1005, 1010, 1005, 24471, 2140, 1005, 1033, 16962, 1012, 3972, 12870, 1035, 4310, 1006, 1057, 1005, 17928, 1035, 7427, 1005, 1010, 1031, 1005, 2171, 1005, 1010, 1005, 24471, 2140, 1005, 1033, 1007, 1001, 3972, 20624, 3070, 2944, 1005, 7427, 1005, 16962, 1012, 3972, 12870, 1035, 2795, 1006, 1057, 1005, 17928, 1035, 7427, 1005, 1007, 4275, 1027, 1063, 1057, 1005, 17928, 1012, 7427, 1005, 1024, 1063, 1005, 18804, 1005, 1024, 1063, 1005, 4310, 1035, 2362, 1005, 1024, 1000, 1006, 1006, 1005, 2171, 1005, 1010, 1005, 24471, 2140, 1005, 1007, 1010, 1007, 1000, 1010, 1005, 4874, 1035, 2171, 1005, 1024, 1005, 7427, 1005, 1065, 1010, 1005, 2580, 1035, 2012, 1005, 1024, 1006, 1005, 6520, 23422, 1012, 16962, 1012, 4275, 1012, 4249, 1012, 3058, 3790, 1005, 1010, 1031, 1033, 1010, 1063, 1005, 8285, 1035, 2085, 1035, 5587, 1005, 1024, 1005, 2995, 1005, 1010, 1005, 8744, 1005, 1024, 1005, 2995, 1005, 1065, 1007, 1010, 1057, 1005, 8909, 1005, 1024, 1006, 1005, 6520, 23422, 1012, 16962, 1012, 4275, 1012, 4249, 1012, 8285, 3790, 1005, 1010, 1031, 1033, 1010, 1063, 1005, 3078, 1035, 3145, 30523, 1057, 1005, 17928, 1005, 1010, 1031, 1005, 7427, 1005, 1033, 1007, 1001, 5815, 4310, 27142, 2006, 1005, 7427, 1005,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1057, 1005, 17928, 1005, 1010, 1031, 1005, 7427, 1005, 1033, 1007, 1001, 5815, 4310, 27142, 2006, 1005, 7427, 1005, 1010, 4249, 1031, 1005, 2171, 1005, 1010, 1005, 24471, 2140, 1005, 1033, 16962, 1012, 3443, 1035, 4310, 1006, 1057, 1005, 17928, 1035, 7427, 1005, 1010, 1031, 1005, 2171, 30526 ]
namespace TheCsprojLibrary.ItemTypes { public class FinalDocFileDisplayProxy { public FinalDocFileDisplayProxy(FinalDocFile original) { UnevaluatedInclude = original.UnevaluatedInclude; } public string UnevaluatedInclude { get; set; } } }
Code-Sharp/TheCsprojLibrary
src/TheCsprojLibrary/ItemTypes/FinalDocFileDisplayProxy.cs
C#
bsd-2-clause
336
[ 30522, 3415, 15327, 1996, 6169, 21572, 3501, 29521, 19848, 2100, 1012, 8875, 13874, 2015, 1063, 2270, 2465, 2345, 3527, 2278, 8873, 3709, 2483, 13068, 21572, 18037, 1063, 2270, 2345, 3527, 2278, 8873, 3709, 2483, 13068, 21572, 18037, 1006, 2345, 3527, 2278, 8873, 2571, 2434, 1007, 1063, 16655, 10175, 16453, 2378, 20464, 12672, 1027, 2434, 1012, 16655, 10175, 16453, 2378, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
FROM java:openjdk-8-jre MAINTAINER Martijn Koster "[email protected]" ENV SOLR_VERSION 5.2.1 ENV SOLR solr-$SOLR_VERSION ENV SOLR_USER solr RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ apt-get -y install lsof && \ groupadd -r $SOLR_USER && \ useradd -r -g $SOLR_USER $SOLR_USER && \ mkdir -p /opt && \ wget -nv --output-document=/opt/$SOLR.tgz http://www.us.apache.org/dist/lucene/solr/$SOLR_VERSION/$SOLR.tgz && \ tar -C /opt --extract --file /opt/$SOLR.tgz && \ rm /opt/$SOLR.tgz && \ ln -s /opt/$SOLR /opt/solr && \ chown -R $SOLR_USER:$SOLR_USER /opt/solr /opt/$SOLR EXPOSE 8983 WORKDIR /opt/solr USER $SOLR_USER CMD ["/bin/bash", "-c", "/opt/solr/bin/solr -f"]
JStrittmatter/docker-solr
5.2/Dockerfile
Dockerfile
apache-2.0
726
[ 30522, 2013, 9262, 1024, 2330, 3501, 2094, 2243, 1011, 1022, 1011, 3781, 2063, 5441, 2121, 20481, 28418, 2078, 12849, 6238, 1000, 5003, 2243, 1011, 8946, 2121, 1030, 2665, 7100, 2015, 1012, 2522, 1012, 2866, 1000, 4372, 2615, 14017, 2099, 1035, 2544, 1019, 1012, 1016, 1012, 1015, 4372, 2615, 14017, 2099, 14017, 2099, 1011, 1002, 14017, 2099, 1035, 2544, 4372, 2615, 14017, 2099, 1035, 5310, 14017, 2099, 2448, 9167, 2139, 15599, 1035, 2392, 10497, 1027, 2512, 18447, 6906, 15277, 1004, 1004, 1032, 26794, 1011, 2131, 10651, 1004, 1004, 1032, 26794, 1011, 2131, 1011, 1061, 16500, 1048, 6499, 2546, 1004, 1004, 1032, 2177, 4215, 2094, 1011, 1054, 1002, 14017, 2099, 1035, 5310, 1004, 1004, 1032, 5310, 4215, 2094, 1011, 1054, 1011, 1043, 1002, 14017, 2099, 1035, 5310, 1002, 14017, 2099, 1035, 5310, 1004, 1004, 1032, 12395, 4305, 2099, 1011, 1052, 1013, 23569, 1004, 1004, 1032, 1059, 18150, 1011, 1050, 2615, 1011, 1011, 6434, 1011, 6254, 1027, 1013, 23569, 1013, 1002, 14017, 2099, 1012, 1056, 2290, 2480, 8299, 1024, 1013, 1013, 7479, 1012, 2149, 1012, 15895, 1012, 8917, 1013, 4487, 3367, 1013, 19913, 2638, 1013, 14017, 2099, 1013, 1002, 14017, 2099, 1035, 2544, 1013, 1002, 14017, 2099, 1012, 1056, 2290, 2480, 1004, 1004, 1032, 16985, 1011, 1039, 1013, 23569, 1011, 1011, 14817, 1011, 1011, 5371, 1013, 23569, 1013, 1002, 14017, 2099, 1012, 1056, 2290, 2480, 1004, 1004, 1032, 28549, 1013, 23569, 1013, 1002, 14017, 2099, 1012, 1056, 2290, 2480, 1004, 1004, 1032, 1048, 2078, 1011, 1055, 1013, 23569, 1013, 1002, 14017, 2099, 1013, 23569, 1013, 14017, 2099, 1004, 1004, 1032, 20209, 2078, 1011, 1054, 1002, 14017, 2099, 1035, 5310, 1024, 1002, 14017, 2099, 1035, 5310, 1013, 23569, 1013, 14017, 2099, 1013, 23569, 1013, 1002, 14017, 2099, 14451, 6486, 2620, 2509, 2147, 4305, 2099, 1013, 23569, 1013, 14017, 2099, 5310, 1002, 14017, 2099, 1035, 5310, 4642, 2094, 1031, 1000, 1013, 8026, 1013, 24234, 1000, 1010, 1000, 1011, 1039, 1000, 1010, 1000, 1013, 23569, 1013, 14017, 2099, 1013, 8026, 1013, 14017, 2099, 1011, 1042, 1000, 1033, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 30523, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ /* * This code was generated by https://github.com/googleapis/google-api-java-client-services/ * Modify at your own risk. */ package com.google.api.services.compute.model; /** * The information about the HTTP Cookie on which the hash function is based for load balancing * policies that use a consistent hash. * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> * </p> * * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class ConsistentHashLoadBalancerSettingsHttpCookie extends com.google.api.client.json.GenericJson { /** * Name of the cookie. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Path to set for the cookie. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String path; /** * Lifetime of the cookie. * The value may be {@code null}. */ @com.google.api.client.util.Key private Duration ttl; /** * Name of the cookie. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Name of the cookie. * @param name name or {@code null} for none */ public ConsistentHashLoadBalancerSettingsHttpCookie setName(java.lang.String name) { this.name = name; return this; } /** * Path to set for the cookie. * @return value or {@code null} for none */ public java.lang.String getPath() { return path; } /** * Path to set for the cookie. * @param path path or {@code null} for none */ public ConsistentHashLoadBalancerSettingsHttpCookie setPath(java.lang.String path) { this.path = path; return this; } /** * Lifetime of the cookie. * @return value or {@code null} for none */ public Duration getTtl() { return ttl; } /** * Lifetime of the cookie. * @param ttl ttl or {@code null} for none */ public ConsistentHashLoadBalancerSettingsHttpCookie setTtl(Duration ttl) { this.ttl = ttl; return this; } @Override public ConsistentHashLoadBalancerSettingsHttpCookie set(String fieldName, Object value) { return (ConsistentHashLoadBalancerSettingsHttpCookie) super.set(fieldName, value); } @Override public ConsistentHashLoadBalancerSettingsHttpCookie clone() { return (ConsistentHashLoadBalancerSettingsHttpCookie) super.clone(); } }
googleapis/google-api-java-client-services
clients/google-api-services-compute/v1/1.31.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettingsHttpCookie.java
Java
apache-2.0
3,283
[ 30522, 1013, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1008, 1999, 12646, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 5500, 2104, 1996, 6105, 1008, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 1008, 2030, 13339, 1012, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 12546, 2104, 1008, 1996, 6105, 1012, 1008, 1013, 1013, 1008, 1008, 2023, 3642, 2001, 7013, 2011, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 8224, 9331, 2483, 1013, 8224, 1011, 17928, 1011, 9262, 1011, 7396, 1011, 2578, 1013, 1008, 19933, 2012, 2115, 2219, 3891, 1012, 1008, 1013, 7427, 4012, 1012, 8224, 1012, 17928, 1012, 2578, 1012, 24134, 1012, 2944, 30524, 1996, 23325, 3853, 2003, 2241, 2005, 7170, 20120, 1008, 6043, 2008, 2224, 1037, 8335, 23325, 1012, 1008, 1008, 1026, 1052, 1028, 2023, 2003, 1996, 9262, 2951, 2944, 2465, 2008, 27171, 2129, 2000, 11968, 3366, 1013, 7642, 4697, 2046, 1996, 1046, 3385, 2008, 2003, 1008, 11860, 2058, 8299, 2043, 2551, 2007, 1996, 24134, 3194, 17928, 1012, 2005, 1037, 6851, 7526, 2156, 1024, 1008, 1026, 1037, 17850, 12879, 1027, 1000, 16770, 1024, 1013, 1013, 9797, 1012, 8224, 1012, 4012, 1013, 17928, 1011, 7396, 1011, 3075, 1013, 9262, 1013, 8224, 1011, 8299, 1011, 9262, 1011, 7396, 1013, 1046, 3385, 1000, 1028, 16770, 1024, 1013, 1013, 9797, 1012, 8224, 1012, 4012, 1013, 17928, 1011, 7396, 1011, 3075, 1013, 9262, 1013, 8224, 1011, 8299, 1011, 9262, 1011, 7396, 1013, 1046, 3385, 1026, 1013, 1037, 1028, 1008, 1026, 1013, 1052, 1028, 1008, 1008, 1030, 3166, 8224, 1010, 4297, 1012, 1008, 1013, 1030, 16081, 9028, 5582, 2015, 1006, 1000, 9262, 3527, 2278, 1000, 1007, 2270, 2345, 2465, 8335, 14949, 7317, 10441, 18939, 7911, 5897, 22573, 13027, 4095, 4779, 15042, 14659, 2666, 8908, 4012, 1012, 8224, 1012, 17928, 1012, 7396, 1012, 1046, 3385, 1012, 12391, 22578, 2239, 1063, 1013, 1008, 1008, 1008, 2171, 1997, 1996, 17387, 1012, 1008, 1996, 3643, 2089, 2022, 1063, 1030, 3642, 19701, 1065, 1012, 1008, 1013, 1030, 4012, 1012, 8224, 1012, 17928, 1012, 7396, 1012, 21183, 4014, 1012, 3145, 2797, 9262, 1012, 11374, 1012, 5164, 2171, 1025, 1013, 1008, 1008, 1008, 4130, 2000, 2275, 2005, 1996, 17387, 1012, 1008, 1996, 3643, 2089, 2022, 1063, 1030, 3642, 19701, 1065, 1012, 1008, 1013, 1030, 4012, 1012, 8224, 1012, 17928, 1012, 7396, 1012, 21183, 4014, 1012, 3145, 2797, 9262, 1012, 11374, 1012, 5164, 4130, 1025, 1013, 1008, 1008, 1008, 6480, 1997, 1996, 17387, 1012, 1008, 1996, 3643, 2089, 2022, 1063, 1030, 3642, 19701, 1065, 1012, 1008, 1013, 1030, 4012, 1012, 8224, 1012, 17928, 1012, 30523, 1025, 1013, 1008, 1008, 1008, 1996, 2592, 2055, 1996, 8299, 17387, 2006, 2029, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1025, 1013, 1008, 1008, 1008, 1996, 2592, 2055, 1996, 8299, 17387, 2006, 2029, 30526 ]
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. // //= require jquery //= require jquery_ujs //= require jquery.serializejson //= require jquery.transit //= require underscore //= require moment //= require backbone //= require_tree ./utils //= require maildog //= require_tree ../templates //= require_tree ./mixins //= require_tree ./models //= require_tree ./collections //= require_tree ./views //= require_tree ./routers //= require_tree .
petrgazarov/Maildog
app/assets/javascripts/application.js
JavaScript
mit
971
[ 30522, 1013, 1013, 2023, 2003, 1037, 19676, 5371, 2008, 1005, 2222, 2022, 9227, 2046, 4646, 1012, 1046, 2015, 1010, 2029, 2097, 2421, 2035, 1996, 6764, 1013, 1013, 3205, 2917, 1012, 1013, 1013, 1013, 1013, 2151, 9262, 22483, 1013, 4157, 5371, 2306, 2023, 14176, 1010, 5622, 2497, 1013, 7045, 1013, 9262, 22483, 2015, 1010, 21431, 1013, 7045, 1013, 9262, 22483, 2015, 1010, 1013, 1013, 2030, 2151, 13354, 2378, 1005, 1055, 21431, 1013, 7045, 1013, 9262, 22483, 2015, 14176, 2064, 2022, 14964, 2182, 2478, 1037, 5816, 4130, 1012, 1013, 1013, 1013, 1013, 2009, 1005, 1055, 2025, 4748, 11365, 3085, 2000, 5587, 3642, 3495, 2182, 1010, 2021, 2065, 2017, 2079, 1010, 2009, 1005, 2222, 3711, 2012, 1996, 3953, 1997, 1996, 1013, 1013, 9227, 5371, 1012, 1013, 1013, 1013, 1013, 3191, 11867, 16901, 8454, 3191, 4168, 1006, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 15168, 1013, 11867, 16901, 8454, 1001, 11867, 16901, 8454, 1011, 16449, 2015, 1007, 2005, 4751, 1013, 1013, 2055, 3569, 16449, 2015, 1012, 1013, 1013, 1013, 1013, 1027, 5478, 1046, 4226, 2854, 1013, 1013, 1027, 5478, 1046, 4226, 2854, 1035, 1057, 22578, 1013, 1013, 1027, 5478, 1046, 4226, 2854, 1012, 7642, 4697, 22578, 2239, 1013, 1013, 1027, 5478, 1046, 4226, 2854, 1012, 6671, 1013, 1013, 1027, 5478, 2104, 9363, 2890, 1013, 1013, 1027, 5478, 2617, 1013, 1013, 1027, 5478, 21505, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1013, 21183, 12146, 1013, 1013, 1027, 5478, 5653, 16168, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1012, 1013, 23561, 2015, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1013, 4666, 7076, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1013, 4275, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1013, 6407, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1013, 5328, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 1013, 2799, 2869, 1013, 1013, 1027, 5478, 1035, 3392, 1012, 102, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]