code
stringlengths
5
1.01M
repo_name
stringlengths
5
84
path
stringlengths
4
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
5
1.01M
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
# slack-gtk [![Build Status](https://travis-ci.org/eagletmt/slack-gtk.svg?branch=master)](https://travis-ci.org/eagletmt/slack-gtk) Native desktop client for slack.com ## Dependencies - jsoncpp - gtkmm 3 - libsoup - libnotify ## Build ```sh mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Debug make ``` ## Run 1. Issue test token https://api.slack.com/docs/oauth-test-tokens 2. Run `SLACK_GTK_TOKEN=... SLACK_GTK_EMOJI_DIRECTORY=emoji-data GSETTINGS_SCHEMA_DIR=build/schemas ./build/slack-gtk` ## Configuration ```sh gsettings set cc.wanko.slack-gtk notification-timeout 10000 gsettings set cc.wanko.slack-gtk dpi 133 gsettings set cc.wanko.slack-gtk user-icon-size 48 gsettings set cc.wanko.slack-gtk emoji-size 32 ```
eagletmt/slack-gtk
README.md
Markdown
mit
727
[ 30522, 1001, 19840, 1011, 14181, 2243, 1031, 999, 1031, 3857, 3570, 1033, 1006, 16770, 1024, 1013, 1013, 10001, 1011, 25022, 1012, 8917, 1013, 6755, 21246, 2102, 1013, 19840, 1011, 14181, 2243, 1012, 17917, 2290, 1029, 3589, 1027, 3040, 1007, 1033, 1006, 16770, 1024, 1013, 1013, 10001, 1011, 25022, 1012, 8917, 1013, 6755, 21246, 2102, 1013, 19840, 1011, 14181, 2243, 1007, 3128, 15363, 7396, 2005, 19840, 1012, 4012, 1001, 1001, 12530, 15266, 1011, 1046, 3385, 21906, 2361, 1011, 14181, 22287, 2213, 1017, 1011, 5622, 5910, 7140, 2361, 1011, 5622, 24700, 4140, 8757, 1001, 1001, 3857, 1036, 1036, 1036, 14021, 12395, 4305, 2099, 3857, 3729, 3857, 4642, 13808, 1012, 1012, 1011, 5887, 2863, 3489, 1035, 3857, 1035, 2828, 1027, 2139, 8569, 2290, 2191, 1036, 1036, 1036, 1001, 1001, 2448, 1015, 1012, 3277, 3231, 19204, 16770, 1024, 1013, 1013, 17928, 1012, 19840, 1012, 4012, 1013, 9986, 2015, 1013, 1051, 4887, 2705, 1011, 3231, 1011, 19204, 2015, 1016, 1012, 2448, 1036, 19840, 1035, 14181, 2243, 1035, 19204, 1027, 1012, 1012, 1012, 19840, 1035, 14181, 2243, 1035, 7861, 29147, 2072, 1035, 14176, 1027, 7861, 29147, 2072, 1011, 2951, 28177, 18319, 3070, 2015, 1035, 8040, 28433, 1035, 16101, 1027, 3857, 1013, 8040, 28433, 2015, 1012, 1013, 3857, 1013, 19840, 1011, 14181, 2243, 1036, 1001, 1001, 9563, 1036, 1036, 1036, 14021, 28177, 18319, 3070, 2015, 2275, 10507, 1012, 14071, 3683, 1012, 19840, 1011, 14181, 2243, 26828, 1011, 2051, 5833, 6694, 2692, 28177, 18319, 3070, 2015, 2275, 10507, 1012, 14071, 3683, 1012, 19840, 1011, 14181, 2243, 1040, 8197, 14506, 28177, 18319, 3070, 2015, 2275, 10507, 1012, 14071, 3683, 1012, 19840, 1011, 14181, 2243, 5310, 1011, 12696, 1011, 2946, 4466, 28177, 18319, 3070, 2015, 2275, 10507, 1012, 14071, 3683, 1012, 19840, 1011, 14181, 2243, 7861, 29147, 2072, 1011, 2946, 3590, 1036, 1036, 1036, 102, 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, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
img { max-height: 100%; max-width: 100%; width: 100%; }
selang/alpha
server/static/imageAggregation/css/aggregation.css
CSS
apache-2.0
67
[ 30522, 10047, 2290, 1063, 4098, 1011, 4578, 1024, 2531, 1003, 1025, 4098, 1011, 9381, 1024, 2531, 1003, 1025, 9381, 1024, 2531, 1003, 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, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>Core3: CmdStartScene Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Core3 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="#pub-static-methods">Static Public Member Functions</a> &#124; <a href="class_cmd_start_scene-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">CmdStartScene Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include &lt;<a class="el" href="_cmd_start_scene_8h_source.html">CmdStartScene.h</a>&gt;</code></p> <div class="dynheader"> Inheritance diagram for CmdStartScene:</div> <div class="dyncontent"> <div class="center"> <img src="class_cmd_start_scene.png" usemap="#CmdStartScene_map" alt=""/> <map id="CmdStartScene_map" name="CmdStartScene_map"> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:abf04403218119d5e1dd3f550e9377dc3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cmd_start_scene.html#abf04403218119d5e1dd3f550e9377dc3">CmdStartScene</a> (<a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *creo)</td></tr> <tr class="separator:abf04403218119d5e1dd3f550e9377dc3"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:a246e45d1c1e33793c4eeaf08ee10e102"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cmd_start_scene.html#a246e45d1c1e33793c4eeaf08ee10e102">parse</a> (Packet *pack)</td></tr> <tr class="separator:a246e45d1c1e33793c4eeaf08ee10e102"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"> <p>Definition at line <a class="el" href="_cmd_start_scene_8h_source.html#l00058">58</a> of file <a class="el" href="_cmd_start_scene_8h_source.html">CmdStartScene.h</a>.</p> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2> <a class="anchor" id="abf04403218119d5e1dd3f550e9377dc3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">CmdStartScene::CmdStartScene </td> <td>(</td> <td class="paramtype"><a class="el" href="classserver_1_1zone_1_1objects_1_1creature_1_1_creature_object.html">CreatureObject</a> *&#160;</td> <td class="paramname"><em>creo</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="_cmd_start_scene_8h_source.html#l00060">60</a> of file <a class="el" href="_cmd_start_scene_8h_source.html">CmdStartScene.h</a>.</p> <p>References <a class="el" href="server_2zone_2objects_2scene_2_scene_object_8cpp_source.html#l01446">server::zone::objects::scene::SceneObject::getClientObjectCRC()</a>, <a class="el" href="server_2zone_2_zone_8cpp_source.html#l00340">server::zone::Zone::getGalacticTime()</a>, <a class="el" href="server_2zone_2objects_2scene_2_scene_object_8cpp_source.html#l01306">server::zone::objects::scene::SceneObject::getObjectID()</a>, <a class="el" href="server_2zone_2objects_2scene_2_scene_object_8cpp_source.html#l01280">server::zone::objects::scene::SceneObject::getZone()</a>, and <a class="el" href="server_2zone_2_zone_8cpp_source.html#l00468">server::zone::Zone::getZoneName()</a>.</p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a246e45d1c1e33793c4eeaf08ee10e102"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static void CmdStartScene::parse </td> <td>(</td> <td class="paramtype">Packet *&#160;</td> <td class="paramname"><em>pack</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="_cmd_start_scene_8h_source.html#l00083">83</a> of file <a class="el" href="_cmd_start_scene_8h_source.html">CmdStartScene.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>/Users/victor/git/Core3Mda/MMOCoreORB/src/server/zone/packets/zone/<a class="el" href="_cmd_start_scene_8h_source.html">CmdStartScene.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Oct 15 2013 17:29:23 for Core3 by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.3.1 </small></address> </body> </html>
kidaa/Awakening-Core3
doc/html/class_cmd_start_scene.html
HTML
lgpl-3.0
7,067
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 1060, 11039, 19968, 1015, 1012, 1014, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 1013, 1060, 11039, 19968, 2487, 1013, 26718, 2094, 1013, 1060, 11039, 19968, 2487, 1011, 17459, 1012, 26718, 2094, 1000, 1028, 1026, 16129, 20950, 3619, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 2639, 1013, 1060, 11039, 19968, 1000, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 1060, 11039, 19968, 1025, 30524, 1060, 1011, 25423, 1011, 11892, 1000, 4180, 1027, 1000, 29464, 1027, 1023, 1000, 1013, 1028, 1026, 18804, 2171, 1027, 1000, 13103, 1000, 4180, 1027, 1000, 2079, 18037, 6914, 1015, 1012, 1022, 1012, 1017, 1012, 1015, 1000, 1013, 1028, 1026, 2516, 1028, 4563, 2509, 1024, 4642, 5104, 7559, 3215, 17968, 2465, 4431, 1026, 1013, 2516, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 21628, 2015, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1013, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1046, 4226, 2854, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1040, 6038, 29015, 2015, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 2079, 18037, 6914, 1012, 20116, 2015, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1013, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2327, 1000, 1028, 1026, 999, 1011, 1011, 2079, 2025, 6366, 2023, 4487, 2615, 1010, 2009, 2003, 2701, 2011, 2079, 18037, 6914, 999, 1011, 1011, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2516, 12069, 2050, 1000, 1028, 1026, 2795, 4442, 19498, 2075, 1027, 1000, 1014, 1000, 3526, 15455, 4667, 1027, 1000, 1014, 1000, 1028, 1026, 26419, 7716, 2100, 1028, 1026, 19817, 2806, 1027, 1000, 4578, 1024, 5179, 2361, 2595, 1025, 1000, 1028, 1026, 14595, 2806, 1027, 1000, 11687, 4667, 1011, 2187, 1024, 1014, 1012, 1019, 6633, 1025, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2622, 18442, 1000, 1028, 4563, 2509, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 14595, 1028, 1026, 1013, 19817, 1028, 1026, 1013, 26419, 7716, 2100, 1028, 1026, 1013, 2795, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 999, 1011, 1011, 2203, 20346, 2112, 1011, 1011, 1028, 1026, 999, 1011, 1011, 7013, 2011, 2079, 18037, 6914, 1015, 1012, 1022, 1012, 1017, 1012, 1015, 1011, 1011, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 6583, 19716, 5004, 2487, 1000, 2465, 1027, 1000, 21628, 2015, 1000, 1028, 1026, 17359, 2465, 1027, 1000, 21628, 9863, 1000, 1028, 1026, 5622, 1028, 30523, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 30526 ]
<?php /* Author: Zhen Huang URL: http://themefortress.com/ This place is much cleaner. Put your theme specific codes here, anything else you may want to use plugins to keep things tidy. */ /* 1. lib/clean.php - head cleanup - post and images related cleaning */ require_once('lib/clean.php'); // do all the cleaning and enqueue here /* 2. lib/enqueue-style.php - enqueue Foundation and Reverie CSS */ require_once('lib/enqueue-style.php'); /* 3. lib/foundation.php - add pagination */ require_once('lib/foundation.php'); // load Foundation specific functions like top-bar /* 4. lib/nav.php - custom walker for top-bar and related */ require_once('lib/nav.php'); // filter default wordpress menu classes and clean wp_nav_menu markup /* 5. lib/presstrends.php - add PressTrends, tracks how many people are using Reverie */ require_once('lib/presstrends.php'); // load PressTrends to track the usage of Reverie across the web, comment this line if you don't want to be tracked /********************** Add theme supports **********************/ function reverie_theme_support() { // Add language supports. load_theme_textdomain('reverie', get_template_directory() . '/lang'); // Add post thumbnail supports. http://codex.wordpress.org/Post_Thumbnails add_theme_support('post-thumbnails'); // set_post_thumbnail_size(150, 150, false); add_image_size('fd-lrg', 1140, 99999); add_image_size('fd-med', 768, 99999); add_image_size('fd-sm', 320, 9999); // rss thingy add_theme_support('automatic-feed-links'); // Add post formats support. http://codex.wordpress.org/Post_Formats add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); // Add menu support. http://codex.wordpress.org/Function_Reference/register_nav_menus add_theme_support('menus'); register_nav_menus(array( 'primary' => __('Primary Navigation', 'reverie'), 'additional' => __('Additional Navigation', 'reverie'), 'utility' => __('Utility Navigation', 'reverie') )); // Add custom background support add_theme_support( 'custom-background', array( 'default-image' => '', // background image default 'default-color' => '', // background color default (dont add the #) 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ) ); } add_action('after_setup_theme', 'reverie_theme_support'); /* end Reverie theme support */ // create widget areas: sidebar, footer $sidebars = array('Sidebar'); foreach ($sidebars as $sidebar) { register_sidebar(array('name'=> $sidebar, 'id' => 'Sidebar', 'before_widget' => '<article id="%1$s" class="panel widget %2$s">', 'after_widget' => '</article>', 'before_title' => '<h4>', 'after_title' => '</h4>' )); } $sidebars = array('Footer'); foreach ($sidebars as $sidebar) { register_sidebar(array('name'=> $sidebar, 'id' => 'Footer', 'before_widget' => '<div class="large-3 columns"><article id="%1$s" class="panel widget %2$s">', 'after_widget' => '</article></div>', 'before_title' => '<h4>', 'after_title' => '</h4>' )); } // return entry meta information for posts, used by multiple loops, you can override this function by defining them first in your child theme's functions.php file if (!function_exists('reverie_entry_meta')) : function reverie_entry_meta() { echo '<span class="byline author">'. __('Written by', 'reverie') .' <a href="'. get_author_posts_url(get_the_author_meta('ID')) .'" rel="author" class="fn">'. get_the_author() .', </a></span>'; echo '<time class="updated" datetime="'. get_the_time('c') .'" pubdate>'. get_the_time('F jS, Y') .'</time>'; } endif; // // Added by DH // $args = array( 'flex-width' => true, 'width' => 1300, 'flex-height' => true, 'height' => 500, 'default-image' => get_template_directory_uri() . '/img/header.jpg', 'default-text-color' => 'fff', 'wp-head-callback' => 'shape_header_style', ); add_theme_support( 'custom-header', $args ); if ( ! function_exists( 'shape_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see shape_custom_header_setup(). * * @since Shape 1.0 */ function shape_header_style() { // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( HEADER_TEXTCOLOR == get_header_textcolor() && '' == get_header_image() ) return; // If we get this far, we have custom styles. Let's do this. ?> <style type="text/css"> <?php // Do we have a custom header image? if ( '' != get_header_image() ) : ?> .site-header img { display: block; } <?php endif; // Has the text been hidden? if ( 'blank' == get_header_textcolor() ) : ?> .site-title, .site-description { position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } <?php // If the user has set a custom color for the text use that else : ?> .site-title, .site-title a, .site-description { color: #<?php echo get_header_textcolor(); ?> !important; } <?php endif; ?> </style> <?php } endif; // shape_header_style function new_excerpt_more( $more ) { return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">...Continue Reading</a>'; } add_filter( 'excerpt_more', 'new_excerpt_more' ); ?>
riotfire/jean
functions.php
PHP
mit
5,869
[ 30522, 1026, 1029, 25718, 1013, 1008, 3166, 1024, 1062, 10222, 15469, 24471, 2140, 1024, 8299, 1024, 1013, 1013, 4323, 13028, 8303, 1012, 4012, 1013, 2023, 2173, 2003, 2172, 20133, 1012, 2404, 2115, 4323, 3563, 9537, 2182, 1010, 2505, 2842, 2017, 2089, 2215, 2000, 2224, 13354, 7076, 2000, 2562, 2477, 29369, 1012, 1008, 1013, 1013, 1008, 1015, 1012, 5622, 2497, 1013, 4550, 1012, 25718, 1011, 2132, 27686, 1011, 2695, 1998, 4871, 3141, 9344, 1008, 1013, 5478, 1035, 2320, 1006, 1005, 5622, 2497, 1013, 4550, 1012, 25718, 1005, 1007, 1025, 1013, 1013, 2079, 2035, 1996, 9344, 1998, 4372, 4226, 5657, 2182, 1013, 1008, 1016, 1012, 5622, 2497, 1013, 4372, 4226, 5657, 1011, 2806, 1012, 25718, 1011, 4372, 4226, 5657, 3192, 1998, 7065, 17378, 20116, 2015, 1008, 1013, 5478, 1035, 2320, 1006, 1005, 5622, 2497, 1013, 4372, 4226, 5657, 1011, 2806, 1012, 25718, 1005, 1007, 1025, 1013, 1008, 1017, 1012, 5622, 2497, 1013, 3192, 1012, 25718, 1011, 5587, 6643, 20876, 3508, 1008, 1013, 5478, 1035, 2320, 1006, 1005, 5622, 2497, 1013, 3192, 1012, 25718, 1005, 1007, 1025, 1013, 1013, 7170, 3192, 3563, 4972, 2066, 2327, 1011, 3347, 1013, 1008, 1018, 1012, 5622, 2497, 1013, 6583, 2615, 1012, 25718, 1011, 7661, 5232, 2005, 2327, 1011, 3347, 1998, 3141, 1008, 1013, 5478, 1035, 2320, 1006, 1005, 5622, 2497, 1013, 6583, 2615, 1012, 25718, 1005, 1007, 1025, 1013, 1013, 11307, 12398, 2773, 20110, 12183, 4280, 1998, 4550, 1059, 2361, 1035, 6583, 2615, 1035, 12183, 2928, 6279, 1013, 1008, 1019, 1012, 5622, 2497, 1013, 2811, 7913, 18376, 1012, 25718, 1011, 5587, 2811, 7913, 18376, 1010, 3162, 2129, 2116, 2111, 2024, 2478, 7065, 17378, 1008, 1013, 5478, 1035, 2320, 1006, 1005, 5622, 2497, 1013, 2811, 7913, 18376, 1012, 25718, 1005, 1007, 1025, 1013, 1013, 7170, 2811, 7913, 18376, 2000, 2650, 1996, 8192, 1997, 7065, 17378, 2408, 1996, 4773, 1010, 7615, 2023, 2240, 2065, 2017, 2123, 1005, 1056, 2215, 2000, 2022, 12808, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 30524, 4323, 6753, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 3853, 7065, 17378, 1035, 4323, 1035, 2490, 1006, 1007, 1063, 1013, 1013, 5587, 2653, 6753, 1012, 7170, 1035, 4323, 1035, 3793, 9527, 8113, 1006, 1005, 7065, 17378, 1005, 1010, 2131, 1035, 23561, 1035, 14176, 1006, 1007, 1012, 1005, 1013, 11374, 1005, 1007, 1025, 1013, 1013, 5587, 2695, 7639, 25464, 6753, 1012, 8299, 1024, 1013, 1013, 15763, 1012, 2773, 20110, 1012, 8917, 1013, 2695, 1035, 7639, 25464, 2015, 5587, 1035, 4323, 1035, 2490, 1006, 1005, 2695, 1011, 7639, 25464, 2015, 1005, 1007, 1025, 1013, 1013, 2275, 1035, 2695, 1035, 7639, 25464, 1035, 2946, 1006, 5018, 1010, 5018, 1010, 6270, 1007, 1025, 5587, 1035, 3746, 1035, 2946, 1006, 1005, 1042, 2094, 1011, 1048, 10623, 1005, 1010, 12457, 2692, 1010, 25897, 2683, 2683, 1007, 1025, 5587, 1035, 3746, 1035, 2946, 1006, 1005, 1042, 2094, 1011, 19960, 1005, 1010, 6146, 2620, 30523, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 5587, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 5587, 30526 ]
using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace ApiKickstart.DataModel.Migrations { public partial class DescriptionTextField : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Description", table: "Widgets", maxLength: 128, nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Description", table: "Widgets"); } } }
Andrew-Brad/ApiKickstart
src/Domain/ApiKickstart.DataModel/ApiKickstart.DataModel/Migrations/20180602155212_DescriptionTextField.cs
C#
mit
698
[ 30522, 2478, 7513, 1012, 9178, 15643, 6198, 17345, 1012, 9230, 2015, 1025, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 3415, 15327, 17928, 29493, 5705, 7559, 2102, 1012, 2951, 5302, 9247, 1012, 9230, 2015, 1063, 2270, 7704, 2465, 6412, 18209, 3790, 1024, 9230, 1063, 5123, 2058, 15637, 11675, 2039, 1006, 9230, 8569, 23891, 2099, 9230, 8569, 23891, 2099, 1007, 1063, 9230, 8569, 23891, 2099, 1012, 5587, 25778, 2819, 2078, 1026, 5164, 1028, 1006, 2171, 1024, 1000, 6412, 1000, 1010, 2795, 1024, 1000, 15536, 28682, 1000, 1010, 4098, 7770, 13512, 2232, 1024, 11899, 1010, 19701, 3085, 1024, 2995, 1007, 1025, 1065, 5123, 2058, 15637, 11675, 2091, 1006, 9230, 8569, 23891, 2099, 9230, 8569, 23891, 2099, 1007, 1063, 9230, 8569, 23891, 2099, 1012, 4530, 25778, 2819, 2078, 1006, 2171, 1024, 1000, 6412, 1000, 1010, 2795, 1024, 1000, 15536, 28682, 1000, 1007, 1025, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ]
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/ipc/cc_param_traits.h" #include <stddef.h> #include <utility> #include "base/numerics/safe_conversions.h" #include "base/time/time.h" #include "cc/output/compositor_frame.h" #include "cc/output/filter_operations.h" #include "cc/quads/debug_border_draw_quad.h" #include "cc/quads/draw_quad.h" #include "cc/quads/largest_draw_quad.h" #include "cc/quads/render_pass_draw_quad.h" #include "cc/quads/solid_color_draw_quad.h" #include "cc/quads/surface_draw_quad.h" #include "cc/quads/tile_draw_quad.h" #include "cc/quads/yuv_video_draw_quad.h" #include "third_party/skia/include/core/SkData.h" #include "third_party/skia/include/core/SkFlattenableSerialization.h" #include "third_party/skia/include/core/SkImageFilter.h" #include "third_party/skia/include/core/SkRefCnt.h" #include "ui/gfx/ipc/geometry/gfx_param_traits.h" #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" namespace IPC { void ParamTraits<cc::FilterOperation>::GetSize(base::PickleSizer* s, const param_type& p) { GetParamSize(s, p.type()); switch (p.type()) { case cc::FilterOperation::GRAYSCALE: case cc::FilterOperation::SEPIA: case cc::FilterOperation::SATURATE: case cc::FilterOperation::HUE_ROTATE: case cc::FilterOperation::INVERT: case cc::FilterOperation::BRIGHTNESS: case cc::FilterOperation::SATURATING_BRIGHTNESS: case cc::FilterOperation::CONTRAST: case cc::FilterOperation::OPACITY: case cc::FilterOperation::BLUR: GetParamSize(s, p.amount()); break; case cc::FilterOperation::DROP_SHADOW: GetParamSize(s, p.drop_shadow_offset()); GetParamSize(s, p.amount()); GetParamSize(s, p.drop_shadow_color()); break; case cc::FilterOperation::COLOR_MATRIX: for (int i = 0; i < 20; ++i) GetParamSize(s, p.matrix()[i]); break; case cc::FilterOperation::ZOOM: GetParamSize(s, p.amount()); GetParamSize(s, p.zoom_inset()); break; case cc::FilterOperation::REFERENCE: GetParamSize(s, p.image_filter()); break; case cc::FilterOperation::ALPHA_THRESHOLD: NOTREACHED(); break; } } void ParamTraits<cc::FilterOperation>::Write(base::Pickle* m, const param_type& p) { WriteParam(m, p.type()); switch (p.type()) { case cc::FilterOperation::GRAYSCALE: case cc::FilterOperation::SEPIA: case cc::FilterOperation::SATURATE: case cc::FilterOperation::HUE_ROTATE: case cc::FilterOperation::INVERT: case cc::FilterOperation::BRIGHTNESS: case cc::FilterOperation::SATURATING_BRIGHTNESS: case cc::FilterOperation::CONTRAST: case cc::FilterOperation::OPACITY: case cc::FilterOperation::BLUR: WriteParam(m, p.amount()); break; case cc::FilterOperation::DROP_SHADOW: WriteParam(m, p.drop_shadow_offset()); WriteParam(m, p.amount()); WriteParam(m, p.drop_shadow_color()); break; case cc::FilterOperation::COLOR_MATRIX: for (int i = 0; i < 20; ++i) WriteParam(m, p.matrix()[i]); break; case cc::FilterOperation::ZOOM: WriteParam(m, p.amount()); WriteParam(m, p.zoom_inset()); break; case cc::FilterOperation::REFERENCE: WriteParam(m, p.image_filter()); break; case cc::FilterOperation::ALPHA_THRESHOLD: NOTREACHED(); break; } } bool ParamTraits<cc::FilterOperation>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* r) { cc::FilterOperation::FilterType type; float amount; gfx::Point drop_shadow_offset; SkColor drop_shadow_color; SkScalar matrix[20]; int zoom_inset; if (!ReadParam(m, iter, &type)) return false; r->set_type(type); bool success = false; switch (type) { case cc::FilterOperation::GRAYSCALE: case cc::FilterOperation::SEPIA: case cc::FilterOperation::SATURATE: case cc::FilterOperation::HUE_ROTATE: case cc::FilterOperation::INVERT: case cc::FilterOperation::BRIGHTNESS: case cc::FilterOperation::SATURATING_BRIGHTNESS: case cc::FilterOperation::CONTRAST: case cc::FilterOperation::OPACITY: case cc::FilterOperation::BLUR: if (ReadParam(m, iter, &amount)) { r->set_amount(amount); success = true; } break; case cc::FilterOperation::DROP_SHADOW: if (ReadParam(m, iter, &drop_shadow_offset) && ReadParam(m, iter, &amount) && ReadParam(m, iter, &drop_shadow_color)) { r->set_drop_shadow_offset(drop_shadow_offset); r->set_amount(amount); r->set_drop_shadow_color(drop_shadow_color); success = true; } break; case cc::FilterOperation::COLOR_MATRIX: { int i; for (i = 0; i < 20; ++i) { if (!ReadParam(m, iter, &matrix[i])) break; } if (i == 20) { r->set_matrix(matrix); success = true; } break; } case cc::FilterOperation::ZOOM: if (ReadParam(m, iter, &amount) && ReadParam(m, iter, &zoom_inset) && amount >= 0.f && zoom_inset >= 0) { r->set_amount(amount); r->set_zoom_inset(zoom_inset); success = true; } break; case cc::FilterOperation::REFERENCE: { sk_sp<SkImageFilter> filter; if (!ReadParam(m, iter, &filter)) { success = false; break; } r->set_image_filter(std::move(filter)); success = true; break; } case cc::FilterOperation::ALPHA_THRESHOLD: break; } return success; } void ParamTraits<cc::FilterOperation>::Log(const param_type& p, std::string* l) { l->append("("); LogParam(static_cast<unsigned>(p.type()), l); l->append(", "); switch (p.type()) { case cc::FilterOperation::GRAYSCALE: case cc::FilterOperation::SEPIA: case cc::FilterOperation::SATURATE: case cc::FilterOperation::HUE_ROTATE: case cc::FilterOperation::INVERT: case cc::FilterOperation::BRIGHTNESS: case cc::FilterOperation::SATURATING_BRIGHTNESS: case cc::FilterOperation::CONTRAST: case cc::FilterOperation::OPACITY: case cc::FilterOperation::BLUR: LogParam(p.amount(), l); break; case cc::FilterOperation::DROP_SHADOW: LogParam(p.drop_shadow_offset(), l); l->append(", "); LogParam(p.amount(), l); l->append(", "); LogParam(p.drop_shadow_color(), l); break; case cc::FilterOperation::COLOR_MATRIX: for (int i = 0; i < 20; ++i) { if (i) l->append(", "); LogParam(p.matrix()[i], l); } break; case cc::FilterOperation::ZOOM: LogParam(p.amount(), l); l->append(", "); LogParam(p.zoom_inset(), l); break; case cc::FilterOperation::REFERENCE: LogParam(p.image_filter(), l); break; case cc::FilterOperation::ALPHA_THRESHOLD: NOTREACHED(); break; } l->append(")"); } void ParamTraits<cc::FilterOperations>::GetSize(base::PickleSizer* s, const param_type& p) { GetParamSize(s, base::checked_cast<uint32_t>(p.size())); for (std::size_t i = 0; i < p.size(); ++i) { GetParamSize(s, p.at(i)); } } void ParamTraits<cc::FilterOperations>::Write(base::Pickle* m, const param_type& p) { WriteParam(m, base::checked_cast<uint32_t>(p.size())); for (std::size_t i = 0; i < p.size(); ++i) { WriteParam(m, p.at(i)); } } bool ParamTraits<cc::FilterOperations>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* r) { uint32_t count; if (!ReadParam(m, iter, &count)) return false; for (std::size_t i = 0; i < count; ++i) { cc::FilterOperation op = cc::FilterOperation::CreateEmptyFilter(); if (!ReadParam(m, iter, &op)) return false; r->Append(op); } return true; } void ParamTraits<cc::FilterOperations>::Log(const param_type& p, std::string* l) { l->append("("); for (std::size_t i = 0; i < p.size(); ++i) { if (i) l->append(", "); LogParam(p.at(i), l); } l->append(")"); } void ParamTraits<sk_sp<SkImageFilter>>::GetSize(base::PickleSizer* s, const param_type& p) { SkImageFilter* filter = p.get(); if (filter) { sk_sp<SkData> data(SkValidatingSerializeFlattenable(filter)); s->AddData(base::checked_cast<int>(data->size())); } else { s->AddData(0); } } void ParamTraits<sk_sp<SkImageFilter>>::Write(base::Pickle* m, const param_type& p) { SkImageFilter* filter = p.get(); if (filter) { sk_sp<SkData> data(SkValidatingSerializeFlattenable(filter)); m->WriteData(static_cast<const char*>(data->data()), base::checked_cast<int>(data->size())); } else { m->WriteData(0, 0); } } bool ParamTraits<sk_sp<SkImageFilter>>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* r) { const char* data = 0; int length = 0; if (!iter->ReadData(&data, &length)) return false; if (length > 0) { SkFlattenable* flattenable = SkValidatingDeserializeFlattenable( data, length, SkImageFilter::GetFlattenableType()); *r = sk_sp<SkImageFilter>(static_cast<SkImageFilter*>(flattenable)); } else { r->reset(); } return true; } void ParamTraits<sk_sp<SkImageFilter>>::Log(const param_type& p, std::string* l) { l->append("("); LogParam(p.get() ? p->countInputs() : 0, l); l->append(")"); } void ParamTraits<cc::RenderPass>::Write(base::Pickle* m, const param_type& p) { WriteParam(m, p.id); WriteParam(m, p.output_rect); WriteParam(m, p.damage_rect); WriteParam(m, p.transform_to_root_target); WriteParam(m, p.has_transparent_background); WriteParam(m, base::checked_cast<uint32_t>(p.quad_list.size())); cc::SharedQuadStateList::ConstIterator shared_quad_state_iter = p.shared_quad_state_list.begin(); cc::SharedQuadStateList::ConstIterator last_shared_quad_state_iter = p.shared_quad_state_list.end(); for (const auto& quad : p.quad_list) { DCHECK(quad->rect.Contains(quad->visible_rect)) << quad->material << " rect: " << quad->rect.ToString() << " visible_rect: " << quad->visible_rect.ToString(); DCHECK(quad->opaque_rect.IsEmpty() || quad->rect.Contains(quad->opaque_rect)) << quad->material << " rect: " << quad->rect.ToString() << " opaque_rect: " << quad->opaque_rect.ToString(); switch (quad->material) { case cc::DrawQuad::DEBUG_BORDER: WriteParam(m, *cc::DebugBorderDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::PICTURE_CONTENT: NOTREACHED(); break; case cc::DrawQuad::TEXTURE_CONTENT: WriteParam(m, *cc::TextureDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::RENDER_PASS: WriteParam(m, *cc::RenderPassDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::SOLID_COLOR: WriteParam(m, *cc::SolidColorDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::SURFACE_CONTENT: WriteParam(m, *cc::SurfaceDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::TILED_CONTENT: WriteParam(m, *cc::TileDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::STREAM_VIDEO_CONTENT: WriteParam(m, *cc::StreamVideoDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::YUV_VIDEO_CONTENT: WriteParam(m, *cc::YUVVideoDrawQuad::MaterialCast(quad)); break; case cc::DrawQuad::INVALID: break; } // Null shared quad states should not occur. DCHECK(quad->shared_quad_state); // SharedQuadStates should appear in the order they are used by DrawQuads. // Find the SharedQuadState for this DrawQuad. while (shared_quad_state_iter != p.shared_quad_state_list.end() && quad->shared_quad_state != *shared_quad_state_iter) ++shared_quad_state_iter; DCHECK(shared_quad_state_iter != p.shared_quad_state_list.end()); if (shared_quad_state_iter != last_shared_quad_state_iter) { WriteParam(m, true); WriteParam(m, **shared_quad_state_iter); last_shared_quad_state_iter = shared_quad_state_iter; } else { WriteParam(m, false); } } } static size_t ReserveSizeForRenderPassWrite(const cc::RenderPass& p) { size_t to_reserve = sizeof(cc::RenderPass); // Whether the quad points to a new shared quad state for each quad. to_reserve += p.quad_list.size() * sizeof(bool); // Shared quad state is only written when a quad contains a shared quad state // that has not been written. to_reserve += p.shared_quad_state_list.size() * sizeof(cc::SharedQuadState); // The largest quad type, verified by a unit test. to_reserve += p.quad_list.size() * cc::LargestDrawQuadSize(); return to_reserve; } template <typename QuadType> static cc::DrawQuad* ReadDrawQuad(const base::Pickle* m, base::PickleIterator* iter, cc::RenderPass* render_pass) { QuadType* quad = render_pass->CreateAndAppendDrawQuad<QuadType>(); if (!ReadParam(m, iter, quad)) return NULL; return quad; } bool ParamTraits<cc::RenderPass>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* p) { cc::RenderPassId id; gfx::Rect output_rect; gfx::Rect damage_rect; gfx::Transform transform_to_root_target; bool has_transparent_background; uint32_t quad_list_size; if (!ReadParam(m, iter, &id) || !ReadParam(m, iter, &output_rect) || !ReadParam(m, iter, &damage_rect) || !ReadParam(m, iter, &transform_to_root_target) || !ReadParam(m, iter, &has_transparent_background) || !ReadParam(m, iter, &quad_list_size)) return false; p->SetAll(id, output_rect, damage_rect, transform_to_root_target, has_transparent_background); for (uint32_t i = 0; i < quad_list_size; ++i) { cc::DrawQuad::Material material; base::PickleIterator temp_iter = *iter; if (!ReadParam(m, &temp_iter, &material)) return false; cc::DrawQuad* draw_quad = NULL; switch (material) { case cc::DrawQuad::DEBUG_BORDER: draw_quad = ReadDrawQuad<cc::DebugBorderDrawQuad>(m, iter, p); break; case cc::DrawQuad::PICTURE_CONTENT: NOTREACHED(); return false; case cc::DrawQuad::SURFACE_CONTENT: draw_quad = ReadDrawQuad<cc::SurfaceDrawQuad>(m, iter, p); break; case cc::DrawQuad::TEXTURE_CONTENT: draw_quad = ReadDrawQuad<cc::TextureDrawQuad>(m, iter, p); break; case cc::DrawQuad::RENDER_PASS: draw_quad = ReadDrawQuad<cc::RenderPassDrawQuad>(m, iter, p); break; case cc::DrawQuad::SOLID_COLOR: draw_quad = ReadDrawQuad<cc::SolidColorDrawQuad>(m, iter, p); break; case cc::DrawQuad::TILED_CONTENT: draw_quad = ReadDrawQuad<cc::TileDrawQuad>(m, iter, p); break; case cc::DrawQuad::STREAM_VIDEO_CONTENT: draw_quad = ReadDrawQuad<cc::StreamVideoDrawQuad>(m, iter, p); break; case cc::DrawQuad::YUV_VIDEO_CONTENT: draw_quad = ReadDrawQuad<cc::YUVVideoDrawQuad>(m, iter, p); break; case cc::DrawQuad::INVALID: break; } if (!draw_quad) return false; if (!draw_quad->rect.Contains(draw_quad->visible_rect)) { LOG(ERROR) << "Quad with invalid visible rect " << draw_quad->material << " rect: " << draw_quad->rect.ToString() << " visible_rect: " << draw_quad->visible_rect.ToString(); return false; } if (!draw_quad->opaque_rect.IsEmpty() && !draw_quad->rect.Contains(draw_quad->opaque_rect)) { LOG(ERROR) << "Quad with invalid opaque rect " << draw_quad->material << " rect: " << draw_quad->rect.ToString() << " opaque_rect: " << draw_quad->opaque_rect.ToString(); return false; } bool has_new_shared_quad_state; if (!ReadParam(m, iter, &has_new_shared_quad_state)) return false; // If the quad has a new shared quad state, read it in. if (has_new_shared_quad_state) { cc::SharedQuadState* state = p->CreateAndAppendSharedQuadState(); if (!ReadParam(m, iter, state)) return false; } draw_quad->shared_quad_state = p->shared_quad_state_list.back(); } return true; } void ParamTraits<cc::RenderPass>::Log(const param_type& p, std::string* l) { l->append("RenderPass(("); LogParam(p.id, l); l->append("), "); LogParam(p.output_rect, l); l->append(", "); LogParam(p.damage_rect, l); l->append(", "); LogParam(p.transform_to_root_target, l); l->append(", "); LogParam(p.has_transparent_background, l); l->append(", "); l->append("["); for (const auto& shared_quad_state : p.shared_quad_state_list) { if (shared_quad_state != p.shared_quad_state_list.front()) l->append(", "); LogParam(*shared_quad_state, l); } l->append("], ["); for (const auto& quad : p.quad_list) { if (quad != p.quad_list.front()) l->append(", "); switch (quad->material) { case cc::DrawQuad::DEBUG_BORDER: LogParam(*cc::DebugBorderDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::PICTURE_CONTENT: NOTREACHED(); break; case cc::DrawQuad::TEXTURE_CONTENT: LogParam(*cc::TextureDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::RENDER_PASS: LogParam(*cc::RenderPassDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::SOLID_COLOR: LogParam(*cc::SolidColorDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::SURFACE_CONTENT: LogParam(*cc::SurfaceDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::TILED_CONTENT: LogParam(*cc::TileDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::STREAM_VIDEO_CONTENT: LogParam(*cc::StreamVideoDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::YUV_VIDEO_CONTENT: LogParam(*cc::YUVVideoDrawQuad::MaterialCast(quad), l); break; case cc::DrawQuad::INVALID: break; } } l->append("])"); } namespace { enum CompositorFrameType { NO_FRAME, DELEGATED_FRAME, GL_FRAME, }; } void ParamTraits<cc::CompositorFrame>::Write(base::Pickle* m, const param_type& p) { WriteParam(m, p.metadata); if (p.delegated_frame_data) { DCHECK(!p.gl_frame_data); WriteParam(m, static_cast<int>(DELEGATED_FRAME)); WriteParam(m, *p.delegated_frame_data); } else if (p.gl_frame_data) { WriteParam(m, static_cast<int>(GL_FRAME)); WriteParam(m, *p.gl_frame_data); } else { WriteParam(m, static_cast<int>(NO_FRAME)); } } bool ParamTraits<cc::CompositorFrame>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* p) { if (!ReadParam(m, iter, &p->metadata)) return false; int compositor_frame_type; if (!ReadParam(m, iter, &compositor_frame_type)) return false; switch (compositor_frame_type) { case DELEGATED_FRAME: p->delegated_frame_data.reset(new cc::DelegatedFrameData()); if (!ReadParam(m, iter, p->delegated_frame_data.get())) return false; break; case GL_FRAME: p->gl_frame_data.reset(new cc::GLFrameData()); if (!ReadParam(m, iter, p->gl_frame_data.get())) return false; break; case NO_FRAME: break; default: return false; } return true; } void ParamTraits<cc::CompositorFrame>::Log(const param_type& p, std::string* l) { l->append("CompositorFrame("); LogParam(p.metadata, l); l->append(", "); if (p.delegated_frame_data) LogParam(*p.delegated_frame_data, l); else if (p.gl_frame_data) LogParam(*p.gl_frame_data, l); l->append(")"); } void ParamTraits<cc::CompositorFrameAck>::Write(base::Pickle* m, const param_type& p) { WriteParam(m, p.resources); if (p.gl_frame_data) { WriteParam(m, static_cast<int>(GL_FRAME)); WriteParam(m, *p.gl_frame_data); } else { WriteParam(m, static_cast<int>(NO_FRAME)); } } bool ParamTraits<cc::CompositorFrameAck>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* p) { if (!ReadParam(m, iter, &p->resources)) return false; int compositor_frame_type; if (!ReadParam(m, iter, &compositor_frame_type)) return false; switch (compositor_frame_type) { case NO_FRAME: break; case GL_FRAME: p->gl_frame_data.reset(new cc::GLFrameData()); if (!ReadParam(m, iter, p->gl_frame_data.get())) return false; break; default: return false; } return true; } void ParamTraits<cc::CompositorFrameAck>::Log(const param_type& p, std::string* l) { l->append("CompositorFrameAck("); LogParam(p.resources, l); l->append(", "); if (p.gl_frame_data) LogParam(*p.gl_frame_data, l); l->append(")"); } void ParamTraits<cc::DelegatedFrameData>::Write(base::Pickle* m, const param_type& p) { DCHECK_NE(0u, p.render_pass_list.size()); size_t to_reserve = sizeof(p.device_scale_factor); to_reserve += p.resource_list.size() * sizeof(cc::TransferableResource); for (const auto& pass : p.render_pass_list) { to_reserve += sizeof(size_t) * 2; to_reserve += ReserveSizeForRenderPassWrite(*pass); } m->Reserve(to_reserve); WriteParam(m, p.device_scale_factor); WriteParam(m, p.resource_list); WriteParam(m, base::checked_cast<uint32_t>(p.render_pass_list.size())); for (const auto& pass : p.render_pass_list) { WriteParam(m, base::checked_cast<uint32_t>(pass->quad_list.size())); WriteParam( m, base::checked_cast<uint32_t>(pass->shared_quad_state_list.size())); WriteParam(m, *pass); } } bool ParamTraits<cc::DelegatedFrameData>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* p) { const size_t kMaxRenderPasses = 10000; const size_t kMaxSharedQuadStateListSize = 100000; const size_t kMaxQuadListSize = 1000000; if (!ReadParam(m, iter, &p->device_scale_factor)) return false; std::set<cc::RenderPassId> pass_set; uint32_t num_render_passes; if (!ReadParam(m, iter, &p->resource_list) || !ReadParam(m, iter, &num_render_passes) || num_render_passes > kMaxRenderPasses || num_render_passes == 0) return false; for (uint32_t i = 0; i < num_render_passes; ++i) { uint32_t quad_list_size; uint32_t shared_quad_state_list_size; if (!ReadParam(m, iter, &quad_list_size) || !ReadParam(m, iter, &shared_quad_state_list_size) || quad_list_size > kMaxQuadListSize || shared_quad_state_list_size > kMaxSharedQuadStateListSize) return false; std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create(static_cast<size_t>(shared_quad_state_list_size), static_cast<size_t>(quad_list_size)); if (!ReadParam(m, iter, render_pass.get())) return false; // Validate that each RenderPassDrawQuad points at a valid RenderPass // earlier in the frame. for (const auto* quad : render_pass->quad_list) { if (quad->material != cc::DrawQuad::RENDER_PASS) continue; const cc::RenderPassDrawQuad* rpdq = cc::RenderPassDrawQuad::MaterialCast(quad); if (!pass_set.count(rpdq->render_pass_id)) return false; } pass_set.insert(render_pass->id); p->render_pass_list.push_back(std::move(render_pass)); } return true; } void ParamTraits<cc::DelegatedFrameData>::Log(const param_type& p, std::string* l) { l->append("DelegatedFrameData("); LogParam(p.device_scale_factor, l); LogParam(p.resource_list, l); l->append(", ["); for (size_t i = 0; i < p.render_pass_list.size(); ++i) { if (i) l->append(", "); LogParam(*p.render_pass_list[i], l); } l->append("])"); } void ParamTraits<cc::DrawQuad::Resources>::GetSize(base::PickleSizer* s, const param_type& p) { GetParamSize(s, p.count); for (size_t i = 0; i < p.count; ++i) GetParamSize(s, p.ids[i]); } void ParamTraits<cc::DrawQuad::Resources>::Write(base::Pickle* m, const param_type& p) { DCHECK_LE(p.count, cc::DrawQuad::Resources::kMaxResourceIdCount); WriteParam(m, p.count); for (size_t i = 0; i < p.count; ++i) WriteParam(m, p.ids[i]); } bool ParamTraits<cc::DrawQuad::Resources>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* p) { if (!ReadParam(m, iter, &p->count)) return false; if (p->count > cc::DrawQuad::Resources::kMaxResourceIdCount) return false; for (size_t i = 0; i < p->count; ++i) { if (!ReadParam(m, iter, &p->ids[i])) return false; } return true; } void ParamTraits<cc::DrawQuad::Resources>::Log(const param_type& p, std::string* l) { l->append("DrawQuad::Resources("); LogParam(p.count, l); l->append(", ["); if (p.count > cc::DrawQuad::Resources::kMaxResourceIdCount) { l->append("])"); return; } for (size_t i = 0; i < p.count; ++i) { LogParam(p.ids[i], l); if (i < (p.count - 1)) l->append(", "); } l->append("])"); } void ParamTraits<cc::StreamVideoDrawQuad::OverlayResources>::GetSize( base::PickleSizer* s, const param_type& p) { for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { GetParamSize(s, p.size_in_pixels[i]); } } void ParamTraits<cc::StreamVideoDrawQuad::OverlayResources>::Write( base::Pickle* m, const param_type& p) { for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { WriteParam(m, p.size_in_pixels[i]); } } bool ParamTraits<cc::StreamVideoDrawQuad::OverlayResources>::Read( const base::Pickle* m, base::PickleIterator* iter, param_type* p) { for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { if (!ReadParam(m, iter, &p->size_in_pixels[i])) return false; } return true; } void ParamTraits<cc::StreamVideoDrawQuad::OverlayResources>::Log( const param_type& p, std::string* l) { l->append("StreamVideoDrawQuad::OverlayResources(["); for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { LogParam(p.size_in_pixels[i], l); if (i < (cc::DrawQuad::Resources::kMaxResourceIdCount - 1)) l->append(", "); } l->append("])"); } void ParamTraits<cc::TextureDrawQuad::OverlayResources>::GetSize( base::PickleSizer* s, const param_type& p) { for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { GetParamSize(s, p.size_in_pixels[i]); } } void ParamTraits<cc::TextureDrawQuad::OverlayResources>::Write( base::Pickle* m, const param_type& p) { for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { WriteParam(m, p.size_in_pixels[i]); } } bool ParamTraits<cc::TextureDrawQuad::OverlayResources>::Read( const base::Pickle* m, base::PickleIterator* iter, param_type* p) { for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { if (!ReadParam(m, iter, &p->size_in_pixels[i])) return false; } return true; } void ParamTraits<cc::TextureDrawQuad::OverlayResources>::Log( const param_type& p, std::string* l) { l->append("TextureDrawQuad::OverlayResources(["); for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { LogParam(p.size_in_pixels[i], l); if (i < (cc::DrawQuad::Resources::kMaxResourceIdCount - 1)) l->append(", "); } l->append("])"); } } // namespace IPC // Generate param traits size methods. #include "ipc/param_traits_size_macros.h" namespace IPC { #undef CC_IPC_CC_PARAM_TRAITS_MACROS_H_ #include "cc/ipc/cc_param_traits_macros.h" } // Generate param traits write methods. #include "ipc/param_traits_write_macros.h" namespace IPC { #undef CC_IPC_CC_PARAM_TRAITS_MACROS_H_ #include "cc/ipc/cc_param_traits_macros.h" } // namespace IPC // Generate param traits read methods. #include "ipc/param_traits_read_macros.h" namespace IPC { #undef CC_IPC_CC_PARAM_TRAITS_MACROS_H_ #include "cc/ipc/cc_param_traits_macros.h" } // namespace IPC // Generate param traits log methods. #include "ipc/param_traits_log_macros.h" namespace IPC { #undef CC_IPC_CC_PARAM_TRAITS_MACROS_H_ #include "cc/ipc/cc_param_traits_macros.h" } // namespace IPC
axinging/chromium-crosswalk
cc/ipc/cc_param_traits.cc
C++
bsd-3-clause
29,897
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 2262, 1996, 10381, 21716, 5007, 6048, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 2224, 1997, 2023, 3120, 3642, 2003, 9950, 2011, 1037, 18667, 2094, 1011, 2806, 6105, 2008, 2064, 2022, 1013, 1013, 2179, 1999, 1996, 6105, 5371, 1012, 1001, 2421, 1000, 10507, 1013, 12997, 2278, 1013, 10507, 1035, 11498, 2213, 1035, 12955, 1012, 1044, 1000, 1001, 2421, 1026, 2358, 14141, 12879, 1012, 1044, 1028, 1001, 2421, 1026, 9710, 1028, 1001, 2421, 1000, 2918, 1013, 16371, 25531, 2015, 1013, 3647, 1035, 25834, 1012, 1044, 1000, 1001, 2421, 1000, 2918, 1013, 2051, 1013, 2051, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 6434, 1013, 4012, 6873, 28307, 1035, 4853, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 6434, 1013, 11307, 1035, 3136, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 2139, 8569, 2290, 1035, 3675, 1035, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 2922, 1035, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 17552, 1035, 3413, 1035, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 5024, 1035, 3609, 1035, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 3302, 1035, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 14090, 1035, 4009, 30524, 2421, 1000, 10507, 1013, 17718, 2015, 1013, 9805, 2615, 1035, 2678, 1035, 4009, 1035, 17718, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 8301, 2050, 1013, 2421, 1013, 4563, 1013, 15315, 2850, 2696, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 8301, 2050, 1013, 2421, 1013, 4563, 1013, 15315, 10258, 19321, 8189, 13510, 11610, 22731, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 8301, 2050, 1013, 2421, 1013, 4563, 1013, 8301, 26860, 8873, 21928, 1012, 1044, 1000, 1001, 2421, 1000, 2353, 1035, 2283, 1013, 8301, 2050, 1013, 2421, 1013, 4563, 1013, 15315, 2890, 11329, 3372, 1012, 1044, 1000, 1001, 2421, 1000, 21318, 1013, 1043, 2546, 2595, 1013, 12997, 2278, 1013, 10988, 1013, 1043, 2546, 2595, 1035, 11498, 2213, 1035, 12955, 1012, 1044, 1000, 1001, 2421, 1000, 21318, 1013, 1043, 2546, 2595, 1013, 12997, 2278, 1013, 8301, 2050, 1013, 1043, 2546, 2595, 1035, 8301, 2050, 1035, 11498, 2213, 1035, 12955, 1012, 1044, 1000, 3415, 15327, 12997, 2278, 1063, 11675, 11498, 20492, 14995, 3215, 1026, 10507, 1024, 1024, 11307, 25918, 3370, 1028, 1024, 1024, 4152, 4697, 1006, 2918, 1024, 1024, 4060, 4244, 17629, 1008, 1055, 1010, 9530, 3367, 11498, 2213, 1035, 2828, 1004, 1052, 1007, 1063, 2131, 28689, 5244, 4697, 1006, 1055, 1010, 1052, 1012, 2828, 1006, 1007, 1007, 1025, 6942, 1006, 1052, 1012, 2828, 1006, 1007, 1007, 1063, 2553, 10507, 1024, 1024, 11307, 25918, 3370, 1024, 1024, 3897, 15782, 2571, 1024, 2553, 10507, 1024, 1024, 11307, 25918, 3370, 1024, 1024, 19802, 2401, 1024, 2553, 10507, 30523, 1035, 17718, 1012, 1044, 1000, 1001, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1035, 17718, 1012, 1044, 1000, 1001, 30526 ]
package org.easyarch.slardar.session.impl; import org.easyarch.slardar.cache.ProxyCache; import org.easyarch.slardar.cache.factory.ProxyCacheFactory; import org.easyarch.slardar.jdbc.exec.AbstractExecutor; import org.easyarch.slardar.jdbc.handler.BaseTypeResultSetHandler; import org.easyarch.slardar.jdbc.handler.BeanListResultSetHadler; import org.easyarch.slardar.jdbc.handler.BeanResultSetHadler; import org.easyarch.slardar.jdbc.handler.MapResultHandler; import org.easyarch.slardar.mapping.MapperProxyFactory; import org.easyarch.slardar.session.Configuration; import org.easyarch.slardar.session.DBSessionAdapter; import java.util.List; import java.util.Map; /** * Description : * Created by xingtianyu on 17-1-30 * 下午6:54 * description: */ public class MapperDBSession extends DBSessionAdapter { private ProxyCacheFactory factory; private Configuration configuration; private AbstractExecutor executor; public MapperDBSession(Configuration configuration, AbstractExecutor executor) { this.executor = executor; this.configuration = configuration; factory = ProxyCacheFactory.getInstance(); } @Override public <T> T selectOne(String sql, Class<T> clazz, Object... parameters) { return executor.query(sql,new BeanResultSetHadler<T>(clazz),parameters); } @Override public <E> List<E> selectList(String sql, Class<E> clazz, Object... parameters) { List<E> list = executor.query(sql, new BeanListResultSetHadler<>(clazz), parameters); return list; } @Override public int selectCount(String sql, Object... parameters) { return executor.query(sql, new BaseTypeResultSetHandler<>(Integer.class), parameters); } @Override public List<Map<String, Object>> selectMap(String sql, Object... parameters) { List<Map<String, Object>> list = executor.query(sql, new MapResultHandler(), parameters); return list; } @Override public int update(String sql, Object... parameter) { return executor.alter(sql, parameter); } @Override public int delete(String sql, Object... parameter) { return update(sql, parameter); } @Override public int insert(String sql, Object... parameter) { return update(sql, parameter); } @Override public <T> T getMapper(Class<T> clazz) { ProxyCache proxyCache = factory.createCache(configuration.getCacheEntity()); if (proxyCache.isHit(clazz)){ return (T) proxyCache.get(clazz); } MapperProxyFactory<T> mapperProxyFactory = new MapperProxyFactory(configuration,clazz); return mapperProxyFactory.newInstance(this); } @Override public Configuration getConfiguration() { return configuration; } @Override public void close() { executor.close(); } @Override public void rollback() { executor.rollback(); } }
rpgmakervx/slardar
src/main/java/org/easyarch/slardar/session/impl/MapperDBSession.java
Java
apache-2.0
2,969
[ 30522, 7427, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 5219, 1012, 17727, 2140, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 17053, 1012, 24540, 3540, 5403, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 17053, 1012, 4713, 1012, 24540, 3540, 5403, 21450, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 26219, 9818, 1012, 4654, 8586, 1012, 10061, 10288, 8586, 16161, 2099, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 26219, 9818, 1012, 28213, 1012, 2918, 13874, 6072, 11314, 13462, 11774, 3917, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 26219, 9818, 1012, 28213, 1012, 14068, 9863, 6072, 11314, 13462, 16102, 3917, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 26219, 9818, 1012, 28213, 1012, 14068, 6072, 11314, 13462, 16102, 3917, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 26219, 9818, 1012, 28213, 1012, 4949, 6072, 11314, 11774, 3917, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 12375, 1012, 4949, 4842, 21572, 18037, 21450, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 5219, 1012, 9563, 1025, 12324, 8917, 1012, 3733, 2906, 2818, 1012, 22889, 4232, 2906, 1012, 5219, 1012, 16962, 8583, 10992, 8447, 13876, 2121, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 4949, 1025, 1013, 1008, 1008, 1008, 6412, 1024, 1008, 2580, 2011, 8418, 3070, 10772, 10513, 2006, 2459, 1011, 1015, 1011, 2382, 1008, 1743, 100, 1020, 1024, 5139, 1008, 6412, 1024, 1008, 1013, 2270, 2465, 4949, 4842, 18939, 8583, 10992, 8908, 16962, 8583, 10992, 8447, 13876, 2121, 1063, 2797, 24540, 3540, 5403, 21450, 4713, 1025, 2797, 9563, 9563, 1025, 2797, 10061, 10288, 8586, 16161, 2099, 4654, 8586, 16161, 2099, 1025, 2270, 4949, 4842, 30524, 1025, 2023, 1012, 9563, 1027, 9563, 1025, 4713, 1027, 24540, 3540, 5403, 21450, 1012, 2131, 7076, 26897, 1006, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 1026, 1056, 1028, 1056, 7276, 5643, 1006, 5164, 29296, 1010, 2465, 1026, 1056, 1028, 18856, 10936, 2480, 1010, 4874, 1012, 1012, 1012, 11709, 1007, 1063, 2709, 4654, 8586, 16161, 2099, 1012, 23032, 1006, 29296, 1010, 2047, 14068, 6072, 11314, 13462, 16102, 3917, 1026, 1056, 1028, 1006, 18856, 10936, 2480, 1007, 1010, 11709, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 1026, 1041, 1028, 2862, 1026, 1041, 1028, 7276, 9863, 1006, 5164, 29296, 1010, 2465, 1026, 1041, 1028, 18856, 10936, 2480, 1010, 4874, 1012, 1012, 1012, 11709, 1007, 1063, 2862, 1026, 1041, 1028, 2862, 1027, 4654, 8586, 16161, 2099, 1012, 23032, 1006, 29296, 1010, 2047, 14068, 9863, 6072, 11314, 13462, 16102, 3917, 1026, 1028, 1006, 18856, 10936, 2480, 1007, 1010, 11709, 1007, 1025, 2709, 2862, 1025, 1065, 1030, 2058, 15637, 2270, 20014, 7276, 3597, 16671, 1006, 5164, 30523, 18939, 8583, 10992, 1006, 9563, 9563, 1010, 10061, 10288, 8586, 16161, 2099, 4654, 8586, 16161, 2099, 1007, 1063, 2023, 1012, 4654, 8586, 16161, 2099, 1027, 4654, 8586, 16161, 2099, 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, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 18939, 8583, 10992, 1006, 9563, 9563, 1010, 10061, 10288, 8586, 16161, 2099, 4654, 8586, 16161, 2099, 1007, 1063, 2023, 1012, 4654, 8586, 16161, 2099, 1027, 4654, 8586, 16161, 2099, 30526 ]
import re import hashlib FNAME_MATCH = re.compile(r'/([^/]+)$') # From the last slash to the end of the string PREFIX = re.compile(r'([^:]+://)(/)?(.+)') # Check for a prefix like data:// def getParentAndBase(path): match = PREFIX.match(path) if match is None: if path.endswith('/'): stripped_path = path[:-1] else: stripped_path = path base = FNAME_MATCH.search(stripped_path) if base is None: raise ValueError('Invalid path') parent = FNAME_MATCH.sub('', stripped_path) return parent, base.group(1) else: prefix, leading_slash, uri = match.groups() parts = uri.split('/') parent_path = '/'.join(parts[:-1]) if leading_slash is not None: parent_path = '{prefix}/{uri}'.format(prefix=prefix, uri='/'.join(parts[:-1])) else: parent_path = '{prefix}{uri}'.format(prefix=prefix, uri='/'.join(parts[:-1])) return parent_path, parts[-1] def pathJoin(parent, base): if parent.endswith('/'): return parent + base return parent + '/' + base def md5_for_file(fname): hash_md5 = hashlib.md5() with open(fname, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk) return str(hash_md5.hexdigest()) def md5_for_str(content): hash_md5 = hashlib.md5() hash_md5.update(content.encode()) return str(hash_md5.hexdigest())
algorithmiaio/algorithmia-python
Algorithmia/util.py
Python
mit
1,473
[ 30522, 12324, 2128, 12324, 23325, 29521, 1042, 18442, 1035, 2674, 1027, 2128, 1012, 4012, 22090, 1006, 1054, 1005, 1013, 30524, 1007, 1029, 1006, 1012, 1009, 1007, 1005, 1007, 1001, 4638, 2005, 1037, 17576, 2066, 2951, 1024, 1013, 1013, 13366, 2131, 19362, 4765, 5685, 15058, 1006, 4130, 1007, 1024, 2674, 1027, 17576, 1012, 2674, 1006, 4130, 1007, 2065, 2674, 2003, 3904, 1024, 2065, 4130, 1012, 4515, 24415, 1006, 1005, 1013, 1005, 1007, 1024, 10040, 1035, 4130, 1027, 4130, 1031, 1024, 1011, 1015, 1033, 2842, 1024, 10040, 1035, 4130, 1027, 4130, 2918, 1027, 1042, 18442, 1035, 2674, 1012, 3945, 1006, 10040, 1035, 4130, 1007, 2065, 2918, 2003, 3904, 1024, 5333, 3643, 2121, 29165, 1006, 1005, 19528, 4130, 1005, 1007, 6687, 1027, 1042, 18442, 1035, 2674, 1012, 4942, 1006, 1005, 1005, 1010, 10040, 1035, 4130, 1007, 2709, 6687, 1010, 2918, 1012, 2177, 1006, 1015, 1007, 2842, 1024, 17576, 1010, 2877, 1035, 18296, 1010, 24471, 2072, 1027, 2674, 1012, 2967, 1006, 1007, 3033, 1027, 24471, 2072, 1012, 3975, 1006, 1005, 1013, 1005, 1007, 6687, 1035, 4130, 1027, 1005, 1013, 1005, 1012, 3693, 1006, 3033, 1031, 1024, 1011, 1015, 1033, 1007, 2065, 2877, 1035, 18296, 2003, 2025, 3904, 1024, 6687, 1035, 4130, 1027, 1005, 1063, 17576, 1065, 1013, 1063, 24471, 2072, 1065, 1005, 1012, 4289, 1006, 17576, 1027, 17576, 1010, 24471, 2072, 1027, 1005, 1013, 1005, 1012, 3693, 1006, 3033, 1031, 1024, 1011, 1015, 1033, 1007, 1007, 2842, 1024, 6687, 1035, 4130, 1027, 1005, 1063, 17576, 1065, 1063, 24471, 2072, 1065, 1005, 1012, 4289, 1006, 17576, 1027, 17576, 1010, 24471, 2072, 1027, 1005, 1013, 1005, 1012, 3693, 1006, 3033, 1031, 1024, 1011, 1015, 1033, 1007, 1007, 2709, 6687, 1035, 4130, 1010, 3033, 1031, 1011, 1015, 1033, 13366, 4130, 5558, 2378, 1006, 6687, 1010, 2918, 1007, 1024, 2065, 6687, 1012, 4515, 24415, 1006, 1005, 1013, 1005, 1007, 1024, 2709, 6687, 1009, 2918, 2709, 6687, 1009, 1005, 1013, 1005, 1009, 2918, 13366, 9108, 2629, 1035, 2005, 1035, 5371, 1006, 1042, 18442, 1007, 1024, 23325, 1035, 9108, 2629, 1027, 23325, 29521, 1012, 9108, 2629, 1006, 1007, 2007, 2330, 1006, 1042, 18442, 1010, 1000, 21144, 1000, 1007, 2004, 1042, 1024, 2005, 20000, 1999, 2009, 2121, 1006, 23375, 1024, 1042, 1012, 3191, 1006, 2871, 2683, 2575, 1007, 1010, 1038, 1000, 1000, 1007, 1024, 23325, 1035, 9108, 2629, 1012, 10651, 1006, 20000, 1007, 2709, 2358, 2099, 1006, 23325, 1035, 9108, 2629, 1012, 2002, 2595, 4305, 8449, 2102, 1006, 1007, 1007, 13366, 9108, 2629, 1035, 2005, 1035, 2358, 2099, 1006, 4180, 1007, 1024, 23325, 1035, 9108, 2629, 1027, 23325, 29521, 1012, 9108, 2629, 1006, 1007, 23325, 1035, 9108, 2629, 1012, 10651, 1006, 4180, 1012, 4372, 16044, 1006, 1007, 1007, 2709, 2358, 2099, 1006, 23325, 1035, 9108, 2629, 1012, 2002, 2595, 4305, 8449, 2102, 1006, 1007, 1007, 102, 0, 0, 0, 30523, 1006, 1031, 1034, 1013, 1033, 1009, 1007, 1002, 1005, 1007, 1001, 2013, 1996, 2197, 18296, 2000, 1996, 2203, 1997, 1996, 5164, 17576, 1027, 2128, 1012, 4012, 22090, 1006, 1054, 1005, 1006, 1031, 1034, 1024, 1033, 1009, 1024, 1013, 1013, 1007, 1006, 1013, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 1031, 1034, 1013, 1033, 1009, 1007, 1002, 1005, 1007, 1001, 2013, 1996, 2197, 18296, 2000, 1996, 2203, 1997, 1996, 5164, 17576, 1027, 2128, 1012, 4012, 22090, 1006, 1054, 1005, 1006, 1031, 1034, 1024, 1033, 1009, 1024, 1013, 1013, 1007, 1006, 1013, 30526 ]
import re import uuid from xmodule.assetstore.assetmgr import AssetManager XASSET_LOCATION_TAG = 'c4x' XASSET_SRCREF_PREFIX = 'xasset:' XASSET_THUMBNAIL_TAIL_NAME = '.jpg' STREAM_DATA_CHUNK_SIZE = 1024 import os import logging import StringIO from urlparse import urlparse, urlunparse, parse_qsl from urllib import urlencode from opaque_keys.edx.locator import AssetLocator from opaque_keys.edx.keys import CourseKey, AssetKey from opaque_keys import InvalidKeyError from xmodule.modulestore.exceptions import ItemNotFoundError from xmodule.exceptions import NotFoundError from PIL import Image class StaticContent(object): def __init__(self, loc, name, content_type, data, last_modified_at=None, thumbnail_location=None, import_path=None, length=None, locked=False): self.location = loc self.name = name # a display string which can be edited, and thus not part of the location which needs to be fixed self.content_type = content_type self._data = data self.length = length self.last_modified_at = last_modified_at self.thumbnail_location = thumbnail_location # optional information about where this file was imported from. This is needed to support import/export # cycles self.import_path = import_path self.locked = locked @property def is_thumbnail(self): return self.location.category == 'thumbnail' @staticmethod def generate_thumbnail_name(original_name, dimensions=None): """ - original_name: Name of the asset (typically its location.name) - dimensions: `None` or a tuple of (width, height) in pixels """ name_root, ext = os.path.splitext(original_name) if not ext == XASSET_THUMBNAIL_TAIL_NAME: name_root = name_root + ext.replace(u'.', u'-') if dimensions: width, height = dimensions # pylint: disable=unpacking-non-sequence name_root += "-{}x{}".format(width, height) return u"{name_root}{extension}".format( name_root=name_root, extension=XASSET_THUMBNAIL_TAIL_NAME, ) @staticmethod def compute_location(course_key, path, revision=None, is_thumbnail=False): """ Constructs a location object for static content. - course_key: the course that this asset belongs to - path: is the name of the static asset - revision: is the object's revision information - is_thumbnail: is whether or not we want the thumbnail version of this asset """ path = path.replace('/', '_') return course_key.make_asset_key( 'asset' if not is_thumbnail else 'thumbnail', AssetLocator.clean_keeping_underscores(path) ).for_branch(None) def get_id(self): return self.location @property def data(self): return self._data ASSET_URL_RE = re.compile(r""" /?c4x/ (?P<org>[^/]+)/ (?P<course>[^/]+)/ (?P<category>[^/]+)/ (?P<name>[^/]+) """, re.VERBOSE | re.IGNORECASE) @staticmethod def is_c4x_path(path_string): """ Returns a boolean if a path is believed to be a c4x link based on the leading element """ return StaticContent.ASSET_URL_RE.match(path_string) is not None @staticmethod def get_static_path_from_location(location): """ This utility static method will take a location identifier and create a 'durable' /static/.. URL representation of it. This link is 'durable' as it can maintain integrity across cloning of courseware across course-ids, e.g. reruns of courses. In the LMS/CMS, we have runtime link-rewriting, so at render time, this /static/... format will get translated into the actual /c4x/... path which the client needs to reference static content """ if location is not None: return u"/static/{name}".format(name=location.name) else: return None @staticmethod def get_base_url_path_for_course_assets(course_key): if course_key is None: return None assert isinstance(course_key, CourseKey) placeholder_id = uuid.uuid4().hex # create a dummy asset location with a fake but unique name. strip off the name, and return it url_path = StaticContent.serialize_asset_key_with_slash( course_key.make_asset_key('asset', placeholder_id).for_branch(None) ) return url_path.replace(placeholder_id, '') @staticmethod def get_location_from_path(path): """ Generate an AssetKey for the given path (old c4x/org/course/asset/name syntax) """ try: return AssetKey.from_string(path) except InvalidKeyError: # TODO - re-address this once LMS-11198 is tackled. if path.startswith('/'): # try stripping off the leading slash and try again return AssetKey.from_string(path[1:]) @staticmethod def get_asset_key_from_path(course_key, path): """ Parses a path, extracting an asset key or creating one. Args: course_key: key to the course which owns this asset path: the path to said content Returns: AssetKey: the asset key that represents the path """ # Clean up the path, removing any static prefix and any leading slash. if path.startswith('/static/'): path = path[len('/static/'):] path = path.lstrip('/') try: return AssetKey.from_string(path) except InvalidKeyError: # If we couldn't parse the path, just let compute_location figure it out. # It's most likely a path like /image.png or something. return StaticContent.compute_location(course_key, path) @staticmethod def get_canonicalized_asset_path(course_key, path, base_url): """ Returns a fully-qualified path to a piece of static content. If a static asset CDN is configured, this path will include it. Otherwise, the path will simply be relative. Args: course_key: key to the course which owns this asset path: the path to said content Returns: string: fully-qualified path to asset """ # Break down the input path. _, _, relative_path, params, query_string, fragment = urlparse(path) # Convert our path to an asset key if it isn't one already. asset_key = StaticContent.get_asset_key_from_path(course_key, relative_path) # Check the status of the asset to see if this can be served via CDN aka publicly. serve_from_cdn = False try: content = AssetManager.find(asset_key, as_stream=True) is_locked = getattr(content, "locked", True) serve_from_cdn = not is_locked except (ItemNotFoundError, NotFoundError): # If we can't find the item, just treat it as if it's locked. serve_from_cdn = False # Update any query parameter values that have asset paths in them. This is for assets that # require their own after-the-fact values, like a Flash file that needs the path of a config # file passed to it e.g. /static/visualization.swf?configFile=/static/visualization.xml query_params = parse_qsl(query_string) updated_query_params = [] for query_name, query_value in query_params: if query_value.startswith("/static/"): new_query_value = StaticContent.get_canonicalized_asset_path(course_key, query_value, base_url) updated_query_params.append((query_name, new_query_value)) else: updated_query_params.append((query_name, query_value)) serialized_asset_key = StaticContent.serialize_asset_key_with_slash(asset_key) base_url = base_url if serve_from_cdn else '' return urlunparse((None, base_url, serialized_asset_key, params, urlencode(updated_query_params), fragment)) def stream_data(self): yield self._data @staticmethod def serialize_asset_key_with_slash(asset_key): """ Legacy code expects the serialized asset key to start w/ a slash; so, do that in one place :param asset_key: """ url = unicode(asset_key) if not url.startswith('/'): url = '/' + url # TODO - re-address this once LMS-11198 is tackled. return url class StaticContentStream(StaticContent): def __init__(self, loc, name, content_type, stream, last_modified_at=None, thumbnail_location=None, import_path=None, length=None, locked=False): super(StaticContentStream, self).__init__(loc, name, content_type, None, last_modified_at=last_modified_at, thumbnail_location=thumbnail_location, import_path=import_path, length=length, locked=locked) self._stream = stream def stream_data(self): while True: chunk = self._stream.read(STREAM_DATA_CHUNK_SIZE) if len(chunk) == 0: break yield chunk def stream_data_in_range(self, first_byte, last_byte): """ Stream the data between first_byte and last_byte (included) """ self._stream.seek(first_byte) position = first_byte while True: if last_byte < position + STREAM_DATA_CHUNK_SIZE - 1: chunk = self._stream.read(last_byte - position + 1) yield chunk break chunk = self._stream.read(STREAM_DATA_CHUNK_SIZE) position += STREAM_DATA_CHUNK_SIZE yield chunk def close(self): self._stream.close() def copy_to_in_mem(self): self._stream.seek(0) content = StaticContent(self.location, self.name, self.content_type, self._stream.read(), last_modified_at=self.last_modified_at, thumbnail_location=self.thumbnail_location, import_path=self.import_path, length=self.length, locked=self.locked) return content class ContentStore(object): ''' Abstraction for all ContentStore providers (e.g. MongoDB) ''' def save(self, content): raise NotImplementedError def find(self, filename): raise NotImplementedError def get_all_content_for_course(self, course_key, start=0, maxresults=-1, sort=None, filter_params=None): ''' Returns a list of static assets for a course, followed by the total number of assets. By default all assets are returned, but start and maxresults can be provided to limit the query. The return format is a list of asset data dictionaries. The asset data dictionaries have the following keys: asset_key (:class:`opaque_keys.edx.AssetKey`): The key of the asset displayname: The human-readable name of the asset uploadDate (datetime.datetime): The date and time that the file was uploadDate contentType: The mimetype string of the asset md5: An md5 hash of the asset content ''' raise NotImplementedError def delete_all_course_assets(self, course_key): """ Delete all of the assets which use this course_key as an identifier :param course_key: """ raise NotImplementedError def copy_all_course_assets(self, source_course_key, dest_course_key): """ Copy all the course assets from source_course_key to dest_course_key """ raise NotImplementedError def generate_thumbnail(self, content, tempfile_path=None, dimensions=None): """Create a thumbnail for a given image. Returns a tuple of (StaticContent, AssetKey) `content` is the StaticContent representing the image you want to make a thumbnail out of. `tempfile_path` is a string path to the location of a file to read from in order to grab the image data, instead of relying on `content.data` `dimensions` is an optional param that represents (width, height) in pixels. It defaults to None. """ thumbnail_content = None # use a naming convention to associate originals with the thumbnail thumbnail_name = StaticContent.generate_thumbnail_name( content.location.name, dimensions=dimensions ) thumbnail_file_location = StaticContent.compute_location( content.location.course_key, thumbnail_name, is_thumbnail=True ) # if we're uploading an image, then let's generate a thumbnail so that we can # serve it up when needed without having to rescale on the fly if content.content_type is not None and content.content_type.split('/')[0] == 'image': try: # use PIL to do the thumbnail generation (http://www.pythonware.com/products/pil/) # My understanding is that PIL will maintain aspect ratios while restricting # the max-height/width to be whatever you pass in as 'size' # @todo: move the thumbnail size to a configuration setting?!? if tempfile_path is None: im = Image.open(StringIO.StringIO(content.data)) else: im = Image.open(tempfile_path) # I've seen some exceptions from the PIL library when trying to save palletted # PNG files to JPEG. Per the google-universe, they suggest converting to RGB first. im = im.convert('RGB') if not dimensions: dimensions = (128, 128) im.thumbnail(dimensions, Image.ANTIALIAS) thumbnail_file = StringIO.StringIO() im.save(thumbnail_file, 'JPEG') thumbnail_file.seek(0) # store this thumbnail as any other piece of content thumbnail_content = StaticContent(thumbnail_file_location, thumbnail_name, 'image/jpeg', thumbnail_file) self.save(thumbnail_content) except Exception, e: # log and continue as thumbnails are generally considered as optional logging.exception(u"Failed to generate thumbnail for {0}. Exception: {1}".format(content.location, str(e))) return thumbnail_content, thumbnail_file_location def ensure_indexes(self): """ Ensure that all appropriate indexes are created that are needed by this modulestore, or raise an exception if unable to. """ pass
MakeHer/edx-platform
common/lib/xmodule/xmodule/contentstore/content.py
Python
agpl-3.0
14,964
[ 30522, 12324, 2128, 12324, 1057, 21272, 2013, 1060, 5302, 8566, 2571, 1012, 7045, 19277, 1012, 11412, 24798, 2099, 12324, 11412, 24805, 4590, 1060, 27241, 2102, 1035, 3295, 1035, 6415, 1027, 1005, 1039, 2549, 2595, 1005, 1060, 27241, 2102, 1035, 5034, 16748, 2546, 1035, 17576, 1027, 1005, 1060, 27241, 2102, 1024, 1005, 1060, 27241, 2102, 1035, 7639, 25464, 1035, 5725, 1035, 2171, 1027, 1005, 1012, 16545, 2290, 1005, 5460, 1035, 2951, 1035, 20000, 1035, 2946, 1027, 9402, 2549, 12324, 9808, 12324, 15899, 12324, 5164, 3695, 2013, 24471, 14277, 11650, 2063, 12324, 24471, 14277, 11650, 2063, 1010, 24471, 26896, 19362, 3366, 1010, 11968, 3366, 1035, 1053, 14540, 2013, 24471, 6894, 2497, 12324, 24471, 7770, 16044, 2013, 28670, 1035, 6309, 1012, 3968, 2595, 1012, 8840, 11266, 2953, 12324, 11412, 4135, 11266, 2953, 2013, 28670, 1035, 6309, 1012, 3968, 2595, 1012, 6309, 12324, 2607, 14839, 1010, 11412, 14839, 2013, 28670, 1035, 6309, 12324, 19528, 14839, 2121, 29165, 2013, 1060, 5302, 8566, 2571, 1012, 14184, 19277, 1012, 11790, 12324, 8875, 17048, 14876, 20824, 29165, 2013, 1060, 5302, 8566, 2571, 1012, 11790, 12324, 2025, 14876, 20824, 29165, 2013, 14255, 2140, 12324, 3746, 2465, 10763, 8663, 6528, 2102, 1006, 4874, 1007, 1024, 13366, 1035, 1035, 1999, 4183, 1035, 1035, 1006, 2969, 1010, 8840, 2278, 1010, 2171, 1010, 4180, 1035, 2828, 1010, 2951, 1010, 2197, 1035, 6310, 1035, 2012, 1027, 3904, 1010, 7639, 25464, 1035, 3295, 1027, 3904, 1010, 12324, 1035, 4130, 1027, 3904, 1010, 3091, 1027, 3904, 1010, 5299, 1027, 6270, 1007, 1024, 2969, 1012, 3295, 1027, 8840, 2278, 2969, 1012, 2171, 1027, 2171, 1001, 1037, 4653, 5164, 2029, 2064, 2022, 5493, 1010, 1998, 2947, 2025, 2112, 1997, 1996, 3295, 2029, 3791, 2000, 2022, 4964, 2969, 1012, 4180, 1035, 2828, 1027, 4180, 1035, 2828, 2969, 1012, 1035, 2951, 1027, 2951, 2969, 1012, 3091, 1027, 3091, 2969, 1012, 2197, 1035, 6310, 1035, 2012, 1027, 2197, 1035, 6310, 1035, 2012, 2969, 1012, 7639, 25464, 1035, 3295, 1027, 7639, 25464, 1035, 3295, 1001, 11887, 2592, 2055, 2073, 2023, 5371, 2001, 10964, 2013, 1012, 2023, 2003, 2734, 2000, 2490, 12324, 1013, 9167, 1001, 12709, 2969, 1012, 12324, 1035, 4130, 1027, 12324, 1035, 4130, 2969, 1012, 5299, 1027, 5299, 1030, 3200, 13366, 2003, 1035, 7639, 25464, 1006, 2969, 1007, 1024, 2709, 2969, 1012, 3295, 1012, 4696, 1027, 1027, 1005, 7639, 25464, 1005, 1030, 10763, 11368, 6806, 2094, 13366, 9699, 1035, 7639, 25464, 1035, 2171, 1006, 2434, 1035, 2171, 1010, 9646, 1027, 30524, 1999, 27725, 1000, 1000, 1000, 2171, 1035, 7117, 1010, 4654, 2102, 1027, 9808, 1012, 4130, 1012, 3975, 10288, 2102, 1006, 2434, 1035, 2171, 1007, 2065, 2025, 4654, 2102, 1027, 1027, 1060, 27241, 2102, 1035, 7639, 25464, 1035, 5725, 1035, 2171, 1024, 2171, 1035, 7117, 1027, 2171, 1035, 7117, 1009, 4654, 2102, 1012, 5672, 1006, 1057, 1005, 1012, 1005, 1010, 1057, 1005, 1011, 30523, 3904, 1007, 1024, 1000, 1000, 1000, 1011, 2434, 1035, 2171, 1024, 2171, 1997, 1996, 11412, 1006, 4050, 2049, 3295, 1012, 2171, 1007, 1011, 9646, 1024, 1036, 3904, 1036, 2030, 1037, 10722, 10814, 1997, 1006, 9381, 1010, 4578, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3904, 1007, 1024, 1000, 1000, 1000, 1011, 2434, 1035, 2171, 1024, 2171, 1997, 1996, 11412, 1006, 4050, 2049, 3295, 1012, 2171, 1007, 1011, 9646, 1024, 1036, 3904, 1036, 2030, 1037, 10722, 10814, 1997, 1006, 9381, 1010, 4578, 1007, 30526 ]
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ package im.actor.core.js; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; import com.google.gwt.http.client.URL; import com.google.gwt.i18n.client.LocaleInfo; import com.google.gwt.i18n.client.TimeZone; import com.google.gwt.user.client.Event; import im.actor.core.*; import im.actor.core.api.ApiAuthSession; import im.actor.core.api.ApiDialog; import im.actor.core.api.rpc.ResponseLoadArchived; import im.actor.core.entity.BotCommand; import im.actor.core.entity.EntityConverter; import im.actor.core.entity.MentionFilterResult; import im.actor.core.entity.MessageSearchEntity; import im.actor.core.entity.Peer; import im.actor.core.entity.PeerSearchEntity; import im.actor.core.entity.PeerSearchType; import im.actor.core.entity.PeerType; import im.actor.core.entity.User; import im.actor.core.js.annotations.UsedByApp; import im.actor.core.js.entity.*; import im.actor.core.js.modules.JsBindedValueCallback; import im.actor.core.js.providers.JsNotificationsProvider; import im.actor.core.js.providers.JsPhoneBookProvider; import im.actor.core.js.providers.JsCallsProvider; import im.actor.core.js.providers.electron.JsElectronApp; import im.actor.core.js.utils.HtmlMarkdownUtils; import im.actor.core.js.utils.IdentityUtils; import im.actor.core.network.RpcCallback; import im.actor.core.network.RpcException; import im.actor.core.viewmodel.CommandCallback; import im.actor.core.viewmodel.UserVM; import im.actor.runtime.Log; import im.actor.runtime.Storage; import im.actor.runtime.actors.messages.*; import im.actor.runtime.actors.messages.Void; import im.actor.runtime.function.Consumer; import im.actor.runtime.js.JsFileSystemProvider; import im.actor.runtime.js.JsLogProvider; import im.actor.runtime.js.fs.JsBlob; import im.actor.runtime.js.fs.JsFile; import im.actor.runtime.js.mvvm.JsDisplayListCallback; import im.actor.runtime.js.utils.JsPromise; import im.actor.runtime.js.utils.JsPromiseDispatcher; import im.actor.runtime.js.utils.JsPromiseExecutor; import im.actor.runtime.markdown.MarkdownParser; import org.timepedia.exporter.client.Export; import org.timepedia.exporter.client.ExportPackage; import org.timepedia.exporter.client.Exportable; import java.util.ArrayList; import java.util.Date; import java.util.List; @ExportPackage("actor") @Export("ActorApp") @UsedByApp public class JsFacade implements Exportable { private static final String TAG = "JsMessenger"; private static final String APP_NAME = "Actor Web App"; private static final int APP_ID = 3; private static final String APP_KEY = "278f13e07eee8398b189bced0db2cf66703d1746e2b541d85f5b42b1641aae0e"; private JsMessenger messenger; private JsFileSystemProvider provider; private Peer lastVisiblePeer; @Export @UsedByApp public JsFacade() { } @UsedByApp public void init(JsConfig config) { provider = (JsFileSystemProvider) Storage.getFileSystemRuntime(); String clientName = IdentityUtils.getClientName(); String uniqueId = IdentityUtils.getUniqueId(); ConfigurationBuilder configuration = new ConfigurationBuilder(); configuration.setApiConfiguration(new ApiConfiguration(APP_NAME, APP_ID, APP_KEY, clientName, uniqueId)); configuration.setPhoneBookProvider(new JsPhoneBookProvider()); configuration.setNotificationProvider(new JsNotificationsProvider()); configuration.setCallsProvider(new JsCallsProvider()); // Setting locale String locale = LocaleInfo.getCurrentLocale().getLocaleName(); if (locale.equals("default")) { Log.d(TAG, "Default locale found"); configuration.addPreferredLanguage("en"); } else { Log.d(TAG, "Locale found:" + locale); configuration.addPreferredLanguage(locale.toLowerCase()); } // Setting timezone int offset = new Date().getTimezoneOffset(); String timeZone = TimeZone.createTimeZone(offset).getID(); Log.d(TAG, "TimeZone found:" + timeZone + " for delta " + offset); configuration.setTimeZone(timeZone); // LocaleInfo.getCurrentLocale().getLocaleName() // Is Web application configuration.setPlatformType(PlatformType.WEB); // Device Category // Only Desktop is supported for JS library configuration.setDeviceCategory(DeviceCategory.DESKTOP); // Adding endpoints for (String endpoint : config.getEndpoints()) { configuration.addEndpoint(endpoint); } if (config.getLogHandler() != null) { final JsLogCallback callback = config.getLogHandler(); JsLogProvider.setLogCallback(new JsLogProvider.LogCallback() { @Override public void log(String tag, String level, String message) { callback.log(tag, level, message); } }); } messenger = new JsMessenger(configuration.build()); Log.d(TAG, "JsMessenger created"); } @UsedByApp public boolean isLoggedIn() { return messenger.isLoggedIn(); } @UsedByApp public int getUid() { return messenger.myUid(); } @UsedByApp public boolean isElectron() { return messenger.isElectron(); } // Auth @UsedByApp public String getAuthState() { return Enums.convert(messenger.getAuthState()); } @UsedByApp public String getAuthPhone() { return "" + messenger.getAuthPhone(); } @UsedByApp public void requestSms(String phone, final JsAuthSuccessClosure success, final JsAuthErrorClosure error) { try { long res = Long.parseLong(phone); messenger.requestStartPhoneAuth(res).start(new CommandCallback<AuthState>() { @Override public void onResult(AuthState res) { success.onResult(Enums.convert(res)); } @Override public void onError(Exception e) { String tag = "INTERNAL_ERROR"; String message = "Internal error"; boolean canTryAgain = false; if (e instanceof RpcException) { tag = ((RpcException) e).getTag(); message = e.getMessage(); canTryAgain = ((RpcException) e).isCanTryAgain(); } error.onError(tag, message, canTryAgain, getAuthState()); } }); } catch (Exception e) { Log.e(TAG, e); im.actor.runtime.Runtime.postToMainThread(new Runnable() { @Override public void run() { error.onError("PHONE_NUMBER_INVALID", "Invalid phone number", false, getAuthState()); } }); } } @UsedByApp public void requestCodeEmail(String email, final JsAuthSuccessClosure success, final JsAuthErrorClosure error) { messenger.requestStartEmailAuth(email).start(new CommandCallback<AuthState>() { @Override public void onResult(AuthState res) { success.onResult(Enums.convert(res)); } @Override public void onError(Exception e) { String tag = "INTERNAL_ERROR"; String message = "Internal error"; boolean canTryAgain = false; if (e instanceof RpcException) { tag = ((RpcException) e).getTag(); message = e.getMessage(); canTryAgain = ((RpcException) e).isCanTryAgain(); } error.onError(tag, message, canTryAgain, getAuthState()); } }); } @UsedByApp public void sendCode(String code, final JsAuthSuccessClosure success, final JsAuthErrorClosure error) { try { messenger.validateCode(code).start(new CommandCallback<AuthState>() { @Override public void onResult(AuthState res) { success.onResult(Enums.convert(res)); } @Override public void onError(Exception e) { String tag = "INTERNAL_ERROR"; String message = "Internal error"; boolean canTryAgain = false; if (e instanceof RpcException) { tag = ((RpcException) e).getTag(); message = e.getMessage(); canTryAgain = ((RpcException) e).isCanTryAgain(); } error.onError(tag, message, canTryAgain, getAuthState()); } }); } catch (Exception e) { Log.e(TAG, e); im.actor.runtime.Runtime.postToMainThread(new Runnable() { @Override public void run() { error.onError("PHONE_CODE_INVALID", "Invalid code number", false, getAuthState()); } }); } } @UsedByApp public void signUp(String name, final JsAuthSuccessClosure success, final JsAuthErrorClosure error) { messenger.signUp(name, null, null).start(new CommandCallback<AuthState>() { @Override public void onResult(AuthState res) { success.onResult(Enums.convert(res)); } @Override public void onError(Exception e) { String tag = "INTERNAL_ERROR"; String message = "Internal error"; boolean canTryAgain = false; if (e instanceof RpcException) { tag = ((RpcException) e).getTag(); message = e.getMessage(); canTryAgain = ((RpcException) e).isCanTryAgain(); } error.onError(tag, message, canTryAgain, getAuthState()); } }); } @UsedByApp public JsPromise loadSessions() { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.loadSessions().start(new CommandCallback<List<ApiAuthSession>>() { @Override public void onResult(List<ApiAuthSession> res) { JsArray<JsAuthSession> jsSessions = JsArray.createArray().cast(); for (ApiAuthSession session : res) { jsSessions.push(JsAuthSession.create(session)); } resolve(jsSessions); } @Override public void onError(Exception e) { Log.e(TAG, e); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise terminateSession(final int id) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.terminateSession(id).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { resolve(); } @Override public void onError(Exception e) { Log.e(TAG, e); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise terminateAllSessions() { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.terminateAllSessions().start(new CommandCallback<Void>() { @Override public void onResult(Void res) { resolve(); } @Override public void onError(Exception e) { Log.e(TAG, e); reject(e.getMessage()); } }); } }); } // Dialogs @UsedByApp public void bindDialogs(JsDisplayListCallback<JsDialog> callback) { if (callback == null) { return; } messenger.getSharedDialogList().subscribe(callback, false); } @UsedByApp public void unbindDialogs(JsDisplayListCallback<JsDialog> callback) { if (callback == null) { return; } messenger.getSharedDialogList().unsubscribe(callback); } @UsedByApp public void bindGroupDialogs(JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getDialogsGroupedList().subscribe(callback); } @UsedByApp public void unbindGroupDialogs(JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getDialogsGroupedList().unsubscribe(callback); } // Contacts @UsedByApp public void bindContacts(JsDisplayListCallback<JsContact> callback) { if (callback == null) { return; } messenger.getSharedContactList().subscribe(callback, true); } @UsedByApp public void unbindContacts(JsDisplayListCallback<JsContact> callback) { if (callback == null) { return; } messenger.getSharedContactList().unsubscribe(callback); } // Search @UsedByApp public void bindSearch(JsDisplayListCallback<JsSearchEntity> callback) { if (callback == null) { return; } messenger.getSharedSearchList().subscribe(callback, false); } @UsedByApp public void unbindSearch(JsDisplayListCallback<JsSearchEntity> callback) { if (callback == null) { return; } messenger.getSharedSearchList().unsubscribe(callback); } // Chats @UsedByApp public void preInitChat(JsPeer peer) { messenger.onConversationPreLoad(peer.convert()); } @UsedByApp public JsMessagesBind bindMessages(JsPeer peer, JsMessagesBindClosure callback) { if (callback == null) { return null; } Peer peerC = peer.convert(); return new JsMessagesBind(callback, messenger.getSharedChatList(peerC), messenger.getConversationVM(peerC)); } public JsPromise editMessage(JsPeer peer, String id, String newText) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.updateMessage(peer.convert(), newText, Long.parseLong(id)).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { resolve(); } @Override public void onError(Exception e) { reject(e.getMessage()); } }); } }); } @UsedByApp public void deleteMessage(JsPeer peer, String id) { messenger.deleteMessages(peer.convert(), new long[]{Long.parseLong(id)}); } @UsedByApp public JsPromise deleteChat(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.deleteChat(peer.convert()).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "deleteChat:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "deleteChat:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise clearChat(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.clearChat(peer.convert()).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "clearChat:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "clearChat:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise archiveChat(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.archiveChat(peer.convert()).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "archiveChat:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "archiveChat:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise favoriteChat(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.favouriteChat(peer.convert()).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "favouriteChat:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "favouriteChat:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise unfavoriteChat(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.unfavoriteChat(peer.convert()).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "unfavouriteChat:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "unfavouriteChat:error"); reject(e.getMessage()); } }); } }); } // Peers @UsedByApp public JsPeer getUserPeer(int uid) { return JsPeer.create(Peer.user(uid)); } @UsedByApp public JsPeer getGroupPeer(int gid) { return JsPeer.create(Peer.group(gid)); } // Stickers @UsedByApp public JsArray<JsSticker> getStickers() { return messenger.getStickers().get(); } @UsedByApp public void bindStickers(JsBindedValueCallback callback) { messenger.getStickers().subscribe(callback); } @UsedByApp public void unbindStickers(JsBindedValueCallback callback) { messenger.getStickers().unsubscribe(callback); } // Users @UsedByApp public JsUser getUser(int uid) { return messenger.getJsUser(uid).get(); } @UsedByApp public void bindUser(int uid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsUser(uid).subscribe(callback); } @UsedByApp public void unbindUser(int uid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsUser(uid).unsubscribe(callback); } @UsedByApp public void bindUserOnline(int uid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsUserOnline(uid).subscribe(callback); } @UsedByApp public void unbindUserOnline(int uid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsUserOnline(uid).unsubscribe(callback); } @UsedByApp public void bindUserBlocked(int uid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsUserBlocked(uid).subscribe(callback); } @UsedByApp public void unbindUserBlocked(int uid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsUserBlocked(uid).unsubscribe(callback); } @UsedByApp public JsPromise blockUser(final int uid) { return JsPromise.from(messenger.blockUser(uid)); } @UsedByApp public JsPromise unblockUser(final int uid) { return JsPromise.from(messenger.unblockUser(uid)); } @UsedByApp public JsPromise isStarted(final int uid) { return JsPromise.from(messenger.isStarted(uid)); } // Groups @UsedByApp public JsGroup getGroup(int gid) { return messenger.getJsGroup(gid).get(); } @UsedByApp public void bindGroup(int gid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsGroup(gid).subscribe(callback); } @UsedByApp public void unbindGroup(int gid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsGroup(gid).unsubscribe(callback); } @UsedByApp public void bindGroupOnline(int gid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsGroupOnline(gid).subscribe(callback); } @UsedByApp public void unbindGroupOnline(int gid, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsGroupOnline(gid).unsubscribe(callback); } // Calls @UsedByApp public JsPromise doCall(final int uid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.doCall(uid).start(new CommandCallback<Long>() { @Override public void onResult(Long res) { Log.d(TAG, "doCall:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "doCall:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise doGroupCall(final int gid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.doGroupCall(gid).start(new CommandCallback<Long>() { @Override public void onResult(Long res) { Log.d(TAG, "doGroupCall:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "doGroupCall:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public void answerCall(String callId) { messenger.answerCall(Long.parseLong(callId)); } @UsedByApp public void endCall(String callId) { messenger.endCall(Long.parseLong(callId)); } @UsedByApp public void toggleCallMute(String callId) { messenger.toggleCallMute(Long.parseLong(callId)); } @UsedByApp public void bindCall(String id, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsCall(id).subscribe(callback); } @UsedByApp public void unbindCall(String id, JsBindedValueCallback callback) { if (callback == null) { return; } messenger.getJsCall(id).unsubscribe(callback); } // Event Bus @UsedByApp public void bindEventBus(JsEventBusCallback callback) { if (callback == null) { return; } messenger.subscribeEventBus(callback); } @UsedByApp public void unbindEventBus(JsEventBusCallback callback) { if (callback == null) { return; } messenger.unsubscribeEventBus(callback); } // Actions @UsedByApp public void sendMessage(JsPeer peer, String text) { messenger.sendMessageWithMentionsDetect(peer.convert(), text); } @UsedByApp public void sendFile(JsPeer peer, JsFile file) { String descriptor = provider.registerUploadFile(file); messenger.sendDocument(peer.convert(), file.getName(), file.getMimeType(), descriptor); } @UsedByApp public void sendPhoto(final JsPeer peer, final JsFile file) { messenger.sendPhoto(peer.convert(), file); } @UsedByApp public void sendAnimation(final JsPeer peer, final JsFile file) { messenger.sendAnimation(peer.convert(), file); } @UsedByApp public void sendClipboardPhoto(final JsPeer peer, final JsBlob blob) { messenger.sendClipboardPhoto(peer.convert(), blob); } @UsedByApp public void sendVoiceMessage(final JsPeer peer, int duration, final JsBlob blob) { String descriptor = provider.registerUploadFile(blob); messenger.sendAudio(peer.convert(), "voice.opus", duration, descriptor); } @UsedByApp public void sendSticker(JsPeer peer, JsSticker sticker) { messenger.sendSticker(peer.convert(), sticker.getSticker()); } // Drafts @UsedByApp public void saveDraft(JsPeer peer, String text) { messenger.saveDraft(peer.convert(), text); } @UsedByApp public String loadDraft(JsPeer peer) { return messenger.loadDraft(peer.convert()); } @UsedByApp public JsArray<JsMentionFilterResult> findMentions(int gid, String query) { List<MentionFilterResult> res = messenger.findMentions(gid, query); JsArray<JsMentionFilterResult> mentions = JsArray.createArray().cast(); for (MentionFilterResult m : res) { mentions.push(JsMentionFilterResult.create(m)); } return mentions; } @UsedByApp public JsArray<JsBotCommand> findBotCommands(int uid, String query) { JsArray<JsBotCommand> commands = JsArray.createArray().cast(); for (BotCommand c : messenger.getUser(uid).getBotCommands().get()) { if (c.getSlashCommand().startsWith(query)) { commands.push(JsBotCommand.create(c.getSlashCommand(), c.getDescription())); } } return commands; } // Typing @UsedByApp public void onTyping(JsPeer peer) { messenger.onTyping(peer.convert()); } @UsedByApp public JsTyping getTyping(JsPeer peer) { return messenger.getTyping(peer.convert()).get(); } @UsedByApp public void bindTyping(JsPeer peer, JsBindedValueCallback callback) { messenger.getTyping(peer.convert()).subscribe(callback); } @UsedByApp public void unbindTyping(JsPeer peer, JsBindedValueCallback callback) { messenger.getTyping(peer.convert()).unsubscribe(callback); } // Updating state @UsedByApp public void bindConnectState(JsBindedValueCallback callback) { messenger.getOnlineStatus().subscribe(callback); } @UsedByApp public void unbindConnectState(JsBindedValueCallback callback) { messenger.getOnlineStatus().unsubscribe(callback); } @UsedByApp public void bindGlobalCounter(JsBindedValueCallback callback) { messenger.getGlobalCounter().subscribe(callback); } @UsedByApp public void unbindGlobalCounter(JsBindedValueCallback callback) { messenger.getGlobalCounter().unsubscribe(callback); } @UsedByApp public void bindTempGlobalCounter(JsBindedValueCallback callback) { messenger.getTempGlobalCounter().subscribe(callback); } @UsedByApp public void unbindTempGlobalCounter(JsBindedValueCallback callback) { messenger.getTempGlobalCounter().unsubscribe(callback); } // Events @UsedByApp public void onAppVisible() { // Ignore for electron runtime if (isElectron()) { return; } messenger.getJsIdleModule().onVisible(); } @UsedByApp public void onAppHidden() { // Ignore for electron runtime if (isElectron()) { return; } messenger.getJsIdleModule().onHidden(); } @UsedByApp public void onConversationOpen(JsPeer peer) { Log.d(TAG, "onConversationOpen | " + peer); lastVisiblePeer = peer.convert(); messenger.onConversationOpen(lastVisiblePeer); onUserVisible(peer); } @UsedByApp public void onConversationClosed(JsPeer peer) { Log.d(TAG, "onConversationClosed | " + peer); if (lastVisiblePeer != null && lastVisiblePeer.equals(peer.convert())) { lastVisiblePeer = null; Log.d(TAG, "onConversationClosed | Closing"); } messenger.onConversationClosed(peer.convert()); } @UsedByApp public void onUserVisible(JsPeer peer) { if (peer.convert().getPeerType() == PeerType.PRIVATE) { messenger.onUserVisible(peer.getPeerId()); } } @UsedByApp public void onDialogsOpen() { messenger.onDialogsOpen(); } @UsedByApp public void onDialogsClosed() { messenger.onDialogsClosed(); } @UsedByApp public void onProfileOpen(int uid) { messenger.onProfileOpen(uid); } @UsedByApp public void onProfileClosed(int uid) { messenger.onProfileClosed(uid); } @UsedByApp public void onDialogsEnd() { messenger.loadMoreDialogs(); } @UsedByApp public JsPromise loadArchivedDialogs() { return loadArchivedDialogs(true); } @UsedByApp public JsPromise loadMoreArchivedDialogs() { return loadArchivedDialogs(false); } @UsedByApp private JsPromise loadArchivedDialogs(final boolean init) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.loadArchivedDialogs(init, new RpcCallback<ResponseLoadArchived>() { @Override public void onResult(ResponseLoadArchived response) { JsArray<JsDialogShort> res = JsArray.createArray().cast(); for (ApiDialog d : response.getDialogs()) { res.push(JsDialogShort.create(messenger.buildPeerInfo(EntityConverter.convert(d.getPeer())), d.getUnreadCount())); } Log.d(TAG, "loadArchivedDialogs:result"); resolve(res); } @Override public void onError(RpcException e) { Log.d(TAG, "loadArchivedDialogs:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise loadBlockedUsers() { return JsPromise.from(messenger.loadBlockedUsers() .map(users -> { JsArray<JsUser> res = JsArray.createArray().cast(); for (User u : users) { res.push(getUser(u.getUid())); } return res; }) ); } @UsedByApp public void onChatEnd(JsPeer peer) { messenger.loadMoreHistory(peer.convert()); } // Profile @UsedByApp public JsPromise editMyName(final String newName) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.editMyName(newName).start(new CommandCallback<Boolean>() { @Override public void onResult(Boolean res) { Log.d(TAG, "editMyName:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "editMyName:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise editMyNick(final String newNick) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.editMyNick(newNick).start(new CommandCallback<Boolean>() { @Override public void onResult(Boolean res) { Log.d(TAG, "editMyNick:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "editMyNick:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise editMyAbout(final String newAbout) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.editMyAbout(newAbout).start(new CommandCallback<Boolean>() { @Override public void onResult(Boolean res) { Log.d(TAG, "editMyAbout:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "editMyAbout:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise findAllText(final JsPeer peer, final String query) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.findTextMessages(peer.convert(), query).start(new CommandCallback<List<MessageSearchEntity>>() { @Override public void onResult(List<MessageSearchEntity> res) { resolve(convertSearchRes(res)); } @Override public void onError(Exception e) { Log.d(TAG, "findAllText:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise findAllPhotos(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.findAllPhotos(peer.convert()).start(new CommandCallback<List<MessageSearchEntity>>() { @Override public void onResult(List<MessageSearchEntity> res) { resolve(convertSearchRes(res)); } @Override public void onError(Exception e) { Log.d(TAG, "findAllText:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise findAllDocs(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.findAllDocs(peer.convert()).start(new CommandCallback<List<MessageSearchEntity>>() { @Override public void onResult(List<MessageSearchEntity> res) { resolve(convertSearchRes(res)); } @Override public void onError(Exception e) { Log.d(TAG, "findAllText:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise findAllLinks(final JsPeer peer) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.findAllLinks(peer.convert()).start(new CommandCallback<List<MessageSearchEntity>>() { @Override public void onResult(List<MessageSearchEntity> res) { resolve(convertSearchRes(res)); } @Override public void onError(Exception e) { Log.d(TAG, "findAllText:error"); reject(e.getMessage()); } }); } }); } private JsArray<JsMessageSearchEntity> convertSearchRes(List<MessageSearchEntity> res) { JsArray<JsMessageSearchEntity> jsRes = JsArray.createArray().cast(); for (MessageSearchEntity e : res) { jsRes.push(JsMessageSearchEntity.create(e.getRid() + "", messenger.buildPeerInfo(Peer.user(e.getSenderId())), messenger.getFormatter().formatDate(e.getDate()), JsContent.createContent(e.getContent(), e.getSenderId()))); } return jsRes; } @UsedByApp public JsPromise findGroups() { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.findPeers(PeerSearchType.GROUPS).start(new CommandCallback<List<PeerSearchEntity>>() { @Override public void onResult(List<PeerSearchEntity> res) { Log.d(TAG, "findGroups:result"); JsArray<JsPeerSearchResult> jsRes = JsArray.createArray().cast(); for (PeerSearchEntity s : res) { if (s.getPeer().getPeerType() == PeerType.GROUP) { jsRes.push(JsPeerSearchResult.create(messenger.buildPeerInfo(s.getPeer()), s.getDescription(), s.getMembersCount(), (int) (s.getDate() / 1000L), messenger.buildPeerInfo(Peer.user(s.getCreatorUid())), s.isPublic(), s.isJoined())); } else if (s.getPeer().getPeerType() == PeerType.PRIVATE) { jsRes.push(JsPeerSearchResult.create(messenger.buildPeerInfo(s.getPeer()))); } // jsRes.push(); } resolve(jsRes); } @Override public void onError(Exception e) { Log.d(TAG, "findGroups:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public void changeMyAvatar(final JsFile file) { String descriptor = provider.registerUploadFile(file); messenger.changeMyAvatar(descriptor); } @UsedByApp public void removeMyAvatar() { messenger.removeMyAvatar(); } @UsedByApp public JsPromise editName(final int uid, final String newName) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.editName(uid, newName).start(new CommandCallback<Boolean>() { @Override public void onResult(Boolean res) { Log.d(TAG, "editName:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "editName:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise joinGroupViaLink(final String url) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.joinGroupViaToken(url).start(new CommandCallback<Integer>() { @Override public void onResult(Integer res) { Log.d(TAG, "joinGroupViaLink:result"); resolve(JsPeer.create(Peer.group(res))); } @Override public void onError(Exception e) { Log.d(TAG, "joinGroupViaLink:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise editGroupTitle(final int gid, final String newTitle) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.editGroupTitle(gid, newTitle).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "editGroupTitle:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "editGroupTitle:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise editGroupAbout(final int gid, final String newAbout) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.editGroupAbout(gid, newAbout).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { resolve(); } @Override public void onError(Exception e) { Log.e(TAG, e); reject(e.getMessage()); } }); } }); } @UsedByApp public void changeGroupAvatar(final int gid, final JsFile file) { String descriptor = provider.registerUploadFile(file); messenger.changeGroupAvatar(gid, descriptor); } @UsedByApp public void removeGroupAvatar(final int gid) { messenger.removeGroupAvatar(gid); } @UsedByApp public JsPromise createGroup(final String title, final JsFile file, final int[] uids) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { String avatarDescriptor = file != null ? provider.registerUploadFile(file) : null; //noinspection ConstantConditions messenger.createGroup(title, avatarDescriptor, uids).start(new CommandCallback<Integer>() { @Override public void onResult(Integer res) { Log.d(TAG, "createGroup:result"); resolve(JsPeer.create(Peer.group(res))); } @Override public void onError(Exception e) { Log.d(TAG, "createGroup:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise inviteMember(final int gid, final int uid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.inviteMember(gid, uid).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "inviteMember:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "inviteMember:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise kickMember(final int gid, final int uid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.kickMember(gid, uid).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "kickMember:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "kickMember:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise leaveGroup(final int gid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.leaveGroup(gid).start(new CommandCallback<Void>() { @Override public void onResult(Void res) { Log.d(TAG, "leaveGroup:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "leaveGroup:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise getIntegrationToken(final int gid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.requestIntegrationToken(gid).start(new CommandCallback<String>() { @Override public void onResult(String res) { Log.d(TAG, "getIntegrationToken:result"); resolve(res); } @Override public void onError(Exception e) { Log.d(TAG, "getIntegrationToken:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise revokeIntegrationToken(final int gid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.revokeIntegrationToken(gid).start(new CommandCallback<String>() { @Override public void onResult(String res) { Log.d(TAG, "revokeIntegrationToken:result"); resolve(res); } @Override public void onError(Exception e) { Log.d(TAG, "revokeIntegrationToken:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise getInviteLink(final int gid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.requestInviteLink(gid).start(new CommandCallback<String>() { @Override public void onResult(String res) { Log.d(TAG, "getInviteLink:result"); resolve(res); } @Override public void onError(Exception e) { Log.d(TAG, "getInviteLink:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise revokeInviteLink(final int gid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.revokeInviteLink(gid).start(new CommandCallback<String>() { @Override public void onResult(String res) { Log.d(TAG, "revokeInviteLink:result"); resolve(res); } @Override public void onError(Exception e) { Log.d(TAG, "revokeInviteLink:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise addContact(final int uid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.addContact(uid).start(new CommandCallback<Boolean>() { @Override public void onResult(Boolean res) { Log.d(TAG, "addContact:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "addContact:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise addLike(final JsPeer peer, final String rid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.addReaction(peer.convert(), Long.parseLong(rid), "\u2764") .start(new CommandCallback<Void>() { @Override public void onResult(Void res) { resolve(); } @Override public void onError(Exception e) { reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise removeLike(final JsPeer peer, final String rid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.removeReaction(peer.convert(), Long.parseLong(rid), "\u2764") .start(new CommandCallback<Void>() { @Override public void onResult(Void res) { resolve(); } @Override public void onError(Exception e) { reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise findUsers(final String query) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { messenger.findUsers(query).start(new CommandCallback<UserVM[]>() { @Override public void onResult(UserVM[] users) { Log.d(TAG, "findUsers:result"); JsArray<JsUser> jsUsers = JsArray.createArray().cast(); for (UserVM user : users) { jsUsers.push(messenger.getJsUser(user.getId()).get()); } resolve(jsUsers); } @Override public void onError(Exception e) { Log.d(TAG, "findUsers:error"); reject(e.getMessage()); } }); } }); } @UsedByApp public JsPromise removeContact(final int uid) { return JsPromise.create(new JsPromiseExecutor() { @Override public void execute() { //noinspection ConstantConditions messenger.removeContact(uid).start(new CommandCallback<Boolean>() { @Override public void onResult(Boolean res) { Log.d(TAG, "removeContact:result"); resolve(); } @Override public void onError(Exception e) { Log.d(TAG, "removeContact:error"); reject(e.getMessage()); } }); } }); } // Settings @UsedByApp public void changeNotificationsEnabled(JsPeer peer, boolean isEnabled) { messenger.changeNotificationsEnabled(peer.convert(), isEnabled); } @UsedByApp public boolean isNotificationsEnabled(JsPeer peer) { return messenger.isNotificationsEnabled(peer.convert()); } @UsedByApp public void changeAnimationAutoPlayEnabled(boolean isEnabled) { messenger.changeAnimationAutoPlayEnabled(isEnabled); } @UsedByApp public boolean isAnimationAutoPlayEnabled() { return messenger.isAnimationAutoPlayEnabled(); } @UsedByApp public boolean isSendByEnterEnabled() { return messenger.isSendByEnterEnabled(); } @UsedByApp public void changeSendByEnter(boolean sendByEnter) { messenger.changeSendByEnter(sendByEnter); } @UsedByApp public boolean isGroupsNotificationsEnabled() { return messenger.isGroupNotificationsEnabled(); } @UsedByApp public void changeGroupNotificationsEnabled(boolean enabled) { messenger.changeGroupNotificationsEnabled(enabled); } @UsedByApp public boolean isOnlyMentionNotifications() { return messenger.isGroupNotificationsOnlyMentionsEnabled(); } @UsedByApp public void changeIsOnlyMentionNotifications(boolean enabled) { messenger.changeGroupNotificationsOnlyMentionsEnabled(enabled); } @UsedByApp public boolean isSoundEffectsEnabled() { return messenger.isConversationTonesEnabled(); } @UsedByApp public boolean isShowNotificationsTextEnabled() { return messenger.isShowNotificationsText(); } @UsedByApp public void changeIsShowNotificationTextEnabled(boolean value) { messenger.changeShowNotificationTextEnabled(value); } @UsedByApp public void changeSoundEffectsEnabled(boolean enabled) { messenger.changeConversationTonesEnabled(enabled); } @UsedByApp public String renderMarkdown(final String markdownText) { try { return HtmlMarkdownUtils.processText(markdownText, MarkdownParser.MODE_FULL); } catch (Exception e) { Log.e("Markdown", e); return "[Error while processing text]"; } } @UsedByApp public void handleLinkClick(Event event) { Element target = Element.as(event.getEventTarget()); String href = target.getAttribute("href"); if (href.startsWith("send:")) { String msg = href.substring("send:".length()); msg = URL.decode(msg); if (lastVisiblePeer != null) { messenger.sendMessage(lastVisiblePeer, msg); event.preventDefault(); } } else { if (JsElectronApp.isElectron()) { JsElectronApp.openUrlExternal(href); event.preventDefault(); } } } }
ljshj/actor-platform
actor-sdk/sdk-core/core/core-js/src/main/java/im/actor/core/js/JsFacade.java
Java
mit
57,870
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2325, 3364, 11775, 1012, 1026, 16770, 1024, 1013, 1013, 3364, 1012, 10047, 1028, 1008, 1013, 7427, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 4563, 1012, 7396, 1012, 1046, 10286, 9447, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 14383, 1012, 7396, 1012, 5783, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 8299, 1012, 7396, 1012, 24471, 2140, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 1045, 15136, 2078, 1012, 7396, 1012, 2334, 12377, 14876, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 1045, 15136, 2078, 1012, 7396, 1012, 2051, 15975, 1025, 12324, 4012, 1012, 8224, 1012, 1043, 26677, 1012, 5310, 1012, 7396, 1012, 2724, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1008, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 17928, 1012, 17928, 4887, 26830, 7971, 3258, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 17928, 1012, 17928, 27184, 8649, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 17928, 1012, 1054, 15042, 1012, 3433, 11066, 2906, 5428, 7178, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 28516, 9006, 2386, 2094, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 9178, 8663, 16874, 2121, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 5254, 8873, 21928, 6072, 11314, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 7696, 14644, 8661, 3775, 3723, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 8152, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 12746, 14644, 8661, 3775, 3723, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 12746, 14644, 10143, 18863, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 8152, 13874, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 9178, 1012, 5310, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 5754, 17287, 9285, 1012, 2109, 3762, 29098, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 9178, 1012, 1008, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 14184, 1012, 1046, 19022, 22254, 2098, 10175, 5657, 9289, 20850, 8684, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 11670, 1012, 1046, 2015, 17048, 9031, 13102, 12298, 18688, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 11670, 1012, 1046, 13102, 27406, 8654, 21572, 30524, 12718, 21572, 17258, 2121, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 11670, 1012, 10496, 1012, 1046, 11246, 22471, 26788, 9397, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 21183, 12146, 1012, 16129, 10665, 7698, 21823, 4877, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 21183, 12146, 1012, 4767, 21823, 4877, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 2897, 1012, 1054, 15042, 9289, 20850, 8684, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 2897, 1012, 1054, 15042, 10288, 30523, 17258, 2121, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 11670, 1012, 1046, 15782, 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,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 17258, 2121, 1025, 12324, 10047, 1012, 3364, 1012, 4563, 1012, 1046, 2015, 1012, 11670, 1012, 1046, 15782, 30526 ]
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ApiManagement::Mgmt::V2016_10_10 module Models # # Details of the Backend WebProxy Server to use in the Request to Backend. # class BackendProxyContract include MsRestAzure # @return [String] WebProxy Server AbsoluteUri property which includes # the entire URI stored in the Uri instance, including all fragments and # query strings. attr_accessor :url # @return [String] Username to connect to the WebProxy server attr_accessor :username # @return [String] Password to connect to the WebProxy Server attr_accessor :password # # Mapper for BackendProxyContract class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BackendProxyContract', type: { name: 'Composite', class_name: 'BackendProxyContract', model_properties: { url: { client_side_validation: true, required: true, serialized_name: 'url', constraints: { MaxLength: 2000, MinLength: 1 }, type: { name: 'String' } }, username: { client_side_validation: true, required: false, serialized_name: 'username', type: { name: 'String' } }, password: { client_side_validation: true, required: false, serialized_name: 'password', type: { name: 'String' } } } } } end end end end
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb
Ruby
mit
2,093
[ 30522, 1001, 17181, 1024, 21183, 2546, 1011, 1022, 1001, 3642, 7013, 2011, 7513, 1006, 1054, 1007, 8285, 28533, 3642, 13103, 1012, 1001, 3431, 2089, 3426, 16542, 5248, 1998, 2097, 2022, 2439, 2065, 1996, 3642, 2003, 1001, 19723, 24454, 4383, 1012, 11336, 24296, 1024, 1024, 17928, 24805, 20511, 1024, 1024, 15418, 2102, 1024, 1024, 1058, 11387, 16048, 1035, 2184, 1035, 2184, 11336, 4275, 1001, 1001, 4751, 1997, 1996, 2067, 10497, 4773, 21572, 18037, 8241, 2000, 2224, 1999, 1996, 5227, 2000, 2067, 10497, 1012, 1001, 2465, 2067, 10497, 21572, 18037, 8663, 6494, 6593, 2421, 5796, 28533, 10936, 5397, 1001, 1030, 2709, 1031, 5164, 1033, 4773, 21572, 18037, 8241, 7619, 9496, 3200, 2029, 2950, 1001, 1996, 2972, 24471, 2072, 8250, 1999, 1996, 24471, 2072, 6013, 1010, 2164, 2035, 10341, 1998, 1001, 23032, 7817, 1012, 2012, 16344, 1035, 3229, 2953, 1024, 24471, 2140, 1001, 1030, 2709, 1031, 5164, 1033, 5310, 18442, 2000, 7532, 2000, 1996, 4773, 21572, 18037, 8241, 2012, 16344, 1035, 3229, 2953, 1024, 5310, 18442, 1001, 1030, 2709, 1031, 5164, 1033, 20786, 2000, 7532, 2000, 1996, 4773, 21572, 18037, 8241, 2012, 16344, 1035, 3229, 2953, 1024, 20786, 1001, 1001, 4949, 4842, 2005, 2067, 10497, 21572, 18037, 8663, 6494, 6593, 2465, 2004, 10090, 23325, 1012, 1001, 2023, 2097, 2022, 2109, 2005, 7642, 3989, 1013, 4078, 11610, 22731, 1012, 1001, 13366, 2969, 1012, 4949, 4842, 1006, 1007, 1063, 7396, 1035, 2217, 1035, 27354, 1024, 2995, 1010, 3223, 1024, 6270, 1010, 27289, 1035, 2171, 1024, 1005, 2067, 10497, 21572, 18037, 8663, 6494, 6593, 1005, 1010, 2828, 1024, 1063, 2171, 1024, 1005, 12490, 1005, 1010, 2465, 1035, 2171, 1024, 1005, 2067, 10497, 21572, 18037, 8663, 6494, 6593, 1005, 1010, 2944, 1035, 5144, 1024, 1063, 24471, 2140, 1024, 1063, 7396, 1035, 2217, 1035, 27354, 1024, 2995, 1010, 3223, 1024, 2995, 1010, 27289, 1035, 2171, 1024, 1005, 24471, 30524, 1024, 2456, 1010, 8117, 7770, 13512, 2232, 1024, 1015, 1065, 1010, 2828, 1024, 1063, 2171, 1024, 1005, 5164, 1005, 1065, 1065, 1010, 5310, 18442, 1024, 1063, 7396, 1035, 2217, 1035, 27354, 1024, 2995, 1010, 3223, 1024, 6270, 1010, 27289, 1035, 2171, 1024, 1005, 5310, 18442, 1005, 1010, 2828, 1024, 1063, 2171, 1024, 1005, 5164, 1005, 1065, 1065, 1010, 20786, 1024, 1063, 7396, 1035, 2217, 1035, 27354, 1024, 2995, 1010, 3223, 1024, 6270, 1010, 27289, 1035, 2171, 1024, 1005, 20786, 1005, 1010, 2828, 1024, 1063, 2171, 1024, 1005, 5164, 1005, 1065, 1065, 1065, 1065, 1065, 2203, 2203, 2203, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 2140, 1005, 1010, 14679, 1024, 1063, 4098, 7770, 13512, 2232, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2140, 1005, 1010, 14679, 1024, 1063, 4098, 7770, 13512, 2232, 30526 ]
# Heteropterys candolleana A.Juss. SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Malpighiales/Malpighiaceae/Heteropterys/Heteropterys candolleana/README.md
Markdown
apache-2.0
182
[ 30522, 1001, 21770, 10624, 13876, 7301, 2015, 2064, 3527, 6216, 5162, 1037, 1012, 18414, 4757, 1012, 2427, 1001, 1001, 1001, 1001, 3570, 3970, 1001, 1001, 1001, 1001, 2429, 2000, 2248, 3269, 3415, 5950, 1001, 1001, 1001, 1001, 2405, 1999, 19701, 1001, 1001, 1001, 1001, 2434, 2171, 19701, 1001, 1001, 1001, 12629, 19701, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 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 (c) 2008-2009 Atheros Communications Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/device.h> #include <linux/firmware.h> #include <linux/usb.h> #include <net/bluetooth/bluetooth.h> #define VERSION "1.0" #define ATH3K_FIRMWARE "ath3k-1.fw" #define ATH3K_DNLOAD 0x01 #define ATH3K_GETSTATE 0x05 #define ATH3K_SET_NORMAL_MODE 0x07 #define ATH3K_GETVERSION 0x09 #define USB_REG_SWITCH_VID_PID 0x0a #define ATH3K_MODE_MASK 0x3F #define ATH3K_NORMAL_MODE 0x0E #define ATH3K_PATCH_UPDATE 0x80 #define ATH3K_SYSCFG_UPDATE 0x40 #define ATH3K_XTAL_FREQ_26M 0x00 #define ATH3K_XTAL_FREQ_40M 0x01 #define ATH3K_XTAL_FREQ_19P2 0x02 #define ATH3K_NAME_LEN 0xFF struct ath3k_version { unsigned int rom_version; unsigned int build_version; unsigned int ram_version; unsigned char ref_clock; unsigned char reserved[0x07]; }; static const struct usb_device_id ath3k_table[] = { /* Atheros AR3011 */ { USB_DEVICE(0x0CF3, 0x3000) }, /* Atheros AR3011 with sflash firmware*/ { USB_DEVICE(0x0CF3, 0x3002) }, { USB_DEVICE(0x0CF3, 0xE019) }, { USB_DEVICE(0x13d3, 0x3304) }, { USB_DEVICE(0x0930, 0x0215) }, { USB_DEVICE(0x0489, 0xE03D) }, { USB_DEVICE(0x0489, 0xE027) }, /* Atheros AR9285 Malbec with sflash firmware */ { USB_DEVICE(0x03F0, 0x311D) }, /* Atheros AR3012 with sflash firmware*/ { USB_DEVICE(0x0CF3, 0x0036) }, { USB_DEVICE(0x0CF3, 0x3004) }, { USB_DEVICE(0x0CF3, 0x3008) }, { USB_DEVICE(0x0CF3, 0x311D) }, { USB_DEVICE(0x0CF3, 0x817a) }, { USB_DEVICE(0x13d3, 0x3375) }, { USB_DEVICE(0x04CA, 0x3004) }, { USB_DEVICE(0x04CA, 0x3005) }, { USB_DEVICE(0x04CA, 0x3006) }, { USB_DEVICE(0x04CA, 0x3008) }, { USB_DEVICE(0x13d3, 0x3362) }, { USB_DEVICE(0x0CF3, 0xE004) }, { USB_DEVICE(0x0CF3, 0xE005) }, { USB_DEVICE(0x0930, 0x0219) }, { USB_DEVICE(0x0930, 0x0220) }, { USB_DEVICE(0x0489, 0xe057) }, { USB_DEVICE(0x13d3, 0x3393) }, { USB_DEVICE(0x0489, 0xe04e) }, { USB_DEVICE(0x0489, 0xe056) }, { USB_DEVICE(0x0489, 0xe04d) }, { USB_DEVICE(0x04c5, 0x1330) }, { USB_DEVICE(0x13d3, 0x3402) }, { USB_DEVICE(0x0cf3, 0x3121) }, { USB_DEVICE(0x0cf3, 0xe003) }, /* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xE02C) }, /* Atheros AR5BBU22 with sflash firmware */ { USB_DEVICE(0x0489, 0xE03C) }, { USB_DEVICE(0x0489, 0xE036) }, { } /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, ath3k_table); #define BTUSB_ATH3012 0x80 /* This table is to load patch and sysconfig files * for AR3012 */ static const struct usb_device_id ath3k_blist_tbl[] = { /* Atheros AR3012 with sflash firmware*/ { USB_DEVICE(0x0CF3, 0x0036), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3008), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x311D), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0CF3, 0x817a), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3375), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3005), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3006), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0489, 0xe04e), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0489, 0xe056), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0489, 0xe04d), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04c5, 0x1330), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3402), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3121), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe003), .driver_info = BTUSB_ATH3012 }, /* Atheros AR5BBU22 with sflash firmware */ { USB_DEVICE(0x0489, 0xE03C), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0489, 0xE036), .driver_info = BTUSB_ATH3012 }, { } /* Terminating entry */ }; #define USB_REQ_DFU_DNLOAD 1 #define BULK_SIZE 4096 #define FW_HDR_SIZE 20 static int ath3k_load_firmware(struct usb_device *udev, const struct firmware *firmware) { u8 *send_buf; int err, pipe, len, size, sent = 0; int count = firmware->size; BT_DBG("udev %p", udev); pipe = usb_sndctrlpipe(udev, 0); send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); if (!send_buf) { BT_ERR("Can't allocate memory chunk for firmware"); return -ENOMEM; } memcpy(send_buf, firmware->data, 20); if ((err = usb_control_msg(udev, pipe, USB_REQ_DFU_DNLOAD, USB_TYPE_VENDOR, 0, 0, send_buf, 20, USB_CTRL_SET_TIMEOUT)) < 0) { BT_ERR("Can't change to loading configuration err"); goto error; } sent += 20; count -= 20; while (count) { size = min_t(uint, count, BULK_SIZE); pipe = usb_sndbulkpipe(udev, 0x02); memcpy(send_buf, firmware->data + sent, size); err = usb_bulk_msg(udev, pipe, send_buf, size, &len, 3000); if (err || (len != size)) { BT_ERR("Error in firmware loading err = %d," "len = %d, size = %d", err, len, size); goto error; } sent += size; count -= size; } error: kfree(send_buf); return err; } static int ath3k_get_state(struct usb_device *udev, unsigned char *state) { int ret, pipe = 0; char *buf; buf = kmalloc(sizeof(*buf), GFP_KERNEL); if (!buf) return -ENOMEM; pipe = usb_rcvctrlpipe(udev, 0); ret = usb_control_msg(udev, pipe, ATH3K_GETSTATE, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, buf, sizeof(*buf), USB_CTRL_SET_TIMEOUT); *state = *buf; kfree(buf); return ret; } static int ath3k_get_version(struct usb_device *udev, struct ath3k_version *version) { int ret, pipe = 0; struct ath3k_version *buf; const int size = sizeof(*buf); buf = kmalloc(size, GFP_KERNEL); if (!buf) return -ENOMEM; pipe = usb_rcvctrlpipe(udev, 0); ret = usb_control_msg(udev, pipe, ATH3K_GETVERSION, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, buf, size, USB_CTRL_SET_TIMEOUT); memcpy(version, buf, size); kfree(buf); return ret; } static int ath3k_load_fwfile(struct usb_device *udev, const struct firmware *firmware) { u8 *send_buf; int err, pipe, len, size, count, sent = 0; int ret; count = firmware->size; send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); if (!send_buf) { BT_ERR("Can't allocate memory chunk for firmware"); return -ENOMEM; } size = min_t(uint, count, FW_HDR_SIZE); memcpy(send_buf, firmware->data, size); pipe = usb_sndctrlpipe(udev, 0); ret = usb_control_msg(udev, pipe, ATH3K_DNLOAD, USB_TYPE_VENDOR, 0, 0, send_buf, size, USB_CTRL_SET_TIMEOUT); if (ret < 0) { BT_ERR("Can't change to loading configuration err"); kfree(send_buf); return ret; } sent += size; count -= size; while (count) { size = min_t(uint, count, BULK_SIZE); pipe = usb_sndbulkpipe(udev, 0x02); memcpy(send_buf, firmware->data + sent, size); err = usb_bulk_msg(udev, pipe, send_buf, size, &len, 3000); if (err || (len != size)) { BT_ERR("Error in firmware loading err = %d," "len = %d, size = %d", err, len, size); kfree(send_buf); return err; } sent += size; count -= size; } kfree(send_buf); return 0; } static int ath3k_switch_pid(struct usb_device *udev) { int pipe = 0; pipe = usb_sndctrlpipe(udev, 0); return usb_control_msg(udev, pipe, USB_REG_SWITCH_VID_PID, USB_TYPE_VENDOR, 0, 0, NULL, 0, USB_CTRL_SET_TIMEOUT); } static int ath3k_set_normal_mode(struct usb_device *udev) { unsigned char fw_state; int pipe = 0, ret; ret = ath3k_get_state(udev, &fw_state); if (ret < 0) { BT_ERR("Can't get state to change to normal mode err"); return ret; } if ((fw_state & ATH3K_MODE_MASK) == ATH3K_NORMAL_MODE) { BT_DBG("firmware was already in normal mode"); return 0; } pipe = usb_sndctrlpipe(udev, 0); return usb_control_msg(udev, pipe, ATH3K_SET_NORMAL_MODE, USB_TYPE_VENDOR, 0, 0, NULL, 0, USB_CTRL_SET_TIMEOUT); } static int ath3k_load_patch(struct usb_device *udev) { unsigned char fw_state; char filename[ATH3K_NAME_LEN] = {0}; const struct firmware *firmware; struct ath3k_version fw_version, pt_version; int ret; ret = ath3k_get_state(udev, &fw_state); if (ret < 0) { BT_ERR("Can't get state to change to load ram patch err"); return ret; } if (fw_state & ATH3K_PATCH_UPDATE) { BT_DBG("Patch was already downloaded"); return 0; } ret = ath3k_get_version(udev, &fw_version); if (ret < 0) { BT_ERR("Can't get version to change to load ram patch err"); return ret; } snprintf(filename, ATH3K_NAME_LEN, "ar3k/AthrBT_0x%08x.dfu", fw_version.rom_version); ret = request_firmware(&firmware, filename, &udev->dev); if (ret < 0) { BT_ERR("Patch file not found %s", filename); return ret; } pt_version.rom_version = *(int *)(firmware->data + firmware->size - 8); pt_version.build_version = *(int *) (firmware->data + firmware->size - 4); if ((pt_version.rom_version != fw_version.rom_version) || (pt_version.build_version <= fw_version.build_version)) { BT_ERR("Patch file version did not match with firmware"); release_firmware(firmware); return -EINVAL; } ret = ath3k_load_fwfile(udev, firmware); release_firmware(firmware); return ret; } static int ath3k_load_syscfg(struct usb_device *udev) { unsigned char fw_state; char filename[ATH3K_NAME_LEN] = {0}; const struct firmware *firmware; struct ath3k_version fw_version; int clk_value, ret; ret = ath3k_get_state(udev, &fw_state); if (ret < 0) { BT_ERR("Can't get state to change to load configuration err"); return -EBUSY; } ret = ath3k_get_version(udev, &fw_version); if (ret < 0) { BT_ERR("Can't get version to change to load ram patch err"); return ret; } switch (fw_version.ref_clock) { case ATH3K_XTAL_FREQ_26M: clk_value = 26; break; case ATH3K_XTAL_FREQ_40M: clk_value = 40; break; case ATH3K_XTAL_FREQ_19P2: clk_value = 19; break; default: clk_value = 0; break; } snprintf(filename, ATH3K_NAME_LEN, "ar3k/ramps_0x%08x_%d%s", fw_version.rom_version, clk_value, ".dfu"); ret = request_firmware(&firmware, filename, &udev->dev); if (ret < 0) { BT_ERR("Configuration file not found %s", filename); return ret; } ret = ath3k_load_fwfile(udev, firmware); release_firmware(firmware); return ret; } static int ath3k_probe(struct usb_interface *intf, const struct usb_device_id *id) { const struct firmware *firmware; struct usb_device *udev = interface_to_usbdev(intf); int ret; BT_DBG("intf %p id %p", intf, id); if (intf->cur_altsetting->desc.bInterfaceNumber != 0) return -ENODEV; /* match device ID in ath3k blacklist table */ if (!id->driver_info) { const struct usb_device_id *match; match = usb_match_id(intf, ath3k_blist_tbl); if (match) id = match; } /* load patch and sysconfig files for AR3012 */ if (id->driver_info & BTUSB_ATH3012) { /* New firmware with patch and sysconfig files already loaded */ if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x0001) return -ENODEV; ret = ath3k_load_patch(udev); if (ret < 0) { BT_ERR("Loading patch file failed"); return ret; } ret = ath3k_load_syscfg(udev); if (ret < 0) { BT_ERR("Loading sysconfig file failed"); return ret; } ret = ath3k_set_normal_mode(udev); if (ret < 0) { BT_ERR("Set normal mode failed"); return ret; } ath3k_switch_pid(udev); return 0; } ret = request_firmware(&firmware, ATH3K_FIRMWARE, &udev->dev); if (ret < 0) { if (ret == -ENOENT) BT_ERR("Firmware file \"%s\" not found", ATH3K_FIRMWARE); else BT_ERR("Firmware file \"%s\" request failed (err=%d)", ATH3K_FIRMWARE, ret); return ret; } ret = ath3k_load_firmware(udev, firmware); release_firmware(firmware); return ret; } static void ath3k_disconnect(struct usb_interface *intf) { BT_DBG("ath3k_disconnect intf %p", intf); } static struct usb_driver ath3k_driver = { .name = "ath3k", .probe = ath3k_probe, .disconnect = ath3k_disconnect, .id_table = ath3k_table, .disable_hub_initiated_lpm = 1, }; module_usb_driver(ath3k_driver); MODULE_AUTHOR("Atheros Communications"); MODULE_DESCRIPTION("Atheros AR30xx firmware driver"); MODULE_VERSION(VERSION); MODULE_LICENSE("GPL"); MODULE_FIRMWARE(ATH3K_FIRMWARE);
ziqiaozhou/cachebar
source/drivers/bluetooth/ath3k.c
C
gpl-2.0
13,428
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2263, 1011, 2268, 2012, 5886, 2891, 4806, 4297, 1012, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1008, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1008, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 1008, 2247, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 1008, 3192, 1010, 4297, 1012, 1010, 5354, 3379, 2173, 1010, 7621, 14210, 1010, 3731, 1010, 5003, 6185, 14526, 2487, 1011, 7558, 2581, 3915, 1008, 1008, 1013, 1001, 2421, 1026, 11603, 1013, 11336, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 16293, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 1999, 4183, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 17584, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 4127, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 9413, 19139, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 5080, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 3813, 8059, 1012, 1044, 1028, 1001, 2421, 1026, 11603, 1013, 18833, 1012, 1044, 1028, 1001, 2421, 1026, 5658, 1013, 2630, 19392, 1013, 2630, 19392, 1012, 1044, 1028, 1001, 9375, 2544, 1000, 1015, 1012, 1014, 1000, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 3813, 8059, 1000, 2012, 2232, 2509, 2243, 1011, 1015, 1012, 1042, 2860, 1000, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 1040, 20554, 10441, 2094, 1014, 2595, 24096, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 4152, 12259, 1014, 2595, 2692, 2629, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 2275, 1035, 3671, 1035, 5549, 1014, 2595, 2692, 2581, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 2131, 27774, 1014, 2595, 2692, 2683, 1001, 9375, 18833, 1035, 19723, 1035, 6942, 1035, 6819, 2094, 1035, 14255, 2094, 1014, 2595, 2692, 2050, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 5549, 1035, 7308, 1014, 2595, 2509, 2546, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 3671, 1035, 5549, 1014, 2595, 2692, 2063, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 8983, 1035, 10651, 1014, 2595, 17914, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 25353, 11020, 2546, 2290, 1035, 10651, 1014, 2595, 30524, 2232, 2509, 2243, 1035, 1060, 9080, 1035, 10424, 2063, 4160, 1035, 2539, 2361, 2475, 1014, 2595, 2692, 2475, 1001, 9375, 2012, 2232, 2509, 2243, 30523, 12740, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 1060, 9080, 1035, 10424, 2063, 4160, 1035, 2656, 2213, 1014, 2595, 8889, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 1060, 9080, 1035, 10424, 2063, 4160, 1035, 2871, 2213, 1014, 2595, 24096, 1001, 9375, 2012, 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, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12740, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 1060, 9080, 1035, 10424, 2063, 4160, 1035, 2656, 2213, 1014, 2595, 8889, 1001, 9375, 2012, 2232, 2509, 2243, 1035, 1060, 9080, 1035, 10424, 2063, 4160, 1035, 2871, 2213, 1014, 2595, 24096, 1001, 9375, 2012, 30526 ]
--- layout: default title: Laura Rutz userid: LauraR6561 --- {% for user in site.data.users %} {% if user.userid == page.userid %} {% assign current = user %} {% endif %} {% endfor %} ### {{ page.title }} #### {{ current.city }}, {{ current.state }} {{ current.postal }}
WebDevBootcamp/WebDevBootcamp.github.io
students/spring2014/lrutz/index.md
Markdown
mit
282
[ 30522, 1011, 1011, 1011, 9621, 1024, 12398, 2516, 1024, 6874, 21766, 5753, 5310, 3593, 1024, 6874, 2099, 26187, 2575, 2487, 1011, 1011, 1011, 1063, 1003, 2005, 5310, 1999, 2609, 1012, 2951, 1012, 5198, 1003, 1065, 1063, 1003, 2065, 5310, 1012, 5310, 3593, 1027, 1027, 3931, 1012, 5310, 3593, 1003, 1065, 1063, 1003, 23911, 2783, 1027, 5310, 1003, 1065, 1063, 1003, 2203, 10128, 1003, 1065, 1063, 1003, 2203, 29278, 1003, 1065, 1001, 1001, 1001, 1063, 1063, 3931, 1012, 2516, 1065, 1065, 1001, 1001, 1001, 1001, 1063, 1063, 2783, 1012, 2103, 1065, 1065, 1010, 1063, 1063, 2783, 1012, 2110, 1065, 1065, 1063, 1063, 2783, 1012, 10690, 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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, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<!DOCTYPE html> <html lang="en"> <head> <title>Name file-label-embedded-slider</title> <style type="text/css"> #fieldDiv { display: table; width: 80%; margin: 100px 10%; } .hidden { display: none; } </style> </head> <body> <div class="pageContainer"> <div id="fieldDiv"><!-- Start of W3C ARIA test case code. --> <input type="file" id="test" /> <label for="test">foo <input role="slider" type="range" value="5" min="1" max="10" aria-valuenow="5" aria-valuemin="1" aria-valuemax="10"> baz </label> <!-- End of W3C ARIA test case code. --></div> </div> <br /><br /><br /> <div> <button onclick="(function(){var a=document.createElement('script');a.type='text/javascript';a.src='https://accdc.github.io/visual-aria/visual-aria/roles.js';document.head.appendChild(a)})()"> Load Visual ARIA </button> <button onclick="document.getElementById('calcTextStr').innerHTML = getNames(document.getElementById('test'));"> Calculate Accessible Name and Description </button> <br /> <textarea id="calcTextStr" readonly aria-label="Accessible Name and Description Calculation" title="Accessible Name and Description Calculation" style="width: 100%; height: 60px;"></textarea> </div> <script type="text/javascript" src="../Sample JavaScript Recursion Algorithm/recursion.js"></script> </body> </html>
accdc/w3c-alternative-text-computation
docs/Autogenerated AccName 1.1 Testable Statements - W3C/Name file-label-embedded-slider.html
HTML
mit
1,290
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 2171, 5371, 1011, 3830, 1011, 11157, 1011, 7358, 2099, 1026, 1013, 2516, 1028, 1026, 2806, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 1028, 1001, 2492, 4305, 2615, 1063, 4653, 1024, 2795, 1025, 9381, 1024, 3770, 1003, 1025, 7785, 1024, 2531, 2361, 2595, 2184, 1003, 1025, 1065, 1012, 5023, 1063, 4653, 1024, 3904, 1025, 1065, 1026, 1013, 2806, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 30524, 2828, 1027, 1000, 5371, 1000, 8909, 1027, 1000, 3231, 1000, 1013, 1028, 1026, 3830, 2005, 1027, 1000, 3231, 1000, 1028, 29379, 1026, 7953, 2535, 1027, 1000, 7358, 2099, 1000, 2828, 1027, 1000, 2846, 1000, 3643, 1027, 1000, 1019, 1000, 8117, 1027, 1000, 1015, 1000, 4098, 1027, 1000, 2184, 1000, 9342, 1011, 3643, 19779, 1027, 1000, 1019, 1000, 9342, 1011, 3643, 10020, 1027, 1000, 1015, 1000, 9342, 1011, 3643, 17848, 1027, 1000, 2184, 1000, 1028, 8670, 2480, 1026, 1013, 3830, 1028, 1026, 999, 1011, 1011, 2203, 1997, 1059, 2509, 2278, 9342, 3231, 2553, 3642, 1012, 1011, 1011, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 7987, 1013, 1028, 1026, 7987, 1013, 1028, 1026, 7987, 1013, 1028, 1026, 4487, 2615, 1028, 1026, 6462, 2006, 20464, 6799, 1027, 1000, 1006, 3853, 1006, 1007, 1063, 13075, 1037, 1027, 6254, 1012, 3443, 12260, 3672, 1006, 1005, 5896, 1005, 1007, 1025, 1037, 1012, 2828, 1027, 1005, 3793, 1013, 9262, 22483, 1005, 1025, 1037, 1012, 5034, 2278, 1027, 1005, 16770, 1024, 1013, 1013, 16222, 16409, 1012, 21025, 2705, 12083, 1012, 22834, 1013, 5107, 1011, 9342, 1013, 5107, 1011, 9342, 1013, 4395, 1012, 1046, 2015, 1005, 1025, 6254, 1012, 2132, 1012, 10439, 10497, 19339, 1006, 1037, 1007, 1065, 1007, 1006, 1007, 1000, 1028, 7170, 5107, 9342, 1026, 1013, 6462, 1028, 1026, 6462, 2006, 20464, 6799, 1027, 1000, 6254, 1012, 2131, 12260, 3672, 3762, 3593, 1006, 1005, 10250, 6593, 10288, 3215, 16344, 1005, 1007, 1012, 5110, 11039, 19968, 1027, 2131, 18442, 2015, 1006, 6254, 1012, 2131, 12260, 3672, 3762, 3593, 1006, 1005, 3231, 1005, 1007, 1007, 1025, 1000, 1028, 18422, 7801, 2171, 1998, 6412, 1026, 1013, 6462, 1028, 1026, 7987, 1013, 1028, 1026, 3793, 12069, 2050, 8909, 1027, 1000, 10250, 6593, 10288, 3215, 16344, 1000, 3191, 2239, 2135, 9342, 1011, 3830, 1027, 1000, 7801, 2171, 1998, 6412, 17208, 1000, 2516, 1027, 1000, 7801, 2171, 1998, 6412, 17208, 1000, 2806, 1027, 1000, 9381, 1024, 2531, 1003, 1025, 4578, 1024, 3438, 2361, 2595, 1025, 1000, 1028, 1026, 1013, 3793, 12069, 2050, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 7099, 9262, 22483, 28667, 9236, 3258, 9896, 1013, 28667, 9236, 3258, 1012, 1046, 30523, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 3931, 8663, 18249, 2121, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2492, 4305, 2615, 1000, 1028, 1026, 999, 1011, 1011, 2707, 1997, 1059, 2509, 2278, 9342, 3231, 2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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, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 3931, 8663, 18249, 2121, 1000, 1028, 1026, 4487, 2615, 8909, 1027, 1000, 2492, 4305, 2615, 1000, 1028, 1026, 999, 1011, 1011, 2707, 1997, 1059, 2509, 2278, 9342, 3231, 2553, 3642, 1012, 1011, 1011, 1028, 1026, 7953, 30526 ]
#include <iostream> #include "core/tuple.hpp" #include "core/alarm.h" int main(void) { auto t1 = std::tuple<int, std::string>{1, "one"}; auto t2 = jle::tuple<int, std::string>{2, "two"}; if(t1 == t2) std::cout << "yes" << std::endl; if(t1 < t2) std::cout << "yes" << std::endl; JLE_COUT_TRACE(t1); JLE_COUT_TRACE(t2); std::cout << t1 << std::endl; return 0; } namespace jle { void alarm_msg(const jle::alarm& al) { std::cout << al << std::endl; } }
jleahred/jle_cpp_tk
examples/onefile/core/ex_tuple.cpp
C++
gpl-3.0
533
[ 30522, 1001, 2421, 1026, 16380, 25379, 1028, 1001, 2421, 1000, 4563, 1013, 10722, 10814, 1012, 6522, 2361, 1000, 1001, 2421, 1000, 4563, 1013, 8598, 1012, 1044, 1000, 20014, 2364, 1006, 11675, 1007, 1063, 8285, 1056, 2487, 1027, 2358, 2094, 1024, 1024, 10722, 10814, 1026, 20014, 1010, 2358, 2094, 1024, 1024, 5164, 1028, 1063, 1015, 1010, 1000, 2028, 1000, 1065, 1025, 8285, 1056, 2475, 1027, 1046, 2571, 1024, 1024, 10722, 10814, 1026, 20014, 1010, 2358, 2094, 1024, 1024, 5164, 1028, 1063, 1016, 1010, 1000, 2048, 1000, 1065, 1025, 2065, 1006, 1056, 2487, 1027, 1027, 1056, 2475, 1007, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 1000, 2748, 1000, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 2065, 1006, 1056, 2487, 1026, 1056, 2475, 1007, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 1000, 2748, 1000, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 1046, 2571, 1035, 2522, 4904, 1035, 7637, 1006, 1056, 2487, 1007, 1025, 1046, 2571, 1035, 2522, 4904, 1035, 7637, 1006, 1056, 2475, 1007, 1025, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 1056, 2487, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 2709, 1014, 1025, 1065, 3415, 15327, 1046, 2571, 1063, 11675, 8598, 1035, 5796, 2290, 1006, 9530, 3367, 1046, 2571, 1024, 1024, 8598, 1004, 2632, 1007, 1063, 2358, 2094, 1024, 1024, 2522, 4904, 1026, 1026, 2632, 1026, 1026, 2358, 2094, 1024, 1024, 2203, 2140, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 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 ]
#pragma once #ifndef _H_EMU_SW #define _H_EMU_SW #include "define.hpp" int reta(USHORT a, USHORT &ret) { if (a > 0x3F) return -1; if (0x0 <= a && a <= 0x7) ret = reg[a]; else if (0x8 <= a && a <= 0xF) ret = mem[reg[a - 0x8]]; else if (0x10 <= a && a <= 0x17) { ret = mem[static_cast<USHORT>(reg[a - 0x10] + mem[pc++])]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; } else if (0x20 <= a && a <= 0x3F) ret = a - 0x21; else { switch (a) { case 0x18: ret = mem[sp++]; break; case 0x19: ret = mem[sp]; break; case 0x1A: ret = mem[static_cast<USHORT>(sp + mem[pc++])]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; break; case 0x1B: ret = sp; break; case 0x1C: ret = pc; break; case 0x1D: ret = ex; break; case 0x1E: ret = mem[mem[pc++]]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; break; case 0x1F: ret = mem[pc++]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; break; default: return -1; } } return 0; } int retb(USHORT b, USHORT &ret) { if (b > 0x1F) return -1; if (0x0 <= b && b <= 0x7) ret = reg[b]; else if (0x8 <= b && b <= 0xF) ret = mem[reg[b - 0x8]]; else if (0x10 <= b && b <= 0x17) { ret = mem[static_cast<USHORT>(reg[b - 0x10] + mem[pc++])]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; } else { switch (b) { case 0x18: ret = mem[sp]; break; case 0x19: ret = mem[sp]; break; case 0x1A: ret = mem[static_cast<USHORT>(sp + mem[pc++])]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; break; case 0x1B: ret = sp; break; case 0x1C: ret = pc; break; case 0x1D: ret = ex; break; case 0x1E: ret = mem[mem[pc++]]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; break; case 0x1F: ret = mem[pc++]; if (pc > 0xFFFF) { pcOf = true; pc &= 0xFFFF; } return 1; break; default: return -1; } } return 0; } int setb(USHORT b, USHORT dat, int shift) { if (b > 0x1F) return -1; if (0x0 <= b && b <= 0x7) reg[b] = dat; else if (0x8 <= b && b <= 0xF) mem[reg[b - 0x8]] = dat; else if (0x10 <= b && b <= 0x17) mem[static_cast<USHORT>(reg[b - 0x10] + mem[pc - shift])] = dat; else { switch (b) { case 0x18: mem[--sp] = dat; break; case 0x19: mem[sp] = dat; break; case 0x1A: mem[static_cast<USHORT>(sp + mem[pc - shift])] = dat; break; case 0x1B: sp = dat; break; case 0x1C: pc = dat; break; case 0x1D: ex = dat; break; case 0x1E: mem[mem[pc - shift]] = dat; break; default: return -1; } } return 0; } #endif
xy12423/xy_DCPU16_Emulator
DCPU16/core/emulator/switch.hpp
C++
gpl-3.0
2,914
[ 30522, 1001, 10975, 8490, 2863, 2320, 1001, 2065, 13629, 2546, 1035, 1044, 1035, 7861, 2226, 1035, 25430, 1001, 9375, 1035, 1044, 1035, 7861, 2226, 1035, 25430, 1001, 2421, 1000, 9375, 1012, 6522, 2361, 1000, 20014, 2128, 2696, 1006, 2149, 27794, 1037, 1010, 2149, 27794, 1004, 2128, 2102, 1007, 1063, 2065, 1006, 1037, 1028, 1014, 2595, 2509, 2546, 1007, 2709, 1011, 1015, 1025, 2065, 1006, 1014, 2595, 2692, 1026, 1027, 1037, 1004, 1004, 1037, 1026, 1027, 1014, 2595, 2581, 1007, 2128, 2102, 1027, 19723, 1031, 1037, 1033, 1025, 2842, 2065, 1006, 1014, 2595, 2620, 1026, 1027, 1037, 1004, 1004, 1037, 1026, 1027, 1014, 2595, 2546, 1007, 2128, 2102, 1027, 2033, 2213, 1031, 19723, 1031, 1037, 1011, 1014, 2595, 2620, 1033, 1033, 1025, 2842, 2065, 1006, 1014, 2595, 10790, 1026, 1027, 1037, 1004, 1004, 1037, 1026, 1027, 1014, 2595, 16576, 1007, 1063, 2128, 2102, 1027, 2033, 2213, 1031, 10763, 1035, 3459, 1026, 2149, 27794, 1028, 1006, 19723, 1031, 1037, 1011, 1014, 2595, 10790, 1033, 1009, 2033, 2213, 1031, 7473, 1009, 1009, 1033, 1007, 1033, 1025, 2065, 1006, 7473, 1028, 1014, 2595, 4246, 4246, 1007, 1063, 7473, 11253, 1027, 2995, 1025, 7473, 1004, 1027, 1014, 2595, 4246, 4246, 1025, 1065, 2709, 1015, 1025, 1065, 2842, 2065, 1006, 1014, 2595, 11387, 1026, 1027, 1037, 1004, 1004, 1037, 1026, 1027, 1014, 2595, 2509, 2546, 1007, 2128, 2102, 1027, 1037, 1011, 1014, 30524, 2553, 1014, 2595, 16147, 1024, 2128, 2102, 1027, 2033, 2213, 1031, 11867, 1033, 1025, 3338, 1025, 2553, 1014, 2595, 2487, 2050, 1024, 2128, 2102, 1027, 2033, 2213, 1031, 10763, 1035, 3459, 1026, 2149, 27794, 1028, 1006, 11867, 1009, 2033, 2213, 1031, 7473, 1009, 1009, 1033, 1007, 1033, 1025, 2065, 1006, 7473, 1028, 1014, 2595, 4246, 4246, 1007, 1063, 7473, 11253, 1027, 2995, 1025, 7473, 1004, 1027, 1014, 2595, 4246, 4246, 1025, 1065, 2709, 1015, 1025, 3338, 1025, 2553, 1014, 2595, 2487, 2497, 1024, 2128, 2102, 1027, 11867, 1025, 3338, 1025, 2553, 1014, 2595, 2487, 2278, 1024, 2128, 2102, 1027, 7473, 1025, 3338, 1025, 2553, 1014, 2595, 2487, 2094, 1024, 2128, 2102, 1027, 4654, 1025, 3338, 1025, 2553, 1014, 2595, 2487, 2063, 1024, 2128, 2102, 1027, 2033, 2213, 1031, 2033, 2213, 1031, 7473, 1009, 1009, 1033, 1033, 1025, 2065, 1006, 7473, 1028, 1014, 2595, 4246, 4246, 1007, 1063, 7473, 11253, 1027, 2995, 1025, 7473, 1004, 1027, 1014, 2595, 4246, 4246, 1025, 1065, 2709, 1015, 1025, 3338, 1025, 2553, 1014, 2595, 2487, 2546, 1024, 2128, 2102, 1027, 2033, 2213, 1031, 7473, 1009, 1009, 1033, 1025, 2065, 1006, 7473, 1028, 1014, 2595, 4246, 4246, 1007, 1063, 7473, 11253, 1027, 2995, 1025, 7473, 1004, 1027, 1014, 2595, 4246, 4246, 1025, 1065, 2709, 1015, 1025, 3338, 1025, 12398, 1024, 2709, 1011, 1015, 1025, 1065, 1065, 2709, 1014, 1025, 1065, 20014, 2128, 2102, 2497, 1006, 2149, 27794, 1038, 1010, 2149, 27794, 1004, 2128, 2102, 1007, 1063, 2065, 1006, 1038, 1028, 1014, 30523, 2595, 17465, 1025, 2842, 1063, 6942, 1006, 1037, 1007, 1063, 2553, 1014, 2595, 15136, 1024, 2128, 2102, 1027, 2033, 2213, 1031, 11867, 1009, 1009, 1033, 1025, 3338, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2595, 17465, 1025, 2842, 1063, 6942, 1006, 1037, 1007, 1063, 2553, 1014, 2595, 15136, 1024, 2128, 2102, 1027, 2033, 2213, 1031, 11867, 1009, 1009, 1033, 1025, 3338, 1025, 30526 ]
// *********************************************************************************** // Created by zbw911 // 创建于:2014年02月13日 11:41 // // 修改于:2014年02月13日 17:00 // 文件名:Dev.KeywordExtract/Dev.KeywordExtract.Test/UnitTestDefaultParser.cs // // 如果有更好的建议或意见请邮件至 zbw911#gmail.com // *********************************************************************************** using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Dev.KeywordExtract.Test { [TestClass] public class UnitTestDefaultParser { private IParse parse = new DefaultParser(); [TestMethod] public void TestMethod1() { string source = "我有一个梦想,我们都是共产主义掘墓人,我们一起来努力,来吧,共产主义好,社会主义好,个屁"; string[] dics = new[] {"我们", "是", "一"}; var kw = parse.Extract(source, dics); foreach (var i in kw) { Console.WriteLine(i.Key + "=>" + i.Value); } } [TestMethod] public void MyTestMethod() { var html = @"<head> <meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""/> <title>关键词提取算法 - pangbangb - 博客园</title> <link type=""text/css"" rel=""stylesheet"" href=""/bundles/blog-common.css?v=gdNkSiQMyBMkpTeO1ex9qW-60UbMszQItnCUpBAT3LQ1""/> <link id=""MainCss"" type=""text/css"" rel=""stylesheet"" href=""http://common.cnblogs.com/Skins/ThinkInside/style.css?id=20140110""/> <link title=""RSS"" type=""application/rss+xml"" rel=""alternate"" href=""http://www.cnblogs.com/pangblog/rss""/> <link title=""RSD"" type=""application/rsd+xml"" rel=""EditURI"" href=""http://www.cnblogs.com/pangblog/rsd.xml""/> <link type=""application/wlwmanifest+xml"" rel=""wlwmanifest"" href=""http://www.cnblogs.com/pangblog/wlwmanifest.xml""/> <script src=""http://common.cnblogs.com/script/jquery.js"" type=""text/javascript""></script> <script type=""text/javascript"">var currentBlogApp = 'pangblog', cb_enable_mathjax=false;</script> <script src=""/bundles/blog-common.js?v=VS7ve6HfGvxtuwYyB4SWqTrYP6ZukEwxrePhJmRhqZc1"" type=""text/javascript""></script> </head> "; var txt = parse.FilterSource(html); Console.WriteLine(txt); } } }
zbw911/KeywordExtract
Src/Dev.KeywordExtract.Test/UnitTestDefaultParser.cs
C#
mit
2,463
[ 30522, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1013, 1013, 2580, 2011, 1062, 2497, 2860, 2683, 14526, 1013, 1013, 100, 100, 100, 30524, 2340, 1024, 4601, 1013, 1013, 1013, 1013, 100, 100, 100, 1993, 2297, 1840, 6185, 1872, 2410, 1864, 2459, 1024, 4002, 1013, 1013, 1861, 100, 1795, 1993, 16475, 1012, 3145, 18351, 10288, 6494, 6593, 1013, 16475, 1012, 3145, 18351, 10288, 6494, 6593, 1012, 3231, 1013, 3131, 22199, 3207, 7011, 11314, 19362, 8043, 1012, 20116, 1013, 1013, 1013, 1013, 100, 100, 1873, 100, 100, 1916, 100, 100, 100, 100, 100, 100, 100, 100, 100, 1062, 2497, 2860, 2683, 14526, 1001, 20917, 4014, 1012, 4012, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 2478, 2291, 1025, 2478, 7513, 1012, 26749, 8525, 20617, 1012, 3231, 3406, 27896, 1012, 3131, 22199, 2075, 1025, 3415, 15327, 16475, 1012, 3145, 18351, 10288, 6494, 6593, 1012, 3231, 1063, 1031, 3231, 26266, 1033, 2270, 2465, 3131, 22199, 3207, 7011, 11314, 19362, 8043, 1063, 2797, 24531, 22573, 11968, 3366, 1027, 2047, 12398, 19362, 8043, 1006, 1007, 1025, 1031, 3231, 11368, 6806, 2094, 1033, 2270, 11675, 3231, 11368, 6806, 2094, 2487, 1006, 1007, 1063, 5164, 3120, 1027, 1000, 1855, 1873, 1740, 100, 100, 100, 1989, 1855, 100, 1961, 100, 100, 100, 1747, 100, 100, 100, 1756, 1989, 1855, 100, 1740, 100, 100, 100, 1778, 1010, 100, 100, 1989, 100, 100, 1747, 100, 100, 1989, 1924, 1763, 1747, 100, 100, 1989, 100, 100, 1000, 1025, 5164, 1031, 1033, 4487, 6169, 1027, 2047, 1031, 1033, 1063, 1000, 1855, 100, 1000, 1010, 1000, 100, 1000, 1010, 1000, 1740, 1000, 1065, 1025, 13075, 6448, 1027, 11968, 3366, 1012, 14817, 1006, 3120, 1010, 4487, 6169, 1007, 1025, 18921, 6776, 1006, 13075, 1045, 1999, 6448, 1007, 1063, 10122, 1012, 4339, 4179, 1006, 1045, 1012, 3145, 1009, 1000, 1027, 1028, 1000, 1009, 1045, 1012, 3643, 1007, 1025, 1065, 1065, 1031, 3231, 11368, 6806, 2094, 1033, 2270, 11675, 2026, 22199, 11368, 6806, 2094, 1006, 1007, 1063, 13075, 16129, 1027, 1030, 1000, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 1000, 30523, 1993, 2297, 1840, 6185, 1872, 2410, 1864, 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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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1993, 2297, 1840, 6185, 1872, 2410, 1864, 30526 ]
var opn = require('opn'); console.log('打开二维码...') // Opens the image in the default image viewer opn('static/img/qr.jpg').then(() => { console.log('关闭二维码!') });
doterlin/wechat-robot
src/lib/open.js
JavaScript
mit
185
[ 30522, 13075, 6728, 2078, 1027, 5478, 1006, 1005, 6728, 2078, 1005, 1007, 1025, 10122, 1012, 8833, 1006, 1005, 100, 100, 1752, 100, 100, 1012, 1012, 1012, 1005, 1007, 1013, 1013, 7480, 1996, 3746, 1999, 1996, 12398, 3746, 13972, 6728, 2078, 1006, 1005, 10763, 1013, 10047, 2290, 1013, 1053, 2099, 1012, 16545, 2290, 1005, 1007, 1012, 2059, 1006, 1006, 1007, 1027, 1028, 1063, 10122, 1012, 8833, 1006, 1005, 100, 100, 1752, 100, 100, 999, 1005, 1007, 1065, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
/* * Tecsinapse Data Input and Output * * License: GNU Lesser General Public License (LGPL), version 3 or later * See the LICENSE file in the root directory or <http://www.gnu.org/licenses/lgpl-3.0.html>. */ package br.com.tecsinapse.dataio; import java.io.File; import java.io.IOException; import java.util.Date; import org.testng.annotations.Test; import com.google.common.io.Files; import br.com.tecsinapse.dataio.style.Colors; import br.com.tecsinapse.dataio.style.TableCellStyle; import br.com.tecsinapse.dataio.util.ExporterUtil; public class TableTest { @Test public void tableFluentRowAndCellTest() throws IOException { Table table = new Table(); TableCell tableCellDate = new TableCell(2.56); TableCellStyle tableCellStyle = new TableCellStyle(Colors.DARK_GREEN); table .withNewRow() .withCell(new Date()) .withCell("Col two") .withCell("BG Dark Green", tableCellStyle) .withCell("BG Dark Green + cols span", tableCellStyle, 2) .withCell(tableCellDate) .withNewRow() .withCell(new Date()) .withCell("@Col two") .withCell("@BG Dark Green", tableCellStyle) .withCell("@BG Dark Green + cols span", tableCellStyle, 2) .withCell(tableCellDate); File file = ResourceUtils.newFileTargetResource("/tableFluentRowAndCellTest.xlsx"); File outFile = ExporterUtil.getXlsxFile(table, file.getName()); Files.move(outFile, file); } }
tecsinapse/tecsinapse-data-io
src/test/java/br/com/tecsinapse/dataio/TableTest.java
Java
lgpl-3.0
1,600
[ 30522, 1013, 1008, 1008, 8915, 6169, 3981, 29251, 2951, 7953, 1998, 6434, 1008, 1008, 6105, 1024, 27004, 8276, 2236, 2270, 6105, 1006, 1048, 21600, 2140, 1007, 1010, 2544, 1017, 2030, 2101, 1008, 2156, 1996, 6105, 5371, 1999, 1996, 7117, 14176, 2030, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1048, 21600, 2140, 1011, 1017, 1012, 1014, 1012, 16129, 1028, 1012, 1008, 1013, 7427, 7987, 1012, 4012, 1012, 8915, 6169, 3981, 29251, 1012, 2951, 3695, 30524, 22834, 1012, 22834, 10288, 24422, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 3058, 1025, 12324, 8917, 1012, 3231, 3070, 1012, 5754, 17287, 9285, 1012, 3231, 1025, 12324, 4012, 1012, 8224, 1012, 2691, 1012, 22834, 1012, 6764, 1025, 12324, 7987, 1012, 4012, 1012, 8915, 6169, 3981, 29251, 1012, 2951, 3695, 1012, 2806, 1012, 6087, 1025, 12324, 7987, 1012, 4012, 1012, 8915, 6169, 3981, 29251, 1012, 2951, 3695, 1012, 2806, 1012, 2795, 29109, 4877, 27983, 1025, 12324, 7987, 1012, 4012, 1012, 8915, 6169, 3981, 29251, 1012, 2951, 3695, 1012, 21183, 4014, 1012, 9167, 2121, 21823, 2140, 1025, 2270, 2465, 13855, 4355, 1063, 1030, 3231, 2270, 11675, 2795, 10258, 24997, 13181, 7447, 16409, 5349, 22199, 1006, 1007, 11618, 22834, 10288, 24422, 1063, 2795, 2795, 1027, 2047, 2795, 1006, 1007, 1025, 2795, 29109, 2140, 2795, 29109, 15150, 2618, 1027, 2047, 2795, 29109, 2140, 1006, 1016, 1012, 5179, 1007, 1025, 2795, 29109, 4877, 27983, 2795, 29109, 4877, 27983, 1027, 2047, 2795, 29109, 4877, 27983, 1006, 6087, 1012, 2601, 1035, 2665, 1007, 1025, 2795, 1012, 2007, 2638, 13088, 5004, 1006, 1007, 1012, 2007, 29109, 2140, 1006, 2047, 3058, 1006, 1007, 1007, 1012, 2007, 29109, 2140, 1006, 1000, 8902, 2048, 1000, 1007, 1012, 2007, 29109, 2140, 1006, 1000, 1038, 2290, 2601, 2665, 1000, 1010, 2795, 29109, 4877, 27983, 1007, 1012, 2007, 29109, 2140, 1006, 1000, 1038, 2290, 2601, 2665, 1009, 8902, 2015, 8487, 1000, 1010, 2795, 29109, 4877, 27983, 1010, 1016, 1007, 1012, 2007, 29109, 2140, 1006, 2795, 29109, 15150, 2618, 1007, 1012, 2007, 2638, 13088, 5004, 1006, 1007, 1012, 2007, 29109, 2140, 1006, 2047, 3058, 1006, 1007, 1007, 1012, 2007, 29109, 2140, 1006, 1000, 1030, 8902, 2048, 1000, 1007, 1012, 2007, 29109, 2140, 1006, 1000, 1030, 1038, 2290, 2601, 2665, 1000, 1010, 2795, 29109, 4877, 27983, 1007, 1012, 2007, 29109, 2140, 1006, 1000, 1030, 1038, 2290, 2601, 2665, 1009, 8902, 2015, 8487, 1000, 1010, 2795, 29109, 4877, 27983, 1010, 1016, 1007, 1012, 2007, 29109, 2140, 1006, 2795, 29109, 15150, 2618, 1007, 1025, 5371, 5371, 1027, 7692, 21823, 4877, 1012, 2047, 8873, 7485, 2906, 18150, 6072, 8162, 3401, 1006, 1000, 1013, 2795, 10258, 24997, 13181, 7447, 16409, 5349, 22199, 1012, 28712, 2015, 2595, 1000, 1007, 1025, 5371, 2041, 8873, 2571, 1027, 9167, 2121, 21823, 2140, 1012, 2131, 2595, 4877, 2595, 8873, 2571, 1006, 2795, 1010, 5371, 1012, 2131, 18442, 1006, 1007, 1007, 1025, 6764, 1012, 2693, 1006, 2041, 8873, 2571, 1010, 5371, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 1025, 12324, 9262, 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,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 1025, 12324, 9262, 1012, 30526 ]
/* * stmp378x: USBCTRL register definitions * * Copyright (c) 2008 Freescale Semiconductor * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define REGS_USBCTRL_BASE (STMP3XXX_REGS_BASE + 0x80000) #define REGS_USBCTRL_PHYS 0x80080000 #define REGS_USBCTRL_SIZE 0x2000 #define HW_USBCTRL_USBCMD 0x140 #define BM_USBCTRL_USBCMD_RS 0x00000001 #define BP_USBCTRL_USBCMD_RS 0 #define BM_USBCTRL_USBCMD_RST 0x00000002 #define HW_USBCTRL_USBINTR 0x148 #define BM_USBCTRL_USBINTR_UE 0x00000001 #define BP_USBCTRL_USBINTR_UE 0 #define HW_USBCTRL_PORTSC1 0x184 #define BM_USBCTRL_PORTSC1_PHCD 0x00800000 #define HW_USBCTRL_OTGSC 0x1A4 #define BM_USBCTRL_OTGSC_ID 0x00000100 #define BM_USBCTRL_OTGSC_IDIS 0x00010000 #define BM_USBCTRL_OTGSC_IDIE 0x01000000
wkritzinger/asuswrt-merlin
release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/arm/mach-stmp378x/include/mach/regs-usbctrl.h
C
gpl-2.0
1,491
[ 30522, 1013, 1008, 1008, 2358, 8737, 24434, 2620, 2595, 1024, 18833, 6593, 12190, 4236, 15182, 1008, 1008, 9385, 1006, 1039, 1007, 2263, 2489, 15782, 2571, 20681, 1008, 9385, 2263, 11157, 8975, 7300, 1010, 4297, 2035, 2916, 9235, 1012, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1008, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1008, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 1008, 2247, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 1008, 3192, 1010, 4297, 1012, 1010, 5354, 3379, 2173, 1010, 7621, 14210, 1010, 3731, 1010, 5003, 6185, 14526, 2487, 1011, 7558, 2581, 3915, 1008, 1013, 1001, 9375, 19723, 2015, 1035, 18833, 6593, 12190, 1035, 2918, 1006, 2358, 8737, 2509, 20348, 2595, 1035, 19723, 2015, 1035, 2918, 1009, 1014, 2595, 17914, 8889, 2692, 1007, 1001, 9375, 19723, 2015, 1035, 18833, 6593, 12190, 1035, 6887, 7274, 1014, 2595, 17914, 2692, 17914, 8889, 2692, 1001, 9375, 19723, 2015, 1035, 18833, 6593, 12190, 1035, 2946, 1014, 2595, 28332, 2692, 1001, 9375, 1044, 2860, 1035, 18833, 6593, 12190, 1035, 18833, 27487, 2094, 1014, 2595, 16932, 2692, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 18833, 27487, 2094, 1035, 12667, 1014, 2595, 8889, 8889, 8889, 24096, 1001, 9375, 17531, 1035, 18833, 6593, 12190, 1035, 18833, 27487, 2094, 1035, 12667, 1014, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 18833, 27487, 2094, 1035, 12667, 2102, 1014, 2595, 8889, 8889, 8889, 2692, 2475, 1001, 9375, 1044, 2860, 1035, 18833, 6593, 12190, 30524, 18447, 2099, 1035, 1057, 2063, 1014, 1001, 9375, 1044, 2860, 1035, 18833, 6593, 12190, 1035, 8831, 2278, 2487, 1014, 2595, 15136, 2549, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 8831, 2278, 2487, 1035, 6887, 19797, 1014, 2595, 8889, 17914, 8889, 8889, 1001, 9375, 1044, 2860, 1035, 18833, 6593, 12190, 1035, 27178, 5620, 2278, 1014, 2595, 2487, 2050, 2549, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 27178, 5620, 2278, 1035, 8909, 1014, 2595, 8889, 8889, 24096, 8889, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 27178, 5620, 2278, 1035, 8909, 2483, 1014, 2595, 8889, 24096, 8889, 8889, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 27178, 5620, 2278, 1035, 8909, 2666, 1014, 2595, 24096, 8889, 8889, 8889, 30523, 1035, 18833, 18447, 2099, 1014, 2595, 16932, 2620, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 18833, 18447, 2099, 1035, 1057, 2063, 1014, 2595, 8889, 8889, 8889, 24096, 1001, 9375, 17531, 1035, 18833, 6593, 12190, 1035, 18833, 30526 ]
[ 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, 1035, 18833, 18447, 2099, 1014, 2595, 16932, 2620, 1001, 9375, 1038, 2213, 1035, 18833, 6593, 12190, 1035, 18833, 18447, 2099, 1035, 1057, 2063, 1014, 2595, 8889, 8889, 8889, 24096, 1001, 9375, 17531, 1035, 18833, 6593, 12190, 1035, 18833, 30526 ]
Cypress.Commands.add('fetchQuery', (query, variables) => { cy.request({ url: '/graphql', method: 'POST', body: JSON.stringify({ query, variables }), headers: { 'Content-Type': 'application/json' } }); });
nomkhonwaan/nomkhonwaan.com
cypress/support/graphql.js
JavaScript
mit
235
[ 30522, 22183, 1012, 10954, 1012, 5587, 1006, 1005, 18584, 4226, 2854, 1005, 1010, 1006, 23032, 1010, 10857, 1007, 1027, 1028, 1063, 22330, 1012, 5227, 1006, 1063, 24471, 2140, 1024, 1005, 1013, 10629, 4160, 2140, 1005, 1010, 4118, 1024, 1005, 2695, 1005, 1010, 2303, 1024, 1046, 3385, 1012, 5164, 8757, 1006, 1063, 23032, 1010, 10857, 1065, 1007, 1010, 20346, 2015, 1024, 1063, 1005, 4180, 1011, 2828, 1005, 1024, 1005, 4646, 1013, 1046, 3385, 1005, 1065, 1065, 1007, 1025, 1065, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
/* * Fadecandy DFU Bootloader * * Copyright (c) 2013 Micah Elizabeth Scott * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <stdbool.h> #include "usb_dev.h" #include "serial.h" #include "mk20dx128.h" extern uint32_t boot_token; static __attribute__ ((section(".appvectors"))) uint32_t appVectors[64]; const uint32_t led_bit = 1 << 5; static void led_init() { // Set the status LED on PC5, as an indication that we're in bootloading mode. PORTC_PCR5 = PORT_PCR_MUX(1) | PORT_PCR_DSE | PORT_PCR_SRE; GPIOC_PDDR = led_bit; GPIOC_PDOR = led_bit; } static void led_toggle() { GPIOC_PTOR = led_bit; } static bool test_boot_token() { /* * If we find a valid boot token in RAM, the application is asking us explicitly * to enter DFU mode. This is used to implement the DFU_DETACH command when the app * is running. */ return boot_token == 0x74624346; } static bool test_app_missing() { /* * If there doesn't seem to be a valid application installed, we always go to * bootloader mode. */ uint32_t entry = appVectors[1]; return entry < 0x00001000 || entry >= 128 * 1024; } static bool test_banner_echo() { /* * At startup we print this banner out to the serial port. * If we see it echo back to us, we enter bootloader mode no matter what. * This is intended to be a foolproof way to enter recovery mode, even if other * circuitry has been connected to the serial port. */ static char banner[] = "FC-Boot"; const unsigned bannerLength = sizeof banner - 1; unsigned matched = 0; // Write banner serial_begin(BAUD2DIV(9600)); serial_write(banner, sizeof banner - 1); // Newline is not technically part of the banner, so we can do the RX check // at a time when we're sure the other characters have arrived in the RX fifo. serial_putchar('\n'); serial_flush(); while (matched < bannerLength) { if (serial_available() && serial_getchar() == banner[matched]) { matched++; } else { break; } } serial_end(); return matched == bannerLength; } static void app_launch() { // Relocate IVT to application flash __disable_irq(); SCB_VTOR = (uint32_t) &appVectors[0]; // Refresh watchdog right before launching app watchdog_refresh(); // Clear the boot token, so we don't repeatedly enter DFU mode. boot_token = 0; asm volatile ( "mov lr, %0 \n\t" "mov sp, %1 \n\t" "bx %2 \n\t" : : "r" (0xFFFFFFFF), "r" (appVectors[0]), "r" (appVectors[1]) ); } int main() { if (test_banner_echo() || test_app_missing() || test_boot_token()) { unsigned i, j; // We're doing DFU mode! led_init(); dfu_init(); usb_init(); // Wait for firmware download while (dfu_getstate() != dfuMANIFEST) { watchdog_refresh(); } // Clear boot token, to enter the new application boot_token = 0; // Wait a little bit longer, while flashing the LED. for (i = 11; i; --i) { led_toggle(); for (j = 100000; j; --j) { watchdog_refresh(); } } // USB disconnect and reboot, using watchdog to time 10ms. watchdog_refresh(); __disable_irq(); USB0_CONTROL = 0; while (1); } app_launch(); return 0; }
marcinkaszynski/burner-files
vendor/fadecandy/bootloader/bootloader.c
C
mit
4,522
[ 30522, 1013, 1008, 1008, 12985, 9336, 5149, 1040, 11263, 9573, 11066, 2121, 1008, 1008, 9385, 1006, 1039, 1007, 2286, 17665, 3870, 3660, 1008, 1008, 6656, 2003, 2182, 3762, 4379, 1010, 2489, 1997, 3715, 1010, 2000, 2151, 2711, 11381, 1037, 6100, 1997, 1008, 2023, 4007, 1998, 3378, 12653, 6764, 1006, 1996, 1000, 4007, 1000, 1007, 1010, 2000, 3066, 1999, 1008, 1996, 4007, 2302, 16840, 1010, 2164, 2302, 22718, 1996, 2916, 2000, 1008, 2224, 1010, 6100, 1010, 19933, 1010, 13590, 1010, 10172, 1010, 16062, 1010, 4942, 13231, 12325, 1010, 1998, 1013, 2030, 5271, 4809, 1997, 1008, 1996, 4007, 1010, 1998, 2000, 9146, 5381, 2000, 3183, 1996, 4007, 2003, 19851, 2000, 2079, 2061, 1010, 1008, 3395, 2000, 1996, 2206, 3785, 1024, 1008, 1008, 1996, 2682, 9385, 5060, 1998, 2023, 6656, 5060, 4618, 2022, 2443, 1999, 2035, 1008, 4809, 2030, 6937, 8810, 1997, 1996, 4007, 1012, 1008, 1008, 1996, 4007, 2003, 3024, 1000, 2004, 2003, 1000, 1010, 2302, 10943, 2100, 1997, 2151, 2785, 1010, 4671, 2030, 1008, 13339, 1010, 2164, 2021, 2025, 3132, 2000, 1996, 10943, 3111, 1997, 6432, 8010, 1010, 10516, 1008, 2005, 1037, 3327, 3800, 1998, 2512, 2378, 19699, 23496, 3672, 1012, 1999, 2053, 2724, 4618, 1996, 6048, 2030, 1008, 9385, 13304, 2022, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 14000, 1010, 3251, 1008, 1999, 2019, 2895, 1997, 3206, 1010, 17153, 2102, 2030, 4728, 1010, 17707, 2013, 1010, 2041, 1997, 2030, 1999, 1008, 4434, 2007, 1996, 4007, 2030, 1996, 2224, 2030, 2060, 24069, 1999, 1996, 4007, 1012, 1008, 1013, 1001, 2421, 1026, 2358, 18939, 13669, 1012, 1044, 1028, 1001, 2421, 1000, 18833, 1035, 16475, 1012, 1044, 1000, 1001, 2421, 1000, 7642, 1012, 1044, 1000, 1001, 2421, 1000, 12395, 11387, 2094, 2595, 12521, 2620, 1012, 1044, 1000, 4654, 16451, 21318, 3372, 16703, 1035, 1056, 9573, 1035, 19204, 1025, 10763, 1035, 1035, 17961, 1035, 1035, 1006, 1006, 2930, 1006, 1000, 1012, 10439, 3726, 24817, 1000, 1007, 1007, 1007, 21318, 3372, 16703, 1035, 1056, 10439, 3726, 24817, 1031, 4185, 1033, 1025, 9530, 3367, 21318, 3372, 16703, 1035, 1056, 2419, 1035, 2978, 1027, 1015, 1026, 1026, 1019, 1025, 10763, 11675, 2419, 1035, 1999, 4183, 1006, 1007, 1063, 1013, 1013, 2275, 1996, 3570, 2419, 2006, 7473, 2629, 1010, 2004, 2019, 12407, 2008, 2057, 1005, 2128, 1999, 9573, 18570, 5549, 1012, 3417, 2278, 1035, 7473, 2099, 2629, 1027, 3417, 1035, 7473, 2099, 1035, 14163, 2595, 1006, 1015, 1007, 1064, 3417, 1035, 7473, 2099, 1035, 16233, 2063, 1064, 3417, 1035, 7473, 2099, 1035, 5034, 2063, 1025, 14246, 3695, 2278, 1035, 22851, 13626, 1027, 2419, 1035, 2978, 1025, 14246, 3695, 2278, 1035, 22851, 2953, 1027, 2419, 1035, 2978, 1025, 1065, 10763, 11675, 2419, 1035, 2000, 24679, 1006, 1007, 1063, 14246, 3695, 2278, 1035, 13866, 2953, 1027, 2419, 1035, 2978, 1025, 1065, 10763, 30524, 1010, 1996, 4646, 2003, 4851, 2149, 12045, 1008, 2000, 4607, 1040, 11263, 5549, 1012, 2023, 2003, 2109, 2000, 10408, 1996, 1040, 11263, 1035, 20010, 30523, 22017, 2140, 3231, 1035, 9573, 1035, 19204, 1006, 1007, 1063, 1013, 1008, 1008, 2065, 2057, 2424, 1037, 9398, 9573, 19204, 1999, 8223, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 22017, 2140, 3231, 1035, 9573, 1035, 19204, 1006, 1007, 1063, 1013, 1008, 1008, 2065, 2057, 2424, 1037, 9398, 9573, 19204, 1999, 8223, 30526 ]
/* * Copyright 2010-2015 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.support.model; import java.io.Serializable; /** * <p> * The ID and expiry time of the attachment set returned by the * <a>AddAttachmentsToSet</a> operation. * </p> */ public class AddAttachmentsToSetResult implements Serializable, Cloneable { /** * <p> * The ID of the attachment set. If an <code>AttachmentSetId</code> was not * specified, a new attachment set is created, and the ID of the set is * returned in the response. If an <code>AttachmentSetId</code> was * specified, the attachments are added to the specified set, if it exists. * </p> */ private String attachmentSetId; /** * <p> * The time and date when the attachment set expires. * </p> */ private String expiryTime; /** * <p> * The ID of the attachment set. If an <code>AttachmentSetId</code> was not * specified, a new attachment set is created, and the ID of the set is * returned in the response. If an <code>AttachmentSetId</code> was * specified, the attachments are added to the specified set, if it exists. * </p> * * @param attachmentSetId * The ID of the attachment set. If an <code>AttachmentSetId</code> * was not specified, a new attachment set is created, and the ID of * the set is returned in the response. If an * <code>AttachmentSetId</code> was specified, the attachments are * added to the specified set, if it exists. */ public void setAttachmentSetId(String attachmentSetId) { this.attachmentSetId = attachmentSetId; } /** * <p> * The ID of the attachment set. If an <code>AttachmentSetId</code> was not * specified, a new attachment set is created, and the ID of the set is * returned in the response. If an <code>AttachmentSetId</code> was * specified, the attachments are added to the specified set, if it exists. * </p> * * @return The ID of the attachment set. If an <code>AttachmentSetId</code> * was not specified, a new attachment set is created, and the ID of * the set is returned in the response. If an * <code>AttachmentSetId</code> was specified, the attachments are * added to the specified set, if it exists. */ public String getAttachmentSetId() { return this.attachmentSetId; } /** * <p> * The ID of the attachment set. If an <code>AttachmentSetId</code> was not * specified, a new attachment set is created, and the ID of the set is * returned in the response. If an <code>AttachmentSetId</code> was * specified, the attachments are added to the specified set, if it exists. * </p> * * @param attachmentSetId * The ID of the attachment set. If an <code>AttachmentSetId</code> * was not specified, a new attachment set is created, and the ID of * the set is returned in the response. If an * <code>AttachmentSetId</code> was specified, the attachments are * added to the specified set, if it exists. * @return Returns a reference to this object so that method calls can be * chained together. */ public AddAttachmentsToSetResult withAttachmentSetId(String attachmentSetId) { setAttachmentSetId(attachmentSetId); return this; } /** * <p> * The time and date when the attachment set expires. * </p> * * @param expiryTime * The time and date when the attachment set expires. */ public void setExpiryTime(String expiryTime) { this.expiryTime = expiryTime; } /** * <p> * The time and date when the attachment set expires. * </p> * * @return The time and date when the attachment set expires. */ public String getExpiryTime() { return this.expiryTime; } /** * <p> * The time and date when the attachment set expires. * </p> * * @param expiryTime * The time and date when the attachment set expires. * @return Returns a reference to this object so that method calls can be * chained together. */ public AddAttachmentsToSetResult withExpiryTime(String expiryTime) { setExpiryTime(expiryTime); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: " + getAttachmentSetId() + ","); if (getExpiryTime() != null) sb.append("ExpiryTime: " + getExpiryTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddAttachmentsToSetResult == false) return false; AddAttachmentsToSetResult other = (AddAttachmentsToSetResult) obj; if (other.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null) return false; if (other.getAttachmentSetId() != null && other.getAttachmentSetId().equals(this.getAttachmentSetId()) == false) return false; if (other.getExpiryTime() == null ^ this.getExpiryTime() == null) return false; if (other.getExpiryTime() != null && other.getExpiryTime().equals(this.getExpiryTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId() .hashCode()); hashCode = prime * hashCode + ((getExpiryTime() == null) ? 0 : getExpiryTime().hashCode()); return hashCode; } @Override public AddAttachmentsToSetResult clone() { try { return (AddAttachmentsToSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }
mahaliachante/aws-sdk-java
aws-java-sdk-support/src/main/java/com/amazonaws/services/support/model/AddAttachmentsToSetResult.java
Java
apache-2.0
7,304
[ 30522, 1013, 1008, 1008, 9385, 2230, 1011, 2325, 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, 30524, 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, 2490, 1012, 2944, 1025, 12324, 9262, 1012, 22834, 1012, 7642, 21335, 3468, 1025, 1013, 1008, 1008, 1008, 1026, 1052, 1028, 1008, 1996, 8909, 1998, 4654, 8197, 2854, 2051, 1997, 1996, 14449, 2275, 2513, 2011, 1996, 1008, 1026, 1037, 1028, 5587, 19321, 6776, 8163, 22282, 2102, 1026, 1013, 1037, 1028, 3169, 1012, 1008, 1026, 1013, 1052, 1028, 1008, 1013, 2270, 2465, 5587, 19321, 6776, 8163, 22282, 19168, 11314, 22164, 7642, 21335, 3468, 1010, 17598, 3085, 1063, 1013, 1008, 1008, 1008, 1026, 1052, 1028, 1008, 1996, 8909, 1997, 1996, 14449, 2275, 1012, 2065, 2019, 1026, 3642, 1028, 14449, 13462, 3593, 1026, 1013, 3642, 1028, 2001, 2025, 1008, 9675, 1010, 1037, 2047, 14449, 2275, 2003, 2580, 1010, 1998, 1996, 8909, 1997, 1996, 2275, 2003, 1008, 2513, 1999, 1996, 3433, 1012, 2065, 2019, 1026, 3642, 1028, 14449, 13462, 3593, 1026, 1013, 3642, 1028, 2001, 1008, 9675, 1010, 1996, 14449, 2015, 2024, 2794, 2000, 1996, 9675, 2275, 1010, 2065, 2009, 6526, 1012, 1008, 1026, 1013, 1052, 1028, 1008, 1013, 2797, 5164, 14449, 13462, 3593, 1025, 1013, 1008, 1008, 1008, 1026, 1052, 1028, 1008, 1996, 2051, 1998, 3058, 2043, 1996, 14449, 2275, 4654, 20781, 2015, 1012, 1008, 1026, 1013, 1052, 1028, 1008, 1013, 2797, 5164, 4654, 8197, 2854, 7292, 1025, 1013, 1008, 1008, 1008, 1026, 1052, 1028, 1008, 1996, 8909, 1997, 1996, 14449, 2275, 1012, 2065, 2019, 1026, 3642, 1028, 14449, 13462, 3593, 1026, 1013, 3642, 1028, 2001, 2025, 1008, 9675, 1010, 1037, 2047, 14449, 2275, 2003, 2580, 1010, 1998, 1996, 8909, 1997, 1996, 2275, 2003, 1008, 2513, 1999, 1996, 3433, 1012, 2065, 2019, 1026, 3642, 1028, 14449, 13462, 3593, 1026, 1013, 3642, 1028, 2001, 1008, 9675, 1010, 1996, 14449, 2015, 2024, 2794, 2000, 1996, 9675, 2275, 1010, 2065, 2009, 6526, 1012, 1008, 1026, 1013, 1052, 1028, 1008, 1008, 1030, 11498, 2213, 14449, 13462, 3593, 1008, 1996, 8909, 1997, 1996, 14449, 2275, 1012, 2065, 2019, 1026, 3642, 1028, 14449, 13462, 3593, 1026, 1013, 3642, 1028, 1008, 2001, 2025, 9675, 1010, 1037, 2047, 14449, 2275, 2003, 2580, 1010, 1998, 1996, 8909, 1997, 1008, 1996, 2275, 2003, 2513, 1999, 1996, 3433, 1012, 2065, 2019, 1008, 1026, 3642, 30523, 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, 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, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 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, 30526 ]
package org.clulab.twitter4food.featureclassifier import com.typesafe.config.ConfigFactory import org.clulab.twitter4food.struct.TwitterAccount import org.clulab.twitter4food.util.{Eval, FileUtils} import org.slf4j.LoggerFactory object GenderSuite { def main(args: Array[String]) { val logger = LoggerFactory.getLogger(this.getClass) val config = ConfigFactory.load val toTrainOn = { logger.info("Loading training accounts...") val train = FileUtils.loadTwitterAccounts(config.getString("classifiers.gender.trainingData")) logger.info("Loading dev accounts...") val dev = FileUtils.loadTwitterAccounts(config.getString("classifiers.gender.devData")) train ++ dev } logger.info("Loading follower accounts...") val followers = Map[String, Seq[TwitterAccount]]() //ClassifierImpl.loadFollowers(toTrainOn.keys.toSeq) logger.info("Loading followee accounts...") val followees = ClassifierImpl.loadFollowees(toTrainOn.keys.toSeq, "gender") val gc = new GenderClassifier( useUnigrams = true, //useBigrams = true, // bigrams are costly and hurt performance useName = true, useTopics = true, useDictionaries = true, useAvgEmbeddings = true, useMinEmbeddings = true, useMaxEmbeddings = true, useCosineSim = true, useTimeDate = true, //useFollowers = true, // we don't currently have their followers useFollowees = true, useRT = true, datumScaling = true ) gc.featureSelectionIncremental(toTrainOn, followers, followees, Eval.microOnly) } }
clulab/twitter4food
src/main/scala/org/clulab/twitter4food/featureclassifier/GenderSuite.scala
Scala
apache-2.0
1,597
[ 30522, 7427, 8917, 1012, 18856, 7068, 2497, 1012, 10474, 2549, 14876, 7716, 1012, 3444, 26266, 18095, 12324, 4012, 1012, 4127, 10354, 2063, 1012, 9530, 8873, 2290, 1012, 9530, 8873, 25708, 18908, 10253, 12324, 8917, 1012, 18856, 7068, 2497, 1012, 10474, 2549, 14876, 7716, 1012, 2358, 6820, 6593, 1012, 10474, 6305, 3597, 16671, 12324, 8917, 1012, 18856, 7068, 2497, 1012, 10474, 2549, 14876, 7716, 1012, 21183, 4014, 1012, 1063, 9345, 2140, 1010, 5371, 21823, 4877, 1065, 12324, 8917, 1012, 22889, 2546, 2549, 3501, 1012, 8833, 4590, 21450, 4874, 5907, 28880, 2063, 1063, 13366, 2364, 1006, 12098, 5620, 1024, 9140, 1031, 5164, 1033, 1007, 1063, 11748, 8833, 4590, 1027, 8833, 4590, 21450, 1012, 2131, 21197, 4590, 1006, 2023, 1012, 2131, 26266, 1007, 11748, 9530, 8873, 2290, 1027, 9530, 8873, 25708, 18908, 10253, 1012, 7170, 11748, 2000, 23654, 2239, 1027, 1063, 8833, 4590, 1012, 18558, 1006, 1000, 10578, 2731, 6115, 1012, 1012, 1012, 1000, 1007, 11748, 3345, 1027, 5371, 21823, 4877, 1012, 7170, 2102, 9148, 12079, 6305, 3597, 16671, 2015, 1006, 9530, 8873, 2290, 1012, 4152, 18886, 3070, 1006, 1000, 2465, 28295, 1012, 5907, 1012, 2731, 2850, 2696, 1000, 1007, 1007, 8833, 4590, 1012, 18558, 1006, 1000, 10578, 16475, 6115, 1012, 1012, 1012, 1000, 1007, 11748, 16475, 1027, 5371, 21823, 4877, 1012, 7170, 2102, 9148, 12079, 6305, 3597, 16671, 2015, 1006, 9530, 8873, 2290, 1012, 4152, 18886, 3070, 1006, 1000, 2465, 28295, 1012, 5907, 1012, 16475, 2850, 2696, 1000, 1007, 1007, 3345, 1009, 1009, 16475, 1065, 8833, 4590, 1012, 18558, 1006, 1000, 10578, 22399, 6115, 1012, 1012, 1012, 1000, 1007, 11748, 8771, 1027, 4949, 1031, 5164, 1010, 7367, 4160, 1031, 10474, 6305, 3597, 16671, 1033, 1033, 1006, 1007, 1013, 1013, 2465, 18095, 5714, 24759, 1012, 7170, 14876, 7174, 13777, 2015, 1006, 2000, 23654, 2239, 1012, 6309, 1012, 2000, 3366, 4160, 1007, 8833, 4590, 1012, 18558, 1006, 1000, 10578, 3582, 4402, 6115, 1012, 1012, 1012, 1000, 1007, 11748, 3582, 10285, 1027, 2465, 18095, 5714, 24759, 1012, 7170, 14876, 7174, 28394, 2015, 1006, 2000, 23654, 2239, 1012, 6309, 1012, 2000, 3366, 4160, 1010, 1000, 5907, 1000, 1007, 11748, 1043, 2278, 1027, 2047, 5907, 26266, 18095, 1006, 2224, 19496, 13113, 2015, 1027, 2995, 1010, 1013, 1013, 2224, 5638, 13113, 2015, 1027, 2995, 1010, 1013, 1013, 2502, 6444, 2015, 2024, 17047, 1998, 3480, 2836, 2224, 18442, 1027, 2995, 1010, 2224, 14399, 6558, 1027, 2995, 1010, 2109, 28097, 12086, 1027, 2995, 1010, 2224, 11431, 3351, 18552, 27027, 2015, 1027, 2995, 1010, 2224, 11233, 18552, 27027, 2015, 1027, 2995, 1010, 2224, 17848, 6633, 8270, 4667, 2015, 1027, 2995, 1010, 2224, 13186, 10586, 5714, 1027, 2995, 1010, 2224, 7292, 13701, 1027, 2995, 1010, 1013, 1013, 2224, 14876, 7174, 13777, 2015, 1027, 2995, 1010, 30524, 1027, 2995, 1007, 1043, 2278, 1012, 2838, 12260, 7542, 2378, 16748, 26901, 1006, 2000, 23654, 2239, 1010, 8771, 1010, 3582, 10285, 1010, 9345, 2140, 1012, 12702, 2239, 2135, 1007, 30523, 1013, 1013, 2057, 2123, 1005, 1056, 2747, 2031, 2037, 8771, 2224, 14876, 7174, 28394, 2015, 1027, 2995, 1010, 5310, 2102, 1027, 2995, 1010, 23755, 18163, 9289, 2075, 30526 ]
[ 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1013, 2057, 2123, 1005, 1056, 2747, 2031, 2037, 8771, 2224, 14876, 7174, 28394, 2015, 1027, 2995, 1010, 5310, 2102, 1027, 2995, 1010, 23755, 18163, 9289, 2075, 30526 ]
package it.unibz.krdb.obda.model.impl; /* * #%L * ontop-obdalib-core * %% * Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano * %% * 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. * #L% */ import it.unibz.krdb.obda.model.BooleanOperationPredicate; public class BooleanOperationPredicateImpl extends PredicateImpl implements BooleanOperationPredicate { private static final long serialVersionUID = 360476649400908702L; protected BooleanOperationPredicateImpl(String name) { super(name, 1, null); } protected BooleanOperationPredicateImpl(String name, int arity) { super(name, arity, null); } protected BooleanOperationPredicateImpl(String name, int arity, COL_TYPE[] types) { super(name, arity, types); } @Override public BooleanOperationPredicate clone() { return this; } }
clarkparsia/ontop
obdalib-core/src/main/java/it/unibz/krdb/obda/model/impl/BooleanOperationPredicateImpl.java
Java
apache-2.0
1,326
[ 30522, 7427, 2009, 1012, 4895, 12322, 2480, 1012, 1047, 4103, 2497, 1012, 27885, 2850, 1012, 2944, 1012, 17727, 2140, 1025, 1013, 1008, 1008, 1001, 1003, 1048, 1008, 3031, 2361, 1011, 27885, 9305, 12322, 1011, 4563, 1008, 1003, 1003, 1008, 9385, 1006, 1039, 1007, 2268, 1011, 2297, 2489, 2118, 1997, 8945, 10431, 1011, 8945, 23858, 6761, 1008, 1003, 1003, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1001, 1048, 1003, 1008, 1013, 12324, 2009, 1012, 4895, 12322, 2480, 1012, 1047, 4103, 2497, 1012, 27885, 2850, 1012, 2944, 1012, 22017, 20898, 25918, 3370, 28139, 16467, 1025, 2270, 2465, 22017, 20898, 25918, 3370, 28139, 16467, 5714, 24759, 8908, 3653, 16467, 5714, 24759, 22164, 22017, 20898, 25918, 3370, 28139, 16467, 1063, 2797, 10763, 2345, 2146, 7642, 27774, 21272, 1027, 9475, 22610, 28756, 26224, 29537, 21057, 2620, 19841, 2475, 2140, 1025, 5123, 22017, 20898, 25918, 3370, 28139, 16467, 5714, 24759, 1006, 5164, 2171, 1007, 1063, 3565, 1006, 2171, 1010, 1015, 1010, 19701, 1007, 1025, 1065, 5123, 22017, 20898, 25918, 3370, 28139, 16467, 5714, 24759, 1006, 5164, 2171, 1010, 20014, 10488, 3723, 1007, 1063, 3565, 1006, 2171, 1010, 10488, 3723, 1010, 19701, 1007, 1025, 1065, 5123, 22017, 20898, 25918, 3370, 28139, 16467, 5714, 24759, 1006, 5164, 2171, 1010, 20014, 10488, 3723, 1010, 8902, 1035, 2828, 1031, 1033, 4127, 1007, 1063, 3565, 1006, 2171, 1010, 10488, 3723, 1010, 4127, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 22017, 20898, 25918, 3370, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 28139, 16467, 17598, 1006, 1007, 1063, 2709, 2023, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 28139, 16467, 17598, 1006, 1007, 1063, 2709, 2023, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
<?php namespace Starlit\App; class ConfigTest extends \PHPUnit_Framework_TestCase { /** * @var array */ private $testData = [ 'someValue' => 123, 'someEmptyValue' => null, 'someArray' => ['key1' => 456], 'someEmptyArray' => ['key1' => null, 'key2' => ''], ]; /** * @var Config */ private $config; protected function setUp() { $this->config = new Config($this->testData); } public function testHasIsTrue() { $this->assertTrue($this->config->has('someValue')); $this->assertTrue($this->config->has('someArray')); } public function testHasIsFalse() { $this->assertFalse($this->config->has('someEmptyValue')); $this->assertFalse($this->config->has('someNonExistantValue')); $this->assertFalse($this->config->has('someEmptyArray')); } public function testGetGivesValue() { $this->assertEquals($this->testData['someValue'], $this->config->get('someValue')); } public function testGetGivesDefault() { $this->assertEquals(456, $this->config->get('someEmptyValue', 456)); } public function testGetRequiredGivesValue() { $this->assertEquals($this->testData['someValue'], $this->config->getRequired('someValue')); } public function testGetRequiredThrowsException() { $this->expectException(\RuntimeException::class); $this->config->getRequired('someEmptyValue'); } public function testAllReturnsAll() { $this->assertEquals($this->testData, $this->config->all()); } public function testOffsetExists() { $this->assertTrue(isset($this->config['someValue'])); } public function testOffsetGet() { $this->assertEquals($this->testData['someValue'], $this->config['someValue']); } public function testOffsetSet() { $this->expectException(\LogicException::class); $this->config['someValue'] = 789; } public function testOffsetUnset() { $this->expectException(\LogicException::class); unset($this->config['someValue']); } }
starweb/flare-app
tests/ConfigTest.php
PHP
bsd-3-clause
2,180
[ 30522, 1026, 1029, 25718, 3415, 15327, 2732, 15909, 1032, 10439, 1025, 2465, 9530, 8873, 13512, 4355, 8908, 1032, 25718, 19496, 2102, 1035, 7705, 1035, 3231, 18382, 1063, 1013, 1008, 1008, 1008, 1030, 13075, 9140, 1008, 1013, 2797, 1002, 3231, 2850, 2696, 1027, 1031, 1005, 2070, 10175, 5657, 1005, 1027, 1028, 13138, 1010, 1005, 2070, 6633, 13876, 2100, 10175, 5657, 1005, 1027, 1028, 19701, 1010, 1005, 2070, 2906, 9447, 1005, 1027, 1028, 1031, 1005, 3145, 2487, 1005, 1027, 1028, 3429, 2575, 1033, 1010, 1005, 2070, 6633, 13876, 13380, 9447, 1005, 1027, 1028, 1031, 1005, 3145, 2487, 1005, 1027, 1028, 19701, 1010, 1005, 3145, 2475, 1005, 1027, 1028, 1005, 1005, 1033, 1010, 1033, 1025, 1013, 1008, 1008, 1008, 1030, 13075, 9530, 8873, 2290, 1008, 1013, 2797, 1002, 9530, 8873, 2290, 1025, 5123, 3853, 16437, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1027, 2047, 9530, 8873, 2290, 1006, 1002, 2023, 1011, 1028, 30524, 1028, 2038, 1006, 1005, 2070, 10175, 5657, 1005, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 20865, 16344, 5657, 1006, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2038, 1006, 1005, 2070, 2906, 9447, 1005, 1007, 1007, 1025, 1065, 2270, 3853, 3231, 14949, 2483, 7011, 4877, 2063, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 20865, 7011, 4877, 2063, 1006, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2038, 1006, 1005, 2070, 6633, 13876, 2100, 10175, 5657, 1005, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 20865, 7011, 4877, 2063, 1006, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2038, 1006, 1005, 2070, 8540, 10288, 23137, 9189, 2389, 5657, 1005, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 20865, 7011, 4877, 2063, 1006, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2038, 1006, 1005, 2070, 6633, 13876, 13380, 9447, 1005, 1007, 1007, 1025, 1065, 2270, 3853, 3231, 18150, 5856, 6961, 10175, 5657, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 20865, 2063, 26426, 2015, 1006, 1002, 2023, 1011, 1028, 3231, 2850, 2696, 1031, 1005, 2070, 10175, 5657, 1005, 1033, 1010, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2131, 1006, 1005, 2070, 10175, 5657, 1005, 1007, 1007, 1025, 1065, 2270, 3853, 3231, 18150, 5856, 6961, 3207, 7011, 11314, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 20865, 2063, 26426, 2015, 1006, 3429, 2575, 1010, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2131, 1006, 1005, 2070, 6633, 13876, 2100, 10175, 5657, 1005, 1010, 3429, 2575, 1007, 1007, 1025, 1065, 2270, 3853, 3231, 18150, 2890, 15549, 5596, 5856, 6961, 10175, 5657, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 20865, 2063, 26426, 2015, 1006, 1002, 2023, 1011, 1028, 3231, 2850, 2696, 1031, 1005, 2070, 10175, 5657, 1005, 1033, 1010, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 1028, 2131, 2890, 15549, 5596, 1006, 1005, 2070, 10175, 5657, 1005, 1007, 1007, 1025, 1065, 2270, 3853, 3231, 18150, 2890, 30523, 3231, 2850, 2696, 1007, 1025, 1065, 2270, 3853, 3231, 14949, 2923, 6820, 2063, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 20865, 16344, 5657, 1006, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3231, 2850, 2696, 1007, 1025, 1065, 2270, 3853, 3231, 14949, 2923, 6820, 2063, 1006, 1007, 1063, 1002, 2023, 1011, 1028, 20865, 16344, 5657, 1006, 1002, 2023, 1011, 1028, 9530, 8873, 2290, 1011, 30526 ]
{-# LANGUAGE TemplateHaskell #-} -- Copyright (C) 2010-2012 John Millikin <john@john-millikin.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. module DBusTests.Signature (test_Signature) where import Test.Chell import Test.Chell.QuickCheck import Test.QuickCheck hiding ((.&.), property) import DBus import DBusTests.Util test_Signature :: Suite test_Signature = suite "Signature" [ test_BuildSignature , test_ParseSignature , test_ParseInvalid , test_FormatSignature , test_IsAtom , test_ShowType ] test_BuildSignature :: Test test_BuildSignature = property "signature" prop where prop = forAll gen_SignatureTypes check check types = case signature types of Nothing -> False Just sig -> signatureTypes sig == types test_ParseSignature :: Test test_ParseSignature = property "parseSignature" prop where prop = forAll gen_SignatureString check check (s, types) = case parseSignature s of Nothing -> False Just sig -> signatureTypes sig == types test_ParseInvalid :: Test test_ParseInvalid = assertions "parse-invalid" $ do -- at most 255 characters $expect (just (parseSignature (replicate 254 'y'))) $expect (just (parseSignature (replicate 255 'y'))) $expect (nothing (parseSignature (replicate 256 'y'))) -- length also enforced by 'signature' $expect (just (signature (replicate 255 TypeWord8))) $expect (nothing (signature (replicate 256 TypeWord8))) -- struct code $expect (nothing (parseSignature "r")) -- empty struct $expect (nothing (parseSignature "()")) $expect (nothing (signature [TypeStructure []])) -- dict code $expect (nothing (parseSignature "e")) -- non-atomic dict key $expect (nothing (parseSignature "a{vy}")) $expect (nothing (signature [TypeDictionary TypeVariant TypeVariant])) test_FormatSignature :: Test test_FormatSignature = property "formatSignature" prop where prop = forAll gen_SignatureString check check (s, _) = let Just sig = parseSignature s in formatSignature sig == s test_IsAtom :: Test test_IsAtom = assertions "IsAtom" $ do let Just sig = signature [] assertAtom TypeSignature sig test_ShowType :: Test test_ShowType = assertions "show-type" $ do $expect (equal "Bool" (show TypeBoolean)) $expect (equal "Bool" (show TypeBoolean)) $expect (equal "Word8" (show TypeWord8)) $expect (equal "Word16" (show TypeWord16)) $expect (equal "Word32" (show TypeWord32)) $expect (equal "Word64" (show TypeWord64)) $expect (equal "Int16" (show TypeInt16)) $expect (equal "Int32" (show TypeInt32)) $expect (equal "Int64" (show TypeInt64)) $expect (equal "Double" (show TypeDouble)) $expect (equal "UnixFd" (show TypeUnixFd)) $expect (equal "String" (show TypeString)) $expect (equal "Signature" (show TypeSignature)) $expect (equal "ObjectPath" (show TypeObjectPath)) $expect (equal "Variant" (show TypeVariant)) $expect (equal "[Word8]" (show (TypeArray TypeWord8))) $expect (equal "Dict Word8 (Dict Word8 Word8)" (show (TypeDictionary TypeWord8 (TypeDictionary TypeWord8 TypeWord8)))) $expect (equal "(Word8, Word16)" (show (TypeStructure [TypeWord8, TypeWord16]))) gen_SignatureTypes :: Gen [Type] gen_SignatureTypes = do (_, ts) <- gen_SignatureString return ts gen_SignatureString :: Gen (String, [Type]) gen_SignatureString = gen where anyType = oneof [atom, container] atom = elements [ ("b", TypeBoolean) , ("y", TypeWord8) , ("q", TypeWord16) , ("u", TypeWord32) , ("t", TypeWord64) , ("n", TypeInt16) , ("i", TypeInt32) , ("x", TypeInt64) , ("d", TypeDouble) , ("h", TypeUnixFd) , ("s", TypeString) , ("o", TypeObjectPath) , ("g", TypeSignature) ] container = oneof [ return ("v", TypeVariant) , array , dict , struct ] array = do (tCode, tEnum) <- anyType return ('a':tCode, TypeArray tEnum) dict = do (kCode, kEnum) <- atom (vCode, vEnum) <- anyType return (concat ["a{", kCode, vCode, "}"], TypeDictionary kEnum vEnum) struct = do ts <- listOf1 (halfSized anyType) let (codes, enums) = unzip ts return ("(" ++ concat codes ++ ")", TypeStructure enums) gen = do types <- listOf anyType let (codes, enums) = unzip types let chars = concat codes if length chars > 255 then halfSized gen else return (chars, enums) instance Arbitrary Signature where arbitrary = do ts <- gen_SignatureTypes let Just sig = signature ts return sig
jmillikin/haskell-dbus
tests/DBusTests/Signature.hs
Haskell
apache-2.0
4,901
[ 30522, 1063, 1011, 1001, 2653, 23561, 14949, 18690, 1001, 1011, 1065, 1011, 1011, 9385, 1006, 1039, 1007, 30524, 12646, 2007, 1996, 6105, 1012, 1011, 1011, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1011, 1011, 1011, 1011, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1011, 1011, 1011, 1011, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1011, 1011, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1011, 1011, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1011, 1011, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1011, 1011, 12546, 2104, 1996, 6105, 1012, 11336, 16962, 19966, 4355, 2015, 1012, 8085, 1006, 3231, 1035, 8085, 1007, 2073, 12324, 3231, 1012, 18178, 3363, 12324, 3231, 1012, 18178, 3363, 1012, 4248, 5403, 3600, 12324, 3231, 1012, 4248, 5403, 3600, 6318, 1006, 1006, 1012, 1004, 1012, 1007, 1010, 3200, 1007, 12324, 16962, 2271, 12324, 16962, 19966, 4355, 2015, 1012, 21183, 4014, 3231, 1035, 8085, 1024, 1024, 7621, 3231, 1035, 8085, 1027, 7621, 1000, 8085, 1000, 1031, 3231, 1035, 16473, 23773, 4017, 5397, 1010, 3231, 1035, 11968, 8583, 23773, 4017, 5397, 1010, 3231, 1035, 11968, 20240, 2078, 10175, 3593, 1010, 3231, 1035, 11630, 23773, 4017, 5397, 1010, 3231, 1035, 18061, 20389, 1010, 3231, 1035, 2265, 13874, 1033, 3231, 1035, 16473, 23773, 4017, 5397, 1024, 1024, 3231, 3231, 1035, 16473, 23773, 4017, 5397, 1027, 3200, 1000, 8085, 1000, 17678, 2073, 17678, 1027, 2005, 8095, 8991, 1035, 8085, 13874, 2015, 4638, 4638, 4127, 1027, 2553, 8085, 4127, 1997, 2498, 1011, 1028, 6270, 2074, 9033, 2290, 1011, 1028, 8085, 13874, 2015, 9033, 2290, 1027, 1027, 4127, 3231, 1035, 11968, 8583, 23773, 4017, 5397, 1024, 1024, 3231, 3231, 1035, 11968, 8583, 23773, 4017, 5397, 1027, 3200, 1000, 11968, 8583, 23773, 4017, 5397, 1000, 17678, 2073, 17678, 1027, 2005, 8095, 8991, 1035, 16442, 18886, 3070, 4638, 4638, 1006, 1055, 1010, 4127, 1007, 1027, 2553, 11968, 8583, 23773, 4017, 5397, 1055, 1997, 2498, 1011, 1028, 6270, 2074, 9033, 2290, 1011, 1028, 8085, 13874, 2015, 9033, 2290, 1027, 1027, 4127, 3231, 1035, 11968, 20240, 2078, 10175, 3593, 1024, 1024, 3231, 3231, 1035, 11968, 20240, 2078, 10175, 3593, 1027, 23617, 2015, 1000, 11968, 3366, 1011, 19528, 1000, 1002, 2079, 1011, 1011, 2012, 2087, 20637, 3494, 1002, 5987, 1006, 2074, 1006, 11968, 8583, 23773, 4017, 5397, 1006, 28024, 22234, 1005, 1061, 1005, 1007, 1007, 1007, 1002, 5987, 1006, 2074, 1006, 11968, 8583, 23773, 4017, 5397, 1006, 28024, 20637, 1005, 1061, 1005, 1007, 1007, 1007, 1002, 5987, 1006, 2498, 1006, 11968, 8583, 23773, 4017, 5397, 1006, 28024, 17273, 1005, 1061, 1005, 1007, 1007, 1007, 1011, 1011, 30523, 2230, 1011, 2262, 2198, 4971, 17471, 2078, 1026, 2198, 1030, 2198, 1011, 4971, 17471, 2078, 1012, 4012, 1028, 1011, 1011, 1011, 1011, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1011, 1011, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 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, 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, 2230, 1011, 2262, 2198, 4971, 17471, 2078, 1026, 2198, 1030, 2198, 1011, 4971, 17471, 2078, 1012, 4012, 1028, 1011, 1011, 1011, 1011, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1011, 1011, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 30526 ]
using Lidgren.Network; namespace Gem.Network.Handlers { public class DummyHandler : IMessageHandler { public void Handle(NetConnection sender, object args) { } } }
gmich/Gem
Gem.Network/Handlers/DummyHandler.cs
C#
mit
195
[ 30522, 2478, 11876, 13565, 1012, 2897, 1025, 3415, 15327, 17070, 1012, 2897, 1012, 28213, 2015, 1063, 2270, 2465, 24369, 11774, 3917, 1024, 10047, 7971, 4270, 11774, 3917, 1063, 2270, 11675, 5047, 1006, 5658, 8663, 2638, 7542, 4604, 2121, 1010, 4874, 12098, 5620, 1007, 1063, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
Tutorial {#flatbuffers_guide_tutorial} ======== ## Overview This tutorial provides a basic example of how to work with [FlatBuffers](@ref flatbuffers_overview). We will step through a simple example application, which shows you how to: - Write a FlatBuffer `schema` file. - Use the `flatc` FlatBuffer compiler. - Parse [JSON](http://json.org) files that conform to a schema into FlatBuffer binary files. - Use the generated files in many of the supported languages (such as C++, Java, and more.) During this example, imagine that you are creating a game where the main character, the hero of the story, needs to slay some `orc`s. We will walk through each step necessary to create this monster type using FlatBuffers. Please select your desired language for our quest: \htmlonly <form> <input type="radio" name="language" value="cpp" checked="checked">C++</input> <input type="radio" name="language" value="java">Java</input> <input type="radio" name="language" value="csharp">C#</input> <input type="radio" name="language" value="go">Go</input> <input type="radio" name="language" value="python">Python</input> <input type="radio" name="language" value="javascript">JavaScript</input> <input type="radio" name="language" value="typescript">TypeScript</input> <input type="radio" name="language" value="php">PHP</input> <input type="radio" name="language" value="c">C</input> </form> \endhtmlonly \htmlonly <script> /** * Check if an HTML `class` attribute is in the language-specific format. * @param {string} languageClass An HTML `class` attribute in the format * 'language-{lang}', where {lang} is a programming language (e.g. 'cpp', * 'java', 'go', etc.). * @return {boolean} Returns `true` if `languageClass` was in the valid * format, prefixed with 'language-'. Otherwise, it returns false. */ function isProgrammingLanguageClassName(languageClass) { if (languageClass && languageClass.substring(0, 9) == 'language-' && languageClass.length > 8) { return true; } else { return false; } } /** * Given a language-specific HTML `class` attribute, extract the language. * @param {string} languageClass The string name of an HTML `class` attribute, * in the format `language-{lang}`, where {lang} is a programming language * (e.g. 'cpp', 'java', 'go', etc.). * @return {string} Returns a string containing only the {lang} portion of * the class name. If the input was invalid, then it returns `null`. */ function extractProgrammingLanguageFromLanguageClass(languageClass) { if (isProgrammingLanguageClassName(languageClass)) { return languageClass.substring(9); } else { return null; } } /** * Hide every code snippet, except for the language that is selected. */ function displayChosenLanguage() { var selection = $('input:checked').val(); var htmlElements = document.getElementsByTagName('*'); for (var i = 0; i < htmlElements.length; i++) { if (isProgrammingLanguageClassName(htmlElements[i].className)) { if (extractProgrammingLanguageFromLanguageClass( htmlElements[i].className).toLowerCase() != selection) { htmlElements[i].style.display = 'none'; } else { htmlElements[i].style.display = 'initial'; } } } } $( document ).ready(displayChosenLanguage); $('input[type=radio]').on("click", displayChosenLanguage); </script> \endhtmlonly ## Where to Find the Example Code Samples demonstating the concepts in this example are located in the source code package, under the `samples` directory. You can browse the samples on GitHub [here](https://github.com/google/flatbuffers/tree/master/samples). <div class="language-c"> *Note: The above does not apply to C, instead [look here](https://github.com/dvidelabs/flatcc/tree/master/samples).* </div> For your chosen language, please cross-reference with: <div class="language-cpp"> [sample_binary.cpp](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.cpp) </div> <div class="language-java"> [SampleBinary.java](https://github.com/google/flatbuffers/blob/master/samples/SampleBinary.java) </div> <div class="language-csharp"> [SampleBinary.cs](https://github.com/google/flatbuffers/blob/master/samples/SampleBinary.cs) </div> <div class="language-go"> [sample_binary.go](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.go) </div> <div class="language-python"> [sample_binary.py](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.py) </div> <div class="language-javascript"> [samplebinary.js](https://github.com/google/flatbuffers/blob/master/samples/samplebinary.js) </div> <div class="language-typescript"> <em>none yet</em> </div> <div class="language-php"> [SampleBinary.php](https://github.com/google/flatbuffers/blob/master/samples/SampleBinary.php) </div> <div class="language-c"> [monster.c](https://github.com/dvidelabs/flatcc/blob/master/samples/monster/monster.c) </div> ## Writing the Monsters' FlatBuffer Schema To start working with FlatBuffers, you first need to create a `schema` file, which defines the format for each data structure you wish to serialize. Here is the `schema` that defines the template for our monsters: ~~~ // Example IDL file for our monster's schema. namespace MyGame.Sample; enum Color:byte { Red = 0, Green, Blue = 2 } union Equipment { Weapon } // Optionally add more tables. struct Vec3 { x:float; y:float; z:float; } table Monster { pos:Vec3; // Struct. mana:short = 150; hp:short = 100; name:string; friendly:bool = false (deprecated); inventory:[ubyte]; // Vector of scalars. color:Color = Blue; // Enum. weapons:[Weapon]; // Vector of tables. equipped:Equipment; // Union. path:[Vec3]; // Vector of structs. } table Weapon { name:string; damage:short; } root_type Monster; ~~~ As you can see, the syntax for the `schema` [Interface Definition Language (IDL)](https://en.wikipedia.org/wiki/Interface_description_language) is similar to those of the C family of languages, and other IDL languages. Let's examine each part of this `schema` to determine what it does. The `schema` starts with a `namespace` declaration. This determines the corresponding package/namespace for the generated code. In our example, we have the `Sample` namespace inside of the `MyGame` namespace. Next, we have an `enum` definition. In this example, we have an `enum` of type `byte`, named `Color`. We have three values in this `enum`: `Red`, `Green`, and `Blue`. We specify `Red = 0` and `Blue = 2`, but we do not specify an explicit value for `Green`. Since the behavior of an `enum` is to increment if unspecified, `Green` will receive the implicit value of `1`. Following the `enum` is a `union`. The `union` in this example is not very useful, as it only contains the one `table` (named `Weapon`). If we had created multiple tables that we would want the `union` to be able to reference, we could add more elements to the `union Equipment`. After the `union` comes a `struct Vec3`, which represents a floating point vector with `3` dimensions. We use a `struct` here, over a `table`, because `struct`s are ideal for data structures that will not change, since they use less memory and have faster lookup. The `Monster` table is the main object in our FlatBuffer. This will be used as the template to store our `orc` monster. We specify some default values for fields, such as `mana:short = 150`. All unspecified fields will default to `0` or `NULL`. Another thing to note is the line `friendly:bool = false (deprecated);`. Since you cannot delete fields from a `table` (to support backwards compatability), you can set fields as `deprecated`, which will prevent the generation of accessors for this field in the generated code. Be careful when using `deprecated`, however, as it may break legacy code that used this accessor. The `Weapon` table is a sub-table used within our FlatBuffer. It is used twice: once within the `Monster` table and once within the `Equipment` enum. For our `Monster`, it is used to populate a `vector of tables` via the `weapons` field within our `Monster`. It is also the only table referenced by the `Equipment` union. The last part of the `schema` is the `root_type`. The root type declares what will be the root table for the serialized data. In our case, the root type is our `Monster` table. The scalar types can also use alias type names such as `int16` instead of `short` and `float32` instead of `float`. Thus we could also write the `Weapon` table as: table Weapon { name:string; damage:int16; } #### More Information About Schemas You can find a complete guide to writing `schema` files in the [Writing a schema](@ref flatbuffers_guide_writing_schema) section of the Programmer's Guide. You can also view the formal [Grammar of the schema language](@ref flatbuffers_grammar). ## Compiling the Monsters' Schema After you have written the FlatBuffers schema, the next step is to compile it. If you have not already done so, please follow [these instructions](@ref flatbuffers_guide_building) to build `flatc`, the FlatBuffer compiler. Once `flatc` is built successfully, compile the schema for your language: <div class="language-c"> *Note: If you're working in C, you need to use the separate project [FlatCC](https://github.com/dvidelabs/flatcc) which contains a schema compiler and runtime library in C for C.* <br> See [flatcc build instructions](https://github.com/dvidelabs/flatcc#building). <br> Please be aware of the difference between `flatc` and `flatcc` tools. <br> </div> <div class="language-cpp"> ~~~{.sh} cd flatbuffers/sample ./../flatc --cpp samples/monster.fbs ~~~ </div> <div class="language-java"> ~~~{.sh} cd flatbuffers/sample ./../flatc --java samples/monster.fbs ~~~ </div> <div class="language-csharp"> ~~~{.sh} cd flatbuffers/sample ./../flatc --csharp samples/monster.fbs ~~~ </div> <div class="language-go"> ~~~{.sh} cd flatbuffers/sample ./../flatc --go samples/monster.fbs ~~~ </div> <div class="language-python"> ~~~{.sh} cd flatbuffers/sample ./../flatc --python samples/monster.fbs ~~~ </div> <div class="language-javascript"> ~~~{.sh} cd flatbuffers/sample ./../flatc --js samples/monster.fbs ~~~ </div> <div class="language-typescript"> ~~~{.sh} cd flatbuffers/sample ./../flatc --ts samples/monster.fbs ~~~ </div> <div class="language-php"> ~~~{.sh} cd flatbuffers/sample ./../flatc --php samples/monster.fbs ~~~ </div> <div class="language-c"> ~~~{.sh} cd flatcc mkdir -p build/tmp/samples/monster bin/flatcc -a -o build/tmp/samples/monster samples/monster/monster.fbs # or just flatcc/samples/monster/build.sh ~~~ </div> For a more complete guide to using the `flatc` compiler, please read the [Using the schema compiler](@ref flatbuffers_guide_using_schema_compiler) section of the Programmer's Guide. ## Reading and Writing Monster FlatBuffers Now that we have compiled the schema for our programming language, we can start creating some monsters and serializing/deserializing them from FlatBuffers. #### Creating and Writing Orc FlatBuffers The first step is to import/include the library, generated files, etc. <div class="language-cpp"> ~~~{.cpp} #include "monster_generate.h" // This was generated by `flatc`. using namespace MyGame::Sample; // Specified in the schema. ~~~ </div> <div class="language-java"> ~~~{.java} import MyGame.Sample.*; //The `flatc` generated files. (Monster, Vec3, etc.) import com.google.flatbuffers.FlatBufferBuilder; ~~~ </div> <div class="language-csharp"> ~~~{.cs} using FlatBuffers; using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.) ~~~ </div> <div class="language-go"> ~~~{.go} import ( flatbuffers "github.com/google/flatbuffers/go" sample "MyGame/Sample" ) ~~~ </div> <div class="language-python"> ~~~{.py} import flatbuffers # Generated by `flatc`. import MyGame.Sample.Color import MyGame.Sample.Equipment import MyGame.Sample.Monster import MyGame.Sample.Vec3 import MyGame.Sample.Weapon ~~~ </div> <div class="language-javascript"> ~~~{.js} // The following code is for JavaScript module loaders (e.g. Node.js). See // below for a browser-based HTML/JavaScript example of including the library. var flatbuffers = require('/js/flatbuffers').flatbuffers; var MyGame = require('./monster_generated').MyGame; // Generated by `flatc`. //--------------------------------------------------------------------------// // The following code is for browser-based HTML/JavaScript. Use the above code // for JavaScript module loaders (e.g. Node.js). <script src="../js/flatbuffers.js"></script> <script src="monster_generated.js"></script> // Generated by `flatc`. ~~~ </div> <div class="language-typescript"> // note: import flabuffers with your desired import method import { MyGame } from './monster_generated'; </div> <div class="language-php"> ~~~{.php} // It is recommended that your use PSR autoload when using FlatBuffers in PHP. // Here is an example from `SampleBinary.php`: function __autoload($class_name) { // The last segment of the class name matches the file name. $class = substr($class_name, strrpos($class_name, "\\") + 1); $root_dir = join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)))); // `flatbuffers` root. // Contains the `*.php` files for the FlatBuffers library and the `flatc` generated files. $paths = array(join(DIRECTORY_SEPARATOR, array($root_dir, "php")), join(DIRECTORY_SEPARATOR, array($root_dir, "samples", "MyGame", "Sample"))); foreach ($paths as $path) { $file = join(DIRECTORY_SEPARATOR, array($path, $class . ".php")); if (file_exists($file)) { require($file); break; } } } ~~~ </div> <div class="language-c"> ~~~{.c} #include "monster_builder.h" // Generated by `flatcc`. // Convenient namespace macro to manage long namespace prefix. #undef ns #define ns(x) FLATBUFFERS_WRAP_NAMESPACE(MyGame_Sample, x) // Specified in the schema. // A helper to simplify creating vectors from C-arrays. #define c_vec_len(V) (sizeof(V)/sizeof((V)[0])) ~~~ </div> Now we are ready to start building some buffers. In order to start, we need to create an instance of the `FlatBufferBuilder`, which will contain the buffer as it grows. You can pass an initial size of the buffer (here 1024 bytes), which will grow automatically if needed: <div class="language-cpp"> ~~~{.cpp} // Create a `FlatBufferBuilder`, which will be used to create our // monsters' FlatBuffers. flatbuffers::FlatBufferBuilder builder(1024); ~~~ </div> <div class="language-java"> ~~~{.java} // Create a `FlatBufferBuilder`, which will be used to create our // monsters' FlatBuffers. FlatBufferBuilder builder = new FlatBufferBuilder(1024); ~~~ </div> <div class="language-csharp"> ~~~{.cs} // Create a `FlatBufferBuilder`, which will be used to create our // monsters' FlatBuffers. var builder = new FlatBufferBuilder(1024); ~~~ </div> <div class="language-go"> ~~~{.go} // Create a `FlatBufferBuilder`, which will be used to create our // monsters' FlatBuffers. builder := flatbuffers.NewBuilder(1024) ~~~ </div> <div class="language-python"> ~~~{.py} # Create a `FlatBufferBuilder`, which will be used to create our # monsters' FlatBuffers. builder = flatbuffers.Builder(1024) ~~~ </div> <div class="language-javascript"> ~~~{.js} // Create a `flatbuffer.Builder`, which will be used to create our // monsters' FlatBuffers. var builder = new flatbuffers.Builder(1024); ~~~ </div> <div class="language-typescript"> ~~~{.ts} // Create a `flatbuffer.Builder`, which will be used to create our // monsters' FlatBuffers. let builder = new flatbuffers.Builder(1024); ~~~ </div> <div class="language-php"> ~~~{.php} // Create a `FlatBufferBuilder`, which will be used to create our // monsters' FlatBuffers. $builder = new Google\FlatBuffers\FlatbufferBuilder(1024); ~~~ </div> <div class="language-c"> ~~~{.c} flatcc_builder_t builder, *B; B = &builder; // Initialize the builder object. flatcc_builder_init(B); ~~~ </div> After creating the `builder`, we can start serializing our data. Before we make our `orc` Monster, lets create some `Weapon`s: a `Sword` and an `Axe`. <div class="language-cpp"> ~~~{.cpp} auto weapon_one_name = builder.CreateString("Sword"); short weapon_one_damage = 3; auto weapon_two_name = builder.CreateString("Axe"); short weapon_two_damage = 5; // Use the `CreateWeapon` shortcut to create Weapons with all the fields set. auto sword = CreateWeapon(builder, weapon_one_name, weapon_one_damage); auto axe = CreateWeapon(builder, weapon_two_name, weapon_two_damage); ~~~ </div> <div class="language-java"> ~~~{.java} int weaponOneName = builder.createString("Sword") short weaponOneDamage = 3; int weaponTwoName = builder.createString("Axe"); short weaponTwoDamage = 5; // Use the `createWeapon()` helper function to create the weapons, since we set every field. int sword = Weapon.createWeapon(builder, weaponOneName, weaponOneDamage); int axe = Weapon.createWeapon(builder, weaponTwoName, weaponTwoDamage); ~~~ </div> <div class="language-csharp"> ~~~{.cs} var weaponOneName = builder.CreateString("Sword"); var weaponOneDamage = 3; var weaponTwoName = builder.CreateString("Axe"); var weaponTwoDamage = 5; // Use the `CreateWeapon()` helper function to create the weapons, since we set every field. var sword = Weapon.CreateWeapon(builder, weaponOneName, (short)weaponOneDamage); var axe = Weapon.CreateWeapon(builder, weaponTwoName, (short)weaponTwoDamage); ~~~ </div> <div class="language-go"> ~~~{.go} weaponOne := builder.CreateString("Sword") weaponTwo := builder.CreateString("Axe") // Create the first `Weapon` ("Sword"). sample.WeaponStart(builder) sample.Weapon.AddName(builder, weaponOne) sample.Weapon.AddDamage(builder, 3) sword := sample.WeaponEnd(builder) // Create the second `Weapon` ("Axe"). sample.WeaponStart(builder) sample.Weapon.AddName(builder, weaponTwo) sample.Weapon.AddDamage(builder, 5) axe := sample.WeaponEnd(builder) ~~~ </div> <div class="language-python"> ~~~{.py} weapon_one = builder.CreateString('Sword') weapon_two = builder.CreateString('Axe') # Create the first `Weapon` ('Sword'). MyGame.Sample.Weapon.WeaponStart(builder) MyGame.Sample.Weapon.WeaponAddName(builder, weapon_one) MyGame.Sample.Weapon.WeaponAddDamage(builder, 3) sword = MyGame.Sample.Weapon.WeaponEnd(builder) # Create the second `Weapon` ('Axe'). MyGame.Sample.Weapon.WeaponStart(builder) MyGame.Sample.Weapon.WeaponAddName(builder, weapon_two) MyGame.Sample.Weapon.WeaponAddDamage(builder, 5) axe = MyGame.Sample.Weapon.WeaponEnd(builder) ~~~ </div> <div class="language-javascript"> ~~~{.js} var weaponOne = builder.createString('Sword'); var weaponTwo = builder.createString('Axe'); // Create the first `Weapon` ('Sword'). MyGame.Sample.Weapon.startWeapon(builder); MyGame.Sample.Weapon.addName(builder, weaponOne); MyGame.Sample.Weapon.addDamage(builder, 3); var sword = MyGame.Sample.Weapon.endWeapon(builder); // Create the second `Weapon` ('Axe'). MyGame.Sample.Weapon.startWeapon(builder); MyGame.Sample.Weapon.addName(builder, weaponTwo); MyGame.Sample.Weapon.addDamage(builder, 5); var axe = MyGame.Sample.Weapon.endWeapon(builder); ~~~ </div> <div class="language-typescript"> ~~~{.js} let weaponOne = builder.createString('Sword'); let weaponTwo = builder.createString('Axe'); // Create the first `Weapon` ('Sword'). MyGame.Sample.Weapon.startWeapon(builder); MyGame.Sample.Weapon.addName(builder, weaponOne); MyGame.Sample.Weapon.addDamage(builder, 3); let sword = MyGame.Sample.Weapon.endWeapon(builder); // Create the second `Weapon` ('Axe'). MyGame.Sample.Weapon.startWeapon(builder); MyGame.Sample.Weapon.addName(builder, weaponTwo); MyGame.Sample.Weapon.addDamage(builder, 5); let axe = MyGame.Sample.Weapon.endWeapon(builder); ~~~ </div> <div class="language-php"> ~~~{.php} // Create the `Weapon`s using the `createWeapon()` helper function. $weapon_one_name = $builder->createString("Sword"); $sword = \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_one_name, 3); $weapon_two_name = $builder->createString("Axe"); $axe = \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_two_name, 5); // Create an array from the two `Weapon`s and pass it to the // `CreateWeaponsVector()` method to create a FlatBuffer vector. $weaps = array($sword, $axe); $weapons = \MyGame\Sample\Monster::CreateWeaponsVector($builder, $weaps); ~~~ </div> <div class="language-c"> ~~~{.c} ns(Weapon_ref_t) weapon_one_name = flatbuffers_string_create_str(B, "Sword"); uint16_t weapon_one_damage = 3; ns(Weapon_ref_t) weapon_two_name = flatbuffers_string_create_str(B, "Axe"); uint16_t weapon_two_damage = 5; ns(Weapon_ref_t) sword = ns(Weapon_create(B, weapon_one_name, weapon_one_damage)); ns(Weapon_ref_t) axe = ns(Weapon_create(B, weapon_two_name, weapon_two_damage)); ~~~ </div> Now let's create our monster, the `orc`. For this `orc`, lets make him `red` with rage, positioned at `(1.0, 2.0, 3.0)`, and give him a large pool of hit points with `300`. We can give him a vector of weapons to choose from (our `Sword` and `Axe` from earlier). In this case, we will equip him with the `Axe`, since it is the most powerful of the two. Lastly, let's fill his inventory with some potential treasures that can be taken once he is defeated. Before we serialize a monster, we need to first serialize any objects that are contained there-in, i.e. we serialize the data tree using depth-first, pre-order traversal. This is generally easy to do on any tree structures. <div class="language-cpp"> ~~~{.cpp} // Serialize a name for our monster, called "Orc". auto name = builder.CreateString("Orc"); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. unsigned char treasure[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; auto inventory = builder.CreateVector(treasure, 10); ~~~ </div> <div class="language-java"> ~~~{.java} // Serialize a name for our monster, called "Orc". int name = builder.createString("Orc"); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. byte[] treasure = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; int inv = Monster.createInventoryVector(builder, treasure); ~~~ </div> <div class="language-csharp"> ~~~{.cs} // Serialize a name for our monster, called "Orc". var name = builder.CreateString("Orc"); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. // Note: Since we prepend the bytes, this loop iterates in reverse order. Monster.StartInventoryVector(builder, 10); for (int i = 9; i >= 0; i--) { builder.AddByte((byte)i); } var inv = builder.EndVector(); ~~~ </div> <div class="language-go"> ~~~{.go} // Serialize a name for our monster, called "Orc". name := builder.CreateString("Orc") // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. // Note: Since we prepend the bytes, this loop iterates in reverse. sample.MonsterStartInventoryVector(builder, 10) for i := 9; i >= 0; i-- { builder.PrependByte(byte(i)) } int := builder.EndVector(10) ~~~ </div> <div class="language-python"> ~~~{.py} # Serialize a name for our monster, called "Orc". name = builder.CreateString("Orc") # Create a `vector` representing the inventory of the Orc. Each number # could correspond to an item that can be claimed after he is slain. # Note: Since we prepend the bytes, this loop iterates in reverse. MyGame.Sample.Monster.MonsterStartInventoryVector(builder, 10) for i in reversed(range(0, 10)): builder.PrependByte(i) inv = builder.EndVector(10) ~~~ </div> <div class="language-javascript"> ~~~{.js} // Serialize a name for our monster, called 'Orc'. var name = builder.createString('Orc'); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. var treasure = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; var inv = MyGame.Sample.Monster.createInventoryVector(builder, treasure); ~~~ </div> <div class="language-typescript"> ~~~{.js} // Serialize a name for our monster, called 'Orc'. let name = builder.createString('Orc'); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. let treasure = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; let inv = MyGame.Sample.Monster.createInventoryVector(builder, treasure); ~~~ </div> <div class="language-php"> ~~~{.php} // Serialize a name for our monster, called "Orc". $name = $builder->createString("Orc"); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. $treasure = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); $inv = \MyGame\Sample\Monster::CreateInventoryVector($builder, $treasure); ~~~ </div> <div class="language-c"> ~~~{.c} // Serialize a name for our monster, called "Orc". // The _str suffix indicates the source is an ascii-z string. flatbuffers_string_ref_t name = flatbuffers_string_create_str(B, "Orc"); // Create a `vector` representing the inventory of the Orc. Each number // could correspond to an item that can be claimed after he is slain. uint8_t treasure[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; flatbuffers_uint8_vec_ref_t inventory; // `c_vec_len` is the convenience macro we defined earlier. inventory = flatbuffers_uint8_vec_create(B, treasure, c_vec_len(treasure)); ~~~ </div> We serialized two built-in data types (`string` and `vector`) and captured their return values. These values are offsets into the serialized data, indicating where they are stored, such that we can refer to them below when adding fields to our monster. *Note: To create a `vector` of nested objects (e.g. `table`s, `string`s, or other `vector`s), collect their offsets into a temporary data structure, and then create an additional `vector` containing their offsets.* If instead of creating a vector from an existing array you serialize elements individually one by one, take care to note that this happens in reverse order, as buffers are built back to front. For example, take a look at the two `Weapon`s that we created earlier (`Sword` and `Axe`). These are both FlatBuffer `table`s, whose offsets we now store in memory. Therefore we can create a FlatBuffer `vector` to contain these offsets. <div class="language-cpp"> ~~~{.cpp} // Place the weapons into a `std::vector`, then convert that into a FlatBuffer `vector`. std::vector<flatbuffers::Offset<Weapon>> weapons_vector; weapons_vector.push_back(sword); weapons_vector.push_back(axe); auto weapons = builder.CreateVector(weapons_vector); ~~~ </div> <div class="language-java"> ~~~{.java} // Place the two weapons into an array, and pass it to the `createWeaponsVector()` method to // create a FlatBuffer vector. int[] weaps = new int[2]; weaps[0] = sword; weaps[1] = axe; // Pass the `weaps` array into the `createWeaponsVector()` method to create a FlatBuffer vector. int weapons = Monster.createWeaponsVector(builder, weaps); ~~~ </div> <div class="language-csharp"> ~~~{.cs} var weaps = new Offset<Weapon>[2]; weaps[0] = sword; weaps[1] = axe; // Pass the `weaps` array into the `CreateWeaponsVector()` method to create a FlatBuffer vector. var weapons = Monster.CreateWeaponsVector(builder, weaps); ~~~ </div> <div class="language-go"> ~~~{.go} // Create a FlatBuffer vector and prepend the weapons. // Note: Since we prepend the data, prepend them in reverse order. sample.MonsterStartWeaponsVector(builder, 2) builder.PrependUOffsetT(axe) builder.PrependUOffsetT(sword) weapons := builder.EndVector(2) ~~~ </div> <div class="language-python"> ~~~{.py} # Create a FlatBuffer vector and prepend the weapons. # Note: Since we prepend the data, prepend them in reverse order. MyGame.Sample.Monster.MonsterStartWeaponsVector(builder, 2) builder.PrependUOffsetTRelative(axe) builder.PrependUOffsetTRelative(sword) weapons = builder.EndVector(2) ~~~ </div> <div class="language-javascript"> ~~~{.js} // Create an array from the two `Weapon`s and pass it to the // `createWeaponsVector()` method to create a FlatBuffer vector. var weaps = [sword, axe]; var weapons = MyGame.Sample.Monster.createWeaponsVector(builder, weaps); ~~~ </div> <div class="language-typescript"> ~~~{.ts} // Create an array from the two `Weapon`s and pass it to the // `createWeaponsVector()` method to create a FlatBuffer vector. let weaps = [sword, axe]; let weapons = MyGame.Sample.Monster.createWeaponsVector(builder, weaps); ~~~ </div> <div class="language-php"> ~~~{.php} // Create an array from the two `Weapon`s and pass it to the // `CreateWeaponsVector()` method to create a FlatBuffer vector. $weaps = array($sword, $axe); $weapons = \MyGame\Sample\Monster::CreateWeaponsVector($builder, $weaps); ~~~ </div> <div class="language-c"> ~~~{.c} // We use the internal builder stack to implement a dynamic vector. ns(Weapon_vec_start(B)); ns(Weapon_vec_push(B, sword)); ns(Weapon_vec_push(B, axe)); ns(Weapon_vec_ref_t) weapons = ns(Weapon_vec_end(B)); ~~~ </div> <div class="language-cpp"> <br> Note there's additional convenience overloads of `CreateVector`, allowing you to work with data that's not in a `std::vector`, or allowing you to generate elements by calling a lambda. For the common case of `std::vector<std::string>` there's also `CreateVectorOfStrings`. </div> Note that vectors of structs are serialized differently from tables, since structs are stored in-line in the vector. For example, to create a vector for the `path` field above: <div class="language-cpp"> ~~~{.cpp} Vec3 points[] = { Vec3(1.0f, 2.0f, 3.0f), Vec3(4.0f, 5.0f, 6.0f) }; auto path = builder.CreateVectorOfStructs(points, 2); ~~~ </div> <div class="language-java"> ~~~{.java} Monster.startPathVector(fbb, 2); Vec3.createVec3(builder, 1.0f, 2.0f, 3.0f); Vec3.createVec3(builder, 4.0f, 5.0f, 6.0f); int path = fbb.endVector(); ~~~ </div> <div class="language-csharp"> ~~~{.cs} Monster.StartPathVector(fbb, 2); Vec3.CreateVec3(builder, 1.0f, 2.0f, 3.0f); Vec3.CreateVec3(builder, 4.0f, 5.0f, 6.0f); var path = fbb.EndVector(); ~~~ </div> <div class="language-go"> ~~~{.go} sample.MonsterStartPathVector(builder, 2) sample.CreateVec3(builder, 1.0, 2.0, 3.0) sample.CreateVec3(builder, 4.0, 5.0, 6.0) path := builder.EndVector(2) ~~~ </div> <div class="language-python"> ~~~{.py} MyGame.Sample.Monster.MonsterStartPathVector(builder, 2) MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0) MyGame.Sample.Vec3.CreateVec3(builder, 4.0, 5.0, 6.0) path = builder.EndVector(2) ~~~ </div> <div class="language-javascript"> ~~~{.js} MyGame.Sample.Monster.startPathVector(builder, 2); MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0); MyGame.Sample.Vec3.createVec3(builder, 4.0, 5.0, 6.0); var path = builder.endVector(); ~~~ </div> <div class="language-typescript"> ~~~{.ts} MyGame.Sample.Monster.startPathVector(builder, 2); MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0); MyGame.Sample.Vec3.createVec3(builder, 4.0, 5.0, 6.0); let path = builder.endVector(); ~~~ </div> <div class="language-php"> ~~~{.php} \MyGame\Example\Monster::StartPathVector($builder, 2); \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0); \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0); $path = $builder->endVector(); ~~~ </div> <div class="language-c"> ~~~{.c} // TBD ~~~ </div> We have now serialized the non-scalar components of the orc, so we can serialize the monster itself: <div class="language-cpp"> ~~~{.cpp} // Create the position struct auto position = Vec3(1.0f, 2.0f, 3.0f); // Set his hit points to 300 and his mana to 150. int hp = 300; int mana = 150; // Finally, create the monster using the `CreateMonster` helper function // to set all fields. auto orc = CreateMonster(builder, &position, mana, hp, name, inventory, Color_Red, weapons, Equipment_Weapon, axe.Union(), path); ~~~ </div> <div class="language-java"> ~~~{.java} // Create our monster using `startMonster()` and `endMonster()`. Monster.startMonster(builder); Monster.addPos(builder, Vec3.createVec3(builder, 1.0f, 2.0f, 3.0f)); Monster.addName(builder, name); Monster.addColor(builder, Color.Red); Monster.addHp(builder, (short)300); Monster.addInventory(builder, inv); Monster.addWeapons(builder, weapons); Monster.addEquippedType(builder, Equipment.Weapon); Monster.addEquipped(builder, axe); Monster.addPath(builder, path); int orc = Monster.endMonster(builder); ~~~ </div> <div class="language-csharp"> ~~~{.cs} // Create our monster using `StartMonster()` and `EndMonster()`. Monster.StartMonster(builder); Monster.AddPos(builder, Vec3.CreateVec3(builder, 1.0f, 2.0f, 3.0f)); Monster.AddHp(builder, (short)300); Monster.AddName(builder, name); Monster.AddInventory(builder, inv); Monster.AddColor(builder, Color.Red); Monster.AddWeapons(builder, weapons); Monster.AddEquippedType(builder, Equipment.Weapon); Monster.AddEquipped(builder, axe.Value); // Axe Monster.AddPath(builder, path); var orc = Monster.EndMonster(builder); ~~~ </div> <div class="language-go"> ~~~{.go} // Create our monster using `MonsterStart()` and `MonsterEnd()`. sample.MonsterStart(builder) sample.MonsterAddPos(builder, sample.CreateVec3(builder, 1.0, 2.0, 3.0)) sample.MonsterAddHp(builder, 300) sample.MonsterAddName(builder, name) sample.MonsterAddInventory(builder, inv) sample.MonsterAddColor(builder, sample.ColorRed) sample.MonsterAddWeapons(builder, weapons) sample.MonsterAddEquippedType(builder, sample.EquipmentWeapon) sample.MonsterAddEquipped(builder, axe) sample.MonsterAddPath(builder, path) orc := sample.MonsterEnd(builder) ~~~ </div> <div class="language-python"> ~~~{.py} # Create our monster by using `MonsterStart()` and `MonsterEnd()`. MyGame.Sample.Monster.MonsterStart(builder) MyGame.Sample.Monster.MonsterAddPos(builder, MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0)) MyGame.Sample.Monster.MonsterAddHp(builder, 300) MyGame.Sample.Monster.MonsterAddName(builder, name) MyGame.Sample.Monster.MonsterAddInventory(builder, inv) MyGame.Sample.Monster.MonsterAddColor(builder, MyGame.Sample.Color.Color().Red) MyGame.Sample.Monster.MonsterAddWeapons(builder, weapons) MyGame.Sample.Monster.MonsterAddEquippedType( builder, MyGame.Sample.Equipment.Equipment().Weapon) MyGame.Sample.Monster.MonsterAddEquipped(builder, axe) MyGame.Sample.Monster.MonsterAddPath(builder, path) orc = MyGame.Sample.Monster.MonsterEnd(builder) ~~~ </div> <div class="language-javascript"> ~~~{.js} // Create our monster by using `startMonster()` and `endMonster()`. MyGame.Sample.Monster.startMonster(builder); MyGame.Sample.Monster.addPos(builder, MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0)); MyGame.Sample.Monster.addHp(builder, 300); MyGame.Sample.Monster.addColor(builder, MyGame.Sample.Color.Red) MyGame.Sample.Monster.addName(builder, name); MyGame.Sample.Monster.addInventory(builder, inv); MyGame.Sample.Monster.addWeapons(builder, weapons); MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon); MyGame.Sample.Monster.addEquipped(builder, axe); MyGame.Sample.Monster.addPath(builder, path); var orc = MyGame.Sample.Monster.endMonster(builder); ~~~ </div> <div class="language-typescript"> ~~~{.ts} // Create our monster by using `startMonster()` and `endMonster()`. MyGame.Sample.Monster.startMonster(builder); MyGame.Sample.Monster.addPos(builder, MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0)); MyGame.Sample.Monster.addHp(builder, 300); MyGame.Sample.Monster.addColor(builder, MyGame.Sample.Color.Red) MyGame.Sample.Monster.addName(builder, name); MyGame.Sample.Monster.addInventory(builder, inv); MyGame.Sample.Monster.addWeapons(builder, weapons); MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon); MyGame.Sample.Monster.addEquipped(builder, axe); MyGame.Sample.Monster.addPath(builder, path); let orc = MyGame.Sample.Monster.endMonster(builder); ~~~ </div> <div class="language-php"> ~~~{.php} // Create our monster by using `StartMonster()` and `EndMonster()`. \MyGame\Sample\Monster::StartMonster($builder); \MyGame\Sample\Monster::AddPos($builder, \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0)); \MyGame\Sample\Monster::AddHp($builder, 300); \MyGame\Sample\Monster::AddName($builder, $name); \MyGame\Sample\Monster::AddInventory($builder, $inv); \MyGame\Sample\Monster::AddColor($builder, \MyGame\Sample\Color::Red); \MyGame\Sample\Monster::AddWeapons($builder, $weapons); \MyGame\Sample\Monster::AddEquippedType($builder, \MyGame\Sample\Equipment::Weapon); \MyGame\Sample\Monster::AddEquipped($builder, $axe); \MyGame\Sample\Monster::AddPath($builder, $path); $orc = \MyGame\Sample\Monster::EndMonster($builder); ~~~ </div> <div class="language-c"> ~~~{.c} // Set his hit points to 300 and his mana to 150. uint16_t hp = 300; uint16_t mana = 150; // Define an equipment union. `create` calls in C has a single // argument for unions where C++ has both a type and a data argument. ns(Equipment_union_ref_t) equipped = ns(Equipment_as_Weapon(axe)); ns(Vec3_t) pos = { 1.0f, 2.0f, 3.0f }; ns(Monster_create_as_root(B, &pos, mana, hp, name, inventory, ns(Color_Red), weapons, equipped, path)); ~~~ </div> Note how we create `Vec3` struct in-line in the table. Unlike tables, structs are simple combinations of scalars that are always stored inline, just like scalars themselves. **Important**: Unlike structs, you should not nest tables or other objects, which is why we created all the strings/vectors/tables that this monster refers to before `start`. If you try to create any of them between `start` and `end`, you will get an assert/exception/panic depending on your language. *Note: Since we are passing `150` as the `mana` field, which happens to be the default value, the field will not actually be written to the buffer, since the default value will be returned on query anyway. This is a nice space savings, especially if default values are common in your data. It also means that you do not need to be worried of adding a lot of fields that are only used in a small number of instances, as it will not bloat the buffer if unused.* <div class="language-cpp"> <br> If you do not wish to set every field in a `table`, it may be more convenient to manually set each field of your monster, instead of calling `CreateMonster()`. The following snippet is functionally equivalent to the above code, but provides a bit more flexibility. <br> ~~~{.cpp} // You can use this code instead of `CreateMonster()`, to create our orc // manually. MonsterBuilder monster_builder(builder); monster_builder.add_pos(&position); monster_builder.add_hp(hp); monster_builder.add_name(name); monster_builder.add_inventory(inventory); monster_builder.add_color(Color_Red); monster_builder.add_weapons(weapons); monster_builder.add_equipped_type(Equipment_Weapon); monster_builder.add_equipped(axe.Union()); auto orc = monster_builder.Finish(); ~~~ </div> <div class="language-c"> If you do not wish to set every field in a `table`, it may be more convenient to manually set each field of your monster, instead of calling `create_monster_as_root()`. The following snippet is functionally equivalent to the above code, but provides a bit more flexibility. <br> ~~~{.c} // It is important to pair `start_as_root` with `end_as_root`. ns(Monster_start_as_root(B)); ns(Monster_pos_create(B, 1.0f, 2.0f, 3.0f)); // or alternatively //ns(Monster_pos_add(&pos); ns(Monster_hp_add(B, hp)); // Notice that `Monser_name_add` adds a string reference unlike the // add_str and add_strn variants. ns(Monster_name_add(B, name)); ns(Monster_inventory_add(B, inventory)); ns(Monster_color_add(B, ns(Color_Red))); ns(Monster_weapons_add(B, weapons)); ns(Monster_equipped_add(B, equipped)); // Complete the monster object and make it the buffer root object. ns(Monster_end_as_root(B)); ~~~ </div> Before finishing the serialization, let's take a quick look at FlatBuffer `union Equipped`. There are two parts to each FlatBuffer `union`. The first, is a hidden field `_type`, that is generated to hold the type of `table` referred to by the `union`. This allows you to know which type to cast to at runtime. Second, is the `union`'s data. In our example, the last two things we added to our `Monster` were the `Equipped Type` and the `Equipped` union itself. Here is a repetition these lines, to help highlight them more clearly: <div class="language-cpp"> ~~~{.cpp} monster_builder.add_equipped_type(Equipment_Weapon); // Union type monster_builder.add_equipped(axe); // Union data ~~~ </div> <div class="language-java"> ~~~{.java} Monster.addEquippedType(builder, Equipment.Weapon); // Union type Monster.addEquipped(axe); // Union data ~~~ </div> <div class="language-csharp"> ~~~{.cs} Monster.AddEquippedType(builder, Equipment.Weapon); // Union type Monster.AddEquipped(builder, axe.Value); // Union data ~~~ </div> <div class="language-go"> ~~~{.go} sample.MonsterAddEquippedType(builder, sample.EquipmentWeapon) // Union type sample.MonsterAddEquipped(builder, axe) // Union data ~~~ </div> <div class="language-python"> ~~~{.py} MyGame.Sample.Monster.MonsterAddEquippedType( # Union type builder, MyGame.Sample.Equipment.Equipment().Weapon) MyGame.Sample.Monster.MonsterAddEquipped(builder, axe) # Union data ~~~ </div> <div class="language-javascript"> ~~~{.js} MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon); // Union type MyGame.Sample.Monster.addEquipped(builder, axe); // Union data ~~~ </div> <div class="language-typescript"> ~~~{.ts} MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon); // Union type MyGame.Sample.Monster.addEquipped(builder, axe); // Union data ~~~ </div> <div class="language-php"> ~~~{.php} \MyGame\Sample\Monster::AddEquippedType($builder, \MyGame\Sample\Equipment::Weapon); // Union type \MyGame\Sample\Monster::AddEquipped($builder, $axe); // Union data ~~~ </div> <div class="language-c"> ~~~{.c} // Add union type and data simultanously. ns(Monster_equipped_Weapon_add(B, axe)); ~~~ </div> After you have created your buffer, you will have the offset to the root of the data in the `orc` variable, so you can finish the buffer by calling the appropriate `finish` method. <div class="language-cpp"> ~~~{.cpp} // Call `Finish()` to instruct the builder that this monster is complete. // Note: Regardless of how you created the `orc`, you still need to call // `Finish()` on the `FlatBufferBuilder`. builder.Finish(orc); // You could also call `FinishMonsterBuffer(builder, // orc);`. ~~~ </div> <div class="language-java"> ~~~{.java} // Call `finish()` to instruct the builder that this monster is complete. builder.finish(orc); // You could also call `Monster.finishMonsterBuffer(builder, orc);`. ~~~ </div> <div class="language-csharp"> ~~~{.cs} // Call `Finish()` to instruct the builder that this monster is complete. builder.Finish(orc.Value); // You could also call `Monster.FinishMonsterBuffer(builder, orc);`. ~~~ </div> <div class="language-go"> ~~~{.go} // Call `Finish()` to instruct the builder that this monster is complete. builder.Finish(orc) ~~~ </div> <div class="language-python"> ~~~{.py} # Call `Finish()` to instruct the builder that this monster is complete. builder.Finish(orc) ~~~ </div> <div class="language-javascript"> ~~~{.js} // Call `finish()` to instruct the builder that this monster is complete. builder.finish(orc); // You could also call `MyGame.Sample.Monster.finishMonsterBuffer(builder, // orc);`. ~~~ </div> <div class="language-typescript"> ~~~{.ts} // Call `finish()` to instruct the builder that this monster is complete. builder.finish(orc); // You could also call `MyGame.Sample.Monster.finishMonsterBuffer(builder, // orc);`. ~~~ </div> <div class="language-php"> ~~~{.php} // Call `finish()` to instruct the builder that this monster is complete. $builder->finish($orc); // You may also call `\MyGame\Sample\Monster::FinishMonsterBuffer( // $builder, $orc);`. ~~~ </div> <div class="language-c"> ~~~{.c} // Because we used `Monster_create_as_root`, we do not need a `finish` call in C`. ~~~ </div> The buffer is now ready to be stored somewhere, sent over the network, be compressed, or whatever you'd like to do with it. You can access the buffer like so: <div class="language-cpp"> ~~~{.cpp} // This must be called after `Finish()`. uint8_t *buf = builder.GetBufferPointer(); int size = builder.GetSize(); // Returns the size of the buffer that // `GetBufferPointer()` points to. ~~~ </div> <div class="language-java"> ~~~{.java} // This must be called after `finish()`. java.nio.ByteBuffer buf = builder.dataBuffer(); // The data in this ByteBuffer does NOT start at 0, but at buf.position(). // The number of bytes is buf.remaining(). // Alternatively this copies the above data out of the ByteBuffer for you: bytes[] buf = builder.sizedByteArray(); ~~~ </div> <div class="language-csharp"> ~~~{.cs} // This must be called after `Finish()`. var buf = builder.DataBuffer; // Of type `FlatBuffers.ByteBuffer`. // The data in this ByteBuffer does NOT start at 0, but at buf.Position. // The end of the data is marked by buf.Length, so the size is // buf.Length - buf.Position. // Alternatively this copies the above data out of the ByteBuffer for you: bytes[] buf = builder.SizedByteArray(); ~~~ </div> <div class="language-go"> ~~~{.go} // This must be called after `Finish()`. buf := builder.FinishedBytes() // Of type `byte[]`. ~~~ </div> <div class="language-python"> ~~~{.py} # This must be called after `Finish()`. buf = builder.Output() // Of type `bytearray`. ~~~ </div> <div class="language-javascript"> ~~~{.js} // This must be called after `finish()`. var buf = builder.asUint8Array(); // Of type `Uint8Array`. ~~~ </div> <div class="language-typescript"> ~~~{.ts} // This must be called after `finish()`. let buf = builder.asUint8Array(); // Of type `Uint8Array`. ~~~ </div> <div class="language-php"> ~~~{.php} // This must be called after `finish()`. $buf = $builder->dataBuffer(); // Of type `Google\FlatBuffers\ByteBuffer` // The data in this ByteBuffer does NOT start at 0, but at buf->getPosition(). // The end of the data is marked by buf->capacity(), so the size is // buf->capacity() - buf->getPosition(). ~~~ </div> <div class="language-c"> ~~~{.c} uint8_t *buf; size_t size; // Allocate and extract a readable buffer from internal builder heap. // The returned buffer must be deallocated using `free`. // NOTE: Finalizing the buffer does NOT change the builder, it // just creates a snapshot of the builder content. buf = flatcc_builder_finalize_buffer(B, &size); // use buf free(buf); // Optionally reset builder to reuse builder without deallocating // internal stack and heap. flatcc_builder_reset(B); // build next buffer. // ... // Cleanup. flatcc_builder_clear(B); ~~~ </div> Now you can write the bytes to a file, send them over the network.. **Make sure your file mode (or tranfer protocol) is set to BINARY, not text.** If you transfer a FlatBuffer in text mode, the buffer will be corrupted, which will lead to hard to find problems when you read the buffer. #### Reading Orc FlatBuffers Now that we have successfully created an `Orc` FlatBuffer, the monster data can be saved, sent over a network, etc. Let's now adventure into the inverse, and deserialize a FlatBuffer. This section requires the same import/include, namespace, etc. requirements as before: <div class="language-cpp"> ~~~{.cpp} #include "monster_generate.h" // This was generated by `flatc`. using namespace MyGame::Sample; // Specified in the schema. ~~~ </div> <div class="language-java"> ~~~{.java} import MyGame.Sample.*; //The `flatc` generated files. (Monster, Vec3, etc.) import com.google.flatbuffers.FlatBufferBuilder; ~~~ </div> <div class="language-csharp"> ~~~{.cs} using FlatBuffers; using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.) ~~~ </div> <div class="language-go"> ~~~{.go} import ( flatbuffers "github.com/google/flatbuffers/go" sample "MyGame/Sample" ) ~~~ </div> <div class="language-python"> ~~~{.py} import flatbuffers # Generated by `flatc`. import MyGame.Sample.Any import MyGame.Sample.Color import MyGame.Sample.Monster import MyGame.Sample.Vec3 ~~~ </div> <div class="language-javascript"> ~~~{.js} // The following code is for JavaScript module loaders (e.g. Node.js). See // below for a browser-based HTML/JavaScript example of including the library. var flatbuffers = require('/js/flatbuffers').flatbuffers; var MyGame = require('./monster_generated').MyGame; // Generated by `flatc`. //--------------------------------------------------------------------------// // The following code is for browser-based HTML/JavaScript. Use the above code // for JavaScript module loaders (e.g. Node.js). <script src="../js/flatbuffers.js"></script> <script src="monster_generated.js"></script> // Generated by `flatc`. ~~~ </div> <div class="language-typescript"> ~~~{.js} // note: import flabuffers with your desired import method import { MyGame } from './monster_generated'; ~~~ </div> <div class="language-php"> ~~~{.php} // It is recommended that your use PSR autoload when using FlatBuffers in PHP. // Here is an example from `SampleBinary.php`: function __autoload($class_name) { // The last segment of the class name matches the file name. $class = substr($class_name, strrpos($class_name, "\\") + 1); $root_dir = join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)))); // `flatbuffers` root. // Contains the `*.php` files for the FlatBuffers library and the `flatc` generated files. $paths = array(join(DIRECTORY_SEPARATOR, array($root_dir, "php")), join(DIRECTORY_SEPARATOR, array($root_dir, "samples", "MyGame", "Sample"))); foreach ($paths as $path) { $file = join(DIRECTORY_SEPARATOR, array($path, $class . ".php")); if (file_exists($file)) { require($file); break; } } } ~~~ </div> <div class="language-c"> ~~~{.c} // Only needed if we don't have `#include "monster_builder.h"`. #include "monster_reader.h" #undef ns #define ns(x) FLATBUFFERS_WRAP_NAMESPACE(MyGame_Sample, x) // Specified in the schema. ~~~ </div> Then, assuming you have a buffer of bytes received from disk, network, etc., you can create start accessing the buffer like so: **Again, make sure you read the bytes in BINARY mode, otherwise the code below won't work** <div class="language-cpp"> ~~~{.cpp} uint8_t *buffer_pointer = /* the data you just read */; // Get a pointer to the root object inside the buffer. auto monster = GetMonster(buffer_pointer); // `monster` is of type `Monster *`. // Note: root object pointers are NOT the same as `buffer_pointer`. // `GetMonster` is a convenience function that calls `GetRoot<Monster>`, // the latter is also available for non-root types. ~~~ </div> <div class="language-java"> ~~~{.java} byte[] bytes = /* the data you just read */ java.nio.ByteBuffer buf = java.nio.ByteBuffer.wrap(bytes); // Get an accessor to the root object inside the buffer. Monster monster = Monster.getRootAsMonster(buf); ~~~ </div> <div class="language-csharp"> ~~~{.cs} byte[] bytes = /* the data you just read */ var buf = new ByteBuffer(bytes); // Get an accessor to the root object inside the buffer. var monster = Monster.GetRootAsMonster(buf); ~~~ </div> <div class="language-go"> ~~~{.go} var buf []byte = /* the data you just read */ // Get an accessor to the root object inside the buffer. monster := sample.GetRootAsMonster(buf, 0) // Note: We use `0` for the offset here, which is typical for most buffers // you would read. If you wanted to read from `builder.Bytes` directly, you // would need to pass in the offset of `builder.Head()`, as the builder // constructs the buffer backwards, so may not start at offset 0. ~~~ </div> <div class="language-python"> ~~~{.py} buf = /* the data you just read, in an object of type "bytearray" */ // Get an accessor to the root object inside the buffer. monster = MyGame.Sample.Monster.Monster.GetRootAsMonster(buf, 0) # Note: We use `0` for the offset here, which is typical for most buffers # you would read. If you wanted to read from the `builder.Bytes` directly, # you would need to pass in the offset of `builder.Head()`, as the builder # constructs the buffer backwards, so may not start at offset 0. ~~~ </div> <div class="language-javascript"> ~~~{.js} var bytes = /* the data you just read, in an object of type "Uint8Array" */ var buf = new flatbuffers.ByteBuffer(bytes); // Get an accessor to the root object inside the buffer. var monster = MyGame.Sample.Monster.getRootAsMonster(buf); ~~~ </div> <div class="language-typescript"> ~~~{.ts} let bytes = /* the data you just read, in an object of type "Uint8Array" */ let buf = new flatbuffers.ByteBuffer(bytes); // Get an accessor to the root object inside the buffer. let monster = MyGame.Sample.Monster.getRootAsMonster(buf); ~~~ </div> <div class="language-php"> ~~~{.php} $bytes = /* the data you just read, in a string */ $buf = Google\FlatBuffers\ByteBuffer::wrap($bytes); // Get an accessor to the root object inside the buffer. $monster = \MyGame\Sample\Monster::GetRootAsMonster($buf); ~~~ </div> <div class="language-c"> ~~~{.c} // Note that we use the `table_t` suffix when reading a table object // as opposed to the `ref_t` suffix used during the construction of // the buffer. ns(Monster_table_t) monster = ns(Monster_as_root(buffer)); // Note: root object pointers are NOT the same as the `buffer` pointer. ~~~ </div> If you look in the generated files from the schema compiler, you will see it generated accessors for all non-`deprecated` fields. For example: <div class="language-cpp"> ~~~{.cpp} auto hp = monster->hp(); auto mana = monster->mana(); auto name = monster->name()->c_str(); ~~~ </div> <div class="language-java"> ~~~{.java} short hp = monster.hp(); short mana = monster.mana(); String name = monster.name(); ~~~ </div> <div class="language-csharp"> ~~~{.cs} // For C#, unlike other languages support by FlatBuffers, most values (except for // vectors and unions) are available as propreties instead of asccessor methods. var hp = monster.Hp var mana = monster.Mana var name = monster.Name ~~~ </div> <div class="language-go"> ~~~{.go} hp := monster.Hp() mana := monster.Mana() name := string(monster.Name()) // Note: `monster.Name()` returns a byte[]. ~~~ </div> <div class="language-python"> ~~~{.py} hp = monster.Hp() mana = monster.Mana() name = monster.Name() ~~~ </div> <div class="language-javascript"> ~~~{.js} var hp = $monster.hp(); var mana = $monster.mana(); var name = $monster.name(); ~~~ </div> <div class="language-typescript"> ~~~{.ts} let hp = $monster.hp(); let mana = $monster.mana(); let name = $monster.name(); ~~~ </div> <div class="language-php"> ~~~{.php} $hp = $monster->getHp(); $mana = $monster->getMana(); $name = monster->getName(); ~~~ </div> <div class="language-c"> ~~~{.c} uint16_t hp = ns(Monster_hp(monster)); uint16_t mana = ns(Monster_mana(monster)); flatbuffers_string_t name = ns(Monster_name(monster)); ~~~ </div> These should hold `300`, `150`, and `"Orc"` respectively. *Note: The default value `150` wasn't stored in `mana`, but we are still able to retrieve it.* To access sub-objects, in the case of our `pos`, which is a `Vec3`: <div class="language-cpp"> ~~~{.cpp} auto pos = monster->pos(); auto x = pos->x(); auto y = pos->y(); auto z = pos->z(); ~~~ </div> <div class="language-java"> ~~~{.java} Vec3 pos = monster.pos(); float x = pos.x(); float y = pos.y(); float z = pos.z(); ~~~ </div> <div class="language-csharp"> ~~~{.cs} var pos = monster.Pos.Value; var x = pos.X; var y = pos.Y; var z = pos.Z; ~~~ </div> <div class="language-go"> ~~~{.go} pos := monster.Pos(nil) x := pos.X() y := pos.Y() z := pos.Z() // Note: Whenever you access a new object, like in `Pos()`, a new temporary // accessor object gets created. If your code is very performance sensitive, // you can pass in a pointer to an existing `Vec3` instead of `nil`. This // allows you to reuse it across many calls to reduce the amount of object // allocation/garbage collection. ~~~ </div> <div class="language-python"> ~~~{.py} pos = monster.Pos() x = pos.X() y = pos.Y() z = pos.Z() ~~~ </div> <div class="language-javascript"> ~~~{.js} var pos = monster.pos(); var x = pos.x(); var y = pos.y(); var z = pos.z(); ~~~ </div> <div class="language-typescript"> ~~~{.ts} let pos = monster.pos(); let x = pos.x(); let y = pos.y(); let z = pos.z(); ~~~ </div> <div class="language-php"> ~~~{.php} $pos = $monster->getPos(); $x = $pos->getX(); $y = $pos->getY(); $z = $pos->getZ(); ~~~ </div> <div class="language-c"> ~~~{.c} ns(Vec3_struct_t) pos = ns(Monster_pos(monster)); float x = ns(Vec3_x(pos)); float y = ns(Vec3_y(pos)); float z = ns(Vec3_z(pos)); ~~~ </div> `x`, `y`, and `z` will contain `1.0`, `2.0`, and `3.0`, respectively. *Note: Had we not set `pos` during serialization, it would be a `NULL`-value.* Similarly, we can access elements of the inventory `vector` by indexing it. You can also iterate over the length of the array/vector representing the FlatBuffers `vector`. <div class="language-cpp"> ~~~{.cpp} auto inv = monster->inventory(); // A pointer to a `flatbuffers::Vector<>`. auto inv_len = inv->Length(); auto third_item = inv->Get(2); ~~~ </div> <div class="language-java"> ~~~{.java} int invLength = monster.inventoryLength(); byte thirdItem = monster.inventory(2); ~~~ </div> <div class="language-csharp"> ~~~{.cs} int invLength = monster.InventoryLength; var thirdItem = monster.Inventory(2); ~~~ </div> <div class="language-go"> ~~~{.go} invLength := monster.InventoryLength() thirdItem := monster.Inventory(2) ~~~ </div> <div class="language-python"> ~~~{.py} inv_len = monster.InventoryLength() third_item = monster.Inventory(2) ~~~ </div> <div class="language-javascript"> ~~~{.js} var invLength = monster.inventoryLength(); var thirdItem = monster.inventory(2); ~~~ </div> <div class="language-typescript"> ~~~{.ts} let invLength = monster.inventoryLength(); let thirdItem = monster.inventory(2); ~~~ </div> <div class="language-php"> ~~~{.php} $inv_len = $monster->getInventoryLength(); $third_item = $monster->getInventory(2); ~~~ </div> <div class="language-c"> ~~~{.c} // If `inv` hasn't been set, it will be null. It is valid get // the length of null which will be 0, useful for iteration. flatbuffers_uint8_vec_t inv = ns(Monster_inventory(monster)); size_t inv_len = flatbuffers_uint8_vec_len(inv); ~~~ </div> For `vector`s of `table`s, you can access the elements like any other vector, except your need to handle the result as a FlatBuffer `table`: <div class="language-cpp"> ~~~{.cpp} auto weapons = monster->weapons(); // A pointer to a `flatbuffers::Vector<>`. auto weapon_len = weapons->Length(); auto second_weapon_name = weapons->Get(1)->name()->str(); auto second_weapon_damage = weapons->Get(1)->damage() ~~~ </div> <div class="language-java"> ~~~{.java} int weaponsLength = monster.weaponsLength(); String secondWeaponName = monster.weapons(1).name(); short secondWeaponDamage = monster.weapons(1).damage(); ~~~ </div> <div class="language-csharp"> ~~~{.cs} int weaponsLength = monster.WeaponsLength; var secondWeaponName = monster.Weapons(1).Name; var secondWeaponDamage = monster.Weapons(1).Damage; ~~~ </div> <div class="language-go"> ~~~{.go} weaponLength := monster.WeaponsLength() weapon := new(sample.Weapon) // We need a `sample.Weapon` to pass into `monster.Weapons()` // to capture the output of the function. if monster.Weapons(weapon, 1) { secondWeaponName := weapon.Name() secondWeaponDamage := weapon.Damage() } ~~~ </div> <div class="language-python"> ~~~{.py} weapons_length = monster.WeaponsLength() second_weapon_name = monster.Weapons(1).Name() second_weapon_damage = monster.Weapons(1).Damage() ~~~ </div> <div class="language-javascript"> ~~~{.js} var weaponsLength = monster.weaponsLength(); var secondWeaponName = monster.weapons(1).name(); var secondWeaponDamage = monster.weapons(1).damage(); ~~~ </div> <div class="language-typescript"> ~~~{.ts} let weaponsLength = monster.weaponsLength(); let secondWeaponName = monster.weapons(1).name(); let secondWeaponDamage = monster.weapons(1).damage(); ~~~ </div> <div class="language-php"> ~~~{.php} $weapons_len = $monster->getWeaponsLength(); $second_weapon_name = $monster->getWeapons(1)->getName(); $second_weapon_damage = $monster->getWeapons(1)->getDamage(); ~~~ </div> <div class="language-c"> ~~~{.c} ns(Weapon_vec_t) weapons = ns(Monster_weapons(monster)); size_t weapons_len = ns(Weapon_vec_len(weapons)); // We can use `const char *` instead of `flatbuffers_string_t`. const char *second_weapon_name = ns(Weapon_name(ns(Weapon_vec_at(weapons, 1)))); uint16_t second_weapon_damage = ns(Weapon_damage(ns(Weapon_vec_at(weapons, 1)))); ~~~ </div> Last, we can access our `Equipped` FlatBuffer `union`. Just like when we created the `union`, we need to get both parts of the `union`: the type and the data. We can access the type to dynamically cast the data as needed (since the `union` only stores a FlatBuffer `table`). <div class="language-cpp"> ~~~{.cpp} auto union_type = monster.equipped_type(); if (union_type == Equipment_Weapon) { auto weapon = static_cast<const Weapon*>(monster->equipped()); // Requires `static_cast` // to type `const Weapon*`. auto weapon_name = weapon->name()->str(); // "Axe" auto weapon_damage = weapon->damage(); // 5 } ~~~ </div> <div class="language-java"> ~~~{.java} int unionType = monster.EquippedType(); if (unionType == Equipment.Weapon) { Weapon weapon = (Weapon)monster.equipped(new Weapon()); // Requires explicit cast // to `Weapon`. String weaponName = weapon.name(); // "Axe" short weaponDamage = weapon.damage(); // 5 } ~~~ </div> <div class="language-csharp"> ~~~{.cs} var unionType = monster.EquippedType; if (unionType == Equipment.Weapon) { var weapon = monster.Equipped<Weapon>().Value; var weaponName = weapon.Name; // "Axe" var weaponDamage = weapon.Damage; // 5 } ~~~ </div> <div class="language-go"> ~~~{.go} // We need a `flatbuffers.Table` to capture the output of the // `monster.Equipped()` function. unionTable := new(flatbuffers.Table) if monster.Equipped(unionTable) { unionType := monster.EquippedType() if unionType == sample.EquipmentWeapon { // Create a `sample.Weapon` object that can be initialized with the contents // of the `flatbuffers.Table` (`unionTable`), which was populated by // `monster.Equipped()`. unionWeapon = new(sample.Weapon) unionWeapon.Init(unionTable.Bytes, unionTable.Pos) weaponName = unionWeapon.Name() weaponDamage = unionWeapon.Damage() } } ~~~ </div> <div class="language-python"> ~~~{.py} union_type = monster.EquippedType() if union_type == MyGame.Sample.Equipment.Equipment().Weapon: # `monster.Equipped()` returns a `flatbuffers.Table`, which can be used to # initialize a `MyGame.Sample.Weapon.Weapon()`. union_weapon = MyGame.Sample.Weapon.Weapon() union_weapon.Init(monster.Equipped().Bytes, monster.Equipped().Pos) weapon_name = union_weapon.Name() // 'Axe' weapon_damage = union_weapon.Damage() // 5 ~~~ </div> <div class="language-javascript"> ~~~{.js} var unionType = monster.equippedType(); if (unionType == MyGame.Sample.Equipment.Weapon) { var weapon_name = monster.equipped(new MyGame.Sample.Weapon()).name(); // 'Axe' var weapon_damage = monster.equipped(new MyGame.Sample.Weapon()).damage(); // 5 } ~~~ </div> <div class="language-typescript"> ~~~{.ts} let unionType = monster.equippedType(); if (unionType == MyGame.Sample.Equipment.Weapon) { let weapon_name = monster.equipped(new MyGame.Sample.Weapon()).name(); // 'Axe' let weapon_damage = monster.equipped(new MyGame.Sample.Weapon()).damage(); // 5 } ~~~ </div> <div class="language-php"> ~~~{.php} $union_type = $monster->getEquippedType(); if ($union_type == \MyGame\Sample\Equipment::Weapon) { $weapon_name = $monster->getEquipped(new \MyGame\Sample\Weapon())->getName(); // "Axe" $weapon_damage = $monster->getEquipped(new \MyGame\Sample\Weapon())->getDamage(); // 5 } ~~~ </div> <div class="language-c"> ~~~{.c} // Access union type field. if (ns(Monster_equipped_type(monster)) == ns(Equipment_Weapon)) { // Cast to appropriate type: // C allows for silent void pointer assignment, so we need no explicit cast. ns(Weapon_table_t) weapon = ns(Monster_equipped(monster)); const char *weapon_name = ns(Weapon_name(weapon)); // "Axe" uint16_t weapon_damage = ns(Weapon_damage(weapon)); // 5 } ~~~ </div> ## Mutating FlatBuffers As you saw above, typically once you have created a FlatBuffer, it is read-only from that moment on. There are, however, cases where you have just received a FlatBuffer, and you'd like to modify something about it before sending it on to another recipient. With the above functionality, you'd have to generate an entirely new FlatBuffer, while tracking what you modified in your own data structures. This is inconvenient. For this reason FlatBuffers can also be mutated in-place. While this is great for making small fixes to an existing buffer, you generally want to create buffers from scratch whenever possible, since it is much more efficient and the API is much more general purpose. To get non-const accessors, invoke `flatc` with `--gen-mutable`. Similar to how we read fields using the accessors above, we can now use the mutators like so: <div class="language-cpp"> ~~~{.cpp} auto monster = GetMutableMonster(buffer_pointer); // non-const monster->mutate_hp(10); // Set the table `hp` field. monster->mutable_pos()->mutate_z(4); // Set struct field. monster->mutable_inventory()->Mutate(0, 1); // Set vector element. ~~~ </div> <div class="language-java"> ~~~{.java} Monster monster = Monster.getRootAsMonster(buf); monster.mutateHp(10); // Set table field. monster.pos().mutateZ(4); // Set struct field. monster.mutateInventory(0, 1); // Set vector element. ~~~ </div> <div class="language-csharp"> ~~~{.cs} var monster = Monster.GetRootAsMonster(buf); monster.MutateHp(10); // Set table field. monster.Pos.MutateZ(4); // Set struct field. monster.MutateInventory(0, 1); // Set vector element. ~~~ </div> <div class="language-go"> ~~~{.go} <API for mutating FlatBuffers is not yet available in Go.> ~~~ </div> <div class="language-python"> ~~~{.py} <API for mutating FlatBuffers is not yet available in Python.> ~~~ </div> <div class="language-javascript"> ~~~{.js} <API for mutating FlatBuffers is not yet supported in JavaScript.> ~~~ </div> <div class="language-typescript"> ~~~{.ts} <API for mutating FlatBuffers is not yet supported in TypeScript.> ~~~ </div> <div class="language-php"> ~~~{.php} <API for mutating FlatBuffers is not yet supported in PHP.> ~~~ </div> <div class="language-c"> ~~~{.c} <API for in-place mutating FlatBuffers will not be supported in C (except in-place vector sorting is possible).> ~~~ </div> We use the somewhat verbose term `mutate` instead of `set` to indicate that this is a special use case, not to be confused with the default way of constructing FlatBuffer data. After the above mutations, you can send on the FlatBuffer to a new recipient without any further work! Note that any `mutate` functions on a table will return a boolean, which is `false` if the field we're trying to set is not present in the buffer. Fields that are not present if they weren't set, or even if they happen to be equal to the default value. For example, in the creation code above, the `mana` field is equal to `150`, which is the default value, so it was never stored in the buffer. Trying to call the corresponding `mutate` method for `mana` on such data will return `false`, and the value won't actually be modified! One way to solve this is to call `ForceDefaults` on a FlatBufferBuilder to force all fields you set to actually be written. This, of course, increases the size of the buffer somewhat, but this may be acceptable for a mutable buffer. If this is not sufficient, other ways of mutating FlatBuffers may be supported in your language through an object based API (`--gen-object-api`) or reflection. See the individual language documents for support. ## JSON with FlatBuffers #### Using `flatc` as a Conversion Tool This is often the preferred method to use JSON with FlatBuffers, as it doesn't require you to add any new code to your program. It is also efficient, since you can ship with the binary data. The drawback is that it requires an extra step for your users/developers to perform (although it may be able to be automated as part of your compilation). Lets say you have a JSON file that describes your monster. In this example, we will use the file `flatbuffers/samples/monsterdata.json`. Here are the contents of the file: ~~~{.json} { pos: { x: 1, y: 2, z: 3 }, hp: 300, name: "Orc" } ~~~ You can run this file through the `flatc` compile with the `-b` flag and our `monster.fbs` schema to produce a FlatBuffer binary file. ~~~{.sh} ./../flatc -b monster.fbs monsterdata.json ~~~ The output of this will be a file `monsterdata.bin`, which will contain the FlatBuffer binary representation of the contents from our `.json` file. <div class="language-cpp"> *Note: If you're working in C++, you can also parse JSON at runtime. See the [Use in C++](@ref flatbuffers_guide_use_cpp) section of the Programmer's Guide for more information.* </div> <div class="language-c"> *Note: If you're working in C, the `flatcc --json` (not `flatc`) compiler will generate schema specific high performance json parsers and printers that you can compile and use at runtime. The `flatc` compiler (not `flatcc`) on the other hand, is still useful for general offline json to flatbuffer conversion from a given schema. There are no current plans for `flatcc` to support this.* </div> ## Advanced Features for Each Language Each language has a dedicated `Use in XXX` page in the Programmer's Guide to cover the nuances of FlatBuffers in that language. For your chosen language, see: <div class="language-cpp"> [Use in C++](@ref flatbuffers_guide_use_cpp) </div> <div class="language-java"> [Use in Java/C#](@ref flatbuffers_guide_use_java_c-sharp) </div> <div class="language-csharp"> [Use in Java/C#](@ref flatbuffers_guide_use_java_c-sharp) </div> <div class="language-go"> [Use in Go](@ref flatbuffers_guide_use_go) </div> <div class="language-python"> [Use in Python](@ref flatbuffers_guide_use_python) </div> <div class="language-javascript"> [Use in JavaScript](@ref flatbuffers_guide_use_javascript) </div> <div class="language-typescript"> [Use in TypeScript](@ref flatbuffers_guide_use_typescript) </div> <div class="language-php"> [Use in PHP](@ref flatbuffers_guide_use_php) </div> <div class="language-c"> [Use in C](@ref flatbuffers_guide_use_c) </div> <br>
TonyStark106/SwiftFlatBuffers
flatbuffers/docs/source/Tutorial.md
Markdown
apache-2.0
73,815
[ 30522, 14924, 4818, 1063, 1001, 4257, 8569, 12494, 2015, 1035, 5009, 1035, 14924, 4818, 1065, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1001, 1001, 19184, 2023, 14924, 4818, 3640, 1037, 3937, 2742, 1997, 2129, 2000, 2147, 2007, 1031, 4257, 8569, 12494, 2015, 1033, 1006, 1030, 25416, 4257, 8569, 12494, 2015, 1035, 19184, 1007, 1012, 2057, 2097, 3357, 2083, 1037, 3722, 2742, 4646, 1010, 2029, 3065, 2017, 2129, 2000, 1024, 1011, 4339, 1037, 4257, 8569, 12494, 1036, 8040, 28433, 1036, 5371, 1012, 1011, 2224, 1996, 1036, 4257, 2278, 1036, 4257, 8569, 12494, 21624, 1012, 1011, 11968, 3366, 1031, 1046, 3385, 1033, 1006, 8299, 1024, 1013, 1013, 1046, 3385, 1012, 8917, 1007, 6764, 2008, 23758, 2000, 1037, 8040, 28433, 2046, 4257, 8569, 12494, 12441, 6764, 1012, 1011, 2224, 1996, 7013, 6764, 1999, 2116, 1997, 1996, 3569, 4155, 1006, 2107, 2004, 1039, 1009, 1009, 1010, 9262, 1010, 1998, 2062, 1012, 1007, 2076, 2023, 2742, 1010, 5674, 2008, 2017, 2024, 4526, 1037, 2208, 2073, 1996, 2364, 2839, 1010, 1996, 5394, 1997, 1996, 2466, 1010, 3791, 2000, 22889, 4710, 2070, 1036, 2030, 2278, 1036, 1055, 1012, 2057, 2097, 3328, 2083, 2169, 3357, 4072, 2000, 3443, 2023, 6071, 2828, 2478, 4257, 8569, 12494, 2015, 1012, 3531, 7276, 2115, 9059, 2653, 2005, 2256, 8795, 1024, 1032, 16129, 2239, 2135, 1026, 2433, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 18133, 2361, 1000, 7039, 1027, 1000, 7039, 1000, 1028, 1039, 1009, 1009, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 30524, 2653, 1000, 3643, 1027, 1000, 2175, 1000, 1028, 2175, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 18750, 1000, 1028, 18750, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 9262, 22483, 1000, 1028, 9262, 22483, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 4127, 23235, 1000, 1028, 4127, 23235, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 25718, 1000, 1028, 25718, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 1039, 1000, 1028, 1039, 1026, 1013, 7953, 1028, 1026, 1013, 2433, 1028, 1032, 2203, 11039, 19968, 2239, 2135, 1032, 16129, 2239, 2135, 1026, 5896, 1028, 1013, 1008, 1008, 1008, 4638, 2065, 2019, 16129, 1036, 2465, 1036, 17961, 2003, 1999, 1996, 2653, 1011, 3563, 4289, 1012, 1008, 1030, 11498, 2213, 1063, 5164, 1065, 2653, 26266, 2019, 16129, 1036, 2465, 1036, 17961, 1999, 1996, 4289, 1008, 1005, 2653, 1011, 1063, 11374, 30523, 1000, 9262, 1000, 1028, 9262, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 20116, 8167, 2361, 1000, 1028, 1039, 1001, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 9262, 1000, 1028, 9262, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 2653, 1000, 3643, 1027, 1000, 20116, 8167, 2361, 1000, 1028, 1039, 1001, 1026, 1013, 7953, 1028, 1026, 7953, 2828, 1027, 1000, 2557, 1000, 2171, 1027, 1000, 30526 ]
package io.subutai.core.identity.impl.model; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import io.subutai.common.security.objects.PermissionObject; import io.subutai.common.security.objects.UserType; import io.subutai.core.identity.api.model.UserDelegate; /** * Delegate for User */ @Entity @Table( name = "user_delegate" ) @Access( AccessType.FIELD ) public class UserDelegateEntity implements UserDelegate { @Id @Column( name = "id" ) private String id; @Column( name = "user_id" ) private long userId; @Column( name = "type" ) private int type = UserType.REGULAR.getId(); @Column( name = "relation_document", length = 3000 ) private String relationDocument; @Override public String getId() { return id; } @Override public void setId( final String id ) { this.id = id; } @Override public long getUserId() { return userId; } @Override public void setUserId( final long userId ) { this.userId = userId; } @Override public int getType() { return type; } @Override public void setType( final int type ) { this.type = type; } @Override public String getRelationDocument() { return relationDocument; } @Override public void setRelationDocument( final String relationDocument ) { this.relationDocument = relationDocument; } @Override public String getLinkId() { return String.format( "%s|%s", getClassPath(), getUniqueIdentifier() ); } @Override public String getUniqueIdentifier() { return getId(); } @Override public String getClassPath() { return this.getClass().getSimpleName(); } @Override public String getContext() { return PermissionObject.IDENTITY_MANAGEMENT.getName(); } @Override public String getKeyId() { return getId(); } @Override public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof UserDelegateEntity ) ) { return false; } final UserDelegateEntity that = ( UserDelegateEntity ) o; return id != null ? id.equals( that.id ) : that.id == null; } @Override public int hashCode() { return id != null ? id.hashCode() : 0; } }
subutai-io/Subutai
management/server/core/identity-manager/identity-manager-impl/src/main/java/io/subutai/core/identity/impl/model/UserDelegateEntity.java
Java
apache-2.0
2,648
[ 30522, 7427, 22834, 1012, 4942, 13210, 2072, 1012, 4563, 1012, 4767, 1012, 17727, 2140, 1012, 2944, 1025, 12324, 9262, 2595, 1012, 28297, 1012, 3229, 1025, 12324, 9262, 2595, 1012, 28297, 1012, 3229, 13874, 1025, 12324, 9262, 2595, 1012, 28297, 1012, 5930, 1025, 12324, 9262, 2595, 1012, 28297, 1012, 9178, 1025, 12324, 9262, 2595, 1012, 28297, 1012, 8909, 1025, 12324, 9262, 2595, 1012, 28297, 1012, 2795, 1025, 12324, 22834, 1012, 4942, 13210, 2072, 1012, 2691, 1012, 3036, 1012, 5200, 1012, 6656, 16429, 20614, 1025, 12324, 22834, 1012, 4942, 13210, 2072, 1012, 2691, 1012, 3036, 1012, 5200, 1012, 5310, 13874, 1025, 12324, 22834, 1012, 4942, 13210, 2072, 1012, 4563, 1012, 4767, 1012, 17928, 1012, 2944, 1012, 5310, 9247, 29107, 2618, 1025, 1013, 1008, 1008, 1008, 11849, 2005, 5310, 1008, 1013, 1030, 9178, 1030, 2795, 1006, 2171, 1027, 1000, 5310, 1035, 11849, 1000, 1007, 1030, 3229, 1006, 3229, 13874, 1012, 2492, 1007, 2270, 2465, 5310, 9247, 29107, 17389, 16778, 3723, 22164, 5310, 9247, 29107, 2618, 1063, 1030, 8909, 1030, 5930, 1006, 2171, 1027, 1000, 8909, 1000, 1007, 2797, 5164, 8909, 1025, 1030, 5930, 1006, 2171, 1027, 1000, 5310, 1035, 8909, 1000, 1007, 2797, 2146, 5310, 3593, 1025, 1030, 5930, 1006, 2171, 1027, 1000, 2828, 1000, 1007, 2797, 20014, 2828, 1027, 5310, 13874, 1012, 3180, 1012, 2131, 3593, 1006, 1007, 1025, 1030, 5930, 1006, 2171, 1027, 1000, 7189, 1035, 6254, 1000, 1010, 3091, 1027, 11910, 1007, 2797, 5164, 7189, 3527, 24894, 4765, 1025, 1030, 2058, 15637, 2270, 5164, 2131, 3593, 1006, 1007, 1063, 2709, 8909, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 2275, 3593, 1006, 2345, 5164, 8909, 1007, 1063, 2023, 1012, 8909, 1027, 8909, 1025, 1065, 1030, 2058, 15637, 2270, 2146, 2131, 20330, 3593, 1006, 1007, 1063, 2709, 5310, 3593, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 2275, 20330, 3593, 1006, 2345, 2146, 5310, 3593, 1007, 1063, 2023, 1012, 5310, 3593, 1027, 5310, 3593, 1025, 1065, 1030, 2058, 15637, 2270, 20014, 2131, 13874, 1006, 1007, 1063, 2709, 2828, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 2275, 13874, 1006, 2345, 20014, 2828, 1007, 1063, 2023, 1012, 2828, 1027, 2828, 1025, 1065, 1030, 2058, 15637, 2270, 5164, 2131, 16570, 3370, 3527, 24894, 4765, 1006, 1007, 1063, 2709, 7189, 3527, 24894, 4765, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 2275, 16570, 3370, 3527, 24894, 4765, 1006, 2345, 5164, 7189, 3527, 24894, 4765, 1007, 1063, 2023, 1012, 7189, 3527, 24894, 4765, 1027, 7189, 3527, 24894, 4765, 1025, 1065, 1030, 2058, 15637, 2270, 5164, 2131, 13767, 3593, 1006, 1007, 1063, 2709, 5164, 1012, 4289, 1006, 1000, 1003, 1055, 1064, 1003, 1055, 1000, 1010, 2131, 26266, 15069, 1006, 1007, 1010, 2131, 19496, 4226, 5178, 16778, 8873, 2121, 1006, 1007, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 30524, 5714, 10814, 18442, 1006, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 5164, 2131, 8663, 30523, 5164, 2131, 19496, 4226, 5178, 16778, 8873, 2121, 1006, 1007, 1063, 2709, 2131, 3593, 1006, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 5164, 2131, 26266, 15069, 1006, 1007, 1063, 2709, 2023, 1012, 2131, 26266, 1006, 1007, 1012, 4152, 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, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5164, 2131, 19496, 4226, 5178, 16778, 8873, 2121, 1006, 1007, 1063, 2709, 2131, 3593, 1006, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 5164, 2131, 26266, 15069, 1006, 1007, 1063, 2709, 2023, 1012, 2131, 26266, 1006, 1007, 1012, 4152, 30526 ]
/* * Copyright 2014-2020 Real Logic Limited. * * 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 * * https://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. */ #ifndef _WIN32 #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #else #ifndef NOMINMAX #define NOMINMAX #endif // !NOMINMAX #include <Windows.h> #include "StringUtil.h" #endif #include <string> #include <cstring> #include "util/MemoryMappedFile.h" #include "util/Exceptions.h" #include "util/ScopeUtils.h" namespace aeron { namespace util { #ifdef _WIN32 bool MemoryMappedFile::fill(FileHandle fd, std::size_t size, std::uint8_t value) { std::uint8_t buffer[8196]; memset(buffer, value, m_page_size); DWORD written = 0; while (size >= m_page_size) { if (!::WriteFile(fd.handle, buffer, (DWORD)m_page_size, &written, nullptr)) { return false; } size -= written; } if (size) { if (!::WriteFile(fd.handle, buffer, (DWORD)size, &written, nullptr)) { return false; } } return true; } MemoryMappedFile::ptr_t MemoryMappedFile::createNew(const char *filename, std::size_t offset, std::size_t size) { FileHandle fd{}; fd.handle = ::CreateFile( filename, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr); if (INVALID_HANDLE_VALUE == fd.handle) { throw IOException( std::string("failed to create file: ") + filename + " " + toString(GetLastError()), SOURCEINFO); } OnScopeExit tidy( [&]() { if (INVALID_HANDLE_VALUE != fd.handle) { ::CloseHandle(fd.handle); } }); if (!fill(fd, size, 0)) { throw IOException( std::string("failed to write to file: ") + filename + " " + toString(GetLastError()), SOURCEINFO); } auto obj = MemoryMappedFile::ptr_t(new MemoryMappedFile(fd, offset, size, false)); fd.handle = INVALID_HANDLE_VALUE; return obj; } MemoryMappedFile::ptr_t MemoryMappedFile::mapExisting( const char *filename, std::size_t offset, std::size_t size, bool readOnly) { DWORD dwDesiredAccess = readOnly ? GENERIC_READ : (GENERIC_READ | GENERIC_WRITE); DWORD dwSharedMode = FILE_SHARE_READ | FILE_SHARE_WRITE; FileHandle fd{}; fd.handle = ::CreateFile( filename, dwDesiredAccess, dwSharedMode, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr); if (INVALID_HANDLE_VALUE == fd.handle) { throw IOException( std::string("failed to create file: ") + filename + " " + toString(GetLastError()), SOURCEINFO); } OnScopeExit tidy( [&]() { if (INVALID_HANDLE_VALUE != fd.handle) { ::CloseHandle(fd.handle); } }); auto obj = MemoryMappedFile::ptr_t(new MemoryMappedFile(fd, offset, size, readOnly)); fd.handle = INVALID_HANDLE_VALUE; return obj; } #else bool MemoryMappedFile::fill(FileHandle fd, std::size_t size, std::uint8_t value) { std::unique_ptr<std::uint8_t[]> buffer(new std::uint8_t[m_page_size]); memset(buffer.get(), value, m_page_size); while (size >= m_page_size) { if (static_cast<std::size_t>(::write(fd.handle, buffer.get(), m_page_size)) != m_page_size) { return false; } size -= m_page_size; } if (size) { if (static_cast<std::size_t>(::write(fd.handle, buffer.get(), size)) != size) { return false; } } return true; } MemoryMappedFile::ptr_t MemoryMappedFile::createNew(const char *filename, off_t offset, std::size_t size) { FileHandle fd{}; fd.handle = ::open(filename, O_RDWR | O_CREAT, 0666); if (fd.handle < 0) { throw IOException(std::string("failed to create file: ") + filename, SOURCEINFO); } OnScopeExit tidy( [&]() { close(fd.handle); }); if (!fill(fd, size, 0)) { throw IOException(std::string("failed to write to file: ") + filename, SOURCEINFO); } return MemoryMappedFile::ptr_t(new MemoryMappedFile(fd, offset, size, false)); } MemoryMappedFile::ptr_t MemoryMappedFile::mapExisting( const char *filename, off_t offset, std::size_t length, bool readOnly) { FileHandle fd{}; fd.handle = ::open(filename, (readOnly ? O_RDONLY : O_RDWR), 0666); if (fd.handle < 0) { throw IOException(std::string("failed to open existing file: ") + filename, SOURCEINFO); } OnScopeExit tidy( [&]() { close(fd.handle); }); return MemoryMappedFile::ptr_t(new MemoryMappedFile(fd, offset, length, readOnly)); } #endif MemoryMappedFile::ptr_t MemoryMappedFile::mapExisting(const char *filename, bool readOnly) { return mapExisting(filename, 0, 0, readOnly); } std::uint8_t *MemoryMappedFile::getMemoryPtr() const { return m_memory; } std::size_t MemoryMappedFile::getMemorySize() const { return m_memorySize; } std::size_t MemoryMappedFile::m_page_size = getPageSize(); #ifdef _WIN32 MemoryMappedFile::MemoryMappedFile(FileHandle fd, std::size_t offset, std::size_t length, bool readOnly) { m_file = fd.handle; if (0 == length && 0 == offset) { LARGE_INTEGER fileSize; if (!::GetFileSizeEx(fd.handle, &fileSize)) { cleanUp(); throw IOException( std::string("failed query size of existing file: ") + toString(GetLastError()), SOURCEINFO); } length = static_cast<std::size_t>(fileSize.QuadPart); } m_memorySize = length; m_memory = doMapping(m_memorySize, fd, offset, readOnly); if (!m_memory) { cleanUp(); throw IOException(std::string("failed to Map Memory: ") + toString(GetLastError()), SOURCEINFO); } } void MemoryMappedFile::cleanUp() { if (m_memory) { ::UnmapViewOfFile(m_memory); m_memory = nullptr; } if (m_mapping) { ::CloseHandle(m_mapping); m_mapping = nullptr; } if (m_file) { ::CloseHandle(m_file); m_file = nullptr; } } MemoryMappedFile::~MemoryMappedFile() { cleanUp(); } uint8_t *MemoryMappedFile::doMapping(std::size_t size, FileHandle fd, std::size_t offset, bool readOnly) { DWORD flProtect = readOnly ? PAGE_READONLY : PAGE_READWRITE; m_mapping = ::CreateFileMapping(fd.handle, nullptr, flProtect, 0, static_cast<DWORD>(size), nullptr); if (nullptr == m_mapping) { return nullptr; } DWORD dwDesiredAccess = readOnly ? FILE_MAP_READ : FILE_MAP_ALL_ACCESS; void *memory = (LPTSTR)::MapViewOfFile(m_mapping, dwDesiredAccess, 0, static_cast<DWORD>(offset), size); return static_cast<std::uint8_t *>(memory); } std::size_t MemoryMappedFile::getPageSize() noexcept { SYSTEM_INFO system_info; ::GetSystemInfo(&system_info); return static_cast<std::size_t>(system_info.dwPageSize); } std::int64_t MemoryMappedFile::getFileSize(const char *filename) { WIN32_FILE_ATTRIBUTE_DATA fad; if (::GetFileAttributesEx(filename, GetFileExInfoStandard, &fad) == 0) { return -1; } LARGE_INTEGER size; size.HighPart = fad.nFileSizeHigh; size.LowPart = fad.nFileSizeLow; return size.QuadPart; } #else MemoryMappedFile::MemoryMappedFile(FileHandle fd, off_t offset, std::size_t length, bool readOnly) { if (0 == length && 0 == offset) { struct stat statInfo{}; ::fstat(fd.handle, &statInfo); length = static_cast<std::size_t>(statInfo.st_size); } m_memorySize = length; m_memory = doMapping(m_memorySize, fd, static_cast<std::size_t>(offset), readOnly); } MemoryMappedFile::~MemoryMappedFile() { if (m_memory && m_memorySize) { ::munmap(m_memory, m_memorySize); } } std::uint8_t *MemoryMappedFile::doMapping(std::size_t length, FileHandle fd, std::size_t offset, bool readOnly) { void *memory = ::mmap( nullptr, length, readOnly ? PROT_READ : (PROT_READ | PROT_WRITE), MAP_SHARED, fd.handle, static_cast<off_t>(offset)); if (MAP_FAILED == memory) { throw IOException("failed to Memory Map file", SOURCEINFO); } return static_cast<std::uint8_t *>(memory); } std::size_t MemoryMappedFile::getPageSize() noexcept { return static_cast<std::size_t>(::getpagesize()); } std::int64_t MemoryMappedFile::getFileSize(const char *filename) { struct stat statInfo{}; if (::stat(filename, &statInfo) < 0) { return -1; } return statInfo.st_size; } #endif }}
EvilMcJerkface/Aeron
aeron-client/src/main/cpp/util/MemoryMappedFile.cpp
C++
apache-2.0
9,367
[ 30522, 1013, 1008, 1008, 9385, 2297, 1011, 12609, 2613, 7961, 3132, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 16770, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 1001, 2065, 13629, 2546, 30524, 3372, 2140, 1012, 1044, 1028, 1001, 2421, 1026, 4895, 2923, 2094, 1012, 1044, 1028, 1001, 2842, 1001, 2065, 13629, 2546, 2053, 10020, 17848, 1001, 9375, 2053, 10020, 17848, 1001, 2203, 10128, 1013, 1013, 999, 2053, 10020, 17848, 1001, 2421, 1026, 3645, 1012, 1044, 1028, 1001, 2421, 1000, 5164, 21823, 2140, 1012, 1044, 1000, 1001, 2203, 10128, 1001, 2421, 1026, 5164, 1028, 1001, 2421, 1026, 20116, 18886, 3070, 1028, 1001, 2421, 1000, 21183, 4014, 1013, 3638, 2863, 11469, 8873, 2571, 1012, 1044, 1000, 1001, 2421, 1000, 21183, 4014, 1013, 11790, 1012, 1044, 1000, 1001, 2421, 1000, 21183, 4014, 1013, 9531, 21823, 4877, 1012, 1044, 1000, 3415, 15327, 18440, 2078, 1063, 3415, 15327, 21183, 4014, 1063, 1001, 2065, 3207, 2546, 1035, 2663, 16703, 22017, 2140, 3638, 2863, 11469, 8873, 2571, 1024, 1024, 6039, 1006, 5371, 11774, 2571, 1042, 2094, 1010, 2358, 2094, 1024, 1024, 2946, 1035, 1056, 2946, 1010, 2358, 2094, 1024, 1024, 21318, 3372, 2620, 1035, 1056, 3643, 1007, 1063, 2358, 2094, 1024, 1024, 21318, 3372, 2620, 1035, 1056, 17698, 1031, 6282, 2683, 2575, 1033, 1025, 2033, 5244, 3388, 1006, 17698, 1010, 3643, 1010, 1049, 1035, 3931, 1035, 2946, 1007, 1025, 1040, 18351, 2517, 1027, 1014, 1025, 2096, 1006, 2946, 1028, 1027, 1049, 1035, 3931, 1035, 2946, 1007, 1063, 2065, 1006, 999, 1024, 1024, 4339, 8873, 2571, 1006, 1042, 2094, 1012, 5047, 1010, 17698, 1010, 1006, 1040, 18351, 1007, 1049, 1035, 3931, 1035, 2946, 1010, 1004, 2517, 1010, 19701, 13876, 2099, 1007, 1007, 1063, 2709, 6270, 1025, 1065, 2946, 1011, 1027, 2517, 1025, 1065, 2065, 1006, 2946, 1007, 1063, 2065, 1006, 999, 1024, 1024, 4339, 8873, 2571, 1006, 1042, 2094, 1012, 5047, 1010, 17698, 1010, 1006, 1040, 18351, 1007, 2946, 1010, 1004, 2517, 1010, 19701, 13876, 2099, 1007, 1007, 1063, 2709, 6270, 1025, 1065, 1065, 2709, 2995, 1025, 1065, 3638, 2863, 11469, 8873, 2571, 1024, 1024, 13866, 2099, 1035, 1056, 3638, 2863, 11469, 8873, 2571, 1024, 1024, 3443, 2638, 2860, 1006, 9530, 3367, 25869, 1008, 5371, 18442, 1010, 2358, 2094, 30523, 1035, 2663, 16703, 1001, 2421, 1026, 25353, 2015, 1013, 21021, 2078, 1012, 1044, 1028, 1001, 2421, 1026, 25353, 2015, 1013, 28093, 1012, 1044, 1028, 1001, 2421, 1026, 4429, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1035, 2663, 16703, 1001, 2421, 1026, 25353, 2015, 1013, 21021, 2078, 1012, 1044, 1028, 1001, 2421, 1026, 25353, 2015, 1013, 28093, 1012, 1044, 1028, 1001, 2421, 1026, 4429, 30526 ]
/* Copyright (c) 2019 the Octant contributors. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package component import ( "fmt" "github.com/vmware-tanzu/octant/internal/util/json" ) // Error is a component for freetext // // +octant:component type Error struct { Base Config ErrorConfig `json:"config"` } // ErrorConfig is the contents of Text type ErrorConfig struct { Data string `json:"data,omitempty"` } // NewError creates a text component func NewError(title []TitleComponent, err error) *Error { return &Error{ Base: newBase(TypeError, title), Config: ErrorConfig{ Data: fmt.Sprintf("%+v", err), }, } } // SupportsTitle denotes this is a TextComponent. func (t *Error) SupportsTitle() {} type errorMarshal Error // MarshalJSON implements json.Marshaler func (t *Error) MarshalJSON() ([]byte, error) { m := errorMarshal(*t) m.Metadata.Type = TypeError return json.Marshal(&m) } // String returns the text content of the component. func (t *Error) String() string { return t.Config.Data } // LessThan returns true if this component's value is less than the argument supplied. func (t *Error) LessThan(i interface{}) bool { v, ok := i.(*Error) if !ok { return false } return t.Config.Data < v.Config.Data }
vmware/octant
pkg/view/component/error.go
GO
apache-2.0
1,262
[ 30522, 1013, 1008, 9385, 1006, 1039, 1007, 10476, 1996, 13323, 4630, 16884, 1012, 2035, 2916, 9235, 1012, 23772, 2595, 1011, 6105, 1011, 8909, 4765, 18095, 1024, 15895, 1011, 1016, 1012, 1014, 1008, 1013, 7427, 6922, 12324, 1006, 1000, 4718, 2102, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 1058, 2213, 8059, 1011, 9092, 9759, 1013, 13323, 4630, 1013, 4722, 1013, 21183, 4014, 1013, 1046, 3385, 1000, 1007, 1013, 1013, 7561, 2003, 1037, 6922, 2005, 2489, 18209, 1013, 1013, 1013, 1013, 1009, 13323, 4630, 1024, 6922, 2828, 7561, 2358, 6820, 6593, 1063, 2918, 9530, 8873, 2290, 7561, 8663, 8873, 2290, 1036, 1046, 3385, 1024, 1000, 9530, 8873, 2290, 1000, 1036, 1065, 1013, 1013, 7561, 8663, 8873, 2290, 2003, 1996, 8417, 1997, 3793, 2828, 7561, 8663, 8873, 2290, 2358, 6820, 6593, 1063, 2951, 5164, 1036, 1046, 3385, 1024, 1000, 2951, 1010, 18168, 4221, 27718, 2100, 1000, 1036, 1065, 1013, 1013, 10947, 29165, 9005, 1037, 3793, 6922, 4569, 2278, 10947, 29165, 1006, 2516, 1031, 1033, 2516, 9006, 29513, 3372, 1010, 9413, 2099, 7561, 1007, 1008, 7561, 1063, 2709, 1004, 7561, 1063, 2918, 1024, 2047, 15058, 1006, 2828, 2121, 29165, 1010, 2516, 1007, 1010, 9530, 8873, 2290, 1024, 7561, 8663, 8873, 2290, 1063, 2951, 1024, 4718, 2102, 1012, 9043, 2546, 1006, 1000, 1003, 1009, 1058, 1000, 1010, 9413, 2099, 1007, 1010, 1065, 1010, 1065, 1065, 1013, 1013, 6753, 3775, 9286, 14796, 2023, 2003, 1037, 3793, 9006, 29513, 3372, 1012, 4569, 2278, 1006, 1056, 1008, 7561, 1007, 6753, 3775, 9286, 1006, 1007, 1063, 1065, 2828, 7561, 7849, 7377, 2140, 7561, 1013, 1013, 8610, 22578, 2239, 22164, 1046, 3385, 1012, 8610, 2121, 4569, 2278, 1006, 1056, 1008, 7561, 1007, 8610, 22578, 2239, 1006, 1007, 1006, 1031, 1033, 24880, 1010, 7561, 1007, 1063, 1049, 1024, 1027, 7561, 7849, 7377, 2140, 1006, 1008, 1056, 1007, 1049, 1012, 27425, 1012, 2828, 1027, 2828, 2121, 29165, 2709, 1046, 3385, 1012, 8610, 1006, 1004, 1049, 1007, 1065, 1013, 1013, 5164, 5651, 1996, 3793, 4180, 1997, 1996, 6922, 1012, 4569, 2278, 1006, 1056, 1008, 7561, 1007, 5164, 1006, 1007, 5164, 1063, 2709, 1056, 1012, 9530, 8873, 2290, 1012, 2951, 1065, 1013, 1013, 2625, 21604, 5651, 2995, 2065, 2023, 6922, 1005, 1055, 3643, 2003, 2625, 2084, 1996, 6685, 8127, 1012, 4569, 2278, 1006, 1056, 1008, 7561, 1007, 2625, 21604, 1006, 1045, 8278, 1063, 1065, 1007, 22017, 2140, 1063, 1058, 1010, 7929, 1024, 1027, 1045, 1012, 1006, 1008, 7561, 1007, 2065, 999, 7929, 1063, 2709, 6270, 1065, 2709, 1056, 1012, 9530, 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, 30523, 8873, 2290, 1012, 2951, 1026, 1058, 1012, 9530, 8873, 2290, 1012, 2951, 1065, 102, 0, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8873, 2290, 1012, 2951, 1026, 1058, 1012, 9530, 8873, 2290, 1012, 2951, 1065, 102, 0, 30526 ]
<?php /* * Copyright 2018 Google LLC * * 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 * * https://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. */ namespace Apigee\Edge\Api\Monetization\Controller; use Apigee\Edge\Api\Monetization\Entity\BalanceInterface; use Apigee\Edge\Api\Monetization\Entity\PrepaidBalanceInterface; use Apigee\Edge\Controller\EntityControllerInterface; interface PrepaidBalanceControllerInterface extends EntityControllerInterface, PaginatedEntityListingControllerInterface { /** * @param string $currencyCode * * @return \Apigee\Edge\Api\Monetization\Entity\BalanceInterface|null */ public function getByCurrency(string $currencyCode): ?BalanceInterface; /** * @param float $amount * @param string $currencyCode * * @return \Apigee\Edge\Api\Monetization\Entity\BalanceInterface */ public function topUpBalance(float $amount, string $currencyCode): BalanceInterface; /** * Enables and modifies recurring payment settings. * * @param string $currencyCode * @param string $paymentProviderId * @param float $replenishAmount * @param float $recurringAmount * * @return \Apigee\Edge\Api\Monetization\Entity\BalanceInterface */ public function setupRecurringPayments(string $currencyCode, string $paymentProviderId, float $replenishAmount, float $recurringAmount): BalanceInterface; /** * Deactivate recurring payments. * * @param string $currencyCode * @param string $paymentProviderId * * @return \Apigee\Edge\Api\Monetization\Entity\BalanceInterface */ public function disableRecurringPayments(string $currencyCode, string $paymentProviderId): BalanceInterface; /** * Gets prepaid balances. * * @param \DateTimeImmutable $billingMonth * * @return \Apigee\Edge\Api\Monetization\Entity\PrepaidBalanceInterface[] */ public function getPrepaidBalance(\DateTimeImmutable $billingMonth): array; /** * Gets prepaid balance by currency. * * @param string $currencyCode * @param \DateTimeImmutable $billingMonth * * @return \Apigee\Edge\Api\Monetization\Entity\PrepaidBalanceInterface|null */ public function getPrepaidBalanceByCurrency(string $currencyCode, \DateTimeImmutable $billingMonth): ?PrepaidBalanceInterface; }
apigee/apigee-client-php
src/Api/Monetization/Controller/PrepaidBalanceControllerInterface.php
PHP
apache-2.0
2,834
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 9385, 2760, 8224, 11775, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 16770, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 3415, 15327, 17928, 18372, 1032, 3341, 1032, 17928, 1032, 12256, 20624, 9276, 1032, 11486, 1025, 2224, 17928, 18372, 1032, 3341, 1032, 17928, 1032, 12256, 20624, 9276, 1032, 9178, 1032, 5703, 18447, 2121, 12172, 1025, 2224, 17928, 18372, 1032, 3341, 1032, 17928, 1032, 12256, 20624, 9276, 1032, 9178, 1032, 17463, 14326, 26657, 18447, 2121, 12172, 1025, 2224, 17928, 18372, 1032, 3341, 1032, 11486, 1032, 9178, 8663, 13181, 10820, 18447, 2121, 12172, 1025, 8278, 17463, 14326, 26657, 8663, 13181, 10820, 18447, 2121, 12172, 8908, 9178, 8663, 13181, 10820, 18447, 2121, 12172, 1010, 6643, 20876, 3064, 4765, 3012, 9863, 2075, 8663, 13181, 10820, 18447, 2121, 12172, 1063, 1013, 1008, 1008, 1008, 1030, 11498, 2213, 5164, 1002, 9598, 16044, 1008, 1008, 1030, 2709, 1032, 17928, 18372, 1032, 3341, 1032, 17928, 1032, 12256, 20624, 9276, 1032, 9178, 1032, 5703, 18447, 2121, 12172, 1064, 19701, 1008, 1013, 2270, 3853, 2131, 3762, 10841, 14343, 9407, 1006, 5164, 1002, 9598, 16044, 1007, 1024, 1029, 5703, 18447, 2121, 12172, 1025, 1013, 1008, 1008, 1008, 1030, 11498, 2213, 14257, 1002, 3815, 1008, 1030, 11498, 2213, 5164, 1002, 9598, 16044, 1008, 1008, 1030, 2709, 1032, 17928, 18372, 1032, 3341, 1032, 17928, 1032, 12256, 20624, 9276, 1032, 9178, 1032, 5703, 18447, 2121, 12172, 1008, 1013, 2270, 3853, 2327, 6279, 26657, 1006, 14257, 1002, 3815, 1010, 5164, 1002, 9598, 16044, 1007, 1024, 5703, 18447, 2121, 12172, 1025, 1013, 1008, 1008, 1008, 12939, 1998, 16913, 14144, 10694, 7909, 10906, 1012, 1008, 1008, 1030, 11498, 2213, 5164, 1002, 9598, 16044, 1008, 1030, 11498, 2213, 5164, 1002, 7909, 21572, 17258, 11124, 2094, 1008, 30524, 9276, 1032, 9178, 1032, 5703, 18447, 2121, 12172, 1008, 1013, 2270, 3853, 16437, 2890, 10841, 18807, 4502, 25219, 7666, 1006, 5164, 1002, 9598, 16044, 1010, 5164, 1002, 7909, 21572, 17258, 11124, 2094, 1010, 14257, 1002, 16360, 7770, 24032, 20048, 1010, 14257, 1002, 10694, 22591, 16671, 1007, 1024, 5703, 18447, 2121, 12172, 1025, 1013, 1008, 1008, 1008, 26709, 6593, 21466, 10694, 10504, 1012, 1008, 1008, 1030, 11498, 2213, 5164, 1002, 9598, 16044, 1008, 1030, 30523, 1030, 11498, 2213, 14257, 1002, 16360, 7770, 24032, 20048, 1008, 1030, 11498, 2213, 14257, 1002, 10694, 22591, 16671, 1008, 1008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 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, 1030, 11498, 2213, 14257, 1002, 16360, 7770, 24032, 20048, 1008, 1030, 11498, 2213, 14257, 1002, 10694, 22591, 16671, 1008, 1008, 1030, 2709, 1032, 17928, 18372, 1032, 3341, 1032, 17928, 1032, 12256, 20624, 30526 ]
<?php /** * @file * @ingroup SMWStore * @since 1.8 */ /** * Class for representing a single (sub)query description. Simple data * container. * * @since 1.8 * @author Markus Krötzsch * @author Jeroen De Dauw * @ingroup SMWStore */ class SMWSQLStore3Query { /// Type of empty query without usable condition, dropped as soon as /// discovered. This is used only during preparing the query (no /// queries of this type should ever be added). const Q_NOQUERY = 0; /// Type of query that is a join with a query (jointable: internal /// table name; joinfield/components/where use alias.fields; /// from uses external table names, components interpreted /// conjunctively (JOIN)). const Q_TABLE = 1; /// Type of query that matches a constant value (joinfield is a /// disjunctive array of unquoted values, jointable empty, components /// empty). const Q_VALUE = 2; /// Type of query that is a disjunction of other queries /// (joinfield/jointable empty; only components relevant) const Q_DISJUNCTION = 3; /// Type of query that is a conjunction of other queries /// (joinfield/jointable empty; only components relevant). const Q_CONJUNCTION = 4; /// Type of query that creates a temporary table of all superclasses /// of given classes (only joinfield relevant: (disjunctive) array of /// unquoted values). const Q_CLASS_HIERARCHY = 5; /// Type of query that creates a temporary table of all superproperties /// of given properties (only joinfield relevant: (disjunctive) array /// of unquoted values). const Q_PROP_HIERARCHY = 6; public $type = SMWSQLStore3Query::Q_TABLE; public $jointable = ''; public $joinfield = ''; public $from = ''; public $where = ''; public $components = array(); /** * The alias to be used for jointable; read-only after construct! * @var string */ public $alias; /** * property dbkey => db field; passed down during query execution. * @var array */ public $sortfields = array(); public $queryNumber; public static $qnum = 0; public function __construct() { $this->queryNumber = self::$qnum; $this->alias = 't' . self::$qnum; self::$qnum++; } } /** * Class that implements query answering for SMWSQLStore3. * @ingroup SMWStore */ class SMWSQLStore3QueryEngine { /** Database slave to be used */ protected $m_dbs; // TODO: should temporary tables be created on the master DB? /** Parent SMWSQLStore3. */ protected $m_store; /** Query mode copied from given query. Some submethods act differently when in SMWQuery::MODE_DEBUG. */ protected $m_qmode; /** Array of generated SMWSQLStore3Query query descriptions (index => object). */ protected $m_queries = array(); /** Array of arrays of executed queries, indexed by the temporary table names results were fed into. */ protected $m_querylog = array(); /** * Array of sorting requests ("Property_name" => "ASC"/"DESC"). Used during query * processing (where these property names are searched while compiling the query * conditions). */ protected $m_sortkeys; /** Cache of computed hierarchy queries for reuse ("catetgory/property value string" => "tablename"). */ protected $m_hierarchies = array(); /** Local collection of error strings, passed on to callers if possible. */ protected $m_errors = array(); public function __construct( SMWSQLStore3 $parentstore, $dbslave ) { $this->m_store = $parentstore; $this->m_dbs = $dbslave; } /** * Refresh the concept cache for the given concept. * * @since 1.8 * @param $concept Title * @return array of error strings (empty if no errors occurred) */ public function refreshConceptCache( Title $concept ) { global $smwgQMaxLimit, $smwgQConceptFeatures, $wgDBtype; $fname = 'SMW::refreshConceptCache'; $cid = $this->m_store->smwIds->getSMWPageID( $concept->getDBkey(), SMW_NS_CONCEPT, '', '' ); $cid_c = $this->m_store->smwIds->getSMWPageID( $concept->getDBkey(), SMW_NS_CONCEPT, '', '', false ); if ( $cid != $cid_c ) { $this->m_errors[] = "Skipping redirect concept."; return $this->m_errors; } $values = $this->m_store->getPropertyValues( SMWDIWikiPage::newFromTitle( $concept ), new SMWDIProperty( '_CONC' ) ); $di = end( $values ); $desctxt = ( $di !== false ) ? $di->getConceptQuery() : false; $this->m_errors = array(); if ( $desctxt ) { // concept found $this->m_qmode = SMWQuery::MODE_INSTANCES; $this->m_queries = array(); $this->m_hierarchies = array(); $this->m_querylog = array(); $this->m_sortkeys = array(); SMWSQLStore3Query::$qnum = 0; // Pre-process query: $qp = new SMWQueryParser( $smwgQConceptFeatures ); $desc = $qp->getQueryDescription( $desctxt ); $qid = $this->compileQueries( $desc ); if ( $qid < 0 ) { return; } $this->executeQueries( $this->m_queries[$qid] ); // execute query tree, resolve all dependencies $qobj = $this->m_queries[$qid]; if ( $qobj->joinfield === '' ) { return; } // Update database: $this->m_dbs->delete( SMWSQLStore3::CONCEPT_CACHE_TABLE, array( 'o_id' => $cid ), $fname ); $smw_conccache = $this->m_dbs->tablename( SMWSQLStore3::CONCEPT_CACHE_TABLE ); if ( $wgDBtype == 'postgres' ) { // PostgresQL: no INSERT IGNORE, check for duplicates explicitly $where = $qobj->where . ( $qobj->where ? ' AND ' : '' ) . "NOT EXISTS (SELECT NULL FROM $smw_conccache" . " WHERE {$smw_conccache}.s_id = {$qobj->alias}.s_id " . " AND {$smw_conccache}.o_id = {$qobj->alias}.o_id )"; } else { // MySQL just uses INSERT IGNORE, no extra conditions $where = $qobj->where; } $this->m_dbs->query( "INSERT " . ( ( $wgDBtype == 'postgres' ) ? '' : 'IGNORE ' ) . "INTO $smw_conccache" . " SELECT DISTINCT {$qobj->joinfield} AS s_id, $cid AS o_id FROM " . $this->m_dbs->tableName( $qobj->jointable ) . " AS {$qobj->alias}" . $qobj->from . ( $where ? ' WHERE ' : '' ) . $where . " LIMIT $smwgQMaxLimit", $fname ); $this->m_dbs->update( 'smw_fpt_conc', array( 'cache_date' => strtotime( "now" ), 'cache_count' => $this->m_dbs->affectedRows() ), array( 's_id' => $cid ), $fname ); } else { // no concept found; just delete old data if there is any $this->m_dbs->delete( SMWSQLStore3::CONCEPT_CACHE_TABLE, array( 'o_id' => $cid ), $fname ); $this->m_dbs->update( 'smw_fpt_conc', array( 'cache_date' => null, 'cache_count' => null ), array( 's_id' => $cid ), $fname ); $this->m_errors[] = "No concept description found."; } $this->cleanUp(); return $this->m_errors; } /** * Delete the concept cache for the given concept. * * @param $concept Title */ public function deleteConceptCache( $concept ) { $cid = $this->m_store->smwIds->getSMWPageID( $concept->getDBkey(), SMW_NS_CONCEPT, '', '', false ); $this->m_dbs->delete( SMWSQLStore3::CONCEPT_CACHE_TABLE, array( 'o_id' => $cid ), 'SMW::refreshConceptCache' ); $this->m_dbs->update( 'smw_fpt_conc', array( 'cache_date' => null, 'cache_count' => null ), array( 's_id' => $cid ), 'SMW::refreshConceptCache' ); } /** * The new SQL store's implementation of query answering. This function * works in two stages: First, the nested conditions of the given query * object are preprocessed to compute an abstract representation of the * SQL query that is to be executed. Since query conditions correspond to * joins with property tables in most cases, this abstract representation * is essentially graph-like description of how property tables are joined. * Moreover, this graph is tree-shaped, since all query conditions are * tree-shaped. Each part of this abstract query structure is represented * by an SMWSQLStore3Query object in the array m_queries. * * As a second stage of processing, the thus prepared SQL query is actually * executed. Typically, this means that the joins are collapsed into one * SQL query to retrieve results. In some cases, such as in dbug mode, the * execution might be restricted and not actually perform the whole query. * * The two-stage process helps to separate tasks, and it also allows for * better optimisations: it is left to the execution engine how exactly the * query result is to be obtained. For example, one could pre-compute * partial suib-results in temporary tables (or even cache them somewhere), * instead of passing one large join query to the DB (of course, it might * be large only if the configuration of SMW allows it). For some DBMS, a * step-wise execution of the query might lead to better performance, since * it exploits the tree-structure of the joins, which is important for fast * processing -- not all DBMS might be able in seeing this by themselves. * * @param SMWQuery $query * * @return mixed: depends on $query->querymode */ public function getQueryResult( SMWQuery $query ) { global $smwgIgnoreQueryErrors, $smwgQSortingSupport; if ( ( !$smwgIgnoreQueryErrors || $query->getDescription() instanceof SMWThingDescription ) && $query->querymode != SMWQuery::MODE_DEBUG && count( $query->getErrors() ) > 0 ) { return new SMWQueryResult( $query->getDescription()->getPrintrequests(), $query, array(), $this->m_store, false ); // NOTE: we check this here to prevent unnecessary work, but we check // it after query processing below again in case more errors occurred. } elseif ( $query->querymode == SMWQuery::MODE_NONE ) { // don't query, but return something to printer return new SMWQueryResult( $query->getDescription()->getPrintrequests(), $query, array(), $this->m_store, true ); } $this->m_qmode = $query->querymode; $this->m_queries = array(); $this->m_hierarchies = array(); $this->m_querylog = array(); $this->m_errors = array(); SMWSQLStore3Query::$qnum = 0; $this->m_sortkeys = $query->sortkeys; // *** First compute abstract representation of the query (compilation) ***// wfProfileIn( 'SMWSQLStore3Queries::compileMainQuery (SMW)' ); $qid = $this->compileQueries( $query->getDescription() ); // compile query, build query "plan" wfProfileOut( 'SMWSQLStore3Queries::compileMainQuery (SMW)' ); if ( $qid < 0 ) { // no valid/supported condition; ensure that at least only proper pages are delivered $qid = SMWSQLStore3Query::$qnum; $q = new SMWSQLStore3Query(); $q->jointable = SMWSql3SmwIds::tableName; $q->joinfield = "$q->alias.smw_id"; $q->where = "$q->alias.smw_iw!=" . $this->m_dbs->addQuotes( SMW_SQL3_SMWIW_OUTDATED ) . " AND $q->alias.smw_iw!=" . $this->m_dbs->addQuotes( SMW_SQL3_SMWREDIIW ) . " AND $q->alias.smw_iw!=" . $this->m_dbs->addQuotes( SMW_SQL3_SMWBORDERIW ) . " AND $q->alias.smw_iw!=" . $this->m_dbs->addQuotes( SMW_SQL3_SMWINTDEFIW ); $this->m_queries[$qid] = $q; } if ( $this->m_queries[$qid]->jointable != SMWSql3SmwIds::tableName ) { // manually make final root query (to retrieve namespace,title): $rootid = SMWSQLStore3Query::$qnum; $qobj = new SMWSQLStore3Query(); $qobj->jointable = SMWSql3SmwIds::tableName; $qobj->joinfield = "$qobj->alias.smw_id"; $qobj->components = array( $qid => "$qobj->alias.smw_id" ); $qobj->sortfields = $this->m_queries[$qid]->sortfields; $this->m_queries[$rootid] = $qobj; } else { // not such a common case, but worth avoiding the additional inner join: $rootid = $qid; } // Include order conditions (may extend query if needed for sorting): if ( $smwgQSortingSupport ) { $this->applyOrderConditions( $rootid ); } // Possibly stop if new errors happened: if ( !$smwgIgnoreQueryErrors && $query->querymode != SMWQuery::MODE_DEBUG && count( $this->m_errors ) > 0 ) { $query->addErrors( $this->m_errors ); return new SMWQueryResult( $query->getDescription()->getPrintrequests(), $query, array(), $this->m_store, false ); } // *** Now execute the computed query ***// wfProfileIn( 'SMWSQLStore3Queries::executeMainQuery (SMW)' ); $this->executeQueries( $this->m_queries[$rootid] ); // execute query tree, resolve all dependencies wfProfileOut( 'SMWSQLStore3Queries::executeMainQuery (SMW)' ); switch ( $query->querymode ) { case SMWQuery::MODE_DEBUG: $result = $this->getDebugQueryResult( $query, $rootid ); break; case SMWQuery::MODE_COUNT: $result = $this->getCountQueryResult( $query, $rootid ); break; default: $result = $this->getInstanceQueryResult( $query, $rootid ); break; } $this->cleanUp(); $query->addErrors( $this->m_errors ); return $result; } /** * Using a preprocessed internal query description referenced by $rootid, compute * the proper debug output for the given query. * * @param SMWQuery $query * @param integer $rootid * * @return string */ protected function getDebugQueryResult( SMWQuery $query, $rootid ) { $qobj = $this->m_queries[$rootid]; $entries = array(); $sql_options = $this->getSQLOptions( $query, $rootid ); list( $startOpts, $useIndex, $tailOpts ) = $this->m_dbs->makeSelectOptions( $sql_options ); if ( $qobj->joinfield !== '' ) { $entries['SQL Query'] = "<tt>SELECT DISTINCT $qobj->alias.smw_title AS t,$qobj->alias.smw_namespace AS ns FROM " . $this->m_dbs->tableName( $qobj->jointable ) . " AS $qobj->alias" . $qobj->from . ( ( $qobj->where === '' ) ? '':' WHERE ' ) . $qobj->where . "$tailOpts LIMIT " . $sql_options['LIMIT'] . ' OFFSET ' . $sql_options['OFFSET'] . ';</tt>'; } else { $entries['SQL Query'] = 'Empty result, no SQL query created.'; } $auxtables = ''; foreach ( $this->m_querylog as $table => $log ) { $auxtables .= "<li>Temporary table $table"; foreach ( $log as $q ) { $auxtables .= "<br />&#160;&#160;<tt>$q</tt>"; } $auxtables .= '</li>'; } if ( $auxtables ) { $entries['Auxilliary Tables Used'] = "<ul>$auxtables</ul>"; } else { $entries['Auxilliary Tables Used'] = 'No auxilliary tables used.'; } return SMWStore::formatDebugOutput( 'SMWSQLStore3', $entries, $query ); } /** * Using a preprocessed internal query description referenced by $rootid, compute * the proper counting output for the given query. * * @param SMWQuery $query * @param integer $rootid * * @return integer */ protected function getCountQueryResult( SMWQuery $query, $rootid ) { wfProfileIn( 'SMWSQLStore3Queries::getCountQueryResult (SMW)' ); $qobj = $this->m_queries[$rootid]; if ( $qobj->joinfield === '' ) { // empty result, no query needed wfProfileOut( 'SMWSQLStore3Queries::getCountQueryResult (SMW)' ); return 0; } $sql_options = array( 'LIMIT' => $query->getLimit() + 1, 'OFFSET' => $query->getOffset() ); $res = $this->m_dbs->select( $this->m_dbs->tableName( $qobj->jointable ) . " AS $qobj->alias" . $qobj->from, "COUNT(DISTINCT $qobj->alias.smw_id) AS count", $qobj->where, 'SMW::getQueryResult', $sql_options ); $row = $this->m_dbs->fetchObject( $res ); $count = $row->count; $this->m_dbs->freeResult( $res ); wfProfileOut( 'SMWSQLStore3Queries::getCountQueryResult (SMW)' ); return $count; } /** * Using a preprocessed internal query description referenced by $rootid, * compute the proper result instance output for the given query. * @todo The SQL standard requires us to select all fields by which we sort, leading * to wrong results regarding the given limit: the user expects limit to be applied to * the number of distinct pages, but we can use DISTINCT only to whole rows. Thus, if * rows contain sortfields, then pages with multiple values for that field are distinct * and appear multiple times in the result. Filtering duplicates in post processing * would still allow such duplicates to push aside wanted values, leading to less than * "limit" results although there would have been "limit" really distinct results. For * this reason, we select sortfields only for POSTGRES. MySQL is able to perform what * we want here. It would be nice if we could eliminate the bug in POSTGRES as well. * * @param SMWQuery $query * @param integer $rootid * * @return SMWQueryResult */ protected function getInstanceQueryResult( SMWQuery $query, $rootid ) { global $wgDBtype; wfProfileIn( 'SMWSQLStore3Queries::getInstanceQueryResult (SMW)' ); $qobj = $this->m_queries[$rootid]; if ( $qobj->joinfield === '' ) { // empty result, no query needed $result = new SMWQueryResult( $query->getDescription()->getPrintrequests(), $query, array(), $this->m_store, false ); wfProfileOut( 'SMWSQLStore3Queries::getInstanceQueryResult (SMW)' ); return $result; } $sql_options = $this->getSQLOptions( $query, $rootid ); // Selecting those is required in standard SQL (but MySQL does not require it). $sortfields = implode( $qobj->sortfields, ',' ); $res = $this->m_dbs->select( $this->m_dbs->tableName( $qobj->jointable ) . " AS $qobj->alias" . $qobj->from, "DISTINCT $qobj->alias.smw_id AS id,$qobj->alias.smw_title AS t,$qobj->alias.smw_namespace AS ns,$qobj->alias.smw_iw AS iw,$qobj->alias.smw_subobject AS so,$qobj->alias.smw_sortkey AS sortkey" . ( $wgDBtype == 'postgres' ? ( ( $sortfields ? ',' : '' ) . $sortfields ) : '' ), $qobj->where, 'SMW::getQueryResult', $sql_options ); $qr = array(); $count = 0; // the number of fetched results ( != number of valid results in array $qr) $prs = $query->getDescription()->getPrintrequests(); $diHandler = $this->m_store->getDataItemHandlerForDIType( SMWDataItem::TYPE_WIKIPAGE ); while ( ( $count < $query->getLimit() ) && ( $row = $this->m_dbs->fetchObject( $res ) ) ) { if ( $row->iw === '' || $row->iw{0} != ':' ) { // Catch exception for non-existing predefined properties that // still registered within non-updated pages (@see bug 48711) try { $dataItem = $diHandler->dataItemFromDBKeys( array( $row->t, intval( $row->ns ), $row->iw, '', $row->so ) ); } catch ( \SMW\InvalidPredefinedPropertyException $e ) { wfDebugLog( __CLASS__, __METHOD__ . ': ' . $e->getMessage() ); } if ( $dataItem instanceof SMWDIWikiPage ) { $count++; $qr[] = $dataItem; // These IDs are usually needed for displaying the page (esp. if more property values are displayed): $this->m_store->smwIds->setCache( $row->t, $row->ns, $row->iw, $row->so, $row->id, $row->sortkey ); } } } if ( $this->m_dbs->fetchObject( $res ) ) { $count++; } $this->m_dbs->freeResult( $res ); $result = new SMWQueryResult( $prs, $query, $qr, $this->m_store, ( $count > $query->getLimit() ) ); wfProfileOut( 'SMWSQLStore3Queries::getInstanceQueryResult (SMW)' ); return $result; } /** * Create a new SMWSQLStore3Query object that can be used to obtain results * for the given description. The result is stored in $this->m_queries * using a numeric key that is returned as a result of the function. * Returns -1 if no query was created. * @todo The case of nominal classes (top-level SMWValueDescription) still * makes some assumptions about the table structure, especially about the * name of the joinfield (o_id). Better extend * compilePropertyValueDescription to deal with this case. * * @param SMWDescription $description * * @return integer */ protected function compileQueries( SMWDescription $description ) { $query = new SMWSQLStore3Query(); if ( $description instanceof SMWSomeProperty ) { $this->compileSomePropertyDescription( $query, $description ); } elseif ( $description instanceof SMWNamespaceDescription ) { // TODO: One instance of the SMW IDs table on s_id always suffices (swm_id is KEY)! Doable in execution ... (PERFORMANCE) $query->jointable = SMWSql3SmwIds::tableName; $query->joinfield = "$query->alias.smw_id"; $query->where = "$query->alias.smw_namespace=" . $this->m_dbs->addQuotes( $description->getNamespace() ); } elseif ( ( $description instanceof SMWConjunction ) || ( $description instanceof SMWDisjunction ) ) { $query->type = ( $description instanceof SMWConjunction ) ? SMWSQLStore3Query::Q_CONJUNCTION : SMWSQLStore3Query::Q_DISJUNCTION; foreach ( $description->getDescriptions() as $subdesc ) { $sub = $this->compileQueries( $subdesc ); if ( $sub >= 0 ) { $query->components[$sub] = true; } } // All subconditions failed, drop this as well. if ( count( $query->components ) == 0 ) { $query->type = SMWSQLStore3Query::Q_NOQUERY; } } elseif ( $description instanceof SMWClassDescription ) { $cqid = SMWSQLStore3Query::$qnum; $cquery = new SMWSQLStore3Query(); $cquery->type = SMWSQLStore3Query::Q_CLASS_HIERARCHY; $cquery->joinfield = array(); foreach ( $description->getCategories() as $cat ) { $cid = $this->m_store->smwIds->getSMWPageID( $cat->getDBkey(), NS_CATEGORY, $cat->getInterwiki(), '' ); if ( $cid != 0 ) { $cquery->joinfield[] = $cid; } } if ( count( $cquery->joinfield ) == 0 ) { // Empty result. $query->type = SMWSQLStore3Query::Q_VALUE; $query->jointable = ''; $query->joinfield = ''; } else { // Instance query with disjunction of classes (categories) $query->jointable = $this->m_dbs->tableName( $this->m_store->findPropertyTableID( new SMWDIProperty( '_INST' ) ) ); $query->joinfield = "$query->alias.s_id"; $query->components[$cqid] = "$query->alias.o_id"; $this->m_queries[$cqid] = $cquery; } } elseif ( $description instanceof SMWValueDescription ) { // Only type '_wpg' objects can appear on query level (essentially as nominal classes). if ( $description->getDataItem() instanceof SMWDIWikiPage ) { if ( $description->getComparator() == SMW_CMP_EQ ) { $query->type = SMWSQLStore3Query::Q_VALUE; $oid = $this->m_store->smwIds->getSMWPageID( $description->getDataItem()->getDBkey(), $description->getDataItem()->getNamespace(), $description->getDataItem()->getInterwiki(), $description->getDataItem()->getSubobjectName() ); $query->joinfield = array( $oid ); } else { // Join with SMW IDs table needed for other comparators (apply to title string). $query->jointable = SMWSql3SmwIds::tableName; $query->joinfield = "{$query->alias}.smw_id"; $value = $description->getDataItem()->getSortKey(); switch ( $description->getComparator() ) { case SMW_CMP_LEQ: $comp = '<='; break; case SMW_CMP_GEQ: $comp = '>='; break; case SMW_CMP_LESS: $comp = '<'; break; case SMW_CMP_GRTR: $comp = '>'; break; case SMW_CMP_NEQ: $comp = '!='; break; case SMW_CMP_LIKE: case SMW_CMP_NLKE: $comp = ' LIKE '; if ( $description->getComparator() == SMW_CMP_NLKE ) $comp = " NOT{$comp}"; $value = str_replace( array( '%', '_', '*', '?' ), array( '\%', '\_', '%', '_' ), $value ); break; } $query->where = "{$query->alias}.smw_sortkey$comp" . $this->m_dbs->addQuotes( $value ); } } } elseif ( $description instanceof SMWConceptDescription ) { // fetch concept definition and insert it here $cid = $this->m_store->smwIds->getSMWPageID( $description->getConcept()->getDBkey(), SMW_NS_CONCEPT, '', '' ); // We bypass the storage interface here (which is legal as we control it, and safe if we are careful with changes ...) // This should be faster, but we must implement the unescaping that concepts do on getWikiValue() $row = $this->m_dbs->selectRow( 'smw_fpt_conc', array( 'concept_txt', 'concept_features', 'concept_size', 'concept_depth', 'cache_date' ), array( 's_id' => $cid ), 'SMWSQLStore3Queries::compileQueries' ); if ( $row === false ) { // No description found, concept does not exist. // keep the above query object, it yields an empty result // TODO: announce an error here? (maybe not, since the query processor can check for // non-existing concept pages which is probably the main reason for finding nothing here) } else { global $smwgQConceptCaching, $smwgQMaxSize, $smwgQMaxDepth, $smwgQFeatures, $smwgQConceptCacheLifetime; $may_be_computed = ( $smwgQConceptCaching == CONCEPT_CACHE_NONE ) || ( ( $smwgQConceptCaching == CONCEPT_CACHE_HARD ) && ( ( ~( ~( $row->concept_features + 0 ) | $smwgQFeatures ) ) == 0 ) && ( $smwgQMaxSize >= $row->concept_size ) && ( $smwgQMaxDepth >= $row->concept_depth ) ); if ( $row->cache_date && ( ( $row->cache_date > ( strtotime( "now" ) - $smwgQConceptCacheLifetime * 60 ) ) || !$may_be_computed ) ) { // Cached concept, use cache unless it is dead and can be revived. $query->jointable = SMWSQLStore3::CONCEPT_CACHE_TABLE; $query->joinfield = "$query->alias.s_id"; $query->where = "$query->alias.o_id=" . $this->m_dbs->addQuotes( $cid ); } elseif ( $row->concept_txt ) { // Parse description and process it recursively. if ( $may_be_computed ) { $qp = new SMWQueryParser(); // No defaultnamespaces here; If any, these are already in the concept. // Unescaping is the same as in SMW_DV_Conept's getWikiValue(). $desc = $qp->getQueryDescription( str_replace( array( '&lt;', '&gt;', '&amp;' ), array( '<', '>', '&' ), $row->concept_txt ) ); $qid = $this->compileQueries( $desc ); if ($qid != -1) { $query = $this->m_queries[$qid]; } else { // somehow the concept query is no longer valid; maybe some syntax changed (upgrade) or global settings were modified since storing it $this->m_errors[] = wfMessage( 'smw_emptysubquery' )->text(); // not quite the right message, but this case is very rare; let us not make detailed messages for this } } else { $this->m_errors[] = wfMessage( 'smw_concept_cache_miss', $description->getConcept()->getText() )->text(); } } // else: no cache, no description (this may happen); treat like empty concept } } else { // (e.g. SMWThingDescription) $query->type = SMWSQLStore3Query::Q_NOQUERY; // no condition } $this->registerQuery( $query ); if ( $query->type != SMWSQLStore3Query::Q_NOQUERY ) { return $query->queryNumber; } else { return -1; } } /** * Register a query object to the internal query list, if the query is * valid. Also make sure that sortkey information is propagated down * from subqueries of this query. */ protected function registerQuery( SMWSQLStore3Query $query ) { if ( $query->type != SMWSQLStore3Query::Q_NOQUERY ) { $this->m_queries[$query->queryNumber] = $query; // Propagate sortkeys from subqueries: if ( $query->type != SMWSQLStore3Query::Q_DISJUNCTION ) { // Sortkeys are killed by disjunctions (not all parts may have them), // NOTE: preprocessing might try to push disjunctions downwards to safe sortkey, but this seems to be minor foreach ( $query->components as $cid => $field ) { $query->sortfields = array_merge( $this->m_queries[$cid]->sortfields, $query->sortfields ); } } } } /** * Modify the given query object to account for some property condition for * the given property. If it is not possible to generate a query for the * given data, the query type is changed to SMWSQLStore3Query::Q_NOQUERY. Callers need * to check for this and discard the query in this case. * * @note This method does not support sortkey (_SKEY) property queries, * since they do not have a normal property table. This should not be a * problem since comparators on sortkeys are supported indirectly when * using comparators on wikipages. There is no reason to create any * query with _SKEY ad users cannot do so either (no user label). * * @since 1.8 */ protected function compileSomePropertyDescription( SMWSQLStore3Query $query, SMWSomeProperty $description ) { $property = $description->getProperty(); $tableid = SMWSQLStore3::findPropertyTableID( $property ); if ( $tableid === '' ) { // Give up $query->type = SMWSQLStore3Query::Q_NOQUERY; return; } $proptables = SMWSQLStore3::getPropertyTables(); $proptable = $proptables[$tableid]; if ( !$proptable->usesIdSubject() ) { // no queries with such tables // (only redirects are affected in practice) $query->type = SMWSQLStore3Query::Q_NOQUERY; return; } $typeid = $property->findPropertyTypeID(); $diType = SMWDataValueFactory::getDataItemId( $typeid ); if ( $property->isInverse() && $diType != SMWDataItem::TYPE_WIKIPAGE ) { // can only invert properties that point to pages $query->type = SMWSQLStore3Query::Q_NOQUERY; return; } $diHandler = $this->m_store->getDataItemHandlerForDIType( $diType ); $indexField = $diHandler->getIndexField(); $sortkey = $property->getKey(); // TODO: strictly speaking, the DB key is not what we want here, since sortkey is based on a "wiki value" // *** Now construct the query ... ***// $query->jointable = $proptable->getName(); // *** Add conditions for selecting rows for this property ***// if ( !$proptable->isFixedPropertyTable() ) { $pid = $this->m_store->smwIds->getSMWPropertyID( $property ); // Construct property hierarchy: $pqid = SMWSQLStore3Query::$qnum; $pquery = new SMWSQLStore3Query(); $pquery->type = SMWSQLStore3Query::Q_PROP_HIERARCHY; $pquery->joinfield = array( $pid ); $query->components[$pqid] = "{$query->alias}.p_id"; $this->m_queries[$pqid] = $pquery; // Alternative code without property hierarchies: // $query->where = "{$query->alias}.p_id=" . $this->m_dbs->addQuotes( $pid ); } // else: no property column, no hierarchy queries // *** Add conditions on the value of the property ***// if ( $diType == SMWDataItem::TYPE_WIKIPAGE ) { $o_id = $indexField; if ( $property->isInverse() ) { $s_id = $o_id; $o_id = 's_id'; } else { $s_id = 's_id'; } $query->joinfield = "{$query->alias}.{$s_id}"; // process page description like main query $sub = $this->compileQueries( $description->getDescription() ); if ( $sub >= 0 ) { $query->components[$sub] = "{$query->alias}.{$o_id}"; } if ( array_key_exists( $sortkey, $this->m_sortkeys ) ) { // TODO: This SMW IDs table is possibly duplicated in the query. // Example: [[has capital::!Berlin]] with sort=has capital // Can we prevent that? (PERFORMANCE) $query->from = ' INNER JOIN ' . $this->m_dbs->tableName( SMWSql3SmwIds::tableName ) . " AS ids{$query->alias} ON ids{$query->alias}.smw_id={$query->alias}.{$o_id}"; $query->sortfields[$sortkey] = "ids{$query->alias}.smw_sortkey"; } } else { // non-page value description $query->joinfield = "{$query->alias}.s_id"; $this->compilePropertyValueDescription( $query, $description->getDescription(), $proptable, $diHandler, 'AND' ); if ( array_key_exists( $sortkey, $this->m_sortkeys ) ) { $query->sortfields[$sortkey] = "{$query->alias}.{$indexField}"; } } } /** * Given an SMWDescription that is just a conjunction or disjunction of * SMWValueDescription objects, create and return a plain WHERE condition * string for it. * * @param $query * @param SMWDescription $description * @param SMWSQLStore3Table $proptable * @param SMWDataItemHandler $diHandler for that table * @param string $operator SQL operator "AND" or "OR" */ protected function compilePropertyValueDescription( $query, SMWDescription $description, SMWSQLStore3Table $proptable, SMWDataItemHandler $diHandler, $operator ) { if ( $description instanceof SMWValueDescription ) { $this->compileValueDescription( $query, $description, $proptable, $diHandler, $operator ); } elseif ( ( $description instanceof SMWConjunction ) || ( $description instanceof SMWDisjunction ) ) { $op = ( $description instanceof SMWConjunction ) ? 'AND' : 'OR'; foreach ( $description->getDescriptions() as $subdesc ) { $this->compilePropertyValueDescription( $query, $subdesc, $proptable, $diHandler, $op ); } } elseif ( $description instanceof SMWThingDescription ) { // nothing to do } else { throw new MWException( "Cannot process this type of SMWDescription." ); } } /** * Given an SMWDescription that is just a conjunction or disjunction of * SMWValueDescription objects, create and return a plain WHERE condition * string for it. * * @param $query * @param SMWDescription $description * @param SMWSQLStore3Table $proptable * @param SMWDataItemHandler $diHandler for that table * @param string $operator SQL operator "AND" or "OR" */ protected function compileValueDescription( $query, SMWValueDescription $description, SMWSQLStore3Table $proptable, SMWDataItemHandler $diHandler, $operator ) { $where = ''; $dataItem = $description->getDataItem(); // TODO Better get the handle from the property type // Some comparators (e.g. LIKE) could use DI values of // a different type; we care about the property table, not // about the value $diType = $dataItem->getDIType(); // Try comparison based on value field and comparator, // but only if no join with SMW IDs table is needed. if ( $diType != SMWDataItem::TYPE_WIKIPAGE ) { // Do not support smw_id joined data for now. // See if the getSQLCondition method exists and call it if this is the case. if ( method_exists( $description, 'getSQLCondition' ) ) { $fields = $diHandler->getTableFields(); $where = $description->getSQLCondition( $query->alias, array_keys( $fields ), $this->m_dbs ); } if ( $where == '' ) { $indexField = $diHandler->getIndexField(); //Hack to get to the field used as index $keys = $diHandler->getWhereConds( $dataItem ); $value = $keys[$indexField]; switch ( $description->getComparator() ) { case SMW_CMP_EQ: $comparator = '='; break; case SMW_CMP_LESS: $comparator = '<'; break; case SMW_CMP_GRTR: $comparator = '>'; break; case SMW_CMP_LEQ: $comparator = '<='; break; case SMW_CMP_GEQ: $comparator = '>='; break; case SMW_CMP_NEQ: $comparator = '!='; break; case SMW_CMP_LIKE: case SMW_CMP_NLKE: if ( $description->getComparator() == SMW_CMP_LIKE ) { $comparator = ' LIKE '; } else { $comparator = ' NOT LIKE '; } // Escape to prepare string matching: $value = str_replace( array( '%', '_', '*', '?' ), array( '\%', '\_', '%', '_' ), $value ); break; default: throw new MWException( "Unsupported comparator '" . $description->getComparator() . "' in query condition." ); } $where = "$query->alias.{$indexField}{$comparator}" . $this->m_dbs->addQuotes( $value ); } } else { // exact match (like comparator = above, but not using $valueField throw new MWException("Debug -- this code might be dead."); foreach ( $diHandler->getWhereConds( $dataItem ) as $fieldname => $value ) { $where .= ( $where ? ' AND ' : '' ) . "{$query->alias}.$fieldname=" . $this->m_dbs->addQuotes( $value ); } } if ( $where !== '' ) { $query->where .= ( $query->where ? " $operator " : '' ) . "($where)"; } } /** * Process stored queries and change store accordingly. The query obj is modified * so that it contains non-recursive description of a select to execute for getting * the actual result. * * @param SMWSQLStore3Query $query */ protected function executeQueries( SMWSQLStore3Query &$query ) { global $wgDBtype; switch ( $query->type ) { case SMWSQLStore3Query::Q_TABLE: // Normal query with conjunctive subcondition. foreach ( $query->components as $qid => $joinfield ) { $subquery = $this->m_queries[$qid]; $this->executeQueries( $subquery ); if ( $subquery->jointable !== '' ) { // Join with jointable.joinfield $query->from .= ' INNER JOIN ' . $this->m_dbs->tableName( $subquery->jointable ) . " AS $subquery->alias ON $joinfield=" . $subquery->joinfield; } elseif ( $subquery->joinfield !== '' ) { // Require joinfield as "value" via WHERE. $condition = ''; foreach ( $subquery->joinfield as $value ) { $condition .= ( $condition ? ' OR ':'' ) . "$joinfield=" . $this->m_dbs->addQuotes( $value ); } if ( count( $subquery->joinfield ) > 1 ) { $condition = "($condition)"; } $query->where .= ( ( $query->where === '' ) ? '':' AND ' ) . $condition; } else { // interpret empty joinfields as impossible condition (empty result) $query->joinfield = ''; // make whole query false $query->jointable = ''; $query->where = ''; $query->from = ''; break; } if ( $subquery->where !== '' ) { $query->where .= ( ( $query->where === '' ) ? '':' AND ' ) . '(' . $subquery->where . ')'; } $query->from .= $subquery->from; } $query->components = array(); break; case SMWSQLStore3Query::Q_CONJUNCTION: // pick one subquery with jointable as anchor point ... reset( $query->components ); $key = false; foreach ( $query->components as $qkey => $qid ) { if ( $this->m_queries[$qkey]->jointable !== '' ) { $key = $qkey; break; } } if ( $key !== false ) { $result = $this->m_queries[$key]; unset( $query->components[$key] ); // Execute it first (may change jointable and joinfield, e.g. when making temporary tables) $this->executeQueries( $result ); // ... and append to this query the remaining queries. foreach ( $query->components as $qid => $joinfield ) { $result->components[$qid] = $result->joinfield; } // Second execute, now incorporating remaining conditions. $this->executeQueries( $result ); } else { // Only fixed values in conjunction, make a new value without joining. $key = $qkey; $result = $this->m_queries[$key]; unset( $query->components[$key] ); foreach ( $query->components as $qid => $joinfield ) { if ( $result->joinfield != $this->m_queries[$qid]->joinfield ) { $result->joinfield = ''; // all other values should already be '' break; } } } $query = $result; break; case SMWSQLStore3Query::Q_DISJUNCTION: if ( $this->m_qmode !== SMWQuery::MODE_DEBUG ) { $this->m_dbs->query( $this->getCreateTempIDTableSQL( $this->m_dbs->tableName( $query->alias ) ), 'SMW::executeQueries' ); } $this->m_querylog[$query->alias] = array(); foreach ( $query->components as $qid => $joinfield ) { $subquery = $this->m_queries[$qid]; $this->executeQueries( $subquery ); $sql = ''; if ( $subquery->jointable !== '' ) { $sql = 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '':'IGNORE ' ) . 'INTO ' . $this->m_dbs->tableName( $query->alias ) . " SELECT $subquery->joinfield FROM " . $this->m_dbs->tableName( $subquery->jointable ) . " AS $subquery->alias $subquery->from" . ( $subquery->where ? " WHERE $subquery->where":'' ); } elseif ( $subquery->joinfield !== '' ) { // NOTE: this works only for single "unconditional" values without further // WHERE or FROM. The execution must take care of not creating any others. $values = ''; foreach ( $subquery->joinfield as $value ) { $values .= ( $values ? ',' : '' ) . '(' . $this->m_dbs->addQuotes( $value ) . ')'; } $sql = 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '':'IGNORE ' ) . 'INTO ' . $this->m_dbs->tableName( $query->alias ) . " (id) VALUES $values"; } // else: // interpret empty joinfields as impossible condition (empty result), ignore if ( $sql ) { $this->m_querylog[$query->alias][] = $sql; if ( $this->m_qmode !== SMWQuery::MODE_DEBUG ) { $this->m_dbs->query( $sql , 'SMW::executeQueries' ); } } } $query->jointable = $query->alias; $query->joinfield = "$query->alias.id"; $query->sortfields = array(); // Make sure we got no sortfields. // TODO: currently this eliminates sortkeys, possibly keep them (needs different temp table format though, maybe not such a good thing to do) break; case SMWSQLStore3Query::Q_PROP_HIERARCHY: case SMWSQLStore3Query::Q_CLASS_HIERARCHY: // make a saturated hierarchy $this->executeHierarchyQuery( $query ); break; case SMWSQLStore3Query::Q_VALUE: break; // nothing to do } } /** * Find subproperties or subcategories. This may require iterative computation, * and temporary tables are used in many cases. * * @param SMWSQLStore3Query $query */ protected function executeHierarchyQuery( SMWSQLStore3Query &$query ) { global $wgDBtype, $smwgQSubpropertyDepth, $smwgQSubcategoryDepth; $fname = "SMWSQLStore3Queries::executeQueries-hierarchy-{$query->type} (SMW)"; wfProfileIn( $fname ); $depth = ( $query->type == SMWSQLStore3Query::Q_PROP_HIERARCHY ) ? $smwgQSubpropertyDepth : $smwgQSubcategoryDepth; if ( $depth <= 0 ) { // treat as value, no recursion $query->type = SMWSQLStore3Query::Q_VALUE; wfProfileOut( $fname ); return; } $values = ''; $valuecond = ''; foreach ( $query->joinfield as $value ) { $values .= ( $values ? ',':'' ) . '(' . $this->m_dbs->addQuotes( $value ) . ')'; $valuecond .= ( $valuecond ? ' OR ':'' ) . 'o_id=' . $this->m_dbs->addQuotes( $value ); } $propertyKey = ( $query->type == SMWSQLStore3Query::Q_PROP_HIERARCHY ) ? '_SUBP' : '_SUBC'; $smwtable = $this->m_dbs->tableName( $this->m_store->findPropertyTableID( new SMWDIProperty( $propertyKey ) ) ); // Try to safe time (SELECT is cheaper than creating/dropping 3 temp tables): $res = $this->m_dbs->select( $smwtable, 's_id', $valuecond, __METHOD__, array( 'LIMIT' => 1 ) ); if ( !$this->m_dbs->fetchObject( $res ) ) { // no subobjects, we are done! $this->m_dbs->freeResult( $res ); $query->type = SMWSQLStore3Query::Q_VALUE; wfProfileOut( $fname ); return; } $this->m_dbs->freeResult( $res ); $tablename = $this->m_dbs->tableName( $query->alias ); $this->m_querylog[$query->alias] = array( "Recursively computed hierarchy for element(s) $values." ); $query->jointable = $query->alias; $query->joinfield = "$query->alias.id"; if ( $this->m_qmode == SMWQuery::MODE_DEBUG ) { wfProfileOut( $fname ); return; // No real queries in debug mode. } $this->m_dbs->query( $this->getCreateTempIDTableSQL( $tablename ), 'SMW::executeHierarchyQuery' ); if ( array_key_exists( $values, $this->m_hierarchies ) ) { // Just copy known result. $this->m_dbs->query( "INSERT INTO $tablename (id) SELECT id" . ' FROM ' . $this->m_hierarchies[$values], 'SMW::executeHierarchyQuery' ); wfProfileOut( $fname ); return; } // NOTE: we use two helper tables. One holds the results of each new iteration, one holds the // results of the previous iteration. One could of course do with only the above result table, // but then every iteration would use all elements of this table, while only the new ones // obtained in the previous step are relevant. So this is a performance measure. $tmpnew = 'smw_new'; $tmpres = 'smw_res'; $this->m_dbs->query( $this->getCreateTempIDTableSQL( $tmpnew ), 'SMW::executeQueries' ); $this->m_dbs->query( $this->getCreateTempIDTableSQL( $tmpres ), 'SMW::executeQueries' ); $this->m_dbs->query( "INSERT " . ( ( $wgDBtype == 'postgres' ) ? "" : "IGNORE" ) . " INTO $tablename (id) VALUES $values", 'SMW::executeHierarchyQuery' ); $this->m_dbs->query( "INSERT " . ( ( $wgDBtype == 'postgres' ) ? "" : "IGNORE" ) . " INTO $tmpnew (id) VALUES $values", 'SMW::executeHierarchyQuery' ); for ( $i = 0; $i < $depth; $i++ ) { $this->m_dbs->query( "INSERT " . ( ( $wgDBtype == 'postgres' ) ? '' : 'IGNORE ' ) . "INTO $tmpres (id) SELECT s_id" . ( $wgDBtype == 'postgres' ? '::integer':'' ) . " FROM $smwtable, $tmpnew WHERE o_id=id", 'SMW::executeHierarchyQuery' ); if ( $this->m_dbs->affectedRows() == 0 ) { // no change, exit loop break; } $this->m_dbs->query( "INSERT " . ( ( $wgDBtype == 'postgres' ) ? '' : 'IGNORE ' ) . "INTO $tablename (id) SELECT $tmpres.id FROM $tmpres", 'SMW::executeHierarchyQuery' ); if ( $this->m_dbs->affectedRows() == 0 ) { // no change, exit loop break; } $this->m_dbs->query( 'TRUNCATE TABLE ' . $tmpnew, 'SMW::executeHierarchyQuery' ); // empty "new" table $tmpname = $tmpnew; $tmpnew = $tmpres; $tmpres = $tmpname; } $this->m_hierarchies[$values] = $tablename; $this->m_dbs->query( ( ( $wgDBtype == 'postgres' ) ? 'DROP TABLE IF EXISTS smw_new' : 'DROP TEMPORARY TABLE smw_new' ), 'SMW::executeHierarchyQuery' ); $this->m_dbs->query( ( ( $wgDBtype == 'postgres' ) ? 'DROP TABLE IF EXISTS smw_res' : 'DROP TEMPORARY TABLE smw_res' ), 'SMW::executeHierarchyQuery' ); wfProfileOut( $fname ); } /** * This function modifies the given query object at $qid to account for all ordering conditions * in the SMWQuery $query. It is always required that $qid is the id of a query that joins with * SMW IDs table so that the field alias.smw_title is $available for default sorting. * * @param integer $qid */ protected function applyOrderConditions( $qid ) { $qobj = $this->m_queries[$qid]; // (1) collect required extra property descriptions: $extraproperties = array(); foreach ( $this->m_sortkeys as $propkey => $order ) { if ( !array_key_exists( $propkey, $qobj->sortfields ) ) { // Find missing property to sort by. if ( $propkey === '' ) { // Sort by first result column (page titles). $qobj->sortfields[$propkey] = "$qobj->alias.smw_sortkey"; } else { // Try to extend query. $sortprop = SMWPropertyValue::makeUserProperty( $propkey ); if ( $sortprop->isValid() ) { $extraproperties[] = new SMWSomeProperty( $sortprop->getDataItem(), new SMWThingDescription() ); } } } } // (2) compile according conditions and hack them into $qobj: if ( count( $extraproperties ) > 0 ) { $desc = new SMWConjunction( $extraproperties ); $newqid = $this->compileQueries( $desc ); $newqobj = $this->m_queries[$newqid]; // This is always an SMWSQLStore3Query::Q_CONJUNCTION ... foreach ( $newqobj->components as $cid => $field ) { // ... so just re-wire its dependencies $qobj->components[$cid] = $qobj->joinfield; $qobj->sortfields = array_merge( $qobj->sortfields, $this->m_queries[$cid]->sortfields ); } $this->m_queries[$qid] = $qobj; } } /** * Get a SQL option array for the given query and preprocessed query object at given id. * * @param SMWQuery $query * @param integer $rootid */ protected function getSQLOptions( SMWQuery $query, $rootid ) { global $smwgQSortingSupport, $smwgQRandSortingSupport; $result = array( 'LIMIT' => $query->getLimit() + 1, 'OFFSET' => $query->getOffset() ); // Build ORDER BY options using discovered sorting fields. if ( $smwgQSortingSupport ) { $qobj = $this->m_queries[$rootid]; foreach ( $this->m_sortkeys as $propkey => $order ) { if ( ( $order != 'RANDOM' ) && array_key_exists( $propkey, $qobj->sortfields ) ) { // Field was successfully added. $result['ORDER BY'] = ( array_key_exists( 'ORDER BY', $result ) ? $result['ORDER BY'] . ', ' : '' ) . $qobj->sortfields[$propkey] . " $order "; } elseif ( ( $order == 'RANDOM' ) && $smwgQRandSortingSupport ) { $result['ORDER BY'] = ( array_key_exists( 'ORDER BY', $result ) ? $result['ORDER BY'] . ', ' : '' ) . ' RAND() '; } } } return $result; } /** * After querying, make sure no temporary database tables are left. * @todo I might be better to keep the tables and possibly reuse them later * on. Being temporary, the tables will vanish with the session anyway. */ protected function cleanUp() { global $wgDBtype; if ( $this->m_qmode !== SMWQuery::MODE_DEBUG ) { foreach ( $this->m_querylog as $table => $log ) { $this->m_dbs->query( ( ( $wgDBtype == 'postgres' ) ? "DROP TABLE IF EXISTS ":"DROP TEMPORARY TABLE " ) . $this->m_dbs->tableName( $table ), 'SMW::getQueryResult' ); } } } /** * Get SQL code suitable to create a temporary table of the given name, used to store ids. * MySQL can do that simply by creating new temporary tables. PostgreSQL first checks if such * a table exists, so the code is ready to reuse existing tables if the code was modified to * keep them after query answering. Also, PostgreSQL tables will use a RULE to achieve built-in * duplicate elimination. The latter is done using INSERT IGNORE in MySQL. * * @param string $tablename */ protected function getCreateTempIDTableSQL( $tablename ) { global $wgDBtype; if ( $wgDBtype == 'postgres' ) { // PostgreSQL: no memory tables, use RULE to emulate INSERT IGNORE return "CREATE OR REPLACE FUNCTION create_" . $tablename . "() RETURNS void AS " . "$$ " . "BEGIN " . " IF EXISTS(SELECT NULL FROM pg_tables WHERE tablename='" . $tablename . "' AND schemaname = ANY (current_schemas(true))) " . " THEN DELETE FROM " . $tablename . "; " . " ELSE " . " CREATE TEMPORARY TABLE " . $tablename . " (id INTEGER PRIMARY KEY); " . " CREATE RULE " . $tablename . "_ignore AS ON INSERT TO " . $tablename . " WHERE (EXISTS (SELECT NULL FROM " . $tablename . " WHERE (" . $tablename . ".id = new.id))) DO INSTEAD NOTHING; " . " END IF; " . "END; " . "$$ " . "LANGUAGE 'plpgsql'; " . "SELECT create_" . $tablename . "(); "; } else { // MySQL_ just a temporary table, use INSERT IGNORE later return "CREATE TEMPORARY TABLE " . $tablename . "( id INT UNSIGNED KEY ) ENGINE=MEMORY"; } } }
JeroenDeDauw/SemanticMediaWiki
includes/storage/SQLStore/SMW_SQLStore3_Queries.php
PHP
gpl-2.0
49,492
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 1030, 5371, 1008, 1030, 13749, 22107, 15488, 9333, 19277, 1008, 1030, 2144, 1015, 1012, 1022, 1008, 1013, 1013, 1008, 1008, 1008, 2465, 2005, 5052, 1037, 2309, 1006, 4942, 1007, 23032, 6412, 1012, 3722, 2951, 1008, 11661, 1012, 1008, 1008, 1030, 2144, 1015, 1012, 1022, 1008, 1030, 3166, 23030, 1047, 21709, 2480, 11624, 1008, 1030, 3166, 15333, 3217, 2368, 2139, 4830, 25974, 1008, 1030, 13749, 22107, 15488, 9333, 19277, 1008, 1013, 2465, 15488, 9333, 4160, 4877, 19277, 2509, 4226, 2854, 1063, 1013, 1013, 1013, 2828, 1997, 4064, 23032, 2302, 24013, 4650, 1010, 3333, 2004, 2574, 2004, 1013, 1013, 1013, 3603, 1012, 2023, 2003, 2109, 2069, 2076, 8225, 1996, 23032, 1006, 2053, 1013, 1013, 1013, 10861, 5134, 1997, 2023, 2828, 2323, 2412, 2022, 2794, 1007, 1012, 9530, 3367, 1053, 1035, 2053, 4226, 2854, 1027, 1014, 1025, 1013, 1013, 1013, 2828, 1997, 23032, 2008, 2003, 1037, 3693, 2007, 1037, 23032, 1006, 4101, 3085, 1024, 4722, 1013, 1013, 1013, 2795, 2171, 1025, 3693, 3790, 1013, 6177, 1013, 2073, 2224, 14593, 1012, 4249, 1025, 1013, 1013, 1013, 2013, 3594, 6327, 2795, 3415, 1010, 6177, 10009, 1013, 1013, 1013, 9530, 19792, 15277, 2135, 1006, 3693, 1007, 1007, 1012, 9530, 3367, 1053, 1035, 2795, 1027, 1015, 1025, 1013, 1013, 1013, 2828, 1997, 23032, 2008, 3503, 1037, 5377, 3643, 1006, 3693, 3790, 2003, 1037, 1013, 1013, 1013, 4487, 2015, 19792, 15277, 9140, 1997, 4895, 28940, 27428, 5300, 1010, 4101, 3085, 4064, 1010, 6177, 1013, 1013, 1013, 4064, 1007, 1012, 9530, 3367, 1053, 1035, 3643, 1027, 1016, 1025, 1013, 1013, 1013, 2828, 1997, 23032, 2008, 2003, 1037, 4487, 2015, 19792, 7542, 1997, 2060, 10861, 5134, 1013, 1013, 1013, 1006, 3693, 3790, 1013, 4101, 3085, 4064, 1025, 2069, 6177, 7882, 1007, 9530, 3367, 1053, 1035, 4487, 2015, 19792, 7542, 1027, 1017, 1025, 1013, 1013, 1013, 2828, 1997, 23032, 2008, 2003, 1037, 9595, 1997, 2060, 10861, 5134, 1013, 1013, 1013, 1006, 3693, 3790, 1013, 4101, 3085, 4064, 1025, 2069, 6177, 7882, 1007, 1012, 9530, 3367, 1053, 1035, 9595, 1027, 1018, 1025, 1013, 1013, 1013, 2828, 1997, 23032, 2008, 9005, 1037, 5741, 2795, 1997, 2035, 3565, 26266, 2229, 1013, 1013, 1013, 1997, 2445, 4280, 1006, 2069, 3693, 3790, 7882, 1024, 1006, 4487, 2015, 19792, 15277, 1007, 9140, 1997, 1013, 1013, 1013, 4895, 28940, 27428, 5300, 1007, 1012, 9530, 3367, 1053, 1035, 2465, 1035, 12571, 1027, 1019, 1025, 1013, 1013, 1013, 2828, 1997, 23032, 2008, 9005, 1037, 5741, 2795, 1997, 2035, 3565, 30524, 1007, 1012, 9530, 3367, 1053, 1035, 17678, 1035, 12571, 1027, 1020, 1025, 2270, 1002, 2828, 1027, 15488, 9333, 4160, 4877, 19277, 2509, 4226, 2854, 1024, 1024, 1053, 1035, 2795, 1025, 2270, 1002, 4101, 3085, 1027, 1005, 1005, 1025, 2270, 1002, 3693, 3790, 1027, 1005, 1005, 1025, 2270, 1002, 2013, 1027, 1005, 1005, 1025, 2270, 1002, 2073, 1027, 1005, 1005, 1025, 2270, 1002, 30523, 21572, 4842, 7368, 1013, 1013, 1013, 1997, 2445, 5144, 1006, 2069, 3693, 3790, 7882, 1024, 1006, 4487, 2015, 19792, 15277, 1007, 9140, 1013, 1013, 1013, 1997, 4895, 28940, 27428, 5300, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 21572, 4842, 7368, 1013, 1013, 1013, 1997, 2445, 5144, 1006, 2069, 3693, 3790, 7882, 1024, 1006, 4487, 2015, 19792, 15277, 1007, 9140, 1013, 1013, 1013, 1997, 4895, 28940, 27428, 5300, 30526 ]
using System; using System.Runtime.InteropServices; namespace NAudio.CoreAudioApi.Interfaces { [Guid("C8ADBD64-E71E-48a0-A4DE-185C395CD317"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IAudioCaptureClient { /*HRESULT GetBuffer( BYTE** ppData, UINT32* pNumFramesToRead, DWORD* pdwFlags, UINT64* pu64DevicePosition, UINT64* pu64QPCPosition );*/ int GetBuffer( out IntPtr dataBuffer, out int numFramesToRead, out AudioClientBufferFlags bufferFlags, out long devicePosition, out long qpcPosition); int ReleaseBuffer(int numFramesRead); int GetNextPacketSize(out int numFramesInNextPacket); } }
Aragas/VKPlayer
VKPlayer/NAudio/CoreAudioApi/Interfaces/IAudioCaptureClient.cs
C#
mit
810
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 2448, 7292, 1012, 6970, 11923, 2121, 7903, 2229, 1025, 3415, 15327, 6583, 21041, 2080, 1012, 4563, 19513, 3695, 9331, 2072, 1012, 19706, 1063, 1031, 26458, 2094, 1006, 1000, 1039, 2620, 4215, 2497, 2094, 21084, 1011, 1041, 2581, 2487, 2063, 1011, 4466, 2050, 2692, 1011, 1037, 2549, 3207, 1011, 15376, 2278, 23499, 2629, 19797, 21486, 2581, 1000, 1007, 1010, 8278, 13874, 1006, 4012, 18447, 2121, 12172, 13874, 1012, 8278, 17417, 16814, 19779, 2078, 1007, 1033, 4722, 8278, 24264, 21041, 24755, 13876, 5397, 20464, 11638, 1063, 1013, 1008, 17850, 2229, 11314, 2131, 8569, 12494, 1006, 24880, 1008, 1008, 4903, 2850, 2696, 1010, 21318, 3372, 16703, 1008, 1052, 19172, 15643, 23809, 13775, 1010, 1040, 18351, 1008, 22851, 2860, 10258, 26454, 1010, 21318, 3372, 21084, 1008, 16405, 21084, 24844, 6610, 26994, 1010, 21318, 3372, 21084, 1008, 16405, 21084, 4160, 15042, 26994, 1007, 1025, 1008, 1013, 20014, 2131, 8569, 12494, 1006, 2041, 20014, 13876, 2099, 2951, 8569, 12494, 1010, 2041, 20014, 16371, 2213, 15643, 23809, 13775, 1010, 2041, 5746, 20464, 11638, 8569, 12494, 10258, 26454, 17698, 10258, 26454, 1010, 2041, 2146, 5080, 26994, 1010, 2041, 2146, 1053, 15042, 26994, 1007, 1025, 20014, 2713, 8569, 12494, 1006, 20014, 16371, 2213, 15643, 21338, 13775, 1007, 1025, 20014, 2131, 2638, 18413, 23947, 8454, 4697, 1006, 2041, 20014, 16371, 2213, 15643, 11493, 2638, 18413, 23947, 3388, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
/** * Project Wonderland * * Copyright (c) 2004-2009, Sun Microsystems, Inc., All Rights Reserved * * Redistributions in source code form must reproduce the above * copyright and this condition. * * The contents of this file are subject to the GNU General Public * License, Version 2 (the "License"); you may not use this file * except in compliance with the License. A copy of the License is * available at http://www.opensource.org/licenses/gpl-license.php. * * Sun designates this particular file as subject to the "Classpath" * exception as provided by Sun in the License file that accompanied * this code. */ package org.jdesktop.wonderland.modules.phone.server.cell; import com.sun.sgs.app.ManagedReference; import org.jdesktop.wonderland.modules.phone.common.CallListing; import org.jdesktop.wonderland.modules.phone.common.messages.CallInvitedResponseMessage; import org.jdesktop.wonderland.modules.phone.common.messages.CallEndedResponseMessage; import org.jdesktop.wonderland.modules.phone.common.messages.CallEstablishedResponseMessage; import com.sun.mpk20.voicelib.app.AudioGroup; import com.sun.mpk20.voicelib.app.Call; import com.sun.mpk20.voicelib.app.ManagedCallStatusListener; import com.sun.mpk20.voicelib.app.Player; import com.sun.mpk20.voicelib.app.VoiceManager; import com.sun.sgs.app.AppContext; import com.sun.sgs.app.ManagedObject; import com.sun.voip.CallParticipant; import com.sun.voip.client.connector.CallStatus; import org.jdesktop.wonderland.common.cell.messages.CellMessage; import org.jdesktop.wonderland.server.WonderlandContext; import org.jdesktop.wonderland.server.comms.WonderlandClientID; import org.jdesktop.wonderland.server.comms.WonderlandClientSender; import org.jdesktop.wonderland.server.comms.CommsManager; import org.jdesktop.wonderland.common.cell.CellChannelConnectionType; import java.io.IOException; import java.io.Serializable; import java.util.logging.Logger; import org.jdesktop.wonderland.common.messages.Message; import org.jdesktop.wonderland.common.cell.CellID; import org.jdesktop.wonderland.server.cell.CellMO; import com.jme.math.Vector3f; /** * A server cell that provides conference phone functionality * @author jprovino */ public class PhoneStatusListener implements ManagedCallStatusListener, Serializable { private static final Logger logger = Logger.getLogger(PhoneStatusListener.class.getName()); private CellID cellID; private CallListing listing; private WonderlandClientID clientID; public PhoneStatusListener(PhoneCellMO phoneCellMO, CallListing listing, WonderlandClientID clientID) { cellID = phoneCellMO.getCellID(); this.listing = listing; this.clientID = clientID; AppContext.getManager(VoiceManager.class).addCallStatusListener(this, listing.getExternalCallID()); } private boolean ended; public void callStatusChanged(CallStatus status) { logger.finer("got status " + status); WonderlandClientSender sender = WonderlandContext.getCommsManager().getSender( CellChannelConnectionType.CLIENT_TYPE); VoiceManager vm = AppContext.getManager(VoiceManager.class); Call externalCall = null; if (listing.getExternalCallID() != null) { externalCall = vm.getCall(listing.getExternalCallID()); } Call softphoneCall = vm.getCall(listing.getSoftphoneCallID()); logger.fine("external call: " + externalCall); logger.fine("softphone call: " + softphoneCall); switch(status.getCode()) { case CallStatus.INVITED: //The call has been placed, the phone should be ringing /** HARRISDEBUG: It should be tested whether or not we'll catch * callStatus changes for calls which we've just set up. * If not, this code will have to be moved back to the * "messageReceived->PlaceCall" function. **/ if (listing.isPrivate()) { //Start playing the phone ringing sound try { softphoneCall.playTreatment("ring_tone.au"); } catch (IOException e) { logger.warning("Unable to play treatment " + softphoneCall + ": " + e.getMessage()); } } sender.send(clientID, new CallInvitedResponseMessage(cellID, listing, true)); break; //Something's picked up, the call has been connected case CallStatus.ESTABLISHED: if (listing.isPrivate()) { //Stop playing the phone ringing sound try { softphoneCall.stopTreatment("ring_tone.au"); } catch (IOException e) { logger.warning("Unable to stop treatment " + softphoneCall + ": " + e.getMessage()); } } sender.send(clientID, new CallEstablishedResponseMessage(cellID, listing, true)); break; case CallStatus.ENDED: if (ended) { return; } ended = true; vm.removeCallStatusListener(this); //Stop the ringing if (softphoneCall != null) { try { softphoneCall.stopTreatment("ring_tone.au"); } catch (IOException e) { logger.warning( "Unable to stop treatment " + softphoneCall + ": " + e.getMessage()); } } String softphoneCallID = listing.getSoftphoneCallID(); //This may appear redundant, but it's necessary for the VoiceManager // to remove its internal data structures. if (listing.simulateCalls() == false) { if (externalCall != null) { try { vm.endCall(externalCall, true); } catch (IOException e) { logger.warning( "Unable to end call " + externalCall + ": " + e.getMessage()); } } if (listing.isPrivate()) { String audioGroupId = softphoneCallID + "_" + listing.getPrivateClientName(); AudioGroup audioGroup = vm.getAudioGroup(audioGroupId); if (audioGroup != null) { if (softphoneCall.getPlayer() != null) { softphoneCall.getPlayer().attenuateOtherGroups(audioGroup, AudioGroup.DEFAULT_SPEAKING_ATTENUATION, AudioGroup.DEFAULT_LISTEN_ATTENUATION); } vm.removeAudioGroup(audioGroup); } } } sender.send(clientID, new CallEndedResponseMessage(cellID, listing, true, status.getOption("Reason"))); break; } } }
AsherBond/MondocosmOS
wonderland/modules/tools/phone/src/classes/org/jdesktop/wonderland/modules/phone/server/cell/PhoneStatusListener.java
Java
agpl-3.0
6,625
[ 30522, 1013, 1008, 1008, 1008, 2622, 20365, 1008, 1008, 9385, 1006, 1039, 30524, 1996, 2682, 1008, 9385, 1998, 2023, 4650, 1012, 1008, 1008, 1996, 8417, 1997, 2023, 5371, 2024, 3395, 2000, 1996, 27004, 2236, 2270, 1008, 6105, 1010, 2544, 1016, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 1008, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1037, 6100, 1997, 1996, 6105, 2003, 1008, 2800, 2012, 8299, 1024, 1013, 1013, 7479, 1012, 7480, 8162, 3401, 1012, 8917, 1013, 15943, 1013, 14246, 2140, 1011, 6105, 1012, 25718, 1012, 1008, 1008, 3103, 24414, 2015, 2023, 3327, 5371, 2004, 3395, 2000, 1996, 1000, 2465, 15069, 1000, 1008, 6453, 2004, 3024, 2011, 3103, 1999, 1996, 6105, 5371, 2008, 5642, 1008, 2023, 3642, 1012, 1008, 1013, 7427, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 14184, 1012, 3042, 1012, 8241, 1012, 3526, 1025, 12324, 4012, 1012, 3103, 1012, 22214, 2015, 1012, 10439, 1012, 3266, 2890, 25523, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 14184, 1012, 3042, 1012, 2691, 1012, 2655, 9863, 2075, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 14184, 1012, 3042, 1012, 2691, 1012, 7696, 1012, 2655, 2378, 25217, 16200, 13102, 5644, 21382, 11488, 3351, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 14184, 1012, 3042, 1012, 2691, 1012, 7696, 1012, 2655, 21945, 6072, 26029, 3366, 7834, 3736, 3351, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 14184, 1012, 3042, 1012, 2691, 1012, 7696, 1012, 2655, 4355, 7875, 13602, 2098, 6072, 26029, 3366, 7834, 3736, 3351, 1025, 12324, 4012, 1012, 3103, 1012, 6131, 2243, 11387, 1012, 2376, 29521, 1012, 10439, 1012, 5746, 17058, 1025, 12324, 4012, 1012, 3103, 1012, 6131, 2243, 11387, 1012, 2376, 29521, 1012, 10439, 1012, 2655, 1025, 12324, 4012, 1012, 3103, 1012, 6131, 2243, 11387, 1012, 2376, 29521, 1012, 10439, 1012, 3266, 9289, 4877, 29336, 2271, 9863, 24454, 1025, 12324, 4012, 1012, 3103, 1012, 6131, 2243, 11387, 1012, 2376, 29521, 1012, 10439, 1012, 2447, 1025, 12324, 4012, 1012, 3103, 1012, 6131, 2243, 11387, 1012, 2376, 29521, 1012, 10439, 1012, 2376, 24805, 4590, 1025, 12324, 4012, 1012, 3103, 1012, 22214, 2015, 1012, 10439, 1012, 10439, 8663, 18209, 1025, 12324, 4012, 1012, 3103, 1012, 22214, 2015, 1012, 10439, 1012, 3266, 16429, 20614, 1025, 12324, 4012, 1012, 3103, 1012, 29536, 11514, 1012, 2655, 19362, 4588, 11514, 4630, 1025, 12324, 4012, 1012, 3103, 1012, 29536, 11514, 1012, 7396, 1012, 19400, 1012, 4455, 29336, 2271, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 2691, 1012, 3526, 1012, 7696, 1012, 3526, 7834, 3736, 3351, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 8241, 1012, 20365, 8663, 18209, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 1012, 8241, 1012, 4012, 5244, 1012, 20365, 20464, 11638, 3593, 1025, 12324, 8917, 1012, 26219, 2229, 25509, 7361, 1012, 20365, 30523, 1007, 2432, 1011, 2268, 1010, 3103, 12702, 29390, 1010, 4297, 1012, 1010, 2035, 2916, 9235, 1008, 1008, 25707, 2015, 1999, 3120, 3642, 2433, 2442, 21376, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1007, 2432, 1011, 2268, 1010, 3103, 12702, 29390, 1010, 4297, 1012, 1010, 2035, 2916, 9235, 1008, 1008, 25707, 2015, 1999, 3120, 3642, 2433, 2442, 21376, 30526 ]
'------------------------------------------------------------------------------ ' <auto-generated> ' Этот код создан программой. ' Исполняемая версия:4.0.30319.42000 ' ' Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае ' повторной генерации кода. ' </auto-generated> '------------------------------------------------------------------------------ Option Strict On Option Explicit On <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0"), _ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) #Region "Функциональные возможности автосохранения My.Settings" #If _MyType = "WindowsForms" Then Private Shared addedHandler As Boolean Private Shared addedHandlerLockObject As New Object <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) If My.Application.SaveMySettingsOnExit Then My.Settings.Save() End If End Sub #End If #End Region Public Shared ReadOnly Property [Default]() As MySettings Get #If _MyType = "WindowsForms" Then If Not addedHandler Then SyncLock addedHandlerLockObject If Not addedHandler Then AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings addedHandler = True End If End SyncLock End If #End If Return defaultInstance End Get End Property End Class Namespace My <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _ Friend Module MySettingsProperty <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _ Friend ReadOnly Property Settings() As Global.IPromptTestVB.MySettings Get Return Global.IPromptTestVB.MySettings.Default End Get End Property End Module End Namespace
ramer/IPrompt
IPromptTestVB/My Project/Settings.Designer.vb
Visual Basic
mit
3,019
[ 30522, 1005, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1005, 1026, 8285, 1011, 7013, 1028, 1005, 1208, 22919, 14150, 22919, 1189, 14150, 29742, 1196, 14150, 29744, 29742, 28995, 1194, 16856, 14150, 29741, 16856, 10260, 29745, 29745, 14150, 10325, 1012, 1005, 1188, 29747, 29746, 14150, 29436, 18947, 17432, 15290, 29745, 10260, 17432, 1182, 15290, 16856, 29747, 23483, 1024, 1018, 1012, 1014, 1012, 19988, 16147, 1012, 17442, 8889, 1005, 1005, 1188, 29744, 29745, 15290, 18947, 15290, 18947, 23483, 1182, 1208, 22919, 14150, 29745, 1199, 10260, 10325, 29436, 15290, 1191, 14150, 29741, 29748, 22919, 1194, 16856, 10325, 25529, 15290, 29747, 22919, 10325, 1189, 1192, 15290, 29746, 16856, 10260, 25529, 10325, 29436, 23742, 18947, 14150, 10325, 1195, 10260, 29740, 14150, 22919, 15290, 1188, 1181, 29748, 29742, 29748, 22919, 1194, 14150, 22919, 15290, 16856, 17432, 18947, 29113, 1182, 1196, 29436, 29748, 29752, 10260, 15290, 1005, 1194, 19259, 22919, 14150, 16856, 18947, 14150, 10325, 1183, 15290, 18947, 15290, 16856, 10260, 29751, 15414, 1189, 14150, 29742, 10260, 1012, 1005, 1026, 1013, 8285, 1011, 7013, 1028, 1005, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 5724, 9384, 2006, 5724, 13216, 2006, 1026, 3795, 1012, 2291, 1012, 2448, 7292, 1012, 21624, 8043, 7903, 2229, 1012, 21624, 6914, 16848, 19321, 3089, 8569, 2618, 1006, 1007, 1010, 1035, 3795, 1012, 2291, 1012, 22402, 5358, 1012, 21624, 1012, 7013, 16044, 19321, 3089, 8569, 2618, 1006, 1000, 7513, 1012, 26749, 8525, 20617, 1012, 10195, 1012, 10906, 6155, 23773, 2121, 1012, 10906, 7741, 2571, 8873, 23115, 24454, 8844, 1000, 1010, 1000, 2403, 1012, 1014, 1012, 1014, 1012, 1014, 1000, 1007, 1010, 1035, 3795, 1012, 2291, 1012, 6922, 5302, 9247, 1012, 3559, 12618, 9333, 3085, 19321, 3089, 8569, 2618, 1006, 3795, 1012, 2291, 1012, 6922, 5302, 9247, 1012, 3559, 12618, 9333, 3085, 9153, 2618, 1012, 3935, 1007, 1028, 1035, 7704, 2767, 2025, 2378, 5886, 6590, 3468, 2465, 2026, 21678, 8613, 22490, 2015, 3795, 1012, 2291, 1012, 9563, 1012, 5097, 18319, 3070, 19022, 30524, 7076, 26897, 2004, 2026, 21678, 8613, 1027, 14931, 18863, 1006, 3795, 1012, 2291, 1012, 9563, 1012, 5097, 18319, 3070, 19022, 11022, 1012, 25549, 1006, 2047, 2026, 21678, 8613, 1006, 1007, 1007, 1010, 2026, 21678, 8613, 1007, 1001, 30523, 11022, 2797, 4207, 12398, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11022, 2797, 4207, 12398, 30526 ]
<?php namespace RemexHtml\Serializer; use RemexHtml\PropGuard; use RemexHtml\Tokenizer\Attributes; class SerializerNode { use PropGuard; /** @var int The integer index into Serializer::$nodes of this node */ public $id; /** @var int The integer index into Serializer::$nodes of the parent node */ public $parentId; /** @var string The element namespace */ public $namespace; /** @var string The element name */ public $name; /** @var Attributes */ public $attrs; /** * @var bool The void flag as in TreeHandler::insertElement * @see \RemexHtml\TreeBuilder\TreeHandler::insertElement */ public $void; /** @var SerializerNode[] */ public $children = []; /** * Arbitrary user data can be placed here. */ public $snData; /** * @param int $id The integer index into Serializer::$nodes of this node * @param int $parentId The integer index into Serializer::$nodes of the parent node * @param string $namespace The XML namespace * @param string $name The element name * @param Attributes $attrs The element attributes * @param bool $void The void flag as in TreeHandler::insertElement */ public function __construct( $id, $parentId, $namespace, $name, $attrs, $void ) { $this->id = $id; $this->parentId = $parentId; $this->namespace = $namespace; $this->name = $name; $this->attrs = $attrs; $this->void = $void; } /** * Get a string identifying the node, for use in debugging. * @return string */ public function getDebugTag() { return $this->name . '#' . $this->id; } }
pierres/archlinux-mediawiki
vendor/wikimedia/remex-html/RemexHtml/Serializer/SerializerNode.php
PHP
gpl-2.0
1,544
[ 30522, 1026, 1029, 25718, 3415, 15327, 2128, 4168, 2595, 11039, 19968, 1032, 7642, 17629, 1025, 2224, 2128, 4168, 2595, 11039, 19968, 1032, 17678, 18405, 1025, 2224, 2128, 4168, 2595, 11039, 19968, 1032, 19204, 17629, 1032, 12332, 1025, 2465, 7642, 17629, 3630, 3207, 1063, 2224, 17678, 18405, 1025, 1013, 1008, 1008, 1030, 13075, 20014, 1996, 16109, 5950, 2046, 7642, 17629, 1024, 1024, 1002, 14164, 1997, 2023, 13045, 1008, 1013, 2270, 1002, 8909, 1025, 1013, 1008, 1008, 1030, 13075, 20014, 1996, 16109, 5950, 2046, 7642, 17629, 1024, 1024, 1002, 14164, 1997, 1996, 6687, 13045, 1008, 1013, 2270, 1002, 6687, 3593, 1025, 1013, 1008, 1008, 1030, 13075, 5164, 1996, 5783, 3415, 15327, 1008, 1013, 2270, 1002, 3415, 15327, 1025, 1013, 1008, 1008, 1030, 13075, 5164, 1996, 5783, 2171, 1008, 1013, 2270, 1002, 2171, 1025, 1013, 1008, 1008, 1030, 13075, 12332, 1008, 1013, 2270, 1002, 2012, 30524, 11774, 3917, 1024, 1024, 19274, 12260, 3672, 1008, 1013, 2270, 1002, 11675, 1025, 1013, 1008, 1008, 1030, 13075, 7642, 17629, 3630, 3207, 1031, 1033, 1008, 1013, 2270, 1002, 2336, 1027, 1031, 1033, 1025, 1013, 1008, 1008, 1008, 15275, 5310, 2951, 2064, 2022, 2872, 2182, 1012, 1008, 1013, 2270, 1002, 1055, 8943, 2696, 1025, 1013, 1008, 1008, 1008, 1030, 11498, 2213, 20014, 1002, 8909, 1996, 16109, 5950, 2046, 7642, 17629, 1024, 1024, 1002, 14164, 1997, 2023, 13045, 1008, 1030, 11498, 2213, 20014, 1002, 6687, 3593, 1996, 16109, 5950, 2046, 7642, 17629, 1024, 1024, 1002, 14164, 1997, 1996, 6687, 13045, 1008, 1030, 11498, 2213, 5164, 1002, 3415, 15327, 1996, 20950, 3415, 15327, 1008, 1030, 11498, 2213, 5164, 1002, 2171, 1996, 5783, 2171, 1008, 1030, 11498, 2213, 12332, 1002, 2012, 16344, 2015, 1996, 5783, 12332, 1008, 1030, 11498, 2213, 22017, 2140, 1002, 11675, 1996, 11675, 5210, 2004, 1999, 3392, 11774, 3917, 1024, 1024, 19274, 12260, 3672, 1008, 1013, 2270, 3853, 1035, 1035, 9570, 1006, 1002, 8909, 1010, 1002, 6687, 3593, 1010, 1002, 3415, 15327, 1010, 1002, 2171, 1010, 1002, 2012, 16344, 2015, 1010, 1002, 11675, 1007, 1063, 1002, 2023, 1011, 1028, 8909, 1027, 1002, 8909, 1025, 1002, 2023, 1011, 1028, 6687, 3593, 1027, 1002, 6687, 3593, 1025, 1002, 2023, 1011, 1028, 3415, 15327, 1027, 1002, 3415, 15327, 1025, 1002, 2023, 1011, 1028, 2171, 1027, 1002, 2171, 1025, 1002, 2023, 1011, 1028, 2012, 16344, 2015, 1027, 1002, 2012, 16344, 2015, 1025, 1002, 2023, 1011, 1028, 11675, 1027, 1002, 11675, 1025, 1065, 1013, 1008, 1008, 1008, 2131, 1037, 5164, 12151, 1996, 13045, 1010, 2005, 2224, 1999, 2139, 8569, 12588, 1012, 1008, 1030, 2709, 5164, 1008, 1013, 2270, 3853, 2131, 3207, 8569, 13512, 8490, 1006, 1007, 1063, 2709, 1002, 2023, 1011, 1028, 2171, 1012, 1005, 1001, 1005, 1012, 1002, 2023, 1011, 1028, 8909, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 16344, 2015, 1025, 1013, 1008, 1008, 1008, 1030, 13075, 22017, 2140, 1996, 11675, 5210, 2004, 1999, 3392, 11774, 3917, 1024, 1024, 19274, 12260, 3672, 1008, 1030, 2156, 1032, 2128, 4168, 2595, 11039, 19968, 1032, 3392, 8569, 23891, 2099, 1032, 3392, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 16344, 2015, 1025, 1013, 1008, 1008, 1008, 1030, 13075, 22017, 2140, 1996, 11675, 5210, 2004, 1999, 3392, 11774, 3917, 1024, 1024, 19274, 12260, 3672, 1008, 1030, 2156, 1032, 2128, 4168, 2595, 11039, 19968, 1032, 3392, 8569, 23891, 2099, 1032, 3392, 30526 ]
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__CWE839_fscanf_83_bad.cpp Label Definition File: CWE127_Buffer_Underread__CWE839.label.xml Template File: sources-sinks-83_bad.tmpl.cpp */ /* * @description * CWE: 127 Buffer Underread * BadSource: fscanf Read data from the console using fscanf() * GoodSource: Non-negative but less than 10 * Sinks: * GoodSink: Ensure the array index is valid * BadSink : Improperly check the array index by not checking to see if the value is negative * Flow Variant: 83 Data flow: data passed to class constructor and destructor by declaring the class object on the stack * * */ #ifndef OMITBAD #include "std_testcase.h" #include "CWE127_Buffer_Underread__CWE839_fscanf_83.h" namespace CWE127_Buffer_Underread__CWE839_fscanf_83 { CWE127_Buffer_Underread__CWE839_fscanf_83_bad::CWE127_Buffer_Underread__CWE839_fscanf_83_bad(int dataCopy) { data = dataCopy; /* POTENTIAL FLAW: Read data from the console using fscanf() */ fscanf(stdin, "%d", &data); } CWE127_Buffer_Underread__CWE839_fscanf_83_bad::~CWE127_Buffer_Underread__CWE839_fscanf_83_bad() { { int buffer[10] = { 0 }; /* POTENTIAL FLAW: Attempt to access a negative index of the array * This check does not check to see if the array index is negative */ if (data < 10) { printIntLine(buffer[data]); } else { printLine("ERROR: Array index is too big."); } } } } #endif /* OMITBAD */
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE127_Buffer_Underread/s01/CWE127_Buffer_Underread__CWE839_fscanf_83_bad.cpp
C++
bsd-3-clause
1,578
[ 30522, 1013, 1008, 23561, 7013, 3231, 18382, 5371, 5371, 18442, 1024, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1035, 2919, 1012, 18133, 2361, 3830, 6210, 5371, 1024, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1012, 3830, 1012, 20950, 23561, 5371, 30524, 2546, 1006, 1007, 1008, 5350, 8162, 3401, 1024, 2512, 1011, 4997, 2021, 2625, 2084, 2184, 1008, 23462, 1024, 1008, 5350, 19839, 1024, 5676, 1996, 9140, 5950, 2003, 9398, 1008, 2919, 11493, 2243, 1024, 24156, 2135, 4638, 1996, 9140, 5950, 2011, 2025, 9361, 2000, 2156, 2065, 1996, 3643, 2003, 4997, 1008, 4834, 8349, 1024, 6640, 2951, 4834, 1024, 2951, 2979, 2000, 2465, 9570, 2953, 1998, 4078, 18300, 2953, 2011, 13752, 1996, 2465, 4874, 2006, 1996, 9991, 1008, 1008, 1008, 1013, 1001, 2065, 13629, 2546, 18168, 4183, 9024, 1001, 2421, 1000, 2358, 2094, 1035, 3231, 18382, 1012, 1044, 1000, 1001, 2421, 1000, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1012, 1044, 1000, 3415, 15327, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1063, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1035, 2919, 1024, 1024, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1035, 2919, 1006, 20014, 2951, 3597, 7685, 1007, 1063, 2951, 1027, 2951, 3597, 7685, 1025, 1013, 1008, 4022, 28450, 1024, 3191, 2951, 2013, 1996, 10122, 2478, 1042, 29378, 2546, 1006, 1007, 1008, 1013, 1042, 29378, 2546, 1006, 2358, 8718, 1010, 1000, 1003, 1040, 1000, 1010, 1004, 2951, 1007, 1025, 1065, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1035, 2919, 1024, 1024, 1066, 19296, 2063, 12521, 2581, 1035, 17698, 1035, 2104, 16416, 2094, 1035, 1035, 19296, 2063, 2620, 23499, 1035, 1042, 29378, 2546, 1035, 6640, 1035, 2919, 1006, 1007, 1063, 1063, 20014, 17698, 1031, 2184, 1033, 1027, 1063, 1014, 1065, 1025, 1013, 1008, 4022, 28450, 1024, 3535, 2000, 3229, 1037, 4997, 5950, 1997, 1996, 9140, 1008, 2023, 4638, 2515, 2025, 4638, 2000, 2156, 2065, 1996, 9140, 5950, 2003, 4997, 1008, 1013, 2065, 1006, 2951, 1026, 2184, 1007, 1063, 6140, 18447, 4179, 1006, 17698, 1031, 2951, 1033, 1007, 1025, 1065, 2842, 1063, 6140, 4179, 1006, 1000, 7561, 1024, 9140, 5950, 2003, 2205, 2502, 1012, 1000, 1007, 1025, 1065, 1065, 1065, 1065, 1001, 2203, 10128, 1013, 1008, 30523, 1024, 4216, 1011, 23462, 1011, 6640, 1035, 2919, 1012, 1056, 8737, 2140, 1012, 18133, 2361, 1008, 1013, 1013, 1008, 1008, 1030, 6412, 1008, 19296, 2063, 1024, 13029, 17698, 2104, 16416, 2094, 1008, 2919, 6499, 3126, 3401, 1024, 1042, 29378, 2546, 3191, 2951, 2013, 1996, 10122, 2478, 1042, 29378, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1024, 4216, 1011, 23462, 1011, 6640, 1035, 2919, 1012, 1056, 8737, 2140, 1012, 18133, 2361, 1008, 1013, 1013, 1008, 1008, 1030, 6412, 1008, 19296, 2063, 1024, 13029, 17698, 2104, 16416, 2094, 1008, 2919, 6499, 3126, 3401, 1024, 1042, 29378, 2546, 3191, 2951, 2013, 1996, 10122, 2478, 1042, 29378, 30526 ]
using System; using System.Collections.Generic; using System.Linq; using ReMi.BusinessEntities.Auth; using ReMi.Common.WebApi.Notifications; namespace ReMi.Api.Insfrastructure.Notifications.Filters { public class NotificationFilterByNotRequestorApplication : INotificationFilterByNotRequestorApplication { public bool Apply(INotificationFilterByNotRequestor filter, Account account, List<Subscription> subscriptions) { var result = null != subscriptions.SelectMany(o => o.Filters) .FirstOrDefault(o => account.ExternalId != filter.RequestorId); return result; } } }
wongatech/remi
ReMi.Api/ServiceBoundary/ReMi.Api/Insfrastructure/Notifications/Filters/NotificationFilterByNotRequestorApplication.cs
C#
mit
644
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 30524, 4328, 1012, 17928, 1012, 16021, 27843, 3367, 6820, 14890, 1012, 26828, 2015, 1012, 17736, 1063, 2270, 2465, 26828, 8873, 21928, 3762, 17048, 2890, 15500, 6525, 9397, 19341, 3508, 1024, 1999, 4140, 9031, 8873, 21928, 3762, 17048, 2890, 15500, 6525, 9397, 19341, 3508, 1063, 2270, 22017, 2140, 6611, 1006, 1999, 4140, 9031, 8873, 21928, 3762, 17048, 2890, 15500, 2953, 11307, 1010, 4070, 4070, 1010, 2862, 1026, 15002, 1028, 15002, 2015, 1007, 1063, 13075, 2765, 1027, 19701, 999, 1027, 15002, 2015, 1012, 7276, 2386, 2100, 1006, 1051, 1027, 1028, 1051, 1012, 17736, 1007, 1012, 2034, 8551, 12879, 23505, 1006, 1051, 1027, 1028, 4070, 1012, 6327, 3593, 999, 1027, 11307, 1012, 5227, 10050, 2094, 1007, 1025, 2709, 2765, 1025, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 12391, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2128, 4328, 1012, 2449, 4765, 6447, 1012, 8740, 2705, 1025, 2478, 2128, 4328, 1012, 2691, 1012, 4773, 9331, 2072, 1012, 26828, 2015, 1025, 3415, 15327, 2128, 30526 ]
<?php /** * Validate form * * @param array $form definition * @param array $data filtered * @return boolean | array ('fildname'=>'error message') */ function validateForm($form, $datafiltered) { $validatedata = null; foreach ($form as $key => $form_field) { // if ($form[$key]['validation'] != null) { // hay que validar if (array_key_exists( 'validation', $form[$key] )) { // hay que validar $validation = $form_field['validation']; $valor = $datafiltered[$key]; foreach ($validation as $val_type => $val_data) { switch ($val_type) { case 'required': if ($valor == null) { if (array_key_exists('error_message', $validation)) { $validatedata[$key] = $validation['error_message']; } else { $validatedata[$key] = $key." no puede ser nulo"; } } break; case 'minsize': // echo '<pre>'; // print_r(strlen($valor)); // echo '</pre>'; if ($valor != null && (strlen($valor) < $validation['minsize'])) { if (array_key_exists('error_message', $validation)) { $validatedata[$key] = $validation['error_message']; } else { $validatedata[$key] = $key." debe de tener más de ".$validation['minsize']; } } break; case 'maxsize': if ($valor != null && (strlen($valor) > $validation['maxsize'])) { if (array_key_exists('error_message', $validation)) { $validatedata[$key] = $validation['error_message']; } else { $validatedata[$key] = $key." debe de tener más de ".$validation['maxsize']; } } break; } } } } if ($validatedata == null) { $validatedata = true; } return $validatedata; }
bermartinv/php2015
modules/core/src/core/validateForm.php
PHP
gpl-2.0
2,403
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 9398, 3686, 2433, 1008, 1008, 1030, 11498, 2213, 9140, 1002, 2433, 6210, 1008, 1030, 11498, 2213, 9140, 1002, 2951, 21839, 1008, 1030, 2709, 22017, 20898, 1064, 9140, 1006, 1005, 10882, 6392, 18442, 1005, 1027, 1028, 1005, 7561, 4471, 1005, 1007, 1008, 1013, 3853, 9398, 3686, 14192, 1006, 1002, 2433, 1010, 1002, 2951, 8873, 21928, 2098, 1007, 1063, 1002, 9398, 4383, 6790, 1027, 19701, 1025, 18921, 6776, 1006, 1002, 2433, 2004, 1002, 3145, 1027, 1028, 1002, 2433, 1035, 2492, 1007, 1063, 1013, 1013, 2065, 1006, 1002, 2433, 1031, 1002, 3145, 1033, 1031, 1005, 27354, 1005, 1033, 999, 1027, 19701, 1007, 1063, 1013, 1013, 10974, 10861, 9398, 2906, 2065, 1006, 9140, 1035, 3145, 1035, 6526, 1006, 1005, 27354, 1005, 1010, 1002, 2433, 1031, 1002, 3145, 1033, 1007, 1007, 1063, 1013, 1013, 10974, 10861, 9398, 2906, 1002, 27354, 1027, 1002, 2433, 1035, 2492, 1031, 1005, 27354, 1005, 1033, 1025, 1002, 27314, 1027, 1002, 2951, 8873, 21928, 2098, 1031, 1002, 3145, 1033, 1025, 18921, 6776, 1006, 1002, 27354, 2004, 1002, 11748, 1035, 2828, 1027, 1028, 1002, 11748, 1035, 2951, 1007, 1063, 6942, 1006, 1002, 11748, 1035, 2828, 1007, 1063, 2553, 1005, 3223, 1005, 1024, 2065, 1006, 1002, 27314, 1027, 1027, 19701, 1007, 1063, 2065, 1006, 9140, 1035, 3145, 1035, 6526, 1006, 1005, 7561, 1035, 4471, 1005, 1010, 1002, 27354, 1007, 1007, 1063, 1002, 9398, 4383, 6790, 1031, 1002, 3145, 1033, 1027, 1002, 27354, 1031, 1005, 7561, 1035, 4471, 1005, 1033, 1025, 1065, 2842, 1063, 1002, 9398, 4383, 6790, 1031, 1002, 3145, 1033, 1027, 1002, 3145, 1012, 1000, 2053, 16405, 14728, 14262, 16371, 4135, 1000, 1025, 1065, 1065, 3338, 1025, 2553, 1005, 8117, 5332, 4371, 1005, 1024, 1013, 1013, 9052, 1005, 1026, 3653, 1028, 1005, 1025, 1013, 1013, 6140, 1035, 1054, 1006, 2358, 20927, 2078, 1006, 1002, 27314, 1007, 1007, 1025, 1013, 1013, 9052, 1005, 1026, 1013, 3653, 1028, 1005, 1025, 2065, 1006, 1002, 27314, 999, 1027, 19701, 1004, 1004, 1006, 2358, 20927, 2078, 1006, 1002, 27314, 1007, 1026, 1002, 27354, 1031, 1005, 8117, 5332, 4371, 1005, 1033, 1007, 1007, 1063, 2065, 1006, 9140, 1035, 3145, 1035, 6526, 1006, 1005, 7561, 1035, 4471, 1005, 1010, 1002, 27354, 1007, 1007, 1063, 1002, 9398, 4383, 6790, 1031, 1002, 3145, 1033, 1027, 1002, 27354, 1031, 1005, 7561, 1035, 4471, 1005, 1033, 1025, 1065, 2842, 1063, 1002, 9398, 4383, 6790, 1031, 1002, 3145, 1033, 1027, 1002, 3145, 1012, 1000, 2139, 4783, 2139, 2702, 2121, 16137, 2139, 1000, 1012, 1002, 27354, 1031, 1005, 8117, 5332, 4371, 1005, 1033, 1025, 1065, 1065, 3338, 1025, 2553, 1005, 4098, 5332, 4371, 1005, 1024, 2065, 1006, 1002, 27314, 999, 1027, 19701, 1004, 1004, 1006, 2358, 20927, 2078, 1006, 1002, 27314, 1007, 1028, 1002, 27354, 1031, 1005, 4098, 30524, 1033, 1025, 1065, 2842, 1063, 30523, 5332, 4371, 1005, 1033, 1007, 1007, 1063, 2065, 1006, 9140, 1035, 3145, 1035, 6526, 1006, 1005, 7561, 1035, 4471, 1005, 1010, 1002, 27354, 1007, 1007, 1063, 1002, 9398, 4383, 6790, 1031, 1002, 3145, 1033, 1027, 1002, 27354, 1031, 1005, 7561, 1035, 4471, 1005, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5332, 4371, 1005, 1033, 1007, 1007, 1063, 2065, 1006, 9140, 1035, 3145, 1035, 6526, 1006, 1005, 7561, 1035, 4471, 1005, 1010, 1002, 27354, 1007, 1007, 1063, 1002, 9398, 4383, 6790, 1031, 1002, 3145, 1033, 1027, 1002, 27354, 1031, 1005, 7561, 1035, 4471, 1005, 30526 ]
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2002 Thomas Moestl <tmm@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. * * $FreeBSD$ */ #ifndef _SYS_ENDIAN_H_ #define _SYS_ENDIAN_H_ #include <stdint.h> #include "sys/cdefs.h" #include "sys/_types.h" #include "endian.h" #if 0 #ifndef _UINT8_T_DECLARED typedef __uint8_t uint8_t; #define _UINT8_T_DECLARED #endif #ifndef _UINT16_T_DECLARED typedef __uint16_t uint16_t; #define _UINT16_T_DECLARED #endif #ifndef _UINT32_T_DECLARED typedef __uint32_t uint32_t; #define _UINT32_T_DECLARED #endif #ifndef _UINT64_T_DECLARED typedef __uint64_t uint64_t; #define _UINT64_T_DECLARED #endif #endif /* * General byte order swapping functions. */ #define bswap16(x) __bswap16(x) #define bswap32(x) __bswap32(x) #define bswap64(x) __bswap64(x) /* * Host to big endian, host to little endian, big endian to host, and little * endian to host byte order functions as detailed in byteorder(9). */ #if _BYTE_ORDER == _LITTLE_ENDIAN #define htobe16(x) bswap16((x)) #define htobe32(x) bswap32((x)) #define htobe64(x) bswap64((x)) #define htole16(x) ((uint16_t)(x)) #define htole32(x) ((uint32_t)(x)) #define htole64(x) ((uint64_t)(x)) #define be16toh(x) bswap16((x)) #define be32toh(x) bswap32((x)) #define be64toh(x) bswap64((x)) #define le16toh(x) ((uint16_t)(x)) #define le32toh(x) ((uint32_t)(x)) #define le64toh(x) ((uint64_t)(x)) #else /* _BYTE_ORDER != _LITTLE_ENDIAN */ #define htobe16(x) ((uint16_t)(x)) #define htobe32(x) ((uint32_t)(x)) #define htobe64(x) ((uint64_t)(x)) #define htole16(x) bswap16((x)) #define htole32(x) bswap32((x)) #define htole64(x) bswap64((x)) #define be16toh(x) ((uint16_t)(x)) #define be32toh(x) ((uint32_t)(x)) #define be64toh(x) ((uint64_t)(x)) #define le16toh(x) bswap16((x)) #define le32toh(x) bswap32((x)) #define le64toh(x) bswap64((x)) #endif /* _BYTE_ORDER == _LITTLE_ENDIAN */ /* Alignment-agnostic encode/decode bytestream to/from little/big endian. */ static __inline uint16_t be16dec(const void *pp) { uint8_t const *p = (uint8_t const *)pp; return ((p[0] << 8) | p[1]); } static __inline uint32_t be32dec(const void *pp) { uint8_t const *p = (uint8_t const *)pp; return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]); } static __inline uint64_t be64dec(const void *pp) { uint8_t const *p = (uint8_t const *)pp; return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4)); } static __inline uint16_t le16dec(const void *pp) { uint8_t const *p = (uint8_t const *)pp; return ((p[1] << 8) | p[0]); } static __inline uint32_t le32dec(const void *pp) { uint8_t const *p = (uint8_t const *)pp; return (((unsigned)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]); } static __inline uint64_t le64dec(const void *pp) { uint8_t const *p = (uint8_t const *)pp; return (((uint64_t)le32dec(p + 4) << 32) | le32dec(p)); } static __inline void be16enc(void *pp, uint16_t u) { uint8_t *p = (uint8_t *)pp; p[0] = (u >> 8) & 0xff; p[1] = u & 0xff; } static __inline void be32enc(void *pp, uint32_t u) { uint8_t *p = (uint8_t *)pp; p[0] = (u >> 24) & 0xff; p[1] = (u >> 16) & 0xff; p[2] = (u >> 8) & 0xff; p[3] = u & 0xff; } static __inline void be64enc(void *pp, uint64_t u) { uint8_t *p = (uint8_t *)pp; be32enc(p, (uint32_t)(u >> 32)); be32enc(p + 4, (uint32_t)(u & 0xffffffffU)); } static __inline void le16enc(void *pp, uint16_t u) { uint8_t *p = (uint8_t *)pp; p[0] = u & 0xff; p[1] = (u >> 8) & 0xff; } static __inline void le32enc(void *pp, uint32_t u) { uint8_t *p = (uint8_t *)pp; p[0] = u & 0xff; p[1] = (u >> 8) & 0xff; p[2] = (u >> 16) & 0xff; p[3] = (u >> 24) & 0xff; } static __inline void le64enc(void *pp, uint64_t u) { uint8_t *p = (uint8_t *)pp; le32enc(p, (uint32_t)(u & 0xffffffffU)); le32enc(p + 4, (uint32_t)(u >> 32)); } #endif /* _SYS_ENDIAN_H_ */
robinrowe/libunistd
regex/sys/endian.h
C
mit
5,123
[ 30522, 1013, 1008, 1011, 1008, 23772, 2595, 1011, 6105, 1011, 8909, 4765, 18095, 1024, 18667, 2094, 1011, 1016, 1011, 11075, 1011, 2489, 5910, 2094, 1008, 1008, 9385, 1006, 1039, 1007, 2526, 2726, 22078, 3367, 2140, 1026, 1056, 7382, 1030, 2489, 5910, 2094, 1012, 8917, 1028, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 1010, 2007, 2030, 2302, 1008, 14080, 1010, 2024, 7936, 3024, 2008, 1996, 2206, 3785, 1008, 2024, 2777, 1024, 1008, 1015, 1012, 25707, 2015, 1997, 3120, 3642, 2442, 9279, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1012, 1008, 1016, 1012, 25707, 2015, 1999, 12441, 2433, 2442, 21376, 1996, 2682, 9385, 1008, 5060, 1010, 2023, 2862, 1997, 3785, 1998, 1996, 2206, 5860, 19771, 5017, 1999, 1996, 1008, 12653, 1998, 1013, 2030, 2060, 4475, 3024, 2007, 1996, 4353, 1012, 1008, 1008, 2023, 4007, 2003, 3024, 2011, 1996, 3166, 1998, 16884, 1036, 1036, 2004, 2003, 1005, 1005, 1998, 1008, 2151, 4671, 2030, 13339, 10943, 3111, 1010, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 1996, 1008, 13339, 10943, 3111, 1997, 6432, 8010, 1998, 10516, 2005, 1037, 3327, 3800, 1008, 2024, 5860, 19771, 7583, 1012, 1999, 2053, 2724, 4618, 1996, 3166, 2030, 16884, 2022, 20090, 1008, 2005, 2151, 3622, 1010, 14958, 1010, 5043, 2389, 1010, 2569, 1010, 27792, 1010, 2030, 9530, 3366, 15417, 4818, 1008, 12394, 1006, 2164, 1010, 2021, 2025, 3132, 2000, 1010, 21423, 1997, 7681, 5350, 1008, 2030, 2578, 1025, 3279, 1997, 2224, 1010, 2951, 1010, 2030, 11372, 1025, 2030, 2449, 24191, 1007, 1008, 2174, 3303, 1998, 2006, 2151, 3399, 1997, 14000, 1010, 3251, 1999, 3206, 1010, 9384, 1008, 14000, 1010, 2030, 17153, 2102, 1006, 2164, 27988, 2030, 4728, 1007, 17707, 1999, 2151, 2126, 1008, 2041, 1997, 1996, 2224, 1997, 2023, 4007, 1010, 2130, 2065, 9449, 1997, 1996, 6061, 1997, 1008, 2107, 4053, 1012, 1008, 1008, 1002, 2489, 5910, 30524, 1000, 25353, 2015, 1013, 3729, 12879, 2015, 1012, 1044, 1000, 1001, 2421, 1000, 25353, 2015, 1013, 1035, 4127, 1012, 1044, 1000, 1001, 2421, 1000, 2203, 2937, 1012, 1044, 1000, 1001, 2065, 1014, 1001, 2065, 13629, 2546, 1035, 21318, 3372, 2620, 1035, 1056, 1035, 4161, 21189, 12879, 1035, 1035, 21318, 3372, 2620, 1035, 1056, 21318, 3372, 2620, 1035, 1056, 1025, 1001, 9375, 1035, 21318, 3372, 2620, 1035, 1056, 1035, 4161, 1001, 2203, 10128, 1001, 2065, 13629, 2546, 1035, 21318, 3372, 16048, 1035, 1056, 1035, 4161, 21189, 12879, 1035, 1035, 21318, 3372, 16048, 1035, 1056, 21318, 3372, 16048, 1035, 1056, 1025, 1001, 9375, 1035, 21318, 3372, 16048, 1035, 1056, 1035, 4161, 1001, 2203, 10128, 1001, 2065, 13629, 2546, 1035, 21318, 3372, 16703, 1035, 1056, 1035, 4161, 21189, 12879, 1035, 1035, 21318, 3372, 16703, 1035, 1056, 21318, 3372, 16703, 1035, 1056, 1025, 1001, 9375, 1035, 21318, 3372, 16703, 1035, 30523, 2094, 1002, 1008, 1013, 1001, 2065, 13629, 2546, 1035, 25353, 2015, 1035, 2203, 2937, 1035, 1044, 1035, 1001, 9375, 1035, 25353, 2015, 1035, 2203, 2937, 1035, 1044, 1035, 1001, 2421, 1026, 2358, 8718, 2102, 1012, 1044, 1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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2094, 1002, 1008, 1013, 1001, 2065, 13629, 2546, 1035, 25353, 2015, 1035, 2203, 2937, 1035, 1044, 1035, 1001, 9375, 1035, 25353, 2015, 1035, 2203, 2937, 1035, 1044, 1035, 1001, 2421, 1026, 2358, 8718, 2102, 1012, 1044, 1028, 1001, 2421, 30526 ]
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Minigan(Package): """miniGAN is a generative adversarial network code developed as part of the Exascale Computing Project's (ECP) ExaLearn project at Sandia National Laboratories.""" homepage = "https://github.com/SandiaMLMiniApps/miniGAN" url = "https://github.com/SandiaMLMiniApps/miniGAN/archive/1.0.0.tar.gz" version('1.0.0', sha256='ef6d5def9c7040af520acc64b7a8b6c8ec4b7901721b11b0cb25a583ea0c8ae3') depends_on('python', type=('build', 'run')) depends_on('py-setuptools', type='build') depends_on('py-torch', type=('build', 'run')) depends_on('py-numpy', type=('build', 'run')) depends_on('py-horovod@master', type=('build', 'run')) depends_on('py-torchvision', type=('build', 'run')) depends_on('py-matplotlib@3.0.0', type=('build', 'run')) def install(self, spec, prefix): install_tree('.', prefix)
LLNL/spack
var/spack/repos/builtin/packages/minigan/package.py
Python
lgpl-2.1
1,105
[ 30522, 1001, 9385, 2286, 1011, 25682, 5623, 11290, 5974, 2120, 3036, 1010, 11775, 1998, 2060, 1001, 12403, 3600, 2622, 9797, 1012, 2156, 1996, 2327, 1011, 2504, 9385, 5371, 2005, 4751, 1012, 1001, 1001, 23772, 2595, 1011, 6105, 1011, 8909, 4765, 18095, 1024, 1006, 15895, 1011, 1016, 1012, 1014, 2030, 10210, 1007, 2013, 12403, 3600, 12324, 1008, 2465, 7163, 5289, 1006, 7427, 1007, 1024, 1000, 1000, 1000, 7163, 5289, 2003, 1037, 11416, 6024, 4748, 14028, 10980, 2140, 2897, 3642, 2764, 2004, 2112, 1997, 1996, 4654, 3022, 9289, 2063, 9798, 2622, 1005, 1055, 1006, 14925, 2361, 1007, 4654, 9453, 2906, 2078, 2622, 2012, 5472, 2401, 2120, 12030, 1012, 1000, 1000, 1000, 2188, 13704, 1027, 1000, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 5472, 25107, 13728, 23309, 28281, 1013, 7163, 5289, 1000, 24471, 2140, 1027, 1000, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 5472, 25107, 13728, 23309, 28281, 1013, 7163, 5289, 1013, 8756, 1013, 1015, 1012, 1014, 1012, 1014, 1012, 16985, 1012, 1043, 2480, 1000, 2544, 1006, 1005, 1015, 1012, 1014, 1012, 1014, 1005, 1010, 21146, 17788, 2575, 1027, 1005, 1041, 2546, 2575, 2094, 2629, 3207, 2546, 2683, 2278, 19841, 12740, 10354, 25746, 2692, 6305, 2278, 21084, 2497, 2581, 2050, 2620, 2497, 2575, 2278, 2620, 8586, 2549, 2497, 2581, 21057, 16576, 17465, 2497, 14526, 2497, 2692, 27421, 17788, 2050, 27814, 2509, 5243, 2692, 2278, 2620, 6679, 2509, 1005, 1007, 9041, 1035, 2006, 1006, 1005, 18750, 1005, 1010, 2828, 1027, 1006, 1005, 3857, 1005, 1010, 1005, 2448, 1005, 1007, 1007, 9041, 1035, 2006, 1006, 1005, 1052, 2100, 1011, 16437, 3406, 27896, 1005, 1010, 2828, 1027, 1005, 3857, 1005, 1007, 9041, 1035, 2006, 1006, 1005, 1052, 2100, 1011, 12723, 1005, 1010, 2828, 1027, 1006, 1005, 3857, 1005, 1010, 1005, 2448, 1005, 1007, 1007, 9041, 1035, 2006, 1006, 1005, 1052, 2100, 1011, 16371, 8737, 2100, 1005, 1010, 2828, 1027, 1006, 1005, 3857, 1005, 1010, 1005, 2448, 1005, 1007, 1007, 9041, 1035, 2006, 1006, 1005, 1052, 2100, 1011, 7570, 12298, 7716, 1030, 3040, 1005, 1010, 2828, 1027, 1006, 1005, 3857, 1005, 1010, 1005, 2448, 1005, 1007, 1007, 9041, 1035, 2006, 1006, 1005, 1052, 2100, 1011, 12723, 17084, 1005, 1010, 2828, 1027, 1006, 1005, 3857, 1005, 1010, 1005, 2448, 1005, 1007, 1007, 9041, 1035, 2006, 1006, 1005, 1052, 2100, 1011, 13523, 24759, 4140, 29521, 1030, 1017, 1012, 1014, 1012, 1014, 1005, 1010, 2828, 1027, 1006, 1005, 3857, 1005, 1010, 1005, 2448, 1005, 1007, 1007, 13366, 16500, 1006, 2969, 1010, 28699, 1010, 17576, 1007, 1024, 16500, 1035, 3392, 1006, 1005, 1012, 1005, 1010, 17576, 1007, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30523, 0, 0, 0, 0, 0, 0, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
# frozen_string_literal: true require 'image_optim/pack'
Ladvien/ladvien.github.io
vendor/cache/ruby/3.0.0/gems/image_optim_pack-0.7.0.20210511-x86_64-darwin/lib/image_optim_pack.rb
Ruby
mit
58
[ 30522, 1001, 7708, 1035, 5164, 1035, 18204, 1024, 2995, 5478, 1005, 3746, 1035, 23569, 5714, 1013, 5308, 1005, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
(function ($) { $.Redactor.opts.langs['el'] = { html: 'HTML', video: 'Εισαγωγή βίντεο...', image: 'Εισαγωγή εικόνας...', table: 'Πίνακας', link: 'Σύνδεσμος', link_insert: 'Εισαγωγή συνδέσμου...', link_edit: 'Edit link', unlink: 'Ακύρωση συνδέσμου', formatting: 'Μορφοποίηση', paragraph: 'Παράγραφος', quote: 'Παράθεση', code: 'Κώδικας', header1: 'Κεφαλίδα 1', header2: 'Κεφαλίδα 2', header3: 'Κεφαλίδα 3', header4: 'Κεφαλίδα 4', bold: 'Έντονα', italic: 'Πλάγια', fontcolor: 'Χρώμα γραμματοσειράς', backcolor: 'Χρώμα επισήμανσης κειμένου', unorderedlist: 'Κουκκίδες', orderedlist: 'Αρίθμηση', outdent: 'Μείωση εσοχής', indent: 'Αύξηση εσοχής', cancel: 'Ακύρωση', insert: 'Εισαγωγή', save: 'Αποθήκευση', _delete: 'Διαγραφή', insert_table: 'Εισαγωγή πίνακα...', insert_row_above: 'Προσθήκη σειράς επάνω', insert_row_below: 'Προσθήκη σειράς κάτω', insert_column_left: 'Προσθήκη στήλης αριστερά', insert_column_right: 'Προσθήκη στήλης δεξιά', delete_column: 'Διαγραφή στήλης', delete_row: 'Διαγραφή σειράς', delete_table: 'Διαγραφή πίνακα', rows: 'Γραμμές', columns: 'Στήλες', add_head: 'Προσθήκη κεφαλίδας', delete_head: 'Διαγραφή κεφαλίδας', title: 'Τίτλος', image_position: 'Θέση', none: 'Καμία', left: 'Αριστερά', right: 'Δεξιά', image_web_link: 'Υπερσύνδεσμος εικόνας', text: 'Κείμενο', mailto: 'Email', web: 'URL', video_html_code: 'Video Embed Code', file: 'Εισαγωγή αρχείου...', upload: 'Upload', download: 'Download', choose: 'Επέλεξε', or_choose: 'ή επέλεξε', drop_file_here: 'Σύρατε αρχεία εδώ', align_left: 'Στοίχιση αριστερά', align_center: 'Στοίχιση στο κέντρο', align_right: 'Στοίχιση δεξιά', align_justify: 'Πλήρησ στοίχηση', horizontalrule: 'Εισαγωγή οριζόντιας γραμμής', deleted: 'Διαγράφτηκε', anchor: 'Anchor', link_new_tab: 'Open link in new tab', underline: 'Underline', alignment: 'Alignment', filename: 'Name (optional)', edit: 'Edit' }; })( jQuery );
sho-wtag/catarse-2.0
vendor/cache/redactor-rails-e79c3b8359b4/vendor/assets/javascripts/redactor-rails/langs/el.js
JavaScript
mit
2,592
[ 30522, 1006, 3853, 1006, 1002, 1007, 1063, 1002, 1012, 2417, 18908, 2953, 1012, 23569, 2015, 1012, 11374, 2015, 1031, 1005, 3449, 1005, 1033, 1027, 1063, 16129, 1024, 1005, 16129, 1005, 1010, 2678, 1024, 1005, 1159, 18199, 29733, 14608, 29721, 29739, 29721, 24824, 1156, 18199, 16177, 29734, 29723, 29730, 1012, 1012, 1012, 1005, 1010, 3746, 1024, 1005, 1159, 18199, 29733, 14608, 29721, 29739, 29721, 24824, 1159, 18199, 29726, 29730, 16177, 14608, 19579, 1012, 1012, 1012, 1005, 1010, 2795, 1024, 1005, 1170, 18199, 16177, 14608, 29726, 14608, 19579, 1005, 1010, 4957, 1024, 1005, 1173, 29735, 16177, 29722, 29723, 29733, 29728, 15297, 1005, 1010, 4957, 1035, 19274, 1024, 1005, 1159, 18199, 29733, 14608, 29721, 29739, 29721, 24824, 1173, 29735, 16177, 29722, 29723, 29733, 29728, 26789, 1012, 1012, 1012, 1005, 1010, 4957, 1035, 10086, 1024, 1005, 10086, 4957, 1005, 1010, 4895, 13767, 1024, 1005, 1155, 29726, 29735, 29732, 29739, 29733, 24824, 1173, 29735, 16177, 29722, 29723, 29733, 29728, 26789, 1005, 1010, 4289, 3436, 1024, 1005, 1166, 29730, 29732, 29736, 29730, 29731, 29730, 18199, 24824, 29733, 24824, 1005, 1010, 20423, 1024, 1005, 1170, 14608, 29732, 14608, 29721, 29732, 14608, 29736, 15297, 1005, 1010, 14686, 1024, 1005, 1170, 14608, 29732, 14608, 29725, 29723, 29733, 24824, 1005, 1010, 3642, 1024, 1005, 1164, 29739, 29722, 18199, 29726, 14608, 19579, 1005, 1010, 20346, 2487, 1024, 1005, 1164, 29723, 29736, 14608, 29727, 18199, 29722, 14608, 1015, 1005, 1010, 20346, 2475, 1024, 1005, 1164, 29723, 29736, 14608, 29727, 18199, 29722, 14608, 1016, 1005, 1010, 20346, 2509, 1024, 1005, 1164, 29723, 29736, 14608, 29727, 18199, 29722, 14608, 1017, 1005, 1010, 20346, 2549, 1024, 1005, 1164, 29723, 29736, 14608, 29727, 18199, 29722, 14608, 1018, 1005, 1010, 7782, 1024, 1005, 1159, 16177, 29734, 29730, 16177, 14608, 1005, 1010, 2009, 27072, 1024, 1005, 1170, 29727, 14608, 29721, 27432, 1005, 1010, 15489, 18717, 1024, 1005, 1177, 29732, 29739, 29728, 14608, 1157, 29732, 14608, 29728, 29728, 14608, 29734, 29730, 29733, 29723, 18199, 29732, 14608, 19579, 1005, 1010, 2067, 18717, 1024, 1005, 1177, 29732, 29739, 29728, 14608, 1159, 29731, 18199, 29733, 24824, 29728, 14608, 16177, 29733, 29155, 1164, 29723, 18199, 29728, 29723, 16177, 26789, 1005, 1010, 27776, 26764, 2098, 9863, 1024, 1005, 1164, 26789, 29726, 29726, 18199, 29722, 29723, 19579, 1005, 1010, 3641, 9863, 1024, 1005, 1155, 29732, 18199, 29725, 29728, 24824, 29733, 24824, 1005, 1010, 2041, 16454, 1024, 1005, 1166, 29723, 18199, 29739, 29733, 24824, 1159, 29733, 29730, 29737, 29155, 1005, 1010, 27427, 4765, 1024, 1005, 1155, 29735, 29729, 24824, 29733, 24824, 1159, 29733, 29730, 29737, 29155, 1005, 1010, 17542, 1024, 1005, 1155, 29726, 29735, 29732, 29739, 29733, 24824, 1005, 1010, 19274, 1024, 1005, 1159, 18199, 29733, 14608, 29721, 29739, 29721, 24824, 1005, 1010, 3828, 1024, 1005, 1155, 29731, 29730, 29725, 24824, 29726, 29723, 29735, 29733, 24824, 1005, 1010, 1035, 3972, 30524, 29732, 30523, 12870, 1024, 1005, 1158, 27432, 29721, 29732, 14608, 29736, 24824, 1005, 1010, 19274, 1035, 2795, 1024, 1005, 1159, 18199, 29733, 14608, 29721, 29739, 29721, 24824, 1170, 18199, 16177, 14608, 29726, 14608, 1012, 1012, 1012, 1005, 1010, 19274, 1035, 5216, 1035, 2682, 1024, 1005, 1170, 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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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12870, 1024, 1005, 1158, 27432, 29721, 29732, 14608, 29736, 24824, 1005, 1010, 19274, 1035, 2795, 1024, 1005, 1159, 18199, 29733, 14608, 29721, 29739, 29721, 24824, 1170, 18199, 16177, 14608, 29726, 14608, 1012, 1012, 1012, 1005, 1010, 19274, 1035, 5216, 1035, 2682, 1024, 1005, 1170, 30526 ]
package scimoxy type ServiceHandler interface { Users() }
kentaro/scimoxy
service_handler.go
GO
mit
60
[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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
/** * Copyright 2008 The Apache Software Foundation * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.rest; import java.io.IOException; import java.util.ArrayList; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.client.HBaseAdmin; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.ResultScanner; import org.apache.hadoop.hbase.rest.exception.HBaseRestException; import org.apache.hadoop.hbase.rest.serializer.IRestSerializer; import org.apache.hadoop.hbase.rest.serializer.ISerializable; import org.apache.hadoop.hbase.util.Bytes; import agilejson.TOJSON; public class TableModel extends AbstractModel { @SuppressWarnings("unused") private Log LOG = LogFactory.getLog(TableModel.class); public TableModel(HBaseConfiguration config, HBaseAdmin admin) { super.initialize(config, admin); } // Get Methods public Result[] get(byte [] tableName) throws HBaseRestException { return get(tableName, getColumns(tableName)); } /** * Returns all cells from all rows from the given table in the given columns. * The output is in the order that the columns are given. * * @param tableName * table name * @param columnNames * column names * @return resultant rows * @throws org.apache.hadoop.hbase.rest.exception.HBaseRestException */ public Result[] get(byte [] tableName, byte[][] columnNames) throws HBaseRestException { try { ArrayList<Result> a = new ArrayList<Result>(); HTable table = new HTable(tableName); Scan scan = new Scan(); scan.addColumns(columnNames); ResultScanner s = table.getScanner(scan); Result r; while ((r = s.next()) != null) { a.add(r); } return a.toArray(new Result[0]); } catch (Exception e) { throw new HBaseRestException(e); } } protected boolean doesTableExist(byte [] tableName) throws HBaseRestException { try { return this.admin.tableExists(tableName); } catch (IOException e) { throw new HBaseRestException(e); } } protected void disableTable(byte [] tableName) throws HBaseRestException { try { this.admin.disableTable(tableName); } catch (IOException e) { throw new HBaseRestException("IOException disabling table", e); } } protected void enableTable(byte [] tableName) throws HBaseRestException { try { this.admin.enableTable(tableName); } catch (IOException e) { throw new HBaseRestException("IOException enabiling table", e); } } public boolean updateTable(String tableName, ArrayList<HColumnDescriptor> columns) throws HBaseRestException { HTableDescriptor htc = null; try { htc = this.admin.getTableDescriptor(Bytes.toBytes(tableName)); } catch (IOException e) { throw new HBaseRestException("Table does not exist"); } for (HColumnDescriptor column : columns) { if (htc.hasFamily(Bytes.toBytes(column.getNameAsString()))) { try { this.admin.disableTable(tableName); this.admin.modifyColumn(tableName, column.getNameAsString(), column); this.admin.enableTable(tableName); } catch (IOException e) { throw new HBaseRestException("unable to modify column " + column.getNameAsString(), e); } } else { try { this.admin.disableTable(tableName); this.admin.addColumn(tableName, column); this.admin.enableTable(tableName); } catch (IOException e) { throw new HBaseRestException("unable to add column " + column.getNameAsString(), e); } } } return true; } /** * Get table metadata. * * @param tableName * @return HTableDescriptor * @throws HBaseRestException */ public HTableDescriptor getTableMetadata(final String tableName) throws HBaseRestException { HTableDescriptor descriptor = null; try { HTableDescriptor[] tables = this.admin.listTables(); for (int i = 0; i < tables.length; i++) { if (Bytes.toString(tables[i].getName()).equals(tableName)) { descriptor = tables[i]; break; } } if (descriptor == null) { } else { return descriptor; } } catch (IOException e) { throw new HBaseRestException("error processing request."); } return descriptor; } /** * Return region offsets. * @param tableName * @return Regions * @throws HBaseRestException */ public Regions getTableRegions(final String tableName) throws HBaseRestException { try { HTable table = new HTable(this.conf, tableName); // Presumption is that this.table has already been focused on target // table. Regions regions = new Regions(table.getStartKeys()); // Presumption is that this.table has already been set against target // table return regions; } catch (IOException e) { throw new HBaseRestException("Unable to get regions from table"); } } // Post Methods /** * Creates table tableName described by the json in input. * * @param tableName * table name * @param htd * HBaseTableDescriptor for the table to be created * * @return true if operation does not fail due to a table with the given * tableName not existing. * @throws org.apache.hadoop.hbase.rest.exception.HBaseRestException */ public boolean post(byte [] tableName, HTableDescriptor htd) throws HBaseRestException { try { if (!this.admin.tableExists(tableName)) { this.admin.createTable(htd); return true; } } catch (IOException e) { throw new HBaseRestException(e); } return false; } /** * Deletes table tableName * * @param tableName * name of the table. * @return true if table exists and deleted, false if table does not exist. * @throws org.apache.hadoop.hbase.rest.exception.HBaseRestException */ public boolean delete(byte [] tableName) throws HBaseRestException { try { if (this.admin.tableExists(tableName)) { this.admin.disableTable(tableName); this.admin.deleteTable(tableName); return true; } return false; } catch (Exception e) { throw new HBaseRestException(e); } } public static class Regions implements ISerializable { byte[][] regionKey; public Regions(byte [][] bs) { super(); this.regionKey = bs; } @SuppressWarnings("unused") private Regions() { } /** * @return the regionKey */ @TOJSON(fieldName = "region") public byte[][] getRegionKey() { return regionKey; } /** * @param regionKey * the regionKey to set */ public void setRegionKey(byte[][] regionKey) { this.regionKey = regionKey; } /* * (non-Javadoc) * * @see org.apache.hadoop.hbase.rest.xml.IOutputXML#toXML() */ public void restSerialize(IRestSerializer serializer) throws HBaseRestException { serializer.serializeRegionData(this); } } }
adragomir/hbaseindex
src/java/org/apache/hadoop/hbase/rest/TableModel.java
Java
apache-2.0
8,310
[ 30522, 1013, 1008, 1008, 1008, 9385, 2263, 1996, 15895, 4007, 3192, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 1008, 2030, 2062, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 1008, 5500, 2007, 2023, 2147, 2005, 3176, 2592, 1008, 4953, 9385, 6095, 1012, 1996, 2004, 2546, 15943, 2023, 5371, 1008, 2000, 2017, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1008, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 1008, 2007, 1996, 6105, 1012, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 2717, 1025, 12324, 9262, 1012, 22834, 1012, 22834, 10288, 24422, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 9140, 9863, 1025, 12324, 8917, 1012, 15895, 1012, 7674, 1012, 15899, 1012, 8833, 1025, 12324, 8917, 1012, 15895, 1012, 7674, 1012, 15899, 1012, 8833, 21450, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 1044, 15058, 8663, 8873, 27390, 3370, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 16731, 4747, 2819, 13629, 22483, 2953, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 1044, 10880, 6155, 23235, 2953, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 7396, 1012, 1044, 15058, 4215, 10020, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 7396, 1012, 1044, 10880, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 7396, 1012, 2765, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 7396, 1012, 13594, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 7396, 1012, 3463, 9336, 3678, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 2717, 1012, 6453, 1012, 1044, 15058, 28533, 10288, 24422, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 2717, 1012, 7642, 17629, 1012, 20868, 4355, 8043, 4818, 17629, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 2717, 1012, 7642, 17629, 1012, 2003, 11610, 3669, 4143, 3468, 1025, 12324, 8917, 1012, 15895, 1012, 2018, 18589, 1012, 1044, 15058, 1012, 21183, 4014, 1012, 27507, 1025, 12324, 29003, 22578, 2239, 1012, 2000, 22578, 2239, 1025, 2270, 2465, 2795, 5302, 9247, 8908, 10061, 5302, 9247, 1063, 1030, 16081, 9028, 5582, 2015, 1006, 1000, 15171, 1000, 1007, 2797, 8833, 8833, 30524, 1025, 2270, 2795, 5302, 30523, 1027, 8833, 21450, 1012, 2131, 21197, 1006, 2795, 5302, 9247, 1012, 2465, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1027, 8833, 21450, 1012, 2131, 21197, 1006, 2795, 5302, 9247, 1012, 2465, 1007, 30526 ]
/* * Copyright (C) Alexander Chuprynov <achuprynov@gmail.com> * This file is part of solution of test task described in readme.txt. */ #include <iostream> #include "server.h" namespace simple_chat { void MessageQueue::PushMessageAndSignal(IncomingMessage * msg) { Lock l(m_mutex); m_messages.push(msg); m_event.Signal(); } IncomingMessage * MessageQueue::PopMessageOrWait() { Lock l(m_mutex); if (m_messages.empty()) { m_event.Wait(); } IncomingMessage * msg = m_messages.front(); m_messages.pop(); return msg; } bool ConnectedClients::AddClient(ClientConnection & client) { Lock l(m_mutex); std::map<std::string, Connection>::iterator it = m_connections.find(client.nickname); if (it != m_connections.end()) { return false; } else { m_connections[client.nickname] = client.connection; return true; } } void ConnectedClients::DelClient(std::string & nickname) { Lock l(m_mutex); m_connections.erase(nickname); } void ConnectedClients::SendMessageToAllClients(std::string & message, std::string except_nickname) { Lock l(m_mutex); std::map<std::string, Connection>::iterator it = m_connections.begin(); while (it != m_connections.end()) { std::string nickname = (*it).first; Connection & conn = (*it).second; if (except_nickname.compare(nickname) != 0) { conn.SendMessage(message.c_str(), message.length()); } it++; } } bool Server::Start(const char * host, int port, const char * nickname) { m_nickname = nickname; if (Listen(host, port) == false) return false; // run Acceptor if (m_acceptor.StartAttached(Acceptor, this) == false) { Disconnect("ERROR Acceptor not started"); return false; } // run Broadcaster if (m_broadcaster.StartAttached(Broadcaster, this) == false) { Disconnect("ERROR Broadcaster not started"); m_acceptor.Join(); return false; } return true; } void Server::WaitQuit() { std::cout << "Type \"quit\" for close." << std::endl; // wait quit command while (IsConnected()) { std::string cmd; std::cin >> cmd; if (cmd.compare("quit") == 0) { // close all existing connection Disconnect(); // empty message is flag for stop Broadcaster PushMessageAndSignal(new IncomingMessage("", "")); break; } } // wait threads termination m_acceptor.Join(); m_broadcaster.Join(); } void * Server::Acceptor(void * obj) { Server * server = (Server*)obj; if (!server) return 0; while (1) { Connection connection = server->Accept(); if (connection.IsConnected() == false) break; ClientConnection * client = new ClientConnection(server, connection); if (Thread::StartDetached(Receiver, client) == false) { delete client; connection.Disconnect(); } } return 0; } void * Server::Receiver(void * obj) { ClientConnection * client = (ClientConnection*)obj; Server & server = *(client->server); Connection & connection = client->connection; static const char * user_exist = "User with this nickname already exist! Please use another name!"; while (connection.IsConnected()) { // read message from tcp connection const char * message = connection.RecvMessage(); if (message == 0) break; if (client->nickname.empty()) { client->nickname = message; if (server.AddClient(*client) == false) { connection.SendMessage(user_exist, sizeof(user_exist)); connection.Disconnect("Attempt connection with existing nickname!"); break; } // send server event server.PushMessageAndSignal(new IncomingMessage(client->nickname.c_str(), "I am online")); } else { // add new message server.PushMessageAndSignal(new IncomingMessage(client->nickname.c_str(), message)); } } if (client->nickname.empty() == false) { server.DelClient(client->nickname); // send server event server.PushMessageAndSignal(new IncomingMessage(client->nickname.c_str(), "I am offline")); } delete client; return 0; } void * Server::Broadcaster(void * obj) { Server * server = (Server*)obj; while (true) { // select new messages IncomingMessage * message = server->PopMessageOrWait(); if (!message) { break; } // check for stop if (message->nickname.empty() || message->message.empty()) { delete message; break; } // create message std::string formatted_message = message->nickname + "> " + message->message; // output to server console std::cout << formatted_message << std::endl; server->SendMessageToAllClients(formatted_message, message->nickname); delete message; } return 0; } }
achuprynov/workspace
SimpleChat/src/server.cpp
C++
gpl-3.0
7,038
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 3656, 14684, 18098, 6038, 4492, 1026, 9353, 6979, 18098, 6038, 4492, 1030, 20917, 4014, 1012, 4012, 1028, 1008, 2023, 5371, 2003, 2112, 1997, 5576, 1997, 3231, 4708, 2649, 1999, 3191, 4168, 1012, 19067, 2102, 1012, 1008, 1013, 1001, 2421, 1026, 16380, 25379, 1028, 1001, 2421, 1000, 8241, 1012, 1044, 1000, 3415, 15327, 3722, 1035, 11834, 1063, 11675, 4471, 4226, 5657, 1024, 1024, 5245, 7834, 3736, 3351, 29560, 23773, 2389, 1006, 14932, 7834, 3736, 3351, 1008, 5796, 2290, 1007, 1063, 5843, 1048, 1006, 1049, 1035, 20101, 2595, 1007, 1025, 1049, 1035, 7696, 1012, 5245, 1006, 5796, 2290, 1007, 1025, 1049, 1035, 2724, 1012, 4742, 1006, 1007, 1025, 1065, 14932, 7834, 3736, 3351, 1008, 4471, 4226, 5657, 1024, 1024, 3769, 7834, 3736, 3351, 2953, 21547, 2102, 1006, 30524, 1063, 1049, 1035, 2724, 1012, 3524, 1006, 1007, 1025, 1065, 14932, 7834, 3736, 3351, 1008, 5796, 2290, 1027, 1049, 1035, 7696, 1012, 2392, 1006, 1007, 1025, 1049, 1035, 7696, 1012, 3769, 1006, 1007, 1025, 2709, 5796, 2290, 1025, 1065, 22017, 2140, 4198, 20464, 11638, 2015, 1024, 1024, 5587, 20464, 11638, 1006, 7396, 8663, 2638, 7542, 1004, 7396, 1007, 1063, 5843, 1048, 1006, 1049, 1035, 20101, 2595, 1007, 1025, 2358, 2094, 1024, 1024, 4949, 1026, 2358, 2094, 1024, 1024, 5164, 1010, 4434, 1028, 1024, 1024, 2009, 6906, 4263, 2009, 1027, 1049, 1035, 7264, 1012, 2424, 1006, 7396, 1012, 8367, 1007, 1025, 2065, 1006, 2009, 999, 1027, 1049, 1035, 7264, 1012, 2203, 1006, 1007, 1007, 1063, 2709, 6270, 1025, 1065, 2842, 1063, 1049, 1035, 7264, 1031, 7396, 1012, 8367, 1033, 1027, 7396, 1012, 4434, 1025, 2709, 2995, 1025, 1065, 1065, 11675, 4198, 20464, 11638, 2015, 1024, 1024, 3972, 20464, 11638, 1006, 2358, 2094, 1024, 1024, 5164, 1004, 8367, 1007, 1063, 5843, 1048, 1006, 1049, 1035, 20101, 2595, 1007, 1025, 1049, 1035, 7264, 1012, 22505, 1006, 8367, 1007, 1025, 1065, 11675, 4198, 20464, 11638, 2015, 1024, 1024, 4604, 7834, 3736, 18150, 10441, 3363, 20464, 11638, 2015, 1006, 2358, 2094, 1024, 1024, 5164, 1004, 4471, 1010, 2358, 2094, 1024, 1024, 5164, 3272, 1035, 8367, 1007, 1063, 5843, 1048, 1006, 1049, 1035, 20101, 2595, 1007, 1025, 2358, 2094, 1024, 1024, 4949, 1026, 2358, 2094, 1024, 1024, 5164, 1010, 4434, 1028, 1024, 1024, 2009, 6906, 4263, 2009, 1027, 1049, 1035, 7264, 1012, 4088, 1006, 1007, 1025, 2096, 1006, 2009, 999, 1027, 1049, 1035, 7264, 1012, 2203, 1006, 1007, 1007, 1063, 2358, 2094, 1024, 1024, 5164, 8367, 1027, 1006, 1008, 2009, 1007, 1012, 2034, 1025, 4434, 1004, 9530, 2078, 1027, 1006, 1008, 2009, 1007, 1012, 2117, 1025, 2065, 1006, 3272, 1035, 8367, 1012, 12826, 1006, 8367, 1007, 999, 1027, 1014, 1007, 1063, 9530, 2078, 1012, 4604, 7834, 3736, 3351, 1006, 4471, 1012, 1039, 1035, 2358, 2099, 1006, 1007, 1010, 4471, 1012, 3091, 1006, 1007, 1007, 1025, 1065, 2009, 1009, 1009, 1025, 1065, 1065, 22017, 2140, 8241, 1024, 1024, 2707, 1006, 9530, 3367, 30523, 1007, 1063, 5843, 1048, 1006, 1049, 1035, 20101, 2595, 1007, 1025, 2065, 1006, 1049, 1035, 7696, 1012, 4064, 1006, 1007, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1007, 1063, 5843, 1048, 1006, 1049, 1035, 20101, 2595, 1007, 1025, 2065, 1006, 1049, 1035, 7696, 1012, 4064, 1006, 1007, 1007, 30526 ]
import React from 'react' import {HOC, Link} from 'cerebral-view-react' import PageProgress from '../PageProgress' // View class AutoReload extends React.Component { constructor (props) { super(props) this.state = { secondsElapsed: 0 } this.onInterval = this.onInterval.bind(this) } componentWillMount () { this.intervals = [] } componentWillUnmount () { this.intervals.forEach(clearInterval) } componentDidMount () { this.setInterval(this.onInterval, 1000) } setInterval () { this.intervals.push(setInterval.apply(null, arguments)) } onInterval () { let secondsElapsed = 0 if (this.props.isEnabled) { secondsElapsed = this.state.secondsElapsed + 1 if (secondsElapsed >= this.props.triggerAfterSeconds) { this.trigger() secondsElapsed = 0 } } if (secondsElapsed !== this.state.secondsElapsed) { this.setState({ secondsElapsed: secondsElapsed }) } } trigger () { this.props.triggers.map((trigger) => trigger()) } triggerNow (e) { if (e) { e.preventDefault() } if (this.props.isEnabled) { if (this.state.secondsElapsed > 0) { this.trigger() this.setState({ secondsElapsed: 0 }) } } } render () { const signals = this.props.signals const progress = { isEnabled: this.props.isEnabled, elapsed: this.state.secondsElapsed, total: this.props.triggerAfterSeconds } return ( <div> <PageProgress {...progress} /> <hr /> <pre> BastardAutoloaderFromHell<br /> =========================<br /> [{'='.repeat(this.state.secondsElapsed)}{'.'.repeat(this.props.triggerAfterSeconds - this.state.secondsElapsed - 1)}]<br /> isEnabled: {this.props.isEnabled ? 'yepp' : 'nope'}<br /> triggerAfterSeconds: {this.props.triggerAfterSeconds}<br /> numberOfTriggers: {this.props.triggers.length}<br /> secondsElapsed: {this.state.secondsElapsed}<br /> secondsBeforeReload: {this.props.triggerAfterSeconds - this.state.secondsElapsed}<br /> -------------------------<br /> <Link signal={signals.app.reload.reloadingDisabled}>clickmeto_<b>disable</b>_reloading</Link><br /> --<br /> <Link signal={signals.app.reload.reloadingEnabled}>clickmeto_<b>enable</b>_reloading</Link><br /> --<br /> <Link signal={signals.app.reload.reloadingToggled}>clickmeto_<b>toggle</b>_reloading</Link><br /> -------------------------<br /> <a onClick={(e) => this.triggerNow(e)}>clickmeto_<b>trigger_NOW</b></a><br /> -------------------------<br /> <Link signal={signals.app.reload.triggerIntervalChanged} params={{interval: 10}}>clickmeto_reload_@<b>10_seconds</b></Link><br /> --<br /> <Link signal={signals.app.reload.triggerIntervalChanged} params={{interval: 20}}>clickmeto_reload_@<b>20_seconds</b></Link><br /> --<br /> <Link signal={signals.app.reload.triggerIntervalChanged} params={{interval: 30}}>clickmeto_reload_@<b>30_seconds</b></Link><br /> --<br /> <Link signal={signals.app.reload.triggerIntervalChanged} params={{interval: 60}}>clickmeto_reload_@<b>60_seconds</b></Link><br /> ====<br /> <i>designed by pbit</i> </pre> </div> ) } } // Model AutoReload.propTypes = { isEnabled: React.PropTypes.bool, triggerAfterSeconds: React.PropTypes.number, signals: React.PropTypes.object, triggers: React.PropTypes.array } AutoReload.defaultProps = { triggers: [] } // Binding const StatefullAutoReload = HOC(AutoReload, { isEnabled: ['app', 'reload', 'isEnabled'], triggerAfterSeconds: ['app', 'reload', 'triggerAfterSeconds'] }) // API export default StatefullAutoReload
burning-duck/twibral
src/ui/components/AutoReload/index.js
JavaScript
mit
3,914
[ 30522, 12324, 10509, 2013, 1005, 10509, 1005, 12324, 1063, 21929, 1010, 4957, 1065, 2013, 1005, 18439, 1011, 3193, 1011, 10509, 1005, 12324, 3931, 21572, 17603, 4757, 2013, 1005, 1012, 1012, 1013, 3931, 21572, 17603, 4757, 1005, 1013, 1013, 3193, 2465, 8285, 16570, 10441, 2094, 8908, 10509, 1012, 6922, 1063, 9570, 2953, 1006, 24387, 1007, 1063, 3565, 1006, 24387, 1007, 2023, 1012, 2110, 1027, 1063, 3823, 10581, 29251, 2094, 1024, 1014, 1065, 2023, 1012, 2006, 18447, 2121, 10175, 1027, 2023, 1012, 2006, 18447, 2121, 10175, 1012, 14187, 1006, 2023, 1007, 1065, 6922, 29602, 13728, 21723, 1006, 1007, 1063, 2023, 1012, 14025, 1027, 1031, 1033, 1065, 6922, 29602, 26896, 20048, 1006, 1007, 1063, 2023, 1012, 14025, 1012, 18921, 6776, 1006, 3154, 18447, 2121, 10175, 1007, 1065, 6922, 4305, 22117, 21723, 1006, 1007, 1063, 2023, 1012, 2275, 18447, 2121, 10175, 1006, 2023, 1012, 2006, 18447, 2121, 10175, 1010, 6694, 1007, 1065, 2275, 18447, 2121, 10175, 1006, 1007, 1063, 2023, 1012, 14025, 1012, 5245, 1006, 2275, 18447, 2121, 10175, 1012, 6611, 1006, 19701, 1010, 9918, 1007, 1007, 1065, 2006, 18447, 2121, 10175, 1006, 1007, 1063, 2292, 3823, 10581, 29251, 2094, 1027, 1014, 2065, 1006, 2023, 1012, 24387, 1012, 2003, 8189, 23242, 1007, 1063, 3823, 10581, 29251, 2094, 1027, 2023, 1012, 2110, 1012, 3823, 10581, 29251, 2094, 1009, 1015, 2065, 1006, 3823, 10581, 29251, 2094, 1028, 1027, 2023, 1012, 24387, 1012, 9495, 10354, 7747, 8586, 15422, 2015, 1007, 1063, 2023, 1012, 9495, 1006, 1007, 3823, 10581, 29251, 2094, 1027, 1014, 1065, 1065, 2065, 1006, 3823, 10581, 29251, 2094, 999, 1027, 1027, 2023, 1012, 2110, 1012, 3823, 10581, 29251, 2094, 1007, 1063, 2023, 1012, 4520, 12259, 1006, 1063, 3823, 10581, 29251, 2094, 1024, 3823, 10581, 29251, 2094, 1065, 1007, 1065, 1065, 9495, 1006, 1007, 1063, 2023, 1012, 24387, 1012, 27099, 1012, 4949, 1006, 1006, 9495, 1007, 1027, 1028, 9495, 1006, 1007, 1007, 1065, 9495, 19779, 1006, 1041, 1007, 1063, 2065, 1006, 1041, 1007, 1063, 1041, 1012, 4652, 3207, 7011, 11314, 1006, 30524, 2023, 1012, 24387, 1012, 2003, 8189, 23242, 1007, 1063, 2065, 1006, 2023, 1012, 2110, 1012, 3823, 10581, 29251, 2094, 1028, 1014, 1007, 1063, 2023, 1012, 9495, 1006, 1007, 2023, 1012, 4520, 12259, 1006, 1063, 3823, 10581, 29251, 2094, 1024, 1014, 1065, 1007, 1065, 1065, 1065, 17552, 1006, 1007, 1063, 9530, 3367, 7755, 1027, 2023, 1012, 24387, 1012, 7755, 9530, 3367, 5082, 1027, 1063, 2003, 8189, 23242, 1024, 2023, 1012, 24387, 1012, 2003, 8189, 23242, 1010, 3449, 9331, 6924, 1024, 2023, 1012, 2110, 1012, 3823, 10581, 29251, 2094, 1010, 2561, 1024, 2023, 1012, 24387, 1012, 9495, 10354, 7747, 8586, 15422, 2015, 1065, 2709, 1006, 1026, 4487, 2615, 1028, 1026, 3931, 21572, 17603, 4757, 1063, 1012, 1012, 1012, 5082, 1065, 1013, 1028, 1026, 17850, 1013, 1028, 1026, 3653, 1028, 8444, 4887, 3406, 11066, 2121, 19699, 5358, 18223, 1026, 7987, 1013, 1028, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1026, 7987, 1013, 1028, 1031, 1063, 30523, 1007, 1065, 2065, 1006, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1007, 1065, 2065, 1006, 30526 ]
define({ "sourceSetting": "Pretraži postavke izvora", "instruction": "Dodaj i konfiguriši servise za geokodiranje ili slojeve geoobjekata kao izvore pretrage. Ovi navedeni izvori određuju šta može da se pretražuje unutar trake za pretragu.", "add": "Dodaj izvor pretrage", "addGeocoder": "Dodaj geokoder", "geocoder": "Geokoder", "setLayerSource": "Postavi izvor sloja", "setGeocoderURL": "Postavi URL adresu geokôdera", "searchableLayer": "Sloj geoobjekata", "name": "Naziv", "countryCode": "Kôd(ovi) zemlje ili regiona", "countryCodeEg": "npr. ", "countryCodeHint": "Ako ova vrednost ostane prazna, pretražuju se sve zemlje i regioni", "generalSetting": "Opšte postavke", "allPlaceholder": "Tekst čuvara mesta za pretragu svega: ", "showInfoWindowOnSelect": "Prikaži iskačući prozor za pronađeni geoobjekat ili lokaciju", "searchInCurrentMapExtent": "Pretraži samo u trenutnom obuhvatu mape", "zoomScale": "Skala zumiranja", "locatorUrl": "URL adresa geokodera", "locatorName": "Ime geokodera", "locatorExample": "Primer", "locatorWarning": "Ova verzija servisa geokôdiranja nije podržana. Vidžet podržava samo servis geokôdiranja 10.1 i novije.", "locatorTips": "Predlozi nisu dostupni jer servis geokôdiranja ne podržava predloženu mogućnost.", "layerSource": "Izvor sloja", "searchLayerTips": "Predlozi nisu dostupni jer servis geoobjekata ne podržava mogućnost paginacije.", "placeholder": "Tekst čuvara mesta", "searchFields": "Polja za pretragu", "displayField": "Prikaži polje", "exactMatch": "Potpuno podudaranje", "maxSuggestions": "Maksimalno predloga", "maxResults": "Maksimalno rezultata", "enableLocalSearch": "Omogući lokalnu pretragu", "minScale": "Min. razmera", "minScaleHint": "Kada je razmera mape veća od ove razmere, primenjuje se lokalna pretraga", "radius": "Poluprečnik", "radiusHint": "Definiše poluprečnik oblasti oko trenutnog centra mape koja se koristi za poboljšavanje rangiranja kandidata za geokodiranje kako bi se prvo vraćali kandidati najbliži lokaciji", "meters": "Metri", "setSearchFields": "Postavi polja pretrage", "set": "Postavi", "fieldSearchable": "pretraživo", "fieldName": "Naziv", "fieldAlias": "Alias", "ok": "U redu", "cancel": "Otkaži", "invalidUrlTip": "URL adresa ${URL} nije validna ili nije dostupna." });
EsriCanada-CE/ecce-app-challenge-2017
GISoar/app/widgets/Search/setting/nls/sr/strings.js
JavaScript
gpl-3.0
2,387
[ 30522, 9375, 1006, 1063, 1000, 4216, 18319, 3070, 1000, 1024, 1000, 3653, 6494, 5831, 2695, 11431, 3489, 30524, 16429, 6460, 29123, 10556, 2080, 1045, 2480, 14550, 2063, 3653, 6494, 3351, 1012, 1051, 5737, 12847, 4181, 2072, 1045, 2480, 14550, 2072, 1051, 16200, 29671, 23049, 2226, 2358, 2050, 9587, 4371, 4830, 7367, 3653, 6494, 9759, 6460, 4895, 13210, 2099, 19817, 13808, 23564, 3653, 6494, 12193, 1012, 1000, 1010, 1000, 5587, 1000, 1024, 1000, 26489, 13006, 1045, 2480, 14550, 3653, 6494, 3351, 1000, 1010, 1000, 5587, 3351, 24163, 4063, 1000, 1024, 1000, 26489, 13006, 20248, 3683, 4063, 1000, 1010, 1000, 20248, 16044, 2099, 1000, 1024, 1000, 20248, 3683, 4063, 1000, 1010, 1000, 2275, 24314, 6499, 3126, 3401, 1000, 1024, 1000, 2695, 18891, 1045, 2480, 14550, 22889, 22918, 1000, 1010, 1000, 2275, 3351, 24163, 4063, 3126, 2140, 1000, 1024, 1000, 2695, 18891, 24471, 2140, 4748, 6072, 2226, 20248, 3683, 4063, 2050, 1000, 1010, 1000, 3945, 3085, 24314, 1000, 1024, 1000, 22889, 29147, 20248, 16429, 6460, 29123, 1000, 1010, 1000, 2171, 1000, 1024, 1000, 6394, 2615, 1000, 1010, 1000, 2406, 16044, 1000, 1024, 1000, 12849, 2094, 1006, 1051, 5737, 1007, 27838, 19968, 6460, 6335, 2072, 2555, 2050, 1000, 1010, 1000, 2406, 16044, 13910, 1000, 1024, 1000, 21411, 1012, 1000, 1010, 1000, 2406, 16044, 10606, 2102, 1000, 1024, 1000, 17712, 2080, 1051, 3567, 27830, 2098, 15460, 2102, 9808, 5794, 2063, 10975, 10936, 2532, 1010, 3653, 6494, 9759, 9103, 7367, 17917, 2063, 27838, 19968, 6460, 1045, 2555, 2072, 1000, 1010, 1000, 11593, 18319, 3070, 1000, 1024, 1000, 23092, 2618, 2695, 11431, 3489, 1000, 1010, 1000, 2035, 24759, 10732, 14528, 1000, 1024, 1000, 8915, 5705, 2102, 12731, 24516, 2033, 9153, 23564, 3653, 6494, 12193, 17917, 29107, 1024, 1000, 1010, 1000, 2265, 2378, 14876, 11101, 5004, 5644, 12260, 6593, 1000, 1024, 1000, 26927, 2912, 5831, 2003, 2912, 10841, 6895, 4013, 6844, 2099, 23564, 4013, 2532, 29671, 18595, 20248, 16429, 6460, 24498, 6335, 2072, 13660, 6305, 28418, 2226, 1000, 1010, 1000, 3945, 2378, 10841, 14343, 3372, 2863, 5051, 18413, 4765, 1000, 1024, 1000, 3653, 6494, 5831, 3520, 2080, 1057, 29461, 24072, 3630, 2213, 27885, 27225, 22879, 2226, 4949, 2063, 1000, 1010, 1000, 24095, 15782, 2571, 1000, 1024, 1000, 24053, 2721, 16950, 14503, 2319, 3900, 1000, 1010, 1000, 8840, 11266, 2953, 3126, 2140, 1000, 1024, 1000, 24471, 2140, 4748, 6072, 2050, 20248, 3683, 4063, 2050, 1000, 1010, 1000, 8840, 11266, 9691, 14074, 1000, 1024, 1000, 10047, 2063, 20248, 3683, 4063, 2050, 1000, 1010, 1000, 8840, 11266, 5686, 18684, 23344, 1000, 1024, 1000, 3539, 2099, 1000, 1010, 1000, 8840, 11266, 2953, 9028, 5582, 1000, 1024, 1000, 1051, 3567, 2310, 15378, 14713, 14262, 11365, 2050, 20248, 3683, 4305, 5521, 3900, 9152, 6460, 17491, 24175, 2532, 1012, 6819, 2094, 4371, 2102, 17491, 24175, 3567, 3520, 2080, 14262, 11365, 20248, 3683, 4305, 5521, 3900, 2184, 1012, 1015, 1045, 21574, 6460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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1045, 2480, 14550, 2050, 1000, 1010, 1000, 7899, 1000, 1024, 1000, 26489, 13006, 1045, 12849, 2078, 8873, 27390, 17417, 14262, 11365, 2063, 23564, 20248, 3683, 4305, 5521, 6460, 6335, 2072, 22889, 29147, 18697, 20248, 30526 ]
/* {{ jtdavids-reflex }} Copyright (C) 2015 Jake Davidson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.example.jake.jtdavids_reflex; import android.content.SharedPreferences; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Created by Jake on 28/09/2015. */ public class StatisticCalc { List<Double> reaction_times = new ArrayList<Double>(); public StatisticCalc() { } public void add(double time){ reaction_times.add(time); } public void clear(){ reaction_times.clear(); } public String getAllTimeMin(){ //gets the minimum time of all recorded reaction times //if no reaction times are recored, return 'N/A' if (reaction_times.size() != 0) { double min = reaction_times.get(reaction_times.size()-1); for (int i = reaction_times.size()-2; i >= 0; i--) { if (reaction_times.get(i) < min) { min = reaction_times.get(i); } } return String.valueOf(min); } else{ return "N/A"; } } public String getSpecifiedTimeMin(int length){ //Gets the minimum reaction time of the last X reactions //a negative value should not be passed into this method //Since reactions are stored in a list, must iterate backwards through the list //to retrieve reaction times in chronological order if (reaction_times.size() != 0) { if(reaction_times.size() < length){ length = reaction_times.size(); } double min = reaction_times.get(reaction_times.size()-1); for (int i = reaction_times.size()-2; i > reaction_times.size()-length; i--) { if (reaction_times.get(i) < min) { min = reaction_times.get(i); } } return String.valueOf(min); } else{ return "N/A"; } } public String getAllTimeMax(){ //gets the maximum reaction time of all reactions if (reaction_times.size() !=0 ) { double max = reaction_times.get(reaction_times.size()-1); for (int i = reaction_times.size()-2; i >= 0; i--) { if (reaction_times.get(i) > max) { max = reaction_times.get(i); } } return String.valueOf(max); } else{ return "N/A"; } } public String getSpecifiedTimeMax(int length){ //Gets the maximum reaction time of the last X reactions //a negative value should not be passed into this method //Since reactions are stored in a list, must iterate backwards through the list //to retrieve reaction times in chronological order if (reaction_times.size() !=0 ) { if(reaction_times.size() < length){ length = reaction_times.size(); } double max = reaction_times.get(reaction_times.size()-1); for (int i = reaction_times.size()-2; i > reaction_times.size()-length; i--) { if (reaction_times.get(i) > max) { max = reaction_times.get(i); } } return String.valueOf(max); } else{ return "N/A"; } } public String getAllTimeAvg(){ //gets the average reaction time of all reactions if (reaction_times.size() !=0 ) { double avg = reaction_times.get(reaction_times.size()-1); for (int i = reaction_times.size()-2; i >= 0; i--) { avg = avg + reaction_times.get(i); } return String.valueOf((avg / reaction_times.size())); } else{ return "N/A "; } } public String getSpecifiedTimeAvg(int length){ //Gets the average reaction time of the last X reactions //a negative value should not be passed into this method //Since reactions are stored in a list, must iterate backwards through the list //to retrieve reaction times in chronological order if (reaction_times.size() !=0 ) { if(reaction_times.size() < length){ length = reaction_times.size(); } double avg = reaction_times.get(reaction_times.size()-1); for (int i = reaction_times.size()-2; i >= reaction_times.size()-length; i--) { avg = avg + reaction_times.get(i); } return String.valueOf((avg / length)); }else{ return "N/A "; } } public String getAllTimeMed(){ //gets the median reaction time of all reactions if (reaction_times.size() !=0 ) { List<Double> sorted_times = new ArrayList<Double>(reaction_times); Collections.sort(sorted_times); return String.valueOf((sorted_times.get(sorted_times.size() / 2))); } else{ return "N/A"; } } public String getSpecifiedTimeMed(int length){ //Gets the median reaction time of the last X reactions //a negative value should not be passed into this method if (reaction_times.size() != 0 ) { if(reaction_times.size() < length){ length = reaction_times.size(); } List<Double> sorted_times = new ArrayList<Double>(reaction_times.subList(0, length)); Collections.sort(sorted_times); return String.valueOf((sorted_times.get(sorted_times.size() / 2))); }else{ return "N/A"; } } public String getStatsMessage(SharedPreferences twoplayers_score, SharedPreferences threeplayers_score, SharedPreferences fourplayers_score){ return ("______SINGLEPLAYER______\n" + " MIN TIME:\n" + "All Time: " + getAllTimeMin() + "\nLast 10 times: " + getSpecifiedTimeMin(10) + "\nLast 100 times: " + getSpecifiedTimeMin(100) + "\n" + " MAX TIME:\n" + "All Time: " + getAllTimeMax() + "\nLast 10 times: " + getSpecifiedTimeMax(10) + "\nLast 100 times: " + getSpecifiedTimeMax(100) + "\n" + " AVERAGE TIME:\n" + "All Time: " + getAllTimeAvg() + "\nLast 10 times: " + getSpecifiedTimeAvg(10) + "\nLast 100 times: " + getSpecifiedTimeAvg(100) + "\n" + " MEDIAN TIME:\n" + "All Time: " + getAllTimeMed() + "\nLast 10 times: " + getSpecifiedTimeMed(10) + "\nLast 100 times: " + getSpecifiedTimeMed(100) + "\n" + "______PARTY PLAY______\n" + " 2 PLAYERS:\n" + "Player 1: " + String.valueOf(twoplayers_score.getInt("player1", 0)) + "\nPlayer 2: " + String.valueOf(twoplayers_score.getInt("player2", 0)) + "\n" + " 3 PLAYERS:\n" + "Player 1: " + String.valueOf(threeplayers_score.getInt("player1", 0)) + "\nPlayer 2: " + String.valueOf(threeplayers_score.getInt("player2", 0)) + "\nPlayer 3: " + String.valueOf(threeplayers_score.getInt("player3", 0)) + "\n" + " 4 PLAYERS:\n" + "Player 1: " + String.valueOf(fourplayers_score.getInt("player1", 0)) + "\nPlayer 2: " + String.valueOf(fourplayers_score.getInt("player2", 0)) + "\nPlayer 3: " + String.valueOf(fourplayers_score.getInt("player3", 0)) + "\nPlayer 4: " + String.valueOf(fourplayers_score.getInt("player4", 0)) + "\n"); } }
jtdavids/jtdavids-reflex
jtdavids-reflex/src/main/java/com/example/jake/jtdavids_reflex/StatisticCalc.java
Java
lgpl-3.0
8,131
[ 30522, 1013, 1008, 1063, 1063, 1046, 2102, 30524, 12017, 2023, 2565, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 2007, 2023, 2565, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 1008, 1013, 7427, 4012, 1012, 2742, 1012, 5180, 1012, 1046, 2102, 29045, 9821, 1035, 22259, 1025, 12324, 11924, 1012, 4180, 1012, 4207, 28139, 25523, 2015, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 9140, 9863, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 6407, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 1013, 1008, 1008, 1008, 2580, 2011, 5180, 2006, 2654, 1013, 5641, 1013, 2325, 1012, 1008, 1013, 2270, 2465, 28093, 6553, 9289, 2278, 1063, 2862, 1026, 3313, 1028, 4668, 1035, 2335, 1027, 2047, 9140, 9863, 1026, 3313, 1028, 1006, 1007, 1025, 2270, 28093, 6553, 9289, 2278, 1006, 1007, 1063, 1065, 2270, 11675, 5587, 1006, 3313, 2051, 1007, 1063, 4668, 1035, 2335, 1012, 5587, 1006, 2051, 1007, 1025, 1065, 2270, 11675, 3154, 1006, 1007, 1063, 4668, 1035, 2335, 1012, 3154, 1006, 1007, 1025, 1065, 2270, 5164, 2131, 8095, 7292, 10020, 1006, 1007, 1063, 1013, 1013, 4152, 1996, 6263, 2051, 1997, 2035, 2680, 4668, 2335, 1013, 1013, 2065, 2053, 4668, 2335, 2024, 28667, 19574, 1010, 2709, 1005, 1050, 1013, 1037, 1005, 2065, 1006, 4668, 1035, 2335, 1012, 2946, 1006, 1007, 999, 1027, 1014, 1007, 1063, 3313, 8117, 1027, 4668, 1035, 2335, 1012, 2131, 1006, 4668, 1035, 2335, 1012, 2946, 1006, 1007, 1011, 1015, 1007, 1025, 2005, 1006, 20014, 1045, 1027, 4668, 1035, 2335, 1012, 2946, 1006, 1007, 1011, 1016, 1025, 1045, 1028, 1027, 1014, 1025, 1045, 1011, 1011, 1007, 1063, 2065, 1006, 4668, 1035, 2335, 1012, 2131, 1006, 1045, 1007, 1026, 8117, 1007, 1063, 8117, 1027, 4668, 1035, 2335, 1012, 2131, 1006, 1045, 1007, 1025, 1065, 1065, 2709, 5164, 1012, 3643, 11253, 1006, 8117, 1007, 1025, 1065, 2842, 1063, 2709, 1000, 1050, 1013, 1037, 1000, 1025, 1065, 1065, 2270, 5164, 4152, 5051, 6895, 10451, 7292, 10020, 1006, 20014, 3091, 1007, 1063, 1013, 1013, 4152, 1996, 6263, 4668, 2051, 1997, 1996, 2197, 1060, 9597, 1013, 1013, 1037, 4997, 3643, 2323, 2025, 2022, 2979, 2046, 2023, 4118, 1013, 1013, 2144, 9597, 2024, 8250, 1999, 1037, 2862, 1010, 2442, 2009, 22139, 11043, 2083, 1996, 2862, 1013, 1013, 2000, 12850, 4668, 2335, 1999, 23472, 2344, 2065, 1006, 4668, 1035, 2335, 1012, 30523, 29045, 9821, 1011, 22259, 1065, 1065, 9385, 1006, 1039, 1007, 2325, 5180, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 29045, 9821, 1011, 22259, 1065, 1065, 9385, 1006, 1039, 1007, 2325, 5180, 30526 ]
package towergame.circuits; public class OneTimeOnSingleCircuit extends Circuit{ private boolean solved; public OneTimeOnSingleCircuit(int id) { super(id, 1); } @Override public void doLogic() { if (inputList[0] == true){ this.power = true; this.solved = true; } else { this.power = false; } if (solved == false){ inputList[0] = false; } } }
CS447/TowerGame
src/towergame/circuits/OneTimeOnSingleCircuit.java
Java
gpl-2.0
380
[ 30522, 7427, 3578, 16650, 1012, 13782, 1025, 2270, 2465, 2028, 7292, 5644, 2075, 2571, 6895, 11890, 14663, 8908, 4984, 1063, 2797, 22017, 20898, 13332, 1025, 2270, 2028, 7292, 5644, 2075, 2571, 6895, 11890, 14663, 1006, 20014, 8909, 1007, 1063, 3565, 1006, 8909, 1010, 1015, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 11675, 2079, 27179, 1006, 1007, 1063, 2065, 1006, 7953, 9863, 1031, 1014, 1033, 1027, 1027, 2995, 1007, 1063, 2023, 1012, 2373, 1027, 2995, 1025, 2023, 1012, 13332, 1027, 2995, 1025, 1065, 2842, 1063, 2023, 1012, 2373, 1027, 6270, 1025, 1065, 2065, 1006, 13332, 1027, 1027, 6270, 1007, 1063, 7953, 9863, 1031, 1014, 1033, 1027, 6270, 1025, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
require_relative 'model' Record.where(version: 10606).delete_all
panjia1983/channel_backward
benchmarks/needle_steering/06clear_records6.rb
Ru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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
/** * @param {string} s * @param {string} t * @return {boolean} */ var isIsomorphic = function(s, t) { var s = s.split(''); var t = t.split(''); if (new Set(s).size !== new Set(t).size) return false; var zip = new Set(); s.forEach(function (item, i) { zip.add(s[i] + ' ' + t[i]) }); return new Set(zip).size === new Set(s).size; }; var eq = require('assert').equal; eq(isIsomorphic('egg', 'add'), true); eq(isIsomorphic('egg', 'ddd'), false);
zhiyelee/leetcode
js/isomorphicStrings/isomorphic_strings.js
JavaScript
mit
470
[ 30522, 1013, 1008, 1008, 1008, 1030, 11498, 2213, 1063, 5164, 1065, 1055, 1008, 1030, 11498, 2213, 1063, 5164, 1065, 1056, 1008, 1030, 2709, 1063, 22017, 20898, 1065, 1008, 1013, 13075, 18301, 28503, 1027, 3853, 1006, 1055, 1010, 1056, 1007, 1063, 13075, 1055, 1027, 1055, 1012, 3975, 1006, 1005, 1005, 1007, 1025, 13075, 1056, 1027, 1056, 1012, 3975, 1006, 1005, 1005, 1007, 1025, 2065, 1006, 2047, 2275, 1006, 1055, 1007, 1012, 2946, 999, 1027, 1027, 2047, 2275, 1006, 1056, 1007, 1012, 2946, 1007, 2709, 6270, 1025, 13075, 14101, 1027, 2047, 2275, 1006, 1007, 1025, 1055, 1012, 18921, 6776, 1006, 3853, 1006, 8875, 1010, 1045, 1007, 1063, 14101, 1012, 5587, 1006, 1055, 1031, 1045, 1033, 1009, 1005, 1005, 1009, 1056, 1031, 1045, 1033, 1007, 1065, 1007, 1025, 2709, 2047, 2275, 1006, 14101, 1007, 1012, 2946, 1027, 1027, 1027, 2047, 2275, 1006, 1055, 1007, 1012, 2946, 1025, 1065, 1025, 13075, 1041, 4160, 1027, 5478, 1006, 1005, 20865, 1005, 1007, 1012, 5020, 1025, 1041, 4160, 1006, 18301, 28503, 1006, 1005, 8288, 1005, 1010, 1005, 5587, 1005, 1007, 1010, 2995, 1007, 1025, 1041, 4160, 1006, 18301, 28503, 1006, 1005, 8288, 1005, 1010, 1005, 20315, 2094, 1005, 1007, 1010, 6270, 1007, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
package controllers import java.sql.{Date, SQLType} import java.util import javax.inject._ import models.{AssignmentContact, DatabaseAO, SessionUtils} import play.api.data.Forms._ import play.api.data._ import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.mvc.{Action, Controller} import scala.concurrent.Future /** * Created by karim on 1/25/16. */ @Singleton class Event @Inject() (dao: DatabaseAO) extends Controller { import dao._ import Locations._ import Events._ import Agenda._ import Contacts._ import config.db import config.driver.api._ def index(page: Option[Int],location: Option[Int]) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser val MAXPERPAGE = 10 val l = for {l <- locationsTable.sortBy(_.id)} yield l val et = for {et <- eventTypesTable.sortBy(_.id)} yield et val e = (for { ((e,l),a) <- (eventsTable join location.map(l => locationsTable.filter(_.id === l)).getOrElse(locationsTable) on (_.locationId === _.id)) joinLeft eventAgendaItemsTable on (_._1.id === _.eventId) } yield (e,l,a)).sortBy(_._1.id).groupBy{r => val (e, l, a) = r (e,l) } val eagg = e.map { i => val (el, agg) = i val (e, l) = el (e,l,agg.map(_._3.map(_ => 1).getOrElse(0)).sum) } for { locations <- db.run(l.result) eventTypes <- db.run(et.result) events <- db.run(eagg.sortBy(_._1.date.desc).result) } yield { val prePage = events.map(e => (e._1,e._2,e._3.getOrElse(0))) val total = (prePage.length / MAXPERPAGE) + (if (prePage.length % MAXPERPAGE == 0) 0 else 1) val result = prePage.drop((page.getOrElse(1) - 1) * MAXPERPAGE).take(MAXPERPAGE) Ok(views.html.index("Events")( views.html.aggregator(Seq( views.html.event.list(result,locations,page.getOrElse(1),total,location), views.html.event.add(eventTypes.toList, locations.toList) )) )) } } def get (id: Int) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser val eq = for { e <- eventsTable.filter(_.id === id)} yield e val aiq = for { (ea,at) <- (eventAgendaItemsTable.filter(_.eventId === id) join agendaTypesTable on (_.agendaTypeId === _.id)).sortBy(_._1.id) } yield (ea,at.name) val etq = eventTypesTable.sortBy(_.id) val lq = locationsTable.sortBy(_.id) val atq = for { at <- agendaTypesTable.sortBy(_.id)} yield at (for { e <- db.run(eq.result) ai <- db.run(aiq.result) et <- db.run(etq.result) l <- db.run(lq.result) at <- db.run(atq.result) if e.length > 0 } yield { Ok(views.html.index("Event")( views.html.aggregator(Seq( views.html.event.get(e.head,ai,et,l), views.html.event.addagenda(e.head.id,at) )) )) }) recover { case e:Throwable => { e.printStackTrace() BadRequest } } } def submit = Action.async { implicit request => val form = Form( tuple( "date" -> date("MM-dd-yyyy"), "eventTypeId" -> number, "locationId" -> number ) ) form.bindFromRequest.fold( hasErrors => Future successful BadRequest, eventForm => { val (date, eventTypeId, locationId) = eventForm val sqlDate = new Date(date.getTime()) val etq = for {e <- eventTypesTable.filter(_.id === eventTypeId).take(1)} yield e.name val atq = for {a <- agendaItemsTable.filter(_.eventTypeId === eventTypeId).sortBy(_.id)} yield a (for { etl <- db.run(etq.result) atl <- db.run(atq.result) eventId <- db.run((eventsTable returning eventsTable.map(_.id)) += models.Event(0,eventTypeId, sqlDate,locationId,etl.head,models.EventAttr.State.open)) r <- db.run(eventAgendaItemsTable ++= { val result = ((Seq[models.EventAgendaItem](), 1) /: atl) ( (sc, at) => { val (s,c) = sc (s :+ models.EventAgendaItem(c, eventId.toInt, at.agendaTypeId), c + 1) } ) result._1 } ) if eventId > 0 } yield { Redirect("/event") }) recover { case e:Throwable => { e.printStackTrace() BadRequest } } } ) } def edit (id: Int) = Action.async { implicit request => val form = Form( tuple( "name" -> text, "date" -> date("MM-dd-yyyy"), "eventTypeId" -> number, "locationId" -> number ) ) form.bindFromRequest.fold( hasErrors => { println(hasErrors) Future successful BadRequest}, eventForm => { val (name, date, eventTypeId, locationId) = eventForm val sqlDate = new Date(date.getTime) val eq = for { e <- eventsTable.filter(_.id === id)} yield (e.name, e.date, e.eventTypeId, e.locationId) (db.run(eq.update(name, sqlDate,eventTypeId,locationId)).map { _ => Redirect(routes.Event.get(id).absoluteURL()) }) recover { case e:Throwable => { e.printStackTrace() BadRequest } } } ) } def remove (id: Int) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser val eq = for { e <- eventsTable.filter(_.id === id) } yield e val eaq = (for { ea <- eventAgendaItemsTable.filter(_.eventId === id) } yield ea).countDistinct val aq = (for { a <- eventAgendaItemContactsTable.filter(_.eventId === id)} yield a).countDistinct val q = for { ea <- db.run(eaq.result) a <- db.run(aq.result) } yield { (ea, a) } q.flatMap { qr:(Int,Int) => val (ea, a) = qr var agenda:List[String] = if (ea > 0) {s"$ea Agenda Items" :: Nil} else Nil val eaa:List[String] = if (a > 0) {s"$a Assignments" :: agenda} else agenda eaa match { case Nil => db.run(eq.delete).map { _ => Redirect("/event") } recover { case e:Throwable => { e.printStackTrace() BadRequest } } case _ => Future successful BadRequest(views.html.index("Events")(views.html.message("Cannot delete event", s"Event has ${eaa.mkString(" and ")}. Remove those from event first.")) ) } } } def addagenda (id: Int) = Action.async { implicit request => val form = Form( single( "agendaTypeId" -> number ) ) form.bindFromRequest.fold( hasErrors => Future successful BadRequest, agendaTypeId => ( for { c <- db.run(eventAgendaItemsTable.filter(_.eventId === id).length.result) i <- db.run(eventAgendaItemsTable += models.EventAgendaItem(c + 1,id,agendaTypeId)) } yield { Redirect("/event/" + id) }) recover { case e:Throwable => { e.printStackTrace() BadRequest } } ) } def removeagenda (id: Int, agendaItemId: Int) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser val eacq = (for { eac <- eventAgendaItemContactsTable.filter(eac => eac.eventId === id && eac.id === agendaItemId) } yield eac).countDistinct val q = for { eai <- eventAgendaItemsTable.filter(ea => ea.eventId === id && ea.id >= agendaItemId).sortBy(_.id)} yield eai db.run(eacq.result).flatMap { eac => if (eac > 0) { Future successful BadRequest( views.html.index("Event Agenda")( views.html.message("Cannot delete agenda item",s"Agenda item has $eac contacts assigned. Remove those from agenda item first.") ) ) } else (for { //del <- db.run(q1.delete) update <- for (r <- db.stream(q.mutate.transactionally)) { if (r.row.id == agendaItemId) r.delete else r.row = r.row.copy(id = r.row.id - 1) } } yield { Redirect("/event/" + id) }) recover { case e: Throwable => { e.printStackTrace() BadRequest } } } } def moveagenda (id: Int, oldItemId: Int, newItemId: Int) = Action.async { implicit request => val q1 = for { eai <- eventAgendaItemsTable.filter(ea => ea.eventId === id && ea.id === oldItemId)} yield eai.id val q2 = for { eai <- eventAgendaItemsTable.filter(ea => ea.eventId === id && ea.id === newItemId)} yield eai.id val q3 = for { eai <- eventAgendaItemsTable.filter(ea => ea.eventId === id && ea.id === -oldItemId)} yield eai.id db.run(q1.update(-oldItemId).andThen(q2.update(oldItemId)).andThen(q3.update(newItemId))).map { _ => Redirect("/event/" + id) } recover { case e:Throwable => { e.printStackTrace() BadRequest } } } def assignments (id: Int) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser val eq = for { (e, et) <- eventsTable.filter(_.id === id) join eventTypesTable on (_.eventTypeId === _.id) } yield (e, et) val aiq = (for { (ea,at) <- eventAgendaItemsTable.filter(_.eventId === id) join agendaTypesTable on (_.agendaTypeId === _.id) } yield (ea,at)).sortBy(_._1.id) val cq = (for { (c,eac) <- contactsTable join eventAgendaItemContactsTable.filter(_.eventId === id) on (_.id === _.contactId) } yield (eac.id,c)).sortBy(_._1) (for { e <- db.run(eq.result) ai <- db.run(aiq.result) c <- db.run(cq.result) } yield { if (e.length > 0) { val cmap = collection.mutable.Map[Int,Seq[models.Contact]]() c.foreach( item => { val (idx,contact) = item if (!cmap.contains(idx)) { cmap ++= List(idx -> Seq(contact)) } else { cmap ++= List(idx -> (cmap.get(idx).get :+ contact)) } }) Ok(views.html.index("Event Assignments")(views.html.event.assignments(e.head._1, e.head._2, ai, cmap))) } else NotFound }) recover { case e:Throwable => { e.printStackTrace() BadRequest } } } def getassignments(id: Int, eventAgendaItemId: Int, onlyPrefered: Option[Boolean], search: Option[String], page: Option[Int]) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser val MAXPERPAGE = 20 val age = SimpleFunction.binary[Date,Date,Int]("datediff") val currentDate = SimpleLiteral[Date]("curdate()") val now = new util.Date() val sqlNow = new Date(now.getTime) val eq = for { e <- eventsTable.filter(_.id === id) } yield (e -> age(currentDate, e.date)) val eaq = for { (eai,at) <- eventAgendaItemsTable.filter(eai => eai.id === eventAgendaItemId && eai.eventId === id) join agendaTypesTable on (_.agendaTypeId === _.id) } yield (eai,at) val cpq = (for { (cp,ea) <- contactPreferencesTable join eaq on {(cp,ea) => val (eai,at) = ea cp.agendaTypeId === at.id || cp.agendaTypeId === at.parent.getOrElse(at.id)}} yield (cp.contactId, cp.prefer)).distinct val assignq = for { eac <- eventAgendaItemContactsTable.filter(eac => eac.eventId === id && eac.id === eventAgendaItemId)} yield eac.contactId val historySelfQ = for { (((c,ec),e),h) <- contactsTable join eventAgendaItemContactsTable on (_.id === _.contactId) join eventsTable on (_._2.eventId === _.id) join eventAgendaItemsTable on {(cece,ea) => val ((c,ec),e) = cece ea.id === ec.id && ea.eventId === ec.eventId } } yield (c,e,h) val historySelf = (for { (c,e,h) <- historySelfQ} yield (c.id,e.date)) groupBy(_._1) map { case (cid,agg) => (cid -> agg.map(_._2).max) } val hsAgendaType = for { (((c,e,h),at),agg) <- historySelfQ join agendaTypesTable on (_._3.agendaTypeId === _.id) join historySelf on {(ceh,agg) => val ((c,e,h),at) = ceh val (cid,optDate) = agg optDate.isDefined && optDate === e.date && cid === c.id } } yield (c.id,agg._2.map(d => age(currentDate,d)),at.name,e.id) val historyGroup = (for { (((c1,h),e),c) <- contactsTable join eventAgendaItemContactsTable on (_.id === _.contactId) join eventsTable on (_._2.eventId === _.id) join contactsTable on ((h,c) => h._1._1.id =!= c.id && h._1._1.groupId === c.groupId) } yield (c.id -> e.date) ) groupBy(_._1) map { case (cid,agg) => (cid -> agg.map(_._2).max.map(d => age(currentDate, d))) } val cq = (for { (((c,cp),hs),hg) <- contactsTable joinLeft cpq on (_.id === _._1) joinLeft hsAgendaType on (_._1.id === _._1) joinLeft historyGroup on (_._1._1.id === _._1) } yield (c,hs.map(_._2),hs.map(_._3),hs.map(_._4) ,hg.map(_._2), cp.map(_._2))) sortBy {r => val (c,hs,hsat,hse,hg,cp) = r c.givenName -> c.lastName } (for { e <- db.run(eq.result) ea <- db.run(eaq.result) c <- db.run(cq.result) a <- db.run(assignq.result) } yield { if (e.size > 0 && ea.size > 0){ val (eai, at) = ea.head def flatten(ooStr: Option[Option[Int]]) = ooStr.map(_.getOrElse(0)) def resolveDays(days: Int): String = { val absDays = Math.abs(days) if (absDays == 0) "" else if (absDays < 30) s"$absDays days" else if (absDays < 365) s"${(absDays / 30).toInt} months ${resolveDays(absDays % 30)}" else s"${(absDays / 365).toInt} years ${resolveDays(absDays % 365)}" } def clean(dateDiff: Int) = { if (dateDiff == 0) "Today" else if (dateDiff < 0) s"In ${resolveDays(dateDiff)}" else s"${resolveDays(dateDiff)} ago" } val (_,cFlat) = ((Seq[Int](),Seq[AssignmentContact]()) /: (c map { item => val (contact, hs, hsat,hse, hg, cp) = item AssignmentContact(contact,flatten(hs).map(clean).getOrElse(""),hsat.getOrElse(""),hse.getOrElse(-1),flatten(hg).map(clean).getOrElse(""),cp) })){(c,i) => val (sc,sr) = c //val (contact, hs, hsat,hse, hg, cp) = i if (sc.contains(i.contact.id)) c else (sc :+ i.contact.id, sr :+ i) } val assigned = cFlat.filter(c => a.contains(c.contact.id)) val contacts = cFlat.filter(c => !a.contains(c.contact.id) && onlyPrefered.map(_ => c.optPref.getOrElse(false)).getOrElse(true)). filter(c => search. map(s => c.contact.givenName.toLowerCase.contains(s.toLowerCase) || c.contact.lastName.toLowerCase.contains(s.toLowerCase) || c.contact.groupId.map(g => g.toLowerCase.contains(s.toLowerCase)).getOrElse(false)). getOrElse(true) ) val contactsPaged = contacts.drop((page.getOrElse(1) -1) * MAXPERPAGE).take(MAXPERPAGE) val total = (contacts.length/MAXPERPAGE + (if (contacts.length % MAXPERPAGE > 0) 1 else 0)).toInt Ok(views.html.index("Event Agenda Assignment")(views.html.aggregator(Seq( views.html.event.addassignment(e.head._1,clean(e.head._2),eai,at,assigned,contactsPaged, search,total,page.getOrElse(0),onlyPrefered),views.html.contact.add())))) } else { NotFound } }) recover { case e:Throwable => { e.printStackTrace() BadRequest } } } def assign(id: Int, eaiId: Int, contactId: Int) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser loggedInUser.map { user => (db.run(eventAgendaItemContactsTable += models.EventAgendaItemContact(id = eaiId, eventId = id, contactId = contactId, userId = user.id)).map { _ => Redirect(request.headers.get("referer").getOrElse(routes.Event.assignments(id).absoluteURL())) }) recover { case e: Throwable => { e.printStackTrace() BadRequest } } }.getOrElse(Future successful Unauthorized) } def unassign(id: Int, eaiId: Int, contactId: Int) = Action.async { implicit request => implicit val loggedInUser = SessionUtils.getLoggedInUser loggedInUser.map { _ => val aq = for {eai <- eventAgendaItemContactsTable.filter(eai => eai.eventId === id && eai.id === eaiId && eai.contactId === contactId)} yield eai (db.run(aq.delete).map { _ => Redirect(request.headers.get("referer").getOrElse(routes.Event.assignments(id).absoluteURL())) }) recover { case e: Throwable => { e.printStackTrace() BadRequest } } }.getOrElse(Future successful Unauthorized) } }
jimmy00784/eventorganizer
app/controllers/Event.scala
Scala
lgpl-2.1
16,881
[ 30522, 7427, 21257, 12324, 9262, 30524, 1012, 1035, 12324, 2377, 1012, 17928, 1012, 2951, 1012, 1035, 12324, 2377, 1012, 17928, 1012, 5622, 5910, 1012, 16483, 1012, 7781, 1012, 24655, 2015, 1012, 12398, 8663, 18209, 12324, 2377, 1012, 17928, 1012, 19842, 2278, 1012, 1063, 2895, 1010, 11486, 1065, 12324, 26743, 1012, 16483, 1012, 2925, 1013, 1008, 1008, 1008, 2580, 2011, 25461, 2006, 1015, 1013, 2423, 1013, 2385, 1012, 1008, 1013, 1030, 28159, 2465, 2724, 1030, 1999, 20614, 1006, 1007, 1006, 4830, 2080, 1024, 7809, 7113, 1007, 8908, 11486, 1063, 12324, 4830, 2080, 1012, 1035, 12324, 5269, 1012, 1035, 12324, 2824, 1012, 1035, 12324, 11376, 1012, 1035, 12324, 10402, 1012, 1035, 12324, 9530, 8873, 2290, 1012, 16962, 12324, 9530, 8873, 2290, 1012, 4062, 1012, 17928, 1012, 1035, 13366, 5950, 1006, 3931, 1024, 5724, 1031, 20014, 1033, 1010, 3295, 1024, 5724, 1031, 20014, 1033, 1007, 1027, 2895, 1012, 2004, 6038, 2278, 1063, 24655, 5227, 1027, 1028, 24655, 11748, 26618, 13429, 2121, 1027, 5219, 21823, 4877, 1012, 2131, 21197, 5999, 13429, 2121, 11748, 4098, 4842, 13704, 1027, 2184, 11748, 1048, 1027, 2005, 1063, 1048, 1026, 1011, 5269, 10880, 1012, 4066, 3762, 1006, 1035, 1012, 8909, 1007, 1065, 10750, 1048, 11748, 3802, 1027, 2005, 1063, 3802, 1026, 1011, 2724, 13874, 9153, 3468, 1012, 4066, 3762, 1006, 1035, 1012, 8909, 1007, 1065, 10750, 3802, 11748, 1041, 1027, 1006, 2005, 1063, 1006, 1006, 1041, 1010, 1048, 1007, 1010, 1037, 1007, 1026, 1011, 1006, 2824, 10880, 3693, 3295, 1012, 4949, 1006, 1048, 1027, 1028, 5269, 10880, 1012, 11307, 1006, 1035, 1012, 8909, 1027, 1027, 1027, 1048, 1007, 1007, 1012, 2131, 5686, 4877, 2063, 1006, 5269, 10880, 1007, 2006, 1006, 1035, 1012, 3295, 3593, 1027, 1027, 1027, 1035, 1012, 8909, 1007, 1007, 3693, 2571, 6199, 2724, 4270, 8943, 4221, 5244, 10880, 2006, 1006, 1035, 1012, 1035, 1015, 1012, 8909, 1027, 1027, 1027, 1035, 1012, 2724, 3593, 1007, 1065, 10750, 1006, 1041, 1010, 1048, 1010, 1037, 1007, 1007, 1012, 4066, 3762, 1006, 1035, 1012, 1035, 1015, 1012, 8909, 1007, 1012, 2177, 3762, 1063, 1054, 1027, 1028, 11748, 1006, 1041, 1010, 1048, 1010, 1037, 1007, 1027, 1054, 1006, 1041, 1010, 1048, 1007, 1065, 11748, 19413, 13871, 1027, 1041, 1012, 4949, 1063, 1045, 1027, 1028, 11748, 1006, 3449, 1010, 12943, 2290, 1007, 1027, 1045, 11748, 1006, 1041, 1010, 1048, 1007, 1027, 3449, 1006, 1041, 1010, 1048, 1010, 12943, 2290, 1012, 4949, 1006, 1035, 1012, 1035, 1017, 1012, 4949, 1006, 1035, 1027, 1028, 1015, 1007, 1012, 2131, 5686, 4877, 2063, 1006, 1014, 1007, 1007, 1012, 7680, 1007, 1065, 2005, 1063, 5269, 1026, 1011, 16962, 1012, 2448, 1006, 1048, 1012, 2765, 1007, 2724, 13874, 2015, 1026, 1011, 16962, 1012, 2448, 1006, 3802, 1012, 2765, 1007, 2824, 1026, 1011, 16962, 1012, 2448, 1006, 19413, 13871, 1012, 4066, 3762, 1006, 30523, 1012, 29296, 1012, 1063, 3058, 1010, 29296, 13874, 1065, 12324, 9262, 1012, 21183, 4014, 12324, 9262, 2595, 1012, 1999, 20614, 1012, 1035, 12324, 4275, 1012, 1063, 8775, 8663, 2696, 6593, 1010, 7809, 7113, 1010, 5219, 21823, 4877, 1065, 12324, 2377, 1012, 17928, 1012, 2951, 1012, 3596, 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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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 29296, 1012, 1063, 3058, 1010, 29296, 13874, 1065, 12324, 9262, 1012, 21183, 4014, 12324, 9262, 2595, 1012, 1999, 20614, 1012, 1035, 12324, 4275, 1012, 1063, 8775, 8663, 2696, 6593, 1010, 7809, 7113, 1010, 5219, 21823, 4877, 1065, 12324, 2377, 1012, 17928, 1012, 2951, 1012, 3596, 30526 ]
namespace Blog.Services.Data { using System; using System.Linq; using Blog.Data.Common; using Blog.Data.Models; using Blog.Services.Web; public class JokesService : IJokesService { private readonly IDbRepository<Joke> jokes; private readonly IIdentifierProvider identifierProvider; public JokesService(IDbRepository<Joke> jokes, IIdentifierProvider identifierProvider) { this.jokes = jokes; this.identifierProvider = identifierProvider; } public Joke GetById(string id) { var intId = this.identifierProvider.DecodeId(id); var joke = this.jokes.GetById(intId); return joke; } public IQueryable<Joke> GetRandomJokes(int count) { return this.jokes.All().OrderBy(x => Guid.NewGuid()).Take(count); } } }
Steffkn/ASP.NET
MVC/BlogSystem/Source/Services/Blog.Services.Data/JokesService.cs
C#
mit
899
[ 30522, 3415, 15327, 9927, 1012, 2578, 1012, 2951, 1063, 2478, 2291, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 9927, 1012, 2951, 1012, 2691, 1025, 2478, 9927, 1012, 2951, 1012, 4275, 1025, 2478, 9927, 1012, 2578, 1012, 4773, 1025, 2270, 2465, 13198, 8043, 7903, 2063, 1024, 1045, 5558, 9681, 8043, 7903, 2063, 1063, 2797, 3191, 2239, 2135, 8909, 13578, 6873, 28307, 2100, 1026, 8257, 1028, 13198, 1025, 2797, 3191, 2239, 2135, 2462, 16454, 18095, 21572, 17258, 2121, 8909, 4765, 18095, 21572, 17258, 2121, 1025, 2270, 13198, 8043, 7903, 2063, 1006, 8909, 13578, 6873, 28307, 2100, 1026, 8257, 1028, 13198, 1010, 2462, 16454, 18095, 21572, 17258, 2121, 8909, 4765, 18095, 21572, 17258, 2121, 1007, 1063, 2023, 1012, 13198, 1027, 13198, 1025, 2023, 1012, 8909, 4765, 18095, 21572, 17258, 2121, 1027, 8909, 4765, 18095, 21572, 17258, 2121, 1025, 1065, 2270, 8257, 2131, 3762, 3593, 1006, 5164, 8909, 1007, 1063, 13075, 20014, 3593, 1027, 2023, 1012, 8909, 4765, 18095, 21572, 17258, 2121, 1012, 21933, 3207, 3593, 1006, 8909, 1007, 1025, 13075, 8257, 1027, 2023, 1012, 13198, 1012, 2131, 3762, 3593, 1006, 20014, 3593, 1007, 1025, 2709, 8257, 1025, 1065, 2270, 26264, 13094, 3148, 3468, 1026, 8257, 1028, 2131, 13033, 5358, 5558, 9681, 1006, 20014, 4175, 1007, 1063, 2709, 2023, 1012, 13198, 1012, 2035, 1006, 1007, 1012, 2344, 3762, 30524, 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,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 1060, 1027, 1028, 26458, 2094, 1012, 2047, 25698, 2094, 1006, 1007, 1007, 1012, 2202, 1006, 4175, 1007, 1025, 1065, 1065, 1065, 30526 ]
Wordpress 4.5.3 = 8fdd30960a4499c4e96caf8c5f43d6a2 Wordpress 4.1.13 = 9db7f2e6f8e36b05f7ced5f221e6254b Wordpress 3.8.16 = 9ebe6182b84d541634ded7e953aec282 Wordpress 3.4.2 = d59b6610752b975950f30735688efc36 Wordpress 5.1.1 = 2cde4ea09e0a8414786efdcfda5b9ae4 Wordpress 5.3.1 = 3f2b1e00c430271c6b9e901cc0857800
gohdan/DFC
known_files/hashes/wp-includes/js/tinymce/wp-tinymce.php
PHP
gpl-3.0
308
[ 30522, 2773, 20110, 1018, 1012, 1019, 1012, 1017, 1027, 1022, 2546, 14141, 14142, 2683, 16086, 2050, 22932, 2683, 2683, 2278, 2549, 2063, 2683, 2575, 3540, 2546, 2620, 2278, 2629, 2546, 23777, 2094, 2575, 2050, 2475, 2773, 20110, 1018, 1012, 1015, 1012, 2410, 1027, 1023, 18939, 2581, 2546, 2475, 2063, 2575, 2546, 2620, 2063, 21619, 2497, 2692, 2629, 2546, 2581, 11788, 2629, 2546, 19317, 2487, 2063, 2575, 17788, 2549, 2497, 2773, 20110, 1017, 1012, 1022, 1012, 2385, 1027, 1023, 15878, 2063, 2575, 15136, 2475, 2497, 2620, 2549, 2094, 27009, 16048, 22022, 5732, 2581, 2063, 2683, 22275, 6679, 2278, 22407, 2475, 2773, 20110, 1017, 1012, 1018, 1012, 1016, 1027, 1040, 28154, 2497, 28756, 10790, 23352, 2475, 2497, 2683, 23352, 2683, 12376, 2546, 14142, 2581, 19481, 2575, 2620, 2620, 12879, 2278, 21619, 2773, 20110, 1019, 1012, 1015, 1012, 1015, 1027, 1016, 19797, 2063, 2549, 5243, 2692, 2683, 2063, 2692, 2050, 2620, 23632, 22610, 20842, 12879, 16409, 2546, 2850, 2629, 2497, 2683, 6679, 2549, 2773, 20110, 1019, 1012, 1017, 1012, 1015, 1027, 1017, 2546, 2475, 2497, 2487, 2063, 8889, 2278, 23777, 2692, 22907, 2487, 2278, 2575, 2497, 2683, 2063, 21057, 2487, 9468, 2692, 27531, 2581, 17914, 2692, 102, 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,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.containerservice.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** Defines values for Code. */ public final class Code extends ExpandableStringEnum<Code> { /** Static value Running for Code. */ public static final Code RUNNING = fromString("Running"); /** Static value Stopped for Code. */ public static final Code STOPPED = fromString("Stopped"); /** * Creates or finds a Code from its string representation. * * @param name a name to look for. * @return the corresponding Code. */ @JsonCreator public static Code fromString(String name) { return fromString(name, Code.class); } /** @return known Code values. */ public static Collection<Code> values() { return values(Code.class); } }
Azure/azure-sdk-for-java
sdk/resourcemanagerhybrid/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Code.java
Java
mit
1,061
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 7513, 3840, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 7000, 2104, 1996, 10210, 6105, 1012, 1013, 1013, 3642, 7013, 2011, 7513, 1006, 1054, 1007, 8285, 28533, 3642, 13103, 1012, 7427, 4012, 1012, 24296, 1012, 7692, 24805, 4590, 1012, 16143, 2121, 7903, 2063, 1012, 4275, 1025, 12324, 4012, 1012, 24296, 1012, 4563, 1012, 21183, 4014, 1012, 7818, 3085, 3367, 4892, 2368, 2819, 1025, 12324, 4012, 1012, 5514, 2595, 19968, 1012, 4027, 1012, 5754, 17287, 3508, 1012, 1046, 3385, 16748, 8844, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 3074, 1025, 1013, 1008, 1008, 11859, 5300, 2005, 3642, 1012, 1008, 1013, 2270, 2345, 2465, 3642, 8908, 7818, 3085, 3367, 4892, 2368, 2819, 1026, 3642, 1028, 1063, 1013, 1008, 1008, 10763, 3643, 2770, 2005, 3642, 1012, 1008, 1013, 2270, 10763, 2345, 3642, 2770, 1027, 2013, 3367, 4892, 1006, 1000, 2770, 1000, 1007, 1025, 1013, 1008, 1008, 10763, 3643, 3030, 2005, 3642, 1012, 1008, 1013, 2270, 10763, 2345, 3642, 3030, 1027, 2013, 3367, 4892, 1006, 1000, 3030, 1000, 1007, 1025, 1013, 1008, 1008, 1008, 9005, 30524, 5164, 6630, 1012, 1008, 1008, 1030, 11498, 2213, 2171, 1037, 2171, 2000, 2298, 2005, 1012, 1008, 1030, 2709, 1996, 7978, 3642, 1012, 1008, 1013, 1030, 1046, 3385, 16748, 8844, 2270, 10763, 3642, 2013, 3367, 4892, 1006, 5164, 2171, 1007, 1063, 2709, 2013, 3367, 4892, 1006, 2171, 1010, 3642, 1012, 2465, 1007, 1025, 1065, 1013, 1008, 1008, 1030, 2709, 2124, 3642, 5300, 1012, 1008, 1013, 2270, 10763, 3074, 1026, 3642, 1028, 5300, 1006, 1007, 1063, 2709, 5300, 1006, 3642, 1012, 2465, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2030, 4858, 1037, 3642, 2013, 2049, 30526 ]
module Conratewebshop class ProductsController < ApplicationController helper Btemplater::ApplicationHelper helper Btemplater::IndexHelper helper Btemplater::ShowHelper helper Btemplater::NewHelper helper Btemplater::EditHelper include Btemplater::Tools def show @obj = Conratewebshop::Product.find(params[:id]) end def new @obj = Conratewebshop::Product.new @obj.category_id = params[:category_id] end def create do_create(params, Conratewebshop::Product, conratewebshop.category_path(params[:category_id])) end def edit @obj = Conratewebshop::Product.find(params[:id]) end def update do_update(params, Conratewebshop::Product, conratewebshop.category_path(params[:category_id])) end # def before_save_create(obj) # obj.category_id = params[:category_id] # end def destroy do_destroy(params, Conratewebshop::Product, conratewebshop.category_path(params[:category_id])) end end end
muskovicsnet/conrate
vendor/engines/webshop/app/controllers/conratewebshop/products_controller.rb
Ruby
mit
1,021
[ 30522, 11336, 9530, 11657, 8545, 5910, 18471, 2465, 3688, 8663, 13181, 10820, 1026, 4646, 8663, 13181, 10820, 2393, 2121, 18411, 6633, 15725, 2099, 1024, 1024, 4646, 16001, 4842, 2393, 2121, 18411, 6633, 15725, 2099, 1024, 1024, 5950, 16001, 4842, 2393, 2121, 18411, 6633, 15725, 2099, 1024, 1024, 2265, 16001, 4842, 2393, 2121, 18411, 6633, 15725, 2099, 1024, 1024, 2047, 16001, 4842, 2393, 2121, 18411, 6633, 15725, 2099, 1024, 1024, 13257, 2884, 4842, 2421, 18411, 6633, 15725, 2099, 1024, 1024, 5906, 13366, 2265, 1030, 27885, 3501, 1027, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1012, 2424, 1006, 11498, 5244, 1031, 1024, 8909, 1033, 1007, 2203, 13366, 2047, 1030, 27885, 3501, 1027, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1012, 2047, 1030, 27885, 3501, 1012, 4696, 30524, 11498, 5244, 1031, 1024, 4696, 1035, 8909, 1033, 1007, 1007, 2203, 13366, 10086, 1030, 27885, 3501, 1027, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1012, 2424, 1006, 11498, 5244, 1031, 1024, 8909, 1033, 1007, 2203, 13366, 10651, 2079, 1035, 10651, 1006, 11498, 5244, 1010, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1010, 9530, 11657, 8545, 5910, 18471, 1012, 4696, 1035, 4130, 1006, 11498, 5244, 1031, 1024, 4696, 1035, 8909, 1033, 1007, 1007, 2203, 1001, 13366, 2077, 1035, 3828, 1035, 3443, 1006, 27885, 3501, 1007, 1001, 27885, 3501, 1012, 4696, 1035, 8909, 1027, 11498, 5244, 1031, 1024, 4696, 1035, 8909, 1033, 1001, 2203, 13366, 6033, 2079, 1035, 6033, 1006, 11498, 5244, 1010, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1010, 9530, 11657, 8545, 5910, 18471, 1012, 4696, 1035, 4130, 1006, 11498, 5244, 1031, 1024, 4696, 1035, 8909, 1033, 1007, 1007, 2203, 2203, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1035, 8909, 1027, 11498, 5244, 1031, 1024, 4696, 1035, 8909, 1033, 2203, 13366, 3443, 2079, 1035, 3443, 1006, 11498, 5244, 1010, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1010, 9530, 11657, 8545, 5910, 18471, 1012, 4696, 1035, 4130, 1006, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1035, 8909, 1027, 11498, 5244, 1031, 1024, 4696, 1035, 8909, 1033, 2203, 13366, 3443, 2079, 1035, 3443, 1006, 11498, 5244, 1010, 9530, 11657, 8545, 5910, 18471, 1024, 1024, 4031, 1010, 9530, 11657, 8545, 5910, 18471, 1012, 4696, 1035, 4130, 1006, 30526 ]
#region Copyright // // DotNetNuke® - http://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and // to permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial portions // of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. #endregion using System; namespace Dnn.ExportImport.Dto.Users { public class ExportUser : BasicExportImportDto { public int RowId { get; set; } public int UserId { get; set; } public string Username { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public bool IsSuperUser { get; set; } public int? AffiliateId { get; set; } public string Email { get; set; } public string DisplayName { get; set; } public bool UpdatePassword { get; set; } public string LastIpAddress { get; set; } public bool IsDeletedPortal { get; set; } public int CreatedByUserId { get; set; } //How do we insert this value? public string CreatedByUserName { get; set; }//This could be used to find "CreatedByUserId" public DateTime? CreatedOnDate { get; set; } public int LastModifiedByUserId { get; set; } //How do we insert this value? public string LastModifiedByUserName { get; set; }//This could be used to find "LastModifiedByUserId" public DateTime? LastModifiedOnDate { get; set; } public Guid? PasswordResetToken { get; set; } public DateTime? PasswordResetExpiration { get; set; } } }
RichardHowells/Dnn.Platform
DNN Platform/Modules/DnnExportImportLibrary/Dto/Users/ExportUser.cs
C#
mit
2,486
[ 30522, 1001, 2555, 9385, 1013, 1013, 1013, 1013, 11089, 7159, 11231, 3489, 29656, 1011, 8299, 1024, 1013, 1013, 7479, 1012, 1040, 10695, 6499, 6199, 8059, 1012, 4012, 1013, 1013, 9385, 1006, 1039, 1007, 2526, 1011, 2760, 1013, 1013, 2011, 11089, 7159, 11231, 3489, 3840, 1013, 1013, 1013, 1013, 6656, 2003, 2182, 3762, 4379, 1010, 2489, 1997, 3715, 1010, 2000, 2151, 2711, 11381, 1037, 6100, 1997, 2023, 4007, 1998, 3378, 1013, 1013, 12653, 6764, 1006, 1996, 1000, 4007, 1000, 1007, 1010, 2000, 3066, 1999, 1996, 4007, 2302, 16840, 1010, 2164, 2302, 22718, 1013, 1013, 1996, 2916, 2000, 2224, 1010, 6100, 1010, 19933, 1010, 13590, 1010, 10172, 1010, 16062, 1010, 4942, 13231, 12325, 1010, 1998, 1013, 2030, 5271, 4809, 1997, 1996, 4007, 1010, 1998, 1013, 1013, 2000, 9146, 5381, 2000, 3183, 1996, 4007, 2003, 19851, 2000, 2079, 2061, 1010, 3395, 2000, 1996, 2206, 3785, 1024, 1013, 1013, 1013, 1013, 1996, 2682, 9385, 5060, 1998, 2023, 6656, 5060, 4618, 2022, 2443, 1999, 2035, 4809, 2030, 6937, 8810, 1013, 1013, 1997, 1996, 4007, 1012, 1013, 1013, 1013, 1013, 1996, 4007, 2003, 3024, 1000, 2004, 2003, 1000, 1010, 2302, 10943, 2100, 1997, 2151, 2785, 1010, 4671, 2030, 13339, 1010, 2164, 2021, 2025, 3132, 1013, 1013, 2000, 1996, 10943, 3111, 1997, 6432, 8010, 1010, 10516, 2005, 1037, 3327, 3800, 1998, 2512, 2378, 19699, 23496, 3672, 1012, 1999, 2053, 2724, 4618, 1013, 1013, 1996, 6048, 2030, 9385, 13304, 2022, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 14000, 1010, 3251, 1999, 2019, 2895, 1997, 1013, 1013, 3206, 1010, 17153, 2102, 2030, 4728, 1010, 17707, 2013, 1010, 2041, 1997, 2030, 1999, 4434, 2007, 1996, 4007, 2030, 1996, 2224, 2030, 2060, 1013, 1013, 24069, 1999, 1996, 4007, 1012, 1001, 2203, 23784, 2478, 2291, 1025, 3415, 15327, 1040, 10695, 1012, 9167, 5714, 6442, 1012, 26718, 2080, 1012, 5198, 1063, 2270, 2465, 9167, 20330, 1024, 3937, 10288, 6442, 5714, 6442, 11927, 2080, 1063, 2270, 20014, 5216, 3593, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 5310, 3593, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 5310, 18442, 1063, 2131, 1025, 2275, 1025, 1065, 30524, 2275, 1025, 1065, 2270, 5164, 2197, 18442, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 22017, 2140, 26354, 6279, 21608, 2121, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 1029, 8727, 3593, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 10373, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 4653, 18442, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 22017, 2140, 10651, 15194, 18351, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 5164, 2197, 11514, 4215, 16200, 4757, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 22017, 2140, 2003, 9247, 12870, 18927, 11589, 2389, 1063, 2131, 1025, 2275, 1025, 1065, 2270, 20014, 2580, 3762, 20330, 3593, 1063, 2131, 1025, 2275, 1025, 1065, 1013, 1013, 2129, 2079, 2057, 19274, 2023, 3643, 1029, 2270, 5164, 2580, 3762, 20330, 18442, 1063, 2131, 1025, 2275, 1025, 1065, 1013, 1013, 2023, 2071, 2022, 2109, 2000, 2424, 1000, 2580, 3762, 20330, 3593, 1000, 2270, 3058, 7292, 1029, 2580, 29067, 2618, 30523, 2270, 5164, 2034, 18442, 1063, 2131, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2270, 5164, 2034, 18442, 1063, 2131, 1025, 30526 ]
/* * #%~ * org.overture.ide.core * %% * Copyright (C) 2008 - 2014 Overture * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. * #~% */ package org.overture.ide.core.resources; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import java.util.Vector; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.overture.ide.core.VdmCore; import org.overture.ide.internal.core.ResourceManager; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class ModelBuildPath { final IVdmProject vdmProject; final IProject project; final File modelPathFile; List<IContainer> srcPaths = new Vector<IContainer>(); IContainer output; IContainer library; public ModelBuildPath(IVdmProject project) { this.vdmProject = project; this.project = (IProject) this.vdmProject.getAdapter(IProject.class); IPath base = this.project.getLocation(); base = base.append(".modelpath"); this.modelPathFile = base.toFile(); this.output = this.project.getFolder("generated"); this.library = this.project.getFolder("lib"); parse(); } private boolean hasModelPath() { return this.modelPathFile.exists(); } private IContainer getDefaultModelSrcPath() { return this.project; } public List<IContainer> getModelSrcPaths() { List<IContainer> tmp = new Vector<IContainer>(srcPaths.size()); tmp.addAll(srcPaths); return tmp; } public synchronized IContainer getOutput() { return this.output; } public synchronized IContainer getLibrary() { return this.library; } private synchronized void parse() { if (!hasModelPath()) { srcPaths.add(getDefaultModelSrcPath()); return; } try { File file = this.modelPathFile; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(file); doc.getDocumentElement().normalize(); NodeList nodeLst = doc.getElementsByTagName("modelpathentry"); for (int s = 0; s < nodeLst.getLength(); s++) { Node fstNode = nodeLst.item(s); if (fstNode.getNodeType() == Node.ELEMENT_NODE) { Node kindAttribute = fstNode.getAttributes().getNamedItem("kind"); String kindValue = kindAttribute.getNodeValue(); if (kindValue != null) { if (kindValue.equals("src")) { Node pathAttribute = fstNode.getAttributes().getNamedItem("path"); String pathValue = pathAttribute.getNodeValue(); if(pathValue.equals(".")) { add(getDefaultModelSrcPath()); }else { add(this.project.getFolder(pathValue)); } } else if (kindValue.equals("output")) { Node pathAttribute = fstNode.getAttributes().getNamedItem("path"); String pathValue = pathAttribute.getNodeValue(); output = this.project.getFolder(pathValue); } else if (kindValue.equals("library")) { Node pathAttribute = fstNode.getAttributes().getNamedItem("path"); String pathValue = pathAttribute.getNodeValue(); library = this.project.getFolder(pathValue); } } } } if(srcPaths.isEmpty()) { srcPaths.add(getDefaultModelSrcPath()); } } catch (Exception e) { VdmCore.log("Faild to parse .modelpath file", e); } } public synchronized void setOutput(IContainer container) { this.output = container; } public synchronized void setLibrary(IContainer container) { this.library = container; } public synchronized void add(IContainer container) { if(container instanceof IProject) { srcPaths.clear(); } else if(container instanceof IFolder) { String fullPath = container.getProjectRelativePath().toString(); boolean flag = true; for (IContainer s : srcPaths) { flag = flag && s.getProjectRelativePath().toString().startsWith(fullPath); } if(flag) srcPaths.clear(); } if (!srcPaths.contains(container)) { srcPaths.add(container); } } public synchronized void remove(IContainer container) { if (srcPaths.contains(container)) { srcPaths.remove(container); } } public synchronized boolean contains(IContainer container) { return srcPaths.contains(container); } public synchronized void save() throws CoreException { StringBuffer sb = new StringBuffer(); sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); sb.append("<modelpath>\n"); for (IContainer src : srcPaths) { if (src.getProjectRelativePath().toString().length() > 0) { sb.append("\t<modelpathentry kind=\"src\" path=\"" + src.getProjectRelativePath() + "\"/>\n"); }else if (src instanceof IProject) { sb.append("\t<modelpathentry kind=\"src\" path=\".\"/>\n"); } } if (output != null && output.getProjectRelativePath().toString().length() > 0) { sb.append("\t<modelpathentry kind=\"output\" path=\"" + output.getProjectRelativePath() + "\"/>\n"); } if (library != null && library.getProjectRelativePath().toString().length() > 0) { sb.append("\t<modelpathentry kind=\"library\" path=\"" + library.getProjectRelativePath() + "\"/>\n"); } sb.append("</modelpath>"); PrintWriter out = null; try { FileWriter outFile = new FileWriter(this.modelPathFile); out = new PrintWriter(outFile); out.println(sb.toString()); } catch (IOException e) { VdmCore.log("Faild to save .modelpath file", e); } finally { if (out != null) { out.close(); } } ResourceManager.getInstance().syncBuildPath(vdmProject); } /** * Reload the build path and discard any un-saved changes */ public void reload() { parse(); } }
jmcPereira/overture
ide/core/src/main/java/org/overture/ide/core/resources/ModelBuildPath.java
Java
gpl-3.0
6,618
[ 30522, 1013, 1008, 1008, 1001, 1003, 1066, 1008, 8917, 1012, 25052, 1012, 8909, 2063, 1012, 4563, 1008, 1003, 1003, 1008, 9385, 1006, 1039, 1007, 2263, 1011, 2297, 25052, 1008, 1003, 1003, 1008, 2023, 2565, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 1008, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 1008, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 1008, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 1008, 6105, 2247, 2007, 2023, 2565, 1012, 2065, 2025, 1010, 2156, 1008, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 14246, 2140, 1011, 1017, 1012, 1014, 1012, 16129, 1028, 1012, 1008, 1001, 1066, 1003, 1008, 1013, 7427, 8917, 1012, 25052, 1012, 8909, 2063, 1012, 4563, 1012, 4219, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 15994, 1025, 12324, 9262, 1012, 22834, 1012, 22834, 10288, 24422, 1025, 12324, 9262, 1012, 22834, 1012, 6140, 15994, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 9207, 1025, 12324, 9262, 2595, 1012, 20950, 1012, 11968, 8043, 2015, 1012, 6254, 8569, 23891, 2099, 1025, 12324, 9262, 2595, 1012, 20950, 1012, 11968, 8043, 2015, 1012, 6254, 8569, 23891, 12881, 18908, 10253, 1025, 12324, 8917, 1012, 13232, 1012, 4563, 1012, 4219, 1012, 12696, 18249, 2121, 1025, 12324, 8917, 1012, 13232, 1012, 4563, 1012, 4219, 1012, 2065, 11614, 2121, 1025, 12324, 8917, 1012, 13232, 1012, 4563, 1012, 4219, 1012, 12997, 3217, 20614, 1025, 12324, 8917, 1012, 13232, 1012, 4563, 1012, 2448, 7292, 1012, 4563, 10288, 24422, 1025, 12324, 8917, 1012, 13232, 1012, 4563, 1012, 2448, 7292, 1012, 24531, 2705, 1025, 12324, 8917, 1012, 25052, 1012, 8909, 2063, 1012, 4563, 1012, 1058, 22117, 17345, 1025, 12324, 8917, 1012, 25052, 1012, 8909, 2063, 1012, 4722, 1012, 4563, 1012, 7692, 24805, 4590, 1025, 12324, 8917, 1012, 1059, 2509, 2278, 1012, 14383, 1012, 6254, 1025, 12324, 8917, 1012, 1059, 2509, 2278, 1012, 14383, 1012, 13045, 1025, 12324, 8917, 1012, 1059, 2509, 2278, 1012, 14383, 1012, 13045, 9863, 1025, 2270, 2465, 2944, 8569, 4014, 18927, 8988, 1063, 2345, 4921, 22117, 21572, 20614, 1058, 22117, 21572, 20614, 1025, 2345, 12997, 3217, 20614, 2622, 1025, 2345, 5371, 2944, 15069, 8873, 2571, 1025, 2862, 1026, 12696, 18249, 2121, 1028, 30524, 1025, 12696, 18249, 2121, 6434, 1025, 12696, 18249, 2121, 3075, 1025, 2270, 2944, 8569, 4014, 18927, 8988, 1006, 4921, 22117, 21572, 20614, 2622, 1007, 1063, 2023, 1012, 1058, 22117, 21572, 20614, 1027, 2622, 1025, 30523, 5034, 21906, 8988, 2015, 1027, 2047, 9207, 1026, 12696, 18249, 2121, 1028, 1006, 1007, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5034, 21906, 8988, 2015, 1027, 2047, 9207, 1026, 12696, 18249, 2121, 1028, 1006, 1007, 30526 ]
<?php namespace Taras\Comments\Updates; use Schema; use October\Rain\Database\Updates\Migration; class BuilderTableUpdateTarasCommentsPosts3 extends Migration { public function up() { Schema::table('taras_comments_posts', function($table) { $table->dropColumn('post_id'); }); } public function down() { Schema::table('taras_comments_posts', function($table) { $table->integer('post_id')->nullable(); }); } }
TarasKrava/OctoberCMS-comments-plugin
updates/builder_table_update_taras_comments_posts_3.php
PHP
mit
511
[ 30522, 1026, 1029, 25718, 3415, 15327, 10225, 2015, 1032, 7928, 1032, 14409, 1025, 2224, 8040, 28433, 1025, 2224, 2255, 1032, 4542, 1032, 7809, 1032, 14409, 1032, 9230, 1025, 2465, 12508, 10880, 6279, 13701, 27115, 9363, 20058, 7666, 19894, 2015, 2509, 8908, 9230, 1063, 2270, 3853, 2039, 1006, 1007, 1063, 8040, 28433, 1024, 1024, 2795, 1006, 1005, 10225, 2015, 1035, 7928, 1035, 8466, 1005, 1010, 3853, 1006, 1002, 2795, 1007, 1063, 1002, 2795, 1011, 1028, 4530, 25778, 2819, 2078, 1006, 1005, 2695, 1035, 8909, 1005, 1007, 1025, 1065, 1007, 1025, 1065, 2270, 3853, 2091, 1006, 1007, 1063, 8040, 28433, 1024, 1024, 2795, 1006, 1005, 10225, 2015, 1035, 7928, 1035, 8466, 1005, 1010, 3853, 1006, 1002, 2795, 1007, 1063, 1002, 2795, 1011, 1028, 16109, 1006, 1005, 2695, 1035, 8909, 1005, 1007, 1011, 1028, 19701, 3085, 1006, 1007, 1025, 1065, 1007, 1025, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
package ga; import engine.*; import java.util.*; public class GAPopulation { /* Evolutionary parameters: */ public int size; // size of the population public int ngens; // total number of generations public int currgen; // current generation /* Crossover parameters */ int tournamentK; // size of tournament int elite; // size of elite int immigrant; // number of new random individuals double mutrate; // chance that a mutation will occur double xoverrate; // chance that the xover will occur /* Containers */ public ArrayList<Genome> individual; Genome parent; Trainer T; /* Progress data */ public double[] max_fitness; public double[] avg_fitness; public double[] terminals; // average total number of terminals public double[] bigterminals; // average total number of sig. terminals /** * Initialize and load parameters. * Parameter comp is a node from a previous * scenario, which is used for distance calculations. */ public GAPopulation(Genome comp) { individual = new ArrayList<Genome>(); parent = comp; // reading parameters Parameter param = Parameter.getInstance(); String paramval; paramval = param.getParam("population size"); if (paramval != null) size = Integer.valueOf(paramval); else { System.err.println("\"population size\" not defined on parameter file."); size = 10; } paramval = param.getParam("generation number"); if (paramval != null) ngens = Integer.valueOf(paramval); else { System.err.println("\"generation number\" not defined on parameter file."); ngens = 10; } paramval = param.getParam("tournament K"); if (paramval != null) tournamentK = Integer.valueOf(paramval); else { System.err.println("\"tournament K\" not defined on parameter file."); tournamentK = 5; } paramval = param.getParam("elite size"); if (paramval != null) elite = Integer.valueOf(paramval); else { System.err.println("\"elite size\" not defined on parameter file."); elite = 1; } paramval = param.getParam("immigrant size"); if (paramval != null) immigrant = Integer.valueOf(paramval); else { System.err.println("\"immigrant size\" not defined on parameter file."); immigrant = 0;; } paramval = param.getParam("mutation rate"); if (paramval != null) mutrate = Double.valueOf(paramval); else { System.err.println("\"mutation rate\" not defined on parameter file."); mutrate = 0.01; } paramval = param.getParam("crossover rate"); if (paramval != null) xoverrate = Double.valueOf(paramval); else { System.err.println("\"crossover rate\" not defined on parameter file."); xoverrate = 0.9; } } /** * Initialize the new population and the local * variables. Startd is the target date for the * @param startd */ public void initPopulation(Date startd) { T = new Trainer(startd); currgen = 0; for (int i = 0; i < size; i++) { Genome n = new Genome(); n.init(); individual.add(n); } max_fitness = new double[ngens]; avg_fitness = new double[ngens]; terminals = new double[ngens]; bigterminals = new double[ngens]; } /** * Runs one generation loop * */ public void runGeneration() { eval(); breed(); currgen++; } /** * update the values of the maxfitness/avg fitness/etc * public arrays; */ public void updateStatus() { Parameter p = Parameter.getInstance(); String param = p.getParam("asset treshold"); double tresh = Double.valueOf(param); avg_fitness[currgen-1] = 0; terminals[currgen-1] = 0; bigterminals[currgen-1] = 0; for (int i = 0; i < individual.size(); i++) { avg_fitness[currgen-1] += individual.get(i).fitness; terminals[currgen-1] += individual.get(i).countAsset(0.0); bigterminals[currgen-1] += individual.get(i).countAsset(tresh); } max_fitness[currgen-1] = individual.get(0).fitness; avg_fitness[currgen-1] /= size; terminals[currgen-1] /= size; bigterminals[currgen-1] /= size; } /** * Calculates the fitness value for each individual * in the population. */ public void eval() { for (int i = 0; i < size; i++) { individual.get(i).eval(T); } Collections.sort(individual); } /** * Perform selection, crossover, mutation in * order to create a new population. * * Assumes the eval function has already been * performed. * */ public void breed() { RNG d = RNG.getInstance(); ArrayList<Genome> nextGen = new ArrayList<Genome>(); Genome p1,p2; // elite: (few copied individuals) for (int i = 0; i < elite; i++) { nextGen.add(individual.get(i).copy()); } // immigrant: (usually 0) for (int i = 0; i < immigrant; i++) { Genome n = new Genome(); n.init(); nextGen.add(n); } // crossover: for (int i = 0; i < size - (immigrant + elite); i+=2) { // selection - the selection function should // return copies already. p1 = Tournament(); p2 = Tournament(); // rolls for xover if (d.nextDouble() < xoverrate) { p1.crossover(p2); } // rolls for mutation if (d.nextDouble() < mutrate) p1.mutation(); if (d.nextDouble() < mutrate) p2.mutation(); nextGen.add(p1); nextGen.add(p2); } individual = nextGen; } /** * Select one parent from the population by using * fitness-proportional tournament selection * (eat candidate has a chance proportional to his * fitness of being chosen). * * The function copy the chosen candidate and send * him back. * @return */ public Genome Tournament() { RNG d = RNG.getInstance(); Genome[] list = new Genome[tournamentK]; double[] rank = new double[tournamentK]; double sum = 0.0; double ticket = 0.0; double min = 0.0; /* Selects individuals and removes negative fitness */ for (int i = 0; i < tournamentK; i++) { list[i] = individual.get(d.nextInt(size)); if (list[i].fitness < min) min = list[i].fitness; } /* I'm not sure if this is the best way to * make the proportion between the fitnesses. * Some sort of scaling factor should be put here * to avoit high fitnesses from superdominating. * * But maybe the tournament proccess already guarantees this? */ for (int i = 0; i < tournamentK; i++) { sum += list[i].fitness - min; rank[i] = sum; } ticket = d.nextDouble()*sum; for (int i = 0; i < tournamentK; i++) { if ((ticket) <= rank[i]) return list[i].copy(); } // should never get here System.err.println("x" + ticket + " + " + sum); System.err.println("Warning: MemeTournament - reached unreachable line"); return list[0].copy(); } }
caranha/MTGA-old
code/ga/GAPopulation.java
Java
bsd-3-clause
6,710
[ 30522, 7427, 11721, 1025, 12324, 3194, 1012, 1008, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 1008, 1025, 2270, 2465, 6578, 7361, 9513, 1063, 1013, 1008, 12761, 11709, 1024, 1008, 1013, 2270, 20014, 2946, 1025, 1013, 1013, 2946, 1997, 1996, 2313, 2270, 20014, 12835, 6132, 1025, 1013, 1013, 2561, 2193, 1997, 8213, 2270, 20014, 12731, 12171, 6914, 1025, 1013, 1013, 2783, 4245, 1013, 1008, 16335, 11709, 1008, 1013, 20014, 2977, 2243, 1025, 1013, 1013, 2946, 1997, 2977, 20014, 7069, 1025, 1013, 1013, 2946, 1997, 7069, 20014, 11560, 1025, 1013, 1013, 2193, 1997, 2047, 6721, 3633, 3313, 14163, 6494, 2618, 1025, 1013, 1013, 3382, 2008, 1037, 16221, 2097, 5258, 3313, 1060, 7840, 11657, 1025, 1013, 1013, 3382, 2008, 1996, 1060, 7840, 2097, 5258, 1013, 1008, 16143, 1008, 1013, 2270, 9140, 9863, 1026, 13458, 1028, 3265, 1025, 13458, 6687, 1025, 10365, 1056, 1025, 1013, 1008, 5082, 2951, 1008, 1013, 2270, 3313, 1031, 1033, 4098, 1035, 10516, 1025, 2270, 3313, 1031, 1033, 20704, 2290, 1035, 10516, 1025, 2270, 3313, 1031, 1033, 17703, 1025, 1013, 1013, 2779, 2561, 2193, 1997, 17703, 2270, 3313, 1031, 1033, 2502, 3334, 22311, 4877, 1025, 1013, 1013, 2779, 2561, 2193, 1997, 9033, 2290, 1012, 17703, 30524, 4697, 1998, 7170, 11709, 1012, 1008, 16381, 4012, 2361, 2003, 1037, 13045, 2013, 1037, 3025, 1008, 11967, 1010, 2029, 2003, 2109, 2005, 3292, 16268, 1012, 1008, 1013, 2270, 6578, 7361, 9513, 1006, 13458, 4012, 2361, 1007, 1063, 3265, 1027, 2047, 9140, 9863, 1026, 13458, 1028, 1006, 1007, 1025, 6687, 1027, 4012, 2361, 1025, 1013, 1013, 3752, 11709, 16381, 11498, 2213, 1027, 16381, 1012, 2131, 7076, 26897, 1006, 1007, 1025, 5164, 11498, 2213, 10175, 1025, 11498, 2213, 10175, 1027, 11498, 2213, 1012, 2131, 28689, 2213, 1006, 1000, 2313, 2946, 1000, 1007, 1025, 2065, 1006, 11498, 2213, 10175, 999, 1027, 19701, 1007, 2946, 1027, 16109, 1012, 3643, 11253, 1006, 11498, 2213, 10175, 1007, 1025, 2842, 1063, 2291, 1012, 9413, 2099, 1012, 6140, 19666, 1006, 1000, 1032, 1000, 2313, 2946, 1032, 1000, 2025, 4225, 2006, 16381, 5371, 1012, 1000, 1007, 1025, 2946, 1027, 2184, 1025, 1065, 11498, 2213, 10175, 1027, 11498, 2213, 1012, 2131, 28689, 2213, 1006, 1000, 4245, 2193, 1000, 1007, 1025, 2065, 1006, 11498, 2213, 10175, 999, 1027, 19701, 1007, 12835, 6132, 1027, 16109, 1012, 3643, 11253, 1006, 11498, 2213, 10175, 1007, 1025, 2842, 1063, 2291, 1012, 9413, 2099, 1012, 6140, 19666, 1006, 1000, 1032, 1000, 4245, 2193, 1032, 1000, 2025, 4225, 2006, 16381, 5371, 1012, 1000, 1007, 1025, 12835, 6132, 1027, 2184, 1025, 1065, 11498, 2213, 10175, 1027, 11498, 2213, 1012, 2131, 28689, 2213, 1006, 1000, 2977, 1047, 1000, 1007, 1025, 2065, 1006, 11498, 2213, 10175, 999, 1027, 19701, 1007, 2977, 2243, 1027, 16109, 1012, 3643, 11253, 1006, 11498, 2213, 10175, 1007, 1025, 2842, 1063, 2291, 1012, 9413, 2099, 1012, 6140, 19666, 1006, 1000, 1032, 1000, 2977, 1047, 1032, 1000, 2025, 4225, 2006, 16381, 5371, 1012, 1000, 1007, 1025, 2977, 2243, 1027, 1019, 1025, 1065, 11498, 2213, 10175, 1027, 11498, 2213, 1012, 2131, 28689, 2213, 1006, 1000, 7069, 2946, 30523, 1013, 1008, 1008, 1008, 3988, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 1008, 1008, 1008, 3988, 30526 ]
# AUTOGENERATED FILE FROM balenalib/edge-ubuntu:focal-run ENV NODE_VERSION 14.16.0 ENV YARN_VERSION 1.22.4 RUN buildDeps='curl libatomic1' \ && set -x \ && for key in \ 6A010C5166006599AA17F08146C2130DFD2497F5 \ ; do \ gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ done \ && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ && echo "7212031d7468718d7c8f5e1766380daaabe09d54611675338e7a88a97c3e31b6 node-v$NODE_VERSION-linux-x64.tar.gz" | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$NODE_VERSION-linux-x64.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \ && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && mkdir -p /opt/yarn \ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && npm config set unsafe-perm true -g --unsafe-perm \ && rm -rf /tmp/* CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"] RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@node.sh" \ && echo "Running test-stack@node" \ && chmod +x test-stack@node.sh \ && bash test-stack@node.sh \ && rm -rf test-stack@node.sh RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: Intel 64-bit (x86-64) \nOS: Ubuntu focal \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nNode.js v14.16.0, Yarn v1.22.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && cp /bin/sh /bin/sh.real \ && mv /bin/sh-shim /bin/sh
nghiant2710/base-images
balena-base-images/node/edge/ubuntu/focal/14.16.0/run/Dockerfile
Dockerfile
apache-2.0
2,913
[ 30522, 1001, 8285, 6914, 16848, 5371, 2013, 28352, 8189, 29521, 1013, 3341, 1011, 1057, 8569, 3372, 2226, 1024, 15918, 1011, 2448, 4372, 2615, 13045, 1035, 2544, 2403, 1012, 2385, 1012, 1014, 4372, 2615, 27158, 1035, 2544, 1015, 1012, 2570, 1012, 1018, 2448, 3857, 3207, 4523, 1027, 1005, 15390, 5622, 14479, 22026, 2487, 1005, 1032, 1004, 1004, 2275, 1011, 1060, 1032, 1004, 1004, 2005, 3145, 1999, 1032, 1020, 2050, 24096, 2692, 2278, 22203, 28756, 8889, 26187, 2683, 2683, 11057, 16576, 2546, 2692, 2620, 16932, 2575, 2278, 17465, 14142, 20952, 2094, 18827, 2683, 2581, 2546, 2629, 1032, 1025, 2079, 1032, 14246, 2290, 1011, 1011, 6309, 2121, 6299, 18720, 2361, 1012, 10210, 1012, 3968, 2226, 1011, 1011, 28667, 2615, 1011, 6309, 1000, 1002, 3145, 1000, 1064, 1064, 1032, 14246, 2290, 1011, 1011, 6309, 2121, 6299, 6309, 2121, 6299, 1012, 18720, 2361, 1012, 4012, 1011, 1011, 28667, 2615, 1011, 6309, 1000, 1002, 3145, 1000, 1064, 1064, 1032, 14246, 2290, 1011, 1011, 6309, 2121, 6299, 5292, 1012, 4770, 1012, 15315, 2015, 1011, 6309, 2121, 14028, 1012, 5658, 1011, 1011, 28667, 2615, 1011, 6309, 1000, 1002, 3145, 1000, 1025, 1032, 2589, 1032, 1004, 1004, 26794, 1011, 2131, 10651, 1004, 1004, 26794, 1011, 2131, 16500, 1011, 1061, 1002, 3857, 3207, 4523, 1011, 1011, 2053, 1011, 16500, 1011, 26021, 1032, 1004, 1004, 28549, 1011, 21792, 1013, 13075, 1013, 5622, 2497, 1013, 26794, 1013, 7201, 1013, 1008, 1032, 1004, 1004, 15390, 1011, 22889, 2080, 1000, 8299, 1024, 1013, 1013, 13045, 22578, 1012, 8917, 1013, 4487, 3367, 1013, 1058, 1002, 13045, 1035, 2544, 1013, 13045, 1011, 1058, 1002, 13045, 1035, 2544, 1011, 11603, 1011, 1060, 21084, 1012, 16985, 1012, 1043, 2480, 1000, 1032, 1004, 1004, 9052, 1000, 5824, 12521, 2692, 21486, 2094, 2581, 21472, 2620, 2581, 15136, 2094, 2581, 2278, 2620, 2546, 2629, 2063, 16576, 28756, 22025, 2692, 2850, 11057, 4783, 2692, 2683, 2094, 27009, 2575, 14526, 2575, 23352, 22394, 2620, 2063, 2581, 2050, 2620, 30524, 2509, 2063, 21486, 2497, 2575, 13045, 1011, 1058, 1002, 13045, 1035, 2544, 1011, 11603, 1011, 1060, 21084, 1012, 16985, 1012, 1043, 2480, 1000, 1064, 21146, 17788, 2575, 17421, 1011, 1039, 1011, 1032, 1004, 1004, 16985, 1011, 1060, 2480, 2546, 1000, 13045, 1011, 1058, 1002, 13045, 1035, 2544, 1011, 11603, 1011, 1060, 21084, 1012, 16985, 1012, 1043, 2480, 1000, 1011, 1039, 1013, 2149, 2099, 1013, 2334, 1011, 1011, 6167, 1011, 6177, 1027, 1015, 1032, 1004, 1004, 28549, 1000, 13045, 1011, 1058, 1002, 13045, 1035, 2544, 1011, 11603, 1011, 1060, 21084, 1012, 16985, 1012, 1043, 2480, 1000, 1032, 1004, 1004, 15390, 1011, 1042, 14540, 2080, 1011, 1011, 16620, 1000, 16770, 1024, 1013, 1013, 27158, 2361, 2243, 2290, 1012, 4012, 1013, 22956, 1013, 1002, 27158, 1035, 2544, 1013, 27158, 1011, 1058, 1002, 27158, 1035, 2544, 1012, 16985, 1012, 1043, 2480, 1000, 1032, 1004, 1004, 15390, 1011, 1042, 14540, 2080, 1011, 1011, 16620, 1000, 16770, 1024, 1013, 1013, 27158, 2361, 2243, 2290, 1012, 4012, 1013, 22956, 1013, 1002, 27158, 1035, 2544, 1013, 27158, 1011, 1058, 1002, 27158, 1035, 2544, 1012, 16985, 1012, 1043, 30523, 2620, 2050, 2683, 2581, 2278, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2620, 2050, 2683, 2581, 2278, 30526 ]
// // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2010 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and // to permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial portions // of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. // using System; using DotNetNuke.Entities.Modules; using DotNetNuke.Common.Utilities; using DotNetNuke.Entities.Users; using DotNetNuke.Modules.UserGroups.Components.Controllers; using DotNetNuke.Services.Localization; using Config = DotNetNuke.Modules.UserGroups.Common.Config; namespace DotNetNuke.Modules.UserGroups.Components.Common { public abstract class UserGroupsModuleBase: PortalModuleBase { #region Private Members const string CtlDirectorySearch = "/UserGroupWizard.ascx"; private string _defaultControlToLoad = CtlDirectorySearch; private int _profileUserID = -1; #endregion #region Protected Properties /// <summary> /// IsAuthenticated determines whether the current user is authenticated /// </summary> protected bool IsAuthenticated { get { return (UserId > Null.NullInteger) ? true : false; } } /// <summary> /// /// </summary> public string ControlToLoad { get { if ((string)ViewState["CtlToLoad"] != string.Empty) { _defaultControlToLoad = (string)ViewState["CtlToLoad"]; } return _defaultControlToLoad; } set { _defaultControlToLoad = value; ViewState["CtlToLoad"] = value; } } /// <summary> /// The profile userid is the user currently logged in or the user who is being viewed (by admin/leaders/officers). This only changes from current user if "u" is in URL. /// </summary> public int ProfileUserID { get { if (Request.QueryString["u"] != null) { _profileUserID = Convert.ToInt32(Request.QueryString["u"]); } else { if (UserId > 0) { _profileUserID = UserId; } } return _profileUserID; } set { _profileUserID = value; } } /// <summary> /// The profile user is the user currently logged in or the user who is being viewed (by admin/leaders/officers). This only changes from current user if "u" is in URL. /// </summary> public UserInfo ProfileUser { get { //return Entities.Users.UserController.GetCachedUser(PortalId, ProfileUser.Username); return UserController.GetUserById(PortalId, ProfileUserID); } } /// <summary> /// /// </summary> public string ProfileUserAlias { get { var userAlias = Config.NameFormat(ModuleId) == "DisplayName" ? ProfileUser.DisplayName : ProfileUser.Username; return userAlias; } } /// <summary> /// /// </summary> public int ProfileUsersGroupID { get { var groupID = -1; var cntUgUser = new UserGroupUserController(); var objMember = cntUgUser.GetCachedMember(ProfileUserID, PortalId); if (objMember != null) { groupID = objMember.UserGroupID; } return groupID; } } public int CurrentUsersGroupID { get { var groupID = -1; var cntUgUser = new UserGroupUserController(); var objMember = cntUgUser.GetCachedMember(UserId, PortalId); if (objMember != null) { groupID = objMember.UserGroupID; } return groupID; } } /// <summary> /// /// </summary> /// <returns></returns> public bool ProfileUserIsOfficer { get { var cntUserGroup = new UserGroupUserController(); var objMember = cntUserGroup.GetCachedMember(ProfileUserID, PortalId); if (objMember != null) { var cntGroup = new UserGroupController(); var objGroup = cntGroup.GetCachedUserGroup(ProfileUserID, PortalId); if (objGroup != null) { return objGroup.LeaderID == ProfileUserID || objMember.Officer; } } return false; } } /// <summary> /// /// </summary> /// <returns></returns> public bool CurrentUserIsOfficer { get { var cntUserGroup = new UserGroupUserController(); var objMember = cntUserGroup.GetCachedMember(UserId, PortalId); if (objMember != null) { var cntGroup = new UserGroupController(); var objGroup = cntGroup.GetCachedUserGroup(UserId, PortalId); if (objGroup != null) { return objGroup.LeaderID == ProfileUserID || objMember.Officer; } } return false; } } #endregion /// <summary> /// GetLocalizedString is a helper method that localizes a string /// </summary> /// <param name="key">The localization key that represents the message</param> /// <returns>The localized string</returns> protected string GetLocalizedString(string key) { return Localization.GetString(key, LocalResourceFile); } } }
DNNCommunity/DNNUserGroups
Components/Common/UserGroupsModuleBase.cs
C#
mit
5,714
[ 30522, 1013, 1013, 1013, 1013, 11089, 7159, 11231, 3489, 29656, 1011, 8299, 1024, 1013, 1013, 7479, 1012, 11089, 7159, 11231, 3489, 1012, 4012, 1013, 1013, 9385, 1006, 1039, 1007, 2526, 1011, 2230, 1013, 1013, 2011, 11089, 7159, 11231, 3489, 3840, 1013, 1013, 1013, 1013, 6656, 2003, 2182, 3762, 4379, 1010, 2489, 1997, 3715, 1010, 2000, 2151, 2711, 11381, 1037, 6100, 1997, 2023, 4007, 1998, 3378, 1013, 1013, 12653, 6764, 1006, 1996, 1000, 4007, 1000, 1007, 1010, 2000, 3066, 1999, 1996, 4007, 2302, 16840, 1010, 2164, 2302, 22718, 1013, 1013, 1996, 2916, 2000, 2224, 1010, 6100, 1010, 19933, 1010, 13590, 1010, 10172, 1010, 16062, 1010, 4942, 13231, 12325, 1010, 1998, 1013, 2030, 5271, 4809, 1997, 1996, 4007, 1010, 1998, 1013, 1013, 2000, 9146, 5381, 2000, 3183, 1996, 4007, 2003, 19851, 2000, 2079, 2061, 1010, 3395, 2000, 1996, 2206, 3785, 1024, 1013, 1013, 1013, 1013, 1996, 2682, 9385, 5060, 1998, 2023, 6656, 5060, 4618, 2022, 2443, 1999, 2035, 4809, 2030, 6937, 8810, 1013, 1013, 1997, 1996, 4007, 1012, 1013, 1013, 1013, 1013, 1996, 4007, 2003, 3024, 1000, 2004, 2003, 1000, 1010, 2302, 10943, 2100, 1997, 2151, 2785, 1010, 4671, 2030, 13339, 1010, 2164, 2021, 2025, 3132, 1013, 1013, 2000, 1996, 10943, 3111, 1997, 6432, 8010, 1010, 10516, 2005, 1037, 3327, 3800, 1998, 2512, 2378, 19699, 23496, 3672, 1012, 1999, 2053, 2724, 4618, 1013, 1013, 1996, 6048, 2030, 9385, 13304, 2022, 20090, 2005, 2151, 4366, 1010, 12394, 2030, 2060, 14000, 1010, 3251, 1999, 2019, 2895, 1997, 1013, 1013, 3206, 1010, 17153, 2102, 2030, 4728, 1010, 17707, 2013, 1010, 2041, 1997, 2030, 1999, 4434, 2007, 1996, 4007, 2030, 1996, 2224, 2030, 2060, 1013, 1013, 24069, 1999, 1996, 4007, 1012, 1013, 1013, 2478, 2291, 1025, 2478, 11089, 7159, 11231, 3489, 1012, 11422, 1012, 14184, 1025, 2478, 11089, 7159, 11231, 3489, 1012, 2691, 1012, 16548, 1025, 2478, 11089, 7159, 11231, 3489, 1012, 11422, 1012, 5198, 1025, 2478, 11089, 7159, 11231, 3489, 1012, 14184, 1012, 5310, 17058, 2015, 1012, 6177, 1012, 21257, 1025, 2478, 11089, 7159, 11231, 3489, 1012, 2578, 1012, 2334, 3989, 1025, 2478, 9530, 8873, 2290, 1027, 11089, 7159, 11231, 3489, 1012, 14184, 1012, 5310, 17058, 2015, 1012, 2691, 1012, 9530, 8873, 2290, 1025, 3415, 15327, 11089, 7159, 11231, 3489, 1012, 14184, 1012, 5310, 17058, 2015, 1012, 6177, 1012, 2691, 1063, 2270, 10061, 2465, 5310, 17058, 25855, 8566, 2571, 15058, 1024, 9445, 5302, 8566, 2571, 15058, 1063, 1001, 2555, 2797, 2372, 9530, 3367, 5164, 14931, 6392, 7442, 16761, 23274, 2906, 2818, 1027, 1000, 1013, 5310, 17058, 9148, 26154, 1012, 2004, 2278, 2595, 1000, 1025, 30524, 1011, 1015, 1025, 1001, 2203, 23784, 1001, 2555, 5123, 5144, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 18061, 14317, 4765, 17872, 16463, 3251, 1996, 2783, 5310, 2003, 14469, 4383, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 5123, 22017, 2140, 18061, 14317, 4765, 17872, 1063, 2131, 1063, 2709, 1006, 5310, 3593, 1028, 19701, 1012, 19701, 30523, 2797, 5164, 1035, 12398, 8663, 13181, 23223, 11066, 1027, 14931, 6392, 7442, 16761, 23274, 2906, 2818, 1025, 2797, 20014, 1035, 6337, 20330, 3593, 1027, 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, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2797, 5164, 1035, 12398, 8663, 13181, 23223, 11066, 1027, 14931, 6392, 7442, 16761, 23274, 2906, 2818, 1025, 2797, 20014, 1035, 6337, 20330, 3593, 1027, 30526 ]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" content="Copy to clipboard"> <meta name="lang:clipboard.copied" content="Copied to clipboard"> <meta name="lang:search.language" content="en"> <meta name="lang:search.pipeline.stopwords" content="True"> <meta name="lang:search.pipeline.trimmer" content="True"> <meta name="lang:search.result.none" content="No matching documents"> <meta name="lang:search.result.one" content="1 matching document"> <meta name="lang:search.result.other" content="# matching documents"> <meta name="lang:search.tokenizer" content="[\s\-]+"> <link href="https://fonts.gstatic.com/" rel="preconnect" crossorigin> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700|Roboto:300,400,400i,700&display=fallback" rel="stylesheet"> <style> body, input { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif } code, kbd, pre { font-family: "Roboto Mono", "Courier New", Courier, monospace } </style> <link rel="stylesheet" href="../_static/stylesheets/application.css"/> <link rel="stylesheet" href="../_static/stylesheets/application-palette.css"/> <link rel="stylesheet" href="../_static/stylesheets/application-fixes.css"/> <link rel="stylesheet" href="../_static/fonts/material-icons.css"/> <meta name="theme-color" content="#3f51b5"> <script src="../_static/javascripts/modernizr.js"></script> <title>statsmodels.genmod.cov_struct.Exchangeable.update &#8212; statsmodels</title> <link rel="icon" type="image/png" sizes="32x32" href="../_static/icons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="../_static/icons/favicon-16x16.png"> <link rel="manifest" href="../_static/icons/site.webmanifest"> <link rel="mask-icon" href="../_static/icons/safari-pinned-tab.svg" color="#919191"> <meta name="msapplication-TileColor" content="#2b5797"> <meta name="msapplication-config" content="../_static/icons/browserconfig.xml"> <link rel="stylesheet" href="../_static/stylesheets/examples.css"> <link rel="stylesheet" href="../_static/stylesheets/deprecation.css"> <link rel="stylesheet" type="text/css" href="../_static/pygments.css" /> <link rel="stylesheet" type="text/css" href="../_static/material.css" /> <link rel="stylesheet" type="text/css" href="../_static/graphviz.css" /> <link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" /> <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> <link rel="shortcut icon" href="../_static/favicon.ico"/> <link rel="author" title="About these documents" href="../about.html" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="statsmodels.genmod.cov_struct.GlobalOddsRatio" href="statsmodels.genmod.cov_struct.GlobalOddsRatio.html" /> <link rel="prev" title="statsmodels.genmod.cov_struct.Exchangeable.summary" href="statsmodels.genmod.cov_struct.Exchangeable.summary.html" /> </head> <body dir=ltr data-md-color-primary=indigo data-md-color-accent=blue> <svg class="md-svg"> <defs data-children-count="0"> <svg xmlns="http://www.w3.org/2000/svg" width="416" height="448" viewBox="0 0 416 448" id="__github"><path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19T128 352t-18.125-8.5-10.75-19T96 304t3.125-20.5 10.75-19T128 256t18.125 8.5 10.75 19T160 304zm160 0q0 10-3.125 20.5t-10.75 19T288 352t-18.125-8.5-10.75-19T256 304t3.125-20.5 10.75-19T288 256t18.125 8.5 10.75 19T320 304zm40 0q0-30-17.25-51T296 232q-10.25 0-48.75 5.25Q229.5 240 208 240t-39.25-2.75Q130.75 232 120 232q-29.5 0-46.75 21T56 304q0 22 8 38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0 37.25-1.75t35-7.375 30.5-15 20.25-25.75T360 304zm56-44q0 51.75-15.25 82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5T212 416q-19.5 0-35.5-.75t-36.875-3.125-38.125-7.5-34.25-12.875T37 371.5t-21.5-28.75Q0 312 0 260q0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25 30.875Q171.5 96 212 96q37 0 70 8 26.25-20.5 46.75-30.25T376 64q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34 99.5z"/></svg> </defs> </svg> <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer"> <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search"> <label class="md-overlay" data-md-component="overlay" for="__drawer"></label> <a href="#generated/statsmodels.genmod.cov_struct.Exchangeable.update" tabindex="1" class="md-skip"> Skip to content </a> <header class="md-header" data-md-component="header"> <nav class="md-header-nav md-grid"> <div class="md-flex navheader"> <div class="md-flex__cell md-flex__cell--shrink"> <a href="../index.html" title="statsmodels" class="md-header-nav__button md-logo"> <img src="../_static/statsmodels-logo-v2-bw.svg" height="26" alt="statsmodels logo"> </a> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label> </div> <div class="md-flex__cell md-flex__cell--stretch"> <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title"> <span class="md-header-nav__topic">statsmodels v0.13.0</span> <span class="md-header-nav__topic"> statsmodels.genmod.cov_struct.Exchangeable.update </span> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label> <div class="md-search" data-md-component="search" role="dialog"> <label class="md-search__overlay" for="__search"></label> <div class="md-search__inner" role="search"> <form class="md-search__form" action="../search.html" method="get" name="search"> <input type="text" class="md-search__input" name="q" placeholder="Search" autocapitalize="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active"> <label class="md-icon md-search__icon" for="__search"></label> <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1"> &#xE5CD; </button> </form> <div class="md-search__output"> <div class="md-search__scrollwrap" data-md-scrollfix> <div class="md-search-result" data-md-component="result"> <div class="md-search-result__meta"> Type to start searching </div> <ol class="md-search-result__list"></ol> </div> </div> </div> </div> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <div class="md-header-nav__source"> <a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github"> <div class="md-source__icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28"> <use xlink:href="#__github" width="24" height="24"></use> </svg> </div> <div class="md-source__repository"> statsmodels </div> </a> </div> </div> <script src="../_static/javascripts/version_dropdown.js"></script> <script> var json_loc = "../../versions-v2.json", target_loc = "../../", text = "Versions"; $( document ).ready( add_version_dropdown(json_loc, target_loc, text)); </script> </div> </nav> </header> <div class="md-container"> <nav class="md-tabs" data-md-component="tabs"> <div class="md-tabs__inner md-grid"> <ul class="md-tabs__list"> <li class="md-tabs__item"><a href="../user-guide.html" class="md-tabs__link">User Guide</a></li> <li class="md-tabs__item"><a href="../gee.html" class="md-tabs__link">Generalized Estimating Equations</a></li> <li class="md-tabs__item"><a href="statsmodels.genmod.cov_struct.Exchangeable.html" class="md-tabs__link">statsmodels.genmod.cov_struct.Exchangeable</a></li> </ul> </div> </nav> <main class="md-main"> <div class="md-main__inner md-grid" data-md-component="container"> <div class="md-sidebar md-sidebar--primary" data-md-component="navigation"> <div class="md-sidebar__scrollwrap"> <div class="md-sidebar__inner"> <nav class="md-nav md-nav--primary" data-md-level="0"> <label class="md-nav__title md-nav__title--site" for="__drawer"> <a href="../index.html" title="statsmodels" class="md-nav__button md-logo"> <img src="../_static/statsmodels-logo-v2-bw.svg" alt=" logo" width="48" height="48"> </a> <a href="../index.html" title="statsmodels">statsmodels v0.13.0</a> </label> <div class="md-nav__source"> <a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github"> <div class="md-source__icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28"> <use xlink:href="#__github" width="24" height="24"></use> </svg> </div> <div class="md-source__repository"> statsmodels </div> </a> </div> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../install.html" class="md-nav__link">Installing statsmodels</a> </li> <li class="md-nav__item"> <a href="../gettingstarted.html" class="md-nav__link">Getting started</a> </li> <li class="md-nav__item"> <a href="../user-guide.html" class="md-nav__link">User Guide</a> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../user-guide.html#background" class="md-nav__link">Background</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#regression-and-linear-models" class="md-nav__link">Regression and Linear Models</a> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../regression.html" class="md-nav__link">Linear Regression</a> </li> <li class="md-nav__item"> <a href="../glm.html" class="md-nav__link">Generalized Linear Models</a> </li> <li class="md-nav__item"> <a href="../gee.html" class="md-nav__link">Generalized Estimating Equations</a> </li> <li class="md-nav__item"> <a href="../gam.html" class="md-nav__link">Generalized Additive Models (GAM)</a> </li> <li class="md-nav__item"> <a href="../rlm.html" class="md-nav__link">Robust Linear Models</a> </li> <li class="md-nav__item"> <a href="../mixed_linear.html" class="md-nav__link">Linear Mixed Effects Models</a> </li> <li class="md-nav__item"> <a href="../discretemod.html" class="md-nav__link">Regression with Discrete Dependent Variable</a> </li> <li class="md-nav__item"> <a href="../mixed_glm.html" class="md-nav__link">Generalized Linear Mixed Effects Models</a> </li> <li class="md-nav__item"> <a href="../anova.html" class="md-nav__link">ANOVA</a> </li> <li class="md-nav__item"> <a href="../other_models.html" class="md-nav__link">Other Models <code class="xref py py-mod docutils literal notranslate"><span class="pre">othermod</span></code></a> </li></ul> </li> <li class="md-nav__item"> <a href="../user-guide.html#time-series-analysis" class="md-nav__link">Time Series Analysis</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#other-models" class="md-nav__link">Other Models</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#statistics-and-tools" class="md-nav__link">Statistics and Tools</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#data-sets" class="md-nav__link">Data Sets</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#sandbox" class="md-nav__link">Sandbox</a> </li></ul> </li> <li class="md-nav__item"> <a href="../examples/index.html" class="md-nav__link">Examples</a> </li> <li class="md-nav__item"> <a href="../api.html" class="md-nav__link">API Reference</a> </li> <li class="md-nav__item"> <a href="../about.html" class="md-nav__link">About statsmodels</a> </li> <li class="md-nav__item"> <a href="../dev/index.html" class="md-nav__link">Developer Page</a> </li> <li class="md-nav__item"> <a href="../release/index.html" class="md-nav__link">Release Notes</a> </li> </ul> </nav> </div> </div> </div> <div class="md-sidebar md-sidebar--secondary" data-md-component="toc"> <div class="md-sidebar__scrollwrap"> <div class="md-sidebar__inner"> <nav class="md-nav md-nav--secondary"> <ul class="md-nav__list" data-md-scrollfix=""> <li class="md-nav__item"><a class="md-nav__extra_link" href="../_sources/generated/statsmodels.genmod.cov_struct.Exchangeable.update.rst.txt">Show Source</a> </li> <li id="searchbox" class="md-nav__item"></li> </ul> </nav> </div> </div> </div> <div class="md-content"> <article class="md-content__inner md-typeset" role="main"> <h1 id="generated-statsmodels-genmod-cov-struct-exchangeable-update--page-root">statsmodels.genmod.cov_struct.Exchangeable.update<a class="headerlink" href="#generated-statsmodels-genmod-cov-struct-exchangeable-update--page-root" title="Permalink to this headline">¶</a></h1> <dl class="py method"> <dt class="sig sig-object py" id="statsmodels.genmod.cov_struct.Exchangeable.update"> <span class="sig-prename descclassname"><span class="pre">Exchangeable.</span></span><span class="sig-name descname"><span class="pre">update</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">params</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/statsmodels/genmod/cov_struct.html#Exchangeable.update"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#statsmodels.genmod.cov_struct.Exchangeable.update" title="Permalink to this definition">¶</a></dt> <dd><p>Update the association parameter values based on the current regression coefficients.</p> <dl class="field-list"> <dt class="field-odd">Parameters</dt> <dd class="field-odd"><dl> <dt><strong>params</strong><span class="classifier"><a class="reference external" href="https://numpy.org/doc/stable/glossary.html#term-array_like" title="(in NumPy v1.21)"><span>array_like</span></a></span></dt><dd><p>Working values for the regression parameters.</p> </dd> </dl> </dd> </dl> </dd></dl> </article> </div> </div> </main> </div> <footer class="md-footer"> <div class="md-footer-nav"> <nav class="md-footer-nav__inner md-grid"> <a href="statsmodels.genmod.cov_struct.Exchangeable.summary.html" title="statsmodels.genmod.cov_struct.Exchangeable.summary" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev"> <div class="md-flex__cell md-flex__cell--shrink"> <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i> </div> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"> <span class="md-flex__ellipsis"> <span class="md-footer-nav__direction"> Previous </span> statsmodels.genmod.cov_struct.Exchangeable.summary </span> </div> </a> <a href="statsmodels.genmod.cov_struct.GlobalOddsRatio.html" title="statsmodels.genmod.cov_struct.GlobalOddsRatio" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next"> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"><span class="md-flex__ellipsis"> <span class="md-footer-nav__direction"> Next </span> statsmodels.genmod.cov_struct.GlobalOddsRatio </span> </div> <div class="md-flex__cell md-flex__cell--shrink"><i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i> </div> </a> </nav> </div> <div class="md-footer-meta md-typeset"> <div class="md-footer-meta__inner md-grid"> <div class="md-footer-copyright"> <div class="md-footer-copyright__highlight"> &#169; Copyright 2009-2019, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers. </div> Last updated on Oct 06, 2021. <br/> Created using <a href="http://www.sphinx-doc.org/">Sphinx</a> 4.0.3. and <a href="https://github.com/bashtage/sphinx-material/">Material for Sphinx</a> </div> </div> </div> </footer> <script src="../_static/javascripts/application.js"></script> <script>app.initialize({version: "1.0.4", url: {base: ".."}})</script> </body> </html>
statsmodels/statsmodels.github.io
v0.13.0/generated/statsmodels.genmod.cov_struct.Exchangeable.update.html
HTML
bsd-3-clause
18,859
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1013, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1012, 1014, 1000, 1013, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1000, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 1060, 1011, 25423, 1011, 11892, 1000, 4180, 1027, 1000, 29464, 1027, 3341, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 12528, 6277, 1012, 6100, 1000, 4180, 1027, 1000, 6100, 2000, 12528, 6277, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 12528, 6277, 1012, 15826, 1000, 4180, 1027, 1000, 15826, 2000, 12528, 6277, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 2653, 1000, 4180, 1027, 1000, 4372, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 13117, 1012, 2644, 22104, 1000, 4180, 1027, 1000, 2995, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 13117, 1012, 12241, 5017, 1000, 4180, 1027, 1000, 2995, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 2765, 1012, 3904, 1000, 4180, 1027, 1000, 2053, 9844, 5491, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 2765, 1012, 2028, 1000, 4180, 1027, 1000, 1015, 9844, 6254, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 2765, 1012, 2060, 1000, 4180, 1027, 1000, 1001, 9844, 5491, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 11374, 1024, 3945, 1012, 19204, 17629, 1000, 4180, 1027, 1000, 1031, 1032, 1055, 1032, 1011, 1033, 1009, 1000, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 16770, 1024, 1013, 1013, 15489, 2015, 1012, 28177, 29336, 2594, 1012, 4012, 1013, 1000, 2128, 2140, 1027, 1000, 3653, 8663, 2638, 6593, 1000, 2892, 10050, 11528, 1028, 1026, 4957, 17850, 12879, 1027, 1000, 16770, 1024, 1013, 1013, 15489, 2015, 1012, 8224, 9331, 2483, 1012, 4012, 1013, 20116, 2015, 1029, 2155, 1027, 8957, 2080, 1009, 18847, 1024, 4278, 1010, 3156, 1010, 6352, 1064, 8957, 2080, 1024, 3998, 1010, 4278, 1010, 4278, 2072, 1010, 6352, 1004, 4653, 1027, 2991, 30524, 1010, 7953, 1063, 15489, 1011, 2155, 1024, 1000, 8957, 2080, 1000, 1010, 1000, 2002, 2140, 19510, 5555, 27713, 1000, 1010, 2002, 2140, 19510, 5555, 1010, 9342, 2140, 1010, 20344, 1011, 14262, 10128, 1065, 3642, 1010, 21677, 2094, 1010, 3653, 1063, 15489, 1011, 2155, 1024, 1000, 8957, 2080, 18847, 1000, 1010, 1000, 18092, 2047, 1000, 1010, 18092, 1010, 18847, 23058, 1065, 1026, 1013, 2806, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1035, 10763, 1013, 6782, 21030, 3215, 1013, 4646, 1012, 20116, 2015, 1000, 1013, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 30523, 5963, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1028, 1026, 2806, 1028, 2303, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 5963, 1000, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 1028, 1026, 2806, 1028, 2303, 30526 ]
package com.davidbracewell.apollo.linear.sparse; import com.davidbracewell.apollo.linear.NDArray; import com.davidbracewell.apollo.linear.NDArrayFactory; import org.apache.mahout.math.function.IntDoubleProcedure; import org.apache.mahout.math.list.IntArrayList; import org.apache.mahout.math.map.OpenIntFloatHashMap; /** * @author David B. Bracewell */ public class SparseFloatNDArray extends SparseNDArray { private static final long serialVersionUID = 1L; private final OpenIntFloatHashMap storage = new OpenIntFloatHashMap(); public SparseFloatNDArray(int nRows, int nCols) { super(nRows, nCols); } @Override protected double adjustOrPutValue(int index, double amount) { return storage.adjustOrPutValue(index, (float) amount, (float) amount); } @Override public NDArray compress() { storage.trimToSize(); return this; } @Override protected void forEachPair(IntDoubleProcedure procedure) { storage.forEachPair((index, value) -> { procedure.apply(index, value); return true; }); } @Override public double get(int index) { return storage.get(index); } @Override public NDArrayFactory getFactory() { return NDArrayFactory.SPARSE_FLOAT; } @Override protected IntArrayList nonZeroIndexes() { return storage.keys(); } @Override protected void removeIndex(int index) { storage.removeKey(index); } @Override protected void setValue(int index, double value) { storage.put(index, (float) value); } @Override public int size() { return storage.size(); } }//END OF SparseFloatNDArray
dbracewell/apollo
src/main/java/com/davidbracewell/apollo/linear/sparse/SparseFloatNDArray.java
Java
apache-2.0
1,674
[ 30522, 7427, 4012, 1012, 2585, 10024, 3401, 4381, 1012, 9348, 1012, 7399, 1012, 20288, 1025, 12324, 4012, 1012, 2585, 10024, 3401, 4381, 1012, 9348, 1012, 7399, 1012, 1050, 7662, 9447, 1025, 12324, 4012, 1012, 2585, 10024, 3401, 4381, 1012, 9348, 1012, 7399, 1012, 1050, 7662, 9447, 21450, 1025, 12324, 8917, 1012, 15895, 1012, 5003, 6806, 4904, 1012, 8785, 1012, 3853, 1012, 20014, 26797, 3468, 21572, 11788, 5397, 1025, 12324, 8917, 1012, 15895, 1012, 5003, 6806, 4904, 1012, 8785, 1012, 2862, 1012, 20014, 2906, 9447, 9863, 1025, 12324, 8917, 1012, 15895, 1012, 5003, 6806, 4904, 1012, 8785, 1012, 4949, 1012, 2330, 18447, 10258, 16503, 14949, 22444, 2361, 1025, 1013, 1008, 1008, 1008, 1030, 3166, 2585, 1038, 1012, 17180, 4381, 1008, 1013, 2270, 2465, 20288, 10258, 16503, 8943, 11335, 2100, 8908, 20288, 8943, 11335, 2100, 1063, 2797, 10763, 2345, 2146, 7642, 27774, 21272, 1027, 1015, 2140, 1025, 2797, 2345, 2330, 18447, 10258, 16503, 14949, 22444, 2361, 5527, 1027, 2047, 2330, 18447, 10258, 16503, 14949, 22444, 2361, 1006, 1007, 1025, 2270, 20288, 10258, 16503, 8943, 11335, 2100, 1006, 20014, 17212, 15568, 1010, 20014, 13316, 27896, 1007, 1063, 3565, 1006, 17212, 15568, 30524, 1065, 1030, 2058, 15637, 2270, 1050, 7662, 9447, 4012, 20110, 1006, 1007, 1063, 5527, 1012, 12241, 13122, 4697, 1006, 1007, 1025, 2709, 2023, 1025, 1065, 1030, 2058, 15637, 5123, 11675, 18921, 6776, 4502, 4313, 1006, 20014, 26797, 3468, 21572, 11788, 5397, 7709, 1007, 1063, 5527, 1012, 18921, 6776, 4502, 4313, 1006, 1006, 5950, 1010, 3643, 1007, 1011, 1028, 1063, 7709, 1012, 6611, 1006, 5950, 1010, 3643, 1007, 1025, 2709, 2995, 1025, 1065, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 3313, 2131, 1006, 20014, 5950, 1007, 1063, 2709, 5527, 1012, 2131, 1006, 5950, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 1050, 7662, 9447, 21450, 2131, 21450, 1006, 1007, 1063, 2709, 1050, 7662, 9447, 21450, 1012, 20288, 1035, 14257, 1025, 1065, 1030, 2058, 15637, 5123, 20014, 2906, 9447, 9863, 2512, 6290, 28765, 3207, 20156, 1006, 1007, 1063, 2709, 5527, 1012, 6309, 1006, 1007, 1025, 1065, 1030, 2058, 15637, 5123, 11675, 6366, 22254, 10288, 1006, 20014, 5950, 1007, 1063, 5527, 1012, 6366, 14839, 1006, 5950, 1007, 1025, 1065, 1030, 2058, 15637, 5123, 11675, 2275, 10175, 5657, 1006, 20014, 5950, 1010, 3313, 3643, 1007, 1063, 5527, 1012, 2404, 1006, 5950, 1010, 1006, 14257, 1007, 3643, 1007, 1025, 1065, 1030, 2058, 15637, 2270, 20014, 2946, 1006, 1007, 1063, 2709, 5527, 1012, 2946, 1006, 1007, 1025, 1065, 1065, 1013, 1013, 2203, 1997, 20288, 10258, 16503, 8943, 11335, 2100, 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, 30523, 1010, 13316, 27896, 1007, 1025, 1065, 1030, 2058, 15637, 5123, 3313, 14171, 2953, 18780, 10175, 5657, 1006, 20014, 5950, 1010, 3313, 3815, 1007, 1063, 2709, 5527, 1012, 14171, 2953, 18780, 10175, 5657, 1006, 5950, 1010, 1006, 14257, 1007, 3815, 1010, 1006, 14257, 1007, 3815, 1007, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1010, 13316, 27896, 1007, 1025, 1065, 1030, 2058, 15637, 5123, 3313, 14171, 2953, 18780, 10175, 5657, 1006, 20014, 5950, 1010, 3313, 3815, 1007, 1063, 2709, 5527, 1012, 14171, 2953, 18780, 10175, 5657, 1006, 5950, 1010, 1006, 14257, 1007, 3815, 1010, 1006, 14257, 1007, 3815, 1007, 1025, 30526 ]
#pragma once #include "ofMain.h" #include "ofxOsc.h" #include "VHPtriggerArea.h" #include "ofxXmlSettings.h" class ofApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void keyPressed(int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void windowResized(int w, int h); void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); // variables // Cam ofVideoGrabber vidGrabber; ofTexture videoTexture; ofTexture contrastTexture; ofTexture backgroundTexture; unsigned char * background; unsigned char * pixels; unsigned char * buffer; unsigned char * timeBuffer; int camWidth; int camHeight; int totalPixels; float contrast_e[2]; float contrast_f[2]; float percent; float colorFactor[3]; // triggerArea VHPtriggerArea area; // OSC ofxOscReceiver receiver; // info ofTrueTypeFont font; // settings ofxXmlSettings XML; };
alg-a/herm3TICa
exploracion pruebas y juegos/backgroundSubtraction/src/ofApp.h
C
mit
1,372
[ 30522, 1001, 10975, 8490, 2863, 2320, 1001, 2421, 1000, 1997, 24238, 1012, 1044, 1000, 1001, 2421, 1000, 1997, 2595, 2891, 2278, 1012, 1044, 1000, 1001, 2421, 1000, 1058, 22269, 18886, 13327, 12069, 2050, 1012, 1044, 1000, 1001, 2421, 1000, 1997, 20348, 19968, 21678, 8613, 1012, 1044, 1000, 2465, 1997, 29098, 1024, 2270, 1997, 15058, 29098, 1063, 2270, 1024, 11675, 16437, 1006, 1007, 1025, 11675, 10651, 1006, 1007, 1025, 11675, 4009, 1006, 1007, 1025, 11675, 3145, 19811, 1006, 20014, 3145, 1007, 1025, 11675, 3145, 16570, 25063, 1006, 20014, 3145, 1007, 1025, 11675, 8000, 5302, 7178, 1006, 20014, 1060, 1010, 20014, 1061, 1007, 1025, 11675, 8000, 7265, 15567, 1006, 20014, 1060, 1010, 20014, 1061, 1010, 20014, 6462, 1007, 1025, 11675, 8000, 19811, 1006, 20014, 1060, 1010, 20014, 1061, 1010, 20014, 6462, 1007, 1025, 11675, 8000, 16570, 25063, 1006, 20014, 1060, 1010, 20014, 1061, 1010, 20014, 6462, 1007, 1025, 11675, 3332, 6072, 3550, 1006, 20014, 1059, 1010, 20014, 1044, 1007, 1025, 11675, 8011, 18697, 3372, 1006, 1997, 7265, 11528, 14876, 8011, 2378, 14876, 1007, 1025, 11675, 2288, 7834, 3736, 3351, 1006, 1997, 7834, 3736, 3351, 5796, 2290, 1007, 1025, 1013, 1013, 10857, 1013, 1013, 11503, 1997, 17258, 8780, 17643, 29325, 6819, 2094, 17643, 29325, 1025, 1997, 18209, 5397, 2678, 18209, 5397, 1025, 1997, 18209, 5397, 5688, 18209, 5397, 1025, 1997, 18209, 5397, 4281, 18209, 5397, 1025, 27121, 25869, 1008, 4281, 1025, 27121, 25869, 1008, 27725, 1025, 27121, 25869, 1008, 17698, 1025, 27121, 25869, 1008, 2051, 8569, 12494, 1025, 20014, 11503, 9148, 11927, 2232, 1025, 20014, 11503, 26036, 13900, 1025, 20014, 2561, 8197, 2595, 9050, 1025, 14257, 5688, 1035, 1041, 1031, 1016, 1033, 1025, 14257, 5688, 1035, 1042, 1031, 1016, 1033, 1025, 14257, 3867, 1025, 14257, 3609, 7011, 16761, 1031, 1017, 1033, 1025, 1013, 1013, 9495, 12069, 2050, 1058, 22269, 18886, 13327, 12069, 2050, 2181, 1025, 1013, 1013, 9808, 2278, 1997, 2595, 2891, 16748, 3401, 16402, 8393, 1025, 1013, 1013, 18558, 1997, 16344, 23361, 18863, 14876, 3372, 15489, 1025, 1013, 1013, 10906, 1997, 20348, 19968, 21678, 8613, 20950, 1025, 1065, 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, 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, 30523, 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 ]
[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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, 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 ]
package com.ctrip.hermes.portal.resource.view; import java.util.ArrayList; import java.util.List; public class TopicDelayDetailView extends TopicDelayBriefView { private List<DelayDetail> details = new ArrayList<DelayDetail>(); public TopicDelayDetailView() { } public TopicDelayDetailView(String topic) { setTopic(topic); } public void addDelay(String consumer, int partitionId, int delay) { details.add(new DelayDetail(consumer, partitionId, delay)); } public List<DelayDetail> getDetails() { return details; } public void setDetails(List<DelayDetail> details) { this.details = details; } public static class DelayDetail { private String consumer; private int partitionId; private int delay; public DelayDetail() { } public DelayDetail(String consumer, int partitionId, int delay) { this.consumer = consumer; this.partitionId = partitionId; this.delay = delay; } public String getConsumer() { return consumer; } public void setConsumer(String consumer) { this.consumer = consumer; } public int getPartitionId() { return partitionId; } public void setPartitionId(int partitionId) { this.partitionId = partitionId; } public int getDelay() { return delay; } public void setDelay(int delay) { this.delay = delay; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((consumer == null) ? 0 : consumer.hashCode()); result = prime * result + partitionId; return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DelayDetail other = (DelayDetail) obj; if (consumer == null) { if (other.consumer != null) return false; } else if (!consumer.equals(other.consumer)) return false; if (partitionId != other.partitionId) return false; return true; } } }
lejingw/hermes
hermes-portal/src/main/java/com/ctrip/hermes/portal/resource/view/TopicDelayDetailView.java
Java
apache-2.0
1,993
[ 30522, 7427, 4012, 1012, 14931, 29443, 1012, 24127, 1012, 9445, 1012, 7692, 1012, 3193, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 9140, 9863, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 2862, 1025, 2270, 2465, 8476, 9247, 4710, 3207, 14162, 8584, 8908, 8476, 9247, 4710, 23736, 12879, 8584, 1063, 2797, 2862, 1026, 8536, 3207, 14162, 1028, 4751, 1027, 2047, 9140, 9863, 1026, 8536, 3207, 14162, 1028, 1006, 1007, 1025, 2270, 8476, 9247, 4710, 3207, 14162, 8584, 1006, 1007, 1063, 1065, 2270, 8476, 9247, 4710, 3207, 14162, 8584, 1006, 5164, 8476, 1007, 1063, 2275, 14399, 2594, 1006, 8476, 1007, 1025, 1065, 2270, 11675, 5587, 9247, 4710, 1006, 5164, 7325, 1010, 20014, 13571, 3593, 1010, 20014, 8536, 1007, 1063, 4751, 1012, 5587, 1006, 2047, 8536, 3207, 14162, 1006, 7325, 1010, 13571, 3593, 1010, 8536, 1007, 1007, 1025, 1065, 2270, 2862, 1026, 8536, 3207, 14162, 1028, 2131, 3207, 22081, 1006, 1007, 1063, 2709, 4751, 1025, 1065, 2270, 11675, 2275, 3207, 22081, 1006, 2862, 1026, 8536, 3207, 14162, 1028, 4751, 1007, 1063, 2023, 1012, 4751, 1027, 4751, 1025, 1065, 2270, 10763, 2465, 8536, 3207, 14162, 1063, 2797, 5164, 7325, 1025, 2797, 20014, 13571, 3593, 1025, 2797, 20014, 8536, 1025, 2270, 8536, 3207, 14162, 1006, 1007, 1063, 1065, 2270, 8536, 3207, 14162, 1006, 5164, 7325, 1010, 20014, 13571, 3593, 1010, 20014, 8536, 1007, 1063, 2023, 1012, 7325, 1027, 7325, 1025, 2023, 1012, 13571, 3593, 1027, 13571, 3593, 1025, 2023, 1012, 8536, 30524, 7325, 1007, 1063, 2023, 1012, 7325, 1027, 7325, 1025, 1065, 2270, 20014, 2131, 19362, 3775, 3508, 3593, 1006, 1007, 1063, 2709, 13571, 3593, 1025, 1065, 2270, 11675, 2275, 19362, 3775, 3508, 3593, 1006, 20014, 13571, 3593, 1007, 1063, 2023, 1012, 13571, 3593, 1027, 13571, 3593, 1025, 1065, 2270, 20014, 2131, 9247, 4710, 1006, 1007, 1063, 2709, 8536, 1025, 1065, 2270, 11675, 2275, 9247, 4710, 1006, 20014, 8536, 1007, 1063, 2023, 1012, 8536, 1027, 8536, 1025, 1065, 1030, 2058, 15637, 2270, 20014, 23325, 16044, 1006, 1007, 1063, 2345, 20014, 3539, 1027, 2861, 1025, 20014, 2765, 1027, 1015, 1025, 2765, 1027, 3539, 1008, 2765, 1009, 1006, 1006, 7325, 1027, 1027, 19701, 1007, 1029, 1014, 1024, 7325, 1012, 23325, 16044, 1006, 1007, 1007, 1025, 2765, 1027, 3539, 1008, 2765, 1009, 13571, 3593, 1025, 2709, 2765, 1025, 1065, 1030, 2058, 15637, 2270, 22017, 20898, 19635, 1006, 4874, 27885, 3501, 1007, 1063, 2065, 1006, 2023, 1027, 1027, 27885, 3501, 1007, 2709, 2995, 1025, 2065, 1006, 27885, 3501, 1027, 1027, 19701, 1007, 2709, 6270, 1025, 2065, 1006, 2131, 26266, 1006, 1007, 999, 1027, 27885, 3501, 1012, 2131, 26266, 1006, 1007, 1007, 2709, 6270, 1025, 8536, 3207, 14162, 2060, 1027, 1006, 8536, 3207, 14162, 1007, 27885, 3501, 1025, 2065, 1006, 7325, 1027, 1027, 19701, 1007, 1063, 2065, 1006, 2060, 1012, 7325, 999, 1027, 19701, 1007, 2709, 6270, 1025, 1065, 2842, 2065, 1006, 999, 7325, 1012, 19635, 1006, 2060, 1012, 7325, 1007, 1007, 2709, 6270, 1025, 2065, 30523, 1027, 8536, 1025,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 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, 1027, 8536, 1025, 1065, 2270, 5164, 2131, 8663, 23545, 2099, 1006, 1007, 1063, 2709, 7325, 1025, 1065, 2270, 11675, 2275, 8663, 23545, 2099, 1006, 5164, 30526 ]
-- tolua: module class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: module.lua 1004 2006-02-27 13:03:20Z lindquist $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements, or modifications. -- Module class -- Represents module. -- The following fields are stored: -- {i} = list of objects in the module. classModule = { classtype = 'module' } classModule.__index = classModule setmetatable(classModule,classContainer) -- register module function classModule:register (pre) pre = pre or '' push(self) output(pre..'tolua_module(tolua_S,"'..self.name..'",',self:hasvar(),');') output(pre..'tolua_beginmodule(tolua_S,"'..self.name..'");') local i=1 while self[i] do self[i]:register(pre..' ') i = i+1 end output(pre..'tolua_endmodule(tolua_S);') pop() end -- Print method function classModule:print (ident,close) print(ident.."Module{") print(ident.." name = '"..self.name.."';") local i=1 while self[i] do self[i]:print(ident.." ",",") i = i+1 end print(ident.."}"..close) end -- Internal constructor function _Module (t) setmetatable(t,classModule) append(t) return t end -- Constructor -- Expects two string representing the module name and body. function Module (n,b) local t = _Module(_Container{name=n}) push(t) t:parse(strsub(b,2,strlen(b)-1)) -- eliminate braces pop() return t end
gorkinovich/DefendersOfMankind
dependencies/CEGUI/cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/module.lua
Lua
gpl-3.0
1,526
[ 30522, 1011, 1011, 2000, 7630, 2050, 1024, 11336, 2465, 1011, 1011, 2517, 2011, 24547, 3207, 7849, 8292, 4244, 1011, 1011, 8915, 2278, 17643, 2546, 1013, 16405, 2278, 1011, 5673, 1011, 1011, 21650, 2687, 1011, 1011, 1002, 8909, 1024, 11336, 1012, 11320, 2050, 2531, 2549, 2294, 1011, 6185, 1011, 2676, 2410, 1024, 6021, 1024, 2322, 2480, 11409, 2094, 18331, 1002, 1011, 1011, 2023, 3642, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 1012, 1011, 1011, 1996, 4007, 3024, 2182, 20824, 2003, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1998, 1011, 1011, 1996, 3166, 2038, 2053, 14987, 2000, 3073, 6032, 1010, 2490, 1010, 14409, 1010, 1011, 1011, 22415, 2015, 1010, 2030, 12719, 1012, 1011, 1011, 11336, 2465, 1011, 1011, 5836, 11336, 1012, 1011, 1011, 1996, 2206, 4249, 2024, 8250, 1024, 1011, 1011, 1063, 1045, 1065, 1027, 2862, 1997, 5200, 1999, 1996, 11336, 1012, 2465, 5302, 30524, 5302, 8566, 2571, 1010, 2465, 8663, 18249, 2121, 1007, 1011, 1011, 4236, 11336, 3853, 2465, 5302, 8566, 2571, 1024, 4236, 1006, 3653, 1007, 3653, 1027, 3653, 2030, 1005, 1005, 5245, 1006, 2969, 1007, 6434, 1006, 3653, 1012, 1012, 1005, 2000, 7630, 2050, 1035, 11336, 1006, 2000, 7630, 2050, 1035, 1055, 1010, 1000, 1005, 1012, 1012, 2969, 1012, 2171, 1012, 1012, 1005, 1000, 1010, 1005, 1010, 2969, 1024, 2038, 10755, 1006, 1007, 1010, 1005, 1007, 1025, 1005, 1007, 6434, 1006, 3653, 1012, 1012, 1005, 2000, 7630, 2050, 1035, 4088, 5302, 8566, 2571, 1006, 2000, 7630, 2050, 1035, 1055, 1010, 1000, 1005, 1012, 1012, 2969, 1012, 2171, 1012, 1012, 1005, 1000, 1007, 1025, 1005, 1007, 2334, 1045, 1027, 1015, 2096, 2969, 1031, 1045, 1033, 2079, 2969, 1031, 1045, 1033, 1024, 4236, 1006, 3653, 1012, 1012, 1005, 1005, 1007, 1045, 1027, 1045, 1009, 1015, 2203, 6434, 1006, 3653, 1012, 1012, 1005, 2000, 7630, 2050, 1035, 2203, 5302, 8566, 2571, 1006, 2000, 7630, 2050, 1035, 1055, 1007, 1025, 1005, 1007, 3769, 1006, 1007, 2203, 1011, 1011, 6140, 4118, 3853, 2465, 5302, 8566, 2571, 1024, 6140, 1006, 8909, 4765, 1010, 2485, 1007, 6140, 1006, 8909, 4765, 1012, 1012, 1000, 11336, 1063, 1000, 1007, 6140, 1006, 8909, 4765, 1012, 1012, 1000, 2171, 1027, 1005, 1000, 1012, 1012, 2969, 1012, 2171, 1012, 1012, 1000, 1005, 1025, 1000, 1007, 2334, 1045, 1027, 1015, 2096, 2969, 1031, 1045, 1033, 2079, 2969, 1031, 1045, 1033, 1024, 6140, 1006, 8909, 4765, 1012, 1012, 1000, 1000, 1010, 1000, 1010, 1000, 1007, 1045, 1027, 1045, 1009, 1015, 2203, 6140, 1006, 8909, 4765, 1012, 1012, 1000, 1065, 1000, 1012, 1012, 2485, 1007, 2203, 1011, 1011, 4722, 9570, 2953, 3853, 1035, 11336, 1006, 1056, 1007, 2275, 11368, 27892, 1006, 1056, 1010, 2465, 5302, 8566, 2571, 1007, 10439, 10497, 1006, 1056, 1007, 2709, 1056, 2203, 1011, 1011, 9570, 2953, 1011,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8566, 2571, 1027, 1063, 2465, 13874, 1027, 1005, 11336, 1005, 1065, 2465, 5302, 8566, 2571, 1012, 1035, 1035, 5950, 1027, 2465, 5302, 8566, 2571, 2275, 11368, 27892, 1006, 2465, 30526 ]
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('axis-time-base', function (Y, NAME) { /** * Provides functionality for the handling of time axis data for a chart. * * @module charts * @submodule axis-time-base */ var Y_Lang = Y.Lang; /** * TimeImpl contains logic for time data. TimeImpl is used by the following classes: * <ul> * <li>{{#crossLink "TimeAxisBase"}}{{/crossLink}}</li> * <li>{{#crossLink "TimeAxis"}}{{/crossLink}}</li> * </ul> * * @class TimeImpl * @constructor * @submodule axis-time-base */ function TimeImpl() { } TimeImpl.NAME = "timeImpl"; TimeImpl.ATTRS = { /** * Method used for formatting a label. This attribute allows for the default label formatting method to overridden. * The method use would need to implement the arguments below and return a `String` or an `HTMLElement`. The default * implementation of the method returns a `String`. The output of this method will be rendered to the DOM using * `appendChild`. If you override the `labelFunction` method and return an html string, you will also need to override * the Axis' `appendLabelFunction` to accept html as a `String`. * <dl> * <dt>val</dt><dd>Label to be formatted. (`String`)</dd> * <dt>format</dt><dd>STRFTime string used to format the label. (optional)</dd> * </dl> * * @attribute labelFunction * @type Function */ /** * Pattern used by the `labelFunction` to format a label. * * @attribute labelFormat * @type String */ labelFormat: { value: "%b %d, %y" } }; TimeImpl.prototype = { /** * Type of data used in `Data`. * * @property _type * @readOnly * @private */ _type: "time", /** * Getter method for maximum attribute. * * @method _maximumGetter * @return Number * @private */ _maximumGetter: function () { var max = this._getNumber(this._setMaximum); if(!Y_Lang.isNumber(max)) { max = this._getNumber(this.get("dataMaximum")); } return parseFloat(max); }, /** * Setter method for maximum attribute. * * @method _maximumSetter * @param {Object} value * @private */ _maximumSetter: function (value) { this._setMaximum = this._getNumber(value); return value; }, /** * Getter method for minimum attribute. * * @method _minimumGetter * @return Number * @private */ _minimumGetter: function () { var min = this._getNumber(this._setMinimum); if(!Y_Lang.isNumber(min)) { min = this._getNumber(this.get("dataMinimum")); } return parseFloat(min); }, /** * Setter method for minimum attribute. * * @method _minimumSetter * @param {Object} value * @private */ _minimumSetter: function (value) { this._setMinimum = this._getNumber(value); return value; }, /** * Indicates whether or not the maximum attribute has been explicitly set. * * @method _getSetMax * @return Boolean * @private */ _getSetMax: function() { var max = this._getNumber(this._setMaximum); return (Y_Lang.isNumber(max)); }, /** * Indicates whether or not the minimum attribute has been explicitly set. * * @method _getSetMin * @return Boolean * @private */ _getSetMin: function() { var min = this._getNumber(this._setMinimum); return (Y_Lang.isNumber(min)); }, /** * Formats a label based on the axis type and optionally specified format. * * @method formatLabel * @param {Object} value * @param {Object} format Pattern used to format the value. * @return String */ formatLabel: function(val, format) { val = Y.DataType.Date.parse(val); if(format) { return Y.DataType.Date.format(val, {format:format}); } return val; }, /** * Constant used to generate unique id. * * @property GUID * @type String * @private */ GUID: "yuitimeaxis", /** * Type of data used in `Axis`. * * @property _dataType * @readOnly * @private */ _dataType: "time", /** * Gets an array of values based on a key. * * @method _getKeyArray * @param {String} key Value key associated with the data array. * @param {Array} data Array in which the data resides. * @return Array * @private */ _getKeyArray: function(key, data) { var obj, keyArray = [], i = 0, val, len = data.length; for(; i < len; ++i) { obj = data[i][key]; if(Y_Lang.isDate(obj)) { val = obj.valueOf(); } else { val = new Date(obj); if(Y_Lang.isDate(val)) { val = val.valueOf(); } else if(!Y_Lang.isNumber(obj)) { if(Y_Lang.isNumber(parseFloat(obj))) { val = parseFloat(obj); } else { if(typeof obj !== "string") { obj = obj; } val = new Date(obj).valueOf(); } } else { val = obj; } } keyArray[i] = val; } return keyArray; }, /** * Calculates the maximum and minimum values for the `Axis`. * * @method _updateMinAndMax * @private */ _updateMinAndMax: function() { var data = this.get("data"), max = 0, min = 0, len, num, i; if(data && data.length && data.length > 0) { len = data.length; max = min = data[0]; if(len > 1) { for(i = 1; i < len; i++) { num = data[i]; if(isNaN(num)) { continue; } max = Math.max(num, max); min = Math.min(num, min); } } } this._dataMaximum = max; this._dataMinimum = min; }, /** * Returns a coordinate corresponding to a data values. * * @method _getCoordFromValue * @param {Number} min The minimum for the axis. * @param {Number} max The maximum for the axis. * @param {Number} length The distance that the axis spans. * @param {Number} dataValue A value used to ascertain the coordinate. * @param {Number} offset Value in which to offset the coordinates. * @param {Boolean} reverse Indicates whether the coordinates should start from * the end of an axis. Only used in the numeric implementation. * @return Number * @private */ _getCoordFromValue: function(min, max, length, dataValue, offset) { var range, multiplier, valuecoord, isNumber = Y_Lang.isNumber; dataValue = this._getNumber(dataValue); if(isNumber(dataValue)) { range = max - min; multiplier = length/range; valuecoord = (dataValue - min) * multiplier; valuecoord = offset + valuecoord; } else { valuecoord = NaN; } return valuecoord; }, /** * Parses value into a number. * * @method _getNumber * @param val {Object} Value to parse into a number * @return Number * @private */ _getNumber: function(val) { if(Y_Lang.isDate(val)) { val = val.valueOf(); } else if(!Y_Lang.isNumber(val) && val) { val = new Date(val).valueOf(); } return val; } }; Y.TimeImpl = TimeImpl; /** * TimeAxisBase manages time data for an axis. * * @class TimeAxisBase * @extends AxisBase * @uses TimeImpl * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule axis-time-base */ Y.TimeAxisBase = Y.Base.create("timeAxisBase", Y.AxisBase, [Y.TimeImpl]); }, '3.17.2', {"requires": ["axis-base"]});
gdomingos/Wegas
wegas-resources/src/main/webapp/lib/yui3/build/axis-time-base/axis-time-base.js
JavaScript
mit
8,841
[ 30522, 1013, 1008, 9805, 2072, 1017, 1012, 2459, 1012, 1016, 1006, 3857, 1023, 2278, 2509, 2278, 2581, 2620, 2063, 1007, 9385, 2297, 20643, 999, 4297, 1012, 2035, 2916, 9235, 1012, 7000, 2104, 1996, 18667, 2094, 6105, 1012, 8299, 1024, 1013, 1013, 9805, 18622, 10024, 2854, 1012, 4012, 1013, 6105, 1013, 1008, 1013, 9805, 2072, 1012, 5587, 1006, 1005, 8123, 1011, 2051, 1011, 2918, 1005, 1010, 3853, 1006, 1061, 1010, 2171, 1007, 1063, 1013, 1008, 1008, 1008, 3640, 15380, 2005, 1996, 8304, 1997, 2051, 8123, 2951, 2005, 1037, 3673, 1012, 1008, 1008, 1030, 11336, 6093, 1008, 1030, 4942, 5302, 8566, 2571, 8123, 1011, 2051, 1011, 2918, 1008, 1013, 13075, 1061, 1035, 11374, 1027, 1061, 1012, 11374, 1025, 1013, 1008, 1008, 1008, 2051, 5714, 24759, 3397, 7961, 2005, 2051, 2951, 1012, 2051, 5714, 24759, 2003, 2109, 2011, 1996, 2206, 4280, 1024, 1008, 1026, 17359, 1028, 1008, 1026, 5622, 1028, 1063, 1063, 1001, 2892, 13767, 1000, 2051, 8528, 2483, 15058, 1000, 1065, 1065, 1063, 1063, 1013, 2892, 13767, 1065, 1065, 1026, 1013, 5622, 1028, 1008, 1026, 5622, 1028, 1063, 1063, 1001, 2892, 13767, 1000, 2051, 8528, 2483, 1000, 1065, 1065, 1063, 1063, 1013, 2892, 13767, 1065, 1065, 1026, 1013, 5622, 1028, 1008, 1026, 1013, 17359, 1028, 1008, 1008, 1030, 2465, 2051, 5714, 24759, 1008, 1030, 9570, 2953, 1008, 1030, 4942, 5302, 8566, 2571, 8123, 1011, 2051, 1011, 2918, 1008, 1013, 3853, 2051, 5714, 24759, 1006, 1007, 1063, 1065, 2051, 5714, 24759, 1012, 2171, 1027, 1000, 2051, 5714, 24759, 1000, 1025, 2051, 5714, 24759, 1012, 2012, 16344, 2015, 1027, 1063, 1013, 1008, 1008, 1008, 4118, 2109, 2005, 4289, 3436, 1037, 3830, 1012, 2023, 17961, 4473, 2005, 1996, 12398, 3830, 4289, 3436, 4118, 2000, 2058, 14615, 4181, 1012, 1008, 1996, 4118, 2224, 2052, 2342, 2000, 10408, 1996, 9918, 2917, 1998, 2709, 1037, 1036, 5164, 1036, 2030, 2019, 1036, 16129, 12260, 3672, 1036, 1012, 1996, 12398, 1008, 7375, 1997, 1996, 4118, 5651, 1037, 1036, 5164, 1036, 1012, 1996, 6434, 1997, 2023, 4118, 2097, 2022, 10155, 2000, 1996, 14383, 2478, 1008, 1036, 10439, 30524, 1012, 1008, 1026, 21469, 1028, 1008, 1026, 26718, 1028, 11748, 1026, 1013, 26718, 1028, 1026, 20315, 1028, 3830, 2000, 2022, 4289, 3064, 1012, 1006, 1036, 5164, 1036, 1007, 1026, 1013, 20315, 1028, 1008, 1026, 26718, 1028, 4289, 1026, 1013, 26718, 1028, 1026, 20315, 1028, 2358, 12881, 7292, 5164, 2109, 2000, 4289, 1996, 3830, 1012, 1006, 11887, 1007, 1026, 1013, 20315, 1028, 1008, 1026, 1013, 21469, 1028, 1008, 1008, 1030, 17961, 3830, 11263, 27989, 1008, 1030, 2828, 3853, 1008, 1013, 1013, 1008, 1008, 1008, 5418, 2109, 2011, 1996, 1036, 3830, 11263, 27989, 1036, 2000, 4289, 1037, 3830, 1012, 1008, 1008, 1030, 17961, 3830, 14192, 4017, 1008, 1030, 2828, 5164, 1008, 1013, 3830, 14192, 4017, 1024, 1063, 30523, 10497, 19339, 1036, 1012, 2065, 2017, 2058, 15637, 1996, 1036, 3830, 11263, 27989, 1036, 4118, 1998, 2709, 2019, 16129, 5164, 1010, 2017, 2097, 2036, 2342, 2000, 2058, 15637, 1008, 1996, 8123, 1005, 1036, 10439, 10497, 20470, 2884, 11263, 27989, 1036, 2000, 5138, 16129, 2004, 1037, 1036, 5164, 1036, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 10497, 19339, 1036, 1012, 2065, 2017, 2058, 15637, 1996, 1036, 3830, 11263, 27989, 1036, 4118, 1998, 2709, 2019, 16129, 5164, 1010, 2017, 2097, 2036, 2342, 2000, 2058, 15637, 1008, 1996, 8123, 1005, 1036, 10439, 10497, 20470, 2884, 11263, 27989, 1036, 2000, 5138, 16129, 2004, 1037, 1036, 5164, 1036, 30526 ]
/* * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "config.h" #include "core/svg/SVGFEBlendElement.h" #include "core/SVGNames.h" #include "platform/graphics/filters/FEBlend.h" #include "platform/graphics/filters/FilterEffect.h" #include "core/svg/graphics/filters/SVGFilterBuilder.h" namespace blink { static WebBlendMode toWebBlendMode(SVGFEBlendElement::Mode mode) { #define MAP_BLEND_MODE(MODENAME) \ case SVGFEBlendElement::Mode##MODENAME: \ return WebBlendMode##MODENAME switch (mode) { MAP_BLEND_MODE(Normal); MAP_BLEND_MODE(Multiply); MAP_BLEND_MODE(Screen); MAP_BLEND_MODE(Darken); MAP_BLEND_MODE(Lighten); MAP_BLEND_MODE(Overlay); MAP_BLEND_MODE(ColorDodge); MAP_BLEND_MODE(ColorBurn); MAP_BLEND_MODE(HardLight); MAP_BLEND_MODE(SoftLight); MAP_BLEND_MODE(Difference); MAP_BLEND_MODE(Exclusion); MAP_BLEND_MODE(Hue); MAP_BLEND_MODE(Saturation); MAP_BLEND_MODE(Color); MAP_BLEND_MODE(Luminosity); default: ASSERT_NOT_REACHED(); return WebBlendModeNormal; } #undef MAP_BLEND_MODE } template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGFEBlendElement::Mode>() { DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); if (entries.isEmpty()) { entries.append(std::make_pair(SVGFEBlendElement::ModeNormal, "normal")); entries.append(std::make_pair(SVGFEBlendElement::ModeMultiply, "multiply")); entries.append(std::make_pair(SVGFEBlendElement::ModeScreen, "screen")); entries.append(std::make_pair(SVGFEBlendElement::ModeDarken, "darken")); entries.append(std::make_pair(SVGFEBlendElement::ModeLighten, "lighten")); entries.append(std::make_pair(SVGFEBlendElement::ModeOverlay, "overlay")); entries.append(std::make_pair(SVGFEBlendElement::ModeColorDodge, "color-dodge")); entries.append(std::make_pair(SVGFEBlendElement::ModeColorBurn, "color-burn")); entries.append(std::make_pair(SVGFEBlendElement::ModeHardLight, "hard-light")); entries.append(std::make_pair(SVGFEBlendElement::ModeSoftLight, "soft-light")); entries.append(std::make_pair(SVGFEBlendElement::ModeDifference, "difference")); entries.append(std::make_pair(SVGFEBlendElement::ModeExclusion, "exclusion")); entries.append(std::make_pair(SVGFEBlendElement::ModeHue, "hue")); entries.append(std::make_pair(SVGFEBlendElement::ModeSaturation, "saturation")); entries.append(std::make_pair(SVGFEBlendElement::ModeColor, "color")); entries.append(std::make_pair(SVGFEBlendElement::ModeLuminosity, "luminosity")); } return entries; } template<> unsigned short getMaxExposedEnumValue<SVGFEBlendElement::Mode>() { return SVGFEBlendElement::ModeLighten; } inline SVGFEBlendElement::SVGFEBlendElement(Document& document) : SVGFilterPrimitiveStandardAttributes(SVGNames::feBlendTag, document) , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create())) , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create())) , m_mode(SVGAnimatedEnumeration<Mode>::create(this, SVGNames::modeAttr, SVGFEBlendElement::ModeNormal)) { addToPropertyMap(m_in1); addToPropertyMap(m_in2); addToPropertyMap(m_mode); } DEFINE_NODE_FACTORY(SVGFEBlendElement) bool SVGFEBlendElement::isSupportedAttribute(const QualifiedName& attrName) { DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); if (supportedAttributes.isEmpty()) { supportedAttributes.add(SVGNames::modeAttr); supportedAttributes.add(SVGNames::inAttr); supportedAttributes.add(SVGNames::in2Attr); } return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); } void SVGFEBlendElement::parseAttribute(const QualifiedName& name, const AtomicString& value) { parseAttributeNew(name, value); } bool SVGFEBlendElement::setFilterEffectAttribute(FilterEffect* effect, const QualifiedName& attrName) { FEBlend* blend = static_cast<FEBlend*>(effect); if (attrName == SVGNames::modeAttr) return blend->setBlendMode(toWebBlendMode(m_mode->currentValue()->enumValue())); ASSERT_NOT_REACHED(); return false; } void SVGFEBlendElement::svgAttributeChanged(const QualifiedName& attrName) { if (!isSupportedAttribute(attrName)) { SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); return; } SVGElement::InvalidationGuard invalidationGuard(this); if (attrName == SVGNames::modeAttr) { primitiveAttributeChanged(attrName); return; } if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { invalidate(); return; } ASSERT_NOT_REACHED(); } PassRefPtr<FilterEffect> SVGFEBlendElement::build(SVGFilterBuilder* filterBuilder, Filter* filter) { FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value())); FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->currentValue()->value())); if (!input1 || !input2) return nullptr; RefPtr<FilterEffect> effect = FEBlend::create(filter, toWebBlendMode(m_mode->currentValue()->enumValue())); FilterEffectVector& inputEffects = effect->inputEffects(); inputEffects.reserveCapacity(2); inputEffects.append(input1); inputEffects.append(input2); return effect.release(); } }
hgl888/blink-crosswalk-efl
Source/core/svg/SVGFEBlendElement.cpp
C++
bsd-3-clause
6,412
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2432, 1010, 2384, 1010, 2289, 24794, 2015, 27946, 2078, 1026, 27946, 2078, 1030, 1047, 3207, 1012, 8917, 1028, 1008, 9385, 1006, 1039, 1007, 2432, 1010, 2384, 1010, 2294, 6487, 20934, 2483, 1026, 20934, 2483, 1030, 1047, 3207, 1012, 8917, 1028, 1008, 1008, 2023, 3075, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 1008, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 3075, 2236, 2270, 1008, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1025, 2593, 1008, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 1008, 1008, 2023, 3075, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 1008, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 1008, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 1008, 3075, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 3075, 2236, 2270, 6105, 1008, 2247, 2007, 2023, 3075, 1025, 2156, 1996, 5371, 24731, 1012, 5622, 2497, 1012, 2065, 2025, 1010, 4339, 2000, 1008, 1996, 2489, 4007, 3192, 1010, 4297, 1012, 1010, 4868, 5951, 2395, 1010, 3587, 2723, 1010, 1008, 3731, 1010, 5003, 6185, 14526, 2692, 1011, 7558, 2487, 1010, 3915, 1012, 1008, 1013, 1001, 2421, 1000, 9530, 8873, 2290, 1012, 1044, 1000, 1001, 2421, 1000, 4563, 1013, 17917, 2290, 1013, 17917, 25708, 15878, 7770, 9247, 13665, 1012, 1044, 1000, 1001, 2421, 1000, 4563, 1013, 17917, 16989, 7834, 1012, 1044, 1000, 1001, 2421, 1000, 4132, 1013, 8389, 1013, 17736, 1013, 13114, 7770, 2094, 1012, 1044, 1000, 1001, 2421, 1000, 4132, 1013, 8389, 1013, 17736, 1013, 11307, 12879, 25969, 1012, 1044, 1000, 1001, 2421, 1000, 4563, 1013, 17917, 2290, 1013, 8389, 1013, 17736, 1013, 17917, 25708, 4014, 3334, 8569, 23891, 2099, 1012, 1044, 1000, 3415, 15327, 12373, 1063, 10763, 10923, 7770, 22117, 10244, 15805, 15878, 3468, 4859, 5302, 3207, 1006, 17917, 25708, 15878, 7770, 30524, 1024, 1024, 5549, 1001, 1001, 5549, 18442, 1024, 1032, 2709, 10923, 7770, 22117, 10244, 1001, 1001, 5549, 18442, 6942, 1006, 5549, 1007, 1063, 4949, 1035, 12586, 1035, 5549, 1006, 3671, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 4800, 22086, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 3898, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 2601, 2368, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 2422, 2368, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 2058, 8485, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 3609, 3527, 11818, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 3609, 8022, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 2524, 7138, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 3730, 7138, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 4489, 1007, 1025, 4949, 1035, 12586, 1035, 5549, 1006, 15945, 1007, 1025, 30523, 9247, 13665, 1024, 1024, 5549, 5549, 1007, 1063, 1001, 9375, 4949, 1035, 12586, 1035, 5549, 1006, 5549, 18442, 1007, 1032, 2553, 17917, 25708, 15878, 7770, 9247, 13665, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 9247, 13665, 1024, 1024, 5549, 5549, 1007, 1063, 1001, 9375, 4949, 1035, 12586, 1035, 5549, 1006, 5549, 18442, 1007, 1032, 2553, 17917, 25708, 15878, 7770, 9247, 13665, 30526 ]
<?php /* * $Id: MssqlPlatform.php 3752 2007-04-11 09:11:18Z fabien $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals * and is licensed under the LGPL. For more information please see * <http://propel.phpdb.org>. */ require_once 'propel/engine/platform/DefaultPlatform.php'; include_once 'propel/engine/database/model/Domain.php'; /** * MS SQL Platform implementation. * * @author Hans Lellelid <hans@xmpl.org> (Propel) * @author Martin Poeschl <mpoeschl@marmot.at> (Torque) * @version $Revision: 536 $ * @package propel.engine.platform */ class MssqlPlatform extends DefaultPlatform { /** * Initializes db specific domain mapping. */ protected function initialize() { parent::initialize(); $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "INT")); $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "INT")); $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT")); $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT")); $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "TEXT")); $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME")); $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_DATE, "DATETIME")); $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATETIME")); $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME")); $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "DATETIME")); $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BINARY(7132)")); $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "IMAGE")); $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "IMAGE")); $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "IMAGE")); } /** * @see Platform#getMaxColumnNameLength() */ public function getMaxColumnNameLength() { return 128; } /** * @return Explicitly returns <code>NULL</code> if null values are * allowed (as recomended by Microsoft). * @see Platform#getNullString(boolean) */ public function getNullString($notNull) { return ($notNull ? "NOT NULL" : "NULL"); } /** * @see Platform::supportsNativeDeleteTrigger() */ public function supportsNativeDeleteTrigger() { return true; } /** * @see Platform::hasSize(String) */ public function hasSize($sqlType) { return !("INT" == $sqlType || "TEXT" == $sqlType); } /** * @see Platform::quoteIdentifier() */ public function quoteIdentifier($text) { return '[' . $text . ']'; } }
vincent03460/fxcmiscc-partner
lib/symfony/vendor/propel-generator/classes/propel/engine/platform/MssqlPlatform.php
PHP
mit
3,539
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1002, 8909, 1024, 5796, 2015, 4160, 14277, 20051, 14192, 1012, 25718, 18034, 2475, 2289, 1011, 5840, 1011, 2340, 5641, 1024, 2340, 1024, 2324, 2480, 6904, 11283, 2078, 1002, 1008, 1008, 2023, 4007, 2003, 3024, 2011, 1996, 9385, 13304, 1998, 16884, 1008, 1000, 2004, 2003, 1000, 1998, 2151, 4671, 2030, 13339, 10943, 3111, 1010, 2164, 1010, 2021, 2025, 1008, 3132, 2000, 1010, 1996, 13339, 10943, 3111, 1997, 6432, 8010, 1998, 10516, 2005, 1008, 1037, 3327, 3800, 2024, 5860, 19771, 7583, 1012, 1999, 2053, 2724, 4618, 1996, 9385, 1008, 3954, 2030, 16884, 2022, 20090, 2005, 2151, 3622, 1010, 14958, 1010, 5043, 2389, 1010, 1008, 2569, 1010, 27792, 1010, 2030, 9530, 3366, 15417, 4818, 12394, 1006, 2164, 1010, 2021, 2025, 1008, 3132, 2000, 1010, 21423, 1997, 7681, 5350, 2030, 2578, 1025, 3279, 1997, 2224, 1010, 1008, 2951, 1010, 2030, 11372, 1025, 2030, 2449, 24191, 1007, 2174, 3303, 1998, 2006, 2151, 1008, 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, 1008, 1997, 2023, 4007, 1010, 2130, 2065, 9449, 1997, 1996, 6061, 1997, 2107, 4053, 1012, 1008, 1008, 2023, 4007, 3774, 1997, 10758, 5857, 2081, 2011, 2116, 3633, 1008, 1998, 2003, 7000, 2104, 1996, 1048, 21600, 2140, 1012, 2005, 2062, 2592, 3531, 2156, 1008, 1026, 8299, 1024, 1013, 1013, 17678, 2884, 1012, 25718, 18939, 1012, 8917, 1028, 1012, 1008, 1013, 5478, 1035, 2320, 1005, 17678, 2884, 1013, 3194, 1013, 4132, 1013, 12398, 24759, 4017, 14192, 1012, 25718, 1005, 1025, 2421, 1035, 2320, 1005, 17678, 2884, 1013, 3194, 1013, 7809, 1013, 2944, 1013, 5884, 1012, 25718, 1005, 1025, 1013, 1008, 1008, 1008, 5796, 29296, 4132, 7375, 1012, 1008, 1008, 1030, 3166, 7003, 3393, 6216, 21273, 1026, 7003, 1030, 1060, 8737, 2140, 1012, 8917, 1028, 1006, 17678, 2884, 1007, 1008, 1030, 3166, 3235, 18922, 11624, 2140, 1026, 6131, 22504, 2818, 2140, 1030, 9388, 18938, 1012, 2012, 1028, 1006, 15894, 1007, 1008, 1030, 2544, 1002, 13921, 1024, 5187, 2575, 1002, 1008, 1030, 7427, 17678, 2884, 1012, 3194, 1012, 4132, 1008, 1013, 2465, 5796, 2015, 4160, 14277, 20051, 14192, 8908, 12398, 24759, 4017, 14192, 1063, 1013, 1008, 1008, 1008, 3988, 10057, 16962, 3563, 5884, 12375, 1012, 1008, 1013, 5123, 3853, 3988, 4697, 1006, 1007, 1063, 6687, 1024, 1024, 3988, 4697, 1006, 1007, 1025, 1002, 2023, 1011, 1028, 4520, 5403, 25666, 9626, 2378, 2863, 14853, 1006, 2047, 5884, 1006, 17678, 20042, 18863, 2015, 1024, 1024, 16109, 1010, 1000, 20014, 1000, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 4520, 5403, 25666, 9626, 2378, 2863, 14853, 1006, 2047, 5884, 1006, 17678, 20042, 18863, 2015, 1024, 1024, 22017, 20898, 1010, 1000, 30524, 14853, 1006, 2047, 5884, 1006, 17678, 20042, 18863, 2015, 30523, 20014, 1000, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 4520, 5403, 25666, 9626, 2378, 2863, 14853, 1006, 2047, 5884, 1006, 17678, 20042, 18863, 2015, 1024, 1024, 3313, 1010, 1000, 14257, 1000, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 4520, 5403, 25666, 9626, 2378, 2863, 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, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 20014, 1000, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 4520, 5403, 25666, 9626, 2378, 2863, 14853, 1006, 2047, 5884, 1006, 17678, 20042, 18863, 2015, 1024, 1024, 3313, 1010, 1000, 14257, 1000, 1007, 1007, 1025, 1002, 2023, 1011, 1028, 4520, 5403, 25666, 9626, 2378, 2863, 30526 ]
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; namespace AspxCommerce.ServiceItem { [Serializable] [DataContract] public class ServiceItemsDetailsInfo { [DataMember] private int _itemID; [DataMember] private string _itemName; [DataMember] private decimal _price; [DataMember] private string _shortdescription; [DataMember] private string _description; [DataMember] private string _imagePath; [DataMember] private int _categoryID; [DataMember] private int _serviceDuration; public int ItemID { get { return this._itemID; } set { if (this._itemID != value) { this._itemID = value; } } } public string ItemName { get { return this._itemName; } set { if (this._itemName != value) { this._itemName = value; } } } public decimal Price { get { return this._price; } set { if (this._price != value) { this._price = value; } } } public string ShortDescription { get { return this._shortdescription; } set { if (this._shortdescription != value) { this._shortdescription = value; } } } public string Description { get { return this._description; } set { if (this._description != value) { this._description = value; } } } public string ImagePath { get { return this._imagePath; } set { if (this._imagePath != value) { this._imagePath = value; } } } public int CategoryID { get { return this._categoryID; } set { if (this._categoryID != value) { this._categoryID = value; } } } public int ServiceDuration { get { return this._serviceDuration; } set { if ((this._serviceDuration != value)) { this._serviceDuration = value; } } } } }
AspxCommerce/AspxCommerce2.7
AspxCommerce.ServiceItem/Entity/ServiceItemsDetailsInfo.cs
C#
mit
2,885
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 2448, 7292, 1012, 7642, 3989, 1025, 2478, 2291, 1012, 3793, 1025, 3415, 15327, 2004, 2361, 2595, 9006, 5017, 3401, 1012, 2326, 4221, 2213, 1063, 1031, 7642, 21335, 3468, 1033, 1031, 2951, 8663, 6494, 6593, 1033, 2270, 2465, 2326, 4221, 5244, 3207, 22081, 2378, 14876, 1063, 1031, 2951, 4168, 21784, 1033, 2797, 20014, 1035, 8875, 3593, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 5164, 1035, 8875, 18442, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 26066, 1035, 3976, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 5164, 1035, 2460, 6155, 23235, 3258, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 5164, 1035, 6412, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 5164, 1035, 3746, 15069, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 20014, 1035, 4696, 3593, 1025, 1031, 2951, 4168, 21784, 1033, 2797, 20014, 1035, 22858, 18924, 1025, 2270, 20014, 8875, 3593, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 8875, 3593, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 8875, 3593, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 8875, 3593, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 5164, 8875, 18442, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 8875, 18442, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 8875, 18442, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 8875, 18442, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 26066, 3976, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 3976, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 3976, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 3976, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 5164, 2460, 6155, 23235, 3258, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 2460, 6155, 23235, 3258, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 2460, 6155, 23235, 3258, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 2460, 6155, 23235, 3258, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 5164, 6412, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 6412, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 6412, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 6412, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 5164, 3746, 15069, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 3746, 15069, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 3746, 15069, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 3746, 15069, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 20014, 4696, 3593, 1063, 2131, 1063, 2709, 2023, 1012, 1035, 4696, 3593, 1025, 1065, 2275, 1063, 2065, 1006, 2023, 1012, 1035, 4696, 3593, 999, 1027, 3643, 1007, 1063, 2023, 1012, 1035, 4696, 3593, 1027, 3643, 1025, 1065, 1065, 1065, 2270, 20014, 22858, 18924, 1063, 2131, 30524, 3643, 1025, 1065, 1065, 1065, 1065, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1063, 2709, 2023, 1012, 1035, 22858, 18924, 1025, 1065, 2275, 1063, 2065, 1006, 1006, 2023, 1012, 1035, 22858, 18924, 999, 1027, 3643, 1007, 1007, 1063, 2023, 1012, 1035, 22858, 18924, 1027, 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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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1063, 2709, 2023, 1012, 1035, 22858, 18924, 1025, 1065, 2275, 1063, 2065, 1006, 1006, 2023, 1012, 1035, 22858, 18924, 999, 1027, 3643, 1007, 1007, 1063, 2023, 1012, 1035, 22858, 18924, 1027, 30526 ]
<!-- %BD_HTML%/SearchResult.htm --> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255"> <TITLE>úåöàú àéðèøðè - Takanot File</TITLE> </HEAD> <style> <!-- TR.A_Table {font-color:#3e6ea6; background-color: #f7f9fb; font-size:11;font-family: Arial,} TR.B_Table {font-color:#3e6ea6; background-color: #ecf1f6; font-size:11;font-family: Arial,} TR.C {font-color:#1e4a7a; background-color: #A9CAEF;font-weight:bold; font-size:11;font-family: Arial,} TR.clear { font-color:#1e4a7a; background-color: #FFFFFF;} H5 { font-family:Arial, Helvetica, sans-serif; font-size: 14px;} H3 { font-family:Arial, Helvetica, sans-serif; font-size: 16px;} TD.A_Row { font-family: Arial, Helvetica, sans-serif; font-weight:bold; font-style: normal; color: #093300; font-size: 10px} .defaultFont { color:#1f4a7b;font-family: Arial, Helvetica, sans-serif; font-size: 12px} --> </style> <BODY dir=rtl class="defaultFont"> <CENTER> <IMG src="/budget/Images/title1.jpg" align=bottom alt="ú÷öéá äîãéðä"> <TABLE align="center" border=0 cellspacing=0 cellpadding=0> <TR align="center"> <TD><H3>úåöàú çéôåù ìùðú 2006</H3></TD> </TR> <TR align="center"> <!--<TD><H3>ðúåðé áéöåò ðëåðéí ìñåó çåãù 04/2007</H3></TD>--> <TD><H3>ðúåðé áéöåò ëôé ùðøùîå áñôøé äðäìú äçùáåðåú ùì äîùøãéí - 04/2007<br></H3></TD> </TR> </TR align="center"> <TD><H3>àéï àçéãåú áéï äñòéôéí ìâáé îåòã òãëåï äðúåðéí</H3></TD> </TR> </TABLE> <H5>äñëåîéí äéðí ùì çå÷ äú÷öéá äî÷åøé åáàìôé ù÷ìéí <BR> </H5> </CENTER> <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#8fbcee"> <TR class="C" align="center"> <TD valign=top width=50>ñòéó</TD> <TD valign=top align="right" width=120>ùí ñòéó</TD> <TD valign=top width=65>äåöàä ðèå</TD> <TD valign=top width=65>äåöàä îåúðéú áäëðñä</TD> <TD valign=top width=65>ñä"ë äåöàä</TD> <TD valign=top width=65>äøùàä ìäúçééá</TD> <TD valign=top width=65>ùéà ë"à</TD> <TD valign=top width=40>ñä"ë ðåöì</TD> <TD valign=top width=40>àçåæ ðåöì</TD> </TR> </TABLE> <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#8fbcee"> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;06</TD> <TD valign=top align="right" width=120>&nbsp;îùøã äôðéí</TD> <TD valign=top width=65>&nbsp; 332,206</TD> <TD valign=top width=65>&nbsp; 45,823</TD> <TD valign=top width=65>&nbsp; 378,029</TD> <TD valign=top width=65>&nbsp; 107,616</TD> <TD valign=top width=65>&nbsp; 907.0</TD> <TD valign=top width=40>&nbsp; 410,283</TD> <TD valign=top width=40>&nbsp;108.53</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0601</TD> <TD valign=top align="right" width=120>&nbsp;úçåí ôòåìä ëììé</TD> <TD valign=top width=65>&nbsp; 87,342</TD> <TD valign=top width=65>&nbsp; 107</TD> <TD valign=top width=65>&nbsp; 87,449</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 170.0</TD> <TD valign=top width=40>&nbsp; 137,806</TD> <TD valign=top width=40>&nbsp;157.58</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060101</TD> <TD valign=top align="right" width=120>&nbsp;äðäìú äîùøã</TD> <TD valign=top width=65>&nbsp; 23,844</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 23,844</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 158.5</TD> <TD valign=top width=40>&nbsp; 25,826</TD> <TD valign=top width=40>&nbsp;108.31</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060102</TD> <TD valign=top align="right" width=120>&nbsp;äðäìú äîçåæåú</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 44</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060103</TD> <TD valign=top align="right" width=120>&nbsp;éòåõ îùôèé</TD> <TD valign=top width=65>&nbsp; 3,945</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 3,945</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 11.5</TD> <TD valign=top width=40>&nbsp; 3,836</TD> <TD valign=top width=40>&nbsp; 97.24</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060104</TD> <TD valign=top align="right" width=120>&nbsp;äãøëä àøâåï åùéèåú</TD> <TD valign=top width=65>&nbsp; 300</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 300</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 2,827</TD> <TD valign=top width=40>&nbsp;942.33</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060106</TD> <TD valign=top align="right" width=120>&nbsp;àîøëìåú</TD> <TD valign=top width=65>&nbsp; 53,391</TD> <TD valign=top width=65>&nbsp; 107</TD> <TD valign=top width=65>&nbsp; 53,498</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 99,786</TD> <TD valign=top width=40>&nbsp;186.52</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060108</TD> <TD valign=top align="right" width=120>&nbsp;îçùåá</TD> <TD valign=top width=65>&nbsp; 5,862</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 5,862</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 5,487</TD> <TD valign=top width=40>&nbsp; 93.60</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060110</TD> <TD valign=top align="right" width=120>&nbsp;îçùåá îéðäì äúëðåï</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0602</TD> <TD valign=top align="right" width=120>&nbsp;ô÷åç àøöé òì äáçéøåú</TD> <TD valign=top width=65>&nbsp; 29,382</TD> <TD valign=top width=65>&nbsp; 107</TD> <TD valign=top width=65>&nbsp; 29,489</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 2.0</TD> <TD valign=top width=40>&nbsp; 23,179</TD> <TD valign=top width=40>&nbsp; 78.60</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060201</TD> <TD valign=top align="right" width=120>&nbsp;ô÷åç àøöé òì äáçéøåú</TD> <TD valign=top width=65>&nbsp; 4,340</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 4,340</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 2.0</TD> <TD valign=top width=40>&nbsp; 16,427</TD> <TD valign=top width=40>&nbsp;378.50</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060203</TD> <TD valign=top align="right" width=120>&nbsp;áçéøåú ìîåòöåú àæåøéåú</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 107</TD> <TD valign=top width=65>&nbsp; 107</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060204</TD> <TD valign=top align="right" width=120>&nbsp;äåöàåú äáçéøåú ìøùåéåú</TD> <TD valign=top width=65>&nbsp; 15,200</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 15,200</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 1,222</TD> <TD valign=top width=40>&nbsp; 8.04</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060205</TD> <TD valign=top align="right" width=120>&nbsp;îéîåï îôìâåú øùåéåú î÷åîéåú</TD> <TD valign=top width=65>&nbsp; 9,842</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 9,842</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 5,530</TD> <TD valign=top width=40>&nbsp; 56.19</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;0603</TD> <TD valign=top align="right" width=120>&nbsp;ùìèåï î÷åîé</TD> <TD valign=top width=65>&nbsp; 7,884</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 7,884</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 48.5</TD> <TD valign=top width=40>&nbsp; 7,727</TD> <TD valign=top width=40>&nbsp; 98.01</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060301</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúéí îøëæééí</TD> <TD valign=top width=65>&nbsp; 7,884</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 7,884</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 48.5</TD> <TD valign=top width=40>&nbsp; 7,727</TD> <TD valign=top width=40>&nbsp; 98.01</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060302</TD> <TD valign=top align="right" width=120>&nbsp;àâó ùëø åë"à ìøùåî"÷</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060303</TD> <TD valign=top align="right" width=120>&nbsp;éçéãä ìçéåá àéùé</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060304</TD> <TD valign=top align="right" width=120>&nbsp;áé÷åøú áøùåéåú î÷åîéåú</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0604</TD> <TD valign=top align="right" width=120>&nbsp;îðäì äàåëìåñéï</TD> <TD valign=top width=65>&nbsp; 82,516</TD> <TD valign=top width=65>&nbsp; 9,897</TD> <TD valign=top width=65>&nbsp; 92,413</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 409.0</TD> <TD valign=top width=40>&nbsp; 101,664</TD> <TD valign=top width=40>&nbsp;110.01</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060401</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúéí îøëæééí áàâó</TD> <TD valign=top width=65>&nbsp; 18,115</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 18,115</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 94.5</TD> <TD valign=top width=40>&nbsp; 23,162</TD> <TD valign=top width=40>&nbsp;127.86</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060402</TD> <TD valign=top align="right" width=120>&nbsp;îçùåá îøùí äàåëìåñéï</TD> <TD valign=top width=65>&nbsp; 8,898</TD> <TD valign=top width=65>&nbsp; 3,544</TD> <TD valign=top width=65>&nbsp; 12,442</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 13,702</TD> <TD valign=top width=40>&nbsp;110.13</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060404</TD> <TD valign=top align="right" width=120>&nbsp;ìùëåú ìîðäì àåëìåñéï</TD> <TD valign=top width=65>&nbsp; 44,308</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 44,308</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 314.5</TD> <TD valign=top width=40>&nbsp; 48,351</TD> <TD valign=top width=40>&nbsp;109.12</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060405</TD> <TD valign=top align="right" width=120>&nbsp;áé÷åøú âáåìåú</TD> <TD valign=top width=65>&nbsp; 648</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 648</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060409</TD> <TD valign=top align="right" width=120>&nbsp;éçéãä ìèéôåì áòåáãéí æøéí</TD> <TD valign=top width=65>&nbsp; 190</TD> <TD valign=top width=65>&nbsp; 6,353</TD> <TD valign=top width=65>&nbsp; 6,543</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 7,839</TD> <TD valign=top width=40>&nbsp;119.81</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060410</TD> <TD valign=top align="right" width=120>&nbsp;éçéãú àëéôä òåáãéí æøéí</TD> <TD valign=top width=65>&nbsp; 10,357</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 10,357</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 8,611</TD> <TD valign=top width=40>&nbsp; 83.14</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;0605</TD> <TD valign=top align="right" width=120>&nbsp;úëðåï ôéæé</TD> <TD valign=top width=65>&nbsp; 53,640</TD> <TD valign=top width=65>&nbsp; 35,712</TD> <TD valign=top width=65>&nbsp; 89,352</TD> <TD valign=top width=65>&nbsp; 100,000</TD> <TD valign=top width=65>&nbsp; 81.5</TD> <TD valign=top width=40>&nbsp; 66,221</TD> <TD valign=top width=40>&nbsp; 74.11</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060501</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúéí îøëæééí áîéðäì äúëðåï</TD> <TD valign=top width=65>&nbsp; 20,189</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 20,189</TD> <TD valign=top width=65>&nbsp; 4,000</TD> <TD valign=top width=65>&nbsp; 81.5</TD> <TD valign=top width=40>&nbsp; 19,991</TD> <TD valign=top width=40>&nbsp; 99.02</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060504</TD> <TD valign=top align="right" width=120>&nbsp;úëðéåú îúàø</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 21,150</TD> <TD valign=top width=65>&nbsp; 21,150</TD> <TD valign=top width=65>&nbsp; 56,000</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 6,078</TD> <TD valign=top width=40>&nbsp; 28.74</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060506</TD> <TD valign=top align="right" width=120>&nbsp;âåó îúàí ìú÷ðåú äáðéä</TD> <TD valign=top width=65>&nbsp; 1,500</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 1,500</TD> <TD valign=top width=65>&nbsp; 2,250</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 378</TD> <TD valign=top width=40>&nbsp; 25.20</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060507</TD> <TD valign=top align="right" width=120>&nbsp;îãéðéåú åðäìé úëðåï</TD> <TD valign=top width=65>&nbsp; 400</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 400</TD> <TD valign=top width=65>&nbsp; 500</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 674</TD> <TD valign=top width=40>&nbsp;168.50</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060508</TD> <TD valign=top align="right" width=120>&nbsp;îò÷á á÷øä åúàåí úëðéåú</TD> <TD valign=top width=65>&nbsp; 700</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 700</TD> <TD valign=top width=65>&nbsp; 1,000</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 273</TD> <TD valign=top width=40>&nbsp; 39.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060509</TD> <TD valign=top align="right" width=120>&nbsp;äîåòöä äàøöéú ìúëðåï åáðéä</TD> <TD valign=top width=65>&nbsp; 25</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 25</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 10</TD> <TD valign=top width=40>&nbsp; 40.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060510</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúé úëðåï áîçåæåú</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 5,712</TD> <TD valign=top width=65>&nbsp; 5,712</TD> <TD valign=top width=65>&nbsp; 250</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 2,561</TD> <TD valign=top width=40>&nbsp; 44.84</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060511</TD> <TD valign=top align="right" width=120>&nbsp;îâæø òøáé ÷éãåí úåëðéåú</TD> <TD valign=top width=65>&nbsp; 25</TD> <TD valign=top width=65>&nbsp; 8,850</TD> <TD valign=top width=65>&nbsp; 8,875</TD> <TD valign=top width=65>&nbsp; 18,000</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 2,491</TD> <TD valign=top width=40>&nbsp; 28.07</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060512</TD> <TD valign=top align="right" width=120>&nbsp;åòãú úëðåï ìúùúéåú ìàåîéåú</TD> <TD valign=top width=65>&nbsp; 2,500</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 2,500</TD> <TD valign=top width=65>&nbsp; 1,000</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 5,141</TD> <TD valign=top width=40>&nbsp;205.64</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060513</TD> <TD valign=top align="right" width=120>&nbsp;åòãåú úëðåï îçåæéåú</TD> <TD valign=top width=65>&nbsp; 28,301</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 28,301</TD> <TD valign=top width=65>&nbsp; 17,000</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 28,625</TD> <TD valign=top width=40>&nbsp;101.14</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0606</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúé çéøåí åúô÷éãéí îéåçãéí</TD> <TD valign=top width=65>&nbsp; 173</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 173</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060601</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúéí îøëæééí</TD> <TD valign=top width=65>&nbsp; 4</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 4</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060602</TD> <TD valign=top align="right" width=120>&nbsp;øéùåé åôé÷åç</TD> <TD valign=top width=65>&nbsp; 35</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 35</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060604</TD> <TD valign=top align="right" width=120>&nbsp;øùåú ôñ"ç</TD> <TD valign=top width=65>&nbsp; 35</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 35</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060605</TD> <TD valign=top align="right" width=120>&nbsp;øéùåé îôòìéí áéèçåðééí</TD> <TD valign=top width=65>&nbsp; 99</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 99</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;0607</TD> <TD valign=top align="right" width=120>&nbsp;éçéãú øùí äòîåúåú</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060701</TD> <TD valign=top align="right" width=120>&nbsp;øùí äòîåúåú</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;0608</TD> <TD valign=top align="right" width=120>&nbsp;øæøáä</TD> <TD valign=top width=65>&nbsp; 5,134</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 5,134</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060801</TD> <TD valign=top align="right" width=120>&nbsp;øæøáä ìäúéé÷øåéåú</TD> <TD valign=top width=65>&nbsp; 5,134</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 5,134</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060802</TD> <TD valign=top align="right" width=120>&nbsp;øæøáä</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0609</TD> <TD valign=top align="right" width=120>&nbsp;éçéãú äôé÷åç</TD> <TD valign=top width=65>&nbsp; 13,174</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 13,174</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 12.0</TD> <TD valign=top width=40>&nbsp; 14,609</TD> <TD valign=top width=40>&nbsp;110.89</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;060901</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúéí îøëæéí</TD> <TD valign=top width=65>&nbsp; 12,596</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 12,596</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 12.0</TD> <TD valign=top width=40>&nbsp; 11,777</TD> <TD valign=top width=40>&nbsp; 93.50</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;060902</TD> <TD valign=top align="right" width=120>&nbsp;úôòåì åàçæ÷ä</TD> <TD valign=top width=65>&nbsp; 578</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 578</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 2,833</TD> <TD valign=top width=40>&nbsp;490.14</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;0610</TD> <TD valign=top align="right" width=120>&nbsp;ðöéáåú ëáàåú åäöìä</TD> <TD valign=top width=65>&nbsp; 6,933</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 6,933</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 27.0</TD> <TD valign=top width=40>&nbsp; 18,194</TD> <TD valign=top width=40>&nbsp;262.43</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;061002</TD> <TD valign=top align="right" width=120>&nbsp;ú÷öéá ðöéáåú ëáàåú åäöìä</TD> <TD valign=top width=65>&nbsp; 6,933</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 6,933</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 27.0</TD> <TD valign=top width=40>&nbsp; 17,650</TD> <TD valign=top width=40>&nbsp;254.58</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;061003</TD> <TD valign=top align="right" width=120>&nbsp;ú÷öéá îëììä ìëáàåú åäöìä</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 544</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0611</TD> <TD valign=top align="right" width=120>&nbsp;îéðäì äîéí</TD> <TD valign=top width=65>&nbsp; 3,774</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 3,774</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 3,312</TD> <TD valign=top width=40>&nbsp; 87.76</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;061104</TD> <TD valign=top align="right" width=120>&nbsp;ëç àãí åôòåìåú</TD> <TD valign=top width=65>&nbsp; 3,774</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 3,774</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 3,312</TD> <TD valign=top width=40>&nbsp; 87.76</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0614</TD> <TD valign=top align="right" width=120>&nbsp;äîîåðä òì äúàâéãéí</TD> <TD valign=top width=65>&nbsp; 2,164</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 2,164</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 1.0</TD> <TD valign=top width=40>&nbsp; 1,406</TD> <TD valign=top width=40>&nbsp; 64.97</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;061401</TD> <TD valign=top align="right" width=120>&nbsp;äîîåðä òì äúàâéãéí</TD> <TD valign=top width=65>&nbsp; 2,164</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 2,164</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 1.0</TD> <TD valign=top width=40>&nbsp; 1,406</TD> <TD valign=top width=40>&nbsp; 64.97</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;0615</TD> <TD valign=top align="right" width=120>&nbsp;úôòåì ùéøåúé ãú</TD> <TD valign=top width=65>&nbsp; 40,090</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 40,090</TD> <TD valign=top width=65>&nbsp; 7,616</TD> <TD valign=top width=65>&nbsp; 156.0</TD> <TD valign=top width=40>&nbsp; 36,164</TD> <TD valign=top width=40>&nbsp; 90.21</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;061501</TD> <TD valign=top align="right" width=120>&nbsp;ùéøåúé ãú ìòãåú ìà éäåãéåú</TD> <TD valign=top width=65>&nbsp; 29,644</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 29,644</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 156.0</TD> <TD valign=top width=40>&nbsp; 28,300</TD> <TD valign=top width=40>&nbsp; 95.47</TD> </TR> <TR class="A_Table" align="center"> <TD valign=top width=50>&nbsp;061502</TD> <TD valign=top align="right" width=120>&nbsp;øæøáä ìäúéé÷øåéåú- ùéøåúé ãú</TD> <TD valign=top width=65>&nbsp; 1,039</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 1,039</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 0</TD> <TD valign=top width=40>&nbsp; 0.00</TD> </TR> <TR class="B_Table" align="center"> <TD valign=top width=50>&nbsp;061503</TD> <TD valign=top align="right" width=120>&nbsp;îáðé ãú ìà éäåãééí</TD> <TD valign=top width=65>&nbsp; 9,407</TD> <TD valign=top width=65>&nbsp; 0</TD> <TD valign=top width=65>&nbsp; 9,407</TD> <TD valign=top width=65>&nbsp; 7,616</TD> <TD valign=top width=65>&nbsp; 0.0</TD> <TD valign=top width=40>&nbsp; 7,864</TD> <TD valign=top width=40>&nbsp; 83.60</TD> </TR> </TABLE> </CENTER> <BR> <CENTER> <table border="0" cellspacing="1" cellpadding="3" bgcolor="#8fbcee" dir="rtl"> <TR class="C" align="center"> <TD class="A_Row" valign=top width=80>ñéëåí ãå"ç</TD> <TD class="A_Row" valign=top width=60>äåöàä ðèå</TD> <TD class="A_Row" valign=top width=60>äåöàä îåúðéú áäëðñä</TD> <TD class="A_Row" valign=top width=60>ñä"ë äåöàä</TD> <TD class="A_Row" valign=top width=60>äøùàä ìäúçééá</TD> <TD class="A_Row" valign=top width=60>ùéà ë"à</TD> <TD class="A_Row" valign=top width=50>ñä"ë ðåöì</TD> <TD class="A_Row" valign=top width=50>àçåæ ðåöì</TD> </TR> <TR class="clear" align="center"> <TD class="A_Row" valign=top width=80>&nbsp;ú÷öéá î÷åøé</TD> <TD class="A_Row" valign=top width=60>&nbsp; 332,206</TD> <TD class="A_Row" valign=top width=60>&nbsp; 45,823</TD> <TD class="A_Row" valign=top width=60>&nbsp; 378,029</TD> <TD class="A_Row" valign=top width=60>&nbsp; 107,616</TD> <TD class="A_Row" valign=top width=60>&nbsp; 910</TD> <TD class="A_Row" valign=top width=50>&nbsp;</TD> <TD class="A_Row" valign=top width=50>&nbsp;</TD> </TR> <!--<TR class="clear" align="center"> <TD class="A_Row" valign=top width=80>&nbsp;ú÷öéá òì ùéðåééå</TD> <TD class="A_Row" valign=top width=60>&nbsp; 536,004</TD> <TD class="A_Row" valign=top width=60>&nbsp; 50,096</TD> <TD class="A_Row" valign=top width=60>&nbsp; 586,100</TD> <TD class="A_Row" valign=top width=60>&nbsp; 107,616</TD> <TD class="A_Row" valign=top width=60>&nbsp; 912</TD> <TD class="A_Row" valign=top width=50>&nbsp; 410,285</TD> <TD class="A_Row" valign=top width=50>&nbsp;108.53</TD> </TR>--> </TABLE> <CENTER> <TABLE WIDTH="100" > <TR> <TD align="center" nowrap> <IMG SRC="/budget/Images/semel.gif" HEIGHT=37 WIDTH=30 border = "0"><BR> <FONT SIZE=-2> <A HREF="http://www.mof.gov.il/rights.htm"> ëì äæëåéåú &copy; .ùîåøåú,2005,îãéðú éùøàì<BR></A> ðùîç ì÷áì àú äòøåúéëí åäöòåúéëí ìëúåáú: </FONT> <FONT SIZE=-2 dir=ltr> <A HREF="mailto:Webmaster@mof.gov.il">Webmaster@mof.gov.il</A><BR> </FONT> </TD> </TR> </TABLE> </CENTER> </CENTER> </BODY> </HTML>
daonb/obudget
data/queries/results/result-2006-06.html
HTML
bsd-3-clause
41,078
[ 30522, 1026, 999, 1011, 1011, 1003, 1038, 2094, 1035, 16129, 1003, 1013, 3945, 6072, 11314, 1012, 1044, 21246, 1011, 1011, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 3645, 1011, 8732, 2629, 1000, 1028, 1026, 2516, 1028, 25423, 10441, 2226, 29347, 29668, 2063, 16415, 29668, 2063, 1011, 27006, 6761, 2102, 5371, 1026, 1013, 2516, 1028, 1026, 1013, 2132, 1028, 1026, 2806, 1028, 1026, 999, 1011, 1011, 19817, 1012, 1037, 1035, 2795, 1063, 15489, 1011, 3609, 1024, 1001, 1017, 2063, 2575, 5243, 2575, 1025, 4281, 1011, 3609, 1024, 1001, 1042, 2581, 2546, 2683, 26337, 1025, 15489, 1011, 2946, 1024, 2340, 1025, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 1065, 19817, 1012, 1038, 1035, 2795, 1063, 15489, 1011, 3609, 1024, 1001, 1017, 2063, 2575, 5243, 2575, 1025, 4281, 1011, 3609, 1024, 1001, 14925, 2546, 2487, 2546, 2575, 1025, 15489, 1011, 2946, 1024, 2340, 1025, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 1065, 19817, 1012, 1039, 1063, 15489, 1011, 3609, 1024, 1001, 1015, 2063, 2549, 2050, 2581, 2050, 1025, 4281, 1011, 3609, 1024, 1001, 1037, 2683, 3540, 12879, 1025, 15489, 1011, 3635, 1024, 7782, 1025, 15489, 1011, 2946, 1024, 2340, 1025, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 1065, 19817, 1012, 3154, 1063, 15489, 1011, 3609, 1024, 1001, 1015, 2063, 2549, 2050, 2581, 2050, 1025, 4281, 1011, 3609, 1024, 1001, 21461, 4246, 4246, 1025, 1065, 1044, 2629, 1063, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 2002, 2140, 19510, 5555, 1010, 20344, 1011, 14262, 10128, 1025, 15489, 1011, 2946, 1024, 2403, 2361, 2595, 1025, 1065, 1044, 2509, 1063, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 2002, 2140, 19510, 5555, 1010, 20344, 1011, 14262, 10128, 1025, 15489, 1011, 2946, 1024, 2385, 2361, 2595, 1025, 1065, 14595, 1012, 1037, 1035, 5216, 1063, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 2002, 2140, 19510, 5555, 1010, 20344, 1011, 14262, 10128, 1025, 15489, 1011, 3635, 1024, 7782, 1025, 15489, 1011, 2806, 1024, 3671, 1025, 3609, 1024, 1001, 5641, 22394, 8889, 1025, 15489, 1011, 2946, 1024, 2184, 2361, 2595, 1065, 1012, 12398, 14876, 3372, 1063, 3609, 1024, 1001, 1015, 2546, 2549, 2050, 2581, 2497, 1025, 15489, 1011, 2155, 1024, 9342, 2140, 1010, 2002, 2140, 19510, 5555, 1010, 30524, 2415, 1028, 1026, 10047, 2290, 5034, 2278, 1027, 1000, 1013, 5166, 1013, 4871, 1013, 2516, 2487, 1012, 16545, 2290, 1000, 25705, 1027, 3953, 12456, 1027, 1000, 1057, 29669, 8913, 2050, 9932, 6679, 29668, 2050, 1000, 1028, 1026, 2795, 25705, 1027, 1000, 2415, 1000, 3675, 1027, 1014, 4442, 19498, 2075, 1027, 1014, 3526, 15455, 4667, 1027, 1014, 1028, 1026, 19817, 25705, 1027, 1000, 2415, 1000, 1028, 1026, 14595, 1028, 1026, 1044, 2509, 1028, 25423, 10441, 2226, 5766, 4887, 1045, 2226, 29668, 2226, 2294, 1026, 1013, 1044, 30523, 20344, 1011, 14262, 10128, 1025, 15489, 1011, 2946, 1024, 2260, 2361, 2595, 1065, 1011, 1011, 1028, 1026, 1013, 2806, 1028, 1026, 2303, 16101, 1027, 19387, 2140, 2465, 1027, 1000, 12398, 14876, 3372, 1000, 1028, 1026, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 20344, 1011, 14262, 10128, 1025, 15489, 1011, 2946, 1024, 2260, 2361, 2595, 1065, 1011, 1011, 1028, 1026, 1013, 2806, 1028, 1026, 2303, 16101, 1027, 19387, 2140, 2465, 1027, 1000, 12398, 14876, 3372, 1000, 1028, 1026, 30526 ]
#pragma once #define NOMINMAX #include <Windows.h> #include <string> #include <initializer_list> #include "../valve_sdk/sdk.hpp" namespace Utils { /* * @brief Create console * * Create and attach a console window to the current process */ void AttachConsole(); /* * @brief Detach console * * Detach and destroy the attached console */ void DetachConsole(); /* * @brief Print to console * * Replacement to printf that works with the newly created console */ bool ConsolePrint(const char* fmt, ...); /* * @brief Blocks execution until a key is pressed on the console window * */ char ConsoleReadKey(); /* * @brief Wait for all the given modules to be loaded * * @param timeout How long to wait * @param modules List of modules to wait for * * @returns See WaitForSingleObject return values. */ int WaitForModules(std::int32_t timeout, const std::initializer_list<std::wstring>& modules); /* * @brief Scan for a given byte pattern on a module * * @param module Base of the module to search * @param signature IDA-style byte array pattern * * @returns Address of the first occurence */ std::uint8_t* PatternScan(void* module, const char* signature); /* * @brief Set player clantag * * @param tag New clantag */ void SetClantag(const char* tag); /* * @brief Set player name * * @param name New name */ void SetName(const char* name); /* * @brief Reveal the ranks of all players on the server * */ void RankRevealAll(); }
MarkHC/CSGOSimple
CSGOSimple/helpers/utils.hpp
C++
mit
1,705
[ 30522, 1001, 10975, 8490, 2863, 2320, 1001, 9375, 2053, 10020, 17848, 1001, 2421, 1026, 3645, 1012, 1044, 1028, 1001, 2421, 1026, 5164, 1028, 1001, 2421, 1026, 3988, 17629, 1035, 2862, 1028, 1001, 2421, 1000, 1012, 1012, 1013, 10764, 1035, 17371, 2243, 1013, 17371, 2243, 1012, 6522, 2361, 1000, 3415, 15327, 21183, 12146, 1063, 1013, 1008, 1008, 1030, 4766, 3443, 10122, 1008, 1008, 3443, 1998, 22476, 1037, 10122, 3332, 2000, 1996, 2783, 2832, 1008, 1013, 11675, 22476, 8663, 19454, 2063, 1006, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 20010, 6776, 10122, 1008, 1008, 20010, 6776, 1998, 6033, 1996, 4987, 10122, 1008, 1013, 11675, 20010, 6776, 8663, 19454, 2063, 1006, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 6140, 2000, 10122, 1008, 1008, 6110, 2000, 6140, 2546, 2008, 2573, 2007, 1996, 4397, 2580, 10122, 1008, 1013, 22017, 2140, 10122, 16550, 1006, 9530, 3367, 25869, 1008, 4718, 2102, 1010, 1012, 1012, 1012, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 5991, 7781, 2127, 1037, 3145, 2003, 4508, 2006, 1996, 10122, 3332, 1008, 1008, 1013, 25869, 10122, 16416, 2094, 14839, 1006, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 3524, 2005, 2035, 1996, 2445, 14184, 2000, 2022, 8209, 1008, 1008, 1030, 11498, 2213, 2051, 5833, 2129, 2146, 2000, 3524, 1008, 1030, 11498, 2213, 14184, 2862, 1997, 14184, 2000, 3524, 2005, 1008, 1008, 1030, 5651, 2156, 3524, 29278, 7741, 2571, 16429, 20614, 2709, 5300, 1012, 1008, 1013, 20014, 3524, 14192, 7716, 16308, 1006, 2358, 2094, 1024, 1024, 20014, 16703, 1035, 1056, 2051, 5833, 1010, 9530, 3367, 2358, 2094, 1024, 1024, 3988, 17629, 1035, 2862, 1026, 2358, 2094, 1024, 1024, 1059, 3367, 4892, 1028, 1004, 14184, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 13594, 2005, 1037, 2445, 24880, 5418, 2006, 1037, 11336, 1008, 1008, 1030, 11498, 2213, 11336, 2918, 1997, 1996, 11336, 2000, 3945, 1008, 1030, 11498, 2213, 30524, 1030, 5651, 4769, 1997, 1996, 2034, 5258, 10127, 1008, 1013, 2358, 2094, 1024, 1024, 21318, 3372, 2620, 1035, 1056, 1008, 7060, 9336, 1006, 11675, 1008, 11336, 1010, 9530, 3367, 25869, 1008, 8085, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 2275, 2447, 6338, 15900, 1008, 1008, 1030, 11498, 2213, 6415, 2047, 6338, 15900, 1008, 1013, 11675, 2275, 20464, 26802, 2290, 1006, 9530, 3367, 25869, 1008, 6415, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 2275, 2447, 2171, 1008, 1008, 1030, 11498, 2213, 2171, 2047, 2171, 1008, 1013, 11675, 2275, 18442, 1006, 9530, 3367, 25869, 1008, 2171, 1007, 1025, 1013, 1008, 1008, 1030, 4766, 7487, 1996, 6938, 1997, 2035, 2867, 2006, 1996, 8241, 1008, 1008, 1013, 11675, 4635, 2890, 3726, 7911, 3363, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 8085, 16096, 1011, 2806, 24880, 9140, 5418, 1008, 1008, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8085, 16096, 1011, 2806, 24880, 9140, 5418, 1008, 1008, 30526 ]
# frozen_string_literal: true require 'ffaker' FactoryBot.define do sequence(:random_string) { FFaker::Lorem.sentence } sequence(:random_description) { FFaker::Lorem.paragraphs(Kernel.rand(1..5)).join("\n") } sequence(:random_email) { FFaker::Internet.email } factory :classification, class: Spree::Classification do end factory :exchange, class: Exchange do incoming { false } order_cycle { OrderCycle.first || FactoryBot.create(:simple_order_cycle) } sender { incoming ? FactoryBot.create(:enterprise) : order_cycle.coordinator } receiver { incoming ? order_cycle.coordinator : FactoryBot.create(:enterprise) } end factory :schedule, class: Schedule do sequence(:name) { |n| "Schedule #{n}" } transient do order_cycles { [OrderCycle.first || create(:simple_order_cycle)] } end before(:create) do |schedule, evaluator| evaluator.order_cycles.each do |order_cycle| order_cycle.schedules << schedule end end end factory :proxy_order, class: ProxyOrder do subscription order_cycle { subscription.order_cycles.first } before(:create) do |proxy_order, _proxy| proxy_order.order&.update_attribute(:order_cycle_id, proxy_order.order_cycle_id) end end factory :variant_override, class: VariantOverride do price { 77.77 } on_demand { false } count_on_hand { 11_111 } default_stock { 2000 } resettable { false } trait :on_demand do on_demand { true } count_on_hand { nil } end trait :use_producer_stock_settings do on_demand { nil } count_on_hand { nil } end end factory :inventory_item, class: InventoryItem do enterprise variant visible { true } end factory :enterprise_relationship do end factory :enterprise_role do end factory :enterprise_group, class: EnterpriseGroup do name { 'Enterprise group' } sequence(:permalink) { |n| "group#{n}" } description { 'this is a group' } on_front_page { false } address { FactoryBot.build(:address) } end factory :enterprise_fee, class: EnterpriseFee do transient { amount { nil } } sequence(:name) { |n| "Enterprise fee #{n}" } sequence(:fee_type) { |n| EnterpriseFee::FEE_TYPES[n % EnterpriseFee::FEE_TYPES.count] } enterprise { Enterprise.first || FactoryBot.create(:supplier_enterprise) } calculator { build(:calculator_per_item, preferred_amount: amount) } after(:create) { |ef| ef.calculator.save! } trait :flat_rate do transient { amount { 1 } } calculator { build(:calculator_flat_rate, preferred_amount: amount) } end trait :per_item do transient { amount { 1 } } calculator { build(:calculator_per_item, preferred_amount: amount) } end end factory :adjustment_metadata, class: AdjustmentMetadata do adjustment { FactoryBot.create(:adjustment) } enterprise { FactoryBot.create(:distributor_enterprise) } fee_name { 'fee' } fee_type { 'packing' } enterprise_role { 'distributor' } end factory :producer_property, class: ProducerProperty do value { 'abc123' } producer { create(:supplier_enterprise) } property end factory :stripe_account do enterprise { FactoryBot.create(:distributor_enterprise) } stripe_user_id { "abc123" } stripe_publishable_key { "xyz456" } end end
openfoodfoundation/openfoodnetwork
spec/factories.rb
Ruby
agpl-3.0
3,400
[ 30522, 1001, 7708, 1035, 5164, 1035, 18204, 1024, 2995, 5478, 1005, 21461, 22626, 1005, 4713, 18384, 1012, 9375, 2079, 5537, 1006, 1024, 6721, 1035, 5164, 1007, 1063, 21461, 22626, 1024, 1024, 19544, 2213, 1012, 6251, 1065, 5537, 1006, 1024, 6721, 1035, 6412, 1007, 1063, 21461, 22626, 1024, 1024, 19544, 2213, 1012, 20423, 2015, 1006, 16293, 1012, 14566, 1006, 1015, 1012, 1012, 1019, 1007, 1007, 1012, 3693, 1006, 1000, 1032, 1050, 1000, 1007, 1065, 5537, 1006, 1024, 6721, 1035, 10373, 1007, 1063, 21461, 22626, 1024, 1024, 4274, 1012, 10373, 1065, 4713, 1024, 5579, 1010, 2465, 1024, 11867, 9910, 1024, 1024, 5579, 2079, 2203, 4713, 1024, 3863, 1010, 2465, 1024, 3863, 2079, 14932, 1063, 6270, 1065, 2344, 1035, 5402, 1063, 2344, 23490, 1012, 2034, 1064, 1064, 4713, 18384, 1012, 3443, 1006, 1024, 3722, 1035, 2344, 1035, 5402, 1007, 1065, 4604, 2121, 1063, 14932, 1029, 4713, 18384, 1012, 3443, 1006, 1024, 6960, 1007, 1024, 2344, 1035, 5402, 1012, 10669, 1065, 8393, 1063, 14932, 1029, 2344, 1035, 5402, 1012, 10669, 1024, 4713, 18384, 1012, 3443, 1006, 1024, 6960, 1007, 1065, 2203, 4713, 1024, 6134, 1010, 2465, 1024, 6134, 2079, 5537, 1006, 1024, 2171, 1007, 1063, 1064, 1050, 1064, 1000, 6134, 1001, 1063, 1050, 1065, 1000, 1065, 25354, 2079, 2344, 1035, 12709, 1063, 1031, 2344, 23490, 1012, 2034, 1064, 1064, 3443, 1006, 1024, 3722, 1035, 2344, 1035, 5402, 1007, 1033, 1065, 2203, 2077, 1006, 1024, 3443, 1007, 2079, 1064, 6134, 1010, 9345, 7630, 8844, 1064, 9345, 7630, 8844, 1012, 2344, 1035, 12709, 1012, 2169, 2079, 1064, 2344, 1035, 5402, 1064, 2344, 1035, 5402, 1012, 20283, 1026, 1026, 6134, 2203, 2203, 2203, 4713, 1024, 24540, 1035, 2344, 1010, 2465, 1024, 24540, 8551, 2121, 2079, 15002, 2344, 1035, 5402, 1063, 15002, 1012, 2344, 1035, 12709, 1012, 2034, 1065, 2077, 1006, 1024, 3443, 1007, 2079, 1064, 24540, 1035, 2344, 1010, 1035, 24540, 1064, 24540, 1035, 2344, 1012, 2344, 1004, 1012, 10651, 1035, 17961, 1006, 1024, 2344, 1035, 5402, 1035, 8909, 1010, 24540, 1035, 2344, 1012, 2344, 1035, 5402, 1035, 8909, 1007, 2203, 2203, 4713, 1024, 8349, 1035, 2058, 15637, 1010, 2465, 1024, 8349, 7840, 15637, 2079, 3976, 1063, 6255, 1012, 6255, 1065, 2006, 1035, 5157, 1063, 6270, 1065, 4175, 1035, 2006, 1035, 2192, 1063, 2340, 1035, 11118, 1065, 12398, 1035, 4518, 1063, 2456, 1065, 25141, 10880, 1063, 6270, 1065, 18275, 1024, 2006, 1035, 5157, 2079, 2006, 1035, 5157, 1063, 2995, 1065, 4175, 1035, 2006, 1035, 2192, 30524, 4518, 1035, 10906, 2079, 2006, 1035, 5157, 1063, 9152, 2140, 1065, 4175, 1035, 2006, 1035, 2192, 1063, 9152, 2140, 1065, 2203, 2203, 4713, 1024, 12612, 1035, 8875, 1010, 2465, 1024, 12612, 4221, 2213, 2079, 6960, 8349, 5710, 1063, 2995, 1065, 2203, 4713, 1024, 6960, 1035, 3276, 2079, 2203, 4713, 1024, 6960, 1035, 2535, 2079, 2203, 4713, 1024, 6960, 1035, 2177, 1010, 2465, 1024, 6960, 17058, 2079, 2171, 1063, 1005, 6960, 2177, 1005, 1065, 5537, 1006, 1024, 2566, 9067, 19839,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, 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, 1063, 9152, 2140, 1065, 2203, 18275, 1024, 2224, 1035, 3135, 1035, 30526 ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_22) on Wed Mar 02 16:46:10 EST 2011 --> <TITLE> Uses of Interface gov.nih.nci.cabig.caaers.web.ae.AdverseEventInputCommand </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Uses of Interface gov.nih.nci.cabig.caaers.web.ae.AdverseEventInputCommand"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../../../index.html?gov/nih/nci/cabig/caaers/web/ae/class-use/AdverseEventInputCommand.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="AdverseEventInputCommand.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Interface<br>gov.nih.nci.cabig.caaers.web.ae.AdverseEventInputCommand</B></H2> </CENTER> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Packages that use <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">AdverseEventInputCommand</A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#gov.nih.nci.cabig.caaers.web.ae"><B>gov.nih.nci.cabig.caaers.web.ae</B></A></TD> <TD>&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="gov.nih.nci.cabig.caaers.web.ae"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">AdverseEventInputCommand</A> in <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/package-summary.html">gov.nih.nci.cabig.caaers.web.ae</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left" COLSPAN="2">Classes in <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/package-summary.html">gov.nih.nci.cabig.caaers.web.ae</A> with type parameters of type <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">AdverseEventInputCommand</A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/BeginTab.html" title="class in gov.nih.nci.cabig.caaers.web.ae">BeginTab&lt;T extends AdverseEventInputCommand&gt;</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left" COLSPAN="2">Subinterfaces of <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">AdverseEventInputCommand</A> in <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/package-summary.html">gov.nih.nci.cabig.caaers.web.ae</A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;interface</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/ExpeditedAdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">ExpeditedAdverseEventInputCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;interface</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/RoutineAdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">RoutineAdverseEventInputCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left" COLSPAN="2">Classes in <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/package-summary.html">gov.nih.nci.cabig.caaers.web.ae</A> that implement <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae">AdverseEventInputCommand</A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AbstractExpeditedAdverseEventInputCommand.html" title="class in gov.nih.nci.cabig.caaers.web.ae">AbstractExpeditedAdverseEventInputCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/CaptureAdverseEventInputCommand.html" title="class in gov.nih.nci.cabig.caaers.web.ae">CaptureAdverseEventInputCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/EditExpeditedAdverseEventCommand.html" title="class in gov.nih.nci.cabig.caaers.web.ae">EditExpeditedAdverseEventCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/ReviewAeReportCommand.html" title="class in gov.nih.nci.cabig.caaers.web.ae">ReviewAeReportCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the command class for ReviewAeReportController</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/ReviewEvaluationPeriodCommand.html" title="class in gov.nih.nci.cabig.caaers.web.ae">ReviewEvaluationPeriodCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/SubmitExpeditedAdverseEventCommand.html" title="class in gov.nih.nci.cabig.caaers.web.ae">SubmitExpeditedAdverseEventCommand</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../gov/nih/nci/cabig/caaers/web/ae/AdverseEventInputCommand.html" title="interface in gov.nih.nci.cabig.caaers.web.ae"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../../../index.html?gov/nih/nci/cabig/caaers/web/ae/class-use/AdverseEventInputCommand.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="AdverseEventInputCommand.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
NCIP/caaers
caAERS/software/docs/gov/nih/nci/cabig/caaers/web/ae/class-use/AdverseEventInputCommand.html
HTML
bsd-3-clause
13,049
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, 19817, 30524, 21981, 9388, 6185, 2385, 1024, 4805, 1024, 2184, 9765, 2249, 1011, 1011, 1028, 1026, 2516, 1028, 3594, 1997, 8278, 18079, 1012, 9152, 2232, 1012, 13316, 2072, 1012, 9298, 8004, 1012, 6187, 27867, 2015, 1012, 4773, 1012, 29347, 1012, 15316, 18697, 16778, 16275, 4904, 9006, 2386, 2094, 1026, 1013, 2516, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 2828, 1027, 1000, 3793, 1013, 20116, 2015, 1000, 17850, 12879, 1027, 1000, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 1012, 1012, 1013, 6782, 21030, 2102, 1012, 20116, 2015, 1000, 2516, 1027, 1000, 2806, 1000, 1028, 1026, 5896, 2828, 1027, 1000, 3793, 1013, 9262, 22483, 1000, 1028, 3853, 3332, 3775, 9286, 1006, 1007, 1063, 6687, 1012, 6254, 1012, 2516, 1027, 1000, 3594, 1997, 8278, 18079, 1012, 9152, 2232, 1012, 13316, 2072, 1012, 9298, 8004, 1012, 6187, 27867, 2015, 1012, 4773, 1012, 29347, 1012, 15316, 18697, 16778, 16275, 4904, 9006, 2386, 2094, 1000, 1025, 1065, 1026, 1013, 5896, 1028, 1026, 16839, 23235, 1028, 1026, 1013, 16839, 23235, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1038, 18195, 12898, 2099, 1027, 1000, 2317, 1000, 2006, 11066, 1027, 1000, 3332, 3775, 9286, 1006, 1007, 1025, 1000, 1028, 1026, 999, 1011, 1011, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 2707, 1997, 2327, 6583, 26493, 2906, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1011, 1011, 1028, 1026, 1037, 2171, 1027, 1000, 6583, 26493, 2906, 1035, 2327, 1000, 1028, 1026, 999, 1011, 1011, 1011, 1011, 1028, 1026, 1013, 1037, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 1001, 13558, 1011, 6583, 26493, 2906, 1035, 2327, 1000, 2516, 1027, 1000, 13558, 9163, 6971, 1000, 1028, 1026, 1013, 1037, 1028, 1026, 2795, 3675, 1027, 1000, 1014, 1000, 9381, 1027, 1000, 2531, 1003, 1000, 3526, 15455, 4667, 1027, 1000, 1015, 1000, 4442, 19498, 2075, 1027, 1000, 1014, 1000, 12654, 1027, 1000, 1000, 1028, 1026, 19817, 1028, 1026, 14595, 8902, 13102, 2319, 1027, 1016, 1038, 18195, 12898, 2099, 1027, 1000, 1001, 25212, 4402, 4246, 1000, 2465, 1027, 1000, 6583, 26493, 2906, 29109, 2140, 2487, 1000, 1028, 1026, 1037, 2171, 1027, 1000, 6583, 26493, 2906, 1035, 2327, 1035, 2034, 10524, 1000, 1028, 1026, 999, 1011, 1011, 1011, 1011, 1028, 1026, 1013, 1037, 1028, 1026, 2795, 3675, 1027, 1000, 1014, 1000, 3526, 15455, 4667, 1027, 1000, 1014, 1000, 4442, 19498, 2075, 1027, 1000, 1017, 1000, 12654, 1027, 1000, 1000, 1028, 1026, 19817, 25705, 1027, 1000, 2415, 1000, 11748, 23773, 1027, 1000, 2327, 1000, 30523, 1013, 16129, 2549, 1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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1013, 16129, 2549, 1013, 6065, 1012, 26718, 2094, 1000, 1028, 1026, 999, 1011, 1011, 2047, 13704, 1011, 1011, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 999, 1011, 1011, 7013, 2011, 9262, 3527, 2278, 1006, 3857, 1015, 1012, 1019, 1012, 1014, 1035, 2570, 1007, 2006, 30526 ]
{% macro vital(addon, type) %} <div class="vital"> {% if type in ('updated', 'created') %} <span class="updated"> {% if type == 'updated' %} {# L10n: {0} is a date. #} {{ _('Updated {0}')|f(addon.last_updated|datetime) }} {% else %} {# L10n: {0} is a date. #} {{ _('Added {0}')|f(addon.created|datetime) }} {% endif %} </span> {% elif type in ('downloads', 'adu') %} {% if type == 'downloads' %} <span class="downloads adu"> {% trans cnt=addon.weekly_downloads, num=addon.weekly_downloads|numberfmt %} {{ num }} weekly download {% pluralize %} {{ num }} weekly downloads {% endtrans %} </span> {% else %} <span class="adu"> {% set adu=addon.average_daily_users %} {% trans cnt=adu, num=adu|numberfmt %} {{ num }} user {% pluralize %} {{ num }} users {% endtrans %} </span> {% endif %} {% endif %} </div> {% endmacro %} {% macro addon_heading(addon, version) %} <h1{{ addon.name|locale_html }}> {{ addon.name }} {% if version %} <span class="version">{{ version.version }}</span> {% endif %} </h1> {% endmacro %} {% macro sort_vital(addon, field) %} {% if field in ('popular', 'downloads') or not addon.show_adu() %} <div class="adu downloads"> {% with num=addon.weekly_downloads %} {# L10n: {0} is the number of downloads. #} {{ ngettext('{0} weekly download', '{0} weekly downloads', num)|f(num|numberfmt) }} {% endwith %} </div> {% else %} <div class="adu"> {% with num=addon.average_daily_users %} {# L10n: {0} is the number of users. #} {{ ngettext('{0} user', '{0} users', num)|f(num|numberfmt) }} {% endwith %} </div> {% endif %} {% if field in ('created', 'updated') %} <div class="updated"> {% if field == 'created' %} {# L10n: {0} is a date. #} {{ _('Added {0}')|f(addon.created|datetime) }} {% else %} {# L10n: {0} is a date. #} {{ _('Updated {0}')|f(addon.last_updated|datetime) }} {% endif %} </div> {% endif %} {% endmacro %}
jinankjain/zamboni
apps/addons/templates/addons/macros.html
HTML
bsd-3-clause
2,302
[ 30522, 1063, 1003, 26632, 8995, 1006, 5587, 2239, 1010, 2828, 1007, 1003, 1065, 1026, 4487, 2615, 2465, 1027, 1000, 8995, 1000, 1028, 1063, 1003, 2065, 2828, 1999, 1006, 1005, 7172, 1005, 1010, 1005, 2580, 1005, 1007, 1003, 1065, 1026, 8487, 2465, 1027, 1000, 7172, 1000, 1028, 1063, 1003, 2065, 2828, 1027, 1027, 1005, 7172, 1005, 1003, 1065, 1063, 1001, 1048, 10790, 2078, 1024, 1063, 1014, 1065, 2003, 1037, 3058, 1012, 1001, 1065, 1063, 1063, 1035, 1006, 1005, 7172, 1063, 1014, 1065, 1005, 1007, 1064, 1042, 1006, 5587, 2239, 1012, 2197, 1035, 7172, 1064, 3058, 7292, 1007, 1065, 1065, 1063, 1003, 2842, 1003, 1065, 1063, 1001, 1048, 10790, 2078, 1024, 1063, 1014, 1065, 2003, 1037, 3058, 1012, 1001, 1065, 1063, 1063, 1035, 1006, 1005, 2794, 1063, 1014, 1065, 1005, 1007, 1064, 1042, 1006, 5587, 2239, 1012, 2580, 1064, 3058, 7292, 1007, 1065, 1065, 1063, 1003, 2203, 10128, 1003, 1065, 1026, 1013, 8487, 1028, 1063, 1003, 12005, 2546, 2828, 1999, 1006, 1005, 22956, 1005, 1010, 1005, 4748, 2226, 1005, 1007, 1003, 1065, 1063, 1003, 2065, 2828, 1027, 1027, 1005, 22956, 1005, 1003, 1065, 1026, 8487, 2465, 1027, 1000, 22956, 4748, 2226, 1000, 1028, 1063, 1003, 9099, 27166, 2102, 1027, 5587, 2239, 1012, 4882, 1035, 22956, 1010, 16371, 2213, 1027, 5587, 2239, 1012, 4882, 1035, 22956, 1064, 2193, 16715, 2102, 1003, 1065, 1063, 1063, 16371, 2213, 1065, 1065, 4882, 8816, 1063, 1003, 13994, 4697, 1003, 1065, 1063, 1063, 16371, 2213, 1065, 1065, 4882, 22956, 1063, 1003, 2203, 6494, 3619, 1003, 1065, 1026, 1013, 8487, 1028, 1063, 1003, 2842, 1003, 1065, 1026, 8487, 2465, 1027, 1000, 4748, 2226, 1000, 1028, 1063, 1003, 2275, 4748, 2226, 1027, 5587, 2239, 1012, 2779, 1035, 3679, 1035, 5198, 1003, 1065, 1063, 1003, 9099, 27166, 2102, 1027, 4748, 2226, 1010, 16371, 2213, 1027, 4748, 2226, 1064, 2193, 16715, 2102, 1003, 1065, 1063, 1063, 16371, 2213, 1065, 1065, 5310, 1063, 1003, 13994, 4697, 1003, 1065, 1063, 1063, 16371, 2213, 1065, 1065, 5198, 1063, 1003, 2203, 6494, 3619, 1003, 1065, 1026, 1013, 8487, 1028, 1063, 1003, 2203, 10128, 1003, 1065, 1063, 1003, 2203, 10128, 1003, 1065, 1026, 1013, 4487, 2615, 30524, 2063, 1035, 16129, 1065, 1065, 1028, 1063, 1063, 5587, 2239, 1012, 2171, 1065, 1065, 1063, 1003, 2065, 2544, 1003, 1065, 1026, 8487, 2465, 1027, 1000, 2544, 1000, 1028, 1063, 1063, 2544, 1012, 2544, 1065, 1065, 1026, 1013, 8487, 1028, 1063, 1003, 2203, 10128, 1003, 1065, 1026, 1013, 1044, 2487, 1028, 1063, 1003, 2203, 22911, 3217, 1003, 1065, 1063, 1003, 26632, 4066, 1035, 8995, 1006, 5587, 2239, 1010, 2492, 1007, 1003, 1065, 1063, 1003, 2065, 2492, 1999, 1006, 1005, 2759, 1005, 1010, 1005, 22956, 1005, 1007, 2030, 2025, 5587, 2239, 1012, 2265, 1035, 4748, 2226, 1006, 1007, 1003, 1065, 1026, 4487, 2615, 2465, 1027, 1000, 4748, 2226, 22956, 1000, 1028, 1063, 1003, 2007, 16371, 2213, 1027, 5587, 30523, 1028, 1063, 1003, 2203, 22911, 3217, 1003, 1065, 1063, 1003, 26632, 5587, 2239, 1035, 5825, 1006, 5587, 2239, 1010, 2544, 1007, 1003, 1065, 1026, 1044, 2487, 1063, 1063, 5587, 2239, 1012, 2171, 1064, 2334, 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, 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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, 1028, 1063, 1003, 2203, 22911, 3217, 1003, 1065, 1063, 1003, 26632, 5587, 2239, 1035, 5825, 1006, 5587, 2239, 1010, 2544, 1007, 1003, 1065, 1026, 1044, 2487, 1063, 1063, 5587, 2239, 1012, 2171, 1064, 2334, 30526 ]
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class Foam::OFstream Description Output to file stream. SourceFiles OFstream.C \*---------------------------------------------------------------------------*/ #ifndef OFstream_H #define OFstream_H #include "OSstream.H" #include "fileName.H" #include "className.H" #include <fstream> using std::ofstream; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { class OFstream; /*---------------------------------------------------------------------------*\ Class OFstreamAllocator Declaration \*---------------------------------------------------------------------------*/ //- A std::ostream with ability to handle compressed files class OFstreamAllocator { friend class OFstream; ostream* ofPtr_; // Constructors //- Construct from pathname OFstreamAllocator ( const fileName& pathname, IOstream::compressionType compression=IOstream::UNCOMPRESSED ); // Destructor ~OFstreamAllocator(); public: // Member functions //- Access to underlying std::ostream ostream& stdStream(); }; /*---------------------------------------------------------------------------*\ Class OFstream Declaration \*---------------------------------------------------------------------------*/ class OFstream : private OFstreamAllocator, public OSstream { // Private data fileName pathname_; public: // Declare name of the class and its debug switch ClassName("OFstream"); // Constructors //- Construct from pathname OFstream ( const fileName& pathname, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED ); // Destructor ~OFstream(); // Member functions // Access //- Return the name of the stream const fileName& name() const { return pathname_; } //- Return non-const access to the name of the stream fileName& name() { return pathname_; } // Print //- Print description of IOstream to Ostream void print(Ostream&) const; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Global predefined null output stream extern OFstream Snull; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //
OpenCFD/OpenFOAM-1.7.x
src/OpenFOAM/db/IOstreams/Fstreams/OFstream.H
C++
gpl-3.0
3,886
[ 30522, 1013, 1008, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1008, 1032, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1064, 1032, 1032, 1013, 1042, 29464, 6392, 1064, 2330, 14876, 3286, 1024, 1996, 2330, 3120, 12935, 2094, 6994, 8758, 1032, 1032, 1013, 1051, 2566, 3370, 1064, 1032, 1032, 1013, 1037, 1050, 2094, 1064, 9385, 1006, 1039, 1007, 2889, 1011, 2230, 2330, 2278, 2546, 2094, 5183, 1012, 1032, 1032, 1013, 1049, 2019, 11514, 9513, 1064, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 6105, 2023, 5371, 2003, 2112, 1997, 2330, 14876, 3286, 1012, 2330, 14876, 3286, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1010, 2593, 2544, 1017, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 2330, 14876, 3286, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 30524, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 2007, 2330, 14876, 3286, 1012, 2065, 2025, 1010, 2156, 1026, 8299, 1024, 1013, 1013, 7479, 1012, 27004, 1012, 8917, 1013, 15943, 1013, 1028, 1012, 2465, 17952, 1024, 1024, 1997, 21422, 6412, 6434, 2000, 5371, 5460, 1012, 3120, 8873, 4244, 1997, 21422, 1012, 1039, 1032, 1008, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1008, 1013, 1001, 2065, 13629, 2546, 1997, 21422, 1035, 1044, 1001, 9375, 1997, 21422, 1035, 1044, 1001, 2421, 1000, 9808, 21422, 1012, 1044, 1000, 1001, 2421, 1000, 5371, 18442, 1012, 1044, 1000, 1001, 2421, 30523, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 30526 ]
require 'test_helper' class KeysallsControllerTest < ActionController::TestCase setup do @keysall = keysalls(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:keysalls) end test "should get new" do get :new assert_response :success end test "should create keysall" do assert_difference('Keysall.count') do post :create, keysall: { } end assert_redirected_to keysall_path(assigns(:keysall)) end test "should show keysall" do get :show, id: @keysall assert_response :success end test "should get edit" do get :edit, id: @keysall assert_response :success end test "should update keysall" do patch :update, id: @keysall, keysall: { } assert_redirected_to keysall_path(assigns(:keysall)) end test "should destroy keysall" do assert_difference('Keysall.count', -1) do delete :destroy, id: @keysall end assert_redirected_to keysalls_path end end
JaniKibichi/walkby
test/controllers/keysalls_controller_test.rb
Ruby
mit
1,014
[ 30522, 5478, 1005, 3231, 1035, 2393, 2121, 1005, 2465, 6309, 8095, 9363, 3372, 26611, 22199, 1026, 2895, 8663, 13181, 10820, 1024, 1024, 3231, 18382, 16437, 2079, 1030, 6309, 8095, 1027, 6309, 8095, 2015, 1006, 1024, 2028, 1007, 2203, 3231, 1000, 2323, 2131, 5950, 1000, 2079, 2131, 1024, 5950, 20865, 1035, 3433, 1024, 3112, 20865, 1035, 2025, 1035, 9152, 2140, 24022, 1006, 1024, 6309, 8095, 2015, 1007, 2203, 3231, 1000, 2323, 2131, 2047, 1000, 2079, 2131, 1024, 2047, 20865, 1035, 3433, 1024, 3112, 2203, 3231, 1000, 2323, 3443, 6309, 8095, 1000, 2079, 20865, 1035, 4489, 1006, 1005, 6309, 8095, 1012, 4175, 1005, 1007, 2079, 2695, 1024, 3443, 1010, 6309, 8095, 1024, 1063, 1065, 2203, 20865, 1035, 2417, 7442, 10985, 1035, 2000, 6309, 8095, 1035, 4130, 1006, 24022, 1006, 1024, 6309, 8095, 1007, 1007, 2203, 3231, 1000, 2323, 2265, 6309, 8095, 1000, 2079, 2131, 1024, 2265, 1010, 8909, 1024, 1030, 6309, 8095, 20865, 1035, 3433, 1024, 3112, 2203, 3231, 1000, 2323, 2131, 10086, 1000, 2079, 2131, 1024, 10086, 1010, 8909, 1024, 1030, 6309, 8095, 20865, 1035, 3433, 1024, 3112, 2203, 3231, 1000, 2323, 10651, 6309, 8095, 1000, 2079, 8983, 1024, 10651, 1010, 8909, 1024, 1030, 6309, 8095, 1010, 6309, 8095, 1024, 1063, 1065, 20865, 1035, 2417, 7442, 10985, 1035, 2000, 6309, 8095, 1035, 4130, 1006, 24022, 1006, 1024, 6309, 8095, 1007, 1007, 2203, 3231, 1000, 2323, 6033, 6309, 8095, 1000, 2079, 20865, 1035, 4489, 1006, 1005, 6309, 8095, 1012, 4175, 1005, 1010, 1011, 1015, 1007, 2079, 3972, 12870, 1024, 6033, 1010, 8909, 1024, 1030, 6309, 8095, 2203, 20865, 1035, 2417, 7442, 10985, 1035, 2000, 6309, 8095, 2015, 1035, 4130, 2203, 2203, 102, 0, 0, 0, 0, 0, 0, 0,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> <meta charset=utf-8> <meta property=og:title content='{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}'> <meta property=og:description content='{{ page.description }}'> <meta property=og:image content={{site.baseurl}}{{ page.picture }}> <!-- evil icon --> <link rel="stylesheet" href="{{"/assets/evil-icons.min.css" | prepend:site.baseurl }}"> <script src="{{"/assets/evil-icons.min.js" | prepend:site.baseurl }}"></script> <!-- todo: include this into main.css --> <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> {% include ga.html %} </head>
markusleh/markusleh.github.io
_includes/head.html
HTML
apache-2.0
1,300
[ 30522, 1026, 2132, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 1060, 1011, 25423, 1011, 11892, 1000, 4180, 1027, 1000, 29464, 1027, 3341, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 4180, 1027, 1000, 9381, 1027, 5080, 1011, 9381, 1010, 3988, 1011, 4094, 1027, 1015, 1000, 1028, 1026, 2516, 1028, 1063, 1003, 2065, 3931, 1012, 2516, 1003, 1065, 1063, 1063, 3931, 1012, 2516, 1065, 1065, 1063, 1003, 2842, 1003, 1065, 1063, 1063, 2609, 1012, 2516, 1065, 1065, 1063, 1003, 2203, 10128, 1003, 1065, 1026, 1013, 2516, 1028, 1026, 18804, 2171, 1027, 1000, 6412, 1000, 4180, 1027, 1000, 1063, 1003, 2065, 3931, 1012, 28142, 1003, 1065, 1063, 1063, 3931, 1012, 28142, 1064, 6167, 1035, 16129, 1064, 6167, 1035, 2047, 12735, 1064, 19817, 4609, 16280, 1024, 8148, 1065, 1065, 1063, 1003, 2842, 1003, 1065, 1063, 1063, 2609, 1012, 6412, 1065, 1065, 1063, 1003, 2203, 10128, 1003, 1065, 1000, 1028, 1026, 18804, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1028, 1026, 18804, 3200, 1027, 13958, 1024, 2516, 4180, 1027, 1005, 1063, 1003, 2065, 3931, 1012, 2516, 1003, 1065, 1063, 1063, 3931, 1012, 2516, 1065, 1065, 1063, 1003, 2842, 1003, 1065, 1063, 1063, 2609, 1012, 2516, 1065, 1065, 1063, 1003, 2203, 10128, 1003, 1065, 1005, 1028, 1026, 18804, 3200, 1027, 13958, 1024, 6412, 4180, 1027, 1005, 1063, 1063, 3931, 1012, 6412, 1065, 1065, 1005, 1028, 1026, 18804, 3200, 1027, 13958, 1024, 3746, 4180, 1027, 1063, 1063, 2609, 1012, 2918, 3126, 2140, 1065, 1065, 1063, 1063, 3931, 1012, 3861, 1065, 1065, 1028, 1026, 999, 1011, 1011, 4763, 12696, 1011, 1011, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1063, 1063, 1000, 1013, 7045, 1013, 4763, 1011, 18407, 1012, 30524, 1024, 2609, 1012, 2918, 3126, 2140, 1065, 1065, 1000, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1063, 1063, 1000, 1013, 7045, 1013, 4763, 1011, 18407, 1012, 8117, 1012, 1046, 2015, 1000, 1064, 17463, 10497, 1024, 2609, 1012, 2918, 3126, 2140, 1065, 1065, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 999, 1011, 1011, 28681, 2080, 1024, 2421, 2023, 2046, 2364, 1012, 20116, 2015, 1011, 1011, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1063, 1063, 1000, 1013, 20116, 2015, 1013, 2364, 1012, 20116, 2015, 1000, 1064, 17463, 10497, 1024, 2609, 1012, 2918, 3126, 2140, 1065, 1065, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 18562, 1000, 17850, 12879, 1027, 1000, 1063, 1063, 3931, 1012, 24471, 2140, 1064, 5672, 1024, 1005, 5950, 1012, 16129, 1005, 1010, 1005, 1005, 1064, 17463, 10497, 1024, 2609, 1012, 2918, 3126, 2140, 1064, 17463, 10497, 1024, 2609, 1012, 24471, 2140, 1065, 1065, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6585, 1000, 2828, 1027, 1000, 4646, 1013, 12667, 2015, 1009, 20950, 1000, 2516, 1027, 1000, 1063, 1063, 2609, 1012, 2516, 1065, 1065, 1000, 17850, 12879, 1027, 1000, 1063, 1063, 1000, 1013, 5438, 1012, 20950, 1000, 30523, 8117, 1012, 20116, 2015, 1000, 1064, 17463, 10497, 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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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 8117, 1012, 20116, 2015, 1000, 1064, 17463, 10497, 30526 ]
/* KeePass Password Safe - The Open-Source Password Manager Copyright (C) 2003-2017 Dominik Reichl <dominik.reichl@t-online.de> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Diagnostics; using KeePass.UI; using KeePass.Resources; using KeePassLib; namespace KeePass.Forms { public partial class ImportMethodForm : Form { PwMergeMethod m_mmSelected = PwMergeMethod.CreateNewUuids; public PwMergeMethod MergeMethod { get { return m_mmSelected; } } public ImportMethodForm() { InitializeComponent(); Program.Translation.ApplyTo(this); } private void OnFormLoad(object sender, EventArgs e) { GlobalWindowManager.AddWindow(this); try { if(this.Owner == null) this.Owner = Program.MainForm; } catch(Exception) { Debug.Assert(false); } BannerFactory.CreateBannerEx(this, m_bannerImage, Properties.Resources.B48x48_Folder_Download, KPRes.ImportBehavior, KPRes.ImportBehaviorDesc); this.Icon = Properties.Resources.KeePass; this.Text = KPRes.ImportBehavior; m_radioCreateNew.Text = KPRes.CreateNewIDs; m_radioKeepExisting.Text = KPRes.KeepExisting; m_radioOverwrite.Text = KPRes.OverwriteExisting; m_radioOverwriteIfNewer.Text = KPRes.OverwriteIfNewer; m_radioSynchronize.Text = KPRes.OverwriteIfNewerAndApplyDel; FontUtil.AssignDefaultBold(m_radioCreateNew); FontUtil.AssignDefaultBold(m_radioKeepExisting); FontUtil.AssignDefaultBold(m_radioOverwrite); FontUtil.AssignDefaultBold(m_radioOverwriteIfNewer); FontUtil.AssignDefaultBold(m_radioSynchronize); m_radioCreateNew.Checked = true; } private void OnBtnOK(object sender, EventArgs e) { if(m_radioCreateNew.Checked) m_mmSelected = PwMergeMethod.CreateNewUuids; else if(m_radioKeepExisting.Checked) m_mmSelected = PwMergeMethod.KeepExisting; else if(m_radioOverwrite.Checked) m_mmSelected = PwMergeMethod.OverwriteExisting; else if(m_radioOverwriteIfNewer.Checked) m_mmSelected = PwMergeMethod.OverwriteIfNewer; else if(m_radioSynchronize.Checked) m_mmSelected = PwMergeMethod.Synchronize; } private void OnBtnCancel(object sender, EventArgs e) { } private void OnFormClosed(object sender, FormClosedEventArgs e) { GlobalWindowManager.RemoveWindow(this); } } }
FSteitz/KeePass
KeePass/Forms/ImportMethodForm.cs
C#
gpl-2.0
3,187
[ 30522, 1013, 1008, 2562, 12054, 20786, 3647, 1011, 1996, 2330, 1011, 3120, 20786, 3208, 9385, 1006, 1039, 1007, 2494, 1011, 2418, 14383, 5498, 2243, 14365, 2140, 1026, 14383, 5498, 2243, 1012, 14365, 2140, 1030, 1056, 1011, 3784, 1012, 2139, 1028, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2004, 2405, 2011, 1996, 2489, 4007, 3192, 1025, 2593, 2544, 1016, 1997, 1996, 6105, 1010, 2030, 1006, 2012, 2115, 5724, 1007, 2151, 2101, 2544, 1012, 2023, 2565, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 2005, 2062, 4751, 1012, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2247, 2007, 2023, 2565, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 3192, 1010, 4297, 1012, 1010, 4868, 5951, 2358, 1010, 3587, 2723, 1010, 3731, 1010, 5003, 30524, 3596, 1025, 2478, 2291, 1012, 16474, 2015, 1025, 2478, 2562, 12054, 1012, 21318, 1025, 2478, 2562, 12054, 1012, 4219, 1025, 2478, 2562, 12054, 29521, 1025, 3415, 15327, 2562, 12054, 1012, 3596, 1063, 2270, 7704, 2465, 12324, 11368, 6806, 20952, 2953, 2213, 1024, 2433, 1063, 1052, 2860, 5017, 3351, 11368, 6806, 2094, 1049, 1035, 3461, 11246, 22471, 2098, 1027, 1052, 2860, 5017, 3351, 11368, 6806, 2094, 1012, 3443, 2638, 16050, 21272, 2015, 1025, 2270, 1052, 2860, 5017, 3351, 11368, 6806, 2094, 13590, 11368, 6806, 2094, 1063, 2131, 1063, 2709, 1049, 1035, 3461, 11246, 22471, 2098, 1025, 1065, 1065, 2270, 12324, 11368, 6806, 20952, 2953, 2213, 1006, 1007, 1063, 3988, 4697, 9006, 29513, 3372, 1006, 1007, 1025, 2565, 1012, 5449, 1012, 6611, 3406, 1006, 2023, 1007, 1025, 1065, 2797, 11675, 2006, 14192, 11066, 1006, 4874, 4604, 2121, 1010, 2724, 2906, 5620, 1041, 1007, 1063, 3795, 11101, 5004, 24805, 4590, 1012, 5587, 11101, 5004, 1006, 2023, 1007, 1025, 3046, 1063, 2065, 1006, 2023, 1012, 3954, 1027, 1027, 19701, 1007, 2023, 1012, 3954, 1027, 2565, 1012, 2364, 14192, 1025, 1065, 4608, 1006, 6453, 1007, 1063, 2139, 8569, 2290, 1012, 20865, 1006, 6270, 1007, 1025, 1065, 9484, 21450, 1012, 3443, 8193, 3678, 10288, 1006, 2023, 1010, 1049, 1035, 9484, 9581, 3351, 1010, 5144, 1012, 4219, 1012, 1038, 18139, 2595, 18139, 1035, 19622, 1035, 8816, 1010, 1047, 28994, 1012, 12324, 4783, 3270, 25500, 2099, 1010, 1047, 28994, 1012, 12324, 4783, 3270, 25500, 26371, 2278, 1007, 1025, 2023, 1012, 12696, 1027, 5144, 1012, 4219, 1012, 2562, 12054, 1025, 2023, 1012, 3793, 1027, 1047, 28994, 1012, 12324, 4783, 3270, 25500, 2099, 1025, 1049, 1035, 2557, 16748, 3686, 2638, 2860, 1012, 3793, 1027, 1047, 28994, 1012, 3443, 2638, 9148, 30523, 6185, 14526, 2692, 1011, 7558, 2487, 3915, 1008, 1013, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 6922, 5302, 9247, 1025, 2478, 2291, 1012, 5059, 1025, 2478, 2291, 1012, 3793, 1025, 2478, 2291, 1012, 3645, 1012, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 6185, 14526, 2692, 1011, 7558, 2487, 3915, 1008, 1013, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 6922, 5302, 9247, 1025, 2478, 2291, 1012, 5059, 1025, 2478, 2291, 1012, 3793, 1025, 2478, 2291, 1012, 3645, 1012, 30526 ]
package system // import "github.com/docker/docker/pkg/system" import ( "os" "path/filepath" "regexp" "strconv" "strings" "sync" "syscall" "time" "unsafe" winio "github.com/Microsoft/go-winio" "golang.org/x/sys/windows" ) const ( // SddlAdministratorsLocalSystem is local administrators plus NT AUTHORITY\System SddlAdministratorsLocalSystem = "D:P(A;OICI;GA;;;BA)(A;OICI;GA;;;SY)" ) // MkdirAllWithACL is a wrapper for MkdirAll that creates a directory // with an appropriate SDDL defined ACL. func MkdirAllWithACL(path string, perm os.FileMode, sddl string) error { return mkdirall(path, true, sddl) } // MkdirAll implementation that is volume path aware for Windows. It can be used // as a drop-in replacement for os.MkdirAll() func MkdirAll(path string, _ os.FileMode) error { return mkdirall(path, false, "") } // mkdirall is a custom version of os.MkdirAll modified for use on Windows // so that it is both volume path aware, and can create a directory with // a DACL. func mkdirall(path string, applyACL bool, sddl string) error { if re := regexp.MustCompile(`^\\\\\?\\Volume{[a-z0-9-]+}$`); re.MatchString(path) { return nil } // The rest of this method is largely copied from os.MkdirAll and should be kept // as-is to ensure compatibility. // Fast path: if we can tell whether path is a directory or file, stop with success or error. dir, err := os.Stat(path) if err == nil { if dir.IsDir() { return nil } return &os.PathError{ Op: "mkdir", Path: path, Err: syscall.ENOTDIR, } } // Slow path: make sure parent exists and then call Mkdir for path. i := len(path) for i > 0 && os.IsPathSeparator(path[i-1]) { // Skip trailing path separator. i-- } j := i for j > 0 && !os.IsPathSeparator(path[j-1]) { // Scan backward over element. j-- } if j > 1 { // Create parent err = mkdirall(path[0:j-1], false, sddl) if err != nil { return err } } // Parent now exists; invoke os.Mkdir or mkdirWithACL and use its result. if applyACL { err = mkdirWithACL(path, sddl) } else { err = os.Mkdir(path, 0) } if err != nil { // Handle arguments like "foo/." by // double-checking that directory doesn't exist. dir, err1 := os.Lstat(path) if err1 == nil && dir.IsDir() { return nil } return err } return nil } // mkdirWithACL creates a new directory. If there is an error, it will be of // type *PathError. . // // This is a modified and combined version of os.Mkdir and windows.Mkdir // in golang to cater for creating a directory am ACL permitting full // access, with inheritance, to any subfolder/file for Built-in Administrators // and Local System. func mkdirWithACL(name string, sddl string) error { sa := windows.SecurityAttributes{Length: 0} sd, err := winio.SddlToSecurityDescriptor(sddl) if err != nil { return &os.PathError{Op: "mkdir", Path: name, Err: err} } sa.Length = uint32(unsafe.Sizeof(sa)) sa.InheritHandle = 1 sa.SecurityDescriptor = uintptr(unsafe.Pointer(&sd[0])) namep, err := windows.UTF16PtrFromString(name) if err != nil { return &os.PathError{Op: "mkdir", Path: name, Err: err} } e := windows.CreateDirectory(namep, &sa) if e != nil { return &os.PathError{Op: "mkdir", Path: name, Err: e} } return nil } // IsAbs is a platform-specific wrapper for filepath.IsAbs. On Windows, // golang filepath.IsAbs does not consider a path \windows\system32 as absolute // as it doesn't start with a drive-letter/colon combination. However, in // docker we need to verify things such as WORKDIR /windows/system32 in // a Dockerfile (which gets translated to \windows\system32 when being processed // by the daemon. This SHOULD be treated as absolute from a docker processing // perspective. func IsAbs(path string) bool { if !filepath.IsAbs(path) { if !strings.HasPrefix(path, string(os.PathSeparator)) { return false } } return true } // The origin of the functions below here are the golang OS and windows packages, // slightly modified to only cope with files, not directories due to the // specific use case. // // The alteration is to allow a file on Windows to be opened with // FILE_FLAG_SEQUENTIAL_SCAN (particular for docker load), to avoid eating // the standby list, particularly when accessing large files such as layer.tar. // CreateSequential creates the named file with mode 0666 (before umask), truncating // it if it already exists. If successful, methods on the returned // File can be used for I/O; the associated file descriptor has mode // O_RDWR. // If there is an error, it will be of type *PathError. func CreateSequential(name string) (*os.File, error) { return OpenFileSequential(name, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0) } // OpenSequential opens the named file for reading. If successful, methods on // the returned file can be used for reading; the associated file // descriptor has mode O_RDONLY. // If there is an error, it will be of type *PathError. func OpenSequential(name string) (*os.File, error) { return OpenFileSequential(name, os.O_RDONLY, 0) } // OpenFileSequential is the generalized open call; most users will use Open // or Create instead. // If there is an error, it will be of type *PathError. func OpenFileSequential(name string, flag int, _ os.FileMode) (*os.File, error) { if name == "" { return nil, &os.PathError{Op: "open", Path: name, Err: syscall.ENOENT} } r, errf := windowsOpenFileSequential(name, flag, 0) if errf == nil { return r, nil } return nil, &os.PathError{Op: "open", Path: name, Err: errf} } func windowsOpenFileSequential(name string, flag int, _ os.FileMode) (file *os.File, err error) { r, e := windowsOpenSequential(name, flag|windows.O_CLOEXEC, 0) if e != nil { return nil, e } return os.NewFile(uintptr(r), name), nil } func makeInheritSa() *windows.SecurityAttributes { var sa windows.SecurityAttributes sa.Length = uint32(unsafe.Sizeof(sa)) sa.InheritHandle = 1 return &sa } func windowsOpenSequential(path string, mode int, _ uint32) (fd windows.Handle, err error) { if len(path) == 0 { return windows.InvalidHandle, windows.ERROR_FILE_NOT_FOUND } pathp, err := windows.UTF16PtrFromString(path) if err != nil { return windows.InvalidHandle, err } var access uint32 switch mode & (windows.O_RDONLY | windows.O_WRONLY | windows.O_RDWR) { case windows.O_RDONLY: access = windows.GENERIC_READ case windows.O_WRONLY: access = windows.GENERIC_WRITE case windows.O_RDWR: access = windows.GENERIC_READ | windows.GENERIC_WRITE } if mode&windows.O_CREAT != 0 { access |= windows.GENERIC_WRITE } if mode&windows.O_APPEND != 0 { access &^= windows.GENERIC_WRITE access |= windows.FILE_APPEND_DATA } sharemode := uint32(windows.FILE_SHARE_READ | windows.FILE_SHARE_WRITE) var sa *windows.SecurityAttributes if mode&windows.O_CLOEXEC == 0 { sa = makeInheritSa() } var createmode uint32 switch { case mode&(windows.O_CREAT|windows.O_EXCL) == (windows.O_CREAT | windows.O_EXCL): createmode = windows.CREATE_NEW case mode&(windows.O_CREAT|windows.O_TRUNC) == (windows.O_CREAT | windows.O_TRUNC): createmode = windows.CREATE_ALWAYS case mode&windows.O_CREAT == windows.O_CREAT: createmode = windows.OPEN_ALWAYS case mode&windows.O_TRUNC == windows.O_TRUNC: createmode = windows.TRUNCATE_EXISTING default: createmode = windows.OPEN_EXISTING } // Use FILE_FLAG_SEQUENTIAL_SCAN rather than FILE_ATTRIBUTE_NORMAL as implemented in golang. //https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx const fileFlagSequentialScan = 0x08000000 // FILE_FLAG_SEQUENTIAL_SCAN h, e := windows.CreateFile(pathp, access, sharemode, sa, createmode, fileFlagSequentialScan, 0) return h, e } // Helpers for TempFileSequential var rand uint32 var randmu sync.Mutex func reseed() uint32 { return uint32(time.Now().UnixNano() + int64(os.Getpid())) } func nextSuffix() string { randmu.Lock() r := rand if r == 0 { r = reseed() } r = r*1664525 + 1013904223 // constants from Numerical Recipes rand = r randmu.Unlock() return strconv.Itoa(int(1e9 + r%1e9))[1:] } // TempFileSequential is a copy of ioutil.TempFile, modified to use sequential // file access. Below is the original comment from golang: // TempFile creates a new temporary file in the directory dir // with a name beginning with prefix, opens the file for reading // and writing, and returns the resulting *os.File. // If dir is the empty string, TempFile uses the default directory // for temporary files (see os.TempDir). // Multiple programs calling TempFile simultaneously // will not choose the same file. The caller can use f.Name() // to find the pathname of the file. It is the caller's responsibility // to remove the file when no longer needed. func TempFileSequential(dir, prefix string) (f *os.File, err error) { if dir == "" { dir = os.TempDir() } nconflict := 0 for i := 0; i < 10000; i++ { name := filepath.Join(dir, prefix+nextSuffix()) f, err = OpenFileSequential(name, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0600) if os.IsExist(err) { if nconflict++; nconflict > 10 { randmu.Lock() rand = reseed() randmu.Unlock() } continue } break } return }
mudler/docker-companion
vendor/github.com/docker/docker/pkg/system/filesys_windows.go
GO
gpl-3.0
9,173
[ 30522, 7427, 2291, 1013, 1013, 12324, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 8946, 2121, 1013, 8946, 2121, 1013, 1052, 2243, 2290, 1013, 2291, 1000, 30524, 2705, 12083, 1012, 4012, 1013, 7513, 1013, 2175, 1011, 2663, 3695, 1000, 1000, 2175, 25023, 1012, 8917, 1013, 1060, 1013, 25353, 2015, 1013, 3645, 1000, 1007, 9530, 3367, 1006, 1013, 1013, 17371, 19422, 4215, 25300, 20528, 6591, 4135, 9289, 6508, 13473, 2213, 2003, 2334, 15631, 4606, 23961, 3691, 1032, 2291, 17371, 19422, 4215, 25300, 20528, 6591, 4135, 9289, 6508, 13473, 2213, 1027, 1000, 1040, 1024, 1052, 1006, 1037, 1025, 1051, 28775, 1025, 11721, 1025, 1025, 1025, 8670, 1007, 1006, 1037, 1025, 1051, 28775, 1025, 11721, 1025, 1025, 1025, 25353, 1007, 1000, 1007, 1013, 1013, 12395, 4305, 7941, 2140, 24415, 6305, 2140, 2003, 1037, 10236, 4842, 2005, 12395, 4305, 7941, 2140, 2008, 9005, 1037, 14176, 1013, 1013, 2007, 2019, 6413, 17371, 19422, 4225, 9353, 2140, 1012, 4569, 2278, 12395, 4305, 7941, 2140, 24415, 6305, 2140, 1006, 4130, 5164, 1010, 2566, 2213, 9808, 1012, 5371, 5302, 3207, 1010, 17371, 19422, 5164, 1007, 7561, 1063, 2709, 12395, 4305, 7941, 2140, 1006, 4130, 1010, 2995, 1010, 17371, 19422, 1007, 1065, 1013, 1013, 12395, 4305, 7941, 2140, 7375, 2008, 2003, 3872, 4130, 5204, 2005, 3645, 1012, 2009, 2064, 2022, 2109, 1013, 1013, 2004, 1037, 4530, 1011, 1999, 6110, 2005, 9808, 1012, 12395, 4305, 7941, 2140, 1006, 1007, 4569, 2278, 12395, 4305, 7941, 2140, 1006, 4130, 5164, 1010, 1035, 9808, 1012, 5371, 5302, 3207, 1007, 7561, 1063, 2709, 12395, 4305, 7941, 2140, 1006, 4130, 1010, 6270, 1010, 1000, 1000, 1007, 1065, 1013, 1013, 12395, 4305, 7941, 2140, 2003, 1037, 7661, 2544, 1997, 9808, 1012, 12395, 4305, 7941, 2140, 6310, 2005, 2224, 2006, 3645, 1013, 1013, 2061, 2008, 2009, 2003, 2119, 3872, 4130, 5204, 1010, 1998, 2064, 3443, 1037, 14176, 2007, 1013, 1013, 1037, 4830, 20464, 1012, 4569, 2278, 12395, 4305, 7941, 2140, 1006, 4130, 5164, 1010, 6611, 6305, 2140, 22017, 2140, 1010, 17371, 19422, 5164, 1007, 7561, 1063, 2065, 2128, 1024, 1027, 19723, 10288, 2361, 1012, 2442, 9006, 22090, 1006, 1036, 1034, 1032, 1032, 1032, 1032, 1032, 1029, 1032, 1032, 3872, 1063, 1031, 1037, 1011, 1062, 2692, 1011, 1023, 1011, 1033, 1009, 1065, 1002, 1036, 1007, 1025, 2128, 1012, 2674, 3367, 4892, 1006, 4130, 1007, 1063, 2709, 9152, 2140, 1065, 1013, 1013, 1996, 2717, 1997, 2023, 4118, 2003, 4321, 15826, 2013, 9808, 1012, 12395, 4305, 7941, 2140, 1998, 2323, 2022, 2921, 1013, 1013, 2004, 1011, 2003, 2000, 5676, 21778, 1012, 1013, 1013, 3435, 4130, 1024, 2065, 2057, 2064, 2425, 3251, 4130, 2003, 1037, 14176, 2030, 5371, 1010, 2644, 2007, 3112, 2030, 7561, 1012, 16101, 1010, 9413, 2099, 1024, 1027, 9808, 1012, 28093, 1006, 4130, 1007, 2065, 9413, 2099, 1027, 1027, 9152, 2140, 1063, 2065, 16101, 1012, 2003, 30523, 12324, 1006, 1000, 9808, 1000, 1000, 4130, 1013, 5371, 15069, 1000, 1000, 19723, 10288, 2361, 1000, 1000, 2358, 29566, 2078, 2615, 1000, 1000, 7817, 1000, 1000, 26351, 1000, 1000, 25353, 15782, 3363, 1000, 1000, 2051, 1000, 1000, 25135, 1000, 2663, 3695, 1000, 21025, 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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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12324, 1006, 1000, 9808, 1000, 1000, 4130, 1013, 5371, 15069, 1000, 1000, 19723, 10288, 2361, 1000, 1000, 2358, 29566, 2078, 2615, 1000, 1000, 7817, 1000, 1000, 26351, 1000, 1000, 25353, 15782, 3363, 1000, 1000, 2051, 1000, 1000, 25135, 1000, 2663, 3695, 1000, 21025, 30526 ]
<?php namespace SellerLabs\Nucleus\Data; /** * Class Collection. * * @author Eduardo Trujillo <ed@sellerlabs.com> * @package SellerLabs\Nucleus\Data */ abstract class Collection extends IterableType { // }
sellerlabs/nucleus
src/SellerLabs/Nucleus/Data/Collection.php
PHP
mit
217
[ 30522, 1026, 1029, 25718, 3415, 15327, 14939, 20470, 2015, 1032, 13502, 1032, 2951, 1025, 1013, 1008, 1008, 1008, 2465, 3074, 1012, 1008, 1008, 1030, 3166, 14846, 19817, 23049, 10486, 1026, 3968, 1030, 14939, 20470, 2015, 1012, 4012, 1028, 1008, 1030, 7427, 14939, 20470, 2015, 1032, 13502, 1032, 2951, 1008, 1013, 10061, 2465, 3074, 8908, 2009, 6906, 3468, 13874, 1063, 1013, 1013, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="./css/default-dark/main.css"> <link rel="stylesheet" href="./css/default-dark/func-main.css"> <script src="../src/render/custom-elements.js"></script> <script src="../src/render/core-controller.js"></script> </head> <body> <div class="content-info"> <i18n-h hsize="1">func_damaged</i18n-h> </div> <div class="content-wrapper"> <div> <i18n-span class="bookid-text">book_id</i18n-span> <input class="default-input" id="input-bookid" type="text"> </div> <div> <i18n-span class="userid-text">user_id</i18n-span> <input class="default-input" id="input-userid" type="text"> </div> <button class="submit-btn" id="btn-damaged"><i18n-span>func_submit</i18n-span></button> </div> <div class="notify-banner" id="notify-success"> <i18n-span>func_process_successful</i18n-span> </div> <div class="notify-banner" id="notify-error"> </div> </body> </html>
TeamLiberMinimis/liber-minimis-js
static/func-damaged.html
HTML
mit
1,048
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1013, 20116, 2015, 1013, 12398, 1011, 2601, 1013, 2364, 1012, 20116, 2015, 1000, 1028, 1026, 4957, 2128, 2140, 1027, 1000, 6782, 21030, 2102, 1000, 17850, 12879, 1027, 1000, 1012, 1013, 20116, 2015, 1013, 12398, 1011, 2601, 1013, 4569, 2278, 1011, 2364, 1012, 20116, 2015, 1000, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 5034, 2278, 1013, 17552, 1013, 7661, 1011, 3787, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 1012, 1012, 1013, 5034, 2278, 1013, 17552, 1013, 4563, 1011, 11486, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 1013, 2132, 1028, 1026, 2303, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 4180, 1011, 18558, 1000, 1028, 1026, 1045, 15136, 2078, 1011, 1044, 26236, 4697, 1027, 1000, 1015, 1000, 1028, 4569, 2278, 1035, 5591, 1026, 1013, 1045, 15136, 2078, 1011, 1044, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 4180, 1011, 10236, 4842, 1000, 1028, 1026, 4487, 2615, 1028, 1026, 1045, 15136, 2078, 1011, 8487, 2465, 1027, 1000, 2338, 3593, 1011, 3793, 1000, 1028, 2338, 1035, 8909, 1026, 1013, 1045, 15136, 2078, 1011, 8487, 1028, 1026, 7953, 2465, 1027, 1000, 12398, 1011, 7953, 1000, 8909, 1027, 1000, 7953, 1011, 2338, 3593, 1000, 2828, 1027, 1000, 3793, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 1028, 1026, 1045, 15136, 2078, 1011, 8487, 2465, 1027, 1000, 5310, 3593, 1011, 3793, 1000, 1028, 5310, 1035, 8909, 1026, 1013, 1045, 15136, 2078, 1011, 8487, 1028, 1026, 7953, 2465, 1027, 1000, 12398, 1011, 7953, 1000, 8909, 1027, 1000, 7953, 1011, 5310, 3593, 1000, 2828, 1027, 30524, 5591, 1000, 1028, 1026, 1045, 15136, 2078, 1011, 8487, 1028, 4569, 2278, 1035, 12040, 1026, 1013, 1045, 15136, 2078, 1011, 8487, 1028, 1026, 1013, 6462, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2025, 8757, 1011, 9484, 1000, 8909, 1027, 1000, 2025, 8757, 1011, 3112, 1000, 1028, 1026, 1045, 15136, 2078, 1011, 8487, 1028, 4569, 2278, 1035, 2832, 1035, 3144, 1026, 1013, 1045, 15136, 2078, 1011, 8487, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2025, 8757, 1011, 9484, 1000, 8909, 1027, 1000, 2025, 8757, 1011, 7561, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 2303, 1028, 1026, 1013, 16129, 1028, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30523, 1000, 3793, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 6462, 2465, 1027, 1000, 12040, 1011, 18411, 2078, 1000, 8909, 1027, 1000, 18411, 2078, 1011, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 3793, 1000, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 6462, 2465, 1027, 1000, 12040, 1011, 18411, 2078, 1000, 8909, 1027, 1000, 18411, 2078, 1011, 30526 ]
# pulsesim Neural Network Accelerator Simulator
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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 30526 ]
import { Meteor } from 'meteor/meteor' import { composeWithTracker } from 'react-komposer' import { Semesters, RegStatuses, Classrooms, Sessions, Categories, Classes, Terms } from '../../api/data/data' import CourseCreation from '../components/CourseCreation' import Loading from '../components/loading' const composer = (params, onData) => { const subSemesters = Meteor.subscribe('semesters') const subRegStatuses = Meteor.subscribe('semesters') const subClassrooms = Meteor.subscribe('classrooms') const subSessions = Meteor.subscribe('sessions') const subCategories = Meteor.subscribe('categories') const subClasses = Meteor.subscribe('classes') const subTerms = Meteor.subscribe('terms') if (subSemesters.ready() && subRegStatuses.ready() && subClassrooms.ready() && subSessions.ready() && subCategories.ready() && subTerms.ready() && subClasses.ready()) { const semesters = Semesters.find().fetch() const regstatuses = RegStatuses.find().fetch() const classrooms = Classrooms.find().fetch() const sessions = Sessions.find().fetch() const categories = Categories.find().fetch() const classes = Classes.find().fetch() const terms = Terms.find().fetch() onData(null, { semesters, regstatuses, classrooms, sessions, categories, classes, terms }) } } export default composeWithTracker(composer, Loading)(CourseCreation)
hanstest/hxgny
imports/ui/containers/course-creation.js
JavaScript
mit
1,396
[ 30522, 12324, 1063, 23879, 1065, 2013, 1005, 23879, 1013, 23879, 1005, 12324, 1063, 17202, 24415, 6494, 9102, 1065, 2013, 1005, 10509, 1011, 12849, 8737, 9232, 2099, 1005, 12324, 1063, 13609, 2015, 1010, 19723, 9153, 5809, 2229, 1010, 12463, 1010, 6521, 1010, 7236, 1010, 4280, 1010, 3408, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 17928, 1013, 2951, 1013, 2951, 1005, 12324, 2607, 16748, 3370, 2013, 1005, 1012, 1012, 1013, 6177, 1013, 2607, 16748, 3370, 1005, 12324, 10578, 2013, 1005, 1012, 1012, 1013, 6177, 1013, 10578, 1005, 9530, 3367, 4543, 1027, 1006, 11498, 5244, 1010, 2006, 2850, 2696, 1007, 1027, 1028, 1063, 9530, 3367, 4942, 3366, 7834, 7747, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 13609, 2015, 1005, 1007, 9530, 3367, 4942, 30524, 26266, 29020, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 12463, 1005, 1007, 9530, 3367, 4942, 8583, 27466, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 6521, 1005, 1007, 9530, 3367, 4942, 16280, 20255, 3111, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 7236, 1005, 1007, 9530, 3367, 4942, 26266, 2229, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 4280, 1005, 1007, 9530, 3367, 4942, 3334, 5244, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 3408, 1005, 1007, 2065, 1006, 4942, 3366, 7834, 7747, 1012, 3201, 1006, 1007, 1004, 1004, 4942, 2890, 5620, 29336, 25581, 1012, 3201, 1006, 1007, 1004, 1004, 4942, 26266, 29020, 1012, 3201, 1006, 1007, 1004, 1004, 4942, 8583, 27466, 1012, 3201, 1006, 1007, 1004, 1004, 4942, 16280, 20255, 3111, 1012, 3201, 1006, 1007, 1004, 1004, 4942, 3334, 5244, 1012, 3201, 1006, 1007, 1004, 1004, 4942, 26266, 2229, 1012, 3201, 1006, 1007, 1007, 1063, 9530, 3367, 13609, 2015, 1027, 13609, 2015, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 9530, 3367, 19723, 9153, 5809, 2229, 1027, 19723, 9153, 5809, 2229, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 9530, 3367, 12463, 1027, 12463, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 9530, 3367, 6521, 1027, 6521, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 9530, 3367, 7236, 1027, 7236, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 9530, 3367, 4280, 1027, 4280, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 9530, 3367, 3408, 1027, 3408, 1012, 2424, 1006, 1007, 1012, 18584, 1006, 1007, 2006, 2850, 2696, 1006, 19701, 1010, 1063, 13609, 2015, 1010, 19723, 9153, 5809, 2229, 1010, 12463, 1010, 6521, 1010, 7236, 1010, 4280, 1010, 3408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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2890, 5620, 29336, 25581, 1027, 23879, 1012, 4942, 29234, 1006, 1005, 13609, 2015, 1005, 1007, 9530, 3367, 4942, 30526 ]
import py from rpython.flowspace.model import SpaceOperation, Constant, Variable from rpython.rtyper.lltypesystem import lltype, llmemory, rffi from rpython.translator.unsimplify import varoftype from rpython.rlib import jit from rpython.jit.codewriter import support, call from rpython.jit.codewriter.call import CallControl from rpython.jit.codewriter.effectinfo import EffectInfo class FakePolicy: def look_inside_graph(self, graph): return True def test_graphs_from_direct_call(): cc = CallControl() F = lltype.FuncType([], lltype.Signed) f = lltype.functionptr(F, 'f', graph='fgraph') v = varoftype(lltype.Signed) op = SpaceOperation('direct_call', [Constant(f, lltype.Ptr(F))], v) # lst = cc.graphs_from(op, {}.__contains__) assert lst is None # residual call # lst = cc.graphs_from(op, {'fgraph': True}.__contains__) assert lst == ['fgraph'] # normal call def test_graphs_from_indirect_call(): cc = CallControl() F = lltype.FuncType([], lltype.Signed) v = varoftype(lltype.Signed) graphlst = ['f1graph', 'f2graph'] op = SpaceOperation('indirect_call', [varoftype(lltype.Ptr(F)), Constant(graphlst, lltype.Void)], v) # lst = cc.graphs_from(op, {'f1graph': True, 'f2graph': True}.__contains__) assert lst == ['f1graph', 'f2graph'] # normal indirect call # lst = cc.graphs_from(op, {'f1graph': True}.__contains__) assert lst == ['f1graph'] # indirect call, look only inside some graphs # lst = cc.graphs_from(op, {}.__contains__) assert lst is None # indirect call, don't look inside any graph def test_graphs_from_no_target(): cc = CallControl() F = lltype.FuncType([], lltype.Signed) v = varoftype(lltype.Signed) op = SpaceOperation('indirect_call', [varoftype(lltype.Ptr(F)), Constant(None, lltype.Void)], v) lst = cc.graphs_from(op, {}.__contains__) assert lst is None # ____________________________________________________________ class FakeJitDriverSD: def __init__(self, portal_graph): self.portal_graph = portal_graph self.portal_runner_ptr = "???" def test_find_all_graphs(): def g(x): return x + 2 def f(x): return g(x) + 1 rtyper = support.annotate(f, [7]) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) funcs = set([graph.func for graph in res]) assert funcs == set([f, g]) def test_find_all_graphs_without_g(): def g(x): return x + 2 def f(x): return g(x) + 1 rtyper = support.annotate(f, [7]) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(jitdrivers_sd=[jitdriver_sd]) class CustomFakePolicy: def look_inside_graph(self, graph): assert graph.name == 'g' return False res = cc.find_all_graphs(CustomFakePolicy()) funcs = [graph.func for graph in res] assert funcs == [f] # ____________________________________________________________ def test_guess_call_kind_and_calls_from_graphs(): class portal_runner_obj: graph = object() class FakeJitDriverSD: portal_runner_ptr = portal_runner_obj g = object() g1 = object() cc = CallControl(jitdrivers_sd=[FakeJitDriverSD()]) cc.candidate_graphs = [g, g1] op = SpaceOperation('direct_call', [Constant(portal_runner_obj)], Variable()) assert cc.guess_call_kind(op) == 'recursive' class fakeresidual: _obj = object() op = SpaceOperation('direct_call', [Constant(fakeresidual)], Variable()) assert cc.guess_call_kind(op) == 'residual' class funcptr: class _obj: class graph: class func: oopspec = "spec" op = SpaceOperation('direct_call', [Constant(funcptr)], Variable()) assert cc.guess_call_kind(op) == 'builtin' class funcptr: class _obj: graph = g op = SpaceOperation('direct_call', [Constant(funcptr)], Variable()) res = cc.graphs_from(op) assert res == [g] assert cc.guess_call_kind(op) == 'regular' class funcptr: class _obj: graph = object() op = SpaceOperation('direct_call', [Constant(funcptr)], Variable()) res = cc.graphs_from(op) assert res is None assert cc.guess_call_kind(op) == 'residual' h = object() op = SpaceOperation('indirect_call', [Variable(), Constant([g, g1, h])], Variable()) res = cc.graphs_from(op) assert res == [g, g1] assert cc.guess_call_kind(op) == 'regular' op = SpaceOperation('indirect_call', [Variable(), Constant([h])], Variable()) res = cc.graphs_from(op) assert res is None assert cc.guess_call_kind(op) == 'residual' # ____________________________________________________________ def test_get_jitcode(monkeypatch): from rpython.jit.codewriter.test.test_flatten import FakeCPU class FakeRTyper: class annotator: translator = None def getfunctionptr(graph): F = lltype.FuncType([], lltype.Signed) return lltype.functionptr(F, 'bar') monkeypatch.setattr(call, 'getfunctionptr', getfunctionptr) cc = CallControl(FakeCPU(FakeRTyper())) class somegraph: name = "foo" jitcode = cc.get_jitcode(somegraph) assert jitcode is cc.get_jitcode(somegraph) # caching assert jitcode.name == "foo" pending = list(cc.enum_pending_graphs()) assert pending == [(somegraph, jitcode)] # ____________________________________________________________ def test_jit_force_virtualizable_effectinfo(): py.test.skip("XXX add a test for CallControl.getcalldescr() -> EF_xxx") def test_releases_gil_analyzer(): from rpython.jit.backend.llgraph.runner import LLGraphCPU T = rffi.CArrayPtr(rffi.TIME_T) external = rffi.llexternal("time", [T], rffi.TIME_T, releasegil=True) @jit.dont_look_inside def f(): return external(lltype.nullptr(T.TO)) rtyper = support.annotate(f, []) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) [f_graph] = [x for x in res if x.func is f] [block, _] = list(f_graph.iterblocks()) [op] = block.operations call_descr = cc.getcalldescr(op) assert call_descr.extrainfo.has_random_effects() assert call_descr.extrainfo.is_call_release_gil() is False def test_call_release_gil(): from rpython.jit.backend.llgraph.runner import LLGraphCPU T = rffi.CArrayPtr(rffi.TIME_T) external = rffi.llexternal("time", [T], rffi.TIME_T, releasegil=True, save_err=rffi.RFFI_SAVE_ERRNO) # no jit.dont_look_inside in this test def f(): return external(lltype.nullptr(T.TO)) rtyper = support.annotate(f, []) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) [llext_graph] = [x for x in res if x.func is external] [block, _] = list(llext_graph.iterblocks()) [op] = block.operations tgt_tuple = op.args[0].value._obj.graph.func._call_aroundstate_target_ assert type(tgt_tuple) is tuple and len(tgt_tuple) == 2 call_target, saveerr = tgt_tuple assert saveerr == rffi.RFFI_SAVE_ERRNO call_target = llmemory.cast_ptr_to_adr(call_target) call_descr = cc.getcalldescr(op) assert call_descr.extrainfo.has_random_effects() assert call_descr.extrainfo.is_call_release_gil() is True assert call_descr.extrainfo.call_release_gil_target == ( call_target, rffi.RFFI_SAVE_ERRNO) def test_random_effects_on_stacklet_switch(): from rpython.jit.backend.llgraph.runner import LLGraphCPU from rpython.translator.platform import CompilationError try: from rpython.rlib._rffi_stacklet import switch, handle except CompilationError as e: if "Unsupported platform!" in e.out: py.test.skip("Unsupported platform!") else: raise e @jit.dont_look_inside def f(): switch(rffi.cast(handle, 0)) rtyper = support.annotate(f, []) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) [f_graph] = [x for x in res if x.func is f] [block, _] = list(f_graph.iterblocks()) op = block.operations[-1] call_descr = cc.getcalldescr(op) assert call_descr.extrainfo.has_random_effects() def test_no_random_effects_for_rotateLeft(): from rpython.jit.backend.llgraph.runner import LLGraphCPU from rpython.rlib.rarithmetic import r_uint if r_uint.BITS == 32: py.test.skip("64-bit only") from rpython.rlib.rmd5 import _rotateLeft def f(n, m): return _rotateLeft(r_uint(n), m) rtyper = support.annotate(f, [7, 9]) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) [f_graph] = [x for x in res if x.func is f] [block, _] = list(f_graph.iterblocks()) op = block.operations[-1] call_descr = cc.getcalldescr(op) assert not call_descr.extrainfo.has_random_effects() assert call_descr.extrainfo.check_is_elidable() def test_elidable_kinds(): from rpython.jit.backend.llgraph.runner import LLGraphCPU @jit.elidable def f1(n, m): return n + m @jit.elidable def f2(n, m): return [n, m] # may raise MemoryError @jit.elidable def f3(n, m): if n > m: raise ValueError return n + m def f(n, m): a = f1(n, m) b = f2(n, m) c = f3(n, m) return a + len(b) + c rtyper = support.annotate(f, [7, 9]) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) [f_graph] = [x for x in res if x.func is f] for index, expected in [ (0, EffectInfo.EF_ELIDABLE_CANNOT_RAISE), (1, EffectInfo.EF_ELIDABLE_OR_MEMORYERROR), (2, EffectInfo.EF_ELIDABLE_CAN_RAISE)]: call_op = f_graph.startblock.operations[index] assert call_op.opname == 'direct_call' call_descr = cc.getcalldescr(call_op) assert call_descr.extrainfo.extraeffect == expected def test_raise_elidable_no_result(): from rpython.jit.backend.llgraph.runner import LLGraphCPU l = [] @jit.elidable def f1(n, m): l.append(n) def f(n, m): f1(n, m) return n + m rtyper = support.annotate(f, [7, 9]) jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0]) cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd]) res = cc.find_all_graphs(FakePolicy()) [f_graph] = [x for x in res if x.func is f] call_op = f_graph.startblock.operations[0] assert call_op.opname == 'direct_call' with py.test.raises(Exception): call_descr = cc.getcalldescr(call_op)
jptomo/rpython-lang-scheme
rpython/jit/codewriter/test/test_call.py
Python
mit
11,707
[ 30522, 12324, 1052, 2100, 2013, 1054, 7685, 2705, 2239, 1012, 6223, 15327, 1012, 2944, 12324, 2686, 25918, 3370, 1010, 5377, 1010, 8023, 2013, 1054, 7685, 2705, 2239, 1012, 19387, 18863, 2099, 1012, 2222, 13874, 6508, 13473, 2213, 12324, 2222, 13874, 1010, 2222, 4168, 5302, 2854, 1010, 21792, 8873, 2013, 1054, 7685, 2705, 2239, 1012, 11403, 1012, 4895, 5332, 8737, 3669, 12031, 12324, 13075, 15794, 18863, 2013, 1054, 7685, 2705, 2239, 1012, 1054, 29521, 12324, 10147, 2102, 2013, 1054, 7685, 2705, 2239, 1012, 10147, 2102, 1012, 3642, 15994, 12324, 2490, 1010, 2655, 2013, 1054, 7685, 2705, 2239, 1012, 10147, 2102, 1012, 3642, 15994, 1012, 2655, 12324, 2655, 8663, 13181, 2140, 2013, 1054, 7685, 2705, 2239, 1012, 10147, 2102, 1012, 3642, 15994, 1012, 3466, 2378, 14876, 12324, 3466, 2378, 14876, 2465, 8275, 18155, 2594, 2100, 1024, 13366, 2298, 1035, 2503, 1035, 10629, 1006, 2969, 1010, 10629, 1007, 1024, 2709, 2995, 13366, 3231, 1035, 19287, 1035, 2013, 1035, 3622, 1035, 2655, 1006, 1007, 1024, 10507, 1027, 2655, 8663, 13181, 2140, 1006, 1007, 1042, 1027, 2222, 13874, 1012, 4569, 6593, 18863, 1006, 1031, 1033, 1010, 2222, 13874, 1012, 2772, 1007, 1042, 1027, 2222, 13874, 1012, 3853, 13876, 2099, 1006, 1042, 1010, 1005, 1042, 1005, 1010, 10629, 1027, 1005, 1042, 14413, 1005, 1007, 1058, 1027, 13075, 15794, 18863, 1006, 2222, 13874, 1012, 2772, 1007, 6728, 1027, 2686, 25918, 3370, 1006, 1005, 3622, 1035, 2655, 1005, 1010, 1031, 5377, 1006, 1042, 1010, 2222, 13874, 1012, 13866, 2099, 1006, 1042, 1007, 1007, 1033, 1010, 1058, 1007, 1001, 1048, 3367, 1027, 10507, 1012, 19287, 1035, 2013, 1006, 6728, 1010, 1063, 1065, 1012, 1035, 1035, 3397, 1035, 1035, 1007, 20865, 1048, 3367, 2003, 3904, 1001, 21961, 2655, 1001, 1048, 3367, 1027, 30524, 1012, 1035, 1035, 3397, 1035, 1035, 1007, 20865, 1048, 3367, 1027, 1027, 1031, 1005, 1042, 14413, 1005, 1033, 1001, 3671, 2655, 13366, 3231, 1035, 19287, 1035, 2013, 1035, 14958, 1035, 2655, 1006, 1007, 1024, 10507, 1027, 2655, 8663, 13181, 2140, 1006, 1007, 1042, 1027, 2222, 13874, 1012, 4569, 6593, 18863, 1006, 1031, 1033, 1010, 2222, 13874, 1012, 2772, 1007, 1058, 1027, 13075, 15794, 18863, 1006, 2222, 13874, 1012, 2772, 1007, 10629, 4877, 2102, 1027, 1031, 1005, 20069, 14413, 1005, 1010, 1005, 1042, 2475, 14413, 1005, 1033, 6728, 1027, 2686, 25918, 3370, 1006, 1005, 14958, 1035, 2655, 1005, 1010, 1031, 13075, 15794, 18863, 1006, 2222, 13874, 1012, 13866, 2099, 1006, 1042, 1007, 1007, 1010, 5377, 1006, 10629, 4877, 2102, 1010, 2222, 13874, 1012, 11675, 1007, 1033, 1010, 1058, 1007, 1001, 1048, 3367, 1027, 10507, 1012, 19287, 1035, 2013, 1006, 6728, 1010, 1063, 1005, 20069, 14413, 1005, 1024, 2995, 1010, 1005, 1042, 2475, 14413, 1005, 1024, 2995, 1065, 1012, 1035, 1035, 3397, 1035, 1035, 1007, 20865, 1048, 3367, 1027, 1027, 1031, 1005, 20069, 14413, 1005, 1010, 1005, 1042, 2475, 14413, 1005, 1033, 1001, 3671, 14958, 2655, 1001, 1048, 3367, 1027, 10507, 1012, 19287, 1035, 2013, 1006, 6728, 1010, 1063, 1005, 20069, 14413, 1005, 30523, 10507, 1012, 19287, 1035, 2013, 1006, 6728, 1010, 1063, 1005, 1042, 14413, 1005, 1024, 2995, 1065, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 10507, 1012, 19287, 1035, 2013, 1006, 6728, 1010, 1063, 1005, 1042, 14413, 1005, 1024, 2995, 1065, 30526 ]
/* * Copyright 2014 Goldman Sachs. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gs.collections.impl.multimap.list; import java.io.Externalizable; import com.gs.collections.api.block.predicate.Predicate2; import com.gs.collections.api.list.MutableList; import com.gs.collections.api.map.MutableMap; import com.gs.collections.api.multimap.Multimap; import com.gs.collections.api.multimap.bag.MutableBagMultimap; import com.gs.collections.api.tuple.Pair; import com.gs.collections.impl.list.mutable.MultiReaderFastList; import com.gs.collections.impl.map.mutable.ConcurrentHashMap; import com.gs.collections.impl.utility.Iterate; public final class MultiReaderFastListMultimap<K, V> extends AbstractMutableListMultimap<K, V> implements Externalizable { private static final long serialVersionUID = 1L; // Default from FastList private static final int DEFAULT_CAPACITY = 1; private int initialListCapacity; public MultiReaderFastListMultimap() { this.initialListCapacity = DEFAULT_CAPACITY; } public MultiReaderFastListMultimap(int distinctKeys, int valuesPerKey) { super(Math.max(distinctKeys * 2, 16)); if (distinctKeys < 0 || valuesPerKey < 0) { throw new IllegalArgumentException("Both arguments must be positive."); } this.initialListCapacity = valuesPerKey; } public MultiReaderFastListMultimap(Multimap<? extends K, ? extends V> multimap) { this( multimap.keysView().size(), multimap instanceof MultiReaderFastListMultimap ? ((MultiReaderFastListMultimap<?, ?>) multimap).initialListCapacity : DEFAULT_CAPACITY); this.putAll(multimap); } public MultiReaderFastListMultimap(Pair<K, V>... pairs) { super(pairs); } public MultiReaderFastListMultimap(Iterable<Pair<K, V>> inputIterable) { super(inputIterable); } public static <K, V> MultiReaderFastListMultimap<K, V> newMultimap() { return new MultiReaderFastListMultimap<K, V>(); } public static <K, V> MultiReaderFastListMultimap<K, V> newMultimap(Multimap<? extends K, ? extends V> multimap) { return new MultiReaderFastListMultimap<K, V>(multimap); } public static <K, V> MultiReaderFastListMultimap<K, V> newMultimap(Pair<K, V>... pairs) { return new MultiReaderFastListMultimap<K, V>(pairs); } public static <K, V> MultiReaderFastListMultimap<K, V> newMultimap(Iterable<Pair<K, V>> inputIterable) { return new MultiReaderFastListMultimap<K, V>(inputIterable); } @Override protected MutableMap<K, MutableList<V>> createMap() { return ConcurrentHashMap.newMap(); } @Override protected MutableMap<K, MutableList<V>> createMapWithKeyCount(int keyCount) { return ConcurrentHashMap.newMap(keyCount); } @Override protected MutableList<V> createCollection() { return MultiReaderFastList.newList(this.initialListCapacity); } public MultiReaderFastListMultimap<K, V> newEmpty() { return new MultiReaderFastListMultimap<K, V>(); } public MutableBagMultimap<V, K> flip() { return Iterate.flip(this); } public FastListMultimap<K, V> selectKeysValues(Predicate2<? super K, ? super V> predicate) { return this.selectKeysValues(predicate, FastListMultimap.<K, V>newMultimap()); } public FastListMultimap<K, V> rejectKeysValues(Predicate2<? super K, ? super V> predicate) { return this.rejectKeysValues(predicate, FastListMultimap.<K, V>newMultimap()); } public FastListMultimap<K, V> selectKeysMultiValues(Predicate2<? super K, ? super Iterable<V>> predicate) { return this.selectKeysMultiValues(predicate, FastListMultimap.<K, V>newMultimap()); } public FastListMultimap<K, V> rejectKeysMultiValues(Predicate2<? super K, ? super Iterable<V>> predicate) { return this.rejectKeysMultiValues(predicate, FastListMultimap.<K, V>newMultimap()); } }
gabby2212/gs-collections
collections/src/main/java/com/gs/collections/impl/multimap/list/MultiReaderFastListMultimap.java
Java
apache-2.0
4,667
[ 30522, 1013, 1008, 1008, 9385, 2297, 17765, 22818, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1008, 1008, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1008, 1008, 4983, 3223, 2011, 12711, 2375, 2030, 3530, 2000, 1999, 3015, 1010, 4007, 1008, 5500, 2104, 1996, 6105, 2003, 5500, 2006, 2019, 1000, 2004, 2003, 1000, 3978, 1010, 1008, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 2785, 1010, 2593, 4671, 2030, 13339, 1012, 1008, 2156, 1996, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1008, 12546, 2104, 1996, 6105, 1012, 1008, 1013, 7427, 4012, 1012, 28177, 1012, 6407, 1012, 17727, 2140, 1012, 4800, 2863, 2361, 1012, 2862, 1025, 12324, 9262, 1012, 22834, 1012, 6327, 21335, 3468, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17928, 1012, 3796, 1012, 3653, 16467, 1012, 3653, 16467, 2475, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17928, 1012, 2862, 1012, 14163, 10880, 9863, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17928, 1012, 4949, 1012, 14163, 10880, 2863, 2361, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17928, 1012, 4800, 2863, 2361, 1012, 4800, 2863, 2361, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17928, 1012, 4800, 2863, 2361, 1012, 4524, 1012, 14163, 10880, 16078, 12274, 7096, 9581, 2361, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17928, 1012, 10722, 10814, 1012, 3940, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17727, 2140, 1012, 2862, 1012, 14163, 10880, 1012, 4800, 16416, 4063, 24333, 9863, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17727, 2140, 1012, 4949, 1012, 14163, 10880, 1012, 16483, 14949, 22444, 2361, 1025, 12324, 4012, 1012, 28177, 1012, 6407, 1012, 17727, 2140, 1012, 9710, 1012, 2009, 22139, 1025, 2270, 2345, 2465, 4800, 16416, 4063, 24333, 9863, 12274, 7096, 9581, 2361, 1026, 1047, 1010, 1058, 1028, 8908, 10061, 28120, 3085, 9863, 12274, 7096, 9581, 2361, 1026, 1047, 1010, 1058, 1028, 22164, 6327, 21335, 3468, 1063, 2797, 10763, 2345, 2146, 7642, 27774, 21272, 1027, 1015, 2140, 1025, 1013, 1013, 12398, 2013, 3435, 9863, 2797, 10763, 2345, 20014, 12398, 1035, 3977, 1027, 1015, 1025, 2797, 20014, 3988, 9863, 17695, 6305, 3012, 1025, 2270, 4800, 16416, 4063, 24333, 9863, 12274, 7096, 9581, 2361, 1006, 1007, 1063, 2023, 1012, 3988, 9863, 17695, 6305, 3012, 1027, 12398, 1035, 3977, 1025, 1065, 2270, 4800, 16416, 4063, 24333, 9863, 12274, 7096, 9581, 2361, 1006, 20014, 5664, 14839, 2015, 30524, 2595, 24422, 1006, 1000, 2119, 9918, 2442, 2022, 3893, 1012, 1000, 1007, 1025, 1065, 2023, 1012, 3988, 9863, 17695, 6305, 3012, 1027, 5300, 30523, 1010, 20014, 5300, 4842, 14839, 1007, 1063, 3565, 1006, 8785, 1012, 4098, 1006, 5664, 14839, 2015, 1008, 1016, 1010, 2385, 1007, 1007, 1025, 2065, 1006, 5664, 14839, 2015, 1026, 1014, 1064, 1064, 5300, 4842, 14839, 1026, 1014, 1007, 1063, 5466, 2047, 6206, 2906, 22850, 15781, 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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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1010, 20014, 5300, 4842, 14839, 1007, 1063, 3565, 1006, 8785, 1012, 4098, 1006, 5664, 14839, 2015, 1008, 1016, 1010, 2385, 1007, 1007, 1025, 2065, 1006, 5664, 14839, 2015, 1026, 1014, 1064, 1064, 5300, 4842, 14839, 1026, 1014, 1007, 1063, 5466, 2047, 6206, 2906, 22850, 15781, 30526 ]
/* * $Id$ * * Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Sun designates this * particular file as subject to the "Classpath" exception as provided * by Sun in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ package com.sun.javatest; import java.io.File; import java.util.Hashtable; import java.util.Vector; import com.sun.javatest.util.DynamicArray; import com.sun.javatest.util.Fifo; import com.sun.javatest.util.I18NResourceBundle; /** * An iterator-based interface to the tests in a test suite, as read by a test finder. */ public class TestFinderQueue { /** * This interface provides a means for TestFinder to report on events that * might be of interest as it executes. */ public static interface Observer { /** * Another file which needs to be read has been found. * @param file the file which was found */ void found(File file); /** * A file is being read. * @param file the file being read */ void reading(File file); /** * A file has been read. * @param file the file which was read */ void done(File file); /** * A test description has been found. * @param td the test description which was found */ void found(TestDescription td); /** * A test description which was previously found, has been rejected by * a test filter, and so has not been put in the queue of tests to be executed. * @param td the test description which was rejected by the filter * @param f the filter which rejected the test */ void ignored(TestDescription td, TestFilter f); /** * A test description that was previously put in the test finder queue * has been taken from the queue and passed back to the client caller. * @param td the test description which was taken from the queue */ void done(TestDescription td); /** * The queue of tests has been flushed. */ void flushed(); /** * An error was reported by the test finder while reading a file. * @param msg a detail message describing the error */ void error(String msg); /** * An error was reported by the test finder while reading a file. * @param td the test description to which the error applies * @param msg a detail message describing the error */ void error(TestDescription td, String msg); } /** * Create a test finder queue. */ public TestFinderQueue() { } /** * Create a test finder queue, using a specified test finder. * @param finder the test finder to be used to read the tests */ public TestFinderQueue(TestFinder finder) { setTestFinder(finder); } /** * Get the test finder being used by this object. * @return the test finder being used by this object * @see #setTestFinder */ public TestFinder getTestFinder() { return testFinder; } /** * Set the test finder to be used by this object. * It may only be set once. * @param finder the test finder to be used by this object * @throws NullPointerException if the finder is null * @throws IllegalStateException if the finder has already been set * @see #getTestFinder */ public void setTestFinder(TestFinder finder) { if (finder == null) throw new NullPointerException(); if (testFinder != null && testFinder != finder) throw new IllegalStateException(); this.testFinder = finder; testFinder.setErrorHandler(new TestFinder.ErrorHandler() { public void error(String msg) { errorCount++; notifier.error(msg); } }); } /** * Set an array of filters that will be used to filter the tests read by the * test finder. Each test must be accepted by all the filters to be put in * the queue. * @param filters the filters to be used. */ public void setFilters(TestFilter[] filters) { this.filters = filters; } /** * Set the initial set of files to be read by the test finder. * Additional files may be read as a result of reading these and subsequent files. * @param initTests the initial set of files to be read by the test finder */ public synchronized void setTests(String[] initTests) { File testSuiteRoot = testFinder.getRoot(); // make canonical copy of tests // really ought not to be using File, since the tests may contain a trailing #xxx File[] files; if (initTests == null) // ensure not null files = new File[] {testSuiteRoot}; else { files = new File[initTests.length]; for (int i = 0; i < initTests.length; i++) { files[i] = new File(initTests[i]); } } rootDir = (testSuiteRoot.isDirectory() ? testSuiteRoot : new File(testSuiteRoot.getParent())); // build up the fifo of tests to be used by readNextFile tests = new Fifo(); currInitialFile = null; for (int pass = 0; pass < 2; pass++) { for (int i = 0; i < files.length; i++) { File f = files[i]; String n = f.getName(); // in pass 0, only select initial files without # // in pass 1, only select initial files with # if ((n.indexOf("#") != -1) == (pass == 0)) continue; // ensure all absolute, or if relative, make them relative // to rootDir if (!f.isAbsolute()) f = new File(rootDir, f.getPath()); // ensure no trailing file separator String p = f.getPath(); if (p.endsWith(File.separator)) f = new File(p.substring(0, p.length() - 1)); tests.insert(f); } } filesRemainingCount = filesToRead.size() + tests.size(); } /** * Set a flag indicating whether it is OK to find no tests in the * specified set of files. If set to false, and if no tests have * been found by the time the last file has been read, an error * will be notified to any observers. * @param zeroTestsOK set to true to suppress an error being generated * if no tests are found by the time that all files have been read */ public void setZeroTestsOK(boolean zeroTestsOK) { this.zeroTestsOK = zeroTestsOK; } /** * Set the queue to "repeat" a set of test descriptions by putting * them in the test found queue again. * @param tds the test descriptions to be "found again". * @deprecated retained for historical purposes */ public void repeat(TestDescription[] tds) { if (tests == null) tests = new Fifo(); // for now for (int i = 0; i < tds.length; i++) { TestDescription td = tds[i]; testDescsFound.insert(td); testsFoundCount++; notifier.found(td); } } /** * Get the next test description if one is available, or null when all have * been returned. * * @return A test description or null. */ public TestDescription next() { TestDescription td; synchronized (this) { while (needReadAhead() && readNextFile()) /*NO-OP*/; // read files until there is a test description available or there // are no more files. while ((td = (TestDescription)(testDescsFound.remove())) == null) { boolean ok = readNextFile(); if (!ok) return null; } // note testsDone, for readAhead testsDoneCount++; } notifier.done(td); return td; } //-------------------------------------------------------------------------- /** * Get the root directory for the test finder. * @return the root directory, as set in the test finder */ public File getRoot() { return rootDir; } //-------------------------------------------------------------------------- // // these are all carefully arranges to not need to be synchronized /** * Get the number of files that have been found so far. * @return the number of files that have been found so far */ public int getFilesFoundCount() { return filesFound.size(); } /** * Get the number of files that have been found and read so far. * @return the number of files that have been found and read so far */ public int getFilesDoneCount() { return filesDoneCount; } /** * Get the number of files that have been found but not yet read so far. * @return the number of files that have been found but not yet read so far */ public int getFilesRemainingCount() { return filesRemainingCount; } /** * Get the number of tests that have been found so far. * @return the number of tests that have been found so far */ public int getTestsFoundCount() { return testsFoundCount; } /** * Get the number of tests that have been read from this object so far. * @return the number of tests that have been read from this object so far */ public int getTestsDoneCount() { return testsDoneCount; } /** * Get the number of tests which have been found but not yet from this * object so far. * @return the number of tests which have been found but not yet read * from this object so far */ public int getTestsRemainingCount() { return testDescsFound.size(); } /** * Get the number of errors that have been found so far by the test finder * while reading the tests. * @return the number of errors that have been found so far by the test finder * while reading the tests. */ public int getErrorCount() { return errorCount; } //-------------------------------------------------------------------------- /** * Add an observer to monitor the progress of the TestFinder. * @param o the observer */ public void addObserver(Observer o) { notifier.addObserver(o); } /** * Remove an observer form the set currently monitoring the progress * of the TestFinder. * @param o the observer */ public void removeObserver(Observer o) { notifier.removeObserver(o); } //-------------------------------------------------------------------------- /** * Set the amount of read-ahead done by the finder. * @param mode acceptable values are as follows: * <dl> <dt> 0: no read ahead * <dd> Files are not read ahead more than necessary * <dt> 1: low read ahead * <dd> A low priority thread is created to read the test files * when the system is otherwise idle * <dt> 2: medium read ahead * <dd> A low priority thread is created to read the test files * when the system is otherwise idle. In addition, if the number * of tests done approaches the number of tests read, then more * tests will be read. * <dt> 3: full and immediate read ahead * <dd> All the tests will be read now * </dl> */ public synchronized void setReadAheadMode(byte mode) { switch (mode) { case NO_READ_AHEAD: case FULL_READ_AHEAD: readAheadMode = mode; readAheadWorker = null; // worker will note this and go away break; case LOW_READ_AHEAD: case MEDIUM_READ_AHEAD: readAheadMode = mode; if (readAheadWorker == null) { readAheadWorker = new Thread() { public void run() { // This is intended to be interruptible and // relies on safe atomic access to worker while ((readAheadWorker == this) && readNextFile()) /*NO-OP*/; // when thread exits; flatten pointer if still current synchronized (TestFinderQueue.this) { if (readAheadWorker == this) readAheadWorker = null; } } }; readAheadWorker.setName("TestFinderQueue:Worker:" + workerIndex++); readAheadWorker.setPriority(Thread.MIN_PRIORITY); readAheadWorker.start(); } break; default: throw new IllegalArgumentException("invalid value for mode"); } } /** * A constant specifying that the test finder queue should not perform * any read ahead. */ public static final byte NO_READ_AHEAD = 0; /** * A constant specifying the test finder queue should perform minimal * read ahead. */ public static final byte LOW_READ_AHEAD = 1; /** * A constant specifying the test finder queue should perform medium * (typical) read ahead. */ public static final byte MEDIUM_READ_AHEAD = 2; /** * A constant specifying the test finder queue should perform complete * read ahead, reading all tests from the test finder before returning any * from this object. */ public static final byte FULL_READ_AHEAD = 3; /** * Flush all readahead. */ public void flush() { synchronized (this) { filesToRead.setSize(0); tests.flush(); testDescsFound.flush(); filesRemainingCount = 0; } notifier.flushed(); } /** * This method is called from next() to determine if any readAhead * should be done there and then, before getting the next TestDescription * for the client. */ private boolean needReadAhead() { switch (readAheadMode) { case FULL_READ_AHEAD: return true; case MEDIUM_READ_AHEAD: // return true if not many tests read yet, or if testsDoneCount // is greater than a certain percentage of testsFoundCount. // This percentage increases inverse exponentially on the // number of tests found. The intent is to try and keep // progress meters based on testsDoneCount and testsFoundCount helpful, // while permitting readAhead to be done. // The formula has the following datapoints: // testsFoundCount: 1000 percent: 18% // testsFoundCount: 10000 percent: 86% if (testsFoundCount < 100) // don't let tests start until at least 100 have been read return true; else { double percent = 1 - Math.exp(-0.0002 * testsFoundCount); return (testsDoneCount > (testsFoundCount * percent)); } default: return false; } } //--------------------------------------------------------------- private synchronized boolean readNextFile() { if (filesToRead.isEmpty()) { // have we finished reading an initial file and found no test descriptions in it? // if so, inform the caller if (currInitialFile != null && testsFoundCountBeforeCurrInitialFile == testsFoundCount && !zeroTestsOK) { errorCount++; notifier.error(i18n.getString("finder.noTests", currInitialFile)); } // are there any more tests that have not been read? // check until we find one (just one). while (filesToRead.isEmpty() && !tests.isEmpty()) { currInitialFile = (File)tests.remove(); foundFile(currInitialFile); } // if we didn't find any more initial files, there is nothing more to do if (filesToRead.isEmpty()) { currInitialFile = null; return false; } else testsFoundCountBeforeCurrInitialFile = testsFoundCount; } File f = (File)(filesToRead.lastElement()); filesToRead.setSize(filesToRead.size() - 1); filesRemainingCount = filesToRead.size() + tests.size(); String path = f.getPath(); int index = path.indexOf('#'); if (index != -1) { selectedId = path.substring(index + 1); f = new File(path.substring(0, index)); } // The filesToRead are maintained in a vector that approximates a stack: // new entries are added at or near the end, and entries are taken from // the end. The subtlety is to add the new files found in file in reverse // order, so that when removed from the end, they are used in the // correct order. This is done by inserting each new file found at a fixed // place, corresponding to the end of the vector as it is when scan() starts. // The net effect is to push up files added earlier in this scan, so they // they will be used first. The overall net effect is that of a depth-first // search for test descriptions. fileInsertPosn = filesToRead.size(); notifier.reading(f); try { testFinder.read(f); } finally { TestDescription[] tds = testFinder.getTests(); for (int i = 0; i < tds.length; i++) { foundTestDescription(tds[i]); } File[] files = testFinder.getFiles(); for (int i = 0; i < files.length; i++) { foundFile(files[i]); } // done limiting tests to this id selectedId = null; filesDoneCount++; notifier.done(f); /* if (filesToRead.isEmpty()) { // we have read all the files we can // flush various tables to free up any space used filesFound.clear(); testsInFile.clear(); } */ } // read a file OK return true; } /** * Add a file to the queue of files waiting to be read. * It will be added to the queue if it has not already been read or is * on the queue waiting to be read, and if the finder is not looking for * a specific test in the current file. * @param newFile The file to be queued */ private void foundFile(File newFile) { // only accept new files if not looking for a specific test in the // current file if (selectedId == null) { Object prev = filesFound.put(newFile.getPath(), newFile); if (prev == null) { filesToRead.insertElementAt(newFile, fileInsertPosn); notifier.found(newFile); } } } private void foundTestDescription(TestDescription td) { // if we are not searching for a specific test, or if we are and we have // found it, then add the test to the list of tests we have found if (selectedId == null || selectedId.equals(td.getId())) { if (filters != null) { for (int i = 0; i < filters.length; i++) { TestFilter filter = filters[i]; try { if (!filter.accepts(td)) { notifier.ignored(td, filter); return; } } catch (TestFilter.Fault e) { errorCount++; notifier.error(td, e.getMessage()); return; } } } testDescsFound.insert(td); testsFoundCount++; notifier.found(td); } } //--------------------------------------------------------------- private static class Notifier implements Observer { public synchronized void addObserver(Observer o) { observers = (Observer[])DynamicArray.append(observers, o); } public synchronized void removeObserver(Observer o) { observers = (Observer[])DynamicArray.remove(observers, o); } public synchronized void found(File file) { for (int i = 0; i < observers.length; i++) observers[i].found(file); } public synchronized void reading(File file) { for (int i = 0; i < observers.length; i++) observers[i].reading(file); } public synchronized void done(File file) { for (int i = 0; i < observers.length; i++) observers[i].done(file); } public synchronized void found(TestDescription td) { for (int i = 0; i < observers.length; i++) observers[i].found(td); } public synchronized void ignored(TestDescription td, TestFilter f) { for (int i = 0; i < observers.length; i++) observers[i].ignored(td, f); } public synchronized void done(TestDescription td) { for (int i = 0; i < observers.length; i++) observers[i].done(td); } public synchronized void flushed() { for (int i = 0; i < observers.length; i++) observers[i].flushed(); } public synchronized void error(String msg) { for (int i = 0; i < observers.length; i++) observers[i].error(msg); } public synchronized void error(TestDescription td, String msg) { for (int i = 0; i < observers.length; i++) observers[i].error(td, msg); } private Observer[] observers = new Observer[0]; } //----------member variables------------------------------------------------ private TestFinder testFinder; private Fifo tests; private TestFilter[] filters; private String selectedId; private File rootDir; private File currInitialFile; private int testsFoundCountBeforeCurrInitialFile; private boolean zeroTestsOK; private Vector filesToRead = new Vector(32, 8); private int fileInsertPosn; private Fifo testDescsFound = new Fifo(); private int filesRemainingCount; private int filesDoneCount; private int testsDoneCount; private int testsFoundCount; private int errorCount; private Hashtable filesFound = new Hashtable(); private byte readAheadMode; private Thread readAheadWorker; private static int workerIndex; private Notifier notifier = new Notifier(); private static I18NResourceBundle i18n = I18NResourceBundle.getBundleForClass(TestFinder.class); }
Distrotech/icedtea7
test/jtreg/com/sun/javatest/TestFinderQueue.java
Java
gpl-2.0
24,262
[ 30522, 1013, 1008, 1008, 1002, 8909, 1002, 1008, 30524, 2030, 19933, 2009, 1008, 2104, 1996, 3408, 1997, 1996, 27004, 2236, 2270, 6105, 2544, 1016, 2069, 1010, 2004, 1008, 2405, 2011, 1996, 2489, 4007, 3192, 1012, 3103, 24414, 2015, 2023, 1008, 3327, 5371, 2004, 3395, 2000, 1996, 1000, 2465, 15069, 1000, 6453, 2004, 3024, 1008, 2011, 3103, 1999, 1996, 6105, 5371, 2008, 5642, 2023, 3642, 1012, 1008, 1008, 2023, 3642, 2003, 5500, 1999, 1996, 3246, 2008, 2009, 2097, 2022, 6179, 1010, 2021, 2302, 1008, 2151, 10943, 2100, 1025, 2302, 2130, 1996, 13339, 10943, 2100, 1997, 6432, 8010, 2030, 1008, 10516, 2005, 1037, 3327, 3800, 1012, 2156, 1996, 27004, 2236, 2270, 6105, 1008, 2544, 1016, 2005, 2062, 4751, 1006, 1037, 6100, 2003, 2443, 1999, 1996, 6105, 5371, 2008, 1008, 5642, 2023, 3642, 1007, 1012, 1008, 1008, 2017, 2323, 2031, 2363, 1037, 6100, 1997, 1996, 27004, 2236, 2270, 6105, 2544, 1008, 1016, 2247, 2007, 2023, 2147, 1025, 2065, 2025, 1010, 4339, 2000, 1996, 2489, 4007, 3192, 1010, 1008, 4297, 1012, 1010, 4868, 5951, 2358, 1010, 3587, 2723, 1010, 3731, 1010, 5003, 6185, 14526, 2692, 1011, 7558, 2487, 3915, 1012, 1008, 1008, 3531, 3967, 3103, 12702, 29390, 1010, 4297, 1012, 1010, 24690, 2692, 2897, 4418, 1010, 4203, 10254, 1010, 1008, 6187, 20317, 27009, 3915, 2030, 3942, 7479, 1012, 3103, 1012, 4012, 2065, 2017, 2342, 3176, 2592, 2030, 1008, 2031, 2151, 3980, 1012, 1008, 1013, 7427, 4012, 1012, 3103, 1012, 9262, 22199, 1025, 12324, 9262, 1012, 22834, 1012, 5371, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 23325, 10880, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 9207, 1025, 12324, 4012, 1012, 3103, 1012, 9262, 22199, 1012, 21183, 4014, 1012, 8790, 2906, 9447, 1025, 12324, 4012, 1012, 3103, 1012, 9262, 22199, 1012, 21183, 4014, 1012, 10882, 14876, 1025, 12324, 4012, 1012, 3103, 1012, 9262, 22199, 1012, 21183, 4014, 1012, 1045, 15136, 16118, 2229, 8162, 3401, 27265, 2571, 1025, 1013, 1008, 1008, 1008, 2019, 2009, 6906, 4263, 1011, 2241, 8278, 2000, 1996, 5852, 1999, 1037, 3231, 7621, 1010, 2004, 3191, 2011, 1037, 3231, 2424, 2121, 1012, 1008, 1013, 2270, 2465, 3231, 23695, 4226, 5657, 1063, 1013, 1008, 1008, 1008, 2023, 8278, 3640, 1037, 2965, 2005, 3231, 23695, 2000, 3189, 2006, 2824, 2008, 1008, 2453, 2022, 1997, 3037, 2004, 2009, 15389, 2015, 1012, 1008, 1013, 2270, 10763, 8278, 9718, 1063, 1013, 1008, 1008, 1008, 2178, 5371, 2029, 3791, 2000, 2022, 3191, 2038, 2042, 2179, 1012, 1008, 1030, 11498, 2213, 5371, 1996, 5371, 2029, 2001, 2179, 1008, 1013, 11675, 2179, 1006, 5371, 5371, 1007, 1025, 1013, 1008, 1008, 1008, 1037, 5371, 2003, 2108, 3191, 1012, 1008, 1030, 11498, 2213, 5371, 1996, 5371, 2108, 3191, 1008, 1013, 11675, 3752, 1006, 5371, 5371, 1007, 1025, 1013, 1008, 1008, 1008, 1037, 5371, 2038, 2042, 3191, 1012, 1008, 30523, 1008, 9385, 2727, 1011, 2263, 3103, 12702, 29390, 1010, 4297, 1012, 2035, 2916, 9235, 1012, 1008, 2079, 2025, 11477, 2030, 6366, 9385, 14444, 2030, 2023, 5371, 20346, 1012, 1008, 1008, 2023, 3642, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 9385, 2727, 1011, 2263, 3103, 12702, 29390, 1010, 4297, 1012, 2035, 2916, 9235, 1012, 1008, 2079, 2025, 11477, 2030, 6366, 9385, 14444, 2030, 2023, 5371, 20346, 1012, 1008, 1008, 2023, 3642, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 30526 ]
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Dulcet.Twitter; using Inscribe.Common; using Inscribe.Configuration; using Inscribe.Util; using Inscribe.Subsystems; using Inscribe.ViewModels.PartBlocks.MainBlock.TimelineChild; using Livet; namespace Inscribe.Storage { /// <summary> /// ツイートの存在状態 /// </summary> public enum TweetExistState { Unreceived, EmptyExists, Exists, ServerDeleted, } /// <summary> /// ツイートデータ(ViewModel)保持ベースクラス /// </summary> public static class TweetStorage { /// <summary> /// ディクショナリのロック /// </summary> static ReaderWriterLockWrap lockWrap = new ReaderWriterLockWrap(LockRecursionPolicy.NoRecursion); /// <summary> /// 登録済みステータスディクショナリ /// </summary> static SortedDictionary<long, TweetViewModel> dictionary = new SortedDictionary<long, TweetViewModel>(); static ReaderWriterLockWrap vmLockWrap = new ReaderWriterLockWrap(LockRecursionPolicy.NoRecursion); /// <summary> /// ViewModel一覧の参照の高速化のためのリスト /// </summary> static List<TweetViewModel> viewmodels = new List<TweetViewModel>(); /// <summary> /// empties/deleteReserveds用ロックラップ /// </summary> static ReaderWriterLockWrap elockWrap = new ReaderWriterLockWrap(LockRecursionPolicy.NoRecursion); /// <summary> /// 仮登録ステータスディクショナリ /// </summary> static SortedDictionary<long, TweetViewModel> empties = new SortedDictionary<long, TweetViewModel>(); /// <summary> /// 削除予約されたツイートIDリスト /// </summary> static LinkedList<long> deleteReserveds = new LinkedList<long>(); /// <summary> /// ツイートストレージの作業用スレッドディスパッチャ /// </summary> static QueueTaskDispatcher operationDispatcher; static TweetStorage() { operationDispatcher = new QueueTaskDispatcher(1); ThreadHelper.Halt += () => operationDispatcher.Dispose(); } /// <summary> /// ツイートを受信したか、また明示的削除などが行われたかを確認します。 /// </summary> public static TweetExistState Contains(long id) { using (lockWrap.GetReaderLock()) { if (dictionary.ContainsKey(id)) return TweetExistState.Exists; } using (elockWrap.GetReaderLock()) { if (deleteReserveds.Contains(id)) return TweetExistState.ServerDeleted; else if (empties.ContainsKey(id)) return TweetExistState.EmptyExists; else return TweetExistState.Unreceived; } } /// <summary> /// ツイートデータを取得します。 /// </summary> /// <param name="id">ツイートID</param> /// <param name="createEmpty">存在しないとき、空のViewModelを作って登録して返す</param> public static TweetViewModel Get(long id, bool createEmpty = false) { TweetViewModel ret; using (lockWrap.GetReaderLock()) { if (dictionary.TryGetValue(id, out ret)) return ret; } using (createEmpty ? elockWrap.GetUpgradableReaderLock() : elockWrap.GetReaderLock()) { if (empties.TryGetValue(id, out ret)) return ret; if (createEmpty) { using (elockWrap.GetWriterLock()) { var nvm = new TweetViewModel(id); empties.Add(id, nvm); return nvm; } } else { return null; } } } /// <summary> /// 登録されているステータスを抽出します。 /// </summary> /// <param name="predicate">抽出条件</param> /// <returns>条件にマッチするステータス、または登録されているすべてのステータス</returns> public static IEnumerable<TweetViewModel> GetAll(Func<TweetViewModel, bool> predicate = null) { IEnumerable<TweetViewModel> tvms; using (vmLockWrap.GetReaderLock()) { tvms = viewmodels.ToArray(); } if (predicate == null) return tvms; else return tvms.AsParallel().Where(predicate); } private static volatile int _count; /// <summary> /// 登録されているツイートの個数を取得します。 /// </summary> public static int Count() { return _count; } /// <summary> /// 受信したツイートを登録します。<para /> /// 諸々の処理を自動で行います。 /// </summary> public static TweetViewModel Register(TwitterStatusBase statusBase) { TweetViewModel robj; using (lockWrap.GetReaderLock()) { if (dictionary.TryGetValue(statusBase.Id, out robj)) return robj; } var status = statusBase as TwitterStatus; if (status != null) { return RegisterStatus(status); } else { var dmsg = statusBase as TwitterDirectMessage; if (dmsg != null) { return RegisterDirectMessage(dmsg); } else { throw new InvalidOperationException("不明なステータスを受信しました: " + statusBase); } } } /// <summary> /// ステータスの追加に際しての処理 /// </summary> private static TweetViewModel RegisterStatus(TwitterStatus status) { if (status.RetweetedOriginal != null) { // リツイートのオリジナルステータスを登録 var vm = Register(status.RetweetedOriginal); // リツイートユーザーに登録 var user = UserStorage.Get(status.User); var tuser = UserStorage.Get(status.RetweetedOriginal.User); if (vm.RegisterRetweeted(user)) { if (!vm.IsStatusInfoContains) vm.SetStatus(status.RetweetedOriginal); // 自分が関係していれば if (AccountStorage.Contains(status.RetweetedOriginal.User.ScreenName) || AccountStorage.Contains(user.TwitterUser.ScreenName)) EventStorage.OnRetweeted(vm, user); } } UserStorage.Register(status.User); var registered = RegisterCore(status); // 返信先の登録 if (status.InReplyToStatusId != 0) { Get(status.InReplyToStatusId, true).RegisterInReplyToThis(status.Id); } if (TwitterHelper.IsMentionOfMe(status)) { EventStorage.OnMention(registered); } return registered; } /// <summary> /// ダイレクトメッセージの追加に際しての処理 /// </summary> private static TweetViewModel RegisterDirectMessage(TwitterDirectMessage dmsg) { UserStorage.Register(dmsg.Sender); UserStorage.Register(dmsg.Recipient); var vm = RegisterCore(dmsg); EventStorage.OnDirectMessage(vm); return vm; } /// <summary> /// ステータスベースの登録処理 /// </summary> private static TweetViewModel RegisterCore(TwitterStatusBase statusBase) { TweetViewModel viewModel; using (elockWrap.GetUpgradableReaderLock()) { if (empties.TryGetValue(statusBase.Id, out viewModel)) { // 既にViewModelが生成済み if (!viewModel.IsStatusInfoContains) viewModel.SetStatus(statusBase); using (elockWrap.GetWriterLock()) { empties.Remove(statusBase.Id); } } else { // 全く初めて触れるステータス viewModel = new TweetViewModel(statusBase); } } if (ValidateTweet(viewModel)) { // プリプロセッシング PreProcess(statusBase); bool delr = false; using (elockWrap.GetReaderLock()) { delr = deleteReserveds.Contains(statusBase.Id); } if (!delr) { using (lockWrap.GetUpgradableReaderLock()) { if (dictionary.ContainsKey(statusBase.Id)) { return viewModel; // すでにKrile内に存在する } else { using (lockWrap.GetWriterLock()) { dictionary.Add(statusBase.Id, viewModel); } _count++; } } Task.Factory.StartNew(() => RaiseStatusAdded(viewModel)).ContinueWith(_ => { // delay add using (vmLockWrap.GetWriterLock()) { viewmodels.Add(viewModel); } }); } } return viewModel; } /// <summary> /// 登録可能なツイートか判定 /// </summary> /// <returns></returns> public static bool ValidateTweet(TweetViewModel viewModel) { if (viewModel.Status == null || viewModel.Status.User == null || String.IsNullOrEmpty(viewModel.Status.User.ScreenName)) throw new ArgumentException("データが破損しています。"); return true; } /// <summary> /// ステータスのプリプロセッシング /// </summary> private static void PreProcess(TwitterStatusBase status) { try { if (status.Entities != null) { // extracting t.co and official image new[] { status.Entities.GetChildNode("urls"), status.Entities.GetChildNode("media") } .Where(n => n != null) .SelectMany(n => n.GetChildNodes("item")) .Where(i => i.GetChildNode("indices") != null) .Where(i => i.GetChildNode("indices").GetChildValues("item") != null) .OrderByDescending(i => i.GetChildNode("indices").GetChildValues("item") .Select(s => int.Parse(s.Value)).First()) .ForEach(i => { String expand = null; if (i.GetChildValue("media_url") != null) expand = i.GetChildValue("media_url").Value; if (String.IsNullOrWhiteSpace(expand) && i.GetChildValue("expanded_url") != null) expand = i.GetChildValue("expanded_url").Value; if (String.IsNullOrWhiteSpace(expand) && i.GetChildValue("url") != null) expand = i.GetChildValue("url").Value; if (!String.IsNullOrWhiteSpace(expand)) { var indices = i.GetChildNode("indices").GetChildValues("item") .Select(v => int.Parse(v.Value)).OrderBy(v => v).ToArray(); if (indices.Length == 2) { //一旦内容を元の状態に戻す(参照:XmlParser.ParseString) string orgtext = status.Text.Replace("&", "&amp;").Replace(">", "&gt;").Replace("<", "&lt;"); // Considering surrogate pairs and Combining Character. string text = SubstringForSurrogatePaire(orgtext, 0, indices[0]) + expand + SubstringForSurrogatePaire(orgtext, indices[1]); //再度処理を施す status.Text = text.Replace("&lt;", "<").Replace("&gt;", ">").Replace("&amp;", "&"); } } }); } } catch { } } private static string SubstringForSurrogatePaire(string str, int startIndex, int length = -1) { var s = GetLengthForSurrogatePaire(str, startIndex, 0); if (length == -1) { return str.Substring(s); } var l = GetLengthForSurrogatePaire(str, length, s); return str.Substring(s, l); } private static int GetLengthForSurrogatePaire(string str, int len, int s) { var l = 0; for (int i = 0; i < len; i++) { if (char.IsHighSurrogate(str[l + s])) { l++; } l++; } return l; } /// <summary> /// ツイートをツイートストレージから除去 /// </summary> /// <param name="id">ツイートID</param> public static void Trim(long id) { TweetViewModel remobj = null; using (elockWrap.GetWriterLock()) { empties.Remove(id); } using (lockWrap.GetWriterLock()) { if (dictionary.TryGetValue(id, out remobj)) { dictionary.Remove(id); _count--; } } if (remobj != null) { using (vmLockWrap.GetWriterLock()) { viewmodels.Remove(remobj); } Task.Factory.StartNew(() => RaiseStatusRemoved(remobj)); } } /// <summary> /// ツイートの削除 /// </summary> /// <param name="id">削除するツイートID</param> public static void Remove(long id) { TweetViewModel remobj = null; using (elockWrap.GetWriterLock()) { empties.Remove(id); } using (lockWrap.GetWriterLock()) { // 削除する deleteReserveds.AddLast(id); if (dictionary.TryGetValue(id, out remobj)) { if (remobj.IsRemoved) { dictionary.Remove(id); _count--; } } } if (remobj != null) { using (vmLockWrap.GetWriterLock()) { if (remobj.IsRemoved) viewmodels.Remove(remobj); } Task.Factory.StartNew(() => RaiseStatusRemoved(remobj)); // リツイート判定 var status = remobj.Status as TwitterStatus; if (status != null && status.RetweetedOriginal != null) { var ros = TweetStorage.Get(status.RetweetedOriginal.Id); if (ros != null) ros.RemoveRetweeted(UserStorage.Get(status.User)); } } } /// <summary> /// ツイートの内部状態が変化したことを通知します。<para /> /// (例えば、ふぁぼられたりRTされたり返信貰ったりなど。) /// </summary> public static void NotifyTweetStateChanged(TweetViewModel tweet) { Task.Factory.StartNew(() => RaiseStatusStateChanged(tweet)); } #region TweetStorageChangedイベント public static event EventHandler<TweetStorageChangedEventArgs> TweetStorageChanged; private static Notificator<TweetStorageChangedEventArgs> _TweetStorageChangedEvent; public static Notificator<TweetStorageChangedEventArgs> TweetStorageChangedEvent { get { if (_TweetStorageChangedEvent == null) _TweetStorageChangedEvent = new Notificator<TweetStorageChangedEventArgs>(); return _TweetStorageChangedEvent; } set { _TweetStorageChangedEvent = value; } } private static void OnTweetStorageChanged(TweetStorageChangedEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref TweetStorageChanged, null, null); if (threadSafeHandler != null) threadSafeHandler(null, e); TweetStorageChangedEvent.Raise(e); } #endregion static void RaiseStatusAdded(TweetViewModel added) { // Mention通知設定がないか、 // 自分へのMentionでない場合にのみRegisterする // + // Retweet通知設定がないか、 // 自分のTweetのRetweetでない場合にのみRegisterする if ((!Setting.Instance.NotificationProperty.NotifyMention || !TwitterHelper.IsMentionOfMe(added.Status)) && (!Setting.Instance.NotificationProperty.NotifyRetweet || !(added.Status is TwitterStatus) || ((TwitterStatus)added.Status).RetweetedOriginal == null || !AccountStorage.Contains(((TwitterStatus)added.Status).RetweetedOriginal.User.ScreenName))) NotificationCore.RegisterNotify(added); OnTweetStorageChanged(new TweetStorageChangedEventArgs(TweetActionKind.Added, added)); NotificationCore.DispatchNotify(added); } static void RaiseStatusRemoved(TweetViewModel removed) { OnTweetStorageChanged(new TweetStorageChangedEventArgs(TweetActionKind.Removed, removed)); } static void RaiseStatusStateChanged(TweetViewModel changed) { OnTweetStorageChanged(new TweetStorageChangedEventArgs(TweetActionKind.Changed, changed)); } static void RaiseRefreshTweets() { OnTweetStorageChanged(new TweetStorageChangedEventArgs(TweetActionKind.Refresh)); } internal static void UpdateMute() { if (Setting.Instance.TimelineFilteringProperty.MuteFilterCluster == null) return; GetAll(t => Setting.Instance.TimelineFilteringProperty.MuteFilterCluster.Filter(t.Status)) .ForEach(t => { if (!AccountStorage.Contains(t.Status.User.ScreenName)) Remove(t.bindingId); }); } } public class TweetStorageChangedEventArgs : EventArgs { public TweetStorageChangedEventArgs(TweetActionKind act, TweetViewModel added = null) { this.ActionKind = act; this.Tweet = added; } public TweetViewModel Tweet { get; set; } public TweetActionKind ActionKind { get; set; } } public enum TweetActionKind { /// <summary> /// ツイートが追加された /// </summary> Added, /// <summary> /// ツイートが削除された /// </summary> Removed, /// <summary> /// ツイートの固有情報が変更された /// </summary> Changed, /// <summary> /// ストレージ全体に変更が入った /// </summary> Refresh, } }
fin-alice/Mystique
Inscribe/Storage/TweetStorage.cs
C#
mit
21,267
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 11689, 2075, 1025, 2478, 2291, 1012, 11689, 2075, 1012, 8518, 1025, 2478, 4241, 23314, 2102, 1012, 10474, 1025, 2478, 16021, 26775, 20755, 1012, 2691, 1025, 2478, 16021, 26775, 20755, 1012, 9563, 1025, 2478, 16021, 26775, 20755, 1012, 21183, 4014, 1025, 2478, 16021, 26775, 20755, 1012, 4942, 29390, 1025, 2478, 16021, 26775, 20755, 1012, 3193, 5302, 9247, 2015, 1012, 2112, 23467, 2015, 1012, 2364, 23467, 1012, 17060, 19339, 1025, 2478, 2444, 2102, 1025, 3415, 15327, 16021, 26775, 20755, 1012, 5527, 1063, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 1712, 30221, 30265, 30240, 30197, 100, 100, 100, 100, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 2270, 4372, 2819, 1056, 28394, 2618, 9048, 12837, 12259, 1063, 4895, 2890, 3401, 3512, 2094, 1010, 4064, 10288, 5130, 1010, 6526, 1010, 8241, 9247, 12870, 2094, 1010, 1065, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 1712, 30221, 30265, 30240, 30239, 30265, 30235, 1006, 3193, 5302, 9247, 1007, 1766, 100, 1721, 30265, 30233, 30228, 30257, 30233, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 2270, 10763, 2465, 1056, 28394, 3215, 4263, 4270, 1063, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 1713, 30220, 30228, 30232, 30256, 30241, 30258, 30197, 30261, 30237, 30228, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 10763, 8068, 15994, 7878, 13088, 9331, 5843, 13088, 9331, 1027, 2047, 8068, 15994, 7878, 13088, 9331, 1006, 5843, 2890, 10841, 2869, 3258, 18155, 2594, 2100, 1012, 4496, 8586, 9236, 3258, 1007, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 100, 100, 100, 1678, 30233, 30239, 30265, 30235, 30233, 30239, 30220, 30228, 30232, 30256, 30241, 30258, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 10763, 19616, 29201, 3258, 5649, 1026, 2146, 1010, 1056, 28394, 9189, 2666, 2860, 5302, 9247, 1028, 9206, 1027, 2047, 19616, 29201, 3258, 5649, 1026, 2146, 1010, 1056, 28394, 9189, 2666, 2860, 5302, 9247, 1028, 1006, 1007, 1025, 10763, 8068, 15994, 7878, 13088, 9331, 1058, 19968, 7432, 13088, 9331, 1027, 2047, 8068, 15994, 7878, 13088, 9331, 1006, 5843, 2890, 10841, 2869, 3258, 18155, 2594, 2100, 1012, 4496, 8586, 9236, 3258, 1007, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 3193, 5302, 9247, 1740, 100, 1671, 100, 100, 1671, 1981, 100, 100, 1671, 30187, 30524, 1006, 1007, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 1013, 7861, 13876, 3111, 1013, 3972, 15141, 6810, 2099, 7178, 2015, 100, 1735, 30237, 30228, 30257, 30237, 30246, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 10763, 8068, 15994, 7878, 13088, 9331, 3449, 7432, 13088, 9331, 1027, 2047, 8068, 15994, 7878, 13088, 9331, 1006, 5843, 2890, 10841, 2869, 3258, 18155, 2594, 2100, 1012, 4496, 8586, 9236, 3258, 1007, 1025, 1013, 1013, 1013, 1026, 12654, 1028, 1013, 1013, 30523, 30206, 30197, 30258, 30233, 30240, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 10763, 2862, 1026, 1056, 28394, 9189, 2666, 2860, 5302, 9247, 1028, 3193, 5302, 9247, 2015, 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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, 30206, 30197, 30258, 30233, 30240, 1013, 1013, 1013, 1026, 1013, 12654, 1028, 10763, 2862, 1026, 1056, 28394, 9189, 2666, 2860, 5302, 9247, 1028, 3193, 5302, 9247, 2015, 1027, 2047, 2862, 1026, 1056, 28394, 9189, 2666, 2860, 5302, 9247, 1028, 30526 ]
// gst-plugin/gst-online-decode-faster.h // Copyright 2013 Tanel Alumae, Tallinn University of Technology // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, // MERCHANTABLITY OR NON-INFRINGEMENT. // See the Apache 2 License for the specific language governing permissions and // limitations under the License. #ifndef KALDI_GST_PLUGIN_GST_ONLINE_GMM_DECODE_FASTER_H_ #define KALDI_GST_PLUGIN_GST_ONLINE_GMM_DECODE_FASTER_H_ #include <vector> #include <gst/gst.h> #include "feat/feature-mfcc.h" #include "online/online-audio-source.h" #include "online/online-feat-input.h" #include "online/online-decodable.h" #include "online/online-faster-decoder.h" #include "online/onlinebin-util.h" #include "util/simple-options.h" #include "gst-plugin/gst-audio-source.h" namespace kaldi { typedef OnlineFeInput<Mfcc> FeInput; G_BEGIN_DECLS /* #defines don't like whitespacey bits */ #define GST_TYPE_ONLINEGMMDECODEFASTER (gst_online_gmm_decode_faster_get_type()) #define GST_ONLINEGMMDECODEFASTER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_ONLINEGMMDECODEFASTER, \ GstOnlineGmmDecodeFaster)) #define GST_ONLINEGMMDECODEFASTER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_ONLINEGMMDECODEFASTER, \ GstOnlineGmmDecodeFasterClass)) #define GST_IS_ONLINEGMMDECODEFASTER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_ONLINEGMMDECODEFASTER)) #define GST_IS_ONLINEGMMDECODEFASTER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_ONLINEGMMDECODEFASTER)) typedef struct _GstOnlineGmmDecodeFaster GstOnlineGmmDecodeFaster; typedef struct _GstOnlineGmmDecodeFasterClass GstOnlineGmmDecodeFasterClass; uint32 kSampleFreq = 16000; struct _GstOnlineGmmDecodeFaster { GstElement element; GstPad *sinkpad_, *srcpad_; bool silent_; OnlineFasterDecoder *decoder_; Matrix<BaseFloat> *lda_transform_; TransitionModel *trans_model_; AmDiagGmm *am_gmm_; fst::Fst<fst::StdArc> *decode_fst_; fst::SymbolTable *word_syms_; fst::VectorFst<LatticeArc> *out_fst_; GstBufferSource *au_src_; gchar *model_rspecifier_; gchar *fst_rspecifier_; gchar *word_syms_filename_; gchar *lda_mat_rspecifier_; std::vector<int32> *silence_phones_; BaseFloat acoustic_scale_; int32 cmn_window_; int32 min_cmn_window_; int32 right_context_, left_context_; OnlineFasterDecoderOpts *decoder_opts_; OnlineFeatureMatrixOptions *feature_reading_opts_; SimpleOptions *simple_options_; }; struct _GstOnlineGmmDecodeFasterClass { GstElementClass parent_class; void (*hyp_word)(GstElement *element, const gchar *hyp_str); }; GType gst_online_gmm_decode_faster_get_type(void); G_END_DECLS } #endif // KALDI_GST_PLUGIN_GST_ONLINE_GMM_DECODE_FASTER_H_
ypkang/djinn
tonic-suite/asr/src/gst-plugin/gst-online-gmm-decode-faster.h
C
bsd-3-clause
3,287
[ 30522, 1013, 1013, 28177, 2102, 1011, 13354, 2378, 1013, 28177, 2102, 1011, 3784, 1011, 21933, 3207, 1011, 5514, 1012, 1044, 1013, 1013, 9385, 2286, 9092, 2884, 2632, 12248, 2063, 1010, 21169, 2118, 1997, 2974, 1013, 1013, 2156, 1012, 1012, 1013, 1012, 1012, 1013, 24731, 2005, 18856, 8486, 10803, 4953, 3674, 6048, 1013, 1013, 1013, 1013, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1013, 1013, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1013, 1013, 2017, 2089, 6855, 1037, 6100, 1997, 1996, 6105, 2012, 1013, 1013, 1013, 1013, 8299, 1024, 1013, 1013, 7479, 1012, 15895, 1012, 8917, 1013, 15943, 1013, 6105, 1011, 1016, 1012, 1014, 1013, 1013, 1013, 1013, 2023, 3642, 2003, 3024, 1008, 2004, 2003, 1008, 3978, 1010, 2302, 10943, 3111, 2030, 3785, 1997, 2151, 1013, 1013, 2785, 1010, 2593, 4671, 2030, 13339, 1010, 2164, 2302, 22718, 2151, 13339, 1013, 1013, 10943, 3111, 2030, 3785, 1997, 2516, 1010, 10516, 2005, 1037, 3327, 3800, 1010, 1013, 1013, 6432, 7875, 18605, 2030, 2512, 1011, 20701, 1012, 1013, 1013, 2156, 1996, 15895, 1016, 6105, 2005, 1996, 3563, 2653, 8677, 6656, 2015, 1998, 1013, 1013, 12546, 2104, 1996, 6105, 1012, 1001, 2065, 13629, 2546, 10556, 6392, 2072, 1035, 28177, 2102, 1035, 13354, 2378, 1035, 28177, 2102, 1035, 3784, 1035, 13938, 2213, 1035, 21933, 3207, 1035, 5514, 1035, 1044, 1035, 1001, 9375, 10556, 6392, 2072, 1035, 28177, 2102, 1035, 13354, 2378, 1035, 28177, 2102, 1035, 3784, 1035, 13938, 2213, 1035, 21933, 3207, 1035, 5514, 1035, 1044, 1035, 1001, 2421, 1026, 9207, 1028, 1001, 2421, 1026, 28177, 2102, 1013, 28177, 2102, 1012, 1044, 1028, 1001, 2421, 1000, 8658, 1013, 3444, 1011, 1049, 11329, 2278, 1012, 1044, 1000, 1001, 2421, 1000, 3784, 1013, 3784, 1011, 5746, 1011, 3120, 1012, 1044, 1000, 1001, 2421, 1000, 3784, 1013, 3784, 1011, 8658, 1011, 7953, 1012, 1044, 1000, 1001, 2421, 1000, 3784, 1013, 3784, 1011, 21933, 20782, 1012, 1044, 1000, 1001, 2421, 1000, 3784, 1013, 3784, 1011, 5514, 1011, 21933, 4063, 1012, 1044, 1000, 1001, 2421, 1000, 3784, 1013, 3784, 8428, 1011, 21183, 4014, 1012, 1044, 1000, 1001, 2421, 1000, 30524, 28177, 2102, 1011, 5746, 1011, 3120, 1012, 1044, 1000, 3415, 15327, 10556, 6392, 2072, 1063, 21189, 12879, 3784, 7959, 2378, 18780, 1026, 1049, 11329, 2278, 1028, 27132, 18780, 1025, 1043, 1035, 4088, 1035, 11703, 4877, 1013, 1008, 1001, 11859, 2123, 1005, 1056, 2066, 12461, 15327, 2100, 9017, 1008, 1013, 1001, 9375, 28177, 2102, 1035, 2828, 1035, 3784, 21693, 26876, 8586, 10244, 24333, 2121, 1006, 28177, 2102, 1035, 3784, 1035, 13938, 2213, 1035, 21933, 3207, 1035, 5514, 1035, 2131, 1035, 2828, 1006, 1007, 1007, 1001, 9375, 28177, 2102, 1035, 3784, 21693, 26876, 8586, 10244, 24333, 2121, 1006, 27885, 3501, 1007, 1032, 1006, 1043, 1035, 2828, 1035, 4638, 1035, 6013, 1035, 3459, 1006, 1006, 27885, 3501, 1007, 1010, 28177, 2102, 1035, 2828, 1035, 3784, 21693, 26876, 8586, 10244, 24333, 30523, 21183, 4014, 1013, 3722, 1011, 7047, 1012, 1044, 1000, 1001, 2421, 1000, 28177, 2102, 1011, 13354, 2378, 1013, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 21183, 4014, 1013, 3722, 1011, 7047, 1012, 1044, 1000, 1001, 2421, 1000, 28177, 2102, 1011, 13354, 2378, 1013, 30526 ]
# Marasmius ignobilis var. ignobilis Berk. & Broome VARIETY #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Marasmius ignobilis var. ignobilis Berk. & Broome ### Remarks null
mdoering/backbone
life/Fungi/Basidiomycota/Agaricomycetes/Agaricales/Marasmiaceae/Marasmius/Marasmius ignobilis/Marasmius ignobilis ignobilis/README.md
Markdown
apache-2.0
227
[ 30522, 1001, 13955, 6491, 4173, 16270, 16429, 24411, 13075, 1012, 16270, 16429, 24411, 2022, 8024, 1012, 1004, 23528, 2063, 3528, 1001, 1001, 1001, 1001, 3570, 3970, 1001, 1001, 1001, 1001, 2429, 2000, 5950, 4569, 20255, 2819, 1001, 1001, 1001, 1001, 2405, 1999, 19701, 1001, 1001, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
/* This is a managed file. Do not delete this comment. */ #include <include/lifecycle.h> static void echo(lifecycle_Foo this, char* hook) { corto_state s = corto_stateof(this); char *stateStr = corto_ptr_str(&s, corto_state_o, 0); corto_info("callback: %s [%s]", hook, stateStr); free(stateStr); } int16_t lifecycle_Foo_construct( lifecycle_Foo this) { echo(this, "construct"); return 0; } void lifecycle_Foo_define( lifecycle_Foo this) { echo(this, "define"); } void lifecycle_Foo_deinit( lifecycle_Foo this) { echo(this, "deinit"); } void lifecycle_Foo_delete( lifecycle_Foo this) { echo(this, "delete"); } void lifecycle_Foo_destruct( lifecycle_Foo this) { echo(this, "destruct"); } int16_t lifecycle_Foo_init( lifecycle_Foo this) { echo(this, "init"); return 0; } void lifecycle_Foo_update( lifecycle_Foo this) { echo(this, "update"); } int16_t lifecycle_Foo_validate( lifecycle_Foo this) { echo(this, "validate"); return 0; }
cortoproject/examples
c/modeling/lifecycle/src/Foo.c
C
mit
1,051
[ 30522, 1013, 1008, 2023, 2003, 1037, 3266, 5371, 1012, 2079, 2025, 3972, 12870, 2023, 7615, 1012, 1008, 1013, 1001, 2421, 1026, 2421, 1013, 2166, 23490, 1012, 1044, 1028, 10763, 11675, 9052, 1006, 2166, 23490, 1035, 29379, 2023, 1010, 25869, 1008, 8103, 1007, 1063, 2522, 5339, 2080, 1035, 2110, 1055, 1027, 2522, 5339, 2080, 1035, 2110, 11253, 1006, 2023, 1007, 1025, 25869, 1008, 2163, 16344, 1027, 2522, 5339, 2080, 1035, 13866, 2099, 1035, 2358, 30524, 2163, 16344, 1007, 1025, 2489, 1006, 2163, 16344, 1007, 1025, 1065, 20014, 16048, 1035, 1056, 2166, 23490, 1035, 29379, 1035, 9570, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 9570, 1000, 1007, 1025, 2709, 1014, 1025, 1065, 11675, 2166, 23490, 1035, 29379, 1035, 9375, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 9375, 1000, 1007, 1025, 1065, 11675, 2166, 23490, 1035, 29379, 1035, 14866, 3490, 2102, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 14866, 3490, 2102, 1000, 1007, 1025, 1065, 11675, 2166, 23490, 1035, 29379, 1035, 3972, 12870, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 3972, 12870, 1000, 1007, 1025, 1065, 11675, 2166, 23490, 1035, 29379, 1035, 4078, 18300, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 4078, 18300, 1000, 1007, 1025, 1065, 20014, 16048, 1035, 1056, 2166, 23490, 1035, 29379, 1035, 1999, 4183, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 1999, 4183, 1000, 1007, 1025, 2709, 1014, 1025, 1065, 11675, 2166, 23490, 1035, 29379, 1035, 10651, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 10651, 1000, 1007, 1025, 1065, 20014, 16048, 1035, 1056, 2166, 23490, 1035, 29379, 1035, 9398, 3686, 1006, 2166, 23490, 1035, 29379, 2023, 1007, 1063, 9052, 1006, 2023, 1010, 1000, 9398, 3686, 1000, 1007, 1025, 2709, 1014, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2099, 1006, 1004, 1055, 1010, 2522, 5339, 2080, 1035, 2110, 1035, 1051, 1010, 1014, 1007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 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, 2099, 1006, 1004, 1055, 1010, 2522, 5339, 2080, 1035, 2110, 1035, 1051, 1010, 1014, 1007, 1025, 2522, 5339, 2080, 1035, 18558, 1006, 1000, 2655, 5963, 1024, 1003, 1055, 1031, 1003, 1055, 1033, 1000, 1010, 8103, 1010, 30526 ]
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef __IFMAP_STATE_MACHINE_H__ #define __IFMAP_STATE_MACHINE_H__ #include <boost/asio/deadline_timer.hpp> #include <boost/statechart/state_machine.hpp> #include "base/queue_task.h" namespace sc = boost::statechart; class IFMapChannel; class IFMapManager; namespace ifsm { struct EvStart; struct Idle; struct EvReadSuccess; } class IFMapStateMachine : public sc::state_machine<IFMapStateMachine, ifsm::Idle> { public: static const int kConnectInterval; static const int kResponseWaitInterval; enum State { IDLE = 0, SERVERRESOLVE = 1, SSRCCONNECT = 2, SSRCSSLHANDSHAKE = 3, SENDNEWSESSION = 4, NEWSESSIONRESPONSEWAIT = 5, SENDSUBSCRIBE = 6, SUBSCRIBERESPONSEWAIT = 7, ARCCONNECT = 8, ARCSSLHANDSHAKE = 9, SENDPOLL = 10, POLLRESPONSEWAIT = 11, SSRCSTART = 12, CONNECTTIMERWAIT = 13 // Add an entry to state_names[] if you add an entry here }; IFMapStateMachine(IFMapManager *manager); void Initialize(); int GetConnectTime(bool is_ssrc) const; void StartConnectTimer(int seconds); void StopConnectTimer(); void ConnectTimerExpired(const boost::system::error_code& error); void StartResponseTimer(); void StopResponseTimer(); void ResponseTimerExpired(const boost::system::error_code& error); void Start(); void ProcConnectionCleaned(); void ProcResolveResponse(const boost::system::error_code& error); void ProcConnectResponse(const boost::system::error_code& error); void ProcHandshakeResponse(const boost::system::error_code& error); void ProcNewSessionWrite(const boost::system::error_code& error, size_t bytes_transferred); void ProcNewSessionResponse(const boost::system::error_code& error, size_t bytes_transferred); void ProcSubscribeWrite(const boost::system::error_code& error, size_t bytes_transferred); void ProcSubscribeResponse(const boost::system::error_code& error, size_t bytes_transferred); void ProcSubscribeResponseStr(bool error, std::string resp_str); void ProcPollWrite(const boost::system::error_code& error, size_t bytes_transferred); void ProcPollResponseRead(const boost::system::error_code& error, size_t bytes_transferred); void ProcPollRespBodyRead(const boost::system::error_code& error, size_t bytes_transferred); void ProcResponse(const boost::system::error_code& error, size_t bytes_transferred); void set_channel(IFMapChannel *channel) { channel_ = channel; } void ssrc_connect_attempts_inc() { ssrc_connect_attempts_++; } void ssrc_connect_attempts_clear() { ssrc_connect_attempts_ = 0; } void arc_connect_attempts_inc() { arc_connect_attempts_++; } void arc_connect_attempts_clear() { arc_connect_attempts_ = 0; } int connection_attempts_get() { return connection_attempts_; } void OnStart(const ifsm::EvStart &event); bool DequeueEvent(boost::intrusive_ptr<const sc::event_base> &event); IFMapChannel *channel() { return channel_; } void set_state(State state); State state() { return state_; } State last_state() { return last_state_; } const std::string &StateName() const; const std::string &LastStateName() const; const std::string &StateName(State state) const; const std::string last_state_change_at() const; void set_last_event(const std::string &event); const std::string &last_event() const { return last_event_; } const std::string last_event_at() const; private: void EnqueueEvent(const sc::event_base &ev); bool ProcErrorAndIgnore(const boost::system::error_code& error); void connection_attempts_inc() { connection_attempts_++; } void connection_attempts_clear() { connection_attempts_ = 0; } IFMapManager *manager_; boost::asio::deadline_timer connect_timer_; int ssrc_connect_attempts_; int arc_connect_attempts_; // used to limit the wait time for a response boost::asio::deadline_timer response_timer_; // how many times we timed out waiting for a response int connection_attempts_; IFMapChannel *channel_; WorkQueue<boost::intrusive_ptr<const sc::event_base> > work_queue_; State state_; State last_state_; uint64_t last_state_change_at_; std::string last_event_; uint64_t last_event_at_; }; #endif /* __IFMAP_STATE_MACHINE_H__ */
sysbot/contrail-controller
src/ifmap/client/ifmap_state_machine.h
C
apache-2.0
4,843
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2286, 29425, 6125, 1010, 4297, 1012, 2035, 2916, 9235, 1012, 1008, 1013, 1001, 2065, 13629, 2546, 1035, 1035, 2065, 2863, 2361, 1035, 2110, 1035, 3698, 1035, 1044, 1035, 1035, 1001, 9375, 1035, 1035, 2065, 2863, 2361, 1035, 2110, 1035, 3698, 1035, 1044, 1035, 1035, 1001, 2421, 1026, 12992, 1013, 2004, 3695, 1013, 15117, 1035, 25309, 1012, 6522, 2361, 1028, 1001, 2421, 1026, 12992, 1013, 2110, 7507, 5339, 1013, 2110, 1035, 3698, 1012, 6522, 2361, 1028, 1001, 2421, 1000, 30524, 6593, 18373, 1025, 2358, 6820, 6593, 23408, 16416, 5104, 14194, 9623, 2015, 1025, 1065, 2465, 2065, 2863, 4523, 12259, 22911, 14014, 1024, 2270, 8040, 1024, 1024, 2110, 1035, 3698, 1026, 2065, 2863, 4523, 12259, 22911, 14014, 1010, 2065, 6491, 1024, 1024, 18373, 1028, 1063, 2270, 1024, 10763, 9530, 3367, 20014, 21117, 18256, 6593, 18447, 2121, 10175, 1025, 10763, 9530, 3367, 20014, 1047, 6072, 26029, 3366, 21547, 7629, 3334, 10175, 1025, 4372, 2819, 2110, 1063, 18373, 1027, 1014, 1010, 8241, 6072, 4747, 3726, 1027, 1015, 1010, 20896, 21408, 10087, 6593, 1027, 1016, 1010, 20896, 6169, 14540, 11774, 7377, 3489, 1027, 1017, 1010, 4604, 2638, 9333, 7971, 3258, 1027, 1018, 1010, 2739, 7971, 3258, 6072, 26029, 3366, 21547, 2102, 1027, 1019, 1010, 10255, 12083, 29234, 1027, 1020, 1010, 4942, 29234, 6072, 26029, 3366, 21547, 2102, 1027, 1021, 1010, 8115, 8663, 2638, 6593, 1027, 1022, 1010, 29137, 14540, 11774, 7377, 3489, 1027, 1023, 1010, 4604, 18155, 2140, 1027, 2184, 1010, 8554, 6072, 26029, 3366, 21547, 2102, 1027, 2340, 1010, 20896, 6169, 7559, 2102, 1027, 2260, 1010, 7532, 7292, 2099, 21547, 2102, 1027, 2410, 1013, 1013, 5587, 2019, 4443, 2000, 2110, 1035, 3415, 1031, 1033, 2065, 2017, 5587, 2019, 4443, 2182, 1065, 1025, 2065, 2863, 4523, 12259, 22911, 14014, 1006, 2065, 2863, 9737, 5162, 4590, 1008, 3208, 1007, 1025, 11675, 3988, 4697, 1006, 1007, 1025, 20014, 2131, 8663, 2638, 6593, 7292, 1006, 22017, 2140, 2003, 1035, 20896, 2278, 1007, 9530, 3367, 1025, 11675, 2707, 8663, 2638, 6593, 7292, 2099, 1006, 20014, 3823, 1007, 1025, 11675, 2644, 8663, 2638, 6593, 7292, 2099, 1006, 1007, 1025, 11675, 7532, 7292, 2890, 2595, 21649, 1006, 9530, 3367, 12992, 1024, 1024, 2291, 1024, 1024, 7561, 1035, 3642, 1004, 7561, 1007, 1025, 11675, 2707, 6072, 26029, 13462, 14428, 2099, 1006, 1007, 1025, 11675, 2644, 6072, 26029, 13462, 14428, 2099, 1006, 1007, 1025, 11675, 3433, 7292, 2890, 2595, 21649, 1006, 9530, 3367, 12992, 1024, 1024, 2291, 1024, 1024, 7561, 1035, 3642, 1004, 7561, 1007, 1025, 11675, 2707, 1006, 1007, 1025, 11675, 4013, 21408, 10087, 7542, 14321, 7231, 2094, 1006, 1007, 1025, 11675, 4013, 16748, 19454, 28943, 13102, 5644, 2063, 1006, 9530, 3367, 12992, 1024, 1024, 2291, 1024, 1024, 7561, 1035, 3642, 1004, 7561, 1007, 1025, 11675, 4013, 30523, 2918, 1013, 24240, 1035, 4708, 1012, 1044, 1000, 3415, 15327, 8040, 1027, 12992, 1024, 1024, 2110, 7507, 5339, 1025, 2465, 2065, 2863, 15042, 4819, 11877, 1025, 2465, 2065, 2863, 9737, 5162, 4590, 1025, 3415, 15327, 2065, 6491, 1063, 2358, 6820, 6593, 23408, 14117, 2102, 1025, 2358, 6820, 30526 ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 2918, 1013, 24240, 1035, 4708, 1012, 1044, 1000, 3415, 15327, 8040, 1027, 12992, 1024, 1024, 2110, 7507, 5339, 1025, 2465, 2065, 2863, 15042, 4819, 11877, 1025, 2465, 2065, 2863, 9737, 5162, 4590, 1025, 3415, 15327, 2065, 6491, 1063, 2358, 6820, 6593, 23408, 14117, 2102, 1025, 2358, 6820, 30526 ]
<?php /** * Version : 1.2.0 * Author : inc2734 * Author URI : http://2inc.org * Created : April 17, 2015 * Modified : July 31, 2015 * License : GPLv2 or later * License URI: license.txt */ ?> <div class="container"> <div class="row"> <div class="col-md-9"> <main id="main" role="main"> <?php Habakiri::the_bread_crumb(); ?> <?php $name = ( is_search() ) ? 'search' : 'archive'; get_template_part( 'content', $name ); ?> <!-- end #main --></main> <!-- end .col-md-9 --></div> <div class="col-md-3"> <?php get_sidebar(); ?> <!-- end .col-md-3 --></div> <!-- end .row --></div> <!-- end .container --></div>
OopsMouse/mori.site
www/wordpress/wp-content/themes/habakiri/blog_templates/archive/right-sidebar.php
PHP
mit
670
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 2544, 1024, 1015, 1012, 1016, 1012, 1014, 1008, 3166, 1024, 4297, 22907, 22022, 1008, 3166, 24471, 2072, 1024, 8299, 1024, 1013, 1013, 1016, 2378, 2278, 1012, 8917, 1008, 2580, 1024, 2258, 2459, 1010, 2325, 1008, 6310, 1024, 2251, 2861, 1010, 2325, 1008, 6105, 1024, 14246, 2140, 2615, 2475, 2030, 2101, 1008, 6105, 24471, 2072, 1024, 6105, 1012, 19067, 2102, 1008, 1013, 1029, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 11661, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 8902, 1011, 9108, 1011, 1023, 1000, 1028, 1026, 2364, 8909, 1027, 1000, 2364, 1000, 2535, 1027, 1000, 2364, 1000, 1028, 1026, 1029, 25718, 5292, 3676, 23630, 2072, 1024, 1024, 1996, 1035, 7852, 1035, 13675, 25438, 1006, 1007, 1025, 1029, 1028, 1026, 1029, 25718, 1002, 2171, 1027, 1006, 2003, 1035, 3945, 1006, 1007, 1007, 1029, 1005, 3945, 1005, 1024, 1005, 8756, 1005, 1025, 2131, 1035, 23561, 1035, 2112, 1006, 1005, 4180, 1005, 1010, 1002, 2171, 1007, 1025, 1029, 1028, 1026, 999, 1011, 1011, 2203, 1001, 2364, 1011, 1011, 1028, 1026, 1013, 2364, 1028, 1026, 999, 1011, 1011, 2203, 1012, 8902, 1011, 9108, 1011, 1023, 1011, 1011, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 8902, 1011, 9108, 1011, 1017, 1000, 1028, 1026, 1029, 25718, 2131, 1035, 2217, 8237, 1006, 1007, 1025, 1029, 1028, 1026, 999, 1011, 1011, 2203, 1012, 8902, 1011, 9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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1028, 1026, 1013, 4487, 2615, 1028, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30526 ]
package fundamental.games.metropolis.connection.bluetooth; import android.bluetooth.BluetoothSocket; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.UUID; import fundamental.games.metropolis.connection.global.MessagesQueue; import fundamental.games.metropolis.connection.serializable.PlayerInitData; import fundamental.games.metropolis.global.WidgetsData; /** * Created by regair on 27.05.15. */ public class BluetoothServerConnection extends BluetoothConnection { private ObjectOutputStream writer; private ObjectInputStream reader; //******************************** public BluetoothServerConnection(BluetoothSocket socket, MessagesQueue<Serializable> queue, UUID uuid) { super(socket, queue, uuid); this.queue = new MessagesQueue<>(); deviceName = "SERVER"; } //******************************** @Override public void run() { working = true; } //******************************** @Override public void stopConnection() { super.stopConnection(); BluetoothServer.getInstance().removeConnection(this); } public MessagesQueue<Serializable> getQueue() { return queue; } //********************************** public void sendMessage(Serializable message) { if(message instanceof PlayerInitData) { setID(((PlayerInitData)message).ID); //ID = ((PlayerInitData)message).ID; BluetoothServer.getInstance().getIncomingQueue().addMessage(new PlayerInitData(WidgetsData.playerName, ID)); return; } queue.addMessage(message); } @Override public void setID(int id) { super.setID(id); BluetoothConnection.humanID = id; } }
Ragnarokma/metropolis
src/main/java/fundamental/games/metropolis/connection/bluetooth/BluetoothServerConnection.java
Java
apache-2.0
1,850
[ 30522, 7427, 8050, 1012, 2399, 1012, 18236, 1012, 4434, 1012, 2630, 19392, 1025, 12324, 11924, 1012, 2630, 19392, 1012, 2630, 19392, 6499, 19869, 2102, 1025, 12324, 9262, 1012, 22834, 1012, 4874, 2378, 18780, 21422, 1025, 12324, 9262, 1012, 22834, 1012, 4874, 5833, 18780, 21422, 1025, 12324, 9262, 1012, 22834, 1012, 7642, 21335, 3468, 1025, 12324, 9262, 1012, 21183, 4014, 1012, 1057, 21272, 1025, 12324, 8050, 1012, 2399, 1012, 18236, 1012, 4434, 1012, 3795, 1012, 7696, 4226, 5657, 1025, 12324, 8050, 1012, 2399, 1012, 18236, 1012, 4434, 1012, 7642, 21335, 3468, 1012, 2447, 5498, 2102, 2850, 2696, 1025, 12324, 8050, 1012, 2399, 1012, 18236, 1012, 3795, 1012, 15536, 28682, 2850, 2696, 1025, 1013, 1008, 1008, 1008, 2580, 2011, 19723, 11215, 2006, 2676, 1012, 5709, 1012, 2321, 1012, 1008, 1013, 2270, 2465, 2630, 19392, 8043, 6299, 8663, 2638, 7542, 8908, 2630, 19392, 8663, 2638, 7542, 1063, 2797, 4874, 5833, 18780, 21422, 3213, 1025, 2797, 4874, 2378, 18780, 21422, 8068, 1025, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 2270, 2630, 19392, 8043, 6299, 8663, 2638, 7542, 1006, 2630, 19392, 6499, 19869, 2102, 22278, 1010, 7696, 4226, 5657, 1026, 7642, 21335, 3468, 1028, 24240, 1010, 1057, 21272, 1057, 21272, 1007, 1063, 3565, 1006, 22278, 1010, 24240, 1010, 1057, 21272, 1007, 1025, 2023, 1012, 24240, 1027, 2047, 7696, 4226, 5657, 1026, 1028, 1006, 1007, 1025, 5080, 18442, 1027, 1000, 8241, 1000, 1025, 1065, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1030, 2058, 15637, 2270, 11675, 2448, 1006, 1007, 1063, 2551, 1027, 2995, 1025, 1065, 1013, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1030, 2058, 15637, 2270, 11675, 2644, 8663, 2638, 7542, 1006, 1007, 1063, 3565, 1012, 2644, 8663, 2638, 7542, 1006, 1007, 1025, 2630, 19392, 8043, 6299, 1012, 2131, 7076, 26897, 1006, 1007, 1012, 6366, 8663, 2638, 7542, 1006, 2023, 1007, 1025, 1065, 2270, 7696, 4226, 5657, 1026, 7642, 21335, 3468, 1028, 2131, 4226, 5657, 1006, 1007, 1063, 2709, 24240, 1025, 1065, 1013, 1013, 1008, 1008, 30524, 21335, 3468, 4471, 1007, 1063, 2065, 1006, 4471, 6013, 11253, 2447, 5498, 2102, 2850, 2696, 1007, 1063, 2275, 3593, 1006, 1006, 1006, 2447, 5498, 2102, 2850, 2696, 1007, 4471, 1007, 1012, 8909, 1007, 1025, 1013, 1013, 8909, 1027, 1006, 1006, 2447, 5498, 2102, 2850, 2696, 1007, 4471, 1007, 1012, 8909, 1025, 2630, 19392, 8043, 6299, 1012, 2131, 7076, 30523, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 2270, 11675, 4604, 7834, 3736, 3351, 1006, 7642, 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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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 2270, 11675, 4604, 7834, 3736, 3351, 1006, 7642, 30526 ]
<section class="container"> <h4 id="helper-classes" class="section-header">Helper Classes</h4> <div class="bs-component"> <h2>Alignment classes</h2> <p class="text-left">Left aligned text.</p> <p class="text-center">Center aligned text.</p> <p class="text-right">Right aligned text.</p> <hr> <h4>Justified text.</h4> <p class="text-justify"><a href="http://www.zombieipsum.com" target="_blank"><abbr title="Zombie ipsum">Zombies</abbr></a> reversus ab inferno, nam malum cerebro. De carne animata corpora quaeritis. Summus sit​​, morbo vel maleficia? De Apocalypsi undead dictum mauris. </p> <hr> <h4>No wrap text.</h4> <p class="text-nowrap">Hi mortuis soulless creaturas, imo monstra adventus vultus comedat cerebella viventium. Qui offenderit rapto, terribilem incessu. The voodoo sacerdos suscitat mortuos comedere carnem. Search for solum oculi eorum defunctis cerebro. Nescio an Undead zombies. Sicut malus movie horror.</p> <hr> <h2>Transformation classes</h2> <div class="row text-center"> <div class="four column"><p class="text-lowercase">Lowercased text.</p></div> <div class="four column"><p class="text-uppercase">Uppercased text.</p></div> <div class="four column"><p class="text-capitalize">Capitalized text.</p></div> </div> </div> </section>
darkmuzo/staging
components/helper-classes.php
PHP
mit
1,344
[ 30522, 1026, 2930, 2465, 1027, 1000, 11661, 1000, 1028, 1026, 1044, 2549, 8909, 1027, 1000, 2393, 2121, 1011, 4280, 1000, 2465, 1027, 1000, 2930, 1011, 20346, 1000, 1028, 2393, 2121, 4280, 1026, 1013, 1044, 2549, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 18667, 1011, 6922, 1000, 1028, 1026, 1044, 2475, 1028, 12139, 4280, 1026, 1013, 1044, 2475, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 2187, 1000, 1028, 2187, 13115, 30524, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 2157, 1000, 1028, 2157, 13115, 3793, 1012, 1026, 1013, 1052, 1028, 1026, 17850, 1028, 1026, 1044, 2549, 1028, 15123, 3793, 1012, 1026, 1013, 1044, 2549, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 16114, 1000, 1028, 1026, 1037, 17850, 12879, 1027, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 11798, 11514, 17421, 1012, 4012, 1000, 4539, 1027, 1000, 1035, 8744, 1000, 1028, 1026, 11113, 19892, 2516, 1027, 1000, 11798, 12997, 17421, 1000, 1028, 14106, 1026, 1013, 11113, 19892, 1028, 1026, 1013, 1037, 1028, 7065, 2545, 2271, 11113, 21848, 1010, 15125, 15451, 2819, 8292, 2890, 12618, 1012, 2139, 2482, 2638, 2019, 9581, 2696, 13058, 6525, 24209, 27867, 13706, 1012, 7680, 7606, 4133, 1010, 22822, 5092, 2310, 2140, 3287, 8873, 7405, 1029, 2139, 9706, 24755, 2135, 4523, 2072, 17315, 4487, 27272, 5003, 9496, 2015, 1012, 1026, 1013, 1052, 1028, 1026, 17850, 1028, 1026, 1044, 2549, 1028, 2053, 10236, 3793, 1012, 1026, 1013, 1044, 2549, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 2085, 2527, 2361, 1000, 1028, 7632, 22294, 27020, 3969, 3238, 13675, 5243, 27431, 2015, 1010, 10047, 2080, 29408, 6494, 13896, 2271, 24728, 7096, 2271, 2272, 2850, 2102, 8292, 2890, 21700, 6819, 15338, 5007, 1012, 21864, 25042, 4183, 9680, 3406, 1010, 26568, 14454, 6633, 4297, 7971, 2226, 1012, 1996, 21768, 17266, 2121, 12269, 10514, 11020, 6590, 2102, 22294, 19098, 2015, 2272, 4063, 2063, 2482, 25832, 1012, 3945, 2005, 14017, 2819, 1051, 10841, 3669, 1041, 20527, 11984, 2483, 8292, 2890, 12618, 1012, 24524, 9793, 2019, 17315, 14106, 1012, 14387, 4904, 15451, 2271, 3185, 5469, 1012, 1026, 1013, 1052, 1028, 1026, 17850, 1028, 1026, 1044, 2475, 1028, 8651, 4280, 1026, 1013, 1044, 2475, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 5216, 3793, 1011, 2415, 1000, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2176, 5930, 1000, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 2896, 18382, 1000, 1028, 2896, 28969, 3793, 1012, 1026, 1013, 1052, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2176, 5930, 1000, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 3356, 18382, 1000, 1028, 3356, 28969, 3793, 1012, 1026, 1013, 1052, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 4487, 2615, 2465, 1027, 1000, 2176, 5930, 1000, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 3007, 4697, 1000, 1028, 3007, 3550, 3793, 1012, 1026, 1013, 1052, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 4487, 2615, 1028, 1026, 1013, 2930, 1028, 30523, 3793, 1012, 1026, 1013, 1052, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 2415, 1000, 1028, 2415, 13115, 3793, 1012, 1026, 1013, 1052, 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, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 3793, 1012, 1026, 1013, 1052, 1028, 1026, 1052, 2465, 1027, 1000, 3793, 1011, 2415, 1000, 1028, 2415, 13115, 3793, 1012, 1026, 1013, 1052, 30526 ]