text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.3.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.25" unitdist="mm" unit="mm" style="lines" multiple="4" display="no" altdistance="0.01" altunitdist="mm" altunit="mm"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="2" name="Route2" color="1" fill="3" visible="no" active="no"/>
<layer number="3" name="Route3" color="4" fill="3" visible="no" active="no"/>
<layer number="4" name="Route4" color="1" fill="4" visible="no" active="no"/>
<layer number="5" name="Route5" color="4" fill="4" visible="no" active="no"/>
<layer number="6" name="Route6" color="1" fill="8" visible="no" active="no"/>
<layer number="7" name="Route7" color="4" fill="8" visible="no" active="no"/>
<layer number="8" name="Route8" color="1" fill="2" visible="no" active="no"/>
<layer number="9" name="Route9" color="4" fill="2" visible="no" active="no"/>
<layer number="10" name="Route10" color="1" fill="7" visible="no" active="no"/>
<layer number="11" name="Route11" color="4" fill="7" visible="no" active="no"/>
<layer number="12" name="Route12" color="1" fill="5" visible="no" active="no"/>
<layer number="13" name="Route13" color="4" fill="5" visible="no" active="no"/>
<layer number="14" name="Route14" color="1" fill="6" visible="no" active="no"/>
<layer number="15" name="Route15" color="4" fill="6" visible="no" active="no"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="yes"/>
<layer number="31" name="tCream" color="7" fill="4" visible="no" active="yes"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="yes"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="yes"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="no" active="yes"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="no" active="yes"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="no" active="yes"/>
<layer number="37" name="tTest" color="7" fill="1" visible="no" active="yes"/>
<layer number="38" name="bTest" color="7" fill="1" visible="no" active="yes"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="yes" active="yes"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="yes" active="yes"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="yes" active="yes"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="yes" active="yes"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="yes" active="yes"/>
<layer number="44" name="Drills" color="7" fill="1" visible="yes" active="yes"/>
<layer number="45" name="Holes" color="7" fill="1" visible="yes" active="yes"/>
<layer number="46" name="Milling" color="3" fill="1" visible="yes" active="yes"/>
<layer number="47" name="Measures" color="7" fill="1" visible="no" active="yes"/>
<layer number="48" name="Document" color="7" fill="1" visible="yes" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="yes" active="yes"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="no"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="53" name="tGND_GNDA" color="7" fill="9" visible="no" active="no"/>
<layer number="54" name="bGND_GNDA" color="1" fill="9" visible="no" active="no"/>
<layer number="56" name="wert" color="7" fill="1" visible="no" active="no"/>
<layer number="57" name="tCAD" color="7" fill="1" visible="no" active="no"/>
<layer number="59" name="tCarbon" color="7" fill="1" visible="no" active="no"/>
<layer number="60" name="bCarbon" color="7" fill="1" visible="no" active="no"/>
<layer number="90" name="Modules" color="5" fill="1" visible="no" active="no"/>
<layer number="91" name="Nets" color="2" fill="1" visible="no" active="no"/>
<layer number="92" name="Busses" color="1" fill="1" visible="no" active="no"/>
<layer number="93" name="Pins" color="2" fill="1" visible="no" active="no"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="no" active="no"/>
<layer number="95" name="Names" color="7" fill="1" visible="no" active="no"/>
<layer number="96" name="Values" color="7" fill="1" visible="no" active="no"/>
<layer number="97" name="Info" color="7" fill="1" visible="no" active="no"/>
<layer number="98" name="Guide" color="6" fill="1" visible="no" active="no"/>
<layer number="99" name="SpiceOrder" color="7" fill="1" visible="no" active="no"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="yes" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="yes" active="yes"/>
<layer number="103" name="tMap" color="7" fill="1" visible="yes" active="yes"/>
<layer number="104" name="Name" color="16" fill="1" visible="yes" active="yes"/>
<layer number="105" name="tPlate" color="7" fill="1" visible="yes" active="yes"/>
<layer number="106" name="bPlate" color="7" fill="1" visible="yes" active="yes"/>
<layer number="107" name="Crop" color="7" fill="1" visible="yes" active="yes"/>
<layer number="108" name="tplace-old" color="10" fill="1" visible="yes" active="yes"/>
<layer number="109" name="ref-old" color="11" fill="1" visible="yes" active="yes"/>
<layer number="110" name="fp0" color="7" fill="1" visible="yes" active="yes"/>
<layer number="111" name="LPC17xx" color="7" fill="1" visible="yes" active="yes"/>
<layer number="112" name="tSilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="113" name="IDFDebug" color="7" fill="1" visible="yes" active="yes"/>
<layer number="116" name="Patch_BOT" color="9" fill="4" visible="yes" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="123" name="tTestmark" color="7" fill="1" visible="yes" active="yes"/>
<layer number="124" name="bTestmark" color="7" fill="1" visible="yes" active="yes"/>
<layer number="125" name="_tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="126" name="_bNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="127" name="_tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="128" name="_bValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="129" name="Mask" color="7" fill="1" visible="yes" active="yes"/>
<layer number="131" name="tAdjust" color="7" fill="1" visible="yes" active="yes"/>
<layer number="132" name="bAdjust" color="7" fill="1" visible="yes" active="yes"/>
<layer number="144" name="Drill_legend" color="7" fill="1" visible="yes" active="yes"/>
<layer number="150" name="Notes" color="7" fill="1" visible="yes" active="yes"/>
<layer number="151" name="HeatSink" color="7" fill="1" visible="yes" active="yes"/>
<layer number="152" name="_bDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="153" name="FabDoc1" color="7" fill="1" visible="yes" active="yes"/>
<layer number="154" name="FabDoc2" color="7" fill="1" visible="yes" active="yes"/>
<layer number="155" name="FabDoc3" color="7" fill="1" visible="yes" active="yes"/>
<layer number="199" name="Contour" color="7" fill="1" visible="yes" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="yes" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="10" visible="yes" active="yes"/>
<layer number="202" name="202bmp" color="3" fill="10" visible="yes" active="yes"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="yes" active="yes"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="yes" active="yes"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="yes" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="yes" active="yes"/>
<layer number="207" name="207bmp" color="8" fill="10" visible="yes" active="yes"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="yes" active="yes"/>
<layer number="209" name="209bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="210" name="210bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="211" name="211bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="212" name="212bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="213" name="213bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="214" name="214bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="215" name="215bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="216" name="216bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="217" name="217bmp" color="18" fill="1" visible="no" active="no"/>
<layer number="218" name="218bmp" color="19" fill="1" visible="no" active="no"/>
<layer number="219" name="219bmp" color="20" fill="1" visible="no" active="no"/>
<layer number="220" name="220bmp" color="21" fill="1" visible="no" active="no"/>
<layer number="221" name="221bmp" color="22" fill="1" visible="no" active="no"/>
<layer number="222" name="222bmp" color="23" fill="1" visible="no" active="no"/>
<layer number="223" name="223bmp" color="24" fill="1" visible="no" active="no"/>
<layer number="224" name="224bmp" color="25" fill="1" visible="no" active="no"/>
<layer number="225" name="225bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="226" name="226bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="227" name="227bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="228" name="228bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="229" name="229bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="230" name="230bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="231" name="231bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="248" name="Housing" color="7" fill="1" visible="yes" active="yes"/>
<layer number="249" name="Edge" color="7" fill="1" visible="yes" active="yes"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="yes" active="yes"/>
<layer number="255" name="routoute" color="7" fill="1" visible="yes" active="yes"/>
</layers>
<board>
<plain>
<wire x1="0" y1="0" x2="-20.25" y2="0" width="0" layer="20"/>
<wire x1="-20.25" y1="0" x2="-20.25" y2="45.5" width="0" layer="20"/>
<wire x1="-20.25" y1="45.5" x2="0" y2="45.5" width="0" layer="20"/>
<wire x1="0" y1="45.5" x2="0" y2="0" width="0" layer="20"/>
<hole x="-2.54" y="2.54" drill="3.18"/>
<hole x="-10.92" y="2.54" drill="3.18"/>
<hole x="-10.92" y="42.04" drill="3.18"/>
<text x="6" y="23" size="1.778" layer="20">-X</text>
<text x="-11.25" y="-5.25" size="1.778" layer="20">+Z</text>
<text x="-11" y="47.75" size="1.778" layer="20">-Z</text>
<text x="-28.75" y="20.25" size="1.778" layer="20">+X</text>
<text x="-18.75" y="8.25" size="0.7" layer="21">EquiSat Radio Adapter Board V3.0
April 2016
Ryan Izant</text>
<text x="-3.25" y="8.25" size="0.7" layer="22" rot="MR0">EquiSat Radio Adapter Board V3.0
April 2016
Ryan Izant</text>
<text x="-10.75" y="5.25" size="1" layer="21">+Z</text>
<text x="-19.25" y="19.25" size="1" layer="21">+X</text>
<text x="-2.5" y="18" size="1" layer="21">-X</text>
<text x="-11.75" y="37.75" size="1" layer="22" rot="MR0">-Z</text>
<text x="-15" y="33" size="1" layer="21">-Y Side</text>
<text x="-9.75" y="33.25" size="1" layer="22" rot="MR0">+Y Side</text>
<text x="-10.5" y="38" size="1" layer="21">-Z</text>
<text x="-17.5" y="18.25" size="1" layer="22" rot="MR0">+X</text>
<text x="-10.25" y="5.25" size="1" layer="22" rot="MR0">+Z</text>
<text x="-2.25" y="12" size="1" layer="22" rot="MR0">-X</text>
<dimension x1="0" y1="0" x2="-20.25" y2="0" x3="-10.125" y3="-12.75" textsize="1" layer="20" dtype="horizontal" unit="inch"/>
<dimension x1="-20.25" y1="0" x2="-20.25" y2="45.5" x3="-34.5" y3="22.75" textsize="1" layer="20" dtype="vertical" unit="inch"/>
</plain>
<libraries>
<library name="CNTRL_BOARD">
<packages>
<package name="AVX-24-5046-630-829">
<smd name="29" x="-3.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="27" x="-3" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="25" x="-2.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="23" x="-2" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="21" x="-1.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="19" x="-1" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="17" x="-0.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="15" x="0" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="13" x="0.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="11" x="1" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="9" x="1.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="7" x="2" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="5" x="2.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="3" x="3" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="1" x="3.5" y="-2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="30" x="-3.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="28" x="-3" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="26" x="-2.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="24" x="-2" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="22" x="-1.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="20" x="-1" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="18" x="-0.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="16" x="0" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="14" x="0.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="12" x="1" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="10" x="1.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="8" x="2" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="6" x="2.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="4" x="3" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="2" x="3.5" y="2.35" dx="0.3" dy="2.1" layer="1" rot="R180"/>
<smd name="P$31" x="-5.9" y="0" dx="2.1" dy="1.6" layer="1" rot="R90"/>
<smd name="P$32" x="5.9" y="0" dx="2.1" dy="1.6" layer="1" rot="R90"/>
<wire x1="6.55" y1="-2.4" x2="6.55" y2="2.4" width="0.127" layer="21"/>
<wire x1="6.55" y1="2.4" x2="-6.55" y2="2.4" width="0.127" layer="21"/>
<wire x1="-6.55" y1="2.4" x2="-6.55" y2="-2.4" width="0.127" layer="21"/>
<wire x1="-6.55" y1="-2.4" x2="6.55" y2="-2.4" width="0.127" layer="21"/>
<circle x="5.78" y="-2" radius="0.316225" width="0.127" layer="21"/>
<text x="-3.05" y="-5.33" size="1.27" layer="21">>NAME</text>
</package>
<package name="HARWIN_DATAMATE_10_F">
<pad name="P$10" x="0" y="-2.02" drill="0.8"/>
<pad name="P$9" x="2" y="-2.02" drill="0.8"/>
<pad name="P$8" x="4" y="-2.02" drill="0.8"/>
<pad name="P$7" x="6" y="-2.02" drill="0.8"/>
<pad name="P$6" x="8" y="-2.02" drill="0.8"/>
<pad name="P$5" x="8" y="-0.02" drill="0.8"/>
<pad name="P$4" x="6" y="-0.02" drill="0.8"/>
<pad name="P$3" x="4" y="-0.02" drill="0.8"/>
<pad name="P$2" x="2" y="-0.02" drill="0.8"/>
<pad name="P$1" x="0" y="-0.02" drill="0.8"/>
<hole x="-3.5" y="-1.02" drill="2.5"/>
<hole x="11.5" y="-1.02" drill="2.5"/>
<wire x1="-6" y1="-3.77" x2="14" y2="-3.77" width="0.127" layer="21"/>
<wire x1="14" y1="-3.77" x2="14" y2="1.73" width="0.127" layer="21"/>
<wire x1="14" y1="1.73" x2="-6" y2="1.73" width="0.127" layer="21"/>
<wire x1="-6" y1="1.73" x2="-6" y2="-3.77" width="0.127" layer="21"/>
<text x="0.5" y="-5.64" size="1.27" layer="21">>NAME</text>
<text x="-1.75" y="0.02" size="0.7" layer="21">1</text>
<text x="-2" y="-2.56" size="0.7" layer="21">10</text>
<wire x1="3.175" y1="1.79" x2="3.175" y2="2.298" width="0.127" layer="21"/>
<wire x1="3.175" y1="2.298" x2="4.572" y2="2.298" width="0.127" layer="21"/>
<wire x1="4.572" y1="2.298" x2="4.572" y2="1.79" width="0.127" layer="21"/>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0" drill="0">
</class>
</classes>
<designrules name="default">
<description language="de">EAGLE Design Rules

