text:
8.28" y1="66.04" x2="198.12" y2="66.04" width="0.1524" layer="91"/>
<pinref part="C12" gate="G$1" pin="1"/>
<wire x1="198.12" y1="63.5" x2="198.12" y2="66.04" width="0.1524" layer="91"/>
<wire x1="187.96" y1="66.04" x2="198.12" y2="66.04" width="0.1524" layer="91"/>
<junction x="187.96" y="66.04"/>
<junction x="198.12" y="66.04"/>
<pinref part="C18" gate="G$1" pin="1"/>
<wire x1="259.08" y1="63.5" x2="259.08" y2="66.04" width="0.1524" layer="91"/>
<wire x1="259.08" y1="66.04" x2="248.92" y2="66.04" width="0.1524" layer="91"/>
<junction x="208.28" y="66.04"/>
<pinref part="C17" gate="G$1" pin="1"/>
<wire x1="248.92" y1="66.04" x2="238.76" y2="66.04" width="0.1524" layer="91"/>
<wire x1="238.76" y1="66.04" x2="228.6" y2="66.04" width="0.1524" layer="91"/>
<wire x1="228.6" y1="66.04" x2="218.44" y2="66.04" width="0.1524" layer="91"/>
<wire x1="218.44" y1="66.04" x2="208.28" y2="66.04" width="0.1524" layer="91"/>
<wire x1="248.92" y1="63.5" x2="248.92" y2="66.04" width="0.1524" layer="91"/>
<junction x="248.92" y="66.04"/>
<pinref part="C16" gate="G$1" pin="1"/>
<wire x1="238.76" y1="63.5" x2="238.76" y2="66.04" width="0.1524" layer="91"/>
<junction x="238.76" y="66.04"/>
<pinref part="C15" gate="G$1" pin="1"/>
<wire x1="228.6" y1="63.5" x2="228.6" y2="66.04" width="0.1524" layer="91"/>
<junction x="228.6" y="66.04"/>
<pinref part="C14" gate="G$1" pin="1"/>
<wire x1="218.44" y1="63.5" x2="218.44" y2="66.04" width="0.1524" layer="91"/>
<junction x="218.44" y="66.04"/>
</segment>
<segment>
<pinref part="C3" gate="G$1" pin="1"/>
<pinref part="SUPPLY18" gate="G$1" pin="3.3V"/>
<wire x1="187.96" y1="91.44" x2="187.96" y2="93.98" width="0.1524" layer="91"/>
<pinref part="C7" gate="G$1" pin="1"/>
<wire x1="187.96" y1="93.98" x2="187.96" y2="96.52" width="0.1524" layer="91"/>
<wire x1="218.44" y1="91.44" x2="218.44" y2="93.98" width="0.1524" layer="91"/>
<wire x1="218.44" y1="93.98" x2="208.28" y2="93.98" width="0.1524" layer="91"/>
<wire x1="208.28" y1="93.98" x2="198.12" y2="93.98" width="0.1524" layer="91"/>
<pinref part="C6" gate="G$1" pin="1"/>
<wire x1="208.28" y1="91.44" x2="208.28" y2="93.98" width="0.1524" layer="91"/>
<junction x="208.28" y="93.98"/>
<pinref part="C5" gate="G$1" pin="1"/>
<wire x1="198.12" y1="91.44" x2="198.12" y2="93.98" width="0.1524" layer="91"/>
<junction x="198.12" y="93.98"/>
<wire x1="198.12" y1="93.98" x2="187.96" y2="93.98" width="0.1524" layer="91"/>
<junction x="187.96" y="93.98"/>
<pinref part="C25" gate="G$1" pin="1"/>
<wire x1="289.56" y1="91.44" x2="289.56" y2="93.98" width="0.1524" layer="91"/>
<wire x1="289.56" y1="93.98" x2="279.4" y2="93.98" width="0.1524" layer="91"/>
<junction x="218.44" y="93.98"/>
<pinref part="C19" gate="G$1" pin="1"/>
<wire x1="279.4" y1="93.98" x2="269.24" y2="93.98" width="0.1524" layer="91"/>
<wire x1="269.24" y1="93.98" x2="259.08" y2="93.98" width="0.1524" layer="91"/>
<wire x1="259.08" y1="93.98" x2="248.92" y2="93.98" width="0.1524" layer="91"/>
<wire x1="248.92" y1="93.98" x2="238.76" y2="93.98" width="0.1524" layer="91"/>
<wire x1="238.76" y1="93.98" x2="228.6" y2="93.98" width="0.1524" layer="91"/>
<wire x1="228.6" y1="93.98" x2="218.44" y2="93.98" width="0.1524" layer="91"/>
<wire x1="228.6" y1="91.44" x2="228.6" y2="93.98" width="0.1524" layer="91"/>
<junction x="228.6" y="93.98"/>
<pinref part="C20" gate="G$1" pin="1"/>
<wire x1="238.76" y1="91.44" x2="238.76" y2="93.98" width="0.1524" layer="91"/>
<junction x="238.76" y="93.98"/>
<pinref part="C21" gate="G$1" pin="1"/>
<wire x1="248.92" y1="91.44" x2="248.92" y2="93.98" width="0.1524" layer="91"/>
<junction x="248.92" y="93.98"/>
<pinref part="C22" gate="G$1" pin="1"/>
<wire x1="259.08" y1="91.44" x2="259.08" y2="93.98" width="0.1524" layer="91"/>
<junction x="259.08" y="93.98"/>
<pinref part="C23" gate="G$1" pin="1"/>
<wire x1="269.24" y1="91.44" x2="269.24" y2="93.98" width="0.1524" layer="91"/>
<junction x="269.24" y="93.98"/>
<pinref part="C24" gate="G$1" pin="1"/>
<wire x1="279.4" y1="91.44" x2="279.4" y2="93.98" width="0.1524" layer="91"/>
<junction x="279.4" y="93.98"/>
</segment>
</net>
<net name="5V" class="0">
<segment>
<pinref part="SUPPLY8" gate="G$1" pin="5V"/>
<wire x1="53.34" y1="134.62" x2="53.34" y2="114.3" width="0.1524" layer="91"/>
<pinref part="IC5" gate="G$1" pin="(5V)_VCCB_1"/>
<wire x1="66.04" y1="114.3" x2="53.34" y2="114.3" width="0.1524" layer="91"/>
<pinref part="IC5" gate="G$1" pin="(5V)_VCCB_2"/>
<wire x1="48.26" y1="86.36" x2="53.34" y2="86.36" width="0.1524" layer="91"/>
<junction x="48.26" y="86.36"/>
<pinref part="C10" gate="G$1" pin="1"/>
<pinref part="C9" gate="G$1" pin="1"/>
<wire x1="53.34" y1="86.36" x2="66.04" y2="86.36" width="0.1524" layer="91"/>
<wire x1="48.26" y1="86.36" x2="48.26" y2="83.82" width="0.1524" layer="91"/>
<wire x1="38.1" y1="83.82" x2="38.1" y2="86.36" width="0.1524" layer="91"/>
<wire x1="38.1" y1="86.36" x2="48.26" y2="86.36" width="0.1524" layer="91"/>
<junction x="48.26" y="86.36"/>
<wire x1="53.34" y1="114.3" x2="53.34" y2="86.36" width="0.1524" layer="91"/>
<junction x="53.34" y="114.3"/>
<junction x="53.34" y="86.36"/>
</segment>
<segment>
<pinref part="SUPPLY1" gate="G$1" pin="5V"/>
<pinref part="B1" gate="G$1" pin="5V"/>
<wire x1="-22.86" y1="101.6" x2="-22.86" y2="109.22" width="0.1524" layer="91"/>
<wire x1="-22.86" y1="109.22" x2="-22.86" y2="121.92" width="0.1524" layer="91"/>
<wire x1="-22.86" y1="121.92" x2="-22.86" y2="127" width="0.1524" layer="91"/>
<wire x1="-22.86" y1="127" x2="-22.86" y2="132.08" width="0.1524" layer="91"/>
<wire x1="-3.81" y1="101.6" x2="-22.86" y2="101.6" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="IOREF"/>
<wire x1="-3.81" y1="109.22" x2="-22.86" y2="109.22" width="0.1524" layer="91"/>
<junction x="-22.86" y="109.22"/>
<pinref part="D2" gate="G$1" pin="C"/>
<wire x1="-30.48" y1="116.84" x2="-30.48" y2="127" width="0.1524" layer="91"/>
<wire x1="-30.48" y1="127" x2="-22.86" y2="127" width="0.1524" layer="91"/>
<junction x="-22.86" y="127"/>
<pinref part="B1" gate="G$1" pin="5V@1"/>
<wire x1="-3.81" y1="121.92" x2="-22.86" y2="121.92" width="0.1524" layer="91"/>
<junction x="-22.86" y="121.92"/>
</segment>
<segment>
<pinref part="SUPPLY17" gate="G$1" pin="5V"/>
<pinref part="D1" gate="G$1" pin="C"/>
<wire x1="-96.52" y1="132.08" x2="-96.52" y2="124.46" width="0.1524" layer="91"/>
<pinref part="IC6" gate="G$1" pin="IN"/>
<wire x1="-96.52" y1="124.46" x2="-96.52" y2="114.3" width="0.1524" layer="91"/>
<wire x1="-96.52" y1="114.3" x2="-96.52" y2="96.52" width="0.1524" layer="91"/>
<wire x1="-91.44" y1="124.46" x2="-96.52" y2="124.46" width="0.1524" layer="91"/>
<junction x="-96.52" y="124.46"/>
<pinref part="IC6" gate="G$1" pin="EN"/>
<wire x1="-91.44" y1="114.3" x2="-96.52" y2="114.3" width="0.1524" layer="91"/>
<junction x="-96.52" y="114.3"/>
<pinref part="C1" gate="G$1" pin="1"/>
<wire x1="-111.76" y1="121.92" x2="-111.76" y2="124.46" width="0.1524" layer="91"/>
<wire x1="-111.76" y1="124.46" x2="-96.52" y2="124.46" width="0.1524" layer="91"/>
<junction x="-96.52" y="124.46"/>
<pinref part="C8" gate="G$1" pin="1"/>
<wire x1="-121.92" y1="121.92" x2="-121.92" y2="124.46" width="0.1524" layer="91"/>
<wire x1="-121.92" y1="124.46" x2="-111.76" y2="124.46" width="0.1524" layer="91"/>
<junction x="-111.76" y="124.46"/>
</segment>
<segment>
<pinref part="R5" gate="G$1" pin="2"/>
<pinref part="SUPPLY19" gate="G$1" pin="5V"/>
<wire x1="-55.88" y1="83.82" x2="-55.88" y2="88.9" width="0.1524" layer="91"/>
</segment>
</net>
<net name="D2" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR6B"/>
<wire x1="213.36" y1="-114.3" x2="213.36" y2="-43.18" width="0.1524" layer="91"/>
<wire x1="213.36" y1="-43.18" x2="187.96" y2="-43.18" width="0.1524" layer="91"/>
<label x="220.98" y="-114.3" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="DQ2"/>
<wire x1="226.06" y1="-114.3" x2="213.36" y2="-114.3" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB10"/>
<wire x1="-38.1" y1="-104.14" x2="-38.1" y2="-114.3" width="0.1524" layer="91"/>
<label x="-38.1" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="D1" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR6C"/>
<wire x1="210.82" y1="-116.84" x2="210.82" y2="-45.72" width="0.1524" layer="91"/>
<wire x1="210.82" y1="-45.72" x2="187.96" y2="-45.72" width="0.1524" layer="91"/>
<label x="220.98" y="-116.84" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="DQ1"/>
<wire x1="226.06" y1="-116.84" x2="210.82" y2="-116.84" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB9"/>
<wire x1="-81.28" y1="-7.62" x2="-81.28" y2="-2.54" width="0.1524" layer="91"/>
<label x="-81.28" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="D0" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR6D"/>
<wire x1="187.96" y1="-48.26" x2="208.28" y2="-48.26" width="0.1524" layer="91"/>
<wire x1="208.28" y1="-48.26" x2="208.28" y2="-119.38" width="0.1524" layer="91"/>
<label x="220.98" y="-119.38" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="DQ0"/>
<wire x1="226.06" y1="-119.38" x2="208.28" y2="-119.38" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB8"/>
<wire x1="-78.74" y1="-7.62" x2="-78.74" y2="-2.54" width="0.1524" layer="91"/>
<label x="-78.74" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A0" class="0">
<segment>
<wire x1="205.74" y1="-121.92" x2="205.74" y2="-55.88" width="0.1524" layer="91"/>
<pinref part="IC1" gate="G$1" pin="PR7A"/>
<wire x1="205.74" y1="-55.88" x2="187.96" y2="-55.88" width="0.1524" layer="91"/>
<label x="220.98" y="-121.92" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A0"/>
<wire x1="226.06" y1="-121.92" x2="205.74" y2="-121.92" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE0"/>
<wire x1="-83.82" y1="-7.62" x2="-83.82" y2="-2.54" width="0.1524" layer="91"/>
<label x="-83.82" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A1" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR7B"/>
<wire x1="203.2" y1="-124.46" x2="203.2" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="203.2" y1="-58.42" x2="187.96" y2="-58.42" width="0.1524" layer="91"/>
<label x="220.98" y="-124.46" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A1"/>
<wire x1="226.06" y1="-124.46" x2="203.2" y2="-124.46" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE1"/>
<wire x1="-86.36" y1="-7.62" x2="-86.36" y2="-2.54" width="0.1524" layer="91"/>
<label x="-86.36" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A2" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR7C"/>
<wire x1="187.96" y1="-60.96" x2="200.66" y2="-60.96" width="0.1524" layer="91"/>
<wire x1="200.66" y1="-60.96" x2="200.66" y2="-127" width="0.1524" layer="91"/>
<label x="220.98" y="-127" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A2"/>
<wire x1="226.06" y1="-127" x2="200.66" y2="-127" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE2"/>
<wire x1="-99.06" y1="-25.4" x2="-109.22" y2="-25.4" width="0.1524" layer="91"/>
<label x="-109.22" y="-25.4" size="1.778" layer="95"/>
</segment>
</net>
<net name="A3" class="0">
<segment>
<wire x1="198.12" y1="-129.54" x2="198.12" y2="-63.5" width="0.1524" layer="91"/>
<pinref part="IC1" gate="G$1" pin="PR7D"/>
<wire x1="198.12" y1="-63.5" x2="187.96" y2="-63.5" width="0.1524" layer="91"/>
<label x="220.98" y="-129.54" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A3"/>
<wire x1="226.06" y1="-129.54" x2="198.12" y2="-129.54" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE3"/>
<wire x1="-99.06" y1="-27.94" x2="-109.22" y2="-27.94" width="0.1524" layer="91"/>
<label x="-109.22" y="-27.94" size="1.778" layer="95"/>
</segment>
</net>
<net name="A4" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR2A"/>
<wire x1="187.96" y1="-2.54" x2="312.42" y2="-2.54" width="0.1524" layer="91"/>
<wire x1="312.42" y1="-2.54" x2="312.42" y2="-129.54" width="0.1524" layer="91"/>
<label x="266.7" y="-129.54" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A4"/>
<wire x1="261.62" y1="-129.54" x2="312.42" y2="-129.54" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE4"/>
<wire x1="-99.06" y1="-30.48" x2="-109.22" y2="-30.48" width="0.1524" layer="91"/>
<label x="-109.22" y="-30.48" size="1.778" layer="95"/>
</segment>
</net>
<net name="A5" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR2B"/>
<wire x1="187.96" y1="-5.08" x2="309.88" y2="-5.08" width="0.1524" layer="91"/>
<wire x1="309.88" y1="-5.08" x2="309.88" y2="-127" width="0.1524" layer="91"/>
<label x="266.7" y="-127" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A5"/>
<wire x1="261.62" y1="-127" x2="309.88" y2="-127" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE5"/>
<wire x1="-99.06" y1="-33.02" x2="-109.22" y2="-33.02" width="0.1524" layer="91"/>
<label x="-109.22" y="-33.02" size="1.778" layer="95"/>
</segment>
</net>
<net name="A6" class="0">
<segment>
<wire x1="307.34" y1="-124.46" x2="307.34" y2="-12.7" width="0.1524" layer="91"/>
<pinref part="IC1" gate="G$1" pin="PR2C"/>
<wire x1="307.34" y1="-12.7" x2="187.96" y2="-12.7" width="0.1524" layer="91"/>
<label x="266.7" y="-124.46" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A6"/>
<wire x1="261.62" y1="-124.46" x2="307.34" y2="-124.46" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE6"/>
<wire x1="-99.06" y1="-35.56" x2="-109.22" y2="-35.56" width="0.1524" layer="91"/>
<label x="-109.22" y="-35.56" size="1.778" layer="95"/>
</segment>
</net>
<net name="A7" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR2D"/>
<wire x1="187.96" y1="-15.24" x2="304.8" y2="-15.24" width="0.1524" layer="91"/>
<wire x1="304.8" y1="-15.24" x2="304.8" y2="-121.92" width="0.1524" layer="91"/>
<label x="266.7" y="-121.92" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A7"/>
<wire x1="261.62" y1="-121.92" x2="304.8" y2="-121.92" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE7"/>
<wire x1="-60.96" y1="-104.14" x2="-60.96" y2="-114.3" width="0.1524" layer="91"/>
<label x="-60.96" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A11" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR6A"/>
<wire x1="187.96" y1="-40.64" x2="281.94" y2="-40.64" width="0.1524" layer="91"/>
<wire x1="281.94" y1="-40.64" x2="281.94" y2="-91.44" width="0.1524" layer="91"/>
<label x="266.7" y="-91.44" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A11"/>
<wire x1="261.62" y1="-91.44" x2="281.94" y2="-91.44" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE11"/>
<wire x1="-50.8" y1="-104.14" x2="-50.8" y2="-114.3" width="0.1524" layer="91"/>
<label x="-50.8" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A9" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR5D"/>
<wire x1="187.96" y1="-35.56" x2="284.48" y2="-35.56" width="0.1524" layer="91"/>
<wire x1="284.48" y1="-35.56" x2="284.48" y2="-93.98" width="0.1524" layer="91"/>
<label x="266.7" y="-93.98" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A9"/>
<wire x1="261.62" y1="-93.98" x2="284.48" y2="-93.98" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE9"/>
<wire x1="-55.88" y1="-104.14" x2="-55.88" y2="-114.3" width="0.1524" layer="91"/>
<label x="-55.88" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A8" class="0">
<segment>
<wire x1="287.02" y1="-96.52" x2="287.02" y2="-33.02" width="0.1524" layer="91"/>
<pinref part="IC1" gate="G$1" pin="PR5C"/>
<wire x1="287.02" y1="-33.02" x2="187.96" y2="-33.02" width="0.1524" layer="91"/>
<label x="266.7" y="-96.52" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A8"/>
<wire x1="261.62" y1="-96.52" x2="287.02" y2="-96.52" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE8"/>
<wire x1="-58.42" y1="-104.14" x2="-58.42" y2="-114.3" width="0.1524" layer="91"/>
<label x="-58.42" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A13" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR5B"/>
<wire x1="289.56" y1="-99.06" x2="289.56" y2="-30.48" width="0.1524" layer="91"/>
<wire x1="289.56" y1="-30.48" x2="187.96" y2="-30.48" width="0.1524" layer="91"/>
<label x="266.7" y="-99.06" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A13"/>
<wire x1="261.62" y1="-99.06" x2="289.56" y2="-99.06" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE13"/>
<wire x1="-45.72" y1="-104.14" x2="-45.72" y2="-114.3" width="0.1524" layer="91"/>
<label x="-45.72" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A14" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR5A"/>
<wire x1="187.96" y1="-27.94" x2="292.1" y2="-27.94" width="0.1524" layer="91"/>
<wire x1="292.1" y1="-27.94" x2="292.1" y2="-101.6" width="0.1524" layer="91"/>
<label x="266.7" y="-101.6" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A14"/>
<wire x1="261.62" y1="-101.6" x2="292.1" y2="-101.6" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE14"/>
<wire x1="-43.18" y1="-104.14" x2="-43.18" y2="-114.3" width="0.1524" layer="91"/>
<label x="-43.18" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A17" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR3D"/>
<wire x1="294.64" y1="-104.14" x2="294.64" y2="-25.4" width="0.1524" layer="91"/>
<wire x1="294.64" y1="-25.4" x2="187.96" y2="-25.4" width="0.1524" layer="91"/>
<label x="266.7" y="-104.14" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A17"/>
<wire x1="261.62" y1="-104.14" x2="294.64" y2="-104.14" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC9"/>
<wire x1="-22.86" y1="-48.26" x2="-15.24" y2="-48.26" width="0.1524" layer="91"/>
<label x="-20.32" y="-48.26" size="1.778" layer="95"/>
</segment>
</net>
<net name="A16" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR3C"/>
<wire x1="187.96" y1="-22.86" x2="297.18" y2="-22.86" width="0.1524" layer="91"/>
<wire x1="297.18" y1="-22.86" x2="297.18" y2="-114.3" width="0.1524" layer="91"/>
<label x="266.7" y="-114.3" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A16"/>
<wire x1="261.62" y1="-114.3" x2="297.18" y2="-114.3" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC8"/>
<wire x1="-22.86" y1="-50.8" x2="-15.24" y2="-50.8" width="0.1524" layer="91"/>
<label x="-20.32" y="-50.8" size="1.778" layer="95"/>
</segment>
</net>
<net name="A15" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PR3B"/>
<wire x1="187.96" y1="-20.32" x2="299.72" y2="-20.32" width="0.1524" layer="91"/>
<wire x1="299.72" y1="-20.32" x2="299.72" y2="-116.84" width="0.1524" layer="91"/>
<label x="266.7" y="-116.84" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A15"/>
<wire x1="261.62" y1="-116.84" x2="299.72" y2="-116.84" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE15"/>
<wire x1="-40.64" y1="-104.14" x2="-40.64" y2="-114.3" width="0.1524" layer="91"/>
<label x="-40.64" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="A12" class="0">
<segment>
<wire x1="302.26" y1="-119.38" x2="302.26" y2="-17.78" width="0.1524" layer="91"/>
<pinref part="IC1" gate="G$1" pin="PR3A"/>
<wire x1="302.26" y1="-17.78" x2="187.96" y2="-17.78" width="0.1524" layer="91"/>
<label x="266.7" y="-119.38" size="1.778" layer="95"/>
<pinref part="IC3" gate="A" pin="A12"/>
<wire x1="261.62" y1="-119.38" x2="302.26" y2="-119.38" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PE12"/>
<wire x1="-48.26" y1="-104.14" x2="-48.26" y2="-114.3" width="0.1524" layer="91"/>
<label x="-48.26" y="-114.3" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="N$34" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="1B1"/>
<wire x1="66.04" y1="127" x2="26.67" y2="127" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT0"/>
</segment>
</net>
<net name="N$49" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="1B2"/>
<wire x1="26.67" y1="124.46" x2="66.04" y2="124.46" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT1"/>
</segment>
</net>
<net name="N$50" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="1B3"/>
<wire x1="66.04" y1="119.38" x2="48.26" y2="119.38" width="0.1524" layer="91"/>
<wire x1="48.26" y1="119.38" x2="48.26" y2="121.92" width="0.1524" layer="91"/>
<wire x1="26.67" y1="121.92" x2="48.26" y2="121.92" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT2"/>
</segment>
</net>
<net name="N$51" class="0">
<segment>
<wire x1="26.67" y1="119.38" x2="45.72" y2="119.38" width="0.1524" layer="91"/>
<wire x1="45.72" y1="119.38" x2="45.72" y2="116.84" width="0.1524" layer="91"/>
<pinref part="IC5" gate="G$1" pin="1B4"/>
<wire x1="45.72" y1="116.84" x2="66.04" y2="116.84" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT3"/>
</segment>
</net>
<net name="N$52" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="1B5"/>
<wire x1="66.04" y1="111.76" x2="43.18" y2="111.76" width="0.1524" layer="91"/>
<wire x1="43.18" y1="111.76" x2="43.18" y2="116.84" width="0.1524" layer="91"/>
<wire x1="43.18" y1="116.84" x2="26.67" y2="116.84" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT4"/>
</segment>
</net>
<net name="N$53" class="0">
<segment>
<wire x1="26.67" y1="114.3" x2="40.64" y2="114.3" width="0.1524" layer="91"/>
<wire x1="40.64" y1="114.3" x2="40.64" y2="109.22" width="0.1524" layer="91"/>
<pinref part="IC5" gate="G$1" pin="1B6"/>
<wire x1="40.64" y1="109.22" x2="66.04" y2="109.22" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT5"/>
</segment>
</net>
<net name="N$55" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="1B7"/>
<wire x1="66.04" y1="104.14" x2="38.1" y2="104.14" width="0.1524" layer="91"/>
<wire x1="38.1" y1="104.14" x2="38.1" y2="111.76" width="0.1524" layer="91"/>
<wire x1="26.67" y1="111.76" x2="38.1" y2="111.76" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT6"/>
</segment>
</net>
<net name="N$56" class="0">
<segment>
<wire x1="26.67" y1="109.22" x2="35.56" y2="109.22" width="0.1524" layer="91"/>
<wire x1="35.56" y1="109.22" x2="35.56" y2="101.6" width="0.1524" layer="91"/>
<pinref part="IC5" gate="G$1" pin="1B8"/>
<wire x1="35.56" y1="101.6" x2="66.04" y2="101.6" width="0.1524" layer="91"/>
<pinref part="B1" gate="G$1" pin="OUT7"/>
</segment>
</net>
<net name="OUTSTRB" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="2B1"/>
<wire x1="66.04" y1="99.06" x2="38.1" y2="99.06" width="0.1524" layer="91"/>
<label x="38.1" y="99.06" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="B1" gate="G$1" pin="OUTSTRB"/>
<wire x1="-15.24" y1="114.3" x2="-3.81" y2="114.3" width="0.1524" layer="91"/>
<label x="-15.24" y="114.3" size="1.778" layer="95"/>
</segment>
</net>
<net name="INSTRB" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="2B2"/>
<wire x1="38.1" y1="96.52" x2="66.04" y2="96.52" width="0.1524" layer="91"/>
<label x="38.1" y="96.52" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="B1" gate="G$1" pin="INSTRB"/>
<wire x1="-3.81" y1="116.84" x2="-15.24" y2="116.84" width="0.1524" layer="91"/>
<label x="-15.24" y="116.84" size="1.778" layer="95"/>
</segment>
</net>
<net name="OUT0" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT10D"/>
<pinref part="IC5" gate="G$1" pin="1A1"/>
<wire x1="167.64" y1="17.78" x2="167.64" y2="127" width="0.1524" layer="91"/>
<wire x1="167.64" y1="127" x2="114.3" y2="127" width="0.1524" layer="91"/>
<label x="127" y="127" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB0"/>
<wire x1="-68.58" y1="-104.14" x2="-68.58" y2="-116.84" width="0.1524" layer="91"/>
<label x="-68.58" y="-116.84" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT1" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT10C"/>
<pinref part="IC5" gate="G$1" pin="1A2"/>
<wire x1="165.1" y1="17.78" x2="165.1" y2="124.46" width="0.1524" layer="91"/>
<wire x1="165.1" y1="124.46" x2="114.3" y2="124.46" width="0.1524" layer="91"/>
<label x="127" y="124.46" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB1"/>
<wire x1="-66.04" y1="-104.14" x2="-66.04" y2="-116.84" width="0.1524" layer="91"/>
<label x="-66.04" y="-116.84" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT2" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT10B"/>
<pinref part="IC5" gate="G$1" pin="1A3"/>
<wire x1="162.56" y1="17.78" x2="162.56" y2="119.38" width="0.1524" layer="91"/>
<wire x1="162.56" y1="119.38" x2="114.3" y2="119.38" width="0.1524" layer="91"/>
<label x="127" y="119.38" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB2"/>
<wire x1="-63.5" y1="-104.14" x2="-63.5" y2="-116.84" width="0.1524" layer="91"/>
<label x="-63.5" y="-116.84" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT3" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT10A"/>
<pinref part="IC5" gate="G$1" pin="1A4"/>
<wire x1="160.02" y1="17.78" x2="160.02" y2="116.84" width="0.1524" layer="91"/>
<wire x1="160.02" y1="116.84" x2="114.3" y2="116.84" width="0.1524" layer="91"/>
<label x="127" y="116.84" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB3"/>
<wire x1="-63.5" y1="-7.62" x2="-63.5" y2="2.54" width="0.1524" layer="91"/>
<label x="-63.5" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT4" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT9D"/>
<pinref part="IC5" gate="G$1" pin="1A5"/>
<wire x1="157.48" y1="17.78" x2="157.48" y2="111.76" width="0.1524" layer="91"/>
<wire x1="157.48" y1="111.76" x2="114.3" y2="111.76" width="0.1524" layer="91"/>
<label x="127" y="111.76" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB4"/>
<wire x1="-66.04" y1="-7.62" x2="-66.04" y2="2.54" width="0.1524" layer="91"/>
<label x="-66.04" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT5" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT9C"/>
<pinref part="IC5" gate="G$1" pin="1A6"/>
<wire x1="154.94" y1="17.78" x2="154.94" y2="109.22" width="0.1524" layer="91"/>
<wire x1="154.94" y1="109.22" x2="114.3" y2="109.22" width="0.1524" layer="91"/>
<label x="127" y="109.22" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB5"/>
<wire x1="-68.58" y1="-7.62" x2="-68.58" y2="2.54" width="0.1524" layer="91"/>
<label x="-68.58" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT6" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT9B"/>
<pinref part="IC5" gate="G$1" pin="1A7"/>
<wire x1="152.4" y1="17.78" x2="152.4" y2="104.14" width="0.1524" layer="91"/>
<wire x1="152.4" y1="104.14" x2="114.3" y2="104.14" width="0.1524" layer="91"/>
<label x="127" y="104.14" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB6"/>
<wire x1="-71.12" y1="-7.62" x2="-71.12" y2="2.54" width="0.1524" layer="91"/>
<label x="-71.12" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="OUT7" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT9A"/>
<pinref part="IC5" gate="G$1" pin="1A8"/>
<wire x1="149.86" y1="17.78" x2="149.86" y2="101.6" width="0.1524" layer="91"/>
<wire x1="149.86" y1="101.6" x2="114.3" y2="101.6" width="0.1524" layer="91"/>
<label x="127" y="101.6" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PB7"/>
<wire x1="-73.66" y1="-7.62" x2="-73.66" y2="2.54" width="0.1524" layer="91"/>
<label x="-73.66" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN7_BFUP" class="0">
<segment>
<wire x1="-76.2" y1="-121.92" x2="-76.2" y2="-104.14" width="0.1524" layer="91"/>
<pinref part="IC4" gate="G$1" pin="PA7"/>
<label x="-76.2" y="-121.92" size="1.778" layer="95" rot="R90"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="PT6D"/>
<wire x1="129.54" y1="17.78" x2="129.54" y2="38.1" width="0.1524" layer="91"/>
<label x="129.54" y="27.94" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN6_BFUP" class="0">
<segment>
<wire x1="-78.74" y1="-121.92" x2="-78.74" y2="-104.14" width="0.1524" layer="91"/>
<pinref part="IC4" gate="G$1" pin="PA6"/>
<label x="-78.74" y="-121.92" size="1.778" layer="95" rot="R90"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="PT6C"/>
<wire x1="127" y1="17.78" x2="127" y2="38.1" width="0.1524" layer="91"/>
<label x="127" y="27.94" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN5_BFUP" class="0">
<segment>
<wire x1="-81.28" y1="-121.92" x2="-81.28" y2="-104.14" width="0.1524" layer="91"/>
<pinref part="IC4" gate="G$1" pin="PA5"/>
<label x="-81.28" y="-121.92" size="1.778" layer="95" rot="R90"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="PT6B"/>
<wire x1="124.46" y1="17.78" x2="124.46" y2="38.1" width="0.1524" layer="91"/>
<label x="124.46" y="27.94" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN4_BFUP" class="0">
<segment>
<wire x1="-83.82" y1="-121.92" x2="-83.82" y2="-104.14" width="0.1524" layer="91"/>
<pinref part="IC4" gate="G$1" pin="PA4"/>
<label x="-83.82" y="-121.92" size="1.778" layer="95" rot="R90"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="PT6A"/>
<wire x1="121.92" y1="17.78" x2="121.92" y2="38.1" width="0.1524" layer="91"/>
<label x="121.92" y="27.94" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN3_BFUP" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PL2A"/>
<wire x1="111.76" y1="-2.54" x2="88.9" y2="-2.54" width="0.1524" layer="91"/>
<label x="88.9" y="-2.54" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PA3"/>
<wire x1="-91.44" y1="-121.92" x2="-91.44" y2="-104.14" width="0.1524" layer="91"/>
<label x="-91.44" y="-121.92" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN1_BFUP" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="PA1"/>
<wire x1="-99.06" y1="-83.82" x2="-116.84" y2="-83.82" width="0.1524" layer="91"/>
<label x="-116.84" y="-83.82" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="PL2C"/>
<wire x1="88.9" y1="-7.62" x2="111.76" y2="-7.62" width="0.1524" layer="91"/>
<label x="88.9" y="-7.62" size="1.778" layer="95"/>
</segment>
</net>
<net name="IN0_BFUP" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="PA0"/>
<wire x1="-116.84" y1="-81.28" x2="-99.06" y2="-81.28" width="0.1524" layer="91"/>
<label x="-116.84" y="-81.28" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="PL2D"/>
<wire x1="111.76" y1="-10.16" x2="88.9" y2="-10.16" width="0.1524" layer="91"/>
<label x="88.9" y="-10.16" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$93" class="0">
<segment>
<pinref part="R1" gate="G$1" pin="1"/>
<wire x1="-93.98" y1="73.66" x2="-103.886" y2="73.66" width="0.1524" layer="91"/>
<pinref part="J1" gate="A" pin="4"/>
<wire x1="-103.886" y1="73.66" x2="-101.4476" y2="73.66" width="0.1524" layer="91"/>
</segment>
</net>
<net name="IN0" class="0">
<segment>
<wire x1="26.67" y1="104.14" x2="30.48" y2="104.14" width="0.1524" layer="91"/>
<label x="30.48" y="104.14" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN0"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD0"/>
<wire x1="-43.18" y1="-7.62" x2="-43.18" y2="0" width="0.1524" layer="91"/>
<label x="-43.18" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN1" class="0">
<segment>
<wire x1="26.67" y1="101.6" x2="30.48" y2="101.6" width="0.1524" layer="91"/>
<label x="30.48" y="101.6" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN1"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD1"/>
<wire x1="-45.72" y1="-7.62" x2="-45.72" y2="0" width="0.1524" layer="91"/>
<label x="-45.72" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN2" class="0">
<segment>
<wire x1="26.67" y1="99.06" x2="30.48" y2="99.06" width="0.1524" layer="91"/>
<label x="30.48" y="99.06" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN2"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD2"/>
<wire x1="-48.26" y1="-7.62" x2="-48.26" y2="0" width="0.1524" layer="91"/>
<label x="-48.26" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN3" class="0">
<segment>
<wire x1="26.67" y1="96.52" x2="30.48" y2="96.52" width="0.1524" layer="91"/>
<label x="30.48" y="96.52" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN3"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD3"/>
<wire x1="-50.8" y1="-7.62" x2="-50.8" y2="0" width="0.1524" layer="91"/>
<label x="-50.8" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN4" class="0">
<segment>
<wire x1="26.67" y1="93.98" x2="30.48" y2="93.98" width="0.1524" layer="91"/>
<label x="30.48" y="93.98" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN4"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD4"/>
<wire x1="-53.34" y1="-7.62" x2="-53.34" y2="0" width="0.1524" layer="91"/>
<label x="-53.34" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN5" class="0">
<segment>
<wire x1="26.67" y1="91.44" x2="30.48" y2="91.44" width="0.1524" layer="91"/>
<label x="30.48" y="91.44" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN5"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD5"/>
<wire x1="-55.88" y1="-7.62" x2="-55.88" y2="0" width="0.1524" layer="91"/>
<label x="-55.88" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN6" class="0">
<segment>
<wire x1="26.67" y1="88.9" x2="30.48" y2="88.9" width="0.1524" layer="91"/>
<label x="30.48" y="88.9" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN6"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD6"/>
<wire x1="-58.42" y1="-7.62" x2="-58.42" y2="0" width="0.1524" layer="91"/>
<label x="-58.42" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="IN7" class="0">
<segment>
<wire x1="26.67" y1="86.36" x2="30.48" y2="86.36" width="0.1524" layer="91"/>
<label x="30.48" y="86.36" size="1.778" layer="95"/>
<pinref part="B1" gate="G$1" pin="IN7"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PD7"/>
<wire x1="-60.96" y1="-7.62" x2="-60.96" y2="0" width="0.1524" layer="91"/>
<label x="-60.96" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="BRD_RST" class="0">
<segment>
<pinref part="B1" gate="G$1" pin="!RESET!@1"/>
<wire x1="-3.81" y1="106.68" x2="-15.24" y2="106.68" width="0.1524" layer="91"/>
<label x="-15.24" y="106.68" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC4"/>
<wire x1="-73.66" y1="-127" x2="-73.66" y2="-124.46" width="0.1524" layer="91"/>
<label x="-73.66" y="-121.92" size="1.778" layer="95" rot="R90"/>
<pinref part="C4" gate="G$1" pin="1"/>
<pinref part="S1" gate="G$1" pin="1"/>
<wire x1="-73.66" y1="-124.46" x2="-73.66" y2="-104.14" width="0.1524" layer="91"/>
<wire x1="-66.04" y1="-124.46" x2="-73.66" y2="-124.46" width="0.1524" layer="91"/>
<junction x="-73.66" y="-124.46"/>
</segment>
</net>
<net name="OUTSTR_BFUP" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT11A"/>
<wire x1="175.26" y1="17.78" x2="175.26" y2="99.06" width="0.1524" layer="91"/>
<pinref part="IC5" gate="G$1" pin="2A1"/>
<wire x1="114.3" y1="99.06" x2="175.26" y2="99.06" width="0.1524" layer="91"/>
<label x="127" y="99.06" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC3"/>
<wire x1="-99.06" y1="-68.58" x2="-119.38" y2="-68.58" width="0.1524" layer="91"/>
<label x="-119.38" y="-68.58" size="1.778" layer="95"/>
</segment>
</net>
<net name="INCMG" class="0">
<segment>
<pinref part="B1" gate="G$1" pin="INCOMING"/>
<wire x1="-3.81" y1="119.38" x2="-15.24" y2="119.38" width="0.1524" layer="91"/>
<label x="-15.24" y="119.38" size="1.778" layer="95"/>
</segment>
<segment>
<label x="-20.32" y="-55.88" size="1.778" layer="95"/>
<pinref part="IC4" gate="G$1" pin="PC6"/>
<wire x1="-22.86" y1="-55.88" x2="-12.7" y2="-55.88" width="0.1524" layer="91"/>
</segment>
</net>
<net name="BF_RST" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PL3A"/>
<wire x1="111.76" y1="-17.78" x2="88.9" y2="-17.78" width="0.1524" layer="91"/>
<label x="88.9" y="-17.272" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC12"/>
<wire x1="-40.64" y1="-7.62" x2="-40.64" y2="5.08" width="0.1524" layer="91"/>
<label x="-40.64" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="BF_CLK" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PL3B"/>
<wire x1="111.76" y1="-20.32" x2="88.9" y2="-20.32" width="0.1524" layer="91"/>
<label x="88.9" y="-19.812" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PA8"/>
<wire x1="-22.86" y1="-45.72" x2="-10.16" y2="-45.72" width="0.1524" layer="91"/>
<label x="-20.32" y="-45.72" size="1.778" layer="95"/>
</segment>
</net>
<net name="BOOT0" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="BOOT0"/>
<wire x1="-76.2" y1="-7.62" x2="-76.2" y2="7.62" width="0.1524" layer="91"/>
<label x="-76.2" y="-5.08" size="1.778" layer="95" rot="R90"/>
<pinref part="J2" gate="J$1" pin="2"/>
<pinref part="R2" gate="G$1" pin="2"/>
<wire x1="-76.2" y1="7.62" x2="-76.2" y2="15.24" width="0.1524" layer="91"/>
<junction x="-76.2" y="7.62"/>
</segment>
</net>
<net name="AIN0" class="0">
<segment>
<pinref part="B1" gate="G$1" pin="AIN"/>
<wire x1="-3.81" y1="127" x2="-15.24" y2="127" width="0.1524" layer="91"/>
<label x="-15.24" y="127" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC0"/>
<wire x1="-99.06" y1="-60.96" x2="-116.84" y2="-60.96" width="0.1524" layer="91"/>
<label x="-116.84" y="-60.96" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$23" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="NRST"/>
<wire x1="-99.06" y1="-58.42" x2="-111.76" y2="-58.42" width="0.1524" layer="91"/>
<pinref part="R3" gate="G$1" pin="2"/>
<pinref part="NRST" gate="G$1" pin="1"/>
<wire x1="-111.76" y1="-58.42" x2="-116.84" y2="-58.42" width="0.1524" layer="91"/>
<wire x1="-114.3" y1="-51.054" x2="-111.76" y2="-51.054" width="0.1524" layer="91"/>
<wire x1="-111.76" y1="-51.054" x2="-111.76" y2="-58.42" width="0.1524" layer="91"/>
<junction x="-111.76" y="-58.42"/>
</segment>
</net>
<net name="INSTR_LVL" class="0">
<segment>
<pinref part="IC5" gate="G$1" pin="2A2"/>
<wire x1="139.7" y1="96.52" x2="114.3" y2="96.52" width="0.1524" layer="91"/>
<label x="127" y="96.52" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC2"/>
<wire x1="-99.06" y1="-66.04" x2="-116.84" y2="-66.04" width="0.1524" layer="91"/>
<label x="-116.84" y="-66.04" size="1.778" layer="95"/>
</segment>
</net>
<net name="USB_DN" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="PA11"/>
<wire x1="-22.86" y1="-38.1" x2="-10.16" y2="-38.1" width="0.1524" layer="91"/>
<label x="-20.32" y="-38.1" size="1.778" layer="95"/>
</segment>
<segment>
<label x="-99.06" y="78.74" size="1.778" layer="95"/>
<wire x1="-101.4476" y1="78.74" x2="-103.886" y2="78.74" width="0.1524" layer="91"/>
<pinref part="J1" gate="A" pin="2"/>
<wire x1="-103.886" y1="78.74" x2="-78.74" y2="78.74" width="0.1524" layer="91"/>
</segment>
</net>
<net name="USB_DP" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="PA12"/>
<wire x1="-10.16" y1="-35.56" x2="-22.86" y2="-35.56" width="0.1524" layer="91"/>
<label x="-20.32" y="-35.56" size="1.778" layer="95"/>
</segment>
<segment>
<label x="-99.06" y="76.2" size="1.778" layer="95"/>
<wire x1="-78.74" y1="76.2" x2="-103.886" y2="76.2" width="0.1524" layer="91"/>
<pinref part="J1" gate="A" pin="3"/>
<wire x1="-103.886" y1="76.2" x2="-101.4476" y2="76.2" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$19" class="0">
<segment>
<wire x1="-96.52" y1="81.28" x2="-96.52" y2="91.44" width="0.1524" layer="91"/>
<pinref part="D1" gate="G$1" pin="A"/>
<wire x1="-101.4476" y1="81.28" x2="-103.886" y2="81.28" width="0.1524" layer="91"/>
<pinref part="J1" gate="A" pin="1"/>
<wire x1="-103.886" y1="81.28" x2="-96.52" y2="81.28" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$18" class="0">
<segment>
<pinref part="B1" gate="G$1" pin="VIN"/>
<wire x1="-3.81" y1="104.14" x2="-30.48" y2="104.14" width="0.1524" layer="91"/>
<pinref part="D2" gate="G$1" pin="A"/>
<wire x1="-30.48" y1="104.14" x2="-30.48" y2="111.76" width="0.1524" layer="91"/>
</segment>
</net>
<net name="INSTR_BFUP" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT11C"/>
<wire x1="177.8" y1="17.78" x2="177.8" y2="43.18" width="0.1524" layer="91"/>
<label x="177.8" y="27.94" size="1.778" layer="95" rot="R90"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC1"/>
<wire x1="-99.06" y1="-63.5" x2="-116.84" y2="-63.5" width="0.1524" layer="91"/>
<label x="-116.84" y="-63.5" size="1.778" layer="95"/>
</segment>
</net>
<net name="INCMG_BFUP" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PT11D"/>
<wire x1="180.34" y1="17.78" x2="180.34" y2="43.18" width="0.1524" layer="91"/>
<label x="180.34" y="27.94" size="1.778" layer="95" rot="R90"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC7"/>
<wire x1="-22.86" y1="-53.34" x2="-5.08" y2="-53.34" width="0.1524" layer="91"/>
<label x="-20.32" y="-53.34" size="1.778" layer="95"/>
</segment>
</net>
<net name="IN2_BFUP" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PL2B"/>
<wire x1="111.76" y1="-5.08" x2="88.9" y2="-5.08" width="0.1524" layer="91"/>
<label x="88.9" y="-5.08" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PA2"/>
<wire x1="-99.06" y1="-86.36" x2="-116.84" y2="-86.36" width="0.1524" layer="91"/>
<label x="-116.84" y="-86.36" size="1.778" layer="95"/>
</segment>
</net>
<net name="OE" class="0">
<segment>
<pinref part="IC3" gate="A" pin="!OE"/>
<wire x1="226.06" y1="-91.44" x2="220.98" y2="-91.44" width="0.1524" layer="91"/>
<label x="220.98" y="-91.44" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC10"/>
<wire x1="-35.56" y1="-7.62" x2="-35.56" y2="0" width="0.1524" layer="91"/>
<label x="-35.56" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="WE" class="0">
<segment>
<pinref part="IC3" gate="A" pin="!WE"/>
<wire x1="261.62" y1="-106.68" x2="271.78" y2="-106.68" width="0.1524" layer="91"/>
<label x="266.7" y="-106.68" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC11"/>
<wire x1="-38.1" y1="-7.62" x2="-38.1" y2="0" width="0.1524" layer="91"/>
<label x="-38.1" y="-5.08" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="AIEN" class="0">
<segment>
<pinref part="B1" gate="G$1" pin="AIEN"/>
<wire x1="-3.81" y1="96.52" x2="-15.24" y2="96.52" width="0.1524" layer="91"/>
<label x="-15.24" y="96.52" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC4" gate="G$1" pin="PC5"/>
<wire x1="-71.12" y1="-104.14" x2="-71.12" y2="-116.84" width="0.1524" layer="91"/>
<label x="-71.12" y="-116.84" size="1.778" layer="95" rot="R90"/>
</segment>
</net>
<net name="N$16" class="0">
<segment>
<pinref part="D3" gate="G$1" pin="A"/>
<pinref part="R5" gate="G$1" pin="1"/>
<wire x1="-55.88" y1="68.58" x2="-55.88" y2="73.66" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$17" class="0">
<segment>
<pinref part="C30" gate="G$1" pin="1"/>
<pinref part="IC6" gate="G$1" pin="BP"/>
<wire x1="-66.04" y1="111.76" x2="-66.04" y2="114.3" width="0.1524" layer="91"/>
<wire x1="-66.04" y1="114.3" x2="-73.66" y2="114.3" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$15" class="0">
<segment>
<pinref part="PL3C" gate="G$1" pin="1"/>
<pinref part="IC1" gate="G$1" pin="PL3C"/>
<wire x1="78.74" y1="-22.86" x2="111.76" y2="-22.86" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$20" class="0">
<segment>
<pinref part="IC4" gate="G$1" pin="PF10"/>
<pinref part="R6" gate="G$1" pin="2"/>
<wire x1="-106.68" y1="-40.64" x2="-104.14" y2="-40.64" width="0.1524" layer="91"/>
<wire x1="-104.14" y1="-40.64" x2="-104.14" y2="-50.8" width="0.1524" layer="91"/>
<wire x1="-104.14" y1="-50.8" x2="-99.06" y2="-50.8" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$21" class="0">
<segment>
<pinref part="R6" gate="G$1" pin="1"/>
<pinref part="D4" gate="G$1" pin="A"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
</schematic>
</drawing>
</eagle>

