text:
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.2">
  <compounddef id="d1/d50/class_s_dict" kind="class" prot="public">
    <compoundname>SDict</compoundname>
    <includes refid="d9/d21/sortdict_8h" local="no">sortdict.h</includes>
    <innerclass refid="d9/dbf/class_s_dict_1_1_iterator" prot="public">SDict::Iterator</innerclass>
    <innerclass refid="dd/d70/class_s_dict_1_1_iterator_dict" prot="public">SDict::IteratorDict</innerclass>
    <templateparamlist>
      <param>
        <type>class</type>
        <declname>T</declname>
        <defname>T</defname>
      </param>
    </templateparamlist>
      <sectiondef kind="private-attrib">
      <memberdef kind="variable" id="d1/d50/class_s_dict_1a5ea3a7928b470c535b4e9b37608fa112" prot="private" static="no" mutable="no">
        <type><ref refid="df/dce/class_s_list" kindref="compound">SList</ref>< T > *</type>
        <definition>SList<T>* SDict< T >::m_list</definition>
        <argsstring></argsstring>
        <name>m_list</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="100" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="100" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="d1/d50/class_s_dict_1a3369f44806ff2547a5ca4fec5e803572" prot="private" static="no" mutable="no">
        <type>QDict< T > *</type>
        <definition>QDict<T>* SDict< T >::m_dict</definition>
        <argsstring></argsstring>
        <name>m_dict</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="101" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="101" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="d1/d50/class_s_dict_1a9257e29270773b23259501188cb3b89f" prot="private" static="no" mutable="no">
        <type>int</type>
        <definition>int SDict< T >::m_sizeIndex</definition>
        <argsstring></argsstring>
        <name>m_sizeIndex</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="102" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="102" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="friend">
      <memberdef kind="friend" id="d1/d50/class_s_dict_1a9830fc407400559db7e7783cc10a9394" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>friend class</type>
        <definition>friend class Iterator</definition>
        <argsstring></argsstring>
        <name>Iterator</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="290" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="289" bodyend="-1"/>
      </memberdef>
      <memberdef kind="friend" id="d1/d50/class_s_dict_1ab362b5ead75b40c212098db068d50ac7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>friend class</type>
        <definition>friend class IteratorDict</definition>
        <argsstring></argsstring>
        <name>IteratorDict</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="354" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="353" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="public-func">
      <memberdef kind="function" id="d1/d50/class_s_dict_1a42ccd9c8ed71acbe2771ac65df817323" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type></type>
        <definition>SDict< T >::SDict</definition>
        <argsstring>(int size, bool caseSensitive=TRUE)</argsstring>
        <name>SDict</name>
        <param>
          <type>int</type>
          <declname>size</declname>
        </param>
        <param>
          <type>bool</type>
          <declname>caseSensitive</declname>
          <defval>TRUE</defval>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Create an ordered dictionary. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>size</parametername>
</parameternamelist>
<parameterdescription>
<para>The size of the dictionary. Should be a prime number for best distribution of elements. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>caseSensitive</parametername>
</parameternamelist>
<parameterdescription>
<para>indicated whether the keys should be sorted in a case sensitive way. </para></parameterdescription>
</parameteritem>
</parameterlist>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="112" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="111" bodyend="120"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a49594f6c587e0915be3861538a3c96cb" prot="public" static="no" const="no" explicit="no" inline="yes" virt="virtual">
        <type></type>
        <definition>virtual SDict< T >::~SDict</definition>
        <argsstring>()</argsstring>
        <name>~SDict</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Destroys the dictionary </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="124" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="123" bodyend="127"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a121842d9858421076b81ed663034d62c" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::append</definition>
        <argsstring>(const char *key, const T *d)</argsstring>
        <name>append</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <param>
          <type>const T *</type>
          <declname>d</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Appends an element to the dictionary. The element is owned by the dictionary. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>key</parametername>
</parameternamelist>
<parameterdescription>
<para>The unique key to use to quicky find the item later on. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>d</parametername>
</parameternamelist>
<parameterdescription>
<para>The compound to add. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="see"><para><ref refid="d1/d50/class_s_dict_1aec67482d780157680d46f48a7ed5e7bd" kindref="member">find()</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="136" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="135" bodyend="145"/>
        <referencedby refid="d5/dcc/class_definition_1a2314524366e46c9d0cd8bcb528d6238d" compoundref="d3/dea/definition_8cpp" startline="415" endline="442">Definition::addSectionsToDefinition</referencedby>
        <referencedby refid="de/db0/class_file_def_1a61ec1208cd1055a3d91cb6a2ee60451d" compoundref="d6/ddc/filedef_8cpp" startline="1017" endline="1032">FileDef::insertClass</referencedby>
        <referencedby refid="de/db0/class_file_def_1a579c95408a34b048fc3cd288bfa8893c" compoundref="d6/ddc/filedef_8cpp" startline="1035" endline="1054">FileDef::insertNamespace</referencedby>
        <referencedby refid="d1/dcf/class_class_def_1a67f89df2361269ef583f33b2ee087a2b" compoundref="de/d89/classdef_8cpp" startline="2945" endline="3078">ClassDef::mergeCategory</referencedby>
        <referencedby refid="d1/dcf/class_class_def_1a91edf0e1d111bb5b90561af28ec93409" compoundref="de/d89/classdef_8cpp" startline="2694" endline="2939">ClassDef::mergeMembers</referencedby>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1adcfbdc244e81360522457c8a84069f2b" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::prepend</definition>
        <argsstring>(const char *key, const T *d)</argsstring>
        <name>prepend</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <param>
          <type>const T *</type>
          <declname>d</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Prepends an element to the dictionary. The element is owned by the dictionary. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>key</parametername>
