text:
"/>
</segment>
<segment>
<pinref part="USART" gate="G$1" pin="3"/>
<pinref part="GND10" gate="1" pin="GND"/>
</segment>
</net>
<net name="N$2" class="0">
<segment>
<pinref part="R3" gate="G$1" pin="1"/>
<pinref part="U3" gate="G$1" pin="!SUSPEND"/>
<wire x1="63.5" y1="38.1" x2="50.8" y2="38.1" width="0.1524" layer="91"/>
</segment>
</net>
<net name="USART1_RX" class="0">
<segment>
<pinref part="U3" gate="G$1" pin="TXD"/>
<wire x1="50.8" y1="22.86" x2="60.96" y2="22.86" width="0.1524" layer="91"/>
<label x="60.96" y="22.86" size="1.778" layer="95"/>
<wire x1="78.74" y1="22.86" x2="60.96" y2="22.86" width="0.1524" layer="91"/>
<pinref part="USART" gate="G$1" pin="1"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA10"/>
<wire x1="198.12" y1="40.64" x2="203.2" y2="40.64" width="0.1524" layer="91"/>
<label x="203.2" y="40.64" size="1.778" layer="95"/>
</segment>
</net>
<net name="USART1_TX" class="0">
<segment>
<pinref part="U3" gate="G$1" pin="RXD"/>
<wire x1="50.8" y1="20.32" x2="60.96" y2="20.32" width="0.1524" layer="91"/>
<label x="60.96" y="20.32" size="1.778" layer="95"/>
<wire x1="78.74" y1="20.32" x2="60.96" y2="20.32" width="0.1524" layer="91"/>
<pinref part="USART" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA9"/>
<wire x1="198.12" y1="38.1" x2="203.2" y2="38.1" width="0.1524" layer="91"/>
<label x="203.2" y="38.1" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$3" class="0">
<segment>
<pinref part="D1" gate="G$1" pin="C"/>
<pinref part="R4" gate="G$1" pin="2"/>
<wire x1="99.06" y1="68.58" x2="99.06" y2="71.12" width="0.1524" layer="91"/>
</segment>
</net>
<net name="CLK_16M" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="OSC_IN"/>
<label x="139.7" y="40.64" size="1.778" layer="95"/>
<pinref part="OS1" gate="A" pin="OUT"/>
<wire x1="119.38" y1="43.18" x2="127" y2="43.18" width="0.1524" layer="91"/>
<wire x1="127" y1="43.18" x2="127" y2="40.64" width="0.1524" layer="91"/>
<wire x1="127" y1="40.64" x2="152.4" y2="40.64" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="JP1" gate="G$1" pin="VBUS"/>
<wire x1="12.7" y1="91.44" x2="17.78" y2="91.44" width="0.1524" layer="91"/>
<wire x1="17.78" y1="91.44" x2="17.78" y2="93.98" width="0.1524" layer="91"/>
<pinref part="S1" gate="1" pin="P"/>
<wire x1="17.78" y1="93.98" x2="20.32" y2="93.98" width="0.1524" layer="91"/>
<wire x1="20.32" y1="93.98" x2="20.32" y2="99.06" width="0.1524" layer="91"/>
<junction x="20.32" y="93.98"/>
<pinref part="SJ4" gate="G$1" pin="1"/>
<wire x1="20.32" y1="99.06" x2="30.48" y2="99.06" width="0.1524" layer="91"/>
</segment>
</net>
<net name="NRST" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="NRST"/>
<pinref part="S2" gate="G$1" pin="2"/>
<wire x1="152.4" y1="17.78" x2="137.16" y2="17.78" width="0.1524" layer="91"/>
<pinref part="C7" gate="G$1" pin="2"/>
<wire x1="137.16" y1="17.78" x2="129.54" y2="17.78" width="0.1524" layer="91"/>
<junction x="137.16" y="17.78"/>
<label x="129.54" y="17.78" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$8" class="0">
<segment>
<pinref part="R5" gate="G$1" pin="1"/>
<pinref part="U4" gate="MCU" pin="PB2"/>
<wire x1="200.66" y1="63.5" x2="198.12" y2="63.5" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$7" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="BOOT0"/>
<pinref part="R6" gate="G$1" pin="2"/>
</segment>
</net>
<net name="N$9" class="0">
<segment>
<pinref part="R6" gate="G$1" pin="1"/>
<pinref part="SJ3" gate="G$1" pin="2"/>
</segment>
</net>
<net name="SWCLK" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PA14"/>
<wire x1="198.12" y1="50.8" x2="203.2" y2="50.8" width="0.1524" layer="91"/>
<label x="203.2" y="50.8" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="STLINK" gate="G$1" pin="4"/>
<wire x1="142.24" y1="109.22" x2="147.32" y2="109.22" width="0.1524" layer="91"/>
<label x="147.32" y="109.22" size="1.778" layer="95"/>
</segment>
</net>
<net name="SWDIO" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PA13"/>
<wire x1="198.12" y1="48.26" x2="203.2" y2="48.26" width="0.1524" layer="91"/>
<label x="203.2" y="48.26" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="STLINK" gate="G$1" pin="3"/>
<wire x1="142.24" y1="106.68" x2="147.32" y2="106.68" width="0.1524" layer="91"/>
<label x="147.32" y="106.68" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$11" class="0">
<segment>
<pinref part="OS1" gate="A" pin="CON"/>
<pinref part="SJ2" gate="G$1" pin="2"/>
<wire x1="119.38" y1="48.26" x2="119.38" y2="50.8" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$6" class="0">
<segment>
<pinref part="C10" gate="G$1" pin="1"/>
<pinref part="C9" gate="G$1" pin="1"/>
<wire x1="114.3" y1="30.48" x2="119.38" y2="30.48" width="0.1524" layer="91"/>
<pinref part="C8" gate="G$1" pin="1"/>
<wire x1="119.38" y1="30.48" x2="129.54" y2="30.48" width="0.1524" layer="91"/>
<junction x="119.38" y="30.48"/>
<wire x1="129.54" y1="30.48" x2="134.62" y2="30.48" width="0.1524" layer="91"/>
<wire x1="134.62" y1="30.48" x2="134.62" y2="25.4" width="0.1524" layer="91"/>
<junction x="129.54" y="30.48"/>
<pinref part="U4" gate="MCU" pin="VDDA"/>
<wire x1="134.62" y1="25.4" x2="152.4" y2="25.4" width="0.1524" layer="91"/>
<pinref part="L1" gate="G$1" pin="1"/>
<wire x1="149.86" y1="35.56" x2="134.62" y2="35.56" width="0.1524" layer="91"/>
<wire x1="134.62" y1="35.56" x2="134.62" y2="30.48" width="0.1524" layer="91"/>
<junction x="134.62" y="30.48"/>
</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="VBAT"/>
<pinref part="D2" gate="G$1" pin="C"/>
</segment>
</net>
<net name="N$12" class="0">
<segment>
<pinref part="D3" gate="G$1" pin="C"/>
<pinref part="C16" gate="G$1" pin="1"/>
<wire x1="55.88" y1="76.2" x2="55.88" y2="78.74" width="0.1524" layer="91"/>
<pinref part="C1" gate="G$1" pin="+"/>
<pinref part="U1" gate="G$1" pin="IN"/>
<wire x1="63.5" y1="78.74" x2="68.58" y2="78.74" width="0.1524" layer="91"/>
<wire x1="55.88" y1="78.74" x2="63.5" y2="78.74" width="0.1524" layer="91"/>
<junction x="55.88" y="78.74"/>
<junction x="63.5" y="78.74"/>
</segment>
</net>
<net name="485_B" class="0">
<segment>
<pinref part="R12" gate="G$1" pin="2"/>
<pinref part="R13" gate="G$1" pin="1"/>
<pinref part="U6" gate="G$1" pin="B"/>
<wire x1="330.2" y1="25.4" x2="342.9" y2="25.4" width="0.1524" layer="91"/>
<wire x1="342.9" y1="25.4" x2="342.9" y2="30.48" width="0.1524" layer="91"/>
<wire x1="342.9" y1="30.48" x2="350.52" y2="30.48" width="0.1524" layer="91"/>
<junction x="350.52" y="30.48"/>
<wire x1="350.52" y1="30.48" x2="378.46" y2="30.48" width="0.1524" layer="91"/>
<label x="368.3" y="30.48" size="1.778" layer="95"/>
<pinref part="JP6" gate="G$1" pin="1"/>
<wire x1="378.46" y1="30.48" x2="378.46" y2="25.4" width="0.1524" layer="91"/>
</segment>
</net>
<net name="485_A" class="0">
<segment>
<pinref part="R12" gate="G$1" pin="1"/>
<pinref part="R14" gate="G$1" pin="2"/>
<pinref part="U6" gate="G$1" pin="A"/>
<wire x1="330.2" y1="22.86" x2="342.9" y2="22.86" width="0.1524" layer="91"/>
<wire x1="342.9" y1="22.86" x2="342.9" y2="20.32" width="0.1524" layer="91"/>
<wire x1="342.9" y1="20.32" x2="350.52" y2="20.32" width="0.1524" layer="91"/>
<junction x="350.52" y="20.32"/>
<wire x1="350.52" y1="20.32" x2="378.46" y2="20.32" width="0.1524" layer="91"/>
<label x="368.3" y="20.32" size="1.778" layer="95"/>
<pinref part="JP6" gate="G$1" pin="2"/>
<wire x1="378.46" y1="22.86" x2="378.46" y2="20.32" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$24" class="0">
<segment>
<wire x1="297.18" y1="33.02" x2="299.72" y2="33.02" width="0.1524" layer="91"/>
<wire x1="299.72" y1="33.02" x2="299.72" y2="30.48" width="0.1524" layer="91"/>
<pinref part="U6" gate="G$1" pin="RO"/>
<wire x1="299.72" y1="30.48" x2="304.8" y2="30.48" width="0.1524" layer="91"/>
<pinref part="R16" gate="A" pin="2"/>
<wire x1="297.18" y1="33.02" x2="297.18" y2="-2.54" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$25" class="0">
<segment>
<pinref part="U6" gate="G$1" pin="SHDN"/>
<wire x1="302.26" y1="20.32" x2="304.8" y2="20.32" width="0.1524" layer="91"/>
<wire x1="302.26" y1="20.32" x2="302.26" y2="-12.7" width="0.1524" layer="91"/>
<pinref part="R16" gate="R" pin="2"/>
<wire x1="302.26" y1="-12.7" x2="297.18" y2="-12.7" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$26" class="0">
<segment>
<pinref part="U6" gate="G$1" pin="DI"/>
<wire x1="304.8" y1="17.78" x2="304.8" y2="-17.78" width="0.1524" layer="91"/>
<pinref part="R16" gate="D" pin="2"/>
<wire x1="304.8" y1="-17.78" x2="297.18" y2="-17.78" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$27" class="0">
<segment>
<pinref part="U6" gate="G$1" pin="RE"/>
<wire x1="299.72" y1="27.94" x2="304.8" y2="27.94" width="0.1524" layer="91"/>
<wire x1="299.72" y1="27.94" x2="299.72" y2="-7.62" width="0.1524" layer="91"/>
<pinref part="R16" gate="B" pin="2"/>
<wire x1="299.72" y1="-7.62" x2="297.18" y2="-7.62" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$28" class="0">
<segment>
<pinref part="R16" gate="A" pin="1"/>
<pinref part="SJ6" gate="G$1" pin="2"/>
<wire x1="228.6" y1="-2.54" x2="287.02" y2="-2.54" width="0.1524" layer="91"/>
</segment>
</net>
<net name="485_RE" class="0">
<segment>
<pinref part="R16" gate="B" pin="1"/>
<wire x1="287.02" y1="-7.62" x2="269.24" y2="-7.62" width="0.1524" layer="91"/>
<label x="269.24" y="-7.62" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA1"/>
<wire x1="198.12" y1="17.78" x2="203.2" y2="17.78" width="0.1524" layer="91"/>
<label x="203.2" y="17.78" size="1.778" layer="95"/>
</segment>
</net>
<net name="485_SHDN" class="0">
<segment>
<pinref part="R16" gate="R" pin="1"/>
<wire x1="287.02" y1="-12.7" x2="269.24" y2="-12.7" width="0.1524" layer="91"/>
<label x="269.24" y="-12.7" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA0-WKUP"/>
<wire x1="198.12" y1="15.24" x2="203.2" y2="15.24" width="0.1524" layer="91"/>
<label x="203.2" y="15.24" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$31" class="0">
<segment>
<pinref part="R16" gate="D" pin="1"/>
<pinref part="SJ5" gate="G$1" pin="2"/>
<wire x1="287.02" y1="-17.78" x2="231.14" y2="-17.78" width="0.1524" layer="91"/>
</segment>
</net>
<net name="USART2_RX" class="0">
<segment>
<pinref part="SJ6" gate="G$1" pin="3"/>
<wire x1="223.52" y1="2.54" x2="220.98" y2="2.54" width="0.1524" layer="91"/>
<wire x1="220.98" y1="2.54" x2="220.98" y2="-22.86" width="0.1524" layer="91"/>
<pinref part="SJ5" gate="G$1" pin="1"/>
<wire x1="220.98" y1="-22.86" x2="226.06" y2="-22.86" width="0.1524" layer="91"/>
<wire x1="220.98" y1="-22.86" x2="205.74" y2="-22.86" width="0.1524" layer="91"/>
<junction x="220.98" y="-22.86"/>
<label x="205.74" y="-22.86" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA3"/>
<wire x1="198.12" y1="22.86" x2="203.2" y2="22.86" width="0.1524" layer="91"/>
<label x="203.2" y="22.86" size="1.778" layer="95"/>
</segment>
</net>
<net name="USART2_TX" class="0">
<segment>
<pinref part="SJ6" gate="G$1" pin="1"/>
<wire x1="223.52" y1="-7.62" x2="223.52" y2="-10.16" width="0.1524" layer="91"/>
<wire x1="223.52" y1="-10.16" x2="226.06" y2="-10.16" width="0.1524" layer="91"/>
<pinref part="SJ5" gate="G$1" pin="3"/>
<wire x1="226.06" y1="-10.16" x2="226.06" y2="-12.7" width="0.1524" layer="91"/>
<wire x1="223.52" y1="-10.16" x2="205.74" y2="-10.16" width="0.1524" layer="91"/>
<junction x="223.52" y="-10.16"/>
<label x="205.74" y="-10.16" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA2"/>
<wire x1="198.12" y1="20.32" x2="203.2" y2="20.32" width="0.1524" layer="91"/>
<label x="203.2" y="20.32" size="1.778" layer="95"/>
</segment>
</net>
<net name="SPI1_SCK" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PA5"/>
<wire x1="198.12" y1="27.94" x2="203.2" y2="27.94" width="0.1524" layer="91"/>
<label x="203.2" y="27.94" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U5" gate="G$1" pin="SK"/>
<wire x1="248.92" y1="86.36" x2="238.76" y2="86.36" width="0.1524" layer="91"/>
<label x="238.76" y="88.9" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U7" gate="G$1" pin="SCLK"/>
<wire x1="533.4" y1="10.16" x2="538.48" y2="10.16" width="0.1524" layer="91"/>
<label x="538.48" y="10.16" size="1.778" layer="95"/>
</segment>
</net>
<net name="SPI1_MISO" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PA6"/>
<wire x1="198.12" y1="30.48" x2="203.2" y2="30.48" width="0.1524" layer="91"/>
<label x="203.2" y="30.48" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U5" gate="G$1" pin="DOUT"/>
<wire x1="248.92" y1="71.12" x2="238.76" y2="71.12" width="0.1524" layer="91"/>
<label x="238.76" y="73.66" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U7" gate="G$1" pin="DOUT/DRDY"/>
<wire x1="533.4" y1="0" x2="538.48" y2="0" width="0.1524" layer="91"/>
<label x="538.48" y="0" size="1.778" layer="95"/>
</segment>
</net>
<net name="SPI1_MOSI" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PA7"/>
<wire x1="198.12" y1="33.02" x2="203.2" y2="33.02" width="0.1524" layer="91"/>
<label x="203.2" y="33.02" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U5" gate="G$1" pin="DIN"/>
<wire x1="248.92" y1="78.74" x2="238.76" y2="78.74" width="0.1524" layer="91"/>
<label x="238.76" y="81.28" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U7" gate="G$1" pin="DIN"/>
<wire x1="533.4" y1="-5.08" x2="538.48" y2="-5.08" width="0.1524" layer="91"/>
<label x="538.48" y="-5.08" size="1.778" layer="95"/>
</segment>
</net>
<net name="EEPROM_CS" class="0">
<segment>
<pinref part="U5" gate="G$1" pin="CS"/>
<wire x1="248.92" y1="93.98" x2="238.76" y2="93.98" width="0.1524" layer="91"/>
<label x="238.76" y="96.52" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="A" pin="QE"/>
<wire x1="513.08" y1="175.26" x2="523.24" y2="175.26" width="0.1524" layer="91"/>
<label x="523.24" y="175.26" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$18" class="0">
<segment>
<pinref part="L2" gate="G$1" pin="2"/>
<pinref part="U$3" gate="G$1" pin="SW"/>
<wire x1="335.28" y1="99.06" x2="335.28" y2="93.98" width="0.1524" layer="91"/>
<pinref part="MBRM130LT3G" gate="G$1" pin="A"/>
<wire x1="335.28" y1="93.98" x2="350.52" y2="93.98" width="0.1524" layer="91"/>
<junction x="335.28" y="93.98"/>
</segment>
</net>
<net name="N$14" class="0">
<segment>
<pinref part="R17" gate="G$1" pin="1"/>
<pinref part="R18" gate="G$1" pin="2"/>
<pinref part="U$3" gate="G$1" pin="FB"/>
<wire x1="345.44" y1="81.28" x2="368.3" y2="81.28" width="0.1524" layer="91"/>
<junction x="368.3" y="81.28"/>
</segment>
</net>
<net name="15V" class="0">
<segment>
<pinref part="MBRM130LT3G" gate="G$1" pin="C"/>
<wire x1="355.6" y1="93.98" x2="368.3" y2="93.98" width="0.1524" layer="91"/>
<pinref part="R17" gate="G$1" pin="2"/>
<wire x1="368.3" y1="93.98" x2="383.54" y2="93.98" width="0.1524" layer="91"/>
<wire x1="368.3" y1="91.44" x2="368.3" y2="93.98" width="0.1524" layer="91"/>
<junction x="368.3" y="93.98"/>
<pinref part="C20" gate="G$1" pin="1"/>
<wire x1="383.54" y1="88.9" x2="383.54" y2="93.98" width="0.1524" layer="91"/>
<pinref part="SUPPLY14" gate="G$1" pin="15V"/>
<junction x="383.54" y="93.98"/>
</segment>
<segment>
<pinref part="U$4" gate="G$1" pin="VCC_C"/>
<wire x1="462.28" y1="76.2" x2="434.34" y2="76.2" width="0.1524" layer="91"/>
<wire x1="434.34" y1="76.2" x2="434.34" y2="88.9" width="0.1524" layer="91"/>
<pinref part="SUPPLY15" gate="G$1" pin="15V"/>
</segment>
</net>
<net name="N$20" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="VCC_R"/>
<pinref part="C22" gate="G$1" pin="1"/>
<wire x1="462.28" y1="73.66" x2="452.12" y2="73.66" width="0.1524" layer="91"/>
<pinref part="C21" gate="G$1" pin="1"/>
<wire x1="452.12" y1="73.66" x2="444.5" y2="73.66" width="0.1524" layer="91"/>
<junction x="452.12" y="73.66"/>
</segment>
</net>
<net name="N$32" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="IREF"/>
<pinref part="R19" gate="G$1" pin="1"/>
<wire x1="462.28" y1="78.74" x2="457.2" y2="78.74" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$21" class="0">
<segment>
<pinref part="SJ7" gate="G$1" pin="2"/>
<wire x1="459.74" y1="101.6" x2="459.74" y2="96.52" width="0.1524" layer="91"/>
<pinref part="U$4" gate="G$1" pin="IXS"/>
<wire x1="459.74" y1="96.52" x2="462.28" y2="96.52" width="0.1524" layer="91"/>
</segment>
</net>
<net name="OLED_SCL" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="D0/SCL"/>
<pinref part="OLED" gate="G$1" pin="7"/>
<wire x1="462.28" y1="93.98" x2="416.56" y2="93.98" width="0.1524" layer="91"/>
<label x="447.04" y="93.98" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R20" gate="A" pin="2"/>
<wire x1="510.54" y1="96.52" x2="495.3" y2="96.52" width="0.1524" layer="91"/>
<label x="495.3" y="96.52" size="1.778" layer="95"/>
</segment>
</net>
<net name="OLED_SDA" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="D1/SI"/>
<pinref part="OLED" gate="G$1" pin="6"/>
<wire x1="416.56" y1="91.44" x2="462.28" y2="91.44" width="0.1524" layer="91"/>
<label x="447.04" y="91.44" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R20" gate="B" pin="2"/>
<wire x1="495.3" y1="91.44" x2="510.54" y2="91.44" width="0.1524" layer="91"/>
<label x="495.3" y="91.44" size="1.778" layer="95"/>
</segment>
</net>
<net name="OLED_DC" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="A0"/>
<pinref part="OLED" gate="G$1" pin="5"/>
<wire x1="462.28" y1="88.9" x2="416.56" y2="88.9" width="0.1524" layer="91"/>
<label x="447.04" y="88.9" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="A" pin="QA"/>
<wire x1="513.08" y1="185.42" x2="523.24" y2="185.42" width="0.1524" layer="91"/>
<label x="523.24" y="185.42" size="1.778" layer="95"/>
</segment>
</net>
<net name="OLED_CS" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="CSB"/>
<pinref part="OLED" gate="G$1" pin="4"/>
<wire x1="416.56" y1="86.36" x2="462.28" y2="86.36" width="0.1524" layer="91"/>
<label x="447.04" y="86.36" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R20" gate="R" pin="2"/>
<wire x1="510.54" y1="86.36" x2="495.3" y2="86.36" width="0.1524" layer="91"/>
<label x="495.3" y="86.36" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="A" pin="QB"/>
<wire x1="513.08" y1="182.88" x2="523.24" y2="182.88" width="0.1524" layer="91"/>
<label x="523.24" y="182.88" size="1.778" layer="95"/>
</segment>
</net>
<net name="OLED_RST" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="RSTB"/>
<pinref part="OLED" gate="G$1" pin="3"/>
<wire x1="462.28" y1="83.82" x2="416.56" y2="83.82" width="0.1524" layer="91"/>
<label x="447.04" y="83.82" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="A" pin="QC"/>
<wire x1="513.08" y1="180.34" x2="523.24" y2="180.34" width="0.1524" layer="91"/>
<label x="523.24" y="180.34" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$36" class="0">
<segment>
<pinref part="SJ8" gate="G$1" pin="2"/>
<pinref part="M2" gate="G$1" pin="3"/>
<wire x1="449.58" y1="-20.32" x2="444.5" y2="-20.32" width="0.1524" layer="91"/>
</segment>
</net>
<net name="SERVO1_OUTPUT" class="0">
<segment>
<pinref part="U$8" gate="G$1" pin="OUTPUT"/>
<wire x1="213.36" y1="210.82" x2="218.44" y2="210.82" width="0.1524" layer="91"/>
<label x="218.44" y="210.82" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R46" gate="G$1" pin="2"/>
<wire x1="421.64" y1="10.16" x2="414.02" y2="10.16" width="0.1524" layer="91"/>
<label x="403.86" y="10.16" size="1.778" layer="95"/>
</segment>
</net>
<net name="ADC_CS" class="0">
<segment>
<pinref part="U7" gate="G$1" pin="CS"/>
<wire x1="533.4" y1="5.08" x2="538.48" y2="5.08" width="0.1524" layer="91"/>
<label x="538.48" y="5.08" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="IC1" gate="A" pin="QD"/>
<wire x1="513.08" y1="177.8" x2="523.24" y2="177.8" width="0.1524" layer="91"/>
<label x="523.24" y="177.8" size="1.778" layer="95"/>
</segment>
</net>
<net name="I2C1_SCL" class="0">
<segment>
<pinref part="R20" gate="A" pin="1"/>
<wire x1="520.7" y1="96.52" x2="525.78" y2="96.52" width="0.1524" layer="91"/>
<label x="525.78" y="96.52" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB6"/>
<wire x1="198.12" y1="73.66" x2="218.44" y2="73.66" width="0.1524" layer="91"/>
<label x="220.98" y="73.66" size="1.778" layer="95"/>
<wire x1="218.44" y1="73.66" x2="220.98" y2="73.66" width="0.1524" layer="91"/>
<wire x1="218.44" y1="73.66" x2="218.44" y2="101.6" width="0.1524" layer="91"/>
<junction x="218.44" y="73.66"/>
<pinref part="R34" gate="G$1" pin="1"/>
</segment>
<segment>
<wire x1="566.42" y1="96.52" x2="574.04" y2="96.52" width="0.1524" layer="91"/>
<pinref part="R39" gate="G$1" pin="1"/>
<wire x1="574.04" y1="96.52" x2="584.2" y2="96.52" width="0.1524" layer="91"/>
<wire x1="574.04" y1="99.06" x2="574.04" y2="96.52" width="0.1524" layer="91"/>
<junction x="574.04" y="96.52"/>
<label x="584.2" y="96.52" size="1.778" layer="95"/>
<pinref part="JP5" gate="G$1" pin="4"/>
</segment>
</net>
<net name="I2C1_SDA" class="0">
<segment>
<pinref part="R20" gate="B" pin="1"/>
<wire x1="520.7" y1="91.44" x2="525.78" y2="91.44" width="0.1524" layer="91"/>
<label x="525.78" y="91.44" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB7"/>
<wire x1="198.12" y1="76.2" x2="215.9" y2="76.2" width="0.1524" layer="91"/>
<label x="220.98" y="76.2" size="1.778" layer="95"/>
<wire x1="215.9" y1="76.2" x2="220.98" y2="76.2" width="0.1524" layer="91"/>
<wire x1="215.9" y1="76.2" x2="215.9" y2="109.22" width="0.1524" layer="91"/>
<junction x="215.9" y="76.2"/>
<pinref part="R33" gate="G$1" pin="1"/>
</segment>
<segment>
<wire x1="566.42" y1="93.98" x2="581.66" y2="93.98" width="0.1524" layer="91"/>
<pinref part="R40" gate="G$1" pin="1"/>
<wire x1="581.66" y1="93.98" x2="584.2" y2="93.98" width="0.1524" layer="91"/>
<wire x1="581.66" y1="99.06" x2="581.66" y2="93.98" width="0.1524" layer="91"/>
<junction x="581.66" y="93.98"/>
<label x="584.2" y="93.98" size="1.778" layer="95"/>
<pinref part="JP5" gate="G$1" pin="6"/>
</segment>
</net>
<net name="N$33" class="0">
<segment>
<pinref part="U7" gate="G$1" pin="AIN3"/>
<wire x1="464.82" y1="-2.54" x2="467.36" y2="-2.54" width="0.1524" layer="91"/>
<wire x1="464.82" y1="-12.7" x2="464.82" y2="-2.54" width="0.1524" layer="91"/>
<pinref part="D7" gate="G$1" pin="C1A2"/>
<pinref part="R22" gate="G$1" pin="1"/>
<pinref part="R23" gate="G$1" pin="2"/>
<wire x1="464.82" y1="-12.7" x2="464.82" y2="-22.86" width="0.1524" layer="91"/>
<junction x="464.82" y="-12.7"/>
<junction x="464.82" y="-22.86"/>
</segment>
</net>
<net name="N$30" class="0">
<segment>
<pinref part="M2" gate="G$1" pin="2"/>
<pinref part="R22" gate="G$1" pin="2"/>
<wire x1="444.5" y1="-22.86" x2="454.66" y2="-22.86" width="0.1524" layer="91"/>
</segment>
</net>
<net name="V+" class="0">
<segment>
<pinref part="JP4" gate="G$1" pin="1"/>
<wire x1="5.08" y1="154.94" x2="5.08" y2="167.64" width="0.1524" layer="91"/>
<pinref part="V+" gate="G$1" pin="1"/>
<wire x1="-5.08" y1="167.64" x2="5.08" y2="167.64" width="0.1524" layer="91"/>
<wire x1="5.08" y1="167.64" x2="15.24" y2="167.64" width="0.1524" layer="91"/>
<junction x="5.08" y="167.64"/>
<pinref part="D8" gate="G$1" pin="C"/>
<wire x1="15.24" y1="167.64" x2="20.32" y2="167.64" width="0.1524" layer="91"/>
<wire x1="20.32" y1="167.64" x2="25.4" y2="167.64" width="0.1524" layer="91"/>
<wire x1="15.24" y1="165.1" x2="15.24" y2="167.64" width="0.1524" layer="91"/>
<junction x="15.24" y="167.64"/>
<pinref part="D9" gate="G$1" pin="C"/>
<wire x1="20.32" y1="165.1" x2="20.32" y2="167.64" width="0.1524" layer="91"/>
<junction x="20.32" y="167.64"/>
<pinref part="D10" gate="G$1" pin="C"/>
<wire x1="25.4" y1="165.1" x2="25.4" y2="167.64" width="0.1524" layer="91"/>
<junction x="25.4" y="167.64"/>
<label x="53.34" y="170.18" size="1.778" layer="95"/>
<pinref part="C25" gate="G$1" pin="1"/>
<wire x1="25.4" y1="167.64" x2="40.64" y2="167.64" width="0.1524" layer="91"/>
<junction x="40.64" y="167.64"/>
<wire x1="40.64" y1="167.64" x2="55.88" y2="167.64" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R26" gate="G$1" pin="2"/>
<wire x1="121.92" y1="208.28" x2="124.46" y2="208.28" width="0.1524" layer="91"/>
<label x="124.46" y="208.28" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R27" gate="G$1" pin="2"/>
<wire x1="121.92" y1="177.8" x2="124.46" y2="177.8" width="0.1524" layer="91"/>
<label x="124.46" y="177.8" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="SERVO2" gate="G$1" pin="2"/>
<wire x1="172.72" y1="182.88" x2="200.66" y2="182.88" width="0.1524" layer="91"/>
<label x="200.66" y="182.88" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="SERVO1" gate="G$1" pin="2"/>
<wire x1="172.72" y1="231.14" x2="200.66" y2="231.14" width="0.1524" layer="91"/>
<label x="200.66" y="231.14" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R32" gate="G$1" pin="1"/>
<wire x1="10.16" y1="187.96" x2="0" y2="187.96" width="0.1524" layer="91"/>
<label x="-2.54" y="187.96" size="1.778" layer="95"/>
</segment>
</net>
<net name="V-" class="0">
<segment>
<pinref part="JP4" gate="G$1" pin="2"/>
<wire x1="2.54" y1="157.48" x2="2.54" y2="154.94" width="0.1524" layer="91"/>
<pinref part="V-" gate="G$1" pin="1"/>
<wire x1="-5.08" y1="157.48" x2="2.54" y2="157.48" width="0.1524" layer="91"/>
<junction x="2.54" y="157.48"/>
<wire x1="2.54" y1="157.48" x2="15.24" y2="157.48" width="0.1524" layer="91"/>
<pinref part="D8" gate="G$1" pin="A"/>
<wire x1="15.24" y1="157.48" x2="20.32" y2="157.48" width="0.1524" layer="91"/>
<wire x1="20.32" y1="157.48" x2="25.4" y2="157.48" width="0.1524" layer="91"/>
<wire x1="15.24" y1="160.02" x2="15.24" y2="157.48" width="0.1524" layer="91"/>
<junction x="15.24" y="157.48"/>
<pinref part="D9" gate="G$1" pin="A"/>
<wire x1="20.32" y1="160.02" x2="20.32" y2="157.48" width="0.1524" layer="91"/>
<junction x="20.32" y="157.48"/>
<pinref part="D10" gate="G$1" pin="A"/>
<wire x1="25.4" y1="160.02" x2="25.4" y2="157.48" width="0.1524" layer="91"/>
<junction x="25.4" y="157.48"/>
<label x="53.34" y="152.4" size="1.778" layer="95"/>
<pinref part="C25" gate="G$1" pin="2"/>
<wire x1="40.64" y1="160.02" x2="40.64" y2="157.48" width="0.1524" layer="91"/>
<wire x1="40.64" y1="157.48" x2="25.4" y2="157.48" width="0.1524" layer="91"/>
<wire x1="40.64" y1="157.48" x2="55.88" y2="157.48" width="0.1524" layer="91"/>
<junction x="40.64" y="157.48"/>
</segment>
<segment>
<pinref part="R28" gate="G$1" pin="1"/>
<wire x1="132.08" y1="187.96" x2="132.08" y2="185.42" width="0.1524" layer="91"/>
<label x="132.08" y="185.42" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R29" gate="G$1" pin="1"/>
<wire x1="132.08" y1="157.48" x2="132.08" y2="154.94" width="0.1524" layer="91"/>
<label x="132.08" y="154.94" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$7" gate="G$1" pin="-IN"/>
<pinref part="R31" gate="G$1" pin="2"/>
<wire x1="198.12" y1="177.8" x2="198.12" y2="180.34" width="0.1524" layer="91"/>
<wire x1="198.12" y1="180.34" x2="200.66" y2="180.34" width="0.1524" layer="91"/>
<junction x="198.12" y="180.34"/>
<label x="200.66" y="180.34" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$8" gate="G$1" pin="-IN"/>
<pinref part="R30" gate="G$1" pin="2"/>
<wire x1="198.12" y1="226.06" x2="198.12" y2="228.6" width="0.1524" layer="91"/>
<wire x1="198.12" y1="228.6" x2="200.66" y2="228.6" width="0.1524" layer="91"/>
<junction x="198.12" y="228.6"/>
<label x="200.66" y="228.6" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="D11" gate="G$1" pin="C"/>
<wire x1="33.02" y1="193.04" x2="35.56" y2="193.04" width="0.1524" layer="91"/>
<wire x1="35.56" y1="193.04" x2="35.56" y2="187.96" width="0.1524" layer="91"/>
<pinref part="D12" gate="G$1" pin="A"/>
<wire x1="33.02" y1="182.88" x2="35.56" y2="182.88" width="0.1524" layer="91"/>
<wire x1="35.56" y1="182.88" x2="35.56" y2="187.96" width="0.1524" layer="91"/>
<junction x="35.56" y="187.96"/>
<wire x1="35.56" y1="187.96" x2="40.64" y2="187.96" width="0.1524" layer="91"/>
<label x="40.64" y="187.96" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$29" class="0">
<segment>
<pinref part="U$5" gate="G$1" pin="P$1"/>
<pinref part="R24" gate="G$1" pin="1"/>
</segment>
</net>
<net name="N$34" class="0">
<segment>
<pinref part="U$6" gate="G$1" pin="P$1"/>
<pinref part="R25" gate="G$1" pin="1"/>
</segment>
</net>
<net name="S1" class="0">
<segment>
<pinref part="U$5" gate="G$1" pin="P$4"/>
<pinref part="R26" gate="G$1" pin="1"/>
<wire x1="121.92" y1="198.12" x2="137.16" y2="198.12" width="0.1524" layer="91"/>
<junction x="121.92" y="198.12"/>
<label x="137.16" y="198.12" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="SERVO1" gate="G$1" pin="3"/>
<wire x1="172.72" y1="233.68" x2="175.26" y2="233.68" width="0.1524" layer="91"/>
<label x="175.26" y="233.68" size="1.778" layer="95"/>
</segment>
</net>
<net name="S2" class="0">
<segment>
<pinref part="U$6" gate="G$1" pin="P$4"/>
<pinref part="R27" gate="G$1" pin="1"/>
<wire x1="121.92" y1="167.64" x2="137.16" y2="167.64" width="0.1524" layer="91"/>
<junction x="121.92" y="167.64"/>
<label x="137.16" y="167.64" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="SERVO2" gate="G$1" pin="3"/>
<wire x1="172.72" y1="185.42" x2="175.26" y2="185.42" width="0.1524" layer="91"/>
<label x="175.26" y="185.42" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$38" class="0">
<segment>
<pinref part="U$5" gate="G$1" pin="P$3"/>
<pinref part="R28" gate="G$1" pin="2"/>
</segment>
</net>
<net name="N$39" class="0">
<segment>
<pinref part="U$6" gate="G$1" pin="P$3"/>
<pinref part="R29" gate="G$1" pin="2"/>
</segment>
</net>
<net name="N$37" class="0">
<segment>
<pinref part="SERVO2" gate="G$1" pin="1"/>
<pinref part="R31" gate="G$1" pin="1"/>
<wire x1="172.72" y1="180.34" x2="187.96" y2="180.34" width="0.1524" layer="91"/>
<pinref part="U$7" gate="G$1" pin="+IN"/>
<wire x1="187.96" y1="177.8" x2="187.96" y2="180.34" width="0.1524" layer="91"/>
<junction x="187.96" y="180.34"/>
</segment>
</net>
<net name="SERVO2_OUTPUT" class="0">
<segment>
<pinref part="U$7" gate="G$1" pin="OUTPUT"/>
<wire x1="213.36" y1="162.56" x2="218.44" y2="162.56" width="0.1524" layer="91"/>
<label x="218.44" y="162.56" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="R43" gate="G$1" pin="2"/>
<wire x1="421.64" y1="5.08" x2="414.02" y2="5.08" width="0.1524" layer="91"/>
<label x="403.86" y="5.08" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$40" class="0">
<segment>
<pinref part="U$7" gate="G$1" pin="REF2"/>
<pinref part="SJ9" gate="G$1" pin="2"/>
<wire x1="213.36" y1="154.94" x2="243.84" y2="154.94" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$41" class="0">
<segment>
<pinref part="U$7" gate="G$1" pin="REF1"/>
<pinref part="SJ10" gate="G$1" pin="2"/>
<wire x1="213.36" y1="152.4" x2="254" y2="152.4" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$35" class="0">
<segment>
<pinref part="SERVO1" gate="G$1" pin="1"/>
<pinref part="R30" gate="G$1" pin="1"/>
<wire x1="172.72" y1="228.6" x2="187.96" y2="228.6" width="0.1524" layer="91"/>
<pinref part="U$8" gate="G$1" pin="+IN"/>
<wire x1="187.96" y1="226.06" x2="187.96" y2="228.6" width="0.1524" layer="91"/>
<junction x="187.96" y="228.6"/>
</segment>
</net>
<net name="N$42" class="0">
<segment>
<pinref part="U$8" gate="G$1" pin="REF2"/>
<pinref part="SJ11" gate="G$1" pin="2"/>
<wire x1="213.36" y1="203.2" x2="243.84" y2="203.2" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$43" class="0">
<segment>
<pinref part="U$8" gate="G$1" pin="REF1"/>
<pinref part="SJ12" gate="G$1" pin="2"/>
<wire x1="213.36" y1="200.66" x2="254" y2="200.66" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$44" class="0">
<segment>
<pinref part="R32" gate="G$1" pin="2"/>
<wire x1="20.32" y1="187.96" x2="22.86" y2="187.96" width="0.1524" layer="91"/>
<wire x1="22.86" y1="187.96" x2="22.86" y2="193.04" width="0.1524" layer="91"/>
<pinref part="D11" gate="G$1" pin="A"/>
<wire x1="22.86" y1="193.04" x2="25.4" y2="193.04" width="0.1524" layer="91"/>
<wire x1="22.86" y1="187.96" x2="22.86" y2="182.88" width="0.1524" layer="91"/>
<junction x="22.86" y="187.96"/>
<pinref part="D12" gate="G$1" pin="C"/>
<wire x1="22.86" y1="182.88" x2="25.4" y2="182.88" width="0.1524" layer="91"/>
</segment>
</net>
<net name="TIM1_CH1" class="0">
<segment>
<pinref part="U$5" gate="G$1" pin="P$2"/>
<wire x1="96.52" y1="187.96" x2="83.82" y2="187.96" width="0.1524" layer="91"/>
<label x="83.82" y="187.96" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA8"/>
<wire x1="198.12" y1="35.56" x2="203.2" y2="35.56" width="0.1524" layer="91"/>
<label x="203.2" y="35.56" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$45" class="0">
<segment>
<pinref part="SJ13" gate="G$1" pin="2"/>
<pinref part="M1" gate="G$1" pin="3"/>
<wire x1="398.78" y1="-20.32" x2="393.7" y2="-20.32" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$46" class="0">
<segment>
<pinref part="R35" gate="G$1" pin="1"/>
<pinref part="R36" gate="G$1" pin="2"/>
<wire x1="414.02" y1="-12.7" x2="414.02" y2="-22.86" width="0.1524" layer="91"/>
<junction x="414.02" y="-22.86"/>
<pinref part="D4" gate="G$1" pin="C1A2"/>
<wire x1="414.02" y1="-12.7" x2="414.02" y2="2.54" width="0.1524" layer="91"/>
<junction x="414.02" y="-12.7"/>
<pinref part="U7" gate="G$1" pin="AIN2"/>
<wire x1="414.02" y1="2.54" x2="467.36" y2="2.54" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$47" class="0">
<segment>
<pinref part="M1" gate="G$1" pin="2"/>
<pinref part="R35" gate="G$1" pin="2"/>
<wire x1="393.7" y1="-22.86" x2="403.86" y2="-22.86" width="0.1524" layer="91"/>
</segment>
</net>
<net name="TIM1_CH4" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PA11"/>
<wire x1="198.12" y1="43.18" x2="203.2" y2="43.18" width="0.1524" layer="91"/>
<label x="203.2" y="43.18" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$6" gate="G$1" pin="P$2"/>
<wire x1="96.52" y1="157.48" x2="83.82" y2="157.48" width="0.1524" layer="91"/>
<label x="83.82" y="157.48" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$48" class="0">
<segment>
<pinref part="R5" gate="G$1" pin="2"/>
<wire x1="210.82" y1="63.5" x2="213.36" y2="63.5" width="0.1524" layer="91"/>
<pinref part="SJ14" gate="G$1" pin="2"/>
</segment>
</net>
<net name="SPI2_SCK" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PB13"/>
<wire x1="198.12" y1="91.44" x2="203.2" y2="91.44" width="0.1524" layer="91"/>
<label x="203.2" y="91.44" size="1.778" layer="95"/>
</segment>
</net>
<net name="SPI2_MISO" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PB14"/>
<wire x1="203.2" y1="93.98" x2="198.12" y2="93.98" width="0.1524" layer="91"/>
<label x="203.2" y="93.98" size="1.778" layer="95"/>
</segment>
</net>
<net name="SPI2_MOSI" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PB15"/>
<wire x1="203.2" y1="96.52" x2="198.12" y2="96.52" width="0.1524" layer="91"/>
<label x="203.2" y="96.52" size="1.778" layer="95"/>
</segment>
</net>
<net name="TIM4_CH3" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PB8"/>
<wire x1="198.12" y1="78.74" x2="203.2" y2="78.74" width="0.1524" layer="91"/>
<label x="203.2" y="78.74" size="1.778" layer="95"/>
</segment>
<segment>
<wire x1="340.36" y1="160.02" x2="345.44" y2="160.02" width="0.1524" layer="91"/>
<label x="345.44" y="160.02" size="1.778" layer="95"/>
<pinref part="U8" gate="G$1" pin="B"/>
<pinref part="R38" gate="G$1" pin="1"/>
<wire x1="332.74" y1="154.94" x2="320.04" y2="154.94" width="0.1524" layer="91"/>
<wire x1="332.74" y1="172.72" x2="332.74" y2="154.94" width="0.1524" layer="91"/>
<junction x="332.74" y="154.94"/>
<wire x1="332.74" y1="154.94" x2="340.36" y2="154.94" width="0.1524" layer="91"/>
<wire x1="340.36" y1="154.94" x2="340.36" y2="160.02" width="0.1524" layer="91"/>
</segment>
</net>
<net name="TIM4_CH4" class="0">
<segment>
<pinref part="U4" gate="MCU" pin="PB9"/>
<wire x1="203.2" y1="81.28" x2="198.12" y2="81.28" width="0.1524" layer="91"/>
<label x="203.2" y="81.28" size="1.778" layer="95"/>
</segment>
<segment>
<wire x1="340.36" y1="175.26" x2="345.44" y2="175.26" width="0.1524" layer="91"/>
<label x="345.44" y="175.26" size="1.778" layer="95"/>
<pinref part="U8" gate="G$1" pin="A"/>
<wire x1="340.36" y1="170.18" x2="325.12" y2="170.18" width="0.1524" layer="91"/>
<pinref part="R37" gate="G$1" pin="1"/>
<wire x1="325.12" y1="170.18" x2="320.04" y2="170.18" width="0.1524" layer="91"/>
<wire x1="325.12" y1="172.72" x2="325.12" y2="170.18" width="0.1524" layer="91"/>
<junction x="325.12" y="170.18"/>
<wire x1="340.36" y1="170.18" x2="340.36" y2="175.26" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$55" class="0">
<segment>
<pinref part="SW1" gate="A" pin="13"/>
<wire x1="309.88" y1="215.9" x2="353.06" y2="215.9" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B5"/>
</segment>
</net>
<net name="N$56" class="0">
<segment>
<pinref part="SW1" gate="A" pin="14"/>
<wire x1="309.88" y1="213.36" x2="353.06" y2="213.36" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B6"/>
</segment>
</net>
<net name="N$57" class="0">
<segment>
<pinref part="SW1" gate="A" pin="15"/>
<wire x1="309.88" y1="210.82" x2="353.06" y2="210.82" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B7"/>
</segment>
</net>
<net name="N$58" class="0">
<segment>
<pinref part="SW1" gate="A" pin="16"/>
<wire x1="309.88" y1="208.28" x2="353.06" y2="208.28" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B8"/>
</segment>
</net>
<net name="MP_A" class="0">
<segment>
<pinref part="U$9" gate="G$1" pin="A"/>
<wire x1="284.48" y1="226.06" x2="274.32" y2="226.06" width="0.1524" layer="91"/>
<label x="274.32" y="226.06" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA12"/>
<wire x1="198.12" y1="45.72" x2="203.2" y2="45.72" width="0.1524" layer="91"/>
<label x="203.2" y="45.72" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PA15"/>
<wire x1="203.2" y1="53.34" x2="198.12" y2="53.34" width="0.1524" layer="91"/>
<label x="203.2" y="53.34" size="1.778" layer="95"/>
</segment>
</net>
<net name="MP_S0" class="0">
<segment>
<pinref part="U$9" gate="G$1" pin="S0"/>
<wire x1="284.48" y1="213.36" x2="274.32" y2="213.36" width="0.1524" layer="91"/>
<label x="274.32" y="213.36" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB3"/>
<wire x1="203.2" y1="66.04" x2="198.12" y2="66.04" width="0.1524" layer="91"/>
<label x="203.2" y="66.04" size="1.778" layer="95"/>
</segment>
</net>
<net name="MP_S1" class="0">
<segment>
<pinref part="U$9" gate="G$1" pin="S1"/>
<wire x1="274.32" y1="210.82" x2="284.48" y2="210.82" width="0.1524" layer="91"/>
<label x="274.32" y="210.82" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB4"/>
<wire x1="203.2" y1="68.58" x2="198.12" y2="68.58" width="0.1524" layer="91"/>
<label x="203.2" y="68.58" size="1.778" layer="95"/>
</segment>
</net>
<net name="MP_S2" class="0">
<segment>
<pinref part="U$9" gate="G$1" pin="S2"/>
<wire x1="284.48" y1="208.28" x2="274.32" y2="208.28" width="0.1524" layer="91"/>
<label x="274.32" y="208.28" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB5"/>
<wire x1="203.2" y1="71.12" x2="198.12" y2="71.12" width="0.1524" layer="91"/>
<label x="203.2" y="71.12" size="1.778" layer="95"/>
</segment>
</net>
<net name="433_D0" class="0">
<segment>
<pinref part="433" gate="G$1" pin="3"/>
<label x="337.82" y="233.68" size="1.778" layer="95" rot="R270"/>
<pinref part="SW1" gate="A" pin="9"/>
<wire x1="353.06" y1="226.06" x2="337.82" y2="226.06" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B1"/>
<wire x1="337.82" y1="226.06" x2="309.88" y2="226.06" width="0.1524" layer="91"/>
<wire x1="337.82" y1="241.3" x2="337.82" y2="226.06" width="0.1524" layer="91"/>
<junction x="337.82" y="226.06"/>
</segment>
</net>
<net name="433_D1" class="0">
<segment>
<pinref part="433" gate="G$1" pin="4"/>
<label x="340.36" y="233.68" size="1.778" layer="95" rot="R270"/>
<pinref part="SW1" gate="A" pin="10"/>
<wire x1="309.88" y1="223.52" x2="340.36" y2="223.52" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B2"/>
<wire x1="340.36" y1="223.52" x2="353.06" y2="223.52" width="0.1524" layer="91"/>
<wire x1="340.36" y1="241.3" x2="340.36" y2="223.52" width="0.1524" layer="91"/>
<junction x="340.36" y="223.52"/>
</segment>
</net>
<net name="433_D2" class="0">
<segment>
<pinref part="433" gate="G$1" pin="5"/>
<label x="342.9" y="233.68" size="1.778" layer="95" rot="R270"/>
<pinref part="SW1" gate="A" pin="11"/>
<wire x1="309.88" y1="220.98" x2="342.9" y2="220.98" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B3"/>
<wire x1="342.9" y1="220.98" x2="353.06" y2="220.98" width="0.1524" layer="91"/>
<wire x1="342.9" y1="241.3" x2="342.9" y2="220.98" width="0.1524" layer="91"/>
<junction x="342.9" y="220.98"/>
</segment>
</net>
<net name="433_D3" class="0">
<segment>
<pinref part="433" gate="G$1" pin="6"/>
<label x="345.44" y="233.68" size="1.778" layer="95" rot="R270"/>
<pinref part="SW1" gate="A" pin="12"/>
<wire x1="309.88" y1="218.44" x2="345.44" y2="218.44" width="0.1524" layer="91"/>
<pinref part="U$9" gate="G$1" pin="B4"/>
<wire x1="345.44" y1="218.44" x2="353.06" y2="218.44" width="0.1524" layer="91"/>
<wire x1="345.44" y1="241.3" x2="345.44" y2="218.44" width="0.1524" layer="91"/>
<junction x="345.44" y="218.44"/>
</segment>
</net>
<net name="595_RCLK" class="0">
<segment>
<pinref part="IC1" gate="A" pin="RCK"/>
<wire x1="487.68" y1="172.72" x2="477.52" y2="172.72" width="0.1524" layer="91"/>
<label x="472.44" y="172.72" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB1"/>
<wire x1="198.12" y1="60.96" x2="208.28" y2="60.96" width="0.1524" layer="91"/>
<label x="208.28" y="60.96" size="1.778" layer="95"/>
</segment>
</net>
<net name="595_SRCLK" class="0">
<segment>
<pinref part="IC1" gate="A" pin="SCK"/>
<wire x1="487.68" y1="180.34" x2="477.52" y2="180.34" width="0.1524" layer="91"/>
<label x="472.44" y="180.34" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB10"/>
<wire x1="198.12" y1="83.82" x2="208.28" y2="83.82" width="0.1524" layer="91"/>
<label x="208.28" y="83.82" size="1.778" layer="95"/>
</segment>
</net>
<net name="595_SRCLR" class="0">
<segment>
<pinref part="IC1" gate="A" pin="SCL"/>
<wire x1="487.68" y1="177.8" x2="477.52" y2="177.8" width="0.1524" layer="91"/>
<label x="472.44" y="177.8" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB11"/>
<wire x1="198.12" y1="86.36" x2="208.28" y2="86.36" width="0.1524" layer="91"/>
<label x="208.28" y="86.36" size="1.778" layer="95"/>
</segment>
</net>
<net name="595_SER" class="0">
<segment>
<pinref part="IC1" gate="A" pin="SER"/>
<wire x1="487.68" y1="185.42" x2="477.52" y2="185.42" width="0.1524" layer="91"/>
<label x="472.44" y="185.42" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB0"/>
<wire x1="198.12" y1="58.42" x2="208.28" y2="58.42" width="0.1524" layer="91"/>
<label x="208.28" y="58.42" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$49" class="0">
<segment>
<pinref part="U7" gate="G$1" pin="AIN1"/>
<pinref part="D5" gate="G$1" pin="C1A2"/>
<wire x1="467.36" y1="7.62" x2="454.66" y2="7.62" width="0.1524" layer="91"/>
<wire x1="454.66" y1="7.62" x2="431.8" y2="7.62" width="0.1524" layer="91"/>
<wire x1="431.8" y1="7.62" x2="431.8" y2="5.08" width="0.1524" layer="91"/>
<junction x="454.66" y="7.62"/>
<pinref part="R43" gate="G$1" pin="1"/>
<pinref part="R44" gate="G$1" pin="2"/>
<junction x="431.8" y="5.08"/>
</segment>
</net>
<net name="N$50" class="0">
<segment>
<pinref part="U7" gate="G$1" pin="AIN0"/>
<pinref part="D6" gate="G$1" pin="C1A2"/>
<wire x1="467.36" y1="12.7" x2="454.66" y2="12.7" width="0.1524" layer="91"/>
<pinref part="R45" gate="G$1" pin="2"/>
<pinref part="R46" gate="G$1" pin="1"/>
<wire x1="431.8" y1="10.16" x2="431.8" y2="12.7" width="0.1524" layer="91"/>
<junction x="431.8" y="10.16"/>
<wire x1="454.66" y1="12.7" x2="431.8" y2="12.7" width="0.1524" layer="91"/>
<junction x="454.66" y="12.7"/>
</segment>
</net>
<net name="N$63" class="0">
<segment>
<pinref part="S3" gate="G$1" pin="2"/>
<pinref part="R7" gate="A" pin="1"/>
<wire x1="535.94" y1="172.72" x2="533.4" y2="172.72" width="0.1524" layer="91"/>
<wire x1="533.4" y1="172.72" x2="533.4" y2="152.4" width="0.1524" layer="91"/>
</segment>
</net>
<net name="SW" class="0">
<segment>
<pinref part="S3" gate="G$1" pin="1"/>
<wire x1="523.24" y1="152.4" x2="508" y2="152.4" width="0.1524" layer="91"/>
<label x="508" y="152.4" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U4" gate="MCU" pin="PB12"/>
<wire x1="198.12" y1="88.9" x2="203.2" y2="88.9" width="0.1524" layer="91"/>
<label x="203.2" y="88.9" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$13" class="0">
<segment>
<wire x1="299.72" y1="22.86" x2="299.72" y2="20.32" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$16" class="0">
<segment>
<pinref part="IC1" gate="A" pin="QH"/>
<pinref part="R7" gate="B" pin="1"/>
<wire x1="513.08" y1="167.64" x2="535.94" y2="167.64" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$17" class="0">
<segment>
<pinref part="IC1" gate="A" pin="QG"/>
<wire x1="513.08" y1="170.18" x2="530.86" y2="170.18" width="0.1524" layer="91"/>
<wire x1="530.86" y1="170.18" x2="530.86" y2="162.56" width="0.1524" layer="91"/>
<pinref part="R7" gate="R" pin="1"/>
<wire x1="530.86" y1="162.56" x2="535.94" y2="162.56" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$19" class="0">
<segment>
<pinref part="IC1" gate="A" pin="QF"/>
<wire x1="513.08" y1="172.72" x2="528.32" y2="172.72" width="0.1524" layer="91"/>
<wire x1="528.32" y1="172.72" x2="528.32" y2="157.48" width="0.1524" layer="91"/>
<pinref part="R7" gate="D" pin="1"/>
<wire x1="528.32" y1="157.48" x2="535.94" y2="157.48" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$22" class="0">
<segment>
<pinref part="R7" gate="D" pin="2"/>
<pinref part="D15" gate="G$1" pin="C"/>
<wire x1="546.1" y1="157.48" x2="551.18" y2="157.48" width="0.1524" layer="91"/>
<wire x1="551.18" y1="157.48" x2="551.18" y2="162.56" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$23" class="0">
<segment>
<pinref part="R7" gate="R" pin="2"/>
<wire x1="546.1" y1="162.56" x2="548.64" y2="162.56" width="0.1524" layer="91"/>
<wire x1="548.64" y1="162.56" x2="548.64" y2="167.64" width="0.1524" layer="91"/>
<pinref part="D14" gate="G$1" pin="C"/>
<wire x1="548.64" y1="167.64" x2="551.18" y2="167.64" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$59" class="0">
<segment>
<pinref part="R7" gate="B" pin="2"/>
<wire x1="546.1" y1="167.64" x2="546.1" y2="170.18" width="0.1524" layer="91"/>
<wire x1="546.1" y1="170.18" x2="548.64" y2="170.18" width="0.1524" layer="91"/>
<wire x1="548.64" y1="170.18" x2="548.64" y2="172.72" width="0.1524" layer="91"/>
<pinref part="D13" gate="G$1" pin="C"/>
<wire x1="548.64" y1="172.72" x2="551.18" y2="172.72" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
</schematic>
</drawing>
<compatibility>
<note version="6.3" minversion="6.2.2" severity="warning">
Since Version 6.2.2 text objects can contain more than one line,
which will not be processed correctly with this version.
</note>
</compatibility>
</eagle>