Die Standard-Design-Rules sind so gewählt, dass sie für
die meisten Anwendungen passen. Sollte ihre Platine
besondere Anforderungen haben, treffen Sie die erforderlichen
Einstellungen hier und speichern die Design Rules unter
einem neuen Namen ab.</description>
<description language="en">EAGLE Design Rules

The default Design Rules have been set to cover
a wide range of applications. Your particular design
may have different requirements, so please make the
necessary adjustments and save your customized
design rules under a new name.</description>
<param name="layerSetup" value="(1*16)"/>
<param name="mtCopper" value="0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm 0.035mm"/>
<param name="mtIsolate" value="1.5mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm 0.15mm 0.2mm"/>
<param name="mdWireWire" value="8mil"/>
<param name="mdWirePad" value="8mil"/>
<param name="mdWireVia" value="8mil"/>
<param name="mdPadPad" value="8mil"/>
<param name="mdPadVia" value="8mil"/>
<param name="mdViaVia" value="8mil"/>
<param name="mdSmdPad" value="8mil"/>
<param name="mdSmdVia" value="8mil"/>
<param name="mdSmdSmd" value="8mil"/>
<param name="mdViaViaSameLayer" value="8mil"/>
<param name="mnLayersViaInSmd" value="2"/>
<param name="mdCopperDimension" value="40mil"/>
<param name="mdDrill" value="8mil"/>
<param name="mdSmdStop" value="0mil"/>
<param name="msWidth" value="10mil"/>
<param name="msDrill" value="24mil"/>
<param name="msMicroVia" value="9.99mm"/>
<param name="msBlindViaRatio" value="0.5"/>
<param name="rvPadTop" value="0.25"/>
<param name="rvPadInner" value="0.25"/>
<param name="rvPadBottom" value="0.25"/>
<param name="rvViaOuter" value="0.25"/>
<param name="rvViaInner" value="0.25"/>
<param name="rvMicroViaOuter" value="0.25"/>
<param name="rvMicroViaInner" value="0.25"/>
<param name="rlMinPadTop" value="10mil"/>
<param name="rlMaxPadTop" value="20mil"/>
<param name="rlMinPadInner" value="10mil"/>
<param name="rlMaxPadInner" value="20mil"/>
<param name="rlMinPadBottom" value="10mil"/>
<param name="rlMaxPadBottom" value="20mil"/>
<param name="rlMinViaOuter" value="8mil"/>
<param name="rlMaxViaOuter" value="20mil"/>
<param name="rlMinViaInner" value="8mil"/>
<param name="rlMaxViaInner" value="20mil"/>
<param name="rlMinMicroViaOuter" value="4mil"/>
<param name="rlMaxMicroViaOuter" value="20mil"/>
<param name="rlMinMicroViaInner" value="4mil"/>
<param name="rlMaxMicroViaInner" value="20mil"/>
<param name="psTop" value="-1"/>
<param name="psBottom" value="-1"/>
<param name="psFirst" value="-1"/>
<param name="psElongationLong" value="100"/>
<param name="psElongationOffset" value="100"/>
<param name="mvStopFrame" value="1"/>
<param name="mvCreamFrame" value="0"/>
<param name="mlMinStopFrame" value="4mil"/>
<param name="mlMaxStopFrame" value="4mil"/>
<param name="mlMinCreamFrame" value="0mil"/>
<param name="mlMaxCreamFrame" value="0mil"/>
<param name="mlViaStopLimit" value="0mil"/>
<param name="srRoundness" value="0"/>
<param name="srMinRoundness" value="0mil"/>
<param name="srMaxRoundness" value="0mil"/>
<param name="slThermalIsolate" value="10mil"/>
<param name="slThermalsForVias" value="0"/>
<param name="dpMaxLengthDifference" value="10mm"/>
<param name="dpGapFactor" value="2.5"/>
<param name="checkGrid" value="0"/>
<param name="checkAngle" value="0"/>
<param name="checkFont" value="1"/>
<param name="checkRestrict" value="1"/>
<param name="useDiameter" value="13"/>
<param name="maxErrors" value="50"/>
</designrules>
<autorouter>
<pass name="Default">
<param name="RoutingGrid" value="50mil"/>
<param name="AutoGrid" value="1"/>
<param name="Efforts" value="0"/>
<param name="TopRouterVariant" value="1"/>
<param name="tpViaShape" value="round"/>
<param name="PrefDir.1" value="a"/>
<param name="PrefDir.2" value="0"/>
<param name="PrefDir.3" value="0"/>
<param name="PrefDir.4" value="0"/>
<param name="PrefDir.5" value="0"/>
<param name="PrefDir.6" value="0"/>
<param name="PrefDir.7" value="0"/>
<param name="PrefDir.8" value="0"/>
<param name="PrefDir.9" value="0"/>
<param name="PrefDir.10" value="0"/>
<param name="PrefDir.11" value="0"/>
<param name="PrefDir.12" value="0"/>
<param name="PrefDir.13" value="0"/>
<param name="PrefDir.14" value="0"/>
<param name="PrefDir.15" value="0"/>
<param name="PrefDir.16" value="a"/>
<param name="cfVia" value="8"/>
<param name="cfNonPref" value="5"/>
<param name="cfChangeDir" value="2"/>
<param name="cfOrthStep" value="2"/>
<param name="cfDiagStep" value="3"/>
<param name="cfExtdStep" value="0"/>
<param name="cfBonusStep" value="1"/>
<param name="cfMalusStep" value="1"/>
<param name="cfPadImpact" value="4"/>
<param name="cfSmdImpact" value="4"/>
<param name="cfBusImpact" value="0"/>
<param name="cfHugging" value="3"/>
<param name="cfAvoid" value="4"/>
<param name="cfPolygon" value="10"/>
<param name="cfBase.1" value="0"/>
<param name="cfBase.2" value="1"/>
<param name="cfBase.3" value="1"/>
<param name="cfBase.4" value="1"/>
<param name="cfBase.5" value="1"/>
<param name="cfBase.6" value="1"/>
<param name="cfBase.7" value="1"/>
<param name="cfBase.8" value="1"/>
<param name="cfBase.9" value="1"/>
<param name="cfBase.10" value="1"/>
<param name="cfBase.11" value="1"/>
<param name="cfBase.12" value="1"/>
<param name="cfBase.13" value="1"/>
<param name="cfBase.14" value="1"/>
<param name="cfBase.15" value="1"/>
<param name="cfBase.16" value="0"/>
<param name="mnVias" value="20"/>
<param name="mnSegments" value="9999"/>
<param name="mnExtdSteps" value="9999"/>
<param name="mnRipupLevel" value="10"/>
<param name="mnRipupSteps" value="100"/>
<param name="mnRipupTotal" value="100"/>
</pass>
<pass name="Follow-me" refer="Default" active="yes">
</pass>
<pass name="Busses" refer="Default" active="yes">
<param name="cfNonPref" value="4"/>
<param name="cfBusImpact" value="4"/>
<param name="cfHugging" value="0"/>
<param name="mnVias" value="0"/>
</pass>
<pass name="Route" refer="Default" active="yes">
</pass>
<pass name="Optimize1" refer="Default" active="yes">
<param name="cfVia" value="99"/>
<param name="cfExtdStep" value="10"/>
<param name="cfHugging" value="1"/>
<param name="mnExtdSteps" value="1"/>
<param name="mnRipupLevel" value="0"/>
</pass>
<pass name="Optimize2" refer="Optimize1" active="yes">
<param name="cfNonPref" value="0"/>
<param name="cfChangeDir" value="6"/>
<param name="cfExtdStep" value="0"/>
<param name="cfBonusStep" value="2"/>
<param name="cfMalusStep" value="2"/>
<param name="cfPadImpact" value="2"/>
<param name="cfSmdImpact" value="2"/>
<param name="cfHugging" value="0"/>
</pass>
<pass name="Optimize3" refer="Optimize2" active="yes">
<param name="cfChangeDir" value="8"/>
<param name="cfPadImpact" value="0"/>
<param name="cfSmdImpact" value="0"/>
</pass>
<pass name="Optimize4" refer="Optimize3" active="yes">
<param name="cfChangeDir" value="25"/>
</pass>
</autorouter>
<elements>
<element name="AVX" library="CNTRL_BOARD" package="AVX-24-5046-630-829" value="AVX-24-5046-030-630-829" x="-10.92" y="22.29" smashed="yes" rot="R90">
<attribute name="NAME" x="-15.34" y="22.74" size="1.27" layer="21" rot="R90"/>
</element>
<element name="CNTRLCONN" library="CNTRL_BOARD" package="HARWIN_DATAMATE_10_F" value="HARWIN_10_F" x="-2.8552" y="19.841" rot="MR90"/>
</elements>
<signals>
<signal name="P12">
<contactref element="AVX" pad="12"/>
<contactref element="CNTRLCONN" pad="P$3"/>
<wire x1="-18.5" y1="23" x2="-18.25" y2="23.25" width="0.3" layer="1"/>
<wire x1="-18.25" y1="23.25" x2="-18.2" y2="23.25" width="0.3" layer="1"/>
<wire x1="-18.2" y1="23.25" x2="-18.16" y2="23.29" width="0.3" layer="1"/>
<wire x1="-18.16" y1="23.29" x2="-13.27" y2="23.29" width="0.3" layer="1"/>
<wire x1="-2.8752" y1="23.841" x2="-2.78" y2="23.78" width="0.3" layer="1"/>
<wire x1="-2.78" y1="23.78" x2="-1.25" y2="21.5" width="0.3" layer="1"/>
<wire x1="-1.25" y1="21.5" x2="-1.25" y2="13.75" width="0.3" layer="1"/>
<wire x1="-18.5" y1="14.75" x2="-18.5" y2="23" width="0.3" layer="1"/>
<wire x1="-18.5" y1="14.75" x2="-16.5" y2="12.75" width="0.3048" layer="1"/>
<wire x1="-16.5" y1="12.75" x2="-11" y2="12.75" width="0.3048" layer="1"/>
<via x="-11" y="12.75" extent="1-16" drill="0.6"/>
<wire x1="-11" y1="12.75" x2="-3" y2="12.75" width="0.3048" layer="16"/>
<via x="-3" y="12.75" extent="1-16" drill="0.6"/>
<wire x1="-3" y1="12.75" x2="-2.25" y2="12.75" width="0.3048" layer="1"/>
<wire x1="-2.25" y1="12.75" x2="-1.25" y2="13.75" width="0.3048" layer="1"/>
</signal>
<signal name="P14">
<contactref element="AVX" pad="14"/>
<contactref element="CNTRLCONN" pad="P$4"/>
<wire x1="-2.8752" y1="25.841" x2="-3.86" y2="25.29" width="0.3" layer="16"/>
<wire x1="-3.86" y1="25.29" x2="-3.87" y2="24.47" width="0.3" layer="16"/>
<wire x1="-3.87" y1="24.47" x2="-3.87" y2="22.83" width="0.3" layer="16"/>
<wire x1="-3.87" y1="22.83" x2="-16.36" y2="22.83" width="0.3" layer="16"/>
<wire x1="-16.36" y1="22.83" x2="-17.25" y2="21.75" width="0.3" layer="16"/>
<via x="-17.25" y="21.75" extent="1-16" drill="0.6"/>
<wire x1="-17.25" y1="21.75" x2="-16.21" y2="22.79" width="0.3" layer="1"/>
<wire x1="-16.21" y1="22.79" x2="-13.27" y2="22.79" width="0.3" layer="1"/>
</signal>
<signal name="P29">
<contactref element="AVX" pad="29"/>
<contactref element="CNTRLCONN" pad="P$5"/>
<wire x1="-2.8752" y1="27.841" x2="-2.091" y2="27.841" width="0.3" layer="16"/>
<wire x1="-2.091" y1="27.841" x2="-1.75" y2="27.75" width="0.3" layer="16"/>
<wire x1="-1.75" y1="27.75" x2="-1.75" y2="19.25" width="0.3" layer="16"/>
<wire x1="-1.75" y1="19.25" x2="-2.75" y2="18.53" width="0.3" layer="16"/>
<wire x1="-2.75" y1="18.53" x2="-6.25" y2="18.53" width="0.3" layer="16"/>
<wire x1="-6.25" y1="18.53" x2="-7.16" y2="18.52" width="0.3" layer="16"/>
<wire x1="-7.16" y1="18.52" x2="-8" y2="17.75" width="0.3" layer="16"/>
<via x="-8" y="17.75" extent="1-16" drill="0.6"/>
<wire x1="-8" y1="17.75" x2="-8" y2="18.24" width="0.3" layer="1"/>
<wire x1="-8" y1="18.24" x2="-8.57" y2="18.79" width="0.3" layer="1"/>
</signal>
<signal name="P2">
<contactref element="AVX" pad="2"/>
<contactref element="CNTRLCONN" pad="P$6"/>
<wire x1="-13.27" y1="25.79" x2="-15.96" y2="25.79" width="0.3" layer="1"/>
<wire x1="-15.96" y1="25.79" x2="-16" y2="25.75" width="0.3" layer="1"/>
<wire x1="-16" y1="25.75" x2="-16" y2="29" width="0.3" layer="1"/>
<wire x1="-16" y1="29" x2="-14.5" y2="30.5" width="0.3" layer="1"/>
<wire x1="-14.5" y1="30.5" x2="-8.939" y2="30.5" width="0.3" layer="1"/>
<wire x1="-8.939" y1="30.5" x2="-4.8752" y2="27.841" width="0.3" layer="1"/>
</signal>
<signal name="P3">
<contactref element="AVX" pad="3"/>
<contactref element="CNTRLCONN" pad="P$7"/>
<wire x1="-8.57" y1="25.29" x2="-6.831" y2="25.29" width="0.3" layer="1"/>
<wire x1="-6.831" y1="25.29" x2="-4.8752" y2="25.841" width="0.3" layer="1"/>
</signal>
<signal name="P4">
<contactref element="AVX" pad="4"/>
<contactref element="CNTRLCONN" pad="P$8"/>
<wire x1="-4.8752" y1="23.841" x2="-16.611" y2="23.841" width="0.3" layer="16"/>
<wire x1="-16.611" y1="23.841" x2="-18.09" y2="25.32" width="0.3" layer="16"/>
<via x="-18.09" y="25.32" extent="1-16" drill="0.6"/>
<wire x1="-18.09" y1="25.32" x2="-13.28" y2="25.32" width="0.3" layer="1"/>
<wire x1="-13.28" y1="25.32" x2="-13.27" y2="25.29" width="0.3" layer="1"/>
</signal>
<signal name="GND">
<contactref element="AVX" pad="1"/>
<contactref element="AVX" pad="19"/>
<contactref element="AVX" pad="20"/>
<contactref element="AVX" pad="21"/>
<contactref element="AVX" pad="22"/>
<contactref element="AVX" pad="30"/>
<contactref element="AVX" pad="5"/>
<contactref element="AVX" pad="7"/>
<contactref element="AVX" pad="9"/>
<contactref element="CNTRLCONN" pad="P$2"/>
<contactref element="CNTRLCONN" pad="P$9"/>
<polygon width="0.4064" layer="1" thermals="no">
<vertex x="-23.5" y="49"/>
<vertex x="3.5" y="48.5"/>
<vertex x="4" y="-1.75"/>
<vertex x="-23" y="-1.25"/>
</polygon>
</signal>
<signal name="3V6">
<contactref element="AVX" pad="27"/>
<contactref element="AVX" pad="26"/>
<contactref element="AVX" pad="25"/>
<contactref element="AVX" pad="24"/>
<contactref element="AVX" pad="23"/>
<contactref element="AVX" pad="28"/>
<contactref element="AVX" pad="18"/>
<contactref element="CNTRLCONN" pad="P$1"/>
<contactref element="CNTRLCONN" pad="P$10"/>
<polygon width="0.4064" layer="16">
<vertex x="-22.75" y="32.5"/>
<vertex x="4" y="32.5"/>
<vertex x="3.75" y="-1.25"/>
<vertex x="-23.25" y="-1.25"/>
</polygon>
<via x="-15.25" y="21" extent="1-16" drill="0.6"/>
<via x="-15.25" y="19.75" extent="1-16" drill="0.6"/>
<via x="-15.25" y="18.5" extent="1-16" drill="0.6"/>
<wire x1="-13.27" y1="19.29" x2="-15.25" y2="19.29" width="0.4064" layer="1"/>
<wire x1="-15.25" y1="19.29" x2="-15.25" y2="18.5" width="0.4064" layer="1"/>
<wire x1="-13.27" y1="19.79" x2="-15.25" y2="19.79" width="0.76" layer="1"/>
<wire x1="-15.25" y1="19.79" x2="-15.25" y2="19.75" width="0.76" layer="1"/>
<wire x1="-13.27" y1="20.29" x2="-15.25" y2="20.29" width="0.41" layer="1"/>
<wire x1="-15.25" y1="20.29" x2="-15.25" y2="21" width="0.41" layer="1"/>
<wire x1="-13.27" y1="21.79" x2="-15.25" y2="21.79" width="0.41" layer="1"/>
<wire x1="-15.25" y1="21.79" x2="-15.25" y2="21" width="0.41" layer="1"/>
<wire x1="-4.8752" y1="19.841" x2="-8.55" y2="19.841" width="0.76" layer="1"/>
<wire x1="-8.55" y1="19.841" x2="-8.57" y2="19.79" width="0.76" layer="1"/>
<wire x1="-8.57" y1="20.29" x2="-8.55" y2="19.841" width="0.41" layer="1"/>
<wire x1="-8.57" y1="19.29" x2="-6.28" y2="19.29" width="0.41" layer="1"/>
<wire x1="-6.28" y1="19.29" x2="-4.8752" y2="19.841" width="0.41" layer="1"/>
<wire x1="-2.8752" y1="19.841" x2="-5" y2="19.841" width="0.8128" layer="1"/>
<wire x1="-5" y1="19.841" x2="-5" y2="19.75" width="0.8128" layer="1"/>
</signal>
<signal name="N$1">
<wire x1="0" y1="0" x2="-20.25" y2="0" width="0.25" layer="1"/>
<wire x1="-20.25" y1="0" x2="-20.25" y2="45.5" width="0.25" layer="1"/>
<wire x1="-20.25" y1="45.5" x2="0" y2="45.5" width="0.25" layer="1"/>
<wire x1="0" y1="45.5" x2="0" y2="0" width="0.25" layer="1"/>
</signal>
</signals>
</board>
</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>