</parameternamelist>
<parameterdescription>
<para>The unique key to use to quicky find the item later on. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>d</parametername>
</parameternamelist>
<parameterdescription>
<para>The compound to add. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="see"><para><ref refid="d1/d50/class_s_dict_1aec67482d780157680d46f48a7ed5e7bd" kindref="member">find()</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="154" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="153" bodyend="163"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1ad647b04c9dff33ac0182c4d83b025c77" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>bool</type>
        <definition>bool SDict< T >::remove</definition>
        <argsstring>(const char *key)</argsstring>
        <name>remove</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Remove an item from the dictionary </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="167" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="166" bodyend="170"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1ac5aa2cf317cef817cf585efdab3663d7" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>T *</type>
        <definition>T* SDict< T >::take</definition>
        <argsstring>(const char *key)</argsstring>
        <name>take</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Take an item out of the dictionary without deleting it </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="174" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="173" bodyend="182"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1ab6da88a61ee284dfbd07830fcd63aed3" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::sort</definition>
        <argsstring>()</argsstring>
        <name>sort</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Sorts the members of the dictionary. First appending a number of members and then sorting them is faster (O(NlogN) than using <ref refid="d1/d50/class_s_dict_1a25a85aeba441b4c855ea7be25a4741b5" kindref="member">inSort()</ref> for each member (O(N^2)). </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="189" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="188" bodyend="191"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a25a85aeba441b4c855ea7be25a4741b5" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::inSort</definition>
        <argsstring>(const char *key, const T *d)</argsstring>
        <name>inSort</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <param>
          <type>const T *</type>
          <declname>d</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Inserts a compound into the dictionary in a sorted way. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>key</parametername>
</parameternamelist>
<parameterdescription>
<para>The unique key to use to quicky find the item later on. </para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>d</parametername>
</parameternamelist>
<parameterdescription>
<para>The compound to add. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="see"><para><ref refid="d1/d50/class_s_dict_1aec67482d780157680d46f48a7ed5e7bd" kindref="member">find()</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="198" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="197" bodyend="207"/>
        <referencedby refid="de/db0/class_file_def_1a61ec1208cd1055a3d91cb6a2ee60451d" compoundref="d6/ddc/filedef_8cpp" startline="1017" endline="1032">FileDef::insertClass</referencedby>
        <referencedby refid="de/db0/class_file_def_1a579c95408a34b048fc3cd288bfa8893c" compoundref="d6/ddc/filedef_8cpp" startline="1035" endline="1054">FileDef::insertNamespace</referencedby>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a7f0a7e316d26fccdf7d0d351837a6614" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::insertAt</definition>
        <argsstring>(int i, const char *key, const T *d)</argsstring>
        <name>insertAt</name>
        <param>
          <type>int</type>
          <declname>i</declname>
        </param>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <param>
          <type>const T *</type>
          <declname>d</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="210" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="209" bodyend="219"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1ac5ed340a2e6b4b4fb8398254cd35ef55" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::setAutoDelete</definition>
        <argsstring>(bool val)</argsstring>
        <name>setAutoDelete</name>
        <param>
          <type>bool</type>
          <declname>val</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Indicates whether or not the dictionary owns its elements </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="223" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="222" bodyend="225"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1aec67482d780157680d46f48a7ed5e7bd" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>T *</type>
        <definition>T* SDict< T >::find</definition>
        <argsstring>(const char *key)</argsstring>
        <name>find</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Looks up a compound given its key. <parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>key</parametername>
</parameternamelist>
<parameterdescription>
<para>The key to identify this element. </para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>The requested compound or zero if it cannot be found. </para></simplesect>
<simplesect kind="see"><para><ref refid="d1/d50/class_s_dict_1a121842d9858421076b81ed663034d62c" kindref="member">append()</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="233" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="232" bodyend="235"/>
        <referencedby refid="d5/dcc/class_definition_1a2314524366e46c9d0cd8bcb528d6238d" compoundref="d3/dea/definition_8cpp" startline="415" endline="442">Definition::addSectionsToDefinition</referencedby>
        <referencedby refid="d8/d3c/util_8h_1af038b3c55db4fa840af0ee26464bb72a" compoundref="df/d2d/util_8cpp" startline="469" endline="484">getClass</referencedby>
        <referencedby refid="d8/d3c/util_8h_1a299731fdff2d25b4c64d046d24a0ac1f" compoundref="df/d2d/util_8cpp" startline="3899" endline="4264">getDefs</referencedby>
        <referencedby refid="de/db0/class_file_def_1a579c95408a34b048fc3cd288bfa8893c" compoundref="d6/ddc/filedef_8cpp" startline="1035" endline="1054">FileDef::insertNamespace</referencedby>
        <referencedby refid="d1/dcf/class_class_def_1a67f89df2361269ef583f33b2ee087a2b" compoundref="de/d89/classdef_8cpp" startline="2945" endline="3078">ClassDef::mergeCategory</referencedby>
        <referencedby refid="d1/dcf/class_class_def_1a91edf0e1d111bb5b90561af28ec93409" compoundref="de/d89/classdef_8cpp" startline="2694" endline="2939">ClassDef::mergeMembers</referencedby>
        <referencedby refid="d8/d3c/util_8h_1a4cc99128827cc7c407e276d3f65bb7b2" compoundref="df/d2d/util_8cpp" startline="4340" endline="4509">resolveRef</referencedby>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a357a25974d906de30d2e34de08b35a4e" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>T *</type>
        <definition>T* SDict< T >::find</definition>
        <argsstring>(const QCString &key)</argsstring>
        <name>find</name>
        <param>
          <type>const QCString &</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="237" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="236" bodyend="239"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1abc60b1cc06b0643753906387b7cccfe2" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>T *</type>
        <definition>T* SDict< T >::find</definition>
        <argsstring>(const QString &key)</argsstring>
        <name>find</name>
        <param>
          <type>const QString &</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="241" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="240" bodyend="243"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a6a05b33d4c87325d4f2826921910c89d" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>int</type>
        <definition>int SDict< T >::findAt</definition>
        <argsstring>(const QCString &key)</argsstring>
        <name>findAt</name>
        <param>
          <type>const QCString &</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="245" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="244" bodyend="249"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a1858d5cdf864c4fa6476137ace8bb7f5" prot="public" static="no" const="yes" explicit="no" inline="yes" virt="non-virtual">
        <type>T *</type>
        <definition>T* SDict< T >::operator[]</definition>
        <argsstring>(const char *key) const </argsstring>
        <name>operator[]</name>
        <param>
          <type>const char *</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Equavalent to <ref refid="d1/d50/class_s_dict_1aec67482d780157680d46f48a7ed5e7bd" kindref="member">find()</ref>. </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="253" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="252" bodyend="255"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1ab993899004fc3cfc8f00f131e0b6a29d" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>T *</type>
        <definition>T* SDict< T >::at</definition>
        <argsstring>(uint i)</argsstring>
        <name>at</name>
        <param>
          <type>uint</type>
          <declname>i</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Returns the item at position <emphasis>i</emphasis> in the sorted dictionary </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="259" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="258" bodyend="261"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a99cd2f7d27403649ab8b7e60d06f487e" prot="public" static="no" const="no" explicit="no" inline="yes" virt="virtual">
        <type>int</type>
        <definition>virtual int SDict< T >::compareItems</definition>
        <argsstring>(QCollection::Item item1, QCollection::Item item2)</argsstring>
        <name>compareItems</name>
        <reimplementedby refid="d0/d31/class_example_s_dict_1ab77ec9c6ca9d2182ea310cdaf69adf1a">compareItems</reimplementedby>
        <reimplementedby refid="d0/d8c/class_sorted_ref_items_1a143caa774474ce6db479873b9aed7776">compareItems</reimplementedby>
        <reimplementedby refid="d1/d7e/class_member_name_s_dict_1a18be68f36283a2bef27796f92f4744c4">compareItems</reimplementedby>
        <reimplementedby refid="d9/d3d/class_class_s_dict_1a365a341bbe740dc585c0d8e9519166af">compareItems</reimplementedby>
        <reimplementedby refid="d0/d59/class_page_s_dict_1a6e4fbed4db714f286f20fbc2311ac10b">compareItems</reimplementedby>
        <reimplementedby refid="d6/d70/class_member_name_info_s_dict_1a2b439acf21f8ac169b20acc8fc3d2bc8">compareItems</reimplementedby>
        <reimplementedby refid="d6/dd6/class_member_s_dict_1a4965f2c77163eb04280d71b9bfe29198">compareItems</reimplementedby>
        <reimplementedby refid="d0/d5d/class_file_pair_dict_1a4866ba995e365de64902f4d70358b322">compareItems</reimplementedby>
        <reimplementedby refid="d0/d32/class_group_s_dict_1ab250223c344e6dfd2891fee59f1520d9">compareItems</reimplementedby>
        <reimplementedby refid="d4/d8d/class_namespace_s_dict_1a3b77bf1aa3ab01bd70bf9504a8b79e40">compareItems</reimplementedby>
        <reimplementedby refid="db/dc8/class_dir_s_dict_1a00454f0701f56fdfd71cc5fece6973bb">compareItems</reimplementedby>
        <param>
          <type>QCollection::Item</type>
          <declname>item1</declname>
        </param>
        <param>
          <type>QCollection::Item</type>
          <declname>item2</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Function that is used to compare two items when sorting. Overload this to properly sort items. <simplesect kind="see"><para><ref refid="d1/d50/class_s_dict_1a25a85aeba441b4c855ea7be25a4741b5" kindref="member">inSort()</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="268" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="267" bodyend="270"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1afd6bec6aaf77e2943f42cec1208bc46d" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
        <type>void</type>
        <definition>void SDict< T >::clear</definition>
        <argsstring>()</argsstring>
        <name>clear</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Clears the dictionary. Will delete items if <ref refid="d1/d50/class_s_dict_1ac5ed340a2e6b4b4fb8398254cd35ef55" kindref="member">setAutoDelete()</ref> was set to <computeroutput>TRUE</computeroutput>. <simplesect kind="see"><para><ref refid="d1/d50/class_s_dict_1ac5ed340a2e6b4b4fb8398254cd35ef55" kindref="member">setAutoDelete</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="277" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="276" bodyend="280"/>
      </memberdef>
      <memberdef kind="function" id="d1/d50/class_s_dict_1a9e95eebac3e87938cc5bc1f79d078c8a" prot="public" static="no" const="yes" explicit="no" inline="yes" virt="non-virtual">
        <type>int</type>
        <definition>int SDict< T >::count</definition>
        <argsstring>() const </argsstring>
        <name>count</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Returns the number of items stored in the dictionary </para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="285" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="284" bodyend="287"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
<para>Ordered dictionary of elements of type T. </para>    </briefdescription>
    <detaileddescription>
<para>Internally uses a QList<T> and a QDict<T>. </para>    </detaileddescription>
    <inheritancegraph>
      <node id="4040">
        <label>SDict< DirRelation ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< DirRelation ></edgelabel>
        </childnode>
      </node>
      <node id="4061">
        <label>SectionDict</label>
        <link refid="de/d9a/class_section_dict"/>
        <childnode refid="4060" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4057">
        <label>SDict< RefItem ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< RefItem ></edgelabel>
        </childnode>
      </node>
      <node id="4051">
        <label>SDict< GenericsCollection ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< GenericsCollection ></edgelabel>
        </childnode>
      </node>
      <node id="4036">
        <label>SDict< QCString ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< QCString ></edgelabel>
        </childnode>
      </node>
      <node id="4029">
        <label>SDict< T ></label>
        <link refid="d1/d50/class_s_dict"/>
      </node>
      <node id="4050">
        <label>IndexFieldSDict</label>
        <childnode refid="4049" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4030">
        <label>SDict< MemberName ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< MemberName ></edgelabel>
        </childnode>
      </node>
      <node id="4037">
        <label>SDict< Definition ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< Definition ></edgelabel>
        </childnode>
      </node>
      <node id="4043">
        <label>NamespaceSDict</label>
        <link refid="d4/d8d/class_namespace_s_dict"/>
        <childnode refid="4042" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4042">
        <label>SDict< NamespaceDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< NamespaceDef ></edgelabel>
        </childnode>
      </node>
      <node id="4047">
        <label>SDict< QList< Definition > ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< QList< Definition > ></edgelabel>
        </childnode>
      </node>
      <node id="4065">
        <label>SDict< Example ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< Example ></edgelabel>
        </childnode>
      </node>
      <node id="4045">
        <label>SDict< GroupDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< GroupDef ></edgelabel>
        </childnode>
      </node>
      <node id="4048">
        <label>SearchIndexList</label>
        <childnode refid="4047" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4060">
        <label>SDict< SectionInfo ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< SectionInfo ></edgelabel>
        </childnode>
      </node>
      <node id="4063">
        <label>SDict< DirDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< DirDef ></edgelabel>
        </childnode>
      </node>
      <node id="4066">
        <label>ExampleSDict</label>
        <link refid="d0/d31/class_example_s_dict"/>
        <childnode refid="4065" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4039">
        <label>MemberSDict</label>
        <link refid="d6/dd6/class_member_s_dict"/>
        <childnode refid="4038" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4038">
        <label>SDict< MemberDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< MemberDef ></edgelabel>
        </childnode>
      </node>
      <node id="4064">
        <label>DirSDict</label>
        <link refid="db/dc8/class_dir_s_dict"/>
        <childnode refid="4063" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4055">
        <label>ClassSDict</label>
        <link refid="d9/d3d/class_class_s_dict"/>
        <childnode refid="4054" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4035">
        <label>PageSDict</label>
        <link refid="d0/d59/class_page_s_dict"/>
        <childnode refid="4034" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4062">
        <label>SDict< MemberList ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< MemberList ></edgelabel>
        </childnode>
      </node>
      <node id="4046">
        <label>GroupSDict</label>
        <link refid="d0/d32/class_group_s_dict"/>
        <childnode refid="4045" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4044">
        <label>SDict< void ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< void ></edgelabel>
        </childnode>
      </node>
      <node id="4034">
        <label>SDict< PageDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< PageDef ></edgelabel>
        </childnode>
      </node>
      <node id="4054">
        <label>SDict< ClassDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< ClassDef ></edgelabel>
        </childnode>
      </node>
      <node id="4053">
        <label>FilePairDict</label>
        <link refid="d0/d5d/class_file_pair_dict"/>
        <childnode refid="4052" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4052">
        <label>SDict< FilePair ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< FilePair ></edgelabel>
        </childnode>
      </node>
      <node id="4032">
        <label>SDict< MemberNameInfo ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< MemberNameInfo ></edgelabel>
        </childnode>
      </node>
      <node id="4033">
        <label>MemberNameInfoSDict</label>
        <link refid="d6/d70/class_member_name_info_s_dict"/>
        <childnode refid="4032" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4031">
        <label>MemberNameSDict</label>
        <link refid="d1/d7e/class_member_name_s_dict"/>
        <childnode refid="4030" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4041">
        <label>SDict< DotFilePatcher ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< DotFilePatcher ></edgelabel>
        </childnode>
      </node>
      <node id="4056">
        <label>SDict< NodeDef ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< NodeDef ></edgelabel>
        </childnode>
      </node>
      <node id="4049">
        <label>SDict< IndexField ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< IndexField ></edgelabel>
        </childnode>
      </node>
      <node id="4058">
        <label>SortedRefItems</label>
        <link refid="d0/d8c/class_sorted_ref_items"/>
        <childnode refid="4057" relation="public-inheritance">
        </childnode>
      </node>
      <node id="4059">
        <label>SDict< SearchDocEntry ></label>
        <link refid="d1/d50/class_s_dict"/>
        <childnode refid="4029" relation="template-instance">
          <edgelabel>< SearchDocEntry ></edgelabel>
        </childnode>
      </node>
    </inheritancegraph>
    <location file="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" line="73" bodyfile="C:/Users/Mat/Projects/doxygraph/examples/doxygen-1.8.4/src/sortdict.h" bodystart="73" bodyend="-1"/>
    <listofallmembers>
      <member refid="d1/d50/class_s_dict_1a121842d9858421076b81ed663034d62c" prot="public" virt="non-virtual"><scope>SDict</scope><name>append</name></member>
      <member refid="d1/d50/class_s_dict_1ab993899004fc3cfc8f00f131e0b6a29d" prot="public" virt="non-virtual"><scope>SDict</scope><name>at</name></member>
      <member refid="d1/d50/class_s_dict_1afd6bec6aaf77e2943f42cec1208bc46d" prot="public" virt="non-virtual"><scope>SDict</scope><name>clear</name></member>
      <member refid="d1/d50/class_s_dict_1a99cd2f7d27403649ab8b7e60d06f487e" prot="public" virt="virtual"><scope>SDict</scope><name>compareItems</name></member>
      <member refid="d1/d50/class_s_dict_1a9e95eebac3e87938cc5bc1f79d078c8a" prot="public" virt="non-virtual"><scope>SDict</scope><name>count</name></member>
      <member refid="d1/d50/class_s_dict_1aec67482d780157680d46f48a7ed5e7bd" prot="public" virt="non-virtual"><scope>SDict</scope><name>find</name></member>
      <member refid="d1/d50/class_s_dict_1a357a25974d906de30d2e34de08b35a4e" prot="public" virt="non-virtual"><scope>SDict</scope><name>find</name></member>
      <member refid="d1/d50/class_s_dict_1abc60b1cc06b0643753906387b7cccfe2" prot="public" virt="non-virtual"><scope>SDict</scope><name>find</name></member>
      <member refid="d1/d50/class_s_dict_1a6a05b33d4c87325d4f2826921910c89d" prot="public" virt="non-virtual"><scope>SDict</scope><name>findAt</name></member>
      <member refid="d1/d50/class_s_dict_1a7f0a7e316d26fccdf7d0d351837a6614" prot="public" virt="non-virtual"><scope>SDict</scope><name>insertAt</name></member>
      <member refid="d1/d50/class_s_dict_1a25a85aeba441b4c855ea7be25a4741b5" prot="public" virt="non-virtual"><scope>SDict</scope><name>inSort</name></member>
      <member refid="d1/d50/class_s_dict_1a9830fc407400559db7e7783cc10a9394" prot="public" virt="non-virtual"><scope>SDict</scope><name>Iterator</name></member>
      <member refid="d1/d50/class_s_dict_1ab362b5ead75b40c212098db068d50ac7" prot="public" virt="non-virtual"><scope>SDict</scope><name>IteratorDict</name></member>
      <member refid="d1/d50/class_s_dict_1a3369f44806ff2547a5ca4fec5e803572" prot="private" virt="non-virtual"><scope>SDict</scope><name>m_dict</name></member>
      <member refid="d1/d50/class_s_dict_1a5ea3a7928b470c535b4e9b37608fa112" prot="private" virt="non-virtual"><scope>SDict</scope><name>m_list</name></member>
      <member refid="d1/d50/class_s_dict_1a9257e29270773b23259501188cb3b89f" prot="private" virt="non-virtual"><scope>SDict</scope><name>m_sizeIndex</name></member>
      <member refid="d1/d50/class_s_dict_1a1858d5cdf864c4fa6476137ace8bb7f5" prot="public" virt="non-virtual"><scope>SDict</scope><name>operator[]</name></member>
      <member refid="d1/d50/class_s_dict_1adcfbdc244e81360522457c8a84069f2b" prot="public" virt="non-virtual"><scope>SDict</scope><name>prepend</name></member>
      <member refid="d1/d50/class_s_dict_1ad647b04c9dff33ac0182c4d83b025c77" prot="public" virt="non-virtual"><scope>SDict</scope><name>remove</name></member>
      <member refid="d1/d50/class_s_dict_1a42ccd9c8ed71acbe2771ac65df817323" prot="public" virt="non-virtual"><scope>SDict</scope><name>SDict</name></member>
      <member refid="d1/d50/class_s_dict_1ac5ed340a2e6b4b4fb8398254cd35ef55" prot="public" virt="non-virtual"><scope>SDict</scope><name>setAutoDelete</name></member>
      <member refid="d1/d50/class_s_dict_1ab6da88a61ee284dfbd07830fcd63aed3" prot="public" virt="non-virtual"><scope>SDict</scope><name>sort</name></member>
      <member refid="d1/d50/class_s_dict_1ac5aa2cf317cef817cf585efdab3663d7" prot="public" virt="non-virtual"><scope>SDict</scope><name>take</name></member>
      <member refid="d1/d50/class_s_dict_1a49594f6c587e0915be3861538a3c96cb" prot="public" virt="virtual"><scope>SDict</scope><name>~SDict</name></member>
    </listofallmembers>
  </compounddef>
</doxygen>


text:
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Management.Automation;
using Microsoft.Azure.Commands.Management.Storage;
using Microsoft.Azure.Common.Authentication.Models;
using Microsoft.Azure.Management.Storage;
using Microsoft.Azure.Management.Storage.Models;
using Microsoft.WindowsAzure.Commands.Common.Storage;
using Microsoft.WindowsAzure.Storage.Auth;

namespace Microsoft.Azure.Commands.Compute.Extension.DSC
{
    public class VirtualMachineDscExtensionBaseCmdlet : VirtualMachineExtensionBaseCmdlet
    {
        private StorageManagementClientWrapper _storageClientWrapper;

        protected string ExtensionNamespace = "Microsoft.Powershell";
        protected string ExtensionName = "DSC";
        protected string DefaultContainerName = "windows-powershell-dsc";

        private IStorageManagementClient StorageClient
        {
            get
            {
                if (_storageClientWrapper == null)
                {
                    _storageClientWrapper = new StorageManagementClientWrapper(Profile.Context)
                    {
                        VerboseLogger = WriteVerboseWithTimestamp,
                        ErrorLogger = WriteErrorWithTimestamp
                    };
                }

                return _storageClientWrapper.StorageManagementClient;
            }

            set { _storageClientWrapper = new StorageManagementClientWrapper(value); }
        }

        protected StorageCredentials GetStorageCredentials(String resourceGroupName, String storageAccountName)
        {
            StorageCredentials credentials = null;

            if (StorageClient != null && StorageClient.StorageAccounts != null)
            {
                var keys = StorageClient.StorageAccounts.ListKeys(resourceGroupName, storageAccountName);

                if (keys != null && keys.StorageAccountKeys != null)
                {
                    var storageAccountKey = string.IsNullOrEmpty(keys.StorageAccountKeys.Key1) ? keys.StorageAccountKeys.Key2 : keys.StorageAccountKeys.Key1;

                    credentials = new StorageCredentials(storageAccountName, storageAccountKey);
                }
            }

            if (credentials == null)
            {
                ThrowTerminatingError(
                    new ErrorRecord(
                        new UnauthorizedAccessException(Properties.Resources.AzureVMDscDefaultStorageCredentialsNotFound),
                        "CredentialsNotFound",
                        ErrorCategory.PermissionDenied,
                        null));
            }

            if (string.IsNullOrEmpty(credentials.AccountName))
            {
                ThrowInvalidArgumentError(Properties.Resources.AzureVMDscStorageContextMustIncludeAccountName);
            }

            return credentials;
        }

        //TODO: Move this to a common Exception class for DSC
        protected void ThrowInvalidArgumentError(string format, params object[] args)
        {
            ThrowTerminatingError(
                new ErrorRecord(
                    new ArgumentException(string.Format(CultureInfo.CurrentUICulture, format, args)),
                    "InvalidArgument",
                    ErrorCategory.InvalidArgument,
                    null));
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.google.security.zynamics.binnavi.debug.models.breakpoints.conditions;

import com.google.common.collect.Lists;

/**
 * Represents a single relational expression of a breakpoint condition.
 */
public class RelationNode extends BaseNode {
  /**
   * Relational operator.
   */
  private final String operator;

  /**
   * Creates a new node object.
   *
   * @param operator Relational operator.
   * @param lhs Left-hand side of the relation.
   * @param rhs Right-hand side of the relation.
   */
  public RelationNode(final String operator, final ConditionNode lhs, final ConditionNode rhs) {
    super(Lists.newArrayList(lhs, rhs));
    this.operator = operator;
  }

  /**
   * Returns the relational operator.
   *
   * @return The relational operator.
   */
  public String getOperator() {
    return operator;
  }

  @Override
  public String toString() {
    return getChildren().get(0) + " " + operator + " " + getChildren().get(1);
  }
}


text:
package javax.swing.plaf.metal;

import sun.swing.SwingUtilities2;
import sun.awt.AppContext;

import javax.swing.*;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;

import java.awt.*;

/**
 * A Windows L&F implementation of LabelUI.  This implementation
 * is completely static, i.e. there's only one UIView implementation
 * that's shared by all JLabel objects.
 *
 * @author Hans Muller
 */

public class MetalLabelUI extends BasicLabelUI
{
   /**
    * The default MetalLabelUI instance. This field might
    * not be used. To change the default instance use a subclass which
    * overrides the createUI method, and place that class
    * name in defaults table under the key "LabelUI".
    */
    protected static MetalLabelUI metalLabelUI = new MetalLabelUI();

    private static final Object METAL_LABEL_UI_KEY = new Object();

    /**
     * Constructs a {@code MetalLabelUI}.
     */
    public MetalLabelUI() {}

    /**
     * Returns an instance of {@code MetalLabelUI}.
     *
     * @param c a component
     * @return an instance of {@code MetalLabelUI}
     */
    @SuppressWarnings("removal")
    public static ComponentUI createUI(JComponent c) {
        if (System.getSecurityManager() != null) {
            AppContext appContext = AppContext.getAppContext();
            MetalLabelUI safeMetalLabelUI =
                    (MetalLabelUI) appContext.get(METAL_LABEL_UI_KEY);
            if (safeMetalLabelUI == null) {
                safeMetalLabelUI = new MetalLabelUI();
                appContext.put(METAL_LABEL_UI_KEY, safeMetalLabelUI);
            }
            return safeMetalLabelUI;
        }
        return metalLabelUI;
    }

    /**
     * Just paint the text gray (Label.disabledForeground) rather than
     * in the labels foreground color.
     *
     * @see #paint
     * @see #paintEnabledText
     */
    protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
    {
        int mnemIndex = l.getDisplayedMnemonicIndex();
        g.setColor(UIManager.getColor("Label.disabledForeground"));
        SwingUtilities2.drawStringUnderlineCharAt(l, g, s, mnemIndex,
                                                   textX, textY);
    }
}


text:
#include "database.h"

config_sqlite_t  *cfg_sqlite;

//////////////////////////////
// Config SQLite3
///////////

inline void destroy_config_sqlite(config_sqlite_t *sqlite){
    if(sqlite->path)
        free(sqlite->path);
    //sqlite->path = NULL;
    if(sqlite->encoding)
        free(sqlite->encoding);
    //sqlite->encoding = NULL;
    if(sqlite->synchronous)
        free(sqlite->synchronous);
    //sqlite->synchronous = NULL;
    //sqlite->heap_limit = 0;
    if(sqlite->foreign_keys)
        free(sqlite->foreign_keys);
    //sqlite->foreign_keys = NULL;
    memset(sqlite, 0, sizeof(config_sqlite_t));
    return;
}

void free_config_sqlite(void **sqlite){
    destroy_config_sqlite((config_sqlite_t*)*sqlite);
    free(*sqlite);
    *sqlite = NULL;
    return;
}

inline void display_config_sqlite(config_sqlite_t *sqlite){
    if(sqlite){
        char buffer[2048] = { 0 };
        sprintf(buffer, "[sqlite]\n"
                        STR_PATH"         : %s\n"
                        STR_ENCODING"     : %s\n"
                        STR_SYNCHRONOUS"  : %s\n"
                        STR_HEAP_LIMIT"   : %d\n"
                        STR_FOREIGN_KEYS" : %s\n",
                sqlite->path,
                sqlite->encoding,
                sqlite->synchronous,
                sqlite->heap_limit,
                sqlite->foreign_keys);
        DEBUG(LOG_SCREEN, "\n%s", buffer)
    }
    return;
}

//////////////////////////////
// Statement DB
///////////
static char *create_stmts = {
        "CREATE TABLE IF NOT EXISTS sm ("
                "id INTEGER PRIMARY KEY, "
                "call_id text, "
                "sequence_number INTEGER, "
                "interface VARCHAR(64), "
                "ip_origin VARCHAR(16), "
                "port_origin INTEGER, "
                "src VARCHAR(32), "
                "dst VARCHAR(32), "
                "msg TEXT,"
                "creation DATETIME"
                ")"
        };

//////////////////////////////
// Queries
///////////

static char *query_get_sm_by_id = {
        "SELECT * FROM sm WHERE sm.id = %lld"
};

static char *query_get_all_sm = {
        "SELECT * FROM sm"
};

static char *query_get_first_sm = {
        "SELECT * FROM sm LIMIT 1"
};

static char *query_delete_sm_by_id = {
        "DELETE FROM sm WHERE sm.id = %lld"
};

static char *query_insert_sm = {
        "INSERT INTO sm (call_id,sequence_number,interface,ip_origin,port_origin,src,dst,msg,creation) "
        "VALUES('%s',%d,'%s','%s',%d,'%s','%s','%s',date('now'))"
};

static char *query_count_sm = {
        "SELECT COUNT(*) AS count_sm FROM sm"
};

/**
 * Function DB
 */

#define DEF_URL "sqlite://%s?synchronous=%s&heap_limit=%d&foreign_keys=%s&encoding=%s"

static ConnectionPool_T pool = NULL;
static URL_T url             = NULL;
static char *str_url         = NULL;

int db_init(void){
    int ret = 0;
//    extern config_sqlite_t *cfg_sqlite;

    if(!cfg_sqlite){
        return (int) -1;
    }

    if(!cfg_sqlite->path && !cfg_sqlite->synchronous &&
       !cfg_sqlite->heap_limit && !cfg_sqlite->foreign_keys &&
       !cfg_sqlite->encoding){
        ERROR(LOG_SCREEN | LOG_FILE,"Failed to create connection.");
        return (int) -1;
    }

    str_url = (char*)calloc(strlen((char*)DEF_URL) + strlen((char*)cfg_sqlite->path) + 128,sizeof(char));
    sprintf(str_url, DEF_URL, cfg_sqlite->path, cfg_sqlite->synchronous, cfg_sqlite->heap_limit, cfg_sqlite->foreign_keys, cfg_sqlite->encoding);

    url  = URL_new(str_url);
    pool = ConnectionPool_new(url);
    ConnectionPool_start(pool);
    ret = db_prepare();

    INFO(LOG_SCREEN,"Connection to SQLite3 DB is established.");
    return (int) ret;
}

int db_close(void){
    ConnectionPool_free(&pool);
    URL_free(&url);
    free(str_url);
    return 0;
}

int db_prepare(void){
    int ret = 0;
    Connection_T con = ConnectionPool_getConnection(pool);
    TRY
        Connection_execute(con, create_stmts);
    CATCH(SQLException)
        ERROR(LOG_SCREEN | LOG_FILE,"The statement of the table is failed");
        ret = -1;
    END_TRY;
    Connection_close(con);
    return (int) ret;
}

/**
 * Function Query
 */

long long int db_insert_sm(unsigned char *call_id, unsigned int sequence_number, unsigned char *interface, unsigned char *ip_origin, unsigned int port_origin, unsigned char *msisdn_src, unsigned char *msisdn_dst, unsigned char *msg){
    int ret = 0;
    Connection_T con = ConnectionPool_getConnection(pool);
    TRY
        //"INSERT INTO sm (interface,ip_origin,port_origin,ttl,status,src,dst,msg) "
        Connection_execute(con, query_insert_sm, call_id, sequence_number, interface, ip_origin, port_origin, msisdn_src, msisdn_dst, msg);
        ret = Connection_lastRowId(con);
    CATCH(SQLException)
        ERROR(LOG_SCREEN | LOG_FILE,"The insert database is failed");
        ret = -1;
    END_TRY;
    Connection_close(con);
    return (long long int) ret;
}

int db_delete_sm_by_id(long long int id){
    int ret = 0;
    Connection_T con = ConnectionPool_getConnection(pool);
    TRY
        Connection_execute(con, query_delete_sm_by_id, id);
    CATCH(SQLException)
        ERROR(LOG_SCREEN | LOG_FILE,"The delete database is failed");
        ret = -1;
    END_TRY;
    Connection_close(con);
    return (int) ret;
}

int db_select_sm_count(int *count_out){
    int ret = -1;
    if(count_out){
        Connection_T con   = ConnectionPool_getConnection(pool);
        ResultSet_T result = NULL;
        TRY
            result = Connection_executeQuery(con, query_count_sm);
            if(ResultSet_next(result)){
                *count_out = ResultSet_getIntByName(result, "count_sm");
            }else{
                WARNING(LOG_SCREEN | LOG_FILE, "The return select database is empty");
                *count_out = 0;
            }
            ret = 0;
        CATCH(SQLException)
            ERROR(LOG_SCREEN | LOG_FILE, "The select database is failed");
            ret = -1;
        END_TRY;
        Connection_close(con);
    }
    return (int) ret;
}

int db_select_sm_get_by_id(long long int id, unsigned char **call_id, unsigned int *sequence_number, unsigned char **interface, unsigned char **ip_origin, unsigned int *port_origin, unsigned char **msisdn_src, unsigned char **msisdn_dst, unsigned char **msg){
    int ret = 0;
    Connection_T con   = ConnectionPool_getConnection(pool);
    ResultSet_T result = NULL;
    TRY
        //SELECT src, dst, msg, interface, ip_origin, port_origin
        result = Connection_executeQuery(con, query_get_sm_by_id, id);
        if(ResultSet_next(result)){
            const char *const_tmp = NULL;

            if(call_id){
                const_tmp   = ResultSet_getStringByName(result, "call_id");
                *call_id  = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*call_id, (char*)const_tmp);
            }

            if(sequence_number){
                *sequence_number  = ResultSet_getIntByName(result, "sequence_number");
            }

            if(interface){
                const_tmp   = ResultSet_getStringByName(result, "interface");
                *interface  = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*interface, (char*)const_tmp);
            }

            if(ip_origin){
                const_tmp   = ResultSet_getStringByName(result, "ip_origin");
                *ip_origin  = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*ip_origin, (char*)const_tmp);
            }

            if(port_origin){
                *port_origin = ResultSet_getIntByName(result, "port_origin");
            }

            if(msisdn_src){
                const_tmp   = ResultSet_getStringByName(result, "src");
                *msisdn_src = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*msisdn_src, (char*)const_tmp);
            }

            if(msisdn_dst){
                const_tmp   = ResultSet_getStringByName(result, "dst");
                *msisdn_dst = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*msisdn_dst, (char*)const_tmp);
            }

            if(msg){
                const_tmp   = ResultSet_getStringByName(result, "msg");
                *msg        = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*msg, (char*)const_tmp);
            }
        }else{
            WARNING(LOG_SCREEN | LOG_FILE, "The return select database is empty");
        }
    CATCH(SQLException)
        ERROR(LOG_SCREEN | LOG_FILE, "The select database is failed");
        ret = -1;
    END_TRY;
    Connection_close(con);
    return (int) ret;
}