license: MIT

license_type: permissive


text:
package utils

import (
	"testing"
)

func TestGetServiceDomain(t *testing.T) {
	type args struct {
		projectID string
		serviceID string
	}
	tests := []struct {
		name string
		args args
		want string
	}{
		// TODO: Add test cases.
		{
			name: "test",
			args: args{
				projectID: "test",
				serviceID: "service",
			},
			want: "service.test.svc.cluster.local",
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := GetServiceDomain(tt.args.projectID, tt.args.serviceID); got != tt.want {
				t.Errorf("GetServiceDomain() = %v, want %v", got, tt.want)
			}
		})
	}
}

func TestGetInternalServiceDomain(t *testing.T) {
	type args struct {
		projectID string
		serviceID string
		version   string
	}
	tests := []struct {
		name string
		args args
		want string
	}{
		// TODO: Add test cases.
		{
			name: "test",
			args: args{
				projectID: "test",
				serviceID: "service",
				version:   "v1",
			},
			want: "service.test-v1.svc.cluster.local",
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := GetInternalServiceDomain(tt.args.projectID, tt.args.serviceID, tt.args.version); got != tt.want {
				t.Errorf("GetInternalServiceDomain() = %v, want %v", got, tt.want)
			}
		})
	}
}

repository: khannaabhi/space-cloud