repository: BrownSpaceEngineering/EquiSat-EAGLE

repo_name: BrownSpaceEngineering/EquiSat-EAGLE

extension: brd


text:
package main

import (
	"flag"
	"fmt"
	"net"
	"os"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/endpoints"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/ses"
	"github.com/chrj/smtpd"
	log "github.com/sirupsen/logrus"
)

var (
	bind   = flag.String("bind", "127.0.0.1:1025", "bind address")
	region = flag.String("region", endpoints.EuWest1RegionID, "aws region")
)

func main() {
	flag.Parse()

	ln, err := net.Listen("tcp", *bind)
	if err != nil {
		log.Fatalln(err)
	}
	hostname, err := os.Hostname()
	if err != nil {
		log.Fatalln(err)
	}

	server := &smtpd.Server{
		WelcomeMessage: fmt.Sprintf("%s ESMTP ready", hostname),
		Handler:        handler,
	}

	log.Printf("Listening on %s ..\n", ln.Addr())
	log.Fatalln(server.Serve(ln))
}

func handler(peer smtpd.Peer, env smtpd.Envelope) error {
	config := &aws.Config{
		Region: aws.String(*region),
	}

	svc := ses.New(session.Must(session.NewSession(config)))

	_, err := svc.SendRawEmail(&ses.SendRawEmailInput{
		RawMessage: &ses.RawMessage{
			Data: env.Data,
		},
	})

	if err != nil {
		log.Errorln(err)
		return err
	}

	return nil
}

