text:
using System.Text.Json;
using Azure.Core;

namespace Azure.ResourceManager.HybridData.Models
{
    public partial class HybridDataCustomerSecret : IUtf8JsonSerializable
    {
        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
        {
            writer.WriteStartObject();
            writer.WritePropertyName("keyIdentifier");
            writer.WriteStringValue(KeyIdentifier);
            writer.WritePropertyName("keyValue");
            writer.WriteStringValue(KeyValue);
            writer.WritePropertyName("algorithm");
            writer.WriteStringValue(Algorithm.ToSerialString());
            writer.WriteEndObject();
        }

        internal static HybridDataCustomerSecret DeserializeHybridDataCustomerSecret(JsonElement element)
        {
            string keyIdentifier = default;
            string keyValue = default;
            SupportedEncryptionAlgorithm algorithm = default;
            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("keyIdentifier"))
                {
                    keyIdentifier = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("keyValue"))
                {
                    keyValue = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("algorithm"))
                {
                    algorithm = property.Value.GetString().ToSupportedEncryptionAlgorithm();
                    continue;
                }
            }
            return new HybridDataCustomerSecret(keyIdentifier, keyValue, algorithm);
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
from dataproperty import Format

from ._cell import Cell
from ._font import FontSize, FontStyle, FontWeight
from ._style import Align, Style, ThousandSeparator, VerticalAlign
from ._styler import (
    DecorationLine,
    GFMarkdownStyler,
    HtmlStyler,
    LatexStyler,
    MarkdownStyler,
    NullStyler,
    ReStructuredTextStyler,
    StylerInterface,
    TextStyler,
)
from ._theme import list_themes


text:
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datacatalog/v1/policytagmanager.proto

namespace Google\Cloud\DataCatalog\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * A taxonomy is a collection of hierarchical policy tags that classify data
 * along a common axis.
 * For example, a "data sensitivity" taxonomy might contain the following policy
 * tags:
 * ```
 * + PII
 *   + Account number
 *   + Age
 *   + SSN
 *   + Zipcode
 * + Financials
 *   + Revenue
 * ```
 * A "data origin" taxonomy might contain the following policy tags:
 * ```
 * + User data
 * + Employee data
 * + Partner data
 * + Public data
 * ```
 *
 * Generated from protobuf message google.cloud.datacatalog.v1.Taxonomy
 */
class Taxonomy extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Resource name of this taxonomy in URL format.
     * Note: Policy tag manager generates unique taxonomy IDs.
     *
     * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     */
    private $name = '';
    /**
     * Required. User-defined name of this taxonomy.
     * The name can't start or end with spaces, must contain only Unicode letters,
     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
     * when encoded in UTF-8.
     * The taxonomy display name must be unique within an organization.
     *
     * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
     */
    private $display_name = '';
    /**
     * Optional. Description of this taxonomy. If not set, defaults to empty.
     * The description must contain only Unicode characters, tabs, newlines,
     * carriage returns, and page breaks, and be at most 2000 bytes long when
     * encoded in UTF-8.
     *
     * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
     */
    private $description = '';
    /**
     * Output only. Number of policy tags in this taxonomy.
     *
     * Generated from protobuf field int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     */
    private $policy_tag_count = 0;
    /**
     * Output only. Creation and modification timestamps of this taxonomy.
     *
     * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     */
    private $taxonomy_timestamps = null;
    /**
     * Optional. A list of policy types that are activated for this taxonomy. If not set,
     * defaults to an empty list.
     *
     * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
     */
    private $activated_policy_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. Resource name of this taxonomy in URL format.
     *           Note: Policy tag manager generates unique taxonomy IDs.
     *     @type string $display_name
     *           Required. User-defined name of this taxonomy.
     *           The name can't start or end with spaces, must contain only Unicode letters,
     *           numbers, underscores, dashes, and spaces, and be at most 200 bytes long
     *           when encoded in UTF-8.
     *           The taxonomy display name must be unique within an organization.
     *     @type string $description
     *           Optional. Description of this taxonomy. If not set, defaults to empty.
     *           The description must contain only Unicode characters, tabs, newlines,
     *           carriage returns, and page breaks, and be at most 2000 bytes long when
     *           encoded in UTF-8.
     *     @type int $policy_tag_count
     *           Output only. Number of policy tags in this taxonomy.
     *     @type \Google\Cloud\DataCatalog\V1\SystemTimestamps $taxonomy_timestamps
     *           Output only. Creation and modification timestamps of this taxonomy.
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $activated_policy_types
     *           Optional. A list of policy types that are activated for this taxonomy. If not set,
     *           defaults to an empty list.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Resource name of this taxonomy in URL format.
     * Note: Policy tag manager generates unique taxonomy IDs.
     *
     * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. Resource name of this taxonomy in URL format.
     * Note: Policy tag manager generates unique taxonomy IDs.
     *
     * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Required. User-defined name of this taxonomy.
     * The name can't start or end with spaces, must contain only Unicode letters,
     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
     * when encoded in UTF-8.
     * The taxonomy display name must be unique within an organization.
     *
     * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Required. User-defined name of this taxonomy.
     * The name can't start or end with spaces, must contain only Unicode letters,
     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
     * when encoded in UTF-8.
     * The taxonomy display name must be unique within an organization.
     *
     * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Optional. Description of this taxonomy. If not set, defaults to empty.
     * The description must contain only Unicode characters, tabs, newlines,
     * carriage returns, and page breaks, and be at most 2000 bytes long when
     * encoded in UTF-8.
     *
     * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Optional. Description of this taxonomy. If not set, defaults to empty.
     * The description must contain only Unicode characters, tabs, newlines,
     * carriage returns, and page breaks, and be at most 2000 bytes long when
     * encoded in UTF-8.
     *
     * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Output only. Number of policy tags in this taxonomy.
     *
     * Generated from protobuf field int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * @return int
     */
    public function getPolicyTagCount()
    {
        return $this->policy_tag_count;
    }

    /**
     * Output only. Number of policy tags in this taxonomy.
     *
     * Generated from protobuf field int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * @param int $var
     * @return $this
     */
    public function setPolicyTagCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->policy_tag_count = $var;

