Dataset Viewer
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
sequencelengths 502
502
| token_type_ids
sequencelengths 502
502
| attention_mask
sequencelengths 502
502
| labels
sequencelengths 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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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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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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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,
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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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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
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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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
25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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,
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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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,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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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
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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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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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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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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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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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,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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
] |
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
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
] |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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
] |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 1