license: MIT

license_type: permissive

branch_name: refs/heads/master

extension: sch


text:
// Copyright Information
// ==================================
// AutoLot - AutoLot.Api - CarsController.cs
// All samples copyright Philip Japikse
// http://www.skimedic.com 2022/08/09
// ==================================

namespace AutoLot.Api.Controllers;

public class CarsController : BaseCrudController<Car, CarsController>
{

    public CarsController(IAppLogging<CarsController> logger, ICarRepo repo) : base(logger,repo)
    {
    }

    /// <summary>
    /// Gets all cars by make
    /// </summary>
    /// <returns>All cars for a make</returns>
    /// <param name="id">Primary key of the make</param>
    [Produces("application/json")]
    [ProducesResponseType(StatusCodes.Status200OK)]
    [ProducesResponseType(StatusCodes.Status400BadRequest)]
    [ProducesResponseType(StatusCodes.Status401Unauthorized)]
    [SwaggerResponse(200, "The execution was successful")]
    [SwaggerResponse(400, "The request was invalid")]
    [SwaggerResponse(401, "Unauthorized access attempted")]
    [HttpGet("bymake/{id?}")]
    [ApiVersion("1.0")]
    public ActionResult<IEnumerable<Car>> GetCarsByMake(int? id)
    {
        if (id.HasValue && id.Value > 0)
        {
            return Ok(((ICarRepo)MainRepo).GetAllBy(id.Value));
        }
        return Ok(MainRepo.GetAllIgnoreQueryFilters());
    }
}