license: MIT

repository: karnauskas/sesmtpd

license_type: permissive

repo_name: karnauskas/sesmtpd

branch_name: refs/heads/master

gha_license_id: MIT

gha_language: Go

extension: go


text:
package main

import (
	"bytes"
	"log"
	"testing"
	"time"

	"github.com/aarondwi/antri/ds"
)

func TestWriteReadMessageToLog(t *testing.T) {
	now := time.Now().Unix()
	buf := new(bytes.Buffer)

	src := &ds.PqItem{
		ScheduledAt: now,
		Key:         "ありがとう ございます",
		Value:       []byte("ど いたしまして"),
		Retries:     7}

	err := WriteNewMessageToLog(buf, src)
	if err != nil {
		log.Fatalf("write new message should be successful, but got error %v", err)
	}
	err = WriteRetriesOccurenceToLog(buf, src)
	if err != nil {
		log.Fatalf("write retry occurence should be successful, but got error %v", err)
	}
	err = WriteCommitMessageToLog(buf, []byte(src.Key))
	if err != nil {
		log.Fatalf("write commit message should be successful, but got error %v", err)
	}

	// re-read the NEW message
	dst, err := ReadLog(buf)
	if err != nil {
		log.Fatalf("reading NEW message should return `true`, but it is not")
	}
	if src.ScheduledAt != dst.item.ScheduledAt ||
		src.Key != dst.item.Key ||
		!bytes.Equal(src.Value, dst.item.Value) ||
		src.Retries != dst.item.Retries {
		log.Fatalf("Corrupted NEW message, expected %v, got %v", src, dst.item)
	}

	// re-read the RETRY message
	dst, err = ReadLog(buf)
	if err != nil {
		log.Fatalf("reading RETRY message should return `true`, but it is not")
	}
	if dst.item.Key != src.Key ||
		dst.item.ScheduledAt != src.ScheduledAt {
		log.Fatalf("Corrupted RETRY message, expected %s and %d, got %s and %d", src.Key, src.ScheduledAt, dst.item.Key, dst.item.ScheduledAt)
	}

	// re-read the COMMIT message
	dst, err = ReadLog(buf)
	if err != nil {
		log.Fatalf("reading COMMIT message should return `true`, but it is not")
	}
	if dst.item.Key != src.Key {
		log.Fatalf("Corrupted COMMIT message, expected %s, got %s", src.Key, dst.item.Key)
	}
}