        return $this;
    }

    /**
     * Output only. Creation and modification timestamps of this taxonomy.
     *
     * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * @return \Google\Cloud\DataCatalog\V1\SystemTimestamps|null
     */
    public function getTaxonomyTimestamps()
    {
        return $this->taxonomy_timestamps;
    }

    public function hasTaxonomyTimestamps()
    {
        return isset($this->taxonomy_timestamps);
    }

    public function clearTaxonomyTimestamps()
    {
        unset($this->taxonomy_timestamps);
    }

    /**
     * Output only. Creation and modification timestamps of this taxonomy.
     *
     * Generated from protobuf field .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * @param \Google\Cloud\DataCatalog\V1\SystemTimestamps $var
     * @return $this
     */
    public function setTaxonomyTimestamps($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SystemTimestamps::class);
        $this->taxonomy_timestamps = $var;

        return $this;
    }

    /**
     * Optional. A list of policy types that are activated for this taxonomy. If not set,
     * defaults to an empty list.
     *
     * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getActivatedPolicyTypes()
    {
        return $this->activated_policy_types;
    }

    /**
     * Optional. A list of policy types that are activated for this taxonomy. If not set,
     * defaults to an empty list.
     *
     * Generated from protobuf field repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL];
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setActivatedPolicyTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DataCatalog\V1\Taxonomy\PolicyType::class);
        $this->activated_policy_types = $arr;

        return $this;
    }

}


text:
namespace v8 {
class Extension;
}

namespace extensions_v8 {

// Profiler is an extension to allow javascript access to the API for
// an external profiler program (such as Quantify). The "External" part of the
// name is to distinguish it from the built-in V8 Profiler.
class ProfilerExtension {
 public:
  WEBKIT_EXTENSIONS_EXPORT static v8::Extension* Get();
};

}  // namespace extensions_v8

#endif  // WEBKIT_EXTENSIONS_V8_PROFILER_EXTENSION_H_


text:
@interface ViewController ()<menuDidSelectedDelegate>

@property (strong, nonatomic) IBOutlet UILabel *min;
@property (strong, nonatomic) IBOutlet UILabel *current;
@property (strong, nonatomic) IBOutlet UISlider *slider;
@end

@implementation ViewController{
    KYGooeyMenu *gooeyMenu;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.min.text = [NSString stringWithFormat:@"%d",(int)self.slider.minimumValue] ;
    [self.slider addTarget:self action:@selector(sliderValueChanged:) forControlEvents:UIControlEventValueChanged];

    gooeyMenu = [[KYGooeyMenu alloc]initWithOrigin:CGPointMake(CGRectGetMidX(self.view.frame)-50, 500) andDiameter:100.0f andDelegate:self themeColor:[UIColor redColor]];
    gooeyMenu.menuDelegate = self;
    gooeyMenu.radius = 100/4;//大圆的1/4
    gooeyMenu.extraDistance = 20;
    gooeyMenu.MenuCount = 4;

}

#pragma mark -- 彩单选中的代理方法
-(void)menuDidSelected:(NSInteger)index{
    NSLog(@"选中第%ld",(long)index);
}

- (void)sliderValueChanged:(UISlider *)sender {
    self.current.text = [NSString stringWithFormat:@"%d",(int)sender.value];

    gooeyMenu.MenuCount = (int)sender.value;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end


text:
// this file has been automatically generated, DO NOT EDIT

using J2N.Numerics;

namespace YAF.Lucene.Net.Util.Packed
{

    /// <summary>
    /// Efficient sequential read/write of packed integers.
    /// </summary>
    internal sealed class BulkOperationPacked2 : BulkOperationPacked
    {
        public BulkOperationPacked2()
            : base(2)
        {
        }

        public override void Decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
        {
            for (int i = 0; i < iterations; ++i)
            {
                long block = blocks[blocksOffset++];
                for (int shift = 62; shift >= 0; shift -= 2)
                {
                    values[valuesOffset++] = (int)((block.TripleShift(shift)) & 3);
                }
            }
        }

        public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
        {
            for (int j = 0; j < iterations; ++j)
            {
                var block = blocks[blocksOffset++];
                values[valuesOffset++] = (block.TripleShift(6)) & 3;
                values[valuesOffset++] = (block.TripleShift(4)) & 3;
                values[valuesOffset++] = (block.TripleShift(2)) & 3;
                values[valuesOffset++] = block & 3;
            }
        }

        public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
        {
            for (int i = 0; i < iterations; ++i)
            {
                long block = blocks[blocksOffset++];
                for (int shift = 62; shift >= 0; shift -= 2)
                {
                    values[valuesOffset++] = (block.TripleShift(shift)) & 3;
                }
            }
        }

        public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
        {
            for (int j = 0; j < iterations; ++j)
            {
                var block = blocks[blocksOffset++];
                values[valuesOffset++] = (block.TripleShift(6)) & 3;
                values[valuesOffset++] = (block.TripleShift(4)) & 3;
                values[valuesOffset++] = (block.TripleShift(2)) & 3;
                values[valuesOffset++] = block & 3;
            }
        }
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Annls mycol. 29: 127 (1931)

#### Original name
Phoma andryalina Petr.

### Remarks
null


text:
'''
 Author: Hans Erik Heggem
 Email: hans.erik.heggem@gmail.com
 Project: Master's Thesis - Autonomous Inspection Of Wind Blades
 Repository: Master's Thesis - CV (Computer Vision)
'''
import numpy as np
import timeit, time, warnings
from getpass import getpass
'''
 Import bin libraries
'''
from src.bin.tools import RunThread, GetTimestamp, GetTimestampedFolder, CheckDir, RemoveDir
from Settings.Settings import Settings
from Settings.Exceptions import DroneVisionError, PtGreyError
from src.DroneVision.DroneVision_src.hardware.PyQtImage import PyQtImage
from src.DroneVision.DroneVision_src.hardware.imageTools import RealTimePlot, WriteImage, GetImage, CheckDisplayAvailable
from src.DroneVision.DroneVision_src.imgProcessing.frameTools.frameTools import GetShape

'''
 Import src libraries
'''
from DataBase.DataBase import DataBase
from MasterSlave.Master import Master
from DroneVision.DroneVision import DroneVision

'''
 User input
'''
from src.bin.UserInput.UserInput import UserInput

'''
 @brief Master class. Handles the master module.

 @param settings_inst (Preconfigured settings instance (mainly for testing), used if settings_inst != None, (default=None))
 @param calibrate_stereopsis_session (Set calibrate_stereopsis_session to True for starting a new stereopsis calibration session (default=False))
 @param calibrate_blob_scale_detector_session (Set calibrate_blob_scale_detector_session to True for starting a new blob scale detector calibration session (default=False))
'''
class DroneMaster(Master, DroneVision, Settings, DataBase, UserInput):
	def __init__(self, settings_inst=None, calibrate_stereopsis_session=False, calibrate_blob_scale_detector_session=False):
		'''CONSTRUCTOR'''
		Settings.__init__(self, load_initial_settings=False)
		if not(isinstance(settings_inst, type(None))):
			self.ResetSettings(settings_inst.GetRawSettings())
		else:
			self.GetInitialSettings()
		self.__realTimePlot = None
		if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
			if self.GetSettings('REAL_TIME_PLOT', 'use_matplotlib') or not(CheckDisplayAvailable()):
				self.__realTimePlot = RealTimePlot(main_title='Master', interactive_mode=self.GetSettings('REAL_TIME_PLOT', 'use_interactive_mode'))
			else:
				self.__realTimePlot = PyQtImage(title='Master')

		Master.__init__(self, self.GetSettings('TCP'))
		DroneVision.__init__(self, True, self.GetSettings(), self.__realTimePlot)
		DataBase.__init__(self, self, self.GetSettings('DATABASE'))
		UserInput.__init__(self, self.GetSettings('USER_INPUT'))
		self.__frame_un_r_shape							= None
		self.__keypoints_r 								= None
		self.__descriptors_r 							= None
		self.__req_success 								= False
		self.__req_error 								= False
		self.__force_stereo_vision_calibration			= False
		self.__force_blob_calibration 					= False
		self.__calibrate_stereopsis_session 			= calibrate_stereopsis_session
		self.__calibrate_blob_scale_detector_session 	= calibrate_blob_scale_detector_session

	def InitializeMaster(self):
		'''
		 @brief Main initializing function for the master.
		 	Locks the master in a infinite loop.
		'''
		self.SetTimestamp(GetTimestamp())
		self.Connect() 	#Connect to slave
		self.SetTimestampedFolder(self.__timestamp)
		self.RequestSetTimestamp(self.__timestamp)
		self.InitDroneVision()
		self.SetDataBaseOutputFolder(self.GetCameraOutputFolder())
		if isinstance(self.__realTimePlot, RealTimePlot):
			self.__realTimePlot.SetSaveFigFolder(self.GetDatabaseOutputFolder() + self.GetSettings('REAL_TIME_PLOT', 'save_fig_folder'))
		self.RequestCVCalibration(self.__calibrate_stereopsis_session, self.__calibrate_blob_scale_detector_session)
		self.CheckRunMasterCalibration(self.__calibrate_stereopsis_session, self.__calibrate_blob_scale_detector_session)
		self.CalibratePointDetection(force_calibration=self.__force_stereo_vision_calibration, force_blob_calibration=self.__force_blob_calibration)
		self.WaitSlaveReady()
		self.SetDatabaseTableName(self.__timestamp, master=True, wait_for_user=not(self.GetSettings('USER_INPUT', 'automatic_mode')))
		self.SendFlagToSlave(True) # Send flag to slave commanding it to continue

	def RunMaster(self):
		'''
		 @brief Run master indefinitely.
		 	Implement computer vision, manouvering and gimbal control here.
		'''
		store_to_db  			= self.GetSettings('DATABASE', 'store_process_data')
		store_frames 			= self.GetSettings('DATABASE', 'store_frames_as_video') or self.GetSettings('DATABASE', 'store_frames_as_images')
		store_drawn_frames 		= self.GetSettings('DATABASE', 'store_drawn_frames')
		draw_heading 			= self.GetSettings('DATABASE', 'draw_heading')
		draw_matches 			= self.GetSettings('DATABASE', 'draw_matches')
		draw_hough_lines 		= self.GetSettings('DATABASE', 'draw_hough_lines')
		draw_detected_points 	= self.GetSettings('DATABASE', 'draw_detected_points')
		print_3D_points 		= self.GetSettings('DATABASE', 'print_3D_points')
		if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
			self.__realTimePlot(reset=True)
		self.StartAutoHandleUserInput()
		self.ResetTermination()
		while not(self.CheckFinished()):
			##########################################

			#----------- COMPUTER VISION ------------#
			points_error, boundary_error, heading_error, stereo_error, heading_distance, heading_angle, points3D, frame_un_l, delta_frame_l, hough_frame, matches_frame = self.ProcessCV(draw_heading=draw_heading, draw_hough_lines=draw_hough_lines, draw_detected_points=draw_detected_points, draw_matches=draw_matches)
			if isinstance(points_error, PtGreyError): # Dominant error - continue with next frame
				continue
			if stereo_error == None and points_error == None:
				points3D_m 		= self.Points3DToMatrix(points3D)
				average_point3D = np.mean(points3D_m, axis=1)
				std_points3D 	= np.std(points3D_m, axis=1)
			#----------------------------------------#

			#----------- GIMBAL CONTROL -------------#
			# TODO (implement)
			#----------------------------------------#

			#----------- DRONE MANOUVERING ----------#
			# TODO (implement)
			#----------------------------------------#

			#----------- STORE IN DATABASE ----------#
			if points_error == None:
				if stereo_error == None:
					self.SetProcessData('X_average', average_point3D[0,0])
					self.SetProcessData('Y_average', average_point3D[1,0])
					self.SetProcessData('Z_average', average_point3D[2,0])
					self.SetProcessData('Z_std', std_points3D[2,0])
				if heading_error == None:
					self.SetProcessData('rho', heading_distance)
					self.SetProcessData('theta', heading_angle)
				if store_frames and store_drawn_frames:
					if draw_heading:
						self.SetProcessFrame('heading', frame_un_l)
					if draw_matches and not(isinstance(stereo_error, DroneVisionError)):
						self.SetProcessFrame('matches', matches_frame)
					if draw_hough_lines and not(isinstance(boundary_error, DroneVisionError)):
						self.SetProcessFrame('hough_lines', hough_frame)
					if draw_detected_points:
						self.SetProcessFrame('points', delta_frame_l)

			if not(print_3D_points) or stereo_error != None or points_error != None:
				points3D = []
			self.RecordData(record_frames=store_frames, insert_to_database=store_to_db, print_progress=True, points3D=points3D)
			#----------------------------------------#

			#-------- SHOW RESULTS REALTIME ---------#
			if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
				if not(isinstance(points_error, DroneVisionError)):
					plot_frames = []
					if draw_heading:
						plot_frames.append(('heading', frame_un_l))
					if draw_matches and not(isinstance(stereo_error, DroneVisionError)):
						plot_frames.append(('matches', matches_frame))
					if draw_hough_lines and not(isinstance(boundary_error, DroneVisionError)):
						plot_frames.append(('hough_lines', hough_frame))
					if draw_detected_points:
						plot_frames.append(('points', delta_frame_l))
					self.__realTimePlot(plot_frames)
			#----------------------------------------#

			#---- DELETE FRAMES TO FREE MEMORY ----#
			del frame_un_l
			del delta_frame_l
			del matches_frame
			#----------------------------------------#

			##########################################

		self.ForceTermination()
		self.PrintFinished()
		self.RequestStop()
		self.SendFinishRequest()
		self.CloseMaster()

	def SendFinishRequest(self):
		'''
		 @brief Send finish request from master to slave
		'''
		if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
			if (self.GetSettings('REAL_TIME_PLOT', 'use_matplotlib') and self.GetSettings('REAL_TIME_PLOT', 'use_interactive_mode')) or not(self.GetSettings('REAL_TIME_PLOT', 'use_matplotlib')):
				getpass('Hit enter to terminate..')
		self.RequestDisconnect()

	def CheckRunMasterCalibration(self, calibrate_stereopsis=False, calibrate_blob_scale_detector=False):
		'''
		 @brief Check if a new calibration session should be started.

		 @param calibrate_stereopsis (Set calibrate_stereopsis to True for starting a new stereopsis calibration session (default=False))
		 @param calibrate_blob_scale_detector (Set calibrate_blob_scale_detector to True for starting a new blob scale detector calibration session (default=False))
		'''
		n_stereo_saved_calib_frame_sets = 0
		n_blob_saved_calib_frame_sets 	= 0
		if calibrate_stereopsis:
			calib_folder = self.GetSettings('CALIB', 'calib_img_folder_left_cam')
			n_stereo_saved_calib_frame_sets += self.RunMasterCalibration(calib_folder, True)
		if calibrate_blob_scale_detector:
			calib_folder = self.GetSettings('BLOB_SCALE', 'scale_calib_folder')
			n_blob_saved_calib_frame_sets += self.RunMasterCalibration(calib_folder, False)
		if (calibrate_stereopsis or calibrate_blob_scale_detector) and not(self.GetSettings('BASIC', 'reset_calibration')):
			self.__force_stereo_vision_calibration = self.GetYesNoFromUser('Force new stereopsis calibration with new calibration samples?')
			self.__force_blob_calibration = self.GetYesNoFromUser('Force new blob calibration with new calibration samples?')
			self.SendFlagToSlave(self.__force_stereo_vision_calibration)
			self.SendFlagToSlave(self.__force_blob_calibration)
		if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
			self.__realTimePlot(reset=True)

	def RunMasterCalibration(self, calib_folder, stereo_or_blob_calib, calib_filename='calib_frame'):
		'''
		 @brief Run master calibration.
		 	Manually trig new images of a chessboard to calibrate the stereopsis system.

		 @param calib_folder (folder where the captured calibration frames are stored)
		 @param stereo_or_blob_calib (True for stereopsis calibration, False for blob scale calibration)
		 @param calib_filename (Basic filename of save frames)

		 @return n_saved_calib_frame_sets
		'''
		first_image_set = True
		if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
			self.__realTimePlot(reset=True)
		self.PrintCalibrationSession(calib_folder, stereo_or_blob_calib, calib_filename)
		if stereo_or_blob_calib:
			get_normal_frame_only = True
		else:
			normal_folder 	= calib_folder + 'normal/'
			sl_folder 		= calib_folder + 'sl/'
			get_normal_frame_only = False # blob calibration demands sl frames
		frame_n = 0
		while not(self.CheckFinished()):
			self.SendFlagToSlave(True) # Send flag to slave commanding it to continue
			self.RequestFrameProcessingOnSlave() # Trigger slave to wait for new frame capturing.
			try:
				frame, sl_frame = self.GetRawFrames(get_normal_frame_only=get_normal_frame_only)
			except PtGreyError, err:
				warnings.simplefilter('always')
				warnings.warn(str(err), Warning)
				warnings.simplefilter('default')
				self.RestartCamera()
				self.RequestRestartPtGrey()
				continue
			self.WaitSlaveReady()

			#-------- SHOW RESULTS REALTIME ---------#
			if self.GetSettings('REAL_TIME_PLOT', 'real_time_plot_on'):
				if get_normal_frame_only:
					title 		= 'stereopsis_calibration_session'
					plot_frames = [('frame', frame)]
				else:
					title 		= 'blob_calibration_session'
					plot_frames = [('frame', frame), ('sl_frame', sl_frame)]
				self.__realTimePlot(plot_frames, title)
			#----------------------------------------#

			answer = self.GetYesNoFromUser('Store images to calibration folder?')
			self.SendFlagToSlave(answer)
			if answer:
				if first_image_set:
					first_image_set = False
					if get_normal_frame_only:
						RemoveDir(calib_folder)
						CheckDir(calib_folder)
					else:
						RemoveDir(normal_folder)
						RemoveDir(sl_folder)
						CheckDir(normal_folder)
						CheckDir(sl_folder)
				print 'Master is saving calibration frames [{0}]..'.format(frame_n+1)
				if get_normal_frame_only:
					WriteImage(frame, calib_folder + calib_filename + '_' + str(frame_n))
				else:
					WriteImage(frame, normal_folder + calib_filename + '_' + str(frame_n))
					WriteImage(sl_frame, sl_folder + calib_filename + '_' + str(frame_n))
				frame_n += 1
			else:
				print 'Master did not save calibration frames..'
		self.SendFlagToSlave(False) # Send flag to slave commanding it to break
		if get_normal_frame_only: # Transfer all stereopsis images back and forth to slave/master
			if frame_n > 0:
				RemoveDir(self.GetSettings('CALIB', 'calib_img_folder_right_cam'))
				CheckDir(self.GetSettings('CALIB', 'calib_img_folder_right_cam'))
			for n_traded_frame in range(frame_n):
				traded_frame = GetImage(calib_folder + calib_filename + '_' + str(n_traded_frame) + '.tif')
				print 'Trading frame {0}/{1} with slave..'.format(n_traded_frame+1, frame_n)
				traded_frame, valid, error = self.RequestTradeFrame(self.GetSettings('CALIB', 'calib_img_folder_right_cam') + calib_filename + '_' + str(n_traded_frame) + '.tif', traded_frame)
				if not(valid) or error:
					raise Exception('Failed trading frames with slave')
				WriteImage(traded_frame, self.GetSettings('CALIB', 'calib_img_folder_right_cam') + calib_filename + '_' + str(n_traded_frame))
			self.SendFlagToSlave(True) # Send flag to slave commanding it to break
		return frame_n

	def ProcessCV(self, draw_heading=False, draw_hough_lines=False, draw_detected_points=False, draw_matches=False):
		'''
		 @brief Process computer vision steps

		 @param draw_heading (default=False)
		 @param draw_hough_lines (default=False) - draw_hough_lines overwrites draw_detected_points
		 @param draw_detected_points (default=False)
		 @param draw_matches (default=False)

		 @return points_error, boundary_error, heading_error, stereo_error, cv_results (Returns: points_error, heading_error, stereo_error (None, if no error and points_error as dominant error), cv_results = tuple containing elements of desired results.)
		'''
		points_error, frame_un_l, delta_frame_l, keypoints_l, descriptors_l, und_shape_r, keypoints_r, descriptors_r = self.GetProcessedFrames(draw_detected_points=draw_detected_points)
		if points_error != None:
			return points_error, None, None, None, None, None, None, None, None, None, None # Return failed frames.
		boundary_error, heading_error, heading_distance, heading_angle, frame_un_l, hough_frame = self.ProcessHeading(frame_un_l, delta_frame_l, keypoints_l, draw_heading=draw_heading, draw_hough_lines=draw_hough_lines)
		stereo_error, points3D, matches_frame = self.ProcessStereopsis(GetShape(frame_un_l), und_shape_r, keypoints_l, descriptors_l, keypoints_r, descriptors_r, draw_matches=draw_matches)
		return None, boundary_error, heading_error, stereo_error, heading_distance, heading_angle, points3D, frame_un_l, delta_frame_l, hough_frame, matches_frame

	def GetProcessedFrames(self, draw_detected_points=False):
		'''
		 @brief Get processed left and right frame simultaneously.
		 	Returns error if an error occurs (error=None if not).

		 @param draw_detected_points (default=False)

		 @return error, frame_un_l, delta_frame_l, keypoints_l, descriptors_l, frame_un_r_shape, keypoints_r, descriptors_r
		'''
		self.RequestFrameProcessingOnSlave() # Trig slave to capture new frames triggered by the master.
		try:
			original_frame_l, original_sl_frame_l = self.GetRawFrames() # Get new frames from slave, which triggers new frames to be captured on slave
			if self.GetSettings('DATABASE', 'store_frames_as_video') or self.GetSettings('DATABASE', 'store_frames_as_images'): # Store frames here to relieve memory. The frames are deleted as soon as possible.
				self.SetProcessFrame('original_left', original_frame_l)
				self.SetProcessFrame('original_sl_left', original_sl_frame_l)
				self.RecordData(record_frames=True, insert_to_database=False)
		except PtGreyError, err:
			warnings.simplefilter('always')
			warnings.warn(str(err), Warning)
			warnings.simplefilter('default')
			self.RestartCamera()
			self.RequestRestartPtGrey()
			return err, None, None, None, None, None, None, None
		t = RunThread(self.RequestPointlistThread)
		try:
			original_frame_l, original_sl_frame_l, frame_un_l, delta_frame_l, keypoints_l, descriptors_l = self.GetProcessedFrame(original_frame=original_frame_l, original_sl_frame=original_sl_frame_l, draw_detected_points=draw_detected_points) #Master is positioned to the left (left frame)
			del original_frame_l
			del original_sl_frame_l
			t.join() # Wait for slave point list request to finish
			if not(self.__req_success):
				if self.__req_error:
					self.RequestRestartPtGrey()
				raise DroneVisionError('could_not_get_point_list_from_slave')
		except DroneVisionError, err:
			self.__break_req = True # Break slave point list request if it's still running.
			warnings.simplefilter('always')
			warnings.warn(str(err), Warning)
			warnings.simplefilter('default')
			t.join() # Wait for slave point list request to terminate
			return err, None, None, None, None, None, None, None
		return None, frame_un_l, delta_frame_l, keypoints_l, descriptors_l, self.__frame_un_r_shape, self.__keypoints_r, self.__descriptors_r

	def RequestPointlistThread(self):
		'''
		 @brief Request point list from slave.
		 	Execute in thread.
		'''
		self.__break_req   	= False
		self.__req_success 	= False
		self.__req_error 	= False
		timeout = timeit.default_timer()
		while (not(self.__req_success) and not(self.__req_error) and (timeit.default_timer() - timeout) < self.GetSettings('TCP', 'frame_req_timeout')) and not(self.__break_req):
			self.__frame_un_r_shape, self.__keypoints_r, self.__descriptors_r, self.__req_success, self.__req_error = self.RequestPointList() #Slave is positioned to the right (right frame)

	def CheckFinished(self):
		'''
		 @Check if master is finished.

		 @return True/False - True = Finished, False = Not Finished
		'''
		stop = False
		if self.CheckDroneVisionFinished() or self.CheckTerminated():
			stop = True
		return stop #else

	def SetTimestamp(self, timestamp):
		'''
		 @brief Set timestamp for this session

		 @param timestamp
		'''
		self.__timestamp = timestamp

	def SetTimestampedFolder(self, timestamp):
		'''
		 @brief Set timestamped folder for this session.

		 @param timestamp String
		'''
		self.ChangeSetting('DATABASE', 'output_folder', GetTimestampedFolder(timestamp, self.GetSettings('DATABASE', 'output_folder'), self.GetSettings('DATABASE', 'sub_output_folder')))

	def WaitSlaveReady(self):
		'''
		 @brief Wait for slave to be ready.
		'''
		slave_ready = False
		timeout = timeit.default_timer()
		while not(slave_ready) and ((timeit.default_timer() - timeout) < self.GetSettings('CALIB', 'calib_timeout') or self.GetSettings('CALIB', 'calib_timeout') < 0):
			slave_ready = self.RequestSlaveReady()
			if not(slave_ready):
				time.sleep(0.1)
		if not(slave_ready):
			raise Exception('Slave could not be ready within the timeout.')

	def CloseMaster(self):
		'''
		 @brief Close master safely
		'''
		Master.__del__(self)
		DataBase.__del__(self)

	def __del__(self):
		'''DESTRUCTOR'''
		self.CloseMaster()


text:
<?php
/**
 * Model_ClusterServer
 * class description
 *
 * @package Model
 * @author  Harmen Janssen <harmen@grrr.nl>
 */
