text:
<?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
	<VerticalScroll>useIfNecessary</VerticalScroll>
	<AutoCommandBar name="ФормаКоманднаяПанель" id="-1"/>
	<Events>
		<Event name="AfterWrite">ПослеЗаписи</Event>
		<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
		<Event name="OnClose">ПриЗакрытии</Event>
	</Events>
	<ChildItems>
		<Pages name="Группа" id="5">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Группа</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Группа</v8:content>
				</v8:item>
			</ToolTip>
			<VerticalStretch>true</VerticalStretch>
			<ExtendedTooltip name="ГруппаExtendedTooltip" id="92"/>
			<ChildItems>
				<Page name="Основное" id="6">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Основное</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Основное</v8:content>
						</v8:item>
					</ToolTip>
					<ExtendedTooltip name="ОсновноеExtendedTooltip" id="93"/>
					<ChildItems>
						<InputField name="Код" id="1">
							<DataPath>Объект.Code</DataPath>
							<ReadOnly>true</ReadOnly>
							<EditMode>EnterOnInput</EditMode>
							<ContextMenu name="КодКонтекстноеМеню" id="2"/>
							<ExtendedTooltip name="КодExtendedTooltip" id="94"/>
						</InputField>
						<InputField name="Наименование" id="3">
							<DataPath>Объект.Description</DataPath>
							<EditMode>EnterOnInput</EditMode>
							<ContextMenu name="НаименованиеКонтекстноеМеню" id="4"/>
							<ExtendedTooltip name="НаименованиеExtendedTooltip" id="95"/>
						</InputField>
						<UsualGroup name="НомераСообщений" id="9">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Номера сообщений</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Номера сообщений</v8:content>
								</v8:item>
							</ToolTip>
							<Representation>StrongSeparation</Representation>
							<ExtendedTooltip name="НомераСообщенийExtendedTooltip" id="96"/>
							<ChildItems>
								<InputField name="НомерПринятого" id="10">
									<DataPath>Объект.ReceivedNo</DataPath>
									<ReadOnly>true</ReadOnly>
									<ContextMenu name="НомерПринятогоКонтекстноеМеню" id="11"/>
									<ExtendedTooltip name="НомерПринятогоExtendedTooltip" id="97"/>
								</InputField>
								<InputField name="НомерОтправленного" id="12">
									<DataPath>Объект.SentNo</DataPath>
									<ReadOnly>true</ReadOnly>
									<ContextMenu name="НомерОтправленногоКонтекстноеМеню" id="13"/>
									<ExtendedTooltip name="НомерОтправленногоExtendedTooltip" id="98"/>
								</InputField>
							</ChildItems>
						</UsualGroup>
					</ChildItems>
				</Page>
				<Page name="НастройкаФильтровРегистрации" id="7">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Настройка фильтров регистрации</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Настройка фильтров регистрации</v8:content>
						</v8:item>
					</ToolTip>
					<ExtendedTooltip name="НастройкаФильтровРегистрацииExtendedTooltip" id="99"/>
					<ChildItems>
						<InputField name="ДатаНачалаВыгрузкиДокументов" id="14">
							<DataPath>Объект.ДатаНачалаВыгрузкиДокументов</DataPath>
							<ContextMenu name="ДатаНачалаВыгрузкиДокументовКонтекстноеМеню" id="15"/>
							<ExtendedTooltip name="ДатаНачалаВыгрузкиДокументовExtendedTooltip" id="100"/>
						</InputField>
						<UsualGroup name="НастркаФильтровРегистрацииГоризонтальная" id="61">
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Настрка фильтров регистрации горизонтальная</v8:content>
								</v8:item>
							</ToolTip>
							<Group>Horizontal</Group>
							<Representation>None</Representation>
							<ShowTitle>false</ShowTitle>
							<ExtendedTooltip name="НастркаФильтровРегистрацииГоризонтальнаяExtendedTooltip" id="101"/>
							<ChildItems>
								<CheckBoxField name="ИспользоватьОтборПоОрганизациям" id="17">
									<DataPath>Объект.ИспользоватьОтборПоОрганизациям</DataPath>
									<TitleLocation>Right</TitleLocation>
									<CheckBoxType>Auto</CheckBoxType>
									<ContextMenu name="ИспользоватьОтборПоОрганизациямКонтекстноеМеню" id="18"/>
									<ExtendedTooltip name="ИспользоватьОтборПоОрганизациямExtendedTooltip" id="102"/>
									<Events>
										<Event name="OnChange">ИспользоватьОтборПоОрганизациямПриИзменении</Event>
									</Events>
								</CheckBoxField>
								<CheckBoxField name="ВыгружатьЦеныНоменклатуры" id="87">
									<DataPath>Объект.ВыгружатьЦеныНоменклатуры</DataPath>
									<TitleLocation>Right</TitleLocation>
									<CheckBoxType>Auto</CheckBoxType>
									<ContextMenu name="ВыгружатьЦеныНоменклатурыКонтекстноеМеню" id="88"/>
									<ExtendedTooltip name="ВыгружатьЦеныНоменклатурыExtendedTooltip" id="103"/>
									<Events>
										<Event name="OnChange">ВыгружатьЦеныНоменклатурыПриИзменении</Event>
									</Events>
								</CheckBoxField>
							</ChildItems>
						</UsualGroup>
						<Pages name="НастройкиОтборов" id="23">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Настройки отборов</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Настройки отборов</v8:content>
								</v8:item>
							</ToolTip>
							<ExtendedTooltip name="НастройкиОтборовExtendedTooltip" id="104"/>
							<ChildItems>
								<Page name="ОтборПоОрганизациям" id="24">
									<Title>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Отбор по организациям</v8:content>
										</v8:item>
									</Title>
									<ToolTip>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Отбор по организациям</v8:content>
										</v8:item>
									</ToolTip>
									<ExtendedTooltip name="ОтборПоОрганизациямExtendedTooltip" id="105"/>
									<ChildItems>

											<AutoInsertNewRow>true</AutoInsertNewRow>
											<EnableStartDrag>true</EnableStartDrag>
											<EnableDrag>true</EnableDrag>
											<DataPath>Объект.Организации</DataPath>
											<SearchStringLocation>None</SearchStringLocation>
											<ViewStatusLocation>None</ViewStatusLocation>
											<SearchControlLocation>None</SearchControlLocation>
											<RowFilter xsi:nil="true"/>
											<ContextMenu name="ОрганизацииКонтекстноеМеню" id="65"/>
											<AutoCommandBar name="ОрганизацииКоманднаяПанель" id="66"/>
											<ExtendedTooltip name="ОрганизацииExtendedTooltip" id="106"/>
											<SearchStringAddition name="ОрганизацииSearchString" id="127">
												<Source>
													<lf:elementId>64</lf:elementId>
													<lf:additionId>0</lf:additionId>
												</Source>
												<ContextMenu name="ОрганизацииSearchStringContextMenu" id="128"/>
												<ExtendedTooltip name="ОрганизацииSearchStringExtendedTooltip" id="129"/>
											</SearchStringAddition>
											<ViewStatusAddition name="ОрганизацииViewStatus" id="130">
												<Source>
													<lf:elementId>64</lf:elementId>
													<lf:additionId>1</lf:additionId>
												</Source>
												<ContextMenu name="ОрганизацииViewStatusContextMenu" id="131"/>
												<ExtendedTooltip name="ОрганизацииViewStatusExtendedTooltip" id="132"/>
											</ViewStatusAddition>
											<SearchControlAddition name="ОрганизацииSearchControl" id="133">
												<Source>
													<lf:elementId>64</lf:elementId>
													<lf:additionId>2</lf:additionId>
												</Source>
												<ContextMenu name="ОрганизацииSearchControlContextMenu" id="134"/>
												<ExtendedTooltip name="ОрганизацииSearchControlExtendedTooltip" id="135"/>
											</SearchControlAddition>
											<ChildItems>
												<InputField name="ОрганизацииОрганизация" id="69">
													<DataPath>Объект.Организации.Организация</DataPath>
													<EditMode>EnterOnInput</EditMode>
													<ContextMenu name="ОрганизацииОрганизацияКонтекстноеМеню" id="70"/>
													<ExtendedTooltip name="ОрганизацииОрганизацияExtendedTooltip" id="107"/>
												</InputField>
											</ChildItems>

									</ChildItems>
								</Page>
								<Page name="ВыгружаемыеВидыЦен" id="71">
									<Title>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Выгружаемые виды цен</v8:content>
										</v8:item>
									</Title>
									<ToolTip>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Выгружаемые виды цен</v8:content>
										</v8:item>
									</ToolTip>
									<ExtendedTooltip name="ВыгружаемыеВидыЦенExtendedTooltip" id="108"/>
									<ChildItems>

											<AutoInsertNewRow>true</AutoInsertNewRow>
											<EnableStartDrag>true</EnableStartDrag>
											<EnableDrag>true</EnableDrag>
											<DataPath>Объект.ВидыЦенНоменклатуры</DataPath>
											<SearchStringLocation>None</SearchStringLocation>
											<ViewStatusLocation>None</ViewStatusLocation>
											<SearchControlLocation>None</SearchControlLocation>
											<RowFilter xsi:nil="true"/>
											<ContextMenu name="ВидыЦенНоменклатурыКонтекстноеМеню" id="73"/>
											<AutoCommandBar name="ВидыЦенНоменклатурыКоманднаяПанель" id="74"/>
											<ExtendedTooltip name="ВидыЦенНоменклатурыExtendedTooltip" id="109"/>
											<SearchStringAddition name="ВидыЦенНоменклатурыSearchString" id="136">
												<Source>
													<lf:elementId>72</lf:elementId>
													<lf:additionId>0</lf:additionId>
												</Source>
												<ContextMenu name="ВидыЦенНоменклатурыSearchStringContextMenu" id="137"/>
												<ExtendedTooltip name="ВидыЦенНоменклатурыSearchStringExtendedTooltip" id="138"/>
											</SearchStringAddition>
											<ViewStatusAddition name="ВидыЦенНоменклатурыViewStatus" id="139">
												<Source>
													<lf:elementId>72</lf:elementId>
													<lf:additionId>1</lf:additionId>
												</Source>
												<ContextMenu name="ВидыЦенНоменклатурыViewStatusContextMenu" id="140"/>
												<ExtendedTooltip name="ВидыЦенНоменклатурыViewStatusExtendedTooltip" id="141"/>
											</ViewStatusAddition>
											<SearchControlAddition name="ВидыЦенНоменклатурыSearchControl" id="142">
												<Source>
													<lf:elementId>72</lf:elementId>
													<lf:additionId>2</lf:additionId>
												</Source>
												<ContextMenu name="ВидыЦенНоменклатурыSearchControlContextMenu" id="143"/>
												<ExtendedTooltip name="ВидыЦенНоменклатурыSearchControlExtendedTooltip" id="144"/>
											</SearchControlAddition>
											<ChildItems>
												<InputField name="ВидыЦенНоменклатурыВидЦенНоменклатуры" id="77">
													<DataPath>Объект.ВидыЦенНоменклатуры.ВидЦенНоменклатуры</DataPath>
													<EditMode>EnterOnInput</EditMode>
													<ContextMenu name="ВидыЦенНоменклатурыВидЦенНоменклатурыКонтекстноеМеню" id="78"/>
													<ExtendedTooltip name="ВидыЦенНоменклатурыВидЦенНоменклатурыExtendedTooltip" id="110"/>
												</InputField>
											</ChildItems>

									</ChildItems>
								</Page>
							</ChildItems>
						</Pages>
					</ChildItems>
				</Page>
				<Page name="ПрочиеНастройки" id="52">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Прочие настройки</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Прочие настройки</v8:content>
						</v8:item>
					</ToolTip>
					<ExtendedTooltip name="ПрочиеНастройкиExtendedTooltip" id="111"/>
					<ChildItems>
						<UsualGroup name="ЗагрузкаДанных" id="53">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Загрузка данных</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Загрузка данных</v8:content>
								</v8:item>
							</ToolTip>
							<HorizontalStretch>true</HorizontalStretch>
							<Representation>StrongSeparation</Representation>
							<ExtendedTooltip name="ЗагрузкаДанныхExtendedTooltip" id="112"/>
							<ChildItems>
								<CheckBoxField name="ПроводитьДокументыПриЗагрузке" id="50">
									<DataPath>Объект.РазрешитьПроведениеДокументовПриЗагрузке</DataPath>
									<TitleLocation>Left</TitleLocation>
									<CheckBoxType>Auto</CheckBoxType>
									<ContextMenu name="ПроводитьДокументыПриЗагрузкеКонтекстноеМеню" id="51"/>
									<ExtendedTooltip name="ПроводитьДокументыПриЗагрузкеExtendedTooltip" id="113"/>
								</CheckBoxField>
							</ChildItems>
						</UsualGroup>
						<UsualGroup name="ГруппаПравилаСозданияДоговоровКонтрагентов" id="56">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Правила формирования договоров</v8:content>
								</v8:item>
							</Title>
							<Representation>StrongSeparation</Representation>
							<ExtendedTooltip name="ГруппаПравилаСозданияДоговоровКонтрагентовExtendedTooltip" id="114"/>
							<ChildItems>
								<InputField name="ПравилаСозданияДоговоровКонтрагентов" id="57">
									<DataPath>Объект.ПравилаСозданияДоговоровКонтрагентов</DataPath>
									<Title>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Выберите правила, по которым необходимо формировать договоры контрагентов при загрузке в конфигурацию «Бухгалтерия предприятия» документов, оформленных без указания договора</v8:content>
										</v8:item>
									</Title>
									<TitleLocation>Top</TitleLocation>
									<ToolTip>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Вариант правил, по которым будет производиться выгрузка догворов контрагентов</v8:content>
										</v8:item>
									</ToolTip>
									<HorizontalStretch>true</HorizontalStretch>
									<ListChoiceMode>true</ListChoiceMode>
									<ChooseType>false</ChooseType>
									<TextEdit>false</TextEdit>
									<ChoiceList>
										<xr:Item>
											<xr:Presentation/>
											<xr:CheckState>0</xr:CheckState>
											<xr:Value xsi:type="FormChoiceListDesTimeValue">
												<Presentation>
													<v8:item>
														<v8:lang>ru</v8:lang>
														<v8:content>Договоры контрагентов формируются без привязки к партнерам, сделкам, соглашениям или заказам</v8:content>
													</v8:item>
												</Presentation>
												<Value xsi:type="xs:string">БезРазделения</Value>
											</xr:Value>
										</xr:Item>
										<xr:Item>
											<xr:Presentation/>
											<xr:CheckState>0</xr:CheckState>
											<xr:Value xsi:type="FormChoiceListDesTimeValue">
												<Presentation>
													<v8:item>
														<v8:lang>ru</v8:lang>
														<v8:content>Разным партнерам соответствуют разные договоры контрагентов</v8:content>
													</v8:item>
												</Presentation>
												<Value xsi:type="xs:string">ПоПартнерам</Value>
											</xr:Value>
										</xr:Item>
										<xr:Item>
											<xr:Presentation/>
											<xr:CheckState>0</xr:CheckState>
											<xr:Value xsi:type="FormChoiceListDesTimeValue">
												<Presentation>
													<v8:item>
														<v8:lang>ru</v8:lang>
														<v8:content>Разным сделкам соответствуют разные договоры контрагентов</v8:content>
													</v8:item>
												</Presentation>
												<Value xsi:type="xs:string">ПоСделкам</Value>
											</xr:Value>
										</xr:Item>
										<xr:Item>
											<xr:Presentation/>
											<xr:CheckState>0</xr:CheckState>
											<xr:Value xsi:type="FormChoiceListDesTimeValue">
												<Presentation>
													<v8:item>
														<v8:lang>ru</v8:lang>
														<v8:content>Разным соглашениям соответствуют разные договоры контрагентов</v8:content>
													</v8:item>
												</Presentation>
												<Value xsi:type="xs:string">ПоСоглашениям</Value>
											</xr:Value>
										</xr:Item>
										<xr:Item>
											<xr:Presentation/>
											<xr:CheckState>0</xr:CheckState>
											<xr:Value xsi:type="FormChoiceListDesTimeValue">
												<Presentation>
													<v8:item>
														<v8:lang>ru</v8:lang>
														<v8:content>Разным заказам соответствуют разные договоры контрагентов</v8:content>
													</v8:item>
												</Presentation>
												<Value xsi:type="xs:string">ПоЗаказам</Value>
											</xr:Value>
										</xr:Item>
									</ChoiceList>
									<ContextMenu name="ПравилаСозданияДоговоровКонтрагентовКонтекстноеМеню" id="58"/>
									<ExtendedTooltip name="ПравилаСозданияДоговоровКонтрагентовExtendedTooltip" id="115"/>
								</InputField>
							</ChildItems>
						</UsualGroup>
						<UsualGroup name="РежимВыгрузкиОбъектов" id="91">
							<Visible>false</Visible>
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Режим выгрузки объектов</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Режим выгрузки объектов</v8:content>
								</v8:item>
							</ToolTip>
							<Representation>StrongSeparation</Representation>
							<ExtendedTooltip name="РежимВыгрузкиОбъектовExtendedTooltip" id="116"/>
							<ChildItems>
								<InputField name="РежимВыгрузкиПриНеобходимости" id="89">
									<DataPath>Объект.РежимВыгрузкиПриНеобходимости</DataPath>
									<ContextMenu name="РежимВыгрузкиПриНеобходимостиКонтекстноеМеню" id="90"/>
									<ExtendedTooltip name="РежимВыгрузкиПриНеобходимостиExtendedTooltip" id="117"/>
								</InputField>
							</ChildItems>
						</UsualGroup>
					</ChildItems>
				</Page>
				<Page name="ЗначенияПоУмолчанию" id="8">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Значения по умолчанию</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Значения по умолчанию</v8:content>
						</v8:item>
					</ToolTip>
					<ExtendedTooltip name="ЗначенияПоУмолчаниюExtendedTooltip" id="118"/>
					<ChildItems>
						<UsualGroup name="ЗначенияПоУмолчаниюПриЗагрузкеДокументов" id="84">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Значения по умолчанию при загрузке документов</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Значения по умолчанию при загрузке документов</v8:content>
								</v8:item>
							</ToolTip>
							<Representation>StrongSeparation</Representation>
							<ExtendedTooltip name="ЗначенияПоУмолчаниюПриЗагрузкеДокументовExtendedTooltip" id="119"/>
							<ChildItems>
								<InputField name="ПодразделениеПоУмолчанию" id="85">
									<DataPath>Объект.ПодразделениеПоУмолчанию</DataPath>
									<Title>
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Подразделение</v8:content>
										</v8:item>
									</Title>
									<AutoMarkIncomplete>true</AutoMarkIncomplete>
									<ContextMenu name="ПодразделениеПоУмолчаниюКонтекстноеМеню" id="86"/>
									<ExtendedTooltip name="ПодразделениеПоУмолчаниюExtendedTooltip" id="120"/>
								</InputField>
							</ChildItems>
						</UsualGroup>
						<UsualGroup name="ЗначенияПоУмолчаниюПриВыгрузкеДокументов" id="81">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Значения по умолчанию при выгрузке документов</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Значения по умолчанию при выгрузке документов</v8:content>
								</v8:item>
							</ToolTip>
							<Representation>StrongSeparation</Representation>
							<ExtendedTooltip name="ЗначенияПоУмолчаниюПриВыгрузкеДокументовExtendedTooltip" id="121"/>
							<ChildItems>
								<InputField name="ОбобщенныйСклад" id="79">
									<DataPath>Объект.ОбобщенныйСклад</DataPath>
									<UserVisible>
										<xr:Common>true</xr:Common>
										<xr:Value name="Role.АдминистраторСистемы">true</xr:Value>
										<xr:Value name="Role.Администрирование">true</xr:Value>
										<xr:Value name="Role.БазовыеПрава">true</xr:Value>
										<xr:Value name="Role.БазовыеПраваУТ">true</xr:Value>
										<xr:Value name="Role.ВводИнформацииПоНоменклатуреБезКонтроля">true</xr:Value>
										<xr:Value name="Role.ВводИнформацииПоПартнеруБезКонтроля">true</xr:Value>
										<xr:Value name="Role.ВыводНаПринтерФайлБуферОбмена">true</xr:Value>
										<xr:Value name="Role.ВыполнениеОбменаЭД">true</xr:Value>
										<xr:Value name="Role.ВыполнениеСинхронизацииДанных">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеABCXYZКлассификацияКлиентов">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеABCXYZКлассификацияНоменклатуры">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеАвансовыхОтчетов">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеАктовВыполненныхРабот">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеАктовОРасхожденияхПриПоступленииТоваров">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеАктовПриемкиТоваров">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеАссортимента">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеАссортиментаИЦенПартнеров">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеБазовойНСИ">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеБанков">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВариантовАнализаЦелевыхПоказателей">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВариантовОтчетов">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВводаОстатков">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВзаимодействий">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВидовКартЛояльности">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВнесенияВыемкиДСПоКассеККМ">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВнешнихПользователей">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВнутреннихПотребленийТоваров">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВозвратовТоваровОтКлиентов">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВыкуповВозвратнойТарыКлиентами">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеВыкуповВозвратнойТарыУПоставщиков">true</xr:Value>
										<xr:Value name="Role.ДобавлениеИзменениеГруппФинансовогоУчета">true</xr:Value>
										<xr:Value name="Role.ПолныеПрава">true</xr:Value>
										<xr:Value name="Role.РазделАдминистрирование">true</xr:Value>
									</UserVisible>
									<HorizontalStretch>true</HorizontalStretch>
									<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
									<ContextMenu name="ОбобщенныйСкладКонтекстноеМеню" id="80"/>
									<ExtendedTooltip name="ОбобщенныйСкладExtendedTooltip" id="122"/>
								</InputField>
								<LabelDecoration name="ОписаниеОбобщенныйСклад" id="82">
									<TextColor>style:ПоясняющийТекст</TextColor>
									<Title formatted="false">
										<v8:item>
											<v8:lang>ru</v8:lang>
											<v8:content>Выгружается вместо складов, которые разрешено выбирать в табличных частях документов</v8:content>
										</v8:item>
									</Title>
									<ContextMenu name="ОписаниеОбобщенныйСкладКонтекстноеМеню" id="83"/>
									<ExtendedTooltip name="ОписаниеОбобщенныйСкладExtendedTooltip" id="123"/>
								</LabelDecoration>
							</ChildItems>
						</UsualGroup>
						<InputField name="итПользовательПоступления" id="124">
							<DataPath>Объект.итПользовательПоступления</DataPath>
							<ContextMenu name="итПользовательПоступленияКонтекстноеМеню" id="125"/>
							<ExtendedTooltip name="итПользовательПоступленияРасширеннаяПодсказка" id="126"/>
						</InputField>
					</ChildItems>
				</Page>
			</ChildItems>
		</Pages>
	</ChildItems>
	<Attributes>
		<Attribute name="Объект" id="1">
			<Type>
				<v8:Type>cfg:ExchangePlanObject.ОбменУправлениеТорговлейБухгалтерияПредприятия30</v8:Type>
			</Type>
			<MainAttribute>true</MainAttribute>
			<SavedData>true</SavedData>
		</Attribute>
	</Attributes>