repo_name: khannaabhi/space-cloud

branch_name: refs/heads/master

extension: go


text:
// MIT License
//
// Copyright (c) 2020 Tweag IO
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//

package log

import (
	"bytes"
	"crypto/sha256"
	"fmt"
)

func rootHashFromAuditProof(leafHash []byte, proof [][]byte, idx uint64, treeSize uint64) ([]byte, error) {
	if len(proof) == 0 {
		return leafHash, nil
	}

	if idx%2 == 0 && idx+1 == treeSize {
		if treeSize == 1 {
			return nil, fmt.Errorf("No such level")
		}
		return rootHashFromAuditProof(leafHash, proof, idx/2, (treeSize+1)/2)
	}

	sibling := proof[0]
	if idx%2 == 0 {
		return rootHashFromAuditProof(branchHash(leafHash, sibling), proof, idx/2, (treeSize+1)/2)
	} else {
		return rootHashFromAuditProof(branchHash(sibling, leafHash), proof, idx/2, (treeSize+1)/2)
	}
}

func rootHashFromConsistencyProof(oldSize uint64, newSize uint64, proofNodes [][]byte, oldRoot []byte, computeNewRoot bool, startFromOldRoot bool) []byte {
	if oldSize == newSize {
		if startFromOldRoot {
			return oldRoot
		}
		idx := len(proofNodes) - 1
		return proofNodes[idx]
	}

	k := splitPoint(newSize)
	idx := len(proofNodes) - 1
	nextHash := proofNodes[idx]

	if oldSize <= k {
		leftChild := rootHashFromConsistencyProof(oldSize, k, proofNodes[:idx], oldRoot, computeNewRoot, startFromOldRoot)
		if computeNewRoot {
			return branchHash(leftChild, nextHash)
		} else {
			return leftChild
		}
	} else {
		rightChild := rootHashFromConsistencyProof(oldSize-k, newSize-k, proofNodes[:idx], oldRoot, computeNewRoot, false)
		return branchHash(nextHash, rightChild)
	}

}