int db_select_sm_get_first(long long int *id, unsigned char *call_id, unsigned int *sequence_number, unsigned char **interface, unsigned char **ip_origin, unsigned int *port_origin, unsigned char **msisdn_src, unsigned char **msisdn_dst, unsigned char **msg){
    int ret = -1;
    Connection_T con   = ConnectionPool_getConnection(pool);
    ResultSet_T result = NULL;
    TRY
        //SELECT src, dst, msg, interface, ip_origin, port_origin
        result = Connection_executeQuery(con, query_get_first_sm);
        if(ResultSet_next(result)){
            const char *const_tmp = NULL;
            if(id){
                *id         = ResultSet_getLLongByName(result, "id");
            }

            if(call_id){
                const_tmp   = ResultSet_getStringByName(result, "call_id");
                *call_id  = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*call_id, (char*)const_tmp);
            }

            if(sequence_number){
                *sequence_number  = ResultSet_getIntByName(result, "sequence_number");
            }

            if(interface){
                const_tmp   = ResultSet_getStringByName(result, "interface");
                *interface  = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*interface, (char*)const_tmp);
            }

            if(ip_origin){
                const_tmp   = ResultSet_getStringByName(result, "ip_origin");
                *ip_origin  = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*ip_origin, (char*)const_tmp);
            }

            if(port_origin){
                *port_origin = ResultSet_getIntByName(result, "port_origin");
            }

            if(msisdn_src){
                const_tmp   = ResultSet_getStringByName(result, "src");
                *msisdn_src = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*msisdn_src, (char*)const_tmp);
            }

            if(msisdn_dst){
                const_tmp   = ResultSet_getStringByName(result, "dst");
                *msisdn_dst = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*msisdn_dst, (char*)const_tmp);
            }

            if(msg){
                const_tmp   = ResultSet_getStringByName(result, "msg");
                *msg        = (unsigned char*)calloc(strlen((char*)const_tmp), sizeof(char));
                strcpy((char*)*msg, (char*)const_tmp);
            }
        }else{
            WARNING(LOG_SCREEN | LOG_FILE, "The return select database is empty");
        }
    CATCH(SQLException)
        ERROR(LOG_SCREEN | LOG_FILE, "The select database is failed");
        ret = -1;
    END_TRY;
    Connection_close(con);
    return (int) ret;
}


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Todea fraseri Hook. & Grev.

