<mods xmlns="http://www.loc.gov/mods/v3" xmlns:exslt="http://exslt.org/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd" version="3.3" ID="P0b002ee18115afd1">
<name type="corporate">
 <namePart>United States Government Printing Office</namePart>
 <role>
  <roleTerm type="text" authority="marcrelator">printer</roleTerm>
  <roleTerm type="code" authority="marcrelator">prt</roleTerm>
</role>
 <role>
  <roleTerm type="text" authority="marcrelator">distributor</roleTerm>
  <roleTerm type="code" authority="marcrelator">dst</roleTerm>
</role>
</name>
<name type="corporate">
 <namePart>United States</namePart>
 <namePart>United States District Court Northern District of New York</namePart>
 <role>
  <roleTerm type="text" authority="marcrelator">author</roleTerm>
  <roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
 <description>Government Organization</description>
</name>
<typeOfResource>text</typeOfResource>
<genre authority="marcgt">government publication</genre>
<language>
 <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</language>
<extension>
 <collectionCode>USCOURTS</collectionCode>
 <category>Judicial Publications</category>
 <branch>judicial</branch>
 <dateIngested>2011-11-16</dateIngested>
</extension>
<originInfo>
 <publisher>Administrative Office of the United States Courts</publisher>
 <dateIssued encoding="w3cdtf">2009-01-14</dateIssued>
 <issuance>monographic</issuance>
</originInfo>
<physicalDescription>
 <note type="source content type">deposited</note>
 <digitalOrigin>born digital</digitalOrigin>
</physicalDescription>
<classification authority="sudocs">JU 4.15</classification>
<identifier type="uri">http://www.gpo.gov/fdsys/pkg/USCOURTS-nynd-5_08-cr-00690</identifier>
<identifier type="local">P0b002ee18115afd1</identifier>
<recordInfo>
 <recordContentSource authority="marcorg">DGPO</recordContentSource>
 <recordCreationDate encoding="w3cdtf">2011-11-16</recordCreationDate>
 <recordChangeDate encoding="w3cdtf">2011-12-22</recordChangeDate>
 <recordIdentifier source="DGPO">USCOURTS-nynd-5_08-cr-00690</recordIdentifier>
 <recordOrigin>machine generated</recordOrigin>
 <languageOfCataloging>
  <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</languageOfCataloging>
</recordInfo>
<accessCondition type="GPO scope determination">fdlp</accessCondition>
<extension>
 <docClass>USCOURTS</docClass>
 <accessId>USCOURTS-nynd-5_08-cr-00690</accessId>
 <courtType>District</courtType>
 <courtCode>nynd</courtCode>
 <courtCircuit>2nd</courtCircuit>
 <courtState>New York</courtState>
 <courtSortOrder>2352</courtSortOrder>
 <caseNumber>5:08-cr-00690</caseNumber>
 <caseOffice>Syracuse</caseOffice>
 <caseType>criminal</caseType>
 <party firstName="Estella" fullName="Estella Maya-Maya" lastName="Maya-Maya" role="Defendant"></party>
 <party fullName="USA" lastName="USA" role="Plaintiff"></party>
</extension>
<titleInfo>
 <title>USA v. Maya-Maya</title>
 <partNumber>5:08-cr-00690</partNumber>
</titleInfo>
<location>
 <url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/pkg/USCOURTS-nynd-5_08-cr-00690/content-detail.html</url>
</location>
<classification authority="sudocs">JU 4.15</classification>
<identifier type="preferred citation">5:08-cr-00690;08-690</identifier>
<name type="corporate">
 <namePart>United States District Court Northern District of New York</namePart>
 <namePart>2nd Circuit</namePart>
 <namePart>Syracuse</namePart>
 <affiliation>U.S. Courts</affiliation>
 <role>
  <roleTerm authority="marcrelator" type="text">author</roleTerm>
  <roleTerm authority="marcrelator" type="code">aut</roleTerm>
</role>
</name>
<name type="personal">
 <displayForm>Estella Maya-Maya</displayForm>
 <namePart type="family">Maya-Maya</namePart>
 <namePart type="given">Estella</namePart>
 <namePart type="termsOfAddress"></namePart>
 <description>Defendant</description>
</name>
<name type="personal">
 <displayForm>USA</displayForm>
 <namePart type="family">USA</namePart>
 <namePart type="given"></namePart>
 <namePart type="termsOfAddress"></namePart>
 <description>Plaintiff</description>
</name>
<extension>
 <docClass>USCOURTS</docClass>
 <accessId>USCOURTS-nynd-5_08-cr-00690</accessId>
 <courtType>District</courtType>
 <courtCode>nynd</courtCode>
 <courtCircuit>2nd</courtCircuit>
 <courtState>New York</courtState>
 <courtSortOrder>2352</courtSortOrder>
 <caseNumber>5:08-cr-00690</caseNumber>
 <caseOffice>Syracuse</caseOffice>
 <caseType>criminal</caseType>
 <party firstName="Estella" fullName="Estella Maya-Maya" lastName="Maya-Maya" role="Defendant"></party>
 <party fullName="USA" lastName="USA" role="Plaintiff"></party>
 <state>New York</state>
</extension>
<relatedItem type="constituent" ID="id-USCOURTS-nynd-5_08-cr-00690-0" xlink:href="http://www.gpo.gov/fdsys/granule/USCOURTS-nynd-5_08-cr-00690/USCOURTS-nynd-5_08-cr-00690-0/mods.xml">
 <titleInfo>
  <title>USA v. Maya-Maya</title>
  <subTitle>JUDGMENT: as to Estella Maya-Maya (1), Count(s) 1, Time served (66 days) followed by 1 year of supervised release, Fine waived, Special Assessment waived. Signed by Judge Glenn T. Suddaby on 1/14/09. (jmb)</subTitle>
  <partNumber>0</partNumber>
</titleInfo>
 <originInfo>
  <dateIssued>2009-01-14</dateIssued>
</originInfo>
 <relatedItem xlink:href="http://www.gpo.gov/fdsys/pkg/pdf/USCOURTS-nynd-5_08-cr-00690-0.pdf" type="otherFormat">
  <identifier type="FDsys Unique ID">D09002ee18141ab7a</identifier>
</relatedItem>
 <identifier type="uri">http://www.gpo.gov/fdsys/granule/USCOURTS-nynd-5_08-cr-00690/USCOURTS-nynd-5_08-cr-00690-0</identifier>
 <identifier type="former granule identifier">nynd-5_08-cr-00690_0.pdf</identifier>
 <location>
  <url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/granule/USCOURTS-nynd-5_08-cr-00690/USCOURTS-nynd-5_08-cr-00690-0/content-detail.html</url>
  <url access="raw object" displayLabel="PDF rendition">http://www.gpo.gov/fdsys/pkg/USCOURTS-nynd-5_08-cr-00690/pdf/USCOURTS-nynd-5_08-cr-00690-0.pdf</url>
</location>
 <extension>
  <searchTitle>USCOURTS 5:08-cr-00690; USA v. Maya-Maya; </searchTitle>
  <courtName>United States District Court Northern District of New York</courtName>
  <state>New York</state>
  <accessId>USCOURTS-nynd-5_08-cr-00690-0</accessId>
  <sequenceNumber>0</sequenceNumber>
  <dateIssued>2009-01-14</dateIssued>
  <docketText>JUDGMENT: as to Estella Maya-Maya (1), Count(s) 1, Time served (66 days) followed by 1 year of supervised release, Fine waived, Special Assessment waived. Signed by Judge Glenn T. Suddaby on 1/14/09. (jmb)</docketText>
</extension>
</relatedItem>
</mods>


//
//     Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50).
//
//     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//

#import <objc/NSObject.h>

#import <CFNetwork/NSSecureCoding-Protocol.h>

@class NSArray, NSDateInterval, __CFN_TaskMetrics;

@interface NSURLSessionTaskMetrics : NSObject <NSSecureCoding>
{
    __CFN_TaskMetrics *__metrics;
}

+ (id)new;
+ (BOOL)supportsSecureCoding;
- (void).cxx_destruct;
@property(readonly, nonatomic) __CFN_TaskMetrics *_metrics; // @synthesize _metrics=__metrics;
- (id)description;
@property(readonly) unsigned long long redirectCount;
@property(readonly, copy) NSDateInterval *taskInterval;
@property(readonly, copy) NSArray *transactionMetrics;
- (id)initWithMetrics:(id)arg1;
- (id)init;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;

@end