func ValidAuditProof(rootHash []byte, treeSize uint64, idx uint64, proof [][]byte, leafData []byte) (bool, error) {
	leafHash := sha256.New()
	leafHash.Write([]byte{0})
	leafHash.Write(leafData)

	fromAuditProof, err := rootHashFromAuditProof(
		leafHash.Sum(nil),
		proof,
		idx,
		treeSize)
	if err != nil {
		return false, err
	}

	return bytes.Compare(rootHash, fromAuditProof) == 0, nil
}

func ValidConsistencyProof(oldRoot []byte, newRoot []byte, oldSize uint64, newSize uint64, proofNodes [][]byte) bool {
	if oldSize == 0 { // Empty tree consistent with any future state
		return true
	}

	if oldSize == newSize {
		return bytes.Compare(oldRoot, newRoot) == 0
	}

	computedOldRoot := rootHashFromConsistencyProof(oldSize, newSize, proofNodes, oldRoot, false, true)
	computedNewRoot := rootHashFromConsistencyProof(oldSize, newSize, proofNodes, oldRoot, true, true)

	return bytes.Compare(oldRoot, computedOldRoot) == 0 && bytes.Compare(newRoot, computedNewRoot) == 0
}

repository: silky/trustix

repo_name: silky/trustix


text:
package main