class Model_ClusterServer extends Garp_Model_Db_ClusterServer {
    public function init() {
        parent::init();
    }
}


text:
import {
  MULTI_ACTION_BUTTON_LIST,
  MULTI_ACTION_BUTTON_COMPONENT,
} from "./locators";
import { BUTTON_DATA_COMPONENT } from "../pages/locators";

// component preview locators
export const multiActionButtonComponent = () =>
  cy.get(MULTI_ACTION_BUTTON_COMPONENT);
export const multiActionButtonListContainer = () =>
  cy.get(MULTI_ACTION_BUTTON_LIST);
export const multiActionButtonList = () =>
  multiActionButtonListContainer().children();
export const multiActionButtonText = () =>
  multiActionButtonComponent().find(BUTTON_DATA_COMPONENT);
export const multiActionButton = () =>
  multiActionButtonComponent().find("button");


text:
(function () {
    // alias: site.huozhu.page.Newtab
    // 模块化之外的依赖:jQuery
    define(function (require, exports, module) {

        var Collector = require('site.huozhu.collector.Collector');
        var Constant = require('site.huozhu.Constant');
        var Util = require('site.huozhu.Util');

        var constant = Constant.Constant;
        var links = Constant.Links;
        var collector = new Collector();

        module.exports = function () {

            var me = this;
            var url = "";
            var favoriteUrl = null;
            var originalUrl = null;

            this.setUrl = function (u) {
                url = u;
            };

            this.setFavoriteUrl = function(u){
                favoriteUrl = u;
            }

            this.setOriginalUrl = function(u){
                originalUrl = u;
            }

            this.getFavoriteUrl = function () {
                return favoriteUrl;
            };

            this.getOriginalUrl = function () {
                return originalUrl;
            };

            this.getUrl = function () {
                return url;
            };

            this.save = function () {
                var source = localStorage.getItem(constant.LOCAL_STORAGE_KEYS.CURRENT_LOADER);
                var support = false;
                switch (source) {
                    case "tuchong":
                        support = true;
                        break;
                    case "ivsky":
                        support = true;
                        break;
                    case "duitang":
                        support = true;
                        break;
                    case "unsplash":
                        support = true;
                        break;
                    default:
                        source = "unsplash";
                }
                if(support){
                    collector.collect(me.getFavoriteUrl());
                } else {
                    if(confirm(constant.PAGE_MESSAGE.NEW_TAB.NOT_SUPPORT_FOR_COLLECT)){
                        collector.collect(me.getFavoriteUrl());
                    }
                }
            };

            this.bindEvent = function () {
                // $(".desktop-button-container").click(function () {
                //     saver.desktop(me.getUrl());
                // });
                $(".open-button-container").click(me.openSrc);
                $(".save-button-container").click(me.save);
                $(".home-button-container").click(me.goHome);
                $(".refresh-button-container").click(me.getImage);
            };
            this.openSrc = function () {
                chrome.tabs.create({
                    url: me.getOriginalUrl()
                });
            };

            this.getFormatDate = function (d) {
                if (d < 10) {
                    return "0" + d;
                } else {
                    return d;
                }
            };

            this.refreshTimeDate = function () {
                var now = new Date();
                var time = me.getFormatDate(now.getHours()) + ":" + me.getFormatDate(now.getMinutes());
                var date = now.getFullYear() + "-" + me.getFormatDate(now.getMonth() + 1) + "-" + me.getFormatDate(now.getDate());
                $(".time").html(time);
                $(".date").html(date);
                window.setTimeout(me.refreshTimeDate, 1000);
            };

            this.goHome = function () {
                chrome.tabs.create({
                    url: links.HOME_PAGE
                });
            };

            this.getImage = function () {
                var source = localStorage.getItem(constant.LOCAL_STORAGE_KEYS.CURRENT_LOADER);
                var sourceSupport = false;
                switch (source) {
                    case "tuchong":
                        sourceSupport = true;
                        break;
                    case "ivsky":
                        sourceSupport = true;
                        break;
                    case "duitang":
                        sourceSupport = true;
                        break;
                    case "unsplash":
                        sourceSupport = true;
                        break;
                    default:
                        source = "duitang";
                }

                require.async("site.huozhu.loader." + source, function(loader){
                    loader.load(function (imageUrl, sourceUrl, originalUrl, favoriteUrl) {
                        me.setUrl(imageUrl);
                        me.setOriginalUrl(originalUrl ? originalUrl : imageUrl);
                        me.setFavoriteUrl(favoriteUrl ? favoriteUrl : imageUrl);
                        me.refreshImage();
                    }, function () {
                        me.getImage();
                    });
                });
            };

            this.refreshImage = function () {
                $("body").css("backgroundImage", "url(" + me.getUrl() + ")");
                $(".desktop-button").attr("href", me.getOriginalUrl());
                $(".desktop-button").attr("download", Util.getFileName(u, "wallpaper_" + new Date().getTime() + ".jpg"));

            };

            this.init = function () {
                $(document).ready(function () {
                    $("title").html(constant.APP_NAME);
                    me.getImage();
                    me.refreshTimeDate();
                    me.bindEvent();
                });
            };

            return this;
        };
    });
})();