<!DOCTYPE html>

    <title>YMComment Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>

 Docs (18% documented)

         Reference

        YMComment Class Reference

            Classes

                AppDelegate

                User

                YMActionSheet

                YMBaseViewController

                YMCategoryBottomView

                YMCategoryCollectionViewCell

                YMCategoryHeaderViewController

                YMCategoryViewController

                YMChannel

                YMCollection

                YMCollectionDetailController

                YMCollectionPost

                YMCollectionTableViewCell

                YMCollectionViewCell

                YMComment

                YMCommentCell

                YMDanTangViewController

                YMDetailChoiceButtonView

                YMDetailCollectionViewCell

                YMDetailLayout

                YMDetailScrollView

                YMDetailViewController

                YMGroup

                YMHomeCell

                YMHomeItem

                YMLoginViewController

                YMMeChoiceView

                YMMeFooterView

                YMMeViewController

                YMMessageViewController

                YMMineHeaderView

                YMNavigationController

                YMNetworkTool

                YMNewfeatureCell

                YMNewfeatureLayout

                YMNewfeatureViewController

                YMPostDetailViewController

                YMProduct

                YMProductDetail

                YMProductDetailBottomView

                YMProductDetailToolBar

                YMProductDetailTopView

                YMProductDetailViewController

                YMProductViewController

                YMRefreshControl

                YMRefreshView

                YMRegisterViewController

                YMSearchRecordView

                YMSearchResult

                YMSearchViewController

                YMSeeAllController

                YMSeeAllTopicCell

                YMSetting

                YMSettingCell

                YMSettingViewController

                YMShareButtonView

                YMSortCell

                YMSortTableView

                YMTMALLViewController

                YMTabBarController

                YMTopHeaderView

                YMTopicViewController

                YMVerticalButton

            Global Variables

                BASE_URL

                RETURN_OK

                SCREENH

                SCREENW

                YMFirstLaunch

                categoryCollectionCellID

                collectionCellID

                collectionTableCellID

                commentCellID

                detailCollectionViewCellID

                homeCellID

                isIPhone5

                isIPhone6

                isIPhone6P

                isLogin

                kAnimationDuration

                kCornerRadius

                kIndicatorViewH

                kMargin

                kNewFeatureCount

                kTitlesViewH

                kTitlesViewY

                kTopViewH

                kYMMineHeaderImageHeight

                kitemH

                kitemW

                klineWidth

                messageCellID

                newFeatureID

                searchCollectionCellID

                seeAllcellID

                sortTableViewCellID

            Enums

                YMOtherLoginButtonType

                YMShareButtonType

                YMTopicType

            Extensions

                String

                UITableView

                UIView

            Functions

                YMColor(_:g:b:a:)

                YMGlobalColor()

                YMGlobalRedColor()

            Protocols

                YMCategoryBottomViewDelegate

                YMCollectionViewCellDelegate

                YMDetailChoiceButtonViewDegegate

                YMHomeCellDelegate

                YMProductDetailToolBarDelegate

                YMSortTableViewDelegate

                YMTopHeaderViewDelegate

YMComment

Undocumented

                    content

Undocumented

                    id

Undocumented

                    created_at

Undocumented

                    show

Undocumented

                    item_id

Undocumented

                    user

Undocumented

                    init(dict:)

Undocumented

© 2016 . All rights reserved. (Last updated: 2016-07-27)

Generated by jazzy ♪♫ v0.6.2, a Realm project.


using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Waher.Persistence.Serialization.NullableTypes
{
	/// <summary>
	/// Serializes a nullable <see cref="Int64"/> value.
	/// </summary>
	public class NullableInt64Serializer : NullableValueTypeSerializer
	{
		/// <summary>
		/// Serializes a nullable <see cref="Int64"/> value.
		/// </summary>
		public NullableInt64Serializer()
		{
		}

		/// <summary>
		/// What type of object is being serialized.
		/// </summary>
		public override Type ValueType
		{
			get
			{
				return typeof(long?);
			}
		}

		/// <summary>
		/// Deserializes an object from a binary source.
		/// </summary>
		/// <param name="Reader">Deserializer.</param>
		/// <param name="DataType">Optional datatype. If not provided, will be read from the binary source.</param>
		/// <param name="Embedded">If the object is embedded into another.</param>
		/// <returns>Deserialized object.</returns>
		public override object Deserialize(IDeserializer Reader, uint? DataType, bool Embedded)
		{
			if (!DataType.HasValue)
				DataType = Reader.ReadBits(6);

			switch (DataType.Value)
			{
				case ObjectSerializer.TYPE_BOOLEAN: return Reader.ReadBoolean() ? (long?)1 : (long?)0;
				case ObjectSerializer.TYPE_BYTE: return (long?)Reader.ReadByte();
				case ObjectSerializer.TYPE_INT16: return (long?)Reader.ReadInt16();
				case ObjectSerializer.TYPE_INT32: return (long?)Reader.ReadInt32();
				case ObjectSerializer.TYPE_INT64: return (long?)Reader.ReadInt64();
				case ObjectSerializer.TYPE_SBYTE: return (long?)Reader.ReadSByte();
				case ObjectSerializer.TYPE_UINT16: return (long?)Reader.ReadUInt16();
				case ObjectSerializer.TYPE_UINT32: return (long?)Reader.ReadUInt32();
				case ObjectSerializer.TYPE_UINT64: return (long?)Reader.ReadUInt64();
				case ObjectSerializer.TYPE_DECIMAL: return (long?)Reader.ReadDecimal();
				case ObjectSerializer.TYPE_DOUBLE: return (long?)Reader.ReadDouble();
				case ObjectSerializer.TYPE_SINGLE: return (long?)Reader.ReadSingle();
				case ObjectSerializer.TYPE_STRING:
				case ObjectSerializer.TYPE_CI_STRING: return (long?)long.Parse(Reader.ReadString());
				case ObjectSerializer.TYPE_MIN: return long.MinValue;
				case ObjectSerializer.TYPE_MAX: return long.MaxValue;
				case ObjectSerializer.TYPE_NULL: return null;
				default: throw new Exception("Expected a nullable Int64 value.");
			}
		}

		/// <summary>
		/// Serializes an object to a binary destination.
		/// </summary>
		/// <param name="Writer">Serializer.</param>
		/// <param name="WriteTypeCode">If a type code is to be output.</param>
		/// <param name="Embedded">If the object is embedded into another.</param>
		/// <param name="Value">The actual object to serialize.</param>
		public override void Serialize(ISerializer Writer, bool WriteTypeCode, bool Embedded, object Value)
		{
			long? Value2 = (long?)Value;

			if (WriteTypeCode)
			{
				if (!Value2.HasValue)
				{
					Writer.WriteBits(ObjectSerializer.TYPE_NULL, 6);
					return;
				}
				else
					Writer.WriteBits(ObjectSerializer.TYPE_INT64, 6);
			}
			else if (!Value2.HasValue)
				throw new NullReferenceException("Value cannot be null.");

			Writer.Write(Value2.Value);
		}

	}
}


//
//  TJPAdvertiseView.m
//  TJPYingKe
//
//  Created by Walkman on 2017/3/20.
//  Copyright © 2017年 AaronTang. All rights reserved.
//

#import "TJPAdvertiseView.h"
#import "TJPCacheHelper.h"
#import <SDWebImage/SDWebImageManager.h>

static NSInteger adShowTime = 3;
static CFTimeInterval const duration = 0.25f;

@interface TJPAdvertiseView ()

@property (nonatomic, weak) UIImageView *adImageView; //广告图片
@property (nonatomic, weak) UIButton *showTimeBtn;
@property (nonatomic, weak) NSTimer *timer;

@end

@implementation TJPAdvertiseView
#pragma mark - lazy
- (UIImageView *)adImageView {
    if (!_adImageView) {
        UIImageView *adImageView = [[UIImageView alloc] init];
        adImageView.userInteractionEnabled = YES;
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(adImageTap)];
        [adImageView addGestureRecognizer:tap];
        [self addSubview:adImageView];
        _adImageView = adImageView;
    }
    return _adImageView;
}

- (UIButton *)showTimeBtn {
    if (!_showTimeBtn) {
        UIButton *showTimeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [showTimeBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [showTimeBtn setBackgroundColor:TJPColorA(0, 0, 0, 0.8)];
        showTimeBtn.titleLabel.font = [UIFont systemFontOfSize:15.f];
        showTimeBtn.layer.cornerRadius = 3;
        showTimeBtn.layer.masksToBounds = YES;
        [showTimeBtn addTarget:self action:@selector(goHomePage) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:showTimeBtn];
        _showTimeBtn = showTimeBtn;

    }
    return _showTimeBtn;
}

- (NSTimer *)timer {
    if (!_timer) {
        NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerGo) userInfo:nil repeats:YES];
        [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];
        _timer = timer;
    }
    return _timer;
}

#pragma mark - instancetype
+ (instancetype)TJPAdvertiseViewWithType:(TJPAdvertiseViewType)type {
    TJPAdvertiseView *advertiseView = [[TJPAdvertiseView alloc] initWithType:type];

    return advertiseView;
}

- (instancetype)initWithType:(TJPAdvertiseViewType)type {
    if (self = [super init]) {
        if (type == TJPAdvertiseViewTypeFullScreen) {
            self.adImageView.frame = [UIScreen mainScreen].bounds;
        }else if (type == TJPAdvertiseViewTypeLogo) {
            self.adImageView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight - kScreenWidth / 3);
        }else {
            self.adImageView.frame = [UIScreen mainScreen].bounds;
        }
        [self initialization];
    }
    return self;
}

- (void)initialization {
    self.frame = [UIScreen mainScreen].bounds;
    UIImage *launchImage = [UIImage imageNamed:[self getLaunchImage]];
    self.backgroundColor = [UIColor colorWithPatternImage:launchImage];
    //timer
    [self timer];
}

- (void)layoutSubviews {
    [super layoutSubviews];

    [_showTimeBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-20);
        make.top.offset(30);
        make.size.mas_equalTo(CGSizeMake(50, 20));
    }];

}

#pragma mark - setter&getter
- (void)setLocalImageName:(NSString *)localImageName {
    _localImageName = localImageName;
}

#pragma mark - Method implementation
- (void)adImageTap {
    if (self.clickBlock) {
        self.clickBlock([TJPCacheHelper getAdvertiseLink]);
    }
}

- (void)goHomePage {
    [self advertiseViewHidden];
}

/** 展示广告*/
- (void)advertiseShow {
    //1.判断缓存中是否有图片
    UIImage *lastCacheImage = [[SDWebImageManager sharedManager].imageCache imageFromDiskCacheForKey:[TJPCacheHelper getAdvertiseImage]];
    if (!lastCacheImage) {
        //2.判断是否有本地图片
        if (!_localImageName.length) { //没有本地图片
            //3.下载图片
            [self downloadAdvertise];
            //4.移除此视图
            self.hidden = YES;
            [self remove];
        }else {
            _adImageView.image = [UIImage imageNamed:_localImageName];
            [self downloadAdvertise];
        }
    }else {
        _adImageView.image = lastCacheImage;
    }
}