### Remarks
null


text:
package de.fischer.thotti.core.configuration;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Oliver Fischer
 */
public class ParameterGroup {
    private String name;

    Map<String, String> paramValueMap = new HashMap<String, String>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        if (name == null)
            throw new NullPointerException();

        this.name = name;
    }

    public boolean hasValueForParam(String paramName) {
        return paramValueMap.containsKey(paramName);
    }

    public void setParamValue(String parameterName, String parameterValue) {
        paramValueMap.put(parameterName, parameterValue);
    }

    public ParameterGroup withParamValue(String parameterName, String parameterValue) {
        setParamValue(parameterName, parameterValue);

        return this;
    }
}


text:
Rails::Generator::Commands::Create.class_eval do
  def add_route_info(&block)
    sentinel = 'ActionController::Routing::Routes.draw do |map|'

    unless options[:pretend]
      gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
        "#{match}\n#{yield}\n"
      end
    end
  end
end


text:
<?php
	session_start();
	$db = new PDO("mysql:host=localhost;dbname=csc4370forum", "root", "");
	try {
		//connect as appropriate as above
		$db->query('hi'); //invalid query!
	} catch(PDOException $ex) {
		echo "An Error occured!"; //user friendly message
	}
	$username = $_POST["username"];
	$email = $_POST["email"];
	$password = $_POST["password"];
	$firstname = $_POST["firstname"];
	$lastname = $_POST["lastname"];
	$userType = 2;
	$stmt = $db->prepare("INSERT INTO user(username, email, password, firstName, lastName, typeID)VALUES('$username', '$email', '$password', '$firstname', '$lastname', '$userType')");
	/*$num = mysql_fetch_row($query);*/
	/*if($num > 0){
		$message = "The username name" .$name. "or email" .$email. "already exists.";
	} else {
		$in = $db->query("INSERT INTO user VALUES(".$username.",".$password.", ".$email.", ".$firstname.",".$lastname.")");*/
	if($stmt->execute()){
		$stmt2 = $db->query("SELECT userID FROM user WHERE email='$email' ");
		$id = $stmt2->fetchColumn(0);
		$message = "Registration successful.";
		$_SESSION["username"] = $username;
		$_SESSION["UID"] = $id;
		$_SESSION["admin"] = false;
		header("location:home.php");
	} else {
		$message = "Registration failed.";
		header("location:signup.php");
	}
	$db = null;