func TestReadLogMultipleSuccess(t *testing.T) {
	now := time.Now().Unix()
	buf := new(bytes.Buffer)

	items := []*ds.PqItem{}
	items = append(items, &ds.PqItem{
		ScheduledAt: now,
		Key:         "abc",
		Value:       []byte("ABC"),
		Retries:     0})
	items = append(items, &ds.PqItem{
		ScheduledAt: now,
		Key:         "def",
		Value:       []byte("DEF"),
		Retries:     0})
	items = append(items, &ds.PqItem{
		ScheduledAt: now,
		Key:         "ghi",
		Value:       []byte("GHI"),
		Retries:     0})
	WriteNewMessageToLog(buf, items[0])
	WriteNewMessageToLog(buf, items[1])
	WriteNewMessageToLog(buf, items[2])
	WriteRetriesOccurenceToLog(buf, items[2])
	WriteRetriesOccurenceToLog(buf, items[0])
	WriteCommitMessageToLog(buf, []byte(items[1].Key))

	itemPlaceholder := []*ds.PqItem{}
	itemPlaceholder, err := ReadLogMultiple(buf, itemPlaceholder)
	if err != nil {
		log.Fatal(err)
	}
	if len(itemPlaceholder) != 2 {
		log.Fatalf("should be 2, because 1 is committed, but got %d", len(itemPlaceholder))
	}
	if itemPlaceholder[0].Key != "abc" || itemPlaceholder[0].Retries != 1 {
		log.Fatalf("Corrupted positioning, got %v", itemPlaceholder[0])
	}
}