//下载广告
- (void)downloadAdvertise {
    [[TJPRequestDataTool shareInstance] getAdvertiseModel:^(TJPAdvertiseModel *model) {
        NSURL *imageUrl = [NSURL URLWithString:model.image];
        if (![model.image hasPrefix:@"http://"]) {
            imageUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kTJPCommonServiceAPI, model.image]];
        }
        //通过sd下载
        [[SDWebImageManager sharedManager] downloadImageWithURL:imageUrl
                                                        options:SDWebImageAvoidAutoSetImage
                                                       progress:nil
                                                      completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
                                                          [TJPCacheHelper setAdvertiseImage:model.image];
                                                          [TJPCacheHelper setAdvertiseLink:model.link];
                                                          TJPLog(@"广告图片下载成功");
                                                      }];

    }];
}

//定时器方法
- (void)timerGo {
    if (adShowTime == 0) {
        //销毁定时器
        [_timer invalidate];
        _timer = nil;
        //隐藏视图
        [self timeBtnHidden];
        [self advertiseViewHidden];
    }else {
        [self.showTimeBtn setTitle:[NSString stringWithFormat:@"跳过%@", @(adShowTime--)] forState:UIControlStateNormal];
    }
}

//按钮隐藏
- (void)timeBtnHidden {
    CABasicAnimation *opacityAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
    opacityAnimation.duration = duration;
    opacityAnimation.fromValue = [NSNumber numberWithFloat:1.0];
    opacityAnimation.toValue = [NSNumber numberWithFloat:0.1];
    opacityAnimation.removedOnCompletion = NO;
    opacityAnimation.fillMode = kCAFillModeForwards;
    [_showTimeBtn.layer addAnimation:opacityAnimation forKey:@"timeBtnHidden"];
}