repository: skimedic/presentations

repo_name: skimedic/presentations

branch_name: refs/heads/main

gha_license_id: MIT

gha_language: C#

extension: cs


text:
package main

import (
	"fmt"

	permutations "github.com/therox/go-permutations"
)

type testStruct struct {
	ID   int
	Name string
}

type testStructSlice []testStruct

func main() {
	a := testStructSlice{
		testStruct{
			3, "Player 3",
		},
		testStruct{
			5, "Player 5",
		},
		testStruct{
			2, "Player 2",
		},
		testStruct{
			1, "Player 1",
		},
		testStruct{
			4, "Player 4",
		},
	}
	counter := 1
	permutations.NewPermutation(a)
	for {
		fmt.Println(counter, ": ", a[:4])
		counter++
		if !permutations.NextKPermutation(a, 4) {
			break
		}
	}

}

func (is testStructSlice) Len() int {
	return len(is)

}

// Less reports whether the element with
// index i should sort before the element with index j.
func (is testStructSlice) Less(i, j int) bool {
	return is[i].ID < is[j].ID

}

// Swap swaps the elements with indexes i and j.
func (is testStructSlice) Swap(i, j int) {
	is[j], is[i] = is[i], is[j]
}

repository: therox/go-permutations

repo_name: therox/go-permutations