</Form>


text:
cask :v1 => '4k-video-downloader' do
  version '3.6'
  sha256 '9adac4eaff8478be06dacd995e54c70bddc1571795e095003a298e52479aea21'

  url "http://downloads.4kdownload.com/app/4kvideodownloader_#{version}.dmg"
  name '4K Video Downloader'
  homepage 'https://www.4kdownload.com/products/product-videodownloader'
  license :freemium

  app '4K Video Downloader.app'
end

redpajama_set_name: RedPajamaGithub


text:
layout: post
title:      "GLI Gem - Knitpickr"
date:       2018-02-13 00:47:02 -0500
permalink:  gli_gem_knitpickr
---

It feels incredible to be able to say that I have dreamed up, built, and published my very own Ruby CLI Gem!

**OVERVIEW**

My project, titled "Knitpickr" *(all the trendy apps these days seem to end in "-r" - figured I'd join in)*, scrapes data from the Knitpicks website and allows users to browse yarn sold by Knitpicks. The user is first asked to choose their browsing method (browse by yarn weight, yarn fiber content, yarn name, or browse all yarn lines currently on sale), then is presented with a list of all yarn matching the selected browsing criteria. The user is then able to drill down and view specific details (such as name, fiber weight, fiber content, price, and sale status if the item is currently on sale) by selecting an item from the list.

You can watch a video walkthrough [here](https://youtu.be/yLOXyQu1E6w).

**WHAT I LEARNED**

* **Gems**
    * I learned a ton about Ruby Gems - what they are (essentially a way to easily distribute code in the form of a self-contained library), how to build one (can be easily done with Bundler, which, ironically, is a Gem itself), and how to install and publish Gems on RubyGems.org .

* **Git & Bash**
    * I confess to not having been in the habit of committing my work to Git very often prior to working on this project, aside from the 'learn submit' command used to submit labs in Learn. One of the requirements of this project was to commit early and often, so I had to become more familiar with Git and the command line. Part of this was figuring out how to add my working file to a remote repository on GitHub. Even working with RubyGems.org (installing, publishing, pushing out new versions, updating to a new version, etc.) required quite a bit of command line work, and I am much more comfortable with the command line as a result.

* **Scope of an entire project**
    * Looking at an entire project from start to finish was an incredibly helpful experience. We often have blinders on when working through labs, only focusing on one particular objective at a time. Don't get me wrong - I think is approach is very beneficial when learning as it lets you focus on just the specific thing you are trying to learn, but one of the dangers of this is that you don't always know how all of the individual pieces fit together into a cohesive program. I had lots of "*ohhhh, so THAT's why*"  moments that really helped solidify my understanding of class methods vs. instance methods, how objects work together, which methods should go into which class, etc. **There's nothing like working through a project from scratch to fill in the gaps in your knowledge.**

* **OO**
    * Related to my previous point, this project helped to solidify many object orientation concepts - particularly collaborating objects. Because I was defining my own classes, methods, and objects, I had to think about what it really means to be an object/class/instance in order to determine which one made the most sense to use. What classes did I need? What did I need those classes (and instances of those classes) to do? How did I need them all to work together?

* **Debugging**
    * I also confess to not using Pry to debug at all before this project, relying instead on the error messages raised by Ruby and by the test suite when working through labs. With no test suite to rely on, I quickly realized I wouldn't be getting anywhere fast without the ability to drop into a specific point in my code using Pry. Pry was also practically a necessity for sorting out my scraping selectors. I paid more attention to the error messages raised by Ruby as well - they are often immensely helpful on their own.

* **DON'T PANIC**
    * If I break it, I can fix it.

* **Googling is ok**
    * Googling problems and asking for help is not only ok - these are necessary skills that I (and every programmer) will be using as a working developer. It isn't "cheating." The important thing is to understand the solutions you find and to be able to apply those solutions to your own particular issue.

* The rush you feel when you get something working for the first time is ADDICTIVE.

If you want to see it in action, [take Knitpickr for a spin](https://rubygems.org/gems/knitpickr) - I'd love to know what you think!


text: import 'antd-mobile/lib/radio/style/index';


text:
<!--
  ~ Copyright 2015 Gerald Muecke, gerald.muecke@gmail.com
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<project xmlns="http://maven.apache.org/DECORATION/1.6.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/DECORATION/1.6.0 http://maven.apache.org/xsd/decoration-1.6.0.xsd"
         name="scribble">
    <bannerLeft>
        <name>Scribble</name>
    </bannerLeft>
    <publishDate position="left"/>
    <version position="right"/>
    <body>
        <menu ref="parent" inherit="top"/>
        <menu name="Documentation">
            <item name="Introduction" href="index.html"/>
        </menu>
        <menu ref="modules" inherit="bottom"/>
        <menu ref="reports" inherit="bottom"/>
    </body>
</project>


text:
DELIMITER //
DROP PROCEDURE IF EXISTS isMinusOrNullOfDigit //
CREATE PROCEDURE isMinusOrNullOfDigit(IN whichMonth DATETIME)
BEGIN
	SELECT user_uuid,statistic_month,current_invoice,sim_card_count,fail_count
	FROM neo_account_settlement_statement WHERE EXTRACT(YEAR_MONTH from STR_TO_DATE(statistic_month, '%Y%m')) = EXTRACT(YEAR_MONTH from whichMonth);
END;//
DELIMITER ;


text:
package store

import (
	"github.com/Symantec/tricorder/go/tricorder/messages"
)

// distExtractUpperLimits extracts the upper bounds from the buckets in dist.
// Since the last bucket has no upper bound, the number of buckets is always
// one more than the length of the returned slice.
func distExtractUpperLimits(dist *messages.Distribution) []float64 {
	result := make([]float64, len(dist.Ranges)-1)
	for i := range result {
		result[i] = dist.Ranges[i].Upper
	}
	return result
}

// distExtractCounts extracts the bucket counts from dist. The length of the
// returned slice is equal to the total number of buckets.
func distExtractCounts(dist *messages.Distribution) []uint64 {
	result := make([]uint64, len(dist.Ranges))
	for i := range result {
		result[i] = dist.Ranges[i].Count
	}
	return result
}

func upperLimitsLogicallyEqual(left, right []float64) bool {
	if len(left) != len(right) {
		return false
	}
	for i := range left {
		if left[i] != right[i] {
			return false
		}
	}
	return true
}

// rangesListType is an associative cache of ranges designed to store ranges
// used for a single particular metric path.
// rangesListType uses a linear, adaptive search moving hits found to the
// front of the list. We expect the desired ranges always to be at
// the front of the list providing O(1) lookup. The only time this won't
// be the case is when the ranges change for a distribution which is very
// seldom.
type rangesListType struct {
	rangesList []*Ranges
}

func newRangesList() *rangesListType {
	return &rangesListType{}
}

// Get converts a slice of bucket upper bounds to a *Ranges pointer in such
// a way that r.Get(a) == r.Get(b) if and only if a is logically equivalent
// to b.
func (r *rangesListType) Get(upperLimits []float64) *Ranges {
	idx := r.find(upperLimits)
	if idx == -1 {
		upperLimitsCopy := make([]float64, len(upperLimits))
		copy(upperLimitsCopy, upperLimits)
		r.rangesList = append(r.rangesList, &Ranges{upperLimitsCopy})
		idx = len(r.rangesList) - 1
	}
	if idx > 0 {
		r.rangesList[idx], r.rangesList[0] = r.rangesList[0], r.rangesList[idx]
	}
	return r.rangesList[0]
}

func (r *rangesListType) find(upperLimits []float64) int {
	for i := range r.rangesList {
		if upperLimitsLogicallyEqual(
			r.rangesList[i].UpperLimits, upperLimits) {
			return i
		}
	}
	return -1
}

// rangeCacheType caches ranges by path. It guarantees that it will always
// produce the same *Ranges pointer for logically equivalent upper limits
// for the same path. However, it will produce different *Ranges pointers
// for logically equivalent upper limits if the paths are different.
type rangesCacheType struct {
	rangesByPath map[string]*rangesListType
}

func (r *rangesCacheType) Init() {
	r.rangesByPath = make(map[string]*rangesListType)
}

// Get produces a *Ranges pointer for the given path and range.
func (r *rangesCacheType) Get(
	path string, upperLimits []float64) *Ranges {
	rangesList := r.rangesByPath[path]
	if rangesList == nil {
		rangesList = newRangesList()
		r.rangesByPath[path] = rangesList
	}
	return rangesList.Get(upperLimits)
}

type distributionRollOverType struct {
	ranges        *Ranges
	generation    uint64
	rollOverCount uint64
}

func (d *distributionRollOverType) hasRolledOver(
	ranges *Ranges, generation uint64) bool {
	return ranges != d.ranges || generation < d.generation
}

func (d *distributionRollOverType) UpdateAndFetchRollOverCount(
	ranges *Ranges, generation uint64) uint64 {
	if d.hasRolledOver(ranges, generation) {
		d.rollOverCount++
	}
	d.ranges = ranges
	d.generation = generation
	return d.rollOverCount
}


text:
<!DOCTYPE html>

<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />


text:
import angular from 'angular';

import 'angular-mocks';

import {HomeModule} from './home.module';

describe('appHome component', () => {
  let $httpBackend;

  beforeEach(() => {
    const moduleName = `${HomeModule}.appHome.spec`;
    angular.module(moduleName, ['app']);
    angular.mock.module(moduleName);
  });

  beforeEach(angular.mock.inject(_$httpBackend_ => {
    $httpBackend = _$httpBackend_;

    $httpBackend
      .whenGET(/.+/)
      .respond('{}');
  }));

  it('should render content', angular.mock.inject(($rootScope, $compile) => {
    const element = $compile('<app-home></app-home>')($rootScope);
    $rootScope.$digest();
    expect(element).toContainElement('div.app-home');
  }));
});


text:
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/iotsitewise/IoTSiteWiseRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/iotsitewise/model/AssetModelPropertyDefinition.h>
#include <aws/iotsitewise/model/AssetModelHierarchyDefinition.h>
#include <aws/iotsitewise/model/AssetModelCompositeModelDefinition.h>
#include <utility>
#include <aws/core/utils/UUID.h>

namespace Aws
{
namespace IoTSiteWise
{
namespace Model
{

  /**
   */
  class AWS_IOTSITEWISE_API CreateAssetModelRequest : public IoTSiteWiseRequest
  {
  public:
    CreateAssetModelRequest();

    // Service request name is the Operation name which will send this request out,
    // each operation should has unique request name, so that we can get operation's name from this request.
    // Note: this is not true for response, multiple operations may have the same response name,
    // so we can not get operation's name from response.
    inline virtual const char* GetServiceRequestName() const override { return "CreateAssetModel"; }

    Aws::String SerializePayload() const override;

    /**
     *
A unique, friendly name for the asset model.

     */
    inline const Aws::String& GetAssetModelName() const{ return m_assetModelName; }

    /**
     *
A unique, friendly name for the asset model.

     */
    inline bool AssetModelNameHasBeenSet() const { return m_assetModelNameHasBeenSet; }

    /**
     *
A unique, friendly name for the asset model.

     */
    inline void SetAssetModelName(const Aws::String& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = value; }

    /**
     *
A unique, friendly name for the asset model.

     */
    inline void SetAssetModelName(Aws::String&& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = std::move(value); }

    /**
     *
A unique, friendly name for the asset model.

     */
    inline void SetAssetModelName(const char* value) { m_assetModelNameHasBeenSet = true; m_assetModelName.assign(value); }

    /**
     *
A unique, friendly name for the asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;}

    /**
     *
A unique, friendly name for the asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelName(Aws::String&& value) { SetAssetModelName(std::move(value)); return *this;}

    /**
     *
A unique, friendly name for the asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelName(const char* value) { SetAssetModelName(value); return *this;}

    /**
     *
A description for the asset model.

     */
    inline const Aws::String& GetAssetModelDescription() const{ return m_assetModelDescription; }

    /**
     *
A description for the asset model.

     */
    inline bool AssetModelDescriptionHasBeenSet() const { return m_assetModelDescriptionHasBeenSet; }

    /**
     *
A description for the asset model.

     */
    inline void SetAssetModelDescription(const Aws::String& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = value; }

    /**
     *
A description for the asset model.

     */
    inline void SetAssetModelDescription(Aws::String&& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = std::move(value); }

    /**
     *
A description for the asset model.

     */
    inline void SetAssetModelDescription(const char* value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription.assign(value); }

    /**
     *
A description for the asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelDescription(const Aws::String& value) { SetAssetModelDescription(value); return *this;}

    /**
     *
A description for the asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelDescription(Aws::String&& value) { SetAssetModelDescription(std::move(value)); return *this;}

    /**
     *
A description for the asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelDescription(const char* value) { SetAssetModelDescription(value); return *this;}

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline const Aws::Vector<AssetModelPropertyDefinition>& GetAssetModelProperties() const{ return m_assetModelProperties; }

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline bool AssetModelPropertiesHasBeenSet() const { return m_assetModelPropertiesHasBeenSet; }

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline void SetAssetModelProperties(const Aws::Vector<AssetModelPropertyDefinition>& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = value; }

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline void SetAssetModelProperties(Aws::Vector<AssetModelPropertyDefinition>&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = std::move(value); }

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& WithAssetModelProperties(const Aws::Vector<AssetModelPropertyDefinition>& value) { SetAssetModelProperties(value); return *this;}

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& WithAssetModelProperties(Aws::Vector<AssetModelPropertyDefinition>&& value) { SetAssetModelProperties(std::move(value)); return *this;}

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& AddAssetModelProperties(const AssetModelPropertyDefinition& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; }

    /**
     *
The property definitions of the asset model. For more information, see Asset
     * properties in the AWS IoT SiteWise User Guide.

You can specify
     * up to 200 properties per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& AddAssetModelProperties(AssetModelPropertyDefinition&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; }

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline const Aws::Vector<AssetModelHierarchyDefinition>& GetAssetModelHierarchies() const{ return m_assetModelHierarchies; }

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline bool AssetModelHierarchiesHasBeenSet() const { return m_assetModelHierarchiesHasBeenSet; }

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline void SetAssetModelHierarchies(const Aws::Vector<AssetModelHierarchyDefinition>& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = value; }

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline void SetAssetModelHierarchies(Aws::Vector<AssetModelHierarchyDefinition>&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = std::move(value); }

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& WithAssetModelHierarchies(const Aws::Vector<AssetModelHierarchyDefinition>& value) { SetAssetModelHierarchies(value); return *this;}

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& WithAssetModelHierarchies(Aws::Vector<AssetModelHierarchyDefinition>&& value) { SetAssetModelHierarchies(std::move(value)); return *this;}

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchyDefinition& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; }

    /**
     *
The hierarchy definitions of the asset model. Each hierarchy specifies an
     * asset model whose assets can be children of any other assets created from this
     * asset model. For more information, see Asset
     * hierarchies in the AWS IoT SiteWise User Guide.

You can
     * specify up to 10 hierarchies per asset model. For more information, see Quotas
     * in the AWS IoT SiteWise User Guide.

     */
    inline CreateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchyDefinition&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(std::move(value)); return *this; }

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline const Aws::Vector<AssetModelCompositeModelDefinition>& GetAssetModelCompositeModels() const{ return m_assetModelCompositeModels; }

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline bool AssetModelCompositeModelsHasBeenSet() const { return m_assetModelCompositeModelsHasBeenSet; }

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline void SetAssetModelCompositeModels(const Aws::Vector<AssetModelCompositeModelDefinition>& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = value; }

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline void SetAssetModelCompositeModels(Aws::Vector<AssetModelCompositeModelDefinition>&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = std::move(value); }

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelCompositeModels(const Aws::Vector<AssetModelCompositeModelDefinition>& value) { SetAssetModelCompositeModels(value); return *this;}

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline CreateAssetModelRequest& WithAssetModelCompositeModels(Aws::Vector<AssetModelCompositeModelDefinition>&& value) { SetAssetModelCompositeModels(std::move(value)); return *this;}

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline CreateAssetModelRequest& AddAssetModelCompositeModels(const AssetModelCompositeModelDefinition& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(value); return *this; }

    /**
     *
The composite asset models that are part of this asset model. Composite asset
     * models are asset models that contain specific properties. Each composite model
     * has a type that defines the properties that the composite model supports. Use
     * composite asset models to define alarms on this asset model.

     */
    inline CreateAssetModelRequest& AddAssetModelCompositeModels(AssetModelCompositeModelDefinition&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(std::move(value)); return *this; }

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline const Aws::String& GetClientToken() const{ return m_clientToken; }

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline CreateAssetModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline CreateAssetModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}

    /**
     *
A unique case-sensitive identifier that you can provide to ensure the
     * idempotency of the request. Don't reuse this client token if a new idempotent
     * request is required.

     */
    inline CreateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
A list of key-value pairs that contain metadata for the asset model. For more
     * information, see Tagging
     * your AWS IoT SiteWise resources in the AWS IoT SiteWise User
     * Guide.

     */
    inline CreateAssetModelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

  private:

    Aws::String m_assetModelName;
    bool m_assetModelNameHasBeenSet;

    Aws::String m_assetModelDescription;
    bool m_assetModelDescriptionHasBeenSet;

    Aws::Vector<AssetModelPropertyDefinition> m_assetModelProperties;
    bool m_assetModelPropertiesHasBeenSet;

    Aws::Vector<AssetModelHierarchyDefinition> m_assetModelHierarchies;
    bool m_assetModelHierarchiesHasBeenSet;

    Aws::Vector<AssetModelCompositeModelDefinition> m_assetModelCompositeModels;
    bool m_assetModelCompositeModelsHasBeenSet;

    Aws::String m_clientToken;
    bool m_clientTokenHasBeenSet;

    Aws::Map<Aws::String, Aws::String> m_tags;
    bool m_tagsHasBeenSet;
  };

} // namespace Model
} // namespace IoTSiteWise
} // namespace Aws


text:
These are the resource files needed for the [NYC Subway Station Locator](https://codelabs.developers.google.com/codelabs/nyc-subway-station-locator/)
code lab from Google.

This is a work in progress, if you find a mistake, please [file an issue](https://github.com/googlecodelabs/nyc-subway-station-locator/issues). Thanks!

## Introduction for the [NYC Subway Station Locator codelab](https://codelabs.developers.google.com/codelabs/nyc-subway-station-locator/)

Store locators are an often required component of any commercial website that wants to encourage users to visit bricks and mortar stores.
In this codelab you'll build a website that serves location data, and scales automatically, thanks to the power of Google App Engine.
We show you how to expose an easily navigable visualization of the NYC subway using Google Maps JavaScript API.

## What you'll build
In this codelab, you'll build a visualization for the NYC Subway Station dataset that is:
* *Scalable* - you'll use Google App Engine to automatically scale your serving capability to match request load.
* *Maintainable* - you'll use the Go programming language to make the back end code simple, reliable, and efficient.
* *Customizable* - you'll style the map using the [styling capability](https://developers.google.com/maps/documentation/javascript/styling) of the Google Maps JavaScript API, with the help of [Google Maps Style Wizard](https://mapstyle.withgoogle.com/).

## What you'll learn

* How to use [Google Cloud](https://cloud.google.com/) services like [Google Cloud Shell](https://cloud.google.com/shell/) and [Google App Engine](https://cloud.google.com/appengine/)
* How to serve [GIS data](https://en.wikipedia.org/wiki/Geographic_information_system) on the web easily
* How to style Google Maps

## What you'll need

* Basic knowledge of HTML, CSS, JavaScript, Golang, and Chrome DevTools
* An [ES6](https://en.wikipedia.org/wiki/ECMAScript#6th_Edition_-_ECMAScript_2015) capable web browser, such as [Chrome](https://www.google.com/chrome/), [Firefox](https://www.mozilla.org/en-US/firefox/new/), [Safari](http://www.apple.com/safari/), or [Edge](https://www.microsoft.com/en-au/windows/microsoft-edge).


text:
package jsinterop.core.events;

import jsinterop.annotations.JsFunction;

/**
 * Represents a Javascript event listener
 */
@JsFunction
public interface EventListener {

    /**
     * Method which will be called whenever a event is fired.
     *
     * @param event The event
     */
    void handleEvent(Event event);

}


text:
import { TranslateService } from '@ngx-translate/core';
import { CacheService } from '../../../../shared/services/cache.service';
import { AzureDevOpsService } from '../wizard-logic/azure-devops.service';
import { AbstractControl } from '@angular/forms';
import { Observable } from 'rxjs/Observable';
import { DeploymentCenterStateManager } from '../wizard-logic/deployment-center-state-manager';
import { DeploymentCenterConstants } from '../../../../shared/models/constants';
import { PortalResources } from '../../../../shared/models/portal-resources';

export class VstsValidators {
  static createVstsAccountNameValidator(
    _wizard: DeploymentCenterStateManager,
    _translateService: TranslateService,
    _cacheService: CacheService
  ) {
    return (control: AbstractControl) => {
      if (control && control.value) {
        return Observable.timer(500)
          .switchMap(() =>
            _cacheService.get(
              `https://app.vssps.visualstudio.com/_AzureSpsAccount/ValidateAccountName?accountName=${control.value}`,
              true,
              _wizard.getVstsDirectHeaders(false)
            )
          )
          .map(res => {
            const valid = res.json().valid;
            if (!valid) {
              return {
                invalidName: _translateService.instant(PortalResources.vstsNameUnavailable),
              };
            }
            return null;
          });
      } else {
        return Observable.of(null);
      }
    };
  }

  static createProjectPermissionsValidator(
    _wizard: DeploymentCenterStateManager,
    _translateService: TranslateService,
    _cacheService: CacheService,
    _azureDevOpsService: AzureDevOpsService,
    _accountControl: AbstractControl
  ) {
    return (projectControl: AbstractControl) => {
      const vstsAccountValue: string = _accountControl.value;
      const vstsProjectValue: string = projectControl.value;
      if (vstsAccountValue && vstsProjectValue) {
        return _azureDevOpsService.getAccounts().switchMap(r => {
          const appendMsaPassthroughHeader = r.find(x => x.AccountName.toLowerCase() === vstsAccountValue.toLowerCase())!
            .ForceMsaPassThrough;
          const callHeaders = _wizard.getVstsDirectHeaders(appendMsaPassthroughHeader);
          return _cacheService
            .get(DeploymentCenterConstants.vstsProjectsApi.format(vstsAccountValue), true, callHeaders)
            .concatMap(r => {
              const projectList: [{ id: string; name: string }] = r.json().value;
              const currentProject = projectList.find(x => x.name.toLowerCase() === vstsProjectValue.toLowerCase());
              if (currentProject) {
                callHeaders.append('accept', 'application/json;api-version=3.2-preview.2');
                // need to ping the release rp in vso in order to subscribe to user to the RP, otherwise the rp call will fail
                return _cacheService
                  .get(
                    `https://${vstsAccountValue}.vsrm.visualstudio.com/${currentProject.id}/_apis/Release/definitions`,
                    true,
                    callHeaders
                  )
                  .switchMap(() => {
                    return Observable.forkJoin(
                      _cacheService.get(
                        `https://${vstsAccountValue}.visualstudio.com/_apis/Permissions/${
                          DeploymentCenterConstants.buildSecurityNameSpace
                        }/${DeploymentCenterConstants.editBuildDefinitionBitMask}?tokens=${currentProject.id}`,
                        true,
                        callHeaders
                      ),
                      _cacheService.get(
                        `https://${vstsAccountValue}.visualstudio.com/_apis/Permissions/${
                          DeploymentCenterConstants.releaseSecurityNameSpace
                        }/${DeploymentCenterConstants.editReleaseDefinitionPermission}?tokens=${currentProject.id}`,
                        true,
                        callHeaders
                      )
                    );
                  });
              }
              return Observable.of(null);
            })
            .map(results => {
              if (results && results.length === 2) {
                const buildPermissions = results[0] ? results[0].json().value[0] : true;
                const releasePermissions = results[1] ? results[1].json().value[0] : true;
                if (!buildPermissions || !releasePermissions) {
                  return {
                    invalidPermissions: _translateService.instant(PortalResources.vstsReleaseBuildPermissions),
                  };
                }
              }
              return null;
            })
            .catch(() => {
              // if there is an error fetching permissions, better to just assume they have them to avoid blocking
              return Observable.of(null);
            });
        });
      } else {
        // Account and Project is empty so no validation
        return Observable.of(null);
      }
    };
  }
}


text:
decode.py
=========
An implementation of the Metropolis Monte Carlo method for decrypting a ciphertext (cryptogram) according to a simple substition. For background, see [this article](http://math.uchicago.edu/~shmuel/Network-course-readings/MCMCRev.pdf) by Persi Diaconis.

See [decode.py in action](https://asciinema.org/a/YWG7r5NAG1QUYy4BpfYqIS83f) using [asciinema](https://asciinema.org/).

[![asciicast](https://asciinema.org/a/YWG7r5NAG1QUYy4BpfYqIS83f.png)](https://asciinema.org/a/YWG7r5NAG1QUYy4BpfYqIS83f)

The program must be "trained"
on a relatively large sample of plaintext (warandpeace.txt is included for this reason).

Usage:
------
    python decode.py [-v] -c cipher.txt -t training.txt -a alphabet.txt -n numSteps -k kmerLength -o output.txt

`-v` sets verbose mode. The program will print out its 'current' guess of the plaintext every 1000 steps

`-a` is the 'target alphabet.' It is the alphabet of the plaintext as well as the training sample.  Note that the training text will be filtered automatically so that only characters belonging to the target alphabet remain. Also it will be made uppercase!

`-k` is the length of the kmers considered by the algorithm (default:2). For k=1, it tries to match the letter frequencies of the training text. For k=2 it tries to match the frequencies of letter pairs.

`-p` is the "temperature" (default: 1.0) of the Metropolis Monte Carlo algorithm. Use a higher temperature if you find the algorithm getting "stuck" in a wrong solution.

`scramble.py`
-------------
Also provided is a tool `scramble.py`. This just makes it easy to generate example cryptograms from input plaintext. Use it as follows:

    python scramble.py plaintext.txt > output.txt


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Trans. Br. mycol. Soc. 20: 178 (1936)

#### Original name
Hygrophorus firmus var. sericeus Corner

### Remarks
null


text:
wityCMS a rencontré une erreur lors de son exécution.

Afficher les erreurs

		{include ./note_view.html}


text:
START_ATF_NAMESPACE
    namespace Info
    {

        using CParkingUnitctor_CParkingUnit2_ptr = void (WINAPIV*)(struct CParkingUnit*);
        using CParkingUnitctor_CParkingUnit2_clbk = void (WINAPIV*)(struct CParkingUnit*, CParkingUnitctor_CParkingUnit2_ptr);
        using CParkingUnitCalcCurHPRate4_ptr = uint16_t (WINAPIV*)(struct CParkingUnit*);
        using CParkingUnitCalcCurHPRate4_clbk = uint16_t (WINAPIV*)(struct CParkingUnit*, CParkingUnitCalcCurHPRate4_ptr);
        using CParkingUnitChangeOwner6_ptr = void (WINAPIV*)(struct CParkingUnit*, struct CPlayer*, char);
        using CParkingUnitChangeOwner6_clbk = void (WINAPIV*)(struct CParkingUnit*, struct CPlayer*, char, CParkingUnitChangeOwner6_ptr);
        using CParkingUnitCreate8_ptr = bool (WINAPIV*)(struct CParkingUnit*, struct _parkingunit_create_setdata*);
        using CParkingUnitCreate8_clbk = bool (WINAPIV*)(struct CParkingUnit*, struct _parkingunit_create_setdata*, CParkingUnitCreate8_ptr);
        using CParkingUnitDestroy10_ptr = bool (WINAPIV*)(struct CParkingUnit*, char);
        using CParkingUnitDestroy10_clbk = bool (WINAPIV*)(struct CParkingUnit*, char, CParkingUnitDestroy10_ptr);
        using CParkingUnitInit12_ptr = void (WINAPIV*)(struct CParkingUnit*, struct _object_id*);
        using CParkingUnitInit12_clbk = void (WINAPIV*)(struct CParkingUnit*, struct _object_id*, CParkingUnitInit12_ptr);
        using CParkingUnitIsRideRight14_ptr = bool (WINAPIV*)(struct CParkingUnit*, struct CPlayer*);
        using CParkingUnitIsRideRight14_clbk = bool (WINAPIV*)(struct CParkingUnit*, struct CPlayer*, CParkingUnitIsRideRight14_ptr);
        using CParkingUnitLoop16_ptr = void (WINAPIV*)(struct CParkingUnit*);
        using CParkingUnitLoop16_clbk = void (WINAPIV*)(struct CParkingUnit*, CParkingUnitLoop16_ptr);
        using CParkingUnitSendMsg_ChangeOwner18_ptr = void (WINAPIV*)(struct CParkingUnit*, char, struct CPlayer*);
        using CParkingUnitSendMsg_ChangeOwner18_clbk = void (WINAPIV*)(struct CParkingUnit*, char, struct CPlayer*, CParkingUnitSendMsg_ChangeOwner18_ptr);
        using CParkingUnitSendMsg_Create20_ptr = void (WINAPIV*)(struct CParkingUnit*);
        using CParkingUnitSendMsg_Create20_clbk = void (WINAPIV*)(struct CParkingUnit*, CParkingUnitSendMsg_Create20_ptr);
        using CParkingUnitSendMsg_Destroy22_ptr = void (WINAPIV*)(struct CParkingUnit*, char);
        using CParkingUnitSendMsg_Destroy22_clbk = void (WINAPIV*)(struct CParkingUnit*, char, CParkingUnitSendMsg_Destroy22_ptr);
        using CParkingUnitSendMsg_FixPosition24_ptr = void (WINAPIV*)(struct CParkingUnit*, int);
        using CParkingUnitSendMsg_FixPosition24_clbk = void (WINAPIV*)(struct CParkingUnit*, int, CParkingUnitSendMsg_FixPosition24_ptr);

        using CParkingUnitdtor_CParkingUnit30_ptr = void (WINAPIV*)(struct CParkingUnit*);
        using CParkingUnitdtor_CParkingUnit30_clbk = void (WINAPIV*)(struct CParkingUnit*, CParkingUnitdtor_CParkingUnit30_ptr);
    }; // end namespace Info
END_ATF_NAMESPACE


text:
<?php

$lang["common_address_1"] = "Адрес 1";
$lang["common_address_2"] = "Адрес 2";
$lang["common_city"] = "Город";
$lang["common_comments"] = "Комментарии";
$lang["common_common"] = "общественно";
$lang["common_confirm_search"] = "Вы выбрали одну или несколько строк, это больше не будет быть выбрано после поиска. Вы уверены, что хотите, чтобы представить этот поиск?";
$lang["common_country"] = "Страна";
$lang["common_date"] = "Date";
$lang["common_delete"] = "Удалить";
$lang["common_print"] = "Print";
$lang["common_det"] = "детали";
$lang["common_edit"] = "редактировать";
$lang["common_email"] = "Электронная почта";
$lang["common_email_invalid_format"] = "Это электронная почта не в нужный формат";
$lang["common_fields_required_message"] = "Красные пробела обязательно";
$lang["common_first_name"] = "Имя";
$lang["common_first_name_required"] = "Имя обязательный пробел";
$lang["common_first_page"] = "First";
$lang["common_gender"] = "Gender";
$lang["common_gender_female"] = "V";
$lang["common_gender_male"] = "M";
$lang["common_inv"] = "инв";
$lang["common_last_name"] = "Фамилия";
$lang["common_last_name_required"] = "Фамилия обязательный пробел";
$lang["common_last_page"] = "Last";
$lang["common_learn_about_project"] = ", чтобы узнать самую последнюю информацию о проекте";
$lang["common_list_of"] = "Список";
$lang["common_logout"] = "Выход";
$lang["common_new"] = "New";
$lang["common_no_persons_to_display"] = "Там нет людей, чтобы отобразить";
$lang["common_or"] = "ИЛИ";
$lang["common_phone_number"] = "Номер телефона";
$lang["common_phone_number_required"] = "";
$lang["common_please_visit_my"] = "пожалуйста, посетите";
$lang["common_powered_by"] = "самоходные из";
$lang["common_price"] = "Цена";
$lang["common_remove"] = "Снимать";
$lang["common_return_policy"] = "Возвратний полис";
$lang["common_search"] = "Пойск";
$lang["common_search_options"] = "Search options";
$lang["common_searched_for"] = "Искали за";
$lang["common_state"] = "Штат";
$lang["common_submit"] = "Подавать";
$lang["common_view_recent_sales"] = "Посмотреть Недавние Продажи";
$lang["common_website"] = "веб-сайт";
$lang["common_welcome"] = "Добро пожаловать";
$lang["common_welcome_message"] = "Добро пожаловать в Open Source Point Of Sale, нажмите модуля ниже, чтобы начать!";
$lang["common_you_are_using_ospos"] = "Вы использоваете Open Source Point Of Sale Версия";
$lang["common_zip"] = "Почтовый индекс";
$lang["common_import"] = "Import";
$lang["common_download_import_template"] = "Download Import Excel Template (CSV)";
$lang["common_import_file_path"] = "file path";
$lang["common_import_excel"] = "Excel Import";
$lang["common_import_full_path"] = "Full path to excel file required";
$lang["common_required"] = "Required";


text:
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;

namespace Xbehave.Sdk
{
    [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Step", Justification = "By design.")]
    internal class StepDefinition : IStepDefinition
    {
        public string Text { get; set; }

        public Func<IStepContext, Task> Body { get; set; }

        public ICollection<Func<IStepContext, Task>> Teardowns { get; } = new List<Func<IStepContext, Task>>();

        public string SkipReason { get; set; }

        public RemainingSteps FailureBehavior { get; set; }

        public GetStepDisplayText DisplayTextFunc { get; set; } =
            (stepText, isBackgroundStep) =>
                (isBackgroundStep ? "(Background) " : null) + stepText;

        public IStepDefinition Skip(string reason)
        {
            this.SkipReason = reason;
            return this;
        }

        public IStepDefinition Teardown(Func<IStepContext, Task> action)
        {
            if (action != null)
            {
                this.Teardowns.Add(action);
            }

            return this;
        }

        public IStepDefinition OnFailure(RemainingSteps behavior)
        {
            this.FailureBehavior = behavior;
            return this;
        }

        public IStepDefinition DisplayText(GetStepDisplayText func)
        {
            this.DisplayTextFunc = func;
            return this;
        }

        IStepBuilder IStepBuilder.Skip(string reason) => this.Skip(reason);

        IStepBuilder IStepBuilder.Teardown(Func<IStepContext, Task> action) => this.Teardown(action);

        IStepBuilder IStepBuilder.OnFailure(RemainingSteps behavior) => this.OnFailure(behavior);
    }
}


text:
// Copyright (c) 2013-present, febit.org. All Rights Reserved.
package org.febit.wit.loaders;

import java.io.IOException;
import java.io.Reader;

public interface Resource {

    /**
     * if exists this resource.
     *
     * @return boolean
     * @since 1.4.1
     */
    boolean exists();

    /**
     * if this resource is begin with code.
     *
     * @return boolean
     * @since 2.0.0
     */
    boolean isCodeFirst();

    Reader openReader() throws IOException;

    /**
     * Return current resource version.
     *
     * @return current resource version.
     * @since 2.7.0
     */
    long version();
}


text:
Select

            <ux-select [(value)]="selected"
                [options]="options"
                [multiple]="multiple | async"
                [display]="display"
                [key]="key"
                [allowNull]="allowNull"
                [disabled]="disabled"
                [dropDirection]="dropDirection"
                [(dropdownOpen)]="dropdownOpen"
                [pageSize]="pageSize"
                [placeholder]="placeholder"
                [readonlyInput]="readonlyInput"
                [clearButton]="clearButton"
                [(recentOptions)]="recentOptions"
                [autoCloseDropdown]="autoCloseDropdown"
                [recentOptionsMaxCount]="recentOptionsMaxCount"
                [listboxAriaLabel]="listboxAriaLabel"
                ariaLabelledby="ux-select-input-label">

                <ng-template #icon *ngIf="multiple | async">

                </ng-template>
            </ux-select>

        Selected location(s): {{selected | json}}

        Recent options: {{recentOptions | json}}

        <ux-accordion>
            <ux-accordion-panel class="accordion-chevron" heading="Customize Example...">

                        options
                        <ux-radio-button [value]="dataSet | async" (valueChange)="dataSet.next($event)"
                            option="strings">strings</ux-radio-button>
                        <ux-radio-button [value]="dataSet | async" (valueChange)="dataSet.next($event)"
                            option="objects">objects</ux-radio-button>

                        <ux-checkbox [value]="multiple | async"
                            (valueChange)="multiple.next($event)">multiple</ux-checkbox>

                        <ux-checkbox [(value)]="disabled">disabled</ux-checkbox>

                        <ux-checkbox [(value)]="allowNull" [disabled]="multiple | async">allowNull</ux-checkbox>

                        <ux-checkbox [(value)]="readonlyInput">readonlyInput</ux-checkbox>

                        <ux-checkbox [(value)]="clearButton" [disabled]="!(multiple | async) && !allowNull">clearButton</ux-checkbox>

                        <ux-checkbox [(value)]="autoCloseDropdown">autoCloseDropdown</ux-checkbox>

                        dropDirection
                        <ux-radio-button [(value)]="dropDirection" option="down">down</ux-radio-button>
                        <ux-radio-button [(value)]="dropDirection" option="up">up</ux-radio-button>
                        <ux-radio-button [(value)]="dropDirection" option="auto">auto</ux-radio-button>

                        placeholder
                        <input type="text" name="placeholder" class="form-control" [(ngModel)]="placeholder">

                        <ux-checkbox
                            [value]="!!recentOptions"
                            (valueChange)="recentOptions = $event ? [] : undefined">
                            recentOptions
                        </ux-checkbox>

                        recentOptionsMaxCount
                        <ux-number-picker
                            [disabled]="!recentOptions"
                            min="1"
                            [(value)]="recentOptionsMaxCount">
                        </ux-number-picker>

                        <ux-checkbox [value]="pagingEnabled | async"
                            (valueChange)="pagingEnabled.next($event)">Enable Option Paging</ux-checkbox>

                        pageSize
                        <ux-number-picker [(value)]="pageSize"
                            [min]="1"
                            [max]="1000"
                            [disabled]="!(pagingEnabled | async)">
                        </ux-number-picker>

            </ux-accordion-panel>
        </ux-accordion>

    The ux-select component allows users to choose one or more items from a set via a dropdown interface. It
    supports filtering and keyboard control. For very large data sets, a paging feature is available, ensuring that data
    is only loaded as required.

    The data set may be a collection of strings or objects. Using the "Customize Example..." section above, the
    options data set can be switched between strings and objects; the JSON display below the select control
    shows the resulting value.

    Paged loading of options can also be enabled using the "Enable Option Paging" checkbox. This can be observed in
    action by scrolling or using the down key to reach the end of the current result set in the select dropdown.

    A custom icon can be used instead of the chevron by adding an ng-template as a child element and identifying it as #icon.
    The ux-select-icon class can be used to provide the default icon styles.

<uxd-api-properties tableTitle="Inputs">

        The selected option (for single select) or array of options (for multiple select).

        The text in the input area. This is used to filter the options dropdown.

        The status of the typeahead dropdown.

        Controls whether the user can select more than one option in the select control. If set to true, selected
        options will appear as tags in the input area. If set to false, the selected value will appear as editable text
        in the input area.

If an array is provided, this is the list of options which can be chosen from. It can be an array of
            strings or custom objects. If custom objects are required, the display property must also be
            set.

If a function is provided, this is used as a callback to dynamically retrieve data in pages. The
            parameters are:

pageNum: number - The index of the requested page, starting from 0.

pageSize: number - The number of items requested.

filter: any - The filter details as provided via the filter binding.

The return value should be either a promise which resolves to an array, or a plain array in case the data
            can be loaded synchronously. An empty array or an array with fewer than pageSize items can be
            returned, which indicates that the end of the data set has been reached.

 string) | string">
        Determines the display value of the options, if they are custom objects. This may be a function or
        a string. If a function is provided, it receives the option object as an argument, and should return the
        appropriate display value. If the name of a property is provided as a string, that property is used as the
        display value.

 string) | string">
        Determines the unique key value of the options, if they are custom objects. This may be a function
        or a string. If a function is provided, it receives the option object as an argument, and should return the
        appropriate key value. If the name of a property is provided as a string, that property is used as the key
        value.

        Controls whether the value of the single select control can be cleared by deleting the selected value in the
        input field. This does not affect the initial state of the control, so specify a value for value if
        null should never be allowed.

        The aria-label to apply to the child input element.

        ID of the element which serves as a label for the child input element.

        The aria-label to apply to the ux-typeahead list element.

        Controls the disabled state of the tag input. If using a FormControl do not use this input, instead
        disable the FormControl.

        The positioning of the typeahead dropdown in relation to its parent. If 'auto' is used the
        typeahead dropdown direction will default to 'down' unless there is not enough space for the
        dropdown to fully display and the dropdown direction will change to 'up'.

        The maximum height of the typeahead dropdown, as a CSS value.

        If true the input field will be readonly and selection can only occur by using the dropdown.

        A template which will be rendered in the dropdown while options are being loaded.

A template which will be rendered in the dropdown for each option. The following context properties are
            available in the template:

option: any - the string or custom object representing the option.

                api: TypeaheadOptionApi - provides the functions getKey,
                getDisplay, getDisplayHtml and getDisabled.
                See the typeahead documentation for
                details.

        A template which will be rendered in the dropdown if no options match the current filter value.

        The number of options to request in a page. This should ideally be more than twice the number of items which fit
        into the height of the dropdown, but this is not required.

        The placeholder text which appears in the text input area when it is empty.

    <tr uxd-api-property name="tagTemplate" type="TemplateRef<TagTemplateContext>">

A template which will be rendered as the content of each selected option.

            The following code snippet shows how to use a custom template to display an icon alongside
            the selected option text:

        <uxd-snippet [content]="snippets.compiled.tagTemplateHtml"></uxd-snippet>

        Defines the autocomplete property on the input field which can be used to prevent the browser from displaying
        autocomplete suggestions.

        Defines if a clear button should be shown whenever one or more values are selected.
        The button will remove selected values. When using a single select allowNull must also be set to true
        for the clear button to be visible.

        Defines the aria label for the clear button.

        An initial list of recently selected options, to be presented above the full list of options. Bind an empty
        array to recentOptions to enable this feature without providing an initial set.

        Maximum number of displayed recently selected options.

        If set to true the select will be marked as required. If using a FormControl do not
        use this input, instead add the required validator to the FormControl. See an example below under
        Validation heading.

        Allows customization of the debounceTime used on the select's input filter.

        Determine if the dropdown panel should close on external click.

A template which will display custom headings for normal options.

A template which will display custom headings for recent options.

</uxd-api-properties>

<uxd-api-properties tableTitle="Outputs">

        Emits when value changes.

        Emits when input changes.

        Emits when dropdownOpen changes.

        Emits when the list of recently selected options changes.

</uxd-api-properties>

<uxd-api-properties tableTitle="TagTemplateContext Interface">

        The string or custom object representing the selected option.

        The zero-based index of the selected option as it appears in the dropdown.

        Provides the functions getTagDisplay, removeTagAt and
        canRemoveTagAt.

</uxd-api-properties>

Validation

    The ux-select component can have validation applied to it like any
    other Angular form element.

    Do not use the disabled or required inputs when using Reactive Forms. Use the
    Reactive Forms API to achieve this instead.

Below is a code example on how to implement validation with the Select component.

<ux-tabset [minimal]="false">
    <ux-tab heading="HTML">
        <uxd-snippet [content]="snippets.compiled.validationHtml"></uxd-snippet>
    </ux-tab>
    <ux-tab heading="TypeScript">
        <uxd-snippet [content]="snippets.compiled.validationTs"></uxd-snippet>
    </ux-tab>
</ux-tabset>

Source code

The following code can be used to create the example above.

<ux-tabset [minimal]="false">
    <ux-tab heading="HTML">
        <uxd-snippet [content]="snippets.compiled.appHtml"></uxd-snippet>
    </ux-tab>
    <ux-tab heading="TypeScript">
        <uxd-snippet [content]="snippets.compiled.appSnippetTs"></uxd-snippet>
    </ux-tab>
    <ux-tab heading="CSS">
        <uxd-snippet [content]="snippets.compiled.appCss"></uxd-snippet>
    </ux-tab>
</ux-tabset>


text:
namespace Mosa.Compiler.Framework.IR
{
	/// <summary>
	/// Loads a value from the stack.
	/// </summary>
	/// <remarks>
	/// The stack load instruction is used to load a value from the stack. The types must be compatible.
	/// </remarks>
	public sealed class StackLoad : ThreeOperandInstruction
	{
		#region Construction

		/// <summary>
		/// Initializes a new instance of <see cref="Load"/>.
		/// </summary>
		public StackLoad()
		{
		}

		#endregion Construction

		#region TwoOperandInstruction Overrides

		/// <summary>
		/// Visitor method for intermediate representation visitors.
		/// </summary>
		/// <param name="visitor">The visitor object.</param>
		/// <param name="context">The context.</param>
		public override void Visit(IIRVisitor visitor, Context context)
		{
			//visitor.StackLoad(context);
		}

		#endregion TwoOperandInstruction Overrides
	}
}


text:
require 'date'
require 'openssl'
require 'sensu-plugin/check/cli'

#
# Check SSL Cert
#
class CheckSSLCert < Sensu::Plugin::Check::CLI
  option :critical,
         description: 'Numbers of days left',
         short: '-c',
         long: '--critical DAYS',
         required: true

  option :warning,
         description: 'Numbers of days left',
         short: '-w',
         long: '--warning DAYS',
         required: true

  option :pem,
         description: 'Path to PEM file',
         short: '-P',
         long: '--pem PEM'

  option :host,
         description: 'Host to validate',
         short: '-h',
         long: '--host HOST'

  option :port,
         description: 'Port to validate',
         short: '-p',
         long: '--port PORT'

  option :servername,
         description: 'Set the TLS SNI (Server Name Indication) extension',
         short: '-s',
         long: '--servername SERVER'

  option :pkcs12,
         description: 'Path to PKCS#12 certificate',
         short: '-C',
         long: '--cert P12'

  option :pass,
         description: 'Pass phrase for the private key in PKCS#12 certificate',
         short: '-S',
         long: '--pass '

  def ssl_cert_expiry
    `openssl s_client -servername #{config[:servername]} -connect #{config[:host]}:#{config[:port]} < /dev/null 2>&1 | openssl x509 -enddate -noout`.split('=').last
  end

  def ssl_pem_expiry
    OpenSSL::X509::Certificate.new(File.read config[:pem]).not_after # rubocop:disable Style/NestedParenthesizedCalls
  end

  def ssl_pkcs12_expiry
    `openssl pkcs12 -in #{config[:pkcs12]} -nokeys -nomacver -passin pass:"#{config[:pass]}" | openssl x509 -noout -enddate | grep -v MAC`.split('=').last
  end

  def validate_opts
    if !config[:pem] && !config[:pkcs12]
      unknown 'Host and port required' unless config[:host] && config[:port]
    elsif config[:pem]
      unknown 'No such cert' unless File.exist? config[:pem]
    elsif config[:pkcs12]
      if !config[:pass]
        unknown 'No pass phrase specified for PKCS#12 certificate'
      else
        unknown 'No such cert' unless File.exist? config[:pkcs12]
      end
    end
    config[:servername] = config[:host] unless config[:servername]
  end

  def run
    validate_opts

    expiry = if config[:pem]
               ssl_pem_expiry
             elsif config[:pkcs12]
               ssl_pkcs12_expiry
             else
               ssl_cert_expiry
             end

    days_until = (Date.parse(expiry.to_s) - Date.today).to_i

    if days_until < 0 # rubocop:disable Style/NumericPredicate
      critical "Expired #{days_until.abs} days ago"
    elsif days_until < config[:critical].to_i
      critical "#{days_until} days left"
    elsif days_until < config[:warning].to_i
      warning "#{days_until} days left"
    else
      ok "#{days_until} days left"
    end
  end
end


text:
import io.hydrosphere.mist.api._
import org.apache.spark.rdd.RDD

import scala.collection.mutable

object StreamingTextSearch extends MistJob with StreamingSupport with Publisher {
  def execute(filter: String): Map[String, Any] = {
    context.setLogLevel("INFO")

    val ssc = streamingContext

    val rddQueue = new mutable.Queue[RDD[String]]()

    val inputStream = ssc.queueStream(rddQueue)

    val filtredStream = inputStream.filter(x => x.toUpperCase.contains(filter.toUpperCase))

    filtredStream.foreachRDD{ (rdd, time) =>
      publisher.publish(Map(
        "time" -> time,
        "length" -> rdd.collect().length,
        "collection" -> rdd.collect().toList.toString
      ).toString())
    }

    ssc.start()

    for (i <- 1 to 1000) {
      rddQueue.synchronized {
        rddQueue += ssc.sparkContext.makeRDD( Seq("test message", "[error] message", "[warning] test message", "[info] test message"), 10)
      }
      Thread.sleep(500)
    }
    ssc.stop()
    Map.empty[String, Any]
  }
}


text:
package org.apache.cassandra.repair;

import org.apache.cassandra.db.ColumnFamilyStore;
import org.apache.cassandra.db.Keyspace;
import org.apache.cassandra.db.compaction.CompactionManager;
import org.apache.cassandra.net.IVerbHandler;
import org.apache.cassandra.net.MessageIn;
import org.apache.cassandra.repair.messages.RepairMessage;
import org.apache.cassandra.repair.messages.SyncRequest;
import org.apache.cassandra.repair.messages.ValidationRequest;
import org.apache.cassandra.service.ActiveRepairService;

/**
 * Handles all repair related message.
 *
 * @since 2.0
 */
public class RepairMessageVerbHandler implements IVerbHandler<RepairMessage>
{
    public void doVerb(MessageIn<RepairMessage> message, int id)
    {
        // TODO add cancel/interrupt message
        RepairJobDesc desc = message.payload.desc;
        switch (message.payload.messageType)
        {
            case VALIDATION_REQUEST:
                ValidationRequest validationRequest = (ValidationRequest) message.payload;
                // trigger read-only compaction
                ColumnFamilyStore store = Keyspace.open(desc.keyspace).getColumnFamilyStore(desc.columnFamily);
                Validator validator = new Validator(desc, message.from, validationRequest.gcBefore);
                CompactionManager.instance.submitValidation(store, validator);
                break;

            case SYNC_REQUEST:
                // forwarded sync request
                SyncRequest request = (SyncRequest) message.payload;
                StreamingRepairTask task = new StreamingRepairTask(desc, request);
                task.run();
                break;

            default:
                ActiveRepairService.instance.handleMessage(message.from, message.payload);
                break;
        }
    }
}