text:
/*
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.recommender.v1beta1.model;

/**
 * A recommendation along with a suggested action. E.g., a rightsizing recommendation for an
 * underutilized VM, IAM role recommendations, etc
 *
 *
 This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Recommender API. For a detailed explanation see:
 * https://developers.google.com/api-client-library/java/google-http-java-client/json
 *

 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudRecommenderV1beta1Recommendation extends com.google.api.client.json.GenericJson {

  /**
   * Optional set of additional impact that this recommendation may have when trying to optimize for
   * the primary category. These may be positive or negative.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudRecommenderV1beta1Impact> additionalImpact;

  static {
    // hack to force ProGuard to consider GoogleCloudRecommenderV1beta1Impact used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(GoogleCloudRecommenderV1beta1Impact.class);
  }

  /**
   * Insights that led to this recommendation.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudRecommenderV1beta1RecommendationInsightReference> associatedInsights;

  /**
   * Content of the recommendation describing recommended changes to resources.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudRecommenderV1beta1RecommendationContent content;

  /**
   * Free-form human readable summary in English. The maximum length is 500 characters.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * Fingerprint of the Recommendation. Provides optimistic locking when updating states.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String etag;

  /**
   * Last time this recommendation was refreshed by the system that created it in the first place.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String lastRefreshTime;

  /**
   * Name of recommendation.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * The primary impact that this recommendation can have while trying to optimize for one category.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudRecommenderV1beta1Impact primaryImpact;

  /**
   * Contains an identifier for a subtype of recommendations produced for the same recommender.
   * Subtype is a function of content and impact, meaning a new subtype might be added when
   * significant changes to `content` or `primary_impact.category` are introduced. See the
   * Recommenders section to see a list of subtypes for a given Recommender. Examples: For
   * recommender = "google.iam.policy.Recommender", recommender_subtype can be one of
   * "REMOVE_ROLE"/"REPLACE_ROLE"
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String recommenderSubtype;

  /**
   * Information for state. Contains state and metadata.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudRecommenderV1beta1RecommendationStateInfo stateInfo;

  /**
   * Optional set of additional impact that this recommendation may have when trying to optimize for
   * the primary category. These may be positive or negative.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudRecommenderV1beta1Impact> getAdditionalImpact() {
    return additionalImpact;
  }

  /**
   * Optional set of additional impact that this recommendation may have when trying to optimize for
   * the primary category. These may be positive or negative.
   * @param additionalImpact additionalImpact or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setAdditionalImpact(java.util.List<GoogleCloudRecommenderV1beta1Impact> additionalImpact) {
    this.additionalImpact = additionalImpact;
    return this;
  }

  /**
   * Insights that led to this recommendation.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudRecommenderV1beta1RecommendationInsightReference> getAssociatedInsights() {
    return associatedInsights;
  }

  /**
   * Insights that led to this recommendation.
   * @param associatedInsights associatedInsights or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setAssociatedInsights(java.util.List<GoogleCloudRecommenderV1beta1RecommendationInsightReference> associatedInsights) {
    this.associatedInsights = associatedInsights;
    return this;
  }

  /**
   * Content of the recommendation describing recommended changes to resources.
   * @return value or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1RecommendationContent getContent() {
    return content;
  }

  /**
   * Content of the recommendation describing recommended changes to resources.
   * @param content content or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setContent(GoogleCloudRecommenderV1beta1RecommendationContent content) {
    this.content = content;
    return this;
  }

  /**
   * Free-form human readable summary in English. The maximum length is 500 characters.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * Free-form human readable summary in English. The maximum length is 500 characters.
   * @param description description or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * Fingerprint of the Recommendation. Provides optimistic locking when updating states.
   * @return value or {@code null} for none
   */
  public java.lang.String getEtag() {
    return etag;
  }

  /**
   * Fingerprint of the Recommendation. Provides optimistic locking when updating states.
   * @param etag etag or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setEtag(java.lang.String etag) {
    this.etag = etag;
    return this;
  }

  /**
   * Last time this recommendation was refreshed by the system that created it in the first place.
   * @return value or {@code null} for none
   */
  public String getLastRefreshTime() {
    return lastRefreshTime;
  }

  /**
   * Last time this recommendation was refreshed by the system that created it in the first place.
   * @param lastRefreshTime lastRefreshTime or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setLastRefreshTime(String lastRefreshTime) {
    this.lastRefreshTime = lastRefreshTime;
    return this;
  }

  /**
   * Name of recommendation.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Name of recommendation.
   * @param name name or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * The primary impact that this recommendation can have while trying to optimize for one category.
   * @return value or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Impact getPrimaryImpact() {
    return primaryImpact;
  }

  /**
   * The primary impact that this recommendation can have while trying to optimize for one category.
   * @param primaryImpact primaryImpact or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setPrimaryImpact(GoogleCloudRecommenderV1beta1Impact primaryImpact) {
    this.primaryImpact = primaryImpact;
    return this;
  }

  /**
   * Contains an identifier for a subtype of recommendations produced for the same recommender.
   * Subtype is a function of content and impact, meaning a new subtype might be added when
   * significant changes to `content` or `primary_impact.category` are introduced. See the
   * Recommenders section to see a list of subtypes for a given Recommender. Examples: For
   * recommender = "google.iam.policy.Recommender", recommender_subtype can be one of
   * "REMOVE_ROLE"/"REPLACE_ROLE"
   * @return value or {@code null} for none
   */
  public java.lang.String getRecommenderSubtype() {
    return recommenderSubtype;
  }

  /**
   * Contains an identifier for a subtype of recommendations produced for the same recommender.
   * Subtype is a function of content and impact, meaning a new subtype might be added when
   * significant changes to `content` or `primary_impact.category` are introduced. See the
   * Recommenders section to see a list of subtypes for a given Recommender. Examples: For
   * recommender = "google.iam.policy.Recommender", recommender_subtype can be one of
   * "REMOVE_ROLE"/"REPLACE_ROLE"
   * @param recommenderSubtype recommenderSubtype or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setRecommenderSubtype(java.lang.String recommenderSubtype) {
    this.recommenderSubtype = recommenderSubtype;
    return this;
  }

  /**
   * Information for state. Contains state and metadata.
   * @return value or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1RecommendationStateInfo getStateInfo() {
    return stateInfo;
  }

  /**
   * Information for state. Contains state and metadata.
   * @param stateInfo stateInfo or {@code null} for none
   */
  public GoogleCloudRecommenderV1beta1Recommendation setStateInfo(GoogleCloudRecommenderV1beta1RecommendationStateInfo stateInfo) {
    this.stateInfo = stateInfo;
    return this;
  }

  @Override
  public GoogleCloudRecommenderV1beta1Recommendation set(String fieldName, Object value) {
    return (GoogleCloudRecommenderV1beta1Recommendation) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudRecommenderV1beta1Recommendation clone() {
    return (GoogleCloudRecommenderV1beta1Recommendation) super.clone();
  }

}