//隐藏广告视图
- (void)advertiseViewHidden {
    [UIView animateWithDuration:duration animations:^{
        self.alpha = 0;
        _adImageView.alpha = 0;
    } completion:^(BOOL finished) {
        [self remove];
    }];
}
//移除
- (void)remove {
    [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
    [self removeFromSuperview];
}
/** 清除广告图片缓存*/
- (void)cleanAdvertiseImageCache {
    [[SDImageCache sharedImageCache] removeImageForKey:[TJPCacheHelper getAdvertiseImage]];
    [TJPCacheHelper removeAdvertiseAllData];
}

//获取启动图片
- (NSString *)getLaunchImage {
    NSString *launchImageName = nil;
    NSString *orentationStr = @"Portrait";
    CGSize viewSize = [UIScreen mainScreen].bounds.size;
    NSArray <NSDictionary *>*launchImages = [[[NSBundle mainBundle] infoDictionary] valueForKey:@"UILaunchImages"];
    for (NSDictionary *dic in launchImages) {
        CGSize imageSize = CGSizeFromString(dic[@"UILaunchImageSize"]);
        if (CGSizeEqualToSize(imageSize, viewSize) && [orentationStr isEqualToString:dic[@"UILaunchImageOrientation"]]) {
            launchImageName = dic[@"UILaunchImageName"];
        }
    }
    return launchImageName;
}

#pragma mark - dealloc
- (void)dealloc {
    TJPLogFunc
}

@end


<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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.
*/
 -->

<resources xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="recent_task_option_split_screen" msgid="5353188922202653570">"බෙදුම් තිරය"</string>
    <string name="recent_task_option_pin" msgid="7929860679018978258">"අමුණන්න"</string>
    <string name="accessibility_desc_recent_apps" msgid="1444379410873162882">"දළ විශ්ලේෂණය"</string>
    <string name="recents_empty_message" msgid="7040467240571714191">"මෑත අයිතම නැත"</string>
    <string name="accessibility_close_task" msgid="5354563209433803643">"වසන්න"</string>
    <string name="recents_clear_all" msgid="5328176793634888831">"සියල්ල හිස් කරන්න"</string>
    <string name="accessibility_recent_apps" msgid="4058661986695117371">"මෑත යෙදුම්"</string>
</resources>


import expectThrow from '../helpers/expectThrow';
import expectEvent from '../helpers/expectEvent';

const WhitelistMock = artifacts.require('WhitelistMock');

require('chai')
  .use(require('chai-as-promised'))
  .should();

contract('Whitelist', function (accounts) {
  let mock;

  const [
    owner,
    whitelistedAddress1,
    whitelistedAddress2,
    anyone,
  ] = accounts;

  const whitelistedAddresses = [whitelistedAddress1, whitelistedAddress2];

  before(async function () {
    mock = await WhitelistMock.new();
  });

  context('in normal conditions', () => {
    it('should add address to the whitelist', async function () {
      await expectEvent.inTransaction(
        mock.addAddressToWhitelist(whitelistedAddress1, { from: owner }),
        'WhitelistedAddressAdded'
      );
      const isWhitelisted = await mock.whitelist(whitelistedAddress1);
      isWhitelisted.should.be.equal(true);
    });

    it('should add addresses to the whitelist', async function () {
      await expectEvent.inTransaction(
        mock.addAddressesToWhitelist(whitelistedAddresses, { from: owner }),
        'WhitelistedAddressAdded'
      );
      for (let addr of whitelistedAddresses) {
        const isWhitelisted = await mock.whitelist(addr);
        isWhitelisted.should.be.equal(true);
      }
    });

    it('should remove address from the whitelist', async function () {
      await expectEvent.inTransaction(
        mock.removeAddressFromWhitelist(whitelistedAddress1, { from: owner }),
        'WhitelistedAddressRemoved'
      );
      let isWhitelisted = await mock.whitelist(whitelistedAddress1);
      isWhitelisted.should.be.equal(false);
    });

    it('should remove addresses from the the whitelist', async function () {
      await expectEvent.inTransaction(
        mock.removeAddressesFromWhitelist(whitelistedAddresses, { from: owner }),
        'WhitelistedAddressRemoved'
      );
      for (let addr of whitelistedAddresses) {
        const isWhitelisted = await mock.whitelist(addr);
        isWhitelisted.should.be.equal(false);
      }
    });

    it('should allow whitelisted address to call #onlyWhitelistedCanDoThis', async () => {
      await mock.addAddressToWhitelist(whitelistedAddress1, { from: owner });
      await mock.onlyWhitelistedCanDoThis({ from: whitelistedAddress1 })
        .should.be.fulfilled;
    });
  });

  context('in adversarial conditions', () => {
    it('should not allow "anyone" to add to the whitelist', async () => {
      await expectThrow(
        mock.addAddressToWhitelist(whitelistedAddress1, { from: anyone })
      );
    });

    it('should not allow "anyone" to remove from the whitelist', async () => {
      await expectThrow(
        mock.removeAddressFromWhitelist(whitelistedAddress1, { from: anyone })
      );
    });

    it('should not allow "anyone" to call #onlyWhitelistedCanDoThis', async () => {
      await expectThrow(
        mock.onlyWhitelistedCanDoThis({ from: anyone })
      );
    });
  });
});


{-# LANGUAGE DeriveAnyClass, DeriveGeneric #-}

module Stan.AST.Pretty where

import Stan.AST
import Text.PrettyPrint.HughesPJClass

instance Pretty Stan where
  pPrint (Model ds) = text "model {"
                      $$ nest 2 (ppDecls ds)
                      $$ char '}'
  pPrint (Parameters ds)
                    = text "parameters {"
                      $$ nest 2 (ppDecls ds)
                      $$ char '}'
  pPrint (TransformedParameters ds)
                    = text "transformed parameters {"
                      $$ nest 2 (ppDecls ds)
                      $$ char '}'
  pPrint (Data ds) = text "data {"
                      $$ nest 2 (ppDecls ds)
                      $$ char '}'
  pPrint (TransformedData ds)
                    = text "transformed data {"
                      $$ nest 2 (ppDecls ds)
                      $$ char '}'
  pPrint (GeneratedQuantities ds)
                    = text "generated quantities {"
                      $$ nest 2 (ppDecls ds)
                      $$ char '}'

ppStans :: [Stan] -> String
ppStans = render . vcat . map pPrint

ppDecls :: [Decl] -> Doc
ppDecls = vcat . map ((<>(char ';')) . pPrint)

instance Pretty Decl where
  pPrint (t ::: (nm, ixs)) = pPrint t <+> text nm <> mcommasepBrackets (map pPrint ixs)
  pPrint ((nm,ixes) := e) = (text nm <> mcommasepBrackets (map pPrint ixes))
                                  <+> text "=" <+> pPrint e
  pPrint ((nm,ixes) :~ (dnm, es)) = (text nm <> mcommasepBrackets (map pPrint ixes))
                                  <+> text "~" <+> text dnm <> parens (commasep (map pPrint es))
  pPrint (For vnm elo ehi ds) = let range = pPrint elo <> char ':' <> pPrint ehi
                                in text "for" <+> parens (text vnm <+> text "in" <+> range) <+> char '{'
                                $$ nest 2 (ppDecls ds)
                                $$ char '}'
  pPrint (Print s es) = text "print" <> parens (commasep $ text (show s) : map pPrint es)

instance Pretty Type where
  pPrint Real = text "real"
  pPrint Int = text "int"
  pPrint (Bounded Nothing Nothing t) = pPrint t
  pPrint (Bounded (Just e) Nothing t) = pPrint t <> angles ( ppLowerBound e)
  pPrint (Bounded Nothing (Just e) t) = pPrint t <> angles ( ppUpperBound e)
  pPrint (Bounded (Just e1) (Just e2) t) = pPrint t <> angles ( ppLowerBound e1 <> comma <> ppUpperBound e2)

ppLowerBound :: Expr -> Doc
ppLowerBound e = text "lower=" <> pPrint e
ppUpperBound :: Expr -> Doc
ppUpperBound e = text "upper=" <> pPrint e

angles :: Doc -> Doc
angles d = char '<' <> d <> char '>'

commasep :: [Doc] -> Doc
commasep = hcat . punctuate comma

mcommasepBrackets ::  [Doc] -> Doc
mcommasepBrackets [] = empty
mcommasepBrackets ds = brackets $ commasep ds

instance Pretty Expr where
  pPrintPrec _ _ (Var v) = text v
  pPrintPrec _ _ (LitInt x) = int x
  pPrintPrec _ _ (LitFloat x) = float x
  pPrintPrec l r (Ix e es) = pPrintPrec l r e <> brackets (commasep (map (pPrintPrec l r) es))
  pPrintPrec l r (BinOp s e1 e2)
    = let prec = opPrec s
      in maybeParens (r >= prec) $ pPrintPrec l prec e1 <> text s <> pPrintPrec l prec e2
  pPrintPrec l r (Apply fnm es) = text fnm <> parens (commasep (map (pPrintPrec l r) es))

pp :: Pretty a => a -> String
pp = render . pPrint

opPrec :: String -> Rational
opPrec "+" = 6
opPrec "-" = 6
opPrec "*" = 7
opPrec "/" = 7
opPrec _ = 1


package MIME::Field::ConTraEnc;

=head1 NAME

MIME::Field::ConTraEnc - a "Content-transfer-encoding" field

=head1 DESCRIPTION

A subclass of Mail::Field.

I<Don't use this class directly... its name may change in the future!>
Instead, ask Mail::Field for new instances based on the field name!

=head1 SYNOPSIS

    use Mail::Field;
    use MIME::Head;

    # Create an instance from some text:
    $field = Mail::Field->new('Content-transfer-encoding', '7bit');

    # Get the encoding.
    #    Possible values: 'binary', '7bit', '8bit', 'quoted-printable',
    #    'base64' and '' (unspecified).  Note that there can't be a
    #    single default for this, since it depends on the content type!
    $encoding = $field->encoding;

=head1 SEE ALSO

L<MIME::Field::ParamVal>, L<Mail::Field>

=head1 AUTHOR

Eryq (F<eryq@zeegee.com>), ZeeGee Software Inc (F<http://www.zeegee.com>).
Dianne Skoll (dfs@roaringpenguin.com) http://www.roaringpenguin.com

=cut

require 5.001;
use strict;
use MIME::Field::ParamVal;
use vars qw($VERSION @ISA);

@ISA = qw(MIME::Field::ParamVal);

# The package version, both in 1.23 style *and* usable by MakeMaker:
$VERSION = "5.509";

# Install it:
bless([])->register('Content-transfer-encoding');

#------------------------------

sub encoding {
    shift->paramstr('_', @_);
}

#------------------------------
1;


/*
 *  Driver for Microtune MT2060 "Single chip dual conversion broadband tuner"
 *
 *  Copyright (c) 2006 Olivier DANET <odanet@caramail.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=
 */

#ifndef MT2060_H
#define MT2060_H

struct dvb_frontend;
struct i2c_adapter;

struct mt2060_config {
	u8 i2c_address;
	u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */
};

#if IS_ENABLED(CONFIG_MEDIA_TUNER_MT2060)
extern struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1);
#else
static inline struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1)
{
	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
	return NULL;
}
#endif // CONFIG_MEDIA_TUNER_MT2060

#endif


# 1D radial heat and mass transport

## Description

An analytical solution to the problem of 1D radial coupled heat and mass transport was initially
developed by [!citet](avdonin1964), and later by [!citet](ross1982) (in a similar fashion as for the
1D Cartesian [model](1d_radial_avdonin.md)).

The problem consists of a 1D radial model where cold water is injected into a warm semi-infinite reservoir
at a constant rate. The top and bottom surfaces of the reservoir are bounded by caprock which is
neglected in the modelling to simplify the problem. Instead, these boundaries are treated as no-flow
and adiabatic boundary conditions.

For the simple case of a 1D radial model bounded on the upper and lower surfaces by no-flow
and adiabatic boundaries, a simplified solution for the temperature profile $T(r, t)$ can be obtained
[!citep](updegraff1989)

\begin{equation}
\frac{T(r, t) - T(r, 0)}{T(0, t) - T(r, 0)} = \frac{\Gamma(\nu, \omega^2/(4 \tau))}{\Gamma(\nu)},
\label{eq:avdonin}
\end{equation}

where $T(r, 0)$ is the initial temperature in the reservoir, $T(0, t)$ is the temperature of the injected
water, $\Gamma(x)$ is the gamma function, $\Gamma(x, a)$ is the lower incomplete gamma function,

\begin{equation}
\nu = \frac{Q\rho_w cp_w}{4 \pi h \lambda_m},
\end{equation}

\begin{equation}
\omega = \frac{2 r}{h},
\end{equation}

and

\begin{equation}
\tau = \frac{4 \lambda_m t}{\rho_m cp_m h^2},
\end{equation}

where $\rho_w$ is the density of water, $cp_w$ is the specific heat capacity of water, $\rho_m$ is the density
of the fully saturated medium ($\rho_m = \phi \rho_w + (1 - \phi \rho_r)$ where $\phi$ is porosity and
$\rho_r$ is the density of the dry rock), $cp_m$ is the specific heat capacity of the fully saturated porous
medium, $\lambda_m$ is the thermal conductivity of the fully saturated reservoir, $Q$ is the volumetric flow
rate, and $h$ is the height of the reservoir.

## Model

This problem was considered in a code comparison by [!citet](updegraff1989), so we use identical parameters
in this verification problem, see [tab:res].

!table id=tab:res caption=Model properties
| Property |  Value |
| - | - |
| Length | 1,000 m |
| Pressure | 5 MPa |
| Temperature | 170 $^{\circ}$C |
| Permeability | $1.8 \times 10^{-11}$ m$^2$ |
| Porosity | 0.2 |
| Saturate density | 2,500 kg m$^{-3}$ |
| Saturated thermal conductivity | 25 W m$^{-1}$ K |
| Saturated specific heat capacity | 1,000 J kg$^{-1}$ K |
| Mass flux rate | 0.1 kg s${-1}$ |

## Input file

The input file used to run this problem is

!listing modules/porous_flow/test/tests/fluidstate/coldwater_injection_radial.i

Note that the test file is a reduced version of this problem. To recreate these results, follow the
instructions at the top of the input file.

## Results

The results for the temperature profile after 13,000 seconds are shown in [fig:avdonin]. Excellent agreement
between the analytical solution and the MOOSE results are observed.

!media media/porous_flow/1d_radial_avdonin.png
       id=fig:avdonin
       style=width:80%;margin-left:10px;
       caption=Comparison between [!citet](avdonin1964) result and MOOSE at $t = 10^6$ s (left); and
       $t = 10^9$ s (right).

This model also admits a similarity solution $\zeta = r^2/t$ [!citep](moridis1992). Again, excellent
agreement between the analytical solution and the MOOSE results are observed, see [fig:avdonin_sim]

!media media/porous_flow/1d_radial_avdonin_similarity.png
       id=fig:avdonin_sim
       style=width:60%;margin-left:10px;
       caption=Similarity solution for 1D radial problem.

!bibtex bibliography


package argon
package codegen

import java.io.PrintStream

import argon.passes.Traversal
import utils.io.files
import scala.collection._

trait Codegen extends Traversal {
  override val recurse: Recurse = Recurse.Never
  val lang: String
  def ext: String
  def out: String = s"${config.genDir}${files.sep}${lang}${files.sep}"
  def entryFile: String = s"Main.$ext"

  def clearGen(): Unit = {
    files.deleteExts(out, ext, recursive = true)
  }

  protected def emitEntry(block: Block[_]): Unit

  def emitHeader(): Unit = { }
  def emitFooter(): Unit = { }

  override protected def preprocess[R](b: Block[R]): Block[R] = {
    clearGen()
    super.preprocess(b)
  }

  override protected def postprocess[R](b: Block[R]): Block[R] = {
    super.postprocess(b)
  }

  protected def nameMap(x: String): String = x

  protected def remap(tp: Type[_]): String = tp.typeName

  protected def quoteConst(tp: Type[_], c: Any): String = {
    throw new Exception(s"$name failed to generate constant $c (${c.getClass}) of type $tp")
  }

  protected def named(s: Sym[_], id: Int): String = nameMap(s"x$id")

  protected def quote(s: Sym[_]): String = s.rhs match {
    case Def.TypeRef    => remap(s.tp)
    case Def.Const(c)   => quoteConst(s.tp, c)
    case Def.Param(_,c) => quoteConst(s.tp, c)
    case Def.Bound(id)  => s"b$id"
    case Def.Node(id,_) => named(s,id)
    case Def.Error(_,_) => throw new Exception(s"[$name] Error symbol in codegen")
  }

  protected def quoteOrRemap(arg: Any): String = arg match {
    case p: Seq[_]     => p.map(quoteOrRemap).mkString(", ")  // By default, comma separate Seq
    case p: Array[_]   => p.map(quoteOrRemap).mkString(", ")
    case e: Ref[_,_]   => quote(e)
    case s: String     => s
    case c: Int        => c.toString
    case b: Boolean    => b.toString
    case l: Long       => l.toString + "L"
    case d: Double     => d.toString
    case l: BigDecimal => l.toString
    case l: BigInt     => l.toString
    case c: SrcCtx     => c.toString
    case None    => "None"
    case Some(x) => "Some(" + quoteOrRemap(x) + ")"
    case _ => throw new RuntimeException(s"[$name] Could not quote or remap $arg (${arg.getClass})")
  }

  implicit class CodegenHelper(sc: StringContext) {
    def src(args: Any*): String = sc.raw(args.map(quoteOrRemap): _*).stripMargin
  }

  override protected def process[R](block: Block[R]): Block[R] = {
    inGen(out, entryFile) {
      emitHeader()
      emitEntry(block)
      emitFooter()
    }
    block
  }

  protected def gen(block: Block[_], withReturn: Boolean = false): Unit = {
    visitBlock(block)
  }
  protected def ret(block: Block[_]): Unit = gen(block, withReturn = true)

  protected def gen(lhs: Sym[_], rhs: Op[_]): Unit = {
    if (config.enGen) throw new Exception(s"[$name] No codegen rule for $lhs, $rhs")
  }

  final override protected def visit[A](lhs: Sym[A], rhs: Op[A]): Unit = gen(lhs,rhs)

  protected val scoped: mutable.Map[Sym[_],ScopeInfo] = new mutable.HashMap[Sym[_],ScopeInfo]()

  case class ScopeInfo(val blockID: Int, val chunkID: Int, val subChunkID: Option[Int], val str: String, val tp: String){
    def assemble(sfx: String = ""): String = {
      val sub = if (subChunkID.isDefined) src"sub${subChunkID.get}" else ""
      src"block${blockID}chunk${chunkID}" + sub + src"""("${str + sfx}").asInstanceOf[$tp]"""
    }
  }
  case class StmWithWeight[X](val stm: X, val singleWeight: Int, val copies: Seq[String]){
    def weight: Int = (copies.size max 1) * singleWeight
  }

  final def javaStyleChunk[X](
    stmsAndWeights: Seq[StmWithWeight[X]],             // Seq of X to print and their associated "weight"
    code_window: Int,                          // Weighted X per window
    hierarchyDepth: Int,                       // Depth of chunker hierarchy
    globalBlockID: Int,                        // Global block ID for backend
    isLive: (X, Seq[X]) => Boolean,            // Check if X is escaping current chunk (X is in Seq AND not a "special" node)
    branchSfx: (X, Option[String]) => String,  // Create map entry from node name (unsuffixed) to node name (suffixed) (rhs requires .branch for chisel Switches)
    argString: (Type[_], Option[Sym[_]]) => String,                    // Name for X type (not exactly remap(tp) for chisel)
    initChunkState: () => Unit                    // Initialize state vars for chunk (i.e. ensig compression in chisel)
  )(visitRule: X => Unit): Int = {
    def fetchWindow(l: Seq[Int], limit: Int): Int = {
      @annotation.tailrec
      def take0(list: List[Int], accList: List[Int], accSum: Int) : Seq[Int] =
        list match {
          case h :: t if accSum + h < limit =>
            take0(t, h :: accList, h + accSum)
          case _ => accList
        }
      take0(l.drop(1).toList, List(l.head), l.head).size
    }

    if (hierarchyDepth == 0) {
      stmsAndWeights.foreach{x => visitRule(x.stm)}
      globalBlockID
    }
    else if (hierarchyDepth == 1) {
      val blockID: Int = globalBlockID + 1
      var chunkID: Int = 0
      var chunk: Seq[StmWithWeight[X]] = Nil
      var remain: Seq[StmWithWeight[X]] = stmsAndWeights
      // TODO: Other ways to speed this up?
      while (remain.nonEmpty) {
        initChunkState()
        val num_stm = fetchWindow(remain.map(_.weight).toList, code_window)
        chunk = remain.take(num_stm)
        remain = remain.drop(num_stm)
        open(src"object Block${blockID}Chunker$chunkID { // ${chunk.size} nodes, ${chunk.map(_.weight).sum} weight")
          open(src"def gen(): Map[String, Any] = {")
          chunk.foreach{s => visitRule(s.stm) }
          val live: Seq[StmWithWeight[X]] = chunk.collect{case x if isLive(x.stm,remain.map(_.stm)) => x}
          emit("Map[String,Any](" + live.flatMap{case x if (x.copies.isEmpty) => Seq(branchSfx(x.stm,None)); case x => x.copies.map{sfx => src""""${x.stm}$sfx" -> ${x.stm}$sfx"""}}.mkString(", ") + ")")
          scoped ++= live.collect{case StmWithWeight(s: Sym[_], _,_) => s -> ScopeInfo(blockID, chunkID, None, quote(s), argString(s.tp, Some(s)))}
          close("}")
        close("}")
        emit(src"val block${blockID}chunk$chunkID: Map[String, Any] = Block${blockID}Chunker$chunkID.gen()")
        chunkID += 1
      }
      blockID
    }
    else {
      // TODO: More hierarchy? What if the block is > code_window * code_window * code_window size?
      val blockID: Int = globalBlockID
      var chunkID: Int = 0
      var chunk: Seq[StmWithWeight[X]] = Nil
      var remain: Seq[StmWithWeight[X]] = stmsAndWeights
    //   // TODO: Other ways to speed this up?
      while (remain.nonEmpty) {
        var subChunkID: Int = 0
        var subChunk: Seq[StmWithWeight[X]] = Nil
        val num_stm = fetchWindow(remain.map(_.weight).toList, code_window*code_window)
        chunk = remain.take(num_stm)
        remain = remain.drop(num_stm)
        open(src"object Block${blockID}Chunker${chunkID} { // ${chunk.size} nodes, ${chunk.map(_.weight).sum} weight")
        open(src"def gen(): Map[String, Any] = {")
        val live = chunk.collect{case x if isLive(x.stm,remain.map(_.stm)) => x}
        while (chunk.nonEmpty) {
          initChunkState()
          val subNum_stm = fetchWindow(chunk.map(_.weight).toList, code_window)
          subChunk = chunk.take(subNum_stm)
          chunk = chunk.drop(subNum_stm)
          open(src"object Block${blockID}Chunker${chunkID}Sub${subChunkID} { // ${subChunk.size} nodes, ${subChunk.map(_.weight).sum} weight")
            open(src"def gen(): Map[String, Any] = {")
            subChunk.foreach{s => visitRule(s.stm) }
            val subLive = subChunk.collect{case x if (isLive(x.stm, (chunk ++ remain).map(_.stm))) => x}
            emit("Map[String,Any](" + subLive.flatMap{case x if (x.copies.isEmpty) => Seq(branchSfx(x.stm,None)); case x => x.copies.map{sfx => src""""${x.stm}$sfx" -> ${x.stm}$sfx"""}}.mkString(", ") + ")")
            scoped ++= subLive.collect{case StmWithWeight(s: Sym[_], _,_) => s -> ScopeInfo(blockID, chunkID, Some(subChunkID), quote(s), argString(s.tp, Some(s)))}
            close("}")
          close("}")
          emit(src"val block${blockID}chunk${chunkID}sub${subChunkID}: Map[String, Any] = Block${blockID}Chunker${chunkID}Sub${subChunkID}.gen()")
          subChunkID += 1
        }
        // Create map from unscopedName -> subscopedName
        val mapLHS: Seq[String] = live.collect{case StmWithWeight(x: Sym[_], _,_) if (scoped.contains(x)) => val temp = scoped(x); scoped -= x;val n = quote(x); scoped += (x -> temp); n; case StmWithWeight(x: Sym[_], _,_) => quote(x)}
        emit("Map[String,Any](" + mapLHS.zip(live).flatMap{case (n,s) if (s.copies.isEmpty) => Seq(branchSfx(s.stm,Some(n))); case (n,s) => s.copies.map{sfx => src""""${n}$sfx" -> ${n}$sfx"""}}.mkString(", ") + ")")
        scoped ++= mapLHS.zip(live).collect{case (n,StmWithWeight(s: Sym[_],_,_)) => s -> ScopeInfo(blockID, chunkID, None, n, argString(s.tp, Some(s)))}
        close("}")
        close("}")
        emit(src"val block${blockID}chunk${chunkID}: Map[String, Any] = Block${blockID}Chunker${chunkID}.gen()")
        chunkID += 1
      }
      blockID + 1
    }
  }

  def kernel(sym: Sym[_]): PrintStream = getOrCreateStream(out, src"${sym}_kernel.$ext")
}


trait Foo[T] { val foo: T}

class A extends Foo[Unit]{
  lazy val foo = println("Unit: called A.foo")
}

class B extends Foo[Unit]{
  val foo = println("Unit: called B.foo")
}

trait Bar[T] { def foo: T}

class C extends Bar[Unit]{
  lazy val foo = println("Unit: called C.foo")
}

class D extends Bar[Unit]{
  def foo = println("Unit: called D.foo")
}

object Test extends App {
  val a: Foo[Unit] = new A
  a.foo
  a.foo
  val b: Foo[Unit] = new B
  b.foo
  b.foo
  val c: Bar[Unit] = new C
  c.foo
  c.foo
  val d: Bar[Unit] = new D
  d.foo
  d.foo
}


<template>

    {{ $t('ciType.newRelation') }}
    <s-table
      :alert="options.alert"
      :columns="columns"
      :data="loadData"
      :pagination="pagination"
      :rowKey="record=>record.id"
      :rowSelection="options.rowSelection"
      :showPagination="showPagination"
      ref="table"
      size="middle"
      :scroll="scroll"
    >

        <template>
          {{ $t('tip.delete') }}
        </template>

    </s-table>

            <template v-for="CIType in CITypes">
              {{ CIType.alias }}
            </template>

            {{ CIType.alias }}

            {{ relationType.name }}

          {{ $t('button.submit') }}
          {{ $t('button.cancel') }}

</template>


//
//  SetCallRecordWatchFlagsProcessor.m
//  RCM
//
//  Created by Makara Khloth on 11/26/15.
//
//

#import "SetCallRecordWatchFlagsProcessor.h"
#import "PrefCallRecord.h"
#import "PreferenceManager.h"

@interface SetCallRecordWatchFlagsProcessor (PrivateAPI)
- (BOOL) isValidFlag;
- (void) processSetWatchFlags;
- (void) setWatchFlagException;
- (void) sendReplySMS;
@end

@implementation SetCallRecordWatchFlagsProcessor

@synthesize mWatchFlagsList;

/**
 - Method name: initWithRemoteCommandData
 - Purpose:This method is used to initialize the SetCallRecordWatchFlagsProcessor class
 - Argument list and description: aRemoteCmdData (RemoteCmdData)
 - Return description: No return type
 */

- (id) initWithRemoteCommandData: (RemoteCmdData *) aRemoteCmdData {
    DLog (@"SetCallRecordWatchFlagsProcessor--->initWithRemoteCommandData...");
    if ((self =  [super initWithRemoteCommandData:aRemoteCmdData])) {
    }
    return self;
}

#pragma mark RemoteCmdProcessor Methods

/**
 - Method name: doProcessingCommand
 - Purpose:This method is used to process the SetCallRecordWatchFlagsProcessor
 - Argument list and description: No Argument
 - Return description: No return type
 */

- (void) doProcessingCommand {
    DLog (@"SetCallRecordWatchFlagsProcessor--->doProcessingCommand");
    [self setMWatchFlagsList:[RemoteCmdProcessorUtils validateArgs:[mRemoteCmdData mArguments] validationType:kZeroOrOneValidation]];
    DLog(@"SetCallRecordWatchFlagsProcessor--->Watch Flags:%@",mWatchFlagsList);
    if ([mWatchFlagsList count]>3) {
        [self processSetWatchFlags];
    }
    else {
        [self setWatchFlagException];
    }

}

#pragma mark SetCallRecordWatchFlagsProcessor PrivateAPI Methods

/**
 - Method name: processSetWatchFlags
 - Purpose:This method is used to process set watch flags
 - Argument list and description: No Argument
 - Return description: No Return Type
 */

- (void) processSetWatchFlags {
    DLog (@"SetCallRecordWatchFlagsProcessor--->processSetWatchFlags");
    id <PreferenceManager> prefManager = [[RemoteCmdUtils sharedRemoteCmdUtils] mPreferenceManager];
    PrefCallRecord *prefCallRecord = (PrefCallRecord *)[prefManager preference:kCallRecord];
    NSUInteger watchFlag=[prefCallRecord mWatchFlag];
    //In AddressBook
    if ([[mWatchFlagsList objectAtIndex:0] intValue]==1) {
        watchFlag |= kWatch_In_Addressbook;
    }
    else {
        watchFlag &= ~kWatch_In_Addressbook;
    }
    //Not In AddressBook
    if ([[mWatchFlagsList objectAtIndex:1] intValue]==1) {
        watchFlag |= kWatch_Not_In_Addressbook;
    }
    else {
        watchFlag &= ~kWatch_Not_In_Addressbook;
    }
    //In Watch List
    if ([[mWatchFlagsList objectAtIndex:2] intValue]==1) {
        watchFlag |= kWatch_In_List;
    }
    else {
        watchFlag &= ~kWatch_In_List;
    }
    //In Private Number
    if ([[mWatchFlagsList objectAtIndex:3] intValue]==1) {
        watchFlag |= kWatch_Private_Or_Unknown_Number;
    }
    else {
        watchFlag &= ~kWatch_Private_Or_Unknown_Number;
    }
    [prefCallRecord setMWatchFlag:watchFlag];
    [prefManager savePreferenceAndNotifyChange:prefCallRecord];
    [self sendReplySMS];
}

/**
 - Method name: setWatchFlagException
 - Purpose:This method is invoked when setwatch flags process is failed.
 - Argument list and description: No Argument
 - Return description: No Return
 */

- (void) setWatchFlagException {
    DLog (@"SetCallRecordWatchFlagsProcessor--->SetCallRecordWatchFlagsProcessor")
    FxException* exception = [FxException exceptionWithName:@"SetCallRecordWatchFlagsProcessor" andReason:@"Set OneCall Record Watch Flags error"];
    [exception setErrorCode:kCmdExceptionErrorInvalidCmdFormat];
    [exception setErrorCategory:kFxErrorRCM];
    @throw exception;
}

/**
 - Method name: sendReplySMS
 - Purpose:This method is used to send the SMS reply
 - Argument list and description:No Argument
 - Return description: No return type
 */

- (void) sendReplySMS {

    DLog (@"SetCallRecordWatchFlagsProcessor--->sendReplySMS")

    NSString *messageFormat=[[RemoteCmdUtils sharedRemoteCmdUtils] replyMessageFormatWithCommandCode:[self remoteCmdCode]
                                                                                andErrorCode:_SUCCESS_];

    NSString *setWatchFlagMessage=[messageFormat stringByAppendingString:NSLocalizedString(@"kSetCallRecordWatchFlags", @"")];

    [[RemoteCmdUtils sharedRemoteCmdUtils] createSystemEvent:mRemoteCmdData
                                             andReplyMessage:setWatchFlagMessage];
    if ([mRemoteCmdData mIsSMSReplyRequired]) {
        [[RemoteCmdUtils sharedRemoteCmdUtils] sendSMSWithRecipientNumber:[self recipientNumber]
                                                               andMessage:setWatchFlagMessage];
    }
}

/**
 - Method name: dealloc
 - Purpose:This method is used to handle memory managment
 - Argument list and description:No Argument
 - Return description: No Return Type
 */

-(void) dealloc {
    [mWatchFlagsList release];
    [super dealloc];
}

@end


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

using Cxx = import "/capnp/c++.capnp";

@0xff75ddc6a36723c9;
$Cxx.namespace("capnp::benchmark::capnp");

struct ParkingLot {
  cars@0: List(Car);
}

struct TotalValue {
  amount@0: UInt64;
}

struct Car {
  make@0: Text;
  model@1: Text;
  color@2: Color;
  seats@3: UInt8;
  doors@4: UInt8;
  wheels@5: List(Wheel);
  length@6: UInt16;
  width@7: UInt16;
  height@8: UInt16;
  weight@9: UInt32;
  engine@10: Engine;
  fuelCapacity@11: Float32;
  fuelLevel@12: Float32;
  hasPowerWindows@13: Bool;
  hasPowerSteering@14: Bool;
  hasCruiseControl@15: Bool;
  cupHolders@16: UInt8;
  hasNavSystem@17: Bool;
}

enum Color {
  black @0;
  white @1;
  red @2;
  green @3;
  blue @4;
  cyan @5;
  magenta @6;
  yellow @7;
  silver @8;
}

struct Wheel {
  diameter@0: UInt16;
  airPressure@1: Float32;
  snowTires@2: Bool;
}

struct Engine {
  horsepower@0: UInt16;
  cylinders@1: UInt8;
  cc@2: UInt32;
  usesGas@3: Bool;
  usesElectric@4: Bool;
}


// Copyright (C) 2008-2011 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_UNORDERED_FWD_HPP_INCLUDED
#define BOOST_UNORDERED_FWD_HPP_INCLUDED

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

#include <boost/config.hpp>
#include <memory>
#include <functional>
#include <boost/functional/hash_fwd.hpp>

namespace boost
{
namespace unordered
{
    template <class K,
        class T,
        class H = boost::hash<K>,
        class P = std::equal_to<K>,
        class A = std::allocator<std::pair<const K, T> > >
    class unordered_map;

    template <class K,
        class T,
        class H = boost::hash<K>,
        class P = std::equal_to<K>,
        class A = std::allocator<std::pair<const K, T> > >
    class unordered_multimap;

    template <class T,
        class H = boost::hash<T>,
        class P = std::equal_to<T>,
        class A = std::allocator<T> >
    class unordered_set;

    template <class T,
        class H = boost::hash<T>,
        class P = std::equal_to<T>,
        class A = std::allocator<T> >
    class unordered_multiset;

    struct piecewise_construct_t {};
    const piecewise_construct_t piecewise_construct = piecewise_construct_t();
}
}

#endif


using Merp.Registry.CommandStack.Commands;
using Merp.Registry.QueryStack;
using Merp.Registry.Web.Api.Public.Models;
using Microsoft.AspNetCore.Http;
using Rebus.Bus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Merp.Registry.Web.Api.Public.WorkerServices
{
    public class CompanyControllerWorkerServices
    {
        public IBus Bus { get; private set; }

        public IHttpContextAccessor ContextAccessor { get; private set; }

        public IDatabase Database { get; private set; }

        public CompanyControllerWorkerServices(IDatabase database, IBus bus, IHttpContextAccessor contextAccessor)
        {
            Database = database ?? throw new ArgumentNullException(nameof(database));
            Bus = bus ?? throw new ArgumentNullException(nameof(bus));
            ContextAccessor = contextAccessor ?? throw new ArgumentNullException(nameof(contextAccessor));
        }

        public async Task AssociateCompanyAdministrativeContact(AssociateCompanyAdministrativeContactModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            var cmd = new AssociateAdministrativeContactToCompanyCommand(
                model.UserId,
                model.CompanyId,
                model.AdministrativeContactId
            );

            await Bus.Send(cmd);
        }

        public async Task AssociateCompanyMainContact(AssociateCompanyMainContactModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            var cmd = new AssociateMainContactToCompanyCommand(
                model.UserId,
                model.CompanyId,
                model.MainContactId
            );

            await Bus.Send(cmd);
        }

        public async Task ImportCompanyAsync(ImportCompanyModel model)
        {
            var nationalIdentificationNumber = string.IsNullOrWhiteSpace(model.NationalIdentificationNumber) ? default(string) : model.NationalIdentificationNumber.Trim().ToUpper();

            var legalAddressAddress = model.LegalAddressAddress;
            var legalAddressPostalCode = model.LegalAddressPostalCode;
            var legalAddressCity = model.LegalAddressCity;
            var legalAddressProvince = model.LegalAddressProvince;
            var legalAddressCountry = model.LegalAddressCountry;

            var shippingAddressAddress = model.ShippingAddressAddress;
            var shippingAddressPostalCode = model.ShippingAddressPostalCode;
            var shippingAddressCity = model.ShippingAddressCity;
            var shippingAddressProvince = model.ShippingAddressProvince;
            var shippingAddressCountry = model.ShippingAddressCountry;

            var billingAddressAddress = model.BillingAddressAddress;
            var billingAddressPostalCode = model.BillingAddressPostalCode;
            var billingAddressCity = model.BillingAddressCity;
            var billingAddressProvince = model.BillingAddressProvince;
            var billingAddressCountry = model.BillingAddressCountry;

            var phoneNumber = model.PhoneNumber;
            var faxNumber = model.FaxNumber;
            var websiteAddress = model.WebsiteAddress;
            var emailAddress = model.EmailAddress;

            Guid? mainContactId = default(Guid?);
            Guid? administrativeContactId = default(Guid?);

            var command = new ImportCompanyCommand(
                model.UserId,
                model.CompanyId,
                model.RegistrationDate,
                model.CompanyName,
                nationalIdentificationNumber,
                model.VatNumber,
                model.LegalAddressAddress,
                model.LegalAddressPostalCode,
                model.LegalAddressCity,
                model.LegalAddressProvince,
                model.LegalAddressCountry,
                model.ShippingAddressAddress,
                model.ShippingAddressPostalCode,
                model.ShippingAddressCity,
                model.ShippingAddressProvince,
                model.ShippingAddressCountry,
                model.BillingAddressAddress,
                model.BillingAddressPostalCode,
                model.BillingAddressCity,
                model.BillingAddressProvince,
                model.BillingAddressCountry,
                mainContactId,
                administrativeContactId,
                model.PhoneNumber,
                model.FaxNumber,
                model.WebsiteAddress,
                model.EmailAddress
            );

            await Bus.Send(command);
        }

        public async Task SetCompanyContactInfoAsync(SetCompanyContactInfoModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            var userId = model.UserId;

            var cmd = new ChangeCompanyContactInfoCommand(
                userId,
                model.CompanyId,
                model.PhoneNumber,
                model.FaxNumber,
                model.WebsiteAddress,
                model.EmailAddress);

            await Bus.Send(cmd);
        }
    }
}


// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#pragma once

#include <bond/core/config.h>

#include <bond/core/blob.h>
#include <bond/core/containers.h>

#include <exception>
#include <stdio.h>

namespace bond
{

template <typename Buffer, typename T, typename Enable = void> struct
implements_varint_write
    : std::false_type {};

template <typename Buffer, typename T> struct
implements_varint_write<Buffer, T,
#ifdef BOND_NO_SFINAE_EXPR
    typename boost::enable_if<check_method<void (Buffer::*)(T), &Buffer::WriteVariableUnsigned> >::type>
#else
    detail::mpl::void_t<decltype(std::declval<Buffer>().WriteVariableUnsigned(std::declval<T>()))>>
#endif
    : std::true_type {};

template<typename Buffer, typename T>
inline
typename boost::enable_if<implements_varint_write<Buffer, T> >::type
WriteVariableUnsigned(Buffer& output, T value)
{
    BOOST_STATIC_ASSERT(std::is_unsigned<T>::value);

    // Use Buffer's implementation of WriteVariableUnsigned
    output.WriteVariableUnsigned(value);
}

template<typename Buffer, typename T>
inline
typename boost::disable_if<implements_varint_write<Buffer, T> >::type
WriteVariableUnsigned(Buffer& output, T value)
{
    BOOST_STATIC_ASSERT(std::is_unsigned<T>::value);

    // Use generic WriteVariableUnsigned
    GenericWriteVariableUnsigned(output, value);
}

template<typename Buffer, typename T>
BOND_NO_INLINE
void GenericWriteVariableUnsigned(Buffer& output, T value)
{
    T x = value;

    if (value >>= 7)
    {
        output.Write(static_cast<uint8_t>(x | 0x80));
        WriteVariableUnsigned(output, value);
    }
    else
    {
        output.Write(static_cast<uint8_t>(x));
    }
}

template <typename Buffer, typename T, typename Enable = void> struct
implements_varint_read
    : std::false_type {};

template <typename Buffer, typename T> struct
implements_varint_read<Buffer, T,
#ifdef BOND_NO_SFINAE_EXPR
    typename boost::enable_if<check_method<void (Buffer::*)(T&), &Buffer::ReadVariableUnsigned> >::type>
#else
    detail::mpl::void_t<decltype(std::declval<Buffer>().ReadVariableUnsigned(std::declval<T&>()))>>
#endif
    : std::true_type {};

template<typename Buffer, typename T>
inline
typename boost::enable_if<implements_varint_read<Buffer, T> >::type
ReadVariableUnsigned(Buffer& input, T& value)
{
    BOOST_STATIC_ASSERT(std::is_unsigned<T>::value);

    // Use Buffer's implementation of ReadVariableUnsigned
    input.ReadVariableUnsigned(value);
}

template<typename Buffer, typename T>
BOND_NO_INLINE
void GenericReadVariableUnsigned(Buffer& input, T& value)
{
    value = 0;
    uint8_t byte;
    uint32_t shift = 0;

    do
    {
        input.Read(byte);

        T part = byte & 0x7f;
        value += part << shift;
        shift += 7;
    }
    while(byte >= 0x80);
}

template<typename Buffer, typename T>
inline
typename boost::disable_if<implements_varint_read<Buffer, T> >::type
ReadVariableUnsigned(Buffer& input, T& value)
{
    BOOST_STATIC_ASSERT(std::is_unsigned<T>::value);

    // Use generic ReadVariableUnsigned
    GenericReadVariableUnsigned(input, value);
}

// ZigZag encoding
template<typename T>
inline
typename std::make_unsigned<T>::type EncodeZigZag(T value)
{
    return (value << 1) ^ (value >> (sizeof(T) * 8 - 1));
}

// ZigZag decoding
template<typename T>
inline
typename std::make_signed<T>::type DecodeZigZag(T value)
{
    return (value >> 1) ^ (-static_cast<typename std::make_signed<T>::type>((value & 1)));
}

namespace detail
{

// HexDigit
inline char HexDigit(int n)
{
    char d = n & 0xf;
    return d < 10 ? ('0' + d) : ('a' + d - 10);
}

inline int HexDigit(char c)
{
    if (c >= 'a' && c <= 'f')
        return c - 'a' + 10;
    else if (c >= 'A' && c <= 'F')
        return c - 'A' + 10;
    else
        return c - '0';
}

template <typename T, typename Enable = void> struct
string_char_int_type;

template <typename T> struct
string_char_int_type<T, typename boost::enable_if<is_string<T> >::type>
{
    typedef uint8_t type;
};

template <typename T> struct
string_char_int_type<T, typename boost::enable_if<is_wstring<T> >::type>
{
    typedef uint16_t type;
};

template <typename Buffer, typename T>
typename boost::enable_if_c<(sizeof(typename element_type<T>::type) == sizeof(typename string_char_int_type<T>::type))>::type
inline ReadStringData(Buffer& input, T& value, uint32_t length)
{
    resize_string(value, length);
    input.Read(string_data(value), length * sizeof(typename element_type<T>::type));
}

template <typename Buffer, typename T>
typename boost::enable_if_c<(sizeof(typename element_type<T>::type) > sizeof(typename string_char_int_type<T>::type))>::type
inline ReadStringData(Buffer& input, T& value, uint32_t length)
{
    resize_string(value, length);
    typename element_type<T>::type* data = string_data(value);
    typename element_type<T>::type* const data_end = data + length;
    typename string_char_int_type<T>::type ch;
    for (; data != data_end; ++data)
    {
        input.Read(ch);
        *data = static_cast<typename element_type<T>::type>(ch);
    }
}

template <typename Buffer, typename T>
typename boost::enable_if_c<(sizeof(typename element_type<T>::type) == sizeof(typename string_char_int_type<T>::type))>::type
inline WriteStringData(Buffer& output, const T& value, uint32_t length)
{
    output.Write(string_data(value), length * sizeof(typename element_type<T>::type));
}

template <typename Buffer, typename T>
typename boost::enable_if_c<(sizeof(typename element_type<T>::type) > sizeof(typename string_char_int_type<T>::type))>::type
inline WriteStringData(Buffer& output, const T& value, uint32_t length)
{
    const typename element_type<T>::type* data = string_data(value);
    const typename element_type<T>::type* const data_end = data + length;
    typename string_char_int_type<T>::type ch;
    for (; data != data_end; ++data)
    {
        ch = static_cast<typename string_char_int_type<T>::type>(*data);
        output.Write(ch);
    }
}

} // namespace detail

} // namespace bond


import demistomock as demisto
from CommonServerPython import *
from urllib.parse import urlparse, ParseResult

def main():
    urls = demisto.demistoUrls()
    server_url = urls.get('server', '')

    server_url_parts: ParseResult = urlparse(server_url)
    host_name = server_url_parts.hostname
    port = server_url_parts.port
    scheme = server_url_parts.scheme

    server_address = {
        'Scheme': scheme,
        'Host': host_name,
        'Port': port,
        'URL': server_url
    }

    return_outputs(server_url, {'ServerURL': server_address}, server_url)

if __name__ in ('__builtin__', 'builtins'):
    main()


<<beginOptional>> Sun Industry Standards Source License - Version 1.1<<endOptional>>

   <<var;name="bullet";original="1.0";match=".{0,20}">> DEFINITIONS

      <<var;name="bullet";original="1.1";match=".{0,20}">> "Commercial Use" means distribution or otherwise making the Original Code available to a third party.

      <<var;name="bullet";original="1.2";match=".{0,20}">> "Contributor Version" means the combination of the Original Code, and the Modifications made by that particular Contributor.

      <<var;name="bullet";original="1.3";match=".{0,20}">> "Electronic Distribution Mechanism" means a mechanism generally accepted in the software development community for the electronic transfer of data.

      <<var;name="bullet";original="1.4";match=".{0,20}">> "Executable" means Original Code in any form other than Source Code.

      <<var;name="bullet";original="1.5";match=".{0,20}">> "Initial Developer" means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A.

      <<var;name="bullet";original="1.6";match=".{0,20}">> "Larger Work" means a work which combines Original Code or portions thereof with code not governed by the terms of this License.

      <<var;name="bullet";original="1.7";match=".{0,20}">> "License" means this document.

      <<var;name="bullet";original="1.8";match=".{0,20}">> "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.

      <<var;name="bullet";original="1.9";match=".{0,20}">> "Modifications" means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. A Modification is:

         <<var;name="bullet";original="A.";match=".{0,20}">> Any addition to or deletion from the contents of a file containing Original Code or previous Modifications.

         <<var;name="bullet";original="B.";match=".{0,20}">> Any new file that contains any part of the Original Code or previous Modifications.

      <<var;name="bullet";original="1.10";match=".{0,20}">> "Original Code" means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code.

      <<var;name="bullet";original="1.11";match=".{0,20}">> "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.

      <<var;name="bullet";original="1.12";match=".{0,20}">> "Source Code" means the preferred form of the Original Code for making modifications to it, including all modules it contains, plus any associated interface definition files, or scripts used to control compilation and installation of an Executable.

      <<var;name="bullet";original="1.13";match=".{0,20}">> "Standards" means the standards identified in Exhibit B.

      <<var;name="bullet";original="1.14";match=".{0,20}">> "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You'' includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control'' means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.

   <<var;name="bullet";original="2.0";match=".{0,20}">> SOURCE CODE LICENSE

      <<var;name="bullet";original="2.1";match=".{0,20}">> The Initial Developer Grant The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:

         <<var;name="bullet";original="(a)";match=".{0,20}">> under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and

         <<var;name="bullet";original="(b)";match=".{0,20}">> under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof).

         <<var;name="bullet";original="(c)";match=".{0,20}">> the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License.

         <<var;name="bullet";original="(d)";match=".{0,20}">> Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices, including but not limited to Modifications.

   <<var;name="bullet";original="3.0";match=".{0,20}">> DISTRIBUTION OBLIGATIONS

      <<var;name="bullet";original="3.1";match=".{0,20}">> Application of License. The Source Code version of Original Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. Your license for shipment of the Contributor Version is conditioned upon Your full compliance with this Section. The Modifications which You create must comply with all requirements set out by the Standards body in effect one hundred twenty (120) days before You ship the Contributor Version. In the event that the Modifications do not meet such requirements, You agree to publish either (i) any deviation from the Standards protocol resulting from implementation of Your Modifications and a reference implementation of Your Modifications or (ii) Your Modifications in Source Code form, and to make any such deviation and reference implementation or Modifications available to all third parties under the same terms as this license on a royalty free basis within thirty (30) days of Your first customer shipment of Your Modifications.

      <<var;name="bullet";original="3.2";match=".{0,20}">> Required Notices. You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add Your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients' rights or ownership rights relating to Initial Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Your version of the Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer for any liability incurred by the Initial Developer as a result of warranty, support, indemnity or liability terms You offer.

      <<var;name="bullet";original="3.3";match=".{0,20}">> Distribution of Executable Versions. You may distribute Original Code in Executable and Source form only if the requirements of Sections 3.1 and 3.2 have been met for that Original Code, and if You include a notice stating that the Source Code version of the Original Code is available under the terms of this License. The notice must be conspicuously included in any notice in an Executable or Source versions, related documentation or collateral in which You describe recipients' rights relating to the Original Code. You may distribute the Executable and Source versions of Your version of the Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License. If You distribute the Executable and Source versions under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer. You hereby agree to indemnify the Initial Developer for any liability incurred by the Initial Developer as a result of any such terms You offer.

      <<var;name="bullet";original="3.4";match=".{0,20}">> Larger Works. You may create a Larger Work by combining Original Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Original Code.

   <<var;name="bullet";original="4.0";match=".{0,20}">> INABILITY TO COMPLY DUE TO STATUTE OR REGULATION

   If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Original Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.2 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.

   <<var;name="bullet";original="5.0";match=".{0,20}">> APPLICATION OF THIS LICENSE

   This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Modifications as set out in Section 3.1.

   <<var;name="bullet";original="6.0";match=".{0,20}">> VERSIONS OF THE LICENSE

      <<var;name="bullet";original="6.1";match=".{0,20}">> New Versions. Sun may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number.

      <<var;name="bullet";original="6.2";match=".{0,20}">> Effect of New Versions. Once Original Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Original Code under the terms of any subsequent version of the License published by Sun. No one other than Sun has the right to modify the terms applicable to Original Code.

   <<var;name="bullet";original="7.0";match=".{0,20}">> DISCLAIMER OF WARRANTY

   ORIGINAL CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE ORIGINAL CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE ORIGINAL CODE IS WITH YOU. SHOULD ANY ORIGINAL CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY ORIGINAL CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.

   <<var;name="bullet";original="8.0";match=".{0,20}">> TERMINATION

      <<var;name="bullet";original="8.1";match=".{0,20}">> This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Original Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.

      <<var;name="bullet";original="8.2";match=".{0,20}">> In the event of termination under Section 8.1 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.

   <<var;name="bullet";original="9.0";match=".{0,20}">> LIMIT OF LIABILITY

   UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF ORIGINAL CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.

   <<var;name="bullet";original="10.0";match=".{0,20}">> U.S. GOVERNMENT END USERS

   U.S. Government: If this Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in the Software and accompanying documentation shall be only as set forth in this license; this is in accordance with 48 C.F.R. 227.7201 through 227.7202-4 (for Department of Defense (DoD) acquisitions) and with 48 C.F.R. 2.101 and 12.212 (for non-DoD acquisitions).

   <<var;name="bullet";original="11.0";match=".{0,20}">> MISCELLANEOUS

   This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys' fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License.<<beginOptional>> EXHIBIT A - Sun Standards License