extension: go


text:
package conf

import (
	"time"

	"github.com/goombaio/namegenerator"
	"github.com/rs/xid"
	"gopkg.in/alecthomas/kingpin.v2"
)

var (
	seed    = time.Now().UTC().UnixNano()
	NG      = namegenerator.NewNameGenerator(seed)
	App     = kingpin.New("tsak", "[ tsak.clips ] CLIPS extended programmatic data-processing tool")
	Debug   = App.Flag("debug", "Enable debug mode.").Default("false").Bool()
	Color   = App.Flag("color", "--color : Enable colors on terminal --no-color : Disable colors .").Default("true").Bool()
	ID      = App.Flag("id", "Unique application ID").Default(xid.New().String()).String()
	Name    = App.Flag("name", "Application name").Default(NG.Generate()).String()
	VBanner = App.Flag("banner", "Display [ tsak.clips ] banner .").Default("false").Bool()

	Version = App.Command("version", "Display information about [ tsak.clips ]")
	VTable  = Version.Flag("table", "Display [ tsak.clips ] inner information .").Default("true").Bool()

	Shell = App.Command("shell", "Run tsak.clips in interactive shell")
)


text:
# additional target to perform clang-format run, requires clang-format

# get all project files
file(GLOB_RECURSE SOURCE_FILES "*.cpp" "*.h" "*.hpp")
set (EXCLUDE_DIR "/build/")
foreach (TMP_PATH ${SOURCE_FILES})
    string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
    if (${EXCLUDE_DIR_FOUND} EQUAL -1)
        list (APPEND ALL_SOURCE_FILES ${TMP_PATH})
    endif ()