text:
package nodes

import (
	"fmt"
	"reflect"

	osgraph "github.com/openshift/origin/pkg/api/graph"
	imageapi "github.com/openshift/origin/pkg/image/api"
)

var (
	ImageStreamNodeKind      = reflect.TypeOf(imageapi.ImageStream{}).Name()
	ImageNodeKind            = reflect.TypeOf(imageapi.Image{}).Name()
	ImageStreamTagNodeKind   = reflect.TypeOf(imageapi.ImageStreamTag{}).Name()
	ImageStreamImageNodeKind = reflect.TypeOf(imageapi.ImageStreamImage{}).Name()

	// non-api types
	DockerRepositoryNodeKind = reflect.TypeOf(imageapi.DockerImageReference{}).Name()
	ImageLayerNodeKind       = "ImageLayer"
)

func ImageStreamNodeName(o *imageapi.ImageStream) osgraph.UniqueName {
	return osgraph.GetUniqueRuntimeObjectNodeName(ImageStreamNodeKind, o)
}

type ImageStreamNode struct {
	osgraph.Node
	*imageapi.ImageStream

	IsFound bool
}

func (n ImageStreamNode) Found() bool {
	return n.IsFound
}

func (n ImageStreamNode) Object() interface{} {
	return n.ImageStream
}

func (n ImageStreamNode) String() string {
	return string(ImageStreamNodeName(n.ImageStream))
}

func (n ImageStreamNode) ResourceString() string {
	return "is/" + n.Name
}

func (*ImageStreamNode) Kind() string {
	return ImageStreamNodeKind
}

func ImageStreamTagNodeName(o *imageapi.ImageStreamTag) osgraph.UniqueName {
	return osgraph.GetUniqueRuntimeObjectNodeName(ImageStreamTagNodeKind, o)
}

type ImageStreamTagNode struct {
	osgraph.Node
	*imageapi.ImageStreamTag

	IsFound bool
}

func (n ImageStreamTagNode) Found() bool {
	return n.IsFound
}

func (n ImageStreamTagNode) ImageSpec() string {
	name, tag, _ := imageapi.SplitImageStreamTag(n.ImageStreamTag.Name)
	return imageapi.DockerImageReference{Namespace: n.Namespace, Name: name, Tag: tag}.String()
}

func (n ImageStreamTagNode) ImageTag() string {
	_, tag, _ := imageapi.SplitImageStreamTag(n.ImageStreamTag.Name)
	return tag
}

func (n ImageStreamTagNode) Object() interface{} {
	return n.ImageStreamTag
}

func (n ImageStreamTagNode) String() string {
	return string(ImageStreamTagNodeName(n.ImageStreamTag))
}

func (n ImageStreamTagNode) ResourceString() string {
	return "imagestreamtag/" + n.Name
}

func (*ImageStreamTagNode) Kind() string {
	return ImageStreamTagNodeKind
}

func ImageStreamImageNodeName(o *imageapi.ImageStreamImage) osgraph.UniqueName {
	return osgraph.GetUniqueRuntimeObjectNodeName(ImageStreamImageNodeKind, o)
}

type ImageStreamImageNode struct {
	osgraph.Node
	*imageapi.ImageStreamImage

	IsFound bool
}

func (n ImageStreamImageNode) Object() interface{} {
	return n.ImageStreamImage
}

func (n ImageStreamImageNode) String() string {
	return string(ImageStreamImageNodeName(n.ImageStreamImage))
}

func (*ImageStreamImageNode) Kind() string {
	return ImageStreamImageNodeKind
}

func DockerImageRepositoryNodeName(o imageapi.DockerImageReference) osgraph.UniqueName {
	return osgraph.UniqueName(fmt.Sprintf("%s|%s", DockerRepositoryNodeKind, o.String()))
}

type DockerImageRepositoryNode struct {
	osgraph.Node
	Ref imageapi.DockerImageReference
}

func (n DockerImageRepositoryNode) ImageSpec() string {
	return n.Ref.String()
}

func (n DockerImageRepositoryNode) ImageTag() string {
	return n.Ref.DockerClientDefaults().Tag
}

func (n DockerImageRepositoryNode) String() string {
	return string(DockerImageRepositoryNodeName(n.Ref))
}

func (*DockerImageRepositoryNode) Kind() string {
	return DockerRepositoryNodeKind
}

func ImageNodeName(o *imageapi.Image) osgraph.UniqueName {
	return osgraph.GetUniqueRuntimeObjectNodeName(ImageNodeKind, o)
}

type ImageNode struct {
	osgraph.Node
	Image *imageapi.Image
}

func (n ImageNode) Object() interface{} {
	return n.Image
}

func (n ImageNode) String() string {
	return string(ImageNodeName(n.Image))
}

func (n ImageNode) ResourceString() string {
	return "image/" + n.Image.Name
}

func (*ImageNode) Kind() string {
	return ImageNodeKind
}

func ImageLayerNodeName(layer string) osgraph.UniqueName {
	return osgraph.UniqueName(fmt.Sprintf("%s|%s", ImageLayerNodeKind, layer))
}

type ImageLayerNode struct {
	osgraph.Node
	Layer string
}

func (n ImageLayerNode) Object() interface{} {
	return n.Layer
}

func (n ImageLayerNode) String() string {
	return string(ImageLayerNodeName(n.Layer))
}

func (*ImageLayerNode) Kind() string {
	return ImageLayerNodeKind
}


text:
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import { deepmerge } from '@material-ui/utils';
import common from '../colors/common';
import grey from '../colors/grey';
import indigo from '../colors/indigo';
import pink from '../colors/pink';
import red from '../colors/red';
import orange from '../colors/orange';
import blue from '../colors/blue';
import green from '../colors/green';
import { darken, getContrastRatio, lighten } from './colorManipulator';
export var light = {
  // The colors used to style the text.
  text: {
    // The most important text.
    primary: 'rgba(0, 0, 0, 0.87)',
    // Secondary text.
    secondary: 'rgba(0, 0, 0, 0.54)',
    // Disabled text have even lower visual prominence.
    disabled: 'rgba(0, 0, 0, 0.38)',
    // Text hints.
    hint: 'rgba(0, 0, 0, 0.38)'
  },
  // The color used to divide different elements.
  divider: 'rgba(0, 0, 0, 0.12)',
  // The background colors used to style the surfaces.
  // Consistency between these values is important.
  background: {
    paper: common.white,
    default: grey[50]
  },
  // The colors used to style the action elements.
  action: {
    // The color of an active action like an icon button.
    active: 'rgba(0, 0, 0, 0.54)',
    // The color of an hovered action.
    hover: 'rgba(0, 0, 0, 0.04)',
    hoverOpacity: 0.04,
    // The color of a selected action.
    selected: 'rgba(0, 0, 0, 0.08)',
    selectedOpacity: 0.08,
    // The color of a disabled action.
    disabled: 'rgba(0, 0, 0, 0.26)',
    // The background color of a disabled action.
    disabledBackground: 'rgba(0, 0, 0, 0.12)',
    disabledOpacity: 0.38,
    focus: 'rgba(0, 0, 0, 0.12)',
    focusOpacity: 0.12,
    activatedOpaciy: 0.12
  }
};
export var dark = {
  text: {
    primary: common.white,
    secondary: 'rgba(255, 255, 255, 0.7)',
    disabled: 'rgba(255, 255, 255, 0.5)',
    hint: 'rgba(255, 255, 255, 0.5)',
    icon: 'rgba(255, 255, 255, 0.5)'
  },
  divider: 'rgba(255, 255, 255, 0.12)',
  background: {
    paper: grey[800],
    default: '#303030'
  },
  action: {
    active: common.white,
    hover: 'rgba(255, 255, 255, 0.08)',
    hoverOpacity: 0.08,
    selected: 'rgba(255, 255, 255, 0.16)',
    selectedOpacity: 0.16,
    disabled: 'rgba(255, 255, 255, 0.3)',
    disabledBackground: 'rgba(255, 255, 255, 0.12)',
    disabledOpacity: 0.38,
    focus: 'rgba(255, 255, 255, 0.12)',
    focusOpacity: 0.12,
    activatedOpaciy: 0.24
  }
};