func TestReadLogMultipleFailed(t *testing.T) {
	now := time.Now().Unix()
	item := &ds.PqItem{
		ScheduledAt: now,
		Key:         "abc",
		Value:       []byte("ABC"),
		Retries:     0}

	itemPlaceholder := []*ds.PqItem{}
	// RETRY path
	buf := new(bytes.Buffer)
	WriteRetriesOccurenceToLog(buf, item)
	_, err := ReadLogMultiple(buf, itemPlaceholder)
	if err == nil {
		log.Fatalf("should be error, because RETRY without NEW message")
	}

	// COMMIT PATH
	buf = new(bytes.Buffer)
	WriteCommitMessageToLog(buf, []byte(item.Key))
	_, err = ReadLogMultiple(buf, itemPlaceholder)
	if err == nil {
		log.Fatalf("should be error, because COMMIT without NEW message")
	}

	// UNKNOWN CODE
	ErrBuffer := make([]byte, 1)
	ErrBuffer[0] = 10
	buf = new(bytes.Buffer)
	_, _ = buf.Write(ErrBuffer)
	_, err = ReadLogMultiple(buf, itemPlaceholder)
	if err == nil {
		log.Fatalf("should be error, because UNKNOWN code")
	}
}

func TestReadSnapshotContents(t *testing.T) {
	now := time.Now().Unix()
	item := &ds.PqItem{
		ScheduledAt: now,
		Key:         "abc",
		Value:       []byte("ABC"),
		Retries:     0}

	buf := new(bytes.Buffer)
	WriteNewMessageToLog(buf, item)
	result, err := ReadSnapshotContents(buf)
	if err != nil {
		log.Fatal(err)
	}
	if result[0].Key != "abc" {
		log.Fatalf("wrong keys found, got %v", result[0])
	}

	buf = new(bytes.Buffer)
	WriteRetriesOccurenceToLog(buf, item)
	result, err = ReadSnapshotContents(buf)
	if err == nil {
		log.Fatal("should error because snapshot may only content NEW msgType")
	}
}