endforeach(TMP_PATH)

foreach (TMP_PATH ${ALL_SOURCE_FILES})
    string (FIND ${TMP_PATH} ".hpp" EXCLUDE_DIR_FOUND)
    if (${EXCLUDE_DIR_FOUND} GREATER 0)
        list (APPEND ALL_HEADER_FILES ${TMP_PATH})
    endif ()
endforeach(TMP_PATH)

add_custom_target(
        clangtidy
        COMMAND ${CLANGTIDY_EXECUTABLE}
        -checks=*,-clang-analyzer-alpha.*
        -header-filter=*.hpp
        ${ALL_SOURCE_FILES}
        ${ALL_HEADER_FILES}
)

repository: championbarca/CPPCMakeProject

repo_name: championbarca/CPPCMakeProject

extension: cmake


text:
package main

import (
  "log"
  "io/ioutil"
  "fmt"
  "bytes"
  "net/http"
  "time"
  "github.com/google/uuid"
)

func main() {
  http.HandleFunc("/", handler)

  log.Println("Listening...")
  http.ListenAndServe(":3000", nil)
}

func handler(w http.ResponseWriter, r *http.Request) {
  dat, err := ioutil.ReadFile("lock.cookie")
  if err == nil {
    fmt.Println("Found existing lock on content")
    cookie, err := r.Cookie("lock")
    if err != nil {
      fmt.Println("Did not find lock cookie on request, definitely isn't authorized")
      w.WriteHeader(http.StatusUnauthorized)
      return
    }

    comparison := bytes.Compare([]byte(cookie.Value), dat)

    if comparison != 0 {
      fmt.Println("Presented lock cookie does not match known lock")
      w.WriteHeader(http.StatusUnauthorized)
      return
    }
  } else {
    fmt.Println("Did not find existing lock cookie value, generating and setting for requester")
    expire := time.Now().AddDate(10, 0, 0)
    secret := uuid.New()
    cookie := http.Cookie{
        Name:    "lock",
        Value:   secret.String(),
        Expires: expire,
    }
    http.SetCookie(w, &cookie)
    ioutil.WriteFile("lock.cookie", []byte(secret.String()), 0644)
  }

  fmt.Println("Requester is authorized to consume")
  data, err := ioutil.ReadFile("static/content.html")
  if err != nil { fmt.Fprint(w, err) }
  http.ServeContent(w, r, "", time.Now(), bytes.NewReader(data))
}