function addLightOrDark(intent, direction, shade, tonalOffset) {
  if (!intent[direction]) {
    if (intent.hasOwnProperty(shade)) {
      intent[direction] = intent[shade];
    } else if (direction === 'light') {
      intent.light = lighten(intent.main, tonalOffset);
    } else if (direction === 'dark') {
      intent.dark = darken(intent.main, tonalOffset * 1.5);
    }
  }
}

export default function createPalette(palette) {
  var _palette$primary = palette.primary,
      primary = _palette$primary === void 0 ? {
    light: indigo[300],
    main: indigo[500],
    dark: indigo[700]
  } : _palette$primary,
      _palette$secondary = palette.secondary,
      secondary = _palette$secondary === void 0 ? {
    light: pink.A200,
    main: pink.A400,
    dark: pink.A700
  } : _palette$secondary,
      _palette$error = palette.error,
      error = _palette$error === void 0 ? {
    light: red[300],
    main: red[500],
    dark: red[700]
  } : _palette$error,
      _palette$warning = palette.warning,
      warning = _palette$warning === void 0 ? {
    light: orange[300],
    main: orange[500],
    dark: orange[700]
  } : _palette$warning,
      _palette$info = palette.info,
      info = _palette$info === void 0 ? {
    light: blue[300],
    main: blue[500],
    dark: blue[700]
  } : _palette$info,
      _palette$success = palette.success,
      success = _palette$success === void 0 ? {
    light: green[300],
    main: green[500],
    dark: green[700]
  } : _palette$success,
      _palette$type = palette.type,
      type = _palette$type === void 0 ? 'light' : _palette$type,
      _palette$contrastThre = palette.contrastThreshold,
      contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,
      _palette$tonalOffset = palette.tonalOffset,
      tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,
      other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]); // Use the same logic as
  // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59
  // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54

  function getContrastText(background) {
    if (!background) {
      throw new TypeError("Material-UI: missing background argument in getContrastText(".concat(background, ")."));
    }

    var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;

    if (process.env.NODE_ENV !== 'production') {
      var contrast = getContrastRatio(background, contrastText);

      if (contrast < 3) {
        console.error(["Material-UI: the contrast ratio of ".concat(contrast, ":1 for ").concat(contrastText, " on ").concat(background), 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n'));
      }
    }

    return contrastText;
  }

  function augmentColor(color) {
    var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
    var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
    var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;
    color = _extends({}, color);

    if (!color.main && color[mainShade]) {
      color.main = color[mainShade];
    }

    if (process.env.NODE_ENV !== 'production') {
      if (!color.main) {
        throw new Error(['Material-UI: the color provided to augmentColor(color) is invalid.', "The color object needs to have a `main` property or a `".concat(mainShade, "` property.")].join('\n'));
      }
    }

    addLightOrDark(color, 'light', lightShade, tonalOffset);
    addLightOrDark(color, 'dark', darkShade, tonalOffset);

    if (!color.contrastText) {
      color.contrastText = getContrastText(color.main);
    }

    return color;
  }

  var types = {
    dark: dark,
    light: light
  };

  if (process.env.NODE_ENV !== 'production') {
    if (!types[type]) {
      console.error("Material-UI: the palette type `".concat(type, "` is not supported."));
    }
  }

  var paletteOutput = deepmerge(_extends({
    // A collection of common colors.
    common: common,
    // The palette type, can be light or dark.
    type: type,
    // The colors used to represent primary interface elements for a user.
    primary: augmentColor(primary),
    // The colors used to represent secondary interface elements for a user.
    secondary: augmentColor(secondary, 'A400', 'A200', 'A700'),
    // The colors used to represent interface elements that the user should be made aware of.
    error: augmentColor(error),
    // The colors used to represent potentially dangerous actions or important messages.
    warning: augmentColor(warning),
    // The colors used to present information to the user that is neutral and not necessarily important.
    info: augmentColor(info),
    // The colors used to indicate the successful completion of an action that user triggered.
    success: augmentColor(success),
    // The grey colors.
    grey: grey,
    // Used by `getContrastText()` to maximize the contrast between
    // the background and the text.
    contrastThreshold: contrastThreshold,
    // Takes a background color and returns the text color that maximizes the contrast.
    getContrastText: getContrastText,
    // Generate a rich color object.
    augmentColor: augmentColor,
    // Used by the functions below to shift a color's luminance by approximately
    // two indexes within its tonal palette.
    // E.g., shift from Red 500 to Red 300 or Red 700.
    tonalOffset: tonalOffset
  }, types[type]), other);
  return paletteOutput;
}


text:
/**
* Connected Vision - https://github.com/ConnectedVision
* MIT License
*/

// auto-generated header by CodeFromTemplate - Connected Vision - https://github.com/ConnectedVision
// CodeFromTemplate Version: 0.3 alpha
// Class_generic_status.h
// This file contains the business logic.
// It is generated once and will NOT be OVERWRITTEN by CodeFromTemplate.
#ifndef Class_generic_status_def
#define Class_generic_status_def

#include "stubs/Stub_generic_status.h"

namespace ConnectedVision {

// if you want to extend the auto-generated class, enable the line below
#define Class_generic_status_extended

#ifdef Class_generic_status_extended
/**
 * Class_generic_status
 *
 * module:
 * description: config status
 */
class Class_generic_status : public Stub_generic_status {

public:
	Class_generic_status() {};
	Class_generic_status(const rapidjson::Value& value) : Stub_generic_status(value) {};
	Class_generic_status(const std::string& str) : Stub_generic_status(str) {};
	virtual ~Class_generic_status() {};

	inline ConnectedVision::shared_ptr<Class_generic_status> copy() const
	{
		ConnectedVision::shared_ptr<Class_generic_status> obj( new Class_generic_status( static_cast<const Class_generic_status &>(*this) ) );
		return obj;
	}

	inline bool equals( const Class_generic_status& other ) const
	{
		// TODO: implement Class_generic_status compare function
		bool equal = false;
		return equal;
	}

	inline bool processing_pending() const
	{
		return (this->is_status_init() || is_status_starting() || is_status_running() || is_status_stopping());
	}

	// helper functions
	Class_generic_status(const id_t& configID, const std::string& moduleID, const std::string& moduleURI, const std::vector<pinID_t> outputPinIDs);

	virtual void resetStableResults(const std::vector<pinID_t> outputPinIDs);
	virtual void resetStableResults();

	/**
	* Resets the computation duration, the computation duration average and the measurement data.
	*/
	void resetComputationDuration();

	virtual boost::shared_ptr<Class_generic_status_stableResults> find_stableResultsByPinID(const pinID_t &pinID) const;
	virtual void set_stableResultsByPinID(const ConnectedVision::shared_ptr<Class_generic_status_stableResults> &results, const pinID_t &pinID);
	virtual void set_stableResultsByPinID(const Class_generic_status_stableResults &results, const pinID_t &pinID) { set_stableResultsByPinID(ConnectedVision::make_shared<Class_generic_status_stableResults>(results), pinID); }

	/**
	* Calls the parent method and computes the quality of service computation duration average parameter.
	*/
	virtual void set_systemTimeProcessing(timestamp_t value);

	// dummy configID getter / setter
	virtual const id_t getconst_configID() const { return ID_NULL; } // the generic status class does not use the configID
	virtual id_t get_configID() const { return ID_NULL; } // the generic status class does not use the configID
	virtual void set_configID(id_t configID) { /* do nothing */ }

	static const unsigned int computationDurationAverageWindowSize = 10; // number of timestamp differences (number of timestamps - 1) used for the computation of the average compuation duration

protected:
	/**
	* Computes and sets the computation duration of the preceding iteration.
	*/
	void computeComputationDuration();

	/**
	* Computes and returns the computation duration average of computationDurationAverageWindowSize preceding iterations using the simple moving average method.
	*/
	timestamp_t computeComputationDurationAverage(unsigned int windowSize);

	/**
	* Computes and sets the computation duration average of n preceding iterations using the simple moving average method.
	*/
	void computeComputationDurationAverage();

	/**
	* Updates the computation duration and the computation duration average.
	*/
	void updateComputationDuration();

	std::vector<pinID_t> outputPinIDs;
	std::vector<timestamp_t> computationDurationTimestamps; // contains timestamp measurements (absolute epoch values) used for the computation of the average compuation duration
};
typedef boost::shared_ptr<Class_generic_status> Class_generic_status_p;
#endif // Class_generic_status_extended

} // namespace ConnectedVision

#include "stubs/Class_generic_status_Default.h"

#endif // Class_generic_status_def


text:
1) Run `git submodule add http://github.com/jwfriese/Fleet`

2) Add `Fleet.xcodeproj` to your project file

3) In your test target, navigate to the `Link Binary with Libraries` section, and add `Fleet.framework`.

4) *(The following step is only necessary if you are using Fleet's storyboard-related features)*
To your test target, add a `Run Script`. The script will run a shell script included in Fleet source. For example, if you added the submodule like this:

`git submodule add http://github.com/jwfriese/Fleet Externals/Fleet`

The `Run Script` should look like this:

`$PROJECT_DIR/Externals/Fleet/Fleet/Script/copy_storyboard_info_files.sh "PRODUCTION_TARGET_NAME"`

#### Cocoapods

1) Include Fleet in your `Podfile`:
`pod 'Fleet'`

2) Run `pod install`