repository: aarondwi/antri

repo_name: aarondwi/antri


text:
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace RogueEssence.Dev.Views
{
    public class GroundTabTextures : UserControl
    {
        public GroundTabTextures()
        {
            this.InitializeComponent();
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }
    }
}

repository: AntyMew/RogueEssence

repo_name: AntyMew/RogueEssence

extension: cs


text:
package main

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

var _ = Describe("Parse Cloudformation parameters", func() {

	Context("with normal input", func() {

		It("returns empty map when input is missing", func() {
			p := parseParameters("")
			Expect(p).To(BeEmpty())
		})

		It("returns expected values when input is correct", func() {
			p := parseParameters("ParameterKey=KeyPairName,ParameterValue=MyKey ParameterKey=InstanceType,ParameterValue=t1.micro")
			Expect(p).To(HaveLen(2))
			Expect(p).To(HaveKeyWithValue("KeyPairName", "MyKey"))
			Expect(p).To(HaveKeyWithValue("InstanceType", "t1.micro"))
		})

		It("returns partial values when input is malformed", func() {
			p := parseParameters("ParameterKey=KeyPairName,ParameterValue=MyKey Para")
			Expect(p).To(HaveLen(1))
			Expect(p).To(HaveKeyWithValue("KeyPairName", "MyKey"))
		})
	})

	Context("with escaped input", func() {

		It("returns expected values when keys or values are quoted", func() {
			p := parseParameters(`ParameterKey="KeyPairName",ParameterValue="MyKey " ParameterKey=InstanceType,ParameterValue=t1\ mic\ ro`)
			Expect(p).To(HaveLen(2))
			Expect(p).To(HaveKeyWithValue("KeyPairName", "MyKey "))
			Expect(p).To(HaveKeyWithValue("InstanceType", "t1 mic ro"))
		})

		It("handles wrong quotings", func() {
			p := parseParameters(`ParameterKey="KeyPairName,ParameterValue="MyKey" ParameterKey=InstanceType,ParameterValue=t1\ micro`)
			Expect(p).To(HaveLen(1))
			Expect(p).To(HaveKeyWithValue("InstanceType", "t1 micro"))
		})

	})
})

repository: emilva/aws-sam-local

repo_name: emilva/aws-sam-local

branch_name: refs/heads/develop


text:
#pragma once

#include <bgfx/bgfx.h>

class Scene;

class LightShader
{
public:
    void initialize();
    void shutdown();

    void bindLights(const Scene* scene) const;

private:
    bgfx::UniformHandle lightCountVecUniform = BGFX_INVALID_HANDLE;
    bgfx::UniformHandle ambientLightIrradianceUniform = BGFX_INVALID_HANDLE;
};

repository: pezcode/Cluster

repo_name: pezcode/Cluster

extension: h


text:
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <control/Facade.hpp>
#include <view/BooleanDialog.hpp>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_m_or_btn_clicked();
    void on_m_concat_btn_clicked();
    void on_m_and_btn_clicked();
    void on_m_diff_btn_clicked();

    void on_m_contains_btn_clicked();

    void on_m_equality_btn_clicked();

    void on_m_swap_clicked();

    void on_actionLimpar_tudo_triggered();

signals:
    void new_automaton(unsigned machine, dfa_type automaton);
    void new_automaton(unsigned machine, ndfa_type automaton);
    void clean_up();

private:
    Ui::MainWindow *ui;
    Facade * m_facade;
};

#endif // MAINWINDOW_H

extension: hpp


text:
package enigmamachine

import "fmt"

// ReflectorSpec describes the configuration of a reflector. It is a string
// containing 13 pairs of letters (optionally space separated) that the
// reflector will swap. Example:
//
//  "AE BJ CM DZ FL GY HX IV KW NR OQ PU ST"
type ReflectorSpec string

// Reflector represents the reflector component of the EnigmaMachine (German:
// Umkehrwalze, meaning 'reversal rotor'). This is the innermost component
// which swaps configured pairs of letters.
type Reflector struct {
	substitutor
}

// NewReflector constructs a new reflector that will swap letters as described
// by the given ReflectorSpec.
func NewReflector(mapping ReflectorSpec) (r Reflector, err error) {
	r = Reflector{}
	r.substitutor, err = newSwappingSubstitutor(string(mapping))
	if err == nil && len(r.substitutor) != 26 {
		err = fmt.Errorf("incomplete mapping (length: %d)", len(r.substitutor))
	}
	return r, err
}

// TranslateLetter performs a substitution of the given letter.
func (r Reflector) TranslateLetter(input rune) rune {
	return r.substitute(input)
}

repository: alext/enigmamachine

repo_name: alext/enigmamachine


text:
package auditlog

import (
	"encoding/json"
	"fmt"
	"net/http"

	"go.skia.org/infra/go/sklog"
)

type auditLog struct {
	Type   string      `json:"type"`
	Action string      `json:"action"`
	User   string      `json:"user"`
	Body   interface{} `json:"body"`
}