?>


text:
package com.vaadin.ui.components.grid;

import com.vaadin.shared.data.DataCommunicatorConstants;
import com.vaadin.shared.ui.grid.AbstractSelectionModelState;
import com.vaadin.ui.AbstractListing;
import com.vaadin.ui.Grid;
import com.vaadin.ui.Grid.AbstractGridExtension;

import elemental.json.JsonObject;

/**
 * Abstract selection model for grid.
 *
 * @author Vaadin Ltd
 *
 * @since 8.0
 *
 * @param <T>
 *            the type of the items in grid.
 */
public abstract class AbstractSelectionModel<T> extends AbstractGridExtension<T>
        implements GridSelectionModel<T> {

    @Override
    public void generateData(T item, JsonObject jsonObject) {
        if (isSelected(item)) {
            jsonObject.put(DataCommunicatorConstants.SELECTED, true);
        }
    }

    @Override
    public void destroyAllData() {
        deselectAll();
    }

    @Override
    protected AbstractSelectionModelState getState() {
        return (AbstractSelectionModelState) super.getState();
    }

    @Override
    protected AbstractSelectionModelState getState(boolean markAsDirty) {
        return (AbstractSelectionModelState) super.getState(markAsDirty);
    }

    /**
     * Returns the grid this selection model is attached to using, or throws
     * {@link IllegalStateException} if not attached to any selection model.
     *
     * @return the grid this selection model is attached to
     * @throws IllegalStateException
     *             if this selection mode is not attached to any grid
     */
    protected Grid<T> getGrid() throws IllegalStateException {
        Grid<T> parent = getParent();
        if (parent == null) {
            throw new IllegalStateException(
                    "This selection model is no currently attached to any grid.");
        }
        return parent;
    }

    @Override
    public void extend(AbstractListing<T> grid) {
        if (getParent() != null) {
            throw new IllegalStateException(
                    "This selection model has been bound to a grid already. Please remove the existing binding with model.remove() first.");
        }
        // type is verified in parent
        super.extend(grid);

        init();
    }

    /**
     * Initializes the selection model after it has been attached to a grid.
     */
    protected abstract void init();

    @Override
    public void remove() {
        deselectAll();

        super.remove();
    }

    @Override
    public boolean isUserSelectionAllowed() {
        return getState(false).selectionAllowed;
    }

    @Override
    public void setUserSelectionAllowed(boolean allowed) {
        getState().selectionAllowed = allowed;
    }

}