repository: NickBorgers/One-Browser-Content-Sharer

repo_name: NickBorgers/One-Browser-Content-Sharer


text:
DESCRIPTION = "o2 theme suit for shr - it looks like om2007.2"
SECTION = "x11/data"
HOMEPAGE = "http://jmccloud.jm.funpic.de"
AUTHOR = "Jesus McCloud <bernd.pruenster@gmail.com"
RDEPENDS_${PN} = "phoneui-shr-theme-o2 elementary-theme-o2"
LICENSE = "unknown"
PR = "r2"
PACKAGE_ARCH = "all"

PV = "0.1"

ALLOW_EMPTY = "1"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD

extension: bb


text:
using System.Text;
using System.Text.Json;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Moq;
using Xunit;

namespace GSS.Authentication.CAS.AspNetCore.Tests;

public class CasSingleLogoutMiddlewareTests
{
    [Fact]
    public async Task WithoutLogoutRequest_ShouldNotRemoveTicket()
    {
        // Arrange
        var store = new Mock<ITicketStore>();
        using var host = CreateHost(store.Object);
        var server = host.GetTestServer();
        await host.StartAsync().ConfigureAwait(false);
        using var client = server.CreateClient();
        using var content = new StringContent("TEST");
        content.Headers.ContentType = null;

        // Act
        using var response = await client.PostAsync("/", content).ConfigureAwait(false);

        // Assert
        store.Verify(x => x.RemoveAsync(It.IsAny<string>()), Times.Never);
    }