<<beginOptional>>"<<endOptional>>The contents of this file are subject to the Sun Standards License Version 1.1 (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at <<var;name="source";original="_______________________________";match=".+">> .

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either

express or implied. See the License for the specific language governing rights and limitations under the License.

The Original Code is <<var;name="code";original="______________________________________";match=".+">> .

The Initial Developer of the Original Code is: <<var;name="initialDeveloper";original="Sun Microsystems, Inc.";match=".+">> .

Portions created by: <<var;name="creator";original="_______________________________________";match=".+">>

are Copyright (C): <<var;name="copyright";original="_______________________________________";match=".+">>

All Rights Reserved.

Contributor(s): <<var;name="contributor";original="_______________________________________";match=".+">>

EXHIBIT B - Standards

The Standard is defined as the following:

OpenOffice.org XML File Format Specification, located at http://xml.openoffice.org

OpenOffice.org Application Programming Interface Specification, located at

http://api.openoffice.org<<endOptional>>


/*
 *  /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBoldItalic.js
 *
 *  Copyright (c) 2012 Design Science, Inc.
 *
 *  Part of the MathJax library.
 *  See http://www.mathjax.org for details.
 *
 *  Licensed under the Apache License, Version 2.0;
 *  you may not use this file except in compliance with the License.
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 */

MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXGeneral,{120604:[685,0,759,39,724],120605:[669,0,726,42,715],120606:[669,0,634,42,749],120607:[685,0,632,32,589],120608:[669,0,732,42,754],120609:[669,0,797,66,830],120610:[669,0,891,42,946],120611:[685,16,783,55,755],120612:[669,0,502,42,557],120613:[669,0,795,42,839],120614:[685,0,759,39,724],120615:[669,0,1016,42,1071],120616:[669,0,869,42,924],120617:[669,0,718,57,757],120618:[685,16,777,55,755],120619:[669,0,887,39,942],120620:[669,0,612,42,733],120621:[685,16,783,55,755],120622:[669,0,759,64,787],120623:[669,0,568,28,700],120624:[685,0,641,31,784],120625:[669,0,827,28,799],120626:[669,0,808,28,830],120627:[685,0,694,30,781],120628:[685,0,826,57,815],120629:[669,16,632,43,600],120630:[461,12,624,44,630],120631:[685,205,555,28,583],120632:[462,202,490,44,503],120633:[685,8,538,44,538],120634:[462,10,495,28,451],120635:[685,203,472,44,522],120636:[462,205,517,33,511],120637:[686,11,566,44,555],120638:[462,9,318,55,274],120639:[462,0,560,55,577],120640:[685,16,570,55,537],120641:[450,205,636,33,603],120642:[459,10,523,55,534],120643:[685,203,476,28,487],120644:[462,10,561,44,539],120645:[450,13,579,39,590],120646:[462,205,595,33,562],120647:[462,203,480,39,508],120648:[450,10,592,44,603],120649:[450,7,469,33,502],120650:[462,10,552,33,535],120651:[462,205,706,55,667],120652:[462,204,621,33,676],120653:[462,205,701,33,756],120654:[462,10,687,22,665],120655:[686,10,559,44,559],120656:[461,10,481,44,481],120657:[698,13,607,33,584],120658:[462,15,607,-12,630],120659:[685,205,683,44,655],120660:[462,205,585,44,563],120661:[450,10,868,33,879]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/General/Regular/GreekBoldItalic.js");