import (
	"fmt"
	"os"
	"strings"

	"github.com/c-bata/go-prompt"
	"gopkg.in/AlecAivazis/survey.v1"
)

var livePrefixState struct {
	livePrefix string
	isEnable   bool
}

func executor(in string) {
	if in == "exit" || in == "quit" {
		os.Exit(0)
	}
	fmt.Println("Your input: " + in)
	testArray := strings.Fields(in)
	fmt.Println("Number of tokens: ", len(testArray))
	for _, v := range testArray {
		fmt.Println("token: " + v)
	}
	livePrefixState.livePrefix = in + "> "
	livePrefixState.isEnable = true
}

func completer(d prompt.Document) []prompt.Suggest {
	s := []prompt.Suggest{
		{Text: "users", Description: "Store the username and age"},
		{Text: "articles", Description: "Store the article text posted by user"},
		{Text: "comments", Description: "Store the text commented to articles"},
	}
	return prompt.FilterHasPrefix(s, d.GetWordBeforeCursor(), true)
}

func changeLivePrefix() (string, bool) {
	return livePrefixState.livePrefix, livePrefixState.isEnable
}

func runGoPrompt() {
	fmt.Println("Please select table.")
	//t := prompt.Input("> ", completer)
	//fmt.Println("You selected " + t)
	p := prompt.New(
		executor,
		completer,
		prompt.OptionPrefix(">>> "),
		prompt.OptionLivePrefix(changeLivePrefix),
		prompt.OptionTitle("cli-prompt"),
		prompt.OptionHistory([]string{}),
		prompt.OptionPrefixTextColor(prompt.Yellow),
		prompt.OptionPreviewSuggestionTextColor(prompt.Blue),
		prompt.OptionSelectedSuggestionBGColor(prompt.LightGray),
		prompt.OptionSuggestionBGColor(prompt.DarkGray),
	)
	p.Run()
}