    [Fact]
    public async Task WithJsonLogoutRequest_ShouldNotRemoveTicket()
    {
        // Arrange
        var store = new Mock<ITicketStore>();
        using var host = CreateHost(store.Object);
        var server = host.GetTestServer();
        await host.StartAsync().ConfigureAwait(false);
        using var client = server.CreateClient();
        using var content = new StringContent(
            JsonSerializer.Serialize(new { logoutRequest = new { ticket = Guid.NewGuid().ToString() } }),
            Encoding.UTF8,
            "application/json"
        );

        // Act
        using var response = await client.PostAsync("/", content).ConfigureAwait(false);

        // Assert
        store.Verify(x => x.RemoveAsync(It.IsAny<string>()), Times.Never);
    }

    [Fact]
    public async Task WithFormUrlEncodedLogoutRequest_ShouldRemoveTicket()
    {
        // Arrange
        var store = new Mock<ITicketStore>();
        var removedTicket = string.Empty;
        store.Setup(x => x.RemoveAsync(It.IsAny<string>()))
            .Callback<string>((x) => removedTicket = x)
            .Returns(Task.CompletedTask);
        using var host = CreateHost(store.Object);
        var server = host.GetTestServer();
        await host.StartAsync().ConfigureAwait(false);
        using var client = server.CreateClient();
        var ticket = Guid.NewGuid().ToString();
        using var content = new FormUrlEncodedContent(new Dictionary<string, string>
        {
            ["logoutRequest"] =
                $@"<samlp:LogoutRequest xmlns:samlp=""urn:oasis:names:tc:SAML:2.0:protocol"" ID=""{Guid.NewGuid()}"" Version=""2.0"" IssueInstant=""{DateTime.UtcNow:o}"">
    <saml:NameID xmlns:saml=""urn:oasis:names:tc:SAML:2.0:assertion"">@NOT_USED@</saml:NameID>
    <samlp:SessionIndex>{ticket}</samlp:SessionIndex></samlp:LogoutRequest>"
        });

        // Act
        using var response = await client.PostAsync("/", content).ConfigureAwait(false);

        // Assert
        Assert.Equal(ticket, removedTicket);
        store.Verify(x => x.RemoveAsync(ticket), Times.Once);
    }

    [Fact]
    public async Task RetrievedTicketStoreFromDI_ShouldNotThrows()
    {
        // Arrange
        var host = new HostBuilder()
            .ConfigureWebHostDefaults(builder =>
            {
                builder.ConfigureServices(services => services.AddSingleton(Mock.Of<ITicketStore>()));
                builder.Configure(app => app.UseCasSingleLogout());
            })
            .Build();

        // Act & Assert
        await host.StartAsync().ConfigureAwait(false);
    }