text:
import * as tslib_1 from "tslib";
import { MDCComponent } from '@material/base/component';
import { applyPassive } from '@material/dom/events';
import * as ponyfill from '@material/dom/ponyfill';
import { MDCFloatingLabel } from '@material/floating-label/component';
import { MDCLineRipple } from '@material/line-ripple/component';
import { MDCNotchedOutline } from '@material/notched-outline/component';
import { MDCRipple } from '@material/ripple/component';
import { MDCRippleFoundation } from '@material/ripple/foundation';
import { MDCTextFieldCharacterCounter, } from './character-counter/component';
import { MDCTextFieldCharacterCounterFoundation } from './character-counter/foundation';
import { cssClasses, strings } from './constants';
import { MDCTextFieldFoundation } from './foundation';
import { MDCTextFieldHelperText, } from './helper-text/component';
import { MDCTextFieldHelperTextFoundation } from './helper-text/foundation';
import { MDCTextFieldIcon } from './icon/component';
var MDCTextField = /** @class */ (function (_super) {
    tslib_1.__extends(MDCTextField, _super);
    function MDCTextField() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MDCTextField.attachTo = function (root) {
        return new MDCTextField(root);
    };
    MDCTextField.prototype.initialize = function (rippleFactory, lineRippleFactory, helperTextFactory, characterCounterFactory, iconFactory, labelFactory, outlineFactory) {
        if (rippleFactory === void 0) { rippleFactory = function (el, foundation) { return new MDCRipple(el, foundation); }; }
        if (lineRippleFactory === void 0) { lineRippleFactory = function (el) { return new MDCLineRipple(el); }; }
        if (helperTextFactory === void 0) { helperTextFactory = function (el) { return new MDCTextFieldHelperText(el); }; }
        if (characterCounterFactory === void 0) { characterCounterFactory = function (el) { return new MDCTextFieldCharacterCounter(el); }; }
        if (iconFactory === void 0) { iconFactory = function (el) { return new MDCTextFieldIcon(el); }; }
        if (labelFactory === void 0) { labelFactory = function (el) { return new MDCFloatingLabel(el); }; }
        if (outlineFactory === void 0) { outlineFactory = function (el) { return new MDCNotchedOutline(el); }; }
        this.input_ = this.root_.querySelector(strings.INPUT_SELECTOR);
        var labelElement = this.root_.querySelector(strings.LABEL_SELECTOR);
        this.label_ = labelElement ? labelFactory(labelElement) : null;
        var lineRippleElement = this.root_.querySelector(strings.LINE_RIPPLE_SELECTOR);
        this.lineRipple_ = lineRippleElement ? lineRippleFactory(lineRippleElement) : null;
        var outlineElement = this.root_.querySelector(strings.OUTLINE_SELECTOR);
        this.outline_ = outlineElement ? outlineFactory(outlineElement) : null;
        // Helper text
        var helperTextStrings = MDCTextFieldHelperTextFoundation.strings;
        var nextElementSibling = this.root_.nextElementSibling;
        var hasHelperLine = (nextElementSibling && nextElementSibling.classList.contains(cssClasses.HELPER_LINE));
        var helperTextEl = hasHelperLine && nextElementSibling && nextElementSibling.querySelector(helperTextStrings.ROOT_SELECTOR);
        this.helperText_ = helperTextEl ? helperTextFactory(helperTextEl) : null;
        // Character counter
        var characterCounterStrings = MDCTextFieldCharacterCounterFoundation.strings;
        var characterCounterEl = this.root_.querySelector(characterCounterStrings.ROOT_SELECTOR);
        // If character counter is not found in root element search in sibling element.
        if (!characterCounterEl && hasHelperLine && nextElementSibling) {
            characterCounterEl = nextElementSibling.querySelector(characterCounterStrings.ROOT_SELECTOR);
        }
        this.characterCounter_ = characterCounterEl ? characterCounterFactory(characterCounterEl) : null;
        this.leadingIcon_ = null;
        this.trailingIcon_ = null;
        var iconElements = this.root_.querySelectorAll(strings.ICON_SELECTOR);
        if (iconElements.length > 0) {
            if (iconElements.length > 1) { // Has both icons.
                this.leadingIcon_ = iconFactory(iconElements[0]);
                this.trailingIcon_ = iconFactory(iconElements[1]);
            }
            else {
                if (this.root_.classList.contains(cssClasses.WITH_LEADING_ICON)) {
                    this.leadingIcon_ = iconFactory(iconElements[0]);
                }
                else {
                    this.trailingIcon_ = iconFactory(iconElements[0]);
                }
            }
        }
        this.ripple = this.createRipple_(rippleFactory);
    };
    MDCTextField.prototype.destroy = function () {
        if (this.ripple) {
            this.ripple.destroy();
        }
        if (this.lineRipple_) {
            this.lineRipple_.destroy();
        }
        if (this.helperText_) {
            this.helperText_.destroy();
        }
        if (this.characterCounter_) {
            this.characterCounter_.destroy();
        }
        if (this.leadingIcon_) {
            this.leadingIcon_.destroy();
        }
        if (this.trailingIcon_) {
            this.trailingIcon_.destroy();
        }
        if (this.label_) {
            this.label_.destroy();
        }
        if (this.outline_) {
            this.outline_.destroy();
        }
        _super.prototype.destroy.call(this);
    };
    /**
     * Initializes the Text Field's internal state based on the environment's
     * state.
     */
    MDCTextField.prototype.initialSyncWithDOM = function () {
        this.disabled = this.input_.disabled;
    };
    Object.defineProperty(MDCTextField.prototype, "value", {
        get: function () {
            return this.foundation_.getValue();
        },
        /**
         * @param value The value to set on the input.
         */
        set: function (value) {
            this.foundation_.setValue(value);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "disabled", {
        get: function () {
            return this.foundation_.isDisabled();
        },
        /**
         * @param disabled Sets the Text Field disabled or enabled.
         */
        set: function (disabled) {
            this.foundation_.setDisabled(disabled);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "valid", {
        get: function () {
            return this.foundation_.isValid();
        },
        /**
         * @param valid Sets the Text Field valid or invalid.
         */
        set: function (valid) {
            this.foundation_.setValid(valid);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "required", {
        get: function () {
            return this.input_.required;
        },
        /**
         * @param required Sets the Text Field to required.
         */
        set: function (required) {
            this.input_.required = required;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "pattern", {
        get: function () {
            return this.input_.pattern;
        },
        /**
         * @param pattern Sets the input element's validation pattern.
         */
        set: function (pattern) {
            this.input_.pattern = pattern;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "minLength", {
        get: function () {
            return this.input_.minLength;
        },
        /**
         * @param minLength Sets the input element's minLength.
         */
        set: function (minLength) {
            this.input_.minLength = minLength;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "maxLength", {
        get: function () {
            return this.input_.maxLength;
        },
        /**
         * @param maxLength Sets the input element's maxLength.
         */
        set: function (maxLength) {
            // Chrome throws exception if maxLength is set to a value less than zero
            if (maxLength < 0) {
                this.input_.removeAttribute('maxLength');
            }
            else {
                this.input_.maxLength = maxLength;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "min", {
        get: function () {
            return this.input_.min;
        },
        /**
         * @param min Sets the input element's min.
         */
        set: function (min) {
            this.input_.min = min;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "max", {
        get: function () {
            return this.input_.max;
        },
        /**
         * @param max Sets the input element's max.
         */
        set: function (max) {
            this.input_.max = max;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "step", {
        get: function () {
            return this.input_.step;
        },
        /**
         * @param step Sets the input element's step.
         */
        set: function (step) {
            this.input_.step = step;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "helperTextContent", {
        /**
         * Sets the helper text element content.
         */
        set: function (content) {
            this.foundation_.setHelperTextContent(content);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "leadingIconAriaLabel", {
        /**
         * Sets the aria label of the leading icon.
         */
        set: function (label) {
            this.foundation_.setLeadingIconAriaLabel(label);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "leadingIconContent", {
        /**
         * Sets the text content of the leading icon.
         */
        set: function (content) {
            this.foundation_.setLeadingIconContent(content);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "trailingIconAriaLabel", {
        /**
         * Sets the aria label of the trailing icon.
         */
        set: function (label) {
            this.foundation_.setTrailingIconAriaLabel(label);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "trailingIconContent", {
        /**
         * Sets the text content of the trailing icon.
         */
        set: function (content) {
            this.foundation_.setTrailingIconContent(content);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MDCTextField.prototype, "useNativeValidation", {
        /**
         * Enables or disables the use of native validation. Use this for custom validation.
         * @param useNativeValidation Set this to false to ignore native input validation.
         */
        set: function (useNativeValidation) {
            this.foundation_.setUseNativeValidation(useNativeValidation);
        },
        enumerable: true,
        configurable: true
    });
    /**
     * Focuses the input element.
     */
    MDCTextField.prototype.focus = function () {
        this.input_.focus();
    };
    /**
     * Recomputes the outline SVG path for the outline element.
     */
    MDCTextField.prototype.layout = function () {
        var openNotch = this.foundation_.shouldFloat;
        this.foundation_.notchOutline(openNotch);
    };
    MDCTextField.prototype.getDefaultFoundation = function () {
        // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>.
        // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.
        // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
        var adapter = tslib_1.__assign({}, this.getRootAdapterMethods_(), this.getInputAdapterMethods_(), this.getLabelAdapterMethods_(), this.getLineRippleAdapterMethods_(), this.getOutlineAdapterMethods_());
        // tslint:enable:object-literal-sort-keys
        return new MDCTextFieldFoundation(adapter, this.getFoundationMap_());
    };
    MDCTextField.prototype.getRootAdapterMethods_ = function () {
        var _this = this;
        // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
        return {
            addClass: function (className) { return _this.root_.classList.add(className); },
            removeClass: function (className) { return _this.root_.classList.remove(className); },
            hasClass: function (className) { return _this.root_.classList.contains(className); },
            registerTextFieldInteractionHandler: function (evtType, handler) { return _this.listen(evtType, handler); },
            deregisterTextFieldInteractionHandler: function (evtType, handler) { return _this.unlisten(evtType, handler); },
            registerValidationAttributeChangeHandler: function (handler) {
                var getAttributesList = function (mutationsList) {
                    return mutationsList
                        .map(function (mutation) { return mutation.attributeName; })
                        .filter(function (attributeName) { return attributeName; });
                };
                var observer = new MutationObserver(function (mutationsList) { return handler(getAttributesList(mutationsList)); });
                var config = { attributes: true };
                observer.observe(_this.input_, config);
                return observer;
            },
            deregisterValidationAttributeChangeHandler: function (observer) { return observer.disconnect(); },
        };
        // tslint:enable:object-literal-sort-keys
    };
    MDCTextField.prototype.getInputAdapterMethods_ = function () {
        var _this = this;
        // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
        return {
            getNativeInput: function () { return _this.input_; },
            isFocused: function () { return document.activeElement === _this.input_; },
            registerInputInteractionHandler: function (evtType, handler) {
                return _this.input_.addEventListener(evtType, handler, applyPassive());
            },
            deregisterInputInteractionHandler: function (evtType, handler) {
                return _this.input_.removeEventListener(evtType, handler, applyPassive());
            },
        };
        // tslint:enable:object-literal-sort-keys
    };
    MDCTextField.prototype.getLabelAdapterMethods_ = function () {
        var _this = this;
        return {
            floatLabel: function (shouldFloat) { return _this.label_ && _this.label_.float(shouldFloat); },
            getLabelWidth: function () { return _this.label_ ? _this.label_.getWidth() : 0; },
            hasLabel: function () { return Boolean(_this.label_); },
            shakeLabel: function (shouldShake) { return _this.label_ && _this.label_.shake(shouldShake); },
        };
    };
    MDCTextField.prototype.getLineRippleAdapterMethods_ = function () {
        var _this = this;
        return {
            activateLineRipple: function () {
                if (_this.lineRipple_) {
                    _this.lineRipple_.activate();
                }
            },
            deactivateLineRipple: function () {
                if (_this.lineRipple_) {
                    _this.lineRipple_.deactivate();
                }
            },
            setLineRippleTransformOrigin: function (normalizedX) {
                if (_this.lineRipple_) {
                    _this.lineRipple_.setRippleCenter(normalizedX);
                }
            },
        };
    };
    MDCTextField.prototype.getOutlineAdapterMethods_ = function () {
        var _this = this;
        return {
            closeOutline: function () { return _this.outline_ && _this.outline_.closeNotch(); },
            hasOutline: function () { return Boolean(_this.outline_); },
            notchOutline: function (labelWidth) { return _this.outline_ && _this.outline_.notch(labelWidth); },
        };
    };
    /**
     * @return A map of all subcomponents to subfoundations.
     */
    MDCTextField.prototype.getFoundationMap_ = function () {
        return {
            characterCounter: this.characterCounter_ ? this.characterCounter_.foundation : undefined,
            helperText: this.helperText_ ? this.helperText_.foundation : undefined,
            leadingIcon: this.leadingIcon_ ? this.leadingIcon_.foundation : undefined,
            trailingIcon: this.trailingIcon_ ? this.trailingIcon_.foundation : undefined,
        };
    };
    MDCTextField.prototype.createRipple_ = function (rippleFactory) {
        var _this = this;
        var isTextArea = this.root_.classList.contains(cssClasses.TEXTAREA);
        var isOutlined = this.root_.classList.contains(cssClasses.OUTLINED);
        if (isTextArea || isOutlined) {
            return null;
        }
        // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>.
        // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.
        // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.
        var adapter = tslib_1.__assign({}, MDCRipple.createAdapter(this), { isSurfaceActive: function () { return ponyfill.matches(_this.input_, ':active'); }, registerInteractionHandler: function (evtType, handler) { return _this.input_.addEventListener(evtType, handler, applyPassive()); }, deregisterInteractionHandler: function (evtType, handler) {
                return _this.input_.removeEventListener(evtType, handler, applyPassive());
            } });
        // tslint:enable:object-literal-sort-keys
        return rippleFactory(this.root_, new MDCRippleFoundation(adapter));
    };
    return MDCTextField;
}(MDCComponent));
export { MDCTextField };
//# sourceMappingURL=component.js.map


text:
/* @flow */

import React from 'react';
import { Editor } from '../../src';
import './styles.css';

const FloatingToolbar = () =>
  (

Toolbar appears as editor is clicked

    <Editor
      toolbarOnFocus
      toolbarClassName="rdw-storybook-toolbar-absolute"
      wrapperClassName="rdw-storybook-wrapper-margined"
      editorClassName="rdw-storybook-editor"
    />

);

export default FloatingToolbar;


text:
"""
Django settings for kpiedemocracy project.

Generated by 'django-admin startproject' using Django 1.8.5.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '-&gy3@3kmu2c$195q1p_7*e=-f2_u50-w6n7h*-cd-widwi3%b'

DEBUG = os.environ.get('DEBUG', 'True') == 'True'

ALLOWED_HOSTS = []

SITE_ID = 2

# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
    'rest_framework',
    'rest_framework.authtoken',
    'rest_auth',
    'allauth',
    'allauth.account',
    'rest_auth.registration',
    'allauth.socialaccount',
    'allauth.socialaccount.providers.facebook',
    'allauth.socialaccount.providers.vk',
    'petitions',
    'rest_framework_swagger',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

ROOT_URLCONF = 'kpiedemocracy.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                'django.core.context_processors.request'
            ],
        },
    },
]

WSGI_APPLICATION = 'kpiedemocracy.wsgi.application'

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': 'INFO',
            'propagate': True,
        },
    },
}

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
STATICFILES_DIRS = ("ui-dist",)

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

REST_FRAMEWORK = {
    'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
    'PAGE_SIZE': 10,
    'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',)
}

FILE_UPLOAD_HANDLERS = ["django.core.files.uploadhandler.MemoryFileUploadHandler"]

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'allauth.account.auth_backends.AuthenticationBackend',
)

APPEND_SLASH = True

LOGIN_REDIRECT_URL = '/'
SOCIALACCOUNT_QUERY_EMAIL = True
SOCIALACCOUNT_PROVIDERS = {
    'facebook': {
        'SCOPE': ['email'],
        'METHOD': 'js_sdk',
        'VERIFIED_EMAIL': True,
        'FIELDS': [
            'id',
            'email',
            'name',
            'first_name',
            'last_name'
        ]
    }
}

ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_USERNAME_REQUIRED = True

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# == HEROKU SETTINGS ==

# Parse database configuration from $DATABASE_URL
import dj_database_url
if dj_database_url.config():
    DATABASES['default'] = dj_database_url.config()

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Allow all host headers
ALLOWED_HOSTS = ['*']

# Needed number of signs
SIGNS_GOAL = 1000
if DEBUG:
    SIGNS_GOAL = 5

DEADLINE_INTERVAL = 30  # 30 days


text:
'use strict';

var Promise  = require('bluebird');
var fs       = Promise.promisifyAll(require('fs'));
var indent   = require('detect-indent');
var extend   = require('xtend/mutable');
var path     = require('path');
var trailing = require('trailing-newline');
var os       = require('os');
var deep     = require('getobject');

function Package (pkgPath) {
  this.path = path.resolve(process.cwd(), pkgPath);
  this.data = {};
  this.indent = '  ';
  this.trailing = false;
}

Package.prototype.get = function (property) {
  return deep.get(this.data, property);
};

Package.prototype.set = function (property, value) {
  if (typeof property === 'string') {
    deep.set(this.data, property, value);
  }
  else {
    extend(this.data, property);
  }
  return this;
};

Package.prototype.read = function () {
  return fs.readFileAsync(this.path)
    .bind(this)
    .call('toString')
    .then(function (data) {
      this.indent = indent(data).indent;
      this.trailing = trailing(data);
      this.data = JSON.parse(data);
      return this;
    });
};

Package.prototype.write = function () {
  var output = JSON.stringify(this.data, null, this.indent);
  if (this.trailing) output += os.EOL;
  return fs.writeFileAsync(this.path, output)
    .return(this);
};

module.exports = Package;


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>Calculator</title>
    <link rel="stylesheet" href="./Calculator.css">

          Simple Calculator by Mensu

        Features

keyboard input

detailed error information

            supports more expressions

2(2+4)

+2**3

3++4

welcome to report any bugs


text:
package edu.uci.ics.hyracks.api.dataflow.value;

import java.io.Serializable;

public interface IComparatorFactory<T> extends Serializable {
    public IComparator<T> createComparator();
}


text:
require 'spec_helper'

describe JobsController do
  describe 'GET :show' do
    let(:test)       { Factory(:build).matrix.first.reload }
    let(:repository) { test.repository }

    it 'in json' do
      get :show, :id => test.id, :format => 'json'
      json_response.should == json_for_http(test)
    end
  end
end


text:
//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// Michael A. Heroux ( maherou@sandia.gov)
// Jack Dongarra     (dongarra@eecs.utk.edu)
// Piotr Luszczek    (luszczek@eecs.utk.edu)
//
// ***************************************************
//@HEADER

/*!
 @file TestSymmetry.cpp

 HPCG routine
 */

// The MPI include must be first for Windows platforms
#ifndef HPCG_NO_MPI
#include <mpi.h>
#endif
#include <fstream>
#include <iostream>
#include <cfloat>
using std::endl;
#include <vector>
#include <cmath>

#include "hpcg.hpp"

#include "ComputeSPMV.hpp"
#include "ComputeMG.hpp"
#include "ComputeDotProduct.hpp"
#include "ComputeResidual.hpp"
#include "Geometry.hpp"
#include "SparseMatrix.hpp"
#include "TestSymmetry.hpp"

/*!
  Tests symmetry-preserving properties of the sparse matrix vector multiply and multi-grid routines.

  @param[in]    geom   The description of the problem's geometry.
  @param[in]    A      The known system matrix
  @param[in]    b      The known right hand side vector
  @param[in]    xexact The exact solution vector
  @param[inout] testsymmetry_data The data structure with the results of the CG symmetry test including pass/fail information

  @return returns 0 upon success and non-zero otherwise

  @see ComputeDotProduct
  @see ComputeDotProduct_ref
  @see ComputeSPMV
  @see ComputeSPMV_ref
  @see ComputeMG
  @see ComputeMG_ref
*/
int TestSymmetry(SparseMatrix & A, Vector & b, Vector & xexact, TestSymmetryData & testsymmetry_data) {

 local_int_t nrow = A.localNumberOfRows;
 local_int_t ncol = A.localNumberOfColumns;

 Vector x_ncol, y_ncol, z_ncol;
 InitializeVector(x_ncol, ncol);
 InitializeVector(y_ncol, ncol);
 InitializeVector(z_ncol, ncol);

 double t4 = 0.0; // Needed for dot-product call, otherwise unused
 testsymmetry_data.count_fail = 0;

 // Test symmetry of matrix

 // First load vectors with random values
 FillRandomVector(x_ncol);
 FillRandomVector(y_ncol);

 double xNorm2, yNorm2;
 double ANorm = 2 * 26.0;

 // Next, compute x'*A*y
 ComputeDotProduct(nrow, y_ncol, y_ncol, yNorm2, t4, A.isDotProductOptimized);
 int ierr = ComputeSPMV(A, y_ncol, z_ncol); // z_nrow = A*y_overlap
 if (ierr) HPCG_fout << "Error in call to SpMV: " << ierr << ".\n" << endl;
 double xtAy = 0.0;
 ierr = ComputeDotProduct(nrow, x_ncol, z_ncol, xtAy, t4, A.isDotProductOptimized); // x'*A*y
 if (ierr) HPCG_fout << "Error in call to dot: " << ierr << ".\n" << endl;

 // Next, compute y'*A*x
 ComputeDotProduct(nrow, x_ncol, x_ncol, xNorm2, t4, A.isDotProductOptimized);
 ierr = ComputeSPMV(A, x_ncol, z_ncol); // b_computed = A*x_overlap
 if (ierr) HPCG_fout << "Error in call to SpMV: " << ierr << ".\n" << endl;
 double ytAx = 0.0;
 ierr = ComputeDotProduct(nrow, y_ncol, z_ncol, ytAx, t4, A.isDotProductOptimized); // y'*A*x
 if (ierr) HPCG_fout << "Error in call to dot: " << ierr << ".\n" << endl;

 testsymmetry_data.depsym_spmv = std::fabs((long double) (xtAy - ytAx))/((xNorm2*ANorm*yNorm2 + yNorm2*ANorm*xNorm2) * (DBL_EPSILON));
 if (testsymmetry_data.depsym_spmv > 1.0) ++testsymmetry_data.count_fail;  // If the difference is > 1, count it wrong
 if (A.geom->rank==0) HPCG_fout << "Departure from symmetry (scaled) for SpMV abs(x'*A*y - y'*A*x) = " << testsymmetry_data.depsym_spmv << endl;

 // Test symmetry of multi-grid

 // Compute x'*Minv*y
 ierr = ComputeMG(A, y_ncol, z_ncol); // z_ncol = Minv*y_ncol
 if (ierr) HPCG_fout << "Error in call to MG: " << ierr << ".\n" << endl;
 double xtMinvy = 0.0;
 ierr = ComputeDotProduct(nrow, x_ncol, z_ncol, xtMinvy, t4, A.isDotProductOptimized); // x'*Minv*y
 if (ierr) HPCG_fout << "Error in call to dot: " << ierr << ".\n" << endl;

 // Next, compute z'*Minv*x
 ierr = ComputeMG(A, x_ncol, z_ncol); // z_ncol = Minv*x_ncol
 if (ierr) HPCG_fout << "Error in call to MG: " << ierr << ".\n" << endl;
 double ytMinvx = 0.0;
 ierr = ComputeDotProduct(nrow, y_ncol, z_ncol, ytMinvx, t4, A.isDotProductOptimized); // y'*Minv*x
 if (ierr) HPCG_fout << "Error in call to dot: " << ierr << ".\n" << endl;

 testsymmetry_data.depsym_mg = std::fabs((long double) (xtMinvy - ytMinvx))/((xNorm2*ANorm*yNorm2 + yNorm2*ANorm*xNorm2) * (DBL_EPSILON));
 if (testsymmetry_data.depsym_mg > 1.0) ++testsymmetry_data.count_fail;  // If the difference is > 1, count it wrong
 if (A.geom->rank==0) HPCG_fout << "Departure from symmetry (scaled) for MG abs(x'*Minv*y - y'*Minv*x) = " << testsymmetry_data.depsym_mg << endl;

 CopyVector(xexact, x_ncol); // Copy exact answer into overlap vector

 int numberOfCalls = 2;
 double residual = 0.0;
 for (int i=0; i< numberOfCalls; ++i) {
   ierr = ComputeSPMV(A, x_ncol, z_ncol); // b_computed = A*x_overlap
   if (ierr) HPCG_fout << "Error in call to SpMV: " << ierr << ".\n" << endl;
   if ((ierr = ComputeResidual(A.localNumberOfRows, b, z_ncol, residual)))
     HPCG_fout << "Error in call to compute_residual: " << ierr << ".\n" << endl;
   if (A.geom->rank==0) HPCG_fout << "SpMV call [" << i << "] Residual [" << residual << "]" << endl;
 }
 DeleteVector(x_ncol);
 DeleteVector(y_ncol);
 DeleteVector(z_ncol);

 return 0;
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using Marten.Testing.Documents;
using Remotion.Linq.Clauses;

namespace Marten.Testing.Examples
{
    public class Searching_Within_Child_Collections
    {
        // SAMPLE: searching_within_child_collections
        public class ClassWithChildCollections
        {
            public Guid Id;

            public IList<User> Users = new List<User>();
            public Company[] Companies = new Company[0];

            public string[] Names;
            public IList<string> NameList;
            public List<string> NameList2;
        }

        public void searching(IDocumentStore store)
        {
            using (var session = store.QuerySession())
            {
                session.Query<ClassWithChildCollections>()
                    // Where collections of deep objects
                    .Where(x => x.Companies.Any(_ => _.Name == "Jeremy"))

                    // Where for Contains() on array of simple types
                    .Where(x => x.Names.Contains("Corey"))

                    // Where for Contains() on List<T> of simple types
                    .Where(x => x.NameList.Contains("Phillip"))

                    // Where for Contains() on IList<T> of simple types
                    .Where(x => x.NameList2.Contains("Jens"))

                    // Where for Any(element == value) on simple types
                    .Where(x => x.Names.Any(_ => _ == "Phillip"));

            }
        }
        // ENDSAMPLE
    }
}