func runInputSurvey() {
	name := ""
	prompt := &survey.Input{
		Message: "ping",
	}
	survey.AskOne(prompt, &name, nil)
}

func runMultiSelectSurvey() {
	days := []string{}
	prompt := &survey.MultiSelect{
		Message: "What days do you prefer?",
		Options: []string{"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"},
	}
	survey.AskOne(prompt, &days, nil)
}

func main() {
	runGoPrompt()
	//runInputSurvey()
	//runMultiSelectSurvey()
}

repository: jrecuero/go-cli

repo_name: jrecuero/go-cli

branch_name: refs/heads/private/remove-prefix

gha_language: Go


text:
@inproceedings{Jeong2015,
author = {Jeong, Seokho and Bradley, Brendon A},
booktitle = {6th International Conference on Earthquake Geotechnical Engineering},
title = {{2D site response simulation of Heathcote Valley during the 2010-2011 Canterbury earthquake sequence}},
year = {2015}
}

repository: seokhojeong/academic-kickstart

repo_name: seokhojeong/academic-kickstart

extension: bib


text:
package watcher

import (
	"fmt"
	"time"
)

// Message describes output from Path function.
type Message struct {
	Error     error
	Message   string
	IsChanged bool
}

func paused(path string) Message {
	return Message{
		Message: fmt.Sprintf("path '%s' watch paused", path),
	}
}