    private static IHost CreateHost(ITicketStore store)
    {
        return new HostBuilder()
            .ConfigureWebHostDefaults(builder =>
            {
                builder.UseTestServer();
                builder.Configure(app => app.UseCasSingleLogout(store));
            })
            .Build();
    }
}


text:
DESCRIPTION = "Playlist parser for Totem, a GTK2 based media player"
HOMEPAGE = "http://www.gnome.org/projects/totem/"
LICENSE = "LGPLv2"

PR = "r2"

DEPENDS = "gnome-doc-utils gmime eds-dbus"

inherit gnome

SRC_URI[archive.md5sum] = "81bf8e3043a9ec89bdd391c36ebd50d1"
SRC_URI[archive.sha256sum] = "403b18c1582c14effb4e2dabf339dfdbc45285204a0cf958fc250a387b6fc65c"

# Build of documentation is not yet possible:
do_configure_prepend() {
	sed -i -e 's:GOBJECT_INTROSPECTION_CHECK(\[0.6.7\]):AM_CONDITIONAL([HAVE_INTROSPECTION], [false]):g' ${S}/configure.in
	sed -i -e s:docs::g ${S}/Makefile.am
}


text:
package v1

// Endpoint: /api/v1/snippets/language/{language}
// Method: GET

import (
	"encoding/json"
	"github.com/gorilla/mux"
	"github.com/mp-hl-2021/splinter/types"
	"net/http"
)

type getSnippetsByLanguageResponse struct {
	Snippets []types.Snippet
}

func (a *Api) endpointGetSnippetsByLanguage(w http.ResponseWriter, r *http.Request) {
	params := mux.Vars(r)
	language := types.ProgrammingLanguage(params["language"])

	snippets, err := a.useCases.GetSnippetsByLanguage(language, GetCurrentUid(r))
	if err != nil {
		WriteError(w, err, http.StatusNotFound)
		return
	}

	w.WriteHeader(http.StatusOK)
	_ = json.NewEncoder(w).Encode(getSnippetsByLanguageResponse{Snippets: snippets})
}

gha_language: Go


text:
//Link :https://practice.geeksforgeeks.org/problems/merge-two-sorted-arrays5135/1

/* Given two sorted arrays arr1[] of size N and arr2[] of size M. Each array is sorted in non-decreasing order. Merge the two arrays into one sorted array in non-decreasing order without using any extra space.

Example 1:

Input:
N = 4, M = 5
arr1[] = {1, 3, 5, 7}
arr2[] = {0, 2, 6, 8, 9}
Output: 0 1 2 3 5 6 7 8 9
Explanation: Since you can't use any
extra space, modify the given arrays
to form
arr1[] = {0, 1, 2, 3}
arr2[] = {5, 6, 7, 8, 9}*/

void merge(int arr1[], int arr2[], int n, int m) {
	    // code here
	  int i=n-1,j=0;
	  for(;i>=0 &&j<m;i--,j++)
	  {
	      if(arr1[i]>=arr2[j])
	      {
	           swap(arr1[i],arr2[j]);

	      }
	      else {
	          break;
	      }
	  }
	      sort(arr1,arr1+n);
	      sort(arr2,arr2+m);

	  }

url: https://raw.githubusercontent.com/poojitha2002/The-Complete-FAANG-Preparation/7910c846252d3f1a66f92af3b7d9fb9ad1f86999/1]. DSA/3]. 450 DSA by ( Love Babbar Bhaiya )/C++/01]. Array/_12)_Merge_Without_Extra_Space.cpp

extension: cpp


text:
include ${BPN}.inc

DEFAULT_PREFERENCE = "-1"

DEPENDS += "tpm2-tss libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-mssim"

PVBASE := "${PV}"
PV = "${PVBASE}.${SRCPV}"

SRC_URI += " \
    git://github.com/01org/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN} \
    file://tpm2-abrmd_git.default \
    "

def version_git(d):
    version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
    if version is not None and "git" in version:
        return d.getVar("AUTOREV")
    else:
        return "cceb6c12ebb335aacb49207ee13d2f2fc833580a"
SRCREV ?= '${@version_git(d)}'

S = "${WORKDIR}/${BPN}"

do_configure_prepend () {
    # execute the bootstrap script
    currentdir="$(pwd)"
    cd "${S}"
    AUTORECONF=true ./bootstrap
    cd "${currentdir}"
}

do_install_append() {
    install -d "${D}${sysconfdir}/init.d"
    install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd"

    install -d "${D}${sysconfdir}/default"
    install -m 0644 "${WORKDIR}/tpm2-abrmd_git.default" "${D}${sysconfdir}/default/tpm2-abrmd"
}

RDEPENDS_${PN} += "tpm2-tss"

repository: twoerner/meta-secure-core

repo_name: twoerner/meta-secure-core


text:
SUMMARY = "A common API for Ethereum key operations with pluggable backends."
HOMEPAGE = "https://github.com/ethereum/eth-keys"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2beaef1b1764f4d6b46084c885b4bcad"

SRC_URI[sha256sum] = "7d18887483bc9b8a3fdd8e32ddcb30044b9f08fcb24a380d93b6eee3a5bb3216"

inherit pypi setuptools3

RDEPENDS:${PN} += "python3-eth-utils"

repository: openembedded/meta-openembedded

repo_name: openembedded/meta-openembedded

gha_language: BitBake


text:
using System;
using System.Messaging;
using AxMsmq.Interfaces;

namespace AxMsmq
{
    public class QueueReceiver<TContent, TTransportMessage> : IQueueReceiver<IQueueMessage<TContent>> where TContent : class where TTransportMessage : Message
    {
        private readonly MessageQueue _messageQueue;
        private readonly IQueueMessageTransformer<TContent, TTransportMessage> _transformer;

        public IQueuePath Path { get; }

        public event Action<object /*sender*/, IQueueMessage<TContent>> OnReceiveCompleted;
        public event Action<object /*sender*/, IQueueMessage<TContent>> OnPeekCompleted;

        public QueueReceiver(MessageQueue messageQueue, IQueueMessageTransformer<TContent, TTransportMessage> transformer)
        {
            _messageQueue = messageQueue;
            _transformer = transformer;
            Path = new QueuePath(messageQueue.MachineName, messageQueue.QueueName);
        }

        public IQueueMessage<TContent> Receive()
        {
            TTransportMessage transportMessage = (TTransportMessage) _messageQueue.Receive();
            return _transformer.Transform(transportMessage);
        }

        public IQueueMessage<TContent> Receive(TimeSpan timeout)
        {
            IQueueMessage<TContent> messageContent = TryGetMessage(() => (TTransportMessage) _messageQueue.Receive(timeout));
            return messageContent;
        }

        public IQueueMessage<TContent> Peek()
        {
            TTransportMessage transportMessage = (TTransportMessage) _messageQueue.Peek();
            return _transformer.Transform(transportMessage);
        }

        public IQueueMessage<TContent> Peek(TimeSpan timeout)
        {
            IQueueMessage<TContent> messageContent = TryGetMessage(() => (TTransportMessage) _messageQueue.Peek(timeout));
            return messageContent;
        }

        public void BeginReceive()
        {
            _messageQueue.ReceiveCompleted += ReceiveCompleted;
            _messageQueue.BeginReceive();
        }

        public void BeginPeek()
        {
            _messageQueue.PeekCompleted += PeekCompleted;
            _messageQueue.BeginPeek();
        }

        private void PeekCompleted(object sender, PeekCompletedEventArgs e)
        {
            MessageQueue messageQueue = (MessageQueue) sender;
            TTransportMessage transportMessage = (TTransportMessage) messageQueue.EndPeek(e.AsyncResult);
            IQueueMessage<TContent> content = _transformer.Transform(transportMessage);
            try
            {
                OnPeekCompleted?.Invoke(this, content);
            }
            finally
            {
                messageQueue.BeginPeek();
            }
        }

        private void ReceiveCompleted(object sender, ReceiveCompletedEventArgs e)
        {
            MessageQueue messageQueue = (MessageQueue) sender;
            TTransportMessage transportMessage = (TTransportMessage) messageQueue.EndReceive(e.AsyncResult);
            IQueueMessage<TContent> content = _transformer.Transform(transportMessage);
            try
            {
                OnReceiveCompleted?.Invoke(this, content);
            }
            finally
            {
                messageQueue.BeginReceive();
            }
        }

        public IQueueMessage<TContent> TryGetMessage(Func<TTransportMessage> getWithTimeout)
        {
            try
            {
                TTransportMessage transportMessage = getWithTimeout();
                return _transformer.Transform(transportMessage);
            }
            catch (MessageQueueException e)
            {
                if (e.MessageQueueErrorCode == MessageQueueErrorCode.IOTimeout)
                {
                    return default(IQueueMessage<TContent>);
                }

                throw;
            }
        }
    }
}

repository: agilitix/agilib

repo_name: agilitix/agilib


text:
import {
  CarrierApp
} from "@shipengine/connect-sdk/lib/internal";

import { Packaging } from "@shipengine/connect-sdk";

/**
 * Finds a Packaging type by its name or raises if one is not found.
 * @param {string} name - The name of the Packaging type.
 * @param {CarrierApp} app - The app that containing the Packaging type.
 */
export default function findPackagingByName(
  name: string,
  app: CarrierApp,
): Packaging {
  const packaging = app.packaging.find(
    (packaging) => packaging.name === name,
  );
  if (!packaging) {
    throw new Error(
      `connect.config.js packagingName: '${name}' does not exist`,
    );
  }

  return packaging;
}

repository: ShipEngine/connect-cli

repo_name: ShipEngine/connect-cli

gha_language: JavaScript

extension: ts