3) *(The following step is only necessary if you are using Fleet's storyboard-related features)*
To your test target, add a `Run Script`. The script will run a shell script preserved in the framework's Pod. Assuming your `Pods` directory is in your source root, your `Run Script` would look like this:

`${SRCROOT}/Pods/Fleet/Fleet/Script/copy_storyboard_info_files.sh "PRODUCTION_TARGET_NAME"`

#### Carthage

1) Include Fleet in your `Cartfile`:
`github "jwfriese/Fleet"`

2) Run `carthage update --platform 'iOS'`

3) In your test target, navigate to the `Link Binary with Libraries` section, and add `Fleet.framework`, which you should be able to find in your `Carthage/Build/iOS` directory

4) To your test target, add a `Run Script` to call the Carthage `copy-frameworks` script:

`/usr/local/bin/carthage copy-frameworks`

Additionally, add as an input file Fleet's framework. The path probably looks something like this:

`$(SRCROOT)/Carthage/Build/iOS/Fleet.framework`

5) *(The following step is only necessary if you are using Fleet's storyboard-related features)*
To your test target, add a `Run Script`. The script will run a shell script included in the framework. Assuming your `Carthage` directory is in your source root, your `Run Script` would look like this:

`$PROJECT_DIR/Carthage/Build/iOS/Fleet.framework/copy_storyboard_info_files.sh "PRODUCTION_TARGET_NAME"`

For further reference see [Carthage's documentation](https://github.com/Carthage/Carthage/blob/master/README.md).


text:
title: Managing Releases
layout: doc
---
<!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. -->

# Managing Releases

Releases are when a project formally publishes a new version so the community can use it. There are two types of releases:

* Regular releases that follow [semantic versioning](http://semver.org/) and are considered production-ready.
* Prereleases that are not considered production-ready and are intended to give the community a preview of upcoming changes.

## Setting up a Release Environment

In order to run a release, be sure that:

1. You have [eslint.github.io](https://github.com/eslint/eslint.github.io) checked out into the same directory as the project (such as ESLint itself). Some projects automatically update the website.
1. You are logged in to npm. If not, [log in](https://docs.npmjs.com/cli/adduser).

## Building a New Release

There are two types of releases: regular and prerelease.

### Regular Releases

You can run a regular release with the following command:

```
$ npm run release
```

The [release tool](https://github.com/eslint/eslint-release) will inspect the commit history and determine the correct next version. It will also handle publishing to both GitHub and npm with the correct names and tags.

### Prereleases

You can create a prerelease version, either an alpha or a beta, by running the appropriate command:

```
$ npm run alpharelease
$ npm run betarelease
```

As with regular releases, the release tool will handle the common parts of the release process. The biggest differences are that it will use the version you specify instead of calculating one and it will push to npm using the `next` tag instead of `latest`.

### After Running the Release Command

There are some steps to complete after running the release command:

1. Update the release details on GitHub (https://github.com/eslint/eslint/releases)
1. For releases that aren't patches, update the release blog post to highlight important changes in the release.


text:
<sup>*xPSDesiredStateConfiguration v#.#.#*</sup>

Here you will find all the information you need to make use of the xPSDesiredStateConfiguration
DSC resources, including details of the resources that are available, current
capabilities and known issues, and information to help plan a DSC based
implementation of xPSDesiredStateConfiguration.

Please leave comments, feature requests, and bug reports in then
[issues section](https://github.com/dsccommunity/xPSDesiredStateConfiguration/issues) for this module.

## Getting started

To get started download xPSDesiredStateConfiguration from the [PowerShell Gallery](http://www.powershellgallery.com/packages/xPSDesiredStateConfiguration/)
and then unzip it to one of your PowerShell modules folders
(such as $env:ProgramFiles\WindowsPowerShell\Modules).

To install from the PowerShell gallery using PowerShellGet (in PowerShell 5.0)
run the following command:

```powershell
Find-Module -Name xPSDesiredStateConfiguration -Repository PSGallery | Install-Module
```

To confirm installation, run the below command and ensure you see the xPSDesiredStateConfiguration
DSC resources available:

```powershell
Get-DscResource -Module xPSDesiredStateConfiguration
```

## Change Log

A full list of changes in each version can be found in the [change log](https://github.com/dsccommunity/xPSDesiredStateConfiguration/blob/main/CHANGELOG.md).


text:
require 'twilio-ruby'

response = Twilio::TwiML::VoiceResponse.new
response.start do |start|
    start.siprec(name: 'My SIPREC Stream', connector_name: 'Gridspace_1')
end

puts response


text:
<?php

namespace Pheasant\Tests;

use \Pheasant;
use \Pheasant\Query\Query;

class QueryTest extends \Pheasant\Tests\MysqlTestCase
{
    public function testQuerying()
    {
        $query = new Query();
        $query
            ->select('firstname')
            ->from('user')
            ->where('lastname=?','Castle')
            ;

        $this->assertEquals(
            "SELECT firstname FROM user WHERE (lastname='Castle')",
            $query->toSql()
        );
    }

    public function testAddingWhereClauses()
    {
        $query = new Query();
        $query
            ->select('firstname')
            ->from('user')
            ->where('lastname=?','Castle')
            ->andWhere('firstname=?','Frank')
            ;

        $this->assertEquals(
            "SELECT firstname FROM user WHERE ((lastname='Castle') AND (firstname='Frank'))",
            $query->toSql()
        );
    }

    public function testJoiningMultipleQueryObjects()
    {
        // outer query
        $query = new Query();
        $query
            ->from('user')
            ->innerJoin('mytable', 'using(tableid)')
            ->where('userid=?',55)
            ;

        $this->assertEquals(
            "SELECT * FROM user INNER JOIN `mytable` using(tableid) WHERE (userid='55')",
            $query->toSql()
            );
    }

    public function testInnerJoinOnObjects()
    {
        // inner query
        $innerQuery = new Query();
        $innerQuery
            ->select('groupname', 'groupid')
            ->from('group')
            ;

        // outer query
        $query = new Query();
        $query
            ->select('firstname')
            ->from('user')
            ->innerJoin($innerQuery, 'USING(groupid)')
            ->where('lastname=?','Castle')
            ;

        $innerQuery
            ->where('derived.firstname = ?', 'frank');

        $this->assertEquals('SELECT firstname FROM user '.
            'INNER JOIN (SELECT groupname, groupid FROM group) derived USING(groupid) '.
            'WHERE (lastname=\'Castle\')',
            $query->toSql()
            );
    }

    public function testAddingGroupBy()
    {
        $query = new Query();
        $query
            ->select('userid')
            ->from('user')
            ->groupBy('userid')
            ;

        $this->assertEquals(
            'SELECT userid FROM user GROUP BY userid',
            $query->toSql());
    }

    public function testAddingHaving()
    {
        $query = new Query();
        $query
            ->select('userid')
            ->from('user')
            ->having('userid < ?', 100)
            ;

        $this->assertEquals(
            "SELECT userid FROM user HAVING (userid < '100')",
            $query->toSql());
    }

    public function testAddingOrderBy()
    {
        $query = new Query();
        $query
            ->select('userid')
            ->from('user')
            ->orderBy('userid')
            ;

        $this->assertEquals(
            'SELECT userid FROM user ORDER BY userid',
            $query->toSql());

        $query = new Query();
        $query
            ->select('foo')
            ->from('bar')
            ->orderBy('baz')
            ->andOrderBy('moo')
            ;

        $this->assertEquals(
            'SELECT foo FROM bar ORDER BY baz, moo',
            $query->toSql());
    }

    public function testChainedOrderByReplacesOrderBy()
    {
        $query = new Query();
        $query
            ->select('first_name, last_name')
            ->from('users')
            ->orderBy('last_name ASC')
            ->orderBy('first_name')
            ;

        $this->assertEquals(
            'SELECT first_name, last_name FROM users ORDER BY first_name',
            $query->toSql());
    }

    public function testAddingDefaultLock()
    {
        $query = new Query();
        $query
            ->select('userid')
            ->from('user')
            ->lock()
            ;

        $this->assertEquals(
            'SELECT userid FROM user FOR UPDATE',
            $query->toSql());
    }

    public function testAddingLockWithClause()
    {
        $query = new Query();
        $query
            ->select('userid')
            ->from('user')
            ->lock('LOCK IN SHARE MODE')
            ;

        $this->assertEquals(
            'SELECT userid FROM user LOCK IN SHARE MODE',
            $query->toSql());
    }

    public function testDistinctColumn()
    {
        $query = new Query();
        $query
            ->distinct()
            ->select('userid')
            ->from('user')
            ;

        $this->assertEquals(
            'SELECT DISTINCT userid FROM user',
            $query->toSql());
    }

    public function testCount()
    {
        $query = new Query();
        $query
            ->select('firstname')
            ->from('user')
            ->where('lastname=?','Castle')
            ;
        $this->assertSame(1, $query->count());
    }
}


text:
.class Lcom/android/server/accounts/AccountAuthenticatorCache$MySerializer;
.super Ljava/lang/Object;
.source "AccountAuthenticatorCache.java"

# interfaces
.implements Landroid/content/pm/XmlSerializerAndParser;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/server/accounts/AccountAuthenticatorCache;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "MySerializer"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/content/pm/XmlSerializerAndParser",
        "<",
        "Landroid/accounts/AuthenticatorDescription;",
        ">;"
    }
.end annotation

# direct methods
.method private constructor <init>()V
    .locals 0

    .prologue
    .line 83
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/android/server/accounts/AccountAuthenticatorCache$1;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 83
    invoke-direct {p0}, Lcom/android/server/accounts/AccountAuthenticatorCache$MySerializer;-><init>()V

    return-void
.end method

# virtual methods
.method public createFromXml(Lorg/xmlpull/v1/XmlPullParser;)Landroid/accounts/AuthenticatorDescription;
    .locals 2
    .parameter "parser"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lorg/xmlpull/v1/XmlPullParserException;
        }
    .end annotation

    .prologue
    .line 91
    const/4 v0, 0x0

    const-string v1, "type"

    invoke-interface {p1, v0, v1}, Lorg/xmlpull/v1/XmlPullParser;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/accounts/AuthenticatorDescription;->newKey(Ljava/lang/String;)Landroid/accounts/AuthenticatorDescription;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic createFromXml(Lorg/xmlpull/v1/XmlPullParser;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lorg/xmlpull/v1/XmlPullParserException;
        }
    .end annotation

    .prologue
    .line 83
    invoke-virtual {p0, p1}, Lcom/android/server/accounts/AccountAuthenticatorCache$MySerializer;->createFromXml(Lorg/xmlpull/v1/XmlPullParser;)Landroid/accounts/AuthenticatorDescription;

    move-result-object v0

    return-object v0
.end method

.method public writeAsXml(Landroid/accounts/AuthenticatorDescription;Lorg/xmlpull/v1/XmlSerializer;)V
    .locals 3
    .parameter "item"
    .parameter "out"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 86
    const/4 v0, 0x0

    const-string v1, "type"

    iget-object v2, p1, Landroid/accounts/AuthenticatorDescription;->type:Ljava/lang/String;

    invoke-interface {p2, v0, v1, v2}, Lorg/xmlpull/v1/XmlSerializer;->attribute(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/xmlpull/v1/XmlSerializer;

    .line 87
    return-void
.end method

.method public bridge synthetic writeAsXml(Ljava/lang/Object;Lorg/xmlpull/v1/XmlSerializer;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 83
    check-cast p1, Landroid/accounts/AuthenticatorDescription;

    .end local p1
    invoke-virtual {p0, p1, p2}, Lcom/android/server/accounts/AccountAuthenticatorCache$MySerializer;->writeAsXml(Landroid/accounts/AuthenticatorDescription;Lorg/xmlpull/v1/XmlSerializer;)V

    return-void
.end method


text:
import React from "react"
import { Provider } from "react-redux"
import { assert } from "chai"
import { mount } from "enzyme"
import sinon from "sinon"
import { Field } from "formik"

import CommentForm from "./CommentForm"
import LoginTooltip from "./LoginTooltip"

import IntegrationTestHelper from "../util/integration_test_helper"
import { makePost } from "../factories/posts"
import { makeComment } from "../factories/comments"
import { makeProfile } from "../factories/profiles"

describe("CommentForm", () => {
  let helper, post, comment, profile, onSubmitActions, closeReplyStub

  const renderCommentForm = (props = {}) =>
    mount(
      <Provider store={helper.store}>
        <CommentForm post={post} comment={comment} {...props} />
      </Provider>
    )

  beforeEach(() => {
    helper = new IntegrationTestHelper()
    post = makePost()
    comment = makeComment(post)
    profile = makeProfile()
    onSubmitActions = {
      setSubmitting: helper.sandbox.stub(),
      resetForm:     helper.sandbox.stub()
    }
    closeReplyStub = helper.sandbox.stub()
    helper.createCommentStub.returns(Promise.resolve())
    helper.updateCommentStub.returns(Promise.resolve())
  })

  afterEach(() => {
    helper.cleanup()
  })

  it("should include a LoginTooltip", () => {
    const wrapper = renderCommentForm()
    assert.isOk(wrapper.find(LoginTooltip).exists())
  })

  it("should pass the initial text to formik if passed the editing flag", () => {
    const wrapper = renderCommentForm({
      comment,
      editing: true
    })
    assert.equal(
      comment.text,
      wrapper.find("Formik").prop("initialValues").commentText
    )
  })

  it("should include a profile image component if passed a profile", () => {
    const wrapper = renderCommentForm({ profile })
    assert.ok(wrapper.find("ProfileImage").exists())
  })

  it("should pass down the autofocus prop to the <Field />", () => {
    [true, false].forEach(autoFocus => {
      const wrapper = renderCommentForm({ autoFocus })
      assert.equal(wrapper.find(Field).prop("autoFocus"), autoFocus)
    })
  })

  it("should create a comment with the right arguments onSubmit", async () => {
    const wrapper = renderCommentForm()

    await wrapper.find("Formik").prop("onSubmit")(
      { commentText: "hey!" },
      onSubmitActions
    )
    sinon.assert.calledWith(onSubmitActions.resetForm, { commentText: "" })
    sinon.assert.calledWith(onSubmitActions.setSubmitting, false)
    sinon.assert.calledWith(
      helper.createCommentStub,
      post.id,
      "hey!",
      comment.id
    )
  })

  it("should patch the comment if passed the editing flag", async () => {
    const wrapper = renderCommentForm({ editing: true })
    await wrapper.find("Formik").prop("onSubmit")(
      { commentText: "hey!" },
      onSubmitActions
    )
    sinon.assert.calledWith(onSubmitActions.resetForm, { commentText: "" })
    sinon.assert.calledWith(onSubmitActions.setSubmitting, false)
    sinon.assert.calledWith(helper.updateCommentStub, comment.id, {
      id:   comment.id,
      text: "hey!"
    })
  })

  it("should call closeReply on submit, if passed", async () => {
    const wrapper = renderCommentForm({ closeReply: closeReplyStub })
    await wrapper.find("Formik").prop("onSubmit")(
      { commentText: "asdfasdfasdf" },
      onSubmitActions
    )
    sinon.assert.called(closeReplyStub)
    sinon.assert.notCalled(onSubmitActions.resetForm)
  })

  it("should render a cancel button with closeReply, if passed", () => {
    const wrapper = renderCommentForm({ closeReply: closeReplyStub })
    wrapper.find(".cancel").simulate("click")
    sinon.assert.called(closeReplyStub)
  })

  it("should not render cancel button, if not passed closeReply", () => {
    assert.isNotOk(renderCommentForm().find(".cancel").exists())
  })
})


text:
//MIT License
//Copyright 2016-Present
//Ross Tredinnick
//Kevin Ponto
//Benny Wysong-Grass
//University of Wisconsin - Madison Virtual Environments Group
//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 UnityEditor;
using UnityEngine;
using UnityEngine.Video;
using UnityEngine.Networking;

namespace UniCAVE
{
    public class NetworkVideo : NetworkBehaviour
    {
        private VideoPlayer player;

        private float canonicalVideoTime = 0.0f;
        private float canonicalPlaybackSpeed = 1.0f;
        private bool canonicalPlaying = true;

        private float lastUpdateRealTime = 0.0f;

        public float maxPlaybackRatio = 1.5f;
        public bool scrubWhenPlaying = true;
        public float scrubThreshold = 1.0f;
        public float convergenceRate = 1.0f;

        [ClientRpc]
        private void RpcUpdateFields(float _canonicalVideoTime, float _canonicalPlaybackSpeed, bool _canonicalPlaying)
        {
            lastUpdateRealTime = Time.time;
            canonicalVideoTime = _canonicalVideoTime;
            canonicalPlaybackSpeed = _canonicalPlaybackSpeed;
            canonicalPlaying = _canonicalPlaying;
        }

        void Start()
        {
            player = GetComponent<VideoPlayer>();
        }

        void FixedUpdate()
        {

            if(isServer)
            {
                canonicalVideoTime = (float)player.time;
                canonicalPlaybackSpeed = player.playbackSpeed;
                canonicalPlaying = player.isPlaying;
                RpcUpdateFields(canonicalVideoTime, canonicalPlaybackSpeed, canonicalPlaying);
            }
            else
            {
                if(canonicalPlaying)
                {
                    if(!player.isPlaying) player.Play();
                    player.playbackSpeed = canonicalPlaybackSpeed * correctedPlaybackRatio;
                }
                else
                {
                    if(player.isPlaying) player.Pause();
                    player.time = canonicalVideoTime;
                    player.playbackSpeed = canonicalPlaybackSpeed;
                }
                if((scrubWhenPlaying && Mathf.Abs(expectedTimeDif) > scrubThreshold) || (Mathf.Abs(expectedTimeDif) > 0.1f && !canonicalPlaying))
                {
                    player.time = canonicalVideoTime;
                }
            }
        }

        private float expectedCanonicalVideoTime
        {
            get
            {
                float timeSinceLastUpdate = Time.time - lastUpdateRealTime;
                return canonicalVideoTime + canonicalPlaybackSpeed * timeSinceLastUpdate;
            }
        }
        private float expectedTimeDif
        {
            get
            {
                return (float)(expectedCanonicalVideoTime - player.time);
            }
        }
        private float correctedPlaybackRatio
        {
            get
            {
                return Mathf.Clamp(Mathf.Exp(expectedTimeDif * convergenceRate), 0.125f, maxPlaybackRatio);
            }
        }
    }

#if UNITY_EDITOR
    [CustomEditor(typeof(NetworkVideo))]
    public class NetworkVideoEditor : Editor
    {
        public override void OnInspectorGUI()
        {
            NetworkVideo netvid = target as NetworkVideo;

            //EditorGUILayout.FloatField("CanonicalVideoTime", netvid.canonicalVideoTime);
            //EditorGUILayout.FloatField("canonicalPlaybackSpeed", netvid.canonicalPlaybackSpeed);

            netvid.maxPlaybackRatio = EditorGUILayout.Slider(new GUIContent("Max Playback Ratio",
                "The maximum ratio of this clip's playback to the canonical clip's playback, for example Max Playback Ratio = 1.5 means the clip can go 50% faster."), netvid.maxPlaybackRatio, 1.1f, 4.0f);

            netvid.scrubWhenPlaying = EditorGUILayout.Toggle(new GUIContent("Scrub When Playing", "Scrub the video while it is playing if the video is out of sync more than a certain threshold"), netvid.scrubWhenPlaying);
            netvid.convergenceRate = EditorGUILayout.Slider(new GUIContent("Convergence Rate", "Relative value of how fast the videos will converge to the same time"), netvid.convergenceRate, 0.01f, 100.0f);

            if(netvid.scrubWhenPlaying)
            {
                netvid.scrubThreshold = EditorGUILayout.Slider(new GUIContent("Scrub Threshold",
                "If the clip is out of sync by more than this amount, it will scrub to the correct time instead of accelerating up to it."), netvid.scrubThreshold, 0.25f, 5.0f);
            }
        }
    }
#endif
}


text:
'''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class Rkvstore20150101DeleteInstanceRequest(RestApi):
	def __init__(self,domain='r-kvstore.aliyuncs.com',port=80):
		RestApi.__init__(self,domain, port)
		self.InstanceId = None

	def getapiname(self):
		return 'r-kvstore.aliyuncs.com.DeleteInstance.2015-01-01'