func resumed(path string) Message {
	return Message{
		Message: fmt.Sprintf("path '%s' watch resumed", path),
	}
}

func change(path string, delta time.Duration) Message {
	return Message{
		IsChanged: true,
		Message:   fmt.Sprintf("path '%s' change detected (%v)", path, delta),
	}
}

func hashError(path string, err error) Message {
	return Message{
		Error: fmt.Errorf("hash compute error, path '%s': %w", path, err),
	}
}

func shutdown(path string) Message {
	return Message{
		Message: fmt.Sprintf("path '%s' watch is shutting down", path),
	}
}

branch_name: refs/heads/main

gha_license_id: MIT


text:
package main

import (
	"bytes"
	"fmt"
	"log"
	"net/http"
	"net/http/httptest"
	"strings"
	"testing"
)

func TestBuildUrl(t *testing.T) {
	url := buildUrl("server/", "project", "repo", "")
	if url != "server/project/repo" {
		t.Fatal("Wrong value for url")
	}

	url = buildUrl("server/", "project", "repo", "extra")
	if url != "server/project/repo/extra" {
		t.Fatal("Wrong value for url")
	}

	url = buildUrl("server/", "project:with:colons", "repo", "extra")
	if url != "server/project:/with:/colons/repo/extra" {
		t.Fatal("Wrong value for url")
	}
}

func TestGetRequestFail(t *testing.T) {
	buffer := bytes.NewBuffer([]byte{})
	log.SetOutput(buffer)

	_, err := getRequest("http://")
	if err == nil || err.Error != "Internal Server Error" || err.Code != 500 {
		t.Fatal("Wrong error")
	}

	msg := "Get http://: http: no Host in request URL\n"
	if !strings.Contains(buffer.String(), msg) {
		t.Fatal("GET request has failed for an unexpected reason")
	}
}

func TestGetRequestNotOK(t *testing.T) {
	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.WriteHeader(404)
	}))
	defer ts.Close()

	_, err := getRequest(ts.URL)
	msg := fmt.Sprintf("GET %v failed with 404 Not Found", ts.URL)
	if err.Error != msg || err.Code != 404 {
		t.Fatal("GET request has failed for an unexpected reason")
	}
}

func TestGetRequest(t *testing.T) {
	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprint(w, "OK")
	}))
	defer ts.Close()

	body, err := getRequest(ts.URL)
	if err != nil {
		t.Fatal("Something went wrong!")
	}
	if string(body) != "OK" {
		t.Fatal("Wrong message!")
	}
}