// LogWithUser is used to create structured logs for auditable actions.
//
// This is only intended to be used on GKE, since by default GKE is
// configured to handle structured logs emitted on stdout and stderr.
//
// See: https://cloud.google.com/logging/docs/structured-logging
//
// user should be an identifier for the user from the login system.
func LogWithUser(r *http.Request, user, action string, body interface{}) {
	a := auditLog{
		Type:   "audit",
		Action: action,
		User:   user,
		Body:   body,
	}
	b, err := json.Marshal(a)
	if err != nil {
		sklog.Errorf("Failed to marshall audit log entry: %s", err)
	}
	fmt.Println(string(b))
}

repository: google/skia-buildbot

repo_name: google/skia-buildbot

branch_name: refs/heads/main


text:
// Original Source: https://github.com/CaptainCodeman/redux-connect-element/blob/master/src/connect.ts

import { Unsubscribe, Store, Action } from 'redux'

export type DispatchMap = { [key: string]: (event: Event) => void }

export interface ConnectProps {
	mapState?(state: any): { [key: string]: any }
}

export interface ConnectEvents {
	mapEvents?(): { [key: string]: (event: Event) => Action }
}

export interface Connectable extends HTMLElement, ConnectProps, ConnectEvents {
	connectedCallback?(): void
	disconnectedCallback?(): void
}

export type Constructor<T> = new (...args: any[]) => T

const unsubscribe: unique symbol = Symbol()
const dispatchMap: unique symbol = Symbol()
const createDispatchMap: unique symbol = Symbol()
const addEventListeners: unique symbol = Symbol()
const removeEventListeners: unique symbol = Symbol()
const addStateSubscription: unique symbol = Symbol()
const removeStateSubscription: unique symbol = Symbol()
const onStateChange: unique symbol = Symbol()

export function connect<T extends Constructor<Connectable>>(store: Store, superclass: T) {
	class connected extends superclass {
		private [unsubscribe]!: Unsubscribe
		private [dispatchMap]!: DispatchMap

		constructor(...args: any[]) {
			super(...args)
			this[createDispatchMap]()
		}

		override connectedCallback() {
			if (super.connectedCallback) {
				super.connectedCallback()
			}

			this[addEventListeners]()
			this[addStateSubscription]()
		}

		override disconnectedCallback() {
			this[removeStateSubscription]()
			this[removeEventListeners]()

			if (super.disconnectedCallback) {
				super.disconnectedCallback()
			}
		}

		private [createDispatchMap]() {
			this[dispatchMap] = <DispatchMap>{}
			if (this.mapEvents) {
				const eventMap = this.mapEvents()
				for (const key in eventMap) {
					this[dispatchMap][key] = (event: Event) => store.dispatch(eventMap[key](event))
				}
			}
		}

		private [addEventListeners]() {
			for (const key in this[dispatchMap]) {
				this.addEventListener(key, this[dispatchMap][key], false)
			}
		}

		private [removeEventListeners]() {
			for (const key in this[dispatchMap]) {
				this.removeEventListener(key, this[dispatchMap][key], false)
			}
		}

		private [addStateSubscription]() {
			this[unsubscribe] = store.subscribe(this[onStateChange].bind(this))
			this[onStateChange]()
		}

		private [removeStateSubscription]() {
			this[unsubscribe] && this[unsubscribe]()
			this[unsubscribe] = null as any
		}

		private [onStateChange]() {
			this.mapState && Object.assign(this, this.mapState(store.getState()))
		}
	}

	return connected as Constructor<Connectable> & T
}

repository: oswee/oswee

repo_name: oswee/oswee

gha_language: HCL

extension: ts


text:
import Request from "../requests";
import schema from "../models/paymentOrderModel";
import { PaymentOrder as PaymentOrderModel } from "../types";

export class PaymentOrder {
  requestManager: Request = new Request();

  create(body: PaymentOrderModel): Promise<unknown> {
    return this.requestManager.create(
      {
        path: `/payment_order`,
        method: "POST",
        schema,
      },
      body
    );
  }
}

export default new PaymentOrder();

repository: mobbexco/nodejs

repo_name: mobbexco/nodejs

gha_language: TypeScript


text:
#pragma once

#include "UtilTypes.h"

const size_t STEAMUSER_DESKTOPINSTANCE = 1;
const size_t STEAMUSER_WEBINSTANCE = 4;

// Steam universes. Each universe is a self-contained Steam instance.
enum universe_t : size_t {
	UNIVERSE_INVALID,
	UNIVERSE_PUBLIC,
	UNIVERSE_BETA,
	UNIVERSE_INTERNAL,
	UNIVERSE_DEV,
	// UNIVERSE_RC, // deprecated
	UNIVERSE_MAX
};

// Steam account types
enum accountType_t : size_t {
	ACCOUNT_TYPE_INVALID,
	ACCOUNT_TYPE_INDIVIDUAL, // single user account
	ACCOUNT_TYPE_MULTISEAT, // multiseat (e.g. cybercafe) account
	ACCOUNT_TYPE_GAMESERVER, // game server account
	ACCOUNT_TYPE_ANONGAMESERVER, // anonymous game server account
	ACCOUNT_TYPE_PENDING, // pending
	ACCOUNT_TYPE_CONTENTSERVER, // content server
	ACCOUNT_TYPE_CLAN,
	ACCOUNT_TYPE_CHAT,
	ACCOUNT_TYPE_CONSOLEUSER, // Fake SteamID for local PSN account on PS3 or Live account on 360, etc.
	ACCOUNT_TYPE_ANONUSER,
	// Max of 16 items in this field
	ACCOUNT_TYPE_MAX
};

class SteamID {
public:
	SteamID(uint64_t quadPart);
	SteamID() : SteamID(0) {}

	uint64_t ToUInt64() const;

	bool IsValid() const;

	void Set(uint64_t quadPart);
	void SetUniverse(universe_t universe);
	void SetAccountType(accountType_t accountType);
	void SetAccountId(size_t accountId);
	void SetAccountInstance(size_t instance);
private:
	union steamID_t {
		struct steamIDComponent_t {
			size_t m_accountID : 32; // unique account identifier
			size_t m_accountInstance : 20; // dynamic instance ID
			accountType_t m_accountType : 4; // type of account
			universe_t m_universe : 8; // universe this account belongs to
		} m_comp;
		uint64_t m_quadPart;
	} m_steamid;
};

license: Unlicense


text:
package ffmpeg_go

import (
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/tidwall/gjson"
)

func TestProbe(t *testing.T) {
	data, err := Probe(TestInputFile1, nil)
	assert.Nil(t, err)
	assert.Equal(t, gjson.Get(data, "format.duration").String(), "7.036000")
}